1 2018-08-16 Tom Tromey <tom@tromey.com>
3 * top.c (read_command_file): Update.
4 (command_line_input): Remove "repeat" argument.
5 * ada-lang.c (get_selections): Update.
6 * linespec.c (decode_line_2): Update.
7 * defs.h (command_line_input): Remove argument.
8 * cli/cli-script.c (read_next_line): Update.
9 * python/py-gdb-readline.c: Update.
11 2018-08-17 Tom Tromey <tom@tromey.com>
13 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
16 2018-08-15 Tom Tromey <tom@tromey.com>
18 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
20 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
22 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
23 If used, use find_pc_partial_function to find address range
25 * mi/mi-main.c (mi_cmd_list_features): Report
26 "data-disassemble-a-option" feature.
27 * NEWS: Mention new -data-disassemble option -a.
29 2018-08-13 Tom Tromey <tom@tromey.com>
31 * common/common-defs.h (_FORTIFY_SOURCE): Define.
33 2018-08-13 Alan Hayward <alan.hayward@arm.com>
35 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
36 (aarch64_linux_collect_sve_regset): Likewise.
37 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
38 * regcache.h (regcache_map_entry_size): New function.
40 2018-08-13 Alan Hayward <alan.hayward@arm.com>
42 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
43 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
44 (SVE_HEADER_VL_LENGTH): Likewise.
45 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
46 (SVE_HEADER_FLAGS_LENGTH): Likewise.
47 (SVE_HEADER_RESERVED_LENGTH): Likewise.
48 (SVE_HEADER_SIZE_OFFSET): Likewise.
49 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
50 (SVE_HEADER_VL_OFFSET): Likewise.
51 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
52 (SVE_HEADER_FLAGS_OFFSET): Likewise.
53 (SVE_HEADER_RESERVED_OFFSET): Likewise.
54 (SVE_HEADER_SIZE): Likewise.
55 (aarch64_linux_core_read_vq): Add function.
56 (aarch64_linux_core_read_description): Check for SVE section.
58 2018-08-13 Alan Hayward <alan.hayward@arm.com>
61 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
63 * aarch64-linux-tdep.c
64 (aarch64_linux_iterate_over_regset_sections): Likewise.
66 (alpha_linux_iterate_over_regset_sections):
68 (alphanbsd_iterate_over_regset_sections): Likewise.
70 (amd64fbsd_iterate_over_regset_sections): Likewise.
72 (amd64_linux_iterate_over_regset_sections): Likewise.
74 (armbsd_iterate_over_regset_sections): Likewise.
76 (arm_fbsd_iterate_over_regset_sections): Likewise.
78 (arm_linux_iterate_over_regset_sections): Likewise.
79 * corelow.c (get_core_registers_cb): Likewise.
80 (core_target::fetch_registers): Likewise.
81 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
82 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
83 * gdbarch.h (void): Regenerate.
84 * gdbarch.sh: Add supply_size and collect_size.
85 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
86 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
87 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
88 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
89 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
90 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
91 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
92 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
93 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
94 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
95 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
96 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
97 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
98 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
99 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
100 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
101 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
102 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
103 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
104 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
105 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
106 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
107 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
108 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
109 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
110 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
111 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
112 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
113 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
114 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
116 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
118 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
121 2018-08-10 Keith Seitz <keiths@redhat.com>
123 * compile/compile-c-support.c (add_code_header, add_code_footer):
124 Move into policy class.
125 (c_push_user_expression, pop_user_expression_nop)
126 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
127 (compile_program): New host class.
128 (c_compile_program): New typedef.
129 (c_compute_porgram): Use c_compile_program.
131 2018-08-10 Keith Seitz <keiths@redhat.com>
133 * compile/compile-internal.h (compile_instance::~compile_instance):
134 Remove calls to htab_delete.
135 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
136 * compile.c (compile_instance::compile_instance): Initialize
137 htab unique pointers.
138 (compile_instance::get_cached_type, compile_instance::insert_type)
139 (compile_instance::error_symbol_once): Update for unique_ptr.
141 2018-08-10 Keith Seitz <keiths@redhat.com>
143 * compile/compile-c-symbols.c (struct symbol_error)
144 (hash_symbol_error, eq_symbol_error, del_symbol_error)
145 (compile_instance::insert_symbol_error)
146 (compile_instance::error_symbol_once): Move to ...
147 * compile/compile.c: ... here.
149 2018-08-10 Keith Seitz <keiths@redhat.com>
151 * compile/compile-c-support.c (c_get_compile_context): Use `new'
152 instead of `new_compile_instance'.
153 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
155 If the symbol error map is not initialized, create it.
156 (generate_c_for_for_one_symbol): Do not check/initialize
157 the symbol error map.
158 * compile/compile-c-types.c (compile_c_instance): Make a class.
160 (compile_instance::compile_instance): Initialize the type cache.
161 (get_cached_type): New function.
162 (insert_type): Update description.
163 (compile_c_instance::m_default_cflags): Define.
164 (convert_type): Update description. Use get_cached_type.
165 (delete_instance): Moved to destructor.
166 (new_compile_instance): Moved to constructor.
167 * compile/compile-c.h (compile_c_instance): Make class inheriting
168 from compile_instance.
169 <base>: Remove field.
170 <type_map, symbol_err_map>: Move to base class.
171 <c_plugin>: Rename to `m_plugin' and remove pointer type.
172 * compile/compile-internal.h (compile_instance): Make class.
173 <type_map_t, symbol_err_map_t>: Define.
174 <fe>: Rename to `m_gcc_fe'.
175 <scope, block, gcc_target_options>: Add `m_' prefix.
176 <m_type_map, m_symbol_err_map>: New fields, moved from
179 (convert_type, new_compile_instance): Remove.
180 * compile/compile.c (cleanup_compile_instance): Remove.
181 (compile_to_object): Use unique_ptr to eliminate cleanups.
182 (compile_instance::set_print_callback, compile_instance::version)
183 (compile_instance::set_verbose)
184 (compile_instance::set_driver_filename)
185 (compile_instance::set_triplet_regexp)
186 (compile_instance::set_arguments)
187 (compile_instance::set_source_file)
188 (compile_instance::compile): Define.
190 2018-08-10 Keith Seitz <keiths@redhat.com>
192 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
193 * compile/compile-c-types.c: Define GCC_METHODN macros and include
194 gcc-c-fe.def to define C plugin.
195 (delete_instance): Delete `c_plugin'.
196 (new_compile_instance): Initialize `c_plugin'.
197 * compile/compile-c.h: Include gcc_c_plugin.h.
198 (struct compile_c_instance) <c_plugin>: New member.
199 * gcc-c-plugin.h: New file.
200 Update all callers with API change.
202 2018-08-10 Keith Seitz <keiths@redhat.com>
204 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
205 (HFILES_NO_SRCDIR): ... to here.
206 Add compile-internal.h and compile-c.h.
207 * compile/compile-c-support.c: Include compile-c.h.
208 * compile/compile-c-symbols.c: Include compile-c.h.
209 (generate_c_for_variable_locations): Update comment.
210 * compile/compile-c-types.c: Include compile-c.h.
211 * compile/compile-c.h: New file -- moved C language declarations
212 from other files here.
213 * compile/compile-internal.h: Do not include hashtab.h or
215 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
216 (gcc_convert_symbol, gcc_symbol_address)
217 (generate_c_for_variable_locations, c_get_mode_for_size)
218 (c_get_range_decl_name): Definitions moved to compile-c.h.
219 * compile/compile-loc2c.c: Include compile-c.h.
221 2018-08-10 Keith Seitz <keiths@redhat.com>
223 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
224 (c_symbol_substitution_name): ... this.
227 2018-08-10 Keith Seitz <keiths@redhat.com>
229 * compile/compile-c-support.c (c_compute_program): Use
230 unique_xmalloc_ptr to eliminate cleanup.
231 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
232 Return a unique_xmalloc_ptr and eliminate cleanup.
233 * compile/compile-internal.h (generate_c_for_variable_locations):
234 Return unique_xmalloc_ptr and update description.
236 2018-08-10 Alan Hayward <alan.hayward@arm.com>
238 * corelow.c (core_target::get_core_register_section): Rename
239 min_size to section_min_size.
241 2018-08-09 Jim Wilson <jimw@sifive.com>
243 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
244 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
245 * NEWS: Mention new GNU/Linux RISC-V target.
246 * configure.host: Add riscv*-*-linux*.
247 * configure.nat: Add riscv*.
248 * configure.tgt: Add riscv*-*-linux*.
249 * riscv-linux-nat.c: New file.
250 * riscv-linux-tdep.c: New file.
252 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
254 * infrun.c (resume): Make static, add forward declaration.
255 (proceed): Update header comment.
256 * infrun.h (resume): Delete declaration.
258 2018-08-09 Tom Tromey <tom@tromey.com>
260 * riscv-tdep.h: Minor formatting fixes.
262 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
264 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
265 * dwarf-index-cache.c (create_dir_and_check): Likewise.
266 (test_mkdir_recursive): Likewise.
267 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
269 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
271 * valarith.c (value_subscripted_rvalue): If an array is not in
272 memory, and we don't know the upper bound, then we can't know that
273 the requested element exists or not.
275 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
277 * target.c (str_comma_list_concat_elem): Fix typo in comment.
278 (target_options_to_string): Add comment.
280 2018-08-08 Tom Tromey <tom@tromey.com>
282 * unittests/scoped_mmap-selftests.c: Check result of "write".
284 2018-08-08 Jim Wilson <jimw@sifive.com>
286 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
287 (decode_register_index_short): New.
288 (decode_j_type_insn, decode_cj_type_insn): New.
289 (decode_b_type_insn, decode_cb_type_insn): New.
290 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
291 local xlen. Check xlen when decoding ambiguous compressed insns. In
292 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
293 is_c_sw_insn instead of is_sw_insn.
294 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
295 (riscv_software_single_step): New.
296 * riscv-tdep.h (riscv_software_single_step): Declare.
298 * riscv-tdep.c (riscv_isa_xlen): Drop static.
299 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
301 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
304 * target.c (dispose_inferior): Don't dispose of inferiors that are
307 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
309 * remote.c (remote_target::download_tracepoint): Change char* to
312 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
314 * target.h (target_options_to_string): Return an std::string.
315 * target.c (str_comma_list_concat_elem): Return void, use
317 (do_option): Likewise.
318 (target_options_to_string): Return an std::string.
319 * linux-nat.c (linux_nat_target::wait): Adjust.
320 * target-debug.h (target_debug_print_options): Adjust.
322 2018-08-07 Tom Tromey <tom@tromey.com>
324 * Makefile.in (CPPFLAGS): New variable.
325 (INTERNAL_CPPFLAGS): Use it.
327 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
329 * NEWS: Mention the index cache.
331 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
333 * common/pathstuff.h (get_standard_cache_dir): New.
334 * common/pathstuff.c (get_standard_cache_dir): New.
335 * build-id.h (build_id_to_string): New.
336 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
337 DEBUG_STR_SUFFIX): Move to here.
338 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
339 DEBUG_STR_SUFFIX): Move from there.
340 (write_psymtabs_to_index): Make non-static, add basename
341 parameter. Write to temporary files, rename when done.
342 (save_gdb_index_command): Adjust call to
343 write_psymtabs_to_index.
344 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
346 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
347 (get_gdb_index_contents_from_cache): New.
348 (get_gdb_index_contents_from_cache_dwz): New.
349 (dwarf2_initialize_objfile): Read index from cache.
350 (dwarf2_build_psymtabs): Save to index.
351 * dwarf-index-cache.h: New file.
352 * dwarf-index-cache.c: New file.
353 * dwarf-index-write.h: New file.
355 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
357 * gnulib/aclocal.m4: Re-generate.
358 * gnulib/config.in: Re-generate.
359 * gnulib/configure: Re-generate.
360 * gnulib/import/Makefile.am: Re-generate.
361 * gnulib/import/Makefile.in: Re-generate.
362 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
363 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
364 * gnulib/import/m4/mkdir.m4: New file.
365 * gnulib/import/mkdir.c: New file.
366 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
369 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
371 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
372 * common/scoped_mmap.c: New file.
373 * common/scoped_mmap.h (destroy): New method.
374 (~scoped_mmap, reset): Use destroy.
375 (scoped_mmap): New move constructor.
376 (mmap_file): New declaration.
377 * unittests/scoped_mmap-selftests.c (test_normal,
378 test_invalid_filename, run_tests): New functions.
379 (_initialize_scoped_mmap_selftests): Register selftest.
381 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
383 * dwarf2read.c (read_gdb_index_from_section): Rename to...
384 (read_gdb_index_from_buffer): ... this. Remove section
385 parameter, add buffer parameter.
386 (get_gdb_index_contents_ftype,
387 get_gdb_index_contents_dwz_ftype): New typedefs.
388 (dwarf2_read_gdb_index): Add callback parameters to get the
390 (get_gdb_index_contents_from_section): New.
391 (dwarf2_initialize_objfile): Update call to
392 dwarf2_read_gdb_index.
394 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
396 * common/filestuff.h (gdb_fopen_cloexec): New overload.
397 (gdb_open_cloexec): Likewise.
398 * nat/linux-osdata.c (command_from_pid): Use string_printf.
399 (commandline_from_pid): Likewise.
400 (linux_xfer_osdata_threads): Likewise.
401 (linux_xfer_osdata_fds): Likewise.
402 * ada-lang.c (is_package_name): Likewise.
403 * auxv.c (procfs_xfer_auxv): Likewise.
404 * breakpoint.c (print_one_breakpoint_location): Use
406 (print_one_catch_solib): Use string_printf.
407 * coff-pe-read.c (add_pe_exported_sym): Likewise.
408 (add_pe_forwarded_sym): Likewise.
409 * dwarf2read.c (create_type_unit_group): Likewise.
410 (build_error_marker_type): Likewise.
411 * infcall.c (get_function_name): Likewise.
412 * valprint.c (print_converted_chars_to_obstack): Likewise.
413 * xtensa-tdep.c (xtensa_register_type): Likewise.
415 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
417 * remote.c (remote_target::download_tracepoint): Fix format
420 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
422 * tracefile.c: Include common/byte-vector.h.
423 (trace_save): Change type of buf to gdb::byte_vector. Initialize
424 with trace_regblock_size if needed. Update uses of buf.
426 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
428 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
429 std::vector<unsigned char>.
430 * tracepoint.c (collection_list::collection_list): Remove
431 m_regs_mask initializer from initializer list. Resize
432 m_regs_mask using the largest remote register number.
433 (collection_list::add_remote_register): Remove size check on
434 m_regs_mask. Use at to access element.
435 (collection_list::stringify): Change type of temp_buf to
436 gdb::char_vector. Update uses of temp_buf. Resize if needed to
437 stringify the register mask. Use pack_hex_byte for the register
440 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
442 * tracepoint.h (class collection_list) <add_register>: Remove.
443 <add_remote_register, add_ax_registers, add_local_register>:
445 <add_memrange>: Add scope parameter.
446 * tracepoint.c (encode_actions_1): Likewise.
447 (collection_list::add_register): Rename to ...
448 (collection_list::add_remote_register): ... this. Update
450 (collection_list::add_ax_registers, add_local_register): New
452 (collection_list::add_memrange): Add scope parameter. Call
453 add_local_register instead of add_register.
454 (finalize_tracepoint_aexpr): New function.
455 (collection_list::collect_symbol): Update calls to add_memrange.
456 Call add_local_register instead of add_register. Call
457 add_ax_registers. Call finalize_tracepoint_aexpr.
458 (encode_actions_1): Get remote regnos for $reg action. Call
459 add_remote_register, add_ax_registers, and add_local_register.
460 Update call to add_memrange. Call finalize_tracepoint_aexpr.
461 (validate_actionline): Call finalize_tracepoint_aexpr.
463 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
465 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
466 Replace array buf with gdb::char_vector buf, of size
467 get_remote_packet_size (). Replace references to buf and
468 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
469 and xsnprintf with snprintf. Raise errors if the buffer is too
472 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
474 * remote.c (remote_target::download_tracepoint): Fix the has_more
475 predicate in the QTDP action list iteration.
477 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
479 * remote.c (remote_target::download_tracepoint): Fix indentation
482 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
484 * proc-api.c (_initialize_proc_api): Remove c, unused.
485 * procfs.c (procfs_init_inferior): Remove signals, unused.
486 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
489 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
490 Andrew Burgess <andrew.burgess@embecosm.com>
492 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
493 'W_STOPCODE (0)' as this could be ambiguous.
495 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
497 * ser-tcp.c (net_open): Fix thinko when deciding whether to
498 disable TCP's Nagle algorithm (use "ai_protocol" instead of
501 2018-08-02 Tom Tromey <tom@tromey.com>
504 * dwarf2read.c (read_func_scope): Set symtab on template parameter
506 (process_structure_scope): Likewise.
508 2018-08-02 Xavier Roirand <roirand@adacore.com>
511 * darwin-nat.c (darwin_kill_inferior): Fix handling of
514 2018-08-02 Tom Tromey <tom@tromey.com>
516 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
517 (darwin_suspend_inferior, darwin_resume_inferior)
518 (darwin_decode_notify_message, darwin_resume_inferior_threads)
519 (darwin_check_new_threads): Check result of get_darwin_inferior.
521 2018-07-31 Joel Brobecker <brobecker@adacore.com>
525 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
527 * varobj.c (varobj_get_path_expr_parent): Report an error if
528 parent is a dynamic varobj.
530 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
532 * gnulib/aclocal.m4: Re-generate.
533 * gnulib/config.in: Re-generate.
534 * gnulib/configure: Re-generate.
535 * gnulib/import/Makefile.in: Re-generate.
536 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
537 * gnulib/import/m4/onceonly.m4: Re-generate.
539 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
541 * target-descriptions.c (struct xml_test_tdesc): New.
542 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
543 (record_xml_tdesc): Update.
544 (maintenance_check_xml_descriptions): Update.
545 * target-descriptions.h (record_xml_tdesc): Update comment.
547 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
549 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
550 checking array bounds are defined.
552 2018-07-30 Tom Tromey <tom@tromey.com>
554 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
555 irreflexivity violation.
557 2018-07-30 Tom Tromey <tom@tromey.com>
559 * cli/cli-decode.c (lookup_cmd): Remove lint code.
560 * value.c (unpack_long): Remove lint code.
561 * valops.c (value_ind): Remove lint code.
562 * valarith.c (value_x_binop, value_x_unop, value_equal)
563 (value_pos): Remove lint code.
565 2018-07-28 Tom de Vries <tdevries@suse.de>
567 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
568 with undefined upper bound as <optimized out>.
570 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
572 * gcore.in: Rename variable "name" to "prefix". Expand
575 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
577 * windows-nat.c (windows_nat_target::create_inferior): Update to
578 call close() in global namespace.
580 2018-07-26 Tom Tromey <tom@tromey.com>
582 * dwarf-index-write.c (add_address_entry): Don't add objfile
584 * dbxread.c (find_stab_function): Rename from
585 find_stab_function_addr. Return a bound_minimal_symbol.
586 (read_dbx_symtab): Use raw_text_low, raw_text_high.
587 Don't add objfile offsets.
588 (end_psymtab): Use raw_text_low, raw_text_high,
589 MSYMBOL_VALUE_RAW_ADDRESS.
590 (read_ofile_symtab): Update.
591 (process_one_symbol): Update.
592 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
594 (dw2_relocate): Remove.
595 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
597 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
599 (process_psymtab_comp_unit_reader, add_partial_symbol)
600 (add_partial_subprogram, dwarf2_ranges_read): Update.
601 (load_partial_dies): Update.
602 (add_address_entry): Don't add objfile offsets.
603 (dwarf2_build_include_psymtabs): Update.
604 (create_addrmap_from_aranges): Don't add objfile offsets.
605 (dw2_find_pc_sect_compunit_symtab): Update.
606 * mdebugread.c (parse_symbol): Don't add objfile offsets.
607 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
609 (parse_partial_symbols): Don't add objfile offsets. Use
610 raw_text_low, raw_text_high. Update.
611 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
612 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
613 or call 'relocate' quick function. Clear psymbol_map.
614 * psympriv.h (struct partial_symbol) <address>: Add section
616 <set_unrelocated_address>: Rename from set_address.
617 <raw_text_low, raw_text_high>: New methods.
618 <text_low, text_high>: Add objfile parameter.
619 (add_psymbol_to_bcache): Add 'section' parameter. Call
620 set_unrelocated_address.
621 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
622 (find_pc_psymbol): Update.
623 (fixup_psymbol_section, relocate_psymtabs): Remove.
624 (dump_psymtab, psym_functions): Update.
625 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
627 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
628 (start_psymtab_common): Update.
629 * symfile-debug.c (debug_qf_relocate): Remove.
630 (debug_sym_quick_functions): Update.
631 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
632 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
635 2018-07-26 Tom Tromey <tromey@redhat.com>
637 * dbxread.c (end_psymtab): Use text_high_valid and
639 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
640 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
641 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
643 <text_low_valid, text_high_valid>: New fields.
644 <set_text_low, set_text_high>: Update.
645 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
647 2018-07-26 Tom Tromey <tom@tromey.com>
649 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
651 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
652 textlow and texthigh fields.
653 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
655 * mdebugread.c (parse_lines, parse_partial_symbols)
656 (psymtab_to_symtab_1): Update.
657 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
658 Rename fields. Update comment. Now private.
659 <text_low, text_high, set_text_low, set_text_high>: New methods.
660 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
661 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
662 (start_psymtab_common, maintenance_info_psymtabs)
663 (maintenance_check_psymtabs): Update.
664 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
666 (scan_xcoff_symtab): Update.
668 2018-07-26 Tom Tromey <tromey@redhat.com>
670 * psympriv.h (struct partial_symbol) <unrelocated_address,
671 address, set_address>: New methods.
672 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
673 (fixup_psymbol_section, relocate_psymtabs): Update.
674 (print_partial_symbols): Add 'objfile' parameter. Update.
675 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
678 2018-07-26 Tom Tromey <tom@tromey.com>
680 * dwarf-index-write.c (write_psymbols, debug_names::insert)
681 (debug_names::write_psymbols): Update.
682 * psympriv.h (struct partial_symbol): Derive from
684 <obj_section>: New method.
685 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
686 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
687 (find_pc_sect_psymbol, fixup_psymbol_section)
688 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
689 (print_partial_symbols, recursively_search_psymtabs)
690 (compare_psymbols, psymbol_hash, psymbol_compare)
691 (add_psymbol_to_bcache, maintenance_check_psymtabs)
692 (psymbol_name_matches, psym_fill_psymbol_map): Update.
694 2018-07-26 Tom Tromey <tromey@redhat.com>
696 * dbxread.c (end_psymtab): Remove dead code.
698 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
700 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
701 DWARF unwinders are disabled.
702 * dwarf2-frame.c: Add dwarf2read.h include.
703 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
705 (dwarf2_frame_unwinders_enabled_p): Define.
706 (show_dwarf_unwinders_enabled_p): New function.
707 (_initialize_dwarf2_frame): Register switch to control DWARF
709 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
710 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
711 (show_dwarf_cmdlist): Remove static keyword.
712 * dwarf2read.h (set_dwarf_cmdlist): Declare.
713 (show_dwarf_cmdlist): Declare.
714 * NEWS: Document new feature.
716 2018-07-26 Tom de Vries <tdevries@suse.de>
719 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
721 2018-07-26 Tom de Vries <tdevries@suse.de>
723 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
724 DW_AT_count can't be translated to a dynamic prop.
726 2018-07-25 Tom de Vries <tdevries@suse.de>
728 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
731 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
733 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
735 2018-07-25 Joel Brobecker <brobecker@adacore.com>
737 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
739 2018-07-24 Keith Seitz <keiths@redhat.comt
742 * dwarf2read.c (dw2_add_symbol_to_list): New function.
743 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
744 instead of add_symbol_to_list.
745 (read_file_scope): Call prepare_one_comp_unit before reading
748 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
750 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
752 2018-07-24 Tom Tromey <tom@tromey.com>
754 * utils.c (malloc, realloc, free): Don't declare.
755 * configure, config.in: Rebuild.
756 * configure.ac: Don't check for declarations of free, malloc, or
759 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
761 * aarch64-linux-nat.c
762 (aarch64_linux_nat_target::stopped_data_address): Remove unused
764 * arm-linux-nat.c (fetch_regs): Likewise.
765 (store_regs): Likewise.
766 (fetch_vfp_regs): Likewise.
767 (store_vfp_regs): Likewise.
768 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
769 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
770 (arm_linux_nat_target::insert_watchpoint): Likewise.
771 (arm_linux_nat_target::remove_watchpoint): Likewise.
772 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
774 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
776 * ppc-linux-nat.c (fetch_register): Likewise.
777 (fetch_all_gp_regs): Likewise.
778 (fetch_ppc_registers): Likewise.
779 (store_all_gp_regs): Likewise.
780 (store_ppc_registers): Likewise.
781 (hwdebug_insert_point): Likewise.
782 (can_use_watchpoint_cond_accel): Likewise.
783 * remote-sim.c (gdb_os_write_stdout): Likewise.
785 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
786 Tom Tromey <tom@tromey.com>
788 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
790 * configure: Rebuild.
792 2018-07-22 Tom Tromey <tom@tromey.com>
794 * regformats/regdat.sh: Define xmltarget_${name} inside
795 #ifndef IN_PROCESS_AGENT.
797 2018-07-22 Tom Tromey <tom@tromey.com>
799 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
801 2018-07-22 Tom Tromey <tom@tromey.com>
803 * symfile.c (reread_symbols): Notify iter, not objfile.
805 2018-07-22 Tom Tromey <tom@tromey.com>
807 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
809 (ravenscar_thread_target::prepare_to_store): Likewise.
811 2018-07-22 Tom Tromey <tom@tromey.com>
813 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
814 unused variable. Call value_fetch_lazy when needed.
815 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
816 Remove unused variable. Call value_fetch_lazy when needed.
818 2018-07-22 Tom Tromey <tom@tromey.com>
820 * m32c-tdep.c (mark_dma): Return void.
821 (make_regs): Remove unused declarations.
823 2018-07-22 Tom Tromey <tom@tromey.com>
825 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
826 cmdscm_get_valid_command_smob_arg_unsafe for effect.
827 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
828 bkscm_get_valid_block_smob_arg_unsafe for effect.
830 2018-07-22 Tom Tromey <tom@tromey.com>
832 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
835 2018-07-22 Tom Tromey <tom@tromey.com>
837 * windows-nat.c (saved_context): Conditionally define.
838 * remote.c (remote_target::remote_btrace_maybe_reopen):
839 Conditionally declare "warned".
840 * inflow.c (sigquit_ours): Conditionally define.
841 (new_tty): Move "tty" declaration inside #if.
842 * guile/guile.c (guile_datadir): Conditionally define.
843 * charset.c (set_be_le_names): Move some declarations inside #if.
844 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
846 (parse_xml_btrace_conf): Likewise.
848 2018-07-22 Tom Tromey <tom@tromey.com>
850 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
852 2018-07-22 Tom Tromey <tom@tromey.com>
854 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
855 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
856 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
857 * buildsym-legacy.c (get_macro_table): Remove unused variable.
858 * stack.c (frame_apply_level_command): Remove unused variable.
859 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
860 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
861 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
863 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
864 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
865 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
867 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
868 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
870 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
871 Remove unused variable.
872 * cli/cli-script.c (recurse_read_control_structure): Remove unused
874 * common/tdesc.c (print_xml_feature::visit): Remove unused
876 * compile/compile-object-load.c (store_regs): Remove unused
878 * complaints.c (clear_complaints): Remove unused variable.
879 * corelow.c (core_target_open): Remove unused variable.
880 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
882 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
884 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
886 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
888 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
890 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
892 * ia64-tdep.c (examine_prologue): Remove unused variable.
893 * infcall.c (run_inferior_call): Remove unused variable.
894 * inferior.c (exit_inferior): Remove unused variable.
895 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
896 * linespec.c (decode_line_2): Remove unused variable.
897 * linux-nat.c (super_close): Remove.
898 * linux-tdep.c (linux_info_proc): Remove unused variable.
899 * mi/mi-main.c (mi_execute_command): Remove unused variable.
900 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
901 Remove unused variable.
902 * parse.c (find_minsym_type_and_address): Remove unused variable.
903 * printcmd.c (info_symbol_command, printf_floating): Remove unused
905 * python/py-breakpoint.c (bppy_set_commands): Remove unused
907 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
909 * record-btrace.c (record_btrace_target::store_registers): Remove
911 (cmd_show_record_btrace_cpu): Remove unused variable.
912 * riscv-tdep.c (riscv_register_reggroup_p)
913 (riscv_push_dummy_call, riscv_return_value): Remove unused
915 * rust-exp.y (literal): Remove unused variable.
916 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
918 <STRUCTOP_ANONYMOUS>: Likewise.
919 * s390-linux-tdep.c (s390_linux_init_abi_31)
920 (s390_linux_init_abi_64): Remove unused variable.
921 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
922 (file_select_thread, net_windows_open, _initialize_ser_windows):
923 Remove unused variables.
924 * symtab.c (find_pc_sect_line): Remove unused variable.
925 * target-memory.c (compute_garbled_blocks): Remove unused
927 (target_write_memory_blocks): Remove unused variable.
928 * target.c (target_stack::unpush): Remove unused variables.
929 * tracepoint.c (start_tracing, all_tracepoint_actions)
930 (merge_uploaded_trace_state_variables)
931 (print_one_static_tracepoint_marker): Remove unused variable.
932 * unittests/basic_string_view/element_access/char/1.cc (test01):
933 Remove unused variable.
934 * windows-nat.c (windows_continue, windows_add_all_dlls)
935 (do_initial_windows_stuff, windows_nat_target::create_inferior):
936 Remove unused variables.
938 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
940 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
941 attr_profile in HAVE_ELF.
942 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
945 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
947 * frame.c (frame_register_unwind): Change parameter name.
948 (frame_unwind_register): Likewise.
949 (frame_unwind_register_value): Likewise.
950 (frame_unwind_register_signed): Likewise.
951 (frame_unwind_register_unsigned): Likewise.
952 * frame.h (frame_register_unwind): Likewise.
953 (frame_unwind_register): Likewise.
954 (frame_unwind_register_value): Likewise.
955 (frame_unwind_register_signed): Likewise.
956 (frame_unwind_register_unsigned): Likewise.
957 (frame_unwind_arch): Likewise.
959 2018-07-20 Maciej W. Rozycki <macro@mips.com>
961 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
964 2018-07-20 Maciej W. Rozycki <macro@mips.com>
966 * mips-linux-nat.c (mips_linux_nat_target::read_description):
967 Call `get_ptrace_pid' rather than extracting the ptrace PID by
970 2018-07-20 Keith Seitz <keiths@redhat.com>
972 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
973 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
974 m_compunit_symtab, m_language>: Add "m_" prefix.
976 * buildsym.c: Update all uses.
978 2018-07-20 Tom Tromey <tom@tromey.com>
980 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
981 * buildsym.h (record_line_ftype): Remove typedef.
983 2018-07-20 Tom Tromey <tom@tromey.com>
985 * buildsym-legacy.h (augment_type_symtab): Don't declare.
986 (end_expandable_symtab): Likewise.
987 (end_symtab_get_static_block): Likewise.
988 (end_symtab_from_static_block): Likewise.
989 * buildsym-legacy.c (augment_type_symtab): Remove.
990 (end_expandable_symtab): Remove.
991 (end_symtab_get_static_block): Remove.
992 (end_symtab_from_static_block): Remove.
994 2018-07-20 Tom Tromey <tom@tromey.com>
996 * dwarf2read.c: Include buildsym.h.
997 (struct dwarf2_cu) <builder>: New method.
998 (fixup_go_packaging): Update.
999 (process_full_comp_unit, process_full_type_unit): Update. Don't
1000 use scoped_free_pendings.
1001 (using_directives): Add "cu" parameter, remove "language".
1002 (read_import_statement, setup_type_unit_groups, )
1003 (read_func_scope, read_lexical_block_scope)
1004 (dwarf2_record_block_ranges, read_namespace): Update.
1005 (lnp_state_machine::lnp_state_machine): Add cu parameter.
1006 (lnp_state_machine::handle_end_sequence): Update.
1007 (class lnp_state_machine) <m_cu>: New member.
1008 <m_record_line_callback>: Remove.
1009 <m_currently_recording_lines>: New member.
1010 (lnp_state_machine::handle_set_file): Update.
1011 (noop_record_line): Remove.
1012 (dwarf_record_line_p): Add cu parameter.
1013 (dwarf_record_line_1, dwarf_finish_line): Likewise.
1014 (lnp_state_machine::record_line)
1015 (lnp_state_machine::lnp_state_machine)
1016 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
1017 (dwarf_decode_lines): Update.
1018 (dwarf2_start_subfile): Add cu parameter.
1019 (dwarf2_start_symtab, new_symbol): Update.
1020 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
1021 Remove dwarf2_per_objfile parameter.
1022 (dwarf_decode_macros): Update.
1024 2018-07-20 Tom Tromey <tom@tromey.com>
1026 * stabsread.c (define_symbol): Update.
1027 * buildsym-legacy.h (get_buildsym_compunit): Declare.
1028 * dwarf2read.c (new_symbol): Update.
1029 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
1030 * cp-namespace.c: Include buildsym.h.
1031 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
1032 * buildsym-legacy.c (get_buildsym_compunit): New function.
1034 2018-07-20 Tom Tromey <tom@tromey.com>
1036 * xcoffread.c: Include buildsym-legacy.h.
1037 * windows-nat.c: Include buildsym-legacy.h.
1038 * stabsread.c: Include buildsym-legacy.h.
1039 * mdebugread.c: Include buildsym-legacy.h.
1040 * buildsym-legacy.h: New file.
1041 * buildsym-legacy.c: New file, from buildsym.c.
1042 * go32-nat.c: Include buildsym-legacy.h.
1043 * dwarf2read.c: Include buildsym-legacy.h.
1044 * dbxread.c: Include buildsym-legacy.h.
1045 * cp-namespace.c: Include buildsym-legacy.h.
1046 * coffread.c: Include buildsym-legacy.h.
1047 * buildsym.h: Move some contents to buildsym-legacy.h.
1048 * buildsym.c: Include buildsym-legacy.h. Move many functions to
1050 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
1052 2018-07-20 Tom Tromey <tom@tromey.com>
1054 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
1055 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
1056 (buildsym_compunit::buildsym_compunit)
1057 (buildsym_compunit::~buildsym_compunit)
1058 (buildsym_compunit::get_macro_table): Define.
1060 2018-07-20 Tom Tromey <tom@tromey.com>
1062 * buildsym.c (reset_symtab_globals): Remove.
1063 (buildsym_compunit::end_symtab_from_static_block): Update.
1064 (buildsym_compunit::augment_type_symtab): Update.
1065 (end_symtab_from_static_block): Call free_buildsym_compunit.
1066 (augment_type_symtab, end_symtab, end_expandable_symtab):
1069 2018-07-20 Tom Tromey <tom@tromey.com>
1071 * arch-utils.c: Do not include buildsym.h.
1072 * mipsread.c: Do not include buildsym.h.
1073 * machoread.c: Do not include buildsym.h.
1074 * elfread.c: Do not include buildsym.h.
1076 2018-07-20 Tom Tromey <tom@tromey.com>
1078 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
1080 (buildsym_compunit): Add new constructor.
1081 (struct buildsym_compunit) <get_last_source_file, finish_block,
1082 record_block_range, start_subfile, patch_subfile_names,
1083 push_subfile, pop_subfile, record_line, get_compunit_symtab,
1084 set_last_source_start_addr, get_last_source_start_addr,
1085 get_local_using_directives, set_local_using_directives,
1086 get_global_using_directives, outermost_context_p,
1087 get_current_context_stack, get_context_stack_depth,
1088 get_current_subfile, get_local_symbols, get_file_symbols,
1089 get_global_symbols, record_debugformat, record_producer,
1090 push_context, pop_context, end_symtab_get_static_block,
1091 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
1093 <record_pending_block, finish_block_internal, make_blockvector,
1094 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
1098 2018-05-22 Tom Tromey <tom@tromey.com>
1100 * buildsym.c (record_pending_block): Move earlier. Remove objfile
1102 (finish_block_internal): Update.
1104 2018-07-20 Tom Tromey <tom@tromey.com>
1106 * buildsym.c (record_pending_block): Move earlier. Remove objfile
1108 (finish_block_internal): Update.
1110 2018-07-20 Tom Tromey <tom@tromey.com>
1112 * buildsym.h (EXTERN): Don't define or undef.
1113 * buildsym.c (EXTERN): Don't define.
1115 2018-07-20 Tom Tromey <tom@tromey.com>
1117 * buildsym.c: Remove TODO comment.
1119 2018-07-20 Tom Tromey <tom@tromey.com>
1121 * coffread.c (coff_symtab_read): Update.
1122 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1123 (xcoff_new_init): Update.
1124 * mipsread.c (mipscoff_new_init): Update.
1125 * mdebugread.c (mdebug_build_psymtabs): Update.
1126 * elfread.c (elf_new_init): Update.
1127 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
1129 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
1130 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1131 (stabsect_build_psymtabs): Update.
1132 * buildsym.h (buildsym_init): Don't declare.
1133 * buildsym.c: Update comment.
1134 (prepare_for_building): Remove.
1135 (start_symtab, restart_symtab): Update.
1136 (reset_symtab_globals): Update comment.
1137 (buildsym_init): Remove.
1139 2018-07-20 Tom Tromey <tom@tromey.com>
1141 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
1142 * stabsread.c (patch_block_stabs, define_symbol, read_type)
1143 (read_enum_type, common_block_start, common_block_end)
1144 (cleanup_undefined_types_1, finish_global_stabs): Update.
1145 * mdebugread.c (psymtab_to_symtab_1): Update.
1146 * dwarf2read.c (fixup_go_packaging, read_func_scope)
1147 (read_lexical_block_scope, new_symbol): Update.
1148 * dbxread.c (process_one_symbol): Update.
1149 * coffread.c (coff_symtab_read, process_coff_symbol)
1150 (coff_read_enum_type): Update.
1151 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
1153 (get_local_symbols, get_file_symbols, get_global_symbols): New
1155 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
1157 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
1158 (~scoped_free_pendings): Update.
1159 (finish_block, prepare_for_building, reset_symtab_globals)
1160 (end_symtab_get_static_block, end_symtab_with_blockvector)
1161 (augment_type_symtab, push_context): Update.
1162 (get_local_symbols, get_file_symbols, get_global_symbols): New
1164 (buildsym_init): Update.
1166 2018-07-20 Tom Tromey <tom@tromey.com>
1168 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
1169 (process_full_type_unit): Likewise.
1170 (dwarf2_start_symtab): Set list_in_scope.
1172 2018-07-20 Tom Tromey <tom@tromey.com>
1174 * dwarf2read.c (process_psymtab_comp_unit_reader)
1175 (build_type_psymtabs_reader): Do not set list_in_scope.
1177 2018-07-20 Tom Tromey <tom@tromey.com>
1179 * buildsym.c (free_pendings): Remove.
1180 (add_symbol_to_list, scoped_free_pendings)
1181 (finish_block_internal, buildsym_init): Update.
1183 2018-07-20 Tom Tromey <tom@tromey.com>
1185 * xcoffread.c (read_xcoff_symtab): Update.
1186 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
1188 * dbxread.c (process_one_symbol): Update.
1189 * coffread.c (coff_symtab_read): Update.
1190 * buildsym.h (finish_block): Update.
1191 * buildsym.c (finish_block): Remove "listhead" argument.
1192 (end_symtab_get_static_block): Update.
1194 2018-07-20 Tom Tromey <tom@tromey.com>
1196 * buildsym.h (class scoped_free_pendings): Remove constructor.
1197 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
1199 <m_pending_block_obstack, m_pending_blocks>: New members.
1200 (pending_block_obstack, pending_blocks): Remove.
1201 (scoped_free_pendings::scoped_free_pendings): Default.
1202 (~scoped_free_pendings): Update.
1203 (free_pending_blocks): Remove.
1204 (finish_block_internal, record_pending_block, make_blockvector)
1205 (end_symtab_get_static_block, augment_type_symtab, push_context)
1206 (buildsym_init): Update.
1208 2018-07-20 Tom Tromey <tom@tromey.com>
1210 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
1211 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
1213 (pending_addrmap, pending_addrmap_obstack)
1214 (pending_addrmap_interesting): Remove.
1215 (scoped_free_pendings, record_block_range, make_blockvector)
1216 (prepare_for_building, reset_symtab_globals, buildsym_init):
1219 2018-07-20 Tom Tromey <tom@tromey.com>
1221 * xcoffread.c (process_linenos): Update.
1222 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
1223 * mdebugread.c (psymtab_to_symtab_1): Update.
1224 * dwarf2read.c (setup_type_unit_groups)
1225 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
1226 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
1227 * dbxread.c (process_one_symbol): Update.
1228 * coffread.c (coff_symtab_read, enter_linenos)
1229 (process_coff_symbol): Update.
1230 * buildsym.h (current_subfile): Don't declare.
1231 (get_current_subfile): Declare.
1232 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
1234 (start_subfile, free_buildsym_compunit, push_subfile)
1235 (prepare_for_building, start_symtab): Update.
1236 (get_current_subfile): New function.
1238 2018-07-20 Tom Tromey <tom@tromey.com>
1240 * coffread.c (coff_symtab_read): Update.
1241 * xcoffread.c (read_xcoff_symtab): Update.
1242 * dwarf2read.c (new_symbol): Update.
1243 (read_func_scope, read_lexical_block_scope): Update.
1244 * dbxread.c (process_one_symbol): Update.
1245 * buildsym.h (context_stack, context_stack_depth): Don't declare.
1246 (outermost_context_p): Remove macro.
1247 (outermost_context_p, get_current_context_stack)
1248 (get_context_stack_depth): Declare.
1249 (pop_context): Return struct context_stack.
1250 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
1252 (context_stack_size): Remove.
1253 (INITIAL_CONTEXT_STACK_SIZE): Remove.
1254 (prepare_for_building, end_symtab_get_static_block)
1255 (augment_type_symtab, push_context): Update.
1256 (pop_context): Return struct context_stack.
1257 (outermost_context_p, get_current_context_stack)
1258 (get_context_stack_depth): New functions.
1259 (buildsym_init): Update.
1261 2018-07-20 Tom Tromey <tom@tromey.com>
1263 * rust-exp.y: Now a pure parser. Update all rules.
1264 (%union): Move earlier.
1265 (current_parser, work_obstack): Remove globals.
1266 (rust_parser, ~rust_parser): Update.
1267 (class rust_parser) <copy_name, concat3, crate_name, super_name,
1268 lex_character, lex_number, lex_string, lex_identifier,
1269 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
1270 convert_name, convert_params_to_expression,
1271 convert_ast_to_expression, ast_basic_type, ast_operation,
1272 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
1273 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
1274 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
1275 ast_array_type, ast_slice_type, ast_reference_type,
1276 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
1277 (rust_parse): Update.
1278 (rustyyerror, rustyylex): Add parser parameter.
1279 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
1280 (rust_lex_stringish_test, rust_lex_test_sequence)
1281 (rust_lex_test_trailing_dot, rust_lex_test_completion)
1282 (rust_lex_test_push_back, rust_lex_tests): Update.
1284 2018-07-19 Pedro Alves <palves@redhat.com>
1286 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
1287 gdb::unique_xmalloc_ptr.
1288 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
1289 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
1290 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
1291 copy-initialization.
1292 * guile/scm-pretty-print.c (ppscm_print_children): Use
1293 gdb::unique_xmalloc_ptr instead of cleanups.
1294 (gdbscm_apply_val_pretty_printer): Remove cleanups.
1295 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
1296 gdb::unique_xmalloc_ptr.
1297 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1298 Adjust to use gdb::unique_xmalloc_ptr.
1299 * guile/scm-utils.c (extract_arg): Adjust.
1300 * guile/scm-value.c (gdbscm_value_field): Adjust to use
1301 gdb::unique_xmalloc_ptr instead of a cleanup.
1303 2018-07-19 Tom Tromey <tom@tromey.com>
1305 * utils.c (do_value_free_to_mark)
1306 (make_cleanup_value_free_to_mark): Remove.
1307 * utils.h (make_cleanup_value_free_to_mark): Remove.
1309 2018-07-19 Pedro Alves <palves@redhat.com>
1311 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
1312 forwarding reference.
1314 2018-07-18 Pedro Alves <palves@redhat.com>
1316 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
1317 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
1320 2018-07-18 Pedro Alves <palves@redhat.com>
1322 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
1324 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
1326 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
1327 directly instead of a cleanup.
1328 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
1329 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
1330 (vlscm_binop_gdbthrow): New, factored out from ...
1331 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
1332 (vlscm_rich_compare): Use gdbscm_wrap.
1333 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
1334 instead of a cleanup.
1335 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
1337 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1338 Use xfree directly instead of a cleanup.
1339 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
1340 Adjust to use gdbscm_wrap and scoped_value_mark.
1341 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
1342 (gdbscm_value_address, gdbscm_value_dereference)
1343 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
1345 (gdbscm_value_dynamic_type): Use scoped_value_mark.
1346 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
1348 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
1349 gdbscm_wrap and scoped_value_mark.
1350 (gdbscm_value_to_string): Use xfree directly instead of a
1351 cleanup. Move 'buffer' unique_ptr to TRY scope.
1352 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
1353 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
1355 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
1356 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
1358 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
1361 2018-07-18 Tom de Vries <tdevries@suse.de>
1363 * findvar.c (default_read_var_value): Also resolve dynamic type for
1364 LOC_OPTIMIZED_OUT vars.
1366 2018-07-18 Maciej W. Rozycki <macro@mips.com>
1368 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
1371 2018-07-17 Tom Tromey <tom@tromey.com>
1373 * guile/scm-param.c (pascm_set_func, pascm_show_func)
1374 (compute_enum_list, pascm_set_param_value_x)
1375 (gdbscm_parameter_value): Update.
1376 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
1377 (gdbscm_scm_to_host_string): Update.
1378 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
1380 * guile/scm-cmd.c (cmdscm_add_completion): Update.
1381 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
1382 * guile/scm-string.c (gdbscm_scm_to_string): Return
1384 (gdbscm_scm_to_host_string): Likewise.
1386 2018-07-17 Tom Tromey <tom@tromey.com>
1388 * guile/guile.c (gdbscm_eval_from_control_command): Update.
1389 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
1390 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
1391 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
1394 2018-07-17 Tom Tromey <tom@tromey.com>
1396 * guile/scm-param.c (pascm_signal_setshow_error): Update.
1397 * guile/guile-internal.h (gdbscm_exception_message_to_string):
1399 * guile/scm-cmd.c (cmdscm_function): Update.
1400 * guile/scm-pretty-print.c
1401 (ppscm_print_exception_unless_memory_error): Update.
1402 * guile/scm-exception.c (gdbscm_exception_message_to_string):
1403 Return unique_xmalloc_ptr.
1405 2018-07-17 Tom Tromey <tom@tromey.com>
1407 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
1410 2018-07-17 Jim Wilson <jimw@sifive.com>
1412 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
1413 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
1414 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
1415 unecessary braces after EF_RISCV_RVC test. Delete call to
1416 set_gdbarch_decr_pc_after_break.
1418 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
1419 RISCV_LAST_FP_REGNUM + 1.
1420 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
1422 2018-07-17 Tom Tromey <tom@tromey.com>
1424 * configure.ac: Remove --disable-gdbcli.
1425 * configure: Rebuild.
1426 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
1427 (SUBDIR_CLI_CFLAGS): Remove.
1428 (SFILES): Use SUBDIR_CLI_SRCS.
1429 (COMMON_OBS): Use SUBDIR_CLI_OBS.
1431 2018-07-17 Tom Tromey <tom@tromey.com>
1434 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
1436 2018-07-16 Jim Wilson <jimw@sifive.com>
1438 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
1440 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1442 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
1444 (libunwind_frame_sniffer): Likewise.
1445 (libunwind_frame_prev_register): Likewise.
1446 (libunwind_sigtramp_frame_sniffer): Likewise.
1447 * ia64-tdep.c (ia64_access_reg): Likewise.
1448 (ia64_access_rse_reg): Likewise.
1449 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
1450 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
1452 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1454 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
1456 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1458 * remote-sim.c (gdbsim_target::close,
1459 gdbsim_target::mourn_inferior): Remove unused variables.
1461 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
1463 * ia64-tdep.c (ktab_buf): New global.
1464 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
1465 (get_kernel_table): Adjust.
1467 2018-07-16 Tom Tromey <tom@tromey.com>
1469 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
1470 * dwarf2read.c (using_directives, new_symbol): Use
1471 outermost_context_p.
1472 * dbxread.c (process_one_symbol): Use outermost_context_p.
1473 * coffread.c (coff_symtab_read): Use outermost_context_p.
1475 2018-07-16 Tom Tromey <tom@tromey.com>
1477 * dwarf2read.c (using_directives, read_func_scope)
1478 (read_lexical_block_scope): Update.
1479 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1480 * buildsym.h (local_using_directives, global_using_directives):
1482 (get_local_using_directives, set_local_using_directives)
1483 (get_global_using_directives): Declare.
1484 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
1485 m_global_using_directives>: New members.
1486 (finish_block_internal, prepare_for_building)
1487 (reset_symtab_globals, end_symtab_get_static_block)
1488 (push_context): Update.
1489 (get_local_using_directives, set_local_using_directives)
1490 (get_global_using_directives): New functions.
1491 (buildsym_init): Update.
1493 2018-07-16 Tom Tromey <tom@tromey.com>
1495 * xcoffread.c (xcoff_initial_scan): Don't call
1496 free_pending_blocks.
1497 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
1498 * buildsym.h (class scoped_free_pendings): Add constructor.
1499 (free_pending_blocks): Don't declare.
1500 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
1501 (free_pending_blocks): Now static.
1503 2018-07-16 Tom Tromey <tom@tromey.com>
1505 * buildsym.h (push_subfile, pop_subfile): Update declarations.
1506 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
1508 (struct subfile_stack): Remove.
1509 (subfile_stack): Remove.
1510 (push_subfile, pop_subfile, buildsym_init): Update.
1512 2018-07-16 Tom Tromey <tom@tromey.com>
1514 * buildsym.c (push_subfile): Use gdb_assert.
1515 (pop_subfile): Use gdb_assert.
1517 2018-07-16 Tom Tromey <tom@tromey.com>
1519 * buildsym.h (merge_symbol_lists): Remove.
1520 * buildsym.c (merge_symbol_lists): Remove.
1522 2018-07-16 Tom Tromey <tom@tromey.com>
1524 * stabsread.c (scan_file_globals): Update comment.
1525 * stabsread.h (scan_file_globals): Move from buildsym.h.
1526 * buildsym.h (scan_file_globals): Move to stabsread.h.
1528 2018-07-16 Tom Tromey <tom@tromey.com>
1530 * xcoffread.c (xcoff_new_init): Update.
1531 * mipsread.c (mipscoff_new_init): Update.
1532 * mdebugread.c (mdebug_build_psymtabs): Update.
1533 * elfread.c (elf_new_init): Update.
1534 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
1535 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
1536 * buildsym.h (buildsym_new_init): Don't declare.
1537 * buildsym.c (buildsym_new_init): Remove.
1539 2018-07-16 Tom Tromey <tom@tromey.com>
1541 * stabsread.h (within_function): Move from buildsym.h.
1542 * stabsread.c (start_stabs): Clear within_function.
1543 * coffread.c (coff_start_symtab): Clear within_function.
1544 * buildsym.h (within_function): Move to stabsread.h.
1545 * buildsym.c (prepare_for_building): Update.
1547 2018-07-16 Tom Tromey <tom@tromey.com>
1549 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
1550 * dwarf2read.c (dwarf2_start_symtab): Don't set
1551 processing_gcc_compilation.
1552 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
1554 2018-07-16 Tom Tromey <tom@tromey.com>
1556 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
1557 (next_symbol_text_func): Move from buildsym.h.
1558 * stabsread.c (hashname): Move from buildsym.c.
1559 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
1560 (next_symbol_text_func, hashname): Move to stabsread.h.
1561 * buildsym.c: Don't include bcache.h
1562 (hashname): Move to stasbread.c.
1564 2018-07-16 Tom Tromey <tom@tromey.com>
1566 * buildsym.h (context_stack_size): Don't declare.
1567 * buildsym.c (context_stack_size): New global.
1569 2018-07-16 Tom Tromey <tom@tromey.com>
1571 * dbxread.c (processing_acc_compilation): New global.
1572 * buildsym.h (processing_acc_compilation): Don't declare.
1574 2018-07-16 Tom Tromey <tom@tromey.com>
1576 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
1577 * dbxread.c (read_ofile_symtab): Update.
1578 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
1579 * buildsym.h (last_source_start_addr): Remove.
1580 (set_last_source_start_addr, get_last_source_start_addr):
1582 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
1584 (struct buildsym_compunit) <m_last_source_start_addr>: New
1586 (prepare_for_building): Remove start_addr parameter.
1587 (start_symtab, restart_symtab, end_symtab_get_static_block)
1588 (end_symtab_with_blockvector): Update.
1589 (set_last_source_start_addr, get_last_source_start_addr): New
1592 2018-07-16 Tom Tromey <tom@tromey.com>
1594 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
1596 (have_line_numbers): Remove.
1597 (record_line, prepare_for_building, end_symtab_get_static_block)
1598 (augment_type_symtab): Update.
1600 2018-07-16 Tom Tromey <tom@tromey.com>
1602 * buildsym.c (~buildsym_compunit): Free the macro table.
1603 (struct buildsym_compunit) <get_macro_table, release_macros>: New
1605 <m_pending_macros>: New member.
1606 (pending_macros): Remove.
1607 (~scoped_free_pendings, get_macro_table, prepare_for_building)
1608 (reset_symtab_globals, end_symtab_get_static_block)
1609 (end_symtab_with_blockvector, augment_type_symtab)
1610 (buildsym_init): Update.
1612 2018-07-16 Tom Tromey <tom@tromey.com>
1614 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
1616 (buildsym_compunit::set_last_source_file): New method.
1617 <m_last_source_file>: New member.
1618 (prepare_for_building): Remove "name" parameter.
1619 (start_symtab, restart_symtab, reset_symtab_globals): Update.
1620 (last_source_file): Remove.
1621 (set_last_source_file, get_last_source_file): Update.
1623 2018-07-16 Tom Tromey <tom@tromey.com>
1625 * buildsym.c (prepare_for_building): Add assert.
1627 2018-07-16 Tom Tromey <tom@tromey.com>
1629 * buildsym.c (~buildsym_compunit): Update.
1630 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
1631 (start_subfile, patch_subfile_names)
1632 (end_symtab_with_blockvector): Update.
1634 2018-07-16 Tom Tromey <tom@tromey.com>
1636 * buildsym.c (struct buildsym_compunit): Add constructor,
1637 destructor, initializers.
1638 (start_buildsym_compunit): Remove.
1639 (free_buildsym_compunit): Use "delete".
1640 (start_symtab, restart_symtab): Use "new".
1642 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
1644 * symfile.c (set_objfile_default_section_offset): Remove struct
1647 2018-07-14 Stafford Horne <shorne@gmail.com>
1649 * (Responsible Maintainers): Add myself as or1k maintainer.
1651 2018-07-13 Tom Tromey <tom@tromey.com>
1653 * symfile.c (set_objfile_default_section_offset): Use extra braces
1656 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1658 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
1661 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1663 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1664 unittests/cli-utils-selftests.c
1665 * unittests/cli-utils-selftests.c: New file.
1667 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1669 * NEWS: Mention new commands. Mention change to 'thread apply'.
1671 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1673 * thread.c (thr_try_catch_cmd): New function.
1674 (thread_apply_all_command): Handle qcs flags.
1675 (thread_apply_command): Handle qcs flags.
1676 (taas_command): New function.
1677 (tfaas_command): New function.
1678 (_initialize_thread): Update to setup the new commands 'taas
1679 and 'tfaas'. Change doc string for 'thread apply'.
1681 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1683 * stack.c: (trailing_outermost_frame): New function, mostly
1684 extracted from backtrace_command_1.
1685 (leading_innermost_frame): New function.
1686 (backtrace_command_1): Update to call trailing_outermost_frame.
1687 (frame_apply_command_count): New function.
1688 (frame_apply_level_command): New function.
1689 (frame_apply_all_command): New function.
1690 (frame_apply_command): New function.
1691 (faas_command): New function.
1692 (frame_cmd_list): New variable.
1693 (_initialize_stack): Update to setup the new commands 'frame apply'
1696 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1698 * cli-utils.c (number_or_range_parser::get_number): Only handle
1699 numbers or convenience var as numbers.
1700 (parse_flags): New function.
1701 (parse_flags_qcs): New function.
1702 (number_or_range_parser::finished): Ensure parsing end is detected
1703 before end of string.
1704 * cli-utils.h (parse_flags): New function.
1705 (parse_flags_qcs): New function.
1706 (number_or_range_parser): Remove m_finished bool.
1707 (number_or_range_parser::skip_range): Set m_in_range to false.
1709 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
1711 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
1714 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1715 Jan Kratochvil <jan.kratochvil@redhat.com>
1716 Paul Fertser <fercerpav@gmail.com>
1717 Tsutomu Seki <sekiriki@gmail.com>
1718 Pedro Alves <palves@redhat.com>
1720 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1721 'unittests/parse-connection-spec-selftests.c'.
1722 (COMMON_SFILES): Add 'common/netstuff.c'.
1723 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
1724 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
1725 * common/netstuff.c: New file.
1726 * common/netstuff.h: New file.
1727 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
1728 (wait_for_connect): Update comment. New parameter
1729 'gdb::optional<int> sock' instead of 'struct serial *scb'.
1730 Use 'sock' directly instead of 'scb->fd'.
1731 (try_connect): New function, with code from 'net_open'.
1732 (net_open): Rewrite main loop to deal with multiple
1733 sockets/addresses. Handle IPv6-style hostnames; implement
1734 support for IPv6 connections.
1735 * unittests/parse-connection-spec-selftests.c: New file.
1737 2018-07-11 Pedro Alves <palves@redhat.com>
1740 * remote.c (remote_target::remote_detach_pid): Call
1741 set_current_process.
1743 2018-07-11 Pedro Alves <palves@redhat.com>
1745 * h8300-tdep.c (h8300_gdbarch_init): Remove
1746 set_gdbarch_ecoff_reg_to_regnum calls.
1748 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1751 * c-typeprint.c (c_type_print_base_struct_union): Don't print
1752 offsets/sizes for static members of a class/struct.
1754 2018-07-11 Alan Hayward <alan.hayward@arm.com>
1756 * target-descriptions.c (tdesc_register_bitsize): Rename.
1757 * target-descriptions.h (tdesc_register_bitsize): Likewise.
1758 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
1759 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
1761 2018-07-10 Tom Tromey <tom@tromey.com>
1763 * breakpoint.c (moribund_locations): Now static and a
1765 (breakpoint_init_inferior, moribund_breakpoint_here_p)
1766 (build_bpstat_chain, update_global_location_list)
1767 (breakpoint_retire_moribund): Update.
1768 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
1771 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1773 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
1774 (riscv_register_reggroup_p): Use new function, remove unneeded
1776 (riscv_push_dummy_call): Extend assert to compare against xlen or
1777 flen based on register type.
1779 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1781 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
1783 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1785 * remote.c (show_hardware_watchpoint_limit): New function.
1786 (show_hardware_watchpoint_length_limit): New function.
1787 (show_hardware_breakpoint_limit): New function.
1788 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
1789 where appropriate, update help text.
1791 2018-07-09 Tom Tromey <tom@tromey.com>
1793 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
1794 (CLIBS): Don't mention NAT_CLIBS.
1796 2018-07-09 Tom Tromey <tom@tromey.com>
1798 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
1799 (LIBGDB_OBS, clean mostlyclean): Update.
1800 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
1802 2018-07-09 Tom Tromey <tom@tromey.com>
1804 * Makefile.in (%.c: %.y): Use ECHO_YACC.
1805 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
1806 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
1808 2018-07-09 Tom Tromey <tom@tromey.com>
1810 * Makefile.in (ALLDEPFILES): Remove exec.c.
1811 (COMMON_OBS): Remove exec.o.
1812 (COMMON_SFILES): Add exec.c.
1814 2018-07-09 Tom Tromey <tom@tromey.com>
1816 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
1818 2018-07-09 Tom Tromey <tom@tromey.com>
1820 * Makefile.in (clean mostlyclean): Remove stamp-version.
1821 (version.c): Depend on stamp-version.
1822 (stamp-version): New rule, from version.c rule.
1824 2018-07-09 Tom Tromey <tom@tromey.com>
1826 * Makefile.in (init.c): Depend on stamp-init.
1827 (stamp-init): New rule, from init.c rule.
1828 (clean mostlyclean): Remove stamp-init.
1830 2018-07-09 Tom Tromey <tom@tromey.com>
1832 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
1833 SUBDIR_GCC_COMPILE_SRCS.
1835 2018-07-09 Tom Tromey <tom@tromey.com>
1837 * Makefile.in (init.c): Remove some unused sed rules.
1839 2018-07-09 Tom Tromey <tom@tromey.com>
1841 * Makefile.in (TSOBS): Remove.
1842 (INIT_FILES): Update.
1843 (LIBGDB_OBS): Update.
1844 (COMMON_SFILES): Add inflow.c.
1845 (SFILES): Remove inflow.c.
1847 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1849 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
1851 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
1853 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
1854 get_saveloc_name, is_signal_frame_name, step_name,
1855 init_remote_name, create_addr_space_name,
1856 destroy_addr_space_name, search_unwind_table_name,
1857 find_dyn_list_name): Constify.
1859 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
1861 * darwin-nat.c (darwin_pthread_kill): New function.
1862 (darwin_resume_thread): Use darwin_pthread_kill.
1864 2018-07-05 Tom de Vries <tdevries@suse.de>
1866 * macroexp.c (macro_buffer) <operator=>: New member function.
1868 2018-07-04 Tom Tromey <tom@tromey.com>
1870 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
1872 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
1874 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
1875 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
1876 * maint.c: Likewise.
1879 2018-07-04 Joel Brobecker <brobecker@adacore.com>
1881 * NEWS: Create a new section for the next release branch.
1882 Rename the section of the current branch, now that it has
1885 2018-07-04 Joel Brobecker <brobecker@adacore.com>
1887 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
1888 * version.in: Bump version to 8.2.50.DATE-git.
1890 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
1891 Pedro Alves <palves@redhat.com>
1893 * linux-nat.c (linux_init_ptrace): Rename to ...
1894 (linux_init_ptrace_procfs): ... this. Call
1895 linux_proc_init_warnings.
1896 (linux_nat_target::post_attach)
1897 (linux_nat_target::post_startup_inferior): Adjust.
1898 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
1899 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
1901 2018-07-04 Tom de Vries <tdevries@suse.de>
1903 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
1905 (read_comp_unit_head): ... here.
1907 2018-07-03 Tom Tromey <tom@tromey.com>
1909 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
1910 (stop_tracing, tstatus_command)
1911 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
1912 (print_one_static_tracepoint_marker): Update.
1913 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
1915 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
1917 (all_tracepoints, static_tracepoints_here): Return std::vector.
1919 2018-07-03 Tom Tromey <tom@tromey.com>
1921 * common/ptid.c (ptid_equal): Remove.
1922 * common/ptid.h (ptid_equal): Don't declare.
1923 * ada-tasks.c: Update.
1924 * breakpoint.c: Update.
1925 * common/agent.c: Update.
1926 * corelow.c: Update.
1927 * darwin-nat-info.c: Update.
1928 * darwin-nat.c: Update.
1930 * dtrace-probe.c: Update.
1931 * dummy-frame.c: Update.
1932 * fbsd-nat.c: Update.
1934 * gdbthread.h: Update.
1935 * gnu-nat.c: Update.
1936 * go32-nat.c: Update.
1937 * inf-loop.c: Update.
1938 * inf-ptrace.c: Update.
1939 * infcall.c: Update.
1943 * linux-fork.c: Update.
1944 * linux-nat.c: Update.
1945 * linux-thread-db.c: Update.
1946 * mi/mi-cmd-var.c: Update.
1947 * mi/mi-interp.c: Update.
1948 * mi/mi-main.c: Update.
1949 * nto-procfs.c: Update.
1950 * ppc-linux-tdep.c: Update.
1952 * python/py-inferior.c: Update.
1953 * python/py-record-btrace.c: Update.
1954 * python/py-record.c: Update.
1955 * ravenscar-thread.c: Update.
1956 * regcache.c: Update.
1957 * remote-sim.c: Update.
1959 * sol-thread.c: Update.
1962 * tui/tui-stack.c: Update.
1964 * windows-nat.c: Update.
1965 * windows-tdep.c: Update.
1967 2018-07-03 Tom Tromey <tom@tromey.com>
1969 * common/ptid.c (ptid_match): Remove.
1970 * common/ptid.h (ptid_match): Don't declare.
1971 * fbsd-nat.c: Update.
1974 * linux-nat.c: Update.
1975 * record-btrace.c: Update.
1976 * regcache.c: Update.
1979 2018-07-03 Tom Tromey <tom@tromey.com>
1981 * common/ptid.c (ptid_tid_p): Remove.
1982 * common/ptid.h (ptid_tid_p): Don't declare.
1983 * sol-thread.c: Update.
1985 2018-07-03 Tom Tromey <tom@tromey.com>
1987 * common/ptid.c (ptid_lwp_p): Remove.
1988 * common/ptid.h (ptid_lwp_p): Don't declare.
1989 * fbsd-nat.c: Update.
1990 * linux-nat.c: Update.
1991 * nat/linux-procfs.c: Update.
1992 * nat/x86-linux-dregs.c: Update.
1993 * sol-thread.c: Update.
1995 2018-07-03 Tom Tromey <tom@tromey.com>
1997 * common/ptid.c (ptid_is_pid): Remove.
1998 * common/ptid.h (ptid_is_pid): Don't declare.
2000 * linux-nat.c: Update.
2001 * mi/mi-interp.c: Update.
2005 2018-07-03 Tom Tromey <tom@tromey.com>
2007 * common/ptid.c (ptid_get_tid): Remove.
2008 * common/ptid.h (ptid_get_tid): Don't declare.
2009 * ada-tasks.c: Update.
2010 * aix-thread.c: Update.
2011 * bsd-uthread.c: Update.
2012 * darwin-nat.c: Update.
2013 * fbsd-nat.c: Update.
2014 * i386-darwin-nat.c: Update.
2016 * linux-tdep.c: Update.
2017 * nto-procfs.c: Update.
2018 * ppc-ravenscar-thread.c: Update.
2019 * python/py-infthread.c: Update.
2020 * ravenscar-thread.c: Update.
2021 * sol-thread.c: Update.
2022 * sparc-ravenscar-thread.c: Update.
2023 * windows-nat.c: Update.
2025 2018-07-03 Tom Tromey <tom@tromey.com>
2027 * common/ptid.c (ptid_get_lwp): Remove.
2028 * common/ptid.h (ptid_get_lwp): Don't declare.
2029 * aarch64-linux-nat.c: Update.
2030 * ada-tasks.c: Update.
2031 * aix-thread.c: Update.
2032 * amd64-linux-nat.c: Update.
2033 * arm-linux-nat.c: Update.
2034 * corelow.c: Update.
2035 * fbsd-nat.c: Update.
2036 * fbsd-tdep.c: Update.
2037 * gnu-nat.c: Update.
2038 * i386-cygwin-tdep.c: Update.
2039 * i386-gnu-nat.c: Update.
2040 * i386-linux-nat.c: Update.
2041 * ia64-linux-nat.c: Update.
2042 * inf-ptrace.c: Update.
2044 * linux-fork.c: Update.
2045 * linux-nat.c: Update.
2046 * linux-tdep.c: Update.
2047 * linux-thread-db.c: Update.
2048 * mips-linux-nat.c: Update.
2049 * nat/aarch64-linux-hw-point.c: Update.
2050 * nat/aarch64-linux.c: Update.
2051 * nat/linux-btrace.c: Update.
2052 * nat/linux-osdata.c: Update.
2053 * nat/linux-procfs.c: Update.
2054 * nat/x86-linux-dregs.c: Update.
2055 * obsd-nat.c: Update.
2056 * ppc-fbsd-nat.c: Update.
2057 * ppc-linux-nat.c: Update.
2059 * python/py-infthread.c: Update.
2060 * ravenscar-thread.c: Update.
2062 * s390-linux-nat.c: Update.
2063 * sol-thread.c: Update.
2064 * sol2-tdep.c: Update.
2065 * spu-linux-nat.c: Update.
2066 * x86-linux-nat.c: Update.
2067 * xtensa-linux-nat.c: Update.
2069 2018-07-03 Tom Tromey <tom@tromey.com>
2071 * common/ptid.c (ptid_get_pid): Remove.
2072 * common/ptid.h (ptid_get_pid): Don't declare.
2073 * aarch64-linux-nat.c: Update.
2074 * ada-lang.c: Update.
2075 * aix-thread.c: Update.
2076 * alpha-bsd-nat.c: Update.
2077 * amd64-fbsd-nat.c: Update.
2078 * amd64-linux-nat.c: Update.
2079 * arm-linux-nat.c: Update.
2080 * arm-nbsd-nat.c: Update.
2082 * break-catch-syscall.c: Update.
2083 * breakpoint.c: Update.
2084 * bsd-uthread.c: Update.
2085 * corelow.c: Update.
2087 * darwin-nat.c: Update.
2088 * fbsd-nat.c: Update.
2089 * fbsd-tdep.c: Update.
2091 * gnu-nat.c: Update.
2092 * hppa-nbsd-nat.c: Update.
2093 * hppa-obsd-nat.c: Update.
2094 * i386-fbsd-nat.c: Update.
2095 * ia64-linux-nat.c: Update.
2096 * inf-ptrace.c: Update.
2098 * inferior.c: Update.
2099 * inferior.h: Update.
2102 * linux-fork.c: Update.
2103 * linux-nat.c: Update.
2104 * linux-tdep.c: Update.
2105 * linux-thread-db.c: Update.
2106 * m68k-bsd-nat.c: Update.
2107 * mi/mi-interp.c: Update.
2108 * mi/mi-main.c: Update.
2109 * mips-linux-nat.c: Update.
2110 * mips-nbsd-nat.c: Update.
2111 * mips64-obsd-nat.c: Update.
2112 * nat/aarch64-linux-hw-point.c: Update.
2113 * nat/aarch64-linux.c: Update.
2114 * nat/linux-btrace.c: Update.
2115 * nat/linux-osdata.c: Update.
2116 * nat/linux-procfs.c: Update.
2117 * nat/x86-linux-dregs.c: Update.
2118 * nto-procfs.c: Update.
2119 * obsd-nat.c: Update.
2120 * ppc-linux-nat.c: Update.
2121 * ppc-nbsd-nat.c: Update.
2122 * ppc-obsd-nat.c: Update.
2123 * proc-service.c: Update.
2125 * python/py-inferior.c: Update.
2126 * python/py-infthread.c: Update.
2127 * ravenscar-thread.c: Update.
2129 * remote-sim.c: Update.
2131 * rs6000-nat.c: Update.
2132 * s390-linux-nat.c: Update.
2133 * sh-nbsd-nat.c: Update.
2134 * sol-thread.c: Update.
2135 * sparc-nat.c: Update.
2136 * sparc64-tdep.c: Update.
2137 * spu-linux-nat.c: Update.
2138 * spu-tdep.c: Update.
2139 * target-debug.h: Update.
2142 * tid-parse.c: Update.
2143 * tracefile-tfile.c: Update.
2144 * vax-bsd-nat.c: Update.
2145 * windows-nat.c: Update.
2146 * x86-linux-nat.c: Update.
2147 * x86-nat.c: Update.
2149 2018-07-03 Tom Tromey <tom@tromey.com>
2151 * common/ptid.c (pid_to_ptid): Remove.
2152 * common/ptid.h (pid_to_ptid): Don't declare.
2153 * aix-thread.c: Update.
2154 * arm-linux-nat.c: Update.
2155 * common/ptid.c: Update.
2156 * common/ptid.h: Update.
2157 * corelow.c: Update.
2159 * darwin-nat.c: Update.
2160 * fbsd-nat.c: Update.
2161 * fork-child.c: Update.
2162 * gnu-nat.c: Update.
2163 * go32-nat.c: Update.
2164 * inf-ptrace.c: Update.
2166 * inferior.c: Update.
2168 * linux-fork.c: Update.
2169 * linux-nat.c: Update.
2170 * nat/aarch64-linux-hw-point.c: Update.
2171 * nat/fork-inferior.c: Update.
2172 * nat/x86-linux-dregs.c: Update.
2173 * nto-procfs.c: Update.
2174 * obsd-nat.c: Update.
2176 * progspace.c: Update.
2178 * rs6000-nat.c: Update.
2179 * s390-linux-nat.c: Update.
2180 * sol-thread.c: Update.
2181 * spu-linux-nat.c: Update.
2184 * tracefile-tfile.c: Update.
2185 * windows-nat.c: Update.
2187 2018-07-03 Tom Tromey <tom@tromey.com>
2189 * common/ptid.h (ptid_build): Don't declare.
2190 * common/ptid.c (ptid_build): Remove.
2191 * aix-thread.c: Update.
2192 * bsd-kvm.c: Update.
2193 * bsd-uthread.c: Update.
2194 * common/agent.c: Update.
2195 * common/ptid.c: Update.
2196 * common/ptid.h: Update.
2197 * corelow.c: Update.
2198 * darwin-nat.c: Update.
2199 * fbsd-nat.c: Update.
2200 * gnu-nat.c: Update.
2201 * linux-fork.c: Update.
2202 * linux-nat.c: Update.
2203 * linux-thread-db.c: Update.
2204 * nat/linux-osdata.c: Update.
2205 * nat/linux-procfs.c: Update.
2206 * nto-procfs.c: Update.
2207 * obsd-nat.c: Update.
2208 * proc-service.c: Update.
2210 * ravenscar-thread.c: Update.
2211 * remote-sim.c: Update.
2213 * sol-thread.c: Update.
2215 * windows-nat.c: Update.
2217 2018-07-03 Tom Tromey <tom@tromey.com>
2219 * infrun.c (follow_exec): Use exit_inferior_silent.
2220 * inferior.c (exit_inferior_num_silent): Remove.
2221 * inferior.h (exit_inferior_num_silent): Don't declare.
2223 2018-07-03 Tom Tromey <tom@tromey.com>
2226 * darwin-nat.c (darwin_attach_pid): Reset inferior and
2227 inferior_ptid on error.
2229 2018-07-02 Maciej W. Rozycki <macro@mips.com>
2230 Simon Marchi <simon.marchi@polymtl.ca>
2233 * disasm.h (gdb_disassembler): Add
2234 `m_disassembler_options_holder'. member
2235 * disasm.c (get_all_disassembler_options): New function.
2236 (gdb_disassembler::gdb_disassembler): Use it.
2237 (gdb_buffered_insn_length_init_dis): Likewise.
2238 (gdb_buffered_insn_length): Adjust accordingly.
2239 (set_disassembler_options): Handle options with arguments.
2240 (show_disassembler_options_sfunc): Likewise. Add a leading new
2241 line if showing options with descriptions.
2242 (disassembler_options_completer): Adapt to using the
2243 `disasm_options_and_args_t' structure.
2244 * mips-tdep.c (mips_disassembler_options): New variable.
2245 (mips_disassembler_options_o32): Likewise.
2246 (mips_disassembler_options_n32): Likewise.
2247 (mips_disassembler_options_n64): Likewise.
2248 (gdb_print_insn_mips): Don't set `disassembler_options'.
2249 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
2251 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
2252 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
2253 `gdbarch_disassembler_options_implicit' and
2254 `gdbarch_valid_disassembler_options'.
2255 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
2256 `disasm_options_and_args_t' structure.
2257 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
2259 (valid_disassembler_options): Switch from `disasm_options_t' to
2260 the `disasm_options_and_args_t' structure.
2261 * NEWS: Document `set disassembler-options' support for the MIPS
2263 * gdbarch.h: Regenerate.
2264 * gdbarch.c: Regenerate.
2266 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
2268 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
2270 2018-06-29 Joel Brobecker <brobecker@adacore.com>
2272 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
2273 parameter in call to amd64_target_description.
2274 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
2275 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
2276 (amd64fbsd_init_abi): Likewise.
2277 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
2278 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
2279 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
2280 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
2282 2018-06-29 Pedro Alves <palves@redhat.com>
2284 * gdb/amd64-tdep.h (amd64_create_target_description): Add
2285 "segments" parameter.
2286 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
2287 (_initialize_amd64_tdep): Update call to
2288 amd64_create_target_description.
2289 (amd64_target_description): Add "segments" parameter. Adjust
2290 the implementation to use it.
2291 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
2292 call to amd64_create_target_description.
2293 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
2294 * gdb/arch/amd64.h (amd64_create_target_description): Add
2295 "segments" register.
2296 * gdb/arch/amd64.c (amd64_create_target_description): Add
2297 "segments" parameter. Call create_feature_i386_64bit_segments
2298 only if SEGMENTS is true.
2299 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
2300 call to amd64_create_target_description.
2302 2018-06-29 Pedro Alves <palves@redhat.com>
2304 * thread.c (thread_target_id_str): New, factored out from ...
2305 (print_thread_info_1): ... here. Use it to compute the max
2306 "Target Id" column width.
2308 2018-06-29 Pedro Alves <palves@redhat.com>
2310 * remote.c (remote_target::extra_thread_info): Delete
2311 'display_buf' and 'n' locals. from the cache, regardless of
2312 packet mechanims is in use. Use cache for qThreadExtra and qP
2315 2018-06-29 Pedro Alves <palves@redhat.com>
2317 * blockframe.c (find_pc_sect_containing_function): New function.
2318 * breakpoint.c (print_breakpoint_location): Don't call
2319 find_pc_sect_function.
2320 * linespec.c (create_sals_line_offset): Record the location's
2322 * linespec.c (convert_address_location_to_sals): Fill in sal's
2323 symbol with find_pc_sect_containing_function.
2324 * symtab.c (find_function_start_sal): Rename to ...
2325 (find_function_start_sal_1): ... this.
2326 (find_function_start_sal): Reimplement as wrapper around
2327 find_function_start_sal_1, and use
2328 find_pc_sect_containing_function to fill in the sal's symbol.
2329 (find_function_start_sal(symbol*, bool)): Adjust.
2330 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
2332 (find_pc_sect_containing_function): Declare.
2334 2018-06-29 Pedro Alves <palves@redhat.com>
2336 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
2337 true if the the location has no symbol.
2339 2018-06-28 Tom Tromey <tom@tromey.com>
2341 * NEWS: Mention --enable-codesign.
2342 * silent-rules.mk (ECHO_SIGN): New variable.
2343 * configure.ac: Add --enable-codesign.
2344 * configure: Rebuild.
2345 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
2346 (gdb$(EXEEXT)): Optionally invoke codesign.
2348 2018-06-28 Pedro Alves <palves@redhat.com>
2350 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
2352 (switch_to_thread_no_regs): Adjust comment.
2353 * infcmd.c (stop_pc): Delete.
2354 (post_create_inferior, info_program_command): Replace references
2355 to stop_pc with references to thread_info->suspend.stop_pc.
2356 * inferior.h (stop_pc): Delete declaration.
2357 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
2358 (handle_inferior_event_1, handle_signal_stop)
2359 (process_event_stop_test, keep_going_stepped_thread)
2360 (handle_step_into_function, handle_step_into_function_backward)
2361 (print_stop_location): Replace references to stop_pc with
2362 references to thread_info->suspend.stop_pc.
2363 (struct infcall_suspend_state) <stop_pc>: Delete field.
2364 (save_infcall_suspend_state, restore_infcall_suspend_state):
2365 Remove references to inf_stat->stop_pc.
2366 * linux-fork.c (fork_load_infrun_state): Likewise.
2367 * record-btrace.c (record_btrace_set_replay): Likewise.
2368 * record-full.c (record_full_goto_entry): Likewise.
2369 * remote.c (print_one_stopped_thread): Likewise.
2370 * target.c (target_resume): Extend comment.
2371 * thread.c (set_executing_thread): New.
2372 (set_executing): Use it.
2373 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
2374 Remove references to stop_pc.
2376 2018-06-28 Pedro Alves <palves@redhat.com>
2378 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
2379 Moving fetching stop_pc until after ecs->event_thread is refreshed.
2381 2018-06-28 Tom Tromey <tom@tromey.com>
2383 * coffread.c (coff_symfile_finish): Update.
2384 * xcoffread.c (xcoff_symfile_finish): Update.
2385 * elfread.c (elf_symfile_finish): Update.
2386 * symfile.h (dwarf2_free_objfile): Don't declare.
2387 * dwarf2read.c (_initialize_dwarf2_read): Use
2388 register_objfile_data_with_cleanup.
2389 (dwarf2_free_objfile): Now static. Change signature.
2391 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2393 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
2394 option "-o" to add-symbol-file-load to add an offset to each
2395 section's load address.
2396 * symfile.c (set_objfile_default_section_offset): New function.
2398 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2400 * symfile.c (add_symbol_file_command): Make sure that sections
2401 with the same name are sorted in the same order.
2403 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2405 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
2406 require the second argument. If omitted, load sections at the
2407 addresses specified in the file.
2409 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2411 * symfile.c (symbol_file_command, symbol_file_add_main_1)
2412 (_initialize_symfile): Add option "-o" to symbol-file to add an
2413 offset to each section of the symbol file.
2415 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2417 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
2419 2018-06-27 Tom Tromey <tom@tromey.com>
2421 * stack.c (_initialize_stack): Update "func" help text.
2423 2018-06-27 Tom Tromey <tom@tromey.com>
2425 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
2427 (unwind_infopy_str, pyuw_create_unwind_info)
2428 (unwind_infopy_add_saved_register, pyuw_sniffer)
2429 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
2431 (struct saved_reg): Add constructor.
2432 <value>: Now a gdbpy_ref<>.
2434 2018-06-27 Tom Tromey <tom@tromey.com>
2436 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
2438 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2440 * gdb-gdb.py.in: Format using autopep8.
2442 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2444 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
2445 (type_lookup_function): Recognize CORE_ADDR values.
2447 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2449 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
2452 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2454 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
2457 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2459 * gdb-gdb.py: Move to...
2460 * gdb-gdb.py.in: ... here.
2461 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
2462 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
2464 (distclean): Remove gdb-gdb.py when cleaning.
2465 (gdb-gdb.py, gdb-gdb.gdb): New rules.
2466 * configure: Re-generate.
2468 2018-06-27 Pedro Alves <palves@redhat.com>
2470 * proc-service.c (get_ps_regcache): New.
2471 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
2472 (ps_lsetfpregs): Use it.
2474 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
2477 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
2478 (dwarf_decode_lines_1): Adjust.
2480 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2482 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
2484 <info_proc>: Likewise.
2486 2018-06-26 Joel Brobecker <brobecker@adacore.com>
2488 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
2489 to windows_fetch_one_register, and only handle the case of
2490 fetching one register. Move the code that reloads the context
2491 and iterates over all registers if R is negative to...
2492 (windows_nat_target::fetch_registers): ... here.
2493 (do_windows_store_inferior_registers): Rename to
2494 windows_store_one_register, and only handle the case of storing
2495 one register. Move the code that handles the case where r is
2497 (windows_nat_target::store_registers) ... here.
2499 2018-06-26 Tom Tromey <tom@tromey.com>
2502 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
2503 * rust-lang.c (rust_print_struct_def): Add podata parameter.
2505 (rust_internal_print_type): Add podata parameter.
2506 (rust_print_type): Update.
2508 2018-06-26 Tom Tromey <tom@tromey.com>
2510 * typeprint.h (struct print_offset_data) <update, finish,
2511 maybe_print_hole>: New methods.
2512 <indentation>: New constant.
2513 * typeprint.c (print_offset_data::indentation): Define.
2514 (print_offset_data::maybe_print_hole, print_offset_data::update)
2515 (print_offset_data::finish): Move from c-typeprint.c and rename.
2516 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
2517 (print_spaces_filtered_with_print_options): Update.
2518 (c_print_type_union_field_offset, maybe_print_hole)
2519 (c_print_type_struct_field_offset): Move to typeprint.c and
2521 (c_type_print_base_struct_union): Update.
2523 2018-06-25 Pedro Alves <palves@redhat.com>
2525 * gdbthread.h (thread_info_ref, delete_thread)
2526 (delete_thread_silent, first_thread_of_inferior)
2527 (any_thread_of_inferior, switch_to_thread)
2528 (enable_thread_stack_temporaries)
2529 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2530 (get_last_thread_stack_temporary)
2531 (value_in_thread_stack_temporaries, can_access_registers_thread):
2532 Spell out "struct thread_info" instead of just "thread_info".
2533 * inferior.h (notice_new_inferior): Likewise.
2535 2018-06-25 Pedro Alves <palves@redhat.com>
2537 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2538 pass thread_info pointer to delete_thread.
2539 (windows_nat_target::detach): Pass inferior pointer to
2541 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
2543 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
2544 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
2545 and pass a thread_info pointer to delete_thread.
2546 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
2547 pass thread_info pointer to delete_thread.
2548 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
2549 delete_thread_silent call.
2550 * procfs.c (procfs_target::detach): Pass inferior pointer to
2552 (procfs_target::wait): Pass thread_info pointer to delete_thread.
2553 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
2554 delete_thread_silent call.
2555 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2556 pass thread_info pointer to delete_thread.
2557 (windows_nat_target::detach): Pass inferior pointer to
2560 2018-06-22 Alan Hayward <alan.hayward@arm.com>
2562 * regcache.c (readable_regcache::read_part): Fix asserts.
2563 (reg_buffer::raw_collect_part): New function.
2564 (regcache::write_part): Fix asserts.
2565 (reg_buffer::raw_supply_part): New function.
2566 (regcache::transfer_regset_register): New helper function.
2567 (regcache::transfer_regset): Call new functions.
2568 (regcache_supply_regset): Use gdb_byte*.
2569 (regcache::supply_regset): Likewise.
2570 (regcache_collect_regset): Likewise.
2571 (regcache::collect_regset): Likewise.
2572 * regcache.h (reg_buffer::raw_collect_part): New declaration.
2573 (reg_buffer::raw_supply_part): Likewise.
2574 (regcache::transfer_regset_register): Likewise.
2575 (regcache::transfer_regset): Use gdb_byte*.
2577 2018-06-22 Alan Hayward <alan.hayward@arm.com>
2579 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
2581 2018-06-21 Pedro Alves <palves@redhat.com>
2583 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
2584 instead of a ptid_t. All callers adjusted.
2585 * ada-tasks.c (ada_get_task_number): Likewise. All callers
2587 (print_ada_task_info, display_current_task_id, task_command_1):
2589 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
2591 (breakpoint_kind): Adjust.
2592 (remove_breakpoints_pid): Rename to ...
2593 (remove_breakpoints_inf): ... this. Adjust to take an inferior
2594 pointer. All callers adjusted.
2595 (bpstat_clear_actions): Use inferior_thread.
2596 (get_bpstat_thread): New.
2597 (bpstat_do_actions): Use it.
2598 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
2599 to take a thread_info pointer. All callers adjusted.
2600 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
2601 (breakpoint_re_set_thread): Use inferior_thread.
2602 * breakpoint.h (struct inferior): Forward declare.
2603 (bpstat_stop_status): Update.
2604 (remove_breakpoints_pid): Delete.
2605 (remove_breakpoints_inf): New.
2606 * bsd-uthread.c (bsd_uthread_target::wait)
2607 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
2608 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
2609 (maint_btrace_packet_history_cmd)
2610 (maint_btrace_clear_packet_history_cmd): Adjust.
2611 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
2613 * cli/cli-interp.c: Include "inferior.h".
2614 * common/refcounted-object.h (struct
2615 refcounted_object_ref_policy): New.
2616 * compile/compile-object-load.c: Include gdbthread.h.
2617 (store_regs): Use inferior_thread.
2618 * corelow.c (core_target::close): Use current_inferior.
2619 (core_target_open): Adjust to use first_thread_of_inferior and use
2620 the current inferior.
2621 * ctf.c (ctf_target::close): Adjust to use current_inferior.
2622 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
2623 <thread>: ... this new field. All references adjusted.
2624 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
2625 Take a thread_info pointer instead of a ptid_t.
2626 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
2627 (dummy_frame_discard, register_dummy_frame_dtor): Take a
2628 thread_info pointer instead of a ptid_t.
2629 * elfread.c: Include "inferior.h".
2630 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
2631 Use inferior_thread.
2632 * eval.c (evaluate_subexp): Likewise.
2633 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
2635 * gdb_proc_service.h (struct thread_info): Forward declare.
2636 (struct ps_prochandle) <ptid>: Delete, replaced by ...
2637 <thread>: ... this new field. All references adjusted.
2638 * gdbarch.h, gdbarch.c: Regenerate.
2639 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
2640 'thread' parameter. All implementations and callers adjusted.
2641 * gdbthread.h (thread_info) <set_running>: New method.
2642 (delete_thread, delete_thread_silent): Take a thread_info pointer
2644 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
2645 (first_thread_of_process): Delete, replaced by ...
2646 (first_thread_of_inferior): ... this new function. All callers
2648 (any_live_thread_of_process): Delete, replaced by ...
2649 (any_live_thread_of_inferior): ... this new function. All callers
2651 (switch_to_thread, switch_to_no_thread): Declare.
2652 (is_executing): Delete.
2653 (enable_thread_stack_temporaries): Update comment.
2654 <enable_thread_stack_temporaries>: Take a thread_info pointer
2655 instead of a ptid_t. Incref the thread.
2656 <~enable_thread_stack_temporaries>: Decref the thread.
2659 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2660 (get_last_thread_stack_temporary)
2661 (value_in_thread_stack_temporaries, can_access_registers_thread):
2662 Take a thread_info pointer instead of a ptid_t. All callers
2664 * infcall.c (get_call_return_value): Use inferior_thread.
2665 (run_inferior_call): Work with thread pointers instead of ptid_t.
2666 (call_function_by_hand_dummy): Work with thread pointers instead
2667 of ptid_t. Use thread_info_ref.
2668 * infcmd.c (proceed_thread_callback): Access thread's state
2670 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
2671 access thread's state directly.
2672 (continue_command): Use inferior_thread.
2673 (info_program_command): Use find_thread_ptid and access thread
2675 (proceed_after_attach_callback): Use thread state directly.
2676 (notice_new_inferior): Take a thread_info pointer instead of a
2677 ptid_t. All callers adjusted.
2678 (exit_inferior): Take an inferior pointer instead of a pid. All
2680 (exit_inferior_silent): New.
2681 (detach_inferior): Delete.
2682 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
2683 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
2684 (detach_inferior_command, kill_inferior_command): Use
2685 find_inferior_id instead of valid_gdb_inferior_id and
2686 gdb_inferior_id_to_pid.
2687 (inferior_command): Use inferior and thread pointers.
2688 * inferior.h (struct thread_info): Forward declare.
2689 (notice_new_inferior): Take a thread_info pointer instead of a
2690 ptid_t. All callers adjusted.
2691 (detach_inferior): Delete declaration.
2692 (exit_inferior, exit_inferior_silent): Take an inferior pointer
2693 instead of a pid. All callers adjusted.
2694 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
2695 (valid_gdb_inferior_id): Delete.
2696 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
2697 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
2698 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
2700 <inf>: ... this new field.
2701 <step_ptid>: Delete, replaced by ...
2702 <step_thread>: ... this new field.
2703 (get_displaced_stepping_state): Take an inferior pointer instead
2704 of a pid. All callers adjusted.
2705 (displaced_step_in_progress_any_inferior): Adjust.
2706 (displaced_step_in_progress_thread): Take a thread pointer instead
2707 of a ptid_t. All callers adjusted.
2708 (displaced_step_in_progress, add_displaced_stepping_state): Take
2709 an inferior pointer instead of a pid. All callers adjusted.
2710 (get_displaced_step_closure_by_addr): Adjust.
2711 (remove_displaced_stepping_state): Take an inferior pointer
2712 instead of a pid. All callers adjusted.
2713 (displaced_step_prepare_throw, displaced_step_prepare)
2714 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
2715 All callers adjusted.
2716 (start_step_over): Adjust.
2717 (infrun_thread_ptid_changed): Remove bit updating ptids in the
2718 displaced step queue.
2719 (do_target_resume): Adjust.
2720 (fetch_inferior_event): Use inferior_thread.
2721 (context_switch, get_inferior_stop_soon): Take an
2722 execution_control_state pointer instead of a ptid_t. All callers
2724 (switch_to_thread_cleanup): Delete.
2725 (stop_all_threads): Use scoped_restore_current_thread.
2726 * inline-frame.c: Include "gdbthread.h".
2727 (inline_state) <inline_state>: Take a thread pointer instead of a
2728 ptid_t. All callers adjusted.
2729 <ptid>: Delete, replaced by ...
2730 <thread>: ... this new field.
2731 (find_inline_frame_state): Take a thread pointer instead of a
2732 ptid_t. All callers adjusted.
2733 (skip_inline_frames, step_into_inline_frame)
2734 (inline_skipped_frames, inline_skipped_symbol): Take a thread
2735 pointer instead of a ptid_t. All callers adjusted.
2736 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
2737 (inline_skipped_frames, inline_skipped_symbol): Likewise.
2738 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
2740 * linux-nat.c (get_detach_signal): Likewise.
2741 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
2742 (thread_db_notice_clone): Adjust.
2743 (thread_db_find_new_threads_silently)
2744 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
2745 a thread pointer instead of a ptid_t. All callers adjusted.
2746 * mi/mi-cmd-var.c: Include "inferior.h".
2747 (mi_cmd_var_update_iter): Update to use thread pointers.
2748 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
2750 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
2752 (mi_output_running): ... this new function.
2753 (mi_on_resume_1): Adjust to use it.
2754 (mi_user_selected_context_changed): Adjust to use inferior_thread.
2755 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
2757 (interrupt_thread_callback): : Adjust to use thread and inferior
2759 * proc-service.c: Include "gdbthread.h".
2760 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
2761 * progspace-and-thread.c: Include "inferior.h".
2762 * progspace.c: Include "inferior.h".
2763 * python/py-exitedevent.c (create_exited_event_object): Adjust to
2764 hold a reference to an inferior_object.
2765 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
2767 * python/py-inferior.c (struct inferior_object): Give the type a
2768 tag name instead of a typedef.
2769 (python_on_normal_stop): No need to check if the current thread is
2771 (inferior_to_inferior_object): Change return type to
2772 inferior_object. All callers adjusted.
2773 (find_thread_object): Delete, bits factored out to ...
2774 (thread_to_thread_object): ... this new function.
2775 * python/py-infthread.c (create_thread_object): Use
2776 inferior_to_inferior_object.
2777 (thpy_is_stopped): Use thread pointer directly.
2778 (gdbpy_selected_thread): Use inferior_thread.
2779 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
2780 field, replaced with ...
2781 <thread>: ... this new field. All users adjusted.
2782 (btpy_insn_or_gap_new): Drop const.
2783 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
2785 * python/py-record.c: Include "gdbthread.h".
2786 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
2787 a ptid_t. All callers adjusted.
2788 (gdbpy_current_recording): Use inferior_thread.
2789 * python/py-record.h (recpy_record_object) <ptid>: Delete
2790 field, replaced with ...
2791 <thread>: ... this new field. All users adjusted.
2792 (recpy_element_object) <ptid>: Delete
2793 field, replaced with ...
2794 <thread>: ... this new field. All users adjusted.
2795 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
2796 a ptid_t. All callers adjusted.
2797 * python/py-threadevent.c: Include "gdbthread.h".
2798 (get_event_thread): Use thread_to_thread_object.
2799 * python/python-internal.h (struct inferior_object): Forward
2801 (find_thread_object, find_inferior_object): Delete declarations.
2802 (thread_to_thread_object, inferior_to_inferior_object): New
2804 * record-btrace.c: Include "inferior.h".
2805 (require_btrace_thread): Use inferior_thread.
2806 (record_btrace_frame_sniffer)
2807 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
2808 (get_thread_current_frame): Use scoped_restore_current_thread and
2810 (get_thread_current_frame): Use thread pointer directly.
2811 (record_btrace_replay_at_breakpoint): Use thread's inferior
2813 * record-full.c: Include "inferior.h".
2814 * regcache.c: Include "gdbthread.h".
2815 (get_thread_arch_regcache): Use the inferior's address space
2817 (get_thread_regcache, registers_changed_thread): New.
2818 * regcache.h (get_thread_regcache(thread_info *thread)): New
2820 (registers_changed_thread): New.
2821 (remote_target) <remote_detach_1>: Swap order of parameters.
2822 (remote_add_thread): <remote_add_thread>: Return the new thread.
2823 (get_remote_thread_info(ptid_t)): New overload.
2824 (remote_target::remote_notice_new_inferior): Use thread pointers
2826 (remote_target::process_initial_stop_replies): Use
2827 thread_info::set_running.
2828 (remote_target::remote_detach_1, remote_target::detach)
2829 (extended_remote_target::detach): Adjust.
2830 * stack.c (frame_show_address): Use inferior_thread.
2831 * target-debug.h (target_debug_print_thread_info_pp): New.
2832 * target-delegates.c: Regenerate.
2833 * target.c (default_thread_address_space): Delete.
2834 (memory_xfer_partial_1): Use current_inferior.
2835 (target_detach): Use current_inferior.
2836 (target_thread_address_space): Delete.
2837 (generic_mourn_inferior): Use current_inferior.
2838 * target.h (struct target_ops) <thread_address_space>: Delete.
2839 (target_thread_address_space): Delete.
2840 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
2842 (delete_thread_1, delete_thread, delete_thread_silent): Take a
2843 thread pointer instead of a ptid_t. Adjust all callers.
2844 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
2845 (first_thread_of_process): Delete, replaced by ...
2846 (first_thread_of_inferior): ... this new function. All callers
2848 (any_thread_of_process): Rename to ...
2849 (any_thread_of_inferior): ... this, and take an inferior pointer.
2850 (any_live_thread_of_process): Rename to ...
2851 (any_live_thread_of_inferior): ... this, and take an inferior
2853 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2854 (value_in_thread_stack_temporaries)
2855 (get_last_thread_stack_temporary): Take a thread pointer instead
2856 of a ptid_t. Adjust all callers.
2857 (thread_info::set_running): New.
2858 (validate_registers_access): Use inferior_thread.
2859 (can_access_registers_ptid): Rename to ...
2860 (can_access_registers_thread): ... this, and take a thread
2862 (print_thread_info_1): Adjust to compare thread pointers instead
2864 (switch_to_no_thread, switch_to_thread): Make extern.
2865 (scoped_restore_current_thread::~scoped_restore_current_thread):
2866 Use m_thread pointer directly.
2867 (scoped_restore_current_thread::scoped_restore_current_thread):
2868 Use inferior_thread.
2869 (thread_command): Use thread pointer directly.
2870 (thread_num_make_value_helper): Use inferior_thread.
2871 * top.c (execute_command): Use inferior_thread.
2872 * tui/tui-interp.c: Include "inferior.h".
2873 * varobj.c (varobj_create): Use inferior_thread.
2874 (value_of_root_1): Use find_thread_global_id instead of
2875 global_thread_id_to_ptid.
2877 2018-06-21 Alan Hayward <alan.hayward@arm.com>
2879 * regcache.c (readable_regcache::read_part): Avoid memcpy when
2881 (regcache::write_part): Likewise.
2882 (readable_regcache::cooked_read_part): Update comment.
2883 (readable_regcache::cooked_write_part): Likewise.
2884 * regcache.h: (readable_regcache::read_part): Likewise.
2885 (regcache::write_part): Likewise.
2887 2018-06-21 Richard Bunt <richard.bunt@arm.com>
2888 Dirk Schubert <dirk.schubert@arm.com>
2890 * aarch64-linux-nat.c (post_attach): New.
2891 (aarch64_linux_nat_target::post_attach): Override post_attach to
2892 record the number of hardware debug registers.
2894 2018-06-20 Tom Tromey <tom@tromey.com>
2896 * python/py-param.c (add_setshow_generic): Make parameters const.
2897 (parmpy_init): Update.
2899 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
2901 * regcache.h (regcache_cooked_read_ftype): Rename to...
2902 (register_read_ftype): ...this, change type to function_view.
2903 (class reg_buffer) <save>: Remove src parameter.
2904 (readonly_detached_regcache) <readonly_detached_regcache>: Make
2905 parameter non-const in first overload. Remove src parameter in
2907 * regcache.c (do_cooked_read): Remove.
2908 (readonly_detached_regcache::readonly_detached_regcache): Make
2909 parameter non-const, adjust call to other constructor.
2910 (reg_buffer::save): Remove src parameter.
2911 * frame.c (do_frame_register_read): Remove.
2912 (frame_save_as_regcache): Use lambda function.
2913 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
2914 parameter to ppu2spu_data *.
2915 (ppu2spu_sniffer): Use lambda function.
2917 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
2919 * record-full.c (record_full_target::insert_breakpoint): Remove
2920 "struct" keyword, add const.
2922 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
2924 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
2925 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
2926 * configure.ac: Remove AC_PREREQ, add missing quoting.
2927 * gnulib/configure.ac: Modernize usage of
2928 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
2929 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
2930 (AUTOMAKE_VERSION): Bump to 1.15.1.
2931 * configure: Re-generate.
2932 * config.in: Re-generate.
2933 * aclocal.m4: Re-generate.
2934 * gnulib/aclocal.m4: Re-generate.
2935 * gnulib/config.in: Re-generate.
2936 * gnulib/configure: Re-generate.
2937 * gnulib/import/Makefile.in: Re-generate.
2939 2018-06-19 Pedro Alves <palves@redhat.com>
2941 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
2942 (lookup_minimal_symbol_by_pc_section): ... here with
2943 gdb_assert_not_reached added.
2945 2018-06-19 Pedro Alves <palves@redhat.com>
2947 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
2948 parameter with a block parameter. Compare location's block symbol
2949 with the frame's block instead of addresses.
2950 (skip_inline_frames): Pass the current block instead of the
2951 frame's address. Break out as soon as we determine the frame
2952 should not be skipped.
2954 2018-06-18 Tom Tromey <tom@tromey.com>
2956 * solib-aix.c (solib_aix_get_section_offsets): Return
2958 (solib_aix_solib_create_inferior_hook): Update.
2960 2018-06-18 Tom Tromey <tom@tromey.com>
2962 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
2964 2018-06-18 Tom Tromey <tom@tromey.com>
2966 * solib-frv.c (frv_relocate_main_executable): Use
2968 * solib-dsbt.c (dsbt_relocate_main_executable): Use
2971 2018-06-18 Tom Tromey <tom@tromey.com>
2973 * objfiles.h (inhibit_section_map_updates): Update.
2974 (resume_section_map_updates, resume_section_map_updates_cleanup):
2976 * solib-svr4.c (svr4_handle_solib_event): Update.
2977 * objfiles.c (inhibit_section_map_updates): Return
2978 scoped_restore_tmpl<int>.
2979 (resume_section_map_updates, resume_section_map_updates_cleanup):
2982 2018-06-18 Tom Tromey <tom@tromey.com>
2984 * valprint.h (read_string): Update.
2985 * valprint.c (read_string): Change type of "buffer".
2986 (val_print_string): Update.
2987 * python/py-value.c (valpy_string): Update.
2988 * language.h (struct language_defn) <la_get_string>: Change
2990 (default_get_string, c_get_string): Update.
2991 * language.c (default_get_string): Change type of "buffer".
2992 * guile/scm-value.c (gdbscm_value_to_string): Update.
2993 * c-lang.c (c_get_string): Change type of "buffer".
2995 2018-06-18 Tom Tromey <tom@tromey.com>
2997 * ser-mingw.c (struct pipe_state_destroyer): New.
2998 (pipe_state_up): New typedef.
2999 (cleanup_pipe_state): Remove.
3000 (pipe_windows_open): Use pipe_state_up. Don't release argv.
3002 2018-06-18 Tom Tromey <tom@tromey.com>
3004 * rust-lang.h (rust_yyerror): Don't declare.
3005 * rust-lang.c (rust_language_defn): Update.
3006 * rust-exp.y (yyerror): Now static.
3007 * parse.c (parse_exp_in_context_1): Update.
3008 * p-lang.h (p_yyerror): Don't declare.
3009 * p-lang.c (p_language_defn): Update.
3010 * p-exp.y (yyerror): Now static.
3011 * opencl-lang.c (opencl_language_defn): Update.
3012 * objc-lang.c (objc_language_defn): Update.
3013 * m2-lang.h (m2_yyerror): Don't declare.
3014 * m2-lang.c (m2_language_defn): Update.
3015 * m2-exp.y (yyerror): Now static.
3016 * language.h (struct language_defn) <la_error>: Remove.
3017 * language.c (unk_lang_error): Remove.
3018 (unknown_language_defn, auto_language_defn): Remove.
3019 * go-lang.h (go_yyerror): Don't declare.
3020 * go-lang.c (go_language_defn): Update.
3021 * go-exp.y (yyerror): Now static.
3022 * f-lang.h (f_yyerror): Don't declare.
3023 * f-lang.c (f_language_defn): Update.
3024 * f-exp.y (yyerror): Now static.
3025 * d-lang.h (d_yyerror): Don't declare.
3026 * d-lang.c (d_language_defn): Update.
3027 * d-exp.y (yyerror): Now static.
3028 * c-lang.h (c_yyerror): Don't declare.
3029 * c-lang.c (c_language_defn, cplus_language_defn)
3030 (asm_language_defn, minimal_language_defn): Update.
3031 * c-exp.y (yyerror): Now static.
3032 * ada-lang.h (ada_yyerror): Don't declare.
3033 * ada-lang.c (ada_language_defn): Update.
3034 * ada-exp.y (yyerror): Now static.
3036 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3038 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
3039 (store_sveregs_to_thread): Likewise.
3040 (aarch64_linux_fetch_inferior_registers): Check for SVE.
3041 (aarch64_linux_store_inferior_registers): Likewise.
3042 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
3044 (aarch64_sve_regs_copy_to_regcache): Likewise.
3045 (aarch64_sve_regs_copy_from_regcache): Likewise.
3046 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
3048 (aarch64_sve_regs_copy_to_regcache): Likewise.
3049 (aarch64_sve_regs_copy_from_regcache): Likewise.
3050 (sve_context): Structure from Linux headers.
3051 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
3052 (SVE_SIG_ZREG_SIZE): Likewise.
3053 (SVE_SIG_PREG_SIZE): Likewise.
3054 (SVE_SIG_FFR_SIZE): Likewise.
3055 (SVE_SIG_REGS_OFFSET): Likewise.
3056 (SVE_SIG_ZREGS_OFFSET): Likewise.
3057 (SVE_SIG_ZREG_OFFSET): Likewise.
3058 (SVE_SIG_ZREGS_SIZE): Likewise.
3059 (SVE_SIG_PREGS_OFFSET): Likewise.
3060 (SVE_SIG_PREG_OFFSET): Likewise.
3061 (SVE_SIG_PREGS_SIZE): Likewise.
3062 (SVE_SIG_FFR_OFFSET): Likewise.
3063 (SVE_SIG_REGS_SIZE): Likewise.
3064 (SVE_SIG_CONTEXT_SIZE): Likewise.
3065 (SVE_PT_REGS_MASK): Likewise.
3066 (SVE_PT_REGS_FPSIMD): Likewise.
3067 (SVE_PT_REGS_SVE): Likewise.
3068 (SVE_PT_VL_INHERIT): Likewise.
3069 (SVE_PT_VL_ONEXEC): Likewise.
3070 (SVE_PT_REGS_OFFSET): Likewise.
3071 (SVE_PT_FPSIMD_OFFSET): Likewise.
3072 (SVE_PT_FPSIMD_SIZE): Likewise.
3073 (SVE_PT_SVE_ZREG_SIZE): Likewise.
3074 (SVE_PT_SVE_PREG_SIZE): Likewise.
3075 (SVE_PT_SVE_FFR_SIZE): Likewise.
3076 (SVE_PT_SVE_FPSR_SIZE): Likewise.
3077 (SVE_PT_SVE_FPCR_SIZE): Likewise.
3078 (__SVE_SIG_TO_PT): Likewise.
3079 (SVE_PT_SVE_OFFSET): Likewise.
3080 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
3081 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
3082 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
3083 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
3084 (SVE_PT_SVE_PREG_OFFSET): Likewise.
3085 (SVE_PT_SVE_PREGS_SIZE): Likewise.
3086 (SVE_PT_SVE_FFR_OFFSET): Likewise.
3087 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
3088 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
3089 (SVE_PT_SVE_SIZE): Likewise.
3090 (SVE_PT_SIZE): Likewise.
3091 (HAS_SVE_STATE): New define.
3093 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3095 * nat/aarch64-sve-linux-sigcontext.h: New file.
3096 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
3098 (SVE_VQ_MIN): Likewise.
3099 (SVE_VQ_MAX): Likewise.
3100 (SVE_VL_MIN): Likewise.
3101 (SVE_VL_MAX): Likewise.
3102 (SVE_NUM_ZREGS): Likewise.
3103 (SVE_NUM_PREGS): Likewise.
3104 (sve_vl_valid): Likewise.
3105 (struct user_sve_header): Likewise.
3107 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3108 Richard Bunt <Richard.Bunt@arm.com>
3110 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
3111 was requested by GDB.
3113 2018-06-15 Tom de Vries <tdevries@suse.de>
3115 * MAINTAINERS (Write After Approval): Add Tom de Vries.
3117 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
3119 * gnulib/update-gnulib.sh: Print expected versions of
3122 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
3124 * arch-utils.c (default_type_align): Use type_length_units.
3125 * gdbtypes.c (type_align): Use type_length_units.
3127 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3129 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
3130 of 'define' command.
3132 2018-06-14 Tom de Vries <tdevries@suse.de>
3135 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
3136 get_no_prettyformat_print_options.
3138 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
3140 * sparc-nat.h: Include target.h.
3141 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
3142 <fetch_registers>: Remove this argument in function call.
3143 <store_registers>: Remove this argument in function call, remove
3145 <low_forget_process>: Call sparc64_forget_process instead of
3146 sparc_forget_process.
3148 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3150 * procfs.c (_initialize_procfs): Use add_inf_child_target.
3151 (procfs_target::make_corefile_notes): Adjust to new
3152 target_read_alloc return type.
3154 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3155 Stephen Roberts <stephen.roberts@arm.com>
3158 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
3159 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
3160 Move should_notify_stop local into more inner scope.
3162 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3163 Stephen Roberts <stephen.roberts@arm.com>
3166 * infrun.c (resume_1): Add call to mark_async_event_handler.
3168 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3170 * infrun.c (do_target_wait): Change old version of $pc printed.
3172 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
3174 * dwarf2read.c (read_index_from_section): Rename to...
3175 (read_gdb_index_from_section): ... this, update all callers.
3176 (dwarf2_read_index): Rename to...
3177 (dwarf2_read_gdb_index): ... this, update all callers.
3179 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
3181 * gdb/hppa-linux-nat.c
3182 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
3183 hppa_linux_nat_target::fetch_registers.
3185 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3187 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
3188 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
3189 (AARCH64_DWARF_SVE_FFR): Likewise.
3190 (AARCH64_DWARF_SVE_P0): Likewise.
3191 (AARCH64_DWARF_SVE_Z0): Likewise.
3193 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3195 * common/common-regcache.h (raw_compare): New function.
3196 * regcache.c (regcache::raw_compare): Likewise.
3197 * regcache.h (regcache::raw_compare): New declaration.
3199 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3201 * common/common-regcache.h (reg_buffer_common): New structure.
3202 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
3203 (reg_buffer::raw_supply): Likewise.
3204 (reg_buffer::raw_supply_integer): Likewise.
3205 (reg_buffer::raw_supply_zeroed): Likewise.
3206 (reg_buffer::raw_collect): Likewise.
3207 (reg_buffer::raw_collect_integer): Likewise.
3208 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
3209 (reg_buffer::raw_supply): Likewise.
3210 (reg_buffer::raw_supply_integer): Likewise.
3211 (reg_buffer::raw_supply_zeroed): Likewise.
3212 (reg_buffer::raw_collect): Likewise.
3213 (reg_buffer::raw_collect_integer): Likewise.
3215 2018-06-10 Tom Tromey <tom@tromey.com>
3217 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
3218 (class remote_state) <stop_reply_queue>: Now std::vector.
3219 (remote_state::~remote_state)
3220 (remote_target::stop_reply_queue_length): Update.
3221 (struct queue_iter_param, remove_child_of_pending_fork)
3222 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
3223 (check_pending_event_prevents_wildcard_vcont_callback)
3224 (remove_stop_reply_for_inferior)
3225 (remove_stop_reply_of_remote_state)
3226 (remote_notif_remove_once_on_match)
3227 (stop_reply_match_ptid_and_ws)
3228 (remote_kill_child_of_pending_fork): Remove.
3229 (remote_target::remove_new_fork_children)
3230 (remote_target::check_pending_events_prevent_wildcard_vcont)
3231 (remote_target::discard_pending_stop_replies)
3232 (remote_target::discard_pending_stop_replies_in_queue)
3233 (remote_target::remote_notif_remove_queued_reply)
3234 (remote_target::queued_stop_reply)
3235 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
3236 (remote_target::wait, remote_target::kill_new_fork_children)
3237 (remote_target::async): Update.
3239 2018-06-10 Tom Tromey <tom@tromey.com>
3241 * record-full.c (record_full_arch_list_cleanups): Remove.
3242 (record_full_message): Use try/catch.
3243 (record_full_wait_cleanups): Remove.
3244 (record_full_wait_1): Use try/catch.
3245 (record_full_restore): Likewise.
3247 2018-06-10 Tom Tromey <tom@tromey.com>
3249 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
3250 declare VEC. Add constructor.
3251 <in_target_beneath>: Now bool.
3252 (record_full_breakpoints): Now a std::vector, static.
3253 (record_full_sync_record_breakpoints)
3254 (record_full_init_record_breakpoints)
3255 (record_full_target::insert_breakpoint)
3256 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
3258 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
3260 * dwarf2read.c (process_cu_includes): Remove struct keyword.
3261 * serial.c (serial_interface_lookup): Remove struct keyword.
3263 2018-06-10 Tom Tromey <tom@tromey.com>
3265 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
3267 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
3269 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
3271 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
3272 "beneath" as a method.
3273 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
3274 Use "beneath" as a method.
3276 2018-06-10 Tom Tromey <tom@tromey.com>
3278 * tracefile.c (struct trace_file_writer_deleter): New.
3279 <operator()>: Rename from trace_file_writer_xfree.
3280 (trace_file_writer_up): New typedef.
3281 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
3283 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
3285 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
3286 <m_registers, m_register_status>: Change type to
3288 * regcache.c (reg_buffer::reg_buffer): Use new instead of
3291 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
3293 * common/common-regcache.h (enum register_status): Add
3294 underlying type "signed char".
3295 * regcache.h (reg_buffer) <m_register_status>: Change type to
3297 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
3298 register_status instead of signed char.
3299 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
3300 (reg_buffer::get_register_status): Remove cast.
3301 (readable_regcache::raw_read): Remove cast.
3302 (readable_regcache::cooked_read): Remove cast.
3304 2018-06-09 Tom Tromey <tom@tromey.com>
3306 * source.c (reverse_search_command, forward_search_command): Use
3309 2018-06-09 Tom Tromey <tom@tromey.com>
3311 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
3312 (serial_ops_list): Now static, std::vector.
3313 (serial_interface_lookup, serial_add_interface): Update.
3315 2018-06-09 Tom Tromey <tom@tromey.com>
3317 * dwarf2read.c (process_cu_includes): Update.
3318 (process_full_comp_unit): Update.
3319 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
3322 2018-06-08 Paul Koning <paul_koning@dell.com>
3326 * python/python.c (do_start_initialization):
3327 Avoid call to internal Python API.
3328 (init__gdb_module): New function.
3330 2018-06-08 Gary Benson <gbenson@redhat.com>
3332 * linux-thread-db.c (valprint.h): New include.
3333 (struct check_thread_db_info): New structure.
3334 (check_thread_db_on_load, tdb_testinfo): New static globals.
3335 (check_thread_db, check_thread_db_callback): New functions.
3336 (try_thread_db_load_1): Run integrity checks if requested.
3337 (maintenance_check_libthread_db): New function.
3338 (_initialize_thread_db): Register "maint check libthread-db"
3339 and "maint set/show check-libthread-db".
3340 * NEWS: Mention the above new commands.
3342 2018-06-08 Tom Tromey <tom@tromey.com>
3344 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
3347 2018-06-08 Tom Tromey <tom@tromey.com>
3349 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
3351 2018-06-08 Tom Tromey <tom@tromey.com>
3353 * common/btrace-common.h (struct btrace_data): Add constructor,
3354 destructor, move assignment operator.
3355 <empty, clear, fini>: New methods.
3356 <format>: Initialize.
3357 (btrace_data_init, btrace_data_fini, btrace_data_clear)
3358 (btrace_data_empty): Don't declare.
3359 * common/btrace-common.c (btrace_data_init): Remove.
3360 (btrace_data::fini): Rename from btrace_data_fini.
3361 (btrace_data::empty): Rename from btrace_data_empty.
3362 (btrace_data::clear): Rename from btrace_data_clear. Return
3364 * btrace.h (make_cleanup_btrace_data): Don't declare.
3365 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
3366 (parse_xml_btrace): Update.
3367 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
3368 (maint_btrace_clear_packet_history_cmd): Update.
3370 2018-06-07 Pedro Alves <palves@redhat.com>
3372 * target.h (target_ops) <beneath>: Now a method. All references
3374 (class target_stack): New.
3375 * target.c (g_target_stack): New.
3376 (g_current_top_target): Delete.
3377 (current_top_target): Get the top target out of g_target_stack.
3378 (target_stack::push, target_stack::unpush): New.
3379 (push_target, unpush_target): Reimplement.
3380 (target_is_pushed): Reimplement in terms of g_target_stack.
3381 (target_ops::beneath, target_stack::find_beneath): New.
3383 2018-06-07 Pedro Alves <palves@redhat.com>
3385 * target.h (find_target_beneath): Delete declaration.
3386 * target.c (find_target_beneath): Delete definition.
3387 * aix-thread.c: All callers of find_target_beneath adjusted to
3388 call target_ops::beneath instead.
3389 * bsd-uthread.c: Likewise.
3390 * linux-thread-db.c: Likewise.
3391 * ravenscar-thread.c: Likewise.
3392 * sol-thread.c: Likewise.
3393 * spu-multiarch.c: Likewise.
3395 2018-06-07 Pedro Alves <palves@redhat.com>
3397 * target.h (target_ops) <beneath>: Now a method. All references
3399 (target_ops) <m_beneath>: New.
3400 * target.c (target_ops::beneath): New.
3401 * corelow.c: Adjust all references to target_ops::beneath.
3402 * linux-thread-db.c: Likewise.
3403 * make-target-delegates: Likewise.
3404 * record-btrace.c: Likewise.
3405 * record-full.c: Likewise.
3406 * remote.c: Likewise.
3407 * target.c: Likewise.
3408 * target-delegates.c: Regenerate.
3410 2018-06-07 Pedro Alves <palves@redhat.com>
3412 * target.h (target_stack): Delete.
3413 (current_top_target): Declare function.
3414 * target.c (target_stack): Delete.
3415 (g_current_top_target): New.
3416 (current_top_target): New function.
3417 * auxv.c: Use current_top_target instead of target_stack
3419 * avr-tdep.c: Likewise.
3420 * breakpoint.c: Likewise.
3421 * corefile.c: Likewise.
3422 * elfread.c: Likewise.
3424 * exceptions.c: Likewise.
3425 * frame.c: Likewise.
3426 * gdbarch-selftests.c: Likewise.
3427 * gnu-v3-abi.c: Likewise.
3428 * ia64-tdep.c: Likewise.
3429 * ia64-vms-tdep.c: Likewise.
3430 * infcall.c: Likewise.
3431 * infcmd.c: Likewise.
3432 * infrun.c: Likewise.
3433 * linespec.c: Likewise.
3434 * linux-tdep.c: Likewise.
3435 * minsyms.c: Likewise.
3436 * ppc-linux-nat.c: Likewise.
3437 * ppc-linux-tdep.c: Likewise.
3438 * procfs.c: Likewise.
3439 * regcache.c: Likewise.
3440 * remote.c: Likewise.
3441 * rs6000-tdep.c: Likewise.
3442 * s390-linux-nat.c: Likewise.
3443 * s390-tdep.c: Likewise.
3444 * solib-aix.c: Likewise.
3445 * solib-darwin.c: Likewise.
3446 * solib-dsbt.c: Likewise.
3447 * solib-spu.c: Likewise.
3448 * solib-svr4.c: Likewise.
3449 * solib-target.c: Likewise.
3450 * sparc-tdep.c: Likewise.
3451 * sparc64-tdep.c: Likewise.
3452 * spu-tdep.c: Likewise.
3453 * symfile.c: Likewise.
3454 * symtab.c: Likewise.
3455 * target-descriptions.c: Likewise.
3456 * target-memory.c: Likewise.
3457 * target.c: Likewise.
3458 * target.h: Likewise.
3459 * tracefile-tfile.c: Likewise.
3460 * tracepoint.c: Likewise.
3461 * valops.c: Likewise.
3462 * valprint.c: Likewise.
3463 * value.c: Likewise.
3464 * windows-tdep.c: Likewise.
3465 * mi/mi-main.c: Likewise.
3467 2018-06-07 Tom Tromey <tom@tromey.com>
3469 * valprint.h (build_address_symbolic): Declare.
3470 * printcmd.c (print_address_symbolic): Update.
3471 (build_address_symbolic): Change "name" and "filename" to
3473 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3475 * defs.h (build_address_symbolic): Remove declaration.
3477 2018-06-07 Alan Hayward <alan.hayward@arm.com>
3479 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
3480 (aarch64_vnv_type): Add function.
3481 (aarch64_pseudo_register_name): Add V regs for SVE.
3482 (aarch64_pseudo_register_type): Likewise.
3483 (aarch64_pseudo_register_reggroup_p): Likewise.
3484 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
3485 (aarch64_pseudo_read_value): Add V regs for SVE.
3486 (aarch64_pseudo_write_2): Use V0 offset for SVE
3487 (aarch64_pseudo_write): Add V regs for SVE.
3488 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
3490 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
3492 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
3493 (sve_vl_from_vq): Likewise.
3495 2018-06-05 Tom Tromey <tom@tromey.com>
3497 * cli/cli-cmds.c (show_version): Update.
3498 * top.c (print_gdb_version): Add "interactive" parameter.
3500 * main.c (captured_main_1): Update.
3501 * top.h (print_gdb_version): Add "interactive" parameter and a
3504 2018-06-05 David Malcolm <dmalcolm@redhat.com>
3506 * common/enum-flags.h: Add trailing semicolon to example in
3509 2018-06-05 Tom Tromey <tom@tromey.com>
3512 * NEWS: Add entry about pager.
3513 * utils.c (pagination_disabled_for_command): New global.
3514 (prompt_for_continue): Allow "c" response to prompt.
3515 (reinitialize_more_filter): Clear
3516 pagination_disabled_for_command.
3517 (fputs_maybe_filtered): Check pagination_disabled_for_command.
3519 2018-06-04 Tom Tromey <tom@tromey.com>
3521 * ada-lang.h (ada_lookup_symbol_list): Update.
3522 * ada-lang.c (resolve_subexp): Update.
3523 (symbols_are_identical_enums): Change type of syms. Remove nsyms
3525 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
3526 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
3527 results parameter to std::vector.
3528 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
3530 * ada-exp.y (block_lookup): Update.
3531 (select_possible_type_sym): Change type of syms. Remove nsyms
3533 (write_var_or_type, write_name_assoc): Update.
3535 2018-06-04 Joel Brobecker <brobecker@adacore.com>
3537 * windows-nat.c (windows_nat_target::xfer_partial): Return
3538 TARGET_XFER_E_IO if we need to delegate to the target beneath
3539 but BENEATH is NULL.
3541 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
3543 * Makefile.in (config.status): Add configure.nat as a
3546 2018-06-04 Tom Tromey <tom@tromey.com>
3548 * cp-name-parser.y (cpname_state): Add method declarations.
3549 (HANDLE_QUAL): Update.
3550 (cpname_state::d_grab, cpname_state::fill_comp)
3551 (cpname_state::make_operator, cpname_state::make_dtor)
3552 (cpname_state::make_builtin_type, cpname_state::make_name)
3553 (cpname_state::d_qualify, cpname_state::d_int_type)
3554 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
3555 (%union): Move earlier.
3557 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3559 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
3561 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3563 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
3564 (aarch64_pseudo_write_1): Likewise.
3565 (aarch64_pseudo_read_value): Use helper.
3566 (aarch64_pseudo_write): Likewise.
3568 2018-06-04 Pedro Alves <palves@redhat.com>
3570 * darwin-nat.c (darwin_ops): Delete.
3571 (darwin_attach_pid): Use get_native_target.
3573 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3575 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
3576 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
3578 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3580 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
3581 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
3582 (aarch64_gdbarch_init): Check for SVE.
3583 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
3585 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3587 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
3588 * aarch64-tdep.h (aarch64_read_description): Likewise.
3589 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3590 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3591 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
3592 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
3593 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
3595 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
3597 * value.c (value_fetch_lazy_bitfield): New.
3598 (value_fetch_lazy_memory): New.
3599 (value_fetch_lazy_register): New.
3600 (value_fetch_lazy): Factor out to smaller functions.
3602 2018-06-01 Tom Tromey <tom@tromey.com>
3604 * cp-name-parser.y (backslashable, represented): Now const.
3606 2018-06-01 Tom Tromey <tom@tromey.com>
3608 * cp-name-parser.y: Include parser-defs.h.
3609 (parser_fprintf): Remove declaration.
3611 2018-06-01 Tom Tromey <tom@tromey.com>
3613 * cp-name-parser.y: Use %pure-parser, %lex-param, and
3615 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
3616 (global_result): Remove globals.
3617 (struct cpname_state): New.
3618 (yyparse): Don't declare.
3619 (yylex, yyerror): Move declarations after %union.
3620 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
3621 (make_name): Add state parameter.
3623 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
3625 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
3627 (yylex): Add lvalp, state parameters.
3628 (yyerror): Add state parameter.
3629 (cp_demangled_name_to_comp): Update.
3631 2018-06-01 Tom Tromey <tom@tromey.com>
3633 * cp-name-parser.y (parser_fprintf): Declare.
3634 (GDB_YY_REMAP_PREFIX): Define.
3635 Include yy-remap.h. Don't redefine yy* identifiers.
3637 2018-06-01 Tom Tromey <tom@tromey.com>
3639 * python/py-type.c (typy_legacy_template_argument): Update.
3640 * cp-support.h (cp_demangled_name_to_comp): Update.
3641 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
3642 parameter to be a "std::string *".
3645 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
3647 * ada-lex.l: Include "diagnostics.h" instead of
3648 "common/diagnostics.h".
3649 * unittests/environ-selftests.c: Likewise.
3650 * common/diagnostics.h: Moved to ../include.
3652 2018-06-01 Joel Brobecker <brobecker@adacore.com>
3654 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
3655 to language_mode_manual while calling breakpoint_re_set_one.
3657 2018-06-01 Tom Tromey <tom@tromey.com>
3659 * valops.c (value_cast_structs, destructor_name_p): Update.
3660 * symtab.c (gdb_mangle_name): Update.
3661 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
3663 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
3664 (pascal_object_print_value_fields, pascal_object_print_value):
3666 * p-typeprint.c (pascal_type_print_derivation_info): Update.
3667 * linespec.c (find_methods): Update.
3668 * gdbtypes.h (type_name_no_tag): Remove.
3669 (type_name_or_error): Rename from type_name_no_tag_or_error.
3670 * gdbtypes.c (type_name_no_tag): Remove.
3671 (type_name_or_error): Rename from type_name_no_tag_or_error.
3672 (lookup_struct_elt_type, check_typedef): Update.
3673 * expprint.c (print_subexp_standard): Update.
3674 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
3675 * d-namespace.c (d_lookup_nested_symbol): Update.
3676 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
3677 (cp_print_class_member): Update.
3678 * cp-namespace.c (cp_lookup_nested_symbol): Update.
3679 * completer.c (add_struct_fields): Update.
3680 * c-typeprint.c (cp_type_print_derivation_info)
3681 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
3683 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
3684 (ada_prefer_type, ada_is_exception_sym): Update.
3686 2018-06-01 Tom Tromey <tom@tromey.com>
3688 * valops.c (enum_constant_from_type, value_namespace_elt)
3689 (value_maybe_namespace_elt): Update.
3690 * valarith.c (find_size_for_pointer_math): Update.
3691 * target-descriptions.c (make_gdb_type): Update.
3692 * symmisc.c (print_symbol): Update.
3693 * stabsread.c (define_symbol, read_type)
3694 (complain_about_struct_wipeout, add_undefined_type)
3695 (cleanup_undefined_types_1): Update.
3696 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
3697 (rust_range_type_p, val_print_struct, rust_print_struct_def)
3698 (rust_internal_print_type, rust_composite_type)
3699 (rust_evaluate_funcall, rust_evaluate_subexp)
3700 (rust_inclusive_range_type_p): Update.
3701 * python/py-type.c (typy_get_tag): Update.
3702 * p-typeprint.c (pascal_type_print_base): Update.
3703 * mdebugread.c (parse_symbol, parse_type): Update.
3704 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
3706 * guile/scm-type.c (gdbscm_type_tag): Update.
3707 * go-lang.c (sixg_string_p): Update.
3708 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
3710 * gdbtypes.h (struct main_type) <tag_name>: Remove.
3711 (TYPE_TAG_NAME): Remove.
3712 * gdbtypes.c (type_name_no_tag): Simplify.
3713 (check_typedef, check_types_equal, recursive_dump_type)
3714 (copy_type_recursive, arch_composite_type): Update.
3715 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
3716 in summary mode when needed.
3717 * eval.c (evaluate_funcall): Update.
3718 * dwarf2read.c (fixup_go_packaging, read_structure_type)
3719 (process_structure_scope, read_enumeration_type)
3720 (read_namespace_type, read_module_type, determine_prefix): Update.
3721 * cp-support.c (inspect_type): Update.
3722 * coffread.c (process_coff_symbol, decode_base_type): Update.
3723 * c-varobj.c (c_is_path_expr_parent): Update.
3724 * c-typeprint.c (c_type_print_base_struct_union): Update.
3725 (c_type_print_base_1): Update. Print struct/class/union/enum in
3726 summary when using C language.
3727 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
3728 (gen_maybe_namespace_elt): Update.
3729 * ada-lang.c (ada_type_name): Simplify.
3730 (empty_record, ada_template_to_fixed_record_type_1)
3731 (template_to_static_fixed_type)
3732 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
3734 2018-06-01 Tom Tromey <tom@tromey.com>
3736 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
3738 * c-typeprint.c (c_print_type_1): Add "language" parameter.
3739 (c_print_type): Update.
3740 (c_print_type): New overload.
3741 (c_type_print_varspec_prefix, c_type_print_args)
3742 (c_type_print_varspec_suffix, c_print_type_no_offsets)
3743 (c_type_print_base_struct_union, c_type_print_base_1)
3744 (cp_type_print_method_args): Add "language" parameter.
3745 (c_type_print_base): Update.
3746 * c-lang.h (c_print_type): Add new overload.
3748 2018-06-01 Tom Tromey <tom@tromey.com>
3750 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
3751 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
3753 2018-06-01 Alan Hayward <alan.hayward@arm.com>
3755 * aarch64-tdep.c (aarch64_sve_register_names): New const
3757 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
3758 (AARCH64_SVE_Z_REGS_NUM): New define.
3759 (AARCH64_SVE_P_REGS_NUM): Likewise.
3760 (AARCH64_SVE_NUM_REGS): Likewise.
3762 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
3764 * nat/linux-ptrace.h [__alpha__]
3765 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
3768 2018-05-31 Maciej W. Rozycki <macro@mips.com>
3770 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
3771 the endianness selected.
3772 * NEWS: Document `set endian auto' mode operation update.
3774 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3776 * Makefile.in: Add new header.
3777 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
3778 (sve_vl_from_vg): Likewise.
3779 (sve_vq_from_vl): Likewise.
3780 (sve_vl_from_vq): Likewise.
3781 (sve_vq_from_vg): Likewise.
3782 (sve_vg_from_vq): Likewise.
3783 * configure.nat: Add new c file.
3784 * nat/aarch64-sve-linux-ptrace.c: New file.
3785 * nat/aarch64-sve-linux-ptrace.h: New file.
3787 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3789 * aarch64-linux-nat.c (aarch64_linux_read_description):
3791 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3793 * aarch64-tdep.c (tdesc_aarch64_list): Add.
3794 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
3795 (aarch64_gdbarch_init): Add parmeter zero.
3796 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
3797 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
3798 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
3800 * doc/gdb.texinfo: Describe SVE feature
3801 * features/aarch64-sve.c: New file.
3803 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
3806 * gdbarch.sh (significant_addr_bit): Default to zero when
3807 not set by target architecture.
3808 * gdbarch.c: Re-generated.
3809 * utils.c (address_significant): Update.
3811 2018-05-30 Joel Brobecker <brobecker@adacore.com>
3813 * stack.c (func_command): Remove trailing newline in call to error.
3815 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3817 * regcache.h (regcache_raw_collect): Remove, update callers to
3818 use regcache::raw_collect.
3819 * regcache.c (regcache_raw_collect): Remove.
3821 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3823 * regcache.h (regcache_raw_supply): Remove, update callers to
3824 use detached_regcache::raw_supply.
3825 * regcache.c (regcache_raw_supply): Remove.
3827 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3829 * regcache.h (regcache_cooked_write_part): Remove, update
3830 callers to use regcache::cooked_write_part.
3831 * regcache.c (regcache_cooked_write_part): Remove.
3833 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3835 * regcache.h (regcache_cooked_read_part): Remove, update callers
3836 to use readable_regcache::cooked_read_part.
3837 * regcache.c (regcache_cooked_read_part): Remove.
3839 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3841 * regcache.h (regcache_cooked_read_value): Remove, update
3842 callers to use readable_regcache::cooked_read_value.
3843 * regcache.c (regcache_cooked_read_value): Remove.
3845 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3847 * regcache.h (regcache_cooked_write): Remove, update callers to
3848 use regcache::cooked_write.
3849 * regcache.c (regcache_cooked_write): Remove.
3851 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3853 * regcache.h (regcache_invalidate): Remove, update callers to
3854 use detached_regcache::invalidate instead.
3855 * regcache.c (regcache_invalidate): Remove.
3857 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3859 * regcache.h (regcache_raw_write_part): Remove, update callers
3860 to use regcache::raw_write_part instead.
3861 * regcache.c (regcache_raw_write_part): Remove.
3863 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3865 * regcache.h (regcache_raw_read_part): Remove, update callers to
3866 use readable_regcache::raw_read_part instead.
3867 * regcache.c (regcache_raw_read_part): Remove.
3869 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3871 * regcache.h (regcache_cooked_read): Remove, update callers to
3872 use readable_regcache::cooked_read instead.
3873 * regcache.c (regcache_cooked_read): Remove.
3875 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3877 * regcache.h (regcache_raw_write): Remove, update callers to use
3878 regcache::raw_write instead.
3879 * regcache.c (regcache_raw_write): Remove.
3881 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3883 * regcache.h (regcache_raw_read): Remove, update callers to use
3884 readable_regcache::raw_read instead.
3885 * regcache.c (regcache_raw_read): Remove.
3887 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3889 * regcache.h (regcache_raw_update): Remove, update callers to
3890 use readable_regcache::raw_update instead.
3891 * regcache.c (regcache_raw_update): Remove.
3893 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3895 * regcache.h (regcache_register_status): Remove, update callers
3896 to use reg_buffer::get_register_status directly instead.
3897 * regcache.c (regcache_register_status): Remove.
3899 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3901 * regcache.h (regcache_get_ptid): Remove, update all callers to
3902 call regcache::ptid instead.
3903 * regcache.c (regcache_get_ptid): Remove.
3905 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3907 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
3909 2018-05-30 Pedro Alves <palves@redhat.com>
3911 * common/common-exceptions.h (exception_rethrow): Use
3914 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
3916 * breakpoint.c (print_solib_event, check_status_catch_solib):
3917 Remove struct keyword in range-based for loops.
3918 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
3919 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
3921 * linespec.c (find_superclass_methods, search_minsyms_for_name):
3923 * symfile.c (addr_info_make_relative): Likewise.
3924 * thread.c (value_in_thread_stack_temporaries): Likewise.
3926 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
3929 * valops.c (value_struct_elt_for_reference): Call check_typedef on
3930 aggregate type to get its real type before accessing it.
3932 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
3934 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
3935 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
3936 * coff-pe-read.c (add_pe_forwarded_sym): Replace
3937 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
3938 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
3939 * jit.c (jit_breakpoint_re_set_internal): Likewise.
3940 * printcmd.c (info_address_command): Likewise.
3942 2018-05-29 Tom Tromey <tom@tromey.com>
3944 * windows-nat.c (handle_exception): Update fall-through comment.
3946 2018-05-29 Tom Tromey <tom@tromey.com>
3948 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
3949 (struct program_space) <added_solibs>: Now a std::vector.
3950 * breakpoint.c (print_solib_event): Update.
3951 (check_status_catch_solib): Update.
3952 * progspace.c (clear_program_space_solib_cache): Update.
3953 * solib.c (update_solib_list): Update.
3955 2018-05-29 Tom Tromey <tom@tromey.com>
3957 * python/py-type.c (typy_richcompare): Update.
3958 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
3959 * gdbtypes.h (types_deeply_equal): Return bool.
3960 (types_equal): Likewise.
3961 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
3963 (check_types_equal): Change worklist to std::vector. Return
3965 (struct type_equality_entry): Add constructor.
3966 (compare_maybe_null_strings): Return bool.
3967 (check_types_worklist): Return bool. Change worklist to
3969 (types_deeply_equal): Use std::vector.
3970 (types_equal): Return bool.
3971 (compare_maybe_null_strings): Simplify.
3973 2018-05-29 Tom Tromey <tom@tromey.com>
3975 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
3977 2018-05-29 Tom Tromey <tom@tromey.com>
3979 * objc-lang.h: Don't include cp-support.h.
3980 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
3983 2018-05-27 Tom Tromey <tom@tromey.com>
3985 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
3987 2018-05-25 Tom Tromey <tom@tromey.com>
3989 * value.c (value::location): Initialize.
3991 2018-05-25 Tom Tromey <tom@tromey.com>
3993 * dbxread.c (init_bincl_list): Remove.
3994 (bincl_list): Now a std::vector.
3995 (bincls_allocated, next_bincl): Remove.
3996 (free_bincl_list, do_free_bincl_list_cleanup)
3997 (make_cleanup_free_bincl_list): Remove.
3998 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
4000 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
4001 (struct header_file_location): Add constructor.
4002 (add_bincl_to_list): Remove.
4004 2018-05-25 Tom Tromey <tom@tromey.com>
4006 * tui/tui.c (tui_enable): Update.
4007 * mi/mi-interp.c (mi_interp::init): Update.
4008 * interps.h (class interp) <name>: New method.
4009 <m_name>: Rename from name.
4010 (~scoped_restore_interp): Update.
4011 * interps.c (interp::interp): Update.
4012 (interp_add, interp_set, interp_lookup_existing)
4013 (current_interp_named_p): Update.
4015 2018-05-25 Tom Tromey <tom@tromey.com>
4017 * interps.c (interp_name): Remove.
4018 * mi/mi-interp.c (mi_interp::init): Update.
4019 * interps.h (interp_name): Remove.
4020 (~scoped_restore_interp): Update.
4021 * tui/tui.c (tui_enable): Update.
4023 2018-05-25 Tom Tromey <tom@tromey.com>
4025 * utils.c (fputs_maybe_filtered): Update.
4026 * linespec.c (decode_line_full): Update.
4027 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
4028 (mi_print_breakpoint_for_event, mi_solib_loaded)
4029 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
4030 (mi_user_selected_context_changed): Update.
4031 * mi/mi-main.c (mi_execute_command): Update.
4032 * cli/cli-script.c (execute_control_command): Update.
4033 * python/python.c (execute_gdb_command): Update.
4034 * solib.c (info_sharedlibrary_command): Update.
4035 * interps.c (interp_ui_out): Remove.
4036 * interps.h (interp_ui_out): Remove.
4038 2018-05-25 Tom Tromey <tom@tromey.com>
4040 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
4041 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
4042 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
4044 2018-05-25 Tom Tromey <tom@tromey.com>
4046 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
4047 * interps.c (interp_exec): Use scoped_restore.
4049 2018-05-25 Tom Tromey <tom@tromey.com>
4051 * remote.c (remote_target::remote_file_get): Use
4053 (remote_target::remote_file_put): Likewise.
4055 2018-05-25 Tom Tromey <tom@tromey.com>
4057 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
4059 (get_pe_section_index, add_pe_exported_sym): Update.
4060 (read_pe_exported_syms): Use gdb::def_vector.
4062 2018-05-25 Tom Tromey <tom@tromey.com>
4064 * frame.c (remove_prev_frame): Remove.
4065 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
4067 2018-05-25 Maciej W. Rozycki <macro@mips.com>
4069 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
4071 * mips-linux-nat.c (supply_fpregset): Always call
4072 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
4073 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
4074 `mips_fill_fpregset'.
4075 * mips-linux-tdep.c (mips_supply_fpregset)
4076 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
4077 (mips_fill_fpregset_wrapper): Remove functions.
4078 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
4079 (mips_linux_fpregset): Remove variable.
4080 (mips_linux_iterate_over_regset_sections): Use
4081 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
4082 (mips_linux_o32_sigframe_init): Remove comment.
4084 2018-05-25 Pedro Alves <palves@redhat.com>
4086 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
4087 (struct readahead_cache, struct packet_reg, struct
4088 remote_arch_state, class remote_state): Move higher up in the
4090 (remote_target::m_remote_state): Now an object instead of a pointer.
4091 (remote_target::get_remote_state): Adjust.
4093 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
4095 * stack.c (select_and_print_frame): Delete.
4096 (struct function_bounds): Move struct within function.
4097 (func_command): Most content moved into new function
4098 find_frame_for_function, use new function, print result, add
4100 (find_frame_for_function): New function, now returns a result.
4102 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4104 * stack.c (iterate_over_block_arg_vars): Fix comment.
4105 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
4107 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
4111 (scoped_restore_selected_frame::scoped_restore_selected_frame):
4113 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
4115 * frame.h (class scoped_restore_selected_frame): New class.
4116 * stack.c (print_frame_local_vars): Remove catching and rethrowing
4117 of any exception, use scoped_restore_selected_frame to restore the
4120 2018-05-24 Pedro Alves <palves@redhat.com>
4122 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
4125 2018-05-23 Tom Tromey <tom@tromey.com>
4127 * complaints.c (struct complaints): Remove.
4128 (symfile_complaint_book): Remove.
4129 (series): New global.
4130 (complaint_internal): Update.
4131 (clear_complaints): Update.
4133 2018-05-23 Tom Tromey <tom@tromey.com>
4135 * complaints.c (counters): New global.
4136 (struct complain): Remove.
4137 (struct complaints) <root>: Remove.
4138 (complaint_sentinel): Remove.
4139 (symfile_complaint_book): Update.
4140 (find_complaint) Remove.
4141 (complaint_internal, clear_complaints): Update.
4143 2018-05-23 Tom Tromey <tom@tromey.com>
4145 * complaints.c (struct complain) <file, line>: Remove.
4146 (find_complaint): Remove file, line parameters.
4147 (complaint_internal): Update.
4149 2018-05-23 Tom Tromey <tom@tromey.com>
4151 * complaints.c (vcomplaint): Remove.
4152 (complaint_internal) Merge in contents of vcomplaint.
4154 2018-05-23 Tom Tromey <tom@tromey.com>
4156 * complaints.c (struct complaints) <explanation>: Remove.
4157 (symfile_explanations): Remove.
4158 (symfile_complaint_book): Update.
4159 (vcomplaint): Update.
4160 (struct explanation): Remove.
4162 2018-05-23 Tom Tromey <tom@tromey.com>
4164 * complaints.c (symfile_complaints): Remove.
4165 (complaint_internal): Remove "complaints" parameter.
4166 (clear_complaints, vcomplaint): Remove "c" parameter.
4167 (get_complaints): Remove.
4168 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
4169 (dwarf2_debug_line_missing_file_complaint)
4170 (dwarf2_debug_line_missing_end_sequence_complaint)
4171 (dwarf2_complex_location_expr_complaint)
4172 (dwarf2_const_value_length_mismatch_complaint)
4173 (dwarf2_section_buffer_overflow_complaint)
4174 (dwarf2_macro_malformed_definition_complaint)
4175 (dwarf2_invalid_attrib_class_complaint)
4176 (create_addrmap_from_index, dw2_symtab_iter_next)
4177 (dw2_expand_marked_cus)
4178 (dw2_debug_names_iterator::find_vec_in_debug_names)
4179 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
4180 (create_debug_type_hash_table, init_cutu_and_read_dies)
4181 (partial_die_parent_scope, add_partial_enumeration)
4182 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
4183 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
4184 (read_import_statement, read_file_scope, create_dwo_cu_reader)
4185 (create_cus_hash_table, create_dwp_hash_table)
4186 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4187 (dwarf2_rnglists_process, dwarf2_ranges_process)
4188 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
4189 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
4190 (handle_struct_member_die, process_structure_scope)
4191 (read_array_type, read_common_block, read_module_type)
4192 (read_tag_pointer_type, read_typedef, read_base_type)
4193 (read_subrange_type, load_partial_dies, partial_die_info::read)
4194 (partial_die_info::read, partial_die_info::read)
4195 (partial_die_info::read, read_checked_initial_length_and_offset)
4196 (dwarf2_string_attr, read_formatted_entries)
4197 (dwarf_decode_line_header)
4198 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4199 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
4200 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
4201 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
4202 (get_signatured_type, get_DW_AT_signature_type)
4203 (decode_locdesc, file_file_name, consume_improper_spaces)
4204 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
4205 (dwarf_decode_macro_bytes, dwarf_decode_macros)
4206 (dwarf2_symbol_mark_computed, set_die_type)
4207 (read_attribute_value): Update.
4208 * stap-probe.c (handle_stap_probe, get_stap_base_address):
4210 * dbxread.c (unknown_symtype_complaint)
4211 (lbrac_mismatch_complaint, repeated_header_complaint)
4212 (set_namestring, function_outside_compilation_unit_complaint)
4213 (read_dbx_symtab, process_one_symbol): Update.
4214 * gdbtypes.c (stub_noname_complaint): Update.
4215 * windows-nat.c (handle_unload_dll): Update.
4216 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
4217 (decode_base_type): Update.
4218 * xcoffread.c (bf_notfound_complaint, ef_complaint)
4219 (eb_complaint, record_include_begin, record_include_end)
4220 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
4221 (process_xcoff_symbol, read_symbol)
4222 (function_outside_compilation_unit_complaint)
4223 (scan_xcoff_symtab): Update.
4224 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
4225 * buildsym.c (finish_block_internal, make_blockvector)
4226 (end_symtab_get_static_block, augment_type_symtab): Update.
4227 * dtrace-probe.c (dtrace_process_dof)
4228 (dtrace_static_probe_ops::get_probes): Update.
4229 * complaints.h (struct complaint): Don't declare.
4230 (symfile_complaints): Remove.
4231 (complaint_internal): Remove "complaints" parameter.
4232 (complaint): Likewise.
4233 (clear_complaints): Likewise.
4234 * symfile.c (syms_from_objfile_1, finish_new_objfile)
4235 (reread_symbols): Update.
4236 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
4237 (dwarf2_frame_cache, decode_frame_entry): Update.
4238 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
4239 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4240 (info_selectors_command): Update.
4241 * macrotab.c (macro_include, check_for_redefinition)
4242 (macro_undef): Update.
4243 * objfiles.c (filter_overlapping_sections): Update.
4244 * stabsread.c (invalid_cpp_abbrev_complaint)
4245 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
4246 (define_symbol, error_type, read_type, rs6000_builtin_type)
4247 (stabs_method_name_from_physname, read_member_functions)
4248 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
4249 (attach_fields_to_type, complain_about_struct_wipeout)
4250 (read_range_type, read_args, common_block_start)
4251 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
4253 * mdebugread.c (index_complaint, unknown_ext_complaint)
4254 (basic_type_complaint, bad_tag_guess_complaint)
4255 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
4256 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
4257 (parse_procedure, parse_lines)
4258 (function_outside_compilation_unit_complaint)
4259 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
4260 (bad_tag_guess_complaint, reg_value_complaint): Update.
4261 * cp-support.c (demangled_name_complaint): Update.
4262 * macroscope.c (sal_macro_scope): Update.
4263 * dwarf-index-write.c (class debug_names): Update.
4265 2018-05-23 Tom Tromey <tom@tromey.com>
4267 * complaints.c (clear_complaints): Remove "noisy" parameter.
4268 * complaints.h (clear_complaints): Update.
4269 * symfile.c (syms_from_objfile_1, finish_new_objfile)
4270 (reread_symbols): Update.
4272 2018-05-23 Tom Tromey <tom@tromey.com>
4274 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
4276 (vcomplaint, clear_complaints): Update.
4277 (symfile_explanations): Remove some messages.
4279 2018-05-23 Tom Tromey <tom@tromey.com>
4281 * complaints.c (internal_complaint): Remove.
4282 * complaints.h (internal_complaint): Remove.
4284 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4286 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
4288 2018-05-22 Pedro Alves <palves@redhat.com>
4290 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
4291 (remote_fileio_badfd, remote_fileio_return_errno)
4292 (remote_fileio_return_success, remote_fileio_func_open)
4293 (remote_fileio_func_open, remote_fileio_func_close)
4294 (remote_fileio_func_read, remote_fileio_func_write)
4295 (remote_fileio_func_lseek, remote_fileio_func_rename)
4296 (remote_fileio_func_unlink, remote_fileio_func_stat)
4297 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
4298 (remote_fileio_func_isatty, remote_fileio_func_system): Add
4299 remote_target parameter.
4300 (remote_fio_func_map) <func>: Add remote_target parameter.
4301 (do_remote_fileio_request, remote_fileio_request):
4302 * remote-fileio.h (remote_fileio_request):
4303 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
4304 remote_target parameter.
4305 (remote_notif_process, handle_notification): Adjust to pass down
4307 (remote_notif_state_allocate): Add remote_target parameter. Save
4309 * remote-notif.h (struct remote_target): Forward declare.
4310 (struct notif_client) <parse, ack, can_get_pending_events>: Add
4311 remote_target parameter.
4312 (struct remote_notif_state) <remote>: New field.
4313 (remote_notif_ack, remote_notif_parse): Add remote_target
4315 (remote_notif_state_allocate, remote_notif_state_allocate): Add
4316 remote_target parameter.
4317 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
4318 (threads_listing_context, rmt_thread_action, protocol_feature)
4319 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
4320 (packet_result, struct threads_listing_context, remote_state):
4321 Move definitions and declarations higher up.
4322 (remote_target) <~remote_target>: Declare.
4323 (remote_download_command_source, remote_file_put, remote_file_get)
4324 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
4325 (remote_hostio_pread_vFile, remote_hostio_send_command)
4326 (remote_hostio_set_filesystem, remote_hostio_open)
4327 (remote_hostio_close, remote_hostio_unlink, remote_state)
4328 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
4329 (get_memory_write_packet_size, get_memory_read_packet_size)
4330 (append_pending_thread_resumptions, remote_detach_1)
4331 (append_resumption, remote_resume_with_vcont)
4332 (add_current_inferior_and_thread, wait_ns, wait_as)
4333 (process_stop_reply, remote_notice_new_inferior)
4334 (process_initial_stop_replies, remote_add_thread)
4335 (btrace_sync_conf, remote_btrace_maybe_reopen)
4336 (remove_new_fork_children, kill_new_fork_children)
4337 (discard_pending_stop_replies, stop_reply_queue_length)
4338 (check_pending_events_prevent_wildcard_vcont)
4339 (discard_pending_stop_replies_in_queue, stop_reply)
4340 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
4341 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
4342 (remote_interrupt_as, remote_interrupt_ns)
4343 (remote_get_noisy_reply, remote_query_attached)
4344 (remote_add_inferior, remote_current_thread, get_current_thread)
4345 (set_thread, set_general_thread, set_continue_thread)
4346 (set_general_process, write_ptid)
4347 (remote_unpack_thread_info_response, remote_get_threadinfo)
4348 (parse_threadlist_response, remote_get_threadlist)
4349 (remote_threadlist_iterator, remote_get_threads_with_ql)
4350 (remote_get_threads_with_qxfer)
4351 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
4352 (get_offsets, remote_check_symbols, remote_supported_packet)
4353 (remote_query_supported, remote_packet_size)
4354 (remote_serial_quit_handler, remote_detach_pid)
4355 (remote_vcont_probe, remote_resume_with_hc)
4356 (send_interrupt_sequence, interrupt_query)
4357 (remote_notif_get_pending_events, fetch_register_using_p)
4358 (send_g_packet, process_g_packet, fetch_registers_using_g)
4359 (store_register_using_P, store_registers_using_G)
4360 (set_remote_traceframe, check_binary_download)
4361 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
4362 (remote_xfer_live_readonly_partial, remote_read_bytes)
4363 (remote_send_printf, remote_flash_write, readchar)
4364 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
4365 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
4366 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
4367 (extended_remote_disable_randomization, extended_remote_run)
4368 (send_environment_packet, extended_remote_environment_support)
4369 (extended_remote_set_inferior_cwd, remote_write_qxfer)
4370 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
4371 (packet_command): Now methods of ...
4372 (remote_target): ... this class.
4373 (m_remote_state) <remote_target>: New field.
4374 (struct remote_state) <stop_reply_queue,
4375 remote_async_inferior_event_token, wait_forever_enabled_p>: New
4377 (remote_state::remote_state): Allocate stop_reply_queue.
4378 (remote_state): Delete global.
4379 (get_remote_state_raw): Delete.
4380 (remote_target::get_remote_state): Allocate m_remote_state on
4382 (get_current_remote_target): New.
4383 (remote_ops, extended_remote_ops): Delete.
4384 (wait_forever_enabled_p, remote_async_inferior_event_token):
4385 Delete, moved to struct remote_state.
4386 (remote_target::close): Delete self. Destruction bits split to
4388 (remote_target::~remote_target): ... this.
4389 (show_memory_packet_size): Adjust to use
4390 get_current_remote_target.
4391 (struct protocol_feature) <func>: Add remote_target parameter.
4392 All callers adjusted.
4393 (curr_quit_handler_target): New.
4394 (remote_serial_quit_handler): Reimplement.
4395 (remote_target::open_1): Adjust to use get_current_remote_target.
4396 Heap-allocate remote_target/extended_remote_target instances.
4397 (vcont_builder::vcont_builder): Add remote_target parameter, and
4398 save it in m_remote. All callers adjusted.
4399 (vcont_builder::m_remote): New field.
4400 (vcont_builder::restart, vcont_builder::flush)
4401 (vcont_builder::push_action): Use it.
4402 (remote_target::commit_resume): Use it.
4403 (struct queue_iter_param) <remote>: New field.
4404 (remote_target::remove_new_fork_children): Fill in 'remote' field.
4405 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
4406 (check_pending_event_prevents_wildcard_vcont_callback)
4407 (remote_target::check_pending_events_prevent_wildcard_vcont)
4408 (remote_target::discard_pending_stop_replies)
4409 (remote_target::discard_pending_stop_replies_in_queue)
4410 (remote_target::remote_notif_remove_queued_reply): Fill in
4412 (remote_notif_get_pending_events): New.
4413 (remote_target::readchar, remote_target::remote_serial_write):
4414 Save/restore curr_quit_handler_target.
4416 (kill_new_fork_children): Fill in 'remote' field.
4417 (packet_command): Use get_current_remote_target, defer to
4418 remote_target method of same name.
4419 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
4420 parameter, and save it in m_remote. All callers adjusted.
4421 (scoped_remote_fd::release): Use m_remote.
4422 (scoped_remote_fd::m_remote): New field.
4423 (remote_file_put, remote_file_get, remote_file_delete): Use
4424 get_current_remote_target, defer to remote_target method of same
4426 (remote_btrace_reset): Add remote_state paremeter. Update all
4428 (remote_async_inferior_event_handler). Pass down 'data'.
4429 (remote_new_objfile): Use get_current_remote_target.
4430 (remote_target::vcont_r_supported): New.
4431 (set_range_stepping): Use get_current_remote_target and
4432 remote_target::vcont_r_supported.
4433 (_initialize_remote): Don't allocate 'remote_state' and
4434 'stop_reply_queue' globals.
4435 * remote.h (struct remote_target): Forward declare.
4436 (getpkt, putpkt, remote_notif_get_pending_events): Add
4437 'remote_target' parameter.
4439 2018-05-22 Pedro Alves <palves@redhat.com>
4441 * remote.c (vcont_builder): Now a class. Make all data members
4443 (vcont_builder) <vcont_builder, restart, flush, push_action>:
4445 (vcont_builder_restart): Rename to ...
4446 (vcont_builder::restart): ... this.
4447 (vcont_builder_flush): Rename to ...
4448 (vcont_builder::flush): ... this.
4449 (vcont_builder_push_action): Rename to ...
4450 (vcont_builder::push_action): ... this.
4451 (remote_target::commit_resume): Adjust.
4453 2018-05-22 Pedro Alves <palves@redhat.com>
4455 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
4456 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
4457 (get_fixed_memory_packet_size): New.
4458 (get_memory_packet_size): Use it.
4459 (set_memory_packet_size): Don't override the config size with
4460 DEFAULT_MAX_MEMORY_PACKET_SIZE.
4461 (show_memory_packet_size): Use get_fixed_memory_packet_size.
4462 Don't refer to get_memory_packet_size if not connected to a remote
4463 target. Show "(default)" if configured size is 0.
4465 2018-05-22 Pedro Alves <palves@redhat.com>
4467 * remote.c (remote_target::mourn_inferior): Move
4468 discard_pending_stop_replies call here from ...
4469 (_initialize_remote): ... here.
4471 2018-05-22 Pedro Alves <palves@redhat.com>
4473 * remote.c (compare_section_command): Remove set_general_process
4476 2018-05-22 Pedro Alves <palves@redhat.com>
4478 * remote.c (struct packet_reg, struct remote_arch_state):
4479 Move higher up in the file.
4480 (remote_state) <m_arch_states>: Store remote_arch_state values
4481 instead of remote_arch_state pointers.
4482 (remote_state::get_remote_arch_state): Adjust.
4484 2018-05-22 Pedro Alves <palves@redhat.com>
4486 * remote.c: Include <unordered_map>.
4487 (remote_state): Now a class.
4488 (remote_state) <get_remote_arch_state>: Declare method.
4489 <get_remote_arch_state>: New field.
4490 (remote_arch_state) <remote_arch_state>: Declare ctor.
4491 <regs>: Now a unique_ptr.
4492 (remote_gdbarch_data_handle): Delete.
4493 (get_remote_arch_state): Delete.
4494 (remote_state::get_remote_arch_state): New.
4495 (get_remote_state): Adjust to call remote_state's
4496 get_remote_arch_state method.
4497 (init_remote_state): Delete, bits factored out to ...
4498 (remote_arch_state::remote_arch_state): ... this new method.
4499 (get_remote_packet_size, get_memory_packet_size)
4500 (process_g_packet, remote_target::fetch_registers)
4501 (remote_target::prepare_to_store, store_registers_using_G)
4502 (remote_target::store_registers, remote_target::get_trace_status):
4503 Adjust to call remote_state's method.
4504 (_initialize_remote): Remove reference to
4505 remote_gdbarch_data_handle.
4507 2018-05-22 Pedro Alves <palves@redhat.com>
4509 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
4510 pread>: New method declarations.
4511 (remote_target::open_1): Adjust.
4512 (readahead_cache_invalidate): Rename to ...
4513 (readahead_cache::invalidate): ... this, and adjust to be a class
4515 (readahead_cache_invalidate_fd): Rename to ...
4516 (readahead_cache::invalidate_fd): ... this, and adjust to be a
4518 (remote_hostio_pwrite): Adjust.
4519 (remote_hostio_pread_from_cache): Rename to ...
4520 (readahead_cache::pread): ... this, and adjust to be a class
4522 (remote_hostio_close): Adjust.
4524 2018-05-22 Pedro Alves <palves@redhat.com>
4526 * remote.c (remote_hostio_close_cleanup): Delete.
4527 (class scoped_remote_fd): New.
4528 (remote_file_put, remote_file_get): Use it.
4530 2018-05-22 Pedro Alves <palves@redhat.com>
4532 (struct vCont_action_support): Use bool and initialize all fields.
4533 (struct readahead_cache): Initialize all fields.
4534 (remote_state): Use bool and initialize all fields.
4535 (remote_state::remote_state, remote_state::~remote_state): New.
4536 (new_remote_state): Delete.
4537 (_initialize_remote): Use new to allocate remote_state.
4539 2018-05-22 Pedro Alves <palves@redhat.com>
4543 * c-exp.y: Include "c-support.h".
4544 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
4545 of tolower. Use c_ident_is_alpha to scan names.
4546 * c-lang.c: Include "c-support.h".
4547 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
4548 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
4549 * c-support.h: New file, with bits factored out from ...
4550 * cp-name-parser.y: ... this file.
4551 Include "c-support.h".
4552 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
4553 c-support.h and renamed.
4554 (symbol_end, yylex): Adjust.
4556 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4558 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
4559 parameter type to CORE_ADDR.
4560 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
4561 parameter type in declaration to CORE_ADDR.
4562 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
4563 target_auxv_search to get AT_HWCAP and use the result to get the
4565 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
4566 to CORE_ADDR. Remove the cast of the return value to unsigned
4567 long. Fix error predicate of target_auxv_search.
4568 (ppc_linux_nat_target::read_description): Change the type of the
4569 hwcap variable to CORE_ADDR.
4571 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4573 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
4574 if the size of fpscr is larger than 32 bits.
4576 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4578 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
4579 (ppc32_linux_vsxregmap): New global.
4580 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
4581 regcache_supply_regset, and regcache_collect_regset.
4582 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
4583 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
4584 (fetch_vsx_register, store_vsx_register): Remove.
4585 (fetch_vsx_registers): Add regno parameter. Get regset using
4586 ppc_linux_vsxregset. Use regset to supply registers.
4587 (store_vsx_registers): Add regno parameter. Get regset using
4588 ppc_linux_vsxregset. Use regset to collect registers.
4589 (fetch_register): Call fetch_vsx_registers instead of
4591 (store_register): Call store_vsx_registers instead of
4593 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
4594 new regno parameter.
4595 (store_ppc_registers): Call store_vsx_registers with -1 for the
4596 new regno parameter.
4597 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
4598 (ppc_collect_vsxregset): Remove.
4600 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4602 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
4604 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
4605 for vector register offset fields.
4606 (ppc64_fbsd_reg_offsets): Likewise.
4607 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4608 to vector register offset fields.
4609 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4610 to vector register offset fields.
4611 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
4612 vector register offset fields.
4613 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
4614 initializers for vector register offset fields.
4615 (rs6000_aix64_reg_offsets): Likewise.
4616 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
4617 (ppc_supply_vrregset): Remove.
4618 (ppc_collect_vrregset): Remove.
4619 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
4620 (ppc_linux_vrregset) : New function.
4621 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
4622 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
4623 (ppc32_linux_vrregset): Remove.
4624 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
4625 and use result instead of ppc32_linux_vrregset.
4626 (ppc32_linux_reg_offsets): Remove initializers for vector register
4628 (ppc64_linux_reg_offsets): Likewise.
4629 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
4630 * ppc-linux-nat.c: Include regset.h.
4631 (gdb_vrregset_t): Adjust comment to account for little-endian
4633 (supply_vrregset, fill_vrregset): Remove.
4634 (fetch_altivec_register, store_altivec_register): Remove.
4635 (fetch_altivec_registers): Add regno parameter. Get regset using
4636 ppc_linux_vrregset. Use regset to supply registers.
4637 (store_altivec_registers): Add regno parameter. Get regset using
4638 ppc_linux_vrregset. Use regset to collect registers.
4639 (fetch_register): Call fetch_altivec_registers instead of
4640 fetch_altivec_register.
4641 (store_register): Call store_altivec_registers instead of
4642 store_altivec_register.
4643 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
4644 the new regno parameter.
4645 (store_ppc_registers): Call store_altivec_registers with -1 for
4646 the new regno parameter.
4648 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4650 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
4651 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
4652 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4653 (gdb_vrregset_t): Change array type size to
4654 PPC_LINUX_SIZEOF_VRREGSET.
4655 (gdb_vsxregset_t): Change array type size to
4656 PPC_LINUX_SIZEOF_VSXREGSET.
4657 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
4658 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
4659 PPC_LINUX_SIZEOF_VSXREGSET.
4661 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4663 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
4664 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
4666 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
4667 ppc_linux_target_wordsize with tid.
4668 (ppc_linux_nat_target::read_description): Call ppc_linux_target
4670 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
4671 (ppc64_64bit_inferior_p): Add static and inline specifiers.
4672 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
4673 tid parameter. Remove static specifier.
4674 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
4675 (ppc_linux_target_wordsize): New declaration.
4677 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4679 * arch/ppc-linux-common.c: New file.
4680 * arch/ppc-linux-common.h: New file.
4681 * arch/ppc-linux-tdesc.h: New file.
4682 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
4683 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
4684 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
4685 arch/ppc-linux-tdesc.h.
4686 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
4687 arch/ppc-linux-tdesc.h.
4688 (ppc_linux_nat_target::read_description): Remove target
4689 description matching code. Fill a ppc_linux_features struct and
4690 call ppc_linux_match_description with it. Move comment about ISA
4691 2.05 to ppc-linux-common.c.
4692 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
4693 arch/ppc-linux-tdesc.h.
4694 (ppc_linux_core_read_description): Remove target description
4695 matching code. Fill a ppc_linux_features struct and call
4696 ppc_linux_match_description with it.
4697 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4698 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
4699 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
4700 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
4701 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
4702 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
4703 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
4704 (tdesc_powerpc_e500l): Remove.
4706 2018-05-22 Joel Brobecker <brobecker@adacore.com>
4708 * ada-lang.c (catch_assert_command): Pass empty string instead
4709 of NULL for excep_string argument.
4711 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4713 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
4714 the width of the requested register exceeds the width of the
4717 2018-05-21 Tom Tromey <tom@tromey.com>
4719 * printcmd.c (output_command): Remove.
4720 (output_command_const): Rename to output_command.
4721 * valprint.h (output_command): Rename from output_command_const.
4722 * tracepoint.c (trace_dump_actions): Call output_command.
4724 2018-05-21 Tom Tromey <tom@tromey.com>
4726 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
4727 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
4728 * ada-lang.h (create_ada_exception_catchpoint): Update.
4729 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
4731 (create_excep_cond_exprs, ~ada_catchpoint)
4732 (should_stop_exception, print_one_exception)
4733 (print_mention_exception, print_recreate_exception): Update.
4734 (ada_get_next_arg): Remove.
4735 (catch_ada_exception_command_split): Use std::string. Change type
4736 of "excep_string", "cond_string".
4737 (catch_ada_exception_command): Update.
4738 (create_ada_exception_catchpoint): Change type of excep_string.
4739 (ada_exception_sal): Remove excep_string parameter.
4740 (~ada_catchpoint): Remove.
4742 2018-05-21 Tom Tromey <tom@tromey.com>
4744 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
4747 2018-05-21 Tom Tromey <tom@tromey.com>
4749 * ada-lang.c (ada_exception_message_1, ada_exception_message):
4750 Return unique_xmalloc_ptr.
4751 (print_it_exception): Update.
4753 2018-05-21 Tom Tromey <tom@tromey.com>
4755 * tracepoint.c (trace_dump_actions): Use std::string.
4757 2018-05-21 Tom Tromey <tom@tromey.com>
4759 * symfile.c (reread_symbols): Use std::string for original_name.
4761 2018-05-21 Tom Tromey <tom@tromey.com>
4763 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
4764 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
4767 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
4769 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
4771 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
4772 * objfiles.c (get_objfile_bfd_data): Allocate
4773 objfile_per_bfd_storage with obstack_new when allocating on
4776 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
4778 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
4780 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4781 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4782 * mdebugread.c (mdebug_build_psymtabs): Likewise.
4783 (add_pending): Likewise.
4784 (parse_symbol): Likewise.
4785 (parse_partial_symbols): Likewise.
4786 (psymtab_to_symtab_1): Likewise.
4787 (new_psymtab): Likewise.
4788 (elfmdebug_build_psymtabs): Likewise.
4789 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4790 * objfiles.c (get_objfile_bfd_data): Likewise.
4791 (objfile_register_static_link): Likewise.
4792 * psymtab.c (allocate_psymtab): Likewise.
4793 * stabsread.c (read_member_functions): Likewise.
4794 * xcoffread.c (xcoff_end_psymtab): Likewise.
4796 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
4798 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
4799 compiler supports std::is_trivially_constructible.
4800 * common/poison.h: Include obstack.h.
4801 (IsMallocable): Define to is_trivially_constructible if the
4802 compiler supports it, define to true_type otherwise.
4806 (XOBNEWVEC): Redefine.
4807 * gdb_obstack.h (obstack_zalloc): New.
4808 (OBSTACK_ZALLOC): Redefine.
4809 (obstack_calloc): New.
4810 (OBSTACK_CALLOC): Redefine.
4812 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
4813 (gdbarch_obstack): New declaration in gdbarch.h, definition in
4815 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
4816 obstack_calloc/obstack_zalloc.
4817 (gdbarch_obstack_zalloc): Remove.
4818 * target-descriptions.c (tdesc_data_init): Use obstack_new.
4820 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4822 * stack.c (backtrace_command_1): Remove useless variable int i.
4824 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4826 * stack.c (print_frame_info): Fix comment.
4828 2018-05-18 Tom Tromey <tom@tromey.com>
4830 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
4831 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
4832 (~dwarf2_per_objfile): Update
4833 (dwarf2_get_dwz_file): Use new.
4834 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
4837 2018-05-18 Tom Tromey <tom@tromey.com>
4839 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
4841 * dwarf2read.c (struct dwp_file): Add constructor and
4843 (open_and_init_dwp_file): Return a unique_ptr.
4844 (dwarf2_per_objfile, create_dwp_hash_table)
4845 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
4846 (lookup_dwo_unit_in_dwp): Update.
4847 (open_and_init_dwp_file, get_dwp_file): Update.
4849 2018-05-18 Tom Tromey <tom@tromey.com>
4851 * dwarf2read.c (dwarf2_per_objfile): Update.
4852 (struct mapped_index): Add initializers.
4853 (dwarf2_read_index): Use new.
4854 (dw2_symtab_iter_init): Update.
4855 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
4858 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
4860 * dwarf2read.c (mapped_index) <total_size>: Remove.
4862 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
4864 * unittests/format_pieces-selftests.c (test_format_specifier):
4867 2018-05-18 Tom Tromey <tom@tromey.com>
4869 * c-typeprint.c (maybe_print_hole): New function.
4870 (c_print_type_struct_field_offset): Update.
4871 (c_type_print_base_struct_union): Call maybe_print_hole.
4873 2018-05-17 Keith Seitz <keiths@redhat.com>
4875 * breakpoint.c (build_bpstat_chain): New function, moved from
4877 (bpstat_stop_status): Add optional parameter, `stop_chain'.
4878 If no stop chain is passed, call build_bpstat_chain to build it.
4879 * breakpoint.h (build_bpstat_chain): Declare.
4880 (bpstat_stop_status): Move documentation here from breakpoint.c.
4881 * infrun.c (handle_signal_stop): Before eliding inlined frames,
4882 build the stop chain and pass it to skip_inline_frames.
4883 Pass this stop chain to bpstat_stop_status.
4884 * inline-frame.c: Include breakpoint.h.
4885 (stopped_by_user_bp_inline_frame): New function.
4886 (skip_inline_frames): Add parameter `stop_chain'.
4887 Move documention to inline-frame.h.
4888 If non-NULL, use stopped_by_user_bp_inline_frame to determine
4889 whether the frame should be elided.
4890 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
4891 Add moved documentation and update for new parameter.
4893 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
4896 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4897 unittests/format_pieces-selftests.c.
4898 * common/format.h (format_piece) <operator==>: New.
4899 (format_pieces) <operator[]>: Remove.
4900 * common/format.c (format_pieces::format_pieces): Handle \e.
4901 * unittests/format_pieces-selftests.c: New.
4903 2018-05-17 Tom Tromey <tom@tromey.com>
4906 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
4907 (dw2_instantiate_symtab): Add skip_partial parameter.
4908 (dw2_find_last_source_symtab, dw2_map_expand_apply)
4909 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
4910 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
4911 (dw2_expand_symtabs_matching_one)
4912 (dw2_find_pc_sect_compunit_symtab)
4913 (dw2_debug_names_lookup_symbol)
4914 (dw2_debug_names_expand_symtabs_for_function): Update.
4915 (init_cutu_and_read_dies): Add skip_partial parameter.
4916 (process_psymtab_comp_unit, build_type_psymtabs_1)
4917 (process_skeletonless_type_unit, load_partial_comp_unit)
4918 (psymtab_to_symtab_1): Update.
4919 (load_full_comp_unit): Add skip_partial parameter.
4920 (process_imported_unit_die, dwarf2_read_addr_index)
4921 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
4922 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
4923 (read_signatured_type): Update.
4925 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
4927 * value.c (release_value): Remove unused variable.
4928 (record_latest_value): Likewise.
4929 (access_value_history): Likewise.
4930 (preserve_values): Likewise.
4932 2018-05-17 Tom Tromey <tom@tromey.com>
4934 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
4937 2018-05-16 Maciej W. Rozycki <macro@mips.com>
4940 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
4941 Also handle registers whose width is not a multiple of
4943 (linux_nat_trad_target::store_register): Likewise.
4945 2018-05-16 Tom Tromey <tom@tromey.com>
4947 * gdbcore.h (core_bfd): Redefine.
4948 * corelow.c (core_target::close): Update.
4949 (core_target_open): Update.
4950 * progspace.h (struct program_space) <cbfd>: Now a
4953 2018-05-16 Tom Tromey <tom@tromey.com>
4956 * symfile-add-flags.h (enum symfile_add_flags)
4957 <SYMFILE_NOT_FILENAME>: New constant.
4958 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
4959 objfile name from BFD.
4960 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
4961 * minidebug.c (find_separate_debug_file_in_section): Put
4962 ".gnu_debugdata" into BFD's file name.
4964 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
4966 * regcache.c (regcache_read_ftype, regcache_write_ftype):
4969 2018-05-15 Tamar Christina <tamar.christina@arm.com>
4972 * aarch64-tdep.c (aarch64_analyze_prologue,
4973 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
4974 Indicate not interested in errors.
4976 2018-05-15 Maciej W. Rozycki <macro@mips.com>
4978 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
4979 Supply the MIPS_ZERO_REGNUM register.
4981 2018-05-15 Maciej W. Rozycki <macro@mips.com>
4983 * mips-tdep.c (mask_address_var): Make variable static.
4985 2018-05-14 Tom Tromey <tom@tromey.com>
4987 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
4989 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
4991 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
4992 FXSAVE_ADDR for the mxcsr register.
4994 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
4996 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
4998 2018-05-11 Pedro Alves <palves@redhat.com>
5000 * corelow.c (core_target) <core_target>: No longer inline.
5001 Initialize m_core_gdbarch, m_core_vec and build the section table
5003 <~core_target>: New.
5004 <core_gdbarch, get_core_register_section>: New methods.
5005 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
5006 factored out from ...
5007 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
5009 (sniff_core_bfd): Add gdbarch parameter.
5010 (core_close): Delete, merged into ...
5011 (core_target::close): ... here. Delete self.
5012 (core_close_cleanup): Delete.
5013 (core_target_open): Allocate a core_target on the heap. Use a
5014 unique_ptr instead of a cleanup. Bits moved into the core_target
5015 ctor. Adjust to use core_target methods instead of globals.
5016 (get_core_register_section): Rename to ...
5017 (core_target::get_core_register_section): ... this and adjust.
5018 (struct get_core_registers_cb_data): New.
5019 (get_core_registers_cb): Use it. Use bool.
5020 (core_target::fetch_registers, core_target::files_info)
5021 (core_target::xfer_partial, core_target::read_description)
5022 (core_target::pid_to, core_target::thread_name): Adjust to
5023 reference class fields instead of globals.
5024 * target.h (struct target_ops_deleter, target_ops_up): New.
5026 2018-05-11 Pedro Alves <palves@redhat.com>
5028 * corefile.c (core_file_command): Move to corelow.c.
5029 * corelow.c (the_core_target): Delete.
5030 (core_file_command): Moved from corefile.c. Check exec_bfd
5031 instead of the_core_target. Use target_detach instead of calling
5032 into the_core_target directly.
5033 (maybe_say_no_core_file_now): New.
5034 (core_target::detach): Use it.
5035 (_initialize_corelow): Remove references to the_core_target.
5036 * gdbcore.h (the_core_target): Delete.
5038 2018-05-11 Tom Tromey <tromey@redhat.com>
5039 Pedro Alves <palves@redhat.com>
5041 * corefile.c (core_bfd): Remove.
5042 * gdbcore.h (core_bfd): Now a macro.
5043 * progspace.h (struct program_space) <cbfd>: New field.
5045 2018-05-11 Tom Tromey <tom@tromey.com>
5047 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
5050 2018-05-10 Tom Tromey <tom@tromey.com>
5052 * configure: Rebuild.
5053 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
5055 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5058 * regformats/regdat.sh: Adjust script, following the addition
5059 of the new expedite_regs parameter to init_target_desc.
5061 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
5064 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
5065 set_gdbarch_significant_addr_bit.
5066 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
5067 set_gdbarch_significant_addr_bit.
5068 * utils.c (address_significant): Update to sign extend addr.
5070 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
5072 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
5073 (xtensa_linux_init_abi): Limit tdep->num_regs by
5074 tdep->num_nopriv_regs.
5075 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
5076 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
5079 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
5081 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
5083 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5085 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
5086 (I387_MXCSR_INIT_VAL): New constant.
5087 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
5088 buffer if it was supplied by the inferior.
5089 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
5090 (i387_xsave_get_clear_bv): New function.
5091 (i387_supply_xsave): Only read x87 control registers from the
5092 xsave buffer if the feature is enabled, and the state will have
5093 been written, otherwise, provide a suitable default.
5094 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
5095 including x87 control registers. Update control registers if they
5096 have changed from the default value, and mark features as enabled
5098 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
5100 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5102 * spu-tdep.c (info_spu_event_command): Fix output formatting.
5104 2018-05-07 Tom Tromey <tom@tromey.com>
5106 * configure: Rebuild.
5107 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
5109 2018-05-07 Tom Tromey <tom@tromey.com>
5112 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
5113 bit. Use correct value for VDIV.
5115 2018-05-04 Tom Tromey <tom@tromey.com>
5117 * configure: Rebuild.
5118 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
5120 2018-05-04 Tom Tromey <tom@tromey.com>
5122 * linux-record.c (record_linux_system_call) <case
5123 RECORD_SYS_RECVFROM>: Add "break".
5125 2018-05-04 Tom Tromey <tom@tromey.com>
5127 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
5128 Add missing "break".
5129 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
5130 Add missing "break".
5132 2018-05-04 Tom Tromey <tom@tromey.com>
5134 * rs6000-tdep.c (ppc_process_record_op4)
5135 (ppc_process_record_op63): Add fall-through comment.
5137 2018-05-04 Tom Tromey <tom@tromey.com>
5139 * i386-tdep.c (i386_process_record): Add fall-through comment.
5141 2018-05-04 Tom Tromey <tom@tromey.com>
5143 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
5146 2018-05-04 Tom Tromey <tom@tromey.com>
5148 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
5149 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
5150 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
5152 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
5154 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
5157 2018-05-04 Tom Tromey <tom@tromey.com>
5159 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
5161 2018-05-04 Tom Tromey <tom@tromey.com>
5163 * s390-tdep.c (s390_process_record): Fix fall-through comments.
5164 * xcoffread.c (scan_xcoff_symtab): Move comment later.
5165 * symfile.c (section_is_mapped): Fix fall-through comment.
5166 * stabsread.c (define_symbol, read_member_functions): Fix
5167 fall-through comment.
5168 * s390-linux-tdep.c (s390_process_record): Fix fall-through
5170 * remote.c (remote_wait_as): Fix fall-through comment.
5171 * p-exp.y (yylex): Fix fall-through comment.
5172 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
5174 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
5175 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
5176 * jv-exp.y (yylex): Fix fall-through comment.
5177 * go-exp.y (lex_one_token): Fix fall-through comment.
5178 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
5179 fall-through comment.
5180 * f-exp.y (yylex): Fix fall-through comment.
5181 * dwarf2read.c (process_die): Fix fall-through comments.
5182 * dbxread.c (process_one_symbol): Fix fall-through comment.
5183 * d-exp.y (lex_one_token): Fix fall-through comment.
5184 * cp-name-parser.y (yylex): Fix fall-through comment.
5185 * coffread.c (coff_symtab_read): Fix fall-through comment.
5186 * c-exp.y (lex_one_token): Fix fall-through comment.
5187 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
5189 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
5192 2018-05-04 Tom Tromey <tom@tromey.com>
5195 * NEWS: Mention gdb.execute change.
5196 * gdbcmd.h (execute_control_command): Don't declare.
5197 * python/python.c (execute_gdb_command): Use read_command_lines_1,
5198 execute_control_commands, execute_control_commands_to_string.
5199 * cli/cli-script.h (execute_control_commands)
5200 (execute_control_commands_to_string): Declare.
5201 (execute_control_command): Add from_tty parameter.
5202 * cli/cli-script.c (execute_control_commands)
5203 (execute_control_commands_to_string): New functions.
5204 (execute_user_command): Use execute_control_commands.
5205 (execute_control_command_1): Add "from_tty" parameter. Update.
5206 (execute_control_command): Likewise.
5208 2018-05-04 Tom Tromey <tom@tromey.com>
5211 * NEWS: Mention that breakpoint commands are writable.
5212 * python/py-breakpoint.c (bppy_set_commands): New function.
5213 (breakpoint_object_getset) <"commands">: Use it.
5215 2018-05-04 Tom Tromey <tom@tromey.com>
5217 * tracepoint.c (actions_command): Update.
5218 * mi/mi-cmd-break.c (mi_command_line_array)
5219 (mi_command_line_array_cnt, mi_command_line_array_ptr)
5220 (mi_read_next_line): Remove.
5221 (mi_cmd_break_commands): Update.
5222 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
5224 * cli/cli-script.c (get_command_line): Update.
5225 (process_next_line): Use function_view. Constify.
5226 (recurse_read_control_structure, read_command_lines)
5227 (read_command_lines_1): Change argument types to function_view.
5228 (do_define_command, document_command): Update.
5229 * breakpoint.h (check_tracepoint_command): Don't declare.
5230 * breakpoint.c (check_tracepoint_command): Remove.
5231 (commands_command_1, create_tracepoint_from_upload): Update.
5233 2018-05-04 Tom Tromey <tom@tromey.com>
5236 * cli/cli-script.h (enum command_control_type) <define_control>:
5238 * cli/cli-script.c (multi_line_command_p): Handle define_control.
5239 (build_command_line, execute_control_command_1)
5240 (process_next_line): Likewise.
5241 (do_define_command): New function, extracted from define_command.
5242 (define_command): Use it.
5244 2018-05-04 Tom Tromey <tom@tromey.com>
5246 * tracepoint.c (actions_command): Update.
5247 * cli/cli-script.h (read_command_lines): Update.
5248 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
5249 (MAX_TMPBUF): Remove define.
5250 (define_command): Use string_printf.
5251 (document_command): Likewise.
5252 * breakpoint.c (commands_command_1): Update.
5254 2018-05-04 Tom Tromey <tom@tromey.com>
5256 * top.c (execute_command): Update.
5257 * cli/cli-script.h (print_command_lines): Now varargs.
5258 * cli/cli-script.c (print_command_lines): Now varargs.
5259 (execute_control_command_1) <case while_control, case if_control>:
5262 2018-05-04 Tom Tromey <tom@tromey.com>
5264 * tracepoint.c (all_tracepoint_actions): Rename from
5265 all_tracepoint_actions_and_cleanup. Change return type.
5266 (actions_command, encode_actions_1, encode_actions)
5267 (trace_dump_actions, tdump_command): Update.
5268 * remote.c (remote_download_command_source): Update.
5269 * python/python.c (gdbpy_eval_from_control_command)
5270 (python_command, python_interactive_command): Update.
5271 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
5272 * guile/guile.c (guile_command)
5273 (gdbscm_eval_from_control_command, guile_command): Update.
5274 * compile/compile.c (compile_code_command)
5275 (compile_print_command, compile_to_object): Update.
5276 * cli/cli-script.h (struct command_lines_deleter): New.
5277 (counted_command_line): New typedef.
5278 (struct command_line): Add constructor, destructor.
5279 <body_list>: Remove.
5280 <body_list_0, body_list_1>: New members.
5281 (command_line_up): Remove typedef.
5282 (read_command_lines, read_command_lines_1, get_command_line):
5284 (copy_command_lines): Don't declare.
5285 * cli/cli-script.c (build_command_line): Use "new".
5286 (get_command_line): Return counted_command_line.
5287 (print_command_lines, execute_user_command)
5288 (execute_control_command_1, while_command, if_command): Update.
5289 (realloc_body_list): Remove.
5290 (process_next_line, recurse_read_control_structure): Update.
5291 (read_command_lines, read_command_lines_1): Return counted_command_line.
5292 (free_command_lines): Use "delete".
5293 (copy_command_lines): Remove.
5294 (define_command, document_command, show_user_1): Update.
5295 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
5296 a counted_command_line.
5297 * breakpoint.h (counted_command_line): Remove typedef.
5298 (breakpoint_set_commands): Update.
5299 * breakpoint.c (check_no_tracepoint_commands)
5300 (validate_commands_for_breakpoint): Update.
5301 (breakpoint_set_commands): Change commands to be a
5302 counted_command_line.
5303 (commands_command_1, update_dprintf_command_list)
5304 (create_tracepoint_from_upload): Update.
5306 2018-05-04 Tom Tromey <tom@tromey.com>
5308 * cli/cli-decode.h (cmd_list_element): New constructor.
5309 (~cmd_list_element): New destructor.
5310 (struct cmd_list_element): Add initializers.
5311 * cli/cli-decode.c (do_add_cmd): Use "new".
5312 (delete_cmd): Use "delete".
5314 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5315 Pedro Alves <palves@redhat.com>
5317 PR breakpoints/19806 and support for PR external/20207.
5318 * NEWS: Mention Aarch64 watchpoint improvements.
5319 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
5320 watchpoints and PR external/20207 watchpoints.
5321 * nat/aarch64-linux-hw-point.c
5322 (kernel_supports_any_contiguous_range): New.
5323 (aarch64_watchpoint_offset): New.
5324 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
5325 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
5326 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
5327 (aarch64_align_watchpoint): New parameters aligned_offset_p and
5328 next_addr_orig_p. Support PR external/20207 watchpoints.
5329 (aarch64_downgrade_regs): New.
5330 (aarch64_dr_state_insert_one_point): New parameters offset and
5332 (aarch64_dr_state_remove_one_point): Likewise.
5333 (aarch64_handle_breakpoint): Update caller.
5334 (aarch64_handle_aligned_watchpoint): Likewise.
5335 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
5337 (aarch64_linux_set_debug_regs): Remove const from state. Call
5338 aarch64_downgrade_regs.
5339 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
5340 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
5341 (DR_CONTROL_MASK): ... this.
5342 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
5343 (unsigned int aarch64_watchpoint_offset): New prototype.
5344 (aarch64_linux_set_debug_regs): Remove const from state.
5345 * utils.c (align_up, align_down): Move to ...
5346 * common/common-utils.c (align_up, align_down): ... here.
5347 * utils.h (align_up, align_down): Move to ...
5348 * common/common-utils.h (align_up, align_down): ... here.
5350 2018-05-04 Joel Brobecker <brobecker@adacore.com>
5352 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
5353 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
5354 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
5355 Re-implement to match the ABI as summarized in GCC's
5356 gcc/config/sparc/sparc.c. All callers updated.
5357 (sparc32_store_arguments): Remove assertion.
5359 2018-05-04 Tom Tromey <tom@tromey.com>
5361 * printcmd.c: Don't include tui.h.
5362 (decode_format): Use skip_spaces.
5364 2018-05-04 Tom Tromey <tom@tromey.com>
5367 * printcmd.c (last_count): New global.
5368 (x_command): Use saved count when repeating.
5370 2018-05-04 Tom Tromey <tom@tromey.com>
5372 * nto-procfs.c (do_closedir_cleanup): Remove.
5373 (procfs_pidlist): Use gdb_dir_up.
5374 * procfs.c (do_closedir_cleanup): Remove.
5375 (proc_update_threads): Use gdb_dir_up.
5376 * common/filestuff.h (struct gdb_dir_deleter): New.
5377 (gdb_dir_up): New typedef.
5379 2018-05-04 Tom Tromey <tom@tromey.com>
5381 * ada-lang.c (print_mention_exception): Use std::string.
5383 2018-05-04 Tom Tromey <tom@tromey.com>
5385 * ada-lang.c (create_excep_cond_exprs): Update.
5386 (ada_exception_catchpoint_cond_string): Use std::string.
5388 2018-05-04 Tom Tromey <tom@tromey.com>
5390 * ada-lang.c (xget_renaming_scope): Return std::string.
5391 (old_renaming_is_invisible): Update.
5393 2018-05-04 Tom Tromey <tom@tromey.com>
5395 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
5396 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
5398 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5400 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
5402 2018-05-04 Tom Tromey <tom@tromey.com>
5404 * remote.c (remote_query_supported_append): Change type.
5405 (remote_check_symbols): Update.
5407 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
5410 * configure.ac: Prepend libpython.
5411 * python/python-config.py: Likewise.
5412 * configure: Regenerate.
5414 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
5416 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
5418 2018-05-03 Pedro Alves <palves@redhat.com>
5421 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
5422 override. Write 'true' instead of '1'.
5423 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
5426 2018-05-02 Pedro Alves <palves@redhat.com>
5428 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
5429 add_inf_child_target.
5430 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
5431 add_inf_child_target.
5432 * aix-thread.c (aix_thread_target_info): New.
5433 (aix_thread_target) <shortname, longname, doc>: Delete.
5435 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
5436 add_inf_child_target.
5437 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
5438 add_inf_child_target.
5439 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
5440 add_inf_child_target.
5441 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
5442 add_inf_child_target.
5443 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
5444 add_inf_child_target.
5445 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
5446 add_inf_child_target.
5447 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
5448 add_inf_child_target.
5449 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
5450 add_inf_child_target.
5451 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
5452 add_inf_child_target.
5453 * bfd-target.c (target_bfd_target_info): New.
5454 (target_bfd) <shortname, longname, doc>: Delete.
5456 * bsd-kvm.c (bsd_kvm_target_info): New.
5457 (bsd_kvm_target) <shortname, longname, doc>: Delete.
5459 (bsd_kvm_target::open): Rename to ...
5460 (bsd_kvm_target_open): ... this. Adjust.
5461 * bsd-uthread.c (bsd_uthread_target_info): New.
5462 (bsd_uthread_target) <shortname, longname, doc>: Delete.
5464 * corefile.c (core_file_command): Adjust.
5465 * corelow.c (core_target_info): New.
5466 (core_target) <shortname, longname, doc>: Delete.
5468 (core_target::open): Rename to ...
5469 (core_target_open): ... this. Adjust.
5470 * ctf.c (ctf_target_info): New.
5471 (ctf_target) <shortname, longname, doc>: Delete.
5473 (ctf_target::open): Rename to ...
5474 (ctf_target_open): ... this.
5475 (_initialize_ctf): Adjust.
5476 * exec.c (exec_target_info): New.
5477 (exec_target) <shortname, longname, doc>: Delete.
5479 (exec_target::open): Rename to ...
5480 (exec_target_open): ... this.
5481 * gdbcore.h (core_target_open): Declare.
5482 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
5483 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
5484 add_inf_child_target.
5485 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
5486 add_inf_child_target.
5487 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
5488 add_inf_child_target.
5489 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
5490 add_inf_child_target.
5491 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
5492 add_inf_child_target.
5493 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
5494 add_inf_child_target.
5495 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
5496 add_inf_child_target.
5497 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
5498 add_inf_child_target.
5499 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
5500 add_inf_child_target.
5501 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
5502 add_inf_child_target.
5503 * inf-child.c (inf_child_target_info): New.
5504 (inf_child_target::info): New.
5505 (inf_child_open_target): Remove 'target' parameter. Use
5506 get_native_target instead.
5507 (inf_child_target::open): Delete.
5508 (add_inf_child_target): New.
5509 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
5512 (add_inf_child_target): Declare.
5513 (inf_child_open_target): Declare.
5514 * linux-thread-db.c (thread_db_target_info): New.
5515 (thread_db_target) <shortname, longname, doc>: Delete.
5517 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
5518 add_inf_child_target.
5519 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
5520 add_inf_child_target.
5521 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
5522 add_inf_child_target.
5523 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
5524 add_inf_child_target.
5525 * make-target-delegates (print_class): Adjust.
5526 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
5527 add_inf_child_target.
5528 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
5529 add_inf_child_target.
5530 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
5531 add_inf_child_target.
5532 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
5533 add_inf_child_target.
5534 * nto-procfs.c (nto_native_target_info): New.
5535 (nto_procfs_target_native) <shortname, longname, doc>:
5538 (nto_procfs_target_info): New.
5539 (nto_procfs_target_procfs) <shortname, longname, doc>:
5542 (init_procfs_targets): Adjust.
5543 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
5544 add_inf_child_target.
5545 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
5546 add_inf_child_target.
5547 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
5548 add_inf_child_target.
5549 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
5550 add_inf_child_target.
5551 * ravenscar-thread.c (ravenscar_target_info): New.
5552 (ravenscar_thread_target) <shortname, longname, doc>:
5555 * record-btrace.c (record_btrace_target_info):
5556 (record_btrace_target) <shortname, longname, doc>: Delete.
5558 (record_btrace_target::open): Rename to ...
5559 (record_btrace_target_open): ... this. Adjust.
5560 * record-full.c (record_longname, record_doc): New.
5561 (record_full_base_target) <shortname, longname, doc>: Delete.
5563 (record_full_target_info): New.
5564 (record_full_target): <shortname>: Delete.
5566 (record_full_core_open_1, record_full_open_1): Update comments.
5567 (record_full_base_target::open): Rename to ...
5568 (record_full_open): ... this.
5569 (cmd_record_full_restore): Update.
5570 (_initialize_record_full): Update.
5571 * remote-sim.c (remote_sim_target_info): New.
5572 (gdbsim_target) <shortname, longname, doc>: Delete.
5574 (gdbsim_target::open): Rename to ...
5575 (gdbsim_target_open): ... this.
5576 (_initialize_remote_sim): Adjust.
5577 * remote.c (remote_doc): New.
5578 (remote_target_info): New.
5579 (remote_target) <shortname, longname, doc>: Delete.
5581 (extended_remote_target_info): New.
5582 (extended_remote_target) <shortname, longname, doc>: Delete.
5584 (remote_target::open_1): Make static. Adjust.
5585 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
5586 * s390-linux-nat.c (_initialize_s390_nat): Use
5587 add_inf_child_target.
5588 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
5589 add_inf_child_target.
5590 * sol-thread.c (thread_db_target_info): New.
5591 (sol_thread_target) <shortname, longname, doc>: Delete.
5593 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
5594 add_inf_child_target.
5595 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
5596 add_inf_child_target.
5597 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
5598 add_inf_child_target.
5599 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
5600 add_inf_child_target.
5601 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
5602 add_inf_child_target.
5603 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
5604 add_inf_child_target.
5605 * spu-linux-nat.c (_initialize_spu_nat): Use
5606 add_inf_child_target.
5607 * spu-multiarch.c (spu_multiarch_target_info): New.
5608 (spu_multiarch_target) <shortname, longname, doc>: Delete.
5610 * target-delegates.c: Regenerate.
5611 * target.c: Include <unordered_map>.
5612 (target_ops_p): Delete.
5613 (DEF_VEC_P(target_ops_p)): Delete.
5614 (target_factories): New.
5615 (test_target_info): New.
5616 (test_target_ops::info): New.
5617 (open_target): Adjust to use target_factories.
5618 (add_target_with_completer): Rename to ...
5619 (add_target): ... this. Change prototype. Register target_info
5620 and open callback in target_factories. Register target_info in
5621 command context instead of target_ops.
5622 (add_target): Delete old implementation.
5623 (add_deprecated_target_alias): Change prototype. Adjust.
5624 (the_native_target): New.
5625 (set_native_target, get_native_target): New.
5626 (find_default_run_target): Use the_native_target.
5627 (find_attach_target, find_run_target): Simplify.
5628 (target_ops::open): Delete.
5629 (dummy_target_info): New.
5630 (dummy_target::shortname, dummy_target::longname)
5631 (dummy_target::doc): Delete.
5632 (dummy_target::info): New.
5633 (debug_target::shortname, debug_target::longname)
5634 (debug_target::doc): Delete.
5635 (debug_target::info): New.
5636 * target.h (struct target_info): New.
5637 (target_ops::~target_ops): Add comment.
5638 (target_ops::info): New.
5639 (target_ops::shortname, target_ops::longname, target_ops::doc): No
5640 longer virtual. Implement in terms of target_info.
5641 (set_native_target, get_native_target): Declare.
5642 (target_open_ftype): New.
5643 (add_target, add_target_with_completer)
5644 (add_deprecated_target_alias): Change prototype.
5645 (test_target) <shortname, longname, doc>: Delete.
5647 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
5648 add_inf_child_target.
5649 * tracefile-tfile.c (tfile_target_info): New.
5650 (tfile_target) <shortname, longname, doc>: Delete.
5652 (tfile_target::open): Rename to ...
5653 (tfile_target_open): ... this.
5654 (_initialize_tracefile_tfile): Adjust.
5655 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
5656 add_inf_child_target.
5657 * windows-nat.c (_initialize_windows_nat): Use
5658 add_inf_child_target.
5659 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
5660 add_inf_child_target.
5662 2018-05-02 Pedro Alves <palves@redhat.com>
5664 * linux-nat.h (linux_nat_target) <low_new_thread,
5665 low_delete_thread, low_new_fork, low_forget_process,
5666 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
5667 New virtual methods.
5668 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
5669 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
5670 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
5671 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
5672 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
5674 * linux-fork.c (delete_fork): Adjust to call low method.
5675 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
5676 (linux_nat_new_fork, linux_nat_forget_process_hook)
5677 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
5678 (linux_nat_status_is_event):
5679 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
5680 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
5682 (sigtrap_is_event): Rename to ...
5683 (linux_nat_target::low_status_is_event): ... this.
5684 (linux_nat_set_status_is_event): Delete.
5685 (save_stop_reason, linux_nat_wait_1)
5686 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
5688 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
5689 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5690 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
5691 (linux_nat_set_prepare_to_resume): Delete.
5692 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
5693 low virtual methods.
5694 * amd64-linux-nat.c: Likewise.
5695 * arm-linux-nat.c: Likewise.
5696 * i386-linux-nat.c: Likewise.
5697 * ia64-linux-nat.c: Likewise.
5698 * mips-linux-nat.c: Likewise.
5699 * ppc-linux-nat.c: Likewise.
5700 * s390-linux-nat.c: Likewise.
5701 * sparc64-linux-nat.c: Likewise.
5702 * x86-linux-nat.c: Likewise.
5703 * x86-linux-nat.h: Include "nat/x86-linux.h".
5704 (x86_linux_nat_target) <low_new_fork, low_forget_process,
5705 low_prepare_to_resume, low_new_thread, low_delete_thread>:
5708 2018-05-02 Pedro Alves <palves@redhat.com>
5710 * target.h (target_ops)
5711 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
5712 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
5713 stopped_by_watchpoint, have_continuable_watchpoint,
5714 stopped_data_address, watchpoint_addr_within_range,
5715 can_accel_watchpoint_condition, can_run, thread_alive,
5716 has_all_memory, has_memory, has_stack, has_registers,
5717 has_execution, can_async_p, is_async_p, supports_non_stop,
5718 always_non_stop_p, can_execute_reverse, supports_multi_process,
5719 supports_enable_disable_tracepoint,
5720 supports_disable_randomization, supports_string_tracing,
5721 supports_evaluation_of_breakpoint_conditions,
5722 can_run_breakpoint_commands, filesystem_is_local,
5723 can_download_tracepoint, get_trace_state_variable_value,
5724 set_trace_notes, get_tib_address, use_agent, can_use_agent,
5725 record_is_replaying, record_will_replay,
5726 augmented_libraries_svr4_read>: Adjust to return bool.
5727 * aarch64-linux-nat.c: All implementations adjusted.
5728 * aix-thread.c: All implementations adjusted.
5729 * arm-linux-nat.c: All implementations adjusted.
5730 * breakpoint.c: All implementations adjusted.
5731 * bsd-kvm.c: All implementations adjusted.
5732 * bsd-uthread.c: All implementations adjusted.
5733 * corelow.c: All implementations adjusted.
5734 * ctf.c: All implementations adjusted.
5735 * darwin-nat.c: All implementations adjusted.
5736 * darwin-nat.h: All implementations adjusted.
5737 * exec.c: All implementations adjusted.
5738 * fbsd-nat.c: All implementations adjusted.
5739 * fbsd-nat.h: All implementations adjusted.
5740 * gnu-nat.c: All implementations adjusted.
5741 * gnu-nat.h: All implementations adjusted.
5742 * go32-nat.c: All implementations adjusted.
5743 * ia64-linux-nat.c: All implementations adjusted.
5744 * inf-child.c: All implementations adjusted.
5745 * inf-child.h: All implementations adjusted.
5746 * inf-ptrace.c: All implementations adjusted.
5747 * inf-ptrace.h: All implementations adjusted.
5748 * linux-nat.c: All implementations adjusted.
5749 * linux-nat.h: All implementations adjusted.
5750 * mips-linux-nat.c: All implementations adjusted.
5751 * nto-procfs.c: All implementations adjusted.
5752 * ppc-linux-nat.c: All implementations adjusted.
5753 * procfs.c: All implementations adjusted.
5754 * ravenscar-thread.c: All implementations adjusted.
5755 * record-btrace.c: All implementations adjusted.
5756 * record-full.c: All implementations adjusted.
5757 * remote-sim.c: All implementations adjusted.
5758 * remote.c: All implementations adjusted.
5759 * s390-linux-nat.c: All implementations adjusted.
5760 * sol-thread.c: All implementations adjusted.
5761 * spu-multiarch.c: All implementations adjusted.
5762 * target-delegates.c: All implementations adjusted.
5763 * target.c: All implementations adjusted.
5764 * target.h: All implementations adjusted.
5765 * tracefile-tfile.c: All implementations adjusted.
5766 * tracefile.c: All implementations adjusted.
5767 * tracefile.h: All implementations adjusted.
5768 * windows-nat.c: All implementations adjusted.
5769 * x86-linux-nat.h: All implementations adjusted.
5770 * x86-nat.h: All implementations adjusted.
5772 2018-05-02 Pedro Alves <palves@redhat.com>
5774 * make-target-delegates (scan_target_h): Don't trim lines here.
5775 Replace sequences of tabs and/or whitespace with a single
5777 (top level, parsing methods): Trim each line before processing it
5780 2018-05-02 Pedro Alves <palves@redhat.com>
5781 John Baldwin <jhb@freebsd.org>
5783 * target.h (enum strata) <debug_stratum>: New.
5784 (struct target_ops) <all delegation methods>: Replace by C++
5785 virtual methods, and drop "to_" prefix. All references updated
5787 <to_shortname, to_longname, to_doc, to_data,
5788 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
5789 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
5790 virtual methods. All references updated throughout.
5791 <can_attach, supports_terminal_ours, can_create_inferior,
5792 get_thread_control_capabilities, attach_no_wait>: New
5794 <insert_breakpoint, remove_breakpoint>: Now
5795 TARGET_DEFAULT_NORETURN methods.
5796 <info_proc>: Now returns bool.
5798 (OPS_MAGIC): Delete.
5799 (current_target): Delete. All references replaced by references
5801 (target_stack): ... this. New.
5802 (target_shortname, target_longname): Adjust.
5803 (target_can_run): Now a function declaration.
5804 (default_child_has_all_memory, default_child_has_memory)
5805 (default_child_has_stack, default_child_has_registers)
5806 (default_child_has_execution): Remove target_ops parameter.
5807 (complete_target_initialization): Delete.
5808 (memory_breakpoint_target): New template class.
5809 (test_target_ops): Refactor as a C++ class with virtual methods.
5810 * make-target-delegates (NAME_PART): Tighten.
5811 (POINTER_PART, CP_SYMBOL): New.
5812 (SIMPLE_RETURN_PART): Reimplement.
5813 (VEC_RETURN_PART): Expect less.
5814 (RETURN_PART, VIRTUAL_PART): New.
5815 (METHOD): Adjust to C++ virtual methods.
5816 (scan_target_h): Remove reference to C99.
5817 (dname): Output "target_ops::" prefix.
5818 (write_function_header): Adjust to output a C++ class method.
5819 (write_declaration): New.
5820 (write_delegator): Adjust to output a C++ class method.
5821 (tdname): Output "dummy_target::" prefix.
5822 (write_tdefault, write_debugmethod): Adjust to output a C++ class
5824 (tdefault_names, debug_names): Delete.
5825 (return_types, tdefaults, styles, argtypes_array): New.
5826 (top level): All methods are delegators.
5828 (top level): Print dummy_target and debug_target classes.
5829 * target-delegates.c: Regenerate.
5830 * target-debug.h (target_debug_print_enum_info_proc_what)
5831 (target_debug_print_thread_control_capabilities)
5832 (target_debug_print_thread_info_p): New.
5833 * target.c (dummy_target): Delete.
5834 (the_dummy_target, the_debug_target): New.
5835 (target_stack): Now extern.
5836 (set_targetdebug): Push/unpush debug target.
5837 (default_child_has_all_memory, default_child_has_memory)
5838 (default_child_has_stack, default_child_has_registers)
5839 (default_child_has_execution): Remove target_ops parameter.
5840 (complete_target_initialization): Delete.
5841 (add_target_with_completer): No longer call
5842 complete_target_initialization.
5843 (target_supports_terminal_ours): Use regular delegation.
5844 (update_current_target): Delete.
5845 (push_target): No longer check magic number. Don't call
5846 update_current_target.
5847 (unpush_target): Don't call update_current_target.
5848 (target_is_pushed): No longer check magic number.
5849 (target_require_runnable): Skip for all stratums over
5851 (target_ops::info_proc): New.
5852 (target_info_proc): Use find_target_at and
5853 find_default_run_target.
5854 (target_supports_disable_randomization): Use regular delegation.
5855 (target_get_osdata): Use find_target_at.
5856 (target_ops::open, target_ops::close, target_ops::can_attach)
5857 (target_ops::attach, target_ops::can_create_inferior)
5858 (target_ops::create_inferior, target_ops::can_run)
5859 (target_can_run): New.
5860 (default_fileio_target): Use regular delegation.
5861 (target_ops::fileio_open, target_ops::fileio_pwrite)
5862 (target_ops::fileio_pread, target_ops::fileio_fstat)
5863 (target_ops::fileio_close, target_ops::fileio_unlink)
5864 (target_ops::fileio_readlink): New.
5865 (target_fileio_open_1, target_fileio_unlink)
5866 (target_fileio_readlink): Always call the target method. Handle
5868 (return_zero, return_zero_has_execution): Delete.
5869 (init_dummy_target): Delete.
5870 (dummy_target::dummy_target, dummy_target::shortname)
5871 (dummy_target::longname, dummy_target::doc)
5872 (debug_target::debug_target, debug_target::shortname)
5873 (debug_target::longname, debug_target::doc): New.
5874 (target_supports_delete_record): Use regular delegation.
5875 (setup_target_debug): Delete.
5876 (maintenance_print_target_stack): Skip debug_stratum.
5877 (initialize_targets): Instantiate the_dummy_target and
5879 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
5881 (target_auxv_search, fprint_target_auxv): Adjust.
5882 (info_auxv_command): Adjust to use target_stack.
5883 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
5884 * exceptions.c (print_flush): Handle a NULL target_stack.
5885 * regcache.c (target_ops_no_register): Refactor as class with
5888 * exec.c (exec_target): New class.
5889 (exec_ops): Now an exec_target.
5890 (exec_open, exec_close_1, exec_get_section_table)
5891 (exec_xfer_partial, exec_files_info, exec_has_memory)
5892 (exec_make_note_section): Refactor as exec_target methods.
5893 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
5895 (exec_target::find_memory_regions): New.
5896 (_initialize_exec): Don't call init_exec_ops.
5897 * gdbcore.h (exec_file_clear): Delete.
5899 * corefile.c (core_target): Delete.
5900 (core_file_command): Adjust.
5901 * corelow.c (core_target): New class.
5902 (the_core_target): New.
5903 (core_close): Remove target_ops parameter.
5904 (core_close_cleanup): Adjust.
5905 (core_target::close): New.
5906 (core_open, core_detach, get_core_registers, core_files_info)
5907 (core_xfer_partial, core_thread_alive, core_read_description)
5908 (core_pid_to_str, core_thread_name, core_has_memory)
5909 (core_has_stack, core_has_registers, core_info_proc): Rework as
5910 core_target methods.
5911 (ignore, core_remove_breakpoint, init_core_ops): Delete.
5912 (_initialize_corelow): Initialize the_core_target.
5913 * gdbcore.h (core_target): Delete.
5914 (the_core_target): New.
5916 * ctf.c: (ctf_target): New class.
5917 (ctf_ops): Now a ctf_target.
5918 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
5919 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
5920 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
5922 (init_ctf_ops): Delete.
5923 (_initialize_ctf): Don't call it.
5924 * tracefile-tfile.c (tfile_target): New class.
5925 (tfile_ops): Now a tfile_target.
5926 (tfile_open, tfile_close, tfile_files_info)
5927 (tfile_get_tracepoint_status, tfile_trace_find)
5928 (tfile_fetch_registers, tfile_xfer_partial)
5929 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
5930 Refactor as tfile_target methods.
5931 (tfile_xfer_partial_features): Remove target_ops parameter.
5932 (init_tfile_ops): Delete.
5933 (_initialize_tracefile_tfile): Don't call it.
5934 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
5935 (tracefile_has_stack, tracefile_has_registers)
5936 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
5937 tracefile_target methods.
5938 (init_tracefile_ops): Delete.
5939 (tracefile_target::tracefile_target): New.
5940 * tracefile.h: Include "target.h".
5941 (tracefile_target): New class.
5942 (init_tracefile_ops): Delete.
5944 * spu-multiarch.c (spu_multiarch_target): New class.
5945 (spu_ops): Now a spu_multiarch_target.
5946 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
5947 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5948 (spu_search_memory, spu_mourn_inferior): Refactor as
5949 spu_multiarch_target methods.
5950 (init_spu_ops): Delete.
5951 (_initialize_spu_multiarch): Remove references to init_spu_ops,
5952 complete_target_initialization.
5954 * ravenscar-thread.c (ravenscar_thread_target): New class.
5955 (ravenscar_ops): Now a ravenscar_thread_target.
5956 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
5957 (ravenscar_thread_alive, ravenscar_pid_to_str)
5958 (ravenscar_fetch_registers, ravenscar_store_registers)
5959 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
5960 (ravenscar_stopped_by_hw_breakpoint)
5961 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
5962 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
5963 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
5965 (init_ravenscar_thread_ops): Delete.
5966 (_initialize_ravenscar): Remove references to
5967 init_ravenscar_thread_ops and complete_target_initialization.
5969 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
5970 (bsd_uthread_target): New class.
5971 (bsd_uthread_ops): Now a bsd_uthread_target.
5972 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
5973 (bsd_uthread_close, bsd_uthread_mourn_inferior)
5974 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
5975 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
5976 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
5977 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
5978 (bsd_uthread_target): Delete function.
5979 (_initialize_bsd_uthread): Remove reference to
5980 complete_target_initialization.
5982 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
5983 (target_bfd): ... this new class.
5984 (target_bfd_xfer_partial, target_bfd_get_section_table)
5985 (target_bfd_close): Refactor as target_bfd methods.
5986 (target_bfd::~target_bfd): New.
5987 (target_bfd_reopen): Adjust.
5988 (target_bfd::close): New.
5990 * record-btrace.c (record_btrace_target): New class.
5991 (record_btrace_ops): Now a record_btrace_target.
5992 (record_btrace_open, record_btrace_stop_recording)
5993 (record_btrace_disconnect, record_btrace_close)
5994 (record_btrace_async, record_btrace_info)
5995 (record_btrace_insn_history, record_btrace_insn_history_range)
5996 (record_btrace_insn_history_from, record_btrace_call_history)
5997 (record_btrace_call_history_range)
5998 (record_btrace_call_history_from, record_btrace_record_method)
5999 (record_btrace_is_replaying, record_btrace_will_replay)
6000 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6001 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
6002 (record_btrace_store_registers, record_btrace_prepare_to_store)
6003 (record_btrace_to_get_unwinder)
6004 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
6005 (record_btrace_commit_resume, record_btrace_wait)
6006 (record_btrace_stop, record_btrace_can_execute_reverse)
6007 (record_btrace_stopped_by_sw_breakpoint)
6008 (record_btrace_supports_stopped_by_sw_breakpoint)
6009 (record_btrace_stopped_by_hw_breakpoint)
6010 (record_btrace_supports_stopped_by_hw_breakpoint)
6011 (record_btrace_update_thread_list, record_btrace_thread_alive)
6012 (record_btrace_goto_begin, record_btrace_goto_end)
6013 (record_btrace_goto, record_btrace_stop_replaying_all)
6014 (record_btrace_execution_direction)
6015 (record_btrace_prepare_to_generate_core)
6016 (record_btrace_done_generating_core): Refactor as
6017 record_btrace_target methods.
6018 (init_record_btrace_ops): Delete.
6019 (_initialize_record_btrace): Remove reference to
6020 init_record_btrace_ops.
6021 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
6022 the execution_direction global.
6023 (record_full_base_target, record_full_target)
6024 (record_full_core_target): New classes.
6025 (record_full_ops): Now a record_full_target.
6026 (record_full_core_ops): Now a record_full_core_target.
6027 (record_full_target::detach, record_full_target::disconnect)
6028 (record_full_core_target::disconnect)
6029 (record_full_target::mourn_inferior, record_full_target::kill):
6031 (record_full_open, record_full_close, record_full_async): Refactor
6032 as methods of the record_full_base_target class.
6033 (record_full_resume, record_full_commit_resume): Refactor
6034 as methods of the record_full_target class.
6035 (record_full_wait, record_full_stopped_by_watchpoint)
6036 (record_full_stopped_data_address)
6037 (record_full_stopped_by_sw_breakpoint)
6038 (record_full_supports_stopped_by_sw_breakpoint)
6039 (record_full_stopped_by_hw_breakpoint)
6040 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
6041 methods of the record_full_base_target class.
6042 (record_full_store_registers, record_full_xfer_partial)
6043 (record_full_insert_breakpoint, record_full_remove_breakpoint):
6044 Refactor as methods of the record_full_target class.
6045 (record_full_can_execute_reverse, record_full_get_bookmark)
6046 (record_full_goto_bookmark, record_full_execution_direction)
6047 (record_full_record_method, record_full_info, record_full_delete)
6048 (record_full_is_replaying, record_full_will_replay)
6049 (record_full_goto_begin, record_full_goto_end, record_full_goto)
6050 (record_full_stop_replaying): Refactor as methods of the
6051 record_full_base_target class.
6052 (record_full_core_resume, record_full_core_kill)
6053 (record_full_core_fetch_registers)
6054 (record_full_core_prepare_to_store)
6055 (record_full_core_store_registers, record_full_core_xfer_partial)
6056 (record_full_core_insert_breakpoint)
6057 (record_full_core_remove_breakpoint)
6058 (record_full_core_has_execution): Refactor
6059 as methods of the record_full_core_target class.
6060 (record_full_base_target::supports_delete_record): New.
6061 (init_record_full_ops): Delete.
6062 (init_record_full_core_ops): Delete.
6063 (record_full_save): Refactor as method of the
6064 record_full_base_target class.
6065 (_initialize_record_full): Remove references to
6066 init_record_full_ops and init_record_full_core_ops.
6068 * remote.c (remote_target, extended_remote_target): New classes.
6069 (remote_ops): Now a remote_target.
6070 (extended_remote_ops): Now an extended_remote_target.
6071 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
6072 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
6073 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
6074 (remote_pass_signals, remote_set_syscall_catchpoint)
6075 (remote_program_signals, )
6076 (remote_thread_always_alive): Remove target_ops parameter.
6077 (remote_thread_alive, remote_thread_name)
6078 (remote_update_thread_list, remote_threads_extra_info)
6079 (remote_static_tracepoint_marker_at)
6080 (remote_static_tracepoint_markers_by_strid)
6081 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
6082 (remote_open): Refactor as methods of remote_target.
6083 (extended_remote_open, extended_remote_detach)
6084 (extended_remote_attach, extended_remote_post_attach):
6085 (extended_remote_supports_disable_randomization)
6086 (extended_remote_create_inferior): : Refactor as method of
6087 extended_remote_target.
6088 (remote_set_permissions, remote_open_1, remote_detach)
6089 (remote_follow_fork, remote_follow_exec, remote_disconnect)
6090 (remote_resume, remote_commit_resume, remote_stop)
6091 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
6092 (remote_terminal_ours, remote_wait, remote_fetch_registers)
6093 (remote_prepare_to_store, remote_store_registers)
6094 (remote_flash_erase, remote_flash_done, remote_files_info)
6095 (remote_kill, remote_mourn, remote_insert_breakpoint)
6096 (remote_remove_breakpoint, remote_insert_watchpoint)
6097 (remote_watchpoint_addr_within_range)
6098 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
6099 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
6100 (remote_supports_stopped_by_sw_breakpoint)
6101 (remote_stopped_by_hw_breakpoint)
6102 (remote_supports_stopped_by_hw_breakpoint)
6103 (remote_stopped_by_watchpoint, remote_stopped_data_address)
6104 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6105 (remote_verify_memory): Refactor as methods of remote_target.
6106 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
6108 (remote_xfer_partial, remote_get_memory_xfer_limit)
6109 (remote_search_memory, remote_rcmd, remote_memory_map)
6110 (remote_pid_to_str, remote_get_thread_local_address)
6111 (remote_get_tib_address, remote_read_description): Refactor as
6112 methods of remote_target.
6113 (remote_target::fileio_open, remote_target::fileio_pwrite)
6114 (remote_target::fileio_pread, remote_target::fileio_close): New.
6115 (remote_hostio_readlink, remote_hostio_fstat)
6116 (remote_filesystem_is_local, remote_can_execute_reverse)
6117 (remote_supports_non_stop, remote_supports_disable_randomization)
6118 (remote_supports_multi_process, remote_supports_cond_breakpoints)
6119 (remote_supports_enable_disable_tracepoint)
6120 (remote_supports_string_tracing)
6121 (remote_can_run_breakpoint_commands, remote_trace_init)
6122 (remote_download_tracepoint, remote_can_download_tracepoint)
6123 (remote_download_trace_state_variable, remote_enable_tracepoint)
6124 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
6125 (remote_trace_start, remote_get_trace_status)
6126 (remote_get_tracepoint_status, remote_trace_stop)
6127 (remote_trace_find, remote_get_trace_state_variable_value)
6128 (remote_save_trace_data, remote_get_raw_trace_data)
6129 (remote_set_disconnected_tracing, remote_core_of_thread)
6130 (remote_set_circular_trace_buffer, remote_traceframe_info)
6131 (remote_get_min_fast_tracepoint_insn_len)
6132 (remote_set_trace_buffer_size, remote_set_trace_notes)
6133 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
6134 (remote_disable_btrace, remote_teardown_btrace)
6135 (remote_read_btrace, remote_btrace_conf)
6136 (remote_augmented_libraries_svr4_read, remote_load)
6137 (remote_pid_to_exec_file, remote_can_do_single_step)
6138 (remote_execution_direction, remote_thread_handle_to_thread_info):
6139 Refactor as methods of remote_target.
6140 (init_remote_ops, init_extended_remote_ops): Delete.
6141 (remote_can_async_p, remote_is_async_p, remote_async)
6142 (remote_thread_events, remote_upload_tracepoints)
6143 (remote_upload_trace_state_variables): Refactor as methods of
6145 (_initialize_remote): Remove references to init_remote_ops and
6146 init_extended_remote_ops.
6148 * remote-sim.c (gdbsim_target): New class.
6149 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
6150 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
6151 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
6152 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
6153 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
6154 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
6155 Refactor as methods of gdbsim_target.
6156 (gdbsim_ops): Now a gdbsim_target.
6157 (init_gdbsim_ops): Delete.
6158 (gdbsim_cntrl_c): Adjust.
6159 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
6161 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
6162 (the_amd64_linux_nat_target): New.
6163 (amd64_linux_fetch_inferior_registers)
6164 (amd64_linux_store_inferior_registers): Refactor as methods of
6165 amd64_linux_nat_target.
6166 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
6167 * i386-linux-nat.c: Don't include "linux-nat.h".
6168 (i386_linux_nat_target): New class.
6169 (the_i386_linux_nat_target): New.
6170 (i386_linux_fetch_inferior_registers)
6171 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
6172 as methods of i386_linux_nat_target.
6173 (_initialize_i386_linux_nat): Adjust. Set linux_target.
6174 * inf-child.c (inf_child_ops): Delete.
6175 (inf_child_fetch_inferior_registers)
6176 (inf_child_store_inferior_registers): Delete.
6177 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
6178 methods of inf_child_target.
6179 (inf_child_target::supports_terminal_ours)
6180 (inf_child_target::terminal_init)
6181 (inf_child_target::terminal_inferior)
6182 (inf_child_target::terminal_ours_for_output)
6183 (inf_child_target::terminal_ours, inf_child_target::interrupt)
6184 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
6186 (inf_child_open, inf_child_disconnect, inf_child_close)
6187 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
6188 (inf_child_post_startup_inferior, inf_child_can_run)
6189 (inf_child_pid_to_exec_file): Refactor as methods of
6191 (inf_child_follow_fork): Delete.
6192 (inf_child_target::can_create_inferior)
6193 (inf_child_target::can_attach): New.
6194 (inf_child_target::has_all_memory, inf_child_target::has_memory)
6195 (inf_child_target::has_stack, inf_child_target::has_registers)
6196 (inf_child_target::has_execution): New.
6197 (inf_child_fileio_open, inf_child_fileio_pwrite)
6198 (inf_child_fileio_pread, inf_child_fileio_fstat)
6199 (inf_child_fileio_close, inf_child_fileio_unlink)
6200 (inf_child_fileio_readlink, inf_child_use_agent)
6201 (inf_child_can_use_agent): Refactor as methods of
6203 (return_zero, inf_child_target): Delete.
6204 (inf_child_target::inf_child_target): New.
6205 * inf-child.h: Include "target.h".
6206 (inf_child_target): Delete function prototype.
6207 (inf_child_target): New class.
6208 (inf_child_open_target, inf_child_mourn_inferior)
6209 (inf_child_maybe_unpush_target): Delete.
6210 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
6211 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
6212 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
6213 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
6214 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
6215 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
6216 (inf_ptrace_wait, inf_ptrace_xfer_partial)
6217 (inf_ptrace_thread_alive, inf_ptrace_files_info)
6218 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
6219 methods of inf_ptrace_target.
6220 (inf_ptrace_target): Delete function.
6221 * inf-ptrace.h: Include "inf-child.h".
6222 (inf_ptrace_target): Delete function declaration.
6223 (inf_ptrace_target): New class.
6224 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
6225 * linux-nat.c (linux_target): New.
6226 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
6227 (linux_nat_target::~linux_nat_target): New.
6228 (linux_child_post_attach, linux_child_post_startup_inferior)
6229 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
6230 (linux_child_remove_fork_catchpoint)
6231 (linux_child_insert_vfork_catchpoint)
6232 (linux_child_remove_vfork_catchpoint)
6233 (linux_child_insert_exec_catchpoint)
6234 (linux_child_remove_exec_catchpoint)
6235 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
6236 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
6237 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
6238 (linux_nat_stopped_data_address)
6239 (linux_nat_stopped_by_sw_breakpoint)
6240 (linux_nat_supports_stopped_by_sw_breakpoint)
6241 (linux_nat_stopped_by_hw_breakpoint)
6242 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
6243 (linux_nat_kill, linux_nat_mourn_inferior)
6244 (linux_nat_xfer_partial, linux_nat_thread_alive)
6245 (linux_nat_update_thread_list, linux_nat_pid_to_str)
6246 (linux_nat_thread_name, linux_child_pid_to_exec_file)
6247 (linux_child_static_tracepoint_markers_by_strid)
6248 (linux_nat_is_async_p, linux_nat_can_async_p)
6249 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
6250 (linux_nat_supports_multi_process)
6251 (linux_nat_supports_disable_randomization, linux_nat_async)
6252 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
6253 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
6254 (linux_nat_fileio_open, linux_nat_fileio_readlink)
6255 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
6256 methods of linux_nat_target.
6257 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
6258 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
6260 (check_stopped_by_watchpoint): Adjust.
6261 (linux_xfer_partial): Delete.
6262 (linux_target_install_ops, linux_target, linux_nat_add_target):
6264 (linux_nat_target::linux_nat_target): New.
6265 * linux-nat.h: Include "inf-ptrace.h".
6266 (linux_nat_target): New.
6267 (linux_target, linux_target_install_ops, linux_nat_add_target):
6268 Delete function declarations.
6269 (linux_target): Declare global.
6270 * linux-thread-db.c (thread_db_target): New.
6271 (thread_db_target::thread_db_target): New.
6272 (thread_db_ops): Delete.
6273 (the_thread_db_target): New.
6274 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
6275 (thread_db_update_thread_list, thread_db_pid_to_str)
6276 (thread_db_extra_thread_info)
6277 (thread_db_thread_handle_to_thread_info)
6278 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
6279 (thread_db_resume): Refactor as methods of thread_db_target.
6280 (init_thread_db_ops): Delete.
6281 (_initialize_thread_db): Remove reference to init_thread_db_ops.
6282 * x86-linux-nat.c: Don't include "linux-nat.h".
6283 (super_post_startup_inferior): Delete.
6284 (x86_linux_nat_target::~x86_linux_nat_target): New.
6285 (x86_linux_child_post_startup_inferior)
6286 (x86_linux_read_description, x86_linux_enable_btrace)
6287 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
6288 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
6289 methods of x86_linux_nat_target.
6290 (x86_linux_create_target): Delete. Bits folded ...
6291 (x86_linux_add_target): ... here. Now takes a linux_nat_target
6293 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
6294 (x86_linux_nat_target): New class.
6295 (x86_linux_create_target): Delete.
6296 (x86_linux_add_target): Now takes a linux_nat_target pointer.
6297 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
6298 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
6299 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
6300 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
6301 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
6303 (x86_use_watchpoints): Delete.
6304 * x86-nat.h: Include "breakpoint.h" and "target.h".
6305 (x86_use_watchpoints): Delete.
6306 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
6307 (x86_stopped_by_watchpoint, x86_stopped_data_address)
6308 (x86_insert_watchpoint, x86_remove_watchpoint)
6309 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
6310 (x86_stopped_by_hw_breakpoint): New declarations.
6311 (x86_nat_target): New template class.
6313 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
6314 (the_ppc_linux_nat_target): New.
6315 (ppc_linux_fetch_inferior_registers)
6316 (ppc_linux_can_use_hw_breakpoint)
6317 (ppc_linux_region_ok_for_hw_watchpoint)
6318 (ppc_linux_ranged_break_num_registers)
6319 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
6320 (ppc_linux_insert_mask_watchpoint)
6321 (ppc_linux_remove_mask_watchpoint)
6322 (ppc_linux_can_accel_watchpoint_condition)
6323 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
6324 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
6325 (ppc_linux_watchpoint_addr_within_range)
6326 (ppc_linux_masked_watch_num_registers)
6327 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
6328 (ppc_linux_read_description): Refactor as methods of
6329 ppc_linux_nat_target.
6330 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
6332 * procfs.c (procfs_xfer_partial): Delete forward declaration.
6333 (procfs_target): New class.
6334 (the_procfs_target): New.
6335 (procfs_target): Delete function.
6336 (procfs_auxv_parse, procfs_attach, procfs_detach)
6337 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
6338 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
6339 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
6340 (procfs_create_inferior, procfs_update_thread_list)
6341 (procfs_thread_alive, procfs_pid_to_str)
6342 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
6343 (procfs_stopped_data_address, procfs_insert_watchpoint)
6344 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
6345 (proc_find_memory_regions, procfs_info_proc)
6346 (procfs_make_note_section): Refactor as methods of procfs_target.
6347 (_initialize_procfs): Adjust.
6348 * sol-thread.c (sol_thread_target): New class.
6349 (sol_thread_ops): Now a sol_thread_target.
6350 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
6351 (sol_thread_fetch_registers, sol_thread_store_registers)
6352 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
6353 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
6354 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
6355 (init_sol_thread_ops): Delete.
6356 (_initialize_sol_thread): Adjust. Remove references to
6357 init_sol_thread_ops and complete_target_initialization.
6359 * windows-nat.c (windows_nat_target): New class.
6360 (windows_fetch_inferior_registers)
6361 (windows_store_inferior_registers, windows_resume, windows_wait)
6362 (windows_attach, windows_detach, windows_pid_to_exec_file)
6363 (windows_files_info, windows_create_inferior)
6364 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
6365 (windows_close, windows_pid_to_str, windows_xfer_partial)
6366 (windows_get_tib_address, windows_get_ada_task_ptid)
6367 (windows_thread_name, windows_thread_alive): Refactor as
6368 windows_nat_target methods.
6369 (do_initial_windows_stuff): Adjust.
6370 (windows_target): Delete function.
6371 (_initialize_windows_nat): Adjust.
6373 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
6374 (darwin_mourn_inferior, darwin_kill_inferior)
6375 (darwin_create_inferior, darwin_attach, darwin_detach)
6376 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
6377 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
6378 (darwin_supports_multi_process): Refactor as darwin_nat_target
6380 (darwin_resume_to, darwin_files_info): Delete.
6381 (_initialize_darwin_inferior): Rename to ...
6382 (_initialize_darwin_nat): ... this. Adjust to C++ification.
6383 * darwin-nat.h: Include "inf-child.h".
6384 (darwin_nat_target): New class.
6385 (darwin_complete_target): Delete.
6386 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
6387 (darwin_target): New.
6388 (i386_darwin_fetch_inferior_registers)
6389 (i386_darwin_store_inferior_registers): Refactor as methods of
6391 (darwin_complete_target): Delete, with ...
6392 (_initialize_i386_darwin_nat): ... bits factored out here.
6394 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
6395 (the_alpha_linux_nat_target): New.
6396 (alpha_linux_register_u_offset): Refactor as
6397 alpha_linux_nat_target method.
6398 (_initialize_alpha_linux_nat): Adjust.
6399 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
6400 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
6401 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
6402 methods of linux_nat_trad_target.
6403 (linux_trad_target): Delete.
6404 * linux-nat-trad.h (linux_trad_target): Delete function.
6405 (linux_nat_trad_target): New class.
6406 * mips-linux-nat.c (mips_linux_nat_target): New class.
6407 (super_fetch_registers, super_store_registers, super_close):
6409 (the_mips_linux_nat_target): New.
6410 (mips64_linux_regsets_fetch_registers)
6411 (mips64_linux_regsets_store_registers)
6412 (mips64_linux_fetch_registers, mips64_linux_store_registers)
6413 (mips_linux_register_u_offset, mips_linux_read_description)
6414 (mips_linux_can_use_hw_breakpoint)
6415 (mips_linux_stopped_by_watchpoint)
6416 (mips_linux_stopped_data_address)
6417 (mips_linux_region_ok_for_hw_watchpoint)
6418 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
6419 (mips_linux_close): Refactor as methods of mips_linux_nat.
6420 (_initialize_mips_linux_nat): Adjust to C++ification.
6422 * aix-thread.c (aix_thread_target): New class.
6423 (aix_thread_ops): Now an aix_thread_target.
6424 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
6425 (aix_thread_fetch_registers, aix_thread_store_registers)
6426 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
6427 (aix_thread_thread_alive, aix_thread_pid_to_str)
6428 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
6429 Refactor as methods of aix_thread_target.
6430 (init_aix_thread_ops): Delete.
6431 (_initialize_aix_thread): Remove references to init_aix_thread_ops
6432 and complete_target_initialization.
6433 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
6434 (rs6000_nat_target): New class.
6435 (the_rs6000_nat_target): New.
6436 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
6437 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
6438 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
6439 (super_create_inferior): Delete.
6440 (_initialize_rs6000_nat): Adjust to C++ification.
6442 * arm-linux-nat.c (arm_linux_nat_target): New class.
6443 (the_arm_linux_nat_target): New.
6444 (arm_linux_fetch_inferior_registers)
6445 (arm_linux_store_inferior_registers, arm_linux_read_description)
6446 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
6447 (arm_linux_remove_hw_breakpoint)
6448 (arm_linux_region_ok_for_hw_watchpoint)
6449 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
6450 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
6451 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
6452 arm_linux_nat_target.
6453 (_initialize_arm_linux_nat): Adjust to C++ification.
6455 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
6456 (the_aarch64_linux_nat_target): New.
6457 (aarch64_linux_fetch_inferior_registers)
6458 (aarch64_linux_store_inferior_registers)
6459 (aarch64_linux_child_post_startup_inferior)
6460 (aarch64_linux_read_description)
6461 (aarch64_linux_can_use_hw_breakpoint)
6462 (aarch64_linux_insert_hw_breakpoint)
6463 (aarch64_linux_remove_hw_breakpoint)
6464 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
6465 (aarch64_linux_region_ok_for_hw_watchpoint)
6466 (aarch64_linux_stopped_data_address)
6467 (aarch64_linux_stopped_by_watchpoint)
6468 (aarch64_linux_watchpoint_addr_within_range)
6469 (aarch64_linux_can_do_single_step): Refactor as methods of
6470 aarch64_linux_nat_target.
6471 (super_post_startup_inferior): Delete.
6472 (_initialize_aarch64_linux_nat): Adjust to C++ification.
6474 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
6475 (the_hppa_linux_nat_target): New.
6476 (hppa_linux_fetch_inferior_registers)
6477 (hppa_linux_store_inferior_registers): Refactor as methods of
6478 hppa_linux_nat_target.
6479 (_initialize_hppa_linux_nat): Adjust to C++ification.
6481 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
6482 (the_ia64_linux_nat_target): New.
6483 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
6484 (ia64_linux_stopped_data_address)
6485 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
6486 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
6487 ia64_linux_nat_target methods.
6488 (super_xfer_partial): Delete.
6489 (_initialize_ia64_linux_nat): Adjust to C++ification.
6491 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
6492 (the_m32r_linux_nat_target): New.
6493 (m32r_linux_fetch_inferior_registers)
6494 (m32r_linux_store_inferior_registers): Refactor as
6495 m32r_linux_nat_target methods.
6496 (_initialize_m32r_linux_nat): Adjust to C++ification.
6498 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
6499 (the_m68k_linux_nat_target): New.
6500 (m68k_linux_fetch_inferior_registers)
6501 (m68k_linux_store_inferior_registers): Refactor as
6502 m68k_linux_nat_target methods.
6503 (_initialize_m68k_linux_nat): Adjust to C++ification.
6505 * s390-linux-nat.c (s390_linux_nat_target): New class.
6506 (the_s390_linux_nat_target): New.
6507 (s390_linux_fetch_inferior_registers)
6508 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
6509 (s390_insert_watchpoint, s390_remove_watchpoint)
6510 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
6511 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
6512 (s390_auxv_parse, s390_read_description): Refactor as methods of
6513 s390_linux_nat_target.
6514 (_initialize_s390_nat): Adjust to C++ification.
6516 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
6517 (the_sparc_linux_nat_target): New.
6518 (_initialize_sparc_linux_nat): Adjust to C++ification.
6519 * sparc-nat.c (sparc_fetch_inferior_registers)
6520 (sparc_store_inferior_registers): Remove target_ops parameter.
6521 * sparc-nat.h (sparc_fetch_inferior_registers)
6522 (sparc_store_inferior_registers): Remove target_ops parameter.
6523 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
6524 (the_sparc64_linux_nat_target): New.
6525 (_initialize_sparc64_linux_nat): Adjust to C++ification.
6527 * spu-linux-nat.c (spu_linux_nat_target): New class.
6528 (the_spu_linux_nat_target): New.
6529 (spu_child_post_startup_inferior, spu_child_post_attach)
6530 (spu_child_wait, spu_fetch_inferior_registers)
6531 (spu_store_inferior_registers, spu_xfer_partial)
6532 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
6534 (_initialize_spu_nat): Adjust to C++ification.
6536 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
6537 (the_tilegx_linux_nat_target): New.
6538 (fetch_inferior_registers, store_inferior_registers):
6539 Refactor as methods.
6540 (_initialize_tile_linux_nat): Adjust to C++ification.
6542 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
6543 (the_xtensa_linux_nat_target): New.
6544 (xtensa_linux_fetch_inferior_registers)
6545 (xtensa_linux_store_inferior_registers): Refactor as
6546 xtensa_linux_nat_target methods.
6547 (_initialize_xtensa_linux_nat): Adjust to C++ification.
6549 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
6550 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
6551 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
6552 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
6553 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
6554 (fbsd_stopped_by_sw_breakpoint)
6555 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
6556 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
6557 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
6558 (fbsd_post_startup_inferior, fbsd_post_attach)
6559 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
6560 (fbsd_set_syscall_catchpoint)
6561 (super_xfer_partial, super_resume, super_wait)
6562 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
6563 (fbsd_handle_debug_trap): Remove target_ops parameter.
6564 (fbsd_nat_add_target): Delete.
6565 * fbsd-nat.h: Include "inf-ptrace.h".
6566 (fbsd_nat_add_target): Delete.
6567 (USE_SIGTRAP_SIGINFO): Define.
6568 (fbsd_nat_target): New class.
6570 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
6571 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
6572 (amd64bsd_target): Delete.
6573 * amd64-bsd-nat.h: New file.
6574 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
6576 (amd64_fbsd_nat_target): New class.
6577 (the_amd64_fbsd_nat_target): New.
6578 (amd64fbsd_read_description): Refactor as method of
6579 amd64_fbsd_nat_target.
6580 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6581 (_initialize_amd64fbsd_nat): Adjust to C++ification.
6582 * amd64-nat.h (amd64bsd_target): Delete function declaration.
6583 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
6584 (i386bsd_store_inferior_registers): Remove target_ops parameter.
6585 (i386bsd_target): Delete.
6586 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
6587 (i386bsd_fetch_inferior_registers)
6588 (i386bsd_store_inferior_registers): Declare.
6589 (i386_bsd_nat_target): New class.
6590 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
6591 (the_i386_fbsd_nat_target): New.
6592 (i386fbsd_resume, i386fbsd_read_description): Refactor as
6593 i386_fbsd_nat_target methods.
6594 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6595 (_initialize_i386fbsd_nat): Adjust to C++ification.
6596 * x86-bsd-nat.c (super_mourn_inferior): Delete.
6597 (x86bsd_mourn_inferior, x86bsd_target): Delete.
6598 (_initialize_x86_bsd_nat): Adjust to C++ification.
6599 * x86-bsd-nat.h: Include "x86-nat.h".
6600 (x86bsd_target): Delete declaration.
6601 (x86bsd_nat_target): New class.
6603 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
6604 (the_aarch64_fbsd_nat_target): New.
6605 (aarch64_fbsd_fetch_inferior_registers)
6606 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
6607 aarch64_fbsd_nat_target.
6608 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
6609 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
6610 (the_alpha_bsd_nat_target): New.
6611 (alphabsd_fetch_inferior_registers)
6612 (alphabsd_store_inferior_registers): Refactor as
6613 alpha_bsd_nat_target methods.
6614 (_initialize_alphabsd_nat): Refactor as methods of
6615 alpha_bsd_nat_target.
6616 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
6617 (the_amd64_nbsd_nat_target): New.
6618 (_initialize_amd64nbsd_nat): Adjust to C++ification.
6619 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
6620 (the_amd64_obsd_nat_target): New.
6621 (_initialize_amd64obsd_nat): Adjust to C++ification.
6622 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
6623 (the_arm_fbsd_nat_target): New.
6624 (arm_fbsd_fetch_inferior_registers)
6625 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
6626 (_initialize_arm_fbsd_nat): Refactor as methods of
6627 arm_fbsd_nat_target.
6628 (_initialize_arm_fbsd_nat): Adjust to C++ification.
6629 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
6630 (the_arm_netbsd_nat_target): New.
6631 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
6632 arm_netbsd_nat_target.
6633 (_initialize_arm_netbsd_nat): Adjust to C++ification.
6634 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
6635 (the_hppa_nbsd_nat_target): New.
6636 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
6637 hppa_nbsd_nat_target methods.
6638 (_initialize_hppanbsd_nat): Adjust to C++ification.
6639 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
6640 (the_hppa_obsd_nat_target): New.
6641 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
6642 methods of hppa_obsd_nat_target.
6643 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
6645 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
6646 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
6648 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
6649 (_initialize_i386obsd_nat): Use add_target.
6650 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
6651 (the_m68k_bsd_nat_target): New.
6652 (m68kbsd_fetch_inferior_registers)
6653 (m68kbsd_store_inferior_registers): Refactor as methods of
6654 m68k_bsd_nat_target.
6655 (_initialize_m68kbsd_nat): Adjust to C++ification.
6656 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
6657 (the_mips_fbsd_nat_target): New.
6658 (mips_fbsd_fetch_inferior_registers)
6659 (mips_fbsd_store_inferior_registers): Refactor as methods of
6660 mips_fbsd_nat_target.
6661 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
6663 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
6664 (the_mips_nbsd_nat_target): New.
6665 (mipsnbsd_fetch_inferior_registers)
6666 (mipsnbsd_store_inferior_registers): Refactor as methods of
6667 mips_nbsd_nat_target.
6668 (_initialize_mipsnbsd_nat): Adjust to C++ification.
6669 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
6670 (the_mips64_obsd_nat_target): New.
6671 (mips64obsd_fetch_inferior_registers)
6672 (mips64obsd_store_inferior_registers): Refactor as methods of
6673 mips64_obsd_nat_target.
6674 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
6676 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
6678 * nbsd-nat.h: Include "inf-ptrace.h".
6679 (nbsd_nat_target): New class.
6680 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
6681 (obsd_wait): Refactor as methods of obsd_nat_target.
6682 (obsd_add_target): Delete.
6683 * obsd-nat.h: Include "inf-ptrace.h".
6684 (obsd_nat_target): New class.
6685 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
6686 (the_ppc_fbsd_nat_target): New.
6687 (ppcfbsd_fetch_inferior_registers)
6688 (ppcfbsd_store_inferior_registers): Refactor as methods of
6689 ppc_fbsd_nat_target.
6690 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
6692 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
6693 (the_ppc_nbsd_nat_target): New.
6694 (ppcnbsd_fetch_inferior_registers)
6695 (ppcnbsd_store_inferior_registers): Refactor as methods of
6696 ppc_nbsd_nat_target.
6697 (_initialize_ppcnbsd_nat): Adjust to C++ification.
6698 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
6699 (the_ppc_obsd_nat_target): New.
6700 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
6701 methods of ppc_obsd_nat_target.
6702 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
6704 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
6705 (the_sh_nbsd_nat_target): New.
6706 (shnbsd_fetch_inferior_registers)
6707 (shnbsd_store_inferior_registers): Refactor as methods of
6709 (_initialize_shnbsd_nat): Adjust to C++ification.
6710 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
6711 (inf_ptrace_xfer_partial): Delete.
6712 (sparc_xfer_partial, sparc_target): Delete.
6713 * sparc-nat.h (sparc_fetch_inferior_registers)
6714 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
6715 (sparc_target): Delete function declaration.
6716 (sparc_target): New template class.
6717 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
6718 (_initialize_sparcnbsd_nat): Adjust to C++ification.
6719 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
6720 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
6722 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
6723 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
6724 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
6725 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
6727 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
6728 (the_vax_bsd_nat_target): New.
6729 (vaxbsd_fetch_inferior_registers)
6730 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
6732 (_initialize_vaxbsd_nat): Adjust to C++ification.
6734 * bsd-kvm.c (bsd_kvm_target): New class.
6735 (bsd_kvm_ops): Now a bsd_kvm_target.
6736 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
6737 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
6738 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
6740 (bsd_kvm_return_one): Delete.
6741 (bsd_kvm_add_target): Adjust to C++ification.
6743 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
6744 (nto_procfs_target_procfs): New classes.
6745 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
6746 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
6747 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
6748 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
6749 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
6750 (procfs_remove_hw_breakpoint, procfs_resume)
6751 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
6752 (procfs_kill_inferior, procfs_store_registers)
6753 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
6754 as methods of nto_procfs_target.
6755 (nto_procfs_ops): Now an nto_procfs_target_procfs.
6756 (nto_native_ops): Delete.
6757 (procfs_open, procfs_native_open): Delete.
6758 (nto_native_ops): Now an nto_procfs_target_native.
6759 (init_procfs_targets): Adjust to C++ification.
6760 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
6761 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
6762 Refactor as methods of nto_procfs_target.
6764 * go32-nat.c (go32_nat_target): New class.
6765 (the_go32_nat_target): New.
6766 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
6767 (go32_store_registers, go32_xfer_partial, go32_files_info)
6768 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
6769 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
6770 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
6771 (go32_pid_to_str): Refactor as methods of go32_nat_target.
6772 (go32_target): Delete.
6773 (_initialize_go32_nat): Adjust to C++ification.
6775 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
6776 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
6777 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
6778 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
6780 (gnu_target): Delete.
6781 * gnu-nat.h (gnu_target): Delete.
6782 (gnu_nat_target): New class.
6783 * i386-gnu-nat.c (gnu_base_target): New.
6784 (i386_gnu_nat_target): New class.
6785 (the_i386_gnu_nat_target): New.
6786 (_initialize_i386gnu_nat): Adjust to C++ification.
6788 2018-05-02 Pedro Alves <palves@redhat.com>
6790 * bfd-target.c (target_bfd_xclose): Rename to ...
6791 (target_bfd_close): ... this.
6792 (target_bfd_reopen): Adjust.
6793 * target.c (target_close): Remove references to to_xclose.
6794 * target.h (target_ops::to_xclose): Delete.
6795 (target_ops::to_close): Update comments.
6797 2018-05-02 Pedro Alves <palves@redhat.com>
6799 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
6801 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
6802 * inf-ptrace.c (inf_ptrace_register_u_offset)
6803 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
6804 (inf_ptrace_store_register, inf_ptrace_store_registers)
6805 (inf_ptrace_trad_target): Move to ...
6806 * linux-nat-trad.c: ... this new file.
6807 * linux-nat-trad.h: New file.
6808 * linux-nat.c (linux_target_install_ops): Make extern.
6809 (linux_trad_target): Delete.
6810 * linux-nat.h (linux_trad_target): Delete declaration.
6811 (linux_target_install_ops): Declare.
6812 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
6815 2018-05-02 Pedro Alves <palves@redhat.com>
6817 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
6818 procfs_target/add_target here.
6819 * procfs.c (procfs_target): Make static.
6820 (_initialize_procfs): Call add_target here.
6821 * procfs.h (struct target_ops): Remove forward declaration.
6822 (procfs_target): Remove declaration.
6823 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
6825 2018-05-02 Pedro Alves <palves@redhat.com>
6827 * procfs.c (procfs_stopped_by_watchpoint)
6828 (procfs_insert_watchpoint, procfs_remove_watchpoint)
6829 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
6831 (procfs_use_watchpoints): Delete, move contents...
6832 (procfs_target): ... here.
6833 * procfs.h (procfs_use_watchpoints): Delete declaration.
6834 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
6835 procfs_use_watchpoints.
6836 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
6837 procfs_use_watchpoints.
6839 2018-05-02 Tom Tromey <tom@tromey.com>
6842 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
6843 and var_zuinteger_unlimited.
6844 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
6845 and PARAM_ZUINTEGER_UNLIMITED.
6846 (set_parameter_value): Handle var_zuinteger and
6847 var_zuinteger_unlimited.
6848 (add_setshow_generic): Likewise.
6849 (parmpy_init): Likewise.
6851 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
6854 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
6855 pointer is not null before dereferencing it.
6857 2018-04-30 Tom Tromey <tom@tromey.com>
6859 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
6862 2018-04-30 Tom Tromey <tom@tromey.com>
6864 * breakpoint.c (mention): Remove use of is_mi_like_p.
6865 (print_mention_ranged_breakpoint): Likewise.
6866 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
6869 2018-04-30 Tom Tromey <tom@tromey.com>
6871 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
6873 2018-04-30 Tom Tromey <tom@tromey.com>
6875 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
6876 (info_spu_event_command): Remove some uses of is_mi_like_p.
6878 2018-04-30 Tom Tromey <tom@tromey.com>
6880 * python/py-framefilter.c (py_print_single_arg)
6881 (enumerate_locals, py_print_args, py_print_frame): Remove some
6882 uses of is_mi_like_p.
6884 2018-04-30 Tom Tromey <tom@tromey.com>
6887 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
6888 * ui-out.h (ui_out::is_mi_like_p): Now const.
6889 (ui_out::do_is_mi_like_p): Now const.
6890 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
6892 2018-04-30 Tom Tromey <tom@tromey.com>
6894 * varobj.c (varobj_set_visualizer): Use new_reference.
6895 * python/python.c (gdbpy_decode_line): Use new_reference.
6896 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
6899 2018-04-30 Tom Tromey <tom@tromey.com>
6901 * varobj.c (install_new_value): Use new_reference.
6902 * value.h (value_incref): Return void. Swap intro comment with
6904 * value.c (set_value_parent): Use new_reference.
6905 (value_incref): Return void. Update intro comment.
6906 (release_value): Use new_reference.
6907 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
6909 2018-04-30 Tom Tromey <tom@tromey.com>
6911 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
6912 * gdb_bfd.h (new_bfd_ref): Remove.
6913 (gdb_bfd_open): Update comment.
6914 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
6915 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
6916 (gdb_bfd_fdopenr): Use new_reference.
6917 * exec.c (exec_file_attach): Use new_reference.
6919 2018-04-30 Tom Tromey <tom@tromey.com>
6921 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
6924 2018-04-30 Tom Tromey <tom@tromey.com>
6926 * jit.c (jit_read_code_entry): Use type_align.
6927 * i386-tdep.c (i386_gdbarch_init): Don't call
6928 set_gdbarch_long_long_align_bit.
6929 * gdbarch.sh: Remove long_long_align_bit.
6930 * gdbarch.c, gdbarch.h: Rebuild.
6931 * arc-tdep.c (arc_type_align): New function.
6932 (arc_gdbarch_init): Use arc_type_align. Don't call
6933 set_gdbarch_long_long_align_bit.
6935 2018-04-30 Tom Tromey <tom@tromey.com>
6937 * rust-lang.c (rust_type_alignment): Remove.
6938 (rust_composite_type): Use type_align.
6940 2018-04-30 Tom Tromey <tom@tromey.com>
6942 * NEWS: Mention Type.align.
6943 * python/py-type.c (typy_get_alignof): New function.
6944 (type_object_getset): Add "alignof".
6946 2018-04-30 Tom Tromey <tom@tromey.com>
6950 * std-operator.def (UNOP_ALIGNOF): New operator.
6951 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
6953 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
6954 * c-lang.c (c_op_print_tab): Add alignof.
6955 * c-exp.y (ALIGNOF): New token.
6956 (exp): Add "ALIGNOF" production.
6957 (ident_tokens): Add _Alignof and alignof.
6959 2018-04-30 Tom Tromey <tom@tromey.com>
6961 * i386-tdep.c (i386_type_align): New function.
6962 (i386_gdbarch_init): Update.
6963 * gdbarch.sh (type_align): New method.
6964 * gdbarch.c, gdbarch.h: Rebuild.
6965 * arch-utils.h (default_type_align): Declare.
6966 * arch-utils.c (default_type_align): New function.
6967 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
6968 (struct type) <align_log2>: New field.
6969 <instance_flags>: Now a bitfield.
6970 (TYPE_RAW_ALIGN): New macro.
6971 (type_align, type_raw_align, set_type_align): Declare.
6972 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
6974 * dwarf2read.c (quirk_rust_enum): Set type alignment.
6975 (get_alignment, maybe_set_alignment): New functions.
6976 (read_structure_type, read_enumeration_type, read_array_type)
6977 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
6978 (read_subrange_type, read_base_type): Set type alignment.
6980 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
6982 * dwarf2read.c (read_index_from_section): Use bool.
6984 2018-04-29 Fabian Groffen <grobian@gentoo.org>
6987 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
6990 2018-04-29 John Reiser <jreiser@BitWagon.com>
6993 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
6994 last step, and do it atomically.
6996 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
6998 * compile/compile-c-types.c (convert_int, convert_float):
7001 2018-04-27 Tom Tromey <tom@tromey.com>
7004 * rust-lang.c (rust_inclusive_range_type_p): New function.
7005 (rust_range): Handle inclusive ranges.
7006 (rust_compute_range): Likewise.
7007 * rust-exp.y (struct rust_op) <inclusive>: New field.
7008 (DOTDOTEQ): New constant.
7009 (range_expr): Add "..=" productions.
7010 (operator_tokens): Add "..=" token.
7011 (ast_range): Add "inclusive" parameter.
7012 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
7014 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
7016 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
7017 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
7019 * expprint.c (print_subexp_standard): Handle new bounds values.
7020 (dump_subexp_body_standard): Likewise.
7022 2018-04-27 Tom Tromey <tom@tromey.com>
7024 * configure: Rebuild.
7025 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
7026 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
7028 (class symbol_needs_eval_context): Likewise.
7029 * dwarf2read.c (mock_mapped_index::symbol_name_count)
7030 (mock_mapped_index::symbol_name_at): Use "override". Remove
7032 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
7034 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
7035 * aarch64-tdep.c (instruction_reader::read): Use "override".
7036 (instruction_reader_test::read): Likewise.
7037 * arm-tdep.c (instruction_reader::read): Use "override".
7038 (instruction_reader_thumb::read): Likewise.
7040 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
7043 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
7044 instead of remote_send.
7045 (remote_send): Remove.
7047 2018-04-26 Pedro Alves <palves@redhat.com>
7049 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
7050 find_function_start_sal instead of find_pc_line.
7052 2018-04-26 Pedro Alves <palves@redhat.com>
7054 * breakpoint.c (set_breakpoint_location_function): Handle
7056 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
7057 * elfread.c (elf_symtab_read): Give data symbols with
7058 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
7059 (elf_rel_plt_read): Update comment.
7060 * linespec.c (convert_linespec_to_sals): Handle
7062 (minsym_found): Handle mst_data_gnu_ifunc.
7063 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
7064 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
7065 * parse.c (find_minsym_type_and_address): Handle
7067 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
7068 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
7069 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
7071 <mst_data_gnu_ifunc>: New enumerator.
7073 2018-04-26 Pedro Alves <palves@redhat.com>
7075 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
7076 (lookup_minimal_symbol_by_pc_section): ... this. Replace
7077 'want_trampoline' parameter by a lookup_msym_prefer parameter.
7079 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
7080 (lookup_minimal_symbol_by_pc): Adjust.
7081 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
7082 (lookup_solib_trampoline_symbol_by_pc): Adjust.
7083 * minsyms.h (lookup_msym_prefer): New enum.
7084 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
7085 parameter by a lookup_msym_prefer parameter.
7087 2018-04-26 Pedro Alves <palves@redhat.com>
7089 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
7090 ends in "@plt" instead of looking at the symbol's section.
7092 2018-04-26 Pedro Alves <palves@redhat.com>
7094 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
7096 (find_pc_partial_function_gnu_ifunc): Rename to ...
7097 (find_pc_partial_function): ... this, and remove references to
7099 (find_pc_partial_function): Delete old implementation.
7100 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
7102 2018-04-26 Pedro Alves <palves@redhat.com>
7104 * linespec.c (struct bound_minimal_symbol_search_key): New.
7105 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
7106 skip first line if we found a GNU ifunc minimal symbol by name.
7107 (compare_msymbols): Change parameters to work with a destructured
7109 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
7112 2018-04-26 Pedro Alves <palves@redhat.com>
7114 * breakpoint.c (set_breakpoint_location_function): Don't resolve
7115 ifunc targets here. Instead, if we have an ifunc minsym, use its
7117 (add_location_to_breakpoint): Store the minsym and the objfile in
7118 the breakpoint location.
7119 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
7120 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
7121 Record the minsym in the sal.
7122 * symtab.h (symtab_and_line) <msymbol>: New field.
7124 2018-04-26 Pedro Alves <palves@redhat.com>
7126 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
7127 unless we actually resolved the ifunc.
7129 2018-04-26 Pedro Alves <palves@redhat.com>
7131 * c-exp.y (variable production): Prefer ifunc minsyms over
7132 regular function symbols.
7133 * symtab.c (find_gnu_ifunc): New function.
7134 * minsyms.h (lookup_msym_prefer): New enum.
7135 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
7136 parameter by a lookup_msym_prefer parameter.
7137 * symtab.h (find_gnu_ifunc): New declaration.
7139 2018-04-26 Pedro Alves <palves@redhat.com>
7141 * blockframe.c (find_gnu_ifunc_target_type): New function.
7142 (find_function_type): New.
7143 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
7144 return a value with a memory address.
7145 (eval_call): For calls to GNU ifunc functions, try to find the
7146 type of the target function from the type that the resolver
7148 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
7150 * infcall.c (find_function_return_type): Delete.
7151 (find_function_addr): Add 'function_type' parameter. For calls to
7152 GNU ifunc functions, try to find the type of the target function
7153 from the type that the resolver returns, and return it via
7155 (call_function_by_hand_dummy): Adjust to use the function type
7156 returned by find_function_addr.
7157 (find_function_addr): Add 'function_type' parameter and move
7159 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
7162 2018-04-26 Pedro Alves <palves@redhat.com>
7164 * c-exp.y (variable production): Skip finding an alias for ifunc
7167 2018-04-26 Pedro Alves <palves@redhat.com>
7169 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
7171 2018-04-25 Pedro Alves <palves@redhat.com>
7173 * infcmd.c (kill_command): Print the pid as string, not the whole
7174 thread's ptid. Add comment. s/has been killed/killed/ in output
7176 * remote.c (remote_detach_1): Print the pid as string, not the
7177 whole thread's ptid.
7179 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7180 Sergio Durigan Junior <sergiodj@redhat.com>
7181 Pedro Alves <palves@redhat.com>
7183 * infcmd.c (kill_command): Print message when inferior has
7185 * inferior.c (print_inferior_events): Remove 'static'. Set as
7187 (add_inferior): Improve message printed when
7188 'print_inferior_events' is on.
7189 (exit_inferior): Remove message printed when
7190 'print_inferior_events' is on.
7191 (detach_inferior): Improve message printed when
7192 'print_inferior_events' is on.
7193 (initialize_inferiors): Use 'add_inferior_silent' to set
7194 'current_inferior_'.
7195 * inferior.h (print_inferior_events): Declare here as
7197 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
7198 '[Detaching...]' messages when 'print_inferior_events' is on.
7199 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
7200 as prefix/suffix for messages. Remove periods. Fix erroneous
7201 'Detaching after fork from child...', replace it by '... from
7203 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
7204 prefix/suffix when printing 'Detaching...' messages. Print
7205 them when 'print_inferior_events' is on.
7206 * remote.c (remote_detach_1): Print message when detaching
7207 from inferior and '!is_fork_parent'.
7209 2018-04-24 Tom Tromey <tom@tromey.com>
7211 * cli-out.h: Reindent.
7213 2018-04-24 Tom Tromey <tom@tromey.com>
7215 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
7216 (cli_ui_out::do_field_string): Use fputs_filtered.
7217 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
7219 2018-04-23 Tom Tromey <tom@tromey.com>
7221 * guile/scm-frame.c (gdbscm_frame_read_var): Use
7222 gdb::unique_xmalloc_ptr.
7224 2018-04-23 Tom Tromey <tom@tromey.com>
7226 * configure: Rebuild.
7228 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
7231 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
7232 prepare_for_testing. Set normal_bp to r_debug_state if target
7235 2018-04-21 Pedro Alves <palves@redhat.com>
7236 Rajendra SY <rajendra.sy@gmail.com>
7238 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
7239 * remote.c (extended_remote_attach): In all-stop mode, mark the
7240 thread as executing.
7242 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7244 * thread.c (thread_apply_all_command): Fix comment.
7245 (thread_command): Fix comment.
7247 2018-04-10 Alan Hayward <alan.hayward@arm.com>
7249 * common/tdesc.h (tdesc_create_feature): Remove xml filename
7251 * features/aarch64-core.c (create_feature_aarch64_core):
7253 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
7255 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
7257 * features/i386/32bit-avx512.c
7258 (create_feature_i386_32bit_avx512): Likewise.
7259 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
7261 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
7263 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
7265 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
7267 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
7269 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
7271 * features/i386/64bit-avx512.c
7272 (create_feature_i386_64bit_avx512): Likewise.
7273 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
7275 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
7277 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
7279 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
7281 * features/i386/64bit-segments.c
7282 (create_feature_i386_64bit_segments): Likewise.
7283 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
7285 * features/i386/x32-core.c
7286 (create_feature_i386_x32_core): Likewise.
7287 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
7288 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
7289 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
7290 * target-descriptions.c: In generated code, don't pass xml
7293 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7295 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
7296 (print_xml_feature::visit_post): Likewise.
7297 (print_xml_feature::visit): Likewise.
7298 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
7299 (print_xml_feature): Add new class.
7300 * regformats/regdat.sh: Null xmltarget on feature targets.
7301 * target-descriptions.c (struct target_desc): Add xmltarget.
7302 (maintenance_check_tdesc_xml_convert): Add unittest function.
7303 (tdesc_get_features_xml): Add function to get xml.
7304 (maintenance_check_xml_descriptions): Test xml generation.
7305 * xml-tdesc.c (string_read_description_xml): Add function.
7306 * xml-tdesc.h (string_read_description_xml): Add declaration.
7308 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7310 * features/Makefile: Add feature marker to targets with new style
7311 target descriptions.
7312 * regformats/aarch64.dat: Regenerate.
7313 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
7314 * regformats/i386/amd64-avx-linux.dat: Likewise.
7315 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
7316 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
7317 * regformats/i386/amd64-linux.dat: Likewise.
7318 * regformats/i386/amd64-mpx-linux.dat: Likewise.
7319 * regformats/i386/amd64.dat: Likewise.
7320 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
7321 * regformats/i386/i386-avx-linux.dat: Likewise.
7322 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
7323 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
7324 * regformats/i386/i386-linux.dat: Likewise.
7325 * regformats/i386/i386-mmx-linux.dat: Likewise.
7326 * regformats/i386/i386-mpx-linux.dat: Likewise.
7327 * regformats/i386/i386.dat: Likewise.
7328 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
7329 * regformats/i386/x32-avx-linux.dat: Likewise.
7330 * regformats/i386/x32-linux.dat: Likewise.
7331 * regformats/tic6x-c62x-linux.dat: Likewise.
7332 * regformats/tic6x-c64x-linux.dat: Likewise.
7333 * regformats/tic6x-c64xp-linux.dat: Likewise.
7334 * regformats/regdat.sh: Parse feature marker.
7336 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7338 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
7339 (tdesc_osabi_name): Likewise.
7340 * target-descriptions.c (tdesc_architecture_name): Add new
7342 (tdesc_osabi_name): Likewise.
7344 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7346 * common/tdesc.c (tdesc_predefined_type): Move to here.
7347 (tdesc_named_type): Likewise.
7348 (tdesc_create_vector): Likewise.
7349 (tdesc_create_struct): Likewise.
7350 (tdesc_set_struct_size): Likewise.
7351 (tdesc_create_union): Likewise.
7352 (tdesc_create_flags): Likewise.
7353 (tdesc_create_enum): Likewise.
7354 (tdesc_add_field): Likewise.
7355 (tdesc_add_typed_bitfield): Likewise.
7356 (tdesc_add_bitfield): Likewise.
7357 (tdesc_add_flag): Likewise.
7358 (tdesc_add_enum_value): Likewise.
7359 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
7360 (struct tdesc_type_vector): Likewise.
7361 (struct tdesc_type_field): Likewise.
7362 (struct tdesc_type_with_fields): Likewise.
7363 (tdesc_create_enum): Add declaration.
7364 (tdesc_add_typed_bitfield): Likewise.
7365 (tdesc_add_enum_value): Likewise.
7366 * target-descriptions.c (tdesc_type_field): Move from here.
7367 (tdesc_type_builtin): Likewise.
7368 (tdesc_type_vector): Likewise.
7369 (tdesc_type_with_fields): Likewise.
7370 (tdesc_predefined_types): Likewise.
7371 (tdesc_named_type): Likewise.
7372 (tdesc_create_vector): Likewise.
7373 (tdesc_create_struct): Likewise.
7374 (tdesc_set_struct_size): Likewise.
7375 (tdesc_create_union): Likewise.
7376 (tdesc_create_flags): Likewise.
7377 (tdesc_create_enum): Likewise.
7378 (tdesc_add_field): Likewise.
7379 (tdesc_add_typed_bitfield): Likewise.
7380 (tdesc_add_bitfield): Likewise.
7381 (tdesc_add_flag): Likewise.
7382 (tdesc_add_enum_value): Likewise.
7383 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
7384 (tdesc_add_typed_bitfield): Likewise.
7385 (tdesc_add_enum_value): Likewise.
7387 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7389 * common/tdesc.c (tdesc_feature::accept): Move to here.
7390 (tdesc_feature::operator==): Likewise.
7391 (tdesc_create_reg): Likewise.
7392 * common/tdesc.h (tdesc_type_kind): Likewise.
7393 (struct tdesc_type): Likewise.
7394 (struct tdesc_feature): Likewise.
7395 * regformats/regdat.sh: Create a feature.
7396 * target-descriptions.c (tdesc_type_kind): Move from here.
7397 (tdesc_type): Likewise.
7398 (tdesc_type_up): Likewise.
7399 (tdesc_feature): Likewise.
7400 (tdesc_create_reg): Likewise.
7402 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7404 * Makefile.in: Add arch/tdesc.c
7405 * common/tdesc.c: New file.
7406 * common/tdesc.h (tdesc_element_visitor): Move to here.
7407 (tdesc_element): Likewise.
7408 (tdesc_reg): Likewise.
7409 (tdesc_reg_up): Likewise.
7410 * regformats/regdef.h (reg): Add offset to constructors.
7411 * target-descriptions.c (tdesc_element_visitor): Move from here.
7412 (tdesc_element): Likewise.
7413 (tdesc_reg): Likewise.
7414 (tdesc_reg_up): Likewise.
7416 2018-04-17 Tom Tromey <tom@tromey.com>
7418 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
7421 2018-04-17 Tom Tromey <tom@tromey.com>
7423 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
7425 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7427 * symtab.c (print_symbol_info): Skip printing filename and line
7428 number when `last' is NULL.
7429 (symtab_symbol_info): Use empty string instead of NULL for first
7430 invocation of print_symbol_info.
7431 (rbreak_command): Pass NULL to `last' parameter of
7434 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
7436 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
7439 2018-04-16 Pedro Alves <palves@redhat.com>
7441 * MAINTAINERS (sh): Remove.
7442 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
7443 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
7444 (ALLDEPFILES): Remove sh64-tdep.c.
7445 * NEWS: Mentions that support for SH-5/SH64 is removed.
7446 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
7447 (sh*-*-openbsd*): Ditto.
7448 (sh64-*-elf*): Remove.
7450 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
7451 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
7452 * sh-tdep.c: No longer include "sh64-tdep.h".
7453 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
7454 * sh64-tdep.c, sh64-tdep.h: Remove files.
7456 2018-04-16 Pedro Alves <palves@redhat.com>
7458 * MAINTAINERS: Remove m88k.
7459 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
7460 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
7461 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
7462 * NEWS: Mention that support for m88k was removed.
7463 * configure.host (m88*-*-*): Remove support.
7464 * configure.nat (m88k-*-*): Remove support.
7465 * configure.tgt (m88*-*-openbsd*): Remove.
7466 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
7468 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
7470 * configure.tgt (x86_tobjs): New variable.
7471 (amd64_tobjs, i386_tobjs): Use it.
7473 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7475 * symtab.c (print_symbol_info): Precede the symbol definition by
7476 the line number when available.
7477 * NEWS: Advertise this enhancement.
7479 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7481 * NEWS (New options): announce set/show record btrace cpu.
7482 * btrace.c: Include record-btrace.h.
7483 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
7484 the vendor is unknown.
7485 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
7486 Maybe overwrite the btrace configuration's cpu.
7487 (btrace_compute_ftrace): Add cpu parameter. Update callers.
7488 (btrace_fetch): Add cpu parameter. Update callers.
7489 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
7490 Maybe overwrite the btrace configuration's cpu. Skip enabling
7491 errata workarounds if the vendor is unknown.
7492 * python/py-record-btrace.c: Include record-btrace.h.
7493 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
7494 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
7495 * record-btrace.c (record_btrace_cpu_state_kind): New.
7496 (record_btrace_cpu): New.
7497 (set_record_btrace_cpu_cmdlist): New.
7498 (record_btrace_get_cpu): New.
7499 (require_btrace_thread, record_btrace_info)
7500 (record_btrace_resume_thread): Call record_btrace_get_cpu.
7501 (cmd_set_record_btrace_cpu_none): New.
7502 (cmd_set_record_btrace_cpu_auto): New.
7503 (cmd_set_record_btrace_cpu): New.
7504 (cmd_show_record_btrace_cpu): New.
7505 (_initialize_record_btrace): Initialize set/show record btrace cpu
7507 * record-btrace.h (record_btrace_get_cpu): New.
7509 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7511 * record.c (set_record_command): Fix typo in message.
7513 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7515 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
7517 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7519 * infrun.c (process_event_stop_test): Call
7520 gdbarch_in_indirect_branch_thunk.
7521 * gdbarch.sh (in_indirect_branch_thunk): New.
7522 * gdbarch.c: Regenerated.
7523 * gdbarch.h: Regenerated.
7526 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
7527 (HFILES_NO_SRCDIR): Add x86-tdep.h.
7528 (ALLDEPFILES): Add x86-tdep.c.
7529 * arch-utils.h (default_in_indirect_branch_thunk): New.
7530 * arch-utils.c (default_in_indirect_branch_thunk): New.
7531 * i386-tdep: Include x86-tdep.h.
7532 (i386_in_indirect_branch_thunk): New.
7533 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
7535 * amd64-tdep: Include x86-tdep.h.
7536 (amd64_in_indirect_branch_thunk): New.
7537 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
7539 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7542 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
7543 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
7544 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
7547 2018-04-12 Tom Tromey <tom@tromey.com>
7549 * rust-lang.c (rust_print_struct_def): Remove univariant code.
7550 (rust_evaluate_subexp): Likewise.
7552 2018-04-12 Pedro Alves <palves@redhat.com>
7554 * procfs.c (procfs_detach): Make forward declaration's prototype
7555 match definition's protototype.
7556 (proc_get_LDT_entry): Remove stale do_cleanups call.
7558 2018-04-12 Pedro Alves <palves@redhat.com>
7560 * target.h (target_ops::to_has_exited): Delete.
7561 (target_has_exited): Delete.
7562 * target-delegates.c: Regenerate.
7564 2018-04-11 Pedro Alves <palves@redhat.com>
7566 * target.c (fileio_fh_t::t): Add comment.
7567 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7568 (target_fileio_close): Handle a NULL target.
7569 (invalidate_fileio_fh): New.
7570 (target_close): Call it.
7571 * remote.c (remote_hostio_send_command): No longer check whether
7572 remote_desc is open.
7574 2018-04-11 Pedro Alves <palves@redhat.com>
7576 * target.c (fileio_fh_t): Make it a named struct instead of a
7578 (fileio_fh_t::is_closed): New method.
7579 (DEF_VEC_O (fileio_fh_t)): Remove.
7580 (fileio_fhandles): Now a std::vector.
7581 (is_closed_fileio_fh): Delete.
7582 (acquire_fileio_fd): Adjust. Rename parameters.
7583 (release_fileio_fd): Adjust.
7584 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
7585 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7586 (target_fileio_close): Adjust.
7588 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
7590 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
7593 2018-04-10 Pedro Alves <palves@redhat.com>
7595 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
7596 (scoped_finish_thread_state): New class.
7597 * infcmd.c (run_command_1): Use it instead of finish_thread_state
7599 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
7600 (fetch_inferior_event, normal_stop): Likewise.
7601 * thread.c (finish_thread_state_cleanup): Delete.
7603 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7604 Pedro Alves <palves@redhat.com>
7606 * value.c: Include "selftest.h" and "common/array-view.h".
7607 (struct range) <operator ==>: New.
7608 (test_ranges_contain): New.
7609 (check_ranges_vector): New.
7610 (test_insert_into_bit_range_vector): New.
7611 (_initialize_values): Register selftests.
7612 * common/array-view.h (operator==, operator!=): New.
7614 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7616 * common/gdb_vecs.h (unordered_remove): Add overload that takes
7618 * inline-frame.c: Include <algorithm>.
7619 (struct inline_state): Add constructor.
7620 (inline_state_s): Remove.
7621 (DEF_VEC_O(inline_state_s)): Remove.
7622 (inline_states): Change type to std::vector.
7623 (find_inline_frame_state): Adjust to std::vector.
7624 (allocate_inline_frame_state): Remove.
7625 (clear_inline_frame_state): Adjust to std::vector.
7626 (skip_inline_frames): Adjust to std::vector.
7628 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7630 * tracepoint.h (struct trace_state_variable): Add constructor.
7631 <name>: Change type to std::string.
7632 * tracepoint.c (tsv_s): Remove.
7633 (DEF_VEC_O(tsv_s)): Remove.
7634 (tvariables): Change to std::vector.
7635 (create_trace_state_variable): Adjust to std::vector.
7636 (find_trace_state_variable): Likewise.
7637 (find_trace_state_variable_by_number): Likewise.
7638 (delete_trace_state_variable): Likewise.
7639 (trace_variable_command): Adjust to std::string.
7640 (delete_trace_variable_command): Likewise.
7641 (tvariables_info_1): Adjust to std::vector.
7642 (save_trace_state_variables): Likewise.
7643 (start_tracing): Likewise.
7644 (merge_uploaded_trace_state_variables): Adjust to std::vector
7646 * target.h (struct target_ops)
7647 <to_download_trace_state_variable>: Pass reference to
7648 trace_state_variable.
7649 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
7650 * target-delegates.c: Re-generate.
7651 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
7652 (mi_tsv_deleted): Likewise.
7653 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
7654 * remote.c (remote_download_trace_state_variable): Change
7655 pointer to reference and adjust.
7656 * make-target-delegates (parse_argtypes): Handle references.
7657 (write_function_header): Likewise.
7658 (munge_type): Likewise.
7660 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7662 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7663 string_view-selftests.c.
7664 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
7666 * unittests/basic_string_view/cons/char/1.cc: Likewise.
7667 * unittests/basic_string_view/cons/char/2.cc: Likewise.
7668 * unittests/basic_string_view/cons/char/3.cc: Likewise.
7669 * unittests/basic_string_view/element_access/char/1.cc:
7671 * unittests/basic_string_view/element_access/char/empty.cc:
7673 * unittests/basic_string_view/element_access/char/front_back.cc:
7675 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
7676 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
7678 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
7680 * unittests/basic_string_view/modifiers/swap/char/1.cc:
7682 * unittests/basic_string_view/operations/compare/char/1.cc:
7684 * unittests/basic_string_view/operations/compare/char/13650.cc:
7686 * unittests/basic_string_view/operations/copy/char/1.cc:
7688 * unittests/basic_string_view/operations/data/char/1.cc:
7690 * unittests/basic_string_view/operations/find/char/1.cc:
7692 * unittests/basic_string_view/operations/find/char/2.cc:
7694 * unittests/basic_string_view/operations/find/char/3.cc:
7696 * unittests/basic_string_view/operations/find/char/4.cc:
7698 * unittests/basic_string_view/operations/rfind/char/1.cc:
7700 * unittests/basic_string_view/operations/rfind/char/2.cc:
7702 * unittests/basic_string_view/operations/rfind/char/3.cc:
7704 * unittests/basic_string_view/operations/substr/char/1.cc:
7706 * unittests/basic_string_view/operators/char/2.cc: Likewise.
7707 * unittests/string_view-selftests.c: New file.
7709 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7711 * unittests/basic_string_view/capacity/1.cc: New file.
7712 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
7713 * unittests/basic_string_view/cons/char/1.cc: New file.
7714 * unittests/basic_string_view/cons/char/2.cc: New file.
7715 * unittests/basic_string_view/cons/char/3.cc: New file.
7716 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
7717 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
7718 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
7719 * unittests/basic_string_view/element_access/char/1.cc: New file.
7720 * unittests/basic_string_view/element_access/char/2.cc: New file.
7721 * unittests/basic_string_view/element_access/char/empty.cc: New file.
7722 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
7723 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
7724 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
7725 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
7726 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
7727 * unittests/basic_string_view/include.cc: New file.
7728 * unittests/basic_string_view/inserters/char/1.cc: New file.
7729 * unittests/basic_string_view/inserters/char/2.cc: New file.
7730 * unittests/basic_string_view/inserters/char/3.cc: New file.
7731 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
7732 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
7733 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
7734 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
7735 * unittests/basic_string_view/literals/types.cc: New file.
7736 * unittests/basic_string_view/literals/values.cc: New file.
7737 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
7738 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
7739 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
7740 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
7741 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
7742 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
7743 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
7744 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
7745 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
7746 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
7747 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
7748 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
7749 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
7750 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
7751 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
7752 * unittests/basic_string_view/operations/data/char/1.cc: New file.
7753 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
7754 * unittests/basic_string_view/operations/find/char/1.cc: New file.
7755 * unittests/basic_string_view/operations/find/char/2.cc: New file.
7756 * unittests/basic_string_view/operations/find/char/3.cc: New file.
7757 * unittests/basic_string_view/operations/find/char/4.cc: New file.
7758 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
7759 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
7760 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
7761 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
7762 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
7763 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
7764 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
7765 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
7766 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
7767 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
7768 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
7769 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
7770 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
7771 * unittests/basic_string_view/operators/char/2.cc: New file.
7772 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
7773 * unittests/basic_string_view/range_access/char/1.cc: New file.
7774 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
7775 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
7776 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
7777 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
7778 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
7779 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
7780 * unittests/basic_string_view/requirements/typedefs.cc: New file.
7781 * unittests/basic_string_view/typedefs.cc: New file.
7782 * unittests/basic_string_view/types/1.cc: New file.
7784 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7786 * common/gdb_string_view.h: Remove libstdc++ implementation
7787 details, adjust to gdb reality.
7788 * common/gdb_string_view.tcc: Likewise.
7789 * cli/cli-script.c (struct string_view): Remove.
7790 (user_args) <m_args>: Change element type to gdb::string_view.
7791 (user_args::insert_args): Adjust.
7793 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7795 * common/gdb_string_view.h: New file.
7796 * common/gdb_string_view.tcc: New file.
7798 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7800 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
7801 * configure: Re-generate.
7803 2018-04-09 Pedro Alves <palves@redhat.com>
7805 * gdbarch.sh: Include "observable.h" instead of "observer.h".
7806 (set_target_gdbarch): Call
7807 gdb::observers::architecture_changed.notify instead of
7808 observer_notify_architecture_changed.
7810 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7812 * tracepoint.c (struct current_traceframe_cleanup): Remove.
7813 (do_restore_current_traceframe_cleanup): Remove.
7814 (restore_current_traceframe_cleanup_dtor): Remove.
7815 (make_cleanup_restore_current_traceframe): Remove.
7816 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
7818 * tracepoint.h (struct scoped_restore_current_traceframe): New.
7819 * infrun.c (fetch_inferior_event): Use
7820 scoped_restore_current_traceframe.
7822 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7824 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
7826 <n_allocated_type_units>: Remove.
7827 <all_type_units>: Change to std::vector.
7828 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
7829 to std::vector change.
7830 (dwarf2_per_objfile::get_cutu): Likewise.
7831 (dwarf2_per_objfile::get_tu): Likewise.
7832 (create_signatured_type_table_from_index): Likewise.
7833 (create_signatured_type_table_from_debug_names): Likewise.
7834 (dw2_symtab_iter_next): Likewise.
7835 (dw2_print_stats): Likewise.
7836 (dw2_expand_all_symtabs): Likewise.
7837 (dw2_expand_marked_cus): Likewise.
7838 (dw2_debug_names_iterator::next): Likewise.
7839 (dwarf2_initialize_objfile): Likewise.
7840 (add_signatured_type_cu_to_table): Likewise.
7841 (create_all_type_units): Likewise.
7842 (add_type_unit): Likewise.
7843 (struct tu_abbrev_offset): Add constructor.
7844 (build_type_psymtabs_1): Adjust to std::vector change.
7845 (print_tu_stats): Likewise.
7846 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
7847 (write_debug_names): Likewise.
7849 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7851 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
7852 Make an std::vector.
7853 <n_comp_units>: Remove.
7854 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
7855 to std::vector change.
7856 (dwarf2_per_objfile::get_cutu): Likewise.
7857 (dwarf2_per_objfile::get_cu): Likewise.
7858 (create_cus_from_index): Likewise.
7859 (create_addrmap_from_index): Likewise.
7860 (create_addrmap_from_aranges): Likewise.
7861 (dwarf2_read_index): Likewise.
7862 (dw2_find_last_source_symtab): Likewise.
7863 (dw2_map_symtabs_matching_filename): Likewise.
7864 (dw2_symtab_iter_next): Likewise.
7865 (dw2_print_stats): Likewise.
7866 (dw2_expand_all_symtabs): Likewise.
7867 (dw2_expand_symtabs_with_fullname): Likewise.
7868 (dw2_expand_marked_cus): Likewise.
7869 (dw2_map_symbol_filenames): Likewise.
7870 (create_cus_from_debug_names): Likewise.
7871 (dwarf2_read_debug_names): Likewise.
7872 (dw2_debug_names_iterator::next): Likewise.
7873 (dwarf2_initialize_objfile): Likewise.
7874 (set_partial_user): Likewise.
7875 (dwarf2_build_psymtabs_hard): Likewise.
7876 (read_comp_units_from_section): Remove arguments, adjust to
7878 (create_all_comp_units): Adjust to std::vector and
7879 read_comp_units_from_section changes.
7880 (dwarf2_find_containing_comp_unit): Adjust to std::vector
7882 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
7883 (psyms_seen_size): Likewise.
7884 (write_gdbindex): Likewise.
7885 (write_debug_names): Likewise.
7887 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7889 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
7890 with dwarf2_per_objfile.
7891 (create_cus_from_index): Likewise.
7892 (create_signatured_type_table_from_index): Likewise.
7893 (dwarf2_read_index): Likewise.
7894 (dwarf2_initialize_objfile): Likewise.
7895 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
7896 per_cu rather than get_dwarf2_per_objfile.
7898 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7900 * dwarf2read.h (struct signatured_type): Forward declare.
7901 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
7903 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
7904 (dw2_get_cutu): ...this.
7905 (dwarf2_per_objfile::get_cu): Rename from...
7906 (dw2_get_cu): ...this.
7907 (dwarf2_per_objfile::get_tu): New.
7908 (create_addrmap_from_index): Adjust.
7909 (create_addrmap_from_aranges): Adjust.
7910 (dw2_find_last_source_symtab): Adjust.
7911 (dw2_map_symtabs_matching_filename): Adjust.
7912 (dw2_symtab_iter_next): Adjust.
7913 (dw2_print_stats): Adjust.
7914 (dw2_expand_all_symtabs): Adjust.
7915 (dw2_expand_symtabs_with_fullname): Adjust.
7916 (dw2_expand_marked_cus): Adjust.
7917 (dw_expand_symtabs_matching_file_matcher): Adjust.
7918 (dw2_map_symbol_filenames): Adjust.
7919 (dw2_debug_names_iterator::next): Adjust.
7920 (dwarf2_initialize_objfile): Adjust.
7921 (set_partial_user): Adjust.
7922 (dwarf2_build_psymtabs_hard): Adjust.
7924 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7926 * dwarf2read.c (create_signatured_type_table_from_debug_names):
7927 Remove unused variables.
7928 (dw2_map_symtabs_matching_filename): Likewise.
7929 (dwarf2_record_block_ranges): Likewise.
7930 (dwarf2_read_addr_index): Likewise.
7931 (follow_die_offset): Likewise.
7933 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7935 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
7936 to symbol_file_add_main.
7938 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7941 * mi/mi-console.c (do_fputc_async_safe): New.
7942 (mi_console_file::write_async_safe): New.
7943 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
7944 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
7946 * ui-file.c (ui_file::putstrn): Adjust call to
7947 fputstrn_unfiltered.
7948 * utils.c (printchar): Replace do_fputs and do_fprintf
7949 parameters by do_fputc.
7950 (fputstr_filtered): Adjust call to printchar.
7951 (fputstr_unfiltered): Likewise.
7952 (fputstrn_filtered): Likewise.
7953 (fputstrn_unfiltered): Add do_fputc parameter, pass to
7955 * utils.h (do_fputc_ftype): New typedef.
7956 (fputstrn_unfiltered): Add do_fputc parameter.
7958 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7960 * regformats/i386/i386-avx.dat: Remove.
7962 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7965 * amd64-tdep.c (amd64_none_init_abi): New function.
7966 (amd64_x32_none_init_abi): New function.
7967 (_initialize_amd64_tdep): Register handlers for x86-64 and
7968 x64_32 with GDB_OSABI_NONE.
7969 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
7970 GDB_OSABI_NONE osabi.
7972 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7975 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
7977 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
7978 * osabi.c (gdb_osabi_names): Add "unknown" entry.
7980 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7982 * common/byte-vector.h (char_vector): New type.
7983 * target.h (target_read_alloc): Return
7984 gdb::optional<byte_vector>.
7985 (target_read_stralloc): Return gdb::optional<char_vector>.
7986 (target_get_osdata): Return gdb::optional<char_vector>.
7987 * target.c (target_read_alloc_1): Templatize. Replacement
7988 manual memory management with vector.
7989 (target_read_alloc): Change return type, adjust.
7990 (target_read_stralloc): Change return type, adjust.
7991 (target_get_osdata): Change return type, adjust.
7992 * auxv.c (struct auxv_info) <length>: Remove.
7993 <data>: Change type to gdb::optional<byte_vector>.
7994 (auxv_inferior_data_cleanup): Free auxv_info with delete.
7995 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
7996 (target_auxv_search): Adjust.
7997 (fprint_target_auxv): Adjust.
7998 * avr-tdep.c (avr_io_reg_read_command): Adjust.
7999 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
8000 (linux_make_corefile_notes): Adjust.
8001 * osdata.c (get_osdata): Adjust.
8002 * remote.c (remote_get_threads_with_qxfer): Adjust.
8003 (remote_memory_map): Adjust.
8004 (remote_traceframe_info): Adjust.
8005 (btrace_read_config): Adjust.
8006 (remote_read_btrace): Adjust.
8007 (remote_pid_to_exec_file): Adjust.
8008 * solib-aix.c (solib_aix_get_library_list): Adjust.
8009 * solib-dsbt.c (decode_loadmap): Don't free buf.
8010 (dsbt_get_initial_loadmaps): Adjust.
8011 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
8012 * solib-target.c (solib_target_current_sos): Adjust.
8013 * tracepoint.c (sdata_make_value): Adjust.
8014 * xml-support.c (xinclude_start_include): Adjust.
8015 (xml_fetch_content_from_file): Adjust.
8016 * xml-support.h (xml_fetch_another): Change return type.
8017 (xml_fetch_content_from_file): Change return type.
8018 * xml-syscall.c (xml_init_syscalls_info): Adjust.
8019 * xml-tdesc.c (file_read_description_xml): Adjust.
8020 (fetch_available_features_from_target): Change return type.
8021 (target_fetch_description_xml): Adjust.
8022 (target_read_description_xml): Adjust.
8024 2018-04-06 Tom Tromey <tom@tromey.com>
8026 * value.c (~value): Update.
8027 (struct value) <contents>: Now unique_xmalloc_ptr.
8028 (value_contents_bits_eq, allocate_value_contents)
8029 (value_contents_raw, value_contents_all_raw)
8030 (value_contents_for_printing, value_contents_for_printing_const)
8031 (set_value_enclosing_type): Update.
8033 2018-04-06 Tom Tromey <tom@tromey.com>
8035 * value.c (range_s): Remove typedef, VEC.
8036 (struct range): Add operator<.
8037 (range_lessthan): Remove.
8038 (ranges_contain): Change type.
8040 (struct value) <unavailable, optimized_out>: Now std::vector.
8041 (value_entirely_available)
8042 (value_entirely_covered_by_range_vector)
8043 (value_entirely_unavailable, value_entirely_optimized_out):
8045 (insert_into_bit_range_vector): Change argument type.
8046 (find_first_range_overlap): Likewise.
8047 (struct ranges_and_idx, value_contents_bits_eq)
8048 (require_not_optimized_out, require_available): Update.
8049 (ranges_copy_adjusted): Change argument types.
8050 (value_optimized_out, value_copy, value_fetch_lazy): Update.
8052 2018-04-06 Tom Tromey <tom@tromey.com>
8054 * value.c (~value): Update.
8055 (struct value) <parent>: Now a value_ref_ptr.
8056 (value_parent, set_value_parent, value_address, value_copy):
8059 2018-04-06 Tom Tromey <tom@tromey.com>
8061 * value.c (struct value): Add constructor, destructor, and member
8063 (allocate_value_lazy, value_decref): Update.
8065 2018-04-06 Tom Tromey <tom@tromey.com>
8067 * value.c (struct value) <released, next>: Remove.
8068 (all_values): Now a std::vector.
8069 (allocate_value_lazy): Update.
8070 (value_next): Remove.
8071 (value_mark, value_free_to_mark, release_value)
8072 (value_release_to_mark): Update.
8074 2018-04-06 Tom Tromey <tom@tromey.com>
8076 * value.h (fetch_subexp_value, value_release_to_mark): Update.
8077 (free_value_chain): Remove.
8078 * value.c (free_value_chain): Remove.
8079 (value_release_to_mark): Return a std::vector.
8080 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
8082 (check_condition): Update.
8083 * eval.c (fetch_subexp_value): Change "val_chain" to a
8085 * breakpoint.c (update_watchpoint): Update.
8086 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
8088 2018-04-06 Tom Tromey <tom@tromey.com>
8090 * value.h (free_all_values): Remove.
8091 * value.c (free_all_values): Remove.
8093 2018-04-06 Tom Tromey <tom@tromey.com>
8095 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
8096 (value_history_chain, value_history_count): Remove.
8097 (value_history): New global.
8098 (record_latest_value, access_value_history, show_values)
8099 (preserve_values): Update.
8101 2018-04-06 Tom Tromey <tom@tromey.com>
8103 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
8104 * varobj.c (varobj_set_display_format, varobj_set_value)
8105 (install_default_visualizer, construct_visualizer)
8106 (install_new_value, ~varobj, varobj_get_value_type)
8107 (my_value_of_variable, varobj_editable_p): Update.
8108 * c-varobj.c (c_describe_child, c_value_of_variable)
8109 (cplus_number_of_children, cplus_describe_child): Update.
8110 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
8111 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
8112 (ada_value_of_variable, ada_value_is_changeable_p): Update.
8114 2018-04-06 Tom Tromey <tom@tromey.com>
8116 * printcmd.c (last_examine_address): Change type to
8118 (do_examine, x_command): Update.
8120 2018-04-06 Tom Tromey <tom@tromey.com>
8122 * value.c (release_value): Update.
8123 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
8124 (struct bpstats) <val>: Now a value_ref_ptr.
8125 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
8126 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
8127 (~watchpoint, print_it_watchpoint, watch_command_1)
8128 (invalidate_bp_value_on_memory_change): Update.
8130 2018-04-06 Tom Tromey <tom@tromey.com>
8132 * varobj.c (varobj_clear_saved_item)
8133 (update_dynamic_varobj_children, install_new_value, ~varobj):
8135 * value.h (value_incref): Move declaration earlier.
8136 (value_decref): Rename from value_free.
8137 (struct value_ref_policy): New.
8138 (value_ref_ptr): New typedef.
8139 (struct value_deleter): Remove.
8140 (gdb_value_up): Remove typedef.
8141 (release_value): Change return type.
8142 (release_value_or_incref): Remove.
8143 * value.c (set_value_parent): Update.
8144 (value_incref): Change return type.
8145 (value_decref): Rename from value_free.
8146 (value_free_to_mark, free_all_values, free_value_chain): Update.
8147 (release_value): Return value_ref_ptr.
8148 (release_value_or_incref): Remove.
8149 (record_latest_value, set_internalvar, clear_internalvar):
8151 * stack.c (info_frame_command): Don't call value_free.
8152 * python/py-value.c (valpy_dealloc, valpy_new)
8153 (value_to_value_object): Update.
8154 * printcmd.c (do_examine): Update.
8155 * opencl-lang.c (lval_func_free_closure): Update.
8156 * mi/mi-main.c (register_changed_p): Don't call value_free.
8157 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
8158 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
8159 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
8161 * guile/scm-value.c (vlscm_free_value_smob)
8162 (vlscm_scm_from_value): Update.
8163 * frame.c (frame_register_unwind, frame_unwind_register_signed)
8164 (frame_unwind_register_unsigned, get_frame_register_bytes)
8165 (put_frame_register_bytes): Don't call value_free.
8166 * findvar.c (address_from_register): Don't call value_free.
8167 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
8168 * dwarf2loc.c (entry_data_value_free_closure)
8169 (value_of_dwarf_reg_entry, free_pieced_value_closure)
8170 (dwarf2_evaluate_loc_desc_full): Update.
8171 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
8172 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
8173 (~watchpoint, watch_command_1)
8174 (invalidate_bp_value_on_memory_change): Update.
8175 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
8177 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
8180 * warning.m4: Add -Wno-error=deprecated-register.
8181 * configure: Re-generate.
8183 2018-04-05 Tom Tromey <tom@tromey.com>
8185 * linespec.h: Remove include of "vec.h".
8187 2018-04-05 Tom Tromey <tom@tromey.com>
8189 * linespec.c (typep): Remove typedef.
8190 (find_methods, find_superclass_methods): Take a std::vector.
8191 (find_method): Use std::vector.
8193 2018-04-05 Tom Tromey <tom@tromey.com>
8195 * utils.c (compare_strings): Remove.
8196 * utils.h (compare_strings): Remove.
8197 * objc-lang.h (find_imps): Update.
8198 * objc-lang.c (find_methods): Take a std::vector.
8199 (uniquify_strings, find_imps): Likewise.
8200 * linespec.c (find_methods): Take a std::vector.
8201 (decode_objc): Use std::vector.
8202 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
8204 (find_method, find_function_symbols): Use std::vector.
8206 2018-04-05 Tom Tromey <tom@tromey.com>
8208 * completer.c (completion_tracker::completion_tracker): Remove
8210 (completion_tracker::discard_completions): Likewise.
8211 * breakpoint.c (ambiguous_names_p): Remove cast.
8212 * ada-lang.c (_initialize_ada_language): Remove cast.
8213 * utils.h (streq): Update.
8214 (streq_hash): Add new declaration.
8215 * utils.c (streq): Return bool.
8216 (streq_hash): New function.
8218 2018-04-05 Tom Tromey <tom@tromey.com>
8220 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
8221 Remove a string copy.
8223 2018-04-05 Tom Tromey <tom@tromey.com>
8225 * linespec.c (filter_results): Use std::vector.
8226 (decode_line_2, decode_line_full): Update.
8228 2018-04-05 Tom Tromey <tom@tromey.com>
8230 * linespec.c (canonical_to_fullform): Return std::string.
8231 (filter_results): Update.
8232 (struct decode_line_2_item): Add constructor.
8233 <fullform, displayform>: Now std::string.
8234 (decode_line_2_compare_items): Now a std::sort comparator.
8235 (decode_line_2): Update.
8237 2018-04-05 Tom Tromey <tom@tromey.com>
8239 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
8240 (unexpected_linespec_error): Update.
8241 (linespec_parse_basic, parse_linespec): Update.
8243 2018-04-05 Tom Tromey <tom@tromey.com>
8245 * linespec.c (linespec_parse_basic): Reindent.
8247 2018-04-05 Tom Tromey <tom@tromey.com>
8249 * minsyms.h (iterate_over_minimal_symbols): Update.
8250 * minsyms.c (iterate_over_minimal_symbols): Take a
8252 * linespec.c (struct collect_minsyms): Remove.
8253 (compare_msyms): Now a std::sort comparator.
8254 (add_minsym): Add parameters.
8255 (search_minsyms_for_name): Update. Use std::vector.
8257 2018-04-03 Tom Tromey <tom@tromey.com>
8259 * mipsread.c (read_alphacoff_dynamic_symtab): Use
8262 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
8264 * MAINTAINERS (Write After Approval): Add Weimin Pan.
8266 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
8269 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
8270 printing static type.
8272 2018-04-01 Tom Tromey <tom@tromey.com>
8274 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
8275 (rs6000_xfer_shared_libraries): Update.
8277 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8279 * common/gdb_vecs.h (char_ptr): Remove.
8280 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
8282 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
8284 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
8286 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
8288 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
8290 * tracepoint.h (struct uploaded_tp): Initialize fields.
8291 <actions, step_actions, cmd_strings>: Change type to
8292 std::vector<char *>.
8293 * tracepoint.c (get_uploaded_tp): Allocate with new.
8294 (free_uploaded_tps): Free with delete.
8295 (parse_tracepoint_definition): Adjust to std::vector change.
8296 * breakpoint.c (read_uploaded_action): Likewise.
8297 (create_tracepoint_from_upload): Likewise.
8298 * ctf.c (ctf_write_uploaded_tp): Likewise.
8299 (SET_ARRAY_FIELD): Likewise.
8300 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
8302 2018-03-30 Tom Tromey <tom@tromey.com>
8304 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
8306 (svr4_keep_data_in_core): Update.
8307 (svr4_read_so_list): Update.
8309 2018-03-30 Tom Tromey <tom@tromey.com>
8311 * windows-nat.c (handle_output_debug_string, handle_exception):
8313 * target.h (target_read_string): Update.
8314 * target.c (target_read_string): Change "string" to
8316 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8318 * solib-frv.c (frv_current_sos): Update.
8319 * solib-dsbt.c (dsbt_current_sos): Update.
8320 * solib-darwin.c (darwin_current_sos): Update.
8321 * linux-thread-db.c (inferior_has_bug): Update.
8322 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
8323 Update. Remove alloca.
8324 * ada-lang.c (ada_main_name): Update.
8326 2018-03-30 Tom Tromey <tom@tromey.com>
8328 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
8329 (struct dwo_file_deleter): New.
8330 (dwo_file_up): New typedef.
8331 (open_and_init_dwo_file): Use dwo_file_up.
8332 (free_dwo_file_cleanup): Remove.
8334 2018-03-30 Tom Tromey <tom@tromey.com>
8336 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
8337 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
8339 2018-03-30 Tom Tromey <tom@tromey.com>
8341 * dwarf2read.c (class free_cached_comp_units): New class.
8342 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
8343 (free_cached_comp_units): Remove function.
8345 2018-03-30 Tom Tromey <tom@tromey.com>
8347 * utils.h (make_cleanup_unpush_target): Remove.
8348 * inf-ptrace.c (struct target_unpusher): New.
8349 (target_unpush_up) New typedef.
8350 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
8352 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
8354 2018-03-27 Tom Tromey <tom@tromey.com>
8356 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
8358 2018-03-27 Pedro Alves <palves@redhat.com>
8359 Tom Tromey <tom@tromey.com>
8361 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
8362 destructor. Now a class.
8363 (gdb_readline_wrapper_cleanup): Remove function.
8364 (gdb_readline_wrapper): Remove cleanups.
8366 2018-03-27 Tom Tromey <tom@tromey.com>
8368 * typeprint.h (struct type_print_options) <local_typedefs,
8369 global_typedefs>: Remove "struct" keyword.
8370 (class typedef_hash_table): New class.
8371 (recursively_update_typedef_hash, add_template_parameters)
8372 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
8373 (find_typedef_in_hash): Don't declare.
8374 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
8375 (typedef_hash_table::recursively_update): Rename from
8376 recursively_update_typedef_hash. Now a member.
8377 (typedef_hash_table::add_template_parameters): Rename from
8378 add_template_parameters. Now a member.
8379 (typedef_hash_table::typedef_hash_table): Now a constructor;
8380 rename from create_typedef_hash.
8381 (typedef_hash_table::~typedef_hash_table): Now a destructor;
8382 rename from free_typedef_hash.
8383 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
8384 (do_free_global_table): Remove.
8385 (typedef_hash_table::typedef_hash_table): New constructor; renamed
8386 from copy_type_recursive.
8387 (create_global_typedef_table): Remove.
8388 (typedef_hash_table::find_global_typedef): Now a member of
8390 (typedef_hash_table::find_typedef): Rename from
8391 find_typedef_in_hash; now a member.
8392 (whatis_exp): Update.
8393 * extension.h (struct ext_lang_type_printers): Add constructor and
8395 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
8397 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
8398 Now a constructor; rename from start_ext_lang_type_printers.
8399 (ext_lang_type_printers): Now a destructor; rename from
8400 free_ext_lang_type_printers.
8401 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
8403 (c_type_print_base_struct_union): Update. Remove cleanups.
8405 2018-03-27 Tom Tromey <tom@tromey.com>
8407 * dwarf-index-write.c: Include <cmath>.
8409 2018-03-27 Joel Brobecker <brobecker@adacore.com>
8411 * NEWS: Add entry describing new "set|show varsize-limit" command.
8412 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
8414 * printcmd.c (_initialize_printcmd): Add "set var" alias of
8417 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
8419 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
8421 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
8422 * dwarf-index-common.c: New file.
8423 * dwarf-index-common.h: New file.
8424 * dwarf-index-write.c: New file.
8425 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
8426 (struct dwarf2_section_info): Move from here.
8427 (dwarf2_section_info_def): Likewise.
8428 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
8429 (offset_type): Likewise.
8430 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
8431 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
8432 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
8433 (byte_swap): Likewise.
8434 (MAYBE_SWAP): Likewise.
8435 (dwarf2_per_cu_ptr): Likewise.
8436 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
8437 (struct tu_stats): Likewise.
8438 (struct dwarf2_per_objfile): Likewise.
8439 (struct dwarf2_per_cu_data): Likewise.
8440 (struct signatured_type): Likewise.
8441 (sig_type_ptr): Likewise.
8442 (DEF_VEC_P (sig_type_ptr)): Likewise.
8443 (INDEX4_SUFFIX): Likewise.
8444 (INDEX5_SUFFIX): Likewise.
8445 (DEBUG_STR_SUFFIX): Likewise.
8446 (dwarf2_read_section): Make non-static.
8447 (mapped_index_string_hash): Move from here.
8448 (dwarf5_djb_hash): Likewise.
8449 (file_write): Likewise.
8450 (class data_buf): Likewise.
8451 (struct symtab_index_entry): Likewise.
8452 (struct mapped_symtab): Likewise.
8453 (find_slot): Likewise.
8454 (hash_expand): Likewise.
8455 (add_index_entry): Likewise.
8456 (uniquify_cu_indices): Likewise.
8457 (class c_str_view): Likewise.
8458 (class c_str_view_hasher): Likewise.
8459 (class vector_hasher): Likewise.
8460 (write_hash_table): Likewise.
8461 (psym_index_map): Likewise.
8462 (struct addrmap_index_data): Likewise.
8463 (add_address_entry): Likewise.
8464 (add_address_entry_worker): Likewise.
8465 (write_address_map): Likewise.
8466 (symbol_kind): Likewise.
8467 (write_psymbols): Likewise.
8468 (struct signatured_type_index_data): Likewise.
8469 (write_one_signatured_type): Likewise.
8470 (recursively_count_psymbols): Likewise.
8471 (recursively_write_psymbols): Likewise.
8472 (class debug_names): Likewise.
8473 (check_dwarf64_offsets): Likewise.
8474 (psyms_seen_size): Likewise.
8475 (write_gdbindex): Likewise.
8476 (write_debug_names): Likewise.
8477 (assert_file_size): Likewise.
8478 (write_psymtabs_to_index): Likewise.
8479 (save_gdb_index_command): Likewise.
8480 (_initialize_dwarf2_read): Don't register the "save gdb-index"
8482 * dwarf2read.h: New file.
8484 2018-03-27 Joel Brobecker <brobecker@adacore.com>
8487 * dwarf2read.c (dwarf2_physname): Do not return the demangled
8488 symbol name if the CU's language stores symbol names in linkage
8490 * language.h (struct language_defn)
8491 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
8492 all instances of this struct.
8494 2018-03-26 Tom Tromey <tom@tromey.com>
8496 * stack.c (backtrace_command_1): Remove verbose code.
8498 2018-03-26 Tom Tromey <tom@tromey.com>
8500 * python/py-framefilter.c (py_print_type): Don't catch
8501 exceptions. Return void.
8502 (py_print_value): Likewise.
8503 (py_print_single_arg): Likewise.
8504 (enumerate_args): Don't catch exceptions.
8505 (py_print_args): Likewise.
8506 (py_print_frame): Likewise.
8507 (gdbpy_apply_frame_filter): Catch exceptions here.
8509 2018-03-26 Tom Tromey <tom@tromey.com>
8511 * stack.c (_initialize_stack): Remove trailing newlines from help
8512 text. Add "Usage" line to "backtrace" help.
8514 2018-03-26 Tom Tromey <tom@tromey.com>
8517 * python/py-framefilter.c (py_print_args): Call wrap_hint.
8519 2018-03-26 Tom Tromey <tom@tromey.com>
8521 * python/py-framefilter.c (py_print_single_arg): Return
8522 EXT_LANG_BT_ERROR from catch.
8524 2018-03-26 Tom Tromey <tom@tromey.com>
8527 * stack.c (backtrace_command_1): Move some code into no-filters
8530 2018-03-26 Tom Tromey <tom@tromey.com>
8532 * python/py-framefilter.c (throw_quit_or_print_exception): New
8534 (gdbpy_apply_frame_filter): Use it.
8536 2018-03-26 Tom Tromey <tom@tromey.com>
8539 * python/py-framefilter.c (py_print_type, py_print_value)
8540 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
8543 2018-03-26 Tom Tromey <tom@tromey.com>
8545 * python/py-framefilter.c (enumerate_args): Use
8546 gdb::unique_xmalloc_ptr.
8548 2018-03-26 Tom Tromey <tom@tromey.com>
8550 * python/py-framefilter.c (py_print_frame): Return
8552 (gdbpy_apply_frame_filter): Update comment.
8553 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
8555 <EXT_LANG_BT_NO_FILTERS>: Change value.
8557 2018-03-26 Tom Tromey <tom@tromey.com>
8560 * stack.c (backtrace_command): Parse "hide" argument.
8561 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
8562 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
8565 2018-03-26 Tom Tromey <tom@tromey.com>
8567 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
8569 (backtrace_command): Remove "fulltrace", add "flags".
8571 2018-03-26 Tom Tromey <tom@tromey.com>
8573 * stack.c (backtrace_command): Rewrite command line parsing.
8575 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8577 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
8579 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8581 * filename-seen-cache.h: Add include guard.
8583 2018-03-26 Keith Seitz <keiths@redhat.com>
8585 * symfile.c (place_section): Remove "struct" from section_addr_info
8587 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
8588 "struct" keyword from section_addr_info.
8590 2018-03-26 Alan Hayward <alan.hayward@arm.com>
8592 * regformats/regdef.h (reg): Add constructors.
8594 2018-03-25 Pedro Alves <palves@redhat.com>
8596 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
8597 if then/else bodies in var_func_name extraction.
8599 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
8601 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
8602 lookup_minimal_symbol() to find symbol entry.
8603 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
8605 2018-03-23 Keith Seitz <keiths@redhat.com>
8608 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
8609 nested type definitions for C++, too.
8611 2018-03-23 Tom Tromey <tom@tromey.com>
8613 * machoread.c (struct oso_el): Add a constructor. Don't define as
8615 (macho_register_oso): Remove.
8616 (macho_symtab_read): Take a std::vector.
8617 (oso_el_compare_name): Now a std::sort comparator.
8618 (macho_symfile_read_all_oso): Take a std::vector.
8619 (macho_symfile_read): Use std::vector. Remove cleanups.
8621 2018-03-22 Tom Tromey <tom@tromey.com>
8623 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
8624 (record_full_goto_bookmark): Use std::string.
8626 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8629 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
8632 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8634 * rs6000-tdep.c (store_insn_p): New function.
8635 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
8636 and cr_reg to their unshifted values. Use store_insn_p to
8637 match LR saves using either R1 or fdata->alloca_reg. Use
8638 store_insn_p to match CR saves. Set alloca_reg_offset
8639 when alloca_reg and framep are set. Remove lr_reg shift
8640 when assigning to fdata->lr_register.
8642 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
8644 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
8645 command line args instead of emitting a warning.
8647 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8649 * tracepoint.h (struct static_tracepoint_marker): Initialize
8650 fields, define default constructor, move constructor and move
8651 assignment, disable the rest.
8652 <str_id, extra>: Make std::string.
8653 (release_static_tracepoint_marker): Remove.
8654 (free_current_marker): Remove.
8655 * tracepoint.c (free_current_marker): Remove.
8656 (parse_static_tracepoint_marker_definition): Adjust to
8657 std::string, use new hex2str overload.
8658 (release_static_tracepoint_marker): Remove.
8659 (print_one_static_tracepoint_marker): Get marker by reference
8660 and adjust to std::string.
8661 (info_static_tracepoint_markers_command): Adjust to std::vector
8663 * target.h (static_tracepoint_marker_p): Remove typedef.
8664 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
8665 (struct target_ops) <to_static_tracepoint_marker_at>: Return
8667 <to_static_tracepoint_markers_by_strid>: Return std::vector.
8669 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
8670 (target_debug_print_std_vector_static_tracepoint_marker): New.
8671 (target_debug_print_struct_static_tracepoint_marker_p): Rename
8673 (target_debug_print_static_tracepoint_marker_p): ... this.
8674 * target-delegates.c: Re-generate.
8675 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
8677 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
8678 (decode_static_tracepoint_spec): Adjust to std::vector.
8679 (tracepoint_print_one_detail): Adjust to std::string.
8680 (strace_marker_decode_location): Adjust to std::string.
8681 (update_static_tracepoint): Adjust to std::string, remove call
8682 to release_static_tracepoint_marker.
8683 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8684 Adjust to std::vector.
8685 * remote.c (remote_static_tracepoint_marker_at): Return bool.
8686 (remote_static_tracepoint_markers_by_strid): Adjust to
8688 * common/rsp-low.h (hex2str): New overload with explicit count
8690 * common/rsp-low.c (hex2str): New overload with explicit count
8692 * unittests/rsp-low-selftests.c (test_hex2str): New function.
8693 (_initialize_rsp_low_selftests): Add test_hex2str test.
8694 * unittests/tracepoint-selftests.c
8695 (test_parse_static_tracepoint_marker_definition): Adjust to
8698 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8700 * tracepoint.c (parse_static_tracepoint_marker_definition):
8701 Consider case where the definition is followed by more
8703 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8704 tracepoint-selftests.c.
8705 * unittests/tracepoint-selftests.c: New.
8707 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8709 * MAINTAINERS (Write After Approval): Add Pedro Franco de
8712 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
8714 * symtab.c (find_pc_sect_line): fixed indentation.
8716 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
8718 * symtab.c (find_pc_sect_line): now uses binary search.
8720 2018-03-19 Tom Tromey <tom@tromey.com>
8722 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
8725 2018-03-19 Pedro Alves <palves@redhat.com>
8726 Tom Tromey <tom@tromey.com>
8728 * unittests/observable-selftests.c: New file.
8729 * common/observable.h: New file.
8730 * observable.h: New file.
8731 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
8732 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
8733 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
8734 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
8735 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
8736 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
8737 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
8738 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
8739 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
8740 python/py-breakpoint.c, python/py-finishbreakpoint.c,
8741 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
8742 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
8743 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
8744 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
8745 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
8746 tui/tui-interp.c, valops.c: Update all users.
8747 * tui/tui-hooks.c (tui_bp_created_observer)
8748 (tui_bp_deleted_observer, tui_bp_modified_observer)
8749 (tui_inferior_exit_observer, tui_before_prompt_observer)
8750 (tui_normal_stop_observer, tui_register_changed_observer):
8752 (tui_observers_token): New global.
8753 (attach_or_detach, tui_attach_detach_observers): New functions.
8754 (tui_install_hooks, tui_remove_hooks): Use
8755 tui_attach_detach_observers.
8756 * record-btrace.c (record_btrace_thread_observer): Remove.
8757 (record_btrace_thread_observer_token): New global.
8758 * observer.sh: Remove.
8759 * observer.c: Rename to observable.c.
8760 * observable.c (namespace gdb_observers): Define new objects.
8761 (observer_debug): Move into gdb_observers namespace.
8762 (struct observer, struct observer_list, xalloc_observer_list_node)
8763 (xfree_observer_list_node, generic_observer_attach)
8764 (generic_observer_detach, generic_observer_notify): Remove.
8765 (_initialize_observer): Update.
8766 Don't include observer.inc.
8767 * Makefile.in (generated_files): Remove observer.h, observer.inc.
8768 (clean mostlyclean): Likewise.
8769 (observer.h, observer.inc): Remove targets.
8770 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
8771 (COMMON_SFILES): Use observable.c, not observer.c.
8772 * .gitignore: Remove observer.h.
8774 2018-03-18 Tom Tromey <tom@tromey.com>
8776 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
8778 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
8780 2018-03-17 Tom Tromey <tom@tromey.com>
8782 * auto-load.c (auto_load_objfile_script_1): Use std::string.
8784 2018-03-17 Tom Tromey <tom@tromey.com>
8786 * target.c (class scoped_target_fd): New.
8787 (target_fileio_close_cleanup): Remove.
8788 (target_fileio_read_alloc_1): Use scoped_target_fd.
8790 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
8792 * silent-rules.mk: New.
8793 * Makefile.in: Include silent-rules.mk
8794 (srcdir, VPATH, top_srcdir): Move up.
8795 (COMPILE): Add ECHO_CXX.
8796 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
8797 (init.c): Add ECHO_INIT_C.
8798 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
8799 (version.c): Add ECHO_GEN.
8800 (printcmd.o): Add ECHO_CXX.
8801 (target-float.o): Add ECHO_CXX.
8802 (ada-exp.o): Add ECHO_CXX.
8803 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
8804 (insight$(EXEEXT)): Add ECHO_CXXLD.
8805 * gnulib/configure.ac: Add AM_SILENT_RULES.
8806 * gnulib/aclocal.m4: Re-generate.
8807 * gnulib/configure: Re-generate.
8808 * gnulib/import/Makefile.in: Re-generate.
8810 2018-03-16 Tom Tromey <tom@tromey.com>
8812 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
8813 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
8814 * utils.c (do_free_section_addr_info)
8815 (make_cleanup_free_section_addr_info): Remove.
8816 * symfile.h (struct other_sections): Add constructor.
8817 (struct section_addr_info): Remove.
8818 (section_addr_info): New typedef.
8819 (struct sym_fns) <sym_offsets>: Change type of parameter.
8820 (build_section_addr_info_from_objfile)
8821 (relative_addr_info_to_section_offsets, addr_info_make_relative)
8822 (default_symfile_offsets, symbol_file_add)
8823 (symbol_file_add_from_bfd)
8824 (build_section_addr_info_from_section_table): Update.
8825 (alloc_section_addr_info, free_section_addr_info): Don't declare.
8826 * symfile.c (alloc_section_addr_info): Remove.
8827 (build_section_addr_info_from_section_table): Change return type.
8829 (build_section_addr_info_from_bfd)
8830 (build_section_addr_info_from_objfile): Likewise.
8831 (free_section_addr_info): Remove.
8832 (relative_addr_info_to_section_offsets): Change type of "addrs".
8833 (addrs_section_compar): Now a std::sort comparator.
8834 (addrs_section_sort): Change return type.
8835 (addr_info_make_relative): Change type of "addrs". Update.
8836 (default_symfile_offsets, syms_from_objfile_1)
8837 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
8838 (symbol_file_add_separate): Update.
8839 (symbol_file_add): Change type of "addrs". Update.
8840 (add_symbol_file_command): Update. Remove cleanups.
8841 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
8843 * symfile-debug.c (debug_sym_offsets): Change type of "info".
8844 * solib.c (solib_read_symbols): Update.
8845 * objfiles.c (objfile_relocate): Update. Remove cleanups.
8846 * machoread.c (macho_symfile_offsets): Update.
8847 * jit.c (jit_bfd_try_read_symtab): Update.
8849 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
8851 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8852 unittests/utils-selftests.c.
8853 * unittests/utils-selftests.c: New file.
8855 2018-03-14 Tom Tromey <tom@tromey.com>
8858 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
8861 2018-03-14 Tom Tromey <tom@tromey.com>
8864 * printcmd.c (printf_pointer): Allow "-" in format.
8866 2018-03-14 Tom Tromey <tom@tromey.com>
8868 * printcmd.c (_initialize_printcmd): Add usage to printf.
8870 2018-03-14 Yao Qi <qiyao@sourceware.org>
8872 * MAINTAINERS: Update my email address.
8874 2018-03-13 Tom Tromey <tom@tromey.com>
8876 * machoread.c (macho_check_dsym): Change filenamep to a
8878 (macho_symfile_read): Update.
8879 * symfile.c (load_command): Use std::string.
8881 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
8883 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
8884 to error message string.
8885 (riscv_register_name): Use xsnprintf instead of sprintf.
8886 (riscv_insn::fetch_instruction): Use gdb_assert instead of
8888 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
8890 (riscv_push_dummy_call): Likewise.
8892 2018-03-12 Tom Tromey <tom@tromey.com>
8894 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
8895 Use gdb::byte_vector.
8896 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
8898 2018-03-12 Yao Qi <yao.qi@linaro.org>
8900 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
8901 parameter type to readable_regcache.
8902 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
8905 2018-03-11 Tom Tromey <tom@tromey.com>
8907 * dwarf2read.c (struct nextfield): Add initializers.
8908 (struct nextfnfield): Remove.
8909 (struct fnfieldlist): Add initializers. Remove "length" and
8910 "head", use std::vector.
8911 (struct decl_field_list): Remove.
8912 (struct field_info): Add initializers.
8913 <fields, baseclasses>: Now std::vector.
8914 <nbaseclasses, nfnfields, typedef_field_list_count,
8915 nested_types_list_count>: Remove.
8916 (dwarf2_add_field, dwarf2_add_type_defn)
8917 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
8918 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
8919 (process_structure_scope): Update.
8921 2018-03-11 Tom Tromey <tom@tromey.com>
8923 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
8924 for use by std::sort.
8925 (build_type_psymtabs_1): Use std::vector.
8927 2018-03-09 Eli Zaretskii <eliz@gnu.org>
8929 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
8930 and LIBMPFR in the printed configuration.
8932 2018-03-08 Tom Tromey <tom@tromey.com>
8934 * source.c (get_filename_and_charpos): Use scoped_fd.
8935 * nto-procfs.c (procfs_open_1): Use scoped_fd.
8936 (procfs_pidlist): Likewise.
8937 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
8938 (iterate_over_mappings): Likewise.
8940 2018-03-08 Tom Tromey <tom@tromey.com>
8942 * infcall.c (struct call_return_meta_info)
8943 <stack_temporaries_enabled>: Remove.
8944 (get_call_return_value, call_function_by_hand_dummy): Update.
8945 * thread.c (disable_thread_stack_temporaries): Remove.
8946 (enable_thread_stack_temporaries): Remove.
8947 (thread_stack_temporaries_enabled_p): Return bool.
8948 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
8949 (get_last_thread_stack_temporary): Update.
8950 * eval.c (evaluate_subexp): Update.
8951 * gdbthread.h (class enable_thread_stack_temporaries): Now a
8952 class, not a function.
8953 (value_ptr, value_vec): Remove typedefs.
8954 (class thread_info) <stack_temporaries_enabled>: Now bool.
8955 <stack_temporaries>: Now a std::vector.
8956 (thread_stack_temporaries_enabled_p)
8957 (value_in_thread_stack_temporaries): Return bool.
8959 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
8961 * remote.c (putpkt_binary): Fix omitted bytes reporting.
8962 (getpkt_or_notif_sane_1): Likewise.
8964 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8966 * build-id.c (build_id_to_debug_bfd): Use std::string.
8968 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8970 * build-id.c (find_separate_debug_file_by_buildid): Return
8972 * build-id.h (find_separate_debug_file_by_buildid): Return
8974 * coffread.c (coff_symfile_read): Adjust to std::string.
8975 * elfread.c (elf_symfile_read): Adjust to std::string.
8976 * symfile.c (separate_debug_file_exists): Change parameter to
8978 (find_separate_debug_file): Return std::string.
8979 (find_separate_debug_file_by_debuglink): Return std::string.
8980 * symfile.h (find_separate_debug_file_by_debuglink): Return
8983 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8985 * common/xml-utils.c (xml_escape_text): Move code to...
8986 (xml_escape_text_append): ... this new function.
8987 * common/xml-utils.h (xml_escape_text_append): New declaration.
8988 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
8990 (_initialize_xml_utils): register test_xml_escape_text_append as
8993 2018-03-07 Alan Hayward <alan.hayward@arm.com>
8995 * defs.h: Remove MAX_REGISTER_SIZE.
8996 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
8998 * python/py-unwind.c (pyuw_sniffer): Likewise.
9000 2018-03-07 Tom Tromey <tom@tromey.com>
9002 * linux-tdep.c (linux_info_proc): Update.
9003 * target.h (struct target_ops) <to_fileio_readlink>: Return
9005 (target_fileio_readlink): Return optional<string>.
9006 * remote.c (remote_hostio_readlink): Return optional<string>.
9007 * inf-child.c (inf_child_fileio_readlink): Return
9009 * target.c (target_fileio_readlink): Return optional<string>.
9011 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9013 * regcache.c (cooked_read_test): Add riscv to the list of
9014 architectures that have a save_reggroup.
9016 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
9018 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
9019 value is not a dynamic class object.
9021 2018-03-06 Tom Tromey <tom@tromey.com>
9023 * rust-exp.y: Formatting fixes.
9025 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9027 * riscv-tdep.c (riscv_register_name): Remove target description
9029 (riscv_gdbarch_init): Remove target description check.
9031 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9033 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
9035 * riscv-tdep.h: Likewise.
9037 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9039 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
9040 (riscv_pseudo_register_write): Delete.
9041 (riscv_gdbarch_init): Remove all use of pseudo registers.
9043 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9045 * record-btrace.c (btrace_print_lines): Replace cleanup
9046 parameter with RAII equivalents.
9047 (btrace_insn_history): Replace cleanup with RAII equivalents.
9048 * ui-out.h (make_cleanup_ui_out_list_begin_end,
9049 make_cleanup_ui_out_tuple_begin_end): Remove.
9050 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
9051 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
9052 make_cleanup_ui_out_list_begin_end): Remove.
9054 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9056 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
9057 parameter types to std::vector. Use bool.
9058 (record_btrace_wait): Replace VEC(tp_t) with
9059 std::vector<thread_info *>.
9060 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
9062 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9064 * record-btrace.c (record_btrace_disable_callback): Remove.
9065 (struct scoped_btrace_disable): New.
9066 (record_btrace_open): Use scoped_btrace_disable.
9068 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9070 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
9071 reading values from registers.
9073 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9075 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
9078 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9080 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
9081 change parameter type. Use GDB's print functions, and use
9082 core_addr_to_string where appropriate.
9083 (riscv_push_dummy_call): Use core_addr_to_string where
9084 appropriate, update call to riscv_print_arg_location, and reindent
9086 (riscv_return_value): Update call to riscv_print_arg_location.
9088 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9089 Tim Newsome <tim@sifive.com>
9090 Albert Ou <a0u@eecs.berkeley.edu>
9091 Darius Rad <darius@bluespec.com>
9093 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
9094 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
9095 (ALLDEPFILES): Add riscv-tdep.c
9096 * configure.tgt: Add riscv support.
9097 * riscv-tdep.c: New file.
9098 * riscv-tdep.h: New file.
9099 * NEWS: Mention new target.
9100 * MAINTAINERS: Add entry for riscv.
9102 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9104 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
9105 fields within aggregates.
9107 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
9109 * record-btrace.c (btrace_print_lines): Change type of flags to
9110 gdb_disassembly_flags.
9112 2018-03-04 John Baldwin <jhb@FreeBSD.org>
9114 * fbsd-nat.c: Include "inf-ptrace.h".
9115 (USE_SIGTRAP_SIGINFO): Conditionally define.
9116 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
9117 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
9118 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
9120 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
9122 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
9124 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
9125 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
9126 "supports_stopped_by_hw_breakpoint" target methods.
9128 2018-03-04 John Baldwin <jhb@FreeBSD.org>
9130 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
9131 * fbsd-nat.c (debug_fbsd_nat): New variable.
9132 (show_fbsd_nat_debug): New function.
9133 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
9134 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
9136 2018-03-04 John Baldwin <jhb@FreeBSD.org>
9138 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
9139 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
9141 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
9142 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
9145 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9147 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
9148 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
9150 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9152 * charset.c (struct charset_vector): New.
9153 (charsets): Change type to charset_vector.
9154 (find_charset_names): Adjust.
9156 (_initialize_charset): Adjust.
9158 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9160 * progspace.h (struct program_space) <deleted_solibs>: Change
9161 type to std::vector<std::string>.
9162 * progspace.c (clear_program_space_solib_cache): Adjust.
9163 * breakpoint.c (print_solib_event): Adjust.
9164 (check_status_catch_solib): Adjust.
9165 * solib.c (update_solib_list): Adjust.
9166 * ui-out.h (class ui_out) <field_string>: New overload.
9167 * ui-out.c (ui_out::field_string): New overload.
9169 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9171 * progspace.h (struct program_space): Add constructor and
9172 destructor, initialize fields.
9173 (add_program_space): Remove.
9174 * progspace.c (add_program_space): Rename to...
9175 (program_space::program_space): ... this.
9176 (release_program_space): Rename to...
9177 (program_space::~program_space): ... this.
9178 (delete_program_space): Use delete to delete program_space.
9179 (initialize_progspace): Use new to allocate program_space.
9180 * inferior.c (add_inferior_with_spaces): Likewise.
9181 (clone_inferior_command): Likewise.
9182 * infrun.c (follow_fork_inferior): Likewise.
9183 (handle_vfork_child_exec_or_exit): Likewise.
9185 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9187 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
9188 (delim_string_to_char_ptr_vec): Return std::vector of
9189 gdb::unique_xmalloc_ptr.
9190 (dirnames_to_char_ptr_vec_append): Take std::vector of
9191 gdb::unique_xmalloc_ptr.
9192 (dirnames_to_char_ptr_vec): Return std::vector of
9193 gdb::unique_xmalloc_ptr.
9194 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
9195 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
9196 (delim_string_to_char_ptr_vec): Return an std::vector of
9197 gdb::unique_xmalloc_ptr, adjust the code.
9198 (dirnames_to_char_ptr_vec_append): Take an std::vector of
9199 gdb::unique_xmalloc_ptr, adjust the code.
9200 (dirnames_to_char_ptr_vec): Return an std::vector of
9201 gdb::unique_xmalloc_ptr, adjust the code.
9202 * auto-load.c (auto_load_safe_path_vec): Change type to
9203 std::vector of gdb::unique_xmalloc_ptr.
9204 (auto_load_expand_dir_vars): Return an std::vector of
9205 gdb::unique_xmalloc_ptr, adjust the code.
9206 (auto_load_safe_path_vec_update): Adjust.
9207 (filename_is_in_auto_load_safe_path_vec): Adjust.
9208 (auto_load_objfile_script_1): Adjust.
9209 * build-id.c (build_id_to_debug_bfd): Adjust.
9210 * linux-thread-db.c (thread_db_load_search): Adjust.
9211 * source.c (add_path): Adjust.
9213 * symfile.c (find_separate_debug_file): Adjust.
9214 * utils.c (do_free_char_ptr_vec): Remove.
9215 (make_cleanup_free_char_ptr_vec): Remove.
9217 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
9220 * common/pathstuff.c: Conditionally include "<windows.h>".
9222 2018-03-01 Georg Sauthoff <mail@georg.so>
9225 * gcore.in: Quote variables and switch interpreter to bash.
9227 2018-03-01 Tom Tromey <tom@tromey.com>
9229 * dwarf2read.c (alloc_discriminant_info): Fix default_index
9230 assertion. Add assertion for discriminant_index.
9231 (quirk_rust_enum): Use correct base type name in univariant case.
9233 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
9235 * record.c (get_call_history_modifiers): Return a
9237 (cmd_record_call_history): Adjust.
9238 * record-btrace.c (record_btrace_call_history): Adjust.
9239 (record_btrace_call_history_range): Adjust.
9240 (record_btrace_call_history_from): Adjust.
9241 * target-debug.h (target_debug_print_record_print_flags): New.
9242 * target-delegates.c: Re-generate.
9243 * target.c (target_call_history): Change flags type.
9244 (target_call_history_from): Likewise.
9245 (target_call_history_range): Likewise.
9246 * target.h (struct target_ops) <target_call_history>: Likewise.
9247 (target_call_history_from): Likewise.
9248 (target_call_history_range): Likewise.
9250 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
9251 Simon Marchi <simon.marchi@polymtl.ca>
9253 * common/common-utils.c: Include "sys/stat.h".
9254 (is_regular_file): Move here from "source.c"; change return
9256 * common/common-utils.h (is_regular_file): New prototype.
9257 * common/pathstuff.c (contains_dir_separator): New function.
9258 * common/pathstuff.h (contains_dir_separator): New prototype.
9259 * source.c: Don't include "sys/stat.h".
9260 (is_regular_file): Move to "common/common-utils.c".
9262 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
9264 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
9265 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
9266 * auto-load.c: Include "common/pathstuff.h".
9267 * common/common-def.h (current_directory): Move here.
9268 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
9270 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
9272 * common/pathstuff.c: New file.
9273 * common/pathstuff.h: New file.
9274 * compile/compile.c: Include "common/pathstuff.h".
9275 * defs.h (current_directory): Move to "common/common-defs.h".
9276 * dwarf2read.c: Include "common/pathstuff.h".
9278 * guile/scm-safe-call.c: Likewise.
9279 * linux-thread-db.c: Likewise.
9281 * nto-tdep.c: Likewise.
9282 * objfiles.c: Likewise.
9283 * source.c: Likewise.
9284 * symtab.c: Likewise.
9285 * utils.c: Include "common/pathstuff.h".
9286 (gdb_realpath): Move to "common/pathstuff.c".
9287 (gdb_realpath_keepfile): Likewise.
9288 (gdb_abspath): Likewise.
9289 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
9290 (gdb_realpath_keepfile): Likewise.
9291 (gdb_abspath): Likewise.
9293 2018-02-28 John Baldwin <jhb@FreeBSD.org>
9295 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
9296 wildcard process pid for super_resume for kernels with a
9299 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
9301 * compile/compile.c (get_args): Add additional comments
9302 explaining function.
9304 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
9305 Tom Tromey <tom@tromey.com>
9307 * target.h (memory_write_request_s): Remove typedef. Don't define
9309 (target_write_memory_blocks): Change argument to std::vector.
9310 (struct memory_write_request): Add constructor.
9311 * target-memory.c (compare_block_starting_address): Return bool.
9312 Change argument types.
9313 (claim_memory): Change arguments to use std::vector.
9314 (split_regular_and_flash_blocks, blocks_to_erase)
9315 (compute_garbled_blocks): Likewise.
9316 (cleanup_request_data, cleanup_write_requests_vector): Remove.
9317 (target_write_memory_blocks): Change argument to std::vector.
9318 * symfile.c (struct load_section_data): Add constructor and
9319 destructor. Use std::vector for "requests".
9320 (struct load_progress_data): Add initializers.
9321 (load_section_callback): Update. Use "new".
9322 (clear_memory_write_data): Remove.
9323 (generic_load): Update.
9325 2018-02-27 Alan Hayward <alan.hayward@arm.com>
9327 * arch/aarch64.h: Use common/tdesc.h.
9329 2018-02-26 Maciej W. Rozycki <macro@mips.com>
9331 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
9332 architecture with a 64-bit ABI.
9334 2018-02-26 Maciej W. Rozycki <macro@mips.com>
9336 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
9337 ahead of target description loading.
9339 2018-02-26 Tom Tromey <tom@tromey.com>
9341 * stack.c (backtrace_command_1): Update.
9342 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
9344 * python/py-framefilter.c (py_print_frame)
9345 (gdbpy_apply_frame_filter): Change type of "flags".
9346 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
9348 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
9349 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
9350 * extension.h (enum frame_filter_flag): Rename from
9352 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
9353 (apply_ext_lang_frame_filter): Change type of "flags".
9354 * extension.c (apply_ext_lang_frame_filter): Change type of
9356 * extension-priv.h (struct extension_language_ops)
9357 <apply_frame_filter>: Change type of "flags".
9359 2018-02-26 Tom Tromey <tom@tromey.com>
9362 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
9363 off-by-one in py_end computation.
9364 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
9366 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
9369 2018-02-26 Tom Tromey <tom@tromey.com>
9371 * dwarf2read.c (struct variant_field): New.
9372 (struct nextfield) <variant>: New field.
9373 (dwarf2_add_field): Handle DW_TAG_variant_part.
9374 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
9375 discriminated union.
9376 (read_structure_type): Handle DW_TAG_variant_part.
9377 (handle_struct_member_die): New function, extracted from
9378 process_structure_scope. Handle DW_TAG_variant.
9379 (process_structure_scope): Handle discriminated unions. Call
9380 handle_struct_member_die.
9382 2018-02-26 Tom Tromey <tom@tromey.com>
9384 * rust-lang.h (rust_last_path_segment): Declare.
9385 * rust-lang.c (rust_last_path_segment): Now public. Change
9387 (struct disr_info): Remove.
9388 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
9389 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
9390 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
9391 (rust_enum_p, rust_enum_variant): New function.
9392 (rust_underscore_fields): Remove "offset" parameter.
9393 (rust_print_enum): New function.
9394 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
9395 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
9396 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
9398 (rust_internal_print_type): New function, from rust_print_type.
9400 (rust_print_type): Call rust_internal_print_type.
9401 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
9402 Update enum handling.
9403 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
9404 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
9405 (rust_union_quirks): New functions.
9406 (process_full_comp_unit, process_full_type_unit): Call
9408 (process_structure_scope): Update rust_unions if necessary.
9410 2018-02-26 Tom Tromey <tom@tromey.com>
9412 * value.h (value_union_variant): Declare.
9413 * valops.c (value_union_variant): New function.
9414 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
9415 (struct discriminant_info): New.
9416 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
9418 (struct main_type) <flag_discriminated_union>: New field.
9420 2018-02-26 Tom Tromey <tom@tromey.com>
9422 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9423 unittests/unpack-selftests.c.
9424 * unittests/unpack-selftests.c: New file.
9425 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
9427 2018-02-26 Yao Qi <yao.qi@linaro.org>
9429 * dwarf2read.c (struct partial_die_info) <read>: New method.
9430 (read_partial_die): Remove the declaration.
9431 (load_partial_dies): Update.
9432 (partial_die_info::partial_die_info):
9433 (read_partial_die): Change it to partial_die_info::read.
9435 2018-02-26 Yao Qi <yao.qi@linaro.org>
9437 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
9438 (fixup_partial_die): Remove declaration.
9439 (scan_partial_symbols): Update.
9440 (partial_die_parent_scope): Likewise.
9441 (partial_die_full_name): Likewise.
9442 (fixup_partial_die): Change it to partial_die_info::fixup.
9444 2018-02-26 Yao Qi <yao.qi@linaro.org>
9446 * dwarf2read.c (read_partial_die): Update the declaration.
9447 (load_partial_dies): Caller update.
9448 (read_partial_die): Remove one argument abbrev_len.
9450 2018-02-26 Yao Qi <yao.qi@linaro.org>
9452 * dwarf2read.c (struct partial_die_info): Add ctor, delete
9453 assignment operator.
9454 (load_partial_dies): Use ctor and copy ctor.
9455 (read_partial_die): Update.
9456 (dwarf2_cu::find_partial_die): Use ctor.
9458 2018-02-26 Yao Qi <yao.qi@linaro.org>
9460 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
9461 (find_partial_die_in_comp_unit): Change it to
9462 dwarf2_cu::find_partial_die.
9463 (find_partial_die): Update.
9465 2018-02-26 Yao Qi <yao.qi@linaro.org>
9467 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
9470 2018-02-26 Yao Qi <yao.qi@linaro.org>
9472 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
9474 2018-02-26 Alan Hayward <alan.hayward@arm.com>
9476 * arch/amd64.h: Use common/tdesc.h.
9477 * arch/i386.c: Likewise.
9478 * arch/i386.h: Likewise.
9479 * arch/tic6x.c: Likewise.
9480 * arch/tdesc.h: Move file from here...
9481 * common/tdesc.h: ...to here.
9482 * features/aarch64-core.c: Regenerate.
9483 * features/aarch64-fpu.c: Regenerate.
9484 * features/i386/32bit-avx.c: Regenerate.
9485 * features/i386/32bit-avx512.c: Regenerate.
9486 * features/i386/32bit-core.c: Regenerate.
9487 * features/i386/32bit-linux.c: Regenerate.
9488 * features/i386/32bit-mpx.c: Regenerate.
9489 * features/i386/32bit-pkeys.c: Regenerate.
9490 * features/i386/32bit-sse.c: Regenerate.
9491 * features/i386/64bit-avx.c: Regenerate.
9492 * features/i386/64bit-avx512.c: Regenerate.
9493 * features/i386/64bit-core.c: Regenerate.
9494 * features/i386/64bit-linux.c: Regenerate.
9495 * features/i386/64bit-mpx.c: Regenerate.
9496 * features/i386/64bit-pkeys.c: Regenerate.
9497 * features/i386/64bit-segments.c: Regenerate.
9498 * features/i386/64bit-sse.c: Regenerate.
9499 * features/i386/x32-core.c: Regenerate.
9500 * features/tic6x-c6xp.c: Regenerate.
9501 * features/tic6x-core.c: Regenerate.
9502 * features/tic6x-gp.c: Regenerate.
9503 * target-descriptions.c: Use common/tdesc.h.
9504 * target-descriptions.h: Likewise.
9506 2018-02-24 Tom Tromey <tom@tromey.com>
9508 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
9509 (try_thread_db_load_from_dir, thread_db_load_search): Use
9511 (info_auto_load_libthread_db_compare): Return bool. Change
9513 (info_auto_load_libthread_db): Use std::vector, std::string.
9516 2018-02-24 Tom Tromey <tom@tromey.com>
9518 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
9520 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
9522 * gdbarch.c: Rebuild.
9523 * gdbarch.h: Rebuild.
9524 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
9525 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
9526 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
9529 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
9531 * gdbtypes.h (sect_offset): Change type to uint64_t.
9532 (sect_offset_str): New function.
9533 * dwarf2read.c (create_addrmap_from_aranges): Use
9535 (error_check_comp_unit_head): Likewise.
9536 (create_debug_type_hash_table): Likewise.
9537 (read_cutu_die_from_dwo): Likewise.
9538 (init_cutu_and_read_dies): Likewise.
9539 (init_cutu_and_read_dies_no_follow): Likewise.
9540 (process_psymtab_comp_unit_reader): Likewise.
9541 (partial_die_parent_scope): Likewise.
9542 (peek_die_abbrev): Likewise.
9543 (process_queue): Likewise.
9544 (dwarf2_physname): Likewise.
9545 (read_namespace_alias): Likewise.
9546 (read_import_statement): Likewise.
9547 (create_dwo_cu_reader): Likewise.
9548 (create_cus_hash_table): Likewise.
9549 (lookup_dwo_cutu): Likewise.
9550 (inherit_abstract_dies): Likewise.
9551 (read_func_scope): Likewise.
9552 (read_call_site_scope): Likewise.
9553 (dwarf2_add_member_fn): Likewise.
9554 (read_common_block): Likewise.
9555 (read_module_type): Likewise.
9556 (read_typedef): Likewise.
9557 (read_subrange_type): Likewise.
9558 (load_partial_dies): Likewise.
9559 (read_partial_die): Likewise.
9560 (find_partial_die): Likewise.
9561 (read_str_index): Likewise.
9562 (dwarf2_string_attr): Likewise.
9563 (build_error_marker_type): Likewise.
9564 (lookup_die_type): Likewise.
9565 (dump_die_shallow): Likewise.
9566 (follow_die_ref): Likewise.
9567 (dwarf2_fetch_die_loc_sect_off): Likewise.
9568 (dwarf2_fetch_constant_bytes): Likewise.
9569 (follow_die_sig): Likewise.
9570 (get_signatured_type): Likewise.
9571 (get_DW_AT_signature_type): Likewise.
9572 (dwarf2_find_containing_comp_unit): Likewise.
9573 (set_die_type): Likewise.
9575 2018-02-21 John Baldwin <jhb@FreeBSD.org>
9577 * arch/aarch64.c: Include "common-defs.h".
9578 * arch/amd64.c: Likewise.
9579 * arch/i386.c: Likewise.
9581 2018-02-21 Tom Tromey <tom@tromey.com>
9583 * value.h: (extract_field_op): Update.
9584 * eval.c (extract_field_op): Return a const char *.
9585 * expression.h (parse_expression_for_completion): Update.
9586 * completer.c (complete_expression): Update.
9587 (add_struct_fields): Make fieldname const.
9588 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
9589 (mark_completion_tag, parse_exp_in_context_1): Update.
9590 (parse_expression_for_completion): Change "name" to
9591 unique_xmalloc_ptr*.
9593 2018-02-21 Tom Tromey <tom@tromey.com>
9595 * infcall.c (call_function_by_hand_dummy): Use std::vector.
9597 2018-02-21 Yao Qi <yao.qi@linaro.org>
9599 * avr-tdep.c (avr_read_pc): Change parameter type to
9601 * gdbarch.sh (read_pc): Likewise.
9602 * gdbarch.c: Re-generated.
9603 * gdbarch.h: Re-generated.
9604 * hppa-tdep.c (hppa_read_pc): Change parameter type to
9606 * ia64-tdep.c (ia64_read_pc): Likewise.
9607 * mips-tdep.c (mips_read_pc): Likewise.
9608 * spu-tdep.c (spu_read_pc): Likewise.
9610 2018-02-21 Yao Qi <yao.qi@linaro.org>
9612 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
9613 * regcache-dump.c: New file.
9614 * regcache.c: Move register_dump to regcache-dump.c.
9615 (maintenance_print_registers): Likewise.
9616 (maintenance_print_raw_registers): Likewise.
9617 (maintenance_print_cooked_registers): Likewise.
9618 (maintenance_print_register_groups): Likewise.
9619 (maintenance_print_remote_registers): Likewise.
9620 (_initialize_regcache): Likewise.
9621 * regcache.h (register_dump): Moved from regcache.c.
9623 2018-02-21 Yao Qi <yao.qi@linaro.org>
9625 * regcache.c (regcache::regcache): Update.
9626 (regcache::invalidate): Move it to detached_regcache::invalidate.
9627 (get_thread_arch_aspace_regcache): Update.
9628 (regcache::raw_update): Update.
9629 (regcache::cooked_read): Remove some code.
9630 (regcache::cooked_read_value): Likewise.
9631 (regcache::raw_write): Remove assert on m_readonly_p.
9632 (regcache::raw_supply_integer): Move it to
9633 detached_regcache::raw_supply_integer.
9634 (regcache::raw_supply_zeroed): Likewise.
9635 * regcache.h (detached_regcache) <raw_supply_integer>: New
9637 <raw_supply_zeroed, invalidate>: Likewise.
9638 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
9639 <invalidate>: Likewise.
9640 <m_readonly_p>: Removed.
9642 2018-02-21 Yao Qi <yao.qi@linaro.org>
9644 * infcmd.c (get_return_value): Let stop_regs point to
9645 get_current_regcache.
9646 * regcache.c (regcache::regcache): Remove.
9647 (register_dump_reg_buffer): New class.
9648 (regcache_print): Adjust.
9649 * regcache.h (regcache): Remove constructors.
9651 2018-02-21 Yao Qi <yao.qi@linaro.org>
9653 * regcache.c (class register_dump): New class.
9654 (register_dump_regcache, register_dump_none): New class.
9655 (register_dump_remote, register_dump_groups): New class.
9656 (regcache_print): Update.
9657 * regcache.h (regcache_dump_what): Move it to regcache.c.
9658 (regcache) <dump>: Remove.
9660 2018-02-21 Yao Qi <yao.qi@linaro.org>
9662 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
9664 (jit_unwind_reg_set_impl): Call raw_supply.
9665 (jit_frame_sniffer): Use reg_buffer_rw.
9666 * record-full.c (record_full_core_regbuf): Change its type.
9667 (record_full_core_open_1): Use reg_buffer_rw.
9668 (record_full_close): Likewise.
9669 (record_full_core_fetch_registers): Use regcache->raw_supply.
9670 (record_full_core_store_registers): Likewise.
9671 * regcache.c (regcache::get_register_status): Move it to
9673 (regcache_raw_set_cached_value): Remove.
9674 (regcache::raw_set_cached_value): Remove.
9675 (regcache::raw_write): Call raw_supply.
9676 (regcache::raw_supply): Move it to reg_buffer_rw.
9677 * regcache.h (regcache_raw_set_cached_value): Remove.
9678 (reg_buffer_rw): New class.
9680 2018-02-21 Yao Qi <yao.qi@linaro.org>
9682 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
9683 readonly_detached_regcache.
9684 (dummy_frame_prev_register): Use regcache->cooked_read.
9685 * frame.c (frame_save_as_regcache): Change return type.
9686 (frame_pop): Update.
9687 * frame.h (frame_save_as_regcache): Update declaration.
9688 * inferior.h (get_infcall_suspend_state_regcache): Update
9690 * infrun.c (infcall_suspend_state) <registers>: use
9691 readonly_detached_regcache.
9692 (save_infcall_suspend_state): Don't use regcache_dup.
9693 (get_infcall_suspend_state_regcache): Change return type.
9694 * linux-fork.c (struct fork_info) <savedregs>: Change to
9695 readonly_detached_regcache.
9697 (fork_save_infrun_state): Don't use regcache_dup.
9698 (info_checkpoints_command): Adjust.
9699 * mi/mi-main.c (register_changed_p): Update declaration.
9700 (mi_cmd_data_list_changed_registers): Use
9701 readonly_detached_regcache.
9702 (register_changed_p): Change parameter type to
9703 readonly_detached_regcache.
9704 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
9705 readonly_detached_regcache.
9706 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
9707 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
9709 (regcache::save): Move it to reg_buffer.
9710 (regcache::restore): Change parameter type.
9711 (regcache_dup): Remove.
9712 * regcache.h (reg_buffer) <save>: New method.
9713 (readonly_detached_regcache): New class.
9714 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
9715 readonly_detached_regcache.
9716 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
9718 2018-02-21 Yao Qi <yao.qi@linaro.org>
9720 * frame.c (frame_save_as_regcache): Use regcache method save.
9721 (frame_pop): Use regcache method restore.
9722 * infrun.c (restore_infcall_suspend_state): Likewise.
9723 * linux-fork.c (fork_load_infrun_state): Likewise.
9724 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
9726 * regcache.c (regcache_save): Remove.
9727 (regcache::restore): More asserts.
9728 (regcache_cpy): Remove.
9729 * regcache.h (regcache_save): Remove the declaration.
9730 (regcache::restore): Move from private to public.
9731 Remove the friend declaration of regcache_cpy.
9732 (regcache_cpy): Remove declaration.
9734 2018-02-21 Yao Qi <yao.qi@linaro.org>
9736 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
9737 parameter type to 'readable_regcache *'.
9738 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
9739 * arm-tdep.c (arm_neon_quad_read): Likewise.
9740 (arm_pseudo_read): Likewise.
9741 * avr-tdep.c (avr_pseudo_register_read): Likewise.
9742 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
9743 * frv-tdep.c (frv_pseudo_register_read): Likewise.
9744 * gdbarch.c: Re-generated.
9745 * gdbarch.h: Re-generated.
9746 * gdbarch.sh (pseudo_register_read): Change parameter type to
9747 'readable_regcache *'.
9748 (pseudo_register_read_value): Likewise.
9749 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
9750 (h8300_pseudo_register_read): Likewise.
9751 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
9752 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
9753 (i386_pseudo_register_read_into_value): Likewise.
9754 (i386_pseudo_register_read_value): Likewise.
9755 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
9757 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
9758 * m32c-tdep.c (m32c_raw_read): Likewise.
9759 (m32c_read_flg): Likewise.
9760 (m32c_banked_register): Likewise.
9761 (m32c_banked_read): Likewise.
9762 (m32c_sb_read): Likewise.
9763 (m32c_part_read): Likewise.
9764 (m32c_cat_read): Likewise.
9765 (m32c_r3r2r1r0_read): Likewise.
9766 (m32c_pseudo_register_read): Likewise.
9767 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
9768 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
9769 (mep_pseudo_cr64_read): Likewise.
9770 (mep_pseudo_register_read): Likewise.
9771 * mips-tdep.c (mips_pseudo_register_read): Likewise.
9772 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
9773 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
9774 * regcache.c (regcache::raw_read): Move it to readable_regcache.
9775 (regcache::cooked_read): Likewise.
9776 (regcache::cooked_read_value): Likewise.
9777 (regcache_cooked_read_signed):
9778 (regcache::cooked_read): Likewise.
9779 * regcache.h (readable_regcache): New class.
9780 (regcache): Inherit readable_regcache. Move some methods to
9782 * rl78-tdep.c (rl78_pseudo_register_read): Change
9783 parameter type to 'readable_regcache *'.
9784 * rs6000-tdep.c (do_regcache_raw_read): Remove.
9785 (e500_pseudo_register_read): Change parameter type to
9786 'readable_regcache *'.
9787 (dfp_pseudo_register_read): Likewise.
9788 (vsx_pseudo_register_read): Likewise.
9789 (efpr_pseudo_register_read): Likewise.
9790 * s390-tdep.c (s390_pseudo_register_read): Likewise.
9791 * sh-tdep.c (sh_pseudo_register_read): Likewise.
9792 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
9793 (sh64_pseudo_register_read): Likewise.
9794 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
9795 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
9796 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
9797 (spu_pseudo_register_read): Likewise.
9798 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
9799 (xtensa_pseudo_register_read): Likewise.
9801 2018-02-21 Yao Qi <yao.qi@linaro.org>
9803 * regcache.c (regcache::regcache): Call reg_buffer ctor.
9804 (regcache::arch): Move it to reg_buffer::arch.
9805 (regcache::register_buffer): Likewise.
9806 (regcache::assert_regnum): Likewise.
9807 (regcache::num_raw_registers): Likewise.
9808 * regcache.h (reg_buffer): New class.
9809 (regcache): Inherit reg_buffer.
9811 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
9813 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
9814 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
9816 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
9818 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
9820 2018-02-19 Alan Hayward <alan.hayward@arm.com>
9822 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
9823 (SFILES): Remove common/*.c files.
9824 (COMMON_OBS): Remove some *.o files built from common/*.c files.
9825 * common/common.host: Add common reference.
9826 * configure.ac: Likewise.
9827 * configure: Regenerate.
9829 2018-02-16 Yao Qi <yao.qi@linaro.org>
9831 * block.c (block_namespace_info): Inherit allocate_on_obstack.
9832 (block_initialize_namespace): Use new.
9833 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
9834 (dwarf2_free_objfile): Use delete.
9835 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
9836 (copy_type_recursive): Use new.
9837 * gdb_obstack.h (allocate_on_obstack): New.
9839 2018-02-15 Yao Qi <yao.qi@linaro.org>
9842 * inferior.c (exit_inferior_1): Reset inf->control.
9844 2018-02-15 Joel Brobecker <brobecker@adacore.com>
9846 * ada-lang.c (ada_to_fixed_value_create): Delete advance
9849 2018-02-14 Pedro Alves <palves@redhat.com>
9851 * frame-unwind.c (frame_unwind_try_unwinder): Always call
9852 frame_cleanup_after_sniffer on exception.
9854 2018-02-14 Tom Tromey <tom@tromey.com>
9856 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
9858 (solib_bfd_open): Make pathname const.
9859 * solib.c (solib_bfd_open): Make pathname const.
9860 * solib-spu.c (spu_bfd_fopen): Make name const.
9861 (spu_bfd_open): Make pathname const.
9862 * solib-darwin.c (darwin_bfd_open): Make pathname const.
9863 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
9865 2018-02-14 Tom Tromey <tom@tromey.com>
9867 * symfile.c (symfile_bfd_open): Update.
9868 * source.h (openp, source_full_path_of, find_and_open_source):
9869 Change argument type to unique_xmalloc_ptr.
9870 * source.c (openp): Take a unique_xmalloc_ptr.
9871 (source_full_path_of, find_and_open_source): Likewise.
9872 (open_source_file, symtab_to_fullname): Update.
9873 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
9875 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
9876 (exec_file_find): Update.
9877 * psymtab.c (psymtab_to_fullname): Update.
9878 * nto-tdep.h (nto_find_and_open_solib): Update.
9879 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
9881 * exec.c (exec_file_attach): Update.
9882 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
9883 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
9885 2018-02-14 Tom Tromey <tom@tromey.com>
9887 * solib.c: Include source.h.
9888 * nto-tdep.c: Include source.h.
9889 * mi/mi-cmd-env.c: Include source.h.
9890 * infcmd.c: Include source.h.
9891 * exec.c: Include source.h.
9892 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
9893 (add_path, directory_switch, source_path, init_source_path): Move
9895 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
9896 (add_path, directory_switch, source_path, init_source_path):
9899 2018-02-14 Tom Tromey <tom@tromey.com>
9901 * solist.h (exec_file_find, solib_find): Return
9903 (solib_bfd_fopen): Take a const char *.
9904 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
9905 (exec_file_find, solib_find): Likewise.
9906 (solib_bfd_fopen): Do not take ownership of "pathname".
9907 (solib_bfd_open): Use unique_xmalloc_ptr.
9908 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
9909 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
9910 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
9911 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
9913 2018-02-14 Joel Brobecker <brobecker@adacore.com>
9915 * ada-lang.c (name_match_type_from_name): Remove reference to
9916 ada_name_for_lookup in function's documentation.
9917 * ada-lang.h (ada_name_for_lookup): Delete declaration.
9919 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
9921 * defs.h (enum openp_flags): New enum.
9922 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
9923 Move to enum openp_flags.
9924 (openp_flags): New enum flags.
9925 (openp): Change parameter type to openp_flags.
9926 * source.c (openp): Change parameter type to openp_flags.
9927 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
9928 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
9930 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
9932 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
9935 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
9937 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
9939 (class dwarf2_queue_guard): ...the destructor of this new class.
9940 (dw2_do_instantiate_symtab): Create instance of the new class
9941 dwarf2_queue_guard, remove cleanup.
9943 2018-02-09 Tom Tromey <tom@tromey.com>
9945 * source.c (find_source_lines): Don't reference past the end of
9948 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9950 * remote.c (remote_btrace_maybe_reopen): Change error message.
9951 * btrace.c (btrace_enable): Likewise.
9952 (parse_xml_btrace): Likewise.
9953 (parse_xml_btrace_conf): Likewise.
9955 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9957 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
9958 (linux_enable_pt, linux_enable_bts): Call
9959 diagnose_perf_event_open_fail.
9961 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9963 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
9964 Remove parameter and change return type. Update callers. Move it.
9965 (linux_enable_bts, linux_enable_pt): Improve error message.
9966 (linux_enable_pt): Remove zero buffer size check.
9967 (linux_enable_btrace): Improve error messages. Remove NULL return
9970 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9972 * btrace.c (btrace_enable): Remove target_supports_btrace call.
9973 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
9974 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
9975 (linux_supports_pt, linux_supports_btrace): Remove.
9976 (linux_enable_bts): Call cpu_supports_bts.
9977 * nat/linux-btrace.h (linux_supports_btrace): Remove.
9978 * remote.c (remote_supports_btrace): Remove.
9979 (init_remote_ops): Remove remote_supports_btrace.
9980 * target-delegates.c: Regenerated.
9981 * target.c (target_supports_btrace): Remove.
9982 * target.h (target_ops) <to_supports_btrace>: Remove
9983 (target_supports_btrace): Remove.
9984 * x86-linux-nat.c (x86_linux_create_target): Remove
9985 linux_supports_btrace.
9987 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9989 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
9991 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
9992 exception and use message in own exception.
9994 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9996 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
9997 (perf_event_pt_event_type): Use gdb_file_up.
9998 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
9999 scoped_fd, and scoped_mmap.
10001 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10003 * common/scoped_mmap.h: New.
10004 * unittests/scoped_mmap-selftest.c: New.
10005 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10006 unittests/scoped_mmap-selftest.c.
10008 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10010 * common/scoped_fd.h: New.
10011 * unittests/scoped_fd-selftest.c: New.
10012 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10013 unittests/scoped_fd-selftest.c.
10015 2018-02-09 Tom Tromey <tom@tromey.com>
10017 * auto-load.c (auto_load_section_scripts): Use
10018 gdb::unique_xmalloc_ptr.
10020 2018-02-09 Tom Tromey <tom@tromey.com>
10022 * auto-load.c (execute_script_contents): Use std::string.
10024 2018-02-09 Joel Brobecker <brobecker@adacore.com>
10026 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
10027 Python function, rather than a new command.
10029 2018-02-08 Tom Tromey <tom@tromey.com>
10031 * solib.c (solib_find_1): Use std::string.
10032 (solib_bfd_fopen): Use unique_xmalloc_ptr.
10034 2018-02-08 Tom Tromey <tom@tromey.com>
10036 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
10038 2018-02-08 Tom Tromey <tom@tromey.com>
10040 * source.c (find_source_lines): Use gdb::def_vector.
10042 2018-02-08 Tom Tromey <tom@tromey.com>
10044 * macrocmd.c (struct temporary_macro_definition): New.
10045 (macro_define_command): Use temporary_macro_definition. Remove
10047 (free_macro_definition_ptr): Remove.
10049 2018-02-08 Tom Tromey <tom@tromey.com>
10051 * macroexp.c (maybe_expand): Use std::string.
10053 2018-02-08 Tom Tromey <tom@tromey.com>
10055 * macroexp.c (struct macro_buffer): Add initializers for some
10057 (init_buffer, init_shared_buffer, free_buffer)
10058 (free_buffer_return_text): Remove.
10059 (macro_buffer): New constructors.
10060 (~macro_buffer): New destructor.
10061 (macro_buffer::set_shared): New method.
10062 (macro_buffer::resize_buffer, macro_buffer::appendc)
10063 (macro_buffer::appendmem): Now methods, not free functions.
10064 (set_token, append_tokens_without_splicing, stringify)
10065 (macro_stringify): Update.
10066 (gather_arguments): Change return type. Remove argc_p argument,
10067 add args_ptr argument. Use std::vector.
10068 (substitute_args): Remove argc argument. Accept std::vector.
10069 (expand): Update. Use std::vector.
10070 (scan, macro_expand, macro_expand_next): Update.
10072 2018-02-08 Tom Tromey <tom@tromey.com>
10074 * symtab.c (default_collect_symbol_completion_matches_break_on):
10075 Use unique_xmalloc_ptr.
10076 * macroscope.h: (sal_macro_scope, user_macro_scope)
10077 (default_macro_scope): Return unique_xmalloc_ptr.
10078 * macroscope.c (sal_macro_scope, user_macro_scope)
10079 (default_macro_scope): Return unique_xmalloc_ptr.
10080 * macroexp.h (macro_expand, macro_expand_once): Return
10081 unique_xmalloc_ptr.
10082 * macroexp.c (macro_expand, macro_expand_once): Return
10083 unique_xmalloc_ptr.
10084 * macrocmd.c (macro_expand_command, macro_expand_once_command)
10085 (info_macro_command, info_macros_command): Use
10086 unique_xmalloc_ptr.
10087 * compile/compile-c-support.c (write_macro_definitions): Use
10088 unique_xmalloc_ptr.
10089 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
10091 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
10093 * value.c (value_static_field): Assign field type instead of
10094 containing type when returning an optimized out value.
10096 2018-02-06 Yao Qi <yao.qi@linaro.org>
10098 * ft32-tdep.c (ft32_read_pc): Remove.
10099 (ft32_write_pc): Remove.
10100 (ft32_gdbarch_init): Update.
10101 * m32r-tdep.c (m32r_read_pc): Remove.
10102 (m32r_gdbarch_init): Update.
10103 * mep-tdep.c (mep_read_pc): Remove.
10104 (mep_gdbarch_init): Update.
10105 * microblaze-tdep.c (microblaze_write_pc): Remove.
10106 (microblaze_gdbarch_init): Update.
10107 * mn10300-tdep.c (mn10300_read_pc): Remove.
10108 (mn10300_write_pc): Remove.
10109 (mn10300_gdbarch_init): Update.
10110 * moxie-tdep.c (moxie_read_pc): Remove.
10111 (moxie_write_pc): Remove.
10112 (moxie_gdbarch_init): Update.
10114 2018-02-06 Yao Qi <yao.qi@linaro.org>
10116 * expprint.c (print_subexp_standard): Handle
10117 OP_F77_UNDETERMINED_ARGLIST.
10118 (dump_subexp_body_standard): Likewise.
10120 2018-02-05 Alan Hayward <alan.hayward@arm.com>
10122 * target-descriptions.c (tdesc_element_visitor) Add empty
10124 (tdesc_type): Move make_gdb_type from here.
10125 (tdesc_type_builtin): Likewise.
10126 (tdesc_type_vector): Likewise.
10127 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
10128 (make_gdb_type_struct): Move from tdesc_type_with_fields.
10129 (make_gdb_type_union): Likewise.
10130 (make_gdb_type_flags): Likewise.
10131 (make_gdb_type_enum): Likewise.
10132 (make_gdb_type): New function.
10133 (tdesc_register_type): Use static make_gdb_type.
10135 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
10137 * infcmd.c (default_print_one_register_info): Align natural-format
10138 column values consistently one under another.
10139 (pad_to_column): New function.
10141 2018-02-05 Joel Brobecker <brobecker@adacore.com>
10143 * dwarf2read.c (dwarf2_physname): Move commment.
10145 2018-02-01 Leszek Swirski <leszeks@google.com>
10147 * varobj.c (varobj_formatted_print_options): Allow recursive
10148 pretty printing if pretty printing is enabled.
10150 2018-02-01 Leszek Swirski <leszeks@google.com>
10152 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
10153 names after a structop as a filename.
10155 2018-02-01 Yao Qi <yao.qi@linaro.org>
10157 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
10158 (arm_record_coproc_data_proc): Likewise.
10160 2018-02-01 Yao Qi <yao.qi@linaro.org>
10162 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
10164 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
10166 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
10167 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
10169 2018-01-31 Pedro Alves <palves@redhat.com>
10171 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
10172 * inflow.c (child_terminal_save_inferior): Wrap reference to
10173 tcgetpgrp in HAVE_TERMIOS_H.
10174 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
10176 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
10177 always iterate over all inferiors.
10178 (gdbsim_cntrl_c): Adjust.
10179 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
10181 2018-01-31 Joel Brobecker <brobecker@adacore.com>
10183 * gdbtypes.c (lookup_array_range_type): Make sure the array's
10184 index type is objfile-owned if the element type is as well.
10186 2018-01-31 Joel Brobecker <brobecker@adacore.com>
10190 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
10192 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
10193 "features/s390x-linux64.c".
10194 (_initialize_s390_linux_tdep): Remove initialization of tdescs
10195 s390_linux32 and s390x_linux64.
10196 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
10198 * s390-tdep.c: Include "features/s390-linux32.c" and
10199 "features/s390x-linux64.c".
10200 (s390_tdesc_valid): Add check for tdesc_has_registers.
10201 (s390_gdbarch_init): Make sure there is always a valid tdesc.
10202 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
10203 tdesc_s390x_linux64.
10204 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
10205 tdesc_s390x_linux64 to...
10206 * s390-tdep.h: ...here.
10208 2018-01-30 Pedro Alves <palves@redhat.com>
10211 * config.in, configure: Regenerate.
10212 * configure.ac: Check for getpgid.
10213 * go32-nat.c (go32_pass_ctrlc): New.
10214 (go32_target): Install it.
10215 * inf-child.c (inf_child_target): Install
10216 child_terminal_save_inferior, child_pass_ctrlc and
10218 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
10219 (inf_ptrace_target): No longer install it.
10220 * infcmd.c (interrupt_target_1): Adjust.
10221 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
10222 (child_interrupt): Declare.
10223 (inferior::terminal_state): New.
10224 * inflow.c (struct terminal_info): Update comments.
10225 (inferior_process_group): Delete.
10226 (terminal_is_ours): Delete.
10227 (gdb_tty_state): New.
10228 (child_terminal_init): Adjust.
10229 (is_gdb_terminal, sharing_input_terminal_1)
10230 (sharing_input_terminal): New functions.
10231 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
10232 Set the process's actual process group in the foreground if
10233 possible. Handle is_ours_for_output/is_ours distinction. Don't
10234 mark terminal as the inferior's if not sharing GDB's terminal.
10235 Don't check attach_flag.
10236 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
10237 pass down a target_terminal_state.
10238 (child_terminal_save_inferior): New, factored out from ...
10239 (child_terminal_ours_1): ... this. Handle
10240 target_terminal_state::is_ours_for_output.
10241 (child_interrupt, child_pass_ctrlc): New.
10242 (inflow_inferior_exit): Clear the inferior's terminal_state.
10243 (copy_terminal_info): Copy the inferior's terminal state.
10244 (_initialize_inflow): Remove reference to terminal_is_ours.
10245 * inflow.h (inferior_process_group): Delete.
10246 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
10247 * procfs.c (procfs_target): Don't install procfs_interrupt.
10248 (procfs_interrupt): Delete.
10249 * remote.c (remote_serial_quit_handler): Adjust.
10250 (remote_interrupt): Remove ptid parameter. Adjust.
10251 * target-delegates.c: Regenerate.
10252 * target.c: Include "terminal.h".
10253 (target_terminal::terminal_state): Rename to ...
10254 (target_terminal::m_terminal_state): ... this.
10255 (target_terminal::init): Adjust.
10256 (target_terminal::inferior): Adjust to per-inferior
10258 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
10259 (target_terminal::ours, target_terminal::ours_for_output): Use
10260 target_terminal_is_ours_kind.
10261 (target_interrupt): Remove ptid parameter. Adjust.
10262 (default_target_pass_ctrlc): Adjust.
10263 * target.h (target_ops::to_terminal_save_inferior): New field.
10264 (target_ops::to_interrupt): Remove ptid_t parameter.
10265 (target_interrupt): Remove ptid_t parameter. Update comment.
10266 (target_pass_ctrlc): Update comment.
10267 * target/target.h (target_terminal_state): New scoped enum,
10268 factored out of ...
10269 (target_terminal::terminal_state): ... here.
10270 (target_terminal::inferior): Update comments.
10271 (target_terminal::restore_inferior): New.
10272 (target_terminal::is_inferior, target_terminal::is_ours)
10273 (target_terminal::is_ours_for_output): Adjust.
10274 (target_terminal::scoped_restore_terminal_state): Adjust to
10275 rename, and call restore_inferior() instead of inferior().
10276 (target_terminal::scoped_restore_terminal_state::m_state): Change
10278 (target_terminal::terminal_state): Rename to ...
10279 (target_terminal::m_terminal_state): ... this and change type.
10281 2018-01-30 Pedro Alves <palves@redhat.com>
10283 * linux-nat.c (wait_for_signal): New function.
10284 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
10286 (async_terminal_is_ours)
10287 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
10288 (linux_nat_add_target): Don't override
10289 to_terminal_inferior/to_terminal_ours.
10291 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
10293 * remote.c (remote_follow_fork): Don't call "detach_inferior".
10295 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
10297 * dwarf2read.c (free_dwo_files): Add forward-declaration.
10298 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
10299 dwarf2_per_objfile_free here.
10300 (dwarf2_per_objfile_free): Remove.
10301 (_initialize_dwarf2_read): Don't register
10302 dwarf2_per_objfile_free as a registry cleanup.
10304 2018-01-27 Eli Zaretskii <eliz@gnu.org>
10306 Avoid compilation errors in MinGW native builds
10308 The error is triggered by including python-internal.h, and the
10311 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
10312 from build-gnulib/import/math.h:27,
10313 from d:/usr/Python26/include/pyport.h:235,
10314 from d:/usr/Python26/include/Python.h:58,
10315 from python/python-internal.h:94,
10316 from python/py-arch.c:24:
10317 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
10321 This happens because Python headers define 'hypot' to expand t
10322 '_hypot' in the Windows builds.
10323 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
10324 'hypoth'. This avoids a compilation error.
10326 2018-01-26 Alan Hayward <alan.hayward@arm.com>
10328 * MAINTAINERS (Write After Approval): Fix ordering.
10330 2018-01-26 Alan Hayward <alan.hayward@arm.com>
10332 * MAINTAINERS (Write After Approval): Add Alan Hayward.
10334 2018-01-26 Alan Modra <amodra@gmail.com>
10336 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
10337 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
10338 Remove nop. Make const. Comment.
10339 (powerpc32_plt_stub_so_2): New.
10340 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
10341 Correct count. Update uses.
10342 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
10343 Move common code reading PLT entry word. Correct
10344 powerpc32_plt_stub PLT address calculation.
10345 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
10346 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
10347 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
10348 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
10349 (ppc64_standard_linkage8): Likewise.
10350 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
10351 Correct insns description.
10352 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
10354 2018-01-24 Pedro Alves <palves@redhat.com>
10356 GCC PR libstdc++/83906
10357 * gdbtypes.c (operator==(const dynamic_prop &,
10358 const dynamic_prop &)): New.
10359 (operator==(const range_bounds &, const range_bounds &)): New.
10360 (check_types_equal): Use them instead of memcmp.
10361 * gdbtypes.h (operator==(const dynamic_prop &,
10362 const dynamic_prop &)): Declare.
10363 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
10364 (operator==(const range_bounds &, const range_bounds &)): Declare.
10365 (operator!=(const range_bounds &, const range_bounds &)): Declare.
10367 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10369 * s390-linux-tdep.c (s390_record_address_mask)
10370 (s390_record_calc_disp_common, s390_record_calc_disp)
10371 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10372 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10373 (s390_process_record): Move to s390-tdep.c.
10374 (s390_linux_init_abi_any): Adjust.
10375 * s390-tdep.c (s390_record_address_mask)
10376 (s390_record_calc_disp_common, s390_record_calc_disp)
10377 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10378 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10379 (s390_process_record): Moved from s390-linux-tdep.c
10380 (s390_gdbarch_init): Adjust.
10382 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10384 * s390-linux-nat.c (s390-tdep.h): New include.
10385 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
10386 (HFILES_NO_SRCDIR): Add s390-tdep.h.
10387 (ALLDEPFILES): Add s390-tdep.c.
10388 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
10389 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
10390 * s390-tdep.h: ...this. New file.
10391 * s390-linux-tdep.c (s390-tdep.h): New include.
10392 (_initialize_s390_tdep): Rename to...
10393 (_initialize_s390_linux_tdep): ...this and adjust.
10394 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
10395 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
10397 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
10398 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
10399 (s390_is_partial_instruction, s390_software_single_step)
10400 (is_non_branch_ril, s390_displaced_step_copy_insn)
10401 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
10402 (s390_prologue_data, s390_addr, s390_store, s390_load)
10403 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
10404 (s390_register_call_saved, s390_guess_tracepoint_registers)
10405 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
10406 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
10407 (s390_pseudo_register_name, s390_pseudo_register_type)
10408 (s390_pseudo_register_read, s390_pseudo_register_write)
10409 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
10410 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
10411 (s390_addr_bits_remove, s390_address_class_type_flags)
10412 (s390_address_class_type_flags_to_name)
10413 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
10414 (s390_function_arg_float, s390_function_arg_vector)
10415 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
10416 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
10417 (s390_frame_align, s390_register_return_value, s390_return_value)
10418 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
10419 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
10420 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
10421 (s390_trad_frame_prev_register, s390_unwind_cache)
10422 (s390_prologue_frame_unwind_cache)
10423 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
10424 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
10425 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
10426 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
10427 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
10428 (s390_frame_base_address, s390_local_base_address)
10429 (s390_frame_base, s390_gcc_target_options)
10430 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
10431 (s390_validate_reg_range, s390_tdesc_valid)
10432 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
10433 * s390-tdep.c: ...this. New file.
10435 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10437 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
10438 (s390_process_record, s390_gdbarch_tdep_alloc)
10439 (s390_linux_init_abi_any): Use/set new hook.
10441 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10443 * s390-linux-tdep.c (osabi.h): New include.
10444 (s390_linux_init_abi_31, s390_linux_init_abi_64)
10445 (s390_linux_init_abi_any): New functions.
10446 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
10448 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10450 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
10451 tdesc_has_registers check
10453 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10455 * s390-linux-tdep.c (s390_tdesc_valid): New function.
10456 (s390_validate_reg_range): New macro.
10457 (s390_gdbarch_init): Adjust.
10459 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10461 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
10462 (s390_gdbarch_tdep_alloc): Adjust.
10463 (s390_gdbarch_init): Adjust.
10465 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10467 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
10468 <have_tdb>: Change type to bool.
10469 (s390_gdbarch_tdep_alloc): Adjust.
10470 (s390_gdbarch_init): Adjust.
10472 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10474 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
10475 (gdbarch_tdep) <have_upper, have_vx>: New fields.
10476 (s390_gdbarch_tdep_alloc): New function.
10477 (s390_gdbarch_init): Allocate tdep at start and use its fields
10478 instead of separate variables.
10480 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10482 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
10483 when looking for cached gdbarch and add comment for remaining.
10485 2018-01-22 Pedro Alves <palves@redhat.com>
10486 Sergio Durigan Junior <sergiodj@redhat.com>
10488 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
10491 2018-01-22 Maciej W. Rozycki <macro@mips.com>
10493 * MAINTAINERS: Update my company e-mail address.
10495 2018-01-22 Yao Qi <yao.qi@linaro.org>
10497 * regcache.c (cooked_write_test): New function.
10498 (_initialize_regcache): Register the test.
10500 2018-01-22 Yao Qi <yao.qi@linaro.org>
10502 * ia64-tdep.c (ia64_pseudo_register_read): Call
10503 regcache->cooked_read instead of regcache_cooked_read_unsigned.
10504 * m32c-tdep.c (m32c_cat_read): Likewise.
10505 (m32c_r3r2r1r0_read): Likewise.
10506 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
10507 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10509 2018-01-22 Yao Qi <yao.qi@linaro.org>
10511 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
10512 method raw_read instead of regcache_raw_read.
10513 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
10514 * arm-tdep.c (arm_neon_quad_read): Likewise.
10515 * avr-tdep.c (avr_pseudo_register_read): Likewise.
10516 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
10517 * frv-tdep.c (frv_pseudo_register_read): Likewise.
10518 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
10519 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
10520 (i386_pseudo_register_read_into_value): Likewise.
10521 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
10522 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
10523 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
10524 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
10525 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
10526 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10527 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10528 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10529 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
10531 2018-01-22 Yao Qi <yao.qi@linaro.org>
10533 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
10534 * configure.tgt: Remove target mt.
10535 * mt-tdep.c: Remove.
10536 * regcache.c (cooked_read_test): Remove the check for mt.
10538 2018-01-22 Yao Qi <yao.qi@linaro.org>
10540 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
10541 instead of gdbarch_pseudo_register_read_value.
10543 2018-01-22 Joel Brobecker <brobecker@adacore.com>
10545 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
10548 2018-01-22 Joel Brobecker <brobecker@adacore.com>
10550 * linespec.c (create_sals_line_offset): Remove code that preserved
10551 the symtab_and_line's line number.
10553 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10555 * varobj.c (varobj_create): Don't set valid_block when creating a
10558 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10560 * varobj.c (varobj_create): Remove out of date comment.
10562 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10565 * ada-exp.y (write_var_from_sym): Pass extra parameter when
10566 updating innermost block.
10567 * parse.c (innermost_block_tracker::update): Take extra type
10568 parameter, and check types match before updating innermost block.
10569 (write_dollar_variable): Update innermost block for registers.
10570 * parser-defs.h (enum innermost_block_tracker_type): New enum.
10571 (innermost_block_tracker::innermost_block_tracker): Initialise
10573 (innermost_block_tracker::reset): Take type parameter.
10574 (innermost_block_tracker::update): Take type parameter, and pass
10575 type through as needed.
10576 (innermost_block_tracker::m_types): New member.
10577 * varobj.c (varobj_create): Pass type when reseting innermost
10580 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10582 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
10583 * ada-lang.c (resolve_subexp): Likewise.
10584 * breakpoint.c (set_breakpoint_condition) Likewise.
10585 (watch_command_1) Likewise.
10586 * c-exp.y (variable): Likewise.
10587 * d-exp.y (PrimaryExpression): Likewise.
10588 * f-exp.y (variable): Likewise.
10589 * go-exp.y (variable): Likewise.
10590 * m2-exp.y (variable): Likewise.
10591 * objfiles.c (objfile::~objfile): Likewise.
10592 * p-exp.y (variable): Likewise.
10593 * parse.c (innermost_block): Change type.
10594 * parser-defs.h (class innermost_block_tracker): New.
10595 (innermost_block): Change to innermost_block_tracker.
10596 * printcmd.c (display_command): Switch to innermost_block API.
10597 (do_one_display): Likewise.
10598 * rust-exp.y (do_one_display): Likewise.
10599 * symfile.c (clear_symtab_users): Likewise.
10600 * varobj.c (varobj_create): Switch to innermost_block API, replace
10601 use of innermost_block with block stored on varobj object.
10603 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10605 * expression.h (innermost_block): Remove declaration.
10606 * varobj.c: Add 'parser-defs.h' include.
10608 2018-01-19 Tom Tromey <tom@tromey.com>
10610 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
10611 symbols in the static and global blocks.
10613 2018-01-19 James Clarke <jrtc27@jrtc27.com>
10615 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
10616 gdb_ptrace.h, and move including gdb_wait.h ...
10617 * nat/linux-ptrace.h: ... to here.
10619 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10621 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
10622 inf_ptrace_detach_success.
10623 (inf_ptrace_detach_success): Add inferior parameter, use it
10624 instead of inferior_ptid, pass it to detach_inferior.
10625 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
10627 * inferior.c (detach_inferior): Add overload that takes an
10629 * inferior.h (detach_inferior): Likewise.
10630 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
10631 use inferior_ptid, adjust call to inf_ptrace_detach_success.
10632 * linux-thread-db.c (thread_db_detach): Use inf parameter.
10634 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10636 * target.h (struct target_ops) <to_detach>: Add inferior
10638 (target_detach): Likewise.
10639 * target.c (dispose_inferior): Pass inferior down.
10640 (target_detach): Pass inferior down. Assert that it is equal to
10641 the current inferior.
10642 * aix-thread.c (aix_thread_detach): Pass inferior down.
10643 * corefile.c (core_file_command): Pass current_inferior() down.
10644 * corelow.c (core_detach): Add inferior parameter.
10645 * darwin-nat.c (darwin_detach): Likewise.
10646 * gnu-nat.c (gnu_detach): Likewise.
10647 * inf-ptrace.c (inf_ptrace_detach): Likewise.
10648 * infcmd.c (detach_command): Pass current_inferior() down to
10650 * infrun.c (follow_fork_inferior): Pass parent_inf to
10652 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
10654 * linux-nat.c (linux_nat_detach): Add inferior parameter.
10655 * linux-thread-db.c (thread_db_detach): Likewise.
10656 * nto-procfs.c (procfs_detach): Likewise.
10657 * procfs.c (procfs_detach): Likewise.
10658 * record.c (record_detach): Likewise.
10659 * record.h (struct inferior): Forward-declare.
10660 (record_detach): Add inferior parameter.
10661 * remote-sim.c (gdbsim_detach): Likewise.
10662 * remote.c (remote_detach_1): Likewise.
10663 (remote_detach): Likewise.
10664 (extended_remote_detach): Likewise.
10665 * sol-thread.c (sol_thread_detach): Likewise.
10666 * target-debug.h (target_debug_print_inferior_p): New macro.
10667 * target-delegates.c: Re-generate.
10668 * top.c (kill_or_detach): Pass inferior down to target_detach.
10669 * windows-nat.c (windows_detach): Add inferior parameter.
10671 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10673 * target.h (struct target_ops) <to_detach>: Remove args
10675 (target_detach): Likewise.
10676 * target.c (dispose_inferior): Adjust.
10677 (target_detach): Remove args parameter, adjust.
10678 * aix-thread.c (aix_thread_detach): Adjust.
10679 * corefile.c (core_file_command): Adjust.
10680 * corelow.c (core_detach): Adjust.
10681 * darwin-nat.c (darwin_detach): Adjust.
10682 * gnu-nat.c (gnu_detach): Adjust.
10683 * inf-ptrace.c (inf_ptrace_detach): Adjust.
10684 * infcmd.c (detach_command): Adjust
10685 * infrun.c (follow_fork_inferior): Adjust.
10686 (handle_vfork_child_exec_or_exit): Adjust.
10687 * linux-fork.c (linux_fork_detach): Remove args parameter.
10688 * linux-fork.h (linux_fork_detach): Likewise.
10689 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
10690 * linux-thread-db.c (thread_db_detach): Likewise.
10691 * nto-procfs.c (procfs_detach): Likewise.
10692 * procfs.c (procfs_detach): Likewise.
10693 (do_detach): Remove signo parameter.
10694 * record.c (record_detach): Remove args parameter.
10695 * record.h (record_detach): Likewise.
10696 * remote-sim.c (gdbsim_detach): Likewise.
10697 * remote.c (remote_detach_1): Likewise.
10698 (remote_detach): Likewise.
10699 (extended_remote_detach): Likewise.
10700 * sol-thread.c (sol_thread_detach): Likewise.
10701 * target-delegates.c: Re-generate.
10702 * top.c (struct qt_args) <args>: Remove field.
10703 (kill_or_detach): Don't pass args.
10704 (quit_force): Don't set args.
10705 * windows-nat.c (windows_detach): Remove args parameter.
10707 2018-01-19 Yao Qi <yao.qi@linaro.org>
10709 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
10710 (arm_linux_init_abi): Install it.
10712 2018-01-19 Yao Qi <yao.qi@linaro.org>
10714 * osabi.c (gdb_osabi_names): Extend the regexp for
10715 arm-linux-gnueabihf.
10717 2018-01-18 Yao Qi <yao.qi@linaro.org>
10719 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
10721 (abbrev_table::add_abbrev): Update.
10722 (abbrev_table::lookup_abbrev): Update.
10724 2018-01-18 Yao Qi <yao.qi@linaro.org>
10726 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
10728 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10730 * compile/compile.c (compile_to_object): Convert "triplet_rx"
10733 2018-01-17 Tom Tromey <tom@tromey.com>
10735 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
10737 2018-01-17 Tom Tromey <tom@tromey.com>
10739 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
10740 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
10741 (create_array_type_with_stride): Update.
10742 * dwarf2read.c (set_die_type): Update.
10744 2018-01-17 Tom Tromey <tom@tromey.com>
10746 * dwarf2read.c (delayed_method_info): Remove typedef.
10747 (dwarf2_cu::method_info): Now a std::vector.
10748 (add_to_method_list): Update.
10749 (free_delayed_list): Remove.
10750 (compute_delayed_physnames): Update.
10751 (process_full_comp_unit, process_full_type_unit): Clear the method
10752 list. Remove cleanups.
10753 (psymtab_include_file_name): Add name_holder parameter. Use
10754 unique_xmalloc_ptr.
10755 (dwarf_decode_lines): Update.
10757 2018-01-17 Tom Tromey <tom@tromey.com>
10758 Simon Marchi <simon.marchi@ericsson.com>
10760 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
10761 (dwarf2_per_objfile::free_cached_comp_units)
10762 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
10763 (init_cutu_and_read_dies_no_follow): Update.
10764 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
10765 (dwarf2_cu::~dwarf2_cu): New.
10766 (free_heap_comp_unit, free_stack_comp_unit): Remove.
10767 (age_cached_comp_units, free_one_cached_comp_unit): Update.
10769 2018-01-17 Tom Tromey <tom@tromey.com>
10770 Simon Marchi <simon.marchi@ericsson.com>
10772 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
10773 (struct die_reader_specs) <abbrev_table>: New member.
10774 (struct abbrev_table): Add constructor.
10775 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
10776 <abbrev_obstack>: Now an auto_obstack.
10777 (abbrev_table_up): New typedef.
10778 (init_cu_die_reader): Add abbrev_table parameter.
10779 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
10780 Add result_dwo_abbrev_table.
10781 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
10782 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
10784 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
10786 (skip_children): Update.
10787 (abbrev_table::alloc_abbrev): Rename from
10788 abbrev_table_alloc_abbrev.
10789 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
10790 (abbrev_table::lookup_abbrev): Rename from
10791 abbrev_table_lookup_abbrev.
10792 (abbrev_table_read_table): Return abbrev_table_up.
10793 (abbrev_table_free, abbrev_table_free_cleanup)
10794 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
10795 (load_partial_dies): Update.
10797 2018-01-17 Tom Tromey <tom@tromey.com>
10799 * dwarf2read.c (dwarf2_compute_name): Update comment.
10800 (read_func_scope, read_variable): Update.
10801 (new_symbol): Remove.
10802 (new_symbol_full): Rename to new_symbol.
10804 2018-01-17 Mike Gulick <mgulick@mathworks.com>
10807 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
10808 a warning instead of throwing an error, set section size to 0 and return
10810 * gdb_bfd.h (gdb_bfd_map_section): Update description.
10812 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
10814 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
10816 (linux_ptrace_attach_fail_reason_string): Likewise.
10817 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
10819 (linux_ptrace_attach_fail_reason_string): Likewise.
10820 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
10822 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
10824 * linux-nat.c (linux_nat_attach): Remove xstrdup.
10826 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
10829 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
10830 checking for fs_base/gs_base fields in struct user_regs_struct.
10831 * configure: Regenerate.
10833 2018-01-17 Yao Qi <yao.qi@linaro.org>
10835 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
10837 (aarch64_linux_init_abi): Install it to gdbarch hook
10838 gcc_target_options.
10840 2018-01-15 Pedro Alves <palves@redhat.com>
10842 * common/signals-state-save-restore.c
10843 (save_original_signals_state): Fix typos.
10845 2017-01-12 Tom Tromey <tom@tromey.com>
10846 Sergio Durigan Junior <sergiodj@redhat.com>
10848 * Makefile.in (install-only): Install gdb-add-index.
10850 2018-01-12 John Baldwin <jhb@FreeBSD.org>
10852 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
10854 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10856 * infrun.c (keep_going_pass_signal): Clear step-over info when
10857 insert_breakpoints fails.
10859 2018-01-11 Pedro Alves <palves@redhat.com>
10862 * infrun.c (resume): Rename to ...
10863 (resume_1): ... this.
10864 (resume): Reimplement as wrapper around resume_1.
10866 2018-01-11 Pedro Alves <palves@redhat.com>
10869 * remote.c (remote_parse_stop_reply): Default to the last-set
10870 general thread instead of to 'magic_null_ptid'.
10872 2018-01-10 Pedro Alves <palves@redhat.com>
10874 * language.h (language_get_symbol_name_matcher): Rename ...
10875 (get_symbol_name_matcher): ... this.
10876 * language.c (language_get_symbol_name_matcher): Ditto.
10877 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
10880 2018-01-10 Pedro Alves <palves@redhat.com>
10884 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
10885 Adjust to use language_get_symbol_name_matcher instead of
10886 language_defn::la_get_symbol_name_matcher.
10887 * language.c (language_get_symbol_name_matcher): If in Ada mode
10888 and the lookup name is a verbatim match, return Ada's matcher.
10889 * language.h (language_get_symbol_name_matcher): Adjust comment.
10890 (ada_lookup_name_info::verbatim_p):: New method.
10892 2018-01-10 Pedro Alves <palves@redhat.com>
10895 * ada-lang.c (ada_collect_symbol_completion_matches): If the
10896 minsym's language is language_auto or language_cplus, pass down
10897 language_ada instead.
10898 * symtab.c (compare_symbol_name): Don't frob symbol language here.
10900 2018-01-10 Pedro Alves <palves@redhat.com>
10903 * minsyms.c (linkage_name_str): New function.
10904 (iterate_over_minimal_symbols): Use it.
10906 2018-01-09 John Baldwin <jhb@FreeBSD.org>
10908 * NEWS: Document that 'info proc' now works on FreeBSD.
10910 2018-01-09 John Baldwin <jhb@FreeBSD.org>
10912 * configure.ac: Check for kinfo_getfile in libutil.
10913 * configure: Regenerate.
10914 * config.in: Regenerate.
10915 * fbsd-nat.c: Include "fbsd-tdep.h".
10916 (fbsd_fetch_cmdline): New.
10917 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
10918 rather than calling error.
10919 (fbsd_info_proc): New.
10920 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
10921 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
10922 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
10924 2018-01-09 John Baldwin <jhb@FreeBSD.org>
10926 * fbsd-nat.c (struct free_deleter): Remove.
10927 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
10929 2018-01-09 John Baldwin <jhb@FreeBSD.org>
10931 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
10932 NULL for an empty pathname.
10934 2018-01-09 John Baldwin <jhb@FreeBSD.org>
10936 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
10937 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
10938 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10939 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10940 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
10941 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
10942 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
10943 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
10944 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
10945 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
10946 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
10947 (fbsd_core_fetch_timeval, fbsd_print_sigset)
10948 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
10949 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
10950 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
10952 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10954 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
10955 (gnu_xfer_auxv): New function.
10956 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
10957 TARGET_OBJECT_AUXV.
10959 2018-01-08 Yao Qi <yao.qi@linaro.org>
10960 Simon Marchi <simon.marchi@ericsson.com>
10962 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
10964 (COMMON_OBS): Remove selftest.o.
10965 * configure.ac: Append selftest-arch.c and common/selftest.c to
10966 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
10967 * configure: Re-generated.
10968 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
10970 (maintenance_info_selftests): Likewise.
10972 2018-01-08 Xavier Roirand <roirand@adacore.com>
10974 * ada-valprint.c (val_print_packed_array_elements): Use
10975 proper number of elements when printing an array indexed
10976 by an enumeration type.
10978 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
10980 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
10981 (dw2_get_file_names_reader): Adjust.
10982 (lookup_dwo_signatured_type): Adjust.
10983 (lookup_dwp_signatured_type): Adjust.
10984 (lookup_signatured_type): Adjust.
10985 (create_type_unit_group): Adjust.
10986 (get_type_unit_group): Adjust.
10987 (process_psymtab_comp_unit_reader): Adjust.
10988 (build_type_psymtabs_reader): Adjust.
10989 (scan_partial_symbols): Adjust.
10990 (add_partial_symbol): Adjust.
10991 (add_partial_subprogram): Adjust.
10992 (peek_die_abbrev): Adjust.
10993 (fixup_go_packaging): Adjust.
10994 (process_imported_unit_die): Adjust.
10995 (dwarf2_compute_name): Adjust.
10996 (dwarf2_physname): Adjust.
10997 (read_import_statement): Adjust.
10998 (handle_DW_AT_stmt_list): Adjust.
10999 (read_file_scope): Adjust.
11000 (read_func_scope): Adjust.
11001 (read_lexical_block_scope): Adjust.
11002 (read_call_site_scope): Adjust.
11003 (read_variable): Adjust.
11004 (dwarf2_rnglists_process): Adjust.
11005 (dwarf2_ranges_process): Adjust.
11006 (dwarf2_ranges_read): Adjust.
11007 (dwarf2_get_pc_bounds): Adjust.
11008 (dwarf2_record_block_ranges): Adjust.
11009 (dwarf2_add_field): Adjust.
11010 (dwarf2_add_member_fn): Adjust.
11011 (read_structure_type): Adjust.
11012 (process_structure_scope): Adjust.
11013 (read_enumeration_type): Adjust.
11014 (read_array_type): Adjust.
11015 (mark_common_block_symbol_computed): Adjust.
11016 (read_common_block): Adjust.
11017 (read_namespace_type): Adjust.
11018 (read_namespace): Adjust.
11019 (read_module_type): Adjust.
11020 (read_tag_pointer_type): Adjust.
11021 (read_tag_ptr_to_member_type): Adjust.
11022 (read_tag_string_type): Adjust.
11023 (read_subroutine_type): Adjust.
11024 (read_typedef): Adjust.
11025 (read_base_type): Adjust.
11026 (attr_to_dynamic_prop): Adjust.
11027 (read_subrange_type): Adjust.
11028 (read_unspecified_type): Adjust.
11029 (dwarf2_read_abbrevs): Adjust.
11030 (load_partial_dies): Adjust.
11031 (read_partial_die): Adjust.
11032 (find_partial_die): Adjust.
11033 (guess_partial_die_structure_name): Adjust.
11034 (fixup_partial_die): Adjust.
11035 (read_attribute_value): Adjust.
11036 (read_addr_index): Adjust.
11037 (read_addr_index_from_leb128): Adjust.
11038 (read_str_index): Adjust.
11039 (dwarf2_string_attr): Adjust.
11040 (get_debug_line_section): Adjust.
11041 (dwarf_decode_line_header): Adjust.
11042 (lnp_state_machine::check_line_address): Adjust.
11043 (dwarf_decode_lines_1): Adjust.
11044 (dwarf_decode_lines): Adjust.
11045 (dwarf2_start_symtab): Adjust.
11046 (var_decode_location): Adjust.
11047 (new_symbol_full): Adjust.
11048 (dwarf2_const_value_data): Adjust.
11049 (dwarf2_const_value_attr): Adjust.
11050 (dwarf2_const_value): Adjust.
11051 (die_type): Adjust.
11052 (die_containing_type): Adjust.
11053 (build_error_marker_type): Adjust.
11054 (lookup_die_type): Adjust.
11055 (guess_full_die_structure_name): Adjust.
11056 (anonymous_struct_prefix): Adjust.
11057 (determine_prefix): Adjust.
11058 (dwarf2_name): Adjust.
11059 (follow_die_ref_or_sig): Adjust.
11060 (follow_die_offset): Adjust.
11061 (follow_die_ref): Adjust.
11062 (follow_die_sig_1): Adjust.
11063 (follow_die_sig): Adjust.
11064 (get_signatured_type): Adjust.
11065 (get_DW_AT_signature_type): Adjust.
11066 (decode_locdesc): Adjust.
11067 (dwarf_decode_macros): Adjust.
11068 (cu_debug_loc_section): Adjust.
11069 (fill_in_loclist_baton): Adjust.
11070 (dwarf2_symbol_mark_computed): Adjust.
11071 (init_one_comp_unit): Don't assign
11072 dwarf2_cu::dwarf2_per_objfile.
11073 (set_die_type): Adjust.
11075 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11077 * dwarf2read.c (struct mapped_debug_names): Add constructor.
11078 <dwarf2_per_objfile>: New field.
11079 (dwarf2_per_objfile): Remove global.
11080 (get_dwarf2_per_objfile): New function.
11081 (set_dwarf2_per_objfile): New function.
11082 (dwarf2_build_psymtabs_hard): Change objfile parameter to
11083 dwarf2_per_objfile.
11084 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
11085 (read_abbrev_offset): Likewise.
11086 (read_indirect_string): Likewise.
11087 (read_indirect_line_string): Likewise.
11088 (read_indirect_string_at_offset): Likewise.
11089 (read_indirect_string_from_dwz): Likewise.
11090 (dwarf2_find_containing_comp_unit): Change objfile parameter to
11091 dwarf2_per_objfile.
11092 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
11093 (create_all_comp_units): Change objfile parameter to
11094 dwarf2_per_objfile.
11095 (create_all_type_units): Likewise.
11096 (process_queue): Add dwarf2_per_objfile parameter.
11097 (read_and_check_comp_unit_head): Likewise.
11098 (lookup_dwo_unit_in_dwp): Likewise.
11099 (get_dwp_file): Likewise.
11100 (process_cu_includes): Likewise.
11101 (struct free_dwo_file_cleanup_data): New struct.
11102 (dwarf2_has_info): Use get_dwarf2_per_objfile and
11103 set_dwarf2_per_objfile.
11104 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
11105 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
11106 context, adjust calls.
11107 (dw2_instantiate_symtab): Likewise.
11108 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
11109 (dw2_get_cu): Likewise.
11110 (create_cu_from_index_list): Change objfile parameter to
11111 dwarf2_per_objfile.
11112 (create_cus_from_index_list): Get dwarf2_per_objfile from
11113 context, adjust calls.
11114 (create_cus_from_index): Likewise.
11115 (create_signatured_type_table_from_index): Change objfile
11116 parameter to dwarf2_per_objfile.
11117 (create_signatured_type_table_from_debug_names): Change objfile
11118 parameter to dwarf2_per_objfile.
11119 (create_addrmap_from_index): Likewise.
11120 (create_addrmap_from_aranges): Likewise.
11121 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
11122 (dw2_setup): Remove.
11123 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
11125 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
11126 get_dwarf2_per_objfile.
11127 (dw2_forget_cached_source_info): Likewise.
11128 (dw2_map_symtabs_matching_filename): Likewise.
11129 (struct dw2_symtab_iterator) <index>: Remove.
11130 <dwarf2_per_objfile>: New field.
11131 (dw2_symtab_iter_init): Replace index parameter with
11132 dwarf2_per_objfile.
11133 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
11134 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
11135 (dw2_print_stats): Likewise.
11136 (dw2_dump): Likewise.
11137 (dw2_expand_symtabs_for_function): Likewise.
11138 (dw2_expand_all_symtabs): Likewise.
11139 (dw2_expand_symtabs_with_fullname): Likewise.
11140 (dw2_expand_marked_cus): Replace index and objfile parameters
11141 with dwarf2_per_objfile.
11142 (dw_expand_symtabs_matching_file_matcher): Add
11143 dwarf2_per_objfile parameter and adjust calls.
11144 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
11146 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
11147 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
11149 (create_cus_from_debug_names_list): Replace objfile parameter
11150 with dwarf2_per_objfile and adjust calls.
11151 (create_cus_from_debug_names): Likewise.
11152 (dwarf2_read_debug_names): Likewise.
11153 (mapped_debug_names::namei_to_name): Adjust call.
11154 (dw2_debug_names_iterator::next): Likewise.
11155 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
11156 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
11157 (dw2_debug_names_dump): Likewise.
11158 (dw2_debug_names_expand_symtabs_for_function): Likewise.
11159 (dw2_debug_names_expand_symtabs_matching): Likewise.
11160 (dwarf2_initialize_objfile): Likewise.
11161 (dwarf2_build_psymtabs): Likewise.
11162 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
11164 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
11165 (read_and_check_comp_unit_head): Likewise.
11166 (read_abbrev_offset): Likewise.
11167 (create_debug_type_hash_table): Likewise.
11168 (create_debug_types_hash_table): Likewise.
11169 (create_all_type_units): Replace objfile parameter with
11170 dwarf2_per_objfile.
11171 (add_type_unit): Add dwarf2_per_objfile parameter.
11172 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
11173 with dwarf2_per_objfile.
11174 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
11175 (lookup_dwp_signatured_type): Likewise.
11176 (lookup_signatured_type): Likewise.
11177 (read_cutu_die_from_dwo): Likewise.
11178 (init_tu_and_read_dwo_dies): Likewise.
11179 (init_cutu_and_read_dies): Likewise.
11180 (init_cutu_and_read_dies_no_follow): Likewise.
11181 (allocate_type_unit_groups_table): Add objfile parameter.
11182 (create_type_unit_group): Use dwarf2_per_objfile from cu.
11183 (get_type_unit_group): Likewise.
11184 (process_psymtab_comp_unit): Update call.
11185 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
11186 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
11187 (print_tu_stats): Likewise.
11188 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
11189 in void* parameter.
11190 (build_type_psymtabs): Change objfile parameter to
11191 dwarf2_per_objfile.
11192 (process_skeletonless_type_unit): Use dwarf2_per_objfile
11193 passed in void* parameter.
11194 (process_skeletonless_type_units): Change objfile parameter to
11195 dwarf2_per_objfile.
11196 (set_partial_user): Likewise.
11197 (dwarf2_build_psymtabs_hard): Likewise.
11198 (read_comp_units_from_section): Likewise.
11199 (create_all_comp_units): Likewise.
11200 (scan_partial_symbols): Update calls.
11201 (add_partial_symbol): Likewise.
11202 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
11203 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
11204 (process_queue): Add dwarf2_per_objfile parameter.
11205 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
11206 (compute_compunit_symtab_includes): Likewise.
11207 (process_cu_includes): Add dwarf2_per_objfile parameter.
11208 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
11209 (process_full_type_unit): Likewise.
11210 (process_imported_unit_die): Update call.
11211 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
11212 (read_file_scope): Likewise.
11213 (allocate_dwo_file_hash_table): Add objfile parameter.
11214 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
11215 (create_cus_hash_table): Likewise.
11216 (create_dwp_hash_table): Likewise.
11217 (create_dwo_unit_in_dwp_v1): Likewise.
11218 (create_dwp_v2_section): Likewise.
11219 (create_dwo_unit_in_dwp_v2): Likewise.
11220 (lookup_dwo_unit_in_dwp): Likewise.
11221 (try_open_dwop_file): Likewise.
11222 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
11223 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
11224 cleanup to include a reference to dwarf2_per_objfile.
11225 (open_dwp_file): Add dwarf2_per_objfile parameter.
11226 (open_and_init_dwp_file): Likewise.
11227 (get_dwp_file): Likewise.
11228 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
11229 (queue_and_load_all_dwo_tus): Update call.
11230 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
11232 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
11233 (dwarf2_ranges_process): Likewise.
11234 (dwarf2_get_pc_bounds): Likewise.
11235 (mark_common_block_symbol_computed): Likewise.
11236 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
11237 (dwarf2_read_abbrevs): Update call.
11238 (read_partial_die): Use dwarf2_per_objfile from cu.
11239 (find_partial_die): Likewise.
11240 (fixup_partial_die): Likewise.
11241 (read_attribute_value): Likewise.
11242 (read_indirect_string_at_offset_from): Add objfile parameter.
11243 (read_indirect_string_at_offset): Add dwarf2_per_objfile
11245 (read_indirect_string_from_dwz): Add objfile parameter.
11246 (read_indirect_string): Add objfile parameter.
11247 (read_addr_index_1): Add dwarf2_per_objfile parameter.
11248 (read_addr_index): Use dwarf2_per_objfile from cu.
11249 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
11251 (read_str_index): Use dwarf2_per_objfile from cu.
11252 (get_debug_line_section): Likewise.
11253 (read_formatted_entries): Add dwarf2_per_objfile parameter.
11254 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
11255 (new_symbol_full): Use dwarf2_per_objfile from cu.
11256 (build_error_marker_type): Likewise.
11257 (lookup_die_type): Likewise.
11258 (determine_prefix): Likewise.
11259 (follow_die_offset): Likewise.
11260 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
11261 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
11262 (dwarf2_fetch_die_type_sect_off): Likewise.
11263 (dwarf2_get_die_type): Likewise.
11264 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
11265 (get_signatured_type): Likewise.
11266 (get_DW_AT_signature_type): Likewise.
11267 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
11268 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
11269 (cu_debug_loc_section): Likewise.
11270 (fill_in_loclist_baton): Likewise.
11271 (dwarf2_symbol_mark_computed): Likewise.
11272 (dwarf2_find_containing_comp_unit): Change objfile parameter to
11273 dwarf2_per_objfile.
11274 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
11276 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
11277 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
11278 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
11279 (set_die_type): Use dwarf2_free_objfile from cu.
11280 (get_die_type_at_offset): Likewise.
11281 (dwarf2_per_objfile_free): Don't assign global variable.
11282 (debug_names) <constructor>: Add dwarf2_per_objfile
11283 parameter, update m_debugstrlookup construction.
11284 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
11286 <m_dwarf2_per_objfile>: New field.
11287 <lookup>: Use m_dwarf2_per_objfile.
11288 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
11289 (psyms_seen_size): Likewise.
11290 (write_gdbindex): Replace objfile parameter with
11291 dwarf2_per_objfile.
11292 (write_debug_names): Likewise.
11293 (write_psymtabs_to_index): Likewise.
11294 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
11297 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11299 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
11300 <dwarf2_per_objfile>: New field.
11301 (struct dwarf2_per_cu_data) <objfile>: Remove.
11302 <dwarf2_per_objfile>: New field.
11303 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
11305 (create_signatured_type_table_from_index): Likewise.
11306 (create_debug_type_hash_table): Likewise.
11307 (fill_in_sig_entry_from_dwo_entry): Likewise.
11308 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
11309 (create_type_unit_group): Assign dwarf2_per_objfile instead of
11311 (create_partial_symtab): Access objfile through
11312 dwarf2_per_objfile.
11313 (process_psymtab_comp_unit_reader): Likewise.
11314 (read_comp_units_from_section): Likewise.
11315 (scan_partial_symbols): Likewise.
11316 (add_partial_symbol): Likewise.
11317 (add_partial_subprogram): Likewise.
11318 (peek_die_abbrev): Likewise.
11319 (fixup_go_packaging): Likewise.
11320 (process_full_comp_unit): Likewise.
11321 (process_full_type_unit): Likewise.
11322 (process_imported_unit_die): Likewise.
11323 (dwarf2_compute_name): Likewise.
11324 (dwarf2_physname): Likewise.
11325 (read_import_statement): Likewise.
11326 (create_cus_hash_table): Assign dwarf2_physname instead of
11328 (read_func_scope): Access objfile through dwarf2_per_objfile.
11329 (read_lexical_block_scope): Likewise.
11330 (read_call_site_scope): Likewise.
11331 (read_variable): Likewise.
11332 (dwarf2_rnglists_process): Likewise.
11333 (dwarf2_ranges_process): Likewise.
11334 (dwarf2_ranges_read): Likewise.
11335 (dwarf2_record_block_ranges): Likewise.
11336 (dwarf2_add_field): Likewise.
11337 (dwarf2_add_member_fn): Likewise.
11338 (read_structure_type): Likewise.
11339 (process_structure_scope): Likewise.
11340 (read_enumeration_type): Likewise.
11341 (read_array_type): Likewise.
11342 (read_common_block): Likewise.
11343 (read_namespace_type): Likewise.
11344 (read_namespace): Likewise.
11345 (read_module_type): Likewise.
11346 (read_tag_pointer_type): Likewise.
11347 (read_tag_ptr_to_member_type): Likewise.
11348 (read_tag_string_type): Likewise.
11349 (read_subroutine_type): Likewise.
11350 (read_typedef): Likewise.
11351 (read_base_type): Likewise.
11352 (attr_to_dynamic_prop): Likewise.
11353 (read_subrange_type): Likewise.
11354 (read_unspecified_type): Likewise.
11355 (load_partial_dies): Likewise.
11356 (read_partial_die): Likewise.
11357 (find_partial_die): Likewise.
11358 (guess_partial_die_structure_name): Likewise.
11359 (fixup_partial_die): Likewise.
11360 (read_attribute_value): Likewise.
11361 (read_addr_index_from_leb128): Likewise.
11362 (dwarf2_read_addr_index): Likewise.
11363 (dwarf2_string_attr): Likewise.
11364 (lnp_state_machine::check_line_address): Likewise.
11365 (dwarf_decode_lines_1): Likewise.
11366 (dwarf_decode_lines): Likewise.
11367 (dwarf2_start_symtab): Likewise.
11368 (var_decode_location): Likewise.
11369 (new_symbol_full): Likewise.
11370 (dwarf2_const_value_data): Likewise.
11371 (dwarf2_const_value_attr): Likewise.
11372 (dwarf2_const_value): Likewise.
11373 (die_type): Likewise.
11374 (die_containing_type): Likewise.
11375 (lookup_die_type): Likewise.
11376 (guess_full_die_structure_name): Likewise.
11377 (anonymous_struct_prefix): Likewise.
11378 (dwarf2_name): Likewise.
11379 (follow_die_ref_or_sig): Likewise.
11380 (follow_die_offset): Likewise.
11381 (follow_die_ref): Likewise.
11382 (dwarf2_fetch_die_loc_sect_off): Likewise.
11383 (dwarf2_fetch_constant_bytes): Likewise.
11384 (dwarf2_fetch_die_type_sect_off): Likewise.
11385 (dwarf2_get_die_type): Likewise.
11386 (follow_die_sig): Likewise.
11387 (decode_locdesc): Likewise.
11388 (dwarf2_per_cu_objfile): Likewise.
11389 (dwarf2_per_cu_text_offset): Likewise.
11390 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
11392 (set_die_type): Access objfile through
11393 dwarf2_per_objfile.
11395 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11397 * valprint.c (converted_character_d): Remove typedef.
11398 (DEF_VEC_O (converted_character_d)): Remove.
11399 (count_next_character): Use std::vector.
11400 (print_converted_chars_to_obstack): Likewise.
11401 (generic_printstr): Likewise.
11403 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11405 * xml-support.h (struct gdb_xml_value): Add constructor.
11406 <value>: Change type to unique_xmalloc_ptr.
11407 (gdb_xml_value_s): Remove typedef.
11408 (DEF_VEC_O (gdb_xml_value_s)): Remove.
11409 (gdb_xml_element_start_handler): Change parameter type to
11411 (xml_find_attribute): Likewise.
11412 * xml-support.c (xml_find_attribute): Change parameter type to
11413 std::vector and adjust.
11414 (gdb_xml_values_cleanup): Remove.
11415 (gdb_xml_parser::start_element): Adjust to std::vector.
11416 (xinclude_start_include): Change paraeter type to std::vector
11418 * btrace.c (check_xml_btrace_version): Likewise.
11419 (parse_xml_btrace_block): Likewise.
11420 (parse_xml_btrace_pt_config_cpu): Likewise.
11421 (parse_xml_btrace_pt): Likewise.
11422 (parse_xml_btrace_conf_bts): Likewise.
11423 (parse_xml_btrace_conf_pt): Likewise.
11424 * memory-map.c (memory_map_start_memory): Likewise.
11425 (memory_map_start_property): Likewise.
11426 * osdata.c (osdata_start_osdata): Likewise.
11427 (osdata_start_item): Likewise.
11428 (osdata_start_column): Likewise.
11429 * remote.c (start_thread): Likewise.
11430 * solib-aix.c (library_list_start_library): Likewise.
11431 (library_list_start_list): Likewise.
11432 * solib-svr4.c (library_list_start_library): Likewise.
11433 (svr4_library_list_start_list): Likewise.
11434 * solib-target.c (library_list_start_segment): Likewise.
11435 (library_list_start_section): Likewise.
11436 (library_list_start_library): Likewise.
11437 (library_list_start_list): Likewise.
11438 * tracepoint.c (traceframe_info_start_memory): Likewise.
11439 (traceframe_info_start_tvar): Likewise.
11440 * xml-syscall.c (syscall_start_syscall): Likewise.
11441 * xml-tdesc.c (tdesc_start_target): Likewise.
11442 (tdesc_start_feature): Likewise.
11443 (tdesc_start_reg): Likewise.
11444 (tdesc_start_union): Likewise.
11445 (tdesc_start_struct): Likewise.
11446 (tdesc_start_flags): Likewise.
11447 (tdesc_start_enum): Likewise.
11448 (tdesc_start_field): Likewise.
11449 (tdesc_start_enum_value): Likewise.
11450 (tdesc_start_vector): Likewise.
11452 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11454 * extension.h (struct xmethod_worker) <clone>: Remove.
11455 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
11457 (python_xmethod_worker::clone): Remove.
11458 * valops.c (find_overload_match): Use std::move instead of
11461 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11463 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
11464 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
11465 <free_xmethod_worker_data>: Remove.
11466 <get_matching_xmethod_workers>: Chance VEC to std::vector.
11467 <get_xmethod_arg_types>: Remove.
11468 <get_xmethod_result_type>: Remove.
11469 <invoke_xmethod>: Remove.
11470 * extension.c (new_xmethod_worker): Remove.
11471 (clone_xmethod_worker): Remove.
11472 (get_matching_xmethod_workers): Return void, pass std::vector by
11474 (get_xmethod_arg_types): Rename to...
11475 (xmethod_worker::get_arg_types): ... this, and adjust.
11476 (get_xmethod_result_type): Rename to...
11477 (xmethod_worker::get_result_type): ... this, and adjust.
11478 (invoke_xmethod): Remove.
11479 (free_xmethod_worker): Remove.
11480 (free_xmethod_worker_vec): Remove.
11481 * extension.h (enum ext_lang_rc): Move here from
11483 (struct xmethod_worker): Add constructor and destructor.
11486 <invoke, clone, do_get_result_type, do_get_arg_types>: New
11487 virtual pure methods.
11488 <get_arg_types, get_result_type>: New methods.
11489 (xmethod_worker_ptr): Remove typedef.
11490 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
11491 (xmethod_worker_vec): Remove typedef.
11492 (xmethod_worker_up): New typedef.
11493 (invoke_xmethod): Remove.
11494 (clone_xmethod_worker): Remove.
11495 (free_xmethod_worker): Remove.
11496 (free_xmethod_worker_vec): Remove.
11497 (get_xmethod_arg_types): Remove.
11498 (get_xmethod_result_type): Remove.
11499 * valops.c (find_method_list): Use std::vector, don't use
11500 intermediate vector.
11501 (value_find_oload_method_list): Use std::vector.
11502 (find_overload_match): Use std::vector.
11503 (find_oload_champ): Use std::vector.
11504 * value.c (value_free): Use operator delete.
11505 (value_of_xmethod): Rename to...
11506 (value_from_xmethod): ... this. Don't assign
11507 xmethod_worker::value, take rvalue-reference.
11508 (result_type_of_xmethod): Adjust.
11509 (call_xmethod): Adjust.
11510 * value.h: Include extension.h.
11511 (struct xmethod_worker): Don't forward-declare.
11512 (value_of_xmethod): Rename to...
11513 (value_from_xmethod): ... this, take rvalue-reference.
11514 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
11515 (struct python_xmethod_worker): ... this, add constructor and
11517 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
11518 (gdbpy_free_xmethod_worker_data): Rename to...
11519 (python_xmethod_worker::~python_xmethod_worker): ... this and
11521 (gdbpy_clone_xmethod_worker_data): Rename to...
11522 (python_xmethod_worker::clone): ... this and adjust.
11523 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
11525 (gdbpy_get_xmethod_arg_types): Rename to...
11526 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
11527 (gdbpy_get_xmethod_result_type): Rename to...
11528 (python_xmethod_worker::do_get_result_type): ... this and
11530 (gdbpy_invoke_xmethod): Rename to...
11531 (python_xmethod_worker::invoke): ... this and adjust.
11532 (new_python_xmethod_worker): Rename to...
11533 (python_xmethod_worker::python_xmethod_worker): ... this and
11535 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
11537 (gdbpy_free_xmethod_worker_data): Remove.
11538 (gdbpy_get_matching_xmethod_workers): Use std::vector.
11539 (gdbpy_get_xmethod_arg_types): Remove.
11540 (gdbpy_get_xmethod_result_type): Remove.
11541 (gdbpy_invoke_xmethod): Remove.
11542 * python/python.c (python_extension_ops): Remove obsolete
11545 2018-01-05 Pedro Alves <palves@redhat.com>
11548 * common/signals-state-save-restore.c
11549 (save_original_signals_state): New parameter 'quiet'. Warn if we
11550 find a custom handler preinstalled, instead of internal erroring.
11551 But only warn if !quiet.
11552 * common/signals-state-save-restore.h
11553 (save_original_signals_state): New parameter 'quiet'.
11554 * main.c (captured_main_1): Move save_original_signals_state call
11555 after option handling, and pass QUIET.
11557 2018-01-05 Pedro Alves <palves@redhat.com>
11559 * spu-tdep.c (spu_catch_start): Pass
11560 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
11562 2018-01-05 Pedro Alves <palves@redhat.com>
11565 * ada-lang.c (literal_symbol_name_matcher): New function.
11566 (ada_get_symbol_name_matcher): Use it for
11567 symbol_name_match_type::SEARCH_NAME.
11568 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
11569 it down instead of assuming symbol_name_match_type::FULL.
11570 * block.h (block_lookup_symbol): New parameter 'match_type'.
11571 * c-valprint.c (print_unpacked_pointer): Use
11572 lookup_symbol_search_name instead of lookup_symbol.
11573 * compile/compile-object-load.c (get_out_value_type): Pass down
11574 symbol_name_match_type::SEARCH_NAME.
11575 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
11576 symbol_name_match_type::FULL.
11577 * cp-support.c (cp_get_symbol_name_matcher): Handle
11578 symbol_name_match_type::SEARCH_NAME.
11579 * infrun.c (insert_exception_resume_breakpoint): Use
11580 lookup_symbol_search_name.
11581 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
11582 * psymtab.c (maintenance_check_psymtabs): Use
11583 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
11584 * stack.c (print_frame_args): Use lookup_symbol_search_name and
11585 SYMBOL_SEARCH_NAME.
11586 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
11587 if symbol_name_match_type::SEARCH_NAME.
11588 (lookup_symbol_in_language): Pass down
11589 symbol_name_match_type::FULL.
11590 (lookup_symbol_search_name): New.
11591 (lookup_language_this): Pass down
11592 symbol_name_match_type::SEARCH_NAME.
11593 (lookup_symbol_aux, lookup_local_symbol): New parameter
11594 'match_type'. Pass it down.
11595 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
11596 (lookup_symbol_search_name): New declaration.
11597 (lookup_symbol_in_block): New 'match_type' parameter.
11599 2018-01-05 Pedro Alves <palves@redhat.com>
11602 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
11604 (ada_lookup_symbol): Reimplement in terms of
11605 ada_lookup_symbol_list, bits factored out from
11606 ada_lookup_encoded_symbol.
11608 2018-01-05 Joel Brobecker <brobecker@adacore.com>
11610 * ada-exp.y (write_object_renaming): When subscripting an array
11611 using a symbol as the index, pass the block in call to
11612 ada_lookup_encoded_symbol when looking that symbol up.
11614 2018-01-05 Jerome Guitton <guitton@adacore.com>
11616 * ada-lang.c (ada_array_length): Use ada_index_type instead of
11619 2018-01-05 Joel Brobecker <brobecker@adacore.com>
11621 * ada-lang.c (ada_to_fixed_value_create): Add handling of
11622 the case where VALUE_LVAL (val0) is not lval_memory.
11624 2018-01-05 Xavier Roirand <roirand@adacore.com>
11626 * ada-valprint.c (print_optional_low_bound): Handle
11627 character-indexed array printing like boolean-indexed array
11630 2018-01-05 Joel Brobecker <brobecker@adacore.com>
11632 * NEWS: Create a new section for the next release branch.
11633 Rename the section of the current branch, now that it has
11636 2018-01-05 Joel Brobecker <brobecker@adacore.com>
11638 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
11639 * version.in: Bump version to 8.1.50.DATE-git.
11641 2018-01-03 Xavier Roirand <roirand@adacore.com>
11643 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
11645 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
11647 (default_exception_support_info) <catch_handlers_sym>: Add field.
11648 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
11649 (ada_exception_name_addr_1): Add "catch handlers" handling.
11650 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
11651 Update all callers.
11652 (create_excep_cond_exprs) <ex>: Add parameter.
11653 (re_set_exception): Update create_excep_cond_exprs call.
11654 (print_it_exception, print_one_exception, print_mention_exception)
11655 (print_recreate_exception): Add "catch handler" handling.
11656 (allocate_location_catch_handlers, re_set_catch_handlers)
11657 (check_status_catch_handlers, print_it_catch_handlers)
11658 (print_one_catch_handlers, print_mention_catch_handlers)
11659 (print_recreate_catch_handlers): New function.
11660 (catch_handlers_breakpoint_ops): New variable.
11661 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
11662 Add parameter. Add "catch handler" handling.
11663 (ada_exception_sym_name, ada_exception_breakpoint_ops):
11664 Add "catch handler" handling.
11665 (ada_exception_catchpoint_cond_string): Add "catch handler"
11667 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
11669 (catch_ada_handlers_command): New function.
11670 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
11671 operations structure.
11672 (_initialize_ada_language): Add "catch handlers" command entry.
11673 * NEWS: Document "catch handlers" feature.
11675 2018-01-02 Joel Brobecker <brobecker@adacore.com>
11677 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
11678 account when creating the array type of the slice.
11679 (ada_value_slice): Likewise.
11681 2018-01-02 Joel Brobecker <brobecker@adacore.com>
11683 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
11685 (create_array_type_with_stride): Add byte_stride_prop parameter.
11686 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
11687 New parameter. Update all callers in this file.
11688 (array_type_has_dynamic_stride): New function.
11689 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
11690 of arrays with dynamic byte strides.
11691 * dwarf2read.c (read_array_type): Add support for dynamic
11692 DW_AT_byte_stride attributes.
11694 2018-01-02 Joel Brobecker <brobecker@adacore.com>
11696 * dwarf2read.c (read_unspecified_type): Treat
11697 DW_TAG_enumeration_type DIEs from Ada units as stubs.
11699 2018-01-01 Joel Brobecker <brobecker@adacore.com>
11701 Update copyright year range in all GDB files.
11703 2018-01-01 Joel Brobecker <brobecker@adacore.com>
11705 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
11706 and gdb/testsuite/gdb.base/step-line.c.
11708 2018-01-01 Joel Brobecker <brobecker@adacore.com>
11710 * copyright.py (main): Dump the contents of
11711 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
11712 even if BY_HAND is empty.
11714 2018-01-01 Joel Brobecker <brobecker@adacore.com>
11716 * top.c (print_gdb_version): Update Copyright year in version
11719 2018-01-01 Joel Brobecker <brobecker@adacore.com>
11721 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
11723 For older changes see ChangeLog-2017.
11729 version-control: never