1 2018-11-21 Pedro Alves <palves@redhat.com>
3 * cp-support.c (sym_return_val_size, sym_return_val_index)
4 (sym_return_val): Delete.
5 (overload_list_add_symbol): Add std::vector parameter. Adjust to
7 (make_symbol_overload_list): Adjust to return a std::vector
8 instead of maintaining a global open coded vector.
9 (make_symbol_overload_list_block): Add std::vector parameter.
10 (make_symbol_overload_list_block): Rename to ...
11 (add_symbol_overload_list_block): ... this and add std::vector
13 (make_symbol_overload_list_namespace): Rename to ...
14 (add_symbol_overload_list_namespace): ... this and add std::vector
16 (make_symbol_overload_list_adl_namespace): Rename to ...
17 (add_symbol_overload_list_adl_namespace): ... this and add
18 std::vector parameter.
19 (make_symbol_overload_list_adl): Delete.
20 (add_symbol_overload_list_adl): New.
21 (make_symbol_overload_list_using): Rename to ...
22 (add_symbol_overload_list_using): ... this and add std::vector
24 (make_symbol_overload_list_qualified): Rename to ...
25 (add_symbol_overload_list_qualified): ... this and add std::vector
27 * cp-support.h: Include "common/array-view.h" and <vector>.
28 (make_symbol_overload_list): Change return type to std::vector.
29 (make_symbol_overload_list_adl): Delete declaration.
30 (add_symbol_overload_list_adl): New declaration.
31 * valops.c (find_overload_match): Local 'oload_syms' now a
33 (find_oload_champ_namespace): 'oload_syms' parameter now a
35 (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
36 std::vector pointer. Adjust to new make_symbol_overload_list
39 2018-11-21 Pedro Alves <palves@redhat.com>
41 * common/array-view.h (array_view::splice(size_type, size_t)): New.
42 (array_view::splice(size_type)): New.
43 * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
44 * extension.c (xmethod_worker::get_arg_types): Adjust to return an
46 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
47 * extension.h: Include "common/array-view.h".
48 (xmethod_worker::invoke): Adjust to use gdb::array_view.
49 (xmethod_worker::get_arg_types): Adjust to return an std::vector.
50 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
51 (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
52 (xmethod_worker::do_get_result_type): Adjust to use
54 * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
55 * gdbtypes.h: Include "common/array-view.h".
56 (rank_function): Adjust to use gdb::array_view.
57 * python/py-xmethods.c (python_xmethod_worker::invoke)
58 (python_xmethod_worker::do_get_arg_types)
59 (python_xmethod_worker::do_get_result_type)
60 (python_xmethod_worker::invoke): Adjust to new interfaces.
61 * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
62 (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
63 * valops.c (find_overload_match, find_oload_champ_namespace)
64 (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
65 gdb:array_view and the new xmethod_worker interfaces.
66 * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
68 * value.h (find_overload_match, result_type_of_xmethod)
69 (call_xmethod): Adjust to use gdb::array_view.
70 * unittests/array-view-selftests.c: Add slicing tests.
72 2018-11-21 Pedro Alves <palves@redhat.com>
74 * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
75 * common/array-view.h (make_array_view): New.
76 * compile/compile-object-run.c (compile_object_run): Adjust to
78 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
79 * eval.c (eval_call): Adjust to pass an array_view.
80 (evaluate_subexp_standard): Adjust to pass an array_view.
81 * gcore.c (call_target_sbrk): Adjust to pass an array_view.
82 * guile/scm-value.c (gdbscm_value_call): Likewise.
83 * infcall.c (push_dummy_code): Replace pointer + size parameters
84 with an array_view parameter.
85 (call_function_by_hand, call_function_by_hand_dummy): Likewise and
87 * infcall.h: Include "common/array-view.h".
88 (call_function_by_hand, call_function_by_hand_dummy): Replace
89 pointer + size parameters with an array_view parameter.
90 * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
91 * linux-tdep.c (linux_infcall_mmap): Likewise.
92 * objc-lang.c (lookup_objc_class, lookup_child_selector)
93 (value_nsstring, print_object_command): Likewise.
94 * python/py-value.c (valpy_call): Likewise.
95 * rust-lang.c (rust_evaluate_funcall): Likewise.
96 * spu-tdep.c (flush_ea_cache): Likewise.
97 * valarith.c (value_x_binop, value_x_unop): Likewise.
98 * valops.c (value_allocate_space_in_inferior): Likewise.
99 * unittests/array-view-selftests.c (run_tests): Add
100 gdb::make_array_view test.
102 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
104 * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
105 than a fixed size buffer.
107 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
109 * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
110 and remove insertion of extra spaces in GDB's output.
111 * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
112 Layout field into a temporary buffer, and then output it as a
115 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
117 * NEWS: Document the language choice done by
118 'info [types|functions|variables]|rbreak'.
120 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
122 * symtab.c (treg_matches_sym_type_name): Use
123 scoped_switch_to_sym_language_if_auto instead of local logic.
124 (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
125 to switch to SYM language when language mode is auto.
127 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
129 * language.h (scoped_switch_to_sym_language_if_auto): New class.
131 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
133 * symtab.c (search_symbols): Properly check absence of type regexp
134 before entering the loop scanning the minimal symbols.
136 2018-11-20 John Darrington <john@darrington.wattle.id.au>
138 * s12z-tdep.c (s12z_extract_return_value): New function.
139 (inv_reg_perm) New array.
140 (s12z_return_value): Populate readbuf if non-null.
142 2018-11-20 Eli Zaretskii <eliz@gnu.org>
144 * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
145 with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
146 to MinGW fixed by Gnulib.
147 (O_NOINHERIT): Define if not defined.
149 2018-11-19 John Darrington <john@darrington.wattle.id.au>
151 * s12z-tdep.c (s12z_frame_cache): Add an assertion.
153 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
155 * infrun.c (displaced_step_inferior_state) <next>: Remove.
157 2018-11-19 Tom Tromey <tom@tromey.com>
159 * source.c (get_filename_and_charpos): Return void.
161 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
163 * skip.c (_initialize_step_skip): Fix "info skip" help.
165 2018-11-16 Tom Tromey <tom@tromey.com>
168 * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
170 2018-11-19 Simon Marchi <simon.marchi@ericsson.com>
172 * infrun.c (displaced_step_inferior_states): Change type to
174 (get_displaced_stepping_state): Adjust.
175 (displaced_step_in_progress_any_inferior): Adjust.
176 (add_displaced_stepping_state): Adjust.
177 (remove_displaced_stepping_state): Adjust.
179 2018-11-18 Tom Tromey <tom@tromey.com>
182 * target-delegates.c: Rebuild.
183 * ia64-linux-nat.c (class ia64_linux_nat_target)
184 <have_steppable_watchpoint>: Use override. Return true, not 1.
185 (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove
187 (ia64_linux_nat_target::low_new_thread): Rename.
188 (class ia64_linux_nat_target) <read_description>: Don't declare.
189 * target.h (struct target_ops) <have_steppable_watchpoint>: Return
192 2018-11-16 Alan Hayward <alan.hayward@arm.com>
195 * aarch64-tdep.c (aarch64_push_dummy_call): Remove
196 lang_struct_return code.
198 2018-11-16 Alan Hayward <alan.hayward@arm.com>
200 * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
202 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
203 * amd64-tdep.c (amd64_push_arguments): Likewise.
204 (amd64_push_dummy_call): Likewise.
205 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
206 * arc-tdep.c (arc_push_dummy_call): Likewise.
207 * arm-tdep.c (arm_push_dummy_call): Likewise.
208 * avr-tdep.c (avr_push_dummy_call): Likewise.
209 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
210 * cris-tdep.c (cris_push_dummy_call): Likewise.
211 * csky-tdep.c (csky_push_dummy_call): Likewise.
212 * frv-tdep.c (frv_push_dummy_call): Likewise.
213 * gdbarch.c: Regenerate.
214 * gdbarch.h: Regenerate.
215 * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
217 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
218 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
219 (hppa64_push_dummy_call): Likewise.
220 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
221 * i386-tdep.c (i386_push_dummy_call): Likewise.
222 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
223 * infcall.c (call_function_by_hand_dummy): Likewise.
224 * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
225 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
226 * m32c-tdep.c (m32c_push_dummy_call): Likewise.
227 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
228 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
229 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
230 * mep-tdep.c (mep_push_dummy_call): Likewise.
231 * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
232 (mips_n32n64_push_dummy_call): Likewise.
233 (mips_o32_push_dummy_call): Likewise.
234 (mips_o64_push_dummy_call): Likewise.
235 * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
236 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
237 * nds32-tdep.c (nds32_push_dummy_call): Likewise.
238 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
239 * or1k-tdep.c (or1k_push_dummy_call): Likewise.
240 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
241 (ppc64_sysv_abi_push_dummy_call): Likewise.
242 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
243 (ppc64_sysv_abi_push_dummy_call): Likewise.
244 * riscv-tdep.c (riscv_push_dummy_call): Likewise.
245 * rl78-tdep.c (rl78_push_dummy_call): Likewise.
246 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
247 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
248 * rx-tdep.c (rx_push_dummy_call): Likewise.
249 * s390-tdep.c (s390_push_dummy_call): Likewise.
250 * score-tdep.c (score_push_dummy_call): Likewise.
251 * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
252 (sh_push_dummy_call_nofpu): Likewise.
253 * sparc-tdep.c (sparc32_store_arguments): Likewise.
254 (sparc32_push_dummy_call): Likewise.
255 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
256 (sparc64_push_dummy_call): Likewise.
257 * spu-tdep.c (spu_push_dummy_call): Likewise.
258 * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
259 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
260 * v850-tdep.c (v850_push_dummy_call): Likewise.
261 * vax-tdep.c (vax_push_dummy_call): Likewise.
262 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
263 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
265 2018-11-16 Alan Hayward <alan.hayward@arm.com>
267 * gdbarch.sh (enum function_call_return_method): Add enum.
268 * gdbarch.h: Regenerate.
269 * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
271 2018-11-15 Joel Brobecker <brobecker@adacore.com>
273 * unittests/copy_bitwise-selftests.c: New file.
274 * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
275 (selftests::copy_bitwise_tests): Delete, moving this code to
276 unittests/copy_bitwise-selftests.c instead.
277 (_initialize_utils): Do not register copy_bitwise tests.
278 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
279 unittests/copy_bitwise-selftests.c.
281 2018-11-14 Joel Brobecker <brobecker@adacore.com>
283 * ada-lang.c (move_bits): Delete. Update all callers to use
284 copy_bitwise instead.
285 * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
286 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
287 Move from here to utils.c.
288 (_initialize_dwarf2loc): Remove call to register copy_bitwise
290 * utils.h (copy_bitwise): Add declaration.
291 * utils.c (copy_bitwise, bits_to_str::bits_to_str)
292 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
293 Moved here from dwarf2loc.c.
294 (_initialize_utils): Register copy_bitwise selftests.
296 2018-11-14 Jim Wilson <jimw@sifive.com>
298 * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
299 (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
300 then increment next_regnum if odd.
301 (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed.
302 (riscv_push_dummy_call): New local ftype. Call check_typedef to set
303 function type. Pass new arg to riscv_arg_location based on function
305 (riscv_return_value): Pass new arg to riscv_arg_location.
307 * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
308 (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
309 of TYPE_LENGTH and BIGGEST_ALIGNMENT.
311 * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
312 setting len. New local align, set to max of arg align and xlen,
313 and pass to first riscv_assign_stack_location call.
315 2018-11-12 Simon Marchi <simon.marchi@polymtl.ca>
317 * skip.c (complete_skip_number): New function.
318 (_initialize_step_skip): Add completers to some skip commands.
320 2018-11-09 Tom Tromey <tom@tromey.com>
322 * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
323 (struct remote_g_packet_data): Derive from allocate_on_obstack.
324 <guesses>: Now a std::vector.
325 (remote_g_packet_data_init, register_remote_g_packet_guess):
327 (remote_read_description_p): Update. Return bool.
328 (remote_target::read_description): Update.
329 (struct remote_g_packet_guess): Add constructor.
331 2018-11-09 Tom Tromey <tom@tromey.com>
333 * common/scoped_fd.h (class scoped_fd): Add move constructor and
334 move assignment operator.
335 * psymtab.c (psymtab_to_fullname): Update.
336 * source.h (open_source_file): Return scoped_fd.
337 (find_and_open_source): Likewise.
338 * source.c (open_source_file): Return scoped_fd.
339 (get_filename_and_charpos): Update.
340 (print_source_lines_base): Update. Use scoped_fd::to_file.
341 (forward_search_command): Likewise.
342 (reverse_search_command): Likewise.
343 (find_and_open_source): Return scoped_fd.
344 * tui/tui-source.c (tui_set_source_content): Update. Use
347 2018-11-09 John Baldwin <jhb@FreeBSD.org>
349 * minsyms.c (minimal_symbol_reader::install): Fix unsigned
352 2018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com>
354 * configure: Regenerate.
356 2018-11-09 Tom de Vries <tdevries@suse.de>
358 * symtab.c (symbol_set_names): Call symbol_find_demangled_name
359 unconditionally, to set the language of the symbol. Manage freeing
360 returned pointer using gdb::unique_xmalloc_ptr.
362 2018-11-08 Tom Tromey <tom@tromey.com>
364 * record.c (require_record_target): Upper-case "<TAB>".
366 2018-11-08 Tom Tromey <tom@tromey.com>
368 * python/lib/gdb/command/pretty_printers.py
369 (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
371 2018-11-08 Tom Tromey <tom@tromey.com>
375 * target.h (target_supports_terminal_ours): Return bool.
376 * target.c (target_supports_terminal_ours): Handle case where
377 current_top_target returns nullptr. Return bool.
379 2018-11-08 Joel Brobecker <brobecker@adacore.com>
381 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
382 return the correct count for potential HFAs.
384 2018-11-08 Jan Beulich <jbeulich@suse.com>
386 * i387-tdep.c (i387_supply_xsave): Split handling of
387 X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
388 (i387_collect_xsave): Likewise.
390 2018-11-08 Andrew Burgess <andrew.burgess@embecosm.com>
392 * riscv-tdep.c (riscv_insn::decode): Update header comment.
393 (riscv_frame_this_id): Catch errors thrown while building the
394 frame cache, leave the frame id as the default, which is the outer
397 2018-11-07 Joel Brobecker <brobecker@adacore.com>
399 * ada-lang.c (read_atcb): Only set task_info->called_task if
400 task_info->state == Entry_Caller_Sleep.
401 (print_ada_task_info): Do not check task_info->state before
402 checking task_info->called_task.
403 (info_task): Likewise.
405 2018-11-07 Joel Brobecker <brobecker@adacore.com>
407 * ada-tasks.c (read_atcb): Clear task_info before computing
408 the value of each of its fields.
410 2018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
412 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
413 NULL before dereferencing it.
415 2018-11-06 Tom de Vries <tdevries@suse.de>
417 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
420 2018-11-06 Max Filippov <jcmvbkbc@gmail.com>
422 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
423 so that it applies to uclinux as well.
425 2018-11-06 Marius Muench <marius.muench@eurecom.fr>
427 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
430 2018-11-06 John Baldwin <jhb@FreeBSD.org>
432 * riscv-fbsd-nat.c (getregs_supplies): Return true for
433 RISCV_CSR_SSTATUS_REGNUM.
435 2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
437 * source.c (open_source_file): Fix leak by transferring the
438 current s->fullname to the unique_xmalloc_ptr fullname given
439 to find_and_open_source.
441 2018-11-04 Tom Tromey <tom@tromey.com>
443 * varobj.c (install_default_visualizer): Update.
444 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
446 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
447 (find_pretty_printer_from_progspace)
448 (find_pretty_printer_from_gdb, find_pretty_printer)
449 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
450 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
453 2018-11-04 Tom Tromey <tom@tromey.com>
455 * python/python.c (gdbpy_parameter_value): Update.
456 * python/python-internal.h (python_string_to_unicode)
457 (python_string_to_target_python_string)
458 (host_string_to_python_string): Return gdbpy_ref.
459 * python/py-utils.c (python_string_to_unicode)
460 (unicode_to_encoded_python_string)
461 (unicode_to_target_python_string)
462 (python_string_to_target_string)
463 (python_string_to_target_python_string): Return gdbpy_ref.
464 (python_string_to_host_string): Update.
465 (host_string_to_python_string): Return gdbpy_ref.
466 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
467 (stpy_fullname): Update.
468 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
470 * python/py-prettyprint.c (print_string_repr): Update.
471 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
472 (objfpy_get_build_id): Update.
473 * python/py-breakpoint.c (bppy_get_location)
474 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
477 2018-11-04 Tom Tromey <tom@tromey.com>
479 * python/python-internal.h (gdb_py_object_from_longest)
480 (gdb_py_object_from_ulongest): Return gdbpy_ref.
481 * python/py-value.c (valpy_int): Update.
482 * python/py-utils.c (gdb_py_object_from_longest): Return
484 (gdb_py_object_from_ulongest): Likewise.
485 * python/py-type.c (typy_get_alignof): Update.
486 * python/py-linetable.c (ltpy_get_all_source_lines)
487 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
488 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
490 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
492 * ada-lang.c (_initialize_ada_language): Fix typo.
494 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
496 * language.c (type): Remove.
497 (_initialize_language): Remove assignment to type.
499 2018-11-02 Joel Brobecker <brobecker@adacore.com>
501 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
502 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
503 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
504 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
505 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
506 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
507 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
508 and aarch64-ravenscar-thread.o.
509 * NEWS: Add entry documenting Ravenscar tasking support
512 2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
514 * symtab.c (info_functions_command): Initialize quiet flag.
515 * stack.c (info_args_command): Likewise.
517 2018-11-01 Jim Wilson <jimw@sifive.com>
519 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
520 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
523 2018-11-01 Joel Brobecker <brobecker@adacore.com>
525 * ada-lang.c (ada_watch_location_expression): New function.
526 (ada_language_defn): Set la_watch_location_expression to
527 ada_watch_location_expression.
529 2018-11-01 Joel Brobecker <brobecker@adacore.com>
531 * print-utils.c (int_string): Remove unnecessary trailing spaces.
533 2018-11-01 Joel Brobecker <brobecker@adacore.com>
535 * rs6000-tdep.c (skip_prologue): Fix potential negative left
538 2018-11-01 Jerome Guitton <guitton@adacore.com>
539 Joel Brobecker <brobecker@adacore.com>
541 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
542 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
543 * arm-pikeos-tdep.c: New file.
544 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
546 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
548 2018-11-01 Simon Marchi <simon.marchi@ericsson.com>
550 * common/pathstuff.c (get_standard_temp_dir): New.
551 * common/pathstuff.h (get_standard_temp_dir): New.
552 * config.in: Re-generate.
553 * configure: Re-generate.
554 * configure.ac: Don't check for mkdtemp.
555 * gnulib/aclocal-m4-deps.mk: Re-generate.
556 * gnulib/aclocal.m4: Re-generate.
557 * gnulib/config.in: Re-generate.
558 * gnulib/configure: Re-generate.
559 * gnulib/import/Makefile.am: Re-generate.
560 * gnulib/import/Makefile.in: Re-generate.
561 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
562 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
563 * gnulib/import/m4/mkdtemp.m4: New file.
564 * gnulib/import/mkdtemp.c: New file.
565 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
567 * unittests/mkdir-recursive-selftests.c (test): Use
568 get_standard_temp_dir.
569 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
571 * compile/compile.c (get_compile_file_tempdir): Likewise.
573 2018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
575 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
576 (SIG_FRAME_LR_OFFSET64): New define.
577 (SIG_FRAME_FP_OFFSET64): New define.
578 (aix_sighandle_frame_cache): New Function.
579 (aix_sighandle_frame_this_id): New Function.
580 (aix_sighandle_frame_prev_register): New Function.
581 (aix_sighandle_frame_sniffer): New Function.
582 (aix_sighandle_frame_unwind): New global variable.
583 (rs6000_aix_init_osabi): Install new frame unwinder.
585 2018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
588 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
591 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
593 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
595 2018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
597 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
598 (producer_is_icc): New function.
599 (check_producer): Set producer_is_icc field on dwarf2_cu.
600 (dwarf2_init_integer_type): New function.
601 (read_base_type): Call dwarf2_init_integer_type instead of
602 init_integer_type in all cases.
603 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
604 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
605 LEN is greater than 0.
607 2018-10-30 Tom Tromey <tom@tromey.com>
609 * main.c (captured_main_1): Check return value of bfd_init.
611 2018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
613 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
616 2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
618 * procfs.c: Include common/pathstuff.h.
620 2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
622 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
623 Add missing braces. No functional change.
625 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
627 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
628 to report a bad option and fix indentation.
629 * demangle.c (demangle_command): Use report_unrecognized_option_error
630 to report a bad option and correctly report the bad option.
632 2018-10-27 Tom Tromey <tom@tromey.com>
635 * darwin-nat.c (copied_shell): New global.
636 (may_have_sip): Rename from should_disable_startup_with_shell.
637 (copy_shell_to_cache, maybe_cache_shell): New functions.
638 (darwin_nat_target::create_inferior): Update. Use
641 2018-10-27 Tom Tromey <tom@tromey.com>
643 * unittests/scoped_fd-selftests.c (test_to_file): New function.
644 (run_tests): Call test_to_file.
645 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
647 * common/scoped_fd.h (scoped_fd::to_file): New method.
649 2018-10-27 Tom Tromey <tom@tromey.com>
651 * unittests/scoped_mmap-selftests.c (test_normal): Use
652 gdb_mkostemp_cloexec.
653 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
654 Use gdb_mkostemp_cloexec.
655 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
656 gnulib/config.in, gnulib/configure,
657 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
658 gnulib/import/m4/gnulib-cache.m4,
659 gnulib/import/m4/gnulib-comp.m4: Update.
660 * gnulib/import/m4/mkostemp.m4: New file.
661 * gnulib/import/m4/mkstemp.m4: Remove.
662 * gnulib/import/mkostemp.c: New file.
663 * gnulib/import/mkstemp.m4: Remove.
664 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
665 mkstemp, add mkostemp. Apply new patch.
666 * gnulib/import/stdlib.in.h: Apply patch.
667 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
669 * dwarf-index-write.c (write_psymtabs_to_index): Use
670 gdb_mkostemp_cloexec.
671 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
673 2018-10-27 Tom Tromey <tom@tromey.com>
675 * unittests/mkdir-recursive-selftests.c: New file.
676 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
677 unittests/mkdir-recursive-selftests.c.
678 * dwarf-index-cache.c (mkdir_recursive): Move to
680 (index_cache::store): Check return value of mkdir_recursive.
681 (create_dir_and_check, test_mkdir_recursive): Move to new file.
682 (_initialize_index_cache): Don't register test.
683 * common/filestuff.h (mkdir_recursive): Declare.
684 * common/filestuff.c (mkdir_recursive): Move from
685 dwarf-index-cache.c. Return bool.
687 2018-10-27 Tom Tromey <tom@tromey.com>
689 * dwarf-index-write.c (write_psymtabs_to_index): Move
690 make_temp_filename to common/pathstuff.c.
691 * common/pathstuff.h (make_temp_filename): Declare.
692 * common/pathstuff.c (make_temp_filename): New function, moved
693 from dwarf-index-write.c.
695 2018-10-27 Tom Tromey <tom@tromey.com>
697 * procfs.c (procfs_target::create_inferior): Use get_shell.
698 * cli/cli-cmds.c (shell_escape): Use get_shell.
699 * windows-nat.c (windows_nat_target::create_inferior): Use
701 * common/pathstuff.c (get_shell): New function.
702 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
703 (fork_inferior): Use get_shell.
704 * common/pathstuff.h (get_shell): Declare.
706 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
708 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
710 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
712 * stack.c (print_variable_and_value_data): Add preg and treg.
713 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
715 (print_frame_arg_vars): Likewise.
716 (prepare_reg): New function.
717 (info_locals_command): Extract info print args and use them.
718 (info_args_command): Likewise.
719 (_initialize_stack): Modify on-line help.
720 * symtab.c (treg_matches_sym_type_name): New function.
721 (search_symbols): New arg t_regexp.
722 (symtab_symbol_info): New args quiet, regexp, t_regexp.
723 (info_variables_command): Extract info print args and use them.
724 (info_functions_command): Likewise.
725 (info_types_command): Update call to symtab_symbol_info.
726 (_initialize_symtab): Modify on-line help.
727 * symtab.h (treg_matches_sym_type_name): New function.
728 (search_symbols): New t_regexp arg.
730 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
732 * cli-utils.c (extract_arg_maybe_quoted): New function.
733 (extract_info_print_args): New function.
734 (info_print_args_help): New function.
735 (report_unrecognized_option_error): New function.
736 * cli-utils.h (extract_arg_maybe_quoted): New function.
737 (extract_info_print_args): New function.
738 (info_print_args_help): New function.
739 (report_unrecognized_option_error): New function.
741 2018-10-26 Tom Tromey <tom@tromey.com>
743 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
744 (compute_compunit_symtab_includes): Update.
745 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
746 (compunit_symtab_ptr): Likewise.
748 2018-10-26 John Baldwin <jhb@FreeBSD.org>
750 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
751 default_print_auxv_entry for specific tag values.
753 2018-10-26 John Baldwin <jhb@FreeBSD.org>
755 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
757 2018-10-26 Jim Wilson <jimw@sifive.com>
759 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
760 (riscv_linux_sigframe_init): Declare.
761 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
762 (riscv_linux_sigframe): New.
763 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
764 (riscv_linux_sigframe_init): Define.
765 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
767 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
768 (riscv_isa_flen): Likewise. Drop static.
769 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
770 (riscv_isa_flen): Likewise. Declare.
772 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
773 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
775 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
776 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
777 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
778 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
779 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
780 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
781 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
783 (struct ppc_linux_features) <htm>: New field.
784 (ppc_linux_no_features): Add initializer for htm field.
785 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
787 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
788 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
789 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
790 Define if not already defined.
791 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
792 and rs6000/powerpc-isa207-htm-vsx64l.
793 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
794 rs6000/powerpc-isa207-htm-vsx64l.xml.
795 * features/rs6000/power-htm-spr.xml: New file.
796 * features/rs6000/power-htm-core.xml: New file.
797 * features/rs6000/power64-htm-core.xml: New file.
798 * features/rs6000/power-htm-fpu.xml: New file.
799 * features/rs6000/power-htm-altivec.xml: New file.
800 * features/rs6000/power-htm-vsx.xml: New file.
801 * features/rs6000/power-htm-ppr.xml: New file.
802 * features/rs6000/power-htm-dscr.xml: New file.
803 * features/rs6000/power-htm-tar.xml: New file.
804 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
805 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
806 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
807 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
808 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
809 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
810 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
811 fetch_regset with HTM regsets.
812 (store_register, store_ppc_registers): Call store_regset with HTM
814 (ppc_linux_nat_target::read_description): Set htm field in the
815 features struct if needed.
816 * ppc-linux-tdep.c: Include
817 features/rs6000/powerpc-isa207-htm-vsx32l.c and
818 features/rs6000/powerpc-isa207-htm-vsx64l.c.
819 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
820 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
821 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
822 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
823 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
824 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
825 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
826 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
827 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
828 (ppc32_linux_ctarregset): New globals.
829 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
830 (ppc_linux_collect_core_cpgrregset): New function.
831 (ppc_linux_iterate_over_regset_sections): Call back with the htm
833 (ppc_linux_core_read_description): Check if the tm spr section is
834 present and set htm in the features struct.
835 (_initialize_ppc_linux_tdep): Call
836 initialize_tdesc_powerpc_isa207_htm_vsx32l and
837 initialize_tdesc_powerpc_isa207_htm_vsx64l.
838 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
840 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
841 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
842 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
843 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
845 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
847 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
848 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
849 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
851 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
852 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
853 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
854 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
855 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
856 <PPC_CTAR_REGNUM>: Likewise.
857 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
858 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
859 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
860 (IS_CEFP_PSEUDOREG): Define.
861 (rs6000_register_name): Hide the upper halves of checkpointed VSX
862 registers. Return names for the checkpointed DFP, VSX, and EFP
864 (rs6000_pseudo_register_type): Remove initial assert and raise an
865 internal error in the else clause instead. Return types for the
866 checkpointed DFP, VSX, and EFP pseudo registers.
867 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
868 checkpointed DFP pseudo registers.
869 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
870 checkpointed VSX pseudo registers.
871 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
872 from efpr_pseudo_register_read and
873 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
875 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
876 Handle checkpointed DFP, VSX, and EFP registers.
877 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
878 (efp_ax_pseudo_register_collect): New functions.
879 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
880 register logic to new functions. Handle checkpointed DFP, VSX,
881 and EFP pseudo registers.
882 (rs6000_gdbarch_init): Look for and validate the htm features.
883 Include checkpointed DFP, VSX and EFP pseudo-registers.
884 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
887 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
889 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
890 without altivec or fpu.
892 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
893 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
895 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
896 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
897 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
898 Define if not already defined.
899 * features/rs6000/power-ebb.xml: New file.
900 * features/rs6000/power-linux-pmu.xml: New file.
901 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
903 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
904 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
905 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
906 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
907 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
908 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
909 fetch_regset with ebb and pmu regsets.
910 (store_register, store_ppc_registers): Call store_regset with ebb
912 (ppc_linux_nat_target::read_description): Set isa207 field in the
913 features struct if ebb and pmu are avaiable.
914 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
915 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
916 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
918 (ppc_linux_core_read_description): Check if the pmu section is
919 present and set isa207 in the features struct.
920 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
921 (ppc32_linux_pmuregset): Declare.
922 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
923 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
924 <ppc_sier_regnum>: New field.
925 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
927 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
929 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
930 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
931 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
932 ebb and pmu features.
934 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
935 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
937 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
938 (tdesc_powerpc_isa207_vsx64l): Declare.
939 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
940 (struct ppc_linux_features) <isa207>: New field.
941 (ppc_linux_no_features): Add initializer for isa207 field.
942 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
944 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
945 (NT_PPC_TAR): Define if not already defined.
946 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
947 rs6000/powerpc-isa207-vsx64l.
948 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
949 rs6000/powerpc-isa207-vsx64l.xml.
950 * features/rs6000/power-tar.xml: New file.
951 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
952 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
953 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
954 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
955 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
956 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
957 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
958 fetch_regset with the TAR regset.
959 (store_register, store_ppc_registers): Call store_regset with the
961 (ppc_linux_nat_target::read_description): Set isa207 field in the
962 features struct if needed.
963 * ppc-linux-tdep.c: Include
964 features/rs6000/powerpc-isa207-vsx32l.c and
965 features/rs6000/powerpc-isa207-vsx64l.c.
966 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
967 (ppc_linux_iterate_over_regset_sections): Call back with the tar
969 (ppc_linux_core_read_description): Check if the tar section is
970 present and set isa207 in the features struct.
971 (_initialize_ppc_linux_tdep): Call
972 initialize_tdesc_powerpc_isa207_vsx32l and
973 initialize_tdesc_powerpc_isa207_vsx64l.
974 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
975 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
976 (enum) <PPC_TAR_REGNUM>: New enum value.
977 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
979 (ppc_process_record_op31): Record changes to TAR.
981 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
982 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
984 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
985 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
986 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
987 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
988 (struct ppc_linux_features) <ppr_dscr>: New field.
989 (ppc_linux_no_features): Add initializer for ppr_dscr field.
990 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
992 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
993 Define if not already defined.
994 * features/Makefile (WHICH): Add
995 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
996 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
997 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
998 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
999 * features/rs6000/power-dscr.xml: New file.
1000 * features/rs6000/power-ppr.xml: New file.
1001 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
1002 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
1003 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
1004 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
1005 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
1006 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
1007 * ppc-linux-nat.c: Include <sys/uio.h>.
1008 (fetch_regset, store_regset, check_regset): New functions.
1009 (fetch_register, fetch_ppc_registers): Call fetch_regset with
1010 DSCR and PPR regsets.
1011 (store_register, store_ppc_registers): Call store_regset with
1012 DSCR and PPR regsets.
1013 (ppc_linux_get_hwcap2): New function.
1014 (ppc_linux_nat_target::read_description): Call
1015 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
1016 features struct if needed.
1017 * ppc-linux-tdep.c: Include
1018 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
1019 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
1020 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
1021 (ppc32_linux_dscrregset): New globals.
1022 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
1024 (ppc_linux_core_read_description): Check if the ppr and dscr
1025 sections are present and set ppr_dscr in the features struct.
1026 (_initialize_ppc_linux_tdep): Call
1027 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
1028 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
1029 * ppc-linux-tdep.h (ppc32_linux_pprregset)
1030 (ppc32_linux_dscrregset): Declare.
1031 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
1032 <ppc_dscr_regnum>: New field.
1033 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
1034 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
1036 (ppc_process_record_op31): Record changes to PPR and DSCR.
1038 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1040 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
1041 second initializer line for the have_* variables. Initialize
1042 have_fpu to 0 instead of 1.
1044 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1046 * arch/ppc-linux-common.c (ppc_linux_match_description):
1047 Parenthesize tdesc assignements and indent them properly.
1049 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1051 * ppc-linux-nat.c (fetch_register): Change if statement to else
1053 (store_register): Likewise.
1055 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1057 * rs6000-tdep.c: Remove reggroups.h include.
1058 (rs6000_pseudo_register_reggroup_p): Remove.
1059 (rs6000_gdbarch_init): Remove call to
1060 set_tdesc_pseudo_register_reggroup_p.
1062 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1064 * reggroups.c (default_register_reggroup_p): Return true for
1065 decfloat registers and float_reggroup.
1067 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1069 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
1070 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
1071 ppc_linux_collect_vrregset by regcache_collect_regset.
1073 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1075 * linux-tdep.c (linux_collect_regset_section_cb): Use
1076 std::vector<gdb_byte> instead of char * and malloc for buf.
1079 2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1081 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
1082 symtab_start instead of always using language_unknown.
1084 2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
1086 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
1087 READ_P parameter, catch and ignore register access errors from
1088 either the old or new MISA location.
1089 (riscv_has_feature): Update call to riscv_read_misa_reg.
1091 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1093 * python/py-function.c (convert_values_to_python): Return
1094 gdbpy_ref<>. Add header comment.
1095 (fnpy_call): Adjust.
1097 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1099 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
1100 (cmdpy_completer_handle_brkchars): Adjust.
1101 (cmdpy_completer): Adjust.
1103 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1105 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1106 Pass correct regnum to raw_supply_zeroed.
1108 2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
1110 * regcache.c (cooked_read_test): Add CSKY to the list of
1111 architectures with a save_reggroup
1113 2018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1116 * infrun.c (follow_exec): In the follow_exec_mode_new case,
1117 transfer terminal state from old new new inferior.
1118 * terminal.h (swap_terminal_info): New function.
1119 * inflow.c (swap_terminal_info): New function.
1121 2018-10-23 Tom Tromey <tom@tromey.com>
1123 * record-btrace.c (get_thread_current_frame_id): Rename from
1124 get_thread_current_frame. Return a frame_id.
1125 (record_btrace_start_replaying): Update.
1127 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1129 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
1132 2018-10-23 Joel Brobecker <brobecker@adacore.com>
1134 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
1135 have_nonsteppable_watchpoint attribute to 1.
1137 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1139 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
1141 (struct register_alias): Rename to...
1142 (struct riscv_register_alias): ...this, and update comment.
1143 (riscv_register_aliases): Update type, and alias names. Remove
1144 CSR names from this list.
1145 (riscv_register_name): Use riscv_gdb_reg_names for int and float
1146 register names. Add an extra assertion.
1147 (riscv_is_regnum_a_named_csr): New function.
1148 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
1150 2018-10-23 John Darrington <john@darrington.wattle.id.au>
1152 * configure.tgt: Add configuration for s12z.
1153 * s12z-tdep.c: New file.
1154 * NEWS: Mention new target.
1156 2018-10-22 Jim Wilson <jimw@sifive.com>
1158 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
1159 FP reg smaller than FP reg size, and fill with -1 instead of 0.
1161 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
1162 (riscv_register_type): Use them.
1163 (riscv_print_one_register_info): Handle union of floats same as float.
1164 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
1165 riscv_fpreg_q_type fields.
1167 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
1169 * gdbarch.sh (gdbarch_num_cooked_regs): New.
1170 * gdbarch.h: Re-generate.
1171 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
1172 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1173 * eval.c (evaluate_subexp_standard): Likewise.
1174 * findvar.c (value_of_register): Likewise.
1175 (value_of_register_lazy): Likewise.
1176 (address_from_register): Likewise.
1177 * frame.c (get_frame_register_bytes): Likewise.
1178 * gdbarch-selftests.c (register_to_value_test): Likewise.
1179 * h8300-tdep.c (h8300_register_type): Likewise.
1180 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
1181 (i386_svr4_reg_to_regnum): Likewise.
1182 * infcmd.c (default_print_registers_info): Likewise.
1183 (registers_info): Likewise.
1184 (print_vector_info): Likewise.
1185 (default_print_float_info): Likewise.
1186 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1187 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
1188 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
1189 (mi_cmd_data_list_changed_registers): Likewise.
1190 (mi_cmd_data_list_register_values): Likewise.
1191 (mi_cmd_data_write_register_values): Likewise.
1192 (mi_cmd_trace_frame_collected): Likewise.
1193 * mips-tdep.c (print_gp_register_row): Likewise.
1194 (mips_print_registers_info): Likewise.
1195 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
1196 * regcache.c (init_regcache_descr): Likewise.
1197 (register_size): Likewise.
1198 (register_dump::dump): Likewise.
1199 (cooked_read_test): Likewise.
1200 (cooked_write_test): Likewise.
1201 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1202 (rs6000_gdbarch_init): Likewise.
1203 * stabsread.c (stab_reg_to_regnum): Likewise.
1204 * stack.c (info_frame_command): Likewise.
1205 * target-descriptions.c (tdesc_register_name): Likewise.
1206 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1207 * tui/tui-regs.c (tui_show_register_group): Likewise.
1208 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1209 (user_reg_map_regnum_to_name): Likewise.
1210 (value_of_user_reg): Likewise.
1211 (maintenance_print_user_registers): Likewise.
1212 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
1213 (xtensa_register_name): Likewise.
1214 (xtensa_register_type): Likewise.
1215 (xtensa_reg_to_regnum): Likewise.
1216 (xtensa_pseudo_register_read): Likewise.
1217 (xtensa_pseudo_register_write): Likewise.
1219 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1221 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
1222 correctly-sized buffer with raw_read.
1223 (amd64_pseudo_register_write): Use correctly-sized buffer for
1226 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1228 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
1229 in add_prefix_cmd of set print type.
1231 2018-10-19 Tom Tromey <tom@tromey.com>
1234 * NEWS: Mention tabset deprecation.
1235 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
1236 (update_tab_width): New function.
1237 (tui_set_tab_width, tui_show_tab_width): New functions.
1238 (tui_set_tab_width_command): Use update_tab_width.
1239 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
1240 Add new "set tui tab-width" command.
1241 * tui/tui-source.c (tui_set_source_content): Update.
1242 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1243 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
1245 (tui_tab_width): Declare.
1246 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
1247 (tui_set_default_tab_len): Remove.
1249 2018-10-19 Tom Tromey <tom@tromey.com>
1251 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
1252 (key_is_backspace, tui_getc): Don't declare.
1253 * tui/tui-io.c (key_is_start_sequence): Now static.
1254 (key_is_end_sequence, key_is_backspace): Remove.
1255 (tui_getc): Now static.
1257 2018-10-19 Tom Tromey <tom@tromey.com>
1259 * symfile.c (reread_symbols): Clear "static_links".
1261 2018-10-19 Alan Hayward <alan.hayward@arm.com>
1263 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
1265 (aarch64_linux_sigframe_init): Extra boundary checks.
1267 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
1269 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
1270 the possibly non-existent tdesc type 'vec128', but the type of raw
1271 register v16 instead.
1273 2018-10-19 Gary Benson <gbenson@redhat.com>
1275 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
1277 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
1280 * cli/cli-dump.c (restore_binary_file): Check if "file" is
1283 2018-10-17 Paul Koning <paul_koning@dell.com>
1285 * charset.c (convert_between_encodings): Fix unsigned overflow.
1287 2018-10-17 John Baldwin <jhb@FreeBSD.org>
1289 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
1290 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
1291 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
1292 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1294 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
1295 and fbsd_info_proc_mappings_header.
1296 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
1297 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1300 2018-10-17 Joel Brobecker <brobecker@adacore.com>
1302 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
1305 2018-10-15 Tom Tromey <tom@tromey.com>
1307 * tui/tui.c (strcat_to_buf): Remove casts.
1308 * tui/tui-winsource.c (tui_show_source_line)
1309 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
1310 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
1311 * tui/tui-windata.c (tui_first_data_item_displayed)
1312 (tui_delete_data_content_windows, tui_erase_data_content)
1313 (tui_display_all_data, tui_display_data_from)
1314 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
1315 * tui/tui-win.c (tui_set_win_height)
1316 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
1318 * tui/tui-win.c (tui_resize_all): Remove casts.
1319 (tui_scroll_backward_command, tui_set_focus)
1320 (tui_set_tab_width_command): Likewise.
1321 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
1322 * tui/tui-regs.c (tui_show_register_group): Remove cast.
1323 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
1324 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
1325 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
1328 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
1330 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
1331 AArch64/ARM maintainer.
1333 2018-10-11 Gary Benson <gbenson@redhat.com>
1335 * interps.h (interp::m_name): Make private and mutable.
1336 * interps.c (interp::~interp): Free m_name.
1338 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1339 Simon Marchi <simark@simark.ca>
1341 * README (`configure' options): Add documentation for new
1342 "--enable-unit-tests" option.
1343 * acinclude.m4: Include "selftest.m4".
1344 * configure: Regenerate.
1345 * configure.ac: Use "GDB_AC_SELFTEST".
1346 * maint.c (maintenance_selftest): Update message informing
1347 that selftests have been disabled.
1348 (maintenance_info_selftests): Likewise.
1349 * selftest.m4: New file.
1351 2018-10-10 Gary Benson <gbenson@redhat.com>
1353 * remote.c (remote_target::remote_send_printf): Add
1354 missing va_end found by Coverity.
1356 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
1358 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
1360 2018-10-09 Tom Tromey <tom@tromey.com>
1362 * configure: Rebuild.
1363 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
1364 * NEWS: Update --enable-ubsan documentation.
1366 2018-10-09 Gary Benson <gbenson@redhat.com>
1368 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
1371 2018-10-08 Tom Tromey <tom@tromey.com>
1373 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
1375 (riscv_fbsd_init_abi): Likewise.
1377 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
1378 * valops.c (value_struct_elt_for_reference): Rename local variable
1379 to work around the shadowing a previous local warning.
1381 2018-10-08 John Baldwin <jhb@FreeBSD.org>
1383 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
1384 * NEWS: Mention new FreeBSD/riscv native configuration.
1385 * configure.host: Add riscv*-*-freebsd*.
1386 * configure.nat: Likewise.
1387 * riscv-fbsd-nat.c: New file.
1389 2018-10-08 John Baldwin <jhb@FreeBSD.org>
1391 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
1392 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
1393 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
1394 * NEWS: Mention new FreeBSD/riscv target.
1395 * configure.tgt: Add riscv*-*-freebsd*.
1396 * riscv-fbsd-tdep.c: New file.
1397 * riscv-fbsd-tdep.h: New file.
1399 2018-10-08 John Baldwin <jhb@FreeBSD.org>
1401 * regcache.h (struct regcache_map_entry): Note that this type can
1402 be used with traditional frame caches.
1403 * trad-frame.c (trad_frame_set_reg_regmap): New.
1404 * trad-frame.h (trad_frame_set_reg_regmap): New.
1406 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
1409 * valops.c (get_virtual_base_offset): New function.
1410 (value_struct_elt_for_reference): Use it to get virtual base offset
1411 and add it in calculating class member address.
1413 2018-10-08 John Darrington <john@darrington.wattle.id.au>
1415 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
1416 (check_producer): Check if the producer is codewarrior.
1417 (producer_is_codewarrior): New function.
1418 (lnp_state_machine::record_line): Ignore is_stmt flag for records
1419 produced by codewarrior.
1420 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
1422 2018-10-06 Tom Tromey <tom@tromey.com>
1425 * python/py-inferior.c: Add "architecture" entry.
1426 (infpy_architecture): New function.
1428 2018-10-06 Tom Tromey <tom@tromey.com>
1431 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
1432 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
1433 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
1434 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
1436 2018-10-06 Tom Tromey <tom@tromey.com>
1439 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
1440 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
1441 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
1444 2018-10-06 Tom Tromey <tom@tromey.com>
1446 * python/py-breakpoint.c (bppy_get_location): Handle a
1447 bp_breakpoint without a location.
1449 2018-10-06 Tom Tromey <tom@tromey.com>
1451 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
1452 (_RegEx): Reformat help text.
1453 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
1454 (AnyCallerIs, AnyCallerMatches): Reformat help text.
1455 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
1457 * python/lib/gdb/command/xmethods.py (InfoXMethod)
1458 (EnableXMethod, DisableXMethod): Remove help indentation.
1459 Capitalize meta-syntactic variables.
1460 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
1461 (EnableUnwinder, DisableUnwinder): Remove help indentation.
1462 Capitalize meta-syntactic variables.
1463 * python/lib/gdb/command/explore.py (ExploreCommand)
1464 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
1465 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
1466 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
1467 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
1468 Remove help indentation.
1469 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
1470 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
1471 (DisableFrameFilter, SetFrameFilterPriority)
1472 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
1474 2018-10-06 Tom Tromey <tom@tromey.com>
1477 * tui/tui-io.c (gdb_wgetch): New function.
1478 (tui_mld_getc, tui_getc): Use it.
1480 2018-10-05 Tom Tromey <tom@tromey.com>
1482 * sol-thread.c (sol_thread_target::wait): Rename inner
1485 2018-10-04 Tom Tromey <tom@tromey.com>
1487 * configure: Rebuild.
1488 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
1490 2018-10-04 Tom Tromey <tom@tromey.com>
1492 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
1493 declaration of "block".
1495 2018-10-04 Tom Tromey <tom@tromey.com>
1497 * common/filestuff.c (fdwalk): Remove inner declaration of
1500 2018-10-04 Tom Tromey <tom@tromey.com>
1502 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
1503 "structs_addr" and hoist declaration.
1505 2018-10-04 Tom Tromey <tom@tromey.com>
1507 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
1510 2018-10-04 Tom Tromey <tom@tromey.com>
1512 * mdebugread.c (parse_partial_symbols): Use std::string.
1514 2018-10-04 Tom Tromey <tom@tromey.com>
1516 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
1517 * p-valprint.c (pascal_val_print): Split inner "i" variable.
1518 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
1520 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
1522 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
1523 * varobj.c (varobj_update): Rename inner "newobj",
1525 * valprint.c (generic_emit_char): Rename inner "buf".
1526 * valops.c (find_overload_match): Rename inner "temp".
1527 (value_struct_elt_for_reference): Declare "v" in more inner
1529 * v850-tdep.c (v850_push_dummy_call): Rename "len".
1530 * unittests/array-view-selftests.c (run_tests): Rename inner
1532 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
1534 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
1535 "tsv" in more inner scope.
1536 (print_one_static_tracepoint_marker): Rename inner
1538 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
1539 (tic6x_push_dummy_call): Don't redeclare "addr".
1540 * target-float.c: Declare "dto" lower.
1541 * symtab.c (lookup_local_symbol): Rename inner "sym".
1542 (find_pc_sect_line): Rename inner "pc".
1543 * stack.c (print_frame): Don't redeclare "gdbarch".
1544 (return_command): Rename inner "gdbarch".
1545 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
1547 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
1549 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
1550 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
1552 * remote.c (remote_target::update_thread_list): Don't redeclare
1554 (remote_target::process_initial_stop_replies): Rename inner
1556 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
1557 (remote_target::wait_as): Don't redeclare "stop_reply".
1558 (remote_target::get_thread_local_address): Rename inner
1560 (remote_target::get_tib_address): Likewise.
1562 * regcache.c (cooked_read_test): Rename "regnum".
1563 * record-btrace.c (cmd_record_btrace_start): Rename inner
1565 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
1567 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
1569 (ppu2spu_sniffer): Rename inner "buf".
1570 * parse.c (operator_check_standard): Rename inner "type",
1572 * p-valprint.c (pascal_val_print): Introduce new scope for
1573 "low_bound", "high_bound".
1574 * p-exp.y (yylex): Declare "i" in loop header.
1575 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
1576 Lower declaration of "s".
1577 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
1579 (nios2_push_dummy_call): Rename "len".
1580 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
1582 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
1583 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
1584 (linux_xfer_osdata_modules): Likewise.
1585 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
1586 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1587 (mips_o64_push_dummy_call): Likewise.
1588 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
1590 * mi/mi-main.c (list_available_thread_groups): Rename inner
1592 (mi_cmd_data_read_memory): Rename inner "opts".
1593 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
1595 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
1596 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
1598 (parse_partial_symbols): Rename inner "pst", "p", "name"
1599 * main.c (captured_main_1): Rename inner "i"s.
1600 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
1602 * linux-tdep.c (linux_info_proc): Rename inner "filename".
1603 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
1604 * infrun.c (handle_no_resumed): Don't redeclare "thread".
1605 (handle_signal_stop): Rename inner "gdbarch".
1606 (handle_command): Declare "signum" in loop header.
1607 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
1609 (examine_prologue): Rename inner "sol" and "sof".
1610 (ia64_extract_return_value): Rename inner "val". Declare another
1611 "val" in a more inner scope.
1612 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
1614 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
1616 * findvar.c (default_read_var_value): Don't redeclare "addr".
1617 * f-exp.y (yylex): Declare "i" in loop header.
1618 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
1619 Rename inner "type", "expect_type".
1620 (evaluate_subexp_for_sizeof): Rename inner "pc".
1621 * elfread.c (elf_symfile_read): Rename inner "abfd".
1622 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
1624 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
1625 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
1626 (dwarf_decode_line_header): Rename inner "lh".
1627 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
1628 "offset". Declare "i" in loop header.
1629 (disassemble_dwarf_expression): Rename inner "addr_size".
1630 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
1632 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
1633 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
1634 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
1635 "inner_list_emitter".
1636 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
1637 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
1638 declaration in a block.
1639 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
1640 * cp-valprint.c (cp_print_value_fields): Don't redeclare
1641 "obstack_final_size".
1642 * cp-support.c (inspect_type): Declare "i" in loop header.
1643 * compile/compile.c (compile_instance::insert_symbol_error):
1645 * common/agent.c (agent_run_command): Remove inner "ret"
1647 * coffread.c (coff_symfile_read): Rename inner "name".
1648 (coff_symfile_read): Rename inner "abfd".
1649 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
1650 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
1652 * c-exp.y (lex_one_token): Move "len" declaration lower.
1653 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
1655 (create_exception_master_breakpoint): Likewise. Don't redeclare
1657 (watch_command_1): Declare "mark" later.
1658 (clear_command): Don't shadow "a" or "b".
1659 (delete_command): Rename inner "b".
1660 (delete_trace_command): Likewise.
1661 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
1663 (arm_gdbarch_init): Remove inner "e_flags".
1664 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
1665 "offset" in inner blocks.
1667 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
1669 * dwarf-index-write.c (file_write): Don't write if the vector is
1672 2018-10-05 Tom de Vries <tdevries@suse.de>
1674 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
1675 PyArg_ParseTuple call.
1677 2018-10-05 Tom de Vries <tdevries@suse.de>
1679 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
1680 PyArg_ParseTuple call.
1682 2018-10-04 Joel Brobecker <brobecker@adacore.com>
1684 * psymtab.c (recursively_search_psymtabs): Reformat parameters
1685 to avoid exceeding 80 characters per line limit.
1687 2018-10-04 Tom Tromey <tom@tromey.com>
1689 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1690 (reread_symbols): Update.
1691 * complaints.h (clear_complaints): Remove argument.
1692 * complaints.c (enum complaint_series): Remove.
1693 (series): Remove global.
1694 (complaint_internal): Update.
1695 (clear_complaints): Remove argument.
1697 2018-10-04 Tom Tromey <tom@tromey.com>
1699 * symfile.c (symbol_file_add_with_addrs): Do not print "no
1700 debugging symbols" message if there is a separate debug objfile.
1702 2018-10-04 Tom Tromey <tom@tromey.com>
1705 * symfile.c (symbol_file_add_with_addrs): Update output.
1706 * psymtab.c (require_partial_symbols): Update output.
1708 2018-10-04 Tom Tromey <tom@tromey.com>
1711 * complaints.c: Emit \n.
1713 2018-10-04 Tom Tromey <tom@tromey.com>
1715 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
1716 (separate_debug_file_exists, find_separate_debug_file)
1717 (add_symbol_file_command, reread_symbols, allocate_symtab)
1718 (allocate_compunit_symtab): Use filtered printing, not
1720 * psymtab.c (require_partial_symbols, dump_psymtab)
1721 (allocate_psymtab): Use filtered printing, not unfiltered.
1723 2018-10-04 Tom Tromey <tom@tromey.com>
1725 * complaints.c (complaint_internal): Correctly check complaint
1728 2018-10-04 Tom Tromey <tom@tromey.com>
1730 * complaints.h (struct complaints): Remove declaration.
1731 * complaints.c (clear_complaints): Remove an unused variable.
1733 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1735 * MAINTAINERS (Write After Approval): Add self.
1737 2018-10-03 Tom Tromey <tom@tromey.com>
1739 * guile/scm-value.c (gdbscm_value_to_string): Initialize
1741 * coffread.c (coff_symtab_read): Initialize "newobj".
1743 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
1745 * dwarf2read.c (read_func_scope): Remove struct keyword in
1748 2018-10-03 Tom Tromey <tom@tromey.com>
1750 * README: Mention --enable-ubsan.
1751 * NEWS: Mention --enable-ubsan.
1752 * acinclude.m4: Include sanitize.m4.
1753 * configure: Rebuild.
1754 * configure.ac: Call AM_GDB_UBSAN.
1755 * sanitize.m4: New file.
1757 2018-10-03 Tom Tromey <tom@tromey.com>
1759 * expression.h (enum exp_opcode): Use uint8_t as base type.
1760 * expprint.c (op_name): Handle invalid opcodes.
1762 2018-10-03 Tom Tromey <tom@tromey.com>
1764 * parse.c (prefixify_expression): Add assert.
1765 (parse_exp_in_context_1): Throw exception if the expression is
1768 2018-10-03 Tom Tromey <tom@tromey.com>
1770 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
1772 2018-10-03 Tom Tromey <tom@tromey.com>
1774 * c-exp.y (parse_number): Work in unsigned. Remove casts.
1776 2018-10-03 Tom Tromey <tom@tromey.com>
1778 * dwarf2read.c (read_subrange_type): Make "negative_mask"
1781 2018-10-03 Tom Tromey <tom@tromey.com>
1783 * findvar.c (extract_integer): Do work in an unsigned type.
1785 2018-10-03 Tom Tromey <tom@tromey.com>
1787 * common/enum-flags.h (enum_flags::operator~): Add static assert.
1788 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
1790 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
1791 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
1793 * c-lang.h (enum c_string_type_values): Use unsigned as base
1795 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
1797 2018-10-03 Tom Tromey <tom@tromey.com>
1799 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
1800 <~dwarf2_frame_state_reg_info>: Update.
1801 <dwarf2_frame_state_reg_info>: Update.
1802 <alloc_regs>: Add assertion. Update.
1803 <reg>: Now a std::vector.
1806 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
1807 (execute_cfa_program_test, dwarf2_frame_cache): Update.
1809 2018-10-03 Tom Tromey <tom@tromey.com>
1811 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
1813 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1815 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
1817 2018-10-02 Tom Tromey <tom@tromey.com>
1819 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
1821 2018-10-02 John Darrington <john@darrington.wattle.id.au>
1823 * NEWS: Mention changed commands.
1824 * ser-uds.c: New file.
1825 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
1826 * configure: Regenerate.
1827 * Makefile.in: Add new file.
1828 * serial.c (serial_open): Check if filename is a socket
1829 and lookup the appropriate interface accordingly.
1831 2018-10-01 Alan Hayward <alan.hayward@arm.com>
1833 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
1835 (AARCH64_EXTRA_MAGIC): Likewise.
1836 (AARCH64_FPSIMD_MAGIC): Likewise.
1837 (AARCH64_SVE_MAGIC): Likewise.
1838 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
1839 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
1840 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
1841 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
1842 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
1843 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
1844 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
1845 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
1846 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
1847 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
1848 (read_aarch64_ctx): Add function.
1849 (aarch64_linux_sigframe_init): Detect FP registers.
1851 2018-10-01 Alan Hayward <alan.hayward@arm.com>
1853 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
1854 (AARCH64_D0_REGNUM): Likewise.
1855 (AARCH64_S0_REGNUM): Likewise.
1856 (AARCH64_H0_REGNUM): Likewise.
1857 (AARCH64_B0_REGNUM): Likewise.
1858 (AARCH64_SVE_V0_REGNUM): Likewise.
1859 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
1860 (AARCH64_D0_REGNUM): Likewise.
1861 (AARCH64_S0_REGNUM): Likewise.
1862 (AARCH64_H0_REGNUM): Likewise.
1863 (AARCH64_B0_REGNUM): Likewise.
1864 (AARCH64_SVE_V0_REGNUM): Likewise.
1866 2018-10-01 Gary Benson <gbenson@redhat.com>
1868 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
1869 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
1870 prfpregset_t instead of gdb_prfpregset_t.
1871 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
1872 * configure, config.in: Rebuild.
1874 2018-10-01 Gary Benson <gbenson@redhat.com>
1876 * common/gdb_proc_service.h: New file, factored out from...
1877 * gdb_proc_service.h: Moved common code to the above file.
1878 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
1880 2018-10-01 Gary Benson <gbenson@redhat.com>
1882 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
1883 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
1885 2018-10-01 Gary Benson <gbenson@redhat.com>
1887 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
1888 (AC_CHECK_HEADERS): Check for linux/elf.h.
1889 * configure, config.in: Rebuild.
1890 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
1891 doesn't define elf_fpregset_t.
1893 2018-10-01 Gary Benson <gbenson@redhat.com>
1895 * gdb_proc_service.h: Whitespace change.
1897 2018-10-01 Tom Tromey <tom@tromey.com>
1899 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
1900 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
1901 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
1903 2018-10-01 Tom Tromey <tom@tromey.com>
1905 * README: Minor change.
1907 2018-09-30 Pedro Alves <palves@redhat.com>
1909 * darwin-nat-info.c (darwin_debug_regions_recurse)
1910 (info_mach_exceptions_command): Remove unused local variables.
1911 * darwin-nat.c (darwin_decode_notify_message)
1912 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
1913 (darwin_stop_inferior, darwin_setup_exceptions)
1914 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
1915 (darwin_nat_target::attach, darwin_nat_target::detach)
1916 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
1918 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
1921 2018-09-29 Tom Tromey <tom@tromey.com>
1923 * README: Remove some leftover text.
1925 2018-09-29 Tom Tromey <tom@tromey.com>
1927 * PROBLEMS: Rewrite.
1930 2018-09-28 John Baldwin <jhb@FreeBSD.org>
1932 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
1933 case with explicit breakpoint kind.
1934 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
1935 'additional_info' and related logic.
1936 (riscv_debug_breakpoints): New variable.
1937 (riscv_breakpoint_kind_from_pc): Use the length of the existing
1938 instruction to determine the breakpoint kind.
1939 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
1940 flag. Update description of 'set/show riscv
1941 use-compressed-breakpoints' flag.
1943 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
1945 (NEWS): Mention changes to frame related commands.
1946 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
1947 (add_prefix_cmd_suppress_notification): New function.
1948 (add_com_suppress_notification): Call
1949 add_cmd_suppress_notification.
1950 * command.h (add_cmd_suppress_notification): Declare.
1951 (add_prefix_cmd_suppress_notification): Declare.
1952 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
1953 (parse_frame_specification): Moved from stack.c, with
1954 simplification to handle a single argument.
1955 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
1956 switch to the selected frame. Add a header comment.
1957 * stack.c: Remove 'safe-ctype.h' include.
1958 (find_frame_for_function): Add declaration.
1959 (find_frame_for_address): New function.
1960 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
1961 (frame_selection_by_function_completer): New function.
1962 (info_frame_command): Rename to...
1963 (info_frame_command_core): ...this, and update parameter types.
1964 (select_frame_command): Rename to...
1965 (select_frame_command_core): ...this, and update parameter types.
1966 (frame_command): Rename to...
1967 (frame_command_core): ...this, and update parameter types.
1968 (class frame_command_helper): New class to wrap implementations of
1969 frame related sub-commands.
1970 (frame_apply_cmd_list): New static global.
1971 (frame_cmd_list): Make static.
1972 (select_frame_cmd_list): New global for sub-commands.
1973 (info_frame_cmd_list): New global for sub-commands.
1974 (_initialize_stack): Register sub-commands for 'frame',
1975 'select-frame', and 'info frame'. Update 'frame apply' commands
1976 to use frame_apply_cmd_list. Move function local static
1977 frame_apply_list to file static frame_apply_cmd_list for
1979 * stack.h (select_frame_command): Delete declarationn.
1980 (select_frame_for_mi): Declare new function.
1982 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
1984 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
1985 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
1988 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
1990 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
1992 2018-09-26 Tom Tromey <tom@tromey.com>
1994 * valops.c (auto_abandon): Remove dead code.
1996 2018-09-26 Tom Tromey <tom@tromey.com>
1998 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
2000 2018-09-24 Tom Tromey <tom@tromey.com>
2002 * common/pathstuff.c (get_standard_cache_dir): Make
2003 "xdg_cache_home" and "home" const.
2004 * top.c (init_history): Make "tmpenv" const.
2005 * main.c (get_init_files): Make "homedir" const.
2007 2018-09-23 Tom Tromey <tom@tromey.com>
2010 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
2012 2018-09-23 Tom Tromey <tom@tromey.com>
2014 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
2015 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
2016 * python/python-internal.h (gdbpy_handle_exception): Declare.
2017 * python/py-utils.c (gdbpy_handle_exception): New function.
2019 2018-09-23 Tom Tromey <tom@tromey.com>
2022 * python/py-type.c (typy_template_argument): Check for negative
2025 2018-09-23 Tom Tromey <tom@tromey.com>
2028 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
2030 2018-09-23 Tom Tromey <tom@tromey.com>
2033 * python/py-value.c (valpy_int): Allow conversion from pointer
2036 2018-09-23 Tom Tromey <tom@tromey.com>
2039 * python/py-value.c (valpy_int): Respect type sign.
2041 2018-09-23 Tom Tromey <tom@tromey.com>
2044 * python/py-value.c (valpy_float): Allow conversions from int or
2046 (valpy_int, valpy_long): Allow conversions from float.
2048 2018-09-23 Tom Tromey <tom@tromey.com>
2050 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
2051 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
2053 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2055 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
2057 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
2059 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
2061 * windows-nat.c (windows_nat_target::wait): Remove a spurious
2062 target_terminal::ours().
2064 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
2066 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
2069 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
2071 * breakpoint.c (update_inserted_breakpoint_locations): Remove
2072 redundant condition.
2074 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2076 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
2078 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
2079 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
2080 * sol-thread.c (ps_pdmodel): Don't guard definition.
2082 * procfs.c: Fix formatting.
2084 * procfs.c (sysset_t_alloc): Remove.
2085 (create_procinfo): Use XNEW instead of sysset_t_alloc.
2086 (procfs_debug_inferior): Likewise.
2087 (procfs_set_exec_trap): Likewise.
2088 (proc_set_traced_sysentry): Don't allocate argp dynamically.
2089 (proc_set_traced_sysexit): Likewise.
2091 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
2092 (dead_procinfo): Likewise.
2093 (proc_warn): Likewise.
2094 (proc_error): Likewise.
2095 (proc_get_LDT_entry): Likewise.
2096 (do_attach): Likewise.
2097 (procfs_target::pid_to_str): Likewise.
2098 (iterate_over_mappings): Likewise.
2100 * procfs.c (create_procinfo): Fix ARI warning.
2101 (proc_get_status): Likewise.
2102 (proc_stop_process): Likewise.
2103 (proc_run_process): Likewise.
2104 (proc_kill): Likewise.
2105 (proc_get_LDT_entry): Likewise.
2106 (procfs_find_LDT_entry): Likewise.
2107 (proc_update_threads): Likewise.
2108 (proc_iterate_over_threads): Likewise.
2109 (do_attach): Likewise.
2110 (procfs_xfer_memory): Likewise.
2111 (invalidate_cache): Likewise.
2112 (procfs_target::resume): Likewise.
2113 (procfs_init_inferior): Likewise.
2114 (procfs_set_exec_trap): Likewise.
2115 (procfs_target::thread_alive): Likewise.
2116 (procfs_target::pid_to_exec_file): Likewise.
2117 (iterate_over_mappings): Likewise.
2118 (procfs_target::make_corefile_notes): Likewise.
2119 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
2121 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
2122 (procfs_find_LDT_entry): Likewise.
2123 * sol-thread.c (ps_lgetLDT): Likewise.
2125 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2128 * procfs.c (procfs_target): Declare pid_to_exec_file.
2129 (procfs_target::pid_to_exec_file): New.
2131 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2133 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
2135 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
2136 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
2138 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2140 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
2141 (supply_fpregset, fill_fpregset): Move ...
2142 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
2143 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
2144 Remove references to ioctl-based procfs.
2145 Include <sys/reg.h>.
2146 Remove PR_MODEL_NATIVE guards.
2147 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
2148 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
2150 2018-09-19 Xavier Roirand <roirand@adacore.com>
2153 * solib-darwin.c (darwin_get_dyld_bfd): New function.
2154 (darwin_solib_get_all_image_info_addr_at_init): Update call.
2155 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
2157 2018-09-19 John Baldwin <jhb@FreeBSD.org>
2159 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
2160 (fbsd_print_sockaddr_in6): Likewise.
2162 2018-09-19 Richard Bunt <richard.bunt@arm.com>
2163 Chris January <chris.january@arm.com>
2165 * eval.c (skip_undetermined_arglist): Skip argument list helper.
2166 (evaluate_subexp_standard): Return a dummy type when
2167 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
2168 OP_F77_UNDETERMINED_ARGLIST case.
2169 * expression.h (enum noside): Update comment.
2171 2018-09-19 George Vasick <george.vasick@oracle.com>
2173 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
2175 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
2176 April Chin <april.chin@oracle.com>
2177 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2179 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
2181 (create_procinfo): Print pids in /proc without leading zeros.
2183 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
2185 * nios2-tdep.c (nios2_gcc_target_options): New.
2186 (nios2_gdb_arch_init): Install new hook.
2188 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
2190 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
2192 * update-gnulib.sh: Apply patch.
2193 * configure: Re-generate.
2195 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2197 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
2198 description. Make "info proc" command descriptions more
2201 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2203 * NEWS: Mention 'info proc files' command.
2205 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2207 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
2208 descriptors for IP_FILES and IP_ALL.
2210 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2212 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
2213 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
2214 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
2215 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
2216 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
2217 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
2218 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
2219 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
2220 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
2221 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
2222 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
2223 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
2224 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
2225 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
2226 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
2227 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
2228 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
2229 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
2230 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
2231 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
2232 (struct fbsd_sockaddr_un): New types.
2233 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
2234 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
2235 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
2236 (fbsd_core_info_proc_files): New functions.
2237 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
2239 * fbsd-tdep.h (fbsd_info_proc_files_header)
2240 (fbsd_info_proc_files_entry): New.
2242 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2244 * defs.h (enum info_proc_what) [IP_FILES]: New value.
2245 * infcmd.c (info_proc_cmd_files): New function.
2246 (_initialize_infcmd): Register 'info proc files' command.
2248 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2250 * gnulib/aclocal-m4-deps.mk: Re-generate.
2251 * gnulib/aclocal.m4: Re-generate.
2252 * gnulib/config.in: Re-generate.
2253 * gnulib/configure: Re-generate.
2254 * gnulib/import/Makefile.am: Re-generate.
2255 * gnulib/import/Makefile.in: Re-generate.
2256 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2257 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2258 * gnulib/import/arpa_inet.in.h: New file.
2259 * gnulib/import/inet_ntop.c: New file.
2260 * gnulib/import/m4/arpa_inet_h.m4: New file.
2261 * gnulib/import/m4/inet_ntop.m4: New file.
2262 * gnulib/import/m4/netinet_in_h.m4: New file.
2263 * gnulib/import/m4/socklen.m4: New file.
2264 * gnulib/import/m4/sockpfaf.m4: New file.
2265 * gnulib/import/m4/stdalign.m4: New file.
2266 * gnulib/import/m4/sys_uio_h.m4: New file.
2267 * gnulib/import/netinet_in.in.h: New file.
2268 * gnulib/import/stdalign.in.h: New file.
2269 * gnulib/import/sys_socket.c: New file.
2270 * gnulib/import/sys_socket.in.h: New file.
2271 * gnulib/import/sys_uio.in.h: New file.
2272 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
2275 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2277 * gnulib/aclocal-m4-deps.mk: New file.
2278 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
2281 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2283 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
2286 2018-09-18 Tom Tromey <tom@tromey.com>
2288 * compile/compile-object-load.c (struct
2289 link_hash_table_cleanup_data): Add constructor and destructor.
2290 Use DISABLE_COPY_AND_ASSIGN.
2291 (~link_hash_table_cleanup_data): Rename from
2292 link_hash_table_free. Now a destructor.
2293 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
2295 2018-09-18 Tom Tromey <tom@tromey.com>
2297 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2298 * compile/compile-object-load.c (struct munmap_list): Move to
2300 (munmap_list::add): Rename from munmap_list_add; rewrite.
2301 (munmap_list::~munmap_list): Rename from munmap_list_free.
2302 (munmap_listp_free_cleanup): Remove.
2303 (compile_object_load): Update.
2304 * compile/compile-object-load.h (struct munmap_list): Move from
2305 compile-object-load.c. Rewrite.
2307 2018-09-18 Alan Hayward <alan.hayward@arm.com>
2309 * aarch64-tdep.c (pass_in_v): Use register size.
2310 (aarch64_extract_return_value): Likewise.
2311 (aarch64_store_return_value): Likewise.
2313 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2315 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
2318 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2320 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
2321 Fix short help line.
2323 2018-09-17 Tom Tromey <tom@tromey.com>
2326 * configure: Rebuild.
2327 * configure.ac: Conditionally use -DNDEBUG for Python.
2329 2018-09-17 Tom Tromey <tom@tromey.com>
2331 * configure: Rebuild.
2332 * configure.ac: Use gmp as a library dependency when checking for
2335 2018-09-17 Pedro Alves <palves@redhat.com>
2337 * python/py-inferior.c (find_inferior_object): Delete.
2339 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
2341 * compile/compile-cplus-types.c
2342 (compile_cplus_instance::enter_scope): Don't use new_scope after
2345 2018-09-17 Tom Tromey <tom@tromey.com>
2347 * common/pathstuff.c (get_standard_cache_dir): Use
2348 ~/Library/Caches on macOS.
2349 * common/pathstuff.h (get_standard_cache_dir): Update comment.
2351 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
2354 * breakpoint.c (commands_cmd_element): New.
2355 (_initialize_breakpoint): Assign commands_cmd_element.
2356 * breakpoint.h (commands_cmd_element): New.
2357 * cli/cli-script.c (while_cmd_element, if_command,
2358 define_cmd_element): New.
2359 (command_name_equals): Remove.
2360 (process_next_line): Compare commands by pointer, not by name.
2361 (_initialize_cli_script): Assign the various cmd_list_element
2363 * compile/compile.c (compile_cmd_element): New.
2364 (_initialize_compile): Assign compile_cmd_element.
2365 * compile/compile.h (compile_cmd_element): New.
2366 * guile/guile.c (guile_cmd_element): New.
2367 (install_gdb_commands): Assign guile_cmd_element.
2368 * guile/guile.h (guile_cmd_element): New.
2369 * python/python.c (python_cmd_element): New.
2370 (_initialize_python): Assign python_cmd_element.
2371 * python/python.h (python_cmd_element): New.
2372 * tracepoint.c (while_stepping_cmd_element): New.
2373 (_initialize_tracepoint): Assign while_stepping_cmd_element.
2374 * tracepoint.h (while_stepping_cmd_element): New.
2376 2018-09-17 Tom Tromey <tom@tromey.com>
2378 * infrun.c (save_infcall_suspend_state): Return
2379 infcall_suspend_state_up.
2380 (save_infcall_control_state): Return infcall_control_state_up.
2381 * inferior.h (save_infcall_suspend_state)
2382 (save_infcall_control_state): Declare later. Return unique
2385 2018-09-17 Tom Tromey <tom@tromey.com>
2387 * infrun.c (struct stop_context): Declare constructor,
2388 destructor, "changed" method.
2389 (stop_context::stop_context): Rename from save_stop_context.
2390 (stop_context::~stop_context): Rename from
2391 release_stop_context_cleanup.
2392 (normal_stop): Update.
2393 (stop_context::changed): Rename from stop_context_changed. Return
2396 2018-09-17 Tom Tromey <tom@tromey.com>
2398 * inferior.h (struct infcall_suspend_state_deleter): New.
2399 (infcall_suspend_state_up): New typedef.
2400 (struct infcall_control_state_deleter): New.
2401 (infcall_control_state_up): New typedef.
2402 (make_cleanup_restore_infcall_suspend_state)
2403 (make_cleanup_restore_infcall_control_state): Don't declare.
2404 * infcall.c (call_function_by_hand_dummy): Update.
2405 * infrun.c (do_restore_infcall_suspend_state_cleanup)
2406 (make_cleanup_restore_infcall_suspend_state): Remove.
2407 (do_restore_infcall_control_state_cleanup)
2408 (make_cleanup_restore_infcall_control_state): Remove.
2410 2018-09-17 Tom Tromey <tom@tromey.com>
2412 * gdbthread.h (struct thread_control_state): Add initializer.
2413 (class thread_info) <control>: Remove initializer.
2414 * inferior.h (struct inferior_control_state): Add initializer.
2415 (class inferior) <control>: Remove initializer.
2416 (exit_inferior_1): Update.
2417 * infrun.c (struct infcall_control_state): Add constructors.
2418 (save_infcall_control_state): Use new.
2419 (restore_infcall_control_state, discard_infcall_control_state):
2422 2018-09-17 Tom Tromey <tom@tromey.com>
2424 * infrun.c (struct infcall_suspend_state) <registers>: Now a
2426 <siginfo_data>: Now a unique_xmalloc_ptr.
2427 (save_infcall_suspend_state, restore_infcall_suspend_state)
2428 (discard_infcall_suspend_state)
2429 (get_infcall_suspend_state_regcache): Update.
2431 2018-09-17 Tom Tromey <tom@tromey.com>
2433 * gdbthread.h (struct thread_suspend_state): Add initializers.
2434 (class thread_info) <suspend>: Remove initializer.
2435 * infrun.c (struct infcall_suspend_state): Add initializers.
2436 (save_infcall_suspend_state): Use new.
2437 (discard_infcall_suspend_state): Use delete.
2439 2018-09-16 Tom Tromey <tom@tromey.com>
2441 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2443 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
2444 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2445 (py_varobj_iter_new): Likewise.
2446 (py_varobj_get_iterator): Use gdbpy_ref.
2448 2018-09-16 Tom Tromey <tom@tromey.com>
2450 * python/py-threadevent.c (py_get_event_thread): Simplify.
2451 * python/py-inferior.c (infpy_thread_from_thread_handle):
2452 Return immediately after calling thread_to_thread_object. Use
2454 (thread_to_thread_object): Set the exception on a NULL return.
2456 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2458 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
2460 2018-09-16 Tom Tromey <tom@tromey.com>
2462 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2465 2018-09-16 Tom Tromey <tom@tromey.com>
2467 * python/python-internal.h (thread_to_thread_object): Change
2469 * python/py-inferior.c (thread_to_thread_object): Return a new
2471 (infpy_thread_from_thread_handle): Update.
2472 * python/py-infthread.c (gdbpy_selected_thread): Update.
2473 * python/py-stopevent.c (create_stop_event_object): Update.
2474 * python/py-threadevent.c (py_get_event_thread): Return a new
2476 (py_get_event_thread): Update.
2477 * python/py-event.h (py_get_event_thread): Change return type.
2478 * python/py-continueevent.c (create_continue_event_object):
2481 2018-09-16 Tom Tromey <tom@tromey.com>
2483 * python/py-progspace.c (pspy_get_objfiles): Update.
2484 * python/python-internal.h (objfile_to_objfile_object): Change
2486 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2488 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2490 * python/python.c (gdbpy_get_current_objfile): Update.
2491 (gdbpy_objfiles): Update.
2492 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
2494 (objfile_to_objfile_object): Return a new reference.
2495 * python/py-symtab.c (stpy_get_objfile): Update.
2496 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2499 2018-09-16 Tom Tromey <tom@tromey.com>
2501 * python/py-inferior.c (infpy_get_progspace): Update.
2502 * python/python-internal.h (pspace_to_pspace_object): Change
2504 * python/py-newobjfileevent.c
2505 (create_clear_objfiles_event_object): Update.
2506 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2508 * python/python.c (gdbpy_get_current_progspace): Update.
2509 (gdbpy_progspaces): Update.
2510 * python/py-progspace.c (pspace_to_pspace_object): Return a new
2512 * python/py-objfile.c (objfpy_get_progspace): Update.
2513 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
2516 2018-09-16 Tom Tromey <tom@tromey.com>
2518 * python/lib/gdb/__init__.py (current_progspace, objfiles)
2519 (solib_name, block_for_pc, find_pc_line): New functions.
2520 (execute_unwinders): Update.
2521 * python/py-block.c (gdbpy_block_for_pc): Remove.
2522 * python/py-inferior.c (infpy_get_progspace): New function.
2523 (inferior_object_getset) <progspace>: Add.
2524 * python/py-progspace.c (pspy_objfiles): Rewrite.
2525 (pspy_solib_name, pspy_block_for_pc)
2526 (pspy_find_pc_line, pspy_is_valid): New functions.
2527 (progspace_object_methods): Add entries for solib_name,
2528 block_for_pc, find_pc_line, is_valid.
2529 * python/python-internal.h (gdbpy_block_for_pc)
2530 (build_objfiles_list): Don't declare.
2531 * python/python.c: Don't include solib.h.
2532 (gdbpy_solib_name, gdbpy_find_pc_line)
2533 (gdbpy_get_current_progspace, build_objfiles_list)
2534 (gdbpy_objfiles): Remove.
2535 (GdbMethods) <current_progspace, objfiles, block_for_pc,
2536 solib_name, find_pc_line>: Remove entries.
2538 2018-09-16 Tom Tromey <tom@tromey.com>
2540 * top.c (new_ui_command): Use GNU style for metasyntactic
2542 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
2544 * maint.c (maintenance_translate_address): Remove "<>" around
2546 * interps.c (interpreter_exec_cmd): Use GNU style for
2547 metasyntactic variables.
2548 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
2549 metasyntactic variables.
2550 * tracepoint.c (tfind_range_command): Use GNU style for
2551 metasyntactic variables.
2552 (tfind_outside_command): Likewise.
2553 (_initialize_tracepoint): Likewise.
2554 * remote.c (extended_remote_target::create_inferior): Use GNU
2555 style for metasyntactic variables.
2556 * sparc64-tdep.c (adi_examine_command): Use GNU style for
2557 metasyntactic variables.
2558 (adi_assign_command): Likewise.
2560 2018-09-16 Tom Tromey <tom@tromey.com>
2562 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
2563 metasyntactic variables. Print message if no disassembler options
2566 2018-09-15 Tom Tromey <tom@tromey.com>
2568 * infcmd.c (get_inferior_args): Return const char *.
2569 * inferior.h (get_inferior_args): Return type now const.
2570 * linux-tdep.c (linux_fill_prpsinfo): Update.
2571 * procfs.c (procfs_target::make_corefile_notes): Update.
2573 2018-09-07 Tom Tromey <tom@tromey.com>
2575 * python/python.c (execute_gdb_command): Call bpstat_do_actions
2578 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
2580 * nios2-tdep.c (nios2_type_align): New.
2581 (nios2_gdb_arch_init): Install type_align hook.
2583 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2585 * eval.c (fake_method::fake_method): Call xzalloc directly for a
2586 type that is neither object file owned, nor gdbarch owned.
2587 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
2588 gdbarch is non-NULL.
2589 (alloc_type_instance): Allocate non-objfile owned types on the
2591 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
2592 using TYPE_ALLOC to ensure memory is allocated on the correct
2594 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
2595 obstack, or the gdbarch obstack.
2596 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
2598 2018-09-14 Tom Tromey <tom@tromey.com>
2600 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
2603 2018-09-14 Tom Tromey <tom@tromey.com>
2605 * nat/fork-inferior.c (get_startup_shell): Remove "static".
2607 2018-09-13 Tom Tromey <tom@tromey.com>
2609 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
2612 2018-09-13 Tom Tromey <tom@tromey.com>
2614 * exec.c (try_open_exec_file): Use std::string.
2616 2018-09-13 Tom Tromey <tom@tromey.com>
2618 * utils.h (gdb_bfd_errmsg): Return std::string.
2619 * exec.c (exec_file_attach): Update.
2620 * compile/compile-object-load.c (compile_object_load): Update.
2621 * utils.c (gdb_bfd_errmsg): Return std::string.
2623 2018-09-13 Tom Tromey <tom@tromey.com>
2625 * procfs.c (struct procinfo_deleter): New.
2626 (procinfo_up): New typedef.
2627 (do_destroy_procinfo_cleanup): Remove.
2628 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
2630 2018-09-13 Tom Tromey <tom@tromey.com>
2632 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
2634 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2635 2018-09-13 Tom Tromey <tom@tromey.com>
2637 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
2638 (pspy_get_objfiles): New function.
2639 (progspace_object_methods): New.
2640 (pspace_object_type): Add tp_methods callback.
2641 * python/python-internal.h (build_objfiles_list): New
2643 * python/python.c (build_objfiles_list): New function.
2644 (gdbpy_objfiles): Implement using build_objfiles_list.
2645 * NEWS: Mention the Progspace.objfiles method.
2647 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2649 * python/py-inferior.c (infpy_get_progspace): New function.
2650 (inferior_object_getset): Add progspace property.
2651 * NEWS: Mention the new property.
2653 2018-09-13 Tom Tromey <tom@tromey.com>
2656 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
2658 2018-09-13 Tom Tromey <tom@tromey.com>
2661 * rust-lang.c (rust_enum_variant): Now static.
2662 (rust_empty_enum_p): New function.
2663 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
2666 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2668 * python/py-inferior.c (infpy_repr): New.
2669 (inferior_object_type): Register infpy_repr.
2670 * python/py-objfile.c (objfpy_repr): New.
2671 (objfile_object_type): Register objfpy_repr.
2673 2018-09-12 John Baldwin <jhb@FreeBSD.org>
2675 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
2677 2018-09-12 John Baldwin <jhb@FreeBSD.org>
2679 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
2682 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
2684 * common/common-utils.c: Don't include '<sys/stat.h>'.
2685 (is_regular_file): Move to...
2686 * common/filestuff.c (is_regular_file): ... here.
2687 * common/common-utils.h (is_regular_file): Move to...
2688 * common/filestuff.h (is_regular_file): ... here.
2690 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
2692 * skip.c (debug_skip): New variable.
2693 (skiplist_entry::do_skip_file_p): Add debug output.
2694 (skiplist_entry::do_skip_gfile_p): Likewise.
2695 (skiplist_entry::skip_function_p): Likewise.
2696 (_initialize_step_skip): Create debug command.
2697 * NEWS: Mention set/show debug skip.
2699 2018-09-11 Xavier Roirand <roirand@adacore.com>
2701 * darwin-nat.c (should_disable_startup_with_shell):
2703 (darwin_nat_target::create_inferior): Add call.
2705 2018-09-11 Xavier Roirand <roirand@adacore.com>
2707 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
2708 inf_port, msg_state>: Initialize.
2709 (struct darwin_thread_info) <signaled, single_step>: Change
2710 type and initialize.
2711 (struct darwin_thread_info) <event>: Initialize.
2713 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2717 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
2720 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2723 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2727 * gnulib/aclocal.m4: Regenerate.
2728 * gnulib/config.in: Regenerate.
2729 * gnulib/configure: Regenerate.
2730 * gnulib/import/Makefile.am: Update.
2731 * gnulib/import/Makefile.in: Update.
2732 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2733 * gnulib/import/_Noreturn.h: ... this.
2734 * gnulib/import/alloca.in.h: Update.
2735 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2736 * gnulib/import/arg-nonnull.h: ... this.
2737 * gnulib/import/assure.h: Update.
2738 * gnulib/import/at-func.c: Update.
2739 * gnulib/import/basename-lgpl.c: Update.
2740 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2741 * gnulib/import/c++defs.h: ... this.
2742 * gnulib/import/canonicalize-lgpl.c: Update.
2743 * gnulib/import/cdefs.h: Update.
2744 * gnulib/import/chdir-long.c: Update.
2745 * gnulib/import/chdir-long.h: Update.
2746 * gnulib/import/cloexec.c: Update.
2747 * gnulib/import/cloexec.h: Update.
2748 * gnulib/import/close.c: Update.
2749 * gnulib/import/closedir.c: Update.
2750 * gnulib/import/config.charset: Update.
2751 * gnulib/import/dirent-private.h: Update.
2752 * gnulib/import/dirent.in.h: Update.
2753 * gnulib/import/dirfd.c: Update.
2754 * gnulib/import/dirname-lgpl.c: Update.
2755 * gnulib/import/dirname.h: Update.
2756 * gnulib/import/dosname.h: Update.
2757 * gnulib/import/dup-safer-flag.c: Update.
2758 * gnulib/import/dup-safer.c: Update.
2759 * gnulib/import/dup.c: Update.
2760 * gnulib/import/dup2.c: Update.
2761 * gnulib/import/errno.in.h: Update.
2762 * gnulib/import/error.c: Update.
2763 * gnulib/import/error.h: Update.
2764 * gnulib/import/exitfail.c: Update.
2765 * gnulib/import/exitfail.h: Update.
2766 * gnulib/import/extra/update-copyright: Update.
2767 * gnulib/import/fchdir.c: Update.
2768 * gnulib/import/fcntl.c: Update.
2769 * gnulib/import/fcntl.in.h: Update.
2770 * gnulib/import/fd-hook.c: Update.
2771 * gnulib/import/fd-hook.h: Update.
2772 * gnulib/import/fd-safer-flag.c: Update.
2773 * gnulib/import/fd-safer.c: Update.
2774 * gnulib/import/fdopendir.c: Update.
2775 * gnulib/import/filename.h: Update.
2776 * gnulib/import/filenamecat-lgpl.c: Update.
2777 * gnulib/import/filenamecat.h: Update.
2778 * gnulib/import/flexmember.h: Update.
2779 * gnulib/import/float+.h: Update.
2780 * gnulib/import/float.c: Update.
2781 * gnulib/import/float.in.h: Update.
2782 * gnulib/import/fnmatch.c: Update.
2783 * gnulib/import/fnmatch.in.h: Update.
2784 * gnulib/import/fnmatch_loop.c: Update.
2785 * gnulib/import/fpucw.h: Update.
2786 * gnulib/import/frexp.c: Update.
2787 * gnulib/import/frexpl.c: Update.
2788 * gnulib/import/fstat.c: Update.
2789 * gnulib/import/fstatat.c: Update.
2790 * gnulib/import/getcwd-lgpl.c: Update.
2791 * gnulib/import/getcwd.c: Update.
2792 * gnulib/import/getdtablesize.c: Update.
2793 * gnulib/import/getlogin_r.c: Update.
2794 * gnulib/import/getprogname.c: Update.
2795 * gnulib/import/getprogname.h: Update.
2796 * gnulib/import/gettext.h: Update.
2797 * gnulib/import/gettimeofday.c: Update.
2798 * gnulib/import/glob-libc.h: Update.
2799 * gnulib/import/glob.c: Update.
2800 * gnulib/import/glob.in.h: Update.
2801 * gnulib/import/glob_internal.h: Update.
2802 * gnulib/import/glob_pattern_p.c: Update.
2803 * gnulib/import/globfree.c: Update.
2804 * gnulib/import/hard-locale.c: Update.
2805 * gnulib/import/hard-locale.h: Update.
2806 * gnulib/import/intprops.h: Update.
2807 * gnulib/import/inttypes.in.h: Update.
2808 * gnulib/import/isnan.c: Update.
2809 * gnulib/import/isnand-nolibm.h: Update.
2810 * gnulib/import/isnand.c: Update.
2811 * gnulib/import/isnanl-nolibm.h: Update.
2812 * gnulib/import/isnanl.c: Update.
2813 * gnulib/import/itold.c: Update.
2814 * gnulib/import/libc-config.h: Update.
2815 * gnulib/import/limits.in.h: Update.
2816 * gnulib/import/localcharset.c: Update.
2817 * gnulib/import/localcharset.h: Update.
2818 * gnulib/import/localtime-buffer.c: Update.
2819 * gnulib/import/localtime-buffer.h: Update.
2820 * gnulib/import/lstat.c: Update.
2821 * gnulib/import/m4/00gnulib.m4: Update.
2822 * gnulib/import/m4/__inline.m4: Update.
2823 * gnulib/import/m4/absolute-header.m4: Update.
2824 * gnulib/import/m4/alloca.m4: Update.
2825 * gnulib/import/m4/builtin-expect.m4: Update.
2826 * gnulib/import/m4/canonicalize.m4: Update.
2827 * gnulib/import/m4/chdir-long.m4: Update.
2828 * gnulib/import/m4/close.m4: Update.
2829 * gnulib/import/m4/closedir.m4: Update.
2830 * gnulib/import/m4/configmake.m4: Update.
2831 * gnulib/import/m4/d-ino.m4: Update.
2832 * gnulib/import/m4/d-type.m4: Update.
2833 * gnulib/import/m4/dirent_h.m4: Update.
2834 * gnulib/import/m4/dirfd.m4: Update.
2835 * gnulib/import/m4/dirname.m4: Update.
2836 * gnulib/import/m4/double-slash-root.m4: Update.
2837 * gnulib/import/m4/dup.m4: Update.
2838 * gnulib/import/m4/dup2.m4: Update.
2839 * gnulib/import/m4/eealloc.m4: Update.
2840 * gnulib/import/m4/environ.m4: Update.
2841 * gnulib/import/m4/errno_h.m4: Update.
2842 * gnulib/import/m4/error.m4: Update.
2843 * gnulib/import/m4/exponentd.m4: Update.
2844 * gnulib/import/m4/exponentl.m4: Update.
2845 * gnulib/import/m4/extensions.m4: Update.
2846 * gnulib/import/m4/extern-inline.m4: Update.
2847 * gnulib/import/m4/fchdir.m4: Update.
2848 * gnulib/import/m4/fcntl-o.m4: Update.
2849 * gnulib/import/m4/fcntl.m4: Update.
2850 * gnulib/import/m4/fcntl_h.m4: Update.
2851 * gnulib/import/m4/fdopendir.m4: Update.
2852 * gnulib/import/m4/filenamecat.m4: Update.
2853 * gnulib/import/m4/flexmember.m4: Update.
2854 * gnulib/import/m4/float_h.m4: Update.
2855 * gnulib/import/m4/fnmatch.m4: Update.
2856 * gnulib/import/m4/fnmatch_h.m4: Update.
2857 * gnulib/import/m4/fpieee.m4: Update.
2858 * gnulib/import/m4/frexp.m4: Update.
2859 * gnulib/import/m4/frexpl.m4: Update.
2860 * gnulib/import/m4/fstat.m4: Update.
2861 * gnulib/import/m4/fstatat.m4: Update.
2862 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2863 * gnulib/import/m4/getcwd-path-max.m4: Update.
2864 * gnulib/import/m4/getcwd.m4: Update.
2865 * gnulib/import/m4/getdtablesize.m4: Update.
2866 * gnulib/import/m4/getlogin.m4: Update.
2867 * gnulib/import/m4/getlogin_r.m4: Update.
2868 * gnulib/import/m4/getpagesize.m4: Update.
2869 * gnulib/import/m4/getprogname.m4: Update.
2870 * gnulib/import/m4/gettimeofday.m4: Update.
2871 * gnulib/import/m4/glibc21.m4: Update.
2872 * gnulib/import/m4/glob.m4: Update.
2873 * gnulib/import/m4/glob_h.m4: Update.
2874 * gnulib/import/m4/gnulib-cache.m4: Update.
2875 * gnulib/import/m4/gnulib-common.m4: Update.
2876 * gnulib/import/m4/gnulib-comp.m4: Update.
2877 * gnulib/import/m4/gnulib-tool.m4: Update.
2878 * gnulib/import/m4/hard-locale.m4: Update.
2879 * gnulib/import/m4/include_next.m4: Update.
2880 * gnulib/import/m4/inttypes-pri.m4: Update.
2881 * gnulib/import/m4/inttypes.m4: Update.
2882 * gnulib/import/m4/isnand.m4: Update.
2883 * gnulib/import/m4/isnanl.m4: Update.
2884 * gnulib/import/m4/largefile.m4: Update.
2885 * gnulib/import/m4/limits-h.m4: Update.
2886 * gnulib/import/m4/localcharset.m4: Update.
2887 * gnulib/import/m4/locale-fr.m4: Update.
2888 * gnulib/import/m4/locale-ja.m4: Update.
2889 * gnulib/import/m4/locale-zh.m4: Update.
2890 * gnulib/import/m4/localtime-buffer.m4: Update.
2891 * gnulib/import/m4/longlong.m4: Update.
2892 * gnulib/import/m4/lstat.m4: Update.
2893 * gnulib/import/m4/malloc.m4: Update.
2894 * gnulib/import/m4/malloca.m4: Update.
2895 * gnulib/import/m4/math_h.m4: Update.
2896 * gnulib/import/m4/mbrtowc.m4: Update.
2897 * gnulib/import/m4/mbsinit.m4: Update.
2898 * gnulib/import/m4/mbsrtowcs.m4: Update.
2899 * gnulib/import/m4/mbstate_t.m4: Update.
2900 * gnulib/import/m4/memchr.m4: Update.
2901 * gnulib/import/m4/memmem.m4: Update.
2902 * gnulib/import/m4/mempcpy.m4: Update.
2903 * gnulib/import/m4/memrchr.m4: Update.
2904 * gnulib/import/m4/mkdir.m4: Update.
2905 * gnulib/import/m4/mkstemp.m4: Update.
2906 * gnulib/import/m4/mmap-anon.m4: Update.
2907 * gnulib/import/m4/mode_t.m4: Update.
2908 * gnulib/import/m4/msvc-inval.m4: Update.
2909 * gnulib/import/m4/msvc-nothrow.m4: Update.
2910 * gnulib/import/m4/multiarch.m4: Update.
2911 * gnulib/import/m4/nocrash.m4: Update.
2912 * gnulib/import/m4/off_t.m4: Update.
2913 * gnulib/import/m4/onceonly.m4: Update.
2914 * gnulib/import/m4/open-cloexec.m4: Update.
2915 * gnulib/import/m4/open.m4: Update.
2916 * gnulib/import/m4/openat.m4: Update.
2917 * gnulib/import/m4/opendir.m4: Update.
2918 * gnulib/import/m4/pathmax.m4: Update.
2919 * gnulib/import/m4/rawmemchr.m4: Update.
2920 * gnulib/import/m4/readdir.m4: Update.
2921 * gnulib/import/m4/readlink.m4: Update.
2922 * gnulib/import/m4/realloc.m4: Update.
2923 * gnulib/import/m4/rename.m4: Update.
2924 * gnulib/import/m4/rewinddir.m4: Update.
2925 * gnulib/import/m4/rmdir.m4: Update.
2926 * gnulib/import/m4/save-cwd.m4: Update.
2927 * gnulib/import/m4/secure_getenv.m4: Update.
2928 * gnulib/import/m4/setenv.m4: Update.
2929 * gnulib/import/m4/signal_h.m4: Update.
2930 * gnulib/import/m4/ssize_t.m4: Update.
2931 * gnulib/import/m4/stat-time.m4: Update.
2932 * gnulib/import/m4/stat.m4: Update.
2933 * gnulib/import/m4/std-gnu11.m4: Update.
2934 * gnulib/import/m4/stdbool.m4: Update.
2935 * gnulib/import/m4/stddef_h.m4: Update.
2936 * gnulib/import/m4/stdint.m4: Update.
2937 * gnulib/import/m4/stdio_h.m4: Update.
2938 * gnulib/import/m4/stdlib_h.m4: Update.
2939 * gnulib/import/m4/strchrnul.m4: Update.
2940 * gnulib/import/m4/strdup.m4: Update.
2941 * gnulib/import/m4/strerror.m4: Update.
2942 * gnulib/import/m4/string_h.m4: Update.
2943 * gnulib/import/m4/strstr.m4: Update.
2944 * gnulib/import/m4/strtok_r.m4: Update.
2945 * gnulib/import/m4/sys_socket_h.m4: Update.
2946 * gnulib/import/m4/sys_stat_h.m4: Update.
2947 * gnulib/import/m4/sys_time_h.m4: Update.
2948 * gnulib/import/m4/sys_types_h.m4: Update.
2949 * gnulib/import/m4/tempname.m4: Update.
2950 * gnulib/import/m4/time_h.m4: Update.
2951 * gnulib/import/m4/unistd-safer.m4: Update.
2952 * gnulib/import/m4/unistd_h.m4: Update.
2953 * gnulib/import/m4/warn-on-use.m4: Update.
2954 * gnulib/import/m4/wchar_h.m4: Update.
2955 * gnulib/import/m4/wchar_t.m4: Update.
2956 * gnulib/import/m4/wctype_h.m4: Update.
2957 * gnulib/import/m4/wint_t.m4: Update.
2958 * gnulib/import/malloc.c: Update.
2959 * gnulib/import/malloc/scratch_buffer.h: Update.
2960 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2961 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2962 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2963 * gnulib/import/malloca.c: Update.
2964 * gnulib/import/malloca.h: Update.
2965 * gnulib/import/malloca.valgrind: Update.
2966 * gnulib/import/math.in.h: Update.
2967 * gnulib/import/mbrtowc.c: Update.
2968 * gnulib/import/mbsinit.c: Update.
2969 * gnulib/import/mbsrtowcs-impl.h: Update.
2970 * gnulib/import/mbsrtowcs-state.c: Update.
2971 * gnulib/import/mbsrtowcs.c: Update.
2972 * gnulib/import/memchr.c: Update.
2973 * gnulib/import/memmem.c: Update.
2974 * gnulib/import/mempcpy.c: Update.
2975 * gnulib/import/memrchr.c: Update.
2976 * gnulib/import/mkdir.c: Update.
2977 * gnulib/import/mkstemp.c: Update.
2978 * gnulib/import/msvc-inval.c: Update.
2979 * gnulib/import/msvc-inval.h: Update.
2980 * gnulib/import/msvc-nothrow.c: Update.
2981 * gnulib/import/msvc-nothrow.h: Update.
2982 * gnulib/import/open.c: Update.
2983 * gnulib/import/openat-die.c: Update.
2984 * gnulib/import/openat-priv.h: Update.
2985 * gnulib/import/openat-proc.c: Update.
2986 * gnulib/import/openat.c: Update.
2987 * gnulib/import/openat.h: Update.
2988 * gnulib/import/opendir.c: Update.
2989 * gnulib/import/pathmax.h: Update.
2990 * gnulib/import/pipe-safer.c: Update.
2991 * gnulib/import/rawmemchr.c: Update.
2992 * gnulib/import/readdir.c: Update.
2993 * gnulib/import/readlink.c: Update.
2994 * gnulib/import/realloc.c: Update.
2995 * gnulib/import/ref-add.sin: Update.
2996 * gnulib/import/ref-del.sin: Update.
2997 * gnulib/import/rename.c: Update.
2998 * gnulib/import/rewinddir.c: Update.
2999 * gnulib/import/rmdir.c: Update.
3000 * gnulib/import/same-inode.h: Update.
3001 * gnulib/import/save-cwd.c: Update.
3002 * gnulib/import/save-cwd.h: Update.
3003 * gnulib/import/scratch_buffer.h: Update.
3004 * gnulib/import/secure_getenv.c: Update.
3005 * gnulib/import/setenv.c: Update.
3006 * gnulib/import/signal.in.h: Update.
3007 * gnulib/import/stat-time.c: Update.
3008 * gnulib/import/stat-time.h: Update.
3009 * gnulib/import/stat-w32.c: Update.
3010 * gnulib/import/stat-w32.h: Update.
3011 * gnulib/import/stat.c: Update.
3012 * gnulib/import/stdbool.in.h: Update.
3013 * gnulib/import/stddef.in.h: Update.
3014 * gnulib/import/stdint.in.h: Update.
3015 * gnulib/import/stdio.in.h: Update.
3016 * gnulib/import/stdlib.in.h: Update.
3017 * gnulib/import/str-two-way.h: Update.
3018 * gnulib/import/strchrnul.c: Update.
3019 * gnulib/import/strdup.c: Update.
3020 * gnulib/import/streq.h: Update.
3021 * gnulib/import/strerror-override.c: Update.
3022 * gnulib/import/strerror-override.h: Update.
3023 * gnulib/import/strerror.c: Update.
3024 * gnulib/import/string.in.h: Update.
3025 * gnulib/import/stripslash.c: Update.
3026 * gnulib/import/strnlen1.c: Update.
3027 * gnulib/import/strnlen1.h: Update.
3028 * gnulib/import/strstr.c: Update.
3029 * gnulib/import/strtok_r.c: Update.
3030 * gnulib/import/sys_stat.in.h: Update.
3031 * gnulib/import/sys_time.in.h: Update.
3032 * gnulib/import/sys_types.in.h: Update.
3033 * gnulib/import/tempname.c: Update.
3034 * gnulib/import/tempname.h: Update.
3035 * gnulib/import/time.in.h: Update.
3036 * gnulib/import/unistd--.h: Update.
3037 * gnulib/import/unistd-safer.h: Update.
3038 * gnulib/import/unistd.in.h: Update.
3039 * gnulib/import/unsetenv.c: Update.
3040 * gnulib/import/verify.h: Update.
3041 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3042 * gnulib/import/wchar.in.h: Update.
3043 * gnulib/import/wctype.in.h: Update.
3044 * gnulib/import/xalloc-oversized.h: Update.
3045 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3046 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3048 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
3050 * record-btrace.c (get_thread_current_frame): Remove
3053 2018-09-10 Jerome Guitton <guitton@adacore.com>
3055 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
3056 with check_tag to 1 if and only if the type is tagged and the
3057 component being searched cannot been found in the current
3058 view. Otherwise, always call ada_to_fixed_type with
3061 2018-09-10 Xavier Roirand <roirand@adacore.com>
3063 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
3065 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
3066 * ada-varobj.c (ada_varobj_get_number_of_children,
3067 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
3069 2018-09-10 Xavier Roirand <roirand@adacore.com>
3071 * ada-valprint.c (ada_value_print): Use type instead of
3074 2018-09-10 Xavier Roirand <roirand@adacore.com>
3076 * ada-lang.c (ada_value_subscript): Handle case when parameter is
3077 an array of access to unconstrained array.
3079 2018-09-10 Xavier Roirand <roirand@adacore.com>
3081 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
3082 (ada_check_typedef): Use it.
3084 2018-09-10 Xavier Roirand <roirand@adacore.com>
3086 * ada-varobj.c (ada_varobj_describe_struct_child)
3087 (ada_varobj_describe_child): Handle union case like struct one.
3089 2018-09-10 Tom Tromey <tom@tromey.com>
3092 * python/python.c (_initialize_python): Make example in "python"
3093 help work in Python 3.
3095 2018-09-10 Eli Zaretskii <eliz@gnu.org>
3097 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
3098 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
3099 $(EXEEXT) to the script, as it is not a program.
3101 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
3103 * python/py-prettyprint.c (pretty_print_one_value): Return
3105 (print_string_repr): Adjust.
3106 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
3107 * python/python-internal.h (apply_varobj_pretty_printer): Return
3109 * varobj.c (varobj_value_get_print_value): Adjust.
3111 2018-09-08 Tom Tromey <tom@tromey.com>
3114 * python/py-prettyprint.c (pretty_print_one_value): Check for
3117 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3119 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
3120 replace_operator_with_call.
3122 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3124 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
3126 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3128 * ada-typeprint.c (print_range): Print the bounds using TYPE
3129 rather than its TYPE_TARGET_TYPE.
3131 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3133 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
3134 call to ada_to_fixed_value_create.
3136 2018-09-08 Jerome Guitton <guitton@adacore.com>
3138 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
3140 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3142 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
3145 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3147 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
3148 Move update of loop variable "fi".
3150 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3152 * ada-lang.c (value_assign_to_component): In the case of
3153 big-endian targets, extract the bits of the given VAL
3154 using an src_offset of zero if container is not a scalar.
3156 2018-09-06 Simon Ser <contact@emersion.fr>
3159 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
3160 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3161 * fbsd-tdep.c (fbsd_make_note_desc): New.
3162 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
3163 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
3164 * target.h (enum target_object) Add FreeBSD-specific
3165 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3167 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3169 * compile/compile-c.h (generate_c_for_variable_locations):
3170 Change reference to pointer.
3171 * compile/compile-c-support.c (compile_program) <compute>:
3173 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
3174 (generate_c_for_for_one_variable): Likewise
3175 (generate_c_for_variable_locations): Likewise
3176 * compile/compile-c-types.c (compile_c_instance::convert_type):
3178 * compile/compile-cplus-symbols.c (convert_one_symbol):
3179 std::move the scope passed to enter_scope.
3180 * compile/compile-cplus-types.c
3181 (compile_cplus_instance::enter_scope): Make parameter
3183 (compile_cplus_instance::new_scope): Change reference to
3185 (compile_cplus_instance::convert_type): Likewise
3186 (compile_cplus_convert_typedef): std::move the scope passed to
3188 (compile_cplus_convert_struct_or_union): Likewise.
3189 (compile_cplus_convert_enum): Likewise.
3190 (compile_cplus_convert_namespace): Likewise.
3191 * compile/compile-cplus.h (compile_cplus_instance)
3192 <enter_scope>: Make parameter rvalue-reference.
3193 * compile/compile-internal.h (compile_instance)
3194 <get_cached_type>: Likewise
3195 * compile/compile-loc2c.c (push): Likewise
3199 (print_label): Likewise
3200 (pushf_register_address): Likewise
3201 (pushf_register): Likewise
3202 (do_compile_dwarf_expr_to_c): Likewise
3203 (compile_dwarf_expr_to_c): Likewise
3204 (compile_dwarf_bounds_to_c): Likewise
3205 * compile/compile.c (compile_instance::get_cached_type):
3207 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
3208 (compile_dwarf_bounds_to_c): Likewise
3209 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
3210 (dwarf2_compile_property_to_c): Likewise
3211 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
3212 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3215 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3217 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
3218 * tui/tui-data.c (init_content_element): Don't initialize it.
3220 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3222 * tui/tui-data.h (struct tui_win_info)
3223 <detail::opaque>: Remove.
3224 * tui/tui-data.c (init_win_info): Remove assignment.
3226 2018-09-05 Tom Tromey <tom@tromey.com>
3228 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
3229 -Wformat-nonliteral.
3230 * target-float.c (host_float_ops<T>::to_string)
3231 (host_float_ops<T>::from_string): Use
3232 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3233 * configure: Rebuild.
3235 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
3237 * printcmd.c (printf_c_string): Use
3238 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3239 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
3241 2018-09-05 Tom Tromey <tom@tromey.com>
3243 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
3245 2018-09-05 Tom de Vries <tdevries@suse.de>
3247 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
3248 with resolve_abstract_p == true.
3249 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
3250 defaulting to false. Propagate resolve_abstract_p to
3251 dwarf2_fetch_die_loc_sect_off.
3252 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
3253 parameter, defaulting to false.
3254 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
3255 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
3257 * dwarf2read.h (struct die_info): Forward-declare.
3258 (die_info_ptr): New typedef.
3259 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
3261 2018-09-05 Joel Brobecker <brobecker@adacore.com>
3265 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3266 Pedro Alves <palves@redhat.com>
3268 * gnulib/Makefile.in (aclocal_m4_deps): Move to
3269 "aclocal-m4-deps.mk". Include file here.
3270 $(srcdir)/aclocal.m4: Add "configure.ac".
3271 * gnulib/aclocal-m4-deps.mk: New file.
3272 * gnulib/update-gnulib.sh: Automatically update
3273 "aclocal-m4-deps.mk".
3275 2018-09-04 Tom Tromey <tom@tromey.com>
3277 * configure: Rebuild.
3278 * configure.ac: Remove multi-ice code.
3280 2018-09-04 Tom Tromey <tom@tromey.com>
3282 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
3283 (ada-exp.o): Update.
3285 2018-09-04 Tom Tromey <tom@tromey.com>
3287 * Makefile.in (printcmd.o, target-float.o): Remove.
3288 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
3290 2018-09-04 Tom Tromey <tom@tromey.com>
3292 * gnulib/Makefile.in: Remove obsolete comment.
3293 * Makefile.in: Remove obsolete comment.
3295 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3297 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
3300 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3302 * riscv-tdep.c: Add 'prologue-value.h' include.
3303 (struct riscv_unwind_cache): New struct.
3304 (riscv_debug_unwinder): New global.
3305 (riscv_scan_prologue): Update arguments, capture register details
3307 (riscv_skip_prologue): Reformat arguments line, move end of
3308 prologue calculation into riscv_scan_prologue.
3309 (riscv_frame_cache): Update return type, create
3310 riscv_unwind_cache, scan the prologue, and fill in remaining cache
3312 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
3313 (riscv_frame_prev_register): Use the trad_frame within the
3315 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
3318 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3320 * trad-frame.h (trad_frame_set_realreg): Declare.
3321 (trad_frame_set_addr): Declare.
3322 * trad-frame.c (trad_frame_set_realreg): Define new function.
3323 (trad_frame_set_addr): Define new function.
3324 (trad_frame_set_reg_realreg): Use new function.
3325 (trad_frame_set_reg_addr): Use new function.
3327 2018-09-01 Keith Seitz <keiths@redhat.com>
3329 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
3330 pulongest instead of "%lld".
3331 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
3334 2018-08-31 Tom Tromey <tom@tromey.com>
3336 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
3339 2018-08-31 Pedro Alves <palves@redhat.com>
3341 * gdbarch.h: Regenerate.
3343 2018-08-31 Pedro Alves <palves@redhat.com>
3345 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
3346 * target.h (Hardware watchpoint interfaces): Describe
3347 continuable/steppable/non-steppable watchpoints.
3348 * gdbarch.h, gdbarch.c: Regenerate.
3350 2018-08-31 Pedro Alves <palves@redhat.com>
3352 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
3355 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
3356 * target.h (target_ops::have_continuable_watchpoint): Delete.
3357 (target_have_continuable_watchpoint): Delete.
3358 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
3359 * target-delegates.c: Regenerate.
3361 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3363 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
3364 the files present in "gnulib/import/m4/".
3366 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
3368 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
3369 c.sw, c.swsp, and c.sdsp.
3371 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
3373 * riscv-tdep.c (struct riscv_inferior_data): Delete.
3374 (riscv_read_misa_reg): Don't cache value read into inferior data.
3375 (riscv_new_inferior_data): Delete.
3376 (riscv_inferior_data_cleanup): Delete.
3377 (riscv_inferior_data): Delete.
3378 (riscv_invalidate_inferior_data): Delete.
3379 (_initialize_riscv_tdep): Remove initialisation of inferior data.
3381 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
3383 * compile/compile-cplus-types.c
3384 (compile_cplus_instance::leave_scope): Take the address of scope
3386 (compile_cplus_instance::convert_qualified_base): Compare quals
3389 2018-08-30 Keith Seitz <keiths@redhat.com>
3391 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
3392 Use "%s" and host_address_to_string instead of "%p" in printf.
3394 2018-08-29 Keith Seitz <keiths@redhat.com>
3396 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
3397 and compile-cplus-types.c.
3398 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
3399 * c-lang.c (cplus_language_defn): Set C++ compile functions.
3400 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
3402 * compile/compile-c-support.c: Include compile-cplus.h.
3403 (load_libcompile): Templatize.
3404 (get_compile_context): "New" function.
3405 (c_get_compile_context): Use get_compile_context.
3406 (cplus_get_compile_context): New function.
3407 (cplus_push_user_expression, cplus_pop_user_expression)
3408 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
3409 (cplus_compute_program): Define new structs/functions.
3410 * compile/compile-cplus-symmbols.c: New file.
3411 * compile/compile-cplus-types.c: New file.
3412 * compile/compile-cplus.h: New file.
3413 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
3415 * compile/compile-object-load.c (get_out_value_type): Use
3416 strncmp_iw when comparing symbol names.
3417 (compile_object_load): Add mst_bss and mst_data.
3418 * compile/compile.c (_initialize_compile): Remove
3419 -Wno-implicit-function-declaration from `compile_args'.
3420 * compile/gcc-cp-plugin.h: New file.
3421 * NEWS: Mention C++ compile support and new debug options.
3423 2018-08-29 Keith Seitz <keiths@redhat.com>
3425 * linespec.c (collect_info::add_symbol): Make virtual.
3426 (struct symbol_searcher_collect_info): New struct.
3427 (symbol_searcher::find_all_symbols): New method.
3428 * symtab.h (class symbol_searcher): New class.
3430 2018-08-29 Keith Seitz <keiths@redhat.com>
3432 * linespec.c (struct linespec) <function_symbols, label_symbols>:
3433 Change to vector of block_symbol. Update all users.
3434 (struct collect_info) <symbols>: Likewise.
3435 (collect_info::add_symbol): Take block_symbol as argument.
3437 (decode_compound_collector) <m_symbols>: Change type to vector
3438 of block_symbol. Update all users.
3439 (decode_compound_collector::operator ()): Change parameter type
3441 (find_method, find_function_symbols, find_linespec_symbols)
3442 (find_label_symbols_in_block, find_label_symbols): Change symbol
3443 vectors to block_symbol vectors.
3444 * symtab.h (symbol_found_callback_ftype): Change parameter type to
3447 2018-08-29 Keith Seitz <keiths@redhat.com>
3449 * linespec.c (symbolp): Remove typedef and VEC definitions.
3450 (bound_minimal_symbol_d): Likewise.
3452 2018-08-29 Keith Seitz <keiths@redhat.com>
3454 * linespec.c (decode_compound_collector::decode_compound_collector):
3455 Remove initialization for `m_symtabs'.
3456 (decode_compound_collector::release_symbols): Change return type
3457 to std::vector. Update all callers.
3458 (class decode_compound_collector) <m_symbols>: Change type to
3460 (lookup_prefix_sym): Change return type to std::vector. Update all
3462 (compare_symbols): Remove.
3463 (std_compare_symbols): Rename to `compare_symbols'.
3464 (find_method): Change `sym_classes' parameter to std::vector.
3465 Update all callers. Use std::sort to sort sym_classes.
3466 (find_linespec_symbols): Remove cleanup.
3468 2018-08-29 Keith Seitz <keiths@redhat.com>
3470 * linespec.c (struct linespec) <minimal_symbols>: Change type to
3471 std::vector. Update all users.
3472 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
3473 (struct collect_info) <minimal_symbols>: Likewise.
3474 (compare_msymbols): Return bool. Change parameters to const
3475 bound_minimal_symbol references.
3476 (find_method, find_function_symbols, find_linespec_symbols): Change
3477 `minsyms' parameter to std::vector. Update all callers.
3479 2018-08-29 Keith Seitz <keiths@redhat.com>
3481 * linespec.c (struct linespec) <label_symbols>: Change type to
3482 std::vector. Update all users.
3483 (find_label_symbols_in_block): Change `result' parameter to
3484 std::vector. Update all callers.
3485 (find_label_symbols): Return std::vector. Update all callers.
3487 2018-08-29 Keith Seitz <keiths@redhat.com>
3489 * linespec.c (struct linespec) <function_symbols>: Change type to
3490 std::vector. Update all users.
3491 (struct collect_info) <function_symbols>: Likewise.
3492 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
3493 (std_compare_symbols): New function.
3494 (find_method, find_function_symbols, find_linespec_symbols)
3495 (find_label_symbols_in_block): Change `symbols' parameter to
3496 std::vector. Update all callers.
3497 (find_label_symbols): Likewise for `function_symbols' and
3500 2018-08-29 Keith Seitz <keiths@redhat.com>
3502 * linespec.c (symtab_vector_up): Define.
3503 (struct linespec) <file_symtabs>: Change type to std::vector *.
3505 (struct collect_info) <file_symtabs>: Likewise.
3506 (collect_symtabs_from_filename): Return symtab_vector_up.
3508 (decode_objc): Remove cleanup.
3509 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
3510 (symtab_collector::release_symtabs): Return symtab_vector_up.
3512 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
3514 (collect_symtabs_from_filename, symtabs_from_filename): Return
3515 symtab_vector_up. Update all callers.
3517 2018-08-29 Tom Tromey <tom@tromey.com>
3519 * csky-tdep.c (csky_analyze_prologue): Use
3520 core_addr_to_string_nz.
3522 2018-08-29 Tom Tromey <tom@tromey.com>
3524 * windows-nat.c (struct xlate_exception) <them>: Change type to
3526 (xlate): Fix formatting. Remove last entry.
3527 (struct xlate_exception, xlate): Comment out.
3528 (windows_nat_target::resume): Use ranged for.
3530 2018-08-29 Jim Wilson <jimw@sifive.com>
3532 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
3533 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
3535 (riscv_linux_nat_target::store_registers): Likewise.
3537 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3541 * gnulib/aclocal.m4: Regenerate.
3542 * gnulib/config.in: Regenerate.
3543 * gnulib/configure: Regenerate.
3544 * gnulib/import/Makefile.am: Update.
3545 * gnulib/import/Makefile.in: Update.
3546 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3547 * gnulib/import/_Noreturn.h: ... this.
3548 * gnulib/import/alloca.in.h: Update.
3549 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3550 * gnulib/import/arg-nonnull.h: ... this.
3551 * gnulib/import/assure.h: Update.
3552 * gnulib/import/at-func.c: Update.
3553 * gnulib/import/basename-lgpl.c: Update.
3554 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3555 * gnulib/import/c++defs.h: ... this.
3556 * gnulib/import/canonicalize-lgpl.c: Update.
3557 * gnulib/import/cdefs.h: Update.
3558 * gnulib/import/chdir-long.c: Update.
3559 * gnulib/import/chdir-long.h: Update.
3560 * gnulib/import/cloexec.c: Update.
3561 * gnulib/import/cloexec.h: Update.
3562 * gnulib/import/close.c: Update.
3563 * gnulib/import/closedir.c: Update.
3564 * gnulib/import/config.charset: Update.
3565 * gnulib/import/dirent-private.h: Update.
3566 * gnulib/import/dirent.in.h: Update.
3567 * gnulib/import/dirfd.c: Update.
3568 * gnulib/import/dirname-lgpl.c: Update.
3569 * gnulib/import/dirname.h: Update.
3570 * gnulib/import/dosname.h: Update.
3571 * gnulib/import/dup-safer-flag.c: Update.
3572 * gnulib/import/dup-safer.c: Update.
3573 * gnulib/import/dup.c: Update.
3574 * gnulib/import/dup2.c: Update.
3575 * gnulib/import/errno.in.h: Update.
3576 * gnulib/import/error.c: Update.
3577 * gnulib/import/error.h: Update.
3578 * gnulib/import/exitfail.c: Update.
3579 * gnulib/import/exitfail.h: Update.
3580 * gnulib/import/extra/update-copyright: Update.
3581 * gnulib/import/fchdir.c: Update.
3582 * gnulib/import/fcntl.c: Update.
3583 * gnulib/import/fcntl.in.h: Update.
3584 * gnulib/import/fd-hook.c: Update.
3585 * gnulib/import/fd-hook.h: Update.
3586 * gnulib/import/fd-safer-flag.c: Update.
3587 * gnulib/import/fd-safer.c: Update.
3588 * gnulib/import/fdopendir.c: Update.
3589 * gnulib/import/filename.h: Update.
3590 * gnulib/import/filenamecat-lgpl.c: Update.
3591 * gnulib/import/filenamecat.h: Update.
3592 * gnulib/import/flexmember.h: Update.
3593 * gnulib/import/float+.h: Update.
3594 * gnulib/import/float.c: Update.
3595 * gnulib/import/float.in.h: Update.
3596 * gnulib/import/fnmatch.c: Update.
3597 * gnulib/import/fnmatch.in.h: Update.
3598 * gnulib/import/fnmatch_loop.c: Update.
3599 * gnulib/import/fpucw.h: Update.
3600 * gnulib/import/frexp.c: Update.
3601 * gnulib/import/frexpl.c: Update.
3602 * gnulib/import/fstat.c: Update.
3603 * gnulib/import/fstatat.c: Update.
3604 * gnulib/import/getcwd-lgpl.c: Update.
3605 * gnulib/import/getcwd.c: Update.
3606 * gnulib/import/getdtablesize.c: Update.
3607 * gnulib/import/getlogin_r.c: Update.
3608 * gnulib/import/getprogname.c: Update.
3609 * gnulib/import/getprogname.h: Update.
3610 * gnulib/import/gettext.h: Update.
3611 * gnulib/import/gettimeofday.c: Update.
3612 * gnulib/import/glob-libc.h: Update.
3613 * gnulib/import/glob.c: Update.
3614 * gnulib/import/glob.in.h: Update.
3615 * gnulib/import/glob_internal.h: Update.
3616 * gnulib/import/glob_pattern_p.c: Update.
3617 * gnulib/import/globfree.c: Update.
3618 * gnulib/import/hard-locale.c: Update.
3619 * gnulib/import/hard-locale.h: Update.
3620 * gnulib/import/intprops.h: Update.
3621 * gnulib/import/inttypes.in.h: Update.
3622 * gnulib/import/isnan.c: Update.
3623 * gnulib/import/isnand-nolibm.h: Update.
3624 * gnulib/import/isnand.c: Update.
3625 * gnulib/import/isnanl-nolibm.h: Update.
3626 * gnulib/import/isnanl.c: Update.
3627 * gnulib/import/itold.c: Update.
3628 * gnulib/import/libc-config.h: Update.
3629 * gnulib/import/limits.in.h: Update.
3630 * gnulib/import/localcharset.c: Update.
3631 * gnulib/import/localcharset.h: Update.
3632 * gnulib/import/localtime-buffer.c: Update.
3633 * gnulib/import/localtime-buffer.h: Update.
3634 * gnulib/import/lstat.c: Update.
3635 * gnulib/import/m4/00gnulib.m4: Update.
3636 * gnulib/import/m4/__inline.m4: Update.
3637 * gnulib/import/m4/absolute-header.m4: Update.
3638 * gnulib/import/m4/alloca.m4: Update.
3639 * gnulib/import/m4/builtin-expect.m4: Update.
3640 * gnulib/import/m4/canonicalize.m4: Update.
3641 * gnulib/import/m4/chdir-long.m4: Update.
3642 * gnulib/import/m4/close.m4: Update.
3643 * gnulib/import/m4/closedir.m4: Update.
3644 * gnulib/import/m4/configmake.m4: Update.
3645 * gnulib/import/m4/d-ino.m4: Update.
3646 * gnulib/import/m4/d-type.m4: Update.
3647 * gnulib/import/m4/dirent_h.m4: Update.
3648 * gnulib/import/m4/dirfd.m4: Update.
3649 * gnulib/import/m4/dirname.m4: Update.
3650 * gnulib/import/m4/double-slash-root.m4: Update.
3651 * gnulib/import/m4/dup.m4: Update.
3652 * gnulib/import/m4/dup2.m4: Update.
3653 * gnulib/import/m4/eealloc.m4: Update.
3654 * gnulib/import/m4/environ.m4: Update.
3655 * gnulib/import/m4/errno_h.m4: Update.
3656 * gnulib/import/m4/error.m4: Update.
3657 * gnulib/import/m4/exponentd.m4: Update.
3658 * gnulib/import/m4/exponentl.m4: Update.
3659 * gnulib/import/m4/extensions.m4: Update.
3660 * gnulib/import/m4/extern-inline.m4: Update.
3661 * gnulib/import/m4/fchdir.m4: Update.
3662 * gnulib/import/m4/fcntl-o.m4: Update.
3663 * gnulib/import/m4/fcntl.m4: Update.
3664 * gnulib/import/m4/fcntl_h.m4: Update.
3665 * gnulib/import/m4/fdopendir.m4: Update.
3666 * gnulib/import/m4/filenamecat.m4: Update.
3667 * gnulib/import/m4/flexmember.m4: Update.
3668 * gnulib/import/m4/float_h.m4: Update.
3669 * gnulib/import/m4/fnmatch.m4: Update.
3670 * gnulib/import/m4/fnmatch_h.m4: Update.
3671 * gnulib/import/m4/fpieee.m4: Update.
3672 * gnulib/import/m4/frexp.m4: Update.
3673 * gnulib/import/m4/frexpl.m4: Update.
3674 * gnulib/import/m4/fstat.m4: Update.
3675 * gnulib/import/m4/fstatat.m4: Update.
3676 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3677 * gnulib/import/m4/getcwd-path-max.m4: Update.
3678 * gnulib/import/m4/getcwd.m4: Update.
3679 * gnulib/import/m4/getdtablesize.m4: Update.
3680 * gnulib/import/m4/getlogin.m4: Update.
3681 * gnulib/import/m4/getlogin_r.m4: Update.
3682 * gnulib/import/m4/getpagesize.m4: Update.
3683 * gnulib/import/m4/getprogname.m4: Update.
3684 * gnulib/import/m4/gettimeofday.m4: Update.
3685 * gnulib/import/m4/glibc21.m4: Update.
3686 * gnulib/import/m4/glob.m4: Update.
3687 * gnulib/import/m4/glob_h.m4: Update.
3688 * gnulib/import/m4/gnulib-cache.m4: Update.
3689 * gnulib/import/m4/gnulib-common.m4: Update.
3690 * gnulib/import/m4/gnulib-comp.m4: Update.
3691 * gnulib/import/m4/gnulib-tool.m4: Update.
3692 * gnulib/import/m4/hard-locale.m4: Update.
3693 * gnulib/import/m4/include_next.m4: Update.
3694 * gnulib/import/m4/inttypes-pri.m4: Update.
3695 * gnulib/import/m4/inttypes.m4: Update.
3696 * gnulib/import/m4/isnand.m4: Update.
3697 * gnulib/import/m4/isnanl.m4: Update.
3698 * gnulib/import/m4/largefile.m4: Update.
3699 * gnulib/import/m4/limits-h.m4: Update.
3700 * gnulib/import/m4/localcharset.m4: Update.
3701 * gnulib/import/m4/locale-fr.m4: Update.
3702 * gnulib/import/m4/locale-ja.m4: Update.
3703 * gnulib/import/m4/locale-zh.m4: Update.
3704 * gnulib/import/m4/localtime-buffer.m4: Update.
3705 * gnulib/import/m4/longlong.m4: Update.
3706 * gnulib/import/m4/lstat.m4: Update.
3707 * gnulib/import/m4/malloc.m4: Update.
3708 * gnulib/import/m4/malloca.m4: Update.
3709 * gnulib/import/m4/math_h.m4: Update.
3710 * gnulib/import/m4/mbrtowc.m4: Update.
3711 * gnulib/import/m4/mbsinit.m4: Update.
3712 * gnulib/import/m4/mbsrtowcs.m4: Update.
3713 * gnulib/import/m4/mbstate_t.m4: Update.
3714 * gnulib/import/m4/memchr.m4: Update.
3715 * gnulib/import/m4/memmem.m4: Update.
3716 * gnulib/import/m4/mempcpy.m4: Update.
3717 * gnulib/import/m4/memrchr.m4: Update.
3718 * gnulib/import/m4/mkdir.m4: Update.
3719 * gnulib/import/m4/mkstemp.m4: Update.
3720 * gnulib/import/m4/mmap-anon.m4: Update.
3721 * gnulib/import/m4/mode_t.m4: Update.
3722 * gnulib/import/m4/msvc-inval.m4: Update.
3723 * gnulib/import/m4/msvc-nothrow.m4: Update.
3724 * gnulib/import/m4/multiarch.m4: Update.
3725 * gnulib/import/m4/nocrash.m4: Update.
3726 * gnulib/import/m4/off_t.m4: Update.
3727 * gnulib/import/m4/onceonly.m4: Update.
3728 * gnulib/import/m4/open-cloexec.m4: Update.
3729 * gnulib/import/m4/open.m4: Update.
3730 * gnulib/import/m4/openat.m4: Update.
3731 * gnulib/import/m4/opendir.m4: Update.
3732 * gnulib/import/m4/pathmax.m4: Update.
3733 * gnulib/import/m4/rawmemchr.m4: Update.
3734 * gnulib/import/m4/readdir.m4: Update.
3735 * gnulib/import/m4/readlink.m4: Update.
3736 * gnulib/import/m4/realloc.m4: Update.
3737 * gnulib/import/m4/rename.m4: Update.
3738 * gnulib/import/m4/rewinddir.m4: Update.
3739 * gnulib/import/m4/rmdir.m4: Update.
3740 * gnulib/import/m4/save-cwd.m4: Update.
3741 * gnulib/import/m4/secure_getenv.m4: Update.
3742 * gnulib/import/m4/setenv.m4: Update.
3743 * gnulib/import/m4/signal_h.m4: Update.
3744 * gnulib/import/m4/ssize_t.m4: Update.
3745 * gnulib/import/m4/stat-time.m4: Update.
3746 * gnulib/import/m4/stat.m4: Update.
3747 * gnulib/import/m4/std-gnu11.m4: Update.
3748 * gnulib/import/m4/stdbool.m4: Update.
3749 * gnulib/import/m4/stddef_h.m4: Update.
3750 * gnulib/import/m4/stdint.m4: Update.
3751 * gnulib/import/m4/stdio_h.m4: Update.
3752 * gnulib/import/m4/stdlib_h.m4: Update.
3753 * gnulib/import/m4/strchrnul.m4: Update.
3754 * gnulib/import/m4/strdup.m4: Update.
3755 * gnulib/import/m4/strerror.m4: Update.
3756 * gnulib/import/m4/string_h.m4: Update.
3757 * gnulib/import/m4/strstr.m4: Update.
3758 * gnulib/import/m4/strtok_r.m4: Update.
3759 * gnulib/import/m4/sys_socket_h.m4: Update.
3760 * gnulib/import/m4/sys_stat_h.m4: Update.
3761 * gnulib/import/m4/sys_time_h.m4: Update.
3762 * gnulib/import/m4/sys_types_h.m4: Update.
3763 * gnulib/import/m4/tempname.m4: Update.
3764 * gnulib/import/m4/time_h.m4: Update.
3765 * gnulib/import/m4/unistd-safer.m4: Update.
3766 * gnulib/import/m4/unistd_h.m4: Update.
3767 * gnulib/import/m4/warn-on-use.m4: Update.
3768 * gnulib/import/m4/wchar_h.m4: Update.
3769 * gnulib/import/m4/wchar_t.m4: Update.
3770 * gnulib/import/m4/wctype_h.m4: Update.
3771 * gnulib/import/m4/wint_t.m4: Update.
3772 * gnulib/import/malloc.c: Update.
3773 * gnulib/import/malloc/scratch_buffer.h: Update.
3774 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3775 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3776 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3777 * gnulib/import/malloca.c: Update.
3778 * gnulib/import/malloca.h: Update.
3779 * gnulib/import/malloca.valgrind: Update.
3780 * gnulib/import/math.in.h: Update.
3781 * gnulib/import/mbrtowc.c: Update.
3782 * gnulib/import/mbsinit.c: Update.
3783 * gnulib/import/mbsrtowcs-impl.h: Update.
3784 * gnulib/import/mbsrtowcs-state.c: Update.
3785 * gnulib/import/mbsrtowcs.c: Update.
3786 * gnulib/import/memchr.c: Update.
3787 * gnulib/import/memmem.c: Update.
3788 * gnulib/import/mempcpy.c: Update.
3789 * gnulib/import/memrchr.c: Update.
3790 * gnulib/import/mkdir.c: Update.
3791 * gnulib/import/mkstemp.c: Update.
3792 * gnulib/import/msvc-inval.c: Update.
3793 * gnulib/import/msvc-inval.h: Update.
3794 * gnulib/import/msvc-nothrow.c: Update.
3795 * gnulib/import/msvc-nothrow.h: Update.
3796 * gnulib/import/open.c: Update.
3797 * gnulib/import/openat-die.c: Update.
3798 * gnulib/import/openat-priv.h: Update.
3799 * gnulib/import/openat-proc.c: Update.
3800 * gnulib/import/openat.c: Update.
3801 * gnulib/import/openat.h: Update.
3802 * gnulib/import/opendir.c: Update.
3803 * gnulib/import/pathmax.h: Update.
3804 * gnulib/import/pipe-safer.c: Update.
3805 * gnulib/import/rawmemchr.c: Update.
3806 * gnulib/import/readdir.c: Update.
3807 * gnulib/import/readlink.c: Update.
3808 * gnulib/import/realloc.c: Update.
3809 * gnulib/import/ref-add.sin: Update.
3810 * gnulib/import/ref-del.sin: Update.
3811 * gnulib/import/rename.c: Update.
3812 * gnulib/import/rewinddir.c: Update.
3813 * gnulib/import/rmdir.c: Update.
3814 * gnulib/import/same-inode.h: Update.
3815 * gnulib/import/save-cwd.c: Update.
3816 * gnulib/import/save-cwd.h: Update.
3817 * gnulib/import/scratch_buffer.h: Update.
3818 * gnulib/import/secure_getenv.c: Update.
3819 * gnulib/import/setenv.c: Update.
3820 * gnulib/import/signal.in.h: Update.
3821 * gnulib/import/stat-time.c: Update.
3822 * gnulib/import/stat-time.h: Update.
3823 * gnulib/import/stat-w32.c: Update.
3824 * gnulib/import/stat-w32.h: Update.
3825 * gnulib/import/stat.c: Update.
3826 * gnulib/import/stdbool.in.h: Update.
3827 * gnulib/import/stddef.in.h: Update.
3828 * gnulib/import/stdint.in.h: Update.
3829 * gnulib/import/stdio.in.h: Update.
3830 * gnulib/import/stdlib.in.h: Update.
3831 * gnulib/import/str-two-way.h: Update.
3832 * gnulib/import/strchrnul.c: Update.
3833 * gnulib/import/strdup.c: Update.
3834 * gnulib/import/streq.h: Update.
3835 * gnulib/import/strerror-override.c: Update.
3836 * gnulib/import/strerror-override.h: Update.
3837 * gnulib/import/strerror.c: Update.
3838 * gnulib/import/string.in.h: Update.
3839 * gnulib/import/stripslash.c: Update.
3840 * gnulib/import/strnlen1.c: Update.
3841 * gnulib/import/strnlen1.h: Update.
3842 * gnulib/import/strstr.c: Update.
3843 * gnulib/import/strtok_r.c: Update.
3844 * gnulib/import/sys_stat.in.h: Update.
3845 * gnulib/import/sys_time.in.h: Update.
3846 * gnulib/import/sys_types.in.h: Update.
3847 * gnulib/import/tempname.c: Update.
3848 * gnulib/import/tempname.h: Update.
3849 * gnulib/import/time.in.h: Update.
3850 * gnulib/import/unistd--.h: Update.
3851 * gnulib/import/unistd-safer.h: Update.
3852 * gnulib/import/unistd.in.h: Update.
3853 * gnulib/import/unsetenv.c: Update.
3854 * gnulib/import/verify.h: Update.
3855 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3856 * gnulib/import/wchar.in.h: Update.
3857 * gnulib/import/wctype.in.h: Update.
3858 * gnulib/import/xalloc-oversized.h: Update.
3859 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3860 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3862 2018-08-16 Gary Benson <gbenson@redhat.com>
3865 * gdb/main.c (captured_main_1): Exit with nonzero status
3866 in batch mode if the last command to be executed failed.
3867 * NEWS: Mention the above.
3869 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
3871 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
3872 end of warning message.
3874 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3877 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
3878 (aarch64_extract_return_value): Use
3879 aapcs_is_vfp_call_or_return_candidate.
3880 (aarch64_return_in_memory): Likewise.
3881 (aarch64_store_return_value): Likewise.
3883 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3886 (aapcs_is_vfp_call_or_return_candidate): Make static
3887 (pass_in_v_or_stack): Remove function.
3888 (pass_in_v_vfp_candidate): New function.
3889 (aarch64_push_dummy_call): Check for float register candidates.
3891 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3893 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
3894 (aapcs_is_vfp_call_or_return_candidate_1): New function.
3895 (aapcs_is_vfp_call_or_return_candidate): Likewise.
3897 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
3900 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
3901 (struct ipa_sym_addresses): Rename to...
3902 (struct ipa_sym_addresses_common): ... this.
3903 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
3905 2018-08-28 Tom Tromey <tom@tromey.com>
3907 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3908 (token_fifo): Now a std::vector.
3909 (yylex, c_parse): Update.
3910 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3911 (token_fifo): Now a std::vector.
3912 (yylex, d_parse): Update.
3913 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3914 (token_fifo): Now a std::vector.
3915 (yylex, go_parse): Update.
3917 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
3919 * parser-defs.h (struct type_stack) <elements>: Change type to
3920 std::vector<union type_stack_elt>.
3921 <depth, size>: Remove.
3922 * parse.c (parse_exp_in_context_1): Adjust.
3923 (type_stack_reserve): Remove.
3924 (check_type_stack_depth): Remove.
3925 (insert_into_type_stack): Adjust to std::vector.
3926 (insert_type): Likewise.
3927 (push_type): Likewise.
3928 (push_type_int): Likewise.
3929 (insert_type_address_space): Likewise.
3930 (pop_type): Likewise.
3931 (pop_type_int): Likewise.
3932 (pop_typelist): Likewise.
3933 (pop_type_stack): Likewise.
3934 (append_type_stack): Likewise.
3935 (push_type_stack): Likewise.
3936 (get_type_stack): Likewise.
3937 (type_stack_cleanup): Likewise.
3938 (push_typelist): Likewise.
3939 (follow_types): Likewise.
3940 (_initialize_parse): Likewise.
3942 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
3944 * NEWS: Mention csky target.
3946 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
3947 Hafiz Abid Qadeer <abidh@codesourcery.com>
3948 Don Breazeal <donb@codesourcery.com>
3950 * csky-linux-tdep.c: New file.
3951 * csky-tdep.c: Likewise.
3952 * csky-tdep.h: Likewise.
3953 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
3955 (HFILES_NO_SRCDIR): Add csky-tdep.h.
3956 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
3957 * configure.tgt: Add csky support.
3959 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
3961 * python/py-framefilter.c (py_print_frame): Print frame architecture
3962 when printing on an MI output.
3964 2018-08-27 Tom Tromey <tom@tromey.com>
3967 * configure: Rebuild.
3968 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
3970 2018-08-27 Tom Tromey <tom@tromey.com>
3972 * aarch64-linux-tdep.c
3973 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
3976 2018-08-27 Tom Tromey <tom@tromey.com>
3978 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
3980 (ppc64_standard_linkage1, ppc64_standard_linkage2)
3981 (ppc64_standard_linkage3, ppc64_standard_linkage4)
3982 (ppc64_standard_linkage5, ppc64_standard_linkage6)
3983 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
3986 2018-08-27 Tom Tromey <tom@tromey.com>
3988 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
3989 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
3991 2018-08-27 Tom Tromey <tom@tromey.com>
3993 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
3994 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
3996 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
3998 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
4000 * sparc-linux-tdep.c (sparc32_linux_sigframe)
4001 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
4002 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
4004 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
4005 (ppc64_linux_sigaction_tramp_frame)
4006 (ppc32_linux_sighandler_tramp_frame)
4007 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4008 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
4009 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
4010 * mn10300-linux-tdep.c (am33_linux_sigframe)
4011 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
4012 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
4013 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4014 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4015 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
4016 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
4017 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
4018 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
4019 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
4020 * microblaze-linux-tdep.c
4021 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4022 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
4023 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
4024 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
4025 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
4026 * common/common-types.h (ULONGEST_MAX): New define.
4027 (CORE_ADDR_MAX): Fix formatting.
4028 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
4029 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
4030 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
4031 (arm_linux_rt_sigreturn_tramp_frame)
4032 (arm_eabi_linux_sigreturn_tramp_frame)
4033 (arm_eabi_linux_rt_sigreturn_tramp_frame)
4034 (thumb2_eabi_linux_sigreturn_tramp_frame)
4035 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
4036 (arm_linux_restart_syscall_tramp_frame)
4037 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
4038 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
4039 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
4041 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
4043 2018-08-27 Tom Tromey <tom@tromey.com>
4045 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
4047 * mips-tdep.c (mips_deal_with_atomic_sequence)
4048 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
4049 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
4050 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
4051 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
4053 * aarch64-tdep.c (aarch64_software_single_step): Use
4056 2018-08-27 Tom Tromey <tom@tromey.com>
4058 * linespec.c (complete_linespec_component): Add cast to "char".
4059 * completer.c (completion_tracker::build_completion_result): Add
4062 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4064 * solist.h (struct solist, struct target_so_ops): Fix
4067 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4069 * ada-tasks.c (ada_task_info_s): Remove typedef.
4070 (DEF_VEC_O(ada_task_info_s)): Remove.
4071 (struct ada_tasks_inferior_data): Initialize fields.
4072 <task_list>: Make an std::vector.
4073 (get_ada_tasks_inferior_data): Allocate with new.
4074 (ada_get_task_number): Adjust.
4075 (get_task_number_from_id): Likewise.
4076 (valid_task_id): Likewise.
4077 (ada_get_task_info_from_ptid): Likewise.
4078 (iterate_over_live_ada_tasks): Likewise.
4079 (add_ada_task): Likewise.
4080 (read_known_tasks): Likewise.
4081 (ada_build_task_list): Likewise.
4082 (print_ada_task_info): Likewise.
4083 (info_task): Likewise.
4084 (task_command_1): Likewise.
4086 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4088 * ada-lang.c (add_angle_brackets): Return std::string.
4090 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
4092 * python/py-threadevent.c (py_get_event_thread): Initialize
4095 2018-08-24 Pedro Alves <palves@redhat.com>
4097 * python/py-bpevent.c (create_breakpoint_event_object): Use
4098 copy-initialization.
4099 * python/py-continueevent.c (emit_continue_event): Use
4100 copy-initialization.
4101 * python/py-exitedevent.c (create_exited_event_object): Return a
4103 (emit_exited_event): Use copy-initialization.
4104 * python/py-inferior.c (python_new_inferior)
4105 (python_inferior_deleted, add_thread_object): Use
4106 copy-initialization.
4107 * python/py-infevents.c (create_inferior_call_event_object)
4108 (create_register_changed_event_object)
4109 (create_memory_changed_event_object): Return a gdbpy_ref<>.
4110 (emit_inferior_call_event, emit_memory_changed_event)
4111 (emit_register_changed_event): Use copy-initialization.
4112 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4113 Return a gdbpy_ref<>.
4114 (emit_new_objfile_event): Use copy-initialization.
4115 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
4116 (emit_clear_objfiles_event): Use copy-initialization.
4117 * python/py-signalevent.c (create_signal_event_object): Use
4118 copy-initialization.
4119 * python/py-threadevent.c (create_thread_event_object): Use
4120 copy-initialization.
4122 2018-08-24 Pedro Alves <palves@redhat.com>
4123 Simon Marchi <simon.marchi@ericsson.com>
4126 * python/py-continueevent.c: Include "gdbthread.h".
4127 (create_continue_event_object): Add intro comment. Add 'ptid'
4128 parameter. Use it to find thread to pass to
4129 create_thread_event_object.
4130 (emit_continue_event): Pass PTID down to
4131 create_continue_event_object.
4132 * python/py-event.h (py_get_event_thread): Declare.
4133 (create_thread_event_object): Remove default from 'thread'
4135 * python/py-stopevent.c (create_stop_event_object): Use
4136 py_get_event_thread.
4137 * python/py-threadevent.c (get_event_thread): Rename to ...
4138 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
4139 and use it to find the thread.
4140 (create_thread_event_object): Assert that THREAD isn't null.
4141 Don't find the event thread here.
4143 2018-08-23 Kevin Buettner <kevinb@redhat.com>
4145 * block.h (blockrange, blockranges): New struct declarations.
4146 (struct block): Add new field named `ranges'.
4147 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
4148 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
4149 macros for accessing ranges in struct block.
4150 (make_blockranges): New declaration.
4151 block.c (make_blockranges): New function.
4152 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
4154 * symtab.h (find_pc_partial_function): Add new parameter `block'.
4155 * blockframe.c (cache_pc_function_block): New static global.
4156 (clear_pc_function_cache): Clear cache_pc_function_block.
4157 (find_pc_partial_function): Move comment to symtab.h. Add
4158 support for non-contiguous blocks.
4159 * cli/cli-cmds.c (block.h): Include.
4160 (print_disassembly): Handle printing of non-contiguous blocks.
4161 (disassemble_current_function): Likewise.
4162 (disassemble_command): Likewise.
4164 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
4166 * blockframe.c (get_pc_function_start): Likewise.
4167 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
4168 (gcc_symbol_address): Likewise.
4169 * compile/compile-object-run.c (compile_object_run): Likewise.
4170 * compile/compile.c (get_expr_block_and_pc): Likewise.
4171 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
4172 (func_addr_to_tail_call_list): Likewise.
4173 * findvar.c (default_read_var_value): Likewise.
4174 * inline-frame.c (inline_frame_this_id): Likewise.
4175 (skip-inline_frames): Likewise.
4176 * infcmd.c (until_next_command): Likewise.
4177 * linespec.c (convert_linespec_to_sals): Likewise.
4178 * parse.c (parse_exp_in_context_1): Likewise.
4179 * printcmd.c (build_address_symbolic): likewise.
4180 (info_address_command): Likewise.
4181 symtab.c (find_function_start_sal): Likewise.
4182 (skip_prologue_sal): Likewise.
4183 (find_function_alias_target): Likewise.
4184 (find_gnu_ifunc): Likewise.
4185 * stack.c (find_frame_funname): Likewise.
4186 * symtab.c (fixup_symbol_section): Likewise.
4187 (find_function_start_sal): Likewise.
4188 (skip_prologue_sal): Likewsie.
4189 (find_function_alias_target): Likewise.
4190 (find_gnu_ifunc): Likewise.
4191 * tracepoint.c (info_scope_command): Likewise.
4192 * value.c (value_fn_field): Likewise.
4194 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
4195 in place of find_pc_partial_function.
4196 * blockframe.c (find_function_entry_range_from_pc): New function.
4197 * symtab.h (find_function_entry_range_from_pc): Declare and document.
4198 * objfiles.c (objfile_relocate1): Relocate start and end addresses
4199 for each range in a block.
4202 2018-08-23 Xavier Roirand <roirand@adacore.com>
4204 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
4207 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4209 * solib-svr4.c (read_program_headers_from_bfd): Return
4210 gdb::optional<gdb::byte_vector>.
4211 (svr4_exec_displacement): Adjust.
4213 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4215 * solib-svr4.c (read_program_header): Return
4216 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
4217 (find_program_interpreter): Return
4218 gdb::optional<gdb::byte_vector>.
4219 (scan_dyntag_auxv): Adjust.
4220 (enable_break): Adjust.
4221 (svr4_exec_displacement): Adjust.
4223 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4225 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
4226 * inf-child.c (inf_child_target::terminal_save_inferior): New.
4228 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4230 * guile/scm-string.c (gdbscm_scm_from_printf): Use
4232 * guile/scm-utils.c (gdbscm_printf): Likewise.
4233 * serial.c (serial_printf): Likewise.
4234 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
4236 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
4238 * stack.c (print_frame): Print frame architecture when printing on
4240 * NEWS: Mention new "arch" attribute in frame output.
4242 2018-08-21 Alan Hayward <alan.hayward@arm.com>
4244 * arch/aarch64.h (aarch64_regnum): Update comment.
4246 2018-08-21 Alan Hayward <alan.hayward@arm.com>
4248 * NEWS: Add SVE to 8.2 section.
4250 2018-08-21 Pedro Alves <palves@redhat.com>
4252 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
4253 out from gdbscm_parse_function_args.
4254 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
4255 gdbscm_parse_function_args_1.
4257 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
4260 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
4263 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
4265 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
4267 2018-08-19 Michael Spang <spang@google.com>
4270 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
4271 for PT_TLS segments.
4273 2018-08-18 Kevin Buettner <kevinb@redhat.com>
4275 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
4276 dwarf_variable_value.
4277 * dwarf2-frame.c (class dwarf_expr_executor):
4278 Add override for dwarf_variable_value.
4279 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
4280 (class symbol_needs_eval_context): Likewise.
4281 (indirect_synthetic_pointer): Add forward declaration.
4282 (sect_variable_value): New function.
4283 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
4284 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
4285 for DW_OP_GNU_variable_value.
4287 2018-08-16 Tom Tromey <tom@tromey.com>
4289 * top.c (read_command_file): Update.
4290 (command_line_input): Remove "repeat" argument.
4291 * ada-lang.c (get_selections): Update.
4292 * linespec.c (decode_line_2): Update.
4293 * defs.h (command_line_input): Remove argument.
4294 * cli/cli-script.c (read_next_line): Update.
4295 * python/py-gdb-readline.c: Update.
4297 2018-08-17 Tom Tromey <tom@tromey.com>
4299 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
4302 2018-08-15 Tom Tromey <tom@tromey.com>
4304 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
4306 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
4308 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
4309 If used, use find_pc_partial_function to find address range
4311 * mi/mi-main.c (mi_cmd_list_features): Report
4312 "data-disassemble-a-option" feature.
4313 * NEWS: Mention new -data-disassemble option -a.
4315 2018-08-13 Tom Tromey <tom@tromey.com>
4317 * common/common-defs.h (_FORTIFY_SOURCE): Define.
4319 2018-08-13 Alan Hayward <alan.hayward@arm.com>
4321 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
4322 (aarch64_linux_collect_sve_regset): Likewise.
4323 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
4324 * regcache.h (regcache_map_entry_size): New function.
4326 2018-08-13 Alan Hayward <alan.hayward@arm.com>
4328 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
4329 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
4330 (SVE_HEADER_VL_LENGTH): Likewise.
4331 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
4332 (SVE_HEADER_FLAGS_LENGTH): Likewise.
4333 (SVE_HEADER_RESERVED_LENGTH): Likewise.
4334 (SVE_HEADER_SIZE_OFFSET): Likewise.
4335 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
4336 (SVE_HEADER_VL_OFFSET): Likewise.
4337 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
4338 (SVE_HEADER_FLAGS_OFFSET): Likewise.
4339 (SVE_HEADER_RESERVED_OFFSET): Likewise.
4340 (SVE_HEADER_SIZE): Likewise.
4341 (aarch64_linux_core_read_vq): Add function.
4342 (aarch64_linux_core_read_description): Check for SVE section.
4344 2018-08-13 Alan Hayward <alan.hayward@arm.com>
4346 * aarch64-fbsd-tdep.c
4347 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
4349 * aarch64-linux-tdep.c
4350 (aarch64_linux_iterate_over_regset_sections): Likewise.
4351 * alpha-linux-tdep.c
4352 (alpha_linux_iterate_over_regset_sections):
4354 (alphanbsd_iterate_over_regset_sections): Likewise.
4356 (amd64fbsd_iterate_over_regset_sections): Likewise.
4357 * amd64-linux-tdep.c
4358 (amd64_linux_iterate_over_regset_sections): Likewise.
4360 (armbsd_iterate_over_regset_sections): Likewise.
4362 (arm_fbsd_iterate_over_regset_sections): Likewise.
4364 (arm_linux_iterate_over_regset_sections): Likewise.
4365 * corelow.c (get_core_registers_cb): Likewise.
4366 (core_target::fetch_registers): Likewise.
4367 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
4368 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
4369 * gdbarch.h (void): Regenerate.
4370 * gdbarch.sh: Add supply_size and collect_size.
4371 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
4372 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
4373 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
4374 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
4375 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
4376 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
4377 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
4378 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
4379 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
4380 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
4381 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
4382 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
4383 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
4384 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
4385 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
4387 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
4388 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
4389 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
4390 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
4391 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
4392 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
4393 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
4395 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
4396 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
4397 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
4398 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
4399 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
4400 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
4401 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
4402 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
4404 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
4406 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
4409 2018-08-10 Keith Seitz <keiths@redhat.com>
4411 * compile/compile-c-support.c (add_code_header, add_code_footer):
4412 Move into policy class.
4413 (c_push_user_expression, pop_user_expression_nop)
4414 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
4415 (compile_program): New host class.
4416 (c_compile_program): New typedef.
4417 (c_compute_porgram): Use c_compile_program.
4419 2018-08-10 Keith Seitz <keiths@redhat.com>
4421 * compile/compile-internal.h (compile_instance::~compile_instance):
4422 Remove calls to htab_delete.
4423 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
4424 * compile.c (compile_instance::compile_instance): Initialize
4425 htab unique pointers.
4426 (compile_instance::get_cached_type, compile_instance::insert_type)
4427 (compile_instance::error_symbol_once): Update for unique_ptr.
4429 2018-08-10 Keith Seitz <keiths@redhat.com>
4431 * compile/compile-c-symbols.c (struct symbol_error)
4432 (hash_symbol_error, eq_symbol_error, del_symbol_error)
4433 (compile_instance::insert_symbol_error)
4434 (compile_instance::error_symbol_once): Move to ...
4435 * compile/compile.c: ... here.
4437 2018-08-10 Keith Seitz <keiths@redhat.com>
4439 * compile/compile-c-support.c (c_get_compile_context): Use `new'
4440 instead of `new_compile_instance'.
4441 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
4443 If the symbol error map is not initialized, create it.
4444 (generate_c_for_for_one_symbol): Do not check/initialize
4445 the symbol error map.
4446 * compile/compile-c-types.c (compile_c_instance): Make a class.
4448 (compile_instance::compile_instance): Initialize the type cache.
4449 (get_cached_type): New function.
4450 (insert_type): Update description.
4451 (compile_c_instance::m_default_cflags): Define.
4452 (convert_type): Update description. Use get_cached_type.
4453 (delete_instance): Moved to destructor.
4454 (new_compile_instance): Moved to constructor.
4455 * compile/compile-c.h (compile_c_instance): Make class inheriting
4456 from compile_instance.
4457 <base>: Remove field.
4458 <type_map, symbol_err_map>: Move to base class.
4459 <c_plugin>: Rename to `m_plugin' and remove pointer type.
4460 * compile/compile-internal.h (compile_instance): Make class.
4461 <type_map_t, symbol_err_map_t>: Define.
4462 <fe>: Rename to `m_gcc_fe'.
4463 <scope, block, gcc_target_options>: Add `m_' prefix.
4464 <m_type_map, m_symbol_err_map>: New fields, moved from
4467 (convert_type, new_compile_instance): Remove.
4468 * compile/compile.c (cleanup_compile_instance): Remove.
4469 (compile_to_object): Use unique_ptr to eliminate cleanups.
4470 (compile_instance::set_print_callback, compile_instance::version)
4471 (compile_instance::set_verbose)
4472 (compile_instance::set_driver_filename)
4473 (compile_instance::set_triplet_regexp)
4474 (compile_instance::set_arguments)
4475 (compile_instance::set_source_file)
4476 (compile_instance::compile): Define.
4478 2018-08-10 Keith Seitz <keiths@redhat.com>
4480 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
4481 * compile/compile-c-types.c: Define GCC_METHODN macros and include
4482 gcc-c-fe.def to define C plugin.
4483 (delete_instance): Delete `c_plugin'.
4484 (new_compile_instance): Initialize `c_plugin'.
4485 * compile/compile-c.h: Include gcc_c_plugin.h.
4486 (struct compile_c_instance) <c_plugin>: New member.
4487 * gcc-c-plugin.h: New file.
4488 Update all callers with API change.
4490 2018-08-10 Keith Seitz <keiths@redhat.com>
4492 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
4493 (HFILES_NO_SRCDIR): ... to here.
4494 Add compile-internal.h and compile-c.h.
4495 * compile/compile-c-support.c: Include compile-c.h.
4496 * compile/compile-c-symbols.c: Include compile-c.h.
4497 (generate_c_for_variable_locations): Update comment.
4498 * compile/compile-c-types.c: Include compile-c.h.
4499 * compile/compile-c.h: New file -- moved C language declarations
4500 from other files here.
4501 * compile/compile-internal.h: Do not include hashtab.h or
4502 common/enum-flags.h.
4503 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
4504 (gcc_convert_symbol, gcc_symbol_address)
4505 (generate_c_for_variable_locations, c_get_mode_for_size)
4506 (c_get_range_decl_name): Definitions moved to compile-c.h.
4507 * compile/compile-loc2c.c: Include compile-c.h.
4509 2018-08-10 Keith Seitz <keiths@redhat.com>
4511 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
4512 (c_symbol_substitution_name): ... this.
4515 2018-08-10 Keith Seitz <keiths@redhat.com>
4517 * compile/compile-c-support.c (c_compute_program): Use
4518 unique_xmalloc_ptr to eliminate cleanup.
4519 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
4520 Return a unique_xmalloc_ptr and eliminate cleanup.
4521 * compile/compile-internal.h (generate_c_for_variable_locations):
4522 Return unique_xmalloc_ptr and update description.
4524 2018-08-10 Alan Hayward <alan.hayward@arm.com>
4526 * corelow.c (core_target::get_core_register_section): Rename
4527 min_size to section_min_size.
4529 2018-08-09 Jim Wilson <jimw@sifive.com>
4531 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
4532 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
4533 * NEWS: Mention new GNU/Linux RISC-V target.
4534 * configure.host: Add riscv*-*-linux*.
4535 * configure.nat: Add riscv*.
4536 * configure.tgt: Add riscv*-*-linux*.
4537 * riscv-linux-nat.c: New file.
4538 * riscv-linux-tdep.c: New file.
4540 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4542 * infrun.c (resume): Make static, add forward declaration.
4543 (proceed): Update header comment.
4544 * infrun.h (resume): Delete declaration.
4546 2018-08-09 Tom Tromey <tom@tromey.com>
4548 * riscv-tdep.h: Minor formatting fixes.
4550 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
4552 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
4553 * dwarf-index-cache.c (create_dir_and_check): Likewise.
4554 (test_mkdir_recursive): Likewise.
4555 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
4557 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4559 * valarith.c (value_subscripted_rvalue): If an array is not in
4560 memory, and we don't know the upper bound, then we can't know that
4561 the requested element exists or not.
4563 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
4565 * target.c (str_comma_list_concat_elem): Fix typo in comment.
4566 (target_options_to_string): Add comment.
4568 2018-08-08 Tom Tromey <tom@tromey.com>
4570 * unittests/scoped_mmap-selftests.c: Check result of "write".
4572 2018-08-08 Jim Wilson <jimw@sifive.com>
4574 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
4575 (decode_register_index_short): New.
4576 (decode_j_type_insn, decode_cj_type_insn): New.
4577 (decode_b_type_insn, decode_cb_type_insn): New.
4578 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
4579 local xlen. Check xlen when decoding ambiguous compressed insns. In
4580 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
4581 is_c_sw_insn instead of is_sw_insn.
4582 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
4583 (riscv_software_single_step): New.
4584 * riscv-tdep.h (riscv_software_single_step): Declare.
4586 * riscv-tdep.c (riscv_isa_xlen): Drop static.
4587 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
4589 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
4592 * target.c (dispose_inferior): Don't dispose of inferiors that are
4595 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
4597 * remote.c (remote_target::download_tracepoint): Change char* to
4600 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4602 * target.h (target_options_to_string): Return an std::string.
4603 * target.c (str_comma_list_concat_elem): Return void, use
4605 (do_option): Likewise.
4606 (target_options_to_string): Return an std::string.
4607 * linux-nat.c (linux_nat_target::wait): Adjust.
4608 * target-debug.h (target_debug_print_options): Adjust.
4610 2018-08-07 Tom Tromey <tom@tromey.com>
4612 * Makefile.in (CPPFLAGS): New variable.
4613 (INTERNAL_CPPFLAGS): Use it.
4615 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4617 * NEWS: Mention the index cache.
4619 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4621 * common/pathstuff.h (get_standard_cache_dir): New.
4622 * common/pathstuff.c (get_standard_cache_dir): New.
4623 * build-id.h (build_id_to_string): New.
4624 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
4625 DEBUG_STR_SUFFIX): Move to here.
4626 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
4627 DEBUG_STR_SUFFIX): Move from there.
4628 (write_psymtabs_to_index): Make non-static, add basename
4629 parameter. Write to temporary files, rename when done.
4630 (save_gdb_index_command): Adjust call to
4631 write_psymtabs_to_index.
4632 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
4634 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
4635 (get_gdb_index_contents_from_cache): New.
4636 (get_gdb_index_contents_from_cache_dwz): New.
4637 (dwarf2_initialize_objfile): Read index from cache.
4638 (dwarf2_build_psymtabs): Save to index.
4639 * dwarf-index-cache.h: New file.
4640 * dwarf-index-cache.c: New file.
4641 * dwarf-index-write.h: New file.
4643 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4645 * gnulib/aclocal.m4: Re-generate.
4646 * gnulib/config.in: Re-generate.
4647 * gnulib/configure: Re-generate.
4648 * gnulib/import/Makefile.am: Re-generate.
4649 * gnulib/import/Makefile.in: Re-generate.
4650 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
4651 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4652 * gnulib/import/m4/mkdir.m4: New file.
4653 * gnulib/import/mkdir.c: New file.
4654 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
4657 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4659 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
4660 * common/scoped_mmap.c: New file.
4661 * common/scoped_mmap.h (destroy): New method.
4662 (~scoped_mmap, reset): Use destroy.
4663 (scoped_mmap): New move constructor.
4664 (mmap_file): New declaration.
4665 * unittests/scoped_mmap-selftests.c (test_normal,
4666 test_invalid_filename, run_tests): New functions.
4667 (_initialize_scoped_mmap_selftests): Register selftest.
4669 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4671 * dwarf2read.c (read_gdb_index_from_section): Rename to...
4672 (read_gdb_index_from_buffer): ... this. Remove section
4673 parameter, add buffer parameter.
4674 (get_gdb_index_contents_ftype,
4675 get_gdb_index_contents_dwz_ftype): New typedefs.
4676 (dwarf2_read_gdb_index): Add callback parameters to get the
4678 (get_gdb_index_contents_from_section): New.
4679 (dwarf2_initialize_objfile): Update call to
4680 dwarf2_read_gdb_index.
4682 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4684 * common/filestuff.h (gdb_fopen_cloexec): New overload.
4685 (gdb_open_cloexec): Likewise.
4686 * nat/linux-osdata.c (command_from_pid): Use string_printf.
4687 (commandline_from_pid): Likewise.
4688 (linux_xfer_osdata_threads): Likewise.
4689 (linux_xfer_osdata_fds): Likewise.
4690 * ada-lang.c (is_package_name): Likewise.
4691 * auxv.c (procfs_xfer_auxv): Likewise.
4692 * breakpoint.c (print_one_breakpoint_location): Use
4694 (print_one_catch_solib): Use string_printf.
4695 * coff-pe-read.c (add_pe_exported_sym): Likewise.
4696 (add_pe_forwarded_sym): Likewise.
4697 * dwarf2read.c (create_type_unit_group): Likewise.
4698 (build_error_marker_type): Likewise.
4699 * infcall.c (get_function_name): Likewise.
4700 * valprint.c (print_converted_chars_to_obstack): Likewise.
4701 * xtensa-tdep.c (xtensa_register_type): Likewise.
4703 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
4705 * remote.c (remote_target::download_tracepoint): Fix format
4708 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4710 * tracefile.c: Include common/byte-vector.h.
4711 (trace_save): Change type of buf to gdb::byte_vector. Initialize
4712 with trace_regblock_size if needed. Update uses of buf.
4714 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4716 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
4717 std::vector<unsigned char>.
4718 * tracepoint.c (collection_list::collection_list): Remove
4719 m_regs_mask initializer from initializer list. Resize
4720 m_regs_mask using the largest remote register number.
4721 (collection_list::add_remote_register): Remove size check on
4722 m_regs_mask. Use at to access element.
4723 (collection_list::stringify): Change type of temp_buf to
4724 gdb::char_vector. Update uses of temp_buf. Resize if needed to
4725 stringify the register mask. Use pack_hex_byte for the register
4728 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4730 * tracepoint.h (class collection_list) <add_register>: Remove.
4731 <add_remote_register, add_ax_registers, add_local_register>:
4733 <add_memrange>: Add scope parameter.
4734 * tracepoint.c (encode_actions_1): Likewise.
4735 (collection_list::add_register): Rename to ...
4736 (collection_list::add_remote_register): ... this. Update
4738 (collection_list::add_ax_registers, add_local_register): New
4740 (collection_list::add_memrange): Add scope parameter. Call
4741 add_local_register instead of add_register.
4742 (finalize_tracepoint_aexpr): New function.
4743 (collection_list::collect_symbol): Update calls to add_memrange.
4744 Call add_local_register instead of add_register. Call
4745 add_ax_registers. Call finalize_tracepoint_aexpr.
4746 (encode_actions_1): Get remote regnos for $reg action. Call
4747 add_remote_register, add_ax_registers, and add_local_register.
4748 Update call to add_memrange. Call finalize_tracepoint_aexpr.
4749 (validate_actionline): Call finalize_tracepoint_aexpr.
4751 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4753 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
4754 Replace array buf with gdb::char_vector buf, of size
4755 get_remote_packet_size (). Replace references to buf and
4756 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
4757 and xsnprintf with snprintf. Raise errors if the buffer is too
4760 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4762 * remote.c (remote_target::download_tracepoint): Fix the has_more
4763 predicate in the QTDP action list iteration.
4765 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4767 * remote.c (remote_target::download_tracepoint): Fix indentation
4770 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4772 * proc-api.c (_initialize_proc_api): Remove c, unused.
4773 * procfs.c (procfs_init_inferior): Remove signals, unused.
4774 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
4777 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
4778 Andrew Burgess <andrew.burgess@embecosm.com>
4780 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
4781 'W_STOPCODE (0)' as this could be ambiguous.
4783 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
4785 * ser-tcp.c (net_open): Fix thinko when deciding whether to
4786 disable TCP's Nagle algorithm (use "ai_protocol" instead of
4789 2018-08-02 Tom Tromey <tom@tromey.com>
4792 * dwarf2read.c (read_func_scope): Set symtab on template parameter
4794 (process_structure_scope): Likewise.
4796 2018-08-02 Xavier Roirand <roirand@adacore.com>
4799 * darwin-nat.c (darwin_kill_inferior): Fix handling of
4802 2018-08-02 Tom Tromey <tom@tromey.com>
4804 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
4805 (darwin_suspend_inferior, darwin_resume_inferior)
4806 (darwin_decode_notify_message, darwin_resume_inferior_threads)
4807 (darwin_check_new_threads): Check result of get_darwin_inferior.
4809 2018-07-31 Joel Brobecker <brobecker@adacore.com>
4813 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
4815 * varobj.c (varobj_get_path_expr_parent): Report an error if
4816 parent is a dynamic varobj.
4818 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4820 * gnulib/aclocal.m4: Re-generate.
4821 * gnulib/config.in: Re-generate.
4822 * gnulib/configure: Re-generate.
4823 * gnulib/import/Makefile.in: Re-generate.
4824 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4825 * gnulib/import/m4/onceonly.m4: Re-generate.
4827 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4829 * target-descriptions.c (struct xml_test_tdesc): New.
4830 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
4831 (record_xml_tdesc): Update.
4832 (maintenance_check_xml_descriptions): Update.
4833 * target-descriptions.h (record_xml_tdesc): Update comment.
4835 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
4837 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
4838 checking array bounds are defined.
4840 2018-07-30 Tom Tromey <tom@tromey.com>
4842 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
4843 irreflexivity violation.
4845 2018-07-30 Tom Tromey <tom@tromey.com>
4847 * cli/cli-decode.c (lookup_cmd): Remove lint code.
4848 * value.c (unpack_long): Remove lint code.
4849 * valops.c (value_ind): Remove lint code.
4850 * valarith.c (value_x_binop, value_x_unop, value_equal)
4851 (value_pos): Remove lint code.
4853 2018-07-28 Tom de Vries <tdevries@suse.de>
4855 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
4856 with undefined upper bound as <optimized out>.
4858 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
4860 * gcore.in: Rename variable "name" to "prefix". Expand
4863 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
4865 * windows-nat.c (windows_nat_target::create_inferior): Update to
4866 call close() in global namespace.
4868 2018-07-26 Tom Tromey <tom@tromey.com>
4870 * dwarf-index-write.c (add_address_entry): Don't add objfile
4872 * dbxread.c (find_stab_function): Rename from
4873 find_stab_function_addr. Return a bound_minimal_symbol.
4874 (read_dbx_symtab): Use raw_text_low, raw_text_high.
4875 Don't add objfile offsets.
4876 (end_psymtab): Use raw_text_low, raw_text_high,
4877 MSYMBOL_VALUE_RAW_ADDRESS.
4878 (read_ofile_symtab): Update.
4879 (process_one_symbol): Update.
4880 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
4882 (dw2_relocate): Remove.
4883 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
4885 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
4887 (process_psymtab_comp_unit_reader, add_partial_symbol)
4888 (add_partial_subprogram, dwarf2_ranges_read): Update.
4889 (load_partial_dies): Update.
4890 (add_address_entry): Don't add objfile offsets.
4891 (dwarf2_build_include_psymtabs): Update.
4892 (create_addrmap_from_aranges): Don't add objfile offsets.
4893 (dw2_find_pc_sect_compunit_symtab): Update.
4894 * mdebugread.c (parse_symbol): Don't add objfile offsets.
4895 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
4897 (parse_partial_symbols): Don't add objfile offsets. Use
4898 raw_text_low, raw_text_high. Update.
4899 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
4900 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
4901 or call 'relocate' quick function. Clear psymbol_map.
4902 * psympriv.h (struct partial_symbol) <address>: Add section
4904 <set_unrelocated_address>: Rename from set_address.
4905 <raw_text_low, raw_text_high>: New methods.
4906 <text_low, text_high>: Add objfile parameter.
4907 (add_psymbol_to_bcache): Add 'section' parameter. Call
4908 set_unrelocated_address.
4909 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4910 (find_pc_psymbol): Update.
4911 (fixup_psymbol_section, relocate_psymtabs): Remove.
4912 (dump_psymtab, psym_functions): Update.
4913 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
4915 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4916 (start_psymtab_common): Update.
4917 * symfile-debug.c (debug_qf_relocate): Remove.
4918 (debug_sym_quick_functions): Update.
4919 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
4920 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
4923 2018-07-26 Tom Tromey <tromey@redhat.com>
4925 * dbxread.c (end_psymtab): Use text_high_valid and
4927 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
4928 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
4929 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4931 <text_low_valid, text_high_valid>: New fields.
4932 <set_text_low, set_text_high>: Update.
4933 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
4935 2018-07-26 Tom Tromey <tom@tromey.com>
4937 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
4939 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
4940 textlow and texthigh fields.
4941 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
4943 * mdebugread.c (parse_lines, parse_partial_symbols)
4944 (psymtab_to_symtab_1): Update.
4945 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4946 Rename fields. Update comment. Now private.
4947 <text_low, text_high, set_text_low, set_text_high>: New methods.
4948 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4949 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
4950 (start_psymtab_common, maintenance_info_psymtabs)
4951 (maintenance_check_psymtabs): Update.
4952 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
4954 (scan_xcoff_symtab): Update.
4956 2018-07-26 Tom Tromey <tromey@redhat.com>
4958 * psympriv.h (struct partial_symbol) <unrelocated_address,
4959 address, set_address>: New methods.
4960 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
4961 (fixup_psymbol_section, relocate_psymtabs): Update.
4962 (print_partial_symbols): Add 'objfile' parameter. Update.
4963 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
4966 2018-07-26 Tom Tromey <tom@tromey.com>
4968 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4969 (debug_names::write_psymbols): Update.
4970 * psympriv.h (struct partial_symbol): Derive from
4971 general_symbol_info.
4972 <obj_section>: New method.
4973 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
4974 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4975 (find_pc_sect_psymbol, fixup_psymbol_section)
4976 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
4977 (print_partial_symbols, recursively_search_psymtabs)
4978 (compare_psymbols, psymbol_hash, psymbol_compare)
4979 (add_psymbol_to_bcache, maintenance_check_psymtabs)
4980 (psymbol_name_matches, psym_fill_psymbol_map): Update.
4982 2018-07-26 Tom Tromey <tromey@redhat.com>
4984 * dbxread.c (end_psymtab): Remove dead code.
4986 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
4988 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
4989 DWARF unwinders are disabled.
4990 * dwarf2-frame.c: Add dwarf2read.h include.
4991 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
4993 (dwarf2_frame_unwinders_enabled_p): Define.
4994 (show_dwarf_unwinders_enabled_p): New function.
4995 (_initialize_dwarf2_frame): Register switch to control DWARF
4997 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
4998 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
4999 (show_dwarf_cmdlist): Remove static keyword.
5000 * dwarf2read.h (set_dwarf_cmdlist): Declare.
5001 (show_dwarf_cmdlist): Declare.
5002 * NEWS: Document new feature.
5004 2018-07-26 Tom de Vries <tdevries@suse.de>
5006 PR breakpoints/23366
5007 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
5009 2018-07-26 Tom de Vries <tdevries@suse.de>
5011 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
5012 DW_AT_count can't be translated to a dynamic prop.
5014 2018-07-25 Tom de Vries <tdevries@suse.de>
5016 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
5019 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
5021 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
5023 2018-07-25 Joel Brobecker <brobecker@adacore.com>
5025 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
5027 2018-07-24 Keith Seitz <keiths@redhat.comt
5030 * dwarf2read.c (dw2_add_symbol_to_list): New function.
5031 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
5032 instead of add_symbol_to_list.
5033 (read_file_scope): Call prepare_one_comp_unit before reading
5036 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
5038 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
5040 2018-07-24 Tom Tromey <tom@tromey.com>
5042 * utils.c (malloc, realloc, free): Don't declare.
5043 * configure, config.in: Rebuild.
5044 * configure.ac: Don't check for declarations of free, malloc, or
5047 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5049 * aarch64-linux-nat.c
5050 (aarch64_linux_nat_target::stopped_data_address): Remove unused
5052 * arm-linux-nat.c (fetch_regs): Likewise.
5053 (store_regs): Likewise.
5054 (fetch_vfp_regs): Likewise.
5055 (store_vfp_regs): Likewise.
5056 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
5057 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
5058 (arm_linux_nat_target::insert_watchpoint): Likewise.
5059 (arm_linux_nat_target::remove_watchpoint): Likewise.
5060 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
5062 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
5064 * ppc-linux-nat.c (fetch_register): Likewise.
5065 (fetch_all_gp_regs): Likewise.
5066 (fetch_ppc_registers): Likewise.
5067 (store_all_gp_regs): Likewise.
5068 (store_ppc_registers): Likewise.
5069 (hwdebug_insert_point): Likewise.
5070 (can_use_watchpoint_cond_accel): Likewise.
5071 * remote-sim.c (gdb_os_write_stdout): Likewise.
5073 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5074 Tom Tromey <tom@tromey.com>
5076 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
5078 * configure: Rebuild.
5080 2018-07-22 Tom Tromey <tom@tromey.com>
5082 * regformats/regdat.sh: Define xmltarget_${name} inside
5083 #ifndef IN_PROCESS_AGENT.
5085 2018-07-22 Tom Tromey <tom@tromey.com>
5087 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
5089 2018-07-22 Tom Tromey <tom@tromey.com>
5091 * symfile.c (reread_symbols): Notify iter, not objfile.
5093 2018-07-22 Tom Tromey <tom@tromey.com>
5095 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
5097 (ravenscar_thread_target::prepare_to_store): Likewise.
5099 2018-07-22 Tom Tromey <tom@tromey.com>
5101 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
5102 unused variable. Call value_fetch_lazy when needed.
5103 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5104 Remove unused variable. Call value_fetch_lazy when needed.
5106 2018-07-22 Tom Tromey <tom@tromey.com>
5108 * m32c-tdep.c (mark_dma): Return void.
5109 (make_regs): Remove unused declarations.
5111 2018-07-22 Tom Tromey <tom@tromey.com>
5113 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
5114 cmdscm_get_valid_command_smob_arg_unsafe for effect.
5115 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
5116 bkscm_get_valid_block_smob_arg_unsafe for effect.
5118 2018-07-22 Tom Tromey <tom@tromey.com>
5120 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
5123 2018-07-22 Tom Tromey <tom@tromey.com>
5125 * windows-nat.c (saved_context): Conditionally define.
5126 * remote.c (remote_target::remote_btrace_maybe_reopen):
5127 Conditionally declare "warned".
5128 * inflow.c (sigquit_ours): Conditionally define.
5129 (new_tty): Move "tty" declaration inside #if.
5130 * guile/guile.c (guile_datadir): Conditionally define.
5131 * charset.c (set_be_le_names): Move some declarations inside #if.
5132 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
5134 (parse_xml_btrace_conf): Likewise.
5136 2018-07-22 Tom Tromey <tom@tromey.com>
5138 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
5140 2018-07-22 Tom Tromey <tom@tromey.com>
5142 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
5143 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
5144 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
5145 * buildsym-legacy.c (get_macro_table): Remove unused variable.
5146 * stack.c (frame_apply_level_command): Remove unused variable.
5147 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
5148 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
5149 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
5151 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
5152 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
5153 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
5155 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
5156 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
5158 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
5159 Remove unused variable.
5160 * cli/cli-script.c (recurse_read_control_structure): Remove unused
5162 * common/tdesc.c (print_xml_feature::visit): Remove unused
5164 * compile/compile-object-load.c (store_regs): Remove unused
5166 * complaints.c (clear_complaints): Remove unused variable.
5167 * corelow.c (core_target_open): Remove unused variable.
5168 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
5170 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
5172 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
5174 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
5176 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
5178 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
5180 * ia64-tdep.c (examine_prologue): Remove unused variable.
5181 * infcall.c (run_inferior_call): Remove unused variable.
5182 * inferior.c (exit_inferior): Remove unused variable.
5183 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
5184 * linespec.c (decode_line_2): Remove unused variable.
5185 * linux-nat.c (super_close): Remove.
5186 * linux-tdep.c (linux_info_proc): Remove unused variable.
5187 * mi/mi-main.c (mi_execute_command): Remove unused variable.
5188 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
5189 Remove unused variable.
5190 * parse.c (find_minsym_type_and_address): Remove unused variable.
5191 * printcmd.c (info_symbol_command, printf_floating): Remove unused
5193 * python/py-breakpoint.c (bppy_set_commands): Remove unused
5195 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
5197 * record-btrace.c (record_btrace_target::store_registers): Remove
5199 (cmd_show_record_btrace_cpu): Remove unused variable.
5200 * riscv-tdep.c (riscv_register_reggroup_p)
5201 (riscv_push_dummy_call, riscv_return_value): Remove unused
5203 * rust-exp.y (literal): Remove unused variable.
5204 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
5206 <STRUCTOP_ANONYMOUS>: Likewise.
5207 * s390-linux-tdep.c (s390_linux_init_abi_31)
5208 (s390_linux_init_abi_64): Remove unused variable.
5209 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
5210 (file_select_thread, net_windows_open, _initialize_ser_windows):
5211 Remove unused variables.
5212 * symtab.c (find_pc_sect_line): Remove unused variable.
5213 * target-memory.c (compute_garbled_blocks): Remove unused
5215 (target_write_memory_blocks): Remove unused variable.
5216 * target.c (target_stack::unpush): Remove unused variables.
5217 * tracepoint.c (start_tracing, all_tracepoint_actions)
5218 (merge_uploaded_trace_state_variables)
5219 (print_one_static_tracepoint_marker): Remove unused variable.
5220 * unittests/basic_string_view/element_access/char/1.cc (test01):
5221 Remove unused variable.
5222 * windows-nat.c (windows_continue, windows_add_all_dlls)
5223 (do_initial_windows_stuff, windows_nat_target::create_inferior):
5224 Remove unused variables.
5226 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5228 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
5229 attr_profile in HAVE_ELF.
5230 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
5233 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
5235 * frame.c (frame_register_unwind): Change parameter name.
5236 (frame_unwind_register): Likewise.
5237 (frame_unwind_register_value): Likewise.
5238 (frame_unwind_register_signed): Likewise.
5239 (frame_unwind_register_unsigned): Likewise.
5240 * frame.h (frame_register_unwind): Likewise.
5241 (frame_unwind_register): Likewise.
5242 (frame_unwind_register_value): Likewise.
5243 (frame_unwind_register_signed): Likewise.
5244 (frame_unwind_register_unsigned): Likewise.
5245 (frame_unwind_arch): Likewise.
5247 2018-07-20 Maciej W. Rozycki <macro@mips.com>
5249 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
5252 2018-07-20 Maciej W. Rozycki <macro@mips.com>
5254 * mips-linux-nat.c (mips_linux_nat_target::read_description):
5255 Call `get_ptrace_pid' rather than extracting the ptrace PID by
5258 2018-07-20 Keith Seitz <keiths@redhat.com>
5260 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
5261 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
5262 m_compunit_symtab, m_language>: Add "m_" prefix.
5264 * buildsym.c: Update all uses.
5266 2018-07-20 Tom Tromey <tom@tromey.com>
5268 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
5269 * buildsym.h (record_line_ftype): Remove typedef.
5271 2018-07-20 Tom Tromey <tom@tromey.com>
5273 * buildsym-legacy.h (augment_type_symtab): Don't declare.
5274 (end_expandable_symtab): Likewise.
5275 (end_symtab_get_static_block): Likewise.
5276 (end_symtab_from_static_block): Likewise.
5277 * buildsym-legacy.c (augment_type_symtab): Remove.
5278 (end_expandable_symtab): Remove.
5279 (end_symtab_get_static_block): Remove.
5280 (end_symtab_from_static_block): Remove.
5282 2018-07-20 Tom Tromey <tom@tromey.com>
5284 * dwarf2read.c: Include buildsym.h.
5285 (struct dwarf2_cu) <builder>: New method.
5286 (fixup_go_packaging): Update.
5287 (process_full_comp_unit, process_full_type_unit): Update. Don't
5288 use scoped_free_pendings.
5289 (using_directives): Add "cu" parameter, remove "language".
5290 (read_import_statement, setup_type_unit_groups, )
5291 (read_func_scope, read_lexical_block_scope)
5292 (dwarf2_record_block_ranges, read_namespace): Update.
5293 (lnp_state_machine::lnp_state_machine): Add cu parameter.
5294 (lnp_state_machine::handle_end_sequence): Update.
5295 (class lnp_state_machine) <m_cu>: New member.
5296 <m_record_line_callback>: Remove.
5297 <m_currently_recording_lines>: New member.
5298 (lnp_state_machine::handle_set_file): Update.
5299 (noop_record_line): Remove.
5300 (dwarf_record_line_p): Add cu parameter.
5301 (dwarf_record_line_1, dwarf_finish_line): Likewise.
5302 (lnp_state_machine::record_line)
5303 (lnp_state_machine::lnp_state_machine)
5304 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5305 (dwarf_decode_lines): Update.
5306 (dwarf2_start_subfile): Add cu parameter.
5307 (dwarf2_start_symtab, new_symbol): Update.
5308 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
5309 Remove dwarf2_per_objfile parameter.
5310 (dwarf_decode_macros): Update.
5312 2018-07-20 Tom Tromey <tom@tromey.com>
5314 * stabsread.c (define_symbol): Update.
5315 * buildsym-legacy.h (get_buildsym_compunit): Declare.
5316 * dwarf2read.c (new_symbol): Update.
5317 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
5318 * cp-namespace.c: Include buildsym.h.
5319 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
5320 * buildsym-legacy.c (get_buildsym_compunit): New function.
5322 2018-07-20 Tom Tromey <tom@tromey.com>
5324 * xcoffread.c: Include buildsym-legacy.h.
5325 * windows-nat.c: Include buildsym-legacy.h.
5326 * stabsread.c: Include buildsym-legacy.h.
5327 * mdebugread.c: Include buildsym-legacy.h.
5328 * buildsym-legacy.h: New file.
5329 * buildsym-legacy.c: New file, from buildsym.c.
5330 * go32-nat.c: Include buildsym-legacy.h.
5331 * dwarf2read.c: Include buildsym-legacy.h.
5332 * dbxread.c: Include buildsym-legacy.h.
5333 * cp-namespace.c: Include buildsym-legacy.h.
5334 * coffread.c: Include buildsym-legacy.h.
5335 * buildsym.h: Move some contents to buildsym-legacy.h.
5336 * buildsym.c: Include buildsym-legacy.h. Move many functions to
5338 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
5340 2018-07-20 Tom Tromey <tom@tromey.com>
5342 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
5343 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
5344 (buildsym_compunit::buildsym_compunit)
5345 (buildsym_compunit::~buildsym_compunit)
5346 (buildsym_compunit::get_macro_table): Define.
5348 2018-07-20 Tom Tromey <tom@tromey.com>
5350 * buildsym.c (reset_symtab_globals): Remove.
5351 (buildsym_compunit::end_symtab_from_static_block): Update.
5352 (buildsym_compunit::augment_type_symtab): Update.
5353 (end_symtab_from_static_block): Call free_buildsym_compunit.
5354 (augment_type_symtab, end_symtab, end_expandable_symtab):
5357 2018-07-20 Tom Tromey <tom@tromey.com>
5359 * arch-utils.c: Do not include buildsym.h.
5360 * mipsread.c: Do not include buildsym.h.
5361 * machoread.c: Do not include buildsym.h.
5362 * elfread.c: Do not include buildsym.h.
5364 2018-07-20 Tom Tromey <tom@tromey.com>
5366 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
5368 (buildsym_compunit): Add new constructor.
5369 (struct buildsym_compunit) <get_last_source_file, finish_block,
5370 record_block_range, start_subfile, patch_subfile_names,
5371 push_subfile, pop_subfile, record_line, get_compunit_symtab,
5372 set_last_source_start_addr, get_last_source_start_addr,
5373 get_local_using_directives, set_local_using_directives,
5374 get_global_using_directives, outermost_context_p,
5375 get_current_context_stack, get_context_stack_depth,
5376 get_current_subfile, get_local_symbols, get_file_symbols,
5377 get_global_symbols, record_debugformat, record_producer,
5378 push_context, pop_context, end_symtab_get_static_block,
5379 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
5381 <record_pending_block, finish_block_internal, make_blockvector,
5382 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
5386 2018-05-22 Tom Tromey <tom@tromey.com>
5388 * buildsym.c (record_pending_block): Move earlier. Remove objfile
5390 (finish_block_internal): Update.
5392 2018-07-20 Tom Tromey <tom@tromey.com>
5394 * buildsym.c (record_pending_block): Move earlier. Remove objfile
5396 (finish_block_internal): Update.
5398 2018-07-20 Tom Tromey <tom@tromey.com>
5400 * buildsym.h (EXTERN): Don't define or undef.
5401 * buildsym.c (EXTERN): Don't define.
5403 2018-07-20 Tom Tromey <tom@tromey.com>
5405 * buildsym.c: Remove TODO comment.
5407 2018-07-20 Tom Tromey <tom@tromey.com>
5409 * coffread.c (coff_symtab_read): Update.
5410 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5411 (xcoff_new_init): Update.
5412 * mipsread.c (mipscoff_new_init): Update.
5413 * mdebugread.c (mdebug_build_psymtabs): Update.
5414 * elfread.c (elf_new_init): Update.
5415 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
5417 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
5418 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5419 (stabsect_build_psymtabs): Update.
5420 * buildsym.h (buildsym_init): Don't declare.
5421 * buildsym.c: Update comment.
5422 (prepare_for_building): Remove.
5423 (start_symtab, restart_symtab): Update.
5424 (reset_symtab_globals): Update comment.
5425 (buildsym_init): Remove.
5427 2018-07-20 Tom Tromey <tom@tromey.com>
5429 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
5430 * stabsread.c (patch_block_stabs, define_symbol, read_type)
5431 (read_enum_type, common_block_start, common_block_end)
5432 (cleanup_undefined_types_1, finish_global_stabs): Update.
5433 * mdebugread.c (psymtab_to_symtab_1): Update.
5434 * dwarf2read.c (fixup_go_packaging, read_func_scope)
5435 (read_lexical_block_scope, new_symbol): Update.
5436 * dbxread.c (process_one_symbol): Update.
5437 * coffread.c (coff_symtab_read, process_coff_symbol)
5438 (coff_read_enum_type): Update.
5439 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
5441 (get_local_symbols, get_file_symbols, get_global_symbols): New
5443 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
5445 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
5446 (~scoped_free_pendings): Update.
5447 (finish_block, prepare_for_building, reset_symtab_globals)
5448 (end_symtab_get_static_block, end_symtab_with_blockvector)
5449 (augment_type_symtab, push_context): Update.
5450 (get_local_symbols, get_file_symbols, get_global_symbols): New
5452 (buildsym_init): Update.
5454 2018-07-20 Tom Tromey <tom@tromey.com>
5456 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
5457 (process_full_type_unit): Likewise.
5458 (dwarf2_start_symtab): Set list_in_scope.
5460 2018-07-20 Tom Tromey <tom@tromey.com>
5462 * dwarf2read.c (process_psymtab_comp_unit_reader)
5463 (build_type_psymtabs_reader): Do not set list_in_scope.
5465 2018-07-20 Tom Tromey <tom@tromey.com>
5467 * buildsym.c (free_pendings): Remove.
5468 (add_symbol_to_list, scoped_free_pendings)
5469 (finish_block_internal, buildsym_init): Update.
5471 2018-07-20 Tom Tromey <tom@tromey.com>
5473 * xcoffread.c (read_xcoff_symtab): Update.
5474 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
5476 * dbxread.c (process_one_symbol): Update.
5477 * coffread.c (coff_symtab_read): Update.
5478 * buildsym.h (finish_block): Update.
5479 * buildsym.c (finish_block): Remove "listhead" argument.
5480 (end_symtab_get_static_block): Update.
5482 2018-07-20 Tom Tromey <tom@tromey.com>
5484 * buildsym.h (class scoped_free_pendings): Remove constructor.
5485 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
5487 <m_pending_block_obstack, m_pending_blocks>: New members.
5488 (pending_block_obstack, pending_blocks): Remove.
5489 (scoped_free_pendings::scoped_free_pendings): Default.
5490 (~scoped_free_pendings): Update.
5491 (free_pending_blocks): Remove.
5492 (finish_block_internal, record_pending_block, make_blockvector)
5493 (end_symtab_get_static_block, augment_type_symtab, push_context)
5494 (buildsym_init): Update.
5496 2018-07-20 Tom Tromey <tom@tromey.com>
5498 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
5499 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
5501 (pending_addrmap, pending_addrmap_obstack)
5502 (pending_addrmap_interesting): Remove.
5503 (scoped_free_pendings, record_block_range, make_blockvector)
5504 (prepare_for_building, reset_symtab_globals, buildsym_init):
5507 2018-07-20 Tom Tromey <tom@tromey.com>
5509 * xcoffread.c (process_linenos): Update.
5510 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
5511 * mdebugread.c (psymtab_to_symtab_1): Update.
5512 * dwarf2read.c (setup_type_unit_groups)
5513 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
5514 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
5515 * dbxread.c (process_one_symbol): Update.
5516 * coffread.c (coff_symtab_read, enter_linenos)
5517 (process_coff_symbol): Update.
5518 * buildsym.h (current_subfile): Don't declare.
5519 (get_current_subfile): Declare.
5520 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
5522 (start_subfile, free_buildsym_compunit, push_subfile)
5523 (prepare_for_building, start_symtab): Update.
5524 (get_current_subfile): New function.
5526 2018-07-20 Tom Tromey <tom@tromey.com>
5528 * coffread.c (coff_symtab_read): Update.
5529 * xcoffread.c (read_xcoff_symtab): Update.
5530 * dwarf2read.c (new_symbol): Update.
5531 (read_func_scope, read_lexical_block_scope): Update.
5532 * dbxread.c (process_one_symbol): Update.
5533 * buildsym.h (context_stack, context_stack_depth): Don't declare.
5534 (outermost_context_p): Remove macro.
5535 (outermost_context_p, get_current_context_stack)
5536 (get_context_stack_depth): Declare.
5537 (pop_context): Return struct context_stack.
5538 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
5540 (context_stack_size): Remove.
5541 (INITIAL_CONTEXT_STACK_SIZE): Remove.
5542 (prepare_for_building, end_symtab_get_static_block)
5543 (augment_type_symtab, push_context): Update.
5544 (pop_context): Return struct context_stack.
5545 (outermost_context_p, get_current_context_stack)
5546 (get_context_stack_depth): New functions.
5547 (buildsym_init): Update.
5549 2018-07-20 Tom Tromey <tom@tromey.com>
5551 * rust-exp.y: Now a pure parser. Update all rules.
5552 (%union): Move earlier.
5553 (current_parser, work_obstack): Remove globals.
5554 (rust_parser, ~rust_parser): Update.
5555 (class rust_parser) <copy_name, concat3, crate_name, super_name,
5556 lex_character, lex_number, lex_string, lex_identifier,
5557 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
5558 convert_name, convert_params_to_expression,
5559 convert_ast_to_expression, ast_basic_type, ast_operation,
5560 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
5561 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
5562 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
5563 ast_array_type, ast_slice_type, ast_reference_type,
5564 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
5565 (rust_parse): Update.
5566 (rustyyerror, rustyylex): Add parser parameter.
5567 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
5568 (rust_lex_stringish_test, rust_lex_test_sequence)
5569 (rust_lex_test_trailing_dot, rust_lex_test_completion)
5570 (rust_lex_test_push_back, rust_lex_tests): Update.
5572 2018-07-19 Pedro Alves <palves@redhat.com>
5574 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
5575 gdb::unique_xmalloc_ptr.
5576 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
5577 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
5578 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
5579 copy-initialization.
5580 * guile/scm-pretty-print.c (ppscm_print_children): Use
5581 gdb::unique_xmalloc_ptr instead of cleanups.
5582 (gdbscm_apply_val_pretty_printer): Remove cleanups.
5583 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
5584 gdb::unique_xmalloc_ptr.
5585 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5586 Adjust to use gdb::unique_xmalloc_ptr.
5587 * guile/scm-utils.c (extract_arg): Adjust.
5588 * guile/scm-value.c (gdbscm_value_field): Adjust to use
5589 gdb::unique_xmalloc_ptr instead of a cleanup.
5591 2018-07-19 Tom Tromey <tom@tromey.com>
5593 * utils.c (do_value_free_to_mark)
5594 (make_cleanup_value_free_to_mark): Remove.
5595 * utils.h (make_cleanup_value_free_to_mark): Remove.
5597 2018-07-19 Pedro Alves <palves@redhat.com>
5599 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
5600 forwarding reference.
5602 2018-07-18 Pedro Alves <palves@redhat.com>
5604 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
5605 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
5608 2018-07-18 Pedro Alves <palves@redhat.com>
5610 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
5612 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
5614 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
5615 directly instead of a cleanup.
5616 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
5617 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
5618 (vlscm_binop_gdbthrow): New, factored out from ...
5619 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
5620 (vlscm_rich_compare): Use gdbscm_wrap.
5621 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
5622 instead of a cleanup.
5623 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
5625 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5626 Use xfree directly instead of a cleanup.
5627 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
5628 Adjust to use gdbscm_wrap and scoped_value_mark.
5629 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
5630 (gdbscm_value_address, gdbscm_value_dereference)
5631 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
5633 (gdbscm_value_dynamic_type): Use scoped_value_mark.
5634 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
5636 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
5637 gdbscm_wrap and scoped_value_mark.
5638 (gdbscm_value_to_string): Use xfree directly instead of a
5639 cleanup. Move 'buffer' unique_ptr to TRY scope.
5640 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
5641 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
5643 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
5644 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
5646 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
5649 2018-07-18 Tom de Vries <tdevries@suse.de>
5651 * findvar.c (default_read_var_value): Also resolve dynamic type for
5652 LOC_OPTIMIZED_OUT vars.
5654 2018-07-18 Maciej W. Rozycki <macro@mips.com>
5656 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
5659 2018-07-17 Tom Tromey <tom@tromey.com>
5661 * guile/scm-param.c (pascm_set_func, pascm_show_func)
5662 (compute_enum_list, pascm_set_param_value_x)
5663 (gdbscm_parameter_value): Update.
5664 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
5665 (gdbscm_scm_to_host_string): Update.
5666 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
5668 * guile/scm-cmd.c (cmdscm_add_completion): Update.
5669 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
5670 * guile/scm-string.c (gdbscm_scm_to_string): Return
5672 (gdbscm_scm_to_host_string): Likewise.
5674 2018-07-17 Tom Tromey <tom@tromey.com>
5676 * guile/guile.c (gdbscm_eval_from_control_command): Update.
5677 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
5678 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
5679 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
5682 2018-07-17 Tom Tromey <tom@tromey.com>
5684 * guile/scm-param.c (pascm_signal_setshow_error): Update.
5685 * guile/guile-internal.h (gdbscm_exception_message_to_string):
5687 * guile/scm-cmd.c (cmdscm_function): Update.
5688 * guile/scm-pretty-print.c
5689 (ppscm_print_exception_unless_memory_error): Update.
5690 * guile/scm-exception.c (gdbscm_exception_message_to_string):
5691 Return unique_xmalloc_ptr.
5693 2018-07-17 Tom Tromey <tom@tromey.com>
5695 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
5698 2018-07-17 Jim Wilson <jimw@sifive.com>
5700 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
5701 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
5702 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
5703 unecessary braces after EF_RISCV_RVC test. Delete call to
5704 set_gdbarch_decr_pc_after_break.
5706 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
5707 RISCV_LAST_FP_REGNUM + 1.
5708 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
5710 2018-07-17 Tom Tromey <tom@tromey.com>
5712 * configure.ac: Remove --disable-gdbcli.
5713 * configure: Rebuild.
5714 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
5715 (SUBDIR_CLI_CFLAGS): Remove.
5716 (SFILES): Use SUBDIR_CLI_SRCS.
5717 (COMMON_OBS): Use SUBDIR_CLI_OBS.
5719 2018-07-17 Tom Tromey <tom@tromey.com>
5722 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
5724 2018-07-16 Jim Wilson <jimw@sifive.com>
5726 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
5728 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5730 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
5732 (libunwind_frame_sniffer): Likewise.
5733 (libunwind_frame_prev_register): Likewise.
5734 (libunwind_sigtramp_frame_sniffer): Likewise.
5735 * ia64-tdep.c (ia64_access_reg): Likewise.
5736 (ia64_access_rse_reg): Likewise.
5737 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
5738 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
5740 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5742 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
5744 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5746 * remote-sim.c (gdbsim_target::close,
5747 gdbsim_target::mourn_inferior): Remove unused variables.
5749 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
5751 * ia64-tdep.c (ktab_buf): New global.
5752 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
5753 (get_kernel_table): Adjust.
5755 2018-07-16 Tom Tromey <tom@tromey.com>
5757 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
5758 * dwarf2read.c (using_directives, new_symbol): Use
5759 outermost_context_p.
5760 * dbxread.c (process_one_symbol): Use outermost_context_p.
5761 * coffread.c (coff_symtab_read): Use outermost_context_p.
5763 2018-07-16 Tom Tromey <tom@tromey.com>
5765 * dwarf2read.c (using_directives, read_func_scope)
5766 (read_lexical_block_scope): Update.
5767 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5768 * buildsym.h (local_using_directives, global_using_directives):
5770 (get_local_using_directives, set_local_using_directives)
5771 (get_global_using_directives): Declare.
5772 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
5773 m_global_using_directives>: New members.
5774 (finish_block_internal, prepare_for_building)
5775 (reset_symtab_globals, end_symtab_get_static_block)
5776 (push_context): Update.
5777 (get_local_using_directives, set_local_using_directives)
5778 (get_global_using_directives): New functions.
5779 (buildsym_init): Update.
5781 2018-07-16 Tom Tromey <tom@tromey.com>
5783 * xcoffread.c (xcoff_initial_scan): Don't call
5784 free_pending_blocks.
5785 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
5786 * buildsym.h (class scoped_free_pendings): Add constructor.
5787 (free_pending_blocks): Don't declare.
5788 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
5789 (free_pending_blocks): Now static.
5791 2018-07-16 Tom Tromey <tom@tromey.com>
5793 * buildsym.h (push_subfile, pop_subfile): Update declarations.
5794 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
5796 (struct subfile_stack): Remove.
5797 (subfile_stack): Remove.
5798 (push_subfile, pop_subfile, buildsym_init): Update.
5800 2018-07-16 Tom Tromey <tom@tromey.com>
5802 * buildsym.c (push_subfile): Use gdb_assert.
5803 (pop_subfile): Use gdb_assert.
5805 2018-07-16 Tom Tromey <tom@tromey.com>
5807 * buildsym.h (merge_symbol_lists): Remove.
5808 * buildsym.c (merge_symbol_lists): Remove.
5810 2018-07-16 Tom Tromey <tom@tromey.com>
5812 * stabsread.c (scan_file_globals): Update comment.
5813 * stabsread.h (scan_file_globals): Move from buildsym.h.
5814 * buildsym.h (scan_file_globals): Move to stabsread.h.
5816 2018-07-16 Tom Tromey <tom@tromey.com>
5818 * xcoffread.c (xcoff_new_init): Update.
5819 * mipsread.c (mipscoff_new_init): Update.
5820 * mdebugread.c (mdebug_build_psymtabs): Update.
5821 * elfread.c (elf_new_init): Update.
5822 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
5823 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
5824 * buildsym.h (buildsym_new_init): Don't declare.
5825 * buildsym.c (buildsym_new_init): Remove.
5827 2018-07-16 Tom Tromey <tom@tromey.com>
5829 * stabsread.h (within_function): Move from buildsym.h.
5830 * stabsread.c (start_stabs): Clear within_function.
5831 * coffread.c (coff_start_symtab): Clear within_function.
5832 * buildsym.h (within_function): Move to stabsread.h.
5833 * buildsym.c (prepare_for_building): Update.
5835 2018-07-16 Tom Tromey <tom@tromey.com>
5837 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
5838 * dwarf2read.c (dwarf2_start_symtab): Don't set
5839 processing_gcc_compilation.
5840 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
5842 2018-07-16 Tom Tromey <tom@tromey.com>
5844 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
5845 (next_symbol_text_func): Move from buildsym.h.
5846 * stabsread.c (hashname): Move from buildsym.c.
5847 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
5848 (next_symbol_text_func, hashname): Move to stabsread.h.
5849 * buildsym.c: Don't include bcache.h
5850 (hashname): Move to stasbread.c.
5852 2018-07-16 Tom Tromey <tom@tromey.com>
5854 * buildsym.h (context_stack_size): Don't declare.
5855 * buildsym.c (context_stack_size): New global.
5857 2018-07-16 Tom Tromey <tom@tromey.com>
5859 * dbxread.c (processing_acc_compilation): New global.
5860 * buildsym.h (processing_acc_compilation): Don't declare.
5862 2018-07-16 Tom Tromey <tom@tromey.com>
5864 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
5865 * dbxread.c (read_ofile_symtab): Update.
5866 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
5867 * buildsym.h (last_source_start_addr): Remove.
5868 (set_last_source_start_addr, get_last_source_start_addr):
5870 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
5872 (struct buildsym_compunit) <m_last_source_start_addr>: New
5874 (prepare_for_building): Remove start_addr parameter.
5875 (start_symtab, restart_symtab, end_symtab_get_static_block)
5876 (end_symtab_with_blockvector): Update.
5877 (set_last_source_start_addr, get_last_source_start_addr): New
5880 2018-07-16 Tom Tromey <tom@tromey.com>
5882 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
5884 (have_line_numbers): Remove.
5885 (record_line, prepare_for_building, end_symtab_get_static_block)
5886 (augment_type_symtab): Update.
5888 2018-07-16 Tom Tromey <tom@tromey.com>
5890 * buildsym.c (~buildsym_compunit): Free the macro table.
5891 (struct buildsym_compunit) <get_macro_table, release_macros>: New
5893 <m_pending_macros>: New member.
5894 (pending_macros): Remove.
5895 (~scoped_free_pendings, get_macro_table, prepare_for_building)
5896 (reset_symtab_globals, end_symtab_get_static_block)
5897 (end_symtab_with_blockvector, augment_type_symtab)
5898 (buildsym_init): Update.
5900 2018-07-16 Tom Tromey <tom@tromey.com>
5902 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
5904 (buildsym_compunit::set_last_source_file): New method.
5905 <m_last_source_file>: New member.
5906 (prepare_for_building): Remove "name" parameter.
5907 (start_symtab, restart_symtab, reset_symtab_globals): Update.
5908 (last_source_file): Remove.
5909 (set_last_source_file, get_last_source_file): Update.
5911 2018-07-16 Tom Tromey <tom@tromey.com>
5913 * buildsym.c (prepare_for_building): Add assert.
5915 2018-07-16 Tom Tromey <tom@tromey.com>
5917 * buildsym.c (~buildsym_compunit): Update.
5918 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
5919 (start_subfile, patch_subfile_names)
5920 (end_symtab_with_blockvector): Update.
5922 2018-07-16 Tom Tromey <tom@tromey.com>
5924 * buildsym.c (struct buildsym_compunit): Add constructor,
5925 destructor, initializers.
5926 (start_buildsym_compunit): Remove.
5927 (free_buildsym_compunit): Use "delete".
5928 (start_symtab, restart_symtab): Use "new".
5930 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
5932 * symfile.c (set_objfile_default_section_offset): Remove struct
5935 2018-07-14 Stafford Horne <shorne@gmail.com>
5937 * (Responsible Maintainers): Add myself as or1k maintainer.
5939 2018-07-13 Tom Tromey <tom@tromey.com>
5941 * symfile.c (set_objfile_default_section_offset): Use extra braces
5944 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5946 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
5949 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5951 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5952 unittests/cli-utils-selftests.c
5953 * unittests/cli-utils-selftests.c: New file.
5955 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5957 * NEWS: Mention new commands. Mention change to 'thread apply'.
5959 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5961 * thread.c (thr_try_catch_cmd): New function.
5962 (thread_apply_all_command): Handle qcs flags.
5963 (thread_apply_command): Handle qcs flags.
5964 (taas_command): New function.
5965 (tfaas_command): New function.
5966 (_initialize_thread): Update to setup the new commands 'taas
5967 and 'tfaas'. Change doc string for 'thread apply'.
5969 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5971 * stack.c: (trailing_outermost_frame): New function, mostly
5972 extracted from backtrace_command_1.
5973 (leading_innermost_frame): New function.
5974 (backtrace_command_1): Update to call trailing_outermost_frame.
5975 (frame_apply_command_count): New function.
5976 (frame_apply_level_command): New function.
5977 (frame_apply_all_command): New function.
5978 (frame_apply_command): New function.
5979 (faas_command): New function.
5980 (frame_cmd_list): New variable.
5981 (_initialize_stack): Update to setup the new commands 'frame apply'
5984 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5986 * cli-utils.c (number_or_range_parser::get_number): Only handle
5987 numbers or convenience var as numbers.
5988 (parse_flags): New function.
5989 (parse_flags_qcs): New function.
5990 (number_or_range_parser::finished): Ensure parsing end is detected
5991 before end of string.
5992 * cli-utils.h (parse_flags): New function.
5993 (parse_flags_qcs): New function.
5994 (number_or_range_parser): Remove m_finished bool.
5995 (number_or_range_parser::skip_range): Set m_in_range to false.
5997 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
5999 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
6002 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6003 Jan Kratochvil <jan.kratochvil@redhat.com>
6004 Paul Fertser <fercerpav@gmail.com>
6005 Tsutomu Seki <sekiriki@gmail.com>
6006 Pedro Alves <palves@redhat.com>
6008 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6009 'unittests/parse-connection-spec-selftests.c'.
6010 (COMMON_SFILES): Add 'common/netstuff.c'.
6011 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
6012 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
6013 * common/netstuff.c: New file.
6014 * common/netstuff.h: New file.
6015 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
6016 (wait_for_connect): Update comment. New parameter
6017 'gdb::optional<int> sock' instead of 'struct serial *scb'.
6018 Use 'sock' directly instead of 'scb->fd'.
6019 (try_connect): New function, with code from 'net_open'.
6020 (net_open): Rewrite main loop to deal with multiple
6021 sockets/addresses. Handle IPv6-style hostnames; implement
6022 support for IPv6 connections.
6023 * unittests/parse-connection-spec-selftests.c: New file.
6025 2018-07-11 Pedro Alves <palves@redhat.com>
6028 * remote.c (remote_target::remote_detach_pid): Call
6029 set_current_process.
6031 2018-07-11 Pedro Alves <palves@redhat.com>
6033 * h8300-tdep.c (h8300_gdbarch_init): Remove
6034 set_gdbarch_ecoff_reg_to_regnum calls.
6036 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6039 * c-typeprint.c (c_type_print_base_struct_union): Don't print
6040 offsets/sizes for static members of a class/struct.
6042 2018-07-11 Alan Hayward <alan.hayward@arm.com>
6044 * target-descriptions.c (tdesc_register_bitsize): Rename.
6045 * target-descriptions.h (tdesc_register_bitsize): Likewise.
6046 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
6047 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
6049 2018-07-10 Tom Tromey <tom@tromey.com>
6051 * breakpoint.c (moribund_locations): Now static and a
6053 (breakpoint_init_inferior, moribund_breakpoint_here_p)
6054 (build_bpstat_chain, update_global_location_list)
6055 (breakpoint_retire_moribund): Update.
6056 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
6059 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6061 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
6062 (riscv_register_reggroup_p): Use new function, remove unneeded
6064 (riscv_push_dummy_call): Extend assert to compare against xlen or
6065 flen based on register type.
6067 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6069 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
6071 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6073 * remote.c (show_hardware_watchpoint_limit): New function.
6074 (show_hardware_watchpoint_length_limit): New function.
6075 (show_hardware_breakpoint_limit): New function.
6076 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
6077 where appropriate, update help text.
6079 2018-07-09 Tom Tromey <tom@tromey.com>
6081 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
6082 (CLIBS): Don't mention NAT_CLIBS.
6084 2018-07-09 Tom Tromey <tom@tromey.com>
6086 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
6087 (LIBGDB_OBS, clean mostlyclean): Update.
6088 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
6090 2018-07-09 Tom Tromey <tom@tromey.com>
6092 * Makefile.in (%.c: %.y): Use ECHO_YACC.
6093 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
6094 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
6096 2018-07-09 Tom Tromey <tom@tromey.com>
6098 * Makefile.in (ALLDEPFILES): Remove exec.c.
6099 (COMMON_OBS): Remove exec.o.
6100 (COMMON_SFILES): Add exec.c.
6102 2018-07-09 Tom Tromey <tom@tromey.com>
6104 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
6106 2018-07-09 Tom Tromey <tom@tromey.com>
6108 * Makefile.in (clean mostlyclean): Remove stamp-version.
6109 (version.c): Depend on stamp-version.
6110 (stamp-version): New rule, from version.c rule.
6112 2018-07-09 Tom Tromey <tom@tromey.com>
6114 * Makefile.in (init.c): Depend on stamp-init.
6115 (stamp-init): New rule, from init.c rule.
6116 (clean mostlyclean): Remove stamp-init.
6118 2018-07-09 Tom Tromey <tom@tromey.com>
6120 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
6121 SUBDIR_GCC_COMPILE_SRCS.
6123 2018-07-09 Tom Tromey <tom@tromey.com>
6125 * Makefile.in (init.c): Remove some unused sed rules.
6127 2018-07-09 Tom Tromey <tom@tromey.com>
6129 * Makefile.in (TSOBS): Remove.
6130 (INIT_FILES): Update.
6131 (LIBGDB_OBS): Update.
6132 (COMMON_SFILES): Add inflow.c.
6133 (SFILES): Remove inflow.c.
6135 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6137 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
6139 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
6141 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
6142 get_saveloc_name, is_signal_frame_name, step_name,
6143 init_remote_name, create_addr_space_name,
6144 destroy_addr_space_name, search_unwind_table_name,
6145 find_dyn_list_name): Constify.
6147 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
6149 * darwin-nat.c (darwin_pthread_kill): New function.
6150 (darwin_resume_thread): Use darwin_pthread_kill.
6152 2018-07-05 Tom de Vries <tdevries@suse.de>
6154 * macroexp.c (macro_buffer) <operator=>: New member function.
6156 2018-07-04 Tom Tromey <tom@tromey.com>
6158 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
6160 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
6162 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
6163 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
6164 * maint.c: Likewise.
6167 2018-07-04 Joel Brobecker <brobecker@adacore.com>
6169 * NEWS: Create a new section for the next release branch.
6170 Rename the section of the current branch, now that it has
6173 2018-07-04 Joel Brobecker <brobecker@adacore.com>
6175 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
6176 * version.in: Bump version to 8.2.50.DATE-git.
6178 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6179 Pedro Alves <palves@redhat.com>
6181 * linux-nat.c (linux_init_ptrace): Rename to ...
6182 (linux_init_ptrace_procfs): ... this. Call
6183 linux_proc_init_warnings.
6184 (linux_nat_target::post_attach)
6185 (linux_nat_target::post_startup_inferior): Adjust.
6186 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
6187 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
6189 2018-07-04 Tom de Vries <tdevries@suse.de>
6191 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
6193 (read_comp_unit_head): ... here.
6195 2018-07-03 Tom Tromey <tom@tromey.com>
6197 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
6198 (stop_tracing, tstatus_command)
6199 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
6200 (print_one_static_tracepoint_marker): Update.
6201 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
6203 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
6205 (all_tracepoints, static_tracepoints_here): Return std::vector.
6207 2018-07-03 Tom Tromey <tom@tromey.com>
6209 * common/ptid.c (ptid_equal): Remove.
6210 * common/ptid.h (ptid_equal): Don't declare.
6211 * ada-tasks.c: Update.
6212 * breakpoint.c: Update.
6213 * common/agent.c: Update.
6214 * corelow.c: Update.
6215 * darwin-nat-info.c: Update.
6216 * darwin-nat.c: Update.
6218 * dtrace-probe.c: Update.
6219 * dummy-frame.c: Update.
6220 * fbsd-nat.c: Update.
6222 * gdbthread.h: Update.
6223 * gnu-nat.c: Update.
6224 * go32-nat.c: Update.
6225 * inf-loop.c: Update.
6226 * inf-ptrace.c: Update.
6227 * infcall.c: Update.
6231 * linux-fork.c: Update.
6232 * linux-nat.c: Update.
6233 * linux-thread-db.c: Update.
6234 * mi/mi-cmd-var.c: Update.
6235 * mi/mi-interp.c: Update.
6236 * mi/mi-main.c: Update.
6237 * nto-procfs.c: Update.
6238 * ppc-linux-tdep.c: Update.
6240 * python/py-inferior.c: Update.
6241 * python/py-record-btrace.c: Update.
6242 * python/py-record.c: Update.
6243 * ravenscar-thread.c: Update.
6244 * regcache.c: Update.
6245 * remote-sim.c: Update.
6247 * sol-thread.c: Update.
6250 * tui/tui-stack.c: Update.
6252 * windows-nat.c: Update.
6253 * windows-tdep.c: Update.
6255 2018-07-03 Tom Tromey <tom@tromey.com>
6257 * common/ptid.c (ptid_match): Remove.
6258 * common/ptid.h (ptid_match): Don't declare.
6259 * fbsd-nat.c: Update.
6262 * linux-nat.c: Update.
6263 * record-btrace.c: Update.
6264 * regcache.c: Update.
6267 2018-07-03 Tom Tromey <tom@tromey.com>
6269 * common/ptid.c (ptid_tid_p): Remove.
6270 * common/ptid.h (ptid_tid_p): Don't declare.
6271 * sol-thread.c: Update.
6273 2018-07-03 Tom Tromey <tom@tromey.com>
6275 * common/ptid.c (ptid_lwp_p): Remove.
6276 * common/ptid.h (ptid_lwp_p): Don't declare.
6277 * fbsd-nat.c: Update.
6278 * linux-nat.c: Update.
6279 * nat/linux-procfs.c: Update.
6280 * nat/x86-linux-dregs.c: Update.
6281 * sol-thread.c: Update.
6283 2018-07-03 Tom Tromey <tom@tromey.com>
6285 * common/ptid.c (ptid_is_pid): Remove.
6286 * common/ptid.h (ptid_is_pid): Don't declare.
6288 * linux-nat.c: Update.
6289 * mi/mi-interp.c: Update.
6293 2018-07-03 Tom Tromey <tom@tromey.com>
6295 * common/ptid.c (ptid_get_tid): Remove.
6296 * common/ptid.h (ptid_get_tid): Don't declare.
6297 * ada-tasks.c: Update.
6298 * aix-thread.c: Update.
6299 * bsd-uthread.c: Update.
6300 * darwin-nat.c: Update.
6301 * fbsd-nat.c: Update.
6302 * i386-darwin-nat.c: Update.
6304 * linux-tdep.c: Update.
6305 * nto-procfs.c: Update.
6306 * ppc-ravenscar-thread.c: Update.
6307 * python/py-infthread.c: Update.
6308 * ravenscar-thread.c: Update.
6309 * sol-thread.c: Update.
6310 * sparc-ravenscar-thread.c: Update.
6311 * windows-nat.c: Update.
6313 2018-07-03 Tom Tromey <tom@tromey.com>
6315 * common/ptid.c (ptid_get_lwp): Remove.
6316 * common/ptid.h (ptid_get_lwp): Don't declare.
6317 * aarch64-linux-nat.c: Update.
6318 * ada-tasks.c: Update.
6319 * aix-thread.c: Update.
6320 * amd64-linux-nat.c: Update.
6321 * arm-linux-nat.c: Update.
6322 * corelow.c: Update.
6323 * fbsd-nat.c: Update.
6324 * fbsd-tdep.c: Update.
6325 * gnu-nat.c: Update.
6326 * i386-cygwin-tdep.c: Update.
6327 * i386-gnu-nat.c: Update.
6328 * i386-linux-nat.c: Update.
6329 * ia64-linux-nat.c: Update.
6330 * inf-ptrace.c: Update.
6332 * linux-fork.c: Update.
6333 * linux-nat.c: Update.
6334 * linux-tdep.c: Update.
6335 * linux-thread-db.c: Update.
6336 * mips-linux-nat.c: Update.
6337 * nat/aarch64-linux-hw-point.c: Update.
6338 * nat/aarch64-linux.c: Update.
6339 * nat/linux-btrace.c: Update.
6340 * nat/linux-osdata.c: Update.
6341 * nat/linux-procfs.c: Update.
6342 * nat/x86-linux-dregs.c: Update.
6343 * obsd-nat.c: Update.
6344 * ppc-fbsd-nat.c: Update.
6345 * ppc-linux-nat.c: Update.
6347 * python/py-infthread.c: Update.
6348 * ravenscar-thread.c: Update.
6350 * s390-linux-nat.c: Update.
6351 * sol-thread.c: Update.
6352 * sol2-tdep.c: Update.
6353 * spu-linux-nat.c: Update.
6354 * x86-linux-nat.c: Update.
6355 * xtensa-linux-nat.c: Update.
6357 2018-07-03 Tom Tromey <tom@tromey.com>
6359 * common/ptid.c (ptid_get_pid): Remove.
6360 * common/ptid.h (ptid_get_pid): Don't declare.
6361 * aarch64-linux-nat.c: Update.
6362 * ada-lang.c: Update.
6363 * aix-thread.c: Update.
6364 * alpha-bsd-nat.c: Update.
6365 * amd64-fbsd-nat.c: Update.
6366 * amd64-linux-nat.c: Update.
6367 * arm-linux-nat.c: Update.
6368 * arm-nbsd-nat.c: Update.
6370 * break-catch-syscall.c: Update.
6371 * breakpoint.c: Update.
6372 * bsd-uthread.c: Update.
6373 * corelow.c: Update.
6375 * darwin-nat.c: Update.
6376 * fbsd-nat.c: Update.
6377 * fbsd-tdep.c: Update.
6379 * gnu-nat.c: Update.
6380 * hppa-nbsd-nat.c: Update.
6381 * hppa-obsd-nat.c: Update.
6382 * i386-fbsd-nat.c: Update.
6383 * ia64-linux-nat.c: Update.
6384 * inf-ptrace.c: Update.
6386 * inferior.c: Update.
6387 * inferior.h: Update.
6390 * linux-fork.c: Update.
6391 * linux-nat.c: Update.
6392 * linux-tdep.c: Update.
6393 * linux-thread-db.c: Update.
6394 * m68k-bsd-nat.c: Update.
6395 * mi/mi-interp.c: Update.
6396 * mi/mi-main.c: Update.
6397 * mips-linux-nat.c: Update.
6398 * mips-nbsd-nat.c: Update.
6399 * mips64-obsd-nat.c: Update.
6400 * nat/aarch64-linux-hw-point.c: Update.
6401 * nat/aarch64-linux.c: Update.
6402 * nat/linux-btrace.c: Update.
6403 * nat/linux-osdata.c: Update.
6404 * nat/linux-procfs.c: Update.
6405 * nat/x86-linux-dregs.c: Update.
6406 * nto-procfs.c: Update.
6407 * obsd-nat.c: Update.
6408 * ppc-linux-nat.c: Update.
6409 * ppc-nbsd-nat.c: Update.
6410 * ppc-obsd-nat.c: Update.
6411 * proc-service.c: Update.
6413 * python/py-inferior.c: Update.
6414 * python/py-infthread.c: Update.
6415 * ravenscar-thread.c: Update.
6417 * remote-sim.c: Update.
6419 * rs6000-nat.c: Update.
6420 * s390-linux-nat.c: Update.
6421 * sh-nbsd-nat.c: Update.
6422 * sol-thread.c: Update.
6423 * sparc-nat.c: Update.
6424 * sparc64-tdep.c: Update.
6425 * spu-linux-nat.c: Update.
6426 * spu-tdep.c: Update.
6427 * target-debug.h: Update.
6430 * tid-parse.c: Update.
6431 * tracefile-tfile.c: Update.
6432 * vax-bsd-nat.c: Update.
6433 * windows-nat.c: Update.
6434 * x86-linux-nat.c: Update.
6435 * x86-nat.c: Update.
6437 2018-07-03 Tom Tromey <tom@tromey.com>
6439 * common/ptid.c (pid_to_ptid): Remove.
6440 * common/ptid.h (pid_to_ptid): Don't declare.
6441 * aix-thread.c: Update.
6442 * arm-linux-nat.c: Update.
6443 * common/ptid.c: Update.
6444 * common/ptid.h: Update.
6445 * corelow.c: Update.
6447 * darwin-nat.c: Update.
6448 * fbsd-nat.c: Update.
6449 * fork-child.c: Update.
6450 * gnu-nat.c: Update.
6451 * go32-nat.c: Update.
6452 * inf-ptrace.c: Update.
6454 * inferior.c: Update.
6456 * linux-fork.c: Update.
6457 * linux-nat.c: Update.
6458 * nat/aarch64-linux-hw-point.c: Update.
6459 * nat/fork-inferior.c: Update.
6460 * nat/x86-linux-dregs.c: Update.
6461 * nto-procfs.c: Update.
6462 * obsd-nat.c: Update.
6464 * progspace.c: Update.
6466 * rs6000-nat.c: Update.
6467 * s390-linux-nat.c: Update.
6468 * sol-thread.c: Update.
6469 * spu-linux-nat.c: Update.
6472 * tracefile-tfile.c: Update.
6473 * windows-nat.c: Update.
6475 2018-07-03 Tom Tromey <tom@tromey.com>
6477 * common/ptid.h (ptid_build): Don't declare.
6478 * common/ptid.c (ptid_build): Remove.
6479 * aix-thread.c: Update.
6480 * bsd-kvm.c: Update.
6481 * bsd-uthread.c: Update.
6482 * common/agent.c: Update.
6483 * common/ptid.c: Update.
6484 * common/ptid.h: Update.
6485 * corelow.c: Update.
6486 * darwin-nat.c: Update.
6487 * fbsd-nat.c: Update.
6488 * gnu-nat.c: Update.
6489 * linux-fork.c: Update.
6490 * linux-nat.c: Update.
6491 * linux-thread-db.c: Update.
6492 * nat/linux-osdata.c: Update.
6493 * nat/linux-procfs.c: Update.
6494 * nto-procfs.c: Update.
6495 * obsd-nat.c: Update.
6496 * proc-service.c: Update.
6498 * ravenscar-thread.c: Update.
6499 * remote-sim.c: Update.
6501 * sol-thread.c: Update.
6503 * windows-nat.c: Update.
6505 2018-07-03 Tom Tromey <tom@tromey.com>
6507 * infrun.c (follow_exec): Use exit_inferior_silent.
6508 * inferior.c (exit_inferior_num_silent): Remove.
6509 * inferior.h (exit_inferior_num_silent): Don't declare.
6511 2018-07-03 Tom Tromey <tom@tromey.com>
6514 * darwin-nat.c (darwin_attach_pid): Reset inferior and
6515 inferior_ptid on error.
6517 2018-07-02 Maciej W. Rozycki <macro@mips.com>
6518 Simon Marchi <simon.marchi@polymtl.ca>
6521 * disasm.h (gdb_disassembler): Add
6522 `m_disassembler_options_holder'. member
6523 * disasm.c (get_all_disassembler_options): New function.
6524 (gdb_disassembler::gdb_disassembler): Use it.
6525 (gdb_buffered_insn_length_init_dis): Likewise.
6526 (gdb_buffered_insn_length): Adjust accordingly.
6527 (set_disassembler_options): Handle options with arguments.
6528 (show_disassembler_options_sfunc): Likewise. Add a leading new
6529 line if showing options with descriptions.
6530 (disassembler_options_completer): Adapt to using the
6531 `disasm_options_and_args_t' structure.
6532 * mips-tdep.c (mips_disassembler_options): New variable.
6533 (mips_disassembler_options_o32): Likewise.
6534 (mips_disassembler_options_n32): Likewise.
6535 (mips_disassembler_options_n64): Likewise.
6536 (gdb_print_insn_mips): Don't set `disassembler_options'.
6537 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
6539 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
6540 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
6541 `gdbarch_disassembler_options_implicit' and
6542 `gdbarch_valid_disassembler_options'.
6543 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
6544 `disasm_options_and_args_t' structure.
6545 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
6547 (valid_disassembler_options): Switch from `disasm_options_t' to
6548 the `disasm_options_and_args_t' structure.
6549 * NEWS: Document `set disassembler-options' support for the MIPS
6551 * gdbarch.h: Regenerate.
6552 * gdbarch.c: Regenerate.
6554 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
6556 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
6558 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6560 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
6561 parameter in call to amd64_target_description.
6562 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
6563 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
6564 (amd64fbsd_init_abi): Likewise.
6565 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6566 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6567 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6568 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
6570 2018-06-29 Pedro Alves <palves@redhat.com>
6572 * gdb/amd64-tdep.h (amd64_create_target_description): Add
6573 "segments" parameter.
6574 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
6575 (_initialize_amd64_tdep): Update call to
6576 amd64_create_target_description.
6577 (amd64_target_description): Add "segments" parameter. Adjust
6578 the implementation to use it.
6579 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
6580 call to amd64_create_target_description.
6581 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
6582 * gdb/arch/amd64.h (amd64_create_target_description): Add
6583 "segments" register.
6584 * gdb/arch/amd64.c (amd64_create_target_description): Add
6585 "segments" parameter. Call create_feature_i386_64bit_segments
6586 only if SEGMENTS is true.
6587 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
6588 call to amd64_create_target_description.
6590 2018-06-29 Pedro Alves <palves@redhat.com>
6592 * thread.c (thread_target_id_str): New, factored out from ...
6593 (print_thread_info_1): ... here. Use it to compute the max
6594 "Target Id" column width.
6596 2018-06-29 Pedro Alves <palves@redhat.com>
6598 * remote.c (remote_target::extra_thread_info): Delete
6599 'display_buf' and 'n' locals. from the cache, regardless of
6600 packet mechanims is in use. Use cache for qThreadExtra and qP
6603 2018-06-29 Pedro Alves <palves@redhat.com>
6605 * blockframe.c (find_pc_sect_containing_function): New function.
6606 * breakpoint.c (print_breakpoint_location): Don't call
6607 find_pc_sect_function.
6608 * linespec.c (create_sals_line_offset): Record the location's
6610 * linespec.c (convert_address_location_to_sals): Fill in sal's
6611 symbol with find_pc_sect_containing_function.
6612 * symtab.c (find_function_start_sal): Rename to ...
6613 (find_function_start_sal_1): ... this.
6614 (find_function_start_sal): Reimplement as wrapper around
6615 find_function_start_sal_1, and use
6616 find_pc_sect_containing_function to fill in the sal's symbol.
6617 (find_function_start_sal(symbol*, bool)): Adjust.
6618 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
6620 (find_pc_sect_containing_function): Declare.
6622 2018-06-29 Pedro Alves <palves@redhat.com>
6624 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
6625 true if the the location has no symbol.
6627 2018-06-28 Tom Tromey <tom@tromey.com>
6629 * NEWS: Mention --enable-codesign.
6630 * silent-rules.mk (ECHO_SIGN): New variable.
6631 * configure.ac: Add --enable-codesign.
6632 * configure: Rebuild.
6633 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
6634 (gdb$(EXEEXT)): Optionally invoke codesign.
6636 2018-06-28 Pedro Alves <palves@redhat.com>
6638 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
6640 (switch_to_thread_no_regs): Adjust comment.
6641 * infcmd.c (stop_pc): Delete.
6642 (post_create_inferior, info_program_command): Replace references
6643 to stop_pc with references to thread_info->suspend.stop_pc.
6644 * inferior.h (stop_pc): Delete declaration.
6645 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
6646 (handle_inferior_event_1, handle_signal_stop)
6647 (process_event_stop_test, keep_going_stepped_thread)
6648 (handle_step_into_function, handle_step_into_function_backward)
6649 (print_stop_location): Replace references to stop_pc with
6650 references to thread_info->suspend.stop_pc.
6651 (struct infcall_suspend_state) <stop_pc>: Delete field.
6652 (save_infcall_suspend_state, restore_infcall_suspend_state):
6653 Remove references to inf_stat->stop_pc.
6654 * linux-fork.c (fork_load_infrun_state): Likewise.
6655 * record-btrace.c (record_btrace_set_replay): Likewise.
6656 * record-full.c (record_full_goto_entry): Likewise.
6657 * remote.c (print_one_stopped_thread): Likewise.
6658 * target.c (target_resume): Extend comment.
6659 * thread.c (set_executing_thread): New.
6660 (set_executing): Use it.
6661 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
6662 Remove references to stop_pc.
6664 2018-06-28 Pedro Alves <palves@redhat.com>
6666 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
6667 Moving fetching stop_pc until after ecs->event_thread is refreshed.
6669 2018-06-28 Tom Tromey <tom@tromey.com>
6671 * coffread.c (coff_symfile_finish): Update.
6672 * xcoffread.c (xcoff_symfile_finish): Update.
6673 * elfread.c (elf_symfile_finish): Update.
6674 * symfile.h (dwarf2_free_objfile): Don't declare.
6675 * dwarf2read.c (_initialize_dwarf2_read): Use
6676 register_objfile_data_with_cleanup.
6677 (dwarf2_free_objfile): Now static. Change signature.
6679 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6681 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
6682 option "-o" to add-symbol-file-load to add an offset to each
6683 section's load address.
6684 * symfile.c (set_objfile_default_section_offset): New function.
6686 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6688 * symfile.c (add_symbol_file_command): Make sure that sections
6689 with the same name are sorted in the same order.
6691 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6693 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
6694 require the second argument. If omitted, load sections at the
6695 addresses specified in the file.
6697 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6699 * symfile.c (symbol_file_command, symbol_file_add_main_1)
6700 (_initialize_symfile): Add option "-o" to symbol-file to add an
6701 offset to each section of the symbol file.
6703 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6705 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
6707 2018-06-27 Tom Tromey <tom@tromey.com>
6709 * stack.c (_initialize_stack): Update "func" help text.
6711 2018-06-27 Tom Tromey <tom@tromey.com>
6713 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
6715 (unwind_infopy_str, pyuw_create_unwind_info)
6716 (unwind_infopy_add_saved_register, pyuw_sniffer)
6717 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
6719 (struct saved_reg): Add constructor.
6720 <value>: Now a gdbpy_ref<>.
6722 2018-06-27 Tom Tromey <tom@tromey.com>
6724 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
6726 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6728 * gdb-gdb.py.in: Format using autopep8.
6730 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6732 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
6733 (type_lookup_function): Recognize CORE_ADDR values.
6735 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6737 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
6740 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6742 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
6745 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6747 * gdb-gdb.py: Move to...
6748 * gdb-gdb.py.in: ... here.
6749 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
6750 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
6752 (distclean): Remove gdb-gdb.py when cleaning.
6753 (gdb-gdb.py, gdb-gdb.gdb): New rules.
6754 * configure: Re-generate.
6756 2018-06-27 Pedro Alves <palves@redhat.com>
6758 * proc-service.c (get_ps_regcache): New.
6759 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6760 (ps_lsetfpregs): Use it.
6762 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
6765 * dwarf2read.c (lnp_state_machine::check_line_address): Update
6767 (dwarf_decode_lines_1): Adjust.
6769 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6771 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
6773 <info_proc>: Likewise.
6775 2018-06-26 Joel Brobecker <brobecker@adacore.com>
6777 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
6778 to windows_fetch_one_register, and only handle the case of
6779 fetching one register. Move the code that reloads the context
6780 and iterates over all registers if R is negative to...
6781 (windows_nat_target::fetch_registers): ... here.
6782 (do_windows_store_inferior_registers): Rename to
6783 windows_store_one_register, and only handle the case of storing
6784 one register. Move the code that handles the case where r is
6786 (windows_nat_target::store_registers) ... here.
6788 2018-06-26 Tom Tromey <tom@tromey.com>
6791 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
6792 * rust-lang.c (rust_print_struct_def): Add podata parameter.
6794 (rust_internal_print_type): Add podata parameter.
6795 (rust_print_type): Update.
6797 2018-06-26 Tom Tromey <tom@tromey.com>
6799 * typeprint.h (struct print_offset_data) <update, finish,
6800 maybe_print_hole>: New methods.
6801 <indentation>: New constant.
6802 * typeprint.c (print_offset_data::indentation): Define.
6803 (print_offset_data::maybe_print_hole, print_offset_data::update)
6804 (print_offset_data::finish): Move from c-typeprint.c and rename.
6805 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
6806 (print_spaces_filtered_with_print_options): Update.
6807 (c_print_type_union_field_offset, maybe_print_hole)
6808 (c_print_type_struct_field_offset): Move to typeprint.c and
6810 (c_type_print_base_struct_union): Update.
6812 2018-06-25 Pedro Alves <palves@redhat.com>
6814 * gdbthread.h (thread_info_ref, delete_thread)
6815 (delete_thread_silent, first_thread_of_inferior)
6816 (any_thread_of_inferior, switch_to_thread)
6817 (enable_thread_stack_temporaries)
6818 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6819 (get_last_thread_stack_temporary)
6820 (value_in_thread_stack_temporaries, can_access_registers_thread):
6821 Spell out "struct thread_info" instead of just "thread_info".
6822 * inferior.h (notice_new_inferior): Likewise.
6824 2018-06-25 Pedro Alves <palves@redhat.com>
6826 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6827 pass thread_info pointer to delete_thread.
6828 (windows_nat_target::detach): Pass inferior pointer to
6830 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
6832 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
6833 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
6834 and pass a thread_info pointer to delete_thread.
6835 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
6836 pass thread_info pointer to delete_thread.
6837 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
6838 delete_thread_silent call.
6839 * procfs.c (procfs_target::detach): Pass inferior pointer to
6841 (procfs_target::wait): Pass thread_info pointer to delete_thread.
6842 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
6843 delete_thread_silent call.
6844 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6845 pass thread_info pointer to delete_thread.
6846 (windows_nat_target::detach): Pass inferior pointer to
6849 2018-06-22 Alan Hayward <alan.hayward@arm.com>
6851 * regcache.c (readable_regcache::read_part): Fix asserts.
6852 (reg_buffer::raw_collect_part): New function.
6853 (regcache::write_part): Fix asserts.
6854 (reg_buffer::raw_supply_part): New function.
6855 (regcache::transfer_regset_register): New helper function.
6856 (regcache::transfer_regset): Call new functions.
6857 (regcache_supply_regset): Use gdb_byte*.
6858 (regcache::supply_regset): Likewise.
6859 (regcache_collect_regset): Likewise.
6860 (regcache::collect_regset): Likewise.
6861 * regcache.h (reg_buffer::raw_collect_part): New declaration.
6862 (reg_buffer::raw_supply_part): Likewise.
6863 (regcache::transfer_regset_register): Likewise.
6864 (regcache::transfer_regset): Use gdb_byte*.
6866 2018-06-22 Alan Hayward <alan.hayward@arm.com>
6868 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
6870 2018-06-21 Pedro Alves <palves@redhat.com>
6872 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
6873 instead of a ptid_t. All callers adjusted.
6874 * ada-tasks.c (ada_get_task_number): Likewise. All callers
6876 (print_ada_task_info, display_current_task_id, task_command_1):
6878 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
6880 (breakpoint_kind): Adjust.
6881 (remove_breakpoints_pid): Rename to ...
6882 (remove_breakpoints_inf): ... this. Adjust to take an inferior
6883 pointer. All callers adjusted.
6884 (bpstat_clear_actions): Use inferior_thread.
6885 (get_bpstat_thread): New.
6886 (bpstat_do_actions): Use it.
6887 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
6888 to take a thread_info pointer. All callers adjusted.
6889 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
6890 (breakpoint_re_set_thread): Use inferior_thread.
6891 * breakpoint.h (struct inferior): Forward declare.
6892 (bpstat_stop_status): Update.
6893 (remove_breakpoints_pid): Delete.
6894 (remove_breakpoints_inf): New.
6895 * bsd-uthread.c (bsd_uthread_target::wait)
6896 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
6897 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
6898 (maint_btrace_packet_history_cmd)
6899 (maint_btrace_clear_packet_history_cmd): Adjust.
6900 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
6902 * cli/cli-interp.c: Include "inferior.h".
6903 * common/refcounted-object.h (struct
6904 refcounted_object_ref_policy): New.
6905 * compile/compile-object-load.c: Include gdbthread.h.
6906 (store_regs): Use inferior_thread.
6907 * corelow.c (core_target::close): Use current_inferior.
6908 (core_target_open): Adjust to use first_thread_of_inferior and use
6909 the current inferior.
6910 * ctf.c (ctf_target::close): Adjust to use current_inferior.
6911 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
6912 <thread>: ... this new field. All references adjusted.
6913 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
6914 Take a thread_info pointer instead of a ptid_t.
6915 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
6916 (dummy_frame_discard, register_dummy_frame_dtor): Take a
6917 thread_info pointer instead of a ptid_t.
6918 * elfread.c: Include "inferior.h".
6919 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
6920 Use inferior_thread.
6921 * eval.c (evaluate_subexp): Likewise.
6922 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
6924 * gdb_proc_service.h (struct thread_info): Forward declare.
6925 (struct ps_prochandle) <ptid>: Delete, replaced by ...
6926 <thread>: ... this new field. All references adjusted.
6927 * gdbarch.h, gdbarch.c: Regenerate.
6928 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
6929 'thread' parameter. All implementations and callers adjusted.
6930 * gdbthread.h (thread_info) <set_running>: New method.
6931 (delete_thread, delete_thread_silent): Take a thread_info pointer
6933 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
6934 (first_thread_of_process): Delete, replaced by ...
6935 (first_thread_of_inferior): ... this new function. All callers
6937 (any_live_thread_of_process): Delete, replaced by ...
6938 (any_live_thread_of_inferior): ... this new function. All callers
6940 (switch_to_thread, switch_to_no_thread): Declare.
6941 (is_executing): Delete.
6942 (enable_thread_stack_temporaries): Update comment.
6943 <enable_thread_stack_temporaries>: Take a thread_info pointer
6944 instead of a ptid_t. Incref the thread.
6945 <~enable_thread_stack_temporaries>: Decref the thread.
6948 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6949 (get_last_thread_stack_temporary)
6950 (value_in_thread_stack_temporaries, can_access_registers_thread):
6951 Take a thread_info pointer instead of a ptid_t. All callers
6953 * infcall.c (get_call_return_value): Use inferior_thread.
6954 (run_inferior_call): Work with thread pointers instead of ptid_t.
6955 (call_function_by_hand_dummy): Work with thread pointers instead
6956 of ptid_t. Use thread_info_ref.
6957 * infcmd.c (proceed_thread_callback): Access thread's state
6959 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
6960 access thread's state directly.
6961 (continue_command): Use inferior_thread.
6962 (info_program_command): Use find_thread_ptid and access thread
6964 (proceed_after_attach_callback): Use thread state directly.
6965 (notice_new_inferior): Take a thread_info pointer instead of a
6966 ptid_t. All callers adjusted.
6967 (exit_inferior): Take an inferior pointer instead of a pid. All
6969 (exit_inferior_silent): New.
6970 (detach_inferior): Delete.
6971 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
6972 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
6973 (detach_inferior_command, kill_inferior_command): Use
6974 find_inferior_id instead of valid_gdb_inferior_id and
6975 gdb_inferior_id_to_pid.
6976 (inferior_command): Use inferior and thread pointers.
6977 * inferior.h (struct thread_info): Forward declare.
6978 (notice_new_inferior): Take a thread_info pointer instead of a
6979 ptid_t. All callers adjusted.
6980 (detach_inferior): Delete declaration.
6981 (exit_inferior, exit_inferior_silent): Take an inferior pointer
6982 instead of a pid. All callers adjusted.
6983 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
6984 (valid_gdb_inferior_id): Delete.
6985 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
6986 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
6987 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
6989 <inf>: ... this new field.
6990 <step_ptid>: Delete, replaced by ...
6991 <step_thread>: ... this new field.
6992 (get_displaced_stepping_state): Take an inferior pointer instead
6993 of a pid. All callers adjusted.
6994 (displaced_step_in_progress_any_inferior): Adjust.
6995 (displaced_step_in_progress_thread): Take a thread pointer instead
6996 of a ptid_t. All callers adjusted.
6997 (displaced_step_in_progress, add_displaced_stepping_state): Take
6998 an inferior pointer instead of a pid. All callers adjusted.
6999 (get_displaced_step_closure_by_addr): Adjust.
7000 (remove_displaced_stepping_state): Take an inferior pointer
7001 instead of a pid. All callers adjusted.
7002 (displaced_step_prepare_throw, displaced_step_prepare)
7003 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
7004 All callers adjusted.
7005 (start_step_over): Adjust.
7006 (infrun_thread_ptid_changed): Remove bit updating ptids in the
7007 displaced step queue.
7008 (do_target_resume): Adjust.
7009 (fetch_inferior_event): Use inferior_thread.
7010 (context_switch, get_inferior_stop_soon): Take an
7011 execution_control_state pointer instead of a ptid_t. All callers
7013 (switch_to_thread_cleanup): Delete.
7014 (stop_all_threads): Use scoped_restore_current_thread.
7015 * inline-frame.c: Include "gdbthread.h".
7016 (inline_state) <inline_state>: Take a thread pointer instead of a
7017 ptid_t. All callers adjusted.
7018 <ptid>: Delete, replaced by ...
7019 <thread>: ... this new field.
7020 (find_inline_frame_state): Take a thread pointer instead of a
7021 ptid_t. All callers adjusted.
7022 (skip_inline_frames, step_into_inline_frame)
7023 (inline_skipped_frames, inline_skipped_symbol): Take a thread
7024 pointer instead of a ptid_t. All callers adjusted.
7025 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
7026 (inline_skipped_frames, inline_skipped_symbol): Likewise.
7027 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
7029 * linux-nat.c (get_detach_signal): Likewise.
7030 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
7031 (thread_db_notice_clone): Adjust.
7032 (thread_db_find_new_threads_silently)
7033 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
7034 a thread pointer instead of a ptid_t. All callers adjusted.
7035 * mi/mi-cmd-var.c: Include "inferior.h".
7036 (mi_cmd_var_update_iter): Update to use thread pointers.
7037 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
7039 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
7041 (mi_output_running): ... this new function.
7042 (mi_on_resume_1): Adjust to use it.
7043 (mi_user_selected_context_changed): Adjust to use inferior_thread.
7044 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
7046 (interrupt_thread_callback): : Adjust to use thread and inferior
7048 * proc-service.c: Include "gdbthread.h".
7049 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
7050 * progspace-and-thread.c: Include "inferior.h".
7051 * progspace.c: Include "inferior.h".
7052 * python/py-exitedevent.c (create_exited_event_object): Adjust to
7053 hold a reference to an inferior_object.
7054 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
7056 * python/py-inferior.c (struct inferior_object): Give the type a
7057 tag name instead of a typedef.
7058 (python_on_normal_stop): No need to check if the current thread is
7060 (inferior_to_inferior_object): Change return type to
7061 inferior_object. All callers adjusted.
7062 (find_thread_object): Delete, bits factored out to ...
7063 (thread_to_thread_object): ... this new function.
7064 * python/py-infthread.c (create_thread_object): Use
7065 inferior_to_inferior_object.
7066 (thpy_is_stopped): Use thread pointer directly.
7067 (gdbpy_selected_thread): Use inferior_thread.
7068 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
7069 field, replaced with ...
7070 <thread>: ... this new field. All users adjusted.
7071 (btpy_insn_or_gap_new): Drop const.
7072 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
7074 * python/py-record.c: Include "gdbthread.h".
7075 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7076 a ptid_t. All callers adjusted.
7077 (gdbpy_current_recording): Use inferior_thread.
7078 * python/py-record.h (recpy_record_object) <ptid>: Delete
7079 field, replaced with ...
7080 <thread>: ... this new field. All users adjusted.
7081 (recpy_element_object) <ptid>: Delete
7082 field, replaced with ...
7083 <thread>: ... this new field. All users adjusted.
7084 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7085 a ptid_t. All callers adjusted.
7086 * python/py-threadevent.c: Include "gdbthread.h".
7087 (get_event_thread): Use thread_to_thread_object.
7088 * python/python-internal.h (struct inferior_object): Forward
7090 (find_thread_object, find_inferior_object): Delete declarations.
7091 (thread_to_thread_object, inferior_to_inferior_object): New
7093 * record-btrace.c: Include "inferior.h".
7094 (require_btrace_thread): Use inferior_thread.
7095 (record_btrace_frame_sniffer)
7096 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
7097 (get_thread_current_frame): Use scoped_restore_current_thread and
7099 (get_thread_current_frame): Use thread pointer directly.
7100 (record_btrace_replay_at_breakpoint): Use thread's inferior
7102 * record-full.c: Include "inferior.h".
7103 * regcache.c: Include "gdbthread.h".
7104 (get_thread_arch_regcache): Use the inferior's address space
7106 (get_thread_regcache, registers_changed_thread): New.
7107 * regcache.h (get_thread_regcache(thread_info *thread)): New
7109 (registers_changed_thread): New.
7110 (remote_target) <remote_detach_1>: Swap order of parameters.
7111 (remote_add_thread): <remote_add_thread>: Return the new thread.
7112 (get_remote_thread_info(ptid_t)): New overload.
7113 (remote_target::remote_notice_new_inferior): Use thread pointers
7115 (remote_target::process_initial_stop_replies): Use
7116 thread_info::set_running.
7117 (remote_target::remote_detach_1, remote_target::detach)
7118 (extended_remote_target::detach): Adjust.
7119 * stack.c (frame_show_address): Use inferior_thread.
7120 * target-debug.h (target_debug_print_thread_info_pp): New.
7121 * target-delegates.c: Regenerate.
7122 * target.c (default_thread_address_space): Delete.
7123 (memory_xfer_partial_1): Use current_inferior.
7124 (target_detach): Use current_inferior.
7125 (target_thread_address_space): Delete.
7126 (generic_mourn_inferior): Use current_inferior.
7127 * target.h (struct target_ops) <thread_address_space>: Delete.
7128 (target_thread_address_space): Delete.
7129 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
7131 (delete_thread_1, delete_thread, delete_thread_silent): Take a
7132 thread pointer instead of a ptid_t. Adjust all callers.
7133 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
7134 (first_thread_of_process): Delete, replaced by ...
7135 (first_thread_of_inferior): ... this new function. All callers
7137 (any_thread_of_process): Rename to ...
7138 (any_thread_of_inferior): ... this, and take an inferior pointer.
7139 (any_live_thread_of_process): Rename to ...
7140 (any_live_thread_of_inferior): ... this, and take an inferior
7142 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7143 (value_in_thread_stack_temporaries)
7144 (get_last_thread_stack_temporary): Take a thread pointer instead
7145 of a ptid_t. Adjust all callers.
7146 (thread_info::set_running): New.
7147 (validate_registers_access): Use inferior_thread.
7148 (can_access_registers_ptid): Rename to ...
7149 (can_access_registers_thread): ... this, and take a thread
7151 (print_thread_info_1): Adjust to compare thread pointers instead
7153 (switch_to_no_thread, switch_to_thread): Make extern.
7154 (scoped_restore_current_thread::~scoped_restore_current_thread):
7155 Use m_thread pointer directly.
7156 (scoped_restore_current_thread::scoped_restore_current_thread):
7157 Use inferior_thread.
7158 (thread_command): Use thread pointer directly.
7159 (thread_num_make_value_helper): Use inferior_thread.
7160 * top.c (execute_command): Use inferior_thread.
7161 * tui/tui-interp.c: Include "inferior.h".
7162 * varobj.c (varobj_create): Use inferior_thread.
7163 (value_of_root_1): Use find_thread_global_id instead of
7164 global_thread_id_to_ptid.
7166 2018-06-21 Alan Hayward <alan.hayward@arm.com>
7168 * regcache.c (readable_regcache::read_part): Avoid memcpy when
7170 (regcache::write_part): Likewise.
7171 (readable_regcache::cooked_read_part): Update comment.
7172 (readable_regcache::cooked_write_part): Likewise.
7173 * regcache.h: (readable_regcache::read_part): Likewise.
7174 (regcache::write_part): Likewise.
7176 2018-06-21 Richard Bunt <richard.bunt@arm.com>
7177 Dirk Schubert <dirk.schubert@arm.com>
7179 * aarch64-linux-nat.c (post_attach): New.
7180 (aarch64_linux_nat_target::post_attach): Override post_attach to
7181 record the number of hardware debug registers.
7183 2018-06-20 Tom Tromey <tom@tromey.com>
7185 * python/py-param.c (add_setshow_generic): Make parameters const.
7186 (parmpy_init): Update.
7188 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7190 * regcache.h (regcache_cooked_read_ftype): Rename to...
7191 (register_read_ftype): ...this, change type to function_view.
7192 (class reg_buffer) <save>: Remove src parameter.
7193 (readonly_detached_regcache) <readonly_detached_regcache>: Make
7194 parameter non-const in first overload. Remove src parameter in
7196 * regcache.c (do_cooked_read): Remove.
7197 (readonly_detached_regcache::readonly_detached_regcache): Make
7198 parameter non-const, adjust call to other constructor.
7199 (reg_buffer::save): Remove src parameter.
7200 * frame.c (do_frame_register_read): Remove.
7201 (frame_save_as_regcache): Use lambda function.
7202 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
7203 parameter to ppu2spu_data *.
7204 (ppu2spu_sniffer): Use lambda function.
7206 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7208 * record-full.c (record_full_target::insert_breakpoint): Remove
7209 "struct" keyword, add const.
7211 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
7213 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
7214 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
7215 * configure.ac: Remove AC_PREREQ, add missing quoting.
7216 * gnulib/configure.ac: Modernize usage of
7217 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
7218 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
7219 (AUTOMAKE_VERSION): Bump to 1.15.1.
7220 * configure: Re-generate.
7221 * config.in: Re-generate.
7222 * aclocal.m4: Re-generate.
7223 * gnulib/aclocal.m4: Re-generate.
7224 * gnulib/config.in: Re-generate.
7225 * gnulib/configure: Re-generate.
7226 * gnulib/import/Makefile.in: Re-generate.
7228 2018-06-19 Pedro Alves <palves@redhat.com>
7230 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
7231 (lookup_minimal_symbol_by_pc_section): ... here with
7232 gdb_assert_not_reached added.
7234 2018-06-19 Pedro Alves <palves@redhat.com>
7236 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
7237 parameter with a block parameter. Compare location's block symbol
7238 with the frame's block instead of addresses.
7239 (skip_inline_frames): Pass the current block instead of the
7240 frame's address. Break out as soon as we determine the frame
7241 should not be skipped.
7243 2018-06-18 Tom Tromey <tom@tromey.com>
7245 * solib-aix.c (solib_aix_get_section_offsets): Return
7247 (solib_aix_solib_create_inferior_hook): Update.
7249 2018-06-18 Tom Tromey <tom@tromey.com>
7251 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
7253 2018-06-18 Tom Tromey <tom@tromey.com>
7255 * solib-frv.c (frv_relocate_main_executable): Use
7257 * solib-dsbt.c (dsbt_relocate_main_executable): Use
7260 2018-06-18 Tom Tromey <tom@tromey.com>
7262 * objfiles.h (inhibit_section_map_updates): Update.
7263 (resume_section_map_updates, resume_section_map_updates_cleanup):
7265 * solib-svr4.c (svr4_handle_solib_event): Update.
7266 * objfiles.c (inhibit_section_map_updates): Return
7267 scoped_restore_tmpl<int>.
7268 (resume_section_map_updates, resume_section_map_updates_cleanup):
7271 2018-06-18 Tom Tromey <tom@tromey.com>
7273 * valprint.h (read_string): Update.
7274 * valprint.c (read_string): Change type of "buffer".
7275 (val_print_string): Update.
7276 * python/py-value.c (valpy_string): Update.
7277 * language.h (struct language_defn) <la_get_string>: Change
7279 (default_get_string, c_get_string): Update.
7280 * language.c (default_get_string): Change type of "buffer".
7281 * guile/scm-value.c (gdbscm_value_to_string): Update.
7282 * c-lang.c (c_get_string): Change type of "buffer".
7284 2018-06-18 Tom Tromey <tom@tromey.com>
7286 * ser-mingw.c (struct pipe_state_destroyer): New.
7287 (pipe_state_up): New typedef.
7288 (cleanup_pipe_state): Remove.
7289 (pipe_windows_open): Use pipe_state_up. Don't release argv.
7291 2018-06-18 Tom Tromey <tom@tromey.com>
7293 * rust-lang.h (rust_yyerror): Don't declare.
7294 * rust-lang.c (rust_language_defn): Update.
7295 * rust-exp.y (yyerror): Now static.
7296 * parse.c (parse_exp_in_context_1): Update.
7297 * p-lang.h (p_yyerror): Don't declare.
7298 * p-lang.c (p_language_defn): Update.
7299 * p-exp.y (yyerror): Now static.
7300 * opencl-lang.c (opencl_language_defn): Update.
7301 * objc-lang.c (objc_language_defn): Update.
7302 * m2-lang.h (m2_yyerror): Don't declare.
7303 * m2-lang.c (m2_language_defn): Update.
7304 * m2-exp.y (yyerror): Now static.
7305 * language.h (struct language_defn) <la_error>: Remove.
7306 * language.c (unk_lang_error): Remove.
7307 (unknown_language_defn, auto_language_defn): Remove.
7308 * go-lang.h (go_yyerror): Don't declare.
7309 * go-lang.c (go_language_defn): Update.
7310 * go-exp.y (yyerror): Now static.
7311 * f-lang.h (f_yyerror): Don't declare.
7312 * f-lang.c (f_language_defn): Update.
7313 * f-exp.y (yyerror): Now static.
7314 * d-lang.h (d_yyerror): Don't declare.
7315 * d-lang.c (d_language_defn): Update.
7316 * d-exp.y (yyerror): Now static.
7317 * c-lang.h (c_yyerror): Don't declare.
7318 * c-lang.c (c_language_defn, cplus_language_defn)
7319 (asm_language_defn, minimal_language_defn): Update.
7320 * c-exp.y (yyerror): Now static.
7321 * ada-lang.h (ada_yyerror): Don't declare.
7322 * ada-lang.c (ada_language_defn): Update.
7323 * ada-exp.y (yyerror): Now static.
7325 2018-06-18 Alan Hayward <alan.hayward@arm.com>
7327 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
7328 (store_sveregs_to_thread): Likewise.
7329 (aarch64_linux_fetch_inferior_registers): Check for SVE.
7330 (aarch64_linux_store_inferior_registers): Likewise.
7331 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
7333 (aarch64_sve_regs_copy_to_regcache): Likewise.
7334 (aarch64_sve_regs_copy_from_regcache): Likewise.
7335 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
7337 (aarch64_sve_regs_copy_to_regcache): Likewise.
7338 (aarch64_sve_regs_copy_from_regcache): Likewise.
7339 (sve_context): Structure from Linux headers.
7340 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
7341 (SVE_SIG_ZREG_SIZE): Likewise.
7342 (SVE_SIG_PREG_SIZE): Likewise.
7343 (SVE_SIG_FFR_SIZE): Likewise.
7344 (SVE_SIG_REGS_OFFSET): Likewise.
7345 (SVE_SIG_ZREGS_OFFSET): Likewise.
7346 (SVE_SIG_ZREG_OFFSET): Likewise.
7347 (SVE_SIG_ZREGS_SIZE): Likewise.
7348 (SVE_SIG_PREGS_OFFSET): Likewise.
7349 (SVE_SIG_PREG_OFFSET): Likewise.
7350 (SVE_SIG_PREGS_SIZE): Likewise.
7351 (SVE_SIG_FFR_OFFSET): Likewise.
7352 (SVE_SIG_REGS_SIZE): Likewise.
7353 (SVE_SIG_CONTEXT_SIZE): Likewise.
7354 (SVE_PT_REGS_MASK): Likewise.
7355 (SVE_PT_REGS_FPSIMD): Likewise.
7356 (SVE_PT_REGS_SVE): Likewise.
7357 (SVE_PT_VL_INHERIT): Likewise.
7358 (SVE_PT_VL_ONEXEC): Likewise.
7359 (SVE_PT_REGS_OFFSET): Likewise.
7360 (SVE_PT_FPSIMD_OFFSET): Likewise.
7361 (SVE_PT_FPSIMD_SIZE): Likewise.
7362 (SVE_PT_SVE_ZREG_SIZE): Likewise.
7363 (SVE_PT_SVE_PREG_SIZE): Likewise.
7364 (SVE_PT_SVE_FFR_SIZE): Likewise.
7365 (SVE_PT_SVE_FPSR_SIZE): Likewise.
7366 (SVE_PT_SVE_FPCR_SIZE): Likewise.
7367 (__SVE_SIG_TO_PT): Likewise.
7368 (SVE_PT_SVE_OFFSET): Likewise.
7369 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
7370 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
7371 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
7372 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
7373 (SVE_PT_SVE_PREG_OFFSET): Likewise.
7374 (SVE_PT_SVE_PREGS_SIZE): Likewise.
7375 (SVE_PT_SVE_FFR_OFFSET): Likewise.
7376 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
7377 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
7378 (SVE_PT_SVE_SIZE): Likewise.
7379 (SVE_PT_SIZE): Likewise.
7380 (HAS_SVE_STATE): New define.
7382 2018-06-18 Alan Hayward <alan.hayward@arm.com>
7384 * nat/aarch64-sve-linux-sigcontext.h: New file.
7385 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
7387 (SVE_VQ_MIN): Likewise.
7388 (SVE_VQ_MAX): Likewise.
7389 (SVE_VL_MIN): Likewise.
7390 (SVE_VL_MAX): Likewise.
7391 (SVE_NUM_ZREGS): Likewise.
7392 (SVE_NUM_PREGS): Likewise.
7393 (sve_vl_valid): Likewise.
7394 (struct user_sve_header): Likewise.
7396 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7397 Richard Bunt <Richard.Bunt@arm.com>
7399 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
7400 was requested by GDB.
7402 2018-06-15 Tom de Vries <tdevries@suse.de>
7404 * MAINTAINERS (Write After Approval): Add Tom de Vries.
7406 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
7408 * gnulib/update-gnulib.sh: Print expected versions of
7411 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
7413 * arch-utils.c (default_type_align): Use type_length_units.
7414 * gdbtypes.c (type_align): Use type_length_units.
7416 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7418 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
7419 of 'define' command.
7421 2018-06-14 Tom de Vries <tdevries@suse.de>
7424 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
7425 get_no_prettyformat_print_options.
7427 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
7429 * sparc-nat.h: Include target.h.
7430 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
7431 <fetch_registers>: Remove this argument in function call.
7432 <store_registers>: Remove this argument in function call, remove
7434 <low_forget_process>: Call sparc64_forget_process instead of
7435 sparc_forget_process.
7437 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7439 * procfs.c (_initialize_procfs): Use add_inf_child_target.
7440 (procfs_target::make_corefile_notes): Adjust to new
7441 target_read_alloc return type.
7443 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7444 Stephen Roberts <stephen.roberts@arm.com>
7447 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
7448 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
7449 Move should_notify_stop local into more inner scope.
7451 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7452 Stephen Roberts <stephen.roberts@arm.com>
7455 * infrun.c (resume_1): Add call to mark_async_event_handler.
7457 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7459 * infrun.c (do_target_wait): Change old version of $pc printed.
7461 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
7463 * dwarf2read.c (read_index_from_section): Rename to...
7464 (read_gdb_index_from_section): ... this, update all callers.
7465 (dwarf2_read_index): Rename to...
7466 (dwarf2_read_gdb_index): ... this, update all callers.
7468 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
7471 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
7472 hppa_linux_nat_target::fetch_registers.
7474 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7476 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
7477 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
7478 (AARCH64_DWARF_SVE_FFR): Likewise.
7479 (AARCH64_DWARF_SVE_P0): Likewise.
7480 (AARCH64_DWARF_SVE_Z0): Likewise.
7482 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7484 * common/common-regcache.h (raw_compare): New function.
7485 * regcache.c (regcache::raw_compare): Likewise.
7486 * regcache.h (regcache::raw_compare): New declaration.
7488 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7490 * common/common-regcache.h (reg_buffer_common): New structure.
7491 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
7492 (reg_buffer::raw_supply): Likewise.
7493 (reg_buffer::raw_supply_integer): Likewise.
7494 (reg_buffer::raw_supply_zeroed): Likewise.
7495 (reg_buffer::raw_collect): Likewise.
7496 (reg_buffer::raw_collect_integer): Likewise.
7497 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
7498 (reg_buffer::raw_supply): Likewise.
7499 (reg_buffer::raw_supply_integer): Likewise.
7500 (reg_buffer::raw_supply_zeroed): Likewise.
7501 (reg_buffer::raw_collect): Likewise.
7502 (reg_buffer::raw_collect_integer): Likewise.
7504 2018-06-10 Tom Tromey <tom@tromey.com>
7506 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
7507 (class remote_state) <stop_reply_queue>: Now std::vector.
7508 (remote_state::~remote_state)
7509 (remote_target::stop_reply_queue_length): Update.
7510 (struct queue_iter_param, remove_child_of_pending_fork)
7511 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
7512 (check_pending_event_prevents_wildcard_vcont_callback)
7513 (remove_stop_reply_for_inferior)
7514 (remove_stop_reply_of_remote_state)
7515 (remote_notif_remove_once_on_match)
7516 (stop_reply_match_ptid_and_ws)
7517 (remote_kill_child_of_pending_fork): Remove.
7518 (remote_target::remove_new_fork_children)
7519 (remote_target::check_pending_events_prevent_wildcard_vcont)
7520 (remote_target::discard_pending_stop_replies)
7521 (remote_target::discard_pending_stop_replies_in_queue)
7522 (remote_target::remote_notif_remove_queued_reply)
7523 (remote_target::queued_stop_reply)
7524 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
7525 (remote_target::wait, remote_target::kill_new_fork_children)
7526 (remote_target::async): Update.
7528 2018-06-10 Tom Tromey <tom@tromey.com>
7530 * record-full.c (record_full_arch_list_cleanups): Remove.
7531 (record_full_message): Use try/catch.
7532 (record_full_wait_cleanups): Remove.
7533 (record_full_wait_1): Use try/catch.
7534 (record_full_restore): Likewise.
7536 2018-06-10 Tom Tromey <tom@tromey.com>
7538 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
7539 declare VEC. Add constructor.
7540 <in_target_beneath>: Now bool.
7541 (record_full_breakpoints): Now a std::vector, static.
7542 (record_full_sync_record_breakpoints)
7543 (record_full_init_record_breakpoints)
7544 (record_full_target::insert_breakpoint)
7545 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
7547 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7549 * dwarf2read.c (process_cu_includes): Remove struct keyword.
7550 * serial.c (serial_interface_lookup): Remove struct keyword.
7552 2018-06-10 Tom Tromey <tom@tromey.com>
7554 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
7556 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
7558 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
7560 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
7561 "beneath" as a method.
7562 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
7563 Use "beneath" as a method.
7565 2018-06-10 Tom Tromey <tom@tromey.com>
7567 * tracefile.c (struct trace_file_writer_deleter): New.
7568 <operator()>: Rename from trace_file_writer_xfree.
7569 (trace_file_writer_up): New typedef.
7570 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
7572 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7574 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
7575 <m_registers, m_register_status>: Change type to
7577 * regcache.c (reg_buffer::reg_buffer): Use new instead of
7580 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7582 * common/common-regcache.h (enum register_status): Add
7583 underlying type "signed char".
7584 * regcache.h (reg_buffer) <m_register_status>: Change type to
7586 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
7587 register_status instead of signed char.
7588 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
7589 (reg_buffer::get_register_status): Remove cast.
7590 (readable_regcache::raw_read): Remove cast.
7591 (readable_regcache::cooked_read): Remove cast.
7593 2018-06-09 Tom Tromey <tom@tromey.com>
7595 * source.c (reverse_search_command, forward_search_command): Use
7598 2018-06-09 Tom Tromey <tom@tromey.com>
7600 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
7601 (serial_ops_list): Now static, std::vector.
7602 (serial_interface_lookup, serial_add_interface): Update.
7604 2018-06-09 Tom Tromey <tom@tromey.com>
7606 * dwarf2read.c (process_cu_includes): Update.
7607 (process_full_comp_unit): Update.
7608 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
7611 2018-06-08 Paul Koning <paul_koning@dell.com>
7615 * python/python.c (do_start_initialization):
7616 Avoid call to internal Python API.
7617 (init__gdb_module): New function.
7619 2018-06-08 Gary Benson <gbenson@redhat.com>
7621 * linux-thread-db.c (valprint.h): New include.
7622 (struct check_thread_db_info): New structure.
7623 (check_thread_db_on_load, tdb_testinfo): New static globals.
7624 (check_thread_db, check_thread_db_callback): New functions.
7625 (try_thread_db_load_1): Run integrity checks if requested.
7626 (maintenance_check_libthread_db): New function.
7627 (_initialize_thread_db): Register "maint check libthread-db"
7628 and "maint set/show check-libthread-db".
7629 * NEWS: Mention the above new commands.
7631 2018-06-08 Tom Tromey <tom@tromey.com>
7633 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
7636 2018-06-08 Tom Tromey <tom@tromey.com>
7638 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
7640 2018-06-08 Tom Tromey <tom@tromey.com>
7642 * common/btrace-common.h (struct btrace_data): Add constructor,
7643 destructor, move assignment operator.
7644 <empty, clear, fini>: New methods.
7645 <format>: Initialize.
7646 (btrace_data_init, btrace_data_fini, btrace_data_clear)
7647 (btrace_data_empty): Don't declare.
7648 * common/btrace-common.c (btrace_data_init): Remove.
7649 (btrace_data::fini): Rename from btrace_data_fini.
7650 (btrace_data::empty): Rename from btrace_data_empty.
7651 (btrace_data::clear): Rename from btrace_data_clear. Return
7653 * btrace.h (make_cleanup_btrace_data): Don't declare.
7654 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
7655 (parse_xml_btrace): Update.
7656 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
7657 (maint_btrace_clear_packet_history_cmd): Update.
7659 2018-06-07 Pedro Alves <palves@redhat.com>
7661 * target.h (target_ops) <beneath>: Now a method. All references
7663 (class target_stack): New.
7664 * target.c (g_target_stack): New.
7665 (g_current_top_target): Delete.
7666 (current_top_target): Get the top target out of g_target_stack.
7667 (target_stack::push, target_stack::unpush): New.
7668 (push_target, unpush_target): Reimplement.
7669 (target_is_pushed): Reimplement in terms of g_target_stack.
7670 (target_ops::beneath, target_stack::find_beneath): New.
7672 2018-06-07 Pedro Alves <palves@redhat.com>
7674 * target.h (find_target_beneath): Delete declaration.
7675 * target.c (find_target_beneath): Delete definition.
7676 * aix-thread.c: All callers of find_target_beneath adjusted to
7677 call target_ops::beneath instead.
7678 * bsd-uthread.c: Likewise.
7679 * linux-thread-db.c: Likewise.
7680 * ravenscar-thread.c: Likewise.
7681 * sol-thread.c: Likewise.
7682 * spu-multiarch.c: Likewise.
7684 2018-06-07 Pedro Alves <palves@redhat.com>
7686 * target.h (target_ops) <beneath>: Now a method. All references
7688 (target_ops) <m_beneath>: New.
7689 * target.c (target_ops::beneath): New.
7690 * corelow.c: Adjust all references to target_ops::beneath.
7691 * linux-thread-db.c: Likewise.
7692 * make-target-delegates: Likewise.
7693 * record-btrace.c: Likewise.
7694 * record-full.c: Likewise.
7695 * remote.c: Likewise.
7696 * target.c: Likewise.
7697 * target-delegates.c: Regenerate.
7699 2018-06-07 Pedro Alves <palves@redhat.com>
7701 * target.h (target_stack): Delete.
7702 (current_top_target): Declare function.
7703 * target.c (target_stack): Delete.
7704 (g_current_top_target): New.
7705 (current_top_target): New function.
7706 * auxv.c: Use current_top_target instead of target_stack
7708 * avr-tdep.c: Likewise.
7709 * breakpoint.c: Likewise.
7710 * corefile.c: Likewise.
7711 * elfread.c: Likewise.
7713 * exceptions.c: Likewise.
7714 * frame.c: Likewise.
7715 * gdbarch-selftests.c: Likewise.
7716 * gnu-v3-abi.c: Likewise.
7717 * ia64-tdep.c: Likewise.
7718 * ia64-vms-tdep.c: Likewise.
7719 * infcall.c: Likewise.
7720 * infcmd.c: Likewise.
7721 * infrun.c: Likewise.
7722 * linespec.c: Likewise.
7723 * linux-tdep.c: Likewise.
7724 * minsyms.c: Likewise.
7725 * ppc-linux-nat.c: Likewise.
7726 * ppc-linux-tdep.c: Likewise.
7727 * procfs.c: Likewise.
7728 * regcache.c: Likewise.
7729 * remote.c: Likewise.
7730 * rs6000-tdep.c: Likewise.
7731 * s390-linux-nat.c: Likewise.
7732 * s390-tdep.c: Likewise.
7733 * solib-aix.c: Likewise.
7734 * solib-darwin.c: Likewise.
7735 * solib-dsbt.c: Likewise.
7736 * solib-spu.c: Likewise.
7737 * solib-svr4.c: Likewise.
7738 * solib-target.c: Likewise.
7739 * sparc-tdep.c: Likewise.
7740 * sparc64-tdep.c: Likewise.
7741 * spu-tdep.c: Likewise.
7742 * symfile.c: Likewise.
7743 * symtab.c: Likewise.
7744 * target-descriptions.c: Likewise.
7745 * target-memory.c: Likewise.
7746 * target.c: Likewise.
7747 * target.h: Likewise.
7748 * tracefile-tfile.c: Likewise.
7749 * tracepoint.c: Likewise.
7750 * valops.c: Likewise.
7751 * valprint.c: Likewise.
7752 * value.c: Likewise.
7753 * windows-tdep.c: Likewise.
7754 * mi/mi-main.c: Likewise.
7756 2018-06-07 Tom Tromey <tom@tromey.com>
7758 * valprint.h (build_address_symbolic): Declare.
7759 * printcmd.c (print_address_symbolic): Update.
7760 (build_address_symbolic): Change "name" and "filename" to
7762 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7764 * defs.h (build_address_symbolic): Remove declaration.
7766 2018-06-07 Alan Hayward <alan.hayward@arm.com>
7768 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
7769 (aarch64_vnv_type): Add function.
7770 (aarch64_pseudo_register_name): Add V regs for SVE.
7771 (aarch64_pseudo_register_type): Likewise.
7772 (aarch64_pseudo_register_reggroup_p): Likewise.
7773 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
7774 (aarch64_pseudo_read_value): Add V regs for SVE.
7775 (aarch64_pseudo_write_2): Use V0 offset for SVE
7776 (aarch64_pseudo_write): Add V regs for SVE.
7777 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
7779 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
7781 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
7782 (sve_vl_from_vq): Likewise.
7784 2018-06-05 Tom Tromey <tom@tromey.com>
7786 * cli/cli-cmds.c (show_version): Update.
7787 * top.c (print_gdb_version): Add "interactive" parameter.
7789 * main.c (captured_main_1): Update.
7790 * top.h (print_gdb_version): Add "interactive" parameter and a
7793 2018-06-05 David Malcolm <dmalcolm@redhat.com>
7795 * common/enum-flags.h: Add trailing semicolon to example in
7798 2018-06-05 Tom Tromey <tom@tromey.com>
7801 * NEWS: Add entry about pager.
7802 * utils.c (pagination_disabled_for_command): New global.
7803 (prompt_for_continue): Allow "c" response to prompt.
7804 (reinitialize_more_filter): Clear
7805 pagination_disabled_for_command.
7806 (fputs_maybe_filtered): Check pagination_disabled_for_command.
7808 2018-06-04 Tom Tromey <tom@tromey.com>
7810 * ada-lang.h (ada_lookup_symbol_list): Update.
7811 * ada-lang.c (resolve_subexp): Update.
7812 (symbols_are_identical_enums): Change type of syms. Remove nsyms
7814 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
7815 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
7816 results parameter to std::vector.
7817 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
7819 * ada-exp.y (block_lookup): Update.
7820 (select_possible_type_sym): Change type of syms. Remove nsyms
7822 (write_var_or_type, write_name_assoc): Update.
7824 2018-06-04 Joel Brobecker <brobecker@adacore.com>
7826 * windows-nat.c (windows_nat_target::xfer_partial): Return
7827 TARGET_XFER_E_IO if we need to delegate to the target beneath
7828 but BENEATH is NULL.
7830 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
7832 * Makefile.in (config.status): Add configure.nat as a
7835 2018-06-04 Tom Tromey <tom@tromey.com>
7837 * cp-name-parser.y (cpname_state): Add method declarations.
7838 (HANDLE_QUAL): Update.
7839 (cpname_state::d_grab, cpname_state::fill_comp)
7840 (cpname_state::make_operator, cpname_state::make_dtor)
7841 (cpname_state::make_builtin_type, cpname_state::make_name)
7842 (cpname_state::d_qualify, cpname_state::d_int_type)
7843 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
7844 (%union): Move earlier.
7846 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7848 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
7850 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7852 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
7853 (aarch64_pseudo_write_1): Likewise.
7854 (aarch64_pseudo_read_value): Use helper.
7855 (aarch64_pseudo_write): Likewise.
7857 2018-06-04 Pedro Alves <palves@redhat.com>
7859 * darwin-nat.c (darwin_ops): Delete.
7860 (darwin_attach_pid): Use get_native_target.
7862 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7864 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
7865 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
7867 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7869 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
7870 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
7871 (aarch64_gdbarch_init): Check for SVE.
7872 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
7874 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7876 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
7877 * aarch64-tdep.h (aarch64_read_description): Likewise.
7878 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7879 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7880 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
7881 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
7882 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
7884 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
7886 * value.c (value_fetch_lazy_bitfield): New.
7887 (value_fetch_lazy_memory): New.
7888 (value_fetch_lazy_register): New.
7889 (value_fetch_lazy): Factor out to smaller functions.
7891 2018-06-01 Tom Tromey <tom@tromey.com>
7893 * cp-name-parser.y (backslashable, represented): Now const.
7895 2018-06-01 Tom Tromey <tom@tromey.com>
7897 * cp-name-parser.y: Include parser-defs.h.
7898 (parser_fprintf): Remove declaration.
7900 2018-06-01 Tom Tromey <tom@tromey.com>
7902 * cp-name-parser.y: Use %pure-parser, %lex-param, and
7904 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
7905 (global_result): Remove globals.
7906 (struct cpname_state): New.
7907 (yyparse): Don't declare.
7908 (yylex, yyerror): Move declarations after %union.
7909 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
7910 (make_name): Add state parameter.
7912 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
7914 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
7916 (yylex): Add lvalp, state parameters.
7917 (yyerror): Add state parameter.
7918 (cp_demangled_name_to_comp): Update.
7920 2018-06-01 Tom Tromey <tom@tromey.com>
7922 * cp-name-parser.y (parser_fprintf): Declare.
7923 (GDB_YY_REMAP_PREFIX): Define.
7924 Include yy-remap.h. Don't redefine yy* identifiers.
7926 2018-06-01 Tom Tromey <tom@tromey.com>
7928 * python/py-type.c (typy_legacy_template_argument): Update.
7929 * cp-support.h (cp_demangled_name_to_comp): Update.
7930 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
7931 parameter to be a "std::string *".
7934 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
7936 * ada-lex.l: Include "diagnostics.h" instead of
7937 "common/diagnostics.h".
7938 * unittests/environ-selftests.c: Likewise.
7939 * common/diagnostics.h: Moved to ../include.
7941 2018-06-01 Joel Brobecker <brobecker@adacore.com>
7943 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
7944 to language_mode_manual while calling breakpoint_re_set_one.
7946 2018-06-01 Tom Tromey <tom@tromey.com>
7948 * valops.c (value_cast_structs, destructor_name_p): Update.
7949 * symtab.c (gdb_mangle_name): Update.
7950 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
7952 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
7953 (pascal_object_print_value_fields, pascal_object_print_value):
7955 * p-typeprint.c (pascal_type_print_derivation_info): Update.
7956 * linespec.c (find_methods): Update.
7957 * gdbtypes.h (type_name_no_tag): Remove.
7958 (type_name_or_error): Rename from type_name_no_tag_or_error.
7959 * gdbtypes.c (type_name_no_tag): Remove.
7960 (type_name_or_error): Rename from type_name_no_tag_or_error.
7961 (lookup_struct_elt_type, check_typedef): Update.
7962 * expprint.c (print_subexp_standard): Update.
7963 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
7964 * d-namespace.c (d_lookup_nested_symbol): Update.
7965 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
7966 (cp_print_class_member): Update.
7967 * cp-namespace.c (cp_lookup_nested_symbol): Update.
7968 * completer.c (add_struct_fields): Update.
7969 * c-typeprint.c (cp_type_print_derivation_info)
7970 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
7972 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
7973 (ada_prefer_type, ada_is_exception_sym): Update.
7975 2018-06-01 Tom Tromey <tom@tromey.com>
7977 * valops.c (enum_constant_from_type, value_namespace_elt)
7978 (value_maybe_namespace_elt): Update.
7979 * valarith.c (find_size_for_pointer_math): Update.
7980 * target-descriptions.c (make_gdb_type): Update.
7981 * symmisc.c (print_symbol): Update.
7982 * stabsread.c (define_symbol, read_type)
7983 (complain_about_struct_wipeout, add_undefined_type)
7984 (cleanup_undefined_types_1): Update.
7985 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
7986 (rust_range_type_p, val_print_struct, rust_print_struct_def)
7987 (rust_internal_print_type, rust_composite_type)
7988 (rust_evaluate_funcall, rust_evaluate_subexp)
7989 (rust_inclusive_range_type_p): Update.
7990 * python/py-type.c (typy_get_tag): Update.
7991 * p-typeprint.c (pascal_type_print_base): Update.
7992 * mdebugread.c (parse_symbol, parse_type): Update.
7993 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
7995 * guile/scm-type.c (gdbscm_type_tag): Update.
7996 * go-lang.c (sixg_string_p): Update.
7997 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
7999 * gdbtypes.h (struct main_type) <tag_name>: Remove.
8000 (TYPE_TAG_NAME): Remove.
8001 * gdbtypes.c (type_name_no_tag): Simplify.
8002 (check_typedef, check_types_equal, recursive_dump_type)
8003 (copy_type_recursive, arch_composite_type): Update.
8004 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
8005 in summary mode when needed.
8006 * eval.c (evaluate_funcall): Update.
8007 * dwarf2read.c (fixup_go_packaging, read_structure_type)
8008 (process_structure_scope, read_enumeration_type)
8009 (read_namespace_type, read_module_type, determine_prefix): Update.
8010 * cp-support.c (inspect_type): Update.
8011 * coffread.c (process_coff_symbol, decode_base_type): Update.
8012 * c-varobj.c (c_is_path_expr_parent): Update.
8013 * c-typeprint.c (c_type_print_base_struct_union): Update.
8014 (c_type_print_base_1): Update. Print struct/class/union/enum in
8015 summary when using C language.
8016 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
8017 (gen_maybe_namespace_elt): Update.
8018 * ada-lang.c (ada_type_name): Simplify.
8019 (empty_record, ada_template_to_fixed_record_type_1)
8020 (template_to_static_fixed_type)
8021 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
8023 2018-06-01 Tom Tromey <tom@tromey.com>
8025 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
8027 * c-typeprint.c (c_print_type_1): Add "language" parameter.
8028 (c_print_type): Update.
8029 (c_print_type): New overload.
8030 (c_type_print_varspec_prefix, c_type_print_args)
8031 (c_type_print_varspec_suffix, c_print_type_no_offsets)
8032 (c_type_print_base_struct_union, c_type_print_base_1)
8033 (cp_type_print_method_args): Add "language" parameter.
8034 (c_type_print_base): Update.
8035 * c-lang.h (c_print_type): Add new overload.
8037 2018-06-01 Tom Tromey <tom@tromey.com>
8039 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
8040 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
8042 2018-06-01 Alan Hayward <alan.hayward@arm.com>
8044 * aarch64-tdep.c (aarch64_sve_register_names): New const
8046 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
8047 (AARCH64_SVE_Z_REGS_NUM): New define.
8048 (AARCH64_SVE_P_REGS_NUM): Likewise.
8049 (AARCH64_SVE_NUM_REGS): Likewise.
8051 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
8053 * nat/linux-ptrace.h [__alpha__]
8054 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
8057 2018-05-31 Maciej W. Rozycki <macro@mips.com>
8059 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
8060 the endianness selected.
8061 * NEWS: Document `set endian auto' mode operation update.
8063 2018-05-31 Alan Hayward <alan.hayward@arm.com>
8065 * Makefile.in: Add new header.
8066 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
8067 (sve_vl_from_vg): Likewise.
8068 (sve_vq_from_vl): Likewise.
8069 (sve_vl_from_vq): Likewise.
8070 (sve_vq_from_vg): Likewise.
8071 (sve_vg_from_vq): Likewise.
8072 * configure.nat: Add new c file.
8073 * nat/aarch64-sve-linux-ptrace.c: New file.
8074 * nat/aarch64-sve-linux-ptrace.h: New file.
8076 2018-05-31 Alan Hayward <alan.hayward@arm.com>
8078 * aarch64-linux-nat.c (aarch64_linux_read_description):
8080 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8082 * aarch64-tdep.c (tdesc_aarch64_list): Add.
8083 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
8084 (aarch64_gdbarch_init): Add parmeter zero.
8085 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
8086 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
8087 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
8089 * doc/gdb.texinfo: Describe SVE feature
8090 * features/aarch64-sve.c: New file.
8092 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
8095 * gdbarch.sh (significant_addr_bit): Default to zero when
8096 not set by target architecture.
8097 * gdbarch.c: Re-generated.
8098 * utils.c (address_significant): Update.
8100 2018-05-30 Joel Brobecker <brobecker@adacore.com>
8102 * stack.c (func_command): Remove trailing newline in call to error.
8104 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8106 * regcache.h (regcache_raw_collect): Remove, update callers to
8107 use regcache::raw_collect.
8108 * regcache.c (regcache_raw_collect): Remove.
8110 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8112 * regcache.h (regcache_raw_supply): Remove, update callers to
8113 use detached_regcache::raw_supply.
8114 * regcache.c (regcache_raw_supply): Remove.
8116 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8118 * regcache.h (regcache_cooked_write_part): Remove, update
8119 callers to use regcache::cooked_write_part.
8120 * regcache.c (regcache_cooked_write_part): Remove.
8122 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8124 * regcache.h (regcache_cooked_read_part): Remove, update callers
8125 to use readable_regcache::cooked_read_part.
8126 * regcache.c (regcache_cooked_read_part): Remove.
8128 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8130 * regcache.h (regcache_cooked_read_value): Remove, update
8131 callers to use readable_regcache::cooked_read_value.
8132 * regcache.c (regcache_cooked_read_value): Remove.
8134 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8136 * regcache.h (regcache_cooked_write): Remove, update callers to
8137 use regcache::cooked_write.
8138 * regcache.c (regcache_cooked_write): Remove.
8140 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8142 * regcache.h (regcache_invalidate): Remove, update callers to
8143 use detached_regcache::invalidate instead.
8144 * regcache.c (regcache_invalidate): Remove.
8146 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8148 * regcache.h (regcache_raw_write_part): Remove, update callers
8149 to use regcache::raw_write_part instead.
8150 * regcache.c (regcache_raw_write_part): Remove.
8152 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8154 * regcache.h (regcache_raw_read_part): Remove, update callers to
8155 use readable_regcache::raw_read_part instead.
8156 * regcache.c (regcache_raw_read_part): Remove.
8158 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8160 * regcache.h (regcache_cooked_read): Remove, update callers to
8161 use readable_regcache::cooked_read instead.
8162 * regcache.c (regcache_cooked_read): Remove.
8164 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8166 * regcache.h (regcache_raw_write): Remove, update callers to use
8167 regcache::raw_write instead.
8168 * regcache.c (regcache_raw_write): Remove.
8170 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8172 * regcache.h (regcache_raw_read): Remove, update callers to use
8173 readable_regcache::raw_read instead.
8174 * regcache.c (regcache_raw_read): Remove.
8176 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8178 * regcache.h (regcache_raw_update): Remove, update callers to
8179 use readable_regcache::raw_update instead.
8180 * regcache.c (regcache_raw_update): Remove.
8182 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8184 * regcache.h (regcache_register_status): Remove, update callers
8185 to use reg_buffer::get_register_status directly instead.
8186 * regcache.c (regcache_register_status): Remove.
8188 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8190 * regcache.h (regcache_get_ptid): Remove, update all callers to
8191 call regcache::ptid instead.
8192 * regcache.c (regcache_get_ptid): Remove.
8194 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8196 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
8198 2018-05-30 Pedro Alves <palves@redhat.com>
8200 * common/common-exceptions.h (exception_rethrow): Use
8203 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
8205 * breakpoint.c (print_solib_event, check_status_catch_solib):
8206 Remove struct keyword in range-based for loops.
8207 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
8208 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
8210 * linespec.c (find_superclass_methods, search_minsyms_for_name):
8212 * symfile.c (addr_info_make_relative): Likewise.
8213 * thread.c (value_in_thread_stack_temporaries): Likewise.
8215 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
8218 * valops.c (value_struct_elt_for_reference): Call check_typedef on
8219 aggregate type to get its real type before accessing it.
8221 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
8223 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
8224 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
8225 * coff-pe-read.c (add_pe_forwarded_sym): Replace
8226 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
8227 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
8228 * jit.c (jit_breakpoint_re_set_internal): Likewise.
8229 * printcmd.c (info_address_command): Likewise.
8231 2018-05-29 Tom Tromey <tom@tromey.com>
8233 * windows-nat.c (handle_exception): Update fall-through comment.
8235 2018-05-29 Tom Tromey <tom@tromey.com>
8237 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
8238 (struct program_space) <added_solibs>: Now a std::vector.
8239 * breakpoint.c (print_solib_event): Update.
8240 (check_status_catch_solib): Update.
8241 * progspace.c (clear_program_space_solib_cache): Update.
8242 * solib.c (update_solib_list): Update.
8244 2018-05-29 Tom Tromey <tom@tromey.com>
8246 * python/py-type.c (typy_richcompare): Update.
8247 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
8248 * gdbtypes.h (types_deeply_equal): Return bool.
8249 (types_equal): Likewise.
8250 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
8252 (check_types_equal): Change worklist to std::vector. Return
8254 (struct type_equality_entry): Add constructor.
8255 (compare_maybe_null_strings): Return bool.
8256 (check_types_worklist): Return bool. Change worklist to
8258 (types_deeply_equal): Use std::vector.
8259 (types_equal): Return bool.
8260 (compare_maybe_null_strings): Simplify.
8262 2018-05-29 Tom Tromey <tom@tromey.com>
8264 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
8266 2018-05-29 Tom Tromey <tom@tromey.com>
8268 * objc-lang.h: Don't include cp-support.h.
8269 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
8272 2018-05-27 Tom Tromey <tom@tromey.com>
8274 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
8276 2018-05-25 Tom Tromey <tom@tromey.com>
8278 * value.c (value::location): Initialize.
8280 2018-05-25 Tom Tromey <tom@tromey.com>
8282 * dbxread.c (init_bincl_list): Remove.
8283 (bincl_list): Now a std::vector.
8284 (bincls_allocated, next_bincl): Remove.
8285 (free_bincl_list, do_free_bincl_list_cleanup)
8286 (make_cleanup_free_bincl_list): Remove.
8287 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
8289 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
8290 (struct header_file_location): Add constructor.
8291 (add_bincl_to_list): Remove.
8293 2018-05-25 Tom Tromey <tom@tromey.com>
8295 * tui/tui.c (tui_enable): Update.
8296 * mi/mi-interp.c (mi_interp::init): Update.
8297 * interps.h (class interp) <name>: New method.
8298 <m_name>: Rename from name.
8299 (~scoped_restore_interp): Update.
8300 * interps.c (interp::interp): Update.
8301 (interp_add, interp_set, interp_lookup_existing)
8302 (current_interp_named_p): Update.
8304 2018-05-25 Tom Tromey <tom@tromey.com>
8306 * interps.c (interp_name): Remove.
8307 * mi/mi-interp.c (mi_interp::init): Update.
8308 * interps.h (interp_name): Remove.
8309 (~scoped_restore_interp): Update.
8310 * tui/tui.c (tui_enable): Update.
8312 2018-05-25 Tom Tromey <tom@tromey.com>
8314 * utils.c (fputs_maybe_filtered): Update.
8315 * linespec.c (decode_line_full): Update.
8316 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
8317 (mi_print_breakpoint_for_event, mi_solib_loaded)
8318 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
8319 (mi_user_selected_context_changed): Update.
8320 * mi/mi-main.c (mi_execute_command): Update.
8321 * cli/cli-script.c (execute_control_command): Update.
8322 * python/python.c (execute_gdb_command): Update.
8323 * solib.c (info_sharedlibrary_command): Update.
8324 * interps.c (interp_ui_out): Remove.
8325 * interps.h (interp_ui_out): Remove.
8327 2018-05-25 Tom Tromey <tom@tromey.com>
8329 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
8330 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
8331 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
8333 2018-05-25 Tom Tromey <tom@tromey.com>
8335 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
8336 * interps.c (interp_exec): Use scoped_restore.
8338 2018-05-25 Tom Tromey <tom@tromey.com>
8340 * remote.c (remote_target::remote_file_get): Use
8342 (remote_target::remote_file_put): Likewise.
8344 2018-05-25 Tom Tromey <tom@tromey.com>
8346 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
8348 (get_pe_section_index, add_pe_exported_sym): Update.
8349 (read_pe_exported_syms): Use gdb::def_vector.
8351 2018-05-25 Tom Tromey <tom@tromey.com>
8353 * frame.c (remove_prev_frame): Remove.
8354 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
8356 2018-05-25 Maciej W. Rozycki <macro@mips.com>
8358 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
8360 * mips-linux-nat.c (supply_fpregset): Always call
8361 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
8362 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
8363 `mips_fill_fpregset'.
8364 * mips-linux-tdep.c (mips_supply_fpregset)
8365 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
8366 (mips_fill_fpregset_wrapper): Remove functions.
8367 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
8368 (mips_linux_fpregset): Remove variable.
8369 (mips_linux_iterate_over_regset_sections): Use
8370 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
8371 (mips_linux_o32_sigframe_init): Remove comment.
8373 2018-05-25 Pedro Alves <palves@redhat.com>
8375 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
8376 (struct readahead_cache, struct packet_reg, struct
8377 remote_arch_state, class remote_state): Move higher up in the
8379 (remote_target::m_remote_state): Now an object instead of a pointer.
8380 (remote_target::get_remote_state): Adjust.
8382 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
8384 * stack.c (select_and_print_frame): Delete.
8385 (struct function_bounds): Move struct within function.
8386 (func_command): Most content moved into new function
8387 find_frame_for_function, use new function, print result, add
8389 (find_frame_for_function): New function, now returns a result.
8391 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8393 * stack.c (iterate_over_block_arg_vars): Fix comment.
8394 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
8396 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
8400 (scoped_restore_selected_frame::scoped_restore_selected_frame):
8402 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
8404 * frame.h (class scoped_restore_selected_frame): New class.
8405 * stack.c (print_frame_local_vars): Remove catching and rethrowing
8406 of any exception, use scoped_restore_selected_frame to restore the
8409 2018-05-24 Pedro Alves <palves@redhat.com>
8411 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
8414 2018-05-23 Tom Tromey <tom@tromey.com>
8416 * complaints.c (struct complaints): Remove.
8417 (symfile_complaint_book): Remove.
8418 (series): New global.
8419 (complaint_internal): Update.
8420 (clear_complaints): Update.
8422 2018-05-23 Tom Tromey <tom@tromey.com>
8424 * complaints.c (counters): New global.
8425 (struct complain): Remove.
8426 (struct complaints) <root>: Remove.
8427 (complaint_sentinel): Remove.
8428 (symfile_complaint_book): Update.
8429 (find_complaint) Remove.
8430 (complaint_internal, clear_complaints): Update.
8432 2018-05-23 Tom Tromey <tom@tromey.com>
8434 * complaints.c (struct complain) <file, line>: Remove.
8435 (find_complaint): Remove file, line parameters.
8436 (complaint_internal): Update.
8438 2018-05-23 Tom Tromey <tom@tromey.com>
8440 * complaints.c (vcomplaint): Remove.
8441 (complaint_internal) Merge in contents of vcomplaint.
8443 2018-05-23 Tom Tromey <tom@tromey.com>
8445 * complaints.c (struct complaints) <explanation>: Remove.
8446 (symfile_explanations): Remove.
8447 (symfile_complaint_book): Update.
8448 (vcomplaint): Update.
8449 (struct explanation): Remove.
8451 2018-05-23 Tom Tromey <tom@tromey.com>
8453 * complaints.c (symfile_complaints): Remove.
8454 (complaint_internal): Remove "complaints" parameter.
8455 (clear_complaints, vcomplaint): Remove "c" parameter.
8456 (get_complaints): Remove.
8457 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
8458 (dwarf2_debug_line_missing_file_complaint)
8459 (dwarf2_debug_line_missing_end_sequence_complaint)
8460 (dwarf2_complex_location_expr_complaint)
8461 (dwarf2_const_value_length_mismatch_complaint)
8462 (dwarf2_section_buffer_overflow_complaint)
8463 (dwarf2_macro_malformed_definition_complaint)
8464 (dwarf2_invalid_attrib_class_complaint)
8465 (create_addrmap_from_index, dw2_symtab_iter_next)
8466 (dw2_expand_marked_cus)
8467 (dw2_debug_names_iterator::find_vec_in_debug_names)
8468 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
8469 (create_debug_type_hash_table, init_cutu_and_read_dies)
8470 (partial_die_parent_scope, add_partial_enumeration)
8471 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
8472 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
8473 (read_import_statement, read_file_scope, create_dwo_cu_reader)
8474 (create_cus_hash_table, create_dwp_hash_table)
8475 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8476 (dwarf2_rnglists_process, dwarf2_ranges_process)
8477 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
8478 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
8479 (handle_struct_member_die, process_structure_scope)
8480 (read_array_type, read_common_block, read_module_type)
8481 (read_tag_pointer_type, read_typedef, read_base_type)
8482 (read_subrange_type, load_partial_dies, partial_die_info::read)
8483 (partial_die_info::read, partial_die_info::read)
8484 (partial_die_info::read, read_checked_initial_length_and_offset)
8485 (dwarf2_string_attr, read_formatted_entries)
8486 (dwarf_decode_line_header)
8487 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
8488 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
8489 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
8490 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8491 (get_signatured_type, get_DW_AT_signature_type)
8492 (decode_locdesc, file_file_name, consume_improper_spaces)
8493 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
8494 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8495 (dwarf2_symbol_mark_computed, set_die_type)
8496 (read_attribute_value): Update.
8497 * stap-probe.c (handle_stap_probe, get_stap_base_address):
8499 * dbxread.c (unknown_symtype_complaint)
8500 (lbrac_mismatch_complaint, repeated_header_complaint)
8501 (set_namestring, function_outside_compilation_unit_complaint)
8502 (read_dbx_symtab, process_one_symbol): Update.
8503 * gdbtypes.c (stub_noname_complaint): Update.
8504 * windows-nat.c (handle_unload_dll): Update.
8505 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
8506 (decode_base_type): Update.
8507 * xcoffread.c (bf_notfound_complaint, ef_complaint)
8508 (eb_complaint, record_include_begin, record_include_end)
8509 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
8510 (process_xcoff_symbol, read_symbol)
8511 (function_outside_compilation_unit_complaint)
8512 (scan_xcoff_symtab): Update.
8513 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
8514 * buildsym.c (finish_block_internal, make_blockvector)
8515 (end_symtab_get_static_block, augment_type_symtab): Update.
8516 * dtrace-probe.c (dtrace_process_dof)
8517 (dtrace_static_probe_ops::get_probes): Update.
8518 * complaints.h (struct complaint): Don't declare.
8519 (symfile_complaints): Remove.
8520 (complaint_internal): Remove "complaints" parameter.
8521 (complaint): Likewise.
8522 (clear_complaints): Likewise.
8523 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8524 (reread_symbols): Update.
8525 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
8526 (dwarf2_frame_cache, decode_frame_entry): Update.
8527 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
8528 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8529 (info_selectors_command): Update.
8530 * macrotab.c (macro_include, check_for_redefinition)
8531 (macro_undef): Update.
8532 * objfiles.c (filter_overlapping_sections): Update.
8533 * stabsread.c (invalid_cpp_abbrev_complaint)
8534 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
8535 (define_symbol, error_type, read_type, rs6000_builtin_type)
8536 (stabs_method_name_from_physname, read_member_functions)
8537 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
8538 (attach_fields_to_type, complain_about_struct_wipeout)
8539 (read_range_type, read_args, common_block_start)
8540 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
8542 * mdebugread.c (index_complaint, unknown_ext_complaint)
8543 (basic_type_complaint, bad_tag_guess_complaint)
8544 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
8545 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
8546 (parse_procedure, parse_lines)
8547 (function_outside_compilation_unit_complaint)
8548 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
8549 (bad_tag_guess_complaint, reg_value_complaint): Update.
8550 * cp-support.c (demangled_name_complaint): Update.
8551 * macroscope.c (sal_macro_scope): Update.
8552 * dwarf-index-write.c (class debug_names): Update.
8554 2018-05-23 Tom Tromey <tom@tromey.com>
8556 * complaints.c (clear_complaints): Remove "noisy" parameter.
8557 * complaints.h (clear_complaints): Update.
8558 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8559 (reread_symbols): Update.
8561 2018-05-23 Tom Tromey <tom@tromey.com>
8563 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
8565 (vcomplaint, clear_complaints): Update.
8566 (symfile_explanations): Remove some messages.
8568 2018-05-23 Tom Tromey <tom@tromey.com>
8570 * complaints.c (internal_complaint): Remove.
8571 * complaints.h (internal_complaint): Remove.
8573 2018-05-22 Maciej W. Rozycki <macro@mips.com>
8575 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
8577 2018-05-22 Pedro Alves <palves@redhat.com>
8579 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
8580 (remote_fileio_badfd, remote_fileio_return_errno)
8581 (remote_fileio_return_success, remote_fileio_func_open)
8582 (remote_fileio_func_open, remote_fileio_func_close)
8583 (remote_fileio_func_read, remote_fileio_func_write)
8584 (remote_fileio_func_lseek, remote_fileio_func_rename)
8585 (remote_fileio_func_unlink, remote_fileio_func_stat)
8586 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
8587 (remote_fileio_func_isatty, remote_fileio_func_system): Add
8588 remote_target parameter.
8589 (remote_fio_func_map) <func>: Add remote_target parameter.
8590 (do_remote_fileio_request, remote_fileio_request):
8591 * remote-fileio.h (remote_fileio_request):
8592 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
8593 remote_target parameter.
8594 (remote_notif_process, handle_notification): Adjust to pass down
8596 (remote_notif_state_allocate): Add remote_target parameter. Save
8598 * remote-notif.h (struct remote_target): Forward declare.
8599 (struct notif_client) <parse, ack, can_get_pending_events>: Add
8600 remote_target parameter.
8601 (struct remote_notif_state) <remote>: New field.
8602 (remote_notif_ack, remote_notif_parse): Add remote_target
8604 (remote_notif_state_allocate, remote_notif_state_allocate): Add
8605 remote_target parameter.
8606 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
8607 (threads_listing_context, rmt_thread_action, protocol_feature)
8608 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
8609 (packet_result, struct threads_listing_context, remote_state):
8610 Move definitions and declarations higher up.
8611 (remote_target) <~remote_target>: Declare.
8612 (remote_download_command_source, remote_file_put, remote_file_get)
8613 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
8614 (remote_hostio_pread_vFile, remote_hostio_send_command)
8615 (remote_hostio_set_filesystem, remote_hostio_open)
8616 (remote_hostio_close, remote_hostio_unlink, remote_state)
8617 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
8618 (get_memory_write_packet_size, get_memory_read_packet_size)
8619 (append_pending_thread_resumptions, remote_detach_1)
8620 (append_resumption, remote_resume_with_vcont)
8621 (add_current_inferior_and_thread, wait_ns, wait_as)
8622 (process_stop_reply, remote_notice_new_inferior)
8623 (process_initial_stop_replies, remote_add_thread)
8624 (btrace_sync_conf, remote_btrace_maybe_reopen)
8625 (remove_new_fork_children, kill_new_fork_children)
8626 (discard_pending_stop_replies, stop_reply_queue_length)
8627 (check_pending_events_prevent_wildcard_vcont)
8628 (discard_pending_stop_replies_in_queue, stop_reply)
8629 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
8630 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
8631 (remote_interrupt_as, remote_interrupt_ns)
8632 (remote_get_noisy_reply, remote_query_attached)
8633 (remote_add_inferior, remote_current_thread, get_current_thread)
8634 (set_thread, set_general_thread, set_continue_thread)
8635 (set_general_process, write_ptid)
8636 (remote_unpack_thread_info_response, remote_get_threadinfo)
8637 (parse_threadlist_response, remote_get_threadlist)
8638 (remote_threadlist_iterator, remote_get_threads_with_ql)
8639 (remote_get_threads_with_qxfer)
8640 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
8641 (get_offsets, remote_check_symbols, remote_supported_packet)
8642 (remote_query_supported, remote_packet_size)
8643 (remote_serial_quit_handler, remote_detach_pid)
8644 (remote_vcont_probe, remote_resume_with_hc)
8645 (send_interrupt_sequence, interrupt_query)
8646 (remote_notif_get_pending_events, fetch_register_using_p)
8647 (send_g_packet, process_g_packet, fetch_registers_using_g)
8648 (store_register_using_P, store_registers_using_G)
8649 (set_remote_traceframe, check_binary_download)
8650 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
8651 (remote_xfer_live_readonly_partial, remote_read_bytes)
8652 (remote_send_printf, remote_flash_write, readchar)
8653 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
8654 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
8655 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
8656 (extended_remote_disable_randomization, extended_remote_run)
8657 (send_environment_packet, extended_remote_environment_support)
8658 (extended_remote_set_inferior_cwd, remote_write_qxfer)
8659 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
8660 (packet_command): Now methods of ...
8661 (remote_target): ... this class.
8662 (m_remote_state) <remote_target>: New field.
8663 (struct remote_state) <stop_reply_queue,
8664 remote_async_inferior_event_token, wait_forever_enabled_p>: New
8666 (remote_state::remote_state): Allocate stop_reply_queue.
8667 (remote_state): Delete global.
8668 (get_remote_state_raw): Delete.
8669 (remote_target::get_remote_state): Allocate m_remote_state on
8671 (get_current_remote_target): New.
8672 (remote_ops, extended_remote_ops): Delete.
8673 (wait_forever_enabled_p, remote_async_inferior_event_token):
8674 Delete, moved to struct remote_state.
8675 (remote_target::close): Delete self. Destruction bits split to
8677 (remote_target::~remote_target): ... this.
8678 (show_memory_packet_size): Adjust to use
8679 get_current_remote_target.
8680 (struct protocol_feature) <func>: Add remote_target parameter.
8681 All callers adjusted.
8682 (curr_quit_handler_target): New.
8683 (remote_serial_quit_handler): Reimplement.
8684 (remote_target::open_1): Adjust to use get_current_remote_target.
8685 Heap-allocate remote_target/extended_remote_target instances.
8686 (vcont_builder::vcont_builder): Add remote_target parameter, and
8687 save it in m_remote. All callers adjusted.
8688 (vcont_builder::m_remote): New field.
8689 (vcont_builder::restart, vcont_builder::flush)
8690 (vcont_builder::push_action): Use it.
8691 (remote_target::commit_resume): Use it.
8692 (struct queue_iter_param) <remote>: New field.
8693 (remote_target::remove_new_fork_children): Fill in 'remote' field.
8694 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
8695 (check_pending_event_prevents_wildcard_vcont_callback)
8696 (remote_target::check_pending_events_prevent_wildcard_vcont)
8697 (remote_target::discard_pending_stop_replies)
8698 (remote_target::discard_pending_stop_replies_in_queue)
8699 (remote_target::remote_notif_remove_queued_reply): Fill in
8701 (remote_notif_get_pending_events): New.
8702 (remote_target::readchar, remote_target::remote_serial_write):
8703 Save/restore curr_quit_handler_target.
8705 (kill_new_fork_children): Fill in 'remote' field.
8706 (packet_command): Use get_current_remote_target, defer to
8707 remote_target method of same name.
8708 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
8709 parameter, and save it in m_remote. All callers adjusted.
8710 (scoped_remote_fd::release): Use m_remote.
8711 (scoped_remote_fd::m_remote): New field.
8712 (remote_file_put, remote_file_get, remote_file_delete): Use
8713 get_current_remote_target, defer to remote_target method of same
8715 (remote_btrace_reset): Add remote_state paremeter. Update all
8717 (remote_async_inferior_event_handler). Pass down 'data'.
8718 (remote_new_objfile): Use get_current_remote_target.
8719 (remote_target::vcont_r_supported): New.
8720 (set_range_stepping): Use get_current_remote_target and
8721 remote_target::vcont_r_supported.
8722 (_initialize_remote): Don't allocate 'remote_state' and
8723 'stop_reply_queue' globals.
8724 * remote.h (struct remote_target): Forward declare.
8725 (getpkt, putpkt, remote_notif_get_pending_events): Add
8726 'remote_target' parameter.
8728 2018-05-22 Pedro Alves <palves@redhat.com>
8730 * remote.c (vcont_builder): Now a class. Make all data members
8732 (vcont_builder) <vcont_builder, restart, flush, push_action>:
8734 (vcont_builder_restart): Rename to ...
8735 (vcont_builder::restart): ... this.
8736 (vcont_builder_flush): Rename to ...
8737 (vcont_builder::flush): ... this.
8738 (vcont_builder_push_action): Rename to ...
8739 (vcont_builder::push_action): ... this.
8740 (remote_target::commit_resume): Adjust.
8742 2018-05-22 Pedro Alves <palves@redhat.com>
8744 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
8745 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
8746 (get_fixed_memory_packet_size): New.
8747 (get_memory_packet_size): Use it.
8748 (set_memory_packet_size): Don't override the config size with
8749 DEFAULT_MAX_MEMORY_PACKET_SIZE.
8750 (show_memory_packet_size): Use get_fixed_memory_packet_size.
8751 Don't refer to get_memory_packet_size if not connected to a remote
8752 target. Show "(default)" if configured size is 0.
8754 2018-05-22 Pedro Alves <palves@redhat.com>
8756 * remote.c (remote_target::mourn_inferior): Move
8757 discard_pending_stop_replies call here from ...
8758 (_initialize_remote): ... here.
8760 2018-05-22 Pedro Alves <palves@redhat.com>
8762 * remote.c (compare_section_command): Remove set_general_process
8765 2018-05-22 Pedro Alves <palves@redhat.com>
8767 * remote.c (struct packet_reg, struct remote_arch_state):
8768 Move higher up in the file.
8769 (remote_state) <m_arch_states>: Store remote_arch_state values
8770 instead of remote_arch_state pointers.
8771 (remote_state::get_remote_arch_state): Adjust.
8773 2018-05-22 Pedro Alves <palves@redhat.com>
8775 * remote.c: Include <unordered_map>.
8776 (remote_state): Now a class.
8777 (remote_state) <get_remote_arch_state>: Declare method.
8778 <get_remote_arch_state>: New field.
8779 (remote_arch_state) <remote_arch_state>: Declare ctor.
8780 <regs>: Now a unique_ptr.
8781 (remote_gdbarch_data_handle): Delete.
8782 (get_remote_arch_state): Delete.
8783 (remote_state::get_remote_arch_state): New.
8784 (get_remote_state): Adjust to call remote_state's
8785 get_remote_arch_state method.
8786 (init_remote_state): Delete, bits factored out to ...
8787 (remote_arch_state::remote_arch_state): ... this new method.
8788 (get_remote_packet_size, get_memory_packet_size)
8789 (process_g_packet, remote_target::fetch_registers)
8790 (remote_target::prepare_to_store, store_registers_using_G)
8791 (remote_target::store_registers, remote_target::get_trace_status):
8792 Adjust to call remote_state's method.
8793 (_initialize_remote): Remove reference to
8794 remote_gdbarch_data_handle.
8796 2018-05-22 Pedro Alves <palves@redhat.com>
8798 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
8799 pread>: New method declarations.
8800 (remote_target::open_1): Adjust.
8801 (readahead_cache_invalidate): Rename to ...
8802 (readahead_cache::invalidate): ... this, and adjust to be a class
8804 (readahead_cache_invalidate_fd): Rename to ...
8805 (readahead_cache::invalidate_fd): ... this, and adjust to be a
8807 (remote_hostio_pwrite): Adjust.
8808 (remote_hostio_pread_from_cache): Rename to ...
8809 (readahead_cache::pread): ... this, and adjust to be a class
8811 (remote_hostio_close): Adjust.
8813 2018-05-22 Pedro Alves <palves@redhat.com>
8815 * remote.c (remote_hostio_close_cleanup): Delete.
8816 (class scoped_remote_fd): New.
8817 (remote_file_put, remote_file_get): Use it.
8819 2018-05-22 Pedro Alves <palves@redhat.com>
8821 (struct vCont_action_support): Use bool and initialize all fields.
8822 (struct readahead_cache): Initialize all fields.
8823 (remote_state): Use bool and initialize all fields.
8824 (remote_state::remote_state, remote_state::~remote_state): New.
8825 (new_remote_state): Delete.
8826 (_initialize_remote): Use new to allocate remote_state.
8828 2018-05-22 Pedro Alves <palves@redhat.com>
8832 * c-exp.y: Include "c-support.h".
8833 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
8834 of tolower. Use c_ident_is_alpha to scan names.
8835 * c-lang.c: Include "c-support.h".
8836 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
8837 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
8838 * c-support.h: New file, with bits factored out from ...
8839 * cp-name-parser.y: ... this file.
8840 Include "c-support.h".
8841 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
8842 c-support.h and renamed.
8843 (symbol_end, yylex): Adjust.
8845 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8847 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
8848 parameter type to CORE_ADDR.
8849 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
8850 parameter type in declaration to CORE_ADDR.
8851 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
8852 target_auxv_search to get AT_HWCAP and use the result to get the
8854 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
8855 to CORE_ADDR. Remove the cast of the return value to unsigned
8856 long. Fix error predicate of target_auxv_search.
8857 (ppc_linux_nat_target::read_description): Change the type of the
8858 hwcap variable to CORE_ADDR.
8860 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8862 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
8863 if the size of fpscr is larger than 32 bits.
8865 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8867 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
8868 (ppc32_linux_vsxregmap): New global.
8869 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
8870 regcache_supply_regset, and regcache_collect_regset.
8871 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
8872 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
8873 (fetch_vsx_register, store_vsx_register): Remove.
8874 (fetch_vsx_registers): Add regno parameter. Get regset using
8875 ppc_linux_vsxregset. Use regset to supply registers.
8876 (store_vsx_registers): Add regno parameter. Get regset using
8877 ppc_linux_vsxregset. Use regset to collect registers.
8878 (fetch_register): Call fetch_vsx_registers instead of
8880 (store_register): Call store_vsx_registers instead of
8882 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
8883 new regno parameter.
8884 (store_ppc_registers): Call store_vsx_registers with -1 for the
8885 new regno parameter.
8886 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
8887 (ppc_collect_vsxregset): Remove.
8889 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8891 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
8893 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
8894 for vector register offset fields.
8895 (ppc64_fbsd_reg_offsets): Likewise.
8896 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8897 to vector register offset fields.
8898 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8899 to vector register offset fields.
8900 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
8901 vector register offset fields.
8902 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
8903 initializers for vector register offset fields.
8904 (rs6000_aix64_reg_offsets): Likewise.
8905 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
8906 (ppc_supply_vrregset): Remove.
8907 (ppc_collect_vrregset): Remove.
8908 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
8909 (ppc_linux_vrregset) : New function.
8910 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
8911 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
8912 (ppc32_linux_vrregset): Remove.
8913 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
8914 and use result instead of ppc32_linux_vrregset.
8915 (ppc32_linux_reg_offsets): Remove initializers for vector register
8917 (ppc64_linux_reg_offsets): Likewise.
8918 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
8919 * ppc-linux-nat.c: Include regset.h.
8920 (gdb_vrregset_t): Adjust comment to account for little-endian
8922 (supply_vrregset, fill_vrregset): Remove.
8923 (fetch_altivec_register, store_altivec_register): Remove.
8924 (fetch_altivec_registers): Add regno parameter. Get regset using
8925 ppc_linux_vrregset. Use regset to supply registers.
8926 (store_altivec_registers): Add regno parameter. Get regset using
8927 ppc_linux_vrregset. Use regset to collect registers.
8928 (fetch_register): Call fetch_altivec_registers instead of
8929 fetch_altivec_register.
8930 (store_register): Call store_altivec_registers instead of
8931 store_altivec_register.
8932 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
8933 the new regno parameter.
8934 (store_ppc_registers): Call store_altivec_registers with -1 for
8935 the new regno parameter.
8937 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8939 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
8940 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
8941 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
8942 (gdb_vrregset_t): Change array type size to
8943 PPC_LINUX_SIZEOF_VRREGSET.
8944 (gdb_vsxregset_t): Change array type size to
8945 PPC_LINUX_SIZEOF_VSXREGSET.
8946 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
8947 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
8948 PPC_LINUX_SIZEOF_VSXREGSET.
8950 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8952 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
8953 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
8955 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
8956 ppc_linux_target_wordsize with tid.
8957 (ppc_linux_nat_target::read_description): Call ppc_linux_target
8959 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
8960 (ppc64_64bit_inferior_p): Add static and inline specifiers.
8961 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
8962 tid parameter. Remove static specifier.
8963 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
8964 (ppc_linux_target_wordsize): New declaration.
8966 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8968 * arch/ppc-linux-common.c: New file.
8969 * arch/ppc-linux-common.h: New file.
8970 * arch/ppc-linux-tdesc.h: New file.
8971 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
8972 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
8973 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
8974 arch/ppc-linux-tdesc.h.
8975 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
8976 arch/ppc-linux-tdesc.h.
8977 (ppc_linux_nat_target::read_description): Remove target
8978 description matching code. Fill a ppc_linux_features struct and
8979 call ppc_linux_match_description with it. Move comment about ISA
8980 2.05 to ppc-linux-common.c.
8981 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
8982 arch/ppc-linux-tdesc.h.
8983 (ppc_linux_core_read_description): Remove target description
8984 matching code. Fill a ppc_linux_features struct and call
8985 ppc_linux_match_description with it.
8986 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
8987 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
8988 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
8989 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
8990 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
8991 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
8992 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
8993 (tdesc_powerpc_e500l): Remove.
8995 2018-05-22 Joel Brobecker <brobecker@adacore.com>
8997 * ada-lang.c (catch_assert_command): Pass empty string instead
8998 of NULL for excep_string argument.
9000 2018-05-22 Maciej W. Rozycki <macro@mips.com>
9002 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
9003 the width of the requested register exceeds the width of the
9006 2018-05-21 Tom Tromey <tom@tromey.com>
9008 * printcmd.c (output_command): Remove.
9009 (output_command_const): Rename to output_command.
9010 * valprint.h (output_command): Rename from output_command_const.
9011 * tracepoint.c (trace_dump_actions): Call output_command.
9013 2018-05-21 Tom Tromey <tom@tromey.com>
9015 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
9016 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
9017 * ada-lang.h (create_ada_exception_catchpoint): Update.
9018 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
9020 (create_excep_cond_exprs, ~ada_catchpoint)
9021 (should_stop_exception, print_one_exception)
9022 (print_mention_exception, print_recreate_exception): Update.
9023 (ada_get_next_arg): Remove.
9024 (catch_ada_exception_command_split): Use std::string. Change type
9025 of "excep_string", "cond_string".
9026 (catch_ada_exception_command): Update.
9027 (create_ada_exception_catchpoint): Change type of excep_string.
9028 (ada_exception_sal): Remove excep_string parameter.
9029 (~ada_catchpoint): Remove.
9031 2018-05-21 Tom Tromey <tom@tromey.com>
9033 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
9036 2018-05-21 Tom Tromey <tom@tromey.com>
9038 * ada-lang.c (ada_exception_message_1, ada_exception_message):
9039 Return unique_xmalloc_ptr.
9040 (print_it_exception): Update.
9042 2018-05-21 Tom Tromey <tom@tromey.com>
9044 * tracepoint.c (trace_dump_actions): Use std::string.
9046 2018-05-21 Tom Tromey <tom@tromey.com>
9048 * symfile.c (reread_symbols): Use std::string for original_name.
9050 2018-05-21 Tom Tromey <tom@tromey.com>
9052 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
9053 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
9056 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
9058 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
9060 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
9061 * objfiles.c (get_objfile_bfd_data): Allocate
9062 objfile_per_bfd_storage with obstack_new when allocating on
9065 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9067 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
9069 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
9070 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
9071 * mdebugread.c (mdebug_build_psymtabs): Likewise.
9072 (add_pending): Likewise.
9073 (parse_symbol): Likewise.
9074 (parse_partial_symbols): Likewise.
9075 (psymtab_to_symtab_1): Likewise.
9076 (new_psymtab): Likewise.
9077 (elfmdebug_build_psymtabs): Likewise.
9078 * minsyms.c (terminate_minimal_symbol_table): Likewise.
9079 * objfiles.c (get_objfile_bfd_data): Likewise.
9080 (objfile_register_static_link): Likewise.
9081 * psymtab.c (allocate_psymtab): Likewise.
9082 * stabsread.c (read_member_functions): Likewise.
9083 * xcoffread.c (xcoff_end_psymtab): Likewise.
9085 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9087 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
9088 compiler supports std::is_trivially_constructible.
9089 * common/poison.h: Include obstack.h.
9090 (IsMallocable): Define to is_trivially_constructible if the
9091 compiler supports it, define to true_type otherwise.
9095 (XOBNEWVEC): Redefine.
9096 * gdb_obstack.h (obstack_zalloc): New.
9097 (OBSTACK_ZALLOC): Redefine.
9098 (obstack_calloc): New.
9099 (OBSTACK_CALLOC): Redefine.
9101 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
9102 (gdbarch_obstack): New declaration in gdbarch.h, definition in
9104 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
9105 obstack_calloc/obstack_zalloc.
9106 (gdbarch_obstack_zalloc): Remove.
9107 * target-descriptions.c (tdesc_data_init): Use obstack_new.
9109 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9111 * stack.c (backtrace_command_1): Remove useless variable int i.
9113 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9115 * stack.c (print_frame_info): Fix comment.
9117 2018-05-18 Tom Tromey <tom@tromey.com>
9119 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
9120 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
9121 (~dwarf2_per_objfile): Update
9122 (dwarf2_get_dwz_file): Use new.
9123 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
9126 2018-05-18 Tom Tromey <tom@tromey.com>
9128 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
9130 * dwarf2read.c (struct dwp_file): Add constructor and
9132 (open_and_init_dwp_file): Return a unique_ptr.
9133 (dwarf2_per_objfile, create_dwp_hash_table)
9134 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
9135 (lookup_dwo_unit_in_dwp): Update.
9136 (open_and_init_dwp_file, get_dwp_file): Update.
9138 2018-05-18 Tom Tromey <tom@tromey.com>
9140 * dwarf2read.c (dwarf2_per_objfile): Update.
9141 (struct mapped_index): Add initializers.
9142 (dwarf2_read_index): Use new.
9143 (dw2_symtab_iter_init): Update.
9144 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
9147 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9149 * dwarf2read.c (mapped_index) <total_size>: Remove.
9151 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9153 * unittests/format_pieces-selftests.c (test_format_specifier):
9156 2018-05-18 Tom Tromey <tom@tromey.com>
9158 * c-typeprint.c (maybe_print_hole): New function.
9159 (c_print_type_struct_field_offset): Update.
9160 (c_type_print_base_struct_union): Call maybe_print_hole.
9162 2018-05-17 Keith Seitz <keiths@redhat.com>
9164 * breakpoint.c (build_bpstat_chain): New function, moved from
9166 (bpstat_stop_status): Add optional parameter, `stop_chain'.
9167 If no stop chain is passed, call build_bpstat_chain to build it.
9168 * breakpoint.h (build_bpstat_chain): Declare.
9169 (bpstat_stop_status): Move documentation here from breakpoint.c.
9170 * infrun.c (handle_signal_stop): Before eliding inlined frames,
9171 build the stop chain and pass it to skip_inline_frames.
9172 Pass this stop chain to bpstat_stop_status.
9173 * inline-frame.c: Include breakpoint.h.
9174 (stopped_by_user_bp_inline_frame): New function.
9175 (skip_inline_frames): Add parameter `stop_chain'.
9176 Move documention to inline-frame.h.
9177 If non-NULL, use stopped_by_user_bp_inline_frame to determine
9178 whether the frame should be elided.
9179 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
9180 Add moved documentation and update for new parameter.
9182 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9185 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9186 unittests/format_pieces-selftests.c.
9187 * common/format.h (format_piece) <operator==>: New.
9188 (format_pieces) <operator[]>: Remove.
9189 * common/format.c (format_pieces::format_pieces): Handle \e.
9190 * unittests/format_pieces-selftests.c: New.
9192 2018-05-17 Tom Tromey <tom@tromey.com>
9195 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
9196 (dw2_instantiate_symtab): Add skip_partial parameter.
9197 (dw2_find_last_source_symtab, dw2_map_expand_apply)
9198 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
9199 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
9200 (dw2_expand_symtabs_matching_one)
9201 (dw2_find_pc_sect_compunit_symtab)
9202 (dw2_debug_names_lookup_symbol)
9203 (dw2_debug_names_expand_symtabs_for_function): Update.
9204 (init_cutu_and_read_dies): Add skip_partial parameter.
9205 (process_psymtab_comp_unit, build_type_psymtabs_1)
9206 (process_skeletonless_type_unit, load_partial_comp_unit)
9207 (psymtab_to_symtab_1): Update.
9208 (load_full_comp_unit): Add skip_partial parameter.
9209 (process_imported_unit_die, dwarf2_read_addr_index)
9210 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
9211 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
9212 (read_signatured_type): Update.
9214 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9216 * value.c (release_value): Remove unused variable.
9217 (record_latest_value): Likewise.
9218 (access_value_history): Likewise.
9219 (preserve_values): Likewise.
9221 2018-05-17 Tom Tromey <tom@tromey.com>
9223 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
9226 2018-05-16 Maciej W. Rozycki <macro@mips.com>
9229 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
9230 Also handle registers whose width is not a multiple of
9232 (linux_nat_trad_target::store_register): Likewise.
9234 2018-05-16 Tom Tromey <tom@tromey.com>
9236 * gdbcore.h (core_bfd): Redefine.
9237 * corelow.c (core_target::close): Update.
9238 (core_target_open): Update.
9239 * progspace.h (struct program_space) <cbfd>: Now a
9242 2018-05-16 Tom Tromey <tom@tromey.com>
9245 * symfile-add-flags.h (enum symfile_add_flags)
9246 <SYMFILE_NOT_FILENAME>: New constant.
9247 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
9248 objfile name from BFD.
9249 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
9250 * minidebug.c (find_separate_debug_file_in_section): Put
9251 ".gnu_debugdata" into BFD's file name.
9253 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
9255 * regcache.c (regcache_read_ftype, regcache_write_ftype):
9258 2018-05-15 Tamar Christina <tamar.christina@arm.com>
9261 * aarch64-tdep.c (aarch64_analyze_prologue,
9262 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
9263 Indicate not interested in errors.
9265 2018-05-15 Maciej W. Rozycki <macro@mips.com>
9267 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
9268 Supply the MIPS_ZERO_REGNUM register.
9270 2018-05-15 Maciej W. Rozycki <macro@mips.com>
9272 * mips-tdep.c (mask_address_var): Make variable static.
9274 2018-05-14 Tom Tromey <tom@tromey.com>
9276 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
9278 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
9280 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
9281 FXSAVE_ADDR for the mxcsr register.
9283 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
9285 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
9287 2018-05-11 Pedro Alves <palves@redhat.com>
9289 * corelow.c (core_target) <core_target>: No longer inline.
9290 Initialize m_core_gdbarch, m_core_vec and build the section table
9292 <~core_target>: New.
9293 <core_gdbarch, get_core_register_section>: New methods.
9294 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
9295 factored out from ...
9296 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
9298 (sniff_core_bfd): Add gdbarch parameter.
9299 (core_close): Delete, merged into ...
9300 (core_target::close): ... here. Delete self.
9301 (core_close_cleanup): Delete.
9302 (core_target_open): Allocate a core_target on the heap. Use a
9303 unique_ptr instead of a cleanup. Bits moved into the core_target
9304 ctor. Adjust to use core_target methods instead of globals.
9305 (get_core_register_section): Rename to ...
9306 (core_target::get_core_register_section): ... this and adjust.
9307 (struct get_core_registers_cb_data): New.
9308 (get_core_registers_cb): Use it. Use bool.
9309 (core_target::fetch_registers, core_target::files_info)
9310 (core_target::xfer_partial, core_target::read_description)
9311 (core_target::pid_to, core_target::thread_name): Adjust to
9312 reference class fields instead of globals.
9313 * target.h (struct target_ops_deleter, target_ops_up): New.
9315 2018-05-11 Pedro Alves <palves@redhat.com>
9317 * corefile.c (core_file_command): Move to corelow.c.
9318 * corelow.c (the_core_target): Delete.
9319 (core_file_command): Moved from corefile.c. Check exec_bfd
9320 instead of the_core_target. Use target_detach instead of calling
9321 into the_core_target directly.
9322 (maybe_say_no_core_file_now): New.
9323 (core_target::detach): Use it.
9324 (_initialize_corelow): Remove references to the_core_target.
9325 * gdbcore.h (the_core_target): Delete.
9327 2018-05-11 Tom Tromey <tromey@redhat.com>
9328 Pedro Alves <palves@redhat.com>
9330 * corefile.c (core_bfd): Remove.
9331 * gdbcore.h (core_bfd): Now a macro.
9332 * progspace.h (struct program_space) <cbfd>: New field.
9334 2018-05-11 Tom Tromey <tom@tromey.com>
9336 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
9339 2018-05-10 Tom Tromey <tom@tromey.com>
9341 * configure: Rebuild.
9342 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
9344 2018-05-10 Joel Brobecker <brobecker@adacore.com>
9347 * regformats/regdat.sh: Adjust script, following the addition
9348 of the new expedite_regs parameter to init_target_desc.
9350 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
9353 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
9354 set_gdbarch_significant_addr_bit.
9355 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
9356 set_gdbarch_significant_addr_bit.
9357 * utils.c (address_significant): Update to sign extend addr.
9359 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
9361 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
9362 (xtensa_linux_init_abi): Limit tdep->num_regs by
9363 tdep->num_nopriv_regs.
9364 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
9365 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
9368 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
9370 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
9372 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9374 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
9375 (I387_MXCSR_INIT_VAL): New constant.
9376 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
9377 buffer if it was supplied by the inferior.
9378 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
9379 (i387_xsave_get_clear_bv): New function.
9380 (i387_supply_xsave): Only read x87 control registers from the
9381 xsave buffer if the feature is enabled, and the state will have
9382 been written, otherwise, provide a suitable default.
9383 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
9384 including x87 control registers. Update control registers if they
9385 have changed from the default value, and mark features as enabled
9387 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
9389 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
9391 * spu-tdep.c (info_spu_event_command): Fix output formatting.
9393 2018-05-07 Tom Tromey <tom@tromey.com>
9395 * configure: Rebuild.
9396 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
9398 2018-05-07 Tom Tromey <tom@tromey.com>
9401 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
9402 bit. Use correct value for VDIV.
9404 2018-05-04 Tom Tromey <tom@tromey.com>
9406 * configure: Rebuild.
9407 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
9409 2018-05-04 Tom Tromey <tom@tromey.com>
9411 * linux-record.c (record_linux_system_call) <case
9412 RECORD_SYS_RECVFROM>: Add "break".
9414 2018-05-04 Tom Tromey <tom@tromey.com>
9416 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
9417 Add missing "break".
9418 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
9419 Add missing "break".
9421 2018-05-04 Tom Tromey <tom@tromey.com>
9423 * rs6000-tdep.c (ppc_process_record_op4)
9424 (ppc_process_record_op63): Add fall-through comment.
9426 2018-05-04 Tom Tromey <tom@tromey.com>
9428 * i386-tdep.c (i386_process_record): Add fall-through comment.
9430 2018-05-04 Tom Tromey <tom@tromey.com>
9432 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
9435 2018-05-04 Tom Tromey <tom@tromey.com>
9437 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
9438 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
9439 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
9441 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
9443 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
9446 2018-05-04 Tom Tromey <tom@tromey.com>
9448 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
9450 2018-05-04 Tom Tromey <tom@tromey.com>
9452 * s390-tdep.c (s390_process_record): Fix fall-through comments.
9453 * xcoffread.c (scan_xcoff_symtab): Move comment later.
9454 * symfile.c (section_is_mapped): Fix fall-through comment.
9455 * stabsread.c (define_symbol, read_member_functions): Fix
9456 fall-through comment.
9457 * s390-linux-tdep.c (s390_process_record): Fix fall-through
9459 * remote.c (remote_wait_as): Fix fall-through comment.
9460 * p-exp.y (yylex): Fix fall-through comment.
9461 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
9463 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
9464 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
9465 * jv-exp.y (yylex): Fix fall-through comment.
9466 * go-exp.y (lex_one_token): Fix fall-through comment.
9467 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
9468 fall-through comment.
9469 * f-exp.y (yylex): Fix fall-through comment.
9470 * dwarf2read.c (process_die): Fix fall-through comments.
9471 * dbxread.c (process_one_symbol): Fix fall-through comment.
9472 * d-exp.y (lex_one_token): Fix fall-through comment.
9473 * cp-name-parser.y (yylex): Fix fall-through comment.
9474 * coffread.c (coff_symtab_read): Fix fall-through comment.
9475 * c-exp.y (lex_one_token): Fix fall-through comment.
9476 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
9478 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
9481 2018-05-04 Tom Tromey <tom@tromey.com>
9484 * NEWS: Mention gdb.execute change.
9485 * gdbcmd.h (execute_control_command): Don't declare.
9486 * python/python.c (execute_gdb_command): Use read_command_lines_1,
9487 execute_control_commands, execute_control_commands_to_string.
9488 * cli/cli-script.h (execute_control_commands)
9489 (execute_control_commands_to_string): Declare.
9490 (execute_control_command): Add from_tty parameter.
9491 * cli/cli-script.c (execute_control_commands)
9492 (execute_control_commands_to_string): New functions.
9493 (execute_user_command): Use execute_control_commands.
9494 (execute_control_command_1): Add "from_tty" parameter. Update.
9495 (execute_control_command): Likewise.
9497 2018-05-04 Tom Tromey <tom@tromey.com>
9500 * NEWS: Mention that breakpoint commands are writable.
9501 * python/py-breakpoint.c (bppy_set_commands): New function.
9502 (breakpoint_object_getset) <"commands">: Use it.
9504 2018-05-04 Tom Tromey <tom@tromey.com>
9506 * tracepoint.c (actions_command): Update.
9507 * mi/mi-cmd-break.c (mi_command_line_array)
9508 (mi_command_line_array_cnt, mi_command_line_array_ptr)
9509 (mi_read_next_line): Remove.
9510 (mi_cmd_break_commands): Update.
9511 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
9513 * cli/cli-script.c (get_command_line): Update.
9514 (process_next_line): Use function_view. Constify.
9515 (recurse_read_control_structure, read_command_lines)
9516 (read_command_lines_1): Change argument types to function_view.
9517 (do_define_command, document_command): Update.
9518 * breakpoint.h (check_tracepoint_command): Don't declare.
9519 * breakpoint.c (check_tracepoint_command): Remove.
9520 (commands_command_1, create_tracepoint_from_upload): Update.
9522 2018-05-04 Tom Tromey <tom@tromey.com>
9525 * cli/cli-script.h (enum command_control_type) <define_control>:
9527 * cli/cli-script.c (multi_line_command_p): Handle define_control.
9528 (build_command_line, execute_control_command_1)
9529 (process_next_line): Likewise.
9530 (do_define_command): New function, extracted from define_command.
9531 (define_command): Use it.
9533 2018-05-04 Tom Tromey <tom@tromey.com>
9535 * tracepoint.c (actions_command): Update.
9536 * cli/cli-script.h (read_command_lines): Update.
9537 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
9538 (MAX_TMPBUF): Remove define.
9539 (define_command): Use string_printf.
9540 (document_command): Likewise.
9541 * breakpoint.c (commands_command_1): Update.
9543 2018-05-04 Tom Tromey <tom@tromey.com>
9545 * top.c (execute_command): Update.
9546 * cli/cli-script.h (print_command_lines): Now varargs.
9547 * cli/cli-script.c (print_command_lines): Now varargs.
9548 (execute_control_command_1) <case while_control, case if_control>:
9551 2018-05-04 Tom Tromey <tom@tromey.com>
9553 * tracepoint.c (all_tracepoint_actions): Rename from
9554 all_tracepoint_actions_and_cleanup. Change return type.
9555 (actions_command, encode_actions_1, encode_actions)
9556 (trace_dump_actions, tdump_command): Update.
9557 * remote.c (remote_download_command_source): Update.
9558 * python/python.c (gdbpy_eval_from_control_command)
9559 (python_command, python_interactive_command): Update.
9560 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
9561 * guile/guile.c (guile_command)
9562 (gdbscm_eval_from_control_command, guile_command): Update.
9563 * compile/compile.c (compile_code_command)
9564 (compile_print_command, compile_to_object): Update.
9565 * cli/cli-script.h (struct command_lines_deleter): New.
9566 (counted_command_line): New typedef.
9567 (struct command_line): Add constructor, destructor.
9568 <body_list>: Remove.
9569 <body_list_0, body_list_1>: New members.
9570 (command_line_up): Remove typedef.
9571 (read_command_lines, read_command_lines_1, get_command_line):
9573 (copy_command_lines): Don't declare.
9574 * cli/cli-script.c (build_command_line): Use "new".
9575 (get_command_line): Return counted_command_line.
9576 (print_command_lines, execute_user_command)
9577 (execute_control_command_1, while_command, if_command): Update.
9578 (realloc_body_list): Remove.
9579 (process_next_line, recurse_read_control_structure): Update.
9580 (read_command_lines, read_command_lines_1): Return counted_command_line.
9581 (free_command_lines): Use "delete".
9582 (copy_command_lines): Remove.
9583 (define_command, document_command, show_user_1): Update.
9584 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
9585 a counted_command_line.
9586 * breakpoint.h (counted_command_line): Remove typedef.
9587 (breakpoint_set_commands): Update.
9588 * breakpoint.c (check_no_tracepoint_commands)
9589 (validate_commands_for_breakpoint): Update.
9590 (breakpoint_set_commands): Change commands to be a
9591 counted_command_line.
9592 (commands_command_1, update_dprintf_command_list)
9593 (create_tracepoint_from_upload): Update.
9595 2018-05-04 Tom Tromey <tom@tromey.com>
9597 * cli/cli-decode.h (cmd_list_element): New constructor.
9598 (~cmd_list_element): New destructor.
9599 (struct cmd_list_element): Add initializers.
9600 * cli/cli-decode.c (do_add_cmd): Use "new".
9601 (delete_cmd): Use "delete".
9603 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9604 Pedro Alves <palves@redhat.com>
9606 PR breakpoints/19806 and support for PR external/20207.
9607 * NEWS: Mention Aarch64 watchpoint improvements.
9608 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
9609 watchpoints and PR external/20207 watchpoints.
9610 * nat/aarch64-linux-hw-point.c
9611 (kernel_supports_any_contiguous_range): New.
9612 (aarch64_watchpoint_offset): New.
9613 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
9614 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
9615 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
9616 (aarch64_align_watchpoint): New parameters aligned_offset_p and
9617 next_addr_orig_p. Support PR external/20207 watchpoints.
9618 (aarch64_downgrade_regs): New.
9619 (aarch64_dr_state_insert_one_point): New parameters offset and
9621 (aarch64_dr_state_remove_one_point): Likewise.
9622 (aarch64_handle_breakpoint): Update caller.
9623 (aarch64_handle_aligned_watchpoint): Likewise.
9624 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
9626 (aarch64_linux_set_debug_regs): Remove const from state. Call
9627 aarch64_downgrade_regs.
9628 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
9629 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
9630 (DR_CONTROL_MASK): ... this.
9631 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
9632 (unsigned int aarch64_watchpoint_offset): New prototype.
9633 (aarch64_linux_set_debug_regs): Remove const from state.
9634 * utils.c (align_up, align_down): Move to ...
9635 * common/common-utils.c (align_up, align_down): ... here.
9636 * utils.h (align_up, align_down): Move to ...
9637 * common/common-utils.h (align_up, align_down): ... here.
9639 2018-05-04 Joel Brobecker <brobecker@adacore.com>
9641 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
9642 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
9643 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
9644 Re-implement to match the ABI as summarized in GCC's
9645 gcc/config/sparc/sparc.c. All callers updated.
9646 (sparc32_store_arguments): Remove assertion.
9648 2018-05-04 Tom Tromey <tom@tromey.com>
9650 * printcmd.c: Don't include tui.h.
9651 (decode_format): Use skip_spaces.
9653 2018-05-04 Tom Tromey <tom@tromey.com>
9656 * printcmd.c (last_count): New global.
9657 (x_command): Use saved count when repeating.
9659 2018-05-04 Tom Tromey <tom@tromey.com>
9661 * nto-procfs.c (do_closedir_cleanup): Remove.
9662 (procfs_pidlist): Use gdb_dir_up.
9663 * procfs.c (do_closedir_cleanup): Remove.
9664 (proc_update_threads): Use gdb_dir_up.
9665 * common/filestuff.h (struct gdb_dir_deleter): New.
9666 (gdb_dir_up): New typedef.
9668 2018-05-04 Tom Tromey <tom@tromey.com>
9670 * ada-lang.c (print_mention_exception): Use std::string.
9672 2018-05-04 Tom Tromey <tom@tromey.com>
9674 * ada-lang.c (create_excep_cond_exprs): Update.
9675 (ada_exception_catchpoint_cond_string): Use std::string.
9677 2018-05-04 Tom Tromey <tom@tromey.com>
9679 * ada-lang.c (xget_renaming_scope): Return std::string.
9680 (old_renaming_is_invisible): Update.
9682 2018-05-04 Tom Tromey <tom@tromey.com>
9684 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
9685 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
9687 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
9689 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
9691 2018-05-04 Tom Tromey <tom@tromey.com>
9693 * remote.c (remote_query_supported_append): Change type.
9694 (remote_check_symbols): Update.
9696 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
9699 * configure.ac: Prepend libpython.
9700 * python/python-config.py: Likewise.
9701 * configure: Regenerate.
9703 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
9705 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
9707 2018-05-03 Pedro Alves <palves@redhat.com>
9710 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
9711 override. Write 'true' instead of '1'.
9712 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
9715 2018-05-02 Pedro Alves <palves@redhat.com>
9717 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
9718 add_inf_child_target.
9719 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
9720 add_inf_child_target.
9721 * aix-thread.c (aix_thread_target_info): New.
9722 (aix_thread_target) <shortname, longname, doc>: Delete.
9724 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
9725 add_inf_child_target.
9726 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
9727 add_inf_child_target.
9728 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
9729 add_inf_child_target.
9730 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
9731 add_inf_child_target.
9732 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
9733 add_inf_child_target.
9734 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
9735 add_inf_child_target.
9736 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
9737 add_inf_child_target.
9738 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
9739 add_inf_child_target.
9740 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
9741 add_inf_child_target.
9742 * bfd-target.c (target_bfd_target_info): New.
9743 (target_bfd) <shortname, longname, doc>: Delete.
9745 * bsd-kvm.c (bsd_kvm_target_info): New.
9746 (bsd_kvm_target) <shortname, longname, doc>: Delete.
9748 (bsd_kvm_target::open): Rename to ...
9749 (bsd_kvm_target_open): ... this. Adjust.
9750 * bsd-uthread.c (bsd_uthread_target_info): New.
9751 (bsd_uthread_target) <shortname, longname, doc>: Delete.
9753 * corefile.c (core_file_command): Adjust.
9754 * corelow.c (core_target_info): New.
9755 (core_target) <shortname, longname, doc>: Delete.
9757 (core_target::open): Rename to ...
9758 (core_target_open): ... this. Adjust.
9759 * ctf.c (ctf_target_info): New.
9760 (ctf_target) <shortname, longname, doc>: Delete.
9762 (ctf_target::open): Rename to ...
9763 (ctf_target_open): ... this.
9764 (_initialize_ctf): Adjust.
9765 * exec.c (exec_target_info): New.
9766 (exec_target) <shortname, longname, doc>: Delete.
9768 (exec_target::open): Rename to ...
9769 (exec_target_open): ... this.
9770 * gdbcore.h (core_target_open): Declare.
9771 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
9772 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
9773 add_inf_child_target.
9774 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
9775 add_inf_child_target.
9776 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
9777 add_inf_child_target.
9778 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
9779 add_inf_child_target.
9780 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
9781 add_inf_child_target.
9782 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
9783 add_inf_child_target.
9784 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
9785 add_inf_child_target.
9786 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
9787 add_inf_child_target.
9788 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
9789 add_inf_child_target.
9790 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
9791 add_inf_child_target.
9792 * inf-child.c (inf_child_target_info): New.
9793 (inf_child_target::info): New.
9794 (inf_child_open_target): Remove 'target' parameter. Use
9795 get_native_target instead.
9796 (inf_child_target::open): Delete.
9797 (add_inf_child_target): New.
9798 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
9801 (add_inf_child_target): Declare.
9802 (inf_child_open_target): Declare.
9803 * linux-thread-db.c (thread_db_target_info): New.
9804 (thread_db_target) <shortname, longname, doc>: Delete.
9806 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
9807 add_inf_child_target.
9808 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
9809 add_inf_child_target.
9810 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
9811 add_inf_child_target.
9812 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
9813 add_inf_child_target.
9814 * make-target-delegates (print_class): Adjust.
9815 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
9816 add_inf_child_target.
9817 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
9818 add_inf_child_target.
9819 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
9820 add_inf_child_target.
9821 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
9822 add_inf_child_target.
9823 * nto-procfs.c (nto_native_target_info): New.
9824 (nto_procfs_target_native) <shortname, longname, doc>:
9827 (nto_procfs_target_info): New.
9828 (nto_procfs_target_procfs) <shortname, longname, doc>:
9831 (init_procfs_targets): Adjust.
9832 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
9833 add_inf_child_target.
9834 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
9835 add_inf_child_target.
9836 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
9837 add_inf_child_target.
9838 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
9839 add_inf_child_target.
9840 * ravenscar-thread.c (ravenscar_target_info): New.
9841 (ravenscar_thread_target) <shortname, longname, doc>:
9844 * record-btrace.c (record_btrace_target_info):
9845 (record_btrace_target) <shortname, longname, doc>: Delete.
9847 (record_btrace_target::open): Rename to ...
9848 (record_btrace_target_open): ... this. Adjust.
9849 * record-full.c (record_longname, record_doc): New.
9850 (record_full_base_target) <shortname, longname, doc>: Delete.
9852 (record_full_target_info): New.
9853 (record_full_target): <shortname>: Delete.
9855 (record_full_core_open_1, record_full_open_1): Update comments.
9856 (record_full_base_target::open): Rename to ...
9857 (record_full_open): ... this.
9858 (cmd_record_full_restore): Update.
9859 (_initialize_record_full): Update.
9860 * remote-sim.c (remote_sim_target_info): New.
9861 (gdbsim_target) <shortname, longname, doc>: Delete.
9863 (gdbsim_target::open): Rename to ...
9864 (gdbsim_target_open): ... this.
9865 (_initialize_remote_sim): Adjust.
9866 * remote.c (remote_doc): New.
9867 (remote_target_info): New.
9868 (remote_target) <shortname, longname, doc>: Delete.
9870 (extended_remote_target_info): New.
9871 (extended_remote_target) <shortname, longname, doc>: Delete.
9873 (remote_target::open_1): Make static. Adjust.
9874 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
9875 * s390-linux-nat.c (_initialize_s390_nat): Use
9876 add_inf_child_target.
9877 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
9878 add_inf_child_target.
9879 * sol-thread.c (thread_db_target_info): New.
9880 (sol_thread_target) <shortname, longname, doc>: Delete.
9882 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
9883 add_inf_child_target.
9884 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
9885 add_inf_child_target.
9886 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
9887 add_inf_child_target.
9888 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
9889 add_inf_child_target.
9890 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
9891 add_inf_child_target.
9892 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
9893 add_inf_child_target.
9894 * spu-linux-nat.c (_initialize_spu_nat): Use
9895 add_inf_child_target.
9896 * spu-multiarch.c (spu_multiarch_target_info): New.
9897 (spu_multiarch_target) <shortname, longname, doc>: Delete.
9899 * target-delegates.c: Regenerate.
9900 * target.c: Include <unordered_map>.
9901 (target_ops_p): Delete.
9902 (DEF_VEC_P(target_ops_p)): Delete.
9903 (target_factories): New.
9904 (test_target_info): New.
9905 (test_target_ops::info): New.
9906 (open_target): Adjust to use target_factories.
9907 (add_target_with_completer): Rename to ...
9908 (add_target): ... this. Change prototype. Register target_info
9909 and open callback in target_factories. Register target_info in
9910 command context instead of target_ops.
9911 (add_target): Delete old implementation.
9912 (add_deprecated_target_alias): Change prototype. Adjust.
9913 (the_native_target): New.
9914 (set_native_target, get_native_target): New.
9915 (find_default_run_target): Use the_native_target.
9916 (find_attach_target, find_run_target): Simplify.
9917 (target_ops::open): Delete.
9918 (dummy_target_info): New.
9919 (dummy_target::shortname, dummy_target::longname)
9920 (dummy_target::doc): Delete.
9921 (dummy_target::info): New.
9922 (debug_target::shortname, debug_target::longname)
9923 (debug_target::doc): Delete.
9924 (debug_target::info): New.
9925 * target.h (struct target_info): New.
9926 (target_ops::~target_ops): Add comment.
9927 (target_ops::info): New.
9928 (target_ops::shortname, target_ops::longname, target_ops::doc): No
9929 longer virtual. Implement in terms of target_info.
9930 (set_native_target, get_native_target): Declare.
9931 (target_open_ftype): New.
9932 (add_target, add_target_with_completer)
9933 (add_deprecated_target_alias): Change prototype.
9934 (test_target) <shortname, longname, doc>: Delete.
9936 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
9937 add_inf_child_target.
9938 * tracefile-tfile.c (tfile_target_info): New.
9939 (tfile_target) <shortname, longname, doc>: Delete.
9941 (tfile_target::open): Rename to ...
9942 (tfile_target_open): ... this.
9943 (_initialize_tracefile_tfile): Adjust.
9944 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
9945 add_inf_child_target.
9946 * windows-nat.c (_initialize_windows_nat): Use
9947 add_inf_child_target.
9948 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
9949 add_inf_child_target.
9951 2018-05-02 Pedro Alves <palves@redhat.com>
9953 * linux-nat.h (linux_nat_target) <low_new_thread,
9954 low_delete_thread, low_new_fork, low_forget_process,
9955 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
9956 New virtual methods.
9957 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9958 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
9959 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
9960 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9961 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
9963 * linux-fork.c (delete_fork): Adjust to call low method.
9964 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
9965 (linux_nat_new_fork, linux_nat_forget_process_hook)
9966 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
9967 (linux_nat_status_is_event):
9968 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
9969 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
9971 (sigtrap_is_event): Rename to ...
9972 (linux_nat_target::low_status_is_event): ... this.
9973 (linux_nat_set_status_is_event): Delete.
9974 (save_stop_reason, linux_nat_wait_1)
9975 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
9977 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9978 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9979 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9980 (linux_nat_set_prepare_to_resume): Delete.
9981 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
9982 low virtual methods.
9983 * amd64-linux-nat.c: Likewise.
9984 * arm-linux-nat.c: Likewise.
9985 * i386-linux-nat.c: Likewise.
9986 * ia64-linux-nat.c: Likewise.
9987 * mips-linux-nat.c: Likewise.
9988 * ppc-linux-nat.c: Likewise.
9989 * s390-linux-nat.c: Likewise.
9990 * sparc64-linux-nat.c: Likewise.
9991 * x86-linux-nat.c: Likewise.
9992 * x86-linux-nat.h: Include "nat/x86-linux.h".
9993 (x86_linux_nat_target) <low_new_fork, low_forget_process,
9994 low_prepare_to_resume, low_new_thread, low_delete_thread>:
9997 2018-05-02 Pedro Alves <palves@redhat.com>
9999 * target.h (target_ops)
10000 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10001 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
10002 stopped_by_watchpoint, have_continuable_watchpoint,
10003 stopped_data_address, watchpoint_addr_within_range,
10004 can_accel_watchpoint_condition, can_run, thread_alive,
10005 has_all_memory, has_memory, has_stack, has_registers,
10006 has_execution, can_async_p, is_async_p, supports_non_stop,
10007 always_non_stop_p, can_execute_reverse, supports_multi_process,
10008 supports_enable_disable_tracepoint,
10009 supports_disable_randomization, supports_string_tracing,
10010 supports_evaluation_of_breakpoint_conditions,
10011 can_run_breakpoint_commands, filesystem_is_local,
10012 can_download_tracepoint, get_trace_state_variable_value,
10013 set_trace_notes, get_tib_address, use_agent, can_use_agent,
10014 record_is_replaying, record_will_replay,
10015 augmented_libraries_svr4_read>: Adjust to return bool.
10016 * aarch64-linux-nat.c: All implementations adjusted.
10017 * aix-thread.c: All implementations adjusted.
10018 * arm-linux-nat.c: All implementations adjusted.
10019 * breakpoint.c: All implementations adjusted.
10020 * bsd-kvm.c: All implementations adjusted.
10021 * bsd-uthread.c: All implementations adjusted.
10022 * corelow.c: All implementations adjusted.
10023 * ctf.c: All implementations adjusted.
10024 * darwin-nat.c: All implementations adjusted.
10025 * darwin-nat.h: All implementations adjusted.
10026 * exec.c: All implementations adjusted.
10027 * fbsd-nat.c: All implementations adjusted.
10028 * fbsd-nat.h: All implementations adjusted.
10029 * gnu-nat.c: All implementations adjusted.
10030 * gnu-nat.h: All implementations adjusted.
10031 * go32-nat.c: All implementations adjusted.
10032 * ia64-linux-nat.c: All implementations adjusted.
10033 * inf-child.c: All implementations adjusted.
10034 * inf-child.h: All implementations adjusted.
10035 * inf-ptrace.c: All implementations adjusted.
10036 * inf-ptrace.h: All implementations adjusted.
10037 * linux-nat.c: All implementations adjusted.
10038 * linux-nat.h: All implementations adjusted.
10039 * mips-linux-nat.c: All implementations adjusted.
10040 * nto-procfs.c: All implementations adjusted.
10041 * ppc-linux-nat.c: All implementations adjusted.
10042 * procfs.c: All implementations adjusted.
10043 * ravenscar-thread.c: All implementations adjusted.
10044 * record-btrace.c: All implementations adjusted.
10045 * record-full.c: All implementations adjusted.
10046 * remote-sim.c: All implementations adjusted.
10047 * remote.c: All implementations adjusted.
10048 * s390-linux-nat.c: All implementations adjusted.
10049 * sol-thread.c: All implementations adjusted.
10050 * spu-multiarch.c: All implementations adjusted.
10051 * target-delegates.c: All implementations adjusted.
10052 * target.c: All implementations adjusted.
10053 * target.h: All implementations adjusted.
10054 * tracefile-tfile.c: All implementations adjusted.
10055 * tracefile.c: All implementations adjusted.
10056 * tracefile.h: All implementations adjusted.
10057 * windows-nat.c: All implementations adjusted.
10058 * x86-linux-nat.h: All implementations adjusted.
10059 * x86-nat.h: All implementations adjusted.
10061 2018-05-02 Pedro Alves <palves@redhat.com>
10063 * make-target-delegates (scan_target_h): Don't trim lines here.
10064 Replace sequences of tabs and/or whitespace with a single
10066 (top level, parsing methods): Trim each line before processing it
10069 2018-05-02 Pedro Alves <palves@redhat.com>
10070 John Baldwin <jhb@freebsd.org>
10072 * target.h (enum strata) <debug_stratum>: New.
10073 (struct target_ops) <all delegation methods>: Replace by C++
10074 virtual methods, and drop "to_" prefix. All references updated
10076 <to_shortname, to_longname, to_doc, to_data,
10077 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
10078 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
10079 virtual methods. All references updated throughout.
10080 <can_attach, supports_terminal_ours, can_create_inferior,
10081 get_thread_control_capabilities, attach_no_wait>: New
10083 <insert_breakpoint, remove_breakpoint>: Now
10084 TARGET_DEFAULT_NORETURN methods.
10085 <info_proc>: Now returns bool.
10086 <to_magic>: Delete.
10087 (OPS_MAGIC): Delete.
10088 (current_target): Delete. All references replaced by references
10090 (target_stack): ... this. New.
10091 (target_shortname, target_longname): Adjust.
10092 (target_can_run): Now a function declaration.
10093 (default_child_has_all_memory, default_child_has_memory)
10094 (default_child_has_stack, default_child_has_registers)
10095 (default_child_has_execution): Remove target_ops parameter.
10096 (complete_target_initialization): Delete.
10097 (memory_breakpoint_target): New template class.
10098 (test_target_ops): Refactor as a C++ class with virtual methods.
10099 * make-target-delegates (NAME_PART): Tighten.
10100 (POINTER_PART, CP_SYMBOL): New.
10101 (SIMPLE_RETURN_PART): Reimplement.
10102 (VEC_RETURN_PART): Expect less.
10103 (RETURN_PART, VIRTUAL_PART): New.
10104 (METHOD): Adjust to C++ virtual methods.
10105 (scan_target_h): Remove reference to C99.
10106 (dname): Output "target_ops::" prefix.
10107 (write_function_header): Adjust to output a C++ class method.
10108 (write_declaration): New.
10109 (write_delegator): Adjust to output a C++ class method.
10110 (tdname): Output "dummy_target::" prefix.
10111 (write_tdefault, write_debugmethod): Adjust to output a C++ class
10113 (tdefault_names, debug_names): Delete.
10114 (return_types, tdefaults, styles, argtypes_array): New.
10115 (top level): All methods are delegators.
10116 (print_class): New.
10117 (top level): Print dummy_target and debug_target classes.
10118 * target-delegates.c: Regenerate.
10119 * target-debug.h (target_debug_print_enum_info_proc_what)
10120 (target_debug_print_thread_control_capabilities)
10121 (target_debug_print_thread_info_p): New.
10122 * target.c (dummy_target): Delete.
10123 (the_dummy_target, the_debug_target): New.
10124 (target_stack): Now extern.
10125 (set_targetdebug): Push/unpush debug target.
10126 (default_child_has_all_memory, default_child_has_memory)
10127 (default_child_has_stack, default_child_has_registers)
10128 (default_child_has_execution): Remove target_ops parameter.
10129 (complete_target_initialization): Delete.
10130 (add_target_with_completer): No longer call
10131 complete_target_initialization.
10132 (target_supports_terminal_ours): Use regular delegation.
10133 (update_current_target): Delete.
10134 (push_target): No longer check magic number. Don't call
10135 update_current_target.
10136 (unpush_target): Don't call update_current_target.
10137 (target_is_pushed): No longer check magic number.
10138 (target_require_runnable): Skip for all stratums over
10140 (target_ops::info_proc): New.
10141 (target_info_proc): Use find_target_at and
10142 find_default_run_target.
10143 (target_supports_disable_randomization): Use regular delegation.
10144 (target_get_osdata): Use find_target_at.
10145 (target_ops::open, target_ops::close, target_ops::can_attach)
10146 (target_ops::attach, target_ops::can_create_inferior)
10147 (target_ops::create_inferior, target_ops::can_run)
10148 (target_can_run): New.
10149 (default_fileio_target): Use regular delegation.
10150 (target_ops::fileio_open, target_ops::fileio_pwrite)
10151 (target_ops::fileio_pread, target_ops::fileio_fstat)
10152 (target_ops::fileio_close, target_ops::fileio_unlink)
10153 (target_ops::fileio_readlink): New.
10154 (target_fileio_open_1, target_fileio_unlink)
10155 (target_fileio_readlink): Always call the target method. Handle
10157 (return_zero, return_zero_has_execution): Delete.
10158 (init_dummy_target): Delete.
10159 (dummy_target::dummy_target, dummy_target::shortname)
10160 (dummy_target::longname, dummy_target::doc)
10161 (debug_target::debug_target, debug_target::shortname)
10162 (debug_target::longname, debug_target::doc): New.
10163 (target_supports_delete_record): Use regular delegation.
10164 (setup_target_debug): Delete.
10165 (maintenance_print_target_stack): Skip debug_stratum.
10166 (initialize_targets): Instantiate the_dummy_target and
10168 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
10170 (target_auxv_search, fprint_target_auxv): Adjust.
10171 (info_auxv_command): Adjust to use target_stack.
10172 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
10173 * exceptions.c (print_flush): Handle a NULL target_stack.
10174 * regcache.c (target_ops_no_register): Refactor as class with
10177 * exec.c (exec_target): New class.
10178 (exec_ops): Now an exec_target.
10179 (exec_open, exec_close_1, exec_get_section_table)
10180 (exec_xfer_partial, exec_files_info, exec_has_memory)
10181 (exec_make_note_section): Refactor as exec_target methods.
10182 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
10184 (exec_target::find_memory_regions): New.
10185 (_initialize_exec): Don't call init_exec_ops.
10186 * gdbcore.h (exec_file_clear): Delete.
10188 * corefile.c (core_target): Delete.
10189 (core_file_command): Adjust.
10190 * corelow.c (core_target): New class.
10191 (the_core_target): New.
10192 (core_close): Remove target_ops parameter.
10193 (core_close_cleanup): Adjust.
10194 (core_target::close): New.
10195 (core_open, core_detach, get_core_registers, core_files_info)
10196 (core_xfer_partial, core_thread_alive, core_read_description)
10197 (core_pid_to_str, core_thread_name, core_has_memory)
10198 (core_has_stack, core_has_registers, core_info_proc): Rework as
10199 core_target methods.
10200 (ignore, core_remove_breakpoint, init_core_ops): Delete.
10201 (_initialize_corelow): Initialize the_core_target.
10202 * gdbcore.h (core_target): Delete.
10203 (the_core_target): New.
10205 * ctf.c: (ctf_target): New class.
10206 (ctf_ops): Now a ctf_target.
10207 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
10208 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
10209 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
10211 (init_ctf_ops): Delete.
10212 (_initialize_ctf): Don't call it.
10213 * tracefile-tfile.c (tfile_target): New class.
10214 (tfile_ops): Now a tfile_target.
10215 (tfile_open, tfile_close, tfile_files_info)
10216 (tfile_get_tracepoint_status, tfile_trace_find)
10217 (tfile_fetch_registers, tfile_xfer_partial)
10218 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
10219 Refactor as tfile_target methods.
10220 (tfile_xfer_partial_features): Remove target_ops parameter.
10221 (init_tfile_ops): Delete.
10222 (_initialize_tracefile_tfile): Don't call it.
10223 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
10224 (tracefile_has_stack, tracefile_has_registers)
10225 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
10226 tracefile_target methods.
10227 (init_tracefile_ops): Delete.
10228 (tracefile_target::tracefile_target): New.
10229 * tracefile.h: Include "target.h".
10230 (tracefile_target): New class.
10231 (init_tracefile_ops): Delete.
10233 * spu-multiarch.c (spu_multiarch_target): New class.
10234 (spu_ops): Now a spu_multiarch_target.
10235 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
10236 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
10237 (spu_search_memory, spu_mourn_inferior): Refactor as
10238 spu_multiarch_target methods.
10239 (init_spu_ops): Delete.
10240 (_initialize_spu_multiarch): Remove references to init_spu_ops,
10241 complete_target_initialization.
10243 * ravenscar-thread.c (ravenscar_thread_target): New class.
10244 (ravenscar_ops): Now a ravenscar_thread_target.
10245 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
10246 (ravenscar_thread_alive, ravenscar_pid_to_str)
10247 (ravenscar_fetch_registers, ravenscar_store_registers)
10248 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
10249 (ravenscar_stopped_by_hw_breakpoint)
10250 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
10251 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
10252 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
10254 (init_ravenscar_thread_ops): Delete.
10255 (_initialize_ravenscar): Remove references to
10256 init_ravenscar_thread_ops and complete_target_initialization.
10258 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
10259 (bsd_uthread_target): New class.
10260 (bsd_uthread_ops): Now a bsd_uthread_target.
10261 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
10262 (bsd_uthread_close, bsd_uthread_mourn_inferior)
10263 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
10264 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
10265 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
10266 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
10267 (bsd_uthread_target): Delete function.
10268 (_initialize_bsd_uthread): Remove reference to
10269 complete_target_initialization.
10271 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
10272 (target_bfd): ... this new class.
10273 (target_bfd_xfer_partial, target_bfd_get_section_table)
10274 (target_bfd_close): Refactor as target_bfd methods.
10275 (target_bfd::~target_bfd): New.
10276 (target_bfd_reopen): Adjust.
10277 (target_bfd::close): New.
10279 * record-btrace.c (record_btrace_target): New class.
10280 (record_btrace_ops): Now a record_btrace_target.
10281 (record_btrace_open, record_btrace_stop_recording)
10282 (record_btrace_disconnect, record_btrace_close)
10283 (record_btrace_async, record_btrace_info)
10284 (record_btrace_insn_history, record_btrace_insn_history_range)
10285 (record_btrace_insn_history_from, record_btrace_call_history)
10286 (record_btrace_call_history_range)
10287 (record_btrace_call_history_from, record_btrace_record_method)
10288 (record_btrace_is_replaying, record_btrace_will_replay)
10289 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
10290 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
10291 (record_btrace_store_registers, record_btrace_prepare_to_store)
10292 (record_btrace_to_get_unwinder)
10293 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
10294 (record_btrace_commit_resume, record_btrace_wait)
10295 (record_btrace_stop, record_btrace_can_execute_reverse)
10296 (record_btrace_stopped_by_sw_breakpoint)
10297 (record_btrace_supports_stopped_by_sw_breakpoint)
10298 (record_btrace_stopped_by_hw_breakpoint)
10299 (record_btrace_supports_stopped_by_hw_breakpoint)
10300 (record_btrace_update_thread_list, record_btrace_thread_alive)
10301 (record_btrace_goto_begin, record_btrace_goto_end)
10302 (record_btrace_goto, record_btrace_stop_replaying_all)
10303 (record_btrace_execution_direction)
10304 (record_btrace_prepare_to_generate_core)
10305 (record_btrace_done_generating_core): Refactor as
10306 record_btrace_target methods.
10307 (init_record_btrace_ops): Delete.
10308 (_initialize_record_btrace): Remove reference to
10309 init_record_btrace_ops.
10310 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
10311 the execution_direction global.
10312 (record_full_base_target, record_full_target)
10313 (record_full_core_target): New classes.
10314 (record_full_ops): Now a record_full_target.
10315 (record_full_core_ops): Now a record_full_core_target.
10316 (record_full_target::detach, record_full_target::disconnect)
10317 (record_full_core_target::disconnect)
10318 (record_full_target::mourn_inferior, record_full_target::kill):
10320 (record_full_open, record_full_close, record_full_async): Refactor
10321 as methods of the record_full_base_target class.
10322 (record_full_resume, record_full_commit_resume): Refactor
10323 as methods of the record_full_target class.
10324 (record_full_wait, record_full_stopped_by_watchpoint)
10325 (record_full_stopped_data_address)
10326 (record_full_stopped_by_sw_breakpoint)
10327 (record_full_supports_stopped_by_sw_breakpoint)
10328 (record_full_stopped_by_hw_breakpoint)
10329 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
10330 methods of the record_full_base_target class.
10331 (record_full_store_registers, record_full_xfer_partial)
10332 (record_full_insert_breakpoint, record_full_remove_breakpoint):
10333 Refactor as methods of the record_full_target class.
10334 (record_full_can_execute_reverse, record_full_get_bookmark)
10335 (record_full_goto_bookmark, record_full_execution_direction)
10336 (record_full_record_method, record_full_info, record_full_delete)
10337 (record_full_is_replaying, record_full_will_replay)
10338 (record_full_goto_begin, record_full_goto_end, record_full_goto)
10339 (record_full_stop_replaying): Refactor as methods of the
10340 record_full_base_target class.
10341 (record_full_core_resume, record_full_core_kill)
10342 (record_full_core_fetch_registers)
10343 (record_full_core_prepare_to_store)
10344 (record_full_core_store_registers, record_full_core_xfer_partial)
10345 (record_full_core_insert_breakpoint)
10346 (record_full_core_remove_breakpoint)
10347 (record_full_core_has_execution): Refactor
10348 as methods of the record_full_core_target class.
10349 (record_full_base_target::supports_delete_record): New.
10350 (init_record_full_ops): Delete.
10351 (init_record_full_core_ops): Delete.
10352 (record_full_save): Refactor as method of the
10353 record_full_base_target class.
10354 (_initialize_record_full): Remove references to
10355 init_record_full_ops and init_record_full_core_ops.
10357 * remote.c (remote_target, extended_remote_target): New classes.
10358 (remote_ops): Now a remote_target.
10359 (extended_remote_ops): Now an extended_remote_target.
10360 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
10361 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
10362 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
10363 (remote_pass_signals, remote_set_syscall_catchpoint)
10364 (remote_program_signals, )
10365 (remote_thread_always_alive): Remove target_ops parameter.
10366 (remote_thread_alive, remote_thread_name)
10367 (remote_update_thread_list, remote_threads_extra_info)
10368 (remote_static_tracepoint_marker_at)
10369 (remote_static_tracepoint_markers_by_strid)
10370 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
10371 (remote_open): Refactor as methods of remote_target.
10372 (extended_remote_open, extended_remote_detach)
10373 (extended_remote_attach, extended_remote_post_attach):
10374 (extended_remote_supports_disable_randomization)
10375 (extended_remote_create_inferior): : Refactor as method of
10376 extended_remote_target.
10377 (remote_set_permissions, remote_open_1, remote_detach)
10378 (remote_follow_fork, remote_follow_exec, remote_disconnect)
10379 (remote_resume, remote_commit_resume, remote_stop)
10380 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
10381 (remote_terminal_ours, remote_wait, remote_fetch_registers)
10382 (remote_prepare_to_store, remote_store_registers)
10383 (remote_flash_erase, remote_flash_done, remote_files_info)
10384 (remote_kill, remote_mourn, remote_insert_breakpoint)
10385 (remote_remove_breakpoint, remote_insert_watchpoint)
10386 (remote_watchpoint_addr_within_range)
10387 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
10388 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
10389 (remote_supports_stopped_by_sw_breakpoint)
10390 (remote_stopped_by_hw_breakpoint)
10391 (remote_supports_stopped_by_hw_breakpoint)
10392 (remote_stopped_by_watchpoint, remote_stopped_data_address)
10393 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
10394 (remote_verify_memory): Refactor as methods of remote_target.
10395 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
10397 (remote_xfer_partial, remote_get_memory_xfer_limit)
10398 (remote_search_memory, remote_rcmd, remote_memory_map)
10399 (remote_pid_to_str, remote_get_thread_local_address)
10400 (remote_get_tib_address, remote_read_description): Refactor as
10401 methods of remote_target.
10402 (remote_target::fileio_open, remote_target::fileio_pwrite)
10403 (remote_target::fileio_pread, remote_target::fileio_close): New.
10404 (remote_hostio_readlink, remote_hostio_fstat)
10405 (remote_filesystem_is_local, remote_can_execute_reverse)
10406 (remote_supports_non_stop, remote_supports_disable_randomization)
10407 (remote_supports_multi_process, remote_supports_cond_breakpoints)
10408 (remote_supports_enable_disable_tracepoint)
10409 (remote_supports_string_tracing)
10410 (remote_can_run_breakpoint_commands, remote_trace_init)
10411 (remote_download_tracepoint, remote_can_download_tracepoint)
10412 (remote_download_trace_state_variable, remote_enable_tracepoint)
10413 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
10414 (remote_trace_start, remote_get_trace_status)
10415 (remote_get_tracepoint_status, remote_trace_stop)
10416 (remote_trace_find, remote_get_trace_state_variable_value)
10417 (remote_save_trace_data, remote_get_raw_trace_data)
10418 (remote_set_disconnected_tracing, remote_core_of_thread)
10419 (remote_set_circular_trace_buffer, remote_traceframe_info)
10420 (remote_get_min_fast_tracepoint_insn_len)
10421 (remote_set_trace_buffer_size, remote_set_trace_notes)
10422 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
10423 (remote_disable_btrace, remote_teardown_btrace)
10424 (remote_read_btrace, remote_btrace_conf)
10425 (remote_augmented_libraries_svr4_read, remote_load)
10426 (remote_pid_to_exec_file, remote_can_do_single_step)
10427 (remote_execution_direction, remote_thread_handle_to_thread_info):
10428 Refactor as methods of remote_target.
10429 (init_remote_ops, init_extended_remote_ops): Delete.
10430 (remote_can_async_p, remote_is_async_p, remote_async)
10431 (remote_thread_events, remote_upload_tracepoints)
10432 (remote_upload_trace_state_variables): Refactor as methods of
10434 (_initialize_remote): Remove references to init_remote_ops and
10435 init_extended_remote_ops.
10437 * remote-sim.c (gdbsim_target): New class.
10438 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
10439 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
10440 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
10441 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
10442 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
10443 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
10444 Refactor as methods of gdbsim_target.
10445 (gdbsim_ops): Now a gdbsim_target.
10446 (init_gdbsim_ops): Delete.
10447 (gdbsim_cntrl_c): Adjust.
10448 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
10450 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
10451 (the_amd64_linux_nat_target): New.
10452 (amd64_linux_fetch_inferior_registers)
10453 (amd64_linux_store_inferior_registers): Refactor as methods of
10454 amd64_linux_nat_target.
10455 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
10456 * i386-linux-nat.c: Don't include "linux-nat.h".
10457 (i386_linux_nat_target): New class.
10458 (the_i386_linux_nat_target): New.
10459 (i386_linux_fetch_inferior_registers)
10460 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
10461 as methods of i386_linux_nat_target.
10462 (_initialize_i386_linux_nat): Adjust. Set linux_target.
10463 * inf-child.c (inf_child_ops): Delete.
10464 (inf_child_fetch_inferior_registers)
10465 (inf_child_store_inferior_registers): Delete.
10466 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
10467 methods of inf_child_target.
10468 (inf_child_target::supports_terminal_ours)
10469 (inf_child_target::terminal_init)
10470 (inf_child_target::terminal_inferior)
10471 (inf_child_target::terminal_ours_for_output)
10472 (inf_child_target::terminal_ours, inf_child_target::interrupt)
10473 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
10475 (inf_child_open, inf_child_disconnect, inf_child_close)
10476 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
10477 (inf_child_post_startup_inferior, inf_child_can_run)
10478 (inf_child_pid_to_exec_file): Refactor as methods of
10480 (inf_child_follow_fork): Delete.
10481 (inf_child_target::can_create_inferior)
10482 (inf_child_target::can_attach): New.
10483 (inf_child_target::has_all_memory, inf_child_target::has_memory)
10484 (inf_child_target::has_stack, inf_child_target::has_registers)
10485 (inf_child_target::has_execution): New.
10486 (inf_child_fileio_open, inf_child_fileio_pwrite)
10487 (inf_child_fileio_pread, inf_child_fileio_fstat)
10488 (inf_child_fileio_close, inf_child_fileio_unlink)
10489 (inf_child_fileio_readlink, inf_child_use_agent)
10490 (inf_child_can_use_agent): Refactor as methods of
10492 (return_zero, inf_child_target): Delete.
10493 (inf_child_target::inf_child_target): New.
10494 * inf-child.h: Include "target.h".
10495 (inf_child_target): Delete function prototype.
10496 (inf_child_target): New class.
10497 (inf_child_open_target, inf_child_mourn_inferior)
10498 (inf_child_maybe_unpush_target): Delete.
10499 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
10500 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
10501 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
10502 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
10503 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
10504 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
10505 (inf_ptrace_wait, inf_ptrace_xfer_partial)
10506 (inf_ptrace_thread_alive, inf_ptrace_files_info)
10507 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
10508 methods of inf_ptrace_target.
10509 (inf_ptrace_target): Delete function.
10510 * inf-ptrace.h: Include "inf-child.h".
10511 (inf_ptrace_target): Delete function declaration.
10512 (inf_ptrace_target): New class.
10513 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
10514 * linux-nat.c (linux_target): New.
10515 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
10516 (linux_nat_target::~linux_nat_target): New.
10517 (linux_child_post_attach, linux_child_post_startup_inferior)
10518 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
10519 (linux_child_remove_fork_catchpoint)
10520 (linux_child_insert_vfork_catchpoint)
10521 (linux_child_remove_vfork_catchpoint)
10522 (linux_child_insert_exec_catchpoint)
10523 (linux_child_remove_exec_catchpoint)
10524 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
10525 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
10526 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
10527 (linux_nat_stopped_data_address)
10528 (linux_nat_stopped_by_sw_breakpoint)
10529 (linux_nat_supports_stopped_by_sw_breakpoint)
10530 (linux_nat_stopped_by_hw_breakpoint)
10531 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
10532 (linux_nat_kill, linux_nat_mourn_inferior)
10533 (linux_nat_xfer_partial, linux_nat_thread_alive)
10534 (linux_nat_update_thread_list, linux_nat_pid_to_str)
10535 (linux_nat_thread_name, linux_child_pid_to_exec_file)
10536 (linux_child_static_tracepoint_markers_by_strid)
10537 (linux_nat_is_async_p, linux_nat_can_async_p)
10538 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
10539 (linux_nat_supports_multi_process)
10540 (linux_nat_supports_disable_randomization, linux_nat_async)
10541 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
10542 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
10543 (linux_nat_fileio_open, linux_nat_fileio_readlink)
10544 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
10545 methods of linux_nat_target.
10546 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
10547 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
10549 (check_stopped_by_watchpoint): Adjust.
10550 (linux_xfer_partial): Delete.
10551 (linux_target_install_ops, linux_target, linux_nat_add_target):
10553 (linux_nat_target::linux_nat_target): New.
10554 * linux-nat.h: Include "inf-ptrace.h".
10555 (linux_nat_target): New.
10556 (linux_target, linux_target_install_ops, linux_nat_add_target):
10557 Delete function declarations.
10558 (linux_target): Declare global.
10559 * linux-thread-db.c (thread_db_target): New.
10560 (thread_db_target::thread_db_target): New.
10561 (thread_db_ops): Delete.
10562 (the_thread_db_target): New.
10563 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
10564 (thread_db_update_thread_list, thread_db_pid_to_str)
10565 (thread_db_extra_thread_info)
10566 (thread_db_thread_handle_to_thread_info)
10567 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
10568 (thread_db_resume): Refactor as methods of thread_db_target.
10569 (init_thread_db_ops): Delete.
10570 (_initialize_thread_db): Remove reference to init_thread_db_ops.
10571 * x86-linux-nat.c: Don't include "linux-nat.h".
10572 (super_post_startup_inferior): Delete.
10573 (x86_linux_nat_target::~x86_linux_nat_target): New.
10574 (x86_linux_child_post_startup_inferior)
10575 (x86_linux_read_description, x86_linux_enable_btrace)
10576 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
10577 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
10578 methods of x86_linux_nat_target.
10579 (x86_linux_create_target): Delete. Bits folded ...
10580 (x86_linux_add_target): ... here. Now takes a linux_nat_target
10582 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
10583 (x86_linux_nat_target): New class.
10584 (x86_linux_create_target): Delete.
10585 (x86_linux_add_target): Now takes a linux_nat_target pointer.
10586 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
10587 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
10588 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
10589 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
10590 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
10592 (x86_use_watchpoints): Delete.
10593 * x86-nat.h: Include "breakpoint.h" and "target.h".
10594 (x86_use_watchpoints): Delete.
10595 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
10596 (x86_stopped_by_watchpoint, x86_stopped_data_address)
10597 (x86_insert_watchpoint, x86_remove_watchpoint)
10598 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
10599 (x86_stopped_by_hw_breakpoint): New declarations.
10600 (x86_nat_target): New template class.
10602 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
10603 (the_ppc_linux_nat_target): New.
10604 (ppc_linux_fetch_inferior_registers)
10605 (ppc_linux_can_use_hw_breakpoint)
10606 (ppc_linux_region_ok_for_hw_watchpoint)
10607 (ppc_linux_ranged_break_num_registers)
10608 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
10609 (ppc_linux_insert_mask_watchpoint)
10610 (ppc_linux_remove_mask_watchpoint)
10611 (ppc_linux_can_accel_watchpoint_condition)
10612 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
10613 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
10614 (ppc_linux_watchpoint_addr_within_range)
10615 (ppc_linux_masked_watch_num_registers)
10616 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
10617 (ppc_linux_read_description): Refactor as methods of
10618 ppc_linux_nat_target.
10619 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
10621 * procfs.c (procfs_xfer_partial): Delete forward declaration.
10622 (procfs_target): New class.
10623 (the_procfs_target): New.
10624 (procfs_target): Delete function.
10625 (procfs_auxv_parse, procfs_attach, procfs_detach)
10626 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
10627 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
10628 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
10629 (procfs_create_inferior, procfs_update_thread_list)
10630 (procfs_thread_alive, procfs_pid_to_str)
10631 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
10632 (procfs_stopped_data_address, procfs_insert_watchpoint)
10633 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
10634 (proc_find_memory_regions, procfs_info_proc)
10635 (procfs_make_note_section): Refactor as methods of procfs_target.
10636 (_initialize_procfs): Adjust.
10637 * sol-thread.c (sol_thread_target): New class.
10638 (sol_thread_ops): Now a sol_thread_target.
10639 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
10640 (sol_thread_fetch_registers, sol_thread_store_registers)
10641 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
10642 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
10643 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
10644 (init_sol_thread_ops): Delete.
10645 (_initialize_sol_thread): Adjust. Remove references to
10646 init_sol_thread_ops and complete_target_initialization.
10648 * windows-nat.c (windows_nat_target): New class.
10649 (windows_fetch_inferior_registers)
10650 (windows_store_inferior_registers, windows_resume, windows_wait)
10651 (windows_attach, windows_detach, windows_pid_to_exec_file)
10652 (windows_files_info, windows_create_inferior)
10653 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
10654 (windows_close, windows_pid_to_str, windows_xfer_partial)
10655 (windows_get_tib_address, windows_get_ada_task_ptid)
10656 (windows_thread_name, windows_thread_alive): Refactor as
10657 windows_nat_target methods.
10658 (do_initial_windows_stuff): Adjust.
10659 (windows_target): Delete function.
10660 (_initialize_windows_nat): Adjust.
10662 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
10663 (darwin_mourn_inferior, darwin_kill_inferior)
10664 (darwin_create_inferior, darwin_attach, darwin_detach)
10665 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
10666 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
10667 (darwin_supports_multi_process): Refactor as darwin_nat_target
10669 (darwin_resume_to, darwin_files_info): Delete.
10670 (_initialize_darwin_inferior): Rename to ...
10671 (_initialize_darwin_nat): ... this. Adjust to C++ification.
10672 * darwin-nat.h: Include "inf-child.h".
10673 (darwin_nat_target): New class.
10674 (darwin_complete_target): Delete.
10675 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
10676 (darwin_target): New.
10677 (i386_darwin_fetch_inferior_registers)
10678 (i386_darwin_store_inferior_registers): Refactor as methods of
10680 (darwin_complete_target): Delete, with ...
10681 (_initialize_i386_darwin_nat): ... bits factored out here.
10683 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
10684 (the_alpha_linux_nat_target): New.
10685 (alpha_linux_register_u_offset): Refactor as
10686 alpha_linux_nat_target method.
10687 (_initialize_alpha_linux_nat): Adjust.
10688 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
10689 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10690 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
10691 methods of linux_nat_trad_target.
10692 (linux_trad_target): Delete.
10693 * linux-nat-trad.h (linux_trad_target): Delete function.
10694 (linux_nat_trad_target): New class.
10695 * mips-linux-nat.c (mips_linux_nat_target): New class.
10696 (super_fetch_registers, super_store_registers, super_close):
10698 (the_mips_linux_nat_target): New.
10699 (mips64_linux_regsets_fetch_registers)
10700 (mips64_linux_regsets_store_registers)
10701 (mips64_linux_fetch_registers, mips64_linux_store_registers)
10702 (mips_linux_register_u_offset, mips_linux_read_description)
10703 (mips_linux_can_use_hw_breakpoint)
10704 (mips_linux_stopped_by_watchpoint)
10705 (mips_linux_stopped_data_address)
10706 (mips_linux_region_ok_for_hw_watchpoint)
10707 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
10708 (mips_linux_close): Refactor as methods of mips_linux_nat.
10709 (_initialize_mips_linux_nat): Adjust to C++ification.
10711 * aix-thread.c (aix_thread_target): New class.
10712 (aix_thread_ops): Now an aix_thread_target.
10713 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
10714 (aix_thread_fetch_registers, aix_thread_store_registers)
10715 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
10716 (aix_thread_thread_alive, aix_thread_pid_to_str)
10717 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
10718 Refactor as methods of aix_thread_target.
10719 (init_aix_thread_ops): Delete.
10720 (_initialize_aix_thread): Remove references to init_aix_thread_ops
10721 and complete_target_initialization.
10722 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
10723 (rs6000_nat_target): New class.
10724 (the_rs6000_nat_target): New.
10725 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
10726 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
10727 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
10728 (super_create_inferior): Delete.
10729 (_initialize_rs6000_nat): Adjust to C++ification.
10731 * arm-linux-nat.c (arm_linux_nat_target): New class.
10732 (the_arm_linux_nat_target): New.
10733 (arm_linux_fetch_inferior_registers)
10734 (arm_linux_store_inferior_registers, arm_linux_read_description)
10735 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
10736 (arm_linux_remove_hw_breakpoint)
10737 (arm_linux_region_ok_for_hw_watchpoint)
10738 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
10739 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
10740 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
10741 arm_linux_nat_target.
10742 (_initialize_arm_linux_nat): Adjust to C++ification.
10744 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
10745 (the_aarch64_linux_nat_target): New.
10746 (aarch64_linux_fetch_inferior_registers)
10747 (aarch64_linux_store_inferior_registers)
10748 (aarch64_linux_child_post_startup_inferior)
10749 (aarch64_linux_read_description)
10750 (aarch64_linux_can_use_hw_breakpoint)
10751 (aarch64_linux_insert_hw_breakpoint)
10752 (aarch64_linux_remove_hw_breakpoint)
10753 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
10754 (aarch64_linux_region_ok_for_hw_watchpoint)
10755 (aarch64_linux_stopped_data_address)
10756 (aarch64_linux_stopped_by_watchpoint)
10757 (aarch64_linux_watchpoint_addr_within_range)
10758 (aarch64_linux_can_do_single_step): Refactor as methods of
10759 aarch64_linux_nat_target.
10760 (super_post_startup_inferior): Delete.
10761 (_initialize_aarch64_linux_nat): Adjust to C++ification.
10763 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
10764 (the_hppa_linux_nat_target): New.
10765 (hppa_linux_fetch_inferior_registers)
10766 (hppa_linux_store_inferior_registers): Refactor as methods of
10767 hppa_linux_nat_target.
10768 (_initialize_hppa_linux_nat): Adjust to C++ification.
10770 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
10771 (the_ia64_linux_nat_target): New.
10772 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
10773 (ia64_linux_stopped_data_address)
10774 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
10775 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
10776 ia64_linux_nat_target methods.
10777 (super_xfer_partial): Delete.
10778 (_initialize_ia64_linux_nat): Adjust to C++ification.
10780 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
10781 (the_m32r_linux_nat_target): New.
10782 (m32r_linux_fetch_inferior_registers)
10783 (m32r_linux_store_inferior_registers): Refactor as
10784 m32r_linux_nat_target methods.
10785 (_initialize_m32r_linux_nat): Adjust to C++ification.
10787 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
10788 (the_m68k_linux_nat_target): New.
10789 (m68k_linux_fetch_inferior_registers)
10790 (m68k_linux_store_inferior_registers): Refactor as
10791 m68k_linux_nat_target methods.
10792 (_initialize_m68k_linux_nat): Adjust to C++ification.
10794 * s390-linux-nat.c (s390_linux_nat_target): New class.
10795 (the_s390_linux_nat_target): New.
10796 (s390_linux_fetch_inferior_registers)
10797 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
10798 (s390_insert_watchpoint, s390_remove_watchpoint)
10799 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
10800 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
10801 (s390_auxv_parse, s390_read_description): Refactor as methods of
10802 s390_linux_nat_target.
10803 (_initialize_s390_nat): Adjust to C++ification.
10805 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
10806 (the_sparc_linux_nat_target): New.
10807 (_initialize_sparc_linux_nat): Adjust to C++ification.
10808 * sparc-nat.c (sparc_fetch_inferior_registers)
10809 (sparc_store_inferior_registers): Remove target_ops parameter.
10810 * sparc-nat.h (sparc_fetch_inferior_registers)
10811 (sparc_store_inferior_registers): Remove target_ops parameter.
10812 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
10813 (the_sparc64_linux_nat_target): New.
10814 (_initialize_sparc64_linux_nat): Adjust to C++ification.
10816 * spu-linux-nat.c (spu_linux_nat_target): New class.
10817 (the_spu_linux_nat_target): New.
10818 (spu_child_post_startup_inferior, spu_child_post_attach)
10819 (spu_child_wait, spu_fetch_inferior_registers)
10820 (spu_store_inferior_registers, spu_xfer_partial)
10821 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
10823 (_initialize_spu_nat): Adjust to C++ification.
10825 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
10826 (the_tilegx_linux_nat_target): New.
10827 (fetch_inferior_registers, store_inferior_registers):
10828 Refactor as methods.
10829 (_initialize_tile_linux_nat): Adjust to C++ification.
10831 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
10832 (the_xtensa_linux_nat_target): New.
10833 (xtensa_linux_fetch_inferior_registers)
10834 (xtensa_linux_store_inferior_registers): Refactor as
10835 xtensa_linux_nat_target methods.
10836 (_initialize_xtensa_linux_nat): Adjust to C++ification.
10838 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
10839 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
10840 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
10841 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
10842 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
10843 (fbsd_stopped_by_sw_breakpoint)
10844 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
10845 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
10846 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
10847 (fbsd_post_startup_inferior, fbsd_post_attach)
10848 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
10849 (fbsd_set_syscall_catchpoint)
10850 (super_xfer_partial, super_resume, super_wait)
10851 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
10852 (fbsd_handle_debug_trap): Remove target_ops parameter.
10853 (fbsd_nat_add_target): Delete.
10854 * fbsd-nat.h: Include "inf-ptrace.h".
10855 (fbsd_nat_add_target): Delete.
10856 (USE_SIGTRAP_SIGINFO): Define.
10857 (fbsd_nat_target): New class.
10859 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
10860 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
10861 (amd64bsd_target): Delete.
10862 * amd64-bsd-nat.h: New file.
10863 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
10865 (amd64_fbsd_nat_target): New class.
10866 (the_amd64_fbsd_nat_target): New.
10867 (amd64fbsd_read_description): Refactor as method of
10868 amd64_fbsd_nat_target.
10869 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10870 (_initialize_amd64fbsd_nat): Adjust to C++ification.
10871 * amd64-nat.h (amd64bsd_target): Delete function declaration.
10872 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
10873 (i386bsd_store_inferior_registers): Remove target_ops parameter.
10874 (i386bsd_target): Delete.
10875 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
10876 (i386bsd_fetch_inferior_registers)
10877 (i386bsd_store_inferior_registers): Declare.
10878 (i386_bsd_nat_target): New class.
10879 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
10880 (the_i386_fbsd_nat_target): New.
10881 (i386fbsd_resume, i386fbsd_read_description): Refactor as
10882 i386_fbsd_nat_target methods.
10883 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10884 (_initialize_i386fbsd_nat): Adjust to C++ification.
10885 * x86-bsd-nat.c (super_mourn_inferior): Delete.
10886 (x86bsd_mourn_inferior, x86bsd_target): Delete.
10887 (_initialize_x86_bsd_nat): Adjust to C++ification.
10888 * x86-bsd-nat.h: Include "x86-nat.h".
10889 (x86bsd_target): Delete declaration.
10890 (x86bsd_nat_target): New class.
10892 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
10893 (the_aarch64_fbsd_nat_target): New.
10894 (aarch64_fbsd_fetch_inferior_registers)
10895 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
10896 aarch64_fbsd_nat_target.
10897 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
10898 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
10899 (the_alpha_bsd_nat_target): New.
10900 (alphabsd_fetch_inferior_registers)
10901 (alphabsd_store_inferior_registers): Refactor as
10902 alpha_bsd_nat_target methods.
10903 (_initialize_alphabsd_nat): Refactor as methods of
10904 alpha_bsd_nat_target.
10905 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
10906 (the_amd64_nbsd_nat_target): New.
10907 (_initialize_amd64nbsd_nat): Adjust to C++ification.
10908 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
10909 (the_amd64_obsd_nat_target): New.
10910 (_initialize_amd64obsd_nat): Adjust to C++ification.
10911 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
10912 (the_arm_fbsd_nat_target): New.
10913 (arm_fbsd_fetch_inferior_registers)
10914 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
10915 (_initialize_arm_fbsd_nat): Refactor as methods of
10916 arm_fbsd_nat_target.
10917 (_initialize_arm_fbsd_nat): Adjust to C++ification.
10918 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
10919 (the_arm_netbsd_nat_target): New.
10920 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
10921 arm_netbsd_nat_target.
10922 (_initialize_arm_netbsd_nat): Adjust to C++ification.
10923 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
10924 (the_hppa_nbsd_nat_target): New.
10925 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
10926 hppa_nbsd_nat_target methods.
10927 (_initialize_hppanbsd_nat): Adjust to C++ification.
10928 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
10929 (the_hppa_obsd_nat_target): New.
10930 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
10931 methods of hppa_obsd_nat_target.
10932 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
10934 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
10935 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
10937 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
10938 (_initialize_i386obsd_nat): Use add_target.
10939 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
10940 (the_m68k_bsd_nat_target): New.
10941 (m68kbsd_fetch_inferior_registers)
10942 (m68kbsd_store_inferior_registers): Refactor as methods of
10943 m68k_bsd_nat_target.
10944 (_initialize_m68kbsd_nat): Adjust to C++ification.
10945 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
10946 (the_mips_fbsd_nat_target): New.
10947 (mips_fbsd_fetch_inferior_registers)
10948 (mips_fbsd_store_inferior_registers): Refactor as methods of
10949 mips_fbsd_nat_target.
10950 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
10952 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
10953 (the_mips_nbsd_nat_target): New.
10954 (mipsnbsd_fetch_inferior_registers)
10955 (mipsnbsd_store_inferior_registers): Refactor as methods of
10956 mips_nbsd_nat_target.
10957 (_initialize_mipsnbsd_nat): Adjust to C++ification.
10958 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
10959 (the_mips64_obsd_nat_target): New.
10960 (mips64obsd_fetch_inferior_registers)
10961 (mips64obsd_store_inferior_registers): Refactor as methods of
10962 mips64_obsd_nat_target.
10963 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
10965 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
10967 * nbsd-nat.h: Include "inf-ptrace.h".
10968 (nbsd_nat_target): New class.
10969 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
10970 (obsd_wait): Refactor as methods of obsd_nat_target.
10971 (obsd_add_target): Delete.
10972 * obsd-nat.h: Include "inf-ptrace.h".
10973 (obsd_nat_target): New class.
10974 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
10975 (the_ppc_fbsd_nat_target): New.
10976 (ppcfbsd_fetch_inferior_registers)
10977 (ppcfbsd_store_inferior_registers): Refactor as methods of
10978 ppc_fbsd_nat_target.
10979 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
10981 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
10982 (the_ppc_nbsd_nat_target): New.
10983 (ppcnbsd_fetch_inferior_registers)
10984 (ppcnbsd_store_inferior_registers): Refactor as methods of
10985 ppc_nbsd_nat_target.
10986 (_initialize_ppcnbsd_nat): Adjust to C++ification.
10987 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
10988 (the_ppc_obsd_nat_target): New.
10989 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
10990 methods of ppc_obsd_nat_target.
10991 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
10993 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
10994 (the_sh_nbsd_nat_target): New.
10995 (shnbsd_fetch_inferior_registers)
10996 (shnbsd_store_inferior_registers): Refactor as methods of
10997 sh_nbsd_nat_target.
10998 (_initialize_shnbsd_nat): Adjust to C++ification.
10999 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
11000 (inf_ptrace_xfer_partial): Delete.
11001 (sparc_xfer_partial, sparc_target): Delete.
11002 * sparc-nat.h (sparc_fetch_inferior_registers)
11003 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
11004 (sparc_target): Delete function declaration.
11005 (sparc_target): New template class.
11006 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
11007 (_initialize_sparcnbsd_nat): Adjust to C++ification.
11008 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
11009 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
11011 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
11012 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
11013 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
11014 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
11016 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
11017 (the_vax_bsd_nat_target): New.
11018 (vaxbsd_fetch_inferior_registers)
11019 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
11021 (_initialize_vaxbsd_nat): Adjust to C++ification.
11023 * bsd-kvm.c (bsd_kvm_target): New class.
11024 (bsd_kvm_ops): Now a bsd_kvm_target.
11025 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
11026 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
11027 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
11029 (bsd_kvm_return_one): Delete.
11030 (bsd_kvm_add_target): Adjust to C++ification.
11032 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
11033 (nto_procfs_target_procfs): New classes.
11034 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
11035 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
11036 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
11037 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
11038 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
11039 (procfs_remove_hw_breakpoint, procfs_resume)
11040 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
11041 (procfs_kill_inferior, procfs_store_registers)
11042 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
11043 as methods of nto_procfs_target.
11044 (nto_procfs_ops): Now an nto_procfs_target_procfs.
11045 (nto_native_ops): Delete.
11046 (procfs_open, procfs_native_open): Delete.
11047 (nto_native_ops): Now an nto_procfs_target_native.
11048 (init_procfs_targets): Adjust to C++ification.
11049 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
11050 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
11051 Refactor as methods of nto_procfs_target.
11053 * go32-nat.c (go32_nat_target): New class.
11054 (the_go32_nat_target): New.
11055 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
11056 (go32_store_registers, go32_xfer_partial, go32_files_info)
11057 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
11058 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
11059 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
11060 (go32_pid_to_str): Refactor as methods of go32_nat_target.
11061 (go32_target): Delete.
11062 (_initialize_go32_nat): Adjust to C++ification.
11064 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
11065 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
11066 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
11067 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
11069 (gnu_target): Delete.
11070 * gnu-nat.h (gnu_target): Delete.
11071 (gnu_nat_target): New class.
11072 * i386-gnu-nat.c (gnu_base_target): New.
11073 (i386_gnu_nat_target): New class.
11074 (the_i386_gnu_nat_target): New.
11075 (_initialize_i386gnu_nat): Adjust to C++ification.
11077 2018-05-02 Pedro Alves <palves@redhat.com>
11079 * bfd-target.c (target_bfd_xclose): Rename to ...
11080 (target_bfd_close): ... this.
11081 (target_bfd_reopen): Adjust.
11082 * target.c (target_close): Remove references to to_xclose.
11083 * target.h (target_ops::to_xclose): Delete.
11084 (target_ops::to_close): Update comments.
11086 2018-05-02 Pedro Alves <palves@redhat.com>
11088 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
11090 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
11091 * inf-ptrace.c (inf_ptrace_register_u_offset)
11092 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11093 (inf_ptrace_store_register, inf_ptrace_store_registers)
11094 (inf_ptrace_trad_target): Move to ...
11095 * linux-nat-trad.c: ... this new file.
11096 * linux-nat-trad.h: New file.
11097 * linux-nat.c (linux_target_install_ops): Make extern.
11098 (linux_trad_target): Delete.
11099 * linux-nat.h (linux_trad_target): Delete declaration.
11100 (linux_target_install_ops): Declare.
11101 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
11104 2018-05-02 Pedro Alves <palves@redhat.com>
11106 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11107 procfs_target/add_target here.
11108 * procfs.c (procfs_target): Make static.
11109 (_initialize_procfs): Call add_target here.
11110 * procfs.h (struct target_ops): Remove forward declaration.
11111 (procfs_target): Remove declaration.
11112 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
11114 2018-05-02 Pedro Alves <palves@redhat.com>
11116 * procfs.c (procfs_stopped_by_watchpoint)
11117 (procfs_insert_watchpoint, procfs_remove_watchpoint)
11118 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
11120 (procfs_use_watchpoints): Delete, move contents...
11121 (procfs_target): ... here.
11122 * procfs.h (procfs_use_watchpoints): Delete declaration.
11123 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11124 procfs_use_watchpoints.
11125 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
11126 procfs_use_watchpoints.
11128 2018-05-02 Tom Tromey <tom@tromey.com>
11131 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
11132 and var_zuinteger_unlimited.
11133 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
11134 and PARAM_ZUINTEGER_UNLIMITED.
11135 (set_parameter_value): Handle var_zuinteger and
11136 var_zuinteger_unlimited.
11137 (add_setshow_generic): Likewise.
11138 (parmpy_init): Likewise.
11140 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
11143 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
11144 pointer is not null before dereferencing it.
11146 2018-04-30 Tom Tromey <tom@tromey.com>
11148 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
11151 2018-04-30 Tom Tromey <tom@tromey.com>
11153 * breakpoint.c (mention): Remove use of is_mi_like_p.
11154 (print_mention_ranged_breakpoint): Likewise.
11155 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
11158 2018-04-30 Tom Tromey <tom@tromey.com>
11160 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
11162 2018-04-30 Tom Tromey <tom@tromey.com>
11164 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
11165 (info_spu_event_command): Remove some uses of is_mi_like_p.
11167 2018-04-30 Tom Tromey <tom@tromey.com>
11169 * python/py-framefilter.c (py_print_single_arg)
11170 (enumerate_locals, py_print_args, py_print_frame): Remove some
11171 uses of is_mi_like_p.
11173 2018-04-30 Tom Tromey <tom@tromey.com>
11175 * ui-out.c: Update.
11176 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
11177 * ui-out.h (ui_out::is_mi_like_p): Now const.
11178 (ui_out::do_is_mi_like_p): Now const.
11179 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
11181 2018-04-30 Tom Tromey <tom@tromey.com>
11183 * varobj.c (varobj_set_visualizer): Use new_reference.
11184 * python/python.c (gdbpy_decode_line): Use new_reference.
11185 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
11188 2018-04-30 Tom Tromey <tom@tromey.com>
11190 * varobj.c (install_new_value): Use new_reference.
11191 * value.h (value_incref): Return void. Swap intro comment with
11193 * value.c (set_value_parent): Use new_reference.
11194 (value_incref): Return void. Update intro comment.
11195 (release_value): Use new_reference.
11196 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
11198 2018-04-30 Tom Tromey <tom@tromey.com>
11200 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
11201 * gdb_bfd.h (new_bfd_ref): Remove.
11202 (gdb_bfd_open): Update comment.
11203 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11204 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
11205 (gdb_bfd_fdopenr): Use new_reference.
11206 * exec.c (exec_file_attach): Use new_reference.
11208 2018-04-30 Tom Tromey <tom@tromey.com>
11210 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
11213 2018-04-30 Tom Tromey <tom@tromey.com>
11215 * jit.c (jit_read_code_entry): Use type_align.
11216 * i386-tdep.c (i386_gdbarch_init): Don't call
11217 set_gdbarch_long_long_align_bit.
11218 * gdbarch.sh: Remove long_long_align_bit.
11219 * gdbarch.c, gdbarch.h: Rebuild.
11220 * arc-tdep.c (arc_type_align): New function.
11221 (arc_gdbarch_init): Use arc_type_align. Don't call
11222 set_gdbarch_long_long_align_bit.
11224 2018-04-30 Tom Tromey <tom@tromey.com>
11226 * rust-lang.c (rust_type_alignment): Remove.
11227 (rust_composite_type): Use type_align.
11229 2018-04-30 Tom Tromey <tom@tromey.com>
11231 * NEWS: Mention Type.align.
11232 * python/py-type.c (typy_get_alignof): New function.
11233 (type_object_getset): Add "alignof".
11235 2018-04-30 Tom Tromey <tom@tromey.com>
11239 * std-operator.def (UNOP_ALIGNOF): New operator.
11240 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
11242 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
11243 * c-lang.c (c_op_print_tab): Add alignof.
11244 * c-exp.y (ALIGNOF): New token.
11245 (exp): Add "ALIGNOF" production.
11246 (ident_tokens): Add _Alignof and alignof.
11248 2018-04-30 Tom Tromey <tom@tromey.com>
11250 * i386-tdep.c (i386_type_align): New function.
11251 (i386_gdbarch_init): Update.
11252 * gdbarch.sh (type_align): New method.
11253 * gdbarch.c, gdbarch.h: Rebuild.
11254 * arch-utils.h (default_type_align): Declare.
11255 * arch-utils.c (default_type_align): New function.
11256 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
11257 (struct type) <align_log2>: New field.
11258 <instance_flags>: Now a bitfield.
11259 (TYPE_RAW_ALIGN): New macro.
11260 (type_align, type_raw_align, set_type_align): Declare.
11261 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
11263 * dwarf2read.c (quirk_rust_enum): Set type alignment.
11264 (get_alignment, maybe_set_alignment): New functions.
11265 (read_structure_type, read_enumeration_type, read_array_type)
11266 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
11267 (read_subrange_type, read_base_type): Set type alignment.
11269 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
11271 * dwarf2read.c (read_index_from_section): Use bool.
11273 2018-04-29 Fabian Groffen <grobian@gentoo.org>
11276 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
11279 2018-04-29 John Reiser <jreiser@BitWagon.com>
11282 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
11283 last step, and do it atomically.
11285 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
11287 * compile/compile-c-types.c (convert_int, convert_float):
11288 Update for C FE v1.
11290 2018-04-27 Tom Tromey <tom@tromey.com>
11293 * rust-lang.c (rust_inclusive_range_type_p): New function.
11294 (rust_range): Handle inclusive ranges.
11295 (rust_compute_range): Likewise.
11296 * rust-exp.y (struct rust_op) <inclusive>: New field.
11297 (DOTDOTEQ): New constant.
11298 (range_expr): Add "..=" productions.
11299 (operator_tokens): Add "..=" token.
11300 (ast_range): Add "inclusive" parameter.
11301 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
11303 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
11305 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
11306 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
11308 * expprint.c (print_subexp_standard): Handle new bounds values.
11309 (dump_subexp_body_standard): Likewise.
11311 2018-04-27 Tom Tromey <tom@tromey.com>
11313 * configure: Rebuild.
11314 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
11315 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
11317 (class symbol_needs_eval_context): Likewise.
11318 * dwarf2read.c (mock_mapped_index::symbol_name_count)
11319 (mock_mapped_index::symbol_name_at): Use "override". Remove
11321 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
11323 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
11324 * aarch64-tdep.c (instruction_reader::read): Use "override".
11325 (instruction_reader_test::read): Likewise.
11326 * arm-tdep.c (instruction_reader::read): Use "override".
11327 (instruction_reader_thumb::read): Likewise.
11329 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
11332 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
11333 instead of remote_send.
11334 (remote_send): Remove.
11336 2018-04-26 Pedro Alves <palves@redhat.com>
11338 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
11339 find_function_start_sal instead of find_pc_line.
11341 2018-04-26 Pedro Alves <palves@redhat.com>
11343 * breakpoint.c (set_breakpoint_location_function): Handle
11344 mst_data_gnu_ifunc.
11345 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
11346 * elfread.c (elf_symtab_read): Give data symbols with
11347 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
11348 (elf_rel_plt_read): Update comment.
11349 * linespec.c (convert_linespec_to_sals): Handle
11350 mst_data_gnu_ifunc.
11351 (minsym_found): Handle mst_data_gnu_ifunc.
11352 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
11353 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
11354 * parse.c (find_minsym_type_and_address): Handle
11355 mst_data_gnu_ifunc.
11356 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
11357 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
11358 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
11360 <mst_data_gnu_ifunc>: New enumerator.
11362 2018-04-26 Pedro Alves <palves@redhat.com>
11364 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
11365 (lookup_minimal_symbol_by_pc_section): ... this. Replace
11366 'want_trampoline' parameter by a lookup_msym_prefer parameter.
11368 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
11369 (lookup_minimal_symbol_by_pc): Adjust.
11370 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
11371 (lookup_solib_trampoline_symbol_by_pc): Adjust.
11372 * minsyms.h (lookup_msym_prefer): New enum.
11373 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11374 parameter by a lookup_msym_prefer parameter.
11376 2018-04-26 Pedro Alves <palves@redhat.com>
11378 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
11379 ends in "@plt" instead of looking at the symbol's section.
11381 2018-04-26 Pedro Alves <palves@redhat.com>
11383 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
11385 (find_pc_partial_function_gnu_ifunc): Rename to ...
11386 (find_pc_partial_function): ... this, and remove references to
11388 (find_pc_partial_function): Delete old implementation.
11389 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
11391 2018-04-26 Pedro Alves <palves@redhat.com>
11393 * linespec.c (struct bound_minimal_symbol_search_key): New.
11394 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
11395 skip first line if we found a GNU ifunc minimal symbol by name.
11396 (compare_msymbols): Change parameters to work with a destructured
11398 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
11401 2018-04-26 Pedro Alves <palves@redhat.com>
11403 * breakpoint.c (set_breakpoint_location_function): Don't resolve
11404 ifunc targets here. Instead, if we have an ifunc minsym, use its
11406 (add_location_to_breakpoint): Store the minsym and the objfile in
11407 the breakpoint location.
11408 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
11409 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
11410 Record the minsym in the sal.
11411 * symtab.h (symtab_and_line) <msymbol>: New field.
11413 2018-04-26 Pedro Alves <palves@redhat.com>
11415 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
11416 unless we actually resolved the ifunc.
11418 2018-04-26 Pedro Alves <palves@redhat.com>
11420 * c-exp.y (variable production): Prefer ifunc minsyms over
11421 regular function symbols.
11422 * symtab.c (find_gnu_ifunc): New function.
11423 * minsyms.h (lookup_msym_prefer): New enum.
11424 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11425 parameter by a lookup_msym_prefer parameter.
11426 * symtab.h (find_gnu_ifunc): New declaration.
11428 2018-04-26 Pedro Alves <palves@redhat.com>
11430 * blockframe.c (find_gnu_ifunc_target_type): New function.
11431 (find_function_type): New.
11432 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
11433 return a value with a memory address.
11434 (eval_call): For calls to GNU ifunc functions, try to find the
11435 type of the target function from the type that the resolver
11437 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
11439 * infcall.c (find_function_return_type): Delete.
11440 (find_function_addr): Add 'function_type' parameter. For calls to
11441 GNU ifunc functions, try to find the type of the target function
11442 from the type that the resolver returns, and return it via
11444 (call_function_by_hand_dummy): Adjust to use the function type
11445 returned by find_function_addr.
11446 (find_function_addr): Add 'function_type' parameter and move
11448 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
11451 2018-04-26 Pedro Alves <palves@redhat.com>
11453 * c-exp.y (variable production): Skip finding an alias for ifunc
11456 2018-04-26 Pedro Alves <palves@redhat.com>
11458 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
11460 2018-04-25 Pedro Alves <palves@redhat.com>
11462 * infcmd.c (kill_command): Print the pid as string, not the whole
11463 thread's ptid. Add comment. s/has been killed/killed/ in output
11465 * remote.c (remote_detach_1): Print the pid as string, not the
11466 whole thread's ptid.
11468 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11469 Sergio Durigan Junior <sergiodj@redhat.com>
11470 Pedro Alves <palves@redhat.com>
11472 * infcmd.c (kill_command): Print message when inferior has
11474 * inferior.c (print_inferior_events): Remove 'static'. Set as
11476 (add_inferior): Improve message printed when
11477 'print_inferior_events' is on.
11478 (exit_inferior): Remove message printed when
11479 'print_inferior_events' is on.
11480 (detach_inferior): Improve message printed when
11481 'print_inferior_events' is on.
11482 (initialize_inferiors): Use 'add_inferior_silent' to set
11483 'current_inferior_'.
11484 * inferior.h (print_inferior_events): Declare here as
11486 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
11487 '[Detaching...]' messages when 'print_inferior_events' is on.
11488 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
11489 as prefix/suffix for messages. Remove periods. Fix erroneous
11490 'Detaching after fork from child...', replace it by '... from
11492 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
11493 prefix/suffix when printing 'Detaching...' messages. Print
11494 them when 'print_inferior_events' is on.
11495 * remote.c (remote_detach_1): Print message when detaching
11496 from inferior and '!is_fork_parent'.
11498 2018-04-24 Tom Tromey <tom@tromey.com>
11500 * cli-out.h: Reindent.
11502 2018-04-24 Tom Tromey <tom@tromey.com>
11504 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
11505 (cli_ui_out::do_field_string): Use fputs_filtered.
11506 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
11508 2018-04-23 Tom Tromey <tom@tromey.com>
11510 * guile/scm-frame.c (gdbscm_frame_read_var): Use
11511 gdb::unique_xmalloc_ptr.
11513 2018-04-23 Tom Tromey <tom@tromey.com>
11515 * configure: Rebuild.
11517 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
11520 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
11521 prepare_for_testing. Set normal_bp to r_debug_state if target
11524 2018-04-21 Pedro Alves <palves@redhat.com>
11525 Rajendra SY <rajendra.sy@gmail.com>
11527 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
11528 * remote.c (extended_remote_attach): In all-stop mode, mark the
11529 thread as executing.
11531 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11533 * thread.c (thread_apply_all_command): Fix comment.
11534 (thread_command): Fix comment.
11536 2018-04-10 Alan Hayward <alan.hayward@arm.com>
11538 * common/tdesc.h (tdesc_create_feature): Remove xml filename
11540 * features/aarch64-core.c (create_feature_aarch64_core):
11542 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
11544 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
11546 * features/i386/32bit-avx512.c
11547 (create_feature_i386_32bit_avx512): Likewise.
11548 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
11550 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
11552 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
11554 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
11556 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
11558 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
11560 * features/i386/64bit-avx512.c
11561 (create_feature_i386_64bit_avx512): Likewise.
11562 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
11564 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
11566 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
11568 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
11570 * features/i386/64bit-segments.c
11571 (create_feature_i386_64bit_segments): Likewise.
11572 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
11574 * features/i386/x32-core.c
11575 (create_feature_i386_x32_core): Likewise.
11576 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
11577 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
11578 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
11579 * target-descriptions.c: In generated code, don't pass xml
11582 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11584 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
11585 (print_xml_feature::visit_post): Likewise.
11586 (print_xml_feature::visit): Likewise.
11587 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
11588 (print_xml_feature): Add new class.
11589 * regformats/regdat.sh: Null xmltarget on feature targets.
11590 * target-descriptions.c (struct target_desc): Add xmltarget.
11591 (maintenance_check_tdesc_xml_convert): Add unittest function.
11592 (tdesc_get_features_xml): Add function to get xml.
11593 (maintenance_check_xml_descriptions): Test xml generation.
11594 * xml-tdesc.c (string_read_description_xml): Add function.
11595 * xml-tdesc.h (string_read_description_xml): Add declaration.
11597 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11599 * features/Makefile: Add feature marker to targets with new style
11600 target descriptions.
11601 * regformats/aarch64.dat: Regenerate.
11602 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
11603 * regformats/i386/amd64-avx-linux.dat: Likewise.
11604 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
11605 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
11606 * regformats/i386/amd64-linux.dat: Likewise.
11607 * regformats/i386/amd64-mpx-linux.dat: Likewise.
11608 * regformats/i386/amd64.dat: Likewise.
11609 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
11610 * regformats/i386/i386-avx-linux.dat: Likewise.
11611 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
11612 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
11613 * regformats/i386/i386-linux.dat: Likewise.
11614 * regformats/i386/i386-mmx-linux.dat: Likewise.
11615 * regformats/i386/i386-mpx-linux.dat: Likewise.
11616 * regformats/i386/i386.dat: Likewise.
11617 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
11618 * regformats/i386/x32-avx-linux.dat: Likewise.
11619 * regformats/i386/x32-linux.dat: Likewise.
11620 * regformats/tic6x-c62x-linux.dat: Likewise.
11621 * regformats/tic6x-c64x-linux.dat: Likewise.
11622 * regformats/tic6x-c64xp-linux.dat: Likewise.
11623 * regformats/regdat.sh: Parse feature marker.
11625 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11627 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
11628 (tdesc_osabi_name): Likewise.
11629 * target-descriptions.c (tdesc_architecture_name): Add new
11631 (tdesc_osabi_name): Likewise.
11633 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11635 * common/tdesc.c (tdesc_predefined_type): Move to here.
11636 (tdesc_named_type): Likewise.
11637 (tdesc_create_vector): Likewise.
11638 (tdesc_create_struct): Likewise.
11639 (tdesc_set_struct_size): Likewise.
11640 (tdesc_create_union): Likewise.
11641 (tdesc_create_flags): Likewise.
11642 (tdesc_create_enum): Likewise.
11643 (tdesc_add_field): Likewise.
11644 (tdesc_add_typed_bitfield): Likewise.
11645 (tdesc_add_bitfield): Likewise.
11646 (tdesc_add_flag): Likewise.
11647 (tdesc_add_enum_value): Likewise.
11648 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
11649 (struct tdesc_type_vector): Likewise.
11650 (struct tdesc_type_field): Likewise.
11651 (struct tdesc_type_with_fields): Likewise.
11652 (tdesc_create_enum): Add declaration.
11653 (tdesc_add_typed_bitfield): Likewise.
11654 (tdesc_add_enum_value): Likewise.
11655 * target-descriptions.c (tdesc_type_field): Move from here.
11656 (tdesc_type_builtin): Likewise.
11657 (tdesc_type_vector): Likewise.
11658 (tdesc_type_with_fields): Likewise.
11659 (tdesc_predefined_types): Likewise.
11660 (tdesc_named_type): Likewise.
11661 (tdesc_create_vector): Likewise.
11662 (tdesc_create_struct): Likewise.
11663 (tdesc_set_struct_size): Likewise.
11664 (tdesc_create_union): Likewise.
11665 (tdesc_create_flags): Likewise.
11666 (tdesc_create_enum): Likewise.
11667 (tdesc_add_field): Likewise.
11668 (tdesc_add_typed_bitfield): Likewise.
11669 (tdesc_add_bitfield): Likewise.
11670 (tdesc_add_flag): Likewise.
11671 (tdesc_add_enum_value): Likewise.
11672 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
11673 (tdesc_add_typed_bitfield): Likewise.
11674 (tdesc_add_enum_value): Likewise.
11676 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11678 * common/tdesc.c (tdesc_feature::accept): Move to here.
11679 (tdesc_feature::operator==): Likewise.
11680 (tdesc_create_reg): Likewise.
11681 * common/tdesc.h (tdesc_type_kind): Likewise.
11682 (struct tdesc_type): Likewise.
11683 (struct tdesc_feature): Likewise.
11684 * regformats/regdat.sh: Create a feature.
11685 * target-descriptions.c (tdesc_type_kind): Move from here.
11686 (tdesc_type): Likewise.
11687 (tdesc_type_up): Likewise.
11688 (tdesc_feature): Likewise.
11689 (tdesc_create_reg): Likewise.
11691 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11693 * Makefile.in: Add arch/tdesc.c
11694 * common/tdesc.c: New file.
11695 * common/tdesc.h (tdesc_element_visitor): Move to here.
11696 (tdesc_element): Likewise.
11697 (tdesc_reg): Likewise.
11698 (tdesc_reg_up): Likewise.
11699 * regformats/regdef.h (reg): Add offset to constructors.
11700 * target-descriptions.c (tdesc_element_visitor): Move from here.
11701 (tdesc_element): Likewise.
11702 (tdesc_reg): Likewise.
11703 (tdesc_reg_up): Likewise.
11705 2018-04-17 Tom Tromey <tom@tromey.com>
11707 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
11708 discriminant field.
11710 2018-04-17 Tom Tromey <tom@tromey.com>
11712 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
11714 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
11716 * symtab.c (print_symbol_info): Skip printing filename and line
11717 number when `last' is NULL.
11718 (symtab_symbol_info): Use empty string instead of NULL for first
11719 invocation of print_symbol_info.
11720 (rbreak_command): Pass NULL to `last' parameter of
11723 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
11725 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
11726 instead of nullptr.
11728 2018-04-16 Pedro Alves <palves@redhat.com>
11730 * MAINTAINERS (sh): Remove.
11731 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
11732 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
11733 (ALLDEPFILES): Remove sh64-tdep.c.
11734 * NEWS: Mentions that support for SH-5/SH64 is removed.
11735 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
11736 (sh*-*-openbsd*): Ditto.
11737 (sh64-*-elf*): Remove.
11739 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
11740 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
11741 * sh-tdep.c: No longer include "sh64-tdep.h".
11742 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
11743 * sh64-tdep.c, sh64-tdep.h: Remove files.
11745 2018-04-16 Pedro Alves <palves@redhat.com>
11747 * MAINTAINERS: Remove m88k.
11748 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
11749 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
11750 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
11751 * NEWS: Mention that support for m88k was removed.
11752 * configure.host (m88*-*-*): Remove support.
11753 * configure.nat (m88k-*-*): Remove support.
11754 * configure.tgt (m88*-*-openbsd*): Remove.
11755 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
11757 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
11759 * configure.tgt (x86_tobjs): New variable.
11760 (amd64_tobjs, i386_tobjs): Use it.
11762 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11764 * symtab.c (print_symbol_info): Precede the symbol definition by
11765 the line number when available.
11766 * NEWS: Advertise this enhancement.
11768 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11770 * NEWS (New options): announce set/show record btrace cpu.
11771 * btrace.c: Include record-btrace.h.
11772 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
11773 the vendor is unknown.
11774 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
11775 Maybe overwrite the btrace configuration's cpu.
11776 (btrace_compute_ftrace): Add cpu parameter. Update callers.
11777 (btrace_fetch): Add cpu parameter. Update callers.
11778 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
11779 Maybe overwrite the btrace configuration's cpu. Skip enabling
11780 errata workarounds if the vendor is unknown.
11781 * python/py-record-btrace.c: Include record-btrace.h.
11782 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
11783 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
11784 * record-btrace.c (record_btrace_cpu_state_kind): New.
11785 (record_btrace_cpu): New.
11786 (set_record_btrace_cpu_cmdlist): New.
11787 (record_btrace_get_cpu): New.
11788 (require_btrace_thread, record_btrace_info)
11789 (record_btrace_resume_thread): Call record_btrace_get_cpu.
11790 (cmd_set_record_btrace_cpu_none): New.
11791 (cmd_set_record_btrace_cpu_auto): New.
11792 (cmd_set_record_btrace_cpu): New.
11793 (cmd_show_record_btrace_cpu): New.
11794 (_initialize_record_btrace): Initialize set/show record btrace cpu
11796 * record-btrace.h (record_btrace_get_cpu): New.
11798 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11800 * record.c (set_record_command): Fix typo in message.
11802 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11804 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
11806 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11808 * infrun.c (process_event_stop_test): Call
11809 gdbarch_in_indirect_branch_thunk.
11810 * gdbarch.sh (in_indirect_branch_thunk): New.
11811 * gdbarch.c: Regenerated.
11812 * gdbarch.h: Regenerated.
11815 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
11816 (HFILES_NO_SRCDIR): Add x86-tdep.h.
11817 (ALLDEPFILES): Add x86-tdep.c.
11818 * arch-utils.h (default_in_indirect_branch_thunk): New.
11819 * arch-utils.c (default_in_indirect_branch_thunk): New.
11820 * i386-tdep: Include x86-tdep.h.
11821 (i386_in_indirect_branch_thunk): New.
11822 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
11824 * amd64-tdep: Include x86-tdep.h.
11825 (amd64_in_indirect_branch_thunk): New.
11826 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
11828 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11831 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
11832 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
11833 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
11836 2018-04-12 Tom Tromey <tom@tromey.com>
11838 * rust-lang.c (rust_print_struct_def): Remove univariant code.
11839 (rust_evaluate_subexp): Likewise.
11841 2018-04-12 Pedro Alves <palves@redhat.com>
11843 * procfs.c (procfs_detach): Make forward declaration's prototype
11844 match definition's protototype.
11845 (proc_get_LDT_entry): Remove stale do_cleanups call.
11847 2018-04-12 Pedro Alves <palves@redhat.com>
11849 * target.h (target_ops::to_has_exited): Delete.
11850 (target_has_exited): Delete.
11851 * target-delegates.c: Regenerate.
11853 2018-04-11 Pedro Alves <palves@redhat.com>
11855 * target.c (fileio_fh_t::t): Add comment.
11856 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11857 (target_fileio_close): Handle a NULL target.
11858 (invalidate_fileio_fh): New.
11859 (target_close): Call it.
11860 * remote.c (remote_hostio_send_command): No longer check whether
11861 remote_desc is open.
11863 2018-04-11 Pedro Alves <palves@redhat.com>
11865 * target.c (fileio_fh_t): Make it a named struct instead of a
11867 (fileio_fh_t::is_closed): New method.
11868 (DEF_VEC_O (fileio_fh_t)): Remove.
11869 (fileio_fhandles): Now a std::vector.
11870 (is_closed_fileio_fh): Delete.
11871 (acquire_fileio_fd): Adjust. Rename parameters.
11872 (release_fileio_fd): Adjust.
11873 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
11874 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11875 (target_fileio_close): Adjust.
11877 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
11879 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
11882 2018-04-10 Pedro Alves <palves@redhat.com>
11884 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
11885 (scoped_finish_thread_state): New class.
11886 * infcmd.c (run_command_1): Use it instead of finish_thread_state
11888 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
11889 (fetch_inferior_event, normal_stop): Likewise.
11890 * thread.c (finish_thread_state_cleanup): Delete.
11892 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11893 Pedro Alves <palves@redhat.com>
11895 * value.c: Include "selftest.h" and "common/array-view.h".
11896 (struct range) <operator ==>: New.
11897 (test_ranges_contain): New.
11898 (check_ranges_vector): New.
11899 (test_insert_into_bit_range_vector): New.
11900 (_initialize_values): Register selftests.
11901 * common/array-view.h (operator==, operator!=): New.
11903 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11905 * common/gdb_vecs.h (unordered_remove): Add overload that takes
11907 * inline-frame.c: Include <algorithm>.
11908 (struct inline_state): Add constructor.
11909 (inline_state_s): Remove.
11910 (DEF_VEC_O(inline_state_s)): Remove.
11911 (inline_states): Change type to std::vector.
11912 (find_inline_frame_state): Adjust to std::vector.
11913 (allocate_inline_frame_state): Remove.
11914 (clear_inline_frame_state): Adjust to std::vector.
11915 (skip_inline_frames): Adjust to std::vector.
11917 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11919 * tracepoint.h (struct trace_state_variable): Add constructor.
11920 <name>: Change type to std::string.
11921 * tracepoint.c (tsv_s): Remove.
11922 (DEF_VEC_O(tsv_s)): Remove.
11923 (tvariables): Change to std::vector.
11924 (create_trace_state_variable): Adjust to std::vector.
11925 (find_trace_state_variable): Likewise.
11926 (find_trace_state_variable_by_number): Likewise.
11927 (delete_trace_state_variable): Likewise.
11928 (trace_variable_command): Adjust to std::string.
11929 (delete_trace_variable_command): Likewise.
11930 (tvariables_info_1): Adjust to std::vector.
11931 (save_trace_state_variables): Likewise.
11932 (start_tracing): Likewise.
11933 (merge_uploaded_trace_state_variables): Adjust to std::vector
11935 * target.h (struct target_ops)
11936 <to_download_trace_state_variable>: Pass reference to
11937 trace_state_variable.
11938 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
11939 * target-delegates.c: Re-generate.
11940 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
11941 (mi_tsv_deleted): Likewise.
11942 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
11943 * remote.c (remote_download_trace_state_variable): Change
11944 pointer to reference and adjust.
11945 * make-target-delegates (parse_argtypes): Handle references.
11946 (write_function_header): Likewise.
11947 (munge_type): Likewise.
11949 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11951 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11952 string_view-selftests.c.
11953 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
11955 * unittests/basic_string_view/cons/char/1.cc: Likewise.
11956 * unittests/basic_string_view/cons/char/2.cc: Likewise.
11957 * unittests/basic_string_view/cons/char/3.cc: Likewise.
11958 * unittests/basic_string_view/element_access/char/1.cc:
11960 * unittests/basic_string_view/element_access/char/empty.cc:
11962 * unittests/basic_string_view/element_access/char/front_back.cc:
11964 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
11965 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
11967 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
11969 * unittests/basic_string_view/modifiers/swap/char/1.cc:
11971 * unittests/basic_string_view/operations/compare/char/1.cc:
11973 * unittests/basic_string_view/operations/compare/char/13650.cc:
11975 * unittests/basic_string_view/operations/copy/char/1.cc:
11977 * unittests/basic_string_view/operations/data/char/1.cc:
11979 * unittests/basic_string_view/operations/find/char/1.cc:
11981 * unittests/basic_string_view/operations/find/char/2.cc:
11983 * unittests/basic_string_view/operations/find/char/3.cc:
11985 * unittests/basic_string_view/operations/find/char/4.cc:
11987 * unittests/basic_string_view/operations/rfind/char/1.cc:
11989 * unittests/basic_string_view/operations/rfind/char/2.cc:
11991 * unittests/basic_string_view/operations/rfind/char/3.cc:
11993 * unittests/basic_string_view/operations/substr/char/1.cc:
11995 * unittests/basic_string_view/operators/char/2.cc: Likewise.
11996 * unittests/string_view-selftests.c: New file.
11998 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12000 * unittests/basic_string_view/capacity/1.cc: New file.
12001 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
12002 * unittests/basic_string_view/cons/char/1.cc: New file.
12003 * unittests/basic_string_view/cons/char/2.cc: New file.
12004 * unittests/basic_string_view/cons/char/3.cc: New file.
12005 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
12006 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
12007 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
12008 * unittests/basic_string_view/element_access/char/1.cc: New file.
12009 * unittests/basic_string_view/element_access/char/2.cc: New file.
12010 * unittests/basic_string_view/element_access/char/empty.cc: New file.
12011 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
12012 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
12013 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
12014 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
12015 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
12016 * unittests/basic_string_view/include.cc: New file.
12017 * unittests/basic_string_view/inserters/char/1.cc: New file.
12018 * unittests/basic_string_view/inserters/char/2.cc: New file.
12019 * unittests/basic_string_view/inserters/char/3.cc: New file.
12020 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
12021 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
12022 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
12023 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
12024 * unittests/basic_string_view/literals/types.cc: New file.
12025 * unittests/basic_string_view/literals/values.cc: New file.
12026 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
12027 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
12028 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
12029 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
12030 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
12031 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
12032 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
12033 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
12034 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
12035 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
12036 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
12037 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
12038 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
12039 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
12040 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
12041 * unittests/basic_string_view/operations/data/char/1.cc: New file.
12042 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
12043 * unittests/basic_string_view/operations/find/char/1.cc: New file.
12044 * unittests/basic_string_view/operations/find/char/2.cc: New file.
12045 * unittests/basic_string_view/operations/find/char/3.cc: New file.
12046 * unittests/basic_string_view/operations/find/char/4.cc: New file.
12047 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
12048 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
12049 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
12050 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
12051 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
12052 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
12053 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
12054 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
12055 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
12056 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
12057 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
12058 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
12059 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
12060 * unittests/basic_string_view/operators/char/2.cc: New file.
12061 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
12062 * unittests/basic_string_view/range_access/char/1.cc: New file.
12063 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
12064 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
12065 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
12066 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
12067 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
12068 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
12069 * unittests/basic_string_view/requirements/typedefs.cc: New file.
12070 * unittests/basic_string_view/typedefs.cc: New file.
12071 * unittests/basic_string_view/types/1.cc: New file.
12073 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12075 * common/gdb_string_view.h: Remove libstdc++ implementation
12076 details, adjust to gdb reality.
12077 * common/gdb_string_view.tcc: Likewise.
12078 * cli/cli-script.c (struct string_view): Remove.
12079 (user_args) <m_args>: Change element type to gdb::string_view.
12080 (user_args::insert_args): Adjust.
12082 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12084 * common/gdb_string_view.h: New file.
12085 * common/gdb_string_view.tcc: New file.
12087 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12089 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
12090 * configure: Re-generate.
12092 2018-04-09 Pedro Alves <palves@redhat.com>
12094 * gdbarch.sh: Include "observable.h" instead of "observer.h".
12095 (set_target_gdbarch): Call
12096 gdb::observers::architecture_changed.notify instead of
12097 observer_notify_architecture_changed.
12099 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12101 * tracepoint.c (struct current_traceframe_cleanup): Remove.
12102 (do_restore_current_traceframe_cleanup): Remove.
12103 (restore_current_traceframe_cleanup_dtor): Remove.
12104 (make_cleanup_restore_current_traceframe): Remove.
12105 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
12107 * tracepoint.h (struct scoped_restore_current_traceframe): New.
12108 * infrun.c (fetch_inferior_event): Use
12109 scoped_restore_current_traceframe.
12111 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12113 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
12115 <n_allocated_type_units>: Remove.
12116 <all_type_units>: Change to std::vector.
12117 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12118 to std::vector change.
12119 (dwarf2_per_objfile::get_cutu): Likewise.
12120 (dwarf2_per_objfile::get_tu): Likewise.
12121 (create_signatured_type_table_from_index): Likewise.
12122 (create_signatured_type_table_from_debug_names): Likewise.
12123 (dw2_symtab_iter_next): Likewise.
12124 (dw2_print_stats): Likewise.
12125 (dw2_expand_all_symtabs): Likewise.
12126 (dw2_expand_marked_cus): Likewise.
12127 (dw2_debug_names_iterator::next): Likewise.
12128 (dwarf2_initialize_objfile): Likewise.
12129 (add_signatured_type_cu_to_table): Likewise.
12130 (create_all_type_units): Likewise.
12131 (add_type_unit): Likewise.
12132 (struct tu_abbrev_offset): Add constructor.
12133 (build_type_psymtabs_1): Adjust to std::vector change.
12134 (print_tu_stats): Likewise.
12135 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12136 (write_debug_names): Likewise.
12138 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12140 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
12141 Make an std::vector.
12142 <n_comp_units>: Remove.
12143 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12144 to std::vector change.
12145 (dwarf2_per_objfile::get_cutu): Likewise.
12146 (dwarf2_per_objfile::get_cu): Likewise.
12147 (create_cus_from_index): Likewise.
12148 (create_addrmap_from_index): Likewise.
12149 (create_addrmap_from_aranges): Likewise.
12150 (dwarf2_read_index): Likewise.
12151 (dw2_find_last_source_symtab): Likewise.
12152 (dw2_map_symtabs_matching_filename): Likewise.
12153 (dw2_symtab_iter_next): Likewise.
12154 (dw2_print_stats): Likewise.
12155 (dw2_expand_all_symtabs): Likewise.
12156 (dw2_expand_symtabs_with_fullname): Likewise.
12157 (dw2_expand_marked_cus): Likewise.
12158 (dw2_map_symbol_filenames): Likewise.
12159 (create_cus_from_debug_names): Likewise.
12160 (dwarf2_read_debug_names): Likewise.
12161 (dw2_debug_names_iterator::next): Likewise.
12162 (dwarf2_initialize_objfile): Likewise.
12163 (set_partial_user): Likewise.
12164 (dwarf2_build_psymtabs_hard): Likewise.
12165 (read_comp_units_from_section): Remove arguments, adjust to
12166 std::vector change.
12167 (create_all_comp_units): Adjust to std::vector and
12168 read_comp_units_from_section changes.
12169 (dwarf2_find_containing_comp_unit): Adjust to std::vector
12171 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12172 (psyms_seen_size): Likewise.
12173 (write_gdbindex): Likewise.
12174 (write_debug_names): Likewise.
12176 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12178 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
12179 with dwarf2_per_objfile.
12180 (create_cus_from_index): Likewise.
12181 (create_signatured_type_table_from_index): Likewise.
12182 (dwarf2_read_index): Likewise.
12183 (dwarf2_initialize_objfile): Likewise.
12184 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
12185 per_cu rather than get_dwarf2_per_objfile.
12187 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12189 * dwarf2read.h (struct signatured_type): Forward declare.
12190 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
12192 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
12193 (dw2_get_cutu): ...this.
12194 (dwarf2_per_objfile::get_cu): Rename from...
12195 (dw2_get_cu): ...this.
12196 (dwarf2_per_objfile::get_tu): New.
12197 (create_addrmap_from_index): Adjust.
12198 (create_addrmap_from_aranges): Adjust.
12199 (dw2_find_last_source_symtab): Adjust.
12200 (dw2_map_symtabs_matching_filename): Adjust.
12201 (dw2_symtab_iter_next): Adjust.
12202 (dw2_print_stats): Adjust.
12203 (dw2_expand_all_symtabs): Adjust.
12204 (dw2_expand_symtabs_with_fullname): Adjust.
12205 (dw2_expand_marked_cus): Adjust.
12206 (dw_expand_symtabs_matching_file_matcher): Adjust.
12207 (dw2_map_symbol_filenames): Adjust.
12208 (dw2_debug_names_iterator::next): Adjust.
12209 (dwarf2_initialize_objfile): Adjust.
12210 (set_partial_user): Adjust.
12211 (dwarf2_build_psymtabs_hard): Adjust.
12213 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12215 * dwarf2read.c (create_signatured_type_table_from_debug_names):
12216 Remove unused variables.
12217 (dw2_map_symtabs_matching_filename): Likewise.
12218 (dwarf2_record_block_ranges): Likewise.
12219 (dwarf2_read_addr_index): Likewise.
12220 (follow_die_offset): Likewise.
12222 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12224 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
12225 to symbol_file_add_main.
12227 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12230 * mi/mi-console.c (do_fputc_async_safe): New.
12231 (mi_console_file::write_async_safe): New.
12232 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
12233 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
12235 * ui-file.c (ui_file::putstrn): Adjust call to
12236 fputstrn_unfiltered.
12237 * utils.c (printchar): Replace do_fputs and do_fprintf
12238 parameters by do_fputc.
12239 (fputstr_filtered): Adjust call to printchar.
12240 (fputstr_unfiltered): Likewise.
12241 (fputstrn_filtered): Likewise.
12242 (fputstrn_unfiltered): Add do_fputc parameter, pass to
12244 * utils.h (do_fputc_ftype): New typedef.
12245 (fputstrn_unfiltered): Add do_fputc parameter.
12247 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12249 * regformats/i386/i386-avx.dat: Remove.
12251 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12254 * amd64-tdep.c (amd64_none_init_abi): New function.
12255 (amd64_x32_none_init_abi): New function.
12256 (_initialize_amd64_tdep): Register handlers for x86-64 and
12257 x64_32 with GDB_OSABI_NONE.
12258 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
12259 GDB_OSABI_NONE osabi.
12261 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12264 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
12266 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
12267 * osabi.c (gdb_osabi_names): Add "unknown" entry.
12269 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12271 * common/byte-vector.h (char_vector): New type.
12272 * target.h (target_read_alloc): Return
12273 gdb::optional<byte_vector>.
12274 (target_read_stralloc): Return gdb::optional<char_vector>.
12275 (target_get_osdata): Return gdb::optional<char_vector>.
12276 * target.c (target_read_alloc_1): Templatize. Replacement
12277 manual memory management with vector.
12278 (target_read_alloc): Change return type, adjust.
12279 (target_read_stralloc): Change return type, adjust.
12280 (target_get_osdata): Change return type, adjust.
12281 * auxv.c (struct auxv_info) <length>: Remove.
12282 <data>: Change type to gdb::optional<byte_vector>.
12283 (auxv_inferior_data_cleanup): Free auxv_info with delete.
12284 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
12285 (target_auxv_search): Adjust.
12286 (fprint_target_auxv): Adjust.
12287 * avr-tdep.c (avr_io_reg_read_command): Adjust.
12288 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
12289 (linux_make_corefile_notes): Adjust.
12290 * osdata.c (get_osdata): Adjust.
12291 * remote.c (remote_get_threads_with_qxfer): Adjust.
12292 (remote_memory_map): Adjust.
12293 (remote_traceframe_info): Adjust.
12294 (btrace_read_config): Adjust.
12295 (remote_read_btrace): Adjust.
12296 (remote_pid_to_exec_file): Adjust.
12297 * solib-aix.c (solib_aix_get_library_list): Adjust.
12298 * solib-dsbt.c (decode_loadmap): Don't free buf.
12299 (dsbt_get_initial_loadmaps): Adjust.
12300 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
12301 * solib-target.c (solib_target_current_sos): Adjust.
12302 * tracepoint.c (sdata_make_value): Adjust.
12303 * xml-support.c (xinclude_start_include): Adjust.
12304 (xml_fetch_content_from_file): Adjust.
12305 * xml-support.h (xml_fetch_another): Change return type.
12306 (xml_fetch_content_from_file): Change return type.
12307 * xml-syscall.c (xml_init_syscalls_info): Adjust.
12308 * xml-tdesc.c (file_read_description_xml): Adjust.
12309 (fetch_available_features_from_target): Change return type.
12310 (target_fetch_description_xml): Adjust.
12311 (target_read_description_xml): Adjust.
12313 2018-04-06 Tom Tromey <tom@tromey.com>
12315 * value.c (~value): Update.
12316 (struct value) <contents>: Now unique_xmalloc_ptr.
12317 (value_contents_bits_eq, allocate_value_contents)
12318 (value_contents_raw, value_contents_all_raw)
12319 (value_contents_for_printing, value_contents_for_printing_const)
12320 (set_value_enclosing_type): Update.
12322 2018-04-06 Tom Tromey <tom@tromey.com>
12324 * value.c (range_s): Remove typedef, VEC.
12325 (struct range): Add operator<.
12326 (range_lessthan): Remove.
12327 (ranges_contain): Change type.
12329 (struct value) <unavailable, optimized_out>: Now std::vector.
12330 (value_entirely_available)
12331 (value_entirely_covered_by_range_vector)
12332 (value_entirely_unavailable, value_entirely_optimized_out):
12334 (insert_into_bit_range_vector): Change argument type.
12335 (find_first_range_overlap): Likewise.
12336 (struct ranges_and_idx, value_contents_bits_eq)
12337 (require_not_optimized_out, require_available): Update.
12338 (ranges_copy_adjusted): Change argument types.
12339 (value_optimized_out, value_copy, value_fetch_lazy): Update.
12341 2018-04-06 Tom Tromey <tom@tromey.com>
12343 * value.c (~value): Update.
12344 (struct value) <parent>: Now a value_ref_ptr.
12345 (value_parent, set_value_parent, value_address, value_copy):
12348 2018-04-06 Tom Tromey <tom@tromey.com>
12350 * value.c (struct value): Add constructor, destructor, and member
12352 (allocate_value_lazy, value_decref): Update.
12354 2018-04-06 Tom Tromey <tom@tromey.com>
12356 * value.c (struct value) <released, next>: Remove.
12357 (all_values): Now a std::vector.
12358 (allocate_value_lazy): Update.
12359 (value_next): Remove.
12360 (value_mark, value_free_to_mark, release_value)
12361 (value_release_to_mark): Update.
12363 2018-04-06 Tom Tromey <tom@tromey.com>
12365 * value.h (fetch_subexp_value, value_release_to_mark): Update.
12366 (free_value_chain): Remove.
12367 * value.c (free_value_chain): Remove.
12368 (value_release_to_mark): Return a std::vector.
12369 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
12371 (check_condition): Update.
12372 * eval.c (fetch_subexp_value): Change "val_chain" to a
12374 * breakpoint.c (update_watchpoint): Update.
12375 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
12377 2018-04-06 Tom Tromey <tom@tromey.com>
12379 * value.h (free_all_values): Remove.
12380 * value.c (free_all_values): Remove.
12382 2018-04-06 Tom Tromey <tom@tromey.com>
12384 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
12385 (value_history_chain, value_history_count): Remove.
12386 (value_history): New global.
12387 (record_latest_value, access_value_history, show_values)
12388 (preserve_values): Update.
12390 2018-04-06 Tom Tromey <tom@tromey.com>
12392 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
12393 * varobj.c (varobj_set_display_format, varobj_set_value)
12394 (install_default_visualizer, construct_visualizer)
12395 (install_new_value, ~varobj, varobj_get_value_type)
12396 (my_value_of_variable, varobj_editable_p): Update.
12397 * c-varobj.c (c_describe_child, c_value_of_variable)
12398 (cplus_number_of_children, cplus_describe_child): Update.
12399 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
12400 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
12401 (ada_value_of_variable, ada_value_is_changeable_p): Update.
12403 2018-04-06 Tom Tromey <tom@tromey.com>
12405 * printcmd.c (last_examine_address): Change type to
12407 (do_examine, x_command): Update.
12409 2018-04-06 Tom Tromey <tom@tromey.com>
12411 * value.c (release_value): Update.
12412 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
12413 (struct bpstats) <val>: Now a value_ref_ptr.
12414 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12415 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12416 (~watchpoint, print_it_watchpoint, watch_command_1)
12417 (invalidate_bp_value_on_memory_change): Update.
12419 2018-04-06 Tom Tromey <tom@tromey.com>
12421 * varobj.c (varobj_clear_saved_item)
12422 (update_dynamic_varobj_children, install_new_value, ~varobj):
12424 * value.h (value_incref): Move declaration earlier.
12425 (value_decref): Rename from value_free.
12426 (struct value_ref_policy): New.
12427 (value_ref_ptr): New typedef.
12428 (struct value_deleter): Remove.
12429 (gdb_value_up): Remove typedef.
12430 (release_value): Change return type.
12431 (release_value_or_incref): Remove.
12432 * value.c (set_value_parent): Update.
12433 (value_incref): Change return type.
12434 (value_decref): Rename from value_free.
12435 (value_free_to_mark, free_all_values, free_value_chain): Update.
12436 (release_value): Return value_ref_ptr.
12437 (release_value_or_incref): Remove.
12438 (record_latest_value, set_internalvar, clear_internalvar):
12440 * stack.c (info_frame_command): Don't call value_free.
12441 * python/py-value.c (valpy_dealloc, valpy_new)
12442 (value_to_value_object): Update.
12443 * printcmd.c (do_examine): Update.
12444 * opencl-lang.c (lval_func_free_closure): Update.
12445 * mi/mi-main.c (register_changed_p): Don't call value_free.
12446 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
12447 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
12448 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
12450 * guile/scm-value.c (vlscm_free_value_smob)
12451 (vlscm_scm_from_value): Update.
12452 * frame.c (frame_register_unwind, frame_unwind_register_signed)
12453 (frame_unwind_register_unsigned, get_frame_register_bytes)
12454 (put_frame_register_bytes): Don't call value_free.
12455 * findvar.c (address_from_register): Don't call value_free.
12456 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
12457 * dwarf2loc.c (entry_data_value_free_closure)
12458 (value_of_dwarf_reg_entry, free_pieced_value_closure)
12459 (dwarf2_evaluate_loc_desc_full): Update.
12460 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12461 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12462 (~watchpoint, watch_command_1)
12463 (invalidate_bp_value_on_memory_change): Update.
12464 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
12466 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
12469 * warning.m4: Add -Wno-error=deprecated-register.
12470 * configure: Re-generate.
12472 2018-04-05 Tom Tromey <tom@tromey.com>
12474 * linespec.h: Remove include of "vec.h".
12476 2018-04-05 Tom Tromey <tom@tromey.com>
12478 * linespec.c (typep): Remove typedef.
12479 (find_methods, find_superclass_methods): Take a std::vector.
12480 (find_method): Use std::vector.
12482 2018-04-05 Tom Tromey <tom@tromey.com>
12484 * utils.c (compare_strings): Remove.
12485 * utils.h (compare_strings): Remove.
12486 * objc-lang.h (find_imps): Update.
12487 * objc-lang.c (find_methods): Take a std::vector.
12488 (uniquify_strings, find_imps): Likewise.
12489 * linespec.c (find_methods): Take a std::vector.
12490 (decode_objc): Use std::vector.
12491 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
12493 (find_method, find_function_symbols): Use std::vector.
12495 2018-04-05 Tom Tromey <tom@tromey.com>
12497 * completer.c (completion_tracker::completion_tracker): Remove
12499 (completion_tracker::discard_completions): Likewise.
12500 * breakpoint.c (ambiguous_names_p): Remove cast.
12501 * ada-lang.c (_initialize_ada_language): Remove cast.
12502 * utils.h (streq): Update.
12503 (streq_hash): Add new declaration.
12504 * utils.c (streq): Return bool.
12505 (streq_hash): New function.
12507 2018-04-05 Tom Tromey <tom@tromey.com>
12509 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
12510 Remove a string copy.
12512 2018-04-05 Tom Tromey <tom@tromey.com>
12514 * linespec.c (filter_results): Use std::vector.
12515 (decode_line_2, decode_line_full): Update.
12517 2018-04-05 Tom Tromey <tom@tromey.com>
12519 * linespec.c (canonical_to_fullform): Return std::string.
12520 (filter_results): Update.
12521 (struct decode_line_2_item): Add constructor.
12522 <fullform, displayform>: Now std::string.
12523 (decode_line_2_compare_items): Now a std::sort comparator.
12524 (decode_line_2): Update.
12526 2018-04-05 Tom Tromey <tom@tromey.com>
12528 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
12529 (unexpected_linespec_error): Update.
12530 (linespec_parse_basic, parse_linespec): Update.
12532 2018-04-05 Tom Tromey <tom@tromey.com>
12534 * linespec.c (linespec_parse_basic): Reindent.
12536 2018-04-05 Tom Tromey <tom@tromey.com>
12538 * minsyms.h (iterate_over_minimal_symbols): Update.
12539 * minsyms.c (iterate_over_minimal_symbols): Take a
12540 gdb::function_view.
12541 * linespec.c (struct collect_minsyms): Remove.
12542 (compare_msyms): Now a std::sort comparator.
12543 (add_minsym): Add parameters.
12544 (search_minsyms_for_name): Update. Use std::vector.
12546 2018-04-03 Tom Tromey <tom@tromey.com>
12548 * mipsread.c (read_alphacoff_dynamic_symtab): Use
12551 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
12553 * MAINTAINERS (Write After Approval): Add Weimin Pan.
12555 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
12558 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
12559 printing static type.
12561 2018-04-01 Tom Tromey <tom@tromey.com>
12563 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
12564 (rs6000_xfer_shared_libraries): Update.
12566 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12568 * common/gdb_vecs.h (char_ptr): Remove.
12569 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
12571 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12573 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
12575 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
12577 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12579 * tracepoint.h (struct uploaded_tp): Initialize fields.
12580 <actions, step_actions, cmd_strings>: Change type to
12581 std::vector<char *>.
12582 * tracepoint.c (get_uploaded_tp): Allocate with new.
12583 (free_uploaded_tps): Free with delete.
12584 (parse_tracepoint_definition): Adjust to std::vector change.
12585 * breakpoint.c (read_uploaded_action): Likewise.
12586 (create_tracepoint_from_upload): Likewise.
12587 * ctf.c (ctf_write_uploaded_tp): Likewise.
12588 (SET_ARRAY_FIELD): Likewise.
12589 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
12591 2018-03-30 Tom Tromey <tom@tromey.com>
12593 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
12595 (svr4_keep_data_in_core): Update.
12596 (svr4_read_so_list): Update.
12598 2018-03-30 Tom Tromey <tom@tromey.com>
12600 * windows-nat.c (handle_output_debug_string, handle_exception):
12602 * target.h (target_read_string): Update.
12603 * target.c (target_read_string): Change "string" to
12604 unique_xmalloc_ptr.
12605 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
12607 * solib-frv.c (frv_current_sos): Update.
12608 * solib-dsbt.c (dsbt_current_sos): Update.
12609 * solib-darwin.c (darwin_current_sos): Update.
12610 * linux-thread-db.c (inferior_has_bug): Update.
12611 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
12612 Update. Remove alloca.
12613 * ada-lang.c (ada_main_name): Update.
12615 2018-03-30 Tom Tromey <tom@tromey.com>
12617 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
12618 (struct dwo_file_deleter): New.
12619 (dwo_file_up): New typedef.
12620 (open_and_init_dwo_file): Use dwo_file_up.
12621 (free_dwo_file_cleanup): Remove.
12623 2018-03-30 Tom Tromey <tom@tromey.com>
12625 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
12626 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
12628 2018-03-30 Tom Tromey <tom@tromey.com>
12630 * dwarf2read.c (class free_cached_comp_units): New class.
12631 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
12632 (free_cached_comp_units): Remove function.
12634 2018-03-30 Tom Tromey <tom@tromey.com>
12636 * utils.h (make_cleanup_unpush_target): Remove.
12637 * inf-ptrace.c (struct target_unpusher): New.
12638 (target_unpush_up) New typedef.
12639 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
12641 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
12643 2018-03-27 Tom Tromey <tom@tromey.com>
12645 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
12647 2018-03-27 Pedro Alves <palves@redhat.com>
12648 Tom Tromey <tom@tromey.com>
12650 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
12651 destructor. Now a class.
12652 (gdb_readline_wrapper_cleanup): Remove function.
12653 (gdb_readline_wrapper): Remove cleanups.
12655 2018-03-27 Tom Tromey <tom@tromey.com>
12657 * typeprint.h (struct type_print_options) <local_typedefs,
12658 global_typedefs>: Remove "struct" keyword.
12659 (class typedef_hash_table): New class.
12660 (recursively_update_typedef_hash, add_template_parameters)
12661 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
12662 (find_typedef_in_hash): Don't declare.
12663 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
12664 (typedef_hash_table::recursively_update): Rename from
12665 recursively_update_typedef_hash. Now a member.
12666 (typedef_hash_table::add_template_parameters): Rename from
12667 add_template_parameters. Now a member.
12668 (typedef_hash_table::typedef_hash_table): Now a constructor;
12669 rename from create_typedef_hash.
12670 (typedef_hash_table::~typedef_hash_table): Now a destructor;
12671 rename from free_typedef_hash.
12672 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
12673 (do_free_global_table): Remove.
12674 (typedef_hash_table::typedef_hash_table): New constructor; renamed
12675 from copy_type_recursive.
12676 (create_global_typedef_table): Remove.
12677 (typedef_hash_table::find_global_typedef): Now a member of
12678 typedef_hash_table.
12679 (typedef_hash_table::find_typedef): Rename from
12680 find_typedef_in_hash; now a member.
12681 (whatis_exp): Update.
12682 * extension.h (struct ext_lang_type_printers): Add constructor and
12684 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
12686 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
12687 Now a constructor; rename from start_ext_lang_type_printers.
12688 (ext_lang_type_printers): Now a destructor; rename from
12689 free_ext_lang_type_printers.
12690 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
12692 (c_type_print_base_struct_union): Update. Remove cleanups.
12694 2018-03-27 Tom Tromey <tom@tromey.com>
12696 * dwarf-index-write.c: Include <cmath>.
12698 2018-03-27 Joel Brobecker <brobecker@adacore.com>
12700 * NEWS: Add entry describing new "set|show varsize-limit" command.
12701 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
12703 * printcmd.c (_initialize_printcmd): Add "set var" alias of
12706 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
12708 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
12709 dwarf-index-write.c
12710 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
12711 * dwarf-index-common.c: New file.
12712 * dwarf-index-common.h: New file.
12713 * dwarf-index-write.c: New file.
12714 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
12715 (struct dwarf2_section_info): Move from here.
12716 (dwarf2_section_info_def): Likewise.
12717 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
12718 (offset_type): Likewise.
12719 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
12720 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
12721 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
12722 (byte_swap): Likewise.
12723 (MAYBE_SWAP): Likewise.
12724 (dwarf2_per_cu_ptr): Likewise.
12725 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
12726 (struct tu_stats): Likewise.
12727 (struct dwarf2_per_objfile): Likewise.
12728 (struct dwarf2_per_cu_data): Likewise.
12729 (struct signatured_type): Likewise.
12730 (sig_type_ptr): Likewise.
12731 (DEF_VEC_P (sig_type_ptr)): Likewise.
12732 (INDEX4_SUFFIX): Likewise.
12733 (INDEX5_SUFFIX): Likewise.
12734 (DEBUG_STR_SUFFIX): Likewise.
12735 (dwarf2_read_section): Make non-static.
12736 (mapped_index_string_hash): Move from here.
12737 (dwarf5_djb_hash): Likewise.
12738 (file_write): Likewise.
12739 (class data_buf): Likewise.
12740 (struct symtab_index_entry): Likewise.
12741 (struct mapped_symtab): Likewise.
12742 (find_slot): Likewise.
12743 (hash_expand): Likewise.
12744 (add_index_entry): Likewise.
12745 (uniquify_cu_indices): Likewise.
12746 (class c_str_view): Likewise.
12747 (class c_str_view_hasher): Likewise.
12748 (class vector_hasher): Likewise.
12749 (write_hash_table): Likewise.
12750 (psym_index_map): Likewise.
12751 (struct addrmap_index_data): Likewise.
12752 (add_address_entry): Likewise.
12753 (add_address_entry_worker): Likewise.
12754 (write_address_map): Likewise.
12755 (symbol_kind): Likewise.
12756 (write_psymbols): Likewise.
12757 (struct signatured_type_index_data): Likewise.
12758 (write_one_signatured_type): Likewise.
12759 (recursively_count_psymbols): Likewise.
12760 (recursively_write_psymbols): Likewise.
12761 (class debug_names): Likewise.
12762 (check_dwarf64_offsets): Likewise.
12763 (psyms_seen_size): Likewise.
12764 (write_gdbindex): Likewise.
12765 (write_debug_names): Likewise.
12766 (assert_file_size): Likewise.
12767 (write_psymtabs_to_index): Likewise.
12768 (save_gdb_index_command): Likewise.
12769 (_initialize_dwarf2_read): Don't register the "save gdb-index"
12771 * dwarf2read.h: New file.
12773 2018-03-27 Joel Brobecker <brobecker@adacore.com>
12776 * dwarf2read.c (dwarf2_physname): Do not return the demangled
12777 symbol name if the CU's language stores symbol names in linkage
12779 * language.h (struct language_defn)
12780 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
12781 all instances of this struct.
12783 2018-03-26 Tom Tromey <tom@tromey.com>
12785 * stack.c (backtrace_command_1): Remove verbose code.
12787 2018-03-26 Tom Tromey <tom@tromey.com>
12789 * python/py-framefilter.c (py_print_type): Don't catch
12790 exceptions. Return void.
12791 (py_print_value): Likewise.
12792 (py_print_single_arg): Likewise.
12793 (enumerate_args): Don't catch exceptions.
12794 (py_print_args): Likewise.
12795 (py_print_frame): Likewise.
12796 (gdbpy_apply_frame_filter): Catch exceptions here.
12798 2018-03-26 Tom Tromey <tom@tromey.com>
12800 * stack.c (_initialize_stack): Remove trailing newlines from help
12801 text. Add "Usage" line to "backtrace" help.
12803 2018-03-26 Tom Tromey <tom@tromey.com>
12806 * python/py-framefilter.c (py_print_args): Call wrap_hint.
12808 2018-03-26 Tom Tromey <tom@tromey.com>
12810 * python/py-framefilter.c (py_print_single_arg): Return
12811 EXT_LANG_BT_ERROR from catch.
12813 2018-03-26 Tom Tromey <tom@tromey.com>
12815 PR backtrace/15584:
12816 * stack.c (backtrace_command_1): Move some code into no-filters
12819 2018-03-26 Tom Tromey <tom@tromey.com>
12821 * python/py-framefilter.c (throw_quit_or_print_exception): New
12823 (gdbpy_apply_frame_filter): Use it.
12825 2018-03-26 Tom Tromey <tom@tromey.com>
12828 * python/py-framefilter.c (py_print_type, py_print_value)
12829 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
12832 2018-03-26 Tom Tromey <tom@tromey.com>
12834 * python/py-framefilter.c (enumerate_args): Use
12835 gdb::unique_xmalloc_ptr.
12837 2018-03-26 Tom Tromey <tom@tromey.com>
12839 * python/py-framefilter.c (py_print_frame): Return
12841 (gdbpy_apply_frame_filter): Update comment.
12842 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
12844 <EXT_LANG_BT_NO_FILTERS>: Change value.
12846 2018-03-26 Tom Tromey <tom@tromey.com>
12848 PR backtrace/15582:
12849 * stack.c (backtrace_command): Parse "hide" argument.
12850 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
12851 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
12854 2018-03-26 Tom Tromey <tom@tromey.com>
12856 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
12858 (backtrace_command): Remove "fulltrace", add "flags".
12860 2018-03-26 Tom Tromey <tom@tromey.com>
12862 * stack.c (backtrace_command): Rewrite command line parsing.
12864 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12866 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
12868 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12870 * filename-seen-cache.h: Add include guard.
12872 2018-03-26 Keith Seitz <keiths@redhat.com>
12874 * symfile.c (place_section): Remove "struct" from section_addr_info
12876 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
12877 "struct" keyword from section_addr_info.
12879 2018-03-26 Alan Hayward <alan.hayward@arm.com>
12881 * regformats/regdef.h (reg): Add constructors.
12883 2018-03-25 Pedro Alves <palves@redhat.com>
12885 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
12886 if then/else bodies in var_func_name extraction.
12888 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
12890 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
12891 lookup_minimal_symbol() to find symbol entry.
12892 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
12894 2018-03-23 Keith Seitz <keiths@redhat.com>
12897 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
12898 nested type definitions for C++, too.
12900 2018-03-23 Tom Tromey <tom@tromey.com>
12902 * machoread.c (struct oso_el): Add a constructor. Don't define as
12904 (macho_register_oso): Remove.
12905 (macho_symtab_read): Take a std::vector.
12906 (oso_el_compare_name): Now a std::sort comparator.
12907 (macho_symfile_read_all_oso): Take a std::vector.
12908 (macho_symfile_read): Use std::vector. Remove cleanups.
12910 2018-03-22 Tom Tromey <tom@tromey.com>
12912 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
12913 (record_full_goto_bookmark): Use std::string.
12915 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12918 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
12921 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12923 * rs6000-tdep.c (store_insn_p): New function.
12924 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
12925 and cr_reg to their unshifted values. Use store_insn_p to
12926 match LR saves using either R1 or fdata->alloca_reg. Use
12927 store_insn_p to match CR saves. Set alloca_reg_offset
12928 when alloca_reg and framep are set. Remove lr_reg shift
12929 when assigning to fdata->lr_register.
12931 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
12933 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
12934 command line args instead of emitting a warning.
12936 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12938 * tracepoint.h (struct static_tracepoint_marker): Initialize
12939 fields, define default constructor, move constructor and move
12940 assignment, disable the rest.
12941 <str_id, extra>: Make std::string.
12942 (release_static_tracepoint_marker): Remove.
12943 (free_current_marker): Remove.
12944 * tracepoint.c (free_current_marker): Remove.
12945 (parse_static_tracepoint_marker_definition): Adjust to
12946 std::string, use new hex2str overload.
12947 (release_static_tracepoint_marker): Remove.
12948 (print_one_static_tracepoint_marker): Get marker by reference
12949 and adjust to std::string.
12950 (info_static_tracepoint_markers_command): Adjust to std::vector
12952 * target.h (static_tracepoint_marker_p): Remove typedef.
12953 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
12954 (struct target_ops) <to_static_tracepoint_marker_at>: Return
12956 <to_static_tracepoint_markers_by_strid>: Return std::vector.
12958 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
12959 (target_debug_print_std_vector_static_tracepoint_marker): New.
12960 (target_debug_print_struct_static_tracepoint_marker_p): Rename
12962 (target_debug_print_static_tracepoint_marker_p): ... this.
12963 * target-delegates.c: Re-generate.
12964 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
12966 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
12967 (decode_static_tracepoint_spec): Adjust to std::vector.
12968 (tracepoint_print_one_detail): Adjust to std::string.
12969 (strace_marker_decode_location): Adjust to std::string.
12970 (update_static_tracepoint): Adjust to std::string, remove call
12971 to release_static_tracepoint_marker.
12972 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
12973 Adjust to std::vector.
12974 * remote.c (remote_static_tracepoint_marker_at): Return bool.
12975 (remote_static_tracepoint_markers_by_strid): Adjust to
12977 * common/rsp-low.h (hex2str): New overload with explicit count
12979 * common/rsp-low.c (hex2str): New overload with explicit count
12981 * unittests/rsp-low-selftests.c (test_hex2str): New function.
12982 (_initialize_rsp_low_selftests): Add test_hex2str test.
12983 * unittests/tracepoint-selftests.c
12984 (test_parse_static_tracepoint_marker_definition): Adjust to
12987 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12989 * tracepoint.c (parse_static_tracepoint_marker_definition):
12990 Consider case where the definition is followed by more
12992 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12993 tracepoint-selftests.c.
12994 * unittests/tracepoint-selftests.c: New.
12996 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12998 * MAINTAINERS (Write After Approval): Add Pedro Franco de
13001 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13003 * symtab.c (find_pc_sect_line): fixed indentation.
13005 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13007 * symtab.c (find_pc_sect_line): now uses binary search.
13009 2018-03-19 Tom Tromey <tom@tromey.com>
13011 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
13012 "IDENT" production.
13014 2018-03-19 Pedro Alves <palves@redhat.com>
13015 Tom Tromey <tom@tromey.com>
13017 * unittests/observable-selftests.c: New file.
13018 * common/observable.h: New file.
13019 * observable.h: New file.
13020 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
13021 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
13022 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
13023 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
13024 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
13025 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
13026 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
13027 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
13028 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
13029 python/py-breakpoint.c, python/py-finishbreakpoint.c,
13030 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
13031 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
13032 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
13033 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
13034 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
13035 tui/tui-interp.c, valops.c: Update all users.
13036 * tui/tui-hooks.c (tui_bp_created_observer)
13037 (tui_bp_deleted_observer, tui_bp_modified_observer)
13038 (tui_inferior_exit_observer, tui_before_prompt_observer)
13039 (tui_normal_stop_observer, tui_register_changed_observer):
13041 (tui_observers_token): New global.
13042 (attach_or_detach, tui_attach_detach_observers): New functions.
13043 (tui_install_hooks, tui_remove_hooks): Use
13044 tui_attach_detach_observers.
13045 * record-btrace.c (record_btrace_thread_observer): Remove.
13046 (record_btrace_thread_observer_token): New global.
13047 * observer.sh: Remove.
13048 * observer.c: Rename to observable.c.
13049 * observable.c (namespace gdb_observers): Define new objects.
13050 (observer_debug): Move into gdb_observers namespace.
13051 (struct observer, struct observer_list, xalloc_observer_list_node)
13052 (xfree_observer_list_node, generic_observer_attach)
13053 (generic_observer_detach, generic_observer_notify): Remove.
13054 (_initialize_observer): Update.
13055 Don't include observer.inc.
13056 * Makefile.in (generated_files): Remove observer.h, observer.inc.
13057 (clean mostlyclean): Likewise.
13058 (observer.h, observer.inc): Remove targets.
13059 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
13060 (COMMON_SFILES): Use observable.c, not observer.c.
13061 * .gitignore: Remove observer.h.
13063 2018-03-18 Tom Tromey <tom@tromey.com>
13065 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
13067 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
13069 2018-03-17 Tom Tromey <tom@tromey.com>
13071 * auto-load.c (auto_load_objfile_script_1): Use std::string.
13073 2018-03-17 Tom Tromey <tom@tromey.com>
13075 * target.c (class scoped_target_fd): New.
13076 (target_fileio_close_cleanup): Remove.
13077 (target_fileio_read_alloc_1): Use scoped_target_fd.
13079 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
13081 * silent-rules.mk: New.
13082 * Makefile.in: Include silent-rules.mk
13083 (srcdir, VPATH, top_srcdir): Move up.
13084 (COMPILE): Add ECHO_CXX.
13085 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
13086 (init.c): Add ECHO_INIT_C.
13087 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
13088 (version.c): Add ECHO_GEN.
13089 (printcmd.o): Add ECHO_CXX.
13090 (target-float.o): Add ECHO_CXX.
13091 (ada-exp.o): Add ECHO_CXX.
13092 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
13093 (insight$(EXEEXT)): Add ECHO_CXXLD.
13094 * gnulib/configure.ac: Add AM_SILENT_RULES.
13095 * gnulib/aclocal.m4: Re-generate.
13096 * gnulib/configure: Re-generate.
13097 * gnulib/import/Makefile.in: Re-generate.
13099 2018-03-16 Tom Tromey <tom@tromey.com>
13101 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
13102 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
13103 * utils.c (do_free_section_addr_info)
13104 (make_cleanup_free_section_addr_info): Remove.
13105 * symfile.h (struct other_sections): Add constructor.
13106 (struct section_addr_info): Remove.
13107 (section_addr_info): New typedef.
13108 (struct sym_fns) <sym_offsets>: Change type of parameter.
13109 (build_section_addr_info_from_objfile)
13110 (relative_addr_info_to_section_offsets, addr_info_make_relative)
13111 (default_symfile_offsets, symbol_file_add)
13112 (symbol_file_add_from_bfd)
13113 (build_section_addr_info_from_section_table): Update.
13114 (alloc_section_addr_info, free_section_addr_info): Don't declare.
13115 * symfile.c (alloc_section_addr_info): Remove.
13116 (build_section_addr_info_from_section_table): Change return type.
13118 (build_section_addr_info_from_bfd)
13119 (build_section_addr_info_from_objfile): Likewise.
13120 (free_section_addr_info): Remove.
13121 (relative_addr_info_to_section_offsets): Change type of "addrs".
13122 (addrs_section_compar): Now a std::sort comparator.
13123 (addrs_section_sort): Change return type.
13124 (addr_info_make_relative): Change type of "addrs". Update.
13125 (default_symfile_offsets, syms_from_objfile_1)
13126 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
13127 (symbol_file_add_separate): Update.
13128 (symbol_file_add): Change type of "addrs". Update.
13129 (add_symbol_file_command): Update. Remove cleanups.
13130 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
13132 * symfile-debug.c (debug_sym_offsets): Change type of "info".
13133 * solib.c (solib_read_symbols): Update.
13134 * objfiles.c (objfile_relocate): Update. Remove cleanups.
13135 * machoread.c (macho_symfile_offsets): Update.
13136 * jit.c (jit_bfd_try_read_symtab): Update.
13138 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
13140 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13141 unittests/utils-selftests.c.
13142 * unittests/utils-selftests.c: New file.
13144 2018-03-14 Tom Tromey <tom@tromey.com>
13147 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
13150 2018-03-14 Tom Tromey <tom@tromey.com>
13153 * printcmd.c (printf_pointer): Allow "-" in format.
13155 2018-03-14 Tom Tromey <tom@tromey.com>
13157 * printcmd.c (_initialize_printcmd): Add usage to printf.
13159 2018-03-14 Yao Qi <qiyao@sourceware.org>
13161 * MAINTAINERS: Update my email address.
13163 2018-03-13 Tom Tromey <tom@tromey.com>
13165 * machoread.c (macho_check_dsym): Change filenamep to a
13167 (macho_symfile_read): Update.
13168 * symfile.c (load_command): Use std::string.
13170 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
13172 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
13173 to error message string.
13174 (riscv_register_name): Use xsnprintf instead of sprintf.
13175 (riscv_insn::fetch_instruction): Use gdb_assert instead of
13177 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
13179 (riscv_push_dummy_call): Likewise.
13181 2018-03-12 Tom Tromey <tom@tromey.com>
13183 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
13184 Use gdb::byte_vector.
13185 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
13187 2018-03-12 Yao Qi <yao.qi@linaro.org>
13189 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
13190 parameter type to readable_regcache.
13191 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
13194 2018-03-11 Tom Tromey <tom@tromey.com>
13196 * dwarf2read.c (struct nextfield): Add initializers.
13197 (struct nextfnfield): Remove.
13198 (struct fnfieldlist): Add initializers. Remove "length" and
13199 "head", use std::vector.
13200 (struct decl_field_list): Remove.
13201 (struct field_info): Add initializers.
13202 <fields, baseclasses>: Now std::vector.
13203 <nbaseclasses, nfnfields, typedef_field_list_count,
13204 nested_types_list_count>: Remove.
13205 (dwarf2_add_field, dwarf2_add_type_defn)
13206 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
13207 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
13208 (process_structure_scope): Update.
13210 2018-03-11 Tom Tromey <tom@tromey.com>
13212 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
13213 for use by std::sort.
13214 (build_type_psymtabs_1): Use std::vector.
13216 2018-03-09 Eli Zaretskii <eliz@gnu.org>
13218 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
13219 and LIBMPFR in the printed configuration.
13221 2018-03-08 Tom Tromey <tom@tromey.com>
13223 * source.c (get_filename_and_charpos): Use scoped_fd.
13224 * nto-procfs.c (procfs_open_1): Use scoped_fd.
13225 (procfs_pidlist): Likewise.
13226 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
13227 (iterate_over_mappings): Likewise.
13229 2018-03-08 Tom Tromey <tom@tromey.com>
13231 * infcall.c (struct call_return_meta_info)
13232 <stack_temporaries_enabled>: Remove.
13233 (get_call_return_value, call_function_by_hand_dummy): Update.
13234 * thread.c (disable_thread_stack_temporaries): Remove.
13235 (enable_thread_stack_temporaries): Remove.
13236 (thread_stack_temporaries_enabled_p): Return bool.
13237 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
13238 (get_last_thread_stack_temporary): Update.
13239 * eval.c (evaluate_subexp): Update.
13240 * gdbthread.h (class enable_thread_stack_temporaries): Now a
13241 class, not a function.
13242 (value_ptr, value_vec): Remove typedefs.
13243 (class thread_info) <stack_temporaries_enabled>: Now bool.
13244 <stack_temporaries>: Now a std::vector.
13245 (thread_stack_temporaries_enabled_p)
13246 (value_in_thread_stack_temporaries): Return bool.
13248 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
13250 * remote.c (putpkt_binary): Fix omitted bytes reporting.
13251 (getpkt_or_notif_sane_1): Likewise.
13253 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13255 * build-id.c (build_id_to_debug_bfd): Use std::string.
13257 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13259 * build-id.c (find_separate_debug_file_by_buildid): Return
13261 * build-id.h (find_separate_debug_file_by_buildid): Return
13263 * coffread.c (coff_symfile_read): Adjust to std::string.
13264 * elfread.c (elf_symfile_read): Adjust to std::string.
13265 * symfile.c (separate_debug_file_exists): Change parameter to
13267 (find_separate_debug_file): Return std::string.
13268 (find_separate_debug_file_by_debuglink): Return std::string.
13269 * symfile.h (find_separate_debug_file_by_debuglink): Return
13272 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13274 * common/xml-utils.c (xml_escape_text): Move code to...
13275 (xml_escape_text_append): ... this new function.
13276 * common/xml-utils.h (xml_escape_text_append): New declaration.
13277 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
13279 (_initialize_xml_utils): register test_xml_escape_text_append as
13282 2018-03-07 Alan Hayward <alan.hayward@arm.com>
13284 * defs.h: Remove MAX_REGISTER_SIZE.
13285 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
13287 * python/py-unwind.c (pyuw_sniffer): Likewise.
13289 2018-03-07 Tom Tromey <tom@tromey.com>
13291 * linux-tdep.c (linux_info_proc): Update.
13292 * target.h (struct target_ops) <to_fileio_readlink>: Return
13294 (target_fileio_readlink): Return optional<string>.
13295 * remote.c (remote_hostio_readlink): Return optional<string>.
13296 * inf-child.c (inf_child_fileio_readlink): Return
13298 * target.c (target_fileio_readlink): Return optional<string>.
13300 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13302 * regcache.c (cooked_read_test): Add riscv to the list of
13303 architectures that have a save_reggroup.
13305 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
13307 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
13308 value is not a dynamic class object.
13310 2018-03-06 Tom Tromey <tom@tromey.com>
13312 * rust-exp.y: Formatting fixes.
13314 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13316 * riscv-tdep.c (riscv_register_name): Remove target description
13318 (riscv_gdbarch_init): Remove target description check.
13320 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13322 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
13324 * riscv-tdep.h: Likewise.
13326 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13328 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
13329 (riscv_pseudo_register_write): Delete.
13330 (riscv_gdbarch_init): Remove all use of pseudo registers.
13332 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13334 * record-btrace.c (btrace_print_lines): Replace cleanup
13335 parameter with RAII equivalents.
13336 (btrace_insn_history): Replace cleanup with RAII equivalents.
13337 * ui-out.h (make_cleanup_ui_out_list_begin_end,
13338 make_cleanup_ui_out_tuple_begin_end): Remove.
13339 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
13340 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
13341 make_cleanup_ui_out_list_begin_end): Remove.
13343 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13345 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
13346 parameter types to std::vector. Use bool.
13347 (record_btrace_wait): Replace VEC(tp_t) with
13348 std::vector<thread_info *>.
13349 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
13351 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13353 * record-btrace.c (record_btrace_disable_callback): Remove.
13354 (struct scoped_btrace_disable): New.
13355 (record_btrace_open): Use scoped_btrace_disable.
13357 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13359 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
13360 reading values from registers.
13362 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13364 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
13367 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13369 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
13370 change parameter type. Use GDB's print functions, and use
13371 core_addr_to_string where appropriate.
13372 (riscv_push_dummy_call): Use core_addr_to_string where
13373 appropriate, update call to riscv_print_arg_location, and reindent
13375 (riscv_return_value): Update call to riscv_print_arg_location.
13377 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13378 Tim Newsome <tim@sifive.com>
13379 Albert Ou <a0u@eecs.berkeley.edu>
13380 Darius Rad <darius@bluespec.com>
13382 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
13383 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
13384 (ALLDEPFILES): Add riscv-tdep.c
13385 * configure.tgt: Add riscv support.
13386 * riscv-tdep.c: New file.
13387 * riscv-tdep.h: New file.
13388 * NEWS: Mention new target.
13389 * MAINTAINERS: Add entry for riscv.
13391 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13393 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
13394 fields within aggregates.
13396 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
13398 * record-btrace.c (btrace_print_lines): Change type of flags to
13399 gdb_disassembly_flags.
13401 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13403 * fbsd-nat.c: Include "inf-ptrace.h".
13404 (USE_SIGTRAP_SIGINFO): Conditionally define.
13405 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
13406 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
13407 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
13409 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
13411 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
13413 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
13414 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
13415 "supports_stopped_by_hw_breakpoint" target methods.
13417 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13419 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
13420 * fbsd-nat.c (debug_fbsd_nat): New variable.
13421 (show_fbsd_nat_debug): New function.
13422 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
13423 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
13425 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13427 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
13428 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
13430 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
13431 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
13434 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13436 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
13437 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
13439 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13441 * charset.c (struct charset_vector): New.
13442 (charsets): Change type to charset_vector.
13443 (find_charset_names): Adjust.
13445 (_initialize_charset): Adjust.
13447 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13449 * progspace.h (struct program_space) <deleted_solibs>: Change
13450 type to std::vector<std::string>.
13451 * progspace.c (clear_program_space_solib_cache): Adjust.
13452 * breakpoint.c (print_solib_event): Adjust.
13453 (check_status_catch_solib): Adjust.
13454 * solib.c (update_solib_list): Adjust.
13455 * ui-out.h (class ui_out) <field_string>: New overload.
13456 * ui-out.c (ui_out::field_string): New overload.
13458 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13460 * progspace.h (struct program_space): Add constructor and
13461 destructor, initialize fields.
13462 (add_program_space): Remove.
13463 * progspace.c (add_program_space): Rename to...
13464 (program_space::program_space): ... this.
13465 (release_program_space): Rename to...
13466 (program_space::~program_space): ... this.
13467 (delete_program_space): Use delete to delete program_space.
13468 (initialize_progspace): Use new to allocate program_space.
13469 * inferior.c (add_inferior_with_spaces): Likewise.
13470 (clone_inferior_command): Likewise.
13471 * infrun.c (follow_fork_inferior): Likewise.
13472 (handle_vfork_child_exec_or_exit): Likewise.
13474 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13476 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
13477 (delim_string_to_char_ptr_vec): Return std::vector of
13478 gdb::unique_xmalloc_ptr.
13479 (dirnames_to_char_ptr_vec_append): Take std::vector of
13480 gdb::unique_xmalloc_ptr.
13481 (dirnames_to_char_ptr_vec): Return std::vector of
13482 gdb::unique_xmalloc_ptr.
13483 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
13484 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
13485 (delim_string_to_char_ptr_vec): Return an std::vector of
13486 gdb::unique_xmalloc_ptr, adjust the code.
13487 (dirnames_to_char_ptr_vec_append): Take an std::vector of
13488 gdb::unique_xmalloc_ptr, adjust the code.
13489 (dirnames_to_char_ptr_vec): Return an std::vector of
13490 gdb::unique_xmalloc_ptr, adjust the code.
13491 * auto-load.c (auto_load_safe_path_vec): Change type to
13492 std::vector of gdb::unique_xmalloc_ptr.
13493 (auto_load_expand_dir_vars): Return an std::vector of
13494 gdb::unique_xmalloc_ptr, adjust the code.
13495 (auto_load_safe_path_vec_update): Adjust.
13496 (filename_is_in_auto_load_safe_path_vec): Adjust.
13497 (auto_load_objfile_script_1): Adjust.
13498 * build-id.c (build_id_to_debug_bfd): Adjust.
13499 * linux-thread-db.c (thread_db_load_search): Adjust.
13500 * source.c (add_path): Adjust.
13502 * symfile.c (find_separate_debug_file): Adjust.
13503 * utils.c (do_free_char_ptr_vec): Remove.
13504 (make_cleanup_free_char_ptr_vec): Remove.
13506 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
13509 * common/pathstuff.c: Conditionally include "<windows.h>".
13511 2018-03-01 Georg Sauthoff <mail@georg.so>
13514 * gcore.in: Quote variables and switch interpreter to bash.
13516 2018-03-01 Tom Tromey <tom@tromey.com>
13518 * dwarf2read.c (alloc_discriminant_info): Fix default_index
13519 assertion. Add assertion for discriminant_index.
13520 (quirk_rust_enum): Use correct base type name in univariant case.
13522 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
13524 * record.c (get_call_history_modifiers): Return a
13525 record_print_flags.
13526 (cmd_record_call_history): Adjust.
13527 * record-btrace.c (record_btrace_call_history): Adjust.
13528 (record_btrace_call_history_range): Adjust.
13529 (record_btrace_call_history_from): Adjust.
13530 * target-debug.h (target_debug_print_record_print_flags): New.
13531 * target-delegates.c: Re-generate.
13532 * target.c (target_call_history): Change flags type.
13533 (target_call_history_from): Likewise.
13534 (target_call_history_range): Likewise.
13535 * target.h (struct target_ops) <target_call_history>: Likewise.
13536 (target_call_history_from): Likewise.
13537 (target_call_history_range): Likewise.
13539 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13540 Simon Marchi <simon.marchi@polymtl.ca>
13542 * common/common-utils.c: Include "sys/stat.h".
13543 (is_regular_file): Move here from "source.c"; change return
13545 * common/common-utils.h (is_regular_file): New prototype.
13546 * common/pathstuff.c (contains_dir_separator): New function.
13547 * common/pathstuff.h (contains_dir_separator): New prototype.
13548 * source.c: Don't include "sys/stat.h".
13549 (is_regular_file): Move to "common/common-utils.c".
13551 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13553 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
13554 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
13555 * auto-load.c: Include "common/pathstuff.h".
13556 * common/common-def.h (current_directory): Move here.
13557 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
13559 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
13561 * common/pathstuff.c: New file.
13562 * common/pathstuff.h: New file.
13563 * compile/compile.c: Include "common/pathstuff.h".
13564 * defs.h (current_directory): Move to "common/common-defs.h".
13565 * dwarf2read.c: Include "common/pathstuff.h".
13566 * exec.c: Likewise.
13567 * guile/scm-safe-call.c: Likewise.
13568 * linux-thread-db.c: Likewise.
13569 * main.c: Likewise.
13570 * nto-tdep.c: Likewise.
13571 * objfiles.c: Likewise.
13572 * source.c: Likewise.
13573 * symtab.c: Likewise.
13574 * utils.c: Include "common/pathstuff.h".
13575 (gdb_realpath): Move to "common/pathstuff.c".
13576 (gdb_realpath_keepfile): Likewise.
13577 (gdb_abspath): Likewise.
13578 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
13579 (gdb_realpath_keepfile): Likewise.
13580 (gdb_abspath): Likewise.
13582 2018-02-28 John Baldwin <jhb@FreeBSD.org>
13584 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
13585 wildcard process pid for super_resume for kernels with a
13588 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
13590 * compile/compile.c (get_args): Add additional comments
13591 explaining function.
13593 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
13594 Tom Tromey <tom@tromey.com>
13596 * target.h (memory_write_request_s): Remove typedef. Don't define
13598 (target_write_memory_blocks): Change argument to std::vector.
13599 (struct memory_write_request): Add constructor.
13600 * target-memory.c (compare_block_starting_address): Return bool.
13601 Change argument types.
13602 (claim_memory): Change arguments to use std::vector.
13603 (split_regular_and_flash_blocks, blocks_to_erase)
13604 (compute_garbled_blocks): Likewise.
13605 (cleanup_request_data, cleanup_write_requests_vector): Remove.
13606 (target_write_memory_blocks): Change argument to std::vector.
13607 * symfile.c (struct load_section_data): Add constructor and
13608 destructor. Use std::vector for "requests".
13609 (struct load_progress_data): Add initializers.
13610 (load_section_callback): Update. Use "new".
13611 (clear_memory_write_data): Remove.
13612 (generic_load): Update.
13614 2018-02-27 Alan Hayward <alan.hayward@arm.com>
13616 * arch/aarch64.h: Use common/tdesc.h.
13618 2018-02-26 Maciej W. Rozycki <macro@mips.com>
13620 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
13621 architecture with a 64-bit ABI.
13623 2018-02-26 Maciej W. Rozycki <macro@mips.com>
13625 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
13626 ahead of target description loading.
13628 2018-02-26 Tom Tromey <tom@tromey.com>
13630 * stack.c (backtrace_command_1): Update.
13631 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
13633 * python/py-framefilter.c (py_print_frame)
13634 (gdbpy_apply_frame_filter): Change type of "flags".
13635 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
13637 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
13638 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
13639 * extension.h (enum frame_filter_flag): Rename from
13640 frame_filter_flags.
13641 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
13642 (apply_ext_lang_frame_filter): Change type of "flags".
13643 * extension.c (apply_ext_lang_frame_filter): Change type of
13645 * extension-priv.h (struct extension_language_ops)
13646 <apply_frame_filter>: Change type of "flags".
13648 2018-02-26 Tom Tromey <tom@tromey.com>
13651 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
13652 off-by-one in py_end computation.
13653 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
13655 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
13658 2018-02-26 Tom Tromey <tom@tromey.com>
13660 * dwarf2read.c (struct variant_field): New.
13661 (struct nextfield) <variant>: New field.
13662 (dwarf2_add_field): Handle DW_TAG_variant_part.
13663 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
13664 discriminated union.
13665 (read_structure_type): Handle DW_TAG_variant_part.
13666 (handle_struct_member_die): New function, extracted from
13667 process_structure_scope. Handle DW_TAG_variant.
13668 (process_structure_scope): Handle discriminated unions. Call
13669 handle_struct_member_die.
13671 2018-02-26 Tom Tromey <tom@tromey.com>
13673 * rust-lang.h (rust_last_path_segment): Declare.
13674 * rust-lang.c (rust_last_path_segment): Now public. Change
13676 (struct disr_info): Remove.
13677 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
13678 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
13679 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
13680 (rust_enum_p, rust_enum_variant): New function.
13681 (rust_underscore_fields): Remove "offset" parameter.
13682 (rust_print_enum): New function.
13683 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
13684 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
13685 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
13687 (rust_internal_print_type): New function, from rust_print_type.
13689 (rust_print_type): Call rust_internal_print_type.
13690 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
13691 Update enum handling.
13692 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
13693 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
13694 (rust_union_quirks): New functions.
13695 (process_full_comp_unit, process_full_type_unit): Call
13697 (process_structure_scope): Update rust_unions if necessary.
13699 2018-02-26 Tom Tromey <tom@tromey.com>
13701 * value.h (value_union_variant): Declare.
13702 * valops.c (value_union_variant): New function.
13703 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
13704 (struct discriminant_info): New.
13705 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
13707 (struct main_type) <flag_discriminated_union>: New field.
13709 2018-02-26 Tom Tromey <tom@tromey.com>
13711 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13712 unittests/unpack-selftests.c.
13713 * unittests/unpack-selftests.c: New file.
13714 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
13716 2018-02-26 Yao Qi <yao.qi@linaro.org>
13718 * dwarf2read.c (struct partial_die_info) <read>: New method.
13719 (read_partial_die): Remove the declaration.
13720 (load_partial_dies): Update.
13721 (partial_die_info::partial_die_info):
13722 (read_partial_die): Change it to partial_die_info::read.
13724 2018-02-26 Yao Qi <yao.qi@linaro.org>
13726 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
13727 (fixup_partial_die): Remove declaration.
13728 (scan_partial_symbols): Update.
13729 (partial_die_parent_scope): Likewise.
13730 (partial_die_full_name): Likewise.
13731 (fixup_partial_die): Change it to partial_die_info::fixup.
13733 2018-02-26 Yao Qi <yao.qi@linaro.org>
13735 * dwarf2read.c (read_partial_die): Update the declaration.
13736 (load_partial_dies): Caller update.
13737 (read_partial_die): Remove one argument abbrev_len.
13739 2018-02-26 Yao Qi <yao.qi@linaro.org>
13741 * dwarf2read.c (struct partial_die_info): Add ctor, delete
13742 assignment operator.
13743 (load_partial_dies): Use ctor and copy ctor.
13744 (read_partial_die): Update.
13745 (dwarf2_cu::find_partial_die): Use ctor.
13747 2018-02-26 Yao Qi <yao.qi@linaro.org>
13749 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
13750 (find_partial_die_in_comp_unit): Change it to
13751 dwarf2_cu::find_partial_die.
13752 (find_partial_die): Update.
13754 2018-02-26 Yao Qi <yao.qi@linaro.org>
13756 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
13759 2018-02-26 Yao Qi <yao.qi@linaro.org>
13761 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
13763 2018-02-26 Alan Hayward <alan.hayward@arm.com>
13765 * arch/amd64.h: Use common/tdesc.h.
13766 * arch/i386.c: Likewise.
13767 * arch/i386.h: Likewise.
13768 * arch/tic6x.c: Likewise.
13769 * arch/tdesc.h: Move file from here...
13770 * common/tdesc.h: ...to here.
13771 * features/aarch64-core.c: Regenerate.
13772 * features/aarch64-fpu.c: Regenerate.
13773 * features/i386/32bit-avx.c: Regenerate.
13774 * features/i386/32bit-avx512.c: Regenerate.
13775 * features/i386/32bit-core.c: Regenerate.
13776 * features/i386/32bit-linux.c: Regenerate.
13777 * features/i386/32bit-mpx.c: Regenerate.
13778 * features/i386/32bit-pkeys.c: Regenerate.
13779 * features/i386/32bit-sse.c: Regenerate.
13780 * features/i386/64bit-avx.c: Regenerate.
13781 * features/i386/64bit-avx512.c: Regenerate.
13782 * features/i386/64bit-core.c: Regenerate.
13783 * features/i386/64bit-linux.c: Regenerate.
13784 * features/i386/64bit-mpx.c: Regenerate.
13785 * features/i386/64bit-pkeys.c: Regenerate.
13786 * features/i386/64bit-segments.c: Regenerate.
13787 * features/i386/64bit-sse.c: Regenerate.
13788 * features/i386/x32-core.c: Regenerate.
13789 * features/tic6x-c6xp.c: Regenerate.
13790 * features/tic6x-core.c: Regenerate.
13791 * features/tic6x-gp.c: Regenerate.
13792 * target-descriptions.c: Use common/tdesc.h.
13793 * target-descriptions.h: Likewise.
13795 2018-02-24 Tom Tromey <tom@tromey.com>
13797 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
13798 (try_thread_db_load_from_dir, thread_db_load_search): Use
13800 (info_auto_load_libthread_db_compare): Return bool. Change
13802 (info_auto_load_libthread_db): Use std::vector, std::string.
13805 2018-02-24 Tom Tromey <tom@tromey.com>
13807 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
13809 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
13811 * gdbarch.c: Rebuild.
13812 * gdbarch.h: Rebuild.
13813 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
13814 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
13815 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
13818 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
13820 * gdbtypes.h (sect_offset): Change type to uint64_t.
13821 (sect_offset_str): New function.
13822 * dwarf2read.c (create_addrmap_from_aranges): Use
13824 (error_check_comp_unit_head): Likewise.
13825 (create_debug_type_hash_table): Likewise.
13826 (read_cutu_die_from_dwo): Likewise.
13827 (init_cutu_and_read_dies): Likewise.
13828 (init_cutu_and_read_dies_no_follow): Likewise.
13829 (process_psymtab_comp_unit_reader): Likewise.
13830 (partial_die_parent_scope): Likewise.
13831 (peek_die_abbrev): Likewise.
13832 (process_queue): Likewise.
13833 (dwarf2_physname): Likewise.
13834 (read_namespace_alias): Likewise.
13835 (read_import_statement): Likewise.
13836 (create_dwo_cu_reader): Likewise.
13837 (create_cus_hash_table): Likewise.
13838 (lookup_dwo_cutu): Likewise.
13839 (inherit_abstract_dies): Likewise.
13840 (read_func_scope): Likewise.
13841 (read_call_site_scope): Likewise.
13842 (dwarf2_add_member_fn): Likewise.
13843 (read_common_block): Likewise.
13844 (read_module_type): Likewise.
13845 (read_typedef): Likewise.
13846 (read_subrange_type): Likewise.
13847 (load_partial_dies): Likewise.
13848 (read_partial_die): Likewise.
13849 (find_partial_die): Likewise.
13850 (read_str_index): Likewise.
13851 (dwarf2_string_attr): Likewise.
13852 (build_error_marker_type): Likewise.
13853 (lookup_die_type): Likewise.
13854 (dump_die_shallow): Likewise.
13855 (follow_die_ref): Likewise.
13856 (dwarf2_fetch_die_loc_sect_off): Likewise.
13857 (dwarf2_fetch_constant_bytes): Likewise.
13858 (follow_die_sig): Likewise.
13859 (get_signatured_type): Likewise.
13860 (get_DW_AT_signature_type): Likewise.
13861 (dwarf2_find_containing_comp_unit): Likewise.
13862 (set_die_type): Likewise.
13864 2018-02-21 John Baldwin <jhb@FreeBSD.org>
13866 * arch/aarch64.c: Include "common-defs.h".
13867 * arch/amd64.c: Likewise.
13868 * arch/i386.c: Likewise.
13870 2018-02-21 Tom Tromey <tom@tromey.com>
13872 * value.h: (extract_field_op): Update.
13873 * eval.c (extract_field_op): Return a const char *.
13874 * expression.h (parse_expression_for_completion): Update.
13875 * completer.c (complete_expression): Update.
13876 (add_struct_fields): Make fieldname const.
13877 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
13878 (mark_completion_tag, parse_exp_in_context_1): Update.
13879 (parse_expression_for_completion): Change "name" to
13880 unique_xmalloc_ptr*.
13882 2018-02-21 Tom Tromey <tom@tromey.com>
13884 * infcall.c (call_function_by_hand_dummy): Use std::vector.
13886 2018-02-21 Yao Qi <yao.qi@linaro.org>
13888 * avr-tdep.c (avr_read_pc): Change parameter type to
13890 * gdbarch.sh (read_pc): Likewise.
13891 * gdbarch.c: Re-generated.
13892 * gdbarch.h: Re-generated.
13893 * hppa-tdep.c (hppa_read_pc): Change parameter type to
13895 * ia64-tdep.c (ia64_read_pc): Likewise.
13896 * mips-tdep.c (mips_read_pc): Likewise.
13897 * spu-tdep.c (spu_read_pc): Likewise.
13899 2018-02-21 Yao Qi <yao.qi@linaro.org>
13901 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
13902 * regcache-dump.c: New file.
13903 * regcache.c: Move register_dump to regcache-dump.c.
13904 (maintenance_print_registers): Likewise.
13905 (maintenance_print_raw_registers): Likewise.
13906 (maintenance_print_cooked_registers): Likewise.
13907 (maintenance_print_register_groups): Likewise.
13908 (maintenance_print_remote_registers): Likewise.
13909 (_initialize_regcache): Likewise.
13910 * regcache.h (register_dump): Moved from regcache.c.
13912 2018-02-21 Yao Qi <yao.qi@linaro.org>
13914 * regcache.c (regcache::regcache): Update.
13915 (regcache::invalidate): Move it to detached_regcache::invalidate.
13916 (get_thread_arch_aspace_regcache): Update.
13917 (regcache::raw_update): Update.
13918 (regcache::cooked_read): Remove some code.
13919 (regcache::cooked_read_value): Likewise.
13920 (regcache::raw_write): Remove assert on m_readonly_p.
13921 (regcache::raw_supply_integer): Move it to
13922 detached_regcache::raw_supply_integer.
13923 (regcache::raw_supply_zeroed): Likewise.
13924 * regcache.h (detached_regcache) <raw_supply_integer>: New
13926 <raw_supply_zeroed, invalidate>: Likewise.
13927 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
13928 <invalidate>: Likewise.
13929 <m_readonly_p>: Removed.
13931 2018-02-21 Yao Qi <yao.qi@linaro.org>
13933 * infcmd.c (get_return_value): Let stop_regs point to
13934 get_current_regcache.
13935 * regcache.c (regcache::regcache): Remove.
13936 (register_dump_reg_buffer): New class.
13937 (regcache_print): Adjust.
13938 * regcache.h (regcache): Remove constructors.
13940 2018-02-21 Yao Qi <yao.qi@linaro.org>
13942 * regcache.c (class register_dump): New class.
13943 (register_dump_regcache, register_dump_none): New class.
13944 (register_dump_remote, register_dump_groups): New class.
13945 (regcache_print): Update.
13946 * regcache.h (regcache_dump_what): Move it to regcache.c.
13947 (regcache) <dump>: Remove.
13949 2018-02-21 Yao Qi <yao.qi@linaro.org>
13951 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
13953 (jit_unwind_reg_set_impl): Call raw_supply.
13954 (jit_frame_sniffer): Use reg_buffer_rw.
13955 * record-full.c (record_full_core_regbuf): Change its type.
13956 (record_full_core_open_1): Use reg_buffer_rw.
13957 (record_full_close): Likewise.
13958 (record_full_core_fetch_registers): Use regcache->raw_supply.
13959 (record_full_core_store_registers): Likewise.
13960 * regcache.c (regcache::get_register_status): Move it to
13962 (regcache_raw_set_cached_value): Remove.
13963 (regcache::raw_set_cached_value): Remove.
13964 (regcache::raw_write): Call raw_supply.
13965 (regcache::raw_supply): Move it to reg_buffer_rw.
13966 * regcache.h (regcache_raw_set_cached_value): Remove.
13967 (reg_buffer_rw): New class.
13969 2018-02-21 Yao Qi <yao.qi@linaro.org>
13971 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
13972 readonly_detached_regcache.
13973 (dummy_frame_prev_register): Use regcache->cooked_read.
13974 * frame.c (frame_save_as_regcache): Change return type.
13975 (frame_pop): Update.
13976 * frame.h (frame_save_as_regcache): Update declaration.
13977 * inferior.h (get_infcall_suspend_state_regcache): Update
13979 * infrun.c (infcall_suspend_state) <registers>: use
13980 readonly_detached_regcache.
13981 (save_infcall_suspend_state): Don't use regcache_dup.
13982 (get_infcall_suspend_state_regcache): Change return type.
13983 * linux-fork.c (struct fork_info) <savedregs>: Change to
13984 readonly_detached_regcache.
13986 (fork_save_infrun_state): Don't use regcache_dup.
13987 (info_checkpoints_command): Adjust.
13988 * mi/mi-main.c (register_changed_p): Update declaration.
13989 (mi_cmd_data_list_changed_registers): Use
13990 readonly_detached_regcache.
13991 (register_changed_p): Change parameter type to
13992 readonly_detached_regcache.
13993 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
13994 readonly_detached_regcache.
13995 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
13996 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
13998 (regcache::save): Move it to reg_buffer.
13999 (regcache::restore): Change parameter type.
14000 (regcache_dup): Remove.
14001 * regcache.h (reg_buffer) <save>: New method.
14002 (readonly_detached_regcache): New class.
14003 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
14004 readonly_detached_regcache.
14005 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
14007 2018-02-21 Yao Qi <yao.qi@linaro.org>
14009 * frame.c (frame_save_as_regcache): Use regcache method save.
14010 (frame_pop): Use regcache method restore.
14011 * infrun.c (restore_infcall_suspend_state): Likewise.
14012 * linux-fork.c (fork_load_infrun_state): Likewise.
14013 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
14015 * regcache.c (regcache_save): Remove.
14016 (regcache::restore): More asserts.
14017 (regcache_cpy): Remove.
14018 * regcache.h (regcache_save): Remove the declaration.
14019 (regcache::restore): Move from private to public.
14020 Remove the friend declaration of regcache_cpy.
14021 (regcache_cpy): Remove declaration.
14023 2018-02-21 Yao Qi <yao.qi@linaro.org>
14025 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
14026 parameter type to 'readable_regcache *'.
14027 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14028 * arm-tdep.c (arm_neon_quad_read): Likewise.
14029 (arm_pseudo_read): Likewise.
14030 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14031 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14032 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14033 * gdbarch.c: Re-generated.
14034 * gdbarch.h: Re-generated.
14035 * gdbarch.sh (pseudo_register_read): Change parameter type to
14036 'readable_regcache *'.
14037 (pseudo_register_read_value): Likewise.
14038 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
14039 (h8300_pseudo_register_read): Likewise.
14040 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
14041 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14042 (i386_pseudo_register_read_into_value): Likewise.
14043 (i386_pseudo_register_read_value): Likewise.
14044 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
14046 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
14047 * m32c-tdep.c (m32c_raw_read): Likewise.
14048 (m32c_read_flg): Likewise.
14049 (m32c_banked_register): Likewise.
14050 (m32c_banked_read): Likewise.
14051 (m32c_sb_read): Likewise.
14052 (m32c_part_read): Likewise.
14053 (m32c_cat_read): Likewise.
14054 (m32c_r3r2r1r0_read): Likewise.
14055 (m32c_pseudo_register_read): Likewise.
14056 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14057 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14058 (mep_pseudo_cr64_read): Likewise.
14059 (mep_pseudo_register_read): Likewise.
14060 * mips-tdep.c (mips_pseudo_register_read): Likewise.
14061 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14062 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14063 * regcache.c (regcache::raw_read): Move it to readable_regcache.
14064 (regcache::cooked_read): Likewise.
14065 (regcache::cooked_read_value): Likewise.
14066 (regcache_cooked_read_signed):
14067 (regcache::cooked_read): Likewise.
14068 * regcache.h (readable_regcache): New class.
14069 (regcache): Inherit readable_regcache. Move some methods to
14071 * rl78-tdep.c (rl78_pseudo_register_read): Change
14072 parameter type to 'readable_regcache *'.
14073 * rs6000-tdep.c (do_regcache_raw_read): Remove.
14074 (e500_pseudo_register_read): Change parameter type to
14075 'readable_regcache *'.
14076 (dfp_pseudo_register_read): Likewise.
14077 (vsx_pseudo_register_read): Likewise.
14078 (efpr_pseudo_register_read): Likewise.
14079 * s390-tdep.c (s390_pseudo_register_read): Likewise.
14080 * sh-tdep.c (sh_pseudo_register_read): Likewise.
14081 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
14082 (sh64_pseudo_register_read): Likewise.
14083 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14084 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14085 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14086 (spu_pseudo_register_read): Likewise.
14087 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14088 (xtensa_pseudo_register_read): Likewise.
14090 2018-02-21 Yao Qi <yao.qi@linaro.org>
14092 * regcache.c (regcache::regcache): Call reg_buffer ctor.
14093 (regcache::arch): Move it to reg_buffer::arch.
14094 (regcache::register_buffer): Likewise.
14095 (regcache::assert_regnum): Likewise.
14096 (regcache::num_raw_registers): Likewise.
14097 * regcache.h (reg_buffer): New class.
14098 (regcache): Inherit reg_buffer.
14100 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
14102 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
14103 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
14105 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
14107 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
14109 2018-02-19 Alan Hayward <alan.hayward@arm.com>
14111 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
14112 (SFILES): Remove common/*.c files.
14113 (COMMON_OBS): Remove some *.o files built from common/*.c files.
14114 * common/common.host: Add common reference.
14115 * configure.ac: Likewise.
14116 * configure: Regenerate.
14118 2018-02-16 Yao Qi <yao.qi@linaro.org>
14120 * block.c (block_namespace_info): Inherit allocate_on_obstack.
14121 (block_initialize_namespace): Use new.
14122 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
14123 (dwarf2_free_objfile): Use delete.
14124 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
14125 (copy_type_recursive): Use new.
14126 * gdb_obstack.h (allocate_on_obstack): New.
14128 2018-02-15 Yao Qi <yao.qi@linaro.org>
14131 * inferior.c (exit_inferior_1): Reset inf->control.
14133 2018-02-15 Joel Brobecker <brobecker@adacore.com>
14135 * ada-lang.c (ada_to_fixed_value_create): Delete advance
14138 2018-02-14 Pedro Alves <palves@redhat.com>
14140 * frame-unwind.c (frame_unwind_try_unwinder): Always call
14141 frame_cleanup_after_sniffer on exception.
14143 2018-02-14 Tom Tromey <tom@tromey.com>
14145 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
14147 (solib_bfd_open): Make pathname const.
14148 * solib.c (solib_bfd_open): Make pathname const.
14149 * solib-spu.c (spu_bfd_fopen): Make name const.
14150 (spu_bfd_open): Make pathname const.
14151 * solib-darwin.c (darwin_bfd_open): Make pathname const.
14152 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
14154 2018-02-14 Tom Tromey <tom@tromey.com>
14156 * symfile.c (symfile_bfd_open): Update.
14157 * source.h (openp, source_full_path_of, find_and_open_source):
14158 Change argument type to unique_xmalloc_ptr.
14159 * source.c (openp): Take a unique_xmalloc_ptr.
14160 (source_full_path_of, find_and_open_source): Likewise.
14161 (open_source_file, symtab_to_fullname): Update.
14162 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
14163 unique_xmalloc_ptr.
14164 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
14165 (exec_file_find): Update.
14166 * psymtab.c (psymtab_to_fullname): Update.
14167 * nto-tdep.h (nto_find_and_open_solib): Update.
14168 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
14169 unique_xmalloc_ptr.
14170 * exec.c (exec_file_attach): Update.
14171 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
14172 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
14174 2018-02-14 Tom Tromey <tom@tromey.com>
14176 * solib.c: Include source.h.
14177 * nto-tdep.c: Include source.h.
14178 * mi/mi-cmd-env.c: Include source.h.
14179 * infcmd.c: Include source.h.
14180 * exec.c: Include source.h.
14181 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
14182 (add_path, directory_switch, source_path, init_source_path): Move
14184 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
14185 (add_path, directory_switch, source_path, init_source_path):
14188 2018-02-14 Tom Tromey <tom@tromey.com>
14190 * solist.h (exec_file_find, solib_find): Return
14191 unique_xmalloc_ptr.
14192 (solib_bfd_fopen): Take a const char *.
14193 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
14194 (exec_file_find, solib_find): Likewise.
14195 (solib_bfd_fopen): Do not take ownership of "pathname".
14196 (solib_bfd_open): Use unique_xmalloc_ptr.
14197 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
14198 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
14199 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
14200 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
14202 2018-02-14 Joel Brobecker <brobecker@adacore.com>
14204 * ada-lang.c (name_match_type_from_name): Remove reference to
14205 ada_name_for_lookup in function's documentation.
14206 * ada-lang.h (ada_name_for_lookup): Delete declaration.
14208 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14210 * defs.h (enum openp_flags): New enum.
14211 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
14212 Move to enum openp_flags.
14213 (openp_flags): New enum flags.
14214 (openp): Change parameter type to openp_flags.
14215 * source.c (openp): Change parameter type to openp_flags.
14216 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
14217 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
14219 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14221 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
14224 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
14226 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
14228 (class dwarf2_queue_guard): ...the destructor of this new class.
14229 (dw2_do_instantiate_symtab): Create instance of the new class
14230 dwarf2_queue_guard, remove cleanup.
14232 2018-02-09 Tom Tromey <tom@tromey.com>
14234 * source.c (find_source_lines): Don't reference past the end of
14237 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14239 * remote.c (remote_btrace_maybe_reopen): Change error message.
14240 * btrace.c (btrace_enable): Likewise.
14241 (parse_xml_btrace): Likewise.
14242 (parse_xml_btrace_conf): Likewise.
14244 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14246 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
14247 (linux_enable_pt, linux_enable_bts): Call
14248 diagnose_perf_event_open_fail.
14250 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14252 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
14253 Remove parameter and change return type. Update callers. Move it.
14254 (linux_enable_bts, linux_enable_pt): Improve error message.
14255 (linux_enable_pt): Remove zero buffer size check.
14256 (linux_enable_btrace): Improve error messages. Remove NULL return
14259 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14261 * btrace.c (btrace_enable): Remove target_supports_btrace call.
14262 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
14263 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
14264 (linux_supports_pt, linux_supports_btrace): Remove.
14265 (linux_enable_bts): Call cpu_supports_bts.
14266 * nat/linux-btrace.h (linux_supports_btrace): Remove.
14267 * remote.c (remote_supports_btrace): Remove.
14268 (init_remote_ops): Remove remote_supports_btrace.
14269 * target-delegates.c: Regenerated.
14270 * target.c (target_supports_btrace): Remove.
14271 * target.h (target_ops) <to_supports_btrace>: Remove
14272 (target_supports_btrace): Remove.
14273 * x86-linux-nat.c (x86_linux_create_target): Remove
14274 linux_supports_btrace.
14276 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14278 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
14280 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
14281 exception and use message in own exception.
14283 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14285 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
14286 (perf_event_pt_event_type): Use gdb_file_up.
14287 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
14288 scoped_fd, and scoped_mmap.
14290 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14292 * common/scoped_mmap.h: New.
14293 * unittests/scoped_mmap-selftest.c: New.
14294 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14295 unittests/scoped_mmap-selftest.c.
14297 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14299 * common/scoped_fd.h: New.
14300 * unittests/scoped_fd-selftest.c: New.
14301 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14302 unittests/scoped_fd-selftest.c.
14304 2018-02-09 Tom Tromey <tom@tromey.com>
14306 * auto-load.c (auto_load_section_scripts): Use
14307 gdb::unique_xmalloc_ptr.
14309 2018-02-09 Tom Tromey <tom@tromey.com>
14311 * auto-load.c (execute_script_contents): Use std::string.
14313 2018-02-09 Joel Brobecker <brobecker@adacore.com>
14315 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
14316 Python function, rather than a new command.
14318 2018-02-08 Tom Tromey <tom@tromey.com>
14320 * solib.c (solib_find_1): Use std::string.
14321 (solib_bfd_fopen): Use unique_xmalloc_ptr.
14323 2018-02-08 Tom Tromey <tom@tromey.com>
14325 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
14327 2018-02-08 Tom Tromey <tom@tromey.com>
14329 * source.c (find_source_lines): Use gdb::def_vector.
14331 2018-02-08 Tom Tromey <tom@tromey.com>
14333 * macrocmd.c (struct temporary_macro_definition): New.
14334 (macro_define_command): Use temporary_macro_definition. Remove
14336 (free_macro_definition_ptr): Remove.
14338 2018-02-08 Tom Tromey <tom@tromey.com>
14340 * macroexp.c (maybe_expand): Use std::string.
14342 2018-02-08 Tom Tromey <tom@tromey.com>
14344 * macroexp.c (struct macro_buffer): Add initializers for some
14346 (init_buffer, init_shared_buffer, free_buffer)
14347 (free_buffer_return_text): Remove.
14348 (macro_buffer): New constructors.
14349 (~macro_buffer): New destructor.
14350 (macro_buffer::set_shared): New method.
14351 (macro_buffer::resize_buffer, macro_buffer::appendc)
14352 (macro_buffer::appendmem): Now methods, not free functions.
14353 (set_token, append_tokens_without_splicing, stringify)
14354 (macro_stringify): Update.
14355 (gather_arguments): Change return type. Remove argc_p argument,
14356 add args_ptr argument. Use std::vector.
14357 (substitute_args): Remove argc argument. Accept std::vector.
14358 (expand): Update. Use std::vector.
14359 (scan, macro_expand, macro_expand_next): Update.
14361 2018-02-08 Tom Tromey <tom@tromey.com>
14363 * symtab.c (default_collect_symbol_completion_matches_break_on):
14364 Use unique_xmalloc_ptr.
14365 * macroscope.h: (sal_macro_scope, user_macro_scope)
14366 (default_macro_scope): Return unique_xmalloc_ptr.
14367 * macroscope.c (sal_macro_scope, user_macro_scope)
14368 (default_macro_scope): Return unique_xmalloc_ptr.
14369 * macroexp.h (macro_expand, macro_expand_once): Return
14370 unique_xmalloc_ptr.
14371 * macroexp.c (macro_expand, macro_expand_once): Return
14372 unique_xmalloc_ptr.
14373 * macrocmd.c (macro_expand_command, macro_expand_once_command)
14374 (info_macro_command, info_macros_command): Use
14375 unique_xmalloc_ptr.
14376 * compile/compile-c-support.c (write_macro_definitions): Use
14377 unique_xmalloc_ptr.
14378 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
14380 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
14382 * value.c (value_static_field): Assign field type instead of
14383 containing type when returning an optimized out value.
14385 2018-02-06 Yao Qi <yao.qi@linaro.org>
14387 * ft32-tdep.c (ft32_read_pc): Remove.
14388 (ft32_write_pc): Remove.
14389 (ft32_gdbarch_init): Update.
14390 * m32r-tdep.c (m32r_read_pc): Remove.
14391 (m32r_gdbarch_init): Update.
14392 * mep-tdep.c (mep_read_pc): Remove.
14393 (mep_gdbarch_init): Update.
14394 * microblaze-tdep.c (microblaze_write_pc): Remove.
14395 (microblaze_gdbarch_init): Update.
14396 * mn10300-tdep.c (mn10300_read_pc): Remove.
14397 (mn10300_write_pc): Remove.
14398 (mn10300_gdbarch_init): Update.
14399 * moxie-tdep.c (moxie_read_pc): Remove.
14400 (moxie_write_pc): Remove.
14401 (moxie_gdbarch_init): Update.
14403 2018-02-06 Yao Qi <yao.qi@linaro.org>
14405 * expprint.c (print_subexp_standard): Handle
14406 OP_F77_UNDETERMINED_ARGLIST.
14407 (dump_subexp_body_standard): Likewise.
14409 2018-02-05 Alan Hayward <alan.hayward@arm.com>
14411 * target-descriptions.c (tdesc_element_visitor) Add empty
14413 (tdesc_type): Move make_gdb_type from here.
14414 (tdesc_type_builtin): Likewise.
14415 (tdesc_type_vector): Likewise.
14416 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
14417 (make_gdb_type_struct): Move from tdesc_type_with_fields.
14418 (make_gdb_type_union): Likewise.
14419 (make_gdb_type_flags): Likewise.
14420 (make_gdb_type_enum): Likewise.
14421 (make_gdb_type): New function.
14422 (tdesc_register_type): Use static make_gdb_type.
14424 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
14426 * infcmd.c (default_print_one_register_info): Align natural-format
14427 column values consistently one under another.
14428 (pad_to_column): New function.
14430 2018-02-05 Joel Brobecker <brobecker@adacore.com>
14432 * dwarf2read.c (dwarf2_physname): Move commment.
14434 2018-02-01 Leszek Swirski <leszeks@google.com>
14436 * varobj.c (varobj_formatted_print_options): Allow recursive
14437 pretty printing if pretty printing is enabled.
14439 2018-02-01 Leszek Swirski <leszeks@google.com>
14441 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
14442 names after a structop as a filename.
14444 2018-02-01 Yao Qi <yao.qi@linaro.org>
14446 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
14447 (arm_record_coproc_data_proc): Likewise.
14449 2018-02-01 Yao Qi <yao.qi@linaro.org>
14451 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
14453 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
14455 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
14456 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
14458 2018-01-31 Pedro Alves <palves@redhat.com>
14460 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
14461 * inflow.c (child_terminal_save_inferior): Wrap reference to
14462 tcgetpgrp in HAVE_TERMIOS_H.
14463 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
14465 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
14466 always iterate over all inferiors.
14467 (gdbsim_cntrl_c): Adjust.
14468 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
14470 2018-01-31 Joel Brobecker <brobecker@adacore.com>
14472 * gdbtypes.c (lookup_array_range_type): Make sure the array's
14473 index type is objfile-owned if the element type is as well.
14475 2018-01-31 Joel Brobecker <brobecker@adacore.com>
14479 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
14481 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
14482 "features/s390x-linux64.c".
14483 (_initialize_s390_linux_tdep): Remove initialization of tdescs
14484 s390_linux32 and s390x_linux64.
14485 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
14487 * s390-tdep.c: Include "features/s390-linux32.c" and
14488 "features/s390x-linux64.c".
14489 (s390_tdesc_valid): Add check for tdesc_has_registers.
14490 (s390_gdbarch_init): Make sure there is always a valid tdesc.
14491 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
14492 tdesc_s390x_linux64.
14493 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
14494 tdesc_s390x_linux64 to...
14495 * s390-tdep.h: ...here.
14497 2018-01-30 Pedro Alves <palves@redhat.com>
14500 * config.in, configure: Regenerate.
14501 * configure.ac: Check for getpgid.
14502 * go32-nat.c (go32_pass_ctrlc): New.
14503 (go32_target): Install it.
14504 * inf-child.c (inf_child_target): Install
14505 child_terminal_save_inferior, child_pass_ctrlc and
14507 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
14508 (inf_ptrace_target): No longer install it.
14509 * infcmd.c (interrupt_target_1): Adjust.
14510 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
14511 (child_interrupt): Declare.
14512 (inferior::terminal_state): New.
14513 * inflow.c (struct terminal_info): Update comments.
14514 (inferior_process_group): Delete.
14515 (terminal_is_ours): Delete.
14516 (gdb_tty_state): New.
14517 (child_terminal_init): Adjust.
14518 (is_gdb_terminal, sharing_input_terminal_1)
14519 (sharing_input_terminal): New functions.
14520 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
14521 Set the process's actual process group in the foreground if
14522 possible. Handle is_ours_for_output/is_ours distinction. Don't
14523 mark terminal as the inferior's if not sharing GDB's terminal.
14524 Don't check attach_flag.
14525 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
14526 pass down a target_terminal_state.
14527 (child_terminal_save_inferior): New, factored out from ...
14528 (child_terminal_ours_1): ... this. Handle
14529 target_terminal_state::is_ours_for_output.
14530 (child_interrupt, child_pass_ctrlc): New.
14531 (inflow_inferior_exit): Clear the inferior's terminal_state.
14532 (copy_terminal_info): Copy the inferior's terminal state.
14533 (_initialize_inflow): Remove reference to terminal_is_ours.
14534 * inflow.h (inferior_process_group): Delete.
14535 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
14536 * procfs.c (procfs_target): Don't install procfs_interrupt.
14537 (procfs_interrupt): Delete.
14538 * remote.c (remote_serial_quit_handler): Adjust.
14539 (remote_interrupt): Remove ptid parameter. Adjust.
14540 * target-delegates.c: Regenerate.
14541 * target.c: Include "terminal.h".
14542 (target_terminal::terminal_state): Rename to ...
14543 (target_terminal::m_terminal_state): ... this.
14544 (target_terminal::init): Adjust.
14545 (target_terminal::inferior): Adjust to per-inferior
14547 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
14548 (target_terminal::ours, target_terminal::ours_for_output): Use
14549 target_terminal_is_ours_kind.
14550 (target_interrupt): Remove ptid parameter. Adjust.
14551 (default_target_pass_ctrlc): Adjust.
14552 * target.h (target_ops::to_terminal_save_inferior): New field.
14553 (target_ops::to_interrupt): Remove ptid_t parameter.
14554 (target_interrupt): Remove ptid_t parameter. Update comment.
14555 (target_pass_ctrlc): Update comment.
14556 * target/target.h (target_terminal_state): New scoped enum,
14557 factored out of ...
14558 (target_terminal::terminal_state): ... here.
14559 (target_terminal::inferior): Update comments.
14560 (target_terminal::restore_inferior): New.
14561 (target_terminal::is_inferior, target_terminal::is_ours)
14562 (target_terminal::is_ours_for_output): Adjust.
14563 (target_terminal::scoped_restore_terminal_state): Adjust to
14564 rename, and call restore_inferior() instead of inferior().
14565 (target_terminal::scoped_restore_terminal_state::m_state): Change
14567 (target_terminal::terminal_state): Rename to ...
14568 (target_terminal::m_terminal_state): ... this and change type.
14570 2018-01-30 Pedro Alves <palves@redhat.com>
14572 * linux-nat.c (wait_for_signal): New function.
14573 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
14575 (async_terminal_is_ours)
14576 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
14577 (linux_nat_add_target): Don't override
14578 to_terminal_inferior/to_terminal_ours.
14580 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
14582 * remote.c (remote_follow_fork): Don't call "detach_inferior".
14584 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
14586 * dwarf2read.c (free_dwo_files): Add forward-declaration.
14587 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
14588 dwarf2_per_objfile_free here.
14589 (dwarf2_per_objfile_free): Remove.
14590 (_initialize_dwarf2_read): Don't register
14591 dwarf2_per_objfile_free as a registry cleanup.
14593 2018-01-27 Eli Zaretskii <eliz@gnu.org>
14595 Avoid compilation errors in MinGW native builds
14597 The error is triggered by including python-internal.h, and the
14600 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
14601 from build-gnulib/import/math.h:27,
14602 from d:/usr/Python26/include/pyport.h:235,
14603 from d:/usr/Python26/include/Python.h:58,
14604 from python/python-internal.h:94,
14605 from python/py-arch.c:24:
14606 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
14610 This happens because Python headers define 'hypot' to expand t
14611 '_hypot' in the Windows builds.
14612 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
14613 'hypoth'. This avoids a compilation error.
14615 2018-01-26 Alan Hayward <alan.hayward@arm.com>
14617 * MAINTAINERS (Write After Approval): Fix ordering.
14619 2018-01-26 Alan Hayward <alan.hayward@arm.com>
14621 * MAINTAINERS (Write After Approval): Add Alan Hayward.
14623 2018-01-26 Alan Modra <amodra@gmail.com>
14625 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
14626 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
14627 Remove nop. Make const. Comment.
14628 (powerpc32_plt_stub_so_2): New.
14629 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
14630 Correct count. Update uses.
14631 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
14632 Move common code reading PLT entry word. Correct
14633 powerpc32_plt_stub PLT address calculation.
14634 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
14635 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
14636 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
14637 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
14638 (ppc64_standard_linkage8): Likewise.
14639 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
14640 Correct insns description.
14641 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
14643 2018-01-24 Pedro Alves <palves@redhat.com>
14645 GCC PR libstdc++/83906
14646 * gdbtypes.c (operator==(const dynamic_prop &,
14647 const dynamic_prop &)): New.
14648 (operator==(const range_bounds &, const range_bounds &)): New.
14649 (check_types_equal): Use them instead of memcmp.
14650 * gdbtypes.h (operator==(const dynamic_prop &,
14651 const dynamic_prop &)): Declare.
14652 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
14653 (operator==(const range_bounds &, const range_bounds &)): Declare.
14654 (operator!=(const range_bounds &, const range_bounds &)): Declare.
14656 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14658 * s390-linux-tdep.c (s390_record_address_mask)
14659 (s390_record_calc_disp_common, s390_record_calc_disp)
14660 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14661 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14662 (s390_process_record): Move to s390-tdep.c.
14663 (s390_linux_init_abi_any): Adjust.
14664 * s390-tdep.c (s390_record_address_mask)
14665 (s390_record_calc_disp_common, s390_record_calc_disp)
14666 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14667 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14668 (s390_process_record): Moved from s390-linux-tdep.c
14669 (s390_gdbarch_init): Adjust.
14671 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14673 * s390-linux-nat.c (s390-tdep.h): New include.
14674 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
14675 (HFILES_NO_SRCDIR): Add s390-tdep.h.
14676 (ALLDEPFILES): Add s390-tdep.c.
14677 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
14678 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
14679 * s390-tdep.h: ...this. New file.
14680 * s390-linux-tdep.c (s390-tdep.h): New include.
14681 (_initialize_s390_tdep): Rename to...
14682 (_initialize_s390_linux_tdep): ...this and adjust.
14683 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
14684 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
14686 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
14687 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
14688 (s390_is_partial_instruction, s390_software_single_step)
14689 (is_non_branch_ril, s390_displaced_step_copy_insn)
14690 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
14691 (s390_prologue_data, s390_addr, s390_store, s390_load)
14692 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
14693 (s390_register_call_saved, s390_guess_tracepoint_registers)
14694 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
14695 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
14696 (s390_pseudo_register_name, s390_pseudo_register_type)
14697 (s390_pseudo_register_read, s390_pseudo_register_write)
14698 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
14699 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
14700 (s390_addr_bits_remove, s390_address_class_type_flags)
14701 (s390_address_class_type_flags_to_name)
14702 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
14703 (s390_function_arg_float, s390_function_arg_vector)
14704 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
14705 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
14706 (s390_frame_align, s390_register_return_value, s390_return_value)
14707 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
14708 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
14709 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
14710 (s390_trad_frame_prev_register, s390_unwind_cache)
14711 (s390_prologue_frame_unwind_cache)
14712 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
14713 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
14714 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
14715 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
14716 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
14717 (s390_frame_base_address, s390_local_base_address)
14718 (s390_frame_base, s390_gcc_target_options)
14719 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
14720 (s390_validate_reg_range, s390_tdesc_valid)
14721 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
14722 * s390-tdep.c: ...this. New file.
14724 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14726 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
14727 (s390_process_record, s390_gdbarch_tdep_alloc)
14728 (s390_linux_init_abi_any): Use/set new hook.
14730 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14732 * s390-linux-tdep.c (osabi.h): New include.
14733 (s390_linux_init_abi_31, s390_linux_init_abi_64)
14734 (s390_linux_init_abi_any): New functions.
14735 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
14737 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14739 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
14740 tdesc_has_registers check
14742 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14744 * s390-linux-tdep.c (s390_tdesc_valid): New function.
14745 (s390_validate_reg_range): New macro.
14746 (s390_gdbarch_init): Adjust.
14748 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14750 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
14751 (s390_gdbarch_tdep_alloc): Adjust.
14752 (s390_gdbarch_init): Adjust.
14754 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14756 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
14757 <have_tdb>: Change type to bool.
14758 (s390_gdbarch_tdep_alloc): Adjust.
14759 (s390_gdbarch_init): Adjust.
14761 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14763 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
14764 (gdbarch_tdep) <have_upper, have_vx>: New fields.
14765 (s390_gdbarch_tdep_alloc): New function.
14766 (s390_gdbarch_init): Allocate tdep at start and use its fields
14767 instead of separate variables.
14769 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14771 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
14772 when looking for cached gdbarch and add comment for remaining.
14774 2018-01-22 Pedro Alves <palves@redhat.com>
14775 Sergio Durigan Junior <sergiodj@redhat.com>
14777 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
14780 2018-01-22 Maciej W. Rozycki <macro@mips.com>
14782 * MAINTAINERS: Update my company e-mail address.
14784 2018-01-22 Yao Qi <yao.qi@linaro.org>
14786 * regcache.c (cooked_write_test): New function.
14787 (_initialize_regcache): Register the test.
14789 2018-01-22 Yao Qi <yao.qi@linaro.org>
14791 * ia64-tdep.c (ia64_pseudo_register_read): Call
14792 regcache->cooked_read instead of regcache_cooked_read_unsigned.
14793 * m32c-tdep.c (m32c_cat_read): Likewise.
14794 (m32c_r3r2r1r0_read): Likewise.
14795 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14796 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14798 2018-01-22 Yao Qi <yao.qi@linaro.org>
14800 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
14801 method raw_read instead of regcache_raw_read.
14802 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14803 * arm-tdep.c (arm_neon_quad_read): Likewise.
14804 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14805 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14806 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14807 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
14808 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14809 (i386_pseudo_register_read_into_value): Likewise.
14810 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14811 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14812 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14813 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
14814 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
14815 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14816 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14817 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14818 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
14820 2018-01-22 Yao Qi <yao.qi@linaro.org>
14822 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
14823 * configure.tgt: Remove target mt.
14824 * mt-tdep.c: Remove.
14825 * regcache.c (cooked_read_test): Remove the check for mt.
14827 2018-01-22 Yao Qi <yao.qi@linaro.org>
14829 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
14830 instead of gdbarch_pseudo_register_read_value.
14832 2018-01-22 Joel Brobecker <brobecker@adacore.com>
14834 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
14837 2018-01-22 Joel Brobecker <brobecker@adacore.com>
14839 * linespec.c (create_sals_line_offset): Remove code that preserved
14840 the symtab_and_line's line number.
14842 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14844 * varobj.c (varobj_create): Don't set valid_block when creating a
14847 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14849 * varobj.c (varobj_create): Remove out of date comment.
14851 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14854 * ada-exp.y (write_var_from_sym): Pass extra parameter when
14855 updating innermost block.
14856 * parse.c (innermost_block_tracker::update): Take extra type
14857 parameter, and check types match before updating innermost block.
14858 (write_dollar_variable): Update innermost block for registers.
14859 * parser-defs.h (enum innermost_block_tracker_type): New enum.
14860 (innermost_block_tracker::innermost_block_tracker): Initialise
14862 (innermost_block_tracker::reset): Take type parameter.
14863 (innermost_block_tracker::update): Take type parameter, and pass
14864 type through as needed.
14865 (innermost_block_tracker::m_types): New member.
14866 * varobj.c (varobj_create): Pass type when reseting innermost
14869 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14871 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
14872 * ada-lang.c (resolve_subexp): Likewise.
14873 * breakpoint.c (set_breakpoint_condition) Likewise.
14874 (watch_command_1) Likewise.
14875 * c-exp.y (variable): Likewise.
14876 * d-exp.y (PrimaryExpression): Likewise.
14877 * f-exp.y (variable): Likewise.
14878 * go-exp.y (variable): Likewise.
14879 * m2-exp.y (variable): Likewise.
14880 * objfiles.c (objfile::~objfile): Likewise.
14881 * p-exp.y (variable): Likewise.
14882 * parse.c (innermost_block): Change type.
14883 * parser-defs.h (class innermost_block_tracker): New.
14884 (innermost_block): Change to innermost_block_tracker.
14885 * printcmd.c (display_command): Switch to innermost_block API.
14886 (do_one_display): Likewise.
14887 * rust-exp.y (do_one_display): Likewise.
14888 * symfile.c (clear_symtab_users): Likewise.
14889 * varobj.c (varobj_create): Switch to innermost_block API, replace
14890 use of innermost_block with block stored on varobj object.
14892 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14894 * expression.h (innermost_block): Remove declaration.
14895 * varobj.c: Add 'parser-defs.h' include.
14897 2018-01-19 Tom Tromey <tom@tromey.com>
14899 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
14900 symbols in the static and global blocks.
14902 2018-01-19 James Clarke <jrtc27@jrtc27.com>
14904 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
14905 gdb_ptrace.h, and move including gdb_wait.h ...
14906 * nat/linux-ptrace.h: ... to here.
14908 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14910 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
14911 inf_ptrace_detach_success.
14912 (inf_ptrace_detach_success): Add inferior parameter, use it
14913 instead of inferior_ptid, pass it to detach_inferior.
14914 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
14916 * inferior.c (detach_inferior): Add overload that takes an
14918 * inferior.h (detach_inferior): Likewise.
14919 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
14920 use inferior_ptid, adjust call to inf_ptrace_detach_success.
14921 * linux-thread-db.c (thread_db_detach): Use inf parameter.
14923 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14925 * target.h (struct target_ops) <to_detach>: Add inferior
14927 (target_detach): Likewise.
14928 * target.c (dispose_inferior): Pass inferior down.
14929 (target_detach): Pass inferior down. Assert that it is equal to
14930 the current inferior.
14931 * aix-thread.c (aix_thread_detach): Pass inferior down.
14932 * corefile.c (core_file_command): Pass current_inferior() down.
14933 * corelow.c (core_detach): Add inferior parameter.
14934 * darwin-nat.c (darwin_detach): Likewise.
14935 * gnu-nat.c (gnu_detach): Likewise.
14936 * inf-ptrace.c (inf_ptrace_detach): Likewise.
14937 * infcmd.c (detach_command): Pass current_inferior() down to
14939 * infrun.c (follow_fork_inferior): Pass parent_inf to
14941 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
14943 * linux-nat.c (linux_nat_detach): Add inferior parameter.
14944 * linux-thread-db.c (thread_db_detach): Likewise.
14945 * nto-procfs.c (procfs_detach): Likewise.
14946 * procfs.c (procfs_detach): Likewise.
14947 * record.c (record_detach): Likewise.
14948 * record.h (struct inferior): Forward-declare.
14949 (record_detach): Add inferior parameter.
14950 * remote-sim.c (gdbsim_detach): Likewise.
14951 * remote.c (remote_detach_1): Likewise.
14952 (remote_detach): Likewise.
14953 (extended_remote_detach): Likewise.
14954 * sol-thread.c (sol_thread_detach): Likewise.
14955 * target-debug.h (target_debug_print_inferior_p): New macro.
14956 * target-delegates.c: Re-generate.
14957 * top.c (kill_or_detach): Pass inferior down to target_detach.
14958 * windows-nat.c (windows_detach): Add inferior parameter.
14960 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14962 * target.h (struct target_ops) <to_detach>: Remove args
14964 (target_detach): Likewise.
14965 * target.c (dispose_inferior): Adjust.
14966 (target_detach): Remove args parameter, adjust.
14967 * aix-thread.c (aix_thread_detach): Adjust.
14968 * corefile.c (core_file_command): Adjust.
14969 * corelow.c (core_detach): Adjust.
14970 * darwin-nat.c (darwin_detach): Adjust.
14971 * gnu-nat.c (gnu_detach): Adjust.
14972 * inf-ptrace.c (inf_ptrace_detach): Adjust.
14973 * infcmd.c (detach_command): Adjust
14974 * infrun.c (follow_fork_inferior): Adjust.
14975 (handle_vfork_child_exec_or_exit): Adjust.
14976 * linux-fork.c (linux_fork_detach): Remove args parameter.
14977 * linux-fork.h (linux_fork_detach): Likewise.
14978 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
14979 * linux-thread-db.c (thread_db_detach): Likewise.
14980 * nto-procfs.c (procfs_detach): Likewise.
14981 * procfs.c (procfs_detach): Likewise.
14982 (do_detach): Remove signo parameter.
14983 * record.c (record_detach): Remove args parameter.
14984 * record.h (record_detach): Likewise.
14985 * remote-sim.c (gdbsim_detach): Likewise.
14986 * remote.c (remote_detach_1): Likewise.
14987 (remote_detach): Likewise.
14988 (extended_remote_detach): Likewise.
14989 * sol-thread.c (sol_thread_detach): Likewise.
14990 * target-delegates.c: Re-generate.
14991 * top.c (struct qt_args) <args>: Remove field.
14992 (kill_or_detach): Don't pass args.
14993 (quit_force): Don't set args.
14994 * windows-nat.c (windows_detach): Remove args parameter.
14996 2018-01-19 Yao Qi <yao.qi@linaro.org>
14998 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
14999 (arm_linux_init_abi): Install it.
15001 2018-01-19 Yao Qi <yao.qi@linaro.org>
15003 * osabi.c (gdb_osabi_names): Extend the regexp for
15004 arm-linux-gnueabihf.
15006 2018-01-18 Yao Qi <yao.qi@linaro.org>
15008 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
15010 (abbrev_table::add_abbrev): Update.
15011 (abbrev_table::lookup_abbrev): Update.
15013 2018-01-18 Yao Qi <yao.qi@linaro.org>
15015 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
15017 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15019 * compile/compile.c (compile_to_object): Convert "triplet_rx"
15022 2018-01-17 Tom Tromey <tom@tromey.com>
15024 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
15026 2018-01-17 Tom Tromey <tom@tromey.com>
15028 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
15029 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
15030 (create_array_type_with_stride): Update.
15031 * dwarf2read.c (set_die_type): Update.
15033 2018-01-17 Tom Tromey <tom@tromey.com>
15035 * dwarf2read.c (delayed_method_info): Remove typedef.
15036 (dwarf2_cu::method_info): Now a std::vector.
15037 (add_to_method_list): Update.
15038 (free_delayed_list): Remove.
15039 (compute_delayed_physnames): Update.
15040 (process_full_comp_unit, process_full_type_unit): Clear the method
15041 list. Remove cleanups.
15042 (psymtab_include_file_name): Add name_holder parameter. Use
15043 unique_xmalloc_ptr.
15044 (dwarf_decode_lines): Update.
15046 2018-01-17 Tom Tromey <tom@tromey.com>
15047 Simon Marchi <simon.marchi@ericsson.com>
15049 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
15050 (dwarf2_per_objfile::free_cached_comp_units)
15051 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15052 (init_cutu_and_read_dies_no_follow): Update.
15053 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
15054 (dwarf2_cu::~dwarf2_cu): New.
15055 (free_heap_comp_unit, free_stack_comp_unit): Remove.
15056 (age_cached_comp_units, free_one_cached_comp_unit): Update.
15058 2018-01-17 Tom Tromey <tom@tromey.com>
15059 Simon Marchi <simon.marchi@ericsson.com>
15061 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
15062 (struct die_reader_specs) <abbrev_table>: New member.
15063 (struct abbrev_table): Add constructor.
15064 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
15065 <abbrev_obstack>: Now an auto_obstack.
15066 (abbrev_table_up): New typedef.
15067 (init_cu_die_reader): Add abbrev_table parameter.
15068 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
15069 Add result_dwo_abbrev_table.
15070 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15071 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
15073 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
15075 (skip_children): Update.
15076 (abbrev_table::alloc_abbrev): Rename from
15077 abbrev_table_alloc_abbrev.
15078 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
15079 (abbrev_table::lookup_abbrev): Rename from
15080 abbrev_table_lookup_abbrev.
15081 (abbrev_table_read_table): Return abbrev_table_up.
15082 (abbrev_table_free, abbrev_table_free_cleanup)
15083 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
15084 (load_partial_dies): Update.
15086 2018-01-17 Tom Tromey <tom@tromey.com>
15088 * dwarf2read.c (dwarf2_compute_name): Update comment.
15089 (read_func_scope, read_variable): Update.
15090 (new_symbol): Remove.
15091 (new_symbol_full): Rename to new_symbol.
15093 2018-01-17 Mike Gulick <mgulick@mathworks.com>
15096 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
15097 a warning instead of throwing an error, set section size to 0 and return
15099 * gdb_bfd.h (gdb_bfd_map_section): Update description.
15101 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15103 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
15105 (linux_ptrace_attach_fail_reason_string): Likewise.
15106 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
15108 (linux_ptrace_attach_fail_reason_string): Likewise.
15109 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
15111 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15113 * linux-nat.c (linux_nat_attach): Remove xstrdup.
15115 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
15118 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
15119 checking for fs_base/gs_base fields in struct user_regs_struct.
15120 * configure: Regenerate.
15122 2018-01-17 Yao Qi <yao.qi@linaro.org>
15124 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
15126 (aarch64_linux_init_abi): Install it to gdbarch hook
15127 gcc_target_options.
15129 2018-01-15 Pedro Alves <palves@redhat.com>
15131 * common/signals-state-save-restore.c
15132 (save_original_signals_state): Fix typos.
15134 2017-01-12 Tom Tromey <tom@tromey.com>
15135 Sergio Durigan Junior <sergiodj@redhat.com>
15137 * Makefile.in (install-only): Install gdb-add-index.
15139 2018-01-12 John Baldwin <jhb@FreeBSD.org>
15141 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
15143 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
15145 * infrun.c (keep_going_pass_signal): Clear step-over info when
15146 insert_breakpoints fails.
15148 2018-01-11 Pedro Alves <palves@redhat.com>
15151 * infrun.c (resume): Rename to ...
15152 (resume_1): ... this.
15153 (resume): Reimplement as wrapper around resume_1.
15155 2018-01-11 Pedro Alves <palves@redhat.com>
15158 * remote.c (remote_parse_stop_reply): Default to the last-set
15159 general thread instead of to 'magic_null_ptid'.
15161 2018-01-10 Pedro Alves <palves@redhat.com>
15163 * language.h (language_get_symbol_name_matcher): Rename ...
15164 (get_symbol_name_matcher): ... this.
15165 * language.c (language_get_symbol_name_matcher): Ditto.
15166 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
15169 2018-01-10 Pedro Alves <palves@redhat.com>
15173 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
15174 Adjust to use language_get_symbol_name_matcher instead of
15175 language_defn::la_get_symbol_name_matcher.
15176 * language.c (language_get_symbol_name_matcher): If in Ada mode
15177 and the lookup name is a verbatim match, return Ada's matcher.
15178 * language.h (language_get_symbol_name_matcher): Adjust comment.
15179 (ada_lookup_name_info::verbatim_p):: New method.
15181 2018-01-10 Pedro Alves <palves@redhat.com>
15184 * ada-lang.c (ada_collect_symbol_completion_matches): If the
15185 minsym's language is language_auto or language_cplus, pass down
15186 language_ada instead.
15187 * symtab.c (compare_symbol_name): Don't frob symbol language here.
15189 2018-01-10 Pedro Alves <palves@redhat.com>
15192 * minsyms.c (linkage_name_str): New function.
15193 (iterate_over_minimal_symbols): Use it.
15195 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15197 * NEWS: Document that 'info proc' now works on FreeBSD.
15199 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15201 * configure.ac: Check for kinfo_getfile in libutil.
15202 * configure: Regenerate.
15203 * config.in: Regenerate.
15204 * fbsd-nat.c: Include "fbsd-tdep.h".
15205 (fbsd_fetch_cmdline): New.
15206 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
15207 rather than calling error.
15208 (fbsd_info_proc): New.
15209 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
15210 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
15211 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
15213 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15215 * fbsd-nat.c (struct free_deleter): Remove.
15216 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
15218 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15220 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
15221 NULL for an empty pathname.
15223 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15225 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
15226 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
15227 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
15228 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
15229 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
15230 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
15231 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
15232 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
15233 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
15234 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
15235 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
15236 (fbsd_core_fetch_timeval, fbsd_print_sigset)
15237 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
15238 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
15239 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
15241 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
15243 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
15244 (gnu_xfer_auxv): New function.
15245 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
15246 TARGET_OBJECT_AUXV.
15248 2018-01-08 Yao Qi <yao.qi@linaro.org>
15249 Simon Marchi <simon.marchi@ericsson.com>
15251 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
15253 (COMMON_OBS): Remove selftest.o.
15254 * configure.ac: Append selftest-arch.c and common/selftest.c to
15255 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
15256 * configure: Re-generated.
15257 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
15259 (maintenance_info_selftests): Likewise.
15261 2018-01-08 Xavier Roirand <roirand@adacore.com>
15263 * ada-valprint.c (val_print_packed_array_elements): Use
15264 proper number of elements when printing an array indexed
15265 by an enumeration type.
15267 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15269 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
15270 (dw2_get_file_names_reader): Adjust.
15271 (lookup_dwo_signatured_type): Adjust.
15272 (lookup_dwp_signatured_type): Adjust.
15273 (lookup_signatured_type): Adjust.
15274 (create_type_unit_group): Adjust.
15275 (get_type_unit_group): Adjust.
15276 (process_psymtab_comp_unit_reader): Adjust.
15277 (build_type_psymtabs_reader): Adjust.
15278 (scan_partial_symbols): Adjust.
15279 (add_partial_symbol): Adjust.
15280 (add_partial_subprogram): Adjust.
15281 (peek_die_abbrev): Adjust.
15282 (fixup_go_packaging): Adjust.
15283 (process_imported_unit_die): Adjust.
15284 (dwarf2_compute_name): Adjust.
15285 (dwarf2_physname): Adjust.
15286 (read_import_statement): Adjust.
15287 (handle_DW_AT_stmt_list): Adjust.
15288 (read_file_scope): Adjust.
15289 (read_func_scope): Adjust.
15290 (read_lexical_block_scope): Adjust.
15291 (read_call_site_scope): Adjust.
15292 (read_variable): Adjust.
15293 (dwarf2_rnglists_process): Adjust.
15294 (dwarf2_ranges_process): Adjust.
15295 (dwarf2_ranges_read): Adjust.
15296 (dwarf2_get_pc_bounds): Adjust.
15297 (dwarf2_record_block_ranges): Adjust.
15298 (dwarf2_add_field): Adjust.
15299 (dwarf2_add_member_fn): Adjust.
15300 (read_structure_type): Adjust.
15301 (process_structure_scope): Adjust.
15302 (read_enumeration_type): Adjust.
15303 (read_array_type): Adjust.
15304 (mark_common_block_symbol_computed): Adjust.
15305 (read_common_block): Adjust.
15306 (read_namespace_type): Adjust.
15307 (read_namespace): Adjust.
15308 (read_module_type): Adjust.
15309 (read_tag_pointer_type): Adjust.
15310 (read_tag_ptr_to_member_type): Adjust.
15311 (read_tag_string_type): Adjust.
15312 (read_subroutine_type): Adjust.
15313 (read_typedef): Adjust.
15314 (read_base_type): Adjust.
15315 (attr_to_dynamic_prop): Adjust.
15316 (read_subrange_type): Adjust.
15317 (read_unspecified_type): Adjust.
15318 (dwarf2_read_abbrevs): Adjust.
15319 (load_partial_dies): Adjust.
15320 (read_partial_die): Adjust.
15321 (find_partial_die): Adjust.
15322 (guess_partial_die_structure_name): Adjust.
15323 (fixup_partial_die): Adjust.
15324 (read_attribute_value): Adjust.
15325 (read_addr_index): Adjust.
15326 (read_addr_index_from_leb128): Adjust.
15327 (read_str_index): Adjust.
15328 (dwarf2_string_attr): Adjust.
15329 (get_debug_line_section): Adjust.
15330 (dwarf_decode_line_header): Adjust.
15331 (lnp_state_machine::check_line_address): Adjust.
15332 (dwarf_decode_lines_1): Adjust.
15333 (dwarf_decode_lines): Adjust.
15334 (dwarf2_start_symtab): Adjust.
15335 (var_decode_location): Adjust.
15336 (new_symbol_full): Adjust.
15337 (dwarf2_const_value_data): Adjust.
15338 (dwarf2_const_value_attr): Adjust.
15339 (dwarf2_const_value): Adjust.
15340 (die_type): Adjust.
15341 (die_containing_type): Adjust.
15342 (build_error_marker_type): Adjust.
15343 (lookup_die_type): Adjust.
15344 (guess_full_die_structure_name): Adjust.
15345 (anonymous_struct_prefix): Adjust.
15346 (determine_prefix): Adjust.
15347 (dwarf2_name): Adjust.
15348 (follow_die_ref_or_sig): Adjust.
15349 (follow_die_offset): Adjust.
15350 (follow_die_ref): Adjust.
15351 (follow_die_sig_1): Adjust.
15352 (follow_die_sig): Adjust.
15353 (get_signatured_type): Adjust.
15354 (get_DW_AT_signature_type): Adjust.
15355 (decode_locdesc): Adjust.
15356 (dwarf_decode_macros): Adjust.
15357 (cu_debug_loc_section): Adjust.
15358 (fill_in_loclist_baton): Adjust.
15359 (dwarf2_symbol_mark_computed): Adjust.
15360 (init_one_comp_unit): Don't assign
15361 dwarf2_cu::dwarf2_per_objfile.
15362 (set_die_type): Adjust.
15364 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15366 * dwarf2read.c (struct mapped_debug_names): Add constructor.
15367 <dwarf2_per_objfile>: New field.
15368 (dwarf2_per_objfile): Remove global.
15369 (get_dwarf2_per_objfile): New function.
15370 (set_dwarf2_per_objfile): New function.
15371 (dwarf2_build_psymtabs_hard): Change objfile parameter to
15372 dwarf2_per_objfile.
15373 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15374 (read_abbrev_offset): Likewise.
15375 (read_indirect_string): Likewise.
15376 (read_indirect_line_string): Likewise.
15377 (read_indirect_string_at_offset): Likewise.
15378 (read_indirect_string_from_dwz): Likewise.
15379 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15380 dwarf2_per_objfile.
15381 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15382 (create_all_comp_units): Change objfile parameter to
15383 dwarf2_per_objfile.
15384 (create_all_type_units): Likewise.
15385 (process_queue): Add dwarf2_per_objfile parameter.
15386 (read_and_check_comp_unit_head): Likewise.
15387 (lookup_dwo_unit_in_dwp): Likewise.
15388 (get_dwp_file): Likewise.
15389 (process_cu_includes): Likewise.
15390 (struct free_dwo_file_cleanup_data): New struct.
15391 (dwarf2_has_info): Use get_dwarf2_per_objfile and
15392 set_dwarf2_per_objfile.
15393 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
15394 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
15395 context, adjust calls.
15396 (dw2_instantiate_symtab): Likewise.
15397 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
15398 (dw2_get_cu): Likewise.
15399 (create_cu_from_index_list): Change objfile parameter to
15400 dwarf2_per_objfile.
15401 (create_cus_from_index_list): Get dwarf2_per_objfile from
15402 context, adjust calls.
15403 (create_cus_from_index): Likewise.
15404 (create_signatured_type_table_from_index): Change objfile
15405 parameter to dwarf2_per_objfile.
15406 (create_signatured_type_table_from_debug_names): Change objfile
15407 parameter to dwarf2_per_objfile.
15408 (create_addrmap_from_index): Likewise.
15409 (create_addrmap_from_aranges): Likewise.
15410 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
15411 (dw2_setup): Remove.
15412 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
15414 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
15415 get_dwarf2_per_objfile.
15416 (dw2_forget_cached_source_info): Likewise.
15417 (dw2_map_symtabs_matching_filename): Likewise.
15418 (struct dw2_symtab_iterator) <index>: Remove.
15419 <dwarf2_per_objfile>: New field.
15420 (dw2_symtab_iter_init): Replace index parameter with
15421 dwarf2_per_objfile.
15422 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
15423 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
15424 (dw2_print_stats): Likewise.
15425 (dw2_dump): Likewise.
15426 (dw2_expand_symtabs_for_function): Likewise.
15427 (dw2_expand_all_symtabs): Likewise.
15428 (dw2_expand_symtabs_with_fullname): Likewise.
15429 (dw2_expand_marked_cus): Replace index and objfile parameters
15430 with dwarf2_per_objfile.
15431 (dw_expand_symtabs_matching_file_matcher): Add
15432 dwarf2_per_objfile parameter and adjust calls.
15433 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
15435 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
15436 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
15438 (create_cus_from_debug_names_list): Replace objfile parameter
15439 with dwarf2_per_objfile and adjust calls.
15440 (create_cus_from_debug_names): Likewise.
15441 (dwarf2_read_debug_names): Likewise.
15442 (mapped_debug_names::namei_to_name): Adjust call.
15443 (dw2_debug_names_iterator::next): Likewise.
15444 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
15445 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
15446 (dw2_debug_names_dump): Likewise.
15447 (dw2_debug_names_expand_symtabs_for_function): Likewise.
15448 (dw2_debug_names_expand_symtabs_matching): Likewise.
15449 (dwarf2_initialize_objfile): Likewise.
15450 (dwarf2_build_psymtabs): Likewise.
15451 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
15453 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
15454 (read_and_check_comp_unit_head): Likewise.
15455 (read_abbrev_offset): Likewise.
15456 (create_debug_type_hash_table): Likewise.
15457 (create_debug_types_hash_table): Likewise.
15458 (create_all_type_units): Replace objfile parameter with
15459 dwarf2_per_objfile.
15460 (add_type_unit): Add dwarf2_per_objfile parameter.
15461 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
15462 with dwarf2_per_objfile.
15463 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
15464 (lookup_dwp_signatured_type): Likewise.
15465 (lookup_signatured_type): Likewise.
15466 (read_cutu_die_from_dwo): Likewise.
15467 (init_tu_and_read_dwo_dies): Likewise.
15468 (init_cutu_and_read_dies): Likewise.
15469 (init_cutu_and_read_dies_no_follow): Likewise.
15470 (allocate_type_unit_groups_table): Add objfile parameter.
15471 (create_type_unit_group): Use dwarf2_per_objfile from cu.
15472 (get_type_unit_group): Likewise.
15473 (process_psymtab_comp_unit): Update call.
15474 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
15475 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
15476 (print_tu_stats): Likewise.
15477 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
15478 in void* parameter.
15479 (build_type_psymtabs): Change objfile parameter to
15480 dwarf2_per_objfile.
15481 (process_skeletonless_type_unit): Use dwarf2_per_objfile
15482 passed in void* parameter.
15483 (process_skeletonless_type_units): Change objfile parameter to
15484 dwarf2_per_objfile.
15485 (set_partial_user): Likewise.
15486 (dwarf2_build_psymtabs_hard): Likewise.
15487 (read_comp_units_from_section): Likewise.
15488 (create_all_comp_units): Likewise.
15489 (scan_partial_symbols): Update calls.
15490 (add_partial_symbol): Likewise.
15491 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
15492 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
15493 (process_queue): Add dwarf2_per_objfile parameter.
15494 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
15495 (compute_compunit_symtab_includes): Likewise.
15496 (process_cu_includes): Add dwarf2_per_objfile parameter.
15497 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
15498 (process_full_type_unit): Likewise.
15499 (process_imported_unit_die): Update call.
15500 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
15501 (read_file_scope): Likewise.
15502 (allocate_dwo_file_hash_table): Add objfile parameter.
15503 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
15504 (create_cus_hash_table): Likewise.
15505 (create_dwp_hash_table): Likewise.
15506 (create_dwo_unit_in_dwp_v1): Likewise.
15507 (create_dwp_v2_section): Likewise.
15508 (create_dwo_unit_in_dwp_v2): Likewise.
15509 (lookup_dwo_unit_in_dwp): Likewise.
15510 (try_open_dwop_file): Likewise.
15511 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
15512 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
15513 cleanup to include a reference to dwarf2_per_objfile.
15514 (open_dwp_file): Add dwarf2_per_objfile parameter.
15515 (open_and_init_dwp_file): Likewise.
15516 (get_dwp_file): Likewise.
15517 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
15518 (queue_and_load_all_dwo_tus): Update call.
15519 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
15521 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
15522 (dwarf2_ranges_process): Likewise.
15523 (dwarf2_get_pc_bounds): Likewise.
15524 (mark_common_block_symbol_computed): Likewise.
15525 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15526 (dwarf2_read_abbrevs): Update call.
15527 (read_partial_die): Use dwarf2_per_objfile from cu.
15528 (find_partial_die): Likewise.
15529 (fixup_partial_die): Likewise.
15530 (read_attribute_value): Likewise.
15531 (read_indirect_string_at_offset_from): Add objfile parameter.
15532 (read_indirect_string_at_offset): Add dwarf2_per_objfile
15534 (read_indirect_string_from_dwz): Add objfile parameter.
15535 (read_indirect_string): Add objfile parameter.
15536 (read_addr_index_1): Add dwarf2_per_objfile parameter.
15537 (read_addr_index): Use dwarf2_per_objfile from cu.
15538 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
15540 (read_str_index): Use dwarf2_per_objfile from cu.
15541 (get_debug_line_section): Likewise.
15542 (read_formatted_entries): Add dwarf2_per_objfile parameter.
15543 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
15544 (new_symbol_full): Use dwarf2_per_objfile from cu.
15545 (build_error_marker_type): Likewise.
15546 (lookup_die_type): Likewise.
15547 (determine_prefix): Likewise.
15548 (follow_die_offset): Likewise.
15549 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
15550 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
15551 (dwarf2_fetch_die_type_sect_off): Likewise.
15552 (dwarf2_get_die_type): Likewise.
15553 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
15554 (get_signatured_type): Likewise.
15555 (get_DW_AT_signature_type): Likewise.
15556 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
15557 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
15558 (cu_debug_loc_section): Likewise.
15559 (fill_in_loclist_baton): Likewise.
15560 (dwarf2_symbol_mark_computed): Likewise.
15561 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15562 dwarf2_per_objfile.
15563 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
15565 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15566 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
15567 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
15568 (set_die_type): Use dwarf2_free_objfile from cu.
15569 (get_die_type_at_offset): Likewise.
15570 (dwarf2_per_objfile_free): Don't assign global variable.
15571 (debug_names) <constructor>: Add dwarf2_per_objfile
15572 parameter, update m_debugstrlookup construction.
15573 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
15575 <m_dwarf2_per_objfile>: New field.
15576 <lookup>: Use m_dwarf2_per_objfile.
15577 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
15578 (psyms_seen_size): Likewise.
15579 (write_gdbindex): Replace objfile parameter with
15580 dwarf2_per_objfile.
15581 (write_debug_names): Likewise.
15582 (write_psymtabs_to_index): Likewise.
15583 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
15586 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15588 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
15589 <dwarf2_per_objfile>: New field.
15590 (struct dwarf2_per_cu_data) <objfile>: Remove.
15591 <dwarf2_per_objfile>: New field.
15592 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
15594 (create_signatured_type_table_from_index): Likewise.
15595 (create_debug_type_hash_table): Likewise.
15596 (fill_in_sig_entry_from_dwo_entry): Likewise.
15597 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
15598 (create_type_unit_group): Assign dwarf2_per_objfile instead of
15600 (create_partial_symtab): Access objfile through
15601 dwarf2_per_objfile.
15602 (process_psymtab_comp_unit_reader): Likewise.
15603 (read_comp_units_from_section): Likewise.
15604 (scan_partial_symbols): Likewise.
15605 (add_partial_symbol): Likewise.
15606 (add_partial_subprogram): Likewise.
15607 (peek_die_abbrev): Likewise.
15608 (fixup_go_packaging): Likewise.
15609 (process_full_comp_unit): Likewise.
15610 (process_full_type_unit): Likewise.
15611 (process_imported_unit_die): Likewise.
15612 (dwarf2_compute_name): Likewise.
15613 (dwarf2_physname): Likewise.
15614 (read_import_statement): Likewise.
15615 (create_cus_hash_table): Assign dwarf2_physname instead of
15617 (read_func_scope): Access objfile through dwarf2_per_objfile.
15618 (read_lexical_block_scope): Likewise.
15619 (read_call_site_scope): Likewise.
15620 (read_variable): Likewise.
15621 (dwarf2_rnglists_process): Likewise.
15622 (dwarf2_ranges_process): Likewise.
15623 (dwarf2_ranges_read): Likewise.
15624 (dwarf2_record_block_ranges): Likewise.
15625 (dwarf2_add_field): Likewise.
15626 (dwarf2_add_member_fn): Likewise.
15627 (read_structure_type): Likewise.
15628 (process_structure_scope): Likewise.
15629 (read_enumeration_type): Likewise.
15630 (read_array_type): Likewise.
15631 (read_common_block): Likewise.
15632 (read_namespace_type): Likewise.
15633 (read_namespace): Likewise.
15634 (read_module_type): Likewise.
15635 (read_tag_pointer_type): Likewise.
15636 (read_tag_ptr_to_member_type): Likewise.
15637 (read_tag_string_type): Likewise.
15638 (read_subroutine_type): Likewise.
15639 (read_typedef): Likewise.
15640 (read_base_type): Likewise.
15641 (attr_to_dynamic_prop): Likewise.
15642 (read_subrange_type): Likewise.
15643 (read_unspecified_type): Likewise.
15644 (load_partial_dies): Likewise.
15645 (read_partial_die): Likewise.
15646 (find_partial_die): Likewise.
15647 (guess_partial_die_structure_name): Likewise.
15648 (fixup_partial_die): Likewise.
15649 (read_attribute_value): Likewise.
15650 (read_addr_index_from_leb128): Likewise.
15651 (dwarf2_read_addr_index): Likewise.
15652 (dwarf2_string_attr): Likewise.
15653 (lnp_state_machine::check_line_address): Likewise.
15654 (dwarf_decode_lines_1): Likewise.
15655 (dwarf_decode_lines): Likewise.
15656 (dwarf2_start_symtab): Likewise.
15657 (var_decode_location): Likewise.
15658 (new_symbol_full): Likewise.
15659 (dwarf2_const_value_data): Likewise.
15660 (dwarf2_const_value_attr): Likewise.
15661 (dwarf2_const_value): Likewise.
15662 (die_type): Likewise.
15663 (die_containing_type): Likewise.
15664 (lookup_die_type): Likewise.
15665 (guess_full_die_structure_name): Likewise.
15666 (anonymous_struct_prefix): Likewise.
15667 (dwarf2_name): Likewise.
15668 (follow_die_ref_or_sig): Likewise.
15669 (follow_die_offset): Likewise.
15670 (follow_die_ref): Likewise.
15671 (dwarf2_fetch_die_loc_sect_off): Likewise.
15672 (dwarf2_fetch_constant_bytes): Likewise.
15673 (dwarf2_fetch_die_type_sect_off): Likewise.
15674 (dwarf2_get_die_type): Likewise.
15675 (follow_die_sig): Likewise.
15676 (decode_locdesc): Likewise.
15677 (dwarf2_per_cu_objfile): Likewise.
15678 (dwarf2_per_cu_text_offset): Likewise.
15679 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
15681 (set_die_type): Access objfile through
15682 dwarf2_per_objfile.
15684 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15686 * valprint.c (converted_character_d): Remove typedef.
15687 (DEF_VEC_O (converted_character_d)): Remove.
15688 (count_next_character): Use std::vector.
15689 (print_converted_chars_to_obstack): Likewise.
15690 (generic_printstr): Likewise.
15692 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15694 * xml-support.h (struct gdb_xml_value): Add constructor.
15695 <value>: Change type to unique_xmalloc_ptr.
15696 (gdb_xml_value_s): Remove typedef.
15697 (DEF_VEC_O (gdb_xml_value_s)): Remove.
15698 (gdb_xml_element_start_handler): Change parameter type to
15700 (xml_find_attribute): Likewise.
15701 * xml-support.c (xml_find_attribute): Change parameter type to
15702 std::vector and adjust.
15703 (gdb_xml_values_cleanup): Remove.
15704 (gdb_xml_parser::start_element): Adjust to std::vector.
15705 (xinclude_start_include): Change paraeter type to std::vector
15707 * btrace.c (check_xml_btrace_version): Likewise.
15708 (parse_xml_btrace_block): Likewise.
15709 (parse_xml_btrace_pt_config_cpu): Likewise.
15710 (parse_xml_btrace_pt): Likewise.
15711 (parse_xml_btrace_conf_bts): Likewise.
15712 (parse_xml_btrace_conf_pt): Likewise.
15713 * memory-map.c (memory_map_start_memory): Likewise.
15714 (memory_map_start_property): Likewise.
15715 * osdata.c (osdata_start_osdata): Likewise.
15716 (osdata_start_item): Likewise.
15717 (osdata_start_column): Likewise.
15718 * remote.c (start_thread): Likewise.
15719 * solib-aix.c (library_list_start_library): Likewise.
15720 (library_list_start_list): Likewise.
15721 * solib-svr4.c (library_list_start_library): Likewise.
15722 (svr4_library_list_start_list): Likewise.
15723 * solib-target.c (library_list_start_segment): Likewise.
15724 (library_list_start_section): Likewise.
15725 (library_list_start_library): Likewise.
15726 (library_list_start_list): Likewise.
15727 * tracepoint.c (traceframe_info_start_memory): Likewise.
15728 (traceframe_info_start_tvar): Likewise.
15729 * xml-syscall.c (syscall_start_syscall): Likewise.
15730 * xml-tdesc.c (tdesc_start_target): Likewise.
15731 (tdesc_start_feature): Likewise.
15732 (tdesc_start_reg): Likewise.
15733 (tdesc_start_union): Likewise.
15734 (tdesc_start_struct): Likewise.
15735 (tdesc_start_flags): Likewise.
15736 (tdesc_start_enum): Likewise.
15737 (tdesc_start_field): Likewise.
15738 (tdesc_start_enum_value): Likewise.
15739 (tdesc_start_vector): Likewise.
15741 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15743 * extension.h (struct xmethod_worker) <clone>: Remove.
15744 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
15746 (python_xmethod_worker::clone): Remove.
15747 * valops.c (find_overload_match): Use std::move instead of
15750 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15752 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
15753 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
15754 <free_xmethod_worker_data>: Remove.
15755 <get_matching_xmethod_workers>: Chance VEC to std::vector.
15756 <get_xmethod_arg_types>: Remove.
15757 <get_xmethod_result_type>: Remove.
15758 <invoke_xmethod>: Remove.
15759 * extension.c (new_xmethod_worker): Remove.
15760 (clone_xmethod_worker): Remove.
15761 (get_matching_xmethod_workers): Return void, pass std::vector by
15763 (get_xmethod_arg_types): Rename to...
15764 (xmethod_worker::get_arg_types): ... this, and adjust.
15765 (get_xmethod_result_type): Rename to...
15766 (xmethod_worker::get_result_type): ... this, and adjust.
15767 (invoke_xmethod): Remove.
15768 (free_xmethod_worker): Remove.
15769 (free_xmethod_worker_vec): Remove.
15770 * extension.h (enum ext_lang_rc): Move here from
15772 (struct xmethod_worker): Add constructor and destructor.
15775 <invoke, clone, do_get_result_type, do_get_arg_types>: New
15776 virtual pure methods.
15777 <get_arg_types, get_result_type>: New methods.
15778 (xmethod_worker_ptr): Remove typedef.
15779 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
15780 (xmethod_worker_vec): Remove typedef.
15781 (xmethod_worker_up): New typedef.
15782 (invoke_xmethod): Remove.
15783 (clone_xmethod_worker): Remove.
15784 (free_xmethod_worker): Remove.
15785 (free_xmethod_worker_vec): Remove.
15786 (get_xmethod_arg_types): Remove.
15787 (get_xmethod_result_type): Remove.
15788 * valops.c (find_method_list): Use std::vector, don't use
15789 intermediate vector.
15790 (value_find_oload_method_list): Use std::vector.
15791 (find_overload_match): Use std::vector.
15792 (find_oload_champ): Use std::vector.
15793 * value.c (value_free): Use operator delete.
15794 (value_of_xmethod): Rename to...
15795 (value_from_xmethod): ... this. Don't assign
15796 xmethod_worker::value, take rvalue-reference.
15797 (result_type_of_xmethod): Adjust.
15798 (call_xmethod): Adjust.
15799 * value.h: Include extension.h.
15800 (struct xmethod_worker): Don't forward-declare.
15801 (value_of_xmethod): Rename to...
15802 (value_from_xmethod): ... this, take rvalue-reference.
15803 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
15804 (struct python_xmethod_worker): ... this, add constructor and
15806 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
15807 (gdbpy_free_xmethod_worker_data): Rename to...
15808 (python_xmethod_worker::~python_xmethod_worker): ... this and
15810 (gdbpy_clone_xmethod_worker_data): Rename to...
15811 (python_xmethod_worker::clone): ... this and adjust.
15812 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
15814 (gdbpy_get_xmethod_arg_types): Rename to...
15815 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
15816 (gdbpy_get_xmethod_result_type): Rename to...
15817 (python_xmethod_worker::do_get_result_type): ... this and
15819 (gdbpy_invoke_xmethod): Rename to...
15820 (python_xmethod_worker::invoke): ... this and adjust.
15821 (new_python_xmethod_worker): Rename to...
15822 (python_xmethod_worker::python_xmethod_worker): ... this and
15824 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
15826 (gdbpy_free_xmethod_worker_data): Remove.
15827 (gdbpy_get_matching_xmethod_workers): Use std::vector.
15828 (gdbpy_get_xmethod_arg_types): Remove.
15829 (gdbpy_get_xmethod_result_type): Remove.
15830 (gdbpy_invoke_xmethod): Remove.
15831 * python/python.c (python_extension_ops): Remove obsolete
15834 2018-01-05 Pedro Alves <palves@redhat.com>
15837 * common/signals-state-save-restore.c
15838 (save_original_signals_state): New parameter 'quiet'. Warn if we
15839 find a custom handler preinstalled, instead of internal erroring.
15840 But only warn if !quiet.
15841 * common/signals-state-save-restore.h
15842 (save_original_signals_state): New parameter 'quiet'.
15843 * main.c (captured_main_1): Move save_original_signals_state call
15844 after option handling, and pass QUIET.
15846 2018-01-05 Pedro Alves <palves@redhat.com>
15848 * spu-tdep.c (spu_catch_start): Pass
15849 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
15851 2018-01-05 Pedro Alves <palves@redhat.com>
15854 * ada-lang.c (literal_symbol_name_matcher): New function.
15855 (ada_get_symbol_name_matcher): Use it for
15856 symbol_name_match_type::SEARCH_NAME.
15857 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
15858 it down instead of assuming symbol_name_match_type::FULL.
15859 * block.h (block_lookup_symbol): New parameter 'match_type'.
15860 * c-valprint.c (print_unpacked_pointer): Use
15861 lookup_symbol_search_name instead of lookup_symbol.
15862 * compile/compile-object-load.c (get_out_value_type): Pass down
15863 symbol_name_match_type::SEARCH_NAME.
15864 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
15865 symbol_name_match_type::FULL.
15866 * cp-support.c (cp_get_symbol_name_matcher): Handle
15867 symbol_name_match_type::SEARCH_NAME.
15868 * infrun.c (insert_exception_resume_breakpoint): Use
15869 lookup_symbol_search_name.
15870 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
15871 * psymtab.c (maintenance_check_psymtabs): Use
15872 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
15873 * stack.c (print_frame_args): Use lookup_symbol_search_name and
15874 SYMBOL_SEARCH_NAME.
15875 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
15876 if symbol_name_match_type::SEARCH_NAME.
15877 (lookup_symbol_in_language): Pass down
15878 symbol_name_match_type::FULL.
15879 (lookup_symbol_search_name): New.
15880 (lookup_language_this): Pass down
15881 symbol_name_match_type::SEARCH_NAME.
15882 (lookup_symbol_aux, lookup_local_symbol): New parameter
15883 'match_type'. Pass it down.
15884 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
15885 (lookup_symbol_search_name): New declaration.
15886 (lookup_symbol_in_block): New 'match_type' parameter.
15888 2018-01-05 Pedro Alves <palves@redhat.com>
15891 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
15893 (ada_lookup_symbol): Reimplement in terms of
15894 ada_lookup_symbol_list, bits factored out from
15895 ada_lookup_encoded_symbol.
15897 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15899 * ada-exp.y (write_object_renaming): When subscripting an array
15900 using a symbol as the index, pass the block in call to
15901 ada_lookup_encoded_symbol when looking that symbol up.
15903 2018-01-05 Jerome Guitton <guitton@adacore.com>
15905 * ada-lang.c (ada_array_length): Use ada_index_type instead of
15908 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15910 * ada-lang.c (ada_to_fixed_value_create): Add handling of
15911 the case where VALUE_LVAL (val0) is not lval_memory.
15913 2018-01-05 Xavier Roirand <roirand@adacore.com>
15915 * ada-valprint.c (print_optional_low_bound): Handle
15916 character-indexed array printing like boolean-indexed array
15919 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15921 * NEWS: Create a new section for the next release branch.
15922 Rename the section of the current branch, now that it has
15925 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15927 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
15928 * version.in: Bump version to 8.1.50.DATE-git.
15930 2018-01-03 Xavier Roirand <roirand@adacore.com>
15932 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
15934 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
15936 (default_exception_support_info) <catch_handlers_sym>: Add field.
15937 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
15938 (ada_exception_name_addr_1): Add "catch handlers" handling.
15939 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
15940 Update all callers.
15941 (create_excep_cond_exprs) <ex>: Add parameter.
15942 (re_set_exception): Update create_excep_cond_exprs call.
15943 (print_it_exception, print_one_exception, print_mention_exception)
15944 (print_recreate_exception): Add "catch handler" handling.
15945 (allocate_location_catch_handlers, re_set_catch_handlers)
15946 (check_status_catch_handlers, print_it_catch_handlers)
15947 (print_one_catch_handlers, print_mention_catch_handlers)
15948 (print_recreate_catch_handlers): New function.
15949 (catch_handlers_breakpoint_ops): New variable.
15950 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
15951 Add parameter. Add "catch handler" handling.
15952 (ada_exception_sym_name, ada_exception_breakpoint_ops):
15953 Add "catch handler" handling.
15954 (ada_exception_catchpoint_cond_string): Add "catch handler"
15956 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
15958 (catch_ada_handlers_command): New function.
15959 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
15960 operations structure.
15961 (_initialize_ada_language): Add "catch handlers" command entry.
15962 * NEWS: Document "catch handlers" feature.
15964 2018-01-02 Joel Brobecker <brobecker@adacore.com>
15966 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
15967 account when creating the array type of the slice.
15968 (ada_value_slice): Likewise.
15970 2018-01-02 Joel Brobecker <brobecker@adacore.com>
15972 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
15974 (create_array_type_with_stride): Add byte_stride_prop parameter.
15975 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
15976 New parameter. Update all callers in this file.
15977 (array_type_has_dynamic_stride): New function.
15978 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
15979 of arrays with dynamic byte strides.
15980 * dwarf2read.c (read_array_type): Add support for dynamic
15981 DW_AT_byte_stride attributes.
15983 2018-01-02 Joel Brobecker <brobecker@adacore.com>
15985 * dwarf2read.c (read_unspecified_type): Treat
15986 DW_TAG_enumeration_type DIEs from Ada units as stubs.
15988 2018-01-01 Joel Brobecker <brobecker@adacore.com>
15990 Update copyright year range in all GDB files.
15992 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
15994 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
15995 and gdb/testsuite/gdb.base/step-line.c.
15997 2018-01-01 Joel Brobecker <brobecker@adacore.com>
15999 * copyright.py (main): Dump the contents of
16000 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
16001 even if BY_HAND is empty.
16003 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16005 * top.c (print_gdb_version): Update Copyright year in version
16008 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16010 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
16012 For older changes see ChangeLog-2017.
16018 version-control: never