1 2018-11-21 Andrew Burgess <andrew.burgess@embecosm.com>
3 * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
4 (HFILES_NO_SRCDIR): Add arch/riscv.h.
5 * arch/riscv.c: New file.
6 * arch/riscv.h: New file.
7 * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
8 this list, and add arch/riscv.o.
9 * features/Makefile: Add riscv features.
10 * features/riscv/32bit-cpu.c: New file.
11 * features/riscv/32bit-cpu.xml: New file.
12 * features/riscv/32bit-csr.c: New file.
13 * features/riscv/32bit-csr.xml: New file.
14 * features/riscv/32bit-fpu.c: New file.
15 * features/riscv/32bit-fpu.xml: New file.
16 * features/riscv/64bit-cpu.c: New file.
17 * features/riscv/64bit-cpu.xml: New file.
18 * features/riscv/64bit-csr.c: New file.
19 * features/riscv/64bit-csr.xml: New file.
20 * features/riscv/64bit-fpu.c: New file.
21 * features/riscv/64bit-fpu.xml: New file.
22 * features/riscv/rebuild-csr-xml.sh: New file.
23 * riscv-tdep.c: Add 'arch/riscv.h' include.
24 (riscv_gdb_reg_names): Delete.
25 (csr_reggroup): New global.
26 (struct riscv_register_alias): Delete.
27 (struct riscv_register_feature): New structure.
28 (riscv_register_aliases): Delete.
29 (riscv_xreg_feature): New global.
30 (riscv_freg_feature): New global.
31 (riscv_virtual_feature): New global.
32 (riscv_csr_feature): New global.
33 (riscv_create_csr_aliases): New function.
34 (riscv_read_misa_reg): Delete.
35 (riscv_has_feature): Delete.
36 (riscv_isa_xlen): Simplify, just return cached xlen.
37 (riscv_isa_flen): Simplify, just return cached flen.
38 (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
39 (riscv_register_name): Update to make use of tdesc_register_name.
40 Look up xreg and freg names in the new globals riscv_xreg_feature
41 and riscv_freg_feature. Don't supply csr aliases here.
42 (riscv_fpreg_q_type): Delete.
43 (riscv_register_type): Use tdesc_register_type in almost all
44 cases, override the returned type in a few specific cases only.
45 (riscv_print_one_register_info): Handle errors reading registers.
46 (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
47 registers that are otherwise unknown to GDB. Also check the
49 (riscv_print_registers_info): Remove assert about upper register
50 number, and use gdbarch_register_reggroup_p instead of
52 (riscv_find_default_target_description): New function.
53 (riscv_check_tdesc_feature): New function.
54 (riscv_add_reggroups): New function.
55 (riscv_setup_register_aliases): New function.
56 (riscv_init_reggroups): New function.
57 (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
58 setup register groups. Register new riscv debug variable.
59 * riscv-tdep.h: Add 'arch/riscv.h' include.
60 (struct gdbarch_tdep): Remove abi union, and add
61 riscv_gdbarch_features field. Remove cached quad floating point
62 type, and provide initialisation for double type field.
63 * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
64 the list of targets using the feature based target descriptions.
65 * NEWS: Mention target description support.
67 2018-11-21 Pedro Alves <palves@redhat.com>
69 * valops.c (find_method_list, value_find_oload_method_list)
70 (find_overload_match, find_oload_champ): Rename parameters and
73 2018-11-21 Pedro Alves <palves@redhat.com>
75 * valops.c (find_method_list): Replace pointer and length
76 parameters with an gdb::array_view. Adjust.
77 (value_find_oload_method_list): Likewise.
78 (find_overload_match): Use gdb::array_view for methods list.
79 Adjust to find_oload_champ interface change.
80 (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
81 'num_fns' parameter now a size_t. Eliminate 'fn_count' local.
83 2018-11-21 Pedro Alves <palves@redhat.com>
85 * gdbtypes.c (compare_badness): Change type of parameters to const
86 reference. Adjust to badness_vector being a std::vector now.
87 (rank_function): Adjust to badness_vector being a std::vector now.
88 * gdbtypes.h (badness_vector): Now a typedef to std::vector.
89 (LENGTH_MATCH): Delete.
90 (compare_badness): Change type of parameters to const reference.
91 (rank_function): Return a badness_vector by value now.
92 (find_overload_match): Adjust to badness_vector being a
93 std::vector now. Remove cleanups.
94 (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
95 badness_vector pointer.
96 (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
97 a badness_vector pointer. Adjust to badness_vector being a
98 std::vector now. Remove cleanups.
99 (find_oload_champ): 'oload_champ_bv' parameter now
100 a badness_vector pointer. Adjust to badness_vector being a
101 std::vector now. Remove cleanups.
103 2018-11-21 Pedro Alves <palves@redhat.com>
105 * cp-support.c (sym_return_val_size, sym_return_val_index)
106 (sym_return_val): Delete.
107 (overload_list_add_symbol): Add std::vector parameter. Adjust to
109 (make_symbol_overload_list): Adjust to return a std::vector
110 instead of maintaining a global open coded vector.
111 (make_symbol_overload_list_block): Add std::vector parameter.
112 (make_symbol_overload_list_block): Rename to ...
113 (add_symbol_overload_list_block): ... this and add std::vector
115 (make_symbol_overload_list_namespace): Rename to ...
116 (add_symbol_overload_list_namespace): ... this and add std::vector
118 (make_symbol_overload_list_adl_namespace): Rename to ...
119 (add_symbol_overload_list_adl_namespace): ... this and add
120 std::vector parameter.
121 (make_symbol_overload_list_adl): Delete.
122 (add_symbol_overload_list_adl): New.
123 (make_symbol_overload_list_using): Rename to ...
124 (add_symbol_overload_list_using): ... this and add std::vector
126 (make_symbol_overload_list_qualified): Rename to ...
127 (add_symbol_overload_list_qualified): ... this and add std::vector
129 * cp-support.h: Include "common/array-view.h" and <vector>.
130 (make_symbol_overload_list): Change return type to std::vector.
131 (make_symbol_overload_list_adl): Delete declaration.
132 (add_symbol_overload_list_adl): New declaration.
133 * valops.c (find_overload_match): Local 'oload_syms' now a
135 (find_oload_champ_namespace): 'oload_syms' parameter now a
137 (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
138 std::vector pointer. Adjust to new make_symbol_overload_list
141 2018-11-21 Pedro Alves <palves@redhat.com>
143 * common/array-view.h (array_view::splice(size_type, size_t)): New.
144 (array_view::splice(size_type)): New.
145 * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
146 * extension.c (xmethod_worker::get_arg_types): Adjust to return an
148 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
149 * extension.h: Include "common/array-view.h".
150 (xmethod_worker::invoke): Adjust to use gdb::array_view.
151 (xmethod_worker::get_arg_types): Adjust to return an std::vector.
152 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
153 (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
154 (xmethod_worker::do_get_result_type): Adjust to use
156 * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
157 * gdbtypes.h: Include "common/array-view.h".
158 (rank_function): Adjust to use gdb::array_view.
159 * python/py-xmethods.c (python_xmethod_worker::invoke)
160 (python_xmethod_worker::do_get_arg_types)
161 (python_xmethod_worker::do_get_result_type)
162 (python_xmethod_worker::invoke): Adjust to new interfaces.
163 * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
164 (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
165 * valops.c (find_overload_match, find_oload_champ_namespace)
166 (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
167 gdb:array_view and the new xmethod_worker interfaces.
168 * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
170 * value.h (find_overload_match, result_type_of_xmethod)
171 (call_xmethod): Adjust to use gdb::array_view.
172 * unittests/array-view-selftests.c: Add slicing tests.
174 2018-11-21 Pedro Alves <palves@redhat.com>
176 * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
177 * common/array-view.h (make_array_view): New.
178 * compile/compile-object-run.c (compile_object_run): Adjust to
180 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
181 * eval.c (eval_call): Adjust to pass an array_view.
182 (evaluate_subexp_standard): Adjust to pass an array_view.
183 * gcore.c (call_target_sbrk): Adjust to pass an array_view.
184 * guile/scm-value.c (gdbscm_value_call): Likewise.
185 * infcall.c (push_dummy_code): Replace pointer + size parameters
186 with an array_view parameter.
187 (call_function_by_hand, call_function_by_hand_dummy): Likewise and
189 * infcall.h: Include "common/array-view.h".
190 (call_function_by_hand, call_function_by_hand_dummy): Replace
191 pointer + size parameters with an array_view parameter.
192 * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
193 * linux-tdep.c (linux_infcall_mmap): Likewise.
194 * objc-lang.c (lookup_objc_class, lookup_child_selector)
195 (value_nsstring, print_object_command): Likewise.
196 * python/py-value.c (valpy_call): Likewise.
197 * rust-lang.c (rust_evaluate_funcall): Likewise.
198 * spu-tdep.c (flush_ea_cache): Likewise.
199 * valarith.c (value_x_binop, value_x_unop): Likewise.
200 * valops.c (value_allocate_space_in_inferior): Likewise.
201 * unittests/array-view-selftests.c (run_tests): Add
202 gdb::make_array_view test.
204 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
206 * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
207 than a fixed size buffer.
209 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
211 * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
212 and remove insertion of extra spaces in GDB's output.
213 * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
214 Layout field into a temporary buffer, and then output it as a
217 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
219 * NEWS: Document the language choice done by
220 'info [types|functions|variables]|rbreak'.
222 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
224 * symtab.c (treg_matches_sym_type_name): Use
225 scoped_switch_to_sym_language_if_auto instead of local logic.
226 (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
227 to switch to SYM language when language mode is auto.
229 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
231 * language.h (scoped_switch_to_sym_language_if_auto): New class.
233 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
235 * symtab.c (search_symbols): Properly check absence of type regexp
236 before entering the loop scanning the minimal symbols.
238 2018-11-20 John Darrington <john@darrington.wattle.id.au>
240 * s12z-tdep.c (s12z_extract_return_value): New function.
241 (inv_reg_perm) New array.
242 (s12z_return_value): Populate readbuf if non-null.
244 2018-11-20 Eli Zaretskii <eliz@gnu.org>
246 * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
247 with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
248 to MinGW fixed by Gnulib.
249 (O_NOINHERIT): Define if not defined.
251 2018-11-19 John Darrington <john@darrington.wattle.id.au>
253 * s12z-tdep.c (s12z_frame_cache): Add an assertion.
255 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
257 * infrun.c (displaced_step_inferior_state) <next>: Remove.
259 2018-11-19 Tom Tromey <tom@tromey.com>
261 * source.c (get_filename_and_charpos): Return void.
263 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
265 * skip.c (_initialize_step_skip): Fix "info skip" help.
267 2018-11-16 Tom Tromey <tom@tromey.com>
270 * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
272 2018-11-19 Simon Marchi <simon.marchi@ericsson.com>
274 * infrun.c (displaced_step_inferior_states): Change type to
276 (get_displaced_stepping_state): Adjust.
277 (displaced_step_in_progress_any_inferior): Adjust.
278 (add_displaced_stepping_state): Adjust.
279 (remove_displaced_stepping_state): Adjust.
281 2018-11-18 Tom Tromey <tom@tromey.com>
284 * target-delegates.c: Rebuild.
285 * ia64-linux-nat.c (class ia64_linux_nat_target)
286 <have_steppable_watchpoint>: Use override. Return true, not 1.
287 (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove
289 (ia64_linux_nat_target::low_new_thread): Rename.
290 (class ia64_linux_nat_target) <read_description>: Don't declare.
291 * target.h (struct target_ops) <have_steppable_watchpoint>: Return
294 2018-11-16 Alan Hayward <alan.hayward@arm.com>
297 * aarch64-tdep.c (aarch64_push_dummy_call): Remove
298 lang_struct_return code.
300 2018-11-16 Alan Hayward <alan.hayward@arm.com>
302 * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
304 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
305 * amd64-tdep.c (amd64_push_arguments): Likewise.
306 (amd64_push_dummy_call): Likewise.
307 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
308 * arc-tdep.c (arc_push_dummy_call): Likewise.
309 * arm-tdep.c (arm_push_dummy_call): Likewise.
310 * avr-tdep.c (avr_push_dummy_call): Likewise.
311 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
312 * cris-tdep.c (cris_push_dummy_call): Likewise.
313 * csky-tdep.c (csky_push_dummy_call): Likewise.
314 * frv-tdep.c (frv_push_dummy_call): Likewise.
315 * gdbarch.c: Regenerate.
316 * gdbarch.h: Regenerate.
317 * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
319 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
320 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
321 (hppa64_push_dummy_call): Likewise.
322 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
323 * i386-tdep.c (i386_push_dummy_call): Likewise.
324 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
325 * infcall.c (call_function_by_hand_dummy): Likewise.
326 * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
327 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
328 * m32c-tdep.c (m32c_push_dummy_call): Likewise.
329 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
330 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
331 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
332 * mep-tdep.c (mep_push_dummy_call): Likewise.
333 * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
334 (mips_n32n64_push_dummy_call): Likewise.
335 (mips_o32_push_dummy_call): Likewise.
336 (mips_o64_push_dummy_call): Likewise.
337 * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
338 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
339 * nds32-tdep.c (nds32_push_dummy_call): Likewise.
340 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
341 * or1k-tdep.c (or1k_push_dummy_call): Likewise.
342 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
343 (ppc64_sysv_abi_push_dummy_call): Likewise.
344 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
345 (ppc64_sysv_abi_push_dummy_call): Likewise.
346 * riscv-tdep.c (riscv_push_dummy_call): Likewise.
347 * rl78-tdep.c (rl78_push_dummy_call): Likewise.
348 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
349 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
350 * rx-tdep.c (rx_push_dummy_call): Likewise.
351 * s390-tdep.c (s390_push_dummy_call): Likewise.
352 * score-tdep.c (score_push_dummy_call): Likewise.
353 * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
354 (sh_push_dummy_call_nofpu): Likewise.
355 * sparc-tdep.c (sparc32_store_arguments): Likewise.
356 (sparc32_push_dummy_call): Likewise.
357 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
358 (sparc64_push_dummy_call): Likewise.
359 * spu-tdep.c (spu_push_dummy_call): Likewise.
360 * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
361 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
362 * v850-tdep.c (v850_push_dummy_call): Likewise.
363 * vax-tdep.c (vax_push_dummy_call): Likewise.
364 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
365 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
367 2018-11-16 Alan Hayward <alan.hayward@arm.com>
369 * gdbarch.sh (enum function_call_return_method): Add enum.
370 * gdbarch.h: Regenerate.
371 * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
373 2018-11-15 Joel Brobecker <brobecker@adacore.com>
375 * unittests/copy_bitwise-selftests.c: New file.
376 * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
377 (selftests::copy_bitwise_tests): Delete, moving this code to
378 unittests/copy_bitwise-selftests.c instead.
379 (_initialize_utils): Do not register copy_bitwise tests.
380 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
381 unittests/copy_bitwise-selftests.c.
383 2018-11-14 Joel Brobecker <brobecker@adacore.com>
385 * ada-lang.c (move_bits): Delete. Update all callers to use
386 copy_bitwise instead.
387 * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
388 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
389 Move from here to utils.c.
390 (_initialize_dwarf2loc): Remove call to register copy_bitwise
392 * utils.h (copy_bitwise): Add declaration.
393 * utils.c (copy_bitwise, bits_to_str::bits_to_str)
394 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
395 Moved here from dwarf2loc.c.
396 (_initialize_utils): Register copy_bitwise selftests.
398 2018-11-14 Jim Wilson <jimw@sifive.com>
400 * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
401 (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
402 then increment next_regnum if odd.
403 (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed.
404 (riscv_push_dummy_call): New local ftype. Call check_typedef to set
405 function type. Pass new arg to riscv_arg_location based on function
407 (riscv_return_value): Pass new arg to riscv_arg_location.
409 * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
410 (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
411 of TYPE_LENGTH and BIGGEST_ALIGNMENT.
413 * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
414 setting len. New local align, set to max of arg align and xlen,
415 and pass to first riscv_assign_stack_location call.
417 2018-11-12 Simon Marchi <simon.marchi@polymtl.ca>
419 * skip.c (complete_skip_number): New function.
420 (_initialize_step_skip): Add completers to some skip commands.
422 2018-11-09 Tom Tromey <tom@tromey.com>
424 * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
425 (struct remote_g_packet_data): Derive from allocate_on_obstack.
426 <guesses>: Now a std::vector.
427 (remote_g_packet_data_init, register_remote_g_packet_guess):
429 (remote_read_description_p): Update. Return bool.
430 (remote_target::read_description): Update.
431 (struct remote_g_packet_guess): Add constructor.
433 2018-11-09 Tom Tromey <tom@tromey.com>
435 * common/scoped_fd.h (class scoped_fd): Add move constructor and
436 move assignment operator.
437 * psymtab.c (psymtab_to_fullname): Update.
438 * source.h (open_source_file): Return scoped_fd.
439 (find_and_open_source): Likewise.
440 * source.c (open_source_file): Return scoped_fd.
441 (get_filename_and_charpos): Update.
442 (print_source_lines_base): Update. Use scoped_fd::to_file.
443 (forward_search_command): Likewise.
444 (reverse_search_command): Likewise.
445 (find_and_open_source): Return scoped_fd.
446 * tui/tui-source.c (tui_set_source_content): Update. Use
449 2018-11-09 John Baldwin <jhb@FreeBSD.org>
451 * minsyms.c (minimal_symbol_reader::install): Fix unsigned
454 2018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com>
456 * configure: Regenerate.
458 2018-11-09 Tom de Vries <tdevries@suse.de>
460 * symtab.c (symbol_set_names): Call symbol_find_demangled_name
461 unconditionally, to set the language of the symbol. Manage freeing
462 returned pointer using gdb::unique_xmalloc_ptr.
464 2018-11-08 Tom Tromey <tom@tromey.com>
466 * record.c (require_record_target): Upper-case "<TAB>".
468 2018-11-08 Tom Tromey <tom@tromey.com>
470 * python/lib/gdb/command/pretty_printers.py
471 (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
473 2018-11-08 Tom Tromey <tom@tromey.com>
477 * target.h (target_supports_terminal_ours): Return bool.
478 * target.c (target_supports_terminal_ours): Handle case where
479 current_top_target returns nullptr. Return bool.
481 2018-11-08 Joel Brobecker <brobecker@adacore.com>
483 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
484 return the correct count for potential HFAs.
486 2018-11-08 Jan Beulich <jbeulich@suse.com>
488 * i387-tdep.c (i387_supply_xsave): Split handling of
489 X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
490 (i387_collect_xsave): Likewise.
492 2018-11-08 Andrew Burgess <andrew.burgess@embecosm.com>
494 * riscv-tdep.c (riscv_insn::decode): Update header comment.
495 (riscv_frame_this_id): Catch errors thrown while building the
496 frame cache, leave the frame id as the default, which is the outer
499 2018-11-07 Joel Brobecker <brobecker@adacore.com>
501 * ada-lang.c (read_atcb): Only set task_info->called_task if
502 task_info->state == Entry_Caller_Sleep.
503 (print_ada_task_info): Do not check task_info->state before
504 checking task_info->called_task.
505 (info_task): Likewise.
507 2018-11-07 Joel Brobecker <brobecker@adacore.com>
509 * ada-tasks.c (read_atcb): Clear task_info before computing
510 the value of each of its fields.
512 2018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
514 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
515 NULL before dereferencing it.
517 2018-11-06 Tom de Vries <tdevries@suse.de>
519 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
522 2018-11-06 Max Filippov <jcmvbkbc@gmail.com>
524 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
525 so that it applies to uclinux as well.
527 2018-11-06 Marius Muench <marius.muench@eurecom.fr>
529 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
532 2018-11-06 John Baldwin <jhb@FreeBSD.org>
534 * riscv-fbsd-nat.c (getregs_supplies): Return true for
535 RISCV_CSR_SSTATUS_REGNUM.
537 2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
539 * source.c (open_source_file): Fix leak by transferring the
540 current s->fullname to the unique_xmalloc_ptr fullname given
541 to find_and_open_source.
543 2018-11-04 Tom Tromey <tom@tromey.com>
545 * varobj.c (install_default_visualizer): Update.
546 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
548 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
549 (find_pretty_printer_from_progspace)
550 (find_pretty_printer_from_gdb, find_pretty_printer)
551 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
552 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
555 2018-11-04 Tom Tromey <tom@tromey.com>
557 * python/python.c (gdbpy_parameter_value): Update.
558 * python/python-internal.h (python_string_to_unicode)
559 (python_string_to_target_python_string)
560 (host_string_to_python_string): Return gdbpy_ref.
561 * python/py-utils.c (python_string_to_unicode)
562 (unicode_to_encoded_python_string)
563 (unicode_to_target_python_string)
564 (python_string_to_target_string)
565 (python_string_to_target_python_string): Return gdbpy_ref.
566 (python_string_to_host_string): Update.
567 (host_string_to_python_string): Return gdbpy_ref.
568 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
569 (stpy_fullname): Update.
570 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
572 * python/py-prettyprint.c (print_string_repr): Update.
573 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
574 (objfpy_get_build_id): Update.
575 * python/py-breakpoint.c (bppy_get_location)
576 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
579 2018-11-04 Tom Tromey <tom@tromey.com>
581 * python/python-internal.h (gdb_py_object_from_longest)
582 (gdb_py_object_from_ulongest): Return gdbpy_ref.
583 * python/py-value.c (valpy_int): Update.
584 * python/py-utils.c (gdb_py_object_from_longest): Return
586 (gdb_py_object_from_ulongest): Likewise.
587 * python/py-type.c (typy_get_alignof): Update.
588 * python/py-linetable.c (ltpy_get_all_source_lines)
589 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
590 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
592 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
594 * ada-lang.c (_initialize_ada_language): Fix typo.
596 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
598 * language.c (type): Remove.
599 (_initialize_language): Remove assignment to type.
601 2018-11-02 Joel Brobecker <brobecker@adacore.com>
603 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
604 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
605 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
606 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
607 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
608 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
609 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
610 and aarch64-ravenscar-thread.o.
611 * NEWS: Add entry documenting Ravenscar tasking support
614 2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
616 * symtab.c (info_functions_command): Initialize quiet flag.
617 * stack.c (info_args_command): Likewise.
619 2018-11-01 Jim Wilson <jimw@sifive.com>
621 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
622 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
625 2018-11-01 Joel Brobecker <brobecker@adacore.com>
627 * ada-lang.c (ada_watch_location_expression): New function.
628 (ada_language_defn): Set la_watch_location_expression to
629 ada_watch_location_expression.
631 2018-11-01 Joel Brobecker <brobecker@adacore.com>
633 * print-utils.c (int_string): Remove unnecessary trailing spaces.
635 2018-11-01 Joel Brobecker <brobecker@adacore.com>
637 * rs6000-tdep.c (skip_prologue): Fix potential negative left
640 2018-11-01 Jerome Guitton <guitton@adacore.com>
641 Joel Brobecker <brobecker@adacore.com>
643 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
644 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
645 * arm-pikeos-tdep.c: New file.
646 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
648 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
650 2018-11-01 Simon Marchi <simon.marchi@ericsson.com>
652 * common/pathstuff.c (get_standard_temp_dir): New.
653 * common/pathstuff.h (get_standard_temp_dir): New.
654 * config.in: Re-generate.
655 * configure: Re-generate.
656 * configure.ac: Don't check for mkdtemp.
657 * gnulib/aclocal-m4-deps.mk: Re-generate.
658 * gnulib/aclocal.m4: Re-generate.
659 * gnulib/config.in: Re-generate.
660 * gnulib/configure: Re-generate.
661 * gnulib/import/Makefile.am: Re-generate.
662 * gnulib/import/Makefile.in: Re-generate.
663 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
664 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
665 * gnulib/import/m4/mkdtemp.m4: New file.
666 * gnulib/import/mkdtemp.c: New file.
667 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
669 * unittests/mkdir-recursive-selftests.c (test): Use
670 get_standard_temp_dir.
671 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
673 * compile/compile.c (get_compile_file_tempdir): Likewise.
675 2018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
677 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
678 (SIG_FRAME_LR_OFFSET64): New define.
679 (SIG_FRAME_FP_OFFSET64): New define.
680 (aix_sighandle_frame_cache): New Function.
681 (aix_sighandle_frame_this_id): New Function.
682 (aix_sighandle_frame_prev_register): New Function.
683 (aix_sighandle_frame_sniffer): New Function.
684 (aix_sighandle_frame_unwind): New global variable.
685 (rs6000_aix_init_osabi): Install new frame unwinder.
687 2018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
690 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
693 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
695 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
697 2018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
699 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
700 (producer_is_icc): New function.
701 (check_producer): Set producer_is_icc field on dwarf2_cu.
702 (dwarf2_init_integer_type): New function.
703 (read_base_type): Call dwarf2_init_integer_type instead of
704 init_integer_type in all cases.
705 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
706 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
707 LEN is greater than 0.
709 2018-10-30 Tom Tromey <tom@tromey.com>
711 * main.c (captured_main_1): Check return value of bfd_init.
713 2018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
715 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
718 2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
720 * procfs.c: Include common/pathstuff.h.
722 2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
724 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
725 Add missing braces. No functional change.
727 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
729 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
730 to report a bad option and fix indentation.
731 * demangle.c (demangle_command): Use report_unrecognized_option_error
732 to report a bad option and correctly report the bad option.
734 2018-10-27 Tom Tromey <tom@tromey.com>
737 * darwin-nat.c (copied_shell): New global.
738 (may_have_sip): Rename from should_disable_startup_with_shell.
739 (copy_shell_to_cache, maybe_cache_shell): New functions.
740 (darwin_nat_target::create_inferior): Update. Use
743 2018-10-27 Tom Tromey <tom@tromey.com>
745 * unittests/scoped_fd-selftests.c (test_to_file): New function.
746 (run_tests): Call test_to_file.
747 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
749 * common/scoped_fd.h (scoped_fd::to_file): New method.
751 2018-10-27 Tom Tromey <tom@tromey.com>
753 * unittests/scoped_mmap-selftests.c (test_normal): Use
754 gdb_mkostemp_cloexec.
755 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
756 Use gdb_mkostemp_cloexec.
757 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
758 gnulib/config.in, gnulib/configure,
759 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
760 gnulib/import/m4/gnulib-cache.m4,
761 gnulib/import/m4/gnulib-comp.m4: Update.
762 * gnulib/import/m4/mkostemp.m4: New file.
763 * gnulib/import/m4/mkstemp.m4: Remove.
764 * gnulib/import/mkostemp.c: New file.
765 * gnulib/import/mkstemp.m4: Remove.
766 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
767 mkstemp, add mkostemp. Apply new patch.
768 * gnulib/import/stdlib.in.h: Apply patch.
769 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
771 * dwarf-index-write.c (write_psymtabs_to_index): Use
772 gdb_mkostemp_cloexec.
773 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
775 2018-10-27 Tom Tromey <tom@tromey.com>
777 * unittests/mkdir-recursive-selftests.c: New file.
778 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
779 unittests/mkdir-recursive-selftests.c.
780 * dwarf-index-cache.c (mkdir_recursive): Move to
782 (index_cache::store): Check return value of mkdir_recursive.
783 (create_dir_and_check, test_mkdir_recursive): Move to new file.
784 (_initialize_index_cache): Don't register test.
785 * common/filestuff.h (mkdir_recursive): Declare.
786 * common/filestuff.c (mkdir_recursive): Move from
787 dwarf-index-cache.c. Return bool.
789 2018-10-27 Tom Tromey <tom@tromey.com>
791 * dwarf-index-write.c (write_psymtabs_to_index): Move
792 make_temp_filename to common/pathstuff.c.
793 * common/pathstuff.h (make_temp_filename): Declare.
794 * common/pathstuff.c (make_temp_filename): New function, moved
795 from dwarf-index-write.c.
797 2018-10-27 Tom Tromey <tom@tromey.com>
799 * procfs.c (procfs_target::create_inferior): Use get_shell.
800 * cli/cli-cmds.c (shell_escape): Use get_shell.
801 * windows-nat.c (windows_nat_target::create_inferior): Use
803 * common/pathstuff.c (get_shell): New function.
804 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
805 (fork_inferior): Use get_shell.
806 * common/pathstuff.h (get_shell): Declare.
808 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
810 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
812 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
814 * stack.c (print_variable_and_value_data): Add preg and treg.
815 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
817 (print_frame_arg_vars): Likewise.
818 (prepare_reg): New function.
819 (info_locals_command): Extract info print args and use them.
820 (info_args_command): Likewise.
821 (_initialize_stack): Modify on-line help.
822 * symtab.c (treg_matches_sym_type_name): New function.
823 (search_symbols): New arg t_regexp.
824 (symtab_symbol_info): New args quiet, regexp, t_regexp.
825 (info_variables_command): Extract info print args and use them.
826 (info_functions_command): Likewise.
827 (info_types_command): Update call to symtab_symbol_info.
828 (_initialize_symtab): Modify on-line help.
829 * symtab.h (treg_matches_sym_type_name): New function.
830 (search_symbols): New t_regexp arg.
832 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
834 * cli-utils.c (extract_arg_maybe_quoted): New function.
835 (extract_info_print_args): New function.
836 (info_print_args_help): New function.
837 (report_unrecognized_option_error): New function.
838 * cli-utils.h (extract_arg_maybe_quoted): New function.
839 (extract_info_print_args): New function.
840 (info_print_args_help): New function.
841 (report_unrecognized_option_error): New function.
843 2018-10-26 Tom Tromey <tom@tromey.com>
845 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
846 (compute_compunit_symtab_includes): Update.
847 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
848 (compunit_symtab_ptr): Likewise.
850 2018-10-26 John Baldwin <jhb@FreeBSD.org>
852 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
853 default_print_auxv_entry for specific tag values.
855 2018-10-26 John Baldwin <jhb@FreeBSD.org>
857 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
859 2018-10-26 Jim Wilson <jimw@sifive.com>
861 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
862 (riscv_linux_sigframe_init): Declare.
863 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
864 (riscv_linux_sigframe): New.
865 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
866 (riscv_linux_sigframe_init): Define.
867 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
869 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
870 (riscv_isa_flen): Likewise. Drop static.
871 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
872 (riscv_isa_flen): Likewise. Declare.
874 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
875 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
877 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
878 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
879 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
880 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
881 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
882 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
883 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
885 (struct ppc_linux_features) <htm>: New field.
886 (ppc_linux_no_features): Add initializer for htm field.
887 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
889 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
890 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
891 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
892 Define if not already defined.
893 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
894 and rs6000/powerpc-isa207-htm-vsx64l.
895 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
896 rs6000/powerpc-isa207-htm-vsx64l.xml.
897 * features/rs6000/power-htm-spr.xml: New file.
898 * features/rs6000/power-htm-core.xml: New file.
899 * features/rs6000/power64-htm-core.xml: New file.
900 * features/rs6000/power-htm-fpu.xml: New file.
901 * features/rs6000/power-htm-altivec.xml: New file.
902 * features/rs6000/power-htm-vsx.xml: New file.
903 * features/rs6000/power-htm-ppr.xml: New file.
904 * features/rs6000/power-htm-dscr.xml: New file.
905 * features/rs6000/power-htm-tar.xml: New file.
906 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
907 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
908 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
909 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
910 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
911 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
912 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
913 fetch_regset with HTM regsets.
914 (store_register, store_ppc_registers): Call store_regset with HTM
916 (ppc_linux_nat_target::read_description): Set htm field in the
917 features struct if needed.
918 * ppc-linux-tdep.c: Include
919 features/rs6000/powerpc-isa207-htm-vsx32l.c and
920 features/rs6000/powerpc-isa207-htm-vsx64l.c.
921 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
922 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
923 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
924 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
925 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
926 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
927 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
928 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
929 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
930 (ppc32_linux_ctarregset): New globals.
931 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
932 (ppc_linux_collect_core_cpgrregset): New function.
933 (ppc_linux_iterate_over_regset_sections): Call back with the htm
935 (ppc_linux_core_read_description): Check if the tm spr section is
936 present and set htm in the features struct.
937 (_initialize_ppc_linux_tdep): Call
938 initialize_tdesc_powerpc_isa207_htm_vsx32l and
939 initialize_tdesc_powerpc_isa207_htm_vsx64l.
940 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
942 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
943 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
944 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
945 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
947 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
949 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
950 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
951 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
953 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
954 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
955 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
956 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
957 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
958 <PPC_CTAR_REGNUM>: Likewise.
959 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
960 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
961 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
962 (IS_CEFP_PSEUDOREG): Define.
963 (rs6000_register_name): Hide the upper halves of checkpointed VSX
964 registers. Return names for the checkpointed DFP, VSX, and EFP
966 (rs6000_pseudo_register_type): Remove initial assert and raise an
967 internal error in the else clause instead. Return types for the
968 checkpointed DFP, VSX, and EFP pseudo registers.
969 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
970 checkpointed DFP pseudo registers.
971 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
972 checkpointed VSX pseudo registers.
973 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
974 from efpr_pseudo_register_read and
975 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
977 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
978 Handle checkpointed DFP, VSX, and EFP registers.
979 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
980 (efp_ax_pseudo_register_collect): New functions.
981 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
982 register logic to new functions. Handle checkpointed DFP, VSX,
983 and EFP pseudo registers.
984 (rs6000_gdbarch_init): Look for and validate the htm features.
985 Include checkpointed DFP, VSX and EFP pseudo-registers.
986 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
989 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
991 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
992 without altivec or fpu.
994 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
995 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
997 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
998 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
999 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
1000 Define if not already defined.
1001 * features/rs6000/power-ebb.xml: New file.
1002 * features/rs6000/power-linux-pmu.xml: New file.
1003 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
1005 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
1006 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
1007 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
1008 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
1009 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
1010 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1011 fetch_regset with ebb and pmu regsets.
1012 (store_register, store_ppc_registers): Call store_regset with ebb
1014 (ppc_linux_nat_target::read_description): Set isa207 field in the
1015 features struct if ebb and pmu are avaiable.
1016 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
1017 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
1018 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
1020 (ppc_linux_core_read_description): Check if the pmu section is
1021 present and set isa207 in the features struct.
1022 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
1023 (ppc32_linux_pmuregset): Declare.
1024 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
1025 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
1026 <ppc_sier_regnum>: New field.
1027 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
1029 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
1031 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
1032 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
1033 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
1034 ebb and pmu features.
1036 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1037 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1039 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
1040 (tdesc_powerpc_isa207_vsx64l): Declare.
1041 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
1042 (struct ppc_linux_features) <isa207>: New field.
1043 (ppc_linux_no_features): Add initializer for isa207 field.
1044 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1046 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
1047 (NT_PPC_TAR): Define if not already defined.
1048 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
1049 rs6000/powerpc-isa207-vsx64l.
1050 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
1051 rs6000/powerpc-isa207-vsx64l.xml.
1052 * features/rs6000/power-tar.xml: New file.
1053 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
1054 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
1055 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
1056 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
1057 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
1058 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
1059 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1060 fetch_regset with the TAR regset.
1061 (store_register, store_ppc_registers): Call store_regset with the
1063 (ppc_linux_nat_target::read_description): Set isa207 field in the
1064 features struct if needed.
1065 * ppc-linux-tdep.c: Include
1066 features/rs6000/powerpc-isa207-vsx32l.c and
1067 features/rs6000/powerpc-isa207-vsx64l.c.
1068 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
1069 (ppc_linux_iterate_over_regset_sections): Call back with the tar
1071 (ppc_linux_core_read_description): Check if the tar section is
1072 present and set isa207 in the features struct.
1073 (_initialize_ppc_linux_tdep): Call
1074 initialize_tdesc_powerpc_isa207_vsx32l and
1075 initialize_tdesc_powerpc_isa207_vsx64l.
1076 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
1077 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
1078 (enum) <PPC_TAR_REGNUM>: New enum value.
1079 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
1081 (ppc_process_record_op31): Record changes to TAR.
1083 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1084 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1086 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
1087 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1088 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
1089 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
1090 (struct ppc_linux_features) <ppr_dscr>: New field.
1091 (ppc_linux_no_features): Add initializer for ppr_dscr field.
1092 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1094 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
1095 Define if not already defined.
1096 * features/Makefile (WHICH): Add
1097 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
1098 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
1099 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1100 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
1101 * features/rs6000/power-dscr.xml: New file.
1102 * features/rs6000/power-ppr.xml: New file.
1103 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
1104 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
1105 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
1106 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
1107 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
1108 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
1109 * ppc-linux-nat.c: Include <sys/uio.h>.
1110 (fetch_regset, store_regset, check_regset): New functions.
1111 (fetch_register, fetch_ppc_registers): Call fetch_regset with
1112 DSCR and PPR regsets.
1113 (store_register, store_ppc_registers): Call store_regset with
1114 DSCR and PPR regsets.
1115 (ppc_linux_get_hwcap2): New function.
1116 (ppc_linux_nat_target::read_description): Call
1117 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
1118 features struct if needed.
1119 * ppc-linux-tdep.c: Include
1120 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
1121 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
1122 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
1123 (ppc32_linux_dscrregset): New globals.
1124 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
1126 (ppc_linux_core_read_description): Check if the ppr and dscr
1127 sections are present and set ppr_dscr in the features struct.
1128 (_initialize_ppc_linux_tdep): Call
1129 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
1130 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
1131 * ppc-linux-tdep.h (ppc32_linux_pprregset)
1132 (ppc32_linux_dscrregset): Declare.
1133 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
1134 <ppc_dscr_regnum>: New field.
1135 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
1136 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
1138 (ppc_process_record_op31): Record changes to PPR and DSCR.
1140 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1142 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
1143 second initializer line for the have_* variables. Initialize
1144 have_fpu to 0 instead of 1.
1146 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1148 * arch/ppc-linux-common.c (ppc_linux_match_description):
1149 Parenthesize tdesc assignements and indent them properly.
1151 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1153 * ppc-linux-nat.c (fetch_register): Change if statement to else
1155 (store_register): Likewise.
1157 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1159 * rs6000-tdep.c: Remove reggroups.h include.
1160 (rs6000_pseudo_register_reggroup_p): Remove.
1161 (rs6000_gdbarch_init): Remove call to
1162 set_tdesc_pseudo_register_reggroup_p.
1164 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1166 * reggroups.c (default_register_reggroup_p): Return true for
1167 decfloat registers and float_reggroup.
1169 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1171 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
1172 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
1173 ppc_linux_collect_vrregset by regcache_collect_regset.
1175 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1177 * linux-tdep.c (linux_collect_regset_section_cb): Use
1178 std::vector<gdb_byte> instead of char * and malloc for buf.
1181 2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1183 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
1184 symtab_start instead of always using language_unknown.
1186 2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
1188 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
1189 READ_P parameter, catch and ignore register access errors from
1190 either the old or new MISA location.
1191 (riscv_has_feature): Update call to riscv_read_misa_reg.
1193 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1195 * python/py-function.c (convert_values_to_python): Return
1196 gdbpy_ref<>. Add header comment.
1197 (fnpy_call): Adjust.
1199 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1201 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
1202 (cmdpy_completer_handle_brkchars): Adjust.
1203 (cmdpy_completer): Adjust.
1205 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1207 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1208 Pass correct regnum to raw_supply_zeroed.
1210 2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
1212 * regcache.c (cooked_read_test): Add CSKY to the list of
1213 architectures with a save_reggroup
1215 2018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1218 * infrun.c (follow_exec): In the follow_exec_mode_new case,
1219 transfer terminal state from old new new inferior.
1220 * terminal.h (swap_terminal_info): New function.
1221 * inflow.c (swap_terminal_info): New function.
1223 2018-10-23 Tom Tromey <tom@tromey.com>
1225 * record-btrace.c (get_thread_current_frame_id): Rename from
1226 get_thread_current_frame. Return a frame_id.
1227 (record_btrace_start_replaying): Update.
1229 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1231 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
1234 2018-10-23 Joel Brobecker <brobecker@adacore.com>
1236 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
1237 have_nonsteppable_watchpoint attribute to 1.
1239 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1241 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
1243 (struct register_alias): Rename to...
1244 (struct riscv_register_alias): ...this, and update comment.
1245 (riscv_register_aliases): Update type, and alias names. Remove
1246 CSR names from this list.
1247 (riscv_register_name): Use riscv_gdb_reg_names for int and float
1248 register names. Add an extra assertion.
1249 (riscv_is_regnum_a_named_csr): New function.
1250 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
1252 2018-10-23 John Darrington <john@darrington.wattle.id.au>
1254 * configure.tgt: Add configuration for s12z.
1255 * s12z-tdep.c: New file.
1256 * NEWS: Mention new target.
1258 2018-10-22 Jim Wilson <jimw@sifive.com>
1260 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
1261 FP reg smaller than FP reg size, and fill with -1 instead of 0.
1263 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
1264 (riscv_register_type): Use them.
1265 (riscv_print_one_register_info): Handle union of floats same as float.
1266 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
1267 riscv_fpreg_q_type fields.
1269 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
1271 * gdbarch.sh (gdbarch_num_cooked_regs): New.
1272 * gdbarch.h: Re-generate.
1273 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
1274 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1275 * eval.c (evaluate_subexp_standard): Likewise.
1276 * findvar.c (value_of_register): Likewise.
1277 (value_of_register_lazy): Likewise.
1278 (address_from_register): Likewise.
1279 * frame.c (get_frame_register_bytes): Likewise.
1280 * gdbarch-selftests.c (register_to_value_test): Likewise.
1281 * h8300-tdep.c (h8300_register_type): Likewise.
1282 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
1283 (i386_svr4_reg_to_regnum): Likewise.
1284 * infcmd.c (default_print_registers_info): Likewise.
1285 (registers_info): Likewise.
1286 (print_vector_info): Likewise.
1287 (default_print_float_info): Likewise.
1288 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1289 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
1290 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
1291 (mi_cmd_data_list_changed_registers): Likewise.
1292 (mi_cmd_data_list_register_values): Likewise.
1293 (mi_cmd_data_write_register_values): Likewise.
1294 (mi_cmd_trace_frame_collected): Likewise.
1295 * mips-tdep.c (print_gp_register_row): Likewise.
1296 (mips_print_registers_info): Likewise.
1297 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
1298 * regcache.c (init_regcache_descr): Likewise.
1299 (register_size): Likewise.
1300 (register_dump::dump): Likewise.
1301 (cooked_read_test): Likewise.
1302 (cooked_write_test): Likewise.
1303 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1304 (rs6000_gdbarch_init): Likewise.
1305 * stabsread.c (stab_reg_to_regnum): Likewise.
1306 * stack.c (info_frame_command): Likewise.
1307 * target-descriptions.c (tdesc_register_name): Likewise.
1308 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1309 * tui/tui-regs.c (tui_show_register_group): Likewise.
1310 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1311 (user_reg_map_regnum_to_name): Likewise.
1312 (value_of_user_reg): Likewise.
1313 (maintenance_print_user_registers): Likewise.
1314 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
1315 (xtensa_register_name): Likewise.
1316 (xtensa_register_type): Likewise.
1317 (xtensa_reg_to_regnum): Likewise.
1318 (xtensa_pseudo_register_read): Likewise.
1319 (xtensa_pseudo_register_write): Likewise.
1321 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1323 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
1324 correctly-sized buffer with raw_read.
1325 (amd64_pseudo_register_write): Use correctly-sized buffer for
1328 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1330 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
1331 in add_prefix_cmd of set print type.
1333 2018-10-19 Tom Tromey <tom@tromey.com>
1336 * NEWS: Mention tabset deprecation.
1337 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
1338 (update_tab_width): New function.
1339 (tui_set_tab_width, tui_show_tab_width): New functions.
1340 (tui_set_tab_width_command): Use update_tab_width.
1341 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
1342 Add new "set tui tab-width" command.
1343 * tui/tui-source.c (tui_set_source_content): Update.
1344 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1345 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
1347 (tui_tab_width): Declare.
1348 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
1349 (tui_set_default_tab_len): Remove.
1351 2018-10-19 Tom Tromey <tom@tromey.com>
1353 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
1354 (key_is_backspace, tui_getc): Don't declare.
1355 * tui/tui-io.c (key_is_start_sequence): Now static.
1356 (key_is_end_sequence, key_is_backspace): Remove.
1357 (tui_getc): Now static.
1359 2018-10-19 Tom Tromey <tom@tromey.com>
1361 * symfile.c (reread_symbols): Clear "static_links".
1363 2018-10-19 Alan Hayward <alan.hayward@arm.com>
1365 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
1367 (aarch64_linux_sigframe_init): Extra boundary checks.
1369 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
1371 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
1372 the possibly non-existent tdesc type 'vec128', but the type of raw
1373 register v16 instead.
1375 2018-10-19 Gary Benson <gbenson@redhat.com>
1377 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
1379 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
1382 * cli/cli-dump.c (restore_binary_file): Check if "file" is
1385 2018-10-17 Paul Koning <paul_koning@dell.com>
1387 * charset.c (convert_between_encodings): Fix unsigned overflow.
1389 2018-10-17 John Baldwin <jhb@FreeBSD.org>
1391 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
1392 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
1393 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
1394 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1396 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
1397 and fbsd_info_proc_mappings_header.
1398 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
1399 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1402 2018-10-17 Joel Brobecker <brobecker@adacore.com>
1404 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
1407 2018-10-15 Tom Tromey <tom@tromey.com>
1409 * tui/tui.c (strcat_to_buf): Remove casts.
1410 * tui/tui-winsource.c (tui_show_source_line)
1411 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
1412 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
1413 * tui/tui-windata.c (tui_first_data_item_displayed)
1414 (tui_delete_data_content_windows, tui_erase_data_content)
1415 (tui_display_all_data, tui_display_data_from)
1416 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
1417 * tui/tui-win.c (tui_set_win_height)
1418 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
1420 * tui/tui-win.c (tui_resize_all): Remove casts.
1421 (tui_scroll_backward_command, tui_set_focus)
1422 (tui_set_tab_width_command): Likewise.
1423 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
1424 * tui/tui-regs.c (tui_show_register_group): Remove cast.
1425 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
1426 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
1427 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
1430 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
1432 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
1433 AArch64/ARM maintainer.
1435 2018-10-11 Gary Benson <gbenson@redhat.com>
1437 * interps.h (interp::m_name): Make private and mutable.
1438 * interps.c (interp::~interp): Free m_name.
1440 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1441 Simon Marchi <simark@simark.ca>
1443 * README (`configure' options): Add documentation for new
1444 "--enable-unit-tests" option.
1445 * acinclude.m4: Include "selftest.m4".
1446 * configure: Regenerate.
1447 * configure.ac: Use "GDB_AC_SELFTEST".
1448 * maint.c (maintenance_selftest): Update message informing
1449 that selftests have been disabled.
1450 (maintenance_info_selftests): Likewise.
1451 * selftest.m4: New file.
1453 2018-10-10 Gary Benson <gbenson@redhat.com>
1455 * remote.c (remote_target::remote_send_printf): Add
1456 missing va_end found by Coverity.
1458 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
1460 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
1462 2018-10-09 Tom Tromey <tom@tromey.com>
1464 * configure: Rebuild.
1465 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
1466 * NEWS: Update --enable-ubsan documentation.
1468 2018-10-09 Gary Benson <gbenson@redhat.com>
1470 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
1473 2018-10-08 Tom Tromey <tom@tromey.com>
1475 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
1477 (riscv_fbsd_init_abi): Likewise.
1479 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
1480 * valops.c (value_struct_elt_for_reference): Rename local variable
1481 to work around the shadowing a previous local warning.
1483 2018-10-08 John Baldwin <jhb@FreeBSD.org>
1485 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
1486 * NEWS: Mention new FreeBSD/riscv native configuration.
1487 * configure.host: Add riscv*-*-freebsd*.
1488 * configure.nat: Likewise.
1489 * riscv-fbsd-nat.c: New file.
1491 2018-10-08 John Baldwin <jhb@FreeBSD.org>
1493 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
1494 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
1495 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
1496 * NEWS: Mention new FreeBSD/riscv target.
1497 * configure.tgt: Add riscv*-*-freebsd*.
1498 * riscv-fbsd-tdep.c: New file.
1499 * riscv-fbsd-tdep.h: New file.
1501 2018-10-08 John Baldwin <jhb@FreeBSD.org>
1503 * regcache.h (struct regcache_map_entry): Note that this type can
1504 be used with traditional frame caches.
1505 * trad-frame.c (trad_frame_set_reg_regmap): New.
1506 * trad-frame.h (trad_frame_set_reg_regmap): New.
1508 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
1511 * valops.c (get_virtual_base_offset): New function.
1512 (value_struct_elt_for_reference): Use it to get virtual base offset
1513 and add it in calculating class member address.
1515 2018-10-08 John Darrington <john@darrington.wattle.id.au>
1517 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
1518 (check_producer): Check if the producer is codewarrior.
1519 (producer_is_codewarrior): New function.
1520 (lnp_state_machine::record_line): Ignore is_stmt flag for records
1521 produced by codewarrior.
1522 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
1524 2018-10-06 Tom Tromey <tom@tromey.com>
1527 * python/py-inferior.c: Add "architecture" entry.
1528 (infpy_architecture): New function.
1530 2018-10-06 Tom Tromey <tom@tromey.com>
1533 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
1534 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
1535 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
1536 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
1538 2018-10-06 Tom Tromey <tom@tromey.com>
1541 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
1542 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
1543 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
1546 2018-10-06 Tom Tromey <tom@tromey.com>
1548 * python/py-breakpoint.c (bppy_get_location): Handle a
1549 bp_breakpoint without a location.
1551 2018-10-06 Tom Tromey <tom@tromey.com>
1553 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
1554 (_RegEx): Reformat help text.
1555 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
1556 (AnyCallerIs, AnyCallerMatches): Reformat help text.
1557 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
1559 * python/lib/gdb/command/xmethods.py (InfoXMethod)
1560 (EnableXMethod, DisableXMethod): Remove help indentation.
1561 Capitalize meta-syntactic variables.
1562 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
1563 (EnableUnwinder, DisableUnwinder): Remove help indentation.
1564 Capitalize meta-syntactic variables.
1565 * python/lib/gdb/command/explore.py (ExploreCommand)
1566 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
1567 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
1568 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
1569 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
1570 Remove help indentation.
1571 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
1572 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
1573 (DisableFrameFilter, SetFrameFilterPriority)
1574 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
1576 2018-10-06 Tom Tromey <tom@tromey.com>
1579 * tui/tui-io.c (gdb_wgetch): New function.
1580 (tui_mld_getc, tui_getc): Use it.
1582 2018-10-05 Tom Tromey <tom@tromey.com>
1584 * sol-thread.c (sol_thread_target::wait): Rename inner
1587 2018-10-04 Tom Tromey <tom@tromey.com>
1589 * configure: Rebuild.
1590 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
1592 2018-10-04 Tom Tromey <tom@tromey.com>
1594 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
1595 declaration of "block".
1597 2018-10-04 Tom Tromey <tom@tromey.com>
1599 * common/filestuff.c (fdwalk): Remove inner declaration of
1602 2018-10-04 Tom Tromey <tom@tromey.com>
1604 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
1605 "structs_addr" and hoist declaration.
1607 2018-10-04 Tom Tromey <tom@tromey.com>
1609 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
1612 2018-10-04 Tom Tromey <tom@tromey.com>
1614 * mdebugread.c (parse_partial_symbols): Use std::string.
1616 2018-10-04 Tom Tromey <tom@tromey.com>
1618 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
1619 * p-valprint.c (pascal_val_print): Split inner "i" variable.
1620 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
1622 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
1624 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
1625 * varobj.c (varobj_update): Rename inner "newobj",
1627 * valprint.c (generic_emit_char): Rename inner "buf".
1628 * valops.c (find_overload_match): Rename inner "temp".
1629 (value_struct_elt_for_reference): Declare "v" in more inner
1631 * v850-tdep.c (v850_push_dummy_call): Rename "len".
1632 * unittests/array-view-selftests.c (run_tests): Rename inner
1634 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
1636 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
1637 "tsv" in more inner scope.
1638 (print_one_static_tracepoint_marker): Rename inner
1640 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
1641 (tic6x_push_dummy_call): Don't redeclare "addr".
1642 * target-float.c: Declare "dto" lower.
1643 * symtab.c (lookup_local_symbol): Rename inner "sym".
1644 (find_pc_sect_line): Rename inner "pc".
1645 * stack.c (print_frame): Don't redeclare "gdbarch".
1646 (return_command): Rename inner "gdbarch".
1647 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
1649 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
1651 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
1652 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
1654 * remote.c (remote_target::update_thread_list): Don't redeclare
1656 (remote_target::process_initial_stop_replies): Rename inner
1658 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
1659 (remote_target::wait_as): Don't redeclare "stop_reply".
1660 (remote_target::get_thread_local_address): Rename inner
1662 (remote_target::get_tib_address): Likewise.
1664 * regcache.c (cooked_read_test): Rename "regnum".
1665 * record-btrace.c (cmd_record_btrace_start): Rename inner
1667 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
1669 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
1671 (ppu2spu_sniffer): Rename inner "buf".
1672 * parse.c (operator_check_standard): Rename inner "type",
1674 * p-valprint.c (pascal_val_print): Introduce new scope for
1675 "low_bound", "high_bound".
1676 * p-exp.y (yylex): Declare "i" in loop header.
1677 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
1678 Lower declaration of "s".
1679 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
1681 (nios2_push_dummy_call): Rename "len".
1682 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
1684 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
1685 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
1686 (linux_xfer_osdata_modules): Likewise.
1687 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
1688 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1689 (mips_o64_push_dummy_call): Likewise.
1690 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
1692 * mi/mi-main.c (list_available_thread_groups): Rename inner
1694 (mi_cmd_data_read_memory): Rename inner "opts".
1695 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
1697 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
1698 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
1700 (parse_partial_symbols): Rename inner "pst", "p", "name"
1701 * main.c (captured_main_1): Rename inner "i"s.
1702 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
1704 * linux-tdep.c (linux_info_proc): Rename inner "filename".
1705 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
1706 * infrun.c (handle_no_resumed): Don't redeclare "thread".
1707 (handle_signal_stop): Rename inner "gdbarch".
1708 (handle_command): Declare "signum" in loop header.
1709 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
1711 (examine_prologue): Rename inner "sol" and "sof".
1712 (ia64_extract_return_value): Rename inner "val". Declare another
1713 "val" in a more inner scope.
1714 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
1716 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
1718 * findvar.c (default_read_var_value): Don't redeclare "addr".
1719 * f-exp.y (yylex): Declare "i" in loop header.
1720 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
1721 Rename inner "type", "expect_type".
1722 (evaluate_subexp_for_sizeof): Rename inner "pc".
1723 * elfread.c (elf_symfile_read): Rename inner "abfd".
1724 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
1726 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
1727 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
1728 (dwarf_decode_line_header): Rename inner "lh".
1729 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
1730 "offset". Declare "i" in loop header.
1731 (disassemble_dwarf_expression): Rename inner "addr_size".
1732 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
1734 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
1735 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
1736 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
1737 "inner_list_emitter".
1738 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
1739 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
1740 declaration in a block.
1741 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
1742 * cp-valprint.c (cp_print_value_fields): Don't redeclare
1743 "obstack_final_size".
1744 * cp-support.c (inspect_type): Declare "i" in loop header.
1745 * compile/compile.c (compile_instance::insert_symbol_error):
1747 * common/agent.c (agent_run_command): Remove inner "ret"
1749 * coffread.c (coff_symfile_read): Rename inner "name".
1750 (coff_symfile_read): Rename inner "abfd".
1751 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
1752 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
1754 * c-exp.y (lex_one_token): Move "len" declaration lower.
1755 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
1757 (create_exception_master_breakpoint): Likewise. Don't redeclare
1759 (watch_command_1): Declare "mark" later.
1760 (clear_command): Don't shadow "a" or "b".
1761 (delete_command): Rename inner "b".
1762 (delete_trace_command): Likewise.
1763 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
1765 (arm_gdbarch_init): Remove inner "e_flags".
1766 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
1767 "offset" in inner blocks.
1769 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
1771 * dwarf-index-write.c (file_write): Don't write if the vector is
1774 2018-10-05 Tom de Vries <tdevries@suse.de>
1776 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
1777 PyArg_ParseTuple call.
1779 2018-10-05 Tom de Vries <tdevries@suse.de>
1781 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
1782 PyArg_ParseTuple call.
1784 2018-10-04 Joel Brobecker <brobecker@adacore.com>
1786 * psymtab.c (recursively_search_psymtabs): Reformat parameters
1787 to avoid exceeding 80 characters per line limit.
1789 2018-10-04 Tom Tromey <tom@tromey.com>
1791 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1792 (reread_symbols): Update.
1793 * complaints.h (clear_complaints): Remove argument.
1794 * complaints.c (enum complaint_series): Remove.
1795 (series): Remove global.
1796 (complaint_internal): Update.
1797 (clear_complaints): Remove argument.
1799 2018-10-04 Tom Tromey <tom@tromey.com>
1801 * symfile.c (symbol_file_add_with_addrs): Do not print "no
1802 debugging symbols" message if there is a separate debug objfile.
1804 2018-10-04 Tom Tromey <tom@tromey.com>
1807 * symfile.c (symbol_file_add_with_addrs): Update output.
1808 * psymtab.c (require_partial_symbols): Update output.
1810 2018-10-04 Tom Tromey <tom@tromey.com>
1813 * complaints.c: Emit \n.
1815 2018-10-04 Tom Tromey <tom@tromey.com>
1817 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
1818 (separate_debug_file_exists, find_separate_debug_file)
1819 (add_symbol_file_command, reread_symbols, allocate_symtab)
1820 (allocate_compunit_symtab): Use filtered printing, not
1822 * psymtab.c (require_partial_symbols, dump_psymtab)
1823 (allocate_psymtab): Use filtered printing, not unfiltered.
1825 2018-10-04 Tom Tromey <tom@tromey.com>
1827 * complaints.c (complaint_internal): Correctly check complaint
1830 2018-10-04 Tom Tromey <tom@tromey.com>
1832 * complaints.h (struct complaints): Remove declaration.
1833 * complaints.c (clear_complaints): Remove an unused variable.
1835 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1837 * MAINTAINERS (Write After Approval): Add self.
1839 2018-10-03 Tom Tromey <tom@tromey.com>
1841 * guile/scm-value.c (gdbscm_value_to_string): Initialize
1843 * coffread.c (coff_symtab_read): Initialize "newobj".
1845 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
1847 * dwarf2read.c (read_func_scope): Remove struct keyword in
1850 2018-10-03 Tom Tromey <tom@tromey.com>
1852 * README: Mention --enable-ubsan.
1853 * NEWS: Mention --enable-ubsan.
1854 * acinclude.m4: Include sanitize.m4.
1855 * configure: Rebuild.
1856 * configure.ac: Call AM_GDB_UBSAN.
1857 * sanitize.m4: New file.
1859 2018-10-03 Tom Tromey <tom@tromey.com>
1861 * expression.h (enum exp_opcode): Use uint8_t as base type.
1862 * expprint.c (op_name): Handle invalid opcodes.
1864 2018-10-03 Tom Tromey <tom@tromey.com>
1866 * parse.c (prefixify_expression): Add assert.
1867 (parse_exp_in_context_1): Throw exception if the expression is
1870 2018-10-03 Tom Tromey <tom@tromey.com>
1872 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
1874 2018-10-03 Tom Tromey <tom@tromey.com>
1876 * c-exp.y (parse_number): Work in unsigned. Remove casts.
1878 2018-10-03 Tom Tromey <tom@tromey.com>
1880 * dwarf2read.c (read_subrange_type): Make "negative_mask"
1883 2018-10-03 Tom Tromey <tom@tromey.com>
1885 * findvar.c (extract_integer): Do work in an unsigned type.
1887 2018-10-03 Tom Tromey <tom@tromey.com>
1889 * common/enum-flags.h (enum_flags::operator~): Add static assert.
1890 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
1892 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
1893 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
1895 * c-lang.h (enum c_string_type_values): Use unsigned as base
1897 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
1899 2018-10-03 Tom Tromey <tom@tromey.com>
1901 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
1902 <~dwarf2_frame_state_reg_info>: Update.
1903 <dwarf2_frame_state_reg_info>: Update.
1904 <alloc_regs>: Add assertion. Update.
1905 <reg>: Now a std::vector.
1908 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
1909 (execute_cfa_program_test, dwarf2_frame_cache): Update.
1911 2018-10-03 Tom Tromey <tom@tromey.com>
1913 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
1915 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1917 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
1919 2018-10-02 Tom Tromey <tom@tromey.com>
1921 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
1923 2018-10-02 John Darrington <john@darrington.wattle.id.au>
1925 * NEWS: Mention changed commands.
1926 * ser-uds.c: New file.
1927 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
1928 * configure: Regenerate.
1929 * Makefile.in: Add new file.
1930 * serial.c (serial_open): Check if filename is a socket
1931 and lookup the appropriate interface accordingly.
1933 2018-10-01 Alan Hayward <alan.hayward@arm.com>
1935 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
1937 (AARCH64_EXTRA_MAGIC): Likewise.
1938 (AARCH64_FPSIMD_MAGIC): Likewise.
1939 (AARCH64_SVE_MAGIC): Likewise.
1940 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
1941 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
1942 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
1943 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
1944 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
1945 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
1946 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
1947 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
1948 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
1949 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
1950 (read_aarch64_ctx): Add function.
1951 (aarch64_linux_sigframe_init): Detect FP registers.
1953 2018-10-01 Alan Hayward <alan.hayward@arm.com>
1955 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
1956 (AARCH64_D0_REGNUM): Likewise.
1957 (AARCH64_S0_REGNUM): Likewise.
1958 (AARCH64_H0_REGNUM): Likewise.
1959 (AARCH64_B0_REGNUM): Likewise.
1960 (AARCH64_SVE_V0_REGNUM): Likewise.
1961 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
1962 (AARCH64_D0_REGNUM): Likewise.
1963 (AARCH64_S0_REGNUM): Likewise.
1964 (AARCH64_H0_REGNUM): Likewise.
1965 (AARCH64_B0_REGNUM): Likewise.
1966 (AARCH64_SVE_V0_REGNUM): Likewise.
1968 2018-10-01 Gary Benson <gbenson@redhat.com>
1970 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
1971 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
1972 prfpregset_t instead of gdb_prfpregset_t.
1973 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
1974 * configure, config.in: Rebuild.
1976 2018-10-01 Gary Benson <gbenson@redhat.com>
1978 * common/gdb_proc_service.h: New file, factored out from...
1979 * gdb_proc_service.h: Moved common code to the above file.
1980 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
1982 2018-10-01 Gary Benson <gbenson@redhat.com>
1984 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
1985 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
1987 2018-10-01 Gary Benson <gbenson@redhat.com>
1989 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
1990 (AC_CHECK_HEADERS): Check for linux/elf.h.
1991 * configure, config.in: Rebuild.
1992 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
1993 doesn't define elf_fpregset_t.
1995 2018-10-01 Gary Benson <gbenson@redhat.com>
1997 * gdb_proc_service.h: Whitespace change.
1999 2018-10-01 Tom Tromey <tom@tromey.com>
2001 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
2002 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
2003 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
2005 2018-10-01 Tom Tromey <tom@tromey.com>
2007 * README: Minor change.
2009 2018-09-30 Pedro Alves <palves@redhat.com>
2011 * darwin-nat-info.c (darwin_debug_regions_recurse)
2012 (info_mach_exceptions_command): Remove unused local variables.
2013 * darwin-nat.c (darwin_decode_notify_message)
2014 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
2015 (darwin_stop_inferior, darwin_setup_exceptions)
2016 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
2017 (darwin_nat_target::attach, darwin_nat_target::detach)
2018 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
2020 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
2023 2018-09-29 Tom Tromey <tom@tromey.com>
2025 * README: Remove some leftover text.
2027 2018-09-29 Tom Tromey <tom@tromey.com>
2029 * PROBLEMS: Rewrite.
2032 2018-09-28 John Baldwin <jhb@FreeBSD.org>
2034 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
2035 case with explicit breakpoint kind.
2036 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
2037 'additional_info' and related logic.
2038 (riscv_debug_breakpoints): New variable.
2039 (riscv_breakpoint_kind_from_pc): Use the length of the existing
2040 instruction to determine the breakpoint kind.
2041 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
2042 flag. Update description of 'set/show riscv
2043 use-compressed-breakpoints' flag.
2045 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
2047 (NEWS): Mention changes to frame related commands.
2048 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
2049 (add_prefix_cmd_suppress_notification): New function.
2050 (add_com_suppress_notification): Call
2051 add_cmd_suppress_notification.
2052 * command.h (add_cmd_suppress_notification): Declare.
2053 (add_prefix_cmd_suppress_notification): Declare.
2054 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
2055 (parse_frame_specification): Moved from stack.c, with
2056 simplification to handle a single argument.
2057 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
2058 switch to the selected frame. Add a header comment.
2059 * stack.c: Remove 'safe-ctype.h' include.
2060 (find_frame_for_function): Add declaration.
2061 (find_frame_for_address): New function.
2062 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
2063 (frame_selection_by_function_completer): New function.
2064 (info_frame_command): Rename to...
2065 (info_frame_command_core): ...this, and update parameter types.
2066 (select_frame_command): Rename to...
2067 (select_frame_command_core): ...this, and update parameter types.
2068 (frame_command): Rename to...
2069 (frame_command_core): ...this, and update parameter types.
2070 (class frame_command_helper): New class to wrap implementations of
2071 frame related sub-commands.
2072 (frame_apply_cmd_list): New static global.
2073 (frame_cmd_list): Make static.
2074 (select_frame_cmd_list): New global for sub-commands.
2075 (info_frame_cmd_list): New global for sub-commands.
2076 (_initialize_stack): Register sub-commands for 'frame',
2077 'select-frame', and 'info frame'. Update 'frame apply' commands
2078 to use frame_apply_cmd_list. Move function local static
2079 frame_apply_list to file static frame_apply_cmd_list for
2081 * stack.h (select_frame_command): Delete declarationn.
2082 (select_frame_for_mi): Declare new function.
2084 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
2086 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
2087 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
2090 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
2092 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
2094 2018-09-26 Tom Tromey <tom@tromey.com>
2096 * valops.c (auto_abandon): Remove dead code.
2098 2018-09-26 Tom Tromey <tom@tromey.com>
2100 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
2102 2018-09-24 Tom Tromey <tom@tromey.com>
2104 * common/pathstuff.c (get_standard_cache_dir): Make
2105 "xdg_cache_home" and "home" const.
2106 * top.c (init_history): Make "tmpenv" const.
2107 * main.c (get_init_files): Make "homedir" const.
2109 2018-09-23 Tom Tromey <tom@tromey.com>
2112 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
2114 2018-09-23 Tom Tromey <tom@tromey.com>
2116 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
2117 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
2118 * python/python-internal.h (gdbpy_handle_exception): Declare.
2119 * python/py-utils.c (gdbpy_handle_exception): New function.
2121 2018-09-23 Tom Tromey <tom@tromey.com>
2124 * python/py-type.c (typy_template_argument): Check for negative
2127 2018-09-23 Tom Tromey <tom@tromey.com>
2130 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
2132 2018-09-23 Tom Tromey <tom@tromey.com>
2135 * python/py-value.c (valpy_int): Allow conversion from pointer
2138 2018-09-23 Tom Tromey <tom@tromey.com>
2141 * python/py-value.c (valpy_int): Respect type sign.
2143 2018-09-23 Tom Tromey <tom@tromey.com>
2146 * python/py-value.c (valpy_float): Allow conversions from int or
2148 (valpy_int, valpy_long): Allow conversions from float.
2150 2018-09-23 Tom Tromey <tom@tromey.com>
2152 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
2153 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
2155 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2157 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
2159 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
2161 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
2163 * windows-nat.c (windows_nat_target::wait): Remove a spurious
2164 target_terminal::ours().
2166 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
2168 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
2171 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
2173 * breakpoint.c (update_inserted_breakpoint_locations): Remove
2174 redundant condition.
2176 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2178 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
2180 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
2181 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
2182 * sol-thread.c (ps_pdmodel): Don't guard definition.
2184 * procfs.c: Fix formatting.
2186 * procfs.c (sysset_t_alloc): Remove.
2187 (create_procinfo): Use XNEW instead of sysset_t_alloc.
2188 (procfs_debug_inferior): Likewise.
2189 (procfs_set_exec_trap): Likewise.
2190 (proc_set_traced_sysentry): Don't allocate argp dynamically.
2191 (proc_set_traced_sysexit): Likewise.
2193 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
2194 (dead_procinfo): Likewise.
2195 (proc_warn): Likewise.
2196 (proc_error): Likewise.
2197 (proc_get_LDT_entry): Likewise.
2198 (do_attach): Likewise.
2199 (procfs_target::pid_to_str): Likewise.
2200 (iterate_over_mappings): Likewise.
2202 * procfs.c (create_procinfo): Fix ARI warning.
2203 (proc_get_status): Likewise.
2204 (proc_stop_process): Likewise.
2205 (proc_run_process): Likewise.
2206 (proc_kill): Likewise.
2207 (proc_get_LDT_entry): Likewise.
2208 (procfs_find_LDT_entry): Likewise.
2209 (proc_update_threads): Likewise.
2210 (proc_iterate_over_threads): Likewise.
2211 (do_attach): Likewise.
2212 (procfs_xfer_memory): Likewise.
2213 (invalidate_cache): Likewise.
2214 (procfs_target::resume): Likewise.
2215 (procfs_init_inferior): Likewise.
2216 (procfs_set_exec_trap): Likewise.
2217 (procfs_target::thread_alive): Likewise.
2218 (procfs_target::pid_to_exec_file): Likewise.
2219 (iterate_over_mappings): Likewise.
2220 (procfs_target::make_corefile_notes): Likewise.
2221 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
2223 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
2224 (procfs_find_LDT_entry): Likewise.
2225 * sol-thread.c (ps_lgetLDT): Likewise.
2227 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2230 * procfs.c (procfs_target): Declare pid_to_exec_file.
2231 (procfs_target::pid_to_exec_file): New.
2233 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2235 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
2237 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
2238 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
2240 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2242 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
2243 (supply_fpregset, fill_fpregset): Move ...
2244 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
2245 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
2246 Remove references to ioctl-based procfs.
2247 Include <sys/reg.h>.
2248 Remove PR_MODEL_NATIVE guards.
2249 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
2250 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
2252 2018-09-19 Xavier Roirand <roirand@adacore.com>
2255 * solib-darwin.c (darwin_get_dyld_bfd): New function.
2256 (darwin_solib_get_all_image_info_addr_at_init): Update call.
2257 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
2259 2018-09-19 John Baldwin <jhb@FreeBSD.org>
2261 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
2262 (fbsd_print_sockaddr_in6): Likewise.
2264 2018-09-19 Richard Bunt <richard.bunt@arm.com>
2265 Chris January <chris.january@arm.com>
2267 * eval.c (skip_undetermined_arglist): Skip argument list helper.
2268 (evaluate_subexp_standard): Return a dummy type when
2269 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
2270 OP_F77_UNDETERMINED_ARGLIST case.
2271 * expression.h (enum noside): Update comment.
2273 2018-09-19 George Vasick <george.vasick@oracle.com>
2275 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
2277 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
2278 April Chin <april.chin@oracle.com>
2279 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2281 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
2283 (create_procinfo): Print pids in /proc without leading zeros.
2285 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
2287 * nios2-tdep.c (nios2_gcc_target_options): New.
2288 (nios2_gdb_arch_init): Install new hook.
2290 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
2292 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
2294 * update-gnulib.sh: Apply patch.
2295 * configure: Re-generate.
2297 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2299 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
2300 description. Make "info proc" command descriptions more
2303 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2305 * NEWS: Mention 'info proc files' command.
2307 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2309 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
2310 descriptors for IP_FILES and IP_ALL.
2312 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2314 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
2315 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
2316 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
2317 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
2318 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
2319 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
2320 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
2321 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
2322 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
2323 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
2324 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
2325 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
2326 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
2327 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
2328 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
2329 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
2330 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
2331 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
2332 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
2333 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
2334 (struct fbsd_sockaddr_un): New types.
2335 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
2336 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
2337 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
2338 (fbsd_core_info_proc_files): New functions.
2339 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
2341 * fbsd-tdep.h (fbsd_info_proc_files_header)
2342 (fbsd_info_proc_files_entry): New.
2344 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2346 * defs.h (enum info_proc_what) [IP_FILES]: New value.
2347 * infcmd.c (info_proc_cmd_files): New function.
2348 (_initialize_infcmd): Register 'info proc files' command.
2350 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2352 * gnulib/aclocal-m4-deps.mk: Re-generate.
2353 * gnulib/aclocal.m4: Re-generate.
2354 * gnulib/config.in: Re-generate.
2355 * gnulib/configure: Re-generate.
2356 * gnulib/import/Makefile.am: Re-generate.
2357 * gnulib/import/Makefile.in: Re-generate.
2358 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2359 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2360 * gnulib/import/arpa_inet.in.h: New file.
2361 * gnulib/import/inet_ntop.c: New file.
2362 * gnulib/import/m4/arpa_inet_h.m4: New file.
2363 * gnulib/import/m4/inet_ntop.m4: New file.
2364 * gnulib/import/m4/netinet_in_h.m4: New file.
2365 * gnulib/import/m4/socklen.m4: New file.
2366 * gnulib/import/m4/sockpfaf.m4: New file.
2367 * gnulib/import/m4/stdalign.m4: New file.
2368 * gnulib/import/m4/sys_uio_h.m4: New file.
2369 * gnulib/import/netinet_in.in.h: New file.
2370 * gnulib/import/stdalign.in.h: New file.
2371 * gnulib/import/sys_socket.c: New file.
2372 * gnulib/import/sys_socket.in.h: New file.
2373 * gnulib/import/sys_uio.in.h: New file.
2374 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
2377 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2379 * gnulib/aclocal-m4-deps.mk: New file.
2380 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
2383 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2385 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
2388 2018-09-18 Tom Tromey <tom@tromey.com>
2390 * compile/compile-object-load.c (struct
2391 link_hash_table_cleanup_data): Add constructor and destructor.
2392 Use DISABLE_COPY_AND_ASSIGN.
2393 (~link_hash_table_cleanup_data): Rename from
2394 link_hash_table_free. Now a destructor.
2395 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
2397 2018-09-18 Tom Tromey <tom@tromey.com>
2399 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2400 * compile/compile-object-load.c (struct munmap_list): Move to
2402 (munmap_list::add): Rename from munmap_list_add; rewrite.
2403 (munmap_list::~munmap_list): Rename from munmap_list_free.
2404 (munmap_listp_free_cleanup): Remove.
2405 (compile_object_load): Update.
2406 * compile/compile-object-load.h (struct munmap_list): Move from
2407 compile-object-load.c. Rewrite.
2409 2018-09-18 Alan Hayward <alan.hayward@arm.com>
2411 * aarch64-tdep.c (pass_in_v): Use register size.
2412 (aarch64_extract_return_value): Likewise.
2413 (aarch64_store_return_value): Likewise.
2415 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2417 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
2420 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2422 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
2423 Fix short help line.
2425 2018-09-17 Tom Tromey <tom@tromey.com>
2428 * configure: Rebuild.
2429 * configure.ac: Conditionally use -DNDEBUG for Python.
2431 2018-09-17 Tom Tromey <tom@tromey.com>
2433 * configure: Rebuild.
2434 * configure.ac: Use gmp as a library dependency when checking for
2437 2018-09-17 Pedro Alves <palves@redhat.com>
2439 * python/py-inferior.c (find_inferior_object): Delete.
2441 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
2443 * compile/compile-cplus-types.c
2444 (compile_cplus_instance::enter_scope): Don't use new_scope after
2447 2018-09-17 Tom Tromey <tom@tromey.com>
2449 * common/pathstuff.c (get_standard_cache_dir): Use
2450 ~/Library/Caches on macOS.
2451 * common/pathstuff.h (get_standard_cache_dir): Update comment.
2453 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
2456 * breakpoint.c (commands_cmd_element): New.
2457 (_initialize_breakpoint): Assign commands_cmd_element.
2458 * breakpoint.h (commands_cmd_element): New.
2459 * cli/cli-script.c (while_cmd_element, if_command,
2460 define_cmd_element): New.
2461 (command_name_equals): Remove.
2462 (process_next_line): Compare commands by pointer, not by name.
2463 (_initialize_cli_script): Assign the various cmd_list_element
2465 * compile/compile.c (compile_cmd_element): New.
2466 (_initialize_compile): Assign compile_cmd_element.
2467 * compile/compile.h (compile_cmd_element): New.
2468 * guile/guile.c (guile_cmd_element): New.
2469 (install_gdb_commands): Assign guile_cmd_element.
2470 * guile/guile.h (guile_cmd_element): New.
2471 * python/python.c (python_cmd_element): New.
2472 (_initialize_python): Assign python_cmd_element.
2473 * python/python.h (python_cmd_element): New.
2474 * tracepoint.c (while_stepping_cmd_element): New.
2475 (_initialize_tracepoint): Assign while_stepping_cmd_element.
2476 * tracepoint.h (while_stepping_cmd_element): New.
2478 2018-09-17 Tom Tromey <tom@tromey.com>
2480 * infrun.c (save_infcall_suspend_state): Return
2481 infcall_suspend_state_up.
2482 (save_infcall_control_state): Return infcall_control_state_up.
2483 * inferior.h (save_infcall_suspend_state)
2484 (save_infcall_control_state): Declare later. Return unique
2487 2018-09-17 Tom Tromey <tom@tromey.com>
2489 * infrun.c (struct stop_context): Declare constructor,
2490 destructor, "changed" method.
2491 (stop_context::stop_context): Rename from save_stop_context.
2492 (stop_context::~stop_context): Rename from
2493 release_stop_context_cleanup.
2494 (normal_stop): Update.
2495 (stop_context::changed): Rename from stop_context_changed. Return
2498 2018-09-17 Tom Tromey <tom@tromey.com>
2500 * inferior.h (struct infcall_suspend_state_deleter): New.
2501 (infcall_suspend_state_up): New typedef.
2502 (struct infcall_control_state_deleter): New.
2503 (infcall_control_state_up): New typedef.
2504 (make_cleanup_restore_infcall_suspend_state)
2505 (make_cleanup_restore_infcall_control_state): Don't declare.
2506 * infcall.c (call_function_by_hand_dummy): Update.
2507 * infrun.c (do_restore_infcall_suspend_state_cleanup)
2508 (make_cleanup_restore_infcall_suspend_state): Remove.
2509 (do_restore_infcall_control_state_cleanup)
2510 (make_cleanup_restore_infcall_control_state): Remove.
2512 2018-09-17 Tom Tromey <tom@tromey.com>
2514 * gdbthread.h (struct thread_control_state): Add initializer.
2515 (class thread_info) <control>: Remove initializer.
2516 * inferior.h (struct inferior_control_state): Add initializer.
2517 (class inferior) <control>: Remove initializer.
2518 (exit_inferior_1): Update.
2519 * infrun.c (struct infcall_control_state): Add constructors.
2520 (save_infcall_control_state): Use new.
2521 (restore_infcall_control_state, discard_infcall_control_state):
2524 2018-09-17 Tom Tromey <tom@tromey.com>
2526 * infrun.c (struct infcall_suspend_state) <registers>: Now a
2528 <siginfo_data>: Now a unique_xmalloc_ptr.
2529 (save_infcall_suspend_state, restore_infcall_suspend_state)
2530 (discard_infcall_suspend_state)
2531 (get_infcall_suspend_state_regcache): Update.
2533 2018-09-17 Tom Tromey <tom@tromey.com>
2535 * gdbthread.h (struct thread_suspend_state): Add initializers.
2536 (class thread_info) <suspend>: Remove initializer.
2537 * infrun.c (struct infcall_suspend_state): Add initializers.
2538 (save_infcall_suspend_state): Use new.
2539 (discard_infcall_suspend_state): Use delete.
2541 2018-09-16 Tom Tromey <tom@tromey.com>
2543 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2545 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
2546 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2547 (py_varobj_iter_new): Likewise.
2548 (py_varobj_get_iterator): Use gdbpy_ref.
2550 2018-09-16 Tom Tromey <tom@tromey.com>
2552 * python/py-threadevent.c (py_get_event_thread): Simplify.
2553 * python/py-inferior.c (infpy_thread_from_thread_handle):
2554 Return immediately after calling thread_to_thread_object. Use
2556 (thread_to_thread_object): Set the exception on a NULL return.
2558 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2560 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
2562 2018-09-16 Tom Tromey <tom@tromey.com>
2564 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2567 2018-09-16 Tom Tromey <tom@tromey.com>
2569 * python/python-internal.h (thread_to_thread_object): Change
2571 * python/py-inferior.c (thread_to_thread_object): Return a new
2573 (infpy_thread_from_thread_handle): Update.
2574 * python/py-infthread.c (gdbpy_selected_thread): Update.
2575 * python/py-stopevent.c (create_stop_event_object): Update.
2576 * python/py-threadevent.c (py_get_event_thread): Return a new
2578 (py_get_event_thread): Update.
2579 * python/py-event.h (py_get_event_thread): Change return type.
2580 * python/py-continueevent.c (create_continue_event_object):
2583 2018-09-16 Tom Tromey <tom@tromey.com>
2585 * python/py-progspace.c (pspy_get_objfiles): Update.
2586 * python/python-internal.h (objfile_to_objfile_object): Change
2588 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2590 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2592 * python/python.c (gdbpy_get_current_objfile): Update.
2593 (gdbpy_objfiles): Update.
2594 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
2596 (objfile_to_objfile_object): Return a new reference.
2597 * python/py-symtab.c (stpy_get_objfile): Update.
2598 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2601 2018-09-16 Tom Tromey <tom@tromey.com>
2603 * python/py-inferior.c (infpy_get_progspace): Update.
2604 * python/python-internal.h (pspace_to_pspace_object): Change
2606 * python/py-newobjfileevent.c
2607 (create_clear_objfiles_event_object): Update.
2608 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2610 * python/python.c (gdbpy_get_current_progspace): Update.
2611 (gdbpy_progspaces): Update.
2612 * python/py-progspace.c (pspace_to_pspace_object): Return a new
2614 * python/py-objfile.c (objfpy_get_progspace): Update.
2615 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
2618 2018-09-16 Tom Tromey <tom@tromey.com>
2620 * python/lib/gdb/__init__.py (current_progspace, objfiles)
2621 (solib_name, block_for_pc, find_pc_line): New functions.
2622 (execute_unwinders): Update.
2623 * python/py-block.c (gdbpy_block_for_pc): Remove.
2624 * python/py-inferior.c (infpy_get_progspace): New function.
2625 (inferior_object_getset) <progspace>: Add.
2626 * python/py-progspace.c (pspy_objfiles): Rewrite.
2627 (pspy_solib_name, pspy_block_for_pc)
2628 (pspy_find_pc_line, pspy_is_valid): New functions.
2629 (progspace_object_methods): Add entries for solib_name,
2630 block_for_pc, find_pc_line, is_valid.
2631 * python/python-internal.h (gdbpy_block_for_pc)
2632 (build_objfiles_list): Don't declare.
2633 * python/python.c: Don't include solib.h.
2634 (gdbpy_solib_name, gdbpy_find_pc_line)
2635 (gdbpy_get_current_progspace, build_objfiles_list)
2636 (gdbpy_objfiles): Remove.
2637 (GdbMethods) <current_progspace, objfiles, block_for_pc,
2638 solib_name, find_pc_line>: Remove entries.
2640 2018-09-16 Tom Tromey <tom@tromey.com>
2642 * top.c (new_ui_command): Use GNU style for metasyntactic
2644 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
2646 * maint.c (maintenance_translate_address): Remove "<>" around
2648 * interps.c (interpreter_exec_cmd): Use GNU style for
2649 metasyntactic variables.
2650 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
2651 metasyntactic variables.
2652 * tracepoint.c (tfind_range_command): Use GNU style for
2653 metasyntactic variables.
2654 (tfind_outside_command): Likewise.
2655 (_initialize_tracepoint): Likewise.
2656 * remote.c (extended_remote_target::create_inferior): Use GNU
2657 style for metasyntactic variables.
2658 * sparc64-tdep.c (adi_examine_command): Use GNU style for
2659 metasyntactic variables.
2660 (adi_assign_command): Likewise.
2662 2018-09-16 Tom Tromey <tom@tromey.com>
2664 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
2665 metasyntactic variables. Print message if no disassembler options
2668 2018-09-15 Tom Tromey <tom@tromey.com>
2670 * infcmd.c (get_inferior_args): Return const char *.
2671 * inferior.h (get_inferior_args): Return type now const.
2672 * linux-tdep.c (linux_fill_prpsinfo): Update.
2673 * procfs.c (procfs_target::make_corefile_notes): Update.
2675 2018-09-07 Tom Tromey <tom@tromey.com>
2677 * python/python.c (execute_gdb_command): Call bpstat_do_actions
2680 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
2682 * nios2-tdep.c (nios2_type_align): New.
2683 (nios2_gdb_arch_init): Install type_align hook.
2685 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2687 * eval.c (fake_method::fake_method): Call xzalloc directly for a
2688 type that is neither object file owned, nor gdbarch owned.
2689 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
2690 gdbarch is non-NULL.
2691 (alloc_type_instance): Allocate non-objfile owned types on the
2693 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
2694 using TYPE_ALLOC to ensure memory is allocated on the correct
2696 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
2697 obstack, or the gdbarch obstack.
2698 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
2700 2018-09-14 Tom Tromey <tom@tromey.com>
2702 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
2705 2018-09-14 Tom Tromey <tom@tromey.com>
2707 * nat/fork-inferior.c (get_startup_shell): Remove "static".
2709 2018-09-13 Tom Tromey <tom@tromey.com>
2711 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
2714 2018-09-13 Tom Tromey <tom@tromey.com>
2716 * exec.c (try_open_exec_file): Use std::string.
2718 2018-09-13 Tom Tromey <tom@tromey.com>
2720 * utils.h (gdb_bfd_errmsg): Return std::string.
2721 * exec.c (exec_file_attach): Update.
2722 * compile/compile-object-load.c (compile_object_load): Update.
2723 * utils.c (gdb_bfd_errmsg): Return std::string.
2725 2018-09-13 Tom Tromey <tom@tromey.com>
2727 * procfs.c (struct procinfo_deleter): New.
2728 (procinfo_up): New typedef.
2729 (do_destroy_procinfo_cleanup): Remove.
2730 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
2732 2018-09-13 Tom Tromey <tom@tromey.com>
2734 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
2736 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2737 2018-09-13 Tom Tromey <tom@tromey.com>
2739 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
2740 (pspy_get_objfiles): New function.
2741 (progspace_object_methods): New.
2742 (pspace_object_type): Add tp_methods callback.
2743 * python/python-internal.h (build_objfiles_list): New
2745 * python/python.c (build_objfiles_list): New function.
2746 (gdbpy_objfiles): Implement using build_objfiles_list.
2747 * NEWS: Mention the Progspace.objfiles method.
2749 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2751 * python/py-inferior.c (infpy_get_progspace): New function.
2752 (inferior_object_getset): Add progspace property.
2753 * NEWS: Mention the new property.
2755 2018-09-13 Tom Tromey <tom@tromey.com>
2758 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
2760 2018-09-13 Tom Tromey <tom@tromey.com>
2763 * rust-lang.c (rust_enum_variant): Now static.
2764 (rust_empty_enum_p): New function.
2765 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
2768 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2770 * python/py-inferior.c (infpy_repr): New.
2771 (inferior_object_type): Register infpy_repr.
2772 * python/py-objfile.c (objfpy_repr): New.
2773 (objfile_object_type): Register objfpy_repr.
2775 2018-09-12 John Baldwin <jhb@FreeBSD.org>
2777 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
2779 2018-09-12 John Baldwin <jhb@FreeBSD.org>
2781 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
2784 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
2786 * common/common-utils.c: Don't include '<sys/stat.h>'.
2787 (is_regular_file): Move to...
2788 * common/filestuff.c (is_regular_file): ... here.
2789 * common/common-utils.h (is_regular_file): Move to...
2790 * common/filestuff.h (is_regular_file): ... here.
2792 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
2794 * skip.c (debug_skip): New variable.
2795 (skiplist_entry::do_skip_file_p): Add debug output.
2796 (skiplist_entry::do_skip_gfile_p): Likewise.
2797 (skiplist_entry::skip_function_p): Likewise.
2798 (_initialize_step_skip): Create debug command.
2799 * NEWS: Mention set/show debug skip.
2801 2018-09-11 Xavier Roirand <roirand@adacore.com>
2803 * darwin-nat.c (should_disable_startup_with_shell):
2805 (darwin_nat_target::create_inferior): Add call.
2807 2018-09-11 Xavier Roirand <roirand@adacore.com>
2809 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
2810 inf_port, msg_state>: Initialize.
2811 (struct darwin_thread_info) <signaled, single_step>: Change
2812 type and initialize.
2813 (struct darwin_thread_info) <event>: Initialize.
2815 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2819 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
2822 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2825 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2829 * gnulib/aclocal.m4: Regenerate.
2830 * gnulib/config.in: Regenerate.
2831 * gnulib/configure: Regenerate.
2832 * gnulib/import/Makefile.am: Update.
2833 * gnulib/import/Makefile.in: Update.
2834 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2835 * gnulib/import/_Noreturn.h: ... this.
2836 * gnulib/import/alloca.in.h: Update.
2837 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2838 * gnulib/import/arg-nonnull.h: ... this.
2839 * gnulib/import/assure.h: Update.
2840 * gnulib/import/at-func.c: Update.
2841 * gnulib/import/basename-lgpl.c: Update.
2842 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2843 * gnulib/import/c++defs.h: ... this.
2844 * gnulib/import/canonicalize-lgpl.c: Update.
2845 * gnulib/import/cdefs.h: Update.
2846 * gnulib/import/chdir-long.c: Update.
2847 * gnulib/import/chdir-long.h: Update.
2848 * gnulib/import/cloexec.c: Update.
2849 * gnulib/import/cloexec.h: Update.
2850 * gnulib/import/close.c: Update.
2851 * gnulib/import/closedir.c: Update.
2852 * gnulib/import/config.charset: Update.
2853 * gnulib/import/dirent-private.h: Update.
2854 * gnulib/import/dirent.in.h: Update.
2855 * gnulib/import/dirfd.c: Update.
2856 * gnulib/import/dirname-lgpl.c: Update.
2857 * gnulib/import/dirname.h: Update.
2858 * gnulib/import/dosname.h: Update.
2859 * gnulib/import/dup-safer-flag.c: Update.
2860 * gnulib/import/dup-safer.c: Update.
2861 * gnulib/import/dup.c: Update.
2862 * gnulib/import/dup2.c: Update.
2863 * gnulib/import/errno.in.h: Update.
2864 * gnulib/import/error.c: Update.
2865 * gnulib/import/error.h: Update.
2866 * gnulib/import/exitfail.c: Update.
2867 * gnulib/import/exitfail.h: Update.
2868 * gnulib/import/extra/update-copyright: Update.
2869 * gnulib/import/fchdir.c: Update.
2870 * gnulib/import/fcntl.c: Update.
2871 * gnulib/import/fcntl.in.h: Update.
2872 * gnulib/import/fd-hook.c: Update.
2873 * gnulib/import/fd-hook.h: Update.
2874 * gnulib/import/fd-safer-flag.c: Update.
2875 * gnulib/import/fd-safer.c: Update.
2876 * gnulib/import/fdopendir.c: Update.
2877 * gnulib/import/filename.h: Update.
2878 * gnulib/import/filenamecat-lgpl.c: Update.
2879 * gnulib/import/filenamecat.h: Update.
2880 * gnulib/import/flexmember.h: Update.
2881 * gnulib/import/float+.h: Update.
2882 * gnulib/import/float.c: Update.
2883 * gnulib/import/float.in.h: Update.
2884 * gnulib/import/fnmatch.c: Update.
2885 * gnulib/import/fnmatch.in.h: Update.
2886 * gnulib/import/fnmatch_loop.c: Update.
2887 * gnulib/import/fpucw.h: Update.
2888 * gnulib/import/frexp.c: Update.
2889 * gnulib/import/frexpl.c: Update.
2890 * gnulib/import/fstat.c: Update.
2891 * gnulib/import/fstatat.c: Update.
2892 * gnulib/import/getcwd-lgpl.c: Update.
2893 * gnulib/import/getcwd.c: Update.
2894 * gnulib/import/getdtablesize.c: Update.
2895 * gnulib/import/getlogin_r.c: Update.
2896 * gnulib/import/getprogname.c: Update.
2897 * gnulib/import/getprogname.h: Update.
2898 * gnulib/import/gettext.h: Update.
2899 * gnulib/import/gettimeofday.c: Update.
2900 * gnulib/import/glob-libc.h: Update.
2901 * gnulib/import/glob.c: Update.
2902 * gnulib/import/glob.in.h: Update.
2903 * gnulib/import/glob_internal.h: Update.
2904 * gnulib/import/glob_pattern_p.c: Update.
2905 * gnulib/import/globfree.c: Update.
2906 * gnulib/import/hard-locale.c: Update.
2907 * gnulib/import/hard-locale.h: Update.
2908 * gnulib/import/intprops.h: Update.
2909 * gnulib/import/inttypes.in.h: Update.
2910 * gnulib/import/isnan.c: Update.
2911 * gnulib/import/isnand-nolibm.h: Update.
2912 * gnulib/import/isnand.c: Update.
2913 * gnulib/import/isnanl-nolibm.h: Update.
2914 * gnulib/import/isnanl.c: Update.
2915 * gnulib/import/itold.c: Update.
2916 * gnulib/import/libc-config.h: Update.
2917 * gnulib/import/limits.in.h: Update.
2918 * gnulib/import/localcharset.c: Update.
2919 * gnulib/import/localcharset.h: Update.
2920 * gnulib/import/localtime-buffer.c: Update.
2921 * gnulib/import/localtime-buffer.h: Update.
2922 * gnulib/import/lstat.c: Update.
2923 * gnulib/import/m4/00gnulib.m4: Update.
2924 * gnulib/import/m4/__inline.m4: Update.
2925 * gnulib/import/m4/absolute-header.m4: Update.
2926 * gnulib/import/m4/alloca.m4: Update.
2927 * gnulib/import/m4/builtin-expect.m4: Update.
2928 * gnulib/import/m4/canonicalize.m4: Update.
2929 * gnulib/import/m4/chdir-long.m4: Update.
2930 * gnulib/import/m4/close.m4: Update.
2931 * gnulib/import/m4/closedir.m4: Update.
2932 * gnulib/import/m4/configmake.m4: Update.
2933 * gnulib/import/m4/d-ino.m4: Update.
2934 * gnulib/import/m4/d-type.m4: Update.
2935 * gnulib/import/m4/dirent_h.m4: Update.
2936 * gnulib/import/m4/dirfd.m4: Update.
2937 * gnulib/import/m4/dirname.m4: Update.
2938 * gnulib/import/m4/double-slash-root.m4: Update.
2939 * gnulib/import/m4/dup.m4: Update.
2940 * gnulib/import/m4/dup2.m4: Update.
2941 * gnulib/import/m4/eealloc.m4: Update.
2942 * gnulib/import/m4/environ.m4: Update.
2943 * gnulib/import/m4/errno_h.m4: Update.
2944 * gnulib/import/m4/error.m4: Update.
2945 * gnulib/import/m4/exponentd.m4: Update.
2946 * gnulib/import/m4/exponentl.m4: Update.
2947 * gnulib/import/m4/extensions.m4: Update.
2948 * gnulib/import/m4/extern-inline.m4: Update.
2949 * gnulib/import/m4/fchdir.m4: Update.
2950 * gnulib/import/m4/fcntl-o.m4: Update.
2951 * gnulib/import/m4/fcntl.m4: Update.
2952 * gnulib/import/m4/fcntl_h.m4: Update.
2953 * gnulib/import/m4/fdopendir.m4: Update.
2954 * gnulib/import/m4/filenamecat.m4: Update.
2955 * gnulib/import/m4/flexmember.m4: Update.
2956 * gnulib/import/m4/float_h.m4: Update.
2957 * gnulib/import/m4/fnmatch.m4: Update.
2958 * gnulib/import/m4/fnmatch_h.m4: Update.
2959 * gnulib/import/m4/fpieee.m4: Update.
2960 * gnulib/import/m4/frexp.m4: Update.
2961 * gnulib/import/m4/frexpl.m4: Update.
2962 * gnulib/import/m4/fstat.m4: Update.
2963 * gnulib/import/m4/fstatat.m4: Update.
2964 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2965 * gnulib/import/m4/getcwd-path-max.m4: Update.
2966 * gnulib/import/m4/getcwd.m4: Update.
2967 * gnulib/import/m4/getdtablesize.m4: Update.
2968 * gnulib/import/m4/getlogin.m4: Update.
2969 * gnulib/import/m4/getlogin_r.m4: Update.
2970 * gnulib/import/m4/getpagesize.m4: Update.
2971 * gnulib/import/m4/getprogname.m4: Update.
2972 * gnulib/import/m4/gettimeofday.m4: Update.
2973 * gnulib/import/m4/glibc21.m4: Update.
2974 * gnulib/import/m4/glob.m4: Update.
2975 * gnulib/import/m4/glob_h.m4: Update.
2976 * gnulib/import/m4/gnulib-cache.m4: Update.
2977 * gnulib/import/m4/gnulib-common.m4: Update.
2978 * gnulib/import/m4/gnulib-comp.m4: Update.
2979 * gnulib/import/m4/gnulib-tool.m4: Update.
2980 * gnulib/import/m4/hard-locale.m4: Update.
2981 * gnulib/import/m4/include_next.m4: Update.
2982 * gnulib/import/m4/inttypes-pri.m4: Update.
2983 * gnulib/import/m4/inttypes.m4: Update.
2984 * gnulib/import/m4/isnand.m4: Update.
2985 * gnulib/import/m4/isnanl.m4: Update.
2986 * gnulib/import/m4/largefile.m4: Update.
2987 * gnulib/import/m4/limits-h.m4: Update.
2988 * gnulib/import/m4/localcharset.m4: Update.
2989 * gnulib/import/m4/locale-fr.m4: Update.
2990 * gnulib/import/m4/locale-ja.m4: Update.
2991 * gnulib/import/m4/locale-zh.m4: Update.
2992 * gnulib/import/m4/localtime-buffer.m4: Update.
2993 * gnulib/import/m4/longlong.m4: Update.
2994 * gnulib/import/m4/lstat.m4: Update.
2995 * gnulib/import/m4/malloc.m4: Update.
2996 * gnulib/import/m4/malloca.m4: Update.
2997 * gnulib/import/m4/math_h.m4: Update.
2998 * gnulib/import/m4/mbrtowc.m4: Update.
2999 * gnulib/import/m4/mbsinit.m4: Update.
3000 * gnulib/import/m4/mbsrtowcs.m4: Update.
3001 * gnulib/import/m4/mbstate_t.m4: Update.
3002 * gnulib/import/m4/memchr.m4: Update.
3003 * gnulib/import/m4/memmem.m4: Update.
3004 * gnulib/import/m4/mempcpy.m4: Update.
3005 * gnulib/import/m4/memrchr.m4: Update.
3006 * gnulib/import/m4/mkdir.m4: Update.
3007 * gnulib/import/m4/mkstemp.m4: Update.
3008 * gnulib/import/m4/mmap-anon.m4: Update.
3009 * gnulib/import/m4/mode_t.m4: Update.
3010 * gnulib/import/m4/msvc-inval.m4: Update.
3011 * gnulib/import/m4/msvc-nothrow.m4: Update.
3012 * gnulib/import/m4/multiarch.m4: Update.
3013 * gnulib/import/m4/nocrash.m4: Update.
3014 * gnulib/import/m4/off_t.m4: Update.
3015 * gnulib/import/m4/onceonly.m4: Update.
3016 * gnulib/import/m4/open-cloexec.m4: Update.
3017 * gnulib/import/m4/open.m4: Update.
3018 * gnulib/import/m4/openat.m4: Update.
3019 * gnulib/import/m4/opendir.m4: Update.
3020 * gnulib/import/m4/pathmax.m4: Update.
3021 * gnulib/import/m4/rawmemchr.m4: Update.
3022 * gnulib/import/m4/readdir.m4: Update.
3023 * gnulib/import/m4/readlink.m4: Update.
3024 * gnulib/import/m4/realloc.m4: Update.
3025 * gnulib/import/m4/rename.m4: Update.
3026 * gnulib/import/m4/rewinddir.m4: Update.
3027 * gnulib/import/m4/rmdir.m4: Update.
3028 * gnulib/import/m4/save-cwd.m4: Update.
3029 * gnulib/import/m4/secure_getenv.m4: Update.
3030 * gnulib/import/m4/setenv.m4: Update.
3031 * gnulib/import/m4/signal_h.m4: Update.
3032 * gnulib/import/m4/ssize_t.m4: Update.
3033 * gnulib/import/m4/stat-time.m4: Update.
3034 * gnulib/import/m4/stat.m4: Update.
3035 * gnulib/import/m4/std-gnu11.m4: Update.
3036 * gnulib/import/m4/stdbool.m4: Update.
3037 * gnulib/import/m4/stddef_h.m4: Update.
3038 * gnulib/import/m4/stdint.m4: Update.
3039 * gnulib/import/m4/stdio_h.m4: Update.
3040 * gnulib/import/m4/stdlib_h.m4: Update.
3041 * gnulib/import/m4/strchrnul.m4: Update.
3042 * gnulib/import/m4/strdup.m4: Update.
3043 * gnulib/import/m4/strerror.m4: Update.
3044 * gnulib/import/m4/string_h.m4: Update.
3045 * gnulib/import/m4/strstr.m4: Update.
3046 * gnulib/import/m4/strtok_r.m4: Update.
3047 * gnulib/import/m4/sys_socket_h.m4: Update.
3048 * gnulib/import/m4/sys_stat_h.m4: Update.
3049 * gnulib/import/m4/sys_time_h.m4: Update.
3050 * gnulib/import/m4/sys_types_h.m4: Update.
3051 * gnulib/import/m4/tempname.m4: Update.
3052 * gnulib/import/m4/time_h.m4: Update.
3053 * gnulib/import/m4/unistd-safer.m4: Update.
3054 * gnulib/import/m4/unistd_h.m4: Update.
3055 * gnulib/import/m4/warn-on-use.m4: Update.
3056 * gnulib/import/m4/wchar_h.m4: Update.
3057 * gnulib/import/m4/wchar_t.m4: Update.
3058 * gnulib/import/m4/wctype_h.m4: Update.
3059 * gnulib/import/m4/wint_t.m4: Update.
3060 * gnulib/import/malloc.c: Update.
3061 * gnulib/import/malloc/scratch_buffer.h: Update.
3062 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3063 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3064 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3065 * gnulib/import/malloca.c: Update.
3066 * gnulib/import/malloca.h: Update.
3067 * gnulib/import/malloca.valgrind: Update.
3068 * gnulib/import/math.in.h: Update.
3069 * gnulib/import/mbrtowc.c: Update.
3070 * gnulib/import/mbsinit.c: Update.
3071 * gnulib/import/mbsrtowcs-impl.h: Update.
3072 * gnulib/import/mbsrtowcs-state.c: Update.
3073 * gnulib/import/mbsrtowcs.c: Update.
3074 * gnulib/import/memchr.c: Update.
3075 * gnulib/import/memmem.c: Update.
3076 * gnulib/import/mempcpy.c: Update.
3077 * gnulib/import/memrchr.c: Update.
3078 * gnulib/import/mkdir.c: Update.
3079 * gnulib/import/mkstemp.c: Update.
3080 * gnulib/import/msvc-inval.c: Update.
3081 * gnulib/import/msvc-inval.h: Update.
3082 * gnulib/import/msvc-nothrow.c: Update.
3083 * gnulib/import/msvc-nothrow.h: Update.
3084 * gnulib/import/open.c: Update.
3085 * gnulib/import/openat-die.c: Update.
3086 * gnulib/import/openat-priv.h: Update.
3087 * gnulib/import/openat-proc.c: Update.
3088 * gnulib/import/openat.c: Update.
3089 * gnulib/import/openat.h: Update.
3090 * gnulib/import/opendir.c: Update.
3091 * gnulib/import/pathmax.h: Update.
3092 * gnulib/import/pipe-safer.c: Update.
3093 * gnulib/import/rawmemchr.c: Update.
3094 * gnulib/import/readdir.c: Update.
3095 * gnulib/import/readlink.c: Update.
3096 * gnulib/import/realloc.c: Update.
3097 * gnulib/import/ref-add.sin: Update.
3098 * gnulib/import/ref-del.sin: Update.
3099 * gnulib/import/rename.c: Update.
3100 * gnulib/import/rewinddir.c: Update.
3101 * gnulib/import/rmdir.c: Update.
3102 * gnulib/import/same-inode.h: Update.
3103 * gnulib/import/save-cwd.c: Update.
3104 * gnulib/import/save-cwd.h: Update.
3105 * gnulib/import/scratch_buffer.h: Update.
3106 * gnulib/import/secure_getenv.c: Update.
3107 * gnulib/import/setenv.c: Update.
3108 * gnulib/import/signal.in.h: Update.
3109 * gnulib/import/stat-time.c: Update.
3110 * gnulib/import/stat-time.h: Update.
3111 * gnulib/import/stat-w32.c: Update.
3112 * gnulib/import/stat-w32.h: Update.
3113 * gnulib/import/stat.c: Update.
3114 * gnulib/import/stdbool.in.h: Update.
3115 * gnulib/import/stddef.in.h: Update.
3116 * gnulib/import/stdint.in.h: Update.
3117 * gnulib/import/stdio.in.h: Update.
3118 * gnulib/import/stdlib.in.h: Update.
3119 * gnulib/import/str-two-way.h: Update.
3120 * gnulib/import/strchrnul.c: Update.
3121 * gnulib/import/strdup.c: Update.
3122 * gnulib/import/streq.h: Update.
3123 * gnulib/import/strerror-override.c: Update.
3124 * gnulib/import/strerror-override.h: Update.
3125 * gnulib/import/strerror.c: Update.
3126 * gnulib/import/string.in.h: Update.
3127 * gnulib/import/stripslash.c: Update.
3128 * gnulib/import/strnlen1.c: Update.
3129 * gnulib/import/strnlen1.h: Update.
3130 * gnulib/import/strstr.c: Update.
3131 * gnulib/import/strtok_r.c: Update.
3132 * gnulib/import/sys_stat.in.h: Update.
3133 * gnulib/import/sys_time.in.h: Update.
3134 * gnulib/import/sys_types.in.h: Update.
3135 * gnulib/import/tempname.c: Update.
3136 * gnulib/import/tempname.h: Update.
3137 * gnulib/import/time.in.h: Update.
3138 * gnulib/import/unistd--.h: Update.
3139 * gnulib/import/unistd-safer.h: Update.
3140 * gnulib/import/unistd.in.h: Update.
3141 * gnulib/import/unsetenv.c: Update.
3142 * gnulib/import/verify.h: Update.
3143 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3144 * gnulib/import/wchar.in.h: Update.
3145 * gnulib/import/wctype.in.h: Update.
3146 * gnulib/import/xalloc-oversized.h: Update.
3147 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3148 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3150 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
3152 * record-btrace.c (get_thread_current_frame): Remove
3155 2018-09-10 Jerome Guitton <guitton@adacore.com>
3157 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
3158 with check_tag to 1 if and only if the type is tagged and the
3159 component being searched cannot been found in the current
3160 view. Otherwise, always call ada_to_fixed_type with
3163 2018-09-10 Xavier Roirand <roirand@adacore.com>
3165 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
3167 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
3168 * ada-varobj.c (ada_varobj_get_number_of_children,
3169 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
3171 2018-09-10 Xavier Roirand <roirand@adacore.com>
3173 * ada-valprint.c (ada_value_print): Use type instead of
3176 2018-09-10 Xavier Roirand <roirand@adacore.com>
3178 * ada-lang.c (ada_value_subscript): Handle case when parameter is
3179 an array of access to unconstrained array.
3181 2018-09-10 Xavier Roirand <roirand@adacore.com>
3183 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
3184 (ada_check_typedef): Use it.
3186 2018-09-10 Xavier Roirand <roirand@adacore.com>
3188 * ada-varobj.c (ada_varobj_describe_struct_child)
3189 (ada_varobj_describe_child): Handle union case like struct one.
3191 2018-09-10 Tom Tromey <tom@tromey.com>
3194 * python/python.c (_initialize_python): Make example in "python"
3195 help work in Python 3.
3197 2018-09-10 Eli Zaretskii <eliz@gnu.org>
3199 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
3200 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
3201 $(EXEEXT) to the script, as it is not a program.
3203 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
3205 * python/py-prettyprint.c (pretty_print_one_value): Return
3207 (print_string_repr): Adjust.
3208 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
3209 * python/python-internal.h (apply_varobj_pretty_printer): Return
3211 * varobj.c (varobj_value_get_print_value): Adjust.
3213 2018-09-08 Tom Tromey <tom@tromey.com>
3216 * python/py-prettyprint.c (pretty_print_one_value): Check for
3219 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3221 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
3222 replace_operator_with_call.
3224 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3226 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
3228 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3230 * ada-typeprint.c (print_range): Print the bounds using TYPE
3231 rather than its TYPE_TARGET_TYPE.
3233 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3235 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
3236 call to ada_to_fixed_value_create.
3238 2018-09-08 Jerome Guitton <guitton@adacore.com>
3240 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
3242 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3244 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
3247 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3249 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
3250 Move update of loop variable "fi".
3252 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3254 * ada-lang.c (value_assign_to_component): In the case of
3255 big-endian targets, extract the bits of the given VAL
3256 using an src_offset of zero if container is not a scalar.
3258 2018-09-06 Simon Ser <contact@emersion.fr>
3261 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
3262 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3263 * fbsd-tdep.c (fbsd_make_note_desc): New.
3264 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
3265 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
3266 * target.h (enum target_object) Add FreeBSD-specific
3267 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3269 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3271 * compile/compile-c.h (generate_c_for_variable_locations):
3272 Change reference to pointer.
3273 * compile/compile-c-support.c (compile_program) <compute>:
3275 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
3276 (generate_c_for_for_one_variable): Likewise
3277 (generate_c_for_variable_locations): Likewise
3278 * compile/compile-c-types.c (compile_c_instance::convert_type):
3280 * compile/compile-cplus-symbols.c (convert_one_symbol):
3281 std::move the scope passed to enter_scope.
3282 * compile/compile-cplus-types.c
3283 (compile_cplus_instance::enter_scope): Make parameter
3285 (compile_cplus_instance::new_scope): Change reference to
3287 (compile_cplus_instance::convert_type): Likewise
3288 (compile_cplus_convert_typedef): std::move the scope passed to
3290 (compile_cplus_convert_struct_or_union): Likewise.
3291 (compile_cplus_convert_enum): Likewise.
3292 (compile_cplus_convert_namespace): Likewise.
3293 * compile/compile-cplus.h (compile_cplus_instance)
3294 <enter_scope>: Make parameter rvalue-reference.
3295 * compile/compile-internal.h (compile_instance)
3296 <get_cached_type>: Likewise
3297 * compile/compile-loc2c.c (push): Likewise
3301 (print_label): Likewise
3302 (pushf_register_address): Likewise
3303 (pushf_register): Likewise
3304 (do_compile_dwarf_expr_to_c): Likewise
3305 (compile_dwarf_expr_to_c): Likewise
3306 (compile_dwarf_bounds_to_c): Likewise
3307 * compile/compile.c (compile_instance::get_cached_type):
3309 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
3310 (compile_dwarf_bounds_to_c): Likewise
3311 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
3312 (dwarf2_compile_property_to_c): Likewise
3313 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
3314 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3317 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3319 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
3320 * tui/tui-data.c (init_content_element): Don't initialize it.
3322 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3324 * tui/tui-data.h (struct tui_win_info)
3325 <detail::opaque>: Remove.
3326 * tui/tui-data.c (init_win_info): Remove assignment.
3328 2018-09-05 Tom Tromey <tom@tromey.com>
3330 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
3331 -Wformat-nonliteral.
3332 * target-float.c (host_float_ops<T>::to_string)
3333 (host_float_ops<T>::from_string): Use
3334 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3335 * configure: Rebuild.
3337 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
3339 * printcmd.c (printf_c_string): Use
3340 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3341 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
3343 2018-09-05 Tom Tromey <tom@tromey.com>
3345 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
3347 2018-09-05 Tom de Vries <tdevries@suse.de>
3349 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
3350 with resolve_abstract_p == true.
3351 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
3352 defaulting to false. Propagate resolve_abstract_p to
3353 dwarf2_fetch_die_loc_sect_off.
3354 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
3355 parameter, defaulting to false.
3356 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
3357 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
3359 * dwarf2read.h (struct die_info): Forward-declare.
3360 (die_info_ptr): New typedef.
3361 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
3363 2018-09-05 Joel Brobecker <brobecker@adacore.com>
3367 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3368 Pedro Alves <palves@redhat.com>
3370 * gnulib/Makefile.in (aclocal_m4_deps): Move to
3371 "aclocal-m4-deps.mk". Include file here.
3372 $(srcdir)/aclocal.m4: Add "configure.ac".
3373 * gnulib/aclocal-m4-deps.mk: New file.
3374 * gnulib/update-gnulib.sh: Automatically update
3375 "aclocal-m4-deps.mk".
3377 2018-09-04 Tom Tromey <tom@tromey.com>
3379 * configure: Rebuild.
3380 * configure.ac: Remove multi-ice code.
3382 2018-09-04 Tom Tromey <tom@tromey.com>
3384 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
3385 (ada-exp.o): Update.
3387 2018-09-04 Tom Tromey <tom@tromey.com>
3389 * Makefile.in (printcmd.o, target-float.o): Remove.
3390 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
3392 2018-09-04 Tom Tromey <tom@tromey.com>
3394 * gnulib/Makefile.in: Remove obsolete comment.
3395 * Makefile.in: Remove obsolete comment.
3397 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3399 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
3402 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3404 * riscv-tdep.c: Add 'prologue-value.h' include.
3405 (struct riscv_unwind_cache): New struct.
3406 (riscv_debug_unwinder): New global.
3407 (riscv_scan_prologue): Update arguments, capture register details
3409 (riscv_skip_prologue): Reformat arguments line, move end of
3410 prologue calculation into riscv_scan_prologue.
3411 (riscv_frame_cache): Update return type, create
3412 riscv_unwind_cache, scan the prologue, and fill in remaining cache
3414 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
3415 (riscv_frame_prev_register): Use the trad_frame within the
3417 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
3420 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3422 * trad-frame.h (trad_frame_set_realreg): Declare.
3423 (trad_frame_set_addr): Declare.
3424 * trad-frame.c (trad_frame_set_realreg): Define new function.
3425 (trad_frame_set_addr): Define new function.
3426 (trad_frame_set_reg_realreg): Use new function.
3427 (trad_frame_set_reg_addr): Use new function.
3429 2018-09-01 Keith Seitz <keiths@redhat.com>
3431 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
3432 pulongest instead of "%lld".
3433 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
3436 2018-08-31 Tom Tromey <tom@tromey.com>
3438 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
3441 2018-08-31 Pedro Alves <palves@redhat.com>
3443 * gdbarch.h: Regenerate.
3445 2018-08-31 Pedro Alves <palves@redhat.com>
3447 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
3448 * target.h (Hardware watchpoint interfaces): Describe
3449 continuable/steppable/non-steppable watchpoints.
3450 * gdbarch.h, gdbarch.c: Regenerate.
3452 2018-08-31 Pedro Alves <palves@redhat.com>
3454 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
3457 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
3458 * target.h (target_ops::have_continuable_watchpoint): Delete.
3459 (target_have_continuable_watchpoint): Delete.
3460 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
3461 * target-delegates.c: Regenerate.
3463 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3465 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
3466 the files present in "gnulib/import/m4/".
3468 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
3470 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
3471 c.sw, c.swsp, and c.sdsp.
3473 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
3475 * riscv-tdep.c (struct riscv_inferior_data): Delete.
3476 (riscv_read_misa_reg): Don't cache value read into inferior data.
3477 (riscv_new_inferior_data): Delete.
3478 (riscv_inferior_data_cleanup): Delete.
3479 (riscv_inferior_data): Delete.
3480 (riscv_invalidate_inferior_data): Delete.
3481 (_initialize_riscv_tdep): Remove initialisation of inferior data.
3483 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
3485 * compile/compile-cplus-types.c
3486 (compile_cplus_instance::leave_scope): Take the address of scope
3488 (compile_cplus_instance::convert_qualified_base): Compare quals
3491 2018-08-30 Keith Seitz <keiths@redhat.com>
3493 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
3494 Use "%s" and host_address_to_string instead of "%p" in printf.
3496 2018-08-29 Keith Seitz <keiths@redhat.com>
3498 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
3499 and compile-cplus-types.c.
3500 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
3501 * c-lang.c (cplus_language_defn): Set C++ compile functions.
3502 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
3504 * compile/compile-c-support.c: Include compile-cplus.h.
3505 (load_libcompile): Templatize.
3506 (get_compile_context): "New" function.
3507 (c_get_compile_context): Use get_compile_context.
3508 (cplus_get_compile_context): New function.
3509 (cplus_push_user_expression, cplus_pop_user_expression)
3510 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
3511 (cplus_compute_program): Define new structs/functions.
3512 * compile/compile-cplus-symmbols.c: New file.
3513 * compile/compile-cplus-types.c: New file.
3514 * compile/compile-cplus.h: New file.
3515 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
3517 * compile/compile-object-load.c (get_out_value_type): Use
3518 strncmp_iw when comparing symbol names.
3519 (compile_object_load): Add mst_bss and mst_data.
3520 * compile/compile.c (_initialize_compile): Remove
3521 -Wno-implicit-function-declaration from `compile_args'.
3522 * compile/gcc-cp-plugin.h: New file.
3523 * NEWS: Mention C++ compile support and new debug options.
3525 2018-08-29 Keith Seitz <keiths@redhat.com>
3527 * linespec.c (collect_info::add_symbol): Make virtual.
3528 (struct symbol_searcher_collect_info): New struct.
3529 (symbol_searcher::find_all_symbols): New method.
3530 * symtab.h (class symbol_searcher): New class.
3532 2018-08-29 Keith Seitz <keiths@redhat.com>
3534 * linespec.c (struct linespec) <function_symbols, label_symbols>:
3535 Change to vector of block_symbol. Update all users.
3536 (struct collect_info) <symbols>: Likewise.
3537 (collect_info::add_symbol): Take block_symbol as argument.
3539 (decode_compound_collector) <m_symbols>: Change type to vector
3540 of block_symbol. Update all users.
3541 (decode_compound_collector::operator ()): Change parameter type
3543 (find_method, find_function_symbols, find_linespec_symbols)
3544 (find_label_symbols_in_block, find_label_symbols): Change symbol
3545 vectors to block_symbol vectors.
3546 * symtab.h (symbol_found_callback_ftype): Change parameter type to
3549 2018-08-29 Keith Seitz <keiths@redhat.com>
3551 * linespec.c (symbolp): Remove typedef and VEC definitions.
3552 (bound_minimal_symbol_d): Likewise.
3554 2018-08-29 Keith Seitz <keiths@redhat.com>
3556 * linespec.c (decode_compound_collector::decode_compound_collector):
3557 Remove initialization for `m_symtabs'.
3558 (decode_compound_collector::release_symbols): Change return type
3559 to std::vector. Update all callers.
3560 (class decode_compound_collector) <m_symbols>: Change type to
3562 (lookup_prefix_sym): Change return type to std::vector. Update all
3564 (compare_symbols): Remove.
3565 (std_compare_symbols): Rename to `compare_symbols'.
3566 (find_method): Change `sym_classes' parameter to std::vector.
3567 Update all callers. Use std::sort to sort sym_classes.
3568 (find_linespec_symbols): Remove cleanup.
3570 2018-08-29 Keith Seitz <keiths@redhat.com>
3572 * linespec.c (struct linespec) <minimal_symbols>: Change type to
3573 std::vector. Update all users.
3574 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
3575 (struct collect_info) <minimal_symbols>: Likewise.
3576 (compare_msymbols): Return bool. Change parameters to const
3577 bound_minimal_symbol references.
3578 (find_method, find_function_symbols, find_linespec_symbols): Change
3579 `minsyms' parameter to std::vector. Update all callers.
3581 2018-08-29 Keith Seitz <keiths@redhat.com>
3583 * linespec.c (struct linespec) <label_symbols>: Change type to
3584 std::vector. Update all users.
3585 (find_label_symbols_in_block): Change `result' parameter to
3586 std::vector. Update all callers.
3587 (find_label_symbols): Return std::vector. Update all callers.
3589 2018-08-29 Keith Seitz <keiths@redhat.com>
3591 * linespec.c (struct linespec) <function_symbols>: Change type to
3592 std::vector. Update all users.
3593 (struct collect_info) <function_symbols>: Likewise.
3594 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
3595 (std_compare_symbols): New function.
3596 (find_method, find_function_symbols, find_linespec_symbols)
3597 (find_label_symbols_in_block): Change `symbols' parameter to
3598 std::vector. Update all callers.
3599 (find_label_symbols): Likewise for `function_symbols' and
3602 2018-08-29 Keith Seitz <keiths@redhat.com>
3604 * linespec.c (symtab_vector_up): Define.
3605 (struct linespec) <file_symtabs>: Change type to std::vector *.
3607 (struct collect_info) <file_symtabs>: Likewise.
3608 (collect_symtabs_from_filename): Return symtab_vector_up.
3610 (decode_objc): Remove cleanup.
3611 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
3612 (symtab_collector::release_symtabs): Return symtab_vector_up.
3614 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
3616 (collect_symtabs_from_filename, symtabs_from_filename): Return
3617 symtab_vector_up. Update all callers.
3619 2018-08-29 Tom Tromey <tom@tromey.com>
3621 * csky-tdep.c (csky_analyze_prologue): Use
3622 core_addr_to_string_nz.
3624 2018-08-29 Tom Tromey <tom@tromey.com>
3626 * windows-nat.c (struct xlate_exception) <them>: Change type to
3628 (xlate): Fix formatting. Remove last entry.
3629 (struct xlate_exception, xlate): Comment out.
3630 (windows_nat_target::resume): Use ranged for.
3632 2018-08-29 Jim Wilson <jimw@sifive.com>
3634 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
3635 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
3637 (riscv_linux_nat_target::store_registers): Likewise.
3639 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3643 * gnulib/aclocal.m4: Regenerate.
3644 * gnulib/config.in: Regenerate.
3645 * gnulib/configure: Regenerate.
3646 * gnulib/import/Makefile.am: Update.
3647 * gnulib/import/Makefile.in: Update.
3648 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3649 * gnulib/import/_Noreturn.h: ... this.
3650 * gnulib/import/alloca.in.h: Update.
3651 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3652 * gnulib/import/arg-nonnull.h: ... this.
3653 * gnulib/import/assure.h: Update.
3654 * gnulib/import/at-func.c: Update.
3655 * gnulib/import/basename-lgpl.c: Update.
3656 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3657 * gnulib/import/c++defs.h: ... this.
3658 * gnulib/import/canonicalize-lgpl.c: Update.
3659 * gnulib/import/cdefs.h: Update.
3660 * gnulib/import/chdir-long.c: Update.
3661 * gnulib/import/chdir-long.h: Update.
3662 * gnulib/import/cloexec.c: Update.
3663 * gnulib/import/cloexec.h: Update.
3664 * gnulib/import/close.c: Update.
3665 * gnulib/import/closedir.c: Update.
3666 * gnulib/import/config.charset: Update.
3667 * gnulib/import/dirent-private.h: Update.
3668 * gnulib/import/dirent.in.h: Update.
3669 * gnulib/import/dirfd.c: Update.
3670 * gnulib/import/dirname-lgpl.c: Update.
3671 * gnulib/import/dirname.h: Update.
3672 * gnulib/import/dosname.h: Update.
3673 * gnulib/import/dup-safer-flag.c: Update.
3674 * gnulib/import/dup-safer.c: Update.
3675 * gnulib/import/dup.c: Update.
3676 * gnulib/import/dup2.c: Update.
3677 * gnulib/import/errno.in.h: Update.
3678 * gnulib/import/error.c: Update.
3679 * gnulib/import/error.h: Update.
3680 * gnulib/import/exitfail.c: Update.
3681 * gnulib/import/exitfail.h: Update.
3682 * gnulib/import/extra/update-copyright: Update.
3683 * gnulib/import/fchdir.c: Update.
3684 * gnulib/import/fcntl.c: Update.
3685 * gnulib/import/fcntl.in.h: Update.
3686 * gnulib/import/fd-hook.c: Update.
3687 * gnulib/import/fd-hook.h: Update.
3688 * gnulib/import/fd-safer-flag.c: Update.
3689 * gnulib/import/fd-safer.c: Update.
3690 * gnulib/import/fdopendir.c: Update.
3691 * gnulib/import/filename.h: Update.
3692 * gnulib/import/filenamecat-lgpl.c: Update.
3693 * gnulib/import/filenamecat.h: Update.
3694 * gnulib/import/flexmember.h: Update.
3695 * gnulib/import/float+.h: Update.
3696 * gnulib/import/float.c: Update.
3697 * gnulib/import/float.in.h: Update.
3698 * gnulib/import/fnmatch.c: Update.
3699 * gnulib/import/fnmatch.in.h: Update.
3700 * gnulib/import/fnmatch_loop.c: Update.
3701 * gnulib/import/fpucw.h: Update.
3702 * gnulib/import/frexp.c: Update.
3703 * gnulib/import/frexpl.c: Update.
3704 * gnulib/import/fstat.c: Update.
3705 * gnulib/import/fstatat.c: Update.
3706 * gnulib/import/getcwd-lgpl.c: Update.
3707 * gnulib/import/getcwd.c: Update.
3708 * gnulib/import/getdtablesize.c: Update.
3709 * gnulib/import/getlogin_r.c: Update.
3710 * gnulib/import/getprogname.c: Update.
3711 * gnulib/import/getprogname.h: Update.
3712 * gnulib/import/gettext.h: Update.
3713 * gnulib/import/gettimeofday.c: Update.
3714 * gnulib/import/glob-libc.h: Update.
3715 * gnulib/import/glob.c: Update.
3716 * gnulib/import/glob.in.h: Update.
3717 * gnulib/import/glob_internal.h: Update.
3718 * gnulib/import/glob_pattern_p.c: Update.
3719 * gnulib/import/globfree.c: Update.
3720 * gnulib/import/hard-locale.c: Update.
3721 * gnulib/import/hard-locale.h: Update.
3722 * gnulib/import/intprops.h: Update.
3723 * gnulib/import/inttypes.in.h: Update.
3724 * gnulib/import/isnan.c: Update.
3725 * gnulib/import/isnand-nolibm.h: Update.
3726 * gnulib/import/isnand.c: Update.
3727 * gnulib/import/isnanl-nolibm.h: Update.
3728 * gnulib/import/isnanl.c: Update.
3729 * gnulib/import/itold.c: Update.
3730 * gnulib/import/libc-config.h: Update.
3731 * gnulib/import/limits.in.h: Update.
3732 * gnulib/import/localcharset.c: Update.
3733 * gnulib/import/localcharset.h: Update.
3734 * gnulib/import/localtime-buffer.c: Update.
3735 * gnulib/import/localtime-buffer.h: Update.
3736 * gnulib/import/lstat.c: Update.
3737 * gnulib/import/m4/00gnulib.m4: Update.
3738 * gnulib/import/m4/__inline.m4: Update.
3739 * gnulib/import/m4/absolute-header.m4: Update.
3740 * gnulib/import/m4/alloca.m4: Update.
3741 * gnulib/import/m4/builtin-expect.m4: Update.
3742 * gnulib/import/m4/canonicalize.m4: Update.
3743 * gnulib/import/m4/chdir-long.m4: Update.
3744 * gnulib/import/m4/close.m4: Update.
3745 * gnulib/import/m4/closedir.m4: Update.
3746 * gnulib/import/m4/configmake.m4: Update.
3747 * gnulib/import/m4/d-ino.m4: Update.
3748 * gnulib/import/m4/d-type.m4: Update.
3749 * gnulib/import/m4/dirent_h.m4: Update.
3750 * gnulib/import/m4/dirfd.m4: Update.
3751 * gnulib/import/m4/dirname.m4: Update.
3752 * gnulib/import/m4/double-slash-root.m4: Update.
3753 * gnulib/import/m4/dup.m4: Update.
3754 * gnulib/import/m4/dup2.m4: Update.
3755 * gnulib/import/m4/eealloc.m4: Update.
3756 * gnulib/import/m4/environ.m4: Update.
3757 * gnulib/import/m4/errno_h.m4: Update.
3758 * gnulib/import/m4/error.m4: Update.
3759 * gnulib/import/m4/exponentd.m4: Update.
3760 * gnulib/import/m4/exponentl.m4: Update.
3761 * gnulib/import/m4/extensions.m4: Update.
3762 * gnulib/import/m4/extern-inline.m4: Update.
3763 * gnulib/import/m4/fchdir.m4: Update.
3764 * gnulib/import/m4/fcntl-o.m4: Update.
3765 * gnulib/import/m4/fcntl.m4: Update.
3766 * gnulib/import/m4/fcntl_h.m4: Update.
3767 * gnulib/import/m4/fdopendir.m4: Update.
3768 * gnulib/import/m4/filenamecat.m4: Update.
3769 * gnulib/import/m4/flexmember.m4: Update.
3770 * gnulib/import/m4/float_h.m4: Update.
3771 * gnulib/import/m4/fnmatch.m4: Update.
3772 * gnulib/import/m4/fnmatch_h.m4: Update.
3773 * gnulib/import/m4/fpieee.m4: Update.
3774 * gnulib/import/m4/frexp.m4: Update.
3775 * gnulib/import/m4/frexpl.m4: Update.
3776 * gnulib/import/m4/fstat.m4: Update.
3777 * gnulib/import/m4/fstatat.m4: Update.
3778 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3779 * gnulib/import/m4/getcwd-path-max.m4: Update.
3780 * gnulib/import/m4/getcwd.m4: Update.
3781 * gnulib/import/m4/getdtablesize.m4: Update.
3782 * gnulib/import/m4/getlogin.m4: Update.
3783 * gnulib/import/m4/getlogin_r.m4: Update.
3784 * gnulib/import/m4/getpagesize.m4: Update.
3785 * gnulib/import/m4/getprogname.m4: Update.
3786 * gnulib/import/m4/gettimeofday.m4: Update.
3787 * gnulib/import/m4/glibc21.m4: Update.
3788 * gnulib/import/m4/glob.m4: Update.
3789 * gnulib/import/m4/glob_h.m4: Update.
3790 * gnulib/import/m4/gnulib-cache.m4: Update.
3791 * gnulib/import/m4/gnulib-common.m4: Update.
3792 * gnulib/import/m4/gnulib-comp.m4: Update.
3793 * gnulib/import/m4/gnulib-tool.m4: Update.
3794 * gnulib/import/m4/hard-locale.m4: Update.
3795 * gnulib/import/m4/include_next.m4: Update.
3796 * gnulib/import/m4/inttypes-pri.m4: Update.
3797 * gnulib/import/m4/inttypes.m4: Update.
3798 * gnulib/import/m4/isnand.m4: Update.
3799 * gnulib/import/m4/isnanl.m4: Update.
3800 * gnulib/import/m4/largefile.m4: Update.
3801 * gnulib/import/m4/limits-h.m4: Update.
3802 * gnulib/import/m4/localcharset.m4: Update.
3803 * gnulib/import/m4/locale-fr.m4: Update.
3804 * gnulib/import/m4/locale-ja.m4: Update.
3805 * gnulib/import/m4/locale-zh.m4: Update.
3806 * gnulib/import/m4/localtime-buffer.m4: Update.
3807 * gnulib/import/m4/longlong.m4: Update.
3808 * gnulib/import/m4/lstat.m4: Update.
3809 * gnulib/import/m4/malloc.m4: Update.
3810 * gnulib/import/m4/malloca.m4: Update.
3811 * gnulib/import/m4/math_h.m4: Update.
3812 * gnulib/import/m4/mbrtowc.m4: Update.
3813 * gnulib/import/m4/mbsinit.m4: Update.
3814 * gnulib/import/m4/mbsrtowcs.m4: Update.
3815 * gnulib/import/m4/mbstate_t.m4: Update.
3816 * gnulib/import/m4/memchr.m4: Update.
3817 * gnulib/import/m4/memmem.m4: Update.
3818 * gnulib/import/m4/mempcpy.m4: Update.
3819 * gnulib/import/m4/memrchr.m4: Update.
3820 * gnulib/import/m4/mkdir.m4: Update.
3821 * gnulib/import/m4/mkstemp.m4: Update.
3822 * gnulib/import/m4/mmap-anon.m4: Update.
3823 * gnulib/import/m4/mode_t.m4: Update.
3824 * gnulib/import/m4/msvc-inval.m4: Update.
3825 * gnulib/import/m4/msvc-nothrow.m4: Update.
3826 * gnulib/import/m4/multiarch.m4: Update.
3827 * gnulib/import/m4/nocrash.m4: Update.
3828 * gnulib/import/m4/off_t.m4: Update.
3829 * gnulib/import/m4/onceonly.m4: Update.
3830 * gnulib/import/m4/open-cloexec.m4: Update.
3831 * gnulib/import/m4/open.m4: Update.
3832 * gnulib/import/m4/openat.m4: Update.
3833 * gnulib/import/m4/opendir.m4: Update.
3834 * gnulib/import/m4/pathmax.m4: Update.
3835 * gnulib/import/m4/rawmemchr.m4: Update.
3836 * gnulib/import/m4/readdir.m4: Update.
3837 * gnulib/import/m4/readlink.m4: Update.
3838 * gnulib/import/m4/realloc.m4: Update.
3839 * gnulib/import/m4/rename.m4: Update.
3840 * gnulib/import/m4/rewinddir.m4: Update.
3841 * gnulib/import/m4/rmdir.m4: Update.
3842 * gnulib/import/m4/save-cwd.m4: Update.
3843 * gnulib/import/m4/secure_getenv.m4: Update.
3844 * gnulib/import/m4/setenv.m4: Update.
3845 * gnulib/import/m4/signal_h.m4: Update.
3846 * gnulib/import/m4/ssize_t.m4: Update.
3847 * gnulib/import/m4/stat-time.m4: Update.
3848 * gnulib/import/m4/stat.m4: Update.
3849 * gnulib/import/m4/std-gnu11.m4: Update.
3850 * gnulib/import/m4/stdbool.m4: Update.
3851 * gnulib/import/m4/stddef_h.m4: Update.
3852 * gnulib/import/m4/stdint.m4: Update.
3853 * gnulib/import/m4/stdio_h.m4: Update.
3854 * gnulib/import/m4/stdlib_h.m4: Update.
3855 * gnulib/import/m4/strchrnul.m4: Update.
3856 * gnulib/import/m4/strdup.m4: Update.
3857 * gnulib/import/m4/strerror.m4: Update.
3858 * gnulib/import/m4/string_h.m4: Update.
3859 * gnulib/import/m4/strstr.m4: Update.
3860 * gnulib/import/m4/strtok_r.m4: Update.
3861 * gnulib/import/m4/sys_socket_h.m4: Update.
3862 * gnulib/import/m4/sys_stat_h.m4: Update.
3863 * gnulib/import/m4/sys_time_h.m4: Update.
3864 * gnulib/import/m4/sys_types_h.m4: Update.
3865 * gnulib/import/m4/tempname.m4: Update.
3866 * gnulib/import/m4/time_h.m4: Update.
3867 * gnulib/import/m4/unistd-safer.m4: Update.
3868 * gnulib/import/m4/unistd_h.m4: Update.
3869 * gnulib/import/m4/warn-on-use.m4: Update.
3870 * gnulib/import/m4/wchar_h.m4: Update.
3871 * gnulib/import/m4/wchar_t.m4: Update.
3872 * gnulib/import/m4/wctype_h.m4: Update.
3873 * gnulib/import/m4/wint_t.m4: Update.
3874 * gnulib/import/malloc.c: Update.
3875 * gnulib/import/malloc/scratch_buffer.h: Update.
3876 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3877 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3878 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3879 * gnulib/import/malloca.c: Update.
3880 * gnulib/import/malloca.h: Update.
3881 * gnulib/import/malloca.valgrind: Update.
3882 * gnulib/import/math.in.h: Update.
3883 * gnulib/import/mbrtowc.c: Update.
3884 * gnulib/import/mbsinit.c: Update.
3885 * gnulib/import/mbsrtowcs-impl.h: Update.
3886 * gnulib/import/mbsrtowcs-state.c: Update.
3887 * gnulib/import/mbsrtowcs.c: Update.
3888 * gnulib/import/memchr.c: Update.
3889 * gnulib/import/memmem.c: Update.
3890 * gnulib/import/mempcpy.c: Update.
3891 * gnulib/import/memrchr.c: Update.
3892 * gnulib/import/mkdir.c: Update.
3893 * gnulib/import/mkstemp.c: Update.
3894 * gnulib/import/msvc-inval.c: Update.
3895 * gnulib/import/msvc-inval.h: Update.
3896 * gnulib/import/msvc-nothrow.c: Update.
3897 * gnulib/import/msvc-nothrow.h: Update.
3898 * gnulib/import/open.c: Update.
3899 * gnulib/import/openat-die.c: Update.
3900 * gnulib/import/openat-priv.h: Update.
3901 * gnulib/import/openat-proc.c: Update.
3902 * gnulib/import/openat.c: Update.
3903 * gnulib/import/openat.h: Update.
3904 * gnulib/import/opendir.c: Update.
3905 * gnulib/import/pathmax.h: Update.
3906 * gnulib/import/pipe-safer.c: Update.
3907 * gnulib/import/rawmemchr.c: Update.
3908 * gnulib/import/readdir.c: Update.
3909 * gnulib/import/readlink.c: Update.
3910 * gnulib/import/realloc.c: Update.
3911 * gnulib/import/ref-add.sin: Update.
3912 * gnulib/import/ref-del.sin: Update.
3913 * gnulib/import/rename.c: Update.
3914 * gnulib/import/rewinddir.c: Update.
3915 * gnulib/import/rmdir.c: Update.
3916 * gnulib/import/same-inode.h: Update.
3917 * gnulib/import/save-cwd.c: Update.
3918 * gnulib/import/save-cwd.h: Update.
3919 * gnulib/import/scratch_buffer.h: Update.
3920 * gnulib/import/secure_getenv.c: Update.
3921 * gnulib/import/setenv.c: Update.
3922 * gnulib/import/signal.in.h: Update.
3923 * gnulib/import/stat-time.c: Update.
3924 * gnulib/import/stat-time.h: Update.
3925 * gnulib/import/stat-w32.c: Update.
3926 * gnulib/import/stat-w32.h: Update.
3927 * gnulib/import/stat.c: Update.
3928 * gnulib/import/stdbool.in.h: Update.
3929 * gnulib/import/stddef.in.h: Update.
3930 * gnulib/import/stdint.in.h: Update.
3931 * gnulib/import/stdio.in.h: Update.
3932 * gnulib/import/stdlib.in.h: Update.
3933 * gnulib/import/str-two-way.h: Update.
3934 * gnulib/import/strchrnul.c: Update.
3935 * gnulib/import/strdup.c: Update.
3936 * gnulib/import/streq.h: Update.
3937 * gnulib/import/strerror-override.c: Update.
3938 * gnulib/import/strerror-override.h: Update.
3939 * gnulib/import/strerror.c: Update.
3940 * gnulib/import/string.in.h: Update.
3941 * gnulib/import/stripslash.c: Update.
3942 * gnulib/import/strnlen1.c: Update.
3943 * gnulib/import/strnlen1.h: Update.
3944 * gnulib/import/strstr.c: Update.
3945 * gnulib/import/strtok_r.c: Update.
3946 * gnulib/import/sys_stat.in.h: Update.
3947 * gnulib/import/sys_time.in.h: Update.
3948 * gnulib/import/sys_types.in.h: Update.
3949 * gnulib/import/tempname.c: Update.
3950 * gnulib/import/tempname.h: Update.
3951 * gnulib/import/time.in.h: Update.
3952 * gnulib/import/unistd--.h: Update.
3953 * gnulib/import/unistd-safer.h: Update.
3954 * gnulib/import/unistd.in.h: Update.
3955 * gnulib/import/unsetenv.c: Update.
3956 * gnulib/import/verify.h: Update.
3957 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3958 * gnulib/import/wchar.in.h: Update.
3959 * gnulib/import/wctype.in.h: Update.
3960 * gnulib/import/xalloc-oversized.h: Update.
3961 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3962 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3964 2018-08-16 Gary Benson <gbenson@redhat.com>
3967 * gdb/main.c (captured_main_1): Exit with nonzero status
3968 in batch mode if the last command to be executed failed.
3969 * NEWS: Mention the above.
3971 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
3973 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
3974 end of warning message.
3976 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3979 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
3980 (aarch64_extract_return_value): Use
3981 aapcs_is_vfp_call_or_return_candidate.
3982 (aarch64_return_in_memory): Likewise.
3983 (aarch64_store_return_value): Likewise.
3985 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3988 (aapcs_is_vfp_call_or_return_candidate): Make static
3989 (pass_in_v_or_stack): Remove function.
3990 (pass_in_v_vfp_candidate): New function.
3991 (aarch64_push_dummy_call): Check for float register candidates.
3993 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3995 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
3996 (aapcs_is_vfp_call_or_return_candidate_1): New function.
3997 (aapcs_is_vfp_call_or_return_candidate): Likewise.
3999 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4002 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
4003 (struct ipa_sym_addresses): Rename to...
4004 (struct ipa_sym_addresses_common): ... this.
4005 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
4007 2018-08-28 Tom Tromey <tom@tromey.com>
4009 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4010 (token_fifo): Now a std::vector.
4011 (yylex, c_parse): Update.
4012 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4013 (token_fifo): Now a std::vector.
4014 (yylex, d_parse): Update.
4015 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4016 (token_fifo): Now a std::vector.
4017 (yylex, go_parse): Update.
4019 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
4021 * parser-defs.h (struct type_stack) <elements>: Change type to
4022 std::vector<union type_stack_elt>.
4023 <depth, size>: Remove.
4024 * parse.c (parse_exp_in_context_1): Adjust.
4025 (type_stack_reserve): Remove.
4026 (check_type_stack_depth): Remove.
4027 (insert_into_type_stack): Adjust to std::vector.
4028 (insert_type): Likewise.
4029 (push_type): Likewise.
4030 (push_type_int): Likewise.
4031 (insert_type_address_space): Likewise.
4032 (pop_type): Likewise.
4033 (pop_type_int): Likewise.
4034 (pop_typelist): Likewise.
4035 (pop_type_stack): Likewise.
4036 (append_type_stack): Likewise.
4037 (push_type_stack): Likewise.
4038 (get_type_stack): Likewise.
4039 (type_stack_cleanup): Likewise.
4040 (push_typelist): Likewise.
4041 (follow_types): Likewise.
4042 (_initialize_parse): Likewise.
4044 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
4046 * NEWS: Mention csky target.
4048 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
4049 Hafiz Abid Qadeer <abidh@codesourcery.com>
4050 Don Breazeal <donb@codesourcery.com>
4052 * csky-linux-tdep.c: New file.
4053 * csky-tdep.c: Likewise.
4054 * csky-tdep.h: Likewise.
4055 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
4057 (HFILES_NO_SRCDIR): Add csky-tdep.h.
4058 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
4059 * configure.tgt: Add csky support.
4061 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
4063 * python/py-framefilter.c (py_print_frame): Print frame architecture
4064 when printing on an MI output.
4066 2018-08-27 Tom Tromey <tom@tromey.com>
4069 * configure: Rebuild.
4070 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
4072 2018-08-27 Tom Tromey <tom@tromey.com>
4074 * aarch64-linux-tdep.c
4075 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
4078 2018-08-27 Tom Tromey <tom@tromey.com>
4080 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
4082 (ppc64_standard_linkage1, ppc64_standard_linkage2)
4083 (ppc64_standard_linkage3, ppc64_standard_linkage4)
4084 (ppc64_standard_linkage5, ppc64_standard_linkage6)
4085 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
4088 2018-08-27 Tom Tromey <tom@tromey.com>
4090 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
4091 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
4093 2018-08-27 Tom Tromey <tom@tromey.com>
4095 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
4096 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
4098 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
4100 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
4102 * sparc-linux-tdep.c (sparc32_linux_sigframe)
4103 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
4104 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
4106 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
4107 (ppc64_linux_sigaction_tramp_frame)
4108 (ppc32_linux_sighandler_tramp_frame)
4109 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4110 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
4111 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
4112 * mn10300-linux-tdep.c (am33_linux_sigframe)
4113 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
4114 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
4115 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4116 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4117 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
4118 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
4119 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
4120 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
4121 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
4122 * microblaze-linux-tdep.c
4123 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4124 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
4125 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
4126 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
4127 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
4128 * common/common-types.h (ULONGEST_MAX): New define.
4129 (CORE_ADDR_MAX): Fix formatting.
4130 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
4131 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
4132 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
4133 (arm_linux_rt_sigreturn_tramp_frame)
4134 (arm_eabi_linux_sigreturn_tramp_frame)
4135 (arm_eabi_linux_rt_sigreturn_tramp_frame)
4136 (thumb2_eabi_linux_sigreturn_tramp_frame)
4137 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
4138 (arm_linux_restart_syscall_tramp_frame)
4139 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
4140 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
4141 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
4143 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
4145 2018-08-27 Tom Tromey <tom@tromey.com>
4147 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
4149 * mips-tdep.c (mips_deal_with_atomic_sequence)
4150 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
4151 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
4152 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
4153 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
4155 * aarch64-tdep.c (aarch64_software_single_step): Use
4158 2018-08-27 Tom Tromey <tom@tromey.com>
4160 * linespec.c (complete_linespec_component): Add cast to "char".
4161 * completer.c (completion_tracker::build_completion_result): Add
4164 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4166 * solist.h (struct solist, struct target_so_ops): Fix
4169 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4171 * ada-tasks.c (ada_task_info_s): Remove typedef.
4172 (DEF_VEC_O(ada_task_info_s)): Remove.
4173 (struct ada_tasks_inferior_data): Initialize fields.
4174 <task_list>: Make an std::vector.
4175 (get_ada_tasks_inferior_data): Allocate with new.
4176 (ada_get_task_number): Adjust.
4177 (get_task_number_from_id): Likewise.
4178 (valid_task_id): Likewise.
4179 (ada_get_task_info_from_ptid): Likewise.
4180 (iterate_over_live_ada_tasks): Likewise.
4181 (add_ada_task): Likewise.
4182 (read_known_tasks): Likewise.
4183 (ada_build_task_list): Likewise.
4184 (print_ada_task_info): Likewise.
4185 (info_task): Likewise.
4186 (task_command_1): Likewise.
4188 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4190 * ada-lang.c (add_angle_brackets): Return std::string.
4192 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
4194 * python/py-threadevent.c (py_get_event_thread): Initialize
4197 2018-08-24 Pedro Alves <palves@redhat.com>
4199 * python/py-bpevent.c (create_breakpoint_event_object): Use
4200 copy-initialization.
4201 * python/py-continueevent.c (emit_continue_event): Use
4202 copy-initialization.
4203 * python/py-exitedevent.c (create_exited_event_object): Return a
4205 (emit_exited_event): Use copy-initialization.
4206 * python/py-inferior.c (python_new_inferior)
4207 (python_inferior_deleted, add_thread_object): Use
4208 copy-initialization.
4209 * python/py-infevents.c (create_inferior_call_event_object)
4210 (create_register_changed_event_object)
4211 (create_memory_changed_event_object): Return a gdbpy_ref<>.
4212 (emit_inferior_call_event, emit_memory_changed_event)
4213 (emit_register_changed_event): Use copy-initialization.
4214 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4215 Return a gdbpy_ref<>.
4216 (emit_new_objfile_event): Use copy-initialization.
4217 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
4218 (emit_clear_objfiles_event): Use copy-initialization.
4219 * python/py-signalevent.c (create_signal_event_object): Use
4220 copy-initialization.
4221 * python/py-threadevent.c (create_thread_event_object): Use
4222 copy-initialization.
4224 2018-08-24 Pedro Alves <palves@redhat.com>
4225 Simon Marchi <simon.marchi@ericsson.com>
4228 * python/py-continueevent.c: Include "gdbthread.h".
4229 (create_continue_event_object): Add intro comment. Add 'ptid'
4230 parameter. Use it to find thread to pass to
4231 create_thread_event_object.
4232 (emit_continue_event): Pass PTID down to
4233 create_continue_event_object.
4234 * python/py-event.h (py_get_event_thread): Declare.
4235 (create_thread_event_object): Remove default from 'thread'
4237 * python/py-stopevent.c (create_stop_event_object): Use
4238 py_get_event_thread.
4239 * python/py-threadevent.c (get_event_thread): Rename to ...
4240 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
4241 and use it to find the thread.
4242 (create_thread_event_object): Assert that THREAD isn't null.
4243 Don't find the event thread here.
4245 2018-08-23 Kevin Buettner <kevinb@redhat.com>
4247 * block.h (blockrange, blockranges): New struct declarations.
4248 (struct block): Add new field named `ranges'.
4249 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
4250 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
4251 macros for accessing ranges in struct block.
4252 (make_blockranges): New declaration.
4253 block.c (make_blockranges): New function.
4254 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
4256 * symtab.h (find_pc_partial_function): Add new parameter `block'.
4257 * blockframe.c (cache_pc_function_block): New static global.
4258 (clear_pc_function_cache): Clear cache_pc_function_block.
4259 (find_pc_partial_function): Move comment to symtab.h. Add
4260 support for non-contiguous blocks.
4261 * cli/cli-cmds.c (block.h): Include.
4262 (print_disassembly): Handle printing of non-contiguous blocks.
4263 (disassemble_current_function): Likewise.
4264 (disassemble_command): Likewise.
4266 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
4268 * blockframe.c (get_pc_function_start): Likewise.
4269 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
4270 (gcc_symbol_address): Likewise.
4271 * compile/compile-object-run.c (compile_object_run): Likewise.
4272 * compile/compile.c (get_expr_block_and_pc): Likewise.
4273 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
4274 (func_addr_to_tail_call_list): Likewise.
4275 * findvar.c (default_read_var_value): Likewise.
4276 * inline-frame.c (inline_frame_this_id): Likewise.
4277 (skip-inline_frames): Likewise.
4278 * infcmd.c (until_next_command): Likewise.
4279 * linespec.c (convert_linespec_to_sals): Likewise.
4280 * parse.c (parse_exp_in_context_1): Likewise.
4281 * printcmd.c (build_address_symbolic): likewise.
4282 (info_address_command): Likewise.
4283 symtab.c (find_function_start_sal): Likewise.
4284 (skip_prologue_sal): Likewise.
4285 (find_function_alias_target): Likewise.
4286 (find_gnu_ifunc): Likewise.
4287 * stack.c (find_frame_funname): Likewise.
4288 * symtab.c (fixup_symbol_section): Likewise.
4289 (find_function_start_sal): Likewise.
4290 (skip_prologue_sal): Likewsie.
4291 (find_function_alias_target): Likewise.
4292 (find_gnu_ifunc): Likewise.
4293 * tracepoint.c (info_scope_command): Likewise.
4294 * value.c (value_fn_field): Likewise.
4296 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
4297 in place of find_pc_partial_function.
4298 * blockframe.c (find_function_entry_range_from_pc): New function.
4299 * symtab.h (find_function_entry_range_from_pc): Declare and document.
4300 * objfiles.c (objfile_relocate1): Relocate start and end addresses
4301 for each range in a block.
4304 2018-08-23 Xavier Roirand <roirand@adacore.com>
4306 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
4309 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4311 * solib-svr4.c (read_program_headers_from_bfd): Return
4312 gdb::optional<gdb::byte_vector>.
4313 (svr4_exec_displacement): Adjust.
4315 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4317 * solib-svr4.c (read_program_header): Return
4318 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
4319 (find_program_interpreter): Return
4320 gdb::optional<gdb::byte_vector>.
4321 (scan_dyntag_auxv): Adjust.
4322 (enable_break): Adjust.
4323 (svr4_exec_displacement): Adjust.
4325 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4327 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
4328 * inf-child.c (inf_child_target::terminal_save_inferior): New.
4330 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4332 * guile/scm-string.c (gdbscm_scm_from_printf): Use
4334 * guile/scm-utils.c (gdbscm_printf): Likewise.
4335 * serial.c (serial_printf): Likewise.
4336 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
4338 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
4340 * stack.c (print_frame): Print frame architecture when printing on
4342 * NEWS: Mention new "arch" attribute in frame output.
4344 2018-08-21 Alan Hayward <alan.hayward@arm.com>
4346 * arch/aarch64.h (aarch64_regnum): Update comment.
4348 2018-08-21 Alan Hayward <alan.hayward@arm.com>
4350 * NEWS: Add SVE to 8.2 section.
4352 2018-08-21 Pedro Alves <palves@redhat.com>
4354 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
4355 out from gdbscm_parse_function_args.
4356 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
4357 gdbscm_parse_function_args_1.
4359 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
4362 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
4365 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
4367 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
4369 2018-08-19 Michael Spang <spang@google.com>
4372 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
4373 for PT_TLS segments.
4375 2018-08-18 Kevin Buettner <kevinb@redhat.com>
4377 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
4378 dwarf_variable_value.
4379 * dwarf2-frame.c (class dwarf_expr_executor):
4380 Add override for dwarf_variable_value.
4381 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
4382 (class symbol_needs_eval_context): Likewise.
4383 (indirect_synthetic_pointer): Add forward declaration.
4384 (sect_variable_value): New function.
4385 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
4386 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
4387 for DW_OP_GNU_variable_value.
4389 2018-08-16 Tom Tromey <tom@tromey.com>
4391 * top.c (read_command_file): Update.
4392 (command_line_input): Remove "repeat" argument.
4393 * ada-lang.c (get_selections): Update.
4394 * linespec.c (decode_line_2): Update.
4395 * defs.h (command_line_input): Remove argument.
4396 * cli/cli-script.c (read_next_line): Update.
4397 * python/py-gdb-readline.c: Update.
4399 2018-08-17 Tom Tromey <tom@tromey.com>
4401 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
4404 2018-08-15 Tom Tromey <tom@tromey.com>
4406 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
4408 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
4410 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
4411 If used, use find_pc_partial_function to find address range
4413 * mi/mi-main.c (mi_cmd_list_features): Report
4414 "data-disassemble-a-option" feature.
4415 * NEWS: Mention new -data-disassemble option -a.
4417 2018-08-13 Tom Tromey <tom@tromey.com>
4419 * common/common-defs.h (_FORTIFY_SOURCE): Define.
4421 2018-08-13 Alan Hayward <alan.hayward@arm.com>
4423 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
4424 (aarch64_linux_collect_sve_regset): Likewise.
4425 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
4426 * regcache.h (regcache_map_entry_size): New function.
4428 2018-08-13 Alan Hayward <alan.hayward@arm.com>
4430 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
4431 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
4432 (SVE_HEADER_VL_LENGTH): Likewise.
4433 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
4434 (SVE_HEADER_FLAGS_LENGTH): Likewise.
4435 (SVE_HEADER_RESERVED_LENGTH): Likewise.
4436 (SVE_HEADER_SIZE_OFFSET): Likewise.
4437 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
4438 (SVE_HEADER_VL_OFFSET): Likewise.
4439 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
4440 (SVE_HEADER_FLAGS_OFFSET): Likewise.
4441 (SVE_HEADER_RESERVED_OFFSET): Likewise.
4442 (SVE_HEADER_SIZE): Likewise.
4443 (aarch64_linux_core_read_vq): Add function.
4444 (aarch64_linux_core_read_description): Check for SVE section.
4446 2018-08-13 Alan Hayward <alan.hayward@arm.com>
4448 * aarch64-fbsd-tdep.c
4449 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
4451 * aarch64-linux-tdep.c
4452 (aarch64_linux_iterate_over_regset_sections): Likewise.
4453 * alpha-linux-tdep.c
4454 (alpha_linux_iterate_over_regset_sections):
4456 (alphanbsd_iterate_over_regset_sections): Likewise.
4458 (amd64fbsd_iterate_over_regset_sections): Likewise.
4459 * amd64-linux-tdep.c
4460 (amd64_linux_iterate_over_regset_sections): Likewise.
4462 (armbsd_iterate_over_regset_sections): Likewise.
4464 (arm_fbsd_iterate_over_regset_sections): Likewise.
4466 (arm_linux_iterate_over_regset_sections): Likewise.
4467 * corelow.c (get_core_registers_cb): Likewise.
4468 (core_target::fetch_registers): Likewise.
4469 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
4470 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
4471 * gdbarch.h (void): Regenerate.
4472 * gdbarch.sh: Add supply_size and collect_size.
4473 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
4474 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
4475 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
4476 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
4477 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
4478 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
4479 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
4480 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
4481 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
4482 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
4483 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
4484 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
4485 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
4486 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
4487 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
4489 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
4490 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
4491 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
4492 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
4493 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
4494 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
4495 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
4497 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
4498 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
4499 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
4500 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
4501 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
4502 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
4503 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
4504 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
4506 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
4508 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
4511 2018-08-10 Keith Seitz <keiths@redhat.com>
4513 * compile/compile-c-support.c (add_code_header, add_code_footer):
4514 Move into policy class.
4515 (c_push_user_expression, pop_user_expression_nop)
4516 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
4517 (compile_program): New host class.
4518 (c_compile_program): New typedef.
4519 (c_compute_porgram): Use c_compile_program.
4521 2018-08-10 Keith Seitz <keiths@redhat.com>
4523 * compile/compile-internal.h (compile_instance::~compile_instance):
4524 Remove calls to htab_delete.
4525 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
4526 * compile.c (compile_instance::compile_instance): Initialize
4527 htab unique pointers.
4528 (compile_instance::get_cached_type, compile_instance::insert_type)
4529 (compile_instance::error_symbol_once): Update for unique_ptr.
4531 2018-08-10 Keith Seitz <keiths@redhat.com>
4533 * compile/compile-c-symbols.c (struct symbol_error)
4534 (hash_symbol_error, eq_symbol_error, del_symbol_error)
4535 (compile_instance::insert_symbol_error)
4536 (compile_instance::error_symbol_once): Move to ...
4537 * compile/compile.c: ... here.
4539 2018-08-10 Keith Seitz <keiths@redhat.com>
4541 * compile/compile-c-support.c (c_get_compile_context): Use `new'
4542 instead of `new_compile_instance'.
4543 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
4545 If the symbol error map is not initialized, create it.
4546 (generate_c_for_for_one_symbol): Do not check/initialize
4547 the symbol error map.
4548 * compile/compile-c-types.c (compile_c_instance): Make a class.
4550 (compile_instance::compile_instance): Initialize the type cache.
4551 (get_cached_type): New function.
4552 (insert_type): Update description.
4553 (compile_c_instance::m_default_cflags): Define.
4554 (convert_type): Update description. Use get_cached_type.
4555 (delete_instance): Moved to destructor.
4556 (new_compile_instance): Moved to constructor.
4557 * compile/compile-c.h (compile_c_instance): Make class inheriting
4558 from compile_instance.
4559 <base>: Remove field.
4560 <type_map, symbol_err_map>: Move to base class.
4561 <c_plugin>: Rename to `m_plugin' and remove pointer type.
4562 * compile/compile-internal.h (compile_instance): Make class.
4563 <type_map_t, symbol_err_map_t>: Define.
4564 <fe>: Rename to `m_gcc_fe'.
4565 <scope, block, gcc_target_options>: Add `m_' prefix.
4566 <m_type_map, m_symbol_err_map>: New fields, moved from
4569 (convert_type, new_compile_instance): Remove.
4570 * compile/compile.c (cleanup_compile_instance): Remove.
4571 (compile_to_object): Use unique_ptr to eliminate cleanups.
4572 (compile_instance::set_print_callback, compile_instance::version)
4573 (compile_instance::set_verbose)
4574 (compile_instance::set_driver_filename)
4575 (compile_instance::set_triplet_regexp)
4576 (compile_instance::set_arguments)
4577 (compile_instance::set_source_file)
4578 (compile_instance::compile): Define.
4580 2018-08-10 Keith Seitz <keiths@redhat.com>
4582 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
4583 * compile/compile-c-types.c: Define GCC_METHODN macros and include
4584 gcc-c-fe.def to define C plugin.
4585 (delete_instance): Delete `c_plugin'.
4586 (new_compile_instance): Initialize `c_plugin'.
4587 * compile/compile-c.h: Include gcc_c_plugin.h.
4588 (struct compile_c_instance) <c_plugin>: New member.
4589 * gcc-c-plugin.h: New file.
4590 Update all callers with API change.
4592 2018-08-10 Keith Seitz <keiths@redhat.com>
4594 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
4595 (HFILES_NO_SRCDIR): ... to here.
4596 Add compile-internal.h and compile-c.h.
4597 * compile/compile-c-support.c: Include compile-c.h.
4598 * compile/compile-c-symbols.c: Include compile-c.h.
4599 (generate_c_for_variable_locations): Update comment.
4600 * compile/compile-c-types.c: Include compile-c.h.
4601 * compile/compile-c.h: New file -- moved C language declarations
4602 from other files here.
4603 * compile/compile-internal.h: Do not include hashtab.h or
4604 common/enum-flags.h.
4605 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
4606 (gcc_convert_symbol, gcc_symbol_address)
4607 (generate_c_for_variable_locations, c_get_mode_for_size)
4608 (c_get_range_decl_name): Definitions moved to compile-c.h.
4609 * compile/compile-loc2c.c: Include compile-c.h.
4611 2018-08-10 Keith Seitz <keiths@redhat.com>
4613 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
4614 (c_symbol_substitution_name): ... this.
4617 2018-08-10 Keith Seitz <keiths@redhat.com>
4619 * compile/compile-c-support.c (c_compute_program): Use
4620 unique_xmalloc_ptr to eliminate cleanup.
4621 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
4622 Return a unique_xmalloc_ptr and eliminate cleanup.
4623 * compile/compile-internal.h (generate_c_for_variable_locations):
4624 Return unique_xmalloc_ptr and update description.
4626 2018-08-10 Alan Hayward <alan.hayward@arm.com>
4628 * corelow.c (core_target::get_core_register_section): Rename
4629 min_size to section_min_size.
4631 2018-08-09 Jim Wilson <jimw@sifive.com>
4633 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
4634 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
4635 * NEWS: Mention new GNU/Linux RISC-V target.
4636 * configure.host: Add riscv*-*-linux*.
4637 * configure.nat: Add riscv*.
4638 * configure.tgt: Add riscv*-*-linux*.
4639 * riscv-linux-nat.c: New file.
4640 * riscv-linux-tdep.c: New file.
4642 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4644 * infrun.c (resume): Make static, add forward declaration.
4645 (proceed): Update header comment.
4646 * infrun.h (resume): Delete declaration.
4648 2018-08-09 Tom Tromey <tom@tromey.com>
4650 * riscv-tdep.h: Minor formatting fixes.
4652 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
4654 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
4655 * dwarf-index-cache.c (create_dir_and_check): Likewise.
4656 (test_mkdir_recursive): Likewise.
4657 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
4659 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4661 * valarith.c (value_subscripted_rvalue): If an array is not in
4662 memory, and we don't know the upper bound, then we can't know that
4663 the requested element exists or not.
4665 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
4667 * target.c (str_comma_list_concat_elem): Fix typo in comment.
4668 (target_options_to_string): Add comment.
4670 2018-08-08 Tom Tromey <tom@tromey.com>
4672 * unittests/scoped_mmap-selftests.c: Check result of "write".
4674 2018-08-08 Jim Wilson <jimw@sifive.com>
4676 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
4677 (decode_register_index_short): New.
4678 (decode_j_type_insn, decode_cj_type_insn): New.
4679 (decode_b_type_insn, decode_cb_type_insn): New.
4680 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
4681 local xlen. Check xlen when decoding ambiguous compressed insns. In
4682 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
4683 is_c_sw_insn instead of is_sw_insn.
4684 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
4685 (riscv_software_single_step): New.
4686 * riscv-tdep.h (riscv_software_single_step): Declare.
4688 * riscv-tdep.c (riscv_isa_xlen): Drop static.
4689 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
4691 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
4694 * target.c (dispose_inferior): Don't dispose of inferiors that are
4697 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
4699 * remote.c (remote_target::download_tracepoint): Change char* to
4702 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4704 * target.h (target_options_to_string): Return an std::string.
4705 * target.c (str_comma_list_concat_elem): Return void, use
4707 (do_option): Likewise.
4708 (target_options_to_string): Return an std::string.
4709 * linux-nat.c (linux_nat_target::wait): Adjust.
4710 * target-debug.h (target_debug_print_options): Adjust.
4712 2018-08-07 Tom Tromey <tom@tromey.com>
4714 * Makefile.in (CPPFLAGS): New variable.
4715 (INTERNAL_CPPFLAGS): Use it.
4717 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4719 * NEWS: Mention the index cache.
4721 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4723 * common/pathstuff.h (get_standard_cache_dir): New.
4724 * common/pathstuff.c (get_standard_cache_dir): New.
4725 * build-id.h (build_id_to_string): New.
4726 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
4727 DEBUG_STR_SUFFIX): Move to here.
4728 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
4729 DEBUG_STR_SUFFIX): Move from there.
4730 (write_psymtabs_to_index): Make non-static, add basename
4731 parameter. Write to temporary files, rename when done.
4732 (save_gdb_index_command): Adjust call to
4733 write_psymtabs_to_index.
4734 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
4736 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
4737 (get_gdb_index_contents_from_cache): New.
4738 (get_gdb_index_contents_from_cache_dwz): New.
4739 (dwarf2_initialize_objfile): Read index from cache.
4740 (dwarf2_build_psymtabs): Save to index.
4741 * dwarf-index-cache.h: New file.
4742 * dwarf-index-cache.c: New file.
4743 * dwarf-index-write.h: New file.
4745 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4747 * gnulib/aclocal.m4: Re-generate.
4748 * gnulib/config.in: Re-generate.
4749 * gnulib/configure: Re-generate.
4750 * gnulib/import/Makefile.am: Re-generate.
4751 * gnulib/import/Makefile.in: Re-generate.
4752 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
4753 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4754 * gnulib/import/m4/mkdir.m4: New file.
4755 * gnulib/import/mkdir.c: New file.
4756 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
4759 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4761 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
4762 * common/scoped_mmap.c: New file.
4763 * common/scoped_mmap.h (destroy): New method.
4764 (~scoped_mmap, reset): Use destroy.
4765 (scoped_mmap): New move constructor.
4766 (mmap_file): New declaration.
4767 * unittests/scoped_mmap-selftests.c (test_normal,
4768 test_invalid_filename, run_tests): New functions.
4769 (_initialize_scoped_mmap_selftests): Register selftest.
4771 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4773 * dwarf2read.c (read_gdb_index_from_section): Rename to...
4774 (read_gdb_index_from_buffer): ... this. Remove section
4775 parameter, add buffer parameter.
4776 (get_gdb_index_contents_ftype,
4777 get_gdb_index_contents_dwz_ftype): New typedefs.
4778 (dwarf2_read_gdb_index): Add callback parameters to get the
4780 (get_gdb_index_contents_from_section): New.
4781 (dwarf2_initialize_objfile): Update call to
4782 dwarf2_read_gdb_index.
4784 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4786 * common/filestuff.h (gdb_fopen_cloexec): New overload.
4787 (gdb_open_cloexec): Likewise.
4788 * nat/linux-osdata.c (command_from_pid): Use string_printf.
4789 (commandline_from_pid): Likewise.
4790 (linux_xfer_osdata_threads): Likewise.
4791 (linux_xfer_osdata_fds): Likewise.
4792 * ada-lang.c (is_package_name): Likewise.
4793 * auxv.c (procfs_xfer_auxv): Likewise.
4794 * breakpoint.c (print_one_breakpoint_location): Use
4796 (print_one_catch_solib): Use string_printf.
4797 * coff-pe-read.c (add_pe_exported_sym): Likewise.
4798 (add_pe_forwarded_sym): Likewise.
4799 * dwarf2read.c (create_type_unit_group): Likewise.
4800 (build_error_marker_type): Likewise.
4801 * infcall.c (get_function_name): Likewise.
4802 * valprint.c (print_converted_chars_to_obstack): Likewise.
4803 * xtensa-tdep.c (xtensa_register_type): Likewise.
4805 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
4807 * remote.c (remote_target::download_tracepoint): Fix format
4810 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4812 * tracefile.c: Include common/byte-vector.h.
4813 (trace_save): Change type of buf to gdb::byte_vector. Initialize
4814 with trace_regblock_size if needed. Update uses of buf.
4816 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4818 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
4819 std::vector<unsigned char>.
4820 * tracepoint.c (collection_list::collection_list): Remove
4821 m_regs_mask initializer from initializer list. Resize
4822 m_regs_mask using the largest remote register number.
4823 (collection_list::add_remote_register): Remove size check on
4824 m_regs_mask. Use at to access element.
4825 (collection_list::stringify): Change type of temp_buf to
4826 gdb::char_vector. Update uses of temp_buf. Resize if needed to
4827 stringify the register mask. Use pack_hex_byte for the register
4830 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4832 * tracepoint.h (class collection_list) <add_register>: Remove.
4833 <add_remote_register, add_ax_registers, add_local_register>:
4835 <add_memrange>: Add scope parameter.
4836 * tracepoint.c (encode_actions_1): Likewise.
4837 (collection_list::add_register): Rename to ...
4838 (collection_list::add_remote_register): ... this. Update
4840 (collection_list::add_ax_registers, add_local_register): New
4842 (collection_list::add_memrange): Add scope parameter. Call
4843 add_local_register instead of add_register.
4844 (finalize_tracepoint_aexpr): New function.
4845 (collection_list::collect_symbol): Update calls to add_memrange.
4846 Call add_local_register instead of add_register. Call
4847 add_ax_registers. Call finalize_tracepoint_aexpr.
4848 (encode_actions_1): Get remote regnos for $reg action. Call
4849 add_remote_register, add_ax_registers, and add_local_register.
4850 Update call to add_memrange. Call finalize_tracepoint_aexpr.
4851 (validate_actionline): Call finalize_tracepoint_aexpr.
4853 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4855 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
4856 Replace array buf with gdb::char_vector buf, of size
4857 get_remote_packet_size (). Replace references to buf and
4858 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
4859 and xsnprintf with snprintf. Raise errors if the buffer is too
4862 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4864 * remote.c (remote_target::download_tracepoint): Fix the has_more
4865 predicate in the QTDP action list iteration.
4867 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4869 * remote.c (remote_target::download_tracepoint): Fix indentation
4872 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4874 * proc-api.c (_initialize_proc_api): Remove c, unused.
4875 * procfs.c (procfs_init_inferior): Remove signals, unused.
4876 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
4879 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
4880 Andrew Burgess <andrew.burgess@embecosm.com>
4882 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
4883 'W_STOPCODE (0)' as this could be ambiguous.
4885 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
4887 * ser-tcp.c (net_open): Fix thinko when deciding whether to
4888 disable TCP's Nagle algorithm (use "ai_protocol" instead of
4891 2018-08-02 Tom Tromey <tom@tromey.com>
4894 * dwarf2read.c (read_func_scope): Set symtab on template parameter
4896 (process_structure_scope): Likewise.
4898 2018-08-02 Xavier Roirand <roirand@adacore.com>
4901 * darwin-nat.c (darwin_kill_inferior): Fix handling of
4904 2018-08-02 Tom Tromey <tom@tromey.com>
4906 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
4907 (darwin_suspend_inferior, darwin_resume_inferior)
4908 (darwin_decode_notify_message, darwin_resume_inferior_threads)
4909 (darwin_check_new_threads): Check result of get_darwin_inferior.
4911 2018-07-31 Joel Brobecker <brobecker@adacore.com>
4915 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
4917 * varobj.c (varobj_get_path_expr_parent): Report an error if
4918 parent is a dynamic varobj.
4920 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4922 * gnulib/aclocal.m4: Re-generate.
4923 * gnulib/config.in: Re-generate.
4924 * gnulib/configure: Re-generate.
4925 * gnulib/import/Makefile.in: Re-generate.
4926 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4927 * gnulib/import/m4/onceonly.m4: Re-generate.
4929 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4931 * target-descriptions.c (struct xml_test_tdesc): New.
4932 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
4933 (record_xml_tdesc): Update.
4934 (maintenance_check_xml_descriptions): Update.
4935 * target-descriptions.h (record_xml_tdesc): Update comment.
4937 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
4939 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
4940 checking array bounds are defined.
4942 2018-07-30 Tom Tromey <tom@tromey.com>
4944 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
4945 irreflexivity violation.
4947 2018-07-30 Tom Tromey <tom@tromey.com>
4949 * cli/cli-decode.c (lookup_cmd): Remove lint code.
4950 * value.c (unpack_long): Remove lint code.
4951 * valops.c (value_ind): Remove lint code.
4952 * valarith.c (value_x_binop, value_x_unop, value_equal)
4953 (value_pos): Remove lint code.
4955 2018-07-28 Tom de Vries <tdevries@suse.de>
4957 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
4958 with undefined upper bound as <optimized out>.
4960 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
4962 * gcore.in: Rename variable "name" to "prefix". Expand
4965 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
4967 * windows-nat.c (windows_nat_target::create_inferior): Update to
4968 call close() in global namespace.
4970 2018-07-26 Tom Tromey <tom@tromey.com>
4972 * dwarf-index-write.c (add_address_entry): Don't add objfile
4974 * dbxread.c (find_stab_function): Rename from
4975 find_stab_function_addr. Return a bound_minimal_symbol.
4976 (read_dbx_symtab): Use raw_text_low, raw_text_high.
4977 Don't add objfile offsets.
4978 (end_psymtab): Use raw_text_low, raw_text_high,
4979 MSYMBOL_VALUE_RAW_ADDRESS.
4980 (read_ofile_symtab): Update.
4981 (process_one_symbol): Update.
4982 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
4984 (dw2_relocate): Remove.
4985 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
4987 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
4989 (process_psymtab_comp_unit_reader, add_partial_symbol)
4990 (add_partial_subprogram, dwarf2_ranges_read): Update.
4991 (load_partial_dies): Update.
4992 (add_address_entry): Don't add objfile offsets.
4993 (dwarf2_build_include_psymtabs): Update.
4994 (create_addrmap_from_aranges): Don't add objfile offsets.
4995 (dw2_find_pc_sect_compunit_symtab): Update.
4996 * mdebugread.c (parse_symbol): Don't add objfile offsets.
4997 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
4999 (parse_partial_symbols): Don't add objfile offsets. Use
5000 raw_text_low, raw_text_high. Update.
5001 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
5002 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
5003 or call 'relocate' quick function. Clear psymbol_map.
5004 * psympriv.h (struct partial_symbol) <address>: Add section
5006 <set_unrelocated_address>: Rename from set_address.
5007 <raw_text_low, raw_text_high>: New methods.
5008 <text_low, text_high>: Add objfile parameter.
5009 (add_psymbol_to_bcache): Add 'section' parameter. Call
5010 set_unrelocated_address.
5011 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5012 (find_pc_psymbol): Update.
5013 (fixup_psymbol_section, relocate_psymtabs): Remove.
5014 (dump_psymtab, psym_functions): Update.
5015 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
5017 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5018 (start_psymtab_common): Update.
5019 * symfile-debug.c (debug_qf_relocate): Remove.
5020 (debug_sym_quick_functions): Update.
5021 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
5022 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
5025 2018-07-26 Tom Tromey <tromey@redhat.com>
5027 * dbxread.c (end_psymtab): Use text_high_valid and
5029 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
5030 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
5031 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5033 <text_low_valid, text_high_valid>: New fields.
5034 <set_text_low, set_text_high>: Update.
5035 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
5037 2018-07-26 Tom Tromey <tom@tromey.com>
5039 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
5041 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
5042 textlow and texthigh fields.
5043 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
5045 * mdebugread.c (parse_lines, parse_partial_symbols)
5046 (psymtab_to_symtab_1): Update.
5047 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5048 Rename fields. Update comment. Now private.
5049 <text_low, text_high, set_text_low, set_text_high>: New methods.
5050 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5051 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
5052 (start_psymtab_common, maintenance_info_psymtabs)
5053 (maintenance_check_psymtabs): Update.
5054 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
5056 (scan_xcoff_symtab): Update.
5058 2018-07-26 Tom Tromey <tromey@redhat.com>
5060 * psympriv.h (struct partial_symbol) <unrelocated_address,
5061 address, set_address>: New methods.
5062 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
5063 (fixup_psymbol_section, relocate_psymtabs): Update.
5064 (print_partial_symbols): Add 'objfile' parameter. Update.
5065 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
5068 2018-07-26 Tom Tromey <tom@tromey.com>
5070 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5071 (debug_names::write_psymbols): Update.
5072 * psympriv.h (struct partial_symbol): Derive from
5073 general_symbol_info.
5074 <obj_section>: New method.
5075 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
5076 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5077 (find_pc_sect_psymbol, fixup_psymbol_section)
5078 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
5079 (print_partial_symbols, recursively_search_psymtabs)
5080 (compare_psymbols, psymbol_hash, psymbol_compare)
5081 (add_psymbol_to_bcache, maintenance_check_psymtabs)
5082 (psymbol_name_matches, psym_fill_psymbol_map): Update.
5084 2018-07-26 Tom Tromey <tromey@redhat.com>
5086 * dbxread.c (end_psymtab): Remove dead code.
5088 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
5090 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
5091 DWARF unwinders are disabled.
5092 * dwarf2-frame.c: Add dwarf2read.h include.
5093 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
5095 (dwarf2_frame_unwinders_enabled_p): Define.
5096 (show_dwarf_unwinders_enabled_p): New function.
5097 (_initialize_dwarf2_frame): Register switch to control DWARF
5099 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
5100 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
5101 (show_dwarf_cmdlist): Remove static keyword.
5102 * dwarf2read.h (set_dwarf_cmdlist): Declare.
5103 (show_dwarf_cmdlist): Declare.
5104 * NEWS: Document new feature.
5106 2018-07-26 Tom de Vries <tdevries@suse.de>
5108 PR breakpoints/23366
5109 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
5111 2018-07-26 Tom de Vries <tdevries@suse.de>
5113 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
5114 DW_AT_count can't be translated to a dynamic prop.
5116 2018-07-25 Tom de Vries <tdevries@suse.de>
5118 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
5121 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
5123 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
5125 2018-07-25 Joel Brobecker <brobecker@adacore.com>
5127 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
5129 2018-07-24 Keith Seitz <keiths@redhat.comt
5132 * dwarf2read.c (dw2_add_symbol_to_list): New function.
5133 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
5134 instead of add_symbol_to_list.
5135 (read_file_scope): Call prepare_one_comp_unit before reading
5138 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
5140 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
5142 2018-07-24 Tom Tromey <tom@tromey.com>
5144 * utils.c (malloc, realloc, free): Don't declare.
5145 * configure, config.in: Rebuild.
5146 * configure.ac: Don't check for declarations of free, malloc, or
5149 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5151 * aarch64-linux-nat.c
5152 (aarch64_linux_nat_target::stopped_data_address): Remove unused
5154 * arm-linux-nat.c (fetch_regs): Likewise.
5155 (store_regs): Likewise.
5156 (fetch_vfp_regs): Likewise.
5157 (store_vfp_regs): Likewise.
5158 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
5159 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
5160 (arm_linux_nat_target::insert_watchpoint): Likewise.
5161 (arm_linux_nat_target::remove_watchpoint): Likewise.
5162 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
5164 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
5166 * ppc-linux-nat.c (fetch_register): Likewise.
5167 (fetch_all_gp_regs): Likewise.
5168 (fetch_ppc_registers): Likewise.
5169 (store_all_gp_regs): Likewise.
5170 (store_ppc_registers): Likewise.
5171 (hwdebug_insert_point): Likewise.
5172 (can_use_watchpoint_cond_accel): Likewise.
5173 * remote-sim.c (gdb_os_write_stdout): Likewise.
5175 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5176 Tom Tromey <tom@tromey.com>
5178 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
5180 * configure: Rebuild.
5182 2018-07-22 Tom Tromey <tom@tromey.com>
5184 * regformats/regdat.sh: Define xmltarget_${name} inside
5185 #ifndef IN_PROCESS_AGENT.
5187 2018-07-22 Tom Tromey <tom@tromey.com>
5189 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
5191 2018-07-22 Tom Tromey <tom@tromey.com>
5193 * symfile.c (reread_symbols): Notify iter, not objfile.
5195 2018-07-22 Tom Tromey <tom@tromey.com>
5197 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
5199 (ravenscar_thread_target::prepare_to_store): Likewise.
5201 2018-07-22 Tom Tromey <tom@tromey.com>
5203 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
5204 unused variable. Call value_fetch_lazy when needed.
5205 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5206 Remove unused variable. Call value_fetch_lazy when needed.
5208 2018-07-22 Tom Tromey <tom@tromey.com>
5210 * m32c-tdep.c (mark_dma): Return void.
5211 (make_regs): Remove unused declarations.
5213 2018-07-22 Tom Tromey <tom@tromey.com>
5215 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
5216 cmdscm_get_valid_command_smob_arg_unsafe for effect.
5217 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
5218 bkscm_get_valid_block_smob_arg_unsafe for effect.
5220 2018-07-22 Tom Tromey <tom@tromey.com>
5222 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
5225 2018-07-22 Tom Tromey <tom@tromey.com>
5227 * windows-nat.c (saved_context): Conditionally define.
5228 * remote.c (remote_target::remote_btrace_maybe_reopen):
5229 Conditionally declare "warned".
5230 * inflow.c (sigquit_ours): Conditionally define.
5231 (new_tty): Move "tty" declaration inside #if.
5232 * guile/guile.c (guile_datadir): Conditionally define.
5233 * charset.c (set_be_le_names): Move some declarations inside #if.
5234 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
5236 (parse_xml_btrace_conf): Likewise.
5238 2018-07-22 Tom Tromey <tom@tromey.com>
5240 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
5242 2018-07-22 Tom Tromey <tom@tromey.com>
5244 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
5245 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
5246 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
5247 * buildsym-legacy.c (get_macro_table): Remove unused variable.
5248 * stack.c (frame_apply_level_command): Remove unused variable.
5249 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
5250 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
5251 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
5253 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
5254 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
5255 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
5257 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
5258 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
5260 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
5261 Remove unused variable.
5262 * cli/cli-script.c (recurse_read_control_structure): Remove unused
5264 * common/tdesc.c (print_xml_feature::visit): Remove unused
5266 * compile/compile-object-load.c (store_regs): Remove unused
5268 * complaints.c (clear_complaints): Remove unused variable.
5269 * corelow.c (core_target_open): Remove unused variable.
5270 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
5272 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
5274 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
5276 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
5278 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
5280 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
5282 * ia64-tdep.c (examine_prologue): Remove unused variable.
5283 * infcall.c (run_inferior_call): Remove unused variable.
5284 * inferior.c (exit_inferior): Remove unused variable.
5285 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
5286 * linespec.c (decode_line_2): Remove unused variable.
5287 * linux-nat.c (super_close): Remove.
5288 * linux-tdep.c (linux_info_proc): Remove unused variable.
5289 * mi/mi-main.c (mi_execute_command): Remove unused variable.
5290 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
5291 Remove unused variable.
5292 * parse.c (find_minsym_type_and_address): Remove unused variable.
5293 * printcmd.c (info_symbol_command, printf_floating): Remove unused
5295 * python/py-breakpoint.c (bppy_set_commands): Remove unused
5297 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
5299 * record-btrace.c (record_btrace_target::store_registers): Remove
5301 (cmd_show_record_btrace_cpu): Remove unused variable.
5302 * riscv-tdep.c (riscv_register_reggroup_p)
5303 (riscv_push_dummy_call, riscv_return_value): Remove unused
5305 * rust-exp.y (literal): Remove unused variable.
5306 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
5308 <STRUCTOP_ANONYMOUS>: Likewise.
5309 * s390-linux-tdep.c (s390_linux_init_abi_31)
5310 (s390_linux_init_abi_64): Remove unused variable.
5311 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
5312 (file_select_thread, net_windows_open, _initialize_ser_windows):
5313 Remove unused variables.
5314 * symtab.c (find_pc_sect_line): Remove unused variable.
5315 * target-memory.c (compute_garbled_blocks): Remove unused
5317 (target_write_memory_blocks): Remove unused variable.
5318 * target.c (target_stack::unpush): Remove unused variables.
5319 * tracepoint.c (start_tracing, all_tracepoint_actions)
5320 (merge_uploaded_trace_state_variables)
5321 (print_one_static_tracepoint_marker): Remove unused variable.
5322 * unittests/basic_string_view/element_access/char/1.cc (test01):
5323 Remove unused variable.
5324 * windows-nat.c (windows_continue, windows_add_all_dlls)
5325 (do_initial_windows_stuff, windows_nat_target::create_inferior):
5326 Remove unused variables.
5328 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5330 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
5331 attr_profile in HAVE_ELF.
5332 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
5335 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
5337 * frame.c (frame_register_unwind): Change parameter name.
5338 (frame_unwind_register): Likewise.
5339 (frame_unwind_register_value): Likewise.
5340 (frame_unwind_register_signed): Likewise.
5341 (frame_unwind_register_unsigned): Likewise.
5342 * frame.h (frame_register_unwind): Likewise.
5343 (frame_unwind_register): Likewise.
5344 (frame_unwind_register_value): Likewise.
5345 (frame_unwind_register_signed): Likewise.
5346 (frame_unwind_register_unsigned): Likewise.
5347 (frame_unwind_arch): Likewise.
5349 2018-07-20 Maciej W. Rozycki <macro@mips.com>
5351 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
5354 2018-07-20 Maciej W. Rozycki <macro@mips.com>
5356 * mips-linux-nat.c (mips_linux_nat_target::read_description):
5357 Call `get_ptrace_pid' rather than extracting the ptrace PID by
5360 2018-07-20 Keith Seitz <keiths@redhat.com>
5362 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
5363 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
5364 m_compunit_symtab, m_language>: Add "m_" prefix.
5366 * buildsym.c: Update all uses.
5368 2018-07-20 Tom Tromey <tom@tromey.com>
5370 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
5371 * buildsym.h (record_line_ftype): Remove typedef.
5373 2018-07-20 Tom Tromey <tom@tromey.com>
5375 * buildsym-legacy.h (augment_type_symtab): Don't declare.
5376 (end_expandable_symtab): Likewise.
5377 (end_symtab_get_static_block): Likewise.
5378 (end_symtab_from_static_block): Likewise.
5379 * buildsym-legacy.c (augment_type_symtab): Remove.
5380 (end_expandable_symtab): Remove.
5381 (end_symtab_get_static_block): Remove.
5382 (end_symtab_from_static_block): Remove.
5384 2018-07-20 Tom Tromey <tom@tromey.com>
5386 * dwarf2read.c: Include buildsym.h.
5387 (struct dwarf2_cu) <builder>: New method.
5388 (fixup_go_packaging): Update.
5389 (process_full_comp_unit, process_full_type_unit): Update. Don't
5390 use scoped_free_pendings.
5391 (using_directives): Add "cu" parameter, remove "language".
5392 (read_import_statement, setup_type_unit_groups, )
5393 (read_func_scope, read_lexical_block_scope)
5394 (dwarf2_record_block_ranges, read_namespace): Update.
5395 (lnp_state_machine::lnp_state_machine): Add cu parameter.
5396 (lnp_state_machine::handle_end_sequence): Update.
5397 (class lnp_state_machine) <m_cu>: New member.
5398 <m_record_line_callback>: Remove.
5399 <m_currently_recording_lines>: New member.
5400 (lnp_state_machine::handle_set_file): Update.
5401 (noop_record_line): Remove.
5402 (dwarf_record_line_p): Add cu parameter.
5403 (dwarf_record_line_1, dwarf_finish_line): Likewise.
5404 (lnp_state_machine::record_line)
5405 (lnp_state_machine::lnp_state_machine)
5406 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5407 (dwarf_decode_lines): Update.
5408 (dwarf2_start_subfile): Add cu parameter.
5409 (dwarf2_start_symtab, new_symbol): Update.
5410 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
5411 Remove dwarf2_per_objfile parameter.
5412 (dwarf_decode_macros): Update.
5414 2018-07-20 Tom Tromey <tom@tromey.com>
5416 * stabsread.c (define_symbol): Update.
5417 * buildsym-legacy.h (get_buildsym_compunit): Declare.
5418 * dwarf2read.c (new_symbol): Update.
5419 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
5420 * cp-namespace.c: Include buildsym.h.
5421 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
5422 * buildsym-legacy.c (get_buildsym_compunit): New function.
5424 2018-07-20 Tom Tromey <tom@tromey.com>
5426 * xcoffread.c: Include buildsym-legacy.h.
5427 * windows-nat.c: Include buildsym-legacy.h.
5428 * stabsread.c: Include buildsym-legacy.h.
5429 * mdebugread.c: Include buildsym-legacy.h.
5430 * buildsym-legacy.h: New file.
5431 * buildsym-legacy.c: New file, from buildsym.c.
5432 * go32-nat.c: Include buildsym-legacy.h.
5433 * dwarf2read.c: Include buildsym-legacy.h.
5434 * dbxread.c: Include buildsym-legacy.h.
5435 * cp-namespace.c: Include buildsym-legacy.h.
5436 * coffread.c: Include buildsym-legacy.h.
5437 * buildsym.h: Move some contents to buildsym-legacy.h.
5438 * buildsym.c: Include buildsym-legacy.h. Move many functions to
5440 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
5442 2018-07-20 Tom Tromey <tom@tromey.com>
5444 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
5445 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
5446 (buildsym_compunit::buildsym_compunit)
5447 (buildsym_compunit::~buildsym_compunit)
5448 (buildsym_compunit::get_macro_table): Define.
5450 2018-07-20 Tom Tromey <tom@tromey.com>
5452 * buildsym.c (reset_symtab_globals): Remove.
5453 (buildsym_compunit::end_symtab_from_static_block): Update.
5454 (buildsym_compunit::augment_type_symtab): Update.
5455 (end_symtab_from_static_block): Call free_buildsym_compunit.
5456 (augment_type_symtab, end_symtab, end_expandable_symtab):
5459 2018-07-20 Tom Tromey <tom@tromey.com>
5461 * arch-utils.c: Do not include buildsym.h.
5462 * mipsread.c: Do not include buildsym.h.
5463 * machoread.c: Do not include buildsym.h.
5464 * elfread.c: Do not include buildsym.h.
5466 2018-07-20 Tom Tromey <tom@tromey.com>
5468 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
5470 (buildsym_compunit): Add new constructor.
5471 (struct buildsym_compunit) <get_last_source_file, finish_block,
5472 record_block_range, start_subfile, patch_subfile_names,
5473 push_subfile, pop_subfile, record_line, get_compunit_symtab,
5474 set_last_source_start_addr, get_last_source_start_addr,
5475 get_local_using_directives, set_local_using_directives,
5476 get_global_using_directives, outermost_context_p,
5477 get_current_context_stack, get_context_stack_depth,
5478 get_current_subfile, get_local_symbols, get_file_symbols,
5479 get_global_symbols, record_debugformat, record_producer,
5480 push_context, pop_context, end_symtab_get_static_block,
5481 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
5483 <record_pending_block, finish_block_internal, make_blockvector,
5484 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
5488 2018-05-22 Tom Tromey <tom@tromey.com>
5490 * buildsym.c (record_pending_block): Move earlier. Remove objfile
5492 (finish_block_internal): Update.
5494 2018-07-20 Tom Tromey <tom@tromey.com>
5496 * buildsym.c (record_pending_block): Move earlier. Remove objfile
5498 (finish_block_internal): Update.
5500 2018-07-20 Tom Tromey <tom@tromey.com>
5502 * buildsym.h (EXTERN): Don't define or undef.
5503 * buildsym.c (EXTERN): Don't define.
5505 2018-07-20 Tom Tromey <tom@tromey.com>
5507 * buildsym.c: Remove TODO comment.
5509 2018-07-20 Tom Tromey <tom@tromey.com>
5511 * coffread.c (coff_symtab_read): Update.
5512 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5513 (xcoff_new_init): Update.
5514 * mipsread.c (mipscoff_new_init): Update.
5515 * mdebugread.c (mdebug_build_psymtabs): Update.
5516 * elfread.c (elf_new_init): Update.
5517 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
5519 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
5520 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5521 (stabsect_build_psymtabs): Update.
5522 * buildsym.h (buildsym_init): Don't declare.
5523 * buildsym.c: Update comment.
5524 (prepare_for_building): Remove.
5525 (start_symtab, restart_symtab): Update.
5526 (reset_symtab_globals): Update comment.
5527 (buildsym_init): Remove.
5529 2018-07-20 Tom Tromey <tom@tromey.com>
5531 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
5532 * stabsread.c (patch_block_stabs, define_symbol, read_type)
5533 (read_enum_type, common_block_start, common_block_end)
5534 (cleanup_undefined_types_1, finish_global_stabs): Update.
5535 * mdebugread.c (psymtab_to_symtab_1): Update.
5536 * dwarf2read.c (fixup_go_packaging, read_func_scope)
5537 (read_lexical_block_scope, new_symbol): Update.
5538 * dbxread.c (process_one_symbol): Update.
5539 * coffread.c (coff_symtab_read, process_coff_symbol)
5540 (coff_read_enum_type): Update.
5541 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
5543 (get_local_symbols, get_file_symbols, get_global_symbols): New
5545 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
5547 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
5548 (~scoped_free_pendings): Update.
5549 (finish_block, prepare_for_building, reset_symtab_globals)
5550 (end_symtab_get_static_block, end_symtab_with_blockvector)
5551 (augment_type_symtab, push_context): Update.
5552 (get_local_symbols, get_file_symbols, get_global_symbols): New
5554 (buildsym_init): Update.
5556 2018-07-20 Tom Tromey <tom@tromey.com>
5558 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
5559 (process_full_type_unit): Likewise.
5560 (dwarf2_start_symtab): Set list_in_scope.
5562 2018-07-20 Tom Tromey <tom@tromey.com>
5564 * dwarf2read.c (process_psymtab_comp_unit_reader)
5565 (build_type_psymtabs_reader): Do not set list_in_scope.
5567 2018-07-20 Tom Tromey <tom@tromey.com>
5569 * buildsym.c (free_pendings): Remove.
5570 (add_symbol_to_list, scoped_free_pendings)
5571 (finish_block_internal, buildsym_init): Update.
5573 2018-07-20 Tom Tromey <tom@tromey.com>
5575 * xcoffread.c (read_xcoff_symtab): Update.
5576 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
5578 * dbxread.c (process_one_symbol): Update.
5579 * coffread.c (coff_symtab_read): Update.
5580 * buildsym.h (finish_block): Update.
5581 * buildsym.c (finish_block): Remove "listhead" argument.
5582 (end_symtab_get_static_block): Update.
5584 2018-07-20 Tom Tromey <tom@tromey.com>
5586 * buildsym.h (class scoped_free_pendings): Remove constructor.
5587 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
5589 <m_pending_block_obstack, m_pending_blocks>: New members.
5590 (pending_block_obstack, pending_blocks): Remove.
5591 (scoped_free_pendings::scoped_free_pendings): Default.
5592 (~scoped_free_pendings): Update.
5593 (free_pending_blocks): Remove.
5594 (finish_block_internal, record_pending_block, make_blockvector)
5595 (end_symtab_get_static_block, augment_type_symtab, push_context)
5596 (buildsym_init): Update.
5598 2018-07-20 Tom Tromey <tom@tromey.com>
5600 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
5601 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
5603 (pending_addrmap, pending_addrmap_obstack)
5604 (pending_addrmap_interesting): Remove.
5605 (scoped_free_pendings, record_block_range, make_blockvector)
5606 (prepare_for_building, reset_symtab_globals, buildsym_init):
5609 2018-07-20 Tom Tromey <tom@tromey.com>
5611 * xcoffread.c (process_linenos): Update.
5612 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
5613 * mdebugread.c (psymtab_to_symtab_1): Update.
5614 * dwarf2read.c (setup_type_unit_groups)
5615 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
5616 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
5617 * dbxread.c (process_one_symbol): Update.
5618 * coffread.c (coff_symtab_read, enter_linenos)
5619 (process_coff_symbol): Update.
5620 * buildsym.h (current_subfile): Don't declare.
5621 (get_current_subfile): Declare.
5622 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
5624 (start_subfile, free_buildsym_compunit, push_subfile)
5625 (prepare_for_building, start_symtab): Update.
5626 (get_current_subfile): New function.
5628 2018-07-20 Tom Tromey <tom@tromey.com>
5630 * coffread.c (coff_symtab_read): Update.
5631 * xcoffread.c (read_xcoff_symtab): Update.
5632 * dwarf2read.c (new_symbol): Update.
5633 (read_func_scope, read_lexical_block_scope): Update.
5634 * dbxread.c (process_one_symbol): Update.
5635 * buildsym.h (context_stack, context_stack_depth): Don't declare.
5636 (outermost_context_p): Remove macro.
5637 (outermost_context_p, get_current_context_stack)
5638 (get_context_stack_depth): Declare.
5639 (pop_context): Return struct context_stack.
5640 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
5642 (context_stack_size): Remove.
5643 (INITIAL_CONTEXT_STACK_SIZE): Remove.
5644 (prepare_for_building, end_symtab_get_static_block)
5645 (augment_type_symtab, push_context): Update.
5646 (pop_context): Return struct context_stack.
5647 (outermost_context_p, get_current_context_stack)
5648 (get_context_stack_depth): New functions.
5649 (buildsym_init): Update.
5651 2018-07-20 Tom Tromey <tom@tromey.com>
5653 * rust-exp.y: Now a pure parser. Update all rules.
5654 (%union): Move earlier.
5655 (current_parser, work_obstack): Remove globals.
5656 (rust_parser, ~rust_parser): Update.
5657 (class rust_parser) <copy_name, concat3, crate_name, super_name,
5658 lex_character, lex_number, lex_string, lex_identifier,
5659 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
5660 convert_name, convert_params_to_expression,
5661 convert_ast_to_expression, ast_basic_type, ast_operation,
5662 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
5663 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
5664 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
5665 ast_array_type, ast_slice_type, ast_reference_type,
5666 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
5667 (rust_parse): Update.
5668 (rustyyerror, rustyylex): Add parser parameter.
5669 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
5670 (rust_lex_stringish_test, rust_lex_test_sequence)
5671 (rust_lex_test_trailing_dot, rust_lex_test_completion)
5672 (rust_lex_test_push_back, rust_lex_tests): Update.
5674 2018-07-19 Pedro Alves <palves@redhat.com>
5676 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
5677 gdb::unique_xmalloc_ptr.
5678 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
5679 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
5680 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
5681 copy-initialization.
5682 * guile/scm-pretty-print.c (ppscm_print_children): Use
5683 gdb::unique_xmalloc_ptr instead of cleanups.
5684 (gdbscm_apply_val_pretty_printer): Remove cleanups.
5685 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
5686 gdb::unique_xmalloc_ptr.
5687 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5688 Adjust to use gdb::unique_xmalloc_ptr.
5689 * guile/scm-utils.c (extract_arg): Adjust.
5690 * guile/scm-value.c (gdbscm_value_field): Adjust to use
5691 gdb::unique_xmalloc_ptr instead of a cleanup.
5693 2018-07-19 Tom Tromey <tom@tromey.com>
5695 * utils.c (do_value_free_to_mark)
5696 (make_cleanup_value_free_to_mark): Remove.
5697 * utils.h (make_cleanup_value_free_to_mark): Remove.
5699 2018-07-19 Pedro Alves <palves@redhat.com>
5701 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
5702 forwarding reference.
5704 2018-07-18 Pedro Alves <palves@redhat.com>
5706 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
5707 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
5710 2018-07-18 Pedro Alves <palves@redhat.com>
5712 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
5714 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
5716 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
5717 directly instead of a cleanup.
5718 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
5719 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
5720 (vlscm_binop_gdbthrow): New, factored out from ...
5721 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
5722 (vlscm_rich_compare): Use gdbscm_wrap.
5723 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
5724 instead of a cleanup.
5725 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
5727 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5728 Use xfree directly instead of a cleanup.
5729 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
5730 Adjust to use gdbscm_wrap and scoped_value_mark.
5731 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
5732 (gdbscm_value_address, gdbscm_value_dereference)
5733 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
5735 (gdbscm_value_dynamic_type): Use scoped_value_mark.
5736 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
5738 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
5739 gdbscm_wrap and scoped_value_mark.
5740 (gdbscm_value_to_string): Use xfree directly instead of a
5741 cleanup. Move 'buffer' unique_ptr to TRY scope.
5742 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
5743 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
5745 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
5746 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
5748 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
5751 2018-07-18 Tom de Vries <tdevries@suse.de>
5753 * findvar.c (default_read_var_value): Also resolve dynamic type for
5754 LOC_OPTIMIZED_OUT vars.
5756 2018-07-18 Maciej W. Rozycki <macro@mips.com>
5758 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
5761 2018-07-17 Tom Tromey <tom@tromey.com>
5763 * guile/scm-param.c (pascm_set_func, pascm_show_func)
5764 (compute_enum_list, pascm_set_param_value_x)
5765 (gdbscm_parameter_value): Update.
5766 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
5767 (gdbscm_scm_to_host_string): Update.
5768 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
5770 * guile/scm-cmd.c (cmdscm_add_completion): Update.
5771 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
5772 * guile/scm-string.c (gdbscm_scm_to_string): Return
5774 (gdbscm_scm_to_host_string): Likewise.
5776 2018-07-17 Tom Tromey <tom@tromey.com>
5778 * guile/guile.c (gdbscm_eval_from_control_command): Update.
5779 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
5780 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
5781 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
5784 2018-07-17 Tom Tromey <tom@tromey.com>
5786 * guile/scm-param.c (pascm_signal_setshow_error): Update.
5787 * guile/guile-internal.h (gdbscm_exception_message_to_string):
5789 * guile/scm-cmd.c (cmdscm_function): Update.
5790 * guile/scm-pretty-print.c
5791 (ppscm_print_exception_unless_memory_error): Update.
5792 * guile/scm-exception.c (gdbscm_exception_message_to_string):
5793 Return unique_xmalloc_ptr.
5795 2018-07-17 Tom Tromey <tom@tromey.com>
5797 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
5800 2018-07-17 Jim Wilson <jimw@sifive.com>
5802 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
5803 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
5804 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
5805 unecessary braces after EF_RISCV_RVC test. Delete call to
5806 set_gdbarch_decr_pc_after_break.
5808 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
5809 RISCV_LAST_FP_REGNUM + 1.
5810 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
5812 2018-07-17 Tom Tromey <tom@tromey.com>
5814 * configure.ac: Remove --disable-gdbcli.
5815 * configure: Rebuild.
5816 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
5817 (SUBDIR_CLI_CFLAGS): Remove.
5818 (SFILES): Use SUBDIR_CLI_SRCS.
5819 (COMMON_OBS): Use SUBDIR_CLI_OBS.
5821 2018-07-17 Tom Tromey <tom@tromey.com>
5824 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
5826 2018-07-16 Jim Wilson <jimw@sifive.com>
5828 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
5830 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5832 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
5834 (libunwind_frame_sniffer): Likewise.
5835 (libunwind_frame_prev_register): Likewise.
5836 (libunwind_sigtramp_frame_sniffer): Likewise.
5837 * ia64-tdep.c (ia64_access_reg): Likewise.
5838 (ia64_access_rse_reg): Likewise.
5839 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
5840 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
5842 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5844 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
5846 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5848 * remote-sim.c (gdbsim_target::close,
5849 gdbsim_target::mourn_inferior): Remove unused variables.
5851 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
5853 * ia64-tdep.c (ktab_buf): New global.
5854 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
5855 (get_kernel_table): Adjust.
5857 2018-07-16 Tom Tromey <tom@tromey.com>
5859 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
5860 * dwarf2read.c (using_directives, new_symbol): Use
5861 outermost_context_p.
5862 * dbxread.c (process_one_symbol): Use outermost_context_p.
5863 * coffread.c (coff_symtab_read): Use outermost_context_p.
5865 2018-07-16 Tom Tromey <tom@tromey.com>
5867 * dwarf2read.c (using_directives, read_func_scope)
5868 (read_lexical_block_scope): Update.
5869 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5870 * buildsym.h (local_using_directives, global_using_directives):
5872 (get_local_using_directives, set_local_using_directives)
5873 (get_global_using_directives): Declare.
5874 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
5875 m_global_using_directives>: New members.
5876 (finish_block_internal, prepare_for_building)
5877 (reset_symtab_globals, end_symtab_get_static_block)
5878 (push_context): Update.
5879 (get_local_using_directives, set_local_using_directives)
5880 (get_global_using_directives): New functions.
5881 (buildsym_init): Update.
5883 2018-07-16 Tom Tromey <tom@tromey.com>
5885 * xcoffread.c (xcoff_initial_scan): Don't call
5886 free_pending_blocks.
5887 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
5888 * buildsym.h (class scoped_free_pendings): Add constructor.
5889 (free_pending_blocks): Don't declare.
5890 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
5891 (free_pending_blocks): Now static.
5893 2018-07-16 Tom Tromey <tom@tromey.com>
5895 * buildsym.h (push_subfile, pop_subfile): Update declarations.
5896 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
5898 (struct subfile_stack): Remove.
5899 (subfile_stack): Remove.
5900 (push_subfile, pop_subfile, buildsym_init): Update.
5902 2018-07-16 Tom Tromey <tom@tromey.com>
5904 * buildsym.c (push_subfile): Use gdb_assert.
5905 (pop_subfile): Use gdb_assert.
5907 2018-07-16 Tom Tromey <tom@tromey.com>
5909 * buildsym.h (merge_symbol_lists): Remove.
5910 * buildsym.c (merge_symbol_lists): Remove.
5912 2018-07-16 Tom Tromey <tom@tromey.com>
5914 * stabsread.c (scan_file_globals): Update comment.
5915 * stabsread.h (scan_file_globals): Move from buildsym.h.
5916 * buildsym.h (scan_file_globals): Move to stabsread.h.
5918 2018-07-16 Tom Tromey <tom@tromey.com>
5920 * xcoffread.c (xcoff_new_init): Update.
5921 * mipsread.c (mipscoff_new_init): Update.
5922 * mdebugread.c (mdebug_build_psymtabs): Update.
5923 * elfread.c (elf_new_init): Update.
5924 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
5925 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
5926 * buildsym.h (buildsym_new_init): Don't declare.
5927 * buildsym.c (buildsym_new_init): Remove.
5929 2018-07-16 Tom Tromey <tom@tromey.com>
5931 * stabsread.h (within_function): Move from buildsym.h.
5932 * stabsread.c (start_stabs): Clear within_function.
5933 * coffread.c (coff_start_symtab): Clear within_function.
5934 * buildsym.h (within_function): Move to stabsread.h.
5935 * buildsym.c (prepare_for_building): Update.
5937 2018-07-16 Tom Tromey <tom@tromey.com>
5939 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
5940 * dwarf2read.c (dwarf2_start_symtab): Don't set
5941 processing_gcc_compilation.
5942 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
5944 2018-07-16 Tom Tromey <tom@tromey.com>
5946 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
5947 (next_symbol_text_func): Move from buildsym.h.
5948 * stabsread.c (hashname): Move from buildsym.c.
5949 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
5950 (next_symbol_text_func, hashname): Move to stabsread.h.
5951 * buildsym.c: Don't include bcache.h
5952 (hashname): Move to stasbread.c.
5954 2018-07-16 Tom Tromey <tom@tromey.com>
5956 * buildsym.h (context_stack_size): Don't declare.
5957 * buildsym.c (context_stack_size): New global.
5959 2018-07-16 Tom Tromey <tom@tromey.com>
5961 * dbxread.c (processing_acc_compilation): New global.
5962 * buildsym.h (processing_acc_compilation): Don't declare.
5964 2018-07-16 Tom Tromey <tom@tromey.com>
5966 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
5967 * dbxread.c (read_ofile_symtab): Update.
5968 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
5969 * buildsym.h (last_source_start_addr): Remove.
5970 (set_last_source_start_addr, get_last_source_start_addr):
5972 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
5974 (struct buildsym_compunit) <m_last_source_start_addr>: New
5976 (prepare_for_building): Remove start_addr parameter.
5977 (start_symtab, restart_symtab, end_symtab_get_static_block)
5978 (end_symtab_with_blockvector): Update.
5979 (set_last_source_start_addr, get_last_source_start_addr): New
5982 2018-07-16 Tom Tromey <tom@tromey.com>
5984 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
5986 (have_line_numbers): Remove.
5987 (record_line, prepare_for_building, end_symtab_get_static_block)
5988 (augment_type_symtab): Update.
5990 2018-07-16 Tom Tromey <tom@tromey.com>
5992 * buildsym.c (~buildsym_compunit): Free the macro table.
5993 (struct buildsym_compunit) <get_macro_table, release_macros>: New
5995 <m_pending_macros>: New member.
5996 (pending_macros): Remove.
5997 (~scoped_free_pendings, get_macro_table, prepare_for_building)
5998 (reset_symtab_globals, end_symtab_get_static_block)
5999 (end_symtab_with_blockvector, augment_type_symtab)
6000 (buildsym_init): Update.
6002 2018-07-16 Tom Tromey <tom@tromey.com>
6004 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
6006 (buildsym_compunit::set_last_source_file): New method.
6007 <m_last_source_file>: New member.
6008 (prepare_for_building): Remove "name" parameter.
6009 (start_symtab, restart_symtab, reset_symtab_globals): Update.
6010 (last_source_file): Remove.
6011 (set_last_source_file, get_last_source_file): Update.
6013 2018-07-16 Tom Tromey <tom@tromey.com>
6015 * buildsym.c (prepare_for_building): Add assert.
6017 2018-07-16 Tom Tromey <tom@tromey.com>
6019 * buildsym.c (~buildsym_compunit): Update.
6020 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
6021 (start_subfile, patch_subfile_names)
6022 (end_symtab_with_blockvector): Update.
6024 2018-07-16 Tom Tromey <tom@tromey.com>
6026 * buildsym.c (struct buildsym_compunit): Add constructor,
6027 destructor, initializers.
6028 (start_buildsym_compunit): Remove.
6029 (free_buildsym_compunit): Use "delete".
6030 (start_symtab, restart_symtab): Use "new".
6032 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
6034 * symfile.c (set_objfile_default_section_offset): Remove struct
6037 2018-07-14 Stafford Horne <shorne@gmail.com>
6039 * (Responsible Maintainers): Add myself as or1k maintainer.
6041 2018-07-13 Tom Tromey <tom@tromey.com>
6043 * symfile.c (set_objfile_default_section_offset): Use extra braces
6046 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6048 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
6051 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6053 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6054 unittests/cli-utils-selftests.c
6055 * unittests/cli-utils-selftests.c: New file.
6057 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6059 * NEWS: Mention new commands. Mention change to 'thread apply'.
6061 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6063 * thread.c (thr_try_catch_cmd): New function.
6064 (thread_apply_all_command): Handle qcs flags.
6065 (thread_apply_command): Handle qcs flags.
6066 (taas_command): New function.
6067 (tfaas_command): New function.
6068 (_initialize_thread): Update to setup the new commands 'taas
6069 and 'tfaas'. Change doc string for 'thread apply'.
6071 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6073 * stack.c: (trailing_outermost_frame): New function, mostly
6074 extracted from backtrace_command_1.
6075 (leading_innermost_frame): New function.
6076 (backtrace_command_1): Update to call trailing_outermost_frame.
6077 (frame_apply_command_count): New function.
6078 (frame_apply_level_command): New function.
6079 (frame_apply_all_command): New function.
6080 (frame_apply_command): New function.
6081 (faas_command): New function.
6082 (frame_cmd_list): New variable.
6083 (_initialize_stack): Update to setup the new commands 'frame apply'
6086 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6088 * cli-utils.c (number_or_range_parser::get_number): Only handle
6089 numbers or convenience var as numbers.
6090 (parse_flags): New function.
6091 (parse_flags_qcs): New function.
6092 (number_or_range_parser::finished): Ensure parsing end is detected
6093 before end of string.
6094 * cli-utils.h (parse_flags): New function.
6095 (parse_flags_qcs): New function.
6096 (number_or_range_parser): Remove m_finished bool.
6097 (number_or_range_parser::skip_range): Set m_in_range to false.
6099 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
6101 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
6104 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6105 Jan Kratochvil <jan.kratochvil@redhat.com>
6106 Paul Fertser <fercerpav@gmail.com>
6107 Tsutomu Seki <sekiriki@gmail.com>
6108 Pedro Alves <palves@redhat.com>
6110 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6111 'unittests/parse-connection-spec-selftests.c'.
6112 (COMMON_SFILES): Add 'common/netstuff.c'.
6113 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
6114 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
6115 * common/netstuff.c: New file.
6116 * common/netstuff.h: New file.
6117 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
6118 (wait_for_connect): Update comment. New parameter
6119 'gdb::optional<int> sock' instead of 'struct serial *scb'.
6120 Use 'sock' directly instead of 'scb->fd'.
6121 (try_connect): New function, with code from 'net_open'.
6122 (net_open): Rewrite main loop to deal with multiple
6123 sockets/addresses. Handle IPv6-style hostnames; implement
6124 support for IPv6 connections.
6125 * unittests/parse-connection-spec-selftests.c: New file.
6127 2018-07-11 Pedro Alves <palves@redhat.com>
6130 * remote.c (remote_target::remote_detach_pid): Call
6131 set_current_process.
6133 2018-07-11 Pedro Alves <palves@redhat.com>
6135 * h8300-tdep.c (h8300_gdbarch_init): Remove
6136 set_gdbarch_ecoff_reg_to_regnum calls.
6138 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6141 * c-typeprint.c (c_type_print_base_struct_union): Don't print
6142 offsets/sizes for static members of a class/struct.
6144 2018-07-11 Alan Hayward <alan.hayward@arm.com>
6146 * target-descriptions.c (tdesc_register_bitsize): Rename.
6147 * target-descriptions.h (tdesc_register_bitsize): Likewise.
6148 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
6149 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
6151 2018-07-10 Tom Tromey <tom@tromey.com>
6153 * breakpoint.c (moribund_locations): Now static and a
6155 (breakpoint_init_inferior, moribund_breakpoint_here_p)
6156 (build_bpstat_chain, update_global_location_list)
6157 (breakpoint_retire_moribund): Update.
6158 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
6161 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6163 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
6164 (riscv_register_reggroup_p): Use new function, remove unneeded
6166 (riscv_push_dummy_call): Extend assert to compare against xlen or
6167 flen based on register type.
6169 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6171 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
6173 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6175 * remote.c (show_hardware_watchpoint_limit): New function.
6176 (show_hardware_watchpoint_length_limit): New function.
6177 (show_hardware_breakpoint_limit): New function.
6178 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
6179 where appropriate, update help text.
6181 2018-07-09 Tom Tromey <tom@tromey.com>
6183 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
6184 (CLIBS): Don't mention NAT_CLIBS.
6186 2018-07-09 Tom Tromey <tom@tromey.com>
6188 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
6189 (LIBGDB_OBS, clean mostlyclean): Update.
6190 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
6192 2018-07-09 Tom Tromey <tom@tromey.com>
6194 * Makefile.in (%.c: %.y): Use ECHO_YACC.
6195 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
6196 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
6198 2018-07-09 Tom Tromey <tom@tromey.com>
6200 * Makefile.in (ALLDEPFILES): Remove exec.c.
6201 (COMMON_OBS): Remove exec.o.
6202 (COMMON_SFILES): Add exec.c.
6204 2018-07-09 Tom Tromey <tom@tromey.com>
6206 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
6208 2018-07-09 Tom Tromey <tom@tromey.com>
6210 * Makefile.in (clean mostlyclean): Remove stamp-version.
6211 (version.c): Depend on stamp-version.
6212 (stamp-version): New rule, from version.c rule.
6214 2018-07-09 Tom Tromey <tom@tromey.com>
6216 * Makefile.in (init.c): Depend on stamp-init.
6217 (stamp-init): New rule, from init.c rule.
6218 (clean mostlyclean): Remove stamp-init.
6220 2018-07-09 Tom Tromey <tom@tromey.com>
6222 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
6223 SUBDIR_GCC_COMPILE_SRCS.
6225 2018-07-09 Tom Tromey <tom@tromey.com>
6227 * Makefile.in (init.c): Remove some unused sed rules.
6229 2018-07-09 Tom Tromey <tom@tromey.com>
6231 * Makefile.in (TSOBS): Remove.
6232 (INIT_FILES): Update.
6233 (LIBGDB_OBS): Update.
6234 (COMMON_SFILES): Add inflow.c.
6235 (SFILES): Remove inflow.c.
6237 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6239 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
6241 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
6243 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
6244 get_saveloc_name, is_signal_frame_name, step_name,
6245 init_remote_name, create_addr_space_name,
6246 destroy_addr_space_name, search_unwind_table_name,
6247 find_dyn_list_name): Constify.
6249 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
6251 * darwin-nat.c (darwin_pthread_kill): New function.
6252 (darwin_resume_thread): Use darwin_pthread_kill.
6254 2018-07-05 Tom de Vries <tdevries@suse.de>
6256 * macroexp.c (macro_buffer) <operator=>: New member function.
6258 2018-07-04 Tom Tromey <tom@tromey.com>
6260 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
6262 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
6264 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
6265 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
6266 * maint.c: Likewise.
6269 2018-07-04 Joel Brobecker <brobecker@adacore.com>
6271 * NEWS: Create a new section for the next release branch.
6272 Rename the section of the current branch, now that it has
6275 2018-07-04 Joel Brobecker <brobecker@adacore.com>
6277 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
6278 * version.in: Bump version to 8.2.50.DATE-git.
6280 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6281 Pedro Alves <palves@redhat.com>
6283 * linux-nat.c (linux_init_ptrace): Rename to ...
6284 (linux_init_ptrace_procfs): ... this. Call
6285 linux_proc_init_warnings.
6286 (linux_nat_target::post_attach)
6287 (linux_nat_target::post_startup_inferior): Adjust.
6288 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
6289 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
6291 2018-07-04 Tom de Vries <tdevries@suse.de>
6293 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
6295 (read_comp_unit_head): ... here.
6297 2018-07-03 Tom Tromey <tom@tromey.com>
6299 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
6300 (stop_tracing, tstatus_command)
6301 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
6302 (print_one_static_tracepoint_marker): Update.
6303 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
6305 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
6307 (all_tracepoints, static_tracepoints_here): Return std::vector.
6309 2018-07-03 Tom Tromey <tom@tromey.com>
6311 * common/ptid.c (ptid_equal): Remove.
6312 * common/ptid.h (ptid_equal): Don't declare.
6313 * ada-tasks.c: Update.
6314 * breakpoint.c: Update.
6315 * common/agent.c: Update.
6316 * corelow.c: Update.
6317 * darwin-nat-info.c: Update.
6318 * darwin-nat.c: Update.
6320 * dtrace-probe.c: Update.
6321 * dummy-frame.c: Update.
6322 * fbsd-nat.c: Update.
6324 * gdbthread.h: Update.
6325 * gnu-nat.c: Update.
6326 * go32-nat.c: Update.
6327 * inf-loop.c: Update.
6328 * inf-ptrace.c: Update.
6329 * infcall.c: Update.
6333 * linux-fork.c: Update.
6334 * linux-nat.c: Update.
6335 * linux-thread-db.c: Update.
6336 * mi/mi-cmd-var.c: Update.
6337 * mi/mi-interp.c: Update.
6338 * mi/mi-main.c: Update.
6339 * nto-procfs.c: Update.
6340 * ppc-linux-tdep.c: Update.
6342 * python/py-inferior.c: Update.
6343 * python/py-record-btrace.c: Update.
6344 * python/py-record.c: Update.
6345 * ravenscar-thread.c: Update.
6346 * regcache.c: Update.
6347 * remote-sim.c: Update.
6349 * sol-thread.c: Update.
6352 * tui/tui-stack.c: Update.
6354 * windows-nat.c: Update.
6355 * windows-tdep.c: Update.
6357 2018-07-03 Tom Tromey <tom@tromey.com>
6359 * common/ptid.c (ptid_match): Remove.
6360 * common/ptid.h (ptid_match): Don't declare.
6361 * fbsd-nat.c: Update.
6364 * linux-nat.c: Update.
6365 * record-btrace.c: Update.
6366 * regcache.c: Update.
6369 2018-07-03 Tom Tromey <tom@tromey.com>
6371 * common/ptid.c (ptid_tid_p): Remove.
6372 * common/ptid.h (ptid_tid_p): Don't declare.
6373 * sol-thread.c: Update.
6375 2018-07-03 Tom Tromey <tom@tromey.com>
6377 * common/ptid.c (ptid_lwp_p): Remove.
6378 * common/ptid.h (ptid_lwp_p): Don't declare.
6379 * fbsd-nat.c: Update.
6380 * linux-nat.c: Update.
6381 * nat/linux-procfs.c: Update.
6382 * nat/x86-linux-dregs.c: Update.
6383 * sol-thread.c: Update.
6385 2018-07-03 Tom Tromey <tom@tromey.com>
6387 * common/ptid.c (ptid_is_pid): Remove.
6388 * common/ptid.h (ptid_is_pid): Don't declare.
6390 * linux-nat.c: Update.
6391 * mi/mi-interp.c: Update.
6395 2018-07-03 Tom Tromey <tom@tromey.com>
6397 * common/ptid.c (ptid_get_tid): Remove.
6398 * common/ptid.h (ptid_get_tid): Don't declare.
6399 * ada-tasks.c: Update.
6400 * aix-thread.c: Update.
6401 * bsd-uthread.c: Update.
6402 * darwin-nat.c: Update.
6403 * fbsd-nat.c: Update.
6404 * i386-darwin-nat.c: Update.
6406 * linux-tdep.c: Update.
6407 * nto-procfs.c: Update.
6408 * ppc-ravenscar-thread.c: Update.
6409 * python/py-infthread.c: Update.
6410 * ravenscar-thread.c: Update.
6411 * sol-thread.c: Update.
6412 * sparc-ravenscar-thread.c: Update.
6413 * windows-nat.c: Update.
6415 2018-07-03 Tom Tromey <tom@tromey.com>
6417 * common/ptid.c (ptid_get_lwp): Remove.
6418 * common/ptid.h (ptid_get_lwp): Don't declare.
6419 * aarch64-linux-nat.c: Update.
6420 * ada-tasks.c: Update.
6421 * aix-thread.c: Update.
6422 * amd64-linux-nat.c: Update.
6423 * arm-linux-nat.c: Update.
6424 * corelow.c: Update.
6425 * fbsd-nat.c: Update.
6426 * fbsd-tdep.c: Update.
6427 * gnu-nat.c: Update.
6428 * i386-cygwin-tdep.c: Update.
6429 * i386-gnu-nat.c: Update.
6430 * i386-linux-nat.c: Update.
6431 * ia64-linux-nat.c: Update.
6432 * inf-ptrace.c: Update.
6434 * linux-fork.c: Update.
6435 * linux-nat.c: Update.
6436 * linux-tdep.c: Update.
6437 * linux-thread-db.c: Update.
6438 * mips-linux-nat.c: Update.
6439 * nat/aarch64-linux-hw-point.c: Update.
6440 * nat/aarch64-linux.c: Update.
6441 * nat/linux-btrace.c: Update.
6442 * nat/linux-osdata.c: Update.
6443 * nat/linux-procfs.c: Update.
6444 * nat/x86-linux-dregs.c: Update.
6445 * obsd-nat.c: Update.
6446 * ppc-fbsd-nat.c: Update.
6447 * ppc-linux-nat.c: Update.
6449 * python/py-infthread.c: Update.
6450 * ravenscar-thread.c: Update.
6452 * s390-linux-nat.c: Update.
6453 * sol-thread.c: Update.
6454 * sol2-tdep.c: Update.
6455 * spu-linux-nat.c: Update.
6456 * x86-linux-nat.c: Update.
6457 * xtensa-linux-nat.c: Update.
6459 2018-07-03 Tom Tromey <tom@tromey.com>
6461 * common/ptid.c (ptid_get_pid): Remove.
6462 * common/ptid.h (ptid_get_pid): Don't declare.
6463 * aarch64-linux-nat.c: Update.
6464 * ada-lang.c: Update.
6465 * aix-thread.c: Update.
6466 * alpha-bsd-nat.c: Update.
6467 * amd64-fbsd-nat.c: Update.
6468 * amd64-linux-nat.c: Update.
6469 * arm-linux-nat.c: Update.
6470 * arm-nbsd-nat.c: Update.
6472 * break-catch-syscall.c: Update.
6473 * breakpoint.c: Update.
6474 * bsd-uthread.c: Update.
6475 * corelow.c: Update.
6477 * darwin-nat.c: Update.
6478 * fbsd-nat.c: Update.
6479 * fbsd-tdep.c: Update.
6481 * gnu-nat.c: Update.
6482 * hppa-nbsd-nat.c: Update.
6483 * hppa-obsd-nat.c: Update.
6484 * i386-fbsd-nat.c: Update.
6485 * ia64-linux-nat.c: Update.
6486 * inf-ptrace.c: Update.
6488 * inferior.c: Update.
6489 * inferior.h: Update.
6492 * linux-fork.c: Update.
6493 * linux-nat.c: Update.
6494 * linux-tdep.c: Update.
6495 * linux-thread-db.c: Update.
6496 * m68k-bsd-nat.c: Update.
6497 * mi/mi-interp.c: Update.
6498 * mi/mi-main.c: Update.
6499 * mips-linux-nat.c: Update.
6500 * mips-nbsd-nat.c: Update.
6501 * mips64-obsd-nat.c: Update.
6502 * nat/aarch64-linux-hw-point.c: Update.
6503 * nat/aarch64-linux.c: Update.
6504 * nat/linux-btrace.c: Update.
6505 * nat/linux-osdata.c: Update.
6506 * nat/linux-procfs.c: Update.
6507 * nat/x86-linux-dregs.c: Update.
6508 * nto-procfs.c: Update.
6509 * obsd-nat.c: Update.
6510 * ppc-linux-nat.c: Update.
6511 * ppc-nbsd-nat.c: Update.
6512 * ppc-obsd-nat.c: Update.
6513 * proc-service.c: Update.
6515 * python/py-inferior.c: Update.
6516 * python/py-infthread.c: Update.
6517 * ravenscar-thread.c: Update.
6519 * remote-sim.c: Update.
6521 * rs6000-nat.c: Update.
6522 * s390-linux-nat.c: Update.
6523 * sh-nbsd-nat.c: Update.
6524 * sol-thread.c: Update.
6525 * sparc-nat.c: Update.
6526 * sparc64-tdep.c: Update.
6527 * spu-linux-nat.c: Update.
6528 * spu-tdep.c: Update.
6529 * target-debug.h: Update.
6532 * tid-parse.c: Update.
6533 * tracefile-tfile.c: Update.
6534 * vax-bsd-nat.c: Update.
6535 * windows-nat.c: Update.
6536 * x86-linux-nat.c: Update.
6537 * x86-nat.c: Update.
6539 2018-07-03 Tom Tromey <tom@tromey.com>
6541 * common/ptid.c (pid_to_ptid): Remove.
6542 * common/ptid.h (pid_to_ptid): Don't declare.
6543 * aix-thread.c: Update.
6544 * arm-linux-nat.c: Update.
6545 * common/ptid.c: Update.
6546 * common/ptid.h: Update.
6547 * corelow.c: Update.
6549 * darwin-nat.c: Update.
6550 * fbsd-nat.c: Update.
6551 * fork-child.c: Update.
6552 * gnu-nat.c: Update.
6553 * go32-nat.c: Update.
6554 * inf-ptrace.c: Update.
6556 * inferior.c: Update.
6558 * linux-fork.c: Update.
6559 * linux-nat.c: Update.
6560 * nat/aarch64-linux-hw-point.c: Update.
6561 * nat/fork-inferior.c: Update.
6562 * nat/x86-linux-dregs.c: Update.
6563 * nto-procfs.c: Update.
6564 * obsd-nat.c: Update.
6566 * progspace.c: Update.
6568 * rs6000-nat.c: Update.
6569 * s390-linux-nat.c: Update.
6570 * sol-thread.c: Update.
6571 * spu-linux-nat.c: Update.
6574 * tracefile-tfile.c: Update.
6575 * windows-nat.c: Update.
6577 2018-07-03 Tom Tromey <tom@tromey.com>
6579 * common/ptid.h (ptid_build): Don't declare.
6580 * common/ptid.c (ptid_build): Remove.
6581 * aix-thread.c: Update.
6582 * bsd-kvm.c: Update.
6583 * bsd-uthread.c: Update.
6584 * common/agent.c: Update.
6585 * common/ptid.c: Update.
6586 * common/ptid.h: Update.
6587 * corelow.c: Update.
6588 * darwin-nat.c: Update.
6589 * fbsd-nat.c: Update.
6590 * gnu-nat.c: Update.
6591 * linux-fork.c: Update.
6592 * linux-nat.c: Update.
6593 * linux-thread-db.c: Update.
6594 * nat/linux-osdata.c: Update.
6595 * nat/linux-procfs.c: Update.
6596 * nto-procfs.c: Update.
6597 * obsd-nat.c: Update.
6598 * proc-service.c: Update.
6600 * ravenscar-thread.c: Update.
6601 * remote-sim.c: Update.
6603 * sol-thread.c: Update.
6605 * windows-nat.c: Update.
6607 2018-07-03 Tom Tromey <tom@tromey.com>
6609 * infrun.c (follow_exec): Use exit_inferior_silent.
6610 * inferior.c (exit_inferior_num_silent): Remove.
6611 * inferior.h (exit_inferior_num_silent): Don't declare.
6613 2018-07-03 Tom Tromey <tom@tromey.com>
6616 * darwin-nat.c (darwin_attach_pid): Reset inferior and
6617 inferior_ptid on error.
6619 2018-07-02 Maciej W. Rozycki <macro@mips.com>
6620 Simon Marchi <simon.marchi@polymtl.ca>
6623 * disasm.h (gdb_disassembler): Add
6624 `m_disassembler_options_holder'. member
6625 * disasm.c (get_all_disassembler_options): New function.
6626 (gdb_disassembler::gdb_disassembler): Use it.
6627 (gdb_buffered_insn_length_init_dis): Likewise.
6628 (gdb_buffered_insn_length): Adjust accordingly.
6629 (set_disassembler_options): Handle options with arguments.
6630 (show_disassembler_options_sfunc): Likewise. Add a leading new
6631 line if showing options with descriptions.
6632 (disassembler_options_completer): Adapt to using the
6633 `disasm_options_and_args_t' structure.
6634 * mips-tdep.c (mips_disassembler_options): New variable.
6635 (mips_disassembler_options_o32): Likewise.
6636 (mips_disassembler_options_n32): Likewise.
6637 (mips_disassembler_options_n64): Likewise.
6638 (gdb_print_insn_mips): Don't set `disassembler_options'.
6639 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
6641 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
6642 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
6643 `gdbarch_disassembler_options_implicit' and
6644 `gdbarch_valid_disassembler_options'.
6645 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
6646 `disasm_options_and_args_t' structure.
6647 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
6649 (valid_disassembler_options): Switch from `disasm_options_t' to
6650 the `disasm_options_and_args_t' structure.
6651 * NEWS: Document `set disassembler-options' support for the MIPS
6653 * gdbarch.h: Regenerate.
6654 * gdbarch.c: Regenerate.
6656 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
6658 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
6660 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6662 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
6663 parameter in call to amd64_target_description.
6664 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
6665 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
6666 (amd64fbsd_init_abi): Likewise.
6667 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6668 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6669 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6670 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
6672 2018-06-29 Pedro Alves <palves@redhat.com>
6674 * gdb/amd64-tdep.h (amd64_create_target_description): Add
6675 "segments" parameter.
6676 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
6677 (_initialize_amd64_tdep): Update call to
6678 amd64_create_target_description.
6679 (amd64_target_description): Add "segments" parameter. Adjust
6680 the implementation to use it.
6681 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
6682 call to amd64_create_target_description.
6683 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
6684 * gdb/arch/amd64.h (amd64_create_target_description): Add
6685 "segments" register.
6686 * gdb/arch/amd64.c (amd64_create_target_description): Add
6687 "segments" parameter. Call create_feature_i386_64bit_segments
6688 only if SEGMENTS is true.
6689 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
6690 call to amd64_create_target_description.
6692 2018-06-29 Pedro Alves <palves@redhat.com>
6694 * thread.c (thread_target_id_str): New, factored out from ...
6695 (print_thread_info_1): ... here. Use it to compute the max
6696 "Target Id" column width.
6698 2018-06-29 Pedro Alves <palves@redhat.com>
6700 * remote.c (remote_target::extra_thread_info): Delete
6701 'display_buf' and 'n' locals. from the cache, regardless of
6702 packet mechanims is in use. Use cache for qThreadExtra and qP
6705 2018-06-29 Pedro Alves <palves@redhat.com>
6707 * blockframe.c (find_pc_sect_containing_function): New function.
6708 * breakpoint.c (print_breakpoint_location): Don't call
6709 find_pc_sect_function.
6710 * linespec.c (create_sals_line_offset): Record the location's
6712 * linespec.c (convert_address_location_to_sals): Fill in sal's
6713 symbol with find_pc_sect_containing_function.
6714 * symtab.c (find_function_start_sal): Rename to ...
6715 (find_function_start_sal_1): ... this.
6716 (find_function_start_sal): Reimplement as wrapper around
6717 find_function_start_sal_1, and use
6718 find_pc_sect_containing_function to fill in the sal's symbol.
6719 (find_function_start_sal(symbol*, bool)): Adjust.
6720 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
6722 (find_pc_sect_containing_function): Declare.
6724 2018-06-29 Pedro Alves <palves@redhat.com>
6726 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
6727 true if the the location has no symbol.
6729 2018-06-28 Tom Tromey <tom@tromey.com>
6731 * NEWS: Mention --enable-codesign.
6732 * silent-rules.mk (ECHO_SIGN): New variable.
6733 * configure.ac: Add --enable-codesign.
6734 * configure: Rebuild.
6735 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
6736 (gdb$(EXEEXT)): Optionally invoke codesign.
6738 2018-06-28 Pedro Alves <palves@redhat.com>
6740 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
6742 (switch_to_thread_no_regs): Adjust comment.
6743 * infcmd.c (stop_pc): Delete.
6744 (post_create_inferior, info_program_command): Replace references
6745 to stop_pc with references to thread_info->suspend.stop_pc.
6746 * inferior.h (stop_pc): Delete declaration.
6747 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
6748 (handle_inferior_event_1, handle_signal_stop)
6749 (process_event_stop_test, keep_going_stepped_thread)
6750 (handle_step_into_function, handle_step_into_function_backward)
6751 (print_stop_location): Replace references to stop_pc with
6752 references to thread_info->suspend.stop_pc.
6753 (struct infcall_suspend_state) <stop_pc>: Delete field.
6754 (save_infcall_suspend_state, restore_infcall_suspend_state):
6755 Remove references to inf_stat->stop_pc.
6756 * linux-fork.c (fork_load_infrun_state): Likewise.
6757 * record-btrace.c (record_btrace_set_replay): Likewise.
6758 * record-full.c (record_full_goto_entry): Likewise.
6759 * remote.c (print_one_stopped_thread): Likewise.
6760 * target.c (target_resume): Extend comment.
6761 * thread.c (set_executing_thread): New.
6762 (set_executing): Use it.
6763 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
6764 Remove references to stop_pc.
6766 2018-06-28 Pedro Alves <palves@redhat.com>
6768 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
6769 Moving fetching stop_pc until after ecs->event_thread is refreshed.
6771 2018-06-28 Tom Tromey <tom@tromey.com>
6773 * coffread.c (coff_symfile_finish): Update.
6774 * xcoffread.c (xcoff_symfile_finish): Update.
6775 * elfread.c (elf_symfile_finish): Update.
6776 * symfile.h (dwarf2_free_objfile): Don't declare.
6777 * dwarf2read.c (_initialize_dwarf2_read): Use
6778 register_objfile_data_with_cleanup.
6779 (dwarf2_free_objfile): Now static. Change signature.
6781 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6783 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
6784 option "-o" to add-symbol-file-load to add an offset to each
6785 section's load address.
6786 * symfile.c (set_objfile_default_section_offset): New function.
6788 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6790 * symfile.c (add_symbol_file_command): Make sure that sections
6791 with the same name are sorted in the same order.
6793 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6795 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
6796 require the second argument. If omitted, load sections at the
6797 addresses specified in the file.
6799 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6801 * symfile.c (symbol_file_command, symbol_file_add_main_1)
6802 (_initialize_symfile): Add option "-o" to symbol-file to add an
6803 offset to each section of the symbol file.
6805 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6807 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
6809 2018-06-27 Tom Tromey <tom@tromey.com>
6811 * stack.c (_initialize_stack): Update "func" help text.
6813 2018-06-27 Tom Tromey <tom@tromey.com>
6815 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
6817 (unwind_infopy_str, pyuw_create_unwind_info)
6818 (unwind_infopy_add_saved_register, pyuw_sniffer)
6819 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
6821 (struct saved_reg): Add constructor.
6822 <value>: Now a gdbpy_ref<>.
6824 2018-06-27 Tom Tromey <tom@tromey.com>
6826 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
6828 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6830 * gdb-gdb.py.in: Format using autopep8.
6832 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6834 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
6835 (type_lookup_function): Recognize CORE_ADDR values.
6837 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6839 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
6842 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6844 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
6847 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6849 * gdb-gdb.py: Move to...
6850 * gdb-gdb.py.in: ... here.
6851 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
6852 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
6854 (distclean): Remove gdb-gdb.py when cleaning.
6855 (gdb-gdb.py, gdb-gdb.gdb): New rules.
6856 * configure: Re-generate.
6858 2018-06-27 Pedro Alves <palves@redhat.com>
6860 * proc-service.c (get_ps_regcache): New.
6861 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6862 (ps_lsetfpregs): Use it.
6864 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
6867 * dwarf2read.c (lnp_state_machine::check_line_address): Update
6869 (dwarf_decode_lines_1): Adjust.
6871 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6873 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
6875 <info_proc>: Likewise.
6877 2018-06-26 Joel Brobecker <brobecker@adacore.com>
6879 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
6880 to windows_fetch_one_register, and only handle the case of
6881 fetching one register. Move the code that reloads the context
6882 and iterates over all registers if R is negative to...
6883 (windows_nat_target::fetch_registers): ... here.
6884 (do_windows_store_inferior_registers): Rename to
6885 windows_store_one_register, and only handle the case of storing
6886 one register. Move the code that handles the case where r is
6888 (windows_nat_target::store_registers) ... here.
6890 2018-06-26 Tom Tromey <tom@tromey.com>
6893 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
6894 * rust-lang.c (rust_print_struct_def): Add podata parameter.
6896 (rust_internal_print_type): Add podata parameter.
6897 (rust_print_type): Update.
6899 2018-06-26 Tom Tromey <tom@tromey.com>
6901 * typeprint.h (struct print_offset_data) <update, finish,
6902 maybe_print_hole>: New methods.
6903 <indentation>: New constant.
6904 * typeprint.c (print_offset_data::indentation): Define.
6905 (print_offset_data::maybe_print_hole, print_offset_data::update)
6906 (print_offset_data::finish): Move from c-typeprint.c and rename.
6907 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
6908 (print_spaces_filtered_with_print_options): Update.
6909 (c_print_type_union_field_offset, maybe_print_hole)
6910 (c_print_type_struct_field_offset): Move to typeprint.c and
6912 (c_type_print_base_struct_union): Update.
6914 2018-06-25 Pedro Alves <palves@redhat.com>
6916 * gdbthread.h (thread_info_ref, delete_thread)
6917 (delete_thread_silent, first_thread_of_inferior)
6918 (any_thread_of_inferior, switch_to_thread)
6919 (enable_thread_stack_temporaries)
6920 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6921 (get_last_thread_stack_temporary)
6922 (value_in_thread_stack_temporaries, can_access_registers_thread):
6923 Spell out "struct thread_info" instead of just "thread_info".
6924 * inferior.h (notice_new_inferior): Likewise.
6926 2018-06-25 Pedro Alves <palves@redhat.com>
6928 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6929 pass thread_info pointer to delete_thread.
6930 (windows_nat_target::detach): Pass inferior pointer to
6932 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
6934 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
6935 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
6936 and pass a thread_info pointer to delete_thread.
6937 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
6938 pass thread_info pointer to delete_thread.
6939 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
6940 delete_thread_silent call.
6941 * procfs.c (procfs_target::detach): Pass inferior pointer to
6943 (procfs_target::wait): Pass thread_info pointer to delete_thread.
6944 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
6945 delete_thread_silent call.
6946 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6947 pass thread_info pointer to delete_thread.
6948 (windows_nat_target::detach): Pass inferior pointer to
6951 2018-06-22 Alan Hayward <alan.hayward@arm.com>
6953 * regcache.c (readable_regcache::read_part): Fix asserts.
6954 (reg_buffer::raw_collect_part): New function.
6955 (regcache::write_part): Fix asserts.
6956 (reg_buffer::raw_supply_part): New function.
6957 (regcache::transfer_regset_register): New helper function.
6958 (regcache::transfer_regset): Call new functions.
6959 (regcache_supply_regset): Use gdb_byte*.
6960 (regcache::supply_regset): Likewise.
6961 (regcache_collect_regset): Likewise.
6962 (regcache::collect_regset): Likewise.
6963 * regcache.h (reg_buffer::raw_collect_part): New declaration.
6964 (reg_buffer::raw_supply_part): Likewise.
6965 (regcache::transfer_regset_register): Likewise.
6966 (regcache::transfer_regset): Use gdb_byte*.
6968 2018-06-22 Alan Hayward <alan.hayward@arm.com>
6970 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
6972 2018-06-21 Pedro Alves <palves@redhat.com>
6974 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
6975 instead of a ptid_t. All callers adjusted.
6976 * ada-tasks.c (ada_get_task_number): Likewise. All callers
6978 (print_ada_task_info, display_current_task_id, task_command_1):
6980 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
6982 (breakpoint_kind): Adjust.
6983 (remove_breakpoints_pid): Rename to ...
6984 (remove_breakpoints_inf): ... this. Adjust to take an inferior
6985 pointer. All callers adjusted.
6986 (bpstat_clear_actions): Use inferior_thread.
6987 (get_bpstat_thread): New.
6988 (bpstat_do_actions): Use it.
6989 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
6990 to take a thread_info pointer. All callers adjusted.
6991 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
6992 (breakpoint_re_set_thread): Use inferior_thread.
6993 * breakpoint.h (struct inferior): Forward declare.
6994 (bpstat_stop_status): Update.
6995 (remove_breakpoints_pid): Delete.
6996 (remove_breakpoints_inf): New.
6997 * bsd-uthread.c (bsd_uthread_target::wait)
6998 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
6999 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
7000 (maint_btrace_packet_history_cmd)
7001 (maint_btrace_clear_packet_history_cmd): Adjust.
7002 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
7004 * cli/cli-interp.c: Include "inferior.h".
7005 * common/refcounted-object.h (struct
7006 refcounted_object_ref_policy): New.
7007 * compile/compile-object-load.c: Include gdbthread.h.
7008 (store_regs): Use inferior_thread.
7009 * corelow.c (core_target::close): Use current_inferior.
7010 (core_target_open): Adjust to use first_thread_of_inferior and use
7011 the current inferior.
7012 * ctf.c (ctf_target::close): Adjust to use current_inferior.
7013 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
7014 <thread>: ... this new field. All references adjusted.
7015 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
7016 Take a thread_info pointer instead of a ptid_t.
7017 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
7018 (dummy_frame_discard, register_dummy_frame_dtor): Take a
7019 thread_info pointer instead of a ptid_t.
7020 * elfread.c: Include "inferior.h".
7021 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
7022 Use inferior_thread.
7023 * eval.c (evaluate_subexp): Likewise.
7024 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
7026 * gdb_proc_service.h (struct thread_info): Forward declare.
7027 (struct ps_prochandle) <ptid>: Delete, replaced by ...
7028 <thread>: ... this new field. All references adjusted.
7029 * gdbarch.h, gdbarch.c: Regenerate.
7030 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
7031 'thread' parameter. All implementations and callers adjusted.
7032 * gdbthread.h (thread_info) <set_running>: New method.
7033 (delete_thread, delete_thread_silent): Take a thread_info pointer
7035 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
7036 (first_thread_of_process): Delete, replaced by ...
7037 (first_thread_of_inferior): ... this new function. All callers
7039 (any_live_thread_of_process): Delete, replaced by ...
7040 (any_live_thread_of_inferior): ... this new function. All callers
7042 (switch_to_thread, switch_to_no_thread): Declare.
7043 (is_executing): Delete.
7044 (enable_thread_stack_temporaries): Update comment.
7045 <enable_thread_stack_temporaries>: Take a thread_info pointer
7046 instead of a ptid_t. Incref the thread.
7047 <~enable_thread_stack_temporaries>: Decref the thread.
7050 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7051 (get_last_thread_stack_temporary)
7052 (value_in_thread_stack_temporaries, can_access_registers_thread):
7053 Take a thread_info pointer instead of a ptid_t. All callers
7055 * infcall.c (get_call_return_value): Use inferior_thread.
7056 (run_inferior_call): Work with thread pointers instead of ptid_t.
7057 (call_function_by_hand_dummy): Work with thread pointers instead
7058 of ptid_t. Use thread_info_ref.
7059 * infcmd.c (proceed_thread_callback): Access thread's state
7061 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
7062 access thread's state directly.
7063 (continue_command): Use inferior_thread.
7064 (info_program_command): Use find_thread_ptid and access thread
7066 (proceed_after_attach_callback): Use thread state directly.
7067 (notice_new_inferior): Take a thread_info pointer instead of a
7068 ptid_t. All callers adjusted.
7069 (exit_inferior): Take an inferior pointer instead of a pid. All
7071 (exit_inferior_silent): New.
7072 (detach_inferior): Delete.
7073 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
7074 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
7075 (detach_inferior_command, kill_inferior_command): Use
7076 find_inferior_id instead of valid_gdb_inferior_id and
7077 gdb_inferior_id_to_pid.
7078 (inferior_command): Use inferior and thread pointers.
7079 * inferior.h (struct thread_info): Forward declare.
7080 (notice_new_inferior): Take a thread_info pointer instead of a
7081 ptid_t. All callers adjusted.
7082 (detach_inferior): Delete declaration.
7083 (exit_inferior, exit_inferior_silent): Take an inferior pointer
7084 instead of a pid. All callers adjusted.
7085 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
7086 (valid_gdb_inferior_id): Delete.
7087 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
7088 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
7089 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
7091 <inf>: ... this new field.
7092 <step_ptid>: Delete, replaced by ...
7093 <step_thread>: ... this new field.
7094 (get_displaced_stepping_state): Take an inferior pointer instead
7095 of a pid. All callers adjusted.
7096 (displaced_step_in_progress_any_inferior): Adjust.
7097 (displaced_step_in_progress_thread): Take a thread pointer instead
7098 of a ptid_t. All callers adjusted.
7099 (displaced_step_in_progress, add_displaced_stepping_state): Take
7100 an inferior pointer instead of a pid. All callers adjusted.
7101 (get_displaced_step_closure_by_addr): Adjust.
7102 (remove_displaced_stepping_state): Take an inferior pointer
7103 instead of a pid. All callers adjusted.
7104 (displaced_step_prepare_throw, displaced_step_prepare)
7105 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
7106 All callers adjusted.
7107 (start_step_over): Adjust.
7108 (infrun_thread_ptid_changed): Remove bit updating ptids in the
7109 displaced step queue.
7110 (do_target_resume): Adjust.
7111 (fetch_inferior_event): Use inferior_thread.
7112 (context_switch, get_inferior_stop_soon): Take an
7113 execution_control_state pointer instead of a ptid_t. All callers
7115 (switch_to_thread_cleanup): Delete.
7116 (stop_all_threads): Use scoped_restore_current_thread.
7117 * inline-frame.c: Include "gdbthread.h".
7118 (inline_state) <inline_state>: Take a thread pointer instead of a
7119 ptid_t. All callers adjusted.
7120 <ptid>: Delete, replaced by ...
7121 <thread>: ... this new field.
7122 (find_inline_frame_state): Take a thread pointer instead of a
7123 ptid_t. All callers adjusted.
7124 (skip_inline_frames, step_into_inline_frame)
7125 (inline_skipped_frames, inline_skipped_symbol): Take a thread
7126 pointer instead of a ptid_t. All callers adjusted.
7127 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
7128 (inline_skipped_frames, inline_skipped_symbol): Likewise.
7129 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
7131 * linux-nat.c (get_detach_signal): Likewise.
7132 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
7133 (thread_db_notice_clone): Adjust.
7134 (thread_db_find_new_threads_silently)
7135 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
7136 a thread pointer instead of a ptid_t. All callers adjusted.
7137 * mi/mi-cmd-var.c: Include "inferior.h".
7138 (mi_cmd_var_update_iter): Update to use thread pointers.
7139 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
7141 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
7143 (mi_output_running): ... this new function.
7144 (mi_on_resume_1): Adjust to use it.
7145 (mi_user_selected_context_changed): Adjust to use inferior_thread.
7146 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
7148 (interrupt_thread_callback): : Adjust to use thread and inferior
7150 * proc-service.c: Include "gdbthread.h".
7151 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
7152 * progspace-and-thread.c: Include "inferior.h".
7153 * progspace.c: Include "inferior.h".
7154 * python/py-exitedevent.c (create_exited_event_object): Adjust to
7155 hold a reference to an inferior_object.
7156 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
7158 * python/py-inferior.c (struct inferior_object): Give the type a
7159 tag name instead of a typedef.
7160 (python_on_normal_stop): No need to check if the current thread is
7162 (inferior_to_inferior_object): Change return type to
7163 inferior_object. All callers adjusted.
7164 (find_thread_object): Delete, bits factored out to ...
7165 (thread_to_thread_object): ... this new function.
7166 * python/py-infthread.c (create_thread_object): Use
7167 inferior_to_inferior_object.
7168 (thpy_is_stopped): Use thread pointer directly.
7169 (gdbpy_selected_thread): Use inferior_thread.
7170 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
7171 field, replaced with ...
7172 <thread>: ... this new field. All users adjusted.
7173 (btpy_insn_or_gap_new): Drop const.
7174 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
7176 * python/py-record.c: Include "gdbthread.h".
7177 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7178 a ptid_t. All callers adjusted.
7179 (gdbpy_current_recording): Use inferior_thread.
7180 * python/py-record.h (recpy_record_object) <ptid>: Delete
7181 field, replaced with ...
7182 <thread>: ... this new field. All users adjusted.
7183 (recpy_element_object) <ptid>: Delete
7184 field, replaced with ...
7185 <thread>: ... this new field. All users adjusted.
7186 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7187 a ptid_t. All callers adjusted.
7188 * python/py-threadevent.c: Include "gdbthread.h".
7189 (get_event_thread): Use thread_to_thread_object.
7190 * python/python-internal.h (struct inferior_object): Forward
7192 (find_thread_object, find_inferior_object): Delete declarations.
7193 (thread_to_thread_object, inferior_to_inferior_object): New
7195 * record-btrace.c: Include "inferior.h".
7196 (require_btrace_thread): Use inferior_thread.
7197 (record_btrace_frame_sniffer)
7198 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
7199 (get_thread_current_frame): Use scoped_restore_current_thread and
7201 (get_thread_current_frame): Use thread pointer directly.
7202 (record_btrace_replay_at_breakpoint): Use thread's inferior
7204 * record-full.c: Include "inferior.h".
7205 * regcache.c: Include "gdbthread.h".
7206 (get_thread_arch_regcache): Use the inferior's address space
7208 (get_thread_regcache, registers_changed_thread): New.
7209 * regcache.h (get_thread_regcache(thread_info *thread)): New
7211 (registers_changed_thread): New.
7212 (remote_target) <remote_detach_1>: Swap order of parameters.
7213 (remote_add_thread): <remote_add_thread>: Return the new thread.
7214 (get_remote_thread_info(ptid_t)): New overload.
7215 (remote_target::remote_notice_new_inferior): Use thread pointers
7217 (remote_target::process_initial_stop_replies): Use
7218 thread_info::set_running.
7219 (remote_target::remote_detach_1, remote_target::detach)
7220 (extended_remote_target::detach): Adjust.
7221 * stack.c (frame_show_address): Use inferior_thread.
7222 * target-debug.h (target_debug_print_thread_info_pp): New.
7223 * target-delegates.c: Regenerate.
7224 * target.c (default_thread_address_space): Delete.
7225 (memory_xfer_partial_1): Use current_inferior.
7226 (target_detach): Use current_inferior.
7227 (target_thread_address_space): Delete.
7228 (generic_mourn_inferior): Use current_inferior.
7229 * target.h (struct target_ops) <thread_address_space>: Delete.
7230 (target_thread_address_space): Delete.
7231 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
7233 (delete_thread_1, delete_thread, delete_thread_silent): Take a
7234 thread pointer instead of a ptid_t. Adjust all callers.
7235 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
7236 (first_thread_of_process): Delete, replaced by ...
7237 (first_thread_of_inferior): ... this new function. All callers
7239 (any_thread_of_process): Rename to ...
7240 (any_thread_of_inferior): ... this, and take an inferior pointer.
7241 (any_live_thread_of_process): Rename to ...
7242 (any_live_thread_of_inferior): ... this, and take an inferior
7244 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7245 (value_in_thread_stack_temporaries)
7246 (get_last_thread_stack_temporary): Take a thread pointer instead
7247 of a ptid_t. Adjust all callers.
7248 (thread_info::set_running): New.
7249 (validate_registers_access): Use inferior_thread.
7250 (can_access_registers_ptid): Rename to ...
7251 (can_access_registers_thread): ... this, and take a thread
7253 (print_thread_info_1): Adjust to compare thread pointers instead
7255 (switch_to_no_thread, switch_to_thread): Make extern.
7256 (scoped_restore_current_thread::~scoped_restore_current_thread):
7257 Use m_thread pointer directly.
7258 (scoped_restore_current_thread::scoped_restore_current_thread):
7259 Use inferior_thread.
7260 (thread_command): Use thread pointer directly.
7261 (thread_num_make_value_helper): Use inferior_thread.
7262 * top.c (execute_command): Use inferior_thread.
7263 * tui/tui-interp.c: Include "inferior.h".
7264 * varobj.c (varobj_create): Use inferior_thread.
7265 (value_of_root_1): Use find_thread_global_id instead of
7266 global_thread_id_to_ptid.
7268 2018-06-21 Alan Hayward <alan.hayward@arm.com>
7270 * regcache.c (readable_regcache::read_part): Avoid memcpy when
7272 (regcache::write_part): Likewise.
7273 (readable_regcache::cooked_read_part): Update comment.
7274 (readable_regcache::cooked_write_part): Likewise.
7275 * regcache.h: (readable_regcache::read_part): Likewise.
7276 (regcache::write_part): Likewise.
7278 2018-06-21 Richard Bunt <richard.bunt@arm.com>
7279 Dirk Schubert <dirk.schubert@arm.com>
7281 * aarch64-linux-nat.c (post_attach): New.
7282 (aarch64_linux_nat_target::post_attach): Override post_attach to
7283 record the number of hardware debug registers.
7285 2018-06-20 Tom Tromey <tom@tromey.com>
7287 * python/py-param.c (add_setshow_generic): Make parameters const.
7288 (parmpy_init): Update.
7290 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7292 * regcache.h (regcache_cooked_read_ftype): Rename to...
7293 (register_read_ftype): ...this, change type to function_view.
7294 (class reg_buffer) <save>: Remove src parameter.
7295 (readonly_detached_regcache) <readonly_detached_regcache>: Make
7296 parameter non-const in first overload. Remove src parameter in
7298 * regcache.c (do_cooked_read): Remove.
7299 (readonly_detached_regcache::readonly_detached_regcache): Make
7300 parameter non-const, adjust call to other constructor.
7301 (reg_buffer::save): Remove src parameter.
7302 * frame.c (do_frame_register_read): Remove.
7303 (frame_save_as_regcache): Use lambda function.
7304 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
7305 parameter to ppu2spu_data *.
7306 (ppu2spu_sniffer): Use lambda function.
7308 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7310 * record-full.c (record_full_target::insert_breakpoint): Remove
7311 "struct" keyword, add const.
7313 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
7315 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
7316 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
7317 * configure.ac: Remove AC_PREREQ, add missing quoting.
7318 * gnulib/configure.ac: Modernize usage of
7319 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
7320 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
7321 (AUTOMAKE_VERSION): Bump to 1.15.1.
7322 * configure: Re-generate.
7323 * config.in: Re-generate.
7324 * aclocal.m4: Re-generate.
7325 * gnulib/aclocal.m4: Re-generate.
7326 * gnulib/config.in: Re-generate.
7327 * gnulib/configure: Re-generate.
7328 * gnulib/import/Makefile.in: Re-generate.
7330 2018-06-19 Pedro Alves <palves@redhat.com>
7332 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
7333 (lookup_minimal_symbol_by_pc_section): ... here with
7334 gdb_assert_not_reached added.
7336 2018-06-19 Pedro Alves <palves@redhat.com>
7338 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
7339 parameter with a block parameter. Compare location's block symbol
7340 with the frame's block instead of addresses.
7341 (skip_inline_frames): Pass the current block instead of the
7342 frame's address. Break out as soon as we determine the frame
7343 should not be skipped.
7345 2018-06-18 Tom Tromey <tom@tromey.com>
7347 * solib-aix.c (solib_aix_get_section_offsets): Return
7349 (solib_aix_solib_create_inferior_hook): Update.
7351 2018-06-18 Tom Tromey <tom@tromey.com>
7353 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
7355 2018-06-18 Tom Tromey <tom@tromey.com>
7357 * solib-frv.c (frv_relocate_main_executable): Use
7359 * solib-dsbt.c (dsbt_relocate_main_executable): Use
7362 2018-06-18 Tom Tromey <tom@tromey.com>
7364 * objfiles.h (inhibit_section_map_updates): Update.
7365 (resume_section_map_updates, resume_section_map_updates_cleanup):
7367 * solib-svr4.c (svr4_handle_solib_event): Update.
7368 * objfiles.c (inhibit_section_map_updates): Return
7369 scoped_restore_tmpl<int>.
7370 (resume_section_map_updates, resume_section_map_updates_cleanup):
7373 2018-06-18 Tom Tromey <tom@tromey.com>
7375 * valprint.h (read_string): Update.
7376 * valprint.c (read_string): Change type of "buffer".
7377 (val_print_string): Update.
7378 * python/py-value.c (valpy_string): Update.
7379 * language.h (struct language_defn) <la_get_string>: Change
7381 (default_get_string, c_get_string): Update.
7382 * language.c (default_get_string): Change type of "buffer".
7383 * guile/scm-value.c (gdbscm_value_to_string): Update.
7384 * c-lang.c (c_get_string): Change type of "buffer".
7386 2018-06-18 Tom Tromey <tom@tromey.com>
7388 * ser-mingw.c (struct pipe_state_destroyer): New.
7389 (pipe_state_up): New typedef.
7390 (cleanup_pipe_state): Remove.
7391 (pipe_windows_open): Use pipe_state_up. Don't release argv.
7393 2018-06-18 Tom Tromey <tom@tromey.com>
7395 * rust-lang.h (rust_yyerror): Don't declare.
7396 * rust-lang.c (rust_language_defn): Update.
7397 * rust-exp.y (yyerror): Now static.
7398 * parse.c (parse_exp_in_context_1): Update.
7399 * p-lang.h (p_yyerror): Don't declare.
7400 * p-lang.c (p_language_defn): Update.
7401 * p-exp.y (yyerror): Now static.
7402 * opencl-lang.c (opencl_language_defn): Update.
7403 * objc-lang.c (objc_language_defn): Update.
7404 * m2-lang.h (m2_yyerror): Don't declare.
7405 * m2-lang.c (m2_language_defn): Update.
7406 * m2-exp.y (yyerror): Now static.
7407 * language.h (struct language_defn) <la_error>: Remove.
7408 * language.c (unk_lang_error): Remove.
7409 (unknown_language_defn, auto_language_defn): Remove.
7410 * go-lang.h (go_yyerror): Don't declare.
7411 * go-lang.c (go_language_defn): Update.
7412 * go-exp.y (yyerror): Now static.
7413 * f-lang.h (f_yyerror): Don't declare.
7414 * f-lang.c (f_language_defn): Update.
7415 * f-exp.y (yyerror): Now static.
7416 * d-lang.h (d_yyerror): Don't declare.
7417 * d-lang.c (d_language_defn): Update.
7418 * d-exp.y (yyerror): Now static.
7419 * c-lang.h (c_yyerror): Don't declare.
7420 * c-lang.c (c_language_defn, cplus_language_defn)
7421 (asm_language_defn, minimal_language_defn): Update.
7422 * c-exp.y (yyerror): Now static.
7423 * ada-lang.h (ada_yyerror): Don't declare.
7424 * ada-lang.c (ada_language_defn): Update.
7425 * ada-exp.y (yyerror): Now static.
7427 2018-06-18 Alan Hayward <alan.hayward@arm.com>
7429 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
7430 (store_sveregs_to_thread): Likewise.
7431 (aarch64_linux_fetch_inferior_registers): Check for SVE.
7432 (aarch64_linux_store_inferior_registers): Likewise.
7433 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
7435 (aarch64_sve_regs_copy_to_regcache): Likewise.
7436 (aarch64_sve_regs_copy_from_regcache): Likewise.
7437 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
7439 (aarch64_sve_regs_copy_to_regcache): Likewise.
7440 (aarch64_sve_regs_copy_from_regcache): Likewise.
7441 (sve_context): Structure from Linux headers.
7442 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
7443 (SVE_SIG_ZREG_SIZE): Likewise.
7444 (SVE_SIG_PREG_SIZE): Likewise.
7445 (SVE_SIG_FFR_SIZE): Likewise.
7446 (SVE_SIG_REGS_OFFSET): Likewise.
7447 (SVE_SIG_ZREGS_OFFSET): Likewise.
7448 (SVE_SIG_ZREG_OFFSET): Likewise.
7449 (SVE_SIG_ZREGS_SIZE): Likewise.
7450 (SVE_SIG_PREGS_OFFSET): Likewise.
7451 (SVE_SIG_PREG_OFFSET): Likewise.
7452 (SVE_SIG_PREGS_SIZE): Likewise.
7453 (SVE_SIG_FFR_OFFSET): Likewise.
7454 (SVE_SIG_REGS_SIZE): Likewise.
7455 (SVE_SIG_CONTEXT_SIZE): Likewise.
7456 (SVE_PT_REGS_MASK): Likewise.
7457 (SVE_PT_REGS_FPSIMD): Likewise.
7458 (SVE_PT_REGS_SVE): Likewise.
7459 (SVE_PT_VL_INHERIT): Likewise.
7460 (SVE_PT_VL_ONEXEC): Likewise.
7461 (SVE_PT_REGS_OFFSET): Likewise.
7462 (SVE_PT_FPSIMD_OFFSET): Likewise.
7463 (SVE_PT_FPSIMD_SIZE): Likewise.
7464 (SVE_PT_SVE_ZREG_SIZE): Likewise.
7465 (SVE_PT_SVE_PREG_SIZE): Likewise.
7466 (SVE_PT_SVE_FFR_SIZE): Likewise.
7467 (SVE_PT_SVE_FPSR_SIZE): Likewise.
7468 (SVE_PT_SVE_FPCR_SIZE): Likewise.
7469 (__SVE_SIG_TO_PT): Likewise.
7470 (SVE_PT_SVE_OFFSET): Likewise.
7471 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
7472 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
7473 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
7474 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
7475 (SVE_PT_SVE_PREG_OFFSET): Likewise.
7476 (SVE_PT_SVE_PREGS_SIZE): Likewise.
7477 (SVE_PT_SVE_FFR_OFFSET): Likewise.
7478 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
7479 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
7480 (SVE_PT_SVE_SIZE): Likewise.
7481 (SVE_PT_SIZE): Likewise.
7482 (HAS_SVE_STATE): New define.
7484 2018-06-18 Alan Hayward <alan.hayward@arm.com>
7486 * nat/aarch64-sve-linux-sigcontext.h: New file.
7487 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
7489 (SVE_VQ_MIN): Likewise.
7490 (SVE_VQ_MAX): Likewise.
7491 (SVE_VL_MIN): Likewise.
7492 (SVE_VL_MAX): Likewise.
7493 (SVE_NUM_ZREGS): Likewise.
7494 (SVE_NUM_PREGS): Likewise.
7495 (sve_vl_valid): Likewise.
7496 (struct user_sve_header): Likewise.
7498 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7499 Richard Bunt <Richard.Bunt@arm.com>
7501 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
7502 was requested by GDB.
7504 2018-06-15 Tom de Vries <tdevries@suse.de>
7506 * MAINTAINERS (Write After Approval): Add Tom de Vries.
7508 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
7510 * gnulib/update-gnulib.sh: Print expected versions of
7513 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
7515 * arch-utils.c (default_type_align): Use type_length_units.
7516 * gdbtypes.c (type_align): Use type_length_units.
7518 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7520 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
7521 of 'define' command.
7523 2018-06-14 Tom de Vries <tdevries@suse.de>
7526 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
7527 get_no_prettyformat_print_options.
7529 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
7531 * sparc-nat.h: Include target.h.
7532 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
7533 <fetch_registers>: Remove this argument in function call.
7534 <store_registers>: Remove this argument in function call, remove
7536 <low_forget_process>: Call sparc64_forget_process instead of
7537 sparc_forget_process.
7539 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7541 * procfs.c (_initialize_procfs): Use add_inf_child_target.
7542 (procfs_target::make_corefile_notes): Adjust to new
7543 target_read_alloc return type.
7545 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7546 Stephen Roberts <stephen.roberts@arm.com>
7549 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
7550 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
7551 Move should_notify_stop local into more inner scope.
7553 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7554 Stephen Roberts <stephen.roberts@arm.com>
7557 * infrun.c (resume_1): Add call to mark_async_event_handler.
7559 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7561 * infrun.c (do_target_wait): Change old version of $pc printed.
7563 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
7565 * dwarf2read.c (read_index_from_section): Rename to...
7566 (read_gdb_index_from_section): ... this, update all callers.
7567 (dwarf2_read_index): Rename to...
7568 (dwarf2_read_gdb_index): ... this, update all callers.
7570 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
7573 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
7574 hppa_linux_nat_target::fetch_registers.
7576 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7578 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
7579 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
7580 (AARCH64_DWARF_SVE_FFR): Likewise.
7581 (AARCH64_DWARF_SVE_P0): Likewise.
7582 (AARCH64_DWARF_SVE_Z0): Likewise.
7584 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7586 * common/common-regcache.h (raw_compare): New function.
7587 * regcache.c (regcache::raw_compare): Likewise.
7588 * regcache.h (regcache::raw_compare): New declaration.
7590 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7592 * common/common-regcache.h (reg_buffer_common): New structure.
7593 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
7594 (reg_buffer::raw_supply): Likewise.
7595 (reg_buffer::raw_supply_integer): Likewise.
7596 (reg_buffer::raw_supply_zeroed): Likewise.
7597 (reg_buffer::raw_collect): Likewise.
7598 (reg_buffer::raw_collect_integer): Likewise.
7599 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
7600 (reg_buffer::raw_supply): Likewise.
7601 (reg_buffer::raw_supply_integer): Likewise.
7602 (reg_buffer::raw_supply_zeroed): Likewise.
7603 (reg_buffer::raw_collect): Likewise.
7604 (reg_buffer::raw_collect_integer): Likewise.
7606 2018-06-10 Tom Tromey <tom@tromey.com>
7608 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
7609 (class remote_state) <stop_reply_queue>: Now std::vector.
7610 (remote_state::~remote_state)
7611 (remote_target::stop_reply_queue_length): Update.
7612 (struct queue_iter_param, remove_child_of_pending_fork)
7613 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
7614 (check_pending_event_prevents_wildcard_vcont_callback)
7615 (remove_stop_reply_for_inferior)
7616 (remove_stop_reply_of_remote_state)
7617 (remote_notif_remove_once_on_match)
7618 (stop_reply_match_ptid_and_ws)
7619 (remote_kill_child_of_pending_fork): Remove.
7620 (remote_target::remove_new_fork_children)
7621 (remote_target::check_pending_events_prevent_wildcard_vcont)
7622 (remote_target::discard_pending_stop_replies)
7623 (remote_target::discard_pending_stop_replies_in_queue)
7624 (remote_target::remote_notif_remove_queued_reply)
7625 (remote_target::queued_stop_reply)
7626 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
7627 (remote_target::wait, remote_target::kill_new_fork_children)
7628 (remote_target::async): Update.
7630 2018-06-10 Tom Tromey <tom@tromey.com>
7632 * record-full.c (record_full_arch_list_cleanups): Remove.
7633 (record_full_message): Use try/catch.
7634 (record_full_wait_cleanups): Remove.
7635 (record_full_wait_1): Use try/catch.
7636 (record_full_restore): Likewise.
7638 2018-06-10 Tom Tromey <tom@tromey.com>
7640 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
7641 declare VEC. Add constructor.
7642 <in_target_beneath>: Now bool.
7643 (record_full_breakpoints): Now a std::vector, static.
7644 (record_full_sync_record_breakpoints)
7645 (record_full_init_record_breakpoints)
7646 (record_full_target::insert_breakpoint)
7647 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
7649 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7651 * dwarf2read.c (process_cu_includes): Remove struct keyword.
7652 * serial.c (serial_interface_lookup): Remove struct keyword.
7654 2018-06-10 Tom Tromey <tom@tromey.com>
7656 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
7658 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
7660 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
7662 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
7663 "beneath" as a method.
7664 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
7665 Use "beneath" as a method.
7667 2018-06-10 Tom Tromey <tom@tromey.com>
7669 * tracefile.c (struct trace_file_writer_deleter): New.
7670 <operator()>: Rename from trace_file_writer_xfree.
7671 (trace_file_writer_up): New typedef.
7672 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
7674 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7676 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
7677 <m_registers, m_register_status>: Change type to
7679 * regcache.c (reg_buffer::reg_buffer): Use new instead of
7682 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7684 * common/common-regcache.h (enum register_status): Add
7685 underlying type "signed char".
7686 * regcache.h (reg_buffer) <m_register_status>: Change type to
7688 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
7689 register_status instead of signed char.
7690 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
7691 (reg_buffer::get_register_status): Remove cast.
7692 (readable_regcache::raw_read): Remove cast.
7693 (readable_regcache::cooked_read): Remove cast.
7695 2018-06-09 Tom Tromey <tom@tromey.com>
7697 * source.c (reverse_search_command, forward_search_command): Use
7700 2018-06-09 Tom Tromey <tom@tromey.com>
7702 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
7703 (serial_ops_list): Now static, std::vector.
7704 (serial_interface_lookup, serial_add_interface): Update.
7706 2018-06-09 Tom Tromey <tom@tromey.com>
7708 * dwarf2read.c (process_cu_includes): Update.
7709 (process_full_comp_unit): Update.
7710 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
7713 2018-06-08 Paul Koning <paul_koning@dell.com>
7717 * python/python.c (do_start_initialization):
7718 Avoid call to internal Python API.
7719 (init__gdb_module): New function.
7721 2018-06-08 Gary Benson <gbenson@redhat.com>
7723 * linux-thread-db.c (valprint.h): New include.
7724 (struct check_thread_db_info): New structure.
7725 (check_thread_db_on_load, tdb_testinfo): New static globals.
7726 (check_thread_db, check_thread_db_callback): New functions.
7727 (try_thread_db_load_1): Run integrity checks if requested.
7728 (maintenance_check_libthread_db): New function.
7729 (_initialize_thread_db): Register "maint check libthread-db"
7730 and "maint set/show check-libthread-db".
7731 * NEWS: Mention the above new commands.
7733 2018-06-08 Tom Tromey <tom@tromey.com>
7735 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
7738 2018-06-08 Tom Tromey <tom@tromey.com>
7740 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
7742 2018-06-08 Tom Tromey <tom@tromey.com>
7744 * common/btrace-common.h (struct btrace_data): Add constructor,
7745 destructor, move assignment operator.
7746 <empty, clear, fini>: New methods.
7747 <format>: Initialize.
7748 (btrace_data_init, btrace_data_fini, btrace_data_clear)
7749 (btrace_data_empty): Don't declare.
7750 * common/btrace-common.c (btrace_data_init): Remove.
7751 (btrace_data::fini): Rename from btrace_data_fini.
7752 (btrace_data::empty): Rename from btrace_data_empty.
7753 (btrace_data::clear): Rename from btrace_data_clear. Return
7755 * btrace.h (make_cleanup_btrace_data): Don't declare.
7756 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
7757 (parse_xml_btrace): Update.
7758 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
7759 (maint_btrace_clear_packet_history_cmd): Update.
7761 2018-06-07 Pedro Alves <palves@redhat.com>
7763 * target.h (target_ops) <beneath>: Now a method. All references
7765 (class target_stack): New.
7766 * target.c (g_target_stack): New.
7767 (g_current_top_target): Delete.
7768 (current_top_target): Get the top target out of g_target_stack.
7769 (target_stack::push, target_stack::unpush): New.
7770 (push_target, unpush_target): Reimplement.
7771 (target_is_pushed): Reimplement in terms of g_target_stack.
7772 (target_ops::beneath, target_stack::find_beneath): New.
7774 2018-06-07 Pedro Alves <palves@redhat.com>
7776 * target.h (find_target_beneath): Delete declaration.
7777 * target.c (find_target_beneath): Delete definition.
7778 * aix-thread.c: All callers of find_target_beneath adjusted to
7779 call target_ops::beneath instead.
7780 * bsd-uthread.c: Likewise.
7781 * linux-thread-db.c: Likewise.
7782 * ravenscar-thread.c: Likewise.
7783 * sol-thread.c: Likewise.
7784 * spu-multiarch.c: Likewise.
7786 2018-06-07 Pedro Alves <palves@redhat.com>
7788 * target.h (target_ops) <beneath>: Now a method. All references
7790 (target_ops) <m_beneath>: New.
7791 * target.c (target_ops::beneath): New.
7792 * corelow.c: Adjust all references to target_ops::beneath.
7793 * linux-thread-db.c: Likewise.
7794 * make-target-delegates: Likewise.
7795 * record-btrace.c: Likewise.
7796 * record-full.c: Likewise.
7797 * remote.c: Likewise.
7798 * target.c: Likewise.
7799 * target-delegates.c: Regenerate.
7801 2018-06-07 Pedro Alves <palves@redhat.com>
7803 * target.h (target_stack): Delete.
7804 (current_top_target): Declare function.
7805 * target.c (target_stack): Delete.
7806 (g_current_top_target): New.
7807 (current_top_target): New function.
7808 * auxv.c: Use current_top_target instead of target_stack
7810 * avr-tdep.c: Likewise.
7811 * breakpoint.c: Likewise.
7812 * corefile.c: Likewise.
7813 * elfread.c: Likewise.
7815 * exceptions.c: Likewise.
7816 * frame.c: Likewise.
7817 * gdbarch-selftests.c: Likewise.
7818 * gnu-v3-abi.c: Likewise.
7819 * ia64-tdep.c: Likewise.
7820 * ia64-vms-tdep.c: Likewise.
7821 * infcall.c: Likewise.
7822 * infcmd.c: Likewise.
7823 * infrun.c: Likewise.
7824 * linespec.c: Likewise.
7825 * linux-tdep.c: Likewise.
7826 * minsyms.c: Likewise.
7827 * ppc-linux-nat.c: Likewise.
7828 * ppc-linux-tdep.c: Likewise.
7829 * procfs.c: Likewise.
7830 * regcache.c: Likewise.
7831 * remote.c: Likewise.
7832 * rs6000-tdep.c: Likewise.
7833 * s390-linux-nat.c: Likewise.
7834 * s390-tdep.c: Likewise.
7835 * solib-aix.c: Likewise.
7836 * solib-darwin.c: Likewise.
7837 * solib-dsbt.c: Likewise.
7838 * solib-spu.c: Likewise.
7839 * solib-svr4.c: Likewise.
7840 * solib-target.c: Likewise.
7841 * sparc-tdep.c: Likewise.
7842 * sparc64-tdep.c: Likewise.
7843 * spu-tdep.c: Likewise.
7844 * symfile.c: Likewise.
7845 * symtab.c: Likewise.
7846 * target-descriptions.c: Likewise.
7847 * target-memory.c: Likewise.
7848 * target.c: Likewise.
7849 * target.h: Likewise.
7850 * tracefile-tfile.c: Likewise.
7851 * tracepoint.c: Likewise.
7852 * valops.c: Likewise.
7853 * valprint.c: Likewise.
7854 * value.c: Likewise.
7855 * windows-tdep.c: Likewise.
7856 * mi/mi-main.c: Likewise.
7858 2018-06-07 Tom Tromey <tom@tromey.com>
7860 * valprint.h (build_address_symbolic): Declare.
7861 * printcmd.c (print_address_symbolic): Update.
7862 (build_address_symbolic): Change "name" and "filename" to
7864 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7866 * defs.h (build_address_symbolic): Remove declaration.
7868 2018-06-07 Alan Hayward <alan.hayward@arm.com>
7870 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
7871 (aarch64_vnv_type): Add function.
7872 (aarch64_pseudo_register_name): Add V regs for SVE.
7873 (aarch64_pseudo_register_type): Likewise.
7874 (aarch64_pseudo_register_reggroup_p): Likewise.
7875 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
7876 (aarch64_pseudo_read_value): Add V regs for SVE.
7877 (aarch64_pseudo_write_2): Use V0 offset for SVE
7878 (aarch64_pseudo_write): Add V regs for SVE.
7879 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
7881 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
7883 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
7884 (sve_vl_from_vq): Likewise.
7886 2018-06-05 Tom Tromey <tom@tromey.com>
7888 * cli/cli-cmds.c (show_version): Update.
7889 * top.c (print_gdb_version): Add "interactive" parameter.
7891 * main.c (captured_main_1): Update.
7892 * top.h (print_gdb_version): Add "interactive" parameter and a
7895 2018-06-05 David Malcolm <dmalcolm@redhat.com>
7897 * common/enum-flags.h: Add trailing semicolon to example in
7900 2018-06-05 Tom Tromey <tom@tromey.com>
7903 * NEWS: Add entry about pager.
7904 * utils.c (pagination_disabled_for_command): New global.
7905 (prompt_for_continue): Allow "c" response to prompt.
7906 (reinitialize_more_filter): Clear
7907 pagination_disabled_for_command.
7908 (fputs_maybe_filtered): Check pagination_disabled_for_command.
7910 2018-06-04 Tom Tromey <tom@tromey.com>
7912 * ada-lang.h (ada_lookup_symbol_list): Update.
7913 * ada-lang.c (resolve_subexp): Update.
7914 (symbols_are_identical_enums): Change type of syms. Remove nsyms
7916 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
7917 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
7918 results parameter to std::vector.
7919 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
7921 * ada-exp.y (block_lookup): Update.
7922 (select_possible_type_sym): Change type of syms. Remove nsyms
7924 (write_var_or_type, write_name_assoc): Update.
7926 2018-06-04 Joel Brobecker <brobecker@adacore.com>
7928 * windows-nat.c (windows_nat_target::xfer_partial): Return
7929 TARGET_XFER_E_IO if we need to delegate to the target beneath
7930 but BENEATH is NULL.
7932 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
7934 * Makefile.in (config.status): Add configure.nat as a
7937 2018-06-04 Tom Tromey <tom@tromey.com>
7939 * cp-name-parser.y (cpname_state): Add method declarations.
7940 (HANDLE_QUAL): Update.
7941 (cpname_state::d_grab, cpname_state::fill_comp)
7942 (cpname_state::make_operator, cpname_state::make_dtor)
7943 (cpname_state::make_builtin_type, cpname_state::make_name)
7944 (cpname_state::d_qualify, cpname_state::d_int_type)
7945 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
7946 (%union): Move earlier.
7948 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7950 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
7952 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7954 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
7955 (aarch64_pseudo_write_1): Likewise.
7956 (aarch64_pseudo_read_value): Use helper.
7957 (aarch64_pseudo_write): Likewise.
7959 2018-06-04 Pedro Alves <palves@redhat.com>
7961 * darwin-nat.c (darwin_ops): Delete.
7962 (darwin_attach_pid): Use get_native_target.
7964 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7966 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
7967 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
7969 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7971 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
7972 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
7973 (aarch64_gdbarch_init): Check for SVE.
7974 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
7976 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7978 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
7979 * aarch64-tdep.h (aarch64_read_description): Likewise.
7980 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7981 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7982 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
7983 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
7984 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
7986 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
7988 * value.c (value_fetch_lazy_bitfield): New.
7989 (value_fetch_lazy_memory): New.
7990 (value_fetch_lazy_register): New.
7991 (value_fetch_lazy): Factor out to smaller functions.
7993 2018-06-01 Tom Tromey <tom@tromey.com>
7995 * cp-name-parser.y (backslashable, represented): Now const.
7997 2018-06-01 Tom Tromey <tom@tromey.com>
7999 * cp-name-parser.y: Include parser-defs.h.
8000 (parser_fprintf): Remove declaration.
8002 2018-06-01 Tom Tromey <tom@tromey.com>
8004 * cp-name-parser.y: Use %pure-parser, %lex-param, and
8006 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
8007 (global_result): Remove globals.
8008 (struct cpname_state): New.
8009 (yyparse): Don't declare.
8010 (yylex, yyerror): Move declarations after %union.
8011 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
8012 (make_name): Add state parameter.
8014 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
8016 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
8018 (yylex): Add lvalp, state parameters.
8019 (yyerror): Add state parameter.
8020 (cp_demangled_name_to_comp): Update.
8022 2018-06-01 Tom Tromey <tom@tromey.com>
8024 * cp-name-parser.y (parser_fprintf): Declare.
8025 (GDB_YY_REMAP_PREFIX): Define.
8026 Include yy-remap.h. Don't redefine yy* identifiers.
8028 2018-06-01 Tom Tromey <tom@tromey.com>
8030 * python/py-type.c (typy_legacy_template_argument): Update.
8031 * cp-support.h (cp_demangled_name_to_comp): Update.
8032 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
8033 parameter to be a "std::string *".
8036 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
8038 * ada-lex.l: Include "diagnostics.h" instead of
8039 "common/diagnostics.h".
8040 * unittests/environ-selftests.c: Likewise.
8041 * common/diagnostics.h: Moved to ../include.
8043 2018-06-01 Joel Brobecker <brobecker@adacore.com>
8045 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
8046 to language_mode_manual while calling breakpoint_re_set_one.
8048 2018-06-01 Tom Tromey <tom@tromey.com>
8050 * valops.c (value_cast_structs, destructor_name_p): Update.
8051 * symtab.c (gdb_mangle_name): Update.
8052 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
8054 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
8055 (pascal_object_print_value_fields, pascal_object_print_value):
8057 * p-typeprint.c (pascal_type_print_derivation_info): Update.
8058 * linespec.c (find_methods): Update.
8059 * gdbtypes.h (type_name_no_tag): Remove.
8060 (type_name_or_error): Rename from type_name_no_tag_or_error.
8061 * gdbtypes.c (type_name_no_tag): Remove.
8062 (type_name_or_error): Rename from type_name_no_tag_or_error.
8063 (lookup_struct_elt_type, check_typedef): Update.
8064 * expprint.c (print_subexp_standard): Update.
8065 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
8066 * d-namespace.c (d_lookup_nested_symbol): Update.
8067 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
8068 (cp_print_class_member): Update.
8069 * cp-namespace.c (cp_lookup_nested_symbol): Update.
8070 * completer.c (add_struct_fields): Update.
8071 * c-typeprint.c (cp_type_print_derivation_info)
8072 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
8074 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
8075 (ada_prefer_type, ada_is_exception_sym): Update.
8077 2018-06-01 Tom Tromey <tom@tromey.com>
8079 * valops.c (enum_constant_from_type, value_namespace_elt)
8080 (value_maybe_namespace_elt): Update.
8081 * valarith.c (find_size_for_pointer_math): Update.
8082 * target-descriptions.c (make_gdb_type): Update.
8083 * symmisc.c (print_symbol): Update.
8084 * stabsread.c (define_symbol, read_type)
8085 (complain_about_struct_wipeout, add_undefined_type)
8086 (cleanup_undefined_types_1): Update.
8087 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
8088 (rust_range_type_p, val_print_struct, rust_print_struct_def)
8089 (rust_internal_print_type, rust_composite_type)
8090 (rust_evaluate_funcall, rust_evaluate_subexp)
8091 (rust_inclusive_range_type_p): Update.
8092 * python/py-type.c (typy_get_tag): Update.
8093 * p-typeprint.c (pascal_type_print_base): Update.
8094 * mdebugread.c (parse_symbol, parse_type): Update.
8095 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
8097 * guile/scm-type.c (gdbscm_type_tag): Update.
8098 * go-lang.c (sixg_string_p): Update.
8099 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
8101 * gdbtypes.h (struct main_type) <tag_name>: Remove.
8102 (TYPE_TAG_NAME): Remove.
8103 * gdbtypes.c (type_name_no_tag): Simplify.
8104 (check_typedef, check_types_equal, recursive_dump_type)
8105 (copy_type_recursive, arch_composite_type): Update.
8106 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
8107 in summary mode when needed.
8108 * eval.c (evaluate_funcall): Update.
8109 * dwarf2read.c (fixup_go_packaging, read_structure_type)
8110 (process_structure_scope, read_enumeration_type)
8111 (read_namespace_type, read_module_type, determine_prefix): Update.
8112 * cp-support.c (inspect_type): Update.
8113 * coffread.c (process_coff_symbol, decode_base_type): Update.
8114 * c-varobj.c (c_is_path_expr_parent): Update.
8115 * c-typeprint.c (c_type_print_base_struct_union): Update.
8116 (c_type_print_base_1): Update. Print struct/class/union/enum in
8117 summary when using C language.
8118 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
8119 (gen_maybe_namespace_elt): Update.
8120 * ada-lang.c (ada_type_name): Simplify.
8121 (empty_record, ada_template_to_fixed_record_type_1)
8122 (template_to_static_fixed_type)
8123 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
8125 2018-06-01 Tom Tromey <tom@tromey.com>
8127 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
8129 * c-typeprint.c (c_print_type_1): Add "language" parameter.
8130 (c_print_type): Update.
8131 (c_print_type): New overload.
8132 (c_type_print_varspec_prefix, c_type_print_args)
8133 (c_type_print_varspec_suffix, c_print_type_no_offsets)
8134 (c_type_print_base_struct_union, c_type_print_base_1)
8135 (cp_type_print_method_args): Add "language" parameter.
8136 (c_type_print_base): Update.
8137 * c-lang.h (c_print_type): Add new overload.
8139 2018-06-01 Tom Tromey <tom@tromey.com>
8141 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
8142 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
8144 2018-06-01 Alan Hayward <alan.hayward@arm.com>
8146 * aarch64-tdep.c (aarch64_sve_register_names): New const
8148 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
8149 (AARCH64_SVE_Z_REGS_NUM): New define.
8150 (AARCH64_SVE_P_REGS_NUM): Likewise.
8151 (AARCH64_SVE_NUM_REGS): Likewise.
8153 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
8155 * nat/linux-ptrace.h [__alpha__]
8156 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
8159 2018-05-31 Maciej W. Rozycki <macro@mips.com>
8161 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
8162 the endianness selected.
8163 * NEWS: Document `set endian auto' mode operation update.
8165 2018-05-31 Alan Hayward <alan.hayward@arm.com>
8167 * Makefile.in: Add new header.
8168 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
8169 (sve_vl_from_vg): Likewise.
8170 (sve_vq_from_vl): Likewise.
8171 (sve_vl_from_vq): Likewise.
8172 (sve_vq_from_vg): Likewise.
8173 (sve_vg_from_vq): Likewise.
8174 * configure.nat: Add new c file.
8175 * nat/aarch64-sve-linux-ptrace.c: New file.
8176 * nat/aarch64-sve-linux-ptrace.h: New file.
8178 2018-05-31 Alan Hayward <alan.hayward@arm.com>
8180 * aarch64-linux-nat.c (aarch64_linux_read_description):
8182 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8184 * aarch64-tdep.c (tdesc_aarch64_list): Add.
8185 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
8186 (aarch64_gdbarch_init): Add parmeter zero.
8187 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
8188 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
8189 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
8191 * doc/gdb.texinfo: Describe SVE feature
8192 * features/aarch64-sve.c: New file.
8194 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
8197 * gdbarch.sh (significant_addr_bit): Default to zero when
8198 not set by target architecture.
8199 * gdbarch.c: Re-generated.
8200 * utils.c (address_significant): Update.
8202 2018-05-30 Joel Brobecker <brobecker@adacore.com>
8204 * stack.c (func_command): Remove trailing newline in call to error.
8206 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8208 * regcache.h (regcache_raw_collect): Remove, update callers to
8209 use regcache::raw_collect.
8210 * regcache.c (regcache_raw_collect): Remove.
8212 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8214 * regcache.h (regcache_raw_supply): Remove, update callers to
8215 use detached_regcache::raw_supply.
8216 * regcache.c (regcache_raw_supply): Remove.
8218 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8220 * regcache.h (regcache_cooked_write_part): Remove, update
8221 callers to use regcache::cooked_write_part.
8222 * regcache.c (regcache_cooked_write_part): Remove.
8224 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8226 * regcache.h (regcache_cooked_read_part): Remove, update callers
8227 to use readable_regcache::cooked_read_part.
8228 * regcache.c (regcache_cooked_read_part): Remove.
8230 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8232 * regcache.h (regcache_cooked_read_value): Remove, update
8233 callers to use readable_regcache::cooked_read_value.
8234 * regcache.c (regcache_cooked_read_value): Remove.
8236 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8238 * regcache.h (regcache_cooked_write): Remove, update callers to
8239 use regcache::cooked_write.
8240 * regcache.c (regcache_cooked_write): Remove.
8242 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8244 * regcache.h (regcache_invalidate): Remove, update callers to
8245 use detached_regcache::invalidate instead.
8246 * regcache.c (regcache_invalidate): Remove.
8248 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8250 * regcache.h (regcache_raw_write_part): Remove, update callers
8251 to use regcache::raw_write_part instead.
8252 * regcache.c (regcache_raw_write_part): Remove.
8254 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8256 * regcache.h (regcache_raw_read_part): Remove, update callers to
8257 use readable_regcache::raw_read_part instead.
8258 * regcache.c (regcache_raw_read_part): Remove.
8260 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8262 * regcache.h (regcache_cooked_read): Remove, update callers to
8263 use readable_regcache::cooked_read instead.
8264 * regcache.c (regcache_cooked_read): Remove.
8266 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8268 * regcache.h (regcache_raw_write): Remove, update callers to use
8269 regcache::raw_write instead.
8270 * regcache.c (regcache_raw_write): Remove.
8272 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8274 * regcache.h (regcache_raw_read): Remove, update callers to use
8275 readable_regcache::raw_read instead.
8276 * regcache.c (regcache_raw_read): Remove.
8278 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8280 * regcache.h (regcache_raw_update): Remove, update callers to
8281 use readable_regcache::raw_update instead.
8282 * regcache.c (regcache_raw_update): Remove.
8284 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8286 * regcache.h (regcache_register_status): Remove, update callers
8287 to use reg_buffer::get_register_status directly instead.
8288 * regcache.c (regcache_register_status): Remove.
8290 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8292 * regcache.h (regcache_get_ptid): Remove, update all callers to
8293 call regcache::ptid instead.
8294 * regcache.c (regcache_get_ptid): Remove.
8296 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8298 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
8300 2018-05-30 Pedro Alves <palves@redhat.com>
8302 * common/common-exceptions.h (exception_rethrow): Use
8305 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
8307 * breakpoint.c (print_solib_event, check_status_catch_solib):
8308 Remove struct keyword in range-based for loops.
8309 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
8310 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
8312 * linespec.c (find_superclass_methods, search_minsyms_for_name):
8314 * symfile.c (addr_info_make_relative): Likewise.
8315 * thread.c (value_in_thread_stack_temporaries): Likewise.
8317 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
8320 * valops.c (value_struct_elt_for_reference): Call check_typedef on
8321 aggregate type to get its real type before accessing it.
8323 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
8325 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
8326 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
8327 * coff-pe-read.c (add_pe_forwarded_sym): Replace
8328 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
8329 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
8330 * jit.c (jit_breakpoint_re_set_internal): Likewise.
8331 * printcmd.c (info_address_command): Likewise.
8333 2018-05-29 Tom Tromey <tom@tromey.com>
8335 * windows-nat.c (handle_exception): Update fall-through comment.
8337 2018-05-29 Tom Tromey <tom@tromey.com>
8339 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
8340 (struct program_space) <added_solibs>: Now a std::vector.
8341 * breakpoint.c (print_solib_event): Update.
8342 (check_status_catch_solib): Update.
8343 * progspace.c (clear_program_space_solib_cache): Update.
8344 * solib.c (update_solib_list): Update.
8346 2018-05-29 Tom Tromey <tom@tromey.com>
8348 * python/py-type.c (typy_richcompare): Update.
8349 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
8350 * gdbtypes.h (types_deeply_equal): Return bool.
8351 (types_equal): Likewise.
8352 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
8354 (check_types_equal): Change worklist to std::vector. Return
8356 (struct type_equality_entry): Add constructor.
8357 (compare_maybe_null_strings): Return bool.
8358 (check_types_worklist): Return bool. Change worklist to
8360 (types_deeply_equal): Use std::vector.
8361 (types_equal): Return bool.
8362 (compare_maybe_null_strings): Simplify.
8364 2018-05-29 Tom Tromey <tom@tromey.com>
8366 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
8368 2018-05-29 Tom Tromey <tom@tromey.com>
8370 * objc-lang.h: Don't include cp-support.h.
8371 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
8374 2018-05-27 Tom Tromey <tom@tromey.com>
8376 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
8378 2018-05-25 Tom Tromey <tom@tromey.com>
8380 * value.c (value::location): Initialize.
8382 2018-05-25 Tom Tromey <tom@tromey.com>
8384 * dbxread.c (init_bincl_list): Remove.
8385 (bincl_list): Now a std::vector.
8386 (bincls_allocated, next_bincl): Remove.
8387 (free_bincl_list, do_free_bincl_list_cleanup)
8388 (make_cleanup_free_bincl_list): Remove.
8389 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
8391 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
8392 (struct header_file_location): Add constructor.
8393 (add_bincl_to_list): Remove.
8395 2018-05-25 Tom Tromey <tom@tromey.com>
8397 * tui/tui.c (tui_enable): Update.
8398 * mi/mi-interp.c (mi_interp::init): Update.
8399 * interps.h (class interp) <name>: New method.
8400 <m_name>: Rename from name.
8401 (~scoped_restore_interp): Update.
8402 * interps.c (interp::interp): Update.
8403 (interp_add, interp_set, interp_lookup_existing)
8404 (current_interp_named_p): Update.
8406 2018-05-25 Tom Tromey <tom@tromey.com>
8408 * interps.c (interp_name): Remove.
8409 * mi/mi-interp.c (mi_interp::init): Update.
8410 * interps.h (interp_name): Remove.
8411 (~scoped_restore_interp): Update.
8412 * tui/tui.c (tui_enable): Update.
8414 2018-05-25 Tom Tromey <tom@tromey.com>
8416 * utils.c (fputs_maybe_filtered): Update.
8417 * linespec.c (decode_line_full): Update.
8418 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
8419 (mi_print_breakpoint_for_event, mi_solib_loaded)
8420 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
8421 (mi_user_selected_context_changed): Update.
8422 * mi/mi-main.c (mi_execute_command): Update.
8423 * cli/cli-script.c (execute_control_command): Update.
8424 * python/python.c (execute_gdb_command): Update.
8425 * solib.c (info_sharedlibrary_command): Update.
8426 * interps.c (interp_ui_out): Remove.
8427 * interps.h (interp_ui_out): Remove.
8429 2018-05-25 Tom Tromey <tom@tromey.com>
8431 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
8432 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
8433 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
8435 2018-05-25 Tom Tromey <tom@tromey.com>
8437 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
8438 * interps.c (interp_exec): Use scoped_restore.
8440 2018-05-25 Tom Tromey <tom@tromey.com>
8442 * remote.c (remote_target::remote_file_get): Use
8444 (remote_target::remote_file_put): Likewise.
8446 2018-05-25 Tom Tromey <tom@tromey.com>
8448 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
8450 (get_pe_section_index, add_pe_exported_sym): Update.
8451 (read_pe_exported_syms): Use gdb::def_vector.
8453 2018-05-25 Tom Tromey <tom@tromey.com>
8455 * frame.c (remove_prev_frame): Remove.
8456 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
8458 2018-05-25 Maciej W. Rozycki <macro@mips.com>
8460 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
8462 * mips-linux-nat.c (supply_fpregset): Always call
8463 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
8464 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
8465 `mips_fill_fpregset'.
8466 * mips-linux-tdep.c (mips_supply_fpregset)
8467 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
8468 (mips_fill_fpregset_wrapper): Remove functions.
8469 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
8470 (mips_linux_fpregset): Remove variable.
8471 (mips_linux_iterate_over_regset_sections): Use
8472 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
8473 (mips_linux_o32_sigframe_init): Remove comment.
8475 2018-05-25 Pedro Alves <palves@redhat.com>
8477 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
8478 (struct readahead_cache, struct packet_reg, struct
8479 remote_arch_state, class remote_state): Move higher up in the
8481 (remote_target::m_remote_state): Now an object instead of a pointer.
8482 (remote_target::get_remote_state): Adjust.
8484 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
8486 * stack.c (select_and_print_frame): Delete.
8487 (struct function_bounds): Move struct within function.
8488 (func_command): Most content moved into new function
8489 find_frame_for_function, use new function, print result, add
8491 (find_frame_for_function): New function, now returns a result.
8493 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8495 * stack.c (iterate_over_block_arg_vars): Fix comment.
8496 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
8498 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
8502 (scoped_restore_selected_frame::scoped_restore_selected_frame):
8504 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
8506 * frame.h (class scoped_restore_selected_frame): New class.
8507 * stack.c (print_frame_local_vars): Remove catching and rethrowing
8508 of any exception, use scoped_restore_selected_frame to restore the
8511 2018-05-24 Pedro Alves <palves@redhat.com>
8513 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
8516 2018-05-23 Tom Tromey <tom@tromey.com>
8518 * complaints.c (struct complaints): Remove.
8519 (symfile_complaint_book): Remove.
8520 (series): New global.
8521 (complaint_internal): Update.
8522 (clear_complaints): Update.
8524 2018-05-23 Tom Tromey <tom@tromey.com>
8526 * complaints.c (counters): New global.
8527 (struct complain): Remove.
8528 (struct complaints) <root>: Remove.
8529 (complaint_sentinel): Remove.
8530 (symfile_complaint_book): Update.
8531 (find_complaint) Remove.
8532 (complaint_internal, clear_complaints): Update.
8534 2018-05-23 Tom Tromey <tom@tromey.com>
8536 * complaints.c (struct complain) <file, line>: Remove.
8537 (find_complaint): Remove file, line parameters.
8538 (complaint_internal): Update.
8540 2018-05-23 Tom Tromey <tom@tromey.com>
8542 * complaints.c (vcomplaint): Remove.
8543 (complaint_internal) Merge in contents of vcomplaint.
8545 2018-05-23 Tom Tromey <tom@tromey.com>
8547 * complaints.c (struct complaints) <explanation>: Remove.
8548 (symfile_explanations): Remove.
8549 (symfile_complaint_book): Update.
8550 (vcomplaint): Update.
8551 (struct explanation): Remove.
8553 2018-05-23 Tom Tromey <tom@tromey.com>
8555 * complaints.c (symfile_complaints): Remove.
8556 (complaint_internal): Remove "complaints" parameter.
8557 (clear_complaints, vcomplaint): Remove "c" parameter.
8558 (get_complaints): Remove.
8559 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
8560 (dwarf2_debug_line_missing_file_complaint)
8561 (dwarf2_debug_line_missing_end_sequence_complaint)
8562 (dwarf2_complex_location_expr_complaint)
8563 (dwarf2_const_value_length_mismatch_complaint)
8564 (dwarf2_section_buffer_overflow_complaint)
8565 (dwarf2_macro_malformed_definition_complaint)
8566 (dwarf2_invalid_attrib_class_complaint)
8567 (create_addrmap_from_index, dw2_symtab_iter_next)
8568 (dw2_expand_marked_cus)
8569 (dw2_debug_names_iterator::find_vec_in_debug_names)
8570 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
8571 (create_debug_type_hash_table, init_cutu_and_read_dies)
8572 (partial_die_parent_scope, add_partial_enumeration)
8573 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
8574 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
8575 (read_import_statement, read_file_scope, create_dwo_cu_reader)
8576 (create_cus_hash_table, create_dwp_hash_table)
8577 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8578 (dwarf2_rnglists_process, dwarf2_ranges_process)
8579 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
8580 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
8581 (handle_struct_member_die, process_structure_scope)
8582 (read_array_type, read_common_block, read_module_type)
8583 (read_tag_pointer_type, read_typedef, read_base_type)
8584 (read_subrange_type, load_partial_dies, partial_die_info::read)
8585 (partial_die_info::read, partial_die_info::read)
8586 (partial_die_info::read, read_checked_initial_length_and_offset)
8587 (dwarf2_string_attr, read_formatted_entries)
8588 (dwarf_decode_line_header)
8589 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
8590 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
8591 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
8592 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8593 (get_signatured_type, get_DW_AT_signature_type)
8594 (decode_locdesc, file_file_name, consume_improper_spaces)
8595 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
8596 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8597 (dwarf2_symbol_mark_computed, set_die_type)
8598 (read_attribute_value): Update.
8599 * stap-probe.c (handle_stap_probe, get_stap_base_address):
8601 * dbxread.c (unknown_symtype_complaint)
8602 (lbrac_mismatch_complaint, repeated_header_complaint)
8603 (set_namestring, function_outside_compilation_unit_complaint)
8604 (read_dbx_symtab, process_one_symbol): Update.
8605 * gdbtypes.c (stub_noname_complaint): Update.
8606 * windows-nat.c (handle_unload_dll): Update.
8607 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
8608 (decode_base_type): Update.
8609 * xcoffread.c (bf_notfound_complaint, ef_complaint)
8610 (eb_complaint, record_include_begin, record_include_end)
8611 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
8612 (process_xcoff_symbol, read_symbol)
8613 (function_outside_compilation_unit_complaint)
8614 (scan_xcoff_symtab): Update.
8615 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
8616 * buildsym.c (finish_block_internal, make_blockvector)
8617 (end_symtab_get_static_block, augment_type_symtab): Update.
8618 * dtrace-probe.c (dtrace_process_dof)
8619 (dtrace_static_probe_ops::get_probes): Update.
8620 * complaints.h (struct complaint): Don't declare.
8621 (symfile_complaints): Remove.
8622 (complaint_internal): Remove "complaints" parameter.
8623 (complaint): Likewise.
8624 (clear_complaints): Likewise.
8625 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8626 (reread_symbols): Update.
8627 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
8628 (dwarf2_frame_cache, decode_frame_entry): Update.
8629 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
8630 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8631 (info_selectors_command): Update.
8632 * macrotab.c (macro_include, check_for_redefinition)
8633 (macro_undef): Update.
8634 * objfiles.c (filter_overlapping_sections): Update.
8635 * stabsread.c (invalid_cpp_abbrev_complaint)
8636 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
8637 (define_symbol, error_type, read_type, rs6000_builtin_type)
8638 (stabs_method_name_from_physname, read_member_functions)
8639 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
8640 (attach_fields_to_type, complain_about_struct_wipeout)
8641 (read_range_type, read_args, common_block_start)
8642 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
8644 * mdebugread.c (index_complaint, unknown_ext_complaint)
8645 (basic_type_complaint, bad_tag_guess_complaint)
8646 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
8647 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
8648 (parse_procedure, parse_lines)
8649 (function_outside_compilation_unit_complaint)
8650 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
8651 (bad_tag_guess_complaint, reg_value_complaint): Update.
8652 * cp-support.c (demangled_name_complaint): Update.
8653 * macroscope.c (sal_macro_scope): Update.
8654 * dwarf-index-write.c (class debug_names): Update.
8656 2018-05-23 Tom Tromey <tom@tromey.com>
8658 * complaints.c (clear_complaints): Remove "noisy" parameter.
8659 * complaints.h (clear_complaints): Update.
8660 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8661 (reread_symbols): Update.
8663 2018-05-23 Tom Tromey <tom@tromey.com>
8665 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
8667 (vcomplaint, clear_complaints): Update.
8668 (symfile_explanations): Remove some messages.
8670 2018-05-23 Tom Tromey <tom@tromey.com>
8672 * complaints.c (internal_complaint): Remove.
8673 * complaints.h (internal_complaint): Remove.
8675 2018-05-22 Maciej W. Rozycki <macro@mips.com>
8677 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
8679 2018-05-22 Pedro Alves <palves@redhat.com>
8681 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
8682 (remote_fileio_badfd, remote_fileio_return_errno)
8683 (remote_fileio_return_success, remote_fileio_func_open)
8684 (remote_fileio_func_open, remote_fileio_func_close)
8685 (remote_fileio_func_read, remote_fileio_func_write)
8686 (remote_fileio_func_lseek, remote_fileio_func_rename)
8687 (remote_fileio_func_unlink, remote_fileio_func_stat)
8688 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
8689 (remote_fileio_func_isatty, remote_fileio_func_system): Add
8690 remote_target parameter.
8691 (remote_fio_func_map) <func>: Add remote_target parameter.
8692 (do_remote_fileio_request, remote_fileio_request):
8693 * remote-fileio.h (remote_fileio_request):
8694 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
8695 remote_target parameter.
8696 (remote_notif_process, handle_notification): Adjust to pass down
8698 (remote_notif_state_allocate): Add remote_target parameter. Save
8700 * remote-notif.h (struct remote_target): Forward declare.
8701 (struct notif_client) <parse, ack, can_get_pending_events>: Add
8702 remote_target parameter.
8703 (struct remote_notif_state) <remote>: New field.
8704 (remote_notif_ack, remote_notif_parse): Add remote_target
8706 (remote_notif_state_allocate, remote_notif_state_allocate): Add
8707 remote_target parameter.
8708 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
8709 (threads_listing_context, rmt_thread_action, protocol_feature)
8710 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
8711 (packet_result, struct threads_listing_context, remote_state):
8712 Move definitions and declarations higher up.
8713 (remote_target) <~remote_target>: Declare.
8714 (remote_download_command_source, remote_file_put, remote_file_get)
8715 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
8716 (remote_hostio_pread_vFile, remote_hostio_send_command)
8717 (remote_hostio_set_filesystem, remote_hostio_open)
8718 (remote_hostio_close, remote_hostio_unlink, remote_state)
8719 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
8720 (get_memory_write_packet_size, get_memory_read_packet_size)
8721 (append_pending_thread_resumptions, remote_detach_1)
8722 (append_resumption, remote_resume_with_vcont)
8723 (add_current_inferior_and_thread, wait_ns, wait_as)
8724 (process_stop_reply, remote_notice_new_inferior)
8725 (process_initial_stop_replies, remote_add_thread)
8726 (btrace_sync_conf, remote_btrace_maybe_reopen)
8727 (remove_new_fork_children, kill_new_fork_children)
8728 (discard_pending_stop_replies, stop_reply_queue_length)
8729 (check_pending_events_prevent_wildcard_vcont)
8730 (discard_pending_stop_replies_in_queue, stop_reply)
8731 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
8732 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
8733 (remote_interrupt_as, remote_interrupt_ns)
8734 (remote_get_noisy_reply, remote_query_attached)
8735 (remote_add_inferior, remote_current_thread, get_current_thread)
8736 (set_thread, set_general_thread, set_continue_thread)
8737 (set_general_process, write_ptid)
8738 (remote_unpack_thread_info_response, remote_get_threadinfo)
8739 (parse_threadlist_response, remote_get_threadlist)
8740 (remote_threadlist_iterator, remote_get_threads_with_ql)
8741 (remote_get_threads_with_qxfer)
8742 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
8743 (get_offsets, remote_check_symbols, remote_supported_packet)
8744 (remote_query_supported, remote_packet_size)
8745 (remote_serial_quit_handler, remote_detach_pid)
8746 (remote_vcont_probe, remote_resume_with_hc)
8747 (send_interrupt_sequence, interrupt_query)
8748 (remote_notif_get_pending_events, fetch_register_using_p)
8749 (send_g_packet, process_g_packet, fetch_registers_using_g)
8750 (store_register_using_P, store_registers_using_G)
8751 (set_remote_traceframe, check_binary_download)
8752 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
8753 (remote_xfer_live_readonly_partial, remote_read_bytes)
8754 (remote_send_printf, remote_flash_write, readchar)
8755 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
8756 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
8757 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
8758 (extended_remote_disable_randomization, extended_remote_run)
8759 (send_environment_packet, extended_remote_environment_support)
8760 (extended_remote_set_inferior_cwd, remote_write_qxfer)
8761 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
8762 (packet_command): Now methods of ...
8763 (remote_target): ... this class.
8764 (m_remote_state) <remote_target>: New field.
8765 (struct remote_state) <stop_reply_queue,
8766 remote_async_inferior_event_token, wait_forever_enabled_p>: New
8768 (remote_state::remote_state): Allocate stop_reply_queue.
8769 (remote_state): Delete global.
8770 (get_remote_state_raw): Delete.
8771 (remote_target::get_remote_state): Allocate m_remote_state on
8773 (get_current_remote_target): New.
8774 (remote_ops, extended_remote_ops): Delete.
8775 (wait_forever_enabled_p, remote_async_inferior_event_token):
8776 Delete, moved to struct remote_state.
8777 (remote_target::close): Delete self. Destruction bits split to
8779 (remote_target::~remote_target): ... this.
8780 (show_memory_packet_size): Adjust to use
8781 get_current_remote_target.
8782 (struct protocol_feature) <func>: Add remote_target parameter.
8783 All callers adjusted.
8784 (curr_quit_handler_target): New.
8785 (remote_serial_quit_handler): Reimplement.
8786 (remote_target::open_1): Adjust to use get_current_remote_target.
8787 Heap-allocate remote_target/extended_remote_target instances.
8788 (vcont_builder::vcont_builder): Add remote_target parameter, and
8789 save it in m_remote. All callers adjusted.
8790 (vcont_builder::m_remote): New field.
8791 (vcont_builder::restart, vcont_builder::flush)
8792 (vcont_builder::push_action): Use it.
8793 (remote_target::commit_resume): Use it.
8794 (struct queue_iter_param) <remote>: New field.
8795 (remote_target::remove_new_fork_children): Fill in 'remote' field.
8796 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
8797 (check_pending_event_prevents_wildcard_vcont_callback)
8798 (remote_target::check_pending_events_prevent_wildcard_vcont)
8799 (remote_target::discard_pending_stop_replies)
8800 (remote_target::discard_pending_stop_replies_in_queue)
8801 (remote_target::remote_notif_remove_queued_reply): Fill in
8803 (remote_notif_get_pending_events): New.
8804 (remote_target::readchar, remote_target::remote_serial_write):
8805 Save/restore curr_quit_handler_target.
8807 (kill_new_fork_children): Fill in 'remote' field.
8808 (packet_command): Use get_current_remote_target, defer to
8809 remote_target method of same name.
8810 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
8811 parameter, and save it in m_remote. All callers adjusted.
8812 (scoped_remote_fd::release): Use m_remote.
8813 (scoped_remote_fd::m_remote): New field.
8814 (remote_file_put, remote_file_get, remote_file_delete): Use
8815 get_current_remote_target, defer to remote_target method of same
8817 (remote_btrace_reset): Add remote_state paremeter. Update all
8819 (remote_async_inferior_event_handler). Pass down 'data'.
8820 (remote_new_objfile): Use get_current_remote_target.
8821 (remote_target::vcont_r_supported): New.
8822 (set_range_stepping): Use get_current_remote_target and
8823 remote_target::vcont_r_supported.
8824 (_initialize_remote): Don't allocate 'remote_state' and
8825 'stop_reply_queue' globals.
8826 * remote.h (struct remote_target): Forward declare.
8827 (getpkt, putpkt, remote_notif_get_pending_events): Add
8828 'remote_target' parameter.
8830 2018-05-22 Pedro Alves <palves@redhat.com>
8832 * remote.c (vcont_builder): Now a class. Make all data members
8834 (vcont_builder) <vcont_builder, restart, flush, push_action>:
8836 (vcont_builder_restart): Rename to ...
8837 (vcont_builder::restart): ... this.
8838 (vcont_builder_flush): Rename to ...
8839 (vcont_builder::flush): ... this.
8840 (vcont_builder_push_action): Rename to ...
8841 (vcont_builder::push_action): ... this.
8842 (remote_target::commit_resume): Adjust.
8844 2018-05-22 Pedro Alves <palves@redhat.com>
8846 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
8847 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
8848 (get_fixed_memory_packet_size): New.
8849 (get_memory_packet_size): Use it.
8850 (set_memory_packet_size): Don't override the config size with
8851 DEFAULT_MAX_MEMORY_PACKET_SIZE.
8852 (show_memory_packet_size): Use get_fixed_memory_packet_size.
8853 Don't refer to get_memory_packet_size if not connected to a remote
8854 target. Show "(default)" if configured size is 0.
8856 2018-05-22 Pedro Alves <palves@redhat.com>
8858 * remote.c (remote_target::mourn_inferior): Move
8859 discard_pending_stop_replies call here from ...
8860 (_initialize_remote): ... here.
8862 2018-05-22 Pedro Alves <palves@redhat.com>
8864 * remote.c (compare_section_command): Remove set_general_process
8867 2018-05-22 Pedro Alves <palves@redhat.com>
8869 * remote.c (struct packet_reg, struct remote_arch_state):
8870 Move higher up in the file.
8871 (remote_state) <m_arch_states>: Store remote_arch_state values
8872 instead of remote_arch_state pointers.
8873 (remote_state::get_remote_arch_state): Adjust.
8875 2018-05-22 Pedro Alves <palves@redhat.com>
8877 * remote.c: Include <unordered_map>.
8878 (remote_state): Now a class.
8879 (remote_state) <get_remote_arch_state>: Declare method.
8880 <get_remote_arch_state>: New field.
8881 (remote_arch_state) <remote_arch_state>: Declare ctor.
8882 <regs>: Now a unique_ptr.
8883 (remote_gdbarch_data_handle): Delete.
8884 (get_remote_arch_state): Delete.
8885 (remote_state::get_remote_arch_state): New.
8886 (get_remote_state): Adjust to call remote_state's
8887 get_remote_arch_state method.
8888 (init_remote_state): Delete, bits factored out to ...
8889 (remote_arch_state::remote_arch_state): ... this new method.
8890 (get_remote_packet_size, get_memory_packet_size)
8891 (process_g_packet, remote_target::fetch_registers)
8892 (remote_target::prepare_to_store, store_registers_using_G)
8893 (remote_target::store_registers, remote_target::get_trace_status):
8894 Adjust to call remote_state's method.
8895 (_initialize_remote): Remove reference to
8896 remote_gdbarch_data_handle.
8898 2018-05-22 Pedro Alves <palves@redhat.com>
8900 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
8901 pread>: New method declarations.
8902 (remote_target::open_1): Adjust.
8903 (readahead_cache_invalidate): Rename to ...
8904 (readahead_cache::invalidate): ... this, and adjust to be a class
8906 (readahead_cache_invalidate_fd): Rename to ...
8907 (readahead_cache::invalidate_fd): ... this, and adjust to be a
8909 (remote_hostio_pwrite): Adjust.
8910 (remote_hostio_pread_from_cache): Rename to ...
8911 (readahead_cache::pread): ... this, and adjust to be a class
8913 (remote_hostio_close): Adjust.
8915 2018-05-22 Pedro Alves <palves@redhat.com>
8917 * remote.c (remote_hostio_close_cleanup): Delete.
8918 (class scoped_remote_fd): New.
8919 (remote_file_put, remote_file_get): Use it.
8921 2018-05-22 Pedro Alves <palves@redhat.com>
8923 (struct vCont_action_support): Use bool and initialize all fields.
8924 (struct readahead_cache): Initialize all fields.
8925 (remote_state): Use bool and initialize all fields.
8926 (remote_state::remote_state, remote_state::~remote_state): New.
8927 (new_remote_state): Delete.
8928 (_initialize_remote): Use new to allocate remote_state.
8930 2018-05-22 Pedro Alves <palves@redhat.com>
8934 * c-exp.y: Include "c-support.h".
8935 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
8936 of tolower. Use c_ident_is_alpha to scan names.
8937 * c-lang.c: Include "c-support.h".
8938 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
8939 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
8940 * c-support.h: New file, with bits factored out from ...
8941 * cp-name-parser.y: ... this file.
8942 Include "c-support.h".
8943 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
8944 c-support.h and renamed.
8945 (symbol_end, yylex): Adjust.
8947 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8949 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
8950 parameter type to CORE_ADDR.
8951 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
8952 parameter type in declaration to CORE_ADDR.
8953 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
8954 target_auxv_search to get AT_HWCAP and use the result to get the
8956 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
8957 to CORE_ADDR. Remove the cast of the return value to unsigned
8958 long. Fix error predicate of target_auxv_search.
8959 (ppc_linux_nat_target::read_description): Change the type of the
8960 hwcap variable to CORE_ADDR.
8962 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8964 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
8965 if the size of fpscr is larger than 32 bits.
8967 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8969 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
8970 (ppc32_linux_vsxregmap): New global.
8971 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
8972 regcache_supply_regset, and regcache_collect_regset.
8973 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
8974 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
8975 (fetch_vsx_register, store_vsx_register): Remove.
8976 (fetch_vsx_registers): Add regno parameter. Get regset using
8977 ppc_linux_vsxregset. Use regset to supply registers.
8978 (store_vsx_registers): Add regno parameter. Get regset using
8979 ppc_linux_vsxregset. Use regset to collect registers.
8980 (fetch_register): Call fetch_vsx_registers instead of
8982 (store_register): Call store_vsx_registers instead of
8984 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
8985 new regno parameter.
8986 (store_ppc_registers): Call store_vsx_registers with -1 for the
8987 new regno parameter.
8988 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
8989 (ppc_collect_vsxregset): Remove.
8991 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8993 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
8995 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
8996 for vector register offset fields.
8997 (ppc64_fbsd_reg_offsets): Likewise.
8998 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8999 to vector register offset fields.
9000 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9001 to vector register offset fields.
9002 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
9003 vector register offset fields.
9004 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
9005 initializers for vector register offset fields.
9006 (rs6000_aix64_reg_offsets): Likewise.
9007 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
9008 (ppc_supply_vrregset): Remove.
9009 (ppc_collect_vrregset): Remove.
9010 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
9011 (ppc_linux_vrregset) : New function.
9012 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
9013 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
9014 (ppc32_linux_vrregset): Remove.
9015 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
9016 and use result instead of ppc32_linux_vrregset.
9017 (ppc32_linux_reg_offsets): Remove initializers for vector register
9019 (ppc64_linux_reg_offsets): Likewise.
9020 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
9021 * ppc-linux-nat.c: Include regset.h.
9022 (gdb_vrregset_t): Adjust comment to account for little-endian
9024 (supply_vrregset, fill_vrregset): Remove.
9025 (fetch_altivec_register, store_altivec_register): Remove.
9026 (fetch_altivec_registers): Add regno parameter. Get regset using
9027 ppc_linux_vrregset. Use regset to supply registers.
9028 (store_altivec_registers): Add regno parameter. Get regset using
9029 ppc_linux_vrregset. Use regset to collect registers.
9030 (fetch_register): Call fetch_altivec_registers instead of
9031 fetch_altivec_register.
9032 (store_register): Call store_altivec_registers instead of
9033 store_altivec_register.
9034 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
9035 the new regno parameter.
9036 (store_ppc_registers): Call store_altivec_registers with -1 for
9037 the new regno parameter.
9039 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9041 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
9042 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
9043 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
9044 (gdb_vrregset_t): Change array type size to
9045 PPC_LINUX_SIZEOF_VRREGSET.
9046 (gdb_vsxregset_t): Change array type size to
9047 PPC_LINUX_SIZEOF_VSXREGSET.
9048 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
9049 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
9050 PPC_LINUX_SIZEOF_VSXREGSET.
9052 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9054 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
9055 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
9057 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
9058 ppc_linux_target_wordsize with tid.
9059 (ppc_linux_nat_target::read_description): Call ppc_linux_target
9061 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
9062 (ppc64_64bit_inferior_p): Add static and inline specifiers.
9063 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
9064 tid parameter. Remove static specifier.
9065 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
9066 (ppc_linux_target_wordsize): New declaration.
9068 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9070 * arch/ppc-linux-common.c: New file.
9071 * arch/ppc-linux-common.h: New file.
9072 * arch/ppc-linux-tdesc.h: New file.
9073 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
9074 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
9075 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
9076 arch/ppc-linux-tdesc.h.
9077 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
9078 arch/ppc-linux-tdesc.h.
9079 (ppc_linux_nat_target::read_description): Remove target
9080 description matching code. Fill a ppc_linux_features struct and
9081 call ppc_linux_match_description with it. Move comment about ISA
9082 2.05 to ppc-linux-common.c.
9083 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
9084 arch/ppc-linux-tdesc.h.
9085 (ppc_linux_core_read_description): Remove target description
9086 matching code. Fill a ppc_linux_features struct and call
9087 ppc_linux_match_description with it.
9088 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
9089 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
9090 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
9091 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
9092 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
9093 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
9094 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
9095 (tdesc_powerpc_e500l): Remove.
9097 2018-05-22 Joel Brobecker <brobecker@adacore.com>
9099 * ada-lang.c (catch_assert_command): Pass empty string instead
9100 of NULL for excep_string argument.
9102 2018-05-22 Maciej W. Rozycki <macro@mips.com>
9104 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
9105 the width of the requested register exceeds the width of the
9108 2018-05-21 Tom Tromey <tom@tromey.com>
9110 * printcmd.c (output_command): Remove.
9111 (output_command_const): Rename to output_command.
9112 * valprint.h (output_command): Rename from output_command_const.
9113 * tracepoint.c (trace_dump_actions): Call output_command.
9115 2018-05-21 Tom Tromey <tom@tromey.com>
9117 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
9118 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
9119 * ada-lang.h (create_ada_exception_catchpoint): Update.
9120 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
9122 (create_excep_cond_exprs, ~ada_catchpoint)
9123 (should_stop_exception, print_one_exception)
9124 (print_mention_exception, print_recreate_exception): Update.
9125 (ada_get_next_arg): Remove.
9126 (catch_ada_exception_command_split): Use std::string. Change type
9127 of "excep_string", "cond_string".
9128 (catch_ada_exception_command): Update.
9129 (create_ada_exception_catchpoint): Change type of excep_string.
9130 (ada_exception_sal): Remove excep_string parameter.
9131 (~ada_catchpoint): Remove.
9133 2018-05-21 Tom Tromey <tom@tromey.com>
9135 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
9138 2018-05-21 Tom Tromey <tom@tromey.com>
9140 * ada-lang.c (ada_exception_message_1, ada_exception_message):
9141 Return unique_xmalloc_ptr.
9142 (print_it_exception): Update.
9144 2018-05-21 Tom Tromey <tom@tromey.com>
9146 * tracepoint.c (trace_dump_actions): Use std::string.
9148 2018-05-21 Tom Tromey <tom@tromey.com>
9150 * symfile.c (reread_symbols): Use std::string for original_name.
9152 2018-05-21 Tom Tromey <tom@tromey.com>
9154 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
9155 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
9158 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
9160 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
9162 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
9163 * objfiles.c (get_objfile_bfd_data): Allocate
9164 objfile_per_bfd_storage with obstack_new when allocating on
9167 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9169 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
9171 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
9172 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
9173 * mdebugread.c (mdebug_build_psymtabs): Likewise.
9174 (add_pending): Likewise.
9175 (parse_symbol): Likewise.
9176 (parse_partial_symbols): Likewise.
9177 (psymtab_to_symtab_1): Likewise.
9178 (new_psymtab): Likewise.
9179 (elfmdebug_build_psymtabs): Likewise.
9180 * minsyms.c (terminate_minimal_symbol_table): Likewise.
9181 * objfiles.c (get_objfile_bfd_data): Likewise.
9182 (objfile_register_static_link): Likewise.
9183 * psymtab.c (allocate_psymtab): Likewise.
9184 * stabsread.c (read_member_functions): Likewise.
9185 * xcoffread.c (xcoff_end_psymtab): Likewise.
9187 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9189 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
9190 compiler supports std::is_trivially_constructible.
9191 * common/poison.h: Include obstack.h.
9192 (IsMallocable): Define to is_trivially_constructible if the
9193 compiler supports it, define to true_type otherwise.
9197 (XOBNEWVEC): Redefine.
9198 * gdb_obstack.h (obstack_zalloc): New.
9199 (OBSTACK_ZALLOC): Redefine.
9200 (obstack_calloc): New.
9201 (OBSTACK_CALLOC): Redefine.
9203 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
9204 (gdbarch_obstack): New declaration in gdbarch.h, definition in
9206 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
9207 obstack_calloc/obstack_zalloc.
9208 (gdbarch_obstack_zalloc): Remove.
9209 * target-descriptions.c (tdesc_data_init): Use obstack_new.
9211 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9213 * stack.c (backtrace_command_1): Remove useless variable int i.
9215 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9217 * stack.c (print_frame_info): Fix comment.
9219 2018-05-18 Tom Tromey <tom@tromey.com>
9221 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
9222 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
9223 (~dwarf2_per_objfile): Update
9224 (dwarf2_get_dwz_file): Use new.
9225 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
9228 2018-05-18 Tom Tromey <tom@tromey.com>
9230 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
9232 * dwarf2read.c (struct dwp_file): Add constructor and
9234 (open_and_init_dwp_file): Return a unique_ptr.
9235 (dwarf2_per_objfile, create_dwp_hash_table)
9236 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
9237 (lookup_dwo_unit_in_dwp): Update.
9238 (open_and_init_dwp_file, get_dwp_file): Update.
9240 2018-05-18 Tom Tromey <tom@tromey.com>
9242 * dwarf2read.c (dwarf2_per_objfile): Update.
9243 (struct mapped_index): Add initializers.
9244 (dwarf2_read_index): Use new.
9245 (dw2_symtab_iter_init): Update.
9246 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
9249 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9251 * dwarf2read.c (mapped_index) <total_size>: Remove.
9253 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9255 * unittests/format_pieces-selftests.c (test_format_specifier):
9258 2018-05-18 Tom Tromey <tom@tromey.com>
9260 * c-typeprint.c (maybe_print_hole): New function.
9261 (c_print_type_struct_field_offset): Update.
9262 (c_type_print_base_struct_union): Call maybe_print_hole.
9264 2018-05-17 Keith Seitz <keiths@redhat.com>
9266 * breakpoint.c (build_bpstat_chain): New function, moved from
9268 (bpstat_stop_status): Add optional parameter, `stop_chain'.
9269 If no stop chain is passed, call build_bpstat_chain to build it.
9270 * breakpoint.h (build_bpstat_chain): Declare.
9271 (bpstat_stop_status): Move documentation here from breakpoint.c.
9272 * infrun.c (handle_signal_stop): Before eliding inlined frames,
9273 build the stop chain and pass it to skip_inline_frames.
9274 Pass this stop chain to bpstat_stop_status.
9275 * inline-frame.c: Include breakpoint.h.
9276 (stopped_by_user_bp_inline_frame): New function.
9277 (skip_inline_frames): Add parameter `stop_chain'.
9278 Move documention to inline-frame.h.
9279 If non-NULL, use stopped_by_user_bp_inline_frame to determine
9280 whether the frame should be elided.
9281 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
9282 Add moved documentation and update for new parameter.
9284 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9287 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9288 unittests/format_pieces-selftests.c.
9289 * common/format.h (format_piece) <operator==>: New.
9290 (format_pieces) <operator[]>: Remove.
9291 * common/format.c (format_pieces::format_pieces): Handle \e.
9292 * unittests/format_pieces-selftests.c: New.
9294 2018-05-17 Tom Tromey <tom@tromey.com>
9297 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
9298 (dw2_instantiate_symtab): Add skip_partial parameter.
9299 (dw2_find_last_source_symtab, dw2_map_expand_apply)
9300 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
9301 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
9302 (dw2_expand_symtabs_matching_one)
9303 (dw2_find_pc_sect_compunit_symtab)
9304 (dw2_debug_names_lookup_symbol)
9305 (dw2_debug_names_expand_symtabs_for_function): Update.
9306 (init_cutu_and_read_dies): Add skip_partial parameter.
9307 (process_psymtab_comp_unit, build_type_psymtabs_1)
9308 (process_skeletonless_type_unit, load_partial_comp_unit)
9309 (psymtab_to_symtab_1): Update.
9310 (load_full_comp_unit): Add skip_partial parameter.
9311 (process_imported_unit_die, dwarf2_read_addr_index)
9312 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
9313 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
9314 (read_signatured_type): Update.
9316 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9318 * value.c (release_value): Remove unused variable.
9319 (record_latest_value): Likewise.
9320 (access_value_history): Likewise.
9321 (preserve_values): Likewise.
9323 2018-05-17 Tom Tromey <tom@tromey.com>
9325 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
9328 2018-05-16 Maciej W. Rozycki <macro@mips.com>
9331 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
9332 Also handle registers whose width is not a multiple of
9334 (linux_nat_trad_target::store_register): Likewise.
9336 2018-05-16 Tom Tromey <tom@tromey.com>
9338 * gdbcore.h (core_bfd): Redefine.
9339 * corelow.c (core_target::close): Update.
9340 (core_target_open): Update.
9341 * progspace.h (struct program_space) <cbfd>: Now a
9344 2018-05-16 Tom Tromey <tom@tromey.com>
9347 * symfile-add-flags.h (enum symfile_add_flags)
9348 <SYMFILE_NOT_FILENAME>: New constant.
9349 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
9350 objfile name from BFD.
9351 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
9352 * minidebug.c (find_separate_debug_file_in_section): Put
9353 ".gnu_debugdata" into BFD's file name.
9355 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
9357 * regcache.c (regcache_read_ftype, regcache_write_ftype):
9360 2018-05-15 Tamar Christina <tamar.christina@arm.com>
9363 * aarch64-tdep.c (aarch64_analyze_prologue,
9364 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
9365 Indicate not interested in errors.
9367 2018-05-15 Maciej W. Rozycki <macro@mips.com>
9369 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
9370 Supply the MIPS_ZERO_REGNUM register.
9372 2018-05-15 Maciej W. Rozycki <macro@mips.com>
9374 * mips-tdep.c (mask_address_var): Make variable static.
9376 2018-05-14 Tom Tromey <tom@tromey.com>
9378 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
9380 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
9382 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
9383 FXSAVE_ADDR for the mxcsr register.
9385 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
9387 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
9389 2018-05-11 Pedro Alves <palves@redhat.com>
9391 * corelow.c (core_target) <core_target>: No longer inline.
9392 Initialize m_core_gdbarch, m_core_vec and build the section table
9394 <~core_target>: New.
9395 <core_gdbarch, get_core_register_section>: New methods.
9396 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
9397 factored out from ...
9398 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
9400 (sniff_core_bfd): Add gdbarch parameter.
9401 (core_close): Delete, merged into ...
9402 (core_target::close): ... here. Delete self.
9403 (core_close_cleanup): Delete.
9404 (core_target_open): Allocate a core_target on the heap. Use a
9405 unique_ptr instead of a cleanup. Bits moved into the core_target
9406 ctor. Adjust to use core_target methods instead of globals.
9407 (get_core_register_section): Rename to ...
9408 (core_target::get_core_register_section): ... this and adjust.
9409 (struct get_core_registers_cb_data): New.
9410 (get_core_registers_cb): Use it. Use bool.
9411 (core_target::fetch_registers, core_target::files_info)
9412 (core_target::xfer_partial, core_target::read_description)
9413 (core_target::pid_to, core_target::thread_name): Adjust to
9414 reference class fields instead of globals.
9415 * target.h (struct target_ops_deleter, target_ops_up): New.
9417 2018-05-11 Pedro Alves <palves@redhat.com>
9419 * corefile.c (core_file_command): Move to corelow.c.
9420 * corelow.c (the_core_target): Delete.
9421 (core_file_command): Moved from corefile.c. Check exec_bfd
9422 instead of the_core_target. Use target_detach instead of calling
9423 into the_core_target directly.
9424 (maybe_say_no_core_file_now): New.
9425 (core_target::detach): Use it.
9426 (_initialize_corelow): Remove references to the_core_target.
9427 * gdbcore.h (the_core_target): Delete.
9429 2018-05-11 Tom Tromey <tromey@redhat.com>
9430 Pedro Alves <palves@redhat.com>
9432 * corefile.c (core_bfd): Remove.
9433 * gdbcore.h (core_bfd): Now a macro.
9434 * progspace.h (struct program_space) <cbfd>: New field.
9436 2018-05-11 Tom Tromey <tom@tromey.com>
9438 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
9441 2018-05-10 Tom Tromey <tom@tromey.com>
9443 * configure: Rebuild.
9444 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
9446 2018-05-10 Joel Brobecker <brobecker@adacore.com>
9449 * regformats/regdat.sh: Adjust script, following the addition
9450 of the new expedite_regs parameter to init_target_desc.
9452 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
9455 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
9456 set_gdbarch_significant_addr_bit.
9457 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
9458 set_gdbarch_significant_addr_bit.
9459 * utils.c (address_significant): Update to sign extend addr.
9461 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
9463 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
9464 (xtensa_linux_init_abi): Limit tdep->num_regs by
9465 tdep->num_nopriv_regs.
9466 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
9467 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
9470 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
9472 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
9474 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9476 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
9477 (I387_MXCSR_INIT_VAL): New constant.
9478 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
9479 buffer if it was supplied by the inferior.
9480 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
9481 (i387_xsave_get_clear_bv): New function.
9482 (i387_supply_xsave): Only read x87 control registers from the
9483 xsave buffer if the feature is enabled, and the state will have
9484 been written, otherwise, provide a suitable default.
9485 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
9486 including x87 control registers. Update control registers if they
9487 have changed from the default value, and mark features as enabled
9489 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
9491 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
9493 * spu-tdep.c (info_spu_event_command): Fix output formatting.
9495 2018-05-07 Tom Tromey <tom@tromey.com>
9497 * configure: Rebuild.
9498 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
9500 2018-05-07 Tom Tromey <tom@tromey.com>
9503 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
9504 bit. Use correct value for VDIV.
9506 2018-05-04 Tom Tromey <tom@tromey.com>
9508 * configure: Rebuild.
9509 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
9511 2018-05-04 Tom Tromey <tom@tromey.com>
9513 * linux-record.c (record_linux_system_call) <case
9514 RECORD_SYS_RECVFROM>: Add "break".
9516 2018-05-04 Tom Tromey <tom@tromey.com>
9518 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
9519 Add missing "break".
9520 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
9521 Add missing "break".
9523 2018-05-04 Tom Tromey <tom@tromey.com>
9525 * rs6000-tdep.c (ppc_process_record_op4)
9526 (ppc_process_record_op63): Add fall-through comment.
9528 2018-05-04 Tom Tromey <tom@tromey.com>
9530 * i386-tdep.c (i386_process_record): Add fall-through comment.
9532 2018-05-04 Tom Tromey <tom@tromey.com>
9534 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
9537 2018-05-04 Tom Tromey <tom@tromey.com>
9539 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
9540 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
9541 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
9543 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
9545 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
9548 2018-05-04 Tom Tromey <tom@tromey.com>
9550 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
9552 2018-05-04 Tom Tromey <tom@tromey.com>
9554 * s390-tdep.c (s390_process_record): Fix fall-through comments.
9555 * xcoffread.c (scan_xcoff_symtab): Move comment later.
9556 * symfile.c (section_is_mapped): Fix fall-through comment.
9557 * stabsread.c (define_symbol, read_member_functions): Fix
9558 fall-through comment.
9559 * s390-linux-tdep.c (s390_process_record): Fix fall-through
9561 * remote.c (remote_wait_as): Fix fall-through comment.
9562 * p-exp.y (yylex): Fix fall-through comment.
9563 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
9565 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
9566 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
9567 * jv-exp.y (yylex): Fix fall-through comment.
9568 * go-exp.y (lex_one_token): Fix fall-through comment.
9569 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
9570 fall-through comment.
9571 * f-exp.y (yylex): Fix fall-through comment.
9572 * dwarf2read.c (process_die): Fix fall-through comments.
9573 * dbxread.c (process_one_symbol): Fix fall-through comment.
9574 * d-exp.y (lex_one_token): Fix fall-through comment.
9575 * cp-name-parser.y (yylex): Fix fall-through comment.
9576 * coffread.c (coff_symtab_read): Fix fall-through comment.
9577 * c-exp.y (lex_one_token): Fix fall-through comment.
9578 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
9580 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
9583 2018-05-04 Tom Tromey <tom@tromey.com>
9586 * NEWS: Mention gdb.execute change.
9587 * gdbcmd.h (execute_control_command): Don't declare.
9588 * python/python.c (execute_gdb_command): Use read_command_lines_1,
9589 execute_control_commands, execute_control_commands_to_string.
9590 * cli/cli-script.h (execute_control_commands)
9591 (execute_control_commands_to_string): Declare.
9592 (execute_control_command): Add from_tty parameter.
9593 * cli/cli-script.c (execute_control_commands)
9594 (execute_control_commands_to_string): New functions.
9595 (execute_user_command): Use execute_control_commands.
9596 (execute_control_command_1): Add "from_tty" parameter. Update.
9597 (execute_control_command): Likewise.
9599 2018-05-04 Tom Tromey <tom@tromey.com>
9602 * NEWS: Mention that breakpoint commands are writable.
9603 * python/py-breakpoint.c (bppy_set_commands): New function.
9604 (breakpoint_object_getset) <"commands">: Use it.
9606 2018-05-04 Tom Tromey <tom@tromey.com>
9608 * tracepoint.c (actions_command): Update.
9609 * mi/mi-cmd-break.c (mi_command_line_array)
9610 (mi_command_line_array_cnt, mi_command_line_array_ptr)
9611 (mi_read_next_line): Remove.
9612 (mi_cmd_break_commands): Update.
9613 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
9615 * cli/cli-script.c (get_command_line): Update.
9616 (process_next_line): Use function_view. Constify.
9617 (recurse_read_control_structure, read_command_lines)
9618 (read_command_lines_1): Change argument types to function_view.
9619 (do_define_command, document_command): Update.
9620 * breakpoint.h (check_tracepoint_command): Don't declare.
9621 * breakpoint.c (check_tracepoint_command): Remove.
9622 (commands_command_1, create_tracepoint_from_upload): Update.
9624 2018-05-04 Tom Tromey <tom@tromey.com>
9627 * cli/cli-script.h (enum command_control_type) <define_control>:
9629 * cli/cli-script.c (multi_line_command_p): Handle define_control.
9630 (build_command_line, execute_control_command_1)
9631 (process_next_line): Likewise.
9632 (do_define_command): New function, extracted from define_command.
9633 (define_command): Use it.
9635 2018-05-04 Tom Tromey <tom@tromey.com>
9637 * tracepoint.c (actions_command): Update.
9638 * cli/cli-script.h (read_command_lines): Update.
9639 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
9640 (MAX_TMPBUF): Remove define.
9641 (define_command): Use string_printf.
9642 (document_command): Likewise.
9643 * breakpoint.c (commands_command_1): Update.
9645 2018-05-04 Tom Tromey <tom@tromey.com>
9647 * top.c (execute_command): Update.
9648 * cli/cli-script.h (print_command_lines): Now varargs.
9649 * cli/cli-script.c (print_command_lines): Now varargs.
9650 (execute_control_command_1) <case while_control, case if_control>:
9653 2018-05-04 Tom Tromey <tom@tromey.com>
9655 * tracepoint.c (all_tracepoint_actions): Rename from
9656 all_tracepoint_actions_and_cleanup. Change return type.
9657 (actions_command, encode_actions_1, encode_actions)
9658 (trace_dump_actions, tdump_command): Update.
9659 * remote.c (remote_download_command_source): Update.
9660 * python/python.c (gdbpy_eval_from_control_command)
9661 (python_command, python_interactive_command): Update.
9662 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
9663 * guile/guile.c (guile_command)
9664 (gdbscm_eval_from_control_command, guile_command): Update.
9665 * compile/compile.c (compile_code_command)
9666 (compile_print_command, compile_to_object): Update.
9667 * cli/cli-script.h (struct command_lines_deleter): New.
9668 (counted_command_line): New typedef.
9669 (struct command_line): Add constructor, destructor.
9670 <body_list>: Remove.
9671 <body_list_0, body_list_1>: New members.
9672 (command_line_up): Remove typedef.
9673 (read_command_lines, read_command_lines_1, get_command_line):
9675 (copy_command_lines): Don't declare.
9676 * cli/cli-script.c (build_command_line): Use "new".
9677 (get_command_line): Return counted_command_line.
9678 (print_command_lines, execute_user_command)
9679 (execute_control_command_1, while_command, if_command): Update.
9680 (realloc_body_list): Remove.
9681 (process_next_line, recurse_read_control_structure): Update.
9682 (read_command_lines, read_command_lines_1): Return counted_command_line.
9683 (free_command_lines): Use "delete".
9684 (copy_command_lines): Remove.
9685 (define_command, document_command, show_user_1): Update.
9686 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
9687 a counted_command_line.
9688 * breakpoint.h (counted_command_line): Remove typedef.
9689 (breakpoint_set_commands): Update.
9690 * breakpoint.c (check_no_tracepoint_commands)
9691 (validate_commands_for_breakpoint): Update.
9692 (breakpoint_set_commands): Change commands to be a
9693 counted_command_line.
9694 (commands_command_1, update_dprintf_command_list)
9695 (create_tracepoint_from_upload): Update.
9697 2018-05-04 Tom Tromey <tom@tromey.com>
9699 * cli/cli-decode.h (cmd_list_element): New constructor.
9700 (~cmd_list_element): New destructor.
9701 (struct cmd_list_element): Add initializers.
9702 * cli/cli-decode.c (do_add_cmd): Use "new".
9703 (delete_cmd): Use "delete".
9705 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9706 Pedro Alves <palves@redhat.com>
9708 PR breakpoints/19806 and support for PR external/20207.
9709 * NEWS: Mention Aarch64 watchpoint improvements.
9710 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
9711 watchpoints and PR external/20207 watchpoints.
9712 * nat/aarch64-linux-hw-point.c
9713 (kernel_supports_any_contiguous_range): New.
9714 (aarch64_watchpoint_offset): New.
9715 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
9716 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
9717 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
9718 (aarch64_align_watchpoint): New parameters aligned_offset_p and
9719 next_addr_orig_p. Support PR external/20207 watchpoints.
9720 (aarch64_downgrade_regs): New.
9721 (aarch64_dr_state_insert_one_point): New parameters offset and
9723 (aarch64_dr_state_remove_one_point): Likewise.
9724 (aarch64_handle_breakpoint): Update caller.
9725 (aarch64_handle_aligned_watchpoint): Likewise.
9726 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
9728 (aarch64_linux_set_debug_regs): Remove const from state. Call
9729 aarch64_downgrade_regs.
9730 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
9731 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
9732 (DR_CONTROL_MASK): ... this.
9733 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
9734 (unsigned int aarch64_watchpoint_offset): New prototype.
9735 (aarch64_linux_set_debug_regs): Remove const from state.
9736 * utils.c (align_up, align_down): Move to ...
9737 * common/common-utils.c (align_up, align_down): ... here.
9738 * utils.h (align_up, align_down): Move to ...
9739 * common/common-utils.h (align_up, align_down): ... here.
9741 2018-05-04 Joel Brobecker <brobecker@adacore.com>
9743 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
9744 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
9745 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
9746 Re-implement to match the ABI as summarized in GCC's
9747 gcc/config/sparc/sparc.c. All callers updated.
9748 (sparc32_store_arguments): Remove assertion.
9750 2018-05-04 Tom Tromey <tom@tromey.com>
9752 * printcmd.c: Don't include tui.h.
9753 (decode_format): Use skip_spaces.
9755 2018-05-04 Tom Tromey <tom@tromey.com>
9758 * printcmd.c (last_count): New global.
9759 (x_command): Use saved count when repeating.
9761 2018-05-04 Tom Tromey <tom@tromey.com>
9763 * nto-procfs.c (do_closedir_cleanup): Remove.
9764 (procfs_pidlist): Use gdb_dir_up.
9765 * procfs.c (do_closedir_cleanup): Remove.
9766 (proc_update_threads): Use gdb_dir_up.
9767 * common/filestuff.h (struct gdb_dir_deleter): New.
9768 (gdb_dir_up): New typedef.
9770 2018-05-04 Tom Tromey <tom@tromey.com>
9772 * ada-lang.c (print_mention_exception): Use std::string.
9774 2018-05-04 Tom Tromey <tom@tromey.com>
9776 * ada-lang.c (create_excep_cond_exprs): Update.
9777 (ada_exception_catchpoint_cond_string): Use std::string.
9779 2018-05-04 Tom Tromey <tom@tromey.com>
9781 * ada-lang.c (xget_renaming_scope): Return std::string.
9782 (old_renaming_is_invisible): Update.
9784 2018-05-04 Tom Tromey <tom@tromey.com>
9786 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
9787 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
9789 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
9791 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
9793 2018-05-04 Tom Tromey <tom@tromey.com>
9795 * remote.c (remote_query_supported_append): Change type.
9796 (remote_check_symbols): Update.
9798 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
9801 * configure.ac: Prepend libpython.
9802 * python/python-config.py: Likewise.
9803 * configure: Regenerate.
9805 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
9807 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
9809 2018-05-03 Pedro Alves <palves@redhat.com>
9812 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
9813 override. Write 'true' instead of '1'.
9814 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
9817 2018-05-02 Pedro Alves <palves@redhat.com>
9819 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
9820 add_inf_child_target.
9821 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
9822 add_inf_child_target.
9823 * aix-thread.c (aix_thread_target_info): New.
9824 (aix_thread_target) <shortname, longname, doc>: Delete.
9826 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
9827 add_inf_child_target.
9828 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
9829 add_inf_child_target.
9830 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
9831 add_inf_child_target.
9832 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
9833 add_inf_child_target.
9834 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
9835 add_inf_child_target.
9836 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
9837 add_inf_child_target.
9838 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
9839 add_inf_child_target.
9840 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
9841 add_inf_child_target.
9842 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
9843 add_inf_child_target.
9844 * bfd-target.c (target_bfd_target_info): New.
9845 (target_bfd) <shortname, longname, doc>: Delete.
9847 * bsd-kvm.c (bsd_kvm_target_info): New.
9848 (bsd_kvm_target) <shortname, longname, doc>: Delete.
9850 (bsd_kvm_target::open): Rename to ...
9851 (bsd_kvm_target_open): ... this. Adjust.
9852 * bsd-uthread.c (bsd_uthread_target_info): New.
9853 (bsd_uthread_target) <shortname, longname, doc>: Delete.
9855 * corefile.c (core_file_command): Adjust.
9856 * corelow.c (core_target_info): New.
9857 (core_target) <shortname, longname, doc>: Delete.
9859 (core_target::open): Rename to ...
9860 (core_target_open): ... this. Adjust.
9861 * ctf.c (ctf_target_info): New.
9862 (ctf_target) <shortname, longname, doc>: Delete.
9864 (ctf_target::open): Rename to ...
9865 (ctf_target_open): ... this.
9866 (_initialize_ctf): Adjust.
9867 * exec.c (exec_target_info): New.
9868 (exec_target) <shortname, longname, doc>: Delete.
9870 (exec_target::open): Rename to ...
9871 (exec_target_open): ... this.
9872 * gdbcore.h (core_target_open): Declare.
9873 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
9874 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
9875 add_inf_child_target.
9876 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
9877 add_inf_child_target.
9878 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
9879 add_inf_child_target.
9880 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
9881 add_inf_child_target.
9882 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
9883 add_inf_child_target.
9884 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
9885 add_inf_child_target.
9886 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
9887 add_inf_child_target.
9888 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
9889 add_inf_child_target.
9890 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
9891 add_inf_child_target.
9892 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
9893 add_inf_child_target.
9894 * inf-child.c (inf_child_target_info): New.
9895 (inf_child_target::info): New.
9896 (inf_child_open_target): Remove 'target' parameter. Use
9897 get_native_target instead.
9898 (inf_child_target::open): Delete.
9899 (add_inf_child_target): New.
9900 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
9903 (add_inf_child_target): Declare.
9904 (inf_child_open_target): Declare.
9905 * linux-thread-db.c (thread_db_target_info): New.
9906 (thread_db_target) <shortname, longname, doc>: Delete.
9908 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
9909 add_inf_child_target.
9910 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
9911 add_inf_child_target.
9912 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
9913 add_inf_child_target.
9914 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
9915 add_inf_child_target.
9916 * make-target-delegates (print_class): Adjust.
9917 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
9918 add_inf_child_target.
9919 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
9920 add_inf_child_target.
9921 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
9922 add_inf_child_target.
9923 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
9924 add_inf_child_target.
9925 * nto-procfs.c (nto_native_target_info): New.
9926 (nto_procfs_target_native) <shortname, longname, doc>:
9929 (nto_procfs_target_info): New.
9930 (nto_procfs_target_procfs) <shortname, longname, doc>:
9933 (init_procfs_targets): Adjust.
9934 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
9935 add_inf_child_target.
9936 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
9937 add_inf_child_target.
9938 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
9939 add_inf_child_target.
9940 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
9941 add_inf_child_target.
9942 * ravenscar-thread.c (ravenscar_target_info): New.
9943 (ravenscar_thread_target) <shortname, longname, doc>:
9946 * record-btrace.c (record_btrace_target_info):
9947 (record_btrace_target) <shortname, longname, doc>: Delete.
9949 (record_btrace_target::open): Rename to ...
9950 (record_btrace_target_open): ... this. Adjust.
9951 * record-full.c (record_longname, record_doc): New.
9952 (record_full_base_target) <shortname, longname, doc>: Delete.
9954 (record_full_target_info): New.
9955 (record_full_target): <shortname>: Delete.
9957 (record_full_core_open_1, record_full_open_1): Update comments.
9958 (record_full_base_target::open): Rename to ...
9959 (record_full_open): ... this.
9960 (cmd_record_full_restore): Update.
9961 (_initialize_record_full): Update.
9962 * remote-sim.c (remote_sim_target_info): New.
9963 (gdbsim_target) <shortname, longname, doc>: Delete.
9965 (gdbsim_target::open): Rename to ...
9966 (gdbsim_target_open): ... this.
9967 (_initialize_remote_sim): Adjust.
9968 * remote.c (remote_doc): New.
9969 (remote_target_info): New.
9970 (remote_target) <shortname, longname, doc>: Delete.
9972 (extended_remote_target_info): New.
9973 (extended_remote_target) <shortname, longname, doc>: Delete.
9975 (remote_target::open_1): Make static. Adjust.
9976 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
9977 * s390-linux-nat.c (_initialize_s390_nat): Use
9978 add_inf_child_target.
9979 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
9980 add_inf_child_target.
9981 * sol-thread.c (thread_db_target_info): New.
9982 (sol_thread_target) <shortname, longname, doc>: Delete.
9984 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
9985 add_inf_child_target.
9986 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
9987 add_inf_child_target.
9988 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
9989 add_inf_child_target.
9990 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
9991 add_inf_child_target.
9992 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
9993 add_inf_child_target.
9994 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
9995 add_inf_child_target.
9996 * spu-linux-nat.c (_initialize_spu_nat): Use
9997 add_inf_child_target.
9998 * spu-multiarch.c (spu_multiarch_target_info): New.
9999 (spu_multiarch_target) <shortname, longname, doc>: Delete.
10001 * target-delegates.c: Regenerate.
10002 * target.c: Include <unordered_map>.
10003 (target_ops_p): Delete.
10004 (DEF_VEC_P(target_ops_p)): Delete.
10005 (target_factories): New.
10006 (test_target_info): New.
10007 (test_target_ops::info): New.
10008 (open_target): Adjust to use target_factories.
10009 (add_target_with_completer): Rename to ...
10010 (add_target): ... this. Change prototype. Register target_info
10011 and open callback in target_factories. Register target_info in
10012 command context instead of target_ops.
10013 (add_target): Delete old implementation.
10014 (add_deprecated_target_alias): Change prototype. Adjust.
10015 (the_native_target): New.
10016 (set_native_target, get_native_target): New.
10017 (find_default_run_target): Use the_native_target.
10018 (find_attach_target, find_run_target): Simplify.
10019 (target_ops::open): Delete.
10020 (dummy_target_info): New.
10021 (dummy_target::shortname, dummy_target::longname)
10022 (dummy_target::doc): Delete.
10023 (dummy_target::info): New.
10024 (debug_target::shortname, debug_target::longname)
10025 (debug_target::doc): Delete.
10026 (debug_target::info): New.
10027 * target.h (struct target_info): New.
10028 (target_ops::~target_ops): Add comment.
10029 (target_ops::info): New.
10030 (target_ops::shortname, target_ops::longname, target_ops::doc): No
10031 longer virtual. Implement in terms of target_info.
10032 (set_native_target, get_native_target): Declare.
10033 (target_open_ftype): New.
10034 (add_target, add_target_with_completer)
10035 (add_deprecated_target_alias): Change prototype.
10036 (test_target) <shortname, longname, doc>: Delete.
10038 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
10039 add_inf_child_target.
10040 * tracefile-tfile.c (tfile_target_info): New.
10041 (tfile_target) <shortname, longname, doc>: Delete.
10043 (tfile_target::open): Rename to ...
10044 (tfile_target_open): ... this.
10045 (_initialize_tracefile_tfile): Adjust.
10046 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
10047 add_inf_child_target.
10048 * windows-nat.c (_initialize_windows_nat): Use
10049 add_inf_child_target.
10050 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
10051 add_inf_child_target.
10053 2018-05-02 Pedro Alves <palves@redhat.com>
10055 * linux-nat.h (linux_nat_target) <low_new_thread,
10056 low_delete_thread, low_new_fork, low_forget_process,
10057 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
10058 New virtual methods.
10059 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10060 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
10061 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
10062 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10063 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
10065 * linux-fork.c (delete_fork): Adjust to call low method.
10066 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
10067 (linux_nat_new_fork, linux_nat_forget_process_hook)
10068 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
10069 (linux_nat_status_is_event):
10070 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
10071 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
10072 to call low method.
10073 (sigtrap_is_event): Rename to ...
10074 (linux_nat_target::low_status_is_event): ... this.
10075 (linux_nat_set_status_is_event): Delete.
10076 (save_stop_reason, linux_nat_wait_1)
10077 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
10079 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10080 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10081 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10082 (linux_nat_set_prepare_to_resume): Delete.
10083 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
10084 low virtual methods.
10085 * amd64-linux-nat.c: Likewise.
10086 * arm-linux-nat.c: Likewise.
10087 * i386-linux-nat.c: Likewise.
10088 * ia64-linux-nat.c: Likewise.
10089 * mips-linux-nat.c: Likewise.
10090 * ppc-linux-nat.c: Likewise.
10091 * s390-linux-nat.c: Likewise.
10092 * sparc64-linux-nat.c: Likewise.
10093 * x86-linux-nat.c: Likewise.
10094 * x86-linux-nat.h: Include "nat/x86-linux.h".
10095 (x86_linux_nat_target) <low_new_fork, low_forget_process,
10096 low_prepare_to_resume, low_new_thread, low_delete_thread>:
10099 2018-05-02 Pedro Alves <palves@redhat.com>
10101 * target.h (target_ops)
10102 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10103 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
10104 stopped_by_watchpoint, have_continuable_watchpoint,
10105 stopped_data_address, watchpoint_addr_within_range,
10106 can_accel_watchpoint_condition, can_run, thread_alive,
10107 has_all_memory, has_memory, has_stack, has_registers,
10108 has_execution, can_async_p, is_async_p, supports_non_stop,
10109 always_non_stop_p, can_execute_reverse, supports_multi_process,
10110 supports_enable_disable_tracepoint,
10111 supports_disable_randomization, supports_string_tracing,
10112 supports_evaluation_of_breakpoint_conditions,
10113 can_run_breakpoint_commands, filesystem_is_local,
10114 can_download_tracepoint, get_trace_state_variable_value,
10115 set_trace_notes, get_tib_address, use_agent, can_use_agent,
10116 record_is_replaying, record_will_replay,
10117 augmented_libraries_svr4_read>: Adjust to return bool.
10118 * aarch64-linux-nat.c: All implementations adjusted.
10119 * aix-thread.c: All implementations adjusted.
10120 * arm-linux-nat.c: All implementations adjusted.
10121 * breakpoint.c: All implementations adjusted.
10122 * bsd-kvm.c: All implementations adjusted.
10123 * bsd-uthread.c: All implementations adjusted.
10124 * corelow.c: All implementations adjusted.
10125 * ctf.c: All implementations adjusted.
10126 * darwin-nat.c: All implementations adjusted.
10127 * darwin-nat.h: All implementations adjusted.
10128 * exec.c: All implementations adjusted.
10129 * fbsd-nat.c: All implementations adjusted.
10130 * fbsd-nat.h: All implementations adjusted.
10131 * gnu-nat.c: All implementations adjusted.
10132 * gnu-nat.h: All implementations adjusted.
10133 * go32-nat.c: All implementations adjusted.
10134 * ia64-linux-nat.c: All implementations adjusted.
10135 * inf-child.c: All implementations adjusted.
10136 * inf-child.h: All implementations adjusted.
10137 * inf-ptrace.c: All implementations adjusted.
10138 * inf-ptrace.h: All implementations adjusted.
10139 * linux-nat.c: All implementations adjusted.
10140 * linux-nat.h: All implementations adjusted.
10141 * mips-linux-nat.c: All implementations adjusted.
10142 * nto-procfs.c: All implementations adjusted.
10143 * ppc-linux-nat.c: All implementations adjusted.
10144 * procfs.c: All implementations adjusted.
10145 * ravenscar-thread.c: All implementations adjusted.
10146 * record-btrace.c: All implementations adjusted.
10147 * record-full.c: All implementations adjusted.
10148 * remote-sim.c: All implementations adjusted.
10149 * remote.c: All implementations adjusted.
10150 * s390-linux-nat.c: All implementations adjusted.
10151 * sol-thread.c: All implementations adjusted.
10152 * spu-multiarch.c: All implementations adjusted.
10153 * target-delegates.c: All implementations adjusted.
10154 * target.c: All implementations adjusted.
10155 * target.h: All implementations adjusted.
10156 * tracefile-tfile.c: All implementations adjusted.
10157 * tracefile.c: All implementations adjusted.
10158 * tracefile.h: All implementations adjusted.
10159 * windows-nat.c: All implementations adjusted.
10160 * x86-linux-nat.h: All implementations adjusted.
10161 * x86-nat.h: All implementations adjusted.
10163 2018-05-02 Pedro Alves <palves@redhat.com>
10165 * make-target-delegates (scan_target_h): Don't trim lines here.
10166 Replace sequences of tabs and/or whitespace with a single
10168 (top level, parsing methods): Trim each line before processing it
10171 2018-05-02 Pedro Alves <palves@redhat.com>
10172 John Baldwin <jhb@freebsd.org>
10174 * target.h (enum strata) <debug_stratum>: New.
10175 (struct target_ops) <all delegation methods>: Replace by C++
10176 virtual methods, and drop "to_" prefix. All references updated
10178 <to_shortname, to_longname, to_doc, to_data,
10179 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
10180 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
10181 virtual methods. All references updated throughout.
10182 <can_attach, supports_terminal_ours, can_create_inferior,
10183 get_thread_control_capabilities, attach_no_wait>: New
10185 <insert_breakpoint, remove_breakpoint>: Now
10186 TARGET_DEFAULT_NORETURN methods.
10187 <info_proc>: Now returns bool.
10188 <to_magic>: Delete.
10189 (OPS_MAGIC): Delete.
10190 (current_target): Delete. All references replaced by references
10192 (target_stack): ... this. New.
10193 (target_shortname, target_longname): Adjust.
10194 (target_can_run): Now a function declaration.
10195 (default_child_has_all_memory, default_child_has_memory)
10196 (default_child_has_stack, default_child_has_registers)
10197 (default_child_has_execution): Remove target_ops parameter.
10198 (complete_target_initialization): Delete.
10199 (memory_breakpoint_target): New template class.
10200 (test_target_ops): Refactor as a C++ class with virtual methods.
10201 * make-target-delegates (NAME_PART): Tighten.
10202 (POINTER_PART, CP_SYMBOL): New.
10203 (SIMPLE_RETURN_PART): Reimplement.
10204 (VEC_RETURN_PART): Expect less.
10205 (RETURN_PART, VIRTUAL_PART): New.
10206 (METHOD): Adjust to C++ virtual methods.
10207 (scan_target_h): Remove reference to C99.
10208 (dname): Output "target_ops::" prefix.
10209 (write_function_header): Adjust to output a C++ class method.
10210 (write_declaration): New.
10211 (write_delegator): Adjust to output a C++ class method.
10212 (tdname): Output "dummy_target::" prefix.
10213 (write_tdefault, write_debugmethod): Adjust to output a C++ class
10215 (tdefault_names, debug_names): Delete.
10216 (return_types, tdefaults, styles, argtypes_array): New.
10217 (top level): All methods are delegators.
10218 (print_class): New.
10219 (top level): Print dummy_target and debug_target classes.
10220 * target-delegates.c: Regenerate.
10221 * target-debug.h (target_debug_print_enum_info_proc_what)
10222 (target_debug_print_thread_control_capabilities)
10223 (target_debug_print_thread_info_p): New.
10224 * target.c (dummy_target): Delete.
10225 (the_dummy_target, the_debug_target): New.
10226 (target_stack): Now extern.
10227 (set_targetdebug): Push/unpush debug target.
10228 (default_child_has_all_memory, default_child_has_memory)
10229 (default_child_has_stack, default_child_has_registers)
10230 (default_child_has_execution): Remove target_ops parameter.
10231 (complete_target_initialization): Delete.
10232 (add_target_with_completer): No longer call
10233 complete_target_initialization.
10234 (target_supports_terminal_ours): Use regular delegation.
10235 (update_current_target): Delete.
10236 (push_target): No longer check magic number. Don't call
10237 update_current_target.
10238 (unpush_target): Don't call update_current_target.
10239 (target_is_pushed): No longer check magic number.
10240 (target_require_runnable): Skip for all stratums over
10242 (target_ops::info_proc): New.
10243 (target_info_proc): Use find_target_at and
10244 find_default_run_target.
10245 (target_supports_disable_randomization): Use regular delegation.
10246 (target_get_osdata): Use find_target_at.
10247 (target_ops::open, target_ops::close, target_ops::can_attach)
10248 (target_ops::attach, target_ops::can_create_inferior)
10249 (target_ops::create_inferior, target_ops::can_run)
10250 (target_can_run): New.
10251 (default_fileio_target): Use regular delegation.
10252 (target_ops::fileio_open, target_ops::fileio_pwrite)
10253 (target_ops::fileio_pread, target_ops::fileio_fstat)
10254 (target_ops::fileio_close, target_ops::fileio_unlink)
10255 (target_ops::fileio_readlink): New.
10256 (target_fileio_open_1, target_fileio_unlink)
10257 (target_fileio_readlink): Always call the target method. Handle
10259 (return_zero, return_zero_has_execution): Delete.
10260 (init_dummy_target): Delete.
10261 (dummy_target::dummy_target, dummy_target::shortname)
10262 (dummy_target::longname, dummy_target::doc)
10263 (debug_target::debug_target, debug_target::shortname)
10264 (debug_target::longname, debug_target::doc): New.
10265 (target_supports_delete_record): Use regular delegation.
10266 (setup_target_debug): Delete.
10267 (maintenance_print_target_stack): Skip debug_stratum.
10268 (initialize_targets): Instantiate the_dummy_target and
10270 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
10272 (target_auxv_search, fprint_target_auxv): Adjust.
10273 (info_auxv_command): Adjust to use target_stack.
10274 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
10275 * exceptions.c (print_flush): Handle a NULL target_stack.
10276 * regcache.c (target_ops_no_register): Refactor as class with
10279 * exec.c (exec_target): New class.
10280 (exec_ops): Now an exec_target.
10281 (exec_open, exec_close_1, exec_get_section_table)
10282 (exec_xfer_partial, exec_files_info, exec_has_memory)
10283 (exec_make_note_section): Refactor as exec_target methods.
10284 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
10286 (exec_target::find_memory_regions): New.
10287 (_initialize_exec): Don't call init_exec_ops.
10288 * gdbcore.h (exec_file_clear): Delete.
10290 * corefile.c (core_target): Delete.
10291 (core_file_command): Adjust.
10292 * corelow.c (core_target): New class.
10293 (the_core_target): New.
10294 (core_close): Remove target_ops parameter.
10295 (core_close_cleanup): Adjust.
10296 (core_target::close): New.
10297 (core_open, core_detach, get_core_registers, core_files_info)
10298 (core_xfer_partial, core_thread_alive, core_read_description)
10299 (core_pid_to_str, core_thread_name, core_has_memory)
10300 (core_has_stack, core_has_registers, core_info_proc): Rework as
10301 core_target methods.
10302 (ignore, core_remove_breakpoint, init_core_ops): Delete.
10303 (_initialize_corelow): Initialize the_core_target.
10304 * gdbcore.h (core_target): Delete.
10305 (the_core_target): New.
10307 * ctf.c: (ctf_target): New class.
10308 (ctf_ops): Now a ctf_target.
10309 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
10310 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
10311 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
10313 (init_ctf_ops): Delete.
10314 (_initialize_ctf): Don't call it.
10315 * tracefile-tfile.c (tfile_target): New class.
10316 (tfile_ops): Now a tfile_target.
10317 (tfile_open, tfile_close, tfile_files_info)
10318 (tfile_get_tracepoint_status, tfile_trace_find)
10319 (tfile_fetch_registers, tfile_xfer_partial)
10320 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
10321 Refactor as tfile_target methods.
10322 (tfile_xfer_partial_features): Remove target_ops parameter.
10323 (init_tfile_ops): Delete.
10324 (_initialize_tracefile_tfile): Don't call it.
10325 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
10326 (tracefile_has_stack, tracefile_has_registers)
10327 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
10328 tracefile_target methods.
10329 (init_tracefile_ops): Delete.
10330 (tracefile_target::tracefile_target): New.
10331 * tracefile.h: Include "target.h".
10332 (tracefile_target): New class.
10333 (init_tracefile_ops): Delete.
10335 * spu-multiarch.c (spu_multiarch_target): New class.
10336 (spu_ops): Now a spu_multiarch_target.
10337 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
10338 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
10339 (spu_search_memory, spu_mourn_inferior): Refactor as
10340 spu_multiarch_target methods.
10341 (init_spu_ops): Delete.
10342 (_initialize_spu_multiarch): Remove references to init_spu_ops,
10343 complete_target_initialization.
10345 * ravenscar-thread.c (ravenscar_thread_target): New class.
10346 (ravenscar_ops): Now a ravenscar_thread_target.
10347 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
10348 (ravenscar_thread_alive, ravenscar_pid_to_str)
10349 (ravenscar_fetch_registers, ravenscar_store_registers)
10350 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
10351 (ravenscar_stopped_by_hw_breakpoint)
10352 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
10353 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
10354 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
10356 (init_ravenscar_thread_ops): Delete.
10357 (_initialize_ravenscar): Remove references to
10358 init_ravenscar_thread_ops and complete_target_initialization.
10360 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
10361 (bsd_uthread_target): New class.
10362 (bsd_uthread_ops): Now a bsd_uthread_target.
10363 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
10364 (bsd_uthread_close, bsd_uthread_mourn_inferior)
10365 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
10366 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
10367 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
10368 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
10369 (bsd_uthread_target): Delete function.
10370 (_initialize_bsd_uthread): Remove reference to
10371 complete_target_initialization.
10373 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
10374 (target_bfd): ... this new class.
10375 (target_bfd_xfer_partial, target_bfd_get_section_table)
10376 (target_bfd_close): Refactor as target_bfd methods.
10377 (target_bfd::~target_bfd): New.
10378 (target_bfd_reopen): Adjust.
10379 (target_bfd::close): New.
10381 * record-btrace.c (record_btrace_target): New class.
10382 (record_btrace_ops): Now a record_btrace_target.
10383 (record_btrace_open, record_btrace_stop_recording)
10384 (record_btrace_disconnect, record_btrace_close)
10385 (record_btrace_async, record_btrace_info)
10386 (record_btrace_insn_history, record_btrace_insn_history_range)
10387 (record_btrace_insn_history_from, record_btrace_call_history)
10388 (record_btrace_call_history_range)
10389 (record_btrace_call_history_from, record_btrace_record_method)
10390 (record_btrace_is_replaying, record_btrace_will_replay)
10391 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
10392 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
10393 (record_btrace_store_registers, record_btrace_prepare_to_store)
10394 (record_btrace_to_get_unwinder)
10395 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
10396 (record_btrace_commit_resume, record_btrace_wait)
10397 (record_btrace_stop, record_btrace_can_execute_reverse)
10398 (record_btrace_stopped_by_sw_breakpoint)
10399 (record_btrace_supports_stopped_by_sw_breakpoint)
10400 (record_btrace_stopped_by_hw_breakpoint)
10401 (record_btrace_supports_stopped_by_hw_breakpoint)
10402 (record_btrace_update_thread_list, record_btrace_thread_alive)
10403 (record_btrace_goto_begin, record_btrace_goto_end)
10404 (record_btrace_goto, record_btrace_stop_replaying_all)
10405 (record_btrace_execution_direction)
10406 (record_btrace_prepare_to_generate_core)
10407 (record_btrace_done_generating_core): Refactor as
10408 record_btrace_target methods.
10409 (init_record_btrace_ops): Delete.
10410 (_initialize_record_btrace): Remove reference to
10411 init_record_btrace_ops.
10412 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
10413 the execution_direction global.
10414 (record_full_base_target, record_full_target)
10415 (record_full_core_target): New classes.
10416 (record_full_ops): Now a record_full_target.
10417 (record_full_core_ops): Now a record_full_core_target.
10418 (record_full_target::detach, record_full_target::disconnect)
10419 (record_full_core_target::disconnect)
10420 (record_full_target::mourn_inferior, record_full_target::kill):
10422 (record_full_open, record_full_close, record_full_async): Refactor
10423 as methods of the record_full_base_target class.
10424 (record_full_resume, record_full_commit_resume): Refactor
10425 as methods of the record_full_target class.
10426 (record_full_wait, record_full_stopped_by_watchpoint)
10427 (record_full_stopped_data_address)
10428 (record_full_stopped_by_sw_breakpoint)
10429 (record_full_supports_stopped_by_sw_breakpoint)
10430 (record_full_stopped_by_hw_breakpoint)
10431 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
10432 methods of the record_full_base_target class.
10433 (record_full_store_registers, record_full_xfer_partial)
10434 (record_full_insert_breakpoint, record_full_remove_breakpoint):
10435 Refactor as methods of the record_full_target class.
10436 (record_full_can_execute_reverse, record_full_get_bookmark)
10437 (record_full_goto_bookmark, record_full_execution_direction)
10438 (record_full_record_method, record_full_info, record_full_delete)
10439 (record_full_is_replaying, record_full_will_replay)
10440 (record_full_goto_begin, record_full_goto_end, record_full_goto)
10441 (record_full_stop_replaying): Refactor as methods of the
10442 record_full_base_target class.
10443 (record_full_core_resume, record_full_core_kill)
10444 (record_full_core_fetch_registers)
10445 (record_full_core_prepare_to_store)
10446 (record_full_core_store_registers, record_full_core_xfer_partial)
10447 (record_full_core_insert_breakpoint)
10448 (record_full_core_remove_breakpoint)
10449 (record_full_core_has_execution): Refactor
10450 as methods of the record_full_core_target class.
10451 (record_full_base_target::supports_delete_record): New.
10452 (init_record_full_ops): Delete.
10453 (init_record_full_core_ops): Delete.
10454 (record_full_save): Refactor as method of the
10455 record_full_base_target class.
10456 (_initialize_record_full): Remove references to
10457 init_record_full_ops and init_record_full_core_ops.
10459 * remote.c (remote_target, extended_remote_target): New classes.
10460 (remote_ops): Now a remote_target.
10461 (extended_remote_ops): Now an extended_remote_target.
10462 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
10463 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
10464 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
10465 (remote_pass_signals, remote_set_syscall_catchpoint)
10466 (remote_program_signals, )
10467 (remote_thread_always_alive): Remove target_ops parameter.
10468 (remote_thread_alive, remote_thread_name)
10469 (remote_update_thread_list, remote_threads_extra_info)
10470 (remote_static_tracepoint_marker_at)
10471 (remote_static_tracepoint_markers_by_strid)
10472 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
10473 (remote_open): Refactor as methods of remote_target.
10474 (extended_remote_open, extended_remote_detach)
10475 (extended_remote_attach, extended_remote_post_attach):
10476 (extended_remote_supports_disable_randomization)
10477 (extended_remote_create_inferior): : Refactor as method of
10478 extended_remote_target.
10479 (remote_set_permissions, remote_open_1, remote_detach)
10480 (remote_follow_fork, remote_follow_exec, remote_disconnect)
10481 (remote_resume, remote_commit_resume, remote_stop)
10482 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
10483 (remote_terminal_ours, remote_wait, remote_fetch_registers)
10484 (remote_prepare_to_store, remote_store_registers)
10485 (remote_flash_erase, remote_flash_done, remote_files_info)
10486 (remote_kill, remote_mourn, remote_insert_breakpoint)
10487 (remote_remove_breakpoint, remote_insert_watchpoint)
10488 (remote_watchpoint_addr_within_range)
10489 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
10490 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
10491 (remote_supports_stopped_by_sw_breakpoint)
10492 (remote_stopped_by_hw_breakpoint)
10493 (remote_supports_stopped_by_hw_breakpoint)
10494 (remote_stopped_by_watchpoint, remote_stopped_data_address)
10495 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
10496 (remote_verify_memory): Refactor as methods of remote_target.
10497 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
10499 (remote_xfer_partial, remote_get_memory_xfer_limit)
10500 (remote_search_memory, remote_rcmd, remote_memory_map)
10501 (remote_pid_to_str, remote_get_thread_local_address)
10502 (remote_get_tib_address, remote_read_description): Refactor as
10503 methods of remote_target.
10504 (remote_target::fileio_open, remote_target::fileio_pwrite)
10505 (remote_target::fileio_pread, remote_target::fileio_close): New.
10506 (remote_hostio_readlink, remote_hostio_fstat)
10507 (remote_filesystem_is_local, remote_can_execute_reverse)
10508 (remote_supports_non_stop, remote_supports_disable_randomization)
10509 (remote_supports_multi_process, remote_supports_cond_breakpoints)
10510 (remote_supports_enable_disable_tracepoint)
10511 (remote_supports_string_tracing)
10512 (remote_can_run_breakpoint_commands, remote_trace_init)
10513 (remote_download_tracepoint, remote_can_download_tracepoint)
10514 (remote_download_trace_state_variable, remote_enable_tracepoint)
10515 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
10516 (remote_trace_start, remote_get_trace_status)
10517 (remote_get_tracepoint_status, remote_trace_stop)
10518 (remote_trace_find, remote_get_trace_state_variable_value)
10519 (remote_save_trace_data, remote_get_raw_trace_data)
10520 (remote_set_disconnected_tracing, remote_core_of_thread)
10521 (remote_set_circular_trace_buffer, remote_traceframe_info)
10522 (remote_get_min_fast_tracepoint_insn_len)
10523 (remote_set_trace_buffer_size, remote_set_trace_notes)
10524 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
10525 (remote_disable_btrace, remote_teardown_btrace)
10526 (remote_read_btrace, remote_btrace_conf)
10527 (remote_augmented_libraries_svr4_read, remote_load)
10528 (remote_pid_to_exec_file, remote_can_do_single_step)
10529 (remote_execution_direction, remote_thread_handle_to_thread_info):
10530 Refactor as methods of remote_target.
10531 (init_remote_ops, init_extended_remote_ops): Delete.
10532 (remote_can_async_p, remote_is_async_p, remote_async)
10533 (remote_thread_events, remote_upload_tracepoints)
10534 (remote_upload_trace_state_variables): Refactor as methods of
10536 (_initialize_remote): Remove references to init_remote_ops and
10537 init_extended_remote_ops.
10539 * remote-sim.c (gdbsim_target): New class.
10540 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
10541 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
10542 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
10543 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
10544 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
10545 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
10546 Refactor as methods of gdbsim_target.
10547 (gdbsim_ops): Now a gdbsim_target.
10548 (init_gdbsim_ops): Delete.
10549 (gdbsim_cntrl_c): Adjust.
10550 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
10552 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
10553 (the_amd64_linux_nat_target): New.
10554 (amd64_linux_fetch_inferior_registers)
10555 (amd64_linux_store_inferior_registers): Refactor as methods of
10556 amd64_linux_nat_target.
10557 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
10558 * i386-linux-nat.c: Don't include "linux-nat.h".
10559 (i386_linux_nat_target): New class.
10560 (the_i386_linux_nat_target): New.
10561 (i386_linux_fetch_inferior_registers)
10562 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
10563 as methods of i386_linux_nat_target.
10564 (_initialize_i386_linux_nat): Adjust. Set linux_target.
10565 * inf-child.c (inf_child_ops): Delete.
10566 (inf_child_fetch_inferior_registers)
10567 (inf_child_store_inferior_registers): Delete.
10568 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
10569 methods of inf_child_target.
10570 (inf_child_target::supports_terminal_ours)
10571 (inf_child_target::terminal_init)
10572 (inf_child_target::terminal_inferior)
10573 (inf_child_target::terminal_ours_for_output)
10574 (inf_child_target::terminal_ours, inf_child_target::interrupt)
10575 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
10577 (inf_child_open, inf_child_disconnect, inf_child_close)
10578 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
10579 (inf_child_post_startup_inferior, inf_child_can_run)
10580 (inf_child_pid_to_exec_file): Refactor as methods of
10582 (inf_child_follow_fork): Delete.
10583 (inf_child_target::can_create_inferior)
10584 (inf_child_target::can_attach): New.
10585 (inf_child_target::has_all_memory, inf_child_target::has_memory)
10586 (inf_child_target::has_stack, inf_child_target::has_registers)
10587 (inf_child_target::has_execution): New.
10588 (inf_child_fileio_open, inf_child_fileio_pwrite)
10589 (inf_child_fileio_pread, inf_child_fileio_fstat)
10590 (inf_child_fileio_close, inf_child_fileio_unlink)
10591 (inf_child_fileio_readlink, inf_child_use_agent)
10592 (inf_child_can_use_agent): Refactor as methods of
10594 (return_zero, inf_child_target): Delete.
10595 (inf_child_target::inf_child_target): New.
10596 * inf-child.h: Include "target.h".
10597 (inf_child_target): Delete function prototype.
10598 (inf_child_target): New class.
10599 (inf_child_open_target, inf_child_mourn_inferior)
10600 (inf_child_maybe_unpush_target): Delete.
10601 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
10602 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
10603 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
10604 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
10605 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
10606 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
10607 (inf_ptrace_wait, inf_ptrace_xfer_partial)
10608 (inf_ptrace_thread_alive, inf_ptrace_files_info)
10609 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
10610 methods of inf_ptrace_target.
10611 (inf_ptrace_target): Delete function.
10612 * inf-ptrace.h: Include "inf-child.h".
10613 (inf_ptrace_target): Delete function declaration.
10614 (inf_ptrace_target): New class.
10615 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
10616 * linux-nat.c (linux_target): New.
10617 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
10618 (linux_nat_target::~linux_nat_target): New.
10619 (linux_child_post_attach, linux_child_post_startup_inferior)
10620 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
10621 (linux_child_remove_fork_catchpoint)
10622 (linux_child_insert_vfork_catchpoint)
10623 (linux_child_remove_vfork_catchpoint)
10624 (linux_child_insert_exec_catchpoint)
10625 (linux_child_remove_exec_catchpoint)
10626 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
10627 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
10628 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
10629 (linux_nat_stopped_data_address)
10630 (linux_nat_stopped_by_sw_breakpoint)
10631 (linux_nat_supports_stopped_by_sw_breakpoint)
10632 (linux_nat_stopped_by_hw_breakpoint)
10633 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
10634 (linux_nat_kill, linux_nat_mourn_inferior)
10635 (linux_nat_xfer_partial, linux_nat_thread_alive)
10636 (linux_nat_update_thread_list, linux_nat_pid_to_str)
10637 (linux_nat_thread_name, linux_child_pid_to_exec_file)
10638 (linux_child_static_tracepoint_markers_by_strid)
10639 (linux_nat_is_async_p, linux_nat_can_async_p)
10640 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
10641 (linux_nat_supports_multi_process)
10642 (linux_nat_supports_disable_randomization, linux_nat_async)
10643 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
10644 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
10645 (linux_nat_fileio_open, linux_nat_fileio_readlink)
10646 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
10647 methods of linux_nat_target.
10648 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
10649 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
10651 (check_stopped_by_watchpoint): Adjust.
10652 (linux_xfer_partial): Delete.
10653 (linux_target_install_ops, linux_target, linux_nat_add_target):
10655 (linux_nat_target::linux_nat_target): New.
10656 * linux-nat.h: Include "inf-ptrace.h".
10657 (linux_nat_target): New.
10658 (linux_target, linux_target_install_ops, linux_nat_add_target):
10659 Delete function declarations.
10660 (linux_target): Declare global.
10661 * linux-thread-db.c (thread_db_target): New.
10662 (thread_db_target::thread_db_target): New.
10663 (thread_db_ops): Delete.
10664 (the_thread_db_target): New.
10665 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
10666 (thread_db_update_thread_list, thread_db_pid_to_str)
10667 (thread_db_extra_thread_info)
10668 (thread_db_thread_handle_to_thread_info)
10669 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
10670 (thread_db_resume): Refactor as methods of thread_db_target.
10671 (init_thread_db_ops): Delete.
10672 (_initialize_thread_db): Remove reference to init_thread_db_ops.
10673 * x86-linux-nat.c: Don't include "linux-nat.h".
10674 (super_post_startup_inferior): Delete.
10675 (x86_linux_nat_target::~x86_linux_nat_target): New.
10676 (x86_linux_child_post_startup_inferior)
10677 (x86_linux_read_description, x86_linux_enable_btrace)
10678 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
10679 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
10680 methods of x86_linux_nat_target.
10681 (x86_linux_create_target): Delete. Bits folded ...
10682 (x86_linux_add_target): ... here. Now takes a linux_nat_target
10684 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
10685 (x86_linux_nat_target): New class.
10686 (x86_linux_create_target): Delete.
10687 (x86_linux_add_target): Now takes a linux_nat_target pointer.
10688 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
10689 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
10690 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
10691 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
10692 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
10694 (x86_use_watchpoints): Delete.
10695 * x86-nat.h: Include "breakpoint.h" and "target.h".
10696 (x86_use_watchpoints): Delete.
10697 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
10698 (x86_stopped_by_watchpoint, x86_stopped_data_address)
10699 (x86_insert_watchpoint, x86_remove_watchpoint)
10700 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
10701 (x86_stopped_by_hw_breakpoint): New declarations.
10702 (x86_nat_target): New template class.
10704 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
10705 (the_ppc_linux_nat_target): New.
10706 (ppc_linux_fetch_inferior_registers)
10707 (ppc_linux_can_use_hw_breakpoint)
10708 (ppc_linux_region_ok_for_hw_watchpoint)
10709 (ppc_linux_ranged_break_num_registers)
10710 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
10711 (ppc_linux_insert_mask_watchpoint)
10712 (ppc_linux_remove_mask_watchpoint)
10713 (ppc_linux_can_accel_watchpoint_condition)
10714 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
10715 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
10716 (ppc_linux_watchpoint_addr_within_range)
10717 (ppc_linux_masked_watch_num_registers)
10718 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
10719 (ppc_linux_read_description): Refactor as methods of
10720 ppc_linux_nat_target.
10721 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
10723 * procfs.c (procfs_xfer_partial): Delete forward declaration.
10724 (procfs_target): New class.
10725 (the_procfs_target): New.
10726 (procfs_target): Delete function.
10727 (procfs_auxv_parse, procfs_attach, procfs_detach)
10728 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
10729 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
10730 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
10731 (procfs_create_inferior, procfs_update_thread_list)
10732 (procfs_thread_alive, procfs_pid_to_str)
10733 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
10734 (procfs_stopped_data_address, procfs_insert_watchpoint)
10735 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
10736 (proc_find_memory_regions, procfs_info_proc)
10737 (procfs_make_note_section): Refactor as methods of procfs_target.
10738 (_initialize_procfs): Adjust.
10739 * sol-thread.c (sol_thread_target): New class.
10740 (sol_thread_ops): Now a sol_thread_target.
10741 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
10742 (sol_thread_fetch_registers, sol_thread_store_registers)
10743 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
10744 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
10745 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
10746 (init_sol_thread_ops): Delete.
10747 (_initialize_sol_thread): Adjust. Remove references to
10748 init_sol_thread_ops and complete_target_initialization.
10750 * windows-nat.c (windows_nat_target): New class.
10751 (windows_fetch_inferior_registers)
10752 (windows_store_inferior_registers, windows_resume, windows_wait)
10753 (windows_attach, windows_detach, windows_pid_to_exec_file)
10754 (windows_files_info, windows_create_inferior)
10755 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
10756 (windows_close, windows_pid_to_str, windows_xfer_partial)
10757 (windows_get_tib_address, windows_get_ada_task_ptid)
10758 (windows_thread_name, windows_thread_alive): Refactor as
10759 windows_nat_target methods.
10760 (do_initial_windows_stuff): Adjust.
10761 (windows_target): Delete function.
10762 (_initialize_windows_nat): Adjust.
10764 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
10765 (darwin_mourn_inferior, darwin_kill_inferior)
10766 (darwin_create_inferior, darwin_attach, darwin_detach)
10767 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
10768 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
10769 (darwin_supports_multi_process): Refactor as darwin_nat_target
10771 (darwin_resume_to, darwin_files_info): Delete.
10772 (_initialize_darwin_inferior): Rename to ...
10773 (_initialize_darwin_nat): ... this. Adjust to C++ification.
10774 * darwin-nat.h: Include "inf-child.h".
10775 (darwin_nat_target): New class.
10776 (darwin_complete_target): Delete.
10777 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
10778 (darwin_target): New.
10779 (i386_darwin_fetch_inferior_registers)
10780 (i386_darwin_store_inferior_registers): Refactor as methods of
10782 (darwin_complete_target): Delete, with ...
10783 (_initialize_i386_darwin_nat): ... bits factored out here.
10785 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
10786 (the_alpha_linux_nat_target): New.
10787 (alpha_linux_register_u_offset): Refactor as
10788 alpha_linux_nat_target method.
10789 (_initialize_alpha_linux_nat): Adjust.
10790 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
10791 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10792 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
10793 methods of linux_nat_trad_target.
10794 (linux_trad_target): Delete.
10795 * linux-nat-trad.h (linux_trad_target): Delete function.
10796 (linux_nat_trad_target): New class.
10797 * mips-linux-nat.c (mips_linux_nat_target): New class.
10798 (super_fetch_registers, super_store_registers, super_close):
10800 (the_mips_linux_nat_target): New.
10801 (mips64_linux_regsets_fetch_registers)
10802 (mips64_linux_regsets_store_registers)
10803 (mips64_linux_fetch_registers, mips64_linux_store_registers)
10804 (mips_linux_register_u_offset, mips_linux_read_description)
10805 (mips_linux_can_use_hw_breakpoint)
10806 (mips_linux_stopped_by_watchpoint)
10807 (mips_linux_stopped_data_address)
10808 (mips_linux_region_ok_for_hw_watchpoint)
10809 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
10810 (mips_linux_close): Refactor as methods of mips_linux_nat.
10811 (_initialize_mips_linux_nat): Adjust to C++ification.
10813 * aix-thread.c (aix_thread_target): New class.
10814 (aix_thread_ops): Now an aix_thread_target.
10815 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
10816 (aix_thread_fetch_registers, aix_thread_store_registers)
10817 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
10818 (aix_thread_thread_alive, aix_thread_pid_to_str)
10819 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
10820 Refactor as methods of aix_thread_target.
10821 (init_aix_thread_ops): Delete.
10822 (_initialize_aix_thread): Remove references to init_aix_thread_ops
10823 and complete_target_initialization.
10824 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
10825 (rs6000_nat_target): New class.
10826 (the_rs6000_nat_target): New.
10827 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
10828 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
10829 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
10830 (super_create_inferior): Delete.
10831 (_initialize_rs6000_nat): Adjust to C++ification.
10833 * arm-linux-nat.c (arm_linux_nat_target): New class.
10834 (the_arm_linux_nat_target): New.
10835 (arm_linux_fetch_inferior_registers)
10836 (arm_linux_store_inferior_registers, arm_linux_read_description)
10837 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
10838 (arm_linux_remove_hw_breakpoint)
10839 (arm_linux_region_ok_for_hw_watchpoint)
10840 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
10841 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
10842 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
10843 arm_linux_nat_target.
10844 (_initialize_arm_linux_nat): Adjust to C++ification.
10846 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
10847 (the_aarch64_linux_nat_target): New.
10848 (aarch64_linux_fetch_inferior_registers)
10849 (aarch64_linux_store_inferior_registers)
10850 (aarch64_linux_child_post_startup_inferior)
10851 (aarch64_linux_read_description)
10852 (aarch64_linux_can_use_hw_breakpoint)
10853 (aarch64_linux_insert_hw_breakpoint)
10854 (aarch64_linux_remove_hw_breakpoint)
10855 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
10856 (aarch64_linux_region_ok_for_hw_watchpoint)
10857 (aarch64_linux_stopped_data_address)
10858 (aarch64_linux_stopped_by_watchpoint)
10859 (aarch64_linux_watchpoint_addr_within_range)
10860 (aarch64_linux_can_do_single_step): Refactor as methods of
10861 aarch64_linux_nat_target.
10862 (super_post_startup_inferior): Delete.
10863 (_initialize_aarch64_linux_nat): Adjust to C++ification.
10865 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
10866 (the_hppa_linux_nat_target): New.
10867 (hppa_linux_fetch_inferior_registers)
10868 (hppa_linux_store_inferior_registers): Refactor as methods of
10869 hppa_linux_nat_target.
10870 (_initialize_hppa_linux_nat): Adjust to C++ification.
10872 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
10873 (the_ia64_linux_nat_target): New.
10874 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
10875 (ia64_linux_stopped_data_address)
10876 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
10877 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
10878 ia64_linux_nat_target methods.
10879 (super_xfer_partial): Delete.
10880 (_initialize_ia64_linux_nat): Adjust to C++ification.
10882 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
10883 (the_m32r_linux_nat_target): New.
10884 (m32r_linux_fetch_inferior_registers)
10885 (m32r_linux_store_inferior_registers): Refactor as
10886 m32r_linux_nat_target methods.
10887 (_initialize_m32r_linux_nat): Adjust to C++ification.
10889 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
10890 (the_m68k_linux_nat_target): New.
10891 (m68k_linux_fetch_inferior_registers)
10892 (m68k_linux_store_inferior_registers): Refactor as
10893 m68k_linux_nat_target methods.
10894 (_initialize_m68k_linux_nat): Adjust to C++ification.
10896 * s390-linux-nat.c (s390_linux_nat_target): New class.
10897 (the_s390_linux_nat_target): New.
10898 (s390_linux_fetch_inferior_registers)
10899 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
10900 (s390_insert_watchpoint, s390_remove_watchpoint)
10901 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
10902 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
10903 (s390_auxv_parse, s390_read_description): Refactor as methods of
10904 s390_linux_nat_target.
10905 (_initialize_s390_nat): Adjust to C++ification.
10907 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
10908 (the_sparc_linux_nat_target): New.
10909 (_initialize_sparc_linux_nat): Adjust to C++ification.
10910 * sparc-nat.c (sparc_fetch_inferior_registers)
10911 (sparc_store_inferior_registers): Remove target_ops parameter.
10912 * sparc-nat.h (sparc_fetch_inferior_registers)
10913 (sparc_store_inferior_registers): Remove target_ops parameter.
10914 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
10915 (the_sparc64_linux_nat_target): New.
10916 (_initialize_sparc64_linux_nat): Adjust to C++ification.
10918 * spu-linux-nat.c (spu_linux_nat_target): New class.
10919 (the_spu_linux_nat_target): New.
10920 (spu_child_post_startup_inferior, spu_child_post_attach)
10921 (spu_child_wait, spu_fetch_inferior_registers)
10922 (spu_store_inferior_registers, spu_xfer_partial)
10923 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
10925 (_initialize_spu_nat): Adjust to C++ification.
10927 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
10928 (the_tilegx_linux_nat_target): New.
10929 (fetch_inferior_registers, store_inferior_registers):
10930 Refactor as methods.
10931 (_initialize_tile_linux_nat): Adjust to C++ification.
10933 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
10934 (the_xtensa_linux_nat_target): New.
10935 (xtensa_linux_fetch_inferior_registers)
10936 (xtensa_linux_store_inferior_registers): Refactor as
10937 xtensa_linux_nat_target methods.
10938 (_initialize_xtensa_linux_nat): Adjust to C++ification.
10940 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
10941 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
10942 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
10943 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
10944 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
10945 (fbsd_stopped_by_sw_breakpoint)
10946 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
10947 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
10948 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
10949 (fbsd_post_startup_inferior, fbsd_post_attach)
10950 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
10951 (fbsd_set_syscall_catchpoint)
10952 (super_xfer_partial, super_resume, super_wait)
10953 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
10954 (fbsd_handle_debug_trap): Remove target_ops parameter.
10955 (fbsd_nat_add_target): Delete.
10956 * fbsd-nat.h: Include "inf-ptrace.h".
10957 (fbsd_nat_add_target): Delete.
10958 (USE_SIGTRAP_SIGINFO): Define.
10959 (fbsd_nat_target): New class.
10961 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
10962 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
10963 (amd64bsd_target): Delete.
10964 * amd64-bsd-nat.h: New file.
10965 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
10967 (amd64_fbsd_nat_target): New class.
10968 (the_amd64_fbsd_nat_target): New.
10969 (amd64fbsd_read_description): Refactor as method of
10970 amd64_fbsd_nat_target.
10971 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10972 (_initialize_amd64fbsd_nat): Adjust to C++ification.
10973 * amd64-nat.h (amd64bsd_target): Delete function declaration.
10974 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
10975 (i386bsd_store_inferior_registers): Remove target_ops parameter.
10976 (i386bsd_target): Delete.
10977 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
10978 (i386bsd_fetch_inferior_registers)
10979 (i386bsd_store_inferior_registers): Declare.
10980 (i386_bsd_nat_target): New class.
10981 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
10982 (the_i386_fbsd_nat_target): New.
10983 (i386fbsd_resume, i386fbsd_read_description): Refactor as
10984 i386_fbsd_nat_target methods.
10985 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10986 (_initialize_i386fbsd_nat): Adjust to C++ification.
10987 * x86-bsd-nat.c (super_mourn_inferior): Delete.
10988 (x86bsd_mourn_inferior, x86bsd_target): Delete.
10989 (_initialize_x86_bsd_nat): Adjust to C++ification.
10990 * x86-bsd-nat.h: Include "x86-nat.h".
10991 (x86bsd_target): Delete declaration.
10992 (x86bsd_nat_target): New class.
10994 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
10995 (the_aarch64_fbsd_nat_target): New.
10996 (aarch64_fbsd_fetch_inferior_registers)
10997 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
10998 aarch64_fbsd_nat_target.
10999 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
11000 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
11001 (the_alpha_bsd_nat_target): New.
11002 (alphabsd_fetch_inferior_registers)
11003 (alphabsd_store_inferior_registers): Refactor as
11004 alpha_bsd_nat_target methods.
11005 (_initialize_alphabsd_nat): Refactor as methods of
11006 alpha_bsd_nat_target.
11007 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
11008 (the_amd64_nbsd_nat_target): New.
11009 (_initialize_amd64nbsd_nat): Adjust to C++ification.
11010 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
11011 (the_amd64_obsd_nat_target): New.
11012 (_initialize_amd64obsd_nat): Adjust to C++ification.
11013 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
11014 (the_arm_fbsd_nat_target): New.
11015 (arm_fbsd_fetch_inferior_registers)
11016 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
11017 (_initialize_arm_fbsd_nat): Refactor as methods of
11018 arm_fbsd_nat_target.
11019 (_initialize_arm_fbsd_nat): Adjust to C++ification.
11020 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
11021 (the_arm_netbsd_nat_target): New.
11022 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
11023 arm_netbsd_nat_target.
11024 (_initialize_arm_netbsd_nat): Adjust to C++ification.
11025 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
11026 (the_hppa_nbsd_nat_target): New.
11027 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
11028 hppa_nbsd_nat_target methods.
11029 (_initialize_hppanbsd_nat): Adjust to C++ification.
11030 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
11031 (the_hppa_obsd_nat_target): New.
11032 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
11033 methods of hppa_obsd_nat_target.
11034 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
11036 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
11037 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
11039 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
11040 (_initialize_i386obsd_nat): Use add_target.
11041 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
11042 (the_m68k_bsd_nat_target): New.
11043 (m68kbsd_fetch_inferior_registers)
11044 (m68kbsd_store_inferior_registers): Refactor as methods of
11045 m68k_bsd_nat_target.
11046 (_initialize_m68kbsd_nat): Adjust to C++ification.
11047 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
11048 (the_mips_fbsd_nat_target): New.
11049 (mips_fbsd_fetch_inferior_registers)
11050 (mips_fbsd_store_inferior_registers): Refactor as methods of
11051 mips_fbsd_nat_target.
11052 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
11054 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
11055 (the_mips_nbsd_nat_target): New.
11056 (mipsnbsd_fetch_inferior_registers)
11057 (mipsnbsd_store_inferior_registers): Refactor as methods of
11058 mips_nbsd_nat_target.
11059 (_initialize_mipsnbsd_nat): Adjust to C++ification.
11060 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
11061 (the_mips64_obsd_nat_target): New.
11062 (mips64obsd_fetch_inferior_registers)
11063 (mips64obsd_store_inferior_registers): Refactor as methods of
11064 mips64_obsd_nat_target.
11065 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
11067 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
11069 * nbsd-nat.h: Include "inf-ptrace.h".
11070 (nbsd_nat_target): New class.
11071 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
11072 (obsd_wait): Refactor as methods of obsd_nat_target.
11073 (obsd_add_target): Delete.
11074 * obsd-nat.h: Include "inf-ptrace.h".
11075 (obsd_nat_target): New class.
11076 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
11077 (the_ppc_fbsd_nat_target): New.
11078 (ppcfbsd_fetch_inferior_registers)
11079 (ppcfbsd_store_inferior_registers): Refactor as methods of
11080 ppc_fbsd_nat_target.
11081 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
11083 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
11084 (the_ppc_nbsd_nat_target): New.
11085 (ppcnbsd_fetch_inferior_registers)
11086 (ppcnbsd_store_inferior_registers): Refactor as methods of
11087 ppc_nbsd_nat_target.
11088 (_initialize_ppcnbsd_nat): Adjust to C++ification.
11089 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
11090 (the_ppc_obsd_nat_target): New.
11091 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
11092 methods of ppc_obsd_nat_target.
11093 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
11095 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
11096 (the_sh_nbsd_nat_target): New.
11097 (shnbsd_fetch_inferior_registers)
11098 (shnbsd_store_inferior_registers): Refactor as methods of
11099 sh_nbsd_nat_target.
11100 (_initialize_shnbsd_nat): Adjust to C++ification.
11101 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
11102 (inf_ptrace_xfer_partial): Delete.
11103 (sparc_xfer_partial, sparc_target): Delete.
11104 * sparc-nat.h (sparc_fetch_inferior_registers)
11105 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
11106 (sparc_target): Delete function declaration.
11107 (sparc_target): New template class.
11108 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
11109 (_initialize_sparcnbsd_nat): Adjust to C++ification.
11110 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
11111 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
11113 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
11114 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
11115 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
11116 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
11118 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
11119 (the_vax_bsd_nat_target): New.
11120 (vaxbsd_fetch_inferior_registers)
11121 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
11123 (_initialize_vaxbsd_nat): Adjust to C++ification.
11125 * bsd-kvm.c (bsd_kvm_target): New class.
11126 (bsd_kvm_ops): Now a bsd_kvm_target.
11127 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
11128 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
11129 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
11131 (bsd_kvm_return_one): Delete.
11132 (bsd_kvm_add_target): Adjust to C++ification.
11134 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
11135 (nto_procfs_target_procfs): New classes.
11136 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
11137 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
11138 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
11139 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
11140 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
11141 (procfs_remove_hw_breakpoint, procfs_resume)
11142 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
11143 (procfs_kill_inferior, procfs_store_registers)
11144 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
11145 as methods of nto_procfs_target.
11146 (nto_procfs_ops): Now an nto_procfs_target_procfs.
11147 (nto_native_ops): Delete.
11148 (procfs_open, procfs_native_open): Delete.
11149 (nto_native_ops): Now an nto_procfs_target_native.
11150 (init_procfs_targets): Adjust to C++ification.
11151 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
11152 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
11153 Refactor as methods of nto_procfs_target.
11155 * go32-nat.c (go32_nat_target): New class.
11156 (the_go32_nat_target): New.
11157 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
11158 (go32_store_registers, go32_xfer_partial, go32_files_info)
11159 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
11160 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
11161 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
11162 (go32_pid_to_str): Refactor as methods of go32_nat_target.
11163 (go32_target): Delete.
11164 (_initialize_go32_nat): Adjust to C++ification.
11166 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
11167 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
11168 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
11169 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
11171 (gnu_target): Delete.
11172 * gnu-nat.h (gnu_target): Delete.
11173 (gnu_nat_target): New class.
11174 * i386-gnu-nat.c (gnu_base_target): New.
11175 (i386_gnu_nat_target): New class.
11176 (the_i386_gnu_nat_target): New.
11177 (_initialize_i386gnu_nat): Adjust to C++ification.
11179 2018-05-02 Pedro Alves <palves@redhat.com>
11181 * bfd-target.c (target_bfd_xclose): Rename to ...
11182 (target_bfd_close): ... this.
11183 (target_bfd_reopen): Adjust.
11184 * target.c (target_close): Remove references to to_xclose.
11185 * target.h (target_ops::to_xclose): Delete.
11186 (target_ops::to_close): Update comments.
11188 2018-05-02 Pedro Alves <palves@redhat.com>
11190 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
11192 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
11193 * inf-ptrace.c (inf_ptrace_register_u_offset)
11194 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11195 (inf_ptrace_store_register, inf_ptrace_store_registers)
11196 (inf_ptrace_trad_target): Move to ...
11197 * linux-nat-trad.c: ... this new file.
11198 * linux-nat-trad.h: New file.
11199 * linux-nat.c (linux_target_install_ops): Make extern.
11200 (linux_trad_target): Delete.
11201 * linux-nat.h (linux_trad_target): Delete declaration.
11202 (linux_target_install_ops): Declare.
11203 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
11206 2018-05-02 Pedro Alves <palves@redhat.com>
11208 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11209 procfs_target/add_target here.
11210 * procfs.c (procfs_target): Make static.
11211 (_initialize_procfs): Call add_target here.
11212 * procfs.h (struct target_ops): Remove forward declaration.
11213 (procfs_target): Remove declaration.
11214 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
11216 2018-05-02 Pedro Alves <palves@redhat.com>
11218 * procfs.c (procfs_stopped_by_watchpoint)
11219 (procfs_insert_watchpoint, procfs_remove_watchpoint)
11220 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
11222 (procfs_use_watchpoints): Delete, move contents...
11223 (procfs_target): ... here.
11224 * procfs.h (procfs_use_watchpoints): Delete declaration.
11225 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11226 procfs_use_watchpoints.
11227 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
11228 procfs_use_watchpoints.
11230 2018-05-02 Tom Tromey <tom@tromey.com>
11233 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
11234 and var_zuinteger_unlimited.
11235 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
11236 and PARAM_ZUINTEGER_UNLIMITED.
11237 (set_parameter_value): Handle var_zuinteger and
11238 var_zuinteger_unlimited.
11239 (add_setshow_generic): Likewise.
11240 (parmpy_init): Likewise.
11242 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
11245 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
11246 pointer is not null before dereferencing it.
11248 2018-04-30 Tom Tromey <tom@tromey.com>
11250 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
11253 2018-04-30 Tom Tromey <tom@tromey.com>
11255 * breakpoint.c (mention): Remove use of is_mi_like_p.
11256 (print_mention_ranged_breakpoint): Likewise.
11257 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
11260 2018-04-30 Tom Tromey <tom@tromey.com>
11262 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
11264 2018-04-30 Tom Tromey <tom@tromey.com>
11266 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
11267 (info_spu_event_command): Remove some uses of is_mi_like_p.
11269 2018-04-30 Tom Tromey <tom@tromey.com>
11271 * python/py-framefilter.c (py_print_single_arg)
11272 (enumerate_locals, py_print_args, py_print_frame): Remove some
11273 uses of is_mi_like_p.
11275 2018-04-30 Tom Tromey <tom@tromey.com>
11277 * ui-out.c: Update.
11278 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
11279 * ui-out.h (ui_out::is_mi_like_p): Now const.
11280 (ui_out::do_is_mi_like_p): Now const.
11281 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
11283 2018-04-30 Tom Tromey <tom@tromey.com>
11285 * varobj.c (varobj_set_visualizer): Use new_reference.
11286 * python/python.c (gdbpy_decode_line): Use new_reference.
11287 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
11290 2018-04-30 Tom Tromey <tom@tromey.com>
11292 * varobj.c (install_new_value): Use new_reference.
11293 * value.h (value_incref): Return void. Swap intro comment with
11295 * value.c (set_value_parent): Use new_reference.
11296 (value_incref): Return void. Update intro comment.
11297 (release_value): Use new_reference.
11298 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
11300 2018-04-30 Tom Tromey <tom@tromey.com>
11302 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
11303 * gdb_bfd.h (new_bfd_ref): Remove.
11304 (gdb_bfd_open): Update comment.
11305 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11306 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
11307 (gdb_bfd_fdopenr): Use new_reference.
11308 * exec.c (exec_file_attach): Use new_reference.
11310 2018-04-30 Tom Tromey <tom@tromey.com>
11312 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
11315 2018-04-30 Tom Tromey <tom@tromey.com>
11317 * jit.c (jit_read_code_entry): Use type_align.
11318 * i386-tdep.c (i386_gdbarch_init): Don't call
11319 set_gdbarch_long_long_align_bit.
11320 * gdbarch.sh: Remove long_long_align_bit.
11321 * gdbarch.c, gdbarch.h: Rebuild.
11322 * arc-tdep.c (arc_type_align): New function.
11323 (arc_gdbarch_init): Use arc_type_align. Don't call
11324 set_gdbarch_long_long_align_bit.
11326 2018-04-30 Tom Tromey <tom@tromey.com>
11328 * rust-lang.c (rust_type_alignment): Remove.
11329 (rust_composite_type): Use type_align.
11331 2018-04-30 Tom Tromey <tom@tromey.com>
11333 * NEWS: Mention Type.align.
11334 * python/py-type.c (typy_get_alignof): New function.
11335 (type_object_getset): Add "alignof".
11337 2018-04-30 Tom Tromey <tom@tromey.com>
11341 * std-operator.def (UNOP_ALIGNOF): New operator.
11342 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
11344 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
11345 * c-lang.c (c_op_print_tab): Add alignof.
11346 * c-exp.y (ALIGNOF): New token.
11347 (exp): Add "ALIGNOF" production.
11348 (ident_tokens): Add _Alignof and alignof.
11350 2018-04-30 Tom Tromey <tom@tromey.com>
11352 * i386-tdep.c (i386_type_align): New function.
11353 (i386_gdbarch_init): Update.
11354 * gdbarch.sh (type_align): New method.
11355 * gdbarch.c, gdbarch.h: Rebuild.
11356 * arch-utils.h (default_type_align): Declare.
11357 * arch-utils.c (default_type_align): New function.
11358 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
11359 (struct type) <align_log2>: New field.
11360 <instance_flags>: Now a bitfield.
11361 (TYPE_RAW_ALIGN): New macro.
11362 (type_align, type_raw_align, set_type_align): Declare.
11363 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
11365 * dwarf2read.c (quirk_rust_enum): Set type alignment.
11366 (get_alignment, maybe_set_alignment): New functions.
11367 (read_structure_type, read_enumeration_type, read_array_type)
11368 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
11369 (read_subrange_type, read_base_type): Set type alignment.
11371 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
11373 * dwarf2read.c (read_index_from_section): Use bool.
11375 2018-04-29 Fabian Groffen <grobian@gentoo.org>
11378 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
11381 2018-04-29 John Reiser <jreiser@BitWagon.com>
11384 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
11385 last step, and do it atomically.
11387 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
11389 * compile/compile-c-types.c (convert_int, convert_float):
11390 Update for C FE v1.
11392 2018-04-27 Tom Tromey <tom@tromey.com>
11395 * rust-lang.c (rust_inclusive_range_type_p): New function.
11396 (rust_range): Handle inclusive ranges.
11397 (rust_compute_range): Likewise.
11398 * rust-exp.y (struct rust_op) <inclusive>: New field.
11399 (DOTDOTEQ): New constant.
11400 (range_expr): Add "..=" productions.
11401 (operator_tokens): Add "..=" token.
11402 (ast_range): Add "inclusive" parameter.
11403 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
11405 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
11407 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
11408 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
11410 * expprint.c (print_subexp_standard): Handle new bounds values.
11411 (dump_subexp_body_standard): Likewise.
11413 2018-04-27 Tom Tromey <tom@tromey.com>
11415 * configure: Rebuild.
11416 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
11417 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
11419 (class symbol_needs_eval_context): Likewise.
11420 * dwarf2read.c (mock_mapped_index::symbol_name_count)
11421 (mock_mapped_index::symbol_name_at): Use "override". Remove
11423 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
11425 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
11426 * aarch64-tdep.c (instruction_reader::read): Use "override".
11427 (instruction_reader_test::read): Likewise.
11428 * arm-tdep.c (instruction_reader::read): Use "override".
11429 (instruction_reader_thumb::read): Likewise.
11431 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
11434 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
11435 instead of remote_send.
11436 (remote_send): Remove.
11438 2018-04-26 Pedro Alves <palves@redhat.com>
11440 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
11441 find_function_start_sal instead of find_pc_line.
11443 2018-04-26 Pedro Alves <palves@redhat.com>
11445 * breakpoint.c (set_breakpoint_location_function): Handle
11446 mst_data_gnu_ifunc.
11447 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
11448 * elfread.c (elf_symtab_read): Give data symbols with
11449 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
11450 (elf_rel_plt_read): Update comment.
11451 * linespec.c (convert_linespec_to_sals): Handle
11452 mst_data_gnu_ifunc.
11453 (minsym_found): Handle mst_data_gnu_ifunc.
11454 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
11455 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
11456 * parse.c (find_minsym_type_and_address): Handle
11457 mst_data_gnu_ifunc.
11458 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
11459 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
11460 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
11462 <mst_data_gnu_ifunc>: New enumerator.
11464 2018-04-26 Pedro Alves <palves@redhat.com>
11466 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
11467 (lookup_minimal_symbol_by_pc_section): ... this. Replace
11468 'want_trampoline' parameter by a lookup_msym_prefer parameter.
11470 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
11471 (lookup_minimal_symbol_by_pc): Adjust.
11472 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
11473 (lookup_solib_trampoline_symbol_by_pc): Adjust.
11474 * minsyms.h (lookup_msym_prefer): New enum.
11475 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11476 parameter by a lookup_msym_prefer parameter.
11478 2018-04-26 Pedro Alves <palves@redhat.com>
11480 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
11481 ends in "@plt" instead of looking at the symbol's section.
11483 2018-04-26 Pedro Alves <palves@redhat.com>
11485 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
11487 (find_pc_partial_function_gnu_ifunc): Rename to ...
11488 (find_pc_partial_function): ... this, and remove references to
11490 (find_pc_partial_function): Delete old implementation.
11491 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
11493 2018-04-26 Pedro Alves <palves@redhat.com>
11495 * linespec.c (struct bound_minimal_symbol_search_key): New.
11496 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
11497 skip first line if we found a GNU ifunc minimal symbol by name.
11498 (compare_msymbols): Change parameters to work with a destructured
11500 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
11503 2018-04-26 Pedro Alves <palves@redhat.com>
11505 * breakpoint.c (set_breakpoint_location_function): Don't resolve
11506 ifunc targets here. Instead, if we have an ifunc minsym, use its
11508 (add_location_to_breakpoint): Store the minsym and the objfile in
11509 the breakpoint location.
11510 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
11511 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
11512 Record the minsym in the sal.
11513 * symtab.h (symtab_and_line) <msymbol>: New field.
11515 2018-04-26 Pedro Alves <palves@redhat.com>
11517 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
11518 unless we actually resolved the ifunc.
11520 2018-04-26 Pedro Alves <palves@redhat.com>
11522 * c-exp.y (variable production): Prefer ifunc minsyms over
11523 regular function symbols.
11524 * symtab.c (find_gnu_ifunc): New function.
11525 * minsyms.h (lookup_msym_prefer): New enum.
11526 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11527 parameter by a lookup_msym_prefer parameter.
11528 * symtab.h (find_gnu_ifunc): New declaration.
11530 2018-04-26 Pedro Alves <palves@redhat.com>
11532 * blockframe.c (find_gnu_ifunc_target_type): New function.
11533 (find_function_type): New.
11534 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
11535 return a value with a memory address.
11536 (eval_call): For calls to GNU ifunc functions, try to find the
11537 type of the target function from the type that the resolver
11539 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
11541 * infcall.c (find_function_return_type): Delete.
11542 (find_function_addr): Add 'function_type' parameter. For calls to
11543 GNU ifunc functions, try to find the type of the target function
11544 from the type that the resolver returns, and return it via
11546 (call_function_by_hand_dummy): Adjust to use the function type
11547 returned by find_function_addr.
11548 (find_function_addr): Add 'function_type' parameter and move
11550 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
11553 2018-04-26 Pedro Alves <palves@redhat.com>
11555 * c-exp.y (variable production): Skip finding an alias for ifunc
11558 2018-04-26 Pedro Alves <palves@redhat.com>
11560 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
11562 2018-04-25 Pedro Alves <palves@redhat.com>
11564 * infcmd.c (kill_command): Print the pid as string, not the whole
11565 thread's ptid. Add comment. s/has been killed/killed/ in output
11567 * remote.c (remote_detach_1): Print the pid as string, not the
11568 whole thread's ptid.
11570 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11571 Sergio Durigan Junior <sergiodj@redhat.com>
11572 Pedro Alves <palves@redhat.com>
11574 * infcmd.c (kill_command): Print message when inferior has
11576 * inferior.c (print_inferior_events): Remove 'static'. Set as
11578 (add_inferior): Improve message printed when
11579 'print_inferior_events' is on.
11580 (exit_inferior): Remove message printed when
11581 'print_inferior_events' is on.
11582 (detach_inferior): Improve message printed when
11583 'print_inferior_events' is on.
11584 (initialize_inferiors): Use 'add_inferior_silent' to set
11585 'current_inferior_'.
11586 * inferior.h (print_inferior_events): Declare here as
11588 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
11589 '[Detaching...]' messages when 'print_inferior_events' is on.
11590 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
11591 as prefix/suffix for messages. Remove periods. Fix erroneous
11592 'Detaching after fork from child...', replace it by '... from
11594 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
11595 prefix/suffix when printing 'Detaching...' messages. Print
11596 them when 'print_inferior_events' is on.
11597 * remote.c (remote_detach_1): Print message when detaching
11598 from inferior and '!is_fork_parent'.
11600 2018-04-24 Tom Tromey <tom@tromey.com>
11602 * cli-out.h: Reindent.
11604 2018-04-24 Tom Tromey <tom@tromey.com>
11606 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
11607 (cli_ui_out::do_field_string): Use fputs_filtered.
11608 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
11610 2018-04-23 Tom Tromey <tom@tromey.com>
11612 * guile/scm-frame.c (gdbscm_frame_read_var): Use
11613 gdb::unique_xmalloc_ptr.
11615 2018-04-23 Tom Tromey <tom@tromey.com>
11617 * configure: Rebuild.
11619 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
11622 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
11623 prepare_for_testing. Set normal_bp to r_debug_state if target
11626 2018-04-21 Pedro Alves <palves@redhat.com>
11627 Rajendra SY <rajendra.sy@gmail.com>
11629 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
11630 * remote.c (extended_remote_attach): In all-stop mode, mark the
11631 thread as executing.
11633 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11635 * thread.c (thread_apply_all_command): Fix comment.
11636 (thread_command): Fix comment.
11638 2018-04-10 Alan Hayward <alan.hayward@arm.com>
11640 * common/tdesc.h (tdesc_create_feature): Remove xml filename
11642 * features/aarch64-core.c (create_feature_aarch64_core):
11644 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
11646 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
11648 * features/i386/32bit-avx512.c
11649 (create_feature_i386_32bit_avx512): Likewise.
11650 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
11652 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
11654 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
11656 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
11658 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
11660 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
11662 * features/i386/64bit-avx512.c
11663 (create_feature_i386_64bit_avx512): Likewise.
11664 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
11666 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
11668 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
11670 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
11672 * features/i386/64bit-segments.c
11673 (create_feature_i386_64bit_segments): Likewise.
11674 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
11676 * features/i386/x32-core.c
11677 (create_feature_i386_x32_core): Likewise.
11678 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
11679 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
11680 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
11681 * target-descriptions.c: In generated code, don't pass xml
11684 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11686 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
11687 (print_xml_feature::visit_post): Likewise.
11688 (print_xml_feature::visit): Likewise.
11689 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
11690 (print_xml_feature): Add new class.
11691 * regformats/regdat.sh: Null xmltarget on feature targets.
11692 * target-descriptions.c (struct target_desc): Add xmltarget.
11693 (maintenance_check_tdesc_xml_convert): Add unittest function.
11694 (tdesc_get_features_xml): Add function to get xml.
11695 (maintenance_check_xml_descriptions): Test xml generation.
11696 * xml-tdesc.c (string_read_description_xml): Add function.
11697 * xml-tdesc.h (string_read_description_xml): Add declaration.
11699 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11701 * features/Makefile: Add feature marker to targets with new style
11702 target descriptions.
11703 * regformats/aarch64.dat: Regenerate.
11704 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
11705 * regformats/i386/amd64-avx-linux.dat: Likewise.
11706 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
11707 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
11708 * regformats/i386/amd64-linux.dat: Likewise.
11709 * regformats/i386/amd64-mpx-linux.dat: Likewise.
11710 * regformats/i386/amd64.dat: Likewise.
11711 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
11712 * regformats/i386/i386-avx-linux.dat: Likewise.
11713 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
11714 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
11715 * regformats/i386/i386-linux.dat: Likewise.
11716 * regformats/i386/i386-mmx-linux.dat: Likewise.
11717 * regformats/i386/i386-mpx-linux.dat: Likewise.
11718 * regformats/i386/i386.dat: Likewise.
11719 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
11720 * regformats/i386/x32-avx-linux.dat: Likewise.
11721 * regformats/i386/x32-linux.dat: Likewise.
11722 * regformats/tic6x-c62x-linux.dat: Likewise.
11723 * regformats/tic6x-c64x-linux.dat: Likewise.
11724 * regformats/tic6x-c64xp-linux.dat: Likewise.
11725 * regformats/regdat.sh: Parse feature marker.
11727 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11729 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
11730 (tdesc_osabi_name): Likewise.
11731 * target-descriptions.c (tdesc_architecture_name): Add new
11733 (tdesc_osabi_name): Likewise.
11735 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11737 * common/tdesc.c (tdesc_predefined_type): Move to here.
11738 (tdesc_named_type): Likewise.
11739 (tdesc_create_vector): Likewise.
11740 (tdesc_create_struct): Likewise.
11741 (tdesc_set_struct_size): Likewise.
11742 (tdesc_create_union): Likewise.
11743 (tdesc_create_flags): Likewise.
11744 (tdesc_create_enum): Likewise.
11745 (tdesc_add_field): Likewise.
11746 (tdesc_add_typed_bitfield): Likewise.
11747 (tdesc_add_bitfield): Likewise.
11748 (tdesc_add_flag): Likewise.
11749 (tdesc_add_enum_value): Likewise.
11750 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
11751 (struct tdesc_type_vector): Likewise.
11752 (struct tdesc_type_field): Likewise.
11753 (struct tdesc_type_with_fields): Likewise.
11754 (tdesc_create_enum): Add declaration.
11755 (tdesc_add_typed_bitfield): Likewise.
11756 (tdesc_add_enum_value): Likewise.
11757 * target-descriptions.c (tdesc_type_field): Move from here.
11758 (tdesc_type_builtin): Likewise.
11759 (tdesc_type_vector): Likewise.
11760 (tdesc_type_with_fields): Likewise.
11761 (tdesc_predefined_types): Likewise.
11762 (tdesc_named_type): Likewise.
11763 (tdesc_create_vector): Likewise.
11764 (tdesc_create_struct): Likewise.
11765 (tdesc_set_struct_size): Likewise.
11766 (tdesc_create_union): Likewise.
11767 (tdesc_create_flags): Likewise.
11768 (tdesc_create_enum): Likewise.
11769 (tdesc_add_field): Likewise.
11770 (tdesc_add_typed_bitfield): Likewise.
11771 (tdesc_add_bitfield): Likewise.
11772 (tdesc_add_flag): Likewise.
11773 (tdesc_add_enum_value): Likewise.
11774 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
11775 (tdesc_add_typed_bitfield): Likewise.
11776 (tdesc_add_enum_value): Likewise.
11778 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11780 * common/tdesc.c (tdesc_feature::accept): Move to here.
11781 (tdesc_feature::operator==): Likewise.
11782 (tdesc_create_reg): Likewise.
11783 * common/tdesc.h (tdesc_type_kind): Likewise.
11784 (struct tdesc_type): Likewise.
11785 (struct tdesc_feature): Likewise.
11786 * regformats/regdat.sh: Create a feature.
11787 * target-descriptions.c (tdesc_type_kind): Move from here.
11788 (tdesc_type): Likewise.
11789 (tdesc_type_up): Likewise.
11790 (tdesc_feature): Likewise.
11791 (tdesc_create_reg): Likewise.
11793 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11795 * Makefile.in: Add arch/tdesc.c
11796 * common/tdesc.c: New file.
11797 * common/tdesc.h (tdesc_element_visitor): Move to here.
11798 (tdesc_element): Likewise.
11799 (tdesc_reg): Likewise.
11800 (tdesc_reg_up): Likewise.
11801 * regformats/regdef.h (reg): Add offset to constructors.
11802 * target-descriptions.c (tdesc_element_visitor): Move from here.
11803 (tdesc_element): Likewise.
11804 (tdesc_reg): Likewise.
11805 (tdesc_reg_up): Likewise.
11807 2018-04-17 Tom Tromey <tom@tromey.com>
11809 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
11810 discriminant field.
11812 2018-04-17 Tom Tromey <tom@tromey.com>
11814 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
11816 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
11818 * symtab.c (print_symbol_info): Skip printing filename and line
11819 number when `last' is NULL.
11820 (symtab_symbol_info): Use empty string instead of NULL for first
11821 invocation of print_symbol_info.
11822 (rbreak_command): Pass NULL to `last' parameter of
11825 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
11827 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
11828 instead of nullptr.
11830 2018-04-16 Pedro Alves <palves@redhat.com>
11832 * MAINTAINERS (sh): Remove.
11833 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
11834 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
11835 (ALLDEPFILES): Remove sh64-tdep.c.
11836 * NEWS: Mentions that support for SH-5/SH64 is removed.
11837 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
11838 (sh*-*-openbsd*): Ditto.
11839 (sh64-*-elf*): Remove.
11841 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
11842 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
11843 * sh-tdep.c: No longer include "sh64-tdep.h".
11844 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
11845 * sh64-tdep.c, sh64-tdep.h: Remove files.
11847 2018-04-16 Pedro Alves <palves@redhat.com>
11849 * MAINTAINERS: Remove m88k.
11850 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
11851 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
11852 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
11853 * NEWS: Mention that support for m88k was removed.
11854 * configure.host (m88*-*-*): Remove support.
11855 * configure.nat (m88k-*-*): Remove support.
11856 * configure.tgt (m88*-*-openbsd*): Remove.
11857 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
11859 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
11861 * configure.tgt (x86_tobjs): New variable.
11862 (amd64_tobjs, i386_tobjs): Use it.
11864 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11866 * symtab.c (print_symbol_info): Precede the symbol definition by
11867 the line number when available.
11868 * NEWS: Advertise this enhancement.
11870 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11872 * NEWS (New options): announce set/show record btrace cpu.
11873 * btrace.c: Include record-btrace.h.
11874 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
11875 the vendor is unknown.
11876 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
11877 Maybe overwrite the btrace configuration's cpu.
11878 (btrace_compute_ftrace): Add cpu parameter. Update callers.
11879 (btrace_fetch): Add cpu parameter. Update callers.
11880 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
11881 Maybe overwrite the btrace configuration's cpu. Skip enabling
11882 errata workarounds if the vendor is unknown.
11883 * python/py-record-btrace.c: Include record-btrace.h.
11884 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
11885 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
11886 * record-btrace.c (record_btrace_cpu_state_kind): New.
11887 (record_btrace_cpu): New.
11888 (set_record_btrace_cpu_cmdlist): New.
11889 (record_btrace_get_cpu): New.
11890 (require_btrace_thread, record_btrace_info)
11891 (record_btrace_resume_thread): Call record_btrace_get_cpu.
11892 (cmd_set_record_btrace_cpu_none): New.
11893 (cmd_set_record_btrace_cpu_auto): New.
11894 (cmd_set_record_btrace_cpu): New.
11895 (cmd_show_record_btrace_cpu): New.
11896 (_initialize_record_btrace): Initialize set/show record btrace cpu
11898 * record-btrace.h (record_btrace_get_cpu): New.
11900 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11902 * record.c (set_record_command): Fix typo in message.
11904 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11906 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
11908 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11910 * infrun.c (process_event_stop_test): Call
11911 gdbarch_in_indirect_branch_thunk.
11912 * gdbarch.sh (in_indirect_branch_thunk): New.
11913 * gdbarch.c: Regenerated.
11914 * gdbarch.h: Regenerated.
11917 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
11918 (HFILES_NO_SRCDIR): Add x86-tdep.h.
11919 (ALLDEPFILES): Add x86-tdep.c.
11920 * arch-utils.h (default_in_indirect_branch_thunk): New.
11921 * arch-utils.c (default_in_indirect_branch_thunk): New.
11922 * i386-tdep: Include x86-tdep.h.
11923 (i386_in_indirect_branch_thunk): New.
11924 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
11926 * amd64-tdep: Include x86-tdep.h.
11927 (amd64_in_indirect_branch_thunk): New.
11928 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
11930 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11933 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
11934 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
11935 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
11938 2018-04-12 Tom Tromey <tom@tromey.com>
11940 * rust-lang.c (rust_print_struct_def): Remove univariant code.
11941 (rust_evaluate_subexp): Likewise.
11943 2018-04-12 Pedro Alves <palves@redhat.com>
11945 * procfs.c (procfs_detach): Make forward declaration's prototype
11946 match definition's protototype.
11947 (proc_get_LDT_entry): Remove stale do_cleanups call.
11949 2018-04-12 Pedro Alves <palves@redhat.com>
11951 * target.h (target_ops::to_has_exited): Delete.
11952 (target_has_exited): Delete.
11953 * target-delegates.c: Regenerate.
11955 2018-04-11 Pedro Alves <palves@redhat.com>
11957 * target.c (fileio_fh_t::t): Add comment.
11958 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11959 (target_fileio_close): Handle a NULL target.
11960 (invalidate_fileio_fh): New.
11961 (target_close): Call it.
11962 * remote.c (remote_hostio_send_command): No longer check whether
11963 remote_desc is open.
11965 2018-04-11 Pedro Alves <palves@redhat.com>
11967 * target.c (fileio_fh_t): Make it a named struct instead of a
11969 (fileio_fh_t::is_closed): New method.
11970 (DEF_VEC_O (fileio_fh_t)): Remove.
11971 (fileio_fhandles): Now a std::vector.
11972 (is_closed_fileio_fh): Delete.
11973 (acquire_fileio_fd): Adjust. Rename parameters.
11974 (release_fileio_fd): Adjust.
11975 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
11976 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11977 (target_fileio_close): Adjust.
11979 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
11981 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
11984 2018-04-10 Pedro Alves <palves@redhat.com>
11986 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
11987 (scoped_finish_thread_state): New class.
11988 * infcmd.c (run_command_1): Use it instead of finish_thread_state
11990 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
11991 (fetch_inferior_event, normal_stop): Likewise.
11992 * thread.c (finish_thread_state_cleanup): Delete.
11994 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11995 Pedro Alves <palves@redhat.com>
11997 * value.c: Include "selftest.h" and "common/array-view.h".
11998 (struct range) <operator ==>: New.
11999 (test_ranges_contain): New.
12000 (check_ranges_vector): New.
12001 (test_insert_into_bit_range_vector): New.
12002 (_initialize_values): Register selftests.
12003 * common/array-view.h (operator==, operator!=): New.
12005 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12007 * common/gdb_vecs.h (unordered_remove): Add overload that takes
12009 * inline-frame.c: Include <algorithm>.
12010 (struct inline_state): Add constructor.
12011 (inline_state_s): Remove.
12012 (DEF_VEC_O(inline_state_s)): Remove.
12013 (inline_states): Change type to std::vector.
12014 (find_inline_frame_state): Adjust to std::vector.
12015 (allocate_inline_frame_state): Remove.
12016 (clear_inline_frame_state): Adjust to std::vector.
12017 (skip_inline_frames): Adjust to std::vector.
12019 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12021 * tracepoint.h (struct trace_state_variable): Add constructor.
12022 <name>: Change type to std::string.
12023 * tracepoint.c (tsv_s): Remove.
12024 (DEF_VEC_O(tsv_s)): Remove.
12025 (tvariables): Change to std::vector.
12026 (create_trace_state_variable): Adjust to std::vector.
12027 (find_trace_state_variable): Likewise.
12028 (find_trace_state_variable_by_number): Likewise.
12029 (delete_trace_state_variable): Likewise.
12030 (trace_variable_command): Adjust to std::string.
12031 (delete_trace_variable_command): Likewise.
12032 (tvariables_info_1): Adjust to std::vector.
12033 (save_trace_state_variables): Likewise.
12034 (start_tracing): Likewise.
12035 (merge_uploaded_trace_state_variables): Adjust to std::vector
12037 * target.h (struct target_ops)
12038 <to_download_trace_state_variable>: Pass reference to
12039 trace_state_variable.
12040 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
12041 * target-delegates.c: Re-generate.
12042 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
12043 (mi_tsv_deleted): Likewise.
12044 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
12045 * remote.c (remote_download_trace_state_variable): Change
12046 pointer to reference and adjust.
12047 * make-target-delegates (parse_argtypes): Handle references.
12048 (write_function_header): Likewise.
12049 (munge_type): Likewise.
12051 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12053 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12054 string_view-selftests.c.
12055 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
12057 * unittests/basic_string_view/cons/char/1.cc: Likewise.
12058 * unittests/basic_string_view/cons/char/2.cc: Likewise.
12059 * unittests/basic_string_view/cons/char/3.cc: Likewise.
12060 * unittests/basic_string_view/element_access/char/1.cc:
12062 * unittests/basic_string_view/element_access/char/empty.cc:
12064 * unittests/basic_string_view/element_access/char/front_back.cc:
12066 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
12067 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
12069 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
12071 * unittests/basic_string_view/modifiers/swap/char/1.cc:
12073 * unittests/basic_string_view/operations/compare/char/1.cc:
12075 * unittests/basic_string_view/operations/compare/char/13650.cc:
12077 * unittests/basic_string_view/operations/copy/char/1.cc:
12079 * unittests/basic_string_view/operations/data/char/1.cc:
12081 * unittests/basic_string_view/operations/find/char/1.cc:
12083 * unittests/basic_string_view/operations/find/char/2.cc:
12085 * unittests/basic_string_view/operations/find/char/3.cc:
12087 * unittests/basic_string_view/operations/find/char/4.cc:
12089 * unittests/basic_string_view/operations/rfind/char/1.cc:
12091 * unittests/basic_string_view/operations/rfind/char/2.cc:
12093 * unittests/basic_string_view/operations/rfind/char/3.cc:
12095 * unittests/basic_string_view/operations/substr/char/1.cc:
12097 * unittests/basic_string_view/operators/char/2.cc: Likewise.
12098 * unittests/string_view-selftests.c: New file.
12100 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12102 * unittests/basic_string_view/capacity/1.cc: New file.
12103 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
12104 * unittests/basic_string_view/cons/char/1.cc: New file.
12105 * unittests/basic_string_view/cons/char/2.cc: New file.
12106 * unittests/basic_string_view/cons/char/3.cc: New file.
12107 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
12108 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
12109 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
12110 * unittests/basic_string_view/element_access/char/1.cc: New file.
12111 * unittests/basic_string_view/element_access/char/2.cc: New file.
12112 * unittests/basic_string_view/element_access/char/empty.cc: New file.
12113 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
12114 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
12115 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
12116 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
12117 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
12118 * unittests/basic_string_view/include.cc: New file.
12119 * unittests/basic_string_view/inserters/char/1.cc: New file.
12120 * unittests/basic_string_view/inserters/char/2.cc: New file.
12121 * unittests/basic_string_view/inserters/char/3.cc: New file.
12122 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
12123 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
12124 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
12125 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
12126 * unittests/basic_string_view/literals/types.cc: New file.
12127 * unittests/basic_string_view/literals/values.cc: New file.
12128 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
12129 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
12130 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
12131 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
12132 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
12133 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
12134 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
12135 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
12136 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
12137 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
12138 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
12139 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
12140 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
12141 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
12142 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
12143 * unittests/basic_string_view/operations/data/char/1.cc: New file.
12144 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
12145 * unittests/basic_string_view/operations/find/char/1.cc: New file.
12146 * unittests/basic_string_view/operations/find/char/2.cc: New file.
12147 * unittests/basic_string_view/operations/find/char/3.cc: New file.
12148 * unittests/basic_string_view/operations/find/char/4.cc: New file.
12149 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
12150 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
12151 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
12152 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
12153 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
12154 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
12155 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
12156 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
12157 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
12158 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
12159 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
12160 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
12161 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
12162 * unittests/basic_string_view/operators/char/2.cc: New file.
12163 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
12164 * unittests/basic_string_view/range_access/char/1.cc: New file.
12165 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
12166 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
12167 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
12168 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
12169 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
12170 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
12171 * unittests/basic_string_view/requirements/typedefs.cc: New file.
12172 * unittests/basic_string_view/typedefs.cc: New file.
12173 * unittests/basic_string_view/types/1.cc: New file.
12175 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12177 * common/gdb_string_view.h: Remove libstdc++ implementation
12178 details, adjust to gdb reality.
12179 * common/gdb_string_view.tcc: Likewise.
12180 * cli/cli-script.c (struct string_view): Remove.
12181 (user_args) <m_args>: Change element type to gdb::string_view.
12182 (user_args::insert_args): Adjust.
12184 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12186 * common/gdb_string_view.h: New file.
12187 * common/gdb_string_view.tcc: New file.
12189 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12191 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
12192 * configure: Re-generate.
12194 2018-04-09 Pedro Alves <palves@redhat.com>
12196 * gdbarch.sh: Include "observable.h" instead of "observer.h".
12197 (set_target_gdbarch): Call
12198 gdb::observers::architecture_changed.notify instead of
12199 observer_notify_architecture_changed.
12201 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12203 * tracepoint.c (struct current_traceframe_cleanup): Remove.
12204 (do_restore_current_traceframe_cleanup): Remove.
12205 (restore_current_traceframe_cleanup_dtor): Remove.
12206 (make_cleanup_restore_current_traceframe): Remove.
12207 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
12209 * tracepoint.h (struct scoped_restore_current_traceframe): New.
12210 * infrun.c (fetch_inferior_event): Use
12211 scoped_restore_current_traceframe.
12213 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12215 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
12217 <n_allocated_type_units>: Remove.
12218 <all_type_units>: Change to std::vector.
12219 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12220 to std::vector change.
12221 (dwarf2_per_objfile::get_cutu): Likewise.
12222 (dwarf2_per_objfile::get_tu): Likewise.
12223 (create_signatured_type_table_from_index): Likewise.
12224 (create_signatured_type_table_from_debug_names): Likewise.
12225 (dw2_symtab_iter_next): Likewise.
12226 (dw2_print_stats): Likewise.
12227 (dw2_expand_all_symtabs): Likewise.
12228 (dw2_expand_marked_cus): Likewise.
12229 (dw2_debug_names_iterator::next): Likewise.
12230 (dwarf2_initialize_objfile): Likewise.
12231 (add_signatured_type_cu_to_table): Likewise.
12232 (create_all_type_units): Likewise.
12233 (add_type_unit): Likewise.
12234 (struct tu_abbrev_offset): Add constructor.
12235 (build_type_psymtabs_1): Adjust to std::vector change.
12236 (print_tu_stats): Likewise.
12237 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12238 (write_debug_names): Likewise.
12240 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12242 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
12243 Make an std::vector.
12244 <n_comp_units>: Remove.
12245 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12246 to std::vector change.
12247 (dwarf2_per_objfile::get_cutu): Likewise.
12248 (dwarf2_per_objfile::get_cu): Likewise.
12249 (create_cus_from_index): Likewise.
12250 (create_addrmap_from_index): Likewise.
12251 (create_addrmap_from_aranges): Likewise.
12252 (dwarf2_read_index): Likewise.
12253 (dw2_find_last_source_symtab): Likewise.
12254 (dw2_map_symtabs_matching_filename): Likewise.
12255 (dw2_symtab_iter_next): Likewise.
12256 (dw2_print_stats): Likewise.
12257 (dw2_expand_all_symtabs): Likewise.
12258 (dw2_expand_symtabs_with_fullname): Likewise.
12259 (dw2_expand_marked_cus): Likewise.
12260 (dw2_map_symbol_filenames): Likewise.
12261 (create_cus_from_debug_names): Likewise.
12262 (dwarf2_read_debug_names): Likewise.
12263 (dw2_debug_names_iterator::next): Likewise.
12264 (dwarf2_initialize_objfile): Likewise.
12265 (set_partial_user): Likewise.
12266 (dwarf2_build_psymtabs_hard): Likewise.
12267 (read_comp_units_from_section): Remove arguments, adjust to
12268 std::vector change.
12269 (create_all_comp_units): Adjust to std::vector and
12270 read_comp_units_from_section changes.
12271 (dwarf2_find_containing_comp_unit): Adjust to std::vector
12273 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12274 (psyms_seen_size): Likewise.
12275 (write_gdbindex): Likewise.
12276 (write_debug_names): Likewise.
12278 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12280 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
12281 with dwarf2_per_objfile.
12282 (create_cus_from_index): Likewise.
12283 (create_signatured_type_table_from_index): Likewise.
12284 (dwarf2_read_index): Likewise.
12285 (dwarf2_initialize_objfile): Likewise.
12286 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
12287 per_cu rather than get_dwarf2_per_objfile.
12289 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12291 * dwarf2read.h (struct signatured_type): Forward declare.
12292 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
12294 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
12295 (dw2_get_cutu): ...this.
12296 (dwarf2_per_objfile::get_cu): Rename from...
12297 (dw2_get_cu): ...this.
12298 (dwarf2_per_objfile::get_tu): New.
12299 (create_addrmap_from_index): Adjust.
12300 (create_addrmap_from_aranges): Adjust.
12301 (dw2_find_last_source_symtab): Adjust.
12302 (dw2_map_symtabs_matching_filename): Adjust.
12303 (dw2_symtab_iter_next): Adjust.
12304 (dw2_print_stats): Adjust.
12305 (dw2_expand_all_symtabs): Adjust.
12306 (dw2_expand_symtabs_with_fullname): Adjust.
12307 (dw2_expand_marked_cus): Adjust.
12308 (dw_expand_symtabs_matching_file_matcher): Adjust.
12309 (dw2_map_symbol_filenames): Adjust.
12310 (dw2_debug_names_iterator::next): Adjust.
12311 (dwarf2_initialize_objfile): Adjust.
12312 (set_partial_user): Adjust.
12313 (dwarf2_build_psymtabs_hard): Adjust.
12315 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12317 * dwarf2read.c (create_signatured_type_table_from_debug_names):
12318 Remove unused variables.
12319 (dw2_map_symtabs_matching_filename): Likewise.
12320 (dwarf2_record_block_ranges): Likewise.
12321 (dwarf2_read_addr_index): Likewise.
12322 (follow_die_offset): Likewise.
12324 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12326 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
12327 to symbol_file_add_main.
12329 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12332 * mi/mi-console.c (do_fputc_async_safe): New.
12333 (mi_console_file::write_async_safe): New.
12334 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
12335 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
12337 * ui-file.c (ui_file::putstrn): Adjust call to
12338 fputstrn_unfiltered.
12339 * utils.c (printchar): Replace do_fputs and do_fprintf
12340 parameters by do_fputc.
12341 (fputstr_filtered): Adjust call to printchar.
12342 (fputstr_unfiltered): Likewise.
12343 (fputstrn_filtered): Likewise.
12344 (fputstrn_unfiltered): Add do_fputc parameter, pass to
12346 * utils.h (do_fputc_ftype): New typedef.
12347 (fputstrn_unfiltered): Add do_fputc parameter.
12349 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12351 * regformats/i386/i386-avx.dat: Remove.
12353 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12356 * amd64-tdep.c (amd64_none_init_abi): New function.
12357 (amd64_x32_none_init_abi): New function.
12358 (_initialize_amd64_tdep): Register handlers for x86-64 and
12359 x64_32 with GDB_OSABI_NONE.
12360 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
12361 GDB_OSABI_NONE osabi.
12363 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12366 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
12368 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
12369 * osabi.c (gdb_osabi_names): Add "unknown" entry.
12371 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12373 * common/byte-vector.h (char_vector): New type.
12374 * target.h (target_read_alloc): Return
12375 gdb::optional<byte_vector>.
12376 (target_read_stralloc): Return gdb::optional<char_vector>.
12377 (target_get_osdata): Return gdb::optional<char_vector>.
12378 * target.c (target_read_alloc_1): Templatize. Replacement
12379 manual memory management with vector.
12380 (target_read_alloc): Change return type, adjust.
12381 (target_read_stralloc): Change return type, adjust.
12382 (target_get_osdata): Change return type, adjust.
12383 * auxv.c (struct auxv_info) <length>: Remove.
12384 <data>: Change type to gdb::optional<byte_vector>.
12385 (auxv_inferior_data_cleanup): Free auxv_info with delete.
12386 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
12387 (target_auxv_search): Adjust.
12388 (fprint_target_auxv): Adjust.
12389 * avr-tdep.c (avr_io_reg_read_command): Adjust.
12390 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
12391 (linux_make_corefile_notes): Adjust.
12392 * osdata.c (get_osdata): Adjust.
12393 * remote.c (remote_get_threads_with_qxfer): Adjust.
12394 (remote_memory_map): Adjust.
12395 (remote_traceframe_info): Adjust.
12396 (btrace_read_config): Adjust.
12397 (remote_read_btrace): Adjust.
12398 (remote_pid_to_exec_file): Adjust.
12399 * solib-aix.c (solib_aix_get_library_list): Adjust.
12400 * solib-dsbt.c (decode_loadmap): Don't free buf.
12401 (dsbt_get_initial_loadmaps): Adjust.
12402 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
12403 * solib-target.c (solib_target_current_sos): Adjust.
12404 * tracepoint.c (sdata_make_value): Adjust.
12405 * xml-support.c (xinclude_start_include): Adjust.
12406 (xml_fetch_content_from_file): Adjust.
12407 * xml-support.h (xml_fetch_another): Change return type.
12408 (xml_fetch_content_from_file): Change return type.
12409 * xml-syscall.c (xml_init_syscalls_info): Adjust.
12410 * xml-tdesc.c (file_read_description_xml): Adjust.
12411 (fetch_available_features_from_target): Change return type.
12412 (target_fetch_description_xml): Adjust.
12413 (target_read_description_xml): Adjust.
12415 2018-04-06 Tom Tromey <tom@tromey.com>
12417 * value.c (~value): Update.
12418 (struct value) <contents>: Now unique_xmalloc_ptr.
12419 (value_contents_bits_eq, allocate_value_contents)
12420 (value_contents_raw, value_contents_all_raw)
12421 (value_contents_for_printing, value_contents_for_printing_const)
12422 (set_value_enclosing_type): Update.
12424 2018-04-06 Tom Tromey <tom@tromey.com>
12426 * value.c (range_s): Remove typedef, VEC.
12427 (struct range): Add operator<.
12428 (range_lessthan): Remove.
12429 (ranges_contain): Change type.
12431 (struct value) <unavailable, optimized_out>: Now std::vector.
12432 (value_entirely_available)
12433 (value_entirely_covered_by_range_vector)
12434 (value_entirely_unavailable, value_entirely_optimized_out):
12436 (insert_into_bit_range_vector): Change argument type.
12437 (find_first_range_overlap): Likewise.
12438 (struct ranges_and_idx, value_contents_bits_eq)
12439 (require_not_optimized_out, require_available): Update.
12440 (ranges_copy_adjusted): Change argument types.
12441 (value_optimized_out, value_copy, value_fetch_lazy): Update.
12443 2018-04-06 Tom Tromey <tom@tromey.com>
12445 * value.c (~value): Update.
12446 (struct value) <parent>: Now a value_ref_ptr.
12447 (value_parent, set_value_parent, value_address, value_copy):
12450 2018-04-06 Tom Tromey <tom@tromey.com>
12452 * value.c (struct value): Add constructor, destructor, and member
12454 (allocate_value_lazy, value_decref): Update.
12456 2018-04-06 Tom Tromey <tom@tromey.com>
12458 * value.c (struct value) <released, next>: Remove.
12459 (all_values): Now a std::vector.
12460 (allocate_value_lazy): Update.
12461 (value_next): Remove.
12462 (value_mark, value_free_to_mark, release_value)
12463 (value_release_to_mark): Update.
12465 2018-04-06 Tom Tromey <tom@tromey.com>
12467 * value.h (fetch_subexp_value, value_release_to_mark): Update.
12468 (free_value_chain): Remove.
12469 * value.c (free_value_chain): Remove.
12470 (value_release_to_mark): Return a std::vector.
12471 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
12473 (check_condition): Update.
12474 * eval.c (fetch_subexp_value): Change "val_chain" to a
12476 * breakpoint.c (update_watchpoint): Update.
12477 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
12479 2018-04-06 Tom Tromey <tom@tromey.com>
12481 * value.h (free_all_values): Remove.
12482 * value.c (free_all_values): Remove.
12484 2018-04-06 Tom Tromey <tom@tromey.com>
12486 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
12487 (value_history_chain, value_history_count): Remove.
12488 (value_history): New global.
12489 (record_latest_value, access_value_history, show_values)
12490 (preserve_values): Update.
12492 2018-04-06 Tom Tromey <tom@tromey.com>
12494 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
12495 * varobj.c (varobj_set_display_format, varobj_set_value)
12496 (install_default_visualizer, construct_visualizer)
12497 (install_new_value, ~varobj, varobj_get_value_type)
12498 (my_value_of_variable, varobj_editable_p): Update.
12499 * c-varobj.c (c_describe_child, c_value_of_variable)
12500 (cplus_number_of_children, cplus_describe_child): Update.
12501 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
12502 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
12503 (ada_value_of_variable, ada_value_is_changeable_p): Update.
12505 2018-04-06 Tom Tromey <tom@tromey.com>
12507 * printcmd.c (last_examine_address): Change type to
12509 (do_examine, x_command): Update.
12511 2018-04-06 Tom Tromey <tom@tromey.com>
12513 * value.c (release_value): Update.
12514 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
12515 (struct bpstats) <val>: Now a value_ref_ptr.
12516 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12517 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12518 (~watchpoint, print_it_watchpoint, watch_command_1)
12519 (invalidate_bp_value_on_memory_change): Update.
12521 2018-04-06 Tom Tromey <tom@tromey.com>
12523 * varobj.c (varobj_clear_saved_item)
12524 (update_dynamic_varobj_children, install_new_value, ~varobj):
12526 * value.h (value_incref): Move declaration earlier.
12527 (value_decref): Rename from value_free.
12528 (struct value_ref_policy): New.
12529 (value_ref_ptr): New typedef.
12530 (struct value_deleter): Remove.
12531 (gdb_value_up): Remove typedef.
12532 (release_value): Change return type.
12533 (release_value_or_incref): Remove.
12534 * value.c (set_value_parent): Update.
12535 (value_incref): Change return type.
12536 (value_decref): Rename from value_free.
12537 (value_free_to_mark, free_all_values, free_value_chain): Update.
12538 (release_value): Return value_ref_ptr.
12539 (release_value_or_incref): Remove.
12540 (record_latest_value, set_internalvar, clear_internalvar):
12542 * stack.c (info_frame_command): Don't call value_free.
12543 * python/py-value.c (valpy_dealloc, valpy_new)
12544 (value_to_value_object): Update.
12545 * printcmd.c (do_examine): Update.
12546 * opencl-lang.c (lval_func_free_closure): Update.
12547 * mi/mi-main.c (register_changed_p): Don't call value_free.
12548 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
12549 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
12550 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
12552 * guile/scm-value.c (vlscm_free_value_smob)
12553 (vlscm_scm_from_value): Update.
12554 * frame.c (frame_register_unwind, frame_unwind_register_signed)
12555 (frame_unwind_register_unsigned, get_frame_register_bytes)
12556 (put_frame_register_bytes): Don't call value_free.
12557 * findvar.c (address_from_register): Don't call value_free.
12558 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
12559 * dwarf2loc.c (entry_data_value_free_closure)
12560 (value_of_dwarf_reg_entry, free_pieced_value_closure)
12561 (dwarf2_evaluate_loc_desc_full): Update.
12562 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12563 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12564 (~watchpoint, watch_command_1)
12565 (invalidate_bp_value_on_memory_change): Update.
12566 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
12568 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
12571 * warning.m4: Add -Wno-error=deprecated-register.
12572 * configure: Re-generate.
12574 2018-04-05 Tom Tromey <tom@tromey.com>
12576 * linespec.h: Remove include of "vec.h".
12578 2018-04-05 Tom Tromey <tom@tromey.com>
12580 * linespec.c (typep): Remove typedef.
12581 (find_methods, find_superclass_methods): Take a std::vector.
12582 (find_method): Use std::vector.
12584 2018-04-05 Tom Tromey <tom@tromey.com>
12586 * utils.c (compare_strings): Remove.
12587 * utils.h (compare_strings): Remove.
12588 * objc-lang.h (find_imps): Update.
12589 * objc-lang.c (find_methods): Take a std::vector.
12590 (uniquify_strings, find_imps): Likewise.
12591 * linespec.c (find_methods): Take a std::vector.
12592 (decode_objc): Use std::vector.
12593 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
12595 (find_method, find_function_symbols): Use std::vector.
12597 2018-04-05 Tom Tromey <tom@tromey.com>
12599 * completer.c (completion_tracker::completion_tracker): Remove
12601 (completion_tracker::discard_completions): Likewise.
12602 * breakpoint.c (ambiguous_names_p): Remove cast.
12603 * ada-lang.c (_initialize_ada_language): Remove cast.
12604 * utils.h (streq): Update.
12605 (streq_hash): Add new declaration.
12606 * utils.c (streq): Return bool.
12607 (streq_hash): New function.
12609 2018-04-05 Tom Tromey <tom@tromey.com>
12611 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
12612 Remove a string copy.
12614 2018-04-05 Tom Tromey <tom@tromey.com>
12616 * linespec.c (filter_results): Use std::vector.
12617 (decode_line_2, decode_line_full): Update.
12619 2018-04-05 Tom Tromey <tom@tromey.com>
12621 * linespec.c (canonical_to_fullform): Return std::string.
12622 (filter_results): Update.
12623 (struct decode_line_2_item): Add constructor.
12624 <fullform, displayform>: Now std::string.
12625 (decode_line_2_compare_items): Now a std::sort comparator.
12626 (decode_line_2): Update.
12628 2018-04-05 Tom Tromey <tom@tromey.com>
12630 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
12631 (unexpected_linespec_error): Update.
12632 (linespec_parse_basic, parse_linespec): Update.
12634 2018-04-05 Tom Tromey <tom@tromey.com>
12636 * linespec.c (linespec_parse_basic): Reindent.
12638 2018-04-05 Tom Tromey <tom@tromey.com>
12640 * minsyms.h (iterate_over_minimal_symbols): Update.
12641 * minsyms.c (iterate_over_minimal_symbols): Take a
12642 gdb::function_view.
12643 * linespec.c (struct collect_minsyms): Remove.
12644 (compare_msyms): Now a std::sort comparator.
12645 (add_minsym): Add parameters.
12646 (search_minsyms_for_name): Update. Use std::vector.
12648 2018-04-03 Tom Tromey <tom@tromey.com>
12650 * mipsread.c (read_alphacoff_dynamic_symtab): Use
12653 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
12655 * MAINTAINERS (Write After Approval): Add Weimin Pan.
12657 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
12660 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
12661 printing static type.
12663 2018-04-01 Tom Tromey <tom@tromey.com>
12665 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
12666 (rs6000_xfer_shared_libraries): Update.
12668 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12670 * common/gdb_vecs.h (char_ptr): Remove.
12671 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
12673 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12675 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
12677 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
12679 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12681 * tracepoint.h (struct uploaded_tp): Initialize fields.
12682 <actions, step_actions, cmd_strings>: Change type to
12683 std::vector<char *>.
12684 * tracepoint.c (get_uploaded_tp): Allocate with new.
12685 (free_uploaded_tps): Free with delete.
12686 (parse_tracepoint_definition): Adjust to std::vector change.
12687 * breakpoint.c (read_uploaded_action): Likewise.
12688 (create_tracepoint_from_upload): Likewise.
12689 * ctf.c (ctf_write_uploaded_tp): Likewise.
12690 (SET_ARRAY_FIELD): Likewise.
12691 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
12693 2018-03-30 Tom Tromey <tom@tromey.com>
12695 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
12697 (svr4_keep_data_in_core): Update.
12698 (svr4_read_so_list): Update.
12700 2018-03-30 Tom Tromey <tom@tromey.com>
12702 * windows-nat.c (handle_output_debug_string, handle_exception):
12704 * target.h (target_read_string): Update.
12705 * target.c (target_read_string): Change "string" to
12706 unique_xmalloc_ptr.
12707 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
12709 * solib-frv.c (frv_current_sos): Update.
12710 * solib-dsbt.c (dsbt_current_sos): Update.
12711 * solib-darwin.c (darwin_current_sos): Update.
12712 * linux-thread-db.c (inferior_has_bug): Update.
12713 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
12714 Update. Remove alloca.
12715 * ada-lang.c (ada_main_name): Update.
12717 2018-03-30 Tom Tromey <tom@tromey.com>
12719 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
12720 (struct dwo_file_deleter): New.
12721 (dwo_file_up): New typedef.
12722 (open_and_init_dwo_file): Use dwo_file_up.
12723 (free_dwo_file_cleanup): Remove.
12725 2018-03-30 Tom Tromey <tom@tromey.com>
12727 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
12728 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
12730 2018-03-30 Tom Tromey <tom@tromey.com>
12732 * dwarf2read.c (class free_cached_comp_units): New class.
12733 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
12734 (free_cached_comp_units): Remove function.
12736 2018-03-30 Tom Tromey <tom@tromey.com>
12738 * utils.h (make_cleanup_unpush_target): Remove.
12739 * inf-ptrace.c (struct target_unpusher): New.
12740 (target_unpush_up) New typedef.
12741 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
12743 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
12745 2018-03-27 Tom Tromey <tom@tromey.com>
12747 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
12749 2018-03-27 Pedro Alves <palves@redhat.com>
12750 Tom Tromey <tom@tromey.com>
12752 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
12753 destructor. Now a class.
12754 (gdb_readline_wrapper_cleanup): Remove function.
12755 (gdb_readline_wrapper): Remove cleanups.
12757 2018-03-27 Tom Tromey <tom@tromey.com>
12759 * typeprint.h (struct type_print_options) <local_typedefs,
12760 global_typedefs>: Remove "struct" keyword.
12761 (class typedef_hash_table): New class.
12762 (recursively_update_typedef_hash, add_template_parameters)
12763 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
12764 (find_typedef_in_hash): Don't declare.
12765 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
12766 (typedef_hash_table::recursively_update): Rename from
12767 recursively_update_typedef_hash. Now a member.
12768 (typedef_hash_table::add_template_parameters): Rename from
12769 add_template_parameters. Now a member.
12770 (typedef_hash_table::typedef_hash_table): Now a constructor;
12771 rename from create_typedef_hash.
12772 (typedef_hash_table::~typedef_hash_table): Now a destructor;
12773 rename from free_typedef_hash.
12774 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
12775 (do_free_global_table): Remove.
12776 (typedef_hash_table::typedef_hash_table): New constructor; renamed
12777 from copy_type_recursive.
12778 (create_global_typedef_table): Remove.
12779 (typedef_hash_table::find_global_typedef): Now a member of
12780 typedef_hash_table.
12781 (typedef_hash_table::find_typedef): Rename from
12782 find_typedef_in_hash; now a member.
12783 (whatis_exp): Update.
12784 * extension.h (struct ext_lang_type_printers): Add constructor and
12786 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
12788 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
12789 Now a constructor; rename from start_ext_lang_type_printers.
12790 (ext_lang_type_printers): Now a destructor; rename from
12791 free_ext_lang_type_printers.
12792 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
12794 (c_type_print_base_struct_union): Update. Remove cleanups.
12796 2018-03-27 Tom Tromey <tom@tromey.com>
12798 * dwarf-index-write.c: Include <cmath>.
12800 2018-03-27 Joel Brobecker <brobecker@adacore.com>
12802 * NEWS: Add entry describing new "set|show varsize-limit" command.
12803 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
12805 * printcmd.c (_initialize_printcmd): Add "set var" alias of
12808 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
12810 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
12811 dwarf-index-write.c
12812 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
12813 * dwarf-index-common.c: New file.
12814 * dwarf-index-common.h: New file.
12815 * dwarf-index-write.c: New file.
12816 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
12817 (struct dwarf2_section_info): Move from here.
12818 (dwarf2_section_info_def): Likewise.
12819 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
12820 (offset_type): Likewise.
12821 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
12822 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
12823 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
12824 (byte_swap): Likewise.
12825 (MAYBE_SWAP): Likewise.
12826 (dwarf2_per_cu_ptr): Likewise.
12827 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
12828 (struct tu_stats): Likewise.
12829 (struct dwarf2_per_objfile): Likewise.
12830 (struct dwarf2_per_cu_data): Likewise.
12831 (struct signatured_type): Likewise.
12832 (sig_type_ptr): Likewise.
12833 (DEF_VEC_P (sig_type_ptr)): Likewise.
12834 (INDEX4_SUFFIX): Likewise.
12835 (INDEX5_SUFFIX): Likewise.
12836 (DEBUG_STR_SUFFIX): Likewise.
12837 (dwarf2_read_section): Make non-static.
12838 (mapped_index_string_hash): Move from here.
12839 (dwarf5_djb_hash): Likewise.
12840 (file_write): Likewise.
12841 (class data_buf): Likewise.
12842 (struct symtab_index_entry): Likewise.
12843 (struct mapped_symtab): Likewise.
12844 (find_slot): Likewise.
12845 (hash_expand): Likewise.
12846 (add_index_entry): Likewise.
12847 (uniquify_cu_indices): Likewise.
12848 (class c_str_view): Likewise.
12849 (class c_str_view_hasher): Likewise.
12850 (class vector_hasher): Likewise.
12851 (write_hash_table): Likewise.
12852 (psym_index_map): Likewise.
12853 (struct addrmap_index_data): Likewise.
12854 (add_address_entry): Likewise.
12855 (add_address_entry_worker): Likewise.
12856 (write_address_map): Likewise.
12857 (symbol_kind): Likewise.
12858 (write_psymbols): Likewise.
12859 (struct signatured_type_index_data): Likewise.
12860 (write_one_signatured_type): Likewise.
12861 (recursively_count_psymbols): Likewise.
12862 (recursively_write_psymbols): Likewise.
12863 (class debug_names): Likewise.
12864 (check_dwarf64_offsets): Likewise.
12865 (psyms_seen_size): Likewise.
12866 (write_gdbindex): Likewise.
12867 (write_debug_names): Likewise.
12868 (assert_file_size): Likewise.
12869 (write_psymtabs_to_index): Likewise.
12870 (save_gdb_index_command): Likewise.
12871 (_initialize_dwarf2_read): Don't register the "save gdb-index"
12873 * dwarf2read.h: New file.
12875 2018-03-27 Joel Brobecker <brobecker@adacore.com>
12878 * dwarf2read.c (dwarf2_physname): Do not return the demangled
12879 symbol name if the CU's language stores symbol names in linkage
12881 * language.h (struct language_defn)
12882 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
12883 all instances of this struct.
12885 2018-03-26 Tom Tromey <tom@tromey.com>
12887 * stack.c (backtrace_command_1): Remove verbose code.
12889 2018-03-26 Tom Tromey <tom@tromey.com>
12891 * python/py-framefilter.c (py_print_type): Don't catch
12892 exceptions. Return void.
12893 (py_print_value): Likewise.
12894 (py_print_single_arg): Likewise.
12895 (enumerate_args): Don't catch exceptions.
12896 (py_print_args): Likewise.
12897 (py_print_frame): Likewise.
12898 (gdbpy_apply_frame_filter): Catch exceptions here.
12900 2018-03-26 Tom Tromey <tom@tromey.com>
12902 * stack.c (_initialize_stack): Remove trailing newlines from help
12903 text. Add "Usage" line to "backtrace" help.
12905 2018-03-26 Tom Tromey <tom@tromey.com>
12908 * python/py-framefilter.c (py_print_args): Call wrap_hint.
12910 2018-03-26 Tom Tromey <tom@tromey.com>
12912 * python/py-framefilter.c (py_print_single_arg): Return
12913 EXT_LANG_BT_ERROR from catch.
12915 2018-03-26 Tom Tromey <tom@tromey.com>
12917 PR backtrace/15584:
12918 * stack.c (backtrace_command_1): Move some code into no-filters
12921 2018-03-26 Tom Tromey <tom@tromey.com>
12923 * python/py-framefilter.c (throw_quit_or_print_exception): New
12925 (gdbpy_apply_frame_filter): Use it.
12927 2018-03-26 Tom Tromey <tom@tromey.com>
12930 * python/py-framefilter.c (py_print_type, py_print_value)
12931 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
12934 2018-03-26 Tom Tromey <tom@tromey.com>
12936 * python/py-framefilter.c (enumerate_args): Use
12937 gdb::unique_xmalloc_ptr.
12939 2018-03-26 Tom Tromey <tom@tromey.com>
12941 * python/py-framefilter.c (py_print_frame): Return
12943 (gdbpy_apply_frame_filter): Update comment.
12944 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
12946 <EXT_LANG_BT_NO_FILTERS>: Change value.
12948 2018-03-26 Tom Tromey <tom@tromey.com>
12950 PR backtrace/15582:
12951 * stack.c (backtrace_command): Parse "hide" argument.
12952 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
12953 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
12956 2018-03-26 Tom Tromey <tom@tromey.com>
12958 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
12960 (backtrace_command): Remove "fulltrace", add "flags".
12962 2018-03-26 Tom Tromey <tom@tromey.com>
12964 * stack.c (backtrace_command): Rewrite command line parsing.
12966 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12968 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
12970 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12972 * filename-seen-cache.h: Add include guard.
12974 2018-03-26 Keith Seitz <keiths@redhat.com>
12976 * symfile.c (place_section): Remove "struct" from section_addr_info
12978 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
12979 "struct" keyword from section_addr_info.
12981 2018-03-26 Alan Hayward <alan.hayward@arm.com>
12983 * regformats/regdef.h (reg): Add constructors.
12985 2018-03-25 Pedro Alves <palves@redhat.com>
12987 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
12988 if then/else bodies in var_func_name extraction.
12990 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
12992 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
12993 lookup_minimal_symbol() to find symbol entry.
12994 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
12996 2018-03-23 Keith Seitz <keiths@redhat.com>
12999 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
13000 nested type definitions for C++, too.
13002 2018-03-23 Tom Tromey <tom@tromey.com>
13004 * machoread.c (struct oso_el): Add a constructor. Don't define as
13006 (macho_register_oso): Remove.
13007 (macho_symtab_read): Take a std::vector.
13008 (oso_el_compare_name): Now a std::sort comparator.
13009 (macho_symfile_read_all_oso): Take a std::vector.
13010 (macho_symfile_read): Use std::vector. Remove cleanups.
13012 2018-03-22 Tom Tromey <tom@tromey.com>
13014 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
13015 (record_full_goto_bookmark): Use std::string.
13017 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13020 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
13023 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13025 * rs6000-tdep.c (store_insn_p): New function.
13026 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
13027 and cr_reg to their unshifted values. Use store_insn_p to
13028 match LR saves using either R1 or fdata->alloca_reg. Use
13029 store_insn_p to match CR saves. Set alloca_reg_offset
13030 when alloca_reg and framep are set. Remove lr_reg shift
13031 when assigning to fdata->lr_register.
13033 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
13035 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
13036 command line args instead of emitting a warning.
13038 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13040 * tracepoint.h (struct static_tracepoint_marker): Initialize
13041 fields, define default constructor, move constructor and move
13042 assignment, disable the rest.
13043 <str_id, extra>: Make std::string.
13044 (release_static_tracepoint_marker): Remove.
13045 (free_current_marker): Remove.
13046 * tracepoint.c (free_current_marker): Remove.
13047 (parse_static_tracepoint_marker_definition): Adjust to
13048 std::string, use new hex2str overload.
13049 (release_static_tracepoint_marker): Remove.
13050 (print_one_static_tracepoint_marker): Get marker by reference
13051 and adjust to std::string.
13052 (info_static_tracepoint_markers_command): Adjust to std::vector
13054 * target.h (static_tracepoint_marker_p): Remove typedef.
13055 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
13056 (struct target_ops) <to_static_tracepoint_marker_at>: Return
13058 <to_static_tracepoint_markers_by_strid>: Return std::vector.
13060 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
13061 (target_debug_print_std_vector_static_tracepoint_marker): New.
13062 (target_debug_print_struct_static_tracepoint_marker_p): Rename
13064 (target_debug_print_static_tracepoint_marker_p): ... this.
13065 * target-delegates.c: Re-generate.
13066 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
13068 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
13069 (decode_static_tracepoint_spec): Adjust to std::vector.
13070 (tracepoint_print_one_detail): Adjust to std::string.
13071 (strace_marker_decode_location): Adjust to std::string.
13072 (update_static_tracepoint): Adjust to std::string, remove call
13073 to release_static_tracepoint_marker.
13074 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
13075 Adjust to std::vector.
13076 * remote.c (remote_static_tracepoint_marker_at): Return bool.
13077 (remote_static_tracepoint_markers_by_strid): Adjust to
13079 * common/rsp-low.h (hex2str): New overload with explicit count
13081 * common/rsp-low.c (hex2str): New overload with explicit count
13083 * unittests/rsp-low-selftests.c (test_hex2str): New function.
13084 (_initialize_rsp_low_selftests): Add test_hex2str test.
13085 * unittests/tracepoint-selftests.c
13086 (test_parse_static_tracepoint_marker_definition): Adjust to
13089 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13091 * tracepoint.c (parse_static_tracepoint_marker_definition):
13092 Consider case where the definition is followed by more
13094 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13095 tracepoint-selftests.c.
13096 * unittests/tracepoint-selftests.c: New.
13098 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13100 * MAINTAINERS (Write After Approval): Add Pedro Franco de
13103 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13105 * symtab.c (find_pc_sect_line): fixed indentation.
13107 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13109 * symtab.c (find_pc_sect_line): now uses binary search.
13111 2018-03-19 Tom Tromey <tom@tromey.com>
13113 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
13114 "IDENT" production.
13116 2018-03-19 Pedro Alves <palves@redhat.com>
13117 Tom Tromey <tom@tromey.com>
13119 * unittests/observable-selftests.c: New file.
13120 * common/observable.h: New file.
13121 * observable.h: New file.
13122 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
13123 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
13124 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
13125 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
13126 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
13127 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
13128 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
13129 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
13130 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
13131 python/py-breakpoint.c, python/py-finishbreakpoint.c,
13132 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
13133 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
13134 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
13135 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
13136 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
13137 tui/tui-interp.c, valops.c: Update all users.
13138 * tui/tui-hooks.c (tui_bp_created_observer)
13139 (tui_bp_deleted_observer, tui_bp_modified_observer)
13140 (tui_inferior_exit_observer, tui_before_prompt_observer)
13141 (tui_normal_stop_observer, tui_register_changed_observer):
13143 (tui_observers_token): New global.
13144 (attach_or_detach, tui_attach_detach_observers): New functions.
13145 (tui_install_hooks, tui_remove_hooks): Use
13146 tui_attach_detach_observers.
13147 * record-btrace.c (record_btrace_thread_observer): Remove.
13148 (record_btrace_thread_observer_token): New global.
13149 * observer.sh: Remove.
13150 * observer.c: Rename to observable.c.
13151 * observable.c (namespace gdb_observers): Define new objects.
13152 (observer_debug): Move into gdb_observers namespace.
13153 (struct observer, struct observer_list, xalloc_observer_list_node)
13154 (xfree_observer_list_node, generic_observer_attach)
13155 (generic_observer_detach, generic_observer_notify): Remove.
13156 (_initialize_observer): Update.
13157 Don't include observer.inc.
13158 * Makefile.in (generated_files): Remove observer.h, observer.inc.
13159 (clean mostlyclean): Likewise.
13160 (observer.h, observer.inc): Remove targets.
13161 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
13162 (COMMON_SFILES): Use observable.c, not observer.c.
13163 * .gitignore: Remove observer.h.
13165 2018-03-18 Tom Tromey <tom@tromey.com>
13167 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
13169 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
13171 2018-03-17 Tom Tromey <tom@tromey.com>
13173 * auto-load.c (auto_load_objfile_script_1): Use std::string.
13175 2018-03-17 Tom Tromey <tom@tromey.com>
13177 * target.c (class scoped_target_fd): New.
13178 (target_fileio_close_cleanup): Remove.
13179 (target_fileio_read_alloc_1): Use scoped_target_fd.
13181 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
13183 * silent-rules.mk: New.
13184 * Makefile.in: Include silent-rules.mk
13185 (srcdir, VPATH, top_srcdir): Move up.
13186 (COMPILE): Add ECHO_CXX.
13187 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
13188 (init.c): Add ECHO_INIT_C.
13189 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
13190 (version.c): Add ECHO_GEN.
13191 (printcmd.o): Add ECHO_CXX.
13192 (target-float.o): Add ECHO_CXX.
13193 (ada-exp.o): Add ECHO_CXX.
13194 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
13195 (insight$(EXEEXT)): Add ECHO_CXXLD.
13196 * gnulib/configure.ac: Add AM_SILENT_RULES.
13197 * gnulib/aclocal.m4: Re-generate.
13198 * gnulib/configure: Re-generate.
13199 * gnulib/import/Makefile.in: Re-generate.
13201 2018-03-16 Tom Tromey <tom@tromey.com>
13203 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
13204 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
13205 * utils.c (do_free_section_addr_info)
13206 (make_cleanup_free_section_addr_info): Remove.
13207 * symfile.h (struct other_sections): Add constructor.
13208 (struct section_addr_info): Remove.
13209 (section_addr_info): New typedef.
13210 (struct sym_fns) <sym_offsets>: Change type of parameter.
13211 (build_section_addr_info_from_objfile)
13212 (relative_addr_info_to_section_offsets, addr_info_make_relative)
13213 (default_symfile_offsets, symbol_file_add)
13214 (symbol_file_add_from_bfd)
13215 (build_section_addr_info_from_section_table): Update.
13216 (alloc_section_addr_info, free_section_addr_info): Don't declare.
13217 * symfile.c (alloc_section_addr_info): Remove.
13218 (build_section_addr_info_from_section_table): Change return type.
13220 (build_section_addr_info_from_bfd)
13221 (build_section_addr_info_from_objfile): Likewise.
13222 (free_section_addr_info): Remove.
13223 (relative_addr_info_to_section_offsets): Change type of "addrs".
13224 (addrs_section_compar): Now a std::sort comparator.
13225 (addrs_section_sort): Change return type.
13226 (addr_info_make_relative): Change type of "addrs". Update.
13227 (default_symfile_offsets, syms_from_objfile_1)
13228 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
13229 (symbol_file_add_separate): Update.
13230 (symbol_file_add): Change type of "addrs". Update.
13231 (add_symbol_file_command): Update. Remove cleanups.
13232 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
13234 * symfile-debug.c (debug_sym_offsets): Change type of "info".
13235 * solib.c (solib_read_symbols): Update.
13236 * objfiles.c (objfile_relocate): Update. Remove cleanups.
13237 * machoread.c (macho_symfile_offsets): Update.
13238 * jit.c (jit_bfd_try_read_symtab): Update.
13240 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
13242 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13243 unittests/utils-selftests.c.
13244 * unittests/utils-selftests.c: New file.
13246 2018-03-14 Tom Tromey <tom@tromey.com>
13249 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
13252 2018-03-14 Tom Tromey <tom@tromey.com>
13255 * printcmd.c (printf_pointer): Allow "-" in format.
13257 2018-03-14 Tom Tromey <tom@tromey.com>
13259 * printcmd.c (_initialize_printcmd): Add usage to printf.
13261 2018-03-14 Yao Qi <qiyao@sourceware.org>
13263 * MAINTAINERS: Update my email address.
13265 2018-03-13 Tom Tromey <tom@tromey.com>
13267 * machoread.c (macho_check_dsym): Change filenamep to a
13269 (macho_symfile_read): Update.
13270 * symfile.c (load_command): Use std::string.
13272 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
13274 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
13275 to error message string.
13276 (riscv_register_name): Use xsnprintf instead of sprintf.
13277 (riscv_insn::fetch_instruction): Use gdb_assert instead of
13279 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
13281 (riscv_push_dummy_call): Likewise.
13283 2018-03-12 Tom Tromey <tom@tromey.com>
13285 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
13286 Use gdb::byte_vector.
13287 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
13289 2018-03-12 Yao Qi <yao.qi@linaro.org>
13291 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
13292 parameter type to readable_regcache.
13293 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
13296 2018-03-11 Tom Tromey <tom@tromey.com>
13298 * dwarf2read.c (struct nextfield): Add initializers.
13299 (struct nextfnfield): Remove.
13300 (struct fnfieldlist): Add initializers. Remove "length" and
13301 "head", use std::vector.
13302 (struct decl_field_list): Remove.
13303 (struct field_info): Add initializers.
13304 <fields, baseclasses>: Now std::vector.
13305 <nbaseclasses, nfnfields, typedef_field_list_count,
13306 nested_types_list_count>: Remove.
13307 (dwarf2_add_field, dwarf2_add_type_defn)
13308 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
13309 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
13310 (process_structure_scope): Update.
13312 2018-03-11 Tom Tromey <tom@tromey.com>
13314 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
13315 for use by std::sort.
13316 (build_type_psymtabs_1): Use std::vector.
13318 2018-03-09 Eli Zaretskii <eliz@gnu.org>
13320 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
13321 and LIBMPFR in the printed configuration.
13323 2018-03-08 Tom Tromey <tom@tromey.com>
13325 * source.c (get_filename_and_charpos): Use scoped_fd.
13326 * nto-procfs.c (procfs_open_1): Use scoped_fd.
13327 (procfs_pidlist): Likewise.
13328 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
13329 (iterate_over_mappings): Likewise.
13331 2018-03-08 Tom Tromey <tom@tromey.com>
13333 * infcall.c (struct call_return_meta_info)
13334 <stack_temporaries_enabled>: Remove.
13335 (get_call_return_value, call_function_by_hand_dummy): Update.
13336 * thread.c (disable_thread_stack_temporaries): Remove.
13337 (enable_thread_stack_temporaries): Remove.
13338 (thread_stack_temporaries_enabled_p): Return bool.
13339 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
13340 (get_last_thread_stack_temporary): Update.
13341 * eval.c (evaluate_subexp): Update.
13342 * gdbthread.h (class enable_thread_stack_temporaries): Now a
13343 class, not a function.
13344 (value_ptr, value_vec): Remove typedefs.
13345 (class thread_info) <stack_temporaries_enabled>: Now bool.
13346 <stack_temporaries>: Now a std::vector.
13347 (thread_stack_temporaries_enabled_p)
13348 (value_in_thread_stack_temporaries): Return bool.
13350 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
13352 * remote.c (putpkt_binary): Fix omitted bytes reporting.
13353 (getpkt_or_notif_sane_1): Likewise.
13355 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13357 * build-id.c (build_id_to_debug_bfd): Use std::string.
13359 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13361 * build-id.c (find_separate_debug_file_by_buildid): Return
13363 * build-id.h (find_separate_debug_file_by_buildid): Return
13365 * coffread.c (coff_symfile_read): Adjust to std::string.
13366 * elfread.c (elf_symfile_read): Adjust to std::string.
13367 * symfile.c (separate_debug_file_exists): Change parameter to
13369 (find_separate_debug_file): Return std::string.
13370 (find_separate_debug_file_by_debuglink): Return std::string.
13371 * symfile.h (find_separate_debug_file_by_debuglink): Return
13374 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13376 * common/xml-utils.c (xml_escape_text): Move code to...
13377 (xml_escape_text_append): ... this new function.
13378 * common/xml-utils.h (xml_escape_text_append): New declaration.
13379 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
13381 (_initialize_xml_utils): register test_xml_escape_text_append as
13384 2018-03-07 Alan Hayward <alan.hayward@arm.com>
13386 * defs.h: Remove MAX_REGISTER_SIZE.
13387 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
13389 * python/py-unwind.c (pyuw_sniffer): Likewise.
13391 2018-03-07 Tom Tromey <tom@tromey.com>
13393 * linux-tdep.c (linux_info_proc): Update.
13394 * target.h (struct target_ops) <to_fileio_readlink>: Return
13396 (target_fileio_readlink): Return optional<string>.
13397 * remote.c (remote_hostio_readlink): Return optional<string>.
13398 * inf-child.c (inf_child_fileio_readlink): Return
13400 * target.c (target_fileio_readlink): Return optional<string>.
13402 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13404 * regcache.c (cooked_read_test): Add riscv to the list of
13405 architectures that have a save_reggroup.
13407 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
13409 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
13410 value is not a dynamic class object.
13412 2018-03-06 Tom Tromey <tom@tromey.com>
13414 * rust-exp.y: Formatting fixes.
13416 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13418 * riscv-tdep.c (riscv_register_name): Remove target description
13420 (riscv_gdbarch_init): Remove target description check.
13422 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13424 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
13426 * riscv-tdep.h: Likewise.
13428 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13430 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
13431 (riscv_pseudo_register_write): Delete.
13432 (riscv_gdbarch_init): Remove all use of pseudo registers.
13434 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13436 * record-btrace.c (btrace_print_lines): Replace cleanup
13437 parameter with RAII equivalents.
13438 (btrace_insn_history): Replace cleanup with RAII equivalents.
13439 * ui-out.h (make_cleanup_ui_out_list_begin_end,
13440 make_cleanup_ui_out_tuple_begin_end): Remove.
13441 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
13442 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
13443 make_cleanup_ui_out_list_begin_end): Remove.
13445 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13447 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
13448 parameter types to std::vector. Use bool.
13449 (record_btrace_wait): Replace VEC(tp_t) with
13450 std::vector<thread_info *>.
13451 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
13453 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13455 * record-btrace.c (record_btrace_disable_callback): Remove.
13456 (struct scoped_btrace_disable): New.
13457 (record_btrace_open): Use scoped_btrace_disable.
13459 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13461 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
13462 reading values from registers.
13464 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13466 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
13469 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13471 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
13472 change parameter type. Use GDB's print functions, and use
13473 core_addr_to_string where appropriate.
13474 (riscv_push_dummy_call): Use core_addr_to_string where
13475 appropriate, update call to riscv_print_arg_location, and reindent
13477 (riscv_return_value): Update call to riscv_print_arg_location.
13479 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13480 Tim Newsome <tim@sifive.com>
13481 Albert Ou <a0u@eecs.berkeley.edu>
13482 Darius Rad <darius@bluespec.com>
13484 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
13485 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
13486 (ALLDEPFILES): Add riscv-tdep.c
13487 * configure.tgt: Add riscv support.
13488 * riscv-tdep.c: New file.
13489 * riscv-tdep.h: New file.
13490 * NEWS: Mention new target.
13491 * MAINTAINERS: Add entry for riscv.
13493 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13495 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
13496 fields within aggregates.
13498 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
13500 * record-btrace.c (btrace_print_lines): Change type of flags to
13501 gdb_disassembly_flags.
13503 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13505 * fbsd-nat.c: Include "inf-ptrace.h".
13506 (USE_SIGTRAP_SIGINFO): Conditionally define.
13507 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
13508 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
13509 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
13511 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
13513 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
13515 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
13516 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
13517 "supports_stopped_by_hw_breakpoint" target methods.
13519 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13521 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
13522 * fbsd-nat.c (debug_fbsd_nat): New variable.
13523 (show_fbsd_nat_debug): New function.
13524 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
13525 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
13527 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13529 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
13530 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
13532 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
13533 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
13536 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13538 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
13539 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
13541 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13543 * charset.c (struct charset_vector): New.
13544 (charsets): Change type to charset_vector.
13545 (find_charset_names): Adjust.
13547 (_initialize_charset): Adjust.
13549 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13551 * progspace.h (struct program_space) <deleted_solibs>: Change
13552 type to std::vector<std::string>.
13553 * progspace.c (clear_program_space_solib_cache): Adjust.
13554 * breakpoint.c (print_solib_event): Adjust.
13555 (check_status_catch_solib): Adjust.
13556 * solib.c (update_solib_list): Adjust.
13557 * ui-out.h (class ui_out) <field_string>: New overload.
13558 * ui-out.c (ui_out::field_string): New overload.
13560 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13562 * progspace.h (struct program_space): Add constructor and
13563 destructor, initialize fields.
13564 (add_program_space): Remove.
13565 * progspace.c (add_program_space): Rename to...
13566 (program_space::program_space): ... this.
13567 (release_program_space): Rename to...
13568 (program_space::~program_space): ... this.
13569 (delete_program_space): Use delete to delete program_space.
13570 (initialize_progspace): Use new to allocate program_space.
13571 * inferior.c (add_inferior_with_spaces): Likewise.
13572 (clone_inferior_command): Likewise.
13573 * infrun.c (follow_fork_inferior): Likewise.
13574 (handle_vfork_child_exec_or_exit): Likewise.
13576 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13578 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
13579 (delim_string_to_char_ptr_vec): Return std::vector of
13580 gdb::unique_xmalloc_ptr.
13581 (dirnames_to_char_ptr_vec_append): Take std::vector of
13582 gdb::unique_xmalloc_ptr.
13583 (dirnames_to_char_ptr_vec): Return std::vector of
13584 gdb::unique_xmalloc_ptr.
13585 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
13586 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
13587 (delim_string_to_char_ptr_vec): Return an std::vector of
13588 gdb::unique_xmalloc_ptr, adjust the code.
13589 (dirnames_to_char_ptr_vec_append): Take an std::vector of
13590 gdb::unique_xmalloc_ptr, adjust the code.
13591 (dirnames_to_char_ptr_vec): Return an std::vector of
13592 gdb::unique_xmalloc_ptr, adjust the code.
13593 * auto-load.c (auto_load_safe_path_vec): Change type to
13594 std::vector of gdb::unique_xmalloc_ptr.
13595 (auto_load_expand_dir_vars): Return an std::vector of
13596 gdb::unique_xmalloc_ptr, adjust the code.
13597 (auto_load_safe_path_vec_update): Adjust.
13598 (filename_is_in_auto_load_safe_path_vec): Adjust.
13599 (auto_load_objfile_script_1): Adjust.
13600 * build-id.c (build_id_to_debug_bfd): Adjust.
13601 * linux-thread-db.c (thread_db_load_search): Adjust.
13602 * source.c (add_path): Adjust.
13604 * symfile.c (find_separate_debug_file): Adjust.
13605 * utils.c (do_free_char_ptr_vec): Remove.
13606 (make_cleanup_free_char_ptr_vec): Remove.
13608 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
13611 * common/pathstuff.c: Conditionally include "<windows.h>".
13613 2018-03-01 Georg Sauthoff <mail@georg.so>
13616 * gcore.in: Quote variables and switch interpreter to bash.
13618 2018-03-01 Tom Tromey <tom@tromey.com>
13620 * dwarf2read.c (alloc_discriminant_info): Fix default_index
13621 assertion. Add assertion for discriminant_index.
13622 (quirk_rust_enum): Use correct base type name in univariant case.
13624 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
13626 * record.c (get_call_history_modifiers): Return a
13627 record_print_flags.
13628 (cmd_record_call_history): Adjust.
13629 * record-btrace.c (record_btrace_call_history): Adjust.
13630 (record_btrace_call_history_range): Adjust.
13631 (record_btrace_call_history_from): Adjust.
13632 * target-debug.h (target_debug_print_record_print_flags): New.
13633 * target-delegates.c: Re-generate.
13634 * target.c (target_call_history): Change flags type.
13635 (target_call_history_from): Likewise.
13636 (target_call_history_range): Likewise.
13637 * target.h (struct target_ops) <target_call_history>: Likewise.
13638 (target_call_history_from): Likewise.
13639 (target_call_history_range): Likewise.
13641 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13642 Simon Marchi <simon.marchi@polymtl.ca>
13644 * common/common-utils.c: Include "sys/stat.h".
13645 (is_regular_file): Move here from "source.c"; change return
13647 * common/common-utils.h (is_regular_file): New prototype.
13648 * common/pathstuff.c (contains_dir_separator): New function.
13649 * common/pathstuff.h (contains_dir_separator): New prototype.
13650 * source.c: Don't include "sys/stat.h".
13651 (is_regular_file): Move to "common/common-utils.c".
13653 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13655 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
13656 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
13657 * auto-load.c: Include "common/pathstuff.h".
13658 * common/common-def.h (current_directory): Move here.
13659 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
13661 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
13663 * common/pathstuff.c: New file.
13664 * common/pathstuff.h: New file.
13665 * compile/compile.c: Include "common/pathstuff.h".
13666 * defs.h (current_directory): Move to "common/common-defs.h".
13667 * dwarf2read.c: Include "common/pathstuff.h".
13668 * exec.c: Likewise.
13669 * guile/scm-safe-call.c: Likewise.
13670 * linux-thread-db.c: Likewise.
13671 * main.c: Likewise.
13672 * nto-tdep.c: Likewise.
13673 * objfiles.c: Likewise.
13674 * source.c: Likewise.
13675 * symtab.c: Likewise.
13676 * utils.c: Include "common/pathstuff.h".
13677 (gdb_realpath): Move to "common/pathstuff.c".
13678 (gdb_realpath_keepfile): Likewise.
13679 (gdb_abspath): Likewise.
13680 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
13681 (gdb_realpath_keepfile): Likewise.
13682 (gdb_abspath): Likewise.
13684 2018-02-28 John Baldwin <jhb@FreeBSD.org>
13686 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
13687 wildcard process pid for super_resume for kernels with a
13690 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
13692 * compile/compile.c (get_args): Add additional comments
13693 explaining function.
13695 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
13696 Tom Tromey <tom@tromey.com>
13698 * target.h (memory_write_request_s): Remove typedef. Don't define
13700 (target_write_memory_blocks): Change argument to std::vector.
13701 (struct memory_write_request): Add constructor.
13702 * target-memory.c (compare_block_starting_address): Return bool.
13703 Change argument types.
13704 (claim_memory): Change arguments to use std::vector.
13705 (split_regular_and_flash_blocks, blocks_to_erase)
13706 (compute_garbled_blocks): Likewise.
13707 (cleanup_request_data, cleanup_write_requests_vector): Remove.
13708 (target_write_memory_blocks): Change argument to std::vector.
13709 * symfile.c (struct load_section_data): Add constructor and
13710 destructor. Use std::vector for "requests".
13711 (struct load_progress_data): Add initializers.
13712 (load_section_callback): Update. Use "new".
13713 (clear_memory_write_data): Remove.
13714 (generic_load): Update.
13716 2018-02-27 Alan Hayward <alan.hayward@arm.com>
13718 * arch/aarch64.h: Use common/tdesc.h.
13720 2018-02-26 Maciej W. Rozycki <macro@mips.com>
13722 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
13723 architecture with a 64-bit ABI.
13725 2018-02-26 Maciej W. Rozycki <macro@mips.com>
13727 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
13728 ahead of target description loading.
13730 2018-02-26 Tom Tromey <tom@tromey.com>
13732 * stack.c (backtrace_command_1): Update.
13733 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
13735 * python/py-framefilter.c (py_print_frame)
13736 (gdbpy_apply_frame_filter): Change type of "flags".
13737 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
13739 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
13740 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
13741 * extension.h (enum frame_filter_flag): Rename from
13742 frame_filter_flags.
13743 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
13744 (apply_ext_lang_frame_filter): Change type of "flags".
13745 * extension.c (apply_ext_lang_frame_filter): Change type of
13747 * extension-priv.h (struct extension_language_ops)
13748 <apply_frame_filter>: Change type of "flags".
13750 2018-02-26 Tom Tromey <tom@tromey.com>
13753 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
13754 off-by-one in py_end computation.
13755 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
13757 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
13760 2018-02-26 Tom Tromey <tom@tromey.com>
13762 * dwarf2read.c (struct variant_field): New.
13763 (struct nextfield) <variant>: New field.
13764 (dwarf2_add_field): Handle DW_TAG_variant_part.
13765 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
13766 discriminated union.
13767 (read_structure_type): Handle DW_TAG_variant_part.
13768 (handle_struct_member_die): New function, extracted from
13769 process_structure_scope. Handle DW_TAG_variant.
13770 (process_structure_scope): Handle discriminated unions. Call
13771 handle_struct_member_die.
13773 2018-02-26 Tom Tromey <tom@tromey.com>
13775 * rust-lang.h (rust_last_path_segment): Declare.
13776 * rust-lang.c (rust_last_path_segment): Now public. Change
13778 (struct disr_info): Remove.
13779 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
13780 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
13781 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
13782 (rust_enum_p, rust_enum_variant): New function.
13783 (rust_underscore_fields): Remove "offset" parameter.
13784 (rust_print_enum): New function.
13785 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
13786 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
13787 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
13789 (rust_internal_print_type): New function, from rust_print_type.
13791 (rust_print_type): Call rust_internal_print_type.
13792 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
13793 Update enum handling.
13794 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
13795 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
13796 (rust_union_quirks): New functions.
13797 (process_full_comp_unit, process_full_type_unit): Call
13799 (process_structure_scope): Update rust_unions if necessary.
13801 2018-02-26 Tom Tromey <tom@tromey.com>
13803 * value.h (value_union_variant): Declare.
13804 * valops.c (value_union_variant): New function.
13805 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
13806 (struct discriminant_info): New.
13807 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
13809 (struct main_type) <flag_discriminated_union>: New field.
13811 2018-02-26 Tom Tromey <tom@tromey.com>
13813 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13814 unittests/unpack-selftests.c.
13815 * unittests/unpack-selftests.c: New file.
13816 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
13818 2018-02-26 Yao Qi <yao.qi@linaro.org>
13820 * dwarf2read.c (struct partial_die_info) <read>: New method.
13821 (read_partial_die): Remove the declaration.
13822 (load_partial_dies): Update.
13823 (partial_die_info::partial_die_info):
13824 (read_partial_die): Change it to partial_die_info::read.
13826 2018-02-26 Yao Qi <yao.qi@linaro.org>
13828 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
13829 (fixup_partial_die): Remove declaration.
13830 (scan_partial_symbols): Update.
13831 (partial_die_parent_scope): Likewise.
13832 (partial_die_full_name): Likewise.
13833 (fixup_partial_die): Change it to partial_die_info::fixup.
13835 2018-02-26 Yao Qi <yao.qi@linaro.org>
13837 * dwarf2read.c (read_partial_die): Update the declaration.
13838 (load_partial_dies): Caller update.
13839 (read_partial_die): Remove one argument abbrev_len.
13841 2018-02-26 Yao Qi <yao.qi@linaro.org>
13843 * dwarf2read.c (struct partial_die_info): Add ctor, delete
13844 assignment operator.
13845 (load_partial_dies): Use ctor and copy ctor.
13846 (read_partial_die): Update.
13847 (dwarf2_cu::find_partial_die): Use ctor.
13849 2018-02-26 Yao Qi <yao.qi@linaro.org>
13851 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
13852 (find_partial_die_in_comp_unit): Change it to
13853 dwarf2_cu::find_partial_die.
13854 (find_partial_die): Update.
13856 2018-02-26 Yao Qi <yao.qi@linaro.org>
13858 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
13861 2018-02-26 Yao Qi <yao.qi@linaro.org>
13863 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
13865 2018-02-26 Alan Hayward <alan.hayward@arm.com>
13867 * arch/amd64.h: Use common/tdesc.h.
13868 * arch/i386.c: Likewise.
13869 * arch/i386.h: Likewise.
13870 * arch/tic6x.c: Likewise.
13871 * arch/tdesc.h: Move file from here...
13872 * common/tdesc.h: ...to here.
13873 * features/aarch64-core.c: Regenerate.
13874 * features/aarch64-fpu.c: Regenerate.
13875 * features/i386/32bit-avx.c: Regenerate.
13876 * features/i386/32bit-avx512.c: Regenerate.
13877 * features/i386/32bit-core.c: Regenerate.
13878 * features/i386/32bit-linux.c: Regenerate.
13879 * features/i386/32bit-mpx.c: Regenerate.
13880 * features/i386/32bit-pkeys.c: Regenerate.
13881 * features/i386/32bit-sse.c: Regenerate.
13882 * features/i386/64bit-avx.c: Regenerate.
13883 * features/i386/64bit-avx512.c: Regenerate.
13884 * features/i386/64bit-core.c: Regenerate.
13885 * features/i386/64bit-linux.c: Regenerate.
13886 * features/i386/64bit-mpx.c: Regenerate.
13887 * features/i386/64bit-pkeys.c: Regenerate.
13888 * features/i386/64bit-segments.c: Regenerate.
13889 * features/i386/64bit-sse.c: Regenerate.
13890 * features/i386/x32-core.c: Regenerate.
13891 * features/tic6x-c6xp.c: Regenerate.
13892 * features/tic6x-core.c: Regenerate.
13893 * features/tic6x-gp.c: Regenerate.
13894 * target-descriptions.c: Use common/tdesc.h.
13895 * target-descriptions.h: Likewise.
13897 2018-02-24 Tom Tromey <tom@tromey.com>
13899 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
13900 (try_thread_db_load_from_dir, thread_db_load_search): Use
13902 (info_auto_load_libthread_db_compare): Return bool. Change
13904 (info_auto_load_libthread_db): Use std::vector, std::string.
13907 2018-02-24 Tom Tromey <tom@tromey.com>
13909 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
13911 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
13913 * gdbarch.c: Rebuild.
13914 * gdbarch.h: Rebuild.
13915 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
13916 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
13917 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
13920 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
13922 * gdbtypes.h (sect_offset): Change type to uint64_t.
13923 (sect_offset_str): New function.
13924 * dwarf2read.c (create_addrmap_from_aranges): Use
13926 (error_check_comp_unit_head): Likewise.
13927 (create_debug_type_hash_table): Likewise.
13928 (read_cutu_die_from_dwo): Likewise.
13929 (init_cutu_and_read_dies): Likewise.
13930 (init_cutu_and_read_dies_no_follow): Likewise.
13931 (process_psymtab_comp_unit_reader): Likewise.
13932 (partial_die_parent_scope): Likewise.
13933 (peek_die_abbrev): Likewise.
13934 (process_queue): Likewise.
13935 (dwarf2_physname): Likewise.
13936 (read_namespace_alias): Likewise.
13937 (read_import_statement): Likewise.
13938 (create_dwo_cu_reader): Likewise.
13939 (create_cus_hash_table): Likewise.
13940 (lookup_dwo_cutu): Likewise.
13941 (inherit_abstract_dies): Likewise.
13942 (read_func_scope): Likewise.
13943 (read_call_site_scope): Likewise.
13944 (dwarf2_add_member_fn): Likewise.
13945 (read_common_block): Likewise.
13946 (read_module_type): Likewise.
13947 (read_typedef): Likewise.
13948 (read_subrange_type): Likewise.
13949 (load_partial_dies): Likewise.
13950 (read_partial_die): Likewise.
13951 (find_partial_die): Likewise.
13952 (read_str_index): Likewise.
13953 (dwarf2_string_attr): Likewise.
13954 (build_error_marker_type): Likewise.
13955 (lookup_die_type): Likewise.
13956 (dump_die_shallow): Likewise.
13957 (follow_die_ref): Likewise.
13958 (dwarf2_fetch_die_loc_sect_off): Likewise.
13959 (dwarf2_fetch_constant_bytes): Likewise.
13960 (follow_die_sig): Likewise.
13961 (get_signatured_type): Likewise.
13962 (get_DW_AT_signature_type): Likewise.
13963 (dwarf2_find_containing_comp_unit): Likewise.
13964 (set_die_type): Likewise.
13966 2018-02-21 John Baldwin <jhb@FreeBSD.org>
13968 * arch/aarch64.c: Include "common-defs.h".
13969 * arch/amd64.c: Likewise.
13970 * arch/i386.c: Likewise.
13972 2018-02-21 Tom Tromey <tom@tromey.com>
13974 * value.h: (extract_field_op): Update.
13975 * eval.c (extract_field_op): Return a const char *.
13976 * expression.h (parse_expression_for_completion): Update.
13977 * completer.c (complete_expression): Update.
13978 (add_struct_fields): Make fieldname const.
13979 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
13980 (mark_completion_tag, parse_exp_in_context_1): Update.
13981 (parse_expression_for_completion): Change "name" to
13982 unique_xmalloc_ptr*.
13984 2018-02-21 Tom Tromey <tom@tromey.com>
13986 * infcall.c (call_function_by_hand_dummy): Use std::vector.
13988 2018-02-21 Yao Qi <yao.qi@linaro.org>
13990 * avr-tdep.c (avr_read_pc): Change parameter type to
13992 * gdbarch.sh (read_pc): Likewise.
13993 * gdbarch.c: Re-generated.
13994 * gdbarch.h: Re-generated.
13995 * hppa-tdep.c (hppa_read_pc): Change parameter type to
13997 * ia64-tdep.c (ia64_read_pc): Likewise.
13998 * mips-tdep.c (mips_read_pc): Likewise.
13999 * spu-tdep.c (spu_read_pc): Likewise.
14001 2018-02-21 Yao Qi <yao.qi@linaro.org>
14003 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
14004 * regcache-dump.c: New file.
14005 * regcache.c: Move register_dump to regcache-dump.c.
14006 (maintenance_print_registers): Likewise.
14007 (maintenance_print_raw_registers): Likewise.
14008 (maintenance_print_cooked_registers): Likewise.
14009 (maintenance_print_register_groups): Likewise.
14010 (maintenance_print_remote_registers): Likewise.
14011 (_initialize_regcache): Likewise.
14012 * regcache.h (register_dump): Moved from regcache.c.
14014 2018-02-21 Yao Qi <yao.qi@linaro.org>
14016 * regcache.c (regcache::regcache): Update.
14017 (regcache::invalidate): Move it to detached_regcache::invalidate.
14018 (get_thread_arch_aspace_regcache): Update.
14019 (regcache::raw_update): Update.
14020 (regcache::cooked_read): Remove some code.
14021 (regcache::cooked_read_value): Likewise.
14022 (regcache::raw_write): Remove assert on m_readonly_p.
14023 (regcache::raw_supply_integer): Move it to
14024 detached_regcache::raw_supply_integer.
14025 (regcache::raw_supply_zeroed): Likewise.
14026 * regcache.h (detached_regcache) <raw_supply_integer>: New
14028 <raw_supply_zeroed, invalidate>: Likewise.
14029 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
14030 <invalidate>: Likewise.
14031 <m_readonly_p>: Removed.
14033 2018-02-21 Yao Qi <yao.qi@linaro.org>
14035 * infcmd.c (get_return_value): Let stop_regs point to
14036 get_current_regcache.
14037 * regcache.c (regcache::regcache): Remove.
14038 (register_dump_reg_buffer): New class.
14039 (regcache_print): Adjust.
14040 * regcache.h (regcache): Remove constructors.
14042 2018-02-21 Yao Qi <yao.qi@linaro.org>
14044 * regcache.c (class register_dump): New class.
14045 (register_dump_regcache, register_dump_none): New class.
14046 (register_dump_remote, register_dump_groups): New class.
14047 (regcache_print): Update.
14048 * regcache.h (regcache_dump_what): Move it to regcache.c.
14049 (regcache) <dump>: Remove.
14051 2018-02-21 Yao Qi <yao.qi@linaro.org>
14053 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
14055 (jit_unwind_reg_set_impl): Call raw_supply.
14056 (jit_frame_sniffer): Use reg_buffer_rw.
14057 * record-full.c (record_full_core_regbuf): Change its type.
14058 (record_full_core_open_1): Use reg_buffer_rw.
14059 (record_full_close): Likewise.
14060 (record_full_core_fetch_registers): Use regcache->raw_supply.
14061 (record_full_core_store_registers): Likewise.
14062 * regcache.c (regcache::get_register_status): Move it to
14064 (regcache_raw_set_cached_value): Remove.
14065 (regcache::raw_set_cached_value): Remove.
14066 (regcache::raw_write): Call raw_supply.
14067 (regcache::raw_supply): Move it to reg_buffer_rw.
14068 * regcache.h (regcache_raw_set_cached_value): Remove.
14069 (reg_buffer_rw): New class.
14071 2018-02-21 Yao Qi <yao.qi@linaro.org>
14073 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
14074 readonly_detached_regcache.
14075 (dummy_frame_prev_register): Use regcache->cooked_read.
14076 * frame.c (frame_save_as_regcache): Change return type.
14077 (frame_pop): Update.
14078 * frame.h (frame_save_as_regcache): Update declaration.
14079 * inferior.h (get_infcall_suspend_state_regcache): Update
14081 * infrun.c (infcall_suspend_state) <registers>: use
14082 readonly_detached_regcache.
14083 (save_infcall_suspend_state): Don't use regcache_dup.
14084 (get_infcall_suspend_state_regcache): Change return type.
14085 * linux-fork.c (struct fork_info) <savedregs>: Change to
14086 readonly_detached_regcache.
14088 (fork_save_infrun_state): Don't use regcache_dup.
14089 (info_checkpoints_command): Adjust.
14090 * mi/mi-main.c (register_changed_p): Update declaration.
14091 (mi_cmd_data_list_changed_registers): Use
14092 readonly_detached_regcache.
14093 (register_changed_p): Change parameter type to
14094 readonly_detached_regcache.
14095 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
14096 readonly_detached_regcache.
14097 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
14098 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
14100 (regcache::save): Move it to reg_buffer.
14101 (regcache::restore): Change parameter type.
14102 (regcache_dup): Remove.
14103 * regcache.h (reg_buffer) <save>: New method.
14104 (readonly_detached_regcache): New class.
14105 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
14106 readonly_detached_regcache.
14107 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
14109 2018-02-21 Yao Qi <yao.qi@linaro.org>
14111 * frame.c (frame_save_as_regcache): Use regcache method save.
14112 (frame_pop): Use regcache method restore.
14113 * infrun.c (restore_infcall_suspend_state): Likewise.
14114 * linux-fork.c (fork_load_infrun_state): Likewise.
14115 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
14117 * regcache.c (regcache_save): Remove.
14118 (regcache::restore): More asserts.
14119 (regcache_cpy): Remove.
14120 * regcache.h (regcache_save): Remove the declaration.
14121 (regcache::restore): Move from private to public.
14122 Remove the friend declaration of regcache_cpy.
14123 (regcache_cpy): Remove declaration.
14125 2018-02-21 Yao Qi <yao.qi@linaro.org>
14127 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
14128 parameter type to 'readable_regcache *'.
14129 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14130 * arm-tdep.c (arm_neon_quad_read): Likewise.
14131 (arm_pseudo_read): Likewise.
14132 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14133 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14134 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14135 * gdbarch.c: Re-generated.
14136 * gdbarch.h: Re-generated.
14137 * gdbarch.sh (pseudo_register_read): Change parameter type to
14138 'readable_regcache *'.
14139 (pseudo_register_read_value): Likewise.
14140 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
14141 (h8300_pseudo_register_read): Likewise.
14142 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
14143 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14144 (i386_pseudo_register_read_into_value): Likewise.
14145 (i386_pseudo_register_read_value): Likewise.
14146 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
14148 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
14149 * m32c-tdep.c (m32c_raw_read): Likewise.
14150 (m32c_read_flg): Likewise.
14151 (m32c_banked_register): Likewise.
14152 (m32c_banked_read): Likewise.
14153 (m32c_sb_read): Likewise.
14154 (m32c_part_read): Likewise.
14155 (m32c_cat_read): Likewise.
14156 (m32c_r3r2r1r0_read): Likewise.
14157 (m32c_pseudo_register_read): Likewise.
14158 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14159 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14160 (mep_pseudo_cr64_read): Likewise.
14161 (mep_pseudo_register_read): Likewise.
14162 * mips-tdep.c (mips_pseudo_register_read): Likewise.
14163 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14164 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14165 * regcache.c (regcache::raw_read): Move it to readable_regcache.
14166 (regcache::cooked_read): Likewise.
14167 (regcache::cooked_read_value): Likewise.
14168 (regcache_cooked_read_signed):
14169 (regcache::cooked_read): Likewise.
14170 * regcache.h (readable_regcache): New class.
14171 (regcache): Inherit readable_regcache. Move some methods to
14173 * rl78-tdep.c (rl78_pseudo_register_read): Change
14174 parameter type to 'readable_regcache *'.
14175 * rs6000-tdep.c (do_regcache_raw_read): Remove.
14176 (e500_pseudo_register_read): Change parameter type to
14177 'readable_regcache *'.
14178 (dfp_pseudo_register_read): Likewise.
14179 (vsx_pseudo_register_read): Likewise.
14180 (efpr_pseudo_register_read): Likewise.
14181 * s390-tdep.c (s390_pseudo_register_read): Likewise.
14182 * sh-tdep.c (sh_pseudo_register_read): Likewise.
14183 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
14184 (sh64_pseudo_register_read): Likewise.
14185 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14186 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14187 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14188 (spu_pseudo_register_read): Likewise.
14189 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14190 (xtensa_pseudo_register_read): Likewise.
14192 2018-02-21 Yao Qi <yao.qi@linaro.org>
14194 * regcache.c (regcache::regcache): Call reg_buffer ctor.
14195 (regcache::arch): Move it to reg_buffer::arch.
14196 (regcache::register_buffer): Likewise.
14197 (regcache::assert_regnum): Likewise.
14198 (regcache::num_raw_registers): Likewise.
14199 * regcache.h (reg_buffer): New class.
14200 (regcache): Inherit reg_buffer.
14202 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
14204 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
14205 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
14207 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
14209 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
14211 2018-02-19 Alan Hayward <alan.hayward@arm.com>
14213 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
14214 (SFILES): Remove common/*.c files.
14215 (COMMON_OBS): Remove some *.o files built from common/*.c files.
14216 * common/common.host: Add common reference.
14217 * configure.ac: Likewise.
14218 * configure: Regenerate.
14220 2018-02-16 Yao Qi <yao.qi@linaro.org>
14222 * block.c (block_namespace_info): Inherit allocate_on_obstack.
14223 (block_initialize_namespace): Use new.
14224 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
14225 (dwarf2_free_objfile): Use delete.
14226 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
14227 (copy_type_recursive): Use new.
14228 * gdb_obstack.h (allocate_on_obstack): New.
14230 2018-02-15 Yao Qi <yao.qi@linaro.org>
14233 * inferior.c (exit_inferior_1): Reset inf->control.
14235 2018-02-15 Joel Brobecker <brobecker@adacore.com>
14237 * ada-lang.c (ada_to_fixed_value_create): Delete advance
14240 2018-02-14 Pedro Alves <palves@redhat.com>
14242 * frame-unwind.c (frame_unwind_try_unwinder): Always call
14243 frame_cleanup_after_sniffer on exception.
14245 2018-02-14 Tom Tromey <tom@tromey.com>
14247 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
14249 (solib_bfd_open): Make pathname const.
14250 * solib.c (solib_bfd_open): Make pathname const.
14251 * solib-spu.c (spu_bfd_fopen): Make name const.
14252 (spu_bfd_open): Make pathname const.
14253 * solib-darwin.c (darwin_bfd_open): Make pathname const.
14254 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
14256 2018-02-14 Tom Tromey <tom@tromey.com>
14258 * symfile.c (symfile_bfd_open): Update.
14259 * source.h (openp, source_full_path_of, find_and_open_source):
14260 Change argument type to unique_xmalloc_ptr.
14261 * source.c (openp): Take a unique_xmalloc_ptr.
14262 (source_full_path_of, find_and_open_source): Likewise.
14263 (open_source_file, symtab_to_fullname): Update.
14264 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
14265 unique_xmalloc_ptr.
14266 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
14267 (exec_file_find): Update.
14268 * psymtab.c (psymtab_to_fullname): Update.
14269 * nto-tdep.h (nto_find_and_open_solib): Update.
14270 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
14271 unique_xmalloc_ptr.
14272 * exec.c (exec_file_attach): Update.
14273 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
14274 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
14276 2018-02-14 Tom Tromey <tom@tromey.com>
14278 * solib.c: Include source.h.
14279 * nto-tdep.c: Include source.h.
14280 * mi/mi-cmd-env.c: Include source.h.
14281 * infcmd.c: Include source.h.
14282 * exec.c: Include source.h.
14283 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
14284 (add_path, directory_switch, source_path, init_source_path): Move
14286 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
14287 (add_path, directory_switch, source_path, init_source_path):
14290 2018-02-14 Tom Tromey <tom@tromey.com>
14292 * solist.h (exec_file_find, solib_find): Return
14293 unique_xmalloc_ptr.
14294 (solib_bfd_fopen): Take a const char *.
14295 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
14296 (exec_file_find, solib_find): Likewise.
14297 (solib_bfd_fopen): Do not take ownership of "pathname".
14298 (solib_bfd_open): Use unique_xmalloc_ptr.
14299 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
14300 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
14301 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
14302 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
14304 2018-02-14 Joel Brobecker <brobecker@adacore.com>
14306 * ada-lang.c (name_match_type_from_name): Remove reference to
14307 ada_name_for_lookup in function's documentation.
14308 * ada-lang.h (ada_name_for_lookup): Delete declaration.
14310 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14312 * defs.h (enum openp_flags): New enum.
14313 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
14314 Move to enum openp_flags.
14315 (openp_flags): New enum flags.
14316 (openp): Change parameter type to openp_flags.
14317 * source.c (openp): Change parameter type to openp_flags.
14318 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
14319 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
14321 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14323 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
14326 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
14328 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
14330 (class dwarf2_queue_guard): ...the destructor of this new class.
14331 (dw2_do_instantiate_symtab): Create instance of the new class
14332 dwarf2_queue_guard, remove cleanup.
14334 2018-02-09 Tom Tromey <tom@tromey.com>
14336 * source.c (find_source_lines): Don't reference past the end of
14339 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14341 * remote.c (remote_btrace_maybe_reopen): Change error message.
14342 * btrace.c (btrace_enable): Likewise.
14343 (parse_xml_btrace): Likewise.
14344 (parse_xml_btrace_conf): Likewise.
14346 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14348 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
14349 (linux_enable_pt, linux_enable_bts): Call
14350 diagnose_perf_event_open_fail.
14352 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14354 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
14355 Remove parameter and change return type. Update callers. Move it.
14356 (linux_enable_bts, linux_enable_pt): Improve error message.
14357 (linux_enable_pt): Remove zero buffer size check.
14358 (linux_enable_btrace): Improve error messages. Remove NULL return
14361 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14363 * btrace.c (btrace_enable): Remove target_supports_btrace call.
14364 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
14365 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
14366 (linux_supports_pt, linux_supports_btrace): Remove.
14367 (linux_enable_bts): Call cpu_supports_bts.
14368 * nat/linux-btrace.h (linux_supports_btrace): Remove.
14369 * remote.c (remote_supports_btrace): Remove.
14370 (init_remote_ops): Remove remote_supports_btrace.
14371 * target-delegates.c: Regenerated.
14372 * target.c (target_supports_btrace): Remove.
14373 * target.h (target_ops) <to_supports_btrace>: Remove
14374 (target_supports_btrace): Remove.
14375 * x86-linux-nat.c (x86_linux_create_target): Remove
14376 linux_supports_btrace.
14378 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14380 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
14382 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
14383 exception and use message in own exception.
14385 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14387 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
14388 (perf_event_pt_event_type): Use gdb_file_up.
14389 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
14390 scoped_fd, and scoped_mmap.
14392 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14394 * common/scoped_mmap.h: New.
14395 * unittests/scoped_mmap-selftest.c: New.
14396 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14397 unittests/scoped_mmap-selftest.c.
14399 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14401 * common/scoped_fd.h: New.
14402 * unittests/scoped_fd-selftest.c: New.
14403 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14404 unittests/scoped_fd-selftest.c.
14406 2018-02-09 Tom Tromey <tom@tromey.com>
14408 * auto-load.c (auto_load_section_scripts): Use
14409 gdb::unique_xmalloc_ptr.
14411 2018-02-09 Tom Tromey <tom@tromey.com>
14413 * auto-load.c (execute_script_contents): Use std::string.
14415 2018-02-09 Joel Brobecker <brobecker@adacore.com>
14417 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
14418 Python function, rather than a new command.
14420 2018-02-08 Tom Tromey <tom@tromey.com>
14422 * solib.c (solib_find_1): Use std::string.
14423 (solib_bfd_fopen): Use unique_xmalloc_ptr.
14425 2018-02-08 Tom Tromey <tom@tromey.com>
14427 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
14429 2018-02-08 Tom Tromey <tom@tromey.com>
14431 * source.c (find_source_lines): Use gdb::def_vector.
14433 2018-02-08 Tom Tromey <tom@tromey.com>
14435 * macrocmd.c (struct temporary_macro_definition): New.
14436 (macro_define_command): Use temporary_macro_definition. Remove
14438 (free_macro_definition_ptr): Remove.
14440 2018-02-08 Tom Tromey <tom@tromey.com>
14442 * macroexp.c (maybe_expand): Use std::string.
14444 2018-02-08 Tom Tromey <tom@tromey.com>
14446 * macroexp.c (struct macro_buffer): Add initializers for some
14448 (init_buffer, init_shared_buffer, free_buffer)
14449 (free_buffer_return_text): Remove.
14450 (macro_buffer): New constructors.
14451 (~macro_buffer): New destructor.
14452 (macro_buffer::set_shared): New method.
14453 (macro_buffer::resize_buffer, macro_buffer::appendc)
14454 (macro_buffer::appendmem): Now methods, not free functions.
14455 (set_token, append_tokens_without_splicing, stringify)
14456 (macro_stringify): Update.
14457 (gather_arguments): Change return type. Remove argc_p argument,
14458 add args_ptr argument. Use std::vector.
14459 (substitute_args): Remove argc argument. Accept std::vector.
14460 (expand): Update. Use std::vector.
14461 (scan, macro_expand, macro_expand_next): Update.
14463 2018-02-08 Tom Tromey <tom@tromey.com>
14465 * symtab.c (default_collect_symbol_completion_matches_break_on):
14466 Use unique_xmalloc_ptr.
14467 * macroscope.h: (sal_macro_scope, user_macro_scope)
14468 (default_macro_scope): Return unique_xmalloc_ptr.
14469 * macroscope.c (sal_macro_scope, user_macro_scope)
14470 (default_macro_scope): Return unique_xmalloc_ptr.
14471 * macroexp.h (macro_expand, macro_expand_once): Return
14472 unique_xmalloc_ptr.
14473 * macroexp.c (macro_expand, macro_expand_once): Return
14474 unique_xmalloc_ptr.
14475 * macrocmd.c (macro_expand_command, macro_expand_once_command)
14476 (info_macro_command, info_macros_command): Use
14477 unique_xmalloc_ptr.
14478 * compile/compile-c-support.c (write_macro_definitions): Use
14479 unique_xmalloc_ptr.
14480 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
14482 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
14484 * value.c (value_static_field): Assign field type instead of
14485 containing type when returning an optimized out value.
14487 2018-02-06 Yao Qi <yao.qi@linaro.org>
14489 * ft32-tdep.c (ft32_read_pc): Remove.
14490 (ft32_write_pc): Remove.
14491 (ft32_gdbarch_init): Update.
14492 * m32r-tdep.c (m32r_read_pc): Remove.
14493 (m32r_gdbarch_init): Update.
14494 * mep-tdep.c (mep_read_pc): Remove.
14495 (mep_gdbarch_init): Update.
14496 * microblaze-tdep.c (microblaze_write_pc): Remove.
14497 (microblaze_gdbarch_init): Update.
14498 * mn10300-tdep.c (mn10300_read_pc): Remove.
14499 (mn10300_write_pc): Remove.
14500 (mn10300_gdbarch_init): Update.
14501 * moxie-tdep.c (moxie_read_pc): Remove.
14502 (moxie_write_pc): Remove.
14503 (moxie_gdbarch_init): Update.
14505 2018-02-06 Yao Qi <yao.qi@linaro.org>
14507 * expprint.c (print_subexp_standard): Handle
14508 OP_F77_UNDETERMINED_ARGLIST.
14509 (dump_subexp_body_standard): Likewise.
14511 2018-02-05 Alan Hayward <alan.hayward@arm.com>
14513 * target-descriptions.c (tdesc_element_visitor) Add empty
14515 (tdesc_type): Move make_gdb_type from here.
14516 (tdesc_type_builtin): Likewise.
14517 (tdesc_type_vector): Likewise.
14518 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
14519 (make_gdb_type_struct): Move from tdesc_type_with_fields.
14520 (make_gdb_type_union): Likewise.
14521 (make_gdb_type_flags): Likewise.
14522 (make_gdb_type_enum): Likewise.
14523 (make_gdb_type): New function.
14524 (tdesc_register_type): Use static make_gdb_type.
14526 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
14528 * infcmd.c (default_print_one_register_info): Align natural-format
14529 column values consistently one under another.
14530 (pad_to_column): New function.
14532 2018-02-05 Joel Brobecker <brobecker@adacore.com>
14534 * dwarf2read.c (dwarf2_physname): Move commment.
14536 2018-02-01 Leszek Swirski <leszeks@google.com>
14538 * varobj.c (varobj_formatted_print_options): Allow recursive
14539 pretty printing if pretty printing is enabled.
14541 2018-02-01 Leszek Swirski <leszeks@google.com>
14543 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
14544 names after a structop as a filename.
14546 2018-02-01 Yao Qi <yao.qi@linaro.org>
14548 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
14549 (arm_record_coproc_data_proc): Likewise.
14551 2018-02-01 Yao Qi <yao.qi@linaro.org>
14553 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
14555 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
14557 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
14558 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
14560 2018-01-31 Pedro Alves <palves@redhat.com>
14562 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
14563 * inflow.c (child_terminal_save_inferior): Wrap reference to
14564 tcgetpgrp in HAVE_TERMIOS_H.
14565 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
14567 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
14568 always iterate over all inferiors.
14569 (gdbsim_cntrl_c): Adjust.
14570 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
14572 2018-01-31 Joel Brobecker <brobecker@adacore.com>
14574 * gdbtypes.c (lookup_array_range_type): Make sure the array's
14575 index type is objfile-owned if the element type is as well.
14577 2018-01-31 Joel Brobecker <brobecker@adacore.com>
14581 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
14583 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
14584 "features/s390x-linux64.c".
14585 (_initialize_s390_linux_tdep): Remove initialization of tdescs
14586 s390_linux32 and s390x_linux64.
14587 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
14589 * s390-tdep.c: Include "features/s390-linux32.c" and
14590 "features/s390x-linux64.c".
14591 (s390_tdesc_valid): Add check for tdesc_has_registers.
14592 (s390_gdbarch_init): Make sure there is always a valid tdesc.
14593 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
14594 tdesc_s390x_linux64.
14595 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
14596 tdesc_s390x_linux64 to...
14597 * s390-tdep.h: ...here.
14599 2018-01-30 Pedro Alves <palves@redhat.com>
14602 * config.in, configure: Regenerate.
14603 * configure.ac: Check for getpgid.
14604 * go32-nat.c (go32_pass_ctrlc): New.
14605 (go32_target): Install it.
14606 * inf-child.c (inf_child_target): Install
14607 child_terminal_save_inferior, child_pass_ctrlc and
14609 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
14610 (inf_ptrace_target): No longer install it.
14611 * infcmd.c (interrupt_target_1): Adjust.
14612 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
14613 (child_interrupt): Declare.
14614 (inferior::terminal_state): New.
14615 * inflow.c (struct terminal_info): Update comments.
14616 (inferior_process_group): Delete.
14617 (terminal_is_ours): Delete.
14618 (gdb_tty_state): New.
14619 (child_terminal_init): Adjust.
14620 (is_gdb_terminal, sharing_input_terminal_1)
14621 (sharing_input_terminal): New functions.
14622 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
14623 Set the process's actual process group in the foreground if
14624 possible. Handle is_ours_for_output/is_ours distinction. Don't
14625 mark terminal as the inferior's if not sharing GDB's terminal.
14626 Don't check attach_flag.
14627 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
14628 pass down a target_terminal_state.
14629 (child_terminal_save_inferior): New, factored out from ...
14630 (child_terminal_ours_1): ... this. Handle
14631 target_terminal_state::is_ours_for_output.
14632 (child_interrupt, child_pass_ctrlc): New.
14633 (inflow_inferior_exit): Clear the inferior's terminal_state.
14634 (copy_terminal_info): Copy the inferior's terminal state.
14635 (_initialize_inflow): Remove reference to terminal_is_ours.
14636 * inflow.h (inferior_process_group): Delete.
14637 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
14638 * procfs.c (procfs_target): Don't install procfs_interrupt.
14639 (procfs_interrupt): Delete.
14640 * remote.c (remote_serial_quit_handler): Adjust.
14641 (remote_interrupt): Remove ptid parameter. Adjust.
14642 * target-delegates.c: Regenerate.
14643 * target.c: Include "terminal.h".
14644 (target_terminal::terminal_state): Rename to ...
14645 (target_terminal::m_terminal_state): ... this.
14646 (target_terminal::init): Adjust.
14647 (target_terminal::inferior): Adjust to per-inferior
14649 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
14650 (target_terminal::ours, target_terminal::ours_for_output): Use
14651 target_terminal_is_ours_kind.
14652 (target_interrupt): Remove ptid parameter. Adjust.
14653 (default_target_pass_ctrlc): Adjust.
14654 * target.h (target_ops::to_terminal_save_inferior): New field.
14655 (target_ops::to_interrupt): Remove ptid_t parameter.
14656 (target_interrupt): Remove ptid_t parameter. Update comment.
14657 (target_pass_ctrlc): Update comment.
14658 * target/target.h (target_terminal_state): New scoped enum,
14659 factored out of ...
14660 (target_terminal::terminal_state): ... here.
14661 (target_terminal::inferior): Update comments.
14662 (target_terminal::restore_inferior): New.
14663 (target_terminal::is_inferior, target_terminal::is_ours)
14664 (target_terminal::is_ours_for_output): Adjust.
14665 (target_terminal::scoped_restore_terminal_state): Adjust to
14666 rename, and call restore_inferior() instead of inferior().
14667 (target_terminal::scoped_restore_terminal_state::m_state): Change
14669 (target_terminal::terminal_state): Rename to ...
14670 (target_terminal::m_terminal_state): ... this and change type.
14672 2018-01-30 Pedro Alves <palves@redhat.com>
14674 * linux-nat.c (wait_for_signal): New function.
14675 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
14677 (async_terminal_is_ours)
14678 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
14679 (linux_nat_add_target): Don't override
14680 to_terminal_inferior/to_terminal_ours.
14682 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
14684 * remote.c (remote_follow_fork): Don't call "detach_inferior".
14686 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
14688 * dwarf2read.c (free_dwo_files): Add forward-declaration.
14689 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
14690 dwarf2_per_objfile_free here.
14691 (dwarf2_per_objfile_free): Remove.
14692 (_initialize_dwarf2_read): Don't register
14693 dwarf2_per_objfile_free as a registry cleanup.
14695 2018-01-27 Eli Zaretskii <eliz@gnu.org>
14697 Avoid compilation errors in MinGW native builds
14699 The error is triggered by including python-internal.h, and the
14702 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
14703 from build-gnulib/import/math.h:27,
14704 from d:/usr/Python26/include/pyport.h:235,
14705 from d:/usr/Python26/include/Python.h:58,
14706 from python/python-internal.h:94,
14707 from python/py-arch.c:24:
14708 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
14712 This happens because Python headers define 'hypot' to expand t
14713 '_hypot' in the Windows builds.
14714 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
14715 'hypoth'. This avoids a compilation error.
14717 2018-01-26 Alan Hayward <alan.hayward@arm.com>
14719 * MAINTAINERS (Write After Approval): Fix ordering.
14721 2018-01-26 Alan Hayward <alan.hayward@arm.com>
14723 * MAINTAINERS (Write After Approval): Add Alan Hayward.
14725 2018-01-26 Alan Modra <amodra@gmail.com>
14727 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
14728 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
14729 Remove nop. Make const. Comment.
14730 (powerpc32_plt_stub_so_2): New.
14731 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
14732 Correct count. Update uses.
14733 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
14734 Move common code reading PLT entry word. Correct
14735 powerpc32_plt_stub PLT address calculation.
14736 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
14737 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
14738 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
14739 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
14740 (ppc64_standard_linkage8): Likewise.
14741 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
14742 Correct insns description.
14743 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
14745 2018-01-24 Pedro Alves <palves@redhat.com>
14747 GCC PR libstdc++/83906
14748 * gdbtypes.c (operator==(const dynamic_prop &,
14749 const dynamic_prop &)): New.
14750 (operator==(const range_bounds &, const range_bounds &)): New.
14751 (check_types_equal): Use them instead of memcmp.
14752 * gdbtypes.h (operator==(const dynamic_prop &,
14753 const dynamic_prop &)): Declare.
14754 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
14755 (operator==(const range_bounds &, const range_bounds &)): Declare.
14756 (operator!=(const range_bounds &, const range_bounds &)): Declare.
14758 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14760 * s390-linux-tdep.c (s390_record_address_mask)
14761 (s390_record_calc_disp_common, s390_record_calc_disp)
14762 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14763 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14764 (s390_process_record): Move to s390-tdep.c.
14765 (s390_linux_init_abi_any): Adjust.
14766 * s390-tdep.c (s390_record_address_mask)
14767 (s390_record_calc_disp_common, s390_record_calc_disp)
14768 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14769 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14770 (s390_process_record): Moved from s390-linux-tdep.c
14771 (s390_gdbarch_init): Adjust.
14773 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14775 * s390-linux-nat.c (s390-tdep.h): New include.
14776 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
14777 (HFILES_NO_SRCDIR): Add s390-tdep.h.
14778 (ALLDEPFILES): Add s390-tdep.c.
14779 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
14780 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
14781 * s390-tdep.h: ...this. New file.
14782 * s390-linux-tdep.c (s390-tdep.h): New include.
14783 (_initialize_s390_tdep): Rename to...
14784 (_initialize_s390_linux_tdep): ...this and adjust.
14785 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
14786 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
14788 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
14789 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
14790 (s390_is_partial_instruction, s390_software_single_step)
14791 (is_non_branch_ril, s390_displaced_step_copy_insn)
14792 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
14793 (s390_prologue_data, s390_addr, s390_store, s390_load)
14794 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
14795 (s390_register_call_saved, s390_guess_tracepoint_registers)
14796 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
14797 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
14798 (s390_pseudo_register_name, s390_pseudo_register_type)
14799 (s390_pseudo_register_read, s390_pseudo_register_write)
14800 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
14801 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
14802 (s390_addr_bits_remove, s390_address_class_type_flags)
14803 (s390_address_class_type_flags_to_name)
14804 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
14805 (s390_function_arg_float, s390_function_arg_vector)
14806 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
14807 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
14808 (s390_frame_align, s390_register_return_value, s390_return_value)
14809 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
14810 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
14811 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
14812 (s390_trad_frame_prev_register, s390_unwind_cache)
14813 (s390_prologue_frame_unwind_cache)
14814 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
14815 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
14816 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
14817 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
14818 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
14819 (s390_frame_base_address, s390_local_base_address)
14820 (s390_frame_base, s390_gcc_target_options)
14821 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
14822 (s390_validate_reg_range, s390_tdesc_valid)
14823 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
14824 * s390-tdep.c: ...this. New file.
14826 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14828 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
14829 (s390_process_record, s390_gdbarch_tdep_alloc)
14830 (s390_linux_init_abi_any): Use/set new hook.
14832 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14834 * s390-linux-tdep.c (osabi.h): New include.
14835 (s390_linux_init_abi_31, s390_linux_init_abi_64)
14836 (s390_linux_init_abi_any): New functions.
14837 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
14839 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14841 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
14842 tdesc_has_registers check
14844 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14846 * s390-linux-tdep.c (s390_tdesc_valid): New function.
14847 (s390_validate_reg_range): New macro.
14848 (s390_gdbarch_init): Adjust.
14850 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14852 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
14853 (s390_gdbarch_tdep_alloc): Adjust.
14854 (s390_gdbarch_init): Adjust.
14856 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14858 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
14859 <have_tdb>: Change type to bool.
14860 (s390_gdbarch_tdep_alloc): Adjust.
14861 (s390_gdbarch_init): Adjust.
14863 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14865 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
14866 (gdbarch_tdep) <have_upper, have_vx>: New fields.
14867 (s390_gdbarch_tdep_alloc): New function.
14868 (s390_gdbarch_init): Allocate tdep at start and use its fields
14869 instead of separate variables.
14871 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14873 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
14874 when looking for cached gdbarch and add comment for remaining.
14876 2018-01-22 Pedro Alves <palves@redhat.com>
14877 Sergio Durigan Junior <sergiodj@redhat.com>
14879 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
14882 2018-01-22 Maciej W. Rozycki <macro@mips.com>
14884 * MAINTAINERS: Update my company e-mail address.
14886 2018-01-22 Yao Qi <yao.qi@linaro.org>
14888 * regcache.c (cooked_write_test): New function.
14889 (_initialize_regcache): Register the test.
14891 2018-01-22 Yao Qi <yao.qi@linaro.org>
14893 * ia64-tdep.c (ia64_pseudo_register_read): Call
14894 regcache->cooked_read instead of regcache_cooked_read_unsigned.
14895 * m32c-tdep.c (m32c_cat_read): Likewise.
14896 (m32c_r3r2r1r0_read): Likewise.
14897 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14898 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14900 2018-01-22 Yao Qi <yao.qi@linaro.org>
14902 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
14903 method raw_read instead of regcache_raw_read.
14904 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14905 * arm-tdep.c (arm_neon_quad_read): Likewise.
14906 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14907 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14908 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14909 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
14910 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14911 (i386_pseudo_register_read_into_value): Likewise.
14912 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14913 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14914 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14915 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
14916 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
14917 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14918 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14919 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14920 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
14922 2018-01-22 Yao Qi <yao.qi@linaro.org>
14924 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
14925 * configure.tgt: Remove target mt.
14926 * mt-tdep.c: Remove.
14927 * regcache.c (cooked_read_test): Remove the check for mt.
14929 2018-01-22 Yao Qi <yao.qi@linaro.org>
14931 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
14932 instead of gdbarch_pseudo_register_read_value.
14934 2018-01-22 Joel Brobecker <brobecker@adacore.com>
14936 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
14939 2018-01-22 Joel Brobecker <brobecker@adacore.com>
14941 * linespec.c (create_sals_line_offset): Remove code that preserved
14942 the symtab_and_line's line number.
14944 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14946 * varobj.c (varobj_create): Don't set valid_block when creating a
14949 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14951 * varobj.c (varobj_create): Remove out of date comment.
14953 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14956 * ada-exp.y (write_var_from_sym): Pass extra parameter when
14957 updating innermost block.
14958 * parse.c (innermost_block_tracker::update): Take extra type
14959 parameter, and check types match before updating innermost block.
14960 (write_dollar_variable): Update innermost block for registers.
14961 * parser-defs.h (enum innermost_block_tracker_type): New enum.
14962 (innermost_block_tracker::innermost_block_tracker): Initialise
14964 (innermost_block_tracker::reset): Take type parameter.
14965 (innermost_block_tracker::update): Take type parameter, and pass
14966 type through as needed.
14967 (innermost_block_tracker::m_types): New member.
14968 * varobj.c (varobj_create): Pass type when reseting innermost
14971 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14973 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
14974 * ada-lang.c (resolve_subexp): Likewise.
14975 * breakpoint.c (set_breakpoint_condition) Likewise.
14976 (watch_command_1) Likewise.
14977 * c-exp.y (variable): Likewise.
14978 * d-exp.y (PrimaryExpression): Likewise.
14979 * f-exp.y (variable): Likewise.
14980 * go-exp.y (variable): Likewise.
14981 * m2-exp.y (variable): Likewise.
14982 * objfiles.c (objfile::~objfile): Likewise.
14983 * p-exp.y (variable): Likewise.
14984 * parse.c (innermost_block): Change type.
14985 * parser-defs.h (class innermost_block_tracker): New.
14986 (innermost_block): Change to innermost_block_tracker.
14987 * printcmd.c (display_command): Switch to innermost_block API.
14988 (do_one_display): Likewise.
14989 * rust-exp.y (do_one_display): Likewise.
14990 * symfile.c (clear_symtab_users): Likewise.
14991 * varobj.c (varobj_create): Switch to innermost_block API, replace
14992 use of innermost_block with block stored on varobj object.
14994 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14996 * expression.h (innermost_block): Remove declaration.
14997 * varobj.c: Add 'parser-defs.h' include.
14999 2018-01-19 Tom Tromey <tom@tromey.com>
15001 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
15002 symbols in the static and global blocks.
15004 2018-01-19 James Clarke <jrtc27@jrtc27.com>
15006 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
15007 gdb_ptrace.h, and move including gdb_wait.h ...
15008 * nat/linux-ptrace.h: ... to here.
15010 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15012 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
15013 inf_ptrace_detach_success.
15014 (inf_ptrace_detach_success): Add inferior parameter, use it
15015 instead of inferior_ptid, pass it to detach_inferior.
15016 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
15018 * inferior.c (detach_inferior): Add overload that takes an
15020 * inferior.h (detach_inferior): Likewise.
15021 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
15022 use inferior_ptid, adjust call to inf_ptrace_detach_success.
15023 * linux-thread-db.c (thread_db_detach): Use inf parameter.
15025 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15027 * target.h (struct target_ops) <to_detach>: Add inferior
15029 (target_detach): Likewise.
15030 * target.c (dispose_inferior): Pass inferior down.
15031 (target_detach): Pass inferior down. Assert that it is equal to
15032 the current inferior.
15033 * aix-thread.c (aix_thread_detach): Pass inferior down.
15034 * corefile.c (core_file_command): Pass current_inferior() down.
15035 * corelow.c (core_detach): Add inferior parameter.
15036 * darwin-nat.c (darwin_detach): Likewise.
15037 * gnu-nat.c (gnu_detach): Likewise.
15038 * inf-ptrace.c (inf_ptrace_detach): Likewise.
15039 * infcmd.c (detach_command): Pass current_inferior() down to
15041 * infrun.c (follow_fork_inferior): Pass parent_inf to
15043 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
15045 * linux-nat.c (linux_nat_detach): Add inferior parameter.
15046 * linux-thread-db.c (thread_db_detach): Likewise.
15047 * nto-procfs.c (procfs_detach): Likewise.
15048 * procfs.c (procfs_detach): Likewise.
15049 * record.c (record_detach): Likewise.
15050 * record.h (struct inferior): Forward-declare.
15051 (record_detach): Add inferior parameter.
15052 * remote-sim.c (gdbsim_detach): Likewise.
15053 * remote.c (remote_detach_1): Likewise.
15054 (remote_detach): Likewise.
15055 (extended_remote_detach): Likewise.
15056 * sol-thread.c (sol_thread_detach): Likewise.
15057 * target-debug.h (target_debug_print_inferior_p): New macro.
15058 * target-delegates.c: Re-generate.
15059 * top.c (kill_or_detach): Pass inferior down to target_detach.
15060 * windows-nat.c (windows_detach): Add inferior parameter.
15062 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15064 * target.h (struct target_ops) <to_detach>: Remove args
15066 (target_detach): Likewise.
15067 * target.c (dispose_inferior): Adjust.
15068 (target_detach): Remove args parameter, adjust.
15069 * aix-thread.c (aix_thread_detach): Adjust.
15070 * corefile.c (core_file_command): Adjust.
15071 * corelow.c (core_detach): Adjust.
15072 * darwin-nat.c (darwin_detach): Adjust.
15073 * gnu-nat.c (gnu_detach): Adjust.
15074 * inf-ptrace.c (inf_ptrace_detach): Adjust.
15075 * infcmd.c (detach_command): Adjust
15076 * infrun.c (follow_fork_inferior): Adjust.
15077 (handle_vfork_child_exec_or_exit): Adjust.
15078 * linux-fork.c (linux_fork_detach): Remove args parameter.
15079 * linux-fork.h (linux_fork_detach): Likewise.
15080 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
15081 * linux-thread-db.c (thread_db_detach): Likewise.
15082 * nto-procfs.c (procfs_detach): Likewise.
15083 * procfs.c (procfs_detach): Likewise.
15084 (do_detach): Remove signo parameter.
15085 * record.c (record_detach): Remove args parameter.
15086 * record.h (record_detach): Likewise.
15087 * remote-sim.c (gdbsim_detach): Likewise.
15088 * remote.c (remote_detach_1): Likewise.
15089 (remote_detach): Likewise.
15090 (extended_remote_detach): Likewise.
15091 * sol-thread.c (sol_thread_detach): Likewise.
15092 * target-delegates.c: Re-generate.
15093 * top.c (struct qt_args) <args>: Remove field.
15094 (kill_or_detach): Don't pass args.
15095 (quit_force): Don't set args.
15096 * windows-nat.c (windows_detach): Remove args parameter.
15098 2018-01-19 Yao Qi <yao.qi@linaro.org>
15100 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
15101 (arm_linux_init_abi): Install it.
15103 2018-01-19 Yao Qi <yao.qi@linaro.org>
15105 * osabi.c (gdb_osabi_names): Extend the regexp for
15106 arm-linux-gnueabihf.
15108 2018-01-18 Yao Qi <yao.qi@linaro.org>
15110 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
15112 (abbrev_table::add_abbrev): Update.
15113 (abbrev_table::lookup_abbrev): Update.
15115 2018-01-18 Yao Qi <yao.qi@linaro.org>
15117 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
15119 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15121 * compile/compile.c (compile_to_object): Convert "triplet_rx"
15124 2018-01-17 Tom Tromey <tom@tromey.com>
15126 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
15128 2018-01-17 Tom Tromey <tom@tromey.com>
15130 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
15131 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
15132 (create_array_type_with_stride): Update.
15133 * dwarf2read.c (set_die_type): Update.
15135 2018-01-17 Tom Tromey <tom@tromey.com>
15137 * dwarf2read.c (delayed_method_info): Remove typedef.
15138 (dwarf2_cu::method_info): Now a std::vector.
15139 (add_to_method_list): Update.
15140 (free_delayed_list): Remove.
15141 (compute_delayed_physnames): Update.
15142 (process_full_comp_unit, process_full_type_unit): Clear the method
15143 list. Remove cleanups.
15144 (psymtab_include_file_name): Add name_holder parameter. Use
15145 unique_xmalloc_ptr.
15146 (dwarf_decode_lines): Update.
15148 2018-01-17 Tom Tromey <tom@tromey.com>
15149 Simon Marchi <simon.marchi@ericsson.com>
15151 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
15152 (dwarf2_per_objfile::free_cached_comp_units)
15153 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15154 (init_cutu_and_read_dies_no_follow): Update.
15155 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
15156 (dwarf2_cu::~dwarf2_cu): New.
15157 (free_heap_comp_unit, free_stack_comp_unit): Remove.
15158 (age_cached_comp_units, free_one_cached_comp_unit): Update.
15160 2018-01-17 Tom Tromey <tom@tromey.com>
15161 Simon Marchi <simon.marchi@ericsson.com>
15163 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
15164 (struct die_reader_specs) <abbrev_table>: New member.
15165 (struct abbrev_table): Add constructor.
15166 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
15167 <abbrev_obstack>: Now an auto_obstack.
15168 (abbrev_table_up): New typedef.
15169 (init_cu_die_reader): Add abbrev_table parameter.
15170 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
15171 Add result_dwo_abbrev_table.
15172 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15173 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
15175 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
15177 (skip_children): Update.
15178 (abbrev_table::alloc_abbrev): Rename from
15179 abbrev_table_alloc_abbrev.
15180 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
15181 (abbrev_table::lookup_abbrev): Rename from
15182 abbrev_table_lookup_abbrev.
15183 (abbrev_table_read_table): Return abbrev_table_up.
15184 (abbrev_table_free, abbrev_table_free_cleanup)
15185 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
15186 (load_partial_dies): Update.
15188 2018-01-17 Tom Tromey <tom@tromey.com>
15190 * dwarf2read.c (dwarf2_compute_name): Update comment.
15191 (read_func_scope, read_variable): Update.
15192 (new_symbol): Remove.
15193 (new_symbol_full): Rename to new_symbol.
15195 2018-01-17 Mike Gulick <mgulick@mathworks.com>
15198 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
15199 a warning instead of throwing an error, set section size to 0 and return
15201 * gdb_bfd.h (gdb_bfd_map_section): Update description.
15203 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15205 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
15207 (linux_ptrace_attach_fail_reason_string): Likewise.
15208 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
15210 (linux_ptrace_attach_fail_reason_string): Likewise.
15211 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
15213 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15215 * linux-nat.c (linux_nat_attach): Remove xstrdup.
15217 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
15220 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
15221 checking for fs_base/gs_base fields in struct user_regs_struct.
15222 * configure: Regenerate.
15224 2018-01-17 Yao Qi <yao.qi@linaro.org>
15226 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
15228 (aarch64_linux_init_abi): Install it to gdbarch hook
15229 gcc_target_options.
15231 2018-01-15 Pedro Alves <palves@redhat.com>
15233 * common/signals-state-save-restore.c
15234 (save_original_signals_state): Fix typos.
15236 2017-01-12 Tom Tromey <tom@tromey.com>
15237 Sergio Durigan Junior <sergiodj@redhat.com>
15239 * Makefile.in (install-only): Install gdb-add-index.
15241 2018-01-12 John Baldwin <jhb@FreeBSD.org>
15243 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
15245 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
15247 * infrun.c (keep_going_pass_signal): Clear step-over info when
15248 insert_breakpoints fails.
15250 2018-01-11 Pedro Alves <palves@redhat.com>
15253 * infrun.c (resume): Rename to ...
15254 (resume_1): ... this.
15255 (resume): Reimplement as wrapper around resume_1.
15257 2018-01-11 Pedro Alves <palves@redhat.com>
15260 * remote.c (remote_parse_stop_reply): Default to the last-set
15261 general thread instead of to 'magic_null_ptid'.
15263 2018-01-10 Pedro Alves <palves@redhat.com>
15265 * language.h (language_get_symbol_name_matcher): Rename ...
15266 (get_symbol_name_matcher): ... this.
15267 * language.c (language_get_symbol_name_matcher): Ditto.
15268 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
15271 2018-01-10 Pedro Alves <palves@redhat.com>
15275 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
15276 Adjust to use language_get_symbol_name_matcher instead of
15277 language_defn::la_get_symbol_name_matcher.
15278 * language.c (language_get_symbol_name_matcher): If in Ada mode
15279 and the lookup name is a verbatim match, return Ada's matcher.
15280 * language.h (language_get_symbol_name_matcher): Adjust comment.
15281 (ada_lookup_name_info::verbatim_p):: New method.
15283 2018-01-10 Pedro Alves <palves@redhat.com>
15286 * ada-lang.c (ada_collect_symbol_completion_matches): If the
15287 minsym's language is language_auto or language_cplus, pass down
15288 language_ada instead.
15289 * symtab.c (compare_symbol_name): Don't frob symbol language here.
15291 2018-01-10 Pedro Alves <palves@redhat.com>
15294 * minsyms.c (linkage_name_str): New function.
15295 (iterate_over_minimal_symbols): Use it.
15297 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15299 * NEWS: Document that 'info proc' now works on FreeBSD.
15301 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15303 * configure.ac: Check for kinfo_getfile in libutil.
15304 * configure: Regenerate.
15305 * config.in: Regenerate.
15306 * fbsd-nat.c: Include "fbsd-tdep.h".
15307 (fbsd_fetch_cmdline): New.
15308 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
15309 rather than calling error.
15310 (fbsd_info_proc): New.
15311 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
15312 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
15313 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
15315 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15317 * fbsd-nat.c (struct free_deleter): Remove.
15318 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
15320 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15322 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
15323 NULL for an empty pathname.
15325 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15327 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
15328 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
15329 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
15330 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
15331 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
15332 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
15333 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
15334 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
15335 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
15336 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
15337 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
15338 (fbsd_core_fetch_timeval, fbsd_print_sigset)
15339 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
15340 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
15341 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
15343 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
15345 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
15346 (gnu_xfer_auxv): New function.
15347 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
15348 TARGET_OBJECT_AUXV.
15350 2018-01-08 Yao Qi <yao.qi@linaro.org>
15351 Simon Marchi <simon.marchi@ericsson.com>
15353 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
15355 (COMMON_OBS): Remove selftest.o.
15356 * configure.ac: Append selftest-arch.c and common/selftest.c to
15357 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
15358 * configure: Re-generated.
15359 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
15361 (maintenance_info_selftests): Likewise.
15363 2018-01-08 Xavier Roirand <roirand@adacore.com>
15365 * ada-valprint.c (val_print_packed_array_elements): Use
15366 proper number of elements when printing an array indexed
15367 by an enumeration type.
15369 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15371 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
15372 (dw2_get_file_names_reader): Adjust.
15373 (lookup_dwo_signatured_type): Adjust.
15374 (lookup_dwp_signatured_type): Adjust.
15375 (lookup_signatured_type): Adjust.
15376 (create_type_unit_group): Adjust.
15377 (get_type_unit_group): Adjust.
15378 (process_psymtab_comp_unit_reader): Adjust.
15379 (build_type_psymtabs_reader): Adjust.
15380 (scan_partial_symbols): Adjust.
15381 (add_partial_symbol): Adjust.
15382 (add_partial_subprogram): Adjust.
15383 (peek_die_abbrev): Adjust.
15384 (fixup_go_packaging): Adjust.
15385 (process_imported_unit_die): Adjust.
15386 (dwarf2_compute_name): Adjust.
15387 (dwarf2_physname): Adjust.
15388 (read_import_statement): Adjust.
15389 (handle_DW_AT_stmt_list): Adjust.
15390 (read_file_scope): Adjust.
15391 (read_func_scope): Adjust.
15392 (read_lexical_block_scope): Adjust.
15393 (read_call_site_scope): Adjust.
15394 (read_variable): Adjust.
15395 (dwarf2_rnglists_process): Adjust.
15396 (dwarf2_ranges_process): Adjust.
15397 (dwarf2_ranges_read): Adjust.
15398 (dwarf2_get_pc_bounds): Adjust.
15399 (dwarf2_record_block_ranges): Adjust.
15400 (dwarf2_add_field): Adjust.
15401 (dwarf2_add_member_fn): Adjust.
15402 (read_structure_type): Adjust.
15403 (process_structure_scope): Adjust.
15404 (read_enumeration_type): Adjust.
15405 (read_array_type): Adjust.
15406 (mark_common_block_symbol_computed): Adjust.
15407 (read_common_block): Adjust.
15408 (read_namespace_type): Adjust.
15409 (read_namespace): Adjust.
15410 (read_module_type): Adjust.
15411 (read_tag_pointer_type): Adjust.
15412 (read_tag_ptr_to_member_type): Adjust.
15413 (read_tag_string_type): Adjust.
15414 (read_subroutine_type): Adjust.
15415 (read_typedef): Adjust.
15416 (read_base_type): Adjust.
15417 (attr_to_dynamic_prop): Adjust.
15418 (read_subrange_type): Adjust.
15419 (read_unspecified_type): Adjust.
15420 (dwarf2_read_abbrevs): Adjust.
15421 (load_partial_dies): Adjust.
15422 (read_partial_die): Adjust.
15423 (find_partial_die): Adjust.
15424 (guess_partial_die_structure_name): Adjust.
15425 (fixup_partial_die): Adjust.
15426 (read_attribute_value): Adjust.
15427 (read_addr_index): Adjust.
15428 (read_addr_index_from_leb128): Adjust.
15429 (read_str_index): Adjust.
15430 (dwarf2_string_attr): Adjust.
15431 (get_debug_line_section): Adjust.
15432 (dwarf_decode_line_header): Adjust.
15433 (lnp_state_machine::check_line_address): Adjust.
15434 (dwarf_decode_lines_1): Adjust.
15435 (dwarf_decode_lines): Adjust.
15436 (dwarf2_start_symtab): Adjust.
15437 (var_decode_location): Adjust.
15438 (new_symbol_full): Adjust.
15439 (dwarf2_const_value_data): Adjust.
15440 (dwarf2_const_value_attr): Adjust.
15441 (dwarf2_const_value): Adjust.
15442 (die_type): Adjust.
15443 (die_containing_type): Adjust.
15444 (build_error_marker_type): Adjust.
15445 (lookup_die_type): Adjust.
15446 (guess_full_die_structure_name): Adjust.
15447 (anonymous_struct_prefix): Adjust.
15448 (determine_prefix): Adjust.
15449 (dwarf2_name): Adjust.
15450 (follow_die_ref_or_sig): Adjust.
15451 (follow_die_offset): Adjust.
15452 (follow_die_ref): Adjust.
15453 (follow_die_sig_1): Adjust.
15454 (follow_die_sig): Adjust.
15455 (get_signatured_type): Adjust.
15456 (get_DW_AT_signature_type): Adjust.
15457 (decode_locdesc): Adjust.
15458 (dwarf_decode_macros): Adjust.
15459 (cu_debug_loc_section): Adjust.
15460 (fill_in_loclist_baton): Adjust.
15461 (dwarf2_symbol_mark_computed): Adjust.
15462 (init_one_comp_unit): Don't assign
15463 dwarf2_cu::dwarf2_per_objfile.
15464 (set_die_type): Adjust.
15466 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15468 * dwarf2read.c (struct mapped_debug_names): Add constructor.
15469 <dwarf2_per_objfile>: New field.
15470 (dwarf2_per_objfile): Remove global.
15471 (get_dwarf2_per_objfile): New function.
15472 (set_dwarf2_per_objfile): New function.
15473 (dwarf2_build_psymtabs_hard): Change objfile parameter to
15474 dwarf2_per_objfile.
15475 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15476 (read_abbrev_offset): Likewise.
15477 (read_indirect_string): Likewise.
15478 (read_indirect_line_string): Likewise.
15479 (read_indirect_string_at_offset): Likewise.
15480 (read_indirect_string_from_dwz): Likewise.
15481 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15482 dwarf2_per_objfile.
15483 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15484 (create_all_comp_units): Change objfile parameter to
15485 dwarf2_per_objfile.
15486 (create_all_type_units): Likewise.
15487 (process_queue): Add dwarf2_per_objfile parameter.
15488 (read_and_check_comp_unit_head): Likewise.
15489 (lookup_dwo_unit_in_dwp): Likewise.
15490 (get_dwp_file): Likewise.
15491 (process_cu_includes): Likewise.
15492 (struct free_dwo_file_cleanup_data): New struct.
15493 (dwarf2_has_info): Use get_dwarf2_per_objfile and
15494 set_dwarf2_per_objfile.
15495 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
15496 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
15497 context, adjust calls.
15498 (dw2_instantiate_symtab): Likewise.
15499 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
15500 (dw2_get_cu): Likewise.
15501 (create_cu_from_index_list): Change objfile parameter to
15502 dwarf2_per_objfile.
15503 (create_cus_from_index_list): Get dwarf2_per_objfile from
15504 context, adjust calls.
15505 (create_cus_from_index): Likewise.
15506 (create_signatured_type_table_from_index): Change objfile
15507 parameter to dwarf2_per_objfile.
15508 (create_signatured_type_table_from_debug_names): Change objfile
15509 parameter to dwarf2_per_objfile.
15510 (create_addrmap_from_index): Likewise.
15511 (create_addrmap_from_aranges): Likewise.
15512 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
15513 (dw2_setup): Remove.
15514 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
15516 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
15517 get_dwarf2_per_objfile.
15518 (dw2_forget_cached_source_info): Likewise.
15519 (dw2_map_symtabs_matching_filename): Likewise.
15520 (struct dw2_symtab_iterator) <index>: Remove.
15521 <dwarf2_per_objfile>: New field.
15522 (dw2_symtab_iter_init): Replace index parameter with
15523 dwarf2_per_objfile.
15524 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
15525 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
15526 (dw2_print_stats): Likewise.
15527 (dw2_dump): Likewise.
15528 (dw2_expand_symtabs_for_function): Likewise.
15529 (dw2_expand_all_symtabs): Likewise.
15530 (dw2_expand_symtabs_with_fullname): Likewise.
15531 (dw2_expand_marked_cus): Replace index and objfile parameters
15532 with dwarf2_per_objfile.
15533 (dw_expand_symtabs_matching_file_matcher): Add
15534 dwarf2_per_objfile parameter and adjust calls.
15535 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
15537 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
15538 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
15540 (create_cus_from_debug_names_list): Replace objfile parameter
15541 with dwarf2_per_objfile and adjust calls.
15542 (create_cus_from_debug_names): Likewise.
15543 (dwarf2_read_debug_names): Likewise.
15544 (mapped_debug_names::namei_to_name): Adjust call.
15545 (dw2_debug_names_iterator::next): Likewise.
15546 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
15547 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
15548 (dw2_debug_names_dump): Likewise.
15549 (dw2_debug_names_expand_symtabs_for_function): Likewise.
15550 (dw2_debug_names_expand_symtabs_matching): Likewise.
15551 (dwarf2_initialize_objfile): Likewise.
15552 (dwarf2_build_psymtabs): Likewise.
15553 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
15555 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
15556 (read_and_check_comp_unit_head): Likewise.
15557 (read_abbrev_offset): Likewise.
15558 (create_debug_type_hash_table): Likewise.
15559 (create_debug_types_hash_table): Likewise.
15560 (create_all_type_units): Replace objfile parameter with
15561 dwarf2_per_objfile.
15562 (add_type_unit): Add dwarf2_per_objfile parameter.
15563 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
15564 with dwarf2_per_objfile.
15565 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
15566 (lookup_dwp_signatured_type): Likewise.
15567 (lookup_signatured_type): Likewise.
15568 (read_cutu_die_from_dwo): Likewise.
15569 (init_tu_and_read_dwo_dies): Likewise.
15570 (init_cutu_and_read_dies): Likewise.
15571 (init_cutu_and_read_dies_no_follow): Likewise.
15572 (allocate_type_unit_groups_table): Add objfile parameter.
15573 (create_type_unit_group): Use dwarf2_per_objfile from cu.
15574 (get_type_unit_group): Likewise.
15575 (process_psymtab_comp_unit): Update call.
15576 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
15577 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
15578 (print_tu_stats): Likewise.
15579 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
15580 in void* parameter.
15581 (build_type_psymtabs): Change objfile parameter to
15582 dwarf2_per_objfile.
15583 (process_skeletonless_type_unit): Use dwarf2_per_objfile
15584 passed in void* parameter.
15585 (process_skeletonless_type_units): Change objfile parameter to
15586 dwarf2_per_objfile.
15587 (set_partial_user): Likewise.
15588 (dwarf2_build_psymtabs_hard): Likewise.
15589 (read_comp_units_from_section): Likewise.
15590 (create_all_comp_units): Likewise.
15591 (scan_partial_symbols): Update calls.
15592 (add_partial_symbol): Likewise.
15593 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
15594 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
15595 (process_queue): Add dwarf2_per_objfile parameter.
15596 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
15597 (compute_compunit_symtab_includes): Likewise.
15598 (process_cu_includes): Add dwarf2_per_objfile parameter.
15599 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
15600 (process_full_type_unit): Likewise.
15601 (process_imported_unit_die): Update call.
15602 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
15603 (read_file_scope): Likewise.
15604 (allocate_dwo_file_hash_table): Add objfile parameter.
15605 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
15606 (create_cus_hash_table): Likewise.
15607 (create_dwp_hash_table): Likewise.
15608 (create_dwo_unit_in_dwp_v1): Likewise.
15609 (create_dwp_v2_section): Likewise.
15610 (create_dwo_unit_in_dwp_v2): Likewise.
15611 (lookup_dwo_unit_in_dwp): Likewise.
15612 (try_open_dwop_file): Likewise.
15613 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
15614 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
15615 cleanup to include a reference to dwarf2_per_objfile.
15616 (open_dwp_file): Add dwarf2_per_objfile parameter.
15617 (open_and_init_dwp_file): Likewise.
15618 (get_dwp_file): Likewise.
15619 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
15620 (queue_and_load_all_dwo_tus): Update call.
15621 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
15623 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
15624 (dwarf2_ranges_process): Likewise.
15625 (dwarf2_get_pc_bounds): Likewise.
15626 (mark_common_block_symbol_computed): Likewise.
15627 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15628 (dwarf2_read_abbrevs): Update call.
15629 (read_partial_die): Use dwarf2_per_objfile from cu.
15630 (find_partial_die): Likewise.
15631 (fixup_partial_die): Likewise.
15632 (read_attribute_value): Likewise.
15633 (read_indirect_string_at_offset_from): Add objfile parameter.
15634 (read_indirect_string_at_offset): Add dwarf2_per_objfile
15636 (read_indirect_string_from_dwz): Add objfile parameter.
15637 (read_indirect_string): Add objfile parameter.
15638 (read_addr_index_1): Add dwarf2_per_objfile parameter.
15639 (read_addr_index): Use dwarf2_per_objfile from cu.
15640 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
15642 (read_str_index): Use dwarf2_per_objfile from cu.
15643 (get_debug_line_section): Likewise.
15644 (read_formatted_entries): Add dwarf2_per_objfile parameter.
15645 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
15646 (new_symbol_full): Use dwarf2_per_objfile from cu.
15647 (build_error_marker_type): Likewise.
15648 (lookup_die_type): Likewise.
15649 (determine_prefix): Likewise.
15650 (follow_die_offset): Likewise.
15651 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
15652 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
15653 (dwarf2_fetch_die_type_sect_off): Likewise.
15654 (dwarf2_get_die_type): Likewise.
15655 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
15656 (get_signatured_type): Likewise.
15657 (get_DW_AT_signature_type): Likewise.
15658 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
15659 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
15660 (cu_debug_loc_section): Likewise.
15661 (fill_in_loclist_baton): Likewise.
15662 (dwarf2_symbol_mark_computed): Likewise.
15663 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15664 dwarf2_per_objfile.
15665 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
15667 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15668 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
15669 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
15670 (set_die_type): Use dwarf2_free_objfile from cu.
15671 (get_die_type_at_offset): Likewise.
15672 (dwarf2_per_objfile_free): Don't assign global variable.
15673 (debug_names) <constructor>: Add dwarf2_per_objfile
15674 parameter, update m_debugstrlookup construction.
15675 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
15677 <m_dwarf2_per_objfile>: New field.
15678 <lookup>: Use m_dwarf2_per_objfile.
15679 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
15680 (psyms_seen_size): Likewise.
15681 (write_gdbindex): Replace objfile parameter with
15682 dwarf2_per_objfile.
15683 (write_debug_names): Likewise.
15684 (write_psymtabs_to_index): Likewise.
15685 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
15688 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15690 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
15691 <dwarf2_per_objfile>: New field.
15692 (struct dwarf2_per_cu_data) <objfile>: Remove.
15693 <dwarf2_per_objfile>: New field.
15694 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
15696 (create_signatured_type_table_from_index): Likewise.
15697 (create_debug_type_hash_table): Likewise.
15698 (fill_in_sig_entry_from_dwo_entry): Likewise.
15699 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
15700 (create_type_unit_group): Assign dwarf2_per_objfile instead of
15702 (create_partial_symtab): Access objfile through
15703 dwarf2_per_objfile.
15704 (process_psymtab_comp_unit_reader): Likewise.
15705 (read_comp_units_from_section): Likewise.
15706 (scan_partial_symbols): Likewise.
15707 (add_partial_symbol): Likewise.
15708 (add_partial_subprogram): Likewise.
15709 (peek_die_abbrev): Likewise.
15710 (fixup_go_packaging): Likewise.
15711 (process_full_comp_unit): Likewise.
15712 (process_full_type_unit): Likewise.
15713 (process_imported_unit_die): Likewise.
15714 (dwarf2_compute_name): Likewise.
15715 (dwarf2_physname): Likewise.
15716 (read_import_statement): Likewise.
15717 (create_cus_hash_table): Assign dwarf2_physname instead of
15719 (read_func_scope): Access objfile through dwarf2_per_objfile.
15720 (read_lexical_block_scope): Likewise.
15721 (read_call_site_scope): Likewise.
15722 (read_variable): Likewise.
15723 (dwarf2_rnglists_process): Likewise.
15724 (dwarf2_ranges_process): Likewise.
15725 (dwarf2_ranges_read): Likewise.
15726 (dwarf2_record_block_ranges): Likewise.
15727 (dwarf2_add_field): Likewise.
15728 (dwarf2_add_member_fn): Likewise.
15729 (read_structure_type): Likewise.
15730 (process_structure_scope): Likewise.
15731 (read_enumeration_type): Likewise.
15732 (read_array_type): Likewise.
15733 (read_common_block): Likewise.
15734 (read_namespace_type): Likewise.
15735 (read_namespace): Likewise.
15736 (read_module_type): Likewise.
15737 (read_tag_pointer_type): Likewise.
15738 (read_tag_ptr_to_member_type): Likewise.
15739 (read_tag_string_type): Likewise.
15740 (read_subroutine_type): Likewise.
15741 (read_typedef): Likewise.
15742 (read_base_type): Likewise.
15743 (attr_to_dynamic_prop): Likewise.
15744 (read_subrange_type): Likewise.
15745 (read_unspecified_type): Likewise.
15746 (load_partial_dies): Likewise.
15747 (read_partial_die): Likewise.
15748 (find_partial_die): Likewise.
15749 (guess_partial_die_structure_name): Likewise.
15750 (fixup_partial_die): Likewise.
15751 (read_attribute_value): Likewise.
15752 (read_addr_index_from_leb128): Likewise.
15753 (dwarf2_read_addr_index): Likewise.
15754 (dwarf2_string_attr): Likewise.
15755 (lnp_state_machine::check_line_address): Likewise.
15756 (dwarf_decode_lines_1): Likewise.
15757 (dwarf_decode_lines): Likewise.
15758 (dwarf2_start_symtab): Likewise.
15759 (var_decode_location): Likewise.
15760 (new_symbol_full): Likewise.
15761 (dwarf2_const_value_data): Likewise.
15762 (dwarf2_const_value_attr): Likewise.
15763 (dwarf2_const_value): Likewise.
15764 (die_type): Likewise.
15765 (die_containing_type): Likewise.
15766 (lookup_die_type): Likewise.
15767 (guess_full_die_structure_name): Likewise.
15768 (anonymous_struct_prefix): Likewise.
15769 (dwarf2_name): Likewise.
15770 (follow_die_ref_or_sig): Likewise.
15771 (follow_die_offset): Likewise.
15772 (follow_die_ref): Likewise.
15773 (dwarf2_fetch_die_loc_sect_off): Likewise.
15774 (dwarf2_fetch_constant_bytes): Likewise.
15775 (dwarf2_fetch_die_type_sect_off): Likewise.
15776 (dwarf2_get_die_type): Likewise.
15777 (follow_die_sig): Likewise.
15778 (decode_locdesc): Likewise.
15779 (dwarf2_per_cu_objfile): Likewise.
15780 (dwarf2_per_cu_text_offset): Likewise.
15781 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
15783 (set_die_type): Access objfile through
15784 dwarf2_per_objfile.
15786 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15788 * valprint.c (converted_character_d): Remove typedef.
15789 (DEF_VEC_O (converted_character_d)): Remove.
15790 (count_next_character): Use std::vector.
15791 (print_converted_chars_to_obstack): Likewise.
15792 (generic_printstr): Likewise.
15794 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15796 * xml-support.h (struct gdb_xml_value): Add constructor.
15797 <value>: Change type to unique_xmalloc_ptr.
15798 (gdb_xml_value_s): Remove typedef.
15799 (DEF_VEC_O (gdb_xml_value_s)): Remove.
15800 (gdb_xml_element_start_handler): Change parameter type to
15802 (xml_find_attribute): Likewise.
15803 * xml-support.c (xml_find_attribute): Change parameter type to
15804 std::vector and adjust.
15805 (gdb_xml_values_cleanup): Remove.
15806 (gdb_xml_parser::start_element): Adjust to std::vector.
15807 (xinclude_start_include): Change paraeter type to std::vector
15809 * btrace.c (check_xml_btrace_version): Likewise.
15810 (parse_xml_btrace_block): Likewise.
15811 (parse_xml_btrace_pt_config_cpu): Likewise.
15812 (parse_xml_btrace_pt): Likewise.
15813 (parse_xml_btrace_conf_bts): Likewise.
15814 (parse_xml_btrace_conf_pt): Likewise.
15815 * memory-map.c (memory_map_start_memory): Likewise.
15816 (memory_map_start_property): Likewise.
15817 * osdata.c (osdata_start_osdata): Likewise.
15818 (osdata_start_item): Likewise.
15819 (osdata_start_column): Likewise.
15820 * remote.c (start_thread): Likewise.
15821 * solib-aix.c (library_list_start_library): Likewise.
15822 (library_list_start_list): Likewise.
15823 * solib-svr4.c (library_list_start_library): Likewise.
15824 (svr4_library_list_start_list): Likewise.
15825 * solib-target.c (library_list_start_segment): Likewise.
15826 (library_list_start_section): Likewise.
15827 (library_list_start_library): Likewise.
15828 (library_list_start_list): Likewise.
15829 * tracepoint.c (traceframe_info_start_memory): Likewise.
15830 (traceframe_info_start_tvar): Likewise.
15831 * xml-syscall.c (syscall_start_syscall): Likewise.
15832 * xml-tdesc.c (tdesc_start_target): Likewise.
15833 (tdesc_start_feature): Likewise.
15834 (tdesc_start_reg): Likewise.
15835 (tdesc_start_union): Likewise.
15836 (tdesc_start_struct): Likewise.
15837 (tdesc_start_flags): Likewise.
15838 (tdesc_start_enum): Likewise.
15839 (tdesc_start_field): Likewise.
15840 (tdesc_start_enum_value): Likewise.
15841 (tdesc_start_vector): Likewise.
15843 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15845 * extension.h (struct xmethod_worker) <clone>: Remove.
15846 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
15848 (python_xmethod_worker::clone): Remove.
15849 * valops.c (find_overload_match): Use std::move instead of
15852 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15854 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
15855 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
15856 <free_xmethod_worker_data>: Remove.
15857 <get_matching_xmethod_workers>: Chance VEC to std::vector.
15858 <get_xmethod_arg_types>: Remove.
15859 <get_xmethod_result_type>: Remove.
15860 <invoke_xmethod>: Remove.
15861 * extension.c (new_xmethod_worker): Remove.
15862 (clone_xmethod_worker): Remove.
15863 (get_matching_xmethod_workers): Return void, pass std::vector by
15865 (get_xmethod_arg_types): Rename to...
15866 (xmethod_worker::get_arg_types): ... this, and adjust.
15867 (get_xmethod_result_type): Rename to...
15868 (xmethod_worker::get_result_type): ... this, and adjust.
15869 (invoke_xmethod): Remove.
15870 (free_xmethod_worker): Remove.
15871 (free_xmethod_worker_vec): Remove.
15872 * extension.h (enum ext_lang_rc): Move here from
15874 (struct xmethod_worker): Add constructor and destructor.
15877 <invoke, clone, do_get_result_type, do_get_arg_types>: New
15878 virtual pure methods.
15879 <get_arg_types, get_result_type>: New methods.
15880 (xmethod_worker_ptr): Remove typedef.
15881 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
15882 (xmethod_worker_vec): Remove typedef.
15883 (xmethod_worker_up): New typedef.
15884 (invoke_xmethod): Remove.
15885 (clone_xmethod_worker): Remove.
15886 (free_xmethod_worker): Remove.
15887 (free_xmethod_worker_vec): Remove.
15888 (get_xmethod_arg_types): Remove.
15889 (get_xmethod_result_type): Remove.
15890 * valops.c (find_method_list): Use std::vector, don't use
15891 intermediate vector.
15892 (value_find_oload_method_list): Use std::vector.
15893 (find_overload_match): Use std::vector.
15894 (find_oload_champ): Use std::vector.
15895 * value.c (value_free): Use operator delete.
15896 (value_of_xmethod): Rename to...
15897 (value_from_xmethod): ... this. Don't assign
15898 xmethod_worker::value, take rvalue-reference.
15899 (result_type_of_xmethod): Adjust.
15900 (call_xmethod): Adjust.
15901 * value.h: Include extension.h.
15902 (struct xmethod_worker): Don't forward-declare.
15903 (value_of_xmethod): Rename to...
15904 (value_from_xmethod): ... this, take rvalue-reference.
15905 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
15906 (struct python_xmethod_worker): ... this, add constructor and
15908 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
15909 (gdbpy_free_xmethod_worker_data): Rename to...
15910 (python_xmethod_worker::~python_xmethod_worker): ... this and
15912 (gdbpy_clone_xmethod_worker_data): Rename to...
15913 (python_xmethod_worker::clone): ... this and adjust.
15914 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
15916 (gdbpy_get_xmethod_arg_types): Rename to...
15917 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
15918 (gdbpy_get_xmethod_result_type): Rename to...
15919 (python_xmethod_worker::do_get_result_type): ... this and
15921 (gdbpy_invoke_xmethod): Rename to...
15922 (python_xmethod_worker::invoke): ... this and adjust.
15923 (new_python_xmethod_worker): Rename to...
15924 (python_xmethod_worker::python_xmethod_worker): ... this and
15926 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
15928 (gdbpy_free_xmethod_worker_data): Remove.
15929 (gdbpy_get_matching_xmethod_workers): Use std::vector.
15930 (gdbpy_get_xmethod_arg_types): Remove.
15931 (gdbpy_get_xmethod_result_type): Remove.
15932 (gdbpy_invoke_xmethod): Remove.
15933 * python/python.c (python_extension_ops): Remove obsolete
15936 2018-01-05 Pedro Alves <palves@redhat.com>
15939 * common/signals-state-save-restore.c
15940 (save_original_signals_state): New parameter 'quiet'. Warn if we
15941 find a custom handler preinstalled, instead of internal erroring.
15942 But only warn if !quiet.
15943 * common/signals-state-save-restore.h
15944 (save_original_signals_state): New parameter 'quiet'.
15945 * main.c (captured_main_1): Move save_original_signals_state call
15946 after option handling, and pass QUIET.
15948 2018-01-05 Pedro Alves <palves@redhat.com>
15950 * spu-tdep.c (spu_catch_start): Pass
15951 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
15953 2018-01-05 Pedro Alves <palves@redhat.com>
15956 * ada-lang.c (literal_symbol_name_matcher): New function.
15957 (ada_get_symbol_name_matcher): Use it for
15958 symbol_name_match_type::SEARCH_NAME.
15959 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
15960 it down instead of assuming symbol_name_match_type::FULL.
15961 * block.h (block_lookup_symbol): New parameter 'match_type'.
15962 * c-valprint.c (print_unpacked_pointer): Use
15963 lookup_symbol_search_name instead of lookup_symbol.
15964 * compile/compile-object-load.c (get_out_value_type): Pass down
15965 symbol_name_match_type::SEARCH_NAME.
15966 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
15967 symbol_name_match_type::FULL.
15968 * cp-support.c (cp_get_symbol_name_matcher): Handle
15969 symbol_name_match_type::SEARCH_NAME.
15970 * infrun.c (insert_exception_resume_breakpoint): Use
15971 lookup_symbol_search_name.
15972 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
15973 * psymtab.c (maintenance_check_psymtabs): Use
15974 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
15975 * stack.c (print_frame_args): Use lookup_symbol_search_name and
15976 SYMBOL_SEARCH_NAME.
15977 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
15978 if symbol_name_match_type::SEARCH_NAME.
15979 (lookup_symbol_in_language): Pass down
15980 symbol_name_match_type::FULL.
15981 (lookup_symbol_search_name): New.
15982 (lookup_language_this): Pass down
15983 symbol_name_match_type::SEARCH_NAME.
15984 (lookup_symbol_aux, lookup_local_symbol): New parameter
15985 'match_type'. Pass it down.
15986 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
15987 (lookup_symbol_search_name): New declaration.
15988 (lookup_symbol_in_block): New 'match_type' parameter.
15990 2018-01-05 Pedro Alves <palves@redhat.com>
15993 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
15995 (ada_lookup_symbol): Reimplement in terms of
15996 ada_lookup_symbol_list, bits factored out from
15997 ada_lookup_encoded_symbol.
15999 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16001 * ada-exp.y (write_object_renaming): When subscripting an array
16002 using a symbol as the index, pass the block in call to
16003 ada_lookup_encoded_symbol when looking that symbol up.
16005 2018-01-05 Jerome Guitton <guitton@adacore.com>
16007 * ada-lang.c (ada_array_length): Use ada_index_type instead of
16010 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16012 * ada-lang.c (ada_to_fixed_value_create): Add handling of
16013 the case where VALUE_LVAL (val0) is not lval_memory.
16015 2018-01-05 Xavier Roirand <roirand@adacore.com>
16017 * ada-valprint.c (print_optional_low_bound): Handle
16018 character-indexed array printing like boolean-indexed array
16021 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16023 * NEWS: Create a new section for the next release branch.
16024 Rename the section of the current branch, now that it has
16027 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16029 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
16030 * version.in: Bump version to 8.1.50.DATE-git.
16032 2018-01-03 Xavier Roirand <roirand@adacore.com>
16034 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
16036 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
16038 (default_exception_support_info) <catch_handlers_sym>: Add field.
16039 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
16040 (ada_exception_name_addr_1): Add "catch handlers" handling.
16041 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
16042 Update all callers.
16043 (create_excep_cond_exprs) <ex>: Add parameter.
16044 (re_set_exception): Update create_excep_cond_exprs call.
16045 (print_it_exception, print_one_exception, print_mention_exception)
16046 (print_recreate_exception): Add "catch handler" handling.
16047 (allocate_location_catch_handlers, re_set_catch_handlers)
16048 (check_status_catch_handlers, print_it_catch_handlers)
16049 (print_one_catch_handlers, print_mention_catch_handlers)
16050 (print_recreate_catch_handlers): New function.
16051 (catch_handlers_breakpoint_ops): New variable.
16052 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
16053 Add parameter. Add "catch handler" handling.
16054 (ada_exception_sym_name, ada_exception_breakpoint_ops):
16055 Add "catch handler" handling.
16056 (ada_exception_catchpoint_cond_string): Add "catch handler"
16058 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
16060 (catch_ada_handlers_command): New function.
16061 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
16062 operations structure.
16063 (_initialize_ada_language): Add "catch handlers" command entry.
16064 * NEWS: Document "catch handlers" feature.
16066 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16068 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
16069 account when creating the array type of the slice.
16070 (ada_value_slice): Likewise.
16072 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16074 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
16076 (create_array_type_with_stride): Add byte_stride_prop parameter.
16077 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
16078 New parameter. Update all callers in this file.
16079 (array_type_has_dynamic_stride): New function.
16080 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
16081 of arrays with dynamic byte strides.
16082 * dwarf2read.c (read_array_type): Add support for dynamic
16083 DW_AT_byte_stride attributes.
16085 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16087 * dwarf2read.c (read_unspecified_type): Treat
16088 DW_TAG_enumeration_type DIEs from Ada units as stubs.
16090 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16092 Update copyright year range in all GDB files.
16094 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
16096 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
16097 and gdb/testsuite/gdb.base/step-line.c.
16099 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16101 * copyright.py (main): Dump the contents of
16102 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
16103 even if BY_HAND is empty.
16105 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16107 * top.c (print_gdb_version): Update Copyright year in version
16110 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16112 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
16114 For older changes see ChangeLog-2017.
16120 version-control: never