1 2018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com>
4 * gdb/python/python.c (execute_gdb_command): Call
5 prevent_dont_repeat earlier to avoid affecting dont_repeat.
7 2018-11-21 Andrew Burgess <andrew.burgess@embecosm.com>
9 * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
10 (HFILES_NO_SRCDIR): Add arch/riscv.h.
11 * arch/riscv.c: New file.
12 * arch/riscv.h: New file.
13 * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
14 this list, and add arch/riscv.o.
15 * features/Makefile: Add riscv features.
16 * features/riscv/32bit-cpu.c: New file.
17 * features/riscv/32bit-cpu.xml: New file.
18 * features/riscv/32bit-csr.c: New file.
19 * features/riscv/32bit-csr.xml: New file.
20 * features/riscv/32bit-fpu.c: New file.
21 * features/riscv/32bit-fpu.xml: New file.
22 * features/riscv/64bit-cpu.c: New file.
23 * features/riscv/64bit-cpu.xml: New file.
24 * features/riscv/64bit-csr.c: New file.
25 * features/riscv/64bit-csr.xml: New file.
26 * features/riscv/64bit-fpu.c: New file.
27 * features/riscv/64bit-fpu.xml: New file.
28 * features/riscv/rebuild-csr-xml.sh: New file.
29 * riscv-tdep.c: Add 'arch/riscv.h' include.
30 (riscv_gdb_reg_names): Delete.
31 (csr_reggroup): New global.
32 (struct riscv_register_alias): Delete.
33 (struct riscv_register_feature): New structure.
34 (riscv_register_aliases): Delete.
35 (riscv_xreg_feature): New global.
36 (riscv_freg_feature): New global.
37 (riscv_virtual_feature): New global.
38 (riscv_csr_feature): New global.
39 (riscv_create_csr_aliases): New function.
40 (riscv_read_misa_reg): Delete.
41 (riscv_has_feature): Delete.
42 (riscv_isa_xlen): Simplify, just return cached xlen.
43 (riscv_isa_flen): Simplify, just return cached flen.
44 (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
45 (riscv_register_name): Update to make use of tdesc_register_name.
46 Look up xreg and freg names in the new globals riscv_xreg_feature
47 and riscv_freg_feature. Don't supply csr aliases here.
48 (riscv_fpreg_q_type): Delete.
49 (riscv_register_type): Use tdesc_register_type in almost all
50 cases, override the returned type in a few specific cases only.
51 (riscv_print_one_register_info): Handle errors reading registers.
52 (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
53 registers that are otherwise unknown to GDB. Also check the
55 (riscv_print_registers_info): Remove assert about upper register
56 number, and use gdbarch_register_reggroup_p instead of
58 (riscv_find_default_target_description): New function.
59 (riscv_check_tdesc_feature): New function.
60 (riscv_add_reggroups): New function.
61 (riscv_setup_register_aliases): New function.
62 (riscv_init_reggroups): New function.
63 (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
64 setup register groups. Register new riscv debug variable.
65 * riscv-tdep.h: Add 'arch/riscv.h' include.
66 (struct gdbarch_tdep): Remove abi union, and add
67 riscv_gdbarch_features field. Remove cached quad floating point
68 type, and provide initialisation for double type field.
69 * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
70 the list of targets using the feature based target descriptions.
71 * NEWS: Mention target description support.
73 2018-11-21 Pedro Alves <palves@redhat.com>
75 * valops.c (find_method_list, value_find_oload_method_list)
76 (find_overload_match, find_oload_champ): Rename parameters and
79 2018-11-21 Pedro Alves <palves@redhat.com>
81 * valops.c (find_method_list): Replace pointer and length
82 parameters with an gdb::array_view. Adjust.
83 (value_find_oload_method_list): Likewise.
84 (find_overload_match): Use gdb::array_view for methods list.
85 Adjust to find_oload_champ interface change.
86 (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
87 'num_fns' parameter now a size_t. Eliminate 'fn_count' local.
89 2018-11-21 Pedro Alves <palves@redhat.com>
91 * gdbtypes.c (compare_badness): Change type of parameters to const
92 reference. Adjust to badness_vector being a std::vector now.
93 (rank_function): Adjust to badness_vector being a std::vector now.
94 * gdbtypes.h (badness_vector): Now a typedef to std::vector.
95 (LENGTH_MATCH): Delete.
96 (compare_badness): Change type of parameters to const reference.
97 (rank_function): Return a badness_vector by value now.
98 (find_overload_match): Adjust to badness_vector being a
99 std::vector now. Remove cleanups.
100 (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
101 badness_vector pointer.
102 (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
103 a badness_vector pointer. Adjust to badness_vector being a
104 std::vector now. Remove cleanups.
105 (find_oload_champ): 'oload_champ_bv' parameter now
106 a badness_vector pointer. Adjust to badness_vector being a
107 std::vector now. Remove cleanups.
109 2018-11-21 Pedro Alves <palves@redhat.com>
111 * cp-support.c (sym_return_val_size, sym_return_val_index)
112 (sym_return_val): Delete.
113 (overload_list_add_symbol): Add std::vector parameter. Adjust to
115 (make_symbol_overload_list): Adjust to return a std::vector
116 instead of maintaining a global open coded vector.
117 (make_symbol_overload_list_block): Add std::vector parameter.
118 (make_symbol_overload_list_block): Rename to ...
119 (add_symbol_overload_list_block): ... this and add std::vector
121 (make_symbol_overload_list_namespace): Rename to ...
122 (add_symbol_overload_list_namespace): ... this and add std::vector
124 (make_symbol_overload_list_adl_namespace): Rename to ...
125 (add_symbol_overload_list_adl_namespace): ... this and add
126 std::vector parameter.
127 (make_symbol_overload_list_adl): Delete.
128 (add_symbol_overload_list_adl): New.
129 (make_symbol_overload_list_using): Rename to ...
130 (add_symbol_overload_list_using): ... this and add std::vector
132 (make_symbol_overload_list_qualified): Rename to ...
133 (add_symbol_overload_list_qualified): ... this and add std::vector
135 * cp-support.h: Include "common/array-view.h" and <vector>.
136 (make_symbol_overload_list): Change return type to std::vector.
137 (make_symbol_overload_list_adl): Delete declaration.
138 (add_symbol_overload_list_adl): New declaration.
139 * valops.c (find_overload_match): Local 'oload_syms' now a
141 (find_oload_champ_namespace): 'oload_syms' parameter now a
143 (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
144 std::vector pointer. Adjust to new make_symbol_overload_list
147 2018-11-21 Pedro Alves <palves@redhat.com>
149 * common/array-view.h (array_view::splice(size_type, size_t)): New.
150 (array_view::splice(size_type)): New.
151 * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
152 * extension.c (xmethod_worker::get_arg_types): Adjust to return an
154 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
155 * extension.h: Include "common/array-view.h".
156 (xmethod_worker::invoke): Adjust to use gdb::array_view.
157 (xmethod_worker::get_arg_types): Adjust to return an std::vector.
158 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
159 (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
160 (xmethod_worker::do_get_result_type): Adjust to use
162 * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
163 * gdbtypes.h: Include "common/array-view.h".
164 (rank_function): Adjust to use gdb::array_view.
165 * python/py-xmethods.c (python_xmethod_worker::invoke)
166 (python_xmethod_worker::do_get_arg_types)
167 (python_xmethod_worker::do_get_result_type)
168 (python_xmethod_worker::invoke): Adjust to new interfaces.
169 * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
170 (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
171 * valops.c (find_overload_match, find_oload_champ_namespace)
172 (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
173 gdb:array_view and the new xmethod_worker interfaces.
174 * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
176 * value.h (find_overload_match, result_type_of_xmethod)
177 (call_xmethod): Adjust to use gdb::array_view.
178 * unittests/array-view-selftests.c: Add slicing tests.
180 2018-11-21 Pedro Alves <palves@redhat.com>
182 * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
183 * common/array-view.h (make_array_view): New.
184 * compile/compile-object-run.c (compile_object_run): Adjust to
186 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
187 * eval.c (eval_call): Adjust to pass an array_view.
188 (evaluate_subexp_standard): Adjust to pass an array_view.
189 * gcore.c (call_target_sbrk): Adjust to pass an array_view.
190 * guile/scm-value.c (gdbscm_value_call): Likewise.
191 * infcall.c (push_dummy_code): Replace pointer + size parameters
192 with an array_view parameter.
193 (call_function_by_hand, call_function_by_hand_dummy): Likewise and
195 * infcall.h: Include "common/array-view.h".
196 (call_function_by_hand, call_function_by_hand_dummy): Replace
197 pointer + size parameters with an array_view parameter.
198 * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
199 * linux-tdep.c (linux_infcall_mmap): Likewise.
200 * objc-lang.c (lookup_objc_class, lookup_child_selector)
201 (value_nsstring, print_object_command): Likewise.
202 * python/py-value.c (valpy_call): Likewise.
203 * rust-lang.c (rust_evaluate_funcall): Likewise.
204 * spu-tdep.c (flush_ea_cache): Likewise.
205 * valarith.c (value_x_binop, value_x_unop): Likewise.
206 * valops.c (value_allocate_space_in_inferior): Likewise.
207 * unittests/array-view-selftests.c (run_tests): Add
208 gdb::make_array_view test.
210 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
212 * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
213 than a fixed size buffer.
215 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
217 * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
218 and remove insertion of extra spaces in GDB's output.
219 * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
220 Layout field into a temporary buffer, and then output it as a
223 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
225 * NEWS: Document the language choice done by
226 'info [types|functions|variables]|rbreak'.
228 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
230 * symtab.c (treg_matches_sym_type_name): Use
231 scoped_switch_to_sym_language_if_auto instead of local logic.
232 (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
233 to switch to SYM language when language mode is auto.
235 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
237 * language.h (scoped_switch_to_sym_language_if_auto): New class.
239 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
241 * symtab.c (search_symbols): Properly check absence of type regexp
242 before entering the loop scanning the minimal symbols.
244 2018-11-20 John Darrington <john@darrington.wattle.id.au>
246 * s12z-tdep.c (s12z_extract_return_value): New function.
247 (inv_reg_perm) New array.
248 (s12z_return_value): Populate readbuf if non-null.
250 2018-11-20 Eli Zaretskii <eliz@gnu.org>
252 * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
253 with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
254 to MinGW fixed by Gnulib.
255 (O_NOINHERIT): Define if not defined.
257 2018-11-19 John Darrington <john@darrington.wattle.id.au>
259 * s12z-tdep.c (s12z_frame_cache): Add an assertion.
261 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
263 * infrun.c (displaced_step_inferior_state) <next>: Remove.
265 2018-11-19 Tom Tromey <tom@tromey.com>
267 * source.c (get_filename_and_charpos): Return void.
269 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
271 * skip.c (_initialize_step_skip): Fix "info skip" help.
273 2018-11-16 Tom Tromey <tom@tromey.com>
276 * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
278 2018-11-19 Simon Marchi <simon.marchi@ericsson.com>
280 * infrun.c (displaced_step_inferior_states): Change type to
282 (get_displaced_stepping_state): Adjust.
283 (displaced_step_in_progress_any_inferior): Adjust.
284 (add_displaced_stepping_state): Adjust.
285 (remove_displaced_stepping_state): Adjust.
287 2018-11-18 Tom Tromey <tom@tromey.com>
290 * target-delegates.c: Rebuild.
291 * ia64-linux-nat.c (class ia64_linux_nat_target)
292 <have_steppable_watchpoint>: Use override. Return true, not 1.
293 (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove
295 (ia64_linux_nat_target::low_new_thread): Rename.
296 (class ia64_linux_nat_target) <read_description>: Don't declare.
297 * target.h (struct target_ops) <have_steppable_watchpoint>: Return
300 2018-11-16 Alan Hayward <alan.hayward@arm.com>
303 * aarch64-tdep.c (aarch64_push_dummy_call): Remove
304 lang_struct_return code.
306 2018-11-16 Alan Hayward <alan.hayward@arm.com>
308 * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
310 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
311 * amd64-tdep.c (amd64_push_arguments): Likewise.
312 (amd64_push_dummy_call): Likewise.
313 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
314 * arc-tdep.c (arc_push_dummy_call): Likewise.
315 * arm-tdep.c (arm_push_dummy_call): Likewise.
316 * avr-tdep.c (avr_push_dummy_call): Likewise.
317 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
318 * cris-tdep.c (cris_push_dummy_call): Likewise.
319 * csky-tdep.c (csky_push_dummy_call): Likewise.
320 * frv-tdep.c (frv_push_dummy_call): Likewise.
321 * gdbarch.c: Regenerate.
322 * gdbarch.h: Regenerate.
323 * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
325 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
326 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
327 (hppa64_push_dummy_call): Likewise.
328 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
329 * i386-tdep.c (i386_push_dummy_call): Likewise.
330 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
331 * infcall.c (call_function_by_hand_dummy): Likewise.
332 * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
333 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
334 * m32c-tdep.c (m32c_push_dummy_call): Likewise.
335 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
336 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
337 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
338 * mep-tdep.c (mep_push_dummy_call): Likewise.
339 * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
340 (mips_n32n64_push_dummy_call): Likewise.
341 (mips_o32_push_dummy_call): Likewise.
342 (mips_o64_push_dummy_call): Likewise.
343 * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
344 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
345 * nds32-tdep.c (nds32_push_dummy_call): Likewise.
346 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
347 * or1k-tdep.c (or1k_push_dummy_call): Likewise.
348 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
349 (ppc64_sysv_abi_push_dummy_call): Likewise.
350 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
351 (ppc64_sysv_abi_push_dummy_call): Likewise.
352 * riscv-tdep.c (riscv_push_dummy_call): Likewise.
353 * rl78-tdep.c (rl78_push_dummy_call): Likewise.
354 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
355 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
356 * rx-tdep.c (rx_push_dummy_call): Likewise.
357 * s390-tdep.c (s390_push_dummy_call): Likewise.
358 * score-tdep.c (score_push_dummy_call): Likewise.
359 * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
360 (sh_push_dummy_call_nofpu): Likewise.
361 * sparc-tdep.c (sparc32_store_arguments): Likewise.
362 (sparc32_push_dummy_call): Likewise.
363 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
364 (sparc64_push_dummy_call): Likewise.
365 * spu-tdep.c (spu_push_dummy_call): Likewise.
366 * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
367 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
368 * v850-tdep.c (v850_push_dummy_call): Likewise.
369 * vax-tdep.c (vax_push_dummy_call): Likewise.
370 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
371 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
373 2018-11-16 Alan Hayward <alan.hayward@arm.com>
375 * gdbarch.sh (enum function_call_return_method): Add enum.
376 * gdbarch.h: Regenerate.
377 * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
379 2018-11-15 Joel Brobecker <brobecker@adacore.com>
381 * unittests/copy_bitwise-selftests.c: New file.
382 * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
383 (selftests::copy_bitwise_tests): Delete, moving this code to
384 unittests/copy_bitwise-selftests.c instead.
385 (_initialize_utils): Do not register copy_bitwise tests.
386 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
387 unittests/copy_bitwise-selftests.c.
389 2018-11-14 Joel Brobecker <brobecker@adacore.com>
391 * ada-lang.c (move_bits): Delete. Update all callers to use
392 copy_bitwise instead.
393 * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
394 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
395 Move from here to utils.c.
396 (_initialize_dwarf2loc): Remove call to register copy_bitwise
398 * utils.h (copy_bitwise): Add declaration.
399 * utils.c (copy_bitwise, bits_to_str::bits_to_str)
400 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
401 Moved here from dwarf2loc.c.
402 (_initialize_utils): Register copy_bitwise selftests.
404 2018-11-14 Jim Wilson <jimw@sifive.com>
406 * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
407 (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
408 then increment next_regnum if odd.
409 (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed.
410 (riscv_push_dummy_call): New local ftype. Call check_typedef to set
411 function type. Pass new arg to riscv_arg_location based on function
413 (riscv_return_value): Pass new arg to riscv_arg_location.
415 * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
416 (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
417 of TYPE_LENGTH and BIGGEST_ALIGNMENT.
419 * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
420 setting len. New local align, set to max of arg align and xlen,
421 and pass to first riscv_assign_stack_location call.
423 2018-11-12 Simon Marchi <simon.marchi@polymtl.ca>
425 * skip.c (complete_skip_number): New function.
426 (_initialize_step_skip): Add completers to some skip commands.
428 2018-11-09 Tom Tromey <tom@tromey.com>
430 * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
431 (struct remote_g_packet_data): Derive from allocate_on_obstack.
432 <guesses>: Now a std::vector.
433 (remote_g_packet_data_init, register_remote_g_packet_guess):
435 (remote_read_description_p): Update. Return bool.
436 (remote_target::read_description): Update.
437 (struct remote_g_packet_guess): Add constructor.
439 2018-11-09 Tom Tromey <tom@tromey.com>
441 * common/scoped_fd.h (class scoped_fd): Add move constructor and
442 move assignment operator.
443 * psymtab.c (psymtab_to_fullname): Update.
444 * source.h (open_source_file): Return scoped_fd.
445 (find_and_open_source): Likewise.
446 * source.c (open_source_file): Return scoped_fd.
447 (get_filename_and_charpos): Update.
448 (print_source_lines_base): Update. Use scoped_fd::to_file.
449 (forward_search_command): Likewise.
450 (reverse_search_command): Likewise.
451 (find_and_open_source): Return scoped_fd.
452 * tui/tui-source.c (tui_set_source_content): Update. Use
455 2018-11-09 John Baldwin <jhb@FreeBSD.org>
457 * minsyms.c (minimal_symbol_reader::install): Fix unsigned
460 2018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com>
462 * configure: Regenerate.
464 2018-11-09 Tom de Vries <tdevries@suse.de>
466 * symtab.c (symbol_set_names): Call symbol_find_demangled_name
467 unconditionally, to set the language of the symbol. Manage freeing
468 returned pointer using gdb::unique_xmalloc_ptr.
470 2018-11-08 Tom Tromey <tom@tromey.com>
472 * record.c (require_record_target): Upper-case "<TAB>".
474 2018-11-08 Tom Tromey <tom@tromey.com>
476 * python/lib/gdb/command/pretty_printers.py
477 (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
479 2018-11-08 Tom Tromey <tom@tromey.com>
483 * target.h (target_supports_terminal_ours): Return bool.
484 * target.c (target_supports_terminal_ours): Handle case where
485 current_top_target returns nullptr. Return bool.
487 2018-11-08 Joel Brobecker <brobecker@adacore.com>
489 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
490 return the correct count for potential HFAs.
492 2018-11-08 Jan Beulich <jbeulich@suse.com>
494 * i387-tdep.c (i387_supply_xsave): Split handling of
495 X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
496 (i387_collect_xsave): Likewise.
498 2018-11-08 Andrew Burgess <andrew.burgess@embecosm.com>
500 * riscv-tdep.c (riscv_insn::decode): Update header comment.
501 (riscv_frame_this_id): Catch errors thrown while building the
502 frame cache, leave the frame id as the default, which is the outer
505 2018-11-07 Joel Brobecker <brobecker@adacore.com>
507 * ada-lang.c (read_atcb): Only set task_info->called_task if
508 task_info->state == Entry_Caller_Sleep.
509 (print_ada_task_info): Do not check task_info->state before
510 checking task_info->called_task.
511 (info_task): Likewise.
513 2018-11-07 Joel Brobecker <brobecker@adacore.com>
515 * ada-tasks.c (read_atcb): Clear task_info before computing
516 the value of each of its fields.
518 2018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
520 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
521 NULL before dereferencing it.
523 2018-11-06 Tom de Vries <tdevries@suse.de>
525 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
528 2018-11-06 Max Filippov <jcmvbkbc@gmail.com>
530 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
531 so that it applies to uclinux as well.
533 2018-11-06 Marius Muench <marius.muench@eurecom.fr>
535 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
538 2018-11-06 John Baldwin <jhb@FreeBSD.org>
540 * riscv-fbsd-nat.c (getregs_supplies): Return true for
541 RISCV_CSR_SSTATUS_REGNUM.
543 2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
545 * source.c (open_source_file): Fix leak by transferring the
546 current s->fullname to the unique_xmalloc_ptr fullname given
547 to find_and_open_source.
549 2018-11-04 Tom Tromey <tom@tromey.com>
551 * varobj.c (install_default_visualizer): Update.
552 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
554 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
555 (find_pretty_printer_from_progspace)
556 (find_pretty_printer_from_gdb, find_pretty_printer)
557 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
558 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
561 2018-11-04 Tom Tromey <tom@tromey.com>
563 * python/python.c (gdbpy_parameter_value): Update.
564 * python/python-internal.h (python_string_to_unicode)
565 (python_string_to_target_python_string)
566 (host_string_to_python_string): Return gdbpy_ref.
567 * python/py-utils.c (python_string_to_unicode)
568 (unicode_to_encoded_python_string)
569 (unicode_to_target_python_string)
570 (python_string_to_target_string)
571 (python_string_to_target_python_string): Return gdbpy_ref.
572 (python_string_to_host_string): Update.
573 (host_string_to_python_string): Return gdbpy_ref.
574 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
575 (stpy_fullname): Update.
576 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
578 * python/py-prettyprint.c (print_string_repr): Update.
579 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
580 (objfpy_get_build_id): Update.
581 * python/py-breakpoint.c (bppy_get_location)
582 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
585 2018-11-04 Tom Tromey <tom@tromey.com>
587 * python/python-internal.h (gdb_py_object_from_longest)
588 (gdb_py_object_from_ulongest): Return gdbpy_ref.
589 * python/py-value.c (valpy_int): Update.
590 * python/py-utils.c (gdb_py_object_from_longest): Return
592 (gdb_py_object_from_ulongest): Likewise.
593 * python/py-type.c (typy_get_alignof): Update.
594 * python/py-linetable.c (ltpy_get_all_source_lines)
595 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
596 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
598 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
600 * ada-lang.c (_initialize_ada_language): Fix typo.
602 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
604 * language.c (type): Remove.
605 (_initialize_language): Remove assignment to type.
607 2018-11-02 Joel Brobecker <brobecker@adacore.com>
609 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
610 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
611 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
612 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
613 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
614 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
615 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
616 and aarch64-ravenscar-thread.o.
617 * NEWS: Add entry documenting Ravenscar tasking support
620 2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
622 * symtab.c (info_functions_command): Initialize quiet flag.
623 * stack.c (info_args_command): Likewise.
625 2018-11-01 Jim Wilson <jimw@sifive.com>
627 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
628 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
631 2018-11-01 Joel Brobecker <brobecker@adacore.com>
633 * ada-lang.c (ada_watch_location_expression): New function.
634 (ada_language_defn): Set la_watch_location_expression to
635 ada_watch_location_expression.
637 2018-11-01 Joel Brobecker <brobecker@adacore.com>
639 * print-utils.c (int_string): Remove unnecessary trailing spaces.
641 2018-11-01 Joel Brobecker <brobecker@adacore.com>
643 * rs6000-tdep.c (skip_prologue): Fix potential negative left
646 2018-11-01 Jerome Guitton <guitton@adacore.com>
647 Joel Brobecker <brobecker@adacore.com>
649 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
650 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
651 * arm-pikeos-tdep.c: New file.
652 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
654 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
656 2018-11-01 Simon Marchi <simon.marchi@ericsson.com>
658 * common/pathstuff.c (get_standard_temp_dir): New.
659 * common/pathstuff.h (get_standard_temp_dir): New.
660 * config.in: Re-generate.
661 * configure: Re-generate.
662 * configure.ac: Don't check for mkdtemp.
663 * gnulib/aclocal-m4-deps.mk: Re-generate.
664 * gnulib/aclocal.m4: Re-generate.
665 * gnulib/config.in: Re-generate.
666 * gnulib/configure: Re-generate.
667 * gnulib/import/Makefile.am: Re-generate.
668 * gnulib/import/Makefile.in: Re-generate.
669 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
670 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
671 * gnulib/import/m4/mkdtemp.m4: New file.
672 * gnulib/import/mkdtemp.c: New file.
673 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
675 * unittests/mkdir-recursive-selftests.c (test): Use
676 get_standard_temp_dir.
677 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
679 * compile/compile.c (get_compile_file_tempdir): Likewise.
681 2018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
683 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
684 (SIG_FRAME_LR_OFFSET64): New define.
685 (SIG_FRAME_FP_OFFSET64): New define.
686 (aix_sighandle_frame_cache): New Function.
687 (aix_sighandle_frame_this_id): New Function.
688 (aix_sighandle_frame_prev_register): New Function.
689 (aix_sighandle_frame_sniffer): New Function.
690 (aix_sighandle_frame_unwind): New global variable.
691 (rs6000_aix_init_osabi): Install new frame unwinder.
693 2018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
696 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
699 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
701 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
703 2018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
705 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
706 (producer_is_icc): New function.
707 (check_producer): Set producer_is_icc field on dwarf2_cu.
708 (dwarf2_init_integer_type): New function.
709 (read_base_type): Call dwarf2_init_integer_type instead of
710 init_integer_type in all cases.
711 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
712 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
713 LEN is greater than 0.
715 2018-10-30 Tom Tromey <tom@tromey.com>
717 * main.c (captured_main_1): Check return value of bfd_init.
719 2018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
721 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
724 2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
726 * procfs.c: Include common/pathstuff.h.
728 2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
730 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
731 Add missing braces. No functional change.
733 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
735 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
736 to report a bad option and fix indentation.
737 * demangle.c (demangle_command): Use report_unrecognized_option_error
738 to report a bad option and correctly report the bad option.
740 2018-10-27 Tom Tromey <tom@tromey.com>
743 * darwin-nat.c (copied_shell): New global.
744 (may_have_sip): Rename from should_disable_startup_with_shell.
745 (copy_shell_to_cache, maybe_cache_shell): New functions.
746 (darwin_nat_target::create_inferior): Update. Use
749 2018-10-27 Tom Tromey <tom@tromey.com>
751 * unittests/scoped_fd-selftests.c (test_to_file): New function.
752 (run_tests): Call test_to_file.
753 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
755 * common/scoped_fd.h (scoped_fd::to_file): New method.
757 2018-10-27 Tom Tromey <tom@tromey.com>
759 * unittests/scoped_mmap-selftests.c (test_normal): Use
760 gdb_mkostemp_cloexec.
761 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
762 Use gdb_mkostemp_cloexec.
763 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
764 gnulib/config.in, gnulib/configure,
765 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
766 gnulib/import/m4/gnulib-cache.m4,
767 gnulib/import/m4/gnulib-comp.m4: Update.
768 * gnulib/import/m4/mkostemp.m4: New file.
769 * gnulib/import/m4/mkstemp.m4: Remove.
770 * gnulib/import/mkostemp.c: New file.
771 * gnulib/import/mkstemp.m4: Remove.
772 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
773 mkstemp, add mkostemp. Apply new patch.
774 * gnulib/import/stdlib.in.h: Apply patch.
775 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
777 * dwarf-index-write.c (write_psymtabs_to_index): Use
778 gdb_mkostemp_cloexec.
779 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
781 2018-10-27 Tom Tromey <tom@tromey.com>
783 * unittests/mkdir-recursive-selftests.c: New file.
784 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
785 unittests/mkdir-recursive-selftests.c.
786 * dwarf-index-cache.c (mkdir_recursive): Move to
788 (index_cache::store): Check return value of mkdir_recursive.
789 (create_dir_and_check, test_mkdir_recursive): Move to new file.
790 (_initialize_index_cache): Don't register test.
791 * common/filestuff.h (mkdir_recursive): Declare.
792 * common/filestuff.c (mkdir_recursive): Move from
793 dwarf-index-cache.c. Return bool.
795 2018-10-27 Tom Tromey <tom@tromey.com>
797 * dwarf-index-write.c (write_psymtabs_to_index): Move
798 make_temp_filename to common/pathstuff.c.
799 * common/pathstuff.h (make_temp_filename): Declare.
800 * common/pathstuff.c (make_temp_filename): New function, moved
801 from dwarf-index-write.c.
803 2018-10-27 Tom Tromey <tom@tromey.com>
805 * procfs.c (procfs_target::create_inferior): Use get_shell.
806 * cli/cli-cmds.c (shell_escape): Use get_shell.
807 * windows-nat.c (windows_nat_target::create_inferior): Use
809 * common/pathstuff.c (get_shell): New function.
810 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
811 (fork_inferior): Use get_shell.
812 * common/pathstuff.h (get_shell): Declare.
814 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
816 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
818 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
820 * stack.c (print_variable_and_value_data): Add preg and treg.
821 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
823 (print_frame_arg_vars): Likewise.
824 (prepare_reg): New function.
825 (info_locals_command): Extract info print args and use them.
826 (info_args_command): Likewise.
827 (_initialize_stack): Modify on-line help.
828 * symtab.c (treg_matches_sym_type_name): New function.
829 (search_symbols): New arg t_regexp.
830 (symtab_symbol_info): New args quiet, regexp, t_regexp.
831 (info_variables_command): Extract info print args and use them.
832 (info_functions_command): Likewise.
833 (info_types_command): Update call to symtab_symbol_info.
834 (_initialize_symtab): Modify on-line help.
835 * symtab.h (treg_matches_sym_type_name): New function.
836 (search_symbols): New t_regexp arg.
838 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
840 * cli-utils.c (extract_arg_maybe_quoted): New function.
841 (extract_info_print_args): New function.
842 (info_print_args_help): New function.
843 (report_unrecognized_option_error): New function.
844 * cli-utils.h (extract_arg_maybe_quoted): New function.
845 (extract_info_print_args): New function.
846 (info_print_args_help): New function.
847 (report_unrecognized_option_error): New function.
849 2018-10-26 Tom Tromey <tom@tromey.com>
851 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
852 (compute_compunit_symtab_includes): Update.
853 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
854 (compunit_symtab_ptr): Likewise.
856 2018-10-26 John Baldwin <jhb@FreeBSD.org>
858 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
859 default_print_auxv_entry for specific tag values.
861 2018-10-26 John Baldwin <jhb@FreeBSD.org>
863 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
865 2018-10-26 Jim Wilson <jimw@sifive.com>
867 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
868 (riscv_linux_sigframe_init): Declare.
869 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
870 (riscv_linux_sigframe): New.
871 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
872 (riscv_linux_sigframe_init): Define.
873 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
875 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
876 (riscv_isa_flen): Likewise. Drop static.
877 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
878 (riscv_isa_flen): Likewise. Declare.
880 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
881 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
883 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
884 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
885 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
886 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
887 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
888 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
889 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
891 (struct ppc_linux_features) <htm>: New field.
892 (ppc_linux_no_features): Add initializer for htm field.
893 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
895 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
896 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
897 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
898 Define if not already defined.
899 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
900 and rs6000/powerpc-isa207-htm-vsx64l.
901 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
902 rs6000/powerpc-isa207-htm-vsx64l.xml.
903 * features/rs6000/power-htm-spr.xml: New file.
904 * features/rs6000/power-htm-core.xml: New file.
905 * features/rs6000/power64-htm-core.xml: New file.
906 * features/rs6000/power-htm-fpu.xml: New file.
907 * features/rs6000/power-htm-altivec.xml: New file.
908 * features/rs6000/power-htm-vsx.xml: New file.
909 * features/rs6000/power-htm-ppr.xml: New file.
910 * features/rs6000/power-htm-dscr.xml: New file.
911 * features/rs6000/power-htm-tar.xml: New file.
912 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
913 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
914 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
915 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
916 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
917 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
918 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
919 fetch_regset with HTM regsets.
920 (store_register, store_ppc_registers): Call store_regset with HTM
922 (ppc_linux_nat_target::read_description): Set htm field in the
923 features struct if needed.
924 * ppc-linux-tdep.c: Include
925 features/rs6000/powerpc-isa207-htm-vsx32l.c and
926 features/rs6000/powerpc-isa207-htm-vsx64l.c.
927 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
928 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
929 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
930 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
931 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
932 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
933 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
934 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
935 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
936 (ppc32_linux_ctarregset): New globals.
937 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
938 (ppc_linux_collect_core_cpgrregset): New function.
939 (ppc_linux_iterate_over_regset_sections): Call back with the htm
941 (ppc_linux_core_read_description): Check if the tm spr section is
942 present and set htm in the features struct.
943 (_initialize_ppc_linux_tdep): Call
944 initialize_tdesc_powerpc_isa207_htm_vsx32l and
945 initialize_tdesc_powerpc_isa207_htm_vsx64l.
946 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
948 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
949 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
950 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
951 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
953 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
955 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
956 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
957 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
959 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
960 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
961 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
962 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
963 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
964 <PPC_CTAR_REGNUM>: Likewise.
965 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
966 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
967 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
968 (IS_CEFP_PSEUDOREG): Define.
969 (rs6000_register_name): Hide the upper halves of checkpointed VSX
970 registers. Return names for the checkpointed DFP, VSX, and EFP
972 (rs6000_pseudo_register_type): Remove initial assert and raise an
973 internal error in the else clause instead. Return types for the
974 checkpointed DFP, VSX, and EFP pseudo registers.
975 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
976 checkpointed DFP pseudo registers.
977 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
978 checkpointed VSX pseudo registers.
979 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
980 from efpr_pseudo_register_read and
981 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
983 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
984 Handle checkpointed DFP, VSX, and EFP registers.
985 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
986 (efp_ax_pseudo_register_collect): New functions.
987 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
988 register logic to new functions. Handle checkpointed DFP, VSX,
989 and EFP pseudo registers.
990 (rs6000_gdbarch_init): Look for and validate the htm features.
991 Include checkpointed DFP, VSX and EFP pseudo-registers.
992 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
995 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
997 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
998 without altivec or fpu.
1000 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1001 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1003 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
1004 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
1005 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
1006 Define if not already defined.
1007 * features/rs6000/power-ebb.xml: New file.
1008 * features/rs6000/power-linux-pmu.xml: New file.
1009 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
1011 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
1012 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
1013 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
1014 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
1015 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
1016 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1017 fetch_regset with ebb and pmu regsets.
1018 (store_register, store_ppc_registers): Call store_regset with ebb
1020 (ppc_linux_nat_target::read_description): Set isa207 field in the
1021 features struct if ebb and pmu are avaiable.
1022 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
1023 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
1024 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
1026 (ppc_linux_core_read_description): Check if the pmu section is
1027 present and set isa207 in the features struct.
1028 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
1029 (ppc32_linux_pmuregset): Declare.
1030 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
1031 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
1032 <ppc_sier_regnum>: New field.
1033 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
1035 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
1037 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
1038 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
1039 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
1040 ebb and pmu features.
1042 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1043 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1045 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
1046 (tdesc_powerpc_isa207_vsx64l): Declare.
1047 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
1048 (struct ppc_linux_features) <isa207>: New field.
1049 (ppc_linux_no_features): Add initializer for isa207 field.
1050 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1052 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
1053 (NT_PPC_TAR): Define if not already defined.
1054 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
1055 rs6000/powerpc-isa207-vsx64l.
1056 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
1057 rs6000/powerpc-isa207-vsx64l.xml.
1058 * features/rs6000/power-tar.xml: New file.
1059 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
1060 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
1061 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
1062 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
1063 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
1064 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
1065 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1066 fetch_regset with the TAR regset.
1067 (store_register, store_ppc_registers): Call store_regset with the
1069 (ppc_linux_nat_target::read_description): Set isa207 field in the
1070 features struct if needed.
1071 * ppc-linux-tdep.c: Include
1072 features/rs6000/powerpc-isa207-vsx32l.c and
1073 features/rs6000/powerpc-isa207-vsx64l.c.
1074 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
1075 (ppc_linux_iterate_over_regset_sections): Call back with the tar
1077 (ppc_linux_core_read_description): Check if the tar section is
1078 present and set isa207 in the features struct.
1079 (_initialize_ppc_linux_tdep): Call
1080 initialize_tdesc_powerpc_isa207_vsx32l and
1081 initialize_tdesc_powerpc_isa207_vsx64l.
1082 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
1083 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
1084 (enum) <PPC_TAR_REGNUM>: New enum value.
1085 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
1087 (ppc_process_record_op31): Record changes to TAR.
1089 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1090 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1092 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
1093 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1094 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
1095 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
1096 (struct ppc_linux_features) <ppr_dscr>: New field.
1097 (ppc_linux_no_features): Add initializer for ppr_dscr field.
1098 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1100 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
1101 Define if not already defined.
1102 * features/Makefile (WHICH): Add
1103 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
1104 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
1105 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1106 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
1107 * features/rs6000/power-dscr.xml: New file.
1108 * features/rs6000/power-ppr.xml: New file.
1109 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
1110 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
1111 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
1112 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
1113 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
1114 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
1115 * ppc-linux-nat.c: Include <sys/uio.h>.
1116 (fetch_regset, store_regset, check_regset): New functions.
1117 (fetch_register, fetch_ppc_registers): Call fetch_regset with
1118 DSCR and PPR regsets.
1119 (store_register, store_ppc_registers): Call store_regset with
1120 DSCR and PPR regsets.
1121 (ppc_linux_get_hwcap2): New function.
1122 (ppc_linux_nat_target::read_description): Call
1123 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
1124 features struct if needed.
1125 * ppc-linux-tdep.c: Include
1126 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
1127 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
1128 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
1129 (ppc32_linux_dscrregset): New globals.
1130 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
1132 (ppc_linux_core_read_description): Check if the ppr and dscr
1133 sections are present and set ppr_dscr in the features struct.
1134 (_initialize_ppc_linux_tdep): Call
1135 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
1136 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
1137 * ppc-linux-tdep.h (ppc32_linux_pprregset)
1138 (ppc32_linux_dscrregset): Declare.
1139 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
1140 <ppc_dscr_regnum>: New field.
1141 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
1142 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
1144 (ppc_process_record_op31): Record changes to PPR and DSCR.
1146 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1148 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
1149 second initializer line for the have_* variables. Initialize
1150 have_fpu to 0 instead of 1.
1152 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1154 * arch/ppc-linux-common.c (ppc_linux_match_description):
1155 Parenthesize tdesc assignements and indent them properly.
1157 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1159 * ppc-linux-nat.c (fetch_register): Change if statement to else
1161 (store_register): Likewise.
1163 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1165 * rs6000-tdep.c: Remove reggroups.h include.
1166 (rs6000_pseudo_register_reggroup_p): Remove.
1167 (rs6000_gdbarch_init): Remove call to
1168 set_tdesc_pseudo_register_reggroup_p.
1170 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1172 * reggroups.c (default_register_reggroup_p): Return true for
1173 decfloat registers and float_reggroup.
1175 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1177 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
1178 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
1179 ppc_linux_collect_vrregset by regcache_collect_regset.
1181 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1183 * linux-tdep.c (linux_collect_regset_section_cb): Use
1184 std::vector<gdb_byte> instead of char * and malloc for buf.
1187 2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1189 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
1190 symtab_start instead of always using language_unknown.
1192 2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
1194 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
1195 READ_P parameter, catch and ignore register access errors from
1196 either the old or new MISA location.
1197 (riscv_has_feature): Update call to riscv_read_misa_reg.
1199 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1201 * python/py-function.c (convert_values_to_python): Return
1202 gdbpy_ref<>. Add header comment.
1203 (fnpy_call): Adjust.
1205 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1207 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
1208 (cmdpy_completer_handle_brkchars): Adjust.
1209 (cmdpy_completer): Adjust.
1211 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1213 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1214 Pass correct regnum to raw_supply_zeroed.
1216 2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
1218 * regcache.c (cooked_read_test): Add CSKY to the list of
1219 architectures with a save_reggroup
1221 2018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1224 * infrun.c (follow_exec): In the follow_exec_mode_new case,
1225 transfer terminal state from old new new inferior.
1226 * terminal.h (swap_terminal_info): New function.
1227 * inflow.c (swap_terminal_info): New function.
1229 2018-10-23 Tom Tromey <tom@tromey.com>
1231 * record-btrace.c (get_thread_current_frame_id): Rename from
1232 get_thread_current_frame. Return a frame_id.
1233 (record_btrace_start_replaying): Update.
1235 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1237 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
1240 2018-10-23 Joel Brobecker <brobecker@adacore.com>
1242 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
1243 have_nonsteppable_watchpoint attribute to 1.
1245 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1247 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
1249 (struct register_alias): Rename to...
1250 (struct riscv_register_alias): ...this, and update comment.
1251 (riscv_register_aliases): Update type, and alias names. Remove
1252 CSR names from this list.
1253 (riscv_register_name): Use riscv_gdb_reg_names for int and float
1254 register names. Add an extra assertion.
1255 (riscv_is_regnum_a_named_csr): New function.
1256 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
1258 2018-10-23 John Darrington <john@darrington.wattle.id.au>
1260 * configure.tgt: Add configuration for s12z.
1261 * s12z-tdep.c: New file.
1262 * NEWS: Mention new target.
1264 2018-10-22 Jim Wilson <jimw@sifive.com>
1266 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
1267 FP reg smaller than FP reg size, and fill with -1 instead of 0.
1269 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
1270 (riscv_register_type): Use them.
1271 (riscv_print_one_register_info): Handle union of floats same as float.
1272 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
1273 riscv_fpreg_q_type fields.
1275 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
1277 * gdbarch.sh (gdbarch_num_cooked_regs): New.
1278 * gdbarch.h: Re-generate.
1279 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
1280 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1281 * eval.c (evaluate_subexp_standard): Likewise.
1282 * findvar.c (value_of_register): Likewise.
1283 (value_of_register_lazy): Likewise.
1284 (address_from_register): Likewise.
1285 * frame.c (get_frame_register_bytes): Likewise.
1286 * gdbarch-selftests.c (register_to_value_test): Likewise.
1287 * h8300-tdep.c (h8300_register_type): Likewise.
1288 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
1289 (i386_svr4_reg_to_regnum): Likewise.
1290 * infcmd.c (default_print_registers_info): Likewise.
1291 (registers_info): Likewise.
1292 (print_vector_info): Likewise.
1293 (default_print_float_info): Likewise.
1294 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1295 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
1296 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
1297 (mi_cmd_data_list_changed_registers): Likewise.
1298 (mi_cmd_data_list_register_values): Likewise.
1299 (mi_cmd_data_write_register_values): Likewise.
1300 (mi_cmd_trace_frame_collected): Likewise.
1301 * mips-tdep.c (print_gp_register_row): Likewise.
1302 (mips_print_registers_info): Likewise.
1303 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
1304 * regcache.c (init_regcache_descr): Likewise.
1305 (register_size): Likewise.
1306 (register_dump::dump): Likewise.
1307 (cooked_read_test): Likewise.
1308 (cooked_write_test): Likewise.
1309 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1310 (rs6000_gdbarch_init): Likewise.
1311 * stabsread.c (stab_reg_to_regnum): Likewise.
1312 * stack.c (info_frame_command): Likewise.
1313 * target-descriptions.c (tdesc_register_name): Likewise.
1314 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1315 * tui/tui-regs.c (tui_show_register_group): Likewise.
1316 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1317 (user_reg_map_regnum_to_name): Likewise.
1318 (value_of_user_reg): Likewise.
1319 (maintenance_print_user_registers): Likewise.
1320 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
1321 (xtensa_register_name): Likewise.
1322 (xtensa_register_type): Likewise.
1323 (xtensa_reg_to_regnum): Likewise.
1324 (xtensa_pseudo_register_read): Likewise.
1325 (xtensa_pseudo_register_write): Likewise.
1327 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1329 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
1330 correctly-sized buffer with raw_read.
1331 (amd64_pseudo_register_write): Use correctly-sized buffer for
1334 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1336 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
1337 in add_prefix_cmd of set print type.
1339 2018-10-19 Tom Tromey <tom@tromey.com>
1342 * NEWS: Mention tabset deprecation.
1343 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
1344 (update_tab_width): New function.
1345 (tui_set_tab_width, tui_show_tab_width): New functions.
1346 (tui_set_tab_width_command): Use update_tab_width.
1347 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
1348 Add new "set tui tab-width" command.
1349 * tui/tui-source.c (tui_set_source_content): Update.
1350 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1351 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
1353 (tui_tab_width): Declare.
1354 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
1355 (tui_set_default_tab_len): Remove.
1357 2018-10-19 Tom Tromey <tom@tromey.com>
1359 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
1360 (key_is_backspace, tui_getc): Don't declare.
1361 * tui/tui-io.c (key_is_start_sequence): Now static.
1362 (key_is_end_sequence, key_is_backspace): Remove.
1363 (tui_getc): Now static.
1365 2018-10-19 Tom Tromey <tom@tromey.com>
1367 * symfile.c (reread_symbols): Clear "static_links".
1369 2018-10-19 Alan Hayward <alan.hayward@arm.com>
1371 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
1373 (aarch64_linux_sigframe_init): Extra boundary checks.
1375 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
1377 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
1378 the possibly non-existent tdesc type 'vec128', but the type of raw
1379 register v16 instead.
1381 2018-10-19 Gary Benson <gbenson@redhat.com>
1383 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
1385 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
1388 * cli/cli-dump.c (restore_binary_file): Check if "file" is
1391 2018-10-17 Paul Koning <paul_koning@dell.com>
1393 * charset.c (convert_between_encodings): Fix unsigned overflow.
1395 2018-10-17 John Baldwin <jhb@FreeBSD.org>
1397 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
1398 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
1399 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
1400 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1402 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
1403 and fbsd_info_proc_mappings_header.
1404 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
1405 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1408 2018-10-17 Joel Brobecker <brobecker@adacore.com>
1410 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
1413 2018-10-15 Tom Tromey <tom@tromey.com>
1415 * tui/tui.c (strcat_to_buf): Remove casts.
1416 * tui/tui-winsource.c (tui_show_source_line)
1417 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
1418 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
1419 * tui/tui-windata.c (tui_first_data_item_displayed)
1420 (tui_delete_data_content_windows, tui_erase_data_content)
1421 (tui_display_all_data, tui_display_data_from)
1422 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
1423 * tui/tui-win.c (tui_set_win_height)
1424 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
1426 * tui/tui-win.c (tui_resize_all): Remove casts.
1427 (tui_scroll_backward_command, tui_set_focus)
1428 (tui_set_tab_width_command): Likewise.
1429 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
1430 * tui/tui-regs.c (tui_show_register_group): Remove cast.
1431 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
1432 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
1433 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
1436 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
1438 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
1439 AArch64/ARM maintainer.
1441 2018-10-11 Gary Benson <gbenson@redhat.com>
1443 * interps.h (interp::m_name): Make private and mutable.
1444 * interps.c (interp::~interp): Free m_name.
1446 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1447 Simon Marchi <simark@simark.ca>
1449 * README (`configure' options): Add documentation for new
1450 "--enable-unit-tests" option.
1451 * acinclude.m4: Include "selftest.m4".
1452 * configure: Regenerate.
1453 * configure.ac: Use "GDB_AC_SELFTEST".
1454 * maint.c (maintenance_selftest): Update message informing
1455 that selftests have been disabled.
1456 (maintenance_info_selftests): Likewise.
1457 * selftest.m4: New file.
1459 2018-10-10 Gary Benson <gbenson@redhat.com>
1461 * remote.c (remote_target::remote_send_printf): Add
1462 missing va_end found by Coverity.
1464 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
1466 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
1468 2018-10-09 Tom Tromey <tom@tromey.com>
1470 * configure: Rebuild.
1471 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
1472 * NEWS: Update --enable-ubsan documentation.
1474 2018-10-09 Gary Benson <gbenson@redhat.com>
1476 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
1479 2018-10-08 Tom Tromey <tom@tromey.com>
1481 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
1483 (riscv_fbsd_init_abi): Likewise.
1485 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
1486 * valops.c (value_struct_elt_for_reference): Rename local variable
1487 to work around the shadowing a previous local warning.
1489 2018-10-08 John Baldwin <jhb@FreeBSD.org>
1491 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
1492 * NEWS: Mention new FreeBSD/riscv native configuration.
1493 * configure.host: Add riscv*-*-freebsd*.
1494 * configure.nat: Likewise.
1495 * riscv-fbsd-nat.c: New file.
1497 2018-10-08 John Baldwin <jhb@FreeBSD.org>
1499 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
1500 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
1501 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
1502 * NEWS: Mention new FreeBSD/riscv target.
1503 * configure.tgt: Add riscv*-*-freebsd*.
1504 * riscv-fbsd-tdep.c: New file.
1505 * riscv-fbsd-tdep.h: New file.
1507 2018-10-08 John Baldwin <jhb@FreeBSD.org>
1509 * regcache.h (struct regcache_map_entry): Note that this type can
1510 be used with traditional frame caches.
1511 * trad-frame.c (trad_frame_set_reg_regmap): New.
1512 * trad-frame.h (trad_frame_set_reg_regmap): New.
1514 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
1517 * valops.c (get_virtual_base_offset): New function.
1518 (value_struct_elt_for_reference): Use it to get virtual base offset
1519 and add it in calculating class member address.
1521 2018-10-08 John Darrington <john@darrington.wattle.id.au>
1523 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
1524 (check_producer): Check if the producer is codewarrior.
1525 (producer_is_codewarrior): New function.
1526 (lnp_state_machine::record_line): Ignore is_stmt flag for records
1527 produced by codewarrior.
1528 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
1530 2018-10-06 Tom Tromey <tom@tromey.com>
1533 * python/py-inferior.c: Add "architecture" entry.
1534 (infpy_architecture): New function.
1536 2018-10-06 Tom Tromey <tom@tromey.com>
1539 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
1540 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
1541 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
1542 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
1544 2018-10-06 Tom Tromey <tom@tromey.com>
1547 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
1548 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
1549 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
1552 2018-10-06 Tom Tromey <tom@tromey.com>
1554 * python/py-breakpoint.c (bppy_get_location): Handle a
1555 bp_breakpoint without a location.
1557 2018-10-06 Tom Tromey <tom@tromey.com>
1559 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
1560 (_RegEx): Reformat help text.
1561 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
1562 (AnyCallerIs, AnyCallerMatches): Reformat help text.
1563 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
1565 * python/lib/gdb/command/xmethods.py (InfoXMethod)
1566 (EnableXMethod, DisableXMethod): Remove help indentation.
1567 Capitalize meta-syntactic variables.
1568 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
1569 (EnableUnwinder, DisableUnwinder): Remove help indentation.
1570 Capitalize meta-syntactic variables.
1571 * python/lib/gdb/command/explore.py (ExploreCommand)
1572 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
1573 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
1574 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
1575 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
1576 Remove help indentation.
1577 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
1578 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
1579 (DisableFrameFilter, SetFrameFilterPriority)
1580 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
1582 2018-10-06 Tom Tromey <tom@tromey.com>
1585 * tui/tui-io.c (gdb_wgetch): New function.
1586 (tui_mld_getc, tui_getc): Use it.
1588 2018-10-05 Tom Tromey <tom@tromey.com>
1590 * sol-thread.c (sol_thread_target::wait): Rename inner
1593 2018-10-04 Tom Tromey <tom@tromey.com>
1595 * configure: Rebuild.
1596 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
1598 2018-10-04 Tom Tromey <tom@tromey.com>
1600 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
1601 declaration of "block".
1603 2018-10-04 Tom Tromey <tom@tromey.com>
1605 * common/filestuff.c (fdwalk): Remove inner declaration of
1608 2018-10-04 Tom Tromey <tom@tromey.com>
1610 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
1611 "structs_addr" and hoist declaration.
1613 2018-10-04 Tom Tromey <tom@tromey.com>
1615 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
1618 2018-10-04 Tom Tromey <tom@tromey.com>
1620 * mdebugread.c (parse_partial_symbols): Use std::string.
1622 2018-10-04 Tom Tromey <tom@tromey.com>
1624 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
1625 * p-valprint.c (pascal_val_print): Split inner "i" variable.
1626 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
1628 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
1630 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
1631 * varobj.c (varobj_update): Rename inner "newobj",
1633 * valprint.c (generic_emit_char): Rename inner "buf".
1634 * valops.c (find_overload_match): Rename inner "temp".
1635 (value_struct_elt_for_reference): Declare "v" in more inner
1637 * v850-tdep.c (v850_push_dummy_call): Rename "len".
1638 * unittests/array-view-selftests.c (run_tests): Rename inner
1640 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
1642 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
1643 "tsv" in more inner scope.
1644 (print_one_static_tracepoint_marker): Rename inner
1646 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
1647 (tic6x_push_dummy_call): Don't redeclare "addr".
1648 * target-float.c: Declare "dto" lower.
1649 * symtab.c (lookup_local_symbol): Rename inner "sym".
1650 (find_pc_sect_line): Rename inner "pc".
1651 * stack.c (print_frame): Don't redeclare "gdbarch".
1652 (return_command): Rename inner "gdbarch".
1653 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
1655 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
1657 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
1658 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
1660 * remote.c (remote_target::update_thread_list): Don't redeclare
1662 (remote_target::process_initial_stop_replies): Rename inner
1664 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
1665 (remote_target::wait_as): Don't redeclare "stop_reply".
1666 (remote_target::get_thread_local_address): Rename inner
1668 (remote_target::get_tib_address): Likewise.
1670 * regcache.c (cooked_read_test): Rename "regnum".
1671 * record-btrace.c (cmd_record_btrace_start): Rename inner
1673 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
1675 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
1677 (ppu2spu_sniffer): Rename inner "buf".
1678 * parse.c (operator_check_standard): Rename inner "type",
1680 * p-valprint.c (pascal_val_print): Introduce new scope for
1681 "low_bound", "high_bound".
1682 * p-exp.y (yylex): Declare "i" in loop header.
1683 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
1684 Lower declaration of "s".
1685 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
1687 (nios2_push_dummy_call): Rename "len".
1688 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
1690 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
1691 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
1692 (linux_xfer_osdata_modules): Likewise.
1693 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
1694 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1695 (mips_o64_push_dummy_call): Likewise.
1696 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
1698 * mi/mi-main.c (list_available_thread_groups): Rename inner
1700 (mi_cmd_data_read_memory): Rename inner "opts".
1701 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
1703 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
1704 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
1706 (parse_partial_symbols): Rename inner "pst", "p", "name"
1707 * main.c (captured_main_1): Rename inner "i"s.
1708 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
1710 * linux-tdep.c (linux_info_proc): Rename inner "filename".
1711 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
1712 * infrun.c (handle_no_resumed): Don't redeclare "thread".
1713 (handle_signal_stop): Rename inner "gdbarch".
1714 (handle_command): Declare "signum" in loop header.
1715 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
1717 (examine_prologue): Rename inner "sol" and "sof".
1718 (ia64_extract_return_value): Rename inner "val". Declare another
1719 "val" in a more inner scope.
1720 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
1722 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
1724 * findvar.c (default_read_var_value): Don't redeclare "addr".
1725 * f-exp.y (yylex): Declare "i" in loop header.
1726 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
1727 Rename inner "type", "expect_type".
1728 (evaluate_subexp_for_sizeof): Rename inner "pc".
1729 * elfread.c (elf_symfile_read): Rename inner "abfd".
1730 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
1732 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
1733 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
1734 (dwarf_decode_line_header): Rename inner "lh".
1735 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
1736 "offset". Declare "i" in loop header.
1737 (disassemble_dwarf_expression): Rename inner "addr_size".
1738 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
1740 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
1741 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
1742 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
1743 "inner_list_emitter".
1744 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
1745 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
1746 declaration in a block.
1747 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
1748 * cp-valprint.c (cp_print_value_fields): Don't redeclare
1749 "obstack_final_size".
1750 * cp-support.c (inspect_type): Declare "i" in loop header.
1751 * compile/compile.c (compile_instance::insert_symbol_error):
1753 * common/agent.c (agent_run_command): Remove inner "ret"
1755 * coffread.c (coff_symfile_read): Rename inner "name".
1756 (coff_symfile_read): Rename inner "abfd".
1757 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
1758 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
1760 * c-exp.y (lex_one_token): Move "len" declaration lower.
1761 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
1763 (create_exception_master_breakpoint): Likewise. Don't redeclare
1765 (watch_command_1): Declare "mark" later.
1766 (clear_command): Don't shadow "a" or "b".
1767 (delete_command): Rename inner "b".
1768 (delete_trace_command): Likewise.
1769 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
1771 (arm_gdbarch_init): Remove inner "e_flags".
1772 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
1773 "offset" in inner blocks.
1775 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
1777 * dwarf-index-write.c (file_write): Don't write if the vector is
1780 2018-10-05 Tom de Vries <tdevries@suse.de>
1782 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
1783 PyArg_ParseTuple call.
1785 2018-10-05 Tom de Vries <tdevries@suse.de>
1787 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
1788 PyArg_ParseTuple call.
1790 2018-10-04 Joel Brobecker <brobecker@adacore.com>
1792 * psymtab.c (recursively_search_psymtabs): Reformat parameters
1793 to avoid exceeding 80 characters per line limit.
1795 2018-10-04 Tom Tromey <tom@tromey.com>
1797 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1798 (reread_symbols): Update.
1799 * complaints.h (clear_complaints): Remove argument.
1800 * complaints.c (enum complaint_series): Remove.
1801 (series): Remove global.
1802 (complaint_internal): Update.
1803 (clear_complaints): Remove argument.
1805 2018-10-04 Tom Tromey <tom@tromey.com>
1807 * symfile.c (symbol_file_add_with_addrs): Do not print "no
1808 debugging symbols" message if there is a separate debug objfile.
1810 2018-10-04 Tom Tromey <tom@tromey.com>
1813 * symfile.c (symbol_file_add_with_addrs): Update output.
1814 * psymtab.c (require_partial_symbols): Update output.
1816 2018-10-04 Tom Tromey <tom@tromey.com>
1819 * complaints.c: Emit \n.
1821 2018-10-04 Tom Tromey <tom@tromey.com>
1823 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
1824 (separate_debug_file_exists, find_separate_debug_file)
1825 (add_symbol_file_command, reread_symbols, allocate_symtab)
1826 (allocate_compunit_symtab): Use filtered printing, not
1828 * psymtab.c (require_partial_symbols, dump_psymtab)
1829 (allocate_psymtab): Use filtered printing, not unfiltered.
1831 2018-10-04 Tom Tromey <tom@tromey.com>
1833 * complaints.c (complaint_internal): Correctly check complaint
1836 2018-10-04 Tom Tromey <tom@tromey.com>
1838 * complaints.h (struct complaints): Remove declaration.
1839 * complaints.c (clear_complaints): Remove an unused variable.
1841 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1843 * MAINTAINERS (Write After Approval): Add self.
1845 2018-10-03 Tom Tromey <tom@tromey.com>
1847 * guile/scm-value.c (gdbscm_value_to_string): Initialize
1849 * coffread.c (coff_symtab_read): Initialize "newobj".
1851 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
1853 * dwarf2read.c (read_func_scope): Remove struct keyword in
1856 2018-10-03 Tom Tromey <tom@tromey.com>
1858 * README: Mention --enable-ubsan.
1859 * NEWS: Mention --enable-ubsan.
1860 * acinclude.m4: Include sanitize.m4.
1861 * configure: Rebuild.
1862 * configure.ac: Call AM_GDB_UBSAN.
1863 * sanitize.m4: New file.
1865 2018-10-03 Tom Tromey <tom@tromey.com>
1867 * expression.h (enum exp_opcode): Use uint8_t as base type.
1868 * expprint.c (op_name): Handle invalid opcodes.
1870 2018-10-03 Tom Tromey <tom@tromey.com>
1872 * parse.c (prefixify_expression): Add assert.
1873 (parse_exp_in_context_1): Throw exception if the expression is
1876 2018-10-03 Tom Tromey <tom@tromey.com>
1878 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
1880 2018-10-03 Tom Tromey <tom@tromey.com>
1882 * c-exp.y (parse_number): Work in unsigned. Remove casts.
1884 2018-10-03 Tom Tromey <tom@tromey.com>
1886 * dwarf2read.c (read_subrange_type): Make "negative_mask"
1889 2018-10-03 Tom Tromey <tom@tromey.com>
1891 * findvar.c (extract_integer): Do work in an unsigned type.
1893 2018-10-03 Tom Tromey <tom@tromey.com>
1895 * common/enum-flags.h (enum_flags::operator~): Add static assert.
1896 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
1898 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
1899 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
1901 * c-lang.h (enum c_string_type_values): Use unsigned as base
1903 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
1905 2018-10-03 Tom Tromey <tom@tromey.com>
1907 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
1908 <~dwarf2_frame_state_reg_info>: Update.
1909 <dwarf2_frame_state_reg_info>: Update.
1910 <alloc_regs>: Add assertion. Update.
1911 <reg>: Now a std::vector.
1914 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
1915 (execute_cfa_program_test, dwarf2_frame_cache): Update.
1917 2018-10-03 Tom Tromey <tom@tromey.com>
1919 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
1921 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1923 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
1925 2018-10-02 Tom Tromey <tom@tromey.com>
1927 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
1929 2018-10-02 John Darrington <john@darrington.wattle.id.au>
1931 * NEWS: Mention changed commands.
1932 * ser-uds.c: New file.
1933 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
1934 * configure: Regenerate.
1935 * Makefile.in: Add new file.
1936 * serial.c (serial_open): Check if filename is a socket
1937 and lookup the appropriate interface accordingly.
1939 2018-10-01 Alan Hayward <alan.hayward@arm.com>
1941 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
1943 (AARCH64_EXTRA_MAGIC): Likewise.
1944 (AARCH64_FPSIMD_MAGIC): Likewise.
1945 (AARCH64_SVE_MAGIC): Likewise.
1946 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
1947 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
1948 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
1949 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
1950 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
1951 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
1952 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
1953 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
1954 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
1955 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
1956 (read_aarch64_ctx): Add function.
1957 (aarch64_linux_sigframe_init): Detect FP registers.
1959 2018-10-01 Alan Hayward <alan.hayward@arm.com>
1961 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to 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.
1967 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
1968 (AARCH64_D0_REGNUM): Likewise.
1969 (AARCH64_S0_REGNUM): Likewise.
1970 (AARCH64_H0_REGNUM): Likewise.
1971 (AARCH64_B0_REGNUM): Likewise.
1972 (AARCH64_SVE_V0_REGNUM): Likewise.
1974 2018-10-01 Gary Benson <gbenson@redhat.com>
1976 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
1977 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
1978 prfpregset_t instead of gdb_prfpregset_t.
1979 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
1980 * configure, config.in: Rebuild.
1982 2018-10-01 Gary Benson <gbenson@redhat.com>
1984 * common/gdb_proc_service.h: New file, factored out from...
1985 * gdb_proc_service.h: Moved common code to the above file.
1986 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
1988 2018-10-01 Gary Benson <gbenson@redhat.com>
1990 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
1991 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
1993 2018-10-01 Gary Benson <gbenson@redhat.com>
1995 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
1996 (AC_CHECK_HEADERS): Check for linux/elf.h.
1997 * configure, config.in: Rebuild.
1998 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
1999 doesn't define elf_fpregset_t.
2001 2018-10-01 Gary Benson <gbenson@redhat.com>
2003 * gdb_proc_service.h: Whitespace change.
2005 2018-10-01 Tom Tromey <tom@tromey.com>
2007 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
2008 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
2009 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
2011 2018-10-01 Tom Tromey <tom@tromey.com>
2013 * README: Minor change.
2015 2018-09-30 Pedro Alves <palves@redhat.com>
2017 * darwin-nat-info.c (darwin_debug_regions_recurse)
2018 (info_mach_exceptions_command): Remove unused local variables.
2019 * darwin-nat.c (darwin_decode_notify_message)
2020 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
2021 (darwin_stop_inferior, darwin_setup_exceptions)
2022 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
2023 (darwin_nat_target::attach, darwin_nat_target::detach)
2024 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
2026 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
2029 2018-09-29 Tom Tromey <tom@tromey.com>
2031 * README: Remove some leftover text.
2033 2018-09-29 Tom Tromey <tom@tromey.com>
2035 * PROBLEMS: Rewrite.
2038 2018-09-28 John Baldwin <jhb@FreeBSD.org>
2040 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
2041 case with explicit breakpoint kind.
2042 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
2043 'additional_info' and related logic.
2044 (riscv_debug_breakpoints): New variable.
2045 (riscv_breakpoint_kind_from_pc): Use the length of the existing
2046 instruction to determine the breakpoint kind.
2047 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
2048 flag. Update description of 'set/show riscv
2049 use-compressed-breakpoints' flag.
2051 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
2053 (NEWS): Mention changes to frame related commands.
2054 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
2055 (add_prefix_cmd_suppress_notification): New function.
2056 (add_com_suppress_notification): Call
2057 add_cmd_suppress_notification.
2058 * command.h (add_cmd_suppress_notification): Declare.
2059 (add_prefix_cmd_suppress_notification): Declare.
2060 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
2061 (parse_frame_specification): Moved from stack.c, with
2062 simplification to handle a single argument.
2063 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
2064 switch to the selected frame. Add a header comment.
2065 * stack.c: Remove 'safe-ctype.h' include.
2066 (find_frame_for_function): Add declaration.
2067 (find_frame_for_address): New function.
2068 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
2069 (frame_selection_by_function_completer): New function.
2070 (info_frame_command): Rename to...
2071 (info_frame_command_core): ...this, and update parameter types.
2072 (select_frame_command): Rename to...
2073 (select_frame_command_core): ...this, and update parameter types.
2074 (frame_command): Rename to...
2075 (frame_command_core): ...this, and update parameter types.
2076 (class frame_command_helper): New class to wrap implementations of
2077 frame related sub-commands.
2078 (frame_apply_cmd_list): New static global.
2079 (frame_cmd_list): Make static.
2080 (select_frame_cmd_list): New global for sub-commands.
2081 (info_frame_cmd_list): New global for sub-commands.
2082 (_initialize_stack): Register sub-commands for 'frame',
2083 'select-frame', and 'info frame'. Update 'frame apply' commands
2084 to use frame_apply_cmd_list. Move function local static
2085 frame_apply_list to file static frame_apply_cmd_list for
2087 * stack.h (select_frame_command): Delete declarationn.
2088 (select_frame_for_mi): Declare new function.
2090 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
2092 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
2093 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
2096 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
2098 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
2100 2018-09-26 Tom Tromey <tom@tromey.com>
2102 * valops.c (auto_abandon): Remove dead code.
2104 2018-09-26 Tom Tromey <tom@tromey.com>
2106 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
2108 2018-09-24 Tom Tromey <tom@tromey.com>
2110 * common/pathstuff.c (get_standard_cache_dir): Make
2111 "xdg_cache_home" and "home" const.
2112 * top.c (init_history): Make "tmpenv" const.
2113 * main.c (get_init_files): Make "homedir" const.
2115 2018-09-23 Tom Tromey <tom@tromey.com>
2118 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
2120 2018-09-23 Tom Tromey <tom@tromey.com>
2122 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
2123 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
2124 * python/python-internal.h (gdbpy_handle_exception): Declare.
2125 * python/py-utils.c (gdbpy_handle_exception): New function.
2127 2018-09-23 Tom Tromey <tom@tromey.com>
2130 * python/py-type.c (typy_template_argument): Check for negative
2133 2018-09-23 Tom Tromey <tom@tromey.com>
2136 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
2138 2018-09-23 Tom Tromey <tom@tromey.com>
2141 * python/py-value.c (valpy_int): Allow conversion from pointer
2144 2018-09-23 Tom Tromey <tom@tromey.com>
2147 * python/py-value.c (valpy_int): Respect type sign.
2149 2018-09-23 Tom Tromey <tom@tromey.com>
2152 * python/py-value.c (valpy_float): Allow conversions from int or
2154 (valpy_int, valpy_long): Allow conversions from float.
2156 2018-09-23 Tom Tromey <tom@tromey.com>
2158 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
2159 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
2161 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2163 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
2165 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
2167 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
2169 * windows-nat.c (windows_nat_target::wait): Remove a spurious
2170 target_terminal::ours().
2172 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
2174 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
2177 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
2179 * breakpoint.c (update_inserted_breakpoint_locations): Remove
2180 redundant condition.
2182 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2184 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
2186 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
2187 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
2188 * sol-thread.c (ps_pdmodel): Don't guard definition.
2190 * procfs.c: Fix formatting.
2192 * procfs.c (sysset_t_alloc): Remove.
2193 (create_procinfo): Use XNEW instead of sysset_t_alloc.
2194 (procfs_debug_inferior): Likewise.
2195 (procfs_set_exec_trap): Likewise.
2196 (proc_set_traced_sysentry): Don't allocate argp dynamically.
2197 (proc_set_traced_sysexit): Likewise.
2199 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
2200 (dead_procinfo): Likewise.
2201 (proc_warn): Likewise.
2202 (proc_error): Likewise.
2203 (proc_get_LDT_entry): Likewise.
2204 (do_attach): Likewise.
2205 (procfs_target::pid_to_str): Likewise.
2206 (iterate_over_mappings): Likewise.
2208 * procfs.c (create_procinfo): Fix ARI warning.
2209 (proc_get_status): Likewise.
2210 (proc_stop_process): Likewise.
2211 (proc_run_process): Likewise.
2212 (proc_kill): Likewise.
2213 (proc_get_LDT_entry): Likewise.
2214 (procfs_find_LDT_entry): Likewise.
2215 (proc_update_threads): Likewise.
2216 (proc_iterate_over_threads): Likewise.
2217 (do_attach): Likewise.
2218 (procfs_xfer_memory): Likewise.
2219 (invalidate_cache): Likewise.
2220 (procfs_target::resume): Likewise.
2221 (procfs_init_inferior): Likewise.
2222 (procfs_set_exec_trap): Likewise.
2223 (procfs_target::thread_alive): Likewise.
2224 (procfs_target::pid_to_exec_file): Likewise.
2225 (iterate_over_mappings): Likewise.
2226 (procfs_target::make_corefile_notes): Likewise.
2227 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
2229 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
2230 (procfs_find_LDT_entry): Likewise.
2231 * sol-thread.c (ps_lgetLDT): Likewise.
2233 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2236 * procfs.c (procfs_target): Declare pid_to_exec_file.
2237 (procfs_target::pid_to_exec_file): New.
2239 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2241 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
2243 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
2244 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
2246 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2248 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
2249 (supply_fpregset, fill_fpregset): Move ...
2250 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
2251 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
2252 Remove references to ioctl-based procfs.
2253 Include <sys/reg.h>.
2254 Remove PR_MODEL_NATIVE guards.
2255 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
2256 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
2258 2018-09-19 Xavier Roirand <roirand@adacore.com>
2261 * solib-darwin.c (darwin_get_dyld_bfd): New function.
2262 (darwin_solib_get_all_image_info_addr_at_init): Update call.
2263 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
2265 2018-09-19 John Baldwin <jhb@FreeBSD.org>
2267 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
2268 (fbsd_print_sockaddr_in6): Likewise.
2270 2018-09-19 Richard Bunt <richard.bunt@arm.com>
2271 Chris January <chris.january@arm.com>
2273 * eval.c (skip_undetermined_arglist): Skip argument list helper.
2274 (evaluate_subexp_standard): Return a dummy type when
2275 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
2276 OP_F77_UNDETERMINED_ARGLIST case.
2277 * expression.h (enum noside): Update comment.
2279 2018-09-19 George Vasick <george.vasick@oracle.com>
2281 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
2283 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
2284 April Chin <april.chin@oracle.com>
2285 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2287 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
2289 (create_procinfo): Print pids in /proc without leading zeros.
2291 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
2293 * nios2-tdep.c (nios2_gcc_target_options): New.
2294 (nios2_gdb_arch_init): Install new hook.
2296 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
2298 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
2300 * update-gnulib.sh: Apply patch.
2301 * configure: Re-generate.
2303 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2305 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
2306 description. Make "info proc" command descriptions more
2309 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2311 * NEWS: Mention 'info proc files' command.
2313 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2315 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
2316 descriptors for IP_FILES and IP_ALL.
2318 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2320 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
2321 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
2322 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
2323 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
2324 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
2325 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
2326 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
2327 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
2328 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
2329 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
2330 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
2331 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
2332 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
2333 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
2334 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
2335 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
2336 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
2337 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
2338 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
2339 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
2340 (struct fbsd_sockaddr_un): New types.
2341 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
2342 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
2343 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
2344 (fbsd_core_info_proc_files): New functions.
2345 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
2347 * fbsd-tdep.h (fbsd_info_proc_files_header)
2348 (fbsd_info_proc_files_entry): New.
2350 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2352 * defs.h (enum info_proc_what) [IP_FILES]: New value.
2353 * infcmd.c (info_proc_cmd_files): New function.
2354 (_initialize_infcmd): Register 'info proc files' command.
2356 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2358 * gnulib/aclocal-m4-deps.mk: Re-generate.
2359 * gnulib/aclocal.m4: Re-generate.
2360 * gnulib/config.in: Re-generate.
2361 * gnulib/configure: Re-generate.
2362 * gnulib/import/Makefile.am: Re-generate.
2363 * gnulib/import/Makefile.in: Re-generate.
2364 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2365 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2366 * gnulib/import/arpa_inet.in.h: New file.
2367 * gnulib/import/inet_ntop.c: New file.
2368 * gnulib/import/m4/arpa_inet_h.m4: New file.
2369 * gnulib/import/m4/inet_ntop.m4: New file.
2370 * gnulib/import/m4/netinet_in_h.m4: New file.
2371 * gnulib/import/m4/socklen.m4: New file.
2372 * gnulib/import/m4/sockpfaf.m4: New file.
2373 * gnulib/import/m4/stdalign.m4: New file.
2374 * gnulib/import/m4/sys_uio_h.m4: New file.
2375 * gnulib/import/netinet_in.in.h: New file.
2376 * gnulib/import/stdalign.in.h: New file.
2377 * gnulib/import/sys_socket.c: New file.
2378 * gnulib/import/sys_socket.in.h: New file.
2379 * gnulib/import/sys_uio.in.h: New file.
2380 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
2383 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2385 * gnulib/aclocal-m4-deps.mk: New file.
2386 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
2389 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2391 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
2394 2018-09-18 Tom Tromey <tom@tromey.com>
2396 * compile/compile-object-load.c (struct
2397 link_hash_table_cleanup_data): Add constructor and destructor.
2398 Use DISABLE_COPY_AND_ASSIGN.
2399 (~link_hash_table_cleanup_data): Rename from
2400 link_hash_table_free. Now a destructor.
2401 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
2403 2018-09-18 Tom Tromey <tom@tromey.com>
2405 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2406 * compile/compile-object-load.c (struct munmap_list): Move to
2408 (munmap_list::add): Rename from munmap_list_add; rewrite.
2409 (munmap_list::~munmap_list): Rename from munmap_list_free.
2410 (munmap_listp_free_cleanup): Remove.
2411 (compile_object_load): Update.
2412 * compile/compile-object-load.h (struct munmap_list): Move from
2413 compile-object-load.c. Rewrite.
2415 2018-09-18 Alan Hayward <alan.hayward@arm.com>
2417 * aarch64-tdep.c (pass_in_v): Use register size.
2418 (aarch64_extract_return_value): Likewise.
2419 (aarch64_store_return_value): Likewise.
2421 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2423 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
2426 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2428 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
2429 Fix short help line.
2431 2018-09-17 Tom Tromey <tom@tromey.com>
2434 * configure: Rebuild.
2435 * configure.ac: Conditionally use -DNDEBUG for Python.
2437 2018-09-17 Tom Tromey <tom@tromey.com>
2439 * configure: Rebuild.
2440 * configure.ac: Use gmp as a library dependency when checking for
2443 2018-09-17 Pedro Alves <palves@redhat.com>
2445 * python/py-inferior.c (find_inferior_object): Delete.
2447 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
2449 * compile/compile-cplus-types.c
2450 (compile_cplus_instance::enter_scope): Don't use new_scope after
2453 2018-09-17 Tom Tromey <tom@tromey.com>
2455 * common/pathstuff.c (get_standard_cache_dir): Use
2456 ~/Library/Caches on macOS.
2457 * common/pathstuff.h (get_standard_cache_dir): Update comment.
2459 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
2462 * breakpoint.c (commands_cmd_element): New.
2463 (_initialize_breakpoint): Assign commands_cmd_element.
2464 * breakpoint.h (commands_cmd_element): New.
2465 * cli/cli-script.c (while_cmd_element, if_command,
2466 define_cmd_element): New.
2467 (command_name_equals): Remove.
2468 (process_next_line): Compare commands by pointer, not by name.
2469 (_initialize_cli_script): Assign the various cmd_list_element
2471 * compile/compile.c (compile_cmd_element): New.
2472 (_initialize_compile): Assign compile_cmd_element.
2473 * compile/compile.h (compile_cmd_element): New.
2474 * guile/guile.c (guile_cmd_element): New.
2475 (install_gdb_commands): Assign guile_cmd_element.
2476 * guile/guile.h (guile_cmd_element): New.
2477 * python/python.c (python_cmd_element): New.
2478 (_initialize_python): Assign python_cmd_element.
2479 * python/python.h (python_cmd_element): New.
2480 * tracepoint.c (while_stepping_cmd_element): New.
2481 (_initialize_tracepoint): Assign while_stepping_cmd_element.
2482 * tracepoint.h (while_stepping_cmd_element): New.
2484 2018-09-17 Tom Tromey <tom@tromey.com>
2486 * infrun.c (save_infcall_suspend_state): Return
2487 infcall_suspend_state_up.
2488 (save_infcall_control_state): Return infcall_control_state_up.
2489 * inferior.h (save_infcall_suspend_state)
2490 (save_infcall_control_state): Declare later. Return unique
2493 2018-09-17 Tom Tromey <tom@tromey.com>
2495 * infrun.c (struct stop_context): Declare constructor,
2496 destructor, "changed" method.
2497 (stop_context::stop_context): Rename from save_stop_context.
2498 (stop_context::~stop_context): Rename from
2499 release_stop_context_cleanup.
2500 (normal_stop): Update.
2501 (stop_context::changed): Rename from stop_context_changed. Return
2504 2018-09-17 Tom Tromey <tom@tromey.com>
2506 * inferior.h (struct infcall_suspend_state_deleter): New.
2507 (infcall_suspend_state_up): New typedef.
2508 (struct infcall_control_state_deleter): New.
2509 (infcall_control_state_up): New typedef.
2510 (make_cleanup_restore_infcall_suspend_state)
2511 (make_cleanup_restore_infcall_control_state): Don't declare.
2512 * infcall.c (call_function_by_hand_dummy): Update.
2513 * infrun.c (do_restore_infcall_suspend_state_cleanup)
2514 (make_cleanup_restore_infcall_suspend_state): Remove.
2515 (do_restore_infcall_control_state_cleanup)
2516 (make_cleanup_restore_infcall_control_state): Remove.
2518 2018-09-17 Tom Tromey <tom@tromey.com>
2520 * gdbthread.h (struct thread_control_state): Add initializer.
2521 (class thread_info) <control>: Remove initializer.
2522 * inferior.h (struct inferior_control_state): Add initializer.
2523 (class inferior) <control>: Remove initializer.
2524 (exit_inferior_1): Update.
2525 * infrun.c (struct infcall_control_state): Add constructors.
2526 (save_infcall_control_state): Use new.
2527 (restore_infcall_control_state, discard_infcall_control_state):
2530 2018-09-17 Tom Tromey <tom@tromey.com>
2532 * infrun.c (struct infcall_suspend_state) <registers>: Now a
2534 <siginfo_data>: Now a unique_xmalloc_ptr.
2535 (save_infcall_suspend_state, restore_infcall_suspend_state)
2536 (discard_infcall_suspend_state)
2537 (get_infcall_suspend_state_regcache): Update.
2539 2018-09-17 Tom Tromey <tom@tromey.com>
2541 * gdbthread.h (struct thread_suspend_state): Add initializers.
2542 (class thread_info) <suspend>: Remove initializer.
2543 * infrun.c (struct infcall_suspend_state): Add initializers.
2544 (save_infcall_suspend_state): Use new.
2545 (discard_infcall_suspend_state): Use delete.
2547 2018-09-16 Tom Tromey <tom@tromey.com>
2549 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2551 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
2552 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2553 (py_varobj_iter_new): Likewise.
2554 (py_varobj_get_iterator): Use gdbpy_ref.
2556 2018-09-16 Tom Tromey <tom@tromey.com>
2558 * python/py-threadevent.c (py_get_event_thread): Simplify.
2559 * python/py-inferior.c (infpy_thread_from_thread_handle):
2560 Return immediately after calling thread_to_thread_object. Use
2562 (thread_to_thread_object): Set the exception on a NULL return.
2564 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2566 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
2568 2018-09-16 Tom Tromey <tom@tromey.com>
2570 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2573 2018-09-16 Tom Tromey <tom@tromey.com>
2575 * python/python-internal.h (thread_to_thread_object): Change
2577 * python/py-inferior.c (thread_to_thread_object): Return a new
2579 (infpy_thread_from_thread_handle): Update.
2580 * python/py-infthread.c (gdbpy_selected_thread): Update.
2581 * python/py-stopevent.c (create_stop_event_object): Update.
2582 * python/py-threadevent.c (py_get_event_thread): Return a new
2584 (py_get_event_thread): Update.
2585 * python/py-event.h (py_get_event_thread): Change return type.
2586 * python/py-continueevent.c (create_continue_event_object):
2589 2018-09-16 Tom Tromey <tom@tromey.com>
2591 * python/py-progspace.c (pspy_get_objfiles): Update.
2592 * python/python-internal.h (objfile_to_objfile_object): Change
2594 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2596 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2598 * python/python.c (gdbpy_get_current_objfile): Update.
2599 (gdbpy_objfiles): Update.
2600 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
2602 (objfile_to_objfile_object): Return a new reference.
2603 * python/py-symtab.c (stpy_get_objfile): Update.
2604 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2607 2018-09-16 Tom Tromey <tom@tromey.com>
2609 * python/py-inferior.c (infpy_get_progspace): Update.
2610 * python/python-internal.h (pspace_to_pspace_object): Change
2612 * python/py-newobjfileevent.c
2613 (create_clear_objfiles_event_object): Update.
2614 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2616 * python/python.c (gdbpy_get_current_progspace): Update.
2617 (gdbpy_progspaces): Update.
2618 * python/py-progspace.c (pspace_to_pspace_object): Return a new
2620 * python/py-objfile.c (objfpy_get_progspace): Update.
2621 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
2624 2018-09-16 Tom Tromey <tom@tromey.com>
2626 * python/lib/gdb/__init__.py (current_progspace, objfiles)
2627 (solib_name, block_for_pc, find_pc_line): New functions.
2628 (execute_unwinders): Update.
2629 * python/py-block.c (gdbpy_block_for_pc): Remove.
2630 * python/py-inferior.c (infpy_get_progspace): New function.
2631 (inferior_object_getset) <progspace>: Add.
2632 * python/py-progspace.c (pspy_objfiles): Rewrite.
2633 (pspy_solib_name, pspy_block_for_pc)
2634 (pspy_find_pc_line, pspy_is_valid): New functions.
2635 (progspace_object_methods): Add entries for solib_name,
2636 block_for_pc, find_pc_line, is_valid.
2637 * python/python-internal.h (gdbpy_block_for_pc)
2638 (build_objfiles_list): Don't declare.
2639 * python/python.c: Don't include solib.h.
2640 (gdbpy_solib_name, gdbpy_find_pc_line)
2641 (gdbpy_get_current_progspace, build_objfiles_list)
2642 (gdbpy_objfiles): Remove.
2643 (GdbMethods) <current_progspace, objfiles, block_for_pc,
2644 solib_name, find_pc_line>: Remove entries.
2646 2018-09-16 Tom Tromey <tom@tromey.com>
2648 * top.c (new_ui_command): Use GNU style for metasyntactic
2650 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
2652 * maint.c (maintenance_translate_address): Remove "<>" around
2654 * interps.c (interpreter_exec_cmd): Use GNU style for
2655 metasyntactic variables.
2656 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
2657 metasyntactic variables.
2658 * tracepoint.c (tfind_range_command): Use GNU style for
2659 metasyntactic variables.
2660 (tfind_outside_command): Likewise.
2661 (_initialize_tracepoint): Likewise.
2662 * remote.c (extended_remote_target::create_inferior): Use GNU
2663 style for metasyntactic variables.
2664 * sparc64-tdep.c (adi_examine_command): Use GNU style for
2665 metasyntactic variables.
2666 (adi_assign_command): Likewise.
2668 2018-09-16 Tom Tromey <tom@tromey.com>
2670 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
2671 metasyntactic variables. Print message if no disassembler options
2674 2018-09-15 Tom Tromey <tom@tromey.com>
2676 * infcmd.c (get_inferior_args): Return const char *.
2677 * inferior.h (get_inferior_args): Return type now const.
2678 * linux-tdep.c (linux_fill_prpsinfo): Update.
2679 * procfs.c (procfs_target::make_corefile_notes): Update.
2681 2018-09-07 Tom Tromey <tom@tromey.com>
2683 * python/python.c (execute_gdb_command): Call bpstat_do_actions
2686 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
2688 * nios2-tdep.c (nios2_type_align): New.
2689 (nios2_gdb_arch_init): Install type_align hook.
2691 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2693 * eval.c (fake_method::fake_method): Call xzalloc directly for a
2694 type that is neither object file owned, nor gdbarch owned.
2695 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
2696 gdbarch is non-NULL.
2697 (alloc_type_instance): Allocate non-objfile owned types on the
2699 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
2700 using TYPE_ALLOC to ensure memory is allocated on the correct
2702 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
2703 obstack, or the gdbarch obstack.
2704 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
2706 2018-09-14 Tom Tromey <tom@tromey.com>
2708 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
2711 2018-09-14 Tom Tromey <tom@tromey.com>
2713 * nat/fork-inferior.c (get_startup_shell): Remove "static".
2715 2018-09-13 Tom Tromey <tom@tromey.com>
2717 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
2720 2018-09-13 Tom Tromey <tom@tromey.com>
2722 * exec.c (try_open_exec_file): Use std::string.
2724 2018-09-13 Tom Tromey <tom@tromey.com>
2726 * utils.h (gdb_bfd_errmsg): Return std::string.
2727 * exec.c (exec_file_attach): Update.
2728 * compile/compile-object-load.c (compile_object_load): Update.
2729 * utils.c (gdb_bfd_errmsg): Return std::string.
2731 2018-09-13 Tom Tromey <tom@tromey.com>
2733 * procfs.c (struct procinfo_deleter): New.
2734 (procinfo_up): New typedef.
2735 (do_destroy_procinfo_cleanup): Remove.
2736 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
2738 2018-09-13 Tom Tromey <tom@tromey.com>
2740 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
2742 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2743 2018-09-13 Tom Tromey <tom@tromey.com>
2745 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
2746 (pspy_get_objfiles): New function.
2747 (progspace_object_methods): New.
2748 (pspace_object_type): Add tp_methods callback.
2749 * python/python-internal.h (build_objfiles_list): New
2751 * python/python.c (build_objfiles_list): New function.
2752 (gdbpy_objfiles): Implement using build_objfiles_list.
2753 * NEWS: Mention the Progspace.objfiles method.
2755 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2757 * python/py-inferior.c (infpy_get_progspace): New function.
2758 (inferior_object_getset): Add progspace property.
2759 * NEWS: Mention the new property.
2761 2018-09-13 Tom Tromey <tom@tromey.com>
2764 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
2766 2018-09-13 Tom Tromey <tom@tromey.com>
2769 * rust-lang.c (rust_enum_variant): Now static.
2770 (rust_empty_enum_p): New function.
2771 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
2774 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2776 * python/py-inferior.c (infpy_repr): New.
2777 (inferior_object_type): Register infpy_repr.
2778 * python/py-objfile.c (objfpy_repr): New.
2779 (objfile_object_type): Register objfpy_repr.
2781 2018-09-12 John Baldwin <jhb@FreeBSD.org>
2783 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
2785 2018-09-12 John Baldwin <jhb@FreeBSD.org>
2787 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
2790 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
2792 * common/common-utils.c: Don't include '<sys/stat.h>'.
2793 (is_regular_file): Move to...
2794 * common/filestuff.c (is_regular_file): ... here.
2795 * common/common-utils.h (is_regular_file): Move to...
2796 * common/filestuff.h (is_regular_file): ... here.
2798 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
2800 * skip.c (debug_skip): New variable.
2801 (skiplist_entry::do_skip_file_p): Add debug output.
2802 (skiplist_entry::do_skip_gfile_p): Likewise.
2803 (skiplist_entry::skip_function_p): Likewise.
2804 (_initialize_step_skip): Create debug command.
2805 * NEWS: Mention set/show debug skip.
2807 2018-09-11 Xavier Roirand <roirand@adacore.com>
2809 * darwin-nat.c (should_disable_startup_with_shell):
2811 (darwin_nat_target::create_inferior): Add call.
2813 2018-09-11 Xavier Roirand <roirand@adacore.com>
2815 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
2816 inf_port, msg_state>: Initialize.
2817 (struct darwin_thread_info) <signaled, single_step>: Change
2818 type and initialize.
2819 (struct darwin_thread_info) <event>: Initialize.
2821 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2825 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
2828 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2831 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2835 * gnulib/aclocal.m4: Regenerate.
2836 * gnulib/config.in: Regenerate.
2837 * gnulib/configure: Regenerate.
2838 * gnulib/import/Makefile.am: Update.
2839 * gnulib/import/Makefile.in: Update.
2840 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2841 * gnulib/import/_Noreturn.h: ... this.
2842 * gnulib/import/alloca.in.h: Update.
2843 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2844 * gnulib/import/arg-nonnull.h: ... this.
2845 * gnulib/import/assure.h: Update.
2846 * gnulib/import/at-func.c: Update.
2847 * gnulib/import/basename-lgpl.c: Update.
2848 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2849 * gnulib/import/c++defs.h: ... this.
2850 * gnulib/import/canonicalize-lgpl.c: Update.
2851 * gnulib/import/cdefs.h: Update.
2852 * gnulib/import/chdir-long.c: Update.
2853 * gnulib/import/chdir-long.h: Update.
2854 * gnulib/import/cloexec.c: Update.
2855 * gnulib/import/cloexec.h: Update.
2856 * gnulib/import/close.c: Update.
2857 * gnulib/import/closedir.c: Update.
2858 * gnulib/import/config.charset: Update.
2859 * gnulib/import/dirent-private.h: Update.
2860 * gnulib/import/dirent.in.h: Update.
2861 * gnulib/import/dirfd.c: Update.
2862 * gnulib/import/dirname-lgpl.c: Update.
2863 * gnulib/import/dirname.h: Update.
2864 * gnulib/import/dosname.h: Update.
2865 * gnulib/import/dup-safer-flag.c: Update.
2866 * gnulib/import/dup-safer.c: Update.
2867 * gnulib/import/dup.c: Update.
2868 * gnulib/import/dup2.c: Update.
2869 * gnulib/import/errno.in.h: Update.
2870 * gnulib/import/error.c: Update.
2871 * gnulib/import/error.h: Update.
2872 * gnulib/import/exitfail.c: Update.
2873 * gnulib/import/exitfail.h: Update.
2874 * gnulib/import/extra/update-copyright: Update.
2875 * gnulib/import/fchdir.c: Update.
2876 * gnulib/import/fcntl.c: Update.
2877 * gnulib/import/fcntl.in.h: Update.
2878 * gnulib/import/fd-hook.c: Update.
2879 * gnulib/import/fd-hook.h: Update.
2880 * gnulib/import/fd-safer-flag.c: Update.
2881 * gnulib/import/fd-safer.c: Update.
2882 * gnulib/import/fdopendir.c: Update.
2883 * gnulib/import/filename.h: Update.
2884 * gnulib/import/filenamecat-lgpl.c: Update.
2885 * gnulib/import/filenamecat.h: Update.
2886 * gnulib/import/flexmember.h: Update.
2887 * gnulib/import/float+.h: Update.
2888 * gnulib/import/float.c: Update.
2889 * gnulib/import/float.in.h: Update.
2890 * gnulib/import/fnmatch.c: Update.
2891 * gnulib/import/fnmatch.in.h: Update.
2892 * gnulib/import/fnmatch_loop.c: Update.
2893 * gnulib/import/fpucw.h: Update.
2894 * gnulib/import/frexp.c: Update.
2895 * gnulib/import/frexpl.c: Update.
2896 * gnulib/import/fstat.c: Update.
2897 * gnulib/import/fstatat.c: Update.
2898 * gnulib/import/getcwd-lgpl.c: Update.
2899 * gnulib/import/getcwd.c: Update.
2900 * gnulib/import/getdtablesize.c: Update.
2901 * gnulib/import/getlogin_r.c: Update.
2902 * gnulib/import/getprogname.c: Update.
2903 * gnulib/import/getprogname.h: Update.
2904 * gnulib/import/gettext.h: Update.
2905 * gnulib/import/gettimeofday.c: Update.
2906 * gnulib/import/glob-libc.h: Update.
2907 * gnulib/import/glob.c: Update.
2908 * gnulib/import/glob.in.h: Update.
2909 * gnulib/import/glob_internal.h: Update.
2910 * gnulib/import/glob_pattern_p.c: Update.
2911 * gnulib/import/globfree.c: Update.
2912 * gnulib/import/hard-locale.c: Update.
2913 * gnulib/import/hard-locale.h: Update.
2914 * gnulib/import/intprops.h: Update.
2915 * gnulib/import/inttypes.in.h: Update.
2916 * gnulib/import/isnan.c: Update.
2917 * gnulib/import/isnand-nolibm.h: Update.
2918 * gnulib/import/isnand.c: Update.
2919 * gnulib/import/isnanl-nolibm.h: Update.
2920 * gnulib/import/isnanl.c: Update.
2921 * gnulib/import/itold.c: Update.
2922 * gnulib/import/libc-config.h: Update.
2923 * gnulib/import/limits.in.h: Update.
2924 * gnulib/import/localcharset.c: Update.
2925 * gnulib/import/localcharset.h: Update.
2926 * gnulib/import/localtime-buffer.c: Update.
2927 * gnulib/import/localtime-buffer.h: Update.
2928 * gnulib/import/lstat.c: Update.
2929 * gnulib/import/m4/00gnulib.m4: Update.
2930 * gnulib/import/m4/__inline.m4: Update.
2931 * gnulib/import/m4/absolute-header.m4: Update.
2932 * gnulib/import/m4/alloca.m4: Update.
2933 * gnulib/import/m4/builtin-expect.m4: Update.
2934 * gnulib/import/m4/canonicalize.m4: Update.
2935 * gnulib/import/m4/chdir-long.m4: Update.
2936 * gnulib/import/m4/close.m4: Update.
2937 * gnulib/import/m4/closedir.m4: Update.
2938 * gnulib/import/m4/configmake.m4: Update.
2939 * gnulib/import/m4/d-ino.m4: Update.
2940 * gnulib/import/m4/d-type.m4: Update.
2941 * gnulib/import/m4/dirent_h.m4: Update.
2942 * gnulib/import/m4/dirfd.m4: Update.
2943 * gnulib/import/m4/dirname.m4: Update.
2944 * gnulib/import/m4/double-slash-root.m4: Update.
2945 * gnulib/import/m4/dup.m4: Update.
2946 * gnulib/import/m4/dup2.m4: Update.
2947 * gnulib/import/m4/eealloc.m4: Update.
2948 * gnulib/import/m4/environ.m4: Update.
2949 * gnulib/import/m4/errno_h.m4: Update.
2950 * gnulib/import/m4/error.m4: Update.
2951 * gnulib/import/m4/exponentd.m4: Update.
2952 * gnulib/import/m4/exponentl.m4: Update.
2953 * gnulib/import/m4/extensions.m4: Update.
2954 * gnulib/import/m4/extern-inline.m4: Update.
2955 * gnulib/import/m4/fchdir.m4: Update.
2956 * gnulib/import/m4/fcntl-o.m4: Update.
2957 * gnulib/import/m4/fcntl.m4: Update.
2958 * gnulib/import/m4/fcntl_h.m4: Update.
2959 * gnulib/import/m4/fdopendir.m4: Update.
2960 * gnulib/import/m4/filenamecat.m4: Update.
2961 * gnulib/import/m4/flexmember.m4: Update.
2962 * gnulib/import/m4/float_h.m4: Update.
2963 * gnulib/import/m4/fnmatch.m4: Update.
2964 * gnulib/import/m4/fnmatch_h.m4: Update.
2965 * gnulib/import/m4/fpieee.m4: Update.
2966 * gnulib/import/m4/frexp.m4: Update.
2967 * gnulib/import/m4/frexpl.m4: Update.
2968 * gnulib/import/m4/fstat.m4: Update.
2969 * gnulib/import/m4/fstatat.m4: Update.
2970 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2971 * gnulib/import/m4/getcwd-path-max.m4: Update.
2972 * gnulib/import/m4/getcwd.m4: Update.
2973 * gnulib/import/m4/getdtablesize.m4: Update.
2974 * gnulib/import/m4/getlogin.m4: Update.
2975 * gnulib/import/m4/getlogin_r.m4: Update.
2976 * gnulib/import/m4/getpagesize.m4: Update.
2977 * gnulib/import/m4/getprogname.m4: Update.
2978 * gnulib/import/m4/gettimeofday.m4: Update.
2979 * gnulib/import/m4/glibc21.m4: Update.
2980 * gnulib/import/m4/glob.m4: Update.
2981 * gnulib/import/m4/glob_h.m4: Update.
2982 * gnulib/import/m4/gnulib-cache.m4: Update.
2983 * gnulib/import/m4/gnulib-common.m4: Update.
2984 * gnulib/import/m4/gnulib-comp.m4: Update.
2985 * gnulib/import/m4/gnulib-tool.m4: Update.
2986 * gnulib/import/m4/hard-locale.m4: Update.
2987 * gnulib/import/m4/include_next.m4: Update.
2988 * gnulib/import/m4/inttypes-pri.m4: Update.
2989 * gnulib/import/m4/inttypes.m4: Update.
2990 * gnulib/import/m4/isnand.m4: Update.
2991 * gnulib/import/m4/isnanl.m4: Update.
2992 * gnulib/import/m4/largefile.m4: Update.
2993 * gnulib/import/m4/limits-h.m4: Update.
2994 * gnulib/import/m4/localcharset.m4: Update.
2995 * gnulib/import/m4/locale-fr.m4: Update.
2996 * gnulib/import/m4/locale-ja.m4: Update.
2997 * gnulib/import/m4/locale-zh.m4: Update.
2998 * gnulib/import/m4/localtime-buffer.m4: Update.
2999 * gnulib/import/m4/longlong.m4: Update.
3000 * gnulib/import/m4/lstat.m4: Update.
3001 * gnulib/import/m4/malloc.m4: Update.
3002 * gnulib/import/m4/malloca.m4: Update.
3003 * gnulib/import/m4/math_h.m4: Update.
3004 * gnulib/import/m4/mbrtowc.m4: Update.
3005 * gnulib/import/m4/mbsinit.m4: Update.
3006 * gnulib/import/m4/mbsrtowcs.m4: Update.
3007 * gnulib/import/m4/mbstate_t.m4: Update.
3008 * gnulib/import/m4/memchr.m4: Update.
3009 * gnulib/import/m4/memmem.m4: Update.
3010 * gnulib/import/m4/mempcpy.m4: Update.
3011 * gnulib/import/m4/memrchr.m4: Update.
3012 * gnulib/import/m4/mkdir.m4: Update.
3013 * gnulib/import/m4/mkstemp.m4: Update.
3014 * gnulib/import/m4/mmap-anon.m4: Update.
3015 * gnulib/import/m4/mode_t.m4: Update.
3016 * gnulib/import/m4/msvc-inval.m4: Update.
3017 * gnulib/import/m4/msvc-nothrow.m4: Update.
3018 * gnulib/import/m4/multiarch.m4: Update.
3019 * gnulib/import/m4/nocrash.m4: Update.
3020 * gnulib/import/m4/off_t.m4: Update.
3021 * gnulib/import/m4/onceonly.m4: Update.
3022 * gnulib/import/m4/open-cloexec.m4: Update.
3023 * gnulib/import/m4/open.m4: Update.
3024 * gnulib/import/m4/openat.m4: Update.
3025 * gnulib/import/m4/opendir.m4: Update.
3026 * gnulib/import/m4/pathmax.m4: Update.
3027 * gnulib/import/m4/rawmemchr.m4: Update.
3028 * gnulib/import/m4/readdir.m4: Update.
3029 * gnulib/import/m4/readlink.m4: Update.
3030 * gnulib/import/m4/realloc.m4: Update.
3031 * gnulib/import/m4/rename.m4: Update.
3032 * gnulib/import/m4/rewinddir.m4: Update.
3033 * gnulib/import/m4/rmdir.m4: Update.
3034 * gnulib/import/m4/save-cwd.m4: Update.
3035 * gnulib/import/m4/secure_getenv.m4: Update.
3036 * gnulib/import/m4/setenv.m4: Update.
3037 * gnulib/import/m4/signal_h.m4: Update.
3038 * gnulib/import/m4/ssize_t.m4: Update.
3039 * gnulib/import/m4/stat-time.m4: Update.
3040 * gnulib/import/m4/stat.m4: Update.
3041 * gnulib/import/m4/std-gnu11.m4: Update.
3042 * gnulib/import/m4/stdbool.m4: Update.
3043 * gnulib/import/m4/stddef_h.m4: Update.
3044 * gnulib/import/m4/stdint.m4: Update.
3045 * gnulib/import/m4/stdio_h.m4: Update.
3046 * gnulib/import/m4/stdlib_h.m4: Update.
3047 * gnulib/import/m4/strchrnul.m4: Update.
3048 * gnulib/import/m4/strdup.m4: Update.
3049 * gnulib/import/m4/strerror.m4: Update.
3050 * gnulib/import/m4/string_h.m4: Update.
3051 * gnulib/import/m4/strstr.m4: Update.
3052 * gnulib/import/m4/strtok_r.m4: Update.
3053 * gnulib/import/m4/sys_socket_h.m4: Update.
3054 * gnulib/import/m4/sys_stat_h.m4: Update.
3055 * gnulib/import/m4/sys_time_h.m4: Update.
3056 * gnulib/import/m4/sys_types_h.m4: Update.
3057 * gnulib/import/m4/tempname.m4: Update.
3058 * gnulib/import/m4/time_h.m4: Update.
3059 * gnulib/import/m4/unistd-safer.m4: Update.
3060 * gnulib/import/m4/unistd_h.m4: Update.
3061 * gnulib/import/m4/warn-on-use.m4: Update.
3062 * gnulib/import/m4/wchar_h.m4: Update.
3063 * gnulib/import/m4/wchar_t.m4: Update.
3064 * gnulib/import/m4/wctype_h.m4: Update.
3065 * gnulib/import/m4/wint_t.m4: Update.
3066 * gnulib/import/malloc.c: Update.
3067 * gnulib/import/malloc/scratch_buffer.h: Update.
3068 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3069 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3070 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3071 * gnulib/import/malloca.c: Update.
3072 * gnulib/import/malloca.h: Update.
3073 * gnulib/import/malloca.valgrind: Update.
3074 * gnulib/import/math.in.h: Update.
3075 * gnulib/import/mbrtowc.c: Update.
3076 * gnulib/import/mbsinit.c: Update.
3077 * gnulib/import/mbsrtowcs-impl.h: Update.
3078 * gnulib/import/mbsrtowcs-state.c: Update.
3079 * gnulib/import/mbsrtowcs.c: Update.
3080 * gnulib/import/memchr.c: Update.
3081 * gnulib/import/memmem.c: Update.
3082 * gnulib/import/mempcpy.c: Update.
3083 * gnulib/import/memrchr.c: Update.
3084 * gnulib/import/mkdir.c: Update.
3085 * gnulib/import/mkstemp.c: Update.
3086 * gnulib/import/msvc-inval.c: Update.
3087 * gnulib/import/msvc-inval.h: Update.
3088 * gnulib/import/msvc-nothrow.c: Update.
3089 * gnulib/import/msvc-nothrow.h: Update.
3090 * gnulib/import/open.c: Update.
3091 * gnulib/import/openat-die.c: Update.
3092 * gnulib/import/openat-priv.h: Update.
3093 * gnulib/import/openat-proc.c: Update.
3094 * gnulib/import/openat.c: Update.
3095 * gnulib/import/openat.h: Update.
3096 * gnulib/import/opendir.c: Update.
3097 * gnulib/import/pathmax.h: Update.
3098 * gnulib/import/pipe-safer.c: Update.
3099 * gnulib/import/rawmemchr.c: Update.
3100 * gnulib/import/readdir.c: Update.
3101 * gnulib/import/readlink.c: Update.
3102 * gnulib/import/realloc.c: Update.
3103 * gnulib/import/ref-add.sin: Update.
3104 * gnulib/import/ref-del.sin: Update.
3105 * gnulib/import/rename.c: Update.
3106 * gnulib/import/rewinddir.c: Update.
3107 * gnulib/import/rmdir.c: Update.
3108 * gnulib/import/same-inode.h: Update.
3109 * gnulib/import/save-cwd.c: Update.
3110 * gnulib/import/save-cwd.h: Update.
3111 * gnulib/import/scratch_buffer.h: Update.
3112 * gnulib/import/secure_getenv.c: Update.
3113 * gnulib/import/setenv.c: Update.
3114 * gnulib/import/signal.in.h: Update.
3115 * gnulib/import/stat-time.c: Update.
3116 * gnulib/import/stat-time.h: Update.
3117 * gnulib/import/stat-w32.c: Update.
3118 * gnulib/import/stat-w32.h: Update.
3119 * gnulib/import/stat.c: Update.
3120 * gnulib/import/stdbool.in.h: Update.
3121 * gnulib/import/stddef.in.h: Update.
3122 * gnulib/import/stdint.in.h: Update.
3123 * gnulib/import/stdio.in.h: Update.
3124 * gnulib/import/stdlib.in.h: Update.
3125 * gnulib/import/str-two-way.h: Update.
3126 * gnulib/import/strchrnul.c: Update.
3127 * gnulib/import/strdup.c: Update.
3128 * gnulib/import/streq.h: Update.
3129 * gnulib/import/strerror-override.c: Update.
3130 * gnulib/import/strerror-override.h: Update.
3131 * gnulib/import/strerror.c: Update.
3132 * gnulib/import/string.in.h: Update.
3133 * gnulib/import/stripslash.c: Update.
3134 * gnulib/import/strnlen1.c: Update.
3135 * gnulib/import/strnlen1.h: Update.
3136 * gnulib/import/strstr.c: Update.
3137 * gnulib/import/strtok_r.c: Update.
3138 * gnulib/import/sys_stat.in.h: Update.
3139 * gnulib/import/sys_time.in.h: Update.
3140 * gnulib/import/sys_types.in.h: Update.
3141 * gnulib/import/tempname.c: Update.
3142 * gnulib/import/tempname.h: Update.
3143 * gnulib/import/time.in.h: Update.
3144 * gnulib/import/unistd--.h: Update.
3145 * gnulib/import/unistd-safer.h: Update.
3146 * gnulib/import/unistd.in.h: Update.
3147 * gnulib/import/unsetenv.c: Update.
3148 * gnulib/import/verify.h: Update.
3149 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3150 * gnulib/import/wchar.in.h: Update.
3151 * gnulib/import/wctype.in.h: Update.
3152 * gnulib/import/xalloc-oversized.h: Update.
3153 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3154 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3156 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
3158 * record-btrace.c (get_thread_current_frame): Remove
3161 2018-09-10 Jerome Guitton <guitton@adacore.com>
3163 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
3164 with check_tag to 1 if and only if the type is tagged and the
3165 component being searched cannot been found in the current
3166 view. Otherwise, always call ada_to_fixed_type with
3169 2018-09-10 Xavier Roirand <roirand@adacore.com>
3171 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
3173 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
3174 * ada-varobj.c (ada_varobj_get_number_of_children,
3175 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
3177 2018-09-10 Xavier Roirand <roirand@adacore.com>
3179 * ada-valprint.c (ada_value_print): Use type instead of
3182 2018-09-10 Xavier Roirand <roirand@adacore.com>
3184 * ada-lang.c (ada_value_subscript): Handle case when parameter is
3185 an array of access to unconstrained array.
3187 2018-09-10 Xavier Roirand <roirand@adacore.com>
3189 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
3190 (ada_check_typedef): Use it.
3192 2018-09-10 Xavier Roirand <roirand@adacore.com>
3194 * ada-varobj.c (ada_varobj_describe_struct_child)
3195 (ada_varobj_describe_child): Handle union case like struct one.
3197 2018-09-10 Tom Tromey <tom@tromey.com>
3200 * python/python.c (_initialize_python): Make example in "python"
3201 help work in Python 3.
3203 2018-09-10 Eli Zaretskii <eliz@gnu.org>
3205 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
3206 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
3207 $(EXEEXT) to the script, as it is not a program.
3209 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
3211 * python/py-prettyprint.c (pretty_print_one_value): Return
3213 (print_string_repr): Adjust.
3214 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
3215 * python/python-internal.h (apply_varobj_pretty_printer): Return
3217 * varobj.c (varobj_value_get_print_value): Adjust.
3219 2018-09-08 Tom Tromey <tom@tromey.com>
3222 * python/py-prettyprint.c (pretty_print_one_value): Check for
3225 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3227 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
3228 replace_operator_with_call.
3230 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3232 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
3234 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3236 * ada-typeprint.c (print_range): Print the bounds using TYPE
3237 rather than its TYPE_TARGET_TYPE.
3239 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3241 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
3242 call to ada_to_fixed_value_create.
3244 2018-09-08 Jerome Guitton <guitton@adacore.com>
3246 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
3248 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3250 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
3253 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3255 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
3256 Move update of loop variable "fi".
3258 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3260 * ada-lang.c (value_assign_to_component): In the case of
3261 big-endian targets, extract the bits of the given VAL
3262 using an src_offset of zero if container is not a scalar.
3264 2018-09-06 Simon Ser <contact@emersion.fr>
3267 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
3268 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3269 * fbsd-tdep.c (fbsd_make_note_desc): New.
3270 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
3271 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
3272 * target.h (enum target_object) Add FreeBSD-specific
3273 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3275 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3277 * compile/compile-c.h (generate_c_for_variable_locations):
3278 Change reference to pointer.
3279 * compile/compile-c-support.c (compile_program) <compute>:
3281 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
3282 (generate_c_for_for_one_variable): Likewise
3283 (generate_c_for_variable_locations): Likewise
3284 * compile/compile-c-types.c (compile_c_instance::convert_type):
3286 * compile/compile-cplus-symbols.c (convert_one_symbol):
3287 std::move the scope passed to enter_scope.
3288 * compile/compile-cplus-types.c
3289 (compile_cplus_instance::enter_scope): Make parameter
3291 (compile_cplus_instance::new_scope): Change reference to
3293 (compile_cplus_instance::convert_type): Likewise
3294 (compile_cplus_convert_typedef): std::move the scope passed to
3296 (compile_cplus_convert_struct_or_union): Likewise.
3297 (compile_cplus_convert_enum): Likewise.
3298 (compile_cplus_convert_namespace): Likewise.
3299 * compile/compile-cplus.h (compile_cplus_instance)
3300 <enter_scope>: Make parameter rvalue-reference.
3301 * compile/compile-internal.h (compile_instance)
3302 <get_cached_type>: Likewise
3303 * compile/compile-loc2c.c (push): Likewise
3307 (print_label): Likewise
3308 (pushf_register_address): Likewise
3309 (pushf_register): Likewise
3310 (do_compile_dwarf_expr_to_c): Likewise
3311 (compile_dwarf_expr_to_c): Likewise
3312 (compile_dwarf_bounds_to_c): Likewise
3313 * compile/compile.c (compile_instance::get_cached_type):
3315 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
3316 (compile_dwarf_bounds_to_c): Likewise
3317 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
3318 (dwarf2_compile_property_to_c): Likewise
3319 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
3320 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3323 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3325 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
3326 * tui/tui-data.c (init_content_element): Don't initialize it.
3328 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3330 * tui/tui-data.h (struct tui_win_info)
3331 <detail::opaque>: Remove.
3332 * tui/tui-data.c (init_win_info): Remove assignment.
3334 2018-09-05 Tom Tromey <tom@tromey.com>
3336 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
3337 -Wformat-nonliteral.
3338 * target-float.c (host_float_ops<T>::to_string)
3339 (host_float_ops<T>::from_string): Use
3340 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3341 * configure: Rebuild.
3343 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
3345 * printcmd.c (printf_c_string): Use
3346 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3347 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
3349 2018-09-05 Tom Tromey <tom@tromey.com>
3351 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
3353 2018-09-05 Tom de Vries <tdevries@suse.de>
3355 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
3356 with resolve_abstract_p == true.
3357 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
3358 defaulting to false. Propagate resolve_abstract_p to
3359 dwarf2_fetch_die_loc_sect_off.
3360 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
3361 parameter, defaulting to false.
3362 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
3363 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
3365 * dwarf2read.h (struct die_info): Forward-declare.
3366 (die_info_ptr): New typedef.
3367 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
3369 2018-09-05 Joel Brobecker <brobecker@adacore.com>
3373 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3374 Pedro Alves <palves@redhat.com>
3376 * gnulib/Makefile.in (aclocal_m4_deps): Move to
3377 "aclocal-m4-deps.mk". Include file here.
3378 $(srcdir)/aclocal.m4: Add "configure.ac".
3379 * gnulib/aclocal-m4-deps.mk: New file.
3380 * gnulib/update-gnulib.sh: Automatically update
3381 "aclocal-m4-deps.mk".
3383 2018-09-04 Tom Tromey <tom@tromey.com>
3385 * configure: Rebuild.
3386 * configure.ac: Remove multi-ice code.
3388 2018-09-04 Tom Tromey <tom@tromey.com>
3390 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
3391 (ada-exp.o): Update.
3393 2018-09-04 Tom Tromey <tom@tromey.com>
3395 * Makefile.in (printcmd.o, target-float.o): Remove.
3396 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
3398 2018-09-04 Tom Tromey <tom@tromey.com>
3400 * gnulib/Makefile.in: Remove obsolete comment.
3401 * Makefile.in: Remove obsolete comment.
3403 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3405 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
3408 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3410 * riscv-tdep.c: Add 'prologue-value.h' include.
3411 (struct riscv_unwind_cache): New struct.
3412 (riscv_debug_unwinder): New global.
3413 (riscv_scan_prologue): Update arguments, capture register details
3415 (riscv_skip_prologue): Reformat arguments line, move end of
3416 prologue calculation into riscv_scan_prologue.
3417 (riscv_frame_cache): Update return type, create
3418 riscv_unwind_cache, scan the prologue, and fill in remaining cache
3420 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
3421 (riscv_frame_prev_register): Use the trad_frame within the
3423 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
3426 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3428 * trad-frame.h (trad_frame_set_realreg): Declare.
3429 (trad_frame_set_addr): Declare.
3430 * trad-frame.c (trad_frame_set_realreg): Define new function.
3431 (trad_frame_set_addr): Define new function.
3432 (trad_frame_set_reg_realreg): Use new function.
3433 (trad_frame_set_reg_addr): Use new function.
3435 2018-09-01 Keith Seitz <keiths@redhat.com>
3437 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
3438 pulongest instead of "%lld".
3439 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
3442 2018-08-31 Tom Tromey <tom@tromey.com>
3444 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
3447 2018-08-31 Pedro Alves <palves@redhat.com>
3449 * gdbarch.h: Regenerate.
3451 2018-08-31 Pedro Alves <palves@redhat.com>
3453 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
3454 * target.h (Hardware watchpoint interfaces): Describe
3455 continuable/steppable/non-steppable watchpoints.
3456 * gdbarch.h, gdbarch.c: Regenerate.
3458 2018-08-31 Pedro Alves <palves@redhat.com>
3460 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
3463 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
3464 * target.h (target_ops::have_continuable_watchpoint): Delete.
3465 (target_have_continuable_watchpoint): Delete.
3466 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
3467 * target-delegates.c: Regenerate.
3469 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3471 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
3472 the files present in "gnulib/import/m4/".
3474 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
3476 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
3477 c.sw, c.swsp, and c.sdsp.
3479 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
3481 * riscv-tdep.c (struct riscv_inferior_data): Delete.
3482 (riscv_read_misa_reg): Don't cache value read into inferior data.
3483 (riscv_new_inferior_data): Delete.
3484 (riscv_inferior_data_cleanup): Delete.
3485 (riscv_inferior_data): Delete.
3486 (riscv_invalidate_inferior_data): Delete.
3487 (_initialize_riscv_tdep): Remove initialisation of inferior data.
3489 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
3491 * compile/compile-cplus-types.c
3492 (compile_cplus_instance::leave_scope): Take the address of scope
3494 (compile_cplus_instance::convert_qualified_base): Compare quals
3497 2018-08-30 Keith Seitz <keiths@redhat.com>
3499 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
3500 Use "%s" and host_address_to_string instead of "%p" in printf.
3502 2018-08-29 Keith Seitz <keiths@redhat.com>
3504 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
3505 and compile-cplus-types.c.
3506 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
3507 * c-lang.c (cplus_language_defn): Set C++ compile functions.
3508 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
3510 * compile/compile-c-support.c: Include compile-cplus.h.
3511 (load_libcompile): Templatize.
3512 (get_compile_context): "New" function.
3513 (c_get_compile_context): Use get_compile_context.
3514 (cplus_get_compile_context): New function.
3515 (cplus_push_user_expression, cplus_pop_user_expression)
3516 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
3517 (cplus_compute_program): Define new structs/functions.
3518 * compile/compile-cplus-symmbols.c: New file.
3519 * compile/compile-cplus-types.c: New file.
3520 * compile/compile-cplus.h: New file.
3521 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
3523 * compile/compile-object-load.c (get_out_value_type): Use
3524 strncmp_iw when comparing symbol names.
3525 (compile_object_load): Add mst_bss and mst_data.
3526 * compile/compile.c (_initialize_compile): Remove
3527 -Wno-implicit-function-declaration from `compile_args'.
3528 * compile/gcc-cp-plugin.h: New file.
3529 * NEWS: Mention C++ compile support and new debug options.
3531 2018-08-29 Keith Seitz <keiths@redhat.com>
3533 * linespec.c (collect_info::add_symbol): Make virtual.
3534 (struct symbol_searcher_collect_info): New struct.
3535 (symbol_searcher::find_all_symbols): New method.
3536 * symtab.h (class symbol_searcher): New class.
3538 2018-08-29 Keith Seitz <keiths@redhat.com>
3540 * linespec.c (struct linespec) <function_symbols, label_symbols>:
3541 Change to vector of block_symbol. Update all users.
3542 (struct collect_info) <symbols>: Likewise.
3543 (collect_info::add_symbol): Take block_symbol as argument.
3545 (decode_compound_collector) <m_symbols>: Change type to vector
3546 of block_symbol. Update all users.
3547 (decode_compound_collector::operator ()): Change parameter type
3549 (find_method, find_function_symbols, find_linespec_symbols)
3550 (find_label_symbols_in_block, find_label_symbols): Change symbol
3551 vectors to block_symbol vectors.
3552 * symtab.h (symbol_found_callback_ftype): Change parameter type to
3555 2018-08-29 Keith Seitz <keiths@redhat.com>
3557 * linespec.c (symbolp): Remove typedef and VEC definitions.
3558 (bound_minimal_symbol_d): Likewise.
3560 2018-08-29 Keith Seitz <keiths@redhat.com>
3562 * linespec.c (decode_compound_collector::decode_compound_collector):
3563 Remove initialization for `m_symtabs'.
3564 (decode_compound_collector::release_symbols): Change return type
3565 to std::vector. Update all callers.
3566 (class decode_compound_collector) <m_symbols>: Change type to
3568 (lookup_prefix_sym): Change return type to std::vector. Update all
3570 (compare_symbols): Remove.
3571 (std_compare_symbols): Rename to `compare_symbols'.
3572 (find_method): Change `sym_classes' parameter to std::vector.
3573 Update all callers. Use std::sort to sort sym_classes.
3574 (find_linespec_symbols): Remove cleanup.
3576 2018-08-29 Keith Seitz <keiths@redhat.com>
3578 * linespec.c (struct linespec) <minimal_symbols>: Change type to
3579 std::vector. Update all users.
3580 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
3581 (struct collect_info) <minimal_symbols>: Likewise.
3582 (compare_msymbols): Return bool. Change parameters to const
3583 bound_minimal_symbol references.
3584 (find_method, find_function_symbols, find_linespec_symbols): Change
3585 `minsyms' parameter to std::vector. Update all callers.
3587 2018-08-29 Keith Seitz <keiths@redhat.com>
3589 * linespec.c (struct linespec) <label_symbols>: Change type to
3590 std::vector. Update all users.
3591 (find_label_symbols_in_block): Change `result' parameter to
3592 std::vector. Update all callers.
3593 (find_label_symbols): Return std::vector. Update all callers.
3595 2018-08-29 Keith Seitz <keiths@redhat.com>
3597 * linespec.c (struct linespec) <function_symbols>: Change type to
3598 std::vector. Update all users.
3599 (struct collect_info) <function_symbols>: Likewise.
3600 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
3601 (std_compare_symbols): New function.
3602 (find_method, find_function_symbols, find_linespec_symbols)
3603 (find_label_symbols_in_block): Change `symbols' parameter to
3604 std::vector. Update all callers.
3605 (find_label_symbols): Likewise for `function_symbols' and
3608 2018-08-29 Keith Seitz <keiths@redhat.com>
3610 * linespec.c (symtab_vector_up): Define.
3611 (struct linespec) <file_symtabs>: Change type to std::vector *.
3613 (struct collect_info) <file_symtabs>: Likewise.
3614 (collect_symtabs_from_filename): Return symtab_vector_up.
3616 (decode_objc): Remove cleanup.
3617 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
3618 (symtab_collector::release_symtabs): Return symtab_vector_up.
3620 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
3622 (collect_symtabs_from_filename, symtabs_from_filename): Return
3623 symtab_vector_up. Update all callers.
3625 2018-08-29 Tom Tromey <tom@tromey.com>
3627 * csky-tdep.c (csky_analyze_prologue): Use
3628 core_addr_to_string_nz.
3630 2018-08-29 Tom Tromey <tom@tromey.com>
3632 * windows-nat.c (struct xlate_exception) <them>: Change type to
3634 (xlate): Fix formatting. Remove last entry.
3635 (struct xlate_exception, xlate): Comment out.
3636 (windows_nat_target::resume): Use ranged for.
3638 2018-08-29 Jim Wilson <jimw@sifive.com>
3640 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
3641 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
3643 (riscv_linux_nat_target::store_registers): Likewise.
3645 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3649 * gnulib/aclocal.m4: Regenerate.
3650 * gnulib/config.in: Regenerate.
3651 * gnulib/configure: Regenerate.
3652 * gnulib/import/Makefile.am: Update.
3653 * gnulib/import/Makefile.in: Update.
3654 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3655 * gnulib/import/_Noreturn.h: ... this.
3656 * gnulib/import/alloca.in.h: Update.
3657 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3658 * gnulib/import/arg-nonnull.h: ... this.
3659 * gnulib/import/assure.h: Update.
3660 * gnulib/import/at-func.c: Update.
3661 * gnulib/import/basename-lgpl.c: Update.
3662 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3663 * gnulib/import/c++defs.h: ... this.
3664 * gnulib/import/canonicalize-lgpl.c: Update.
3665 * gnulib/import/cdefs.h: Update.
3666 * gnulib/import/chdir-long.c: Update.
3667 * gnulib/import/chdir-long.h: Update.
3668 * gnulib/import/cloexec.c: Update.
3669 * gnulib/import/cloexec.h: Update.
3670 * gnulib/import/close.c: Update.
3671 * gnulib/import/closedir.c: Update.
3672 * gnulib/import/config.charset: Update.
3673 * gnulib/import/dirent-private.h: Update.
3674 * gnulib/import/dirent.in.h: Update.
3675 * gnulib/import/dirfd.c: Update.
3676 * gnulib/import/dirname-lgpl.c: Update.
3677 * gnulib/import/dirname.h: Update.
3678 * gnulib/import/dosname.h: Update.
3679 * gnulib/import/dup-safer-flag.c: Update.
3680 * gnulib/import/dup-safer.c: Update.
3681 * gnulib/import/dup.c: Update.
3682 * gnulib/import/dup2.c: Update.
3683 * gnulib/import/errno.in.h: Update.
3684 * gnulib/import/error.c: Update.
3685 * gnulib/import/error.h: Update.
3686 * gnulib/import/exitfail.c: Update.
3687 * gnulib/import/exitfail.h: Update.
3688 * gnulib/import/extra/update-copyright: Update.
3689 * gnulib/import/fchdir.c: Update.
3690 * gnulib/import/fcntl.c: Update.
3691 * gnulib/import/fcntl.in.h: Update.
3692 * gnulib/import/fd-hook.c: Update.
3693 * gnulib/import/fd-hook.h: Update.
3694 * gnulib/import/fd-safer-flag.c: Update.
3695 * gnulib/import/fd-safer.c: Update.
3696 * gnulib/import/fdopendir.c: Update.
3697 * gnulib/import/filename.h: Update.
3698 * gnulib/import/filenamecat-lgpl.c: Update.
3699 * gnulib/import/filenamecat.h: Update.
3700 * gnulib/import/flexmember.h: Update.
3701 * gnulib/import/float+.h: Update.
3702 * gnulib/import/float.c: Update.
3703 * gnulib/import/float.in.h: Update.
3704 * gnulib/import/fnmatch.c: Update.
3705 * gnulib/import/fnmatch.in.h: Update.
3706 * gnulib/import/fnmatch_loop.c: Update.
3707 * gnulib/import/fpucw.h: Update.
3708 * gnulib/import/frexp.c: Update.
3709 * gnulib/import/frexpl.c: Update.
3710 * gnulib/import/fstat.c: Update.
3711 * gnulib/import/fstatat.c: Update.
3712 * gnulib/import/getcwd-lgpl.c: Update.
3713 * gnulib/import/getcwd.c: Update.
3714 * gnulib/import/getdtablesize.c: Update.
3715 * gnulib/import/getlogin_r.c: Update.
3716 * gnulib/import/getprogname.c: Update.
3717 * gnulib/import/getprogname.h: Update.
3718 * gnulib/import/gettext.h: Update.
3719 * gnulib/import/gettimeofday.c: Update.
3720 * gnulib/import/glob-libc.h: Update.
3721 * gnulib/import/glob.c: Update.
3722 * gnulib/import/glob.in.h: Update.
3723 * gnulib/import/glob_internal.h: Update.
3724 * gnulib/import/glob_pattern_p.c: Update.
3725 * gnulib/import/globfree.c: Update.
3726 * gnulib/import/hard-locale.c: Update.
3727 * gnulib/import/hard-locale.h: Update.
3728 * gnulib/import/intprops.h: Update.
3729 * gnulib/import/inttypes.in.h: Update.
3730 * gnulib/import/isnan.c: Update.
3731 * gnulib/import/isnand-nolibm.h: Update.
3732 * gnulib/import/isnand.c: Update.
3733 * gnulib/import/isnanl-nolibm.h: Update.
3734 * gnulib/import/isnanl.c: Update.
3735 * gnulib/import/itold.c: Update.
3736 * gnulib/import/libc-config.h: Update.
3737 * gnulib/import/limits.in.h: Update.
3738 * gnulib/import/localcharset.c: Update.
3739 * gnulib/import/localcharset.h: Update.
3740 * gnulib/import/localtime-buffer.c: Update.
3741 * gnulib/import/localtime-buffer.h: Update.
3742 * gnulib/import/lstat.c: Update.
3743 * gnulib/import/m4/00gnulib.m4: Update.
3744 * gnulib/import/m4/__inline.m4: Update.
3745 * gnulib/import/m4/absolute-header.m4: Update.
3746 * gnulib/import/m4/alloca.m4: Update.
3747 * gnulib/import/m4/builtin-expect.m4: Update.
3748 * gnulib/import/m4/canonicalize.m4: Update.
3749 * gnulib/import/m4/chdir-long.m4: Update.
3750 * gnulib/import/m4/close.m4: Update.
3751 * gnulib/import/m4/closedir.m4: Update.
3752 * gnulib/import/m4/configmake.m4: Update.
3753 * gnulib/import/m4/d-ino.m4: Update.
3754 * gnulib/import/m4/d-type.m4: Update.
3755 * gnulib/import/m4/dirent_h.m4: Update.
3756 * gnulib/import/m4/dirfd.m4: Update.
3757 * gnulib/import/m4/dirname.m4: Update.
3758 * gnulib/import/m4/double-slash-root.m4: Update.
3759 * gnulib/import/m4/dup.m4: Update.
3760 * gnulib/import/m4/dup2.m4: Update.
3761 * gnulib/import/m4/eealloc.m4: Update.
3762 * gnulib/import/m4/environ.m4: Update.
3763 * gnulib/import/m4/errno_h.m4: Update.
3764 * gnulib/import/m4/error.m4: Update.
3765 * gnulib/import/m4/exponentd.m4: Update.
3766 * gnulib/import/m4/exponentl.m4: Update.
3767 * gnulib/import/m4/extensions.m4: Update.
3768 * gnulib/import/m4/extern-inline.m4: Update.
3769 * gnulib/import/m4/fchdir.m4: Update.
3770 * gnulib/import/m4/fcntl-o.m4: Update.
3771 * gnulib/import/m4/fcntl.m4: Update.
3772 * gnulib/import/m4/fcntl_h.m4: Update.
3773 * gnulib/import/m4/fdopendir.m4: Update.
3774 * gnulib/import/m4/filenamecat.m4: Update.
3775 * gnulib/import/m4/flexmember.m4: Update.
3776 * gnulib/import/m4/float_h.m4: Update.
3777 * gnulib/import/m4/fnmatch.m4: Update.
3778 * gnulib/import/m4/fnmatch_h.m4: Update.
3779 * gnulib/import/m4/fpieee.m4: Update.
3780 * gnulib/import/m4/frexp.m4: Update.
3781 * gnulib/import/m4/frexpl.m4: Update.
3782 * gnulib/import/m4/fstat.m4: Update.
3783 * gnulib/import/m4/fstatat.m4: Update.
3784 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3785 * gnulib/import/m4/getcwd-path-max.m4: Update.
3786 * gnulib/import/m4/getcwd.m4: Update.
3787 * gnulib/import/m4/getdtablesize.m4: Update.
3788 * gnulib/import/m4/getlogin.m4: Update.
3789 * gnulib/import/m4/getlogin_r.m4: Update.
3790 * gnulib/import/m4/getpagesize.m4: Update.
3791 * gnulib/import/m4/getprogname.m4: Update.
3792 * gnulib/import/m4/gettimeofday.m4: Update.
3793 * gnulib/import/m4/glibc21.m4: Update.
3794 * gnulib/import/m4/glob.m4: Update.
3795 * gnulib/import/m4/glob_h.m4: Update.
3796 * gnulib/import/m4/gnulib-cache.m4: Update.
3797 * gnulib/import/m4/gnulib-common.m4: Update.
3798 * gnulib/import/m4/gnulib-comp.m4: Update.
3799 * gnulib/import/m4/gnulib-tool.m4: Update.
3800 * gnulib/import/m4/hard-locale.m4: Update.
3801 * gnulib/import/m4/include_next.m4: Update.
3802 * gnulib/import/m4/inttypes-pri.m4: Update.
3803 * gnulib/import/m4/inttypes.m4: Update.
3804 * gnulib/import/m4/isnand.m4: Update.
3805 * gnulib/import/m4/isnanl.m4: Update.
3806 * gnulib/import/m4/largefile.m4: Update.
3807 * gnulib/import/m4/limits-h.m4: Update.
3808 * gnulib/import/m4/localcharset.m4: Update.
3809 * gnulib/import/m4/locale-fr.m4: Update.
3810 * gnulib/import/m4/locale-ja.m4: Update.
3811 * gnulib/import/m4/locale-zh.m4: Update.
3812 * gnulib/import/m4/localtime-buffer.m4: Update.
3813 * gnulib/import/m4/longlong.m4: Update.
3814 * gnulib/import/m4/lstat.m4: Update.
3815 * gnulib/import/m4/malloc.m4: Update.
3816 * gnulib/import/m4/malloca.m4: Update.
3817 * gnulib/import/m4/math_h.m4: Update.
3818 * gnulib/import/m4/mbrtowc.m4: Update.
3819 * gnulib/import/m4/mbsinit.m4: Update.
3820 * gnulib/import/m4/mbsrtowcs.m4: Update.
3821 * gnulib/import/m4/mbstate_t.m4: Update.
3822 * gnulib/import/m4/memchr.m4: Update.
3823 * gnulib/import/m4/memmem.m4: Update.
3824 * gnulib/import/m4/mempcpy.m4: Update.
3825 * gnulib/import/m4/memrchr.m4: Update.
3826 * gnulib/import/m4/mkdir.m4: Update.
3827 * gnulib/import/m4/mkstemp.m4: Update.
3828 * gnulib/import/m4/mmap-anon.m4: Update.
3829 * gnulib/import/m4/mode_t.m4: Update.
3830 * gnulib/import/m4/msvc-inval.m4: Update.
3831 * gnulib/import/m4/msvc-nothrow.m4: Update.
3832 * gnulib/import/m4/multiarch.m4: Update.
3833 * gnulib/import/m4/nocrash.m4: Update.
3834 * gnulib/import/m4/off_t.m4: Update.
3835 * gnulib/import/m4/onceonly.m4: Update.
3836 * gnulib/import/m4/open-cloexec.m4: Update.
3837 * gnulib/import/m4/open.m4: Update.
3838 * gnulib/import/m4/openat.m4: Update.
3839 * gnulib/import/m4/opendir.m4: Update.
3840 * gnulib/import/m4/pathmax.m4: Update.
3841 * gnulib/import/m4/rawmemchr.m4: Update.
3842 * gnulib/import/m4/readdir.m4: Update.
3843 * gnulib/import/m4/readlink.m4: Update.
3844 * gnulib/import/m4/realloc.m4: Update.
3845 * gnulib/import/m4/rename.m4: Update.
3846 * gnulib/import/m4/rewinddir.m4: Update.
3847 * gnulib/import/m4/rmdir.m4: Update.
3848 * gnulib/import/m4/save-cwd.m4: Update.
3849 * gnulib/import/m4/secure_getenv.m4: Update.
3850 * gnulib/import/m4/setenv.m4: Update.
3851 * gnulib/import/m4/signal_h.m4: Update.
3852 * gnulib/import/m4/ssize_t.m4: Update.
3853 * gnulib/import/m4/stat-time.m4: Update.
3854 * gnulib/import/m4/stat.m4: Update.
3855 * gnulib/import/m4/std-gnu11.m4: Update.
3856 * gnulib/import/m4/stdbool.m4: Update.
3857 * gnulib/import/m4/stddef_h.m4: Update.
3858 * gnulib/import/m4/stdint.m4: Update.
3859 * gnulib/import/m4/stdio_h.m4: Update.
3860 * gnulib/import/m4/stdlib_h.m4: Update.
3861 * gnulib/import/m4/strchrnul.m4: Update.
3862 * gnulib/import/m4/strdup.m4: Update.
3863 * gnulib/import/m4/strerror.m4: Update.
3864 * gnulib/import/m4/string_h.m4: Update.
3865 * gnulib/import/m4/strstr.m4: Update.
3866 * gnulib/import/m4/strtok_r.m4: Update.
3867 * gnulib/import/m4/sys_socket_h.m4: Update.
3868 * gnulib/import/m4/sys_stat_h.m4: Update.
3869 * gnulib/import/m4/sys_time_h.m4: Update.
3870 * gnulib/import/m4/sys_types_h.m4: Update.
3871 * gnulib/import/m4/tempname.m4: Update.
3872 * gnulib/import/m4/time_h.m4: Update.
3873 * gnulib/import/m4/unistd-safer.m4: Update.
3874 * gnulib/import/m4/unistd_h.m4: Update.
3875 * gnulib/import/m4/warn-on-use.m4: Update.
3876 * gnulib/import/m4/wchar_h.m4: Update.
3877 * gnulib/import/m4/wchar_t.m4: Update.
3878 * gnulib/import/m4/wctype_h.m4: Update.
3879 * gnulib/import/m4/wint_t.m4: Update.
3880 * gnulib/import/malloc.c: Update.
3881 * gnulib/import/malloc/scratch_buffer.h: Update.
3882 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3883 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3884 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3885 * gnulib/import/malloca.c: Update.
3886 * gnulib/import/malloca.h: Update.
3887 * gnulib/import/malloca.valgrind: Update.
3888 * gnulib/import/math.in.h: Update.
3889 * gnulib/import/mbrtowc.c: Update.
3890 * gnulib/import/mbsinit.c: Update.
3891 * gnulib/import/mbsrtowcs-impl.h: Update.
3892 * gnulib/import/mbsrtowcs-state.c: Update.
3893 * gnulib/import/mbsrtowcs.c: Update.
3894 * gnulib/import/memchr.c: Update.
3895 * gnulib/import/memmem.c: Update.
3896 * gnulib/import/mempcpy.c: Update.
3897 * gnulib/import/memrchr.c: Update.
3898 * gnulib/import/mkdir.c: Update.
3899 * gnulib/import/mkstemp.c: Update.
3900 * gnulib/import/msvc-inval.c: Update.
3901 * gnulib/import/msvc-inval.h: Update.
3902 * gnulib/import/msvc-nothrow.c: Update.
3903 * gnulib/import/msvc-nothrow.h: Update.
3904 * gnulib/import/open.c: Update.
3905 * gnulib/import/openat-die.c: Update.
3906 * gnulib/import/openat-priv.h: Update.
3907 * gnulib/import/openat-proc.c: Update.
3908 * gnulib/import/openat.c: Update.
3909 * gnulib/import/openat.h: Update.
3910 * gnulib/import/opendir.c: Update.
3911 * gnulib/import/pathmax.h: Update.
3912 * gnulib/import/pipe-safer.c: Update.
3913 * gnulib/import/rawmemchr.c: Update.
3914 * gnulib/import/readdir.c: Update.
3915 * gnulib/import/readlink.c: Update.
3916 * gnulib/import/realloc.c: Update.
3917 * gnulib/import/ref-add.sin: Update.
3918 * gnulib/import/ref-del.sin: Update.
3919 * gnulib/import/rename.c: Update.
3920 * gnulib/import/rewinddir.c: Update.
3921 * gnulib/import/rmdir.c: Update.
3922 * gnulib/import/same-inode.h: Update.
3923 * gnulib/import/save-cwd.c: Update.
3924 * gnulib/import/save-cwd.h: Update.
3925 * gnulib/import/scratch_buffer.h: Update.
3926 * gnulib/import/secure_getenv.c: Update.
3927 * gnulib/import/setenv.c: Update.
3928 * gnulib/import/signal.in.h: Update.
3929 * gnulib/import/stat-time.c: Update.
3930 * gnulib/import/stat-time.h: Update.
3931 * gnulib/import/stat-w32.c: Update.
3932 * gnulib/import/stat-w32.h: Update.
3933 * gnulib/import/stat.c: Update.
3934 * gnulib/import/stdbool.in.h: Update.
3935 * gnulib/import/stddef.in.h: Update.
3936 * gnulib/import/stdint.in.h: Update.
3937 * gnulib/import/stdio.in.h: Update.
3938 * gnulib/import/stdlib.in.h: Update.
3939 * gnulib/import/str-two-way.h: Update.
3940 * gnulib/import/strchrnul.c: Update.
3941 * gnulib/import/strdup.c: Update.
3942 * gnulib/import/streq.h: Update.
3943 * gnulib/import/strerror-override.c: Update.
3944 * gnulib/import/strerror-override.h: Update.
3945 * gnulib/import/strerror.c: Update.
3946 * gnulib/import/string.in.h: Update.
3947 * gnulib/import/stripslash.c: Update.
3948 * gnulib/import/strnlen1.c: Update.
3949 * gnulib/import/strnlen1.h: Update.
3950 * gnulib/import/strstr.c: Update.
3951 * gnulib/import/strtok_r.c: Update.
3952 * gnulib/import/sys_stat.in.h: Update.
3953 * gnulib/import/sys_time.in.h: Update.
3954 * gnulib/import/sys_types.in.h: Update.
3955 * gnulib/import/tempname.c: Update.
3956 * gnulib/import/tempname.h: Update.
3957 * gnulib/import/time.in.h: Update.
3958 * gnulib/import/unistd--.h: Update.
3959 * gnulib/import/unistd-safer.h: Update.
3960 * gnulib/import/unistd.in.h: Update.
3961 * gnulib/import/unsetenv.c: Update.
3962 * gnulib/import/verify.h: Update.
3963 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3964 * gnulib/import/wchar.in.h: Update.
3965 * gnulib/import/wctype.in.h: Update.
3966 * gnulib/import/xalloc-oversized.h: Update.
3967 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3968 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3970 2018-08-16 Gary Benson <gbenson@redhat.com>
3973 * gdb/main.c (captured_main_1): Exit with nonzero status
3974 in batch mode if the last command to be executed failed.
3975 * NEWS: Mention the above.
3977 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
3979 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
3980 end of warning message.
3982 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3985 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
3986 (aarch64_extract_return_value): Use
3987 aapcs_is_vfp_call_or_return_candidate.
3988 (aarch64_return_in_memory): Likewise.
3989 (aarch64_store_return_value): Likewise.
3991 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3994 (aapcs_is_vfp_call_or_return_candidate): Make static
3995 (pass_in_v_or_stack): Remove function.
3996 (pass_in_v_vfp_candidate): New function.
3997 (aarch64_push_dummy_call): Check for float register candidates.
3999 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4001 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
4002 (aapcs_is_vfp_call_or_return_candidate_1): New function.
4003 (aapcs_is_vfp_call_or_return_candidate): Likewise.
4005 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4008 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
4009 (struct ipa_sym_addresses): Rename to...
4010 (struct ipa_sym_addresses_common): ... this.
4011 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
4013 2018-08-28 Tom Tromey <tom@tromey.com>
4015 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4016 (token_fifo): Now a std::vector.
4017 (yylex, c_parse): Update.
4018 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4019 (token_fifo): Now a std::vector.
4020 (yylex, d_parse): Update.
4021 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4022 (token_fifo): Now a std::vector.
4023 (yylex, go_parse): Update.
4025 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
4027 * parser-defs.h (struct type_stack) <elements>: Change type to
4028 std::vector<union type_stack_elt>.
4029 <depth, size>: Remove.
4030 * parse.c (parse_exp_in_context_1): Adjust.
4031 (type_stack_reserve): Remove.
4032 (check_type_stack_depth): Remove.
4033 (insert_into_type_stack): Adjust to std::vector.
4034 (insert_type): Likewise.
4035 (push_type): Likewise.
4036 (push_type_int): Likewise.
4037 (insert_type_address_space): Likewise.
4038 (pop_type): Likewise.
4039 (pop_type_int): Likewise.
4040 (pop_typelist): Likewise.
4041 (pop_type_stack): Likewise.
4042 (append_type_stack): Likewise.
4043 (push_type_stack): Likewise.
4044 (get_type_stack): Likewise.
4045 (type_stack_cleanup): Likewise.
4046 (push_typelist): Likewise.
4047 (follow_types): Likewise.
4048 (_initialize_parse): Likewise.
4050 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
4052 * NEWS: Mention csky target.
4054 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
4055 Hafiz Abid Qadeer <abidh@codesourcery.com>
4056 Don Breazeal <donb@codesourcery.com>
4058 * csky-linux-tdep.c: New file.
4059 * csky-tdep.c: Likewise.
4060 * csky-tdep.h: Likewise.
4061 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
4063 (HFILES_NO_SRCDIR): Add csky-tdep.h.
4064 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
4065 * configure.tgt: Add csky support.
4067 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
4069 * python/py-framefilter.c (py_print_frame): Print frame architecture
4070 when printing on an MI output.
4072 2018-08-27 Tom Tromey <tom@tromey.com>
4075 * configure: Rebuild.
4076 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
4078 2018-08-27 Tom Tromey <tom@tromey.com>
4080 * aarch64-linux-tdep.c
4081 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
4084 2018-08-27 Tom Tromey <tom@tromey.com>
4086 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
4088 (ppc64_standard_linkage1, ppc64_standard_linkage2)
4089 (ppc64_standard_linkage3, ppc64_standard_linkage4)
4090 (ppc64_standard_linkage5, ppc64_standard_linkage6)
4091 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
4094 2018-08-27 Tom Tromey <tom@tromey.com>
4096 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
4097 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
4099 2018-08-27 Tom Tromey <tom@tromey.com>
4101 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
4102 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
4104 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
4106 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
4108 * sparc-linux-tdep.c (sparc32_linux_sigframe)
4109 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
4110 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
4112 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
4113 (ppc64_linux_sigaction_tramp_frame)
4114 (ppc32_linux_sighandler_tramp_frame)
4115 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4116 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
4117 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
4118 * mn10300-linux-tdep.c (am33_linux_sigframe)
4119 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
4120 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
4121 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4122 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4123 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
4124 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
4125 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
4126 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
4127 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
4128 * microblaze-linux-tdep.c
4129 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4130 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
4131 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
4132 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
4133 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
4134 * common/common-types.h (ULONGEST_MAX): New define.
4135 (CORE_ADDR_MAX): Fix formatting.
4136 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
4137 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
4138 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
4139 (arm_linux_rt_sigreturn_tramp_frame)
4140 (arm_eabi_linux_sigreturn_tramp_frame)
4141 (arm_eabi_linux_rt_sigreturn_tramp_frame)
4142 (thumb2_eabi_linux_sigreturn_tramp_frame)
4143 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
4144 (arm_linux_restart_syscall_tramp_frame)
4145 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
4146 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
4147 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
4149 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
4151 2018-08-27 Tom Tromey <tom@tromey.com>
4153 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
4155 * mips-tdep.c (mips_deal_with_atomic_sequence)
4156 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
4157 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
4158 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
4159 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
4161 * aarch64-tdep.c (aarch64_software_single_step): Use
4164 2018-08-27 Tom Tromey <tom@tromey.com>
4166 * linespec.c (complete_linespec_component): Add cast to "char".
4167 * completer.c (completion_tracker::build_completion_result): Add
4170 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4172 * solist.h (struct solist, struct target_so_ops): Fix
4175 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4177 * ada-tasks.c (ada_task_info_s): Remove typedef.
4178 (DEF_VEC_O(ada_task_info_s)): Remove.
4179 (struct ada_tasks_inferior_data): Initialize fields.
4180 <task_list>: Make an std::vector.
4181 (get_ada_tasks_inferior_data): Allocate with new.
4182 (ada_get_task_number): Adjust.
4183 (get_task_number_from_id): Likewise.
4184 (valid_task_id): Likewise.
4185 (ada_get_task_info_from_ptid): Likewise.
4186 (iterate_over_live_ada_tasks): Likewise.
4187 (add_ada_task): Likewise.
4188 (read_known_tasks): Likewise.
4189 (ada_build_task_list): Likewise.
4190 (print_ada_task_info): Likewise.
4191 (info_task): Likewise.
4192 (task_command_1): Likewise.
4194 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4196 * ada-lang.c (add_angle_brackets): Return std::string.
4198 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
4200 * python/py-threadevent.c (py_get_event_thread): Initialize
4203 2018-08-24 Pedro Alves <palves@redhat.com>
4205 * python/py-bpevent.c (create_breakpoint_event_object): Use
4206 copy-initialization.
4207 * python/py-continueevent.c (emit_continue_event): Use
4208 copy-initialization.
4209 * python/py-exitedevent.c (create_exited_event_object): Return a
4211 (emit_exited_event): Use copy-initialization.
4212 * python/py-inferior.c (python_new_inferior)
4213 (python_inferior_deleted, add_thread_object): Use
4214 copy-initialization.
4215 * python/py-infevents.c (create_inferior_call_event_object)
4216 (create_register_changed_event_object)
4217 (create_memory_changed_event_object): Return a gdbpy_ref<>.
4218 (emit_inferior_call_event, emit_memory_changed_event)
4219 (emit_register_changed_event): Use copy-initialization.
4220 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4221 Return a gdbpy_ref<>.
4222 (emit_new_objfile_event): Use copy-initialization.
4223 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
4224 (emit_clear_objfiles_event): Use copy-initialization.
4225 * python/py-signalevent.c (create_signal_event_object): Use
4226 copy-initialization.
4227 * python/py-threadevent.c (create_thread_event_object): Use
4228 copy-initialization.
4230 2018-08-24 Pedro Alves <palves@redhat.com>
4231 Simon Marchi <simon.marchi@ericsson.com>
4234 * python/py-continueevent.c: Include "gdbthread.h".
4235 (create_continue_event_object): Add intro comment. Add 'ptid'
4236 parameter. Use it to find thread to pass to
4237 create_thread_event_object.
4238 (emit_continue_event): Pass PTID down to
4239 create_continue_event_object.
4240 * python/py-event.h (py_get_event_thread): Declare.
4241 (create_thread_event_object): Remove default from 'thread'
4243 * python/py-stopevent.c (create_stop_event_object): Use
4244 py_get_event_thread.
4245 * python/py-threadevent.c (get_event_thread): Rename to ...
4246 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
4247 and use it to find the thread.
4248 (create_thread_event_object): Assert that THREAD isn't null.
4249 Don't find the event thread here.
4251 2018-08-23 Kevin Buettner <kevinb@redhat.com>
4253 * block.h (blockrange, blockranges): New struct declarations.
4254 (struct block): Add new field named `ranges'.
4255 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
4256 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
4257 macros for accessing ranges in struct block.
4258 (make_blockranges): New declaration.
4259 block.c (make_blockranges): New function.
4260 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
4262 * symtab.h (find_pc_partial_function): Add new parameter `block'.
4263 * blockframe.c (cache_pc_function_block): New static global.
4264 (clear_pc_function_cache): Clear cache_pc_function_block.
4265 (find_pc_partial_function): Move comment to symtab.h. Add
4266 support for non-contiguous blocks.
4267 * cli/cli-cmds.c (block.h): Include.
4268 (print_disassembly): Handle printing of non-contiguous blocks.
4269 (disassemble_current_function): Likewise.
4270 (disassemble_command): Likewise.
4272 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
4274 * blockframe.c (get_pc_function_start): Likewise.
4275 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
4276 (gcc_symbol_address): Likewise.
4277 * compile/compile-object-run.c (compile_object_run): Likewise.
4278 * compile/compile.c (get_expr_block_and_pc): Likewise.
4279 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
4280 (func_addr_to_tail_call_list): Likewise.
4281 * findvar.c (default_read_var_value): Likewise.
4282 * inline-frame.c (inline_frame_this_id): Likewise.
4283 (skip-inline_frames): Likewise.
4284 * infcmd.c (until_next_command): Likewise.
4285 * linespec.c (convert_linespec_to_sals): Likewise.
4286 * parse.c (parse_exp_in_context_1): Likewise.
4287 * printcmd.c (build_address_symbolic): likewise.
4288 (info_address_command): Likewise.
4289 symtab.c (find_function_start_sal): Likewise.
4290 (skip_prologue_sal): Likewise.
4291 (find_function_alias_target): Likewise.
4292 (find_gnu_ifunc): Likewise.
4293 * stack.c (find_frame_funname): Likewise.
4294 * symtab.c (fixup_symbol_section): Likewise.
4295 (find_function_start_sal): Likewise.
4296 (skip_prologue_sal): Likewsie.
4297 (find_function_alias_target): Likewise.
4298 (find_gnu_ifunc): Likewise.
4299 * tracepoint.c (info_scope_command): Likewise.
4300 * value.c (value_fn_field): Likewise.
4302 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
4303 in place of find_pc_partial_function.
4304 * blockframe.c (find_function_entry_range_from_pc): New function.
4305 * symtab.h (find_function_entry_range_from_pc): Declare and document.
4306 * objfiles.c (objfile_relocate1): Relocate start and end addresses
4307 for each range in a block.
4310 2018-08-23 Xavier Roirand <roirand@adacore.com>
4312 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
4315 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4317 * solib-svr4.c (read_program_headers_from_bfd): Return
4318 gdb::optional<gdb::byte_vector>.
4319 (svr4_exec_displacement): Adjust.
4321 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4323 * solib-svr4.c (read_program_header): Return
4324 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
4325 (find_program_interpreter): Return
4326 gdb::optional<gdb::byte_vector>.
4327 (scan_dyntag_auxv): Adjust.
4328 (enable_break): Adjust.
4329 (svr4_exec_displacement): Adjust.
4331 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4333 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
4334 * inf-child.c (inf_child_target::terminal_save_inferior): New.
4336 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4338 * guile/scm-string.c (gdbscm_scm_from_printf): Use
4340 * guile/scm-utils.c (gdbscm_printf): Likewise.
4341 * serial.c (serial_printf): Likewise.
4342 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
4344 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
4346 * stack.c (print_frame): Print frame architecture when printing on
4348 * NEWS: Mention new "arch" attribute in frame output.
4350 2018-08-21 Alan Hayward <alan.hayward@arm.com>
4352 * arch/aarch64.h (aarch64_regnum): Update comment.
4354 2018-08-21 Alan Hayward <alan.hayward@arm.com>
4356 * NEWS: Add SVE to 8.2 section.
4358 2018-08-21 Pedro Alves <palves@redhat.com>
4360 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
4361 out from gdbscm_parse_function_args.
4362 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
4363 gdbscm_parse_function_args_1.
4365 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
4368 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
4371 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
4373 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
4375 2018-08-19 Michael Spang <spang@google.com>
4378 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
4379 for PT_TLS segments.
4381 2018-08-18 Kevin Buettner <kevinb@redhat.com>
4383 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
4384 dwarf_variable_value.
4385 * dwarf2-frame.c (class dwarf_expr_executor):
4386 Add override for dwarf_variable_value.
4387 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
4388 (class symbol_needs_eval_context): Likewise.
4389 (indirect_synthetic_pointer): Add forward declaration.
4390 (sect_variable_value): New function.
4391 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
4392 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
4393 for DW_OP_GNU_variable_value.
4395 2018-08-16 Tom Tromey <tom@tromey.com>
4397 * top.c (read_command_file): Update.
4398 (command_line_input): Remove "repeat" argument.
4399 * ada-lang.c (get_selections): Update.
4400 * linespec.c (decode_line_2): Update.
4401 * defs.h (command_line_input): Remove argument.
4402 * cli/cli-script.c (read_next_line): Update.
4403 * python/py-gdb-readline.c: Update.
4405 2018-08-17 Tom Tromey <tom@tromey.com>
4407 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
4410 2018-08-15 Tom Tromey <tom@tromey.com>
4412 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
4414 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
4416 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
4417 If used, use find_pc_partial_function to find address range
4419 * mi/mi-main.c (mi_cmd_list_features): Report
4420 "data-disassemble-a-option" feature.
4421 * NEWS: Mention new -data-disassemble option -a.
4423 2018-08-13 Tom Tromey <tom@tromey.com>
4425 * common/common-defs.h (_FORTIFY_SOURCE): Define.
4427 2018-08-13 Alan Hayward <alan.hayward@arm.com>
4429 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
4430 (aarch64_linux_collect_sve_regset): Likewise.
4431 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
4432 * regcache.h (regcache_map_entry_size): New function.
4434 2018-08-13 Alan Hayward <alan.hayward@arm.com>
4436 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
4437 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
4438 (SVE_HEADER_VL_LENGTH): Likewise.
4439 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
4440 (SVE_HEADER_FLAGS_LENGTH): Likewise.
4441 (SVE_HEADER_RESERVED_LENGTH): Likewise.
4442 (SVE_HEADER_SIZE_OFFSET): Likewise.
4443 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
4444 (SVE_HEADER_VL_OFFSET): Likewise.
4445 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
4446 (SVE_HEADER_FLAGS_OFFSET): Likewise.
4447 (SVE_HEADER_RESERVED_OFFSET): Likewise.
4448 (SVE_HEADER_SIZE): Likewise.
4449 (aarch64_linux_core_read_vq): Add function.
4450 (aarch64_linux_core_read_description): Check for SVE section.
4452 2018-08-13 Alan Hayward <alan.hayward@arm.com>
4454 * aarch64-fbsd-tdep.c
4455 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
4457 * aarch64-linux-tdep.c
4458 (aarch64_linux_iterate_over_regset_sections): Likewise.
4459 * alpha-linux-tdep.c
4460 (alpha_linux_iterate_over_regset_sections):
4462 (alphanbsd_iterate_over_regset_sections): Likewise.
4464 (amd64fbsd_iterate_over_regset_sections): Likewise.
4465 * amd64-linux-tdep.c
4466 (amd64_linux_iterate_over_regset_sections): Likewise.
4468 (armbsd_iterate_over_regset_sections): Likewise.
4470 (arm_fbsd_iterate_over_regset_sections): Likewise.
4472 (arm_linux_iterate_over_regset_sections): Likewise.
4473 * corelow.c (get_core_registers_cb): Likewise.
4474 (core_target::fetch_registers): Likewise.
4475 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
4476 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
4477 * gdbarch.h (void): Regenerate.
4478 * gdbarch.sh: Add supply_size and collect_size.
4479 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
4480 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
4481 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
4482 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
4483 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
4484 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
4485 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
4486 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
4487 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
4488 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
4489 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
4490 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
4491 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
4492 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
4493 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
4495 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
4496 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
4497 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
4498 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
4499 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
4500 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
4501 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
4503 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
4504 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
4505 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
4506 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
4507 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
4508 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
4509 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
4510 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
4512 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
4514 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
4517 2018-08-10 Keith Seitz <keiths@redhat.com>
4519 * compile/compile-c-support.c (add_code_header, add_code_footer):
4520 Move into policy class.
4521 (c_push_user_expression, pop_user_expression_nop)
4522 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
4523 (compile_program): New host class.
4524 (c_compile_program): New typedef.
4525 (c_compute_porgram): Use c_compile_program.
4527 2018-08-10 Keith Seitz <keiths@redhat.com>
4529 * compile/compile-internal.h (compile_instance::~compile_instance):
4530 Remove calls to htab_delete.
4531 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
4532 * compile.c (compile_instance::compile_instance): Initialize
4533 htab unique pointers.
4534 (compile_instance::get_cached_type, compile_instance::insert_type)
4535 (compile_instance::error_symbol_once): Update for unique_ptr.
4537 2018-08-10 Keith Seitz <keiths@redhat.com>
4539 * compile/compile-c-symbols.c (struct symbol_error)
4540 (hash_symbol_error, eq_symbol_error, del_symbol_error)
4541 (compile_instance::insert_symbol_error)
4542 (compile_instance::error_symbol_once): Move to ...
4543 * compile/compile.c: ... here.
4545 2018-08-10 Keith Seitz <keiths@redhat.com>
4547 * compile/compile-c-support.c (c_get_compile_context): Use `new'
4548 instead of `new_compile_instance'.
4549 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
4551 If the symbol error map is not initialized, create it.
4552 (generate_c_for_for_one_symbol): Do not check/initialize
4553 the symbol error map.
4554 * compile/compile-c-types.c (compile_c_instance): Make a class.
4556 (compile_instance::compile_instance): Initialize the type cache.
4557 (get_cached_type): New function.
4558 (insert_type): Update description.
4559 (compile_c_instance::m_default_cflags): Define.
4560 (convert_type): Update description. Use get_cached_type.
4561 (delete_instance): Moved to destructor.
4562 (new_compile_instance): Moved to constructor.
4563 * compile/compile-c.h (compile_c_instance): Make class inheriting
4564 from compile_instance.
4565 <base>: Remove field.
4566 <type_map, symbol_err_map>: Move to base class.
4567 <c_plugin>: Rename to `m_plugin' and remove pointer type.
4568 * compile/compile-internal.h (compile_instance): Make class.
4569 <type_map_t, symbol_err_map_t>: Define.
4570 <fe>: Rename to `m_gcc_fe'.
4571 <scope, block, gcc_target_options>: Add `m_' prefix.
4572 <m_type_map, m_symbol_err_map>: New fields, moved from
4575 (convert_type, new_compile_instance): Remove.
4576 * compile/compile.c (cleanup_compile_instance): Remove.
4577 (compile_to_object): Use unique_ptr to eliminate cleanups.
4578 (compile_instance::set_print_callback, compile_instance::version)
4579 (compile_instance::set_verbose)
4580 (compile_instance::set_driver_filename)
4581 (compile_instance::set_triplet_regexp)
4582 (compile_instance::set_arguments)
4583 (compile_instance::set_source_file)
4584 (compile_instance::compile): Define.
4586 2018-08-10 Keith Seitz <keiths@redhat.com>
4588 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
4589 * compile/compile-c-types.c: Define GCC_METHODN macros and include
4590 gcc-c-fe.def to define C plugin.
4591 (delete_instance): Delete `c_plugin'.
4592 (new_compile_instance): Initialize `c_plugin'.
4593 * compile/compile-c.h: Include gcc_c_plugin.h.
4594 (struct compile_c_instance) <c_plugin>: New member.
4595 * gcc-c-plugin.h: New file.
4596 Update all callers with API change.
4598 2018-08-10 Keith Seitz <keiths@redhat.com>
4600 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
4601 (HFILES_NO_SRCDIR): ... to here.
4602 Add compile-internal.h and compile-c.h.
4603 * compile/compile-c-support.c: Include compile-c.h.
4604 * compile/compile-c-symbols.c: Include compile-c.h.
4605 (generate_c_for_variable_locations): Update comment.
4606 * compile/compile-c-types.c: Include compile-c.h.
4607 * compile/compile-c.h: New file -- moved C language declarations
4608 from other files here.
4609 * compile/compile-internal.h: Do not include hashtab.h or
4610 common/enum-flags.h.
4611 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
4612 (gcc_convert_symbol, gcc_symbol_address)
4613 (generate_c_for_variable_locations, c_get_mode_for_size)
4614 (c_get_range_decl_name): Definitions moved to compile-c.h.
4615 * compile/compile-loc2c.c: Include compile-c.h.
4617 2018-08-10 Keith Seitz <keiths@redhat.com>
4619 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
4620 (c_symbol_substitution_name): ... this.
4623 2018-08-10 Keith Seitz <keiths@redhat.com>
4625 * compile/compile-c-support.c (c_compute_program): Use
4626 unique_xmalloc_ptr to eliminate cleanup.
4627 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
4628 Return a unique_xmalloc_ptr and eliminate cleanup.
4629 * compile/compile-internal.h (generate_c_for_variable_locations):
4630 Return unique_xmalloc_ptr and update description.
4632 2018-08-10 Alan Hayward <alan.hayward@arm.com>
4634 * corelow.c (core_target::get_core_register_section): Rename
4635 min_size to section_min_size.
4637 2018-08-09 Jim Wilson <jimw@sifive.com>
4639 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
4640 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
4641 * NEWS: Mention new GNU/Linux RISC-V target.
4642 * configure.host: Add riscv*-*-linux*.
4643 * configure.nat: Add riscv*.
4644 * configure.tgt: Add riscv*-*-linux*.
4645 * riscv-linux-nat.c: New file.
4646 * riscv-linux-tdep.c: New file.
4648 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4650 * infrun.c (resume): Make static, add forward declaration.
4651 (proceed): Update header comment.
4652 * infrun.h (resume): Delete declaration.
4654 2018-08-09 Tom Tromey <tom@tromey.com>
4656 * riscv-tdep.h: Minor formatting fixes.
4658 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
4660 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
4661 * dwarf-index-cache.c (create_dir_and_check): Likewise.
4662 (test_mkdir_recursive): Likewise.
4663 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
4665 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4667 * valarith.c (value_subscripted_rvalue): If an array is not in
4668 memory, and we don't know the upper bound, then we can't know that
4669 the requested element exists or not.
4671 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
4673 * target.c (str_comma_list_concat_elem): Fix typo in comment.
4674 (target_options_to_string): Add comment.
4676 2018-08-08 Tom Tromey <tom@tromey.com>
4678 * unittests/scoped_mmap-selftests.c: Check result of "write".
4680 2018-08-08 Jim Wilson <jimw@sifive.com>
4682 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
4683 (decode_register_index_short): New.
4684 (decode_j_type_insn, decode_cj_type_insn): New.
4685 (decode_b_type_insn, decode_cb_type_insn): New.
4686 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
4687 local xlen. Check xlen when decoding ambiguous compressed insns. In
4688 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
4689 is_c_sw_insn instead of is_sw_insn.
4690 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
4691 (riscv_software_single_step): New.
4692 * riscv-tdep.h (riscv_software_single_step): Declare.
4694 * riscv-tdep.c (riscv_isa_xlen): Drop static.
4695 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
4697 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
4700 * target.c (dispose_inferior): Don't dispose of inferiors that are
4703 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
4705 * remote.c (remote_target::download_tracepoint): Change char* to
4708 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4710 * target.h (target_options_to_string): Return an std::string.
4711 * target.c (str_comma_list_concat_elem): Return void, use
4713 (do_option): Likewise.
4714 (target_options_to_string): Return an std::string.
4715 * linux-nat.c (linux_nat_target::wait): Adjust.
4716 * target-debug.h (target_debug_print_options): Adjust.
4718 2018-08-07 Tom Tromey <tom@tromey.com>
4720 * Makefile.in (CPPFLAGS): New variable.
4721 (INTERNAL_CPPFLAGS): Use it.
4723 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4725 * NEWS: Mention the index cache.
4727 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4729 * common/pathstuff.h (get_standard_cache_dir): New.
4730 * common/pathstuff.c (get_standard_cache_dir): New.
4731 * build-id.h (build_id_to_string): New.
4732 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
4733 DEBUG_STR_SUFFIX): Move to here.
4734 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
4735 DEBUG_STR_SUFFIX): Move from there.
4736 (write_psymtabs_to_index): Make non-static, add basename
4737 parameter. Write to temporary files, rename when done.
4738 (save_gdb_index_command): Adjust call to
4739 write_psymtabs_to_index.
4740 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
4742 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
4743 (get_gdb_index_contents_from_cache): New.
4744 (get_gdb_index_contents_from_cache_dwz): New.
4745 (dwarf2_initialize_objfile): Read index from cache.
4746 (dwarf2_build_psymtabs): Save to index.
4747 * dwarf-index-cache.h: New file.
4748 * dwarf-index-cache.c: New file.
4749 * dwarf-index-write.h: New file.
4751 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4753 * gnulib/aclocal.m4: Re-generate.
4754 * gnulib/config.in: Re-generate.
4755 * gnulib/configure: Re-generate.
4756 * gnulib/import/Makefile.am: Re-generate.
4757 * gnulib/import/Makefile.in: Re-generate.
4758 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
4759 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4760 * gnulib/import/m4/mkdir.m4: New file.
4761 * gnulib/import/mkdir.c: New file.
4762 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
4765 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4767 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
4768 * common/scoped_mmap.c: New file.
4769 * common/scoped_mmap.h (destroy): New method.
4770 (~scoped_mmap, reset): Use destroy.
4771 (scoped_mmap): New move constructor.
4772 (mmap_file): New declaration.
4773 * unittests/scoped_mmap-selftests.c (test_normal,
4774 test_invalid_filename, run_tests): New functions.
4775 (_initialize_scoped_mmap_selftests): Register selftest.
4777 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4779 * dwarf2read.c (read_gdb_index_from_section): Rename to...
4780 (read_gdb_index_from_buffer): ... this. Remove section
4781 parameter, add buffer parameter.
4782 (get_gdb_index_contents_ftype,
4783 get_gdb_index_contents_dwz_ftype): New typedefs.
4784 (dwarf2_read_gdb_index): Add callback parameters to get the
4786 (get_gdb_index_contents_from_section): New.
4787 (dwarf2_initialize_objfile): Update call to
4788 dwarf2_read_gdb_index.
4790 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4792 * common/filestuff.h (gdb_fopen_cloexec): New overload.
4793 (gdb_open_cloexec): Likewise.
4794 * nat/linux-osdata.c (command_from_pid): Use string_printf.
4795 (commandline_from_pid): Likewise.
4796 (linux_xfer_osdata_threads): Likewise.
4797 (linux_xfer_osdata_fds): Likewise.
4798 * ada-lang.c (is_package_name): Likewise.
4799 * auxv.c (procfs_xfer_auxv): Likewise.
4800 * breakpoint.c (print_one_breakpoint_location): Use
4802 (print_one_catch_solib): Use string_printf.
4803 * coff-pe-read.c (add_pe_exported_sym): Likewise.
4804 (add_pe_forwarded_sym): Likewise.
4805 * dwarf2read.c (create_type_unit_group): Likewise.
4806 (build_error_marker_type): Likewise.
4807 * infcall.c (get_function_name): Likewise.
4808 * valprint.c (print_converted_chars_to_obstack): Likewise.
4809 * xtensa-tdep.c (xtensa_register_type): Likewise.
4811 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
4813 * remote.c (remote_target::download_tracepoint): Fix format
4816 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4818 * tracefile.c: Include common/byte-vector.h.
4819 (trace_save): Change type of buf to gdb::byte_vector. Initialize
4820 with trace_regblock_size if needed. Update uses of buf.
4822 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4824 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
4825 std::vector<unsigned char>.
4826 * tracepoint.c (collection_list::collection_list): Remove
4827 m_regs_mask initializer from initializer list. Resize
4828 m_regs_mask using the largest remote register number.
4829 (collection_list::add_remote_register): Remove size check on
4830 m_regs_mask. Use at to access element.
4831 (collection_list::stringify): Change type of temp_buf to
4832 gdb::char_vector. Update uses of temp_buf. Resize if needed to
4833 stringify the register mask. Use pack_hex_byte for the register
4836 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4838 * tracepoint.h (class collection_list) <add_register>: Remove.
4839 <add_remote_register, add_ax_registers, add_local_register>:
4841 <add_memrange>: Add scope parameter.
4842 * tracepoint.c (encode_actions_1): Likewise.
4843 (collection_list::add_register): Rename to ...
4844 (collection_list::add_remote_register): ... this. Update
4846 (collection_list::add_ax_registers, add_local_register): New
4848 (collection_list::add_memrange): Add scope parameter. Call
4849 add_local_register instead of add_register.
4850 (finalize_tracepoint_aexpr): New function.
4851 (collection_list::collect_symbol): Update calls to add_memrange.
4852 Call add_local_register instead of add_register. Call
4853 add_ax_registers. Call finalize_tracepoint_aexpr.
4854 (encode_actions_1): Get remote regnos for $reg action. Call
4855 add_remote_register, add_ax_registers, and add_local_register.
4856 Update call to add_memrange. Call finalize_tracepoint_aexpr.
4857 (validate_actionline): Call finalize_tracepoint_aexpr.
4859 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4861 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
4862 Replace array buf with gdb::char_vector buf, of size
4863 get_remote_packet_size (). Replace references to buf and
4864 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
4865 and xsnprintf with snprintf. Raise errors if the buffer is too
4868 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4870 * remote.c (remote_target::download_tracepoint): Fix the has_more
4871 predicate in the QTDP action list iteration.
4873 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4875 * remote.c (remote_target::download_tracepoint): Fix indentation
4878 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4880 * proc-api.c (_initialize_proc_api): Remove c, unused.
4881 * procfs.c (procfs_init_inferior): Remove signals, unused.
4882 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
4885 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
4886 Andrew Burgess <andrew.burgess@embecosm.com>
4888 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
4889 'W_STOPCODE (0)' as this could be ambiguous.
4891 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
4893 * ser-tcp.c (net_open): Fix thinko when deciding whether to
4894 disable TCP's Nagle algorithm (use "ai_protocol" instead of
4897 2018-08-02 Tom Tromey <tom@tromey.com>
4900 * dwarf2read.c (read_func_scope): Set symtab on template parameter
4902 (process_structure_scope): Likewise.
4904 2018-08-02 Xavier Roirand <roirand@adacore.com>
4907 * darwin-nat.c (darwin_kill_inferior): Fix handling of
4910 2018-08-02 Tom Tromey <tom@tromey.com>
4912 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
4913 (darwin_suspend_inferior, darwin_resume_inferior)
4914 (darwin_decode_notify_message, darwin_resume_inferior_threads)
4915 (darwin_check_new_threads): Check result of get_darwin_inferior.
4917 2018-07-31 Joel Brobecker <brobecker@adacore.com>
4921 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
4923 * varobj.c (varobj_get_path_expr_parent): Report an error if
4924 parent is a dynamic varobj.
4926 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4928 * gnulib/aclocal.m4: Re-generate.
4929 * gnulib/config.in: Re-generate.
4930 * gnulib/configure: Re-generate.
4931 * gnulib/import/Makefile.in: Re-generate.
4932 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4933 * gnulib/import/m4/onceonly.m4: Re-generate.
4935 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4937 * target-descriptions.c (struct xml_test_tdesc): New.
4938 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
4939 (record_xml_tdesc): Update.
4940 (maintenance_check_xml_descriptions): Update.
4941 * target-descriptions.h (record_xml_tdesc): Update comment.
4943 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
4945 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
4946 checking array bounds are defined.
4948 2018-07-30 Tom Tromey <tom@tromey.com>
4950 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
4951 irreflexivity violation.
4953 2018-07-30 Tom Tromey <tom@tromey.com>
4955 * cli/cli-decode.c (lookup_cmd): Remove lint code.
4956 * value.c (unpack_long): Remove lint code.
4957 * valops.c (value_ind): Remove lint code.
4958 * valarith.c (value_x_binop, value_x_unop, value_equal)
4959 (value_pos): Remove lint code.
4961 2018-07-28 Tom de Vries <tdevries@suse.de>
4963 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
4964 with undefined upper bound as <optimized out>.
4966 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
4968 * gcore.in: Rename variable "name" to "prefix". Expand
4971 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
4973 * windows-nat.c (windows_nat_target::create_inferior): Update to
4974 call close() in global namespace.
4976 2018-07-26 Tom Tromey <tom@tromey.com>
4978 * dwarf-index-write.c (add_address_entry): Don't add objfile
4980 * dbxread.c (find_stab_function): Rename from
4981 find_stab_function_addr. Return a bound_minimal_symbol.
4982 (read_dbx_symtab): Use raw_text_low, raw_text_high.
4983 Don't add objfile offsets.
4984 (end_psymtab): Use raw_text_low, raw_text_high,
4985 MSYMBOL_VALUE_RAW_ADDRESS.
4986 (read_ofile_symtab): Update.
4987 (process_one_symbol): Update.
4988 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
4990 (dw2_relocate): Remove.
4991 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
4993 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
4995 (process_psymtab_comp_unit_reader, add_partial_symbol)
4996 (add_partial_subprogram, dwarf2_ranges_read): Update.
4997 (load_partial_dies): Update.
4998 (add_address_entry): Don't add objfile offsets.
4999 (dwarf2_build_include_psymtabs): Update.
5000 (create_addrmap_from_aranges): Don't add objfile offsets.
5001 (dw2_find_pc_sect_compunit_symtab): Update.
5002 * mdebugread.c (parse_symbol): Don't add objfile offsets.
5003 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
5005 (parse_partial_symbols): Don't add objfile offsets. Use
5006 raw_text_low, raw_text_high. Update.
5007 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
5008 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
5009 or call 'relocate' quick function. Clear psymbol_map.
5010 * psympriv.h (struct partial_symbol) <address>: Add section
5012 <set_unrelocated_address>: Rename from set_address.
5013 <raw_text_low, raw_text_high>: New methods.
5014 <text_low, text_high>: Add objfile parameter.
5015 (add_psymbol_to_bcache): Add 'section' parameter. Call
5016 set_unrelocated_address.
5017 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5018 (find_pc_psymbol): Update.
5019 (fixup_psymbol_section, relocate_psymtabs): Remove.
5020 (dump_psymtab, psym_functions): Update.
5021 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
5023 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5024 (start_psymtab_common): Update.
5025 * symfile-debug.c (debug_qf_relocate): Remove.
5026 (debug_sym_quick_functions): Update.
5027 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
5028 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
5031 2018-07-26 Tom Tromey <tromey@redhat.com>
5033 * dbxread.c (end_psymtab): Use text_high_valid and
5035 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
5036 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
5037 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5039 <text_low_valid, text_high_valid>: New fields.
5040 <set_text_low, set_text_high>: Update.
5041 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
5043 2018-07-26 Tom Tromey <tom@tromey.com>
5045 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
5047 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
5048 textlow and texthigh fields.
5049 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
5051 * mdebugread.c (parse_lines, parse_partial_symbols)
5052 (psymtab_to_symtab_1): Update.
5053 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5054 Rename fields. Update comment. Now private.
5055 <text_low, text_high, set_text_low, set_text_high>: New methods.
5056 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5057 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
5058 (start_psymtab_common, maintenance_info_psymtabs)
5059 (maintenance_check_psymtabs): Update.
5060 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
5062 (scan_xcoff_symtab): Update.
5064 2018-07-26 Tom Tromey <tromey@redhat.com>
5066 * psympriv.h (struct partial_symbol) <unrelocated_address,
5067 address, set_address>: New methods.
5068 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
5069 (fixup_psymbol_section, relocate_psymtabs): Update.
5070 (print_partial_symbols): Add 'objfile' parameter. Update.
5071 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
5074 2018-07-26 Tom Tromey <tom@tromey.com>
5076 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5077 (debug_names::write_psymbols): Update.
5078 * psympriv.h (struct partial_symbol): Derive from
5079 general_symbol_info.
5080 <obj_section>: New method.
5081 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
5082 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5083 (find_pc_sect_psymbol, fixup_psymbol_section)
5084 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
5085 (print_partial_symbols, recursively_search_psymtabs)
5086 (compare_psymbols, psymbol_hash, psymbol_compare)
5087 (add_psymbol_to_bcache, maintenance_check_psymtabs)
5088 (psymbol_name_matches, psym_fill_psymbol_map): Update.
5090 2018-07-26 Tom Tromey <tromey@redhat.com>
5092 * dbxread.c (end_psymtab): Remove dead code.
5094 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
5096 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
5097 DWARF unwinders are disabled.
5098 * dwarf2-frame.c: Add dwarf2read.h include.
5099 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
5101 (dwarf2_frame_unwinders_enabled_p): Define.
5102 (show_dwarf_unwinders_enabled_p): New function.
5103 (_initialize_dwarf2_frame): Register switch to control DWARF
5105 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
5106 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
5107 (show_dwarf_cmdlist): Remove static keyword.
5108 * dwarf2read.h (set_dwarf_cmdlist): Declare.
5109 (show_dwarf_cmdlist): Declare.
5110 * NEWS: Document new feature.
5112 2018-07-26 Tom de Vries <tdevries@suse.de>
5114 PR breakpoints/23366
5115 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
5117 2018-07-26 Tom de Vries <tdevries@suse.de>
5119 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
5120 DW_AT_count can't be translated to a dynamic prop.
5122 2018-07-25 Tom de Vries <tdevries@suse.de>
5124 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
5127 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
5129 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
5131 2018-07-25 Joel Brobecker <brobecker@adacore.com>
5133 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
5135 2018-07-24 Keith Seitz <keiths@redhat.comt
5138 * dwarf2read.c (dw2_add_symbol_to_list): New function.
5139 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
5140 instead of add_symbol_to_list.
5141 (read_file_scope): Call prepare_one_comp_unit before reading
5144 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
5146 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
5148 2018-07-24 Tom Tromey <tom@tromey.com>
5150 * utils.c (malloc, realloc, free): Don't declare.
5151 * configure, config.in: Rebuild.
5152 * configure.ac: Don't check for declarations of free, malloc, or
5155 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5157 * aarch64-linux-nat.c
5158 (aarch64_linux_nat_target::stopped_data_address): Remove unused
5160 * arm-linux-nat.c (fetch_regs): Likewise.
5161 (store_regs): Likewise.
5162 (fetch_vfp_regs): Likewise.
5163 (store_vfp_regs): Likewise.
5164 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
5165 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
5166 (arm_linux_nat_target::insert_watchpoint): Likewise.
5167 (arm_linux_nat_target::remove_watchpoint): Likewise.
5168 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
5170 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
5172 * ppc-linux-nat.c (fetch_register): Likewise.
5173 (fetch_all_gp_regs): Likewise.
5174 (fetch_ppc_registers): Likewise.
5175 (store_all_gp_regs): Likewise.
5176 (store_ppc_registers): Likewise.
5177 (hwdebug_insert_point): Likewise.
5178 (can_use_watchpoint_cond_accel): Likewise.
5179 * remote-sim.c (gdb_os_write_stdout): Likewise.
5181 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5182 Tom Tromey <tom@tromey.com>
5184 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
5186 * configure: Rebuild.
5188 2018-07-22 Tom Tromey <tom@tromey.com>
5190 * regformats/regdat.sh: Define xmltarget_${name} inside
5191 #ifndef IN_PROCESS_AGENT.
5193 2018-07-22 Tom Tromey <tom@tromey.com>
5195 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
5197 2018-07-22 Tom Tromey <tom@tromey.com>
5199 * symfile.c (reread_symbols): Notify iter, not objfile.
5201 2018-07-22 Tom Tromey <tom@tromey.com>
5203 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
5205 (ravenscar_thread_target::prepare_to_store): Likewise.
5207 2018-07-22 Tom Tromey <tom@tromey.com>
5209 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
5210 unused variable. Call value_fetch_lazy when needed.
5211 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5212 Remove unused variable. Call value_fetch_lazy when needed.
5214 2018-07-22 Tom Tromey <tom@tromey.com>
5216 * m32c-tdep.c (mark_dma): Return void.
5217 (make_regs): Remove unused declarations.
5219 2018-07-22 Tom Tromey <tom@tromey.com>
5221 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
5222 cmdscm_get_valid_command_smob_arg_unsafe for effect.
5223 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
5224 bkscm_get_valid_block_smob_arg_unsafe for effect.
5226 2018-07-22 Tom Tromey <tom@tromey.com>
5228 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
5231 2018-07-22 Tom Tromey <tom@tromey.com>
5233 * windows-nat.c (saved_context): Conditionally define.
5234 * remote.c (remote_target::remote_btrace_maybe_reopen):
5235 Conditionally declare "warned".
5236 * inflow.c (sigquit_ours): Conditionally define.
5237 (new_tty): Move "tty" declaration inside #if.
5238 * guile/guile.c (guile_datadir): Conditionally define.
5239 * charset.c (set_be_le_names): Move some declarations inside #if.
5240 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
5242 (parse_xml_btrace_conf): Likewise.
5244 2018-07-22 Tom Tromey <tom@tromey.com>
5246 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
5248 2018-07-22 Tom Tromey <tom@tromey.com>
5250 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
5251 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
5252 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
5253 * buildsym-legacy.c (get_macro_table): Remove unused variable.
5254 * stack.c (frame_apply_level_command): Remove unused variable.
5255 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
5256 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
5257 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
5259 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
5260 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
5261 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
5263 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
5264 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
5266 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
5267 Remove unused variable.
5268 * cli/cli-script.c (recurse_read_control_structure): Remove unused
5270 * common/tdesc.c (print_xml_feature::visit): Remove unused
5272 * compile/compile-object-load.c (store_regs): Remove unused
5274 * complaints.c (clear_complaints): Remove unused variable.
5275 * corelow.c (core_target_open): Remove unused variable.
5276 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
5278 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
5280 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
5282 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
5284 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
5286 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
5288 * ia64-tdep.c (examine_prologue): Remove unused variable.
5289 * infcall.c (run_inferior_call): Remove unused variable.
5290 * inferior.c (exit_inferior): Remove unused variable.
5291 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
5292 * linespec.c (decode_line_2): Remove unused variable.
5293 * linux-nat.c (super_close): Remove.
5294 * linux-tdep.c (linux_info_proc): Remove unused variable.
5295 * mi/mi-main.c (mi_execute_command): Remove unused variable.
5296 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
5297 Remove unused variable.
5298 * parse.c (find_minsym_type_and_address): Remove unused variable.
5299 * printcmd.c (info_symbol_command, printf_floating): Remove unused
5301 * python/py-breakpoint.c (bppy_set_commands): Remove unused
5303 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
5305 * record-btrace.c (record_btrace_target::store_registers): Remove
5307 (cmd_show_record_btrace_cpu): Remove unused variable.
5308 * riscv-tdep.c (riscv_register_reggroup_p)
5309 (riscv_push_dummy_call, riscv_return_value): Remove unused
5311 * rust-exp.y (literal): Remove unused variable.
5312 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
5314 <STRUCTOP_ANONYMOUS>: Likewise.
5315 * s390-linux-tdep.c (s390_linux_init_abi_31)
5316 (s390_linux_init_abi_64): Remove unused variable.
5317 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
5318 (file_select_thread, net_windows_open, _initialize_ser_windows):
5319 Remove unused variables.
5320 * symtab.c (find_pc_sect_line): Remove unused variable.
5321 * target-memory.c (compute_garbled_blocks): Remove unused
5323 (target_write_memory_blocks): Remove unused variable.
5324 * target.c (target_stack::unpush): Remove unused variables.
5325 * tracepoint.c (start_tracing, all_tracepoint_actions)
5326 (merge_uploaded_trace_state_variables)
5327 (print_one_static_tracepoint_marker): Remove unused variable.
5328 * unittests/basic_string_view/element_access/char/1.cc (test01):
5329 Remove unused variable.
5330 * windows-nat.c (windows_continue, windows_add_all_dlls)
5331 (do_initial_windows_stuff, windows_nat_target::create_inferior):
5332 Remove unused variables.
5334 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5336 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
5337 attr_profile in HAVE_ELF.
5338 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
5341 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
5343 * frame.c (frame_register_unwind): Change parameter name.
5344 (frame_unwind_register): Likewise.
5345 (frame_unwind_register_value): Likewise.
5346 (frame_unwind_register_signed): Likewise.
5347 (frame_unwind_register_unsigned): Likewise.
5348 * frame.h (frame_register_unwind): Likewise.
5349 (frame_unwind_register): Likewise.
5350 (frame_unwind_register_value): Likewise.
5351 (frame_unwind_register_signed): Likewise.
5352 (frame_unwind_register_unsigned): Likewise.
5353 (frame_unwind_arch): Likewise.
5355 2018-07-20 Maciej W. Rozycki <macro@mips.com>
5357 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
5360 2018-07-20 Maciej W. Rozycki <macro@mips.com>
5362 * mips-linux-nat.c (mips_linux_nat_target::read_description):
5363 Call `get_ptrace_pid' rather than extracting the ptrace PID by
5366 2018-07-20 Keith Seitz <keiths@redhat.com>
5368 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
5369 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
5370 m_compunit_symtab, m_language>: Add "m_" prefix.
5372 * buildsym.c: Update all uses.
5374 2018-07-20 Tom Tromey <tom@tromey.com>
5376 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
5377 * buildsym.h (record_line_ftype): Remove typedef.
5379 2018-07-20 Tom Tromey <tom@tromey.com>
5381 * buildsym-legacy.h (augment_type_symtab): Don't declare.
5382 (end_expandable_symtab): Likewise.
5383 (end_symtab_get_static_block): Likewise.
5384 (end_symtab_from_static_block): Likewise.
5385 * buildsym-legacy.c (augment_type_symtab): Remove.
5386 (end_expandable_symtab): Remove.
5387 (end_symtab_get_static_block): Remove.
5388 (end_symtab_from_static_block): Remove.
5390 2018-07-20 Tom Tromey <tom@tromey.com>
5392 * dwarf2read.c: Include buildsym.h.
5393 (struct dwarf2_cu) <builder>: New method.
5394 (fixup_go_packaging): Update.
5395 (process_full_comp_unit, process_full_type_unit): Update. Don't
5396 use scoped_free_pendings.
5397 (using_directives): Add "cu" parameter, remove "language".
5398 (read_import_statement, setup_type_unit_groups, )
5399 (read_func_scope, read_lexical_block_scope)
5400 (dwarf2_record_block_ranges, read_namespace): Update.
5401 (lnp_state_machine::lnp_state_machine): Add cu parameter.
5402 (lnp_state_machine::handle_end_sequence): Update.
5403 (class lnp_state_machine) <m_cu>: New member.
5404 <m_record_line_callback>: Remove.
5405 <m_currently_recording_lines>: New member.
5406 (lnp_state_machine::handle_set_file): Update.
5407 (noop_record_line): Remove.
5408 (dwarf_record_line_p): Add cu parameter.
5409 (dwarf_record_line_1, dwarf_finish_line): Likewise.
5410 (lnp_state_machine::record_line)
5411 (lnp_state_machine::lnp_state_machine)
5412 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5413 (dwarf_decode_lines): Update.
5414 (dwarf2_start_subfile): Add cu parameter.
5415 (dwarf2_start_symtab, new_symbol): Update.
5416 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
5417 Remove dwarf2_per_objfile parameter.
5418 (dwarf_decode_macros): Update.
5420 2018-07-20 Tom Tromey <tom@tromey.com>
5422 * stabsread.c (define_symbol): Update.
5423 * buildsym-legacy.h (get_buildsym_compunit): Declare.
5424 * dwarf2read.c (new_symbol): Update.
5425 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
5426 * cp-namespace.c: Include buildsym.h.
5427 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
5428 * buildsym-legacy.c (get_buildsym_compunit): New function.
5430 2018-07-20 Tom Tromey <tom@tromey.com>
5432 * xcoffread.c: Include buildsym-legacy.h.
5433 * windows-nat.c: Include buildsym-legacy.h.
5434 * stabsread.c: Include buildsym-legacy.h.
5435 * mdebugread.c: Include buildsym-legacy.h.
5436 * buildsym-legacy.h: New file.
5437 * buildsym-legacy.c: New file, from buildsym.c.
5438 * go32-nat.c: Include buildsym-legacy.h.
5439 * dwarf2read.c: Include buildsym-legacy.h.
5440 * dbxread.c: Include buildsym-legacy.h.
5441 * cp-namespace.c: Include buildsym-legacy.h.
5442 * coffread.c: Include buildsym-legacy.h.
5443 * buildsym.h: Move some contents to buildsym-legacy.h.
5444 * buildsym.c: Include buildsym-legacy.h. Move many functions to
5446 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
5448 2018-07-20 Tom Tromey <tom@tromey.com>
5450 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
5451 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
5452 (buildsym_compunit::buildsym_compunit)
5453 (buildsym_compunit::~buildsym_compunit)
5454 (buildsym_compunit::get_macro_table): Define.
5456 2018-07-20 Tom Tromey <tom@tromey.com>
5458 * buildsym.c (reset_symtab_globals): Remove.
5459 (buildsym_compunit::end_symtab_from_static_block): Update.
5460 (buildsym_compunit::augment_type_symtab): Update.
5461 (end_symtab_from_static_block): Call free_buildsym_compunit.
5462 (augment_type_symtab, end_symtab, end_expandable_symtab):
5465 2018-07-20 Tom Tromey <tom@tromey.com>
5467 * arch-utils.c: Do not include buildsym.h.
5468 * mipsread.c: Do not include buildsym.h.
5469 * machoread.c: Do not include buildsym.h.
5470 * elfread.c: Do not include buildsym.h.
5472 2018-07-20 Tom Tromey <tom@tromey.com>
5474 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
5476 (buildsym_compunit): Add new constructor.
5477 (struct buildsym_compunit) <get_last_source_file, finish_block,
5478 record_block_range, start_subfile, patch_subfile_names,
5479 push_subfile, pop_subfile, record_line, get_compunit_symtab,
5480 set_last_source_start_addr, get_last_source_start_addr,
5481 get_local_using_directives, set_local_using_directives,
5482 get_global_using_directives, outermost_context_p,
5483 get_current_context_stack, get_context_stack_depth,
5484 get_current_subfile, get_local_symbols, get_file_symbols,
5485 get_global_symbols, record_debugformat, record_producer,
5486 push_context, pop_context, end_symtab_get_static_block,
5487 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
5489 <record_pending_block, finish_block_internal, make_blockvector,
5490 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
5494 2018-05-22 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.c (record_pending_block): Move earlier. Remove objfile
5504 (finish_block_internal): Update.
5506 2018-07-20 Tom Tromey <tom@tromey.com>
5508 * buildsym.h (EXTERN): Don't define or undef.
5509 * buildsym.c (EXTERN): Don't define.
5511 2018-07-20 Tom Tromey <tom@tromey.com>
5513 * buildsym.c: Remove TODO comment.
5515 2018-07-20 Tom Tromey <tom@tromey.com>
5517 * coffread.c (coff_symtab_read): Update.
5518 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5519 (xcoff_new_init): Update.
5520 * mipsread.c (mipscoff_new_init): Update.
5521 * mdebugread.c (mdebug_build_psymtabs): Update.
5522 * elfread.c (elf_new_init): Update.
5523 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
5525 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
5526 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5527 (stabsect_build_psymtabs): Update.
5528 * buildsym.h (buildsym_init): Don't declare.
5529 * buildsym.c: Update comment.
5530 (prepare_for_building): Remove.
5531 (start_symtab, restart_symtab): Update.
5532 (reset_symtab_globals): Update comment.
5533 (buildsym_init): Remove.
5535 2018-07-20 Tom Tromey <tom@tromey.com>
5537 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
5538 * stabsread.c (patch_block_stabs, define_symbol, read_type)
5539 (read_enum_type, common_block_start, common_block_end)
5540 (cleanup_undefined_types_1, finish_global_stabs): Update.
5541 * mdebugread.c (psymtab_to_symtab_1): Update.
5542 * dwarf2read.c (fixup_go_packaging, read_func_scope)
5543 (read_lexical_block_scope, new_symbol): Update.
5544 * dbxread.c (process_one_symbol): Update.
5545 * coffread.c (coff_symtab_read, process_coff_symbol)
5546 (coff_read_enum_type): Update.
5547 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
5549 (get_local_symbols, get_file_symbols, get_global_symbols): New
5551 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
5553 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
5554 (~scoped_free_pendings): Update.
5555 (finish_block, prepare_for_building, reset_symtab_globals)
5556 (end_symtab_get_static_block, end_symtab_with_blockvector)
5557 (augment_type_symtab, push_context): Update.
5558 (get_local_symbols, get_file_symbols, get_global_symbols): New
5560 (buildsym_init): Update.
5562 2018-07-20 Tom Tromey <tom@tromey.com>
5564 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
5565 (process_full_type_unit): Likewise.
5566 (dwarf2_start_symtab): Set list_in_scope.
5568 2018-07-20 Tom Tromey <tom@tromey.com>
5570 * dwarf2read.c (process_psymtab_comp_unit_reader)
5571 (build_type_psymtabs_reader): Do not set list_in_scope.
5573 2018-07-20 Tom Tromey <tom@tromey.com>
5575 * buildsym.c (free_pendings): Remove.
5576 (add_symbol_to_list, scoped_free_pendings)
5577 (finish_block_internal, buildsym_init): Update.
5579 2018-07-20 Tom Tromey <tom@tromey.com>
5581 * xcoffread.c (read_xcoff_symtab): Update.
5582 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
5584 * dbxread.c (process_one_symbol): Update.
5585 * coffread.c (coff_symtab_read): Update.
5586 * buildsym.h (finish_block): Update.
5587 * buildsym.c (finish_block): Remove "listhead" argument.
5588 (end_symtab_get_static_block): Update.
5590 2018-07-20 Tom Tromey <tom@tromey.com>
5592 * buildsym.h (class scoped_free_pendings): Remove constructor.
5593 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
5595 <m_pending_block_obstack, m_pending_blocks>: New members.
5596 (pending_block_obstack, pending_blocks): Remove.
5597 (scoped_free_pendings::scoped_free_pendings): Default.
5598 (~scoped_free_pendings): Update.
5599 (free_pending_blocks): Remove.
5600 (finish_block_internal, record_pending_block, make_blockvector)
5601 (end_symtab_get_static_block, augment_type_symtab, push_context)
5602 (buildsym_init): Update.
5604 2018-07-20 Tom Tromey <tom@tromey.com>
5606 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
5607 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
5609 (pending_addrmap, pending_addrmap_obstack)
5610 (pending_addrmap_interesting): Remove.
5611 (scoped_free_pendings, record_block_range, make_blockvector)
5612 (prepare_for_building, reset_symtab_globals, buildsym_init):
5615 2018-07-20 Tom Tromey <tom@tromey.com>
5617 * xcoffread.c (process_linenos): Update.
5618 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
5619 * mdebugread.c (psymtab_to_symtab_1): Update.
5620 * dwarf2read.c (setup_type_unit_groups)
5621 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
5622 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
5623 * dbxread.c (process_one_symbol): Update.
5624 * coffread.c (coff_symtab_read, enter_linenos)
5625 (process_coff_symbol): Update.
5626 * buildsym.h (current_subfile): Don't declare.
5627 (get_current_subfile): Declare.
5628 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
5630 (start_subfile, free_buildsym_compunit, push_subfile)
5631 (prepare_for_building, start_symtab): Update.
5632 (get_current_subfile): New function.
5634 2018-07-20 Tom Tromey <tom@tromey.com>
5636 * coffread.c (coff_symtab_read): Update.
5637 * xcoffread.c (read_xcoff_symtab): Update.
5638 * dwarf2read.c (new_symbol): Update.
5639 (read_func_scope, read_lexical_block_scope): Update.
5640 * dbxread.c (process_one_symbol): Update.
5641 * buildsym.h (context_stack, context_stack_depth): Don't declare.
5642 (outermost_context_p): Remove macro.
5643 (outermost_context_p, get_current_context_stack)
5644 (get_context_stack_depth): Declare.
5645 (pop_context): Return struct context_stack.
5646 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
5648 (context_stack_size): Remove.
5649 (INITIAL_CONTEXT_STACK_SIZE): Remove.
5650 (prepare_for_building, end_symtab_get_static_block)
5651 (augment_type_symtab, push_context): Update.
5652 (pop_context): Return struct context_stack.
5653 (outermost_context_p, get_current_context_stack)
5654 (get_context_stack_depth): New functions.
5655 (buildsym_init): Update.
5657 2018-07-20 Tom Tromey <tom@tromey.com>
5659 * rust-exp.y: Now a pure parser. Update all rules.
5660 (%union): Move earlier.
5661 (current_parser, work_obstack): Remove globals.
5662 (rust_parser, ~rust_parser): Update.
5663 (class rust_parser) <copy_name, concat3, crate_name, super_name,
5664 lex_character, lex_number, lex_string, lex_identifier,
5665 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
5666 convert_name, convert_params_to_expression,
5667 convert_ast_to_expression, ast_basic_type, ast_operation,
5668 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
5669 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
5670 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
5671 ast_array_type, ast_slice_type, ast_reference_type,
5672 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
5673 (rust_parse): Update.
5674 (rustyyerror, rustyylex): Add parser parameter.
5675 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
5676 (rust_lex_stringish_test, rust_lex_test_sequence)
5677 (rust_lex_test_trailing_dot, rust_lex_test_completion)
5678 (rust_lex_test_push_back, rust_lex_tests): Update.
5680 2018-07-19 Pedro Alves <palves@redhat.com>
5682 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
5683 gdb::unique_xmalloc_ptr.
5684 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
5685 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
5686 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
5687 copy-initialization.
5688 * guile/scm-pretty-print.c (ppscm_print_children): Use
5689 gdb::unique_xmalloc_ptr instead of cleanups.
5690 (gdbscm_apply_val_pretty_printer): Remove cleanups.
5691 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
5692 gdb::unique_xmalloc_ptr.
5693 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5694 Adjust to use gdb::unique_xmalloc_ptr.
5695 * guile/scm-utils.c (extract_arg): Adjust.
5696 * guile/scm-value.c (gdbscm_value_field): Adjust to use
5697 gdb::unique_xmalloc_ptr instead of a cleanup.
5699 2018-07-19 Tom Tromey <tom@tromey.com>
5701 * utils.c (do_value_free_to_mark)
5702 (make_cleanup_value_free_to_mark): Remove.
5703 * utils.h (make_cleanup_value_free_to_mark): Remove.
5705 2018-07-19 Pedro Alves <palves@redhat.com>
5707 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
5708 forwarding reference.
5710 2018-07-18 Pedro Alves <palves@redhat.com>
5712 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
5713 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
5716 2018-07-18 Pedro Alves <palves@redhat.com>
5718 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
5720 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
5722 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
5723 directly instead of a cleanup.
5724 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
5725 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
5726 (vlscm_binop_gdbthrow): New, factored out from ...
5727 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
5728 (vlscm_rich_compare): Use gdbscm_wrap.
5729 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
5730 instead of a cleanup.
5731 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
5733 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5734 Use xfree directly instead of a cleanup.
5735 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
5736 Adjust to use gdbscm_wrap and scoped_value_mark.
5737 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
5738 (gdbscm_value_address, gdbscm_value_dereference)
5739 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
5741 (gdbscm_value_dynamic_type): Use scoped_value_mark.
5742 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
5744 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
5745 gdbscm_wrap and scoped_value_mark.
5746 (gdbscm_value_to_string): Use xfree directly instead of a
5747 cleanup. Move 'buffer' unique_ptr to TRY scope.
5748 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
5749 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
5751 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
5752 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
5754 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
5757 2018-07-18 Tom de Vries <tdevries@suse.de>
5759 * findvar.c (default_read_var_value): Also resolve dynamic type for
5760 LOC_OPTIMIZED_OUT vars.
5762 2018-07-18 Maciej W. Rozycki <macro@mips.com>
5764 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
5767 2018-07-17 Tom Tromey <tom@tromey.com>
5769 * guile/scm-param.c (pascm_set_func, pascm_show_func)
5770 (compute_enum_list, pascm_set_param_value_x)
5771 (gdbscm_parameter_value): Update.
5772 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
5773 (gdbscm_scm_to_host_string): Update.
5774 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
5776 * guile/scm-cmd.c (cmdscm_add_completion): Update.
5777 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
5778 * guile/scm-string.c (gdbscm_scm_to_string): Return
5780 (gdbscm_scm_to_host_string): Likewise.
5782 2018-07-17 Tom Tromey <tom@tromey.com>
5784 * guile/guile.c (gdbscm_eval_from_control_command): Update.
5785 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
5786 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
5787 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
5790 2018-07-17 Tom Tromey <tom@tromey.com>
5792 * guile/scm-param.c (pascm_signal_setshow_error): Update.
5793 * guile/guile-internal.h (gdbscm_exception_message_to_string):
5795 * guile/scm-cmd.c (cmdscm_function): Update.
5796 * guile/scm-pretty-print.c
5797 (ppscm_print_exception_unless_memory_error): Update.
5798 * guile/scm-exception.c (gdbscm_exception_message_to_string):
5799 Return unique_xmalloc_ptr.
5801 2018-07-17 Tom Tromey <tom@tromey.com>
5803 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
5806 2018-07-17 Jim Wilson <jimw@sifive.com>
5808 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
5809 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
5810 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
5811 unecessary braces after EF_RISCV_RVC test. Delete call to
5812 set_gdbarch_decr_pc_after_break.
5814 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
5815 RISCV_LAST_FP_REGNUM + 1.
5816 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
5818 2018-07-17 Tom Tromey <tom@tromey.com>
5820 * configure.ac: Remove --disable-gdbcli.
5821 * configure: Rebuild.
5822 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
5823 (SUBDIR_CLI_CFLAGS): Remove.
5824 (SFILES): Use SUBDIR_CLI_SRCS.
5825 (COMMON_OBS): Use SUBDIR_CLI_OBS.
5827 2018-07-17 Tom Tromey <tom@tromey.com>
5830 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
5832 2018-07-16 Jim Wilson <jimw@sifive.com>
5834 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
5836 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5838 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
5840 (libunwind_frame_sniffer): Likewise.
5841 (libunwind_frame_prev_register): Likewise.
5842 (libunwind_sigtramp_frame_sniffer): Likewise.
5843 * ia64-tdep.c (ia64_access_reg): Likewise.
5844 (ia64_access_rse_reg): Likewise.
5845 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
5846 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
5848 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5850 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
5852 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5854 * remote-sim.c (gdbsim_target::close,
5855 gdbsim_target::mourn_inferior): Remove unused variables.
5857 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
5859 * ia64-tdep.c (ktab_buf): New global.
5860 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
5861 (get_kernel_table): Adjust.
5863 2018-07-16 Tom Tromey <tom@tromey.com>
5865 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
5866 * dwarf2read.c (using_directives, new_symbol): Use
5867 outermost_context_p.
5868 * dbxread.c (process_one_symbol): Use outermost_context_p.
5869 * coffread.c (coff_symtab_read): Use outermost_context_p.
5871 2018-07-16 Tom Tromey <tom@tromey.com>
5873 * dwarf2read.c (using_directives, read_func_scope)
5874 (read_lexical_block_scope): Update.
5875 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5876 * buildsym.h (local_using_directives, global_using_directives):
5878 (get_local_using_directives, set_local_using_directives)
5879 (get_global_using_directives): Declare.
5880 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
5881 m_global_using_directives>: New members.
5882 (finish_block_internal, prepare_for_building)
5883 (reset_symtab_globals, end_symtab_get_static_block)
5884 (push_context): Update.
5885 (get_local_using_directives, set_local_using_directives)
5886 (get_global_using_directives): New functions.
5887 (buildsym_init): Update.
5889 2018-07-16 Tom Tromey <tom@tromey.com>
5891 * xcoffread.c (xcoff_initial_scan): Don't call
5892 free_pending_blocks.
5893 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
5894 * buildsym.h (class scoped_free_pendings): Add constructor.
5895 (free_pending_blocks): Don't declare.
5896 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
5897 (free_pending_blocks): Now static.
5899 2018-07-16 Tom Tromey <tom@tromey.com>
5901 * buildsym.h (push_subfile, pop_subfile): Update declarations.
5902 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
5904 (struct subfile_stack): Remove.
5905 (subfile_stack): Remove.
5906 (push_subfile, pop_subfile, buildsym_init): Update.
5908 2018-07-16 Tom Tromey <tom@tromey.com>
5910 * buildsym.c (push_subfile): Use gdb_assert.
5911 (pop_subfile): Use gdb_assert.
5913 2018-07-16 Tom Tromey <tom@tromey.com>
5915 * buildsym.h (merge_symbol_lists): Remove.
5916 * buildsym.c (merge_symbol_lists): Remove.
5918 2018-07-16 Tom Tromey <tom@tromey.com>
5920 * stabsread.c (scan_file_globals): Update comment.
5921 * stabsread.h (scan_file_globals): Move from buildsym.h.
5922 * buildsym.h (scan_file_globals): Move to stabsread.h.
5924 2018-07-16 Tom Tromey <tom@tromey.com>
5926 * xcoffread.c (xcoff_new_init): Update.
5927 * mipsread.c (mipscoff_new_init): Update.
5928 * mdebugread.c (mdebug_build_psymtabs): Update.
5929 * elfread.c (elf_new_init): Update.
5930 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
5931 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
5932 * buildsym.h (buildsym_new_init): Don't declare.
5933 * buildsym.c (buildsym_new_init): Remove.
5935 2018-07-16 Tom Tromey <tom@tromey.com>
5937 * stabsread.h (within_function): Move from buildsym.h.
5938 * stabsread.c (start_stabs): Clear within_function.
5939 * coffread.c (coff_start_symtab): Clear within_function.
5940 * buildsym.h (within_function): Move to stabsread.h.
5941 * buildsym.c (prepare_for_building): Update.
5943 2018-07-16 Tom Tromey <tom@tromey.com>
5945 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
5946 * dwarf2read.c (dwarf2_start_symtab): Don't set
5947 processing_gcc_compilation.
5948 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
5950 2018-07-16 Tom Tromey <tom@tromey.com>
5952 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
5953 (next_symbol_text_func): Move from buildsym.h.
5954 * stabsread.c (hashname): Move from buildsym.c.
5955 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
5956 (next_symbol_text_func, hashname): Move to stabsread.h.
5957 * buildsym.c: Don't include bcache.h
5958 (hashname): Move to stasbread.c.
5960 2018-07-16 Tom Tromey <tom@tromey.com>
5962 * buildsym.h (context_stack_size): Don't declare.
5963 * buildsym.c (context_stack_size): New global.
5965 2018-07-16 Tom Tromey <tom@tromey.com>
5967 * dbxread.c (processing_acc_compilation): New global.
5968 * buildsym.h (processing_acc_compilation): Don't declare.
5970 2018-07-16 Tom Tromey <tom@tromey.com>
5972 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
5973 * dbxread.c (read_ofile_symtab): Update.
5974 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
5975 * buildsym.h (last_source_start_addr): Remove.
5976 (set_last_source_start_addr, get_last_source_start_addr):
5978 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
5980 (struct buildsym_compunit) <m_last_source_start_addr>: New
5982 (prepare_for_building): Remove start_addr parameter.
5983 (start_symtab, restart_symtab, end_symtab_get_static_block)
5984 (end_symtab_with_blockvector): Update.
5985 (set_last_source_start_addr, get_last_source_start_addr): New
5988 2018-07-16 Tom Tromey <tom@tromey.com>
5990 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
5992 (have_line_numbers): Remove.
5993 (record_line, prepare_for_building, end_symtab_get_static_block)
5994 (augment_type_symtab): Update.
5996 2018-07-16 Tom Tromey <tom@tromey.com>
5998 * buildsym.c (~buildsym_compunit): Free the macro table.
5999 (struct buildsym_compunit) <get_macro_table, release_macros>: New
6001 <m_pending_macros>: New member.
6002 (pending_macros): Remove.
6003 (~scoped_free_pendings, get_macro_table, prepare_for_building)
6004 (reset_symtab_globals, end_symtab_get_static_block)
6005 (end_symtab_with_blockvector, augment_type_symtab)
6006 (buildsym_init): Update.
6008 2018-07-16 Tom Tromey <tom@tromey.com>
6010 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
6012 (buildsym_compunit::set_last_source_file): New method.
6013 <m_last_source_file>: New member.
6014 (prepare_for_building): Remove "name" parameter.
6015 (start_symtab, restart_symtab, reset_symtab_globals): Update.
6016 (last_source_file): Remove.
6017 (set_last_source_file, get_last_source_file): Update.
6019 2018-07-16 Tom Tromey <tom@tromey.com>
6021 * buildsym.c (prepare_for_building): Add assert.
6023 2018-07-16 Tom Tromey <tom@tromey.com>
6025 * buildsym.c (~buildsym_compunit): Update.
6026 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
6027 (start_subfile, patch_subfile_names)
6028 (end_symtab_with_blockvector): Update.
6030 2018-07-16 Tom Tromey <tom@tromey.com>
6032 * buildsym.c (struct buildsym_compunit): Add constructor,
6033 destructor, initializers.
6034 (start_buildsym_compunit): Remove.
6035 (free_buildsym_compunit): Use "delete".
6036 (start_symtab, restart_symtab): Use "new".
6038 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
6040 * symfile.c (set_objfile_default_section_offset): Remove struct
6043 2018-07-14 Stafford Horne <shorne@gmail.com>
6045 * (Responsible Maintainers): Add myself as or1k maintainer.
6047 2018-07-13 Tom Tromey <tom@tromey.com>
6049 * symfile.c (set_objfile_default_section_offset): Use extra braces
6052 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6054 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
6057 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6059 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6060 unittests/cli-utils-selftests.c
6061 * unittests/cli-utils-selftests.c: New file.
6063 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6065 * NEWS: Mention new commands. Mention change to 'thread apply'.
6067 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6069 * thread.c (thr_try_catch_cmd): New function.
6070 (thread_apply_all_command): Handle qcs flags.
6071 (thread_apply_command): Handle qcs flags.
6072 (taas_command): New function.
6073 (tfaas_command): New function.
6074 (_initialize_thread): Update to setup the new commands 'taas
6075 and 'tfaas'. Change doc string for 'thread apply'.
6077 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6079 * stack.c: (trailing_outermost_frame): New function, mostly
6080 extracted from backtrace_command_1.
6081 (leading_innermost_frame): New function.
6082 (backtrace_command_1): Update to call trailing_outermost_frame.
6083 (frame_apply_command_count): New function.
6084 (frame_apply_level_command): New function.
6085 (frame_apply_all_command): New function.
6086 (frame_apply_command): New function.
6087 (faas_command): New function.
6088 (frame_cmd_list): New variable.
6089 (_initialize_stack): Update to setup the new commands 'frame apply'
6092 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6094 * cli-utils.c (number_or_range_parser::get_number): Only handle
6095 numbers or convenience var as numbers.
6096 (parse_flags): New function.
6097 (parse_flags_qcs): New function.
6098 (number_or_range_parser::finished): Ensure parsing end is detected
6099 before end of string.
6100 * cli-utils.h (parse_flags): New function.
6101 (parse_flags_qcs): New function.
6102 (number_or_range_parser): Remove m_finished bool.
6103 (number_or_range_parser::skip_range): Set m_in_range to false.
6105 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
6107 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
6110 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6111 Jan Kratochvil <jan.kratochvil@redhat.com>
6112 Paul Fertser <fercerpav@gmail.com>
6113 Tsutomu Seki <sekiriki@gmail.com>
6114 Pedro Alves <palves@redhat.com>
6116 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6117 'unittests/parse-connection-spec-selftests.c'.
6118 (COMMON_SFILES): Add 'common/netstuff.c'.
6119 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
6120 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
6121 * common/netstuff.c: New file.
6122 * common/netstuff.h: New file.
6123 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
6124 (wait_for_connect): Update comment. New parameter
6125 'gdb::optional<int> sock' instead of 'struct serial *scb'.
6126 Use 'sock' directly instead of 'scb->fd'.
6127 (try_connect): New function, with code from 'net_open'.
6128 (net_open): Rewrite main loop to deal with multiple
6129 sockets/addresses. Handle IPv6-style hostnames; implement
6130 support for IPv6 connections.
6131 * unittests/parse-connection-spec-selftests.c: New file.
6133 2018-07-11 Pedro Alves <palves@redhat.com>
6136 * remote.c (remote_target::remote_detach_pid): Call
6137 set_current_process.
6139 2018-07-11 Pedro Alves <palves@redhat.com>
6141 * h8300-tdep.c (h8300_gdbarch_init): Remove
6142 set_gdbarch_ecoff_reg_to_regnum calls.
6144 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6147 * c-typeprint.c (c_type_print_base_struct_union): Don't print
6148 offsets/sizes for static members of a class/struct.
6150 2018-07-11 Alan Hayward <alan.hayward@arm.com>
6152 * target-descriptions.c (tdesc_register_bitsize): Rename.
6153 * target-descriptions.h (tdesc_register_bitsize): Likewise.
6154 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
6155 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
6157 2018-07-10 Tom Tromey <tom@tromey.com>
6159 * breakpoint.c (moribund_locations): Now static and a
6161 (breakpoint_init_inferior, moribund_breakpoint_here_p)
6162 (build_bpstat_chain, update_global_location_list)
6163 (breakpoint_retire_moribund): Update.
6164 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
6167 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6169 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
6170 (riscv_register_reggroup_p): Use new function, remove unneeded
6172 (riscv_push_dummy_call): Extend assert to compare against xlen or
6173 flen based on register type.
6175 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6177 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
6179 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6181 * remote.c (show_hardware_watchpoint_limit): New function.
6182 (show_hardware_watchpoint_length_limit): New function.
6183 (show_hardware_breakpoint_limit): New function.
6184 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
6185 where appropriate, update help text.
6187 2018-07-09 Tom Tromey <tom@tromey.com>
6189 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
6190 (CLIBS): Don't mention NAT_CLIBS.
6192 2018-07-09 Tom Tromey <tom@tromey.com>
6194 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
6195 (LIBGDB_OBS, clean mostlyclean): Update.
6196 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
6198 2018-07-09 Tom Tromey <tom@tromey.com>
6200 * Makefile.in (%.c: %.y): Use ECHO_YACC.
6201 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
6202 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
6204 2018-07-09 Tom Tromey <tom@tromey.com>
6206 * Makefile.in (ALLDEPFILES): Remove exec.c.
6207 (COMMON_OBS): Remove exec.o.
6208 (COMMON_SFILES): Add exec.c.
6210 2018-07-09 Tom Tromey <tom@tromey.com>
6212 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
6214 2018-07-09 Tom Tromey <tom@tromey.com>
6216 * Makefile.in (clean mostlyclean): Remove stamp-version.
6217 (version.c): Depend on stamp-version.
6218 (stamp-version): New rule, from version.c rule.
6220 2018-07-09 Tom Tromey <tom@tromey.com>
6222 * Makefile.in (init.c): Depend on stamp-init.
6223 (stamp-init): New rule, from init.c rule.
6224 (clean mostlyclean): Remove stamp-init.
6226 2018-07-09 Tom Tromey <tom@tromey.com>
6228 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
6229 SUBDIR_GCC_COMPILE_SRCS.
6231 2018-07-09 Tom Tromey <tom@tromey.com>
6233 * Makefile.in (init.c): Remove some unused sed rules.
6235 2018-07-09 Tom Tromey <tom@tromey.com>
6237 * Makefile.in (TSOBS): Remove.
6238 (INIT_FILES): Update.
6239 (LIBGDB_OBS): Update.
6240 (COMMON_SFILES): Add inflow.c.
6241 (SFILES): Remove inflow.c.
6243 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6245 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
6247 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
6249 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
6250 get_saveloc_name, is_signal_frame_name, step_name,
6251 init_remote_name, create_addr_space_name,
6252 destroy_addr_space_name, search_unwind_table_name,
6253 find_dyn_list_name): Constify.
6255 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
6257 * darwin-nat.c (darwin_pthread_kill): New function.
6258 (darwin_resume_thread): Use darwin_pthread_kill.
6260 2018-07-05 Tom de Vries <tdevries@suse.de>
6262 * macroexp.c (macro_buffer) <operator=>: New member function.
6264 2018-07-04 Tom Tromey <tom@tromey.com>
6266 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
6268 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
6270 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
6271 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
6272 * maint.c: Likewise.
6275 2018-07-04 Joel Brobecker <brobecker@adacore.com>
6277 * NEWS: Create a new section for the next release branch.
6278 Rename the section of the current branch, now that it has
6281 2018-07-04 Joel Brobecker <brobecker@adacore.com>
6283 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
6284 * version.in: Bump version to 8.2.50.DATE-git.
6286 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6287 Pedro Alves <palves@redhat.com>
6289 * linux-nat.c (linux_init_ptrace): Rename to ...
6290 (linux_init_ptrace_procfs): ... this. Call
6291 linux_proc_init_warnings.
6292 (linux_nat_target::post_attach)
6293 (linux_nat_target::post_startup_inferior): Adjust.
6294 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
6295 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
6297 2018-07-04 Tom de Vries <tdevries@suse.de>
6299 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
6301 (read_comp_unit_head): ... here.
6303 2018-07-03 Tom Tromey <tom@tromey.com>
6305 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
6306 (stop_tracing, tstatus_command)
6307 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
6308 (print_one_static_tracepoint_marker): Update.
6309 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
6311 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
6313 (all_tracepoints, static_tracepoints_here): Return std::vector.
6315 2018-07-03 Tom Tromey <tom@tromey.com>
6317 * common/ptid.c (ptid_equal): Remove.
6318 * common/ptid.h (ptid_equal): Don't declare.
6319 * ada-tasks.c: Update.
6320 * breakpoint.c: Update.
6321 * common/agent.c: Update.
6322 * corelow.c: Update.
6323 * darwin-nat-info.c: Update.
6324 * darwin-nat.c: Update.
6326 * dtrace-probe.c: Update.
6327 * dummy-frame.c: Update.
6328 * fbsd-nat.c: Update.
6330 * gdbthread.h: Update.
6331 * gnu-nat.c: Update.
6332 * go32-nat.c: Update.
6333 * inf-loop.c: Update.
6334 * inf-ptrace.c: Update.
6335 * infcall.c: Update.
6339 * linux-fork.c: Update.
6340 * linux-nat.c: Update.
6341 * linux-thread-db.c: Update.
6342 * mi/mi-cmd-var.c: Update.
6343 * mi/mi-interp.c: Update.
6344 * mi/mi-main.c: Update.
6345 * nto-procfs.c: Update.
6346 * ppc-linux-tdep.c: Update.
6348 * python/py-inferior.c: Update.
6349 * python/py-record-btrace.c: Update.
6350 * python/py-record.c: Update.
6351 * ravenscar-thread.c: Update.
6352 * regcache.c: Update.
6353 * remote-sim.c: Update.
6355 * sol-thread.c: Update.
6358 * tui/tui-stack.c: Update.
6360 * windows-nat.c: Update.
6361 * windows-tdep.c: Update.
6363 2018-07-03 Tom Tromey <tom@tromey.com>
6365 * common/ptid.c (ptid_match): Remove.
6366 * common/ptid.h (ptid_match): Don't declare.
6367 * fbsd-nat.c: Update.
6370 * linux-nat.c: Update.
6371 * record-btrace.c: Update.
6372 * regcache.c: Update.
6375 2018-07-03 Tom Tromey <tom@tromey.com>
6377 * common/ptid.c (ptid_tid_p): Remove.
6378 * common/ptid.h (ptid_tid_p): Don't declare.
6379 * sol-thread.c: Update.
6381 2018-07-03 Tom Tromey <tom@tromey.com>
6383 * common/ptid.c (ptid_lwp_p): Remove.
6384 * common/ptid.h (ptid_lwp_p): Don't declare.
6385 * fbsd-nat.c: Update.
6386 * linux-nat.c: Update.
6387 * nat/linux-procfs.c: Update.
6388 * nat/x86-linux-dregs.c: Update.
6389 * sol-thread.c: Update.
6391 2018-07-03 Tom Tromey <tom@tromey.com>
6393 * common/ptid.c (ptid_is_pid): Remove.
6394 * common/ptid.h (ptid_is_pid): Don't declare.
6396 * linux-nat.c: Update.
6397 * mi/mi-interp.c: Update.
6401 2018-07-03 Tom Tromey <tom@tromey.com>
6403 * common/ptid.c (ptid_get_tid): Remove.
6404 * common/ptid.h (ptid_get_tid): Don't declare.
6405 * ada-tasks.c: Update.
6406 * aix-thread.c: Update.
6407 * bsd-uthread.c: Update.
6408 * darwin-nat.c: Update.
6409 * fbsd-nat.c: Update.
6410 * i386-darwin-nat.c: Update.
6412 * linux-tdep.c: Update.
6413 * nto-procfs.c: Update.
6414 * ppc-ravenscar-thread.c: Update.
6415 * python/py-infthread.c: Update.
6416 * ravenscar-thread.c: Update.
6417 * sol-thread.c: Update.
6418 * sparc-ravenscar-thread.c: Update.
6419 * windows-nat.c: Update.
6421 2018-07-03 Tom Tromey <tom@tromey.com>
6423 * common/ptid.c (ptid_get_lwp): Remove.
6424 * common/ptid.h (ptid_get_lwp): Don't declare.
6425 * aarch64-linux-nat.c: Update.
6426 * ada-tasks.c: Update.
6427 * aix-thread.c: Update.
6428 * amd64-linux-nat.c: Update.
6429 * arm-linux-nat.c: Update.
6430 * corelow.c: Update.
6431 * fbsd-nat.c: Update.
6432 * fbsd-tdep.c: Update.
6433 * gnu-nat.c: Update.
6434 * i386-cygwin-tdep.c: Update.
6435 * i386-gnu-nat.c: Update.
6436 * i386-linux-nat.c: Update.
6437 * ia64-linux-nat.c: Update.
6438 * inf-ptrace.c: Update.
6440 * linux-fork.c: Update.
6441 * linux-nat.c: Update.
6442 * linux-tdep.c: Update.
6443 * linux-thread-db.c: Update.
6444 * mips-linux-nat.c: Update.
6445 * nat/aarch64-linux-hw-point.c: Update.
6446 * nat/aarch64-linux.c: Update.
6447 * nat/linux-btrace.c: Update.
6448 * nat/linux-osdata.c: Update.
6449 * nat/linux-procfs.c: Update.
6450 * nat/x86-linux-dregs.c: Update.
6451 * obsd-nat.c: Update.
6452 * ppc-fbsd-nat.c: Update.
6453 * ppc-linux-nat.c: Update.
6455 * python/py-infthread.c: Update.
6456 * ravenscar-thread.c: Update.
6458 * s390-linux-nat.c: Update.
6459 * sol-thread.c: Update.
6460 * sol2-tdep.c: Update.
6461 * spu-linux-nat.c: Update.
6462 * x86-linux-nat.c: Update.
6463 * xtensa-linux-nat.c: Update.
6465 2018-07-03 Tom Tromey <tom@tromey.com>
6467 * common/ptid.c (ptid_get_pid): Remove.
6468 * common/ptid.h (ptid_get_pid): Don't declare.
6469 * aarch64-linux-nat.c: Update.
6470 * ada-lang.c: Update.
6471 * aix-thread.c: Update.
6472 * alpha-bsd-nat.c: Update.
6473 * amd64-fbsd-nat.c: Update.
6474 * amd64-linux-nat.c: Update.
6475 * arm-linux-nat.c: Update.
6476 * arm-nbsd-nat.c: Update.
6478 * break-catch-syscall.c: Update.
6479 * breakpoint.c: Update.
6480 * bsd-uthread.c: Update.
6481 * corelow.c: Update.
6483 * darwin-nat.c: Update.
6484 * fbsd-nat.c: Update.
6485 * fbsd-tdep.c: Update.
6487 * gnu-nat.c: Update.
6488 * hppa-nbsd-nat.c: Update.
6489 * hppa-obsd-nat.c: Update.
6490 * i386-fbsd-nat.c: Update.
6491 * ia64-linux-nat.c: Update.
6492 * inf-ptrace.c: Update.
6494 * inferior.c: Update.
6495 * inferior.h: Update.
6498 * linux-fork.c: Update.
6499 * linux-nat.c: Update.
6500 * linux-tdep.c: Update.
6501 * linux-thread-db.c: Update.
6502 * m68k-bsd-nat.c: Update.
6503 * mi/mi-interp.c: Update.
6504 * mi/mi-main.c: Update.
6505 * mips-linux-nat.c: Update.
6506 * mips-nbsd-nat.c: Update.
6507 * mips64-obsd-nat.c: Update.
6508 * nat/aarch64-linux-hw-point.c: Update.
6509 * nat/aarch64-linux.c: Update.
6510 * nat/linux-btrace.c: Update.
6511 * nat/linux-osdata.c: Update.
6512 * nat/linux-procfs.c: Update.
6513 * nat/x86-linux-dregs.c: Update.
6514 * nto-procfs.c: Update.
6515 * obsd-nat.c: Update.
6516 * ppc-linux-nat.c: Update.
6517 * ppc-nbsd-nat.c: Update.
6518 * ppc-obsd-nat.c: Update.
6519 * proc-service.c: Update.
6521 * python/py-inferior.c: Update.
6522 * python/py-infthread.c: Update.
6523 * ravenscar-thread.c: Update.
6525 * remote-sim.c: Update.
6527 * rs6000-nat.c: Update.
6528 * s390-linux-nat.c: Update.
6529 * sh-nbsd-nat.c: Update.
6530 * sol-thread.c: Update.
6531 * sparc-nat.c: Update.
6532 * sparc64-tdep.c: Update.
6533 * spu-linux-nat.c: Update.
6534 * spu-tdep.c: Update.
6535 * target-debug.h: Update.
6538 * tid-parse.c: Update.
6539 * tracefile-tfile.c: Update.
6540 * vax-bsd-nat.c: Update.
6541 * windows-nat.c: Update.
6542 * x86-linux-nat.c: Update.
6543 * x86-nat.c: Update.
6545 2018-07-03 Tom Tromey <tom@tromey.com>
6547 * common/ptid.c (pid_to_ptid): Remove.
6548 * common/ptid.h (pid_to_ptid): Don't declare.
6549 * aix-thread.c: Update.
6550 * arm-linux-nat.c: Update.
6551 * common/ptid.c: Update.
6552 * common/ptid.h: Update.
6553 * corelow.c: Update.
6555 * darwin-nat.c: Update.
6556 * fbsd-nat.c: Update.
6557 * fork-child.c: Update.
6558 * gnu-nat.c: Update.
6559 * go32-nat.c: Update.
6560 * inf-ptrace.c: Update.
6562 * inferior.c: Update.
6564 * linux-fork.c: Update.
6565 * linux-nat.c: Update.
6566 * nat/aarch64-linux-hw-point.c: Update.
6567 * nat/fork-inferior.c: Update.
6568 * nat/x86-linux-dregs.c: Update.
6569 * nto-procfs.c: Update.
6570 * obsd-nat.c: Update.
6572 * progspace.c: Update.
6574 * rs6000-nat.c: Update.
6575 * s390-linux-nat.c: Update.
6576 * sol-thread.c: Update.
6577 * spu-linux-nat.c: Update.
6580 * tracefile-tfile.c: Update.
6581 * windows-nat.c: Update.
6583 2018-07-03 Tom Tromey <tom@tromey.com>
6585 * common/ptid.h (ptid_build): Don't declare.
6586 * common/ptid.c (ptid_build): Remove.
6587 * aix-thread.c: Update.
6588 * bsd-kvm.c: Update.
6589 * bsd-uthread.c: Update.
6590 * common/agent.c: Update.
6591 * common/ptid.c: Update.
6592 * common/ptid.h: Update.
6593 * corelow.c: Update.
6594 * darwin-nat.c: Update.
6595 * fbsd-nat.c: Update.
6596 * gnu-nat.c: Update.
6597 * linux-fork.c: Update.
6598 * linux-nat.c: Update.
6599 * linux-thread-db.c: Update.
6600 * nat/linux-osdata.c: Update.
6601 * nat/linux-procfs.c: Update.
6602 * nto-procfs.c: Update.
6603 * obsd-nat.c: Update.
6604 * proc-service.c: Update.
6606 * ravenscar-thread.c: Update.
6607 * remote-sim.c: Update.
6609 * sol-thread.c: Update.
6611 * windows-nat.c: Update.
6613 2018-07-03 Tom Tromey <tom@tromey.com>
6615 * infrun.c (follow_exec): Use exit_inferior_silent.
6616 * inferior.c (exit_inferior_num_silent): Remove.
6617 * inferior.h (exit_inferior_num_silent): Don't declare.
6619 2018-07-03 Tom Tromey <tom@tromey.com>
6622 * darwin-nat.c (darwin_attach_pid): Reset inferior and
6623 inferior_ptid on error.
6625 2018-07-02 Maciej W. Rozycki <macro@mips.com>
6626 Simon Marchi <simon.marchi@polymtl.ca>
6629 * disasm.h (gdb_disassembler): Add
6630 `m_disassembler_options_holder'. member
6631 * disasm.c (get_all_disassembler_options): New function.
6632 (gdb_disassembler::gdb_disassembler): Use it.
6633 (gdb_buffered_insn_length_init_dis): Likewise.
6634 (gdb_buffered_insn_length): Adjust accordingly.
6635 (set_disassembler_options): Handle options with arguments.
6636 (show_disassembler_options_sfunc): Likewise. Add a leading new
6637 line if showing options with descriptions.
6638 (disassembler_options_completer): Adapt to using the
6639 `disasm_options_and_args_t' structure.
6640 * mips-tdep.c (mips_disassembler_options): New variable.
6641 (mips_disassembler_options_o32): Likewise.
6642 (mips_disassembler_options_n32): Likewise.
6643 (mips_disassembler_options_n64): Likewise.
6644 (gdb_print_insn_mips): Don't set `disassembler_options'.
6645 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
6647 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
6648 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
6649 `gdbarch_disassembler_options_implicit' and
6650 `gdbarch_valid_disassembler_options'.
6651 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
6652 `disasm_options_and_args_t' structure.
6653 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
6655 (valid_disassembler_options): Switch from `disasm_options_t' to
6656 the `disasm_options_and_args_t' structure.
6657 * NEWS: Document `set disassembler-options' support for the MIPS
6659 * gdbarch.h: Regenerate.
6660 * gdbarch.c: Regenerate.
6662 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
6664 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
6666 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6668 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
6669 parameter in call to amd64_target_description.
6670 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
6671 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
6672 (amd64fbsd_init_abi): Likewise.
6673 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6674 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6675 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6676 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
6678 2018-06-29 Pedro Alves <palves@redhat.com>
6680 * gdb/amd64-tdep.h (amd64_create_target_description): Add
6681 "segments" parameter.
6682 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
6683 (_initialize_amd64_tdep): Update call to
6684 amd64_create_target_description.
6685 (amd64_target_description): Add "segments" parameter. Adjust
6686 the implementation to use it.
6687 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
6688 call to amd64_create_target_description.
6689 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
6690 * gdb/arch/amd64.h (amd64_create_target_description): Add
6691 "segments" register.
6692 * gdb/arch/amd64.c (amd64_create_target_description): Add
6693 "segments" parameter. Call create_feature_i386_64bit_segments
6694 only if SEGMENTS is true.
6695 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
6696 call to amd64_create_target_description.
6698 2018-06-29 Pedro Alves <palves@redhat.com>
6700 * thread.c (thread_target_id_str): New, factored out from ...
6701 (print_thread_info_1): ... here. Use it to compute the max
6702 "Target Id" column width.
6704 2018-06-29 Pedro Alves <palves@redhat.com>
6706 * remote.c (remote_target::extra_thread_info): Delete
6707 'display_buf' and 'n' locals. from the cache, regardless of
6708 packet mechanims is in use. Use cache for qThreadExtra and qP
6711 2018-06-29 Pedro Alves <palves@redhat.com>
6713 * blockframe.c (find_pc_sect_containing_function): New function.
6714 * breakpoint.c (print_breakpoint_location): Don't call
6715 find_pc_sect_function.
6716 * linespec.c (create_sals_line_offset): Record the location's
6718 * linespec.c (convert_address_location_to_sals): Fill in sal's
6719 symbol with find_pc_sect_containing_function.
6720 * symtab.c (find_function_start_sal): Rename to ...
6721 (find_function_start_sal_1): ... this.
6722 (find_function_start_sal): Reimplement as wrapper around
6723 find_function_start_sal_1, and use
6724 find_pc_sect_containing_function to fill in the sal's symbol.
6725 (find_function_start_sal(symbol*, bool)): Adjust.
6726 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
6728 (find_pc_sect_containing_function): Declare.
6730 2018-06-29 Pedro Alves <palves@redhat.com>
6732 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
6733 true if the the location has no symbol.
6735 2018-06-28 Tom Tromey <tom@tromey.com>
6737 * NEWS: Mention --enable-codesign.
6738 * silent-rules.mk (ECHO_SIGN): New variable.
6739 * configure.ac: Add --enable-codesign.
6740 * configure: Rebuild.
6741 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
6742 (gdb$(EXEEXT)): Optionally invoke codesign.
6744 2018-06-28 Pedro Alves <palves@redhat.com>
6746 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
6748 (switch_to_thread_no_regs): Adjust comment.
6749 * infcmd.c (stop_pc): Delete.
6750 (post_create_inferior, info_program_command): Replace references
6751 to stop_pc with references to thread_info->suspend.stop_pc.
6752 * inferior.h (stop_pc): Delete declaration.
6753 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
6754 (handle_inferior_event_1, handle_signal_stop)
6755 (process_event_stop_test, keep_going_stepped_thread)
6756 (handle_step_into_function, handle_step_into_function_backward)
6757 (print_stop_location): Replace references to stop_pc with
6758 references to thread_info->suspend.stop_pc.
6759 (struct infcall_suspend_state) <stop_pc>: Delete field.
6760 (save_infcall_suspend_state, restore_infcall_suspend_state):
6761 Remove references to inf_stat->stop_pc.
6762 * linux-fork.c (fork_load_infrun_state): Likewise.
6763 * record-btrace.c (record_btrace_set_replay): Likewise.
6764 * record-full.c (record_full_goto_entry): Likewise.
6765 * remote.c (print_one_stopped_thread): Likewise.
6766 * target.c (target_resume): Extend comment.
6767 * thread.c (set_executing_thread): New.
6768 (set_executing): Use it.
6769 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
6770 Remove references to stop_pc.
6772 2018-06-28 Pedro Alves <palves@redhat.com>
6774 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
6775 Moving fetching stop_pc until after ecs->event_thread is refreshed.
6777 2018-06-28 Tom Tromey <tom@tromey.com>
6779 * coffread.c (coff_symfile_finish): Update.
6780 * xcoffread.c (xcoff_symfile_finish): Update.
6781 * elfread.c (elf_symfile_finish): Update.
6782 * symfile.h (dwarf2_free_objfile): Don't declare.
6783 * dwarf2read.c (_initialize_dwarf2_read): Use
6784 register_objfile_data_with_cleanup.
6785 (dwarf2_free_objfile): Now static. Change signature.
6787 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6789 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
6790 option "-o" to add-symbol-file-load to add an offset to each
6791 section's load address.
6792 * symfile.c (set_objfile_default_section_offset): New function.
6794 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6796 * symfile.c (add_symbol_file_command): Make sure that sections
6797 with the same name are sorted in the same order.
6799 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6801 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
6802 require the second argument. If omitted, load sections at the
6803 addresses specified in the file.
6805 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6807 * symfile.c (symbol_file_command, symbol_file_add_main_1)
6808 (_initialize_symfile): Add option "-o" to symbol-file to add an
6809 offset to each section of the symbol file.
6811 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6813 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
6815 2018-06-27 Tom Tromey <tom@tromey.com>
6817 * stack.c (_initialize_stack): Update "func" help text.
6819 2018-06-27 Tom Tromey <tom@tromey.com>
6821 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
6823 (unwind_infopy_str, pyuw_create_unwind_info)
6824 (unwind_infopy_add_saved_register, pyuw_sniffer)
6825 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
6827 (struct saved_reg): Add constructor.
6828 <value>: Now a gdbpy_ref<>.
6830 2018-06-27 Tom Tromey <tom@tromey.com>
6832 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
6834 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6836 * gdb-gdb.py.in: Format using autopep8.
6838 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6840 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
6841 (type_lookup_function): Recognize CORE_ADDR values.
6843 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6845 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
6848 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6850 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
6853 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6855 * gdb-gdb.py: Move to...
6856 * gdb-gdb.py.in: ... here.
6857 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
6858 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
6860 (distclean): Remove gdb-gdb.py when cleaning.
6861 (gdb-gdb.py, gdb-gdb.gdb): New rules.
6862 * configure: Re-generate.
6864 2018-06-27 Pedro Alves <palves@redhat.com>
6866 * proc-service.c (get_ps_regcache): New.
6867 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6868 (ps_lsetfpregs): Use it.
6870 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
6873 * dwarf2read.c (lnp_state_machine::check_line_address): Update
6875 (dwarf_decode_lines_1): Adjust.
6877 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6879 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
6881 <info_proc>: Likewise.
6883 2018-06-26 Joel Brobecker <brobecker@adacore.com>
6885 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
6886 to windows_fetch_one_register, and only handle the case of
6887 fetching one register. Move the code that reloads the context
6888 and iterates over all registers if R is negative to...
6889 (windows_nat_target::fetch_registers): ... here.
6890 (do_windows_store_inferior_registers): Rename to
6891 windows_store_one_register, and only handle the case of storing
6892 one register. Move the code that handles the case where r is
6894 (windows_nat_target::store_registers) ... here.
6896 2018-06-26 Tom Tromey <tom@tromey.com>
6899 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
6900 * rust-lang.c (rust_print_struct_def): Add podata parameter.
6902 (rust_internal_print_type): Add podata parameter.
6903 (rust_print_type): Update.
6905 2018-06-26 Tom Tromey <tom@tromey.com>
6907 * typeprint.h (struct print_offset_data) <update, finish,
6908 maybe_print_hole>: New methods.
6909 <indentation>: New constant.
6910 * typeprint.c (print_offset_data::indentation): Define.
6911 (print_offset_data::maybe_print_hole, print_offset_data::update)
6912 (print_offset_data::finish): Move from c-typeprint.c and rename.
6913 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
6914 (print_spaces_filtered_with_print_options): Update.
6915 (c_print_type_union_field_offset, maybe_print_hole)
6916 (c_print_type_struct_field_offset): Move to typeprint.c and
6918 (c_type_print_base_struct_union): Update.
6920 2018-06-25 Pedro Alves <palves@redhat.com>
6922 * gdbthread.h (thread_info_ref, delete_thread)
6923 (delete_thread_silent, first_thread_of_inferior)
6924 (any_thread_of_inferior, switch_to_thread)
6925 (enable_thread_stack_temporaries)
6926 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6927 (get_last_thread_stack_temporary)
6928 (value_in_thread_stack_temporaries, can_access_registers_thread):
6929 Spell out "struct thread_info" instead of just "thread_info".
6930 * inferior.h (notice_new_inferior): Likewise.
6932 2018-06-25 Pedro Alves <palves@redhat.com>
6934 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6935 pass thread_info pointer to delete_thread.
6936 (windows_nat_target::detach): Pass inferior pointer to
6938 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
6940 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
6941 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
6942 and pass a thread_info pointer to delete_thread.
6943 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
6944 pass thread_info pointer to delete_thread.
6945 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
6946 delete_thread_silent call.
6947 * procfs.c (procfs_target::detach): Pass inferior pointer to
6949 (procfs_target::wait): Pass thread_info pointer to delete_thread.
6950 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
6951 delete_thread_silent call.
6952 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6953 pass thread_info pointer to delete_thread.
6954 (windows_nat_target::detach): Pass inferior pointer to
6957 2018-06-22 Alan Hayward <alan.hayward@arm.com>
6959 * regcache.c (readable_regcache::read_part): Fix asserts.
6960 (reg_buffer::raw_collect_part): New function.
6961 (regcache::write_part): Fix asserts.
6962 (reg_buffer::raw_supply_part): New function.
6963 (regcache::transfer_regset_register): New helper function.
6964 (regcache::transfer_regset): Call new functions.
6965 (regcache_supply_regset): Use gdb_byte*.
6966 (regcache::supply_regset): Likewise.
6967 (regcache_collect_regset): Likewise.
6968 (regcache::collect_regset): Likewise.
6969 * regcache.h (reg_buffer::raw_collect_part): New declaration.
6970 (reg_buffer::raw_supply_part): Likewise.
6971 (regcache::transfer_regset_register): Likewise.
6972 (regcache::transfer_regset): Use gdb_byte*.
6974 2018-06-22 Alan Hayward <alan.hayward@arm.com>
6976 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
6978 2018-06-21 Pedro Alves <palves@redhat.com>
6980 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
6981 instead of a ptid_t. All callers adjusted.
6982 * ada-tasks.c (ada_get_task_number): Likewise. All callers
6984 (print_ada_task_info, display_current_task_id, task_command_1):
6986 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
6988 (breakpoint_kind): Adjust.
6989 (remove_breakpoints_pid): Rename to ...
6990 (remove_breakpoints_inf): ... this. Adjust to take an inferior
6991 pointer. All callers adjusted.
6992 (bpstat_clear_actions): Use inferior_thread.
6993 (get_bpstat_thread): New.
6994 (bpstat_do_actions): Use it.
6995 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
6996 to take a thread_info pointer. All callers adjusted.
6997 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
6998 (breakpoint_re_set_thread): Use inferior_thread.
6999 * breakpoint.h (struct inferior): Forward declare.
7000 (bpstat_stop_status): Update.
7001 (remove_breakpoints_pid): Delete.
7002 (remove_breakpoints_inf): New.
7003 * bsd-uthread.c (bsd_uthread_target::wait)
7004 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
7005 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
7006 (maint_btrace_packet_history_cmd)
7007 (maint_btrace_clear_packet_history_cmd): Adjust.
7008 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
7010 * cli/cli-interp.c: Include "inferior.h".
7011 * common/refcounted-object.h (struct
7012 refcounted_object_ref_policy): New.
7013 * compile/compile-object-load.c: Include gdbthread.h.
7014 (store_regs): Use inferior_thread.
7015 * corelow.c (core_target::close): Use current_inferior.
7016 (core_target_open): Adjust to use first_thread_of_inferior and use
7017 the current inferior.
7018 * ctf.c (ctf_target::close): Adjust to use current_inferior.
7019 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
7020 <thread>: ... this new field. All references adjusted.
7021 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
7022 Take a thread_info pointer instead of a ptid_t.
7023 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
7024 (dummy_frame_discard, register_dummy_frame_dtor): Take a
7025 thread_info pointer instead of a ptid_t.
7026 * elfread.c: Include "inferior.h".
7027 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
7028 Use inferior_thread.
7029 * eval.c (evaluate_subexp): Likewise.
7030 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
7032 * gdb_proc_service.h (struct thread_info): Forward declare.
7033 (struct ps_prochandle) <ptid>: Delete, replaced by ...
7034 <thread>: ... this new field. All references adjusted.
7035 * gdbarch.h, gdbarch.c: Regenerate.
7036 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
7037 'thread' parameter. All implementations and callers adjusted.
7038 * gdbthread.h (thread_info) <set_running>: New method.
7039 (delete_thread, delete_thread_silent): Take a thread_info pointer
7041 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
7042 (first_thread_of_process): Delete, replaced by ...
7043 (first_thread_of_inferior): ... this new function. All callers
7045 (any_live_thread_of_process): Delete, replaced by ...
7046 (any_live_thread_of_inferior): ... this new function. All callers
7048 (switch_to_thread, switch_to_no_thread): Declare.
7049 (is_executing): Delete.
7050 (enable_thread_stack_temporaries): Update comment.
7051 <enable_thread_stack_temporaries>: Take a thread_info pointer
7052 instead of a ptid_t. Incref the thread.
7053 <~enable_thread_stack_temporaries>: Decref the thread.
7056 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7057 (get_last_thread_stack_temporary)
7058 (value_in_thread_stack_temporaries, can_access_registers_thread):
7059 Take a thread_info pointer instead of a ptid_t. All callers
7061 * infcall.c (get_call_return_value): Use inferior_thread.
7062 (run_inferior_call): Work with thread pointers instead of ptid_t.
7063 (call_function_by_hand_dummy): Work with thread pointers instead
7064 of ptid_t. Use thread_info_ref.
7065 * infcmd.c (proceed_thread_callback): Access thread's state
7067 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
7068 access thread's state directly.
7069 (continue_command): Use inferior_thread.
7070 (info_program_command): Use find_thread_ptid and access thread
7072 (proceed_after_attach_callback): Use thread state directly.
7073 (notice_new_inferior): Take a thread_info pointer instead of a
7074 ptid_t. All callers adjusted.
7075 (exit_inferior): Take an inferior pointer instead of a pid. All
7077 (exit_inferior_silent): New.
7078 (detach_inferior): Delete.
7079 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
7080 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
7081 (detach_inferior_command, kill_inferior_command): Use
7082 find_inferior_id instead of valid_gdb_inferior_id and
7083 gdb_inferior_id_to_pid.
7084 (inferior_command): Use inferior and thread pointers.
7085 * inferior.h (struct thread_info): Forward declare.
7086 (notice_new_inferior): Take a thread_info pointer instead of a
7087 ptid_t. All callers adjusted.
7088 (detach_inferior): Delete declaration.
7089 (exit_inferior, exit_inferior_silent): Take an inferior pointer
7090 instead of a pid. All callers adjusted.
7091 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
7092 (valid_gdb_inferior_id): Delete.
7093 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
7094 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
7095 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
7097 <inf>: ... this new field.
7098 <step_ptid>: Delete, replaced by ...
7099 <step_thread>: ... this new field.
7100 (get_displaced_stepping_state): Take an inferior pointer instead
7101 of a pid. All callers adjusted.
7102 (displaced_step_in_progress_any_inferior): Adjust.
7103 (displaced_step_in_progress_thread): Take a thread pointer instead
7104 of a ptid_t. All callers adjusted.
7105 (displaced_step_in_progress, add_displaced_stepping_state): Take
7106 an inferior pointer instead of a pid. All callers adjusted.
7107 (get_displaced_step_closure_by_addr): Adjust.
7108 (remove_displaced_stepping_state): Take an inferior pointer
7109 instead of a pid. All callers adjusted.
7110 (displaced_step_prepare_throw, displaced_step_prepare)
7111 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
7112 All callers adjusted.
7113 (start_step_over): Adjust.
7114 (infrun_thread_ptid_changed): Remove bit updating ptids in the
7115 displaced step queue.
7116 (do_target_resume): Adjust.
7117 (fetch_inferior_event): Use inferior_thread.
7118 (context_switch, get_inferior_stop_soon): Take an
7119 execution_control_state pointer instead of a ptid_t. All callers
7121 (switch_to_thread_cleanup): Delete.
7122 (stop_all_threads): Use scoped_restore_current_thread.
7123 * inline-frame.c: Include "gdbthread.h".
7124 (inline_state) <inline_state>: Take a thread pointer instead of a
7125 ptid_t. All callers adjusted.
7126 <ptid>: Delete, replaced by ...
7127 <thread>: ... this new field.
7128 (find_inline_frame_state): Take a thread pointer instead of a
7129 ptid_t. All callers adjusted.
7130 (skip_inline_frames, step_into_inline_frame)
7131 (inline_skipped_frames, inline_skipped_symbol): Take a thread
7132 pointer instead of a ptid_t. All callers adjusted.
7133 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
7134 (inline_skipped_frames, inline_skipped_symbol): Likewise.
7135 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
7137 * linux-nat.c (get_detach_signal): Likewise.
7138 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
7139 (thread_db_notice_clone): Adjust.
7140 (thread_db_find_new_threads_silently)
7141 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
7142 a thread pointer instead of a ptid_t. All callers adjusted.
7143 * mi/mi-cmd-var.c: Include "inferior.h".
7144 (mi_cmd_var_update_iter): Update to use thread pointers.
7145 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
7147 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
7149 (mi_output_running): ... this new function.
7150 (mi_on_resume_1): Adjust to use it.
7151 (mi_user_selected_context_changed): Adjust to use inferior_thread.
7152 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
7154 (interrupt_thread_callback): : Adjust to use thread and inferior
7156 * proc-service.c: Include "gdbthread.h".
7157 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
7158 * progspace-and-thread.c: Include "inferior.h".
7159 * progspace.c: Include "inferior.h".
7160 * python/py-exitedevent.c (create_exited_event_object): Adjust to
7161 hold a reference to an inferior_object.
7162 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
7164 * python/py-inferior.c (struct inferior_object): Give the type a
7165 tag name instead of a typedef.
7166 (python_on_normal_stop): No need to check if the current thread is
7168 (inferior_to_inferior_object): Change return type to
7169 inferior_object. All callers adjusted.
7170 (find_thread_object): Delete, bits factored out to ...
7171 (thread_to_thread_object): ... this new function.
7172 * python/py-infthread.c (create_thread_object): Use
7173 inferior_to_inferior_object.
7174 (thpy_is_stopped): Use thread pointer directly.
7175 (gdbpy_selected_thread): Use inferior_thread.
7176 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
7177 field, replaced with ...
7178 <thread>: ... this new field. All users adjusted.
7179 (btpy_insn_or_gap_new): Drop const.
7180 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
7182 * python/py-record.c: Include "gdbthread.h".
7183 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7184 a ptid_t. All callers adjusted.
7185 (gdbpy_current_recording): Use inferior_thread.
7186 * python/py-record.h (recpy_record_object) <ptid>: Delete
7187 field, replaced with ...
7188 <thread>: ... this new field. All users adjusted.
7189 (recpy_element_object) <ptid>: Delete
7190 field, replaced with ...
7191 <thread>: ... this new field. All users adjusted.
7192 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7193 a ptid_t. All callers adjusted.
7194 * python/py-threadevent.c: Include "gdbthread.h".
7195 (get_event_thread): Use thread_to_thread_object.
7196 * python/python-internal.h (struct inferior_object): Forward
7198 (find_thread_object, find_inferior_object): Delete declarations.
7199 (thread_to_thread_object, inferior_to_inferior_object): New
7201 * record-btrace.c: Include "inferior.h".
7202 (require_btrace_thread): Use inferior_thread.
7203 (record_btrace_frame_sniffer)
7204 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
7205 (get_thread_current_frame): Use scoped_restore_current_thread and
7207 (get_thread_current_frame): Use thread pointer directly.
7208 (record_btrace_replay_at_breakpoint): Use thread's inferior
7210 * record-full.c: Include "inferior.h".
7211 * regcache.c: Include "gdbthread.h".
7212 (get_thread_arch_regcache): Use the inferior's address space
7214 (get_thread_regcache, registers_changed_thread): New.
7215 * regcache.h (get_thread_regcache(thread_info *thread)): New
7217 (registers_changed_thread): New.
7218 (remote_target) <remote_detach_1>: Swap order of parameters.
7219 (remote_add_thread): <remote_add_thread>: Return the new thread.
7220 (get_remote_thread_info(ptid_t)): New overload.
7221 (remote_target::remote_notice_new_inferior): Use thread pointers
7223 (remote_target::process_initial_stop_replies): Use
7224 thread_info::set_running.
7225 (remote_target::remote_detach_1, remote_target::detach)
7226 (extended_remote_target::detach): Adjust.
7227 * stack.c (frame_show_address): Use inferior_thread.
7228 * target-debug.h (target_debug_print_thread_info_pp): New.
7229 * target-delegates.c: Regenerate.
7230 * target.c (default_thread_address_space): Delete.
7231 (memory_xfer_partial_1): Use current_inferior.
7232 (target_detach): Use current_inferior.
7233 (target_thread_address_space): Delete.
7234 (generic_mourn_inferior): Use current_inferior.
7235 * target.h (struct target_ops) <thread_address_space>: Delete.
7236 (target_thread_address_space): Delete.
7237 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
7239 (delete_thread_1, delete_thread, delete_thread_silent): Take a
7240 thread pointer instead of a ptid_t. Adjust all callers.
7241 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
7242 (first_thread_of_process): Delete, replaced by ...
7243 (first_thread_of_inferior): ... this new function. All callers
7245 (any_thread_of_process): Rename to ...
7246 (any_thread_of_inferior): ... this, and take an inferior pointer.
7247 (any_live_thread_of_process): Rename to ...
7248 (any_live_thread_of_inferior): ... this, and take an inferior
7250 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7251 (value_in_thread_stack_temporaries)
7252 (get_last_thread_stack_temporary): Take a thread pointer instead
7253 of a ptid_t. Adjust all callers.
7254 (thread_info::set_running): New.
7255 (validate_registers_access): Use inferior_thread.
7256 (can_access_registers_ptid): Rename to ...
7257 (can_access_registers_thread): ... this, and take a thread
7259 (print_thread_info_1): Adjust to compare thread pointers instead
7261 (switch_to_no_thread, switch_to_thread): Make extern.
7262 (scoped_restore_current_thread::~scoped_restore_current_thread):
7263 Use m_thread pointer directly.
7264 (scoped_restore_current_thread::scoped_restore_current_thread):
7265 Use inferior_thread.
7266 (thread_command): Use thread pointer directly.
7267 (thread_num_make_value_helper): Use inferior_thread.
7268 * top.c (execute_command): Use inferior_thread.
7269 * tui/tui-interp.c: Include "inferior.h".
7270 * varobj.c (varobj_create): Use inferior_thread.
7271 (value_of_root_1): Use find_thread_global_id instead of
7272 global_thread_id_to_ptid.
7274 2018-06-21 Alan Hayward <alan.hayward@arm.com>
7276 * regcache.c (readable_regcache::read_part): Avoid memcpy when
7278 (regcache::write_part): Likewise.
7279 (readable_regcache::cooked_read_part): Update comment.
7280 (readable_regcache::cooked_write_part): Likewise.
7281 * regcache.h: (readable_regcache::read_part): Likewise.
7282 (regcache::write_part): Likewise.
7284 2018-06-21 Richard Bunt <richard.bunt@arm.com>
7285 Dirk Schubert <dirk.schubert@arm.com>
7287 * aarch64-linux-nat.c (post_attach): New.
7288 (aarch64_linux_nat_target::post_attach): Override post_attach to
7289 record the number of hardware debug registers.
7291 2018-06-20 Tom Tromey <tom@tromey.com>
7293 * python/py-param.c (add_setshow_generic): Make parameters const.
7294 (parmpy_init): Update.
7296 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7298 * regcache.h (regcache_cooked_read_ftype): Rename to...
7299 (register_read_ftype): ...this, change type to function_view.
7300 (class reg_buffer) <save>: Remove src parameter.
7301 (readonly_detached_regcache) <readonly_detached_regcache>: Make
7302 parameter non-const in first overload. Remove src parameter in
7304 * regcache.c (do_cooked_read): Remove.
7305 (readonly_detached_regcache::readonly_detached_regcache): Make
7306 parameter non-const, adjust call to other constructor.
7307 (reg_buffer::save): Remove src parameter.
7308 * frame.c (do_frame_register_read): Remove.
7309 (frame_save_as_regcache): Use lambda function.
7310 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
7311 parameter to ppu2spu_data *.
7312 (ppu2spu_sniffer): Use lambda function.
7314 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7316 * record-full.c (record_full_target::insert_breakpoint): Remove
7317 "struct" keyword, add const.
7319 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
7321 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
7322 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
7323 * configure.ac: Remove AC_PREREQ, add missing quoting.
7324 * gnulib/configure.ac: Modernize usage of
7325 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
7326 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
7327 (AUTOMAKE_VERSION): Bump to 1.15.1.
7328 * configure: Re-generate.
7329 * config.in: Re-generate.
7330 * aclocal.m4: Re-generate.
7331 * gnulib/aclocal.m4: Re-generate.
7332 * gnulib/config.in: Re-generate.
7333 * gnulib/configure: Re-generate.
7334 * gnulib/import/Makefile.in: Re-generate.
7336 2018-06-19 Pedro Alves <palves@redhat.com>
7338 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
7339 (lookup_minimal_symbol_by_pc_section): ... here with
7340 gdb_assert_not_reached added.
7342 2018-06-19 Pedro Alves <palves@redhat.com>
7344 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
7345 parameter with a block parameter. Compare location's block symbol
7346 with the frame's block instead of addresses.
7347 (skip_inline_frames): Pass the current block instead of the
7348 frame's address. Break out as soon as we determine the frame
7349 should not be skipped.
7351 2018-06-18 Tom Tromey <tom@tromey.com>
7353 * solib-aix.c (solib_aix_get_section_offsets): Return
7355 (solib_aix_solib_create_inferior_hook): Update.
7357 2018-06-18 Tom Tromey <tom@tromey.com>
7359 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
7361 2018-06-18 Tom Tromey <tom@tromey.com>
7363 * solib-frv.c (frv_relocate_main_executable): Use
7365 * solib-dsbt.c (dsbt_relocate_main_executable): Use
7368 2018-06-18 Tom Tromey <tom@tromey.com>
7370 * objfiles.h (inhibit_section_map_updates): Update.
7371 (resume_section_map_updates, resume_section_map_updates_cleanup):
7373 * solib-svr4.c (svr4_handle_solib_event): Update.
7374 * objfiles.c (inhibit_section_map_updates): Return
7375 scoped_restore_tmpl<int>.
7376 (resume_section_map_updates, resume_section_map_updates_cleanup):
7379 2018-06-18 Tom Tromey <tom@tromey.com>
7381 * valprint.h (read_string): Update.
7382 * valprint.c (read_string): Change type of "buffer".
7383 (val_print_string): Update.
7384 * python/py-value.c (valpy_string): Update.
7385 * language.h (struct language_defn) <la_get_string>: Change
7387 (default_get_string, c_get_string): Update.
7388 * language.c (default_get_string): Change type of "buffer".
7389 * guile/scm-value.c (gdbscm_value_to_string): Update.
7390 * c-lang.c (c_get_string): Change type of "buffer".
7392 2018-06-18 Tom Tromey <tom@tromey.com>
7394 * ser-mingw.c (struct pipe_state_destroyer): New.
7395 (pipe_state_up): New typedef.
7396 (cleanup_pipe_state): Remove.
7397 (pipe_windows_open): Use pipe_state_up. Don't release argv.
7399 2018-06-18 Tom Tromey <tom@tromey.com>
7401 * rust-lang.h (rust_yyerror): Don't declare.
7402 * rust-lang.c (rust_language_defn): Update.
7403 * rust-exp.y (yyerror): Now static.
7404 * parse.c (parse_exp_in_context_1): Update.
7405 * p-lang.h (p_yyerror): Don't declare.
7406 * p-lang.c (p_language_defn): Update.
7407 * p-exp.y (yyerror): Now static.
7408 * opencl-lang.c (opencl_language_defn): Update.
7409 * objc-lang.c (objc_language_defn): Update.
7410 * m2-lang.h (m2_yyerror): Don't declare.
7411 * m2-lang.c (m2_language_defn): Update.
7412 * m2-exp.y (yyerror): Now static.
7413 * language.h (struct language_defn) <la_error>: Remove.
7414 * language.c (unk_lang_error): Remove.
7415 (unknown_language_defn, auto_language_defn): Remove.
7416 * go-lang.h (go_yyerror): Don't declare.
7417 * go-lang.c (go_language_defn): Update.
7418 * go-exp.y (yyerror): Now static.
7419 * f-lang.h (f_yyerror): Don't declare.
7420 * f-lang.c (f_language_defn): Update.
7421 * f-exp.y (yyerror): Now static.
7422 * d-lang.h (d_yyerror): Don't declare.
7423 * d-lang.c (d_language_defn): Update.
7424 * d-exp.y (yyerror): Now static.
7425 * c-lang.h (c_yyerror): Don't declare.
7426 * c-lang.c (c_language_defn, cplus_language_defn)
7427 (asm_language_defn, minimal_language_defn): Update.
7428 * c-exp.y (yyerror): Now static.
7429 * ada-lang.h (ada_yyerror): Don't declare.
7430 * ada-lang.c (ada_language_defn): Update.
7431 * ada-exp.y (yyerror): Now static.
7433 2018-06-18 Alan Hayward <alan.hayward@arm.com>
7435 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
7436 (store_sveregs_to_thread): Likewise.
7437 (aarch64_linux_fetch_inferior_registers): Check for SVE.
7438 (aarch64_linux_store_inferior_registers): Likewise.
7439 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
7441 (aarch64_sve_regs_copy_to_regcache): Likewise.
7442 (aarch64_sve_regs_copy_from_regcache): Likewise.
7443 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
7445 (aarch64_sve_regs_copy_to_regcache): Likewise.
7446 (aarch64_sve_regs_copy_from_regcache): Likewise.
7447 (sve_context): Structure from Linux headers.
7448 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
7449 (SVE_SIG_ZREG_SIZE): Likewise.
7450 (SVE_SIG_PREG_SIZE): Likewise.
7451 (SVE_SIG_FFR_SIZE): Likewise.
7452 (SVE_SIG_REGS_OFFSET): Likewise.
7453 (SVE_SIG_ZREGS_OFFSET): Likewise.
7454 (SVE_SIG_ZREG_OFFSET): Likewise.
7455 (SVE_SIG_ZREGS_SIZE): Likewise.
7456 (SVE_SIG_PREGS_OFFSET): Likewise.
7457 (SVE_SIG_PREG_OFFSET): Likewise.
7458 (SVE_SIG_PREGS_SIZE): Likewise.
7459 (SVE_SIG_FFR_OFFSET): Likewise.
7460 (SVE_SIG_REGS_SIZE): Likewise.
7461 (SVE_SIG_CONTEXT_SIZE): Likewise.
7462 (SVE_PT_REGS_MASK): Likewise.
7463 (SVE_PT_REGS_FPSIMD): Likewise.
7464 (SVE_PT_REGS_SVE): Likewise.
7465 (SVE_PT_VL_INHERIT): Likewise.
7466 (SVE_PT_VL_ONEXEC): Likewise.
7467 (SVE_PT_REGS_OFFSET): Likewise.
7468 (SVE_PT_FPSIMD_OFFSET): Likewise.
7469 (SVE_PT_FPSIMD_SIZE): Likewise.
7470 (SVE_PT_SVE_ZREG_SIZE): Likewise.
7471 (SVE_PT_SVE_PREG_SIZE): Likewise.
7472 (SVE_PT_SVE_FFR_SIZE): Likewise.
7473 (SVE_PT_SVE_FPSR_SIZE): Likewise.
7474 (SVE_PT_SVE_FPCR_SIZE): Likewise.
7475 (__SVE_SIG_TO_PT): Likewise.
7476 (SVE_PT_SVE_OFFSET): Likewise.
7477 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
7478 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
7479 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
7480 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
7481 (SVE_PT_SVE_PREG_OFFSET): Likewise.
7482 (SVE_PT_SVE_PREGS_SIZE): Likewise.
7483 (SVE_PT_SVE_FFR_OFFSET): Likewise.
7484 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
7485 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
7486 (SVE_PT_SVE_SIZE): Likewise.
7487 (SVE_PT_SIZE): Likewise.
7488 (HAS_SVE_STATE): New define.
7490 2018-06-18 Alan Hayward <alan.hayward@arm.com>
7492 * nat/aarch64-sve-linux-sigcontext.h: New file.
7493 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
7495 (SVE_VQ_MIN): Likewise.
7496 (SVE_VQ_MAX): Likewise.
7497 (SVE_VL_MIN): Likewise.
7498 (SVE_VL_MAX): Likewise.
7499 (SVE_NUM_ZREGS): Likewise.
7500 (SVE_NUM_PREGS): Likewise.
7501 (sve_vl_valid): Likewise.
7502 (struct user_sve_header): Likewise.
7504 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7505 Richard Bunt <Richard.Bunt@arm.com>
7507 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
7508 was requested by GDB.
7510 2018-06-15 Tom de Vries <tdevries@suse.de>
7512 * MAINTAINERS (Write After Approval): Add Tom de Vries.
7514 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
7516 * gnulib/update-gnulib.sh: Print expected versions of
7519 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
7521 * arch-utils.c (default_type_align): Use type_length_units.
7522 * gdbtypes.c (type_align): Use type_length_units.
7524 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7526 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
7527 of 'define' command.
7529 2018-06-14 Tom de Vries <tdevries@suse.de>
7532 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
7533 get_no_prettyformat_print_options.
7535 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
7537 * sparc-nat.h: Include target.h.
7538 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
7539 <fetch_registers>: Remove this argument in function call.
7540 <store_registers>: Remove this argument in function call, remove
7542 <low_forget_process>: Call sparc64_forget_process instead of
7543 sparc_forget_process.
7545 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7547 * procfs.c (_initialize_procfs): Use add_inf_child_target.
7548 (procfs_target::make_corefile_notes): Adjust to new
7549 target_read_alloc return type.
7551 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7552 Stephen Roberts <stephen.roberts@arm.com>
7555 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
7556 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
7557 Move should_notify_stop local into more inner scope.
7559 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7560 Stephen Roberts <stephen.roberts@arm.com>
7563 * infrun.c (resume_1): Add call to mark_async_event_handler.
7565 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7567 * infrun.c (do_target_wait): Change old version of $pc printed.
7569 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
7571 * dwarf2read.c (read_index_from_section): Rename to...
7572 (read_gdb_index_from_section): ... this, update all callers.
7573 (dwarf2_read_index): Rename to...
7574 (dwarf2_read_gdb_index): ... this, update all callers.
7576 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
7579 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
7580 hppa_linux_nat_target::fetch_registers.
7582 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7584 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
7585 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
7586 (AARCH64_DWARF_SVE_FFR): Likewise.
7587 (AARCH64_DWARF_SVE_P0): Likewise.
7588 (AARCH64_DWARF_SVE_Z0): Likewise.
7590 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7592 * common/common-regcache.h (raw_compare): New function.
7593 * regcache.c (regcache::raw_compare): Likewise.
7594 * regcache.h (regcache::raw_compare): New declaration.
7596 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7598 * common/common-regcache.h (reg_buffer_common): New structure.
7599 * regcache.c (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.
7605 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
7606 (reg_buffer::raw_supply): Likewise.
7607 (reg_buffer::raw_supply_integer): Likewise.
7608 (reg_buffer::raw_supply_zeroed): Likewise.
7609 (reg_buffer::raw_collect): Likewise.
7610 (reg_buffer::raw_collect_integer): Likewise.
7612 2018-06-10 Tom Tromey <tom@tromey.com>
7614 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
7615 (class remote_state) <stop_reply_queue>: Now std::vector.
7616 (remote_state::~remote_state)
7617 (remote_target::stop_reply_queue_length): Update.
7618 (struct queue_iter_param, remove_child_of_pending_fork)
7619 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
7620 (check_pending_event_prevents_wildcard_vcont_callback)
7621 (remove_stop_reply_for_inferior)
7622 (remove_stop_reply_of_remote_state)
7623 (remote_notif_remove_once_on_match)
7624 (stop_reply_match_ptid_and_ws)
7625 (remote_kill_child_of_pending_fork): Remove.
7626 (remote_target::remove_new_fork_children)
7627 (remote_target::check_pending_events_prevent_wildcard_vcont)
7628 (remote_target::discard_pending_stop_replies)
7629 (remote_target::discard_pending_stop_replies_in_queue)
7630 (remote_target::remote_notif_remove_queued_reply)
7631 (remote_target::queued_stop_reply)
7632 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
7633 (remote_target::wait, remote_target::kill_new_fork_children)
7634 (remote_target::async): Update.
7636 2018-06-10 Tom Tromey <tom@tromey.com>
7638 * record-full.c (record_full_arch_list_cleanups): Remove.
7639 (record_full_message): Use try/catch.
7640 (record_full_wait_cleanups): Remove.
7641 (record_full_wait_1): Use try/catch.
7642 (record_full_restore): Likewise.
7644 2018-06-10 Tom Tromey <tom@tromey.com>
7646 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
7647 declare VEC. Add constructor.
7648 <in_target_beneath>: Now bool.
7649 (record_full_breakpoints): Now a std::vector, static.
7650 (record_full_sync_record_breakpoints)
7651 (record_full_init_record_breakpoints)
7652 (record_full_target::insert_breakpoint)
7653 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
7655 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7657 * dwarf2read.c (process_cu_includes): Remove struct keyword.
7658 * serial.c (serial_interface_lookup): Remove struct keyword.
7660 2018-06-10 Tom Tromey <tom@tromey.com>
7662 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
7664 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
7666 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
7668 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
7669 "beneath" as a method.
7670 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
7671 Use "beneath" as a method.
7673 2018-06-10 Tom Tromey <tom@tromey.com>
7675 * tracefile.c (struct trace_file_writer_deleter): New.
7676 <operator()>: Rename from trace_file_writer_xfree.
7677 (trace_file_writer_up): New typedef.
7678 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
7680 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7682 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
7683 <m_registers, m_register_status>: Change type to
7685 * regcache.c (reg_buffer::reg_buffer): Use new instead of
7688 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7690 * common/common-regcache.h (enum register_status): Add
7691 underlying type "signed char".
7692 * regcache.h (reg_buffer) <m_register_status>: Change type to
7694 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
7695 register_status instead of signed char.
7696 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
7697 (reg_buffer::get_register_status): Remove cast.
7698 (readable_regcache::raw_read): Remove cast.
7699 (readable_regcache::cooked_read): Remove cast.
7701 2018-06-09 Tom Tromey <tom@tromey.com>
7703 * source.c (reverse_search_command, forward_search_command): Use
7706 2018-06-09 Tom Tromey <tom@tromey.com>
7708 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
7709 (serial_ops_list): Now static, std::vector.
7710 (serial_interface_lookup, serial_add_interface): Update.
7712 2018-06-09 Tom Tromey <tom@tromey.com>
7714 * dwarf2read.c (process_cu_includes): Update.
7715 (process_full_comp_unit): Update.
7716 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
7719 2018-06-08 Paul Koning <paul_koning@dell.com>
7723 * python/python.c (do_start_initialization):
7724 Avoid call to internal Python API.
7725 (init__gdb_module): New function.
7727 2018-06-08 Gary Benson <gbenson@redhat.com>
7729 * linux-thread-db.c (valprint.h): New include.
7730 (struct check_thread_db_info): New structure.
7731 (check_thread_db_on_load, tdb_testinfo): New static globals.
7732 (check_thread_db, check_thread_db_callback): New functions.
7733 (try_thread_db_load_1): Run integrity checks if requested.
7734 (maintenance_check_libthread_db): New function.
7735 (_initialize_thread_db): Register "maint check libthread-db"
7736 and "maint set/show check-libthread-db".
7737 * NEWS: Mention the above new commands.
7739 2018-06-08 Tom Tromey <tom@tromey.com>
7741 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
7744 2018-06-08 Tom Tromey <tom@tromey.com>
7746 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
7748 2018-06-08 Tom Tromey <tom@tromey.com>
7750 * common/btrace-common.h (struct btrace_data): Add constructor,
7751 destructor, move assignment operator.
7752 <empty, clear, fini>: New methods.
7753 <format>: Initialize.
7754 (btrace_data_init, btrace_data_fini, btrace_data_clear)
7755 (btrace_data_empty): Don't declare.
7756 * common/btrace-common.c (btrace_data_init): Remove.
7757 (btrace_data::fini): Rename from btrace_data_fini.
7758 (btrace_data::empty): Rename from btrace_data_empty.
7759 (btrace_data::clear): Rename from btrace_data_clear. Return
7761 * btrace.h (make_cleanup_btrace_data): Don't declare.
7762 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
7763 (parse_xml_btrace): Update.
7764 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
7765 (maint_btrace_clear_packet_history_cmd): Update.
7767 2018-06-07 Pedro Alves <palves@redhat.com>
7769 * target.h (target_ops) <beneath>: Now a method. All references
7771 (class target_stack): New.
7772 * target.c (g_target_stack): New.
7773 (g_current_top_target): Delete.
7774 (current_top_target): Get the top target out of g_target_stack.
7775 (target_stack::push, target_stack::unpush): New.
7776 (push_target, unpush_target): Reimplement.
7777 (target_is_pushed): Reimplement in terms of g_target_stack.
7778 (target_ops::beneath, target_stack::find_beneath): New.
7780 2018-06-07 Pedro Alves <palves@redhat.com>
7782 * target.h (find_target_beneath): Delete declaration.
7783 * target.c (find_target_beneath): Delete definition.
7784 * aix-thread.c: All callers of find_target_beneath adjusted to
7785 call target_ops::beneath instead.
7786 * bsd-uthread.c: Likewise.
7787 * linux-thread-db.c: Likewise.
7788 * ravenscar-thread.c: Likewise.
7789 * sol-thread.c: Likewise.
7790 * spu-multiarch.c: Likewise.
7792 2018-06-07 Pedro Alves <palves@redhat.com>
7794 * target.h (target_ops) <beneath>: Now a method. All references
7796 (target_ops) <m_beneath>: New.
7797 * target.c (target_ops::beneath): New.
7798 * corelow.c: Adjust all references to target_ops::beneath.
7799 * linux-thread-db.c: Likewise.
7800 * make-target-delegates: Likewise.
7801 * record-btrace.c: Likewise.
7802 * record-full.c: Likewise.
7803 * remote.c: Likewise.
7804 * target.c: Likewise.
7805 * target-delegates.c: Regenerate.
7807 2018-06-07 Pedro Alves <palves@redhat.com>
7809 * target.h (target_stack): Delete.
7810 (current_top_target): Declare function.
7811 * target.c (target_stack): Delete.
7812 (g_current_top_target): New.
7813 (current_top_target): New function.
7814 * auxv.c: Use current_top_target instead of target_stack
7816 * avr-tdep.c: Likewise.
7817 * breakpoint.c: Likewise.
7818 * corefile.c: Likewise.
7819 * elfread.c: Likewise.
7821 * exceptions.c: Likewise.
7822 * frame.c: Likewise.
7823 * gdbarch-selftests.c: Likewise.
7824 * gnu-v3-abi.c: Likewise.
7825 * ia64-tdep.c: Likewise.
7826 * ia64-vms-tdep.c: Likewise.
7827 * infcall.c: Likewise.
7828 * infcmd.c: Likewise.
7829 * infrun.c: Likewise.
7830 * linespec.c: Likewise.
7831 * linux-tdep.c: Likewise.
7832 * minsyms.c: Likewise.
7833 * ppc-linux-nat.c: Likewise.
7834 * ppc-linux-tdep.c: Likewise.
7835 * procfs.c: Likewise.
7836 * regcache.c: Likewise.
7837 * remote.c: Likewise.
7838 * rs6000-tdep.c: Likewise.
7839 * s390-linux-nat.c: Likewise.
7840 * s390-tdep.c: Likewise.
7841 * solib-aix.c: Likewise.
7842 * solib-darwin.c: Likewise.
7843 * solib-dsbt.c: Likewise.
7844 * solib-spu.c: Likewise.
7845 * solib-svr4.c: Likewise.
7846 * solib-target.c: Likewise.
7847 * sparc-tdep.c: Likewise.
7848 * sparc64-tdep.c: Likewise.
7849 * spu-tdep.c: Likewise.
7850 * symfile.c: Likewise.
7851 * symtab.c: Likewise.
7852 * target-descriptions.c: Likewise.
7853 * target-memory.c: Likewise.
7854 * target.c: Likewise.
7855 * target.h: Likewise.
7856 * tracefile-tfile.c: Likewise.
7857 * tracepoint.c: Likewise.
7858 * valops.c: Likewise.
7859 * valprint.c: Likewise.
7860 * value.c: Likewise.
7861 * windows-tdep.c: Likewise.
7862 * mi/mi-main.c: Likewise.
7864 2018-06-07 Tom Tromey <tom@tromey.com>
7866 * valprint.h (build_address_symbolic): Declare.
7867 * printcmd.c (print_address_symbolic): Update.
7868 (build_address_symbolic): Change "name" and "filename" to
7870 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7872 * defs.h (build_address_symbolic): Remove declaration.
7874 2018-06-07 Alan Hayward <alan.hayward@arm.com>
7876 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
7877 (aarch64_vnv_type): Add function.
7878 (aarch64_pseudo_register_name): Add V regs for SVE.
7879 (aarch64_pseudo_register_type): Likewise.
7880 (aarch64_pseudo_register_reggroup_p): Likewise.
7881 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
7882 (aarch64_pseudo_read_value): Add V regs for SVE.
7883 (aarch64_pseudo_write_2): Use V0 offset for SVE
7884 (aarch64_pseudo_write): Add V regs for SVE.
7885 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
7887 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
7889 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
7890 (sve_vl_from_vq): Likewise.
7892 2018-06-05 Tom Tromey <tom@tromey.com>
7894 * cli/cli-cmds.c (show_version): Update.
7895 * top.c (print_gdb_version): Add "interactive" parameter.
7897 * main.c (captured_main_1): Update.
7898 * top.h (print_gdb_version): Add "interactive" parameter and a
7901 2018-06-05 David Malcolm <dmalcolm@redhat.com>
7903 * common/enum-flags.h: Add trailing semicolon to example in
7906 2018-06-05 Tom Tromey <tom@tromey.com>
7909 * NEWS: Add entry about pager.
7910 * utils.c (pagination_disabled_for_command): New global.
7911 (prompt_for_continue): Allow "c" response to prompt.
7912 (reinitialize_more_filter): Clear
7913 pagination_disabled_for_command.
7914 (fputs_maybe_filtered): Check pagination_disabled_for_command.
7916 2018-06-04 Tom Tromey <tom@tromey.com>
7918 * ada-lang.h (ada_lookup_symbol_list): Update.
7919 * ada-lang.c (resolve_subexp): Update.
7920 (symbols_are_identical_enums): Change type of syms. Remove nsyms
7922 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
7923 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
7924 results parameter to std::vector.
7925 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
7927 * ada-exp.y (block_lookup): Update.
7928 (select_possible_type_sym): Change type of syms. Remove nsyms
7930 (write_var_or_type, write_name_assoc): Update.
7932 2018-06-04 Joel Brobecker <brobecker@adacore.com>
7934 * windows-nat.c (windows_nat_target::xfer_partial): Return
7935 TARGET_XFER_E_IO if we need to delegate to the target beneath
7936 but BENEATH is NULL.
7938 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
7940 * Makefile.in (config.status): Add configure.nat as a
7943 2018-06-04 Tom Tromey <tom@tromey.com>
7945 * cp-name-parser.y (cpname_state): Add method declarations.
7946 (HANDLE_QUAL): Update.
7947 (cpname_state::d_grab, cpname_state::fill_comp)
7948 (cpname_state::make_operator, cpname_state::make_dtor)
7949 (cpname_state::make_builtin_type, cpname_state::make_name)
7950 (cpname_state::d_qualify, cpname_state::d_int_type)
7951 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
7952 (%union): Move earlier.
7954 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7956 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
7958 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7960 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
7961 (aarch64_pseudo_write_1): Likewise.
7962 (aarch64_pseudo_read_value): Use helper.
7963 (aarch64_pseudo_write): Likewise.
7965 2018-06-04 Pedro Alves <palves@redhat.com>
7967 * darwin-nat.c (darwin_ops): Delete.
7968 (darwin_attach_pid): Use get_native_target.
7970 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7972 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
7973 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
7975 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7977 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
7978 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
7979 (aarch64_gdbarch_init): Check for SVE.
7980 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
7982 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7984 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
7985 * aarch64-tdep.h (aarch64_read_description): Likewise.
7986 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7987 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7988 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
7989 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
7990 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
7992 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
7994 * value.c (value_fetch_lazy_bitfield): New.
7995 (value_fetch_lazy_memory): New.
7996 (value_fetch_lazy_register): New.
7997 (value_fetch_lazy): Factor out to smaller functions.
7999 2018-06-01 Tom Tromey <tom@tromey.com>
8001 * cp-name-parser.y (backslashable, represented): Now const.
8003 2018-06-01 Tom Tromey <tom@tromey.com>
8005 * cp-name-parser.y: Include parser-defs.h.
8006 (parser_fprintf): Remove declaration.
8008 2018-06-01 Tom Tromey <tom@tromey.com>
8010 * cp-name-parser.y: Use %pure-parser, %lex-param, and
8012 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
8013 (global_result): Remove globals.
8014 (struct cpname_state): New.
8015 (yyparse): Don't declare.
8016 (yylex, yyerror): Move declarations after %union.
8017 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
8018 (make_name): Add state parameter.
8020 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
8022 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
8024 (yylex): Add lvalp, state parameters.
8025 (yyerror): Add state parameter.
8026 (cp_demangled_name_to_comp): Update.
8028 2018-06-01 Tom Tromey <tom@tromey.com>
8030 * cp-name-parser.y (parser_fprintf): Declare.
8031 (GDB_YY_REMAP_PREFIX): Define.
8032 Include yy-remap.h. Don't redefine yy* identifiers.
8034 2018-06-01 Tom Tromey <tom@tromey.com>
8036 * python/py-type.c (typy_legacy_template_argument): Update.
8037 * cp-support.h (cp_demangled_name_to_comp): Update.
8038 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
8039 parameter to be a "std::string *".
8042 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
8044 * ada-lex.l: Include "diagnostics.h" instead of
8045 "common/diagnostics.h".
8046 * unittests/environ-selftests.c: Likewise.
8047 * common/diagnostics.h: Moved to ../include.
8049 2018-06-01 Joel Brobecker <brobecker@adacore.com>
8051 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
8052 to language_mode_manual while calling breakpoint_re_set_one.
8054 2018-06-01 Tom Tromey <tom@tromey.com>
8056 * valops.c (value_cast_structs, destructor_name_p): Update.
8057 * symtab.c (gdb_mangle_name): Update.
8058 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
8060 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
8061 (pascal_object_print_value_fields, pascal_object_print_value):
8063 * p-typeprint.c (pascal_type_print_derivation_info): Update.
8064 * linespec.c (find_methods): Update.
8065 * gdbtypes.h (type_name_no_tag): Remove.
8066 (type_name_or_error): Rename from type_name_no_tag_or_error.
8067 * gdbtypes.c (type_name_no_tag): Remove.
8068 (type_name_or_error): Rename from type_name_no_tag_or_error.
8069 (lookup_struct_elt_type, check_typedef): Update.
8070 * expprint.c (print_subexp_standard): Update.
8071 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
8072 * d-namespace.c (d_lookup_nested_symbol): Update.
8073 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
8074 (cp_print_class_member): Update.
8075 * cp-namespace.c (cp_lookup_nested_symbol): Update.
8076 * completer.c (add_struct_fields): Update.
8077 * c-typeprint.c (cp_type_print_derivation_info)
8078 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
8080 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
8081 (ada_prefer_type, ada_is_exception_sym): Update.
8083 2018-06-01 Tom Tromey <tom@tromey.com>
8085 * valops.c (enum_constant_from_type, value_namespace_elt)
8086 (value_maybe_namespace_elt): Update.
8087 * valarith.c (find_size_for_pointer_math): Update.
8088 * target-descriptions.c (make_gdb_type): Update.
8089 * symmisc.c (print_symbol): Update.
8090 * stabsread.c (define_symbol, read_type)
8091 (complain_about_struct_wipeout, add_undefined_type)
8092 (cleanup_undefined_types_1): Update.
8093 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
8094 (rust_range_type_p, val_print_struct, rust_print_struct_def)
8095 (rust_internal_print_type, rust_composite_type)
8096 (rust_evaluate_funcall, rust_evaluate_subexp)
8097 (rust_inclusive_range_type_p): Update.
8098 * python/py-type.c (typy_get_tag): Update.
8099 * p-typeprint.c (pascal_type_print_base): Update.
8100 * mdebugread.c (parse_symbol, parse_type): Update.
8101 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
8103 * guile/scm-type.c (gdbscm_type_tag): Update.
8104 * go-lang.c (sixg_string_p): Update.
8105 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
8107 * gdbtypes.h (struct main_type) <tag_name>: Remove.
8108 (TYPE_TAG_NAME): Remove.
8109 * gdbtypes.c (type_name_no_tag): Simplify.
8110 (check_typedef, check_types_equal, recursive_dump_type)
8111 (copy_type_recursive, arch_composite_type): Update.
8112 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
8113 in summary mode when needed.
8114 * eval.c (evaluate_funcall): Update.
8115 * dwarf2read.c (fixup_go_packaging, read_structure_type)
8116 (process_structure_scope, read_enumeration_type)
8117 (read_namespace_type, read_module_type, determine_prefix): Update.
8118 * cp-support.c (inspect_type): Update.
8119 * coffread.c (process_coff_symbol, decode_base_type): Update.
8120 * c-varobj.c (c_is_path_expr_parent): Update.
8121 * c-typeprint.c (c_type_print_base_struct_union): Update.
8122 (c_type_print_base_1): Update. Print struct/class/union/enum in
8123 summary when using C language.
8124 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
8125 (gen_maybe_namespace_elt): Update.
8126 * ada-lang.c (ada_type_name): Simplify.
8127 (empty_record, ada_template_to_fixed_record_type_1)
8128 (template_to_static_fixed_type)
8129 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
8131 2018-06-01 Tom Tromey <tom@tromey.com>
8133 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
8135 * c-typeprint.c (c_print_type_1): Add "language" parameter.
8136 (c_print_type): Update.
8137 (c_print_type): New overload.
8138 (c_type_print_varspec_prefix, c_type_print_args)
8139 (c_type_print_varspec_suffix, c_print_type_no_offsets)
8140 (c_type_print_base_struct_union, c_type_print_base_1)
8141 (cp_type_print_method_args): Add "language" parameter.
8142 (c_type_print_base): Update.
8143 * c-lang.h (c_print_type): Add new overload.
8145 2018-06-01 Tom Tromey <tom@tromey.com>
8147 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
8148 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
8150 2018-06-01 Alan Hayward <alan.hayward@arm.com>
8152 * aarch64-tdep.c (aarch64_sve_register_names): New const
8154 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
8155 (AARCH64_SVE_Z_REGS_NUM): New define.
8156 (AARCH64_SVE_P_REGS_NUM): Likewise.
8157 (AARCH64_SVE_NUM_REGS): Likewise.
8159 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
8161 * nat/linux-ptrace.h [__alpha__]
8162 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
8165 2018-05-31 Maciej W. Rozycki <macro@mips.com>
8167 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
8168 the endianness selected.
8169 * NEWS: Document `set endian auto' mode operation update.
8171 2018-05-31 Alan Hayward <alan.hayward@arm.com>
8173 * Makefile.in: Add new header.
8174 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
8175 (sve_vl_from_vg): Likewise.
8176 (sve_vq_from_vl): Likewise.
8177 (sve_vl_from_vq): Likewise.
8178 (sve_vq_from_vg): Likewise.
8179 (sve_vg_from_vq): Likewise.
8180 * configure.nat: Add new c file.
8181 * nat/aarch64-sve-linux-ptrace.c: New file.
8182 * nat/aarch64-sve-linux-ptrace.h: New file.
8184 2018-05-31 Alan Hayward <alan.hayward@arm.com>
8186 * aarch64-linux-nat.c (aarch64_linux_read_description):
8188 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8190 * aarch64-tdep.c (tdesc_aarch64_list): Add.
8191 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
8192 (aarch64_gdbarch_init): Add parmeter zero.
8193 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
8194 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
8195 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
8197 * doc/gdb.texinfo: Describe SVE feature
8198 * features/aarch64-sve.c: New file.
8200 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
8203 * gdbarch.sh (significant_addr_bit): Default to zero when
8204 not set by target architecture.
8205 * gdbarch.c: Re-generated.
8206 * utils.c (address_significant): Update.
8208 2018-05-30 Joel Brobecker <brobecker@adacore.com>
8210 * stack.c (func_command): Remove trailing newline in call to error.
8212 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8214 * regcache.h (regcache_raw_collect): Remove, update callers to
8215 use regcache::raw_collect.
8216 * regcache.c (regcache_raw_collect): Remove.
8218 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8220 * regcache.h (regcache_raw_supply): Remove, update callers to
8221 use detached_regcache::raw_supply.
8222 * regcache.c (regcache_raw_supply): Remove.
8224 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8226 * regcache.h (regcache_cooked_write_part): Remove, update
8227 callers to use regcache::cooked_write_part.
8228 * regcache.c (regcache_cooked_write_part): Remove.
8230 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8232 * regcache.h (regcache_cooked_read_part): Remove, update callers
8233 to use readable_regcache::cooked_read_part.
8234 * regcache.c (regcache_cooked_read_part): Remove.
8236 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8238 * regcache.h (regcache_cooked_read_value): Remove, update
8239 callers to use readable_regcache::cooked_read_value.
8240 * regcache.c (regcache_cooked_read_value): Remove.
8242 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8244 * regcache.h (regcache_cooked_write): Remove, update callers to
8245 use regcache::cooked_write.
8246 * regcache.c (regcache_cooked_write): Remove.
8248 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8250 * regcache.h (regcache_invalidate): Remove, update callers to
8251 use detached_regcache::invalidate instead.
8252 * regcache.c (regcache_invalidate): Remove.
8254 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8256 * regcache.h (regcache_raw_write_part): Remove, update callers
8257 to use regcache::raw_write_part instead.
8258 * regcache.c (regcache_raw_write_part): Remove.
8260 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8262 * regcache.h (regcache_raw_read_part): Remove, update callers to
8263 use readable_regcache::raw_read_part instead.
8264 * regcache.c (regcache_raw_read_part): Remove.
8266 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8268 * regcache.h (regcache_cooked_read): Remove, update callers to
8269 use readable_regcache::cooked_read instead.
8270 * regcache.c (regcache_cooked_read): Remove.
8272 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8274 * regcache.h (regcache_raw_write): Remove, update callers to use
8275 regcache::raw_write instead.
8276 * regcache.c (regcache_raw_write): Remove.
8278 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8280 * regcache.h (regcache_raw_read): Remove, update callers to use
8281 readable_regcache::raw_read instead.
8282 * regcache.c (regcache_raw_read): Remove.
8284 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8286 * regcache.h (regcache_raw_update): Remove, update callers to
8287 use readable_regcache::raw_update instead.
8288 * regcache.c (regcache_raw_update): Remove.
8290 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8292 * regcache.h (regcache_register_status): Remove, update callers
8293 to use reg_buffer::get_register_status directly instead.
8294 * regcache.c (regcache_register_status): Remove.
8296 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8298 * regcache.h (regcache_get_ptid): Remove, update all callers to
8299 call regcache::ptid instead.
8300 * regcache.c (regcache_get_ptid): Remove.
8302 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8304 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
8306 2018-05-30 Pedro Alves <palves@redhat.com>
8308 * common/common-exceptions.h (exception_rethrow): Use
8311 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
8313 * breakpoint.c (print_solib_event, check_status_catch_solib):
8314 Remove struct keyword in range-based for loops.
8315 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
8316 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
8318 * linespec.c (find_superclass_methods, search_minsyms_for_name):
8320 * symfile.c (addr_info_make_relative): Likewise.
8321 * thread.c (value_in_thread_stack_temporaries): Likewise.
8323 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
8326 * valops.c (value_struct_elt_for_reference): Call check_typedef on
8327 aggregate type to get its real type before accessing it.
8329 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
8331 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
8332 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
8333 * coff-pe-read.c (add_pe_forwarded_sym): Replace
8334 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
8335 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
8336 * jit.c (jit_breakpoint_re_set_internal): Likewise.
8337 * printcmd.c (info_address_command): Likewise.
8339 2018-05-29 Tom Tromey <tom@tromey.com>
8341 * windows-nat.c (handle_exception): Update fall-through comment.
8343 2018-05-29 Tom Tromey <tom@tromey.com>
8345 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
8346 (struct program_space) <added_solibs>: Now a std::vector.
8347 * breakpoint.c (print_solib_event): Update.
8348 (check_status_catch_solib): Update.
8349 * progspace.c (clear_program_space_solib_cache): Update.
8350 * solib.c (update_solib_list): Update.
8352 2018-05-29 Tom Tromey <tom@tromey.com>
8354 * python/py-type.c (typy_richcompare): Update.
8355 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
8356 * gdbtypes.h (types_deeply_equal): Return bool.
8357 (types_equal): Likewise.
8358 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
8360 (check_types_equal): Change worklist to std::vector. Return
8362 (struct type_equality_entry): Add constructor.
8363 (compare_maybe_null_strings): Return bool.
8364 (check_types_worklist): Return bool. Change worklist to
8366 (types_deeply_equal): Use std::vector.
8367 (types_equal): Return bool.
8368 (compare_maybe_null_strings): Simplify.
8370 2018-05-29 Tom Tromey <tom@tromey.com>
8372 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
8374 2018-05-29 Tom Tromey <tom@tromey.com>
8376 * objc-lang.h: Don't include cp-support.h.
8377 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
8380 2018-05-27 Tom Tromey <tom@tromey.com>
8382 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
8384 2018-05-25 Tom Tromey <tom@tromey.com>
8386 * value.c (value::location): Initialize.
8388 2018-05-25 Tom Tromey <tom@tromey.com>
8390 * dbxread.c (init_bincl_list): Remove.
8391 (bincl_list): Now a std::vector.
8392 (bincls_allocated, next_bincl): Remove.
8393 (free_bincl_list, do_free_bincl_list_cleanup)
8394 (make_cleanup_free_bincl_list): Remove.
8395 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
8397 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
8398 (struct header_file_location): Add constructor.
8399 (add_bincl_to_list): Remove.
8401 2018-05-25 Tom Tromey <tom@tromey.com>
8403 * tui/tui.c (tui_enable): Update.
8404 * mi/mi-interp.c (mi_interp::init): Update.
8405 * interps.h (class interp) <name>: New method.
8406 <m_name>: Rename from name.
8407 (~scoped_restore_interp): Update.
8408 * interps.c (interp::interp): Update.
8409 (interp_add, interp_set, interp_lookup_existing)
8410 (current_interp_named_p): Update.
8412 2018-05-25 Tom Tromey <tom@tromey.com>
8414 * interps.c (interp_name): Remove.
8415 * mi/mi-interp.c (mi_interp::init): Update.
8416 * interps.h (interp_name): Remove.
8417 (~scoped_restore_interp): Update.
8418 * tui/tui.c (tui_enable): Update.
8420 2018-05-25 Tom Tromey <tom@tromey.com>
8422 * utils.c (fputs_maybe_filtered): Update.
8423 * linespec.c (decode_line_full): Update.
8424 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
8425 (mi_print_breakpoint_for_event, mi_solib_loaded)
8426 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
8427 (mi_user_selected_context_changed): Update.
8428 * mi/mi-main.c (mi_execute_command): Update.
8429 * cli/cli-script.c (execute_control_command): Update.
8430 * python/python.c (execute_gdb_command): Update.
8431 * solib.c (info_sharedlibrary_command): Update.
8432 * interps.c (interp_ui_out): Remove.
8433 * interps.h (interp_ui_out): Remove.
8435 2018-05-25 Tom Tromey <tom@tromey.com>
8437 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
8438 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
8439 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
8441 2018-05-25 Tom Tromey <tom@tromey.com>
8443 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
8444 * interps.c (interp_exec): Use scoped_restore.
8446 2018-05-25 Tom Tromey <tom@tromey.com>
8448 * remote.c (remote_target::remote_file_get): Use
8450 (remote_target::remote_file_put): Likewise.
8452 2018-05-25 Tom Tromey <tom@tromey.com>
8454 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
8456 (get_pe_section_index, add_pe_exported_sym): Update.
8457 (read_pe_exported_syms): Use gdb::def_vector.
8459 2018-05-25 Tom Tromey <tom@tromey.com>
8461 * frame.c (remove_prev_frame): Remove.
8462 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
8464 2018-05-25 Maciej W. Rozycki <macro@mips.com>
8466 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
8468 * mips-linux-nat.c (supply_fpregset): Always call
8469 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
8470 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
8471 `mips_fill_fpregset'.
8472 * mips-linux-tdep.c (mips_supply_fpregset)
8473 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
8474 (mips_fill_fpregset_wrapper): Remove functions.
8475 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
8476 (mips_linux_fpregset): Remove variable.
8477 (mips_linux_iterate_over_regset_sections): Use
8478 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
8479 (mips_linux_o32_sigframe_init): Remove comment.
8481 2018-05-25 Pedro Alves <palves@redhat.com>
8483 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
8484 (struct readahead_cache, struct packet_reg, struct
8485 remote_arch_state, class remote_state): Move higher up in the
8487 (remote_target::m_remote_state): Now an object instead of a pointer.
8488 (remote_target::get_remote_state): Adjust.
8490 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
8492 * stack.c (select_and_print_frame): Delete.
8493 (struct function_bounds): Move struct within function.
8494 (func_command): Most content moved into new function
8495 find_frame_for_function, use new function, print result, add
8497 (find_frame_for_function): New function, now returns a result.
8499 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8501 * stack.c (iterate_over_block_arg_vars): Fix comment.
8502 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
8504 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
8508 (scoped_restore_selected_frame::scoped_restore_selected_frame):
8510 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
8512 * frame.h (class scoped_restore_selected_frame): New class.
8513 * stack.c (print_frame_local_vars): Remove catching and rethrowing
8514 of any exception, use scoped_restore_selected_frame to restore the
8517 2018-05-24 Pedro Alves <palves@redhat.com>
8519 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
8522 2018-05-23 Tom Tromey <tom@tromey.com>
8524 * complaints.c (struct complaints): Remove.
8525 (symfile_complaint_book): Remove.
8526 (series): New global.
8527 (complaint_internal): Update.
8528 (clear_complaints): Update.
8530 2018-05-23 Tom Tromey <tom@tromey.com>
8532 * complaints.c (counters): New global.
8533 (struct complain): Remove.
8534 (struct complaints) <root>: Remove.
8535 (complaint_sentinel): Remove.
8536 (symfile_complaint_book): Update.
8537 (find_complaint) Remove.
8538 (complaint_internal, clear_complaints): Update.
8540 2018-05-23 Tom Tromey <tom@tromey.com>
8542 * complaints.c (struct complain) <file, line>: Remove.
8543 (find_complaint): Remove file, line parameters.
8544 (complaint_internal): Update.
8546 2018-05-23 Tom Tromey <tom@tromey.com>
8548 * complaints.c (vcomplaint): Remove.
8549 (complaint_internal) Merge in contents of vcomplaint.
8551 2018-05-23 Tom Tromey <tom@tromey.com>
8553 * complaints.c (struct complaints) <explanation>: Remove.
8554 (symfile_explanations): Remove.
8555 (symfile_complaint_book): Update.
8556 (vcomplaint): Update.
8557 (struct explanation): Remove.
8559 2018-05-23 Tom Tromey <tom@tromey.com>
8561 * complaints.c (symfile_complaints): Remove.
8562 (complaint_internal): Remove "complaints" parameter.
8563 (clear_complaints, vcomplaint): Remove "c" parameter.
8564 (get_complaints): Remove.
8565 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
8566 (dwarf2_debug_line_missing_file_complaint)
8567 (dwarf2_debug_line_missing_end_sequence_complaint)
8568 (dwarf2_complex_location_expr_complaint)
8569 (dwarf2_const_value_length_mismatch_complaint)
8570 (dwarf2_section_buffer_overflow_complaint)
8571 (dwarf2_macro_malformed_definition_complaint)
8572 (dwarf2_invalid_attrib_class_complaint)
8573 (create_addrmap_from_index, dw2_symtab_iter_next)
8574 (dw2_expand_marked_cus)
8575 (dw2_debug_names_iterator::find_vec_in_debug_names)
8576 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
8577 (create_debug_type_hash_table, init_cutu_and_read_dies)
8578 (partial_die_parent_scope, add_partial_enumeration)
8579 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
8580 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
8581 (read_import_statement, read_file_scope, create_dwo_cu_reader)
8582 (create_cus_hash_table, create_dwp_hash_table)
8583 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8584 (dwarf2_rnglists_process, dwarf2_ranges_process)
8585 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
8586 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
8587 (handle_struct_member_die, process_structure_scope)
8588 (read_array_type, read_common_block, read_module_type)
8589 (read_tag_pointer_type, read_typedef, read_base_type)
8590 (read_subrange_type, load_partial_dies, partial_die_info::read)
8591 (partial_die_info::read, partial_die_info::read)
8592 (partial_die_info::read, read_checked_initial_length_and_offset)
8593 (dwarf2_string_attr, read_formatted_entries)
8594 (dwarf_decode_line_header)
8595 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
8596 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
8597 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
8598 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8599 (get_signatured_type, get_DW_AT_signature_type)
8600 (decode_locdesc, file_file_name, consume_improper_spaces)
8601 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
8602 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8603 (dwarf2_symbol_mark_computed, set_die_type)
8604 (read_attribute_value): Update.
8605 * stap-probe.c (handle_stap_probe, get_stap_base_address):
8607 * dbxread.c (unknown_symtype_complaint)
8608 (lbrac_mismatch_complaint, repeated_header_complaint)
8609 (set_namestring, function_outside_compilation_unit_complaint)
8610 (read_dbx_symtab, process_one_symbol): Update.
8611 * gdbtypes.c (stub_noname_complaint): Update.
8612 * windows-nat.c (handle_unload_dll): Update.
8613 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
8614 (decode_base_type): Update.
8615 * xcoffread.c (bf_notfound_complaint, ef_complaint)
8616 (eb_complaint, record_include_begin, record_include_end)
8617 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
8618 (process_xcoff_symbol, read_symbol)
8619 (function_outside_compilation_unit_complaint)
8620 (scan_xcoff_symtab): Update.
8621 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
8622 * buildsym.c (finish_block_internal, make_blockvector)
8623 (end_symtab_get_static_block, augment_type_symtab): Update.
8624 * dtrace-probe.c (dtrace_process_dof)
8625 (dtrace_static_probe_ops::get_probes): Update.
8626 * complaints.h (struct complaint): Don't declare.
8627 (symfile_complaints): Remove.
8628 (complaint_internal): Remove "complaints" parameter.
8629 (complaint): Likewise.
8630 (clear_complaints): Likewise.
8631 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8632 (reread_symbols): Update.
8633 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
8634 (dwarf2_frame_cache, decode_frame_entry): Update.
8635 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
8636 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8637 (info_selectors_command): Update.
8638 * macrotab.c (macro_include, check_for_redefinition)
8639 (macro_undef): Update.
8640 * objfiles.c (filter_overlapping_sections): Update.
8641 * stabsread.c (invalid_cpp_abbrev_complaint)
8642 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
8643 (define_symbol, error_type, read_type, rs6000_builtin_type)
8644 (stabs_method_name_from_physname, read_member_functions)
8645 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
8646 (attach_fields_to_type, complain_about_struct_wipeout)
8647 (read_range_type, read_args, common_block_start)
8648 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
8650 * mdebugread.c (index_complaint, unknown_ext_complaint)
8651 (basic_type_complaint, bad_tag_guess_complaint)
8652 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
8653 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
8654 (parse_procedure, parse_lines)
8655 (function_outside_compilation_unit_complaint)
8656 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
8657 (bad_tag_guess_complaint, reg_value_complaint): Update.
8658 * cp-support.c (demangled_name_complaint): Update.
8659 * macroscope.c (sal_macro_scope): Update.
8660 * dwarf-index-write.c (class debug_names): Update.
8662 2018-05-23 Tom Tromey <tom@tromey.com>
8664 * complaints.c (clear_complaints): Remove "noisy" parameter.
8665 * complaints.h (clear_complaints): Update.
8666 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8667 (reread_symbols): Update.
8669 2018-05-23 Tom Tromey <tom@tromey.com>
8671 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
8673 (vcomplaint, clear_complaints): Update.
8674 (symfile_explanations): Remove some messages.
8676 2018-05-23 Tom Tromey <tom@tromey.com>
8678 * complaints.c (internal_complaint): Remove.
8679 * complaints.h (internal_complaint): Remove.
8681 2018-05-22 Maciej W. Rozycki <macro@mips.com>
8683 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
8685 2018-05-22 Pedro Alves <palves@redhat.com>
8687 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
8688 (remote_fileio_badfd, remote_fileio_return_errno)
8689 (remote_fileio_return_success, remote_fileio_func_open)
8690 (remote_fileio_func_open, remote_fileio_func_close)
8691 (remote_fileio_func_read, remote_fileio_func_write)
8692 (remote_fileio_func_lseek, remote_fileio_func_rename)
8693 (remote_fileio_func_unlink, remote_fileio_func_stat)
8694 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
8695 (remote_fileio_func_isatty, remote_fileio_func_system): Add
8696 remote_target parameter.
8697 (remote_fio_func_map) <func>: Add remote_target parameter.
8698 (do_remote_fileio_request, remote_fileio_request):
8699 * remote-fileio.h (remote_fileio_request):
8700 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
8701 remote_target parameter.
8702 (remote_notif_process, handle_notification): Adjust to pass down
8704 (remote_notif_state_allocate): Add remote_target parameter. Save
8706 * remote-notif.h (struct remote_target): Forward declare.
8707 (struct notif_client) <parse, ack, can_get_pending_events>: Add
8708 remote_target parameter.
8709 (struct remote_notif_state) <remote>: New field.
8710 (remote_notif_ack, remote_notif_parse): Add remote_target
8712 (remote_notif_state_allocate, remote_notif_state_allocate): Add
8713 remote_target parameter.
8714 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
8715 (threads_listing_context, rmt_thread_action, protocol_feature)
8716 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
8717 (packet_result, struct threads_listing_context, remote_state):
8718 Move definitions and declarations higher up.
8719 (remote_target) <~remote_target>: Declare.
8720 (remote_download_command_source, remote_file_put, remote_file_get)
8721 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
8722 (remote_hostio_pread_vFile, remote_hostio_send_command)
8723 (remote_hostio_set_filesystem, remote_hostio_open)
8724 (remote_hostio_close, remote_hostio_unlink, remote_state)
8725 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
8726 (get_memory_write_packet_size, get_memory_read_packet_size)
8727 (append_pending_thread_resumptions, remote_detach_1)
8728 (append_resumption, remote_resume_with_vcont)
8729 (add_current_inferior_and_thread, wait_ns, wait_as)
8730 (process_stop_reply, remote_notice_new_inferior)
8731 (process_initial_stop_replies, remote_add_thread)
8732 (btrace_sync_conf, remote_btrace_maybe_reopen)
8733 (remove_new_fork_children, kill_new_fork_children)
8734 (discard_pending_stop_replies, stop_reply_queue_length)
8735 (check_pending_events_prevent_wildcard_vcont)
8736 (discard_pending_stop_replies_in_queue, stop_reply)
8737 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
8738 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
8739 (remote_interrupt_as, remote_interrupt_ns)
8740 (remote_get_noisy_reply, remote_query_attached)
8741 (remote_add_inferior, remote_current_thread, get_current_thread)
8742 (set_thread, set_general_thread, set_continue_thread)
8743 (set_general_process, write_ptid)
8744 (remote_unpack_thread_info_response, remote_get_threadinfo)
8745 (parse_threadlist_response, remote_get_threadlist)
8746 (remote_threadlist_iterator, remote_get_threads_with_ql)
8747 (remote_get_threads_with_qxfer)
8748 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
8749 (get_offsets, remote_check_symbols, remote_supported_packet)
8750 (remote_query_supported, remote_packet_size)
8751 (remote_serial_quit_handler, remote_detach_pid)
8752 (remote_vcont_probe, remote_resume_with_hc)
8753 (send_interrupt_sequence, interrupt_query)
8754 (remote_notif_get_pending_events, fetch_register_using_p)
8755 (send_g_packet, process_g_packet, fetch_registers_using_g)
8756 (store_register_using_P, store_registers_using_G)
8757 (set_remote_traceframe, check_binary_download)
8758 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
8759 (remote_xfer_live_readonly_partial, remote_read_bytes)
8760 (remote_send_printf, remote_flash_write, readchar)
8761 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
8762 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
8763 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
8764 (extended_remote_disable_randomization, extended_remote_run)
8765 (send_environment_packet, extended_remote_environment_support)
8766 (extended_remote_set_inferior_cwd, remote_write_qxfer)
8767 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
8768 (packet_command): Now methods of ...
8769 (remote_target): ... this class.
8770 (m_remote_state) <remote_target>: New field.
8771 (struct remote_state) <stop_reply_queue,
8772 remote_async_inferior_event_token, wait_forever_enabled_p>: New
8774 (remote_state::remote_state): Allocate stop_reply_queue.
8775 (remote_state): Delete global.
8776 (get_remote_state_raw): Delete.
8777 (remote_target::get_remote_state): Allocate m_remote_state on
8779 (get_current_remote_target): New.
8780 (remote_ops, extended_remote_ops): Delete.
8781 (wait_forever_enabled_p, remote_async_inferior_event_token):
8782 Delete, moved to struct remote_state.
8783 (remote_target::close): Delete self. Destruction bits split to
8785 (remote_target::~remote_target): ... this.
8786 (show_memory_packet_size): Adjust to use
8787 get_current_remote_target.
8788 (struct protocol_feature) <func>: Add remote_target parameter.
8789 All callers adjusted.
8790 (curr_quit_handler_target): New.
8791 (remote_serial_quit_handler): Reimplement.
8792 (remote_target::open_1): Adjust to use get_current_remote_target.
8793 Heap-allocate remote_target/extended_remote_target instances.
8794 (vcont_builder::vcont_builder): Add remote_target parameter, and
8795 save it in m_remote. All callers adjusted.
8796 (vcont_builder::m_remote): New field.
8797 (vcont_builder::restart, vcont_builder::flush)
8798 (vcont_builder::push_action): Use it.
8799 (remote_target::commit_resume): Use it.
8800 (struct queue_iter_param) <remote>: New field.
8801 (remote_target::remove_new_fork_children): Fill in 'remote' field.
8802 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
8803 (check_pending_event_prevents_wildcard_vcont_callback)
8804 (remote_target::check_pending_events_prevent_wildcard_vcont)
8805 (remote_target::discard_pending_stop_replies)
8806 (remote_target::discard_pending_stop_replies_in_queue)
8807 (remote_target::remote_notif_remove_queued_reply): Fill in
8809 (remote_notif_get_pending_events): New.
8810 (remote_target::readchar, remote_target::remote_serial_write):
8811 Save/restore curr_quit_handler_target.
8813 (kill_new_fork_children): Fill in 'remote' field.
8814 (packet_command): Use get_current_remote_target, defer to
8815 remote_target method of same name.
8816 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
8817 parameter, and save it in m_remote. All callers adjusted.
8818 (scoped_remote_fd::release): Use m_remote.
8819 (scoped_remote_fd::m_remote): New field.
8820 (remote_file_put, remote_file_get, remote_file_delete): Use
8821 get_current_remote_target, defer to remote_target method of same
8823 (remote_btrace_reset): Add remote_state paremeter. Update all
8825 (remote_async_inferior_event_handler). Pass down 'data'.
8826 (remote_new_objfile): Use get_current_remote_target.
8827 (remote_target::vcont_r_supported): New.
8828 (set_range_stepping): Use get_current_remote_target and
8829 remote_target::vcont_r_supported.
8830 (_initialize_remote): Don't allocate 'remote_state' and
8831 'stop_reply_queue' globals.
8832 * remote.h (struct remote_target): Forward declare.
8833 (getpkt, putpkt, remote_notif_get_pending_events): Add
8834 'remote_target' parameter.
8836 2018-05-22 Pedro Alves <palves@redhat.com>
8838 * remote.c (vcont_builder): Now a class. Make all data members
8840 (vcont_builder) <vcont_builder, restart, flush, push_action>:
8842 (vcont_builder_restart): Rename to ...
8843 (vcont_builder::restart): ... this.
8844 (vcont_builder_flush): Rename to ...
8845 (vcont_builder::flush): ... this.
8846 (vcont_builder_push_action): Rename to ...
8847 (vcont_builder::push_action): ... this.
8848 (remote_target::commit_resume): Adjust.
8850 2018-05-22 Pedro Alves <palves@redhat.com>
8852 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
8853 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
8854 (get_fixed_memory_packet_size): New.
8855 (get_memory_packet_size): Use it.
8856 (set_memory_packet_size): Don't override the config size with
8857 DEFAULT_MAX_MEMORY_PACKET_SIZE.
8858 (show_memory_packet_size): Use get_fixed_memory_packet_size.
8859 Don't refer to get_memory_packet_size if not connected to a remote
8860 target. Show "(default)" if configured size is 0.
8862 2018-05-22 Pedro Alves <palves@redhat.com>
8864 * remote.c (remote_target::mourn_inferior): Move
8865 discard_pending_stop_replies call here from ...
8866 (_initialize_remote): ... here.
8868 2018-05-22 Pedro Alves <palves@redhat.com>
8870 * remote.c (compare_section_command): Remove set_general_process
8873 2018-05-22 Pedro Alves <palves@redhat.com>
8875 * remote.c (struct packet_reg, struct remote_arch_state):
8876 Move higher up in the file.
8877 (remote_state) <m_arch_states>: Store remote_arch_state values
8878 instead of remote_arch_state pointers.
8879 (remote_state::get_remote_arch_state): Adjust.
8881 2018-05-22 Pedro Alves <palves@redhat.com>
8883 * remote.c: Include <unordered_map>.
8884 (remote_state): Now a class.
8885 (remote_state) <get_remote_arch_state>: Declare method.
8886 <get_remote_arch_state>: New field.
8887 (remote_arch_state) <remote_arch_state>: Declare ctor.
8888 <regs>: Now a unique_ptr.
8889 (remote_gdbarch_data_handle): Delete.
8890 (get_remote_arch_state): Delete.
8891 (remote_state::get_remote_arch_state): New.
8892 (get_remote_state): Adjust to call remote_state's
8893 get_remote_arch_state method.
8894 (init_remote_state): Delete, bits factored out to ...
8895 (remote_arch_state::remote_arch_state): ... this new method.
8896 (get_remote_packet_size, get_memory_packet_size)
8897 (process_g_packet, remote_target::fetch_registers)
8898 (remote_target::prepare_to_store, store_registers_using_G)
8899 (remote_target::store_registers, remote_target::get_trace_status):
8900 Adjust to call remote_state's method.
8901 (_initialize_remote): Remove reference to
8902 remote_gdbarch_data_handle.
8904 2018-05-22 Pedro Alves <palves@redhat.com>
8906 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
8907 pread>: New method declarations.
8908 (remote_target::open_1): Adjust.
8909 (readahead_cache_invalidate): Rename to ...
8910 (readahead_cache::invalidate): ... this, and adjust to be a class
8912 (readahead_cache_invalidate_fd): Rename to ...
8913 (readahead_cache::invalidate_fd): ... this, and adjust to be a
8915 (remote_hostio_pwrite): Adjust.
8916 (remote_hostio_pread_from_cache): Rename to ...
8917 (readahead_cache::pread): ... this, and adjust to be a class
8919 (remote_hostio_close): Adjust.
8921 2018-05-22 Pedro Alves <palves@redhat.com>
8923 * remote.c (remote_hostio_close_cleanup): Delete.
8924 (class scoped_remote_fd): New.
8925 (remote_file_put, remote_file_get): Use it.
8927 2018-05-22 Pedro Alves <palves@redhat.com>
8929 (struct vCont_action_support): Use bool and initialize all fields.
8930 (struct readahead_cache): Initialize all fields.
8931 (remote_state): Use bool and initialize all fields.
8932 (remote_state::remote_state, remote_state::~remote_state): New.
8933 (new_remote_state): Delete.
8934 (_initialize_remote): Use new to allocate remote_state.
8936 2018-05-22 Pedro Alves <palves@redhat.com>
8940 * c-exp.y: Include "c-support.h".
8941 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
8942 of tolower. Use c_ident_is_alpha to scan names.
8943 * c-lang.c: Include "c-support.h".
8944 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
8945 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
8946 * c-support.h: New file, with bits factored out from ...
8947 * cp-name-parser.y: ... this file.
8948 Include "c-support.h".
8949 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
8950 c-support.h and renamed.
8951 (symbol_end, yylex): Adjust.
8953 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8955 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
8956 parameter type to CORE_ADDR.
8957 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
8958 parameter type in declaration to CORE_ADDR.
8959 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
8960 target_auxv_search to get AT_HWCAP and use the result to get the
8962 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
8963 to CORE_ADDR. Remove the cast of the return value to unsigned
8964 long. Fix error predicate of target_auxv_search.
8965 (ppc_linux_nat_target::read_description): Change the type of the
8966 hwcap variable to CORE_ADDR.
8968 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8970 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
8971 if the size of fpscr is larger than 32 bits.
8973 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8975 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
8976 (ppc32_linux_vsxregmap): New global.
8977 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
8978 regcache_supply_regset, and regcache_collect_regset.
8979 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
8980 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
8981 (fetch_vsx_register, store_vsx_register): Remove.
8982 (fetch_vsx_registers): Add regno parameter. Get regset using
8983 ppc_linux_vsxregset. Use regset to supply registers.
8984 (store_vsx_registers): Add regno parameter. Get regset using
8985 ppc_linux_vsxregset. Use regset to collect registers.
8986 (fetch_register): Call fetch_vsx_registers instead of
8988 (store_register): Call store_vsx_registers instead of
8990 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
8991 new regno parameter.
8992 (store_ppc_registers): Call store_vsx_registers with -1 for the
8993 new regno parameter.
8994 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
8995 (ppc_collect_vsxregset): Remove.
8997 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8999 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
9001 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
9002 for vector register offset fields.
9003 (ppc64_fbsd_reg_offsets): Likewise.
9004 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9005 to vector register offset fields.
9006 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9007 to vector register offset fields.
9008 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
9009 vector register offset fields.
9010 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
9011 initializers for vector register offset fields.
9012 (rs6000_aix64_reg_offsets): Likewise.
9013 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
9014 (ppc_supply_vrregset): Remove.
9015 (ppc_collect_vrregset): Remove.
9016 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
9017 (ppc_linux_vrregset) : New function.
9018 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
9019 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
9020 (ppc32_linux_vrregset): Remove.
9021 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
9022 and use result instead of ppc32_linux_vrregset.
9023 (ppc32_linux_reg_offsets): Remove initializers for vector register
9025 (ppc64_linux_reg_offsets): Likewise.
9026 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
9027 * ppc-linux-nat.c: Include regset.h.
9028 (gdb_vrregset_t): Adjust comment to account for little-endian
9030 (supply_vrregset, fill_vrregset): Remove.
9031 (fetch_altivec_register, store_altivec_register): Remove.
9032 (fetch_altivec_registers): Add regno parameter. Get regset using
9033 ppc_linux_vrregset. Use regset to supply registers.
9034 (store_altivec_registers): Add regno parameter. Get regset using
9035 ppc_linux_vrregset. Use regset to collect registers.
9036 (fetch_register): Call fetch_altivec_registers instead of
9037 fetch_altivec_register.
9038 (store_register): Call store_altivec_registers instead of
9039 store_altivec_register.
9040 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
9041 the new regno parameter.
9042 (store_ppc_registers): Call store_altivec_registers with -1 for
9043 the new regno parameter.
9045 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9047 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
9048 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
9049 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
9050 (gdb_vrregset_t): Change array type size to
9051 PPC_LINUX_SIZEOF_VRREGSET.
9052 (gdb_vsxregset_t): Change array type size to
9053 PPC_LINUX_SIZEOF_VSXREGSET.
9054 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
9055 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
9056 PPC_LINUX_SIZEOF_VSXREGSET.
9058 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9060 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
9061 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
9063 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
9064 ppc_linux_target_wordsize with tid.
9065 (ppc_linux_nat_target::read_description): Call ppc_linux_target
9067 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
9068 (ppc64_64bit_inferior_p): Add static and inline specifiers.
9069 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
9070 tid parameter. Remove static specifier.
9071 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
9072 (ppc_linux_target_wordsize): New declaration.
9074 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9076 * arch/ppc-linux-common.c: New file.
9077 * arch/ppc-linux-common.h: New file.
9078 * arch/ppc-linux-tdesc.h: New file.
9079 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
9080 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
9081 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
9082 arch/ppc-linux-tdesc.h.
9083 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
9084 arch/ppc-linux-tdesc.h.
9085 (ppc_linux_nat_target::read_description): Remove target
9086 description matching code. Fill a ppc_linux_features struct and
9087 call ppc_linux_match_description with it. Move comment about ISA
9088 2.05 to ppc-linux-common.c.
9089 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
9090 arch/ppc-linux-tdesc.h.
9091 (ppc_linux_core_read_description): Remove target description
9092 matching code. Fill a ppc_linux_features struct and call
9093 ppc_linux_match_description with it.
9094 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
9095 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
9096 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
9097 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
9098 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
9099 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
9100 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
9101 (tdesc_powerpc_e500l): Remove.
9103 2018-05-22 Joel Brobecker <brobecker@adacore.com>
9105 * ada-lang.c (catch_assert_command): Pass empty string instead
9106 of NULL for excep_string argument.
9108 2018-05-22 Maciej W. Rozycki <macro@mips.com>
9110 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
9111 the width of the requested register exceeds the width of the
9114 2018-05-21 Tom Tromey <tom@tromey.com>
9116 * printcmd.c (output_command): Remove.
9117 (output_command_const): Rename to output_command.
9118 * valprint.h (output_command): Rename from output_command_const.
9119 * tracepoint.c (trace_dump_actions): Call output_command.
9121 2018-05-21 Tom Tromey <tom@tromey.com>
9123 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
9124 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
9125 * ada-lang.h (create_ada_exception_catchpoint): Update.
9126 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
9128 (create_excep_cond_exprs, ~ada_catchpoint)
9129 (should_stop_exception, print_one_exception)
9130 (print_mention_exception, print_recreate_exception): Update.
9131 (ada_get_next_arg): Remove.
9132 (catch_ada_exception_command_split): Use std::string. Change type
9133 of "excep_string", "cond_string".
9134 (catch_ada_exception_command): Update.
9135 (create_ada_exception_catchpoint): Change type of excep_string.
9136 (ada_exception_sal): Remove excep_string parameter.
9137 (~ada_catchpoint): Remove.
9139 2018-05-21 Tom Tromey <tom@tromey.com>
9141 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
9144 2018-05-21 Tom Tromey <tom@tromey.com>
9146 * ada-lang.c (ada_exception_message_1, ada_exception_message):
9147 Return unique_xmalloc_ptr.
9148 (print_it_exception): Update.
9150 2018-05-21 Tom Tromey <tom@tromey.com>
9152 * tracepoint.c (trace_dump_actions): Use std::string.
9154 2018-05-21 Tom Tromey <tom@tromey.com>
9156 * symfile.c (reread_symbols): Use std::string for original_name.
9158 2018-05-21 Tom Tromey <tom@tromey.com>
9160 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
9161 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
9164 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
9166 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
9168 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
9169 * objfiles.c (get_objfile_bfd_data): Allocate
9170 objfile_per_bfd_storage with obstack_new when allocating on
9173 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9175 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
9177 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
9178 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
9179 * mdebugread.c (mdebug_build_psymtabs): Likewise.
9180 (add_pending): Likewise.
9181 (parse_symbol): Likewise.
9182 (parse_partial_symbols): Likewise.
9183 (psymtab_to_symtab_1): Likewise.
9184 (new_psymtab): Likewise.
9185 (elfmdebug_build_psymtabs): Likewise.
9186 * minsyms.c (terminate_minimal_symbol_table): Likewise.
9187 * objfiles.c (get_objfile_bfd_data): Likewise.
9188 (objfile_register_static_link): Likewise.
9189 * psymtab.c (allocate_psymtab): Likewise.
9190 * stabsread.c (read_member_functions): Likewise.
9191 * xcoffread.c (xcoff_end_psymtab): Likewise.
9193 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9195 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
9196 compiler supports std::is_trivially_constructible.
9197 * common/poison.h: Include obstack.h.
9198 (IsMallocable): Define to is_trivially_constructible if the
9199 compiler supports it, define to true_type otherwise.
9203 (XOBNEWVEC): Redefine.
9204 * gdb_obstack.h (obstack_zalloc): New.
9205 (OBSTACK_ZALLOC): Redefine.
9206 (obstack_calloc): New.
9207 (OBSTACK_CALLOC): Redefine.
9209 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
9210 (gdbarch_obstack): New declaration in gdbarch.h, definition in
9212 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
9213 obstack_calloc/obstack_zalloc.
9214 (gdbarch_obstack_zalloc): Remove.
9215 * target-descriptions.c (tdesc_data_init): Use obstack_new.
9217 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9219 * stack.c (backtrace_command_1): Remove useless variable int i.
9221 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9223 * stack.c (print_frame_info): Fix comment.
9225 2018-05-18 Tom Tromey <tom@tromey.com>
9227 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
9228 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
9229 (~dwarf2_per_objfile): Update
9230 (dwarf2_get_dwz_file): Use new.
9231 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
9234 2018-05-18 Tom Tromey <tom@tromey.com>
9236 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
9238 * dwarf2read.c (struct dwp_file): Add constructor and
9240 (open_and_init_dwp_file): Return a unique_ptr.
9241 (dwarf2_per_objfile, create_dwp_hash_table)
9242 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
9243 (lookup_dwo_unit_in_dwp): Update.
9244 (open_and_init_dwp_file, get_dwp_file): Update.
9246 2018-05-18 Tom Tromey <tom@tromey.com>
9248 * dwarf2read.c (dwarf2_per_objfile): Update.
9249 (struct mapped_index): Add initializers.
9250 (dwarf2_read_index): Use new.
9251 (dw2_symtab_iter_init): Update.
9252 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
9255 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9257 * dwarf2read.c (mapped_index) <total_size>: Remove.
9259 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9261 * unittests/format_pieces-selftests.c (test_format_specifier):
9264 2018-05-18 Tom Tromey <tom@tromey.com>
9266 * c-typeprint.c (maybe_print_hole): New function.
9267 (c_print_type_struct_field_offset): Update.
9268 (c_type_print_base_struct_union): Call maybe_print_hole.
9270 2018-05-17 Keith Seitz <keiths@redhat.com>
9272 * breakpoint.c (build_bpstat_chain): New function, moved from
9274 (bpstat_stop_status): Add optional parameter, `stop_chain'.
9275 If no stop chain is passed, call build_bpstat_chain to build it.
9276 * breakpoint.h (build_bpstat_chain): Declare.
9277 (bpstat_stop_status): Move documentation here from breakpoint.c.
9278 * infrun.c (handle_signal_stop): Before eliding inlined frames,
9279 build the stop chain and pass it to skip_inline_frames.
9280 Pass this stop chain to bpstat_stop_status.
9281 * inline-frame.c: Include breakpoint.h.
9282 (stopped_by_user_bp_inline_frame): New function.
9283 (skip_inline_frames): Add parameter `stop_chain'.
9284 Move documention to inline-frame.h.
9285 If non-NULL, use stopped_by_user_bp_inline_frame to determine
9286 whether the frame should be elided.
9287 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
9288 Add moved documentation and update for new parameter.
9290 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9293 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9294 unittests/format_pieces-selftests.c.
9295 * common/format.h (format_piece) <operator==>: New.
9296 (format_pieces) <operator[]>: Remove.
9297 * common/format.c (format_pieces::format_pieces): Handle \e.
9298 * unittests/format_pieces-selftests.c: New.
9300 2018-05-17 Tom Tromey <tom@tromey.com>
9303 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
9304 (dw2_instantiate_symtab): Add skip_partial parameter.
9305 (dw2_find_last_source_symtab, dw2_map_expand_apply)
9306 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
9307 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
9308 (dw2_expand_symtabs_matching_one)
9309 (dw2_find_pc_sect_compunit_symtab)
9310 (dw2_debug_names_lookup_symbol)
9311 (dw2_debug_names_expand_symtabs_for_function): Update.
9312 (init_cutu_and_read_dies): Add skip_partial parameter.
9313 (process_psymtab_comp_unit, build_type_psymtabs_1)
9314 (process_skeletonless_type_unit, load_partial_comp_unit)
9315 (psymtab_to_symtab_1): Update.
9316 (load_full_comp_unit): Add skip_partial parameter.
9317 (process_imported_unit_die, dwarf2_read_addr_index)
9318 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
9319 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
9320 (read_signatured_type): Update.
9322 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9324 * value.c (release_value): Remove unused variable.
9325 (record_latest_value): Likewise.
9326 (access_value_history): Likewise.
9327 (preserve_values): Likewise.
9329 2018-05-17 Tom Tromey <tom@tromey.com>
9331 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
9334 2018-05-16 Maciej W. Rozycki <macro@mips.com>
9337 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
9338 Also handle registers whose width is not a multiple of
9340 (linux_nat_trad_target::store_register): Likewise.
9342 2018-05-16 Tom Tromey <tom@tromey.com>
9344 * gdbcore.h (core_bfd): Redefine.
9345 * corelow.c (core_target::close): Update.
9346 (core_target_open): Update.
9347 * progspace.h (struct program_space) <cbfd>: Now a
9350 2018-05-16 Tom Tromey <tom@tromey.com>
9353 * symfile-add-flags.h (enum symfile_add_flags)
9354 <SYMFILE_NOT_FILENAME>: New constant.
9355 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
9356 objfile name from BFD.
9357 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
9358 * minidebug.c (find_separate_debug_file_in_section): Put
9359 ".gnu_debugdata" into BFD's file name.
9361 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
9363 * regcache.c (regcache_read_ftype, regcache_write_ftype):
9366 2018-05-15 Tamar Christina <tamar.christina@arm.com>
9369 * aarch64-tdep.c (aarch64_analyze_prologue,
9370 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
9371 Indicate not interested in errors.
9373 2018-05-15 Maciej W. Rozycki <macro@mips.com>
9375 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
9376 Supply the MIPS_ZERO_REGNUM register.
9378 2018-05-15 Maciej W. Rozycki <macro@mips.com>
9380 * mips-tdep.c (mask_address_var): Make variable static.
9382 2018-05-14 Tom Tromey <tom@tromey.com>
9384 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
9386 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
9388 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
9389 FXSAVE_ADDR for the mxcsr register.
9391 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
9393 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
9395 2018-05-11 Pedro Alves <palves@redhat.com>
9397 * corelow.c (core_target) <core_target>: No longer inline.
9398 Initialize m_core_gdbarch, m_core_vec and build the section table
9400 <~core_target>: New.
9401 <core_gdbarch, get_core_register_section>: New methods.
9402 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
9403 factored out from ...
9404 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
9406 (sniff_core_bfd): Add gdbarch parameter.
9407 (core_close): Delete, merged into ...
9408 (core_target::close): ... here. Delete self.
9409 (core_close_cleanup): Delete.
9410 (core_target_open): Allocate a core_target on the heap. Use a
9411 unique_ptr instead of a cleanup. Bits moved into the core_target
9412 ctor. Adjust to use core_target methods instead of globals.
9413 (get_core_register_section): Rename to ...
9414 (core_target::get_core_register_section): ... this and adjust.
9415 (struct get_core_registers_cb_data): New.
9416 (get_core_registers_cb): Use it. Use bool.
9417 (core_target::fetch_registers, core_target::files_info)
9418 (core_target::xfer_partial, core_target::read_description)
9419 (core_target::pid_to, core_target::thread_name): Adjust to
9420 reference class fields instead of globals.
9421 * target.h (struct target_ops_deleter, target_ops_up): New.
9423 2018-05-11 Pedro Alves <palves@redhat.com>
9425 * corefile.c (core_file_command): Move to corelow.c.
9426 * corelow.c (the_core_target): Delete.
9427 (core_file_command): Moved from corefile.c. Check exec_bfd
9428 instead of the_core_target. Use target_detach instead of calling
9429 into the_core_target directly.
9430 (maybe_say_no_core_file_now): New.
9431 (core_target::detach): Use it.
9432 (_initialize_corelow): Remove references to the_core_target.
9433 * gdbcore.h (the_core_target): Delete.
9435 2018-05-11 Tom Tromey <tromey@redhat.com>
9436 Pedro Alves <palves@redhat.com>
9438 * corefile.c (core_bfd): Remove.
9439 * gdbcore.h (core_bfd): Now a macro.
9440 * progspace.h (struct program_space) <cbfd>: New field.
9442 2018-05-11 Tom Tromey <tom@tromey.com>
9444 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
9447 2018-05-10 Tom Tromey <tom@tromey.com>
9449 * configure: Rebuild.
9450 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
9452 2018-05-10 Joel Brobecker <brobecker@adacore.com>
9455 * regformats/regdat.sh: Adjust script, following the addition
9456 of the new expedite_regs parameter to init_target_desc.
9458 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
9461 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
9462 set_gdbarch_significant_addr_bit.
9463 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
9464 set_gdbarch_significant_addr_bit.
9465 * utils.c (address_significant): Update to sign extend addr.
9467 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
9469 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
9470 (xtensa_linux_init_abi): Limit tdep->num_regs by
9471 tdep->num_nopriv_regs.
9472 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
9473 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
9476 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
9478 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
9480 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9482 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
9483 (I387_MXCSR_INIT_VAL): New constant.
9484 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
9485 buffer if it was supplied by the inferior.
9486 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
9487 (i387_xsave_get_clear_bv): New function.
9488 (i387_supply_xsave): Only read x87 control registers from the
9489 xsave buffer if the feature is enabled, and the state will have
9490 been written, otherwise, provide a suitable default.
9491 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
9492 including x87 control registers. Update control registers if they
9493 have changed from the default value, and mark features as enabled
9495 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
9497 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
9499 * spu-tdep.c (info_spu_event_command): Fix output formatting.
9501 2018-05-07 Tom Tromey <tom@tromey.com>
9503 * configure: Rebuild.
9504 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
9506 2018-05-07 Tom Tromey <tom@tromey.com>
9509 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
9510 bit. Use correct value for VDIV.
9512 2018-05-04 Tom Tromey <tom@tromey.com>
9514 * configure: Rebuild.
9515 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
9517 2018-05-04 Tom Tromey <tom@tromey.com>
9519 * linux-record.c (record_linux_system_call) <case
9520 RECORD_SYS_RECVFROM>: Add "break".
9522 2018-05-04 Tom Tromey <tom@tromey.com>
9524 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
9525 Add missing "break".
9526 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
9527 Add missing "break".
9529 2018-05-04 Tom Tromey <tom@tromey.com>
9531 * rs6000-tdep.c (ppc_process_record_op4)
9532 (ppc_process_record_op63): Add fall-through comment.
9534 2018-05-04 Tom Tromey <tom@tromey.com>
9536 * i386-tdep.c (i386_process_record): Add fall-through comment.
9538 2018-05-04 Tom Tromey <tom@tromey.com>
9540 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
9543 2018-05-04 Tom Tromey <tom@tromey.com>
9545 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
9546 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
9547 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
9549 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
9551 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
9554 2018-05-04 Tom Tromey <tom@tromey.com>
9556 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
9558 2018-05-04 Tom Tromey <tom@tromey.com>
9560 * s390-tdep.c (s390_process_record): Fix fall-through comments.
9561 * xcoffread.c (scan_xcoff_symtab): Move comment later.
9562 * symfile.c (section_is_mapped): Fix fall-through comment.
9563 * stabsread.c (define_symbol, read_member_functions): Fix
9564 fall-through comment.
9565 * s390-linux-tdep.c (s390_process_record): Fix fall-through
9567 * remote.c (remote_wait_as): Fix fall-through comment.
9568 * p-exp.y (yylex): Fix fall-through comment.
9569 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
9571 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
9572 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
9573 * jv-exp.y (yylex): Fix fall-through comment.
9574 * go-exp.y (lex_one_token): Fix fall-through comment.
9575 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
9576 fall-through comment.
9577 * f-exp.y (yylex): Fix fall-through comment.
9578 * dwarf2read.c (process_die): Fix fall-through comments.
9579 * dbxread.c (process_one_symbol): Fix fall-through comment.
9580 * d-exp.y (lex_one_token): Fix fall-through comment.
9581 * cp-name-parser.y (yylex): Fix fall-through comment.
9582 * coffread.c (coff_symtab_read): Fix fall-through comment.
9583 * c-exp.y (lex_one_token): Fix fall-through comment.
9584 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
9586 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
9589 2018-05-04 Tom Tromey <tom@tromey.com>
9592 * NEWS: Mention gdb.execute change.
9593 * gdbcmd.h (execute_control_command): Don't declare.
9594 * python/python.c (execute_gdb_command): Use read_command_lines_1,
9595 execute_control_commands, execute_control_commands_to_string.
9596 * cli/cli-script.h (execute_control_commands)
9597 (execute_control_commands_to_string): Declare.
9598 (execute_control_command): Add from_tty parameter.
9599 * cli/cli-script.c (execute_control_commands)
9600 (execute_control_commands_to_string): New functions.
9601 (execute_user_command): Use execute_control_commands.
9602 (execute_control_command_1): Add "from_tty" parameter. Update.
9603 (execute_control_command): Likewise.
9605 2018-05-04 Tom Tromey <tom@tromey.com>
9608 * NEWS: Mention that breakpoint commands are writable.
9609 * python/py-breakpoint.c (bppy_set_commands): New function.
9610 (breakpoint_object_getset) <"commands">: Use it.
9612 2018-05-04 Tom Tromey <tom@tromey.com>
9614 * tracepoint.c (actions_command): Update.
9615 * mi/mi-cmd-break.c (mi_command_line_array)
9616 (mi_command_line_array_cnt, mi_command_line_array_ptr)
9617 (mi_read_next_line): Remove.
9618 (mi_cmd_break_commands): Update.
9619 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
9621 * cli/cli-script.c (get_command_line): Update.
9622 (process_next_line): Use function_view. Constify.
9623 (recurse_read_control_structure, read_command_lines)
9624 (read_command_lines_1): Change argument types to function_view.
9625 (do_define_command, document_command): Update.
9626 * breakpoint.h (check_tracepoint_command): Don't declare.
9627 * breakpoint.c (check_tracepoint_command): Remove.
9628 (commands_command_1, create_tracepoint_from_upload): Update.
9630 2018-05-04 Tom Tromey <tom@tromey.com>
9633 * cli/cli-script.h (enum command_control_type) <define_control>:
9635 * cli/cli-script.c (multi_line_command_p): Handle define_control.
9636 (build_command_line, execute_control_command_1)
9637 (process_next_line): Likewise.
9638 (do_define_command): New function, extracted from define_command.
9639 (define_command): Use it.
9641 2018-05-04 Tom Tromey <tom@tromey.com>
9643 * tracepoint.c (actions_command): Update.
9644 * cli/cli-script.h (read_command_lines): Update.
9645 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
9646 (MAX_TMPBUF): Remove define.
9647 (define_command): Use string_printf.
9648 (document_command): Likewise.
9649 * breakpoint.c (commands_command_1): Update.
9651 2018-05-04 Tom Tromey <tom@tromey.com>
9653 * top.c (execute_command): Update.
9654 * cli/cli-script.h (print_command_lines): Now varargs.
9655 * cli/cli-script.c (print_command_lines): Now varargs.
9656 (execute_control_command_1) <case while_control, case if_control>:
9659 2018-05-04 Tom Tromey <tom@tromey.com>
9661 * tracepoint.c (all_tracepoint_actions): Rename from
9662 all_tracepoint_actions_and_cleanup. Change return type.
9663 (actions_command, encode_actions_1, encode_actions)
9664 (trace_dump_actions, tdump_command): Update.
9665 * remote.c (remote_download_command_source): Update.
9666 * python/python.c (gdbpy_eval_from_control_command)
9667 (python_command, python_interactive_command): Update.
9668 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
9669 * guile/guile.c (guile_command)
9670 (gdbscm_eval_from_control_command, guile_command): Update.
9671 * compile/compile.c (compile_code_command)
9672 (compile_print_command, compile_to_object): Update.
9673 * cli/cli-script.h (struct command_lines_deleter): New.
9674 (counted_command_line): New typedef.
9675 (struct command_line): Add constructor, destructor.
9676 <body_list>: Remove.
9677 <body_list_0, body_list_1>: New members.
9678 (command_line_up): Remove typedef.
9679 (read_command_lines, read_command_lines_1, get_command_line):
9681 (copy_command_lines): Don't declare.
9682 * cli/cli-script.c (build_command_line): Use "new".
9683 (get_command_line): Return counted_command_line.
9684 (print_command_lines, execute_user_command)
9685 (execute_control_command_1, while_command, if_command): Update.
9686 (realloc_body_list): Remove.
9687 (process_next_line, recurse_read_control_structure): Update.
9688 (read_command_lines, read_command_lines_1): Return counted_command_line.
9689 (free_command_lines): Use "delete".
9690 (copy_command_lines): Remove.
9691 (define_command, document_command, show_user_1): Update.
9692 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
9693 a counted_command_line.
9694 * breakpoint.h (counted_command_line): Remove typedef.
9695 (breakpoint_set_commands): Update.
9696 * breakpoint.c (check_no_tracepoint_commands)
9697 (validate_commands_for_breakpoint): Update.
9698 (breakpoint_set_commands): Change commands to be a
9699 counted_command_line.
9700 (commands_command_1, update_dprintf_command_list)
9701 (create_tracepoint_from_upload): Update.
9703 2018-05-04 Tom Tromey <tom@tromey.com>
9705 * cli/cli-decode.h (cmd_list_element): New constructor.
9706 (~cmd_list_element): New destructor.
9707 (struct cmd_list_element): Add initializers.
9708 * cli/cli-decode.c (do_add_cmd): Use "new".
9709 (delete_cmd): Use "delete".
9711 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9712 Pedro Alves <palves@redhat.com>
9714 PR breakpoints/19806 and support for PR external/20207.
9715 * NEWS: Mention Aarch64 watchpoint improvements.
9716 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
9717 watchpoints and PR external/20207 watchpoints.
9718 * nat/aarch64-linux-hw-point.c
9719 (kernel_supports_any_contiguous_range): New.
9720 (aarch64_watchpoint_offset): New.
9721 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
9722 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
9723 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
9724 (aarch64_align_watchpoint): New parameters aligned_offset_p and
9725 next_addr_orig_p. Support PR external/20207 watchpoints.
9726 (aarch64_downgrade_regs): New.
9727 (aarch64_dr_state_insert_one_point): New parameters offset and
9729 (aarch64_dr_state_remove_one_point): Likewise.
9730 (aarch64_handle_breakpoint): Update caller.
9731 (aarch64_handle_aligned_watchpoint): Likewise.
9732 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
9734 (aarch64_linux_set_debug_regs): Remove const from state. Call
9735 aarch64_downgrade_regs.
9736 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
9737 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
9738 (DR_CONTROL_MASK): ... this.
9739 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
9740 (unsigned int aarch64_watchpoint_offset): New prototype.
9741 (aarch64_linux_set_debug_regs): Remove const from state.
9742 * utils.c (align_up, align_down): Move to ...
9743 * common/common-utils.c (align_up, align_down): ... here.
9744 * utils.h (align_up, align_down): Move to ...
9745 * common/common-utils.h (align_up, align_down): ... here.
9747 2018-05-04 Joel Brobecker <brobecker@adacore.com>
9749 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
9750 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
9751 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
9752 Re-implement to match the ABI as summarized in GCC's
9753 gcc/config/sparc/sparc.c. All callers updated.
9754 (sparc32_store_arguments): Remove assertion.
9756 2018-05-04 Tom Tromey <tom@tromey.com>
9758 * printcmd.c: Don't include tui.h.
9759 (decode_format): Use skip_spaces.
9761 2018-05-04 Tom Tromey <tom@tromey.com>
9764 * printcmd.c (last_count): New global.
9765 (x_command): Use saved count when repeating.
9767 2018-05-04 Tom Tromey <tom@tromey.com>
9769 * nto-procfs.c (do_closedir_cleanup): Remove.
9770 (procfs_pidlist): Use gdb_dir_up.
9771 * procfs.c (do_closedir_cleanup): Remove.
9772 (proc_update_threads): Use gdb_dir_up.
9773 * common/filestuff.h (struct gdb_dir_deleter): New.
9774 (gdb_dir_up): New typedef.
9776 2018-05-04 Tom Tromey <tom@tromey.com>
9778 * ada-lang.c (print_mention_exception): Use std::string.
9780 2018-05-04 Tom Tromey <tom@tromey.com>
9782 * ada-lang.c (create_excep_cond_exprs): Update.
9783 (ada_exception_catchpoint_cond_string): Use std::string.
9785 2018-05-04 Tom Tromey <tom@tromey.com>
9787 * ada-lang.c (xget_renaming_scope): Return std::string.
9788 (old_renaming_is_invisible): Update.
9790 2018-05-04 Tom Tromey <tom@tromey.com>
9792 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
9793 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
9795 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
9797 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
9799 2018-05-04 Tom Tromey <tom@tromey.com>
9801 * remote.c (remote_query_supported_append): Change type.
9802 (remote_check_symbols): Update.
9804 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
9807 * configure.ac: Prepend libpython.
9808 * python/python-config.py: Likewise.
9809 * configure: Regenerate.
9811 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
9813 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
9815 2018-05-03 Pedro Alves <palves@redhat.com>
9818 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
9819 override. Write 'true' instead of '1'.
9820 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
9823 2018-05-02 Pedro Alves <palves@redhat.com>
9825 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
9826 add_inf_child_target.
9827 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
9828 add_inf_child_target.
9829 * aix-thread.c (aix_thread_target_info): New.
9830 (aix_thread_target) <shortname, longname, doc>: Delete.
9832 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
9833 add_inf_child_target.
9834 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
9835 add_inf_child_target.
9836 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
9837 add_inf_child_target.
9838 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
9839 add_inf_child_target.
9840 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
9841 add_inf_child_target.
9842 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
9843 add_inf_child_target.
9844 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
9845 add_inf_child_target.
9846 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
9847 add_inf_child_target.
9848 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
9849 add_inf_child_target.
9850 * bfd-target.c (target_bfd_target_info): New.
9851 (target_bfd) <shortname, longname, doc>: Delete.
9853 * bsd-kvm.c (bsd_kvm_target_info): New.
9854 (bsd_kvm_target) <shortname, longname, doc>: Delete.
9856 (bsd_kvm_target::open): Rename to ...
9857 (bsd_kvm_target_open): ... this. Adjust.
9858 * bsd-uthread.c (bsd_uthread_target_info): New.
9859 (bsd_uthread_target) <shortname, longname, doc>: Delete.
9861 * corefile.c (core_file_command): Adjust.
9862 * corelow.c (core_target_info): New.
9863 (core_target) <shortname, longname, doc>: Delete.
9865 (core_target::open): Rename to ...
9866 (core_target_open): ... this. Adjust.
9867 * ctf.c (ctf_target_info): New.
9868 (ctf_target) <shortname, longname, doc>: Delete.
9870 (ctf_target::open): Rename to ...
9871 (ctf_target_open): ... this.
9872 (_initialize_ctf): Adjust.
9873 * exec.c (exec_target_info): New.
9874 (exec_target) <shortname, longname, doc>: Delete.
9876 (exec_target::open): Rename to ...
9877 (exec_target_open): ... this.
9878 * gdbcore.h (core_target_open): Declare.
9879 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
9880 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
9881 add_inf_child_target.
9882 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
9883 add_inf_child_target.
9884 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
9885 add_inf_child_target.
9886 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
9887 add_inf_child_target.
9888 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
9889 add_inf_child_target.
9890 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
9891 add_inf_child_target.
9892 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
9893 add_inf_child_target.
9894 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
9895 add_inf_child_target.
9896 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
9897 add_inf_child_target.
9898 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
9899 add_inf_child_target.
9900 * inf-child.c (inf_child_target_info): New.
9901 (inf_child_target::info): New.
9902 (inf_child_open_target): Remove 'target' parameter. Use
9903 get_native_target instead.
9904 (inf_child_target::open): Delete.
9905 (add_inf_child_target): New.
9906 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
9909 (add_inf_child_target): Declare.
9910 (inf_child_open_target): Declare.
9911 * linux-thread-db.c (thread_db_target_info): New.
9912 (thread_db_target) <shortname, longname, doc>: Delete.
9914 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
9915 add_inf_child_target.
9916 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
9917 add_inf_child_target.
9918 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
9919 add_inf_child_target.
9920 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
9921 add_inf_child_target.
9922 * make-target-delegates (print_class): Adjust.
9923 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
9924 add_inf_child_target.
9925 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
9926 add_inf_child_target.
9927 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
9928 add_inf_child_target.
9929 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
9930 add_inf_child_target.
9931 * nto-procfs.c (nto_native_target_info): New.
9932 (nto_procfs_target_native) <shortname, longname, doc>:
9935 (nto_procfs_target_info): New.
9936 (nto_procfs_target_procfs) <shortname, longname, doc>:
9939 (init_procfs_targets): Adjust.
9940 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
9941 add_inf_child_target.
9942 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
9943 add_inf_child_target.
9944 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
9945 add_inf_child_target.
9946 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
9947 add_inf_child_target.
9948 * ravenscar-thread.c (ravenscar_target_info): New.
9949 (ravenscar_thread_target) <shortname, longname, doc>:
9952 * record-btrace.c (record_btrace_target_info):
9953 (record_btrace_target) <shortname, longname, doc>: Delete.
9955 (record_btrace_target::open): Rename to ...
9956 (record_btrace_target_open): ... this. Adjust.
9957 * record-full.c (record_longname, record_doc): New.
9958 (record_full_base_target) <shortname, longname, doc>: Delete.
9960 (record_full_target_info): New.
9961 (record_full_target): <shortname>: Delete.
9963 (record_full_core_open_1, record_full_open_1): Update comments.
9964 (record_full_base_target::open): Rename to ...
9965 (record_full_open): ... this.
9966 (cmd_record_full_restore): Update.
9967 (_initialize_record_full): Update.
9968 * remote-sim.c (remote_sim_target_info): New.
9969 (gdbsim_target) <shortname, longname, doc>: Delete.
9971 (gdbsim_target::open): Rename to ...
9972 (gdbsim_target_open): ... this.
9973 (_initialize_remote_sim): Adjust.
9974 * remote.c (remote_doc): New.
9975 (remote_target_info): New.
9976 (remote_target) <shortname, longname, doc>: Delete.
9978 (extended_remote_target_info): New.
9979 (extended_remote_target) <shortname, longname, doc>: Delete.
9981 (remote_target::open_1): Make static. Adjust.
9982 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
9983 * s390-linux-nat.c (_initialize_s390_nat): Use
9984 add_inf_child_target.
9985 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
9986 add_inf_child_target.
9987 * sol-thread.c (thread_db_target_info): New.
9988 (sol_thread_target) <shortname, longname, doc>: Delete.
9990 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
9991 add_inf_child_target.
9992 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
9993 add_inf_child_target.
9994 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
9995 add_inf_child_target.
9996 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
9997 add_inf_child_target.
9998 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
9999 add_inf_child_target.
10000 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
10001 add_inf_child_target.
10002 * spu-linux-nat.c (_initialize_spu_nat): Use
10003 add_inf_child_target.
10004 * spu-multiarch.c (spu_multiarch_target_info): New.
10005 (spu_multiarch_target) <shortname, longname, doc>: Delete.
10007 * target-delegates.c: Regenerate.
10008 * target.c: Include <unordered_map>.
10009 (target_ops_p): Delete.
10010 (DEF_VEC_P(target_ops_p)): Delete.
10011 (target_factories): New.
10012 (test_target_info): New.
10013 (test_target_ops::info): New.
10014 (open_target): Adjust to use target_factories.
10015 (add_target_with_completer): Rename to ...
10016 (add_target): ... this. Change prototype. Register target_info
10017 and open callback in target_factories. Register target_info in
10018 command context instead of target_ops.
10019 (add_target): Delete old implementation.
10020 (add_deprecated_target_alias): Change prototype. Adjust.
10021 (the_native_target): New.
10022 (set_native_target, get_native_target): New.
10023 (find_default_run_target): Use the_native_target.
10024 (find_attach_target, find_run_target): Simplify.
10025 (target_ops::open): Delete.
10026 (dummy_target_info): New.
10027 (dummy_target::shortname, dummy_target::longname)
10028 (dummy_target::doc): Delete.
10029 (dummy_target::info): New.
10030 (debug_target::shortname, debug_target::longname)
10031 (debug_target::doc): Delete.
10032 (debug_target::info): New.
10033 * target.h (struct target_info): New.
10034 (target_ops::~target_ops): Add comment.
10035 (target_ops::info): New.
10036 (target_ops::shortname, target_ops::longname, target_ops::doc): No
10037 longer virtual. Implement in terms of target_info.
10038 (set_native_target, get_native_target): Declare.
10039 (target_open_ftype): New.
10040 (add_target, add_target_with_completer)
10041 (add_deprecated_target_alias): Change prototype.
10042 (test_target) <shortname, longname, doc>: Delete.
10044 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
10045 add_inf_child_target.
10046 * tracefile-tfile.c (tfile_target_info): New.
10047 (tfile_target) <shortname, longname, doc>: Delete.
10049 (tfile_target::open): Rename to ...
10050 (tfile_target_open): ... this.
10051 (_initialize_tracefile_tfile): Adjust.
10052 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
10053 add_inf_child_target.
10054 * windows-nat.c (_initialize_windows_nat): Use
10055 add_inf_child_target.
10056 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
10057 add_inf_child_target.
10059 2018-05-02 Pedro Alves <palves@redhat.com>
10061 * linux-nat.h (linux_nat_target) <low_new_thread,
10062 low_delete_thread, low_new_fork, low_forget_process,
10063 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
10064 New virtual methods.
10065 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10066 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
10067 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
10068 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10069 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
10071 * linux-fork.c (delete_fork): Adjust to call low method.
10072 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
10073 (linux_nat_new_fork, linux_nat_forget_process_hook)
10074 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
10075 (linux_nat_status_is_event):
10076 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
10077 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
10078 to call low method.
10079 (sigtrap_is_event): Rename to ...
10080 (linux_nat_target::low_status_is_event): ... this.
10081 (linux_nat_set_status_is_event): Delete.
10082 (save_stop_reason, linux_nat_wait_1)
10083 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
10085 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10086 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10087 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10088 (linux_nat_set_prepare_to_resume): Delete.
10089 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
10090 low virtual methods.
10091 * amd64-linux-nat.c: Likewise.
10092 * arm-linux-nat.c: Likewise.
10093 * i386-linux-nat.c: Likewise.
10094 * ia64-linux-nat.c: Likewise.
10095 * mips-linux-nat.c: Likewise.
10096 * ppc-linux-nat.c: Likewise.
10097 * s390-linux-nat.c: Likewise.
10098 * sparc64-linux-nat.c: Likewise.
10099 * x86-linux-nat.c: Likewise.
10100 * x86-linux-nat.h: Include "nat/x86-linux.h".
10101 (x86_linux_nat_target) <low_new_fork, low_forget_process,
10102 low_prepare_to_resume, low_new_thread, low_delete_thread>:
10105 2018-05-02 Pedro Alves <palves@redhat.com>
10107 * target.h (target_ops)
10108 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10109 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
10110 stopped_by_watchpoint, have_continuable_watchpoint,
10111 stopped_data_address, watchpoint_addr_within_range,
10112 can_accel_watchpoint_condition, can_run, thread_alive,
10113 has_all_memory, has_memory, has_stack, has_registers,
10114 has_execution, can_async_p, is_async_p, supports_non_stop,
10115 always_non_stop_p, can_execute_reverse, supports_multi_process,
10116 supports_enable_disable_tracepoint,
10117 supports_disable_randomization, supports_string_tracing,
10118 supports_evaluation_of_breakpoint_conditions,
10119 can_run_breakpoint_commands, filesystem_is_local,
10120 can_download_tracepoint, get_trace_state_variable_value,
10121 set_trace_notes, get_tib_address, use_agent, can_use_agent,
10122 record_is_replaying, record_will_replay,
10123 augmented_libraries_svr4_read>: Adjust to return bool.
10124 * aarch64-linux-nat.c: All implementations adjusted.
10125 * aix-thread.c: All implementations adjusted.
10126 * arm-linux-nat.c: All implementations adjusted.
10127 * breakpoint.c: All implementations adjusted.
10128 * bsd-kvm.c: All implementations adjusted.
10129 * bsd-uthread.c: All implementations adjusted.
10130 * corelow.c: All implementations adjusted.
10131 * ctf.c: All implementations adjusted.
10132 * darwin-nat.c: All implementations adjusted.
10133 * darwin-nat.h: All implementations adjusted.
10134 * exec.c: All implementations adjusted.
10135 * fbsd-nat.c: All implementations adjusted.
10136 * fbsd-nat.h: All implementations adjusted.
10137 * gnu-nat.c: All implementations adjusted.
10138 * gnu-nat.h: All implementations adjusted.
10139 * go32-nat.c: All implementations adjusted.
10140 * ia64-linux-nat.c: All implementations adjusted.
10141 * inf-child.c: All implementations adjusted.
10142 * inf-child.h: All implementations adjusted.
10143 * inf-ptrace.c: All implementations adjusted.
10144 * inf-ptrace.h: All implementations adjusted.
10145 * linux-nat.c: All implementations adjusted.
10146 * linux-nat.h: All implementations adjusted.
10147 * mips-linux-nat.c: All implementations adjusted.
10148 * nto-procfs.c: All implementations adjusted.
10149 * ppc-linux-nat.c: All implementations adjusted.
10150 * procfs.c: All implementations adjusted.
10151 * ravenscar-thread.c: All implementations adjusted.
10152 * record-btrace.c: All implementations adjusted.
10153 * record-full.c: All implementations adjusted.
10154 * remote-sim.c: All implementations adjusted.
10155 * remote.c: All implementations adjusted.
10156 * s390-linux-nat.c: All implementations adjusted.
10157 * sol-thread.c: All implementations adjusted.
10158 * spu-multiarch.c: All implementations adjusted.
10159 * target-delegates.c: All implementations adjusted.
10160 * target.c: All implementations adjusted.
10161 * target.h: All implementations adjusted.
10162 * tracefile-tfile.c: All implementations adjusted.
10163 * tracefile.c: All implementations adjusted.
10164 * tracefile.h: All implementations adjusted.
10165 * windows-nat.c: All implementations adjusted.
10166 * x86-linux-nat.h: All implementations adjusted.
10167 * x86-nat.h: All implementations adjusted.
10169 2018-05-02 Pedro Alves <palves@redhat.com>
10171 * make-target-delegates (scan_target_h): Don't trim lines here.
10172 Replace sequences of tabs and/or whitespace with a single
10174 (top level, parsing methods): Trim each line before processing it
10177 2018-05-02 Pedro Alves <palves@redhat.com>
10178 John Baldwin <jhb@freebsd.org>
10180 * target.h (enum strata) <debug_stratum>: New.
10181 (struct target_ops) <all delegation methods>: Replace by C++
10182 virtual methods, and drop "to_" prefix. All references updated
10184 <to_shortname, to_longname, to_doc, to_data,
10185 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
10186 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
10187 virtual methods. All references updated throughout.
10188 <can_attach, supports_terminal_ours, can_create_inferior,
10189 get_thread_control_capabilities, attach_no_wait>: New
10191 <insert_breakpoint, remove_breakpoint>: Now
10192 TARGET_DEFAULT_NORETURN methods.
10193 <info_proc>: Now returns bool.
10194 <to_magic>: Delete.
10195 (OPS_MAGIC): Delete.
10196 (current_target): Delete. All references replaced by references
10198 (target_stack): ... this. New.
10199 (target_shortname, target_longname): Adjust.
10200 (target_can_run): Now a function declaration.
10201 (default_child_has_all_memory, default_child_has_memory)
10202 (default_child_has_stack, default_child_has_registers)
10203 (default_child_has_execution): Remove target_ops parameter.
10204 (complete_target_initialization): Delete.
10205 (memory_breakpoint_target): New template class.
10206 (test_target_ops): Refactor as a C++ class with virtual methods.
10207 * make-target-delegates (NAME_PART): Tighten.
10208 (POINTER_PART, CP_SYMBOL): New.
10209 (SIMPLE_RETURN_PART): Reimplement.
10210 (VEC_RETURN_PART): Expect less.
10211 (RETURN_PART, VIRTUAL_PART): New.
10212 (METHOD): Adjust to C++ virtual methods.
10213 (scan_target_h): Remove reference to C99.
10214 (dname): Output "target_ops::" prefix.
10215 (write_function_header): Adjust to output a C++ class method.
10216 (write_declaration): New.
10217 (write_delegator): Adjust to output a C++ class method.
10218 (tdname): Output "dummy_target::" prefix.
10219 (write_tdefault, write_debugmethod): Adjust to output a C++ class
10221 (tdefault_names, debug_names): Delete.
10222 (return_types, tdefaults, styles, argtypes_array): New.
10223 (top level): All methods are delegators.
10224 (print_class): New.
10225 (top level): Print dummy_target and debug_target classes.
10226 * target-delegates.c: Regenerate.
10227 * target-debug.h (target_debug_print_enum_info_proc_what)
10228 (target_debug_print_thread_control_capabilities)
10229 (target_debug_print_thread_info_p): New.
10230 * target.c (dummy_target): Delete.
10231 (the_dummy_target, the_debug_target): New.
10232 (target_stack): Now extern.
10233 (set_targetdebug): Push/unpush debug target.
10234 (default_child_has_all_memory, default_child_has_memory)
10235 (default_child_has_stack, default_child_has_registers)
10236 (default_child_has_execution): Remove target_ops parameter.
10237 (complete_target_initialization): Delete.
10238 (add_target_with_completer): No longer call
10239 complete_target_initialization.
10240 (target_supports_terminal_ours): Use regular delegation.
10241 (update_current_target): Delete.
10242 (push_target): No longer check magic number. Don't call
10243 update_current_target.
10244 (unpush_target): Don't call update_current_target.
10245 (target_is_pushed): No longer check magic number.
10246 (target_require_runnable): Skip for all stratums over
10248 (target_ops::info_proc): New.
10249 (target_info_proc): Use find_target_at and
10250 find_default_run_target.
10251 (target_supports_disable_randomization): Use regular delegation.
10252 (target_get_osdata): Use find_target_at.
10253 (target_ops::open, target_ops::close, target_ops::can_attach)
10254 (target_ops::attach, target_ops::can_create_inferior)
10255 (target_ops::create_inferior, target_ops::can_run)
10256 (target_can_run): New.
10257 (default_fileio_target): Use regular delegation.
10258 (target_ops::fileio_open, target_ops::fileio_pwrite)
10259 (target_ops::fileio_pread, target_ops::fileio_fstat)
10260 (target_ops::fileio_close, target_ops::fileio_unlink)
10261 (target_ops::fileio_readlink): New.
10262 (target_fileio_open_1, target_fileio_unlink)
10263 (target_fileio_readlink): Always call the target method. Handle
10265 (return_zero, return_zero_has_execution): Delete.
10266 (init_dummy_target): Delete.
10267 (dummy_target::dummy_target, dummy_target::shortname)
10268 (dummy_target::longname, dummy_target::doc)
10269 (debug_target::debug_target, debug_target::shortname)
10270 (debug_target::longname, debug_target::doc): New.
10271 (target_supports_delete_record): Use regular delegation.
10272 (setup_target_debug): Delete.
10273 (maintenance_print_target_stack): Skip debug_stratum.
10274 (initialize_targets): Instantiate the_dummy_target and
10276 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
10278 (target_auxv_search, fprint_target_auxv): Adjust.
10279 (info_auxv_command): Adjust to use target_stack.
10280 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
10281 * exceptions.c (print_flush): Handle a NULL target_stack.
10282 * regcache.c (target_ops_no_register): Refactor as class with
10285 * exec.c (exec_target): New class.
10286 (exec_ops): Now an exec_target.
10287 (exec_open, exec_close_1, exec_get_section_table)
10288 (exec_xfer_partial, exec_files_info, exec_has_memory)
10289 (exec_make_note_section): Refactor as exec_target methods.
10290 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
10292 (exec_target::find_memory_regions): New.
10293 (_initialize_exec): Don't call init_exec_ops.
10294 * gdbcore.h (exec_file_clear): Delete.
10296 * corefile.c (core_target): Delete.
10297 (core_file_command): Adjust.
10298 * corelow.c (core_target): New class.
10299 (the_core_target): New.
10300 (core_close): Remove target_ops parameter.
10301 (core_close_cleanup): Adjust.
10302 (core_target::close): New.
10303 (core_open, core_detach, get_core_registers, core_files_info)
10304 (core_xfer_partial, core_thread_alive, core_read_description)
10305 (core_pid_to_str, core_thread_name, core_has_memory)
10306 (core_has_stack, core_has_registers, core_info_proc): Rework as
10307 core_target methods.
10308 (ignore, core_remove_breakpoint, init_core_ops): Delete.
10309 (_initialize_corelow): Initialize the_core_target.
10310 * gdbcore.h (core_target): Delete.
10311 (the_core_target): New.
10313 * ctf.c: (ctf_target): New class.
10314 (ctf_ops): Now a ctf_target.
10315 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
10316 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
10317 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
10319 (init_ctf_ops): Delete.
10320 (_initialize_ctf): Don't call it.
10321 * tracefile-tfile.c (tfile_target): New class.
10322 (tfile_ops): Now a tfile_target.
10323 (tfile_open, tfile_close, tfile_files_info)
10324 (tfile_get_tracepoint_status, tfile_trace_find)
10325 (tfile_fetch_registers, tfile_xfer_partial)
10326 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
10327 Refactor as tfile_target methods.
10328 (tfile_xfer_partial_features): Remove target_ops parameter.
10329 (init_tfile_ops): Delete.
10330 (_initialize_tracefile_tfile): Don't call it.
10331 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
10332 (tracefile_has_stack, tracefile_has_registers)
10333 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
10334 tracefile_target methods.
10335 (init_tracefile_ops): Delete.
10336 (tracefile_target::tracefile_target): New.
10337 * tracefile.h: Include "target.h".
10338 (tracefile_target): New class.
10339 (init_tracefile_ops): Delete.
10341 * spu-multiarch.c (spu_multiarch_target): New class.
10342 (spu_ops): Now a spu_multiarch_target.
10343 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
10344 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
10345 (spu_search_memory, spu_mourn_inferior): Refactor as
10346 spu_multiarch_target methods.
10347 (init_spu_ops): Delete.
10348 (_initialize_spu_multiarch): Remove references to init_spu_ops,
10349 complete_target_initialization.
10351 * ravenscar-thread.c (ravenscar_thread_target): New class.
10352 (ravenscar_ops): Now a ravenscar_thread_target.
10353 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
10354 (ravenscar_thread_alive, ravenscar_pid_to_str)
10355 (ravenscar_fetch_registers, ravenscar_store_registers)
10356 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
10357 (ravenscar_stopped_by_hw_breakpoint)
10358 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
10359 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
10360 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
10362 (init_ravenscar_thread_ops): Delete.
10363 (_initialize_ravenscar): Remove references to
10364 init_ravenscar_thread_ops and complete_target_initialization.
10366 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
10367 (bsd_uthread_target): New class.
10368 (bsd_uthread_ops): Now a bsd_uthread_target.
10369 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
10370 (bsd_uthread_close, bsd_uthread_mourn_inferior)
10371 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
10372 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
10373 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
10374 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
10375 (bsd_uthread_target): Delete function.
10376 (_initialize_bsd_uthread): Remove reference to
10377 complete_target_initialization.
10379 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
10380 (target_bfd): ... this new class.
10381 (target_bfd_xfer_partial, target_bfd_get_section_table)
10382 (target_bfd_close): Refactor as target_bfd methods.
10383 (target_bfd::~target_bfd): New.
10384 (target_bfd_reopen): Adjust.
10385 (target_bfd::close): New.
10387 * record-btrace.c (record_btrace_target): New class.
10388 (record_btrace_ops): Now a record_btrace_target.
10389 (record_btrace_open, record_btrace_stop_recording)
10390 (record_btrace_disconnect, record_btrace_close)
10391 (record_btrace_async, record_btrace_info)
10392 (record_btrace_insn_history, record_btrace_insn_history_range)
10393 (record_btrace_insn_history_from, record_btrace_call_history)
10394 (record_btrace_call_history_range)
10395 (record_btrace_call_history_from, record_btrace_record_method)
10396 (record_btrace_is_replaying, record_btrace_will_replay)
10397 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
10398 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
10399 (record_btrace_store_registers, record_btrace_prepare_to_store)
10400 (record_btrace_to_get_unwinder)
10401 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
10402 (record_btrace_commit_resume, record_btrace_wait)
10403 (record_btrace_stop, record_btrace_can_execute_reverse)
10404 (record_btrace_stopped_by_sw_breakpoint)
10405 (record_btrace_supports_stopped_by_sw_breakpoint)
10406 (record_btrace_stopped_by_hw_breakpoint)
10407 (record_btrace_supports_stopped_by_hw_breakpoint)
10408 (record_btrace_update_thread_list, record_btrace_thread_alive)
10409 (record_btrace_goto_begin, record_btrace_goto_end)
10410 (record_btrace_goto, record_btrace_stop_replaying_all)
10411 (record_btrace_execution_direction)
10412 (record_btrace_prepare_to_generate_core)
10413 (record_btrace_done_generating_core): Refactor as
10414 record_btrace_target methods.
10415 (init_record_btrace_ops): Delete.
10416 (_initialize_record_btrace): Remove reference to
10417 init_record_btrace_ops.
10418 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
10419 the execution_direction global.
10420 (record_full_base_target, record_full_target)
10421 (record_full_core_target): New classes.
10422 (record_full_ops): Now a record_full_target.
10423 (record_full_core_ops): Now a record_full_core_target.
10424 (record_full_target::detach, record_full_target::disconnect)
10425 (record_full_core_target::disconnect)
10426 (record_full_target::mourn_inferior, record_full_target::kill):
10428 (record_full_open, record_full_close, record_full_async): Refactor
10429 as methods of the record_full_base_target class.
10430 (record_full_resume, record_full_commit_resume): Refactor
10431 as methods of the record_full_target class.
10432 (record_full_wait, record_full_stopped_by_watchpoint)
10433 (record_full_stopped_data_address)
10434 (record_full_stopped_by_sw_breakpoint)
10435 (record_full_supports_stopped_by_sw_breakpoint)
10436 (record_full_stopped_by_hw_breakpoint)
10437 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
10438 methods of the record_full_base_target class.
10439 (record_full_store_registers, record_full_xfer_partial)
10440 (record_full_insert_breakpoint, record_full_remove_breakpoint):
10441 Refactor as methods of the record_full_target class.
10442 (record_full_can_execute_reverse, record_full_get_bookmark)
10443 (record_full_goto_bookmark, record_full_execution_direction)
10444 (record_full_record_method, record_full_info, record_full_delete)
10445 (record_full_is_replaying, record_full_will_replay)
10446 (record_full_goto_begin, record_full_goto_end, record_full_goto)
10447 (record_full_stop_replaying): Refactor as methods of the
10448 record_full_base_target class.
10449 (record_full_core_resume, record_full_core_kill)
10450 (record_full_core_fetch_registers)
10451 (record_full_core_prepare_to_store)
10452 (record_full_core_store_registers, record_full_core_xfer_partial)
10453 (record_full_core_insert_breakpoint)
10454 (record_full_core_remove_breakpoint)
10455 (record_full_core_has_execution): Refactor
10456 as methods of the record_full_core_target class.
10457 (record_full_base_target::supports_delete_record): New.
10458 (init_record_full_ops): Delete.
10459 (init_record_full_core_ops): Delete.
10460 (record_full_save): Refactor as method of the
10461 record_full_base_target class.
10462 (_initialize_record_full): Remove references to
10463 init_record_full_ops and init_record_full_core_ops.
10465 * remote.c (remote_target, extended_remote_target): New classes.
10466 (remote_ops): Now a remote_target.
10467 (extended_remote_ops): Now an extended_remote_target.
10468 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
10469 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
10470 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
10471 (remote_pass_signals, remote_set_syscall_catchpoint)
10472 (remote_program_signals, )
10473 (remote_thread_always_alive): Remove target_ops parameter.
10474 (remote_thread_alive, remote_thread_name)
10475 (remote_update_thread_list, remote_threads_extra_info)
10476 (remote_static_tracepoint_marker_at)
10477 (remote_static_tracepoint_markers_by_strid)
10478 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
10479 (remote_open): Refactor as methods of remote_target.
10480 (extended_remote_open, extended_remote_detach)
10481 (extended_remote_attach, extended_remote_post_attach):
10482 (extended_remote_supports_disable_randomization)
10483 (extended_remote_create_inferior): : Refactor as method of
10484 extended_remote_target.
10485 (remote_set_permissions, remote_open_1, remote_detach)
10486 (remote_follow_fork, remote_follow_exec, remote_disconnect)
10487 (remote_resume, remote_commit_resume, remote_stop)
10488 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
10489 (remote_terminal_ours, remote_wait, remote_fetch_registers)
10490 (remote_prepare_to_store, remote_store_registers)
10491 (remote_flash_erase, remote_flash_done, remote_files_info)
10492 (remote_kill, remote_mourn, remote_insert_breakpoint)
10493 (remote_remove_breakpoint, remote_insert_watchpoint)
10494 (remote_watchpoint_addr_within_range)
10495 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
10496 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
10497 (remote_supports_stopped_by_sw_breakpoint)
10498 (remote_stopped_by_hw_breakpoint)
10499 (remote_supports_stopped_by_hw_breakpoint)
10500 (remote_stopped_by_watchpoint, remote_stopped_data_address)
10501 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
10502 (remote_verify_memory): Refactor as methods of remote_target.
10503 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
10505 (remote_xfer_partial, remote_get_memory_xfer_limit)
10506 (remote_search_memory, remote_rcmd, remote_memory_map)
10507 (remote_pid_to_str, remote_get_thread_local_address)
10508 (remote_get_tib_address, remote_read_description): Refactor as
10509 methods of remote_target.
10510 (remote_target::fileio_open, remote_target::fileio_pwrite)
10511 (remote_target::fileio_pread, remote_target::fileio_close): New.
10512 (remote_hostio_readlink, remote_hostio_fstat)
10513 (remote_filesystem_is_local, remote_can_execute_reverse)
10514 (remote_supports_non_stop, remote_supports_disable_randomization)
10515 (remote_supports_multi_process, remote_supports_cond_breakpoints)
10516 (remote_supports_enable_disable_tracepoint)
10517 (remote_supports_string_tracing)
10518 (remote_can_run_breakpoint_commands, remote_trace_init)
10519 (remote_download_tracepoint, remote_can_download_tracepoint)
10520 (remote_download_trace_state_variable, remote_enable_tracepoint)
10521 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
10522 (remote_trace_start, remote_get_trace_status)
10523 (remote_get_tracepoint_status, remote_trace_stop)
10524 (remote_trace_find, remote_get_trace_state_variable_value)
10525 (remote_save_trace_data, remote_get_raw_trace_data)
10526 (remote_set_disconnected_tracing, remote_core_of_thread)
10527 (remote_set_circular_trace_buffer, remote_traceframe_info)
10528 (remote_get_min_fast_tracepoint_insn_len)
10529 (remote_set_trace_buffer_size, remote_set_trace_notes)
10530 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
10531 (remote_disable_btrace, remote_teardown_btrace)
10532 (remote_read_btrace, remote_btrace_conf)
10533 (remote_augmented_libraries_svr4_read, remote_load)
10534 (remote_pid_to_exec_file, remote_can_do_single_step)
10535 (remote_execution_direction, remote_thread_handle_to_thread_info):
10536 Refactor as methods of remote_target.
10537 (init_remote_ops, init_extended_remote_ops): Delete.
10538 (remote_can_async_p, remote_is_async_p, remote_async)
10539 (remote_thread_events, remote_upload_tracepoints)
10540 (remote_upload_trace_state_variables): Refactor as methods of
10542 (_initialize_remote): Remove references to init_remote_ops and
10543 init_extended_remote_ops.
10545 * remote-sim.c (gdbsim_target): New class.
10546 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
10547 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
10548 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
10549 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
10550 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
10551 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
10552 Refactor as methods of gdbsim_target.
10553 (gdbsim_ops): Now a gdbsim_target.
10554 (init_gdbsim_ops): Delete.
10555 (gdbsim_cntrl_c): Adjust.
10556 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
10558 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
10559 (the_amd64_linux_nat_target): New.
10560 (amd64_linux_fetch_inferior_registers)
10561 (amd64_linux_store_inferior_registers): Refactor as methods of
10562 amd64_linux_nat_target.
10563 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
10564 * i386-linux-nat.c: Don't include "linux-nat.h".
10565 (i386_linux_nat_target): New class.
10566 (the_i386_linux_nat_target): New.
10567 (i386_linux_fetch_inferior_registers)
10568 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
10569 as methods of i386_linux_nat_target.
10570 (_initialize_i386_linux_nat): Adjust. Set linux_target.
10571 * inf-child.c (inf_child_ops): Delete.
10572 (inf_child_fetch_inferior_registers)
10573 (inf_child_store_inferior_registers): Delete.
10574 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
10575 methods of inf_child_target.
10576 (inf_child_target::supports_terminal_ours)
10577 (inf_child_target::terminal_init)
10578 (inf_child_target::terminal_inferior)
10579 (inf_child_target::terminal_ours_for_output)
10580 (inf_child_target::terminal_ours, inf_child_target::interrupt)
10581 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
10583 (inf_child_open, inf_child_disconnect, inf_child_close)
10584 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
10585 (inf_child_post_startup_inferior, inf_child_can_run)
10586 (inf_child_pid_to_exec_file): Refactor as methods of
10588 (inf_child_follow_fork): Delete.
10589 (inf_child_target::can_create_inferior)
10590 (inf_child_target::can_attach): New.
10591 (inf_child_target::has_all_memory, inf_child_target::has_memory)
10592 (inf_child_target::has_stack, inf_child_target::has_registers)
10593 (inf_child_target::has_execution): New.
10594 (inf_child_fileio_open, inf_child_fileio_pwrite)
10595 (inf_child_fileio_pread, inf_child_fileio_fstat)
10596 (inf_child_fileio_close, inf_child_fileio_unlink)
10597 (inf_child_fileio_readlink, inf_child_use_agent)
10598 (inf_child_can_use_agent): Refactor as methods of
10600 (return_zero, inf_child_target): Delete.
10601 (inf_child_target::inf_child_target): New.
10602 * inf-child.h: Include "target.h".
10603 (inf_child_target): Delete function prototype.
10604 (inf_child_target): New class.
10605 (inf_child_open_target, inf_child_mourn_inferior)
10606 (inf_child_maybe_unpush_target): Delete.
10607 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
10608 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
10609 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
10610 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
10611 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
10612 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
10613 (inf_ptrace_wait, inf_ptrace_xfer_partial)
10614 (inf_ptrace_thread_alive, inf_ptrace_files_info)
10615 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
10616 methods of inf_ptrace_target.
10617 (inf_ptrace_target): Delete function.
10618 * inf-ptrace.h: Include "inf-child.h".
10619 (inf_ptrace_target): Delete function declaration.
10620 (inf_ptrace_target): New class.
10621 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
10622 * linux-nat.c (linux_target): New.
10623 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
10624 (linux_nat_target::~linux_nat_target): New.
10625 (linux_child_post_attach, linux_child_post_startup_inferior)
10626 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
10627 (linux_child_remove_fork_catchpoint)
10628 (linux_child_insert_vfork_catchpoint)
10629 (linux_child_remove_vfork_catchpoint)
10630 (linux_child_insert_exec_catchpoint)
10631 (linux_child_remove_exec_catchpoint)
10632 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
10633 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
10634 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
10635 (linux_nat_stopped_data_address)
10636 (linux_nat_stopped_by_sw_breakpoint)
10637 (linux_nat_supports_stopped_by_sw_breakpoint)
10638 (linux_nat_stopped_by_hw_breakpoint)
10639 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
10640 (linux_nat_kill, linux_nat_mourn_inferior)
10641 (linux_nat_xfer_partial, linux_nat_thread_alive)
10642 (linux_nat_update_thread_list, linux_nat_pid_to_str)
10643 (linux_nat_thread_name, linux_child_pid_to_exec_file)
10644 (linux_child_static_tracepoint_markers_by_strid)
10645 (linux_nat_is_async_p, linux_nat_can_async_p)
10646 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
10647 (linux_nat_supports_multi_process)
10648 (linux_nat_supports_disable_randomization, linux_nat_async)
10649 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
10650 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
10651 (linux_nat_fileio_open, linux_nat_fileio_readlink)
10652 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
10653 methods of linux_nat_target.
10654 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
10655 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
10657 (check_stopped_by_watchpoint): Adjust.
10658 (linux_xfer_partial): Delete.
10659 (linux_target_install_ops, linux_target, linux_nat_add_target):
10661 (linux_nat_target::linux_nat_target): New.
10662 * linux-nat.h: Include "inf-ptrace.h".
10663 (linux_nat_target): New.
10664 (linux_target, linux_target_install_ops, linux_nat_add_target):
10665 Delete function declarations.
10666 (linux_target): Declare global.
10667 * linux-thread-db.c (thread_db_target): New.
10668 (thread_db_target::thread_db_target): New.
10669 (thread_db_ops): Delete.
10670 (the_thread_db_target): New.
10671 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
10672 (thread_db_update_thread_list, thread_db_pid_to_str)
10673 (thread_db_extra_thread_info)
10674 (thread_db_thread_handle_to_thread_info)
10675 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
10676 (thread_db_resume): Refactor as methods of thread_db_target.
10677 (init_thread_db_ops): Delete.
10678 (_initialize_thread_db): Remove reference to init_thread_db_ops.
10679 * x86-linux-nat.c: Don't include "linux-nat.h".
10680 (super_post_startup_inferior): Delete.
10681 (x86_linux_nat_target::~x86_linux_nat_target): New.
10682 (x86_linux_child_post_startup_inferior)
10683 (x86_linux_read_description, x86_linux_enable_btrace)
10684 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
10685 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
10686 methods of x86_linux_nat_target.
10687 (x86_linux_create_target): Delete. Bits folded ...
10688 (x86_linux_add_target): ... here. Now takes a linux_nat_target
10690 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
10691 (x86_linux_nat_target): New class.
10692 (x86_linux_create_target): Delete.
10693 (x86_linux_add_target): Now takes a linux_nat_target pointer.
10694 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
10695 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
10696 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
10697 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
10698 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
10700 (x86_use_watchpoints): Delete.
10701 * x86-nat.h: Include "breakpoint.h" and "target.h".
10702 (x86_use_watchpoints): Delete.
10703 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
10704 (x86_stopped_by_watchpoint, x86_stopped_data_address)
10705 (x86_insert_watchpoint, x86_remove_watchpoint)
10706 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
10707 (x86_stopped_by_hw_breakpoint): New declarations.
10708 (x86_nat_target): New template class.
10710 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
10711 (the_ppc_linux_nat_target): New.
10712 (ppc_linux_fetch_inferior_registers)
10713 (ppc_linux_can_use_hw_breakpoint)
10714 (ppc_linux_region_ok_for_hw_watchpoint)
10715 (ppc_linux_ranged_break_num_registers)
10716 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
10717 (ppc_linux_insert_mask_watchpoint)
10718 (ppc_linux_remove_mask_watchpoint)
10719 (ppc_linux_can_accel_watchpoint_condition)
10720 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
10721 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
10722 (ppc_linux_watchpoint_addr_within_range)
10723 (ppc_linux_masked_watch_num_registers)
10724 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
10725 (ppc_linux_read_description): Refactor as methods of
10726 ppc_linux_nat_target.
10727 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
10729 * procfs.c (procfs_xfer_partial): Delete forward declaration.
10730 (procfs_target): New class.
10731 (the_procfs_target): New.
10732 (procfs_target): Delete function.
10733 (procfs_auxv_parse, procfs_attach, procfs_detach)
10734 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
10735 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
10736 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
10737 (procfs_create_inferior, procfs_update_thread_list)
10738 (procfs_thread_alive, procfs_pid_to_str)
10739 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
10740 (procfs_stopped_data_address, procfs_insert_watchpoint)
10741 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
10742 (proc_find_memory_regions, procfs_info_proc)
10743 (procfs_make_note_section): Refactor as methods of procfs_target.
10744 (_initialize_procfs): Adjust.
10745 * sol-thread.c (sol_thread_target): New class.
10746 (sol_thread_ops): Now a sol_thread_target.
10747 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
10748 (sol_thread_fetch_registers, sol_thread_store_registers)
10749 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
10750 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
10751 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
10752 (init_sol_thread_ops): Delete.
10753 (_initialize_sol_thread): Adjust. Remove references to
10754 init_sol_thread_ops and complete_target_initialization.
10756 * windows-nat.c (windows_nat_target): New class.
10757 (windows_fetch_inferior_registers)
10758 (windows_store_inferior_registers, windows_resume, windows_wait)
10759 (windows_attach, windows_detach, windows_pid_to_exec_file)
10760 (windows_files_info, windows_create_inferior)
10761 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
10762 (windows_close, windows_pid_to_str, windows_xfer_partial)
10763 (windows_get_tib_address, windows_get_ada_task_ptid)
10764 (windows_thread_name, windows_thread_alive): Refactor as
10765 windows_nat_target methods.
10766 (do_initial_windows_stuff): Adjust.
10767 (windows_target): Delete function.
10768 (_initialize_windows_nat): Adjust.
10770 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
10771 (darwin_mourn_inferior, darwin_kill_inferior)
10772 (darwin_create_inferior, darwin_attach, darwin_detach)
10773 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
10774 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
10775 (darwin_supports_multi_process): Refactor as darwin_nat_target
10777 (darwin_resume_to, darwin_files_info): Delete.
10778 (_initialize_darwin_inferior): Rename to ...
10779 (_initialize_darwin_nat): ... this. Adjust to C++ification.
10780 * darwin-nat.h: Include "inf-child.h".
10781 (darwin_nat_target): New class.
10782 (darwin_complete_target): Delete.
10783 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
10784 (darwin_target): New.
10785 (i386_darwin_fetch_inferior_registers)
10786 (i386_darwin_store_inferior_registers): Refactor as methods of
10788 (darwin_complete_target): Delete, with ...
10789 (_initialize_i386_darwin_nat): ... bits factored out here.
10791 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
10792 (the_alpha_linux_nat_target): New.
10793 (alpha_linux_register_u_offset): Refactor as
10794 alpha_linux_nat_target method.
10795 (_initialize_alpha_linux_nat): Adjust.
10796 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
10797 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10798 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
10799 methods of linux_nat_trad_target.
10800 (linux_trad_target): Delete.
10801 * linux-nat-trad.h (linux_trad_target): Delete function.
10802 (linux_nat_trad_target): New class.
10803 * mips-linux-nat.c (mips_linux_nat_target): New class.
10804 (super_fetch_registers, super_store_registers, super_close):
10806 (the_mips_linux_nat_target): New.
10807 (mips64_linux_regsets_fetch_registers)
10808 (mips64_linux_regsets_store_registers)
10809 (mips64_linux_fetch_registers, mips64_linux_store_registers)
10810 (mips_linux_register_u_offset, mips_linux_read_description)
10811 (mips_linux_can_use_hw_breakpoint)
10812 (mips_linux_stopped_by_watchpoint)
10813 (mips_linux_stopped_data_address)
10814 (mips_linux_region_ok_for_hw_watchpoint)
10815 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
10816 (mips_linux_close): Refactor as methods of mips_linux_nat.
10817 (_initialize_mips_linux_nat): Adjust to C++ification.
10819 * aix-thread.c (aix_thread_target): New class.
10820 (aix_thread_ops): Now an aix_thread_target.
10821 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
10822 (aix_thread_fetch_registers, aix_thread_store_registers)
10823 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
10824 (aix_thread_thread_alive, aix_thread_pid_to_str)
10825 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
10826 Refactor as methods of aix_thread_target.
10827 (init_aix_thread_ops): Delete.
10828 (_initialize_aix_thread): Remove references to init_aix_thread_ops
10829 and complete_target_initialization.
10830 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
10831 (rs6000_nat_target): New class.
10832 (the_rs6000_nat_target): New.
10833 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
10834 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
10835 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
10836 (super_create_inferior): Delete.
10837 (_initialize_rs6000_nat): Adjust to C++ification.
10839 * arm-linux-nat.c (arm_linux_nat_target): New class.
10840 (the_arm_linux_nat_target): New.
10841 (arm_linux_fetch_inferior_registers)
10842 (arm_linux_store_inferior_registers, arm_linux_read_description)
10843 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
10844 (arm_linux_remove_hw_breakpoint)
10845 (arm_linux_region_ok_for_hw_watchpoint)
10846 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
10847 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
10848 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
10849 arm_linux_nat_target.
10850 (_initialize_arm_linux_nat): Adjust to C++ification.
10852 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
10853 (the_aarch64_linux_nat_target): New.
10854 (aarch64_linux_fetch_inferior_registers)
10855 (aarch64_linux_store_inferior_registers)
10856 (aarch64_linux_child_post_startup_inferior)
10857 (aarch64_linux_read_description)
10858 (aarch64_linux_can_use_hw_breakpoint)
10859 (aarch64_linux_insert_hw_breakpoint)
10860 (aarch64_linux_remove_hw_breakpoint)
10861 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
10862 (aarch64_linux_region_ok_for_hw_watchpoint)
10863 (aarch64_linux_stopped_data_address)
10864 (aarch64_linux_stopped_by_watchpoint)
10865 (aarch64_linux_watchpoint_addr_within_range)
10866 (aarch64_linux_can_do_single_step): Refactor as methods of
10867 aarch64_linux_nat_target.
10868 (super_post_startup_inferior): Delete.
10869 (_initialize_aarch64_linux_nat): Adjust to C++ification.
10871 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
10872 (the_hppa_linux_nat_target): New.
10873 (hppa_linux_fetch_inferior_registers)
10874 (hppa_linux_store_inferior_registers): Refactor as methods of
10875 hppa_linux_nat_target.
10876 (_initialize_hppa_linux_nat): Adjust to C++ification.
10878 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
10879 (the_ia64_linux_nat_target): New.
10880 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
10881 (ia64_linux_stopped_data_address)
10882 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
10883 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
10884 ia64_linux_nat_target methods.
10885 (super_xfer_partial): Delete.
10886 (_initialize_ia64_linux_nat): Adjust to C++ification.
10888 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
10889 (the_m32r_linux_nat_target): New.
10890 (m32r_linux_fetch_inferior_registers)
10891 (m32r_linux_store_inferior_registers): Refactor as
10892 m32r_linux_nat_target methods.
10893 (_initialize_m32r_linux_nat): Adjust to C++ification.
10895 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
10896 (the_m68k_linux_nat_target): New.
10897 (m68k_linux_fetch_inferior_registers)
10898 (m68k_linux_store_inferior_registers): Refactor as
10899 m68k_linux_nat_target methods.
10900 (_initialize_m68k_linux_nat): Adjust to C++ification.
10902 * s390-linux-nat.c (s390_linux_nat_target): New class.
10903 (the_s390_linux_nat_target): New.
10904 (s390_linux_fetch_inferior_registers)
10905 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
10906 (s390_insert_watchpoint, s390_remove_watchpoint)
10907 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
10908 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
10909 (s390_auxv_parse, s390_read_description): Refactor as methods of
10910 s390_linux_nat_target.
10911 (_initialize_s390_nat): Adjust to C++ification.
10913 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
10914 (the_sparc_linux_nat_target): New.
10915 (_initialize_sparc_linux_nat): Adjust to C++ification.
10916 * sparc-nat.c (sparc_fetch_inferior_registers)
10917 (sparc_store_inferior_registers): Remove target_ops parameter.
10918 * sparc-nat.h (sparc_fetch_inferior_registers)
10919 (sparc_store_inferior_registers): Remove target_ops parameter.
10920 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
10921 (the_sparc64_linux_nat_target): New.
10922 (_initialize_sparc64_linux_nat): Adjust to C++ification.
10924 * spu-linux-nat.c (spu_linux_nat_target): New class.
10925 (the_spu_linux_nat_target): New.
10926 (spu_child_post_startup_inferior, spu_child_post_attach)
10927 (spu_child_wait, spu_fetch_inferior_registers)
10928 (spu_store_inferior_registers, spu_xfer_partial)
10929 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
10931 (_initialize_spu_nat): Adjust to C++ification.
10933 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
10934 (the_tilegx_linux_nat_target): New.
10935 (fetch_inferior_registers, store_inferior_registers):
10936 Refactor as methods.
10937 (_initialize_tile_linux_nat): Adjust to C++ification.
10939 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
10940 (the_xtensa_linux_nat_target): New.
10941 (xtensa_linux_fetch_inferior_registers)
10942 (xtensa_linux_store_inferior_registers): Refactor as
10943 xtensa_linux_nat_target methods.
10944 (_initialize_xtensa_linux_nat): Adjust to C++ification.
10946 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
10947 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
10948 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
10949 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
10950 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
10951 (fbsd_stopped_by_sw_breakpoint)
10952 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
10953 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
10954 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
10955 (fbsd_post_startup_inferior, fbsd_post_attach)
10956 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
10957 (fbsd_set_syscall_catchpoint)
10958 (super_xfer_partial, super_resume, super_wait)
10959 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
10960 (fbsd_handle_debug_trap): Remove target_ops parameter.
10961 (fbsd_nat_add_target): Delete.
10962 * fbsd-nat.h: Include "inf-ptrace.h".
10963 (fbsd_nat_add_target): Delete.
10964 (USE_SIGTRAP_SIGINFO): Define.
10965 (fbsd_nat_target): New class.
10967 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
10968 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
10969 (amd64bsd_target): Delete.
10970 * amd64-bsd-nat.h: New file.
10971 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
10973 (amd64_fbsd_nat_target): New class.
10974 (the_amd64_fbsd_nat_target): New.
10975 (amd64fbsd_read_description): Refactor as method of
10976 amd64_fbsd_nat_target.
10977 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10978 (_initialize_amd64fbsd_nat): Adjust to C++ification.
10979 * amd64-nat.h (amd64bsd_target): Delete function declaration.
10980 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
10981 (i386bsd_store_inferior_registers): Remove target_ops parameter.
10982 (i386bsd_target): Delete.
10983 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
10984 (i386bsd_fetch_inferior_registers)
10985 (i386bsd_store_inferior_registers): Declare.
10986 (i386_bsd_nat_target): New class.
10987 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
10988 (the_i386_fbsd_nat_target): New.
10989 (i386fbsd_resume, i386fbsd_read_description): Refactor as
10990 i386_fbsd_nat_target methods.
10991 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10992 (_initialize_i386fbsd_nat): Adjust to C++ification.
10993 * x86-bsd-nat.c (super_mourn_inferior): Delete.
10994 (x86bsd_mourn_inferior, x86bsd_target): Delete.
10995 (_initialize_x86_bsd_nat): Adjust to C++ification.
10996 * x86-bsd-nat.h: Include "x86-nat.h".
10997 (x86bsd_target): Delete declaration.
10998 (x86bsd_nat_target): New class.
11000 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
11001 (the_aarch64_fbsd_nat_target): New.
11002 (aarch64_fbsd_fetch_inferior_registers)
11003 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
11004 aarch64_fbsd_nat_target.
11005 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
11006 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
11007 (the_alpha_bsd_nat_target): New.
11008 (alphabsd_fetch_inferior_registers)
11009 (alphabsd_store_inferior_registers): Refactor as
11010 alpha_bsd_nat_target methods.
11011 (_initialize_alphabsd_nat): Refactor as methods of
11012 alpha_bsd_nat_target.
11013 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
11014 (the_amd64_nbsd_nat_target): New.
11015 (_initialize_amd64nbsd_nat): Adjust to C++ification.
11016 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
11017 (the_amd64_obsd_nat_target): New.
11018 (_initialize_amd64obsd_nat): Adjust to C++ification.
11019 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
11020 (the_arm_fbsd_nat_target): New.
11021 (arm_fbsd_fetch_inferior_registers)
11022 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
11023 (_initialize_arm_fbsd_nat): Refactor as methods of
11024 arm_fbsd_nat_target.
11025 (_initialize_arm_fbsd_nat): Adjust to C++ification.
11026 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
11027 (the_arm_netbsd_nat_target): New.
11028 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
11029 arm_netbsd_nat_target.
11030 (_initialize_arm_netbsd_nat): Adjust to C++ification.
11031 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
11032 (the_hppa_nbsd_nat_target): New.
11033 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
11034 hppa_nbsd_nat_target methods.
11035 (_initialize_hppanbsd_nat): Adjust to C++ification.
11036 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
11037 (the_hppa_obsd_nat_target): New.
11038 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
11039 methods of hppa_obsd_nat_target.
11040 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
11042 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
11043 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
11045 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
11046 (_initialize_i386obsd_nat): Use add_target.
11047 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
11048 (the_m68k_bsd_nat_target): New.
11049 (m68kbsd_fetch_inferior_registers)
11050 (m68kbsd_store_inferior_registers): Refactor as methods of
11051 m68k_bsd_nat_target.
11052 (_initialize_m68kbsd_nat): Adjust to C++ification.
11053 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
11054 (the_mips_fbsd_nat_target): New.
11055 (mips_fbsd_fetch_inferior_registers)
11056 (mips_fbsd_store_inferior_registers): Refactor as methods of
11057 mips_fbsd_nat_target.
11058 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
11060 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
11061 (the_mips_nbsd_nat_target): New.
11062 (mipsnbsd_fetch_inferior_registers)
11063 (mipsnbsd_store_inferior_registers): Refactor as methods of
11064 mips_nbsd_nat_target.
11065 (_initialize_mipsnbsd_nat): Adjust to C++ification.
11066 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
11067 (the_mips64_obsd_nat_target): New.
11068 (mips64obsd_fetch_inferior_registers)
11069 (mips64obsd_store_inferior_registers): Refactor as methods of
11070 mips64_obsd_nat_target.
11071 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
11073 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
11075 * nbsd-nat.h: Include "inf-ptrace.h".
11076 (nbsd_nat_target): New class.
11077 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
11078 (obsd_wait): Refactor as methods of obsd_nat_target.
11079 (obsd_add_target): Delete.
11080 * obsd-nat.h: Include "inf-ptrace.h".
11081 (obsd_nat_target): New class.
11082 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
11083 (the_ppc_fbsd_nat_target): New.
11084 (ppcfbsd_fetch_inferior_registers)
11085 (ppcfbsd_store_inferior_registers): Refactor as methods of
11086 ppc_fbsd_nat_target.
11087 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
11089 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
11090 (the_ppc_nbsd_nat_target): New.
11091 (ppcnbsd_fetch_inferior_registers)
11092 (ppcnbsd_store_inferior_registers): Refactor as methods of
11093 ppc_nbsd_nat_target.
11094 (_initialize_ppcnbsd_nat): Adjust to C++ification.
11095 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
11096 (the_ppc_obsd_nat_target): New.
11097 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
11098 methods of ppc_obsd_nat_target.
11099 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
11101 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
11102 (the_sh_nbsd_nat_target): New.
11103 (shnbsd_fetch_inferior_registers)
11104 (shnbsd_store_inferior_registers): Refactor as methods of
11105 sh_nbsd_nat_target.
11106 (_initialize_shnbsd_nat): Adjust to C++ification.
11107 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
11108 (inf_ptrace_xfer_partial): Delete.
11109 (sparc_xfer_partial, sparc_target): Delete.
11110 * sparc-nat.h (sparc_fetch_inferior_registers)
11111 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
11112 (sparc_target): Delete function declaration.
11113 (sparc_target): New template class.
11114 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
11115 (_initialize_sparcnbsd_nat): Adjust to C++ification.
11116 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
11117 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
11119 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
11120 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
11121 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
11122 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
11124 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
11125 (the_vax_bsd_nat_target): New.
11126 (vaxbsd_fetch_inferior_registers)
11127 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
11129 (_initialize_vaxbsd_nat): Adjust to C++ification.
11131 * bsd-kvm.c (bsd_kvm_target): New class.
11132 (bsd_kvm_ops): Now a bsd_kvm_target.
11133 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
11134 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
11135 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
11137 (bsd_kvm_return_one): Delete.
11138 (bsd_kvm_add_target): Adjust to C++ification.
11140 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
11141 (nto_procfs_target_procfs): New classes.
11142 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
11143 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
11144 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
11145 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
11146 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
11147 (procfs_remove_hw_breakpoint, procfs_resume)
11148 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
11149 (procfs_kill_inferior, procfs_store_registers)
11150 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
11151 as methods of nto_procfs_target.
11152 (nto_procfs_ops): Now an nto_procfs_target_procfs.
11153 (nto_native_ops): Delete.
11154 (procfs_open, procfs_native_open): Delete.
11155 (nto_native_ops): Now an nto_procfs_target_native.
11156 (init_procfs_targets): Adjust to C++ification.
11157 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
11158 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
11159 Refactor as methods of nto_procfs_target.
11161 * go32-nat.c (go32_nat_target): New class.
11162 (the_go32_nat_target): New.
11163 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
11164 (go32_store_registers, go32_xfer_partial, go32_files_info)
11165 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
11166 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
11167 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
11168 (go32_pid_to_str): Refactor as methods of go32_nat_target.
11169 (go32_target): Delete.
11170 (_initialize_go32_nat): Adjust to C++ification.
11172 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
11173 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
11174 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
11175 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
11177 (gnu_target): Delete.
11178 * gnu-nat.h (gnu_target): Delete.
11179 (gnu_nat_target): New class.
11180 * i386-gnu-nat.c (gnu_base_target): New.
11181 (i386_gnu_nat_target): New class.
11182 (the_i386_gnu_nat_target): New.
11183 (_initialize_i386gnu_nat): Adjust to C++ification.
11185 2018-05-02 Pedro Alves <palves@redhat.com>
11187 * bfd-target.c (target_bfd_xclose): Rename to ...
11188 (target_bfd_close): ... this.
11189 (target_bfd_reopen): Adjust.
11190 * target.c (target_close): Remove references to to_xclose.
11191 * target.h (target_ops::to_xclose): Delete.
11192 (target_ops::to_close): Update comments.
11194 2018-05-02 Pedro Alves <palves@redhat.com>
11196 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
11198 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
11199 * inf-ptrace.c (inf_ptrace_register_u_offset)
11200 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11201 (inf_ptrace_store_register, inf_ptrace_store_registers)
11202 (inf_ptrace_trad_target): Move to ...
11203 * linux-nat-trad.c: ... this new file.
11204 * linux-nat-trad.h: New file.
11205 * linux-nat.c (linux_target_install_ops): Make extern.
11206 (linux_trad_target): Delete.
11207 * linux-nat.h (linux_trad_target): Delete declaration.
11208 (linux_target_install_ops): Declare.
11209 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
11212 2018-05-02 Pedro Alves <palves@redhat.com>
11214 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11215 procfs_target/add_target here.
11216 * procfs.c (procfs_target): Make static.
11217 (_initialize_procfs): Call add_target here.
11218 * procfs.h (struct target_ops): Remove forward declaration.
11219 (procfs_target): Remove declaration.
11220 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
11222 2018-05-02 Pedro Alves <palves@redhat.com>
11224 * procfs.c (procfs_stopped_by_watchpoint)
11225 (procfs_insert_watchpoint, procfs_remove_watchpoint)
11226 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
11228 (procfs_use_watchpoints): Delete, move contents...
11229 (procfs_target): ... here.
11230 * procfs.h (procfs_use_watchpoints): Delete declaration.
11231 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11232 procfs_use_watchpoints.
11233 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
11234 procfs_use_watchpoints.
11236 2018-05-02 Tom Tromey <tom@tromey.com>
11239 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
11240 and var_zuinteger_unlimited.
11241 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
11242 and PARAM_ZUINTEGER_UNLIMITED.
11243 (set_parameter_value): Handle var_zuinteger and
11244 var_zuinteger_unlimited.
11245 (add_setshow_generic): Likewise.
11246 (parmpy_init): Likewise.
11248 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
11251 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
11252 pointer is not null before dereferencing it.
11254 2018-04-30 Tom Tromey <tom@tromey.com>
11256 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
11259 2018-04-30 Tom Tromey <tom@tromey.com>
11261 * breakpoint.c (mention): Remove use of is_mi_like_p.
11262 (print_mention_ranged_breakpoint): Likewise.
11263 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
11266 2018-04-30 Tom Tromey <tom@tromey.com>
11268 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
11270 2018-04-30 Tom Tromey <tom@tromey.com>
11272 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
11273 (info_spu_event_command): Remove some uses of is_mi_like_p.
11275 2018-04-30 Tom Tromey <tom@tromey.com>
11277 * python/py-framefilter.c (py_print_single_arg)
11278 (enumerate_locals, py_print_args, py_print_frame): Remove some
11279 uses of is_mi_like_p.
11281 2018-04-30 Tom Tromey <tom@tromey.com>
11283 * ui-out.c: Update.
11284 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
11285 * ui-out.h (ui_out::is_mi_like_p): Now const.
11286 (ui_out::do_is_mi_like_p): Now const.
11287 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
11289 2018-04-30 Tom Tromey <tom@tromey.com>
11291 * varobj.c (varobj_set_visualizer): Use new_reference.
11292 * python/python.c (gdbpy_decode_line): Use new_reference.
11293 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
11296 2018-04-30 Tom Tromey <tom@tromey.com>
11298 * varobj.c (install_new_value): Use new_reference.
11299 * value.h (value_incref): Return void. Swap intro comment with
11301 * value.c (set_value_parent): Use new_reference.
11302 (value_incref): Return void. Update intro comment.
11303 (release_value): Use new_reference.
11304 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
11306 2018-04-30 Tom Tromey <tom@tromey.com>
11308 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
11309 * gdb_bfd.h (new_bfd_ref): Remove.
11310 (gdb_bfd_open): Update comment.
11311 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11312 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
11313 (gdb_bfd_fdopenr): Use new_reference.
11314 * exec.c (exec_file_attach): Use new_reference.
11316 2018-04-30 Tom Tromey <tom@tromey.com>
11318 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
11321 2018-04-30 Tom Tromey <tom@tromey.com>
11323 * jit.c (jit_read_code_entry): Use type_align.
11324 * i386-tdep.c (i386_gdbarch_init): Don't call
11325 set_gdbarch_long_long_align_bit.
11326 * gdbarch.sh: Remove long_long_align_bit.
11327 * gdbarch.c, gdbarch.h: Rebuild.
11328 * arc-tdep.c (arc_type_align): New function.
11329 (arc_gdbarch_init): Use arc_type_align. Don't call
11330 set_gdbarch_long_long_align_bit.
11332 2018-04-30 Tom Tromey <tom@tromey.com>
11334 * rust-lang.c (rust_type_alignment): Remove.
11335 (rust_composite_type): Use type_align.
11337 2018-04-30 Tom Tromey <tom@tromey.com>
11339 * NEWS: Mention Type.align.
11340 * python/py-type.c (typy_get_alignof): New function.
11341 (type_object_getset): Add "alignof".
11343 2018-04-30 Tom Tromey <tom@tromey.com>
11347 * std-operator.def (UNOP_ALIGNOF): New operator.
11348 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
11350 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
11351 * c-lang.c (c_op_print_tab): Add alignof.
11352 * c-exp.y (ALIGNOF): New token.
11353 (exp): Add "ALIGNOF" production.
11354 (ident_tokens): Add _Alignof and alignof.
11356 2018-04-30 Tom Tromey <tom@tromey.com>
11358 * i386-tdep.c (i386_type_align): New function.
11359 (i386_gdbarch_init): Update.
11360 * gdbarch.sh (type_align): New method.
11361 * gdbarch.c, gdbarch.h: Rebuild.
11362 * arch-utils.h (default_type_align): Declare.
11363 * arch-utils.c (default_type_align): New function.
11364 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
11365 (struct type) <align_log2>: New field.
11366 <instance_flags>: Now a bitfield.
11367 (TYPE_RAW_ALIGN): New macro.
11368 (type_align, type_raw_align, set_type_align): Declare.
11369 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
11371 * dwarf2read.c (quirk_rust_enum): Set type alignment.
11372 (get_alignment, maybe_set_alignment): New functions.
11373 (read_structure_type, read_enumeration_type, read_array_type)
11374 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
11375 (read_subrange_type, read_base_type): Set type alignment.
11377 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
11379 * dwarf2read.c (read_index_from_section): Use bool.
11381 2018-04-29 Fabian Groffen <grobian@gentoo.org>
11384 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
11387 2018-04-29 John Reiser <jreiser@BitWagon.com>
11390 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
11391 last step, and do it atomically.
11393 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
11395 * compile/compile-c-types.c (convert_int, convert_float):
11396 Update for C FE v1.
11398 2018-04-27 Tom Tromey <tom@tromey.com>
11401 * rust-lang.c (rust_inclusive_range_type_p): New function.
11402 (rust_range): Handle inclusive ranges.
11403 (rust_compute_range): Likewise.
11404 * rust-exp.y (struct rust_op) <inclusive>: New field.
11405 (DOTDOTEQ): New constant.
11406 (range_expr): Add "..=" productions.
11407 (operator_tokens): Add "..=" token.
11408 (ast_range): Add "inclusive" parameter.
11409 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
11411 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
11413 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
11414 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
11416 * expprint.c (print_subexp_standard): Handle new bounds values.
11417 (dump_subexp_body_standard): Likewise.
11419 2018-04-27 Tom Tromey <tom@tromey.com>
11421 * configure: Rebuild.
11422 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
11423 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
11425 (class symbol_needs_eval_context): Likewise.
11426 * dwarf2read.c (mock_mapped_index::symbol_name_count)
11427 (mock_mapped_index::symbol_name_at): Use "override". Remove
11429 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
11431 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
11432 * aarch64-tdep.c (instruction_reader::read): Use "override".
11433 (instruction_reader_test::read): Likewise.
11434 * arm-tdep.c (instruction_reader::read): Use "override".
11435 (instruction_reader_thumb::read): Likewise.
11437 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
11440 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
11441 instead of remote_send.
11442 (remote_send): Remove.
11444 2018-04-26 Pedro Alves <palves@redhat.com>
11446 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
11447 find_function_start_sal instead of find_pc_line.
11449 2018-04-26 Pedro Alves <palves@redhat.com>
11451 * breakpoint.c (set_breakpoint_location_function): Handle
11452 mst_data_gnu_ifunc.
11453 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
11454 * elfread.c (elf_symtab_read): Give data symbols with
11455 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
11456 (elf_rel_plt_read): Update comment.
11457 * linespec.c (convert_linespec_to_sals): Handle
11458 mst_data_gnu_ifunc.
11459 (minsym_found): Handle mst_data_gnu_ifunc.
11460 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
11461 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
11462 * parse.c (find_minsym_type_and_address): Handle
11463 mst_data_gnu_ifunc.
11464 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
11465 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
11466 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
11468 <mst_data_gnu_ifunc>: New enumerator.
11470 2018-04-26 Pedro Alves <palves@redhat.com>
11472 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
11473 (lookup_minimal_symbol_by_pc_section): ... this. Replace
11474 'want_trampoline' parameter by a lookup_msym_prefer parameter.
11476 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
11477 (lookup_minimal_symbol_by_pc): Adjust.
11478 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
11479 (lookup_solib_trampoline_symbol_by_pc): Adjust.
11480 * minsyms.h (lookup_msym_prefer): New enum.
11481 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11482 parameter by a lookup_msym_prefer parameter.
11484 2018-04-26 Pedro Alves <palves@redhat.com>
11486 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
11487 ends in "@plt" instead of looking at the symbol's section.
11489 2018-04-26 Pedro Alves <palves@redhat.com>
11491 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
11493 (find_pc_partial_function_gnu_ifunc): Rename to ...
11494 (find_pc_partial_function): ... this, and remove references to
11496 (find_pc_partial_function): Delete old implementation.
11497 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
11499 2018-04-26 Pedro Alves <palves@redhat.com>
11501 * linespec.c (struct bound_minimal_symbol_search_key): New.
11502 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
11503 skip first line if we found a GNU ifunc minimal symbol by name.
11504 (compare_msymbols): Change parameters to work with a destructured
11506 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
11509 2018-04-26 Pedro Alves <palves@redhat.com>
11511 * breakpoint.c (set_breakpoint_location_function): Don't resolve
11512 ifunc targets here. Instead, if we have an ifunc minsym, use its
11514 (add_location_to_breakpoint): Store the minsym and the objfile in
11515 the breakpoint location.
11516 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
11517 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
11518 Record the minsym in the sal.
11519 * symtab.h (symtab_and_line) <msymbol>: New field.
11521 2018-04-26 Pedro Alves <palves@redhat.com>
11523 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
11524 unless we actually resolved the ifunc.
11526 2018-04-26 Pedro Alves <palves@redhat.com>
11528 * c-exp.y (variable production): Prefer ifunc minsyms over
11529 regular function symbols.
11530 * symtab.c (find_gnu_ifunc): New function.
11531 * minsyms.h (lookup_msym_prefer): New enum.
11532 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11533 parameter by a lookup_msym_prefer parameter.
11534 * symtab.h (find_gnu_ifunc): New declaration.
11536 2018-04-26 Pedro Alves <palves@redhat.com>
11538 * blockframe.c (find_gnu_ifunc_target_type): New function.
11539 (find_function_type): New.
11540 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
11541 return a value with a memory address.
11542 (eval_call): For calls to GNU ifunc functions, try to find the
11543 type of the target function from the type that the resolver
11545 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
11547 * infcall.c (find_function_return_type): Delete.
11548 (find_function_addr): Add 'function_type' parameter. For calls to
11549 GNU ifunc functions, try to find the type of the target function
11550 from the type that the resolver returns, and return it via
11552 (call_function_by_hand_dummy): Adjust to use the function type
11553 returned by find_function_addr.
11554 (find_function_addr): Add 'function_type' parameter and move
11556 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
11559 2018-04-26 Pedro Alves <palves@redhat.com>
11561 * c-exp.y (variable production): Skip finding an alias for ifunc
11564 2018-04-26 Pedro Alves <palves@redhat.com>
11566 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
11568 2018-04-25 Pedro Alves <palves@redhat.com>
11570 * infcmd.c (kill_command): Print the pid as string, not the whole
11571 thread's ptid. Add comment. s/has been killed/killed/ in output
11573 * remote.c (remote_detach_1): Print the pid as string, not the
11574 whole thread's ptid.
11576 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11577 Sergio Durigan Junior <sergiodj@redhat.com>
11578 Pedro Alves <palves@redhat.com>
11580 * infcmd.c (kill_command): Print message when inferior has
11582 * inferior.c (print_inferior_events): Remove 'static'. Set as
11584 (add_inferior): Improve message printed when
11585 'print_inferior_events' is on.
11586 (exit_inferior): Remove message printed when
11587 'print_inferior_events' is on.
11588 (detach_inferior): Improve message printed when
11589 'print_inferior_events' is on.
11590 (initialize_inferiors): Use 'add_inferior_silent' to set
11591 'current_inferior_'.
11592 * inferior.h (print_inferior_events): Declare here as
11594 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
11595 '[Detaching...]' messages when 'print_inferior_events' is on.
11596 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
11597 as prefix/suffix for messages. Remove periods. Fix erroneous
11598 'Detaching after fork from child...', replace it by '... from
11600 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
11601 prefix/suffix when printing 'Detaching...' messages. Print
11602 them when 'print_inferior_events' is on.
11603 * remote.c (remote_detach_1): Print message when detaching
11604 from inferior and '!is_fork_parent'.
11606 2018-04-24 Tom Tromey <tom@tromey.com>
11608 * cli-out.h: Reindent.
11610 2018-04-24 Tom Tromey <tom@tromey.com>
11612 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
11613 (cli_ui_out::do_field_string): Use fputs_filtered.
11614 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
11616 2018-04-23 Tom Tromey <tom@tromey.com>
11618 * guile/scm-frame.c (gdbscm_frame_read_var): Use
11619 gdb::unique_xmalloc_ptr.
11621 2018-04-23 Tom Tromey <tom@tromey.com>
11623 * configure: Rebuild.
11625 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
11628 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
11629 prepare_for_testing. Set normal_bp to r_debug_state if target
11632 2018-04-21 Pedro Alves <palves@redhat.com>
11633 Rajendra SY <rajendra.sy@gmail.com>
11635 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
11636 * remote.c (extended_remote_attach): In all-stop mode, mark the
11637 thread as executing.
11639 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11641 * thread.c (thread_apply_all_command): Fix comment.
11642 (thread_command): Fix comment.
11644 2018-04-10 Alan Hayward <alan.hayward@arm.com>
11646 * common/tdesc.h (tdesc_create_feature): Remove xml filename
11648 * features/aarch64-core.c (create_feature_aarch64_core):
11650 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
11652 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
11654 * features/i386/32bit-avx512.c
11655 (create_feature_i386_32bit_avx512): Likewise.
11656 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
11658 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
11660 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
11662 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
11664 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
11666 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
11668 * features/i386/64bit-avx512.c
11669 (create_feature_i386_64bit_avx512): Likewise.
11670 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
11672 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
11674 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
11676 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
11678 * features/i386/64bit-segments.c
11679 (create_feature_i386_64bit_segments): Likewise.
11680 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
11682 * features/i386/x32-core.c
11683 (create_feature_i386_x32_core): Likewise.
11684 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
11685 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
11686 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
11687 * target-descriptions.c: In generated code, don't pass xml
11690 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11692 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
11693 (print_xml_feature::visit_post): Likewise.
11694 (print_xml_feature::visit): Likewise.
11695 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
11696 (print_xml_feature): Add new class.
11697 * regformats/regdat.sh: Null xmltarget on feature targets.
11698 * target-descriptions.c (struct target_desc): Add xmltarget.
11699 (maintenance_check_tdesc_xml_convert): Add unittest function.
11700 (tdesc_get_features_xml): Add function to get xml.
11701 (maintenance_check_xml_descriptions): Test xml generation.
11702 * xml-tdesc.c (string_read_description_xml): Add function.
11703 * xml-tdesc.h (string_read_description_xml): Add declaration.
11705 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11707 * features/Makefile: Add feature marker to targets with new style
11708 target descriptions.
11709 * regformats/aarch64.dat: Regenerate.
11710 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
11711 * regformats/i386/amd64-avx-linux.dat: Likewise.
11712 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
11713 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
11714 * regformats/i386/amd64-linux.dat: Likewise.
11715 * regformats/i386/amd64-mpx-linux.dat: Likewise.
11716 * regformats/i386/amd64.dat: Likewise.
11717 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
11718 * regformats/i386/i386-avx-linux.dat: Likewise.
11719 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
11720 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
11721 * regformats/i386/i386-linux.dat: Likewise.
11722 * regformats/i386/i386-mmx-linux.dat: Likewise.
11723 * regformats/i386/i386-mpx-linux.dat: Likewise.
11724 * regformats/i386/i386.dat: Likewise.
11725 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
11726 * regformats/i386/x32-avx-linux.dat: Likewise.
11727 * regformats/i386/x32-linux.dat: Likewise.
11728 * regformats/tic6x-c62x-linux.dat: Likewise.
11729 * regformats/tic6x-c64x-linux.dat: Likewise.
11730 * regformats/tic6x-c64xp-linux.dat: Likewise.
11731 * regformats/regdat.sh: Parse feature marker.
11733 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11735 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
11736 (tdesc_osabi_name): Likewise.
11737 * target-descriptions.c (tdesc_architecture_name): Add new
11739 (tdesc_osabi_name): Likewise.
11741 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11743 * common/tdesc.c (tdesc_predefined_type): Move to here.
11744 (tdesc_named_type): Likewise.
11745 (tdesc_create_vector): Likewise.
11746 (tdesc_create_struct): Likewise.
11747 (tdesc_set_struct_size): Likewise.
11748 (tdesc_create_union): Likewise.
11749 (tdesc_create_flags): Likewise.
11750 (tdesc_create_enum): Likewise.
11751 (tdesc_add_field): Likewise.
11752 (tdesc_add_typed_bitfield): Likewise.
11753 (tdesc_add_bitfield): Likewise.
11754 (tdesc_add_flag): Likewise.
11755 (tdesc_add_enum_value): Likewise.
11756 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
11757 (struct tdesc_type_vector): Likewise.
11758 (struct tdesc_type_field): Likewise.
11759 (struct tdesc_type_with_fields): Likewise.
11760 (tdesc_create_enum): Add declaration.
11761 (tdesc_add_typed_bitfield): Likewise.
11762 (tdesc_add_enum_value): Likewise.
11763 * target-descriptions.c (tdesc_type_field): Move from here.
11764 (tdesc_type_builtin): Likewise.
11765 (tdesc_type_vector): Likewise.
11766 (tdesc_type_with_fields): Likewise.
11767 (tdesc_predefined_types): Likewise.
11768 (tdesc_named_type): Likewise.
11769 (tdesc_create_vector): Likewise.
11770 (tdesc_create_struct): Likewise.
11771 (tdesc_set_struct_size): Likewise.
11772 (tdesc_create_union): Likewise.
11773 (tdesc_create_flags): Likewise.
11774 (tdesc_create_enum): Likewise.
11775 (tdesc_add_field): Likewise.
11776 (tdesc_add_typed_bitfield): Likewise.
11777 (tdesc_add_bitfield): Likewise.
11778 (tdesc_add_flag): Likewise.
11779 (tdesc_add_enum_value): Likewise.
11780 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
11781 (tdesc_add_typed_bitfield): Likewise.
11782 (tdesc_add_enum_value): Likewise.
11784 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11786 * common/tdesc.c (tdesc_feature::accept): Move to here.
11787 (tdesc_feature::operator==): Likewise.
11788 (tdesc_create_reg): Likewise.
11789 * common/tdesc.h (tdesc_type_kind): Likewise.
11790 (struct tdesc_type): Likewise.
11791 (struct tdesc_feature): Likewise.
11792 * regformats/regdat.sh: Create a feature.
11793 * target-descriptions.c (tdesc_type_kind): Move from here.
11794 (tdesc_type): Likewise.
11795 (tdesc_type_up): Likewise.
11796 (tdesc_feature): Likewise.
11797 (tdesc_create_reg): Likewise.
11799 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11801 * Makefile.in: Add arch/tdesc.c
11802 * common/tdesc.c: New file.
11803 * common/tdesc.h (tdesc_element_visitor): Move to here.
11804 (tdesc_element): Likewise.
11805 (tdesc_reg): Likewise.
11806 (tdesc_reg_up): Likewise.
11807 * regformats/regdef.h (reg): Add offset to constructors.
11808 * target-descriptions.c (tdesc_element_visitor): Move from here.
11809 (tdesc_element): Likewise.
11810 (tdesc_reg): Likewise.
11811 (tdesc_reg_up): Likewise.
11813 2018-04-17 Tom Tromey <tom@tromey.com>
11815 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
11816 discriminant field.
11818 2018-04-17 Tom Tromey <tom@tromey.com>
11820 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
11822 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
11824 * symtab.c (print_symbol_info): Skip printing filename and line
11825 number when `last' is NULL.
11826 (symtab_symbol_info): Use empty string instead of NULL for first
11827 invocation of print_symbol_info.
11828 (rbreak_command): Pass NULL to `last' parameter of
11831 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
11833 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
11834 instead of nullptr.
11836 2018-04-16 Pedro Alves <palves@redhat.com>
11838 * MAINTAINERS (sh): Remove.
11839 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
11840 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
11841 (ALLDEPFILES): Remove sh64-tdep.c.
11842 * NEWS: Mentions that support for SH-5/SH64 is removed.
11843 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
11844 (sh*-*-openbsd*): Ditto.
11845 (sh64-*-elf*): Remove.
11847 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
11848 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
11849 * sh-tdep.c: No longer include "sh64-tdep.h".
11850 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
11851 * sh64-tdep.c, sh64-tdep.h: Remove files.
11853 2018-04-16 Pedro Alves <palves@redhat.com>
11855 * MAINTAINERS: Remove m88k.
11856 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
11857 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
11858 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
11859 * NEWS: Mention that support for m88k was removed.
11860 * configure.host (m88*-*-*): Remove support.
11861 * configure.nat (m88k-*-*): Remove support.
11862 * configure.tgt (m88*-*-openbsd*): Remove.
11863 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
11865 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
11867 * configure.tgt (x86_tobjs): New variable.
11868 (amd64_tobjs, i386_tobjs): Use it.
11870 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11872 * symtab.c (print_symbol_info): Precede the symbol definition by
11873 the line number when available.
11874 * NEWS: Advertise this enhancement.
11876 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11878 * NEWS (New options): announce set/show record btrace cpu.
11879 * btrace.c: Include record-btrace.h.
11880 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
11881 the vendor is unknown.
11882 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
11883 Maybe overwrite the btrace configuration's cpu.
11884 (btrace_compute_ftrace): Add cpu parameter. Update callers.
11885 (btrace_fetch): Add cpu parameter. Update callers.
11886 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
11887 Maybe overwrite the btrace configuration's cpu. Skip enabling
11888 errata workarounds if the vendor is unknown.
11889 * python/py-record-btrace.c: Include record-btrace.h.
11890 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
11891 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
11892 * record-btrace.c (record_btrace_cpu_state_kind): New.
11893 (record_btrace_cpu): New.
11894 (set_record_btrace_cpu_cmdlist): New.
11895 (record_btrace_get_cpu): New.
11896 (require_btrace_thread, record_btrace_info)
11897 (record_btrace_resume_thread): Call record_btrace_get_cpu.
11898 (cmd_set_record_btrace_cpu_none): New.
11899 (cmd_set_record_btrace_cpu_auto): New.
11900 (cmd_set_record_btrace_cpu): New.
11901 (cmd_show_record_btrace_cpu): New.
11902 (_initialize_record_btrace): Initialize set/show record btrace cpu
11904 * record-btrace.h (record_btrace_get_cpu): New.
11906 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11908 * record.c (set_record_command): Fix typo in message.
11910 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11912 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
11914 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11916 * infrun.c (process_event_stop_test): Call
11917 gdbarch_in_indirect_branch_thunk.
11918 * gdbarch.sh (in_indirect_branch_thunk): New.
11919 * gdbarch.c: Regenerated.
11920 * gdbarch.h: Regenerated.
11923 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
11924 (HFILES_NO_SRCDIR): Add x86-tdep.h.
11925 (ALLDEPFILES): Add x86-tdep.c.
11926 * arch-utils.h (default_in_indirect_branch_thunk): New.
11927 * arch-utils.c (default_in_indirect_branch_thunk): New.
11928 * i386-tdep: Include x86-tdep.h.
11929 (i386_in_indirect_branch_thunk): New.
11930 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
11932 * amd64-tdep: Include x86-tdep.h.
11933 (amd64_in_indirect_branch_thunk): New.
11934 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
11936 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11939 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
11940 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
11941 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
11944 2018-04-12 Tom Tromey <tom@tromey.com>
11946 * rust-lang.c (rust_print_struct_def): Remove univariant code.
11947 (rust_evaluate_subexp): Likewise.
11949 2018-04-12 Pedro Alves <palves@redhat.com>
11951 * procfs.c (procfs_detach): Make forward declaration's prototype
11952 match definition's protototype.
11953 (proc_get_LDT_entry): Remove stale do_cleanups call.
11955 2018-04-12 Pedro Alves <palves@redhat.com>
11957 * target.h (target_ops::to_has_exited): Delete.
11958 (target_has_exited): Delete.
11959 * target-delegates.c: Regenerate.
11961 2018-04-11 Pedro Alves <palves@redhat.com>
11963 * target.c (fileio_fh_t::t): Add comment.
11964 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11965 (target_fileio_close): Handle a NULL target.
11966 (invalidate_fileio_fh): New.
11967 (target_close): Call it.
11968 * remote.c (remote_hostio_send_command): No longer check whether
11969 remote_desc is open.
11971 2018-04-11 Pedro Alves <palves@redhat.com>
11973 * target.c (fileio_fh_t): Make it a named struct instead of a
11975 (fileio_fh_t::is_closed): New method.
11976 (DEF_VEC_O (fileio_fh_t)): Remove.
11977 (fileio_fhandles): Now a std::vector.
11978 (is_closed_fileio_fh): Delete.
11979 (acquire_fileio_fd): Adjust. Rename parameters.
11980 (release_fileio_fd): Adjust.
11981 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
11982 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11983 (target_fileio_close): Adjust.
11985 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
11987 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
11990 2018-04-10 Pedro Alves <palves@redhat.com>
11992 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
11993 (scoped_finish_thread_state): New class.
11994 * infcmd.c (run_command_1): Use it instead of finish_thread_state
11996 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
11997 (fetch_inferior_event, normal_stop): Likewise.
11998 * thread.c (finish_thread_state_cleanup): Delete.
12000 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12001 Pedro Alves <palves@redhat.com>
12003 * value.c: Include "selftest.h" and "common/array-view.h".
12004 (struct range) <operator ==>: New.
12005 (test_ranges_contain): New.
12006 (check_ranges_vector): New.
12007 (test_insert_into_bit_range_vector): New.
12008 (_initialize_values): Register selftests.
12009 * common/array-view.h (operator==, operator!=): New.
12011 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12013 * common/gdb_vecs.h (unordered_remove): Add overload that takes
12015 * inline-frame.c: Include <algorithm>.
12016 (struct inline_state): Add constructor.
12017 (inline_state_s): Remove.
12018 (DEF_VEC_O(inline_state_s)): Remove.
12019 (inline_states): Change type to std::vector.
12020 (find_inline_frame_state): Adjust to std::vector.
12021 (allocate_inline_frame_state): Remove.
12022 (clear_inline_frame_state): Adjust to std::vector.
12023 (skip_inline_frames): Adjust to std::vector.
12025 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12027 * tracepoint.h (struct trace_state_variable): Add constructor.
12028 <name>: Change type to std::string.
12029 * tracepoint.c (tsv_s): Remove.
12030 (DEF_VEC_O(tsv_s)): Remove.
12031 (tvariables): Change to std::vector.
12032 (create_trace_state_variable): Adjust to std::vector.
12033 (find_trace_state_variable): Likewise.
12034 (find_trace_state_variable_by_number): Likewise.
12035 (delete_trace_state_variable): Likewise.
12036 (trace_variable_command): Adjust to std::string.
12037 (delete_trace_variable_command): Likewise.
12038 (tvariables_info_1): Adjust to std::vector.
12039 (save_trace_state_variables): Likewise.
12040 (start_tracing): Likewise.
12041 (merge_uploaded_trace_state_variables): Adjust to std::vector
12043 * target.h (struct target_ops)
12044 <to_download_trace_state_variable>: Pass reference to
12045 trace_state_variable.
12046 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
12047 * target-delegates.c: Re-generate.
12048 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
12049 (mi_tsv_deleted): Likewise.
12050 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
12051 * remote.c (remote_download_trace_state_variable): Change
12052 pointer to reference and adjust.
12053 * make-target-delegates (parse_argtypes): Handle references.
12054 (write_function_header): Likewise.
12055 (munge_type): Likewise.
12057 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12059 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12060 string_view-selftests.c.
12061 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
12063 * unittests/basic_string_view/cons/char/1.cc: Likewise.
12064 * unittests/basic_string_view/cons/char/2.cc: Likewise.
12065 * unittests/basic_string_view/cons/char/3.cc: Likewise.
12066 * unittests/basic_string_view/element_access/char/1.cc:
12068 * unittests/basic_string_view/element_access/char/empty.cc:
12070 * unittests/basic_string_view/element_access/char/front_back.cc:
12072 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
12073 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
12075 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
12077 * unittests/basic_string_view/modifiers/swap/char/1.cc:
12079 * unittests/basic_string_view/operations/compare/char/1.cc:
12081 * unittests/basic_string_view/operations/compare/char/13650.cc:
12083 * unittests/basic_string_view/operations/copy/char/1.cc:
12085 * unittests/basic_string_view/operations/data/char/1.cc:
12087 * unittests/basic_string_view/operations/find/char/1.cc:
12089 * unittests/basic_string_view/operations/find/char/2.cc:
12091 * unittests/basic_string_view/operations/find/char/3.cc:
12093 * unittests/basic_string_view/operations/find/char/4.cc:
12095 * unittests/basic_string_view/operations/rfind/char/1.cc:
12097 * unittests/basic_string_view/operations/rfind/char/2.cc:
12099 * unittests/basic_string_view/operations/rfind/char/3.cc:
12101 * unittests/basic_string_view/operations/substr/char/1.cc:
12103 * unittests/basic_string_view/operators/char/2.cc: Likewise.
12104 * unittests/string_view-selftests.c: New file.
12106 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12108 * unittests/basic_string_view/capacity/1.cc: New file.
12109 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
12110 * unittests/basic_string_view/cons/char/1.cc: New file.
12111 * unittests/basic_string_view/cons/char/2.cc: New file.
12112 * unittests/basic_string_view/cons/char/3.cc: New file.
12113 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
12114 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
12115 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
12116 * unittests/basic_string_view/element_access/char/1.cc: New file.
12117 * unittests/basic_string_view/element_access/char/2.cc: New file.
12118 * unittests/basic_string_view/element_access/char/empty.cc: New file.
12119 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
12120 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
12121 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
12122 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
12123 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
12124 * unittests/basic_string_view/include.cc: New file.
12125 * unittests/basic_string_view/inserters/char/1.cc: New file.
12126 * unittests/basic_string_view/inserters/char/2.cc: New file.
12127 * unittests/basic_string_view/inserters/char/3.cc: New file.
12128 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
12129 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
12130 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
12131 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
12132 * unittests/basic_string_view/literals/types.cc: New file.
12133 * unittests/basic_string_view/literals/values.cc: New file.
12134 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
12135 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
12136 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
12137 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
12138 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
12139 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
12140 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
12141 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
12142 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
12143 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
12144 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
12145 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
12146 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
12147 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
12148 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
12149 * unittests/basic_string_view/operations/data/char/1.cc: New file.
12150 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
12151 * unittests/basic_string_view/operations/find/char/1.cc: New file.
12152 * unittests/basic_string_view/operations/find/char/2.cc: New file.
12153 * unittests/basic_string_view/operations/find/char/3.cc: New file.
12154 * unittests/basic_string_view/operations/find/char/4.cc: New file.
12155 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
12156 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
12157 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
12158 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
12159 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
12160 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
12161 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
12162 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
12163 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
12164 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
12165 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
12166 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
12167 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
12168 * unittests/basic_string_view/operators/char/2.cc: New file.
12169 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
12170 * unittests/basic_string_view/range_access/char/1.cc: New file.
12171 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
12172 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
12173 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
12174 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
12175 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
12176 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
12177 * unittests/basic_string_view/requirements/typedefs.cc: New file.
12178 * unittests/basic_string_view/typedefs.cc: New file.
12179 * unittests/basic_string_view/types/1.cc: New file.
12181 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12183 * common/gdb_string_view.h: Remove libstdc++ implementation
12184 details, adjust to gdb reality.
12185 * common/gdb_string_view.tcc: Likewise.
12186 * cli/cli-script.c (struct string_view): Remove.
12187 (user_args) <m_args>: Change element type to gdb::string_view.
12188 (user_args::insert_args): Adjust.
12190 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12192 * common/gdb_string_view.h: New file.
12193 * common/gdb_string_view.tcc: New file.
12195 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12197 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
12198 * configure: Re-generate.
12200 2018-04-09 Pedro Alves <palves@redhat.com>
12202 * gdbarch.sh: Include "observable.h" instead of "observer.h".
12203 (set_target_gdbarch): Call
12204 gdb::observers::architecture_changed.notify instead of
12205 observer_notify_architecture_changed.
12207 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12209 * tracepoint.c (struct current_traceframe_cleanup): Remove.
12210 (do_restore_current_traceframe_cleanup): Remove.
12211 (restore_current_traceframe_cleanup_dtor): Remove.
12212 (make_cleanup_restore_current_traceframe): Remove.
12213 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
12215 * tracepoint.h (struct scoped_restore_current_traceframe): New.
12216 * infrun.c (fetch_inferior_event): Use
12217 scoped_restore_current_traceframe.
12219 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12221 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
12223 <n_allocated_type_units>: Remove.
12224 <all_type_units>: Change to std::vector.
12225 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12226 to std::vector change.
12227 (dwarf2_per_objfile::get_cutu): Likewise.
12228 (dwarf2_per_objfile::get_tu): Likewise.
12229 (create_signatured_type_table_from_index): Likewise.
12230 (create_signatured_type_table_from_debug_names): Likewise.
12231 (dw2_symtab_iter_next): Likewise.
12232 (dw2_print_stats): Likewise.
12233 (dw2_expand_all_symtabs): Likewise.
12234 (dw2_expand_marked_cus): Likewise.
12235 (dw2_debug_names_iterator::next): Likewise.
12236 (dwarf2_initialize_objfile): Likewise.
12237 (add_signatured_type_cu_to_table): Likewise.
12238 (create_all_type_units): Likewise.
12239 (add_type_unit): Likewise.
12240 (struct tu_abbrev_offset): Add constructor.
12241 (build_type_psymtabs_1): Adjust to std::vector change.
12242 (print_tu_stats): Likewise.
12243 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12244 (write_debug_names): Likewise.
12246 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12248 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
12249 Make an std::vector.
12250 <n_comp_units>: Remove.
12251 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12252 to std::vector change.
12253 (dwarf2_per_objfile::get_cutu): Likewise.
12254 (dwarf2_per_objfile::get_cu): Likewise.
12255 (create_cus_from_index): Likewise.
12256 (create_addrmap_from_index): Likewise.
12257 (create_addrmap_from_aranges): Likewise.
12258 (dwarf2_read_index): Likewise.
12259 (dw2_find_last_source_symtab): Likewise.
12260 (dw2_map_symtabs_matching_filename): Likewise.
12261 (dw2_symtab_iter_next): Likewise.
12262 (dw2_print_stats): Likewise.
12263 (dw2_expand_all_symtabs): Likewise.
12264 (dw2_expand_symtabs_with_fullname): Likewise.
12265 (dw2_expand_marked_cus): Likewise.
12266 (dw2_map_symbol_filenames): Likewise.
12267 (create_cus_from_debug_names): Likewise.
12268 (dwarf2_read_debug_names): Likewise.
12269 (dw2_debug_names_iterator::next): Likewise.
12270 (dwarf2_initialize_objfile): Likewise.
12271 (set_partial_user): Likewise.
12272 (dwarf2_build_psymtabs_hard): Likewise.
12273 (read_comp_units_from_section): Remove arguments, adjust to
12274 std::vector change.
12275 (create_all_comp_units): Adjust to std::vector and
12276 read_comp_units_from_section changes.
12277 (dwarf2_find_containing_comp_unit): Adjust to std::vector
12279 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12280 (psyms_seen_size): Likewise.
12281 (write_gdbindex): Likewise.
12282 (write_debug_names): Likewise.
12284 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12286 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
12287 with dwarf2_per_objfile.
12288 (create_cus_from_index): Likewise.
12289 (create_signatured_type_table_from_index): Likewise.
12290 (dwarf2_read_index): Likewise.
12291 (dwarf2_initialize_objfile): Likewise.
12292 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
12293 per_cu rather than get_dwarf2_per_objfile.
12295 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12297 * dwarf2read.h (struct signatured_type): Forward declare.
12298 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
12300 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
12301 (dw2_get_cutu): ...this.
12302 (dwarf2_per_objfile::get_cu): Rename from...
12303 (dw2_get_cu): ...this.
12304 (dwarf2_per_objfile::get_tu): New.
12305 (create_addrmap_from_index): Adjust.
12306 (create_addrmap_from_aranges): Adjust.
12307 (dw2_find_last_source_symtab): Adjust.
12308 (dw2_map_symtabs_matching_filename): Adjust.
12309 (dw2_symtab_iter_next): Adjust.
12310 (dw2_print_stats): Adjust.
12311 (dw2_expand_all_symtabs): Adjust.
12312 (dw2_expand_symtabs_with_fullname): Adjust.
12313 (dw2_expand_marked_cus): Adjust.
12314 (dw_expand_symtabs_matching_file_matcher): Adjust.
12315 (dw2_map_symbol_filenames): Adjust.
12316 (dw2_debug_names_iterator::next): Adjust.
12317 (dwarf2_initialize_objfile): Adjust.
12318 (set_partial_user): Adjust.
12319 (dwarf2_build_psymtabs_hard): Adjust.
12321 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12323 * dwarf2read.c (create_signatured_type_table_from_debug_names):
12324 Remove unused variables.
12325 (dw2_map_symtabs_matching_filename): Likewise.
12326 (dwarf2_record_block_ranges): Likewise.
12327 (dwarf2_read_addr_index): Likewise.
12328 (follow_die_offset): Likewise.
12330 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12332 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
12333 to symbol_file_add_main.
12335 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12338 * mi/mi-console.c (do_fputc_async_safe): New.
12339 (mi_console_file::write_async_safe): New.
12340 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
12341 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
12343 * ui-file.c (ui_file::putstrn): Adjust call to
12344 fputstrn_unfiltered.
12345 * utils.c (printchar): Replace do_fputs and do_fprintf
12346 parameters by do_fputc.
12347 (fputstr_filtered): Adjust call to printchar.
12348 (fputstr_unfiltered): Likewise.
12349 (fputstrn_filtered): Likewise.
12350 (fputstrn_unfiltered): Add do_fputc parameter, pass to
12352 * utils.h (do_fputc_ftype): New typedef.
12353 (fputstrn_unfiltered): Add do_fputc parameter.
12355 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12357 * regformats/i386/i386-avx.dat: Remove.
12359 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12362 * amd64-tdep.c (amd64_none_init_abi): New function.
12363 (amd64_x32_none_init_abi): New function.
12364 (_initialize_amd64_tdep): Register handlers for x86-64 and
12365 x64_32 with GDB_OSABI_NONE.
12366 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
12367 GDB_OSABI_NONE osabi.
12369 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12372 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
12374 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
12375 * osabi.c (gdb_osabi_names): Add "unknown" entry.
12377 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12379 * common/byte-vector.h (char_vector): New type.
12380 * target.h (target_read_alloc): Return
12381 gdb::optional<byte_vector>.
12382 (target_read_stralloc): Return gdb::optional<char_vector>.
12383 (target_get_osdata): Return gdb::optional<char_vector>.
12384 * target.c (target_read_alloc_1): Templatize. Replacement
12385 manual memory management with vector.
12386 (target_read_alloc): Change return type, adjust.
12387 (target_read_stralloc): Change return type, adjust.
12388 (target_get_osdata): Change return type, adjust.
12389 * auxv.c (struct auxv_info) <length>: Remove.
12390 <data>: Change type to gdb::optional<byte_vector>.
12391 (auxv_inferior_data_cleanup): Free auxv_info with delete.
12392 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
12393 (target_auxv_search): Adjust.
12394 (fprint_target_auxv): Adjust.
12395 * avr-tdep.c (avr_io_reg_read_command): Adjust.
12396 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
12397 (linux_make_corefile_notes): Adjust.
12398 * osdata.c (get_osdata): Adjust.
12399 * remote.c (remote_get_threads_with_qxfer): Adjust.
12400 (remote_memory_map): Adjust.
12401 (remote_traceframe_info): Adjust.
12402 (btrace_read_config): Adjust.
12403 (remote_read_btrace): Adjust.
12404 (remote_pid_to_exec_file): Adjust.
12405 * solib-aix.c (solib_aix_get_library_list): Adjust.
12406 * solib-dsbt.c (decode_loadmap): Don't free buf.
12407 (dsbt_get_initial_loadmaps): Adjust.
12408 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
12409 * solib-target.c (solib_target_current_sos): Adjust.
12410 * tracepoint.c (sdata_make_value): Adjust.
12411 * xml-support.c (xinclude_start_include): Adjust.
12412 (xml_fetch_content_from_file): Adjust.
12413 * xml-support.h (xml_fetch_another): Change return type.
12414 (xml_fetch_content_from_file): Change return type.
12415 * xml-syscall.c (xml_init_syscalls_info): Adjust.
12416 * xml-tdesc.c (file_read_description_xml): Adjust.
12417 (fetch_available_features_from_target): Change return type.
12418 (target_fetch_description_xml): Adjust.
12419 (target_read_description_xml): Adjust.
12421 2018-04-06 Tom Tromey <tom@tromey.com>
12423 * value.c (~value): Update.
12424 (struct value) <contents>: Now unique_xmalloc_ptr.
12425 (value_contents_bits_eq, allocate_value_contents)
12426 (value_contents_raw, value_contents_all_raw)
12427 (value_contents_for_printing, value_contents_for_printing_const)
12428 (set_value_enclosing_type): Update.
12430 2018-04-06 Tom Tromey <tom@tromey.com>
12432 * value.c (range_s): Remove typedef, VEC.
12433 (struct range): Add operator<.
12434 (range_lessthan): Remove.
12435 (ranges_contain): Change type.
12437 (struct value) <unavailable, optimized_out>: Now std::vector.
12438 (value_entirely_available)
12439 (value_entirely_covered_by_range_vector)
12440 (value_entirely_unavailable, value_entirely_optimized_out):
12442 (insert_into_bit_range_vector): Change argument type.
12443 (find_first_range_overlap): Likewise.
12444 (struct ranges_and_idx, value_contents_bits_eq)
12445 (require_not_optimized_out, require_available): Update.
12446 (ranges_copy_adjusted): Change argument types.
12447 (value_optimized_out, value_copy, value_fetch_lazy): Update.
12449 2018-04-06 Tom Tromey <tom@tromey.com>
12451 * value.c (~value): Update.
12452 (struct value) <parent>: Now a value_ref_ptr.
12453 (value_parent, set_value_parent, value_address, value_copy):
12456 2018-04-06 Tom Tromey <tom@tromey.com>
12458 * value.c (struct value): Add constructor, destructor, and member
12460 (allocate_value_lazy, value_decref): Update.
12462 2018-04-06 Tom Tromey <tom@tromey.com>
12464 * value.c (struct value) <released, next>: Remove.
12465 (all_values): Now a std::vector.
12466 (allocate_value_lazy): Update.
12467 (value_next): Remove.
12468 (value_mark, value_free_to_mark, release_value)
12469 (value_release_to_mark): Update.
12471 2018-04-06 Tom Tromey <tom@tromey.com>
12473 * value.h (fetch_subexp_value, value_release_to_mark): Update.
12474 (free_value_chain): Remove.
12475 * value.c (free_value_chain): Remove.
12476 (value_release_to_mark): Return a std::vector.
12477 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
12479 (check_condition): Update.
12480 * eval.c (fetch_subexp_value): Change "val_chain" to a
12482 * breakpoint.c (update_watchpoint): Update.
12483 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
12485 2018-04-06 Tom Tromey <tom@tromey.com>
12487 * value.h (free_all_values): Remove.
12488 * value.c (free_all_values): Remove.
12490 2018-04-06 Tom Tromey <tom@tromey.com>
12492 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
12493 (value_history_chain, value_history_count): Remove.
12494 (value_history): New global.
12495 (record_latest_value, access_value_history, show_values)
12496 (preserve_values): Update.
12498 2018-04-06 Tom Tromey <tom@tromey.com>
12500 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
12501 * varobj.c (varobj_set_display_format, varobj_set_value)
12502 (install_default_visualizer, construct_visualizer)
12503 (install_new_value, ~varobj, varobj_get_value_type)
12504 (my_value_of_variable, varobj_editable_p): Update.
12505 * c-varobj.c (c_describe_child, c_value_of_variable)
12506 (cplus_number_of_children, cplus_describe_child): Update.
12507 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
12508 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
12509 (ada_value_of_variable, ada_value_is_changeable_p): Update.
12511 2018-04-06 Tom Tromey <tom@tromey.com>
12513 * printcmd.c (last_examine_address): Change type to
12515 (do_examine, x_command): Update.
12517 2018-04-06 Tom Tromey <tom@tromey.com>
12519 * value.c (release_value): Update.
12520 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
12521 (struct bpstats) <val>: Now a value_ref_ptr.
12522 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12523 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12524 (~watchpoint, print_it_watchpoint, watch_command_1)
12525 (invalidate_bp_value_on_memory_change): Update.
12527 2018-04-06 Tom Tromey <tom@tromey.com>
12529 * varobj.c (varobj_clear_saved_item)
12530 (update_dynamic_varobj_children, install_new_value, ~varobj):
12532 * value.h (value_incref): Move declaration earlier.
12533 (value_decref): Rename from value_free.
12534 (struct value_ref_policy): New.
12535 (value_ref_ptr): New typedef.
12536 (struct value_deleter): Remove.
12537 (gdb_value_up): Remove typedef.
12538 (release_value): Change return type.
12539 (release_value_or_incref): Remove.
12540 * value.c (set_value_parent): Update.
12541 (value_incref): Change return type.
12542 (value_decref): Rename from value_free.
12543 (value_free_to_mark, free_all_values, free_value_chain): Update.
12544 (release_value): Return value_ref_ptr.
12545 (release_value_or_incref): Remove.
12546 (record_latest_value, set_internalvar, clear_internalvar):
12548 * stack.c (info_frame_command): Don't call value_free.
12549 * python/py-value.c (valpy_dealloc, valpy_new)
12550 (value_to_value_object): Update.
12551 * printcmd.c (do_examine): Update.
12552 * opencl-lang.c (lval_func_free_closure): Update.
12553 * mi/mi-main.c (register_changed_p): Don't call value_free.
12554 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
12555 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
12556 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
12558 * guile/scm-value.c (vlscm_free_value_smob)
12559 (vlscm_scm_from_value): Update.
12560 * frame.c (frame_register_unwind, frame_unwind_register_signed)
12561 (frame_unwind_register_unsigned, get_frame_register_bytes)
12562 (put_frame_register_bytes): Don't call value_free.
12563 * findvar.c (address_from_register): Don't call value_free.
12564 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
12565 * dwarf2loc.c (entry_data_value_free_closure)
12566 (value_of_dwarf_reg_entry, free_pieced_value_closure)
12567 (dwarf2_evaluate_loc_desc_full): Update.
12568 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12569 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12570 (~watchpoint, watch_command_1)
12571 (invalidate_bp_value_on_memory_change): Update.
12572 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
12574 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
12577 * warning.m4: Add -Wno-error=deprecated-register.
12578 * configure: Re-generate.
12580 2018-04-05 Tom Tromey <tom@tromey.com>
12582 * linespec.h: Remove include of "vec.h".
12584 2018-04-05 Tom Tromey <tom@tromey.com>
12586 * linespec.c (typep): Remove typedef.
12587 (find_methods, find_superclass_methods): Take a std::vector.
12588 (find_method): Use std::vector.
12590 2018-04-05 Tom Tromey <tom@tromey.com>
12592 * utils.c (compare_strings): Remove.
12593 * utils.h (compare_strings): Remove.
12594 * objc-lang.h (find_imps): Update.
12595 * objc-lang.c (find_methods): Take a std::vector.
12596 (uniquify_strings, find_imps): Likewise.
12597 * linespec.c (find_methods): Take a std::vector.
12598 (decode_objc): Use std::vector.
12599 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
12601 (find_method, find_function_symbols): Use std::vector.
12603 2018-04-05 Tom Tromey <tom@tromey.com>
12605 * completer.c (completion_tracker::completion_tracker): Remove
12607 (completion_tracker::discard_completions): Likewise.
12608 * breakpoint.c (ambiguous_names_p): Remove cast.
12609 * ada-lang.c (_initialize_ada_language): Remove cast.
12610 * utils.h (streq): Update.
12611 (streq_hash): Add new declaration.
12612 * utils.c (streq): Return bool.
12613 (streq_hash): New function.
12615 2018-04-05 Tom Tromey <tom@tromey.com>
12617 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
12618 Remove a string copy.
12620 2018-04-05 Tom Tromey <tom@tromey.com>
12622 * linespec.c (filter_results): Use std::vector.
12623 (decode_line_2, decode_line_full): Update.
12625 2018-04-05 Tom Tromey <tom@tromey.com>
12627 * linespec.c (canonical_to_fullform): Return std::string.
12628 (filter_results): Update.
12629 (struct decode_line_2_item): Add constructor.
12630 <fullform, displayform>: Now std::string.
12631 (decode_line_2_compare_items): Now a std::sort comparator.
12632 (decode_line_2): Update.
12634 2018-04-05 Tom Tromey <tom@tromey.com>
12636 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
12637 (unexpected_linespec_error): Update.
12638 (linespec_parse_basic, parse_linespec): Update.
12640 2018-04-05 Tom Tromey <tom@tromey.com>
12642 * linespec.c (linespec_parse_basic): Reindent.
12644 2018-04-05 Tom Tromey <tom@tromey.com>
12646 * minsyms.h (iterate_over_minimal_symbols): Update.
12647 * minsyms.c (iterate_over_minimal_symbols): Take a
12648 gdb::function_view.
12649 * linespec.c (struct collect_minsyms): Remove.
12650 (compare_msyms): Now a std::sort comparator.
12651 (add_minsym): Add parameters.
12652 (search_minsyms_for_name): Update. Use std::vector.
12654 2018-04-03 Tom Tromey <tom@tromey.com>
12656 * mipsread.c (read_alphacoff_dynamic_symtab): Use
12659 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
12661 * MAINTAINERS (Write After Approval): Add Weimin Pan.
12663 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
12666 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
12667 printing static type.
12669 2018-04-01 Tom Tromey <tom@tromey.com>
12671 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
12672 (rs6000_xfer_shared_libraries): Update.
12674 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12676 * common/gdb_vecs.h (char_ptr): Remove.
12677 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
12679 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12681 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
12683 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
12685 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12687 * tracepoint.h (struct uploaded_tp): Initialize fields.
12688 <actions, step_actions, cmd_strings>: Change type to
12689 std::vector<char *>.
12690 * tracepoint.c (get_uploaded_tp): Allocate with new.
12691 (free_uploaded_tps): Free with delete.
12692 (parse_tracepoint_definition): Adjust to std::vector change.
12693 * breakpoint.c (read_uploaded_action): Likewise.
12694 (create_tracepoint_from_upload): Likewise.
12695 * ctf.c (ctf_write_uploaded_tp): Likewise.
12696 (SET_ARRAY_FIELD): Likewise.
12697 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
12699 2018-03-30 Tom Tromey <tom@tromey.com>
12701 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
12703 (svr4_keep_data_in_core): Update.
12704 (svr4_read_so_list): Update.
12706 2018-03-30 Tom Tromey <tom@tromey.com>
12708 * windows-nat.c (handle_output_debug_string, handle_exception):
12710 * target.h (target_read_string): Update.
12711 * target.c (target_read_string): Change "string" to
12712 unique_xmalloc_ptr.
12713 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
12715 * solib-frv.c (frv_current_sos): Update.
12716 * solib-dsbt.c (dsbt_current_sos): Update.
12717 * solib-darwin.c (darwin_current_sos): Update.
12718 * linux-thread-db.c (inferior_has_bug): Update.
12719 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
12720 Update. Remove alloca.
12721 * ada-lang.c (ada_main_name): Update.
12723 2018-03-30 Tom Tromey <tom@tromey.com>
12725 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
12726 (struct dwo_file_deleter): New.
12727 (dwo_file_up): New typedef.
12728 (open_and_init_dwo_file): Use dwo_file_up.
12729 (free_dwo_file_cleanup): Remove.
12731 2018-03-30 Tom Tromey <tom@tromey.com>
12733 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
12734 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
12736 2018-03-30 Tom Tromey <tom@tromey.com>
12738 * dwarf2read.c (class free_cached_comp_units): New class.
12739 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
12740 (free_cached_comp_units): Remove function.
12742 2018-03-30 Tom Tromey <tom@tromey.com>
12744 * utils.h (make_cleanup_unpush_target): Remove.
12745 * inf-ptrace.c (struct target_unpusher): New.
12746 (target_unpush_up) New typedef.
12747 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
12749 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
12751 2018-03-27 Tom Tromey <tom@tromey.com>
12753 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
12755 2018-03-27 Pedro Alves <palves@redhat.com>
12756 Tom Tromey <tom@tromey.com>
12758 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
12759 destructor. Now a class.
12760 (gdb_readline_wrapper_cleanup): Remove function.
12761 (gdb_readline_wrapper): Remove cleanups.
12763 2018-03-27 Tom Tromey <tom@tromey.com>
12765 * typeprint.h (struct type_print_options) <local_typedefs,
12766 global_typedefs>: Remove "struct" keyword.
12767 (class typedef_hash_table): New class.
12768 (recursively_update_typedef_hash, add_template_parameters)
12769 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
12770 (find_typedef_in_hash): Don't declare.
12771 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
12772 (typedef_hash_table::recursively_update): Rename from
12773 recursively_update_typedef_hash. Now a member.
12774 (typedef_hash_table::add_template_parameters): Rename from
12775 add_template_parameters. Now a member.
12776 (typedef_hash_table::typedef_hash_table): Now a constructor;
12777 rename from create_typedef_hash.
12778 (typedef_hash_table::~typedef_hash_table): Now a destructor;
12779 rename from free_typedef_hash.
12780 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
12781 (do_free_global_table): Remove.
12782 (typedef_hash_table::typedef_hash_table): New constructor; renamed
12783 from copy_type_recursive.
12784 (create_global_typedef_table): Remove.
12785 (typedef_hash_table::find_global_typedef): Now a member of
12786 typedef_hash_table.
12787 (typedef_hash_table::find_typedef): Rename from
12788 find_typedef_in_hash; now a member.
12789 (whatis_exp): Update.
12790 * extension.h (struct ext_lang_type_printers): Add constructor and
12792 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
12794 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
12795 Now a constructor; rename from start_ext_lang_type_printers.
12796 (ext_lang_type_printers): Now a destructor; rename from
12797 free_ext_lang_type_printers.
12798 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
12800 (c_type_print_base_struct_union): Update. Remove cleanups.
12802 2018-03-27 Tom Tromey <tom@tromey.com>
12804 * dwarf-index-write.c: Include <cmath>.
12806 2018-03-27 Joel Brobecker <brobecker@adacore.com>
12808 * NEWS: Add entry describing new "set|show varsize-limit" command.
12809 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
12811 * printcmd.c (_initialize_printcmd): Add "set var" alias of
12814 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
12816 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
12817 dwarf-index-write.c
12818 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
12819 * dwarf-index-common.c: New file.
12820 * dwarf-index-common.h: New file.
12821 * dwarf-index-write.c: New file.
12822 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
12823 (struct dwarf2_section_info): Move from here.
12824 (dwarf2_section_info_def): Likewise.
12825 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
12826 (offset_type): Likewise.
12827 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
12828 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
12829 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
12830 (byte_swap): Likewise.
12831 (MAYBE_SWAP): Likewise.
12832 (dwarf2_per_cu_ptr): Likewise.
12833 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
12834 (struct tu_stats): Likewise.
12835 (struct dwarf2_per_objfile): Likewise.
12836 (struct dwarf2_per_cu_data): Likewise.
12837 (struct signatured_type): Likewise.
12838 (sig_type_ptr): Likewise.
12839 (DEF_VEC_P (sig_type_ptr)): Likewise.
12840 (INDEX4_SUFFIX): Likewise.
12841 (INDEX5_SUFFIX): Likewise.
12842 (DEBUG_STR_SUFFIX): Likewise.
12843 (dwarf2_read_section): Make non-static.
12844 (mapped_index_string_hash): Move from here.
12845 (dwarf5_djb_hash): Likewise.
12846 (file_write): Likewise.
12847 (class data_buf): Likewise.
12848 (struct symtab_index_entry): Likewise.
12849 (struct mapped_symtab): Likewise.
12850 (find_slot): Likewise.
12851 (hash_expand): Likewise.
12852 (add_index_entry): Likewise.
12853 (uniquify_cu_indices): Likewise.
12854 (class c_str_view): Likewise.
12855 (class c_str_view_hasher): Likewise.
12856 (class vector_hasher): Likewise.
12857 (write_hash_table): Likewise.
12858 (psym_index_map): Likewise.
12859 (struct addrmap_index_data): Likewise.
12860 (add_address_entry): Likewise.
12861 (add_address_entry_worker): Likewise.
12862 (write_address_map): Likewise.
12863 (symbol_kind): Likewise.
12864 (write_psymbols): Likewise.
12865 (struct signatured_type_index_data): Likewise.
12866 (write_one_signatured_type): Likewise.
12867 (recursively_count_psymbols): Likewise.
12868 (recursively_write_psymbols): Likewise.
12869 (class debug_names): Likewise.
12870 (check_dwarf64_offsets): Likewise.
12871 (psyms_seen_size): Likewise.
12872 (write_gdbindex): Likewise.
12873 (write_debug_names): Likewise.
12874 (assert_file_size): Likewise.
12875 (write_psymtabs_to_index): Likewise.
12876 (save_gdb_index_command): Likewise.
12877 (_initialize_dwarf2_read): Don't register the "save gdb-index"
12879 * dwarf2read.h: New file.
12881 2018-03-27 Joel Brobecker <brobecker@adacore.com>
12884 * dwarf2read.c (dwarf2_physname): Do not return the demangled
12885 symbol name if the CU's language stores symbol names in linkage
12887 * language.h (struct language_defn)
12888 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
12889 all instances of this struct.
12891 2018-03-26 Tom Tromey <tom@tromey.com>
12893 * stack.c (backtrace_command_1): Remove verbose code.
12895 2018-03-26 Tom Tromey <tom@tromey.com>
12897 * python/py-framefilter.c (py_print_type): Don't catch
12898 exceptions. Return void.
12899 (py_print_value): Likewise.
12900 (py_print_single_arg): Likewise.
12901 (enumerate_args): Don't catch exceptions.
12902 (py_print_args): Likewise.
12903 (py_print_frame): Likewise.
12904 (gdbpy_apply_frame_filter): Catch exceptions here.
12906 2018-03-26 Tom Tromey <tom@tromey.com>
12908 * stack.c (_initialize_stack): Remove trailing newlines from help
12909 text. Add "Usage" line to "backtrace" help.
12911 2018-03-26 Tom Tromey <tom@tromey.com>
12914 * python/py-framefilter.c (py_print_args): Call wrap_hint.
12916 2018-03-26 Tom Tromey <tom@tromey.com>
12918 * python/py-framefilter.c (py_print_single_arg): Return
12919 EXT_LANG_BT_ERROR from catch.
12921 2018-03-26 Tom Tromey <tom@tromey.com>
12923 PR backtrace/15584:
12924 * stack.c (backtrace_command_1): Move some code into no-filters
12927 2018-03-26 Tom Tromey <tom@tromey.com>
12929 * python/py-framefilter.c (throw_quit_or_print_exception): New
12931 (gdbpy_apply_frame_filter): Use it.
12933 2018-03-26 Tom Tromey <tom@tromey.com>
12936 * python/py-framefilter.c (py_print_type, py_print_value)
12937 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
12940 2018-03-26 Tom Tromey <tom@tromey.com>
12942 * python/py-framefilter.c (enumerate_args): Use
12943 gdb::unique_xmalloc_ptr.
12945 2018-03-26 Tom Tromey <tom@tromey.com>
12947 * python/py-framefilter.c (py_print_frame): Return
12949 (gdbpy_apply_frame_filter): Update comment.
12950 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
12952 <EXT_LANG_BT_NO_FILTERS>: Change value.
12954 2018-03-26 Tom Tromey <tom@tromey.com>
12956 PR backtrace/15582:
12957 * stack.c (backtrace_command): Parse "hide" argument.
12958 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
12959 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
12962 2018-03-26 Tom Tromey <tom@tromey.com>
12964 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
12966 (backtrace_command): Remove "fulltrace", add "flags".
12968 2018-03-26 Tom Tromey <tom@tromey.com>
12970 * stack.c (backtrace_command): Rewrite command line parsing.
12972 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12974 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
12976 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12978 * filename-seen-cache.h: Add include guard.
12980 2018-03-26 Keith Seitz <keiths@redhat.com>
12982 * symfile.c (place_section): Remove "struct" from section_addr_info
12984 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
12985 "struct" keyword from section_addr_info.
12987 2018-03-26 Alan Hayward <alan.hayward@arm.com>
12989 * regformats/regdef.h (reg): Add constructors.
12991 2018-03-25 Pedro Alves <palves@redhat.com>
12993 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
12994 if then/else bodies in var_func_name extraction.
12996 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
12998 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
12999 lookup_minimal_symbol() to find symbol entry.
13000 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
13002 2018-03-23 Keith Seitz <keiths@redhat.com>
13005 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
13006 nested type definitions for C++, too.
13008 2018-03-23 Tom Tromey <tom@tromey.com>
13010 * machoread.c (struct oso_el): Add a constructor. Don't define as
13012 (macho_register_oso): Remove.
13013 (macho_symtab_read): Take a std::vector.
13014 (oso_el_compare_name): Now a std::sort comparator.
13015 (macho_symfile_read_all_oso): Take a std::vector.
13016 (macho_symfile_read): Use std::vector. Remove cleanups.
13018 2018-03-22 Tom Tromey <tom@tromey.com>
13020 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
13021 (record_full_goto_bookmark): Use std::string.
13023 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13026 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
13029 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13031 * rs6000-tdep.c (store_insn_p): New function.
13032 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
13033 and cr_reg to their unshifted values. Use store_insn_p to
13034 match LR saves using either R1 or fdata->alloca_reg. Use
13035 store_insn_p to match CR saves. Set alloca_reg_offset
13036 when alloca_reg and framep are set. Remove lr_reg shift
13037 when assigning to fdata->lr_register.
13039 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
13041 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
13042 command line args instead of emitting a warning.
13044 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13046 * tracepoint.h (struct static_tracepoint_marker): Initialize
13047 fields, define default constructor, move constructor and move
13048 assignment, disable the rest.
13049 <str_id, extra>: Make std::string.
13050 (release_static_tracepoint_marker): Remove.
13051 (free_current_marker): Remove.
13052 * tracepoint.c (free_current_marker): Remove.
13053 (parse_static_tracepoint_marker_definition): Adjust to
13054 std::string, use new hex2str overload.
13055 (release_static_tracepoint_marker): Remove.
13056 (print_one_static_tracepoint_marker): Get marker by reference
13057 and adjust to std::string.
13058 (info_static_tracepoint_markers_command): Adjust to std::vector
13060 * target.h (static_tracepoint_marker_p): Remove typedef.
13061 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
13062 (struct target_ops) <to_static_tracepoint_marker_at>: Return
13064 <to_static_tracepoint_markers_by_strid>: Return std::vector.
13066 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
13067 (target_debug_print_std_vector_static_tracepoint_marker): New.
13068 (target_debug_print_struct_static_tracepoint_marker_p): Rename
13070 (target_debug_print_static_tracepoint_marker_p): ... this.
13071 * target-delegates.c: Re-generate.
13072 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
13074 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
13075 (decode_static_tracepoint_spec): Adjust to std::vector.
13076 (tracepoint_print_one_detail): Adjust to std::string.
13077 (strace_marker_decode_location): Adjust to std::string.
13078 (update_static_tracepoint): Adjust to std::string, remove call
13079 to release_static_tracepoint_marker.
13080 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
13081 Adjust to std::vector.
13082 * remote.c (remote_static_tracepoint_marker_at): Return bool.
13083 (remote_static_tracepoint_markers_by_strid): Adjust to
13085 * common/rsp-low.h (hex2str): New overload with explicit count
13087 * common/rsp-low.c (hex2str): New overload with explicit count
13089 * unittests/rsp-low-selftests.c (test_hex2str): New function.
13090 (_initialize_rsp_low_selftests): Add test_hex2str test.
13091 * unittests/tracepoint-selftests.c
13092 (test_parse_static_tracepoint_marker_definition): Adjust to
13095 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13097 * tracepoint.c (parse_static_tracepoint_marker_definition):
13098 Consider case where the definition is followed by more
13100 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13101 tracepoint-selftests.c.
13102 * unittests/tracepoint-selftests.c: New.
13104 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13106 * MAINTAINERS (Write After Approval): Add Pedro Franco de
13109 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13111 * symtab.c (find_pc_sect_line): fixed indentation.
13113 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13115 * symtab.c (find_pc_sect_line): now uses binary search.
13117 2018-03-19 Tom Tromey <tom@tromey.com>
13119 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
13120 "IDENT" production.
13122 2018-03-19 Pedro Alves <palves@redhat.com>
13123 Tom Tromey <tom@tromey.com>
13125 * unittests/observable-selftests.c: New file.
13126 * common/observable.h: New file.
13127 * observable.h: New file.
13128 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
13129 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
13130 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
13131 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
13132 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
13133 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
13134 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
13135 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
13136 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
13137 python/py-breakpoint.c, python/py-finishbreakpoint.c,
13138 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
13139 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
13140 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
13141 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
13142 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
13143 tui/tui-interp.c, valops.c: Update all users.
13144 * tui/tui-hooks.c (tui_bp_created_observer)
13145 (tui_bp_deleted_observer, tui_bp_modified_observer)
13146 (tui_inferior_exit_observer, tui_before_prompt_observer)
13147 (tui_normal_stop_observer, tui_register_changed_observer):
13149 (tui_observers_token): New global.
13150 (attach_or_detach, tui_attach_detach_observers): New functions.
13151 (tui_install_hooks, tui_remove_hooks): Use
13152 tui_attach_detach_observers.
13153 * record-btrace.c (record_btrace_thread_observer): Remove.
13154 (record_btrace_thread_observer_token): New global.
13155 * observer.sh: Remove.
13156 * observer.c: Rename to observable.c.
13157 * observable.c (namespace gdb_observers): Define new objects.
13158 (observer_debug): Move into gdb_observers namespace.
13159 (struct observer, struct observer_list, xalloc_observer_list_node)
13160 (xfree_observer_list_node, generic_observer_attach)
13161 (generic_observer_detach, generic_observer_notify): Remove.
13162 (_initialize_observer): Update.
13163 Don't include observer.inc.
13164 * Makefile.in (generated_files): Remove observer.h, observer.inc.
13165 (clean mostlyclean): Likewise.
13166 (observer.h, observer.inc): Remove targets.
13167 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
13168 (COMMON_SFILES): Use observable.c, not observer.c.
13169 * .gitignore: Remove observer.h.
13171 2018-03-18 Tom Tromey <tom@tromey.com>
13173 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
13175 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
13177 2018-03-17 Tom Tromey <tom@tromey.com>
13179 * auto-load.c (auto_load_objfile_script_1): Use std::string.
13181 2018-03-17 Tom Tromey <tom@tromey.com>
13183 * target.c (class scoped_target_fd): New.
13184 (target_fileio_close_cleanup): Remove.
13185 (target_fileio_read_alloc_1): Use scoped_target_fd.
13187 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
13189 * silent-rules.mk: New.
13190 * Makefile.in: Include silent-rules.mk
13191 (srcdir, VPATH, top_srcdir): Move up.
13192 (COMPILE): Add ECHO_CXX.
13193 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
13194 (init.c): Add ECHO_INIT_C.
13195 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
13196 (version.c): Add ECHO_GEN.
13197 (printcmd.o): Add ECHO_CXX.
13198 (target-float.o): Add ECHO_CXX.
13199 (ada-exp.o): Add ECHO_CXX.
13200 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
13201 (insight$(EXEEXT)): Add ECHO_CXXLD.
13202 * gnulib/configure.ac: Add AM_SILENT_RULES.
13203 * gnulib/aclocal.m4: Re-generate.
13204 * gnulib/configure: Re-generate.
13205 * gnulib/import/Makefile.in: Re-generate.
13207 2018-03-16 Tom Tromey <tom@tromey.com>
13209 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
13210 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
13211 * utils.c (do_free_section_addr_info)
13212 (make_cleanup_free_section_addr_info): Remove.
13213 * symfile.h (struct other_sections): Add constructor.
13214 (struct section_addr_info): Remove.
13215 (section_addr_info): New typedef.
13216 (struct sym_fns) <sym_offsets>: Change type of parameter.
13217 (build_section_addr_info_from_objfile)
13218 (relative_addr_info_to_section_offsets, addr_info_make_relative)
13219 (default_symfile_offsets, symbol_file_add)
13220 (symbol_file_add_from_bfd)
13221 (build_section_addr_info_from_section_table): Update.
13222 (alloc_section_addr_info, free_section_addr_info): Don't declare.
13223 * symfile.c (alloc_section_addr_info): Remove.
13224 (build_section_addr_info_from_section_table): Change return type.
13226 (build_section_addr_info_from_bfd)
13227 (build_section_addr_info_from_objfile): Likewise.
13228 (free_section_addr_info): Remove.
13229 (relative_addr_info_to_section_offsets): Change type of "addrs".
13230 (addrs_section_compar): Now a std::sort comparator.
13231 (addrs_section_sort): Change return type.
13232 (addr_info_make_relative): Change type of "addrs". Update.
13233 (default_symfile_offsets, syms_from_objfile_1)
13234 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
13235 (symbol_file_add_separate): Update.
13236 (symbol_file_add): Change type of "addrs". Update.
13237 (add_symbol_file_command): Update. Remove cleanups.
13238 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
13240 * symfile-debug.c (debug_sym_offsets): Change type of "info".
13241 * solib.c (solib_read_symbols): Update.
13242 * objfiles.c (objfile_relocate): Update. Remove cleanups.
13243 * machoread.c (macho_symfile_offsets): Update.
13244 * jit.c (jit_bfd_try_read_symtab): Update.
13246 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
13248 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13249 unittests/utils-selftests.c.
13250 * unittests/utils-selftests.c: New file.
13252 2018-03-14 Tom Tromey <tom@tromey.com>
13255 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
13258 2018-03-14 Tom Tromey <tom@tromey.com>
13261 * printcmd.c (printf_pointer): Allow "-" in format.
13263 2018-03-14 Tom Tromey <tom@tromey.com>
13265 * printcmd.c (_initialize_printcmd): Add usage to printf.
13267 2018-03-14 Yao Qi <qiyao@sourceware.org>
13269 * MAINTAINERS: Update my email address.
13271 2018-03-13 Tom Tromey <tom@tromey.com>
13273 * machoread.c (macho_check_dsym): Change filenamep to a
13275 (macho_symfile_read): Update.
13276 * symfile.c (load_command): Use std::string.
13278 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
13280 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
13281 to error message string.
13282 (riscv_register_name): Use xsnprintf instead of sprintf.
13283 (riscv_insn::fetch_instruction): Use gdb_assert instead of
13285 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
13287 (riscv_push_dummy_call): Likewise.
13289 2018-03-12 Tom Tromey <tom@tromey.com>
13291 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
13292 Use gdb::byte_vector.
13293 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
13295 2018-03-12 Yao Qi <yao.qi@linaro.org>
13297 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
13298 parameter type to readable_regcache.
13299 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
13302 2018-03-11 Tom Tromey <tom@tromey.com>
13304 * dwarf2read.c (struct nextfield): Add initializers.
13305 (struct nextfnfield): Remove.
13306 (struct fnfieldlist): Add initializers. Remove "length" and
13307 "head", use std::vector.
13308 (struct decl_field_list): Remove.
13309 (struct field_info): Add initializers.
13310 <fields, baseclasses>: Now std::vector.
13311 <nbaseclasses, nfnfields, typedef_field_list_count,
13312 nested_types_list_count>: Remove.
13313 (dwarf2_add_field, dwarf2_add_type_defn)
13314 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
13315 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
13316 (process_structure_scope): Update.
13318 2018-03-11 Tom Tromey <tom@tromey.com>
13320 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
13321 for use by std::sort.
13322 (build_type_psymtabs_1): Use std::vector.
13324 2018-03-09 Eli Zaretskii <eliz@gnu.org>
13326 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
13327 and LIBMPFR in the printed configuration.
13329 2018-03-08 Tom Tromey <tom@tromey.com>
13331 * source.c (get_filename_and_charpos): Use scoped_fd.
13332 * nto-procfs.c (procfs_open_1): Use scoped_fd.
13333 (procfs_pidlist): Likewise.
13334 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
13335 (iterate_over_mappings): Likewise.
13337 2018-03-08 Tom Tromey <tom@tromey.com>
13339 * infcall.c (struct call_return_meta_info)
13340 <stack_temporaries_enabled>: Remove.
13341 (get_call_return_value, call_function_by_hand_dummy): Update.
13342 * thread.c (disable_thread_stack_temporaries): Remove.
13343 (enable_thread_stack_temporaries): Remove.
13344 (thread_stack_temporaries_enabled_p): Return bool.
13345 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
13346 (get_last_thread_stack_temporary): Update.
13347 * eval.c (evaluate_subexp): Update.
13348 * gdbthread.h (class enable_thread_stack_temporaries): Now a
13349 class, not a function.
13350 (value_ptr, value_vec): Remove typedefs.
13351 (class thread_info) <stack_temporaries_enabled>: Now bool.
13352 <stack_temporaries>: Now a std::vector.
13353 (thread_stack_temporaries_enabled_p)
13354 (value_in_thread_stack_temporaries): Return bool.
13356 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
13358 * remote.c (putpkt_binary): Fix omitted bytes reporting.
13359 (getpkt_or_notif_sane_1): Likewise.
13361 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13363 * build-id.c (build_id_to_debug_bfd): Use std::string.
13365 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13367 * build-id.c (find_separate_debug_file_by_buildid): Return
13369 * build-id.h (find_separate_debug_file_by_buildid): Return
13371 * coffread.c (coff_symfile_read): Adjust to std::string.
13372 * elfread.c (elf_symfile_read): Adjust to std::string.
13373 * symfile.c (separate_debug_file_exists): Change parameter to
13375 (find_separate_debug_file): Return std::string.
13376 (find_separate_debug_file_by_debuglink): Return std::string.
13377 * symfile.h (find_separate_debug_file_by_debuglink): Return
13380 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13382 * common/xml-utils.c (xml_escape_text): Move code to...
13383 (xml_escape_text_append): ... this new function.
13384 * common/xml-utils.h (xml_escape_text_append): New declaration.
13385 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
13387 (_initialize_xml_utils): register test_xml_escape_text_append as
13390 2018-03-07 Alan Hayward <alan.hayward@arm.com>
13392 * defs.h: Remove MAX_REGISTER_SIZE.
13393 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
13395 * python/py-unwind.c (pyuw_sniffer): Likewise.
13397 2018-03-07 Tom Tromey <tom@tromey.com>
13399 * linux-tdep.c (linux_info_proc): Update.
13400 * target.h (struct target_ops) <to_fileio_readlink>: Return
13402 (target_fileio_readlink): Return optional<string>.
13403 * remote.c (remote_hostio_readlink): Return optional<string>.
13404 * inf-child.c (inf_child_fileio_readlink): Return
13406 * target.c (target_fileio_readlink): Return optional<string>.
13408 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13410 * regcache.c (cooked_read_test): Add riscv to the list of
13411 architectures that have a save_reggroup.
13413 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
13415 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
13416 value is not a dynamic class object.
13418 2018-03-06 Tom Tromey <tom@tromey.com>
13420 * rust-exp.y: Formatting fixes.
13422 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13424 * riscv-tdep.c (riscv_register_name): Remove target description
13426 (riscv_gdbarch_init): Remove target description check.
13428 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13430 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
13432 * riscv-tdep.h: Likewise.
13434 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13436 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
13437 (riscv_pseudo_register_write): Delete.
13438 (riscv_gdbarch_init): Remove all use of pseudo registers.
13440 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13442 * record-btrace.c (btrace_print_lines): Replace cleanup
13443 parameter with RAII equivalents.
13444 (btrace_insn_history): Replace cleanup with RAII equivalents.
13445 * ui-out.h (make_cleanup_ui_out_list_begin_end,
13446 make_cleanup_ui_out_tuple_begin_end): Remove.
13447 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
13448 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
13449 make_cleanup_ui_out_list_begin_end): Remove.
13451 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13453 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
13454 parameter types to std::vector. Use bool.
13455 (record_btrace_wait): Replace VEC(tp_t) with
13456 std::vector<thread_info *>.
13457 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
13459 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13461 * record-btrace.c (record_btrace_disable_callback): Remove.
13462 (struct scoped_btrace_disable): New.
13463 (record_btrace_open): Use scoped_btrace_disable.
13465 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13467 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
13468 reading values from registers.
13470 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13472 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
13475 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13477 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
13478 change parameter type. Use GDB's print functions, and use
13479 core_addr_to_string where appropriate.
13480 (riscv_push_dummy_call): Use core_addr_to_string where
13481 appropriate, update call to riscv_print_arg_location, and reindent
13483 (riscv_return_value): Update call to riscv_print_arg_location.
13485 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13486 Tim Newsome <tim@sifive.com>
13487 Albert Ou <a0u@eecs.berkeley.edu>
13488 Darius Rad <darius@bluespec.com>
13490 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
13491 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
13492 (ALLDEPFILES): Add riscv-tdep.c
13493 * configure.tgt: Add riscv support.
13494 * riscv-tdep.c: New file.
13495 * riscv-tdep.h: New file.
13496 * NEWS: Mention new target.
13497 * MAINTAINERS: Add entry for riscv.
13499 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13501 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
13502 fields within aggregates.
13504 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
13506 * record-btrace.c (btrace_print_lines): Change type of flags to
13507 gdb_disassembly_flags.
13509 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13511 * fbsd-nat.c: Include "inf-ptrace.h".
13512 (USE_SIGTRAP_SIGINFO): Conditionally define.
13513 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
13514 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
13515 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
13517 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
13519 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
13521 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
13522 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
13523 "supports_stopped_by_hw_breakpoint" target methods.
13525 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13527 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
13528 * fbsd-nat.c (debug_fbsd_nat): New variable.
13529 (show_fbsd_nat_debug): New function.
13530 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
13531 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
13533 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13535 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
13536 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
13538 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
13539 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
13542 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13544 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
13545 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
13547 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13549 * charset.c (struct charset_vector): New.
13550 (charsets): Change type to charset_vector.
13551 (find_charset_names): Adjust.
13553 (_initialize_charset): Adjust.
13555 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13557 * progspace.h (struct program_space) <deleted_solibs>: Change
13558 type to std::vector<std::string>.
13559 * progspace.c (clear_program_space_solib_cache): Adjust.
13560 * breakpoint.c (print_solib_event): Adjust.
13561 (check_status_catch_solib): Adjust.
13562 * solib.c (update_solib_list): Adjust.
13563 * ui-out.h (class ui_out) <field_string>: New overload.
13564 * ui-out.c (ui_out::field_string): New overload.
13566 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13568 * progspace.h (struct program_space): Add constructor and
13569 destructor, initialize fields.
13570 (add_program_space): Remove.
13571 * progspace.c (add_program_space): Rename to...
13572 (program_space::program_space): ... this.
13573 (release_program_space): Rename to...
13574 (program_space::~program_space): ... this.
13575 (delete_program_space): Use delete to delete program_space.
13576 (initialize_progspace): Use new to allocate program_space.
13577 * inferior.c (add_inferior_with_spaces): Likewise.
13578 (clone_inferior_command): Likewise.
13579 * infrun.c (follow_fork_inferior): Likewise.
13580 (handle_vfork_child_exec_or_exit): Likewise.
13582 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13584 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
13585 (delim_string_to_char_ptr_vec): Return std::vector of
13586 gdb::unique_xmalloc_ptr.
13587 (dirnames_to_char_ptr_vec_append): Take std::vector of
13588 gdb::unique_xmalloc_ptr.
13589 (dirnames_to_char_ptr_vec): Return std::vector of
13590 gdb::unique_xmalloc_ptr.
13591 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
13592 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
13593 (delim_string_to_char_ptr_vec): Return an std::vector of
13594 gdb::unique_xmalloc_ptr, adjust the code.
13595 (dirnames_to_char_ptr_vec_append): Take an std::vector of
13596 gdb::unique_xmalloc_ptr, adjust the code.
13597 (dirnames_to_char_ptr_vec): Return an std::vector of
13598 gdb::unique_xmalloc_ptr, adjust the code.
13599 * auto-load.c (auto_load_safe_path_vec): Change type to
13600 std::vector of gdb::unique_xmalloc_ptr.
13601 (auto_load_expand_dir_vars): Return an std::vector of
13602 gdb::unique_xmalloc_ptr, adjust the code.
13603 (auto_load_safe_path_vec_update): Adjust.
13604 (filename_is_in_auto_load_safe_path_vec): Adjust.
13605 (auto_load_objfile_script_1): Adjust.
13606 * build-id.c (build_id_to_debug_bfd): Adjust.
13607 * linux-thread-db.c (thread_db_load_search): Adjust.
13608 * source.c (add_path): Adjust.
13610 * symfile.c (find_separate_debug_file): Adjust.
13611 * utils.c (do_free_char_ptr_vec): Remove.
13612 (make_cleanup_free_char_ptr_vec): Remove.
13614 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
13617 * common/pathstuff.c: Conditionally include "<windows.h>".
13619 2018-03-01 Georg Sauthoff <mail@georg.so>
13622 * gcore.in: Quote variables and switch interpreter to bash.
13624 2018-03-01 Tom Tromey <tom@tromey.com>
13626 * dwarf2read.c (alloc_discriminant_info): Fix default_index
13627 assertion. Add assertion for discriminant_index.
13628 (quirk_rust_enum): Use correct base type name in univariant case.
13630 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
13632 * record.c (get_call_history_modifiers): Return a
13633 record_print_flags.
13634 (cmd_record_call_history): Adjust.
13635 * record-btrace.c (record_btrace_call_history): Adjust.
13636 (record_btrace_call_history_range): Adjust.
13637 (record_btrace_call_history_from): Adjust.
13638 * target-debug.h (target_debug_print_record_print_flags): New.
13639 * target-delegates.c: Re-generate.
13640 * target.c (target_call_history): Change flags type.
13641 (target_call_history_from): Likewise.
13642 (target_call_history_range): Likewise.
13643 * target.h (struct target_ops) <target_call_history>: Likewise.
13644 (target_call_history_from): Likewise.
13645 (target_call_history_range): Likewise.
13647 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13648 Simon Marchi <simon.marchi@polymtl.ca>
13650 * common/common-utils.c: Include "sys/stat.h".
13651 (is_regular_file): Move here from "source.c"; change return
13653 * common/common-utils.h (is_regular_file): New prototype.
13654 * common/pathstuff.c (contains_dir_separator): New function.
13655 * common/pathstuff.h (contains_dir_separator): New prototype.
13656 * source.c: Don't include "sys/stat.h".
13657 (is_regular_file): Move to "common/common-utils.c".
13659 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13661 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
13662 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
13663 * auto-load.c: Include "common/pathstuff.h".
13664 * common/common-def.h (current_directory): Move here.
13665 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
13667 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
13669 * common/pathstuff.c: New file.
13670 * common/pathstuff.h: New file.
13671 * compile/compile.c: Include "common/pathstuff.h".
13672 * defs.h (current_directory): Move to "common/common-defs.h".
13673 * dwarf2read.c: Include "common/pathstuff.h".
13674 * exec.c: Likewise.
13675 * guile/scm-safe-call.c: Likewise.
13676 * linux-thread-db.c: Likewise.
13677 * main.c: Likewise.
13678 * nto-tdep.c: Likewise.
13679 * objfiles.c: Likewise.
13680 * source.c: Likewise.
13681 * symtab.c: Likewise.
13682 * utils.c: Include "common/pathstuff.h".
13683 (gdb_realpath): Move to "common/pathstuff.c".
13684 (gdb_realpath_keepfile): Likewise.
13685 (gdb_abspath): Likewise.
13686 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
13687 (gdb_realpath_keepfile): Likewise.
13688 (gdb_abspath): Likewise.
13690 2018-02-28 John Baldwin <jhb@FreeBSD.org>
13692 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
13693 wildcard process pid for super_resume for kernels with a
13696 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
13698 * compile/compile.c (get_args): Add additional comments
13699 explaining function.
13701 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
13702 Tom Tromey <tom@tromey.com>
13704 * target.h (memory_write_request_s): Remove typedef. Don't define
13706 (target_write_memory_blocks): Change argument to std::vector.
13707 (struct memory_write_request): Add constructor.
13708 * target-memory.c (compare_block_starting_address): Return bool.
13709 Change argument types.
13710 (claim_memory): Change arguments to use std::vector.
13711 (split_regular_and_flash_blocks, blocks_to_erase)
13712 (compute_garbled_blocks): Likewise.
13713 (cleanup_request_data, cleanup_write_requests_vector): Remove.
13714 (target_write_memory_blocks): Change argument to std::vector.
13715 * symfile.c (struct load_section_data): Add constructor and
13716 destructor. Use std::vector for "requests".
13717 (struct load_progress_data): Add initializers.
13718 (load_section_callback): Update. Use "new".
13719 (clear_memory_write_data): Remove.
13720 (generic_load): Update.
13722 2018-02-27 Alan Hayward <alan.hayward@arm.com>
13724 * arch/aarch64.h: Use common/tdesc.h.
13726 2018-02-26 Maciej W. Rozycki <macro@mips.com>
13728 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
13729 architecture with a 64-bit ABI.
13731 2018-02-26 Maciej W. Rozycki <macro@mips.com>
13733 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
13734 ahead of target description loading.
13736 2018-02-26 Tom Tromey <tom@tromey.com>
13738 * stack.c (backtrace_command_1): Update.
13739 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
13741 * python/py-framefilter.c (py_print_frame)
13742 (gdbpy_apply_frame_filter): Change type of "flags".
13743 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
13745 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
13746 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
13747 * extension.h (enum frame_filter_flag): Rename from
13748 frame_filter_flags.
13749 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
13750 (apply_ext_lang_frame_filter): Change type of "flags".
13751 * extension.c (apply_ext_lang_frame_filter): Change type of
13753 * extension-priv.h (struct extension_language_ops)
13754 <apply_frame_filter>: Change type of "flags".
13756 2018-02-26 Tom Tromey <tom@tromey.com>
13759 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
13760 off-by-one in py_end computation.
13761 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
13763 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
13766 2018-02-26 Tom Tromey <tom@tromey.com>
13768 * dwarf2read.c (struct variant_field): New.
13769 (struct nextfield) <variant>: New field.
13770 (dwarf2_add_field): Handle DW_TAG_variant_part.
13771 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
13772 discriminated union.
13773 (read_structure_type): Handle DW_TAG_variant_part.
13774 (handle_struct_member_die): New function, extracted from
13775 process_structure_scope. Handle DW_TAG_variant.
13776 (process_structure_scope): Handle discriminated unions. Call
13777 handle_struct_member_die.
13779 2018-02-26 Tom Tromey <tom@tromey.com>
13781 * rust-lang.h (rust_last_path_segment): Declare.
13782 * rust-lang.c (rust_last_path_segment): Now public. Change
13784 (struct disr_info): Remove.
13785 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
13786 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
13787 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
13788 (rust_enum_p, rust_enum_variant): New function.
13789 (rust_underscore_fields): Remove "offset" parameter.
13790 (rust_print_enum): New function.
13791 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
13792 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
13793 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
13795 (rust_internal_print_type): New function, from rust_print_type.
13797 (rust_print_type): Call rust_internal_print_type.
13798 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
13799 Update enum handling.
13800 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
13801 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
13802 (rust_union_quirks): New functions.
13803 (process_full_comp_unit, process_full_type_unit): Call
13805 (process_structure_scope): Update rust_unions if necessary.
13807 2018-02-26 Tom Tromey <tom@tromey.com>
13809 * value.h (value_union_variant): Declare.
13810 * valops.c (value_union_variant): New function.
13811 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
13812 (struct discriminant_info): New.
13813 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
13815 (struct main_type) <flag_discriminated_union>: New field.
13817 2018-02-26 Tom Tromey <tom@tromey.com>
13819 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13820 unittests/unpack-selftests.c.
13821 * unittests/unpack-selftests.c: New file.
13822 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
13824 2018-02-26 Yao Qi <yao.qi@linaro.org>
13826 * dwarf2read.c (struct partial_die_info) <read>: New method.
13827 (read_partial_die): Remove the declaration.
13828 (load_partial_dies): Update.
13829 (partial_die_info::partial_die_info):
13830 (read_partial_die): Change it to partial_die_info::read.
13832 2018-02-26 Yao Qi <yao.qi@linaro.org>
13834 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
13835 (fixup_partial_die): Remove declaration.
13836 (scan_partial_symbols): Update.
13837 (partial_die_parent_scope): Likewise.
13838 (partial_die_full_name): Likewise.
13839 (fixup_partial_die): Change it to partial_die_info::fixup.
13841 2018-02-26 Yao Qi <yao.qi@linaro.org>
13843 * dwarf2read.c (read_partial_die): Update the declaration.
13844 (load_partial_dies): Caller update.
13845 (read_partial_die): Remove one argument abbrev_len.
13847 2018-02-26 Yao Qi <yao.qi@linaro.org>
13849 * dwarf2read.c (struct partial_die_info): Add ctor, delete
13850 assignment operator.
13851 (load_partial_dies): Use ctor and copy ctor.
13852 (read_partial_die): Update.
13853 (dwarf2_cu::find_partial_die): Use ctor.
13855 2018-02-26 Yao Qi <yao.qi@linaro.org>
13857 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
13858 (find_partial_die_in_comp_unit): Change it to
13859 dwarf2_cu::find_partial_die.
13860 (find_partial_die): Update.
13862 2018-02-26 Yao Qi <yao.qi@linaro.org>
13864 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
13867 2018-02-26 Yao Qi <yao.qi@linaro.org>
13869 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
13871 2018-02-26 Alan Hayward <alan.hayward@arm.com>
13873 * arch/amd64.h: Use common/tdesc.h.
13874 * arch/i386.c: Likewise.
13875 * arch/i386.h: Likewise.
13876 * arch/tic6x.c: Likewise.
13877 * arch/tdesc.h: Move file from here...
13878 * common/tdesc.h: ...to here.
13879 * features/aarch64-core.c: Regenerate.
13880 * features/aarch64-fpu.c: Regenerate.
13881 * features/i386/32bit-avx.c: Regenerate.
13882 * features/i386/32bit-avx512.c: Regenerate.
13883 * features/i386/32bit-core.c: Regenerate.
13884 * features/i386/32bit-linux.c: Regenerate.
13885 * features/i386/32bit-mpx.c: Regenerate.
13886 * features/i386/32bit-pkeys.c: Regenerate.
13887 * features/i386/32bit-sse.c: Regenerate.
13888 * features/i386/64bit-avx.c: Regenerate.
13889 * features/i386/64bit-avx512.c: Regenerate.
13890 * features/i386/64bit-core.c: Regenerate.
13891 * features/i386/64bit-linux.c: Regenerate.
13892 * features/i386/64bit-mpx.c: Regenerate.
13893 * features/i386/64bit-pkeys.c: Regenerate.
13894 * features/i386/64bit-segments.c: Regenerate.
13895 * features/i386/64bit-sse.c: Regenerate.
13896 * features/i386/x32-core.c: Regenerate.
13897 * features/tic6x-c6xp.c: Regenerate.
13898 * features/tic6x-core.c: Regenerate.
13899 * features/tic6x-gp.c: Regenerate.
13900 * target-descriptions.c: Use common/tdesc.h.
13901 * target-descriptions.h: Likewise.
13903 2018-02-24 Tom Tromey <tom@tromey.com>
13905 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
13906 (try_thread_db_load_from_dir, thread_db_load_search): Use
13908 (info_auto_load_libthread_db_compare): Return bool. Change
13910 (info_auto_load_libthread_db): Use std::vector, std::string.
13913 2018-02-24 Tom Tromey <tom@tromey.com>
13915 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
13917 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
13919 * gdbarch.c: Rebuild.
13920 * gdbarch.h: Rebuild.
13921 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
13922 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
13923 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
13926 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
13928 * gdbtypes.h (sect_offset): Change type to uint64_t.
13929 (sect_offset_str): New function.
13930 * dwarf2read.c (create_addrmap_from_aranges): Use
13932 (error_check_comp_unit_head): Likewise.
13933 (create_debug_type_hash_table): Likewise.
13934 (read_cutu_die_from_dwo): Likewise.
13935 (init_cutu_and_read_dies): Likewise.
13936 (init_cutu_and_read_dies_no_follow): Likewise.
13937 (process_psymtab_comp_unit_reader): Likewise.
13938 (partial_die_parent_scope): Likewise.
13939 (peek_die_abbrev): Likewise.
13940 (process_queue): Likewise.
13941 (dwarf2_physname): Likewise.
13942 (read_namespace_alias): Likewise.
13943 (read_import_statement): Likewise.
13944 (create_dwo_cu_reader): Likewise.
13945 (create_cus_hash_table): Likewise.
13946 (lookup_dwo_cutu): Likewise.
13947 (inherit_abstract_dies): Likewise.
13948 (read_func_scope): Likewise.
13949 (read_call_site_scope): Likewise.
13950 (dwarf2_add_member_fn): Likewise.
13951 (read_common_block): Likewise.
13952 (read_module_type): Likewise.
13953 (read_typedef): Likewise.
13954 (read_subrange_type): Likewise.
13955 (load_partial_dies): Likewise.
13956 (read_partial_die): Likewise.
13957 (find_partial_die): Likewise.
13958 (read_str_index): Likewise.
13959 (dwarf2_string_attr): Likewise.
13960 (build_error_marker_type): Likewise.
13961 (lookup_die_type): Likewise.
13962 (dump_die_shallow): Likewise.
13963 (follow_die_ref): Likewise.
13964 (dwarf2_fetch_die_loc_sect_off): Likewise.
13965 (dwarf2_fetch_constant_bytes): Likewise.
13966 (follow_die_sig): Likewise.
13967 (get_signatured_type): Likewise.
13968 (get_DW_AT_signature_type): Likewise.
13969 (dwarf2_find_containing_comp_unit): Likewise.
13970 (set_die_type): Likewise.
13972 2018-02-21 John Baldwin <jhb@FreeBSD.org>
13974 * arch/aarch64.c: Include "common-defs.h".
13975 * arch/amd64.c: Likewise.
13976 * arch/i386.c: Likewise.
13978 2018-02-21 Tom Tromey <tom@tromey.com>
13980 * value.h: (extract_field_op): Update.
13981 * eval.c (extract_field_op): Return a const char *.
13982 * expression.h (parse_expression_for_completion): Update.
13983 * completer.c (complete_expression): Update.
13984 (add_struct_fields): Make fieldname const.
13985 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
13986 (mark_completion_tag, parse_exp_in_context_1): Update.
13987 (parse_expression_for_completion): Change "name" to
13988 unique_xmalloc_ptr*.
13990 2018-02-21 Tom Tromey <tom@tromey.com>
13992 * infcall.c (call_function_by_hand_dummy): Use std::vector.
13994 2018-02-21 Yao Qi <yao.qi@linaro.org>
13996 * avr-tdep.c (avr_read_pc): Change parameter type to
13998 * gdbarch.sh (read_pc): Likewise.
13999 * gdbarch.c: Re-generated.
14000 * gdbarch.h: Re-generated.
14001 * hppa-tdep.c (hppa_read_pc): Change parameter type to
14003 * ia64-tdep.c (ia64_read_pc): Likewise.
14004 * mips-tdep.c (mips_read_pc): Likewise.
14005 * spu-tdep.c (spu_read_pc): Likewise.
14007 2018-02-21 Yao Qi <yao.qi@linaro.org>
14009 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
14010 * regcache-dump.c: New file.
14011 * regcache.c: Move register_dump to regcache-dump.c.
14012 (maintenance_print_registers): Likewise.
14013 (maintenance_print_raw_registers): Likewise.
14014 (maintenance_print_cooked_registers): Likewise.
14015 (maintenance_print_register_groups): Likewise.
14016 (maintenance_print_remote_registers): Likewise.
14017 (_initialize_regcache): Likewise.
14018 * regcache.h (register_dump): Moved from regcache.c.
14020 2018-02-21 Yao Qi <yao.qi@linaro.org>
14022 * regcache.c (regcache::regcache): Update.
14023 (regcache::invalidate): Move it to detached_regcache::invalidate.
14024 (get_thread_arch_aspace_regcache): Update.
14025 (regcache::raw_update): Update.
14026 (regcache::cooked_read): Remove some code.
14027 (regcache::cooked_read_value): Likewise.
14028 (regcache::raw_write): Remove assert on m_readonly_p.
14029 (regcache::raw_supply_integer): Move it to
14030 detached_regcache::raw_supply_integer.
14031 (regcache::raw_supply_zeroed): Likewise.
14032 * regcache.h (detached_regcache) <raw_supply_integer>: New
14034 <raw_supply_zeroed, invalidate>: Likewise.
14035 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
14036 <invalidate>: Likewise.
14037 <m_readonly_p>: Removed.
14039 2018-02-21 Yao Qi <yao.qi@linaro.org>
14041 * infcmd.c (get_return_value): Let stop_regs point to
14042 get_current_regcache.
14043 * regcache.c (regcache::regcache): Remove.
14044 (register_dump_reg_buffer): New class.
14045 (regcache_print): Adjust.
14046 * regcache.h (regcache): Remove constructors.
14048 2018-02-21 Yao Qi <yao.qi@linaro.org>
14050 * regcache.c (class register_dump): New class.
14051 (register_dump_regcache, register_dump_none): New class.
14052 (register_dump_remote, register_dump_groups): New class.
14053 (regcache_print): Update.
14054 * regcache.h (regcache_dump_what): Move it to regcache.c.
14055 (regcache) <dump>: Remove.
14057 2018-02-21 Yao Qi <yao.qi@linaro.org>
14059 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
14061 (jit_unwind_reg_set_impl): Call raw_supply.
14062 (jit_frame_sniffer): Use reg_buffer_rw.
14063 * record-full.c (record_full_core_regbuf): Change its type.
14064 (record_full_core_open_1): Use reg_buffer_rw.
14065 (record_full_close): Likewise.
14066 (record_full_core_fetch_registers): Use regcache->raw_supply.
14067 (record_full_core_store_registers): Likewise.
14068 * regcache.c (regcache::get_register_status): Move it to
14070 (regcache_raw_set_cached_value): Remove.
14071 (regcache::raw_set_cached_value): Remove.
14072 (regcache::raw_write): Call raw_supply.
14073 (regcache::raw_supply): Move it to reg_buffer_rw.
14074 * regcache.h (regcache_raw_set_cached_value): Remove.
14075 (reg_buffer_rw): New class.
14077 2018-02-21 Yao Qi <yao.qi@linaro.org>
14079 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
14080 readonly_detached_regcache.
14081 (dummy_frame_prev_register): Use regcache->cooked_read.
14082 * frame.c (frame_save_as_regcache): Change return type.
14083 (frame_pop): Update.
14084 * frame.h (frame_save_as_regcache): Update declaration.
14085 * inferior.h (get_infcall_suspend_state_regcache): Update
14087 * infrun.c (infcall_suspend_state) <registers>: use
14088 readonly_detached_regcache.
14089 (save_infcall_suspend_state): Don't use regcache_dup.
14090 (get_infcall_suspend_state_regcache): Change return type.
14091 * linux-fork.c (struct fork_info) <savedregs>: Change to
14092 readonly_detached_regcache.
14094 (fork_save_infrun_state): Don't use regcache_dup.
14095 (info_checkpoints_command): Adjust.
14096 * mi/mi-main.c (register_changed_p): Update declaration.
14097 (mi_cmd_data_list_changed_registers): Use
14098 readonly_detached_regcache.
14099 (register_changed_p): Change parameter type to
14100 readonly_detached_regcache.
14101 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
14102 readonly_detached_regcache.
14103 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
14104 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
14106 (regcache::save): Move it to reg_buffer.
14107 (regcache::restore): Change parameter type.
14108 (regcache_dup): Remove.
14109 * regcache.h (reg_buffer) <save>: New method.
14110 (readonly_detached_regcache): New class.
14111 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
14112 readonly_detached_regcache.
14113 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
14115 2018-02-21 Yao Qi <yao.qi@linaro.org>
14117 * frame.c (frame_save_as_regcache): Use regcache method save.
14118 (frame_pop): Use regcache method restore.
14119 * infrun.c (restore_infcall_suspend_state): Likewise.
14120 * linux-fork.c (fork_load_infrun_state): Likewise.
14121 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
14123 * regcache.c (regcache_save): Remove.
14124 (regcache::restore): More asserts.
14125 (regcache_cpy): Remove.
14126 * regcache.h (regcache_save): Remove the declaration.
14127 (regcache::restore): Move from private to public.
14128 Remove the friend declaration of regcache_cpy.
14129 (regcache_cpy): Remove declaration.
14131 2018-02-21 Yao Qi <yao.qi@linaro.org>
14133 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
14134 parameter type to 'readable_regcache *'.
14135 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14136 * arm-tdep.c (arm_neon_quad_read): Likewise.
14137 (arm_pseudo_read): Likewise.
14138 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14139 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14140 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14141 * gdbarch.c: Re-generated.
14142 * gdbarch.h: Re-generated.
14143 * gdbarch.sh (pseudo_register_read): Change parameter type to
14144 'readable_regcache *'.
14145 (pseudo_register_read_value): Likewise.
14146 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
14147 (h8300_pseudo_register_read): Likewise.
14148 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
14149 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14150 (i386_pseudo_register_read_into_value): Likewise.
14151 (i386_pseudo_register_read_value): Likewise.
14152 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
14154 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
14155 * m32c-tdep.c (m32c_raw_read): Likewise.
14156 (m32c_read_flg): Likewise.
14157 (m32c_banked_register): Likewise.
14158 (m32c_banked_read): Likewise.
14159 (m32c_sb_read): Likewise.
14160 (m32c_part_read): Likewise.
14161 (m32c_cat_read): Likewise.
14162 (m32c_r3r2r1r0_read): Likewise.
14163 (m32c_pseudo_register_read): Likewise.
14164 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14165 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14166 (mep_pseudo_cr64_read): Likewise.
14167 (mep_pseudo_register_read): Likewise.
14168 * mips-tdep.c (mips_pseudo_register_read): Likewise.
14169 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14170 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14171 * regcache.c (regcache::raw_read): Move it to readable_regcache.
14172 (regcache::cooked_read): Likewise.
14173 (regcache::cooked_read_value): Likewise.
14174 (regcache_cooked_read_signed):
14175 (regcache::cooked_read): Likewise.
14176 * regcache.h (readable_regcache): New class.
14177 (regcache): Inherit readable_regcache. Move some methods to
14179 * rl78-tdep.c (rl78_pseudo_register_read): Change
14180 parameter type to 'readable_regcache *'.
14181 * rs6000-tdep.c (do_regcache_raw_read): Remove.
14182 (e500_pseudo_register_read): Change parameter type to
14183 'readable_regcache *'.
14184 (dfp_pseudo_register_read): Likewise.
14185 (vsx_pseudo_register_read): Likewise.
14186 (efpr_pseudo_register_read): Likewise.
14187 * s390-tdep.c (s390_pseudo_register_read): Likewise.
14188 * sh-tdep.c (sh_pseudo_register_read): Likewise.
14189 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
14190 (sh64_pseudo_register_read): Likewise.
14191 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14192 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14193 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14194 (spu_pseudo_register_read): Likewise.
14195 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14196 (xtensa_pseudo_register_read): Likewise.
14198 2018-02-21 Yao Qi <yao.qi@linaro.org>
14200 * regcache.c (regcache::regcache): Call reg_buffer ctor.
14201 (regcache::arch): Move it to reg_buffer::arch.
14202 (regcache::register_buffer): Likewise.
14203 (regcache::assert_regnum): Likewise.
14204 (regcache::num_raw_registers): Likewise.
14205 * regcache.h (reg_buffer): New class.
14206 (regcache): Inherit reg_buffer.
14208 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
14210 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
14211 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
14213 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
14215 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
14217 2018-02-19 Alan Hayward <alan.hayward@arm.com>
14219 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
14220 (SFILES): Remove common/*.c files.
14221 (COMMON_OBS): Remove some *.o files built from common/*.c files.
14222 * common/common.host: Add common reference.
14223 * configure.ac: Likewise.
14224 * configure: Regenerate.
14226 2018-02-16 Yao Qi <yao.qi@linaro.org>
14228 * block.c (block_namespace_info): Inherit allocate_on_obstack.
14229 (block_initialize_namespace): Use new.
14230 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
14231 (dwarf2_free_objfile): Use delete.
14232 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
14233 (copy_type_recursive): Use new.
14234 * gdb_obstack.h (allocate_on_obstack): New.
14236 2018-02-15 Yao Qi <yao.qi@linaro.org>
14239 * inferior.c (exit_inferior_1): Reset inf->control.
14241 2018-02-15 Joel Brobecker <brobecker@adacore.com>
14243 * ada-lang.c (ada_to_fixed_value_create): Delete advance
14246 2018-02-14 Pedro Alves <palves@redhat.com>
14248 * frame-unwind.c (frame_unwind_try_unwinder): Always call
14249 frame_cleanup_after_sniffer on exception.
14251 2018-02-14 Tom Tromey <tom@tromey.com>
14253 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
14255 (solib_bfd_open): Make pathname const.
14256 * solib.c (solib_bfd_open): Make pathname const.
14257 * solib-spu.c (spu_bfd_fopen): Make name const.
14258 (spu_bfd_open): Make pathname const.
14259 * solib-darwin.c (darwin_bfd_open): Make pathname const.
14260 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
14262 2018-02-14 Tom Tromey <tom@tromey.com>
14264 * symfile.c (symfile_bfd_open): Update.
14265 * source.h (openp, source_full_path_of, find_and_open_source):
14266 Change argument type to unique_xmalloc_ptr.
14267 * source.c (openp): Take a unique_xmalloc_ptr.
14268 (source_full_path_of, find_and_open_source): Likewise.
14269 (open_source_file, symtab_to_fullname): Update.
14270 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
14271 unique_xmalloc_ptr.
14272 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
14273 (exec_file_find): Update.
14274 * psymtab.c (psymtab_to_fullname): Update.
14275 * nto-tdep.h (nto_find_and_open_solib): Update.
14276 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
14277 unique_xmalloc_ptr.
14278 * exec.c (exec_file_attach): Update.
14279 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
14280 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
14282 2018-02-14 Tom Tromey <tom@tromey.com>
14284 * solib.c: Include source.h.
14285 * nto-tdep.c: Include source.h.
14286 * mi/mi-cmd-env.c: Include source.h.
14287 * infcmd.c: Include source.h.
14288 * exec.c: Include source.h.
14289 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
14290 (add_path, directory_switch, source_path, init_source_path): Move
14292 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
14293 (add_path, directory_switch, source_path, init_source_path):
14296 2018-02-14 Tom Tromey <tom@tromey.com>
14298 * solist.h (exec_file_find, solib_find): Return
14299 unique_xmalloc_ptr.
14300 (solib_bfd_fopen): Take a const char *.
14301 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
14302 (exec_file_find, solib_find): Likewise.
14303 (solib_bfd_fopen): Do not take ownership of "pathname".
14304 (solib_bfd_open): Use unique_xmalloc_ptr.
14305 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
14306 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
14307 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
14308 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
14310 2018-02-14 Joel Brobecker <brobecker@adacore.com>
14312 * ada-lang.c (name_match_type_from_name): Remove reference to
14313 ada_name_for_lookup in function's documentation.
14314 * ada-lang.h (ada_name_for_lookup): Delete declaration.
14316 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14318 * defs.h (enum openp_flags): New enum.
14319 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
14320 Move to enum openp_flags.
14321 (openp_flags): New enum flags.
14322 (openp): Change parameter type to openp_flags.
14323 * source.c (openp): Change parameter type to openp_flags.
14324 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
14325 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
14327 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14329 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
14332 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
14334 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
14336 (class dwarf2_queue_guard): ...the destructor of this new class.
14337 (dw2_do_instantiate_symtab): Create instance of the new class
14338 dwarf2_queue_guard, remove cleanup.
14340 2018-02-09 Tom Tromey <tom@tromey.com>
14342 * source.c (find_source_lines): Don't reference past the end of
14345 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14347 * remote.c (remote_btrace_maybe_reopen): Change error message.
14348 * btrace.c (btrace_enable): Likewise.
14349 (parse_xml_btrace): Likewise.
14350 (parse_xml_btrace_conf): Likewise.
14352 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14354 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
14355 (linux_enable_pt, linux_enable_bts): Call
14356 diagnose_perf_event_open_fail.
14358 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14360 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
14361 Remove parameter and change return type. Update callers. Move it.
14362 (linux_enable_bts, linux_enable_pt): Improve error message.
14363 (linux_enable_pt): Remove zero buffer size check.
14364 (linux_enable_btrace): Improve error messages. Remove NULL return
14367 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14369 * btrace.c (btrace_enable): Remove target_supports_btrace call.
14370 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
14371 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
14372 (linux_supports_pt, linux_supports_btrace): Remove.
14373 (linux_enable_bts): Call cpu_supports_bts.
14374 * nat/linux-btrace.h (linux_supports_btrace): Remove.
14375 * remote.c (remote_supports_btrace): Remove.
14376 (init_remote_ops): Remove remote_supports_btrace.
14377 * target-delegates.c: Regenerated.
14378 * target.c (target_supports_btrace): Remove.
14379 * target.h (target_ops) <to_supports_btrace>: Remove
14380 (target_supports_btrace): Remove.
14381 * x86-linux-nat.c (x86_linux_create_target): Remove
14382 linux_supports_btrace.
14384 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14386 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
14388 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
14389 exception and use message in own exception.
14391 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14393 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
14394 (perf_event_pt_event_type): Use gdb_file_up.
14395 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
14396 scoped_fd, and scoped_mmap.
14398 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14400 * common/scoped_mmap.h: New.
14401 * unittests/scoped_mmap-selftest.c: New.
14402 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14403 unittests/scoped_mmap-selftest.c.
14405 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14407 * common/scoped_fd.h: New.
14408 * unittests/scoped_fd-selftest.c: New.
14409 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14410 unittests/scoped_fd-selftest.c.
14412 2018-02-09 Tom Tromey <tom@tromey.com>
14414 * auto-load.c (auto_load_section_scripts): Use
14415 gdb::unique_xmalloc_ptr.
14417 2018-02-09 Tom Tromey <tom@tromey.com>
14419 * auto-load.c (execute_script_contents): Use std::string.
14421 2018-02-09 Joel Brobecker <brobecker@adacore.com>
14423 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
14424 Python function, rather than a new command.
14426 2018-02-08 Tom Tromey <tom@tromey.com>
14428 * solib.c (solib_find_1): Use std::string.
14429 (solib_bfd_fopen): Use unique_xmalloc_ptr.
14431 2018-02-08 Tom Tromey <tom@tromey.com>
14433 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
14435 2018-02-08 Tom Tromey <tom@tromey.com>
14437 * source.c (find_source_lines): Use gdb::def_vector.
14439 2018-02-08 Tom Tromey <tom@tromey.com>
14441 * macrocmd.c (struct temporary_macro_definition): New.
14442 (macro_define_command): Use temporary_macro_definition. Remove
14444 (free_macro_definition_ptr): Remove.
14446 2018-02-08 Tom Tromey <tom@tromey.com>
14448 * macroexp.c (maybe_expand): Use std::string.
14450 2018-02-08 Tom Tromey <tom@tromey.com>
14452 * macroexp.c (struct macro_buffer): Add initializers for some
14454 (init_buffer, init_shared_buffer, free_buffer)
14455 (free_buffer_return_text): Remove.
14456 (macro_buffer): New constructors.
14457 (~macro_buffer): New destructor.
14458 (macro_buffer::set_shared): New method.
14459 (macro_buffer::resize_buffer, macro_buffer::appendc)
14460 (macro_buffer::appendmem): Now methods, not free functions.
14461 (set_token, append_tokens_without_splicing, stringify)
14462 (macro_stringify): Update.
14463 (gather_arguments): Change return type. Remove argc_p argument,
14464 add args_ptr argument. Use std::vector.
14465 (substitute_args): Remove argc argument. Accept std::vector.
14466 (expand): Update. Use std::vector.
14467 (scan, macro_expand, macro_expand_next): Update.
14469 2018-02-08 Tom Tromey <tom@tromey.com>
14471 * symtab.c (default_collect_symbol_completion_matches_break_on):
14472 Use unique_xmalloc_ptr.
14473 * macroscope.h: (sal_macro_scope, user_macro_scope)
14474 (default_macro_scope): Return unique_xmalloc_ptr.
14475 * macroscope.c (sal_macro_scope, user_macro_scope)
14476 (default_macro_scope): Return unique_xmalloc_ptr.
14477 * macroexp.h (macro_expand, macro_expand_once): Return
14478 unique_xmalloc_ptr.
14479 * macroexp.c (macro_expand, macro_expand_once): Return
14480 unique_xmalloc_ptr.
14481 * macrocmd.c (macro_expand_command, macro_expand_once_command)
14482 (info_macro_command, info_macros_command): Use
14483 unique_xmalloc_ptr.
14484 * compile/compile-c-support.c (write_macro_definitions): Use
14485 unique_xmalloc_ptr.
14486 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
14488 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
14490 * value.c (value_static_field): Assign field type instead of
14491 containing type when returning an optimized out value.
14493 2018-02-06 Yao Qi <yao.qi@linaro.org>
14495 * ft32-tdep.c (ft32_read_pc): Remove.
14496 (ft32_write_pc): Remove.
14497 (ft32_gdbarch_init): Update.
14498 * m32r-tdep.c (m32r_read_pc): Remove.
14499 (m32r_gdbarch_init): Update.
14500 * mep-tdep.c (mep_read_pc): Remove.
14501 (mep_gdbarch_init): Update.
14502 * microblaze-tdep.c (microblaze_write_pc): Remove.
14503 (microblaze_gdbarch_init): Update.
14504 * mn10300-tdep.c (mn10300_read_pc): Remove.
14505 (mn10300_write_pc): Remove.
14506 (mn10300_gdbarch_init): Update.
14507 * moxie-tdep.c (moxie_read_pc): Remove.
14508 (moxie_write_pc): Remove.
14509 (moxie_gdbarch_init): Update.
14511 2018-02-06 Yao Qi <yao.qi@linaro.org>
14513 * expprint.c (print_subexp_standard): Handle
14514 OP_F77_UNDETERMINED_ARGLIST.
14515 (dump_subexp_body_standard): Likewise.
14517 2018-02-05 Alan Hayward <alan.hayward@arm.com>
14519 * target-descriptions.c (tdesc_element_visitor) Add empty
14521 (tdesc_type): Move make_gdb_type from here.
14522 (tdesc_type_builtin): Likewise.
14523 (tdesc_type_vector): Likewise.
14524 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
14525 (make_gdb_type_struct): Move from tdesc_type_with_fields.
14526 (make_gdb_type_union): Likewise.
14527 (make_gdb_type_flags): Likewise.
14528 (make_gdb_type_enum): Likewise.
14529 (make_gdb_type): New function.
14530 (tdesc_register_type): Use static make_gdb_type.
14532 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
14534 * infcmd.c (default_print_one_register_info): Align natural-format
14535 column values consistently one under another.
14536 (pad_to_column): New function.
14538 2018-02-05 Joel Brobecker <brobecker@adacore.com>
14540 * dwarf2read.c (dwarf2_physname): Move commment.
14542 2018-02-01 Leszek Swirski <leszeks@google.com>
14544 * varobj.c (varobj_formatted_print_options): Allow recursive
14545 pretty printing if pretty printing is enabled.
14547 2018-02-01 Leszek Swirski <leszeks@google.com>
14549 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
14550 names after a structop as a filename.
14552 2018-02-01 Yao Qi <yao.qi@linaro.org>
14554 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
14555 (arm_record_coproc_data_proc): Likewise.
14557 2018-02-01 Yao Qi <yao.qi@linaro.org>
14559 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
14561 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
14563 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
14564 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
14566 2018-01-31 Pedro Alves <palves@redhat.com>
14568 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
14569 * inflow.c (child_terminal_save_inferior): Wrap reference to
14570 tcgetpgrp in HAVE_TERMIOS_H.
14571 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
14573 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
14574 always iterate over all inferiors.
14575 (gdbsim_cntrl_c): Adjust.
14576 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
14578 2018-01-31 Joel Brobecker <brobecker@adacore.com>
14580 * gdbtypes.c (lookup_array_range_type): Make sure the array's
14581 index type is objfile-owned if the element type is as well.
14583 2018-01-31 Joel Brobecker <brobecker@adacore.com>
14587 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
14589 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
14590 "features/s390x-linux64.c".
14591 (_initialize_s390_linux_tdep): Remove initialization of tdescs
14592 s390_linux32 and s390x_linux64.
14593 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
14595 * s390-tdep.c: Include "features/s390-linux32.c" and
14596 "features/s390x-linux64.c".
14597 (s390_tdesc_valid): Add check for tdesc_has_registers.
14598 (s390_gdbarch_init): Make sure there is always a valid tdesc.
14599 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
14600 tdesc_s390x_linux64.
14601 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
14602 tdesc_s390x_linux64 to...
14603 * s390-tdep.h: ...here.
14605 2018-01-30 Pedro Alves <palves@redhat.com>
14608 * config.in, configure: Regenerate.
14609 * configure.ac: Check for getpgid.
14610 * go32-nat.c (go32_pass_ctrlc): New.
14611 (go32_target): Install it.
14612 * inf-child.c (inf_child_target): Install
14613 child_terminal_save_inferior, child_pass_ctrlc and
14615 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
14616 (inf_ptrace_target): No longer install it.
14617 * infcmd.c (interrupt_target_1): Adjust.
14618 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
14619 (child_interrupt): Declare.
14620 (inferior::terminal_state): New.
14621 * inflow.c (struct terminal_info): Update comments.
14622 (inferior_process_group): Delete.
14623 (terminal_is_ours): Delete.
14624 (gdb_tty_state): New.
14625 (child_terminal_init): Adjust.
14626 (is_gdb_terminal, sharing_input_terminal_1)
14627 (sharing_input_terminal): New functions.
14628 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
14629 Set the process's actual process group in the foreground if
14630 possible. Handle is_ours_for_output/is_ours distinction. Don't
14631 mark terminal as the inferior's if not sharing GDB's terminal.
14632 Don't check attach_flag.
14633 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
14634 pass down a target_terminal_state.
14635 (child_terminal_save_inferior): New, factored out from ...
14636 (child_terminal_ours_1): ... this. Handle
14637 target_terminal_state::is_ours_for_output.
14638 (child_interrupt, child_pass_ctrlc): New.
14639 (inflow_inferior_exit): Clear the inferior's terminal_state.
14640 (copy_terminal_info): Copy the inferior's terminal state.
14641 (_initialize_inflow): Remove reference to terminal_is_ours.
14642 * inflow.h (inferior_process_group): Delete.
14643 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
14644 * procfs.c (procfs_target): Don't install procfs_interrupt.
14645 (procfs_interrupt): Delete.
14646 * remote.c (remote_serial_quit_handler): Adjust.
14647 (remote_interrupt): Remove ptid parameter. Adjust.
14648 * target-delegates.c: Regenerate.
14649 * target.c: Include "terminal.h".
14650 (target_terminal::terminal_state): Rename to ...
14651 (target_terminal::m_terminal_state): ... this.
14652 (target_terminal::init): Adjust.
14653 (target_terminal::inferior): Adjust to per-inferior
14655 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
14656 (target_terminal::ours, target_terminal::ours_for_output): Use
14657 target_terminal_is_ours_kind.
14658 (target_interrupt): Remove ptid parameter. Adjust.
14659 (default_target_pass_ctrlc): Adjust.
14660 * target.h (target_ops::to_terminal_save_inferior): New field.
14661 (target_ops::to_interrupt): Remove ptid_t parameter.
14662 (target_interrupt): Remove ptid_t parameter. Update comment.
14663 (target_pass_ctrlc): Update comment.
14664 * target/target.h (target_terminal_state): New scoped enum,
14665 factored out of ...
14666 (target_terminal::terminal_state): ... here.
14667 (target_terminal::inferior): Update comments.
14668 (target_terminal::restore_inferior): New.
14669 (target_terminal::is_inferior, target_terminal::is_ours)
14670 (target_terminal::is_ours_for_output): Adjust.
14671 (target_terminal::scoped_restore_terminal_state): Adjust to
14672 rename, and call restore_inferior() instead of inferior().
14673 (target_terminal::scoped_restore_terminal_state::m_state): Change
14675 (target_terminal::terminal_state): Rename to ...
14676 (target_terminal::m_terminal_state): ... this and change type.
14678 2018-01-30 Pedro Alves <palves@redhat.com>
14680 * linux-nat.c (wait_for_signal): New function.
14681 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
14683 (async_terminal_is_ours)
14684 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
14685 (linux_nat_add_target): Don't override
14686 to_terminal_inferior/to_terminal_ours.
14688 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
14690 * remote.c (remote_follow_fork): Don't call "detach_inferior".
14692 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
14694 * dwarf2read.c (free_dwo_files): Add forward-declaration.
14695 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
14696 dwarf2_per_objfile_free here.
14697 (dwarf2_per_objfile_free): Remove.
14698 (_initialize_dwarf2_read): Don't register
14699 dwarf2_per_objfile_free as a registry cleanup.
14701 2018-01-27 Eli Zaretskii <eliz@gnu.org>
14703 Avoid compilation errors in MinGW native builds
14705 The error is triggered by including python-internal.h, and the
14708 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
14709 from build-gnulib/import/math.h:27,
14710 from d:/usr/Python26/include/pyport.h:235,
14711 from d:/usr/Python26/include/Python.h:58,
14712 from python/python-internal.h:94,
14713 from python/py-arch.c:24:
14714 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
14718 This happens because Python headers define 'hypot' to expand t
14719 '_hypot' in the Windows builds.
14720 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
14721 'hypoth'. This avoids a compilation error.
14723 2018-01-26 Alan Hayward <alan.hayward@arm.com>
14725 * MAINTAINERS (Write After Approval): Fix ordering.
14727 2018-01-26 Alan Hayward <alan.hayward@arm.com>
14729 * MAINTAINERS (Write After Approval): Add Alan Hayward.
14731 2018-01-26 Alan Modra <amodra@gmail.com>
14733 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
14734 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
14735 Remove nop. Make const. Comment.
14736 (powerpc32_plt_stub_so_2): New.
14737 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
14738 Correct count. Update uses.
14739 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
14740 Move common code reading PLT entry word. Correct
14741 powerpc32_plt_stub PLT address calculation.
14742 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
14743 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
14744 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
14745 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
14746 (ppc64_standard_linkage8): Likewise.
14747 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
14748 Correct insns description.
14749 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
14751 2018-01-24 Pedro Alves <palves@redhat.com>
14753 GCC PR libstdc++/83906
14754 * gdbtypes.c (operator==(const dynamic_prop &,
14755 const dynamic_prop &)): New.
14756 (operator==(const range_bounds &, const range_bounds &)): New.
14757 (check_types_equal): Use them instead of memcmp.
14758 * gdbtypes.h (operator==(const dynamic_prop &,
14759 const dynamic_prop &)): Declare.
14760 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
14761 (operator==(const range_bounds &, const range_bounds &)): Declare.
14762 (operator!=(const range_bounds &, const range_bounds &)): Declare.
14764 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14766 * s390-linux-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): Move to s390-tdep.c.
14771 (s390_linux_init_abi_any): Adjust.
14772 * s390-tdep.c (s390_record_address_mask)
14773 (s390_record_calc_disp_common, s390_record_calc_disp)
14774 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14775 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14776 (s390_process_record): Moved from s390-linux-tdep.c
14777 (s390_gdbarch_init): Adjust.
14779 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14781 * s390-linux-nat.c (s390-tdep.h): New include.
14782 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
14783 (HFILES_NO_SRCDIR): Add s390-tdep.h.
14784 (ALLDEPFILES): Add s390-tdep.c.
14785 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
14786 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
14787 * s390-tdep.h: ...this. New file.
14788 * s390-linux-tdep.c (s390-tdep.h): New include.
14789 (_initialize_s390_tdep): Rename to...
14790 (_initialize_s390_linux_tdep): ...this and adjust.
14791 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
14792 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
14794 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
14795 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
14796 (s390_is_partial_instruction, s390_software_single_step)
14797 (is_non_branch_ril, s390_displaced_step_copy_insn)
14798 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
14799 (s390_prologue_data, s390_addr, s390_store, s390_load)
14800 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
14801 (s390_register_call_saved, s390_guess_tracepoint_registers)
14802 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
14803 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
14804 (s390_pseudo_register_name, s390_pseudo_register_type)
14805 (s390_pseudo_register_read, s390_pseudo_register_write)
14806 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
14807 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
14808 (s390_addr_bits_remove, s390_address_class_type_flags)
14809 (s390_address_class_type_flags_to_name)
14810 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
14811 (s390_function_arg_float, s390_function_arg_vector)
14812 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
14813 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
14814 (s390_frame_align, s390_register_return_value, s390_return_value)
14815 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
14816 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
14817 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
14818 (s390_trad_frame_prev_register, s390_unwind_cache)
14819 (s390_prologue_frame_unwind_cache)
14820 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
14821 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
14822 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
14823 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
14824 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
14825 (s390_frame_base_address, s390_local_base_address)
14826 (s390_frame_base, s390_gcc_target_options)
14827 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
14828 (s390_validate_reg_range, s390_tdesc_valid)
14829 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
14830 * s390-tdep.c: ...this. New file.
14832 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14834 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
14835 (s390_process_record, s390_gdbarch_tdep_alloc)
14836 (s390_linux_init_abi_any): Use/set new hook.
14838 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14840 * s390-linux-tdep.c (osabi.h): New include.
14841 (s390_linux_init_abi_31, s390_linux_init_abi_64)
14842 (s390_linux_init_abi_any): New functions.
14843 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
14845 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14847 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
14848 tdesc_has_registers check
14850 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14852 * s390-linux-tdep.c (s390_tdesc_valid): New function.
14853 (s390_validate_reg_range): New macro.
14854 (s390_gdbarch_init): Adjust.
14856 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14858 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
14859 (s390_gdbarch_tdep_alloc): Adjust.
14860 (s390_gdbarch_init): Adjust.
14862 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14864 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
14865 <have_tdb>: Change type to bool.
14866 (s390_gdbarch_tdep_alloc): Adjust.
14867 (s390_gdbarch_init): Adjust.
14869 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14871 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
14872 (gdbarch_tdep) <have_upper, have_vx>: New fields.
14873 (s390_gdbarch_tdep_alloc): New function.
14874 (s390_gdbarch_init): Allocate tdep at start and use its fields
14875 instead of separate variables.
14877 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14879 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
14880 when looking for cached gdbarch and add comment for remaining.
14882 2018-01-22 Pedro Alves <palves@redhat.com>
14883 Sergio Durigan Junior <sergiodj@redhat.com>
14885 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
14888 2018-01-22 Maciej W. Rozycki <macro@mips.com>
14890 * MAINTAINERS: Update my company e-mail address.
14892 2018-01-22 Yao Qi <yao.qi@linaro.org>
14894 * regcache.c (cooked_write_test): New function.
14895 (_initialize_regcache): Register the test.
14897 2018-01-22 Yao Qi <yao.qi@linaro.org>
14899 * ia64-tdep.c (ia64_pseudo_register_read): Call
14900 regcache->cooked_read instead of regcache_cooked_read_unsigned.
14901 * m32c-tdep.c (m32c_cat_read): Likewise.
14902 (m32c_r3r2r1r0_read): Likewise.
14903 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14904 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14906 2018-01-22 Yao Qi <yao.qi@linaro.org>
14908 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
14909 method raw_read instead of regcache_raw_read.
14910 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14911 * arm-tdep.c (arm_neon_quad_read): Likewise.
14912 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14913 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14914 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14915 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
14916 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14917 (i386_pseudo_register_read_into_value): Likewise.
14918 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14919 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14920 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14921 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
14922 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
14923 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14924 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14925 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14926 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
14928 2018-01-22 Yao Qi <yao.qi@linaro.org>
14930 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
14931 * configure.tgt: Remove target mt.
14932 * mt-tdep.c: Remove.
14933 * regcache.c (cooked_read_test): Remove the check for mt.
14935 2018-01-22 Yao Qi <yao.qi@linaro.org>
14937 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
14938 instead of gdbarch_pseudo_register_read_value.
14940 2018-01-22 Joel Brobecker <brobecker@adacore.com>
14942 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
14945 2018-01-22 Joel Brobecker <brobecker@adacore.com>
14947 * linespec.c (create_sals_line_offset): Remove code that preserved
14948 the symtab_and_line's line number.
14950 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14952 * varobj.c (varobj_create): Don't set valid_block when creating a
14955 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14957 * varobj.c (varobj_create): Remove out of date comment.
14959 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14962 * ada-exp.y (write_var_from_sym): Pass extra parameter when
14963 updating innermost block.
14964 * parse.c (innermost_block_tracker::update): Take extra type
14965 parameter, and check types match before updating innermost block.
14966 (write_dollar_variable): Update innermost block for registers.
14967 * parser-defs.h (enum innermost_block_tracker_type): New enum.
14968 (innermost_block_tracker::innermost_block_tracker): Initialise
14970 (innermost_block_tracker::reset): Take type parameter.
14971 (innermost_block_tracker::update): Take type parameter, and pass
14972 type through as needed.
14973 (innermost_block_tracker::m_types): New member.
14974 * varobj.c (varobj_create): Pass type when reseting innermost
14977 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14979 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
14980 * ada-lang.c (resolve_subexp): Likewise.
14981 * breakpoint.c (set_breakpoint_condition) Likewise.
14982 (watch_command_1) Likewise.
14983 * c-exp.y (variable): Likewise.
14984 * d-exp.y (PrimaryExpression): Likewise.
14985 * f-exp.y (variable): Likewise.
14986 * go-exp.y (variable): Likewise.
14987 * m2-exp.y (variable): Likewise.
14988 * objfiles.c (objfile::~objfile): Likewise.
14989 * p-exp.y (variable): Likewise.
14990 * parse.c (innermost_block): Change type.
14991 * parser-defs.h (class innermost_block_tracker): New.
14992 (innermost_block): Change to innermost_block_tracker.
14993 * printcmd.c (display_command): Switch to innermost_block API.
14994 (do_one_display): Likewise.
14995 * rust-exp.y (do_one_display): Likewise.
14996 * symfile.c (clear_symtab_users): Likewise.
14997 * varobj.c (varobj_create): Switch to innermost_block API, replace
14998 use of innermost_block with block stored on varobj object.
15000 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15002 * expression.h (innermost_block): Remove declaration.
15003 * varobj.c: Add 'parser-defs.h' include.
15005 2018-01-19 Tom Tromey <tom@tromey.com>
15007 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
15008 symbols in the static and global blocks.
15010 2018-01-19 James Clarke <jrtc27@jrtc27.com>
15012 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
15013 gdb_ptrace.h, and move including gdb_wait.h ...
15014 * nat/linux-ptrace.h: ... to here.
15016 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15018 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
15019 inf_ptrace_detach_success.
15020 (inf_ptrace_detach_success): Add inferior parameter, use it
15021 instead of inferior_ptid, pass it to detach_inferior.
15022 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
15024 * inferior.c (detach_inferior): Add overload that takes an
15026 * inferior.h (detach_inferior): Likewise.
15027 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
15028 use inferior_ptid, adjust call to inf_ptrace_detach_success.
15029 * linux-thread-db.c (thread_db_detach): Use inf parameter.
15031 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15033 * target.h (struct target_ops) <to_detach>: Add inferior
15035 (target_detach): Likewise.
15036 * target.c (dispose_inferior): Pass inferior down.
15037 (target_detach): Pass inferior down. Assert that it is equal to
15038 the current inferior.
15039 * aix-thread.c (aix_thread_detach): Pass inferior down.
15040 * corefile.c (core_file_command): Pass current_inferior() down.
15041 * corelow.c (core_detach): Add inferior parameter.
15042 * darwin-nat.c (darwin_detach): Likewise.
15043 * gnu-nat.c (gnu_detach): Likewise.
15044 * inf-ptrace.c (inf_ptrace_detach): Likewise.
15045 * infcmd.c (detach_command): Pass current_inferior() down to
15047 * infrun.c (follow_fork_inferior): Pass parent_inf to
15049 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
15051 * linux-nat.c (linux_nat_detach): Add inferior parameter.
15052 * linux-thread-db.c (thread_db_detach): Likewise.
15053 * nto-procfs.c (procfs_detach): Likewise.
15054 * procfs.c (procfs_detach): Likewise.
15055 * record.c (record_detach): Likewise.
15056 * record.h (struct inferior): Forward-declare.
15057 (record_detach): Add inferior parameter.
15058 * remote-sim.c (gdbsim_detach): Likewise.
15059 * remote.c (remote_detach_1): Likewise.
15060 (remote_detach): Likewise.
15061 (extended_remote_detach): Likewise.
15062 * sol-thread.c (sol_thread_detach): Likewise.
15063 * target-debug.h (target_debug_print_inferior_p): New macro.
15064 * target-delegates.c: Re-generate.
15065 * top.c (kill_or_detach): Pass inferior down to target_detach.
15066 * windows-nat.c (windows_detach): Add inferior parameter.
15068 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15070 * target.h (struct target_ops) <to_detach>: Remove args
15072 (target_detach): Likewise.
15073 * target.c (dispose_inferior): Adjust.
15074 (target_detach): Remove args parameter, adjust.
15075 * aix-thread.c (aix_thread_detach): Adjust.
15076 * corefile.c (core_file_command): Adjust.
15077 * corelow.c (core_detach): Adjust.
15078 * darwin-nat.c (darwin_detach): Adjust.
15079 * gnu-nat.c (gnu_detach): Adjust.
15080 * inf-ptrace.c (inf_ptrace_detach): Adjust.
15081 * infcmd.c (detach_command): Adjust
15082 * infrun.c (follow_fork_inferior): Adjust.
15083 (handle_vfork_child_exec_or_exit): Adjust.
15084 * linux-fork.c (linux_fork_detach): Remove args parameter.
15085 * linux-fork.h (linux_fork_detach): Likewise.
15086 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
15087 * linux-thread-db.c (thread_db_detach): Likewise.
15088 * nto-procfs.c (procfs_detach): Likewise.
15089 * procfs.c (procfs_detach): Likewise.
15090 (do_detach): Remove signo parameter.
15091 * record.c (record_detach): Remove args parameter.
15092 * record.h (record_detach): Likewise.
15093 * remote-sim.c (gdbsim_detach): Likewise.
15094 * remote.c (remote_detach_1): Likewise.
15095 (remote_detach): Likewise.
15096 (extended_remote_detach): Likewise.
15097 * sol-thread.c (sol_thread_detach): Likewise.
15098 * target-delegates.c: Re-generate.
15099 * top.c (struct qt_args) <args>: Remove field.
15100 (kill_or_detach): Don't pass args.
15101 (quit_force): Don't set args.
15102 * windows-nat.c (windows_detach): Remove args parameter.
15104 2018-01-19 Yao Qi <yao.qi@linaro.org>
15106 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
15107 (arm_linux_init_abi): Install it.
15109 2018-01-19 Yao Qi <yao.qi@linaro.org>
15111 * osabi.c (gdb_osabi_names): Extend the regexp for
15112 arm-linux-gnueabihf.
15114 2018-01-18 Yao Qi <yao.qi@linaro.org>
15116 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
15118 (abbrev_table::add_abbrev): Update.
15119 (abbrev_table::lookup_abbrev): Update.
15121 2018-01-18 Yao Qi <yao.qi@linaro.org>
15123 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
15125 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15127 * compile/compile.c (compile_to_object): Convert "triplet_rx"
15130 2018-01-17 Tom Tromey <tom@tromey.com>
15132 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
15134 2018-01-17 Tom Tromey <tom@tromey.com>
15136 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
15137 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
15138 (create_array_type_with_stride): Update.
15139 * dwarf2read.c (set_die_type): Update.
15141 2018-01-17 Tom Tromey <tom@tromey.com>
15143 * dwarf2read.c (delayed_method_info): Remove typedef.
15144 (dwarf2_cu::method_info): Now a std::vector.
15145 (add_to_method_list): Update.
15146 (free_delayed_list): Remove.
15147 (compute_delayed_physnames): Update.
15148 (process_full_comp_unit, process_full_type_unit): Clear the method
15149 list. Remove cleanups.
15150 (psymtab_include_file_name): Add name_holder parameter. Use
15151 unique_xmalloc_ptr.
15152 (dwarf_decode_lines): Update.
15154 2018-01-17 Tom Tromey <tom@tromey.com>
15155 Simon Marchi <simon.marchi@ericsson.com>
15157 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
15158 (dwarf2_per_objfile::free_cached_comp_units)
15159 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15160 (init_cutu_and_read_dies_no_follow): Update.
15161 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
15162 (dwarf2_cu::~dwarf2_cu): New.
15163 (free_heap_comp_unit, free_stack_comp_unit): Remove.
15164 (age_cached_comp_units, free_one_cached_comp_unit): Update.
15166 2018-01-17 Tom Tromey <tom@tromey.com>
15167 Simon Marchi <simon.marchi@ericsson.com>
15169 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
15170 (struct die_reader_specs) <abbrev_table>: New member.
15171 (struct abbrev_table): Add constructor.
15172 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
15173 <abbrev_obstack>: Now an auto_obstack.
15174 (abbrev_table_up): New typedef.
15175 (init_cu_die_reader): Add abbrev_table parameter.
15176 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
15177 Add result_dwo_abbrev_table.
15178 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15179 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
15181 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
15183 (skip_children): Update.
15184 (abbrev_table::alloc_abbrev): Rename from
15185 abbrev_table_alloc_abbrev.
15186 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
15187 (abbrev_table::lookup_abbrev): Rename from
15188 abbrev_table_lookup_abbrev.
15189 (abbrev_table_read_table): Return abbrev_table_up.
15190 (abbrev_table_free, abbrev_table_free_cleanup)
15191 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
15192 (load_partial_dies): Update.
15194 2018-01-17 Tom Tromey <tom@tromey.com>
15196 * dwarf2read.c (dwarf2_compute_name): Update comment.
15197 (read_func_scope, read_variable): Update.
15198 (new_symbol): Remove.
15199 (new_symbol_full): Rename to new_symbol.
15201 2018-01-17 Mike Gulick <mgulick@mathworks.com>
15204 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
15205 a warning instead of throwing an error, set section size to 0 and return
15207 * gdb_bfd.h (gdb_bfd_map_section): Update description.
15209 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15211 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
15213 (linux_ptrace_attach_fail_reason_string): Likewise.
15214 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
15216 (linux_ptrace_attach_fail_reason_string): Likewise.
15217 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
15219 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15221 * linux-nat.c (linux_nat_attach): Remove xstrdup.
15223 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
15226 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
15227 checking for fs_base/gs_base fields in struct user_regs_struct.
15228 * configure: Regenerate.
15230 2018-01-17 Yao Qi <yao.qi@linaro.org>
15232 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
15234 (aarch64_linux_init_abi): Install it to gdbarch hook
15235 gcc_target_options.
15237 2018-01-15 Pedro Alves <palves@redhat.com>
15239 * common/signals-state-save-restore.c
15240 (save_original_signals_state): Fix typos.
15242 2017-01-12 Tom Tromey <tom@tromey.com>
15243 Sergio Durigan Junior <sergiodj@redhat.com>
15245 * Makefile.in (install-only): Install gdb-add-index.
15247 2018-01-12 John Baldwin <jhb@FreeBSD.org>
15249 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
15251 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
15253 * infrun.c (keep_going_pass_signal): Clear step-over info when
15254 insert_breakpoints fails.
15256 2018-01-11 Pedro Alves <palves@redhat.com>
15259 * infrun.c (resume): Rename to ...
15260 (resume_1): ... this.
15261 (resume): Reimplement as wrapper around resume_1.
15263 2018-01-11 Pedro Alves <palves@redhat.com>
15266 * remote.c (remote_parse_stop_reply): Default to the last-set
15267 general thread instead of to 'magic_null_ptid'.
15269 2018-01-10 Pedro Alves <palves@redhat.com>
15271 * language.h (language_get_symbol_name_matcher): Rename ...
15272 (get_symbol_name_matcher): ... this.
15273 * language.c (language_get_symbol_name_matcher): Ditto.
15274 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
15277 2018-01-10 Pedro Alves <palves@redhat.com>
15281 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
15282 Adjust to use language_get_symbol_name_matcher instead of
15283 language_defn::la_get_symbol_name_matcher.
15284 * language.c (language_get_symbol_name_matcher): If in Ada mode
15285 and the lookup name is a verbatim match, return Ada's matcher.
15286 * language.h (language_get_symbol_name_matcher): Adjust comment.
15287 (ada_lookup_name_info::verbatim_p):: New method.
15289 2018-01-10 Pedro Alves <palves@redhat.com>
15292 * ada-lang.c (ada_collect_symbol_completion_matches): If the
15293 minsym's language is language_auto or language_cplus, pass down
15294 language_ada instead.
15295 * symtab.c (compare_symbol_name): Don't frob symbol language here.
15297 2018-01-10 Pedro Alves <palves@redhat.com>
15300 * minsyms.c (linkage_name_str): New function.
15301 (iterate_over_minimal_symbols): Use it.
15303 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15305 * NEWS: Document that 'info proc' now works on FreeBSD.
15307 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15309 * configure.ac: Check for kinfo_getfile in libutil.
15310 * configure: Regenerate.
15311 * config.in: Regenerate.
15312 * fbsd-nat.c: Include "fbsd-tdep.h".
15313 (fbsd_fetch_cmdline): New.
15314 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
15315 rather than calling error.
15316 (fbsd_info_proc): New.
15317 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
15318 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
15319 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
15321 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15323 * fbsd-nat.c (struct free_deleter): Remove.
15324 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
15326 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15328 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
15329 NULL for an empty pathname.
15331 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15333 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
15334 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
15335 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
15336 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
15337 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
15338 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
15339 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
15340 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
15341 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
15342 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
15343 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
15344 (fbsd_core_fetch_timeval, fbsd_print_sigset)
15345 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
15346 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
15347 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
15349 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
15351 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
15352 (gnu_xfer_auxv): New function.
15353 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
15354 TARGET_OBJECT_AUXV.
15356 2018-01-08 Yao Qi <yao.qi@linaro.org>
15357 Simon Marchi <simon.marchi@ericsson.com>
15359 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
15361 (COMMON_OBS): Remove selftest.o.
15362 * configure.ac: Append selftest-arch.c and common/selftest.c to
15363 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
15364 * configure: Re-generated.
15365 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
15367 (maintenance_info_selftests): Likewise.
15369 2018-01-08 Xavier Roirand <roirand@adacore.com>
15371 * ada-valprint.c (val_print_packed_array_elements): Use
15372 proper number of elements when printing an array indexed
15373 by an enumeration type.
15375 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15377 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
15378 (dw2_get_file_names_reader): Adjust.
15379 (lookup_dwo_signatured_type): Adjust.
15380 (lookup_dwp_signatured_type): Adjust.
15381 (lookup_signatured_type): Adjust.
15382 (create_type_unit_group): Adjust.
15383 (get_type_unit_group): Adjust.
15384 (process_psymtab_comp_unit_reader): Adjust.
15385 (build_type_psymtabs_reader): Adjust.
15386 (scan_partial_symbols): Adjust.
15387 (add_partial_symbol): Adjust.
15388 (add_partial_subprogram): Adjust.
15389 (peek_die_abbrev): Adjust.
15390 (fixup_go_packaging): Adjust.
15391 (process_imported_unit_die): Adjust.
15392 (dwarf2_compute_name): Adjust.
15393 (dwarf2_physname): Adjust.
15394 (read_import_statement): Adjust.
15395 (handle_DW_AT_stmt_list): Adjust.
15396 (read_file_scope): Adjust.
15397 (read_func_scope): Adjust.
15398 (read_lexical_block_scope): Adjust.
15399 (read_call_site_scope): Adjust.
15400 (read_variable): Adjust.
15401 (dwarf2_rnglists_process): Adjust.
15402 (dwarf2_ranges_process): Adjust.
15403 (dwarf2_ranges_read): Adjust.
15404 (dwarf2_get_pc_bounds): Adjust.
15405 (dwarf2_record_block_ranges): Adjust.
15406 (dwarf2_add_field): Adjust.
15407 (dwarf2_add_member_fn): Adjust.
15408 (read_structure_type): Adjust.
15409 (process_structure_scope): Adjust.
15410 (read_enumeration_type): Adjust.
15411 (read_array_type): Adjust.
15412 (mark_common_block_symbol_computed): Adjust.
15413 (read_common_block): Adjust.
15414 (read_namespace_type): Adjust.
15415 (read_namespace): Adjust.
15416 (read_module_type): Adjust.
15417 (read_tag_pointer_type): Adjust.
15418 (read_tag_ptr_to_member_type): Adjust.
15419 (read_tag_string_type): Adjust.
15420 (read_subroutine_type): Adjust.
15421 (read_typedef): Adjust.
15422 (read_base_type): Adjust.
15423 (attr_to_dynamic_prop): Adjust.
15424 (read_subrange_type): Adjust.
15425 (read_unspecified_type): Adjust.
15426 (dwarf2_read_abbrevs): Adjust.
15427 (load_partial_dies): Adjust.
15428 (read_partial_die): Adjust.
15429 (find_partial_die): Adjust.
15430 (guess_partial_die_structure_name): Adjust.
15431 (fixup_partial_die): Adjust.
15432 (read_attribute_value): Adjust.
15433 (read_addr_index): Adjust.
15434 (read_addr_index_from_leb128): Adjust.
15435 (read_str_index): Adjust.
15436 (dwarf2_string_attr): Adjust.
15437 (get_debug_line_section): Adjust.
15438 (dwarf_decode_line_header): Adjust.
15439 (lnp_state_machine::check_line_address): Adjust.
15440 (dwarf_decode_lines_1): Adjust.
15441 (dwarf_decode_lines): Adjust.
15442 (dwarf2_start_symtab): Adjust.
15443 (var_decode_location): Adjust.
15444 (new_symbol_full): Adjust.
15445 (dwarf2_const_value_data): Adjust.
15446 (dwarf2_const_value_attr): Adjust.
15447 (dwarf2_const_value): Adjust.
15448 (die_type): Adjust.
15449 (die_containing_type): Adjust.
15450 (build_error_marker_type): Adjust.
15451 (lookup_die_type): Adjust.
15452 (guess_full_die_structure_name): Adjust.
15453 (anonymous_struct_prefix): Adjust.
15454 (determine_prefix): Adjust.
15455 (dwarf2_name): Adjust.
15456 (follow_die_ref_or_sig): Adjust.
15457 (follow_die_offset): Adjust.
15458 (follow_die_ref): Adjust.
15459 (follow_die_sig_1): Adjust.
15460 (follow_die_sig): Adjust.
15461 (get_signatured_type): Adjust.
15462 (get_DW_AT_signature_type): Adjust.
15463 (decode_locdesc): Adjust.
15464 (dwarf_decode_macros): Adjust.
15465 (cu_debug_loc_section): Adjust.
15466 (fill_in_loclist_baton): Adjust.
15467 (dwarf2_symbol_mark_computed): Adjust.
15468 (init_one_comp_unit): Don't assign
15469 dwarf2_cu::dwarf2_per_objfile.
15470 (set_die_type): Adjust.
15472 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15474 * dwarf2read.c (struct mapped_debug_names): Add constructor.
15475 <dwarf2_per_objfile>: New field.
15476 (dwarf2_per_objfile): Remove global.
15477 (get_dwarf2_per_objfile): New function.
15478 (set_dwarf2_per_objfile): New function.
15479 (dwarf2_build_psymtabs_hard): Change objfile parameter to
15480 dwarf2_per_objfile.
15481 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15482 (read_abbrev_offset): Likewise.
15483 (read_indirect_string): Likewise.
15484 (read_indirect_line_string): Likewise.
15485 (read_indirect_string_at_offset): Likewise.
15486 (read_indirect_string_from_dwz): Likewise.
15487 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15488 dwarf2_per_objfile.
15489 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15490 (create_all_comp_units): Change objfile parameter to
15491 dwarf2_per_objfile.
15492 (create_all_type_units): Likewise.
15493 (process_queue): Add dwarf2_per_objfile parameter.
15494 (read_and_check_comp_unit_head): Likewise.
15495 (lookup_dwo_unit_in_dwp): Likewise.
15496 (get_dwp_file): Likewise.
15497 (process_cu_includes): Likewise.
15498 (struct free_dwo_file_cleanup_data): New struct.
15499 (dwarf2_has_info): Use get_dwarf2_per_objfile and
15500 set_dwarf2_per_objfile.
15501 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
15502 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
15503 context, adjust calls.
15504 (dw2_instantiate_symtab): Likewise.
15505 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
15506 (dw2_get_cu): Likewise.
15507 (create_cu_from_index_list): Change objfile parameter to
15508 dwarf2_per_objfile.
15509 (create_cus_from_index_list): Get dwarf2_per_objfile from
15510 context, adjust calls.
15511 (create_cus_from_index): Likewise.
15512 (create_signatured_type_table_from_index): Change objfile
15513 parameter to dwarf2_per_objfile.
15514 (create_signatured_type_table_from_debug_names): Change objfile
15515 parameter to dwarf2_per_objfile.
15516 (create_addrmap_from_index): Likewise.
15517 (create_addrmap_from_aranges): Likewise.
15518 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
15519 (dw2_setup): Remove.
15520 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
15522 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
15523 get_dwarf2_per_objfile.
15524 (dw2_forget_cached_source_info): Likewise.
15525 (dw2_map_symtabs_matching_filename): Likewise.
15526 (struct dw2_symtab_iterator) <index>: Remove.
15527 <dwarf2_per_objfile>: New field.
15528 (dw2_symtab_iter_init): Replace index parameter with
15529 dwarf2_per_objfile.
15530 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
15531 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
15532 (dw2_print_stats): Likewise.
15533 (dw2_dump): Likewise.
15534 (dw2_expand_symtabs_for_function): Likewise.
15535 (dw2_expand_all_symtabs): Likewise.
15536 (dw2_expand_symtabs_with_fullname): Likewise.
15537 (dw2_expand_marked_cus): Replace index and objfile parameters
15538 with dwarf2_per_objfile.
15539 (dw_expand_symtabs_matching_file_matcher): Add
15540 dwarf2_per_objfile parameter and adjust calls.
15541 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
15543 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
15544 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
15546 (create_cus_from_debug_names_list): Replace objfile parameter
15547 with dwarf2_per_objfile and adjust calls.
15548 (create_cus_from_debug_names): Likewise.
15549 (dwarf2_read_debug_names): Likewise.
15550 (mapped_debug_names::namei_to_name): Adjust call.
15551 (dw2_debug_names_iterator::next): Likewise.
15552 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
15553 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
15554 (dw2_debug_names_dump): Likewise.
15555 (dw2_debug_names_expand_symtabs_for_function): Likewise.
15556 (dw2_debug_names_expand_symtabs_matching): Likewise.
15557 (dwarf2_initialize_objfile): Likewise.
15558 (dwarf2_build_psymtabs): Likewise.
15559 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
15561 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
15562 (read_and_check_comp_unit_head): Likewise.
15563 (read_abbrev_offset): Likewise.
15564 (create_debug_type_hash_table): Likewise.
15565 (create_debug_types_hash_table): Likewise.
15566 (create_all_type_units): Replace objfile parameter with
15567 dwarf2_per_objfile.
15568 (add_type_unit): Add dwarf2_per_objfile parameter.
15569 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
15570 with dwarf2_per_objfile.
15571 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
15572 (lookup_dwp_signatured_type): Likewise.
15573 (lookup_signatured_type): Likewise.
15574 (read_cutu_die_from_dwo): Likewise.
15575 (init_tu_and_read_dwo_dies): Likewise.
15576 (init_cutu_and_read_dies): Likewise.
15577 (init_cutu_and_read_dies_no_follow): Likewise.
15578 (allocate_type_unit_groups_table): Add objfile parameter.
15579 (create_type_unit_group): Use dwarf2_per_objfile from cu.
15580 (get_type_unit_group): Likewise.
15581 (process_psymtab_comp_unit): Update call.
15582 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
15583 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
15584 (print_tu_stats): Likewise.
15585 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
15586 in void* parameter.
15587 (build_type_psymtabs): Change objfile parameter to
15588 dwarf2_per_objfile.
15589 (process_skeletonless_type_unit): Use dwarf2_per_objfile
15590 passed in void* parameter.
15591 (process_skeletonless_type_units): Change objfile parameter to
15592 dwarf2_per_objfile.
15593 (set_partial_user): Likewise.
15594 (dwarf2_build_psymtabs_hard): Likewise.
15595 (read_comp_units_from_section): Likewise.
15596 (create_all_comp_units): Likewise.
15597 (scan_partial_symbols): Update calls.
15598 (add_partial_symbol): Likewise.
15599 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
15600 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
15601 (process_queue): Add dwarf2_per_objfile parameter.
15602 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
15603 (compute_compunit_symtab_includes): Likewise.
15604 (process_cu_includes): Add dwarf2_per_objfile parameter.
15605 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
15606 (process_full_type_unit): Likewise.
15607 (process_imported_unit_die): Update call.
15608 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
15609 (read_file_scope): Likewise.
15610 (allocate_dwo_file_hash_table): Add objfile parameter.
15611 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
15612 (create_cus_hash_table): Likewise.
15613 (create_dwp_hash_table): Likewise.
15614 (create_dwo_unit_in_dwp_v1): Likewise.
15615 (create_dwp_v2_section): Likewise.
15616 (create_dwo_unit_in_dwp_v2): Likewise.
15617 (lookup_dwo_unit_in_dwp): Likewise.
15618 (try_open_dwop_file): Likewise.
15619 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
15620 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
15621 cleanup to include a reference to dwarf2_per_objfile.
15622 (open_dwp_file): Add dwarf2_per_objfile parameter.
15623 (open_and_init_dwp_file): Likewise.
15624 (get_dwp_file): Likewise.
15625 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
15626 (queue_and_load_all_dwo_tus): Update call.
15627 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
15629 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
15630 (dwarf2_ranges_process): Likewise.
15631 (dwarf2_get_pc_bounds): Likewise.
15632 (mark_common_block_symbol_computed): Likewise.
15633 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15634 (dwarf2_read_abbrevs): Update call.
15635 (read_partial_die): Use dwarf2_per_objfile from cu.
15636 (find_partial_die): Likewise.
15637 (fixup_partial_die): Likewise.
15638 (read_attribute_value): Likewise.
15639 (read_indirect_string_at_offset_from): Add objfile parameter.
15640 (read_indirect_string_at_offset): Add dwarf2_per_objfile
15642 (read_indirect_string_from_dwz): Add objfile parameter.
15643 (read_indirect_string): Add objfile parameter.
15644 (read_addr_index_1): Add dwarf2_per_objfile parameter.
15645 (read_addr_index): Use dwarf2_per_objfile from cu.
15646 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
15648 (read_str_index): Use dwarf2_per_objfile from cu.
15649 (get_debug_line_section): Likewise.
15650 (read_formatted_entries): Add dwarf2_per_objfile parameter.
15651 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
15652 (new_symbol_full): Use dwarf2_per_objfile from cu.
15653 (build_error_marker_type): Likewise.
15654 (lookup_die_type): Likewise.
15655 (determine_prefix): Likewise.
15656 (follow_die_offset): Likewise.
15657 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
15658 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
15659 (dwarf2_fetch_die_type_sect_off): Likewise.
15660 (dwarf2_get_die_type): Likewise.
15661 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
15662 (get_signatured_type): Likewise.
15663 (get_DW_AT_signature_type): Likewise.
15664 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
15665 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
15666 (cu_debug_loc_section): Likewise.
15667 (fill_in_loclist_baton): Likewise.
15668 (dwarf2_symbol_mark_computed): Likewise.
15669 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15670 dwarf2_per_objfile.
15671 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
15673 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15674 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
15675 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
15676 (set_die_type): Use dwarf2_free_objfile from cu.
15677 (get_die_type_at_offset): Likewise.
15678 (dwarf2_per_objfile_free): Don't assign global variable.
15679 (debug_names) <constructor>: Add dwarf2_per_objfile
15680 parameter, update m_debugstrlookup construction.
15681 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
15683 <m_dwarf2_per_objfile>: New field.
15684 <lookup>: Use m_dwarf2_per_objfile.
15685 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
15686 (psyms_seen_size): Likewise.
15687 (write_gdbindex): Replace objfile parameter with
15688 dwarf2_per_objfile.
15689 (write_debug_names): Likewise.
15690 (write_psymtabs_to_index): Likewise.
15691 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
15694 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15696 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
15697 <dwarf2_per_objfile>: New field.
15698 (struct dwarf2_per_cu_data) <objfile>: Remove.
15699 <dwarf2_per_objfile>: New field.
15700 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
15702 (create_signatured_type_table_from_index): Likewise.
15703 (create_debug_type_hash_table): Likewise.
15704 (fill_in_sig_entry_from_dwo_entry): Likewise.
15705 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
15706 (create_type_unit_group): Assign dwarf2_per_objfile instead of
15708 (create_partial_symtab): Access objfile through
15709 dwarf2_per_objfile.
15710 (process_psymtab_comp_unit_reader): Likewise.
15711 (read_comp_units_from_section): Likewise.
15712 (scan_partial_symbols): Likewise.
15713 (add_partial_symbol): Likewise.
15714 (add_partial_subprogram): Likewise.
15715 (peek_die_abbrev): Likewise.
15716 (fixup_go_packaging): Likewise.
15717 (process_full_comp_unit): Likewise.
15718 (process_full_type_unit): Likewise.
15719 (process_imported_unit_die): Likewise.
15720 (dwarf2_compute_name): Likewise.
15721 (dwarf2_physname): Likewise.
15722 (read_import_statement): Likewise.
15723 (create_cus_hash_table): Assign dwarf2_physname instead of
15725 (read_func_scope): Access objfile through dwarf2_per_objfile.
15726 (read_lexical_block_scope): Likewise.
15727 (read_call_site_scope): Likewise.
15728 (read_variable): Likewise.
15729 (dwarf2_rnglists_process): Likewise.
15730 (dwarf2_ranges_process): Likewise.
15731 (dwarf2_ranges_read): Likewise.
15732 (dwarf2_record_block_ranges): Likewise.
15733 (dwarf2_add_field): Likewise.
15734 (dwarf2_add_member_fn): Likewise.
15735 (read_structure_type): Likewise.
15736 (process_structure_scope): Likewise.
15737 (read_enumeration_type): Likewise.
15738 (read_array_type): Likewise.
15739 (read_common_block): Likewise.
15740 (read_namespace_type): Likewise.
15741 (read_namespace): Likewise.
15742 (read_module_type): Likewise.
15743 (read_tag_pointer_type): Likewise.
15744 (read_tag_ptr_to_member_type): Likewise.
15745 (read_tag_string_type): Likewise.
15746 (read_subroutine_type): Likewise.
15747 (read_typedef): Likewise.
15748 (read_base_type): Likewise.
15749 (attr_to_dynamic_prop): Likewise.
15750 (read_subrange_type): Likewise.
15751 (read_unspecified_type): Likewise.
15752 (load_partial_dies): Likewise.
15753 (read_partial_die): Likewise.
15754 (find_partial_die): Likewise.
15755 (guess_partial_die_structure_name): Likewise.
15756 (fixup_partial_die): Likewise.
15757 (read_attribute_value): Likewise.
15758 (read_addr_index_from_leb128): Likewise.
15759 (dwarf2_read_addr_index): Likewise.
15760 (dwarf2_string_attr): Likewise.
15761 (lnp_state_machine::check_line_address): Likewise.
15762 (dwarf_decode_lines_1): Likewise.
15763 (dwarf_decode_lines): Likewise.
15764 (dwarf2_start_symtab): Likewise.
15765 (var_decode_location): Likewise.
15766 (new_symbol_full): Likewise.
15767 (dwarf2_const_value_data): Likewise.
15768 (dwarf2_const_value_attr): Likewise.
15769 (dwarf2_const_value): Likewise.
15770 (die_type): Likewise.
15771 (die_containing_type): Likewise.
15772 (lookup_die_type): Likewise.
15773 (guess_full_die_structure_name): Likewise.
15774 (anonymous_struct_prefix): Likewise.
15775 (dwarf2_name): Likewise.
15776 (follow_die_ref_or_sig): Likewise.
15777 (follow_die_offset): Likewise.
15778 (follow_die_ref): Likewise.
15779 (dwarf2_fetch_die_loc_sect_off): Likewise.
15780 (dwarf2_fetch_constant_bytes): Likewise.
15781 (dwarf2_fetch_die_type_sect_off): Likewise.
15782 (dwarf2_get_die_type): Likewise.
15783 (follow_die_sig): Likewise.
15784 (decode_locdesc): Likewise.
15785 (dwarf2_per_cu_objfile): Likewise.
15786 (dwarf2_per_cu_text_offset): Likewise.
15787 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
15789 (set_die_type): Access objfile through
15790 dwarf2_per_objfile.
15792 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15794 * valprint.c (converted_character_d): Remove typedef.
15795 (DEF_VEC_O (converted_character_d)): Remove.
15796 (count_next_character): Use std::vector.
15797 (print_converted_chars_to_obstack): Likewise.
15798 (generic_printstr): Likewise.
15800 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15802 * xml-support.h (struct gdb_xml_value): Add constructor.
15803 <value>: Change type to unique_xmalloc_ptr.
15804 (gdb_xml_value_s): Remove typedef.
15805 (DEF_VEC_O (gdb_xml_value_s)): Remove.
15806 (gdb_xml_element_start_handler): Change parameter type to
15808 (xml_find_attribute): Likewise.
15809 * xml-support.c (xml_find_attribute): Change parameter type to
15810 std::vector and adjust.
15811 (gdb_xml_values_cleanup): Remove.
15812 (gdb_xml_parser::start_element): Adjust to std::vector.
15813 (xinclude_start_include): Change paraeter type to std::vector
15815 * btrace.c (check_xml_btrace_version): Likewise.
15816 (parse_xml_btrace_block): Likewise.
15817 (parse_xml_btrace_pt_config_cpu): Likewise.
15818 (parse_xml_btrace_pt): Likewise.
15819 (parse_xml_btrace_conf_bts): Likewise.
15820 (parse_xml_btrace_conf_pt): Likewise.
15821 * memory-map.c (memory_map_start_memory): Likewise.
15822 (memory_map_start_property): Likewise.
15823 * osdata.c (osdata_start_osdata): Likewise.
15824 (osdata_start_item): Likewise.
15825 (osdata_start_column): Likewise.
15826 * remote.c (start_thread): Likewise.
15827 * solib-aix.c (library_list_start_library): Likewise.
15828 (library_list_start_list): Likewise.
15829 * solib-svr4.c (library_list_start_library): Likewise.
15830 (svr4_library_list_start_list): Likewise.
15831 * solib-target.c (library_list_start_segment): Likewise.
15832 (library_list_start_section): Likewise.
15833 (library_list_start_library): Likewise.
15834 (library_list_start_list): Likewise.
15835 * tracepoint.c (traceframe_info_start_memory): Likewise.
15836 (traceframe_info_start_tvar): Likewise.
15837 * xml-syscall.c (syscall_start_syscall): Likewise.
15838 * xml-tdesc.c (tdesc_start_target): Likewise.
15839 (tdesc_start_feature): Likewise.
15840 (tdesc_start_reg): Likewise.
15841 (tdesc_start_union): Likewise.
15842 (tdesc_start_struct): Likewise.
15843 (tdesc_start_flags): Likewise.
15844 (tdesc_start_enum): Likewise.
15845 (tdesc_start_field): Likewise.
15846 (tdesc_start_enum_value): Likewise.
15847 (tdesc_start_vector): Likewise.
15849 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15851 * extension.h (struct xmethod_worker) <clone>: Remove.
15852 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
15854 (python_xmethod_worker::clone): Remove.
15855 * valops.c (find_overload_match): Use std::move instead of
15858 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15860 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
15861 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
15862 <free_xmethod_worker_data>: Remove.
15863 <get_matching_xmethod_workers>: Chance VEC to std::vector.
15864 <get_xmethod_arg_types>: Remove.
15865 <get_xmethod_result_type>: Remove.
15866 <invoke_xmethod>: Remove.
15867 * extension.c (new_xmethod_worker): Remove.
15868 (clone_xmethod_worker): Remove.
15869 (get_matching_xmethod_workers): Return void, pass std::vector by
15871 (get_xmethod_arg_types): Rename to...
15872 (xmethod_worker::get_arg_types): ... this, and adjust.
15873 (get_xmethod_result_type): Rename to...
15874 (xmethod_worker::get_result_type): ... this, and adjust.
15875 (invoke_xmethod): Remove.
15876 (free_xmethod_worker): Remove.
15877 (free_xmethod_worker_vec): Remove.
15878 * extension.h (enum ext_lang_rc): Move here from
15880 (struct xmethod_worker): Add constructor and destructor.
15883 <invoke, clone, do_get_result_type, do_get_arg_types>: New
15884 virtual pure methods.
15885 <get_arg_types, get_result_type>: New methods.
15886 (xmethod_worker_ptr): Remove typedef.
15887 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
15888 (xmethod_worker_vec): Remove typedef.
15889 (xmethod_worker_up): New typedef.
15890 (invoke_xmethod): Remove.
15891 (clone_xmethod_worker): Remove.
15892 (free_xmethod_worker): Remove.
15893 (free_xmethod_worker_vec): Remove.
15894 (get_xmethod_arg_types): Remove.
15895 (get_xmethod_result_type): Remove.
15896 * valops.c (find_method_list): Use std::vector, don't use
15897 intermediate vector.
15898 (value_find_oload_method_list): Use std::vector.
15899 (find_overload_match): Use std::vector.
15900 (find_oload_champ): Use std::vector.
15901 * value.c (value_free): Use operator delete.
15902 (value_of_xmethod): Rename to...
15903 (value_from_xmethod): ... this. Don't assign
15904 xmethod_worker::value, take rvalue-reference.
15905 (result_type_of_xmethod): Adjust.
15906 (call_xmethod): Adjust.
15907 * value.h: Include extension.h.
15908 (struct xmethod_worker): Don't forward-declare.
15909 (value_of_xmethod): Rename to...
15910 (value_from_xmethod): ... this, take rvalue-reference.
15911 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
15912 (struct python_xmethod_worker): ... this, add constructor and
15914 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
15915 (gdbpy_free_xmethod_worker_data): Rename to...
15916 (python_xmethod_worker::~python_xmethod_worker): ... this and
15918 (gdbpy_clone_xmethod_worker_data): Rename to...
15919 (python_xmethod_worker::clone): ... this and adjust.
15920 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
15922 (gdbpy_get_xmethod_arg_types): Rename to...
15923 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
15924 (gdbpy_get_xmethod_result_type): Rename to...
15925 (python_xmethod_worker::do_get_result_type): ... this and
15927 (gdbpy_invoke_xmethod): Rename to...
15928 (python_xmethod_worker::invoke): ... this and adjust.
15929 (new_python_xmethod_worker): Rename to...
15930 (python_xmethod_worker::python_xmethod_worker): ... this and
15932 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
15934 (gdbpy_free_xmethod_worker_data): Remove.
15935 (gdbpy_get_matching_xmethod_workers): Use std::vector.
15936 (gdbpy_get_xmethod_arg_types): Remove.
15937 (gdbpy_get_xmethod_result_type): Remove.
15938 (gdbpy_invoke_xmethod): Remove.
15939 * python/python.c (python_extension_ops): Remove obsolete
15942 2018-01-05 Pedro Alves <palves@redhat.com>
15945 * common/signals-state-save-restore.c
15946 (save_original_signals_state): New parameter 'quiet'. Warn if we
15947 find a custom handler preinstalled, instead of internal erroring.
15948 But only warn if !quiet.
15949 * common/signals-state-save-restore.h
15950 (save_original_signals_state): New parameter 'quiet'.
15951 * main.c (captured_main_1): Move save_original_signals_state call
15952 after option handling, and pass QUIET.
15954 2018-01-05 Pedro Alves <palves@redhat.com>
15956 * spu-tdep.c (spu_catch_start): Pass
15957 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
15959 2018-01-05 Pedro Alves <palves@redhat.com>
15962 * ada-lang.c (literal_symbol_name_matcher): New function.
15963 (ada_get_symbol_name_matcher): Use it for
15964 symbol_name_match_type::SEARCH_NAME.
15965 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
15966 it down instead of assuming symbol_name_match_type::FULL.
15967 * block.h (block_lookup_symbol): New parameter 'match_type'.
15968 * c-valprint.c (print_unpacked_pointer): Use
15969 lookup_symbol_search_name instead of lookup_symbol.
15970 * compile/compile-object-load.c (get_out_value_type): Pass down
15971 symbol_name_match_type::SEARCH_NAME.
15972 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
15973 symbol_name_match_type::FULL.
15974 * cp-support.c (cp_get_symbol_name_matcher): Handle
15975 symbol_name_match_type::SEARCH_NAME.
15976 * infrun.c (insert_exception_resume_breakpoint): Use
15977 lookup_symbol_search_name.
15978 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
15979 * psymtab.c (maintenance_check_psymtabs): Use
15980 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
15981 * stack.c (print_frame_args): Use lookup_symbol_search_name and
15982 SYMBOL_SEARCH_NAME.
15983 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
15984 if symbol_name_match_type::SEARCH_NAME.
15985 (lookup_symbol_in_language): Pass down
15986 symbol_name_match_type::FULL.
15987 (lookup_symbol_search_name): New.
15988 (lookup_language_this): Pass down
15989 symbol_name_match_type::SEARCH_NAME.
15990 (lookup_symbol_aux, lookup_local_symbol): New parameter
15991 'match_type'. Pass it down.
15992 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
15993 (lookup_symbol_search_name): New declaration.
15994 (lookup_symbol_in_block): New 'match_type' parameter.
15996 2018-01-05 Pedro Alves <palves@redhat.com>
15999 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
16001 (ada_lookup_symbol): Reimplement in terms of
16002 ada_lookup_symbol_list, bits factored out from
16003 ada_lookup_encoded_symbol.
16005 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16007 * ada-exp.y (write_object_renaming): When subscripting an array
16008 using a symbol as the index, pass the block in call to
16009 ada_lookup_encoded_symbol when looking that symbol up.
16011 2018-01-05 Jerome Guitton <guitton@adacore.com>
16013 * ada-lang.c (ada_array_length): Use ada_index_type instead of
16016 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16018 * ada-lang.c (ada_to_fixed_value_create): Add handling of
16019 the case where VALUE_LVAL (val0) is not lval_memory.
16021 2018-01-05 Xavier Roirand <roirand@adacore.com>
16023 * ada-valprint.c (print_optional_low_bound): Handle
16024 character-indexed array printing like boolean-indexed array
16027 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16029 * NEWS: Create a new section for the next release branch.
16030 Rename the section of the current branch, now that it has
16033 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16035 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
16036 * version.in: Bump version to 8.1.50.DATE-git.
16038 2018-01-03 Xavier Roirand <roirand@adacore.com>
16040 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
16042 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
16044 (default_exception_support_info) <catch_handlers_sym>: Add field.
16045 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
16046 (ada_exception_name_addr_1): Add "catch handlers" handling.
16047 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
16048 Update all callers.
16049 (create_excep_cond_exprs) <ex>: Add parameter.
16050 (re_set_exception): Update create_excep_cond_exprs call.
16051 (print_it_exception, print_one_exception, print_mention_exception)
16052 (print_recreate_exception): Add "catch handler" handling.
16053 (allocate_location_catch_handlers, re_set_catch_handlers)
16054 (check_status_catch_handlers, print_it_catch_handlers)
16055 (print_one_catch_handlers, print_mention_catch_handlers)
16056 (print_recreate_catch_handlers): New function.
16057 (catch_handlers_breakpoint_ops): New variable.
16058 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
16059 Add parameter. Add "catch handler" handling.
16060 (ada_exception_sym_name, ada_exception_breakpoint_ops):
16061 Add "catch handler" handling.
16062 (ada_exception_catchpoint_cond_string): Add "catch handler"
16064 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
16066 (catch_ada_handlers_command): New function.
16067 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
16068 operations structure.
16069 (_initialize_ada_language): Add "catch handlers" command entry.
16070 * NEWS: Document "catch handlers" feature.
16072 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16074 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
16075 account when creating the array type of the slice.
16076 (ada_value_slice): Likewise.
16078 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16080 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
16082 (create_array_type_with_stride): Add byte_stride_prop parameter.
16083 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
16084 New parameter. Update all callers in this file.
16085 (array_type_has_dynamic_stride): New function.
16086 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
16087 of arrays with dynamic byte strides.
16088 * dwarf2read.c (read_array_type): Add support for dynamic
16089 DW_AT_byte_stride attributes.
16091 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16093 * dwarf2read.c (read_unspecified_type): Treat
16094 DW_TAG_enumeration_type DIEs from Ada units as stubs.
16096 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16098 Update copyright year range in all GDB files.
16100 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
16102 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
16103 and gdb/testsuite/gdb.base/step-line.c.
16105 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16107 * copyright.py (main): Dump the contents of
16108 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
16109 even if BY_HAND is empty.
16111 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16113 * top.c (print_gdb_version): Update Copyright year in version
16116 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16118 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
16120 For older changes see ChangeLog-2017.
16126 version-control: never