Replace SYMBOL_*_NAME accessors with member functions
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
987012b8
CB
12019-11-22 Christian Biesinger <cbiesinger@google.com>
2
3 * ada-exp.y: Update.
4 * ada-lang.c (sort_choices): Update.
5 (ada_print_symbol_signature): Update.
6 (resolve_subexp): Update.
7 (ada_parse_renaming): Update.
8 (ada_read_renaming_var_value): Update.
9 (lesseq_defined_than): Update.
10 (remove_extra_symbols): Update.
11 (remove_irrelevant_renamings): Update.
12 (ada_add_block_symbols): Update.
13 (ada_collect_symbol_completion_matches): Update.
14 (ada_is_renaming_symbol): Update.
15 (aggregate_assign_from_choices): Update.
16 (ada_evaluate_subexp): Update.
17 (ada_has_this_exception_support): Update.
18 (ada_is_non_standard_exception_sym): Update.
19 (ada_add_exceptions_from_frame): Update.
20 (ada_add_global_exceptions): Update.
21 (ada_print_subexp): Update.
22 * ax-gdb.c (gen_var_ref): Update.
23 (gen_maybe_namespace_elt): Update.
24 (gen_expr_for_cast): Update.
25 (gen_expr): Update.
26 * block.h: Update.
27 * blockframe.c (find_pc_partial_function): Update.
28 * breakpoint.c (print_breakpoint_location): Update.
29 (update_static_tracepoint): Update.
30 * btrace.c (ftrace_print_function_name): Update.
31 (ftrace_function_switched): Update.
32 * buildsym.c (find_symbol_in_list): Update.
33 * c-exp.y: Update.
34 * c-typeprint.c (c_print_typedef): Update.
35 (c_type_print_template_args): Update.
36 * cli/cli-cmds.c (edit_command): Update.
37 (list_command): Update.
38 (print_sal_location): Update.
39 * coffread.c (patch_opaque_types): Update.
40 (process_coff_symbol): Update.
41 (coff_read_enum_type): Update.
42 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
43 (convert_one_symbol): Update.
44 (hash_symname): Update.
45 (eq_symname): Update.
46 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
47 * compile/compile-cplus-types.c (debug_print_scope): Update.
48 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
49 * compile/compile-object-load.c (get_out_value_type): Update.
50 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
51 (search_symbol_list): Update.
52 (cp_lookup_symbol_imports_or_template): Update.
53 * cp-support.c (overload_list_add_symbol): Update.
54 * ctfread.c (psymtab_to_symtab): Update.
55 * dbxread.c (cp_set_block_scope): Update.
56 * dictionary.c (iter_match_first_hashed): Update.
57 (iter_match_next_hashed): Update.
58 (insert_symbol_hashed): Update.
59 (iter_match_next_linear): Update.
60 * dictionary.h: Update.
61 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
62 (locexpr_describe_location_piece): Update.
63 (locexpr_describe_location_1): Update.
64 (locexpr_generate_c_location): Update.
65 (loclist_describe_location): Update.
66 (loclist_generate_c_location): Update.
67 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
68 (read_func_scope): Update.
69 (process_enumeration_scope): Update.
70 (new_symbol): Update.
71 (dwarf2_const_value): Update.
72 (dwarf2_symbol_mark_computed): Update.
73 * eval.c (evaluate_funcall): Update.
74 (evaluate_subexp_standard): Update.
75 * expprint.c (print_subexp_standard): Update.
76 (dump_subexp_body_standard): Update.
77 * f-valprint.c (info_common_command_for_block): Update.
78 * findvar.c (get_hosting_frame): Update.
79 (default_read_var_value): Update.
80 * go-lang.c (go_symbol_package_name): Update.
81 * guile/scm-block.c (bkscm_print_block_smob): Update.
82 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
83 (gdbscm_symbol_name): Update.
84 (gdbscm_symbol_linkage_name): Update.
85 (gdbscm_symbol_print_name): Update.
86 * infcall.c (get_function_name): Update.
87 * infcmd.c (jump_command): Update.
88 (finish_command): Update.
89 * infrun.c (insert_exception_resume_breakpoint): Update.
90 * linespec.c (canonicalize_linespec): Update.
91 (create_sals_line_offset): Update.
92 (convert_linespec_to_sals): Update.
93 (complete_label): Update.
94 (find_label_symbols_in_block): Update.
95 * m2-typeprint.c (m2_print_typedef): Update.
96 * mdebugread.c (mdebug_reg_to_regnum): Update.
97 (parse_symbol): Update.
98 (mylookup_symbol): Update.
99 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
100 (list_args_or_locals): Update.
101 * objc-lang.c (compare_selectors): Update.
102 (info_selectors_command): Update.
103 (compare_classes): Update.
104 (info_classes_command): Update.
105 (find_imps): Update.
106 * p-typeprint.c (pascal_print_typedef): Update.
107 * printcmd.c (build_address_symbolic): Update.
108 (info_address_command): Update.
109 (print_variable_and_value): Update.
110 * python/py-framefilter.c (extract_sym): Update.
111 (py_print_single_arg): Update.
112 * python/py-symbol.c (sympy_str): Update.
113 (sympy_get_name): Update.
114 (sympy_get_linkage_name): Update.
115 * python/python.c (gdbpy_rbreak): Update.
116 * record-btrace.c (btrace_get_bfun_name): Update.
117 (btrace_call_history): Update.
118 * rust-lang.c (rust_print_typedef): Update.
119 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
120 * stabsread.c (stab_reg_to_regnum): Update.
121 (define_symbol): Update.
122 (read_enum_type): Update.
123 (common_block_end): Update.
124 (cleanup_undefined_types_1): Update.
125 (scan_file_globals): Update.
126 * stack.c (print_frame_arg): Update.
127 (print_frame_args): Update.
128 (find_frame_funname): Update.
129 (info_frame_command_core): Update.
130 (iterate_over_block_locals): Update.
131 (print_block_frame_labels): Update.
132 (do_print_variable_and_value): Update.
133 (iterate_over_block_arg_vars): Update.
134 (return_command): Update.
135 * symmisc.c (dump_symtab_1): Update.
136 (print_symbol): Update.
137 * symtab.c (eq_symbol_entry): Update.
138 (symbol_cache_dump): Update.
139 (lookup_language_this): Update.
140 (find_pc_sect_line): Update.
141 (skip_prologue_sal): Update.
142 (symbol_search::compare_search_syms): Update.
143 (treg_matches_sym_type_name): Update.
144 (search_symbols): Update.
145 (print_symbol_info): Update.
146 (rbreak_command): Update.
147 (completion_list_add_symbol): Update.
148 (find_gnu_ifunc): Update.
149 (get_symbol_address): Update.
150 (search_module_symbols): Update.
151 (info_module_subcommand): Update.
152 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
153 (SYMBOL_LINKAGE_NAME): Remove.
154 (SYMBOL_DEMANGLED_NAME): Remove.
155 (SYMBOL_PRINT_NAME): Remove.
156 (SYMBOL_SEARCH_NAME): Remove.
157 * tracepoint.c (set_traceframe_context): Update.
158 (validate_actionline): Update.
159 (collection_list::collect_symbol): Update.
160 (encode_actions_1): Update.
161 (info_scope_command): Update.
162 (print_one_static_tracepoint_marker): Update.
163 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
164 * valops.c (address_of_variable): Update.
165 (find_overload_match): Update.
166 (find_oload_champ): Update.
167
c9d95fa3
CB
1682019-11-22 Christian Biesinger <cbiesinger@google.com>
169
170 * ada-lang.c (ada_lookup_simple_minsym): Update.
171 (ada_collect_symbol_completion_matches): Update.
172 * ada-tasks.c (read_atcb): Update.
173 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
174 (amd64_windows_skip_trampoline_code): Update.
175 * arm-tdep.c (skip_prologue_function): Update.
176 (arm_skip_stack_protector): Update.
177 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
178 (arm_wince_skip_main_prologue): Update.
179 * ax-gdb.c (gen_expr): Update.
180 * block.c (call_site_for_pc): Update.
181 * blockframe.c (find_pc_partial_function): Update.
182 * breakpoint.c (set_breakpoint_location_function): Update.
183 * btrace.c (ftrace_print_function_name): Update.
184 (ftrace_function_switched): Update.
185 * c-valprint.c (print_unpacked_pointer): Update.
186 * coffread.c (coff_symfile_read): Update.
187 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
188 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
189 * dwarf-index-write.c (write_psymbols): Update.
190 * dwarf2loc.c (call_site_to_target_addr): Update.
191 (func_verify_no_selftailcall): Update.
192 (tailcall_dump): Update.
193 (call_site_find_chain_1): Update.
194 (dwarf_expr_reg_to_entry_parameter): Update.
195 * elfread.c (elf_gnu_ifunc_record_cache): Update.
196 * eval.c (evaluate_funcall): Update.
197 (evaluate_subexp_standard): Update.
198 (evaluate_subexp_for_sizeof): Update.
199 * expprint.c (print_subexp_standard): Update.
200 (dump_subexp_body_standard): Update.
201 * frame.c (get_prev_frame_always_1): Update.
202 * frv-tdep.c (frv_skip_main_prologue): Update.
203 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
204 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
205 (gnuv3_get_typename_from_type_info): Update.
206 (gnuv3_skip_trampoline): Update.
207 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
208 * i386-tdep.c (i386_skip_main_prologue): Update.
209 (i386_pe_skip_trampoline_code): Update.
210 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
211 * infcall.c (get_function_name): Update.
212 * linespec.c (minsym_found): Update.
213 * linux-fork.c (info_checkpoints_command): Update.
214 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
215 (m32c_m16c_pointer_to_address): Update.
216 * maint.c (maintenance_translate_address): Update.
217 * minsyms.c (add_minsym_to_hash_table): Update.
218 (add_minsym_to_demangled_hash_table): Update.
219 (lookup_minimal_symbol_mangled): Update.
220 (lookup_minimal_symbol_demangled): Update.
221 (lookup_minimal_symbol_linkage): Update.
222 (lookup_minimal_symbol_text): Update.
223 (lookup_minimal_symbol_by_pc_name): Update.
224 (minimal_symbol_is_less_than): Update.
225 (compact_minimal_symbols): Update.
226 (build_minimal_symbol_hash_tables): Update.
227 (find_solib_trampoline_target): Update.
228 * mips-tdep.c (mips_stub_frame_sniffer): Update.
229 (mips_skip_pic_trampoline_code): Update.
230 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
231 * objc-lang.c (info_selectors_command): Update.
232 (info_classes_command): Update.
233 (find_methods): Update.
234 (find_imps): Update.
235 * p-valprint.c (pascal_val_print): Update.
236 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
237 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
238 * printcmd.c (build_address_symbolic): Update.
239 (info_symbol_command): Update.
240 * psymtab.c (psymbol_name_matches): Update.
241 (match_partial_symbol): Update.
242 (lookup_partial_symbol): Update.
243 (print_partial_symbols): Update.
244 (sort_pst_symbols): Update.
245 (maintenance_check_psymtabs): Update.
246 * python/py-framefilter.c (py_print_frame): Update.
247 * python/python.c (gdbpy_rbreak): Update.
248 * record-btrace.c (btrace_get_bfun_name): Update.
249 (btrace_call_history): Update.
250 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
251 (rs6000_skip_trampoline_code): Update.
252 * sol-thread.c (info_cb): Update.
253 * stabsread.c (scan_file_globals): Update.
254 * stack.c (find_frame_funname): Update.
255 (info_frame_command_core): Update.
256 * symmisc.c (dump_msymbols): Update.
257 * symtab.c (symbol_natural_name): Rename to..,
258 (general_symbol_info::natural_name): ...this.
259 (symbol_demangled_name): Rename to...
260 (general_symbol_info::demangled_name): ...this.
261 (symbol_search_name): Rename to...
262 (general_symbol_info::search_name): ...this.
263 (symbol_matches_search_name): Update.
264 (find_pc_sect_line): Update.
265 (skip_prologue_sal): Update.
266 (search_symbols): Update.
267 (print_msymbol_info): Update.
268 (rbreak_command): Update.
269 (completion_list_add_msymbol): Update.
270 (completion_list_objc_symbol): Update.
271 (get_msymbol_address): Update.
272 * symtab.h (struct general_symbol_info): Add member functions
273 natural_name (), linkage_name (), print_name (), demangled_name (),
274 and search_name ().
275 (SYMBOL_NATURAL_NAME): Update.
276 (symbol_natural_name): Move to a member function on general_symbol_info.
277 (SYMBOL_DEMANGLED_NAME): Update.
278 (symbol_demangled_name): Move to a member function on
279 general_symbol_info.
280 (SYMBOL_SEARCH_NAME): Update.
281 (symbol_search_name): Move to a member function on general_symbol_info.
282 (MSYMBOL_NATURAL_NAME): Remove.
283 (MSYMBOL_LINKAGE_NAME): Remove.
284 (MSYMBOL_PRINT_NAME): Remove.
285 (MSYMBOL_DEMANGLED_NAME): Remove.
286 (MSYMBOL_SEARCH_NAME): Remove.
287 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
288
f8bab2d6
CB
2892019-11-22 Christian Biesinger <cbiesinger@google.com>
290
291 * symtab.c (create_demangled_names_hash): Use per_bfd->
292 minimal_symbol_count for computing the initial size, if greater
293 than our default size.
294
85e7588d
TV
2952019-11-22 Tom de Vries <tdevries@suse.de>
296
297 * contrib/words.sh: Improve words extraction.
298
f6180073
TV
2992019-11-22 Tom de Vries <tdevries@suse.de>
300
301 * contrib/words.sh: Combine sed invocations.
302
f10ffa41
CB
3032019-11-21 Christian Biesinger <cbiesinger@google.com>
304
305 * Makefile.in: Update.
306 * demangle.c: Rename to...
307 * gdb-demangle.c: ..this.
308 (is_cplus_marker): Change return type to bool.
309 (_initialize_demangler): Rename to...
310 (_initialize_gdb_demangle): ...this.
311 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
312 * symtab.h (demangle): Remove declaration; instead include
313 gdb-demangle.h.
314
6ba18521
TT
3152019-11-21 Tom Tromey <tromey@adacore.com>
316
317 * gdbsupport/format.c (format_pieces): Parse %I64d.
318 * unittests/format_pieces-selftests.c (test_windows_formats): New
319 function.
320 (run_tests): Call it.
321
34877895
PJ
3222019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
323
324 Byte reverse display of variables with DW_END_big, DW_END_little
325 (DW_AT_endianity) dwarf attributes if different than the native
326 byte order.
327 * ada-lang.c (ada_value_binop):
328 Use type_byte_order instead of gdbarch_byte_order.
329 * ada-valprint.c (printstr):
330 (ada_val_print_string):
331 * ada-lang.c (value_pointer):
332 (ada_value_binop):
333 Use type_byte_order instead of gdbarch_byte_order.
334 * c-lang.c (c_get_string):
335 Use type_byte_order instead of gdbarch_byte_order.
336 * c-valprint.c (c_val_print_array):
337 Use type_byte_order instead of gdbarch_byte_order.
338 * cp-valprint.c (cp_print_class_member):
339 Use type_byte_order instead of gdbarch_byte_order.
340 * dwarf2loc.c (rw_pieced_value):
341 Use type_byte_order instead of gdbarch_byte_order.
342 * dwarf2read.c (read_base_type): Handle DW_END_big,
343 DW_END_little
344 * f-lang.c (f_get_encoding):
345 Use type_byte_order instead of gdbarch_byte_order.
346 * findvar.c (default_read_var_value):
347 Use type_byte_order instead of gdbarch_byte_order.
348 * gdbtypes.c (check_types_equal):
349 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
350 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
351 and TYPE_ENDIANITY_LITTLE if set.
352 (type_byte_order): new function.
353 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
354 (struct main_type) <flag_endianity_not_default>:
355 New field.
356 (type_byte_order): New function.
357 * infcmd.c (default_print_one_register_info):
358 Use type_byte_order instead of gdbarch_byte_order.
359 * p-lang.c (pascal_printstr):
360 Use type_byte_order instead of gdbarch_byte_order.
361 * p-valprint.c (pascal_val_print):
362 Use type_byte_order instead of gdbarch_byte_order.
363 * printcmd.c (print_scalar_formatted):
364 Use type_byte_order instead of gdbarch_byte_order.
365 * solib-darwin.c (darwin_current_sos):
366 Use type_byte_order instead of gdbarch_byte_order.
367 * solib-svr4.c (solib_svr4_r_ldsomap):
368 Use type_byte_order instead of gdbarch_byte_order.
369 * stap-probe.c (stap_modify_semaphore):
370 Use type_byte_order instead of gdbarch_byte_order.
371 * target-float.c (target_float_same_format_p):
372 Use type_byte_order instead of gdbarch_byte_order.
373 * valarith.c (scalar_binop):
374 (value_bit_index):
375 Use type_byte_order instead of gdbarch_byte_order.
376 * valops.c (value_cast):
377 Use type_byte_order instead of gdbarch_byte_order.
378 * valprint.c (generic_emit_char):
379 (generic_printstr):
380 (val_print_string):
381 Use type_byte_order instead of gdbarch_byte_order.
382 * value.c (unpack_long):
383 (unpack_bits_as_long):
384 (unpack_value_bitfield):
385 (modify_field):
386 (pack_long):
387 (pack_unsigned_long):
388 Use type_byte_order instead of gdbarch_byte_order.
389 * findvar.c (unsigned_pointer_to_address):
390 (signed_pointer_to_address):
391 (unsigned_address_to_pointer):
392 (address_to_signed_pointer):
393 (default_read_var_value):
394 (default_value_from_register):
395 Use type_byte_order instead of gdbarch_byte_order.
396 * gnu-v3-abi.c (gnuv3_make_method_ptr):
397 Use type_byte_order instead of gdbarch_byte_order.
398 * riscv-tdep.c (riscv_print_one_register_info):
399 Use type_byte_order instead of gdbarch_byte_order.
400
87fb00ea
SM
4012019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
402
403 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
404 (current_ui_gdb_stdin_ptr): Likewise.
405 (current_ui_gdb_stderr_ptr): Likewise.
406 (current_ui_gdb_stdlog_ptr): Likewise.
407 (current_ui_current_uiout_ptr): Likewise.
408 (gen_ret_current_ui_field_ptr): Remove.
409
65d1cd5f
TV
4102019-11-21 Tom de Vries <tdevries@suse.de>
411
412 PR gdb/24956
413 * cli/cli-script.c (execute_control_command): Only switch to
414 INTERP_CONSOLE's ui_out when INTERP_MI is active.
415
9f6ad286
TT
4162019-11-19 Tom Tromey <tom@tromey.com>
417
418 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
419 Now static. Change type of "name".
420 (tui_set_win_height_command): Don't copy "arg".
421 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
422 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
423
435d3d88
AT
4242019-11-19 Ali Tamur <tamur@google.com>
425
426 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
427 "if (attr != nullptr)".
428 (dwarf2_find_base_address): Likewise.
429 (dwarf2_build_include_psymtabs): Likewise.
430 (read_cutu_die_from_dwo): Likewise.
431 (read_func_scope): Likewise.
432 (read_call_site_scope): Likewise.
433 (dwarf2_get_pc_bounds): Likewise.
434 (dwarf2_record_block_ranges): Likewise.
435 (dwarf2_add_field): Likewise.
436 (dwarf2_add_member_fn): Likewise.
437 (read_structure_type): Likewise.
438 (read_enumeration_type): Likewise.
439 (read_array_type): Likewise.
440 (read_array_order): Likewise.
441 (read_set_type): Likewise.
442 (read_common_block): Likewise.
443 (read_tag_reference_type): Likewise.
444 (read_tag_string_type): Likewise.
445 (read_subroutine_type): Likewise.
446 (read_base_type): Likewise.
447 (read_subrange_type): Likewise.
448 (new_symbol): Likewise.
449 (prepare_one_comp_unit): Likewise.
450
c9739b6a
TT
4512019-11-19 Tom Tromey <tromey@adacore.com>
452
453 * windows-nat.c (windows_nat_target::attach): Include GetLastError
454 result in error when DebugActiveProcess fails.
455
494409bb
SDJ
4562019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
457 Pedro Alves <palves@redhat.com>
458
459 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
460 * target.c (target_stack::push): Call 'unpush' if there's a
461 target on top of the stack.
462
2e953aca
PW
4632019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
464
465 * python/py-block.c (blpy_dealloc): Call tp_free.
466 (blpy_block_syms_dealloc): Likewise.
467 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
468 * python/py-inferior.c (infpy_dealloc): Likewise.
469 * python/py-lazy-string.c (stpy_dealloc): Likewise.
470 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
471 * python/py-symbol.c (sympy_dealloc): Likewise.
472 * python/py-symtab.c (stpy_dealloc): Likewise.
473 * python/py-type.c (typy_iterator_dealloc): Likewise.
474
6edc43ec
CB
4752019-11-18 Christian Biesinger <cbiesinger@google.com>
476
477 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
478 constructor instead of using a class initializer.
479
cd850b40
CB
4802019-11-15 Christian Biesinger <cbiesinger@google.com>
481
482 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
483 * configure: Regenerate.
484 * configure.ac: Don't source common.host.
485 * gdbsupport/common.host: Remove.
486 * gdbsupport/mingw-strerror.c: Remove.
487 * gdbsupport/posix-strerror.c: Rename to...
488 * gdbsupport/safe-strerror.c: ...this.
489
53fea9c7
CB
4902019-11-15 Christian Biesinger <cbiesinger@google.com>
491
492 * maint.c (scoped_command_stats::print_time): Use localtime_r
493 instead of localtime (provided through gnulib if necessary).
494 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
495 of ctime.
496
f8e27d88
CB
4972019-11-15 Christian Biesinger <cbiesinger@google.com>
498
499 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
500 avoid compile errors.
501
5abebf3c
CB
5022019-11-15 Christian Biesinger <cbiesinger@google.com>
503
504 * config.in: Regenerate.
505 * configure: Regenerate.
506 * gdbsupport/common.m4: No longer check for strerror_r.
507 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
508 POSIX version of strerror_r, now that gnulib provides it if
509 necessary.
510
9a351667
CB
5112019-11-14 Christian Biesinger <cbiesinger@google.com>
512
513 * README (`configure' options): Update.
514
55708e99
TT
5152019-11-14 Tom Tromey <tromey@adacore.com>
516
517 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
518 expected type for the RHS if the LHS is a convenience variable.
519
4b09bb2e
SM
5202019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
521
522 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
523 Provide explicit default and copy constructor.
524
bd454f8b
PW
5252019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
526
527 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
528 only call Py_INCREF (newbp) in the bppy_pending_object case.
529
d1aa3cf0
TT
5302019-11-13 Tom Tromey <tromey@adacore.com>
531
532 PR build/25182:
533 * psympriv.h (partial_symbol): Remove static assert.
534 * symtab.h (general_symbol_info, symbol): Remove static assert.
535
e06f3d6e
AB
5362019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
537
538 * gdbsupport/format.c (format_pieces::format_pieces): Support
539 printf 'z' size modifier.
540 * gdbsupport/format.h (enum argclass): Add size_t_arg.
541 * printcmd.c (ui_printf): Handle size_t_arg.
542 * ui-out.c (ui_out::vmessage): Likewise.
543 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
544 function.
545 (run_tests): Call test_format_int_sizes.
546
468c0cbb
CB
5472019-11-12 Christian Biesinger <cbiesinger@google.com>
548
549 * ada-exp.y (write_ambiguous_var): Update.
550 * buildsym.c (add_symbol_to_list): Update.
551 * dwarf2read.c (read_variable): Update.
552 (new_symbol): Update.
553 * jit.c (finalize_symtab): Update.
554 * language.c (language_alloc_type_symbol): Update.
555 * symtab.c (fixup_symbol_section): Update.
556 (initialize_objfile_symbol_1): Move code to...
557 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
558 (allocate_symbol): Update.
559 (allocate_template_symbol): Update.
560 (get_symbol_address): Update.
561 * symtab.h (struct symbol): Inherit from general_symbol_info instead
562 of having as a field, and add a constructor.
563 (SYMBOL_VALUE): Update.
564 (SYMBOL_VALUE_ADDRESS): Update.
565 (SET_SYMBOL_VALUE_ADDRESS): Update.
566 (SYMBOL_VALUE_BYTES): Update.
567 (SYMBOL_VALUE_COMMON_BLOCK): Update.
568 (SYMBOL_BLOCK_VALUE): Update.
569 (SYMBOL_VALUE_CHAIN): Update.
570 (SYMBOL_LANGUAGE): Update.
571 (SYMBOL_SECTION): Update.
572 (SYMBOL_OBJ_SECTION): Update.
573 (SYMBOL_SET_LANGUAGE): Update.
574 (SYMBOL_SET_LINKAGE_NAME): Update.
575 (SYMBOL_SET_NAMES): Update.
576 (SYMBOL_NATURAL_NAME): Update.
577 (SYMBOL_LINKAGE_NAME): Update.
578 (SYMBOL_DEMANGLED_NAME): Update.
579 (SYMBOL_SEARCH_NAME): Update.
580 (SYMBOL_MATCHES_SEARCH_NAME): Update.
581 (struct symbol): Update.
582 (struct template_symbol): Update.
583 (struct rust_vtable_symbol): Update.
584 * xcoffread.c (SYMBOL_DUP): Update.
585
ed2c82c3
TT
5862019-11-12 Tom Tromey <tom@tromey.com>
587
588 * tui/tui-layout.c (show_layout): Set current_layout.
589 (show_source_disasm_command, show_data)
590 (show_source_or_disasm_and_command): Don't set current_layout.
591
d9fcefd5
TT
5922019-11-12 Tom Tromey <tom@tromey.com>
593
594 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
595
45e42163
TT
5962019-11-12 Tom Tromey <tom@tromey.com>
597
598 * tui/tui-win.c (resize_message): New global.
599 (show_tui_resize_message): New function.
600 (tui_async_resize_screen): Print message if requested.
601 (_initialize_tui_win): Add tui-resize-message setting.
602 * NEWS: Add entry for new commands.
603
c86d74cc
TT
6042019-11-11 Tom Tromey <tom@tromey.com>
605
606 * tui/tui.c (tui_initialize_readline): Add new bindable readline
607 functions.
608
7b7b9424
CB
6092019-11-11 Christian Biesinger <cbiesinger@google.com>
610
611 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
612
086baaf1
AB
6132019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
614
615 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
616 function.
617 * python/python-internal.h (gdbpy_lookup_static_symbols):
618 Declare new function.
619 * python/python.c (python_GdbMethods): Add
620 gdb.lookup_static_symbols method.
621 * NEWS: Mention gdb.lookup_static_symbols.
622
09ff83af
AB
6232019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
624
625 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
626 static block of current object file first. Also fix typo in
627 header comment.
628
eb2dd8df
AB
6292019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
630
631 * stack.c (set_last_displayed_sal): Delete.
632 (last_displayed_sal_valid): Delete.
633 (last_displayed_pspace): Delete.
634 (last_displayed_addr): Delete.
635 (last_displayed_symtab): Delete.
636 (last_displayed_line): Delete.
637 (class last_displayed_symtab_info_type): New.
638 (last_displayed_symtab_info): New static global variable.
639 (print_frame_info): Call methods on last_displayed_symtab_info.
640 (clear_last_displayed_sal): Update header comment, and make use of
641 last_displayed_symtab_info.
642 (last_displayed_sal_is_valid): Likewise.
643 (get_last_displayed_pspace): Likewise.
644 (get_last_displayed_addr): Likewise.
645 (get_last_displayed_symtab): Likewise.
646 (get_last_displayed_line): Likewise.
647 (get_last_displayed_sal): Likewise.
648 * stack.h (clear_last_displayed_sal): Update header comment.
649 (last_displayed_sal_is_valid): Likewise.
650 (get_last_displayed_pspace): Likewise.
651 (get_last_displayed_addr): Likewise.
652 (get_last_displayed_symtab): Likewise.
653 (get_last_displayed_line): Likewise.
654 (get_last_displayed_sal): Likewise.
655
62137775
AB
6562019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
657
658 * stack.c (frame_show_address): Convert return type to bool.
659 * stack.h (frame_show_address): Likewise, and update header
660 comment.
661
cf57ad6d
AB
6622019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
663
664 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
665 * unittests/vec-utils-selftests.c: New file.
666 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
667
0b026263
TT
6682019-11-10 Tom Tromey <tom@tromey.com>
669
670 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
671 (tui_highlight_win): Likewise.
672 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
673 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
674 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
675 Don't set can_highlight.
676
b049ce2d
TT
6772019-11-10 Tom Tromey <tom@tromey.com>
678
679 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
680 Remove unused declaration.
681
992a7040
TT
6822019-11-08 Tom Tromey <tromey@adacore.com>
683
684 * top.c (read_command_file): Update.
685 (command_line_input): Make return type const.
686 * python/py-gdb-readline.c: Update.
687 * linespec.c (decode_line_2): Update.
688 * defs.h (command_line_input): Make return type const.
689 * cli/cli-script.c (read_next_line): Make return type const.
690 * ada-lang.c (get_selections): Update.
691
ca3a04f6
CB
6922019-11-06 Christian Biesinger <cbiesinger@google.com>
693
694 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
695 * mi/mi-main.c (output_cores): Likewise.
696 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
697 (linux_xfer_osdata_modules): Likewise.
698 * remote.c (register_remote_support_xml): Likewise.
699 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
700 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
701
e0eac551
TT
7022019-11-06 Tom Tromey <tom@tromey.com>
703
704 * tui/tui-interp.c: Don't include readline.h.
705 * tui/tui-hooks.c: Don't include readline.h.
706 * symmisc.c: Include tilde.h, not readline.h.
707 * symfile.c: Include tilde.h, not readline.h.
708 * source.c: Include tilde.h, not readline.h.
709 * solib.c: Include tilde.h, not readline.h.
710 * psymtab.c: Include tilde.h, not readline.h.
711 * exec.c: Include tilde.h, not readline.h.
712 * corelow.c: Include tilde.h, not readline.h.
713 * cli/cli-dump.c: Include tilde.h, not readline.h.
714 * cli/cli-cmds.c: Don't include readline.h.
715
825165c5
TT
7162019-11-05 Tom Tromey <tom@tromey.com>
717
718 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
719 (tui_disassemble): Set addr_size.
720 (tui_disasm_window::set_contents): Use addr_size.
721
91ae903f
TT
7222019-11-05 Tom Tromey <tom@tromey.com>
723
724 * rust-lang.c (rust_language_defn): Update.
725 * python/py-value.c (valpy_string): Call c_get_string.
726 * p-lang.c (pascal_language_defn): Update.
727 * opencl-lang.c (opencl_language_defn): Update.
728 * objc-lang.c (objc_language_defn): Update.
729 * m2-lang.c (m2_language_defn): Update.
730 * language.c (unknown_language_defn, auto_language_defn): Update.
731 (default_get_string): Remove.
732 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
733 * go-lang.c (go_language_defn): Update.
734 * f-lang.c (f_language_defn): Update.
735 * d-lang.c (d_language_defn): Update.
736 * c-lang.c (c_language_defn, cplus_language_defn)
737 (asm_language_defn, minimal_language_defn): Update.
738 * ada-lang.c (ada_language_defn): Update.
739 * language.h (struct language_defn) <la_get_string>: Remove.
740 (LA_GET_STRING): Remove.
741 (default_get_string): Don't declare.
742
1df2f9ef
TT
7432019-11-05 Tom Tromey <tom@tromey.com>
744
745 * tui/tui-source.h (struct tui_source_window): Inline
746 constructor. Remove destructor.
747 <style_changed, m_observable>: Move to superclass.
748 * tui/tui-winsource.h (tui_copy_source_line): Declare.
749 (struct tui_source_window_base): Move private members to end.
750 <style_changed, m_observable>: Move from tui_source_window.
751 * tui/tui-winsource.c (tui_copy_source_line): Move from
752 tui-source.c. Rename from copy_source_line. Add special handling
753 for negative line number.
754 (tui_source_window_base::style_changed): Move from
755 tui_source_window.
756 (tui_source_window_base): Register observer.
757 (~tui_source_window_base): New.
758 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
759 rename.
760 (tui_source_window::set_contents): Use tui_copy_source_line.
761 (tui_source_window::tui_source_window): Move to tui-source.h.
762 (tui_source_window::~tui_source_window): Remove.
763 (tui_source_window::style_changed): Move to superclass.
764 * tui/tui-disasm.c (tui_disassemble): Create string file with
765 styling, when possible. Add "addr_size" parameter.
766 (tui_disasm_window::set_contents): Use tui_copy_source_line.
767 Don't compute maximum size.
768 (len_without_escapes): New function
769
5d051055
TT
7702019-11-05 Tom Tromey <tom@tromey.com>
771
772 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
773 std::string.
774 * tui/tui-winsource.c (tui_show_source_line): Update.
775 * tui/tui-source.c (tui_source_window::set_contents): Update.
776 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
777
ade7beea
CB
7782019-11-05 Christian Biesinger <cbiesinger@google.com>
779
780 * symtab.h (gdb_static_assert): Put && operator at the beginning
781 of the line instead of the end.
782
3573abe1
CB
7832019-11-04 Christian Biesinger <cbiesinger@google.com>
784
785 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
786 and sizeof (symbol).
787 * symtab.h: Add a static_assert for sizeof (partial_symbol).
788
dae8b3eb
RO
7892019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
790
791 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
792 * configure.host: Mark *-*-solaris2.10* obsolete.
793 * configure.tgt: Mark Solaris < 11 obsolete.
794 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
795 Update target triplet.
796
5df96a4e
TT
7972019-11-01 Tom Tromey <tromey@adacore.com>
798
799 * utils.c (print_sys_errmsg): Simplify.
800
b7481649
TT
8012019-11-01 Tom Tromey <tromey@adacore.com>
802
803 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
804
e48f6033
CB
8052019-11-01 Christian Biesinger <cbiesinger@google.com>
806
807 * configure: Regenerate.
808 * configure.ac: Remove check for strerror_r.
809 * gdbsupport/common.m4: Check for strerror_r.
810
bd5766ec
LM
8112019-11-01 Luis Machado <luis.machado@linaro.org>
812
813 PR gdb/25124
814
815 * arm-tdep.c (arm_per_objfile): Rename to ...
816 (arm_per_bfd): ... this.
817 (arm_objfile_data_key): Rename to ...
818 (arm_bfd_data_key): ... this.
819 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
820 data.
821 (arm_record_special_symbol): Likewise.
822
e1709896
AB
8232019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
824
825 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
826 end.
827 * c-typeprint.c (c_print_typedef): Likewise.
828 * f-typeprint.c (f_print_typedef): Likewise.
829 * m2-typeprint.c (m2_print_typedef): Likewise.
830 * p-typeprint.c (pascal_print_typedef): Likewise.
831 * rust-lang.c (rust_print_typedef): Likewise.
832 * symtab.c (print_symbol_info): Print a newline after calling
833 typedef_print.
834
165f8965
AB
8352019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
836
837 * symtab.c (info_module_cmdlist): New variable.
838 (info_module_command): New function.
839 (search_module_symbols): New function.
840 (info_module_subcommand): New function.
841 (struct info_modules_var_func_options): New struct.
842 (info_modules_var_func_options_defs): New variable.
843 (make_info_modules_var_func_options_def_group): New function.
844 (info_module_functions_command): New function.
845 (info_module_variables_command): New function.
846 (info_module_var_func_command_completer): New function.
847 (_initialize_symtab): Register new 'info module functions' and
848 'info module variables' commands.
849 * symtab.h (typedef symbol_search_in_module): New typedef.
850 (search_module_symbols): Declare new function.
851 * NEWS: Mention new commands.
852
59c35742
AB
8532019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
854
855 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
856 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
857 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
858 MODULES_DOMAIN.
859 (scan_partial_symbols): Only create partial module symbols for non
860 declarations.
861 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
862 and MODULES_DOMAIN.
863 * symtab.c (search_domain_name): Likewise.
864 (search_symbols): Likewise.
865 (print_symbol_info): Likewise.
866 (symtab_symbol_info): Likewise.
867 (info_modules_command): New function.
868 (_initialize_symtab): Register 'info modules' command.
869 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
870 * NEWS: Mention new 'info modules' command.
871
aed61d02
PW
8722019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
873
874 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
875 and $_gdb_maint_setting_str.
876
9ad9b77d
PW
8772019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
878
879 * cli/cli-cmds.c (setting_cmd, value_from_setting)
880 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
881 (str_value_from_setting, gdb_setting_str_internal_fn)
882 (gdb_maint_setting_str_internal_fn): New functions.
883 (_initialize_cli_cmds): Define the new convenience functions.
884 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
885 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
886
8d6efaa2
CB
8872019-10-31 Christian Biesinger <cbiesinger@google.com>
888
889 * agent.c (set_can_use_agent): When the setting is turned on,
890 look up agent symbols if we don't have them yet.
891 (agent_new_objfile): Don't look up agent symbols when the agent
892 setting is off.
893
33cb1647
CB
8942019-10-31 Christian Biesinger <cbiesinger@google.com>
895
896 * config.in: Regenerate.
897
b231e86a
CB
8982019-10-31 Christian Biesinger <cbiesinger@google.com>
899
900 * configure: Regenerate.
901 * configure.ac: Check for strerror_r.
902 * gdbsupport/common-utils.h (safe_strerror): Change return value
903 to const char * and document that this function is now threadsafe.
904 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
905 thread_local and call strerror_r, if available.
906 * utils.c (perror_string): Update.
907 (print_sys_errmsg): Update.
908
a2726d4f
LM
9092019-10-31 Luis Machado <luis.machado@linaro.org>
910
911 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
912 objfile_key.
913 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
914 objfile to fetch per-bfd data.
915 (arm_find_exidx_entry): Likewise.
916
75cafaa6
CB
9172019-10-31 Christian Biesinger <cbiesinger@google.com>
918
919 * gdbsupport/agent.c (debug_agent): Change type to bool.
920 (use_agent): Likewise.
921 (all_agent_symbols_look_up): Likewise.
922 (agent_loaded_p): Change return value to bool.
923 (agent_look_up_symbols): Update.
924 (agent_capability_check): Change return value to bool.
925 * gdbsupport/agent.h (agent_loaded_p): Likewise.
926 (debug_agent): Change type to bool.
927 (use_agent): Likewise.
928 (agent_capability_check): Change return value to bool.
929
808590ec
CB
9302019-10-30 Christian Biesinger <cbiesinger@google.com>
931
932 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
933 (build_minimal_symbol_hash_tables): Code to clear the table moved
934 to clear_minimal_symbol_hash_tables.
935 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
936 when needed.
937
f18ad8a1
SM
9382019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
939
940 * infcmd.c: Remove includes.
941 * infrun.c: Remove includes.
942
de93309a
SM
9432019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
944
945 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
946 (grow_vect): Remove declaration.
947 (ada_type_of_array): Remove declaration.
948 (ada_update_initial_language): Remove declaration.
949 (ada_fold_name): Remove declaration.
950 (ada_fill_in_ada_prototype): Remove declaration.
951 (user_select_syms): Remove declaration.
952 (get_selections): Remove declaration.
953 (ada_tag_type): Remove declaration.
954 (ada_value_tag): Remove declaration.
955 (ada_is_others_clause): Remove declaration.
956 (ada_in_variant): Remove declaration.
957 (ada_value_struct_elt): Remove declaration.
958 (ada_attribute_name): Remove declaration.
959 (ada_system_address_type): Remove declaration.
960 * ada-lang.c (ada_watch_location_expression): Make static.
961 (GROW_VECT): Move here from ada-lang.h.
962 (grow_vect): Make static.
963 (ada_update_initial_language): Make static.
964 (ada_fold_name): Make static.
965 (ada_type_of_array): Make static.
966 (encoded_ordered_before): Move up.
967 (sort_choices): Move up.
968 (print_signatures): Move up.
969 (ada_print_symbol_signature): Move up.
970 (get_selections): Move up and make static.
971 (user_select_syms): Move up and make static.
972 (ada_value_struct_elt): Move up and make static.
973 (ada_tag_type): Make static.
974 (ada_value_tag): Make static.
975 (ada_is_others_clause): Make static.
976 (ada_in_variant): Make static.
977 (ada_attribute_name): Make static.
978
cdc46a9f
SM
9792019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
980
981 * ada-lang.c: Remove includes.
982 * ada-typeprint.c: Remove includes.
983 * ada-valprint.c: Remove includes.
984
90421c56
SM
9852019-10-29 Simon Marchi <simon.marchi@efficios.com>
986
987 * addrmap.c: Add static assertions of type size, moved from
988 _initialize_addrmap.
989 (_initialize_addrmap): Remove.
990
31edb802
CB
9912019-10-29 Christian Biesinger <cbiesinger@google.com>
992
993 * coffread.c (record_minimal_symbol): Update.
994 (process_coff_symbol): Update.
995 * dbxread.c (read_dbx_symtab): Update.
996 * dwarf2read.c (add_partial_symbol): Update.
997 (fixup_go_packaging): Update.
998 (load_partial_dies): Update.
999 (new_symbol): Update.
1000 * elfread.c (record_minimal_symbol): Change signature to use
1001 gdb::string_view instead of name+len.
1002 (elf_symtab_read): Update.
1003 (elf_rel_plt_read): Update.
1004 * mdebugread.c (parse_partial_symbols): Update.
1005 (handle_psymbol_enumerators): Update.
1006 (new_symbol): Update.
1007 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1008 to use gdb::string_view instead of name+len.
1009 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1010 * psympriv.h (add_psymbol_to_list): Likewise.
1011 * psymtab.c (add_psymbol_to_bcache): Likewise.
1012 (add_psymbol_to_list): Likewise.
1013 * stabsread.c (define_symbol): Update.
1014 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1015 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1016 (symbol_set_names): Likewise.
1017 * xcoffread.c (scan_xcoff_symtab): Update.
1018
0c921b21
CB
10192019-10-29 Christian Biesinger <cbiesinger@google.com>
1020
1021 * symtab.h (symbol_set_names): Document that copy_name must be
1022 set to true for non-nullterminated strings.
1023 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1024 linkage_name if the entry was not found and we need to demangle.
1025
35e65c49
CB
10262019-10-29 Christian Biesinger <cbiesinger@google.com>
1027
1028 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1029 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1030 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1031 * gdbsupport/gdb_binary_search.h: New file.
1032
ed2a2229
CB
10332019-10-29 Christian Biesinger <cbiesinger@google.com>
1034
1035 * NEWS: Mention new --with-system-gdbinit-dir option.
1036 * config.in: Regenerate.
1037 * configure: Regenerate.
1038 * configure.ac: Add new option --with-system-gdbinit-dir.
1039 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1040 for a ".gdb" suffix.
1041 * main.c (get_init_files): Change system_gdbinit argument to
1042 a vector and return the files in SYSTEM_GDBINIT_DIR in
1043 addition to SYSTEM_GDBINIT.
1044 (captured_main_1): Update.
1045 (print_gdb_help): Update.
1046 * top.c (print_gdb_configuration): Also print the value of
1047 SYSTEM_GDBINIT_DIR.
1048
87f34879
CB
10492019-10-28 Christian Biesinger <cbiesinger@google.com>
1050
1051 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1052 that takes gdb::string_view arguments.
1053
30baf67b
TV
10542019-10-26 Tom de Vries <tdevries@suse.de>
1055
1056 * aarch64-linux-tdep.c: Fix typos in comments.
1057 * aarch64-tdep.c: Same.
1058 * ada-lang.c: Same.
1059 * amd64-nat.c: Same.
1060 * arc-tdep.c: Same.
1061 * arch/aarch64-insn.c: Same.
1062 * block.c: Same.
1063 * breakpoint.h: Same.
1064 * btrace.h: Same.
1065 * c-varobj.c: Same.
1066 * cli/cli-decode.c: Same.
1067 * cli/cli-script.c: Same.
1068 * cli/cli-utils.h: Same.
1069 * coff-pe-read.c: Same.
1070 * coffread.c: Same.
1071 * compile/compile-cplus-symbols.c: Same.
1072 * compile/compile-object-run.c: Same.
1073 * completer.c: Same.
1074 * corelow.c: Same.
1075 * cp-support.c: Same.
1076 * demangle.c: Same.
1077 * dwarf-index-write.c: Same.
1078 * dwarf2-frame.c: Same.
1079 * dwarf2-frame.h: Same.
1080 * eval.c: Same.
1081 * frame-base.h: Same.
1082 * frame.h: Same.
1083 * gdbcmd.h: Same.
1084 * gdbtypes.h: Same.
1085 * gnu-nat.c: Same.
1086 * guile/scm-objfile.c: Same.
1087 * i386-tdep.c: Same.
1088 * i386-tdep.h: Same.
1089 * infcall.c: Same.
1090 * infcall.h: Same.
1091 * linux-nat.c: Same.
1092 * m68k-tdep.c: Same.
1093 * macroexp.c: Same.
1094 * memattr.c: Same.
1095 * mi/mi-cmd-disas.c: Same.
1096 * mi/mi-getopt.h: Same.
1097 * mi/mi-main.c: Same.
1098 * minsyms.c: Same.
1099 * nat/aarch64-sve-linux-sigcontext.h: Same.
1100 * objfiles.h: Same.
1101 * ppc-linux-nat.c: Same.
1102 * ppc-linux-tdep.c: Same.
1103 * ppc-tdep.h: Same.
1104 * progspace.h: Same.
1105 * prologue-value.h: Same.
1106 * python/py-evtregistry.c: Same.
1107 * python/py-instruction.h: Same.
1108 * record-btrace.c: Same.
1109 * record-full.c: Same.
1110 * remote.c: Same.
1111 * rs6000-tdep.c: Same.
1112 * ser-tcp.c: Same.
1113 * sol-thread.c: Same.
1114 * sparc-sol2-tdep.c: Same.
1115 * sparc64-tdep.c: Same.
1116 * stabsread.c: Same.
1117 * symfile.c: Same.
1118 * symtab.h: Same.
1119 * target.c: Same.
1120 * tracepoint.c: Same.
1121 * tui/tui-data.h: Same.
1122 * tui/tui-io.c: Same.
1123 * tui/tui-win.c: Same.
1124 * tui/tui.c: Same.
1125 * unittests/rsp-low-selftests.c: Same.
1126 * user-regs.h: Same.
1127 * utils.c: Same.
1128 * utils.h: Same.
1129 * valarith.c: Same.
1130 * valops.c: Same.
1131 * valprint.c: Same.
1132 * valprint.h: Same.
1133 * value.c: Same.
1134 * value.h: Same.
1135 * varobj.c: Same.
1136 * x86-nat.h: Same.
1137 * xtensa-tdep.c: Same.
1138
1834d45f
AT
11392019-10-25 Ali Tamur <tamur@google.com>
1140
1141 * charset.c (find_charset_names): Reflect API change.
1142
5396ae17
CB
11432019-10-25 Christian Biesinger <cbiesinger@google.com>
1144
1145 * symtab.c (struct demangled_name_entry): Change demangled name
1146 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1147 part of the struct anymore.
1148 (symbol_set_names): No longer obstack allocate + copy the demangled
1149 name, just store the allocated name from bfd.
1150
93878f47
TT
11512019-10-25 Tom Tromey <tromey@adacore.com>
1152
1153 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1154 (bsearch_cie_cmp, add_cie): Remove.
1155 (find_cie): Reimplement.
1156 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1157 (dwarf2_build_frame_info): Update.
1158
7b71fc97
L
11592019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1160
1161 PR gdb/25126
1162 * symfile.c (reread_symbols): Call forget_cached_source_info to
1163 clear the stale source cache.
1164
cbb5a2ea
CB
11652019-10-24 Christian Biesinger <cbiesinger@google.com>
1166
1167 * configure: Regenerate.
1168 * configure.ac: Remove code that sets python_has_threads.
1169
71737c43
CB
11702019-10-24 Christian Biesinger <cbiesinger@google.com>
1171
1172 * config.in: Regenerate.
1173 * configure: Regenerate.
1174 * configure.ac: Remove the code that uses sed to get the python
1175 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1176
33d569b7
AB
11772019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1180 error paths.
1181
f16f7b7c
TT
11822019-10-23 Tom Tromey <tom@tromey.com>
1183
1184 * arc-tdep.c: Remove ".." from include.
1185 * frv-tdep.c: Remove ".." from include.
1186 * lm32-tdep.c: Remove ".." from include.
1187 * microblaze-tdep.c: Remove ".." from include.
1188 * or1k-tdep.h: Remove ".." from include.
1189 * s12z-tdep.c: Remove ".." from include.
1190 * Makefile.in (OPCODES_CFLAGS): Add comment.
1191 (TOP_CFLAGS): New variable.
1192 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1193
6999161a
TT
11942019-10-23 Tom Tromey <tom@tromey.com>
1195
1196 * Makefile.in (READLINE_DIR): Update.
1197
12e7c35e
TBA
11982019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1199
1200 * infcall.c (call_function_by_hand_dummy): Fix the function
1201 comment. And extract out a code section into...
1202 (reserve_stack_space): ...this new function.
1203
37055cad
TBA
12042019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1205
1206 * infcall.c (value_arg_coerce): Remove an unused parameter.
1207 (call_function_by_hand_dummy): Update the call to
1208 'value_arg_coerce'.
1209
39bcc47c
TBA
12102019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1211
1212 * infcall.c (call_function_by_hand_dummy): Refactor.
1213
bd888c0f
TBA
12142019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1215
1216 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1217
c12d372d
TT
12182019-10-23 Tom Tromey <tom@tromey.com>
1219
1220 * configure: Rebuild.
1221 * configure.ac: Don't check for sigprocmask.
1222 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1223
4d0b984b
TT
12242019-10-23 Tom Tromey <tom@tromey.com>
1225
1226 * configure: Rebuild.
1227 * acinclude.m4: Use m4_include, not sinclude.
1228
7e785608
TV
12292019-10-23 Tom de Vries <tdevries@suse.de>
1230
1231 PR breakpoints/24687
1232 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1233
403772ef
CB
12342019-10-22 Christian Biesinger <cbiesinger@google.com>
1235
1236 * symtab.c (struct demangled_name_entry) <language>: Change from
1237 bitfield to regular variable.
1238
3a494279
CB
12392019-10-22 Christian Biesinger <cbiesinger@google.com>
1240
1241 * symtab.c (struct demangled_name_entry): Add a constructor.
1242 (free_demangled_name_entry): New function to call the destructor
1243 for demangled_name_entry.
1244 (create_demangled_names_hash): Pass free_demangled_name_entry to
1245 htab_create_alloc.
1246 (symbol_set_names): Call placement new for demangled_name_entry.
1247 * utils.c: No longer include xxhash.h here, now that fast_hash
1248 is inlined in the header.
1249 * utils.h: Instead, include it here.
1250
ccb1ba62
CB
12512019-10-22 Christian Biesinger <cbiesinger@google.com>
1252
1253 * Makefile.in: Link with libxxhash.
1254 * config.in: Regenerate.
1255 * configure: Regenerate.
1256 * configure.ac: Search for libxxhash.
1257 * utils.c (fast_hash): Use xxhash if present.
1258
1a6ff1a9
CB
12592019-10-22 Christian Biesinger <cbiesinger@google.com>
1260
1261 * utils.h (fast_hash): New function.
1262 * symtab.c (hash_demangled_name_entry): Call new function
1263 fast_hash.
1264
7bb43059
CB
12652019-10-22 Christian Biesinger <cbiesinger@google.com>
1266
1267 * symtab.c (struct demangled_name_entry): Change type of mangled
1268 to gdb::string_view. Also adds a constructor that takes the
1269 mangled name.
1270 (hash_demangled_name_entry): Update.
1271 (eq_demangled_name_entry): Update.
1272 (free_demangled_name_entry): New function to call the destructor
1273 now that this is not a POD anymore.
1274 (create_demangled_names_hash): Pass free_demangled_name_entry to
1275 htab_create_alloc.
1276 (symbol_set_names): Update.
1277
7ba99d21
AT
12782019-10-21 Ali Tamur <tamu@google.com>
1279
1280 * dwarf2read.c (dir_index): Change type.
1281 (file_name_index): Likewise.
1282 (line_header::include_dir_at): Change comment and implementation on
1283 whether it is DWARF 5.
1284 (line_header::is_valid_file_index): New function.
1285 (line_header::file_name_at): Change comment and implementation on
1286 whether it is DWARF 5.
1287 (line_header::file_names): Change to private field renamed as
1288 m_file_names and introduce a new accessor method.
1289 (line_header::file_names_size): New method.
1290 (line_header::include_dirs): Change to private field and rename as
1291 m_include_dirs.
1292 (dw2_get_file_names_reader): Define local var at a smaller scope and
1293 reflect API change.
1294 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1295 (process_structure_scope): Likewise.
1296 (line_header::add_include_dir): Change message and reflect renaming.
1297 (line_header::add_file_name): Likewise.
1298 (read_formatted_entries): Handle DW_FORM_data16.
1299 (dwarf_decode_line_header): Fix line header length calculation.
1300 (psymtab_include_file_name): Change comment and API.
1301 (lnp_state_machine::m_file): Update comment and reflect type change.
1302 (lnp_state_machine::record_line): Reflect type change.
1303 (dwarf_decode_lines): Reflect API change.
1304 (file_file_name): Likewise.
1305 (file_full_name): Likewise.
1306
45f47c3a
AB
13072019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1308
1309 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1310
e5f3c0e3
TT
13112019-10-21 Tom Tromey <tom@tromey.com>
1312
1313 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1314
a0a461e5
TT
13152019-10-21 Tom Tromey <tom@tromey.com>
1316
1317 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1318 NM_H. Use AC_CONFIG_LINKS.
1319 * configure: Rebuild.
1320 * Makefile.in (NM_H): New variable.
1321 (generated_files): Add NM_H. Remove gcore.
1322 (nm.h, stamp-nmh): New targets.
1323
54d83b8d
TT
13242019-10-20 Tom Tromey <tom@tromey.com>
1325
1326 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1327 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1328 obsolete comment.
1329 (put_objfile_before): Now static.
1330
23771117
SM
13312019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1332
1333 * gdbsupport/common-utils.h (startswith): Change return type to
1334 bool.
1335
39ef2f62
CB
13362019-10-19 Christian Biesinger <cbiesinger@google.com>
1337
1338 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1339 * breakpoint.c (bp_locations_compare): Rename to...
1340 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1341 (update_global_location_list): Use std::sort instead of qsort.
1342 * buildsym.c (compare_line_numbers): Rename to...
1343 (lte_is_less_than): ...this, and change to std::sort semantics.
1344 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1345 instead of qsort.
1346 * disasm.c (compare_lines): Rename to...
1347 (line_is_less_than): ...this, and change to std::sort semantics.
1348 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1349 of qsort.
1350 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1351 (fde_is_less_than): ...this, and change to std::sort semantics.
1352 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1353 * mdebugread.c (compare_blocks):
1354 (block_is_less_than): ...this, and change to std::sort semantics.
1355 (sort_blocks): Call std::sort instead of qsort.
1356 * objfiles.c (qsort_cmp): Rename to...
1357 (sort_cmp): ...this, and change to std::sort semantics.
1358 (update_section_map): Call std::sort instead of qsort.
1359 * remote.c (compare_pnums): Remove.
1360 (map_regcache_remote_table): Call std::sort instead of qsort.
1361 * utils.c (compare_positive_ints): Remove.
1362 * utils.h (compare_positive_ints): Remove.
1363 * xcoffread.c (compare_lte): Remove.
1364 (arrange_linetable): Call std::sort instead of qsort.
1365
f71433ee
SDJ
13662019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1367
1368 * symfile.c (init_entry_point_info): Fix typo.
1369 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1370
85102364
TV
13712019-10-18 Tom de Vries <tdevries@suse.de>
1372
1373 * aarch64-tdep.c: Fix typos in comments.
1374 * ada-lang.c: Same.
1375 * ada-tasks.c: Same.
1376 * alpha-tdep.c: Same.
1377 * alpha-tdep.h: Same.
1378 * amd64-nat.c: Same.
1379 * amd64-windows-tdep.c: Same.
1380 * arc-tdep.c: Same.
1381 * arc-tdep.h: Same.
1382 * arch-utils.c: Same.
1383 * arm-nbsd-tdep.c: Same.
1384 * arm-tdep.c: Same.
1385 * ax-gdb.c: Same.
1386 * blockframe.c: Same.
1387 * btrace.c: Same.
1388 * c-varobj.c: Same.
1389 * coff-pe-read.c: Same.
1390 * coffread.c: Same.
1391 * cris-tdep.c: Same.
1392 * darwin-nat.c: Same.
1393 * dbxread.c: Same.
1394 * dcache.c: Same.
1395 * disasm.c: Same.
1396 * dtrace-probe.c: Same.
1397 * dwarf-index-write.c: Same.
1398 * dwarf2-frame-tailcall.c: Same.
1399 * dwarf2-frame.c: Same.
1400 * dwarf2read.c: Same.
1401 * eval.c: Same.
1402 * exceptions.c: Same.
1403 * fbsd-tdep.c: Same.
1404 * findvar.c: Same.
1405 * frame.c: Same.
1406 * frv-tdep.c: Same.
1407 * gnu-v3-abi.c: Same.
1408 * go32-nat.c: Same.
1409 * h8300-tdep.c: Same.
1410 * hppa-tdep.c: Same.
1411 * i386-linux-tdep.c: Same.
1412 * i386-tdep.c: Same.
1413 * ia64-libunwind-tdep.c: Same.
1414 * ia64-tdep.c: Same.
1415 * infcmd.c: Same.
1416 * infrun.c: Same.
1417 * linespec.c: Same.
1418 * linux-nat.c: Same.
1419 * linux-thread-db.c: Same.
1420 * machoread.c: Same.
1421 * mdebugread.c: Same.
1422 * mep-tdep.c: Same.
1423 * mn10300-tdep.c: Same.
1424 * namespace.c: Same.
1425 * objfiles.c: Same.
1426 * opencl-lang.c: Same.
1427 * or1k-tdep.c: Same.
1428 * osabi.c: Same.
1429 * ppc-linux-nat.c: Same.
1430 * ppc-linux-tdep.c: Same.
1431 * ppc-sysv-tdep.c: Same.
1432 * printcmd.c: Same.
1433 * procfs.c: Same.
1434 * record-btrace.c: Same.
1435 * record-full.c: Same.
1436 * remote-fileio.c: Same.
1437 * remote.c: Same.
1438 * rs6000-tdep.c: Same.
1439 * s12z-tdep.c: Same.
1440 * score-tdep.c: Same.
1441 * ser-base.c: Same.
1442 * ser-go32.c: Same.
1443 * skip.c: Same.
1444 * sol-thread.c: Same.
1445 * solib-svr4.c: Same.
1446 * solib.c: Same.
1447 * source.c: Same.
1448 * sparc-nat.c: Same.
1449 * sparc-sol2-tdep.c: Same.
1450 * sparc-tdep.c: Same.
1451 * sparc64-tdep.c: Same.
1452 * stabsread.c: Same.
1453 * stack.c: Same.
1454 * symfile.c: Same.
1455 * symtab.c: Same.
1456 * target-descriptions.c: Same.
1457 * target-float.c: Same.
1458 * thread.c: Same.
1459 * utils.c: Same.
1460 * valops.c: Same.
1461 * valprint.c: Same.
1462 * value.c: Same.
1463 * varobj.c: Same.
1464 * windows-nat.c: Same.
1465 * xcoffread.c: Same.
1466 * xstormy16-tdep.c: Same.
1467 * xtensa-tdep.c: Same.
1468
c5adaa19
TT
14692019-10-17 Tom Tromey <tromey@adacore.com>
1470
1471 * configure: Rebuild.
1472 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1473 in AC_CONFIG_FILES invocation.
1474 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1475 new-style config.status invocation.
1476
405feb71
TV
14772019-10-17 Tom de Vries <tdevries@suse.de>
1478
1479 * arm-nbsd-nat.c: Fix typos in comments.
1480 * arm-tdep.c: Same.
1481 * darwin-nat-info.c: Same.
1482 * dwarf2read.c: Same.
1483 * elfread.c: Same.
1484 * event-top.c: Same.
1485 * findvar.c: Same.
1486 * gdbtypes.c: Same.
1487 * hppa-tdep.c: Same.
1488 * i386-tdep.c: Same.
1489 * jit.c: Same.
1490 * main.c: Same.
1491 * mdebugread.c: Same.
1492 * moxie-tdep.c: Same.
1493 * nto-procfs.c: Same.
1494 * osabi.c: Same.
1495 * ppc-linux-tdep.c: Same.
1496 * remote.c: Same.
1497 * riscv-tdep.c: Same.
1498 * s390-tdep.c: Same.
1499 * sh-tdep.c: Same.
1500 * sparc-linux-tdep.c: Same.
1501 * sparc-nat.c: Same.
1502 * stack.c: Same.
1503 * target-descriptions.c: Same.
1504 * top.c: Same.
1505 * varobj.c: Same.
1506
befcd486
TT
15072019-10-16 Tom Tromey <tom@tromey.com>
1508
1509 * objfiles.h (struct objfile) <original_name>: Now const.
1510
17bfe554
CB
15112019-10-16 Christian Biesinger <cbiesinger@google.com>
1512
1513 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1514 pass on to sigsetjmp's second argument.
1515 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1516
950b7495
KS
15172019-10-16 Keith Seitz <keiths@redhat.com>
1518
1519 PR gdb/23567
1520 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1521 sections whose size is greater than the file size.
1522
ff371ec9
JW
15232019-10-16 Jim Wilson <jimw@sifive.com>
1524
1525 * riscv-tdep.c (riscv_gcc_target_options): New.
1526 (riscv_gnu_triplet_regexp): New.
1527 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1528 set_gdbarch_gnu_triplet_regexp.
1529
fec4e896
CB
15302019-10-16 Christian Biesinger <cbiesinger@google.com>
1531
1532 * Makefile.in: Add xml-builtin.h.
1533 * features/feature_to_c.sh: Add an include for xml-builtin.h
1534 to ensure that the compiler checks that the types match.
1535 * xml-builtin.h: New file.
1536 * xml-support.c (fetch_xml_builtin): Add missing const.
1537 * xml-support.h: Remove declaration of xml_builtins.
1538
d10eccaa
TV
15392019-10-16 Tom de Vries <tdevries@suse.de>
1540
1541 PR tdep/25096
1542 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1543 (amd64_classify_aggregate): ... here.
1544 (amd64_classify_aggregate_field): Handled fiels of nested structs
1545 recursively.
1546
745ff14e
TV
15472019-10-16 Tom de Vries <tdevries@suse.de>
1548
1549 PR tdep/24104
1550 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1551 that handles 'theclass'.
1552
791b7405
AB
15532019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1554
1555 * linespec.c (decode_digits_ordinary): Update comment.
1556 * make-target-delegates: No longer need to handle VEC case.
1557 * memrange.c (normalize_mem_ranges): Update comment.
1558 * namespace.c (add_using_directive): Update comment.
1559 * objc-lang.c (uniquify_strings): Update comment.
1560 * ppc-linux-nat.c (struct thread_points): Update comment.
1561 * probe.h (find_probes_in_objfile): Update comment.
1562 * target.h (enum flash_preserve_mode): Update comment.
1563 * varobj.c (varobj_restrict_range): Update comment.
1564 * varobj.h (varobj_list_children): Update comment.
1565
0dc32745
AB
15662019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1567
1568 * Makefile.in: Remove references to vec.h and vec.c.
1569 * aarch64-tdep.c: No longer include vec.h.
1570 * ada-lang.c: Likewise.
1571 * ada-lang.h: Likewise.
1572 * arm-tdep.c: Likewise.
1573 * ax.h: Likewise.
1574 * breakpoint.h: Likewise.
1575 * charset.c: Likewise.
1576 * cp-support.h: Likewise.
1577 * dtrace-probe.c: Likewise.
1578 * dwarf2read.c: Likewise.
1579 * extension.h: Likewise.
1580 * gdb_bfd.c: Likewise.
1581 * gdbsupport/gdb_vecs.h: Likewise.
1582 * gdbsupport/vec.c: Remove.
1583 * gdbsupport/vec.h: Remove.
1584 * gdbthread.h: Likewise.
1585 * guile/scm-type.c: Likewise.
1586 * inline-frame.c: Likewise.
1587 * machoread.c: Likewise.
1588 * memattr.c: Likewise.
1589 * memrange.h: Likewise.
1590 * namespace.h: Likewise.
1591 * nat/linux-btrace.h: Likewise.
1592 * osdata.c: Likewise.
1593 * parser-defs.h: Likewise.
1594 * progspace.h: Likewise.
1595 * python/py-type.c: Likewise.
1596 * record-btrace.c: Likewise.
1597 * rust-exp.y: Likewise.
1598 * solib-target.c: Likewise.
1599 * stap-probe.c: Likewise.
1600 * target-descriptions.c: Likewise.
1601 * target-memory.c: Likewise.
1602 * target.h: Likewise.
1603 * varobj.c: Likewise.
1604 * varobj.h: Likewise.
1605 * xml-support.h: Likewise.
1606
ae640021
AB
16072019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1608
1609 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1610 Update for new std::vector based implementation.
1611 (process_psymtab_comp_unit_reader): Likewise.
1612 (scan_partial_symbols): Likewise.
1613 (recursively_compute_inclusions): Likewise.
1614 (compute_compunit_symtab_includes): Likewise.
1615 (process_imported_unit_die): Likewise.
1616 (queue_and_load_dwo_tu): Likewise.
1617 (follow_die_sig_1): Likewise.
1618 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1619 (typedef dwarf2_per_cu_ptr): Remove.
1620 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1621 function.
1622 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1623 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1624 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1625 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1626 std::vector.
1627
55dfc88f
TT
16282019-10-15 Tom Tromey <tromey@adacore.com>
1629
1630 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1631 TID.
1632
96b49c5e
TT
16332019-10-15 Tom Tromey <tromey@adacore.com>
1634
1635 * windows-nat.c (windows_nat_target::fetch_registers)
1636 (windows_nat_target::store_registers): Rename "pid" to "tid".
1637
953cff56
TT
16382019-10-15 Tom Tromey <tromey@adacore.com>
1639
1640 * gdbarch.h, gdbarch.c: Rebuild.
1641 * gdbarch.sh (gcc_target_options): Change return type to
1642 std::string.
1643 * compile/compile.c (get_args): Update.
1644 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1645 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1646 std::string.
1647 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1648 std::string.
1649 * arch-utils.c (default_gcc_target_options): Return std::string.
1650 * arch-utils.h (default_gcc_target_options): Return std::string.
1651 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1652
81e6b8eb
CB
16532019-10-15 Christian Biesinger <cbiesinger@google.com>
1654
1655 * breakpoint.c (breakpoint_chain): Make static.
1656 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1657 of accessing breakpoint_chain.
1658
95da600f
CB
16592019-10-15 Christian Biesinger <cbiesinger@google.com>
1660
1661 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1662 to a gdb::function_view and return value to bool.
1663 * breakpoint.h (iterate_over_breakpoints): Likewise.
1664 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1665 (pop_dummy_frame): Update.
1666 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1667 (gdbscm_breakpoints): Update.
1668 * python/py-breakpoint.c (build_bp_list): Update.
1669 (gdbpy_breakpoints): Update.
1670 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1671 Update.
1672 (bpfinishpy_handle_stop): Update.
1673 (bpfinishpy_handle_exit): Update.
1674 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1675 (svr4_update_solib_event_breakpoints): Update.
1676
ba18312d
AA
16772019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1678
1679 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1680 when unwrapping single-field structs.
1681
6acc1a0b
SM
16822019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1683
1684 * dwarf2read.c: Remove includes.
1685
284782de
SM
16862019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1687
1688 * ui-out.c (ui_out::call_do_message): Silence
1689 -Wformat-nonliteral warning.
1690
073bbbb0
SM
16912019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1692
1693 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1694 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1695 include: readline/tilde.h.
1696
7b9a15e1
CB
16972019-10-12 Christian Biesinger <cbiesinger@google.com>
1698
1699 * remote.c (remote_target::get_trace_status): Remove declaration of
1700 trace_regblock_size.
1701
cc8dee1f
CB
17022019-10-12 Christian Biesinger <cbiesinger@google.com>
1703
1704 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1705 (show_user): Remove declaration of cmdlist.
1706 * cli/cli-cmds.h (max_user_call_depth): Declare.
1707 * cli/cli-script.c (execute_user_command): Remove declaration
1708 of max_user_call_depth.
1709
a83d4ef6
JW
17102019-10-11 Jim Wilson <jimw@sifive.com>
1711
5f93c5a6
JW
1712 * gdbsupport/print-utils.h (pulongest): Fix comment.
1713 (plongest): Likewise.
1714 (phex): Add missing comment, mention leading zeros.
1715 (phex_nz): Add mention of no leading zeros to comment.
1716
a83d4ef6
JW
1717 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1718 plongest instead of unsigned long long cast.
1719
26344e0c
CB
17202019-10-10 Christian Biesinger <cbiesinger@google.com>
1721
1722 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1723 for external_editor_command and gdbtk_test.
1724
c2c440a9
CB
17252019-10-10 Christian Biesinger <cbiesinger@google.com>
1726
1727 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1728 * varobj.c (varobjdebug): Move comment to...
1729 * varobj.h (varobjdebug): ...here, and declare.
1730
a31bff9d
TT
17312019-10-09 Tom Tromey <tom@tromey.com>
1732
1733 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1734 erase_data_content.
1735
7523da63
TT
17362019-10-09 Tom Tromey <tom@tromey.com>
1737
1738 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1739 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1740 * tui/tui-command.c (tui_cmd_window::resize)
1741 (tui_refresh_cmd_win): Update.
1742 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1743 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1744 * tui/tui-data.c (~tui_gen_win_info): Remove.
1745 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1746 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1747 (tui_redisplay_readline, tui_mld_flush)
1748 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1749 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1750 (tui_data_window::erase_data_content)
1751 (tui_data_item_window::rerender)
1752 (tui_data_item_window::refresh_window): Update.
1753 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1754 (box_win, tui_gen_win_info::make_window)
1755 (tui_gen_win_info::make_visible): Update.
1756 (tui_delete_win): Remove.
1757 * tui/tui-winsource.c
1758 (tui_source_window_base::do_erase_source_content): Update.
1759 (tui_show_source_line, tui_source_window_base::update_tab_width)
1760 (tui_source_window_base::update_exec_info): Update.
1761 * tui/tui-data.h (struct curses_deleter): New.
1762 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1763 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1764
a7798e7f
TT
17652019-10-09 Tom Tromey <tom@tromey.com>
1766
1767 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1768
5c45899e
TT
17692019-10-09 Tom Tromey <tom@tromey.com>
1770
1771 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1772 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1773
6d7fd9aa
TT
17742019-10-09 Tom Tromey <tom@tromey.com>
1775
1776 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1777 window height directly.
1778 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1779 declare.
1780 * tui/tui-layout.c (tui_default_win_height): Remove.
1781 (tui_default_win_viewport_height): Remove.
1782
d2dd1084
TT
17832019-10-09 Tom Tromey <tom@tromey.com>
1784
1785 * tui/tui.h: Remove comments.
1786
cff32449
TV
17872019-10-09 Tom de Vries <tdevries@suse.de>
1788
1789 * python/lib/gdb/printer/bound_registers.py: Use
1790 '^builtin_type_bound128' as regexp argument for
1791 add_builtin_pretty_printer.
1792
6a25e8a2
CB
17932019-10-09 Christian Biesinger <cbiesinger@google.com>
1794
1795 * guile/guile.c (guile_extension_script_ops): Remove forward
1796 declaration and mark as static.
1797 (guile_script_ops): Likewise.
1798 (extension_language_guile): Move further down in the file so
1799 it can reference the definitions for guile_{extension_,}script_ops.
1800
6d9d6da4
AA
18012019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1802
1803 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1804 except SORTL, DFLTCC, and KDSA.
1805
3abea05d
TT
18062019-10-08 Tom Tromey <tromey@adacore.com>
1807
1808 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1809 (struct safe_symbol_file_add_args): Remove.
1810
dde996e2
TT
18112019-10-08 Tom Tromey <tromey@adacore.com>
1812
1813 * windows-nat.c: Don't include buildsym-legacy.h.
1814
cd6fdaa1
TT
18152019-10-08 Tom Tromey <tromey@adacore.com>
1816
1817 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1818
79bb1944
CB
18192019-10-08 Christian Biesinger <cbiesinger@google.com>
1820
1821 * gdbtypes.c (overload_debug): Move comment to header.
1822 * gdbtypes.h (overload_debug): Declare.
1823 * valops.c: Remove declaration of overload_debug, instead
1824 include gdbtypes.h.
1825
34916edc
CB
18262019-10-08 Christian Biesinger <cbiesinger@google.com>
1827
1828 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1829 through _().
1830 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1831 move comment...
1832 * language.h (lang_frame_mismatch_warn): ... here. Also add
1833 declaration.
1834 * top.c (lang_frame_mismatch_warn): Remove declaration.
1835 (check_frame_language_change): Pass lang_frame_mismatch_warn
1836 through _().
1837
bad5c026
CB
18382019-10-07 Christian Biesinger <cbiesinger@google.com>
1839
1840 * c-lang.h (vtbl_ptr_name): Declare.
1841 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1842 it from the header.
1843 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1844
51f1fdc3
CB
18452019-10-07 Christian Biesinger <cbiesinger@google.com>
1846
1847 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1848 gdb_static_assert.
1849
30d1f018
WP
18502019-10-07 Weimin Pan <weimin.pan@oracle.com>
1851
606813d5
WP
1852 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1853 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
1854 * ctfread.c: New file.
1855 * ctfread.h: New file.
1856 * elfread.c: Include ctfread.h.
1857 (struct elfinfo text_p): New member ctfsect.
1858 (elf_locate_sections): Mark CTF section.
1859 (elf_symfile_read): Call elfctf_build_psymtabs.
1860 * Makefile.in (LIBCTF): Add.
1861 (CLIBS): Use it.
1862 (CDEPS): Likewise.
1863 (DIST): Add ctfread.c.
606813d5
WP
1864
18652019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1866
1867 * ctfread.c (struct nextfield): Renamed to ...
1868 (struct ctf_nextfield): ... this.
1869 (struct field_info): Renamed to ...
1870 (strut ctf_field_info): ... this.
1871 (attach_fields_to_type): Update for renamed structures.
1872 (ctf_add_member_cb): Likewise.
1873 (ctf_add_enum_member_cb): Likewise.
1874 (process_struct_members): Likewise.
1875 (process_enum_type): Likewise.
30d1f018 1876
518fe38c
WP
18772019-10-07 Weimin Pan <weimin.pan@oracle.com>
1878
1879 * tracectf.h: Rename, was ctf.h.
1880 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1881 * tracefile.c: Likewise.
1882 * tracepoint.c: Remove unused include ctf.h.
1883 * mi/mi-main.c: Likewise.
1884 * Makefile.in Replace ctf.c with tracectf.c.
1885
225f296a
JB
18862019-10-06 Joel Brobecker <brobecker@adacore.com>
1887
1888 * version.in: Change version number to "9.0.50.DATE-git".
1889
77c2dba3
TT
18902019-10-03 Tom Tromey <tom@tromey.com>
1891
1892 PR rust/24976:
1893 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1894
179aed7f
AB
18952019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1896
1897 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1898 cp_search_name_hash.
1899 * NEWS: Add entry about nested function support.
1900
0a4b0913
AB
19012019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1902 Andrew Burgess <andrew.burgess@embecosm.com>
1903
1904 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1905 for nested static variables when searchin VAR_DOMAIN.
1906 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1907 global scope, update comment.
1908 (add_partial_subprogram): Call add_partial_subprogram recursively
1909 for nested subroutines when processinng Fortran.
1910 (load_partial_dies): Process the child entities of a subprogram
1911 when processing Fortran.
1912 (partial_die_parent_scope): Handle building scope
1913 for Fortran nested functions.
1914 (process_die): Record that nested functions have a scope.
1915 (new_symbol): Always record Fortran subprograms on the global
1916 symbol list.
1917 (determine_prefix): How to build the prefix for Fortran
1918 subprograms.
1919
d8c06f22
AB
19202019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1921
1922 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1923 have just sent the thread a SIGSTOP and are waiting for it to
1924 arrive.
1925
a8b3b8e9
AB
19262019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1927
1928 * btrace.c (btrace_add_pc): Remove whitespace before the template
1929 parameter in 'std::vector <...>'.
1930 (parse_xml_btrace_block): Likewise.
1931 (btrace_maint_decode_pt): Likewise.
1932 (btrace_maint_update_packets): Likewise.
1933 (btrace_maint_print_packets): Likewise.
1934 * btrace.h (struct btrace_maint_info): Likewise.
1935 * dwarf2read.c (struct type_unit_group): Likewise.
1936 (build_type_psymtabs_reader): Likewise.
1937 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1938 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1939 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1940
4d825eab
TV
19412019-10-03 Tom de Vries <tdevries@suse.de>
1942
1943 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1944 the first line of the help text for set/show style metadata.
1945
80fd2826
TT
19462019-10-02 Tom Tromey <tromey@adacore.com>
1947
1948 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1949 * gdbsupport/common-inferior.c: New file.
1950 * infcmd.c (startup_with_shell): Don't define.
1951 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1952 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1953 * inferior.h (startup_with_shell): Don't declare.
1954
70054538
CB
19552019-10-02 Christian Biesinger <cbiesinger@google.com>
1956
1957 * gdbsupport/gdb_assert.h: Include errors.h.
1958 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1959
37f6a7f4
TT
19602019-10-02 Tom Tromey <tromey@adacore.com>
1961
1962 * NEWS: Add $_ada_exception entry.
1963 * ada-lang.c (struct ada_catchpoint): Add constructor.
1964 <m_kind>: New member.
1965 (allocate_location_exception, re_set_exception): Remove
1966 "ex" parameter.
1967 (should_stop_exception): Compute $_ada_exception.
1968 (check_status_exception, print_it_exception)
1969 (print_one_exception, print_mention_exception): Remove
1970 "ex" parameter.
1971 (allocate_location_catch_exception, re_set_catch_exception)
1972 (check_status_exception, print_it_catch_exception)
1973 (print_one_catch_exception, print_mention_catch_exception)
1974 (print_recreate_catch_exception)
1975 (allocate_location_catch_exception_unhandled)
1976 (re_set_catch_exception_unhandled)
1977 (check_status_exception, print_it_catch_exception_unhandled)
1978 (print_one_catch_exception_unhandled)
1979 (print_mention_catch_exception_unhandled)
1980 (print_recreate_catch_exception_unhandled)
1981 (allocate_location_catch_assert, re_set_catch_assert)
1982 (check_status_assert, print_it_catch_assert)
1983 (print_one_catch_assert, print_mention_catch_assert)
1984 (print_recreate_catch_assert)
1985 (allocate_location_catch_handlers, re_set_catch_handlers)
1986 (check_status_handlers, print_it_catch_handlers)
1987 (print_one_catch_handlers, print_mention_catch_handlers)
1988 (print_recreate_catch_handlers): Remove.
1989 (create_ada_exception_catchpoint): Update.
1990 (initialize_ada_catchpoint_ops): Update.
1991
fccf9de1
TT
19922019-10-02 Tom Tromey <tromey@adacore.com>
1993
1994 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1995 (create_excep_cond_exprs): Simplify exception string computation.
1996 (ada_exception_catchpoint_cond_string): Likewise.
1997
4b610737
TT
19982019-10-02 Tom Tromey <tromey@adacore.com>
1999
2000 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2001 * ada-lang.c (lesseq_defined_than): Handle
2002 LOC_STATIC.
2003 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2004 parameter.
2005 (dwarf2_has_info): Likewise.
2006 (new_symbol): Set maybe_copied on symbol when
2007 appropriate.
2008 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2009 parameter.
2010 <can_copy>: New member.
2011 * elfread.c (record_minimal_symbol): Set maybe_copied
2012 on symbol when appropriate.
2013 (elf_symfile_read): Update call to dwarf2_has_info.
2014 * minsyms.c (lookup_minimal_symbol_linkage): New
2015 function.
2016 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2017 * symtab.c (get_symbol_address, get_msymbol_address):
2018 New functions.
2019 * symtab.h (get_symbol_address, get_msymbol_address):
2020 Declare.
2021 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2022 maybe_copied.
2023 (struct symbol, struct minimal_symbol) <maybe_copied>:
2024 New member.
2025
1dd58850
TT
20262019-10-02 Tom Tromey <tromey@adacore.com>
2027
2028 * source.c (struct current_source_location): New.
2029 (current_source_key): New global.
2030 (current_source_symtab, current_source_line)
2031 (current_source_pspace): Remove.
2032 (get_source_location): New function.
2033 (get_current_source_symtab_and_line)
2034 (set_default_source_symtab_and_line)
2035 (set_current_source_symtab_and_line)
2036 (clear_current_source_symtab_and_line, select_source_symtab)
2037 (info_source_command, print_source_lines_base)
2038 (info_line_command, search_command_helper, _initialize_source):
2039 Update.
2040
5c281dbb
TT
20412019-10-02 Tom Tromey <tromey@adacore.com>
2042
2043 * source.c (select_source_symtab): Don't call
2044 decode_line_with_current_source.
2045
d3d32391
AB
20462019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2047
2048 * symtab.c (lookup_global_symbol): Search global block.
2049
38583298
TT
20502019-10-02 Tom Tromey <tromey@adacore.com>
2051
2052 * coffread.c (process_coff_symbol): Update.
2053 * dwarf2read.c (var_decode_location, new_symbol): Update.
2054 * mdebugread.c (parse_symbol): Update.
2055 * objfiles.c (relocate_one_symbol): Update.
2056 * stabsread.c (define_symbol, fix_common_block)
2057 (scan_file_globals): Update.
2058 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2059 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2060 * xcoffread.c (process_xcoff_symbol): Update.
2061
9344c18f
AA
20622019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2063
2064 * MAINTAINERS: Update my email address.
2065
df07e2c7
AB
20662019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2067
2068 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2069 std::vector.
2070 (build_type_psymtabs_reader): Update for std::vector.
2071 (build_type_psymtab_dependencies): Likewise.
2072 * dwarf2read.h: Remove use of DEF_VEC_P.
2073 (typedef sig_type_ptr): Delete.
2074
554ac434
AB
20752019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2076
2077 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2078 to std::vector.
2079 (btrace_maint_decode_pt): Likewise, and move allocation of the
2080 vector outside of the loop.
2081 (btrace_maint_update_packets): Update to handle change from VEC to
2082 std::vector.
2083 (btrace_maint_print_packets): Likewise.
2084 (maint_info_btrace_cmd): Likewise.
2085 * btrace.h: Remove use of DEF_VEC_O.
2086 (typedef btrace_pt_packet_s): Delete.
2087 (struct btrace_maint_info) <packets>: Change fromm VEC to
2088 std::vector.
2089 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2090
46f29a9a
AB
20912019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2092
2093 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2094 make accesses into the vector constant references.
2095 (btrace_add_pc): Update for std::vector.
2096 (btrace_stitch_bts): Likewise.
2097 (parse_xml_btrace_block): Likewise.
2098 (btrace_maint_update_packets): Likewise.
2099 (btrace_maint_print_packets): Likewise.
2100 (maint_info_btrace_cmd): Likewise.
2101 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2102 std::vector.
2103 (btrace_data::empty): Likewise.
2104 (btrace_data_append): Likewise.
2105 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2106 (typedef btrace_block_s): Delete.
2107 (struct btrace_block): Add constructor.
2108 (struct btrace_data_bts) <blocks>: Change to std::vector.
2109 * nat/linux-btrace.c (perf_event_read_bts): Update for
2110 std::vector.
2111 (linux_read_bts): Likewise.
2112
d770d56f
TT
21132019-10-01 Tom Tromey <tom@tromey.com>
2114
2115 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2116
9d636d67
TT
21172019-10-01 Tom Tromey <tom@tromey.com>
2118
2119 * stack.c (print_frame, info_frame_command_core): Use
2120 styled_string.
2121 * linux-thread-db.c (try_thread_db_load_1)
2122 (try_thread_db_load_from_pdir_1): Use styled_string.
2123 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2124 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2125 (maybe_print_unsupported_script_warning)
2126 (maybe_print_script_not_found_warning): Use styled_string.
2127 * ada-lang.c (user_select_syms): Use styled_string.
2128
7f6aba03
TT
21292019-10-01 Tom Tromey <tom@tromey.com>
2130
2131 * p-lang.c (pascal_printstr): Use metadata style.
2132 * value.c (show_convenience): Use metadata style.
2133 * valprint.c (valprint_check_validity, val_print_optimized_out)
2134 (val_print_not_saved, val_print_unavailable)
2135 (val_print_invalid_address, generic_val_print, val_print)
2136 (value_check_printable, val_print_array_elements): Use metadata
2137 style.
2138 * ui-out.h (class ui_out) <field_fmt>: New overload.
2139 <do_field_fmt>: Add style parameter.
2140 * ui-out.c (ui_out::field_fmt): New overload.
2141 * typeprint.c (type_print_unknown_return_type)
2142 (val_print_not_allocated, val_print_not_associated): Use metadata
2143 style.
2144 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2145 parameter.
2146 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2147 * tracepoint.c (tvariables_info_1): Use metadata style.
2148 * stack.c (print_frame_arg, print_frame_info, print_frame)
2149 (info_frame_command_core): Use metadata style.
2150 * skip.c (info_skip_command): Use metadata style.
2151 * rust-lang.c (rust_print_enum): Use metadata style.
2152 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2153 metadata style.
2154 * python/py-framefilter.c (py_print_single_arg): Use metadata
2155 style.
2156 * printcmd.c (do_one_display, print_variable_and_value): Use
2157 metadata style.
2158 * p-valprint.c (pascal_val_print)
2159 (pascal_object_print_value_fields): Use metadata style.
2160 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2161 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2162 parameter.
2163 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2164 * m2-valprint.c (m2_print_long_set): Use metadata style.
2165 * m2-typeprint.c (m2_print_type): Use metadata style.
2166 * infcmd.c (print_return_value_1): Use metadata style.
2167 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2168 * f-valprint.c (info_common_command_for_block): Use metadata
2169 style.
2170 * f-typeprint.c (f_type_print_base): Use metadata style.
2171 * expprint.c (print_subexp_standard): Use metadata style.
2172 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2173 * cli/cli-style.h (class cli_style_option): Add constructor.
2174 (metadata_style): Declare.
2175 * cli/cli-style.c (metadata_style): New global.
2176 (_initialize_cli_style): Register metadata style.
2177 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2178 parameter.
2179 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2180 * c-typeprint.c (c_type_print_base_struct_union)
2181 (c_type_print_base_1): Use metadata style.
2182 * breakpoint.c (watchpoint_value_print)
2183 (print_one_breakpoint_location): Use metadata style.
2184 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2185 style.
2186 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2187 style.
2188 * ada-valprint.c (val_print_packed_array_elements, printstr)
2189 (print_field_values, ada_val_print_ref, ada_val_print): Use
2190 metadata style.
2191 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2192 style.
2193 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2194 style.
2195 * ada-lang.c (user_select_syms): Use metadata style.
2196
14309bb6
TT
21972019-10-01 Tom Tromey <tom@tromey.com>
2198
2199 * cli/cli-cmds.c (pwd_command): Style output.
2200
6a831f06
PA
22012019-10-01 Pedro Alves <palves@redhat.com>
2202 Tom Tromey <tom@tromey.com>
2203
2204 * symtab.c (print_symbol_info): Use %ps.
2205 (print_msymbol_info): Use %ps.
2206 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2207 * printcmd.c (print_variable_and_value): Use %ps.
2208 * macrocmd.c (show_pp_source_pos): Use %ps.
2209 * infrun.c (print_exited_reason): Use ui_out::message.
2210 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2211 (describe_other_breakpoints): Use ui_out::message and new
2212 formats.
2213 (say_where): Use new formats.
2214 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2215 and new formats.
2216
2a3c1174
PA
22172019-10-01 Pedro Alves <palves@redhat.com>
2218 Tom Tromey <tom@tromey.com>
2219
2220 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2221 (test_gdb_formats): New function.
2222 (run_tests): Call it.
2223 (test_format_specifier): Update.
2224 * utils.h (fputs_filtered): Update comment.
2225 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2226 (fputs_styled_unfiltered): Declare.
2227 * utils.c (fputs_styled_unfiltered): New function.
2228 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2229 (vfprintf_filtered): Update.
2230 (vfprintf_unfiltered, vprintf_filtered): Update.
2231 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2232 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2233 disallow_ui_out_field>: New constants.
2234 (enum class field_kind): New.
2235 (struct base_field_s, struct signed_field_s): New.
2236 (signed_field): New function.
2237 (struct string_field_s): New.
2238 (string_field): New function.
2239 (struct styled_string_s): New.
2240 (styled_string): New function.
2241 (class ui_out) <message>: Add comment.
2242 <vmessage, call_do_message>: New methods.
2243 <do_message>: Add style parameter.
2244 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2245 methods.
2246 (ui_out::message): Rewrite.
2247 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2248 parameter.
2249 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2250 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2251 gdb_extensions parameter.
2252 (class format_piece): Add parameter to constructor.
2253 (n_int_args): New field.
2254 * gdbsupport/format.c (format_pieces::format_pieces): Add
2255 gdb_extensions parameter. Handle '*'.
2256 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2257 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2258 vfprintf_styled_no_gdbfmt.
2259 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2260 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2261 unfiltered output.
2262 * ui-style.h (struct ui_file_style) <ptr>: New method.
2263
0dfe5bfb
TT
22642019-10-01 Tom Tromey <tom@tromey.com>
2265
2266 * unittests/format_pieces-selftests.c: Update. Add final format.
2267 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2268 empty literal pieces.
2269
e43b10e1
TT
22702019-10-01 Tom Tromey <tom@tromey.com>
2271
2272 * ui-out.h (enum class ui_out_style_kind): Remove.
2273 (class ui_out) <field_string, field_stsream, do_field_string>:
2274 Change type of "style".
2275 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2276 (ui_out::field_string): Update.
2277 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2278 of "style".
2279 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2280 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2281 * stack.c (print_frame_arg, print_frame_info, print_frame):
2282 Update.
2283 * source.c (print_source_lines_base): Update.
2284 * solib.c (info_sharedlibrary_command): Update.
2285 * skip.c (info_skip_command): Update.
2286 * record-btrace.c (btrace_call_history_src_line)
2287 (btrace_call_history): Update.
2288 * python/py-framefilter.c (py_print_frame): Update.
2289 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2290 "style".
2291 * mi/mi-out.c (mi_ui_out::do_table_header)
2292 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2293 (mi_ui_out::do_field_string): Update.
2294 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2295 Update.
2296 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2297 "style".
2298 * cli-out.c (cli_ui_out::do_table_header)
2299 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2300 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2301 (cli_ui_out::do_field_fmt): Update.
2302 * breakpoint.c (print_breakpoint_location): Update.
2303 (update_static_tracepoint): Update.
2304
cd7c32c3
PW
23052019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2306
2307 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2308 conversion of gdb_datadir.
2309 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2310 remove not needed c_str ().
2311
8fe0f950
AT
23122019-09-30 Ali Tamur <tamur@google.com>
2313
2314 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2315 (dwarf2_string_attr): Likewise.
2316
5f48f8f3
AT
23172019-09-30 Ali Tamur <tamur@google.com>
2318
2319 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2320 (process_full_type_unit): Likewise.
2321 (dump_die_shallow): Likewise.
2322 (cu_debug_loc_section): Likewise.
2323
6fb08628
CB
23242019-09-28 Christian Biesinger <cbiesinger@google.com>
2325
2326 * minsyms.c (compare_minimal_symbols): Rename to...
2327 (minimal_symbol_is_less_than): ...this, and adjust to STL
2328 conventions (return bool, take arguments as references)
2329 (minimal_symbol_reader::install): Call std::sort instead
2330 of qsort.
2331
c7ee338a
CB
23322019-09-29 Christian Biesinger <cbiesinger@google.com>
2333
2334 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2335 hash and why.
2336 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2337 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2338
703a86c2
SM
23392019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2340
2341 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2342 * psympriv.h (add_psymbol_to_list): Move comment here and update
2343 it.
2344
0df0352a
TV
23452019-09-29 Tom de Vries <tdevries@suse.de>
2346
2347 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2348 Use $tmpdir/$(basename "$output_file").dwz instead of
2349 "${output_file}.dwz".
2350
ad75efa6
SM
23512019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2352
2353 PR gdb/25045
2354 * hppa-linux-nat.c: Include gdbarch.h.
2355
ececd218
CB
23562019-09-26 Christian Biesinger <cbiesinger@google.com>
2357
2358 * blockframe.c (find_pc_partial_function): Change return type to bool.
2359 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2360 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2361 (stub_gnu_ifunc_resolve_name): Likewise.
2362 * symtab.c (compare_filenames_for_search): Likewise.
2363 (compare_glob_filenames_for_search): Likewise.
2364 (matching_obj_sections): Likewise.
2365 (symbol_matches_domain): Likewise.
2366 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2367 (find_line_pc): Change return type to bool.
2368 (find_line_pc_range): Likewise.
2369 (producer_is_realview): Likewise.
2370 * symtab.h (symbol_matches_domain): Likewise.
2371 (find_pc_partial_function): Likewise.
2372 (find_pc_line_pc_range): Likewise.
2373 (in_gnu_ifunc_stub): Likewise.
2374 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2375 (find_line_pc): Likewise.
2376 (find_line_pc_range): Likewise.
2377 (matching_obj_sections): Likewise.
2378 (find_line_symtab): Change out parameter to bool.
2379 (producer_is_realview): Change return type to bool.
2380 (compare_filenames_for_search): Likewise.
2381 (compare_glob_filenames_for_search): Likewise.
2382
27a900b8
TT
23832019-09-26 Tom Tromey <tom@tromey.com>
2384
2385 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2386 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2387 * gdb_usleep.h: Remove.
2388 * gdb_usleep.c: Remove.
2389 * utils.c: Don't include gdb_usleep.h.
2390
5d63b30a
TT
23912019-09-26 Tom Tromey <tromey@adacore.com>
2392
2393 * python/py-type.c (type_to_type_object): Call check_typedef
2394 for stub types.
2395
12904d37
TT
23962019-09-26 Tom Tromey <tom@tromey.com>
2397
2398 * utils.h (initialize_utils): Don't declare.
2399 * top.c (gdb_init): Don't call initialize_utils.
2400 * utils.c (initialize_utils): Remove. Move contents...
2401 (_initialize_utils): ... here.
2402
858f25f0
TT
24032019-09-25 Tom Tromey <tom@tromey.com>
2404
2405 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2406 * utils.h (make_hex_string): Don't declare.
2407 * utils.c (make_hex_string): Remove.
2408
3d435220
TV
24092019-09-24 Tom de Vries <tdevries@suse.de>
2410
2411 PR gdb/23815
2412 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2413 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2414
ddd44b70
DD
24152019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2416
2417 * NEWS: Mention new simulator port for PRU.
2418
f945dedf
CB
24192019-09-23 Christian Biesinger <cbiesinger@google.com>
2420
2421 * ada-exp.y (write_object_remaining): Update.
2422 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2423 and eliminate the static buffer.
2424 (ada_decode_symbol): Update.
2425 (ada_la_decode): Update.
2426 (ada_sniff_from_mangled_name): Update.
2427 (is_valid_name_for_wild_match): Update.
2428 (ada_lookup_name_info::matches): Update and simplify.
2429 (name_matches_regex): Update.
2430 (ada_add_global_exceptions): Update.
2431 * ada-lang.h (ada_decode): Update signature.
2432 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2433 * dwarf-index-write.c (debug_names::insert): Update.
2434
7ab78ccb
SM
24352019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2436
2437 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2438 formatting.
2439
9252448b
SM
24402019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2441
2442 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2443 Change "nonzero" to "true" in documentation.
2444
626ca2c0
CB
24452019-09-20 Christian Biesinger <cbiesinger@google.com>
2446
2447 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2448 (_initialize_darwin_solib): Don't set
2449 darwin_so_ops.lookup_lib_global_symbol.
2450 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2451 set_gdbarch_iterate_over_objfiles_in_search_order.
2452 (elf_lookup_lib_symbol): Rename to...
2453 (svr4_iterate_over_objfiles_in_search_order): this, and update
2454 to iterate semantics.
2455 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2456 * solib.c (solib_global_lookup): Remove.
2457 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2458 (solib_global_lookup): Remove.
2459 * symtab.c (lookup_global_or_static_symbol): Remove call to
2460 solib_global_lookup.
2461
5a3a0d63
JB
24622019-09-20 Joel Brobecker <brobecker@adacore.com>
2463
2464 * NEWS: Move entries about default MI version now being
2465 version 3, and about the GDB/MI fix for multi-location
2466 breakpoints to the "since GDB 8.3" section.
2467
ffea1427
JB
24682019-09-20 Joel Brobecker <brobecker@adacore.com>
2469
2470 GDB 8.3.1 released.
2471
abf516c6
UW
24722019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2473
2474 * NEWS: Mention that Cell/B.E. debugging support was removed.
2475 * MAINTAINERS: Remove spu target.
2476
2477 * config/djgpp/fnchange.lst: Remove entries for removed files.
2478
2479 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2480 spu-multiarch.o, and spu-tdep.o.
2481 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2482 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2483 spu-multiarch.c, and spu-tdep.c.
2484 * spu-linux-nat.c: Remove file.
2485 * spu-multiarch.c: Remove file.
2486 * spu-tdep.c: Remove file.
2487 * spu-tdep.h: Remove file.
2488 * solib-spu.c: Remove file.
2489 * solib-spu.h: Remove file.
2490
2491 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2492 * configure.nat (spu-linux): Remove.
2493 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2494 solib-multiarch.o from gdb_target_obs.
2495 (spu*-*-*): Remove.
2496
2497 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2498 feature flag.
2499 (ppc_linux_no_features): Update.
2500 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2501 Cell/B.E. support.
2502 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2503 (tdesc_powerpc_cell64l): Likewise.
2504 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2505 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2506 Cell/B.E. support.
2507 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2508 Do not include "features/rs6000/powerpc-cell32l.c" or
2509 "features/rs6000/powerpc-cell64l.c".
2510 (ppc_linux_spu_section): Remove.
2511 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2512 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2513 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2514 (ppc_linux_spe_context_lookup): Remove.
2515 (ppc_linux_spe_context_inferior_created): Remove.
2516 (ppc_linux_spe_context_solib_loaded): Remove.
2517 (ppc_linux_spe_context_solib_unloaded): Remove.
2518 (ppc_linux_spe_context): Remove.
2519 (struct ppu2spu_cache): Remove.
2520 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2521 (struct ppu2spu_data): Remove.
2522 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2523 ppu2spu_unwind): Remove.
2524 (ppc_linux_init_abi): Remove Cell/B.E. support.
2525 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2526
2527 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2528 (rs6000/powerpc-cell64l-expedite): Likewise
2529 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2530 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2531 rs6000/powerpc-cell64l.xml.
2532 * features/rs6000/powerpc-cell32l.xml: Remove.
2533 * features/rs6000/powerpc-cell64l.xml: Likewise.
2534 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2535 * features/rs6000/powerpc-cell64l.c: Likewise.
2536 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2537 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2538 * regformats/reg-spu.dat: Remove.
2539
2540 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2541 * corelow.c (struct spuid_list): Remove.
2542 (add_to_spuid_list): Remove.
2543 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2544 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2545 (remote_protocol_features): Remove associated entries.
2546 (_initialize_remote): No longer initialize them.
2547 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2548 * linux-nat.c (SPUFS_MAGIC): Remove.
2549 (linux_proc_xfer_spu): Remove.
2550 (spu_enumerate_spu_ids): Remove.
2551 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2552 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2553 (linux_make_corefile_notes): No longer call it.
2554
2555 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2556 (cooked_write_test): Likewise.
2557
78e8cb91
TT
25582019-09-20 Tom Tromey <tom@tromey.com>
2559
2560 * NEWS: Mention case-sensitivity of TUI commands.
2561 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2562 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2563 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2564
f074b67e
TT
25652019-09-20 Tom Tromey <tom@tromey.com>
2566
2567 * tui/tui-source.c (tui_source_window::set_contents): Use
2568 make_unique_xstrdup.
2569 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2570 make_unique_xstrdup.
2571
63c4bf19
TT
25722019-09-20 Tom Tromey <tom@tromey.com>
2573
2574 * tui/tui-data.c: Remove separator comments.
2575 * tui/tui-layout.c: Remove separator comments.
2576 * tui/tui-win.c: Remove separator comments.
2577 * tui/tui-wingeneral.c: Remove separator comments.
2578
43df9b2f
TT
25792019-09-20 Tom Tromey <tom@tromey.com>
2580
2581 * tui/tui.h (strcat_to_buf): Don't declare.
2582 * tui/tui.c (strcat_to_buf): Remove.
2583
7226433c
TT
25842019-09-20 Tom Tromey <tom@tromey.com>
2585
2586 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2587 from "fullname".
2588 * tui/tui-source.c (tui_source_window::set_contents)
2589 (tui_source_window::location_matches_p)
2590 (tui_source_window::maybe_update): Update.
2591
80df3337
TT
25922019-09-20 Tom Tromey <tom@tromey.com>
2593
2594 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2595 Update.
2596 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2597 prefix.
2598 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2599 (tui_data_window::line_from_reg_element_no)
2600 (tui_data_window::first_reg_element_no_inline)
2601 (tui_data_window::show_registers)
2602 (tui_data_window::show_register_group)
2603 (tui_data_window::display_registers_from)
2604 (tui_data_window::display_registers_from_line)
2605 (tui_data_window::first_data_item_displayed)
2606 (tui_data_window::delete_data_content_windows)
2607 (tui_data_window::erase_data_content)
2608 (tui_data_window::do_scroll_vertical)
2609 (tui_data_window::refresh_window)
2610 (tui_data_window::check_register_values): Update.
2611
9923f347
TT
26122019-09-20 Tom Tromey <tom@tromey.com>
2613
2614 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2615 (struct tui_locator_window) <full_name, proc_name>: Now
2616 std::string.
2617 * tui/tui-stack.c (tui_locator_window::make_status_line)
2618 (tui_locator_window::set_locator_fullname)
2619 (tui_locator_window::set_locator_info): Update.
2620 * tui/tui-source.c (tui_source_window::set_contents)
2621 (tui_source_window::showing_source_p): Update.
2622
b76251ab
TT
26232019-09-20 Tom Tromey <tom@tromey.com>
2624
2625 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2626 Don't call tui_locator_win_info_ptr.
2627
0891be08
TT
26282019-09-20 Tom Tromey <tom@tromey.com>
2629
2630 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2631
1b935acf
TT
26322019-09-20 Tom Tromey <tom@tromey.com>
2633
2634 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2635 height for locator.
2636 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2637 * tui/tui-layout.c (show_source_disasm_command, show_data)
2638 (show_source_or_disasm_and_command): Use 1 as height for locator.
2639
9abd8a65
TT
26402019-09-20 Tom Tromey <tom@tromey.com>
2641
2642 * tui/tui.c (tui_enable): Update.
2643 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2644 Update.
2645 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2646 Update.
2647 * tui/tui-data.c (win_resized): Now bool.
2648 (tui_win_resized): Return bool.
2649 (tui_set_win_resized_to): Accept a bool.
2650
b5457826
TT
26512019-09-20 Tom Tromey <tom@tromey.com>
2652
2653 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2654 Change type of "refresh_values_only".
2655 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2656 type of "refresh_values_only".
2657
6b915f7d
TT
26582019-09-20 Tom Tromey <tom@tromey.com>
2659
2660 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2661 std::string.
2662 (tui_disassemble): Add "pos" parameter.
2663 (tui_disasm_window::set_contents): Simplify.
2664
2ad52f6f
TT
26652019-09-20 Tom Tromey <tom@tromey.com>
2666
2667 * tui/tui-winsource.h (struct tui_source_window_base)
2668 <show_source_content>: Now private.
2669 * tui/tui-winsource.c
2670 (tui_source_window_base::show_source_content): Don't handle empty
2671 content case.
2672
b3b1bde6
TT
26732019-09-20 Tom Tromey <tom@tromey.com>
2674
2675 * tui/tui-layout.c (show_source_disasm_command)
2676 (show_source_or_disasm_and_command): Don't call
2677 show_source_content.
2678
71a25ed2
TT
26792019-09-20 Tom Tromey <tom@tromey.com>
2680
2681 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2682 Declare.
2683 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2684 from tui_make_status_line.
2685 (tui_locator_window::rerender): Update.
2686
f8532154
TT
26872019-09-20 Tom Tromey <tom@tromey.com>
2688
2689 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2690 (tui_locator_window::rerender): Update.
2691
2d81b349
TT
26922019-09-20 Tom Tromey <tom@tromey.com>
2693
2694 * tui/tui-winsource.h (struct tui_source_window_base)
2695 <~tui_source_window_base>: Don't declare.
2696 <fullname>: Remove.
2697 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2698 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2699 member.
2700 * tui/tui-source.c (tui_source_window::set_contents): Update.
2701 (tui_source_window::location_matches_p)
2702 (tui_source_window::maybe_update): Update.
2703
f14bec58
TT
27042019-09-20 Tom Tromey <tom@tromey.com>
2705
2706 * tui/tui-winsource.h (~tui_source_element): Remove.
2707 (tui_source_element): Update.
2708 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2709 * tui/tui-winsource.c (tui_show_source_line): Update.
2710 * tui/tui-source.c (tui_source_window::set_contents): Update.
2711 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2712
78d5933a
TT
27132019-09-20 Tom Tromey <tom@tromey.com>
2714
2715 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2716 declare.
2717 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2718 tui_clear_source_windows_detail.
2719 * tui/tui-winsource.h (struct tui_source_window_base)
2720 <clear_detail>: Don't declare.
2721 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2722 Remove.
2723 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2724
d4207696
TT
27252019-09-20 Tom Tromey <tromey@adacore.com>
2726
2727 PR ada/24919:
2728 * block.c (contained_in): Fix final return value.
2729
00f93c44
AM
27302019-09-20 Alan Modra <amodra@gmail.com>
2731
2732 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2733 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2734 (read_indirect_string_from_dwz): Use bfd accessor.
2735 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2736 * machoread.c (macho_symfile_read_all_oso): Likewise.
2737 * solib.c (solib_bfd_open): Likewise.
2738
e4153ae6
CB
27392019-09-19 Christian Biesinger <cbiesinger@google.com>
2740
2741 * eval.c: Move declaration of overload_resolution to...
2742 * value.h: ...here.
2743
c7ae7675
CB
27442019-09-19 Christian Biesinger <cbiesinger@google.com>
2745
2746 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2747 * arm-linux-tdep.c: Likewise.
2748 * arm-nbsd-nat.c: Likewise.
2749 * arm-tdep.h: Declare arm_apcs_32.
2750 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2751
e86f08d2
CB
27522019-09-19 Christian Biesinger <cbiesinger@google.com>
2753
2754 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2755 * dwarf2read.h: Declare dwarf_always_disassemble.
2756
f64e2f40
TV
27572019-09-19 Tom de Vries <tdevries@suse.de>
2758
2759 PR gdb/25009
2760 * source-cache.c (source_cache::ensure): Catch exception thrown during
2761 construction of the highlighter.
2762
fd361982
AM
27632019-09-18 Alan Modra <amodra@gmail.com>
2764
2765 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2766 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2767 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2768 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2769 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2770 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2771 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2772 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2773 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2774 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2775 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2776 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2777 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2778 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2779 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2780 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2781 * mi/mi-interp.c: Update throughout for bfd section macro and
2782 function changes.
2783 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2784 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2785
11061048
TT
27862019-09-18 Tom Tromey <tom@tromey.com>
2787
2788 * NEWS: Add entry.
2789 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2790 call rl_initialize.
2791 (tui_enable): Do not call rl_initialize.
2792
7a27b85f
CG
27932019-09-18 Christian Groessler <chris@groessler.org>
2794
2795 * alpha-linux-nat.c: Include gdbarch.h.
2796
f64eea3a
SM
27972019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2798
2799 * ui-file.c: Include cli/cli-style.h.
2800 (term_cli_styling): Remove cli_styling declaration.
2801
e6f7f6d1
AM
28022019-09-18 Alan Modra <amodra@gmail.com>
2803
2804 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2805 to bfd_asymbol_section.
2806
1d38e9d1
AM
28072019-09-18 Alan Modra <amodra@gmail.com>
2808
2809 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2810 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2811 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2812
90d92a63
AM
28132019-09-18 Alan Modra <amodra@gmail.com>
2814
2815 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2816 * spu-linux-nat.c (spu_bfd_open): Likewise.
2817
a3d181d2
CB
28182019-09-18 Christian Biesinger <cbiesinger@google.com>
2819
2820 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2821 to bool to match definition in dwarf2read.c.
2822
491144b5
CB
28232019-09-17 Christian Biesinger <cbiesinger@google.com>
2824
2825 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2826 (print_signatures): Likewise.
2827 (trust_pad_over_xvs): Likewise.
2828 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2829 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2830 * arm-linux-nat.c (arm_apcs_32): Likewise.
2831 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2832 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2833 * arm-tdep.c (arm_debug): Likewise.
2834 (arm_apcs_32): Likewise.
2835 * auto-load.c (debug_auto_load): Likewise.
2836 (auto_load_gdb_scripts): Likewise.
2837 (global_auto_load): Likewise.
2838 (auto_load_local_gdbinit): Likewise.
2839 (auto_load_local_gdbinit_loaded): Likewise.
2840 * auto-load.h (global_auto_load): Likewise.
2841 (auto_load_local_gdbinit): Likewise.
2842 (auto_load_local_gdbinit_loaded): Likewise.
2843 * breakpoint.c (disconnected_dprintf): Likewise.
2844 (breakpoint_proceeded): Likewise.
2845 (automatic_hardware_breakpoints): Likewise.
2846 (always_inserted_mode): Likewise.
2847 (target_exact_watchpoints): Likewise.
2848 (_initialize_breakpoint): Update.
2849 * breakpoint.h (target_exact_watchpoints): Change to bool.
2850 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2851 * cli/cli-cmds.c (trace_commands): Likewise.
2852 * cli/cli-cmds.h (trace_commands): Likewise.
2853 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2854 to bool*.
2855 * cli/cli-logging.c (logging_overwrite): Change to bool.
2856 (logging_redirect): Likewise.
2857 (debug_redirect): Likewise.
2858 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2859 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2860 to bool.
2861 <boolean_option_def>: Update.
2862 (struct flag_option_def): Change default type of Context to bool
2863 from int.
2864 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2865 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2866 (get_setshow_command_value_string): Likewise.
2867 * cli/cli-style.c (cli_styling): Change to bool.
2868 (source_styling): Likewise.
2869 * cli/cli-style.h (source_styling): Likewise.
2870 (cli_styling): Likewise.
2871 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2872 to bool.
2873 * command.h (var_types): Update comment.
2874 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2875 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2876 bool.
2877 (debug_compile_cplus_scopes): Likewise.
2878 * compile/compile-internal.h (compile_debug): Likewise.
2879 * compile/compile.c (compile_debug): Likewise.
2880 (struct compile_options) <raw>: Likewise.
2881 * cp-support.c (catch_demangler_crashes): Likewise.
2882 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2883 (usr_cmd_cris_dwarf2_cfi): Likewise.
2884 * csky-tdep.c (csky_debug): Likewise.
2885 * darwin-nat.c (enable_mach_exceptions): Likewise.
2886 * dcache.c (dcache_enabled_p): Likewise.
2887 * defs.h (info_verbose): Likewise.
2888 * demangle.c (demangle): Likewise.
2889 (asm_demangle): Likewise.
2890 * dwarf-index-cache.c (debug_index_cache): Likewise.
2891 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2892 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2893 * dwarf2read.c (check_physname): Likewise.
2894 (use_deprecated_index_sections): Likewise.
2895 (dwarf_always_disassemble): Likewise.
2896 * eval.c (overload_resolution): Likewise.
2897 * event-top.c (set_editing_cmd_var): Likewise.
2898 (exec_done_display_p): Likewise.
2899 * event-top.h (set_editing_cmd_var): Likewise.
2900 (exec_done_display_p): Likewise.
2901 * exec.c (write_files): Likewise.
2902 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2903 (debug_fbsd_nat): Likewise.
2904 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2905 Likewise.
2906 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2907 <backtrace_past_entry> Likewise.
2908 * gdb-demangle.h (demangle): Likewise.
2909 (asm_demangle): Likewise.
2910 * gdb_bfd.c (bfd_sharing): Likewise.
2911 * gdbcore.h (write_files): Likewise.
2912 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2913 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2914 * gdbthread.h (print_thread_events): Likewise.
2915 * gdbtypes.c (opaque_type_resolution): Likewise.
2916 (strict_type_checking): Likewise.
2917 * gnu-nat.c (gnu_debug_flag): Likewise.
2918 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2919 * guile/scm-param.c (pascm_variable): Add boolval.
2920 (add_setshow_generic): Update.
2921 (pascm_param_value): Update.
2922 (pascm_set_param_value_x): Update.
2923 * hppa-tdep.c (hppa_debug): Change to bool..
2924 * infcall.c (may_call_functions_p): Likewise.
2925 (coerce_float_to_double_p): Likewise.
2926 (unwind_on_signal_p): Likewise.
2927 (unwind_on_terminating_exception_p): Likewise.
2928 * infcmd.c (startup_with_shell): Likewise.
2929 * inferior.c (print_inferior_events): Likewise.
2930 * inferior.h (startup_with_shell): Likewise.
2931 (print_inferior_events): Likewise.
2932 * infrun.c (step_stop_if_no_debug): Likewise.
2933 (detach_fork): Likewise.
2934 (debug_displaced): Likewise.
2935 (disable_randomization): Likewise.
2936 (non_stop): Likewise.
2937 (non_stop_1): Likewise.
2938 (observer_mode): Likewise.
2939 (observer_mode_1): Likewise.
2940 (set_observer_mode): Update.
2941 (sched_multi): Change to bool.
2942 * infrun.h (debug_displaced): Likewise.
2943 (sched_multi): Likewise.
2944 (step_stop_if_no_debug): Likewise.
2945 (non_stop): Likewise.
2946 (disable_randomization): Likewise.
2947 * linux-tdep.c (use_coredump_filter): Likewise.
2948 (dump_excluded_mappings): Likewise.
2949 * linux-thread-db.c (auto_load_thread_db): Likewise.
2950 (check_thread_db_on_load): Likewise.
2951 * main.c (captured_main_1): Update.
2952 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2953 xx2_opt, boolean_opt>: Change to bool.
2954 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2955 * maint.c (maintenance_profile_p): Likewise.
2956 (per_command_time): Likewise.
2957 (per_command_space): Likewise.
2958 (per_command_symtab): Likewise.
2959 * memattr.c (inaccessible_by_default): Likewise.
2960 * mi/mi-main.c (mi_async): Likewise.
2961 (mi_async_1): Likewise.
2962 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2963 * nat/fork-inferior.h (startup_with_shell): Likewise.
2964 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2965 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2966 * nios2-tdep.c (nios2_debug): Likewise.
2967 * or1k-tdep.c (or1k_debug): Likewise.
2968 * parse.c (parser_debug): Likewise.
2969 * parser-defs.h (parser_debug): Likewise.
2970 * printcmd.c (print_symbol_filename): Likewise.
2971 * proc-api.c (procfs_trace): Likewise.
2972 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2973 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2974 (set_parameter_value): Update.
2975 (add_setshow_generic): Update.
2976 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2977 to bool*.
2978 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2979 int*.
2980 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2981 * record-btrace.c (record_btrace_target::store_registers): Update.
2982 * record-full.c (record_full_memory_query): Change to bool.
2983 (record_full_stop_at_limit): Likewise.
2984 * record-full.h (record_full_memory_query): Likewise.
2985 * remote-notif.c (notif_debug): Likewise.
2986 * remote-notif.h (notif_debug): Likewise.
2987 * remote.c (use_range_stepping): Likewise.
2988 (interrupt_on_connect): Likewise.
2989 (remote_break): Likewise.
2990 * ser-tcp.c (tcp_auto_retry): Likewise.
2991 * ser-unix.c (serial_hwflow): Likewise.
2992 * skip.c (debug_skip): Likewise.
2993 * solib-aix.c (solib_aix_debug): Likewise.
2994 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2995 (spu_auto_flush_cache_p): Likewise.
2996 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2997 Likewise.
2998 (struct info_print_options) <quiet>: Likewise.
2999 * symfile-debug.c (debug_symfile): Likewise.
3000 * symfile.c (auto_solib_add): Likewise.
3001 (separate_debug_file_debug): Likewise.
3002 * symfile.h (auto_solib_add): Likewise.
3003 (separate_debug_file_debug): Likewise.
3004 * symtab.c (basenames_may_differ): Likewise.
3005 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3006 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3007 (struct info_types_options) <quiet>: Likewise.
3008 * symtab.h (demangle): Likewise.
3009 (basenames_may_differ): Likewise.
3010 * target-dcache.c (stack_cache_enabled_1): Likewise.
3011 (code_cache_enabled_1): Likewise.
3012 * target.c (trust_readonly): Likewise.
3013 (may_write_registers): Likewise.
3014 (may_write_memory): Likewise.
3015 (may_insert_breakpoints): Likewise.
3016 (may_insert_tracepoints): Likewise.
3017 (may_insert_fast_tracepoints): Likewise.
3018 (may_stop): Likewise.
3019 (auto_connect_native_target): Likewise.
3020 (target_stop_and_wait): Update.
3021 (target_async_permitted): Change to bool.
3022 (target_async_permitted_1): Likewise.
3023 (may_write_registers_1): Likewise.
3024 (may_write_memory_1): Likewise.
3025 (may_insert_breakpoints_1): Likewise.
3026 (may_insert_tracepoints_1): Likewise.
3027 (may_insert_fast_tracepoints_1): Likewise.
3028 (may_stop_1): Likewise.
3029 * target.h (target_async_permitted): Likewise.
3030 (may_write_registers): Likewise.
3031 (may_write_memory): Likewise.
3032 (may_insert_breakpoints): Likewise.
3033 (may_insert_tracepoints): Likewise.
3034 (may_insert_fast_tracepoints): Likewise.
3035 (may_stop): Likewise.
3036 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3037 (make_thread_apply_all_options_def_group): Change argument from int*
3038 to bool*.
3039 (thread_apply_all_command): Update.
3040 (print_thread_events): Change to bool.
3041 * top.c (confirm): Likewise.
3042 (command_editing_p): Likewise.
3043 (history_expansion_p): Likewise.
3044 (write_history_p): Likewise.
3045 (info_verbose): Likewise.
3046 * top.h (confirm): Likewise.
3047 (history_expansion_p): Likewise.
3048 * tracepoint.c (disconnected_tracing): Likewise.
3049 (circular_trace_buffer): Likewise.
3050 * typeprint.c (print_methods): Likewise.
3051 (print_typedefs): Likewise.
3052 * utils.c (debug_timestamp): Likewise.
3053 (sevenbit_strings): Likewise.
3054 (pagination_enabled): Likewise.
3055 * utils.h (sevenbit_strings): Likewise.
3056 (pagination_enabled): Likewise.
3057 * valops.c (overload_resolution): Likewise.
3058 * valprint.h (struct value_print_options) <prettyformat_arrays,
3059 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3060 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3061 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3062 Likewise.
3063 * windows-nat.c (new_console): Likewise.
3064 (cygwin_exceptions): Likewise.
3065 (new_group): Likewise.
3066 (debug_exec): Likewise.
3067 (debug_events): Likewise.
3068 (debug_memory): Likewise.
3069 (debug_exceptions): Likewise.
3070 (useshell): Likewise.
3071 * windows-tdep.c (maint_display_all_tib): Likewise.
3072 * xml-support.c (debug_xml): Likewise.
3073
f1b620e9
MG
30742019-09-17 Mike Gulick <mgulick@mathworks.com>
3075
3076 * source.c (prepare_path_for_appending): New function.
3077 (openp): Make use of new function.
3078 (find_and_open_source): Search for the compilation directory and
3079 source file as a relative path beneath the directory search path.
3080
67f3ed6a
AB
30812019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3082
3083 * source-cache.c (source_cache::get_line_charpos): Catch
3084 exceptions and return false, this matches the behaviour documented
3085 in the header file.
3086
74332189
JB
30872019-09-17 Joel Brobecker <brobecker@adacore.com>
3088
3089 * ada-tasks.c (info_task): Remove quoting of the task's name.
3090
f2f24aa9
CB
30912019-09-16 Christian Biesinger <cbiesinger@google.com>
3092
3093 * symfile.c (auto_solib_add): Replace comment with a reference
3094 to the header file.
3095
6a062a93
CB
30962019-09-14 Christian Biesinger <cbiesinger@google.com>
3097
3098 * NEWS: Mention that gdb can now be compiled with Python 3
3099 on Windows.
3100
ec6c8338
AB
31012019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3102
3103 * maint.c (maint_print_section_data::maint_print_section_data):
3104 Force use of 'float log10 (float)' by casting the argument to
3105 float.
3106
aa17805f
AB
31072019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3108
3109 * maint.c: Add 'cmath' include.
3110 (struct maint_print_section_data): New structure.
3111 (print_section_index): New function.
3112 (print_bfd_section_info): Add header comment, small whitespace
3113 cleanup, and update to call new print_section_index function.
3114 (print_objfile_section_info): Likewise.
3115 (maint_obj_section_from_bfd_section): New function.
3116 (print_bfd_section_info_maybe_relocated): New function.
3117 (maintenance_info_sections): Add header comment, always use
3118 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3119
3dd9bb46
AB
31202019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3121
3122 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3123 inner scope, add check that the objfile has psymtabs before
3124 checking psymtabs_addrmap.
3125 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3126
4993045d
PW
31272019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3128
3129 * NEWS: Announce that Ada task names are now shown at more places,
3130 and between quotes (except in info task output).
3131 * gdb/ada-tasks.c (task_to_str): New function.
3132 (display_current_task_id): Call task_to_str.
3133 (task_command_1): Likewise.
3134 (print_ada_task_info): In non-mi mode, Properly align headers and data
3135 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3136
7a289707
RO
31372019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3138
3139 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3140 prstatus.pr_lwp.pr_info instead of making it up.
3141
f2aec7f6
CB
31422019-09-11 Christian Biesinger <cbiesinger@google.com>
3143
3144 * auto-load.c (auto_load_expand_dir_vars): Update.
3145 * defs.h (gdb_datadir): Change to std::string.
3146 (python_libdir): Likewise.
3147 (relocate_gdb_directory): Change return type to std::string.
3148 * guile/guile.c (gdbscm_data_directory): Update.
3149 (initialize_scheme_side): Update.
3150 * jit.c (jit_reader_dir): Change to std::string.
3151 (jit_reader_load_command): Update.
3152 * main.c (gdb_datadir): Change to std::string.
3153 (python_libdir): Likewise.
3154 (set_gdb_data_directory): Update.
3155 (relocate_path): Change to return std::string.
3156 (relocate_gdb_directory): Change to return std::string.
3157 (relocate_gdbinit_path_maybe_in_datadir): Update.
3158 (captured_main_1): Update.
3159 * python/python.c (do_start_initialization): Update.
3160 * top.c (show_gdb_datadir): Update.
3161 * xml-syscall.c (xml_init_syscalls_info): Update.
3162 (init_syscalls_info): Update.
3163
9224a013
CB
31642019-09-11 Christian Biesinger <cbiesinger@google.com>
3165
3166 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3167 out of get_init_files.
3168 (get_init_files): Update.
3169
f48cd836
CB
31702019-09-11 Christian Biesinger <cbiesinger@google.com>
3171
3172 * main.c (get_init_files): Change to use std::string.
3173 (captured_main_1): Update.
3174 (print_gdb_help): Update.
3175
9cab7ecd
AT
31762019-09-11 Ali Tamur <tamur@google.com>
3177
3178 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3179 implementation.
3180
67547d89
CB
31812019-09-11 Christian Biesinger <cbiesinger@google.com>
3182
3183 * dbxread.c (read_dbx_symtab): Update.
3184 * dwarf2read.c (load_partial_dies): Update.
3185 * mdebugread.c (parse_partial_symbols): Update.
3186 (handle_psymbol_enumerators): Update.
3187 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3188 * psymtab.c (add_psymbol_to_bcache): Likewise.
3189 (add_psymbol_to_list): Likewise.
3190 * symtab.c (symbol_set_names): Likewise.
3191 * symtab.h (symbol_set_names): Likewise.
3192 * xcoffread.c (scan_xcoff_symtab): Update.
3193
64b2d4a0
TT
31942019-09-11 Tom Tromey <tom@tromey.com>
3195
3196 * symfile-mem.c (symbol_file_add_from_memory): Use
3197 bfd_set_filename.
3198 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3199 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3200
3b00ef10
TT
32012019-09-10 Tom Tromey <tromey@adacore.com>
3202
3203 * dwarf-index-write.c (write_psymbols): Extend error message.
3204 (debug_names::insert): Add Ada code.
3205 (debug_names::write_psymbols): Remove Ada check.
3206 (debug_names) <m_string_obstack>: New member.
3207 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3208 (gdb_index_symbol_name_matcher::matches): Remove.
3209 (mapped_index_base::find_name_components_bounds): Add "lang"
3210 parameter.
3211 (mapped_index_base::build_name_components): Also split names
3212 according to Ada syntax.
3213 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3214 type of "match_callback".
3215 (check_match, check_find_bounds_finds)
3216 (dw2_expand_symtabs_matching): Update.
3217 (dw2_debug_names_iterator): Add new constructor.
3218 (dw2_debug_names_map_matching_symbols): New function.
3219 (dw2_debug_names_expand_symtabs_matching): Update.
3220 (dwarf2_debug_names_functions): Use
3221 dw2_debug_names_map_matching_symbols.
3222
aa391654
TT
32232019-09-10 Tom Tromey <tromey@adacore.com>
3224
3225 * dwarf2read.c (dw2_get_file_names_reader): Add the
3226 CU's file name to the results.
3227
b054970d
TT
32282019-09-10 Tom Tromey <tromey@adacore.com>
3229
3230 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3231 map_matching_symbols. Update.
3232 * dwarf2read.c (dw2_map_matching_symbols): Update.
3233 * psymtab.c (match_partial_symbol): Change type; update.
3234 (psym_map_matching_symbols): Likewise.
3235 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3236 type; update.
3237 * symfile.h (struct quick_symbol_functions)
3238 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3239 Remove "match".
3240
6a3dbf1b
TT
32412019-09-10 Tom Tromey <tromey@adacore.com>
3242
3243 * psymtab.c (map_block): Remove.
3244 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3245 * symtab.c (iterate_over_symbols_terminated): New function.
3246 * symtab.c (iterate_over_symbols_terminated): Declare.
3247
6969f124
TT
32482019-09-10 Tom Tromey <tromey@adacore.com>
3249
3250 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3251 * language.h (struct language_defn) <la_iterate_over_symbols>:
3252 Return bool.
3253 * symtab.c (iterate_over_symbols): Return bool.
3254 * symtab.h (iterate_over_symbols): Return bool.
3255
199b4314
TT
32562019-09-10 Tom Tromey <tromey@adacore.com>
3257
3258 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3259 (add_nonlocal_symbols): Update.
3260 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3261 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3262 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3263 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3264 Change type of "callback". Remove "data".
3265
a084a2a6
AT
3266
32672019-09-09 Ali Tamur <tamur@google.com>
3268
3269 * dwarf2read.c (comp_unit_head): Update comment.
3270 (dwarf2_dwo_name): New function declaration.
3271 (dwarf_unit_type_name): New function declaration.
3272 (read_comp_unit_head): Add support for new compilation units,
3273 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3274 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3275 (currently named as "signature") in their header. Also clarify error
3276 messages.
3277 (lookup_dwo_id): New function. Returns the dwo id of the given
3278 compile unit.
3279 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3280 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3281 functions.
3282 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3283 (dwarf2_dwo_name): Get the dwo name if present.
3284 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3285 purposes.
3286
25a2915e
TT
32872019-09-09 Tom Tromey <tom@tromey.com>
3288
3289 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3290
e4df0874
PW
32912019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3292
3293 * python/python.c (do_start_initialization): Make progname_copy static,
3294 to avoid a leak report.
3295
8634b462
TT
32962019-09-08 Tom Tromey <tom@tromey.com>
3297
3298 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3299
c7f839cb
SM
33002019-09-07 Simon Marchi <simon.marchi@efficios.com>
3301
3302 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3303 Change type to gdb::optional<block_enum>.
3304 (dw2_symtab_iter_init): Change block_index parameter type
3305 to gdb::optional<block_enum>.
3306 (dw2_lookup_symbol): Change block_index parameter
3307 type to block_enum.c
3308 (dw2_debug_names_lookup_symbol): Likewise.
3309 * psymtab.c (psym_lookup_symbol): Likewise.
3310 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3311 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3312 Likewise.
3313
ead0e69a
CB
33142019-09-06 Christian Biesinger <cbiesinger@google.com>
3315
3316 * defs.h (relocate_gdb_directory): Change int to bool in
3317 signature and rename flag to relocatable.
3318 * main.c (relocate_path): Likewise.
3319 (relocate_gdb_directory): Likewise.
3320
b16c44de
AM
33212019-09-06 Alan Modra <amodra@gmail.com>
3322
3323 * coffread.c (coff_symfile_read): Constify filename variable.
3324 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3325 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3326 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3327 * solib.c (reload_shared_libraries_1): Likewise.
3328 * symfile.c (reread_symbols): Likewise.
3329 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3330 * solib-darwin.c (darwin_bfd_open): Likewise.
3331 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3332
06ff036e
AB
33332019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3334
3335 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3336 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3337
4e962e74
TT
33382019-09-03 Tom Tromey <tromey@adacore.com>
3339
3340 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3341 types.
3342 (has_negatives): Unbias a range type bound.
3343 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3344 * gdbtypes.c (operator==): Handle new field.
3345 (create_range_type): Add "bias" parameter.
3346 (create_static_range_type, resolve_dynamic_range): Update.
3347 * gdbtypes.h (struct range_bounds) <bias>: New member.
3348 (create_range_type): Add bias parameter.
3349 * printcmd.c (print_scalar_formatted): Unbias range types.
3350 * value.c (unpack_long): Unbias range types.
3351 (pack_long): Bias range types.
3352
d90b8f26
AH
33532019-09-02 Alan Hayward <alan.hayward@arm.com>
3354
3355 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3356 probe arguments.
3357
fe01123e
AH
33582019-09-02 Alan Hayward <alan.hayward@arm.com>
3359
3360 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3361 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3362 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3363 (compile_probe_arg): Likewise.
3364 * probe.h (get_argument_count): Likewise.
3365 * solib-svr4.c (solib_event_probe_action): Likewise.
3366 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3367
e661ef01
AH
33682019-09-02 Alan Hayward <alan.hayward@arm.com>
3369
3370 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3371 code to here...
3372 (svr4_create_solib_event_breakpoints): ...from here.
3373
47a536d9
SDJ
33742019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3375
3376 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3377 suffix from warning message.
3378
d6a00eba
TT
33792019-08-30 Tom Tromey <tom@tromey.com>
3380
3381 * tui/tui-winsource.h (struct tui_source_window_base)
3382 <refresh_all>: Don't declare.
3383 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3384 Remove.
3385 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3386 tui_show_locator_content.
3387 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3388 declare.
3389 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3390 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3391 declare.
3392
55b2657b
TT
33932019-08-30 Tom Tromey <tom@tromey.com>
3394
3395 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3396
12a8555a
TT
33972019-08-30 Tom Tromey <tom@tromey.com>
3398
3399 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3400 Remove unnecessary forward declarations.
3401
900ac242
TT
34022019-08-30 Tom Tromey <tom@tromey.com>
3403
3404 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3405 rerender.
3406 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3407 tui_show_locator_content.
3408
99ab33fb
TT
34092019-08-30 Tom Tromey <tom@tromey.com>
3410
3411 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3412 (tui_locator_window::rerender): Rewrite using body of previous
3413 tui_show_locator_content.
3414
e594a5d1
TT
34152019-08-30 Tom Tromey <tom@tromey.com>
3416
3417 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3418 set_locator_fullname>: New methods.
3419 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3420 Rename from tui_set_locator_fullname.
3421 (tui_locator_window::set_locator_info): Rename from
3422 tui_set_locator_info. Return bool.
3423 (tui_update_locator_fullname, tui_show_frame_info): Update.
3424
715bb467
TT
34252019-08-30 Tom Tromey <tom@tromey.com>
3426
3427 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3428
772f3f03
TT
34292019-08-30 Tom Tromey <tom@tromey.com>
3430
3431 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3432 call touchwin.
3433
108e13ab
TT
34342019-08-30 Tom Tromey <tom@tromey.com>
3435
3436 * tui/tui-wingeneral.c (box_win): Assume win_info and
3437 win_info->handle cannot be NULL.
3438
cdaa6eb4
TT
34392019-08-30 Tom Tromey <tom@tromey.com>
3440
3441 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3442 refresh_window>: Declare.
3443 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3444 resize.
3445 (tui_data_item_window::rerender): Rename from
3446 tui_display_register.
3447 (tui_data_item_window::refresh_window): New method.
3448 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3449 no-op.
3450
89df7f90
TT
34512019-08-30 Tom Tromey <tom@tromey.com>
3452
3453 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3454 regs_column_count, current_group>: Move later. Now private.
3455 <get_current_group>: New method.
3456 * tui/tui-regs.c (tui_reg_command): Update.
3457 * tui/tui-layout.c (tui_set_layout): Update.
3458
1bf2866a
TT
34592019-08-30 Tom Tromey <tom@tromey.com>
3460
3461 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3462 (tui_data_window::rerender): Don't call
3463 check_and_display_highlight_if_needed.
3464 (tui_data_window::refresh_all): Remove call to
3465 erase_data_content.
3466
0670413d
TT
34672019-08-30 Tom Tromey <tom@tromey.com>
3468
3469 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3470 (tui_data_window::display_registers_from)
3471 (tui_data_window::display_reg_element_at_line)
3472 (tui_data_window::display_registers_from_line): Remove checks of
3473 "empty".
3474
18bb55c7
TT
34752019-08-30 Tom Tromey <tom@tromey.com>
3476
3477 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3478 Don't declare.
3479 * tui/tui-regs.c (tui_data_window::show_registers): Call
3480 rerender.
3481 (tui_data_window::rerender): Rename from display_all_data.
3482 (tui_data_window::rerender): Remove old implementation.
3483
1f6d2f10
TT
34842019-08-30 Tom Tromey <tom@tromey.com>
3485
3486 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3487 text.
3488 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3489
16d01f9c
BW
34902019-08-29 Bernhard Wodok <barto@gmx.net>
3491 Sergio Durigan Junior <sergiodj@redhat.com>
3492
3493 PR win32/24284
3494 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3495
d8f27c60
AB
34962019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3497
3498 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3499 when searching for types.
3500
1f20c35e
AB
35012019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * f-lang.c (f_language_defn): Use f_print_typedef.
3504 * f-lang.h (f_print_typedef): Declare.
3505 * f-typeprint.c (f_print_typedef): Define.
3506
550105b7
CB
35072019-08-27 Christian Biesinger <cbiesinger@google.com>
3508
3509 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3510
4acfdd20
AB
35112019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3512
3513 * cli/cli-utils.c (info_print_options_defs): Delete.
3514 (make_info_print_options_def_group): Delete.
3515 (extract_info_print_options): Delete.
3516 (info_print_command_completer): Delete.
3517 (info_print_args_help): Add extra parameter, and optionally
3518 include text about -n flag.
3519 * cli/cli-utils.h (struct info_print_options): Delete.
3520 (extract_info_print_options): Delete declaration.
3521 (info_print_command_completer): Delete declaration.
3522 (info_print_args_help): Add extra parameter, extend header
3523 comment.
3524 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3525 search_symbols.
3526 * stack.c (struct info_print_options): New type.
3527 (info_print_options_defs): New file scoped variable.
3528 (make_info_print_options_def_group): New static function.
3529 (info_print_command_completer): New static function.
3530 (info_locals_command): Update to use new local functions.
3531 (info_args_command): Likewise.
3532 (_initialize_stack): Add extra parameter to calls to
3533 info_print_args_help.
3534 * symtab.c (search_symbols): Add extra parameter, use this to
3535 possibly excluse non-debug symbols.
3536 (symtab_symbol_info): Add extra parameter, which is passed on to
3537 search_symbols.
3538 (struct info_print_options): New type.
3539 (info_print_options_defs): New file scoped variable.
3540 (make_info_print_options_def_group): New static function.
3541 (info_print_command_completer): New static function.
3542 (info_variables_command): Update to use local functions, and pass
3543 extra parameter through to symtab_symbol_info.
3544 (info_functions_command): Likewise.
3545 (info_types_command): Pass additional argument through to
3546 symtab_symbol_info.
3547 (rbreak_command): Pass extra argument to search_symbols.
3548 (_initialize_symtab): Add extra arguments for calls to
3549 info_print_args_help, and update help text for 'info variables',
3550 'whereis', and 'info functions' commands.
3551 * symtab.h (search_symbols): Add extra argument to declaration.
3552 * NEWS: Mention new flags.
3553
9aa55206
CB
35542019-08-26 Christian Biesinger <cbiesinger@google.com>
3555
3556 * symtab.c (lookup_static_symbol): Call the new function (and move
3557 it down to be next to lookup_global_symbol).
3558 (struct global_sym_lookup_data): Add block_enum member and rename to...
3559 (struct global_or_static_sym_lookup_data): ...this.
3560 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3561 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3562 (lookup_symbol_global_or_static_iterator_cb): ...this.
3563 (lookup_global_or_static_symbol): New function.
3564 (lookup_global_symbol): Call new function.
3565
5c31b358
TV
35662019-08-26 Tom de Vries <tdevries@suse.de>
3567
3568 PR c++/24852
3569 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3570 when pc_probe.prob == NULL.
3571
23c13d42
SM
35722019-08-25 Simon Marchi <simon.marchi@efficios.com>
3573
3574 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3575 variable symbol_linkage to symbol_linkage_.
3576
beadd3e8
SM
35772019-08-25 Simon Marchi <simon.marchi@efficios.com>
3578
3579 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3580 represent whether the symbol is static, dynamic, or we don't
3581 know.
3582
e3ec872f
YS
35832019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3584
3585 * gdb/rx-tdep.c (rx_register_names): New.
3586 (rx_register_name): Delete.
3587 (rx_psw_type): Delete.
3588 (rx_fpsw_type): Delete.
3589 (rx_register_type): Delete.
3590 (rx_gdbarch_init): Convert target-descriptions.
3591 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3592 * gdb/features/Makefile: Add rx.xml.
3593 * gdb/features/rx.xml: New.
3594 * gdb/features/rx.c: Generated.
3595 * gdb/NEWS: Mention target description support.
3596
d0509ba4
CB
35972019-08-22 Christian Biesinger <cbiesinger@google.com>
3598
3599 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3600 *slot_ptr.
3601
2d41fa11
SDJ
36022019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3603
3604 * configure.ac: Don't check for 'dlfcn.h' (moved to
3605 gdbsupport/common.m4).
3606 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3607 'gdbsupport/'.
3608 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3609 * compile/compile-c-support.c: Include
3610 'gdbsupport/gdb-dlfcn.h'.
3611 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3612 * gdb-dlfcn.c: Move to...
3613 * gdbsupport/gdb-dlfcn.c: ... here.
3614 * gdb-dlfcn.h: Move to...
3615 * gdbsupport/gdb-dlfcn.h: ... here.
3616
de8af808
SL
36172019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3618
3619 * nios2-tdep.c (struct reg_value): Improve comments. Make
3620 the offset field signed.
3621
27204489
CB
36222019-08-22 Christian Biesinger <cbiesinger@google.com>
3623
3624 * python/lib/gdb/__init__.py (_execute_file): New function.
3625 * python/python.c (python_run_simple_file): Call gdb._execute_file
3626 on Windows.
3627
43771869
AB
36282019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3629
3630 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3631 all uses as this was never set to anything but a zero value.
3632
26c957f1
PA
36332019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3634
3635 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3636
c07aae6e
CB
36372019-08-21 Christian Biesinger <cbiesinger@google.com>
3638
3639 * tui/tui-data.h (tui_gen_win_info): Add an =default
3640 move constructor, required by some GCC versions.
3641
3960cb7a
JF
36422019-08-21 Jinke Fan <fanjinke51@yeah.net>
3643
3644 * go32-nat.c (go32_sysinfo): Add hygon_p.
3645
04c72a68
TT
36462019-08-20 Tom Tromey <tom@tromey.com>
3647
3648 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3649 line_from_reg_element_no, first_reg_element_no_inline,
3650 display_all_data, delete_data_content_windows,
3651 erase_data_content>: Now private.
3652
072272ce
TT
36532019-08-20 Tom Tromey <tom@tromey.com>
3654
3655 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3656 (tui_unhighlight_win, tui_highlight_win)
3657 (tui_win_info::make_window): Update.
3658 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3659
973961bd
TT
36602019-08-20 Tom Tromey <tom@tromey.com>
3661
3662 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3663 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3664 (MAX_PID_WIDTH): Move to tui-stack.c.
3665 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3666 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3667 (MAX_PID_WIDTH): Move from tui-data.h.
3668
ab0e1f1a
TT
36692019-08-20 Tom Tromey <tom@tromey.com>
3670
3671 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3672 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3673 (box_win): Update.
3674 (tui_gen_win_info::make_window): Rename from tui_make_window.
3675 (tui_win_info::make_window): New method.
3676 (tui_gen_win_info::make_visible): Update.
3677 * tui/tui-source.c (tui_source_window::set_contents): Update.
3678 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3679 (tui_data_window::display_registers_from): Update.
3680 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3681 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3682 Declare.
3683 <can_box>: Remove.
3684 <title>: Remove.
3685 (struct tui_win_info) <make_window>: Declare.
3686 <can_box>: Now virtual.
3687 <title>: New member.
3688 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3689 * tui/tui-command.c (tui_cmd_window::resize): Update.
3690
100c2bf3
TT
36912019-08-20 Tom Tromey <tom@tromey.com>
3692
3693 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3694 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3695 (tui_data_window::check_register_values): Update.
3696
fa4dc567
TT
36972019-08-20 Tom Tromey <tom@tromey.com>
3698
3699 * tui/tui-regs.h (struct tui_data_window): Use
3700 DISABLE_COPY_AND_ASSIGN.
3701 <regs_content>: Change type, removing unique_ptr.
3702 <tui_data_window>: Add move constructor.
3703 * tui/tui-regs.c (tui_data_window::show_registers)
3704 (tui_data_window::show_register_group)
3705 (tui_data_window::display_registers_from)
3706 (tui_data_window::display_registers_from)
3707 (tui_data_window::first_data_item_displayed)
3708 (tui_data_window::delete_data_content_windows)
3709 (tui_data_window::rerender, tui_data_window::refresh_window)
3710 (tui_data_window::check_register_values): Update.
3711
ca02d7c8
TT
37122019-08-20 Tom Tromey <tom@tromey.com>
3713
3714 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3715 show_register_group>: Declare.
3716 (tui_show_register_group): Don't declare.
3717 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3718 tui_show_registers.
3719 (tui_data_window::show_register_group): Rename from
3720 tui_show_register_group.
3721 (tui_data_window::check_register_values, tui_reg_command):
3722 Update.
3723 * tui/tui-layout.c (tui_set_layout): Update.
3724
63356bfd
TT
37252019-08-20 Tom Tromey <tom@tromey.com>
3726
3727 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3728 Declare.
3729 (tui_check_register_values): Don't declare.
3730 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3731 from tui_check_register_values.
3732 * tui/tui-hooks.c (tui_register_changed): Update.
3733
42cc14a7
TT
37342019-08-20 Tom Tromey <tom@tromey.com>
3735
3736 * tui/tui-regs.c (tui_reg_layout): Move later.
3737 (tui_show_registers): Don't enable TUI mode or change layout.
3738
b9ad3686
TT
37392019-08-20 Tom Tromey <tom@tromey.com>
3740
3741 * tui/tui-regs.h (struct tui_data_item_window)
3742 <~tui_data_item_window>: Remove.
3743 <content>: Now a unique_xmalloc_ptr.
3744 * tui/tui-regs.c (tui_register_format): Return a
3745 unique_xmalloc_ptr.
3746 (tui_get_register): Update.
3747 (~tui_data_item_window): Remove.
3748 (tui_data_window::display_registers_from, tui_display_register):
3749 Update.
3750 * tui/tui-io.h (tui_expand_tabs): Update.
3751 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3752 Remove "col" parameter.
3753
8e114aab
TT
37542019-08-20 Tom Tromey <tom@tromey.com>
3755
3756 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3757 field.
3758 * tui/tui-regs.c (~tui_data_item_window): Update.
3759
1a4f81dd
TT
37602019-08-20 Tom Tromey <tom@tromey.com>
3761
3762 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3763 earlier.
3764
0f8d8876
TT
37652019-08-20 Tom Tromey <tom@tromey.com>
3766
3767 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3768
605dc2c2
TT
37692019-08-20 Tom Tromey <tom@tromey.com>
3770
3771 * tui/tui-source.h (struct tui_source_window): Update.
3772 * tui/tui-regs.c (tui_show_registers): Update.
3773 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3774 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3775 (NO_REGS_STRING): Remove defines.
3776
aedbe3bb
CM
37772019-08-20 Conrad Meyer <cem@FreeBSD.org>
3778
3779 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3780 unnecessary thread walk if remote doesn't support the packet.
3781
7ce8f214
TT
37822019-08-19 Tom Tromey <tromey@adacore.com>
3783
3784 * python/py-value.c (value_has_field): Fix indentation.
3785
f21c2bd7
TT
37862019-08-19 Tom Tromey <tromey@adacore.com>
3787
3788 * printcmd.c (do_one_display, info_display_command): Update.
3789 * block.h (contained_in): Return bool. Add allow_nested
3790 parameter.
3791 * block.c (contained_in): Return bool. Add allow_nested
3792 parameter.
3793
d806ea2d
TT
37942019-08-19 Tom Tromey <tom@tromey.com>
3795
3796 * configure: Rebuild.
3797 * configure.ac: Disallow the combination of -static-libstdc++ and
3798 source highlight.
3799 * source-cache.c (get_language_name): Handle rust.
3800 (source_cache::get_source_lines): Ignore highlighting exceptions.
3801
398fdd60
TT
38022019-08-16 Tom Tromey <tom@tromey.com>
3803
3804 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3805 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3806 (struct tui_source_window_base) <make_visible, refresh_window,
3807 resize>: Remove methods.
3808 <execution_info>: Remove field.
3809 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3810 (tui_show_source_line, tui_source_window_base)
3811 (~tui_source_window_base): Update.
3812 (tui_source_window_base::resize)
3813 (tui_source_window_base::make_visible)
3814 (tui_source_window_base::refresh_window): Remove.
3815 (tui_source_window_base::update_exec_info): Update.
3816 * tui/tui-source.c (tui_source_window::set_contents): Update.
3817 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3818
e699d331
TT
38192019-08-16 Tom Tromey <tom@tromey.com>
3820
3821 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3822 deprecated_query_hook.
3823
bb01dbfc
TT
38242019-08-16 Tom Tromey <tom@tromey.com>
3825
3826 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3827 (tui_update_source_windows_with_line): Update.
3828 * tui/tui-source.h (struct tui_source_window)
3829 <show_symtab_source>: Declare.
3830 (tui_show_symtab_source): Don't declare.
3831 * tui/tui-source.c (tui_show_symtab_source): Rename from
3832 tui_show_symtab_source.
3833
81c82c4b
TT
38342019-08-16 Tom Tromey <tom@tromey.com>
3835
3836 * tui/tui-winsource.h (struct tui_source_window_base)
3837 <set_contents>: Declare.
3838 * tui/tui-winsource.c
3839 (tui_source_window_base::update_source_window_as_is): Update.
3840 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3841 Declare.
3842 (tui_set_source_content): Don't declare.
3843 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3844 tui_set_source_content.
3845 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3846 Declare.
3847 (tui_set_disassem_content): Don't declare.
3848 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3849 tui_set_disassem_content.
3850
2ddaf614
TT
38512019-08-16 Tom Tromey <tom@tromey.com>
3852
3853 * tui/tui-winsource.h (struct tui_source_window_base)
3854 <update_breakpoint_info>: Declare.
3855 (tui_update_breakpoint_info): Don't declare.
3856 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3857 (tui_update_all_breakpoint_info): Update.
3858 (tui_source_window_base::update_breakpoint_info): Rename from
3859 tui_update_breakpoint_info.
3860 (tui_source_window_base::update_exec_info): Update.
3861
017f9828
TT
38622019-08-16 Tom Tromey <tom@tromey.com>
3863
3864 * tui/tui-winsource.h (struct tui_source_window_base)
3865 <update_source_window>: Declare.
3866 (tui_update_source_window): Don't declare.
3867 * tui/tui-winsource.c
3868 (tui_source_window_base::update_source_window): Rename from
3869 tui_update_source_window.
3870 (tui_source_window_base::rerender): Update.
3871 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3872 * tui/tui-disasm.c (tui_show_disassem)
3873 (tui_show_disassem_and_update_source)
3874 (tui_disasm_window::maybe_update): Update.
3875
ed8358e9
TT
38762019-08-16 Tom Tromey <tom@tromey.com>
3877
3878 * tui/tui-winsource.h (struct tui_source_window_base)
3879 <update_source_window_as_is>: Declare.
3880 (tui_update_source_window_as_is): Don't declare.
3881 * tui/tui-winsource.c (tui_update_source_window): Update
3882 (tui_source_window_base::update_source_window_as_is): Rename from
3883 tui_update_source_window_as_is.
3884 (tui_source_window_base::refill): Update.
3885 * tui/tui-source.c (tui_show_symtab_source): Update.
3886 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3887 Update.
3888
20149b6b
TT
38892019-08-16 Tom Tromey <tom@tromey.com>
3890
3891 * tui/tui-winsource.h (tui_update_source_window)
3892 (tui_update_source_window_as_is): Remove "noerror" parameter.
3893 * tui/tui-winsource.c (tui_update_source_window)
3894 (tui_update_source_window_as_is): Remove "noerror" parameter.
3895 (tui_update_source_windows_with_addr)
3896 (tui_update_source_windows_with_line)
3897 (tui_source_window_base::rerender)
3898 (tui_source_window_base::refill): Update.
3899 * tui/tui-source.h (tui_set_source_content)
3900 (tui_show_symtab_source): Remove "noerror" parameter.
3901 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3902 parameter.
3903 (tui_show_symtab_source): Likewise.
3904 (tui_source_window::maybe_update): Update.
3905 * tui/tui-disasm.c (tui_show_disassem)
3906 (tui_show_disassem_and_update_source)
3907 (tui_disasm_window::do_scroll_vertical)
3908 (tui_disasm_window::maybe_update): Update.
3909
2d83e710
TT
39102019-08-16 Tom Tromey <tom@tromey.com>
3911
3912 * tui/tui.c (tui_is_window_visible): Update.
3913 * tui/tui-wingeneral.c (tui_make_window)
3914 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3915 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3916 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3917 (tui_set_win_height_command, parse_scrolling_args): Update.
3918 * tui/tui-source.c (tui_source_window::style_changed): Update.
3919 * tui/tui-regs.c (tui_show_registers)
3920 (tui_data_window::first_data_item_displayed)
3921 (tui_data_window::delete_data_content_windows)
3922 (tui_check_register_values, tui_reg_command): Update.
3923 * tui/tui-disasm.c (tui_show_disassem): Update.
3924 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3925 method.
3926 <is_visible>: Remove field.
3927 * tui/tui-data.c (tui_next_win, tui_prev_win)
3928 (tui_delete_invisible_windows): Update.
3929
d4ab829a
TT
39302019-08-16 Tom Tromey <tom@tromey.com>
3931
3932 * tui/tui-winsource.h (struct tui_source_window_base)
3933 <m_has_locator>: Remove.
3934 * tui/tui-layout.c (show_source_disasm_command, show_data)
3935 (show_source_or_disasm_and_command): Update.
3936
aa7ca1bb
AH
39372019-08-16 Alan Hayward <alan.hayward@arm.com>
3938
3939 * NEWS (Other MI changes): New subsection.
3940 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3941 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3942 * arch-utils.c (default_get_pc_address_flags): New function.
3943 * arch-utils.h (default_get_pc_address_flags): New declaration.
3944 * gdbarch.sh: Add get_pc_address_flags.
3945 * gdbarch.c: Regenerate.
3946 * gdbarch.h: Likewise.
3947 * stack.c (print_pc): New function.
3948 (print_frame_info) (print_frame): Call print_pc.
3949
6eac171f
TV
39502019-08-16 Tom de Vries <tdevries@suse.de>
3951
3952 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3953 print_objfile_section_info.
3954
3df505f6
TT
39552019-08-15 Tom Tromey <tom@tromey.com>
3956
3957 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3958 calling update_cmdwin_start_line.
3959 * tui/tui-winsource.h (struct tui_source_window_base)
3960 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3961 <rerender>: Declare.
3962 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3963 Call rerender.
3964 (tui_source_window_base::set_new_height): Remove.
3965 (tui_source_window_base::rerender): Rename from
3966 do_make_visible_with_new_height.
3967 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3968 resize method.
3969 (tui_win_info::make_invisible_and_set_new_height)
3970 (tui_win_info::make_visible_with_new_height): Remove.
3971 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3972 Declare.
3973 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3974 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3975 do_make_visible_with_new_height>: Don't declare.
3976 <rerender>: Declare.
3977 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3978 set_new_height.
3979 (tui_data_window::do_make_visible_with_new_height): Remove.
3980 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3981 call tui_show_locator_content.
3982 (tui_gen_win_info::resize): Call rerender.
3983 (show_source_or_disasm_and_command): Don't call
3984 tui_show_locator_content.
3985 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3986 method.
3987 (struct tui_win_info) <rerender>: Declare.
3988 <set_new_height, make_invisible_and_set_new_height,
3989 make_visible_with_new_height>: Don't declare.
3990 * tui/tui-data.c (tui_win_list::rerender): New method.
3991 * tui/tui-command.h (struct tui_cmd_window)
3992 <do_make_visible_with_new_height>: Don't declare.
3993 * tui/tui-command.c
3994 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3995
272560b5
TT
39962019-08-15 Tom Tromey <tromey@adacore.com>
3997
3998 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3999 * ada-lang.c (ada_enum_name): Likewise.
4000
08235187
CB
40012019-08-15 Christian Biesinger <cbiesinger@google.com>
4002
4003 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4004 leading underscore.
4005 (GdbOutputErrorFile): Likewise.
4006 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4007 accordingly.
4008 (execute_unwinders): Rename to have a leading underscore.
4009 (auto_load_packages): Likewise.
4010 (global scope): Adjust call to auto_load_packages accordingly.
4011 (GdbSetPythonDirectory): Likewise.
4012 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4013 instead of execute_unwinders.
4014
db502012
TT
40152019-08-15 Tom Tromey <tom@tromey.com>
4016
4017 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4018 (show_data): Don't change window visibility.
4019 (tui_gen_win_info::resize): Remove special case for command
4020 window. Use wresize, when available.
4021 (show_source_or_disasm_and_command): Don't change window
4022 visibility.
4023 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4024 <make_visible>: New method.
4025 * tui/tui-command.c (tui_cmd_window::resize): New method.
4026
3891b65e
TT
40272019-08-15 Tom Tromey <tom@tromey.com>
4028
4029 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4030 (struct tui_source_windows): New.
4031 * tui/tui-winsource.c (tui_display_main): Update.
4032 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4033 (new_height_ok, parse_scrolling_args): Update.
4034 * tui/tui-layout.c (show_layout, show_data): Update.
4035 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4036 (tui_add_to_source_windows): Don't declare.
4037 * tui/tui-data.c (source_windows, tui_source_windows)
4038 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4039
ee556432
TT
40402019-08-15 Tom Tromey <tom@tromey.com>
4041
4042 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4043 Rename from reset.
4044 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4045 * tui/tui-layout.c (show_source_disasm_command, show_data):
4046 Update.
4047 (tui_gen_win_info::resize): Rename.
4048 (show_source_or_disasm_and_command): Update.
4049 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4050 reset.
4051
46f438e3
TT
40522019-08-15 Tom Tromey <tom@tromey.com>
4053
4054 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4055 * tui/tui-interp.c (tui_interp::init): Don't call
4056 tui_initialize_static_data.
4057 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4058
f4ce562c
TT
40592019-08-15 Tom Tromey <tom@tromey.com>
4060
4061 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4062 examine tui_win_list.
4063
c398c3d0
TT
40642019-08-15 Tom Tromey <tom@tromey.com>
4065
4066 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4067 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4068 tui_clear_source_content.
4069 (tui_clear_source_content): Remove.
4070 (tui_source_window_base::do_erase_source_content): Hoist call to
4071 content.clear().
4072 * tui/tui-stack.c (tui_show_frame_info): Don't call
4073 tui_clear_source_content.
4074
e25d2004
TT
40752019-08-15 Tom Tromey <tom@tromey.com>
4076
4077 * tui/tui-winsource.h (struct tui_source_window_base)
4078 <do_erase_source_content>: New method.
4079 <erase_source_content>: New method.
4080 (tui_erase_source_content): Don't declare.
4081 * tui/tui-winsource.c (tui_clear_source_content): Update.
4082 (tui_source_window_base::do_erase_source_content): Rename from
4083 tui_erase_source_content.
4084 (tui_source_window_base::show_source_content): Update.
4085 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4086 * tui/tui-source.h (struct tui_source_window)
4087 <erase_source_content>: New method.
4088 * tui/tui-disasm.h (struct tui_disasm_window)
4089 <erase_source_content>: New method.
4090
002f15c2
TT
40912019-08-15 Tom Tromey <tom@tromey.com>
4092
4093 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4094 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4095 constructor.
4096 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4097 * tui/tui-source.c (tui_set_source_content): Update.
4098 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4099
c9033fe8
TT
41002019-08-15 Tom Tromey <tom@tromey.com>
4101
4102 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4103 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4104 tui-source.c.
4105 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4106 Declare.
4107 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4108 method.
4109 (tui_source_window::maybe_update): Update.
4110
088f37dd
TT
41112019-08-15 Tom Tromey <tom@tromey.com>
4112
4113 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4114 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4115 tui-disasm.c.
4116 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4117 Declare.
4118 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4119 method.
4120 (tui_disasm_window::maybe_update): Update.
4121
a54700c6
TT
41222019-08-15 Tom Tromey <tom@tromey.com>
4123
4124 * tui/tui-winsource.h (struct tui_source_window_base)
4125 <maybe_update>: Declare.
4126 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4127 method.
4128 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4129 Declare.
4130 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4131 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4132 Declare.
4133 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4134
e2a678a5
TT
41352019-08-15 Tom Tromey <tom@tromey.com>
4136
4137 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4138
f2dda477
TT
41392019-08-15 Tom Tromey <tom@tromey.com>
4140
4141 * tui/tui-wingeneral.c: Include tui-stack.h.
4142 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4143 (struct tui_locator_window): Move from tui-data.h.
4144 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4145 (tui_initialize_static_data): Move from tui-data.c.
4146 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4147 (struct tui_locator_window): Move to tui-stack.c.
4148 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4149 (tui_initialize_static_data): Move to tui-stack.c.
4150
ed4a1084
TT
41512019-08-15 Tom Tromey <tom@tromey.com>
4152
4153 * tui/tui-layout.c (show_source_disasm_command)
4154 (show_source_or_disasm_and_command): Use make_visible method, not
4155 tui_make_window.
4156 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4157 Remove.
4158
65962b20
TT
41592019-08-15 Tom Tromey <tom@tromey.com>
4160
4161 * tui/tui-wingeneral.h (tui_make_window): Update.
4162 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4163 parameter.
4164 (tui_gen_win_info::make_visible): Update.
4165 * tui/tui-regs.c (tui_data_window::display_registers_from):
4166 Update.
4167 * tui/tui-layout.c (show_source_disasm_command)
4168 (show_source_or_disasm_and_command): Update.
4169 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4170 (enum tui_box): Remove.
4171 (struct tui_win_info) <can_box>: New method.
4172 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4173 method.
4174
2208ee91
TV
41752019-08-15 Tom de Vries <tdevries@suse.de>
4176
4177 * linux-nat-trad.c: Include gdbarch.h.
4178
75faf5c4
AH
41792019-08-14 Alan Hayward <alan.hayward@arm.com>
4180
4181 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4182 register sizes.
4183
b1c896b3
TT
41842019-08-14 Tom Tromey <tromey@adacore.com>
4185
4186 * darwin-nat.c: Include gdbarch.h.
4187 * darwin-nat-info.c: Include gdbarch.h.
4188
6405cd73
TT
41892019-08-13 Tom Tromey <tom@tromey.com>
4190
4191 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4192 Remove.
4193 * tui/tui-data.c (tui_initialize_static_data): Update.
4194
5216580d
TT
41952019-08-13 Tom Tromey <tom@tromey.com>
4196
4197 * tui/tui-winsource.h (struct tui_exec_info_window)
4198 <~tui_exec_info_window, maybe_allocate_content, get_content,
4199 m_content>: Remove.
4200 (struct tui_source_window_base) <set_exec_info_content,
4201 show_exec_info_content>: Don't declare.
4202 * tui/tui-winsource.c
4203 (tui_exec_info_window::maybe_allocate_content): Remove.
4204 (tui_source_window_base::update_exec_info): Rename from
4205 set_exec_info_content.
4206 (tui_source_window_base::show_exec_info_content)
4207 (tui_source_window_base::update_exec_info): Remove.
4208
93858ad3
TT
42092019-08-13 Tom Tromey <tom@tromey.com>
4210
4211 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4212 declare.
4213 * tui/tui-winsource.c (tui_update_source_window_as_is)
4214 (tui_update_source_windows_with_addr, tui_erase_source_content):
4215 Update.
4216 (tui_clear_exec_info_content): Remove.
4217
e321e7ce
TT
42182019-08-13 Tom Tromey <tom@tromey.com>
4219
4220 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4221 declare.
4222 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4223 call tui_erase_exec_info_content.
4224 (tui_clear_exec_info_content): Rename from
4225 tui_erase_exec_info_content.
4226 (tui_clear_exec_info_content): Delete.
4227
8270ac62
TT
42282019-08-13 Tom Tromey <tom@tromey.com>
4229
4230 * tui/tui-winsource.h (struct tui_source_window_base)
4231 <show_exec_info_content>: Declare.
4232 (tui_show_exec_info_content): Don't declare.
4233 * tui/tui-winsource.c
4234 (tui_source_window_base::show_exec_info_content): Rename from
4235 tui_show_exec_info_content.
4236 (tui_source_window_base::update_exec_info): Update.
4237
7b56485d
TT
42382019-08-13 Tom Tromey <tom@tromey.com>
4239
4240 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4241 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4242 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4243 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4244 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4245 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4246 ... here.
4247
7ba913dc
TT
42482019-08-13 Tom Tromey <tom@tromey.com>
4249
4250 * tui/tui-winsource.h (struct tui_source_window_base)
4251 <update_exec_info>: Declare.
4252 (tui_update_exec_info): Don't declare.
4253 * tui/tui-winsource.c (tui_update_source_window_as_is)
4254 (tui_source_window_base::refresh_all)
4255 (tui_update_all_breakpoint_info): Update.
4256 (tui_source_window_base::update_exec_info): Rename from
4257 tui_update_exec_info.
4258 * tui/tui-stack.c (tui_show_frame_info): Update.
4259
37a4a131
TT
42602019-08-13 Tom Tromey <tom@tromey.com>
4261
4262 * tui/tui-winsource.h (struct tui_source_window_base)
4263 <set_exec_info_content>: Declare.
4264 (tui_set_exec_info_content): Don't declare.
4265 * tui/tui-winsource.c
4266 (tui_source_window_base::set_exec_info_content): Rename from
4267 tui_set_exec_info_content.
4268 (tui_update_exec_info): Update.
4269
0bd27e07
TT
42702019-08-13 Tom Tromey <tom@tromey.com>
4271
4272 * tui/tui-winsource.h (struct tui_source_window_base)
4273 <show_source_content>: Declare.
4274 (tui_show_source_content): Don't declare.
4275 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4276 (tui_source_window_base::show_source_content): Rename from
4277 tui_show_source_content.
4278 (tui_source_window_base::refresh_all): Update.
4279 * tui/tui-layout.c (show_source_disasm_command)
4280 (show_source_or_disasm_and_command): Update.
4281
b4ef5aeb
TT
42822019-08-13 Tom Tromey <tom@tromey.com>
4283
4284 * tui/tui-winsource.c (tui_erase_source_content)
4285 (tui_show_source_content, tui_source_window_base::refresh_all):
4286 Update.
4287 * tui/tui-wingeneral.h
4288 (tui_check_and_display_highlight_if_needed): Don't declare.
4289 * tui/tui-wingeneral.c
4290 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4291 check_and_display_highlight_if_needed.
4292 * tui/tui-win.c (tui_rehighlight_all)
4293 (tui_win_info::make_visible_with_new_height): Update.
4294 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4295 (tui_data_window::erase_data_content)
4296 (tui_data_window::display_all_data): Update.
4297 * tui/tui-data.h (struct tui_win_info)
4298 <check_and_display_highlight_if_needed>: Declare.
4299
fede5273
TT
43002019-08-13 Tom Tromey <tom@tromey.com>
4301
4302 * tui/tui-win.c (tui_resize_all): Call
4303 tui_delete_invisible_windows.
4304 * tui/tui-layout.c (show_layout): Call
4305 tui_delete_invisible_windows.
4306 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4307 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4308
22c3f490
TT
43092019-08-13 Tom Tromey <tom@tromey.com>
4310
4311 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4312 tui_add_win_to_layout.
4313
16cb7910
TT
43142019-08-13 Tom Tromey <tom@tromey.com>
4315
4316 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4317 * tui/tui-layout.c (tui_default_win_height): Now static.
4318
cc0c3ffb
TT
43192019-08-13 Tom Tromey <tom@tromey.com>
4320
4321 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4322 single switch.
4323 (show_source_disasm_command, show_source_or_disasm_and_command):
4324 Don't check current layout.
4325
3f3ffe54
TT
43262019-08-13 Tom Tromey <tom@tromey.com>
4327
4328 * tui/tui-wingeneral.c (make_all_visible): Remove.
4329 (tui_make_all_invisible): Simplify.
4330 * tui/tui-layout.c (tui_make_all_invisible): Move from
4331 tui-wingeneral.c; simplify.
4332 (show_layout): Hoist call to tui_make_all_invisible.
4333 (show_data): Don't call tui_make_all_invisible.
4334
69258091
TT
43352019-08-13 Tom Tromey <tom@tromey.com>
4336
4337 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4338 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4339
62cf57fe
TT
43402019-08-13 Tom Tromey <tom@tromey.com>
4341
4342 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4343 tui-data.c.
4344 (show_source_disasm_command, show_data)
4345 (show_source_or_disasm_and_command): Don't use
4346 tui_set_current_layout_to.
4347 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4348 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4349 tui-layout.c.
4350 (tui_set_current_layout_to): Remove.
4351
2afade5d
TT
43522019-08-13 Tom Tromey <tom@tromey.com>
4353
4354 * tui/tui-layout.c (tui_set_layout): Update.
4355 * tui/tui-data.h (struct tui_layout_def): Remove.
4356 (tui_layout_def): Don't declare.
4357 * tui/tui-data.c (layout_def): Remove.
4358 (tui_layout_def): Remove.
4359
a3504e96
TT
43602019-08-13 Tom Tromey <tom@tromey.com>
4361
4362 * tui/tui-winsource.h (struct tui_source_window_base)
4363 <clear_detail>: No longer "override".
4364 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4365 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4366 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4367 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4368 Remove.
4369 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4370
29c92911
TT
43712019-08-13 Tom Tromey <tromey@adacore.com>
4372
4373 * tracepoint.c: Don't include readline.h or history.h.
4374
86c6b807
TT
43752019-08-12 Tom Tromey <tom@tromey.com>
4376
4377 * configure: Rebuild.
4378 * configure.ac: Check for readline 7.
4379 * NEWS: Mention readline 7 requirement.
4380 * README: Update.
4381
5db2718c
TT
43822019-08-12 Tom Tromey <tom@tromey.com>
4383
4384 * mingw-hdep.c (gdb_select): Remove readline hack.
4385
dac36daf
PFC
43862019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4387
4388 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4389 when the function fails.
4390
1022c627
AA
43912019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4392
4393 * s390-tdep.c (s390_type_align): New function.
4394 (s390_gdbarch_init): Set it as type_align gdbarch method.
4395
eba4caf2
TV
43962019-08-09 Tom de Vries <tdevries@suse.de>
4397
4398 PR gdb/24591
4399 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4400 pc_low with relocation offset.
4401
123cd851
TT
44022019-08-07 Tom Tromey <tromey@adacore.com>
4403
4404 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4405 (print_frame_args): Update.
4406 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4407 Update.
4408 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4409 * frame.h (struct frame_arg): Add initializers.
4410 <error>: Now a unique_xmalloc_ptr.
4411
3d31bc39
AH
44122019-08-07 Alan Hayward <alan.hayward@arm.com>
4413
4414 * NEWS: Expand the Pointer Authentication entry.
4415 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4416 (aarch64_frame_unmask_lr): ... to this.
4417 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4418 Call aarch64_frame_unmask_lr.
4419 * frame.c (struct frame_info): Add "masked" variable.
4420 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4421 (fprint_frame): Check for masked pc.
4422 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4423 declarations.
4424 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4425 * stack.c (print_frame): Check for masked pc.
4426
0cf9feb9
TT
44272019-08-06 Tom Tromey <tom@tromey.com>
4428
4429 * stabsread.c (patch_block_stabs, read_one_struct_field)
4430 (read_enum_type): Use obstack_strndup.
4431 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4432 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4433 * dwarf2read.c (guess_full_die_structure_name)
4434 (anonymous_struct_prefix): Use obstack_strndup.
4435 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4436 * c-exp.y (yylex): Use obstack_strndup.
4437 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4438 (write_var_or_type): Use obstack_strndup.
4439
efba19b0
TT
44402019-08-06 Tom Tromey <tom@tromey.com>
4441
4442 * symfile.c (reread_symbols): Use obstack_strdup.
4443 * stabsread.c (read_type): Use obstack_strdup.
4444 * gdb_obstack.h (obstack_strdup): New overload.
4445 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4446 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4447 (dwarf2_canonicalize_name): Use obstack_strdup.
4448 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4449 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4450 Use obstack_strdup.
4451
f25102f7
TT
44522019-08-06 Tom Tromey <tom@tromey.com>
4453
4454 * gdb_obstack.h (obstack_strdup): Define.
4455 * gdb_obstack.c (obstack_strdup): Don't define.
4456
021887d8
TT
44572019-08-06 Tom Tromey <tom@tromey.com>
4458
4459 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4460 obstack_strdup.
4461 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4462 obstack_strdup.
4463 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4464 * stabsread.c (common_block_start): Use obstack_strdup.
4465 * objfiles.c (set_objfile_main_name, objfile): Use
4466 obstack_strdup.
4467 * namespace.c (add_using_directive): Use obstack_strdup.
4468 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4469 * jit.c (finalize_symtab): Use obstack_strdup.
4470 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4471 (guess_partial_die_structure_name, partial_die_info::fixup)
4472 (dwarf2_name): Use obstack_strdup.
4473 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4474 obstack_strdup.
4475 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4476 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4477 obstack_strdup.
4478 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4479
d2834edc
PW
44802019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4481
4482 * unittests/help-doc-selftests.c: New file.
4483 * Makefile.in: Add the new file.
4484
590042fc
PW
44852019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4486
4487 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4488 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4489 the full first line, except when FOR_VALUE_PREFIX. In this case,
4490 the trailing '.' is not output, and the first character is uppercased.
4491 (print_help_for_command): Update call to print_doc_line.
4492 (print_doc_of_command): Likewise.
4493 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4494 * cli/cli-option.c (append_indented_doc): Do not append newline.
4495 (build_help_option): Append newline after first appended_indented_doc
4496 only if a second call is done.
4497 (build_help): Append 2 new lines before each option, except the first
4498 one.
4499 * compile/compile.c (_initialize_compile): Add new lines after
4500 %OPTIONS%, when not at the end of the help.
4501 Change help doc or code
4502 producing the help doc to respect the invariants.
4503 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4504 Also removed the new line after 'Options:', as all other commands
4505 do not put an empty line between 'Options:' and the first option.
4506 * printcmd.c (_initialize_printcmd): Likewise.
4507 * stack.c (_initialize_stack): Likewise.
4508 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4509 incorrectly telling COMMAND is optional.
4510 * ada-lang.c (_initialize_ada_language): Change help doc or code
4511 producing the help doc to respect the invariants.
4512 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4513 * breakpoint.c (_initialize_breakpoint): Likewise.
4514 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4515 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4516 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4517 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4518 _initialize_cli_style): Likewise.
4519 * corelow.c (core_target_info): Likewise.
4520 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4521 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4522 * filesystem.c (_initialize_filesystem): Likewise.
4523 * frame.c (_initialize_frame): Likewise.
4524 * gnu-nat.c (add_task_commands): Likewise.
4525 * infcall.c (_initialize_infcall): Likewise.
4526 * infcmd.c (_initialize_infcmd): Likewise.
4527 * interps.c (_initialize_interpreter): Likewise.
4528 * language.c (_initialize_language): Likewise.
4529 * linux-fork.c (_initialize_linux_fork): Likewise.
4530 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4531 * maint.c (_initialize_maint_cmds): Likewise.
4532 * memattr.c (_initialize_mem): Likewise.
4533 * printcmd.c (_initialize_printcmd): Likewise.
4534 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4535 _RegEx): Likewise.
4536 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4537 * record-btrace.c (_initialize_record_btrace): Likewise.
4538 * record-full.c (_initialize_record_full): Likewise.
4539 * record.c (_initialize_record): Likewise.
4540 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4541 * regcache.c (_initialize_regcache): Likewise.
4542 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4543 _initialize_remote): Likewise.
4544 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4545 * serial.c (_initialize_serial): Likewise.
4546 * skip.c (_initialize_step_skip): Likewise.
4547 * source.c (_initialize_source): Likewise.
4548 * stack.c (_initialize_stack): Likewise.
4549 * symfile.c (_initialize_symfile): Likewise.
4550 * symtab.c (_initialize_symtab): Likewise.
4551 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4552 * top.c (init_main): Likewise.
4553 * tracefile-tfile.c (tfile_target_info): Likewise.
4554 * tracepoint.c (_initialize_tracepoint): Likewise.
4555 * tui/tui-win.c (_initialize_tui_win): Likewise.
4556 * utils.c (add_internal_problem_command): Likewise.
4557 * valprint.c (value_print_option_defs): Likewise.
4558
404f2902
FCE
45592019-08-06 Frank Ch. Eigler <fche@redhat.com>
4560
4561 PR build/24886
4562 * configure.ac: Drop enable-libmcheck support.
4563 * configure, config.in: Rebuild.
4564 * libmcheck.m4: Remove.
4565 * acinclude.m4: Don't include it.
4566 * Makefile.in: Don't distribute it.
4567 * top.c (print_gdb_configuration): Don't mention it.
4568
046bebe1
TT
45692019-08-06 Tom Tromey <tom@tromey.com>
4570
4571 * utils.c (set_output_style): Sometimes pass stream to
4572 emit_style_escape.
4573 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4574 * record-btrace.c (btrace_insn_history): Update.
4575 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4576 method.
4577 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4578 Update initializers.
4579 <m_uiout>: New field.
4580 <m_di>: Move lower.
4581 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4582 Remove "uiout" parameter.
4583 (dump_insns): Update.
4584 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4585 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4586
ddbcedf5
CB
45872019-08-06 Christian Biesinger <cbiesinger@google.com>
4588
4589 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4590 (error_in_psymtab_expansion): Likewise.
4591 (lookup_symbol_via_quick_fns): Likewise.
4592 (basic_lookup_transparent_type_quick): Likewise.
4593 (basic_lookup_transparent_type_1): Likewise.
4594
b08b16c8
TT
45952019-08-06 Tom Tromey <tromey@adacore.com>
4596
4597 * source.c (last_source_error): Now bool.
4598 (print_source_lines_base): Make "noprint" bool. Only open
4599 source file when last_source_visited changes.
4600
cb44333d
TT
46012019-08-06 Tom Tromey <tromey@adacore.com>
4602
4603 * annotate.c (annotate_source_line): Use g_source_cache.
4604 * source-cache.c (source_cache::get_plain_source_lines): Change
4605 parameters. Populate m_offset_cache.
4606 (source_cache::ensure): New method.
4607 (source_cache::get_line_charpos): New method.
4608 (extract_lines): Move lower. Change parameters.
4609 (source_cache::get_source_lines): Move lower.
4610 * source-cache.h (class source_cache): Update comment.
4611 <get_line_charpos>: New method.
4612 <get_source_lines>: Update comment.
4613 <clear>: Clear m_offset_cache.
4614 <get_plain_source_lines>: Change parameters.
4615 <ensure>: New method
4616 <m_offset_cache>: New member.
4617 * source.c (forget_cached_source_info_for_objfile): Update.
4618 (info_source_command): Use g_source_cache.
4619 (find_source_lines, open_source_file_with_line_charpos): Remove.
4620 (print_source_lines_base, search_command_helper): Use g_source_cache.
4621 * source.h (open_source_file_with_line_charpos): Don't declare.
4622 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4623 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4624 Use g_source_cache.
4625
872dceaa
TT
46262019-08-06 Tom Tromey <tromey@adacore.com>
4627
4628 * source-cache.c (source_cache::get_plain_source_lines):
4629 Remove "first_line" and "last_line" parameters.
4630 (source_cache::get_source_lines): Cache plain text.
4631 * source-cache.h (class source_cache)
4632 <get_plain_source_lines>: Update.
4633
269249d9
TT
46342019-08-06 Tom Tromey <tromey@adacore.com>
4635
4636 * source-cache.c (extract_lines): No longer a method.
4637 Changed type of parameter. Include final newline.
4638 (selftests::extract_lines_test): New function.
4639 (_initialize_source_cache): Likewise.
4640 * source-cache.h (class source_cache)
4641 <extract_lines>: Don't declare.
4642
c0e8dcd8
TT
46432019-08-06 Tom Tromey <tromey@adacore.com>
4644
4645 * breakpoint.c (init_breakpoint_sal): Update.
4646 (breakpoint): Update.
4647 * breakpoint.h (struct breakpoint) <filter>: Now a
4648 unique_xmalloc_ptr.
4649
0b27c27d
CB
46502019-08-05 Christian Biesinger <cbiesinger@google.com>
4651
4652 * NEWS: Mention dictionary access on blocks.
4653 * python/py-block.c (blpy_getitem): New function.
4654 (block_object_as_mapping): New struct.
4655 (block_object_type): Use new struct for tp_as_mapping field.
4656
4ee94178
CB
46572019-08-05 Christian Biesinger <cbiesinger@google.com>
4658
4659 * objfiles.h (objfile): Add a comment describing partial symbols.
4660
8abfcabc
TT
46612019-08-05 Tom Tromey <tromey@adacore.com>
4662
4663 * compile/compile.c (_initialize_compile): Use _(), not N_().
4664 * thread.c (_initialize_thread): Use _(), not N_().
4665 * stack.c (_initialize_stack): Use _(), not N_().
4666 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4667
2b79f376
SM
46682019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4669
4670 * dwarf2read.c (struct dw2_symtab_iterator):
4671 <want_specific_block>: Remove.
4672 <block_index>: Change type to gdb::optional.
4673 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4674 change type of BLOCK_INDEX parameter to gdb::optional.
4675 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4676 (dw2_lookup_symbol): Don't pass argument for
4677 WANT_SPECIFIC_BLOCK.
4678 (dw2_expand_symtabs_for_function): Don't pass argument for
4679 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4680 (class dw2_debug_names_iterator)
4681 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4682 parameter, change BLOCK_INDEX type to gdb::optional.
4683 <m_want_specific_block>: Remove.
4684 <m_block_index>: Change type to gdb::optional.
4685 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4686 gdb::optional. Re-write in function of gdb::optional.
4687 (dw2_debug_names_lookup_symbol): Don't pass argument for
4688 WANT_SPECIFIC_BLOCK.
4689 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4690 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4691 BLOCK_INDEX.
4692
ae60f04e
PW
46932019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4694
4695 * NEWS: Mention changes to "info sources" command.
4696
28cd9371
PW
46972019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4698
4699 * symtab.c (filename_partial_match_opts): New struct type.
4700 (struct output_source_filename_data): New members
4701 regexp, c_regexp, partial_match.
4702 (output_source_filename): Use new members to decide to print file.
4703 (info_sources_option_defs): New variable.
4704 (make_info_sources_options_def_group, print_info_sources_header,
4705 info_sources_command_completer):
4706 New functions.
4707 (info_sources_command): Read new optional arguments.
4708 (_initialize_symtab): Update info sources help.
4709
ca683e3a
AO
47102019-08-02 Alexandre Oliva <oliva@adacore.com>
4711
4712 * ada-lang.c (exception_support_info_v0): Renamed from...
4713 (default_exception_support_info): ... this. Create new
4714 definition for v1.
4715 (ada_has_this_exception_support): Look up catch_handlers_sym.
4716 (ada_exception_support_info_sniffer): Try v0 after default.
4717
f1264162
TT
47182019-08-01 Tom Tromey <tromey@adacore.com>
4719
4720 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4721 gdbarch.h.
4722
0a7b2485
CB
47232019-08-01 Christian Biesinger <cbiesinger@google.com>
4724
4725 * s12z-tdep.c: Fix include path for s12z-opc.h.
4726
c6bdbeb7
AH
47272019-08-01 Alan Hayward <alan.hayward@arm.com>
4728
4729 * NEWS: Require GNU make 3.82.
4730
a2bd7b82
TT
47312019-07-16 Tom Tromey <tom@tromey.com>
4732
4733 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4734 declare.
4735
aa3b6533
TT
47362019-07-30 Tom Tromey <tromey@adacore.com>
4737
4738 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4739
a1530dc7
KB
47402019-07-30 Kevin Buettner <kevinb@redhat.com>
4741
4742 * printcmd.c (print_address_symbolic): Print negative offsets.
4743 (build_address_symbolic): Force signed arithmetic when computing
4744 offset.
4745
2906593f
CB
47462019-07-30 Christian Biesinger <cbiesinger@google.com>
4747
4748 PR/24474: Add a function to lookup static variables.
4749 * NEWS: Mention this new function.
4750 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4751 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4752 * python/python.c (python_GdbMethods): Add new function.
4753
c620ed88
CB
47542019-07-29 Christian Biesinger <cbiesinger@google.com>
4755
4756 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4757 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4758 (objfpy_lookup_static_symbol): New function.
4759 (objfile_object_methods): Add new functions.
4760
bc4268a5
PW
47612019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4762
4763 * NEWS: Mention 'set|show print frame-info'. Mention new
4764 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4765 backtrace argument. Mention that python frame filtering code
4766 is now consistent with what 'backtrace' command prints.
4767
4b5e8d19
PW
47682019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4769
4770 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4771 comments.
4772 (print_frame_info_auto, print_frame_info_source_line,
4773 print_frame_info_location, print_frame_info_source_and_location,
4774 print_frame_info_location_and_address, print_frame_info_short_location):
4775 New declarations.
4776 (struct frame_print_options): New member print_frame_info.
4777 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4778 * stack.h (get_user_print_what_frame_info): New declaration.
4779 (frame_show_address): New declaration.
4780 * stack.c (print_frame_arguments_choices): New value 'presence'.
4781 (print_frame_info_auto, print_frame_info_source_line,
4782 print_frame_info_location, print_frame_info_source_and_location,
4783 print_frame_info_location_and_address, print_frame_info_short_location,
4784 print_frame_info_choices, print_frame_info_print_what): New definitions.
4785 (print_frame_args): Only print dots for args if print frame-arguments
4786 is 'presence'.
4787 (frame_print_option_defs): New element for "frame-info".
4788 (get_user_print_what_frame_info): New function.
4789 (frame_show_address): Make non static. Move comment to stack.h.
4790 (print_frame_info_to_print_what): New function.
4791 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4792 to decide what to print.
4793 (backtrace_command_1): Handle the new print_frame_arguments_presence
4794 value.
4795 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4796 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4797 (py_print_frame): In non-mi mode, use LOCATION as default for
4798 print_what, similarly to frame information printed directly by
4799 backtrace command. Handle frame-info user option in non MI mode.
4800
6bdfee81
KB
48012019-07-27 Kevin Buettner <kevinb@redhat.com>
4802
4803 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4804 Add case for debugging 32-bit target on 64-bit host. Revise
4805 comment.
4806
98a617f8
KB
48072019-07-27 Kevin Buettner <kevinb@redhat.com>
4808
4809 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4810 instead of find_function_entry_range_from_pc.
4811
567238c9
KB
48122019-07-27 Kevin Buettner <kevinb@redhat.com>
4813
4814 * stack.c (find_frame_funname): Remove code which preferred
4815 minsym over symtab sym in "certain pathological cases".
4816
2dc80cf8
KB
4817 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4818 parameter. Change type of "do_demangle" to bool.
4819 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4820 Pass suitable "prefer_sym_over_minsym" flag to
4821 build_address_symbolic(). Don't output "+" for negative offsets.
4822 * printcmd.c (print_address_symbolic): Update invocation of
4823 build_address_symbolic to include a "prefer_sym_over_minsym"
4824 flag.
4825 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4826 Restrict cases in which use of minimal symbol is preferred to that
4827 of a found symbol. Update comments.
4828
1aff7173
KB
4829 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4830 for entry pc when entry pc is out of range for that FDE.
4831
89b085ac
BC
48322019-07-26 Brian Callahan <bcallah@openbsd.org>
4833
4834 PR gdb/24839:
4835 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4836 type.
4837
f32feb4a
CB
48382019-07-25 Christian Biesinger <cbiesinger@google.com>
4839
4840 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4841 this function's Python signature.
4842
4843
48442019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
4845
4846 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4847 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4848 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4849 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4850 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4851
4852
c54e4253
YS
48532019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4854
4855 * h8300-tdep.c (h8300_register_name_common): New.
4856 h8300_register_name): Use h8300_register_name_common.
4857 (h8300s_register_name): Likewise.
4858 (h8300sx_register_name): Likewise.
4859 (h8300h_register_nam): New.
4860 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4861
4862
40eadf04
SP
48632019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4864
4865 * arm-tdep.c (arm_skip_cmse_entry): New function.
4866 (arm_is_sgstubs_section): New function.
4867 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4868
bfa2a36d
TT
48692019-07-22 Tom Tromey <tom@tromey.com>
4870
4871 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4872 Don't self-assign.
4873
a8e9d247
AB
48742019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4875
4876 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4877 type_print.
4878
eb86c5e2
AB
48792019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4880
4881 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4882 so that GDB doesn't match any msymbols when searching in the
4883 TYPES_DOMAIN.
4884 (print_symbol_info): Print using typedef_print or type_print based
4885 on the type of the symbol. Add updated FIXME comment moved from...
4886 (_initialize_symtab): ... move and update FIXME comment to above.
4887
a8eab7c6
AB
48882019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4889
4890 * NEWS: Mention adding -q option to "info types".
4891 * symtab.c (struct info_types_options): New struct.
4892 (info_types_options_defs): New variable.
4893 (make_info_types_options_def_group): New function.
4894 (info_types_command): Use gdb::option framework to parse options.
4895 (info_types_command_completer): New function.
4896 (_initialize_symtab): Extend the help text on "info types" and
4897 register command completer.
4898
b4603c34
CB
48992019-07-21 Christian Biesinger <cbiesinger@google.com>
4900
4901 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4902 (lookup_symbol_in_objfile): Change int to block_enum and add a
4903 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4904
c8cdc1e0
CB
49052019-07-20 Christian Biesinger <cbiesinger@google.com>
4906
4907 * MAINTAINERS (Write After Approval): Add self.
4908
01e175fe
AB
49092019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4910
4911 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4912 instruction to the dummy code region.
4913
56f79b63
TT
49142019-07-19 Tom Tromey <tromey@adacore.com>
4915
4916 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4917 (ARGSUSED, PARAMS, __func__): Remove rules.
4918
4c5aa8e0
AH
49192019-07-19 Alan Hayward <alan.hayward@arm.com>
4920
4921 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4922 * features/arm/arm-with-iwmmxt.c: Remove.
4923 * features/arm/arm-with-iwmmxt.xml: Remove.
4924 * features/arm/arm-with-m-fpa-layout.c: Remove.
4925 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4926 * features/arm/arm-with-m-vfp-d16.c: Remove.
4927 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4928 * features/arm/arm-with-m.c: Remove.
4929 * features/arm/arm-with-m.xml: Remove.
4930 * features/arm/arm-with-neon.c: Remove.
4931 * features/arm/arm-with-neon.xml: Remove.
4932 * features/arm/arm-with-vfpv2.c: Remove.
4933 * features/arm/arm-with-vfpv2.xml: Remove.
4934 * features/arm/arm-with-vfpv3.c: Remove.
4935 * features/arm/arm-with-vfpv3.xml: Remove.
4936
f42b2617
AH
49372019-07-19 Alan Hayward <alan.hayward@arm.com>
4938
4939 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4940
f29ec966
AH
49412019-07-19 Alan Hayward <alan.hayward@arm.com>
4942
4943 * arch/aarch32.c (aarch32_create_target_description): Create
4944 target descriptions using features.
4945 * arch/arm.c (arm_create_target_description)
4946 (arm_create_mprofile_target_description): Likewise.
4947 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4948
d105cce5
AH
49492019-07-19 Alan Hayward <alan.hayward@arm.com>
4950
4951 * Makefile.in: Add new files.
4952 * aarch32-tdep.c: New file.
4953 * aarch32-tdep.h: New file.
4954 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4955 Call aarch32_read_description.
4956 * arch/aarch32.c: New file.
4957 * arch/aarch32.h: New file.
4958 * arch/arm.c (arm_create_target_description)
4959 (arm_create_mprofile_target_description): New function.
4960 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4961 (arm_create_target_description)
4962 (arm_create_mprofile_target_description): New declaration.
4963 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4964 read_description functions.
4965 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4966 Likewise.
4967 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4968 * arm-tdep.c (tdesc_arm_list): New variable.
4969 (arm_register_g_packet_guesses): Call create description functions.
4970 (arm_read_description) (arm_read_mprofile_description): New
4971 function.
4972 * arm-tdep.h (arm_read_description)
4973 (arm_read_mprofile_description): Add declaration.
4974 * configure.tgt: Add new files.
4975
afe09f0b
GL
49762019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4977
4978 * top.c (new_ui_command): Open specified terminal just once.
4979
cd215b2e
TT
49802019-07-18 Tom Tromey <tromey@adacore.com>
4981
4982 * symtab.c (main_name): Constify return type.
4983 * symfile.c (set_initial_language): Update.
4984 * symtab.h (main_name): Constify return type.
4985
d8f68fcb
TT
49862019-07-17 Tom Tromey <tom@tromey.com>
4987
4988 * tui/tui-winsource.c (tui_update_source_window)
4989 (tui_update_source_window_as_is)
4990 (tui_update_source_windows_with_line): Remove return.
4991 * tui/tui-disasm.c (tui_show_disassem)
4992 (tui_show_disassem_and_update_source): Remove return.
4993 * tui/tui.c (tui_reset): Remove return.
4994 * tui/tui-wingeneral.c
4995 (tui_check_and_display_highlight_if_needed): Remove return.
4996
ca5af91e
TT
49972019-07-17 Tom Tromey <tom@tromey.com>
4998
4999 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5000
5104fe36
TT
50012019-07-17 Tom Tromey <tom@tromey.com>
5002
5003 * tui/tui-winsource.h (struct tui_exec_info_window)
5004 (struct tui_source_window_base): Move from tui-data.h.
5005 * tui/tui-winsource.c: Move many method definitions from
5006 elsewhere. Remove "structuring" comments.
5007 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5008 (tui_source_window_base::refresh_window): Move to
5009 tui-winsource.c.
5010 * tui/tui-win.c (tui_source_window_base::refresh_all)
5011 (tui_source_window_base::update_tab_width)
5012 (tui_source_window_base::set_new_height)
5013 (tui_source_window_base::do_make_visible_with_new_height): Move to
5014 tui-winsource.c.
5015 * tui/tui-source.h: Update.
5016 * tui/tui-source.c (tui_source_window_base::reset): Move to
5017 tui-winsource.c.
5018 * tui/tui-disasm.h: Update.
5019 * tui/tui-data.h (struct tui_exec_info_window): Move to
5020 tui-winsource.h.
5021 (struct tui_source_window_base): Likewise.
5022 * tui/tui-data.c (tui_source_window_base::clear_detail)
5023 (tui_source_window_base, ~tui_source_window_base): Move to
5024 tui-winsource.c.
5025
daa15dde
TT
50262019-07-17 Tom Tromey <tom@tromey.com>
5027
5028 * tui/tui-win.c (tui_resize_all)
5029 (tui_source_window_base::update_tab_width)
5030 (tui_adjust_win_heights): Update.
5031 (tui_win_info::make_invisible_and_set_new_height): Rename from
5032 make_invisible_and_set_new_height.
5033 * tui/tui-data.h (struct tui_win_info)
5034 <make_invisible_and_set_new_height>: New method.
5035
bfad4537
TT
50362019-07-17 Tom Tromey <tom@tromey.com>
5037
5038 * tui/tui.c: Update.
5039 * tui/tui-source.h (struct tui_source_window): Move from
5040 tui-data.h.
5041 * tui/tui-layout.c: Update.
5042 * tui/tui-disasm.c: Update.
5043 * tui/tui-data.h (struct tui_source_window): Move to
5044 tui-source.h.
5045
88f7e873
TT
50462019-07-17 Tom Tromey <tom@tromey.com>
5047
5048 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5049 tui-data.h.
5050 * tui/tui-data.h (struct tui_disasm_window): Move to
5051 tui-disasm.h.
5052
96bd6233
TT
50532019-07-17 Tom Tromey <tom@tromey.com>
5054
5055 * tui/tui-regs.h (struct tui_data_item_window): Move from
5056 tui-data.h.
5057 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5058 * tui/tui-data.h (struct tui_data_item_window): Move to
5059 tui-regs.h.
5060 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5061
ce38393b
TT
50622019-07-17 Tom Tromey <tom@tromey.com>
5063
5064 * tui/tui.c: Update.
5065 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5066 (tui_cmd_window::max_height): Move to tui-command.c.
5067 * tui/tui-layout.c: Update.
5068 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5069 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5070 tui-command.c.
5071 * tui/tui-command.h (struct tui_cmd_window): Move from
5072 tui-data.h.
5073 * tui/tui-command.c: Remove "structuring" comments.
5074 (tui_cmd_window::clear_detail)
5075 (tui_cmd_window::do_make_visible_with_new_height)
5076 (tui_cmd_window::max_height): Move from elsewhere.
5077
2d8b51cb
TT
50782019-07-17 Tom Tromey <tom@tromey.com>
5079
5080 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5081 Now static.
5082 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5083 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5084
18ab23af
TT
50852019-07-17 Tom Tromey <tom@tromey.com>
5086
5087 * tui/tui.c: Update.
5088 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5089 tui-regs.c.
5090 * tui/tui-windata.h: Remove file.
5091 * tui/tui-windata.c: Remove file.
5092 * tui/tui-win.c (tui_data_window::set_new_height)
5093 (tui_data_window::do_make_visible_with_new_height): Move to
5094 tui-regs.c.
5095 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5096 * tui/tui-regs.c: Remove "structuring" comments.
5097 (tui_data_window::first_data_item_displayed)
5098 (tui_data_window::delete_data_content_windows)
5099 (tui_data_window::erase_data_content)
5100 (tui_data_window::display_all_data)
5101 (tui_data_window::refresh_all)
5102 (tui_data_window::do_scroll_vertical)
5103 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5104 (tui_data_window::do_make_visible_with_new_height)
5105 (tui_data_window::refresh_window): Move from elsewhere.
5106 (_initialize_tui_regs): Move to end of file.
5107 * tui/tui-layout.c: Update.
5108 * tui/tui-hooks.c: Update.
5109 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5110 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5111 tui-regs.c.
5112 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5113
88b7e7cc
TT
51142019-07-17 Tom Tromey <tom@tromey.com>
5115
5116 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5117 seen.
5118
0fcd3711
TT
51192019-07-17 Tom Tromey <tom@tromey.com>
5120
5121 * tui/tui-win.c (tui_source_window_base::set_new_height)
5122 (tui_source_window_base::do_make_visible_with_new_height): Use
5123 m_has_locator field directly.
5124 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5125 method.
5126 (struct tui_source_window_base) <has_locator>: Likewise.
5127
4a38112d
TT
51282019-07-17 Tom Tromey <tom@tromey.com>
5129
5130 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5131 Don't declare.
5132 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5133 Remove.
5134 * tui/tui-win.c (tui_source_window_base::set_new_height)
5135 (tui_source_window_base::set_new_height)
5136 (make_invisible_and_set_new_height)
5137 (tui_source_window_base::do_make_visible_with_new_height)
5138 (tui_source_window_base::do_make_visible_with_new_height):
5139 Update.
5140 * tui/tui-layout.c (show_source_disasm_command, show_data)
5141 (show_source_or_disasm_and_command): Update.
5142 * tui/tui-layout.c (show_layout): Update.
5143
09129226
TT
51442019-07-17 Tom Tromey <tom@tromey.com>
5145
5146 * tui/tui-layout.c (make_data_window): Remove.
5147 (show_data): Unify creation and re-initialization cases.
5148
4a8a5e84
TT
51492019-07-17 Tom Tromey <tom@tromey.com>
5150
5151 * tui/tui-layout.c (make_source_window, make_disasm_window):
5152 Remove.
5153 (show_data): Unify creation and re-initialization cases.
5154
76d2be8e
TT
51552019-07-17 Tom Tromey <tom@tromey.com>
5156
5157 * tui/tui-layout.c (make_command_window): Remove.
5158 (show_source_disasm_command, show_source_or_disasm_and_command):
5159 Unify creation and re-initialization cases.
5160
890b8bde
TT
51612019-07-17 Tom Tromey <tom@tromey.com>
5162
5163 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5164 creation and re-initialization cases.
5165
2cdfa113
TT
51662019-07-17 Tom Tromey <tom@tromey.com>
5167
5168 * tui/tui-regs.c (tui_get_register): Return void.
5169
8e3cfd09
TT
51702019-07-17 Tom Tromey <tom@tromey.com>
5171
5172 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5173 Simplify.
5174
f4e04977
TT
51752019-07-17 Tom Tromey <tom@tromey.com>
5176
5177 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5178 resetting.
5179
0379b883
TT
51802019-07-17 Tom Tromey <tom@tromey.com>
5181
5182 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5183 * tui/tui-regs.c (tui_reg_layout): New function.
5184 (tui_show_registers, tui_reg_command): Use it.
5185 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5186 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5187 parameters.
5188 (tui_layout_command): Remove.
5189
b7fbad91
TT
51902019-07-17 Tom Tromey <tom@tromey.com>
5191
5192 * tui/tui-layout.h (tui/tui-layout): Return void.
5193 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5194
4e1e56b9
TT
51952019-07-17 Tom Tromey <tom@tromey.com>
5196
5197 * tui/tui-layout.c (show_source_disasm_command, show_data):
5198 Update.
5199 (reset_locator): Remove.
5200 (show_source_or_disasm_and_command): Update.
5201
1e0c09ba
TT
52022019-07-17 Tom Tromey <tom@tromey.com>
5203
5204 * tui/tui-source.c (tui_source_window_base::reset): Remove
5205 win_type parameter.
5206 * tui/tui-layout.c (make_command_window, make_source_window)
5207 (make_disasm_window, make_data_window)
5208 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5209 (reset_locator, show_source_or_disasm_and_command): Update.
5210 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5211 win_type parameter.
5212 (struct tui_source_window_base) <reset>: Likewise.
5213
1bf605de
TT
52142019-07-17 Tom Tromey <tom@tromey.com>
5215
5216 * tui/tui-layout.c (show_source_disasm_command): Use
5217 reset_locator.
5218 (reset_locator): New function.
5219 (init_and_make_win): Remove.
5220 (show_source_or_disasm_and_command): Use reset_locator.
5221
098f9ed4
TT
52222019-07-17 Tom Tromey <tom@tromey.com>
5223
5224 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5225 condition.
5226 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5227 Remove condition.
5228 * tui/tui-source.c (tui_source_window_base::reset): New method.
5229 * tui/tui-layout.c (make_command_window): Don't call
5230 init_and_make_win.
5231 (make_source_window, make_disasm_window): Don't call
5232 make_source_or_disasm_window.
5233 (make_data_window): Don't call init_and_make_win. Change calling
5234 convention.
5235 (show_source_disasm_command, show_data): Simplify.
5236 (make_source_or_disasm_window): Remove.
5237 (show_source_or_disasm_and_command): Simplify.
5238 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5239 (struct tui_source_window_base) <reset>: Likewise.
5240 <execution_info>: Remove initializer.
5241 * tui/tui-data.c (tui_source_window_base): Initialize
5242 execution_info.
5243
80110957
TT
52442019-07-17 Tom Tromey <tom@tromey.com>
5245
5246 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5247 variable.
5248
cf82af05
TT
52492019-07-17 Tom Tromey <tom@tromey.com>
5250
5251 * tui/tui.c (tui_rl_other_window): Update.
5252 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5253 superclass method first. Always iterate over regs_content.
5254 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5255 method.
5256 * tui/tui-win.c (tui_set_focus_command): Update.
5257
01aeb396
TT
52582019-07-17 Tom Tromey <tom@tromey.com>
5259
5260 * tui/tui-win.c (tui_set_focus_command): Rename from
5261 tui_set_focus. Call tui_enable.
5262 (tui_set_focus_command): Remove.
5263
fd6c75ee
TT
52642019-07-17 Tom Tromey <tom@tromey.com>
5265
5266 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5267 refresh_window.
5268 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5269 touchwin.
5270 (tui_data_window::refresh_window): Call refresh_window on data
5271 items. Always call superclass refresh_window.
5272 (tui_win_info::refresh): Remove.
5273 (tui_source_window_base::refresh_window): Update.
5274 (tui_refresh_all): Update.
5275 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5276 refresh_window.
5277 (show_source_or_disasm_and_command): Likewise.
5278 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5279 (struct tui_source_window_base) <refresh>: Likewise.
5280
f6cc34a9
TT
52812019-07-17 Tom Tromey <tom@tromey.com>
5282
5283 * tui/tui-winsource.c (tui_clear_source_content)
5284 (tui_show_source_content): Update.
5285 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5286 whether content is empty.
5287 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5288 Remove.
5289
f31ec9af
TT
52902019-07-17 Tom Tromey <tom@tromey.com>
5291
5292 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5293 window's contents.
5294 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5295 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5296
d1b6f1e5
TT
52972019-07-17 Tom Tromey <tom@tromey.com>
5298
5299 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5300 (struct tui_data_item_window): Update.
5301
d9743a13
TT
53022019-07-17 Tom Tromey <tom@tromey.com>
5303
5304 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5305 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5306 defines.
5307
caf0bc4e
TT
53082019-07-17 Tom Tromey <tom@tromey.com>
5309
5310 * tui/tui-winsource.h (tui_erase_source_content)
5311 (tui_clear_source_content): Remove "display_prompt" parameter.
5312 * tui/tui-winsource.c (tui_update_source_window_as_is)
5313 (tui_update_source_windows_with_addr): Update.
5314 (tui_clear_source_content): Remove "display_prompt" parameter.
5315 (tui_erase_source_content): Likewise. Simplify.
5316 (tui_show_source_content): Update.
5317 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5318 * tui/tui-stack.c (tui_show_frame_info): Update.
5319 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5320 Remove defines.
5321
9d391078
TT
53222019-07-17 Tom Tromey <tom@tromey.com>
5323
5324 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5325 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5326 parameter.
5327 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5328 parameter.
5329
a38da35d
TT
53302019-07-17 Tom Tromey <tom@tromey.com>
5331
5332 * tui/tui-winsource.c (tui_clear_source_content)
5333 (tui_show_source_content, tui_show_exec_info_content)
5334 (tui_clear_exec_info_content): Update.
5335 * tui/tui-stack.c (tui_show_locator_content): Update.
5336 (tui_show_frame_info): Update.
5337 * tui/tui-source.h (tui_source_window): Don't declare.
5338 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5339 from tui_source_is_displayed.
5340 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5341 Remove field.
5342 (struct tui_source_window_base) <content_in_use>: New field. Now
5343 bool.
5344 (struct tui_source_window) <showing_source_p>: New method.
5345 (TUI_SRC_WIN): Change cast.
5346 * tui/tui-data.c (tui_initialize_static_data): Update.
5347
c2cd8994
TT
53482019-07-17 Tom Tromey <tom@tromey.com>
5349
5350 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5351 location_matches_p.
5352 * tui/tui-source.c (tui_source_window::location_matches_p): New
5353 method.
5354 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5355 method.
5356 * tui/tui-data.h (struct tui_source_window_base)
5357 <location_matches_p>: New method.
5358 (struct tui_source_window, struct tui_disasm_window)
5359 <location_matches_p>: Likewise.
5360
4dde7b34
TT
53612019-07-17 Tom Tromey <tom@tromey.com>
5362
5363 * tui/tui-win.c (tui_set_win_height_command): Rename from
5364 tui_set_win_height.
5365 (tui_set_win_height_command): Remove.
5366
b73dd877
TT
53672019-07-17 Tom Tromey <tom@tromey.com>
5368
5369 * tui/tui-source.c (tui_source_window): New constructor. Add
5370 observer.
5371 (~tui_source_window): New destructor.
5372 (tui_source_window::style_changed): New method.
5373 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5374 (tui_attach_detach_observers): Update.
5375 * tui/tui-data.h (struct tui_source_window): Make constructor not
5376 inline. Add destructor.
5377 (struct tui_source_window) <style_changed>: New method.
5378 <m_observable>: New member.
5379
ae2b5380
TT
53802019-07-17 Tom Tromey <tom@tromey.com>
5381
5382 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5383 * tui/tui-win.c (tui_resize_all): Fix typo.
5384
1ce3e844
TT
53852019-07-17 Tom Tromey <tom@tromey.com>
5386
5387 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5388 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5389 (tui_refresh_all): Remove "list" parameter. Use foreach.
5390 * tui/tui-win.c (window_name_completer): Use foreach.
5391 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5392 (update_tab_width): Likewise.
5393 * tui/tui-layout.c (show_layout): Update.
5394 * tui/tui-data.h (class tui_window_iterator): New.
5395 (struct all_tui_windows): New.
5396 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5397
fe3eaf1c
TT
53982019-07-17 Tom Tromey <tom@tromey.com>
5399
5400 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5401 parameter. Don't reference globals.
5402 (tui_reg_command): Update.
5403
368c1354
TT
54042019-07-17 Tom Tromey <tom@tromey.com>
5405
5406 * tui/tui-regs.c (tui_show_registers): Simplify.
5407
e80cd204
TT
54082019-07-17 Tom Tromey <tom@tromey.com>
5409
5410 * tui/tui-regs.c (tui_show_registers): Update.
5411 (tui_show_register_group): Add win_info parameter.
5412
aca2dd16
TT
54132019-07-17 Tom Tromey <tom@tromey.com>
5414
5415 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5416 Rename from tui_display_reg_element_at_line.
5417 (tui_data_window::display_registers_from_line): Update.
5418 * tui/tui-data.h (struct tui_data_window)
5419 <display_reg_element_at_line>: New method.
5420
517e9505
TT
54212019-07-17 Tom Tromey <tom@tromey.com>
5422
5423 * tui/tui-regs.h (tui_display_registers_from)
5424 (tui_display_registers_from_line): Don't declare.
5425 * tui/tui-windata.c (tui_data_window::display_all_data)
5426 (tui_data_window::refresh_all)
5427 (tui_data_window::do_scroll_vertical): Update.
5428 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5429 from tui_display_registers_from.
5430 (tui_display_reg_element_at_line): Update.
5431 (tui_data_window::display_registers_from_line): Rename from
5432 tui_display_registers_from_line.
5433 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5434 display_registers_from_line>: New methods.
5435
f76d8b19
TT
54362019-07-17 Tom Tromey <tom@tromey.com>
5437
5438 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5439 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5440 from tui_erase_data_content.
5441 (tui_data_window::display_all_data)
5442 (tui_data_window::refresh_all)
5443 (tui_data_window::do_scroll_vertical): Update.
5444 * tui/tui-regs.c (tui_show_registers): Update.
5445 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5446 New method.
5447
b4094625
TT
54482019-07-17 Tom Tromey <tom@tromey.com>
5449
5450 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5451 declare.
5452 * tui/tui-windata.c
5453 (tui_data_window::delete_data_content_windows): Rename from
5454 tui_delete_data_content_windows.
5455 (tui_data_window::display_all_data)
5456 (tui_data_window::do_scroll_vertical): Update.
5457 * tui/tui-data.h (struct tui_data_window)
5458 <delete_data_content_windows>: New method.
5459
c223a729
TT
54602019-07-17 Tom Tromey <tom@tromey.com>
5461
5462 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5463 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5464
50daf268
TT
54652019-07-17 Tom Tromey <tom@tromey.com>
5466
5467 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5468 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5469 from tui_display_all_data.
5470 * tui/tui-win.c
5471 (tui_data_window::do_make_visible_with_new_height): Update.
5472 * tui/tui-regs.c (tui_show_registers): Update.
5473 * tui/tui-layout.c (tui_set_layout): Update.
5474 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5475 method.
5476
df5f8cab
TT
54772019-07-17 Tom Tromey <tom@tromey.com>
5478
5479 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5480 * tui/tui-windata.c (tui_display_data_from): Remove.
5481 (tui_data_window::refresh_all): Update.
5482
80cb6c27
TT
54832019-07-17 Tom Tromey <tom@tromey.com>
5484
5485 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5486 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5487 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5488 tui_display_registers_from_line.
5489 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5490 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5491 "force_display" parameter.
5492
baff0c28
TT
54932019-07-17 Tom Tromey <tom@tromey.com>
5494
5495 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5496 declare.
5497 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5498 Rename from tui_first_reg_element_no_inline.
5499 (tui_display_reg_element_at_line)
5500 (tui_display_registers_from_line): Update.
5501 * tui/tui-data.h (struct tui_data_window)
5502 <first_reg_element_no_inline>: New method.
5503
3b23c5f2
TT
55042019-07-17 Tom Tromey <tom@tromey.com>
5505
5506 * tui/tui-windata.c (tui_display_data_from)
5507 (tui_data_window::do_scroll_vertical): Update.
5508 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5509 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5510 Rename from tui_line_from_reg_element_no.
5511 (tui_display_registers_from_line): Update.
5512 * tui/tui-data.h (struct tui_data_window)
5513 <line_from_reg_element_no>: New method.
5514
0b5ec218
TT
55152019-07-17 Tom Tromey <tom@tromey.com>
5516
5517 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5518 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5519 tui_last_regs_line_no.
5520 (tui_display_reg_element_at_line)
5521 (tui_display_registers_from_line): Update.
5522 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5523 method.
5524
0807ab7b
TT
55252019-07-17 Tom Tromey <tom@tromey.com>
5526
5527 PR tui/24722:
5528 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5529 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5530 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5531 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5532 (tui_update_breakpoint_info): Likewise.
5533 * tui/tui-hooks.c (tui_event_create_breakpoint)
5534 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5535 Update.
5536
9ad7fdef
TT
55372019-07-17 Tom Tromey <tom@tromey.com>
5538
5539 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5540
5813316f
TT
55412019-07-17 Tom Tromey <tom@tromey.com>
5542
5543 * tui/tui-winsource.c (tui_update_source_window_as_is)
5544 (tui_update_source_windows_with_addr): Update.
5545 * tui/tui-source.h (tui_set_source_content)
5546 (tui_show_symtab_source): Add "win_info" parameter.
5547 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5548 parameter.
5549 (tui_show_symtab_source): Likewise.
5550
00e264e7
TT
55512019-07-17 Tom Tromey <tom@tromey.com>
5552
5553 * tui/tui-wingeneral.c
5554 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5555
06210ce4
TT
55562019-07-17 Tom Tromey <tom@tromey.com>
5557
5558 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5559 (struct tui_cmd_window) <can_scroll>: New method.
5560 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5561 method.
5562
381befee
TT
55632019-07-17 Tom Tromey <tromey@adacore.com>
5564
5565 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5566 do_field_signed>: Rename. Change type of "value".
5567 * ui-out.c (ui_out::field_signed): Rename from field_int.
5568 Change type of "value".
5569 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5570 type of "value".
5571 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5572 do_field_int. Change type of "value".
5573 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5574 do_field_int. Change type of "value".
5575 * tracepoint.c (trace_status_mi, tfind_1)
5576 (print_one_static_tracepoint_marker): Update.
5577 * thread.c (print_thread_info_1, print_selected_thread_frame):
5578 Update.
5579 * stack.c (print_frame, print_frame_info): Update.
5580 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5581 Update.
5582 * source.c (print_source_lines_base): Update.
5583 * skip.c (info_skip_command): Update.
5584 * record-btrace.c (btrace_ui_out_decode_error)
5585 (btrace_call_history_src_line): Update.
5586 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5587 Update.
5588 * progspace.c (print_program_space): Update.
5589 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5590 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5591 do_field_int. Change type of "value".
5592 * mi/mi-out.c (mi_ui_out::do_table_begin)
5593 (mi_ui_out::do_table_header): Update.
5594 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5595 type of "value".
5596 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5597 (mi_cmd_data_list_changed_registers, output_register)
5598 (mi_cmd_data_read_memory, mi_load_progress)
5599 (mi_cmd_trace_frame_collected): Update.
5600 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5601 Update.
5602 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5603 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5604 (mi_cmd_var_list_children, varobj_update_one): Update.
5605 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5606 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5607 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5608 * inferior.c (print_inferior): Update.
5609 * gdb_bfd.c (print_one_bfd): Update.
5610 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5611 Update.
5612 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5613 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5614 do_field_int. Change type of "value".
5615 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5616 do_field_int. Change type of "value".
5617 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5618 (print_one_breakpoint_location, print_it_catch_fork)
5619 (print_one_catch_fork, print_it_catch_vfork)
5620 (print_one_catch_vfork, print_it_catch_solib)
5621 (print_it_catch_exec, print_it_ranged_breakpoint)
5622 (print_mention_watchpoint, print_mention_masked_watchpoint)
5623 (bkpt_print_it, update_static_tracepoint): Update.
5624 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5625 * break-catch-syscall.c (print_it_catch_syscall): Update.
5626 * ada-tasks.c (print_ada_task_info): Update.
5627 * ada-lang.c (print_it_exception, print_mention_exception):
5628 Update.
5629
6b78c3f8
AB
56302019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5631
5632 PR breakpoints/24541
5633 * gdbarch.c: Regenerate.
5634 * gdbarch.h: Regenerate.
5635 * gdbarch.sh: Adjust return type and parameter types for
5636 'stap_adjust_register'.
5637 (i386_stap_adjust_register): Adjust signature and return new
5638 register name.
5639 * stap-probe.c (stap_parse_register_operand): Adjust use of
5640 'gdbarch_stap_adjust_register'.
5641
d72a9b85
TT
56422019-07-17 Tom Tromey <tromey@adacore.com>
5643
5644 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5645 declare VEC.
5646 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5647 std::vector.
5648 (struct s390_process_info): Add initializers.
5649 (s390_add_process): Use new.
5650 (s390_linux_nat_target::low_forget_process): Use delete.
5651 (s390_linux_nat_target::low_new_fork)
5652 (s390_linux_nat_target::stopped_by_watchpoint)
5653 (s390_linux_nat_target::low_prepare_to_resume)
5654 (s390_linux_nat_target::insert_watchpoint)
5655 (s390_linux_nat_target::insert_hw_breakpoint)
5656 (s390_linux_nat_target::remove_watchpoint)
5657 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5658
206e6c58
JB
56592019-07-16 John Baldwin <jhb@FreeBSD.org>
5660
5661 * aarch64-fbsd-nat.c: Include regcache.h.
5662 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5663 argument.
5664 (aarch64_fbsd_nat_target::fetch_registers)
5665 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5666 variable.
5667 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5668
cbde90f2
JB
56692019-07-16 John Baldwin <jhb@FreeBSD.org>
5670
5671 * fbsd-nat.c: Include gdbarch.h.
5672
07128006
TT
56732019-07-15 Tom Tromey <tromey@adacore.com>
5674
5675 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5676
1f77b012
TT
56772019-07-15 Tom Tromey <tromey@adacore.com>
5678
5679 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5680 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5681 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5682 * cli-out.c (cli_ui_out::do_field_int): New method.
5683 * ui-out.c (ui_out::field_unsigned): New method.
5684 * symfile.c (generic_load): Use field_unsigned.
5685 (print_transfer_performance): Likewise.
5686 * record-btrace.c (ui_out_field_uint): Remove.
5687 (btrace_call_history_insn_range, btrace_call_history): Use
5688 field_unsigned.
5689 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5690 field_unsigned.
5691 * ui-out.h (class ui_out) <field_unsigned>: New method.
5692 <do_field_unsigned>: Likewise.
5693
33eca680
TT
56942019-07-15 Tom Tromey <tromey@adacore.com>
5695
5696 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5697 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5698 * target.c (flash_erase_command): Use field_string.
5699 * infrun.c (print_signal_received_reason): Use field_string.
5700 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5701 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5702 field_string.
5703 * ada-tasks.c (print_ada_task_info): Use field_string.
5704
ca8d69be
TT
57052019-07-15 Tom Tromey <tromey@adacore.com>
5706
5707 * target.c (flash_erase_command): Use field_core_addr.
5708 * symfile.c (generic_load): Use field_core_addr.
5709 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5710 Use field_core_addr.
5711 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5712 field_core_addr.
5713
0d4e84ed
AB
57142019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5715
5716 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5717 value if its desired type is smaller than a CORE_ADDR and signed.
5718
9a49df9d
AB
57192019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5720
5721 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5722 of changes to field names, and use new is_reference field to
5723 decide if a property is a reference or not.
5724 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5725 field.
5726 (struct dwarf2_property_baton): Update header comment, rename
5727 'referenced_type' to 'property_type' and update comments.
5728 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5729 default property type, store in property baton, update to take
5730 accound of renamed field.
5731 (read_func_scope): Update call to attr_to_dynamic_prop.
5732 (read_array_type): Likewise.
5733 (dwarf2_per_cu_addr_sized_int_type): New function.
5734 (read_subrange_index_type): Move type finding code to
5735 dwarf2_per_cu_addr_sized_int_type.
5736 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5737 (dwarf2_per_cu_addr_type): New function.
5738 (set_die_type): Update calls to attr_to_dynamic_prop.
5739
b86352cf
AB
57402019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5741
5742 * dwarf2read.c (read_subrange_index_type): New function.
5743 (read_subrange_type): Move code into new function and call it.
5744 * gdbtypes.c (create_range_type): Add some asserts.
5745
603490bf
AB
57462019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5747
5748 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5749 update return statements.
5750 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5751 declaration, and update comment to match.
5752 * gdbtypes.c (resolve_dynamic_array): Update call to
5753 dwarf2_evaluate_property to match new return type.
5754
592f9d27
AB
57552019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5756
5757 * valarith.c (value_subscripted_rvalue): Change lowerbound
5758 parameter type from int to LONGEST.
5759 * value.h (value_subscripted_rvalue): Likewise in declaration.
5760
60cfcb20
AB
57612019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5762
5763 * cli/cli-utils.c (info_print_command_completer): New function.
5764 * cli/cli-utils.h: Add 'completer.h' include, and forward
5765 declaration for 'struct cmd_list_element'.
5766 (info_print_command_completer): Declare.
5767 * stack.c (_initialize_stack): Add completer for 'info locals' and
5768 'info args'.
5769 * symtab.c (_initialize_symtab): Add completer for 'info
5770 variables' and 'info functions'.
5771 * NEWS: Mention completion for additional info commands.
5772
b16507e0
AB
57732019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5774
5775 * cli/cli-utils.c (extract_info_print_args): Delete.
5776 (extract_arg_maybe_quoted): Delete.
5777 (info_print_options_defs): New variable.
5778 (make_info_print_options_def_group): New function.
5779 (extract_info_print_options): Define new function.
5780 * cli/cli-utils.h (extract_info_print_args): Delete.
5781 (struct info_print_options): New structure.
5782 (extract_info_print_options): Declare new function.
5783 * stack.c (info_locals_command): Update to use new
5784 extract_info_print_options, also add a header comment.
5785 (info_args_command): Likewise.
5786 * symtab.c (info_variables_command): Likewise.
5787 (info_functions_command): Likewise.
5788
021d8588
AB
57892019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5790
5791 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5792 to extract string arguments.
5793 * common/common-utils.c (extract_string_maybe_quoted): New function.
5794 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5795
b777eb6d
TT
57962019-07-11 Tom Tromey <tromey@adacore.com>
5797
5798 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5799 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5800 * top.h (gdbinit): Don't declare.
5801 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5802 into...
5803 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5804 * top.c (gdb_init): Don't call init_cli_cmds.
5805 (gdbinit): Remove.
5806 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5807
72ee03ff
TT
58082019-07-11 Tom Tromey <tromey@adacore.com>
5809
5810 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5811 after it has been moved.
5812
00db9531
SM
58132019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5814
5815 * valops.c (value_must_coerce_to_target): Change return type to
5816 bool.
5817 * value.h (value_must_coerce_to_target): Likewise.
5818
f2478a7e
SM
58192019-07-10 Simon Marchi <simon.marchi@efficios.com>
5820
5821 * breakpoint.c (is_hardware_watchpoint): Remove
5822 forward-declaration.
5823 (is_masked_watchpoint): Change return type to bool.
5824 (is_tracepoint): Likewise.
5825 (is_breakpoint): Likewise.
5826 (is_hardware_watchpoint): Likewise.
5827 (is_watchpoint): Likewise.
5828 (is_no_memory_software_watchpoint): Likewise.
5829 (is_catchpoint): Likewise.
5830 (breakpoint_1): Make FILTER parameter's return type bool.
5831 is_masked_watchpoint): Change return type to bool.
5832 (save_breakpoints): Make FILTER parameter's return type bool.
5833 * breakpoint.h (is_breakpoint): Change return type to bool.
5834 (is_watchpoint): Likewise.
5835 (is_catchpoint): Likewise.
5836 (is_tracepoint): Likewise.
5837
0d12e84c
TT
58382019-07-10 Tom Tromey <tom@tromey.com>
5839
5840 * defs.h: Don't include gdbarch.h.
5841 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5842 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5843 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5844 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5845 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5846 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5847 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5848 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5849 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5850 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5851 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5852 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5853 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5854 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5855 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5856 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5857 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5858 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5859 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5860 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5861 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5862 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5863 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5864 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5865 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5866 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5867 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5868
f06f1252
TT
58692019-07-10 Tom Tromey <tromey@adacore.com>
5870
5871 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5872 * breakpoint.c (init_ada_exception_breakpoint): Register as
5873 bp_catchpoint.
5874 (print_one_breakpoint_location, print_one_breakpoint): Use
5875 is_ada_exception_catchpoint.
5876 * ada-lang.c (class ada_catchpoint_location): Pass
5877 bp_loc_software_breakpoint to bp_location constructor.
5878 (is_ada_exception_catchpoint): New function.
5879
7a5d944b
TT
58802019-07-10 Tom Tromey <tromey@adacore.com>
5881
5882 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5883 VEC.
5884 (struct arm_exidx_entry): New method operator<.
5885 (struct arm_exidx_data) <section_maps>: Change type.
5886 (arm_exidx_data_free): Remove.
5887 (arm_exidx_data_key): Change type. Move lower.
5888 (arm_exidx_new_objfile): Update.
5889 (arm_compare_exidx_entries): Remove.
5890 (arm_find_exidx_entry, _initialize_arm_tdep)
5891
48c66e1d
TT
58922019-07-10 Tom Tromey <tromey@adacore.com>
5893
5894 * solib-spu.c (ocl_program_data_key): Change type.
5895 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5896 Update.
5897
a269fbf1
TT
58982019-07-10 Tom Tromey <tromey@adacore.com>
5899
5900 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5901 (struct solib_aix_inferior_data) <library_list>: Change type.
5902 (solib_aix_inferior_data_handle): Change type.
5903 (get_solib_aix_inferior_data): Update.
5904 (solib_aix_free_library_list): Remove.
5905 (library_list_start_library): Update.
5906 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5907 return type.
5908 (solib_aix_get_library_list)
5909 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5910 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5911
c294730c
TT
59122019-07-10 Tom Tromey <tromey@adacore.com>
5913
5914 * solib-dsbt.c (struct dsbt_info): Add initializers.
5915 (solib_dsbt_pspace_data): Change type.
5916 (dsbt_pspace_data_cleanup): Remove.
5917 (get_dsbt_info, _initialize_dsbt_solib): Update.
5918
9d52077d
TT
59192019-07-10 Tom Tromey <tromey@adacore.com>
5920
5921 * spu-tdep.c (spu_overlay_data): Change type.
5922 (spu_get_overlay_table, spu_overlay_new_objfile)
5923 (_initialize_spu_tdep): Update.
5924
22a20dca
TT
59252019-07-10 Tom Tromey <tromey@adacore.com>
5926
5927 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5928 destructor.
5929 (dbx_objfile_data_key): Change type and declare later.
5930 (DBX_SYMFILE_INFO): Rewrite.
5931 * dbxread.c (dbx_objfile_data_key): Change type.
5932 (dbx_symfile_init): Update.
5933 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5934 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5935 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5936
cb60f420
TT
59372019-07-10 Tom Tromey <tromey@adacore.com>
5938
5939 * jit.c (jit_program_space_key): Change type. Move lower.
5940 (get_jit_program_space_data): Update.
5941 (jit_program_space_data_cleanup): Remove.
5942 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5943 Update.
5944 (struct jit_program_space_data): Add initializers.
5945
51df2ae3
TT
59462019-07-10 Tom Tromey <tromey@adacore.com>
5947
5948 * solib-darwin.c (struct darwin_info): Add initializers.
5949 (solib_darwin_pspace_data): Change type.
5950 (darwin_pspace_data_cleanup): Remove.
5951 (get_darwin_info, _initialize_darwin_solib): Update.
5952
18101a35
TT
59532019-07-10 Tom Tromey <tromey@adacore.com>
5954
5955 * remote-sim.c (struct sim_inferior_data): Add initializers,
5956 constructor, and destructor.
5957 (sim_inferior_data_key): Change type. Move lower.
5958 (check_for_duplicate_sim_descriptor): Update.
5959 (get_sim_inferior_data): Use new. Update.
5960 (~sim_inferior_data_cleanup): Rename from
5961 sim_inferior_data_cleanup. Simplify.
5962 (gdbsim_close_inferior, simulator_command)
5963 (sim_command_completer, _initialize_remote_sim): Update.
5964 (next_pid, INITIAL_PID): Move earlier.
5965
05b08ac1
TT
59662019-07-10 Tom Tromey <tromey@adacore.com>
5967
5968 * python/python-internal.h (create_thread_object): Return
5969 gdbpy_ref.
5970 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5971 * python/py-inferior.c (struct threadlist_entry): Add
5972 constructor.
5973 <thread_obj>: Now a gdbpy_ref.
5974 (thread_to_thread_object): Update.
5975 (add_thread_object): Use new.
5976 (delete_thread_object): Use delete.
5977 (infpy_threads): Update.
5978 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5979 GIL.
5980
32372d80
TT
59812019-07-10 Tom Tromey <tromey@adacore.com>
5982
5983 * valops.c (value_cast): Specialize error message for Ada.
5984
5c458ae8
SM
59852019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5986
5987 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5988
4c462cb0
SM
59892019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5990
5991 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5992 bpstat_should_step): Return bool, adjust comments.
5993 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5994 bpstat_should_step): Likewise.
5995
89abbcc2
AH
59962019-07-10 Alan Hayward <alan.hayward@arm.com>
5997
5998 * features/Makefile: Use feature target descriptions for Arm.
5999 * features/arm/arm-core.c: Generate new file.
6000 * features/arm/arm-fpa.c: Likewise.
6001 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6002 * features/arm/arm-m-profile.c: Likewise.
6003 * features/arm/arm-vfpv2.c: Likewise.
6004 * features/arm/arm-vfpv3.c: Likewise.
6005 * features/arm/xscale-iwmmxt.c: Likewise.
6006 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6007
166a82be
AH
60082019-07-10 Alan Hayward <alan.hayward@arm.com>
6009
6010 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6011 ptrace earlier.
6012
9fb4c7e9
AH
60132019-07-10 Alan Hayward <alan.hayward@arm.com>
6014
6015 * features/aarch64-pauth.c: Regenerate.
6016
e2d0f980
SM
60172019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6018
6019 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6020 bool.
6021 (bpstat_what): Use false instead of 0.
6022
a38118e5
PA
60232019-07-09 Pedro Alves <palves@redhat.com>
6024
6025 * break-catch-throw.c (is_exception_catchpoint): New.
6026 * breakpoint.c (print_one_breakpoint_location): New parameter
6027 'raw_loc'. Handle it. Use
6028 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6029 looking at the breakpoint's type.
6030 (print_one_breakpoint): If handling "maint info breakpoints", also
6031 print locations of exception catchpoints.
6032 * breakpoint.h (is_exception_catchpoint): Declare.
6033
cb1e4e32
PA
60342019-07-09 Pedro Alves <palves@redhat.com>
6035
6036 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6037 "addr" field.
6038 (allocate_location_exception_catchpoint): New.
6039 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6040 (initialize_throw_catchpoint_ops): Install
6041 allocate_location_exception_catchpoint as allocate_location
6042 method.
6043 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6044 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6045 bp_loc_other.
6046 (breakpoint_address_is_meaningful): Delete.
6047 (bl_address_is_meaningful): New.
6048 (breakpoint_locations_match): Adjust comment.
6049 (bp_location_from_bp_type): New, factored out of...
6050 (bp_location::bp_location(breakpoint *)): ... this.
6051 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6052 factored out of...
6053 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6054 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6055 breakpoint_address_is_meaningful.
6056 (bp_locations_compare): Adjust comment.
6057 (update_global_location_list): Use bl_address_is_meaningful
6058 instead of breakpoint_address_is_meaningful.
6059 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6060 explicit.
6061 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6062 * python/py-breakpoint.c (bppy_get_location): No longer check
6063 whether location is null.
6064
b58a68fe
PA
60652019-07-09 Pedro Alves <palves@redhat.com>
6066
6067 PR c++/15468
6068 * breakpoint.c (print_one_breakpoint_location): Remove
6069 single-location assert.
6070
268a13a5
TT
60712019-07-09 Tom Tromey <tom@tromey.com>
6072
6073 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6074 * configure: Rebuild.
6075 * configure.ac: Change common to gdbsupport.
6076 * gdbsupport: Rename from common.
6077 * acinclude.m4: Change common to gdbsupport.
6078 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6079 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6080 gdbsupport.
6081 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6082 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6083 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6084 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6085 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6086 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6087 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6088 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6089 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6090 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6091 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6092 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6093 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6094 coff-pe-read.c, command.h, compile/compile-c-support.c,
6095 compile/compile-c.h, compile/compile-cplus-symbols.c,
6096 compile/compile-cplus-types.c, compile/compile-cplus.h,
6097 compile/compile-loc2c.c, compile/compile.c, completer.c,
6098 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6099 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6100 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6101 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6102 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6103 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6104 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6105 features/aarch64-core.c, features/aarch64-fpu.c,
6106 features/aarch64-pauth.c, features/aarch64-sve.c,
6107 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6108 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6109 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6110 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6111 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6112 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6113 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6114 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6115 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6116 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6117 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6118 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6119 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6120 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6121 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6122 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6123 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6124 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6125 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6126 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6127 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6128 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6129 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6130 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6131 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6132 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6133 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6134 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6135 minsyms.c, mips-linux-tdep.c, namespace.h,
6136 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6137 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6138 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6139 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6140 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6141 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6142 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6143 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6144 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6145 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6146 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6147 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6148 procfs.c, producer.c, progspace.h, psymtab.h,
6149 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6150 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6151 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6152 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6153 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6154 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6155 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6156 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6157 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6158 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6159 target-memory.c, target.c, target.h, target/waitstatus.c,
6160 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6161 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6162 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6163 unittests/array-view-selftests.c,
6164 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6165 unittests/common-utils-selftests.c,
6166 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6167 unittests/format_pieces-selftests.c,
6168 unittests/function-view-selftests.c,
6169 unittests/lookup_name_info-selftests.c,
6170 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6171 unittests/mkdir-recursive-selftests.c,
6172 unittests/observable-selftests.c,
6173 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6174 unittests/parse-connection-spec-selftests.c,
6175 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6176 unittests/scoped_fd-selftests.c,
6177 unittests/scoped_mmap-selftests.c,
6178 unittests/scoped_restore-selftests.c,
6179 unittests/string_view-selftests.c, unittests/style-selftests.c,
6180 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6181 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6182 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6183 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6184 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6185 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6186
5b0e2db4
AB
61872019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6188
6189 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6190 bool value.
6191 (decode_digits_ordinary): Set explicit_line field in sal.
6192 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6193 symtab_and_line that was set on an explicit line number in
6194 assembler code. Do always update the recorded symtab and line if
6195 we do skip the prologue.
6196
0ba852ab
AB
61972019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6198
6199 * breakpoint.c (set_breakpoint_location_function): Remove
6200 explicit_loc parameter.
6201 (momentary_breakpoint_from_master): Update call to
6202 set_breakpoint_location_function.
6203 (add_location_to_breakpoint): Likewise.
6204
b3a7d171
AB
62052019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6206
6207 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6208 required features based on default bfd type when no specific bfd
6209 is present.
6210
1f6f6e21
PW
62112019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6212
6213 * NEWS: Mention that GDB printf and eval commands can now print
6214 C-style and Ada-style convenience var strings without
6215 calling the inferior.
6216 * printcmd.c (printf_c_string): Locally print GDB internal var
6217 instead of transiting via the inferior.
6218 (printf_wide_c_string): Likewise.
6219
62202019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6221
5862c886 6222 PR breakpoints/25011
ea142fbf
AH
6223 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6224
0598af48
TT
62252019-07-04 Tom Tromey <tom@tromey.com>
6226
6227 PR tui/24724:
6228 * tui/tui-winsource.c (tui_clear_source_content): Update.
6229 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6230 (tui_update_breakpoint_info): Update.
6231 (tui_set_exec_info_content): Update.
6232 * tui/tui-source.c (tui_set_source_content_nil): Update.
6233 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6234 has_break.
6235 * tui/tui-data.h (enum tui_bp_flag): New.
6236 (tui_bp_flags): New enum flags type.
6237 (struct tui_source_element) <break_mode>: Change type. Rename
6238 from has_break.
6239 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6240 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6241 constants.
6242 * tui/tui-winsource.h: Fix comment.
6243
350fab54
AH
62442019-07-04 Alan Hayward <alan.hayward@arm.com>
6245
6246 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6247 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6248 (store_fpregs_to_thread)
6249 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6250 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6251 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6252 (IWMMXT_REGS_SIZE): Add define.
6253 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6254 (fetch_vfp_regs, store_vfp_regs)
6255 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6256 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6257
f0452268
AH
62582019-07-04 Alan Hayward <alan.hayward@arm.com>
6259
6260 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6261 defines.
6262 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6263 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6264 (ARM_INT_REGISTER_SIZE): ...to this.
6265 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6266 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6267 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6268 (arm_linux_collect_gregset, supply_nwfpe_register)
6269 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6270 defines.
6271 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6272 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6273 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6274 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6275 (arm_return_in_memory, arm_store_return_value)
6276 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6277 (arm_record_ld_st_multiple): Likewise.
6278 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6279 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6280
e935475c
AH
62812019-07-04 Alan Hayward <alan.hayward@arm.com>
6282
6283 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6284 AARCH64_DISPLACED_MODIFIED_INSNS.
6285 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6286 (aarch64_displaced_step_copy_insn): Likewise.
6287 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6288 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6289 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6290 ARM_DISPLACED_MODIFIED_INSNS.
6291 * arm-tdep.c (arm_gdbarch_init): Likewise.
6292 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6293 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6294 (struct arm_displaced_step_closure): Use
6295 ARM_DISPLACED_MODIFIED_INSNS.
6296
df0bb381
AH
62972019-07-04 Alan Hayward <alan.hayward@arm.com>
6298
6299 * features/Makefile: Remove unused xml files.
6300 * features/aarch64.xml: Remove.
6301 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6302 * features/i386/amd64-avx-avx512.xml: Remove.
6303 * features/i386/amd64-avx-linux.xml: Remove.
6304 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6305 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6306 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6307 * features/i386/amd64-avx-mpx.xml: Remove.
6308 * features/i386/amd64-avx.xml: Remove.
6309 * features/i386/amd64-linux.xml: Remove.
6310 * features/i386/amd64-mpx-linux.xml: Remove.
6311 * features/i386/amd64-mpx.xml: Remove.
6312 * features/i386/amd64.xml: Remove.
6313 * features/i386/i386-avx-avx512-linux.xml: Remove.
6314 * features/i386/i386-avx-avx512.xml: Remove.
6315 * features/i386/i386-avx-linux.xml: Remove.
6316 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6317 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6318 * features/i386/i386-avx-mpx-linux.xml: Remove.
6319 * features/i386/i386-avx-mpx.xml: Remove.
6320 * features/i386/i386-avx.xml: Remove.
6321 * features/i386/i386-linux.xml: Remove.
6322 * features/i386/i386-mmx-linux.xml: Remove.
6323 * features/i386/i386-mmx.xml: Remove.
6324 * features/i386/i386-mpx-linux.xml: Remove.
6325 * features/i386/i386-mpx.xml: Remove.
6326 * features/i386/i386.xml: Remove.
6327 * features/i386/x32-avx-avx512-linux.xml: Remove.
6328 * features/i386/x32-avx-linux.xml: Remove.
6329 * features/i386/x32-linux.xml: Remove.
6330
edd6266a
AH
63312019-07-04 Alan Hayward <alan.hayward@arm.com>
6332
6333 * regformats/aarch64.dat: Remove.
6334 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6335 * regformats/i386/amd64-avx-linux.dat: Remove.
6336 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6337 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6338 * regformats/i386/amd64-linux.dat: Remove.
6339 * regformats/i386/amd64-mpx-linux.dat: Remove.
6340 * regformats/i386/amd64.dat: Remove.
6341 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6342 * regformats/i386/i386-avx-linux.dat: Remove.
6343 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6344 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6345 * regformats/i386/i386-linux.dat: Remove.
6346 * regformats/i386/i386-mmx-linux.dat: Remove.
6347 * regformats/i386/i386-mpx-linux.dat: Remove.
6348 * regformats/i386/i386.dat: Remove.
6349 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6350 * regformats/i386/x32-avx-linux.dat: Remove.
6351 * regformats/i386/x32-linux.dat: Remove.
6352
2b40fda7
AH
63532019-07-04 Alan Hayward <alan.hayward@arm.com>
6354
6355 * aarch64-tdep.c: Remove xml self tests.
6356 * amd64-linux-tdep.c: Likewise.
6357 * amd64-tdep.c: Likewise.
6358 * i386-linux-tdep.c: Likewise.
6359 * i386-tdep.c: Likewise.
6360
5f4ba3e7
PA
63612019-07-03 Pedro Alves <palves@redhat.com>
6362
6363 PR cli/24732
6364 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6365 (pipe_cmd_option_defs): New.
6366 (make_pipe_cmd_options_def_group): New.
6367 (pipe_command): Use gdb::option::process_options.
6368 (pipe_command_completer): New function.
6369 (_initialize_cli_cmds): Install completer for "pipe" command.
6370
3d9be6f5
PA
63712019-07-03 Pedro Alves <palves@redhat.com>
6372
6373 * cli/cli-option.c (union option_value) <string>: New field.
6374 (struct option_def_and_value): Add ctor, move ctor, dtor and
6375 use DISABLE_COPY_AND_ASSIGN.
6376 (option_def_and_value::clear_value): New.
6377 (parse_option, save_option_value_in_ctx, get_val_type_str)
6378 (add_setshow_cmds_for_options): Handle var_string.
6379 * cli-option.h (union option_def::var_address) <string>: New
6380 field.
6381 (struct string_option_def): New.
6382 * maint-test-options.c (struct test_options_opts): Add default
6383 ctor and use DISABLE_COPY_AND_ASSIGN.
6384 <string_opt>: New field.
6385 (test_options_opts::~test_options_opts): New.
6386 (test_options_opts::dump): Also dump "-string".
6387 (test_options_option_defs): Install "string.
6388
41fc454c
PA
63892019-07-03 Pedro Alves <palves@redhat.com>
6390
6391 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6392 option_value with a null enumeration.
6393 (complete_options): Save the option values in the context.
6394 (save_option_value_in_ctx): New, factored out from ...
6395 (process_options): ... here.
6396 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6397 of the function.
6398 * maint-test-options.c (test_options_opts::dump): New, factored
6399 out from ...
6400 (maintenance_test_options_command_mode): ... here.
6401 (maintenance_test_options_command_completion_result): Delete.
6402 (maintenance_test_options_command_completion_text): Update
6403 comment.
6404 (maintenance_show_test_options_completion_result): Change
6405 prototype. Just print
6406 maintenance_test_options_command_completion_text.
6407 (save_completion_result): New.
6408 (maintenance_test_options_completer_mode): Pass options context to
6409 complete_options, and then save a dump.
6410 (_initialize_maint_test_options): Use add_cmd to install "maint
6411 show test-options-completion-result".
6412
fdbc9870
PA
64132019-07-03 Pedro Alves <palves@redhat.com>
6414
6415 * NEWS (New commands): Mention "with" and "maint with".
6416 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6417 (with_command, with_command_completer): New.
6418 (pipe_command): Adjust to new repeat_previous
6419 interface.
6420 (_initialize_cli_cmds): Install the "with" command and its "w"
6421 alias.
6422 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6423 declarations.
6424 * cli/cli-setshow.c (parse_cli_var_uinteger)
6425 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6426 argument strings for all var_types.
6427 (get_setshow_command_value_string): New, factored out from ...
6428 (do_show_command): ... this.
6429 * cli/cli-setshow.h: Include <string>.
6430 (get_setshow_command_value_string): Declare.
6431 * command.h (repeat_previous): Now returns const char *. Adjust
6432 comment.
6433 * maint.c: Include "cli/cli-cmds.h".
6434 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6435 (_initialize_maint_cmds): Register the "maintenance with" command.
6436 * top.c (repeat_previous): Move bits from pipe_command here:
6437 Return the saved command line, if any; error out if there's no
6438 command to relaunch.
6439
c6ac8931
PA
64402019-07-03 Pedro Alves <palves@redhat.com>
6441
6442 * NEWS (New commands): Mention "maint set/show test-settings"
6443 instead of "maint test-settings".
6444 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6445 (maintenance_test_settings_set_list): Rename to ...
6446 (maintenance_set_test_settings_list): ... this.
6447 (maintenance_test_settings_show_list): Rename to ...
6448 (maintenance_show_test_settings_list): ... this.
6449 (maintenance_test_settings_cmd): Delete.
6450 (maintenance_test_settings_set_cmd): ...
6451 (maintenance_set_test_settings_cmd): ... this.
6452 (maintenance_test_settings_show_cmd): ...
6453 (maintenance_show_test_settings_cmd): ... this.
6454 (maintenance_test_settings_show_value_cmd):
6455 (maintenance_show_test_settings_value_cmd): ... this.
6456 (_initialize_maint_test_settings): No longer install the "maint
6457 test-settings" prefix command. Rename "maint test-settings set"
6458 to "maint set test-settings", and "maint test-settings show" to
6459 "maint show test-settings". Adjust all subcommands.
6460
d1fcf2fd
PA
64612019-07-03 Pedro Alves <palves@redhat.com>
6462
6463 * maint-test-settings.c: Fix file's intro comment. Replace all
6464 references to "test-options" with references to "test-settings",
6465 in comments.
6466
970f9d09
PA
64672019-07-03 Pedro Alves <palves@redhat.com>
6468
6469 * maint-test-settings.c (maintenance_test_settings_xxx)
6470 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6471 New.
6472 (maintenance_test_settings_enums): Use them.
6473 (maintenance_test_settings_enum): Default to
6474 maintenance_test_settings_xxx.
6475 (_initialize_maint_test_settings): Initialize
6476 MAINTENANCE_TEST_SETTINGS_FILENAME.
6477
f3869b1a
SM
64782019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6479
6480 * breakpoint.h (remove_breakpoints_inf): Change return type to
6481 void, move function documentation here.
6482 * breakpoint.c (remove_breakpoints_inf): Change return type to
6483 void, move function documentation to header.
6484
54d66006
PA
64852019-07-02 Pedro Alves <palves@redhat.com>
6486
6487 * NEWS (Completion improvements): Mention "info threads".
6488 * thread.c (struct info_threads_opts, info_threads_option_defs)
6489 (make_info_threads_options_def_group): New.
6490 (info_threads_command): Use gdb::option::process_options.
6491 (info_threads_command_completer): New.
6492 (_initialize_thread): Use gdb::option::build_help to build the
6493 help text for "info threads".
6494
854f6088
SM
64952019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6496
6497 * defs.h (generic_load): Move from here...
6498 * symfile.h (generic_load): ... to here. Rename name parameter
6499 to args.
6500 * symfile.c (generic_load): Add comment.
6501
54ee4252
TT
65022019-07-01 Tom Tromey <tromey@adacore.com>
6503
6504 * dwarf2read.c
6505 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6506 declaration of without_params. Fix formatting.
6507
65392b3e
TT
65082019-07-01 Tom Tromey <tromey@adacore.com>
6509
6510 * ada-exp.y (find_primitive_type): Update.
6511 * ada-lang.h (ada_lookup_symbol): Update.
6512 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6513 parameter.
6514 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6515
7d7571f0
SDJ
65162019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6517
6518 PR breakpoints/24541
6519 * gdbarch.c: Regenerate.
6520 * gdbarch.h: Regenerate.
6521 * gdbarch.sh: Add 'stap_adjust_register'.
6522 * i386-tdep.c: Include '<unordered_set>'.
6523 (i386_stap_adjust_register): New function.
6524 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6525 * stap-probe.c (stap_parse_register_operand): Call
6526 'gdbarch_stap_adjust_register'.
6527
5af5392a
SDJ
65282019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6529
6530 PR python/24742
6531 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6532 * python/python.c (do_start_initialization): Use 'xmalloc'
6533 instead of 'PyMem_Malloc'.
6534
10d06d82
TT
65352019-06-28 Tom Tromey <tromey@adacore.com>
6536
6537 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6538 for Ada.
6539
1b7f24cd
TT
65402019-06-27 Tom Tromey <tromey@adacore.com>
6541
6542 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6543 objfile_key.
6544 (arm_find_mapping_symbol, arm_record_special_symbol)
6545 (_initialize_arm_tdep): Update.
6546 (arm_objfile_data_free): Remove.
6547
3d507ff2
TT
65482019-06-27 Tom Tromey <tromey@adacore.com>
6549
6550 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6551 to cp_print_static_field.
6552
762c164d
TT
65532019-06-26 Tom Tromey <tromey@adacore.com>
6554
6555 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6556 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6557 declare.
6558
aa2f9bcf
AH
65592019-06-26 Alan Hayward <alan.hayward@arm.com>
6560
6561 * features/aarch64-core.c (create_feature_aarch64_core):
6562 Regenerate.
6563 * features/aarch64-core.xml: Add cpsr flags.
6564
3426ae57
AH
65652019-06-26 Alan Hayward <alan.hayward@arm.com>
6566
6567 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6568 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6569
4838e44c
SM
65702019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6571
6572 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6573 field.
6574 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6575 use.
6576 (arm_record_special_symbol): Don't insert new symbol in sorted
6577 position, push it at the end.
6578
54cc7474
SM
65792019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6580
6581 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6582 (arm_mapping_symbol_s): Remove.
6583 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6584 (arm_mapping_symbol_vec): New typedef.
6585 (struct arm_per_objfile): Add constructor.
6586 <section_maps>: Change type to
6587 std::unique_ptr<arm_mapping_symbol_vec[]>.
6588 (arm_compare_mapping_symbols): Remove.
6589 (arm_find_mapping_symbol): Adjust to section_maps type change.
6590 (arm_objfile_data_free): Call delete on arm_per_objfile.
6591 (arm_record_special_symbol): Adjust to section_maps type change.
6592 Allocate arm_per_objfile with new.
6593
b65b566c
PW
65942019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6595
6596 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6597 with the command prefix.
6598
c2fc64f5
TT
65992019-06-25 Tom Tromey <tom@tromey.com>
6600
6601 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6602 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6603
fb54fa76
TT
66042019-06-25 Tom Tromey <tom@tromey.com>
6605
6606 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6607 type.
6608 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6609 protected.
6610
f7952c57
TT
66112019-06-25 Tom Tromey <tom@tromey.com>
6612
6613 * tui/tui-winsource.c
6614 (tui_source_window_base::set_is_exec_point_at): Add check against
6615 LOA_ADDRESS.
6616
17568d78
TT
66172019-06-25 Tom Tromey <tom@tromey.com>
6618
6619 * tui/tui-source.c (tui_set_source_content): Don't check before
6620 xfree.
6621 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6622
53e7cdba
TT
66232019-06-25 Tom Tromey <tom@tromey.com>
6624
6625 * tui/tui-winsource.h (tui_update_source_window_as_is)
6626 (tui_alloc_source_buffer, tui_line_is_displayed)
6627 (tui_addr_is_displayed): Change type of win_info.
6628 * tui/tui-winsource.c (tui_update_source_window_as_is)
6629 (tui_clear_source_content, tui_show_source_line)
6630 (tui_show_source_content, tui_source_window_base::refill)
6631 (tui_source_window_base::set_is_exec_point_at)
6632 (tui_source_window_base::set_is_exec_point_at)
6633 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6634 (tui_alloc_source_buffer, tui_line_is_displayed)
6635 (tui_addr_is_displayed): Change type of win_info. Update.
6636 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6637 (tui_source_window_base::do_make_visible_with_new_height):
6638 Update.
6639 * tui/tui-source.c (tui_set_source_content)
6640 (tui_set_source_content_nil)
6641 (tui_source_window::do_scroll_vertical): Update.
6642 * tui/tui-layout.c (show_layout): Update.
6643 * tui/tui-disasm.c (tui_set_disassem_content)
6644 (tui_disasm_window::do_scroll_vertical): Update.
6645 * tui/tui-data.h (tui_win_content): Remove.
6646 (struct tui_gen_win_info) <content, content_size>: Remove.
6647 (struct tui_source_element): Add initializers and destructor.
6648 (union tui_which_element, struct tui_win_element): Remove.
6649 (struct tui_source_window_base) <content>: New field.
6650 (struct tui_data_window): Remove destructor.
6651 (tui_alloc_content, tui_free_win_content)
6652 (tui_free_all_source_wins_content): Don't declare.
6653 * tui/tui-data.c (tui_initialize_static_data): Update.
6654 (init_content_element, tui_alloc_content): Remove.
6655 (~tui_gen_win_info): Update.
6656 (~tui_data_window, tui_free_all_source_wins_content)
6657 (tui_free_win_content, free_content, free_content_elements):
6658 Remove.
6659
7908abbf
TT
66602019-06-25 Tom Tromey <tom@tromey.com>
6661
6662 * tui/tui-winsource.h (tui_clear_source_content)
6663 (tui_erase_source_content, tui_show_source_content): Change type
6664 of win_info.
6665 * tui/tui-winsource.c (tui_clear_source_content)
6666 (tui_erase_source_content, tui_show_source_content): Change type
6667 of win_info.
6668 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6669 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6670 win_info.
6671 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6672 win_info.
6673 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6674
02c28df0
TT
66752019-06-25 Tom Tromey <tom@tromey.com>
6676
6677 * tui/tui-winsource.c (tui_clear_source_content)
6678 (tui_source_window_base::set_is_exec_point_at): Update.
6679 * tui/tui-source.c (tui_set_source_content_nil): Update.
6680 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6681 a bool.
6682 * tui/tui-data.c (init_content_element): Update.
6683
6658b1bf
TT
66842019-06-25 Tom Tromey <tom@tromey.com>
6685
6686 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6687 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6688 * tui/tui-layout.c (init_and_make_win): Update.
6689 * tui/tui.h (enum tui_win_type): Update.
6690 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6691 tui_win_is_auxillary.
6692 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6693 tui_win_is_auxillary.
6694
21e1c91e
TT
66952019-06-25 Tom Tromey <tom@tromey.com>
6696
6697 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6698 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6699 (tui_delete_data_content_windows, tui_display_all_data)
6700 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6701 Update.
6702 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6703 * tui/tui-regs.c (tui_last_regs_line_no)
6704 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6705 (tui_show_registers): Update.
6706 (tui_show_register_group): Return void. Update.
6707 (tui_display_registers_from, tui_display_reg_element_at_line)
6708 (tui_display_registers_from_line, tui_check_register_values):
6709 Update.
6710 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6711 member.
6712 (struct tui_data_window) <regs_content>: Now a std::vector.
6713 <regs_content_count>: Remove.
6714 (tui_add_content_elements, tui_free_data_content): Don't declare.
6715 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6716 (init_content_element): Remove DATA_WIN case. Add assert.
6717 (tui_add_content_elements): Remove.
6718 (tui_data_window): Update.
6719 (tui_free_data_content): Remove.
6720 (free_content_elements): Remove DATA_WIN case.
6721
115ac53b
TT
67222019-06-25 Tom Tromey <tom@tromey.com>
6723
6724 * tui/tui-data.c (tui_data_item_window): Update.
6725 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6726 * tui/tui-windata.c (tui_display_all_data)
6727 (tui_display_data_from_line): Update.
6728 (tui_check_data_values): Remove.
6729 * tui/tui-regs.c (tui_show_register_group)
6730 (tui_display_reg_element_at_line): Update.
6731 * tui/tui-hooks.c (tui_register_changed)
6732 (tui_refresh_frame_and_register_information): Call
6733 tui_check_register_values.
6734 * tui/tui-data.h (struct tui_data_window) <data_content,
6735 data_content_count, data_type>: Remove.
6736 (enum tui_data_type): Remove.
6737
6738 * tui/tui-data.c (tui_data_window::clear_detail)
6739 (~tui_data_window): Update.
6740
eaf9738b
TT
67412019-06-25 Tom Tromey <tom@tromey.com>
6742
6743 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6744 declare.
6745 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6746 Rename from tui_first_data_item_displayed. Update.
6747 (tui_data_window::refresh_all)
6748 (tui_data_window::do_scroll_vertical): Update.
6749 * tui/tui-data.h (struct tui_data_window)
6750 <first_data_item_displayed>: Declare new method.
6751
31ca4723
TT
67522019-06-25 Tom Tromey <tom@tromey.com>
6753
6754 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6755 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6756 contents...
6757 (tui_initialize_static_data): ...here.
6758
41bcff7f
TT
67592019-06-25 Tom Tromey <tom@tromey.com>
6760
6761 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6762 (tui_display_registers_from, tui_check_register_values): Update.
6763 (tui_display_register): Remove win_info parameter; update.
6764 (tui_get_register): Change type of parameters.
6765 * tui/tui-data.h (struct tui_data_element): Remove.
6766 (union tui_which_element) <data>: Remove.
6767 <data_window>: Change type.
6768 (struct tui_data_item_window): New.
6769 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6770 case. Add assert.
6771 (~tui_data_item_window): New destructor.
6772 (free_content_elements): Remove DATA_ITEM_WIN case.
6773
d2802c33
TT
67742019-06-25 Tom Tromey <tom@tromey.com>
6775
6776 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6777 Remove.
6778
dd835f8b
TT
67792019-06-25 Tom Tromey <tom@tromey.com>
6780
6781 * tui/tui-data.h (struct tui_command_element): Remove.
6782 (union tui_which_element) <command>: Remove.
6783 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6784 assert.
6785 (free_content_elements): Remove CMD_WIN case.
6786
bd7db367
TT
67872019-06-25 Tom Tromey <tom@tromey.com>
6788
6789 * tui/tui-layout.c (tui_set_layout): Update.
6790 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6791 * tui/tui-data.c (layout_def): Update.
6792
3add462f
TT
67932019-06-25 Tom Tromey <tom@tromey.com>
6794
6795 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6796 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6797 (tui_source_window_base::set_new_height): Update.
6798 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6799 Update.
6800 (tui_set_locator_fullname, tui_set_locator_info)
6801 (tui_show_frame_info): Update.
6802 * tui/tui-source.c (tui_set_source_content)
6803 (tui_source_is_displayed): Update.
6804 * tui/tui-layout.c (show_source_disasm_command, show_data)
6805 (show_source_or_disasm_and_command): Update.
6806 * tui/tui-disasm.c (tui_set_disassem_content)
6807 (tui_get_begin_asm_address): Update.
6808 * tui/tui-data.h (struct tui_locator_element): Remove.
6809 (union tui_which_element) <locator>: Remove.
6810 (struct tui_locator_window): New.
6811 (tui_locator_win_info_ptr): Change return type.
6812 * tui/tui-data.c (_locator): Change type.
6813 (tui_locator_win_info_ptr): Change return type.
6814 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6815 (tui_alloc_content): Add assert.
6816
489e9d8b
TT
68172019-06-25 Tom Tromey <tom@tromey.com>
6818
6819 * tui/tui-winsource.c
6820 (tui_exec_info_window::maybe_allocate_content): New method.
6821 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6822 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6823 (make_source_or_disasm_window): Add cast.
6824 * tui/tui-data.h (union tui_which_element) <simple_string>:
6825 Remove.
6826 (struct tui_source_info): New.
6827 (struct tui_source_window_base) <execution_info>: Change type.
6828 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6829 case, and add assert.
6830 (tui_alloc_content): Add assert.
6831
c3fabb7d
TT
68322019-06-25 Tom Tromey <tom@tromey.com>
6833
6834 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6835 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6836 * tui/tui-data.c (tui_alloc_win_info): Remove.
6837
bbc228ee
TT
68382019-06-25 Tom Tromey <tom@tromey.com>
6839
6840 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6841 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6842 can_highlight.
6843
5fcee43a
TT
68442019-06-25 Tom Tromey <tom@tromey.com>
6845
6846 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6847 make_visible_with_new_height method.
6848 (tui_win_info::make_visible_with_new_height): New method.
6849 (tui_source_window_base::do_make_visible_with_new_height)
6850 (tui_data_window::do_make_visible_with_new_height)
6851 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6852 (make_visible_with_new_height): Remove.
6853 (tui_resize_all, tui_adjust_win_heights): Use
6854 make_visible_with_new_height method.
6855 * tui/tui-data.h (struct tui_win_info)
6856 <do_make_visible_with_new_height, make_visible_with_new_height>:
6857 New methods.
6858 (struct tui_source_window_base, struct tui_data_window)
6859 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6860 methods.
6861
d83f1fe6
TT
68622019-06-25 Tom Tromey <tom@tromey.com>
6863
6864 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6865 method.
6866 (update_tab_width): Call update_tab_width method.
6867 * tui/tui-data.h (struct tui_win_info)
6868 (struct tui_source_window_base) <update_tab_width>: New methods.
6869
17374de4
TT
68702019-06-25 Tom Tromey <tom@tromey.com>
6871
6872 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6873 parameter.
6874 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6875 parameter.
6876 (tui_gen_win_info::make_visible): Update.
6877 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6878 parameter.
6879 * tui/tui-data.h (enum tui_box): New enum.
6880 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6881
f936bca2
TT
68822019-06-25 Tom Tromey <tom@tromey.com>
6883
6884 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6885 init_and_make_win for EXEC_INFO_WIN.
6886 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6887 longer inline.
6888 (struct tui_win_info) <~tui_win_info>: Inline.
6889 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6890 Don't declare.
6891 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6892 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6893 Remove.
6894 (tui_initialize_static_data): Update.
6895 (~tui_gen_win_info): Handle more cleanup here.
6896 (~tui_source_window_base): Delete "execution_info".
6897 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6898
d6ba6a11
TT
68992019-06-25 Tom Tromey <tom@tromey.com>
6900
6901 * tui/tui-layout.c (make_command_window): Don't set
6902 can_highlight.
6903 (show_source_disasm_command): Call the reset method.
6904 (show_data): Don't set can_highlight. Call the reset method.
6905 (tui_gen_win_info::reset): Rename from init_gen_win_info
6906 (init_and_make_win): Simplify. Return tui_gen_win_info.
6907 (show_source_or_disasm_and_command): Call the reset method.
6908 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6909 (struct tui_cmd_window): Set can_highlight.
6910
48a3bd16
TT
69112019-06-25 Tom Tromey <tom@tromey.com>
6912
6913 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6914 from make_visible.
6915 (tui_make_visible, tui_make_invisible): Rewrite.
6916 (tui_win_info::make_visible): Remove.
6917 (tui_source_window_base::make_visible): Update.
6918 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6919 method. Moved from...
6920 (struct tui_win_info) <make_visible>: ...here.
6921
c3bd716f
TT
69222019-06-25 Tom Tromey <tom@tromey.com>
6923
6924 * tui/tui-winsource.c
6925 (tui_source_window_base::do_scroll_horizontal): Remove direction
6926 parameter.
6927 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6928 direction parameter.
6929 * tui/tui-win.c (tui_win_info::forward_scroll)
6930 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6931 (tui_win_info::right_scroll): Update.
6932 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6933 direction parameter.
6934 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6935 direction parameter.
6936 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6937 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6938 Remove direction parameter.
6939 (struct tui_source_window_base, struct tui_source_window)
6940 (struct tui_disasm_window, struct tui_data_window)
6941 (struct tui_cmd_window): Update.
6942
21c32dca
TT
69432019-06-25 Tom Tromey <tom@tromey.com>
6944
6945 * tui/tui-winsource.h (tui_set_exec_info_content)
6946 (tui_show_exec_info_content, tui_erase_exec_info_content)
6947 (tui_clear_exec_info_content, tui_update_exec_info): Change
6948 argument to tui_source_window_base.
6949 * tui/tui-winsource.c (tui_set_exec_info_content)
6950 (tui_show_exec_info_content, tui_erase_exec_info_content)
6951 (tui_clear_exec_info_content, tui_update_exec_info): Change
6952 argument to tui_source_window_base.
6953
73fbdc65
TT
69542019-06-25 Tom Tromey <tom@tromey.com>
6955
6956 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6957 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6958
33325343
TT
69592019-06-25 Tom Tromey <tom@tromey.com>
6960
6961 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6962 check.
6963
29d2c474
TT
69642019-06-25 Tom Tromey <tom@tromey.com>
6965
6966 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6967 type to void.
6968 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6969 type to void.
6970 * tui/tui-source.c (tui_set_source_content): Update.
6971 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6972
152f3f4b
TT
69732019-06-25 Tom Tromey <tom@tromey.com>
6974
6975 * tui/tui-win.c (window_name_completer, tui_set_focus)
6976 (tui_all_windows_info): Use name method.
6977 * tui/tui-data.h (struct tui_gen_win_info)
6978 (struct tui_source_window, struct tui_disasm_window)
6979 (struct tui_data_window, struct tui_cmd_window) <name>: New
6980 method.
6981 (tui_win_name): Don't declare.
6982 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6983 (tui_win_name): Remove.
6984
be4da588
TT
69852019-06-25 Tom Tromey <tom@tromey.com>
6986
6987 * tui/tui-winsource.h (tui_update_source_window)
6988 (tui_update_source_window_as_is): Change parameter type.
6989 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6990 to be a tui_source_window_base.
6991 (tui_update_source_window_as_is): Likewise.
6992 * tui/tui-win.c (make_visible_with_new_height): Update.
6993
5b81daba
TT
69942019-06-25 Tom Tromey <tom@tromey.com>
6995
6996 * tui/tui-winsource.c (tui_erase_source_content)
6997 (tui_show_source_content, tui_show_exec_info_content)
6998 (tui_erase_exec_info_content): Use refresh_window method.
6999 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7000 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7001 from tui_refresh_win.
7002 (tui_data_window::refresh_window): New method.
7003 (tui_win_info::refresh, tui_source_window_base::refresh)
7004 (tui_refresh_all): Use refresh_window method.
7005 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7006 method.
7007 * tui/tui-regs.c (tui_display_register): Call refresh_window
7008 method.
7009 * tui/tui-layout.c (show_source_disasm_command)
7010 (show_source_or_disasm_and_command): Call refresh_window method.
7011 * tui/tui-data.h (struct tui_gen_win_info)
7012 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7013 New method.
7014
cb2ce893
TT
70152019-06-25 Tom Tromey <tom@tromey.com>
7016
7017 * tui/tui.c (tui_rl_other_window, tui_enable)
7018 (tui_is_window_visible, tui_get_command_dimension): Update.
7019 * tui/tui-winsource.c (tui_update_source_window_as_is)
7020 (tui_clear_source_content, tui_erase_source_content)
7021 (tui_show_source_line, tui_source_window_base::refill)
7022 (tui_source_window_base::do_scroll_horizontal)
7023 (tui_source_window_base::set_is_exec_point_at)
7024 (tui_update_breakpoint_info, tui_set_exec_info_content)
7025 (tui_alloc_source_buffer, tui_line_is_displayed)
7026 (tui_addr_is_displayed): Update.
7027 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7028 (tui_check_and_display_highlight_if_needed)
7029 (tui_win_info::make_visible, tui_win_info::refresh)
7030 (tui_refresh_all): Update.
7031 * tui/tui-windata.c (tui_first_data_item_displayed)
7032 (tui_delete_data_content_windows, tui_erase_data_content)
7033 (tui_display_all_data, tui_data_window::refresh_all)
7034 (tui_check_data_values): Update.
7035 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7036 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7037 (tui_win_info::backward_scroll, tui_refresh_all_win)
7038 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7039 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7040 (tui_source_window_base::set_new_height)
7041 (tui_data_window::set_new_height)
7042 (make_invisible_and_set_new_height)
7043 (make_visible_with_new_height, new_height_ok)
7044 (parse_scrolling_args): Update.
7045 * tui/tui-stack.c (tui_show_frame_info): Update.
7046 * tui/tui-source.c (tui_set_source_content)
7047 (tui_set_source_content_nil, tui_source_is_displayed)
7048 (tui_source_window::do_scroll_vertical): Update.
7049 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7050 (tui_display_registers_from, tui_display_reg_element_at_line)
7051 (tui_check_register_values, tui_reg_command): Update.
7052 * tui/tui-layout.c (tui_default_win_height)
7053 (show_source_disasm_command, show_data, init_and_make_win)
7054 (show_source_or_disasm_and_command): Update.
7055 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7056 (tui_redisplay_readline, tui_mld_flush)
7057 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7058 (tui_getc): Update.
7059 * tui/tui-disasm.c (tui_set_disassem_content)
7060 (tui_disasm_window::do_scroll_vertical): Update.
7061 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7062 Now virtual.
7063 (struct tui_win_info): Derive from tui_gen_win_info.
7064 <~tui_win_info>: Mark as override.
7065 <generic>: Remove member.
7066 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7067 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7068 (~tui_data_window, ~tui_win_info)
7069 (tui_free_all_source_wins_content): Update.
7070 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7071
ab313b35
TT
70722019-06-25 Tom Tromey <tom@tromey.com>
7073
7074 * tui/tui-layout.c (init_and_make_win): Use new.
7075 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7076 destructor, initializers.
7077 (tui_alloc_generic_win_info): Don't declare.
7078 * tui/tui-data.c (_locator): Add argument to constructor.
7079 (source_win, disasm_win): New globals.
7080 (exec_info): Remove.
7081 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7082 Update.
7083 (tui_alloc_generic_win_info): Remove.
7084 (init_content_element): Use new.
7085 (tui_win_info::tui_win_info): Update.
7086 (free_content_elements) <case DATA_WIN>: Use delete.
7087
dc2c33e4
TT
70882019-06-25 Tom Tromey <tom@tromey.com>
7089
7090 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7091 * tui/tui-windata.c (tui_first_data_item_displayed)
7092 (tui_delete_data_content_windows): Update.
7093 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7094 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7095 (tui_display_registers_from, tui_check_register_values): Update.
7096 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7097 pointer.
7098 * tui/tui-data.c (init_content_element): Update. Allocate the new
7099 window.
7100 (tui_free_data_content): Update.
7101 (free_content_elements) <case DATA_WIN>: Free the window.
7102
214a5cbe
TT
71032019-06-25 Tom Tromey <tom@tromey.com>
7104
7105 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7106 Update.
7107 * tui/tui-layout.c (make_command_window)
7108 (show_source_disasm_command, show_data, init_and_make_win)
7109 (show_source_or_disasm_and_command): Update.
7110 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7111 method.
7112 <can_highight, is_highlighted>: Now bool.
7113 (tui_set_win_highlight): Don't declare.
7114 * tui/tui-data.c (tui_set_win_highlight): Remove.
7115
8e2daf15
TT
71162019-06-25 Tom Tromey <tom@tromey.com>
7117
7118 * tui/tui-wingeneral.c (make_visible): Remove check of window
7119 type.
7120
8903bd8a
TT
71212019-06-25 Tom Tromey <tom@tromey.com>
7122
7123 * tui/tui-win.c (tui_win_info::max_height)
7124 (tui_cmd_window::max_height): New methods.
7125 (new_height_ok): Call max_height.
7126 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7127 <max_height>: New method.
7128
3f02ce1e
TT
71292019-06-25 Tom Tromey <tom@tromey.com>
7130
7131 * tui/tui-win.c (tui_source_window_base::set_new_height)
7132 (tui_data_window::set_new_height): New methods.
7133 (make_invisible_and_set_new_height): Call set_new_height method.
7134 * tui/tui-data.h (struct tui_win_info)
7135 (struct tui_source_window_base, struct tui_data_window)
7136 <set_new_height>: New method.
7137
1825f487
TT
71382019-06-25 Tom Tromey <tom@tromey.com>
7139
7140 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7141 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7142 tui_refresh_data_win.
7143 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7144 method.
7145 (tui_refresh_all_win): Call the refresh_all method.
7146 (tui_set_focus): Likewise.
7147 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7148 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7149 Likewise.
7150
ad54d15b
TT
71512019-06-25 Tom Tromey <tom@tromey.com>
7152
7153 * tui/tui-winsource.h (tui_refill_source_window)
7154 (tui_set_is_exec_point_at): Don't declare.
7155 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7156 (tui_source_window_base::refill): Rename from
7157 tui_refill_source_window.
7158 (tui_source_window_base::do_scroll_horizontal): Update.
7159 (tui_source_window_base::set_is_exec_point_at): Rename from
7160 tui_set_is_exec_point_at.
7161 (tui_update_all_breakpoint_info): Update.
7162 * tui/tui-stack.c (tui_show_frame_info): Update.
7163 * tui/tui-layout.c (show_data): Add cast.
7164 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7165 * tui/tui-data.h (struct tui_source_window_base) <refill,
7166 set_is_exec_point_at>: New methods.
7167 (tui_source_windows, tui_add_to_source_windows): Update types.
7168 (tui_add_to_source_windows): Remove redundant declaration.
7169 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7170 (tui_source_windows): Change return type.
7171 (tui_clear_source_windows_detail): Update.
7172 (tui_add_to_source_windows): Change type of parameter.
7173 (tui_free_all_source_wins_content): Update.
7174
2042b506
TT
71752019-06-25 Tom Tromey <tom@tromey.com>
7176
7177 * tui/tui-wingeneral.c (tui_win_info::refresh)
7178 (tui_source_window_base::refresh): New methods.
7179 (tui_refresh_all): Call the refresh method.
7180 * tui/tui-data.h (struct tui_win_info)
7181 (struct tui_source_window_base) <refresh>: New method.
7182
56122977
TT
71832019-06-25 Tom Tromey <tom@tromey.com>
7184
7185 * tui/tui.h (tui_is_window_visible): Return bool.
7186 * tui/tui.c (tui_is_window_visible): Return bool.
7187 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7188 (tui_make_visible, tui_make_invisible)
7189 (tui_win_info::make_visible)
7190 (tui_source_window_base::make_visible, make_all_visible)
7191 (tui_make_all_visible, tui_make_all_invisible): Update.
7192 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7193 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7194 bool.
7195 (struct tui_win_info, struct tui_source_window_base)
7196 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7197 * tui/tui-data.c (tui_init_generic_part): Update.
7198
cda37efb
TT
71992019-06-25 Tom Tromey <tom@tromey.com>
7200
7201 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7202 (tui_source_window_base::make_visible): New methods.
7203 (make_all_visible): Make method call.
7204 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7205 (struct tui_source_window_base, struct tui_cmd_window): Override
7206 make_visible.
7207 (tui_win_is_source_type): Don't declare.
7208 * tui/tui-data.c (tui_win_is_source_type): Remove.
7209
6a0ee02c
TT
72102019-06-25 Tom Tromey <tom@tromey.com>
7211
7212 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7213 NULL check.
7214
63901aec
TT
72152019-06-25 Tom Tromey <tom@tromey.com>
7216
7217 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7218 Inline constructor. Add initializers for members.
7219 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7220 constructors; now inline in class.
7221
ceb13a13
TT
72222019-06-25 Tom Tromey <tom@tromey.com>
7223
7224 * tui/tui-regs.c (tui_show_registers): Update.
7225 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7226 bool.
7227 * tui/tui-data.c (tui_data_window::clear_detail)
7228 (tui_data_window): Update.
7229
238eb706
TT
72302019-06-25 Tom Tromey <tom@tromey.com>
7231
7232 * tui/tui-windata.c (tui_display_all_data)
7233 (tui_display_data_from_line, tui_display_data_from)
7234 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7235 Update.
7236 * tui/tui-regs.c (tui_last_regs_line_no)
7237 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7238 (tui_show_registers, tui_show_register_group)
7239 (tui_display_registers_from, tui_display_reg_element_at_line)
7240 (tui_display_registers_from_line, tui_check_register_values)
7241 (tui_reg_next, tui_reg_prev): Update.
7242 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7243 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7244 tui_data_window.
7245 (struct tui_win_info) <detail>: Remove. Add new fields from
7246 tui_data_info.
7247 (TUI_DATA_WIN): Add cast.
7248 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7249 (~tui_data_window): Simplify.
7250
81491aa0
TT
72512019-06-25 Tom Tromey <tom@tromey.com>
7252
7253 * tui/tui-layout.c (show_source_disasm_command)
7254 (show_source_or_disasm_and_command): Update.
7255 * tui/tui-io.c (update_cmdwin_start_line)
7256 (tui_redisplay_readline): Update.
7257 * tui/tui-data.h (struct tui_command_info): Remove.
7258 (struct tui_win_info) <detail>: Remove command_info member.
7259 (struct tui_data_window) <start_line>: New member, from
7260 tui_command_info.
7261 (TUI_CMD_WIN): Add casts.
7262
e6e41501
TT
72632019-06-25 Tom Tromey <tom@tromey.com>
7264
7265 * tui/tui-winsource.c (tui_update_source_window)
7266 (tui_refill_source_window)
7267 (tui_source_window_base::do_scroll_horizontal)
7268 (tui_update_breakpoint_info, tui_set_exec_info_content)
7269 (tui_show_exec_info_content, tui_erase_exec_info_content)
7270 (tui_clear_exec_info_content): Update.
7271 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7272 Update.
7273 * tui/tui-win.c (make_invisible_and_set_new_height)
7274 (make_visible_with_new_height): Update.
7275 * tui/tui-source.c (tui_set_source_content)
7276 (tui_show_symtab_source): Update.
7277 * tui/tui-layout.c (extract_display_start_addr)
7278 (show_source_disasm_command, show_data)
7279 (make_source_or_disasm_window)
7280 (show_source_or_disasm_and_command): Update.
7281 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7282 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7283 "gdbarch".
7284 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7285 to tui_source_window_base.
7286 (struct tui_win_info) <detail>: Remove source_info member.
7287 (struct tui_source_window_base) <has_locator>: Inline.
7288 Move contents from tui_source_info; rename has_locator member to
7289 m_has_locator.
7290 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7291 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7292 header file.
7293 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7294 Simplify.
7295 (tui_free_all_source_wins_content): Cast to
7296 tui_source_window_base.
7297
44f0e208
TT
72982019-06-25 Tom Tromey <tom@tromey.com>
7299
7300 * tui/tui-win.c (make_invisible_and_set_new_height)
7301 (make_visible_with_new_height): Call has_locator method.
7302 * tui/tui-layout.c (show_source_disasm_command, show_data)
7303 (show_source_or_disasm_and_command): Update for bool change.
7304 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7305 (tui_win_info) <has_locator>: New method.
7306 (struct tui_source_window_base) <has_locator>: New method.
7307 (tui_win_has_locator): Don't declare.
7308 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7309 from tui_win_has_locator.
7310 (tui_source_window_base): Use false, not FALSE.
7311
7778b912
TT
73122019-06-25 Tom Tromey <tom@tromey.com>
7313
7314 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7315 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7316 clear_detail method directly.
7317 (tui_clear_win_detail): Remove.
7318
f83d391c
TT
73192019-06-25 Tom Tromey <tom@tromey.com>
7320
7321 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7322 "this", not TUI_DISASM_WIN.
7323
13446e05
TT
73242019-06-25 Tom Tromey <tom@tromey.com>
7325
7326 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7327 declare.
7328 * tui/tui-winsource.c
7329 (tui_source_window_base::do_scroll_horizontal): Rename from
7330 tui_horizontal_source_scroll.
7331 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7332 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7333 from tui_vertical_data_scroll.
7334 * tui/tui-win.h (tui_scroll): Don't declare.
7335 * tui/tui-win.c (tui_win_info::forward_scroll)
7336 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7337 (tui_win_info::right_scroll): Rename and update.
7338 (tui_scroll_forward_command, tui_scroll_backward_command)
7339 (tui_scroll_left_command, tui_scroll_right_command): Update.
7340 (tui_scroll): Remove.
7341 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7342 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7343 from tui_vertical_source_scroll.
7344 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7345 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7346 from tui_vertical_disassem_scroll.
7347 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7348 do_scroll_horizontal>: New methods.
7349 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7350 Likewise.
7351 (struct tui_source_window_base): Add do_scroll_horizontal.
7352 (struct tui_source_window, struct tui_disasm_window): Add
7353 do_scroll_vertical.
7354 (struct tui_data_window, struct tui_cmd_window): Add
7355 do_scroll_horizontal and do_scroll_vertical.
7356 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7357
5cf82909
TT
73582019-06-25 Tom Tromey <tom@tromey.com>
7359
7360 * tui/tui-data.h (struct tui_source_window_base): New struct.
7361 (struct tui_source_window): Derive from tui_source_window_base.
7362 (struct tui_disasm_window): New struct.
7363 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7364 from tui_source_window::clear_detail.
7365 (tui_source_window_base): Rename from tui_source_window.
7366 (~tui_source_window_base): Rename from ~tui_source_window.
7367 (tui_alloc_win_info): Create a tui_disasm_window.
7368
ee1d42d6
TT
73692019-06-25 Tom Tromey <tom@tromey.com>
7370
7371 * tui/tui-data.h (struct tui_source_window)
7372 (struct tui_data_window): Declare destructors.
7373 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7374 destructors.
7375 (tui_win_info): Simplify.
7376
b4eb2452
TT
73772019-06-25 Tom Tromey <tom@tromey.com>
7378
7379 * tui/tui-winsource.c (tui_display_main)
7380 (tui_update_source_windows_with_addr)
7381 (tui_update_all_breakpoint_info): Update.
7382 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7383 (new_height_ok, parse_scrolling_args): Update.
7384 * tui/tui-stack.c (tui_show_frame_info): Update.
7385 * tui/tui-data.h (struct tui_list): Remove.
7386 (tui_source_windows): Return a reference to a std::vector.
7387 * tui/tui-data.c (source_windows): Now a std::vector.
7388 (tui_source_windows): Change return type.
7389 (tui_clear_source_windows): Rewrite.
7390 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7391 (tui_free_all_source_wins_content): Rewrite.
7392
8761a91b
TT
73932019-06-25 Tom Tromey <tom@tromey.com>
7394
7395 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7396 (struct tui_data_window, struct tui_cmd_window): Declare
7397 clear_detail method.
7398 * tui/tui-data.c (tui_source_window::clear_detail)
7399 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7400 methods.
7401 (tui_clear_win_detail): Simplify.
7402
0ed69eda
TT
74032019-06-25 Tom Tromey <tom@tromey.com>
7404
7405 * tui/tui-layout.c (make_source_window, make_disasm_window)
7406 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7407 Return the new window.
7408 (show_source_disasm_command, show_data)
7409 (show_source_or_disasm_and_command): Update.
7410
82432e10
TT
74112019-06-25 Tom Tromey <tom@tromey.com>
7412
7413 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7414 parameter. Return the new window.
7415 (show_source_disasm_command): Update and remove NULL check.
7416 (show_source_or_disasm_and_command): Update.
7417
ec328aa5
TT
74182019-06-25 Tom Tromey <tom@tromey.com>
7419
7420 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7421
33b906ab
TT
74222019-06-25 Tom Tromey <tom@tromey.com>
7423
7424 * tui/tui-data.h (struct tui_win_info): Make constructor
7425 protected. Make destructor virtual. Add initializers.
7426 (tui_source_window, tui_data_window, tui_cmd_window): New
7427 classes.
7428 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7429 constructor. Add "type" parameter.
7430 (tui_source_window, tui_data_window, tui_cmd_window): New
7431 constructors.
7432 (tui_alloc_win_info): Instantiate the appropriate subclass.
7433
e7e11af4
TT
74342019-06-25 Tom Tromey <tom@tromey.com>
7435
7436 * tui/tui-win.c (tui_resize_all): Use delete.
7437 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7438 destructor.
7439 (tui_free_window): Don't declare.
7440 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7441 Update.
7442
6792b55e
TT
74432019-06-25 Tom Tromey <tom@tromey.com>
7444
7445 * tui/tui-data.h (struct tui_win_info): Add constructor.
7446 * tui/tui-data.c (tui_alloc_win_info): Use new.
7447 (tui_free_window): Use delete.
7448
f95675e1
TT
74492019-06-22 Tom Tromey <tom@tromey.com>
7450
7451 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7452 declare.
7453 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7454
5bff081c
TT
74552019-06-22 Tom Tromey <tom@tromey.com>
7456
7457 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7458 declare.
7459 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7460
47e3f474
TV
74612019-06-22 Tom de Vries <tdevries@suse.de>
7462
7463 * dwarf2read.c (create_addrmap_from_aranges)
7464 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7465 instead of '%zu'.
7466
fd5866f6
SM
74672019-06-21 Simon Marchi <simon.marchi@efficios.com>
7468
7469 * dwarf2read.h (dwarf2_section_info_def): Remove.
7470 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7471 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7472 std::vector<dwarf2_section_info>.
7473 (struct dwo_file) <~dwo_file>: Remove.
7474 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7475 types field.
7476 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7477 (dwarf2_read_debug_names): Likewise.
7478 (create_debug_types_hash_table): Change parameter type to
7479 array_view, adjust code accordingly.
7480 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7481 (partial_die_info::fixup): Likewise.
7482 (determine_prefix): Likewise.
7483 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7484
fb1eb2f9
SM
74852019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7486
7487 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7488 gdb_bfd_ref_ptr.
7489 <~dwo_file>: Remove call to gdb_bfd_unref.
7490 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7491 gdb_bfd_ref_ptr::get.
7492
51ac9db5
SM
74932019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7494
7495 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7496 type to htab_up.
7497 * dwarf2read.c (struct dwo_file): Initialize fields.
7498 <~dwo_file>: New.
7499 (free_dwo_file): Remove, move content to ~dwo_file.
7500 (struct dwo_file_deleter): Remove.
7501 (dwo_file_up>: Remove custom deleter.
7502 (free_dwo_files): Remove.
7503 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7504 dwo_files.
7505 (process_skeletonless_type_units): Call unique_ptr::get.
7506 (allocate_dwo_file_hash_table): Add deleter to created hash
7507 table. Change return type to htab_up.
7508 (lookup_dwo_file_slot): Don't memset dwo_file, call
7509 unique_ptr::get.
7510 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7511 (create_dwo_unit_in_dwp_v2): Likewise.
7512 (open_and_init_dwo_file): Likewise.
7513 (free_dwo_file_from_slot): Remove.
7514
dc4ccb6f
SM
75152019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7516
7517 * dwarf2read.h (struct dwarf2_section_info) <readin,
7518 is_virtual>: Change type to bool.
7519 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7520 true instead of 1.
7521
e6a1c5cb
TT
75222019-06-19 Tom Tromey <tom@tromey.com>
7523
7524 * tui/tui-data.h (tui_init_content_element): Don't declare.
7525
6f6ffbeb
TT
75262019-06-19 Tom Tromey <tom@tromey.com>
7527
7528 * tui/tui-data.h (tui_init_win_info): Don't declare.
7529
f23f598e
TV
75302019-06-19 Tom de Vries <tdevries@suse.de>
7531
7532 * dwarf2read.h (abstract_to_concrete): Change type to
7533 std::unordered_map<sect_offset, std::vector<sect_offset>,
7534 gdb::hash_enum<sect_offset>>.
7535
680e1bee
TT
75362019-06-19 Tom Tromey <tromey@adacore.com>
7537
7538 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7539 EVAL_AVOID_SIDE_EFFECTS specially.
7540
dcf37923
TT
75412019-06-19 Tom Tromey <tromey@adacore.com>
7542
7543 * source-cache.c (highlighter): New global.
7544 (source_cache::get_source_lines): Create a highlighter on demand.
7545
494986d5
AB
75462019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7547
7548 * defs.h (deprecated_interactive_hook): Delete declaration.
7549 * interps.c (clear_interpreter_hooks): Remove use of
7550 deprecated_interactive_hook.
7551 * top.c (deprecated_interactive_hook): Delete definition.
7552 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7553
3360b6e7
TV
75542019-06-18 Tom de Vries <tdevries@suse.de>
7555
7556 PR gdb/24515
7557 * dwarf2read.h (abstract_to_concrete): Change type from
7558 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7559 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7560 * dwarf2read.c (read_variable): Update.
7561 (dwarf2_fetch_die_loc_sect_off): Update.
7562
310b3441
TV
75632019-06-17 Tom de Vries <tdevries@suse.de>
7564
7565 PR gdb/24617
7566 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7567 accessing parent[parent_len - 1].
7568
ba9777be
PP
75692019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7570
7571 PR gdb/24364
7572 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7573 call dtrace_process_dof with NULL dof.
7574
2b9f6e89
TV
75752019-06-16 Tom de Vries <tdevries@suse.de>
7576
7577 PR gdb/24445
7578 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7579
431b3ead
TT
75802019-06-16 Tom Tromey <tom@tromey.com>
7581
7582 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7583 (make_all_visible): Use address of member.
7584
d04b44a1
TT
75852019-06-16 Tom Tromey <tom@tromey.com>
7586
7587 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7588 (tui_free_window, free_content, free_content_elements): Remove
7589 unnecessary cast.
7590 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7591 cast.
7592 * tui/tui-regs.c (tui_show_register_group)
7593 (tui_display_registers_from, tui_display_reg_element_at_line):
7594 Remove unnecessary cast.
7595
bf5142e7
AB
75962019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7597
7598 * linux-nat.c (normal_mask): Delete.
7599 (_initialize_linux_nat): Don't initialise normal_mask.
7600
c4973306
SM
76012019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7602
7603 PR gdb/24445
7604 * dwarf-index-write.h (write_psymtabs_to_index): Add
7605 dwz_basename parameter.
7606 * dwarf-index-write.c (write_gdbindex): Move file writing to
7607 write_gdbindex_1. Change return type void.
7608 (assert_file_size): Move up, remove filename parameter.
7609 (write_gdbindex_1): New function.
7610 (write_debug_names): Change return type to void, call
7611 assert_file_size.
7612 (struct index_wip_file): New struct.
7613 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7614 file logic to index_wip_file. Write index for dwz file if
7615 needed.
7616 (save_gdb_index_command): Pass basename of dwz file, if present.
7617 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7618 build-id of dwz file, if present.
7619 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7620 (dwarf2_get_dwz_file): Likewise.
7621 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7622 (dwarf2_get_dwz_file): Likewise.
7623
395f9c91
TT
76242019-06-16 Tom Tromey <tom@tromey.com>
7625
7626 * coffread.c (process_coff_symbol): Use xstrdup.
7627 * value.c (create_internalvar): Use xstrdup.
7628
cafb3438
TT
76292019-06-16 Tom Tromey <tom@tromey.com>
7630
7631 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7632 * breakpoint.c (stopin_command, stopat_command)
7633 (until_break_command, decode_location_default): Remove unnecessary
7634 cast.
7635 * utils.c (subset_compare): Remove unnecessary cast.
7636 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7637 cast.
7638 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7639 cast.
7640 * infcmd.c (path_command): Remove unnecessary cast.
7641 * coffread.c (decode_type): Remove unnecessary cast.
7642 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7643 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7644 * tui/tui-stack.c (tui_show_locator_content)
7645 (tui_show_frame_info): Remove unnecessary cast.
7646 * tui/tui-win.c (tui_scroll_forward_command)
7647 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7648 (parse_scrolling_args): Remove unnecessary cast.
7649 * tui/tui-data.c (init_win_info, tui_del_window)
7650 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7651 (free_content_elements): Remove unnecessary cast.
7652 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7653 unnecessary cast.
7654 * tui/tui-source.c (tui_set_source_content)
7655 (tui_vertical_source_scroll): Remove unnecessary cast.
7656 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7657 cast.
7658 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7659 * tui/tui-regs.c (tui_display_registers_from)
7660 (tui_display_register): Remove unnecessary cast.
7661 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7662 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7663 (make_visible): Remove unnecessary cast.
7664 * tui/tui-winsource.c (tui_erase_source_content)
7665 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7666 unnecessary cast.
7667 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7668 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7669 * stabsread.c (read_type, read_array_type, read_range_type):
7670 Remove unnecessary cast.
7671 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7672 (parse_symbol, parse_type, upgrade_type, parse_external)
7673 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7674 unnecessary cast.
7675 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7676
730ead81
TT
76772019-06-16 Tom Tromey <tom@tromey.com>
7678
7679 * tui/tui-data.c (tui_alloc_generic_win_info)
7680 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7681 checks.
7682
584a927c
AB
76832019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7684 Andrew Burgess <andrew.burgess@embecosm.com>
7685
7686 * f-typeprint.c (f_print_type): Don't return early for not
7687 associated or not allocated types.
7688 (f_type_print_varspec_suffix): Add print_rank parameter and print
7689 ranks of array types in case they dangling.
7690 (f_type_print_base): Add print_rank parameter.
7691
30056ea0
AB
76922019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7693
7694 * NEWS: Mention new MI commands.
7695 * break-catch-throw.c (enum exception_event_kind): Move to
7696 breakpoint.h.
7697 (print_mention_exception_catchpoint): Output text as a single
7698 message.
7699 (catch_exception_command_1): Rename to...
7700 (catch_exception_event): ...this, make non-static, update header
7701 command, and change some parameter types.
7702 (catch_catch_command): Update for changes to
7703 catch_exception_command_1.
7704 (catch_throw_command): Likewise.
7705 (catch_rethrow_command): Likewise.
7706 * breakpoint.c (enum exception_event_kind): Delete.
7707 * breakpoint.h (enum exception_event_kind): Moved here from
7708 break-catch-throw.c.
7709 (catch_exception_event): Declare.
7710 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7711 (mi_cmd_catch_throw): New function.
7712 (mi_cmd_catch_rethrow): New function.
7713 (mi_cmd_catch_catch): New function.
7714 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7715 'catch-catch' entries.
7716 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7717 (mi_cmd_catch_rethrow): Declare.
7718 (mi_cmd_catch_catch): Declare.
7719
ec8e2b6d
AB
77202019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7721
7722 * annotate.c (annotate_source_line): Change return type to void,
7723 update implementation to match.
7724 * annotate.h (annotate_source_line): Change return type to void,
7725 update header comment.
7726 * stack.c (print_frame_info): Don't change what frame information
7727 is printed based on whether annotations are on or not.
7728
0d3abd8c
AB
77292019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7730
7731 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7732 (annotate_source): Make static.
7733 (annotate_source_line): Moved from source.c and renamed from
7734 identify_source_line. Update the return type.
7735 * annotate.h (annotate_source): Delete declaration.
7736 (annotate_source_line): Declaration moved from source.h, and
7737 renamed from identify_source_line. Return type updated.
7738 * source.c (identify_source_line): Moved to annotate.c and renamed
7739 to annotate_source_line.
7740 (info_line_command): Remove check of annotation_level.
7741 * source.h (identify_source_line): Move declaration to annotate.h
7742 and rename to annotate_source_line.
7743 * stack.c: Add 'annotate.h' include.
7744 (print_frame_info): Remove check of annotation_level before
7745 calling annotate_source_line.
7746
00df30ae
AB
77472019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7748
7749 * source-cache.c (source_cache::get_plain_source_lines): Use
7750 open_source_file_with_line_charpos instead of just
7751 open_source_file, remove call to find_source_lines.
7752 (source_cache::get_source_lines): Likewise.
7753 * source.c (find_source_lines): Make static.
7754 (get_filename_and_charpos): Renamed into...
7755 (open_source_file_with_line_charpos): ..this along with changes to
7756 return a scoped_fd, and some other minor clean ups.
7757 (identify_source_line): Use open_source_file_with_line_charpos.
7758 (search_command_helper): Use open_source_file_with_line_charpos
7759 instead of just open_source_file, remove call to
7760 find_source_lines.
7761 * source.h (open_source_file_with_line_charpos): Declare new
7762 function.
7763 (find_source_lines): Delete declaration.
7764
afda45a2
AB
77652019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7766
7767 * source.c (get_filename_and_charpos): Remove fullname
7768 parameter.
7769 (identify_source_line): Update call to get_filename_and_charpos.
7770
0735b091
TT
77712019-06-14 Tom Tromey <tromey@adacore.com>
7772
7773 PR gdb/24502:
7774 * ui-style.h (skip_ansi_escape): Update comment.
7775 * ui-file.h (class no_terminal_escape_file): New class.
7776 * ui-file.c (no_terminal_escape_file::write)
7777 (no_terminal_escape_file::puts): New methods.
7778 * cli/cli-logging.c (handle_redirections): Use
7779 no_terminal_escape_file.
7780
52ce35e2
TT
77812019-06-14 Tom Tromey <tromey@adacore.com>
7782
7783 * NEWS: Move convenience variable news above Python news.
7784
73cc7272
TT
77852019-06-14 Tom Tromey <tom@tromey.com>
7786
7787 * gnulib: Move directory to top-level.
7788 * configure.ac: Don't configure gnulib.
7789 * configure: Rebuild.
7790 * common/common-defs.h: Use new path to gnulib.
7791 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7792 (GNULIB_H): Remove.
7793 (INCGNU): Look in new gnulib location.
7794 (HFILES_NO_SRCDIR): Remove gnulib files.
7795 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7796 (generated_files): Remove GNULIB_H.
7797 ($(LIBGNU), all-lib): Remove targets.
7798 (distclean): Don't mention GNULIB_BUILDDIR.
7799 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7800
f5686554
TT
78012019-06-14 Tom Tromey <tromey@adacore.com>
7802
7803 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7804 Warn if symbol file does not provide any symbols.
7805
a0c1ffed
TT
78062019-06-14 Tom Tromey <tromey@adacore.com>
7807
7808 * source.c (find_and_open_source): Respect basenames_may_differ.
7809
7c39e397
AB
78102019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7811
7812 * annotate.c (annotate_breakpoints_invalid): Make use of
7813 scoped_restore_terminal_state.
7814 (annotate_frames_invalid): Likewise.
7815
f411722c
TT
78162019-06-14 Tom Tromey <tromey@adacore.com>
7817
7818 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7819 allow assignment to an internalvar.
7820
4268ec18
TT
78212019-06-14 Tom Tromey <tromey@adacore.com>
7822
7823 * ada-lex.l: Allow "_" in attribute names.
7824
abdb711e
TT
78252019-06-14 Tom Tromey <tromey@adacore.com>
7826
7827 PR gdb/24653:
7828 * regcache.c (registers_changed): Don't call alloca.
7829 * top.c (execute_command): Don't call alloca.
7830
4c048731
PA
78312019-06-13 Pedro Alves <palves@redhat.com>
7832
7833 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7834 'expression'. When parsing an expression, error out if there's
7835 junk after "unlimited".
7836 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7837 (do_set_command): Adjust calls to is_unlimited_literal.
7838
66eb1ed3
PA
78392019-06-13 Pedro Alves <palves@redhat.com>
7840
7841 * compile/compile.c (make_compile_options_def_group): Add braces
7842 around array_view initializer.
7843 * thread.c (make_thread_apply_all_options_def_group)
7844 (make_thread_apply_all_options_def_group): Likewise.
7845
3345721a
PA
78462019-06-13 Pedro Alves <palves@redhat.com>
7847
7848 * NEWS (New commands): Mention "maint test-options
7849 require-delimiter", "maint test-options unknown-is-error", "maint
7850 test-options unknown-is-operand" and "maint show
7851 test-options-completion-result".
7852 (New command options, command completion): New section.
7853 (Completion improvements): New section.
7854 Mention that you can abbreviate "unlimited".
7855
6206060d
PA
78562019-06-13 Pedro Alves <palves@redhat.com>
7857
7858 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7859 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7860 * unittests/cli-utils-selftests.c (test_parse_flags)
7861 (test_parse_flags_qcs): Delete.
7862 (test_cli_utils): Don't call deleted functions.
7863
6665660a
PA
78642019-06-13 Pedro Alves <palves@redhat.com>
7865
7866 * thread.c: Include "cli/cli-option.h".
7867 (tp_array_compar_ascending): Global.
7868 (tp_array_compar): Delete function.
7869 (tp_array_compar_ascending, tp_array_compar_descending): New
7870 functions.
7871 (ascending_option_def, qcs_flag_option_def)
7872 (thr_qcs_flags_option_defs)
7873 (make_thread_apply_all_options_def_group)
7874 (make_thread_apply_options_def_group): New.
7875 (thread_apply_all_command): Use gdb::option::process_options.
7876 (thread_apply_command_completer)
7877 (thread_apply_all_command_completer): New.
7878 (thread_apply_command): Use gdb::option::process_options.
7879 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7880 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7881 to generate help text of "thread apply". Adjust "taas"'s help.
7882 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7883 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7884
f7e13587
PA
78852019-06-13 Pedro Alves <palves@redhat.com>
7886
7887 * thread.c (thread_apply_command): Check for invalid TID with
7888 isdigit instead of !isalpha.
7889
5d707134
PA
78902019-06-13 Pedro Alves <palves@redhat.com>
7891
7892 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7893 (validate_flags_qcs): New.
7894 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7895 (validate_flags_qcs): Declare.
7896 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7897 (make_frame_apply_options_def_group): New.
7898 (frame_apply_command_count): Process options with
7899 gdb::option::process_options.
7900 (frame_apply_completer): New.
7901 (frame_apply_level_completer, frame_apply_all_completer)
7902 (frame_apply_completer): New.
7903 (_initialize_stack): Update help of "frame apply", "frame apply
7904 level", "frame apply all" and "faas" to mention supported options
7905 and install command completers.
7906 * stack.h (frame_apply_all_completer): Declare.
7907 * thread.c: Include "stack.h".
7908 (tfaas_command): Add "--".
7909 (_initialize_thread): Update help "tfaas" to mention supported
7910 options and install command completer.
7911
272d4594
PA
79122019-06-13 Pedro Alves <palves@redhat.com>
7913
7914 * completer.c (complete_nested_command_line): New.
7915 (gdb_completion_word_break_characters_throw): Add assertion.
7916 * completer.h (complete_nested_command_line): Declare.
7917
90a1ef87
PA
79182019-06-13 Pedro Alves <palves@redhat.com>
7919
7920 * stack.c (parse_backtrace_qualifiers): New.
7921 (backtrace_command): Use it.
7922 (backtrace_command_completer): Complete on qualifiers.
7923
d4c16835
PA
79242019-06-13 Pedro Alves <palves@redhat.com>
7925
7926 * frame.c: Include "cli/cli-option.h.
7927 (user_set_backtrace_options): New.
7928 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7929 Delete.
7930 (get_prev_frame): Adjust.
7931 (boolean_option_def, uinteger_option_def)
7932 (set_backtrace_option_defs): New.
7933 (_initialize_frame): Adjust and use
7934 gdb::option::add_setshow_cmds_for_options to install "set
7935 backtrace past-main" and "set backtrace past-entry".
7936 * frame.h: Include "cli/cli-option.h".
7937 (struct frame_print_options): Forward declare.
7938 (print_frame_arguments_all, print_frame_arguments_scalars)
7939 (print_frame_arguments_none): Declare.
7940 (print_entry_values): Delete declaration.
7941 (struct frame_print_options, user_frame_print_options): New.
7942 (struct set_backtrace_options): New.
7943 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7944 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7945 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7946 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7947 (list_args_or_locals): Add frame_print_options parameter.
7948 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7949 * python/py-framefilter.c (enumerate_args): Pass down
7950 USER_FRAME_PRINT_OPTIONS.
7951 * stack.c: Include "cli/cli-option.h".
7952 (print_frame_arguments_all, print_frame_arguments_scalars)
7953 (print_frame_arguments_none): Declare.
7954 (print_raw_frame_arguments, print_entry_values): Delete.
7955 (user_frame_print_options): New.
7956 (boolean_option_def, enum_option_def, frame_print_option_defs):
7957 New.
7958 (struct backtrace_cmd_options): New.
7959 (bt_flag_option_def): New.
7960 (backtrace_command_option_defs): New.
7961 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7962 (print_frame_arg, read_frame_arg, print_frame_args)
7963 (print_frame_info, print_frame): Add frame_print_options parameter
7964 and use it.
7965 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7966 (backtrace_command_1): Add frame_print_options and
7967 backtrace_cmd_options parameters and use them.
7968 (make_backtrace_options_def_group): New.
7969 (backtrace_command): Process command options with
7970 gdb::option::process_options.
7971 (backtrace_command_completer): New.
7972 (_initialize_stack): Extend "backtrace"'s help to mention
7973 supported options. Install completer for "backtrace".
7974 Install some settings commands with add_setshow_cmds_for_options.
7975
2daf894e
PA
79762019-06-13 Pedro Alves <palves@redhat.com>
7977
7978 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7979 and that "set/show print raw frame-arguments" are now deprecated.
7980
7981 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7982 command.
7983 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7984 * stack.c (_initialize_stack): Install "set/show print
7985 raw-frame-arguments", and deprecate "set/show print raw
7986 frame-arguments".
7987 * valprint.c (_initialize_valprint): Deprecate "set/show print
7988 raw".
7989
e6ed716c
PA
79902019-06-13 Pedro Alves <palves@redhat.com>
7991
7992 * compile/compile.c (struct compile_options): New.
7993 (compile_flag_option_def, compile_command_option_defs)
7994 (make_compile_options_def_group): New.
7995 (compile_file_command): Handle options with
7996 gdb::option::process_options.
7997 (compile_file_command_completer): New function.
7998 (compile_code_command): Handle options with
7999 gdb::option::process_options.
8000 (compile_code_command_completer): New function.
8001 (_initialize_compiler): Install completers for "compile code" and
8002 "compile file". Mention available options in "compile code" and
8003 "compile code"'s help.
8004 * completer.c (advance_to_completion_word): New, factored out from
8005 ...
8006 (advance_to_expression_complete_word_point): ... this.
8007 (advance_to_filename_complete_word_point): New.
8008 * completer.h (advance_to_filename_complete_word_point): New
8009 declaration.
8010
7d8062de
PA
80112019-06-13 Pedro Alves <palves@redhat.com>
8012
8013 * compile/compile.c: Include "cli/cli-option.h".
8014 (compile_print_value): Scope data pointer is now a
8015 value_print_options pointer; adjust.
8016 (compile_print_command): Process options. Scope data pointer is
8017 now a value_print_options pointer; adjust.
8018 (_initialize_compile): Update "compile print"'s help to include
8019 supported options. Install a completer for "compile print".
8020 * cp-valprint.c (show_vtblprint, show_objectprint)
8021 (show_static_field_print): Delete.
8022 (_initialize_cp_valprint): Don't install "set print
8023 static-members", "set print vtbl", "set print object" here.
8024 * printcmd.c: Include "cli/cli-option.h" and
8025 "common/gdb_optional.h".
8026 (print_command_parse_format): Rework to fill in a
8027 value_print_options instead of a format_data.
8028 (print_value): Change parameter type from format_data pointer to
8029 value_print_options reference. Adjust.
8030 (print_command_1): Process options. Adjust to pass down a
8031 value_print_options.
8032 (print_command_completer): New.
8033 (_initialize_printcmd): Install print_command_completer as
8034 handle_brkchars completer for the "print" command. Update
8035 "print"'s help to include supported options.
8036 * valprint.c: Include "cli/cli-option.h".
8037 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8038 here from cp-valprint.c.
8039 (boolean_option_def, uinteger_option_def)
8040 (value_print_option_defs, make_value_print_options_def_group):
8041 New. Use gdb::option::add_setshow_cmds_for_options to install
8042 "set print elements", "set print null-stop", "set print repeats",
8043 "set print pretty", "set print union", "set print array", "set
8044 print address", "set print symbol", "set print array-indexes".
8045 * valprint.h: Include <string> and "cli/cli-option.h".
8046 (make_value_print_options_def_group): Declare.
8047 (print_value): Change parameter type from format_data pointer to
8048 value_print_options reference.
8049 (print_command_completer): Declare.
8050
9d0faba9
PA
80512019-06-13 Pedro Alves <palves@redhat.com>
8052
8053 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8054 (COMMON_SFILES): Add maint-test-settings.c.
8055 * cli/cli-decode.c (boolean_enums): New global, factored out from
8056 ...
8057 (add_setshow_boolean_cmd): ... here.
8058 * cli/cli-decode.h (boolean_enums): Declare.
8059 * cli/cli-option.c: New file.
8060 * cli/cli-option.h: New file.
8061 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8062 factored out from ...
8063 (parse_cli_boolean_value(const char *)): ... this.
8064 (is_unlimited_literal): Change parameter type to pointer to
8065 pointer. Adjust and advance ARG pointer.
8066 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8067 (parse_cli_var_enum): New, factored out from ...
8068 (do_set_command): ... this. Adjust.
8069 * cli/cli-setshow.h (parse_cli_boolean_value)
8070 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8071 (parse_cli_var_enum): Declare.
8072 * cli/cli-utils.c: Include "cli/cli-option.h".
8073 (get_ulongest): New.
8074 * cli/cli-utils.h (get_ulongest): Declare.
8075 (check_for_argument): New overloads.
8076 * maint-test-options.c: New file.
8077
2c722807
PA
80782019-06-13 Pedro Alves <palves@redhat.com>
8079
8080 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8081 parse a range if "-" is at the end of the string.
8082
dee7b4c8
PA
80832019-06-13 Pedro Alves <palves@redhat.com>
8084
8085 * cli/cli-setshow.c (parse_auto_binary_operation)
8086 (parse_cli_boolean_value): Don't allow "o".
8087
dca0f6c0
PA
80882019-06-13 Pedro Alves <palves@redhat.com>
8089
8090 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8091 * NEWS: Mention maint test-settings KIND.
8092 * maint-test-settings.c: New file.
8093
597bf39d
PA
80942019-06-13 Pedro Alves <palves@redhat.com>
8095
8096 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8097 completer.
8098 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8099 "set" completers.
8100
48c410fb
PA
81012019-06-13 Pedro Alves <palves@redhat.com>
8102
8103 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8104 after item.
8105
93bcb043
PA
81062019-06-13 Pedro Alves <palves@redhat.com>
8107
8108 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8109
cbba3ecd
PA
81102019-06-13 Pedro Alves <palves@redhat.com>
8111
8112 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8113 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8114 call.
8115 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8116 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8117 calls.
8118 (check_for_argument): Skip spaces after argument.
8119
b9a3f842
PA
81202019-06-13 Pedro Alves <palves@redhat.com>
8121
8122 * thread.c (thread_apply_command): Adjust TID parsing.
8123 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8124 detected before end of string.
8125 (tid_is_in_list): Error out if LIST is invalid.
8126
3844e605
PA
81272019-06-13 Pedro Alves <palves@redhat.com>
8128
8129 * completer.c (complete_line_internal_1): Rewind completion word
8130 point.
8131 (completion_tracker::advance_custom_word_point_by): Change
8132 parameter type to int.
8133 * completer.h (completion_tracker::advance_custom_word_point_by):
8134 Likewise.
8135
00b56dbe
PA
81362019-06-13 Pedro Alves <palves@redhat.com>
8137
8138 * completer.c (advance_to_completion_word): Handle delimiters.
8139
d106773e
PA
81402019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8141
8142 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8143
08f10e02
TT
81442019-06-11 Tom Tromey <tom@tromey.com>
8145
8146 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8147 (xmalloc_failed): Move to alloc.c.
8148 * alloc.c: New file.
8149 * Makefile.in (COMMON_SFILES): Add alloc.c.
8150
1c7fe951
TT
81512019-06-11 Tom Tromey <tom@tromey.com>
8152
8153 * nat/linux-waitpid.c: Don't include server.h.
8154 (linux_debug): Remove.
8155 (my_waitpid): Update.
8156
89549d7f
TT
81572019-06-11 Tom Tromey <tromey@adacore.com>
8158
8159 * infcall.c (_initialize_infcall): Remove trailing newline from
8160 help.
8161 * user-regs.c (_initialize_user_regs): Remove trailing newline
8162 from help.
8163 * typeprint.c (_initialize_typeprint): Remove trailing newline
8164 from help.
8165 * reverse.c (_initialize_reverse): Remove trailing newlines from
8166 help.
8167 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8168 from help.
8169 * language.c (add_set_language_command): Remove trailing newline
8170 from help.
8171 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8172 help.
8173 * disasm.c (_initialize_disasm): Remove trailing newline from
8174 help.
8175 * top.c (init_main): Remove trailing newline from help.
8176 * interps.c (_initialize_interpreter): Remove trailing newline
8177 from help.
8178 * btrace.c (_initialize_btrace): Remove trailing newlines from
8179 help.
8180 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8181 from help.
8182 * python/python.c (_initialize_python): Remove trailing newline
8183 from help.
8184 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8185 help.
8186 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8187 from help. Reformat some text.
8188 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8189 from help.
8190 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8191 newline from help.
8192
86108c13
TT
81932019-06-11 Tom Tromey <tromey@adacore.com>
8194
8195 * darwin-nat.c (darwin_decode_exception_message)
8196 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8197
a7067863
AB
81982019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8199
8200 * valops.c (value_slice): Check for not allocated or not
8201 associated values.
8202
9ab08412
TV
82032019-06-10 Tom de Vries <tdevries@suse.de>
8204
8205 PR gdb/24618
8206 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8207 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8208 invalid.
8209
f19e22e9
TV
82102019-06-10 Tom de Vries <tdevries@suse.de>
8211
8212 PR gdb/24611
8213 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8214 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8215
e99f9db0
TV
82162019-06-10 Tom de Vries <tdevries@suse.de>
8217
8218 PR symtab/24545
8219 * symtab.c (struct demangled_name_entry): Add language field.
8220 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8221 static minimal symbol". Set and use language field.
8222
9bf7038b
TT
82232019-06-10 Tom Tromey <tromey@adacore.com>
8224
8225 * ada-lang.c (_initialize_ada_language): Update help text.
8226
422186a9
TT
82272019-06-10 Tom Tromey <tromey@adacore.com>
8228
8229 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8230 with a newline.
8231 * guile/guile.c (handle_boot_error): Don't end warning with a
8232 newline.
8233 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8234 warning with a newline.
8235 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8236 newline.
8237 (s12z_frame_cache): Likewise.
8238 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8239 a newline.
8240 * solib-svr4.c (disable_probes_interface): Don't end warning with
8241 a newline.
8242 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8243 newline.
8244 * python/python.c (do_finish_initialization): Don't end warning
8245 with a newline.
8246
25ce02ee
TT
82472019-06-10 Tom Tromey <tom@tromey.com>
8248
8249 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8250 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8251 gdbpy_enter.
8252
caa429d8
TT
82532019-06-10 Tom Tromey <tromey@adacore.com>
8254
8255 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8256 data.
8257 (elf_new_init): Don't call stabsread_new_init.
8258 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8259 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8260 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8261
81873cc8
TV
82622019-06-10 Tom de Vries <tdevries@suse.de>
8263
8264 PR symtab/16264
8265 PR symtab/24517
8266 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8267
4fa0265e
РИ
82682019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8269
8270 * source.c (find_and_open_source): Also rewrite relative file
8271 names.
8272
1a3da2cd
AB
82732019-04-26 Amos Bird <amosbird@gmail.com>
8274
8275 * annotate.c (annotate_thread_exited): Add "thread-exited"
8276 annotation.
8277
3847a7bf
TT
82782019-06-06 Tom Tromey <tromey@adacore.com>
8279
8280 * maint.h (class scoped_command_stats): Use
8281 DISABLE_COPY_AND_ASSIGN.
8282 <print_time>: New method.
8283 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8284 print_time.
8285 (scoped_command_stats::print_time): New method.
8286
312617a3
AB
82872019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8288
8289 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8290 instructions of lengths 6 or 8 bytes.
8291
b02f78f9
PA
82922019-06-04 Pedro Alves <palves@redhat.com>
8293
8294 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8295
8296 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8297 * breakpoint.c (condition_completer): Likewise.
8298 * cli/cli-dump.c (scan_expression): Likewise.
8299 * common/filestuff.c (mkdir_recursive): Likewise.
8300 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8301 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8302 (gdb_abspath): Likewise.
8303 * compile/compile-cplus-types.c
8304 (compile_cplus_instance::decl_name): Likewise.
8305 * completer.c (complete_explicit_location):
8306 (signal_completer, reg_or_group_completer_1): Likewise.
8307 * cp-support.c (cp_remove_params_if_any): Likewise.
8308 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8309 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8310 * infcmd.c (strip_bg_char): Likewise.
8311 * linespec.c (copy_token_string): Likewise.
8312 * mi/mi-main.c (output_cores): Likewise.
8313 * psymtab.c (psymtab_search_name):
8314 * symfile.c (test_set_ext_lang_command): Likewise.
8315 * target.c (target_fileio_read_stralloc): Likewise.
8316 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8317 * value.c (complete_internalvar): Likewise.
8318
e1f2e1a2
CB
83192019-06-04 Christian Biesinger <cbiesinger@google.com>
8320
8321 Add objfile property to gdb.Type.
d3238f7d
PA
8322 * NEWS: Mention Python API addition.
8323 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8324
e664d728
PW
83252019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8326
8327 * NEWS: Mention the new set|show style [title|highlight].
8328 Mention changes to "show style", "help" and "apropos".
8329
66d8c862
PW
83302019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8331
8332 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8333 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8334 instead of print_help_for_command.
8335 (print_doc_of_command): New function.
8336 (help_list): Add 'apropos -v word' suggestion.
8337 (print_help_for_command): Style the command name using title style.
8338 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8339 (_initialize_cli_cmds): Describe -v in apropos_command help.
8340
9303eb2f
PW
83412019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8342
8343 * cli/cli-style.h (cli_style_option): Add name in constructor,
8344 add m_name class member, add constructor with intensity,
8345 add name class function.
8346 (cli_style_option::add_setshow_commands): Remove name argument.
8347 (highlight_style, title_style): New styles.
8348 * cli/cli-style.c (do_show): New function that shows a style
8349 characteristic styling the style name with itself.
8350 (set_style_name): New function.
8351 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8352 Update all callers according to the changes in cli/cli-style.h.
8353 * utils.h (fputs_highlighted): New function.
8354 * utils.c (fputs_highlighted): Likewise.
8355
e2c52041
PW
83562019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8357
8358 * NEWS: Mention new pipe command and new convenience variables.
8359
947d3946
PW
83602019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8361
8362 * cli/cli-cmds.c (pipe_command): New function.
8363 (_initialize_cli_cmds): Call add_com for pipe_command.
8364 Define | as an alias for pipe.
8365 (exit_status_set_internal_vars): New function.
8366 (shell_escape): Call exit_status_set_internal_vars.
8367 cli/cli-decode.c (find_command_name_length): Recognize | as
8368 a single character command.
8369
b8fd0918
PW
83702019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8371
8372 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8373 top.c (execute_command_to_ui_file): New function, mostly a copy
8374 of execute_command_to_string.
8375 (execute_command_to_string): Implement by calling
8376 execute_command_to_ui_file.
8377
68bb5386
PW
83782019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8379
8380 * top.h (saved_command_line): Remove declaration.
8381 * top.c (previous_saved_command_line, previous_repeat_arguments):
8382 New variables.
8383 (saved_command_line): Make static, define together with other
8384 'repeat variables'.
8385 (dont_repeat): Clear repeat_arguments.
8386 (repeat_previous, get_saved_command_line, save_command_line):
8387 New functions.
8388 (gdb_init): Initialize saved_command_line
8389 and previous_saved_command_line.
8390 * main.c (captured_main_1): Remove saved_command_line initialization.
8391 * event-top.c (handle_line_of_input): Update to use
8392 the new 'repeat' related functions instead of direct access to
8393 saved_command_line.
8394 * command.h (repeat_previous, get_saved_command_line,
8395 save_command_line): New declarations.
8396 (dont_repeat): Add comment.
8397
bfcdb852
TT
83982019-05-30 Tom Tromey <tromey@adacore.com>
8399
8400 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8401 Fix comment.
8402 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8403
0ef209f2
JV
84042019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8405
8406 PR cli/24587
8407 * completer.c (complete): Initialize variable word.
8408
955b06fa
SDJ
84092019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8410
8411 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8412 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8413 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8414 'body' is NULL to the outter 'if', protecting the '!is_define'
8415 situation as well.
8416
fa9c3fa0
TT
84172019-05-29 Tom Tromey <tromey@adacore.com>
8418
8419 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8420 (dwarf_unknown): New function.
8421 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8422 (dwarf_type_encoding_name): Use dwarf_unknown.
8423
4330d61d
TT
84242019-05-29 Tom Tromey <tromey@adacore.com>
8425
8426 PR c++/20020:
8427 * cp-valprint.c (cp_print_value_fields): Call
8428 cp_print_static_field inside "try".
8429
33a6bc35
TT
84302019-05-29 Tom Tromey <tromey@adacore.com>
8431
8432 * inflow.c (struct terminal_info): Add default operator=.
8433 * configure: Rebuild.
8434 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8435 -Wdeprecated-copy-dtor, -Wredundant-move.
8436
000439d5
TT
84372019-05-29 Tom Tromey <tromey@adacore.com>
8438
8439 * NEWS: Add entry.
8440 * infcmd.c (print_return_value_1): Handle finish_print
8441 option.
8442 (show_print_finish): New function.
8443 (_initialize_infcmd): Add "set/show print finish" commands.
8444 * valprint.c (user_print_options): Initialize new member.
8445 * valprint.h (struct value_print_options) <finish_print>: New
8446 member.
8447
c0e70c62
TT
84482019-05-28 Tom Tromey <tromey@adacore.com>
8449
8450 * ada-lang.c (ada_remove_Xbn_suffix)
8451 (find_old_style_renaming_symbol)
8452 (parse_old_style_renaming): Remove.
8453 (ada_find_renaming_symbol): Don't call
8454 find_old_style_renaming_symbol.
8455 (ada_is_renaming_symbol): Rename from
8456 ada_find_renaming_symbol. Remove "block" parameter. Return
8457 bool. Now static.
8458 (ada_read_var_value): Update and simplify.
8459 * ada-exp.y (write_var_or_type): Remove old code.
8460
766f8836
AH
84612019-05-28 Alan Hayward <alan.hayward@arm.com>
8462
68255adc 8463 PR gdb/25010
766f8836
AH
8464 * event-top.c: Remove include comment.
8465 * inflow.c (class scoped_ignore_sigttou): Move from here...
8466 * inflow.h (class scoped_ignore_sigttou): ...to here.
8467 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8468 * top.c: Remove include comment.
8469
eb41253a
TT
84702019-05-27 Tom Tromey <tom@tromey.com>
8471
8472 * NEWS: Fix typo.
8473
4ca51187
TT
84742019-05-22 Tom Tromey <tromey@adacore.com>
8475
8476 * target.c (target_follow_exec): Constify parameter.
8477 * target-delegates.c: Rebuild.
8478 * remote.c (remote_target::follow_exec): Constify parameter.
8479 * infrun.c (follow_exec): Constify parameter.
8480 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8481 (target_follow_exec): Likewise.
8482
8fca4da0
AH
84832019-05-22 Alan Hayward <alan.hayward@arm.com>
8484
8485 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8486 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8487
b7060614
AH
84882019-05-22 Alan Hayward <alan.hayward@arm.com>
8489
8490 * NEWS: Add debugredirect and testsuite sections.
8491
0a5954bd
SC
84922019-05-22 Simon Cook <simon.cook@embecosm.com>
8493
8494 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8495 target descriptions using exclusively floating point register name
8496 aliases.
8497
dc42e902
AB
84982019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8499
8500 PR gdb/18644:
8501 * f-lang.c (build_fortran_types): Handle the case where
8502 gdbarch_floatformat_for_type returns a nullptr.
8503
fb7806c7
TV
85042019-05-21 Tom de Vries <tdevries@suse.de>
8505
8506 PR cli/24587
8507 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8508
34d11c68
AB
85092019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8510
8511 PR gdb/18644:
8512 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8513 16-byte floats.
8514 * i386-tdep.c (i386_floatformat_for_type): Use
8515 floatformats_ia64_quad for the 16-byte floating point component
8516 within a fortran 32-byte complex number.
8517
122cf0f2
AB
85182019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8519
8520 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8521 delete default constructor.
8522 (find_partial_die): Update to return const struct.
8523 (partial_die_parent_scope): Move variable declaration into scope
8524 of its use and change its type to auto.
8525 (guess_partial_die_structure_name): Likewise.
8526 (partial_die_info::fixup): Likewise.
8527
33d0e35a
TT
85282019-05-17 Tom Tromey <tromey@adacore.com>
8529
8530 * source.c (find_and_open_source): Remove cast.
8531
a45575b0
TT
85322019-05-17 Tom Tromey <tromey@adacore.com>
8533
8534 * annotate.c (annotate_source): Make "filename" const.
8535 * annotate.h (annotate_source): Use const.
8536
81f47ac2
AH
85372019-05-17 Alan Hayward <alan.hayward@arm.com>
8538
8539 * disasm.c (set_disassembler_options): Send errors to stderr.
8540
ca1285d1
AH
85412019-05-17 Alan Hayward <alan.hayward@arm.com>
8542
8543 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8544 (cli_interp_base::set_logging): Check debug_redirect.
8545 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8546 * cli/cli-logging.c (debug_redirect): Add static variable.
8547 (pop_output_files): Add default param.
8548 (handle_redirections): Print debug setting.
8549 (show_logging_command): Likewise.
8550 (_initialize_cli_logging): Add debugredirect command.
8551 * interps.c (current_interp_set_logging): Add debug_redirect
8552 parameter.
8553 * interps.h (set_logging): Add debug_redirect parameter.
8554 (current_interp_set_logging): Likewise.
8555 * mi/mi-common.h: Likewise.
8556 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8557
85582019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
8559 Tom Tromey <tromey@adacore.com>
8560
8561 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8562 directly.
8563 * cli/cli-interp.h (make_logging_output): Remove declaration.
8564 * cli/cli-logging.c (make_logging_output): Remove function.
8565 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8566 directly.
8567 * ui-file.c (tee_file::tee_file): Remove bools.
8568 (tee_file::~tee_file): Remove deletes.
8569 * ui-file.h (tee_file): Remove bools.
8570
26648588
JV
85712019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8572
8573 * mi/mi-cmds.h (mi_cmd_complete): New function.
8574 * mi/mi-main.c (mi_cmd_complete): Likewise.
8575 * mi/mi-cmds.c: Define new MI command -complete.
8576 * NEWS: Mention new -complete command.
8577
6e035501
JV
85782019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8579
8580 * completer.h (complete): New function.
8581 * completer.c (complete): Likewise.
8582 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8583 function defined in completer.h.
8584
7d0e2ece
JV
85852019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8586
e79be6e5 8587 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 8588
fb816e8b
TV
85892019-05-17 Tom de Vries <tdevries@suse.de>
8590
8591 PR gdb/24094
8592 * dwarf2read.c (struct cu_partial_die_info): New struct.
8593 (find_partial_die): Return cu_partial_die_info.
8594 (partial_die_parent_scope, guess_partial_die_structure_name)
8595 (partial_die_info::fixup): Handle new return type of find_partial_die.
8596
677052f2
SDJ
85972019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8598
a1726c38 8599 PR breakpoints/24541
677052f2
SDJ
8600 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8601 "std::string", simplifying the algorithm.
8602
f3da9116
SDJ
86032019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8604
8605 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8606 (stap_static_probe_ops::get_probes): Likewise.
8607
f1bb75ab
SDJ
86082019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8609
8610 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8611 '-')" and "else if".
8612 (stap_parse_single_operand): Join checks for
8613 "gdbarch_stap_parse_special_token_p" and
8614 "gdbarch_stap_parse_special_token" in the same "if" statement.
8615 Invert check when verifying for operation on register
8616 displacement.
8617
3ca58cde
SDJ
86182019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8619
8620 * stap-probe.c (stap_get_opcode): Update comment.
8621 (stap_get_expected_argument_type): Likewise.
8622 (handle_stap_probe): Likewise.
8623
af2d9bee
SDJ
86242019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8625
8626 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8627 return type to 'bool'. Adjust comment. Use 'bool' when
8628 appropriate.
8629 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8630 * stap-probe.c (stap_parse_argument_1): Likewise.
8631 (stap_is_operator): Likewise.
8632 (stap_is_generic_prefix): Likewise.
8633 (stap_is_register_prefix): Likewise.
8634 (stap_is_register_indirection_prefix): Likewise.
8635 (stap_is_integer_prefix): Likewise.
8636 (stap_generic_check_suffix): Likewise.
8637 (stap_check_integer_suffix): Likewise.
8638 (stap_check_register_suffix): Likewise.
8639 (stap_check_register_indirection_suffix): Likewise.
8640 (stap_parse_register_operand): Likewise.
8641 (stap_parse_single_operand): Likewise.
8642 (stap_parse_argument_1): Likewise.
8643 (stap_probe::get_argument_count): Likewise.
8644 (stap_is_operator): Likewise.
8645
61c9c421
TT
86462019-05-16 Tom Tromey <tromey@adacore.com>
8647
8648 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8649 keyword to foreach.
8650
9ddc1af1
SM
86512019-05-15 Simon Marchi <simon.marchi@efficios.com>
8652
8653 * linux-thread-db.c (try_thread_db_load_1): Change return type
8654 to bool.
8655 (try_thread_db_load): Likewise.
8656 (try_thread_db_load_from_pdir_1): Likewise.
8657 (try_thread_db_load_from_pdir): Likewise.
8658 (try_thread_db_load_from_sdir): Likewise.
8659 (try_thread_db_load_from_dir): Likewise.
8660 (thread_db_load_search): Likewise.
8661 (has_libpthread): Likewise.
8662 (thread_db_load): Likewise.
8663
7bede828
SDJ
86642019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8665
8666 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8667 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8668 NULL, and complain/return if that's the case.
8669
c5358db4
JD
86702019-05-15 John Darrington <john@darrington.wattle.id.au>
8671
8672 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8673 (advance, posn, abstract_read_memory): New functions.
8674 [struct mem_read_abstraction]: New struct.
8675 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8676
c408a94f
TT
86772019-05-14 Tom Tromey <tromey@adacore.com>
8678
8679 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8680 value is not lval_memory.
8681
e7bd7fba
TT
86822019-05-14 Tom Tromey <tromey@adacore.com>
8683
8684 * solib.c (info_sharedlibrary_command): Style the file name.
8685
a6d0f249
AH
86862019-05-14 Alan Hayward <alan.hayward@arm.com>
8687
8688 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8689 (aarch64_vnv_type): Likewise.
8690 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8691 * common/tdesc.c: Likewise.
8692 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8693 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8694 * features/aarch64-fpu.xml: Add ieee half view.
8695 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8696 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8697 * gdbtypes.h (struct builtin_type): Likewise.
8698 (struct objfile_type): Likewise.
8699
66b8bb74
SM
87002019-05-12 Paul Naert <paul.naert@polymtl.ca>
8701
8702 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8703 typo.
8704 * location.h (string_to_event_location): Likewise.
8705
21c219fd
JB
87062019-05-11 Joel Brobecker <brobecker@adacore.com>
8707
8708 GDB 8.3 released.
8709
13674803
SM
87102019-05-10 Simon Marchi <simon.marchi@efficios.com>
8711
8712 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8713 New variable declaration.
8714 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8715 New variable.
8716 (print_one_breakpoint): Use ui_out::test_flags and new global
8717 variable to compute use_fixed_output.
8718 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8719 Remove.
8720 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8721 (mi_multi_location_breakpoint_output_fixed): Remove.
8722 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8723 new variable.
8724 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8725 fix_multi_location_breakpoint_output flag if version >= 3.
8726 * ui-out.h (enum ui_out_flag)
8727 <fix_multi_location_breakpoint_output>: New enumerator.
8728
a9eac7f9
SM
87292019-05-10 Simon Marchi <simon.marchi@efficios.com>
8730
8731 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8732
71bed2db
TT
87332019-05-10 Tom Tromey <tromey@adacore.com>
8734
8735 * ada-lang.c (catch_ada_completer): New function.
8736 (_initialize_ada_language): Use it.
8737
24c54127
TT
87382019-05-10 Tom Tromey <tromey@adacore.com>
8739
8740 * thread.c (print_thread_info): Make "requested_threads" const.
8741 * gdbthread.h (print_thread_info): Make "requested_threads"
8742 const.
8743 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8744 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8745
7a102139
TT
87462019-05-08 Tom Tromey <tom@tromey.com>
8747
8748 * gdbtypes.c (objfile_type_data): Change type.
8749 (objfile_type, _initialize_gdbtypes): Update.
8750
924d79e2
TT
87512019-05-08 Tom Tromey <tom@tromey.com>
8752
8753 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8754 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8755 (_initialize_dwarf2_frame): Update.
8756
4c58e337
TT
87572019-05-08 Tom Tromey <tom@tromey.com>
8758
8759 * objc-lang.c (objc_objfile_data): Change type.
8760 (find_methods): Update.
8761 (_initialize_objc_lang): Remove.
8762
d772d2ab
TT
87632019-05-08 Tom Tromey <tom@tromey.com>
8764
8765 * stabsread.c (rs6000_builtin_type_data): Change type.
8766 (rs6000_builtin_type, _initialize_stabsread): Update.
8767
d11d83f4
TT
87682019-05-08 Tom Tromey <tom@tromey.com>
8769
8770 * mips-tdep.c (mips_pdr_data): Remove.
8771 (_initialize_mips_tdep): Update.
8772
9a73f0ad
TT
87732019-05-08 Tom Tromey <tom@tromey.com>
8774
8775 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8776 (hppa_init_objfile_priv_data, read_unwind_info)
8777 (find_unwind_entry, _initialize_hppa_tdep): Update.
8778
8127a2fa
TT
87792019-05-08 Tom Tromey <tom@tromey.com>
8780
8781 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8782 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8783 on obstack.
8784 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8785
91d3055d
TT
87862019-05-08 Tom Tromey <tom@tromey.com>
8787
8788 * mdebugread.c (basic_type_data): Change type.
8789 (basic_type, _initialize_mdebugread): Update.
8790
31930bd3
TT
87912019-05-08 Tom Tromey <tom@tromey.com>
8792
8793 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8794
bdb3ed9e
TT
87952019-05-08 Tom Tromey <tom@tromey.com>
8796
8797 * nto-tdep.c (nto_inferior_data_reg): Change type.
8798 (nto_inferior_data): Update.
8799 (nto_inferior_data_cleanup, nto_new_inferior_data)
8800 (_initialize_nto_tdep): Remove.
8801 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8802
f37b313d
TT
88032019-05-08 Tom Tromey <tom@tromey.com>
8804
8805 * ada-lang.c (struct ada_inferior_data): Add initializers.
8806 (ada_inferior_data): Change type.
8807 (ada_inferior_data_cleanup): Remove.
8808 (get_ada_inferior_data, ada_inferior_exit)
8809 (struct ada_pspace_data): Add initializers, destructor.
8810 (ada_pspace_data_handle): Change type.
8811 (get_ada_pspace_data): Update.
8812 (ada_pspace_data_cleanup): Remove.
8813
24699405
TT
88142019-05-08 Tom Tromey <tom@tromey.com>
8815
8816 * coffread.c (struct coff_symfile_info): Add initializers.
8817 (coff_objfile_data_key): Move lower. Change type.
8818 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8819 Update.
8820 (coff_free_info): Remove.
8821
d4e05d2f
TT
88222019-05-08 Tom Tromey <tom@tromey.com>
8823
8824 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8825 (fbsd_pspace_data_handle): Move lower. Change type.
8826 (get_fbsd_pspace_data): Update.
8827 (fbsd_pspace_data_cleanup): Remove.
8828 (_initialize_fbsd_tdep): Update.
8829
14ef6690
TT
88302019-05-08 Tom Tromey <tom@tromey.com>
8831
8832 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8833 (get_ada_tasks_pspace_data): Update.
8834 (ada_tasks_pspace_data_cleanup): Remove.
8835 (_initialize_tasks): Update.
8836 (ada_tasks_inferior_data_handle): Change type.
8837 (get_ada_tasks_inferior_data): Update.
8838 (ada_tasks_inferior_data_cleanup): Remove.
8839 (struct ada_tasks_pspace_data): Add initializers.
8840
814cf43a
TT
88412019-05-08 Tom Tromey <tom@tromey.com>
8842
8843 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8844 * symfile-debug.c (debug_sym_get_probes): Change type.
8845 * stap-probe.c (handle_stap_probe):
8846 (stap_static_probe_ops::get_probes): Change type.
8847 * probe.h (class static_probe_ops) <get_probes>: Change type.
8848 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8849 (parse_probes_in_pspace): Update.
8850 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8851 Update.
8852 (any_static_probe_ops::get_probes): Change type.
8853 * elfread.c (elfread_data): New typedef.
8854 (probe_key): Change type.
8855 (elf_get_probes): Likewise. Update.
8856 (probe_key_free): Remove.
8857 (_initialize_elfread): Update.
8858 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8859 Change type.
8860 (dtrace_process_dof_probe, dtrace_process_dof)
8861 (dtrace_static_probe_ops::get_probe): Change type.
8862
02dc647e
TT
88632019-05-08 Tom Tromey <tom@tromey.com>
8864
8865 * xcoffread.c (struct xcoff_symfile_info): Rename from
8866 coff_symfile_info. Add initializers.
8867 (xcoff_objfile_data_key): Move lower. Change type.
8868 (XCOFF_DATA): Rewrite.
8869 (xcoff_free_info): Remove.
8870 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8871 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8872 (xcoff_initial_scan): Update.
8873
09232438
TT
88742019-05-08 Tom Tromey <tom@tromey.com>
8875
8876 * solib-svr4.c (struct svr4_info): Add initializers and
8877 destructor.
8878 <probes_table>: Now an htab_up.
8879 (solib_svr4_pspace_data): Change type.
8880 (free_probes_table): Simplify.
8881 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8882 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8883 (probes_table_remove_objfile_probes, register_solib_event_probe)
8884 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8885 (_initialize_svr4_solib): Update.
8886
7b4a314f
TT
88872019-05-08 Tom Tromey <tom@tromey.com>
8888
8889 * remote.c (remote_pspace_data): Change type.
8890 (remote_pspace_data_cleanup): Remove.
8891 (get_remote_exec_file, set_pspace_remote_exec_file)
8892 (_initialize_remote): Update.
8893
51d3063a
TT
88942019-05-08 Tom Tromey <tom@tromey.com>
8895
8896 * breakpoint.c (breakpoint_objfile_key): Change type.
8897 (get_breakpoint_objfile_data): Update.
8898 (free_breakpoint_objfile_data): Remove.
8899 (_initialize_breakpoint): Update.
8900
89fb8848
TT
89012019-05-08 Tom Tromey <tom@tromey.com>
8902
8903 * linux-tdep.c (struct linux_info): Add initializers.
8904 (linux_inferior_data): Move. Change type.
8905 (invalidate_linux_cache_inf): Update.
8906 (linux_inferior_data_cleanup): Remove.
8907 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8908
e9b89e2d
TT
89092019-05-08 Tom Tromey <tom@tromey.com>
8910
8911 * auxv.c (auxv_inferior_data): Move. Change type.
8912 (auxv_inferior_data_cleanup): Remove.
8913 (invalidate_auxv_cache_inf): Rewrite.
8914 (get_auxv_inferior_data, _initialize_auxv): Update.
8915
8c42777c
TT
89162019-05-08 Tom Tromey <tom@tromey.com>
8917
8918 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8919 (symfile_debug_objfile_data_key): Change type.
8920 (symfile_debug_installed, debug_qf_has_symbols)
8921 (debug_qf_find_last_source_symtab)
8922 (debug_qf_forget_cached_source_info)
8923 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8924 (debug_qf_print_stats, debug_qf_dump)
8925 (debug_qf_expand_symtabs_for_function)
8926 (debug_qf_expand_all_symtabs)
8927 (debug_qf_expand_symtabs_with_fullname)
8928 (debug_qf_map_matching_symbols)
8929 (debug_qf_expand_symtabs_matching)
8930 (debug_qf_find_pc_sect_compunit_symtab)
8931 (debug_qf_map_symbol_filenames)
8932 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8933 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8934 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8935 (debug_sym_read_linetable, debug_sym_relocate): Update.
8936 (symfile_debug_free_objfile): Remove.
8937 (install_symfile_debug_logging, _initialize_symfile_debug):
8938 Update.
8939
5bfd760d
TT
89402019-05-08 Tom Tromey <tom@tromey.com>
8941
8942 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8943 allocate_on_obstack.
8944 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8945 (get_dwarf2_per_objfile): Update.
8946 (set_dwarf2_per_objfile): Remove.
8947 (dwarf2_has_info, dwarf2_get_section_info): Update.
8948 (dwarf2_free_objfile): Remove.
8949 (_initialize_dwarf2_read): Update.
8950
e85e19b4
TT
89512019-05-08 Tom Tromey <tom@tromey.com>
8952
8953 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8954 initializers.
8955 <unsupported_script_warning_printed,
8956 script_not_found_warning_printed>: Now bool.
8957 (auto_load_pspace_data): Change type.
8958 (~auto_load_pspace_info): Rename from
8959 auto_load_pspace_data_cleanup.
8960 (get_auto_load_pspace_data, init_loaded_scripts_info)
8961 (clear_section_scripts, maybe_print_unsupported_script_warning)
8962 (maybe_print_script_not_found_warning, _initialize_auto_load):
8963 Update.
8964
f6aa7436
TT
89652019-05-08 Tom Tromey <tom@tromey.com>
8966
8967 * objfiles.c (objfile_pspace_info): Add destructor and
8968 initializers.
8969 (objfiles_pspace_data): Change type.
8970 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8971 (get_objfile_pspace_data): Update.
8972 (objfiles_bfd_data): Change type.
8973 (get_objfile_bfd_data): Update.
8974 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8975
6ae614f6
TT
89762019-05-08 Tom Tromey <tom@tromey.com>
8977
8978 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8979 Change type.
8980 (get_catch_syscall_inferior_data): Update.
8981 (catch_syscall_inferior_data_cleanup): Remove.
8982 (_initialize_break_catch_syscall): Update.
8983
6509b8eb
TT
89842019-05-08 Tom Tromey <tom@tromey.com>
8985
8986 * inflow.c (struct terminal_info): Add destructor and
8987 initializers.
8988 (inflow_inferior_data): Change type.
8989 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8990 (get_inflow_inferior_data, inflow_inferior_exit)
8991 (swap_terminal_info, _initialize_inflow): Update.
8992
35632941
TT
89932019-05-08 Tom Tromey <tom@tromey.com>
8994
8995 * target-dcache.c (target_dcache_cleanup): Remove.
8996 (target_dcache_aspace_key): Change type.
8997 (target_dcache_init_p, target_dcache_invalidate)
8998 (target_dcache_get, target_dcache_get_or_init)
8999 (_initialize_target_dcache): Update.
9000 * dcache.h (struct dcache_deleter): New.
9001
3017b94d
TT
90022019-05-08 Tom Tromey <tom@tromey.com>
9003
9004 * symtab.c (struct symbol_cache): Add destructor and
9005 initializers.
9006 (symbol_cache_key): Move. Change type.
9007 (make_symbol_cache, free_symbol_cache): Remove.
9008 (get_symbol_cache): Update.
9009 (symbol_cache_cleanup): Remove.
9010 (ALL_PSPACES, symbol_cache_flush)
9011 (maintenance_print_symbol_cache)
9012 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9013 Update.
9014
a32ad8c5
TT
90152019-05-08 Tom Tromey <tom@tromey.com>
9016
9017 * symtab.c (struct main_info): Add destructor and initializers.
9018 (main_progspace_key): Move. Change type.
9019 (get_main_info): Update.
9020 (main_info_cleanup): Remove.
9021 (_initialize_symtab): Update.
9022
5f6e90a0
TT
90232019-05-08 Tom Tromey <tom@tromey.com>
9024
9025 * registry.h (DECLARE_REGISTRY): Define the _key class.
9026
1bd0c6e4
AB
90272019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9028
9029 * NEWS: Merge two 'New commands' sections.
9030
2228ef77
XR
90312019-05-08 Joel Brobecker <brobecker@adacore.com>
9032
9033 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9034 parameter and use Ada language definition instead.
9035 (ada_val_print_ptr): Remove unused language parameter.
9036 (ada_val_print_num): Remove language parameter and use Ada language
9037 definition instead.
9038 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9039 parameter.
9040 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9041 parameter and use Ada language definition instead.
9042 (ada_val_print_1): Update all ada_val_print_xxx calls.
9043 Remove language parameter.
9044 (ada_val_print): Update ada_val_print_1 call.
9045
60fcc1c3
TT
90462019-05-08 Tom Tromey <tromey@adacore.com>
9047
9048 * remote.c (remote_hw_watchpoint_limit)
9049 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9050 Now static.
9051
ed2b7c17
TT
90522019-05-08 Tom Tromey <tromey@adacore.com>
9053
9054 * maint.c (_initialize_maint_cmds): Move initialization code to
9055 remote.c.
9056 (watchdog, show_watchdog): Move to remote.c.
9057 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9058 "watchdog" static.
9059 (_initialize_remote): Move initialization code from maint.c.
9060 * defs.h (watchdog): Don't declare.
9061
b0be6c91
TT
90622019-05-08 Tom Tromey <tromey@adacore.com>
9063
9064 * tui/tui-interp.c: Include main.h.
9065 * interps.c: Include main.h.
9066 * main.h (interpreter_p): Declare.
9067 * defs.h (interpreter_p): Don't declare.
9068
587ee17b
TT
90692019-05-08 Tom Tromey <tromey@adacore.com>
9070
9071 * dwarf2loc.c: Include dwarf2read.h.
9072 * defs.h (read_unsigned_leb128): Don't declare.
9073 * dwarf2read.h (read_unsigned_leb128): Declare.
9074
ca1df239
TT
90752019-05-08 Tom Tromey <tromey@adacore.com>
9076
9077 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9078 method.
9079
99f20f08
TT
90802019-05-08 Tom Tromey <tromey@adacore.com>
9081
9082 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9083 when no wrap column is set.
9084
80e55b13
TT
90852019-05-08 Tom Tromey <tromey@adacore.com>
9086
9087 * c-lang.c (c_get_string): Handle non-C-style arrays.
9088
9d3421af
TT
90892019-05-08 Tom Tromey <tromey@adacore.com>
9090
9091 * typeprint.c (print_offset_data::update): Print the bit offset,
9092 not the number of bits remaining.
9093
844333e2
TT
90942019-05-08 Tom Tromey <tromey@adacore.com>
9095
9096 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9097 padding at end of comment.
9098
988915ee
TT
90992019-05-08 Tom Tromey <tromey@adacore.com>
9100
9101 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9102 Compare main types.
9103
26bfd823
TT
91042019-05-06 Tom Tromey <tom@tromey.com>
9105
9106 * common/scoped_mmap.c: Include common-defs.h.
9107 * common/scoped_mmap.h: Don't include config.h.
9108
89055eaa
TT
91092019-05-04 Tom Tromey <tom@tromey.com>
9110
9111 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9112 (struct aarch64_call_info): Add initializers.
9113 <si>: Now a std::vector.
9114 (pass_on_stack, aarch64_push_dummy_call): Update.
9115
5da01df5
TT
91162019-05-04 Simon Marchi <simon.marchi@efficios.com>
9117 Tom Tromey <tom@tromey.com>
9118
9119 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9120 (ppc_threads): Now a std::vector. Now static.
9121 (hwdebug_find_thread_points_by_tid)
9122 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9123 Update.
9124
fbdf05a1
TT
91252019-05-04 Tom Tromey <tom@tromey.com>
9126
9127 * arc-tdep.c (arc_tdesc_init): Return bool.
9128
06d16ec9
TT
91292019-05-04 Tom Tromey <tom@tromey.com>
9130
9131 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9132 Use gdb_assert_not_reached.
9133
9c056022
TT
91342019-05-04 Tom Tromey <tom@tromey.com>
9135
9136 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9137 "false".
9138
fa9c2a59
TT
91392019-05-04 Tom Tromey <tom@tromey.com>
9140
9141 * arc-tdep.c (arc_tdesc_init): Use bool.
9142
e2eb806a
TT
91432019-05-04 Tom Tromey <tom@tromey.com>
9144
9145 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9146
6fe87677
TT
91472019-05-04 Tom Tromey <tom@tromey.com>
9148
9149 * cli/cli-cmds.c (valid_command_p): Return bool.
9150
7f008c9e
TT
91512019-05-04 Tom Tromey <tom@tromey.com>
9152
9153 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9154 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9155
b6484282
RT
91562019-05-04 Raul Tambre <raul@tambre.ee>
9157
9158 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9159 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9160 operator for comparison.
9161
af97b416
TT
91622019-05-04 Tom Tromey <tom@tromey.com>
9163
9164 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9165 (lookup_partial_symbol, print_partial_symbols)
9166 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9167 (psymbol_compare): Update.
9168 (add_psymbol_to_bcache): Clear the entire psymbol.
9169 (maintenance_check_psymtabs): Update.
9170 * psympriv.h (struct partial_symbol): Don't derive from
9171 general_symbol_info.
9172 <obj_section, unrelocated_address, address,
9173 set_unrelocated_address>: Update.
9174 <ginfo>: New member.
9175 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9176 (debug_names::write_psymbols): Update.
9177
9d6d4be8
TV
91782019-05-04 Tom de Vries <tdevries@suse.de>
9179
9180 * contrib/cc-with-tweaks.sh: Support -n arg.
9181
66452beb
PW
91822019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9183
9184 * corelow.c (core_target::detach): Ensure frame cache and
9185 register caches are cleared.
9186 inferior.c (exit_inferior_1): Likewise.
9187
bde09ab7
TT
91882019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9189 Tom Tromey <tom@tromey.com>
9190
9191 * dictionary.c (collate_pending_symbols_by_language): Remove
9192 "struct" from foreach.
9193 * symtab.c (lookup_global_symbol_from_objfile)
9194 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9195 foreach.
9196 * ser-tcp.c (net_open): Remove "struct" from foreach.
9197 * objfiles.c (objfile_relocate, objfile_rebase)
9198 (objfile_has_symbols): Remove "struct" from foreach.
9199 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9200 from foreach.
9201 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9202 foreach.
9203 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9204 "struct" from foreach.
9205 * ada-lang.c (create_excep_cond_exprs)
9206 (ada_exception_catchpoint_cond_string): Remove "struct" from
9207 foreach.
9208
222a8d25
TT
92092019-05-03 Tom Tromey <tromey@adacore.com>
9210
9211 * ada-exp.y (convert_char_literal): Check suffix of each
9212 enumerator.
9213
fcd60b84
DP
92142019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9215
9216 PR ada/21406:
9217 * ada-exp.y (yywrap): Don't define.
9218 * ada-lex.l (%option): Add noyywrap
9219 (yywrap): Remove.
9220
5f2459c2
EZ
92212019-05-03 Eli Zaretskii <eliz@gnu.org>
9222
353ea2d1
EZ
9223 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9224 _WIN32_WINNT to the XP level, unless already defined to a higher
9225 level.
9226
9227 * unittests/parse-connection-spec-selftests.c:
9228 * ser-tcp.c:
9229 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9230 override.
9231
5f2459c2
EZ
9232 * symfile.c (find_separate_debug_file): Remove colon from the
9233 drive spec of DOS/Windows file names of the target, so that the
9234 file name produced from DEBUGDIR and the target's directory will
9235 be valid on DOS/Windows systems.
9236
80062eb9
AB
92372019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9238
9239 * rust-lang.c (val_print_struct): Handle printing structures
9240 containing strings.
9241
b8c05e85
TT
92422019-05-02 Tom Tromey <tromey@adacore.com>
9243
9244 * valarith.c (_initialize_valarith): Remove.
9245
4504bbde
TT
92462019-05-01 Tom Tromey <tromey@adacore.com>
9247
9248 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9249 bitfields.
9250
d48e62f4
TT
92512019-05-01 Tom Tromey <tromey@adacore.com>
9252
9253 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9254 for big-endian copies.
9255
15f18d14
AT
92562019-04-30 Ali Tamur <tamur@google.com>
9257 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9258 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9259 (read_3_bytes): New function.
9260
ab4ee614
JB
92612019-04-30 Joel Brobecker <brobecker@adacore.com>
9262
9263 * windows-nat.c (main_thread_id): Delete.
9264 (handle_output_debug_string): Replace main_thread_id by
9265 current_event.dwThreadId.
9266 (fake_create_process): Likewise.
9267 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9268 Do not set main_thread_id.
9269 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9270 current_event.dwThreadId.
9271 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9272
8ed5b76e
JB
92732019-04-30 Joel Brobecker <brobecker@adacore.com>
9274
9275 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9276 Use current_event.dwThreadId instead of main_thread_id.
9277
2ff0a947
TT
92782019-04-30 Tom Tromey <tromey@adacore.com>
9279
9280 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9281 (create_excep_cond_exprs): Iterate over program spaces.
9282 (ada_exception_catchpoint_cond_string): Examine all minimal
9283 symbols for exception types.
9284
a776957c
TT
92852019-04-30 Tom Tromey <tromey@adacore.com>
9286
9287 PR c++/24470:
9288 * dwarf2read.c (process_structure_scope): Handle case where type
9289 has template parameters but no symbol was created.
9290
bc68014d
AB
92912019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9292 Chris January <chris.january@arm.com>
9293
9294 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9295 qualifier.
9296 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9297
f1fdc960
AB
92982019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9299
9300 * f-typeprint.c (f_print_type): Update rules for printing
9301 whitespace.
9302 (f_type_print_varspec_suffix): Likewise.
9303
bf7a4de1
AB
93042019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9305 Chris January <chris.january@arm.com>
9306
9307 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9308 function arguments.
9309
bbe75b9d
AB
93102019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9311
9312 * f-lang.c (build_fortran_types): Change name of void type to
9313 lower case.
9314 * f-typeprint.c (f_type_print_base): Print the name of the void
9315 type, rather than a fixed string.
9316 * f-valprint.c (f_decorations): Use lower case void string.
9317
1db455a7
AB
93182019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9319 Chris January <chris.january@arm.com>
9320
9321 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9322 types for Fortran.
9323
b6d03bb2
AB
93242019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9325 Chris January <chris.january@arm.com>
9326 David Lecomber <david.lecomber@arm.com>
9327
9328 * f-exp.y (BINOP_INTRINSIC): New token.
9329 (exp): New parser rule handling BINOP_INTRINSIC.
9330 (f77_keywords): Add new builtin procedures.
9331 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9332 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9333 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9334 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9335 (print_unop_subexp_f): New function.
9336 (print_binop_subexp_f): New function.
9337 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9338 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9339 (dump_subexp_body_f): Likewise.
9340 (operator_check_f): Likewise.
9341 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9342 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9343
83228e93
AB
93442019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9345
9346 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9347 UNOP_KIND.
9348 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9349 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9350 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9351 (operator_length_f): New fuction.
9352 (print_subexp_f): New function.
9353 (op_name_f): New function.
9354 (dump_subexp_body_f): New function.
9355 (operator_check_f): New function.
9356 (exp_descriptor_f): Replace standard expression handling functions
9357 with new functions.
9358 * gdb/fortran-operator.def: New file.
9359 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9360 * gdb/std-operator.def: Remove UNOP_KIND.
9361
6fdcd7cc
AB
93622019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9363
9364 * std-operator.def: Remove unbalanced, stray double quote
9365 character.
9366
2e62ab40
AB
93672019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9368 Chris January <chris.january@arm.com>
9369 Daniel Everett <daniel.everett@arm.com>
9370 Nick Forrington <nick.forrington@arm.com>
9371 Richard Bunt <richard.bunt@arm.com>
9372
9373 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9374 of depth when printing anonymous structs or unions.
9375 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9376 Don't print either the top-level value, or the children if the
9377 max-depth is exceeded.
9378 (ppscm_print_children): When printing the key of a map, allow one
9379 extra level of depth.
9380 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9381 print either the top-level value, or the children if the max-depth
9382 is exceeded.
9383 (print_children): When printing the key of a map, allow one extra
9384 level of depth.
9385 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9386 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9387 (user_print_options): Initialise max_depth field.
9388 (val_print_scalar_or_string_type_p): New function.
9389 (val_print): Check to see if the max depth has been reached.
9390 (val_print_check_max_depth): Define new function.
9391 (show_print_max_depth): New function.
9392 (_initialize_valprint): Add 'print max-depth' option.
9393 * valprint.h (struct value_print_options) <max_depth>: New field.
9394 (val_print_check_max_depth): Declare new function.
9395 * NEWS: Document new feature.
9396
4be290b2
AB
93972019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9398
9399 * ada-lang.c (ada_language_defn): Initialise new field.
9400 * c-lang.c (c_is_string_type_p): New function.
9401 (c_language_defn): Initialise new field.
9402 (cplus_language_defn): Initialise new field.
9403 (asm_language_defn): Initialise new field.
9404 (minimal_language_defn): Initialise new field.
9405 * c-lang.h (c_is_string_type_p): Declare new function.
9406 * d-lang.c (d_language_defn): Initialise new field.
9407 * f-lang.c (f_is_string_type_p): New function.
9408 (f_language_defn): Initialise new field.
9409 * go-lang.c (go_is_string_type_p): New function.
9410 (go_language_defn): Initialise new field.
9411 * language.c (default_is_string_type_p): New function.
9412 (unknown_language_defn): Initialise new field.
9413 (auto_language_defn): Initialise new field.
9414 * language.h (struct language_defn) <la_is_string_type_p>: New
9415 member variable.
9416 (default_is_string_type_p): Declare new function.
9417 * m2-lang.c (m2_language_defn): Initialise new field.
9418 * objc-lang.c (objc_language_defn): Initialise new field.
9419 * opencl-lang.c (opencl_language_defn): Initialise new field.
9420 * p-lang.c (pascal_is_string_type_p): New function.
9421 (pascal_language_defn): Initialise new field.
9422 * rust-lang.c (rust_is_string_type_p): New function.
9423 (rust_language_defn): Initialise new field.
9424
721b08c6
AB
94252019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9426
9427 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9428 New field.
9429 * ada-lang.c (ada_language_defn): Initialise new field.
9430 * c-lang.c (c_language_defn): Likewise.
9431 (cplus_language_defn): Likewise.
9432 (asm_language_defn): Likewise.
9433 (minimal_language_defn): Likewise.
9434 * d-lang.c (d_language_defn): Likewise.
9435 * f-lang.c (f_language_defn): Likewise.
9436 * go-lang.c (go_language_defn): Likewise.
9437 * language.c (unknown_language_defn): Likewise.
9438 (auto_language_defn): Likewise.
9439 * m2-lang.c (m2_language_defn): Likewise.
9440 * objc-lang.c (objc_language_defn): Likewise.
9441 * opencl-lang.c (opencl_language_defn): Likewise.
9442 * p-lang.c (pascal_language_defn): Likewise.
9443 * rust-lang.c (rust_language_defn): Likewise.
9444
fc913e53
AB
94452019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9446
9447 * ada-lang.c (ada_is_character_type): Change return type to bool.
9448 (ada_is_string_type): Likewise.
9449 * ada-lang.h (ada_is_character_type): Update declaration
9450 (ada_is_string_type): Likewise.
9451
fa731fa0
PW
94522019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9453
9454 Support style in 'frame|thread apply'
9455
9456 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9457 * record.c (record_start, record_stop): Update callers of
9458 execute_command_to_string with false.
9459 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9460 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9461 methods.
9462 (class string_file): New constructor with term_out parameter.
9463 Override methods term_out and can_emit_style_escape. New member
9464 term_out.
9465 (class stdio_file): Override can_emit_style_escape.
9466 (class tee_file): Override term_out and can_emit_style_escape.
9467 * utils.h (can_emit_style_escape): Remove.
9468 * utils.c (can_emit_style_escape): Likewise.
9469 Update all callers of can_emit_style_escape (SOMESTREAM) to
9470 SOMESTREAM->can_emit_style_escape.
9471 * source-cache.c (source_cache::get_source_lines): Likewise.
9472 * stack.c (frame_apply_command_count): Call execute_command_to_string
9473 passing the term_out characteristic of the current gdb_stdout.
9474 * thread.c (thr_try_catch_cmd): Likewise.
9475 * top.c (execute_command_to_string): pass term_out parameter
9476 to construct the string_file for the command output.
9477 * ui-file.c (term_cli_styling): New function (most code moved
9478 from utils.c can_emit_style_escape).
9479 (string_file::string_file, string_file::can_emit_style_escape,
9480 stdio_file::can_emit_style_escape, tee_file::term_out,
9481 tee_file::can_emit_style_escape): New functions.
9482
136afab8
PW
94832019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9484
9485 * NEWS: Mention the new set|show may-call-functions.
9486 * infcall.c (may_call_functions_p): New variable.
9487 (show_may_call_functions_p): New function.
9488 (call_function_by_hand_dummy): Throws an error if not
9489 may-call-functions.
9490 (_initialize_infcall): Call add_setshow_boolean_cmd for
9491 may-call-functions.
9492
725cbb63
KS
94932019-04-25 Keith Seitz <keiths@redhat.com>
9494
9495 PR c++/24367
9496 * cp-support.c (inspect_type): Don't attempt substitutions
9497 of symbol with the same name.
9498
3d1cbb78
TT
94992019-04-25 Tom Tromey <tromey@adacore.com>
9500
9501 PR gdb/24475:
9502 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9503 static.
9504
94aeb44b
TT
95052019-04-25 Tom Tromey <tromey@adacore.com>
9506
9507 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9508 rvalue reference.
9509 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9510 (gdb_xml_parser::parse): Use std::move.
9511 * python/python-internal.h (gdbpy_convert_exception): Take a const
9512 reference.
9513 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9514 std::move.
9515 * python/py-utils.c (gdbpy_convert_exception): Take a const
9516 reference.
9517 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9518 Use std::move.
9519 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9520 Use std::move.
9521 * mi/mi-main.c (mi_print_exception): Take a const reference.
9522 * main.c (handle_command_errors): Take a const reference.
9523 * linespec.c (parse_linespec): Use std::move.
9524 * infcall.c (run_inferior_call): Use std::move.
9525 (call_function_by_hand_dummy): Use std::move.
9526 * exec.c (try_open_exec_file): Use std::move.
9527 * exceptions.h (exception_print, exception_fprintf)
9528 (exception_print_same): Update.
9529 * exceptions.c (print_exception, exception_print)
9530 (exception_fprintf, exception_print_same): Change parameters to
9531 const reference.
9532 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9533 * common/new-op.c: Use std::move.
9534 * common/common-exceptions.h (struct gdb_exception): Add move
9535 constructor.
9536 (struct gdb_exception_error, struct gdb_exception_quit, struct
9537 gdb_quit_bad_alloc): Change constructor to move constructor.
9538 (throw_exception): Change parameter to rvalue reference.
9539 * common/common-exceptions.c (throw_exception): Take rvalue
9540 reference.
9541 * cli/cli-interp.c (safe_execute_command): Use std::move.
9542 * breakpoint.c (insert_bp_location, location_to_sals): Use
9543 std::move.
9544
680d7fd5
TT
95452019-04-25 Tom Tromey <tromey@adacore.com>
9546
9547 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9548 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9549 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9550 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9551 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9552 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9553 guile/scm-value.c: Use unpack.
9554 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9555 gdbscm_gdb_exception.
9556 (gdbscm_throw_gdb_exception): Likewise.
9557 (struct gdbscm_gdb_exception): New.
9558 (unpack): New function.
9559 (gdbscm_wrap): Use unpack.
9560
c6fdd8b2
TT
95612019-04-25 Tom Tromey <tromey@adacore.com>
9562
9563 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9564 (gdb_rl_callback_handler): Use std::move.
9565 * common/common-exceptions.h (struct gdb_exception): Add move
9566 assignment operator.
9567 (throw_exception_sjlj): Change "exception" to const reference.
9568 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9569 (throw_exception_sjlj): Change "exception" to const reference.
9570
cc06b668
TT
95712019-04-25 Tom Tromey <tromey@adacore.com>
9572
9573 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9574 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9575 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9576 Update.
9577 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9578 Update.
9579 * mi/mi-interp.c (mi_interp::exec): Update.
9580 * linespec.c (parse_linespec): Update.
9581 * infcall.c (run_inferior_call): Update.
9582 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9583 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9584 (gdbscm_lookup_global_symbol): Update.
9585 * guile/scm-param.c (gdbscm_parameter_value): Update.
9586 * guile/scm-frame.c (gdbscm_frame_read_register)
9587 (gdbscm_frame_read_var): Update.
9588 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9589 * exec.c (try_open_exec_file): Update.
9590 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9591 (gdb_rl_callback_handler): Update.
9592 * common/common-exceptions.h (exception_none): Don't declare.
9593 * common/common-exceptions.c (exception_none): Don't define.
9594 (struct catcher) <exception>: Update.
9595 * cli/cli-interp.c (safe_execute_command): Update.
9596 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9597
cf532bd1
AT
95982019-04-25 Ali Tamur <tamur@google.com>
9599
9600 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9601 (read_attribute_value): Likewise.
9602 (dwarf2_read_addr_index): Update comment.
9603 (read_str_index): Add DW_FORM_strx.
9604 (dwarf2_string_attr): Likewise.
9605 (dwarf2_const_value_attr): Likewise.
9606 (dump_die_shallow): Likewise.
9607 (dwarf2_fetch_constant_bytes): Likewise.
9608 (skip_form_bytes): Likewise.
9609 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9610
82433e3e
SDJ
96112019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9612
9613 PR corefiles/11608
9614 PR corefiles/18187
9615 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9616 OFFSET. Verify if current mapping contains an ELF header.
9617 (linux_find_memory_regions_full): Adjust call to
9618 dump_mapping_p.
9619
723adb65
SL
96202019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9621 Kang Li <kanglictf@gmail.com>
9622
9623 PR gdb/21600
9624
9625 * dwarf2-frame.c (read_initial_length): Be consistent about using
9626 unsigned representation of length.
9627 (decode_frame_entry_1): Likewise. Check for wraparound of
9628 end pointer as well as buffer overflow.
9629
596179f7
SDJ
96302019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9631
9632 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9633 "vq".
9634
a59240a4
TT
96352019-04-24 Tom Tromey <tromey@adacore.com>
9636
9637 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9638
f872fdbb
AB
96392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9640
9641 * s12z-tdep.c (s12z_unwind_pc): Delete.
9642 (s12z_unwind_sp): Delete.
9643 (s12z_gdbarch_init): Don't register deleted functions with
9644 gdbarch.
9645
b614e6f3
AB
96462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9647
9648 * rl78-tdep.c (rl78_unwind_sp): Delete.
9649 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9650
14faed38
AB
96512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9652
9653 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9654 (xstormy16_unwind_pc): Delete.
9655 (xstormy16_dummy_id): Delete.
9656 (xstormy16_gdbarch_init): Don't register deleted functions with
9657 gdbarch.
9658
541aad8a
AB
96592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9660
9661 * vax-tdep.c (vax_unwind_pc): Delete.
9662 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9663
29222070
AB
96642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9665
9666 * v850-tdep.c (v850_unwind_sp): Delete.
9667 (v850_unwind_pc): Delete.
9668 (v850_dummy_id): Delete.
9669 (v850_gdbarch_init): Don't register deleted functions with
9670 gdbarch.
9671
0f534d76
AB
96722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9673
9674 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9675 (tilegx_unwind_pc): Delete.
9676 (tilegx_unwind_dummy_id): Delete.
9677 (tilegx_gdbarch_init): Don't register deleted functions with
9678 gdbarch.
9679
1ba7b7f9
AB
96802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9681
9682 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9683 (tic6x_dummy_id): Delete.
9684 (tic6x_gdbarch_init): Don't register deleted functions with
9685 gdbarch.
9686
d31f262c
AB
96872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9688
9689 * sparc-tdep.c (sparc_unwind_pc): Delete.
9690 (sparc32_gdbarch_init): Don't register deleted function with
9691 gdbarch.
9692
6d14d64d
AB
96932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9694
9695 * sh-tdep.c (sh_unwind_sp): Delete.
9696 (sh_unwind_pc): Delete.
9697 (sh_dummy_id): Delete.
9698 (sh_gdbarch_init): Don't register deleted functions with
9699 gdbarch.
9700
a40dde9d
AB
97012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9702
9703 * score-tdep.c (score_unwind_sp): Delete.
9704 (score_unwind_pc): Delete.
9705 (score_dummy_id): Delete.
9706 (score_gdbarch_init): Don't register deleted functions with
9707 gdbarch.
9708
47c47d69
AB
97092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9710
9711 * rx-tdep.c (rx_unwind_pc): Delete.
9712 (rx_unwind_sp): Delete.
9713 (rx_dummy_id): Delete.
9714 (rx_gdbarch_init): Don't register deleted functions with
9715 gdbarch. Update comment.
9716
833a4480
AB
97172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9718
9719 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9720 (rs6000_dummy_id): Delete.
9721 (rs6000_gdbarch_init): Don't register deleted functions with
9722 gdbarch.
9723
3f2cef49
AB
97242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9725
9726 * or1k-tdep.c (or1k_dummy_id): Delete.
9727 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9728
96acf884
AB
97292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9730
9731 * nios2-tdep.c (nios2_dummy_id): Delete.
9732 (nios2_unwind_sp): Delete.
9733 (nios2_gdbarch_init): Don't register deleted functions with
9734 gdbarch.
9735
ca0ab0aa
AB
97362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9737
9738 * nds32-tdep.c (nds32_dummy_id): Delete.
9739 (nds32_unwind_pc): Delete.
9740 (nds32_unwind_sp): Delete.
9741 (nds32_gdbarch_init): Don't register deleted functions with
9742 gdbarch.
9743
c8259044
AB
97442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9745
9746 * msp430-tdep.c (msp430_unwind_pc): Delete.
9747 (msp430_unwind_sp): Delete.
9748 (msp430_dummy_id): Delete.
9749 (msp430_gdbarch_init): Don't register deleted functions with
9750 gdbarch.
9751
27f113c8
AB
97522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9753
9754 * moxie-tdep.c (moxie_unwind_sp): Delete.
9755 (moxie_unwind_pc): Delete.
9756 (moxie_dummy_id): Delete.
9757 (moxie_gdbarch_init): Don't register deleted functions with
9758 gdbarch.
9759
aee6c3cd
AB
97602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9761
9762 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9763 (mn10300_unwind_pc): Delete.
9764 (mn10300_unwind_sp): Delete.
9765 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9766 mn10300_unwind_sp.
9767 (mn10300_frame_unwind_init): Don't register deleted functions with
9768 gdbarch.
9769
8e2b5aea
AB
97702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9771
9772 * mep-tdep.c (mep_unwind_pc): Delete.
9773 (mep_unwind_sp): Delete.
9774 (mep_dummy_id): Delete.
9775 (mep_gdbarch_init): Don't register deleted functions with
9776 gdbarch.
9777
43cf3ede
AB
97782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9779
9780 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9781 (m68hc11_unwind_sp): Delete.
9782 (m68hc11_gdbarch_init): Don't register deleted functions with
9783 gdbarch.
9784
5e79b7bb
AB
97852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9786
9787 * m32r-tdep.c (m32r_unwind_sp): Delete.
9788 (m32r_unwind_pc): Delete.
9789 (m32r_dummy_id): Delete.
9790 (m32r_gdbarch_init): Don't register deleted functions with
9791 gdbarch.
9792
89b268d8
AB
97932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9794
9795 * m32c-tdep.c (m32c_unwind_pc): Delete.
9796 (m32c_unwind_sp): Delete.
9797 (m32c_dummy_id): Delete.
9798 (m32c_gdbarch_init): Don't register deleted functions with
9799 gdbarch.
9800
946c28d2
AB
98012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9802
9803 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9804 (lm32_unwind_pc): Delete.
9805 (lm32_dummy_id): Delete.
9806 (lm32_gdbarch_init): Don't register deleted functions with
9807 gdbarch.
9808
bf12844a
AB
98092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9810
9811 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9812 (iq2000_unwind_pc): Delete.
9813 (iq2000_dummy_id): Delete.
9814 (iq2000_gdbarch_init): Don't register deleted functions with
9815 gdbarch.
9816
ecbc06d2
AB
98172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9818
9819 * nds32-tdep.c (nds32_type_align): Delete.
9820 (nds32_push_dummy_call): Use type_align instead.
9821
030197b4
AB
98222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9823
9824 * arm-tdep.c (arm_type_align): Only handle vector override case.
9825 (arm_push_dummy_call): Use type_align.
9826 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9827
b907456c
AB
98282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9829
9830 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9831 case.
9832 (pass_on_stack): Use type_align.
9833 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9834 function.
9835
9e97ba43
TT
98362019-04-23 Tom Tromey <tromey@adacore.com>
9837
9838 * dwarf2read.c (line_header::file_name_at): Remove unused
9839 overload.
9840
6892f601
TV
98412019-04-23 Tom de Vries <tdevries@suse.de>
9842
9843 PR gdb/24438
9844 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9845 invocation.
9846
336d760d
AT
9847
98482019-03-27 Ali Tamur <tamur@google.com>
9849
9850 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9851 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9852 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9853 (dwarf_expr_context::get_addr_index): Likewise
9854 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9855 (symbol_needs_eval_context::get_addr_index): Likewise
9856 (disassemble_dwarf_expression): Add DW_OP_addrx
9857 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9858 (read_cutu_die_from_dwo): Update comment
9859 (skip_one_die): Add DW_FORM_addrx
9860 (read_attribute_value): Likewise
9861 (var_decode_location): Add DW_OP_addrx
9862 (dwarf2_const_value_attr): Add DW_FORM_addrx
9863 (dump_die_shallow): Likewise
9864 (dwarf2_fetch_constant_bytes): Likewise
9865 (decode_locdesc): Add DW_OP_addrx
9866 (skip_form_bytes): Add DW_FORM_addrx
9867
ad9d13f8
AT
98682019-04-22 Ali Tamur <tamur@google.com>
9869
9870 * MAINTAINERS (Write After Approval): Add self.
9871
d70cc3ba
SM
98722019-04-22 Simon Marchi <simon.marchi@efficios.com>
9873
9874 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9875 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9876 (open_symbol_file_object): Likewise.
9877 (svr4_default_sos): Add info parameter.
9878 (svr4_read_so_list): Likewise.
9879 (svr4_current_sos_direct): Adjust functions calls to pass down
9880 info.
9881 (svr4_current_sos_1): Add info parameter.
9882 (svr4_current_sos): Call get_svr4_info, pass info down to
9883 svr4_current_sos_1.
9884 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9885 get_svr4_info.
9886 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9887 get_svr4_info.
9888 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9889 to get_svr4_info.
9890 (probes_table_remove_objfile_probes): Likewise.
9891 (register_solib_event_probe): Add info parameter.
9892 (solist_update_incremental): Pass info parameter down to
9893 svr4_read_so_list.
9894 (disable_probes_interface): Add info parameter.
9895 (svr4_handle_solib_event): Pass current_program_space to
9896 get_svr4_info. Adjust disable_probes_interface cleanup.
9897 (svr4_create_probe_breakpoints): Add info parameter, pass it
9898 down to register_solib_event_probe.
9899 (svr4_create_solib_event_breakpoints): Add info parameter,
9900 pass it down to svr4_create_probe_breakpoints.
9901 (enable_break): Pass info down to
9902 svr4_create_solib_event_breakpoints.
9903 (svr4_solib_create_inferior_hook): Pass current_program_space to
9904 get_svr4_info.
9905 (svr4_clear_solib): Likewise.
9906
7905fc35
PA
99072019-04-22 Pedro Alves <palves@redhat.com>
9908
9909 * solib-svr4.c (svr4_free_objfile_observer): New.
9910 (probe_and_action::objfile): New field.
9911 (probes_table_htab_remove_objfile_probes)
9912 (probes_table_remove_objfile_probes): New functions.
9913 (register_solib_event_probe): Add 'objfile' parameter. Store it
9914 in the new probe_and_action. Don't store the probe in 'lookup'.
9915 (svr4_create_probe_breakpoints): Pass objfile to
9916 register_solib_event_probe.
9917 (_initialize_svr4_solib): Register a free_objfile observer.
9918
fb881986
TT
99192019-04-19 Tom Tromey <tom@tromey.com>
9920
9921 * common/queue.h: Remove.
9922
8732db6c
TT
99232019-04-19 Tom Tromey <tom@tromey.com>
9924
9925 * event-loop.c: Don't include "common/queue.h".
9926
97dfbadd
TT
99272019-04-19 Tom Tromey <tom@tromey.com>
9928
9929 * remote.c (remote_target): Use delete.
9930 * remote-notif.h: Include <list>, not "common/queue.h".
9931 (notif_client_p): Remove typedef.
9932 (remote_notif_state): Add constructor, destructor, initializer.
9933 <notif_queue>: Now a std::list.
9934 (remote_notif_state_xfree): Don't declare.
9935 * remote-notif.c (remote_notif_process, handle_notification)
9936 (remote_notif_state_allocate): Update.
9937 (~remote_notif_state): Rename from remote_notif_state_xfree.
9938
cf250e36
TT
99392019-04-19 Tom Tromey <tom@tromey.com>
9940
9941 * symfile.c (reread_symbols): Update.
9942 * objfiles.c (objfile_register_static_link)
9943 (objfile_lookup_static_link): Update
9944 (~objfile) Don't delete static_links.
9945 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9946
61f4b350
TT
99472019-04-19 Tom Tromey <tom@tromey.com>
9948
9949 * type-stack.h (struct type_stack) <insert>: Constify string.
9950 * type-stack.c (type_stack::insert): Constify string.
9951 * gdbtypes.h (lookup_template_type): Update.
9952 (address_space_name_to_int): Update.
9953 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9954 const.
9955 (lookup_template_type): Make name const.
9956 * c-exp.y: Update rules.
9957 (lex_one_token, classify_name, classify_inner_name)
9958 (c_print_token): Update.
9959 * p-exp.y: Update rules.
9960 (yylex): Update.
9961 * f-exp.y: Update rules.
9962 (yylex): Update.
9963 * d-exp.y: Update rules.
9964 (lex_one_token, classify_name, classify_inner_name): Update.
9965 * parse.c (write_dollar_variable, copy_name): Return std::string.
9966 * parser-defs.h (copy_name): Change return type.
9967 * m2-exp.y: Update rules.
9968 (yylex): Update.
9969 * go-exp.y (lex_one_token): Update.
9970 Update rules.
9971 (classify_unsafe_function, classify_packaged_name)
9972 (classify_name, yylex): Update.
9973
189b8c2e
ST
99742019-04-19 Sergei Trofimovich <siarheit@google.com>
9975
9976 * configure.ac: add --enable-source-highlight switch.
9977 * configure: Regenerate.
9978 * top.c (print_gdb_version): plumb --enable-source-highlight
9979 status to "show configuration".
9980
8ecb59f8
TT
99812019-04-19 Tom Tromey <tromey@adacore.com>
9982
9983 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9984 Check ADA_TYPE_P.
9985 (empty_record, ada_template_to_fixed_record_type_1)
9986 (template_to_static_fixed_type)
9987 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9988 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9989 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9990 macros.
9991
62160ec9
TT
99922019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9993
9994 PR symtab/24423:
9995 * source.c (print_source_lines_base): Advance "iter" when a
9996 control character is seen.
9997
f2ae8bc8
PW
99982019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9999
10000 * inferior.h (struct infcall_suspend_state_deleter):
10001 Catch exception in destructor to avoid crash.
10002
d563b953
PW
100032019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10004
10005 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10006 close to the add_com "shell".
10007
dc34c897
TT
100082019-04-18 Tom Tromey <tromey@adacore.com>
10009
10010 * process-stratum-target.h (class process_stratum_target)
10011 <stratum>: Add "final".
10012
a12e5744
TT
100132019-04-17 Tom Tromey <tromey@adacore.com>
10014
10015 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10016 against nullptr before use.
10017
a7e559cc
AH
100182019-04-17 Alan Hayward <alan.hayward@arm.com>
10019
10020 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10021
c01660c6
AB
100222019-04-17 Jim Wilson <jimw@sifive.com>
10023 Andrew Burgess <andrew.burgess@embecosm.com>
10024
10025 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10026 code read might fail, assume 4-byte breakpoint in that case.
10027
4aa866af
LS
100282019-04-15 Leszek Swirski <leszeks@google.com>
10029
10030 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10031 rather than a hand-rolled POD check when checking for forced MEMORY
10032 classification.
10033
48574d91
AH
100342019-04-15 Alan Hayward <alan.hayward@arm.com>
10035
10036 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10037 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10038 function.
10039 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10040 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10041 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10042 declaration.
10043
4da037ef
AH
100442019-04-15 Alan Hayward <alan.hayward@arm.com>
10045
10046 * aarch64-linux-nat.c
10047 (aarch64_linux_nat_target::thread_architecture): Add override.
10048 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10049 each VQ.
10050
ccb8d7e8
AH
100512019-04-15 Alan Hayward <alan.hayward@arm.com>
10052
10053 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10054
35add35e
AB
100552019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10056
10057 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10058 target types of size 96-bits, add some additional comments, and
10059 check that the builtin type we found was the correct size.
10060
51196bbc
EZ
100612019-04-12 Eli Zaretskii <eliz@gnu.org>
10062
10063 * utils.c (prompt_for_continue): Don't restore the styling at the
10064 end, as applied_style has the wrong value. This fixes styling in
10065 long lists of file names that are interrupted by the "Continue?"
10066 prompt.
10067
62253a61
AB
100682019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10069
10070 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10071 * c-lang.c (c_language_defn): Likewise.
10072 (cplus_language_defn): Likewise.
10073 (asm_language_defn): Likewise.
10074 (minimal_language_defn): Likewise.
10075 * d-lang.c (d_language_defn): Likewise.
10076 * f-lang.c (f_language_defn): Likewise.
10077 * go-lang.c (go_language_defn): Likewise.
10078 * language.c (unknown_language_defn): Likewise.
10079 (auto_language_defn): Likewise.
10080 * language.h (struct language_defn): Remove la_magic field.
10081 (LANG_MAGIC): Delete.
10082 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10083 * objc-lang.c (objc_language_defn): Likewise.
10084 * opencl-lang.c (opencl_language_defn): Likewise.
10085 * p-lang.c (pascal_language_defn): Likewise.
10086 * rust-lang.c (rust_language_defn): Likewise.
10087
a9158a86
AB
100882019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10089
10090 * riscv-tdep.c (riscv_type_align): New function.
10091 (riscv_type_alignment): Delete.
10092 (riscv_arg_location): Use 'type_align'.
10093 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10094
41077b66
AB
100952019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10096
10097 * gdbtypes.c (type_align): A struct with no non-static fields also
10098 has alignment of 1.
10099
9f0272f8
AB
101002019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10101
10102 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10103 component to 0.
10104 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10105 member.
10106 (riscv_struct_info::analyse): New implementation using new
10107 analyse_inner member function.
10108 (riscv_struct_info::field_offset): New member function.
10109 (riscv_struct_info::m_offsets): New member variable.
10110 (riscv_struct_info::analyse_inner): New private member function,
10111 takes the old implementation of riscv_struct_info::analyse but
10112 extended to track field offsets.
10113 (riscv_call_arg_struct): Update the struct folding special cases
10114 to handle cases where empty C++ structs, which are non-zero
10115 length, are found.
10116 (riscv_arg_location): Initialise the length of each location, a
10117 non-zero length now indicates the location is in use.
10118 (riscv_push_dummy_call): Allow for the first location having a
10119 non-zero offset when setting up arguments.
10120 (riscv_return_value): Likewise, but for return values.
10121
02cf60c7
TT
101222019-04-11 Tom Tromey <tromey@adacore.com>
10123
10124 * utils.c (internal_vproblem): Make "msg" const.
10125
68811f8f
AH
101262019-04-11 Alan Hayward <alan.hayward@arm.com>
10127
10128 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10129 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10130 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10131 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10132
3f52fdbc
KB
101332019-04-10 Kevin Buettner <kevinb@redhat.com>
10134
10135 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10136 function.
10137 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10138 of amd64_collect_native_gregset.
10139 (amd64_linux_nat_target::store_registers): Likewise.
10140
e9ad22ee
TT
101412019-04-10 Tom Tromey <tom@tromey.com>
10142
10143 * symtab.c (lookup_global_symbol_from_objfile)
10144 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10145 * objfiles.h (class separate_debug_iterator): New.
10146 (class separate_debug_range): New.
10147 (struct objfile) <separate_debug_objfiles>: New method.
10148 (objfile_separate_debug_iterate): Don't declare.
10149 * objfiles.c (separate_debug_iterator::operator++): Rename from
10150 objfile_separate_debug_iterate.
10151 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10152 iterator.
10153 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10154 iterator.
10155
ee371134
TT
101562019-04-10 Tom Tromey <tom@tromey.com>
10157
10158 * symfile.c (reread_symbols): Remove old comment.
10159 * objfiles.c (free_all_objfiles): Fix a typo.
10160
bf227d61
TT
101612019-04-10 Tom Tromey <tom@tromey.com>
10162
10163 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10164 * minsyms.c (lookup_minimal_symbol): Use foreach.
10165 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10166 (lookup_minimal_symbol_solib_trampoline): Likewise.
10167 * symfile.c (reread_symbols): Use foreach.
10168
8dc433a0
TT
101692019-04-09 Ivan Begert <ivanbegert@gmail.com>
10170 Tom Tromey <tromey@adacore.com>
10171
10172 PR rust/24414:
10173 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10174 (rust_lex_int_test): Change "value" to be LONGEST.
10175 (rust_lex_tests): Add test for long integer literal.
10176
9ab8741a
TT
101772019-04-09 Tom Tromey <tromey@adacore.com>
10178
10179 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10180 to bool.
10181 (extended_remote_target::attach): Update.
10182 (remote_target::remote_notice_new_inferior): Update.
10183 (remote_target::add_current_inferior_and_thread): Update.
10184 * inferior.c (exit_inferior_1): Use "false".
10185 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10186
e242fd12
SM
101872019-04-09 Simon Marchi <simon.marchi@efficios.com>
10188
9ca1957f 10189 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10190 the "start" command.
10191
2b0c8b01
KB
101922019-04-08 Kevin Buettner <kevinb@redhat.com>
10193
10194 * python/py-inferior.c (infpy_thread_from_thread_handle):
10195 Adjust comments to reflect renaming of thread_from_thread_handle
10196 to thread_from_handle. Adjust keywords. Fix type error message.
10197 (inferior_object_methods): Add thread_from_handle. Retain
10198 thread_from_thread_handle, but mark it as deprecated.
10199
50a82723
KB
102002019-04-08 Kevin Buettner <kevinb@redhat.com>
10201
10202 * gdbthread.h (find_thread_by_handle): Revise declaration.
10203 * thread.c (find_thread_by_handle): Likewise. Adjust
10204 implementation too.
10205 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10206 support for buffer objects as handles.
10207
cf63b016
KB
102082019-04-08 Kevin Buettner <kevinb@redhat.com>
10209
10210 * python/py-infthread.c (thpy_thread_handle): New function.
10211 (thread_object_methods): Register thpy_thread_handle.
10212
3d6c6204
KB
102132019-04-08 Kevin Buettner <kevinb@redhat.com>
10214
10215 * gdbthread.h (thread_to_thread_handle): Declare.
10216 * thread.c (gdbtypes.h): Include.
10217 (thread_to_thread_handle): New function.
10218
10219 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10220 (target_thread_info_to_thread_handle): Declare.
10221 * target.c (target_thread_info_to_thread_handle): New function.
10222 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10223 * target-delegates.c: Regenerate.
10224
10225 * linux-thread-db.c (class thread_db_target): Add method
10226 thread_info_to_thread_handle.
10227 (thread_db_target::thread_info_to_thread_handle): Define.
10228 * remote.c (class remote_target): Add new method
10229 thread_info_to_thread_handle.
10230 (remote_target::thread_info_to_thread_handle): Define.
10231
56be6ea8
PA
102322019-04-08 Pedro Alves <palves@redhat.com>
10233
10234 * common/common-exceptions.c (throw_exception): Don't create
10235 named object to throw; throw directly.
10236 (throw_it): Likewise. Don't initialize gdb_exception::message
10237 here, with new; pass FMT and AP to the ctor instead.
10238 * common/common-exceptions.h: Include <string>.
10239 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10240 const char *, va_list)): New ctor. Use std::make_shared.
10241 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10242 errors)): Delete.
10243 (gdb_exception_error::gdb_exception_error(enum errors, const char
10244 *, va_list)): New.
10245 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10246 Add assertion.
10247 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10248 errors)): Delete.
10249 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10250 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10251 Add assertion.
10252
eedc3f4f
TT
102532019-04-08 Tom Tromey <tom@tromey.com>
10254
10255 * valops.c (value_rtti_indirect_type): Replace throw_exception
10256 with throw.
10257 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10258 with throw.
10259 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10260 throw.
10261 * target.c (target_translate_tls_address): Replace throw_exception
10262 with throw.
10263 * stack.c (frame_apply_command_count): Replace throw_exception
10264 with throw.
10265 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10266 throw.
10267 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10268 with throw.
10269 * rs6000-tdep.c (rs6000_frame_cache)
10270 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10271 * remote.c: Replace throw_exception with throw.
10272 * record-full.c (record_full_message, record_full_wait_1)
10273 (record_full_restore): Replace throw_exception with throw.
10274 * record-btrace.c:
10275 (get_thread_current_frame_id, record_btrace_start_replaying)
10276 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10277 (cmd_record_btrace_start): Replace throw_exception with throw.
10278 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10279 throw.
10280 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10281 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10282 * linespec.c:
10283 (find_linespec_symbols): Replace throw_exception with throw.
10284 * infrun.c (displaced_step_prepare, resume): Replace
10285 throw_exception with throw.
10286 * infcmd.c (post_create_inferior): Replace throw_exception with
10287 throw.
10288 * inf-loop.c (inferior_event_handler): Replace throw_exception
10289 with throw.
10290 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10291 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10292 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10293 (get_prev_frame_always, get_frame_pc_if_available)
10294 (get_frame_address_in_block_if_available, get_frame_language):
10295 Replace throw_exception with throw.
10296 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10297 throw_exception with throw.
10298 * eval.c (fetch_subexp_value, evaluate_var_value)
10299 (evaluate_funcall, evaluate_subexp_standard): Replace
10300 throw_exception with throw.
10301 * dwarf2loc.c (call_site_find_chain)
10302 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10303 Replace throw_exception with throw.
10304 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10305 with throw.
10306 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10307 throw.
10308 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10309 * completer.c (complete_line_internal): Replace throw_exception
10310 with throw.
10311 * compile/compile-object-run.c (compile_object_run): Replace
10312 throw_exception with throw.
10313 * cli/cli-script.c (process_next_line): Replace throw_exception
10314 with throw.
10315 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10316 (btrace_enable, btrace_maint_update_pt_packets): Replace
10317 throw_exception with throw.
10318 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10319 throw_exception with throw.
10320 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10321 throw_exception with throw.
10322 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10323 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10324 * aarch64-tdep.c (aarch64_make_prologue_cache)
10325 (aarch64_make_stub_cache): Replace throw_exception with throw.
10326
26003a20
TT
103272019-04-08 Tom Tromey <tom@tromey.com>
10328
10329 * common/common-exceptions.c (throw_exception): Rename from
10330 throw_exception_cxx. Remove old copy. Make argument const.
10331 (throw_it): Create and throw exception objects directly.
10332 * common/common-exceptions.h (throw_exception): Make argument
10333 const.
10334 (struct gdb_exception_error): Add constructor.
10335 (struct gdb_exception_quit): Add constructor.
10336
d272eb37
TT
103372019-04-08 Tom Tromey <tom@tromey.com>
10338
10339 * common/common-exceptions.h (exception_rethrow): Don't declare.
10340 (TRY_SJLJ): Update comment.
10341 (TRY, CATCH, END_CATCH): Remove.
10342 * common/common-exceptions.c (exception_rethrow): Remove.
10343
230d2906
TT
103442019-04-08 Tom Tromey <tom@tromey.com>
10345
10346 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10347 Remove.
10348 (gdb_exception_error): Rename from
10349 gdb_exception_RETURN_MASK_ERROR.
10350 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10351 (gdb_quit_bad_alloc): Update.
10352 * aarch64-tdep.c: Update.
10353 * ada-lang.c: Update.
10354 * ada-typeprint.c: Update.
10355 * ada-valprint.c: Update.
10356 * amd64-tdep.c: Update.
10357 * arch-utils.c: Update.
10358 * break-catch-throw.c: Update.
10359 * breakpoint.c: Update.
10360 * btrace.c: Update.
10361 * c-varobj.c: Update.
10362 * cli/cli-cmds.c: Update.
10363 * cli/cli-interp.c: Update.
10364 * cli/cli-script.c: Update.
10365 * common/common-exceptions.c: Update.
10366 * common/new-op.c: Update.
10367 * common/selftest.c: Update.
10368 * compile/compile-c-symbols.c: Update.
10369 * compile/compile-cplus-symbols.c: Update.
10370 * compile/compile-object-load.c: Update.
10371 * compile/compile-object-run.c: Update.
10372 * completer.c: Update.
10373 * corelow.c: Update.
10374 * cp-abi.c: Update.
10375 * cp-support.c: Update.
10376 * cp-valprint.c: Update.
10377 * darwin-nat.c: Update.
10378 * disasm-selftests.c: Update.
10379 * dtrace-probe.c: Update.
10380 * dwarf-index-cache.c: Update.
10381 * dwarf-index-write.c: Update.
10382 * dwarf2-frame-tailcall.c: Update.
10383 * dwarf2-frame.c: Update.
10384 * dwarf2loc.c: Update.
10385 * dwarf2read.c: Update.
10386 * eval.c: Update.
10387 * event-loop.c: Update.
10388 * event-top.c: Update.
10389 * exec.c: Update.
10390 * f-valprint.c: Update.
10391 * fbsd-tdep.c: Update.
10392 * frame-unwind.c: Update.
10393 * frame.c: Update.
10394 * gdbtypes.c: Update.
10395 * gnu-v3-abi.c: Update.
10396 * guile/guile-internal.h: Update.
10397 * guile/scm-block.c: Update.
10398 * guile/scm-breakpoint.c: Update.
10399 * guile/scm-cmd.c: Update.
10400 * guile/scm-disasm.c: Update.
10401 * guile/scm-frame.c: Update.
10402 * guile/scm-lazy-string.c: Update.
10403 * guile/scm-math.c: Update.
10404 * guile/scm-param.c: Update.
10405 * guile/scm-ports.c: Update.
10406 * guile/scm-pretty-print.c: Update.
10407 * guile/scm-symbol.c: Update.
10408 * guile/scm-symtab.c: Update.
10409 * guile/scm-type.c: Update.
10410 * guile/scm-value.c: Update.
10411 * i386-linux-tdep.c: Update.
10412 * i386-tdep.c: Update.
10413 * inf-loop.c: Update.
10414 * infcall.c: Update.
10415 * infcmd.c: Update.
10416 * infrun.c: Update.
10417 * jit.c: Update.
10418 * language.c: Update.
10419 * linespec.c: Update.
10420 * linux-fork.c: Update.
10421 * linux-nat.c: Update.
10422 * linux-tdep.c: Update.
10423 * linux-thread-db.c: Update.
10424 * main.c: Update.
10425 * mi/mi-cmd-break.c: Update.
10426 * mi/mi-cmd-stack.c: Update.
10427 * mi/mi-interp.c: Update.
10428 * mi/mi-main.c: Update.
10429 * objc-lang.c: Update.
10430 * p-valprint.c: Update.
10431 * parse.c: Update.
10432 * ppc-linux-tdep.c: Update.
10433 * printcmd.c: Update.
10434 * python/py-arch.c: Update.
10435 * python/py-breakpoint.c: Update.
10436 * python/py-cmd.c: Update.
10437 * python/py-finishbreakpoint.c: Update.
10438 * python/py-frame.c: Update.
10439 * python/py-framefilter.c: Update.
10440 * python/py-gdb-readline.c: Update.
10441 * python/py-inferior.c: Update.
10442 * python/py-infthread.c: Update.
10443 * python/py-lazy-string.c: Update.
10444 * python/py-linetable.c: Update.
10445 * python/py-objfile.c: Update.
10446 * python/py-param.c: Update.
10447 * python/py-prettyprint.c: Update.
10448 * python/py-progspace.c: Update.
10449 * python/py-record-btrace.c: Update.
10450 * python/py-record.c: Update.
10451 * python/py-symbol.c: Update.
10452 * python/py-type.c: Update.
10453 * python/py-unwind.c: Update.
10454 * python/py-utils.c: Update.
10455 * python/py-value.c: Update.
10456 * python/python.c: Update.
10457 * record-btrace.c: Update.
10458 * record-full.c: Update.
10459 * remote-fileio.c: Update.
10460 * remote.c: Update.
10461 * riscv-tdep.c: Update.
10462 * rs6000-aix-tdep.c: Update.
10463 * rs6000-tdep.c: Update.
10464 * rust-exp.y: Update.
10465 * rust-lang.c: Update.
10466 * s390-tdep.c: Update.
10467 * selftest-arch.c: Update.
10468 * solib-dsbt.c: Update.
10469 * solib-frv.c: Update.
10470 * solib-spu.c: Update.
10471 * solib-svr4.c: Update.
10472 * solib.c: Update.
10473 * sparc64-linux-tdep.c: Update.
10474 * stack.c: Update.
10475 * symfile-mem.c: Update.
10476 * symmisc.c: Update.
10477 * target.c: Update.
10478 * thread.c: Update.
10479 * top.c: Update.
10480 * tracefile-tfile.c: Update.
10481 * tui/tui.c: Update.
10482 * typeprint.c: Update.
10483 * unittests/cli-utils-selftests.c: Update.
10484 * unittests/parse-connection-spec-selftests.c: Update.
10485 * valops.c: Update.
10486 * valprint.c: Update.
10487 * value.c: Update.
10488 * varobj.c: Update.
10489 * windows-nat.c: Update.
10490 * x86-linux-nat.c: Update.
10491 * xml-support.c: Update.
10492
a70b8144
TT
104932019-04-08 Tom Tromey <tom@tromey.com>
10494
10495 * xml-support.c: Use C++ exception handling.
10496 * x86-linux-nat.c: Use C++ exception handling.
10497 * windows-nat.c: Use C++ exception handling.
10498 * varobj.c: Use C++ exception handling.
10499 * value.c: Use C++ exception handling.
10500 * valprint.c: Use C++ exception handling.
10501 * valops.c: Use C++ exception handling.
10502 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10503 handling.
10504 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10505 * typeprint.c: Use C++ exception handling.
10506 * tui/tui.c: Use C++ exception handling.
10507 * tracefile-tfile.c: Use C++ exception handling.
10508 * top.c: Use C++ exception handling.
10509 * thread.c: Use C++ exception handling.
10510 * target.c: Use C++ exception handling.
10511 * symmisc.c: Use C++ exception handling.
10512 * symfile-mem.c: Use C++ exception handling.
10513 * stack.c: Use C++ exception handling.
10514 * sparc64-linux-tdep.c: Use C++ exception handling.
10515 * solib.c: Use C++ exception handling.
10516 * solib-svr4.c: Use C++ exception handling.
10517 * solib-spu.c: Use C++ exception handling.
10518 * solib-frv.c: Use C++ exception handling.
10519 * solib-dsbt.c: Use C++ exception handling.
10520 * selftest-arch.c: Use C++ exception handling.
10521 * s390-tdep.c: Use C++ exception handling.
10522 * rust-lang.c: Use C++ exception handling.
10523 * rust-exp.y: Use C++ exception handling.
10524 * rs6000-tdep.c: Use C++ exception handling.
10525 * rs6000-aix-tdep.c: Use C++ exception handling.
10526 * riscv-tdep.c: Use C++ exception handling.
10527 * remote.c: Use C++ exception handling.
10528 * remote-fileio.c: Use C++ exception handling.
10529 * record-full.c: Use C++ exception handling.
10530 * record-btrace.c: Use C++ exception handling.
10531 * python/python.c: Use C++ exception handling.
10532 * python/py-value.c: Use C++ exception handling.
10533 * python/py-utils.c: Use C++ exception handling.
10534 * python/py-unwind.c: Use C++ exception handling.
10535 * python/py-type.c: Use C++ exception handling.
10536 * python/py-symbol.c: Use C++ exception handling.
10537 * python/py-record.c: Use C++ exception handling.
10538 * python/py-record-btrace.c: Use C++ exception handling.
10539 * python/py-progspace.c: Use C++ exception handling.
10540 * python/py-prettyprint.c: Use C++ exception handling.
10541 * python/py-param.c: Use C++ exception handling.
10542 * python/py-objfile.c: Use C++ exception handling.
10543 * python/py-linetable.c: Use C++ exception handling.
10544 * python/py-lazy-string.c: Use C++ exception handling.
10545 * python/py-infthread.c: Use C++ exception handling.
10546 * python/py-inferior.c: Use C++ exception handling.
10547 * python/py-gdb-readline.c: Use C++ exception handling.
10548 * python/py-framefilter.c: Use C++ exception handling.
10549 * python/py-frame.c: Use C++ exception handling.
10550 * python/py-finishbreakpoint.c: Use C++ exception handling.
10551 * python/py-cmd.c: Use C++ exception handling.
10552 * python/py-breakpoint.c: Use C++ exception handling.
10553 * python/py-arch.c: Use C++ exception handling.
10554 * printcmd.c: Use C++ exception handling.
10555 * ppc-linux-tdep.c: Use C++ exception handling.
10556 * parse.c: Use C++ exception handling.
10557 * p-valprint.c: Use C++ exception handling.
10558 * objc-lang.c: Use C++ exception handling.
10559 * mi/mi-main.c: Use C++ exception handling.
10560 * mi/mi-interp.c: Use C++ exception handling.
10561 * mi/mi-cmd-stack.c: Use C++ exception handling.
10562 * mi/mi-cmd-break.c: Use C++ exception handling.
10563 * main.c: Use C++ exception handling.
10564 * linux-thread-db.c: Use C++ exception handling.
10565 * linux-tdep.c: Use C++ exception handling.
10566 * linux-nat.c: Use C++ exception handling.
10567 * linux-fork.c: Use C++ exception handling.
10568 * linespec.c: Use C++ exception handling.
10569 * language.c: Use C++ exception handling.
10570 * jit.c: Use C++ exception handling.
10571 * infrun.c: Use C++ exception handling.
10572 * infcmd.c: Use C++ exception handling.
10573 * infcall.c: Use C++ exception handling.
10574 * inf-loop.c: Use C++ exception handling.
10575 * i386-tdep.c: Use C++ exception handling.
10576 * i386-linux-tdep.c: Use C++ exception handling.
10577 * guile/scm-value.c: Use C++ exception handling.
10578 * guile/scm-type.c: Use C++ exception handling.
10579 * guile/scm-symtab.c: Use C++ exception handling.
10580 * guile/scm-symbol.c: Use C++ exception handling.
10581 * guile/scm-pretty-print.c: Use C++ exception handling.
10582 * guile/scm-ports.c: Use C++ exception handling.
10583 * guile/scm-param.c: Use C++ exception handling.
10584 * guile/scm-math.c: Use C++ exception handling.
10585 * guile/scm-lazy-string.c: Use C++ exception handling.
10586 * guile/scm-frame.c: Use C++ exception handling.
10587 * guile/scm-disasm.c: Use C++ exception handling.
10588 * guile/scm-cmd.c: Use C++ exception handling.
10589 * guile/scm-breakpoint.c: Use C++ exception handling.
10590 * guile/scm-block.c: Use C++ exception handling.
10591 * guile/guile-internal.h: Use C++ exception handling.
10592 * gnu-v3-abi.c: Use C++ exception handling.
10593 * gdbtypes.c: Use C++ exception handling.
10594 * frame.c: Use C++ exception handling.
10595 * frame-unwind.c: Use C++ exception handling.
10596 * fbsd-tdep.c: Use C++ exception handling.
10597 * f-valprint.c: Use C++ exception handling.
10598 * exec.c: Use C++ exception handling.
10599 * event-top.c: Use C++ exception handling.
10600 * event-loop.c: Use C++ exception handling.
10601 * eval.c: Use C++ exception handling.
10602 * dwarf2read.c: Use C++ exception handling.
10603 * dwarf2loc.c: Use C++ exception handling.
10604 * dwarf2-frame.c: Use C++ exception handling.
10605 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10606 * dwarf-index-write.c: Use C++ exception handling.
10607 * dwarf-index-cache.c: Use C++ exception handling.
10608 * dtrace-probe.c: Use C++ exception handling.
10609 * disasm-selftests.c: Use C++ exception handling.
10610 * darwin-nat.c: Use C++ exception handling.
10611 * cp-valprint.c: Use C++ exception handling.
10612 * cp-support.c: Use C++ exception handling.
10613 * cp-abi.c: Use C++ exception handling.
10614 * corelow.c: Use C++ exception handling.
10615 * completer.c: Use C++ exception handling.
10616 * compile/compile-object-run.c: Use C++ exception handling.
10617 * compile/compile-object-load.c: Use C++ exception handling.
10618 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10619 * compile/compile-c-symbols.c: Use C++ exception handling.
10620 * common/selftest.c: Use C++ exception handling.
10621 * common/new-op.c: Use C++ exception handling.
10622 * cli/cli-script.c: Use C++ exception handling.
10623 * cli/cli-interp.c: Use C++ exception handling.
10624 * cli/cli-cmds.c: Use C++ exception handling.
10625 * c-varobj.c: Use C++ exception handling.
10626 * btrace.c: Use C++ exception handling.
10627 * breakpoint.c: Use C++ exception handling.
10628 * break-catch-throw.c: Use C++ exception handling.
10629 * arch-utils.c: Use C++ exception handling.
10630 * amd64-tdep.c: Use C++ exception handling.
10631 * ada-valprint.c: Use C++ exception handling.
10632 * ada-typeprint.c: Use C++ exception handling.
10633 * ada-lang.c: Use C++ exception handling.
10634 * aarch64-tdep.c: Use C++ exception handling.
10635
3d6e9d23
TT
106362019-04-08 Tom Tromey <tom@tromey.com>
10637
10638 * xml-support.c (gdb_xml_parser::parse): Update.
10639 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10640 * value.c (show_convenience): Update.
10641 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10642 (test_parse_flags_qcs): Update.
10643 * thread.c (thr_try_catch_cmd): Update.
10644 * target.c (target_translate_tls_address): Update.
10645 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10646 (info_frame_command_core, frame_apply_command_count): Update.
10647 * rust-exp.y (rust_lex_exception_test): Update.
10648 * riscv-tdep.c (riscv_print_one_register_info): Update.
10649 * remote.c (remote_target::enable_btrace): Update.
10650 * record-btrace.c (record_btrace_enable_warn): Update.
10651 * python/py-utils.c (gdbpy_convert_exception): Update.
10652 * printcmd.c (do_one_display, print_variable_and_value): Update.
10653 * mi/mi-main.c (mi_print_exception): Update.
10654 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10655 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10656 * linux-nat.c (linux_nat_target::attach): Update.
10657 * linux-fork.c (class scoped_switch_fork_info): Update.
10658 * infrun.c (displaced_step_prepare): Update.
10659 * infcall.c (call_function_by_hand_dummy): Update.
10660 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10661 * gnu-v3-abi.c (print_one_vtable): Update.
10662 * frame.c (get_prev_frame_always): Update.
10663 * f-valprint.c (info_common_command_for_block): Update.
10664 * exec.c (try_open_exec_file): Update.
10665 * exceptions.c (print_exception, exception_print)
10666 (exception_fprintf, exception_print_same): Update.
10667 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10668 * dwarf-index-cache.c (index_cache::store)
10669 (index_cache::lookup_gdb_index): Update.
10670 * darwin-nat.c (maybe_cache_shell): Update.
10671 * cp-valprint.c (cp_print_value_fields): Update.
10672 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10673 (gcc_cplus_symbol_address): Update.
10674 * compile/compile-c-symbols.c (gcc_convert_symbol)
10675 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10676 * common/selftest.c: Update.
10677 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10678 a std::string.
10679 (exception_try_scope_entry, exception_try_scope_exit): Don't
10680 declare.
10681 (struct exception_try_scope): Remove.
10682 (TRY): Don't use exception_try_scope.
10683 (struct gdb_exception): Add constructor, operator=.
10684 <what>: New method.
10685 (struct gdb_exception_RETURN_MASK_ALL)
10686 (struct gdb_exception_RETURN_MASK_ERROR)
10687 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10688 (struct gdb_quit_bad_alloc): Update.
10689 * common/common-exceptions.c (exception_none): Change
10690 initializer.
10691 (struct catcher) <state, exception>: Initialize inline.
10692 <prev>: Remove member.
10693 (current_catcher): Remove.
10694 (catchers): New global.
10695 (exceptions_state_mc_init): Simplify.
10696 (catcher_pop): Remove.
10697 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10698 (try_scope_depth, exception_try_scope_entry)
10699 (exception_try_scope_exit): Remove.
10700 (throw_exception_sjlj): Update.
10701 (exception_messages, exception_messages_size): Remove.
10702 (throw_it): Simplify.
10703 (gdb_exception_sliced_copy): Remove.
10704 (throw_exception_cxx): Update.
10705 * cli/cli-script.c (script_from_file): Update.
10706 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10707 Update.
10708 * ada-valprint.c (ada_val_print): Update.
10709 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10710 (create_excep_cond_exprs): Update.
10711
c5c10118
TT
107122019-04-08 Tom Tromey <tom@tromey.com>
10713
10714 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10715 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10716 (TRY, CATCH, END_CATCH): Remove some definitions.
10717 * common/common-exceptions.c: Don't use GDB_XCPT.
10718 (catcher_list_size): Remove.
10719 (throw_exception, throw_it): Simplify.
10720
4de283e4
TT
107212019-04-05 Tom Tromey <tom@tromey.com>
10722
10723 Revert the header-sorting patch.
10724 * ft32-tdep.c: Revert.
10725 * frv-tdep.c: Revert.
10726 * frv-linux-tdep.c: Revert.
10727 * frame.c: Revert.
10728 * frame-unwind.c: Revert.
10729 * frame-base.c: Revert.
10730 * fork-child.c: Revert.
10731 * findvar.c: Revert.
10732 * findcmd.c: Revert.
10733 * filesystem.c: Revert.
10734 * filename-seen-cache.h: Revert.
10735 * filename-seen-cache.c: Revert.
10736 * fbsd-tdep.c: Revert.
10737 * fbsd-nat.h: Revert.
10738 * fbsd-nat.c: Revert.
10739 * f-valprint.c: Revert.
10740 * f-typeprint.c: Revert.
10741 * f-lang.c: Revert.
10742 * extension.h: Revert.
10743 * extension.c: Revert.
10744 * extension-priv.h: Revert.
10745 * expprint.c: Revert.
10746 * exec.h: Revert.
10747 * exec.c: Revert.
10748 * exceptions.c: Revert.
10749 * event-top.c: Revert.
10750 * event-loop.c: Revert.
10751 * eval.c: Revert.
10752 * elfread.c: Revert.
10753 * dwarf2read.h: Revert.
10754 * dwarf2read.c: Revert.
10755 * dwarf2loc.c: Revert.
10756 * dwarf2expr.h: Revert.
10757 * dwarf2expr.c: Revert.
10758 * dwarf2-frame.c: Revert.
10759 * dwarf2-frame-tailcall.c: Revert.
10760 * dwarf-index-write.h: Revert.
10761 * dwarf-index-write.c: Revert.
10762 * dwarf-index-common.c: Revert.
10763 * dwarf-index-cache.h: Revert.
10764 * dwarf-index-cache.c: Revert.
10765 * dummy-frame.c: Revert.
10766 * dtrace-probe.c: Revert.
10767 * disasm.h: Revert.
10768 * disasm.c: Revert.
10769 * disasm-selftests.c: Revert.
10770 * dictionary.c: Revert.
10771 * dicos-tdep.c: Revert.
10772 * demangle.c: Revert.
10773 * dcache.h: Revert.
10774 * dcache.c: Revert.
10775 * darwin-nat.h: Revert.
10776 * darwin-nat.c: Revert.
10777 * darwin-nat-info.c: Revert.
10778 * d-valprint.c: Revert.
10779 * d-namespace.c: Revert.
10780 * d-lang.c: Revert.
10781 * ctf.c: Revert.
10782 * csky-tdep.c: Revert.
10783 * csky-linux-tdep.c: Revert.
10784 * cris-tdep.c: Revert.
10785 * cris-linux-tdep.c: Revert.
10786 * cp-valprint.c: Revert.
10787 * cp-support.c: Revert.
10788 * cp-namespace.c: Revert.
10789 * cp-abi.c: Revert.
10790 * corelow.c: Revert.
10791 * corefile.c: Revert.
10792 * continuations.c: Revert.
10793 * completer.h: Revert.
10794 * completer.c: Revert.
10795 * complaints.c: Revert.
10796 * coffread.c: Revert.
10797 * coff-pe-read.c: Revert.
10798 * cli-out.h: Revert.
10799 * cli-out.c: Revert.
10800 * charset.c: Revert.
10801 * c-varobj.c: Revert.
10802 * c-valprint.c: Revert.
10803 * c-typeprint.c: Revert.
10804 * c-lang.c: Revert.
10805 * buildsym.c: Revert.
10806 * buildsym-legacy.c: Revert.
10807 * build-id.h: Revert.
10808 * build-id.c: Revert.
10809 * btrace.c: Revert.
10810 * bsd-uthread.c: Revert.
10811 * breakpoint.h: Revert.
10812 * breakpoint.c: Revert.
10813 * break-catch-throw.c: Revert.
10814 * break-catch-syscall.c: Revert.
10815 * break-catch-sig.c: Revert.
10816 * blockframe.c: Revert.
10817 * block.c: Revert.
10818 * bfin-tdep.c: Revert.
10819 * bfin-linux-tdep.c: Revert.
10820 * bfd-target.c: Revert.
10821 * bcache.c: Revert.
10822 * ax-general.c: Revert.
10823 * ax-gdb.h: Revert.
10824 * ax-gdb.c: Revert.
10825 * avr-tdep.c: Revert.
10826 * auxv.c: Revert.
10827 * auto-load.c: Revert.
10828 * arm-wince-tdep.c: Revert.
10829 * arm-tdep.c: Revert.
10830 * arm-symbian-tdep.c: Revert.
10831 * arm-pikeos-tdep.c: Revert.
10832 * arm-obsd-tdep.c: Revert.
10833 * arm-nbsd-tdep.c: Revert.
10834 * arm-nbsd-nat.c: Revert.
10835 * arm-linux-tdep.c: Revert.
10836 * arm-linux-nat.c: Revert.
10837 * arm-fbsd-tdep.c: Revert.
10838 * arm-fbsd-nat.c: Revert.
10839 * arm-bsd-tdep.c: Revert.
10840 * arch-utils.c: Revert.
10841 * arc-tdep.c: Revert.
10842 * arc-newlib-tdep.c: Revert.
10843 * annotate.h: Revert.
10844 * annotate.c: Revert.
10845 * amd64-windows-tdep.c: Revert.
10846 * amd64-windows-nat.c: Revert.
10847 * amd64-tdep.c: Revert.
10848 * amd64-sol2-tdep.c: Revert.
10849 * amd64-obsd-tdep.c: Revert.
10850 * amd64-obsd-nat.c: Revert.
10851 * amd64-nbsd-tdep.c: Revert.
10852 * amd64-nbsd-nat.c: Revert.
10853 * amd64-nat.c: Revert.
10854 * amd64-linux-tdep.c: Revert.
10855 * amd64-linux-nat.c: Revert.
10856 * amd64-fbsd-tdep.c: Revert.
10857 * amd64-fbsd-nat.c: Revert.
10858 * amd64-dicos-tdep.c: Revert.
10859 * amd64-darwin-tdep.c: Revert.
10860 * amd64-bsd-nat.c: Revert.
10861 * alpha-tdep.c: Revert.
10862 * alpha-obsd-tdep.c: Revert.
10863 * alpha-nbsd-tdep.c: Revert.
10864 * alpha-mdebug-tdep.c: Revert.
10865 * alpha-linux-tdep.c: Revert.
10866 * alpha-linux-nat.c: Revert.
10867 * alpha-bsd-tdep.c: Revert.
10868 * alpha-bsd-nat.c: Revert.
10869 * aix-thread.c: Revert.
10870 * agent.c: Revert.
10871 * addrmap.c: Revert.
10872 * ada-varobj.c: Revert.
10873 * ada-valprint.c: Revert.
10874 * ada-typeprint.c: Revert.
10875 * ada-tasks.c: Revert.
10876 * ada-lang.c: Revert.
10877 * aarch64-tdep.c: Revert.
10878 * aarch64-ravenscar-thread.c: Revert.
10879 * aarch64-newlib-tdep.c: Revert.
10880 * aarch64-linux-tdep.c: Revert.
10881 * aarch64-linux-nat.c: Revert.
10882 * aarch64-fbsd-tdep.c: Revert.
10883 * aarch64-fbsd-nat.c: Revert.
10884 * aarch32-linux-nat.c: Revert.
10885
d55e5aa6
TT
108862019-04-05 Tom Tromey <tom@tromey.com>
10887
10888 * ft32-tdep.c: Sort headers.
10889 * frv-tdep.c: Sort headers.
10890 * frv-linux-tdep.c: Sort headers.
10891 * frame.c: Sort headers.
10892 * frame-unwind.c: Sort headers.
10893 * frame-base.c: Sort headers.
10894 * fork-child.c: Sort headers.
10895 * findvar.c: Sort headers.
10896 * findcmd.c: Sort headers.
10897 * filesystem.c: Sort headers.
10898 * filename-seen-cache.h: Sort headers.
10899 * filename-seen-cache.c: Sort headers.
10900 * fbsd-tdep.c: Sort headers.
10901 * fbsd-nat.h: Sort headers.
10902 * fbsd-nat.c: Sort headers.
10903 * f-valprint.c: Sort headers.
10904 * f-typeprint.c: Sort headers.
10905 * f-lang.c: Sort headers.
10906 * extension.h: Sort headers.
10907 * extension.c: Sort headers.
10908 * extension-priv.h: Sort headers.
10909 * expprint.c: Sort headers.
10910 * exec.h: Sort headers.
10911 * exec.c: Sort headers.
10912 * exceptions.c: Sort headers.
10913 * event-top.c: Sort headers.
10914 * event-loop.c: Sort headers.
10915 * eval.c: Sort headers.
10916 * elfread.c: Sort headers.
10917 * dwarf2read.h: Sort headers.
10918 * dwarf2read.c: Sort headers.
10919 * dwarf2loc.c: Sort headers.
10920 * dwarf2expr.h: Sort headers.
10921 * dwarf2expr.c: Sort headers.
10922 * dwarf2-frame.c: Sort headers.
10923 * dwarf2-frame-tailcall.c: Sort headers.
10924 * dwarf-index-write.h: Sort headers.
10925 * dwarf-index-write.c: Sort headers.
10926 * dwarf-index-common.c: Sort headers.
10927 * dwarf-index-cache.h: Sort headers.
10928 * dwarf-index-cache.c: Sort headers.
10929 * dummy-frame.c: Sort headers.
10930 * dtrace-probe.c: Sort headers.
10931 * disasm.h: Sort headers.
10932 * disasm.c: Sort headers.
10933 * disasm-selftests.c: Sort headers.
10934 * dictionary.c: Sort headers.
10935 * dicos-tdep.c: Sort headers.
10936 * demangle.c: Sort headers.
10937 * dcache.h: Sort headers.
10938 * dcache.c: Sort headers.
10939 * darwin-nat.h: Sort headers.
10940 * darwin-nat.c: Sort headers.
10941 * darwin-nat-info.c: Sort headers.
10942 * d-valprint.c: Sort headers.
10943 * d-namespace.c: Sort headers.
10944 * d-lang.c: Sort headers.
10945 * ctf.c: Sort headers.
10946 * csky-tdep.c: Sort headers.
10947 * csky-linux-tdep.c: Sort headers.
10948 * cris-tdep.c: Sort headers.
10949 * cris-linux-tdep.c: Sort headers.
10950 * cp-valprint.c: Sort headers.
10951 * cp-support.c: Sort headers.
10952 * cp-namespace.c: Sort headers.
10953 * cp-abi.c: Sort headers.
10954 * corelow.c: Sort headers.
10955 * corefile.c: Sort headers.
10956 * continuations.c: Sort headers.
10957 * completer.h: Sort headers.
10958 * completer.c: Sort headers.
10959 * complaints.c: Sort headers.
10960 * coffread.c: Sort headers.
10961 * coff-pe-read.c: Sort headers.
10962 * cli-out.h: Sort headers.
10963 * cli-out.c: Sort headers.
10964 * charset.c: Sort headers.
10965 * c-varobj.c: Sort headers.
10966 * c-valprint.c: Sort headers.
10967 * c-typeprint.c: Sort headers.
10968 * c-lang.c: Sort headers.
10969 * buildsym.c: Sort headers.
10970 * buildsym-legacy.c: Sort headers.
10971 * build-id.h: Sort headers.
10972 * build-id.c: Sort headers.
10973 * btrace.c: Sort headers.
10974 * bsd-uthread.c: Sort headers.
10975 * breakpoint.h: Sort headers.
10976 * breakpoint.c: Sort headers.
10977 * break-catch-throw.c: Sort headers.
10978 * break-catch-syscall.c: Sort headers.
10979 * break-catch-sig.c: Sort headers.
10980 * blockframe.c: Sort headers.
10981 * block.c: Sort headers.
10982 * bfin-tdep.c: Sort headers.
10983 * bfin-linux-tdep.c: Sort headers.
10984 * bfd-target.c: Sort headers.
10985 * bcache.c: Sort headers.
10986 * ax-general.c: Sort headers.
10987 * ax-gdb.h: Sort headers.
10988 * ax-gdb.c: Sort headers.
10989 * avr-tdep.c: Sort headers.
10990 * auxv.c: Sort headers.
10991 * auto-load.c: Sort headers.
10992 * arm-wince-tdep.c: Sort headers.
10993 * arm-tdep.c: Sort headers.
10994 * arm-symbian-tdep.c: Sort headers.
10995 * arm-pikeos-tdep.c: Sort headers.
10996 * arm-obsd-tdep.c: Sort headers.
10997 * arm-nbsd-tdep.c: Sort headers.
10998 * arm-nbsd-nat.c: Sort headers.
10999 * arm-linux-tdep.c: Sort headers.
11000 * arm-linux-nat.c: Sort headers.
11001 * arm-fbsd-tdep.c: Sort headers.
11002 * arm-fbsd-nat.c: Sort headers.
11003 * arm-bsd-tdep.c: Sort headers.
11004 * arch-utils.c: Sort headers.
11005 * arc-tdep.c: Sort headers.
11006 * arc-newlib-tdep.c: Sort headers.
11007 * annotate.h: Sort headers.
11008 * annotate.c: Sort headers.
11009 * amd64-windows-tdep.c: Sort headers.
11010 * amd64-windows-nat.c: Sort headers.
11011 * amd64-tdep.c: Sort headers.
11012 * amd64-sol2-tdep.c: Sort headers.
11013 * amd64-obsd-tdep.c: Sort headers.
11014 * amd64-obsd-nat.c: Sort headers.
11015 * amd64-nbsd-tdep.c: Sort headers.
11016 * amd64-nbsd-nat.c: Sort headers.
11017 * amd64-nat.c: Sort headers.
11018 * amd64-linux-tdep.c: Sort headers.
11019 * amd64-linux-nat.c: Sort headers.
11020 * amd64-fbsd-tdep.c: Sort headers.
11021 * amd64-fbsd-nat.c: Sort headers.
11022 * amd64-dicos-tdep.c: Sort headers.
11023 * amd64-darwin-tdep.c: Sort headers.
11024 * amd64-bsd-nat.c: Sort headers.
11025 * alpha-tdep.c: Sort headers.
11026 * alpha-obsd-tdep.c: Sort headers.
11027 * alpha-nbsd-tdep.c: Sort headers.
11028 * alpha-mdebug-tdep.c: Sort headers.
11029 * alpha-linux-tdep.c: Sort headers.
11030 * alpha-linux-nat.c: Sort headers.
11031 * alpha-bsd-tdep.c: Sort headers.
11032 * alpha-bsd-nat.c: Sort headers.
11033 * aix-thread.c: Sort headers.
11034 * agent.c: Sort headers.
11035 * addrmap.c: Sort headers.
11036 * ada-varobj.c: Sort headers.
11037 * ada-valprint.c: Sort headers.
11038 * ada-typeprint.c: Sort headers.
11039 * ada-tasks.c: Sort headers.
11040 * ada-lang.c: Sort headers.
11041 * aarch64-tdep.c: Sort headers.
11042 * aarch64-ravenscar-thread.c: Sort headers.
11043 * aarch64-newlib-tdep.c: Sort headers.
11044 * aarch64-linux-tdep.c: Sort headers.
11045 * aarch64-linux-nat.c: Sort headers.
11046 * aarch64-fbsd-tdep.c: Sort headers.
11047 * aarch64-fbsd-nat.c: Sort headers.
11048 * aarch32-linux-nat.c: Sort headers.
11049
699bd4cf
TT
110502019-04-04 Tom Tromey <tom@tromey.com>
11051
11052 * varobj.c (varobj_create): Update.
11053 * rust-exp.y (struct rust_parser) <update_innermost_block,
11054 lookup_symbol>: New methods.
11055 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11056 Rename.
11057 (rust_parser::rust_lookup_type)
11058 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11059 * printcmd.c (display_command, do_one_display): Update.
11060 * parser-defs.h (struct parser_state) <parser_state>: Add
11061 "tracker" parameter.
11062 (block_tracker): New member.
11063 (class innermost_block_tracker) <innermost_block_tracker>: Add
11064 "types" parameter.
11065 <reset>: Remove method.
11066 (innermost_block): Don't declare.
11067 (null_post_parser): Update.
11068 * parse.c (innermost_block): Remove global.
11069 (write_dollar_variable): Update.
11070 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11071 Remove "tracker_types" parameter.
11072 (parse_expression): Add "tracker" parameter.
11073 (parse_expression_for_completion): Update.
11074 (null_post_parser): Add "tracker" parameter.
11075 * p-exp.y: Update rules.
11076 * m2-exp.y: Update rules.
11077 * language.h (struct language_defn) <la_post_parser>: Add
11078 "tracker" parameter.
11079 * go-exp.y: Update rules.
11080 * f-exp.y: Update rules.
11081 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11082 parameter.
11083 * d-exp.y: Update rules.
11084 * c-exp.y: Update rules.
11085 * breakpoint.c (set_breakpoint_condition): Create an
11086 innermost_block_tracker.
11087 (watch_command_1): Likewise.
11088 * ada-lang.c (resolve): Add "tracker" parameter.
11089 (resolve_subexp): Likewise.
11090 * ada-exp.y (write_var_from_sym): Update.
11091
dac43e32
TT
110922019-04-04 Tom Tromey <tom@tromey.com>
11093
11094 * type-stack.h: New file.
11095 * type-stack.c: New file.
11096 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11097 type-stack.h.
11098 (insert_into_type_stack, insert_type, push_type, push_type_int)
11099 (insert_type_address_space, pop_type, pop_type_int)
11100 (pop_typelist, pop_type_stack, append_type_stack)
11101 (push_type_stack, get_type_stack, push_typelist)
11102 (follow_type_instance_flags, follow_types): Don't declare.
11103 * parse.c (type_stack): Remove global.
11104 (parse_exp_in_context): Update.
11105 (insert_into_type_stack, insert_type, push_type, push_type_int)
11106 (insert_type_address_space, pop_type, pop_type_int)
11107 (pop_typelist, pop_type_stack, append_type_stack)
11108 (push_type_stack, get_type_stack, push_typelist)
11109 (follow_type_instance_flags, follow_types): Remove (moved to
11110 type-stack.c).
11111 * f-exp.y (type_stack): New global.
11112 Update rules.
11113 (push_kind_type, f_parse): Update.
11114 * d-exp.y (type_stack): New global.
11115 Update rules.
11116 (d_parse): Update.
11117 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11118 Update rules.
11119 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11120 (HFILES_NO_SRCDIR): Add type-stack.h.
11121
2a612529
TT
111222019-04-04 Tom Tromey <tom@tromey.com>
11123
11124 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11125 (rust_parser::convert_ast_to_expression, rust_parse)
11126 (rust_lex_test_completion, rust_lex_tests): Update.
11127 * parser-defs.h (struct expr_completion_state): New.
11128 (struct parser_state) <parser_state>: Add completion parameter.
11129 <mark_struct_expression, mark_completion_tag>: New methods.
11130 <parse_completion, m_completion_state>: New members.
11131 (prefixify_expression, null_post_parser): Update.
11132 (mark_struct_expression, mark_completion_tag): Don't declare.
11133 * parse.c (parse_completion, expout_last_struct)
11134 (expout_tag_completion_type, expout_completion_name): Remove
11135 globals.
11136 (parser_state::mark_struct_expression)
11137 (parser_state::mark_completion_tag): Now methods.
11138 (prefixify_expression): Add last_struct parameter.
11139 (prefixify_subexp): Likewise.
11140 (parse_exp_1): Update.
11141 (parse_exp_in_context): Add cstate parameter. Update.
11142 (parse_expression_for_completion): Create an
11143 expr_completion_state.
11144 (null_post_parser): Add "completion" parameter.
11145 * p-exp.y: Update rules.
11146 (yylex): Update.
11147 * language.h (struct language_defn) <la_post_parser>: Add
11148 "completing" parameter.
11149 * go-exp.y: Update rules.
11150 (lex_one_token): Update.
11151 * expression.h (parse_completion): Don't declare.
11152 * d-exp.y: Update rules.
11153 (lex_one_token): Update rules.
11154 * c-exp.y: Update rules.
11155 (lex_one_token): Update.
11156 * ada-lang.c (resolve): Add "parse_completion" parameter.
11157 (resolve_subexp): Likewise.
11158 (ada_resolve_function): Likewise.
11159
43476f0b
TT
111602019-04-04 Tom Tromey <tom@tromey.com>
11161
11162 * parser-defs.h (struct parser_state) <start_arglist,
11163 end_arglist>: New methods.
11164 <arglist_len, m_funcall_chain>: New members.
11165 (arglist_len, start_arglist, end_arglist): Don't declare.
11166 * parse.c (arglist_len, funcall_chain): Remove global.
11167 (start_arglist, end_arglist): Remove functions.
11168 (parse_exp_in_context): Update.
11169 * p-exp.y: Update rules.
11170 * m2-exp.y: Update rules.
11171 * go-exp.y: Update rules.
11172 * f-exp.y: Update rules.
11173 * d-exp.y: Update rules.
11174 * c-exp.y: Update rules.
11175
5776fca3
TT
111762019-04-04 Tom Tromey <tom@tromey.com>
11177
11178 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11179 lex_operator, push_back>: New methods.
11180 Update all rules.
11181 (rust_parser::lex_hex, lex_escape): Rename and update.
11182 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11183 (rust_parser::lex_operator): Rename and update.
11184 (rust_parser::lex_number, rustyylex, rustyyerror)
11185 (rust_lex_test_init, rust_lex_test_sequence)
11186 (rust_lex_test_push_back, rust_lex_tests): Update.
11187 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11188 parameter.
11189 <lexptr, prev_lexptr>: New members.
11190 (lexptr, prev_lexptr): Don't declare.
11191 * parse.c (lexptr, prev_lexptr): Remove globals.
11192 (parse_exp_in_context): Update.
11193 * p-exp.y (yylex, yyerror): Update.
11194 * m2-exp.y (parse_number, yylex, yyerror): Update.
11195 * go-exp.y (lex_one_token, yyerror): Update.
11196 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11197 * d-exp.y (lex_one_token, yyerror): Update.
11198 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11199 (lex_one_token, yyerror): Update.
11200 * ada-lex.l (YY_INPUT): Update.
11201 (rewind_to_char): Update.
11202 * ada-exp.y (yyerror): Update.
11203
8621b685
TT
112042019-04-04 Tom Tromey <tom@tromey.com>
11205
11206 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11207 * parser-defs.h (struct parser_state) <parser_state>: Add new
11208 parameter.
11209 <comma_terminates>: New member.
11210 (comma_terminates): Don't declare global.
11211 * parse.c (comma_terminates): Remove global.
11212 (parse_exp_in_context): Update.
11213 * p-exp.y (yylex): Update.
11214 * m2-exp.y (yylex): Update.
11215 * go-exp.y (lex_one_token): Update.
11216 * f-exp.y (yylex): Update.
11217 * d-exp.y (lex_one_token): Update.
11218 * c-exp.y (lex_one_token): Update.
11219 * ada-lex.l: Update.
11220
28aaf3fd
TT
112212019-04-04 Tom Tromey <tom@tromey.com>
11222
11223 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11224 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11225 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11226 * parser-defs.h (paren_depth): Don't declare.
11227 * parse.c (paren_depth): Remove global.
11228 (parse_exp_in_context): Update.
11229 * p-exp.y (paren_depth): New global.
11230 (pascal_parse): Initialize it.
11231 * m2-exp.y (paren_depth): New global.
11232 (m2_parse): Initialize it.
11233 * go-exp.y (paren_depth): New global.
11234 (go_parse): Initialize it.
11235 * f-exp.y (paren_depth): New global.
11236 (f_parse): Initialize it.
11237 * d-exp.y (paren_depth): New global.
11238 (d_parse): Initialize it.
11239 * c-exp.y (paren_depth): New global.
11240 (c_parse): Initialize it.
11241 * ada-lex.l (paren_depth): New global.
11242 (lexer_init): Initialize it.
11243
1e58a4a4
TT
112442019-04-04 Tom Tromey <tom@tromey.com>
11245
11246 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11247 (rust_parser::convert_ast_to_type)
11248 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11249 * parser-defs.h (struct parser_state) <parser_state>: Add
11250 parameters. Initialize new members.
11251 <expression_context_block, expression_context_pc>: New members.
11252 * parse.c (expression_context_block, expression_context_pc):
11253 Remove globals.
11254 (parse_exp_in_context): Update.
11255 * p-exp.y: Update all rules.
11256 (yylex): Update.
11257 * m2-exp.y: Update all rules.
11258 (yylex): Update.
11259 * go-exp.y (yylex): Update.
11260 * f-exp.y (yylex): Update.
11261 * d-exp.y: Update all rules.
11262 (yylex): Update.
11263 * c-exp.y: Update all rules.
11264 (lex_one_token, classify_name, yylex, c_parse): Update.
11265 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11266
37eedb39
TT
112672019-04-04 Tom Tromey <tom@tromey.com>
11268
11269 * gdbarch.h, gdbarch.c: Rebuild.
11270 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11271 * stap-probe.h:
11272 (struct stap_parse_info): Replace "parser_state" with
11273 "expr_builder".
11274 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11275 (parser_state): New class.
11276 * parse.c (expr_builder): Rename.
11277 (expr_builder::release): Rename.
11278 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11279 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11280 (write_exp_elt_longcst, write_exp_elt_floatcst)
11281 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11282 (write_exp_string_vector, write_exp_bitstring)
11283 (write_exp_msymbol, mark_struct_expression)
11284 (write_dollar_variable)
11285 (insert_type_address_space, increase_expout_size): Replace
11286 "parser_state" with "expr_builder".
11287 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11288 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11289 "parser_state" with "expr_builder".
11290
73923d7e
TT
112912019-04-04 Tom Tromey <tom@tromey.com>
11292
11293 * rust-exp.y: Replace "parse_language" with method call.
11294 * p-exp.y:
11295 (yylex): Replace "parse_language" with method call.
11296 * m2-exp.y:
11297 (yylex): Replace "parse_language" with method call.
11298 * go-exp.y (classify_name): Replace "parse_language" with method
11299 call.
11300 * f-exp.y (yylex): Replace "parse_language" with method call.
11301 * d-exp.y (lex_one_token): Replace "parse_language" with method
11302 call.
11303 * c-exp.y:
11304 (lex_one_token, classify_name, yylex): Replace "parse_language"
11305 with method call.
11306 * ada-exp.y (find_primitive_type, type_char)
11307 (type_system_address): Replace "parse_language" with method call.
11308
fa9f5be6
TT
113092019-04-04 Tom Tromey <tom@tromey.com>
11310
11311 * rust-exp.y: Replace "parse_gdbarch" with method call.
11312 * parse.c (write_dollar_variable, insert_type_address_space):
11313 Replace "parse_gdbarch" with method call.
11314 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11315 call.
11316 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11317 call.
11318 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11319 "parse_gdbarch" with method call.
11320 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11321 with method call.
11322 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11323 "parse_gdbarch" with method call.
11324 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11325 "parse_gdbarch" with method call.
11326 * c-exp.y (parse_type, parse_number, classify_name): Replace
11327 "parse_gdbarch" with method call.
11328 * ada-lex.l: Replace "parse_gdbarch" with method call.
11329 * ada-exp.y (parse_type, find_primitive_type, type_char)
11330 (type_system_address): Replace "parse_gdbarch" with method call.
11331
1201a264
TT
113322019-04-04 Tom Tromey <tom@tromey.com>
11333
11334 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11335 * stap-probe.c (stap_parse_argument): Update.
11336 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11337 initial_size parameter.
11338 * rust-exp.y (rust_lex_tests): Update.
11339 * parse.c (parser_state): Update.
11340 (parse_exp_in_context): Update.
11341 * parser-defs.h (struct parser_state) <parser_state>: Remove
11342 "initial_size" parameter.
11343
e3980ce2
TT
113442019-04-04 Tom Tromey <tom@tromey.com>
11345
11346 * parser-defs.h (increase_expout_size): Don't declare.
11347 * parse.c (increase_expout_size): Now static.
11348
e9f8e3f1
TS
113492019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11350
11351 * gnu-nat.c (gnu_nat_target::wait): Fix
11352 target_waitstatus_to_string call.
11353
d7df6549
AB
113542019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11355
11356 * eval.c (evaluate_subexp_standard): Handle internal functions
11357 during Fortran function call handling.
11358
8bdc1658
AB
113592019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11360
11361 * NEWS: Mention new internal functions.
11362 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11363 (read_base_type): Use dwarf2_init_complex_target_type.
11364 * value.c (creal_internal_fn): New function.
11365 (cimag_internal_fn): New function.
11366 (_initialize_values): Register new internal functions.
11367
c29705b7
PW
113682019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11369
11370 * infrun.c (stop_all_threads): If debug_infrun, always
11371 trace the wait status after wait_one, using
11372 target_waitstatus_to_string and target_pid_to_str.
11373 (handle_inferior_event): Replace various trace of
11374 wait status kind by a single trace.
11375 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11376 wait status kind image by target_waitstatus_to_string.
11377 * target/waitstatus.c (target_waitstatus_to_string): Fix
11378 obsolete comment.
11379
05caa1d2
TT
113802019-04-01 Tom Tromey <tromey@adacore.com>
11381
11382 PR symtab/23331:
11383 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11384
9d1447e0
SDJ
113852019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11386 Pedro Alves <palves@redhat.com>
11387
11388 * top.c (quit_force): Call 'finalize_values'.
11389 * value.c (finalize_values): New function.
11390 * value.h (finalize_values): Declare.
11391
7734102d
EZ
113922019-03-30 Eli Zaretskii <eliz@gnu.org>
11393
11394 * NEWS: Announce $_gdb_major and $_gdb_minor.
11395
11396 * top.c (init_gdb_version_vars): New function.
11397 (gdb_init): Call init_gdb_version_vars.
11398
188e1fa9
TT
113992019-03-29 Tom Tromey <tromey@adacore.com>
11400
11401 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11402 help text. Remove dead code.
11403
2880242d
KS
114042019-03-29 Keith Seitz <keiths@redhat.com>
11405
11406 From Siddhesh Poyarekar:
11407 * f-lang.h (f77_get_upperbound): Return LONGEST.
11408 (f77_get_lowerbound): Likewise.
11409 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11410 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11411 print them.
11412 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11413 plongest to format print it.
11414 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11415 (f77_get_upperbound): Likewise.
11416 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11417 LOWER_BOUND to LONGEST.
11418 (f77_create_arrayprint_offset_tbl): Likewise.
11419
cc1defb1
KS
114202019-03-29 Keith Seitz <keiths@redhat.com>
11421
11422 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11423 %s/pulongest for TYPE_LENGTH instead of %d in format
11424 strings.
11425 * ada-typerint.c (ada_print_type): Likewise.
11426 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11427 * compile/compile-c-support.c (generate_register_struct): Likewise.
11428 * gdbtypes.c (recursive_dump_type): Likewise.
11429 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11430 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11431 instead of %d in format strings.
11432 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11433 to std::min to ULONGEST.
11434 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11435 instead of %d in format strings.
11436 * tracepoint.c (info_scope_command): Likewise.
11437 * typeprint.c (print_offset_data::update)
11438 (print_offset_data::finish): Likewise.
11439 * xtensa-tdep.c (xtensa_store_return_value)
11440 (xtensa_push_dummy_call): Likewise.
11441
e432ccf1
JT
114422019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11443
11444 * windows-nat.c (display_selector): Fixed format specifications
11445 for 64-bit Cygwin.
11446
65d2b333
PW
114472019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11448
11449 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11450
f489207e
SL
114512019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11452
11453 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11454 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11455 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11456 (nios2_linux_init_abi): Install it.
11457
bffa1015
AH
114582019-03-28 Alan Hayward <alan.hayward@arm.com>
11459
11460 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11461
fc96163a
AH
114622019-03-28 Alan Hayward <alan.hayward@arm.com>
11463
11464 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11465
20dc7e9b
PW
114662019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11467 Tom Tromey <tromey@adacore.com>
11468
11469 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11470
7f5331a8
JB
114712019-03-26 Joel Brobecker <brobecker@adacore.com>
11472
11473 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11474 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11475 method to compute the bounds of range types. Also print "[evaluated]"
11476 if the bounds' values come from a dynamic evaluation.
11477
18c77628
AB
114782019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11479
11480 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11481 whitespace when pretty printing is on.
11482
53c973f2
AH
114832019-03-26 Alan Hayward <alan.hayward@arm.com>
11484
e79be6e5 11485 * ppc-linux-nat.c: Add include.
53c973f2 11486
d851aa71
AH
114872019-03-26 Alan Hayward <alan.hayward@arm.com>
11488
e79be6e5 11489 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11490
2fe7bab7
AH
114912019-03-26 Alan Hayward <alan.hayward@arm.com>
11492
e79be6e5 11493 * arm-linux-nat.c: Add include.
2fe7bab7 11494
068ef30e
SM
114952019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11496
11497 * source-cache.c (source_cache::get_source_lines): Re-read
11498 fullname after calling open_source_file.
11499
81a24d04
JB
115002019-03-25 John Baldwin <jhb@FreeBSD.org>
11501
11502 * NEWS: Mention TLS support for FreeBSD.
11503
79e7ae11
TT
115042019-03-25 Tom Tromey <tromey@adacore.com>
11505
11506 * minsyms.c (BUNCH_SIZE): Update comment.
11507 (~minimal_symbol_reader): Remove old comment.
11508 (compact_minimal_symbols): Update comment.
11509 (minimal_symbol_reader::install): Remove old comment. Update
11510 other comments.
11511
d45963c2
AH
115122019-03-25 Alan Hayward <alan.hayward@arm.com>
11513
11514 * s390-linux-nat.c: Add include.
11515
0f83012e
AH
115162019-03-25 Alan Hayward <alan.hayward@arm.com>
11517
11518 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11519 Call linux_get_hwcap.
11520 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11521 Likewise.
11522 (aarch64_linux_get_hwcap): Remove function.
11523 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11524 declaration.
11525 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11526 linux_get_hwcap.
11527 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11528 * linux-tdep.c (linux_get_hwcap): Add function.
11529 (linux_get_hwcap2): Likewise.
11530 * linux-tdep.h (linux_get_hwcap): Add declaration.
11531 (linux_get_hwcap2): Likewise.
11532 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11533 (ppc_linux_get_hwcap2): Likewise.
11534 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11535 linux_get_hwcap.
11536 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11537 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11538 (ppc_linux_nat_target::read_description): Likewise.
11539 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11540 * s390-linux-nat.c: Likewise.
11541 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11542
6640a367
TT
115432019-03-24 Tom Tromey <tom@tromey.com>
11544
11545 * ada-lang.c (standard_lookup): Simplify initialization.
11546 (ada_lookup_symbol_nonlocal): Simplify return.
11547 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11548 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11549 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11550 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11551 initialization.
11552 * solib.c (solib_global_lookup): Simplify.
11553 * symtab.c (null_block_symbol): Remove.
11554 (symbol_cache_lookup): Simplify returns.
11555 (lookup_language_this): Simplify returns.
11556 (lookup_symbol_aux): Simplify return.
11557 (lookup_local_symbol): Simplify returns.
11558 (lookup_global_symbol_from_objfile): Simplify return.
11559 (lookup_symbol_in_objfile_symtabs)
11560 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11561 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11562 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11563 * cp-namespace.c (cp_lookup_bare_symbol)
11564 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11565 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11566 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11567 (cp_lookup_symbol_via_imports): Simplify initialization.
11568 (find_symbol_in_baseclass): Likewise.
11569 * symtab.h (null_block_symbol): Remove.
11570 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11571 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11572 (d_lookup_symbol_module): Likewise.
11573 (find_symbol_in_baseclass): Simplify initialization.
11574
a930ebcd
TT
115752019-03-24 Tom Tromey <tom@tromey.com>
11576
11577 * expression.h: Don't include symtab.h.
11578 (struct block): Forward declare.
11579
582942f4
TT
115802019-03-24 Tom Tromey <tom@tromey.com>
11581
11582 * c-exp.y (typebase): Remove casts.
11583 * gdbtypes.c (lookup_unsigned_typename, )
11584 (lookup_signed_typename): Remove cast.
11585 * eval.c (parse_to_comma_and_eval): Remove cast.
11586 * parse.c (write_dollar_variable): Remove cast.
11587 * block.h (struct block) <superblock>: Now const.
11588 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11589 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11590 (map_block): Make "block" const.
11591 * symfile.h (struct quick_symbol_functions)
11592 <map_matching_symbols>: Constify block argument to "callback".
11593 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11594 const.
11595 (find_pc_sect_compunit_symtab): Make "b" const.
11596 (find_symbol_at_address): Likewise.
11597 (search_symbols): Likewise.
11598 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11599 (dw2_debug_names_lookup_symbol): Likewise.
11600 (dw2_map_matching_symbols): Update.
11601 * p-valprint.c (pascal_val_print): Remove "block".
11602 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11603 (aux_add_nonlocal_symbols): Make "block" const.
11604 (resolve_subexp): Remove cast.
11605 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11606 const.
11607 (iterate_over_file_blocks): Likewise.
11608 * f-exp.y (%union) <bval>: Remove.
11609 * coffread.c (patch_opaque_types): Make "b" const.
11610 * spu-tdep.c (spu_catch_start): Make "block" const.
11611 * c-valprint.c (print_unpacked_pointer): Remove "block".
11612 * symmisc.c (dump_symtab_1): Make "b" const.
11613 (block_depth): Make "block" const.
11614 * d-exp.y (%union) <bval>: Remove.
11615 * cp-support.h (cp_lookup_rtti_type): Update.
11616 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11617 * psymtab.c (psym_lookup_symbol): Make "block" const.
11618 (maintenance_check_psymtabs): Make "b" const.
11619 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11620 (enumerate_locals, enumerate_args): Update.
11621 * python/py-symtab.c (stpy_global_block): Make "block" const.
11622 (stpy_static_block): Likewise.
11623 * inline-frame.c (block_starting_point_at): Make "new_block"
11624 const.
11625 * block.c (find_block_in_blockvector): Make return type const.
11626 (blockvector_for_pc_sect): Make "b" const.
11627 (find_block_in_blockvector): Make "b" const.
11628
7ad417dd
TT
116292019-03-23 Tom Tromey <tom@tromey.com>
11630
11631 * varobj.c (varobj_create): Update.
11632 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11633 * printcmd.c (display_command, do_one_display): Don't reset
11634 innermost_block.
11635 * parser-defs.h (enum innermost_block_tracker_type): Move to
11636 expression.h.
11637 (innermost_block): Update comment.
11638 * parse.c (parse_exp_1): Add tracker_types parameter.
11639 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11640 tracker_types parameter. Reset innermost_block.
11641 (parse_exp_in_context): Remove.
11642 (parse_expression_for_completion): Update.
11643 * objfiles.c (~objfile): Don't reset expression_context_block or
11644 innermost_block.
11645 * expression.h (enum innermost_block_tracker_type): Move from
11646 parser-defs.h.
11647 (parse_exp_1): Add tracker_types parameter.
11648 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11649 reset innermost_block.
11650
b366c208
TT
116512019-03-23 Tom Tromey <tom@tromey.com>
11652
11653 * objfiles.h: Include bcache.h.
11654
9bb9b2f9
TT
116552019-03-23 Tom Tromey <tom@tromey.com>
11656
11657 * linespec.c (get_current_search_block): Use
11658 scoped_restore_current_language.
11659 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11660
59c28372
AH
116612019-03-22 Alan Hayward <alan.hayward@arm.com>
11662 Jiong Wang <jiong.wang@arm.com>
11663
11664 * aarch64-linux-tdep.c
11665 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11666 section.
11667 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11668
17e116a7
AH
116692019-03-22 Alan Hayward <alan.hayward@arm.com>
11670 Jiong Wang <jiong.wang@arm.com>
11671
11672 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11673 instructions.
11674 (aarch64_analyze_prologue_test): Add PACIASP test.
11675 (aarch64_prologue_prev_register): Unmask PC value.
11676
11e1b75f
AH
116772019-03-22 Alan Hayward <alan.hayward@arm.com>
11678 Jiong Wang <jiong.wang@arm.com>
11679
11680 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11681 (aarch64_dwarf2_prev_register): Unmask PC value.
11682 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11683 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11684 DW_CFA_AARCH64_negate_ra_state.
11685 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11686
34dcc7cf
AH
116872019-03-22 Alan Hayward <alan.hayward@arm.com>
11688 Jiong Wang <jiong.wang@arm.com>
11689
11690 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11691 registers.
11692 (aarch64_pseudo_register_name): Likewise.
11693 (aarch64_pseudo_register_type): Likewise.
11694 (aarch64_pseudo_register_reggroup_p): Likewise.
11695 (aarch64_gdbarch_init): Add pauth registers.
11696 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11697 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11698 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11699 (struct gdbarch_tdep): Add regnum for ra_state.
11700
1ef53e6b
AH
117012019-03-22 Alan Hayward <alan.hayward@arm.com>
11702 Jiong Wang <jiong.wang@arm.com>
11703
11704 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11705
76bed0fd
AH
117062019-03-22 Alan Hayward <alan.hayward@arm.com>
11707 Jiong Wang <jiong.wang@arm.com>
11708
11709 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11710 function.
11711 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11712 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11713 (aarch64_gdbarch_init): Add puth registers.
11714 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11715 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11716 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11717
ee4fbcfa
AH
117182019-03-22 Alan Hayward <alan.hayward@arm.com>
11719 Jiong Wang <jiong.wang@arm.com>
11720
11721 * aarch64-linux-nat.c
11722 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11723 * aarch64-linux-tdep.c
11724 (aarch64_linux_core_read_description): Likewise.
11725 (aarch64_linux_get_hwcap): New function.
11726 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11727 (aarch64_linux_get_hwcap): New declaration.
11728
6dc0ebde
AH
117292019-03-22 Alan Hayward <alan.hayward@arm.com>
11730 Jiong Wang <jiong.wang@arm.com>
11731
11732 * aarch64-linux-nat.c
11733 (aarch64_linux_nat_target::read_description): Add pauth param.
11734 * aarch64-linux-tdep.c
11735 (aarch64_linux_core_read_description): Likewise.
11736 * aarch64-tdep.c (struct target_desc): Add in pauth.
11737 (aarch64_read_description): Add pauth param.
11738 (aarch64_gdbarch_init): Likewise.
11739 * aarch64-tdep.h (aarch64_read_description): Likewise.
11740 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11741 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11742 * features/Makefile: Add new files.
11743 * features/aarch64-pauth.c: New file.
11744 * features/aarch64-pauth.xml: New file.
11745
595915c1
TT
117462019-03-20 Tom Tromey <tromey@adacore.com>
11747
11748 * infrun.c (handle_inferior_event): Rename from
11749 handle_inferior_event_1. Create a scoped_value_mark.
11750 (handle_inferior_event): Remove.
11751
4c7d57e7
TT
117522019-03-19 Tom Tromey <tromey@adacore.com>
11753
11754 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11755 * infrun.h (print_stop_event): Add "displays" parameter.
11756 * infrun.c (print_stop_event): Add "displays" parameter.
11757
cb246234
PA
117582019-03-19 Pedro Alves <palves@redhat.com>
11759
11760 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11761 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11762 to -1. Fix TABs vs spaces.
11763 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11764 * tui/tui-out.h (tui_ui_out) Add intro comments.
11765 <m_line, m_start_of_line>: In-class initialize, and add describing
11766 comment.
11767
3a0e45b2
AH
117682019-03-18 Alan Hayward <alan.hayward@arm.com>
11769
11770 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11771 variable names.
11772 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11773
5371b850
PA
117742019-03-18 Pedro Alves <palves@redhat.com>
11775 Eli Zaretskii <eliz@gnu.org>
11776
11777 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11778 m_line and m_start_of_line.
11779
b17c4cd0
EZ
117802019-03-18 Eli Zaretskii <eliz@gnu.org>
11781
11782 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11783 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11784 it returns a newline. This fixes a regression in TU mode, whereby
11785 the next line is output on the same screen line as the user input.
11786
4bd56d18
TT
117872019-03-18 Tom Tromey <tromey@adacore.com>
11788
11789 * minsyms.c (minimal_symbol_reader::install): Remove call to
11790 obstack_blank.
11791
55c10aca
PA
117922019-03-18 Pedro Alves <palves@redhat.com>
11793
11794 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11795 New globals.
11796 (apply_style): New, factored out from ...
11797 (apply_ansi_escape): ... this. Handle reverse video mode.
11798 (tui_set_reverse_mode): New function.
11799 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11800 * tui/tui-winsource.c (tui_show_source_line): Use
11801 tui_set_reverse_mode instead of setting A_STANDOUT.
11802 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11803 New setter methods.
11804
647bb750
HD
118052019-03-18 Hannes Domani <ssbssa@yahoo.de>
11806
11807 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11808 Handle tabs.
11809
bff8c71f
TT
118102019-03-18 Tom Tromey <tromey@adacore.com>
11811
11812 * ada-lang.c (empty_array): Add "high" parameter.
11813 (ada_evaluate_subexp): Update.
11814
58785d98
ST
118152019-03-17 Sergei Trofimovich <siarheit@google.com>
11816
11817 * unittests/string_view-selftests.c: Define
11818 _initialize_string_view_selftests unconditionally.
11819
d4cbef22
ВМ
118202019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11821
11822 PR gdb/24350
11823 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11824
fce4c071
ВМ
118252019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11826
11827 PR gdb/24351
11828 * windows-nat.c (display_selector): Fix format specifiers.
11829
f7f0a123
EZ
118302019-03-17 Eli Zaretskii <eliz@gnu.org>
11831
11832 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11833 tui_refill_source_window instead of tui_refresh_win, to update the
11834 current execution line. This fixes redisplay of the current line
11835 when stepping through the code with "next" or "step".
11836
ab42892f
EZ
118372019-03-16 Eli Zaretskii <eliz@gnu.org>
11838
11839 * source-cache.c (source_cache::get_source_lines): Call
11840 find_source_lines to initialize s->nlines. This fixes vertical
11841 scrolling of TUI source window when the DOWN arrow is pressed.
11842
8d8c087f
PW
118432019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11844
11845 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11846 linux-thread-db.c (_initialize_thread_db): Likewise.
11847
798e1c30
EZ
118482019-03-16 Eli Zaretskii <eliz@gnu.org>
11849
11850 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11851 wclrtoeol in tui_show_source_line". This reverts changes made in
11852 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11853
eefba3da
TT
118542019-03-15 Tom Tromey <tom@tromey.com>
11855
11856 * symtab.h (struct minimal_symbol): Derive from
11857 general_symbol_info.
11858 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11859 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11860 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11861 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11862 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11863 (MSYMBOL_SEARCH_NAME): Update.
11864 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11865 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11866 * minsyms.c (minimal_symbol_reader::record_full): Update.
11867
0de2420c
TT
118682019-03-15 Tom Tromey <tom@tromey.com>
11869
11870 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11871
042d75e4
TT
118722019-03-15 Tom Tromey <tom@tromey.com>
11873
11874 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11875 unique_xmalloc_ptr.
11876 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11877 Update.
11878 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11879 (build_minimal_symbol_hash_tables)
11880 (minimal_symbol_reader::install): Update.
11881
db92718b
TT
118822019-03-15 Tom Tromey <tom@tromey.com>
11883
11884 * symtab.c (create_demangled_names_hash): Update.
11885 (symbol_set_names): Update.
11886 * objfiles.h (struct objfile_per_bfd_storage)
11887 <demangled_names_hash>: Now an htab_up.
11888 * objfiles.c (objfile_per_bfd_storage): Simplify.
11889
d6797f46
TT
118902019-03-15 Tom Tromey <tom@tromey.com>
11891
11892 * objfiles.h (struct objfile_per_bfd_storage): Declare
11893 destructor.
11894 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11895 New.
11896 (get_objfile_bfd_data): Use new. Don't initialize
11897 language_of_main.
11898 (free_objfile_per_bfd_storage): Remove.
11899 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11900
741d7538
TT
119012019-03-15 Tom Tromey <tom@tromey.com>
11902
11903 * symfile.c (reread_symbols): Update.
11904 * objfiles.c (objfile::objfile): Update.
11905 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11906 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11907 comment.
11908 (minimal_symbol_reader::install): Update.
11909 (terminate_minimal_symbol_table): Remove.
11910 * jit.c (jit_object_close_impl): Update.
11911
788c80d1
TT
119122019-03-15 Tom Tromey <tom@tromey.com>
11913
11914 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11915 initializations.
11916
1b7a07cb
TT
119172019-03-15 Tom Tromey <tom@tromey.com>
11918
11919 * objfiles.h (struct objfile_per_bfd_storage)
11920 <demangled_hash_languages>: Now a bitset.
11921 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11922 (lookup_minimal_symbol): Update.
11923
3db066bc
TT
119242019-03-15 Tom Tromey <tom@tromey.com>
11925
11926 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11927 Don't return the symbol.
11928 * coffread.c (record_minimal_symbol): Use record_full.
11929
3fff2c37
EZ
119302019-03-14 Eli Zaretskii <eliz@gnu.org>
11931
11932 The MS-Windows port of ncurses fails to switch to a color pair if
11933 one or both of the colors are the implicit default colors. This
11934 change records the default colors when TUI is initialized, and
11935 then specifies them explicitly when a color pair uses the default
11936 colors. This allows color styling in TUI mode on MS-Windows.
11937
11938 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11939 ncurses_norm_attr.
11940 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11941 colors in ncurses_norm_attr.
11942 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11943 "none", replace it with the default color recorded in
11944 ncurses_norm_attr.
11945
3b336828
TT
119462019-03-14 Tom Tromey <tromey@adacore.com>
11947
11948 * source-cache.h (class source_cache) <get_source_lines>: Return
11949 std::string.
11950 * source-cache.c (source_cache::extract_lines): Handle case where
11951 first_pos==npos. Return std::string.
11952 (source_cache::get_source_lines): Update.
11953
d085f989
TT
119542019-03-14 Tom Tromey <tromey@adacore.com>
11955
11956 * NEWS: Add item for "style sources" commands.
11957 * source-cache.c (source_cache::get_source_lines): Check
11958 source_styling.
11959 * cli/cli-style.c (source_styling): New global.
11960 (_initialize_cli_style): Add "style sources" commands.
11961 (show_style_sources): New function.
11962 * cli/cli-style.h (source_styling): Declare.
11963
6f11e682
TT
119642019-03-14 Pedro Alves <palves@redhat.com>
11965 Tom Tromey <tromey@adacore.com>
11966
11967 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11968 * tui/tui-winsource.c (tui_refill_source_window): New function,
11969 from...
11970 (tui_horizontal_source_scroll): ... here. Move some logic.
11971 * cli/cli-style.c (set_style_enabled): Notify new observable.
11972 * tui/tui-hooks.c (tui_redisplay_source): New function.
11973 (tui_attach_detach_observers): Attach or detach
11974 tui_redisplay_source.
11975 * observable.h (source_styling_changed): New observable.
11976 * observable.c: Define source_styling_changed observable.
11977
a068643d
TT
119782019-03-13 Tom Tromey <tromey@adacore.com>
11979
11980 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11981 (i386_gnu_nat_target::store_registers): Update.
11982 * target-debug.h (target_debug_print_std_string): New macro.
11983 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11984 * windows-tdep.c (display_one_tib): Update.
11985 * tui/tui-stack.c (tui_make_status_line): Update.
11986 * top.c (print_inferior_quit_action): Update.
11987 * thread.c (thr_try_catch_cmd): Update.
11988 (add_thread_with_info): Update.
11989 (thread_target_id_str): Update.
11990 (thr_try_catch_cmd): Update.
11991 (thread_command): Update.
11992 (thread_find_command): Update.
11993 * record-btrace.c (record_btrace_target::info_record)
11994 (record_btrace_resume_thread, record_btrace_target::resume)
11995 (record_btrace_cancel_resume, record_btrace_step_thread)
11996 (record_btrace_target::wait, record_btrace_target::wait)
11997 (record_btrace_target::wait, record_btrace_target::stop): Update.
11998 * progspace.c (print_program_space): Update.
11999 * process-stratum-target.c
12000 (process_stratum_target::thread_address_space): Update.
12001 * linux-fork.c (linux_fork_mourn_inferior)
12002 (detach_checkpoint_command, info_checkpoints_command)
12003 (linux_fork_context): Update.
12004 (linux_fork_detach): Update.
12005 (class scoped_switch_fork_info): Update.
12006 (delete_checkpoint_command): Update.
12007 * infrun.c (follow_fork_inferior): Update.
12008 (follow_fork_inferior): Update.
12009 (proceed_after_vfork_done): Update.
12010 (handle_vfork_child_exec_or_exit): Update.
12011 (follow_exec): Update.
12012 (displaced_step_prepare_throw): Update.
12013 (displaced_step_restore): Update.
12014 (start_step_over): Update.
12015 (resume_1): Update.
12016 (clear_proceed_status_thread): Update.
12017 (proceed): Update.
12018 (print_target_wait_results): Update.
12019 (do_target_wait): Update.
12020 (context_switch): Update.
12021 (stop_all_threads): Update.
12022 (restart_threads): Update.
12023 (finish_step_over): Update.
12024 (handle_signal_stop): Update.
12025 (switch_back_to_stepped_thread): Update.
12026 (keep_going_pass_signal): Update.
12027 (print_exited_reason): Update.
12028 (normal_stop): Update.
12029 * inferior.c (inferior_pid_to_str): Change return type.
12030 (print_selected_inferior): Update.
12031 (add_inferior): Update.
12032 (detach_inferior): Update.
12033 * dummy-frame.c (fprint_dummy_frames): Update.
12034 * dcache.c (dcache_info_1): Update.
12035 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12036 (btrace_fetch, btrace_clear): Update.
12037 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12038 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12039 type.
12040 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12041 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12042 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12043 * gdbarch.c, gdbarch.h: Rebuild.
12044 * gdbarch.sh (core_pid_to_str): Change return type.
12045 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12046 return type.
12047 (windows_nat_target::pid_to_str): Change return type.
12048 (windows_delete_thread): Update.
12049 (windows_nat_target::attach): Update.
12050 (windows_nat_target::files_info): Update.
12051 * target-delegates.c: Rebuild.
12052 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12053 return type.
12054 (sol_thread_target::pid_to_str): Change return type.
12055 * remote.c (class remote_target) <pid_to_str>: Change return
12056 type.
12057 (remote_target::pid_to_str): Change return type.
12058 (extended_remote_target::attach, remote_target::remote_stop_ns)
12059 (remote_target::remote_notif_remove_queued_reply)
12060 (remote_target::push_stop_reply, remote_target::disable_btrace):
12061 Update.
12062 (extended_remote_target::attach): Update.
12063 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12064 type.
12065 (gdbsim_target::pid_to_str): Change return type.
12066 * ravenscar-thread.c (struct ravenscar_thread_target)
12067 <pid_to_str>: Change return type.
12068 (ravenscar_thread_target::pid_to_str): Change return type.
12069 * procfs.c (class procfs_target) <pid_to_str>: Change return
12070 type.
12071 (procfs_target::pid_to_str): Change return type.
12072 (procfs_target::attach): Update.
12073 (procfs_target::detach): Update.
12074 (procfs_target::fetch_registers): Update.
12075 (procfs_target::store_registers): Update.
12076 (procfs_target::wait): Update.
12077 (procfs_target::files_info): Update.
12078 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12079 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12080 return type.
12081 (nto_procfs_target::pid_to_str): Change return type.
12082 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12083 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12084 return type.
12085 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12086 (exit_lwp): Update.
12087 (attach_proc_task_lwp_callback, get_detach_signal)
12088 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12089 (linux_nat_target::resume, wait_lwp, stop_callback)
12090 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12091 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12092 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12093 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12094 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12095 type.
12096 (inf_ptrace_target::attach): Update.
12097 (inf_ptrace_target::files_info): Update.
12098 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12099 type.
12100 (go32_nat_target::pid_to_str): Change return type.
12101 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12102 (gnu_nat_target::wait): Update.
12103 (gnu_nat_target::wait): Update.
12104 (gnu_nat_target::resume): Update.
12105 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12106 (fbsd_nat_target::wait): Update.
12107 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12108 type.
12109 (darwin_nat_target::attach): Update.
12110 * corelow.c (class core_target) <pid_to_str>: Change return type.
12111 (core_target::pid_to_str): Change return type.
12112 * target.c (normal_pid_to_str): Change return type.
12113 (default_pid_to_str): Likewise.
12114 (target_pid_to_str): Change return type.
12115 (target_translate_tls_address): Update.
12116 (target_announce_detach): Update.
12117 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12118 return type.
12119 (bsd_uthread_target::pid_to_str): Change return type.
12120 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12121 type.
12122 (bsd_kvm_target::pid_to_str): Change return type.
12123 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12124 return type.
12125 (aix_thread_target::pid_to_str): Change return type.
12126 * target.h (struct target_ops) <pid_to_str>: Change return type.
12127 (target_pid_to_str, normal_pid_to_str): Likewise.
12128 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12129 type.
12130 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12131 type.
12132 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12133 return type.
12134 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12135 type.
12136 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12137 type.
12138 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12139 return type.
12140
b4be1b06
SM
121412019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12142
12143 * NEWS: Mention that the new default MI version is 3. Mention
12144 changes to the output of commands and events that deal with
12145 multi-location breakpoints.
12146 * breakpoint.c: Include "mi/mi-out.h".
12147 (print_one_breakpoint): Change output syntax if using MI version
12148 >= 3.
12149 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12150 New.
12151 (mi_multi_location_breakpoint_output_fixed): New.
12152 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12153 (mi_cmd_fix_multi_location_breakpoint_output): New.
12154 (mi_multi_location_breakpoint_output_fixed): New.
12155 * mi/mi-cmds.c (mi_cmds): Register command
12156 -fix-multi-location-breakpoint-output.
12157 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12158 interpreter "mi".
12159
8e5e5494
SM
121602019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12161
12162 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12163 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12164 instantiate mi_ui_out based on interpreter name.
12165 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12166 * mi/mi-main.c (mi_load_progress): Likewise.
12167
197df35e
JB
121682019-03-12 John Baldwin <jhb@FreeBSD.org>
12169
12170 * NEWS: Combine separate "New targets" sections for 8.3.
12171
8399425f
JB
121722019-03-12 John Baldwin <jhb@FreeBSD.org>
12173
12174 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12175 (ppcfbsd_init_abi): Install gdbarch
12176 "fetch_tls_load_module_address" and "get_thread_local_address"
12177 methods.
12178
b0f87ed0
JB
121792019-03-12 John Baldwin <jhb@FreeBSD.org>
12180
12181 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12182 (riscv_fbsd_init_abi): Install gdbarch
12183 "fetch_tls_load_module_address" and "get_thread_local_address"
12184 methods.
12185
ce25aa57
JB
121862019-03-12 John Baldwin <jhb@FreeBSD.org>
12187
12188 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12189 (i386fbsd_init_abi): Install gdbarch
12190 "fetch_tls_load_module_address" and "get_thread_local_address"
12191 methods.
12192
f5424cfa
JB
121932019-03-12 John Baldwin <jhb@FreeBSD.org>
12194
12195 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12196 (amd64fbsd_init_abi): Install gdbarch
12197 "fetch_tls_load_module_address" and "get_thread_local_address"
12198 methods.
12199
945f3901
JB
122002019-03-12 John Baldwin <jhb@FreeBSD.org>
12201
12202 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12203 (struct fbsd_pspace_data): New type.
12204 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12205 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12206 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12207 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12208 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12209
ef0bd204
JB
122102019-03-12 John Baldwin <jhb@FreeBSD.org>
12211
12212 * gdbtypes.c (lookup_struct_elt): New function.
12213 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12214 * gdbtypes.h (struct struct_elt): New type.
12215 (lookup_struct_elt): New prototype.
12216
36c53a02
JB
122172019-03-12 John Baldwin <jhb@FreeBSD.org>
12218
12219 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12220 remove disabled code block.
12221
6e056c81
JB
122222019-03-12 John Baldwin <jhb@FreeBSD.org>
12223
12224 * gdbarch.sh (get_thread_local_address): New method.
12225 * gdbarch.h, gdbarch.c: Regenerate.
12226 * target.c (target_translate_tls_address): Use
12227 gdbarch_get_thread_local_address if present instead of
12228 target::get_thread_local_address.
12229
cd250a18
JB
122302019-03-12 John Baldwin <jhb@FreeBSD.org>
12231
12232 * target.h (target::get_thread_local_address): Update comment.
12233
df22c1e5
JB
122342019-03-12 John Baldwin <jhb@FreeBSD.org>
12235
12236 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12237 objfile->separate_debug_objfile_backlink if not NULL.
12238
dd6876c9
JB
122392019-03-12 John Baldwin <jhb@FreeBSD.org>
12240
12241 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12242 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12243 (amd64bsd_store_inferior_registers): Likewise.
12244 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12245 Enable segment base registers.
12246 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12247 PT_GETFSBASE and PT_GETGSBASE.
12248 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12249 PT_SETGSBASE.
12250 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12251 segment base registers.
12252 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12253
1163a4b7
JB
122542019-03-12 John Baldwin <jhb@FreeBSD.org>
12255
12256 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12257 Update calls to i386_target_description to add 'segments'
12258 parameter.
12259 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12260 add segment base registers.
12261 * arch/i386.c (i386_create_target_description): Add 'segments'
12262 parameter to enable segment base registers.
12263 * arch/i386.h (i386_create_target_description): Likewise.
12264 * features/i386/32bit-segments.xml: New file.
12265 * features/i386/32bit-segments.c: Generate.
12266 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12267 call to i386_target_description to add 'segments' parameter.
12268 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12269 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12270 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12271 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12272 if feature is present.
12273 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12274 Add 'segments' parameter to call to i386_target_description.
12275 (i386_target_description): Add 'segments' parameter to enable
12276 segment base registers.
12277 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12278 to call to i386_target_description.
12279 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12280 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12281 Define I386_NUM_REGS.
12282 (i386_target_description): Add 'segments' parameter to enable
12283 segment base registers.
12284
3a350822
EZ
122852019-03-12 Eli Zaretskii <eliz@gnu.org>
12286
12287 PR/24325
12288 * source-cache.c: #undef open and close, to avoid unresolved
12289 externals during linking.
12290
ffdd69cf
TT
122912019-03-12 Tom Tromey <tromey@adacore.com>
12292
12293 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12294 const. Add initializers.
12295 (_initialize_remote): Don't initialize ptid globals.
12296
ec148c57
PA
122972019-03-12 Pedro Alves <palves@redhat.com>
12298
12299 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12300
32764270
PA
123012019-03-12 Pedro Alves <palves@redhat.com>
12302
12303 * cp-name-parser.y (main): Remove unused 'len' variable.
12304
17547186
TT
123052019-03-12 Tom Tromey <tromey@adacore.com>
12306
12307 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12308 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12309
d3a70e03
TT
123102019-03-12 Tom Tromey <tromey@adacore.com>
12311
12312 * linux-nat.c (iterate_over_lwps): Update.
12313 (stop_callback): Remove parameter.
12314 (stop_wait_callback, detach_callback, resume_set_callback)
12315 (select_singlestep_lwp_callback, set_ignore_sigint)
12316 (status_callback, resumed_callback, resume_clear_callback)
12317 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12318 data parameter.
12319 (linux_nat_target::detach, linux_nat_target::resume)
12320 (linux_stop_and_wait_all_lwps, select_event_lwp)
12321 (linux_nat_filter_event, linux_nat_wait_1)
12322 (linux_nat_target::kill, linux_nat_target::stop)
12323 (linux_nat_target::stop): Update.
12324 (linux_nat_resume_callback): Change type.
12325 (resume_stopped_resumed_lwps, count_events_callback)
12326 (select_event_lwp_callback): Likewise.
12327 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12328 * arm-linux-nat.c (struct update_registers_data): Remove.
12329 (update_registers_callback): Change type.
12330 (arm_linux_insert_hw_breakpoint1): Update.
12331 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12332 parameter.
12333 (x86_linux_dr_set_addr): Update.
12334 (x86_linux_dr_set_control): Update.
12335 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12336 (iterate_over_lwps): Use gdb::function_view.
12337 * nat/aarch64-linux-hw-point.c (struct
12338 aarch64_dr_update_callback_param): Remove.
12339 (debug_reg_change_callback): Change type.
12340 (aarch64_notify_debug_reg_change): Update.
12341 * s390-linux-nat.c (s390_refresh_per_info): Update.
12342
82cb27ff
TT
123432019-03-11 Tom Tromey <tromey@adacore.com>
12344
12345 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12346 redundant assignment to "this_cu".
12347
568c0683
SM
123482019-03-08 Simon Marchi <simon.marchi@efficios.com>
12349
12350 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12351
f09ce22d
SM
123522019-03-08 Simon Marchi <simon.marchi@efficios.com>
12353
12354 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12355 from...
12356 (rank_one_type): ... this.
12357
595f96a9
SM
123582019-03-08 Simon Marchi <simon.marchi@efficios.com>
12359
12360 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12361 from...
12362 (rank_one_type): ... this.
12363
2598a94b
SM
123642019-03-08 Simon Marchi <simon.marchi@efficios.com>
12365
12366 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12367 from...
12368 (rank_one_type): ... this.
12369
7f17b20d
SM
123702019-03-08 Simon Marchi <simon.marchi@efficios.com>
12371
12372 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12373 from...
12374 (rank_one_type): ... this.
12375
2c509035
SM
123762019-03-08 Simon Marchi <simon.marchi@efficios.com>
12377
12378 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12379 from...
12380 (rank_one_type): ... this.
12381
0dd322dc
SM
123822019-03-08 Simon Marchi <simon.marchi@efficios.com>
12383
12384 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12385 from...
12386 (rank_one_type): ... this.
12387
41ea4728
SM
123882019-03-08 Simon Marchi <simon.marchi@efficios.com>
12389
12390 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12391 from...
12392 (rank_one_type): ... this.
12393
793cd1d2
SM
123942019-03-08 Simon Marchi <simon.marchi@efficios.com>
12395
12396 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12397 from...
12398 (rank_one_type): ... this.
12399
34910087
SM
124002019-03-08 Simon Marchi <simon.marchi@efficios.com>
12401
12402 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12403 from...
12404 (rank_one_type): ... this.
12405
f1f832d6
SM
124062019-03-08 Simon Marchi <simon.marchi@efficios.com>
12407
12408 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12409 from...
12410 (rank_one_type): ... this.
12411
b9f4512f
SM
124122019-03-08 Simon Marchi <simon.marchi@efficios.com>
12413
12414 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12415 from...
12416 (rank_one_type): ... this.
12417
9293fc63
SM
124182019-03-08 Simon Marchi <simon.marchi@efficios.com>
12419
12420 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12421 from...
12422 (rank_one_type): ... this.
12423
e3abbe7e
PW
124242019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12425
12426 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12427 inferior-events' shows the example events.
12428
e4adb939
EZ
124292019-03-08 Eli Zaretskii <eliz@gnu.org>
12430
12431 Support styling on native MS-Windows console
12432
12433 PR/24315
12434 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12435 on MS-Windows if $TERM is not defined.
12436
12437 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12438
12439 * posix-hdep.c (gdb_console_fputs):
12440 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12441 functions.
12442 * ui-file.h (gdb_console_fputs): Add prototype.
12443
12444 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12445 back to fputs only if the former returns zero.
12446
25629dfd
TT
124472019-03-07 Tom Tromey <tom@tromey.com>
12448
12449 * symmisc.c (print_symbol_bcache_statistics): Update.
12450 (print_objfile_statistics): Update.
12451 * symfile.c (allocate_symtab): Update.
12452 * stabsread.c: Don't include bcache.h.
12453 * psymtab.h (struct psymbol_bcache): Don't declare.
12454 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12455 (psymbol_bcache_init, psymbol_bcache_free)
12456 (psymbol_bcache_get_bcache): Don't declare.
12457 * psymtab.c (struct psymbol_bcache): Remove.
12458 (psymtab_storage::psymtab_storage): Update.
12459 (psymtab_storage::~psymtab_storage): Update.
12460 (psymbol_bcache_init, psymbol_bcache_free)
12461 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12462 (add_psymbol_to_bcache): Update.
12463 (allocate_psymtab): Update.
12464 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12465 macro_cache>: No longer pointers.
12466 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12467 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12468 * macrotab.c (macro_bcache): Update.
12469 * macroexp.c: Don't include bcache.h.
12470 * gdbtypes.c (check_types_worklist): Update.
12471 (types_deeply_equal): Remove TRY/CATCH. Update.
12472 * elfread.c (elf_symtab_read): Update.
12473 * dwarf2read.c: Don't include bcache.h.
12474 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12475 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12476 (print_bcache_statistics, bcache_memory_used): Don't declare.
12477 (struct bcache): Move from bcache.c. Add constructor, destructor,
12478 methods. Rename all data members.
12479 * bcache.c (struct bcache): Move to bcache.h.
12480 (bcache::expand_hash_table): Rename from expand_hash_table.
12481 (bcache): Remove.
12482 (bcache::insert): Rename from bcache_full.
12483 (bcache::compare): Rename from bcache_compare.
12484 (bcache_xmalloc): Remove.
12485 (bcache::~bcache): Rename from bcache_xfree.
12486 (bcache::print_statistics): Rename from print_bcache_statistics.
12487 (bcache::memory_used): Rename from bcache_memory_used.
12488
fe726667
PA
124892019-03-07 Pedro Alves <palves@redhat.com>
12490
12491 * infrun.c (normal_stop): Also check for
12492 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12493
7584bb30
AB
124942019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12495
12496 * f-lang.c (value_from_host_double): Moved to...
12497 * value.c (value_from_host_double): ...here.
12498 * value.h (value_from_host_double): Declare.
12499 * guile/scm-math.c (vlscm_convert_typed_number): Use
12500 value_from_host_double.
12501 (vlscm_convert_number): Likewise.
12502 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12503 * python/py-value.c (convert_value_from_python): Likewise.
12504
a7b1986e
TT
125052019-03-06 Tom Tromey <tom@tromey.com>
12506
12507 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12508
0ccf4211
TT
125092019-03-06 Tom Tromey <tom@tromey.com>
12510
12511 * utils.h (free_current_contents): Don't declare.
12512 * utils.c (free_current_contents): Remove.
12513
fe7b42e5
TT
125142019-03-06 Tom Tromey <tom@tromey.com>
12515
12516 * top.c (quit_force): Update.
12517 * main.c (captured_command_loop): Update.
12518 * common/new-op.c (operator new): Update.
12519 * common/common-exceptions.c (struct catcher)
12520 <save_cleanup_chain>: Remove member.
12521 (exceptions_state_mc_init): Update.
12522 (exception_try_scope_entry): Return nullptr.
12523 (exception_try_scope_exit, exception_rethrow)
12524 (throw_exception_sjlj, throw_exception_cxx): Update.
12525 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12526 (all_cleanups, do_cleanups, discard_cleanups)
12527 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12528 (restore_cleanups, restore_final_cleanups): Don't declare.
12529 (do_final_cleanups): Remove parameter.
12530 * common/cleanups.c (cleanup_chain, make_cleanup)
12531 (make_cleanup_dtor, all_cleanups, do_cleanups)
12532 (discard_my_cleanups, discard_cleanups)
12533 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12534 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12535 (null_cleanup): Remove.
12536 (do_final_cleanups): Remove parameter.
12537
c6321f19
TT
125382019-03-06 Tom Tromey <tom@tromey.com>
12539
12540 * remote.c (remote_target::remote_parse_stop_reply): Use
12541 unique_xmalloc_ptr.
12542
61b30099
TT
125432019-03-06 Tom Tromey <tom@tromey.com>
12544
12545 * stabsread.c (struct stabs_field_info): Rename from field_info.
12546 <list, fnlist>: Add initializers.
12547 <obstack>: New member.
12548 (read_member_functions, read_struct_fields, read_baseclasses):
12549 Allocate on obstack. Don't use cleanups.
12550 (read_one_struct_field, read_member_functions, read_struct_fields)
12551 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12552 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12553 (read_struct_type): Update.
12554
6cceac94
TT
125552019-03-06 Tom Tromey <tom@tromey.com>
12556
12557 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12558 * common/filestuff.h (make_cleanup_close): Don't declare.
12559 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12560 Remove.
12561
72412762
TT
125622019-03-06 Tom Tromey <tom@tromey.com>
12563
12564 * solib-aix.c: Use make_scope_exit.
12565
2b6ff1c0
TT
125662019-03-06 Tom Tromey <tom@tromey.com>
12567
12568 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12569 Use make_scope_exit.
12570
d01c5877
TT
125712019-03-06 Tom Tromey <tom@tromey.com>
12572
12573 * solib-svr4.c (disable_probes_interface): Remove parameter.
12574 (svr4_handle_solib_event): Use make_scope_exit.
12575
32603266
TT
125762019-03-06 Tom Tromey <tom@tromey.com>
12577
12578 * remote.c (struct stop_reply_deleter): Remove.
12579 (stop_reply_up): Update.
12580 (struct stop_reply): Derive from notif_event. Don't typedef.
12581 <regcache>: Now a std::vector.
12582 (stop_reply_xfree): Remove.
12583 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12584 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12585 (remote_target::discard_pending_stop_replies): Use delete.
12586 (remote_target::remote_parse_stop_reply): Update.
12587 (remote_target::process_stop_reply): Update.
12588 * remote-notif.h (struct notif_event): Add virtual destructor.
12589 Remove "dtr" member.
12590 (struct notif_client) <alloc_event>: Return a unique_ptr.
12591 (notif_event_xfree): Don't declare.
12592 (notif_event_up): New typedef.
12593 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12594 (notif_event_xfree, do_notif_event_xfree): Remove.
12595 (remote_notif_state_xfree): Update.
12596
9799571e
TT
125972019-03-06 Tom Tromey <tom@tromey.com>
12598
12599 * infrun.c (displaced_step_clear_cleanup): Now a
12600 forward_scope_exit type.
12601 (displaced_step_prepare_throw): Update.
12602 (displaced_step_fixup): Update.
12603
09e3c4ca
TT
126042019-03-06 Tom Tromey <tom@tromey.com>
12605
12606 * inferior.h (class inferior): Update comment.
12607 * gdbthread.h (class thread_info): Update comment.
12608
e2a03548
TT
126092019-03-06 Joel Brobecker <brobecker@adacore.com>
12610 Tom Tromey <tom@tromey.com>
12611
12612 * stabsread.h (struct stab_section_list): Remove.
12613 (coffstab_build_psymtabs): Update.
12614 * dbxread.c (symbuf_sections): Now a std::vector.
12615 (sect_idx): New global.
12616 (fill_symbuf): Update.
12617 (coffstab_build_psymtabs): Change type of stabsects parameter.
12618 Update.
12619 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12620 std::vector.
12621 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12622 (coff_locate_sections): Update.
12623 (coff_symfile_read): Remove cleanups. Update.
12624 (init_stringtab): Add storage parameter.
12625 (free_stringtab, free_stringtab_cleanup): Remove.
12626 (init_lineno): Add storage parameter.
12627 (free_linetab, free_linetab_cleanup): Remove.
12628
b7e60d85
PA
126292019-03-06 Pedro Alves <palves@redhat.com>
12630
12631 * linux-fork.c (fork_info::clobber_regs): Delete.
12632 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12633 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12634 comment. Adjust.
12635 (scoped_switch_fork_info::scoped_switch_fork_info)
12636 (checkpoint_command, linux_fork_context): Adjust
12637 fork_save_infrun_state calls.
12638
e52c971f
PA
126392019-03-06 Pedro Alves <palves@redhat.com>
12640
12641 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12642 (inf_has_multiple_threads): Return 'bool' and rewrite using
12643 inferior_info::threads().
12644
06974e6c
PA
126452019-03-06 Pedro Alves <palves@redhat.com>
12646
12647 * linux-fork.c: Include <list>.
12648 (fork_list): Now a std::list instance.
12649 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12650 (forks_exist_p, find_last_fork): Adjust.
12651 (new_fork): Delete.
12652 (one_fork_p): New.
12653 (add_fork): Adjust.
12654 (free_fork): Delete, folded into fork_info::~fork_info().
12655 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12656 Adjust.
12657 (init_fork_list): Delete.
12658 (linux_fork_killall, linux_fork_mourn_inferior)
12659 (linux_fork_detach, info_checkpoints_command): Adjust.
12660 (_initialize_linux_fork): No longer call init_fork_list.
12661
72f31aea
PA
126622019-03-06 Pedro Alves <palves@redhat.com>
12663
12664 * linux-fork.c (new_fork): New, split out of ...
12665 (add_fork): ... this. Return void. Move "first fork" special
12666 case from here, to ...
12667 (checkpoint_command): ... here.
12668 * linux-linux.h (add_fork): Return void.
12669
efbecbc1
AB
126702019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12671
12672 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12673
0841c79a
AB
126742019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12675 Chris January <chris.january@arm.com>
12676 David Lecomber <david.lecomber@arm.com>
12677
12678 * f-exp.y: New token, UNOP_INTRINSIC.
12679 (exp): New pattern using UNOP_INTRINSIC token.
12680 (f77_keywords): Add 'abs' keyword.
12681 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12682 (value_from_host_double): New function.
12683 (evaluate_subexp_f): Support UNOP_ABS.
12684
4a270568
AB
126852019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12686
12687 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12688 types.
12689
067630bd
AB
126902019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12691
12692 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12693 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12694 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12695
3be47f7a
AB
126962019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12697
12698 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12699
4d00f5d8
AB
127002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12701 Chris January <chris.january@arm.com>
12702
12703 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12704 * f-exp.y: Define 'KIND' token.
12705 (exp): New pattern for KIND expressions.
12706 (ptype): Handle types with a kind extension.
12707 (direct_abs_decl): Extend to spot kind extensions.
12708 (f77_keywords): Add 'kind' to the list.
12709 (push_kind_type): New function.
12710 (convert_to_kind_type): New function.
12711 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12712 * parse.c (operator_length_standard): Likewise.
12713 * parser-defs.h (enum type_pieces): Add tp_kind.
12714 * std-operator.def: Add UNOP_KIND.
12715
e454224f
AB
127162019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12717
12718 * f-exp.y (f_parse): Set yydebug.
12719
9dad4a58
AB
127202019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12721
12722 * f-lang.c (evaluate_subexp_f): New function.
12723 (exp_descriptor_f): New global.
12724 (f_language_defn): Use exp_descriptor_f instead of
12725 exp_descriptor_standard.
12726
c8f91604
AB
127272019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12728
12729 * f-exp.y (struct token): Add comments.
12730 (dot_ops): Remove uppercase versions and the end marker.
12731 (f77_keywords): Likewise.
12732 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12733 entries in the dot_ops array are case insensitive, and use
12734 strncasecmp to compare strings. Also some whitespace cleanup in
12735 this area. Similar for the f77_keywords array, except entries in
12736 this list might be case sensitive.
12737
dd9f2c76
AB
127382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12739
12740 * f-exp.y (struct f77_boolean_val): Add comments.
12741 (boolean_values): Remove uppercase versions, and end marker.
12742 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12743 and use strncasecmp to achieve case insensitivity. Additionally,
12744 perform whitespace cleanup around this code.
12745
67a3048c
TT
127462019-03-06 Tom Tromey <tromey@adacore.com>
12747
12748 * remote-sim.c (gdbsim_target_open): Use result of
12749 gdb_argv::release.
12750
aa3cfbda
RB
127512019-03-06 Richard Bunt <richard.bunt@arm.com>
12752 Dirk Schubert <dirk.schubert@arm.com>
12753 Chris January <chris.january@arm.com>
12754
12755 * eval.c (evaluate_subexp_standard): Call Fortran argument
12756 wrapping logic.
12757 * f-lang.c (struct value): A value which can be passed into a
12758 Fortran function call.
12759 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12760 where appropriate.
12761 (struct type): Value ready for a Fortran function call.
12762 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12763 is needed.
12764 * f-lang.h (fortran_argument_convert): Declaration.
12765 (fortran_preserve_arg_pointer): Declaration.
12766 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12767
ea38e5df
TT
127682019-03-05 Tom Tromey <tromey@adacore.com>
12769
12770 * python/py-prettyprint.c (print_string_repr): Remove #if.
12771 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12772
06b5b831
TT
127732019-03-05 Tom Tromey <tromey@adacore.com>
12774
12775 * target.c (the_dummy_target): Move later. Change type to
12776 "dummy_target".
12777 (initialize_targets): Don't initialize the_dummy_target.
12778
edbd9e45
TT
127792019-03-05 Tom Tromey <tromey@adacore.com>
12780
12781 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12782 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12783
c119e040
TT
127842019-03-05 Tom Tromey <tromey@adacore.com>
12785
12786 * windows-nat.c (windows_nat_target::attach)
12787 (windows_nat_target::detach): Don't call gdb_flush.
12788 * valprint.c (generic_val_print, val_print, val_print_string):
12789 Don't call gdb_flush.
12790 * utils.c (defaulted_query): Don't call gdb_flush.
12791 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12792 * target.c (target_announce_detach): Don't call gdb_flush.
12793 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12794 * remote.c (extended_remote_target::attach): Don't call
12795 gdb_flush.
12796 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12797 * printcmd.c (do_examine): Don't call gdb_flush.
12798 (info_display_command): Don't call gdb_flush.
12799 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12800 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12801 * memattr.c (info_mem_command): Don't call gdb_flush.
12802 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12803 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12804 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12805 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12806 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12807 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12808 (gnu_nat_target::detach): Don't call gdb_flush.
12809 * f-valprint.c (f_val_print): Don't call gdb_flush.
12810 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12811 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12812 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12813 gdb_flush.
12814 * c-valprint.c (c_val_print): Don't call gdb_flush.
12815 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12816
895dafa6
TT
128172019-03-05 Tom Tromey <tromey@adacore.com>
12818
12819 * varobj.c (update_dynamic_varobj_children): Update.
12820 (install_default_visualizer): Use reset, not release.
12821 * value.c (set_internalvar): Update.
12822 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12823 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12824 ATTRIBUTE_UNUSED_RESULT.
12825
88a774b9
TT
128262019-03-05 Tom Tromey <tromey@adacore.com>
12827
12828 * remote.c (class scoped_remote_fd) <release>: Add
12829 ATTRIBUTE_UNUSED_RESULT.
12830
4e4a8b93
TT
128312019-03-05 Tom Tromey <tromey@adacore.com>
12832
12833 * macroexp.c (struct macro_buffer) <release>: Add
12834 ATTRIBUTE_UNUSED_RESULT.
12835
083eef1f
TT
128362019-03-05 Tom Tromey <tromey@adacore.com>
12837
12838 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12839 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12840 ATTRIBUTE_UNUSED_RESULT.
12841
3cabd438
TT
128422019-03-05 Tom Tromey <tromey@adacore.com>
12843
12844 * common/scoped_fd.h (class scoped_fd) <release>: Add
12845 ATTRIBUTE_UNUSED_RESULT.
12846
41e3300a
TT
128472019-03-05 Tom Tromey <tromey@adacore.com>
12848
12849 * parser-defs.h (struct parser_state) <release>: Add
12850 ATTRIBUTE_UNUSED_RESULT.
12851
18cb7c9f
TT
128522019-03-05 Tom Tromey <tromey@adacore.com>
12853
12854 * utils.h (class gdb_argv) <release>: Add
12855 ATTRIBUTE_UNUSED_RESULT.
12856 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12857
41fa577f
EZ
128582019-03-02 Eli Zaretskii <eliz@gnu.org>
12859
a6a4b2c6
EZ
12860 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12861 for-loop range, to avoid compiler warnings.
12862
12863 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12864 avoid compiler warnings about unused variables.
12865
742a7df5
EZ
12866 * NEWS: Mention end of support for native debugging on MS-Windows
12867 before XP.
12868
41fa577f
EZ
12869 PR gdb/24292
12870 * common/netstuff.c:
12871 * gdbserver/gdbreplay.c
12872 * gdbserver/remote-utils.c:
12873 * ser-tcp.c:
12874 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12875 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12876 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12877 'getaddrinfo' and 'freeaddrinfo' were not available before
12878 Windows XP, and mingw.org's MinGW headers by default define
12879 _WIN32_WINNT to 0x500.
12880
827f438f
GB
128812019-03-01 Gary Benson <gbenson@redhat.com>
12882
12883 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12884
92137da0
RO
128852019-02-28 Brian Vandenberg <phantall@gmail.com>
12886 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12887
12888 PR gdb/8527
12889 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12890 set_sigint_trap, clear_sigint_trap.
12891
799efbe8
PW
128922019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12893
12894 * target.c (target_detach): Clear the regcache and the
12895 frame cache.
12896
8ed25214
PA
128972019-02-27 Pedro Alves <palves@redhat.com>
12898
12899 * utils.c (set_screen_size): When we cap the height/width sizes,
12900 tweak the corresponding command variable to show "unlimited":
12901
23031e31
SJ
129022019-02-27 Saagar Jha <saagar@saagarjha.com>
12903 Pedro Alves <palves@redhat.com>
12904
12905 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12906 before calling rl_set_screen_size.
12907
6c28e44a
TT
129082019-02-27 Tom Tromey <tromey@adacore.com>
12909
12910 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12911 define.
12912 * python/py-value.c: Remove Python 2.4 workaround.
12913 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12914 workaround.
12915 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12916 Python 2.4 workaround.
12917 * python/python-internal.h: Remove Python 2.4 comment.
12918 (Py_ssize_t): Don't define.
12919 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12920 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12921 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12922 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12923 * python/python.c (do_start_initialization): Remove Python 2.4
12924 workaround.
12925 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12926 (print_children): Remove Python 2.4 workaround.
12927 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12928 workaround.
12929 (CHARBUFFERPROC_NAME): Remove.
12930 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12931 Python 2.4 workaround.
12932
2c3fc25d 129332019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 12934
2c3fc25d
KB
12935 * NEWS: Note minimum Python version.
12936
6ca62222
KB
129372019-02-27 Kevin Buettner <kevinb@redhat.com>
12938
12939 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12940 code from these functions. Remove corresponding ifdefs. Use
12941 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12942 Remove gotos and target of gotos.
12943 (infpy_search_memory): Likewise.
12944
f4bc7d2c
AB
129452019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12946
12947 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12948 (hppa_gdbarch_init): Don't register deleted functions with
12949 gdbarch.
12950
9734a586
AB
129512019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12952
12953 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12954 (h8300_unwind_sp): Delete.
12955 (h8300_dummy_id): Delete.
12956 (h8300_gdbarch_init): Don't register deleted functions with
12957 gdbarch.
12958
68b867f3
AB
129592019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12960
12961 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12962 (ft32_unwind_pc): Delete.
12963 (ft32_unwind_sp): Delete.
12964 (ft32_gdbarch_init): Don't register deleted functions with
12965 gdbarch.
12966
2fbe7ad0
AB
129672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12968
12969 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12970 (frv_unwind_pc): Delete.
12971 (frv_unwind_sp): Delete.
12972 (frv_gdbarch_init): Don't register deleted functions with
12973 gdbarch.
12974
76055cbe
AB
129752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12976
12977 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12978 (riscv_unwind_pc): Delete.
12979 (riscv_unwind_sp): Delete.
12980 (riscv_gdbarch_init): Don't register deleted functions with
12981 gdbarch.
12982
4133e5a1
AB
129832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12984
12985 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12986 (csky_unwind_pc): Delete.
12987 (csky_unwind_sp): Delete.
12988 (csky_gdbarch_init): Don't register deleted functions with
12989 gdbarch.
12990
8010f576
AB
129912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12992
12993 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12994 (cris_unwind_pc): Delete.
12995 (cris_unwind_sp): Delete.
12996 (cris_gdbarch_init): Don't register deleted functions with
12997 gdbarch.
12998
b56bf084
AB
129992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13000
13001 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13002 (bfin_unwind_pc): Delete.
13003 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13004
a19a650f
AB
130052019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13006
13007 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13008 (arm_unwind_pc): Delete.
13009 (arm_unwind_sp): Delete.
13010 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13011
f8278c3c
AB
130122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13013
13014 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13015 (arc_unwind_pc): Delete.
13016 (arc_unwind_sp): Delete.
13017 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13018
480e46cf
AB
130192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13020
13021 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13022 (alpha_unwind_pc): Delete.
13023 (alpha_gdbarch_init): Don't register deleted functions with
13024 gdbarch.
13025
7a995095
AB
130262019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13027
13028 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13029 (aarch64_unwind_pc): Delete.
13030 (aarch64_unwind_sp): Delete.
13031 (aarch64_gdbarch_init): Don't register deleted functions with
13032 gdbarch.
13033
bf9a735e
AB
130342019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13035
13036 * gdbtypes.c (type_align): Don't consider static members when
13037 computing structure alignment.
13038
5561fc30
AB
130392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13040
13041 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13042 return 0 for other types.
13043 * arch-utils.c (default_type_align): Always return 0.
13044 * gdbarch.h: Regenerate.
13045 * gdbarch.sh (type_align): Extend comment.
13046 * gdbtypes.c (type_align): Add additional comments, always call
13047 gdbarch_type_align before applying the default rules.
13048 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13049 generic code will then apply a suitable default.
13050 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13051 types, return 0 for other types.
13052
9335e75a
JB
130532019-02-27 Joel Brobecker <brobecker@adacore.com>
13054
13055 * NEWS: Create a new section for the next release branch.
13056 Rename the section of the current branch, now that it has
13057 been cut.
13058
3d34d8de
JB
130592019-02-27 Joel Brobecker <brobecker@adacore.com>
13060
13061 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13062 * version.in: Bump version to 8.3.50.DATE-git.
13063
143420fb
SM
130642019-02-26 Simon Marchi <simon.marchi@efficios.com>
13065
13066 * aix-thread.c (ptid_cmp): Remove unused variable.
13067 (get_signaled_thread): Likewise.
13068 (store_regs_user_thread): Likewise.
13069 (store_regs_kernel_thread): Likewise.
13070 (fetch_regs_kernel_thread): Remove shadowed variable.
13071
172fb711
AB
130722019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13073
13074 * features/riscv/32bit-cpu.xml: Add register numbers.
13075 * features/riscv/32bit-fpu.c: Regenerate.
13076 * features/riscv/32bit-fpu.xml: Add register numbers.
13077 * features/riscv/64bit-cpu.xml: Add register numbers.
13078 * features/riscv/64bit-fpu.c: Regenerate.
13079 * features/riscv/64bit-fpu.xml: Add register numbers.
13080
26c89782
KB
130812019-02-26 Kevin Buettner <kevinb@redhat.com>
13082
af54ade9 13083 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13084 * python/py-value.c (convert_buffer_and_type_to_value): New
13085 function.
13086 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13087 Add support for handling an optional second argument. Call
13088 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13089 * python/python-internal.h (Py_buffer_deleter): New struct.
13090 (Py_buffer_up): New typedef.
13091
0f58c9e8
JB
130922019-02-25 John Baldwin <jhb@FreeBSD.org>
13093
13094 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13095 instead of releasing ownership.
13096
0a0f4c01
JR
130972019-02-25 Jordan Rupprecht <rupprecht@google.com>
13098
13099 * dwarf2read.c (open_and_init_dwp_file): Call
13100 elf_numsections instead of bfd_count_sections to initialize
13101 dwp_file->num_sections.
13102
cd5a152c
TT
131032019-02-25 Tom Tromey <tromey@adacore.com>
13104
13105 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13106
8a6a8513
SDJ
131072019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13108
13109 * gcore.in: Add '--readnever' option when invoking GDB.
13110
04dcda9c
SM
131112019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13112
13113 * MAINTAINERS: Update my email address.
13114
07bc701d
SM
131152019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13116
13117 * build-id.c (build_id_to_debug_bfd_1): New function.
13118 (build_id_to_debug_bfd): Look for separate debug file in
13119 sysroot.
13120
c6f4a5d0
AB
131212019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13122
13123 * gdbarch.sh: Update the copyright year range that is placed into
13124 generated files.
13125
9600246d
KS
131262019-02-22 Keith Seitz <keiths@redhat.com>
13127
13128 PR symtab/23853
13129 * linespec.c (create_sals_line_offset): Search for the default
13130 symtab's filename instead of its fullname.
13131
7557a514
AH
131322019-02-21 Alan Hayward <alan.hayward@arm.com>
13133
13134 * NEWS: Update style defaults.
13135
ee2bcb0c
AH
131362019-02-21 Alan Hayward <alan.hayward@arm.com>
13137
13138 * main.c (captured_main_1): Disable styling in batch mode.
13139
0c95f9ed
TT
131402019-02-20 Tom Tromey <tom@tromey.com>
13141
13142 * symtab.c (symtab_symbol_info): Fix typos.
13143
c763b894
TT
131442019-02-20 Tom Tromey <tromey@adacore.com>
13145
13146 * findcmd.c (_initialize_mem_search): Use upper case for
13147 metasyntactic variables.
13148
0ef8a082
AH
131492019-02-20 Alan Hayward <alan.hayward@arm.com>
13150
13151 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13152 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13153
6caa91b6
SM
131542019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13155
13156 * top.h (source_file_name): Change to std::string.
13157 * top.c (source_file_name): Likewise.
13158 (command_line_input): Adjust.
13159 * cli/cli-script.c (script_from_file): Adjust.
13160
98814c6c
TT
131612019-02-19 Tom Tromey <tromey@adacore.com>
13162
13163 * ravenscar-thread.c
13164 (ravenscar_thread_target::update_thread_list): Don't call
13165 ada_build_task_list.
13166 * ada-lang.h (ada_build_task_list): Don't declare.
13167 * ada-tasks.c (struct ada_tasks_inferior_data)
13168 <task_list_valid_p>: Now bool.
13169 (read_known_tasks, ada_task_list_changed)
13170 (ada_tasks_invalidate_inferior_data): Update.
13171 (read_known_tasks_array): Return bool.
13172 (read_known_tasks_list): Likewise.
13173 (read_known_tasks): Return void.
13174 (ada_build_task_list): Now static.
13175
70cd633e
AB
131762019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13177
13178 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13179 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13180
040b3e95
PW
131812019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13182
13183 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13184 variant for ada_tasks_pspace_data_handle and
13185 ada_tasks_inferior_data_handle.
13186 (ada_tasks_pspace_data_cleanup): New function.
13187 (ada_tasks_inferior_data_cleanup): New function.
13188
9409233b
TT
131892019-02-17 Tom Tromey <tom@tromey.com>
13190
13191 * macrotab.h (macro_source_fullname): Return a std::string.
13192 * macrotab.c (macro_include, check_for_redefinition)
13193 (macro_undef, macro_lookup_definition, foreach_macro)
13194 (foreach_macro_in_scope): Update.
13195 (macro_source_fullname): Return a std::string.
13196 * macrocmd.c (show_pp_source_pos): Update.
13197
6506371f
TT
131982019-02-17 Tom Tromey <tom@tromey.com>
13199
13200 * macrocmd.c (show_pp_source_pos): Style the file names.
13201
0c820d67
TT
132022019-02-17 Tom Tromey <tom@tromey.com>
13203
13204 PR tui/24197:
13205 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13206
a0087920
TT
132072019-02-17 Tom Tromey <tom@tromey.com>
13208
13209 * ada-lang.c (user_select_syms): Use filtered printing.
13210 * utils.c (wrap_style): New global.
13211 (desired_style): Remove.
13212 (emit_style_escape): Add stream parameter.
13213 (set_output_style, reset_terminal_style, prompt_for_continue):
13214 Update.
13215 (flush_wrap_buffer): Only flush gdb_stdout.
13216 (wrap_here): Set wrap_style.
13217 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13218 treat escape sequences as a character. Change when wrap buffer is
13219 flushed.
13220 (fputs_styled): Do not set the output style when the default is
13221 requested.
13222 * ui-style.h (struct ui_file_style) <is_default>: New method.
13223 * source.c (print_source_lines_base): Emit escape sequences in one
13224 piece.
13225
75ba10dc
JB
132262019-02-17 Joel Brobecker <brobecker@adacore.com>
13227
13228 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13229 integers and enumeration types.
13230
a2cd4f14
JB
132312019-02-17 Joel Brobecker <brobecker@adacore.com>
13232
13233 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13234 instead of lookup_symbol_in_language
13235 (do_exact_match): New function.
13236 (ada_get_symbol_name_matcher): Return do_exact_match when
13237 doing a verbatim match.
13238
485b851b
TT
132392019-02-15 Tom Tromey <tromey@adacore.com>
13240
13241 * ravenscar-thread.c (ravenscar_thread_target::resume)
13242 (ravenscar_thread_target::wait): Special case wildcard requests.
13243
0b790b1e
TT
132442019-02-15 Tom Tromey <tromey@adacore.com>
13245
13246 * ravenscar-thread.c (base_ptid): Remove.
13247 (struct ravenscar_thread_target) <close>: New method.
13248 <m_base_ptid>: New member.
13249 <update_inferior_ptid, active_task, task_is_currently_active,
13250 runtime_initialized>: Declare methods.
13251 <ravenscar_thread_target>: Add constructor.
13252 (ravenscar_thread_target::task_is_currently_active)
13253 (ravenscar_thread_target::update_inferior_ptid)
13254 (ravenscar_runtime_initialized): Rename. Now methods.
13255 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13256 (ravenscar_thread_target::update_thread_list): Update.
13257 (ravenscar_thread_target::active_task): Now method.
13258 (ravenscar_thread_target::store_registers)
13259 (ravenscar_thread_target::prepare_to_store)
13260 (ravenscar_thread_target::prepare_to_store)
13261 (ravenscar_thread_target::mourn_inferior): Update.
13262 (ravenscar_inferior_created): Use "new" to create target.
13263 (ravenscar_thread_target::get_ada_task_ptid): Update.
13264 (_initialize_ravenscar): Don't initialize base_ptid.
13265 (ravenscar_ops): Remove global.
13266
dea57a62
TT
132672019-02-15 Tom Tromey <tromey@adacore.com>
13268
13269 * target.h (push_target): Declare new overload.
13270 * target.c (push_target): New overload, taking an rvalue reference.
13271 * remote.c (remote_target::open_1): Use push_target overload.
13272 * corelow.c (core_target_open): Use push_target overload.
13273
989f3c58
TT
132742019-02-15 Tom Tromey <tromey@adacore.com>
13275
13276 * ravenscar-thread.c (is_ravenscar_task)
13277 (ravenscar_task_is_currently_active): Return bool.
13278 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13279 (_initialize_ravenscar): Remove "(void)".
13280 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13281 Return bool.
13282
6cbcc006
TT
132832019-02-15 Tom Tromey <tromey@adacore.com>
13284
13285 * ravenscar-thread.c (ravenscar_runtime_initializer)
13286 (has_ravenscar_runtime, get_running_thread_id)
13287 (ravenscar_thread_target::resume): Fix indentation.
13288
7657f14d
TT
132892019-02-15 Tom Tromey <tromey@adacore.com>
13290
13291 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13292 from ravenscar_arch_ops.
13293 (sparc_ravenscar_ops::fetch_registers)
13294 (sparc_ravenscar_ops::store_registers): Now methods.
13295 (sparc_ravenscar_prepare_to_store): Remove.
13296 (sparc_ravenscar_ops): Redefine.
13297 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13298 methods and destructor. Remove members.
13299 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13300 (ravenscar_thread_target::store_registers)
13301 (ravenscar_thread_target::prepare_to_store): Update.
13302 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13303 Remove.
13304 (struct ppc_ravenscar_powerpc_ops): Derive from
13305 ravenscar_arch_ops.
13306 (ppc_ravenscar_powerpc_ops::fetch_registers)
13307 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13308 (ppc_ravenscar_powerpc_ops): Redefine.
13309 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13310 (ppc_ravenscar_e500_ops::fetch_registers)
13311 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13312 (ppc_ravenscar_e500_ops): Redefine.
13313 * aarch64-ravenscar-thread.c
13314 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13315 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13316 (aarch64_ravenscar_fetch_registers)
13317 (aarch64_ravenscar_store_registers): Now methods.
13318 (aarch64_ravenscar_ops): Redefine.
13319
5b6ea500
TT
133202019-02-15 Tom Tromey <tromey@adacore.com>
13321
13322 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13323 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13324 (ravenscar_thread_target::stopped_by_watchpoint)
13325 (ravenscar_thread_target::stopped_data_address)
13326 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13327
e397fd39
TT
133282019-02-15 Tom Tromey <tromey@adacore.com>
13329
13330 * ravenscar-thread.c: Fix some typos.
13331
cc12f4a8
TT
133322019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13333 Tom Tromey <tromey@adacore.com>
13334
13335 * ada-lang.c (ada_exception_sal): Change addr_string to a
13336 std::string.
13337 (create_ada_exception_catchpoint): Update.
13338
5f486660
TT
133392019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13340 Tom Tromey <tromey@adacore.com>
13341
13342 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13343 (bp_location_ops): Remove.
13344 (base_breakpoint_allocate_location): Update.
13345 (free_bp_location): Update.
13346 * ada-lang.c (class ada_catchpoint_location)
13347 <ada_catchpoint_location>: Remove ops parameter.
13348 (ada_catchpoint_location_dtor): Remove.
13349 (ada_catchpoint_location_ops): Remove.
13350 (allocate_location_exception): Update.
13351 * breakpoint.h (struct bp_location_ops): Remove.
13352 (class bp_location) <bp_location>: Remove bp_location_ops
13353 parameter.
13354 <~bp_location>: Add destructor.
13355 <ops>: Remove.
13356
b671c7fb
TS
133572019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13358 Pedro Alves <palves@redhat.com>
13359
13360 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13361 'PATH_MAX'.
13362
8071c5ce
DM
133632019-02-14 David Michael <fedora.dm0@gmail.com>
13364 Samuel Thibault <samuel.thibault@gnu.org>
13365 Thomas Schwinge <thomas@codesourcery.com>
13366
13367 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13368 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13369
b1041ae0
TS
133702019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13371
924514e1
TS
13372 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13373 (check_empty): Use "const char *".
13374
c29ee8d4
TS
13375 * gnu-nat.c (gnu_nat_target::detach): Instead of
13376 'detach_inferior (pid)' call
13377 'detach_inferior (find_inferior_pid (pid))'.
13378
6c6ef69f
TS
13379 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13380 'nat/fork-inferior.o'.
13381 * gnu-nat.c: #include "nat/fork-inferior.h".
13382
2d0a338c
TS
13383 * gnu-nat.c (gnu_nat_target::detach): Instead of
13384 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13385 * gnu-nat.h: #include "inf-child.h".
13386 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13387 'i386_gnu_nat_target::fetch_registers'.
13388 (gnu_store_registers): Rename/move to
13389 'i386_gnu_nat_target::store_registers'.
13390
cabb5f06
TS
13391 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13392 * gnu-nat.h (mach_thread_info): New function.
13393 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13394
b1041ae0
TS
13395 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13396
2988d01e
KF
133972019-02-14 Frederic Konrad <konrad@adacore.com>
13398
13399 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13400
c559d709
JB
134012019-02-14 Joel Brobecker <brobecker@adacore.com>
13402
13403 * windows-nat.c (windows_add_thread): Add new parameter
13404 "main_thread_p" with default value set to false. Update
13405 function documentation as well as all callers.
13406 (windows_delete_thread): Likewise.
13407 (fake_create_process): Update call to windows_add_thread.
13408 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13409 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13410 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13411 call to windows_delete_thread.
13412
007024cc
SM
134132019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13414
13415 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13416
f62318e9
JB
134172019-02-12 John Baldwin <jhb@FreeBSD.org>
13418
13419 * symfile.c (find_separate_debug_file): Use canonical path of
13420 sysroot with child_path instead of gdb_sysroot if it is valid.
13421
cd4b7848
JB
134222019-02-12 John Baldwin <jhb@FreeBSD.org>
13423
13424 * symfile.c (find_separate_debug_file): Use child_path to
13425 determine if an object file is under a sysroot.
13426
efac4bfe
JB
134272019-02-12 John Baldwin <jhb@FreeBSD.org>
13428
13429 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13430 unittests/child-path-selftests.c.
13431 * common/pathstuff.c (child_path): New function.
13432 * common/pathstuff.h (child_path): New prototype.
13433 * unittests/child-path-selftests.c: New file.
13434
402d2bfe
JB
134352019-02-12 John Baldwin <jhb@FreeBSD.org>
13436
13437 * symfile.c (find_separate_debug_file): Look for separate debug
13438 files in debug directories under the sysroot.
13439
1ed9f74e
PW
134402019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13441
13442 * symtab.h (struct minimal_symbol data_p): New const method.
13443 (struct minimal_symbol text_p): Likewise.
13444 * symtab.c (output_source_filename): Use file name style
13445 to print file name.
13446 (print_symbol_info): Likewise.
13447 (print_msymbol_info): Use address style to print addresses.
13448 Use function name style to print executable text symbols.
13449 (expand_symtab_containing_pc): Use data_p.
13450 (find_pc_sect_compunit_symtab): Likewise.
13451
2636d81d
PW
134522019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13453
13454 * breakpoint.c (describe_other_breakpoints): Use address style
13455 to print addresses.
13456 (say_where): Likewise.
13457
ac8c53cc
PW
134582019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13459
13460 * ada-typeprint.c (print_func_type): Print function name
13461 style to print function name.
13462 * c-typeprint.c (c_print_type_1): Likewise.
13463
ea638c43
AH
134642019-02-11 Alan Hayward <alan.hayward@arm.com>
13465
13466 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13467 for execve.
13468
ab759ca8
PW
134692019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13470
13471 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13472 type_stack.
13473
aff29d1c
JB
134742019-02-10 Joel Brobecker <brobecker@adacore.com>
13475
13476 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13477 TYPE_CODE_REF types.
13478
617126bc
JW
134792019-02-08 Jim Wilson <jimw@sifive.com>
13480
13481 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13482 (riscv_linux_fregset): New.
13483 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13484
46e3ed7f
TT
134852019-02-07 Tom Tromey <tom@tromey.com>
13486
13487 * thread.c (thread_cancel_execution_command): Update.
13488 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13489 methods.
13490 (struct thread_fsm_ops): Remove.
13491 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13492 (thread_fsm_should_stop, thread_fsm_return_value)
13493 (thread_fsm_set_finished, thread_fsm_finished_p)
13494 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13495 Don't declare.
13496 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13497 * infrun.c (clear_proceed_status_thread)
13498 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13499 (print_stop_event): Update.
13500 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13501 Add constructor.
13502 (step_command_fsm_ops): Remove.
13503 (new_step_command_fsm): Remove.
13504 (step_1): Update.
13505 (step_command_fsm::should_stop): Rename from
13506 step_command_fsm_should_stop.
13507 (step_command_fsm::clean_up): Rename from
13508 step_command_fsm_clean_up.
13509 (step_command_fsm::do_async_reply_reason): Rename from
13510 step_command_fsm_async_reply_reason.
13511 (struct until_next_fsm): Inherit from thread_fsm. Add
13512 constructor.
13513 (until_next_fsm_ops): Remove.
13514 (new_until_next_fsm): Remove.
13515 (until_next_fsm::should_stop): Rename from
13516 until_next_fsm_should_stop.
13517 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13518 (until_next_fsm::do_async_reply_reason): Rename from
13519 until_next_fsm_async_reply_reason.
13520 (struct finish_command_fsm): Inherit from thread_fsm. Add
13521 constructor. Change type of breakpoint.
13522 (finish_command_fsm_ops): Remove.
13523 (new_finish_command_fsm): Remove.
13524 (finish_command_fsm::should_stop): Rename from
13525 finish_command_fsm_should_stop.
13526 (finish_command_fsm::clean_up): Rename from
13527 finish_command_fsm_clean_up.
13528 (finish_command_fsm::return_value): Rename from
13529 finish_command_fsm_return_value.
13530 (finish_command_fsm::do_async_reply_reason): Rename from
13531 finish_command_fsm_async_reply_reason.
13532 (finish_command): Update.
13533 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13534 Add constructor.
13535 (call_thread_fsm_ops): Remove.
13536 (call_thread_fsm::call_thread_fsm): Rename from
13537 new_call_thread_fsm.
13538 (call_thread_fsm::should_stop): Rename from
13539 call_thread_fsm_should_stop.
13540 (call_thread_fsm::should_notify_stop): Rename from
13541 call_thread_fsm_should_notify_stop.
13542 (run_inferior_call, call_function_by_hand_dummy): Update.
13543 * cli/cli-interp.c (should_print_stop_to_console): Update.
13544 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13545 Add constructor. Change type of location_breakpoint,
13546 caller_breakpoint.
13547 (until_break_fsm_ops): Remove.
13548 (new_until_break_fsm): Remove.
13549 (until_break_fsm::should_stop): Rename from
13550 until_break_fsm_should_stop.
13551 (until_break_fsm::clean_up): Rename from
13552 until_break_fsm_clean_up.
13553 (until_break_fsm::do_async_reply_reason): Rename from
13554 until_break_fsm_async_reply_reason.
13555 (until_break_command): Update.
13556 * thread-fsm.c: Remove.
13557 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13558
1a5c2598
TT
135592019-02-07 Tom Tromey <tom@tromey.com>
13560
13561 * yy-remap.h: Add include guard.
13562 * xtensa-tdep.h: Add include guard.
13563 * xcoffread.h: Rename include guard.
13564 * varobj-iter.h: Add include guard.
13565 * tui/tui.h: Rename include guard.
13566 * tui/tui-winsource.h: Rename include guard.
13567 * tui/tui-wingeneral.h: Rename include guard.
13568 * tui/tui-windata.h: Rename include guard.
13569 * tui/tui-win.h: Rename include guard.
13570 * tui/tui-stack.h: Rename include guard.
13571 * tui/tui-source.h: Rename include guard.
13572 * tui/tui-regs.h: Rename include guard.
13573 * tui/tui-out.h: Rename include guard.
13574 * tui/tui-layout.h: Rename include guard.
13575 * tui/tui-io.h: Rename include guard.
13576 * tui/tui-hooks.h: Rename include guard.
13577 * tui/tui-file.h: Rename include guard.
13578 * tui/tui-disasm.h: Rename include guard.
13579 * tui/tui-data.h: Rename include guard.
13580 * tui/tui-command.h: Rename include guard.
13581 * tic6x-tdep.h: Add include guard.
13582 * target/waitstatus.h: Rename include guard.
13583 * target/wait.h: Rename include guard.
13584 * target/target.h: Rename include guard.
13585 * target/resume.h: Rename include guard.
13586 * target-float.h: Rename include guard.
13587 * stabsread.h: Add include guard.
13588 * rs6000-tdep.h: Add include guard.
13589 * riscv-fbsd-tdep.h: Add include guard.
13590 * regformats/regdef.h: Rename include guard.
13591 * record.h: Rename include guard.
13592 * python/python.h: Rename include guard.
13593 * python/python-internal.h: Rename include guard.
13594 * python/py-stopevent.h: Rename include guard.
13595 * python/py-ref.h: Rename include guard.
13596 * python/py-record.h: Rename include guard.
13597 * python/py-record-full.h: Rename include guard.
13598 * python/py-record-btrace.h: Rename include guard.
13599 * python/py-instruction.h: Rename include guard.
13600 * python/py-events.h: Rename include guard.
13601 * python/py-event.h: Rename include guard.
13602 * procfs.h: Add include guard.
13603 * proc-utils.h: Add include guard.
13604 * p-lang.h: Add include guard.
13605 * or1k-tdep.h: Rename include guard.
13606 * observable.h: Rename include guard.
13607 * nto-tdep.h: Rename include guard.
13608 * nat/x86-linux.h: Rename include guard.
13609 * nat/x86-linux-dregs.h: Rename include guard.
13610 * nat/x86-gcc-cpuid.h: Add include guard.
13611 * nat/x86-dregs.h: Rename include guard.
13612 * nat/x86-cpuid.h: Rename include guard.
13613 * nat/ppc-linux.h: Rename include guard.
13614 * nat/mips-linux-watch.h: Rename include guard.
13615 * nat/linux-waitpid.h: Rename include guard.
13616 * nat/linux-ptrace.h: Rename include guard.
13617 * nat/linux-procfs.h: Rename include guard.
13618 * nat/linux-osdata.h: Rename include guard.
13619 * nat/linux-nat.h: Rename include guard.
13620 * nat/linux-namespaces.h: Rename include guard.
13621 * nat/linux-btrace.h: Rename include guard.
13622 * nat/glibc_thread_db.h: Rename include guard.
13623 * nat/gdb_thread_db.h: Rename include guard.
13624 * nat/gdb_ptrace.h: Rename include guard.
13625 * nat/fork-inferior.h: Rename include guard.
13626 * nat/amd64-linux-siginfo.h: Rename include guard.
13627 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13628 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13629 * nat/aarch64-linux.h: Rename include guard.
13630 * nat/aarch64-linux-hw-point.h: Rename include guard.
13631 * mn10300-tdep.h: Add include guard.
13632 * mips-linux-tdep.h: Add include guard.
13633 * mi/mi-parse.h: Rename include guard.
13634 * mi/mi-out.h: Rename include guard.
13635 * mi/mi-main.h: Rename include guard.
13636 * mi/mi-interp.h: Rename include guard.
13637 * mi/mi-getopt.h: Rename include guard.
13638 * mi/mi-console.h: Rename include guard.
13639 * mi/mi-common.h: Rename include guard.
13640 * mi/mi-cmds.h: Rename include guard.
13641 * mi/mi-cmd-break.h: Rename include guard.
13642 * m2-lang.h: Add include guard.
13643 * location.h: Rename include guard.
13644 * linux-record.h: Rename include guard.
13645 * linux-nat.h: Add include guard.
13646 * linux-fork.h: Add include guard.
13647 * i386-darwin-tdep.h: Rename include guard.
13648 * hppa-linux-offsets.h: Add include guard.
13649 * guile/guile.h: Rename include guard.
13650 * guile/guile-internal.h: Rename include guard.
13651 * gnu-nat.h: Rename include guard.
13652 * gdb-stabs.h: Rename include guard.
13653 * frv-tdep.h: Add include guard.
13654 * f-lang.h: Add include guard.
13655 * event-loop.h: Add include guard.
13656 * darwin-nat.h: Rename include guard.
13657 * cp-abi.h: Rename include guard.
13658 * config/sparc/nm-sol2.h: Rename include guard.
13659 * config/nm-nto.h: Rename include guard.
13660 * config/nm-linux.h: Add include guard.
13661 * config/i386/nm-i386gnu.h: Rename include guard.
13662 * config/djgpp/nl_types.h: Rename include guard.
13663 * config/djgpp/langinfo.h: Rename include guard.
13664 * compile/gcc-cp-plugin.h: Add include guard.
13665 * compile/gcc-c-plugin.h: Add include guard.
13666 * compile/compile.h: Rename include guard.
13667 * compile/compile-object-run.h: Rename include guard.
13668 * compile/compile-object-load.h: Rename include guard.
13669 * compile/compile-internal.h: Rename include guard.
13670 * compile/compile-cplus.h: Rename include guard.
13671 * compile/compile-c.h: Rename include guard.
13672 * common/xml-utils.h: Rename include guard.
13673 * common/x86-xstate.h: Rename include guard.
13674 * common/version.h: Rename include guard.
13675 * common/vec.h: Rename include guard.
13676 * common/tdesc.h: Rename include guard.
13677 * common/selftest.h: Rename include guard.
13678 * common/scoped_restore.h: Rename include guard.
13679 * common/scoped_mmap.h: Rename include guard.
13680 * common/scoped_fd.h: Rename include guard.
13681 * common/safe-iterator.h: Rename include guard.
13682 * common/run-time-clock.h: Rename include guard.
13683 * common/refcounted-object.h: Rename include guard.
13684 * common/queue.h: Rename include guard.
13685 * common/ptid.h: Rename include guard.
13686 * common/print-utils.h: Rename include guard.
13687 * common/preprocessor.h: Rename include guard.
13688 * common/pathstuff.h: Rename include guard.
13689 * common/observable.h: Rename include guard.
13690 * common/netstuff.h: Rename include guard.
13691 * common/job-control.h: Rename include guard.
13692 * common/host-defs.h: Rename include guard.
13693 * common/gdb_wait.h: Rename include guard.
13694 * common/gdb_vecs.h: Rename include guard.
13695 * common/gdb_unlinker.h: Rename include guard.
13696 * common/gdb_unique_ptr.h: Rename include guard.
13697 * common/gdb_tilde_expand.h: Rename include guard.
13698 * common/gdb_sys_time.h: Rename include guard.
13699 * common/gdb_string_view.h: Rename include guard.
13700 * common/gdb_splay_tree.h: Rename include guard.
13701 * common/gdb_setjmp.h: Rename include guard.
13702 * common/gdb_ref_ptr.h: Rename include guard.
13703 * common/gdb_optional.h: Rename include guard.
13704 * common/gdb_locale.h: Rename include guard.
13705 * common/gdb_assert.h: Rename include guard.
13706 * common/filtered-iterator.h: Rename include guard.
13707 * common/filestuff.h: Rename include guard.
13708 * common/fileio.h: Rename include guard.
13709 * common/environ.h: Rename include guard.
13710 * common/common-utils.h: Rename include guard.
13711 * common/common-types.h: Rename include guard.
13712 * common/common-regcache.h: Rename include guard.
13713 * common/common-inferior.h: Rename include guard.
13714 * common/common-gdbthread.h: Rename include guard.
13715 * common/common-exceptions.h: Rename include guard.
13716 * common/common-defs.h: Rename include guard.
13717 * common/common-debug.h: Rename include guard.
13718 * common/cleanups.h: Rename include guard.
13719 * common/buffer.h: Rename include guard.
13720 * common/btrace-common.h: Rename include guard.
13721 * common/break-common.h: Rename include guard.
13722 * cli/cli-utils.h: Rename include guard.
13723 * cli/cli-style.h: Rename include guard.
13724 * cli/cli-setshow.h: Rename include guard.
13725 * cli/cli-script.h: Rename include guard.
13726 * cli/cli-interp.h: Rename include guard.
13727 * cli/cli-decode.h: Rename include guard.
13728 * cli/cli-cmds.h: Rename include guard.
13729 * charset-list.h: Add include guard.
13730 * buildsym-legacy.h: Rename include guard.
13731 * bfin-tdep.h: Add include guard.
13732 * ax.h: Rename include guard.
13733 * arm-linux-tdep.h: Add include guard.
13734 * arm-fbsd-tdep.h: Add include guard.
13735 * arch/xtensa.h: Rename include guard.
13736 * arch/tic6x.h: Add include guard.
13737 * arch/i386.h: Add include guard.
13738 * arch/arm.h: Rename include guard.
13739 * arch/arm-linux.h: Rename include guard.
13740 * arch/arm-get-next-pcs.h: Rename include guard.
13741 * arch/amd64.h: Add include guard.
13742 * arch/aarch64-insn.h: Rename include guard.
13743 * arch-utils.h: Rename include guard.
13744 * annotate.h: Add include guard.
13745 * amd64-darwin-tdep.h: Rename include guard.
13746 * aarch64-linux-tdep.h: Add include guard.
13747 * aarch64-fbsd-tdep.h: Add include guard.
13748 * aarch32-linux-nat.h: Add include guard.
13749
ab9268d2
PW
137502019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13751
13752 * macrotab.c (macro_define_internal): New function that
13753 factorizes macro_define_object_internal and macro_define_function
13754 code.
13755 (macro_define_object_internal): Use macro_define_internal.
13756 (macro_define_function): Likewise.
13757
bb0da2b4
PW
137582019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13759
13760 * macrocmd.c (extract_identifier): Return
13761 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13762 callers.
13763
424eb552
JB
137642019-02-06 John Baldwin <jhb@FreeBSD.org>
13765
13766 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13767
1688cb29
TT
137682019-02-05 Tom Tromey <tom@tromey.com>
13769
13770 * target.c (target_stack::unpush): Move assertion earlier.
13771
b5eba2d8
TT
137722019-01-30 Tom Tromey <tom@tromey.com>
13773
13774 PR python/23615:
13775 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13776 (gdbpy_parse_and_eval): Likewise.
13777 * python/python-internal.h (gdbpy_allow_threads): New class.
13778
7054e2ff
JB
137792019-01-28 John Baldwin <jhb@FreeBSD.org>
13780
13781 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13782 (aarch64_fbsd_fpregmap): Move earlier.
13783 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13784 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13785 instead of individual calls to trad_frame_set_reg_addr.
13786 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13787 earlier.
13788 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13789 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13790 instead of individual calls to trad_frame_set_reg_addr.
13791
36c25ffa
AH
137922019-01-28 Alan Hayward <alan.hayward@arm.com>
13793
13794 * CONTRIBUTE: Replace contribution list with wiki link.
13795
a0707f3c
TT
137962019-01-25 Tom Tromey <tom@tromey.com>
13797
13798 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13799
0747795c
TT
138002019-01-25 Tom Tromey <tom@tromey.com>
13801
13802 * xtensa-linux-nat.c: Fix common/ includes.
13803 * xml-support.h: Fix common/ includes.
13804 * xml-support.c: Fix common/ includes.
13805 * x86-linux-nat.c: Fix common/ includes.
13806 * windows-nat.c: Fix common/ includes.
13807 * varobj.h: Fix common/ includes.
13808 * varobj.c: Fix common/ includes.
13809 * value.c: Fix common/ includes.
13810 * valops.c: Fix common/ includes.
13811 * utils.c: Fix common/ includes.
13812 * unittests/xml-utils-selftests.c: Fix common/ includes.
13813 * unittests/utils-selftests.c: Fix common/ includes.
13814 * unittests/unpack-selftests.c: Fix common/ includes.
13815 * unittests/tracepoint-selftests.c: Fix common/ includes.
13816 * unittests/style-selftests.c: Fix common/ includes.
13817 * unittests/string_view-selftests.c: Fix common/ includes.
13818 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13819 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13820 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13821 * unittests/rsp-low-selftests.c: Fix common/ includes.
13822 * unittests/parse-connection-spec-selftests.c: Fix common/
13823 includes.
13824 * unittests/optional-selftests.c: Fix common/ includes.
13825 * unittests/offset-type-selftests.c: Fix common/ includes.
13826 * unittests/observable-selftests.c: Fix common/ includes.
13827 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13828 * unittests/memrange-selftests.c: Fix common/ includes.
13829 * unittests/memory-map-selftests.c: Fix common/ includes.
13830 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13831 * unittests/function-view-selftests.c: Fix common/ includes.
13832 * unittests/environ-selftests.c: Fix common/ includes.
13833 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13834 * unittests/common-utils-selftests.c: Fix common/ includes.
13835 * unittests/cli-utils-selftests.c: Fix common/ includes.
13836 * unittests/array-view-selftests.c: Fix common/ includes.
13837 * ui-file.c: Fix common/ includes.
13838 * tui/tui-io.c: Fix common/ includes.
13839 * tracepoint.h: Fix common/ includes.
13840 * tracepoint.c: Fix common/ includes.
13841 * tracefile-tfile.c: Fix common/ includes.
13842 * top.h: Fix common/ includes.
13843 * top.c: Fix common/ includes.
13844 * thread.c: Fix common/ includes.
13845 * target/waitstatus.h: Fix common/ includes.
13846 * target/waitstatus.c: Fix common/ includes.
13847 * target.h: Fix common/ includes.
13848 * target.c: Fix common/ includes.
13849 * target-memory.c: Fix common/ includes.
13850 * target-descriptions.c: Fix common/ includes.
13851 * symtab.h: Fix common/ includes.
13852 * symfile.c: Fix common/ includes.
13853 * stap-probe.c: Fix common/ includes.
13854 * spu-linux-nat.c: Fix common/ includes.
13855 * sparc-nat.c: Fix common/ includes.
13856 * source.c: Fix common/ includes.
13857 * solib.c: Fix common/ includes.
13858 * solib-target.c: Fix common/ includes.
13859 * ser-unix.c: Fix common/ includes.
13860 * ser-tcp.c: Fix common/ includes.
13861 * ser-pipe.c: Fix common/ includes.
13862 * ser-base.c: Fix common/ includes.
13863 * selftest-arch.c: Fix common/ includes.
13864 * s12z-tdep.c: Fix common/ includes.
13865 * rust-exp.y: Fix common/ includes.
13866 * rs6000-aix-tdep.c: Fix common/ includes.
13867 * riscv-tdep.c: Fix common/ includes.
13868 * remote.c: Fix common/ includes.
13869 * remote-notif.h: Fix common/ includes.
13870 * remote-fileio.h: Fix common/ includes.
13871 * remote-fileio.c: Fix common/ includes.
13872 * regcache.h: Fix common/ includes.
13873 * regcache.c: Fix common/ includes.
13874 * record-btrace.c: Fix common/ includes.
13875 * python/python.c: Fix common/ includes.
13876 * python/py-type.c: Fix common/ includes.
13877 * python/py-inferior.c: Fix common/ includes.
13878 * progspace.h: Fix common/ includes.
13879 * producer.c: Fix common/ includes.
13880 * procfs.c: Fix common/ includes.
13881 * proc-api.c: Fix common/ includes.
13882 * printcmd.c: Fix common/ includes.
13883 * ppc-linux-nat.c: Fix common/ includes.
13884 * parser-defs.h: Fix common/ includes.
13885 * osdata.c: Fix common/ includes.
13886 * obsd-nat.c: Fix common/ includes.
13887 * nat/x86-linux.c: Fix common/ includes.
13888 * nat/x86-linux-dregs.c: Fix common/ includes.
13889 * nat/x86-dregs.h: Fix common/ includes.
13890 * nat/x86-dregs.c: Fix common/ includes.
13891 * nat/ppc-linux.c: Fix common/ includes.
13892 * nat/mips-linux-watch.h: Fix common/ includes.
13893 * nat/mips-linux-watch.c: Fix common/ includes.
13894 * nat/linux-waitpid.c: Fix common/ includes.
13895 * nat/linux-ptrace.h: Fix common/ includes.
13896 * nat/linux-ptrace.c: Fix common/ includes.
13897 * nat/linux-procfs.c: Fix common/ includes.
13898 * nat/linux-personality.c: Fix common/ includes.
13899 * nat/linux-osdata.c: Fix common/ includes.
13900 * nat/linux-namespaces.c: Fix common/ includes.
13901 * nat/linux-btrace.h: Fix common/ includes.
13902 * nat/linux-btrace.c: Fix common/ includes.
13903 * nat/fork-inferior.c: Fix common/ includes.
13904 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13905 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13906 * nat/aarch64-linux.c: Fix common/ includes.
13907 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13908 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13909 * namespace.h: Fix common/ includes.
13910 * mips-linux-tdep.c: Fix common/ includes.
13911 * minsyms.c: Fix common/ includes.
13912 * mi/mi-parse.h: Fix common/ includes.
13913 * mi/mi-main.c: Fix common/ includes.
13914 * mi/mi-cmd-env.c: Fix common/ includes.
13915 * memrange.h: Fix common/ includes.
13916 * memattr.c: Fix common/ includes.
13917 * maint.h: Fix common/ includes.
13918 * maint.c: Fix common/ includes.
13919 * main.c: Fix common/ includes.
13920 * machoread.c: Fix common/ includes.
13921 * location.c: Fix common/ includes.
13922 * linux-thread-db.c: Fix common/ includes.
13923 * linux-nat.c: Fix common/ includes.
13924 * linux-fork.c: Fix common/ includes.
13925 * inline-frame.c: Fix common/ includes.
13926 * infrun.c: Fix common/ includes.
13927 * inflow.c: Fix common/ includes.
13928 * inferior.h: Fix common/ includes.
13929 * inferior.c: Fix common/ includes.
13930 * infcmd.c: Fix common/ includes.
13931 * inf-ptrace.c: Fix common/ includes.
13932 * inf-child.c: Fix common/ includes.
13933 * ia64-linux-nat.c: Fix common/ includes.
13934 * i387-tdep.c: Fix common/ includes.
13935 * i386-tdep.c: Fix common/ includes.
13936 * i386-linux-tdep.c: Fix common/ includes.
13937 * i386-linux-nat.c: Fix common/ includes.
13938 * i386-go32-tdep.c: Fix common/ includes.
13939 * i386-fbsd-tdep.c: Fix common/ includes.
13940 * i386-fbsd-nat.c: Fix common/ includes.
13941 * guile/scm-type.c: Fix common/ includes.
13942 * guile/guile.c: Fix common/ includes.
13943 * go32-nat.c: Fix common/ includes.
13944 * gnu-nat.c: Fix common/ includes.
13945 * gdbthread.h: Fix common/ includes.
13946 * gdbarch-selftests.c: Fix common/ includes.
13947 * gdb_usleep.c: Fix common/ includes.
13948 * gdb_select.h: Fix common/ includes.
13949 * gdb_bfd.c: Fix common/ includes.
13950 * gcore.c: Fix common/ includes.
13951 * fork-child.c: Fix common/ includes.
13952 * findvar.c: Fix common/ includes.
13953 * fbsd-nat.c: Fix common/ includes.
13954 * event-top.c: Fix common/ includes.
13955 * event-loop.c: Fix common/ includes.
13956 * dwarf2read.c: Fix common/ includes.
13957 * dwarf2loc.c: Fix common/ includes.
13958 * dwarf2-frame.c: Fix common/ includes.
13959 * dwarf-index-cache.c: Fix common/ includes.
13960 * dtrace-probe.c: Fix common/ includes.
13961 * disasm-selftests.c: Fix common/ includes.
13962 * defs.h: Fix common/ includes.
13963 * csky-tdep.c: Fix common/ includes.
13964 * cp-valprint.c: Fix common/ includes.
13965 * cp-support.h: Fix common/ includes.
13966 * cp-support.c: Fix common/ includes.
13967 * corelow.c: Fix common/ includes.
13968 * completer.h: Fix common/ includes.
13969 * completer.c: Fix common/ includes.
13970 * compile/compile.c: Fix common/ includes.
13971 * compile/compile-loc2c.c: Fix common/ includes.
13972 * compile/compile-cplus-types.c: Fix common/ includes.
13973 * compile/compile-cplus-symbols.c: Fix common/ includes.
13974 * command.h: Fix common/ includes.
13975 * cli/cli-dump.c: Fix common/ includes.
13976 * cli/cli-cmds.c: Fix common/ includes.
13977 * charset.c: Fix common/ includes.
13978 * build-id.c: Fix common/ includes.
13979 * btrace.h: Fix common/ includes.
13980 * btrace.c: Fix common/ includes.
13981 * breakpoint.h: Fix common/ includes.
13982 * breakpoint.c: Fix common/ includes.
13983 * ax.h:
13984 (enum agent_op): Fix common/ includes.
13985 * ax-general.c (struct aop_map): Fix common/ includes.
13986 * ax-gdb.c: Fix common/ includes.
13987 * auxv.c: Fix common/ includes.
13988 * auto-load.c: Fix common/ includes.
13989 * arm-tdep.c: Fix common/ includes.
13990 * arch/riscv.c: Fix common/ includes.
13991 * arch/ppc-linux-common.c: Fix common/ includes.
13992 * arch/i386.c: Fix common/ includes.
13993 * arch/arm.c: Fix common/ includes.
13994 * arch/arm-linux.c: Fix common/ includes.
13995 * arch/arm-get-next-pcs.c: Fix common/ includes.
13996 * arch/amd64.c: Fix common/ includes.
13997 * arch/aarch64.c: Fix common/ includes.
13998 * arch/aarch64-insn.c: Fix common/ includes.
13999 * arch-utils.c: Fix common/ includes.
14000 * amd64-windows-tdep.c: Fix common/ includes.
14001 * amd64-tdep.c: Fix common/ includes.
14002 * amd64-sol2-tdep.c: Fix common/ includes.
14003 * amd64-obsd-tdep.c: Fix common/ includes.
14004 * amd64-nbsd-tdep.c: Fix common/ includes.
14005 * amd64-linux-tdep.c: Fix common/ includes.
14006 * amd64-linux-nat.c: Fix common/ includes.
14007 * amd64-fbsd-tdep.c: Fix common/ includes.
14008 * amd64-fbsd-nat.c: Fix common/ includes.
14009 * amd64-dicos-tdep.c: Fix common/ includes.
14010 * amd64-darwin-tdep.c: Fix common/ includes.
14011 * agent.c: Fix common/ includes.
14012 * ada-lang.h: Fix common/ includes.
14013 * ada-lang.c: Fix common/ includes.
14014 * aarch64-tdep.c: Fix common/ includes.
14015
2f5c153e
TT
140162019-01-25 Tom Tromey <tom@tromey.com>
14017
14018 * common/create-version.sh: Use common/version.h.
14019
adc6a863
PA
140202019-01-24 Pedro Alves <palves@redhat.com>
14021
14022 * infrun.c (signal_stop, signal_print, signal_program)
14023 (signal_catch, signal_pass): Now arrays instead of pointers.
14024 (update_signals_program_target, do_target_resume)
14025 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14026 * linux-nat.c (linux_nat_target::pass_signals)
14027 (linux_nat_target::create_inferior, linux_nat_target::attach):
14028 Adjust.
14029 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14030 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14031 * procfs.c (procfs_target::pass_signals): Adjust.
14032 * record-full.c (record_full_target::resume): Adjust.
14033 * remote.c (remote_target::pass_signals)
14034 (remote_target::program_signals): Adjust.
14035 * target-debug.h (target_debug_print_signals): Now takes a
14036 gdb::array_view as parameter. Adjust.
14037 * target.h (target_ops) <pass_signals, program_signals>: Replace
14038 pointer and length parameters with gdb::array_view.
14039 (target_pass_signals, target_program_signals): Likewise.
14040 * target-delegates.c: Regenerate.
14041
3046d67a
PA
140422019-01-24 Pedro Alves <palves@redhat.com>
14043
14044 * common/forward-scope-exit.h
14045 (forward_scope_exit::forward_scope_exit): Pass arguments to
14046 m_bind_function directly, instead of creating a std::bind and
14047 copying that.
14048
353229bf
AH
140492019-01-24 Alan Hayward <alan.hayward@arm.com>
14050
14051 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14052 for static members.
14053 (pass_in_v_vfp_candidate): Likewise.
14054
311dc83a
TT
140552019-01-23 Tom Tromey <tom@tromey.com>
14056 Pedro Alves <palves@redhat.com>
14057
14058 * regcache.c (class regcache_invalidator): Remove.
14059 (regcache::raw_write): Use make_scope_exit.
14060
296bd123
TT
140612019-01-23 Tom Tromey <tom@tromey.com>
14062
14063 * ui-out.h (class ui_out_emit_type): Update comment.
14064
979a0d13
TT
140652019-01-23 Tom Tromey <tom@tromey.com>
14066
14067 * infrun.c (fetch_inferior_event): Update comment.
14068
d238133d
TT
140692019-01-23 Tom Tromey <tom@tromey.com>
14070 Pedro Alves <palves@redhat.com>
14071
14072 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14073 parameter.
14074 (fetch_inferior_event): Use SCOPE_EXIT.
14075
14076
9885e6bb
TT
140772019-01-23 Tom Tromey <tom@tromey.com>
14078 Pedro Alves <palves@redhat.com>
14079
14080 * infrun.c (disable_thread_events): Delete.
14081 (stop_all_threads): Use SCOPE_EXIT.
14082
286526c1
TT
140832019-01-23 Tom Tromey <tom@tromey.com>
14084 Pedro Alves <palves@redhat.com>
14085
14086 * symfile.c: Include forward-scope-exit.h.
14087 (clear_symtab_users_cleanup): Replace forward declaration with
14088 a FORWARD_SCOPE_EXIT.
14089 (syms_from_objfile_1): Use the forward_scope_exit and
14090 gdb::optional instead of cleanup_function.
14091 (reread_symbols): Use the forward_scope_exit instead of
14092 cleanup_function.
14093 (clear_symtab_users_cleanup): Remove function.
14094
1db93f14
TT
140952019-01-23 Tom Tromey <tom@tromey.com>
14096 Pedro Alves <palves@redhat.com>
14097
14098 * linux-nat.c: Include scope-exit.h.
14099 (cleanup_target_stop): Remove.
14100 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14101 SCOPE_EXIT.
14102
2cc83d1e
TT
141032019-01-23 Tom Tromey <tom@tromey.com>
14104 Pedro Alves <palves@redhat.com>
14105
14106 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14107 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14108
694c6bf5
TT
141092019-01-23 Tom Tromey <tom@tromey.com>
14110 Andrew Burgess <andrew.burgess@embecosm.com>
14111 Pedro Alves <palves@redhat.com>
14112
14113 * infrun.c (fetch_inferior_event): Use scope_exit.
14114 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14115 * top.c (execute_command): Use scope_exit.
14116 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14117 * utils.c (do_bpstat_clear_actions_cleanup)
14118 (make_bpstat_clear_actions_cleanup): Remove.
14119
4c41382a
TT
141202019-01-23 Tom Tromey <tom@tromey.com>
14121 Pedro Alves <palves@redhat.com>
14122
14123 * infrun.c: Include "common/scope-exit.h"
14124 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14125 (wait_for_inferior): Use SCOPE_EXIT.
14126 (fetch_inferior_event): Use scope_exit.
14127
89f8fb50
TT
141282019-01-23 Tom Tromey <tom@tromey.com>
14129 Pedro Alves <palves@redhat.com>
14130
14131 * breakpoint.c (create_breakpoint): Remove cleanup.
14132
5419bdae
TT
141332019-01-23 Tom Tromey <tom@tromey.com>
14134 Andrew Burgess <andrew.burgess@embecosm.com>
14135 Pedro Alves <palves@redhat.com>
14136
e587ef42
PA
141372019-01-23 Pedro Alves <palves@redhat.com>
14138
14139 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14140
77f0e74c
PA
141412019-01-23 Pedro Alves <palves@redhat.com>
14142 Andrew Burgess <andrew.burgess@embecosm.com>
14143
14144 * gdbthread.h: Include "common/forward-scope-exit.h".
14145 (scoped_finish_thread_state): Redefine custom class in terms of
14146 forward_scope_exit.
14147
5b9b3e53
PA
141482019-01-23 Pedro Alves <palves@redhat.com>
14149 Andrew Burgess <andrew.burgess@embecosm.com>
14150
14151 * common/forward-scope-exit.h: New file.
14152
54b65c9b
PA
141532019-01-23 Pedro Alves <palves@redhat.com>
14154 Andrew Burgess <andrew.burgess@embecosm.com>
14155 Tom Tromey <tom@tromey.com>
14156
14157 * common/scope-exit.h: New file.
14158
cf08fb29
PA
141592019-01-23 Pedro Alves <palves@redhat.com>
14160
14161 * common/preprocessor.h (ESC): Rename to ...
14162 (ESC_PARENS): ... this.
14163 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14164 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14165
ae73e2e2
TT
141662019-01-23 Tom Tromey <tom@tromey.com>
14167
14168 * language.h (class scoped_switch_to_sym_language_if_auto):
14169 Initialize m_lang in both cases.
14170
6594e122
AH
141712019-01-23 Alan Hayward <alan.hayward@arm.com>
14172
14173 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14174 with XCNEW.
14175
a7c9855d
TT
141762019-01-22 Tom Tromey <tom@tromey.com>
14177
14178 * corelow.c: Do not include sys/file.h.
14179
93cc1d53
TT
141802019-01-22 Tom Tromey <tom@tromey.com>
14181
14182 * tui/tui-wingeneral.h: Include gdb_curses.h.
14183
38561778
TT
141842019-01-22 Tom Tromey <tom@tromey.com>
14185
14186 * source-cache.h (class source_cache) <get_source_lines,
14187 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14188
37b3ab5b
TT
141892019-01-22 Tom Tromey <tom@tromey.com>
14190
14191 * remote-fileio.h (struct remote_target): Declare.
14192
3fabc016
TT
141932019-01-22 Tom Tromey <tom@tromey.com>
14194
14195 * python/py-arch.c: Do not include py-ref.h.
14196 * python/py-bpevent.c: Do not include py-ref.h.
14197 * python/py-cmd.c: Do not include py-ref.h.
14198 * python/py-continueevent.c: Do not include py-ref.h.
14199 * python/py-event.h: Do not include py-ref.h.
14200 * python/py-evtregistry.c: Do not include py-ref.h.
14201 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14202 * python/py-frame.c: Do not include py-ref.h.
14203 * python/py-framefilter.c: Do not include py-ref.h.
14204 * python/py-function.c: Do not include py-ref.h.
14205 * python/py-infevents.c: Do not include py-ref.h.
14206 * python/py-linetable.c: Do not include py-ref.h.
14207 * python/py-objfile.c: Do not include py-ref.h.
14208 * python/py-param.c: Do not include py-ref.h.
14209 * python/py-prettyprint.c: Do not include py-ref.h.
14210 * python/py-progspace.c: Do not include py-ref.h.
14211 * python/py-symbol.c: Do not include py-ref.h.
14212 * python/py-symtab.c: Do not include py-ref.h.
14213 * python/py-type.c: Do not include py-ref.h.
14214 * python/py-unwind.c: Do not include py-ref.h.
14215 * python/py-utils.c: Do not include py-ref.h.
14216 * python/py-value.c: Do not include py-ref.h.
14217 * python/py-varobj.c: Do not include py-ref.h.
14218 * python/py-xmethods.c: Do not include py-ref.h.
14219 * python/python.c: Do not include py-ref.h.
14220 * varobj.c: Do not include py-ref.h.
14221
6b4d7774
TT
142222019-01-22 Tom Tromey <tom@tromey.com>
14223
14224 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14225 keyword for bcache.
14226
7af7e9b5
TT
142272019-01-22 Tom Tromey <tom@tromey.com>
14228
14229 * compile/compile-cplus-types.c: Remove a comment by #include.
14230
951d1049
TT
142312019-01-22 Tom Tromey <tom@tromey.com>
14232
14233 * compile/gcc-c-plugin.h: Include compile-internal.h.
14234
d65d5705
TT
142352019-01-22 Tom Tromey <tom@tromey.com>
14236
14237 * stabsread.c (EXTERN): Do not define.
14238 (symnum, next_symbol_text_func, processing_gcc_compilation)
14239 (within_function, global_sym_chain, global_stabs)
14240 (previous_stab_code, this_object_header_files)
14241 (n_this_object_header_files)
14242 (n_allocated_this_object_header_files): Define.
14243 * stabsread.h (EXTERN): Never define. Use "extern".
14244
b6fb1ee5
PW
142452019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14246
14247 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14248 history_value.
14249
be6d4f74
TT
142502019-01-21 Tom Tromey <tom@tromey.com>
14251
14252 * ui-out.c: Fix includes.
14253 * tui/tui-source.c: Fix includes.
14254 * target.c: Fix includes.
14255 * remote.c: Fix includes.
14256 * regcache.c: Fix includes.
14257 * python/py-block.c: Fix includes.
14258 * printcmd.c: Fix includes.
14259 * or1k-tdep.c: Fix includes.
14260 * mi/mi-main.c: Fix includes.
14261 * m32r-tdep.c: Fix includes.
14262 * csky-tdep.c: Fix includes.
14263 * compile/compile-cplus-types.c: Fix includes.
14264 * cli/cli-interp.c: Fix includes.
14265
73021deb
AH
142662019-01-21 Alan Hayward <alan.hayward@arm.com>
14267
14268 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14269 for padding.
14270
7932255d
TT
142712019-01-16 Tom Tromey <tom@tromey.com>
14272
14273 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14274 earlier.
14275 (struct objfile) <msymbols_range>: Move from top level.
14276 <msymbols>: New method.
14277 (class objfile_msymbols): Remove.
14278 * symtab.c (default_collect_symbol_completion_matches_break_on):
14279 Update.
14280 * symmisc.c (dump_msymbols): Update.
14281 * stabsread.c (scan_file_globals): Update.
14282 * objc-lang.c (info_selectors_command, info_classes_command)
14283 (find_methods): Update.
14284 * minsyms.c (find_solib_trampoline_target): Update.
14285 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14286 * coffread.c (coff_symfile_read): Update.
14287 * ada-lang.c (ada_lookup_simple_minsym)
14288 (ada_collect_symbol_completion_matches): Update.
14289
604b1bfb
TT
142902019-01-16 Tom Tromey <tom@tromey.com>
14291
14292 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14293 type. Remove no-argument constructor.
14294 <iterator::operator++>: Simplify.
14295 <begin>: Update.
14296 <end>: Use minimal_symbol_count.
14297
f252c6d5
TT
142982019-01-16 Tom Tromey <tom@tromey.com>
14299
14300 * objfiles.h (struct objfile) <psymtabs>: New method.
14301 (class objfile_psymtabs): Remove.
14302 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14303 typedef.
14304 <range>: New method.
14305 (require_partial_symbols): Change return type.
14306 * psymtab.c (require_partial_symbols)
14307 (psym_expand_symtabs_matching): Update.
14308 * mdebugread.c (parse_partial_symbols): Update.
14309 * dbxread.c (dbx_end_psymtab): Update.
14310
b669c953
TT
143112019-01-15 Tom Tromey <tom@tromey.com>
14312
14313 * symtab.c (lookup_objfile_from_block)
14314 (lookup_symbol_in_objfile_symtabs)
14315 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14316 (find_line_symtab, info_sources_command)
14317 (default_collect_symbol_completion_matches_break_on)
14318 (make_source_files_completion_list): Update.
14319 * symmisc.c (print_objfile_statistics, dump_objfile)
14320 (maintenance_print_symbols, maintenance_info_symtabs)
14321 (maintenance_check_symtabs, maintenance_info_line_tables):
14322 Update.
14323 * source.c (select_source_symtab)
14324 (forget_cached_source_info_for_objfile): Update.
14325 * objfiles.h (class objfile_compunits): Remove.
14326 (struct objfile) <compunits_range>: New typedef.
14327 (compunits): New method.
14328 * objfiles.c (objfile_relocate1): Update.
14329 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14330 * maint.c (count_symtabs_and_blocks): Update.
14331 * linespec.c (iterate_over_all_matching_symtabs): Update.
14332 * cp-support.c (add_symbol_overload_list_qualified): Update.
14333 * coffread.c (coff_symtab_read): Update.
14334 * ada-lang.c (add_nonlocal_symbols)
14335 (ada_collect_symbol_completion_matches)
14336 (ada_add_global_exceptions): Update.
14337
7e955d83
TT
143382019-01-15 Tom Tromey <tom@tromey.com>
14339
14340 * progspace.h (program_space) <objfiles_safe_range>: New
14341 typedef.
14342 <objfiles_safe>: New method.
14343 * objfiles.h (class all_objfiles_safe): Remove.
14344 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14345 * jit.c (jit_inferior_exit_hook): Update.
14346
2030c079
TT
143472019-01-17 Tom Tromey <tom@tromey.com>
14348
14349 * progspace.h (program_space) <objfiles_range>: New typedef.
14350 <objfiles>: New method.
14351 <objfiles_head>: Rename from objfiles.
14352 (object_files): Update.
14353 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14354 * guile/scm-pretty-print.c
14355 (ppscm_find_pretty_printer_from_objfiles): Update.
14356 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14357 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14358 Update.
14359 * python/py-progspace.c (pspy_get_objfiles): Update.
14360 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14361 Update.
14362 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14363 (objfpy_lookup_objfile_by_build_id): Update.
14364 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14365 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14366 Update.
14367 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14368 (expand_symtab_containing_pc, lookup_objfile_from_block)
14369 (lookup_static_symbol, basic_lookup_transparent_type)
14370 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14371 (find_line_symtab, info_sources_command)
14372 (default_collect_symbol_completion_matches_break_on)
14373 (make_source_files_completion_list, find_main_name): Update.
14374 * symmisc.c (print_symbol_bcache_statistics)
14375 (print_objfile_statistics, maintenance_print_symbols)
14376 (maintenance_print_msymbols, maintenance_print_objfiles)
14377 (maintenance_info_symtabs, maintenance_check_symtabs)
14378 (maintenance_expand_symtabs, maintenance_info_line_tables):
14379 Update.
14380 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14381 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14382 (map_overlay_command, unmap_overlay_command)
14383 (simple_overlay_update, expand_symtabs_matching)
14384 (map_symbol_filenames): Update.
14385 * symfile-debug.c (set_debug_symfile): Update.
14386 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14387 Update.
14388 * source.c (select_source_symtab, forget_cached_source_info):
14389 Update.
14390 * solib.c (solib_read_symbols): Update.
14391 * solib-spu.c (append_ocl_sos): Update.
14392 * psymtab.c (maintenance_print_psymbols)
14393 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14394 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14395 * printcmd.c (info_symbol_command): Update.
14396 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14397 Update.
14398 * objfiles.h (class all_objfiles): Remove.
14399 * objfiles.c (have_partial_symbols, have_full_symbols)
14400 (have_minimal_symbols, qsort_cmp, update_section_map)
14401 (shared_objfile_contains_address_p)
14402 (default_iterate_over_objfiles_in_search_order): Update.
14403 * objc-lang.c (info_selectors_command, info_classes_command)
14404 (find_methods): Update.
14405 * minsyms.c (find_solib_trampoline_target): Update.
14406 * maint.c (maintenance_info_sections)
14407 (maintenance_translate_address, count_symtabs_and_blocks):
14408 Update.
14409 * main.c (captured_main_1): Update.
14410 * linux-thread-db.c (try_thread_db_load_from_pdir)
14411 (has_libpthread): Update.
14412 * linespec.c (iterate_over_all_matching_symtabs)
14413 (search_minsyms_for_name): Update.
14414 * jit.c (jit_find_objf_with_entry_addr): Update.
14415 * hppa-tdep.c (find_unwind_entry)
14416 (hppa_lookup_stub_minimal_symbol): Update.
14417 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14418 Update.
14419 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14420 (elf_gnu_ifunc_resolve_by_got): Update.
14421 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14422 * dwarf-index-write.c (save_gdb_index_command): Update.
14423 * cp-support.c (add_symbol_overload_list_qualified): Update.
14424 * breakpoint.c (create_overlay_event_breakpoint)
14425 (create_longjmp_master_breakpoint)
14426 (create_std_terminate_master_breakpoint)
14427 (create_exception_master_breakpoint): Update.
14428 * blockframe.c (find_pc_partial_function): Update.
14429 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14430 (ada_collect_symbol_completion_matches)
14431 (ada_add_global_exceptions): Update.
14432
776489e0
TT
144332019-01-17 Tom Tromey <tom@tromey.com>
14434
14435 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14436 declare VEC.
14437 (solib_target_parse_libraries): Change return type.
14438 (library_list_start_segment, library_list_start_section)
14439 (library_list_end_library, library_list_start_library); Update.
14440 (solib_target_free_library_list): Remove.
14441 (solib_target_parse_libraries): Remove cleanup. Change return
14442 type.
14443 (solib_target_current_sos): Update.
14444
6471e7d2
TT
144452019-01-17 Tom Tromey <tromey@bapiya>
14446
14447 * valprint.c: Replace "the the" with "the".
14448 * symtab.c: Replace "the the" with "the".
14449 * solib.c: Replace "the the" with "the".
14450 * solib-dsbt.c: Replace "the the" with "the".
14451 * linespec.c: Replace "the the" with "the".
14452 * dwarf2loc.h: Replace "the the" with "the".
14453 * amd64-windows-tdep.c: Replace "the the" with "the".
14454 * aarch64-tdep.c: Replace "the the" with "the".
14455
c24bdb02
KS
144562019-01-16 Keith Seitz <keiths@redhat.com>
14457
14458 PR gdb/23773
14459 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14460 <builder>: Rename to ..
14461 <m_builder>: ... this and make private.
14462 (dwarf2_cu::get_builder): New method. Change all users of
14463 `builder' to use this method.
14464 (dwarf2_start_symtab): Move to ...
14465 (dwarf2_cu::start_symtab): ... here. Update all callers
14466 (setup_type_unit_groups): Move to ...
14467 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14468 callers.
14469 (dwarf2_cu::reset_builder): New method.
14470 (process_full_compunit, process_full_type_unit): Use
14471 dwarf2_cu::reset_builder.
14472 (follow_die_offset): Record the ancestor CU if it is different
14473 from the followed DIE's CU.
14474 (follow_die_sig_1): Likewise.
14475
8d64371b
TT
144762019-01-15 Tom Tromey <tom@tromey.com>
14477
14478 * remote.c (class remote_state) <buf>: Now a char_vector.
14479 <buf_size>: Remove.
14480 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14481 parameter.
14482 (remote_target::getpkt_or_notif_sane_1)
14483 (remote_target::getpkt_sane)
14484 (remote_target::getpkt_or_notif_sane): Likewise.
14485 (class remote_target) <putpkt>: New overload.
14486 (remote_target::read_frame): Change type of "buf_p". Remove
14487 sizeof_p parameter.
14488 (packet_ok): New overload.
14489 (packet_check_result): New overload.
14490 Update all uses.
14491
bb277751
TT
144922019-01-14 Tom Tromey <tom@tromey.com>
14493
14494 * remote-notif.c (handle_notification, remote_notif_ack)
14495 (remote_notif_parse): Make "buf" const.
14496 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14497 const.
14498 (remote_notif_parse, remote_notif_ack, handle_notification):
14499 Likewise.
14500 * remote.c (remote_notif_stop_parse): Make "buf" const.
14501 (remote_target::remote_parse_stop_reply): Make "buf" const.
14502 (remote_notif_stop_ack): Make "buf" const.
14503
05be00a8
TT
145042019-01-14 Tom Tromey <tom@tromey.com>
14505
14506 * remote.c (remote_console_output): Make parameter const.
14507
491adeca
TT
145082019-01-14 Tom Tromey <tom@tromey.com>
14509
14510 * target-debug.h (target_debug_print_signals): Constify.
14511 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14512 * procfs.c (procfs_target::pass_signals): Update.
14513 * linux-nat.c (linux_nat_target::pass_signals): Update.
14514 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14515 * target-delegates.c: Rebuild.
14516 * remote.c (remote_target::program_signals): Update.
14517 (remote_target::pass_signals): Update.
14518 * target.c (target_pass_signals): Constify argument.
14519 (target_program_signals): Likewise.
14520 * target.h (struct target_ops) <pass_signals, program_signals>:
14521 Constify argument.
14522 (target_pass_signals, target_program_signals): Constify argument.
14523
bbd94648
TT
145242019-01-14 Tom Tromey <tom@tromey.com>
14525
14526 PR tui/28819:
14527 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14528
6f072a10
PFC
145292019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14530
14531 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14532 field.
14533 * rs6000-tdep.c: Include reggroups.h.
14534 (IS_V_ALIAS_PSEUDOREG): Define.
14535 (rs6000_register_name): Return names for the "vX" aliases.
14536 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14537 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14538 aliases. Call default_register_reggroup_p for all other
14539 pseudo-registers.
14540 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14541 New functions.
14542 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14543 Handle "vX" aliases.
14544 (v_alias_pseudo_register_collect): New function.
14545 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14546 (rs6000_gdbarch_init): Initialize "vX" aliases as
14547 pseudo-registers. Restore registration of
14548 rs6000_pseudo_register_reggroup_p with
14549 set_tdesc_pseudo_register_reggroup_p.
14550
1a782351
MF
145512019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14552
14553 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14554 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14555 set_gdbarch_num_pseudo_regs.
14556
d73cff18
PW
145572019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14558
14559 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14560 Remove arg prefixname, add do_set and do_show.
14561 Add member functions set_list and show_list.
14562 * cli/cli-style.c (class cli_style_option): Update accordingly.
14563 (style_set_list): Move to file scope.
14564 (style_show_list): Likewise.
14565 (set_style): Call help_list.
14566 (show_style): Call cmd_show_list.
14567 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14568 Update to use the new macro.
14569
60a90376
JB
145702019-10-12 Joel Brobecker <brobecker@adacore.com>
14571
14572 * ada-lang.c (_initialize_ada_language): Expand the help text
14573 for the "catch exception" command.
14574
9d7c67bf
PW
145752019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14576
14577 * symtab.c (matching_obj_sections): Initialize obj,
14578 declare it closer to its usage.
14579
7cf47dc4
TT
145802019-01-10 Tom Tromey <tom@tromey.com>
14581
14582 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14583 (basic_inf_threads_range): Remove.
14584 (inf_threads_range, inf_non_exited_threads_range)
14585 (safe_inf_threads_range): Use next_adapter.
14586
d3cb6808
KS
145872019-01-10 Keith Seitz <keiths@redhat.com>
14588
14589 PR gdb/23712
14590 PR symtab/23010
14591 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14592 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14593
63a20375
KS
145942019-01-10 Keith Seitz <keiths@redhat.com>
14595
14596 PR gdb/23712
14597 PR symtab/23010
14598 * dictionary.c (pending_to_vector): Remove.
14599 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14600 Remove _1 suffix, replacing functions of the same name. Update
14601 all callers.
14602 (dict_create_hashed, dict_create_hashed_expandable)
14603 (dict_create_linear, dict_create_linear_expandable, dict_free)
14604 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14605 Make functions static.
14606
b026f593
KS
146072019-01-10 Keith Seitz <keiths@redhat.com>
14608
14609 PR gdb/23712
14610 PR symtab/23010
14611 * dictionary.h (struct dictionary): Replace declaration with
14612 multidictionary.
14613 (dict_create_hashed, dict_create_hashed_expandable)
14614 (dict_create_linear, dict_create_linear_expandable)
14615 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14616 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14617 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14618 taking multidictionary argument.
14619 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14620 * block.h (struct block) <dict>: Change to multidictionary
14621 and rename `multidict'.
14622 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14623 symmisc.c: Update all dictionary references to multidictionary.
14624
c7748ee9
KS
146252019-01-10 Keith Seitz <keiths@redhat.com>
14626
14627 PR gdb/23712
14628 PR symtab/23010
14629 * dictionary.c: Include unordered_map.
14630 (pending_to_vector): New function.
14631 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14632 Rewrite the non-"_1" functions to take vector instead
14633 of linked list.
14634 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14635 "new" _1 versions of the same name.
14636 (multidictionary): Define.
14637 (std::hash<enum language): New definition.
14638 (collate_pending_symbols_by_language, mdict_create_hashed)
14639 (mdict_create_hashed_expandable, mdict_create_linear)
14640 (mdict_create_linear_expandable, mdict_free)
14641 (find_language_dictionary, create_new_language_dictionary)
14642 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14643 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14644 (mdict_size, mdict_empty): New functions.
14645 * dictionary.h (mdict_iterator): Define.
14646
67aa1f3c
PA
146472019-01-10 Pedro Alves <palves@redhat.com>
14648
14649 * breakpoint.c (read_uploaded_action)
14650 (create_tracepoint_from_upload): Adjust to use
14651 gdb::unique_xmalloc_ptr.
14652 * ctf.c (ctf_write_uploaded_tp):
14653 (SET_ARRAY_FIELD): Use emplace_back.
14654 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14655 * tracefile-tfile.c (tfile_write_uploaded_tp):
14656 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14657 gdb::unique_xmalloc_ptr.
14658 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14659 at_string, cond_string, cmd_strings>: Replace char pointers
14660 with gdb::unique_xmalloc_ptr.
14661
2f667667
PA
146622019-01-10 Pedro Alves <palves@redhat.com>
14663
14664 * solib-target.c (library_list_start_library): Don't xstrdup name.
14665
36cb7237
PA
146662019-01-10 Pedro Alves <palves@redhat.com>
14667
14668 * mdebugread.c (parse_partial_symbols): Use
14669 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14670
da584958
AB
146712019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14672
14673 * linux-fork.c (scoped_switch_fork_info)
14674 <~scoped_switch_fork_info>: Fix incorrect variable name.
14675
1ef8573c
AB
146762019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14677
14678 * linux-fork.c (scoped_switch_fork_info)
14679 <scoped_switch_fork_info>: Make explicit.
14680 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14681
8d7bcccb
TT
146822019-01-10 Tom Tromey <tom@tromey.com>
14683
14684 * objfiles.h (objfile::reset_psymtabs): Update.
14685 * objfiles.c (objfile::objfile): Update.
14686 * psymtab.h (psymtab_storage::obstack): Update.
14687 (psymtab_storage::m_obstack): Use gdb::optional.
14688 (class psymtab_storage): Update comment. Remove objfile
14689 parameter.
14690 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14691
b596a3c7
TT
146922019-01-10 Tom Tromey <tom@tromey.com>
14693
14694 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14695 <free_psymtabs>: Now private.
14696 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14697 (allocate_psymtab): Use new method.
14698
a9342b62
TT
146992019-01-10 Tom Tromey <tom@tromey.com>
14700
14701 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14702 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14703 * mdebugread.c (parse_partial_symbols): Use
14704 allocate_dependencies.
14705 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14706 allocate_dependencies.
14707 (process_psymtab_comp_unit_reader)
14708 (build_type_psymtab_dependencies): Likewise.
14709 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14710
5af70966
TT
147112019-01-10 Tom Tromey <tom@tromey.com>
14712
14713 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14714 PSYMBOL_SET_LANGUAGE.
14715 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14716
5923a04c
TT
147172019-01-10 Tom Tromey <tom@tromey.com>
14718
14719 * psymtab.h (psymtab_storage::obstack): New method.
14720 <m_obstack>: Rename from obstack; now private.
14721 * psymtab.c (psymtab_storage): Update.
14722 * dwarf2read.c (create_addrmap_from_index)
14723 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14724 Update.
14725
6d6a12bf
TT
147262019-01-10 Tom Tromey <tom@tromey.com>
14727
14728 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14729 * objfiles.h (objfile::reset_psymtabs): New method.
14730
d320c2b5
TT
147312019-01-10 Tom Tromey <tom@tromey.com>
14732
14733 * symmisc.c (print_symbol_bcache_statistics): Update.
14734 (print_objfile_statistics): Update.
14735 * symfile.c (reread_symbols): Update.
14736 * psymtab.h (class psymtab_storage): New.
14737 * psymtab.c (psymtab_storage): New constructor.
14738 (~psymtab_storage): New destructor.
14739 (require_partial_symbols): Update.
14740 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14741 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14742 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14743 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14744 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14745 (start_psymtab_common, end_psymtab_common)
14746 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14747 (allocate_psymtab): Update.
14748 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14749 Update.
14750 (dump_psymtab_addrmap, maintenance_print_psymbols)
14751 (maintenance_check_psymtabs): Update.
14752 (class objfile_psymtabs): Move to objfiles.h.
14753 * psympriv.h (discard_psymtab): Now inline.
14754 (psymtab_discarder::psymtab_discarder): Update.
14755 (psymtab_discarder::~psymtab_discarder): Update.
14756 (ALL_OBJFILE_PSYMTABS): Rewrite.
14757 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14758 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14759 Remove fields.
14760 <partial_symtabs>: New field.
14761 (class objfile_psymtabs): Move from psymtab.h. Update.
14762 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14763 psymbol_cache.
14764 (objfile::~objfile): Don't destroy psymbol_cache.
14765 * mdebugread.c (parse_partial_symbols): Update.
14766 * dwarf2read.c (create_addrmap_from_index)
14767 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14768 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14769 (add_partial_subprogram, dwarf2_ranges_read): Update.
14770 * dwarf-index-write.c (write_address_map)
14771 (write_one_signatured_type, recursively_write_psymbols)
14772 (class debug_names, class debug_names, write_psymtabs_to_index):
14773 Update.
14774
1d94a5a3
TT
147752019-01-10 Tom Tromey <tom@tromey.com>
14776
14777 * symtab.h (SYMBOL_SET_NAMES): Update.
14778 (symbol_set_names): Update.
14779 (MSYMBOL_SET_NAMES): Update.
14780 * symtab.c (symbol_set_names): Change argument to be an
14781 objfile_per_bfd_storage.
14782 * psymtab.c (add_psymbol_to_bcache): Update.
14783 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14784
0f14768a
TT
147852019-01-10 Tom Tromey <tom@tromey.com>
14786
14787 * symtab.c (create_demangled_names_hash): Change argument to be an
14788 objfile_per_bfd_storage.
14789 (symbol_set_names): Update.
14790
6eee24ce
TT
147912019-01-10 Tom Tromey <tom@tromey.com>
14792
14793 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14794 init_psymbol_list.
14795 * psymtab.c (init_psymbol_list): Do nothing if already called.
14796 * psympriv.h (init_psymbol_list): Add comment.
14797 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14798 init_psymbol_list.
14799 * dbxread.c (dbx_symfile_read): Unconditionally call
14800 init_psymbol_list.
14801
75aedd27
TT
148022019-01-10 Tom Tromey <tom@tromey.com>
14803
14804 * xcoffread.c (scan_xcoff_symtab): Update.
14805 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14806 "where".
14807 * mdebugread.c (parse_partial_symbols)
14808 (handle_psymbol_enumerators): Update.
14809 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14810 * dbxread.c (read_dbx_symtab): Update.
14811 * psympriv.h (psymbol_placement): New enum.
14812 (add_psymbol_to_list): Update.
14813
939652a5
TT
148142019-01-10 Tom Tromey <tom@tromey.com>
14815
14816 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14817 static_psymbols parameters.
14818 (scan_xcoff_symtab): Update.
14819 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14820 static_psymbols parameters.
14821 * psympriv.h (start_psymtab_common): Update.
14822 * mdebugread.c (parse_partial_symbols): Update.
14823 * dwarf2read.c (create_partial_symtab): Update.
14824 * dbxread.c (read_dbx_symtab): Update.
14825 (start_psymtab): Remove global_psymbols and static_psymbols
14826 parameters.
14827
baa62830
TT
148282019-01-10 Tom Tromey <tom@tromey.com>
14829
14830 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14831 * psymtab.c (allocate_psymtab): Add comment.
14832 * psympriv.h (allocate_psymtab): Add comment.
14833 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14834 initializations.
14835 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14836
0e8f53ba
TT
148372019-01-10 Tom Tromey <tom@tromey.com>
14838
14839 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14840 Don't declare.
14841 * mipsread.c: Include mdebugread.h.
14842 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14843 Declare.
14844 * elfread.c: Include mdebugread.h.
14845
b22a7c6a
TT
148462019-01-09 Tom Tromey <tom@tromey.com>
14847
14848 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14849 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14850 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14851 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14852 (psym_lookup_symbol, psym_find_last_source_symtab)
14853 (psym_forget_cached_source_info, psym_print_stats)
14854 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14855 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14856 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14857 (psym_find_compunit_symtab_by_address)
14858 (maintenance_print_psymbols, maintenance_info_psymtabs)
14859 (maintenance_check_psymtabs): Use ranged for.
14860 * psymtab.h (class objfile_psymtabs): New.
14861 (require_partial_symbols): Return objfile_psymtabs.
14862 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14863
3b9d3ac2
TT
148642019-01-09 Tom Tromey <tom@tromey.com>
14865
14866 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14867 (find_pc_mapped_section, list_overlays_command)
14868 (map_overlay_command, unmap_overlay_command)
14869 (simple_overlay_update): Use all_objfiles.
14870 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14871 * printcmd.c (info_symbol_command): Use all_objfiles.
14872 * objfiles.h (ALL_OBJSECTIONS): Remove.
14873 * maint.c (maintenance_translate_address): Use all_objfiles.
14874 * gcore.c (gcore_create_callback): Use all_objfiles.
14875 (objfile_find_memory_regions): Likewise.
14876
8b31193a
TT
148772019-01-09 Tom Tromey <tom@tromey.com>
14878
14879 * symtab.c (find_line_symtab, info_sources_command)
14880 (make_source_files_completion_list): Use objfile_compunits.
14881 * source.c (select_source_symtab): Use objfile_compunits.
14882 * objfiles.h (struct objfile): Update comment.
14883 (ALL_OBJFILES): Remove.
14884 (ALL_FILETABS): Remove.
14885 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14886 objfile_compunits.
14887
d5da8b3c
TT
148882019-01-09 Tom Tromey <tom@tromey.com>
14889
14890 * symmisc.c (print_objfile_statistics, dump_objfile)
14891 (maintenance_print_symbols): Use compunit_filetabs.
14892 * source.c (forget_cached_source_info_for_objfile): Use
14893 compunit_filetabs.
14894 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14895 (ALL_FILETABS): Use compunit_filetabs.
14896 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14897 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14898
5accd1a0
TT
148992019-01-09 Tom Tromey <tom@tromey.com>
14900
14901 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14902 (compunit_filetabs): New.
14903 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14904 compunit_filetabs.
14905 (info_sources_command, make_source_files_completion_list): Remove
14906 declaration.
14907 * symmisc.c (print_objfile_statistics, dump_objfile)
14908 (maintenance_print_symbols): Remove declaration.
14909 (maintenance_info_symtabs): Use compunit_filetabs.
14910 (maintenance_info_line_tables): Likewise.
14911 * source.c (select_source_symtab): Change local variable name.
14912 (forget_cached_source_info_for_objfile): Remove declaration.
14913 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14914 * objfiles.c (objfile_relocate1): Remove declaration.
14915 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14916 declaration.
14917 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14918 * coffread.c (coff_symtab_read): Remove declaration.
14919 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14920 compunit_filetabs.
14921
d8aeb77f
TT
149222019-01-09 Tom Tromey <tom@tromey.com>
14923
14924 * symtab.c (lookup_objfile_from_block)
14925 (find_pc_sect_compunit_symtab, search_symbols)
14926 (default_collect_symbol_completion_matches_break_on): Use
14927 objfile_compunits.
14928 * objfiles.h (ALL_COMPUNITS): Remove.
14929 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14930 * cp-support.c (add_symbol_overload_list_qualified): Use
14931 objfile_compunits.
14932 * ada-lang.c (ada_collect_symbol_completion_matches)
14933 (ada_add_global_exceptions): Use objfile_compunits.
14934
592553c4
TT
149352019-01-09 Tom Tromey <tom@tromey.com>
14936
14937 * source.c (select_source_symtab)
14938 (forget_cached_source_info_for_objfile): Remove declaration.
14939 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14940 declaration.
14941 * maint.c (count_symtabs_and_blocks): Remove declaration.
14942 * cp-support.c (add_symbol_overload_list_qualified): Remove
14943 declaration.
14944 * coffread.c (coff_symtab_read): Remove declaration.
14945 * symtab.c (lookup_symbol_in_objfile_symtabs)
14946 (basic_lookup_transparent_type_1): Use objfile_compunits.
14947 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14948 (info_sources_command, search_symbols)
14949 (default_collect_symbol_completion_matches_break_on)
14950 (make_source_files_completion_list): Remove declaration.
14951 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14952 (ada_collect_symbol_completion_matches)
14953 (ada_add_global_exceptions): Remove declaration.
14954 * linespec.c (iterate_over_all_matching_symtabs): Use
14955 objfile_compunits.
14956 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14957 (class objfile_compunits): New.
14958 (ALL_COMPUNITS): Use objfile_compunits.
14959 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14960 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14961 objfile_compunits.
14962 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14963
5325b9bf
TT
149642019-01-09 Tom Tromey <tom@tromey.com>
14965
14966 * symtab.c (search_symbols)
14967 (default_collect_symbol_completion_matches_break_on): Use
14968 objfile_msymbols.
14969 * ada-lang.c (ada_lookup_simple_minsym)
14970 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14971 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14972 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14973 objfile_msymbols.
14974 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14975 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14976 * objc-lang.c (find_methods): Use objfile_msymbols.
14977 (info_selectors_command, info_classes_command): Likewise.
14978 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14979 * objfiles.h (class objfile_msymbols): New.
14980 (ALL_OBJFILE_MSYMBOLS): Remove.
14981 (ALL_MSYMBOLS): Remove.
14982
cac85af2
TT
149832019-01-09 Tom Tromey <tom@tromey.com>
14984
14985 * common/next-iterator.h (next_adapter): Add Iterator template
14986 parameter.
14987 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14988 (class all_objfiles_safe): New.
14989 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14990 * objfiles.c (put_objfile_before): Update comment.
14991 (add_separate_debug_objfile): Likewise.
14992 (free_all_objfiles): Use all_objfiles_safe.
14993 (objfile_purge_solibs): Likewise.
14994
aed57c53
TT
149952019-01-09 Tom Tromey <tom@tromey.com>
14996
14997 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14998 (expand_symtab_containing_pc, lookup_static_symbol)
14999 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15000 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15001 all_objfiles.
15002 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15003 * breakpoint.c (create_overlay_event_breakpoint)
15004 (create_longjmp_master_breakpoint)
15005 (create_std_terminate_master_breakpoint)
15006 (create_exception_master_breakpoint): Use all_objfiles.
15007 * linux-thread-db.c (try_thread_db_load_from_pdir)
15008 (has_libpthread): Use all_objfiles.
15009 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15010 * linespec.c (iterate_over_all_matching_symtabs)
15011 (search_minsyms_for_name): Use all_objfiles.
15012 * maint.c (maintenance_info_sections): Use all_objfiles.
15013 * main.c (captured_main_1): Use all_objfiles.
15014 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15015 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15016 * guile/scm-pretty-print.c
15017 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15018 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15019 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15020 (maintenance_print_msymbols): Use all_objfiles.
15021 * source.c (select_source_symtab): Use all_objfiles.
15022 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15023 * symfile.c (remove_symbol_file_command)
15024 (expand_symtabs_matching, map_symbol_filenames): Use
15025 all_objfiles.
15026 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15027 all_objfiles.
15028 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15029 * objc-lang.c (find_methods): Use all_objfiles.
15030 * objfiles.c (have_partial_symbols, have_full_symbols)
15031 (have_minimal_symbols, qsort_cmp)
15032 (default_iterate_over_objfiles_in_search_order): Use
15033 all_objfiles.
15034 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15035 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15036 (maintenance_check_psymtabs): Use all_objfiles.
15037 (ALL_PSYMTABS): Remove.
15038 * compile/compile-object-run.c (do_module_cleanup): Use
15039 all_objfiles.
15040 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15041 * cp-support.c (add_symbol_overload_list_qualified): Use
15042 all_objfiles.
15043 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15044 Use all_objfiles.
15045 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15046 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15047 all_objfiles.
15048 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15049 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15050 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15051 Uses all_objfiles.
15052 * solib.c (solib_read_symbols): Use all_objfiles
15053
99d89cde
TT
150542019-01-09 Tom Tromey <tom@tromey.com>
15055
15056 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15057 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15058 all_objfiles.
15059 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15060 * symmisc.c (print_symbol_bcache_statistics)
15061 (print_objfile_statistics, maintenance_print_objfiles)
15062 (maintenance_info_symtabs, maintenance_check_symtabs)
15063 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15064 all_objfiles.
15065 * source.c (forget_cached_source_info): Use all_objfiles.
15066 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15067 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15068 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15069 * objfiles.c (update_section_map): Use all_objfiles.
15070 (shared_objfile_contains_address_p): Likewise.
15071 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15072 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15073
21708325
TT
150742019-01-09 Tom Tromey <tom@tromey.com>
15075
15076 * common/next-iterator.h: New file.
15077 * objfiles.h (class all_objfiles): New.
15078 (struct objfile_iterator): New.
15079
669e09f6
PW
150802019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15081
15082 * NEWS: Move the description of the changed "frame", "select-frame",
15083 and "info frame" commands to the Changed commands section.
15084
041be526
SM
150852019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15086
15087 * gdbtypes.c (check_stub_method_group): Remove handling of old
15088 mangling schemes.
15089 * linespec.c (find_methods): Likewise.
15090 * stabsread.c (read_member_functions): Likewise.
15091 * valops.c (search_struct_method): Likewise.
15092 (value_struct_elt_for_reference): Likewise.
15093 * NEWS: Mention this change.
15094
0e2a2133
AB
150952019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15096
15097 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15098 print_source_lines.
15099 * source.c (print_source_lines_base): Update line number check.
15100 (print_source_lines): New function.
15101 (source_lines_range::source_lines_range): New function.
15102 * source.h (class source_lines_range): New class.
15103 (print_source_lines): New declaration.
15104
1055a3b4
PW
151052019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15106
15107 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15108
cfeadda5
TT
151092019-01-08 Tom Tromey <tom@tromey.com>
15110 Simon Marchi <simon.marchi@ericsson.com>
15111
15112 PR gdb/24060
15113 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15114 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15115 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15116 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15117 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15118 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15119
583068ca
AB
151202019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15121
15122 * source.c (select_source_symtab): Move header comment to
15123 declaration in source.h.
15124 (forget_cached_source_info_for_objfile): Likewise.
15125 (forget_cached_source_info): Likewise.
15126 (identify_source_line): Likewise.
15127 * source.h (identify_source_line): Move declaration from symtab.h
15128 and add comment from source.c
15129 (print_source_lines): Likewise.
15130 (forget_cached_source_info_for_objfile): Likewise.
15131 (forget_cached_source_info): Likewise.
15132 (select_source_symtab): Likewise.
15133 (enum print_source_lines_flag): Move definition from symtab.h.
15134 * symtab.h (identify_source_line): Move declaration to source.h.
15135 (print_source_lines): Likewise.
15136 (forget_cached_source_info_for_objfile): Likewise.
15137 (forget_cached_source_info): Likewise.
15138 (select_source_symtab): Likewise.
15139 (enum print_source_lines_flag): Move definition to source.h.
15140 * tui/tui-hooks.c: Add 'source.h' include.
15141
ec98a4ad
AB
151422019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15143
15144 * source.c (print_source_lines_base): Handle requests to print
15145 reverse line number sequences, and guard against empty lines
15146 string.
15147
62ea19c1
AB
151482019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15149
15150 * source.c (print_source_lines_base): Fix skip of '\r' if next
15151 character is '\n'.
15152
9d30e1fd
TT
151532019-01-06 Tom Tromey <tom@tromey.com>
15154
15155 * c-exp.y (struct c_parse_state) <macro_original_text,
15156 expansion_obstack>: New member.
15157 (macro_original_text, expansion_obstack): Remove globals.
15158 (scan_macro_expansion, scanning_macro_expansion)
15159 (finished_macro_expansion): Update.
15160 (scan_macro_cleanup): Remove.
15161 (yylex, c_parse): Update.
15162
c65bac38
TT
151632019-01-06 Tom Tromey <tom@tromey.com>
15164
15165 * c-exp.y (struct c_parse_state) <strings>: New member.
15166 (operator_stoken): Update.
15167
02e12e38
TT
151682019-01-06 Tom Tromey <tom@tromey.com>
15169
15170 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15171 (union type_stack_elt) <typelist_val>: Now a pointer to
15172 std::vector.
15173 (type_stack_cleanup): Don't declare.
15174 (push_typelist): Update.
15175 * parse.c (pop_typelist): Return a std::vector.
15176 (push_typelist): Take a std::vector.
15177 (follow_types): Update. Do not free args.
15178 (type_stack_cleanup): Remove.
15179 * c-exp.y (struct c_parse_state): New.
15180 (cpstate): New global.
15181 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15182 (nonempty_typelist): Update.
15183 (func_mod): Create a new vector.
15184 (c_parse): Create a c_parse_state.
15185 (check_parameter_typelist): Do not delete params.
15186 (function_method): Update. Do not delete type_list.
15187
f097f5ad
TT
151882019-01-06 Tom Tromey <tom@tromey.com>
15189
15190 PR gdb/28155:
15191 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15192 check_typedef.
15193 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15194 (print_return_value): Likewise.
15195
d2adf9f1
TT
151962019-01-05 Tom Tromey <tom@tromey.com>
15197
15198 * contrib/cleanup_check.py: Remove.
15199 * contrib/gcc-with-excheck: Remove.
15200 * contrib/exsummary.py: Remove.
15201 * contrib/excheck.py: Remove.
15202
2eab46b1
JB
152032019-01-05 Joel Brobecker <brobecker@adacore.com>
15204
15205 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15206 NULL. Initialize tpprev to NULL instead of assigning it
15207 to NULL on the next statement.
15208 * windows-nat.c (windows_delete_thread): Remove check for
15209 main_thread_id before printing thread exit notifications.
15210 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15211 Remove thread ID check against main_thread_id.
15212 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15213 windows_delete_thread.
15214 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15215
48c5e7e2
TT
152162019-01-04 Tom Tromey <tom@tromey.com>
15217
15218 * compile/compile.c (_initialize_compile): Use upper case for
15219 metasyntactic variables.
15220 * symmisc.c (_initialize_symmisc): Use upper case for
15221 metasyntactic variables.
15222 * psymtab.c (_initialize_psymtab): Use upper case for
15223 metasyntactic variables.
15224 * demangle.c (demangle_command): Use upper case for metasyntactic
15225 variables.
15226 (_initialize_demangler): Likewise.
15227 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15228 variables.
15229
986041cd
TT
152302019-01-03 Tom Tromey <tom@tromey.com>
15231
15232 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15233
7c711119
TT
152342019-01-03 Tom Tromey <tom@tromey.com>
15235
15236 * python/py-symtab.c (salpy_str): Update.
15237 (struct salpy_sal_object) <symtab>: Now a PyObject.
15238 (salpy_dealloc): Update.
15239 (del_objfile_sal): Use gdbpy_ref.
15240
1b20edf0
TT
152412019-01-03 Tom Tromey <tom@tromey.com>
15242
15243 * python/py-type.c (convert_field): Use new_reference. Return
15244 gdbpy_ref.
15245 (make_fielditem): Return gdbpy_ref.
15246 (typy_fields): Update.
15247 (typy_getitem): Update.
15248 (field_name): Return gdbpy_ref. Use new_reference.
15249 (typy_iterator_iternext): Update.
15250
ea41325b
TT
152512019-01-03 Tom Tromey <tom@tromey.com>
15252
15253 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15254
2a3c71d6
TT
152552019-01-03 Tom Tromey <tom@tromey.com>
15256
15257 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15258 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15259 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15260 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15261 (pspy_set_type_printers): Likewise.
15262 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15263 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15264 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15265 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15266 (objfpy_set_type_printers): Likewise.
15267
5c329e6a
TT
152682019-01-03 Tom Tromey <tom@tromey.com>
15269
15270 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15271 (gdbpy_print_stack): Use gdbpy_err_fetch.
15272 * python/python-internal.h (class gdbpy_err_fetch): New class.
15273 (class gdbpy_enter) <m_error_type, m_error_value,
15274 m_error_traceback>: Remove.
15275 <m_error>: New member.
15276 (gdbpy_exception_to_string): Don't declare.
15277 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15278 * python/py-value.c (convert_value_from_python): Use
15279 gdbpy_err_fetch.
15280 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15281 gdbpy_exception_to_string.
15282 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15283 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15284 gdbpy_err_fetch.
15285
169bb27b
AB
152862019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15287
15288 * linux-nat.c (delete_lwp_cleanup): Delete.
15289 (struct lwp_deleter): New struct.
15290 (lwp_info_up): New typedef.
15291 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15292 lwp_info_up.
15293
a07c8880
AB
152942019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15295
15296 * linux-fork.c (class scoped_switch_fork_info): New class.
15297 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15298
26089c49
AB
152992019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15300
15301 * valops.c (find_overload_match): Remove use of null_cleanup, and
15302 calls to do_cleanups.
15303
06d3e5b0
AB
153042019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15305
15306 * compile/compile-cplus-types.c
15307 (compile_cplus_instance::decl_name): Handle changes to
15308 cp_func_name.
15309 * cp-support.c (cp_func_name): Update header comment, update
15310 return type.
15311 * cp-support.h (cp_func_name): Update return type in declaration.
15312 * valops.c (find_overload_match): Move temp_func local to top
15313 level of function and change its type. Use temp_func to hold and
15314 delete temporary string obtained from cp_func_name.
15315
66644cd3
AB
153162019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15317
15318 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15319 gdb::char_vector, remove cleanup, and update uses of `msg`.
15320
592d8c0a
JW
153212019-01-03 Jim Wilson <jimw@sifive.com>
15322
15323 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15324
c55d06ec
TT
153252019-01-02 Tom Tromey <tom@tromey.com>
15326
15327 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15328 (tdesc_parse_xml): Remove cleanups.
15329 * target-descriptions.h (make_cleanup_free_target_description):
15330 Don't declare.
15331 (target_desc_deleter): New struct.
15332 (target_desc_up): New typedef.
15333 * target-descriptions.c (target_desc_deleter::operator()): Rename
15334 from free_target_description.
15335 (make_cleanup_free_target_description): Remove.
15336
3a6ae42d
TT
153372019-01-02 Tom Tromey <tom@tromey.com>
15338
15339 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15340 constructor, destructor.
15341 (linespec_parser): Remove typedef.
15342 (~linespec_parser): Rename from linespec_parser_delete.
15343 (linespec_lex_to_end, linespec_complete_label)
15344 (linespec_complete): Update.
15345 (decode_line_full): Remove cleanups.
15346 (decode_line_1): Update.
15347
61fd3e73
TT
153482019-01-02 Tom Tromey <tom@tromey.com>
15349
15350 * python/python-internal.h (inferior_to_inferior_object): Change
15351 return type.
15352 * python/py-exitedevent.c (create_exited_event_object): Update.
15353 * python/py-inferior.c (inferior_to_inferior_object): Return
15354 gdbpy_ref.
15355 (python_new_inferior, python_inferior_deleted)
15356 (thread_to_thread_object, delete_thread_object)
15357 (build_inferior_list, gdbpy_selected_inferior): Update.
15358 * python/py-infthread.c (create_thread_object): Update. Also fail
15359 if inferior_to_inferior_object fails.
15360
d20172fc
SM
153612019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15362
15363 * inferior.h (class inferior) <displaced_step_state>: New field.
15364 * infrun.h (struct displaced_step_state): Move here from
15365 infrun.c. Initialize fields, add constructor.
15366 <inf>: Remove field.
15367 <reset>: New method.
15368 * infrun.c (struct displaced_step_inferior_state): Move to
15369 infrun.h.
15370 (displaced_step_inferior_states): Remove.
15371 (get_displaced_stepping_state): Adust.
15372 (displaced_step_in_progress_any_inferior): Adjust.
15373 (displaced_step_in_progress_thread): Adjust.
15374 (displaced_step_in_progress): Adjust.
15375 (add_displaced_stepping_state): Remove.
15376 (get_displaced_step_closure_by_addr): Adjust.
15377 (remove_displaced_stepping_state): Remove.
15378 (infrun_inferior_exit): Call displaced_step_state.reset.
15379 (use_displaced_stepping): Don't check for NULL.
15380 (displaced_step_prepare_throw): Call
15381 get_displaced_stepping_state.
15382 (displaced_step_fixup): Don't check for NULL.
15383 (prepare_for_detach): Don't check for NULL.
15384
e3319240
PW
153852019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15386
15387 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15388 in case of call that did not complete.
15389
5d36dfb9
AU
153902019-01-02 Andrey Utkin <autkin@undo.io>
15391
15392 * symfile.c (find_separate_debug_file): Fix search of debug files for
15393 remote debuggee.
15394
8833fbf0
TT
153952019-01-02 Tom Tromey <tom@tromey.com>
15396
15397 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15398 indentation.
15399 * python/py-frame.c (frapy_older): Remove cast.
15400 (frapy_newer): Likewise.
15401 * python/py-breakpoint.c (local_setattro): Remove cast.
15402 * python/py-arch.c (archpy_name): Remove local variable.
15403 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15404
4ada3dfd
JB
154052019-01-02 Joel Brobecker <brobecker@adacore.com>
15406
15407 * unittests/basic_string_view/element_access/char/empty.cc:
15408 Fix year range in copyright header.
15409
113b7b81
AB
154102019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15411
15412 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15413 Delete.
15414 <operator==>: Update with for removed field.
15415 <hash>: Likewise.
15416 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15417 <isa_features>: ...this.
15418 <abi_features>: New field.
15419 (riscv_isa_flen): Update comment.
15420 (riscv_abi_xlen): New declaration.
15421 (riscv_abi_flen): New declaration.
15422 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15423 isa_features.
15424 (riscv_abi_xlen): New function.
15425 (riscv_isa_flen): Update to get answer from isa_features.
15426 (riscv_abi_flen): New function.
15427 (riscv_has_fp_abi): Update to get answer from abi_features.
15428 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15429 xlen and flen.
15430 (riscv_call_info) <xlen, flen>: Update comment.
15431 (riscv_call_arg_struct): Remove invalid assertions
15432 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15433 is removed.
15434 (riscv_gdbarch_init): Gather isa features and abi features
15435 separately, ensure both match on the gdbarch when reusing an old
15436 gdbarch. Relax an error check to allow 32-bit abi float to run on
15437 a target with 64-bit float hardware.
15438
b18ca514
PW
154392019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15440
15441 * source.c (search_command_helper): Stop reverse search
15442 when line 1 has been searched.
15443
ec70d8db
PW
154442019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15445
15446 * record-full.c (record_full_base_target::close): Rewrite
15447 record_full_core_buf_list free logic.
15448
5b38f9c1
PW
154492019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15450
15451 * break-catch-syscall.c (print_one_catch_syscall): xfree
15452 the last text.
15453
66d91b39
JB
154542019-01-01 Joel Brobecker <brobecker@adacore.com>
15455
15456 * top.c (print_gdb_version): Update Copyright year in version
15457 message.
15458
42a4f53d
JB
154592019-01-01 Joel Brobecker <brobecker@adacore.com>
15460
15461 Update copyright year range in all GDB files.
15462
7e955d83 154632019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15464
5bbd631d 15465 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15466
5bbd631d 15467For older changes see ChangeLog-2018.
c906108c
SS
15468\f
15469Local Variables:
15470mode: change-log
15471left-margin: 8
15472fill-column: 74
15473version-control: never
57da7796 15474coding: utf-8
c906108c 15475End:
5bbd631d 15476
This page took 3.951077 seconds and 4 git commands to generate.