Parse SVE registers in aarch64 core file reading/writing
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0c76e06d
AH
12018-08-13 Alan Hayward <alan.hayward@arm.com>
2
3 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
4 (aarch64_linux_collect_sve_regset): Likewise.
5 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
6 * regcache.h (regcache_map_entry_size): New function.
7
b7fd65b9
AH
82018-08-13 Alan Hayward <alan.hayward@arm.com>
9
10 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
11 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
12 (SVE_HEADER_VL_LENGTH): Likewise.
13 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
14 (SVE_HEADER_FLAGS_LENGTH): Likewise.
15 (SVE_HEADER_RESERVED_LENGTH): Likewise.
16 (SVE_HEADER_SIZE_OFFSET): Likewise.
17 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
18 (SVE_HEADER_VL_OFFSET): Likewise.
19 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
20 (SVE_HEADER_FLAGS_OFFSET): Likewise.
21 (SVE_HEADER_RESERVED_OFFSET): Likewise.
22 (SVE_HEADER_SIZE): Likewise.
23 (aarch64_linux_core_read_vq): Add function.
24 (aarch64_linux_core_read_description): Check for SVE section.
25
a616bb94
AH
262018-08-13 Alan Hayward <alan.hayward@arm.com>
27
28 * aarch64-fbsd-tdep.c
29 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
30 collect_size.
31 * aarch64-linux-tdep.c
32 (aarch64_linux_iterate_over_regset_sections): Likewise.
33 * alpha-linux-tdep.c
34 (alpha_linux_iterate_over_regset_sections):
35 * alpha-nbsd-tdep.c
36 (alphanbsd_iterate_over_regset_sections): Likewise.
37 * amd64-fbsd-tdep.c
38 (amd64fbsd_iterate_over_regset_sections): Likewise.
39 * amd64-linux-tdep.c
40 (amd64_linux_iterate_over_regset_sections): Likewise.
41 * arm-bsd-tdep.c
42 (armbsd_iterate_over_regset_sections): Likewise.
43 * arm-fbsd-tdep.c
44 (arm_fbsd_iterate_over_regset_sections): Likewise.
45 * arm-linux-tdep.c
46 (arm_linux_iterate_over_regset_sections): Likewise.
47 * corelow.c (get_core_registers_cb): Likewise.
48 (core_target::fetch_registers): Likewise.
49 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
50 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
51 * gdbarch.h (void): Regenerate.
52 * gdbarch.sh: Add supply_size and collect_size.
53 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
54 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
55 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
56 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
57 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
58 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
59 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
60 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
61 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
62 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
63 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
64 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
65 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
66 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
67 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
68 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
69 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
70 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
71 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
72 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
73 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
74 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
75 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
76 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
77 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
78 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
79 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
80 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
81 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
82 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
83
a9925d4f
SM
842018-08-10 Simon Marchi <simon.marchi@ericsson.com>
85
86 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
87 with string_printf.
88
ad3a68e9
KS
892018-08-10 Keith Seitz <keiths@redhat.com>
90
91 * compile/compile-c-support.c (add_code_header, add_code_footer):
92 Move into policy class.
93 (c_push_user_expression, pop_user_expression_nop)
94 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
95 (compile_program): New host class.
96 (c_compile_program): New typedef.
97 (c_compute_porgram): Use c_compile_program.
98
0cfbf430
KS
992018-08-10 Keith Seitz <keiths@redhat.com>
100
101 * compile/compile-internal.h (compile_instance::~compile_instance):
102 Remove calls to htab_delete.
103 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
104 * compile.c (compile_instance::compile_instance): Initialize
105 htab unique pointers.
106 (compile_instance::get_cached_type, compile_instance::insert_type)
107 (compile_instance::error_symbol_once): Update for unique_ptr.
108
946d3d10
KS
1092018-08-10 Keith Seitz <keiths@redhat.com>
110
111 * compile/compile-c-symbols.c (struct symbol_error)
112 (hash_symbol_error, eq_symbol_error, del_symbol_error)
113 (compile_instance::insert_symbol_error)
114 (compile_instance::error_symbol_once): Move to ...
115 * compile/compile.c: ... here.
116
9cdfd9a2
KS
1172018-08-10 Keith Seitz <keiths@redhat.com>
118
119 * compile/compile-c-support.c (c_get_compile_context): Use `new'
120 instead of `new_compile_instance'.
121 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
122 Update description.
123 If the symbol error map is not initialized, create it.
124 (generate_c_for_for_one_symbol): Do not check/initialize
125 the symbol error map.
126 * compile/compile-c-types.c (compile_c_instance): Make a class.
127 Update all callers.
128 (compile_instance::compile_instance): Initialize the type cache.
129 (get_cached_type): New function.
130 (insert_type): Update description.
131 (compile_c_instance::m_default_cflags): Define.
132 (convert_type): Update description. Use get_cached_type.
133 (delete_instance): Moved to destructor.
134 (new_compile_instance): Moved to constructor.
135 * compile/compile-c.h (compile_c_instance): Make class inheriting
136 from compile_instance.
137 <base>: Remove field.
138 <type_map, symbol_err_map>: Move to base class.
139 <c_plugin>: Rename to `m_plugin' and remove pointer type.
140 * compile/compile-internal.h (compile_instance): Make class.
141 <type_map_t, symbol_err_map_t>: Define.
142 <fe>: Rename to `m_gcc_fe'.
143 <scope, block, gcc_target_options>: Add `m_' prefix.
144 <m_type_map, m_symbol_err_map>: New fields, moved from
145 compile_c_instance.
146 <destroy>: Remove.
147 (convert_type, new_compile_instance): Remove.
148 * compile/compile.c (cleanup_compile_instance): Remove.
149 (compile_to_object): Use unique_ptr to eliminate cleanups.
150 (compile_instance::set_print_callback, compile_instance::version)
151 (compile_instance::set_verbose)
152 (compile_instance::set_driver_filename)
153 (compile_instance::set_triplet_regexp)
154 (compile_instance::set_arguments)
155 (compile_instance::set_source_file)
156 (compile_instance::compile): Define.
157
18cdc6d8
KS
1582018-08-10 Keith Seitz <keiths@redhat.com>
159
160 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
161 * compile/compile-c-types.c: Define GCC_METHODN macros and include
162 gcc-c-fe.def to define C plugin.
163 (delete_instance): Delete `c_plugin'.
164 (new_compile_instance): Initialize `c_plugin'.
165 * compile/compile-c.h: Include gcc_c_plugin.h.
166 (struct compile_c_instance) <c_plugin>: New member.
167 * gcc-c-plugin.h: New file.
168 Update all callers with API change.
169
b7dc48b4
KS
1702018-08-10 Keith Seitz <keiths@redhat.com>
171
172 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
173 (HFILES_NO_SRCDIR): ... to here.
174 Add compile-internal.h and compile-c.h.
175 * compile/compile-c-support.c: Include compile-c.h.
176 * compile/compile-c-symbols.c: Include compile-c.h.
177 (generate_c_for_variable_locations): Update comment.
178 * compile/compile-c-types.c: Include compile-c.h.
179 * compile/compile-c.h: New file -- moved C language declarations
180 from other files here.
181 * compile/compile-internal.h: Do not include hashtab.h or
182 common/enum-flags.h.
183 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
184 (gcc_convert_symbol, gcc_symbol_address)
185 (generate_c_for_variable_locations, c_get_mode_for_size)
186 (c_get_range_decl_name): Definitions moved to compile-c.h.
187 * compile/compile-loc2c.c: Include compile-c.h.
188
6f36b6d2
KS
1892018-08-10 Keith Seitz <keiths@redhat.com>
190
191 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
192 (c_symbol_substitution_name): ... this.
193 Update all callers.
194
bd923e51
KS
1952018-08-10 Keith Seitz <keiths@redhat.com>
196
197 * compile/compile-c-support.c (c_compute_program): Use
198 unique_xmalloc_ptr to eliminate cleanup.
199 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
200 Return a unique_xmalloc_ptr and eliminate cleanup.
201 * compile/compile-internal.h (generate_c_for_variable_locations):
202 Return unique_xmalloc_ptr and update description.
203
dbd534fe
AH
2042018-08-10 Alan Hayward <alan.hayward@arm.com>
205
206 * corelow.c (core_target::get_core_register_section): Rename
207 min_size to section_min_size.
208
90ad3654
JW
2092018-08-09 Jim Wilson <jimw@sifive.com>
210
52a187f8
JW
211 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
212 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
213 * NEWS: Mention new GNU/Linux RISC-V target.
214 * configure.host: Add riscv*-*-linux*.
215 * configure.nat: Add riscv*.
216 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 217 * riscv-linux-nat.c: New file.
90ad3654
JW
218 * riscv-linux-tdep.c: New file.
219
aff4e175
AB
2202018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
221
222 * infrun.c (resume): Make static, add forward declaration.
223 (proceed): Update header comment.
224 * infrun.h (resume): Delete declaration.
225
06ab9219
TT
2262018-08-09 Tom Tromey <tom@tromey.com>
227
228 * riscv-tdep.h: Minor formatting fixes.
229
83c8d318
SM
2302018-08-09 Simon Marchi <simon.marchi@ericsson.com>
231
232 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
233 * dwarf-index-cache.c (create_dir_and_check): Likewise.
234 (test_mkdir_recursive): Likewise.
235 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
236
5ff2bbae
AB
2372018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
238
239 * valarith.c (value_subscripted_rvalue): If an array is not in
240 memory, and we don't know the upper bound, then we can't know that
241 the requested element exists or not.
242
fdbac7d8
SM
2432018-08-08 Simon Marchi <simon.marchi@ericsson.com>
244
245 * target.c (str_comma_list_concat_elem): Fix typo in comment.
246 (target_options_to_string): Add comment.
247
83202f7a
TT
2482018-08-08 Tom Tromey <tom@tromey.com>
249
250 * unittests/scoped_mmap-selftests.c: Check result of "write".
251
411baa47
JW
2522018-08-08 Jim Wilson <jimw@sifive.com>
253
5c720ed8
JW
254 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
255 (decode_register_index_short): New.
256 (decode_j_type_insn, decode_cj_type_insn): New.
257 (decode_b_type_insn, decode_cb_type_insn): New.
258 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
259 local xlen. Check xlen when decoding ambiguous compressed insns. In
260 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
261 is_c_sw_insn instead of is_sw_insn.
262 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
263 (riscv_software_single_step): New.
264 * riscv-tdep.h (riscv_software_single_step): Declare.
265
411baa47
JW
266 * riscv-tdep.c (riscv_isa_xlen): Drop static.
267 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
268
9d4a934c
AB
2692018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
270
271 PR gdb/18050:
272 * target.c (dispose_inferior): Don't dispose of inferiors that are
273 already killed.
274
ff36536c
SN
2752018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
276
277 * remote.c (remote_target::download_tracepoint): Change char* to
278 const char*.
279
09ce46f2
SM
2802018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
281
282 * target.h (target_options_to_string): Return an std::string.
283 * target.c (str_comma_list_concat_elem): Return void, use
284 std::string.
285 (do_option): Likewise.
286 (target_options_to_string): Return an std::string.
287 * linux-nat.c (linux_nat_target::wait): Adjust.
288 * target-debug.h (target_debug_print_options): Adjust.
289
9c612964
TT
2902018-08-07 Tom Tromey <tom@tromey.com>
291
292 * Makefile.in (CPPFLAGS): New variable.
293 (INTERNAL_CPPFLAGS): Use it.
294
7d11235d
SM
2952018-08-07 Simon Marchi <simon.marchi@ericsson.com>
296
297 * NEWS: Mention the index cache.
298
87d6a7aa
SM
2992018-08-07 Simon Marchi <simon.marchi@ericsson.com>
300
301 * common/pathstuff.h (get_standard_cache_dir): New.
302 * common/pathstuff.c (get_standard_cache_dir): New.
303 * build-id.h (build_id_to_string): New.
304 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
305 DEBUG_STR_SUFFIX): Move to here.
306 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
307 DEBUG_STR_SUFFIX): Move from there.
308 (write_psymtabs_to_index): Make non-static, add basename
309 parameter. Write to temporary files, rename when done.
310 (save_gdb_index_command): Adjust call to
311 write_psymtabs_to_index.
312 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
313 field.
314 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
315 (get_gdb_index_contents_from_cache): New.
316 (get_gdb_index_contents_from_cache_dwz): New.
317 (dwarf2_initialize_objfile): Read index from cache.
318 (dwarf2_build_psymtabs): Save to index.
319 * dwarf-index-cache.h: New file.
320 * dwarf-index-cache.c: New file.
321 * dwarf-index-write.h: New file.
322
8a99096f
SM
3232018-08-07 Simon Marchi <simon.marchi@ericsson.com>
324
325 * gnulib/aclocal.m4: Re-generate.
326 * gnulib/config.in: Re-generate.
327 * gnulib/configure: Re-generate.
328 * gnulib/import/Makefile.am: Re-generate.
329 * gnulib/import/Makefile.in: Re-generate.
330 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
331 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
332 * gnulib/import/m4/mkdir.m4: New file.
333 * gnulib/import/mkdir.c: New file.
334 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
335 module.
336
5c831bb1
SM
3372018-08-07 Simon Marchi <simon.marchi@ericsson.com>
338
339 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
340 * common/scoped_mmap.c: New file.
341 * common/scoped_mmap.h (destroy): New method.
342 (~scoped_mmap, reset): Use destroy.
343 (scoped_mmap): New move constructor.
344 (mmap_file): New declaration.
345 * unittests/scoped_mmap-selftests.c (test_normal,
346 test_invalid_filename, run_tests): New functions.
347 (_initialize_scoped_mmap_selftests): Register selftest.
348
4485a1c1
SM
3492018-08-07 Simon Marchi <simon.marchi@ericsson.com>
350
351 * dwarf2read.c (read_gdb_index_from_section): Rename to...
352 (read_gdb_index_from_buffer): ... this. Remove section
353 parameter, add buffer parameter.
354 (get_gdb_index_contents_ftype,
355 get_gdb_index_contents_dwz_ftype): New typedefs.
356 (dwarf2_read_gdb_index): Add callback parameters to get the
357 index contents.
358 (get_gdb_index_contents_from_section): New.
359 (dwarf2_initialize_objfile): Update call to
360 dwarf2_read_gdb_index.
361
528e1572
SM
3622018-08-07 Simon Marchi <simon.marchi@ericsson.com>
363
364 * common/filestuff.h (gdb_fopen_cloexec): New overload.
365 (gdb_open_cloexec): Likewise.
366 * nat/linux-osdata.c (command_from_pid): Use string_printf.
367 (commandline_from_pid): Likewise.
368 (linux_xfer_osdata_threads): Likewise.
369 (linux_xfer_osdata_fds): Likewise.
370 * ada-lang.c (is_package_name): Likewise.
371 * auxv.c (procfs_xfer_auxv): Likewise.
372 * breakpoint.c (print_one_breakpoint_location): Use
373 uiout::field_fmt.
374 (print_one_catch_solib): Use string_printf.
375 * coff-pe-read.c (add_pe_exported_sym): Likewise.
376 (add_pe_forwarded_sym): Likewise.
377 * dwarf2read.c (create_type_unit_group): Likewise.
378 (build_error_marker_type): Likewise.
379 * infcall.c (get_function_name): Likewise.
380 * valprint.c (print_converted_chars_to_obstack): Likewise.
381 * xtensa-tdep.c (xtensa_register_type): Likewise.
382
a7f25a84
SM
3832018-08-06 Simon Marchi <simon.marchi@ericsson.com>
384
385 * remote.c (remote_target::download_tracepoint): Fix format
386 string errors.
387
296956be
PFC
3882018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
389
390 * tracefile.c: Include common/byte-vector.h.
391 (trace_save): Change type of buf to gdb::byte_vector. Initialize
392 with trace_regblock_size if needed. Update uses of buf.
393
a04b9d62
PFC
3942018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
395
396 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
397 std::vector<unsigned char>.
398 * tracepoint.c (collection_list::collection_list): Remove
399 m_regs_mask initializer from initializer list. Resize
400 m_regs_mask using the largest remote register number.
401 (collection_list::add_remote_register): Remove size check on
402 m_regs_mask. Use at to access element.
403 (collection_list::stringify): Change type of temp_buf to
404 gdb::char_vector. Update uses of temp_buf. Resize if needed to
405 stringify the register mask. Use pack_hex_byte for the register
406 mask.
407
4277c4b8
PFC
4082018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
409
410 * tracepoint.h (class collection_list) <add_register>: Remove.
411 <add_remote_register, add_ax_registers, add_local_register>:
412 Declare.
413 <add_memrange>: Add scope parameter.
414 * tracepoint.c (encode_actions_1): Likewise.
415 (collection_list::add_register): Rename to ...
416 (collection_list::add_remote_register): ... this. Update
417 comment.
418 (collection_list::add_ax_registers, add_local_register): New
419 methods.
420 (collection_list::add_memrange): Add scope parameter. Call
421 add_local_register instead of add_register.
422 (finalize_tracepoint_aexpr): New function.
423 (collection_list::collect_symbol): Update calls to add_memrange.
424 Call add_local_register instead of add_register. Call
425 add_ax_registers. Call finalize_tracepoint_aexpr.
426 (encode_actions_1): Get remote regnos for $reg action. Call
427 add_remote_register, add_ax_registers, and add_local_register.
428 Update call to add_memrange. Call finalize_tracepoint_aexpr.
429 (validate_actionline): Call finalize_tracepoint_aexpr.
430
3df3a985
PFC
4312018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
432
433 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
434 Replace array buf with gdb::char_vector buf, of size
435 get_remote_packet_size (). Replace references to buf and
436 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
437 and xsnprintf with snprintf. Raise errors if the buffer is too
438 small.
439
aa6f3694
PFC
4402018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
441
442 * remote.c (remote_target::download_tracepoint): Fix the has_more
443 predicate in the QTDP action list iteration.
444
05abfc39
PFC
4452018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
446
447 * remote.c (remote_target::download_tracepoint): Fix indentation
448 in for block.
449
821a2682
RO
4502018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
451
452 * proc-api.c (_initialize_proc_api): Remove c, unused.
453 * procfs.c (procfs_init_inferior): Remove signals, unused.
454 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
455 unused.
456
95347337
AB
4572018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
458 Andrew Burgess <andrew.burgess@embecosm.com>
459
460 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
461 'W_STOPCODE (0)' as this could be ambiguous.
462
425699f5
SDJ
4632018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
464
465 * ser-tcp.c (net_open): Fix thinko when deciding whether to
466 disable TCP's Nagle algorithm (use "ai_protocol" instead of
467 "ai_socktype").
468
3e1d3d8c
TT
4692018-08-02 Tom Tromey <tom@tromey.com>
470
471 PR symtab/16842.
472 * dwarf2read.c (read_func_scope): Set symtab on template parameter
473 symbols.
474 (process_structure_scope): Likewise.
475
15843549
XR
4762018-08-02 Xavier Roirand <roirand@adacore.com>
477
478 PR gdb/22629:
479 * darwin-nat.c (darwin_kill_inferior): Fix handling of
480 kill inferior.
481
b5bddbbb
TT
4822018-08-02 Tom Tromey <tom@tromey.com>
483
484 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
485 (darwin_suspend_inferior, darwin_resume_inferior)
486 (darwin_decode_notify_message, darwin_resume_inferior_threads)
487 (darwin_check_new_threads): Check result of get_darwin_inferior.
488
f61cfa07
JB
4892018-07-31 Joel Brobecker <brobecker@adacore.com>
490
491 GDB 8.1.1 released.
492
5abe0f0c
JV
4932018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
494
495 * varobj.c (varobj_get_path_expr_parent): Report an error if
496 parent is a dynamic varobj.
497
472fa5ee
SM
4982018-07-31 Simon Marchi <simon.marchi@ericsson.com>
499
500 * gnulib/aclocal.m4: Re-generate.
501 * gnulib/config.in: Re-generate.
502 * gnulib/configure: Re-generate.
503 * gnulib/import/Makefile.in: Re-generate.
504 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
505 * gnulib/import/m4/onceonly.m4: Re-generate.
506
1c28969e
SM
5072018-07-31 Simon Marchi <simon.marchi@ericsson.com>
508
509 * target-descriptions.c (struct xml_test_tdesc): New.
510 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
511 (record_xml_tdesc): Update.
512 (maintenance_check_xml_descriptions): Update.
513 * target-descriptions.h (record_xml_tdesc): Update comment.
514
c8f2dc0d
AB
5152018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
516
517 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
518 checking array bounds are defined.
519
463c08d1
TT
5202018-07-30 Tom Tromey <tom@tromey.com>
521
522 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
523 irreflexivity violation.
524
dba7455e
TT
5252018-07-30 Tom Tromey <tom@tromey.com>
526
527 * cli/cli-decode.c (lookup_cmd): Remove lint code.
528 * value.c (unpack_long): Remove lint code.
529 * valops.c (value_ind): Remove lint code.
530 * valarith.c (value_x_binop, value_x_unop, value_equal)
531 (value_pos): Remove lint code.
532
37cc0cae
TV
5332018-07-28 Tom de Vries <tdevries@suse.de>
534
535 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
536 with undefined upper bound as <optimized out>.
537
129eb0f1
SDJ
5382018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
539
540 * gcore.in: Rename variable "name" to "prefix". Expand
541 "usage" text.
542
6af79d7b
JT
5432018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
544
545 * windows-nat.c (windows_nat_target::create_inferior): Update to
546 call close() in global namespace.
547
79748972
TT
5482018-07-26 Tom Tromey <tom@tromey.com>
549
550 * dwarf-index-write.c (add_address_entry): Don't add objfile
551 offsets.
552 * dbxread.c (find_stab_function): Rename from
553 find_stab_function_addr. Return a bound_minimal_symbol.
554 (read_dbx_symtab): Use raw_text_low, raw_text_high.
555 Don't add objfile offsets.
556 (end_psymtab): Use raw_text_low, raw_text_high,
557 MSYMBOL_VALUE_RAW_ADDRESS.
558 (read_ofile_symtab): Update.
559 (process_one_symbol): Update.
560 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
561 offsets.
562 (dw2_relocate): Remove.
563 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
564 searching addrmap.
565 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
566 Update.
567 (process_psymtab_comp_unit_reader, add_partial_symbol)
568 (add_partial_subprogram, dwarf2_ranges_read): Update.
569 (load_partial_dies): Update.
570 (add_address_entry): Don't add objfile offsets.
571 (dwarf2_build_include_psymtabs): Update.
572 (create_addrmap_from_aranges): Don't add objfile offsets.
573 (dw2_find_pc_sect_compunit_symtab): Update.
574 * mdebugread.c (parse_symbol): Don't add objfile offsets.
575 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
576 Update.
577 (parse_partial_symbols): Don't add objfile offsets. Use
578 raw_text_low, raw_text_high. Update.
579 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
580 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
581 or call 'relocate' quick function. Clear psymbol_map.
582 * psympriv.h (struct partial_symbol) <address>: Add section
583 offset.
584 <set_unrelocated_address>: Rename from set_address.
585 <raw_text_low, raw_text_high>: New methods.
586 <text_low, text_high>: Add objfile parameter.
587 (add_psymbol_to_bcache): Add 'section' parameter. Call
588 set_unrelocated_address.
589 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
590 (find_pc_psymbol): Update.
591 (fixup_psymbol_section, relocate_psymtabs): Remove.
592 (dump_psymtab, psym_functions): Update.
593 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
594 parameter.
595 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
596 (start_psymtab_common): Update.
597 * symfile-debug.c (debug_qf_relocate): Remove.
598 (debug_sym_quick_functions): Update.
599 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
600 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
601 Update.
602
52948f01
TT
6032018-07-26 Tom Tromey <tromey@redhat.com>
604
605 * dbxread.c (end_psymtab): Use text_high_valid and
606 text_low_valid.
607 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
608 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
609 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
610 Update comment.
611 <text_low_valid, text_high_valid>: New fields.
612 <set_text_low, set_text_high>: Update.
613 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
614
4ae976d1
TT
6152018-07-26 Tom Tromey <tom@tromey.com>
616
617 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
618 Update.
619 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
620 textlow and texthigh fields.
621 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
622 Update.
623 * mdebugread.c (parse_lines, parse_partial_symbols)
624 (psymtab_to_symtab_1): Update.
625 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
626 Rename fields. Update comment. Now private.
627 <text_low, text_high, set_text_low, set_text_high>: New methods.
628 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
629 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
630 (start_psymtab_common, maintenance_info_psymtabs)
631 (maintenance_check_psymtabs): Update.
632 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
633 texthigh fields.
634 (scan_xcoff_symtab): Update.
635
02e9e7f7
TT
6362018-07-26 Tom Tromey <tromey@redhat.com>
637
638 * psympriv.h (struct partial_symbol) <unrelocated_address,
639 address, set_address>: New methods.
640 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
641 (fixup_psymbol_section, relocate_psymtabs): Update.
642 (print_partial_symbols): Add 'objfile' parameter. Update.
643 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
644 Update.
645
8a6d4234
TT
6462018-07-26 Tom Tromey <tom@tromey.com>
647
648 * dwarf-index-write.c (write_psymbols, debug_names::insert)
649 (debug_names::write_psymbols): Update.
650 * psympriv.h (struct partial_symbol): Derive from
651 general_symbol_info.
652 <obj_section>: New method.
653 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
654 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
655 (find_pc_sect_psymbol, fixup_psymbol_section)
656 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
657 (print_partial_symbols, recursively_search_psymtabs)
658 (compare_psymbols, psymbol_hash, psymbol_compare)
659 (add_psymbol_to_bcache, maintenance_check_psymtabs)
660 (psymbol_name_matches, psym_fill_psymbol_map): Update.
661
08994e1d
TT
6622018-07-26 Tom Tromey <tromey@redhat.com>
663
664 * dbxread.c (end_psymtab): Remove dead code.
665
3c3bb058
AB
6662018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
667
668 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
669 DWARF unwinders are disabled.
670 * dwarf2-frame.c: Add dwarf2read.h include.
671 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
672 disabled.
673 (dwarf2_frame_unwinders_enabled_p): Define.
674 (show_dwarf_unwinders_enabled_p): New function.
675 (_initialize_dwarf2_frame): Register switch to control DWARF
676 unwinder use.
677 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
678 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
679 (show_dwarf_cmdlist): Remove static keyword.
680 * dwarf2read.h (set_dwarf_cmdlist): Declare.
681 (show_dwarf_cmdlist): Declare.
682 * NEWS: Document new feature.
683
9e7f3bbb
TV
6842018-07-26 Tom de Vries <tdevries@suse.de>
685
686 PR breakpoints/23366
687 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
688
506f5c41
TV
6892018-07-26 Tom de Vries <tdevries@suse.de>
690
691 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
692 DW_AT_count can't be translated to a dynamic prop.
693
16f808ec
TV
6942018-07-25 Tom de Vries <tdevries@suse.de>
695
696 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
697 try/catch.
698
d7154a8d
JV
6992018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
700
701 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
702
a45389f6
JB
7032018-07-25 Joel Brobecker <brobecker@adacore.com>
704
705 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
706
380618d6
KS
7072018-07-24 Keith Seitz <keiths@redhat.comt
708
709 PR symtab/23010
710 * dwarf2read.c (dw2_add_symbol_to_list): New function.
711 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
712 instead of add_symbol_to_list.
713 (read_file_scope): Call prepare_one_comp_unit before reading
714 any other DIEs.
715
4b17aefe
SM
7162018-07-24 Simon Marchi <simon.marchi@ericsson.com>
717
718 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
719
29d17e47
TT
7202018-07-24 Tom Tromey <tom@tromey.com>
721
722 * utils.c (malloc, realloc, free): Don't declare.
723 * configure, config.in: Rebuild.
724 * configure.ac: Don't check for declarations of free, malloc, or
725 realloc.
726
cf4088a9
SM
7272018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
728
729 * aarch64-linux-nat.c
730 (aarch64_linux_nat_target::stopped_data_address): Remove unused
731 variable.
732 * arm-linux-nat.c (fetch_regs): Likewise.
733 (store_regs): Likewise.
734 (fetch_vfp_regs): Likewise.
735 (store_vfp_regs): Likewise.
736 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
737 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
738 (arm_linux_nat_target::insert_watchpoint): Likewise.
739 (arm_linux_nat_target::remove_watchpoint): Likewise.
740 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
741 Likewise.
742 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
743 Likewise.
744 * ppc-linux-nat.c (fetch_register): Likewise.
745 (fetch_all_gp_regs): Likewise.
746 (fetch_ppc_registers): Likewise.
747 (store_all_gp_regs): Likewise.
748 (store_ppc_registers): Likewise.
749 (hwdebug_insert_point): Likewise.
750 (can_use_watchpoint_cond_accel): Likewise.
751 * remote-sim.c (gdb_os_write_stdout): Likewise.
752
a0de763e
TT
7532018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
754 Tom Tromey <tom@tromey.com>
755
756 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
757 test for it.
758 * configure: Rebuild.
759
3b20124b
TT
7602018-07-22 Tom Tromey <tom@tromey.com>
761
762 * regformats/regdat.sh: Define xmltarget_${name} inside
763 #ifndef IN_PROCESS_AGENT.
764
8c8807f4
TT
7652018-07-22 Tom Tromey <tom@tromey.com>
766
767 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
768
c486b610
TT
7692018-07-22 Tom Tromey <tom@tromey.com>
770
771 * symfile.c (reread_symbols): Notify iter, not objfile.
772
494f80a9
TT
7732018-07-22 Tom Tromey <tom@tromey.com>
774
775 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
776 Use arch_ops.
777 (ravenscar_thread_target::prepare_to_store): Likewise.
778
c51f6a54
TT
7792018-07-22 Tom Tromey <tom@tromey.com>
780
781 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
782 unused variable. Call value_fetch_lazy when needed.
783 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
784 Remove unused variable. Call value_fetch_lazy when needed.
785
374fd1fd
TT
7862018-07-22 Tom Tromey <tom@tromey.com>
787
788 * m32c-tdep.c (mark_dma): Return void.
789 (make_regs): Remove unused declarations.
790
d5e9a511
TT
7912018-07-22 Tom Tromey <tom@tromey.com>
792
793 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
794 cmdscm_get_valid_command_smob_arg_unsafe for effect.
795 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
796 bkscm_get_valid_block_smob_arg_unsafe for effect.
797
996d693a
TT
7982018-07-22 Tom Tromey <tom@tromey.com>
799
800 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
801 value_type.
802
15766370
TT
8032018-07-22 Tom Tromey <tom@tromey.com>
804
805 * windows-nat.c (saved_context): Conditionally define.
806 * remote.c (remote_target::remote_btrace_maybe_reopen):
807 Conditionally declare "warned".
808 * inflow.c (sigquit_ours): Conditionally define.
809 (new_tty): Move "tty" declaration inside #if.
810 * guile/guile.c (guile_datadir): Conditionally define.
811 * charset.c (set_be_le_names): Move some declarations inside #if.
812 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
813 #if.
814 (parse_xml_btrace_conf): Likewise.
815
f4e80e13
TT
8162018-07-22 Tom Tromey <tom@tromey.com>
817
818 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
819
8d49165d
TT
8202018-07-22 Tom Tromey <tom@tromey.com>
821
822 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
823 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
824 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
825 * buildsym-legacy.c (get_macro_table): Remove unused variable.
826 * stack.c (frame_apply_level_command): Remove unused variable.
827 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
828 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
829 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
830 unused variable.
831 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
832 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
833 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
834 variable.
835 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
836 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
837 variable.
838 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
839 Remove unused variable.
840 * cli/cli-script.c (recurse_read_control_structure): Remove unused
841 variable.
842 * common/tdesc.c (print_xml_feature::visit): Remove unused
843 variable.
844 * compile/compile-object-load.c (store_regs): Remove unused
845 variables.
846 * complaints.c (clear_complaints): Remove unused variable.
847 * corelow.c (core_target_open): Remove unused variable.
848 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
849 variable.
850 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
851 variable.
852 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
853 variable.
854 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
855 variable.
856 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
857 variable.
858 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
859 variable.
860 * ia64-tdep.c (examine_prologue): Remove unused variable.
861 * infcall.c (run_inferior_call): Remove unused variable.
862 * inferior.c (exit_inferior): Remove unused variable.
863 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
864 * linespec.c (decode_line_2): Remove unused variable.
865 * linux-nat.c (super_close): Remove.
866 * linux-tdep.c (linux_info_proc): Remove unused variable.
867 * mi/mi-main.c (mi_execute_command): Remove unused variable.
868 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
869 Remove unused variable.
870 * parse.c (find_minsym_type_and_address): Remove unused variable.
871 * printcmd.c (info_symbol_command, printf_floating): Remove unused
872 variable.
873 * python/py-breakpoint.c (bppy_set_commands): Remove unused
874 variable.
875 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
876 variables.
877 * record-btrace.c (record_btrace_target::store_registers): Remove
878 unused variable.
879 (cmd_show_record_btrace_cpu): Remove unused variable.
880 * riscv-tdep.c (riscv_register_reggroup_p)
881 (riscv_push_dummy_call, riscv_return_value): Remove unused
882 variable.
883 * rust-exp.y (literal): Remove unused variable.
884 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
885 unused variable.
886 <STRUCTOP_ANONYMOUS>: Likewise.
887 * s390-linux-tdep.c (s390_linux_init_abi_31)
888 (s390_linux_init_abi_64): Remove unused variable.
889 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
890 (file_select_thread, net_windows_open, _initialize_ser_windows):
891 Remove unused variables.
892 * symtab.c (find_pc_sect_line): Remove unused variable.
893 * target-memory.c (compute_garbled_blocks): Remove unused
894 variable.
895 (target_write_memory_blocks): Remove unused variable.
896 * target.c (target_stack::unpush): Remove unused variables.
897 * tracepoint.c (start_tracing, all_tracepoint_actions)
898 (merge_uploaded_trace_state_variables)
899 (print_one_static_tracepoint_marker): Remove unused variable.
900 * unittests/basic_string_view/element_access/char/1.cc (test01):
901 Remove unused variable.
902 * windows-nat.c (windows_continue, windows_add_all_dlls)
903 (do_initial_windows_stuff, windows_nat_target::create_inferior):
904 Remove unused variables.
905
17cbafdb
SM
9062018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
907
908 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
909 attr_profile in HAVE_ELF.
910 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
911 HAVE_ELF.
912
0ee6c332
SM
9132018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
914
915 * frame.c (frame_register_unwind): Change parameter name.
916 (frame_unwind_register): Likewise.
917 (frame_unwind_register_value): Likewise.
918 (frame_unwind_register_signed): Likewise.
919 (frame_unwind_register_unsigned): Likewise.
920 * frame.h (frame_register_unwind): Likewise.
921 (frame_unwind_register): Likewise.
922 (frame_unwind_register_value): Likewise.
923 (frame_unwind_register_signed): Likewise.
924 (frame_unwind_register_unsigned): Likewise.
925 (frame_unwind_arch): Likewise.
926
e2e31f10
MR
9272018-07-20 Maciej W. Rozycki <macro@mips.com>
928
929 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
930 ISA maintenance.
931
2d389915
MR
9322018-07-20 Maciej W. Rozycki <macro@mips.com>
933
934 * mips-linux-nat.c (mips_linux_nat_target::read_description):
935 Call `get_ptrace_pid' rather than extracting the ptrace PID by
936 hand.
937
cbb09508
KS
9382018-07-20 Keith Seitz <keiths@redhat.com>
939
940 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
941 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
942 m_compunit_symtab, m_language>: Add "m_" prefix.
943 Update all uses.
944 * buildsym.c: Update all uses.
945
bfe2e011
TT
9462018-07-20 Tom Tromey <tom@tromey.com>
947
948 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
949 * buildsym.h (record_line_ftype): Remove typedef.
950
0e6f3061
TT
9512018-07-20 Tom Tromey <tom@tromey.com>
952
953 * buildsym-legacy.h (augment_type_symtab): Don't declare.
954 (end_expandable_symtab): Likewise.
955 (end_symtab_get_static_block): Likewise.
956 (end_symtab_from_static_block): Likewise.
957 * buildsym-legacy.c (augment_type_symtab): Remove.
958 (end_expandable_symtab): Remove.
959 (end_symtab_get_static_block): Remove.
960 (end_symtab_from_static_block): Remove.
961
804d2729
TT
9622018-07-20 Tom Tromey <tom@tromey.com>
963
964 * dwarf2read.c: Include buildsym.h.
965 (struct dwarf2_cu) <builder>: New method.
966 (fixup_go_packaging): Update.
967 (process_full_comp_unit, process_full_type_unit): Update. Don't
968 use scoped_free_pendings.
969 (using_directives): Add "cu" parameter, remove "language".
970 (read_import_statement, setup_type_unit_groups, )
971 (read_func_scope, read_lexical_block_scope)
972 (dwarf2_record_block_ranges, read_namespace): Update.
973 (lnp_state_machine::lnp_state_machine): Add cu parameter.
974 (lnp_state_machine::handle_end_sequence): Update.
975 (class lnp_state_machine) <m_cu>: New member.
976 <m_record_line_callback>: Remove.
977 <m_currently_recording_lines>: New member.
978 (lnp_state_machine::handle_set_file): Update.
979 (noop_record_line): Remove.
980 (dwarf_record_line_p): Add cu parameter.
981 (dwarf_record_line_1, dwarf_finish_line): Likewise.
982 (lnp_state_machine::record_line)
983 (lnp_state_machine::lnp_state_machine)
984 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
985 (dwarf_decode_lines): Update.
986 (dwarf2_start_subfile): Add cu parameter.
987 (dwarf2_start_symtab, new_symbol): Update.
988 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
989 Remove dwarf2_per_objfile parameter.
990 (dwarf_decode_macros): Update.
991
80e649fc
TT
9922018-07-20 Tom Tromey <tom@tromey.com>
993
994 * stabsread.c (define_symbol): Update.
995 * buildsym-legacy.h (get_buildsym_compunit): Declare.
996 * dwarf2read.c (new_symbol): Update.
997 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
998 * cp-namespace.c: Include buildsym.h.
999 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
1000 * buildsym-legacy.c (get_buildsym_compunit): New function.
1001
0baae8db
TT
10022018-07-20 Tom Tromey <tom@tromey.com>
1003
1004 * xcoffread.c: Include buildsym-legacy.h.
1005 * windows-nat.c: Include buildsym-legacy.h.
1006 * stabsread.c: Include buildsym-legacy.h.
1007 * mdebugread.c: Include buildsym-legacy.h.
1008 * buildsym-legacy.h: New file.
1009 * buildsym-legacy.c: New file, from buildsym.c.
1010 * go32-nat.c: Include buildsym-legacy.h.
1011 * dwarf2read.c: Include buildsym-legacy.h.
1012 * dbxread.c: Include buildsym-legacy.h.
1013 * cp-namespace.c: Include buildsym-legacy.h.
1014 * coffread.c: Include buildsym-legacy.h.
1015 * buildsym.h: Move some contents to buildsym-legacy.h.
1016 * buildsym.c: Include buildsym-legacy.h. Move many functions to
1017 buildsym-legacy.c.
1018 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
1019
ab209f6f
TT
10202018-07-20 Tom Tromey <tom@tromey.com>
1021
1022 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
1023 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
1024 (buildsym_compunit::buildsym_compunit)
1025 (buildsym_compunit::~buildsym_compunit)
1026 (buildsym_compunit::get_macro_table): Define.
1027
74c72eac
TT
10282018-07-20 Tom Tromey <tom@tromey.com>
1029
1030 * buildsym.c (reset_symtab_globals): Remove.
1031 (buildsym_compunit::end_symtab_from_static_block): Update.
1032 (buildsym_compunit::augment_type_symtab): Update.
1033 (end_symtab_from_static_block): Call free_buildsym_compunit.
1034 (augment_type_symtab, end_symtab, end_expandable_symtab):
1035 Likewise.
1036
da6580e5
TT
10372018-07-20 Tom Tromey <tom@tromey.com>
1038
1039 * arch-utils.c: Do not include buildsym.h.
1040 * mipsread.c: Do not include buildsym.h.
1041 * machoread.c: Do not include buildsym.h.
1042 * elfread.c: Do not include buildsym.h.
1043
4a2125f5
TT
10442018-07-20 Tom Tromey <tom@tromey.com>
1045
1046 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
1047 initialization.
1048 (buildsym_compunit): Add new constructor.
1049 (struct buildsym_compunit) <get_last_source_file, finish_block,
1050 record_block_range, start_subfile, patch_subfile_names,
1051 push_subfile, pop_subfile, record_line, get_compunit_symtab,
1052 set_last_source_start_addr, get_last_source_start_addr,
1053 get_local_using_directives, set_local_using_directives,
1054 get_global_using_directives, outermost_context_p,
1055 get_current_context_stack, get_context_stack_depth,
1056 get_current_subfile, get_local_symbols, get_file_symbols,
1057 get_global_symbols, record_debugformat, record_producer,
1058 push_context, pop_context, end_symtab_get_static_block,
1059 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
1060 New public methods.
1061 <record_pending_block, finish_block_internal, make_blockvector,
1062 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
1063 private methods.
1064 Update all users.
1065
10662018-05-22 Tom Tromey <tom@tromey.com>
1067
1068 * buildsym.c (record_pending_block): Move earlier. Remove objfile
1069 parameter.
1070 (finish_block_internal): Update.
1071
6b213a47
TT
10722018-07-20 Tom Tromey <tom@tromey.com>
1073
1074 * buildsym.c (record_pending_block): Move earlier. Remove objfile
1075 parameter.
1076 (finish_block_internal): Update.
1077
b80a981d
TT
10782018-07-20 Tom Tromey <tom@tromey.com>
1079
1080 * buildsym.h (EXTERN): Don't define or undef.
1081 * buildsym.c (EXTERN): Don't define.
1082
ddb70602
TT
10832018-07-20 Tom Tromey <tom@tromey.com>
1084
1085 * buildsym.c: Remove TODO comment.
1086
b37dd3bc
TT
10872018-07-20 Tom Tromey <tom@tromey.com>
1088
1089 * coffread.c (coff_symtab_read): Update.
1090 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1091 (xcoff_new_init): Update.
1092 * mipsread.c (mipscoff_new_init): Update.
1093 * mdebugread.c (mdebug_build_psymtabs): Update.
1094 * elfread.c (elf_new_init): Update.
1095 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
1096 Update.
1097 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
1098 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1099 (stabsect_build_psymtabs): Update.
1100 * buildsym.h (buildsym_init): Don't declare.
1101 * buildsym.c: Update comment.
1102 (prepare_for_building): Remove.
1103 (start_symtab, restart_symtab): Update.
1104 (reset_symtab_globals): Update comment.
1105 (buildsym_init): Remove.
1106
e148f09d
TT
11072018-07-20 Tom Tromey <tom@tromey.com>
1108
1109 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
1110 * stabsread.c (patch_block_stabs, define_symbol, read_type)
1111 (read_enum_type, common_block_start, common_block_end)
1112 (cleanup_undefined_types_1, finish_global_stabs): Update.
1113 * mdebugread.c (psymtab_to_symtab_1): Update.
1114 * dwarf2read.c (fixup_go_packaging, read_func_scope)
1115 (read_lexical_block_scope, new_symbol): Update.
1116 * dbxread.c (process_one_symbol): Update.
1117 * coffread.c (coff_symtab_read, process_coff_symbol)
1118 (coff_read_enum_type): Update.
1119 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
1120 declare.
1121 (get_local_symbols, get_file_symbols, get_global_symbols): New
1122 functions.
1123 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
1124 m_global_symbols.
1125 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
1126 (~scoped_free_pendings): Update.
1127 (finish_block, prepare_for_building, reset_symtab_globals)
1128 (end_symtab_get_static_block, end_symtab_with_blockvector)
1129 (augment_type_symtab, push_context): Update.
1130 (get_local_symbols, get_file_symbols, get_global_symbols): New
1131 functions.
1132 (buildsym_init): Update.
1133
93b8bea4
TT
11342018-07-20 Tom Tromey <tom@tromey.com>
1135
1136 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
1137 (process_full_type_unit): Likewise.
1138 (dwarf2_start_symtab): Set list_in_scope.
1139
f62f6af5
TT
11402018-07-20 Tom Tromey <tom@tromey.com>
1141
1142 * dwarf2read.c (process_psymtab_comp_unit_reader)
1143 (build_type_psymtabs_reader): Do not set list_in_scope.
1144
1d376700
TT
11452018-07-20 Tom Tromey <tom@tromey.com>
1146
1147 * buildsym.c (free_pendings): Remove.
1148 (add_symbol_to_list, scoped_free_pendings)
1149 (finish_block_internal, buildsym_init): Update.
1150
c233e9c6
TT
11512018-07-20 Tom Tromey <tom@tromey.com>
1152
1153 * xcoffread.c (read_xcoff_symtab): Update.
1154 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
1155 Update.
1156 * dbxread.c (process_one_symbol): Update.
1157 * coffread.c (coff_symtab_read): Update.
1158 * buildsym.h (finish_block): Update.
1159 * buildsym.c (finish_block): Remove "listhead" argument.
1160 (end_symtab_get_static_block): Update.
1161
5ac04550
TT
11622018-07-20 Tom Tromey <tom@tromey.com>
1163
1164 * buildsym.h (class scoped_free_pendings): Remove constructor.
1165 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
1166 method.
1167 <m_pending_block_obstack, m_pending_blocks>: New members.
1168 (pending_block_obstack, pending_blocks): Remove.
1169 (scoped_free_pendings::scoped_free_pendings): Default.
1170 (~scoped_free_pendings): Update.
1171 (free_pending_blocks): Remove.
1172 (finish_block_internal, record_pending_block, make_blockvector)
1173 (end_symtab_get_static_block, augment_type_symtab, push_context)
1174 (buildsym_init): Update.
1175
7ea05a7b
TT
11762018-07-20 Tom Tromey <tom@tromey.com>
1177
1178 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
1179 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
1180 members.
1181 (pending_addrmap, pending_addrmap_obstack)
1182 (pending_addrmap_interesting): Remove.
1183 (scoped_free_pendings, record_block_range, make_blockvector)
1184 (prepare_for_building, reset_symtab_globals, buildsym_init):
1185 Update.
1186
3c65e5b3
TT
11872018-07-20 Tom Tromey <tom@tromey.com>
1188
1189 * xcoffread.c (process_linenos): Update.
1190 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
1191 * mdebugread.c (psymtab_to_symtab_1): Update.
1192 * dwarf2read.c (setup_type_unit_groups)
1193 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
1194 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
1195 * dbxread.c (process_one_symbol): Update.
1196 * coffread.c (coff_symtab_read, enter_linenos)
1197 (process_coff_symbol): Update.
1198 * buildsym.h (current_subfile): Don't declare.
1199 (get_current_subfile): Declare.
1200 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
1201 member.
1202 (start_subfile, free_buildsym_compunit, push_subfile)
1203 (prepare_for_building, start_symtab): Update.
1204 (get_current_subfile): New function.
1205
a60f3166
TT
12062018-07-20 Tom Tromey <tom@tromey.com>
1207
1208 * coffread.c (coff_symtab_read): Update.
1209 * xcoffread.c (read_xcoff_symtab): Update.
1210 * dwarf2read.c (new_symbol): Update.
1211 (read_func_scope, read_lexical_block_scope): Update.
1212 * dbxread.c (process_one_symbol): Update.
1213 * buildsym.h (context_stack, context_stack_depth): Don't declare.
1214 (outermost_context_p): Remove macro.
1215 (outermost_context_p, get_current_context_stack)
1216 (get_context_stack_depth): Declare.
1217 (pop_context): Return struct context_stack.
1218 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
1219 member.
1220 (context_stack_size): Remove.
1221 (INITIAL_CONTEXT_STACK_SIZE): Remove.
1222 (prepare_for_building, end_symtab_get_static_block)
1223 (augment_type_symtab, push_context): Update.
1224 (pop_context): Return struct context_stack.
1225 (outermost_context_p, get_current_context_stack)
1226 (get_context_stack_depth): New functions.
1227 (buildsym_init): Update.
1228
56ba65a0
TT
12292018-07-20 Tom Tromey <tom@tromey.com>
1230
1231 * rust-exp.y: Now a pure parser. Update all rules.
1232 (%union): Move earlier.
1233 (current_parser, work_obstack): Remove globals.
1234 (rust_parser, ~rust_parser): Update.
1235 (class rust_parser) <copy_name, concat3, crate_name, super_name,
1236 lex_character, lex_number, lex_string, lex_identifier,
1237 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
1238 convert_name, convert_params_to_expression,
1239 convert_ast_to_expression, ast_basic_type, ast_operation,
1240 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
1241 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
1242 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
1243 ast_array_type, ast_slice_type, ast_reference_type,
1244 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
1245 (rust_parse): Update.
1246 (rustyyerror, rustyylex): Add parser parameter.
1247 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
1248 (rust_lex_stringish_test, rust_lex_test_sequence)
1249 (rust_lex_test_trailing_dot, rust_lex_test_completion)
1250 (rust_lex_test_push_back, rust_lex_tests): Update.
1251
4c693332
PA
12522018-07-19 Pedro Alves <palves@redhat.com>
1253
1254 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
1255 gdb::unique_xmalloc_ptr.
1256 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
1257 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
1258 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
1259 copy-initialization.
1260 * guile/scm-pretty-print.c (ppscm_print_children): Use
1261 gdb::unique_xmalloc_ptr instead of cleanups.
1262 (gdbscm_apply_val_pretty_printer): Remove cleanups.
1263 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
1264 gdb::unique_xmalloc_ptr.
1265 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1266 Adjust to use gdb::unique_xmalloc_ptr.
1267 * guile/scm-utils.c (extract_arg): Adjust.
1268 * guile/scm-value.c (gdbscm_value_field): Adjust to use
1269 gdb::unique_xmalloc_ptr instead of a cleanup.
1270
4581dc82
TT
12712018-07-19 Tom Tromey <tom@tromey.com>
1272
1273 * utils.c (do_value_free_to_mark)
1274 (make_cleanup_value_free_to_mark): Remove.
1275 * utils.h (make_cleanup_value_free_to_mark): Remove.
1276
43cc6c3a
PA
12772018-07-19 Pedro Alves <palves@redhat.com>
1278
1279 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
1280 forwarding reference.
1281
3a5f2a48
PA
12822018-07-18 Pedro Alves <palves@redhat.com>
1283
1284 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
1285 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
1286 cleanup.
1287
557e56be
PA
12882018-07-18 Pedro Alves <palves@redhat.com>
1289
1290 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
1291 exceptions.
1292 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
1293 (gdbscm_wrap): New.
1294 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
1295 directly instead of a cleanup.
1296 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
1297 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
1298 (vlscm_binop_gdbthrow): New, factored out from ...
1299 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
1300 (vlscm_rich_compare): Use gdbscm_wrap.
1301 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
1302 instead of a cleanup.
1303 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
1304 cleanup.
1305 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1306 Use xfree directly instead of a cleanup.
1307 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
1308 Adjust to use gdbscm_wrap and scoped_value_mark.
1309 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
1310 (gdbscm_value_address, gdbscm_value_dereference)
1311 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
1312 scoped_value_mark.
1313 (gdbscm_value_dynamic_type): Use scoped_value_mark.
1314 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
1315 scoped_value_mark.
1316 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
1317 gdbscm_wrap and scoped_value_mark.
1318 (gdbscm_value_to_string): Use xfree directly instead of a
1319 cleanup. Move 'buffer' unique_ptr to TRY scope.
1320 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
1321 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
1322 scoped_value_mark.
1323 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
1324 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
1325 scoped_value_mark.
1326 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
1327 gdbscm_wrap.
1328
42dc7699
TV
13292018-07-18 Tom de Vries <tdevries@suse.de>
1330
1331 * findvar.c (default_read_var_value): Also resolve dynamic type for
1332 LOC_OPTIMIZED_OUT vars.
1333
6592ceed
MR
13342018-07-18 Maciej W. Rozycki <macro@mips.com>
1335
1336 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
1337 decoding.
1338
c6c6149a
TT
13392018-07-17 Tom Tromey <tom@tromey.com>
1340
1341 * guile/scm-param.c (pascm_set_func, pascm_show_func)
1342 (compute_enum_list, pascm_set_param_value_x)
1343 (gdbscm_parameter_value): Update.
1344 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
1345 (gdbscm_scm_to_host_string): Update.
1346 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
1347 Update.
1348 * guile/scm-cmd.c (cmdscm_add_completion): Update.
1349 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
1350 * guile/scm-string.c (gdbscm_scm_to_string): Return
1351 unique_xmalloc_ptr.
1352 (gdbscm_scm_to_host_string): Likewise.
1353
a1a31cb8
TT
13542018-07-17 Tom Tromey <tom@tromey.com>
1355
1356 * guile/guile.c (gdbscm_eval_from_control_command): Update.
1357 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
1358 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
1359 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
1360 unique_xmalloc_ptr.
1361
15bf3002
TT
13622018-07-17 Tom Tromey <tom@tromey.com>
1363
1364 * guile/scm-param.c (pascm_signal_setshow_error): Update.
1365 * guile/guile-internal.h (gdbscm_exception_message_to_string):
1366 Update.
1367 * guile/scm-cmd.c (cmdscm_function): Update.
1368 * guile/scm-pretty-print.c
1369 (ppscm_print_exception_unless_memory_error): Update.
1370 * guile/scm-exception.c (gdbscm_exception_message_to_string):
1371 Return unique_xmalloc_ptr.
1372
7eb1a66c
TT
13732018-07-17 Tom Tromey <tom@tromey.com>
1374
1375 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
1376 Use string_printf.
1377
ce73f310
JW
13782018-07-17 Jim Wilson <jimw@sifive.com>
1379
27724bad
JW
1380 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
1381 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
1382 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
1383 unecessary braces after EF_RISCV_RVC test. Delete call to
1384 set_gdbarch_decr_pc_after_break.
1385
ce73f310
JW
1386 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
1387 RISCV_LAST_FP_REGNUM + 1.
1388 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
1389
056dec39
TT
13902018-07-17 Tom Tromey <tom@tromey.com>
1391
1392 * configure.ac: Remove --disable-gdbcli.
1393 * configure: Rebuild.
1394 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
1395 (SUBDIR_CLI_CFLAGS): Remove.
1396 (SFILES): Use SUBDIR_CLI_SRCS.
1397 (COMMON_OBS): Use SUBDIR_CLI_OBS.
1398
4735f0ed
TT
13992018-07-17 Tom Tromey <tom@tromey.com>
1400
1401 PR gdb/18624:
1402 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
1403
117a0e99
JW
14042018-07-16 Jim Wilson <jimw@sifive.com>
1405
1406 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
1407
8a67aaa8
SM
14082018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1409
1410 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
1411 variable.
1412 (libunwind_frame_sniffer): Likewise.
1413 (libunwind_frame_prev_register): Likewise.
1414 (libunwind_sigtramp_frame_sniffer): Likewise.
1415 * ia64-tdep.c (ia64_access_reg): Likewise.
1416 (ia64_access_rse_reg): Likewise.
1417 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
1418 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
1419
ec74dcd8
SM
14202018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1421
1422 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
1423
a700e753
SM
14242018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1425
1426 * remote-sim.c (gdbsim_target::close,
1427 gdbsim_target::mourn_inferior): Remove unused variables.
1428
8b411ff8
SM
14292018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
1430
1431 * ia64-tdep.c (ktab_buf): New global.
1432 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
1433 (get_kernel_table): Adjust.
1434
edb0470b
TT
14352018-07-16 Tom Tromey <tom@tromey.com>
1436
1437 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
1438 * dwarf2read.c (using_directives, new_symbol): Use
1439 outermost_context_p.
1440 * dbxread.c (process_one_symbol): Use outermost_context_p.
1441 * coffread.c (coff_symtab_read): Use outermost_context_p.
1442
6cccc9a8
TT
14432018-07-16 Tom Tromey <tom@tromey.com>
1444
1445 * dwarf2read.c (using_directives, read_func_scope)
1446 (read_lexical_block_scope): Update.
1447 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1448 * buildsym.h (local_using_directives, global_using_directives):
1449 Don't declare.
1450 (get_local_using_directives, set_local_using_directives)
1451 (get_global_using_directives): Declare.
1452 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
1453 m_global_using_directives>: New members.
1454 (finish_block_internal, prepare_for_building)
1455 (reset_symtab_globals, end_symtab_get_static_block)
1456 (push_context): Update.
1457 (get_local_using_directives, set_local_using_directives)
1458 (get_global_using_directives): New functions.
1459 (buildsym_init): Update.
1460
652788a7
TT
14612018-07-16 Tom Tromey <tom@tromey.com>
1462
1463 * xcoffread.c (xcoff_initial_scan): Don't call
1464 free_pending_blocks.
1465 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
1466 * buildsym.h (class scoped_free_pendings): Add constructor.
1467 (free_pending_blocks): Don't declare.
1468 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
1469 (free_pending_blocks): Now static.
1470
8419ee53
TT
14712018-07-16 Tom Tromey <tom@tromey.com>
1472
1473 * buildsym.h (push_subfile, pop_subfile): Update declarations.
1474 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
1475 member.
1476 (struct subfile_stack): Remove.
1477 (subfile_stack): Remove.
1478 (push_subfile, pop_subfile, buildsym_init): Update.
1479
ccdac490
TT
14802018-07-16 Tom Tromey <tom@tromey.com>
1481
1482 * buildsym.c (push_subfile): Use gdb_assert.
1483 (pop_subfile): Use gdb_assert.
1484
43130d6f
TT
14852018-07-16 Tom Tromey <tom@tromey.com>
1486
1487 * buildsym.h (merge_symbol_lists): Remove.
1488 * buildsym.c (merge_symbol_lists): Remove.
1489
77d6f1aa
TT
14902018-07-16 Tom Tromey <tom@tromey.com>
1491
1492 * stabsread.c (scan_file_globals): Update comment.
1493 * stabsread.h (scan_file_globals): Move from buildsym.h.
1494 * buildsym.h (scan_file_globals): Move to stabsread.h.
1495
2c722d18
TT
14962018-07-16 Tom Tromey <tom@tromey.com>
1497
1498 * xcoffread.c (xcoff_new_init): Update.
1499 * mipsread.c (mipscoff_new_init): Update.
1500 * mdebugread.c (mdebug_build_psymtabs): Update.
1501 * elfread.c (elf_new_init): Update.
1502 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
1503 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
1504 * buildsym.h (buildsym_new_init): Don't declare.
1505 * buildsym.c (buildsym_new_init): Remove.
1506
5985ac61
TT
15072018-07-16 Tom Tromey <tom@tromey.com>
1508
1509 * stabsread.h (within_function): Move from buildsym.h.
1510 * stabsread.c (start_stabs): Clear within_function.
1511 * coffread.c (coff_start_symtab): Clear within_function.
1512 * buildsym.h (within_function): Move to stabsread.h.
1513 * buildsym.c (prepare_for_building): Update.
1514
6b84eeb2
TT
15152018-07-16 Tom Tromey <tom@tromey.com>
1516
1517 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
1518 * dwarf2read.c (dwarf2_start_symtab): Don't set
1519 processing_gcc_compilation.
1520 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
1521
2150c3ef
TT
15222018-07-16 Tom Tromey <tom@tromey.com>
1523
1524 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
1525 (next_symbol_text_func): Move from buildsym.h.
1526 * stabsread.c (hashname): Move from buildsym.c.
1527 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
1528 (next_symbol_text_func, hashname): Move to stabsread.h.
1529 * buildsym.c: Don't include bcache.h
1530 (hashname): Move to stasbread.c.
1531
0ec44fc0
TT
15322018-07-16 Tom Tromey <tom@tromey.com>
1533
1534 * buildsym.h (context_stack_size): Don't declare.
1535 * buildsym.c (context_stack_size): New global.
1536
81cc346d
TT
15372018-07-16 Tom Tromey <tom@tromey.com>
1538
1539 * dbxread.c (processing_acc_compilation): New global.
1540 * buildsym.h (processing_acc_compilation): Don't declare.
1541
2c99ee5c
TT
15422018-07-16 Tom Tromey <tom@tromey.com>
1543
1544 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
1545 * dbxread.c (read_ofile_symtab): Update.
1546 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
1547 * buildsym.h (last_source_start_addr): Remove.
1548 (set_last_source_start_addr, get_last_source_start_addr):
1549 Declare.
1550 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
1551 parameter.
1552 (struct buildsym_compunit) <m_last_source_start_addr>: New
1553 member.
1554 (prepare_for_building): Remove start_addr parameter.
1555 (start_symtab, restart_symtab, end_symtab_get_static_block)
1556 (end_symtab_with_blockvector): Update.
1557 (set_last_source_start_addr, get_last_source_start_addr): New
1558 functions.
1559
530fedbc
TT
15602018-07-16 Tom Tromey <tom@tromey.com>
1561
1562 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
1563 member.
1564 (have_line_numbers): Remove.
1565 (record_line, prepare_for_building, end_symtab_get_static_block)
1566 (augment_type_symtab): Update.
1567
6a976300
TT
15682018-07-16 Tom Tromey <tom@tromey.com>
1569
1570 * buildsym.c (~buildsym_compunit): Free the macro table.
1571 (struct buildsym_compunit) <get_macro_table, release_macros>: New
1572 methods.
1573 <m_pending_macros>: New member.
1574 (pending_macros): Remove.
1575 (~scoped_free_pendings, get_macro_table, prepare_for_building)
1576 (reset_symtab_globals, end_symtab_get_static_block)
1577 (end_symtab_with_blockvector, augment_type_symtab)
1578 (buildsym_init): Update.
1579
c0015d44
TT
15802018-07-16 Tom Tromey <tom@tromey.com>
1581
1582 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
1583 parameter.
1584 (buildsym_compunit::set_last_source_file): New method.
1585 <m_last_source_file>: New member.
1586 (prepare_for_building): Remove "name" parameter.
1587 (start_symtab, restart_symtab, reset_symtab_globals): Update.
1588 (last_source_file): Remove.
1589 (set_last_source_file, get_last_source_file): Update.
1590
e62cca7c
TT
15912018-07-16 Tom Tromey <tom@tromey.com>
1592
1593 * buildsym.c (prepare_for_building): Add assert.
1594
905eb0e2
TT
15952018-07-16 Tom Tromey <tom@tromey.com>
1596
1597 * buildsym.c (~buildsym_compunit): Update.
1598 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
1599 (start_subfile, patch_subfile_names)
1600 (end_symtab_with_blockvector): Update.
1601
b248663f
TT
16022018-07-16 Tom Tromey <tom@tromey.com>
1603
1604 * buildsym.c (struct buildsym_compunit): Add constructor,
1605 destructor, initializers.
1606 (start_buildsym_compunit): Remove.
1607 (free_buildsym_compunit): Use "delete".
1608 (start_symtab, restart_symtab): Use "new".
1609
ff27d073
SM
16102018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
1611
1612 * symfile.c (set_objfile_default_section_offset): Remove struct
1613 keyword.
1614
6a15ecf5
SH
16152018-07-14 Stafford Horne <shorne@gmail.com>
1616
1617 * (Responsible Maintainers): Add myself as or1k maintainer.
1618
027a4c30
TT
16192018-07-13 Tom Tromey <tom@tromey.com>
1620
1621 * symfile.c (set_objfile_default_section_offset): Use extra braces
1622 around initializer.
1623
5c1eda30
AA
16242018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1625
1626 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
1627 non-branching basr.
1628
bc7b042b
PW
16292018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1630
1631 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1632 unittests/cli-utils-selftests.c
1633 * unittests/cli-utils-selftests.c: New file.
1634
a14c4daa
PW
16352018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1636
1637 * NEWS: Mention new commands. Mention change to 'thread apply'.
1638
1fe75df7
PW
16392018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1640
1641 * thread.c (thr_try_catch_cmd): New function.
1642 (thread_apply_all_command): Handle qcs flags.
1643 (thread_apply_command): Handle qcs flags.
1644 (taas_command): New function.
1645 (tfaas_command): New function.
1646 (_initialize_thread): Update to setup the new commands 'taas
1647 and 'tfaas'. Change doc string for 'thread apply'.
1648
6a70eb7d
PW
16492018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1650
1651 * stack.c: (trailing_outermost_frame): New function, mostly
1652 extracted from backtrace_command_1.
1653 (leading_innermost_frame): New function.
1654 (backtrace_command_1): Update to call trailing_outermost_frame.
1655 (frame_apply_command_count): New function.
1656 (frame_apply_level_command): New function.
1657 (frame_apply_all_command): New function.
1658 (frame_apply_command): New function.
1659 (faas_command): New function.
1660 (frame_cmd_list): New variable.
1661 (_initialize_stack): Update to setup the new commands 'frame apply'
1662 and 'faas'.
1663
529c08b2
PW
16642018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1665
1666 * cli-utils.c (number_or_range_parser::get_number): Only handle
1667 numbers or convenience var as numbers.
1668 (parse_flags): New function.
1669 (parse_flags_qcs): New function.
1670 (number_or_range_parser::finished): Ensure parsing end is detected
1671 before end of string.
1672 * cli-utils.h (parse_flags): New function.
1673 (parse_flags_qcs): New function.
1674 (number_or_range_parser): Remove m_finished bool.
1675 (number_or_range_parser::skip_range): Set m_in_range to false.
1676
64b58472
SDJ
16772018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
1678
1679 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
1680 on Windows.
1681
c7ab0aef
SDJ
16822018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1683 Jan Kratochvil <jan.kratochvil@redhat.com>
1684 Paul Fertser <fercerpav@gmail.com>
1685 Tsutomu Seki <sekiriki@gmail.com>
1686 Pedro Alves <palves@redhat.com>
1687
1688 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1689 'unittests/parse-connection-spec-selftests.c'.
1690 (COMMON_SFILES): Add 'common/netstuff.c'.
1691 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
1692 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
1693 * common/netstuff.c: New file.
1694 * common/netstuff.h: New file.
1695 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
1696 (wait_for_connect): Update comment. New parameter
1697 'gdb::optional<int> sock' instead of 'struct serial *scb'.
1698 Use 'sock' directly instead of 'scb->fd'.
1699 (try_connect): New function, with code from 'net_open'.
1700 (net_open): Rewrite main loop to deal with multiple
1701 sockets/addresses. Handle IPv6-style hostnames; implement
1702 support for IPv6 connections.
1703 * unittests/parse-connection-spec-selftests.c: New file.
1704
4c7333b3
PA
17052018-07-11 Pedro Alves <palves@redhat.com>
1706
1707 PR gdb/23377
1708 * remote.c (remote_target::remote_detach_pid): Call
1709 set_current_process.
1710
a6f88f6e
PA
17112018-07-11 Pedro Alves <palves@redhat.com>
1712
1713 * h8300-tdep.c (h8300_gdbarch_init): Remove
1714 set_gdbarch_ecoff_reg_to_regnum calls.
1715
16ff70dd
SDJ
17162018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1717
1718 PR c++/23373
1719 * c-typeprint.c (c_type_print_base_struct_union): Don't print
1720 offsets/sizes for static members of a class/struct.
1721
12863263
AH
17222018-07-11 Alan Hayward <alan.hayward@arm.com>
1723
1724 * target-descriptions.c (tdesc_register_bitsize): Rename.
1725 * target-descriptions.h (tdesc_register_bitsize): Likewise.
1726 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
1727 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
1728
1123588c
TT
17292018-07-10 Tom Tromey <tom@tromey.com>
1730
1731 * breakpoint.c (moribund_locations): Now static and a
1732 std::vector.
1733 (breakpoint_init_inferior, moribund_breakpoint_here_p)
1734 (build_bpstat_chain, update_global_location_list)
1735 (breakpoint_retire_moribund): Update.
1736 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
1737 VEC.
1738
8c49aa89
AB
17392018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1740
1741 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
1742 (riscv_register_reggroup_p): Use new function, remove unneeded
1743 parenthesis.
1744 (riscv_push_dummy_call): Extend assert to compare against xlen or
1745 flen based on register type.
1746
42ecac17
AB
17472018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
1748
1749 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
1750
055303e2
AB
17512018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1752
1753 * remote.c (show_hardware_watchpoint_limit): New function.
1754 (show_hardware_watchpoint_length_limit): New function.
1755 (show_hardware_breakpoint_limit): New function.
1756 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
1757 where appropriate, update help text.
1758
8fd32c1c
TT
17592018-07-09 Tom Tromey <tom@tromey.com>
1760
1761 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
1762 (CLIBS): Don't mention NAT_CLIBS.
1763
31278b51
TT
17642018-07-09 Tom Tromey <tom@tromey.com>
1765
1766 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
1767 (LIBGDB_OBS, clean mostlyclean): Update.
1768 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
1769
e5fd1493
TT
17702018-07-09 Tom Tromey <tom@tromey.com>
1771
1772 * Makefile.in (%.c: %.y): Use ECHO_YACC.
1773 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
1774 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
1775
981e0c0c
TT
17762018-07-09 Tom Tromey <tom@tromey.com>
1777
1778 * Makefile.in (ALLDEPFILES): Remove exec.c.
1779 (COMMON_OBS): Remove exec.o.
1780 (COMMON_SFILES): Add exec.c.
1781
14ccceb2
TT
17822018-07-09 Tom Tromey <tom@tromey.com>
1783
1784 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
1785
5d3c3a68
TT
17862018-07-09 Tom Tromey <tom@tromey.com>
1787
1788 * Makefile.in (clean mostlyclean): Remove stamp-version.
1789 (version.c): Depend on stamp-version.
1790 (stamp-version): New rule, from version.c rule.
1791
1998086d
TT
17922018-07-09 Tom Tromey <tom@tromey.com>
1793
1794 * Makefile.in (init.c): Depend on stamp-init.
1795 (stamp-init): New rule, from init.c rule.
1796 (clean mostlyclean): Remove stamp-init.
1797
4c754949
TT
17982018-07-09 Tom Tromey <tom@tromey.com>
1799
1800 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
1801 SUBDIR_GCC_COMPILE_SRCS.
1802
6497f1dd
TT
18032018-07-09 Tom Tromey <tom@tromey.com>
1804
1805 * Makefile.in (init.c): Remove some unused sed rules.
1806
97a34db9
TT
18072018-07-09 Tom Tromey <tom@tromey.com>
1808
1809 * Makefile.in (TSOBS): Remove.
1810 (INIT_FILES): Update.
1811 (LIBGDB_OBS): Update.
1812 (COMMON_SFILES): Add inflow.c.
1813 (SFILES): Remove inflow.c.
1814
25289ac1
JK
18152018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1816
1817 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
1818
e83f4d97
SM
18192018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
1820
4869c585
SM
1821 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
1822 get_saveloc_name, is_signal_frame_name, step_name,
1823 init_remote_name, create_addr_space_name,
1824 destroy_addr_space_name, search_unwind_table_name,
1825 find_dyn_list_name): Constify.
e83f4d97 1826
6821842f
SM
18272018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
1828
1829 * darwin-nat.c (darwin_pthread_kill): New function.
1830 (darwin_resume_thread): Use darwin_pthread_kill.
1831
c530603c
TV
18322018-07-05 Tom de Vries <tdevries@suse.de>
1833
1834 * macroexp.c (macro_buffer) <operator=>: New member function.
1835
a7d0f0f0
TT
18362018-07-04 Tom Tromey <tom@tromey.com>
1837
1838 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
1839
6242c6a6
SM
18402018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
1841
1842 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
1843 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
1844 * maint.c: Likewise.
1845 * top.c: Likewise.
1846
4e5b2f89
JB
18472018-07-04 Joel Brobecker <brobecker@adacore.com>
1848
1849 * NEWS: Create a new section for the next release branch.
1850 Rename the section of the current branch, now that it has
1851 been cut.
1852
538ccc4a
JB
18532018-07-04 Joel Brobecker <brobecker@adacore.com>
1854
1855 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
1856 * version.in: Bump version to 8.2.50.DATE-git.
1857
1b919490
VB
18582018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
1859 Pedro Alves <palves@redhat.com>
1860
1861 * linux-nat.c (linux_init_ptrace): Rename to ...
1862 (linux_init_ptrace_procfs): ... this. Call
1863 linux_proc_init_warnings.
1864 (linux_nat_target::post_attach)
1865 (linux_nat_target::post_startup_inferior): Adjust.
1866 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
1867 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
1868
1ea5da02
TV
18692018-07-04 Tom de Vries <tdevries@suse.de>
1870
1871 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
1872 check ...
1873 (read_comp_unit_head): ... here.
1874
f51e0e20
TT
18752018-07-03 Tom Tromey <tom@tromey.com>
1876
1877 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
1878 (stop_tracing, tstatus_command)
1879 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
1880 (print_one_static_tracepoint_marker): Update.
1881 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
1882 std::vector.
1883 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
1884 VEC.
1885 (all_tracepoints, static_tracepoints_here): Return std::vector.
1886
d7e15655
TT
18872018-07-03 Tom Tromey <tom@tromey.com>
1888
1889 * common/ptid.c (ptid_equal): Remove.
1890 * common/ptid.h (ptid_equal): Don't declare.
1891 * ada-tasks.c: Update.
1892 * breakpoint.c: Update.
1893 * common/agent.c: Update.
1894 * corelow.c: Update.
1895 * darwin-nat-info.c: Update.
1896 * darwin-nat.c: Update.
1897 * dcache.c: Update.
1898 * dtrace-probe.c: Update.
1899 * dummy-frame.c: Update.
1900 * fbsd-nat.c: Update.
1901 * frame.c: Update.
1902 * gdbthread.h: Update.
1903 * gnu-nat.c: Update.
1904 * go32-nat.c: Update.
1905 * inf-loop.c: Update.
1906 * inf-ptrace.c: Update.
1907 * infcall.c: Update.
1908 * infcmd.c: Update.
1909 * inflow.c: Update.
1910 * infrun.c: Update.
1911 * linux-fork.c: Update.
1912 * linux-nat.c: Update.
1913 * linux-thread-db.c: Update.
1914 * mi/mi-cmd-var.c: Update.
1915 * mi/mi-interp.c: Update.
1916 * mi/mi-main.c: Update.
1917 * nto-procfs.c: Update.
1918 * ppc-linux-tdep.c: Update.
1919 * procfs.c: Update.
1920 * python/py-inferior.c: Update.
1921 * python/py-record-btrace.c: Update.
1922 * python/py-record.c: Update.
1923 * ravenscar-thread.c: Update.
1924 * regcache.c: Update.
1925 * remote-sim.c: Update.
1926 * remote.c: Update.
1927 * sol-thread.c: Update.
1928 * solib.c: Update.
1929 * target.c: Update.
1930 * tui/tui-stack.c: Update.
1931 * varobj.c: Update.
1932 * windows-nat.c: Update.
1933 * windows-tdep.c: Update.
1934
26a57c92
TT
19352018-07-03 Tom Tromey <tom@tromey.com>
1936
1937 * common/ptid.c (ptid_match): Remove.
1938 * common/ptid.h (ptid_match): Don't declare.
1939 * fbsd-nat.c: Update.
1940 * infcmd.c: Update.
1941 * infrun.c: Update.
1942 * linux-nat.c: Update.
1943 * record-btrace.c: Update.
1944 * regcache.c: Update.
1945 * remote.c: Update.
1946
d2a107e3
TT
19472018-07-03 Tom Tromey <tom@tromey.com>
1948
1949 * common/ptid.c (ptid_tid_p): Remove.
1950 * common/ptid.h (ptid_tid_p): Don't declare.
1951 * sol-thread.c: Update.
1952
15a9e13e
TT
19532018-07-03 Tom Tromey <tom@tromey.com>
1954
1955 * common/ptid.c (ptid_lwp_p): Remove.
1956 * common/ptid.h (ptid_lwp_p): Don't declare.
1957 * fbsd-nat.c: Update.
1958 * linux-nat.c: Update.
1959 * nat/linux-procfs.c: Update.
1960 * nat/x86-linux-dregs.c: Update.
1961 * sol-thread.c: Update.
1962
0e998d96
TT
19632018-07-03 Tom Tromey <tom@tromey.com>
1964
1965 * common/ptid.c (ptid_is_pid): Remove.
1966 * common/ptid.h (ptid_is_pid): Don't declare.
1967 * infrun.c: Update.
1968 * linux-nat.c: Update.
1969 * mi/mi-interp.c: Update.
1970 * remote.c: Update.
1971 * thread.c: Update.
1972
cc6bcb54
TT
19732018-07-03 Tom Tromey <tom@tromey.com>
1974
1975 * common/ptid.c (ptid_get_tid): Remove.
1976 * common/ptid.h (ptid_get_tid): Don't declare.
1977 * ada-tasks.c: Update.
1978 * aix-thread.c: Update.
1979 * bsd-uthread.c: Update.
1980 * darwin-nat.c: Update.
1981 * fbsd-nat.c: Update.
1982 * i386-darwin-nat.c: Update.
1983 * infrun.c: Update.
1984 * linux-tdep.c: Update.
1985 * nto-procfs.c: Update.
1986 * ppc-ravenscar-thread.c: Update.
1987 * python/py-infthread.c: Update.
1988 * ravenscar-thread.c: Update.
1989 * sol-thread.c: Update.
1990 * sparc-ravenscar-thread.c: Update.
1991 * windows-nat.c: Update.
1992
e38504b3
TT
19932018-07-03 Tom Tromey <tom@tromey.com>
1994
1995 * common/ptid.c (ptid_get_lwp): Remove.
1996 * common/ptid.h (ptid_get_lwp): Don't declare.
1997 * aarch64-linux-nat.c: Update.
1998 * ada-tasks.c: Update.
1999 * aix-thread.c: Update.
2000 * amd64-linux-nat.c: Update.
2001 * arm-linux-nat.c: Update.
2002 * corelow.c: Update.
2003 * fbsd-nat.c: Update.
2004 * fbsd-tdep.c: Update.
2005 * gnu-nat.c: Update.
2006 * i386-cygwin-tdep.c: Update.
2007 * i386-gnu-nat.c: Update.
2008 * i386-linux-nat.c: Update.
2009 * ia64-linux-nat.c: Update.
2010 * inf-ptrace.c: Update.
2011 * infrun.c: Update.
2012 * linux-fork.c: Update.
2013 * linux-nat.c: Update.
2014 * linux-tdep.c: Update.
2015 * linux-thread-db.c: Update.
2016 * mips-linux-nat.c: Update.
2017 * nat/aarch64-linux-hw-point.c: Update.
2018 * nat/aarch64-linux.c: Update.
2019 * nat/linux-btrace.c: Update.
2020 * nat/linux-osdata.c: Update.
2021 * nat/linux-procfs.c: Update.
2022 * nat/x86-linux-dregs.c: Update.
2023 * obsd-nat.c: Update.
2024 * ppc-fbsd-nat.c: Update.
2025 * ppc-linux-nat.c: Update.
2026 * procfs.c: Update.
2027 * python/py-infthread.c: Update.
2028 * ravenscar-thread.c: Update.
2029 * remote.c: Update.
2030 * s390-linux-nat.c: Update.
2031 * sol-thread.c: Update.
2032 * sol2-tdep.c: Update.
2033 * spu-linux-nat.c: Update.
2034 * x86-linux-nat.c: Update.
2035 * xtensa-linux-nat.c: Update.
2036
e99b03dc
TT
20372018-07-03 Tom Tromey <tom@tromey.com>
2038
2039 * common/ptid.c (ptid_get_pid): Remove.
2040 * common/ptid.h (ptid_get_pid): Don't declare.
2041 * aarch64-linux-nat.c: Update.
2042 * ada-lang.c: Update.
2043 * aix-thread.c: Update.
2044 * alpha-bsd-nat.c: Update.
2045 * amd64-fbsd-nat.c: Update.
2046 * amd64-linux-nat.c: Update.
2047 * arm-linux-nat.c: Update.
2048 * arm-nbsd-nat.c: Update.
2049 * auxv.c: Update.
2050 * break-catch-syscall.c: Update.
2051 * breakpoint.c: Update.
2052 * bsd-uthread.c: Update.
2053 * corelow.c: Update.
2054 * ctf.c: Update.
2055 * darwin-nat.c: Update.
2056 * fbsd-nat.c: Update.
2057 * fbsd-tdep.c: Update.
2058 * gcore.c: Update.
2059 * gnu-nat.c: Update.
2060 * hppa-nbsd-nat.c: Update.
2061 * hppa-obsd-nat.c: Update.
2062 * i386-fbsd-nat.c: Update.
2063 * ia64-linux-nat.c: Update.
2064 * inf-ptrace.c: Update.
2065 * infcmd.c: Update.
2066 * inferior.c: Update.
2067 * inferior.h: Update.
2068 * inflow.c: Update.
2069 * infrun.c: Update.
2070 * linux-fork.c: Update.
2071 * linux-nat.c: Update.
2072 * linux-tdep.c: Update.
2073 * linux-thread-db.c: Update.
2074 * m68k-bsd-nat.c: Update.
2075 * mi/mi-interp.c: Update.
2076 * mi/mi-main.c: Update.
2077 * mips-linux-nat.c: Update.
2078 * mips-nbsd-nat.c: Update.
2079 * mips64-obsd-nat.c: Update.
2080 * nat/aarch64-linux-hw-point.c: Update.
2081 * nat/aarch64-linux.c: Update.
2082 * nat/linux-btrace.c: Update.
2083 * nat/linux-osdata.c: Update.
2084 * nat/linux-procfs.c: Update.
2085 * nat/x86-linux-dregs.c: Update.
2086 * nto-procfs.c: Update.
2087 * obsd-nat.c: Update.
2088 * ppc-linux-nat.c: Update.
2089 * ppc-nbsd-nat.c: Update.
2090 * ppc-obsd-nat.c: Update.
2091 * proc-service.c: Update.
2092 * procfs.c: Update.
2093 * python/py-inferior.c: Update.
2094 * python/py-infthread.c: Update.
2095 * ravenscar-thread.c: Update.
2096 * record.c: Update.
2097 * remote-sim.c: Update.
2098 * remote.c: Update.
2099 * rs6000-nat.c: Update.
2100 * s390-linux-nat.c: Update.
2101 * sh-nbsd-nat.c: Update.
2102 * sol-thread.c: Update.
2103 * sparc-nat.c: Update.
2104 * sparc64-tdep.c: Update.
2105 * spu-linux-nat.c: Update.
2106 * spu-tdep.c: Update.
2107 * target-debug.h: Update.
2108 * target.c: Update.
2109 * thread.c: Update.
2110 * tid-parse.c: Update.
2111 * tracefile-tfile.c: Update.
2112 * vax-bsd-nat.c: Update.
2113 * windows-nat.c: Update.
2114 * x86-linux-nat.c: Update.
2115 * x86-nat.c: Update.
2116
f2907e49
TT
21172018-07-03 Tom Tromey <tom@tromey.com>
2118
2119 * common/ptid.c (pid_to_ptid): Remove.
2120 * common/ptid.h (pid_to_ptid): Don't declare.
2121 * aix-thread.c: Update.
2122 * arm-linux-nat.c: Update.
2123 * common/ptid.c: Update.
2124 * common/ptid.h: Update.
2125 * corelow.c: Update.
2126 * ctf.c: Update.
2127 * darwin-nat.c: Update.
2128 * fbsd-nat.c: Update.
2129 * fork-child.c: Update.
2130 * gnu-nat.c: Update.
2131 * go32-nat.c: Update.
2132 * inf-ptrace.c: Update.
2133 * infcmd.c: Update.
2134 * inferior.c: Update.
2135 * infrun.c: Update.
2136 * linux-fork.c: Update.
2137 * linux-nat.c: Update.
2138 * nat/aarch64-linux-hw-point.c: Update.
2139 * nat/fork-inferior.c: Update.
2140 * nat/x86-linux-dregs.c: Update.
2141 * nto-procfs.c: Update.
2142 * obsd-nat.c: Update.
2143 * procfs.c: Update.
2144 * progspace.c: Update.
2145 * remote.c: Update.
2146 * rs6000-nat.c: Update.
2147 * s390-linux-nat.c: Update.
2148 * sol-thread.c: Update.
2149 * spu-linux-nat.c: Update.
2150 * target.c: Update.
2151 * top.c: Update.
2152 * tracefile-tfile.c: Update.
2153 * windows-nat.c: Update.
2154
fd79271b
TT
21552018-07-03 Tom Tromey <tom@tromey.com>
2156
2157 * common/ptid.h (ptid_build): Don't declare.
2158 * common/ptid.c (ptid_build): Remove.
2159 * aix-thread.c: Update.
2160 * bsd-kvm.c: Update.
2161 * bsd-uthread.c: Update.
2162 * common/agent.c: Update.
2163 * common/ptid.c: Update.
2164 * common/ptid.h: Update.
2165 * corelow.c: Update.
2166 * darwin-nat.c: Update.
2167 * fbsd-nat.c: Update.
2168 * gnu-nat.c: Update.
2169 * linux-fork.c: Update.
2170 * linux-nat.c: Update.
2171 * linux-thread-db.c: Update.
2172 * nat/linux-osdata.c: Update.
2173 * nat/linux-procfs.c: Update.
2174 * nto-procfs.c: Update.
2175 * obsd-nat.c: Update.
2176 * proc-service.c: Update.
2177 * procfs.c: Update.
2178 * ravenscar-thread.c: Update.
2179 * remote-sim.c: Update.
2180 * remote.c: Update.
2181 * sol-thread.c: Update.
2182 * target.c: Update.
2183 * windows-nat.c: Update.
2184
057302ce
TT
21852018-07-03 Tom Tromey <tom@tromey.com>
2186
2187 * infrun.c (follow_exec): Use exit_inferior_silent.
2188 * inferior.c (exit_inferior_num_silent): Remove.
2189 * inferior.h (exit_inferior_num_silent): Don't declare.
2190
a50c11c6
TT
21912018-07-03 Tom Tromey <tom@tromey.com>
2192
2193 PR cli/23340:
2194 * darwin-nat.c (darwin_attach_pid): Reset inferior and
2195 inferior_ptid on error.
2196
471b9d15
MR
21972018-07-02 Maciej W. Rozycki <macro@mips.com>
2198 Simon Marchi <simon.marchi@polymtl.ca>
2199
2200 PR tdep/8282
2201 * disasm.h (gdb_disassembler): Add
2202 `m_disassembler_options_holder'. member
2203 * disasm.c (get_all_disassembler_options): New function.
2204 (gdb_disassembler::gdb_disassembler): Use it.
2205 (gdb_buffered_insn_length_init_dis): Likewise.
2206 (gdb_buffered_insn_length): Adjust accordingly.
2207 (set_disassembler_options): Handle options with arguments.
2208 (show_disassembler_options_sfunc): Likewise. Add a leading new
2209 line if showing options with descriptions.
2210 (disassembler_options_completer): Adapt to using the
2211 `disasm_options_and_args_t' structure.
2212 * mips-tdep.c (mips_disassembler_options): New variable.
2213 (mips_disassembler_options_o32): Likewise.
2214 (mips_disassembler_options_n32): Likewise.
2215 (mips_disassembler_options_n64): Likewise.
2216 (gdb_print_insn_mips): Don't set `disassembler_options'.
2217 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
2218 functions.
2219 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
2220 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
2221 `gdbarch_disassembler_options_implicit' and
2222 `gdbarch_valid_disassembler_options'.
2223 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
2224 `disasm_options_and_args_t' structure.
2225 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
2226 method.
2227 (valid_disassembler_options): Switch from `disasm_options_t' to
2228 the `disasm_options_and_args_t' structure.
2229 * NEWS: Document `set disassembler-options' support for the MIPS
2230 target.
2231 * gdbarch.h: Regenerate.
2232 * gdbarch.c: Regenerate.
2233
41823f29
SH
22342018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
2235
2236 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
2237
41206e32
JB
22382018-06-29 Joel Brobecker <brobecker@adacore.com>
2239
2240 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
2241 parameter in call to amd64_target_description.
2242 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
2243 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
2244 (amd64fbsd_init_abi): Likewise.
2245 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
2246 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
2247 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
2248 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
2249
de52b960
PA
22502018-06-29 Pedro Alves <palves@redhat.com>
2251
2252 * gdb/amd64-tdep.h (amd64_create_target_description): Add
2253 "segments" parameter.
2254 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
2255 (_initialize_amd64_tdep): Update call to
2256 amd64_create_target_description.
2257 (amd64_target_description): Add "segments" parameter. Adjust
2258 the implementation to use it.
2259 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
2260 call to amd64_create_target_description.
2261 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
2262 * gdb/arch/amd64.h (amd64_create_target_description): Add
2263 "segments" register.
2264 * gdb/arch/amd64.c (amd64_create_target_description): Add
2265 "segments" parameter. Call create_feature_i386_64bit_segments
2266 only if SEGMENTS is true.
2267 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
2268 call to amd64_create_target_description.
2269
75acb486
PA
22702018-06-29 Pedro Alves <palves@redhat.com>
2271
2272 * thread.c (thread_target_id_str): New, factored out from ...
2273 (print_thread_info_1): ... here. Use it to compute the max
2274 "Target Id" column width.
2275
c76a8ea3
PA
22762018-06-29 Pedro Alves <palves@redhat.com>
2277
2278 * remote.c (remote_target::extra_thread_info): Delete
2279 'display_buf' and 'n' locals. from the cache, regardless of
2280 packet mechanims is in use. Use cache for qThreadExtra and qP
2281 methods too.
2282
cd2bb709
PA
22832018-06-29 Pedro Alves <palves@redhat.com>
2284
2285 * blockframe.c (find_pc_sect_containing_function): New function.
2286 * breakpoint.c (print_breakpoint_location): Don't call
2287 find_pc_sect_function.
2288 * linespec.c (create_sals_line_offset): Record the location's
2289 symbol in the sal.
2290 * linespec.c (convert_address_location_to_sals): Fill in sal's
2291 symbol with find_pc_sect_containing_function.
2292 * symtab.c (find_function_start_sal): Rename to ...
2293 (find_function_start_sal_1): ... this.
2294 (find_function_start_sal): Reimplement as wrapper around
2295 find_function_start_sal_1, and use
2296 find_pc_sect_containing_function to fill in the sal's symbol.
2297 (find_function_start_sal(symbol*, bool)): Adjust.
2298 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
2299 comments.
2300 (find_pc_sect_containing_function): Declare.
2301
991ff292
PA
23022018-06-29 Pedro Alves <palves@redhat.com>
2303
2304 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
2305 true if the the location has no symbol.
2306
44cee4fd
TT
23072018-06-28 Tom Tromey <tom@tromey.com>
2308
2309 * NEWS: Mention --enable-codesign.
2310 * silent-rules.mk (ECHO_SIGN): New variable.
2311 * configure.ac: Add --enable-codesign.
2312 * configure: Rebuild.
2313 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
2314 (gdb$(EXEEXT)): Optionally invoke codesign.
2315
f2ffa92b
PA
23162018-06-28 Pedro Alves <palves@redhat.com>
2317
2318 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
2319 comments.
2320 (switch_to_thread_no_regs): Adjust comment.
2321 * infcmd.c (stop_pc): Delete.
2322 (post_create_inferior, info_program_command): Replace references
2323 to stop_pc with references to thread_info->suspend.stop_pc.
2324 * inferior.h (stop_pc): Delete declaration.
2325 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
2326 (handle_inferior_event_1, handle_signal_stop)
2327 (process_event_stop_test, keep_going_stepped_thread)
2328 (handle_step_into_function, handle_step_into_function_backward)
2329 (print_stop_location): Replace references to stop_pc with
2330 references to thread_info->suspend.stop_pc.
2331 (struct infcall_suspend_state) <stop_pc>: Delete field.
2332 (save_infcall_suspend_state, restore_infcall_suspend_state):
2333 Remove references to inf_stat->stop_pc.
2334 * linux-fork.c (fork_load_infrun_state): Likewise.
2335 * record-btrace.c (record_btrace_set_replay): Likewise.
2336 * record-full.c (record_full_goto_entry): Likewise.
2337 * remote.c (print_one_stopped_thread): Likewise.
2338 * target.c (target_resume): Extend comment.
2339 * thread.c (set_executing_thread): New.
2340 (set_executing): Use it.
2341 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
2342 Remove references to stop_pc.
2343
ecdc3a72
PA
23442018-06-28 Pedro Alves <palves@redhat.com>
2345
2346 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
2347 Moving fetching stop_pc until after ecs->event_thread is refreshed.
2348
d95d3aef
TT
23492018-06-28 Tom Tromey <tom@tromey.com>
2350
2351 * coffread.c (coff_symfile_finish): Update.
2352 * xcoffread.c (xcoff_symfile_finish): Update.
2353 * elfread.c (elf_symfile_finish): Update.
2354 * symfile.h (dwarf2_free_objfile): Don't declare.
2355 * dwarf2read.c (_initialize_dwarf2_read): Use
2356 register_objfile_data_with_cleanup.
2357 (dwarf2_free_objfile): Now static. Change signature.
2358
291f9a96
PT
23592018-06-28 Petr Tesarik <ptesarik@suse.cz>
2360
2361 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
2362 option "-o" to add-symbol-file-load to add an offset to each
2363 section's load address.
2364 * symfile.c (set_objfile_default_section_offset): New function.
2365
d81a3eaf
PT
23662018-06-28 Petr Tesarik <ptesarik@suse.cz>
2367
2368 * symfile.c (add_symbol_file_command): Make sure that sections
2369 with the same name are sorted in the same order.
2370
ed6dfe51
PT
23712018-06-28 Petr Tesarik <ptesarik@suse.cz>
2372
2373 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
2374 require the second argument. If omitted, load sections at the
2375 addresses specified in the file.
2376
d4d429d5
PT
23772018-06-28 Petr Tesarik <ptesarik@suse.cz>
2378
2379 * symfile.c (symbol_file_command, symbol_file_add_main_1)
2380 (_initialize_symfile): Add option "-o" to symbol-file to add an
2381 offset to each section of the symbol file.
2382
39b27ab6
PT
23832018-06-28 Petr Tesarik <ptesarik@suse.cz>
2384
2385 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
2386
41827fc3
TT
23872018-06-27 Tom Tromey <tom@tromey.com>
2388
2389 * stack.c (_initialize_stack): Update "func" help text.
2390
0c6aef22
TT
23912018-06-27 Tom Tromey <tom@tromey.com>
2392
2393 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
2394 std::vector.
2395 (unwind_infopy_str, pyuw_create_unwind_info)
2396 (unwind_infopy_add_saved_register, pyuw_sniffer)
2397 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
2398 Update.
2399 (struct saved_reg): Add constructor.
2400 <value>: Now a gdbpy_ref<>.
2401
63177289
TT
24022018-06-27 Tom Tromey <tom@tromey.com>
2403
2404 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
2405
e76f78a0
SM
24062018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2407
2408 * gdb-gdb.py.in: Format using autopep8.
2409
9a14af7b
SM
24102018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2411
2412 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
2413 (type_lookup_function): Recognize CORE_ADDR values.
2414
189366cd
SM
24152018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2416
2417 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
2418 print tag_name.
2419
68ad5fb9
SM
24202018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2421
2422 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
2423 <__lt__>: Add.
2424
141ec9f6
SM
24252018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2426
2427 * gdb-gdb.py: Move to...
2428 * gdb-gdb.py.in: ... here.
2429 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
2430 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
2431 dependencies.
2432 (distclean): Remove gdb-gdb.py when cleaning.
2433 (gdb-gdb.py, gdb-gdb.gdb): New rules.
2434 * configure: Re-generate.
2435
4c4e7ad4
PA
24362018-06-27 Pedro Alves <palves@redhat.com>
2437
2438 * proc-service.c (get_ps_regcache): New.
2439 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
2440 (ps_lsetfpregs): Use it.
2441
7ab6656f
OJ
24422018-06-27 Omair Javaid <omair.javaid@linaro.org>
2443
2444 PR gdb/21695
2445 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
2446 (dwarf_decode_lines_1): Adjust.
2447
bd583225
SM
24482018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2449
2450 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
2451 override.
2452 <info_proc>: Likewise.
2453
9a325b7b
JB
24542018-06-26 Joel Brobecker <brobecker@adacore.com>
2455
2456 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
2457 to windows_fetch_one_register, and only handle the case of
2458 fetching one register. Move the code that reloads the context
2459 and iterates over all registers if R is negative to...
2460 (windows_nat_target::fetch_registers): ... here.
2461 (do_windows_store_inferior_registers): Rename to
2462 windows_store_one_register, and only handle the case of storing
2463 one register. Move the code that handles the case where r is
2464 negative to...
2465 (windows_nat_target::store_registers) ... here.
2466
a33ccfc7
TT
24672018-06-26 Tom Tromey <tom@tromey.com>
2468
2469 PR rust/22574:
2470 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
2471 * rust-lang.c (rust_print_struct_def): Add podata parameter.
2472 Update.
2473 (rust_internal_print_type): Add podata parameter.
2474 (rust_print_type): Update.
2475
e0c547d1
TT
24762018-06-26 Tom Tromey <tom@tromey.com>
2477
2478 * typeprint.h (struct print_offset_data) <update, finish,
2479 maybe_print_hole>: New methods.
2480 <indentation>: New constant.
2481 * typeprint.c (print_offset_data::indentation): Define.
2482 (print_offset_data::maybe_print_hole, print_offset_data::update)
2483 (print_offset_data::finish): Move from c-typeprint.c and rename.
2484 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
2485 (print_spaces_filtered_with_print_options): Update.
2486 (c_print_type_union_field_offset, maybe_print_hole)
2487 (c_print_type_struct_field_offset): Move to typeprint.c and
2488 rename.
2489 (c_type_print_base_struct_union): Update.
2490
75cbc781
PA
24912018-06-25 Pedro Alves <palves@redhat.com>
2492
2493 * gdbthread.h (thread_info_ref, delete_thread)
2494 (delete_thread_silent, first_thread_of_inferior)
2495 (any_thread_of_inferior, switch_to_thread)
2496 (enable_thread_stack_temporaries)
2497 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2498 (get_last_thread_stack_temporary)
2499 (value_in_thread_stack_temporaries, can_access_registers_thread):
2500 Spell out "struct thread_info" instead of just "thread_info".
2501 * inferior.h (notice_new_inferior): Likewise.
2502
b7a08269
PA
25032018-06-25 Pedro Alves <palves@redhat.com>
2504
2505 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2506 pass thread_info pointer to delete_thread.
2507 (windows_nat_target::detach): Pass inferior pointer to
2508 detach_inferior.
2509 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
2510 delete_thread.
2511 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
2512 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
2513 and pass a thread_info pointer to delete_thread.
2514 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
2515 pass thread_info pointer to delete_thread.
2516 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
2517 delete_thread_silent call.
2518 * procfs.c (procfs_target::detach): Pass inferior pointer to
2519 detach_inferior.
2520 (procfs_target::wait): Pass thread_info pointer to delete_thread.
2521 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
2522 delete_thread_silent call.
2523 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2524 pass thread_info pointer to delete_thread.
2525 (windows_nat_target::detach): Pass inferior pointer to
2526 delete_inferior.
2527
8e7767e3
AH
25282018-06-22 Alan Hayward <alan.hayward@arm.com>
2529
2530 * regcache.c (readable_regcache::read_part): Fix asserts.
2531 (reg_buffer::raw_collect_part): New function.
2532 (regcache::write_part): Fix asserts.
2533 (reg_buffer::raw_supply_part): New function.
2534 (regcache::transfer_regset_register): New helper function.
2535 (regcache::transfer_regset): Call new functions.
2536 (regcache_supply_regset): Use gdb_byte*.
2537 (regcache::supply_regset): Likewise.
2538 (regcache_collect_regset): Likewise.
2539 (regcache::collect_regset): Likewise.
2540 * regcache.h (reg_buffer::raw_collect_part): New declaration.
2541 (reg_buffer::raw_supply_part): Likewise.
2542 (regcache::transfer_regset_register): Likewise.
2543 (regcache::transfer_regset): Use gdb_byte*.
2544
bfd60e34
AH
25452018-06-22 Alan Hayward <alan.hayward@arm.com>
2546
2547 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
2548
00431a78
PA
25492018-06-21 Pedro Alves <palves@redhat.com>
2550
2551 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
2552 instead of a ptid_t. All callers adjusted.
2553 * ada-tasks.c (ada_get_task_number): Likewise. All callers
2554 adjusted.
2555 (print_ada_task_info, display_current_task_id, task_command_1):
2556 Adjust.
2557 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
2558 inferior_thread.
2559 (breakpoint_kind): Adjust.
2560 (remove_breakpoints_pid): Rename to ...
2561 (remove_breakpoints_inf): ... this. Adjust to take an inferior
2562 pointer. All callers adjusted.
2563 (bpstat_clear_actions): Use inferior_thread.
2564 (get_bpstat_thread): New.
2565 (bpstat_do_actions): Use it.
2566 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
2567 to take a thread_info pointer. All callers adjusted.
2568 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
2569 (breakpoint_re_set_thread): Use inferior_thread.
2570 * breakpoint.h (struct inferior): Forward declare.
2571 (bpstat_stop_status): Update.
2572 (remove_breakpoints_pid): Delete.
2573 (remove_breakpoints_inf): New.
2574 * bsd-uthread.c (bsd_uthread_target::wait)
2575 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
2576 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
2577 (maint_btrace_packet_history_cmd)
2578 (maint_btrace_clear_packet_history_cmd): Adjust.
2579 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
2580 inferior_thread.
2581 * cli/cli-interp.c: Include "inferior.h".
2582 * common/refcounted-object.h (struct
2583 refcounted_object_ref_policy): New.
2584 * compile/compile-object-load.c: Include gdbthread.h.
2585 (store_regs): Use inferior_thread.
2586 * corelow.c (core_target::close): Use current_inferior.
2587 (core_target_open): Adjust to use first_thread_of_inferior and use
2588 the current inferior.
2589 * ctf.c (ctf_target::close): Adjust to use current_inferior.
2590 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
2591 <thread>: ... this new field. All references adjusted.
2592 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
2593 Take a thread_info pointer instead of a ptid_t.
2594 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
2595 (dummy_frame_discard, register_dummy_frame_dtor): Take a
2596 thread_info pointer instead of a ptid_t.
2597 * elfread.c: Include "inferior.h".
2598 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
2599 Use inferior_thread.
2600 * eval.c (evaluate_subexp): Likewise.
2601 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
2602 inferior_thread.
2603 * gdb_proc_service.h (struct thread_info): Forward declare.
2604 (struct ps_prochandle) <ptid>: Delete, replaced by ...
2605 <thread>: ... this new field. All references adjusted.
2606 * gdbarch.h, gdbarch.c: Regenerate.
2607 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
2608 'thread' parameter. All implementations and callers adjusted.
2609 * gdbthread.h (thread_info) <set_running>: New method.
2610 (delete_thread, delete_thread_silent): Take a thread_info pointer
2611 instead of a ptid.
2612 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
2613 (first_thread_of_process): Delete, replaced by ...
2614 (first_thread_of_inferior): ... this new function. All callers
2615 adjusted.
2616 (any_live_thread_of_process): Delete, replaced by ...
2617 (any_live_thread_of_inferior): ... this new function. All callers
2618 adjusted.
2619 (switch_to_thread, switch_to_no_thread): Declare.
2620 (is_executing): Delete.
2621 (enable_thread_stack_temporaries): Update comment.
2622 <enable_thread_stack_temporaries>: Take a thread_info pointer
2623 instead of a ptid_t. Incref the thread.
2624 <~enable_thread_stack_temporaries>: Decref the thread.
2625 <m_ptid>: Delete
2626 <m_thr>: New.
2627 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2628 (get_last_thread_stack_temporary)
2629 (value_in_thread_stack_temporaries, can_access_registers_thread):
2630 Take a thread_info pointer instead of a ptid_t. All callers
2631 adjusted.
2632 * infcall.c (get_call_return_value): Use inferior_thread.
2633 (run_inferior_call): Work with thread pointers instead of ptid_t.
2634 (call_function_by_hand_dummy): Work with thread pointers instead
2635 of ptid_t. Use thread_info_ref.
2636 * infcmd.c (proceed_thread_callback): Access thread's state
2637 directly.
2638 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
2639 access thread's state directly.
2640 (continue_command): Use inferior_thread.
2641 (info_program_command): Use find_thread_ptid and access thread
2642 state directly.
2643 (proceed_after_attach_callback): Use thread state directly.
2644 (notice_new_inferior): Take a thread_info pointer instead of a
2645 ptid_t. All callers adjusted.
2646 (exit_inferior): Take an inferior pointer instead of a pid. All
2647 callers adjusted.
2648 (exit_inferior_silent): New.
2649 (detach_inferior): Delete.
2650 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
2651 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
2652 (detach_inferior_command, kill_inferior_command): Use
2653 find_inferior_id instead of valid_gdb_inferior_id and
2654 gdb_inferior_id_to_pid.
2655 (inferior_command): Use inferior and thread pointers.
2656 * inferior.h (struct thread_info): Forward declare.
2657 (notice_new_inferior): Take a thread_info pointer instead of a
2658 ptid_t. All callers adjusted.
2659 (detach_inferior): Delete declaration.
2660 (exit_inferior, exit_inferior_silent): Take an inferior pointer
2661 instead of a pid. All callers adjusted.
2662 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
2663 (valid_gdb_inferior_id): Delete.
2664 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
2665 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
2666 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
2667 ...
2668 <inf>: ... this new field.
2669 <step_ptid>: Delete, replaced by ...
2670 <step_thread>: ... this new field.
2671 (get_displaced_stepping_state): Take an inferior pointer instead
2672 of a pid. All callers adjusted.
2673 (displaced_step_in_progress_any_inferior): Adjust.
2674 (displaced_step_in_progress_thread): Take a thread pointer instead
2675 of a ptid_t. All callers adjusted.
2676 (displaced_step_in_progress, add_displaced_stepping_state): Take
2677 an inferior pointer instead of a pid. All callers adjusted.
2678 (get_displaced_step_closure_by_addr): Adjust.
2679 (remove_displaced_stepping_state): Take an inferior pointer
2680 instead of a pid. All callers adjusted.
2681 (displaced_step_prepare_throw, displaced_step_prepare)
2682 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
2683 All callers adjusted.
2684 (start_step_over): Adjust.
2685 (infrun_thread_ptid_changed): Remove bit updating ptids in the
2686 displaced step queue.
2687 (do_target_resume): Adjust.
2688 (fetch_inferior_event): Use inferior_thread.
2689 (context_switch, get_inferior_stop_soon): Take an
2690 execution_control_state pointer instead of a ptid_t. All callers
2691 adjusted.
2692 (switch_to_thread_cleanup): Delete.
2693 (stop_all_threads): Use scoped_restore_current_thread.
2694 * inline-frame.c: Include "gdbthread.h".
2695 (inline_state) <inline_state>: Take a thread pointer instead of a
2696 ptid_t. All callers adjusted.
2697 <ptid>: Delete, replaced by ...
2698 <thread>: ... this new field.
2699 (find_inline_frame_state): Take a thread pointer instead of a
2700 ptid_t. All callers adjusted.
2701 (skip_inline_frames, step_into_inline_frame)
2702 (inline_skipped_frames, inline_skipped_symbol): Take a thread
2703 pointer instead of a ptid_t. All callers adjusted.
2704 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
2705 (inline_skipped_frames, inline_skipped_symbol): Likewise.
2706 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
2707 pointers directly.
2708 * linux-nat.c (get_detach_signal): Likewise.
2709 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
2710 (thread_db_notice_clone): Adjust.
2711 (thread_db_find_new_threads_silently)
2712 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
2713 a thread pointer instead of a ptid_t. All callers adjusted.
2714 * mi/mi-cmd-var.c: Include "inferior.h".
2715 (mi_cmd_var_update_iter): Update to use thread pointers.
2716 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
2717 inferior directly.
2718 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
2719 out to ...
2720 (mi_output_running): ... this new function.
2721 (mi_on_resume_1): Adjust to use it.
2722 (mi_user_selected_context_changed): Adjust to use inferior_thread.
2723 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
2724 directly.
2725 (interrupt_thread_callback): : Adjust to use thread and inferior
2726 pointers.
2727 * proc-service.c: Include "gdbthread.h".
2728 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
2729 * progspace-and-thread.c: Include "inferior.h".
2730 * progspace.c: Include "inferior.h".
2731 * python/py-exitedevent.c (create_exited_event_object): Adjust to
2732 hold a reference to an inferior_object.
2733 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
2734 inferior_thread.
2735 * python/py-inferior.c (struct inferior_object): Give the type a
2736 tag name instead of a typedef.
2737 (python_on_normal_stop): No need to check if the current thread is
2738 listed.
2739 (inferior_to_inferior_object): Change return type to
2740 inferior_object. All callers adjusted.
2741 (find_thread_object): Delete, bits factored out to ...
2742 (thread_to_thread_object): ... this new function.
2743 * python/py-infthread.c (create_thread_object): Use
2744 inferior_to_inferior_object.
2745 (thpy_is_stopped): Use thread pointer directly.
2746 (gdbpy_selected_thread): Use inferior_thread.
2747 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
2748 field, replaced with ...
2749 <thread>: ... this new field. All users adjusted.
2750 (btpy_insn_or_gap_new): Drop const.
2751 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
2752 callers adjusted.
2753 * python/py-record.c: Include "gdbthread.h".
2754 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
2755 a ptid_t. All callers adjusted.
2756 (gdbpy_current_recording): Use inferior_thread.
2757 * python/py-record.h (recpy_record_object) <ptid>: Delete
2758 field, replaced with ...
2759 <thread>: ... this new field. All users adjusted.
2760 (recpy_element_object) <ptid>: Delete
2761 field, replaced with ...
2762 <thread>: ... this new field. All users adjusted.
2763 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
2764 a ptid_t. All callers adjusted.
2765 * python/py-threadevent.c: Include "gdbthread.h".
2766 (get_event_thread): Use thread_to_thread_object.
2767 * python/python-internal.h (struct inferior_object): Forward
2768 declare.
2769 (find_thread_object, find_inferior_object): Delete declarations.
2770 (thread_to_thread_object, inferior_to_inferior_object): New
2771 declarations.
2772 * record-btrace.c: Include "inferior.h".
2773 (require_btrace_thread): Use inferior_thread.
2774 (record_btrace_frame_sniffer)
2775 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
2776 (get_thread_current_frame): Use scoped_restore_current_thread and
2777 switch_to_thread.
2778 (get_thread_current_frame): Use thread pointer directly.
2779 (record_btrace_replay_at_breakpoint): Use thread's inferior
2780 pointer directly.
2781 * record-full.c: Include "inferior.h".
2782 * regcache.c: Include "gdbthread.h".
2783 (get_thread_arch_regcache): Use the inferior's address space
2784 directly.
2785 (get_thread_regcache, registers_changed_thread): New.
2786 * regcache.h (get_thread_regcache(thread_info *thread)): New
2787 overload.
2788 (registers_changed_thread): New.
2789 (remote_target) <remote_detach_1>: Swap order of parameters.
2790 (remote_add_thread): <remote_add_thread>: Return the new thread.
2791 (get_remote_thread_info(ptid_t)): New overload.
2792 (remote_target::remote_notice_new_inferior): Use thread pointers
2793 directly.
2794 (remote_target::process_initial_stop_replies): Use
2795 thread_info::set_running.
2796 (remote_target::remote_detach_1, remote_target::detach)
2797 (extended_remote_target::detach): Adjust.
2798 * stack.c (frame_show_address): Use inferior_thread.
2799 * target-debug.h (target_debug_print_thread_info_pp): New.
2800 * target-delegates.c: Regenerate.
2801 * target.c (default_thread_address_space): Delete.
2802 (memory_xfer_partial_1): Use current_inferior.
2803 (target_detach): Use current_inferior.
2804 (target_thread_address_space): Delete.
2805 (generic_mourn_inferior): Use current_inferior.
2806 * target.h (struct target_ops) <thread_address_space>: Delete.
2807 (target_thread_address_space): Delete.
2808 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
2809 pointers directly.
2810 (delete_thread_1, delete_thread, delete_thread_silent): Take a
2811 thread pointer instead of a ptid_t. Adjust all callers.
2812 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
2813 (first_thread_of_process): Delete, replaced by ...
2814 (first_thread_of_inferior): ... this new function. All callers
2815 adjusted.
2816 (any_thread_of_process): Rename to ...
2817 (any_thread_of_inferior): ... this, and take an inferior pointer.
2818 (any_live_thread_of_process): Rename to ...
2819 (any_live_thread_of_inferior): ... this, and take an inferior
2820 pointer.
2821 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2822 (value_in_thread_stack_temporaries)
2823 (get_last_thread_stack_temporary): Take a thread pointer instead
2824 of a ptid_t. Adjust all callers.
2825 (thread_info::set_running): New.
2826 (validate_registers_access): Use inferior_thread.
2827 (can_access_registers_ptid): Rename to ...
2828 (can_access_registers_thread): ... this, and take a thread
2829 pointer.
2830 (print_thread_info_1): Adjust to compare thread pointers instead
2831 of ptids.
2832 (switch_to_no_thread, switch_to_thread): Make extern.
2833 (scoped_restore_current_thread::~scoped_restore_current_thread):
2834 Use m_thread pointer directly.
2835 (scoped_restore_current_thread::scoped_restore_current_thread):
2836 Use inferior_thread.
2837 (thread_command): Use thread pointer directly.
2838 (thread_num_make_value_helper): Use inferior_thread.
2839 * top.c (execute_command): Use inferior_thread.
2840 * tui/tui-interp.c: Include "inferior.h".
2841 * varobj.c (varobj_create): Use inferior_thread.
2842 (value_of_root_1): Use find_thread_global_id instead of
2843 global_thread_id_to_ptid.
2844
33bab475
AH
28452018-06-21 Alan Hayward <alan.hayward@arm.com>
2846
2847 * regcache.c (readable_regcache::read_part): Avoid memcpy when
2848 possible.
2849 (regcache::write_part): Likewise.
2850 (readable_regcache::cooked_read_part): Update comment.
2851 (readable_regcache::cooked_write_part): Likewise.
2852 * regcache.h: (readable_regcache::read_part): Likewise.
2853 (regcache::write_part): Likewise.
2854
8363f9d5
RB
28552018-06-21 Richard Bunt <richard.bunt@arm.com>
2856 Dirk Schubert <dirk.schubert@arm.com>
2857
2858 * aarch64-linux-nat.c (post_attach): New.
2859 (aarch64_linux_nat_target::post_attach): Override post_attach to
2860 record the number of hardware debug registers.
2861
0d0b0ea2
TT
28622018-06-20 Tom Tromey <tom@tromey.com>
2863
2864 * python/py-param.c (add_setshow_generic): Make parameters const.
2865 (parmpy_init): Update.
2866
302abd6e
SM
28672018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
2868
2869 * regcache.h (regcache_cooked_read_ftype): Rename to...
2870 (register_read_ftype): ...this, change type to function_view.
2871 (class reg_buffer) <save>: Remove src parameter.
2872 (readonly_detached_regcache) <readonly_detached_regcache>: Make
2873 parameter non-const in first overload. Remove src parameter in
2874 second overload.
2875 * regcache.c (do_cooked_read): Remove.
2876 (readonly_detached_regcache::readonly_detached_regcache): Make
2877 parameter non-const, adjust call to other constructor.
2878 (reg_buffer::save): Remove src parameter.
2879 * frame.c (do_frame_register_read): Remove.
2880 (frame_save_as_regcache): Use lambda function.
2881 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
2882 parameter to ppu2spu_data *.
2883 (ppu2spu_sniffer): Use lambda function.
2884
19f3f25f
SM
28852018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
2886
2887 * record-full.c (record_full_target::insert_breakpoint): Remove
2888 "struct" keyword, add const.
2889
d0ac1c44
SM
28902018-06-19 Simon Marchi <simon.marchi@ericsson.com>
2891
2892 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
2893 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
2894 * configure.ac: Remove AC_PREREQ, add missing quoting.
2895 * gnulib/configure.ac: Modernize usage of
2896 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
2897 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
2898 (AUTOMAKE_VERSION): Bump to 1.15.1.
2899 * configure: Re-generate.
2900 * config.in: Re-generate.
2901 * aclocal.m4: Re-generate.
2902 * gnulib/aclocal.m4: Re-generate.
2903 * gnulib/config.in: Re-generate.
2904 * gnulib/configure: Re-generate.
2905 * gnulib/import/Makefile.in: Re-generate.
2906
6ae50267
PA
29072018-06-19 Pedro Alves <palves@redhat.com>
2908
2909 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
2910 (lookup_minimal_symbol_by_pc_section): ... here with
2911 gdb_assert_not_reached added.
2912
61b04dd0
PA
29132018-06-19 Pedro Alves <palves@redhat.com>
2914
2915 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
2916 parameter with a block parameter. Compare location's block symbol
2917 with the frame's block instead of addresses.
2918 (skip_inline_frames): Pass the current block instead of the
2919 frame's address. Break out as soon as we determine the frame
2920 should not be skipped.
2921
f709fabb
TT
29222018-06-18 Tom Tromey <tom@tromey.com>
2923
2924 * solib-aix.c (solib_aix_get_section_offsets): Return
2925 unique_xmalloc_ptr.
2926 (solib_aix_solib_create_inferior_hook): Update.
2927
668eb2f0
TT
29282018-06-18 Tom Tromey <tom@tromey.com>
2929
2930 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
2931
309822ca
TT
29322018-06-18 Tom Tromey <tom@tromey.com>
2933
2934 * solib-frv.c (frv_relocate_main_executable): Use
2935 unique_xmalloc_ptr.
2936 * solib-dsbt.c (dsbt_relocate_main_executable): Use
2937 unique_xmalloc_ptr.
2938
06424eac
TT
29392018-06-18 Tom Tromey <tom@tromey.com>
2940
2941 * objfiles.h (inhibit_section_map_updates): Update.
2942 (resume_section_map_updates, resume_section_map_updates_cleanup):
2943 Remove.
2944 * solib-svr4.c (svr4_handle_solib_event): Update.
2945 * objfiles.c (inhibit_section_map_updates): Return
2946 scoped_restore_tmpl<int>.
2947 (resume_section_map_updates, resume_section_map_updates_cleanup):
2948 Remove.
2949
b4be9fad
TT
29502018-06-18 Tom Tromey <tom@tromey.com>
2951
2952 * valprint.h (read_string): Update.
2953 * valprint.c (read_string): Change type of "buffer".
2954 (val_print_string): Update.
2955 * python/py-value.c (valpy_string): Update.
2956 * language.h (struct language_defn) <la_get_string>: Change
2957 type of "buffer".
2958 (default_get_string, c_get_string): Update.
2959 * language.c (default_get_string): Change type of "buffer".
2960 * guile/scm-value.c (gdbscm_value_to_string): Update.
2961 * c-lang.c (c_get_string): Change type of "buffer".
2962
3f0dbd67
TT
29632018-06-18 Tom Tromey <tom@tromey.com>
2964
2965 * ser-mingw.c (struct pipe_state_destroyer): New.
2966 (pipe_state_up): New typedef.
2967 (cleanup_pipe_state): Remove.
2968 (pipe_windows_open): Use pipe_state_up. Don't release argv.
2969
69d340c6
TT
29702018-06-18 Tom Tromey <tom@tromey.com>
2971
2972 * rust-lang.h (rust_yyerror): Don't declare.
2973 * rust-lang.c (rust_language_defn): Update.
2974 * rust-exp.y (yyerror): Now static.
2975 * parse.c (parse_exp_in_context_1): Update.
2976 * p-lang.h (p_yyerror): Don't declare.
2977 * p-lang.c (p_language_defn): Update.
2978 * p-exp.y (yyerror): Now static.
2979 * opencl-lang.c (opencl_language_defn): Update.
2980 * objc-lang.c (objc_language_defn): Update.
2981 * m2-lang.h (m2_yyerror): Don't declare.
2982 * m2-lang.c (m2_language_defn): Update.
2983 * m2-exp.y (yyerror): Now static.
2984 * language.h (struct language_defn) <la_error>: Remove.
2985 * language.c (unk_lang_error): Remove.
2986 (unknown_language_defn, auto_language_defn): Remove.
2987 * go-lang.h (go_yyerror): Don't declare.
2988 * go-lang.c (go_language_defn): Update.
2989 * go-exp.y (yyerror): Now static.
2990 * f-lang.h (f_yyerror): Don't declare.
2991 * f-lang.c (f_language_defn): Update.
2992 * f-exp.y (yyerror): Now static.
2993 * d-lang.h (d_yyerror): Don't declare.
2994 * d-lang.c (d_language_defn): Update.
2995 * d-exp.y (yyerror): Now static.
2996 * c-lang.h (c_yyerror): Don't declare.
2997 * c-lang.c (c_language_defn, cplus_language_defn)
2998 (asm_language_defn, minimal_language_defn): Update.
2999 * c-exp.y (yyerror): Now static.
3000 * ada-lang.h (ada_yyerror): Don't declare.
3001 * ada-lang.c (ada_language_defn): Update.
3002 * ada-exp.y (yyerror): Now static.
3003
e9902bfc
AH
30042018-06-18 Alan Hayward <alan.hayward@arm.com>
3005
3006 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
3007 (store_sveregs_to_thread): Likewise.
3008 (aarch64_linux_fetch_inferior_registers): Check for SVE.
3009 (aarch64_linux_store_inferior_registers): Likewise.
3010 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
3011 function.
3012 (aarch64_sve_regs_copy_to_regcache): Likewise.
3013 (aarch64_sve_regs_copy_from_regcache): Likewise.
3014 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
3015 declaration.
3016 (aarch64_sve_regs_copy_to_regcache): Likewise.
3017 (aarch64_sve_regs_copy_from_regcache): Likewise.
3018 (sve_context): Structure from Linux headers.
3019 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
3020 (SVE_SIG_ZREG_SIZE): Likewise.
3021 (SVE_SIG_PREG_SIZE): Likewise.
3022 (SVE_SIG_FFR_SIZE): Likewise.
3023 (SVE_SIG_REGS_OFFSET): Likewise.
3024 (SVE_SIG_ZREGS_OFFSET): Likewise.
3025 (SVE_SIG_ZREG_OFFSET): Likewise.
3026 (SVE_SIG_ZREGS_SIZE): Likewise.
3027 (SVE_SIG_PREGS_OFFSET): Likewise.
3028 (SVE_SIG_PREG_OFFSET): Likewise.
3029 (SVE_SIG_PREGS_SIZE): Likewise.
3030 (SVE_SIG_FFR_OFFSET): Likewise.
3031 (SVE_SIG_REGS_SIZE): Likewise.
3032 (SVE_SIG_CONTEXT_SIZE): Likewise.
3033 (SVE_PT_REGS_MASK): Likewise.
3034 (SVE_PT_REGS_FPSIMD): Likewise.
3035 (SVE_PT_REGS_SVE): Likewise.
3036 (SVE_PT_VL_INHERIT): Likewise.
3037 (SVE_PT_VL_ONEXEC): Likewise.
3038 (SVE_PT_REGS_OFFSET): Likewise.
3039 (SVE_PT_FPSIMD_OFFSET): Likewise.
3040 (SVE_PT_FPSIMD_SIZE): Likewise.
3041 (SVE_PT_SVE_ZREG_SIZE): Likewise.
3042 (SVE_PT_SVE_PREG_SIZE): Likewise.
3043 (SVE_PT_SVE_FFR_SIZE): Likewise.
3044 (SVE_PT_SVE_FPSR_SIZE): Likewise.
3045 (SVE_PT_SVE_FPCR_SIZE): Likewise.
3046 (__SVE_SIG_TO_PT): Likewise.
3047 (SVE_PT_SVE_OFFSET): Likewise.
3048 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
3049 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
3050 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
3051 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
3052 (SVE_PT_SVE_PREG_OFFSET): Likewise.
3053 (SVE_PT_SVE_PREGS_SIZE): Likewise.
3054 (SVE_PT_SVE_FFR_OFFSET): Likewise.
3055 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
3056 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
3057 (SVE_PT_SVE_SIZE): Likewise.
3058 (SVE_PT_SIZE): Likewise.
3059 (HAS_SVE_STATE): New define.
3060
17a1cc89
AH
30612018-06-18 Alan Hayward <alan.hayward@arm.com>
3062
3063 * nat/aarch64-sve-linux-sigcontext.h: New file.
3064 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
3065 new files.
3066 (SVE_VQ_MIN): Likewise.
3067 (SVE_VQ_MAX): Likewise.
3068 (SVE_VL_MIN): Likewise.
3069 (SVE_VL_MAX): Likewise.
3070 (SVE_NUM_ZREGS): Likewise.
3071 (SVE_NUM_PREGS): Likewise.
3072 (sve_vl_valid): Likewise.
3073 (struct user_sve_header): Likewise.
3074
7010835a
AB
30752018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3076 Richard Bunt <Richard.Bunt@arm.com>
3077
3078 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
3079 was requested by GDB.
3080
479b3ef4
TV
30812018-06-15 Tom de Vries <tdevries@suse.de>
3082
3083 * MAINTAINERS (Write After Approval): Add Tom de Vries.
3084
8199b8f4
SM
30852018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
3086
3087 * gnulib/update-gnulib.sh: Print expected versions of
3088 autoconf/aclocal.
3089
55c748a1
SM
30902018-06-14 Simon Marchi <simon.marchi@ericsson.com>
3091
3092 * arch-utils.c (default_type_align): Use type_length_units.
3093 * gdbtypes.c (type_align): Use type_length_units.
3094
87a8eca7
PW
30952018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3096
3097 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
3098 of 'define' command.
3099
5d9a0608
TV
31002018-06-14 Tom de Vries <tdevries@suse.de>
3101
3102 PR cli/22573
3103 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
3104 get_no_prettyformat_print_options.
3105
ab89b5a5
SM
31062018-06-13 Simon Marchi <simon.marchi@ericsson.com>
3107
3108 * sparc-nat.h: Include target.h.
3109 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
3110 <fetch_registers>: Remove this argument in function call.
3111 <store_registers>: Remove this argument in function call, remove
3112 extra semicolon.
3113 <low_forget_process>: Call sparc64_forget_process instead of
3114 sparc_forget_process.
3115
62c808ae
RO
31162018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3117
3118 * procfs.c (_initialize_procfs): Use add_inf_child_target.
3119 (procfs_target::make_corefile_notes): Adjust to new
3120 target_read_alloc return type.
3121
1840d81a
AB
31222018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3123 Stephen Roberts <stephen.roberts@arm.com>
3124
3125 PR gdb/22882
3126 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
3127 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
3128 Move should_notify_stop local into more inner scope.
3129
9516f85a
AB
31302018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3131 Stephen Roberts <stephen.roberts@arm.com>
3132
3133 PR gdb/22882
3134 * infrun.c (resume_1): Add call to mark_async_event_handler.
3135
defd2172
AB
31362018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3137
3138 * infrun.c (do_target_wait): Change old version of $pc printed.
3139
7b23e087
SM
31402018-06-11 Simon Marchi <simon.marchi@ericsson.com>
3141
3142 * dwarf2read.c (read_index_from_section): Rename to...
3143 (read_gdb_index_from_section): ... this, update all callers.
3144 (dwarf2_read_index): Rename to...
3145 (dwarf2_read_gdb_index): ... this, update all callers.
3146
69c67a0b
JDA
31472018-06-11 John David Anglin <danglin@gcc.gnu.org>
3148
3149 * gdb/hppa-linux-nat.c
3150 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
3151 hppa_linux_nat_target::fetch_registers.
3152
65d4cada
AH
31532018-06-11 Alan Hayward <alan.hayward@arm.com>
3154
3155 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
3156 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
3157 (AARCH64_DWARF_SVE_FFR): Likewise.
3158 (AARCH64_DWARF_SVE_P0): Likewise.
3159 (AARCH64_DWARF_SVE_Z0): Likewise.
3160
f868386e
AH
31612018-06-11 Alan Hayward <alan.hayward@arm.com>
3162
3163 * common/common-regcache.h (raw_compare): New function.
3164 * regcache.c (regcache::raw_compare): Likewise.
3165 * regcache.h (regcache::raw_compare): New declaration.
3166
9c861883
AH
31672018-06-11 Alan Hayward <alan.hayward@arm.com>
3168
3169 * common/common-regcache.h (reg_buffer_common): New structure.
3170 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
3171 (reg_buffer::raw_supply): Likewise.
3172 (reg_buffer::raw_supply_integer): Likewise.
3173 (reg_buffer::raw_supply_zeroed): Likewise.
3174 (reg_buffer::raw_collect): Likewise.
3175 (reg_buffer::raw_collect_integer): Likewise.
3176 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
3177 (reg_buffer::raw_supply): Likewise.
3178 (reg_buffer::raw_supply_integer): Likewise.
3179 (reg_buffer::raw_supply_zeroed): Likewise.
3180 (reg_buffer::raw_collect): Likewise.
3181 (reg_buffer::raw_collect_integer): Likewise.
3182
953edf2b
TT
31832018-06-10 Tom Tromey <tom@tromey.com>
3184
3185 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
3186 (class remote_state) <stop_reply_queue>: Now std::vector.
3187 (remote_state::~remote_state)
3188 (remote_target::stop_reply_queue_length): Update.
3189 (struct queue_iter_param, remove_child_of_pending_fork)
3190 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
3191 (check_pending_event_prevents_wildcard_vcont_callback)
3192 (remove_stop_reply_for_inferior)
3193 (remove_stop_reply_of_remote_state)
3194 (remote_notif_remove_once_on_match)
3195 (stop_reply_match_ptid_and_ws)
3196 (remote_kill_child_of_pending_fork): Remove.
3197 (remote_target::remove_new_fork_children)
3198 (remote_target::check_pending_events_prevent_wildcard_vcont)
3199 (remote_target::discard_pending_stop_replies)
3200 (remote_target::discard_pending_stop_replies_in_queue)
3201 (remote_target::remote_notif_remove_queued_reply)
3202 (remote_target::queued_stop_reply)
3203 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
3204 (remote_target::wait, remote_target::kill_new_fork_children)
3205 (remote_target::async): Update.
3206
1ddbba9d
TT
32072018-06-10 Tom Tromey <tom@tromey.com>
3208
3209 * record-full.c (record_full_arch_list_cleanups): Remove.
3210 (record_full_message): Use try/catch.
3211 (record_full_wait_cleanups): Remove.
3212 (record_full_wait_1): Use try/catch.
3213 (record_full_restore): Likewise.
3214
219605fd
TT
32152018-06-10 Tom Tromey <tom@tromey.com>
3216
3217 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
3218 declare VEC. Add constructor.
3219 <in_target_beneath>: Now bool.
3220 (record_full_breakpoints): Now a std::vector, static.
3221 (record_full_sync_record_breakpoints)
3222 (record_full_init_record_breakpoints)
3223 (record_full_target::insert_breakpoint)
3224 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
3225
71b73764
SM
32262018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
3227
3228 * dwarf2read.c (process_cu_includes): Remove struct keyword.
3229 * serial.c (serial_interface_lookup): Remove struct keyword.
3230
4360561f
TT
32312018-06-10 Tom Tromey <tom@tromey.com>
3232
3233 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
3234 method.
3235 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
3236 a method.
3237 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
3238 method.
3239 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
3240 "beneath" as a method.
3241 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
3242 Use "beneath" as a method.
3243
d14b92bf
TT
32442018-06-10 Tom Tromey <tom@tromey.com>
3245
3246 * tracefile.c (struct trace_file_writer_deleter): New.
3247 <operator()>: Rename from trace_file_writer_xfree.
3248 (trace_file_writer_up): New typedef.
3249 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
3250
835dcf92
SM
32512018-06-09 Simon Marchi <simon.marchi@ericsson.com>
3252
3253 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
3254 <m_registers, m_register_status>: Change type to
3255 std::unique_ptr.
3256 * regcache.c (reg_buffer::reg_buffer): Use new instead of
3257 XCNEWVEC.
3258
aac0d564
SM
32592018-06-09 Simon Marchi <simon.marchi@ericsson.com>
3260
3261 * common/common-regcache.h (enum register_status): Add
3262 underlying type "signed char".
3263 * regcache.h (reg_buffer) <m_register_status>: Change type to
3264 register_status *.
3265 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
3266 register_status instead of signed char.
3267 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
3268 (reg_buffer::get_register_status): Remove cast.
3269 (readable_regcache::raw_read): Remove cast.
3270 (readable_regcache::cooked_read): Remove cast.
3271
77ad7394
TT
32722018-06-09 Tom Tromey <tom@tromey.com>
3273
3274 * source.c (reverse_search_command, forward_search_command): Use
3275 scoped_fd.
3276
191cca63
TT
32772018-06-09 Tom Tromey <tom@tromey.com>
3278
3279 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
3280 (serial_ops_list): Now static, std::vector.
3281 (serial_interface_lookup, serial_add_interface): Update.
3282
c5d0225d
TT
32832018-06-09 Tom Tromey <tom@tromey.com>
3284
3285 * dwarf2read.c (process_cu_includes): Update.
3286 (process_full_comp_unit): Update.
3287 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
3288 std::vector.
3289
aeab5128
PK
32902018-06-08 Paul Koning <paul_koning@dell.com>
3291
3292 PR gdb/23252
3293
3294 * python/python.c (do_start_initialization):
3295 Avoid call to internal Python API.
3296 (init__gdb_module): New function.
3297
5045b3d7
GB
32982018-06-08 Gary Benson <gbenson@redhat.com>
3299
3300 * linux-thread-db.c (valprint.h): New include.
3301 (struct check_thread_db_info): New structure.
3302 (check_thread_db_on_load, tdb_testinfo): New static globals.
3303 (check_thread_db, check_thread_db_callback): New functions.
3304 (try_thread_db_load_1): Run integrity checks if requested.
3305 (maintenance_check_libthread_db): New function.
3306 (_initialize_thread_db): Register "maint check libthread-db"
3307 and "maint set/show check-libthread-db".
3308 * NEWS: Mention the above new commands.
3309
2f4f025f
TT
33102018-06-08 Tom Tromey <tom@tromey.com>
3311
3312 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
3313 now a method.
3314
343b0027
TT
33152018-06-08 Tom Tromey <tom@tromey.com>
3316
3317 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
3318
8dcc53b3
TT
33192018-06-08 Tom Tromey <tom@tromey.com>
3320
3321 * common/btrace-common.h (struct btrace_data): Add constructor,
3322 destructor, move assignment operator.
3323 <empty, clear, fini>: New methods.
3324 <format>: Initialize.
3325 (btrace_data_init, btrace_data_fini, btrace_data_clear)
3326 (btrace_data_empty): Don't declare.
3327 * common/btrace-common.c (btrace_data_init): Remove.
3328 (btrace_data::fini): Rename from btrace_data_fini.
3329 (btrace_data::empty): Rename from btrace_data_empty.
3330 (btrace_data::clear): Rename from btrace_data_clear. Return
3331 bool.
3332 * btrace.h (make_cleanup_btrace_data): Don't declare.
3333 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
3334 (parse_xml_btrace): Update.
3335 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
3336 (maint_btrace_clear_packet_history_cmd): Update.
3337
a1740ee1
PA
33382018-06-07 Pedro Alves <palves@redhat.com>
3339
3340 * target.h (target_ops) <beneath>: Now a method. All references
3341 updated.
3342 (class target_stack): New.
3343 * target.c (g_target_stack): New.
3344 (g_current_top_target): Delete.
3345 (current_top_target): Get the top target out of g_target_stack.
3346 (target_stack::push, target_stack::unpush): New.
3347 (push_target, unpush_target): Reimplement.
3348 (target_is_pushed): Reimplement in terms of g_target_stack.
3349 (target_ops::beneath, target_stack::find_beneath): New.
3350
d6ca69cd
PA
33512018-06-07 Pedro Alves <palves@redhat.com>
3352
3353 * target.h (find_target_beneath): Delete declaration.
3354 * target.c (find_target_beneath): Delete definition.
3355 * aix-thread.c: All callers of find_target_beneath adjusted to
3356 call target_ops::beneath instead.
3357 * bsd-uthread.c: Likewise.
3358 * linux-thread-db.c: Likewise.
3359 * ravenscar-thread.c: Likewise.
3360 * sol-thread.c: Likewise.
3361 * spu-multiarch.c: Likewise.
3362
b6a8c27b
PA
33632018-06-07 Pedro Alves <palves@redhat.com>
3364
3365 * target.h (target_ops) <beneath>: Now a method. All references
3366 updated.
3367 (target_ops) <m_beneath>: New.
3368 * target.c (target_ops::beneath): New.
3369 * corelow.c: Adjust all references to target_ops::beneath.
3370 * linux-thread-db.c: Likewise.
3371 * make-target-delegates: Likewise.
3372 * record-btrace.c: Likewise.
3373 * record-full.c: Likewise.
3374 * remote.c: Likewise.
3375 * target.c: Likewise.
3376 * target-delegates.c: Regenerate.
3377
8b88a78e
PA
33782018-06-07 Pedro Alves <palves@redhat.com>
3379
3380 * target.h (target_stack): Delete.
3381 (current_top_target): Declare function.
3382 * target.c (target_stack): Delete.
3383 (g_current_top_target): New.
3384 (current_top_target): New function.
3385 * auxv.c: Use current_top_target instead of target_stack
3386 throughout.
3387 * avr-tdep.c: Likewise.
3388 * breakpoint.c: Likewise.
3389 * corefile.c: Likewise.
3390 * elfread.c: Likewise.
3391 * eval.c: Likewise.
3392 * exceptions.c: Likewise.
3393 * frame.c: Likewise.
3394 * gdbarch-selftests.c: Likewise.
3395 * gnu-v3-abi.c: Likewise.
3396 * ia64-tdep.c: Likewise.
3397 * ia64-vms-tdep.c: Likewise.
3398 * infcall.c: Likewise.
3399 * infcmd.c: Likewise.
3400 * infrun.c: Likewise.
3401 * linespec.c: Likewise.
3402 * linux-tdep.c: Likewise.
3403 * minsyms.c: Likewise.
3404 * ppc-linux-nat.c: Likewise.
3405 * ppc-linux-tdep.c: Likewise.
3406 * procfs.c: Likewise.
3407 * regcache.c: Likewise.
3408 * remote.c: Likewise.
3409 * rs6000-tdep.c: Likewise.
3410 * s390-linux-nat.c: Likewise.
3411 * s390-tdep.c: Likewise.
3412 * solib-aix.c: Likewise.
3413 * solib-darwin.c: Likewise.
3414 * solib-dsbt.c: Likewise.
3415 * solib-spu.c: Likewise.
3416 * solib-svr4.c: Likewise.
3417 * solib-target.c: Likewise.
3418 * sparc-tdep.c: Likewise.
3419 * sparc64-tdep.c: Likewise.
3420 * spu-tdep.c: Likewise.
3421 * symfile.c: Likewise.
3422 * symtab.c: Likewise.
3423 * target-descriptions.c: Likewise.
3424 * target-memory.c: Likewise.
3425 * target.c: Likewise.
3426 * target.h: Likewise.
3427 * tracefile-tfile.c: Likewise.
3428 * tracepoint.c: Likewise.
3429 * valops.c: Likewise.
3430 * valprint.c: Likewise.
3431 * value.c: Likewise.
3432 * windows-tdep.c: Likewise.
3433 * mi/mi-main.c: Likewise.
3434
c7110220
TT
34352018-06-07 Tom Tromey <tom@tromey.com>
3436
3437 * valprint.h (build_address_symbolic): Declare.
3438 * printcmd.c (print_address_symbolic): Update.
3439 (build_address_symbolic): Change "name" and "filename" to
3440 std::string.
3441 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3442 Update.
3443 * defs.h (build_address_symbolic): Remove declaration.
3444
63bad7b6
AH
34452018-06-07 Alan Hayward <alan.hayward@arm.com>
3446
3447 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
3448 (aarch64_vnv_type): Add function.
3449 (aarch64_pseudo_register_name): Add V regs for SVE.
3450 (aarch64_pseudo_register_type): Likewise.
3451 (aarch64_pseudo_register_reggroup_p): Likewise.
3452 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
3453 (aarch64_pseudo_read_value): Add V regs for SVE.
3454 (aarch64_pseudo_write_2): Use V0 offset for SVE
3455 (aarch64_pseudo_write): Add V regs for SVE.
3456 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
3457
13e3c608
SDJ
34582018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
3459
3460 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
3461 (sve_vl_from_vq): Likewise.
3462
c61b06a1
TT
34632018-06-05 Tom Tromey <tom@tromey.com>
3464
3465 * cli/cli-cmds.c (show_version): Update.
3466 * top.c (print_gdb_version): Add "interactive" parameter.
3467 Update.
3468 * main.c (captured_main_1): Update.
3469 * top.h (print_gdb_version): Add "interactive" parameter and a
3470 comment.
3471
115f7325
DM
34722018-06-05 David Malcolm <dmalcolm@redhat.com>
3473
3474 * common/enum-flags.h: Add trailing semicolon to example in
3475 comment.
3476
eb6af809
TT
34772018-06-05 Tom Tromey <tom@tromey.com>
3478
3479 PR cli/12326:
3480 * NEWS: Add entry about pager.
3481 * utils.c (pagination_disabled_for_command): New global.
3482 (prompt_for_continue): Allow "c" response to prompt.
3483 (reinitialize_more_filter): Clear
3484 pagination_disabled_for_command.
3485 (fputs_maybe_filtered): Check pagination_disabled_for_command.
3486
54d343a2
TT
34872018-06-04 Tom Tromey <tom@tromey.com>
3488
3489 * ada-lang.h (ada_lookup_symbol_list): Update.
3490 * ada-lang.c (resolve_subexp): Update.
3491 (symbols_are_identical_enums): Change type of syms. Remove nsyms
3492 parameter.
3493 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
3494 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
3495 results parameter to std::vector.
3496 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
3497 Update.
3498 * ada-exp.y (block_lookup): Update.
3499 (select_possible_type_sym): Change type of syms. Remove nsyms
3500 parameter.
3501 (write_var_or_type, write_name_assoc): Update.
3502
178d6a63
JB
35032018-06-04 Joel Brobecker <brobecker@adacore.com>
3504
3505 * windows-nat.c (windows_nat_target::xfer_partial): Return
3506 TARGET_XFER_E_IO if we need to delegate to the target beneath
3507 but BENEATH is NULL.
3508
baf00c2d
SM
35092018-06-04 Simon Marchi <simon.marchi@ericsson.com>
3510
3511 * Makefile.in (config.status): Add configure.nat as a
3512 dependency.
3513
214b073c
TT
35142018-06-04 Tom Tromey <tom@tromey.com>
3515
3516 * cp-name-parser.y (cpname_state): Add method declarations.
3517 (HANDLE_QUAL): Update.
3518 (cpname_state::d_grab, cpname_state::fill_comp)
3519 (cpname_state::make_operator, cpname_state::make_dtor)
3520 (cpname_state::make_builtin_type, cpname_state::make_name)
3521 (cpname_state::d_qualify, cpname_state::d_int_type)
3522 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
3523 (%union): Move earlier.
3524
62b74cb8
AH
35252018-06-04 Alan Hayward <alan.hayward@arm.com>
3526
3527 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
3528
3c5cd5c3
AH
35292018-06-04 Alan Hayward <alan.hayward@arm.com>
3530
3531 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
3532 (aarch64_pseudo_write_1): Likewise.
3533 (aarch64_pseudo_read_value): Use helper.
3534 (aarch64_pseudo_write): Likewise.
3535
59f413d5
PA
35362018-06-04 Pedro Alves <palves@redhat.com>
3537
3538 * darwin-nat.c (darwin_ops): Delete.
3539 (darwin_attach_pid): Use get_native_target.
3540
1332a140
AH
35412018-06-04 Alan Hayward <alan.hayward@arm.com>
3542
3543 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
3544 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
3545
ba2d2bb2
AH
35462018-06-04 Alan Hayward <alan.hayward@arm.com>
3547
3548 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
3549 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
3550 (aarch64_gdbarch_init): Check for SVE.
3551 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
3552
35532018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
3554
3555 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
3556 * aarch64-tdep.h (aarch64_read_description): Likewise.
3557 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3558 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3559 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
3560 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
3561 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
3562
41c60b4b
SM
35632018-06-02 Simon Marchi <simon.marchi@ericsson.com>
3564
3565 * value.c (value_fetch_lazy_bitfield): New.
3566 (value_fetch_lazy_memory): New.
3567 (value_fetch_lazy_register): New.
3568 (value_fetch_lazy): Factor out to smaller functions.
3569
7b640f72
TT
35702018-06-01 Tom Tromey <tom@tromey.com>
3571
3572 * cp-name-parser.y (backslashable, represented): Now const.
3573
98e69eb3
TT
35742018-06-01 Tom Tromey <tom@tromey.com>
3575
3576 * cp-name-parser.y: Include parser-defs.h.
3577 (parser_fprintf): Remove declaration.
3578
49265499
TT
35792018-06-01 Tom Tromey <tom@tromey.com>
3580
3581 * cp-name-parser.y: Use %pure-parser, %lex-param, and
3582 %parse-param.
3583 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
3584 (global_result): Remove globals.
3585 (struct cpname_state): New.
3586 (yyparse): Don't declare.
3587 (yylex, yyerror): Move declarations after %union.
3588 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
3589 (make_name): Add state parameter.
3590 Update all callers.
3591 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
3592 parameter.
3593 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
3594 Update.
3595 (yylex): Add lvalp, state parameters.
3596 (yyerror): Add state parameter.
3597 (cp_demangled_name_to_comp): Update.
3598
55b6c984
TT
35992018-06-01 Tom Tromey <tom@tromey.com>
3600
3601 * cp-name-parser.y (parser_fprintf): Declare.
3602 (GDB_YY_REMAP_PREFIX): Define.
3603 Include yy-remap.h. Don't redefine yy* identifiers.
3604
3513a6bb
TT
36052018-06-01 Tom Tromey <tom@tromey.com>
3606
3607 * python/py-type.c (typy_legacy_template_argument): Update.
3608 * cp-support.h (cp_demangled_name_to_comp): Update.
3609 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
3610 parameter to be a "std::string *".
3611 (main): Update.
3612
e9cb46ab
L
36132018-06-01 H.J. Lu <hongjiu.lu@intel.com>
3614
3615 * ada-lex.l: Include "diagnostics.h" instead of
3616 "common/diagnostics.h".
3617 * unittests/environ-selftests.c: Likewise.
3618 * common/diagnostics.h: Moved to ../include.
3619
8e817061
JB
36202018-06-01 Joel Brobecker <brobecker@adacore.com>
3621
3622 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
3623 to language_mode_manual while calling breakpoint_re_set_one.
3624
a737d952
TT
36252018-06-01 Tom Tromey <tom@tromey.com>
3626
3627 * valops.c (value_cast_structs, destructor_name_p): Update.
3628 * symtab.c (gdb_mangle_name): Update.
3629 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
3630 Update.
3631 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
3632 (pascal_object_print_value_fields, pascal_object_print_value):
3633 Update.
3634 * p-typeprint.c (pascal_type_print_derivation_info): Update.
3635 * linespec.c (find_methods): Update.
3636 * gdbtypes.h (type_name_no_tag): Remove.
3637 (type_name_or_error): Rename from type_name_no_tag_or_error.
3638 * gdbtypes.c (type_name_no_tag): Remove.
3639 (type_name_or_error): Rename from type_name_no_tag_or_error.
3640 (lookup_struct_elt_type, check_typedef): Update.
3641 * expprint.c (print_subexp_standard): Update.
3642 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
3643 * d-namespace.c (d_lookup_nested_symbol): Update.
3644 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
3645 (cp_print_class_member): Update.
3646 * cp-namespace.c (cp_lookup_nested_symbol): Update.
3647 * completer.c (add_struct_fields): Update.
3648 * c-typeprint.c (cp_type_print_derivation_info)
3649 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
3650 Update.
3651 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
3652 (ada_prefer_type, ada_is_exception_sym): Update.
3653
e86ca25f
TT
36542018-06-01 Tom Tromey <tom@tromey.com>
3655
3656 * valops.c (enum_constant_from_type, value_namespace_elt)
3657 (value_maybe_namespace_elt): Update.
3658 * valarith.c (find_size_for_pointer_math): Update.
3659 * target-descriptions.c (make_gdb_type): Update.
3660 * symmisc.c (print_symbol): Update.
3661 * stabsread.c (define_symbol, read_type)
3662 (complain_about_struct_wipeout, add_undefined_type)
3663 (cleanup_undefined_types_1): Update.
3664 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
3665 (rust_range_type_p, val_print_struct, rust_print_struct_def)
3666 (rust_internal_print_type, rust_composite_type)
3667 (rust_evaluate_funcall, rust_evaluate_subexp)
3668 (rust_inclusive_range_type_p): Update.
3669 * python/py-type.c (typy_get_tag): Update.
3670 * p-typeprint.c (pascal_type_print_base): Update.
3671 * mdebugread.c (parse_symbol, parse_type): Update.
3672 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
3673 Update.
3674 * guile/scm-type.c (gdbscm_type_tag): Update.
3675 * go-lang.c (sixg_string_p): Update.
3676 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
3677 Update.
3678 * gdbtypes.h (struct main_type) <tag_name>: Remove.
3679 (TYPE_TAG_NAME): Remove.
3680 * gdbtypes.c (type_name_no_tag): Simplify.
3681 (check_typedef, check_types_equal, recursive_dump_type)
3682 (copy_type_recursive, arch_composite_type): Update.
3683 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
3684 in summary mode when needed.
3685 * eval.c (evaluate_funcall): Update.
3686 * dwarf2read.c (fixup_go_packaging, read_structure_type)
3687 (process_structure_scope, read_enumeration_type)
3688 (read_namespace_type, read_module_type, determine_prefix): Update.
3689 * cp-support.c (inspect_type): Update.
3690 * coffread.c (process_coff_symbol, decode_base_type): Update.
3691 * c-varobj.c (c_is_path_expr_parent): Update.
3692 * c-typeprint.c (c_type_print_base_struct_union): Update.
3693 (c_type_print_base_1): Update. Print struct/class/union/enum in
3694 summary when using C language.
3695 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
3696 (gen_maybe_namespace_elt): Update.
3697 * ada-lang.c (ada_type_name): Simplify.
3698 (empty_record, ada_template_to_fixed_record_type_1)
3699 (template_to_static_fixed_type)
3700 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
3701
c1ec8cea
TT
37022018-06-01 Tom Tromey <tom@tromey.com>
3703
3704 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
3705 c_print_type.
3706 * c-typeprint.c (c_print_type_1): Add "language" parameter.
3707 (c_print_type): Update.
3708 (c_print_type): New overload.
3709 (c_type_print_varspec_prefix, c_type_print_args)
3710 (c_type_print_varspec_suffix, c_print_type_no_offsets)
3711 (c_type_print_base_struct_union, c_type_print_base_1)
3712 (cp_type_print_method_args): Add "language" parameter.
3713 (c_type_print_base): Update.
3714 * c-lang.h (c_print_type): Add new overload.
3715
bc8453a7
TT
37162018-06-01 Tom Tromey <tom@tromey.com>
3717
3718 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
3719 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
3720
739e8682
AH
37212018-06-01 Alan Hayward <alan.hayward@arm.com>
3722
3723 * aarch64-tdep.c (aarch64_sve_register_names): New const
3724 var.
3725 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
3726 (AARCH64_SVE_Z_REGS_NUM): New define.
3727 (AARCH64_SVE_P_REGS_NUM): Likewise.
3728 (AARCH64_SVE_NUM_REGS): Likewise.
3729
8a60efe7
UB
37302018-05-31 Uros Bizjak <ubizjak@gmail.com>
3731
3732 * nat/linux-ptrace.h [__alpha__]
3733 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
3734 definitions.
3735
4b2dfa9d
MR
37362018-05-31 Maciej W. Rozycki <macro@mips.com>
3737
3738 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
3739 the endianness selected.
3740 * NEWS: Document `set endian auto' mode operation update.
3741
122394f1
AH
37422018-05-31 Alan Hayward <alan.hayward@arm.com>
3743
3744 * Makefile.in: Add new header.
3745 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
3746 (sve_vl_from_vg): Likewise.
3747 (sve_vq_from_vl): Likewise.
3748 (sve_vl_from_vq): Likewise.
3749 (sve_vq_from_vg): Likewise.
3750 (sve_vg_from_vq): Likewise.
3751 * configure.nat: Add new c file.
3752 * nat/aarch64-sve-linux-ptrace.c: New file.
3753 * nat/aarch64-sve-linux-ptrace.h: New file.
3754
95228a0d
AH
37552018-05-31 Alan Hayward <alan.hayward@arm.com>
3756
3757 * aarch64-linux-nat.c (aarch64_linux_read_description):
3758 Add parmeter zero.
3759 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
3760 Likewise.
3761 * aarch64-tdep.c (tdesc_aarch64_list): Add.
3762 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
3763 (aarch64_gdbarch_init): Add parmeter zero.
3764 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
3765 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
3766 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
3767 parmeter.
3768 * doc/gdb.texinfo: Describe SVE feature
3769 * features/aarch64-sve.c: New file.
3770
5969f0db
OJ
37712018-05-31 Omair Javaid <omair.javaid@linaro.org>
3772
3773 PR gdb/23210
3774 * gdbarch.sh (significant_addr_bit): Default to zero when
3775 not set by target architecture.
3776 * gdbarch.c: Re-generated.
3777 * utils.c (address_significant): Update.
3778
61367c61
JB
37792018-05-30 Joel Brobecker <brobecker@adacore.com>
3780
3781 * stack.c (func_command): Remove trailing newline in call to error.
3782
34a79281
SM
37832018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3784
3785 * regcache.h (regcache_raw_collect): Remove, update callers to
3786 use regcache::raw_collect.
3787 * regcache.c (regcache_raw_collect): Remove.
3788
73e1c03f
SM
37892018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3790
3791 * regcache.h (regcache_raw_supply): Remove, update callers to
3792 use detached_regcache::raw_supply.
3793 * regcache.c (regcache_raw_supply): Remove.
3794
e4c4a59b
SM
37952018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3796
3797 * regcache.h (regcache_cooked_write_part): Remove, update
3798 callers to use regcache::cooked_write_part.
3799 * regcache.c (regcache_cooked_write_part): Remove.
3800
73bb0000
SM
38012018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3802
3803 * regcache.h (regcache_cooked_read_part): Remove, update callers
3804 to use readable_regcache::cooked_read_part.
3805 * regcache.c (regcache_cooked_read_part): Remove.
3806
46a45e9d
SM
38072018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3808
3809 * regcache.h (regcache_cooked_read_value): Remove, update
3810 callers to use readable_regcache::cooked_read_value.
3811 * regcache.c (regcache_cooked_read_value): Remove.
3812
b66f5587
SM
38132018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3814
3815 * regcache.h (regcache_cooked_write): Remove, update callers to
3816 use regcache::cooked_write.
3817 * regcache.c (regcache_cooked_write): Remove.
3818
6aa7d724
SM
38192018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3820
3821 * regcache.h (regcache_invalidate): Remove, update callers to
3822 use detached_regcache::invalidate instead.
3823 * regcache.c (regcache_invalidate): Remove.
3824
4f0420fd
SM
38252018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3826
3827 * regcache.h (regcache_raw_write_part): Remove, update callers
3828 to use regcache::raw_write_part instead.
3829 * regcache.c (regcache_raw_write_part): Remove.
3830
502fe83e
SM
38312018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3832
3833 * regcache.h (regcache_raw_read_part): Remove, update callers to
3834 use readable_regcache::raw_read_part instead.
3835 * regcache.c (regcache_raw_read_part): Remove.
3836
dca08e1f
SM
38372018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3838
3839 * regcache.h (regcache_cooked_read): Remove, update callers to
3840 use readable_regcache::cooked_read instead.
3841 * regcache.c (regcache_cooked_read): Remove.
3842
10eaee5f
SM
38432018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3844
3845 * regcache.h (regcache_raw_write): Remove, update callers to use
3846 regcache::raw_write instead.
3847 * regcache.c (regcache_raw_write): Remove.
3848
0b883586
SM
38492018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3850
3851 * regcache.h (regcache_raw_read): Remove, update callers to use
3852 readable_regcache::raw_read instead.
3853 * regcache.c (regcache_raw_read): Remove.
3854
0b47d985
SM
38552018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3856
3857 * regcache.h (regcache_raw_update): Remove, update callers to
3858 use readable_regcache::raw_update instead.
3859 * regcache.c (regcache_raw_update): Remove.
3860
0ec9f114
SM
38612018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3862
3863 * regcache.h (regcache_register_status): Remove, update callers
3864 to use reg_buffer::get_register_status directly instead.
3865 * regcache.c (regcache_register_status): Remove.
3866
222312d3
SM
38672018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3868
3869 * regcache.h (regcache_get_ptid): Remove, update all callers to
3870 call regcache::ptid instead.
3871 * regcache.c (regcache_get_ptid): Remove.
3872
fdbe37e3
SM
38732018-05-30 Simon Marchi <simon.marchi@ericsson.com>
3874
3875 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
3876
f7c6f423
PA
38772018-05-30 Pedro Alves <palves@redhat.com>
3878
3879 * common/common-exceptions.h (exception_rethrow): Use
3880 ATTRIBUTE_NORETURN.
3881
52941706
SM
38822018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
3883
3884 * breakpoint.c (print_solib_event, check_status_catch_solib):
3885 Remove struct keyword in range-based for loops.
3886 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
3887 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
3888 Likewise.
3889 * linespec.c (find_superclass_methods, search_minsyms_for_name):
3890 Likewise.
3891 * symfile.c (addr_info_make_relative): Likewise.
3892 * thread.c (value_in_thread_stack_temporaries): Likewise.
3893
bf2977b5
WP
38942018-06-12 Weimin Pan <weimin.pan@oracle.com>
3895
3896 PR gdb/16841
3897 * valops.c (value_struct_elt_for_reference): Call check_typedef on
3898 aggregate type to get its real type before accessing it.
3899
64cc34d8
WP
39002018-05-29 Weimin Pan <weimin.pan@oracle.com>
3901
3902 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
3903 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
3904 * coff-pe-read.c (add_pe_forwarded_sym): Replace
3905 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
3906 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
3907 * jit.c (jit_breakpoint_re_set_internal): Likewise.
3908 * printcmd.c (info_address_command): Likewise.
3909
e7ec8713
TT
39102018-05-29 Tom Tromey <tom@tromey.com>
3911
3912 * windows-nat.c (handle_exception): Update fall-through comment.
3913
bcb430e4
TT
39142018-05-29 Tom Tromey <tom@tromey.com>
3915
3916 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
3917 (struct program_space) <added_solibs>: Now a std::vector.
3918 * breakpoint.c (print_solib_event): Update.
3919 (check_status_catch_solib): Update.
3920 * progspace.c (clear_program_space_solib_cache): Update.
3921 * solib.c (update_solib_list): Update.
3922
894882e3
TT
39232018-05-29 Tom Tromey <tom@tromey.com>
3924
3925 * python/py-type.c (typy_richcompare): Update.
3926 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
3927 * gdbtypes.h (types_deeply_equal): Return bool.
3928 (types_equal): Likewise.
3929 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
3930 declare VEC.
3931 (check_types_equal): Change worklist to std::vector. Return
3932 bool.
3933 (struct type_equality_entry): Add constructor.
3934 (compare_maybe_null_strings): Return bool.
3935 (check_types_worklist): Return bool. Change worklist to
3936 std::vector.
3937 (types_deeply_equal): Use std::vector.
3938 (types_equal): Return bool.
3939 (compare_maybe_null_strings): Simplify.
3940
10b2ded4
TT
39412018-05-29 Tom Tromey <tom@tromey.com>
3942
3943 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
3944
4f7deebe
TT
39452018-05-29 Tom Tromey <tom@tromey.com>
3946
3947 * objc-lang.h: Don't include cp-support.h.
3948 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
3949 declare VEC.
3950
b8283aea
TT
39512018-05-27 Tom Tromey <tom@tromey.com>
3952
3953 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
3954
41a883c8
TT
39552018-05-25 Tom Tromey <tom@tromey.com>
3956
3957 * value.c (value::location): Initialize.
3958
bf259e25
TT
39592018-05-25 Tom Tromey <tom@tromey.com>
3960
3961 * dbxread.c (init_bincl_list): Remove.
3962 (bincl_list): Now a std::vector.
3963 (bincls_allocated, next_bincl): Remove.
3964 (free_bincl_list, do_free_bincl_list_cleanup)
3965 (make_cleanup_free_bincl_list): Remove.
3966 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
3967 unique_xmalloc_ptr.
3968 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
3969 (struct header_file_location): Add constructor.
3970 (add_bincl_to_list): Remove.
3971
d525a99b
TT
39722018-05-25 Tom Tromey <tom@tromey.com>
3973
3974 * tui/tui.c (tui_enable): Update.
3975 * mi/mi-interp.c (mi_interp::init): Update.
3976 * interps.h (class interp) <name>: New method.
3977 <m_name>: Rename from name.
3978 (~scoped_restore_interp): Update.
3979 * interps.c (interp::interp): Update.
3980 (interp_add, interp_set, interp_lookup_existing)
3981 (current_interp_named_p): Update.
3982
da505cff
TT
39832018-05-25 Tom Tromey <tom@tromey.com>
3984
3985 * interps.c (interp_name): Remove.
3986 * mi/mi-interp.c (mi_interp::init): Update.
3987 * interps.h (interp_name): Remove.
3988 (~scoped_restore_interp): Update.
3989 * tui/tui.c (tui_enable): Update.
3990
29f94340
TT
39912018-05-25 Tom Tromey <tom@tromey.com>
3992
3993 * utils.c (fputs_maybe_filtered): Update.
3994 * linespec.c (decode_line_full): Update.
3995 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
3996 (mi_print_breakpoint_for_event, mi_solib_loaded)
3997 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3998 (mi_user_selected_context_changed): Update.
3999 * mi/mi-main.c (mi_execute_command): Update.
4000 * cli/cli-script.c (execute_control_command): Update.
4001 * python/python.c (execute_gdb_command): Update.
4002 * solib.c (info_sharedlibrary_command): Update.
4003 * interps.c (interp_ui_out): Remove.
4004 * interps.h (interp_ui_out): Remove.
4005
716b8bc5
TT
40062018-05-25 Tom Tromey <tom@tromey.com>
4007
4008 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
4009 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
4010 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
4011
753ff9bd
TT
40122018-05-25 Tom Tromey <tom@tromey.com>
4013
4014 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
4015 * interps.c (interp_exec): Use scoped_restore.
4016
5ca3b260
TT
40172018-05-25 Tom Tromey <tom@tromey.com>
4018
4019 * remote.c (remote_target::remote_file_get): Use
4020 gdb::byte_vector.
4021 (remote_target::remote_file_put): Likewise.
4022
3173aa2f
TT
40232018-05-25 Tom Tromey <tom@tromey.com>
4024
4025 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
4026 a std::string.
4027 (get_pe_section_index, add_pe_exported_sym): Update.
4028 (read_pe_exported_syms): Use gdb::def_vector.
4029
09a5e1b5
TT
40302018-05-25 Tom Tromey <tom@tromey.com>
4031
4032 * frame.c (remove_prev_frame): Remove.
4033 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
4034
d8dab6c3
MR
40352018-05-25 Maciej W. Rozycki <macro@mips.com>
4036
4037 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
4038 Remove prototypes.
4039 * mips-linux-nat.c (supply_fpregset): Always call
4040 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
4041 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
4042 `mips_fill_fpregset'.
4043 * mips-linux-tdep.c (mips_supply_fpregset)
4044 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
4045 (mips_fill_fpregset_wrapper): Remove functions.
4046 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
4047 (mips_linux_fpregset): Remove variable.
4048 (mips_linux_iterate_over_regset_sections): Use
4049 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
4050 (mips_linux_o32_sigframe_init): Remove comment.
4051
3c69da40
PA
40522018-05-25 Pedro Alves <palves@redhat.com>
4053
4054 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
4055 (struct readahead_cache, struct packet_reg, struct
4056 remote_arch_state, class remote_state): Move higher up in the
4057 file.
4058 (remote_target::m_remote_state): Now an object instead of a pointer.
4059 (remote_target::get_remote_state): Adjust.
4060
39f0c204
AB
40612018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
4062
4063 * stack.c (select_and_print_frame): Delete.
4064 (struct function_bounds): Move struct within function.
4065 (func_command): Most content moved into new function
4066 find_frame_for_function, use new function, print result, add
4067 function comment.
4068 (find_frame_for_function): New function, now returns a result.
4069
d392224a
PW
40702018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4071
4072 * stack.c (iterate_over_block_arg_vars): Fix comment.
4073 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
4074
45f25d6c
AB
40752018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
4076
4077 PR gdb/23203
4078 * frame.c
4079 (scoped_restore_selected_frame::scoped_restore_selected_frame):
4080 Define.
4081 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
4082 Define.
4083 * frame.h (class scoped_restore_selected_frame): New class.
4084 * stack.c (print_frame_local_vars): Remove catching and rethrowing
4085 of any exception, use scoped_restore_selected_frame to restore the
4086 frame instead.
4087
da05d921
PA
40882018-05-24 Pedro Alves <palves@redhat.com>
4089
4090 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
4091 override.
4092
a8be540e
TT
40932018-05-23 Tom Tromey <tom@tromey.com>
4094
4095 * complaints.c (struct complaints): Remove.
4096 (symfile_complaint_book): Remove.
4097 (series): New global.
4098 (complaint_internal): Update.
4099 (clear_complaints): Update.
4100
ff1cf532
TT
41012018-05-23 Tom Tromey <tom@tromey.com>
4102
4103 * complaints.c (counters): New global.
4104 (struct complain): Remove.
4105 (struct complaints) <root>: Remove.
4106 (complaint_sentinel): Remove.
4107 (symfile_complaint_book): Update.
4108 (find_complaint) Remove.
4109 (complaint_internal, clear_complaints): Update.
4110
7ff88174
TT
41112018-05-23 Tom Tromey <tom@tromey.com>
4112
4113 * complaints.c (struct complain) <file, line>: Remove.
4114 (find_complaint): Remove file, line parameters.
4115 (complaint_internal): Update.
4116
de54e1a5
TT
41172018-05-23 Tom Tromey <tom@tromey.com>
4118
4119 * complaints.c (vcomplaint): Remove.
4120 (complaint_internal) Merge in contents of vcomplaint.
4121
2ac237e5
TT
41222018-05-23 Tom Tromey <tom@tromey.com>
4123
4124 * complaints.c (struct complaints) <explanation>: Remove.
4125 (symfile_explanations): Remove.
4126 (symfile_complaint_book): Update.
4127 (vcomplaint): Update.
4128 (struct explanation): Remove.
4129
b98664d3
TT
41302018-05-23 Tom Tromey <tom@tromey.com>
4131
4132 * complaints.c (symfile_complaints): Remove.
4133 (complaint_internal): Remove "complaints" parameter.
4134 (clear_complaints, vcomplaint): Remove "c" parameter.
4135 (get_complaints): Remove.
4136 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
4137 (dwarf2_debug_line_missing_file_complaint)
4138 (dwarf2_debug_line_missing_end_sequence_complaint)
4139 (dwarf2_complex_location_expr_complaint)
4140 (dwarf2_const_value_length_mismatch_complaint)
4141 (dwarf2_section_buffer_overflow_complaint)
4142 (dwarf2_macro_malformed_definition_complaint)
4143 (dwarf2_invalid_attrib_class_complaint)
4144 (create_addrmap_from_index, dw2_symtab_iter_next)
4145 (dw2_expand_marked_cus)
4146 (dw2_debug_names_iterator::find_vec_in_debug_names)
4147 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
4148 (create_debug_type_hash_table, init_cutu_and_read_dies)
4149 (partial_die_parent_scope, add_partial_enumeration)
4150 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
4151 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
4152 (read_import_statement, read_file_scope, create_dwo_cu_reader)
4153 (create_cus_hash_table, create_dwp_hash_table)
4154 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4155 (dwarf2_rnglists_process, dwarf2_ranges_process)
4156 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
4157 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
4158 (handle_struct_member_die, process_structure_scope)
4159 (read_array_type, read_common_block, read_module_type)
4160 (read_tag_pointer_type, read_typedef, read_base_type)
4161 (read_subrange_type, load_partial_dies, partial_die_info::read)
4162 (partial_die_info::read, partial_die_info::read)
4163 (partial_die_info::read, read_checked_initial_length_and_offset)
4164 (dwarf2_string_attr, read_formatted_entries)
4165 (dwarf_decode_line_header)
4166 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4167 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
4168 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
4169 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
4170 (get_signatured_type, get_DW_AT_signature_type)
4171 (decode_locdesc, file_file_name, consume_improper_spaces)
4172 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
4173 (dwarf_decode_macro_bytes, dwarf_decode_macros)
4174 (dwarf2_symbol_mark_computed, set_die_type)
4175 (read_attribute_value): Update.
4176 * stap-probe.c (handle_stap_probe, get_stap_base_address):
4177 Update.
4178 * dbxread.c (unknown_symtype_complaint)
4179 (lbrac_mismatch_complaint, repeated_header_complaint)
4180 (set_namestring, function_outside_compilation_unit_complaint)
4181 (read_dbx_symtab, process_one_symbol): Update.
4182 * gdbtypes.c (stub_noname_complaint): Update.
4183 * windows-nat.c (handle_unload_dll): Update.
4184 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
4185 (decode_base_type): Update.
4186 * xcoffread.c (bf_notfound_complaint, ef_complaint)
4187 (eb_complaint, record_include_begin, record_include_end)
4188 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
4189 (process_xcoff_symbol, read_symbol)
4190 (function_outside_compilation_unit_complaint)
4191 (scan_xcoff_symtab): Update.
4192 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
4193 * buildsym.c (finish_block_internal, make_blockvector)
4194 (end_symtab_get_static_block, augment_type_symtab): Update.
4195 * dtrace-probe.c (dtrace_process_dof)
4196 (dtrace_static_probe_ops::get_probes): Update.
4197 * complaints.h (struct complaint): Don't declare.
4198 (symfile_complaints): Remove.
4199 (complaint_internal): Remove "complaints" parameter.
4200 (complaint): Likewise.
4201 (clear_complaints): Likewise.
4202 * symfile.c (syms_from_objfile_1, finish_new_objfile)
4203 (reread_symbols): Update.
4204 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
4205 (dwarf2_frame_cache, decode_frame_entry): Update.
4206 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
4207 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4208 (info_selectors_command): Update.
4209 * macrotab.c (macro_include, check_for_redefinition)
4210 (macro_undef): Update.
4211 * objfiles.c (filter_overlapping_sections): Update.
4212 * stabsread.c (invalid_cpp_abbrev_complaint)
4213 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
4214 (define_symbol, error_type, read_type, rs6000_builtin_type)
4215 (stabs_method_name_from_physname, read_member_functions)
4216 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
4217 (attach_fields_to_type, complain_about_struct_wipeout)
4218 (read_range_type, read_args, common_block_start)
4219 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
4220 Update.
4221 * mdebugread.c (index_complaint, unknown_ext_complaint)
4222 (basic_type_complaint, bad_tag_guess_complaint)
4223 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
4224 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
4225 (parse_procedure, parse_lines)
4226 (function_outside_compilation_unit_complaint)
4227 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
4228 (bad_tag_guess_complaint, reg_value_complaint): Update.
4229 * cp-support.c (demangled_name_complaint): Update.
4230 * macroscope.c (sal_macro_scope): Update.
4231 * dwarf-index-write.c (class debug_names): Update.
4232
4e9668d0
TT
42332018-05-23 Tom Tromey <tom@tromey.com>
4234
4235 * complaints.c (clear_complaints): Remove "noisy" parameter.
4236 * complaints.h (clear_complaints): Update.
4237 * symfile.c (syms_from_objfile_1, finish_new_objfile)
4238 (reread_symbols): Update.
4239
43ba33c7
TT
42402018-05-23 Tom Tromey <tom@tromey.com>
4241
4242 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
4243 SUBSEQUENT_MESSAGE.
4244 (vcomplaint, clear_complaints): Update.
4245 (symfile_explanations): Remove some messages.
4246
2b9496b2
TT
42472018-05-23 Tom Tromey <tom@tromey.com>
4248
4249 * complaints.c (internal_complaint): Remove.
4250 * complaints.h (internal_complaint): Remove.
4251
35f1fea3
MR
42522018-05-22 Maciej W. Rozycki <macro@mips.com>
4253
4254 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
4255
6b8edb51
PA
42562018-05-22 Pedro Alves <palves@redhat.com>
4257
4258 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
4259 (remote_fileio_badfd, remote_fileio_return_errno)
4260 (remote_fileio_return_success, remote_fileio_func_open)
4261 (remote_fileio_func_open, remote_fileio_func_close)
4262 (remote_fileio_func_read, remote_fileio_func_write)
4263 (remote_fileio_func_lseek, remote_fileio_func_rename)
4264 (remote_fileio_func_unlink, remote_fileio_func_stat)
4265 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
4266 (remote_fileio_func_isatty, remote_fileio_func_system): Add
4267 remote_target parameter.
4268 (remote_fio_func_map) <func>: Add remote_target parameter.
4269 (do_remote_fileio_request, remote_fileio_request):
4270 * remote-fileio.h (remote_fileio_request):
4271 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
4272 remote_target parameter.
4273 (remote_notif_process, handle_notification): Adjust to pass down
4274 the remote.
4275 (remote_notif_state_allocate): Add remote_target parameter. Save
4276 it.
4277 * remote-notif.h (struct remote_target): Forward declare.
4278 (struct notif_client) <parse, ack, can_get_pending_events>: Add
4279 remote_target parameter.
4280 (struct remote_notif_state) <remote>: New field.
4281 (remote_notif_ack, remote_notif_parse): Add remote_target
4282 parameter.
4283 (remote_notif_state_allocate, remote_notif_state_allocate): Add
4284 remote_target parameter.
4285 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
4286 (threads_listing_context, rmt_thread_action, protocol_feature)
4287 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
4288 (packet_result, struct threads_listing_context, remote_state):
4289 Move definitions and declarations higher up.
4290 (remote_target) <~remote_target>: Declare.
4291 (remote_download_command_source, remote_file_put, remote_file_get)
4292 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
4293 (remote_hostio_pread_vFile, remote_hostio_send_command)
4294 (remote_hostio_set_filesystem, remote_hostio_open)
4295 (remote_hostio_close, remote_hostio_unlink, remote_state)
4296 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
4297 (get_memory_write_packet_size, get_memory_read_packet_size)
4298 (append_pending_thread_resumptions, remote_detach_1)
4299 (append_resumption, remote_resume_with_vcont)
4300 (add_current_inferior_and_thread, wait_ns, wait_as)
4301 (process_stop_reply, remote_notice_new_inferior)
4302 (process_initial_stop_replies, remote_add_thread)
4303 (btrace_sync_conf, remote_btrace_maybe_reopen)
4304 (remove_new_fork_children, kill_new_fork_children)
4305 (discard_pending_stop_replies, stop_reply_queue_length)
4306 (check_pending_events_prevent_wildcard_vcont)
4307 (discard_pending_stop_replies_in_queue, stop_reply)
4308 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
4309 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
4310 (remote_interrupt_as, remote_interrupt_ns)
4311 (remote_get_noisy_reply, remote_query_attached)
4312 (remote_add_inferior, remote_current_thread, get_current_thread)
4313 (set_thread, set_general_thread, set_continue_thread)
4314 (set_general_process, write_ptid)
4315 (remote_unpack_thread_info_response, remote_get_threadinfo)
4316 (parse_threadlist_response, remote_get_threadlist)
4317 (remote_threadlist_iterator, remote_get_threads_with_ql)
4318 (remote_get_threads_with_qxfer)
4319 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
4320 (get_offsets, remote_check_symbols, remote_supported_packet)
4321 (remote_query_supported, remote_packet_size)
4322 (remote_serial_quit_handler, remote_detach_pid)
4323 (remote_vcont_probe, remote_resume_with_hc)
4324 (send_interrupt_sequence, interrupt_query)
4325 (remote_notif_get_pending_events, fetch_register_using_p)
4326 (send_g_packet, process_g_packet, fetch_registers_using_g)
4327 (store_register_using_P, store_registers_using_G)
4328 (set_remote_traceframe, check_binary_download)
4329 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
4330 (remote_xfer_live_readonly_partial, remote_read_bytes)
4331 (remote_send_printf, remote_flash_write, readchar)
4332 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
4333 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
4334 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
4335 (extended_remote_disable_randomization, extended_remote_run)
4336 (send_environment_packet, extended_remote_environment_support)
4337 (extended_remote_set_inferior_cwd, remote_write_qxfer)
4338 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
4339 (packet_command): Now methods of ...
4340 (remote_target): ... this class.
4341 (m_remote_state) <remote_target>: New field.
4342 (struct remote_state) <stop_reply_queue,
4343 remote_async_inferior_event_token, wait_forever_enabled_p>: New
4344 fields.
4345 (remote_state::remote_state): Allocate stop_reply_queue.
4346 (remote_state): Delete global.
4347 (get_remote_state_raw): Delete.
4348 (remote_target::get_remote_state): Allocate m_remote_state on
4349 demand.
4350 (get_current_remote_target): New.
4351 (remote_ops, extended_remote_ops): Delete.
4352 (wait_forever_enabled_p, remote_async_inferior_event_token):
4353 Delete, moved to struct remote_state.
4354 (remote_target::close): Delete self. Destruction bits split to
4355 ...
4356 (remote_target::~remote_target): ... this.
4357 (show_memory_packet_size): Adjust to use
4358 get_current_remote_target.
4359 (struct protocol_feature) <func>: Add remote_target parameter.
4360 All callers adjusted.
4361 (curr_quit_handler_target): New.
4362 (remote_serial_quit_handler): Reimplement.
4363 (remote_target::open_1): Adjust to use get_current_remote_target.
4364 Heap-allocate remote_target/extended_remote_target instances.
4365 (vcont_builder::vcont_builder): Add remote_target parameter, and
4366 save it in m_remote. All callers adjusted.
4367 (vcont_builder::m_remote): New field.
4368 (vcont_builder::restart, vcont_builder::flush)
4369 (vcont_builder::push_action): Use it.
4370 (remote_target::commit_resume): Use it.
4371 (struct queue_iter_param) <remote>: New field.
4372 (remote_target::remove_new_fork_children): Fill in 'remote' field.
4373 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
4374 (check_pending_event_prevents_wildcard_vcont_callback)
4375 (remote_target::check_pending_events_prevent_wildcard_vcont)
4376 (remote_target::discard_pending_stop_replies)
4377 (remote_target::discard_pending_stop_replies_in_queue)
4378 (remote_target::remote_notif_remove_queued_reply): Fill in
4379 'remote' field.
4380 (remote_notif_get_pending_events): New.
4381 (remote_target::readchar, remote_target::remote_serial_write):
4382 Save/restore curr_quit_handler_target.
4383 (putpkt): New.
4384 (kill_new_fork_children): Fill in 'remote' field.
4385 (packet_command): Use get_current_remote_target, defer to
4386 remote_target method of same name.
4387 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
4388 parameter, and save it in m_remote. All callers adjusted.
4389 (scoped_remote_fd::release): Use m_remote.
4390 (scoped_remote_fd::m_remote): New field.
4391 (remote_file_put, remote_file_get, remote_file_delete): Use
4392 get_current_remote_target, defer to remote_target method of same
4393 name.
4394 (remote_btrace_reset): Add remote_state paremeter. Update all
4395 callers.
4396 (remote_async_inferior_event_handler). Pass down 'data'.
4397 (remote_new_objfile): Use get_current_remote_target.
4398 (remote_target::vcont_r_supported): New.
4399 (set_range_stepping): Use get_current_remote_target and
4400 remote_target::vcont_r_supported.
4401 (_initialize_remote): Don't allocate 'remote_state' and
4402 'stop_reply_queue' globals.
4403 * remote.h (struct remote_target): Forward declare.
4404 (getpkt, putpkt, remote_notif_get_pending_events): Add
4405 'remote_target' parameter.
4406
f5db4863
PA
44072018-05-22 Pedro Alves <palves@redhat.com>
4408
4409 * remote.c (vcont_builder): Now a class. Make all data members
4410 private.
4411 (vcont_builder) <vcont_builder, restart, flush, push_action>:
4412 Declare methods.
4413 (vcont_builder_restart): Rename to ...
4414 (vcont_builder::restart): ... this.
4415 (vcont_builder_flush): Rename to ...
4416 (vcont_builder::flush): ... this.
4417 (vcont_builder_push_action): Rename to ...
4418 (vcont_builder::push_action): ... this.
4419 (remote_target::commit_resume): Adjust.
4420
cc0be08f
PA
44212018-05-22 Pedro Alves <palves@redhat.com>
4422
4423 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
4424 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
4425 (get_fixed_memory_packet_size): New.
4426 (get_memory_packet_size): Use it.
4427 (set_memory_packet_size): Don't override the config size with
4428 DEFAULT_MAX_MEMORY_PACKET_SIZE.
4429 (show_memory_packet_size): Use get_fixed_memory_packet_size.
4430 Don't refer to get_memory_packet_size if not connected to a remote
4431 target. Show "(default)" if configured size is 0.
4432
9607784a
PA
44332018-05-22 Pedro Alves <palves@redhat.com>
4434
4435 * remote.c (remote_target::mourn_inferior): Move
4436 discard_pending_stop_replies call here from ...
4437 (_initialize_remote): ... here.
4438
0e9a6b2f
PA
44392018-05-22 Pedro Alves <palves@redhat.com>
4440
4441 * remote.c (compare_section_command): Remove set_general_process
4442 call.
4443
43c3a0e4
PA
44442018-05-22 Pedro Alves <palves@redhat.com>
4445
4446 * remote.c (struct packet_reg, struct remote_arch_state):
4447 Move higher up in the file.
4448 (remote_state) <m_arch_states>: Store remote_arch_state values
4449 instead of remote_arch_state pointers.
4450 (remote_state::get_remote_arch_state): Adjust.
4451
9d6eea31
PA
44522018-05-22 Pedro Alves <palves@redhat.com>
4453
4454 * remote.c: Include <unordered_map>.
4455 (remote_state): Now a class.
4456 (remote_state) <get_remote_arch_state>: Declare method.
4457 <get_remote_arch_state>: New field.
4458 (remote_arch_state) <remote_arch_state>: Declare ctor.
4459 <regs>: Now a unique_ptr.
4460 (remote_gdbarch_data_handle): Delete.
4461 (get_remote_arch_state): Delete.
4462 (remote_state::get_remote_arch_state): New.
4463 (get_remote_state): Adjust to call remote_state's
4464 get_remote_arch_state method.
4465 (init_remote_state): Delete, bits factored out to ...
4466 (remote_arch_state::remote_arch_state): ... this new method.
4467 (get_remote_packet_size, get_memory_packet_size)
4468 (process_g_packet, remote_target::fetch_registers)
4469 (remote_target::prepare_to_store, store_registers_using_G)
4470 (remote_target::store_registers, remote_target::get_trace_status):
4471 Adjust to call remote_state's method.
4472 (_initialize_remote): Remove reference to
4473 remote_gdbarch_data_handle.
4474
dd194f6b
PA
44752018-05-22 Pedro Alves <palves@redhat.com>
4476
4477 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
4478 pread>: New method declarations.
4479 (remote_target::open_1): Adjust.
4480 (readahead_cache_invalidate): Rename to ...
4481 (readahead_cache::invalidate): ... this, and adjust to be a class
4482 method.
4483 (readahead_cache_invalidate_fd): Rename to ...
4484 (readahead_cache::invalidate_fd): ... this, and adjust to be a
4485 class method.
4486 (remote_hostio_pwrite): Adjust.
4487 (remote_hostio_pread_from_cache): Rename to ...
4488 (readahead_cache::pread): ... this, and adjust to be a class
4489 method.
4490 (remote_hostio_close): Adjust.
4491
440b7aec
PA
44922018-05-22 Pedro Alves <palves@redhat.com>
4493
4494 * remote.c (remote_hostio_close_cleanup): Delete.
4495 (class scoped_remote_fd): New.
4496 (remote_file_put, remote_file_get): Use it.
4497
de44f5a7
PA
44982018-05-22 Pedro Alves <palves@redhat.com>
4499
4500 (struct vCont_action_support): Use bool and initialize all fields.
4501 (struct readahead_cache): Initialize all fields.
4502 (remote_state): Use bool and initialize all fields.
4503 (remote_state::remote_state, remote_state::~remote_state): New.
4504 (new_remote_state): Delete.
4505 (_initialize_remote): Use new to allocate remote_state.
4506
b1b60145
PA
45072018-05-22 Pedro Alves <palves@redhat.com>
4508 張俊芝 <zjz@zjz.name>
4509
4510 PR gdb/22973
4511 * c-exp.y: Include "c-support.h".
4512 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
4513 of tolower. Use c_ident_is_alpha to scan names.
4514 * c-lang.c: Include "c-support.h".
4515 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
4516 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
4517 * c-support.h: New file, with bits factored out from ...
4518 * cp-name-parser.y: ... this file.
4519 Include "c-support.h".
4520 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
4521 c-support.h and renamed.
4522 (symbol_end, yylex): Adjust.
4523
0ec848ad
PFC
45242018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4525
4526 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
4527 parameter type to CORE_ADDR.
4528 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
4529 parameter type in declaration to CORE_ADDR.
4530 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
4531 target_auxv_search to get AT_HWCAP and use the result to get the
4532 target description.
4533 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
4534 to CORE_ADDR. Remove the cast of the return value to unsigned
4535 long. Fix error predicate of target_auxv_search.
4536 (ppc_linux_nat_target::read_description): Change the type of the
4537 hwcap variable to CORE_ADDR.
4538
0fb2aaa1
PFC
45392018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4540
4541 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
4542 if the size of fpscr is larger than 32 bits.
4543
2c3305f6
PFC
45442018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4545
4546 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
4547 (ppc32_linux_vsxregmap): New global.
4548 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
4549 regcache_supply_regset, and regcache_collect_regset.
4550 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
4551 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
4552 (fetch_vsx_register, store_vsx_register): Remove.
4553 (fetch_vsx_registers): Add regno parameter. Get regset using
4554 ppc_linux_vsxregset. Use regset to supply registers.
4555 (store_vsx_registers): Add regno parameter. Get regset using
4556 ppc_linux_vsxregset. Use regset to collect registers.
4557 (fetch_register): Call fetch_vsx_registers instead of
4558 fetch_vsx_register.
4559 (store_register): Call store_vsx_registers instead of
4560 store_vsx_register.
4561 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
4562 new regno parameter.
4563 (store_ppc_registers): Call store_vsx_registers with -1 for the
4564 new regno parameter.
4565 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
4566 (ppc_collect_vsxregset): Remove.
4567
1d75a658
PFC
45682018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4569
4570 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
4571 offset fields.
4572 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
4573 for vector register offset fields.
4574 (ppc64_fbsd_reg_offsets): Likewise.
4575 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4576 to vector register offset fields.
4577 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4578 to vector register offset fields.
4579 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
4580 vector register offset fields.
4581 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
4582 initializers for vector register offset fields.
4583 (rs6000_aix64_reg_offsets): Likewise.
4584 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
4585 (ppc_supply_vrregset): Remove.
4586 (ppc_collect_vrregset): Remove.
4587 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
4588 (ppc_linux_vrregset) : New function.
4589 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
4590 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
4591 (ppc32_linux_vrregset): Remove.
4592 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
4593 and use result instead of ppc32_linux_vrregset.
4594 (ppc32_linux_reg_offsets): Remove initializers for vector register
4595 offset fields.
4596 (ppc64_linux_reg_offsets): Likewise.
4597 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
4598 * ppc-linux-nat.c: Include regset.h.
4599 (gdb_vrregset_t): Adjust comment to account for little-endian
4600 mode.
4601 (supply_vrregset, fill_vrregset): Remove.
4602 (fetch_altivec_register, store_altivec_register): Remove.
4603 (fetch_altivec_registers): Add regno parameter. Get regset using
4604 ppc_linux_vrregset. Use regset to supply registers.
4605 (store_altivec_registers): Add regno parameter. Get regset using
4606 ppc_linux_vrregset. Use regset to collect registers.
4607 (fetch_register): Call fetch_altivec_registers instead of
4608 fetch_altivec_register.
4609 (store_register): Call store_altivec_registers instead of
4610 store_altivec_register.
4611 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
4612 the new regno parameter.
4613 (store_ppc_registers): Call store_altivec_registers with -1 for
4614 the new regno parameter.
4615
d078308a
PFC
46162018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4617
4618 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
4619 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
4620 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4621 (gdb_vrregset_t): Change array type size to
4622 PPC_LINUX_SIZEOF_VRREGSET.
4623 (gdb_vsxregset_t): Change array type size to
4624 PPC_LINUX_SIZEOF_VSXREGSET.
4625 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
4626 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
4627 PPC_LINUX_SIZEOF_VSXREGSET.
4628
2e077f5e
PFC
46292018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4630
4631 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
4632 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
4633 nat/ppc-linux.c.
4634 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
4635 ppc_linux_target_wordsize with tid.
4636 (ppc_linux_nat_target::read_description): Call ppc_linux_target
4637 wordsize with tid.
4638 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
4639 (ppc64_64bit_inferior_p): Add static and inline specifiers.
4640 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
4641 tid parameter. Remove static specifier.
4642 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
4643 (ppc_linux_target_wordsize): New declaration.
4644
bd64614e
PFC
46452018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4646
4647 * arch/ppc-linux-common.c: New file.
4648 * arch/ppc-linux-common.h: New file.
4649 * arch/ppc-linux-tdesc.h: New file.
4650 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
4651 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
4652 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
4653 arch/ppc-linux-tdesc.h.
4654 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
4655 arch/ppc-linux-tdesc.h.
4656 (ppc_linux_nat_target::read_description): Remove target
4657 description matching code. Fill a ppc_linux_features struct and
4658 call ppc_linux_match_description with it. Move comment about ISA
4659 2.05 to ppc-linux-common.c.
4660 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
4661 arch/ppc-linux-tdesc.h.
4662 (ppc_linux_core_read_description): Remove target description
4663 matching code. Fill a ppc_linux_features struct and call
4664 ppc_linux_match_description with it.
4665 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4666 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
4667 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
4668 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
4669 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
4670 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
4671 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
4672 (tdesc_powerpc_e500l): Remove.
4673
241db429
JB
46742018-05-22 Joel Brobecker <brobecker@adacore.com>
4675
4676 * ada-lang.c (catch_assert_command): Pass empty string instead
4677 of NULL for excep_string argument.
4678
75d74cca
MR
46792018-05-22 Maciej W. Rozycki <macro@mips.com>
4680
4681 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
4682 the width of the requested register exceeds the width of the
4683 `ptrace' data type.
4684
122b53ea
TT
46852018-05-21 Tom Tromey <tom@tromey.com>
4686
4687 * printcmd.c (output_command): Remove.
4688 (output_command_const): Rename to output_command.
4689 * valprint.h (output_command): Rename from output_command_const.
4690 * tracepoint.c (trace_dump_actions): Call output_command.
4691
bc18fbb5
TT
46922018-05-21 Tom Tromey <tom@tromey.com>
4693
4694 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
4695 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
4696 * ada-lang.h (create_ada_exception_catchpoint): Update.
4697 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
4698 std::string.
4699 (create_excep_cond_exprs, ~ada_catchpoint)
4700 (should_stop_exception, print_one_exception)
4701 (print_mention_exception, print_recreate_exception): Update.
4702 (ada_get_next_arg): Remove.
4703 (catch_ada_exception_command_split): Use std::string. Change type
4704 of "excep_string", "cond_string".
4705 (catch_ada_exception_command): Update.
4706 (create_ada_exception_catchpoint): Change type of excep_string.
4707 (ada_exception_sal): Remove excep_string parameter.
4708 (~ada_catchpoint): Remove.
4709
790217f6
TT
47102018-05-21 Tom Tromey <tom@tromey.com>
4711
4712 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
4713 cleanup.
4714
6f46ac85
TT
47152018-05-21 Tom Tromey <tom@tromey.com>
4716
4717 * ada-lang.c (ada_exception_message_1, ada_exception_message):
4718 Return unique_xmalloc_ptr.
4719 (print_it_exception): Update.
4720
15b6611c
TT
47212018-05-21 Tom Tromey <tom@tromey.com>
4722
4723 * tracepoint.c (trace_dump_actions): Use std::string.
4724
c0c9f665
TT
47252018-05-21 Tom Tromey <tom@tromey.com>
4726
4727 * symfile.c (reread_symbols): Use std::string for original_name.
4728
22ca247e
TT
47292018-05-21 Tom Tromey <tom@tromey.com>
4730
4731 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
4732 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
4733 constructor.
4734
184cde75
SM
47352018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
4736
4737 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
4738 instance to...
4739 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
4740 * objfiles.c (get_objfile_bfd_data): Allocate
4741 objfile_per_bfd_storage with obstack_new when allocating on
4742 obstack.
4743
e39db4db
SM
47442018-05-20 Simon Marchi <simon.marchi@ericsson.com>
4745
4746 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
4747 OBSTACK_ZALLOC.
4748 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4749 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
4750 * mdebugread.c (mdebug_build_psymtabs): Likewise.
4751 (add_pending): Likewise.
4752 (parse_symbol): Likewise.
4753 (parse_partial_symbols): Likewise.
4754 (psymtab_to_symtab_1): Likewise.
4755 (new_psymtab): Likewise.
4756 (elfmdebug_build_psymtabs): Likewise.
4757 * minsyms.c (terminate_minimal_symbol_table): Likewise.
4758 * objfiles.c (get_objfile_bfd_data): Likewise.
4759 (objfile_register_static_link): Likewise.
4760 * psymtab.c (allocate_psymtab): Likewise.
4761 * stabsread.c (read_member_functions): Likewise.
4762 * xcoffread.c (xcoff_end_psymtab): Likewise.
4763
284a0e3c
SM
47642018-05-20 Simon Marchi <simon.marchi@ericsson.com>
4765
4766 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
4767 compiler supports std::is_trivially_constructible.
4768 * common/poison.h: Include obstack.h.
4769 (IsMallocable): Define to is_trivially_constructible if the
4770 compiler supports it, define to true_type otherwise.
4771 (xobnew): New.
4772 (XOBNEW): Redefine.
4773 (xobnewvec): New.
4774 (XOBNEWVEC): Redefine.
4775 * gdb_obstack.h (obstack_zalloc): New.
4776 (OBSTACK_ZALLOC): Redefine.
4777 (obstack_calloc): New.
4778 (OBSTACK_CALLOC): Redefine.
4779 (obstack_new): New.
4780 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
4781 (gdbarch_obstack): New declaration in gdbarch.h, definition in
4782 gdbarch.c.
4783 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
4784 obstack_calloc/obstack_zalloc.
4785 (gdbarch_obstack_zalloc): Remove.
4786 * target-descriptions.c (tdesc_data_init): Use obstack_new.
4787
59f66be3
PW
47882018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4789
4790 * stack.c (backtrace_command_1): Remove useless variable int i.
4791
50c65c2d
PW
47922018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4793
4794 * stack.c (print_frame_info): Fix comment.
4795
7ff8cb8c
TT
47962018-05-18 Tom Tromey <tom@tromey.com>
4797
4798 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
4799 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
4800 (~dwarf2_per_objfile): Update
4801 (dwarf2_get_dwz_file): Use new.
4802 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
4803 unique_ptr.
4804
400174b1
TT
48052018-05-18 Tom Tromey <tom@tromey.com>
4806
4807 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
4808 unique_ptr.
4809 * dwarf2read.c (struct dwp_file): Add constructor and
4810 initializers.
4811 (open_and_init_dwp_file): Return a unique_ptr.
4812 (dwarf2_per_objfile, create_dwp_hash_table)
4813 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
4814 (lookup_dwo_unit_in_dwp): Update.
4815 (open_and_init_dwp_file, get_dwp_file): Update.
4816
3063847f
TT
48172018-05-18 Tom Tromey <tom@tromey.com>
4818
4819 * dwarf2read.c (dwarf2_per_objfile): Update.
4820 (struct mapped_index): Add initializers.
4821 (dwarf2_read_index): Use new.
4822 (dw2_symtab_iter_init): Update.
4823 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
4824 unique_ptr.
4825
d3d02dee
SM
48262018-05-18 Simon Marchi <simon.marchi@ericsson.com>
4827
4828 * dwarf2read.c (mapped_index) <total_size>: Remove.
4829
1d143c36
SM
48302018-05-18 Simon Marchi <simon.marchi@ericsson.com>
4831
4832 * unittests/format_pieces-selftests.c (test_format_specifier):
4833 Add ARI comments.
4834
ce1e8424
TT
48352018-05-18 Tom Tromey <tom@tromey.com>
4836
4837 * c-typeprint.c (maybe_print_hole): New function.
4838 (c_print_type_struct_field_offset): Update.
4839 (c_type_print_base_struct_union): Call maybe_print_hole.
4840
ddfe970e
KS
48412018-05-17 Keith Seitz <keiths@redhat.com>
4842
4843 * breakpoint.c (build_bpstat_chain): New function, moved from
4844 bpstat_stop_status.
4845 (bpstat_stop_status): Add optional parameter, `stop_chain'.
4846 If no stop chain is passed, call build_bpstat_chain to build it.
4847 * breakpoint.h (build_bpstat_chain): Declare.
4848 (bpstat_stop_status): Move documentation here from breakpoint.c.
4849 * infrun.c (handle_signal_stop): Before eliding inlined frames,
4850 build the stop chain and pass it to skip_inline_frames.
4851 Pass this stop chain to bpstat_stop_status.
4852 * inline-frame.c: Include breakpoint.h.
4853 (stopped_by_user_bp_inline_frame): New function.
4854 (skip_inline_frames): Add parameter `stop_chain'.
4855 Move documention to inline-frame.h.
4856 If non-NULL, use stopped_by_user_bp_inline_frame to determine
4857 whether the frame should be elided.
4858 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
4859 Add moved documentation and update for new parameter.
4860
b17992c1
SM
48612018-05-17 Simon Marchi <simon.marchi@ericsson.com>
4862
4863 PR cli/14975
4864 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4865 unittests/format_pieces-selftests.c.
4866 * common/format.h (format_piece) <operator==>: New.
4867 (format_pieces) <operator[]>: Remove.
4868 * common/format.c (format_pieces::format_pieces): Handle \e.
4869 * unittests/format_pieces-selftests.c: New.
4870
58f0c718
TT
48712018-05-17 Tom Tromey <tom@tromey.com>
4872
4873 PR symtab/23010:
4874 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
4875 (dw2_instantiate_symtab): Add skip_partial parameter.
4876 (dw2_find_last_source_symtab, dw2_map_expand_apply)
4877 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
4878 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
4879 (dw2_expand_symtabs_matching_one)
4880 (dw2_find_pc_sect_compunit_symtab)
4881 (dw2_debug_names_lookup_symbol)
4882 (dw2_debug_names_expand_symtabs_for_function): Update.
4883 (init_cutu_and_read_dies): Add skip_partial parameter.
4884 (process_psymtab_comp_unit, build_type_psymtabs_1)
4885 (process_skeletonless_type_unit, load_partial_comp_unit)
4886 (psymtab_to_symtab_1): Update.
4887 (load_full_comp_unit): Add skip_partial parameter.
4888 (process_imported_unit_die, dwarf2_read_addr_index)
4889 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
4890 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
4891 (read_signatured_type): Update.
4892
3e618834
SM
48932018-05-17 Simon Marchi <simon.marchi@ericsson.com>
4894
4895 * value.c (release_value): Remove unused variable.
4896 (record_latest_value): Likewise.
4897 (access_value_history): Likewise.
4898 (preserve_values): Likewise.
4899
fe10fe31
TT
49002018-05-17 Tom Tromey <tom@tromey.com>
4901
4902 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
4903 Initialize.
4904
1d761124
MR
49052018-05-16 Maciej W. Rozycki <macro@mips.com>
4906
4907 PR gdb/22286
4908 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
4909 Also handle registers whose width is not a multiple of
4910 PTRACE_TYPE_RET.
4911 (linux_nat_trad_target::store_register): Likewise.
4912
06333fea
TT
49132018-05-16 Tom Tromey <tom@tromey.com>
4914
4915 * gdbcore.h (core_bfd): Redefine.
4916 * corelow.c (core_target::close): Update.
4917 (core_target_open): Update.
4918 * progspace.h (struct program_space) <cbfd>: Now a
4919 gdb_bfd_ref_ptr.
4920
921222e2
TT
49212018-05-16 Tom Tromey <tom@tromey.com>
4922
4923 PR cli/19551:
4924 * symfile-add-flags.h (enum symfile_add_flags)
4925 <SYMFILE_NOT_FILENAME>: New constant.
4926 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
4927 objfile name from BFD.
4928 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
4929 * minidebug.c (find_separate_debug_file_in_section): Put
4930 ".gnu_debugdata" into BFD's file name.
4931
3acb7083
SM
49322018-05-16 Simon Marchi <simon.marchi@ericsson.com>
4933
4934 * regcache.c (regcache_read_ftype, regcache_write_ftype):
4935 Remove.
4936
561a72d4
TC
49372018-05-15 Tamar Christina <tamar.christina@arm.com>
4938
4939 PR binutils/21446
4940 * aarch64-tdep.c (aarch64_analyze_prologue,
4941 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
4942 Indicate not interested in errors.
4943
4e6ff0e1
MR
49442018-05-15 Maciej W. Rozycki <macro@mips.com>
4945
4946 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
4947 Supply the MIPS_ZERO_REGNUM register.
4948
ea33cd92
MR
49492018-05-15 Maciej W. Rozycki <macro@mips.com>
4950
4951 * mips-tdep.c (mask_address_var): Make variable static.
4952
2d79090e
TT
49532018-05-14 Tom Tromey <tom@tromey.com>
4954
4955 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
4956
cf4912ae
AB
49572018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
4958
4959 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
4960 FXSAVE_ADDR for the mxcsr register.
4961
67e6f569
MF
49622018-05-11 Max Filippov <jcmvbkbc@gmail.com>
4963
4964 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
4965
15244507
PA
49662018-05-11 Pedro Alves <palves@redhat.com>
4967
4968 * corelow.c (core_target) <core_target>: No longer inline.
4969 Initialize m_core_gdbarch, m_core_vec and build the section table
4970 here.
4971 <~core_target>: New.
4972 <core_gdbarch, get_core_register_section>: New methods.
4973 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
4974 factored out from ...
4975 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
4976 (core_ops): Delete.
4977 (sniff_core_bfd): Add gdbarch parameter.
4978 (core_close): Delete, merged into ...
4979 (core_target::close): ... here. Delete self.
4980 (core_close_cleanup): Delete.
4981 (core_target_open): Allocate a core_target on the heap. Use a
4982 unique_ptr instead of a cleanup. Bits moved into the core_target
4983 ctor. Adjust to use core_target methods instead of globals.
4984 (get_core_register_section): Rename to ...
4985 (core_target::get_core_register_section): ... this and adjust.
4986 (struct get_core_registers_cb_data): New.
4987 (get_core_registers_cb): Use it. Use bool.
4988 (core_target::fetch_registers, core_target::files_info)
4989 (core_target::xfer_partial, core_target::read_description)
4990 (core_target::pid_to, core_target::thread_name): Adjust to
4991 reference class fields instead of globals.
4992 * target.h (struct target_ops_deleter, target_ops_up): New.
4993
451953fa
PA
49942018-05-11 Pedro Alves <palves@redhat.com>
4995
4996 * corefile.c (core_file_command): Move to corelow.c.
4997 * corelow.c (the_core_target): Delete.
4998 (core_file_command): Moved from corefile.c. Check exec_bfd
4999 instead of the_core_target. Use target_detach instead of calling
5000 into the_core_target directly.
5001 (maybe_say_no_core_file_now): New.
5002 (core_target::detach): Use it.
5003 (_initialize_corelow): Remove references to the_core_target.
5004 * gdbcore.h (the_core_target): Delete.
5005
e540a5a2 50062018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 5007 Pedro Alves <palves@redhat.com>
e540a5a2
TT
5008
5009 * corefile.c (core_bfd): Remove.
5010 * gdbcore.h (core_bfd): Now a macro.
5011 * progspace.h (struct program_space) <cbfd>: New field.
5012
633cf254
TT
50132018-05-11 Tom Tromey <tom@tromey.com>
5014
5015 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
5016 gdb::def_vector.
5017
1a34f210
TT
50182018-05-10 Tom Tromey <tom@tromey.com>
5019
5020 * configure: Rebuild.
5021 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
5022
190852c8
JB
50232018-05-10 Joel Brobecker <brobecker@adacore.com>
5024
5025 PR server/23158:
5026 * regformats/regdat.sh: Adjust script, following the addition
5027 of the new expedite_regs parameter to init_target_desc.
5028
8727de56
OJ
50292018-05-10 Omair Javaid <omair.javaid@linaro.org>
5030
5031 PR gdb/23127
5032 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
5033 set_gdbarch_significant_addr_bit.
5034 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
5035 set_gdbarch_significant_addr_bit.
5036 * utils.c (address_significant): Update to sign extend addr.
5037
37d9e062
MF
50382018-05-09 Max Filippov <jcmvbkbc@gmail.com>
5039
5040 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
5041 (xtensa_linux_init_abi): Limit tdep->num_regs by
5042 tdep->num_nopriv_regs.
5043 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
5044 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
5045 not initialized.
5046
7402fbca
SM
50472018-05-08 Simon Marchi <simon.marchi@ericsson.com>
5048
5049 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
5050
8ee22052
AB
50512018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5052
5053 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
5054 (I387_MXCSR_INIT_VAL): New constant.
5055 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
5056 buffer if it was supplied by the inferior.
5057 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
5058 (i387_xsave_get_clear_bv): New function.
5059 (i387_supply_xsave): Only read x87 control registers from the
5060 xsave buffer if the feature is enabled, and the state will have
5061 been written, otherwise, provide a suitable default.
5062 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
5063 including x87 control registers. Update control registers if they
5064 have changed from the default value, and mark features as enabled
5065 as required.
5066 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
5067
968ae51b
UW
50682018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5069
5070 * spu-tdep.c (info_spu_event_command): Fix output formatting.
5071
aff689d3
TT
50722018-05-07 Tom Tromey <tom@tromey.com>
5073
5074 * configure: Rebuild.
5075 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
5076
ce887586
TT
50772018-05-07 Tom Tromey <tom@tromey.com>
5078
5079 PR tdep/20362:
5080 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
5081 bit. Use correct value for VDIV.
5082
85e26832
TT
50832018-05-04 Tom Tromey <tom@tromey.com>
5084
5085 * configure: Rebuild.
5086 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
5087
449b1ac7
TT
50882018-05-04 Tom Tromey <tom@tromey.com>
5089
5090 * linux-record.c (record_linux_system_call) <case
5091 RECORD_SYS_RECVFROM>: Add "break".
5092
15c9ffd6
TT
50932018-05-04 Tom Tromey <tom@tromey.com>
5094
5095 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
5096 Add missing "break".
5097 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
5098 Add missing "break".
5099
e3829d13
TT
51002018-05-04 Tom Tromey <tom@tromey.com>
5101
5102 * rs6000-tdep.c (ppc_process_record_op4)
5103 (ppc_process_record_op63): Add fall-through comment.
5104
da0e1563
TT
51052018-05-04 Tom Tromey <tom@tromey.com>
5106
5107 * i386-tdep.c (i386_process_record): Add fall-through comment.
5108
0019cd49
TT
51092018-05-04 Tom Tromey <tom@tromey.com>
5110
5111 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
5112 comment.
5113
565e0eda
TT
51142018-05-04 Tom Tromey <tom@tromey.com>
5115
5116 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
5117 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
5118 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
5119 comment.
5120 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
5121 comment.
5122 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
5123 comment.
5124
621846f4
TT
51252018-05-04 Tom Tromey <tom@tromey.com>
5126
5127 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
5128
86a73007
TT
51292018-05-04 Tom Tromey <tom@tromey.com>
5130
5131 * s390-tdep.c (s390_process_record): Fix fall-through comments.
5132 * xcoffread.c (scan_xcoff_symtab): Move comment later.
5133 * symfile.c (section_is_mapped): Fix fall-through comment.
5134 * stabsread.c (define_symbol, read_member_functions): Fix
5135 fall-through comment.
5136 * s390-linux-tdep.c (s390_process_record): Fix fall-through
5137 comment.
5138 * remote.c (remote_wait_as): Fix fall-through comment.
5139 * p-exp.y (yylex): Fix fall-through comment.
5140 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
5141 comment.
5142 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
5143 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
5144 * jv-exp.y (yylex): Fix fall-through comment.
5145 * go-exp.y (lex_one_token): Fix fall-through comment.
5146 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
5147 fall-through comment.
5148 * f-exp.y (yylex): Fix fall-through comment.
5149 * dwarf2read.c (process_die): Fix fall-through comments.
5150 * dbxread.c (process_one_symbol): Fix fall-through comment.
5151 * d-exp.y (lex_one_token): Fix fall-through comment.
5152 * cp-name-parser.y (yylex): Fix fall-through comment.
5153 * coffread.c (coff_symtab_read): Fix fall-through comment.
5154 * c-exp.y (lex_one_token): Fix fall-through comment.
5155 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
5156 comment.
5157 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
5158 comment.
5159
56bcdbea
TT
51602018-05-04 Tom Tromey <tom@tromey.com>
5161
5162 PR python/22730:
5163 * NEWS: Mention gdb.execute change.
5164 * gdbcmd.h (execute_control_command): Don't declare.
5165 * python/python.c (execute_gdb_command): Use read_command_lines_1,
5166 execute_control_commands, execute_control_commands_to_string.
5167 * cli/cli-script.h (execute_control_commands)
5168 (execute_control_commands_to_string): Declare.
5169 (execute_control_command): Add from_tty parameter.
5170 * cli/cli-script.c (execute_control_commands)
5171 (execute_control_commands_to_string): New functions.
5172 (execute_user_command): Use execute_control_commands.
5173 (execute_control_command_1): Add "from_tty" parameter. Update.
5174 (execute_control_command): Likewise.
5175
a913fffb
TT
51762018-05-04 Tom Tromey <tom@tromey.com>
5177
5178 PR python/22731:
5179 * NEWS: Mention that breakpoint commands are writable.
5180 * python/py-breakpoint.c (bppy_set_commands): New function.
5181 (breakpoint_object_getset) <"commands">: Use it.
5182
60b3cef2
TT
51832018-05-04 Tom Tromey <tom@tromey.com>
5184
5185 * tracepoint.c (actions_command): Update.
5186 * mi/mi-cmd-break.c (mi_command_line_array)
5187 (mi_command_line_array_cnt, mi_command_line_array_ptr)
5188 (mi_read_next_line): Remove.
5189 (mi_cmd_break_commands): Update.
5190 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
5191 function_view.
5192 * cli/cli-script.c (get_command_line): Update.
5193 (process_next_line): Use function_view. Constify.
5194 (recurse_read_control_structure, read_command_lines)
5195 (read_command_lines_1): Change argument types to function_view.
5196 (do_define_command, document_command): Update.
5197 * breakpoint.h (check_tracepoint_command): Don't declare.
5198 * breakpoint.c (check_tracepoint_command): Remove.
5199 (commands_command_1, create_tracepoint_from_upload): Update.
5200
7a2c85f2
TT
52012018-05-04 Tom Tromey <tom@tromey.com>
5202
5203 PR gdb/11750:
5204 * cli/cli-script.h (enum command_control_type) <define_control>:
5205 New constant.
5206 * cli/cli-script.c (multi_line_command_p): Handle define_control.
5207 (build_command_line, execute_control_command_1)
5208 (process_next_line): Likewise.
5209 (do_define_command): New function, extracted from define_command.
5210 (define_command): Use it.
5211
295dc222
TT
52122018-05-04 Tom Tromey <tom@tromey.com>
5213
5214 * tracepoint.c (actions_command): Update.
5215 * cli/cli-script.h (read_command_lines): Update.
5216 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
5217 (MAX_TMPBUF): Remove define.
5218 (define_command): Use string_printf.
5219 (document_command): Likewise.
5220 * breakpoint.c (commands_command_1): Update.
5221
1263a9d5
TT
52222018-05-04 Tom Tromey <tom@tromey.com>
5223
5224 * top.c (execute_command): Update.
5225 * cli/cli-script.h (print_command_lines): Now varargs.
5226 * cli/cli-script.c (print_command_lines): Now varargs.
5227 (execute_control_command_1) <case while_control, case if_control>:
5228 Update.
5229
12973681
TT
52302018-05-04 Tom Tromey <tom@tromey.com>
5231
5232 * tracepoint.c (all_tracepoint_actions): Rename from
5233 all_tracepoint_actions_and_cleanup. Change return type.
5234 (actions_command, encode_actions_1, encode_actions)
5235 (trace_dump_actions, tdump_command): Update.
5236 * remote.c (remote_download_command_source): Update.
5237 * python/python.c (gdbpy_eval_from_control_command)
5238 (python_command, python_interactive_command): Update.
5239 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
5240 * guile/guile.c (guile_command)
5241 (gdbscm_eval_from_control_command, guile_command): Update.
5242 * compile/compile.c (compile_code_command)
5243 (compile_print_command, compile_to_object): Update.
5244 * cli/cli-script.h (struct command_lines_deleter): New.
5245 (counted_command_line): New typedef.
5246 (struct command_line): Add constructor, destructor.
5247 <body_list>: Remove.
5248 <body_list_0, body_list_1>: New members.
5249 (command_line_up): Remove typedef.
5250 (read_command_lines, read_command_lines_1, get_command_line):
5251 Update.
5252 (copy_command_lines): Don't declare.
5253 * cli/cli-script.c (build_command_line): Use "new".
5254 (get_command_line): Return counted_command_line.
5255 (print_command_lines, execute_user_command)
5256 (execute_control_command_1, while_command, if_command): Update.
5257 (realloc_body_list): Remove.
5258 (process_next_line, recurse_read_control_structure): Update.
5259 (read_command_lines, read_command_lines_1): Return counted_command_line.
5260 (free_command_lines): Use "delete".
5261 (copy_command_lines): Remove.
5262 (define_command, document_command, show_user_1): Update.
5263 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
5264 a counted_command_line.
5265 * breakpoint.h (counted_command_line): Remove typedef.
5266 (breakpoint_set_commands): Update.
5267 * breakpoint.c (check_no_tracepoint_commands)
5268 (validate_commands_for_breakpoint): Update.
5269 (breakpoint_set_commands): Change commands to be a
5270 counted_command_line.
5271 (commands_command_1, update_dprintf_command_list)
5272 (create_tracepoint_from_upload): Update.
5273
e2fc72e2
TT
52742018-05-04 Tom Tromey <tom@tromey.com>
5275
5276 * cli/cli-decode.h (cmd_list_element): New constructor.
5277 (~cmd_list_element): New destructor.
5278 (struct cmd_list_element): Add initializers.
5279 * cli/cli-decode.c (do_add_cmd): Use "new".
5280 (delete_cmd): Use "delete".
5281
a3b60e45
JK
52822018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5283 Pedro Alves <palves@redhat.com>
5284
5285 PR breakpoints/19806 and support for PR external/20207.
5286 * NEWS: Mention Aarch64 watchpoint improvements.
5287 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
5288 watchpoints and PR external/20207 watchpoints.
5289 * nat/aarch64-linux-hw-point.c
5290 (kernel_supports_any_contiguous_range): New.
5291 (aarch64_watchpoint_offset): New.
5292 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
5293 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
5294 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
5295 (aarch64_align_watchpoint): New parameters aligned_offset_p and
5296 next_addr_orig_p. Support PR external/20207 watchpoints.
5297 (aarch64_downgrade_regs): New.
5298 (aarch64_dr_state_insert_one_point): New parameters offset and
5299 addr_orig.
5300 (aarch64_dr_state_remove_one_point): Likewise.
5301 (aarch64_handle_breakpoint): Update caller.
5302 (aarch64_handle_aligned_watchpoint): Likewise.
5303 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
5304 aligned_offset.
5305 (aarch64_linux_set_debug_regs): Remove const from state. Call
5306 aarch64_downgrade_regs.
5307 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
5308 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
5309 (DR_CONTROL_MASK): ... this.
5310 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
5311 (unsigned int aarch64_watchpoint_offset): New prototype.
5312 (aarch64_linux_set_debug_regs): Remove const from state.
5313 * utils.c (align_up, align_down): Move to ...
5314 * common/common-utils.c (align_up, align_down): ... here.
5315 * utils.h (align_up, align_down): Move to ...
5316 * common/common-utils.h (align_up, align_down): ... here.
5317
05bc7456
JB
53182018-05-04 Joel Brobecker <brobecker@adacore.com>
5319
5320 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
5321 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
5322 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
5323 Re-implement to match the ABI as summarized in GCC's
5324 gcc/config/sparc/sparc.c. All callers updated.
5325 (sparc32_store_arguments): Remove assertion.
5326
2f433492
TT
53272018-05-04 Tom Tromey <tom@tromey.com>
5328
5329 * printcmd.c: Don't include tui.h.
5330 (decode_format): Use skip_spaces.
5331
9be2ae8f
TT
53322018-05-04 Tom Tromey <tom@tromey.com>
5333
5334 PR gdb/22619:
5335 * printcmd.c (last_count): New global.
5336 (x_command): Use saved count when repeating.
5337
f0b3976b
TT
53382018-05-04 Tom Tromey <tom@tromey.com>
5339
5340 * nto-procfs.c (do_closedir_cleanup): Remove.
5341 (procfs_pidlist): Use gdb_dir_up.
5342 * procfs.c (do_closedir_cleanup): Remove.
5343 (proc_update_threads): Use gdb_dir_up.
5344 * common/filestuff.h (struct gdb_dir_deleter): New.
5345 (gdb_dir_up): New typedef.
5346
862d101a
TT
53472018-05-04 Tom Tromey <tom@tromey.com>
5348
5349 * ada-lang.c (print_mention_exception): Use std::string.
5350
cb7de75e
TT
53512018-05-04 Tom Tromey <tom@tromey.com>
5352
5353 * ada-lang.c (create_excep_cond_exprs): Update.
5354 (ada_exception_catchpoint_cond_string): Use std::string.
5355
49d83361
TT
53562018-05-04 Tom Tromey <tom@tromey.com>
5357
5358 * ada-lang.c (xget_renaming_scope): Return std::string.
5359 (old_renaming_is_invisible): Update.
5360
ade72a34
TT
53612018-05-04 Tom Tromey <tom@tromey.com>
5362
5363 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
5364 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
5365
2be4d7f0
UW
53662018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5367
5368 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
5369
69b6ecb0
TT
53702018-05-04 Tom Tromey <tom@tromey.com>
5371
5372 * remote.c (remote_query_supported_append): Change type.
5373 (remote_check_symbols): Update.
5374
bf27f0e2
PP
53752018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
5376
5377 PR gdb/11420
5378 * configure.ac: Prepend libpython.
5379 * python/python-config.py: Likewise.
5380 * configure: Regenerate.
5381
4ea17de8
SM
53822018-05-03 Simon Marchi <simon.marchi@ericsson.com>
5383
5384 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
5385
bd732259
PA
53862018-05-03 Pedro Alves <palves@redhat.com>
5387
5388 * s390-linux-nat.c
5389 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
5390 override. Write 'true' instead of '1'.
5391 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
5392 declaration.
5393
d9f719f1
PA
53942018-05-02 Pedro Alves <palves@redhat.com>
5395
5396 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
5397 add_inf_child_target.
5398 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
5399 add_inf_child_target.
5400 * aix-thread.c (aix_thread_target_info): New.
5401 (aix_thread_target) <shortname, longname, doc>: Delete.
5402 <info>: New.
5403 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
5404 add_inf_child_target.
5405 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
5406 add_inf_child_target.
5407 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
5408 add_inf_child_target.
5409 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
5410 add_inf_child_target.
5411 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
5412 add_inf_child_target.
5413 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
5414 add_inf_child_target.
5415 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
5416 add_inf_child_target.
5417 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
5418 add_inf_child_target.
5419 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
5420 add_inf_child_target.
5421 * bfd-target.c (target_bfd_target_info): New.
5422 (target_bfd) <shortname, longname, doc>: Delete.
5423 <info>: New.
5424 * bsd-kvm.c (bsd_kvm_target_info): New.
5425 (bsd_kvm_target) <shortname, longname, doc>: Delete.
5426 <info>: New.
5427 (bsd_kvm_target::open): Rename to ...
5428 (bsd_kvm_target_open): ... this. Adjust.
5429 * bsd-uthread.c (bsd_uthread_target_info): New.
5430 (bsd_uthread_target) <shortname, longname, doc>: Delete.
5431 <info>: New.
5432 * corefile.c (core_file_command): Adjust.
5433 * corelow.c (core_target_info): New.
5434 (core_target) <shortname, longname, doc>: Delete.
5435 <info>: New.
5436 (core_target::open): Rename to ...
5437 (core_target_open): ... this. Adjust.
5438 * ctf.c (ctf_target_info): New.
5439 (ctf_target) <shortname, longname, doc>: Delete.
5440 <info>: New.
5441 (ctf_target::open): Rename to ...
5442 (ctf_target_open): ... this.
5443 (_initialize_ctf): Adjust.
5444 * exec.c (exec_target_info): New.
5445 (exec_target) <shortname, longname, doc>: Delete.
5446 <info>: New.
5447 (exec_target::open): Rename to ...
5448 (exec_target_open): ... this.
5449 * gdbcore.h (core_target_open): Declare.
5450 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
5451 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
5452 add_inf_child_target.
5453 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
5454 add_inf_child_target.
5455 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
5456 add_inf_child_target.
5457 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
5458 add_inf_child_target.
5459 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
5460 add_inf_child_target.
5461 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
5462 add_inf_child_target.
5463 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
5464 add_inf_child_target.
5465 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
5466 add_inf_child_target.
5467 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
5468 add_inf_child_target.
5469 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
5470 add_inf_child_target.
5471 * inf-child.c (inf_child_target_info): New.
5472 (inf_child_target::info): New.
5473 (inf_child_open_target): Remove 'target' parameter. Use
5474 get_native_target instead.
5475 (inf_child_target::open): Delete.
5476 (add_inf_child_target): New.
5477 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
5478 Delete.
5479 <info>: New.
5480 (add_inf_child_target): Declare.
5481 (inf_child_open_target): Declare.
5482 * linux-thread-db.c (thread_db_target_info): New.
5483 (thread_db_target) <shortname, longname, doc>: Delete.
5484 <info>: New.
5485 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
5486 add_inf_child_target.
5487 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
5488 add_inf_child_target.
5489 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
5490 add_inf_child_target.
5491 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
5492 add_inf_child_target.
5493 * make-target-delegates (print_class): Adjust.
5494 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
5495 add_inf_child_target.
5496 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
5497 add_inf_child_target.
5498 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
5499 add_inf_child_target.
5500 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
5501 add_inf_child_target.
5502 * nto-procfs.c (nto_native_target_info): New.
5503 (nto_procfs_target_native) <shortname, longname, doc>:
5504 Delete.
5505 <info>: New.
5506 (nto_procfs_target_info): New.
5507 (nto_procfs_target_procfs) <shortname, longname, doc>:
5508 Delete.
5509 <info>: New.
5510 (init_procfs_targets): Adjust.
5511 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
5512 add_inf_child_target.
5513 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
5514 add_inf_child_target.
5515 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
5516 add_inf_child_target.
5517 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
5518 add_inf_child_target.
5519 * ravenscar-thread.c (ravenscar_target_info): New.
5520 (ravenscar_thread_target) <shortname, longname, doc>:
5521 Delete.
5522 <info>: New.
5523 * record-btrace.c (record_btrace_target_info):
5524 (record_btrace_target) <shortname, longname, doc>: Delete.
5525 <info>: New.
5526 (record_btrace_target::open): Rename to ...
5527 (record_btrace_target_open): ... this. Adjust.
5528 * record-full.c (record_longname, record_doc): New.
5529 (record_full_base_target) <shortname, longname, doc>: Delete.
5530 <info>: New.
5531 (record_full_target_info): New.
5532 (record_full_target): <shortname>: Delete.
5533 <info>: New.
5534 (record_full_core_open_1, record_full_open_1): Update comments.
5535 (record_full_base_target::open): Rename to ...
5536 (record_full_open): ... this.
5537 (cmd_record_full_restore): Update.
5538 (_initialize_record_full): Update.
5539 * remote-sim.c (remote_sim_target_info): New.
5540 (gdbsim_target) <shortname, longname, doc>: Delete.
5541 <info>: New.
5542 (gdbsim_target::open): Rename to ...
5543 (gdbsim_target_open): ... this.
5544 (_initialize_remote_sim): Adjust.
5545 * remote.c (remote_doc): New.
5546 (remote_target_info): New.
5547 (remote_target) <shortname, longname, doc>: Delete.
5548 <info>: New.
5549 (extended_remote_target_info): New.
5550 (extended_remote_target) <shortname, longname, doc>: Delete.
5551 <info>: New.
5552 (remote_target::open_1): Make static. Adjust.
5553 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
5554 * s390-linux-nat.c (_initialize_s390_nat): Use
5555 add_inf_child_target.
5556 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
5557 add_inf_child_target.
5558 * sol-thread.c (thread_db_target_info): New.
5559 (sol_thread_target) <shortname, longname, doc>: Delete.
5560 <info>: New.
5561 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
5562 add_inf_child_target.
5563 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
5564 add_inf_child_target.
5565 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
5566 add_inf_child_target.
5567 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
5568 add_inf_child_target.
5569 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
5570 add_inf_child_target.
5571 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
5572 add_inf_child_target.
5573 * spu-linux-nat.c (_initialize_spu_nat): Use
5574 add_inf_child_target.
5575 * spu-multiarch.c (spu_multiarch_target_info): New.
5576 (spu_multiarch_target) <shortname, longname, doc>: Delete.
5577 <info>: New.
5578 * target-delegates.c: Regenerate.
5579 * target.c: Include <unordered_map>.
5580 (target_ops_p): Delete.
5581 (DEF_VEC_P(target_ops_p)): Delete.
5582 (target_factories): New.
5583 (test_target_info): New.
5584 (test_target_ops::info): New.
5585 (open_target): Adjust to use target_factories.
5586 (add_target_with_completer): Rename to ...
5587 (add_target): ... this. Change prototype. Register target_info
5588 and open callback in target_factories. Register target_info in
5589 command context instead of target_ops.
5590 (add_target): Delete old implementation.
5591 (add_deprecated_target_alias): Change prototype. Adjust.
5592 (the_native_target): New.
5593 (set_native_target, get_native_target): New.
5594 (find_default_run_target): Use the_native_target.
5595 (find_attach_target, find_run_target): Simplify.
5596 (target_ops::open): Delete.
5597 (dummy_target_info): New.
5598 (dummy_target::shortname, dummy_target::longname)
5599 (dummy_target::doc): Delete.
5600 (dummy_target::info): New.
5601 (debug_target::shortname, debug_target::longname)
5602 (debug_target::doc): Delete.
5603 (debug_target::info): New.
5604 * target.h (struct target_info): New.
5605 (target_ops::~target_ops): Add comment.
5606 (target_ops::info): New.
5607 (target_ops::shortname, target_ops::longname, target_ops::doc): No
5608 longer virtual. Implement in terms of target_info.
5609 (set_native_target, get_native_target): Declare.
5610 (target_open_ftype): New.
5611 (add_target, add_target_with_completer)
5612 (add_deprecated_target_alias): Change prototype.
5613 (test_target) <shortname, longname, doc>: Delete.
5614 <info>: New.
5615 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
5616 add_inf_child_target.
5617 * tracefile-tfile.c (tfile_target_info): New.
5618 (tfile_target) <shortname, longname, doc>: Delete.
5619 <info>: New.
5620 (tfile_target::open): Rename to ...
5621 (tfile_target_open): ... this.
5622 (_initialize_tracefile_tfile): Adjust.
5623 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
5624 add_inf_child_target.
5625 * windows-nat.c (_initialize_windows_nat): Use
5626 add_inf_child_target.
5627 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
5628 add_inf_child_target.
5629
135340af
PA
56302018-05-02 Pedro Alves <palves@redhat.com>
5631
5632 * linux-nat.h (linux_nat_target) <low_new_thread,
5633 low_delete_thread, low_new_fork, low_forget_process,
5634 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
5635 New virtual methods.
5636 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
5637 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
5638 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
5639 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
5640 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
5641 Delete.
5642 * linux-fork.c (delete_fork): Adjust to call low method.
5643 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
5644 (linux_nat_new_fork, linux_nat_forget_process_hook)
5645 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
5646 (linux_nat_status_is_event):
5647 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
5648 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
5649 to call low method.
5650 (sigtrap_is_event): Rename to ...
5651 (linux_nat_target::low_status_is_event): ... this.
5652 (linux_nat_set_status_is_event): Delete.
5653 (save_stop_reason, linux_nat_wait_1)
5654 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
5655 low methods.
5656 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
5657 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5658 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
5659 (linux_nat_set_prepare_to_resume): Delete.
5660 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
5661 low virtual methods.
5662 * amd64-linux-nat.c: Likewise.
5663 * arm-linux-nat.c: Likewise.
5664 * i386-linux-nat.c: Likewise.
5665 * ia64-linux-nat.c: Likewise.
5666 * mips-linux-nat.c: Likewise.
5667 * ppc-linux-nat.c: Likewise.
5668 * s390-linux-nat.c: Likewise.
5669 * sparc64-linux-nat.c: Likewise.
5670 * x86-linux-nat.c: Likewise.
5671 * x86-linux-nat.h: Include "nat/x86-linux.h".
5672 (x86_linux_nat_target) <low_new_fork, low_forget_process,
5673 low_prepare_to_resume, low_new_thread, low_delete_thread>:
5674 Override methods.
5675
57810aa7
PA
56762018-05-02 Pedro Alves <palves@redhat.com>
5677
5678 * target.h (target_ops)
5679 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
5680 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
5681 stopped_by_watchpoint, have_continuable_watchpoint,
5682 stopped_data_address, watchpoint_addr_within_range,
5683 can_accel_watchpoint_condition, can_run, thread_alive,
5684 has_all_memory, has_memory, has_stack, has_registers,
5685 has_execution, can_async_p, is_async_p, supports_non_stop,
5686 always_non_stop_p, can_execute_reverse, supports_multi_process,
5687 supports_enable_disable_tracepoint,
5688 supports_disable_randomization, supports_string_tracing,
5689 supports_evaluation_of_breakpoint_conditions,
5690 can_run_breakpoint_commands, filesystem_is_local,
5691 can_download_tracepoint, get_trace_state_variable_value,
5692 set_trace_notes, get_tib_address, use_agent, can_use_agent,
5693 record_is_replaying, record_will_replay,
5694 augmented_libraries_svr4_read>: Adjust to return bool.
5695 * aarch64-linux-nat.c: All implementations adjusted.
5696 * aix-thread.c: All implementations adjusted.
5697 * arm-linux-nat.c: All implementations adjusted.
5698 * breakpoint.c: All implementations adjusted.
5699 * bsd-kvm.c: All implementations adjusted.
5700 * bsd-uthread.c: All implementations adjusted.
5701 * corelow.c: All implementations adjusted.
5702 * ctf.c: All implementations adjusted.
5703 * darwin-nat.c: All implementations adjusted.
5704 * darwin-nat.h: All implementations adjusted.
5705 * exec.c: All implementations adjusted.
5706 * fbsd-nat.c: All implementations adjusted.
5707 * fbsd-nat.h: All implementations adjusted.
5708 * gnu-nat.c: All implementations adjusted.
5709 * gnu-nat.h: All implementations adjusted.
5710 * go32-nat.c: All implementations adjusted.
5711 * ia64-linux-nat.c: All implementations adjusted.
5712 * inf-child.c: All implementations adjusted.
5713 * inf-child.h: All implementations adjusted.
5714 * inf-ptrace.c: All implementations adjusted.
5715 * inf-ptrace.h: All implementations adjusted.
5716 * linux-nat.c: All implementations adjusted.
5717 * linux-nat.h: All implementations adjusted.
5718 * mips-linux-nat.c: All implementations adjusted.
5719 * nto-procfs.c: All implementations adjusted.
5720 * ppc-linux-nat.c: All implementations adjusted.
5721 * procfs.c: All implementations adjusted.
5722 * ravenscar-thread.c: All implementations adjusted.
5723 * record-btrace.c: All implementations adjusted.
5724 * record-full.c: All implementations adjusted.
5725 * remote-sim.c: All implementations adjusted.
5726 * remote.c: All implementations adjusted.
5727 * s390-linux-nat.c: All implementations adjusted.
5728 * sol-thread.c: All implementations adjusted.
5729 * spu-multiarch.c: All implementations adjusted.
5730 * target-delegates.c: All implementations adjusted.
5731 * target.c: All implementations adjusted.
5732 * target.h: All implementations adjusted.
5733 * tracefile-tfile.c: All implementations adjusted.
5734 * tracefile.c: All implementations adjusted.
5735 * tracefile.h: All implementations adjusted.
5736 * windows-nat.c: All implementations adjusted.
5737 * x86-linux-nat.h: All implementations adjusted.
5738 * x86-nat.h: All implementations adjusted.
5739
ad6a4e2d
PA
57402018-05-02 Pedro Alves <palves@redhat.com>
5741
5742 * make-target-delegates (scan_target_h): Don't trim lines here.
5743 Replace sequences of tabs and/or whitespace with a single
5744 whitespace.
5745 (top level, parsing methods): Trim each line before processing it
5746 here.
5747
f6ac5f3d
PA
57482018-05-02 Pedro Alves <palves@redhat.com>
5749 John Baldwin <jhb@freebsd.org>
5750
5751 * target.h (enum strata) <debug_stratum>: New.
5752 (struct target_ops) <all delegation methods>: Replace by C++
5753 virtual methods, and drop "to_" prefix. All references updated
5754 throughout.
5755 <to_shortname, to_longname, to_doc, to_data,
5756 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
5757 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
5758 virtual methods. All references updated throughout.
5759 <can_attach, supports_terminal_ours, can_create_inferior,
5760 get_thread_control_capabilities, attach_no_wait>: New
5761 virtual methods.
5762 <insert_breakpoint, remove_breakpoint>: Now
5763 TARGET_DEFAULT_NORETURN methods.
5764 <info_proc>: Now returns bool.
5765 <to_magic>: Delete.
5766 (OPS_MAGIC): Delete.
5767 (current_target): Delete. All references replaced by references
5768 to ...
5769 (target_stack): ... this. New.
5770 (target_shortname, target_longname): Adjust.
5771 (target_can_run): Now a function declaration.
5772 (default_child_has_all_memory, default_child_has_memory)
5773 (default_child_has_stack, default_child_has_registers)
5774 (default_child_has_execution): Remove target_ops parameter.
5775 (complete_target_initialization): Delete.
5776 (memory_breakpoint_target): New template class.
5777 (test_target_ops): Refactor as a C++ class with virtual methods.
5778 * make-target-delegates (NAME_PART): Tighten.
5779 (POINTER_PART, CP_SYMBOL): New.
5780 (SIMPLE_RETURN_PART): Reimplement.
5781 (VEC_RETURN_PART): Expect less.
5782 (RETURN_PART, VIRTUAL_PART): New.
5783 (METHOD): Adjust to C++ virtual methods.
5784 (scan_target_h): Remove reference to C99.
5785 (dname): Output "target_ops::" prefix.
5786 (write_function_header): Adjust to output a C++ class method.
5787 (write_declaration): New.
5788 (write_delegator): Adjust to output a C++ class method.
5789 (tdname): Output "dummy_target::" prefix.
5790 (write_tdefault, write_debugmethod): Adjust to output a C++ class
5791 method.
5792 (tdefault_names, debug_names): Delete.
5793 (return_types, tdefaults, styles, argtypes_array): New.
5794 (top level): All methods are delegators.
5795 (print_class): New.
5796 (top level): Print dummy_target and debug_target classes.
5797 * target-delegates.c: Regenerate.
5798 * target-debug.h (target_debug_print_enum_info_proc_what)
5799 (target_debug_print_thread_control_capabilities)
5800 (target_debug_print_thread_info_p): New.
5801 * target.c (dummy_target): Delete.
5802 (the_dummy_target, the_debug_target): New.
5803 (target_stack): Now extern.
5804 (set_targetdebug): Push/unpush debug target.
5805 (default_child_has_all_memory, default_child_has_memory)
5806 (default_child_has_stack, default_child_has_registers)
5807 (default_child_has_execution): Remove target_ops parameter.
5808 (complete_target_initialization): Delete.
5809 (add_target_with_completer): No longer call
5810 complete_target_initialization.
5811 (target_supports_terminal_ours): Use regular delegation.
5812 (update_current_target): Delete.
5813 (push_target): No longer check magic number. Don't call
5814 update_current_target.
5815 (unpush_target): Don't call update_current_target.
5816 (target_is_pushed): No longer check magic number.
5817 (target_require_runnable): Skip for all stratums over
5818 process_stratum.
5819 (target_ops::info_proc): New.
5820 (target_info_proc): Use find_target_at and
5821 find_default_run_target.
5822 (target_supports_disable_randomization): Use regular delegation.
5823 (target_get_osdata): Use find_target_at.
5824 (target_ops::open, target_ops::close, target_ops::can_attach)
5825 (target_ops::attach, target_ops::can_create_inferior)
5826 (target_ops::create_inferior, target_ops::can_run)
5827 (target_can_run): New.
5828 (default_fileio_target): Use regular delegation.
5829 (target_ops::fileio_open, target_ops::fileio_pwrite)
5830 (target_ops::fileio_pread, target_ops::fileio_fstat)
5831 (target_ops::fileio_close, target_ops::fileio_unlink)
5832 (target_ops::fileio_readlink): New.
5833 (target_fileio_open_1, target_fileio_unlink)
5834 (target_fileio_readlink): Always call the target method. Handle
5835 FILEIO_ENOSYS.
5836 (return_zero, return_zero_has_execution): Delete.
5837 (init_dummy_target): Delete.
5838 (dummy_target::dummy_target, dummy_target::shortname)
5839 (dummy_target::longname, dummy_target::doc)
5840 (debug_target::debug_target, debug_target::shortname)
5841 (debug_target::longname, debug_target::doc): New.
5842 (target_supports_delete_record): Use regular delegation.
5843 (setup_target_debug): Delete.
5844 (maintenance_print_target_stack): Skip debug_stratum.
5845 (initialize_targets): Instantiate the_dummy_target and
5846 the_debug_target.
5847 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
5848 use target_stack.
5849 (target_auxv_search, fprint_target_auxv): Adjust.
5850 (info_auxv_command): Adjust to use target_stack.
5851 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
5852 * exceptions.c (print_flush): Handle a NULL target_stack.
5853 * regcache.c (target_ops_no_register): Refactor as class with
5854 virtual methods.
5855
5856 * exec.c (exec_target): New class.
5857 (exec_ops): Now an exec_target.
5858 (exec_open, exec_close_1, exec_get_section_table)
5859 (exec_xfer_partial, exec_files_info, exec_has_memory)
5860 (exec_make_note_section): Refactor as exec_target methods.
5861 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
5862 Delete.
5863 (exec_target::find_memory_regions): New.
5864 (_initialize_exec): Don't call init_exec_ops.
5865 * gdbcore.h (exec_file_clear): Delete.
5866
5867 * corefile.c (core_target): Delete.
5868 (core_file_command): Adjust.
5869 * corelow.c (core_target): New class.
5870 (the_core_target): New.
5871 (core_close): Remove target_ops parameter.
5872 (core_close_cleanup): Adjust.
5873 (core_target::close): New.
5874 (core_open, core_detach, get_core_registers, core_files_info)
5875 (core_xfer_partial, core_thread_alive, core_read_description)
5876 (core_pid_to_str, core_thread_name, core_has_memory)
5877 (core_has_stack, core_has_registers, core_info_proc): Rework as
5878 core_target methods.
5879 (ignore, core_remove_breakpoint, init_core_ops): Delete.
5880 (_initialize_corelow): Initialize the_core_target.
5881 * gdbcore.h (core_target): Delete.
5882 (the_core_target): New.
5883
5884 * ctf.c: (ctf_target): New class.
5885 (ctf_ops): Now a ctf_target.
5886 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
5887 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
5888 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
5889 methods.
5890 (init_ctf_ops): Delete.
5891 (_initialize_ctf): Don't call it.
5892 * tracefile-tfile.c (tfile_target): New class.
5893 (tfile_ops): Now a tfile_target.
5894 (tfile_open, tfile_close, tfile_files_info)
5895 (tfile_get_tracepoint_status, tfile_trace_find)
5896 (tfile_fetch_registers, tfile_xfer_partial)
5897 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
5898 Refactor as tfile_target methods.
5899 (tfile_xfer_partial_features): Remove target_ops parameter.
5900 (init_tfile_ops): Delete.
5901 (_initialize_tracefile_tfile): Don't call it.
5902 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
5903 (tracefile_has_stack, tracefile_has_registers)
5904 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
5905 tracefile_target methods.
5906 (init_tracefile_ops): Delete.
5907 (tracefile_target::tracefile_target): New.
5908 * tracefile.h: Include "target.h".
5909 (tracefile_target): New class.
5910 (init_tracefile_ops): Delete.
5911
5912 * spu-multiarch.c (spu_multiarch_target): New class.
5913 (spu_ops): Now a spu_multiarch_target.
5914 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
5915 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5916 (spu_search_memory, spu_mourn_inferior): Refactor as
5917 spu_multiarch_target methods.
5918 (init_spu_ops): Delete.
5919 (_initialize_spu_multiarch): Remove references to init_spu_ops,
5920 complete_target_initialization.
5921
5922 * ravenscar-thread.c (ravenscar_thread_target): New class.
5923 (ravenscar_ops): Now a ravenscar_thread_target.
5924 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
5925 (ravenscar_thread_alive, ravenscar_pid_to_str)
5926 (ravenscar_fetch_registers, ravenscar_store_registers)
5927 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
5928 (ravenscar_stopped_by_hw_breakpoint)
5929 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
5930 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
5931 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
5932 methods.
5933 (init_ravenscar_thread_ops): Delete.
5934 (_initialize_ravenscar): Remove references to
5935 init_ravenscar_thread_ops and complete_target_initialization.
5936
5937 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
5938 (bsd_uthread_target): New class.
5939 (bsd_uthread_ops): Now a bsd_uthread_target.
5940 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
5941 (bsd_uthread_close, bsd_uthread_mourn_inferior)
5942 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
5943 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
5944 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
5945 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
5946 (bsd_uthread_target): Delete function.
5947 (_initialize_bsd_uthread): Remove reference to
5948 complete_target_initialization.
5949
5950 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
5951 (target_bfd): ... this new class.
5952 (target_bfd_xfer_partial, target_bfd_get_section_table)
5953 (target_bfd_close): Refactor as target_bfd methods.
5954 (target_bfd::~target_bfd): New.
5955 (target_bfd_reopen): Adjust.
5956 (target_bfd::close): New.
5957
5958 * record-btrace.c (record_btrace_target): New class.
5959 (record_btrace_ops): Now a record_btrace_target.
5960 (record_btrace_open, record_btrace_stop_recording)
5961 (record_btrace_disconnect, record_btrace_close)
5962 (record_btrace_async, record_btrace_info)
5963 (record_btrace_insn_history, record_btrace_insn_history_range)
5964 (record_btrace_insn_history_from, record_btrace_call_history)
5965 (record_btrace_call_history_range)
5966 (record_btrace_call_history_from, record_btrace_record_method)
5967 (record_btrace_is_replaying, record_btrace_will_replay)
5968 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5969 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
5970 (record_btrace_store_registers, record_btrace_prepare_to_store)
5971 (record_btrace_to_get_unwinder)
5972 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
5973 (record_btrace_commit_resume, record_btrace_wait)
5974 (record_btrace_stop, record_btrace_can_execute_reverse)
5975 (record_btrace_stopped_by_sw_breakpoint)
5976 (record_btrace_supports_stopped_by_sw_breakpoint)
5977 (record_btrace_stopped_by_hw_breakpoint)
5978 (record_btrace_supports_stopped_by_hw_breakpoint)
5979 (record_btrace_update_thread_list, record_btrace_thread_alive)
5980 (record_btrace_goto_begin, record_btrace_goto_end)
5981 (record_btrace_goto, record_btrace_stop_replaying_all)
5982 (record_btrace_execution_direction)
5983 (record_btrace_prepare_to_generate_core)
5984 (record_btrace_done_generating_core): Refactor as
5985 record_btrace_target methods.
5986 (init_record_btrace_ops): Delete.
5987 (_initialize_record_btrace): Remove reference to
5988 init_record_btrace_ops.
5989 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
5990 the execution_direction global.
5991 (record_full_base_target, record_full_target)
5992 (record_full_core_target): New classes.
5993 (record_full_ops): Now a record_full_target.
5994 (record_full_core_ops): Now a record_full_core_target.
5995 (record_full_target::detach, record_full_target::disconnect)
5996 (record_full_core_target::disconnect)
5997 (record_full_target::mourn_inferior, record_full_target::kill):
5998 New.
5999 (record_full_open, record_full_close, record_full_async): Refactor
6000 as methods of the record_full_base_target class.
6001 (record_full_resume, record_full_commit_resume): Refactor
6002 as methods of the record_full_target class.
6003 (record_full_wait, record_full_stopped_by_watchpoint)
6004 (record_full_stopped_data_address)
6005 (record_full_stopped_by_sw_breakpoint)
6006 (record_full_supports_stopped_by_sw_breakpoint)
6007 (record_full_stopped_by_hw_breakpoint)
6008 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
6009 methods of the record_full_base_target class.
6010 (record_full_store_registers, record_full_xfer_partial)
6011 (record_full_insert_breakpoint, record_full_remove_breakpoint):
6012 Refactor as methods of the record_full_target class.
6013 (record_full_can_execute_reverse, record_full_get_bookmark)
6014 (record_full_goto_bookmark, record_full_execution_direction)
6015 (record_full_record_method, record_full_info, record_full_delete)
6016 (record_full_is_replaying, record_full_will_replay)
6017 (record_full_goto_begin, record_full_goto_end, record_full_goto)
6018 (record_full_stop_replaying): Refactor as methods of the
6019 record_full_base_target class.
6020 (record_full_core_resume, record_full_core_kill)
6021 (record_full_core_fetch_registers)
6022 (record_full_core_prepare_to_store)
6023 (record_full_core_store_registers, record_full_core_xfer_partial)
6024 (record_full_core_insert_breakpoint)
6025 (record_full_core_remove_breakpoint)
6026 (record_full_core_has_execution): Refactor
6027 as methods of the record_full_core_target class.
6028 (record_full_base_target::supports_delete_record): New.
6029 (init_record_full_ops): Delete.
6030 (init_record_full_core_ops): Delete.
6031 (record_full_save): Refactor as method of the
6032 record_full_base_target class.
6033 (_initialize_record_full): Remove references to
6034 init_record_full_ops and init_record_full_core_ops.
6035
6036 * remote.c (remote_target, extended_remote_target): New classes.
6037 (remote_ops): Now a remote_target.
6038 (extended_remote_ops): Now an extended_remote_target.
6039 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
6040 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
6041 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
6042 (remote_pass_signals, remote_set_syscall_catchpoint)
6043 (remote_program_signals, )
6044 (remote_thread_always_alive): Remove target_ops parameter.
6045 (remote_thread_alive, remote_thread_name)
6046 (remote_update_thread_list, remote_threads_extra_info)
6047 (remote_static_tracepoint_marker_at)
6048 (remote_static_tracepoint_markers_by_strid)
6049 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
6050 (remote_open): Refactor as methods of remote_target.
6051 (extended_remote_open, extended_remote_detach)
6052 (extended_remote_attach, extended_remote_post_attach):
6053 (extended_remote_supports_disable_randomization)
6054 (extended_remote_create_inferior): : Refactor as method of
6055 extended_remote_target.
6056 (remote_set_permissions, remote_open_1, remote_detach)
6057 (remote_follow_fork, remote_follow_exec, remote_disconnect)
6058 (remote_resume, remote_commit_resume, remote_stop)
6059 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
6060 (remote_terminal_ours, remote_wait, remote_fetch_registers)
6061 (remote_prepare_to_store, remote_store_registers)
6062 (remote_flash_erase, remote_flash_done, remote_files_info)
6063 (remote_kill, remote_mourn, remote_insert_breakpoint)
6064 (remote_remove_breakpoint, remote_insert_watchpoint)
6065 (remote_watchpoint_addr_within_range)
6066 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
6067 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
6068 (remote_supports_stopped_by_sw_breakpoint)
6069 (remote_stopped_by_hw_breakpoint)
6070 (remote_supports_stopped_by_hw_breakpoint)
6071 (remote_stopped_by_watchpoint, remote_stopped_data_address)
6072 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6073 (remote_verify_memory): Refactor as methods of remote_target.
6074 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
6075 parameter.
6076 (remote_xfer_partial, remote_get_memory_xfer_limit)
6077 (remote_search_memory, remote_rcmd, remote_memory_map)
6078 (remote_pid_to_str, remote_get_thread_local_address)
6079 (remote_get_tib_address, remote_read_description): Refactor as
6080 methods of remote_target.
6081 (remote_target::fileio_open, remote_target::fileio_pwrite)
6082 (remote_target::fileio_pread, remote_target::fileio_close): New.
6083 (remote_hostio_readlink, remote_hostio_fstat)
6084 (remote_filesystem_is_local, remote_can_execute_reverse)
6085 (remote_supports_non_stop, remote_supports_disable_randomization)
6086 (remote_supports_multi_process, remote_supports_cond_breakpoints)
6087 (remote_supports_enable_disable_tracepoint)
6088 (remote_supports_string_tracing)
6089 (remote_can_run_breakpoint_commands, remote_trace_init)
6090 (remote_download_tracepoint, remote_can_download_tracepoint)
6091 (remote_download_trace_state_variable, remote_enable_tracepoint)
6092 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
6093 (remote_trace_start, remote_get_trace_status)
6094 (remote_get_tracepoint_status, remote_trace_stop)
6095 (remote_trace_find, remote_get_trace_state_variable_value)
6096 (remote_save_trace_data, remote_get_raw_trace_data)
6097 (remote_set_disconnected_tracing, remote_core_of_thread)
6098 (remote_set_circular_trace_buffer, remote_traceframe_info)
6099 (remote_get_min_fast_tracepoint_insn_len)
6100 (remote_set_trace_buffer_size, remote_set_trace_notes)
6101 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
6102 (remote_disable_btrace, remote_teardown_btrace)
6103 (remote_read_btrace, remote_btrace_conf)
6104 (remote_augmented_libraries_svr4_read, remote_load)
6105 (remote_pid_to_exec_file, remote_can_do_single_step)
6106 (remote_execution_direction, remote_thread_handle_to_thread_info):
6107 Refactor as methods of remote_target.
6108 (init_remote_ops, init_extended_remote_ops): Delete.
6109 (remote_can_async_p, remote_is_async_p, remote_async)
6110 (remote_thread_events, remote_upload_tracepoints)
6111 (remote_upload_trace_state_variables): Refactor as methods of
6112 remote_target.
6113 (_initialize_remote): Remove references to init_remote_ops and
6114 init_extended_remote_ops.
6115
6116 * remote-sim.c (gdbsim_target): New class.
6117 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
6118 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
6119 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
6120 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
6121 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
6122 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
6123 Refactor as methods of gdbsim_target.
6124 (gdbsim_ops): Now a gdbsim_target.
6125 (init_gdbsim_ops): Delete.
6126 (gdbsim_cntrl_c): Adjust.
6127 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
6128
6129 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
6130 (the_amd64_linux_nat_target): New.
6131 (amd64_linux_fetch_inferior_registers)
6132 (amd64_linux_store_inferior_registers): Refactor as methods of
6133 amd64_linux_nat_target.
6134 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
6135 * i386-linux-nat.c: Don't include "linux-nat.h".
6136 (i386_linux_nat_target): New class.
6137 (the_i386_linux_nat_target): New.
6138 (i386_linux_fetch_inferior_registers)
6139 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
6140 as methods of i386_linux_nat_target.
6141 (_initialize_i386_linux_nat): Adjust. Set linux_target.
6142 * inf-child.c (inf_child_ops): Delete.
6143 (inf_child_fetch_inferior_registers)
6144 (inf_child_store_inferior_registers): Delete.
6145 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
6146 methods of inf_child_target.
6147 (inf_child_target::supports_terminal_ours)
6148 (inf_child_target::terminal_init)
6149 (inf_child_target::terminal_inferior)
6150 (inf_child_target::terminal_ours_for_output)
6151 (inf_child_target::terminal_ours, inf_child_target::interrupt)
6152 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
6153 New.
6154 (inf_child_open, inf_child_disconnect, inf_child_close)
6155 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
6156 (inf_child_post_startup_inferior, inf_child_can_run)
6157 (inf_child_pid_to_exec_file): Refactor as methods of
6158 inf_child_target.
6159 (inf_child_follow_fork): Delete.
6160 (inf_child_target::can_create_inferior)
6161 (inf_child_target::can_attach): New.
6162 (inf_child_target::has_all_memory, inf_child_target::has_memory)
6163 (inf_child_target::has_stack, inf_child_target::has_registers)
6164 (inf_child_target::has_execution): New.
6165 (inf_child_fileio_open, inf_child_fileio_pwrite)
6166 (inf_child_fileio_pread, inf_child_fileio_fstat)
6167 (inf_child_fileio_close, inf_child_fileio_unlink)
6168 (inf_child_fileio_readlink, inf_child_use_agent)
6169 (inf_child_can_use_agent): Refactor as methods of
6170 inf_child_target.
6171 (return_zero, inf_child_target): Delete.
6172 (inf_child_target::inf_child_target): New.
6173 * inf-child.h: Include "target.h".
6174 (inf_child_target): Delete function prototype.
6175 (inf_child_target): New class.
6176 (inf_child_open_target, inf_child_mourn_inferior)
6177 (inf_child_maybe_unpush_target): Delete.
6178 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
6179 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
6180 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
6181 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
6182 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
6183 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
6184 (inf_ptrace_wait, inf_ptrace_xfer_partial)
6185 (inf_ptrace_thread_alive, inf_ptrace_files_info)
6186 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
6187 methods of inf_ptrace_target.
6188 (inf_ptrace_target): Delete function.
6189 * inf-ptrace.h: Include "inf-child.h".
6190 (inf_ptrace_target): Delete function declaration.
6191 (inf_ptrace_target): New class.
6192 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
6193 * linux-nat.c (linux_target): New.
6194 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
6195 (linux_nat_target::~linux_nat_target): New.
6196 (linux_child_post_attach, linux_child_post_startup_inferior)
6197 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
6198 (linux_child_remove_fork_catchpoint)
6199 (linux_child_insert_vfork_catchpoint)
6200 (linux_child_remove_vfork_catchpoint)
6201 (linux_child_insert_exec_catchpoint)
6202 (linux_child_remove_exec_catchpoint)
6203 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
6204 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
6205 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
6206 (linux_nat_stopped_data_address)
6207 (linux_nat_stopped_by_sw_breakpoint)
6208 (linux_nat_supports_stopped_by_sw_breakpoint)
6209 (linux_nat_stopped_by_hw_breakpoint)
6210 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
6211 (linux_nat_kill, linux_nat_mourn_inferior)
6212 (linux_nat_xfer_partial, linux_nat_thread_alive)
6213 (linux_nat_update_thread_list, linux_nat_pid_to_str)
6214 (linux_nat_thread_name, linux_child_pid_to_exec_file)
6215 (linux_child_static_tracepoint_markers_by_strid)
6216 (linux_nat_is_async_p, linux_nat_can_async_p)
6217 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
6218 (linux_nat_supports_multi_process)
6219 (linux_nat_supports_disable_randomization, linux_nat_async)
6220 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
6221 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
6222 (linux_nat_fileio_open, linux_nat_fileio_readlink)
6223 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
6224 methods of linux_nat_target.
6225 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
6226 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
6227 parameter.
6228 (check_stopped_by_watchpoint): Adjust.
6229 (linux_xfer_partial): Delete.
6230 (linux_target_install_ops, linux_target, linux_nat_add_target):
6231 Delete.
6232 (linux_nat_target::linux_nat_target): New.
6233 * linux-nat.h: Include "inf-ptrace.h".
6234 (linux_nat_target): New.
6235 (linux_target, linux_target_install_ops, linux_nat_add_target):
6236 Delete function declarations.
6237 (linux_target): Declare global.
6238 * linux-thread-db.c (thread_db_target): New.
6239 (thread_db_target::thread_db_target): New.
6240 (thread_db_ops): Delete.
6241 (the_thread_db_target): New.
6242 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
6243 (thread_db_update_thread_list, thread_db_pid_to_str)
6244 (thread_db_extra_thread_info)
6245 (thread_db_thread_handle_to_thread_info)
6246 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
6247 (thread_db_resume): Refactor as methods of thread_db_target.
6248 (init_thread_db_ops): Delete.
6249 (_initialize_thread_db): Remove reference to init_thread_db_ops.
6250 * x86-linux-nat.c: Don't include "linux-nat.h".
6251 (super_post_startup_inferior): Delete.
6252 (x86_linux_nat_target::~x86_linux_nat_target): New.
6253 (x86_linux_child_post_startup_inferior)
6254 (x86_linux_read_description, x86_linux_enable_btrace)
6255 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
6256 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
6257 methods of x86_linux_nat_target.
6258 (x86_linux_create_target): Delete. Bits folded ...
6259 (x86_linux_add_target): ... here. Now takes a linux_nat_target
6260 pointer.
6261 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
6262 (x86_linux_nat_target): New class.
6263 (x86_linux_create_target): Delete.
6264 (x86_linux_add_target): Now takes a linux_nat_target pointer.
6265 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
6266 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
6267 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
6268 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
6269 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
6270 make extern.
6271 (x86_use_watchpoints): Delete.
6272 * x86-nat.h: Include "breakpoint.h" and "target.h".
6273 (x86_use_watchpoints): Delete.
6274 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
6275 (x86_stopped_by_watchpoint, x86_stopped_data_address)
6276 (x86_insert_watchpoint, x86_remove_watchpoint)
6277 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
6278 (x86_stopped_by_hw_breakpoint): New declarations.
6279 (x86_nat_target): New template class.
6280
6281 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
6282 (the_ppc_linux_nat_target): New.
6283 (ppc_linux_fetch_inferior_registers)
6284 (ppc_linux_can_use_hw_breakpoint)
6285 (ppc_linux_region_ok_for_hw_watchpoint)
6286 (ppc_linux_ranged_break_num_registers)
6287 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
6288 (ppc_linux_insert_mask_watchpoint)
6289 (ppc_linux_remove_mask_watchpoint)
6290 (ppc_linux_can_accel_watchpoint_condition)
6291 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
6292 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
6293 (ppc_linux_watchpoint_addr_within_range)
6294 (ppc_linux_masked_watch_num_registers)
6295 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
6296 (ppc_linux_read_description): Refactor as methods of
6297 ppc_linux_nat_target.
6298 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
6299
6300 * procfs.c (procfs_xfer_partial): Delete forward declaration.
6301 (procfs_target): New class.
6302 (the_procfs_target): New.
6303 (procfs_target): Delete function.
6304 (procfs_auxv_parse, procfs_attach, procfs_detach)
6305 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
6306 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
6307 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
6308 (procfs_create_inferior, procfs_update_thread_list)
6309 (procfs_thread_alive, procfs_pid_to_str)
6310 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
6311 (procfs_stopped_data_address, procfs_insert_watchpoint)
6312 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
6313 (proc_find_memory_regions, procfs_info_proc)
6314 (procfs_make_note_section): Refactor as methods of procfs_target.
6315 (_initialize_procfs): Adjust.
6316 * sol-thread.c (sol_thread_target): New class.
6317 (sol_thread_ops): Now a sol_thread_target.
6318 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
6319 (sol_thread_fetch_registers, sol_thread_store_registers)
6320 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
6321 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
6322 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
6323 (init_sol_thread_ops): Delete.
6324 (_initialize_sol_thread): Adjust. Remove references to
6325 init_sol_thread_ops and complete_target_initialization.
6326
6327 * windows-nat.c (windows_nat_target): New class.
6328 (windows_fetch_inferior_registers)
6329 (windows_store_inferior_registers, windows_resume, windows_wait)
6330 (windows_attach, windows_detach, windows_pid_to_exec_file)
6331 (windows_files_info, windows_create_inferior)
6332 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
6333 (windows_close, windows_pid_to_str, windows_xfer_partial)
6334 (windows_get_tib_address, windows_get_ada_task_ptid)
6335 (windows_thread_name, windows_thread_alive): Refactor as
6336 windows_nat_target methods.
6337 (do_initial_windows_stuff): Adjust.
6338 (windows_target): Delete function.
6339 (_initialize_windows_nat): Adjust.
6340
6341 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
6342 (darwin_mourn_inferior, darwin_kill_inferior)
6343 (darwin_create_inferior, darwin_attach, darwin_detach)
6344 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
6345 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
6346 (darwin_supports_multi_process): Refactor as darwin_nat_target
6347 methods.
6348 (darwin_resume_to, darwin_files_info): Delete.
6349 (_initialize_darwin_inferior): Rename to ...
6350 (_initialize_darwin_nat): ... this. Adjust to C++ification.
6351 * darwin-nat.h: Include "inf-child.h".
6352 (darwin_nat_target): New class.
6353 (darwin_complete_target): Delete.
6354 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
6355 (darwin_target): New.
6356 (i386_darwin_fetch_inferior_registers)
6357 (i386_darwin_store_inferior_registers): Refactor as methods of
6358 darwin_nat_target.
6359 (darwin_complete_target): Delete, with ...
6360 (_initialize_i386_darwin_nat): ... bits factored out here.
6361
6362 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
6363 (the_alpha_linux_nat_target): New.
6364 (alpha_linux_register_u_offset): Refactor as
6365 alpha_linux_nat_target method.
6366 (_initialize_alpha_linux_nat): Adjust.
6367 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
6368 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
6369 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
6370 methods of linux_nat_trad_target.
6371 (linux_trad_target): Delete.
6372 * linux-nat-trad.h (linux_trad_target): Delete function.
6373 (linux_nat_trad_target): New class.
6374 * mips-linux-nat.c (mips_linux_nat_target): New class.
6375 (super_fetch_registers, super_store_registers, super_close):
6376 Delete.
6377 (the_mips_linux_nat_target): New.
6378 (mips64_linux_regsets_fetch_registers)
6379 (mips64_linux_regsets_store_registers)
6380 (mips64_linux_fetch_registers, mips64_linux_store_registers)
6381 (mips_linux_register_u_offset, mips_linux_read_description)
6382 (mips_linux_can_use_hw_breakpoint)
6383 (mips_linux_stopped_by_watchpoint)
6384 (mips_linux_stopped_data_address)
6385 (mips_linux_region_ok_for_hw_watchpoint)
6386 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
6387 (mips_linux_close): Refactor as methods of mips_linux_nat.
6388 (_initialize_mips_linux_nat): Adjust to C++ification.
6389
6390 * aix-thread.c (aix_thread_target): New class.
6391 (aix_thread_ops): Now an aix_thread_target.
6392 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
6393 (aix_thread_fetch_registers, aix_thread_store_registers)
6394 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
6395 (aix_thread_thread_alive, aix_thread_pid_to_str)
6396 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
6397 Refactor as methods of aix_thread_target.
6398 (init_aix_thread_ops): Delete.
6399 (_initialize_aix_thread): Remove references to init_aix_thread_ops
6400 and complete_target_initialization.
6401 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
6402 (rs6000_nat_target): New class.
6403 (the_rs6000_nat_target): New.
6404 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
6405 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
6406 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
6407 (super_create_inferior): Delete.
6408 (_initialize_rs6000_nat): Adjust to C++ification.
6409
6410 * arm-linux-nat.c (arm_linux_nat_target): New class.
6411 (the_arm_linux_nat_target): New.
6412 (arm_linux_fetch_inferior_registers)
6413 (arm_linux_store_inferior_registers, arm_linux_read_description)
6414 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
6415 (arm_linux_remove_hw_breakpoint)
6416 (arm_linux_region_ok_for_hw_watchpoint)
6417 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
6418 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
6419 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
6420 arm_linux_nat_target.
6421 (_initialize_arm_linux_nat): Adjust to C++ification.
6422
6423 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
6424 (the_aarch64_linux_nat_target): New.
6425 (aarch64_linux_fetch_inferior_registers)
6426 (aarch64_linux_store_inferior_registers)
6427 (aarch64_linux_child_post_startup_inferior)
6428 (aarch64_linux_read_description)
6429 (aarch64_linux_can_use_hw_breakpoint)
6430 (aarch64_linux_insert_hw_breakpoint)
6431 (aarch64_linux_remove_hw_breakpoint)
6432 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
6433 (aarch64_linux_region_ok_for_hw_watchpoint)
6434 (aarch64_linux_stopped_data_address)
6435 (aarch64_linux_stopped_by_watchpoint)
6436 (aarch64_linux_watchpoint_addr_within_range)
6437 (aarch64_linux_can_do_single_step): Refactor as methods of
6438 aarch64_linux_nat_target.
6439 (super_post_startup_inferior): Delete.
6440 (_initialize_aarch64_linux_nat): Adjust to C++ification.
6441
6442 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
6443 (the_hppa_linux_nat_target): New.
6444 (hppa_linux_fetch_inferior_registers)
6445 (hppa_linux_store_inferior_registers): Refactor as methods of
6446 hppa_linux_nat_target.
6447 (_initialize_hppa_linux_nat): Adjust to C++ification.
6448
6449 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
6450 (the_ia64_linux_nat_target): New.
6451 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
6452 (ia64_linux_stopped_data_address)
6453 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
6454 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
6455 ia64_linux_nat_target methods.
6456 (super_xfer_partial): Delete.
6457 (_initialize_ia64_linux_nat): Adjust to C++ification.
6458
6459 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
6460 (the_m32r_linux_nat_target): New.
6461 (m32r_linux_fetch_inferior_registers)
6462 (m32r_linux_store_inferior_registers): Refactor as
6463 m32r_linux_nat_target methods.
6464 (_initialize_m32r_linux_nat): Adjust to C++ification.
6465
6466 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
6467 (the_m68k_linux_nat_target): New.
6468 (m68k_linux_fetch_inferior_registers)
6469 (m68k_linux_store_inferior_registers): Refactor as
6470 m68k_linux_nat_target methods.
6471 (_initialize_m68k_linux_nat): Adjust to C++ification.
6472
6473 * s390-linux-nat.c (s390_linux_nat_target): New class.
6474 (the_s390_linux_nat_target): New.
6475 (s390_linux_fetch_inferior_registers)
6476 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
6477 (s390_insert_watchpoint, s390_remove_watchpoint)
6478 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
6479 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
6480 (s390_auxv_parse, s390_read_description): Refactor as methods of
6481 s390_linux_nat_target.
6482 (_initialize_s390_nat): Adjust to C++ification.
6483
6484 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
6485 (the_sparc_linux_nat_target): New.
6486 (_initialize_sparc_linux_nat): Adjust to C++ification.
6487 * sparc-nat.c (sparc_fetch_inferior_registers)
6488 (sparc_store_inferior_registers): Remove target_ops parameter.
6489 * sparc-nat.h (sparc_fetch_inferior_registers)
6490 (sparc_store_inferior_registers): Remove target_ops parameter.
6491 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
6492 (the_sparc64_linux_nat_target): New.
6493 (_initialize_sparc64_linux_nat): Adjust to C++ification.
6494
6495 * spu-linux-nat.c (spu_linux_nat_target): New class.
6496 (the_spu_linux_nat_target): New.
6497 (spu_child_post_startup_inferior, spu_child_post_attach)
6498 (spu_child_wait, spu_fetch_inferior_registers)
6499 (spu_store_inferior_registers, spu_xfer_partial)
6500 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
6501 methods.
6502 (_initialize_spu_nat): Adjust to C++ification.
6503
6504 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
6505 (the_tilegx_linux_nat_target): New.
6506 (fetch_inferior_registers, store_inferior_registers):
6507 Refactor as methods.
6508 (_initialize_tile_linux_nat): Adjust to C++ification.
6509
6510 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
6511 (the_xtensa_linux_nat_target): New.
6512 (xtensa_linux_fetch_inferior_registers)
6513 (xtensa_linux_store_inferior_registers): Refactor as
6514 xtensa_linux_nat_target methods.
6515 (_initialize_xtensa_linux_nat): Adjust to C++ification.
6516
6517 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
6518 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
6519 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
6520 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
6521 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
6522 (fbsd_stopped_by_sw_breakpoint)
6523 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
6524 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
6525 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
6526 (fbsd_post_startup_inferior, fbsd_post_attach)
6527 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
6528 (fbsd_set_syscall_catchpoint)
6529 (super_xfer_partial, super_resume, super_wait)
6530 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
6531 (fbsd_handle_debug_trap): Remove target_ops parameter.
6532 (fbsd_nat_add_target): Delete.
6533 * fbsd-nat.h: Include "inf-ptrace.h".
6534 (fbsd_nat_add_target): Delete.
6535 (USE_SIGTRAP_SIGINFO): Define.
6536 (fbsd_nat_target): New class.
6537
6538 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
6539 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
6540 (amd64bsd_target): Delete.
6541 * amd64-bsd-nat.h: New file.
6542 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
6543 "x86-bsd-nat.h".
6544 (amd64_fbsd_nat_target): New class.
6545 (the_amd64_fbsd_nat_target): New.
6546 (amd64fbsd_read_description): Refactor as method of
6547 amd64_fbsd_nat_target.
6548 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6549 (_initialize_amd64fbsd_nat): Adjust to C++ification.
6550 * amd64-nat.h (amd64bsd_target): Delete function declaration.
6551 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
6552 (i386bsd_store_inferior_registers): Remove target_ops parameter.
6553 (i386bsd_target): Delete.
6554 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
6555 (i386bsd_fetch_inferior_registers)
6556 (i386bsd_store_inferior_registers): Declare.
6557 (i386_bsd_nat_target): New class.
6558 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
6559 (the_i386_fbsd_nat_target): New.
6560 (i386fbsd_resume, i386fbsd_read_description): Refactor as
6561 i386_fbsd_nat_target methods.
6562 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6563 (_initialize_i386fbsd_nat): Adjust to C++ification.
6564 * x86-bsd-nat.c (super_mourn_inferior): Delete.
6565 (x86bsd_mourn_inferior, x86bsd_target): Delete.
6566 (_initialize_x86_bsd_nat): Adjust to C++ification.
6567 * x86-bsd-nat.h: Include "x86-nat.h".
6568 (x86bsd_target): Delete declaration.
6569 (x86bsd_nat_target): New class.
6570
6571 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
6572 (the_aarch64_fbsd_nat_target): New.
6573 (aarch64_fbsd_fetch_inferior_registers)
6574 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
6575 aarch64_fbsd_nat_target.
6576 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
6577 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
6578 (the_alpha_bsd_nat_target): New.
6579 (alphabsd_fetch_inferior_registers)
6580 (alphabsd_store_inferior_registers): Refactor as
6581 alpha_bsd_nat_target methods.
6582 (_initialize_alphabsd_nat): Refactor as methods of
6583 alpha_bsd_nat_target.
6584 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
6585 (the_amd64_nbsd_nat_target): New.
6586 (_initialize_amd64nbsd_nat): Adjust to C++ification.
6587 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
6588 (the_amd64_obsd_nat_target): New.
6589 (_initialize_amd64obsd_nat): Adjust to C++ification.
6590 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
6591 (the_arm_fbsd_nat_target): New.
6592 (arm_fbsd_fetch_inferior_registers)
6593 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
6594 (_initialize_arm_fbsd_nat): Refactor as methods of
6595 arm_fbsd_nat_target.
6596 (_initialize_arm_fbsd_nat): Adjust to C++ification.
6597 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
6598 (the_arm_netbsd_nat_target): New.
6599 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
6600 arm_netbsd_nat_target.
6601 (_initialize_arm_netbsd_nat): Adjust to C++ification.
6602 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
6603 (the_hppa_nbsd_nat_target): New.
6604 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
6605 hppa_nbsd_nat_target methods.
6606 (_initialize_hppanbsd_nat): Adjust to C++ification.
6607 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
6608 (the_hppa_obsd_nat_target): New.
6609 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
6610 methods of hppa_obsd_nat_target.
6611 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
6612 add_target.
6613 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
6614 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
6615 add_target.
6616 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
6617 (_initialize_i386obsd_nat): Use add_target.
6618 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
6619 (the_m68k_bsd_nat_target): New.
6620 (m68kbsd_fetch_inferior_registers)
6621 (m68kbsd_store_inferior_registers): Refactor as methods of
6622 m68k_bsd_nat_target.
6623 (_initialize_m68kbsd_nat): Adjust to C++ification.
6624 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
6625 (the_mips_fbsd_nat_target): New.
6626 (mips_fbsd_fetch_inferior_registers)
6627 (mips_fbsd_store_inferior_registers): Refactor as methods of
6628 mips_fbsd_nat_target.
6629 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
6630 add_target.
6631 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
6632 (the_mips_nbsd_nat_target): New.
6633 (mipsnbsd_fetch_inferior_registers)
6634 (mipsnbsd_store_inferior_registers): Refactor as methods of
6635 mips_nbsd_nat_target.
6636 (_initialize_mipsnbsd_nat): Adjust to C++ification.
6637 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
6638 (the_mips64_obsd_nat_target): New.
6639 (mips64obsd_fetch_inferior_registers)
6640 (mips64obsd_store_inferior_registers): Refactor as methods of
6641 mips64_obsd_nat_target.
6642 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
6643 add_target.
6644 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
6645 nbsd_nat_target.
6646 * nbsd-nat.h: Include "inf-ptrace.h".
6647 (nbsd_nat_target): New class.
6648 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
6649 (obsd_wait): Refactor as methods of obsd_nat_target.
6650 (obsd_add_target): Delete.
6651 * obsd-nat.h: Include "inf-ptrace.h".
6652 (obsd_nat_target): New class.
6653 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
6654 (the_ppc_fbsd_nat_target): New.
6655 (ppcfbsd_fetch_inferior_registers)
6656 (ppcfbsd_store_inferior_registers): Refactor as methods of
6657 ppc_fbsd_nat_target.
6658 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
6659 add_target.
6660 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
6661 (the_ppc_nbsd_nat_target): New.
6662 (ppcnbsd_fetch_inferior_registers)
6663 (ppcnbsd_store_inferior_registers): Refactor as methods of
6664 ppc_nbsd_nat_target.
6665 (_initialize_ppcnbsd_nat): Adjust to C++ification.
6666 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
6667 (the_ppc_obsd_nat_target): New.
6668 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
6669 methods of ppc_obsd_nat_target.
6670 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
6671 add_target.
6672 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
6673 (the_sh_nbsd_nat_target): New.
6674 (shnbsd_fetch_inferior_registers)
6675 (shnbsd_store_inferior_registers): Refactor as methods of
6676 sh_nbsd_nat_target.
6677 (_initialize_shnbsd_nat): Adjust to C++ification.
6678 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
6679 (inf_ptrace_xfer_partial): Delete.
6680 (sparc_xfer_partial, sparc_target): Delete.
6681 * sparc-nat.h (sparc_fetch_inferior_registers)
6682 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
6683 (sparc_target): Delete function declaration.
6684 (sparc_target): New template class.
6685 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
6686 (_initialize_sparcnbsd_nat): Adjust to C++ification.
6687 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
6688 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
6689 add_target.
6690 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
6691 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
6692 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
6693 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
6694 add_target.
6695 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
6696 (the_vax_bsd_nat_target): New.
6697 (vaxbsd_fetch_inferior_registers)
6698 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
6699 methods.
6700 (_initialize_vaxbsd_nat): Adjust to C++ification.
6701
6702 * bsd-kvm.c (bsd_kvm_target): New class.
6703 (bsd_kvm_ops): Now a bsd_kvm_target.
6704 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
6705 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
6706 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
6707 bsd_kvm_target.
6708 (bsd_kvm_return_one): Delete.
6709 (bsd_kvm_add_target): Adjust to C++ification.
6710
6711 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
6712 (nto_procfs_target_procfs): New classes.
6713 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
6714 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
6715 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
6716 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
6717 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
6718 (procfs_remove_hw_breakpoint, procfs_resume)
6719 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
6720 (procfs_kill_inferior, procfs_store_registers)
6721 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
6722 as methods of nto_procfs_target.
6723 (nto_procfs_ops): Now an nto_procfs_target_procfs.
6724 (nto_native_ops): Delete.
6725 (procfs_open, procfs_native_open): Delete.
6726 (nto_native_ops): Now an nto_procfs_target_native.
6727 (init_procfs_targets): Adjust to C++ification.
6728 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
6729 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
6730 Refactor as methods of nto_procfs_target.
6731
6732 * go32-nat.c (go32_nat_target): New class.
6733 (the_go32_nat_target): New.
6734 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
6735 (go32_store_registers, go32_xfer_partial, go32_files_info)
6736 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
6737 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
6738 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
6739 (go32_pid_to_str): Refactor as methods of go32_nat_target.
6740 (go32_target): Delete.
6741 (_initialize_go32_nat): Adjust to C++ification.
6742
6743 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
6744 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
6745 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
6746 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
6747 gnu_nat_target.
6748 (gnu_target): Delete.
6749 * gnu-nat.h (gnu_target): Delete.
6750 (gnu_nat_target): New class.
6751 * i386-gnu-nat.c (gnu_base_target): New.
6752 (i386_gnu_nat_target): New class.
6753 (the_i386_gnu_nat_target): New.
6754 (_initialize_i386gnu_nat): Adjust to C++ification.
6755
3fffc070
PA
67562018-05-02 Pedro Alves <palves@redhat.com>
6757
6758 * bfd-target.c (target_bfd_xclose): Rename to ...
6759 (target_bfd_close): ... this.
6760 (target_bfd_reopen): Adjust.
6761 * target.c (target_close): Remove references to to_xclose.
6762 * target.h (target_ops::to_xclose): Delete.
6763 (target_ops::to_close): Update comments.
6764
6798487f
PA
67652018-05-02 Pedro Alves <palves@redhat.com>
6766
6767 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
6768 "linux-nat.h".
6769 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
6770 * inf-ptrace.c (inf_ptrace_register_u_offset)
6771 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
6772 (inf_ptrace_store_register, inf_ptrace_store_registers)
6773 (inf_ptrace_trad_target): Move to ...
6774 * linux-nat-trad.c: ... this new file.
6775 * linux-nat-trad.h: New file.
6776 * linux-nat.c (linux_target_install_ops): Make extern.
6777 (linux_trad_target): Delete.
6778 * linux-nat.h (linux_trad_target): Delete declaration.
6779 (linux_target_install_ops): Declare.
6780 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
6781 "linux-nat.h".
6782
c1955e17
PA
67832018-05-02 Pedro Alves <palves@redhat.com>
6784
6785 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
6786 procfs_target/add_target here.
6787 * procfs.c (procfs_target): Make static.
6788 (_initialize_procfs): Call add_target here.
6789 * procfs.h (struct target_ops): Remove forward declaration.
6790 (procfs_target): Remove declaration.
6791 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
6792
b5c8fcb1
PA
67932018-05-02 Pedro Alves <palves@redhat.com>
6794
6795 * procfs.c (procfs_stopped_by_watchpoint)
6796 (procfs_insert_watchpoint, procfs_remove_watchpoint)
6797 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
6798 Forward declare.
6799 (procfs_use_watchpoints): Delete, move contents...
6800 (procfs_target): ... here.
6801 * procfs.h (procfs_use_watchpoints): Delete declaration.
6802 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
6803 procfs_use_watchpoints.
6804 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
6805 procfs_use_watchpoints.
6806
0489430a
TT
68072018-05-02 Tom Tromey <tom@tromey.com>
6808
6809 PR python/20084:
6810 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
6811 and var_zuinteger_unlimited.
6812 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
6813 and PARAM_ZUINTEGER_UNLIMITED.
6814 (set_parameter_value): Handle var_zuinteger and
6815 var_zuinteger_unlimited.
6816 (add_setshow_generic): Likewise.
6817 (parmpy_init): Likewise.
6818
1632f8ba
DR
68192018-04-28 Dan Robertson <danlrobertson89@gmail.com>
6820
6821 PR rust/23124
6822 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
6823 pointer is not null before dereferencing it.
6824
76761936
TT
68252018-04-30 Tom Tromey <tom@tromey.com>
6826
6827 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
6828 is_mi_like_p.
6829
2d33446d
TT
68302018-04-30 Tom Tromey <tom@tromey.com>
6831
6832 * breakpoint.c (mention): Remove use of is_mi_like_p.
6833 (print_mention_ranged_breakpoint): Likewise.
6834 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
6835 of is_mi_like_p.
6836
f3c6abab
TT
68372018-04-30 Tom Tromey <tom@tromey.com>
6838
6839 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
6840
40c03530
TT
68412018-04-30 Tom Tromey <tom@tromey.com>
6842
6843 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
6844 (info_spu_event_command): Remove some uses of is_mi_like_p.
6845
2038b7fd
TT
68462018-04-30 Tom Tromey <tom@tromey.com>
6847
6848 * python/py-framefilter.c (py_print_single_arg)
6849 (enumerate_locals, py_print_args, py_print_frame): Remove some
6850 uses of is_mi_like_p.
6851
4904c3c6
TT
68522018-04-30 Tom Tromey <tom@tromey.com>
6853
6854 * ui-out.c: Update.
6855 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
6856 * ui-out.h (ui_out::is_mi_like_p): Now const.
6857 (ui_out::do_is_mi_like_p): Now const.
6858 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
6859
7c66fffc
TT
68602018-04-30 Tom Tromey <tom@tromey.com>
6861
6862 * varobj.c (varobj_set_visualizer): Use new_reference.
6863 * python/python.c (gdbpy_decode_line): Use new_reference.
6864 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
6865 new_reference.
6866
bbfa6f00
TT
68672018-04-30 Tom Tromey <tom@tromey.com>
6868
6869 * varobj.c (install_new_value): Use new_reference.
6870 * value.h (value_incref): Return void. Swap intro comment with
6871 value_decref.
6872 * value.c (set_value_parent): Use new_reference.
6873 (value_incref): Return void. Update intro comment.
6874 (release_value): Use new_reference.
6875 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
6876
1831a9f9
TT
68772018-04-30 Tom Tromey <tom@tromey.com>
6878
6879 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
6880 * gdb_bfd.h (new_bfd_ref): Remove.
6881 (gdb_bfd_open): Update comment.
6882 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
6883 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
6884 (gdb_bfd_fdopenr): Use new_reference.
6885 * exec.c (exec_file_attach): Use new_reference.
6886
7c1b5f3d
TT
68872018-04-30 Tom Tromey <tom@tromey.com>
6888
6889 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
6890 method.
6891
e11fb955
TT
68922018-04-30 Tom Tromey <tom@tromey.com>
6893
6894 * jit.c (jit_read_code_entry): Use type_align.
6895 * i386-tdep.c (i386_gdbarch_init): Don't call
6896 set_gdbarch_long_long_align_bit.
6897 * gdbarch.sh: Remove long_long_align_bit.
6898 * gdbarch.c, gdbarch.h: Rebuild.
6899 * arc-tdep.c (arc_type_align): New function.
6900 (arc_gdbarch_init): Use arc_type_align. Don't call
6901 set_gdbarch_long_long_align_bit.
6902
2fff16dd
TT
69032018-04-30 Tom Tromey <tom@tromey.com>
6904
6905 * rust-lang.c (rust_type_alignment): Remove.
6906 (rust_composite_type): Use type_align.
6907
6d7bb824
TT
69082018-04-30 Tom Tromey <tom@tromey.com>
6909
6910 * NEWS: Mention Type.align.
6911 * python/py-type.c (typy_get_alignof): New function.
6912 (type_object_getset): Add "alignof".
6913
007e1530
TT
69142018-04-30 Tom Tromey <tom@tromey.com>
6915
6916 PR exp/17095:
6917 * NEWS: Update.
6918 * std-operator.def (UNOP_ALIGNOF): New operator.
6919 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
6920 New.
6921 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
6922 * c-lang.c (c_op_print_tab): Add alignof.
6923 * c-exp.y (ALIGNOF): New token.
6924 (exp): Add "ALIGNOF" production.
6925 (ident_tokens): Add _Alignof and alignof.
6926
2b4424c3
TT
69272018-04-30 Tom Tromey <tom@tromey.com>
6928
6929 * i386-tdep.c (i386_type_align): New function.
6930 (i386_gdbarch_init): Update.
6931 * gdbarch.sh (type_align): New method.
6932 * gdbarch.c, gdbarch.h: Rebuild.
6933 * arch-utils.h (default_type_align): Declare.
6934 * arch-utils.c (default_type_align): New function.
6935 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
6936 (struct type) <align_log2>: New field.
6937 <instance_flags>: Now a bitfield.
6938 (TYPE_RAW_ALIGN): New macro.
6939 (type_align, type_raw_align, set_type_align): Declare.
6940 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
6941 functions.
6942 * dwarf2read.c (quirk_rust_enum): Set type alignment.
6943 (get_alignment, maybe_set_alignment): New functions.
6944 (read_structure_type, read_enumeration_type, read_array_type)
6945 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
6946 (read_subrange_type, read_base_type): Set type alignment.
6947
d33bc52e
SM
69482018-04-30 Simon Marchi <simon.marchi@ericsson.com>
6949
6950 * dwarf2read.c (read_index_from_section): Use bool.
6951
e28b63a9
FG
69522018-04-29 Fabian Groffen <grobian@gentoo.org>
6953
6954 PR gdb/22950
6955 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
6956 with #ifdef.
6957
cd8c76e4
JR
69582018-04-29 John Reiser <jreiser@BitWagon.com>
6959
6960 PR build/22873
6961 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
6962 last step, and do it atomically.
6963
476d250e
AO
69642018-04-27 Alexandre Oliva <aoliva@redhat.com>
6965
6966 * compile/compile-c-types.c (convert_int, convert_float):
6967 Update for C FE v1.
6968
6873858b
TT
69692018-04-27 Tom Tromey <tom@tromey.com>
6970
6971 PR rust/22545:
6972 * rust-lang.c (rust_inclusive_range_type_p): New function.
6973 (rust_range): Handle inclusive ranges.
6974 (rust_compute_range): Likewise.
6975 * rust-exp.y (struct rust_op) <inclusive>: New field.
6976 (DOTDOTEQ): New constant.
6977 (range_expr): Add "..=" productions.
6978 (operator_tokens): Add "..=" token.
6979 (ast_range): Add "inclusive" parameter.
6980 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
6981 ranges.
6982 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
6983 bounds values.
6984 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
6985 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
6986 Update comments.
6987 * expprint.c (print_subexp_standard): Handle new bounds values.
6988 (dump_subexp_body_standard): Likewise.
6989
632e107b
TT
69902018-04-27 Tom Tromey <tom@tromey.com>
6991
6992 * configure: Rebuild.
6993 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
6994 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
6995 "OVERRIDE".
6996 (class symbol_needs_eval_context): Likewise.
6997 * dwarf2read.c (mock_mapped_index::symbol_name_count)
6998 (mock_mapped_index::symbol_name_at): Use "override". Remove
6999 "virtual".
7000 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
7001 "override".
7002 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
7003 * aarch64-tdep.c (instruction_reader::read): Use "override".
7004 (instruction_reader_test::read): Likewise.
7005 * arm-tdep.c (instruction_reader::read): Use "override".
7006 (instruction_reader_thumb::read): Likewise.
7007
b75abf5b
AK
70082018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
7009
7010 PR remote/9665
7011 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
7012 instead of remote_send.
7013 (remote_send): Remove.
7014
79188d8d
PA
70152018-04-26 Pedro Alves <palves@redhat.com>
7016
7017 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
7018 find_function_start_sal instead of find_pc_line.
7019
f50776aa
PA
70202018-04-26 Pedro Alves <palves@redhat.com>
7021
7022 * breakpoint.c (set_breakpoint_location_function): Handle
7023 mst_data_gnu_ifunc.
7024 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
7025 * elfread.c (elf_symtab_read): Give data symbols with
7026 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
7027 (elf_rel_plt_read): Update comment.
7028 * linespec.c (convert_linespec_to_sals): Handle
7029 mst_data_gnu_ifunc.
7030 (minsym_found): Handle mst_data_gnu_ifunc.
7031 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
7032 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
7033 * parse.c (find_minsym_type_and_address): Handle
7034 mst_data_gnu_ifunc.
7035 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
7036 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
7037 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
7038 comment.
7039 <mst_data_gnu_ifunc>: New enumerator.
7040
20944a6e
PA
70412018-04-26 Pedro Alves <palves@redhat.com>
7042
7043 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
7044 (lookup_minimal_symbol_by_pc_section): ... this. Replace
7045 'want_trampoline' parameter by a lookup_msym_prefer parameter.
7046 Handle it.
7047 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
7048 (lookup_minimal_symbol_by_pc): Adjust.
7049 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
7050 (lookup_solib_trampoline_symbol_by_pc): Adjust.
7051 * minsyms.h (lookup_msym_prefer): New enum.
7052 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
7053 parameter by a lookup_msym_prefer parameter.
7054
1adeb822
PA
70552018-04-26 Pedro Alves <palves@redhat.com>
7056
7057 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
7058 ends in "@plt" instead of looking at the symbol's section.
7059
a0aca7b0
PA
70602018-04-26 Pedro Alves <palves@redhat.com>
7061
7062 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
7063 all references.
7064 (find_pc_partial_function_gnu_ifunc): Rename to ...
7065 (find_pc_partial_function): ... this, and remove references to
7066 'is_gnu_ifunc_p'.
7067 (find_pc_partial_function): Delete old implementation.
7068 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
7069
76af0f26
PA
70702018-04-26 Pedro Alves <palves@redhat.com>
7071
7072 * linespec.c (struct bound_minimal_symbol_search_key): New.
7073 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
7074 skip first line if we found a GNU ifunc minimal symbol by name.
7075 (compare_msymbols): Change parameters to work with a destructured
7076 lhs minsym.
7077 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
7078 functions.
7079
3467ec66
PA
70802018-04-26 Pedro Alves <palves@redhat.com>
7081
7082 * breakpoint.c (set_breakpoint_location_function): Don't resolve
7083 ifunc targets here. Instead, if we have an ifunc minsym, use its
7084 address/name.
7085 (add_location_to_breakpoint): Store the minsym and the objfile in
7086 the breakpoint location.
7087 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
7088 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
7089 Record the minsym in the sal.
7090 * symtab.h (symtab_and_line) <msymbol>: New field.
7091
28f4fa4d
PA
70922018-04-26 Pedro Alves <palves@redhat.com>
7093
7094 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
7095 unless we actually resolved the ifunc.
7096
ca31ab1d
PA
70972018-04-26 Pedro Alves <palves@redhat.com>
7098
7099 * c-exp.y (variable production): Prefer ifunc minsyms over
7100 regular function symbols.
7101 * symtab.c (find_gnu_ifunc): New function.
7102 * minsyms.h (lookup_msym_prefer): New enum.
7103 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
7104 parameter by a lookup_msym_prefer parameter.
7105 * symtab.h (find_gnu_ifunc): New declaration.
7106
8388016d
PA
71072018-04-26 Pedro Alves <palves@redhat.com>
7108
7109 * blockframe.c (find_gnu_ifunc_target_type): New function.
7110 (find_function_type): New.
7111 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
7112 return a value with a memory address.
7113 (eval_call): For calls to GNU ifunc functions, try to find the
7114 type of the target function from the type that the resolver
7115 returns.
7116 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
7117 symbols.
7118 * infcall.c (find_function_return_type): Delete.
7119 (find_function_addr): Add 'function_type' parameter. For calls to
7120 GNU ifunc functions, try to find the type of the target function
7121 from the type that the resolver returns, and return it via
7122 FUNCTION_TYPE.
7123 (call_function_by_hand_dummy): Adjust to use the function type
7124 returned by find_function_addr.
7125 (find_function_addr): Add 'function_type' parameter and move
7126 description here.
7127 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
7128 declarations.
7129
a376e11d
PA
71302018-04-26 Pedro Alves <palves@redhat.com>
7131
7132 * c-exp.y (variable production): Skip finding an alias for ifunc
7133 symbols.
7134
02e169e2
PA
71352018-04-26 Pedro Alves <palves@redhat.com>
7136
7137 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
7138
249b5733
PA
71392018-04-25 Pedro Alves <palves@redhat.com>
7140
7141 * infcmd.c (kill_command): Print the pid as string, not the whole
7142 thread's ptid. Add comment. s/has been killed/killed/ in output
7143 message.
7144 * remote.c (remote_detach_1): Print the pid as string, not the
7145 whole thread's ptid.
7146
f67c0c91
SDJ
71472018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7148 Sergio Durigan Junior <sergiodj@redhat.com>
7149 Pedro Alves <palves@redhat.com>
7150
7151 * infcmd.c (kill_command): Print message when inferior has
7152 been killed.
7153 * inferior.c (print_inferior_events): Remove 'static'. Set as
7154 '1'.
7155 (add_inferior): Improve message printed when
7156 'print_inferior_events' is on.
7157 (exit_inferior): Remove message printed when
7158 'print_inferior_events' is on.
7159 (detach_inferior): Improve message printed when
7160 'print_inferior_events' is on.
7161 (initialize_inferiors): Use 'add_inferior_silent' to set
7162 'current_inferior_'.
7163 * inferior.h (print_inferior_events): Declare here as
7164 'extern'.
7165 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
7166 '[Detaching...]' messages when 'print_inferior_events' is on.
7167 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
7168 as prefix/suffix for messages. Remove periods. Fix erroneous
7169 'Detaching after fork from child...', replace it by '... from
7170 parent...'.
7171 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
7172 prefix/suffix when printing 'Detaching...' messages. Print
7173 them when 'print_inferior_events' is on.
7174 * remote.c (remote_detach_1): Print message when detaching
7175 from inferior and '!is_fork_parent'.
7176
e427af18
TT
71772018-04-24 Tom Tromey <tom@tromey.com>
7178
7179 * cli-out.h: Reindent.
7180
05b1d8d6
TT
71812018-04-24 Tom Tromey <tom@tromey.com>
7182
7183 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
7184 (cli_ui_out::do_field_string): Use fputs_filtered.
7185 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
7186
a95c7dab
TT
71872018-04-23 Tom Tromey <tom@tromey.com>
7188
7189 * guile/scm-frame.c (gdbscm_frame_read_var): Use
7190 gdb::unique_xmalloc_ptr.
7191
458412c3
TT
71922018-04-23 Tom Tromey <tom@tromey.com>
7193
7194 * configure: Rebuild.
7195
db86b02b
RS
71962018-04-22 Rajendra SY <rajendra.sy@gmail.com>
7197
7198 PR gdb/23095
7199 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
7200 prepare_for_testing. Set normal_bp to r_debug_state if target
7201 is bsd.
7202
00aecdcf
PA
72032018-04-21 Pedro Alves <palves@redhat.com>
7204 Rajendra SY <rajendra.sy@gmail.com>
7205
7206 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
7207 * remote.c (extended_remote_attach): In all-stop mode, mark the
7208 thread as executing.
7209
224608c3
PW
72102018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7211
7212 * thread.c (thread_apply_all_command): Fix comment.
7213 (thread_command): Fix comment.
7214
3b74854b
AH
72152018-04-10 Alan Hayward <alan.hayward@arm.com>
7216
7217 * common/tdesc.h (tdesc_create_feature): Remove xml filename
7218 parameter.
7219 * features/aarch64-core.c (create_feature_aarch64_core):
7220 Regenerate.
7221 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
7222 Likewise.
7223 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
7224 Likewise.
7225 * features/i386/32bit-avx512.c
7226 (create_feature_i386_32bit_avx512): Likewise.
7227 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
7228 Likewise.
7229 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
7230 Likewise.
7231 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
7232 Likewise.
7233 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
7234 Likewise.
7235 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
7236 Likewise.
7237 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
7238 Likewise.
7239 * features/i386/64bit-avx512.c
7240 (create_feature_i386_64bit_avx512): Likewise.
7241 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
7242 Likewise.
7243 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
7244 Likewise.
7245 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
7246 Likewise.
7247 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
7248 Likewise.
7249 * features/i386/64bit-segments.c
7250 (create_feature_i386_64bit_segments): Likewise.
7251 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
7252 Likewise.
7253 * features/i386/x32-core.c
7254 (create_feature_i386_x32_core): Likewise.
7255 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
7256 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
7257 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
7258 * target-descriptions.c: In generated code, don't pass xml
7259 filename.
7260
e98577a9
AH
72612018-04-18 Alan Hayward <alan.hayward@arm.com>
7262
7263 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
7264 (print_xml_feature::visit_post): Likewise.
7265 (print_xml_feature::visit): Likewise.
7266 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
7267 (print_xml_feature): Add new class.
7268 * regformats/regdat.sh: Null xmltarget on feature targets.
7269 * target-descriptions.c (struct target_desc): Add xmltarget.
7270 (maintenance_check_tdesc_xml_convert): Add unittest function.
7271 (tdesc_get_features_xml): Add function to get xml.
7272 (maintenance_check_xml_descriptions): Test xml generation.
7273 * xml-tdesc.c (string_read_description_xml): Add function.
7274 * xml-tdesc.h (string_read_description_xml): Add declaration.
7275
ad7fc756
AH
72762018-04-18 Alan Hayward <alan.hayward@arm.com>
7277
7278 * features/Makefile: Add feature marker to targets with new style
7279 target descriptions.
7280 * regformats/aarch64.dat: Regenerate.
7281 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
7282 * regformats/i386/amd64-avx-linux.dat: Likewise.
7283 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
7284 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
7285 * regformats/i386/amd64-linux.dat: Likewise.
7286 * regformats/i386/amd64-mpx-linux.dat: Likewise.
7287 * regformats/i386/amd64.dat: Likewise.
7288 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
7289 * regformats/i386/i386-avx-linux.dat: Likewise.
7290 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
7291 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
7292 * regformats/i386/i386-linux.dat: Likewise.
7293 * regformats/i386/i386-mmx-linux.dat: Likewise.
7294 * regformats/i386/i386-mpx-linux.dat: Likewise.
7295 * regformats/i386/i386.dat: Likewise.
7296 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
7297 * regformats/i386/x32-avx-linux.dat: Likewise.
7298 * regformats/i386/x32-linux.dat: Likewise.
7299 * regformats/tic6x-c62x-linux.dat: Likewise.
7300 * regformats/tic6x-c64x-linux.dat: Likewise.
7301 * regformats/tic6x-c64xp-linux.dat: Likewise.
7302 * regformats/regdat.sh: Parse feature marker.
7303
d278f585
AH
73042018-04-18 Alan Hayward <alan.hayward@arm.com>
7305
7306 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
7307 (tdesc_osabi_name): Likewise.
7308 * target-descriptions.c (tdesc_architecture_name): Add new
7309 function.
7310 (tdesc_osabi_name): Likewise.
7311
eee8a18d
AH
73122018-04-18 Alan Hayward <alan.hayward@arm.com>
7313
7314 * common/tdesc.c (tdesc_predefined_type): Move to here.
7315 (tdesc_named_type): Likewise.
7316 (tdesc_create_vector): Likewise.
7317 (tdesc_create_struct): Likewise.
7318 (tdesc_set_struct_size): Likewise.
7319 (tdesc_create_union): Likewise.
7320 (tdesc_create_flags): Likewise.
7321 (tdesc_create_enum): Likewise.
7322 (tdesc_add_field): Likewise.
7323 (tdesc_add_typed_bitfield): Likewise.
7324 (tdesc_add_bitfield): Likewise.
7325 (tdesc_add_flag): Likewise.
7326 (tdesc_add_enum_value): Likewise.
7327 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
7328 (struct tdesc_type_vector): Likewise.
7329 (struct tdesc_type_field): Likewise.
7330 (struct tdesc_type_with_fields): Likewise.
7331 (tdesc_create_enum): Add declaration.
7332 (tdesc_add_typed_bitfield): Likewise.
7333 (tdesc_add_enum_value): Likewise.
7334 * target-descriptions.c (tdesc_type_field): Move from here.
7335 (tdesc_type_builtin): Likewise.
7336 (tdesc_type_vector): Likewise.
7337 (tdesc_type_with_fields): Likewise.
7338 (tdesc_predefined_types): Likewise.
7339 (tdesc_named_type): Likewise.
7340 (tdesc_create_vector): Likewise.
7341 (tdesc_create_struct): Likewise.
7342 (tdesc_set_struct_size): Likewise.
7343 (tdesc_create_union): Likewise.
7344 (tdesc_create_flags): Likewise.
7345 (tdesc_create_enum): Likewise.
7346 (tdesc_add_field): Likewise.
7347 (tdesc_add_typed_bitfield): Likewise.
7348 (tdesc_add_bitfield): Likewise.
7349 (tdesc_add_flag): Likewise.
7350 (tdesc_add_enum_value): Likewise.
7351 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
7352 (tdesc_add_typed_bitfield): Likewise.
7353 (tdesc_add_enum_value): Likewise.
7354
82ec9bc7
AH
73552018-04-18 Alan Hayward <alan.hayward@arm.com>
7356
7357 * common/tdesc.c (tdesc_feature::accept): Move to here.
7358 (tdesc_feature::operator==): Likewise.
7359 (tdesc_create_reg): Likewise.
7360 * common/tdesc.h (tdesc_type_kind): Likewise.
7361 (struct tdesc_type): Likewise.
7362 (struct tdesc_feature): Likewise.
7363 * regformats/regdat.sh: Create a feature.
7364 * target-descriptions.c (tdesc_type_kind): Move from here.
7365 (tdesc_type): Likewise.
7366 (tdesc_type_up): Likewise.
7367 (tdesc_feature): Likewise.
7368 (tdesc_create_reg): Likewise.
7369
ea3e7d71
AH
73702018-04-18 Alan Hayward <alan.hayward@arm.com>
7371
7372 * Makefile.in: Add arch/tdesc.c
7373 * common/tdesc.c: New file.
7374 * common/tdesc.h (tdesc_element_visitor): Move to here.
7375 (tdesc_element): Likewise.
7376 (tdesc_reg): Likewise.
7377 (tdesc_reg_up): Likewise.
7378 * regformats/regdef.h (reg): Add offset to constructors.
7379 * target-descriptions.c (tdesc_element_visitor): Move from here.
7380 (tdesc_element): Likewise.
7381 (tdesc_reg): Likewise.
7382 (tdesc_reg_up): Likewise.
7383
bedda9ac
TT
73842018-04-17 Tom Tromey <tom@tromey.com>
7385
7386 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
7387 discriminant field.
7388
a037790e
TT
73892018-04-17 Tom Tromey <tom@tromey.com>
7390
7391 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
7392
c7dcbf88
AA
73932018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7394
7395 * symtab.c (print_symbol_info): Skip printing filename and line
7396 number when `last' is NULL.
7397 (symtab_symbol_info): Use empty string instead of NULL for first
7398 invocation of print_symbol_info.
7399 (rbreak_command): Pass NULL to `last' parameter of
7400 print_symbol_info.
7401
07d28c77
SM
74022018-04-16 Simon Marchi <simon.marchi@ericsson.com>
7403
7404 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
7405 instead of nullptr.
7406
8a3de5e1
PA
74072018-04-16 Pedro Alves <palves@redhat.com>
7408
7409 * MAINTAINERS (sh): Remove.
7410 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
7411 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
7412 (ALLDEPFILES): Remove sh64-tdep.c.
7413 * NEWS: Mentions that support for SH-5/SH64 is removed.
7414 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
7415 (sh*-*-openbsd*): Ditto.
7416 (sh64-*-elf*): Remove.
7417 (sh*): Remove.
7418 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
7419 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
7420 * sh-tdep.c: No longer include "sh64-tdep.h".
7421 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
7422 * sh64-tdep.c, sh64-tdep.h: Remove files.
7423
a2a79012
PA
74242018-04-16 Pedro Alves <palves@redhat.com>
7425
7426 * MAINTAINERS: Remove m88k.
7427 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
7428 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
7429 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
7430 * NEWS: Mention that support for m88k was removed.
7431 * configure.host (m88*-*-*): Remove support.
7432 * configure.nat (m88k-*-*): Remove support.
7433 * configure.tgt (m88*-*-openbsd*): Remove.
7434 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
7435
eda4efb1
SM
74362018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
7437
7438 * configure.tgt (x86_tobjs): New variable.
7439 (amd64_tobjs, i386_tobjs): Use it.
7440
b744723f
AA
74412018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7442
7443 * symtab.c (print_symbol_info): Precede the symbol definition by
7444 the line number when available.
7445 * NEWS: Advertise this enhancement.
7446
4a4495d6
MM
74472018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7448
7449 * NEWS (New options): announce set/show record btrace cpu.
7450 * btrace.c: Include record-btrace.h.
7451 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
7452 the vendor is unknown.
7453 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
7454 Maybe overwrite the btrace configuration's cpu.
7455 (btrace_compute_ftrace): Add cpu parameter. Update callers.
7456 (btrace_fetch): Add cpu parameter. Update callers.
7457 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
7458 Maybe overwrite the btrace configuration's cpu. Skip enabling
7459 errata workarounds if the vendor is unknown.
7460 * python/py-record-btrace.c: Include record-btrace.h.
7461 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
7462 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
7463 * record-btrace.c (record_btrace_cpu_state_kind): New.
7464 (record_btrace_cpu): New.
7465 (set_record_btrace_cpu_cmdlist): New.
7466 (record_btrace_get_cpu): New.
7467 (require_btrace_thread, record_btrace_info)
7468 (record_btrace_resume_thread): Call record_btrace_get_cpu.
7469 (cmd_set_record_btrace_cpu_none): New.
7470 (cmd_set_record_btrace_cpu_auto): New.
7471 (cmd_set_record_btrace_cpu): New.
7472 (cmd_show_record_btrace_cpu): New.
7473 (_initialize_record_btrace): Initialize set/show record btrace cpu
7474 commands.
7475 * record-btrace.h (record_btrace_get_cpu): New.
7476
69f90c75
MM
74772018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7478
7479 * record.c (set_record_command): Fix typo in message.
7480
b85310e1
MM
74812018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7482
7483 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
7484
1d509aa6
MM
74852018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7486
7487 * infrun.c (process_event_stop_test): Call
7488 gdbarch_in_indirect_branch_thunk.
7489 * gdbarch.sh (in_indirect_branch_thunk): New.
7490 * gdbarch.c: Regenerated.
7491 * gdbarch.h: Regenerated.
7492 * x86-tdep.h: New.
7493 * x86-tdep.c: New.
7494 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
7495 (HFILES_NO_SRCDIR): Add x86-tdep.h.
7496 (ALLDEPFILES): Add x86-tdep.c.
7497 * arch-utils.h (default_in_indirect_branch_thunk): New.
7498 * arch-utils.c (default_in_indirect_branch_thunk): New.
7499 * i386-tdep: Include x86-tdep.h.
7500 (i386_in_indirect_branch_thunk): New.
7501 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
7502 function.
7503 * amd64-tdep: Include x86-tdep.h.
7504 (amd64_in_indirect_branch_thunk): New.
7505 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
7506
b4be9bfd
JK
75072018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7508
7509 PR gdb/23053
7510 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
7511 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
7512 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
7513 regression.
7514
53d7df28
TT
75152018-04-12 Tom Tromey <tom@tromey.com>
7516
7517 * rust-lang.c (rust_print_struct_def): Remove univariant code.
7518 (rust_evaluate_subexp): Likewise.
7519
70b33f19
PA
75202018-04-12 Pedro Alves <palves@redhat.com>
7521
7522 * procfs.c (procfs_detach): Make forward declaration's prototype
7523 match definition's protototype.
7524 (proc_get_LDT_entry): Remove stale do_cleanups call.
7525
436411b1
PA
75262018-04-12 Pedro Alves <palves@redhat.com>
7527
7528 * target.h (target_ops::to_has_exited): Delete.
7529 (target_has_exited): Delete.
7530 * target-delegates.c: Regenerate.
7531
20db9c52
PA
75322018-04-11 Pedro Alves <palves@redhat.com>
7533
7534 * target.c (fileio_fh_t::t): Add comment.
7535 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7536 (target_fileio_close): Handle a NULL target.
7537 (invalidate_fileio_fh): New.
7538 (target_close): Call it.
7539 * remote.c (remote_hostio_send_command): No longer check whether
7540 remote_desc is open.
7541
5ff79300
PA
75422018-04-11 Pedro Alves <palves@redhat.com>
7543
7544 * target.c (fileio_fh_t): Make it a named struct instead of a
7545 typedef.
7546 (fileio_fh_t::is_closed): New method.
7547 (DEF_VEC_O (fileio_fh_t)): Remove.
7548 (fileio_fhandles): Now a std::vector.
7549 (is_closed_fileio_fh): Delete.
7550 (acquire_fileio_fd): Adjust. Rename parameters.
7551 (release_fileio_fd): Adjust.
7552 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
7553 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7554 (target_fileio_close): Adjust.
7555
6e22e10d
SM
75562018-04-10 Simon Marchi <simon.marchi@ericsson.com>
7557
7558 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
7559 index.
7560
731f534f
PA
75612018-04-10 Pedro Alves <palves@redhat.com>
7562
7563 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
7564 (scoped_finish_thread_state): New class.
7565 * infcmd.c (run_command_1): Use it instead of finish_thread_state
7566 cleanup.
7567 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
7568 (fetch_inferior_event, normal_stop): Likewise.
7569 * thread.c (finish_thread_state_cleanup): Delete.
7570
d5f4488f
SM
75712018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7572 Pedro Alves <palves@redhat.com>
7573
7574 * value.c: Include "selftest.h" and "common/array-view.h".
7575 (struct range) <operator ==>: New.
7576 (test_ranges_contain): New.
7577 (check_ranges_vector): New.
7578 (test_insert_into_bit_range_vector): New.
7579 (_initialize_values): Register selftests.
7580 * common/array-view.h (operator==, operator!=): New.
7581
b24531ed
SM
75822018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7583
7584 * common/gdb_vecs.h (unordered_remove): Add overload that takes
7585 an iterator.
7586 * inline-frame.c: Include <algorithm>.
7587 (struct inline_state): Add constructor.
7588 (inline_state_s): Remove.
7589 (DEF_VEC_O(inline_state_s)): Remove.
7590 (inline_states): Change type to std::vector.
7591 (find_inline_frame_state): Adjust to std::vector.
7592 (allocate_inline_frame_state): Remove.
7593 (clear_inline_frame_state): Adjust to std::vector.
7594 (skip_inline_frames): Adjust to std::vector.
7595
c252925c
SM
75962018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7597
7598 * tracepoint.h (struct trace_state_variable): Add constructor.
7599 <name>: Change type to std::string.
7600 * tracepoint.c (tsv_s): Remove.
7601 (DEF_VEC_O(tsv_s)): Remove.
7602 (tvariables): Change to std::vector.
7603 (create_trace_state_variable): Adjust to std::vector.
7604 (find_trace_state_variable): Likewise.
7605 (find_trace_state_variable_by_number): Likewise.
7606 (delete_trace_state_variable): Likewise.
7607 (trace_variable_command): Adjust to std::string.
7608 (delete_trace_variable_command): Likewise.
7609 (tvariables_info_1): Adjust to std::vector.
7610 (save_trace_state_variables): Likewise.
7611 (start_tracing): Likewise.
7612 (merge_uploaded_trace_state_variables): Adjust to std::vector
7613 and std::string.
7614 * target.h (struct target_ops)
7615 <to_download_trace_state_variable>: Pass reference to
7616 trace_state_variable.
7617 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
7618 * target-delegates.c: Re-generate.
7619 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
7620 (mi_tsv_deleted): Likewise.
7621 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
7622 * remote.c (remote_download_trace_state_variable): Change
7623 pointer to reference and adjust.
7624 * make-target-delegates (parse_argtypes): Handle references.
7625 (write_function_header): Likewise.
7626 (munge_type): Likewise.
7627
c9638d26
SM
76282018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7629
7630 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7631 string_view-selftests.c.
7632 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
7633 testsuite.
7634 * unittests/basic_string_view/cons/char/1.cc: Likewise.
7635 * unittests/basic_string_view/cons/char/2.cc: Likewise.
7636 * unittests/basic_string_view/cons/char/3.cc: Likewise.
7637 * unittests/basic_string_view/element_access/char/1.cc:
7638 Likewise.
7639 * unittests/basic_string_view/element_access/char/empty.cc:
7640 Likewise.
7641 * unittests/basic_string_view/element_access/char/front_back.cc:
7642 Likewise.
7643 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
7644 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
7645 Likewise.
7646 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
7647 Likewise.
7648 * unittests/basic_string_view/modifiers/swap/char/1.cc:
7649 Likewise.
7650 * unittests/basic_string_view/operations/compare/char/1.cc:
7651 Likewise.
7652 * unittests/basic_string_view/operations/compare/char/13650.cc:
7653 Likewise.
7654 * unittests/basic_string_view/operations/copy/char/1.cc:
7655 Likewise.
7656 * unittests/basic_string_view/operations/data/char/1.cc:
7657 Likewise.
7658 * unittests/basic_string_view/operations/find/char/1.cc:
7659 Likewise.
7660 * unittests/basic_string_view/operations/find/char/2.cc:
7661 Likewise.
7662 * unittests/basic_string_view/operations/find/char/3.cc:
7663 Likewise.
7664 * unittests/basic_string_view/operations/find/char/4.cc:
7665 Likewise.
7666 * unittests/basic_string_view/operations/rfind/char/1.cc:
7667 Likewise.
7668 * unittests/basic_string_view/operations/rfind/char/2.cc:
7669 Likewise.
7670 * unittests/basic_string_view/operations/rfind/char/3.cc:
7671 Likewise.
7672 * unittests/basic_string_view/operations/substr/char/1.cc:
7673 Likewise.
7674 * unittests/basic_string_view/operators/char/2.cc: Likewise.
7675 * unittests/string_view-selftests.c: New file.
7676
fdc11678
SM
76772018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7678
7679 * unittests/basic_string_view/capacity/1.cc: New file.
7680 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
7681 * unittests/basic_string_view/cons/char/1.cc: New file.
7682 * unittests/basic_string_view/cons/char/2.cc: New file.
7683 * unittests/basic_string_view/cons/char/3.cc: New file.
7684 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
7685 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
7686 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
7687 * unittests/basic_string_view/element_access/char/1.cc: New file.
7688 * unittests/basic_string_view/element_access/char/2.cc: New file.
7689 * unittests/basic_string_view/element_access/char/empty.cc: New file.
7690 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
7691 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
7692 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
7693 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
7694 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
7695 * unittests/basic_string_view/include.cc: New file.
7696 * unittests/basic_string_view/inserters/char/1.cc: New file.
7697 * unittests/basic_string_view/inserters/char/2.cc: New file.
7698 * unittests/basic_string_view/inserters/char/3.cc: New file.
7699 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
7700 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
7701 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
7702 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
7703 * unittests/basic_string_view/literals/types.cc: New file.
7704 * unittests/basic_string_view/literals/values.cc: New file.
7705 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
7706 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
7707 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
7708 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
7709 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
7710 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
7711 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
7712 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
7713 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
7714 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
7715 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
7716 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
7717 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
7718 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
7719 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
7720 * unittests/basic_string_view/operations/data/char/1.cc: New file.
7721 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
7722 * unittests/basic_string_view/operations/find/char/1.cc: New file.
7723 * unittests/basic_string_view/operations/find/char/2.cc: New file.
7724 * unittests/basic_string_view/operations/find/char/3.cc: New file.
7725 * unittests/basic_string_view/operations/find/char/4.cc: New file.
7726 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
7727 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
7728 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
7729 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
7730 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
7731 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
7732 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
7733 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
7734 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
7735 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
7736 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
7737 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
7738 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
7739 * unittests/basic_string_view/operators/char/2.cc: New file.
7740 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
7741 * unittests/basic_string_view/range_access/char/1.cc: New file.
7742 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
7743 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
7744 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
7745 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
7746 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
7747 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
7748 * unittests/basic_string_view/requirements/typedefs.cc: New file.
7749 * unittests/basic_string_view/typedefs.cc: New file.
7750 * unittests/basic_string_view/types/1.cc: New file.
7751
8345c4a2
SM
77522018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7753
7754 * common/gdb_string_view.h: Remove libstdc++ implementation
7755 details, adjust to gdb reality.
7756 * common/gdb_string_view.tcc: Likewise.
7757 * cli/cli-script.c (struct string_view): Remove.
7758 (user_args) <m_args>: Change element type to gdb::string_view.
7759 (user_args::insert_args): Adjust.
7760
7adcdf08
SM
77612018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7762
7763 * common/gdb_string_view.h: New file.
7764 * common/gdb_string_view.tcc: New file.
7765
41260ac2
SM
77662018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7767
7768 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
7769 * configure: Re-generate.
7770
0bee6dd4
PA
77712018-04-09 Pedro Alves <palves@redhat.com>
7772
7773 * gdbarch.sh: Include "observable.h" instead of "observer.h".
7774 (set_target_gdbarch): Call
7775 gdb::observers::architecture_changed.notify instead of
7776 observer_notify_architecture_changed.
7777
6f14adc5
SM
77782018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7779
7780 * tracepoint.c (struct current_traceframe_cleanup): Remove.
7781 (do_restore_current_traceframe_cleanup): Remove.
7782 (restore_current_traceframe_cleanup_dtor): Remove.
7783 (make_cleanup_restore_current_traceframe): Remove.
7784 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
7785 New.
7786 * tracepoint.h (struct scoped_restore_current_traceframe): New.
7787 * infrun.c (fetch_inferior_event): Use
7788 scoped_restore_current_traceframe.
7789
b2bdb8cf
SM
77902018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7791
7792 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
7793 Remove.
7794 <n_allocated_type_units>: Remove.
7795 <all_type_units>: Change to std::vector.
7796 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
7797 to std::vector change.
7798 (dwarf2_per_objfile::get_cutu): Likewise.
7799 (dwarf2_per_objfile::get_tu): Likewise.
7800 (create_signatured_type_table_from_index): Likewise.
7801 (create_signatured_type_table_from_debug_names): Likewise.
7802 (dw2_symtab_iter_next): Likewise.
7803 (dw2_print_stats): Likewise.
7804 (dw2_expand_all_symtabs): Likewise.
7805 (dw2_expand_marked_cus): Likewise.
7806 (dw2_debug_names_iterator::next): Likewise.
7807 (dwarf2_initialize_objfile): Likewise.
7808 (add_signatured_type_cu_to_table): Likewise.
7809 (create_all_type_units): Likewise.
7810 (add_type_unit): Likewise.
7811 (struct tu_abbrev_offset): Add constructor.
7812 (build_type_psymtabs_1): Adjust to std::vector change.
7813 (print_tu_stats): Likewise.
7814 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
7815 (write_debug_names): Likewise.
7816
b76e467d
SM
78172018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7818
7819 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
7820 Make an std::vector.
7821 <n_comp_units>: Remove.
7822 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
7823 to std::vector change.
7824 (dwarf2_per_objfile::get_cutu): Likewise.
7825 (dwarf2_per_objfile::get_cu): Likewise.
7826 (create_cus_from_index): Likewise.
7827 (create_addrmap_from_index): Likewise.
7828 (create_addrmap_from_aranges): Likewise.
7829 (dwarf2_read_index): Likewise.
7830 (dw2_find_last_source_symtab): Likewise.
7831 (dw2_map_symtabs_matching_filename): Likewise.
7832 (dw2_symtab_iter_next): Likewise.
7833 (dw2_print_stats): Likewise.
7834 (dw2_expand_all_symtabs): Likewise.
7835 (dw2_expand_symtabs_with_fullname): Likewise.
7836 (dw2_expand_marked_cus): Likewise.
7837 (dw2_map_symbol_filenames): Likewise.
7838 (create_cus_from_debug_names): Likewise.
7839 (dwarf2_read_debug_names): Likewise.
7840 (dw2_debug_names_iterator::next): Likewise.
7841 (dwarf2_initialize_objfile): Likewise.
7842 (set_partial_user): Likewise.
7843 (dwarf2_build_psymtabs_hard): Likewise.
7844 (read_comp_units_from_section): Remove arguments, adjust to
7845 std::vector change.
7846 (create_all_comp_units): Adjust to std::vector and
7847 read_comp_units_from_section changes.
7848 (dwarf2_find_containing_comp_unit): Adjust to std::vector
7849 change.
7850 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
7851 (psyms_seen_size): Likewise.
7852 (write_gdbindex): Likewise.
7853 (write_debug_names): Likewise.
7854
12359b5e
SM
78552018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7856
7857 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
7858 with dwarf2_per_objfile.
7859 (create_cus_from_index): Likewise.
7860 (create_signatured_type_table_from_index): Likewise.
7861 (dwarf2_read_index): Likewise.
7862 (dwarf2_initialize_objfile): Likewise.
7863 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
7864 per_cu rather than get_dwarf2_per_objfile.
7865
ff4c9fec
SM
78662018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7867
7868 * dwarf2read.h (struct signatured_type): Forward declare.
7869 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
7870 New methods.
7871 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
7872 (dw2_get_cutu): ...this.
7873 (dwarf2_per_objfile::get_cu): Rename from...
7874 (dw2_get_cu): ...this.
7875 (dwarf2_per_objfile::get_tu): New.
7876 (create_addrmap_from_index): Adjust.
7877 (create_addrmap_from_aranges): Adjust.
7878 (dw2_find_last_source_symtab): Adjust.
7879 (dw2_map_symtabs_matching_filename): Adjust.
7880 (dw2_symtab_iter_next): Adjust.
7881 (dw2_print_stats): Adjust.
7882 (dw2_expand_all_symtabs): Adjust.
7883 (dw2_expand_symtabs_with_fullname): Adjust.
7884 (dw2_expand_marked_cus): Adjust.
7885 (dw_expand_symtabs_matching_file_matcher): Adjust.
7886 (dw2_map_symbol_filenames): Adjust.
7887 (dw2_debug_names_iterator::next): Adjust.
7888 (dwarf2_initialize_objfile): Adjust.
7889 (set_partial_user): Adjust.
7890 (dwarf2_build_psymtabs_hard): Adjust.
7891
5ca3fcb6
SM
78922018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7893
7894 * dwarf2read.c (create_signatured_type_table_from_debug_names):
7895 Remove unused variables.
7896 (dw2_map_symtabs_matching_filename): Likewise.
7897 (dwarf2_record_block_ranges): Likewise.
7898 (dwarf2_read_addr_index): Likewise.
7899 (follow_die_offset): Likewise.
7900
b2e586e8
SM
79012018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7902
7903 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
7904 to symbol_file_add_main.
7905
7c4e78cf
SM
79062018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7907
7908 PR mi/22299
7909 * mi/mi-console.c (do_fputc_async_safe): New.
7910 (mi_console_file::write_async_safe): New.
7911 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
7912 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
7913 New.
7914 * ui-file.c (ui_file::putstrn): Adjust call to
7915 fputstrn_unfiltered.
7916 * utils.c (printchar): Replace do_fputs and do_fprintf
7917 parameters by do_fputc.
7918 (fputstr_filtered): Adjust call to printchar.
7919 (fputstr_unfiltered): Likewise.
7920 (fputstrn_filtered): Likewise.
7921 (fputstrn_unfiltered): Add do_fputc parameter, pass to
7922 printchar.
7923 * utils.h (do_fputc_ftype): New typedef.
7924 (fputstrn_unfiltered): Add do_fputc parameter.
7925
5dc026d3
SM
79262018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7927
7928 * regformats/i386/i386-avx.dat: Remove.
7929
c912f608
SM
79302018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7931
7932 PR gdb/22979
7933 * amd64-tdep.c (amd64_none_init_abi): New function.
7934 (amd64_x32_none_init_abi): New function.
7935 (_initialize_amd64_tdep): Register handlers for x86-64 and
7936 x64_32 with GDB_OSABI_NONE.
7937 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
7938 GDB_OSABI_NONE osabi.
7939
26540402
SM
79402018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7941
7942 PR gdb/22980
7943 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
7944 GDB_OSABI_NONE.
7945 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
7946 * osabi.c (gdb_osabi_names): Add "unknown" entry.
7947
9018be22
SM
79482018-04-07 Simon Marchi <simon.marchi@ericsson.com>
7949
7950 * common/byte-vector.h (char_vector): New type.
7951 * target.h (target_read_alloc): Return
7952 gdb::optional<byte_vector>.
7953 (target_read_stralloc): Return gdb::optional<char_vector>.
7954 (target_get_osdata): Return gdb::optional<char_vector>.
7955 * target.c (target_read_alloc_1): Templatize. Replacement
7956 manual memory management with vector.
7957 (target_read_alloc): Change return type, adjust.
7958 (target_read_stralloc): Change return type, adjust.
7959 (target_get_osdata): Change return type, adjust.
7960 * auxv.c (struct auxv_info) <length>: Remove.
7961 <data>: Change type to gdb::optional<byte_vector>.
7962 (auxv_inferior_data_cleanup): Free auxv_info with delete.
7963 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
7964 (target_auxv_search): Adjust.
7965 (fprint_target_auxv): Adjust.
7966 * avr-tdep.c (avr_io_reg_read_command): Adjust.
7967 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
7968 (linux_make_corefile_notes): Adjust.
7969 * osdata.c (get_osdata): Adjust.
7970 * remote.c (remote_get_threads_with_qxfer): Adjust.
7971 (remote_memory_map): Adjust.
7972 (remote_traceframe_info): Adjust.
7973 (btrace_read_config): Adjust.
7974 (remote_read_btrace): Adjust.
7975 (remote_pid_to_exec_file): Adjust.
7976 * solib-aix.c (solib_aix_get_library_list): Adjust.
7977 * solib-dsbt.c (decode_loadmap): Don't free buf.
7978 (dsbt_get_initial_loadmaps): Adjust.
7979 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
7980 * solib-target.c (solib_target_current_sos): Adjust.
7981 * tracepoint.c (sdata_make_value): Adjust.
7982 * xml-support.c (xinclude_start_include): Adjust.
7983 (xml_fetch_content_from_file): Adjust.
7984 * xml-support.h (xml_fetch_another): Change return type.
7985 (xml_fetch_content_from_file): Change return type.
7986 * xml-syscall.c (xml_init_syscalls_info): Adjust.
7987 * xml-tdesc.c (file_read_description_xml): Adjust.
7988 (fetch_available_features_from_target): Change return type.
7989 (target_fetch_description_xml): Adjust.
7990 (target_read_description_xml): Adjust.
7991
14c88955
TT
79922018-04-06 Tom Tromey <tom@tromey.com>
7993
7994 * value.c (~value): Update.
7995 (struct value) <contents>: Now unique_xmalloc_ptr.
7996 (value_contents_bits_eq, allocate_value_contents)
7997 (value_contents_raw, value_contents_all_raw)
7998 (value_contents_for_printing, value_contents_for_printing_const)
7999 (set_value_enclosing_type): Update.
8000
0c7e6dd8
TT
80012018-04-06 Tom Tromey <tom@tromey.com>
8002
8003 * value.c (range_s): Remove typedef, VEC.
8004 (struct range): Add operator<.
8005 (range_lessthan): Remove.
8006 (ranges_contain): Change type.
8007 (~value): Update.
8008 (struct value) <unavailable, optimized_out>: Now std::vector.
8009 (value_entirely_available)
8010 (value_entirely_covered_by_range_vector)
8011 (value_entirely_unavailable, value_entirely_optimized_out):
8012 Update.
8013 (insert_into_bit_range_vector): Change argument type.
8014 (find_first_range_overlap): Likewise.
8015 (struct ranges_and_idx, value_contents_bits_eq)
8016 (require_not_optimized_out, require_available): Update.
8017 (ranges_copy_adjusted): Change argument types.
8018 (value_optimized_out, value_copy, value_fetch_lazy): Update.
8019
2c8331b9
TT
80202018-04-06 Tom Tromey <tom@tromey.com>
8021
8022 * value.c (~value): Update.
8023 (struct value) <parent>: Now a value_ref_ptr.
8024 (value_parent, set_value_parent, value_address, value_copy):
8025 Update.
8026
466ce3ae
TT
80272018-04-06 Tom Tromey <tom@tromey.com>
8028
8029 * value.c (struct value): Add constructor, destructor, and member
8030 initializers.
8031 (allocate_value_lazy, value_decref): Update.
8032
062d818d
TT
80332018-04-06 Tom Tromey <tom@tromey.com>
8034
8035 * value.c (struct value) <released, next>: Remove.
8036 (all_values): Now a std::vector.
8037 (allocate_value_lazy): Update.
8038 (value_next): Remove.
8039 (value_mark, value_free_to_mark, release_value)
8040 (value_release_to_mark): Update.
8041
a6535de1
TT
80422018-04-06 Tom Tromey <tom@tromey.com>
8043
8044 * value.h (fetch_subexp_value, value_release_to_mark): Update.
8045 (free_value_chain): Remove.
8046 * value.c (free_value_chain): Remove.
8047 (value_release_to_mark): Return a std::vector.
8048 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
8049 std::vector.
8050 (check_condition): Update.
8051 * eval.c (fetch_subexp_value): Change "val_chain" to a
8052 std::vector.
8053 * breakpoint.c (update_watchpoint): Update.
8054 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
8055
b5621201
TT
80562018-04-06 Tom Tromey <tom@tromey.com>
8057
8058 * value.h (free_all_values): Remove.
8059 * value.c (free_all_values): Remove.
8060
4d0266a0
TT
80612018-04-06 Tom Tromey <tom@tromey.com>
8062
8063 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
8064 (value_history_chain, value_history_count): Remove.
8065 (value_history): New global.
8066 (record_latest_value, access_value_history, show_values)
8067 (preserve_values): Update.
8068
b4d61099
TT
80692018-04-06 Tom Tromey <tom@tromey.com>
8070
8071 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
8072 * varobj.c (varobj_set_display_format, varobj_set_value)
8073 (install_default_visualizer, construct_visualizer)
8074 (install_new_value, ~varobj, varobj_get_value_type)
8075 (my_value_of_variable, varobj_editable_p): Update.
8076 * c-varobj.c (c_describe_child, c_value_of_variable)
8077 (cplus_number_of_children, cplus_describe_child): Update.
8078 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
8079 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
8080 (ada_value_of_variable, ada_value_is_changeable_p): Update.
8081
9b558729
TT
80822018-04-06 Tom Tromey <tom@tromey.com>
8083
8084 * printcmd.c (last_examine_address): Change type to
8085 value_ref_ptr.
8086 (do_examine, x_command): Update.
8087
850645cf
TT
80882018-04-06 Tom Tromey <tom@tromey.com>
8089
8090 * value.c (release_value): Update.
8091 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
8092 (struct bpstats) <val>: Now a value_ref_ptr.
8093 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
8094 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
8095 (~watchpoint, print_it_watchpoint, watch_command_1)
8096 (invalidate_bp_value_on_memory_change): Update.
8097
22bc8444
TT
80982018-04-06 Tom Tromey <tom@tromey.com>
8099
8100 * varobj.c (varobj_clear_saved_item)
8101 (update_dynamic_varobj_children, install_new_value, ~varobj):
8102 Update.
8103 * value.h (value_incref): Move declaration earlier.
8104 (value_decref): Rename from value_free.
8105 (struct value_ref_policy): New.
8106 (value_ref_ptr): New typedef.
8107 (struct value_deleter): Remove.
8108 (gdb_value_up): Remove typedef.
8109 (release_value): Change return type.
8110 (release_value_or_incref): Remove.
8111 * value.c (set_value_parent): Update.
8112 (value_incref): Change return type.
8113 (value_decref): Rename from value_free.
8114 (value_free_to_mark, free_all_values, free_value_chain): Update.
8115 (release_value): Return value_ref_ptr.
8116 (release_value_or_incref): Remove.
8117 (record_latest_value, set_internalvar, clear_internalvar):
8118 Update.
8119 * stack.c (info_frame_command): Don't call value_free.
8120 * python/py-value.c (valpy_dealloc, valpy_new)
8121 (value_to_value_object): Update.
8122 * printcmd.c (do_examine): Update.
8123 * opencl-lang.c (lval_func_free_closure): Update.
8124 * mi/mi-main.c (register_changed_p): Don't call value_free.
8125 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
8126 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
8127 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
8128 value_free.
8129 * guile/scm-value.c (vlscm_free_value_smob)
8130 (vlscm_scm_from_value): Update.
8131 * frame.c (frame_register_unwind, frame_unwind_register_signed)
8132 (frame_unwind_register_unsigned, get_frame_register_bytes)
8133 (put_frame_register_bytes): Don't call value_free.
8134 * findvar.c (address_from_register): Don't call value_free.
8135 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
8136 * dwarf2loc.c (entry_data_value_free_closure)
8137 (value_of_dwarf_reg_entry, free_pieced_value_closure)
8138 (dwarf2_evaluate_loc_desc_full): Update.
8139 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
8140 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
8141 (~watchpoint, watch_command_1)
8142 (invalidate_bp_value_on_memory_change): Update.
8143 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
8144
7f8a5d38
SM
81452018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
8146
8147 PR gdb/23022
8148 * warning.m4: Add -Wno-error=deprecated-register.
8149 * configure: Re-generate.
8150
8a76bd3b
TT
81512018-04-05 Tom Tromey <tom@tromey.com>
8152
8153 * linespec.h: Remove include of "vec.h".
8154
8e8d776e
TT
81552018-04-05 Tom Tromey <tom@tromey.com>
8156
8157 * linespec.c (typep): Remove typedef.
8158 (find_methods, find_superclass_methods): Take a std::vector.
8159 (find_method): Use std::vector.
8160
9b2f8581
TT
81612018-04-05 Tom Tromey <tom@tromey.com>
8162
8163 * utils.c (compare_strings): Remove.
8164 * utils.h (compare_strings): Remove.
8165 * objc-lang.h (find_imps): Update.
8166 * objc-lang.c (find_methods): Take a std::vector.
8167 (uniquify_strings, find_imps): Likewise.
8168 * linespec.c (find_methods): Take a std::vector.
8169 (decode_objc): Use std::vector.
8170 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
8171 a std::vector.
8172 (find_method, find_function_symbols): Use std::vector.
8173
459a2e4c
TT
81742018-04-05 Tom Tromey <tom@tromey.com>
8175
8176 * completer.c (completion_tracker::completion_tracker): Remove
8177 cast.
8178 (completion_tracker::discard_completions): Likewise.
8179 * breakpoint.c (ambiguous_names_p): Remove cast.
8180 * ada-lang.c (_initialize_ada_language): Remove cast.
8181 * utils.h (streq): Update.
8182 (streq_hash): Add new declaration.
8183 * utils.c (streq): Return bool.
8184 (streq_hash): New function.
8185
9be2c17a
TT
81862018-04-05 Tom Tromey <tom@tromey.com>
8187
8188 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
8189 Remove a string copy.
8190
f73c6ece
TT
81912018-04-05 Tom Tromey <tom@tromey.com>
8192
8193 * linespec.c (filter_results): Use std::vector.
8194 (decode_line_2, decode_line_full): Update.
8195
53a0f8a2
TT
81962018-04-05 Tom Tromey <tom@tromey.com>
8197
8198 * linespec.c (canonical_to_fullform): Return std::string.
8199 (filter_results): Update.
8200 (struct decode_line_2_item): Add constructor.
8201 <fullform, displayform>: Now std::string.
8202 (decode_line_2_compare_items): Now a std::sort comparator.
8203 (decode_line_2): Update.
8204
a5b5adf5
TT
82052018-04-05 Tom Tromey <tom@tromey.com>
8206
8207 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
8208 (unexpected_linespec_error): Update.
8209 (linespec_parse_basic, parse_linespec): Update.
8210
6a307fc5
TT
82112018-04-05 Tom Tromey <tom@tromey.com>
8212
8213 * linespec.c (linespec_parse_basic): Reindent.
8214
41c1efc6
TT
82152018-04-05 Tom Tromey <tom@tromey.com>
8216
8217 * minsyms.h (iterate_over_minimal_symbols): Update.
8218 * minsyms.c (iterate_over_minimal_symbols): Take a
8219 gdb::function_view.
8220 * linespec.c (struct collect_minsyms): Remove.
8221 (compare_msyms): Now a std::sort comparator.
8222 (add_minsym): Add parameters.
8223 (search_minsyms_for_name): Update. Use std::vector.
8224
c5edbf3d
TT
82252018-04-03 Tom Tromey <tom@tromey.com>
8226
8227 * mipsread.c (read_alphacoff_dynamic_symtab): Use
8228 gdb::byte_vector.
8229
b39efc48
WP
82302018-04-02 Weimin Pan <weimin.pan@oracle.com>
8231
8232 * MAINTAINERS (Write After Approval): Add Weimin Pan.
8233
121ad66c 82342018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
8235
8236 PR gdb/16959
8237 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
8238 printing static type.
8239
09473be8
TT
82402018-04-01 Tom Tromey <tom@tromey.com>
8241
8242 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
8243 (rs6000_xfer_shared_libraries): Update.
8244
ec1f2d91
SM
82452018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8246
8247 * common/gdb_vecs.h (char_ptr): Remove.
8248 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
8249
d8611974
SM
82502018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
8251
8252 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
8253 with std::vector.
8254 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
8255
a18ba4e4
SM
82562018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
8257
8258 * tracepoint.h (struct uploaded_tp): Initialize fields.
8259 <actions, step_actions, cmd_strings>: Change type to
8260 std::vector<char *>.
8261 * tracepoint.c (get_uploaded_tp): Allocate with new.
8262 (free_uploaded_tps): Free with delete.
8263 (parse_tracepoint_definition): Adjust to std::vector change.
8264 * breakpoint.c (read_uploaded_action): Likewise.
8265 (create_tracepoint_from_upload): Likewise.
8266 * ctf.c (ctf_write_uploaded_tp): Likewise.
8267 (SET_ARRAY_FIELD): Likewise.
8268 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
8269
a7961323
TT
82702018-03-30 Tom Tromey <tom@tromey.com>
8271
8272 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
8273 std::unique_ptr.
8274 (svr4_keep_data_in_core): Update.
8275 (svr4_read_so_list): Update.
8276
e83e4e24
TT
82772018-03-30 Tom Tromey <tom@tromey.com>
8278
8279 * windows-nat.c (handle_output_debug_string, handle_exception):
8280 Update.
8281 * target.h (target_read_string): Update.
8282 * target.c (target_read_string): Change "string" to
8283 unique_xmalloc_ptr.
8284 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8285 Update.
8286 * solib-frv.c (frv_current_sos): Update.
8287 * solib-dsbt.c (dsbt_current_sos): Update.
8288 * solib-darwin.c (darwin_current_sos): Update.
8289 * linux-thread-db.c (inferior_has_bug): Update.
8290 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
8291 Update. Remove alloca.
8292 * ada-lang.c (ada_main_name): Update.
8293
263db9a1
TT
82942018-03-30 Tom Tromey <tom@tromey.com>
8295
8296 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
8297 (struct dwo_file_deleter): New.
8298 (dwo_file_up): New typedef.
8299 (open_and_init_dwo_file): Use dwo_file_up.
8300 (free_dwo_file_cleanup): Remove.
8301
5dafb3d1
TT
83022018-03-30 Tom Tromey <tom@tromey.com>
8303
8304 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
8305 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
8306
11ed8cad
TT
83072018-03-30 Tom Tromey <tom@tromey.com>
8308
8309 * dwarf2read.c (class free_cached_comp_units): New class.
8310 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
8311 (free_cached_comp_units): Remove function.
8312
9ae79dac
TT
83132018-03-30 Tom Tromey <tom@tromey.com>
8314
8315 * utils.h (make_cleanup_unpush_target): Remove.
8316 * inf-ptrace.c (struct target_unpusher): New.
8317 (target_unpush_up) New typedef.
8318 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
8319 target_unpush_up.
8320 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
8321
5aa89276
TT
83222018-03-27 Tom Tromey <tom@tromey.com>
8323
8324 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
8325
1dbeed45
TT
83262018-03-27 Pedro Alves <palves@redhat.com>
8327 Tom Tromey <tom@tromey.com>
8328
8329 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
8330 destructor. Now a class.
8331 (gdb_readline_wrapper_cleanup): Remove function.
8332 (gdb_readline_wrapper): Remove cleanups.
8333
c819b2c0
TT
83342018-03-27 Tom Tromey <tom@tromey.com>
8335
8336 * typeprint.h (struct type_print_options) <local_typedefs,
8337 global_typedefs>: Remove "struct" keyword.
8338 (class typedef_hash_table): New class.
8339 (recursively_update_typedef_hash, add_template_parameters)
8340 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
8341 (find_typedef_in_hash): Don't declare.
8342 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
8343 (typedef_hash_table::recursively_update): Rename from
8344 recursively_update_typedef_hash. Now a member.
8345 (typedef_hash_table::add_template_parameters): Rename from
8346 add_template_parameters. Now a member.
8347 (typedef_hash_table::typedef_hash_table): Now a constructor;
8348 rename from create_typedef_hash.
8349 (typedef_hash_table::~typedef_hash_table): Now a destructor;
8350 rename from free_typedef_hash.
8351 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
8352 (do_free_global_table): Remove.
8353 (typedef_hash_table::typedef_hash_table): New constructor; renamed
8354 from copy_type_recursive.
8355 (create_global_typedef_table): Remove.
8356 (typedef_hash_table::find_global_typedef): Now a member of
8357 typedef_hash_table.
8358 (typedef_hash_table::find_typedef): Rename from
8359 find_typedef_in_hash; now a member.
8360 (whatis_exp): Update.
8361 * extension.h (struct ext_lang_type_printers): Add constructor and
8362 destructor.
8363 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
8364 declare.
8365 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
8366 Now a constructor; rename from start_ext_lang_type_printers.
8367 (ext_lang_type_printers): Now a destructor; rename from
8368 free_ext_lang_type_printers.
8369 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
8370 Update.
8371 (c_type_print_base_struct_union): Update. Remove cleanups.
8372
608219fb
TT
83732018-03-27 Tom Tromey <tom@tromey.com>
8374
8375 * dwarf-index-write.c: Include <cmath>.
8376
3fcded8f
JB
83772018-03-27 Joel Brobecker <brobecker@adacore.com>
8378
8379 * NEWS: Add entry describing new "set|show varsize-limit" command.
8380 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
8381 command.
8382 * printcmd.c (_initialize_printcmd): Add "set var" alias of
8383 "set variable".
8384
cd4fb1b2
SM
83852018-03-27 Simon Marchi <simon.marchi@ericsson.com>
8386
8387 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
8388 dwarf-index-write.c
8389 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
8390 * dwarf-index-common.c: New file.
8391 * dwarf-index-common.h: New file.
8392 * dwarf-index-write.c: New file.
8393 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
8394 (struct dwarf2_section_info): Move from here.
8395 (dwarf2_section_info_def): Likewise.
8396 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
8397 (offset_type): Likewise.
8398 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
8399 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
8400 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
8401 (byte_swap): Likewise.
8402 (MAYBE_SWAP): Likewise.
8403 (dwarf2_per_cu_ptr): Likewise.
8404 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
8405 (struct tu_stats): Likewise.
8406 (struct dwarf2_per_objfile): Likewise.
8407 (struct dwarf2_per_cu_data): Likewise.
8408 (struct signatured_type): Likewise.
8409 (sig_type_ptr): Likewise.
8410 (DEF_VEC_P (sig_type_ptr)): Likewise.
8411 (INDEX4_SUFFIX): Likewise.
8412 (INDEX5_SUFFIX): Likewise.
8413 (DEBUG_STR_SUFFIX): Likewise.
8414 (dwarf2_read_section): Make non-static.
8415 (mapped_index_string_hash): Move from here.
8416 (dwarf5_djb_hash): Likewise.
8417 (file_write): Likewise.
8418 (class data_buf): Likewise.
8419 (struct symtab_index_entry): Likewise.
8420 (struct mapped_symtab): Likewise.
8421 (find_slot): Likewise.
8422 (hash_expand): Likewise.
8423 (add_index_entry): Likewise.
8424 (uniquify_cu_indices): Likewise.
8425 (class c_str_view): Likewise.
8426 (class c_str_view_hasher): Likewise.
8427 (class vector_hasher): Likewise.
8428 (write_hash_table): Likewise.
8429 (psym_index_map): Likewise.
8430 (struct addrmap_index_data): Likewise.
8431 (add_address_entry): Likewise.
8432 (add_address_entry_worker): Likewise.
8433 (write_address_map): Likewise.
8434 (symbol_kind): Likewise.
8435 (write_psymbols): Likewise.
8436 (struct signatured_type_index_data): Likewise.
8437 (write_one_signatured_type): Likewise.
8438 (recursively_count_psymbols): Likewise.
8439 (recursively_write_psymbols): Likewise.
8440 (class debug_names): Likewise.
8441 (check_dwarf64_offsets): Likewise.
8442 (psyms_seen_size): Likewise.
8443 (write_gdbindex): Likewise.
8444 (write_debug_names): Likewise.
8445 (assert_file_size): Likewise.
8446 (write_psymtabs_to_index): Likewise.
8447 (save_gdb_index_command): Likewise.
8448 (_initialize_dwarf2_read): Don't register the "save gdb-index"
8449 command.
8450 * dwarf2read.h: New file.
8451
59cc4834
JB
84522018-03-27 Joel Brobecker <brobecker@adacore.com>
8453
8454 PR gdb/22670
8455 * dwarf2read.c (dwarf2_physname): Do not return the demangled
8456 symbol name if the CU's language stores symbol names in linkage
8457 format.
8458 * language.h (struct language_defn)
8459 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
8460 all instances of this struct.
8461
67501539
TT
84622018-03-26 Tom Tromey <tom@tromey.com>
8463
8464 * stack.c (backtrace_command_1): Remove verbose code.
8465
76c939ac
TT
84662018-03-26 Tom Tromey <tom@tromey.com>
8467
8468 * python/py-framefilter.c (py_print_type): Don't catch
8469 exceptions. Return void.
8470 (py_print_value): Likewise.
8471 (py_print_single_arg): Likewise.
8472 (enumerate_args): Don't catch exceptions.
8473 (py_print_args): Likewise.
8474 (py_print_frame): Likewise.
8475 (gdbpy_apply_frame_filter): Catch exceptions here.
8476
9507b29c
TT
84772018-03-26 Tom Tromey <tom@tromey.com>
8478
8479 * stack.c (_initialize_stack): Remove trailing newlines from help
8480 text. Add "Usage" line to "backtrace" help.
8481
eb68e487
TT
84822018-03-26 Tom Tromey <tom@tromey.com>
8483
8484 PR python/16486:
8485 * python/py-framefilter.c (py_print_args): Call wrap_hint.
8486
1f111921
TT
84872018-03-26 Tom Tromey <tom@tromey.com>
8488
8489 * python/py-framefilter.c (py_print_single_arg): Return
8490 EXT_LANG_BT_ERROR from catch.
8491
fb7eb8b5
TT
84922018-03-26 Tom Tromey <tom@tromey.com>
8493
8494 PR backtrace/15584:
8495 * stack.c (backtrace_command_1): Move some code into no-filters
8496 "if".
8497
4ca59a9f
TT
84982018-03-26 Tom Tromey <tom@tromey.com>
8499
8500 * python/py-framefilter.c (throw_quit_or_print_exception): New
8501 function.
8502 (gdbpy_apply_frame_filter): Use it.
8503
92256134
TT
85042018-03-26 Tom Tromey <tom@tromey.com>
8505
8506 PR cli/17716:
8507 * python/py-framefilter.c (py_print_type, py_print_value)
8508 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
8509 RETURN_MASK_ERROR.
8510
7a630bc2
TT
85112018-03-26 Tom Tromey <tom@tromey.com>
8512
8513 * python/py-framefilter.c (enumerate_args): Use
8514 gdb::unique_xmalloc_ptr.
8515
63283d4a
TT
85162018-03-26 Tom Tromey <tom@tromey.com>
8517
8518 * python/py-framefilter.c (py_print_frame): Return
8519 EXT_LANG_BT_OK.
8520 (gdbpy_apply_frame_filter): Update comment.
8521 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
8522 Remove.
8523 <EXT_LANG_BT_NO_FILTERS>: Change value.
8524
978d6c75
TT
85252018-03-26 Tom Tromey <tom@tromey.com>
8526
8527 PR backtrace/15582:
8528 * stack.c (backtrace_command): Parse "hide" argument.
8529 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
8530 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
8531 constant.
8532
1cf7e640
TT
85332018-03-26 Tom Tromey <tom@tromey.com>
8534
8535 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
8536 add "flags".
8537 (backtrace_command): Remove "fulltrace", add "flags".
8538
ea3b0687
TT
85392018-03-26 Tom Tromey <tom@tromey.com>
8540
8541 * stack.c (backtrace_command): Rewrite command line parsing.
8542
9f034d75
SM
85432018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8544
8545 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
8546
ce1459e5
SM
85472018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8548
8549 * filename-seen-cache.h: Add include guard.
8550
4f7ae6f5
KS
85512018-03-26 Keith Seitz <keiths@redhat.com>
8552
8553 * symfile.c (place_section): Remove "struct" from section_addr_info
8554 in comment.
8555 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
8556 "struct" keyword from section_addr_info.
8557
5cd3e386
AH
85582018-03-26 Alan Hayward <alan.hayward@arm.com>
8559
8560 * regformats/regdef.h (reg): Add constructors.
8561
3e5ef9a4
PA
85622018-03-25 Pedro Alves <palves@redhat.com>
8563
8564 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
8565 if then/else bodies in var_func_name extraction.
8566
c88d2fcc 85672018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
8568
8569 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
8570 lookup_minimal_symbol() to find symbol entry.
8571 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
8572
b7fee5a3
KS
85732018-03-23 Keith Seitz <keiths@redhat.com>
8574
8575 PR c++/22968
8576 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
8577 nested type definitions for C++, too.
8578
2cc9b304
TT
85792018-03-23 Tom Tromey <tom@tromey.com>
8580
8581 * machoread.c (struct oso_el): Add a constructor. Don't define as
8582 a typedef.
8583 (macho_register_oso): Remove.
8584 (macho_symtab_read): Take a std::vector.
8585 (oso_el_compare_name): Now a std::sort comparator.
8586 (macho_symfile_read_all_oso): Take a std::vector.
8587 (macho_symfile_read): Use std::vector. Remove cleanups.
8588
a2b2bc12
TT
85892018-03-22 Tom Tromey <tom@tromey.com>
8590
8591 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
8592 (record_full_goto_bookmark): Use std::string.
8593
7a8f494c
PFC
85942018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8595
8596 PR tdep/18295
8597 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
8598 a single mask.
8599
dd6d677f
PFC
86002018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8601
8602 * rs6000-tdep.c (store_insn_p): New function.
8603 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
8604 and cr_reg to their unshifted values. Use store_insn_p to
8605 match LR saves using either R1 or fdata->alloca_reg. Use
8606 store_insn_p to match CR saves. Set alloca_reg_offset
8607 when alloca_reg and framep are set. Remove lr_reg shift
8608 when assigning to fdata->lr_register.
8609
26d6cec4
AA
86102018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
8611
8612 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
8613 command line args instead of emitting a warning.
8614
5d9310c4
SM
86152018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8616
8617 * tracepoint.h (struct static_tracepoint_marker): Initialize
8618 fields, define default constructor, move constructor and move
8619 assignment, disable the rest.
8620 <str_id, extra>: Make std::string.
8621 (release_static_tracepoint_marker): Remove.
8622 (free_current_marker): Remove.
8623 * tracepoint.c (free_current_marker): Remove.
8624 (parse_static_tracepoint_marker_definition): Adjust to
8625 std::string, use new hex2str overload.
8626 (release_static_tracepoint_marker): Remove.
8627 (print_one_static_tracepoint_marker): Get marker by reference
8628 and adjust to std::string.
8629 (info_static_tracepoint_markers_command): Adjust to std::vector
8630 changes
8631 * target.h (static_tracepoint_marker_p): Remove typedef.
8632 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
8633 (struct target_ops) <to_static_tracepoint_marker_at>: Return
8634 bool.
8635 <to_static_tracepoint_markers_by_strid>: Return std::vector.
8636 * target-debug.h
8637 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
8638 (target_debug_print_std_vector_static_tracepoint_marker): New.
8639 (target_debug_print_struct_static_tracepoint_marker_p): Rename
8640 to...
8641 (target_debug_print_static_tracepoint_marker_p): ... this.
8642 * target-delegates.c: Re-generate.
8643 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
8644 Make std::string.
8645 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
8646 (decode_static_tracepoint_spec): Adjust to std::vector.
8647 (tracepoint_print_one_detail): Adjust to std::string.
8648 (strace_marker_decode_location): Adjust to std::string.
8649 (update_static_tracepoint): Adjust to std::string, remove call
8650 to release_static_tracepoint_marker.
8651 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8652 Adjust to std::vector.
8653 * remote.c (remote_static_tracepoint_marker_at): Return bool.
8654 (remote_static_tracepoint_markers_by_strid): Adjust to
8655 std::vector.
8656 * common/rsp-low.h (hex2str): New overload with explicit count
8657 of bytes.
8658 * common/rsp-low.c (hex2str): New overload with explicit count
8659 of bytes.
8660 * unittests/rsp-low-selftests.c (test_hex2str): New function.
8661 (_initialize_rsp_low_selftests): Add test_hex2str test.
8662 * unittests/tracepoint-selftests.c
8663 (test_parse_static_tracepoint_marker_definition): Adjust to
8664 std::string.
8665
62c222b6
SM
86662018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8667
8668 * tracepoint.c (parse_static_tracepoint_marker_definition):
8669 Consider case where the definition is followed by more
8670 definitions.
8671 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8672 tracepoint-selftests.c.
8673 * unittests/tracepoint-selftests.c: New.
8674
7eb2418f
PFC
86752018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8676
8677 * MAINTAINERS (Write After Approval): Add Pedro Franco de
8678 Carvalho.
8679
7cbe16e9
SR
86802018-03-20 Stephen Roberts <stephen.roberts@arm.com>
8681
3d6b3b82 8682 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 8683
4ee89e90
SR
86842018-03-20 Stephen Roberts <stephen.roberts@arm.com>
8685
3d6b3b82 8686 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 8687
92630041
TT
86882018-03-19 Tom Tromey <tom@tromey.com>
8689
8690 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
8691 "IDENT" production.
8692
76727919
TT
86932018-03-19 Pedro Alves <palves@redhat.com>
8694 Tom Tromey <tom@tromey.com>
8695
8696 * unittests/observable-selftests.c: New file.
8697 * common/observable.h: New file.
8698 * observable.h: New file.
8699 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
8700 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
8701 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
8702 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
8703 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
8704 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
8705 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
8706 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
8707 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
8708 python/py-breakpoint.c, python/py-finishbreakpoint.c,
8709 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
8710 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
8711 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
8712 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
8713 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
8714 tui/tui-interp.c, valops.c: Update all users.
8715 * tui/tui-hooks.c (tui_bp_created_observer)
8716 (tui_bp_deleted_observer, tui_bp_modified_observer)
8717 (tui_inferior_exit_observer, tui_before_prompt_observer)
8718 (tui_normal_stop_observer, tui_register_changed_observer):
8719 Remove.
8720 (tui_observers_token): New global.
8721 (attach_or_detach, tui_attach_detach_observers): New functions.
8722 (tui_install_hooks, tui_remove_hooks): Use
8723 tui_attach_detach_observers.
8724 * record-btrace.c (record_btrace_thread_observer): Remove.
8725 (record_btrace_thread_observer_token): New global.
8726 * observer.sh: Remove.
8727 * observer.c: Rename to observable.c.
8728 * observable.c (namespace gdb_observers): Define new objects.
8729 (observer_debug): Move into gdb_observers namespace.
8730 (struct observer, struct observer_list, xalloc_observer_list_node)
8731 (xfree_observer_list_node, generic_observer_attach)
8732 (generic_observer_detach, generic_observer_notify): Remove.
8733 (_initialize_observer): Update.
8734 Don't include observer.inc.
8735 * Makefile.in (generated_files): Remove observer.h, observer.inc.
8736 (clean mostlyclean): Likewise.
8737 (observer.h, observer.inc): Remove targets.
8738 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
8739 (COMMON_SFILES): Use observable.c, not observer.c.
8740 * .gitignore: Remove observer.h.
8741
1cb1f3da
TT
87422018-03-18 Tom Tromey <tom@tromey.com>
8743
8744 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
8745 gdb::def_vector.
8746 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
8747
a06ab151
TT
87482018-03-17 Tom Tromey <tom@tromey.com>
8749
8750 * auto-load.c (auto_load_objfile_script_1): Use std::string.
8751
770623f7
TT
87522018-03-17 Tom Tromey <tom@tromey.com>
8753
8754 * target.c (class scoped_target_fd): New.
8755 (target_fileio_close_cleanup): Remove.
8756 (target_fileio_read_alloc_1): Use scoped_target_fd.
8757
39be3c7e
SM
87582018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
8759
8760 * silent-rules.mk: New.
8761 * Makefile.in: Include silent-rules.mk
8762 (srcdir, VPATH, top_srcdir): Move up.
8763 (COMPILE): Add ECHO_CXX.
8764 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
8765 (init.c): Add ECHO_INIT_C.
8766 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
8767 (version.c): Add ECHO_GEN.
8768 (printcmd.o): Add ECHO_CXX.
8769 (target-float.o): Add ECHO_CXX.
8770 (ada-exp.o): Add ECHO_CXX.
8771 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
8772 (insight$(EXEEXT)): Add ECHO_CXXLD.
8773 * gnulib/configure.ac: Add AM_SILENT_RULES.
8774 * gnulib/aclocal.m4: Re-generate.
8775 * gnulib/configure: Re-generate.
8776 * gnulib/import/Makefile.in: Re-generate.
8777
37e136b1
TT
87782018-03-16 Tom Tromey <tom@tromey.com>
8779
8780 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
8781 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
8782 * utils.c (do_free_section_addr_info)
8783 (make_cleanup_free_section_addr_info): Remove.
8784 * symfile.h (struct other_sections): Add constructor.
8785 (struct section_addr_info): Remove.
8786 (section_addr_info): New typedef.
8787 (struct sym_fns) <sym_offsets>: Change type of parameter.
8788 (build_section_addr_info_from_objfile)
8789 (relative_addr_info_to_section_offsets, addr_info_make_relative)
8790 (default_symfile_offsets, symbol_file_add)
8791 (symbol_file_add_from_bfd)
8792 (build_section_addr_info_from_section_table): Update.
8793 (alloc_section_addr_info, free_section_addr_info): Don't declare.
8794 * symfile.c (alloc_section_addr_info): Remove.
8795 (build_section_addr_info_from_section_table): Change return type.
8796 Update.
8797 (build_section_addr_info_from_bfd)
8798 (build_section_addr_info_from_objfile): Likewise.
8799 (free_section_addr_info): Remove.
8800 (relative_addr_info_to_section_offsets): Change type of "addrs".
8801 (addrs_section_compar): Now a std::sort comparator.
8802 (addrs_section_sort): Change return type.
8803 (addr_info_make_relative): Change type of "addrs". Update.
8804 (default_symfile_offsets, syms_from_objfile_1)
8805 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
8806 (symbol_file_add_separate): Update.
8807 (symbol_file_add): Change type of "addrs". Update.
8808 (add_symbol_file_command): Update. Remove cleanups.
8809 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
8810 cleanups.
8811 * symfile-debug.c (debug_sym_offsets): Change type of "info".
8812 * solib.c (solib_read_symbols): Update.
8813 * objfiles.c (objfile_relocate): Update. Remove cleanups.
8814 * machoread.c (macho_symfile_offsets): Update.
8815 * jit.c (jit_bfd_try_read_symtab): Update.
8816
03afa6ef
SM
88172018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
8818
8819 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8820 unittests/utils-selftests.c.
8821 * unittests/utils-selftests.c: New file.
8822
3ae9ce5d
TT
88232018-03-14 Tom Tromey <tom@tromey.com>
8824
8825 PR cli/14977:
8826 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
8827 for NULL.
8828
b8c2339b
TT
88292018-03-14 Tom Tromey <tom@tromey.com>
8830
8831 PR cli/19918:
8832 * printcmd.c (printf_pointer): Allow "-" in format.
8833
80ae639d
TT
88342018-03-14 Tom Tromey <tom@tromey.com>
8835
8836 * printcmd.c (_initialize_printcmd): Add usage to printf.
8837
0d671d99
YQ
88382018-03-14 Yao Qi <qiyao@sourceware.org>
8839
8840 * MAINTAINERS: Update my email address.
8841
b577b6af
TT
88422018-03-13 Tom Tromey <tom@tromey.com>
8843
8844 * machoread.c (macho_check_dsym): Change filenamep to a
8845 std::string*.
8846 (macho_symfile_read): Update.
8847 * symfile.c (load_command): Use std::string.
8848
89a3b63e
AB
88492018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
8850
8851 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
8852 to error message string.
8853 (riscv_register_name): Use xsnprintf instead of sprintf.
8854 (riscv_insn::fetch_instruction): Use gdb_assert instead of
8855 internal_error.
8856 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
8857 error.
8858 (riscv_push_dummy_call): Likewise.
8859
984c7238
TT
88602018-03-12 Tom Tromey <tom@tromey.com>
8861
8862 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
8863 Use gdb::byte_vector.
8864 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
8865
933522d1
YQ
88662018-03-12 Yao Qi <yao.qi@linaro.org>
8867
8868 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
8869 parameter type to readable_regcache.
8870 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
8871 the declaration.
8872
be2daae6
TT
88732018-03-11 Tom Tromey <tom@tromey.com>
8874
8875 * dwarf2read.c (struct nextfield): Add initializers.
8876 (struct nextfnfield): Remove.
8877 (struct fnfieldlist): Add initializers. Remove "length" and
8878 "head", use std::vector.
8879 (struct decl_field_list): Remove.
8880 (struct field_info): Add initializers.
8881 <fields, baseclasses>: Now std::vector.
8882 <nbaseclasses, nfnfields, typedef_field_list_count,
8883 nested_types_list_count>: Remove.
8884 (dwarf2_add_field, dwarf2_add_type_defn)
8885 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
8886 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
8887 (process_structure_scope): Update.
8888
484cf504
TT
88892018-03-11 Tom Tromey <tom@tromey.com>
8890
8891 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
8892 for use by std::sort.
8893 (build_type_psymtabs_1): Use std::vector.
8894
9bd8e0b0
EZ
88952018-03-09 Eli Zaretskii <eliz@gnu.org>
8896
8897 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
8898 and LIBMPFR in the printed configuration.
8899
5dc1a704
TT
89002018-03-08 Tom Tromey <tom@tromey.com>
8901
8902 * source.c (get_filename_and_charpos): Use scoped_fd.
8903 * nto-procfs.c (procfs_open_1): Use scoped_fd.
8904 (procfs_pidlist): Likewise.
8905 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
8906 (iterate_over_mappings): Likewise.
8907
fdf07f3a
TT
89082018-03-08 Tom Tromey <tom@tromey.com>
8909
8910 * infcall.c (struct call_return_meta_info)
8911 <stack_temporaries_enabled>: Remove.
8912 (get_call_return_value, call_function_by_hand_dummy): Update.
8913 * thread.c (disable_thread_stack_temporaries): Remove.
8914 (enable_thread_stack_temporaries): Remove.
8915 (thread_stack_temporaries_enabled_p): Return bool.
8916 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
8917 (get_last_thread_stack_temporary): Update.
8918 * eval.c (evaluate_subexp): Update.
8919 * gdbthread.h (class enable_thread_stack_temporaries): Now a
8920 class, not a function.
8921 (value_ptr, value_vec): Remove typedefs.
8922 (class thread_info) <stack_temporaries_enabled>: Now bool.
8923 <stack_temporaries>: Now a std::vector.
8924 (thread_stack_temporaries_enabled_p)
8925 (value_in_thread_stack_temporaries): Return bool.
8926
567a3e54
SM
89272018-03-08 Simon Marchi <simon.marchi@ericsson.com>
8928
8929 * remote.c (putpkt_binary): Fix omitted bytes reporting.
8930 (getpkt_or_notif_sane_1): Likewise.
8931
00b40057
SM
89322018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8933
8934 * build-id.c (build_id_to_debug_bfd): Use std::string.
8935
a8dbfd58
SM
89362018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8937
8938 * build-id.c (find_separate_debug_file_by_buildid): Return
8939 std::string.
8940 * build-id.h (find_separate_debug_file_by_buildid): Return
8941 std::string.
8942 * coffread.c (coff_symfile_read): Adjust to std::string.
8943 * elfread.c (elf_symfile_read): Adjust to std::string.
8944 * symfile.c (separate_debug_file_exists): Change parameter to
8945 std::string.
8946 (find_separate_debug_file): Return std::string.
8947 (find_separate_debug_file_by_debuglink): Return std::string.
8948 * symfile.h (find_separate_debug_file_by_debuglink): Return
8949 std::string.
8950
e6a58aa8
SM
89512018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
8952
8953 * common/xml-utils.c (xml_escape_text): Move code to...
8954 (xml_escape_text_append): ... this new function.
8955 * common/xml-utils.h (xml_escape_text_append): New declaration.
8956 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
8957 New function.
8958 (_initialize_xml_utils): register test_xml_escape_text_append as
8959 a selftest.
8960
4ef0bef6
AH
89612018-03-07 Alan Hayward <alan.hayward@arm.com>
8962
8963 * defs.h: Remove MAX_REGISTER_SIZE.
8964 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
8965 asserts.
8966 * python/py-unwind.c (pyuw_sniffer): Likewise.
8967
e0d3522b
TT
89682018-03-07 Tom Tromey <tom@tromey.com>
8969
8970 * linux-tdep.c (linux_info_proc): Update.
8971 * target.h (struct target_ops) <to_fileio_readlink>: Return
8972 optional<string>.
8973 (target_fileio_readlink): Return optional<string>.
8974 * remote.c (remote_hostio_readlink): Return optional<string>.
8975 * inf-child.c (inf_child_fileio_readlink): Return
8976 optional<string>.
8977 * target.c (target_fileio_readlink): Return optional<string>.
8978
ea005f31
AB
89792018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
8980
8981 * regcache.c (cooked_read_test): Add riscv to the list of
8982 architectures that have a save_reggroup.
8983
e95a97d4
AA
89842018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
8985
8986 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
8987 value is not a dynamic class object.
8988
d8344f3d
TT
89892018-03-06 Tom Tromey <tom@tromey.com>
8990
8991 * rust-exp.y: Formatting fixes.
8992
9add17f2
AB
89932018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8994
8995 * riscv-tdep.c (riscv_register_name): Remove target description
8996 support.
8997 (riscv_gdbarch_init): Remove target description check.
8998
c9486dfe
AB
89992018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9000
9001 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
9002 comment.
9003 * riscv-tdep.h: Likewise.
9004
d74aff3d
AB
90052018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9006
9007 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
9008 (riscv_pseudo_register_write): Delete.
9009 (riscv_gdbarch_init): Remove all use of pseudo registers.
9010
7ea78b59
SM
90112018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9012
9013 * record-btrace.c (btrace_print_lines): Replace cleanup
9014 parameter with RAII equivalents.
9015 (btrace_insn_history): Replace cleanup with RAII equivalents.
9016 * ui-out.h (make_cleanup_ui_out_list_begin_end,
9017 make_cleanup_ui_out_tuple_begin_end): Remove.
9018 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
9019 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
9020 make_cleanup_ui_out_list_begin_end): Remove.
9021
53127008
SM
90222018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9023
9024 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
9025 parameter types to std::vector. Use bool.
9026 (record_btrace_wait): Replace VEC(tp_t) with
9027 std::vector<thread_info *>.
9028 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
9029
228f1508
SM
90302018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9031
9032 * record-btrace.c (record_btrace_disable_callback): Remove.
9033 (struct scoped_btrace_disable): New.
9034 (record_btrace_open): Use scoped_btrace_disable.
9035
b2970c23
AB
90362018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9037
9038 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
9039 reading values from registers.
9040
fb294655
AB
90412018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9042
9043 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
9044 where appropriate.
9045
cab5bb9d
AB
90462018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9047
9048 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
9049 change parameter type. Use GDB's print functions, and use
9050 core_addr_to_string where appropriate.
9051 (riscv_push_dummy_call): Use core_addr_to_string where
9052 appropriate, update call to riscv_print_arg_location, and reindent
9053 a few lines.
9054 (riscv_return_value): Update call to riscv_print_arg_location.
9055
dbbb1059
AB
90562018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9057 Tim Newsome <tim@sifive.com>
9058 Albert Ou <a0u@eecs.berkeley.edu>
9059 Darius Rad <darius@bluespec.com>
9060
9061 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
9062 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
9063 (ALLDEPFILES): Add riscv-tdep.c
9064 * configure.tgt: Add riscv support.
9065 * riscv-tdep.c: New file.
9066 * riscv-tdep.h: New file.
9067 * NEWS: Mention new target.
9068 * MAINTAINERS: Add entry for riscv.
9069
5dc43913
AB
90702018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9071
9072 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
9073 fields within aggregates.
9074
3dea1ef7
SM
90752018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
9076
9077 * record-btrace.c (btrace_print_lines): Change type of flags to
9078 gdb_disassembly_flags.
9079
7efba073
JB
90802018-03-04 John Baldwin <jhb@FreeBSD.org>
9081
9082 * fbsd-nat.c: Include "inf-ptrace.h".
9083 (USE_SIGTRAP_SIGINFO): Conditionally define.
9084 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
9085 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
9086 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
9087 function.
9088 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
9089 Likewise.
9090 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
9091 Likewise.
9092 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
9093 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
9094 "supports_stopped_by_hw_breakpoint" target methods.
9095
386a8676
JB
90962018-03-04 John Baldwin <jhb@FreeBSD.org>
9097
9098 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
9099 * fbsd-nat.c (debug_fbsd_nat): New variable.
9100 (show_fbsd_nat_debug): New function.
9101 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
9102 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
9103
12279366
JB
91042018-03-04 John Baldwin <jhb@FreeBSD.org>
9105
9106 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
9107 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
9108 prototype.
9109 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
9110 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
9111 method.
9112
54693cf5
SM
91132018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9114
9115 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
9116 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
9117
ccb2231c
SM
91182018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9119
9120 * charset.c (struct charset_vector): New.
9121 (charsets): Change type to charset_vector.
9122 (find_charset_names): Adjust.
9123 (add_one): Adjust.
9124 (_initialize_charset): Adjust.
9125
6fb16ce6
SM
91262018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9127
9128 * progspace.h (struct program_space) <deleted_solibs>: Change
9129 type to std::vector<std::string>.
9130 * progspace.c (clear_program_space_solib_cache): Adjust.
9131 * breakpoint.c (print_solib_event): Adjust.
9132 (check_status_catch_solib): Adjust.
9133 * solib.c (update_solib_list): Adjust.
9134 * ui-out.h (class ui_out) <field_string>: New overload.
9135 * ui-out.c (ui_out::field_string): New overload.
9136
564b1e3f
SM
91372018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9138
9139 * progspace.h (struct program_space): Add constructor and
9140 destructor, initialize fields.
9141 (add_program_space): Remove.
9142 * progspace.c (add_program_space): Rename to...
9143 (program_space::program_space): ... this.
9144 (release_program_space): Rename to...
9145 (program_space::~program_space): ... this.
9146 (delete_program_space): Use delete to delete program_space.
9147 (initialize_progspace): Use new to allocate program_space.
9148 * inferior.c (add_inferior_with_spaces): Likewise.
9149 (clone_inferior_command): Likewise.
9150 * infrun.c (follow_fork_inferior): Likewise.
9151 (handle_vfork_child_exec_or_exit): Likewise.
9152
e80aaf61
SM
91532018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9154
9155 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
9156 (delim_string_to_char_ptr_vec): Return std::vector of
9157 gdb::unique_xmalloc_ptr.
9158 (dirnames_to_char_ptr_vec_append): Take std::vector of
9159 gdb::unique_xmalloc_ptr.
9160 (dirnames_to_char_ptr_vec): Return std::vector of
9161 gdb::unique_xmalloc_ptr.
9162 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
9163 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
9164 (delim_string_to_char_ptr_vec): Return an std::vector of
9165 gdb::unique_xmalloc_ptr, adjust the code.
9166 (dirnames_to_char_ptr_vec_append): Take an std::vector of
9167 gdb::unique_xmalloc_ptr, adjust the code.
9168 (dirnames_to_char_ptr_vec): Return an std::vector of
9169 gdb::unique_xmalloc_ptr, adjust the code.
9170 * auto-load.c (auto_load_safe_path_vec): Change type to
9171 std::vector of gdb::unique_xmalloc_ptr.
9172 (auto_load_expand_dir_vars): Return an std::vector of
9173 gdb::unique_xmalloc_ptr, adjust the code.
9174 (auto_load_safe_path_vec_update): Adjust.
9175 (filename_is_in_auto_load_safe_path_vec): Adjust.
9176 (auto_load_objfile_script_1): Adjust.
9177 * build-id.c (build_id_to_debug_bfd): Adjust.
9178 * linux-thread-db.c (thread_db_load_search): Adjust.
9179 * source.c (add_path): Adjust.
9180 (openp): Adjust.
9181 * symfile.c (find_separate_debug_file): Adjust.
9182 * utils.c (do_free_char_ptr_vec): Remove.
9183 (make_cleanup_free_char_ptr_vec): Remove.
9184
ab818ade
SDJ
91852018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
9186
9187 PR gdb/22907
9188 * common/pathstuff.c: Conditionally include "<windows.h>".
9189
e1e6f073
GS
91902018-03-01 Georg Sauthoff <mail@georg.so>
9191
9192 PR gdb/22888
9193 * gcore.in: Quote variables and switch interpreter to bash.
9194
c7b15a66
TT
91952018-03-01 Tom Tromey <tom@tromey.com>
9196
9197 * dwarf2read.c (alloc_discriminant_info): Fix default_index
9198 assertion. Add assertion for discriminant_index.
9199 (quirk_rust_enum): Use correct base type name in univariant case.
9200
0cb7c7b0
SM
92012018-03-01 Simon Marchi <simon.marchi@ericsson.com>
9202
9203 * record.c (get_call_history_modifiers): Return a
9204 record_print_flags.
9205 (cmd_record_call_history): Adjust.
9206 * record-btrace.c (record_btrace_call_history): Adjust.
9207 (record_btrace_call_history_range): Adjust.
9208 (record_btrace_call_history_from): Adjust.
9209 * target-debug.h (target_debug_print_record_print_flags): New.
9210 * target-delegates.c: Re-generate.
9211 * target.c (target_call_history): Change flags type.
9212 (target_call_history_from): Likewise.
9213 (target_call_history_range): Likewise.
9214 * target.h (struct target_ops) <target_call_history>: Likewise.
9215 (target_call_history_from): Likewise.
9216 (target_call_history_range): Likewise.
9217
25e3c82c
SDJ
92182018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
9219 Simon Marchi <simon.marchi@polymtl.ca>
9220
9221 * common/common-utils.c: Include "sys/stat.h".
9222 (is_regular_file): Move here from "source.c"; change return
9223 type to "bool".
9224 * common/common-utils.h (is_regular_file): New prototype.
9225 * common/pathstuff.c (contains_dir_separator): New function.
9226 * common/pathstuff.h (contains_dir_separator): New prototype.
9227 * source.c: Don't include "sys/stat.h".
9228 (is_regular_file): Move to "common/common-utils.c".
9229
b4987c95
SDJ
92302018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
9231
9232 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
9233 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
9234 * auto-load.c: Include "common/pathstuff.h".
9235 * common/common-def.h (current_directory): Move here.
9236 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
9237 function.
9238 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
9239 prototype.
9240 * common/pathstuff.c: New file.
9241 * common/pathstuff.h: New file.
9242 * compile/compile.c: Include "common/pathstuff.h".
9243 * defs.h (current_directory): Move to "common/common-defs.h".
9244 * dwarf2read.c: Include "common/pathstuff.h".
9245 * exec.c: Likewise.
9246 * guile/scm-safe-call.c: Likewise.
9247 * linux-thread-db.c: Likewise.
9248 * main.c: Likewise.
9249 * nto-tdep.c: Likewise.
9250 * objfiles.c: Likewise.
9251 * source.c: Likewise.
9252 * symtab.c: Likewise.
9253 * utils.c: Include "common/pathstuff.h".
9254 (gdb_realpath): Move to "common/pathstuff.c".
9255 (gdb_realpath_keepfile): Likewise.
9256 (gdb_abspath): Likewise.
9257 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
9258 (gdb_realpath_keepfile): Likewise.
9259 (gdb_abspath): Likewise.
9260
f169cfdc
JB
92612018-02-28 John Baldwin <jhb@FreeBSD.org>
9262
9263 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
9264 wildcard process pid for super_resume for kernels with a
9265 specific bug.
9266
e05cac70
PM
92672018-02-27 Phil Muldoon <pmuldoon@redhat.com>
9268
9269 * compile/compile.c (get_args): Add additional comments
9270 explaining function.
9271
55089490
TT
92722018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
9273 Tom Tromey <tom@tromey.com>
9274
9275 * target.h (memory_write_request_s): Remove typedef. Don't define
9276 VEC.
9277 (target_write_memory_blocks): Change argument to std::vector.
9278 (struct memory_write_request): Add constructor.
9279 * target-memory.c (compare_block_starting_address): Return bool.
9280 Change argument types.
9281 (claim_memory): Change arguments to use std::vector.
9282 (split_regular_and_flash_blocks, blocks_to_erase)
9283 (compute_garbled_blocks): Likewise.
9284 (cleanup_request_data, cleanup_write_requests_vector): Remove.
9285 (target_write_memory_blocks): Change argument to std::vector.
9286 * symfile.c (struct load_section_data): Add constructor and
9287 destructor. Use std::vector for "requests".
9288 (struct load_progress_data): Add initializers.
9289 (load_section_callback): Update. Use "new".
9290 (clear_memory_write_data): Remove.
9291 (generic_load): Update.
9292
0c305b61
AH
92932018-02-27 Alan Hayward <alan.hayward@arm.com>
9294
9295 * arch/aarch64.h: Use common/tdesc.h.
9296
c5196c92
MR
92972018-02-26 Maciej W. Rozycki <macro@mips.com>
9298
9299 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
9300 architecture with a 64-bit ABI.
9301
37c33887
MR
93022018-02-26 Maciej W. Rozycki <macro@mips.com>
9303
9304 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
9305 ahead of target description loading.
9306
d4dd3282
TT
93072018-02-26 Tom Tromey <tom@tromey.com>
9308
9309 * stack.c (backtrace_command_1): Update.
9310 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
9311 of "flags".
9312 * python/py-framefilter.c (py_print_frame)
9313 (gdbpy_apply_frame_filter): Change type of "flags".
9314 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
9315 of "flags".
9316 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
9317 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
9318 * extension.h (enum frame_filter_flag): Rename from
9319 frame_filter_flags.
9320 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
9321 (apply_ext_lang_frame_filter): Change type of "flags".
9322 * extension.c (apply_ext_lang_frame_filter): Change type of
9323 "flags".
9324 * extension-priv.h (struct extension_language_ops)
9325 <apply_frame_filter>: Change type of "flags".
9326
6893c19a
TT
93272018-02-26 Tom Tromey <tom@tromey.com>
9328
9329 PR python/16497:
9330 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
9331 off-by-one in py_end computation.
9332 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
9333 PRINT_MORE_FRAMES.
9334 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
9335 constant.
9336
2ddeaf8a
TT
93372018-02-26 Tom Tromey <tom@tromey.com>
9338
9339 * dwarf2read.c (struct variant_field): New.
9340 (struct nextfield) <variant>: New field.
9341 (dwarf2_add_field): Handle DW_TAG_variant_part.
9342 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
9343 discriminated union.
9344 (read_structure_type): Handle DW_TAG_variant_part.
9345 (handle_struct_member_die): New function, extracted from
9346 process_structure_scope. Handle DW_TAG_variant.
9347 (process_structure_scope): Handle discriminated unions. Call
9348 handle_struct_member_die.
9349
c9317f21
TT
93502018-02-26 Tom Tromey <tom@tromey.com>
9351
9352 * rust-lang.h (rust_last_path_segment): Declare.
9353 * rust-lang.c (rust_last_path_segment): Now public. Change
9354 contract.
9355 (struct disr_info): Remove.
9356 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
9357 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
9358 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
9359 (rust_enum_p, rust_enum_variant): New function.
9360 (rust_underscore_fields): Remove "offset" parameter.
9361 (rust_print_enum): New function.
9362 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
9363 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
9364 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
9365 enums.
9366 (rust_internal_print_type): New function, from rust_print_type.
9367 Remove enum code.
9368 (rust_print_type): Call rust_internal_print_type.
9369 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
9370 Update enum handling.
9371 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
9372 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
9373 (rust_union_quirks): New functions.
9374 (process_full_comp_unit, process_full_type_unit): Call
9375 rust_union_quirks.
9376 (process_structure_scope): Update rust_unions if necessary.
9377
7c22600a
TT
93782018-02-26 Tom Tromey <tom@tromey.com>
9379
9380 * value.h (value_union_variant): Declare.
9381 * valops.c (value_union_variant): New function.
9382 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
9383 (struct discriminant_info): New.
9384 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
9385 enumerator.
9386 (struct main_type) <flag_discriminated_union>: New field.
9387
15ce8941
TT
93882018-02-26 Tom Tromey <tom@tromey.com>
9389
9390 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9391 unittests/unpack-selftests.c.
9392 * unittests/unpack-selftests.c: New file.
9393 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
9394
48fbe735
YQ
93952018-02-26 Yao Qi <yao.qi@linaro.org>
9396
9397 * dwarf2read.c (struct partial_die_info) <read>: New method.
9398 (read_partial_die): Remove the declaration.
9399 (load_partial_dies): Update.
9400 (partial_die_info::partial_die_info):
9401 (read_partial_die): Change it to partial_die_info::read.
9402
52356b79
YQ
94032018-02-26 Yao Qi <yao.qi@linaro.org>
9404
9405 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
9406 (fixup_partial_die): Remove declaration.
9407 (scan_partial_symbols): Update.
9408 (partial_die_parent_scope): Likewise.
9409 (partial_die_full_name): Likewise.
9410 (fixup_partial_die): Change it to partial_die_info::fixup.
9411
35cc7ed7
YQ
94122018-02-26 Yao Qi <yao.qi@linaro.org>
9413
9414 * dwarf2read.c (read_partial_die): Update the declaration.
9415 (load_partial_dies): Caller update.
9416 (read_partial_die): Remove one argument abbrev_len.
9417
6f06d47b
YQ
94182018-02-26 Yao Qi <yao.qi@linaro.org>
9419
9420 * dwarf2read.c (struct partial_die_info): Add ctor, delete
9421 assignment operator.
9422 (load_partial_dies): Use ctor and copy ctor.
9423 (read_partial_die): Update.
9424 (dwarf2_cu::find_partial_die): Use ctor.
9425
d590ff25
YQ
94262018-02-26 Yao Qi <yao.qi@linaro.org>
9427
9428 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
9429 (find_partial_die_in_comp_unit): Change it to
9430 dwarf2_cu::find_partial_die.
9431 (find_partial_die): Update.
9432
fd0a254f
YQ
94332018-02-26 Yao Qi <yao.qi@linaro.org>
9434
9435 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
9436 is NULL.
9437
cd9983dd
YQ
94382018-02-26 Yao Qi <yao.qi@linaro.org>
9439
9440 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
9441
f46cd62a
AH
94422018-02-26 Alan Hayward <alan.hayward@arm.com>
9443
9444 * arch/amd64.h: Use common/tdesc.h.
9445 * arch/i386.c: Likewise.
9446 * arch/i386.h: Likewise.
9447 * arch/tic6x.c: Likewise.
9448 * arch/tdesc.h: Move file from here...
9449 * common/tdesc.h: ...to here.
9450 * features/aarch64-core.c: Regenerate.
9451 * features/aarch64-fpu.c: Regenerate.
9452 * features/i386/32bit-avx.c: Regenerate.
9453 * features/i386/32bit-avx512.c: Regenerate.
9454 * features/i386/32bit-core.c: Regenerate.
9455 * features/i386/32bit-linux.c: Regenerate.
9456 * features/i386/32bit-mpx.c: Regenerate.
9457 * features/i386/32bit-pkeys.c: Regenerate.
9458 * features/i386/32bit-sse.c: Regenerate.
9459 * features/i386/64bit-avx.c: Regenerate.
9460 * features/i386/64bit-avx512.c: Regenerate.
9461 * features/i386/64bit-core.c: Regenerate.
9462 * features/i386/64bit-linux.c: Regenerate.
9463 * features/i386/64bit-mpx.c: Regenerate.
9464 * features/i386/64bit-pkeys.c: Regenerate.
9465 * features/i386/64bit-segments.c: Regenerate.
9466 * features/i386/64bit-sse.c: Regenerate.
9467 * features/i386/x32-core.c: Regenerate.
9468 * features/tic6x-c6xp.c: Regenerate.
9469 * features/tic6x-core.c: Regenerate.
9470 * features/tic6x-gp.c: Regenerate.
9471 * target-descriptions.c: Use common/tdesc.h.
9472 * target-descriptions.h: Likewise.
9473
9b292f68
TT
94742018-02-24 Tom Tromey <tom@tromey.com>
9475
9476 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
9477 (try_thread_db_load_from_dir, thread_db_load_search): Use
9478 std::string.
9479 (info_auto_load_libthread_db_compare): Return bool. Change
9480 argument types.
9481 (info_auto_load_libthread_db): Use std::vector, std::string.
9482 Remove cleanups.
9483
281d762b
TT
94842018-02-24 Tom Tromey <tom@tromey.com>
9485
9486 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
9487 std::string.
9488 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
9489 std::string*.
9490 * gdbarch.c: Rebuild.
9491 * gdbarch.h: Rebuild.
9492 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
9493 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
9494 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
9495 std::string*.
9496
9d8780f0
SM
94972018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
9498
9499 * gdbtypes.h (sect_offset): Change type to uint64_t.
9500 (sect_offset_str): New function.
9501 * dwarf2read.c (create_addrmap_from_aranges): Use
9502 sect_offset_str.
9503 (error_check_comp_unit_head): Likewise.
9504 (create_debug_type_hash_table): Likewise.
9505 (read_cutu_die_from_dwo): Likewise.
9506 (init_cutu_and_read_dies): Likewise.
9507 (init_cutu_and_read_dies_no_follow): Likewise.
9508 (process_psymtab_comp_unit_reader): Likewise.
9509 (partial_die_parent_scope): Likewise.
9510 (peek_die_abbrev): Likewise.
9511 (process_queue): Likewise.
9512 (dwarf2_physname): Likewise.
9513 (read_namespace_alias): Likewise.
9514 (read_import_statement): Likewise.
9515 (create_dwo_cu_reader): Likewise.
9516 (create_cus_hash_table): Likewise.
9517 (lookup_dwo_cutu): Likewise.
9518 (inherit_abstract_dies): Likewise.
9519 (read_func_scope): Likewise.
9520 (read_call_site_scope): Likewise.
9521 (dwarf2_add_member_fn): Likewise.
9522 (read_common_block): Likewise.
9523 (read_module_type): Likewise.
9524 (read_typedef): Likewise.
9525 (read_subrange_type): Likewise.
9526 (load_partial_dies): Likewise.
9527 (read_partial_die): Likewise.
9528 (find_partial_die): Likewise.
9529 (read_str_index): Likewise.
9530 (dwarf2_string_attr): Likewise.
9531 (build_error_marker_type): Likewise.
9532 (lookup_die_type): Likewise.
9533 (dump_die_shallow): Likewise.
9534 (follow_die_ref): Likewise.
9535 (dwarf2_fetch_die_loc_sect_off): Likewise.
9536 (dwarf2_fetch_constant_bytes): Likewise.
9537 (follow_die_sig): Likewise.
9538 (get_signatured_type): Likewise.
9539 (get_DW_AT_signature_type): Likewise.
9540 (dwarf2_find_containing_comp_unit): Likewise.
9541 (set_die_type): Likewise.
9542
8ec57239
JB
95432018-02-21 John Baldwin <jhb@FreeBSD.org>
9544
9545 * arch/aarch64.c: Include "common-defs.h".
9546 * arch/amd64.c: Likewise.
9547 * arch/i386.c: Likewise.
9548
3eac2b65
TT
95492018-02-21 Tom Tromey <tom@tromey.com>
9550
9551 * value.h: (extract_field_op): Update.
9552 * eval.c (extract_field_op): Return a const char *.
9553 * expression.h (parse_expression_for_completion): Update.
9554 * completer.c (complete_expression): Update.
9555 (add_struct_fields): Make fieldname const.
9556 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
9557 (mark_completion_tag, parse_exp_in_context_1): Update.
9558 (parse_expression_for_completion): Change "name" to
9559 unique_xmalloc_ptr*.
9560
6ccb583f
TT
95612018-02-21 Tom Tromey <tom@tromey.com>
9562
9563 * infcall.c (call_function_by_hand_dummy): Use std::vector.
9564
c113ed0c
YQ
95652018-02-21 Yao Qi <yao.qi@linaro.org>
9566
9567 * avr-tdep.c (avr_read_pc): Change parameter type to
9568 readable_regcache.
9569 * gdbarch.sh (read_pc): Likewise.
9570 * gdbarch.c: Re-generated.
9571 * gdbarch.h: Re-generated.
9572 * hppa-tdep.c (hppa_read_pc): Change parameter type to
9573 readable_regcache.
9574 * ia64-tdep.c (ia64_read_pc): Likewise.
9575 * mips-tdep.c (mips_read_pc): Likewise.
9576 * spu-tdep.c (spu_read_pc): Likewise.
9577
4c74fe6b
YQ
95782018-02-21 Yao Qi <yao.qi@linaro.org>
9579
9580 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
9581 * regcache-dump.c: New file.
9582 * regcache.c: Move register_dump to regcache-dump.c.
9583 (maintenance_print_registers): Likewise.
9584 (maintenance_print_raw_registers): Likewise.
9585 (maintenance_print_cooked_registers): Likewise.
9586 (maintenance_print_register_groups): Likewise.
9587 (maintenance_print_remote_registers): Likewise.
9588 (_initialize_regcache): Likewise.
9589 * regcache.h (register_dump): Moved from regcache.c.
9590
796bb026
YQ
95912018-02-21 Yao Qi <yao.qi@linaro.org>
9592
9593 * regcache.c (regcache::regcache): Update.
9594 (regcache::invalidate): Move it to detached_regcache::invalidate.
9595 (get_thread_arch_aspace_regcache): Update.
9596 (regcache::raw_update): Update.
9597 (regcache::cooked_read): Remove some code.
9598 (regcache::cooked_read_value): Likewise.
9599 (regcache::raw_write): Remove assert on m_readonly_p.
9600 (regcache::raw_supply_integer): Move it to
9601 detached_regcache::raw_supply_integer.
9602 (regcache::raw_supply_zeroed): Likewise.
9603 * regcache.h (detached_regcache) <raw_supply_integer>: New
9604 declaration.
9605 <raw_supply_zeroed, invalidate>: Likewise.
9606 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
9607 <invalidate>: Likewise.
9608 <m_readonly_p>: Removed.
9609
215c69dc
YQ
96102018-02-21 Yao Qi <yao.qi@linaro.org>
9611
9612 * infcmd.c (get_return_value): Let stop_regs point to
9613 get_current_regcache.
9614 * regcache.c (regcache::regcache): Remove.
9615 (register_dump_reg_buffer): New class.
9616 (regcache_print): Adjust.
9617 * regcache.h (regcache): Remove constructors.
9618
f3384e66
YQ
96192018-02-21 Yao Qi <yao.qi@linaro.org>
9620
9621 * regcache.c (class register_dump): New class.
9622 (register_dump_regcache, register_dump_none): New class.
9623 (register_dump_remote, register_dump_groups): New class.
9624 (regcache_print): Update.
9625 * regcache.h (regcache_dump_what): Move it to regcache.c.
9626 (regcache) <dump>: Remove.
9627
c8ec2f33
YQ
96282018-02-21 Yao Qi <yao.qi@linaro.org>
9629
9630 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
9631 reg_buffer_rw *.
9632 (jit_unwind_reg_set_impl): Call raw_supply.
9633 (jit_frame_sniffer): Use reg_buffer_rw.
9634 * record-full.c (record_full_core_regbuf): Change its type.
9635 (record_full_core_open_1): Use reg_buffer_rw.
9636 (record_full_close): Likewise.
9637 (record_full_core_fetch_registers): Use regcache->raw_supply.
9638 (record_full_core_store_registers): Likewise.
9639 * regcache.c (regcache::get_register_status): Move it to
9640 reg_buffer.
9641 (regcache_raw_set_cached_value): Remove.
9642 (regcache::raw_set_cached_value): Remove.
9643 (regcache::raw_write): Call raw_supply.
9644 (regcache::raw_supply): Move it to reg_buffer_rw.
9645 * regcache.h (regcache_raw_set_cached_value): Remove.
9646 (reg_buffer_rw): New class.
9647
daf6667d
YQ
96482018-02-21 Yao Qi <yao.qi@linaro.org>
9649
9650 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
9651 readonly_detached_regcache.
9652 (dummy_frame_prev_register): Use regcache->cooked_read.
9653 * frame.c (frame_save_as_regcache): Change return type.
9654 (frame_pop): Update.
9655 * frame.h (frame_save_as_regcache): Update declaration.
9656 * inferior.h (get_infcall_suspend_state_regcache): Update
9657 declaration.
9658 * infrun.c (infcall_suspend_state) <registers>: use
9659 readonly_detached_regcache.
9660 (save_infcall_suspend_state): Don't use regcache_dup.
9661 (get_infcall_suspend_state_regcache): Change return type.
9662 * linux-fork.c (struct fork_info) <savedregs>: Change to
9663 readonly_detached_regcache.
9664 <pc>: New field.
9665 (fork_save_infrun_state): Don't use regcache_dup.
9666 (info_checkpoints_command): Adjust.
9667 * mi/mi-main.c (register_changed_p): Update declaration.
9668 (mi_cmd_data_list_changed_registers): Use
9669 readonly_detached_regcache.
9670 (register_changed_p): Change parameter type to
9671 readonly_detached_regcache.
9672 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
9673 readonly_detached_regcache.
9674 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
9675 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
9676 New.
9677 (regcache::save): Move it to reg_buffer.
9678 (regcache::restore): Change parameter type.
9679 (regcache_dup): Remove.
9680 * regcache.h (reg_buffer) <save>: New method.
9681 (readonly_detached_regcache): New class.
9682 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
9683 readonly_detached_regcache.
9684 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
9685
fc5b8736
YQ
96862018-02-21 Yao Qi <yao.qi@linaro.org>
9687
9688 * frame.c (frame_save_as_regcache): Use regcache method save.
9689 (frame_pop): Use regcache method restore.
9690 * infrun.c (restore_infcall_suspend_state): Likewise.
9691 * linux-fork.c (fork_load_infrun_state): Likewise.
9692 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
9693 save.
9694 * regcache.c (regcache_save): Remove.
9695 (regcache::restore): More asserts.
9696 (regcache_cpy): Remove.
9697 * regcache.h (regcache_save): Remove the declaration.
9698 (regcache::restore): Move from private to public.
9699 Remove the friend declaration of regcache_cpy.
9700 (regcache_cpy): Remove declaration.
9701
849d0ba8
YQ
97022018-02-21 Yao Qi <yao.qi@linaro.org>
9703
9704 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
9705 parameter type to 'readable_regcache *'.
9706 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
9707 * arm-tdep.c (arm_neon_quad_read): Likewise.
9708 (arm_pseudo_read): Likewise.
9709 * avr-tdep.c (avr_pseudo_register_read): Likewise.
9710 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
9711 * frv-tdep.c (frv_pseudo_register_read): Likewise.
9712 * gdbarch.c: Re-generated.
9713 * gdbarch.h: Re-generated.
9714 * gdbarch.sh (pseudo_register_read): Change parameter type to
9715 'readable_regcache *'.
9716 (pseudo_register_read_value): Likewise.
9717 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
9718 (h8300_pseudo_register_read): Likewise.
9719 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
9720 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
9721 (i386_pseudo_register_read_into_value): Likewise.
9722 (i386_pseudo_register_read_value): Likewise.
9723 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
9724 declaration.
9725 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
9726 * m32c-tdep.c (m32c_raw_read): Likewise.
9727 (m32c_read_flg): Likewise.
9728 (m32c_banked_register): Likewise.
9729 (m32c_banked_read): Likewise.
9730 (m32c_sb_read): Likewise.
9731 (m32c_part_read): Likewise.
9732 (m32c_cat_read): Likewise.
9733 (m32c_r3r2r1r0_read): Likewise.
9734 (m32c_pseudo_register_read): Likewise.
9735 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
9736 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
9737 (mep_pseudo_cr64_read): Likewise.
9738 (mep_pseudo_register_read): Likewise.
9739 * mips-tdep.c (mips_pseudo_register_read): Likewise.
9740 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
9741 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
9742 * regcache.c (regcache::raw_read): Move it to readable_regcache.
9743 (regcache::cooked_read): Likewise.
9744 (regcache::cooked_read_value): Likewise.
9745 (regcache_cooked_read_signed):
9746 (regcache::cooked_read): Likewise.
9747 * regcache.h (readable_regcache): New class.
9748 (regcache): Inherit readable_regcache. Move some methods to
9749 readable_regcache.
9750 * rl78-tdep.c (rl78_pseudo_register_read): Change
9751 parameter type to 'readable_regcache *'.
9752 * rs6000-tdep.c (do_regcache_raw_read): Remove.
9753 (e500_pseudo_register_read): Change parameter type to
9754 'readable_regcache *'.
9755 (dfp_pseudo_register_read): Likewise.
9756 (vsx_pseudo_register_read): Likewise.
9757 (efpr_pseudo_register_read): Likewise.
9758 * s390-tdep.c (s390_pseudo_register_read): Likewise.
9759 * sh-tdep.c (sh_pseudo_register_read): Likewise.
9760 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
9761 (sh64_pseudo_register_read): Likewise.
9762 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
9763 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
9764 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
9765 (spu_pseudo_register_read): Likewise.
9766 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
9767 (xtensa_pseudo_register_read): Likewise.
9768
31716595
YQ
97692018-02-21 Yao Qi <yao.qi@linaro.org>
9770
9771 * regcache.c (regcache::regcache): Call reg_buffer ctor.
9772 (regcache::arch): Move it to reg_buffer::arch.
9773 (regcache::register_buffer): Likewise.
9774 (regcache::assert_regnum): Likewise.
9775 (regcache::num_raw_registers): Likewise.
9776 * regcache.h (reg_buffer): New class.
9777 (regcache): Inherit reg_buffer.
9778
7104e59b
SM
97792018-02-20 Simon Marchi <simon.marchi@ericsson.com>
9780
9781 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
9782 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
9783
2d8adcbd
MM
97842018-02-20 Markus Metzger <markus.t.metzger@intel.com>
9785
9786 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
9787
b5884fa7
AH
97882018-02-19 Alan Hayward <alan.hayward@arm.com>
9789
9790 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
9791 (SFILES): Remove common/*.c files.
9792 (COMMON_OBS): Remove some *.o files built from common/*.c files.
9793 * common/common.host: Add common reference.
9794 * configure.ac: Likewise.
9795 * configure: Regenerate.
9796
fd90ace4
YQ
97972018-02-16 Yao Qi <yao.qi@linaro.org>
9798
9799 * block.c (block_namespace_info): Inherit allocate_on_obstack.
9800 (block_initialize_namespace): Use new.
9801 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
9802 (dwarf2_free_objfile): Use delete.
9803 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
9804 (copy_type_recursive): Use new.
9805 * gdb_obstack.h (allocate_on_obstack): New.
9806
85046ae2
YQ
98072018-02-15 Yao Qi <yao.qi@linaro.org>
9808
9809 PR gdb/22849
9810 * inferior.c (exit_inferior_1): Reset inf->control.
9811
355c559b
JB
98122018-02-15 Joel Brobecker <brobecker@adacore.com>
9813
9814 * ada-lang.c (ada_to_fixed_value_create): Delete advance
9815 declaration.
9816
980548fd
PA
98172018-02-14 Pedro Alves <palves@redhat.com>
9818
9819 * frame-unwind.c (frame_unwind_try_unwinder): Always call
9820 frame_cleanup_after_sniffer on exception.
9821
692d6f97
TT
98222018-02-14 Tom Tromey <tom@tromey.com>
9823
9824 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
9825 const.
9826 (solib_bfd_open): Make pathname const.
9827 * solib.c (solib_bfd_open): Make pathname const.
9828 * solib-spu.c (spu_bfd_fopen): Make name const.
9829 (spu_bfd_open): Make pathname const.
9830 * solib-darwin.c (darwin_bfd_open): Make pathname const.
9831 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
9832
e0cc99a6
TT
98332018-02-14 Tom Tromey <tom@tromey.com>
9834
9835 * symfile.c (symfile_bfd_open): Update.
9836 * source.h (openp, source_full_path_of, find_and_open_source):
9837 Change argument type to unique_xmalloc_ptr.
9838 * source.c (openp): Take a unique_xmalloc_ptr.
9839 (source_full_path_of, find_and_open_source): Likewise.
9840 (open_source_file, symtab_to_fullname): Update.
9841 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
9842 unique_xmalloc_ptr.
9843 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
9844 (exec_file_find): Update.
9845 * psymtab.c (psymtab_to_fullname): Update.
9846 * nto-tdep.h (nto_find_and_open_solib): Update.
9847 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
9848 unique_xmalloc_ptr.
9849 * exec.c (exec_file_attach): Update.
9850 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
9851 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
9852
b46a8d7c
TT
98532018-02-14 Tom Tromey <tom@tromey.com>
9854
9855 * solib.c: Include source.h.
9856 * nto-tdep.c: Include source.h.
9857 * mi/mi-cmd-env.c: Include source.h.
9858 * infcmd.c: Include source.h.
9859 * exec.c: Include source.h.
9860 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
9861 (add_path, directory_switch, source_path, init_source_path): Move
9862 declarations...
9863 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
9864 (add_path, directory_switch, source_path, init_source_path):
9865 ...here.
9866
797bc1cb
TT
98672018-02-14 Tom Tromey <tom@tromey.com>
9868
9869 * solist.h (exec_file_find, solib_find): Return
9870 unique_xmalloc_ptr.
9871 (solib_bfd_fopen): Take a const char *.
9872 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
9873 (exec_file_find, solib_find): Likewise.
9874 (solib_bfd_fopen): Do not take ownership of "pathname".
9875 (solib_bfd_open): Use unique_xmalloc_ptr.
9876 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
9877 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
9878 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
9879 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
9880
f98b2e33
JB
98812018-02-14 Joel Brobecker <brobecker@adacore.com>
9882
9883 * ada-lang.c (name_match_type_from_name): Remove reference to
9884 ada_name_for_lookup in function's documentation.
9885 * ada-lang.h (ada_name_for_lookup): Delete declaration.
9886
24b9144d
SM
98872018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
9888
9889 * defs.h (enum openp_flags): New enum.
9890 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
9891 Move to enum openp_flags.
9892 (openp_flags): New enum flags.
9893 (openp): Change parameter type to openp_flags.
9894 * source.c (openp): Change parameter type to openp_flags.
9895 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
9896 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
9897
387cd15b
SM
98982018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
9899
9900 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
9901 per-command.
9902
b303c6f6
AB
99032018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
9904
9905 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
9906 into...
9907 (class dwarf2_queue_guard): ...the destructor of this new class.
9908 (dw2_do_instantiate_symtab): Create instance of the new class
9909 dwarf2_queue_guard, remove cleanup.
9910
9c3630e9
TT
99112018-02-09 Tom Tromey <tom@tromey.com>
9912
9913 * source.c (find_source_lines): Don't reference past the end of
9914 the vector.
9915
c4e12631
MM
99162018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9917
9918 * remote.c (remote_btrace_maybe_reopen): Change error message.
9919 * btrace.c (btrace_enable): Likewise.
9920 (parse_xml_btrace): Likewise.
9921 (parse_xml_btrace_conf): Likewise.
9922
88711fbf
MM
99232018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9924
9925 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
9926 (linux_enable_pt, linux_enable_bts): Call
9927 diagnose_perf_event_open_fail.
9928
17ad2a4f
MM
99292018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9930
9931 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
9932 Remove parameter and change return type. Update callers. Move it.
9933 (linux_enable_bts, linux_enable_pt): Improve error message.
9934 (linux_enable_pt): Remove zero buffer size check.
9935 (linux_enable_btrace): Improve error messages. Remove NULL return
9936 check.
9937
de6242d3
MM
99382018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9939
9940 * btrace.c (btrace_enable): Remove target_supports_btrace call.
9941 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
9942 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
9943 (linux_supports_pt, linux_supports_btrace): Remove.
9944 (linux_enable_bts): Call cpu_supports_bts.
9945 * nat/linux-btrace.h (linux_supports_btrace): Remove.
9946 * remote.c (remote_supports_btrace): Remove.
9947 (init_remote_ops): Remove remote_supports_btrace.
9948 * target-delegates.c: Regenerated.
9949 * target.c (target_supports_btrace): Remove.
9950 * target.h (target_ops) <to_supports_btrace>: Remove
9951 (target_supports_btrace): Remove.
9952 * x86-linux-nat.c (x86_linux_create_target): Remove
9953 linux_supports_btrace.
9954
9ee23a85
MM
99552018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9956
9957 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
9958 btrace failed.
9959 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
9960 exception and use message in own exception.
9961
5c3284c1
MM
99622018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9963
9964 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
9965 (perf_event_pt_event_type): Use gdb_file_up.
9966 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
9967 scoped_fd, and scoped_mmap.
9968
84696f37
MM
99692018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9970
9971 * common/scoped_mmap.h: New.
9972 * unittests/scoped_mmap-selftest.c: New.
9973 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9974 unittests/scoped_mmap-selftest.c.
9975
ea4a0888
MM
99762018-02-09 Markus Metzger <markus.t.metzger@intel.com>
9977
9978 * common/scoped_fd.h: New.
9979 * unittests/scoped_fd-selftest.c: New.
9980 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9981 unittests/scoped_fd-selftest.c.
9982
869e8290
TT
99832018-02-09 Tom Tromey <tom@tromey.com>
9984
9985 * auto-load.c (auto_load_section_scripts): Use
9986 gdb::unique_xmalloc_ptr.
9987
a37a2ae7
TT
99882018-02-09 Tom Tromey <tom@tromey.com>
9989
9990 * auto-load.c (execute_script_contents): Use std::string.
9991
4e725347
JB
99922018-02-09 Joel Brobecker <brobecker@adacore.com>
9993
9994 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
9995 Python function, rather than a new command.
9996
9a897d43
TT
99972018-02-08 Tom Tromey <tom@tromey.com>
9998
9999 * solib.c (solib_find_1): Use std::string.
10000 (solib_bfd_fopen): Use unique_xmalloc_ptr.
10001
58ef3771
TT
100022018-02-08 Tom Tromey <tom@tromey.com>
10003
10004 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
10005
a9abc434
TT
100062018-02-08 Tom Tromey <tom@tromey.com>
10007
10008 * source.c (find_source_lines): Use gdb::def_vector.
10009
84f27c6f
TT
100102018-02-08 Tom Tromey <tom@tromey.com>
10011
10012 * macrocmd.c (struct temporary_macro_definition): New.
10013 (macro_define_command): Use temporary_macro_definition. Remove
10014 cleanups.
10015 (free_macro_definition_ptr): Remove.
10016
0354904b
TT
100172018-02-08 Tom Tromey <tom@tromey.com>
10018
10019 * macroexp.c (maybe_expand): Use std::string.
10020
1739cf24
TT
100212018-02-08 Tom Tromey <tom@tromey.com>
10022
10023 * macroexp.c (struct macro_buffer): Add initializers for some
10024 members.
10025 (init_buffer, init_shared_buffer, free_buffer)
10026 (free_buffer_return_text): Remove.
10027 (macro_buffer): New constructors.
10028 (~macro_buffer): New destructor.
10029 (macro_buffer::set_shared): New method.
10030 (macro_buffer::resize_buffer, macro_buffer::appendc)
10031 (macro_buffer::appendmem): Now methods, not free functions.
10032 (set_token, append_tokens_without_splicing, stringify)
10033 (macro_stringify): Update.
10034 (gather_arguments): Change return type. Remove argc_p argument,
10035 add args_ptr argument. Use std::vector.
10036 (substitute_args): Remove argc argument. Accept std::vector.
10037 (expand): Update. Use std::vector.
10038 (scan, macro_expand, macro_expand_next): Update.
10039
f6c2623e
TT
100402018-02-08 Tom Tromey <tom@tromey.com>
10041
10042 * symtab.c (default_collect_symbol_completion_matches_break_on):
10043 Use unique_xmalloc_ptr.
10044 * macroscope.h: (sal_macro_scope, user_macro_scope)
10045 (default_macro_scope): Return unique_xmalloc_ptr.
10046 * macroscope.c (sal_macro_scope, user_macro_scope)
10047 (default_macro_scope): Return unique_xmalloc_ptr.
10048 * macroexp.h (macro_expand, macro_expand_once): Return
10049 unique_xmalloc_ptr.
10050 * macroexp.c (macro_expand, macro_expand_once): Return
10051 unique_xmalloc_ptr.
10052 * macrocmd.c (macro_expand_command, macro_expand_once_command)
10053 (info_macro_command, info_macros_command): Use
10054 unique_xmalloc_ptr.
10055 * compile/compile-c-support.c (write_macro_definitions): Use
10056 unique_xmalloc_ptr.
10057 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
10058
c2e0e465
SM
100592018-02-07 Simon Marchi <simon.marchi@ericsson.com>
10060
10061 * value.c (value_static_field): Assign field type instead of
10062 containing type when returning an optimized out value.
10063
3f8c94b4
YQ
100642018-02-06 Yao Qi <yao.qi@linaro.org>
10065
10066 * ft32-tdep.c (ft32_read_pc): Remove.
10067 (ft32_write_pc): Remove.
10068 (ft32_gdbarch_init): Update.
10069 * m32r-tdep.c (m32r_read_pc): Remove.
10070 (m32r_gdbarch_init): Update.
10071 * mep-tdep.c (mep_read_pc): Remove.
10072 (mep_gdbarch_init): Update.
10073 * microblaze-tdep.c (microblaze_write_pc): Remove.
10074 (microblaze_gdbarch_init): Update.
10075 * mn10300-tdep.c (mn10300_read_pc): Remove.
10076 (mn10300_write_pc): Remove.
10077 (mn10300_gdbarch_init): Update.
10078 * moxie-tdep.c (moxie_read_pc): Remove.
10079 (moxie_write_pc): Remove.
10080 (moxie_gdbarch_init): Update.
10081
bca65a23
YQ
100822018-02-06 Yao Qi <yao.qi@linaro.org>
10083
10084 * expprint.c (print_subexp_standard): Handle
10085 OP_F77_UNDETERMINED_ARGLIST.
10086 (dump_subexp_body_standard): Likewise.
10087
583e3f90 100882018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 10089
583e3f90
YQ
10090 * target-descriptions.c (tdesc_element_visitor) Add empty
10091 implementations.
b8df6ca7
AH
10092 (tdesc_type): Move make_gdb_type from here.
10093 (tdesc_type_builtin): Likewise.
10094 (tdesc_type_vector): Likewise.
10095 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
10096 (make_gdb_type_struct): Move from tdesc_type_with_fields.
10097 (make_gdb_type_union): Likewise.
10098 (make_gdb_type_flags): Likewise.
10099 (make_gdb_type_enum): Likewise.
10100 (make_gdb_type): New function.
10101 (tdesc_register_type): Use static make_gdb_type.
10102
e813d34a
RK
101032018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
10104
10105 * infcmd.c (default_print_one_register_info): Align natural-format
10106 column values consistently one under another.
10107 (pad_to_column): New function.
10108
0eb876f5
JB
101092018-02-05 Joel Brobecker <brobecker@adacore.com>
10110
10111 * dwarf2read.c (dwarf2_physname): Move commment.
10112
0625771b
LS
101132018-02-01 Leszek Swirski <leszeks@google.com>
10114
10115 * varobj.c (varobj_formatted_print_options): Allow recursive
10116 pretty printing if pretty printing is enabled.
10117
59498c30
LS
101182018-02-01 Leszek Swirski <leszeks@google.com>
10119
10120 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
10121 names after a structop as a filename.
10122
2d9e6acb
YQ
101232018-02-01 Yao Qi <yao.qi@linaro.org>
10124
10125 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
10126 (arm_record_coproc_data_proc): Likewise.
10127
df95a9cf
YQ
101282018-02-01 Yao Qi <yao.qi@linaro.org>
10129
10130 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
10131
07e5f5cf
NP
101322018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
10133
10134 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
10135 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
10136
3045b475
PA
101372018-01-31 Pedro Alves <palves@redhat.com>
10138
10139 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
10140 * inflow.c (child_terminal_save_inferior): Wrap reference to
10141 tcgetpgrp in HAVE_TERMIOS_H.
10142 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
10143 _WIN32.
10144 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
10145 always iterate over all inferiors.
10146 (gdbsim_cntrl_c): Adjust.
10147 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
10148
929b5ad4
JB
101492018-01-31 Joel Brobecker <brobecker@adacore.com>
10150
10151 * gdbtypes.c (lookup_array_range_type): Make sure the array's
10152 index type is objfile-owned if the element type is as well.
10153
29236ca2
JB
101542018-01-31 Joel Brobecker <brobecker@adacore.com>
10155
10156 GDB 8.1 released.
10157
c81e8879
PR
101582018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
10159
10160 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
10161 "features/s390x-linux64.c".
10162 (_initialize_s390_linux_tdep): Remove initialization of tdescs
10163 s390_linux32 and s390x_linux64.
10164 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
10165 default tdesc.
10166 * s390-tdep.c: Include "features/s390-linux32.c" and
10167 "features/s390x-linux64.c".
10168 (s390_tdesc_valid): Add check for tdesc_has_registers.
10169 (s390_gdbarch_init): Make sure there is always a valid tdesc.
10170 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
10171 tdesc_s390x_linux64.
10172 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
10173 tdesc_s390x_linux64 to...
10174 * s390-tdep.h: ...here.
10175
e671cd59
PA
101762018-01-30 Pedro Alves <palves@redhat.com>
10177
10178 PR gdb/13211
10179 * config.in, configure: Regenerate.
10180 * configure.ac: Check for getpgid.
10181 * go32-nat.c (go32_pass_ctrlc): New.
10182 (go32_target): Install it.
10183 * inf-child.c (inf_child_target): Install
10184 child_terminal_save_inferior, child_pass_ctrlc and
10185 child_interrupt.
10186 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
10187 (inf_ptrace_target): No longer install it.
10188 * infcmd.c (interrupt_target_1): Adjust.
10189 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
10190 (child_interrupt): Declare.
10191 (inferior::terminal_state): New.
10192 * inflow.c (struct terminal_info): Update comments.
10193 (inferior_process_group): Delete.
10194 (terminal_is_ours): Delete.
10195 (gdb_tty_state): New.
10196 (child_terminal_init): Adjust.
10197 (is_gdb_terminal, sharing_input_terminal_1)
10198 (sharing_input_terminal): New functions.
10199 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
10200 Set the process's actual process group in the foreground if
10201 possible. Handle is_ours_for_output/is_ours distinction. Don't
10202 mark terminal as the inferior's if not sharing GDB's terminal.
10203 Don't check attach_flag.
10204 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
10205 pass down a target_terminal_state.
10206 (child_terminal_save_inferior): New, factored out from ...
10207 (child_terminal_ours_1): ... this. Handle
10208 target_terminal_state::is_ours_for_output.
10209 (child_interrupt, child_pass_ctrlc): New.
10210 (inflow_inferior_exit): Clear the inferior's terminal_state.
10211 (copy_terminal_info): Copy the inferior's terminal state.
10212 (_initialize_inflow): Remove reference to terminal_is_ours.
10213 * inflow.h (inferior_process_group): Delete.
10214 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
10215 * procfs.c (procfs_target): Don't install procfs_interrupt.
10216 (procfs_interrupt): Delete.
10217 * remote.c (remote_serial_quit_handler): Adjust.
10218 (remote_interrupt): Remove ptid parameter. Adjust.
10219 * target-delegates.c: Regenerate.
10220 * target.c: Include "terminal.h".
10221 (target_terminal::terminal_state): Rename to ...
10222 (target_terminal::m_terminal_state): ... this.
10223 (target_terminal::init): Adjust.
10224 (target_terminal::inferior): Adjust to per-inferior
10225 terminal_state.
10226 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
10227 (target_terminal::ours, target_terminal::ours_for_output): Use
10228 target_terminal_is_ours_kind.
10229 (target_interrupt): Remove ptid parameter. Adjust.
10230 (default_target_pass_ctrlc): Adjust.
10231 * target.h (target_ops::to_terminal_save_inferior): New field.
10232 (target_ops::to_interrupt): Remove ptid_t parameter.
10233 (target_interrupt): Remove ptid_t parameter. Update comment.
10234 (target_pass_ctrlc): Update comment.
10235 * target/target.h (target_terminal_state): New scoped enum,
10236 factored out of ...
10237 (target_terminal::terminal_state): ... here.
10238 (target_terminal::inferior): Update comments.
10239 (target_terminal::restore_inferior): New.
10240 (target_terminal::is_inferior, target_terminal::is_ours)
10241 (target_terminal::is_ours_for_output): Adjust.
10242 (target_terminal::scoped_restore_terminal_state): Adjust to
10243 rename, and call restore_inferior() instead of inferior().
10244 (target_terminal::scoped_restore_terminal_state::m_state): Change
10245 type.
10246 (target_terminal::terminal_state): Rename to ...
10247 (target_terminal::m_terminal_state): ... this and change type.
10248
9c3a5d93
PA
102492018-01-30 Pedro Alves <palves@redhat.com>
10250
10251 * linux-nat.c (wait_for_signal): New function.
10252 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
10253 directly.
10254 (async_terminal_is_ours)
10255 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
10256 (linux_nat_add_target): Don't override
10257 to_terminal_inferior/to_terminal_ours.
10258
69ab5edb
SDJ
102592018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
10260
10261 * remote.c (remote_follow_fork): Don't call "detach_inferior".
10262
fc8e7e75
SM
102632018-01-28 Simon Marchi <simon.marchi@ericsson.com>
10264
10265 * dwarf2read.c (free_dwo_files): Add forward-declaration.
10266 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
10267 dwarf2_per_objfile_free here.
10268 (dwarf2_per_objfile_free): Remove.
10269 (_initialize_dwarf2_read): Don't register
10270 dwarf2_per_objfile_free as a registry cleanup.
10271
b2a426e2
EZ
102722018-01-27 Eli Zaretskii <eliz@gnu.org>
10273
10274 Avoid compilation errors in MinGW native builds
10275
10276 The error is triggered by including python-internal.h, and the
10277 error message is:
10278
10279 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
10280 from build-gnulib/import/math.h:27,
10281 from d:/usr/Python26/include/pyport.h:235,
10282 from d:/usr/Python26/include/Python.h:58,
10283 from python/python-internal.h:94,
10284 from python/py-arch.c:24:
10285 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
10286 using ::hypot;
10287 ^~~~~
10288
10289 This happens because Python headers define 'hypot' to expand t
10290 '_hypot' in the Windows builds.
10291 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
10292 'hypoth'. This avoids a compilation error.
10293
0bdd8eac
AH
102942018-01-26 Alan Hayward <alan.hayward@arm.com>
10295
10296 * MAINTAINERS (Write After Approval): Fix ordering.
10297
56ae9dc3
AH
102982018-01-26 Alan Hayward <alan.hayward@arm.com>
10299
10300 * MAINTAINERS (Write After Approval): Add Alan Hayward.
10301
7433498b
AM
103022018-01-26 Alan Modra <amodra@gmail.com>
10303
10304 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
10305 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
10306 Remove nop. Make const. Comment.
10307 (powerpc32_plt_stub_so_2): New.
10308 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
10309 Correct count. Update uses.
10310 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
10311 Move common code reading PLT entry word. Correct
10312 powerpc32_plt_stub PLT address calculation.
10313 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
10314 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
10315 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
10316 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
10317 (ppc64_standard_linkage8): Likewise.
10318 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
10319 Correct insns description.
10320 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
10321
0f59d5fc
PA
103222018-01-24 Pedro Alves <palves@redhat.com>
10323
10324 GCC PR libstdc++/83906
10325 * gdbtypes.c (operator==(const dynamic_prop &,
10326 const dynamic_prop &)): New.
10327 (operator==(const range_bounds &, const range_bounds &)): New.
10328 (check_types_equal): Use them instead of memcmp.
10329 * gdbtypes.h (operator==(const dynamic_prop &,
10330 const dynamic_prop &)): Declare.
10331 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
10332 (operator==(const range_bounds &, const range_bounds &)): Declare.
10333 (operator!=(const range_bounds &, const range_bounds &)): Declare.
10334
ef8914a4
PR
103352018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10336
10337 * s390-linux-tdep.c (s390_record_address_mask)
10338 (s390_record_calc_disp_common, s390_record_calc_disp)
10339 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10340 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10341 (s390_process_record): Move to s390-tdep.c.
10342 (s390_linux_init_abi_any): Adjust.
10343 * s390-tdep.c (s390_record_address_mask)
10344 (s390_record_calc_disp_common, s390_record_calc_disp)
10345 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10346 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10347 (s390_process_record): Moved from s390-linux-tdep.c
10348 (s390_gdbarch_init): Adjust.
10349
d6e58945
PR
103502018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10351
10352 * s390-linux-nat.c (s390-tdep.h): New include.
10353 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
10354 (HFILES_NO_SRCDIR): Add s390-tdep.h.
10355 (ALLDEPFILES): Add s390-tdep.c.
10356 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
10357 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
10358 * s390-tdep.h: ...this. New file.
10359 * s390-linux-tdep.c (s390-tdep.h): New include.
10360 (_initialize_s390_tdep): Rename to...
10361 (_initialize_s390_linux_tdep): ...this and adjust.
10362 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
10363 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
10364 s390-tdep.h.
10365 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
10366 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
10367 (s390_is_partial_instruction, s390_software_single_step)
10368 (is_non_branch_ril, s390_displaced_step_copy_insn)
10369 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
10370 (s390_prologue_data, s390_addr, s390_store, s390_load)
10371 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
10372 (s390_register_call_saved, s390_guess_tracepoint_registers)
10373 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
10374 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
10375 (s390_pseudo_register_name, s390_pseudo_register_type)
10376 (s390_pseudo_register_read, s390_pseudo_register_write)
10377 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
10378 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
10379 (s390_addr_bits_remove, s390_address_class_type_flags)
10380 (s390_address_class_type_flags_to_name)
10381 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
10382 (s390_function_arg_float, s390_function_arg_vector)
10383 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
10384 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
10385 (s390_frame_align, s390_register_return_value, s390_return_value)
10386 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
10387 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
10388 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
10389 (s390_trad_frame_prev_register, s390_unwind_cache)
10390 (s390_prologue_frame_unwind_cache)
10391 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
10392 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
10393 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
10394 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
10395 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
10396 (s390_frame_base_address, s390_local_base_address)
10397 (s390_frame_base, s390_gcc_target_options)
10398 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
10399 (s390_validate_reg_range, s390_tdesc_valid)
10400 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
10401 * s390-tdep.c: ...this. New file.
10402
9c0b896e
PR
104032018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10404
10405 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
10406 (s390_process_record, s390_gdbarch_tdep_alloc)
10407 (s390_linux_init_abi_any): Use/set new hook.
10408
7042632b
PR
104092018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10410
10411 * s390-linux-tdep.c (osabi.h): New include.
10412 (s390_linux_init_abi_31, s390_linux_init_abi_64)
10413 (s390_linux_init_abi_any): New functions.
10414 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
10415
650f5e13
PR
104162018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10417
10418 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
10419 tdesc_has_registers check
10420
47c9317e
PR
104212018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10422
10423 * s390-linux-tdep.c (s390_tdesc_valid): New function.
10424 (s390_validate_reg_range): New macro.
10425 (s390_gdbarch_init): Adjust.
10426
095085d8
PR
104272018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10428
10429 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
10430 (s390_gdbarch_tdep_alloc): Adjust.
10431 (s390_gdbarch_init): Adjust.
10432
ab9bcc67
PR
104332018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10434
10435 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
10436 <have_tdb>: Change type to bool.
10437 (s390_gdbarch_tdep_alloc): Adjust.
10438 (s390_gdbarch_init): Adjust.
10439
21f6f5ff
PR
104402018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10441
10442 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
10443 (gdbarch_tdep) <have_upper, have_vx>: New fields.
10444 (s390_gdbarch_tdep_alloc): New function.
10445 (s390_gdbarch_init): Allocate tdep at start and use its fields
10446 instead of separate variables.
10447
0eb97953
PR
104482018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10449
10450 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
10451 when looking for cached gdbarch and add comment for remaining.
10452
5c319bb2
PA
104532018-01-22 Pedro Alves <palves@redhat.com>
10454 Sergio Durigan Junior <sergiodj@redhat.com>
10455
10456 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
10457 case.
10458
d65ce302
MR
104592018-01-22 Maciej W. Rozycki <macro@mips.com>
10460
10461 * MAINTAINERS: Update my company e-mail address.
10462
ec7a5fcb
YQ
104632018-01-22 Yao Qi <yao.qi@linaro.org>
10464
10465 * regcache.c (cooked_write_test): New function.
10466 (_initialize_regcache): Register the test.
10467
11f57cb6
YQ
104682018-01-22 Yao Qi <yao.qi@linaro.org>
10469
10470 * ia64-tdep.c (ia64_pseudo_register_read): Call
10471 regcache->cooked_read instead of regcache_cooked_read_unsigned.
10472 * m32c-tdep.c (m32c_cat_read): Likewise.
10473 (m32c_r3r2r1r0_read): Likewise.
10474 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
10475 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10476
03f50fc8
YQ
104772018-01-22 Yao Qi <yao.qi@linaro.org>
10478
10479 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
10480 method raw_read instead of regcache_raw_read.
10481 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
10482 * arm-tdep.c (arm_neon_quad_read): Likewise.
10483 * avr-tdep.c (avr_pseudo_register_read): Likewise.
10484 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
10485 * frv-tdep.c (frv_pseudo_register_read): Likewise.
10486 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
10487 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
10488 (i386_pseudo_register_read_into_value): Likewise.
10489 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
10490 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
10491 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
10492 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
10493 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
10494 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10495 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10496 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10497 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
10498
dc711524
YQ
104992018-01-22 Yao Qi <yao.qi@linaro.org>
10500
10501 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
10502 * configure.tgt: Remove target mt.
10503 * mt-tdep.c: Remove.
10504 * regcache.c (cooked_read_test): Remove the check for mt.
10505
3f5a868b
YQ
105062018-01-22 Yao Qi <yao.qi@linaro.org>
10507
10508 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
10509 instead of gdbarch_pseudo_register_read_value.
10510
de4cb04a
JB
105112018-01-22 Joel Brobecker <brobecker@adacore.com>
10512
10513 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
10514 language is Ada.
10515
a9e40818
JB
105162018-01-22 Joel Brobecker <brobecker@adacore.com>
10517
10518 * linespec.c (create_sals_line_offset): Remove code that preserved
10519 the symtab_and_line's line number.
10520
e707fc44
AB
105212018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10522
10523 * varobj.c (varobj_create): Don't set valid_block when creating a
10524 floating varobj.
10525
03d0bf7b
AB
105262018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10527
10528 * varobj.c (varobj_create): Remove out of date comment.
10529
ae451627
AB
105302018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10531
10532 PR mi/20395
10533 * ada-exp.y (write_var_from_sym): Pass extra parameter when
10534 updating innermost block.
10535 * parse.c (innermost_block_tracker::update): Take extra type
10536 parameter, and check types match before updating innermost block.
10537 (write_dollar_variable): Update innermost block for registers.
10538 * parser-defs.h (enum innermost_block_tracker_type): New enum.
10539 (innermost_block_tracker::innermost_block_tracker): Initialise
10540 m_types member.
10541 (innermost_block_tracker::reset): Take type parameter.
10542 (innermost_block_tracker::update): Take type parameter, and pass
10543 type through as needed.
10544 (innermost_block_tracker::m_types): New member.
10545 * varobj.c (varobj_create): Pass type when reseting innermost
10546 block.
10547
aee1fcdf
AB
105482018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10549
10550 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
10551 * ada-lang.c (resolve_subexp): Likewise.
10552 * breakpoint.c (set_breakpoint_condition) Likewise.
10553 (watch_command_1) Likewise.
10554 * c-exp.y (variable): Likewise.
10555 * d-exp.y (PrimaryExpression): Likewise.
10556 * f-exp.y (variable): Likewise.
10557 * go-exp.y (variable): Likewise.
10558 * m2-exp.y (variable): Likewise.
10559 * objfiles.c (objfile::~objfile): Likewise.
10560 * p-exp.y (variable): Likewise.
10561 * parse.c (innermost_block): Change type.
10562 * parser-defs.h (class innermost_block_tracker): New.
10563 (innermost_block): Change to innermost_block_tracker.
10564 * printcmd.c (display_command): Switch to innermost_block API.
10565 (do_one_display): Likewise.
10566 * rust-exp.y (do_one_display): Likewise.
10567 * symfile.c (clear_symtab_users): Likewise.
10568 * varobj.c (varobj_create): Switch to innermost_block API, replace
10569 use of innermost_block with block stored on varobj object.
10570
396af9a1
AB
105712018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10572
10573 * expression.h (innermost_block): Remove declaration.
10574 * varobj.c: Add 'parser-defs.h' include.
10575
fcfcc376
TT
105762018-01-19 Tom Tromey <tom@tromey.com>
10577
10578 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
10579 symbols in the static and global blocks.
10580
5a6c3296
JC
105812018-01-19 James Clarke <jrtc27@jrtc27.com>
10582
10583 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
10584 gdb_ptrace.h, and move including gdb_wait.h ...
10585 * nat/linux-ptrace.h: ... to here.
10586
bc09b0c1
SM
105872018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10588
10589 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
10590 inf_ptrace_detach_success.
10591 (inf_ptrace_detach_success): Add inferior parameter, use it
10592 instead of inferior_ptid, pass it to detach_inferior.
10593 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
10594 parameter.
10595 * inferior.c (detach_inferior): Add overload that takes an
10596 inferior object.
10597 * inferior.h (detach_inferior): Likewise.
10598 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
10599 use inferior_ptid, adjust call to inf_ptrace_detach_success.
10600 * linux-thread-db.c (thread_db_detach): Use inf parameter.
10601
6e1e1966
SM
106022018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10603
10604 * target.h (struct target_ops) <to_detach>: Add inferior
10605 parameter.
10606 (target_detach): Likewise.
10607 * target.c (dispose_inferior): Pass inferior down.
10608 (target_detach): Pass inferior down. Assert that it is equal to
10609 the current inferior.
10610 * aix-thread.c (aix_thread_detach): Pass inferior down.
10611 * corefile.c (core_file_command): Pass current_inferior() down.
10612 * corelow.c (core_detach): Add inferior parameter.
10613 * darwin-nat.c (darwin_detach): Likewise.
10614 * gnu-nat.c (gnu_detach): Likewise.
10615 * inf-ptrace.c (inf_ptrace_detach): Likewise.
10616 * infcmd.c (detach_command): Pass current_inferior() down to
10617 target_detach.
10618 * infrun.c (follow_fork_inferior): Pass parent_inf to
10619 target_detach.
10620 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
10621 target_detach.
10622 * linux-nat.c (linux_nat_detach): Add inferior parameter.
10623 * linux-thread-db.c (thread_db_detach): Likewise.
10624 * nto-procfs.c (procfs_detach): Likewise.
10625 * procfs.c (procfs_detach): Likewise.
10626 * record.c (record_detach): Likewise.
10627 * record.h (struct inferior): Forward-declare.
10628 (record_detach): Add inferior parameter.
10629 * remote-sim.c (gdbsim_detach): Likewise.
10630 * remote.c (remote_detach_1): Likewise.
10631 (remote_detach): Likewise.
10632 (extended_remote_detach): Likewise.
10633 * sol-thread.c (sol_thread_detach): Likewise.
10634 * target-debug.h (target_debug_print_inferior_p): New macro.
10635 * target-delegates.c: Re-generate.
10636 * top.c (kill_or_detach): Pass inferior down to target_detach.
10637 * windows-nat.c (windows_detach): Add inferior parameter.
10638
6bd6f3b6
SM
106392018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10640
10641 * target.h (struct target_ops) <to_detach>: Remove args
10642 parameter.
10643 (target_detach): Likewise.
10644 * target.c (dispose_inferior): Adjust.
10645 (target_detach): Remove args parameter, adjust.
10646 * aix-thread.c (aix_thread_detach): Adjust.
10647 * corefile.c (core_file_command): Adjust.
10648 * corelow.c (core_detach): Adjust.
10649 * darwin-nat.c (darwin_detach): Adjust.
10650 * gnu-nat.c (gnu_detach): Adjust.
10651 * inf-ptrace.c (inf_ptrace_detach): Adjust.
10652 * infcmd.c (detach_command): Adjust
10653 * infrun.c (follow_fork_inferior): Adjust.
10654 (handle_vfork_child_exec_or_exit): Adjust.
10655 * linux-fork.c (linux_fork_detach): Remove args parameter.
10656 * linux-fork.h (linux_fork_detach): Likewise.
10657 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
10658 * linux-thread-db.c (thread_db_detach): Likewise.
10659 * nto-procfs.c (procfs_detach): Likewise.
10660 * procfs.c (procfs_detach): Likewise.
10661 (do_detach): Remove signo parameter.
10662 * record.c (record_detach): Remove args parameter.
10663 * record.h (record_detach): Likewise.
10664 * remote-sim.c (gdbsim_detach): Likewise.
10665 * remote.c (remote_detach_1): Likewise.
10666 (remote_detach): Likewise.
10667 (extended_remote_detach): Likewise.
10668 * sol-thread.c (sol_thread_detach): Likewise.
10669 * target-delegates.c: Re-generate.
10670 * top.c (struct qt_args) <args>: Remove field.
10671 (kill_or_detach): Don't pass args.
10672 (quit_force): Don't set args.
10673 * windows-nat.c (windows_detach): Remove args parameter.
10674
88af8ea8
YQ
106752018-01-19 Yao Qi <yao.qi@linaro.org>
10676
10677 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
10678 (arm_linux_init_abi): Install it.
10679
dea445b9
YQ
106802018-01-19 Yao Qi <yao.qi@linaro.org>
10681
10682 * osabi.c (gdb_osabi_names): Extend the regexp for
10683 arm-linux-gnueabihf.
10684
4a17f768
YQ
106852018-01-18 Yao Qi <yao.qi@linaro.org>
10686
10687 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
10688 m_abbrevs.
10689 (abbrev_table::add_abbrev): Update.
10690 (abbrev_table::lookup_abbrev): Update.
10691
d679c21a
YQ
106922018-01-18 Yao Qi <yao.qi@linaro.org>
10693
10694 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
10695
7d937cad
SDJ
106962018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10697
10698 * compile/compile.c (compile_to_object): Convert "triplet_rx"
10699 to "std::string".
10700
9e14690d
TT
107012018-01-17 Tom Tromey <tom@tromey.com>
10702
10703 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
10704
50a82047
TT
107052018-01-17 Tom Tromey <tom@tromey.com>
10706
10707 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
10708 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
10709 (create_array_type_with_stride): Update.
10710 * dwarf2read.c (set_die_type): Update.
10711
c89b44cd
TT
107122018-01-17 Tom Tromey <tom@tromey.com>
10713
10714 * dwarf2read.c (delayed_method_info): Remove typedef.
10715 (dwarf2_cu::method_info): Now a std::vector.
10716 (add_to_method_list): Update.
10717 (free_delayed_list): Remove.
10718 (compute_delayed_physnames): Update.
10719 (process_full_comp_unit, process_full_type_unit): Clear the method
10720 list. Remove cleanups.
10721 (psymtab_include_file_name): Add name_holder parameter. Use
10722 unique_xmalloc_ptr.
10723 (dwarf_decode_lines): Update.
10724
fcd3b13d
SM
107252018-01-17 Tom Tromey <tom@tromey.com>
10726 Simon Marchi <simon.marchi@ericsson.com>
10727
10728 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
10729 (dwarf2_per_objfile::free_cached_comp_units)
10730 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
10731 (init_cutu_and_read_dies_no_follow): Update.
10732 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
10733 (dwarf2_cu::~dwarf2_cu): New.
10734 (free_heap_comp_unit, free_stack_comp_unit): Remove.
10735 (age_cached_comp_units, free_one_cached_comp_unit): Update.
10736
685af9cd
TT
107372018-01-17 Tom Tromey <tom@tromey.com>
10738 Simon Marchi <simon.marchi@ericsson.com>
10739
10740 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
10741 (struct die_reader_specs) <abbrev_table>: New member.
10742 (struct abbrev_table): Add constructor.
10743 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
10744 <abbrev_obstack>: Now an auto_obstack.
10745 (abbrev_table_up): New typedef.
10746 (init_cu_die_reader): Add abbrev_table parameter.
10747 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
10748 Add result_dwo_abbrev_table.
10749 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
10750 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
10751 Update.
10752 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
10753 parameter.
10754 (skip_children): Update.
10755 (abbrev_table::alloc_abbrev): Rename from
10756 abbrev_table_alloc_abbrev.
10757 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
10758 (abbrev_table::lookup_abbrev): Rename from
10759 abbrev_table_lookup_abbrev.
10760 (abbrev_table_read_table): Return abbrev_table_up.
10761 (abbrev_table_free, abbrev_table_free_cleanup)
10762 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
10763 (load_partial_dies): Update.
10764
5e2db402
TT
107652018-01-17 Tom Tromey <tom@tromey.com>
10766
10767 * dwarf2read.c (dwarf2_compute_name): Update comment.
10768 (read_func_scope, read_variable): Update.
10769 (new_symbol): Remove.
10770 (new_symbol_full): Rename to new_symbol.
10771
ee7f689e 107722018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
10773
10774 PR gdb/16577
10775 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
10776 a warning instead of throwing an error, set section size to 0 and return
10777 NULL.
10778 * gdb_bfd.h (gdb_bfd_map_section): Update description.
10779
4d9b86e1
SM
107802018-01-17 Simon Marchi <simon.marchi@ericsson.com>
10781
10782 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
10783 std::string.
10784 (linux_ptrace_attach_fail_reason_string): Likewise.
10785 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
10786 Likewise.
10787 (linux_ptrace_attach_fail_reason_string): Likewise.
10788 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
10789
a7b2d0fb
SM
107902018-01-17 Simon Marchi <simon.marchi@ericsson.com>
10791
10792 * linux-nat.c (linux_nat_attach): Remove xstrdup.
10793
f517c180
EA
107942018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
10795
10796 PR gdb/21559
10797 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
10798 checking for fs_base/gs_base fields in struct user_regs_struct.
10799 * configure: Regenerate.
10800
7045b1ca
YQ
108012018-01-17 Yao Qi <yao.qi@linaro.org>
10802
10803 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
10804 function.
10805 (aarch64_linux_init_abi): Install it to gdbarch hook
10806 gcc_target_options.
10807
db422fb2
PA
108082018-01-15 Pedro Alves <palves@redhat.com>
10809
10810 * common/signals-state-save-restore.c
10811 (save_original_signals_state): Fix typos.
10812
ba643918
SDJ
108132017-01-12 Tom Tromey <tom@tromey.com>
10814 Sergio Durigan Junior <sergiodj@redhat.com>
10815
10816 * Makefile.in (install-only): Install gdb-add-index.
10817
906b4aac
JB
108182018-01-12 John Baldwin <jhb@FreeBSD.org>
10819
10820 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
10821
bdf2a94a
AA
108222018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
10823
10824 * infrun.c (keep_going_pass_signal): Clear step-over info when
10825 insert_breakpoints fails.
10826
71d378ae
PA
108272018-01-11 Pedro Alves <palves@redhat.com>
10828
10829 PR gdb/22583
10830 * infrun.c (resume): Rename to ...
10831 (resume_1): ... this.
10832 (resume): Reimplement as wrapper around resume_1.
10833
3cada740
PA
108342018-01-11 Pedro Alves <palves@redhat.com>
10835
10836 PR remote/22597
10837 * remote.c (remote_parse_stop_reply): Default to the last-set
10838 general thread instead of to 'magic_null_ptid'.
10839
618daa93
PA
108402018-01-10 Pedro Alves <palves@redhat.com>
10841
10842 * language.h (language_get_symbol_name_matcher): Rename ...
10843 (get_symbol_name_matcher): ... this.
10844 * language.c (language_get_symbol_name_matcher): Ditto.
10845 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
10846 callers adjusted.
10847
c63d3e8d
PA
108482018-01-10 Pedro Alves <palves@redhat.com>
10849
10850 PR gdb/22670
10851 * dwarf2read.c
10852 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
10853 Adjust to use language_get_symbol_name_matcher instead of
10854 language_defn::la_get_symbol_name_matcher.
10855 * language.c (language_get_symbol_name_matcher): If in Ada mode
10856 and the lookup name is a verbatim match, return Ada's matcher.
10857 * language.h (language_get_symbol_name_matcher): Adjust comment.
10858 (ada_lookup_name_info::verbatim_p):: New method.
10859
d4c2a405
PA
108602018-01-10 Pedro Alves <palves@redhat.com>
10861
10862 PR gdb/22670
10863 * ada-lang.c (ada_collect_symbol_completion_matches): If the
10864 minsym's language is language_auto or language_cplus, pass down
10865 language_ada instead.
10866 * symtab.c (compare_symbol_name): Don't frob symbol language here.
10867
8825213e
PA
108682018-01-10 Pedro Alves <palves@redhat.com>
10869
10870 PR gdb/22670
10871 * minsyms.c (linkage_name_str): New function.
10872 (iterate_over_minimal_symbols): Use it.
10873
2d97a5d9
JB
108742018-01-09 John Baldwin <jhb@FreeBSD.org>
10875
10876 * NEWS: Document that 'info proc' now works on FreeBSD.
10877
92fce24d
JB
108782018-01-09 John Baldwin <jhb@FreeBSD.org>
10879
10880 * configure.ac: Check for kinfo_getfile in libutil.
10881 * configure: Regenerate.
10882 * config.in: Regenerate.
10883 * fbsd-nat.c: Include "fbsd-tdep.h".
10884 (fbsd_fetch_cmdline): New.
10885 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
10886 rather than calling error.
10887 (fbsd_info_proc): New.
10888 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
10889 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
10890 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
10891
262f62f5
JB
108922018-01-09 John Baldwin <jhb@FreeBSD.org>
10893
10894 * fbsd-nat.c (struct free_deleter): Remove.
10895 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
10896
b999e203
JB
108972018-01-09 John Baldwin <jhb@FreeBSD.org>
10898
10899 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
10900 NULL for an empty pathname.
10901
d2176225
JB
109022018-01-09 John Baldwin <jhb@FreeBSD.org>
10903
10904 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
10905 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
10906 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10907 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10908 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
10909 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
10910 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
10911 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
10912 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
10913 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
10914 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
10915 (fbsd_core_fetch_timeval, fbsd_print_sigset)
10916 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
10917 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
10918 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
10919
9c4ac400
ST
109202018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10921
10922 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
10923 (gnu_xfer_auxv): New function.
10924 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
10925 TARGET_OBJECT_AUXV.
10926
1e5ded6c
YQ
109272018-01-08 Yao Qi <yao.qi@linaro.org>
10928 Simon Marchi <simon.marchi@ericsson.com>
10929
10930 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
10931 common/selftest.c.
10932 (COMMON_OBS): Remove selftest.o.
10933 * configure.ac: Append selftest-arch.c and common/selftest.c to
10934 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
10935 * configure: Re-generated.
10936 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
10937 GDB_SELF_TEST.
10938 (maintenance_info_selftests): Likewise.
10939
04bafb1e
XR
109402018-01-08 Xavier Roirand <roirand@adacore.com>
10941
10942 * ada-valprint.c (val_print_packed_array_elements): Use
10943 proper number of elements when printing an array indexed
10944 by an enumeration type.
10945
518817b3
SM
109462018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
10947
10948 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
10949 (dw2_get_file_names_reader): Adjust.
10950 (lookup_dwo_signatured_type): Adjust.
10951 (lookup_dwp_signatured_type): Adjust.
10952 (lookup_signatured_type): Adjust.
10953 (create_type_unit_group): Adjust.
10954 (get_type_unit_group): Adjust.
10955 (process_psymtab_comp_unit_reader): Adjust.
10956 (build_type_psymtabs_reader): Adjust.
10957 (scan_partial_symbols): Adjust.
10958 (add_partial_symbol): Adjust.
10959 (add_partial_subprogram): Adjust.
10960 (peek_die_abbrev): Adjust.
10961 (fixup_go_packaging): Adjust.
10962 (process_imported_unit_die): Adjust.
10963 (dwarf2_compute_name): Adjust.
10964 (dwarf2_physname): Adjust.
10965 (read_import_statement): Adjust.
10966 (handle_DW_AT_stmt_list): Adjust.
10967 (read_file_scope): Adjust.
10968 (read_func_scope): Adjust.
10969 (read_lexical_block_scope): Adjust.
10970 (read_call_site_scope): Adjust.
10971 (read_variable): Adjust.
10972 (dwarf2_rnglists_process): Adjust.
10973 (dwarf2_ranges_process): Adjust.
10974 (dwarf2_ranges_read): Adjust.
10975 (dwarf2_get_pc_bounds): Adjust.
10976 (dwarf2_record_block_ranges): Adjust.
10977 (dwarf2_add_field): Adjust.
10978 (dwarf2_add_member_fn): Adjust.
10979 (read_structure_type): Adjust.
10980 (process_structure_scope): Adjust.
10981 (read_enumeration_type): Adjust.
10982 (read_array_type): Adjust.
10983 (mark_common_block_symbol_computed): Adjust.
10984 (read_common_block): Adjust.
10985 (read_namespace_type): Adjust.
10986 (read_namespace): Adjust.
10987 (read_module_type): Adjust.
10988 (read_tag_pointer_type): Adjust.
10989 (read_tag_ptr_to_member_type): Adjust.
10990 (read_tag_string_type): Adjust.
10991 (read_subroutine_type): Adjust.
10992 (read_typedef): Adjust.
10993 (read_base_type): Adjust.
10994 (attr_to_dynamic_prop): Adjust.
10995 (read_subrange_type): Adjust.
10996 (read_unspecified_type): Adjust.
10997 (dwarf2_read_abbrevs): Adjust.
10998 (load_partial_dies): Adjust.
10999 (read_partial_die): Adjust.
11000 (find_partial_die): Adjust.
11001 (guess_partial_die_structure_name): Adjust.
11002 (fixup_partial_die): Adjust.
11003 (read_attribute_value): Adjust.
11004 (read_addr_index): Adjust.
11005 (read_addr_index_from_leb128): Adjust.
11006 (read_str_index): Adjust.
11007 (dwarf2_string_attr): Adjust.
11008 (get_debug_line_section): Adjust.
11009 (dwarf_decode_line_header): Adjust.
11010 (lnp_state_machine::check_line_address): Adjust.
11011 (dwarf_decode_lines_1): Adjust.
11012 (dwarf_decode_lines): Adjust.
11013 (dwarf2_start_symtab): Adjust.
11014 (var_decode_location): Adjust.
11015 (new_symbol_full): Adjust.
11016 (dwarf2_const_value_data): Adjust.
11017 (dwarf2_const_value_attr): Adjust.
11018 (dwarf2_const_value): Adjust.
11019 (die_type): Adjust.
11020 (die_containing_type): Adjust.
11021 (build_error_marker_type): Adjust.
11022 (lookup_die_type): Adjust.
11023 (guess_full_die_structure_name): Adjust.
11024 (anonymous_struct_prefix): Adjust.
11025 (determine_prefix): Adjust.
11026 (dwarf2_name): Adjust.
11027 (follow_die_ref_or_sig): Adjust.
11028 (follow_die_offset): Adjust.
11029 (follow_die_ref): Adjust.
11030 (follow_die_sig_1): Adjust.
11031 (follow_die_sig): Adjust.
11032 (get_signatured_type): Adjust.
11033 (get_DW_AT_signature_type): Adjust.
11034 (decode_locdesc): Adjust.
11035 (dwarf_decode_macros): Adjust.
11036 (cu_debug_loc_section): Adjust.
11037 (fill_in_loclist_baton): Adjust.
11038 (dwarf2_symbol_mark_computed): Adjust.
11039 (init_one_comp_unit): Don't assign
11040 dwarf2_cu::dwarf2_per_objfile.
11041 (set_die_type): Adjust.
11042
ed2dc618
SM
110432018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11044
11045 * dwarf2read.c (struct mapped_debug_names): Add constructor.
11046 <dwarf2_per_objfile>: New field.
11047 (dwarf2_per_objfile): Remove global.
11048 (get_dwarf2_per_objfile): New function.
11049 (set_dwarf2_per_objfile): New function.
11050 (dwarf2_build_psymtabs_hard): Change objfile parameter to
11051 dwarf2_per_objfile.
11052 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
11053 (read_abbrev_offset): Likewise.
11054 (read_indirect_string): Likewise.
11055 (read_indirect_line_string): Likewise.
11056 (read_indirect_string_at_offset): Likewise.
11057 (read_indirect_string_from_dwz): Likewise.
11058 (dwarf2_find_containing_comp_unit): Change objfile parameter to
11059 dwarf2_per_objfile.
11060 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
11061 (create_all_comp_units): Change objfile parameter to
11062 dwarf2_per_objfile.
11063 (create_all_type_units): Likewise.
11064 (process_queue): Add dwarf2_per_objfile parameter.
11065 (read_and_check_comp_unit_head): Likewise.
11066 (lookup_dwo_unit_in_dwp): Likewise.
11067 (get_dwp_file): Likewise.
11068 (process_cu_includes): Likewise.
11069 (struct free_dwo_file_cleanup_data): New struct.
11070 (dwarf2_has_info): Use get_dwarf2_per_objfile and
11071 set_dwarf2_per_objfile.
11072 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
11073 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
11074 context, adjust calls.
11075 (dw2_instantiate_symtab): Likewise.
11076 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
11077 (dw2_get_cu): Likewise.
11078 (create_cu_from_index_list): Change objfile parameter to
11079 dwarf2_per_objfile.
11080 (create_cus_from_index_list): Get dwarf2_per_objfile from
11081 context, adjust calls.
11082 (create_cus_from_index): Likewise.
11083 (create_signatured_type_table_from_index): Change objfile
11084 parameter to dwarf2_per_objfile.
11085 (create_signatured_type_table_from_debug_names): Change objfile
11086 parameter to dwarf2_per_objfile.
11087 (create_addrmap_from_index): Likewise.
11088 (create_addrmap_from_aranges): Likewise.
11089 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
11090 (dw2_setup): Remove.
11091 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
11092 context.
11093 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
11094 get_dwarf2_per_objfile.
11095 (dw2_forget_cached_source_info): Likewise.
11096 (dw2_map_symtabs_matching_filename): Likewise.
11097 (struct dw2_symtab_iterator) <index>: Remove.
11098 <dwarf2_per_objfile>: New field.
11099 (dw2_symtab_iter_init): Replace index parameter with
11100 dwarf2_per_objfile.
11101 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
11102 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
11103 (dw2_print_stats): Likewise.
11104 (dw2_dump): Likewise.
11105 (dw2_expand_symtabs_for_function): Likewise.
11106 (dw2_expand_all_symtabs): Likewise.
11107 (dw2_expand_symtabs_with_fullname): Likewise.
11108 (dw2_expand_marked_cus): Replace index and objfile parameters
11109 with dwarf2_per_objfile.
11110 (dw_expand_symtabs_matching_file_matcher): Add
11111 dwarf2_per_objfile parameter and adjust calls.
11112 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
11113 adjust calls.
11114 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
11115 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
11116 adjust calls.
11117 (create_cus_from_debug_names_list): Replace objfile parameter
11118 with dwarf2_per_objfile and adjust calls.
11119 (create_cus_from_debug_names): Likewise.
11120 (dwarf2_read_debug_names): Likewise.
11121 (mapped_debug_names::namei_to_name): Adjust call.
11122 (dw2_debug_names_iterator::next): Likewise.
11123 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
11124 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
11125 (dw2_debug_names_dump): Likewise.
11126 (dw2_debug_names_expand_symtabs_for_function): Likewise.
11127 (dw2_debug_names_expand_symtabs_matching): Likewise.
11128 (dwarf2_initialize_objfile): Likewise.
11129 (dwarf2_build_psymtabs): Likewise.
11130 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
11131 this_cu.
11132 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
11133 (read_and_check_comp_unit_head): Likewise.
11134 (read_abbrev_offset): Likewise.
11135 (create_debug_type_hash_table): Likewise.
11136 (create_debug_types_hash_table): Likewise.
11137 (create_all_type_units): Replace objfile parameter with
11138 dwarf2_per_objfile.
11139 (add_type_unit): Add dwarf2_per_objfile parameter.
11140 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
11141 with dwarf2_per_objfile.
11142 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
11143 (lookup_dwp_signatured_type): Likewise.
11144 (lookup_signatured_type): Likewise.
11145 (read_cutu_die_from_dwo): Likewise.
11146 (init_tu_and_read_dwo_dies): Likewise.
11147 (init_cutu_and_read_dies): Likewise.
11148 (init_cutu_and_read_dies_no_follow): Likewise.
11149 (allocate_type_unit_groups_table): Add objfile parameter.
11150 (create_type_unit_group): Use dwarf2_per_objfile from cu.
11151 (get_type_unit_group): Likewise.
11152 (process_psymtab_comp_unit): Update call.
11153 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
11154 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
11155 (print_tu_stats): Likewise.
11156 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
11157 in void* parameter.
11158 (build_type_psymtabs): Change objfile parameter to
11159 dwarf2_per_objfile.
11160 (process_skeletonless_type_unit): Use dwarf2_per_objfile
11161 passed in void* parameter.
11162 (process_skeletonless_type_units): Change objfile parameter to
11163 dwarf2_per_objfile.
11164 (set_partial_user): Likewise.
11165 (dwarf2_build_psymtabs_hard): Likewise.
11166 (read_comp_units_from_section): Likewise.
11167 (create_all_comp_units): Likewise.
11168 (scan_partial_symbols): Update calls.
11169 (add_partial_symbol): Likewise.
11170 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
11171 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
11172 (process_queue): Add dwarf2_per_objfile parameter.
11173 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
11174 (compute_compunit_symtab_includes): Likewise.
11175 (process_cu_includes): Add dwarf2_per_objfile parameter.
11176 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
11177 (process_full_type_unit): Likewise.
11178 (process_imported_unit_die): Update call.
11179 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
11180 (read_file_scope): Likewise.
11181 (allocate_dwo_file_hash_table): Add objfile parameter.
11182 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
11183 (create_cus_hash_table): Likewise.
11184 (create_dwp_hash_table): Likewise.
11185 (create_dwo_unit_in_dwp_v1): Likewise.
11186 (create_dwp_v2_section): Likewise.
11187 (create_dwo_unit_in_dwp_v2): Likewise.
11188 (lookup_dwo_unit_in_dwp): Likewise.
11189 (try_open_dwop_file): Likewise.
11190 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
11191 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
11192 cleanup to include a reference to dwarf2_per_objfile.
11193 (open_dwp_file): Add dwarf2_per_objfile parameter.
11194 (open_and_init_dwp_file): Likewise.
11195 (get_dwp_file): Likewise.
11196 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
11197 (queue_and_load_all_dwo_tus): Update call.
11198 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
11199 data.
11200 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
11201 (dwarf2_ranges_process): Likewise.
11202 (dwarf2_get_pc_bounds): Likewise.
11203 (mark_common_block_symbol_computed): Likewise.
11204 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
11205 (dwarf2_read_abbrevs): Update call.
11206 (read_partial_die): Use dwarf2_per_objfile from cu.
11207 (find_partial_die): Likewise.
11208 (fixup_partial_die): Likewise.
11209 (read_attribute_value): Likewise.
11210 (read_indirect_string_at_offset_from): Add objfile parameter.
11211 (read_indirect_string_at_offset): Add dwarf2_per_objfile
11212 parameter.
11213 (read_indirect_string_from_dwz): Add objfile parameter.
11214 (read_indirect_string): Add objfile parameter.
11215 (read_addr_index_1): Add dwarf2_per_objfile parameter.
11216 (read_addr_index): Use dwarf2_per_objfile from cu.
11217 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
11218 call dw2_setup.
11219 (read_str_index): Use dwarf2_per_objfile from cu.
11220 (get_debug_line_section): Likewise.
11221 (read_formatted_entries): Add dwarf2_per_objfile parameter.
11222 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
11223 (new_symbol_full): Use dwarf2_per_objfile from cu.
11224 (build_error_marker_type): Likewise.
11225 (lookup_die_type): Likewise.
11226 (determine_prefix): Likewise.
11227 (follow_die_offset): Likewise.
11228 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
11229 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
11230 (dwarf2_fetch_die_type_sect_off): Likewise.
11231 (dwarf2_get_die_type): Likewise.
11232 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
11233 (get_signatured_type): Likewise.
11234 (get_DW_AT_signature_type): Likewise.
11235 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
11236 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
11237 (cu_debug_loc_section): Likewise.
11238 (fill_in_loclist_baton): Likewise.
11239 (dwarf2_symbol_mark_computed): Likewise.
11240 (dwarf2_find_containing_comp_unit): Change objfile parameter to
11241 dwarf2_per_objfile.
11242 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
11243 parameter.
11244 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
11245 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
11246 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
11247 (set_die_type): Use dwarf2_free_objfile from cu.
11248 (get_die_type_at_offset): Likewise.
11249 (dwarf2_per_objfile_free): Don't assign global variable.
11250 (debug_names) <constructor>: Add dwarf2_per_objfile
11251 parameter, update m_debugstrlookup construction.
11252 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
11253 parameter.
11254 <m_dwarf2_per_objfile>: New field.
11255 <lookup>: Use m_dwarf2_per_objfile.
11256 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
11257 (psyms_seen_size): Likewise.
11258 (write_gdbindex): Replace objfile parameter with
11259 dwarf2_per_objfile.
11260 (write_debug_names): Likewise.
11261 (write_psymtabs_to_index): Likewise.
11262 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
11263 calls.
11264
e3b94546
SM
112652018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11266
11267 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
11268 <dwarf2_per_objfile>: New field.
11269 (struct dwarf2_per_cu_data) <objfile>: Remove.
11270 <dwarf2_per_objfile>: New field.
11271 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
11272 of objfile.
11273 (create_signatured_type_table_from_index): Likewise.
11274 (create_debug_type_hash_table): Likewise.
11275 (fill_in_sig_entry_from_dwo_entry): Likewise.
11276 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
11277 (create_type_unit_group): Assign dwarf2_per_objfile instead of
11278 objfile.
11279 (create_partial_symtab): Access objfile through
11280 dwarf2_per_objfile.
11281 (process_psymtab_comp_unit_reader): Likewise.
11282 (read_comp_units_from_section): Likewise.
11283 (scan_partial_symbols): Likewise.
11284 (add_partial_symbol): Likewise.
11285 (add_partial_subprogram): Likewise.
11286 (peek_die_abbrev): Likewise.
11287 (fixup_go_packaging): Likewise.
11288 (process_full_comp_unit): Likewise.
11289 (process_full_type_unit): Likewise.
11290 (process_imported_unit_die): Likewise.
11291 (dwarf2_compute_name): Likewise.
11292 (dwarf2_physname): Likewise.
11293 (read_import_statement): Likewise.
11294 (create_cus_hash_table): Assign dwarf2_physname instead of
11295 objfile.
11296 (read_func_scope): Access objfile through dwarf2_per_objfile.
11297 (read_lexical_block_scope): Likewise.
11298 (read_call_site_scope): Likewise.
11299 (read_variable): Likewise.
11300 (dwarf2_rnglists_process): Likewise.
11301 (dwarf2_ranges_process): Likewise.
11302 (dwarf2_ranges_read): Likewise.
11303 (dwarf2_record_block_ranges): Likewise.
11304 (dwarf2_add_field): Likewise.
11305 (dwarf2_add_member_fn): Likewise.
11306 (read_structure_type): Likewise.
11307 (process_structure_scope): Likewise.
11308 (read_enumeration_type): Likewise.
11309 (read_array_type): Likewise.
11310 (read_common_block): Likewise.
11311 (read_namespace_type): Likewise.
11312 (read_namespace): Likewise.
11313 (read_module_type): Likewise.
11314 (read_tag_pointer_type): Likewise.
11315 (read_tag_ptr_to_member_type): Likewise.
11316 (read_tag_string_type): Likewise.
11317 (read_subroutine_type): Likewise.
11318 (read_typedef): Likewise.
11319 (read_base_type): Likewise.
11320 (attr_to_dynamic_prop): Likewise.
11321 (read_subrange_type): Likewise.
11322 (read_unspecified_type): Likewise.
11323 (load_partial_dies): Likewise.
11324 (read_partial_die): Likewise.
11325 (find_partial_die): Likewise.
11326 (guess_partial_die_structure_name): Likewise.
11327 (fixup_partial_die): Likewise.
11328 (read_attribute_value): Likewise.
11329 (read_addr_index_from_leb128): Likewise.
11330 (dwarf2_read_addr_index): Likewise.
11331 (dwarf2_string_attr): Likewise.
11332 (lnp_state_machine::check_line_address): Likewise.
11333 (dwarf_decode_lines_1): Likewise.
11334 (dwarf_decode_lines): Likewise.
11335 (dwarf2_start_symtab): Likewise.
11336 (var_decode_location): Likewise.
11337 (new_symbol_full): Likewise.
11338 (dwarf2_const_value_data): Likewise.
11339 (dwarf2_const_value_attr): Likewise.
11340 (dwarf2_const_value): Likewise.
11341 (die_type): Likewise.
11342 (die_containing_type): Likewise.
11343 (lookup_die_type): Likewise.
11344 (guess_full_die_structure_name): Likewise.
11345 (anonymous_struct_prefix): Likewise.
11346 (dwarf2_name): Likewise.
11347 (follow_die_ref_or_sig): Likewise.
11348 (follow_die_offset): Likewise.
11349 (follow_die_ref): Likewise.
11350 (dwarf2_fetch_die_loc_sect_off): Likewise.
11351 (dwarf2_fetch_constant_bytes): Likewise.
11352 (dwarf2_fetch_die_type_sect_off): Likewise.
11353 (dwarf2_get_die_type): Likewise.
11354 (follow_die_sig): Likewise.
11355 (decode_locdesc): Likewise.
11356 (dwarf2_per_cu_objfile): Likewise.
11357 (dwarf2_per_cu_text_offset): Likewise.
11358 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
11359 objfile.
11360 (set_die_type): Access objfile through
11361 dwarf2_per_objfile.
11362
b01ba14d
SM
113632018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11364
11365 * valprint.c (converted_character_d): Remove typedef.
11366 (DEF_VEC_O (converted_character_d)): Remove.
11367 (count_next_character): Use std::vector.
11368 (print_converted_chars_to_obstack): Likewise.
11369 (generic_printstr): Likewise.
11370
4d0fdd9b
SM
113712018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11372
11373 * xml-support.h (struct gdb_xml_value): Add constructor.
11374 <value>: Change type to unique_xmalloc_ptr.
11375 (gdb_xml_value_s): Remove typedef.
11376 (DEF_VEC_O (gdb_xml_value_s)): Remove.
11377 (gdb_xml_element_start_handler): Change parameter type to
11378 std::vector.
11379 (xml_find_attribute): Likewise.
11380 * xml-support.c (xml_find_attribute): Change parameter type to
11381 std::vector and adjust.
11382 (gdb_xml_values_cleanup): Remove.
11383 (gdb_xml_parser::start_element): Adjust to std::vector.
11384 (xinclude_start_include): Change paraeter type to std::vector
11385 and adjust.
11386 * btrace.c (check_xml_btrace_version): Likewise.
11387 (parse_xml_btrace_block): Likewise.
11388 (parse_xml_btrace_pt_config_cpu): Likewise.
11389 (parse_xml_btrace_pt): Likewise.
11390 (parse_xml_btrace_conf_bts): Likewise.
11391 (parse_xml_btrace_conf_pt): Likewise.
11392 * memory-map.c (memory_map_start_memory): Likewise.
11393 (memory_map_start_property): Likewise.
11394 * osdata.c (osdata_start_osdata): Likewise.
11395 (osdata_start_item): Likewise.
11396 (osdata_start_column): Likewise.
11397 * remote.c (start_thread): Likewise.
11398 * solib-aix.c (library_list_start_library): Likewise.
11399 (library_list_start_list): Likewise.
11400 * solib-svr4.c (library_list_start_library): Likewise.
11401 (svr4_library_list_start_list): Likewise.
11402 * solib-target.c (library_list_start_segment): Likewise.
11403 (library_list_start_section): Likewise.
11404 (library_list_start_library): Likewise.
11405 (library_list_start_list): Likewise.
11406 * tracepoint.c (traceframe_info_start_memory): Likewise.
11407 (traceframe_info_start_tvar): Likewise.
11408 * xml-syscall.c (syscall_start_syscall): Likewise.
11409 * xml-tdesc.c (tdesc_start_target): Likewise.
11410 (tdesc_start_feature): Likewise.
11411 (tdesc_start_reg): Likewise.
11412 (tdesc_start_union): Likewise.
11413 (tdesc_start_struct): Likewise.
11414 (tdesc_start_flags): Likewise.
11415 (tdesc_start_enum): Likewise.
11416 (tdesc_start_field): Likewise.
11417 (tdesc_start_enum_value): Likewise.
11418 (tdesc_start_vector): Likewise.
11419
f979c73f
SM
114202018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11421
11422 * extension.h (struct xmethod_worker) <clone>: Remove.
11423 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
11424 Remove.
11425 (python_xmethod_worker::clone): Remove.
11426 * valops.c (find_overload_match): Use std::move instead of
11427 clone.
11428
ba18742c
SM
114292018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11430
11431 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
11432 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
11433 <free_xmethod_worker_data>: Remove.
11434 <get_matching_xmethod_workers>: Chance VEC to std::vector.
11435 <get_xmethod_arg_types>: Remove.
11436 <get_xmethod_result_type>: Remove.
11437 <invoke_xmethod>: Remove.
11438 * extension.c (new_xmethod_worker): Remove.
11439 (clone_xmethod_worker): Remove.
11440 (get_matching_xmethod_workers): Return void, pass std::vector by
11441 pointer.
11442 (get_xmethod_arg_types): Rename to...
11443 (xmethod_worker::get_arg_types): ... this, and adjust.
11444 (get_xmethod_result_type): Rename to...
11445 (xmethod_worker::get_result_type): ... this, and adjust.
11446 (invoke_xmethod): Remove.
11447 (free_xmethod_worker): Remove.
11448 (free_xmethod_worker_vec): Remove.
11449 * extension.h (enum ext_lang_rc): Move here from
11450 extension-priv.h.
11451 (struct xmethod_worker): Add constructor and destructor.
11452 <data>: Remove.
11453 <value>: Remove.
11454 <invoke, clone, do_get_result_type, do_get_arg_types>: New
11455 virtual pure methods.
11456 <get_arg_types, get_result_type>: New methods.
11457 (xmethod_worker_ptr): Remove typedef.
11458 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
11459 (xmethod_worker_vec): Remove typedef.
11460 (xmethod_worker_up): New typedef.
11461 (invoke_xmethod): Remove.
11462 (clone_xmethod_worker): Remove.
11463 (free_xmethod_worker): Remove.
11464 (free_xmethod_worker_vec): Remove.
11465 (get_xmethod_arg_types): Remove.
11466 (get_xmethod_result_type): Remove.
11467 * valops.c (find_method_list): Use std::vector, don't use
11468 intermediate vector.
11469 (value_find_oload_method_list): Use std::vector.
11470 (find_overload_match): Use std::vector.
11471 (find_oload_champ): Use std::vector.
11472 * value.c (value_free): Use operator delete.
11473 (value_of_xmethod): Rename to...
11474 (value_from_xmethod): ... this. Don't assign
11475 xmethod_worker::value, take rvalue-reference.
11476 (result_type_of_xmethod): Adjust.
11477 (call_xmethod): Adjust.
11478 * value.h: Include extension.h.
11479 (struct xmethod_worker): Don't forward-declare.
11480 (value_of_xmethod): Rename to...
11481 (value_from_xmethod): ... this, take rvalue-reference.
11482 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
11483 (struct python_xmethod_worker): ... this, add constructor and
11484 destructor.
11485 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
11486 (gdbpy_free_xmethod_worker_data): Rename to...
11487 (python_xmethod_worker::~python_xmethod_worker): ... this and
11488 adjust.
11489 (gdbpy_clone_xmethod_worker_data): Rename to...
11490 (python_xmethod_worker::clone): ... this and adjust.
11491 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
11492 temporary vector.
11493 (gdbpy_get_xmethod_arg_types): Rename to...
11494 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
11495 (gdbpy_get_xmethod_result_type): Rename to...
11496 (python_xmethod_worker::do_get_result_type): ... this and
11497 adjust.
11498 (gdbpy_invoke_xmethod): Rename to...
11499 (python_xmethod_worker::invoke): ... this and adjust.
11500 (new_python_xmethod_worker): Rename to...
11501 (python_xmethod_worker::python_xmethod_worker): ... this and
11502 adjust.
11503 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
11504 Remove.
11505 (gdbpy_free_xmethod_worker_data): Remove.
11506 (gdbpy_get_matching_xmethod_workers): Use std::vector.
11507 (gdbpy_get_xmethod_arg_types): Remove.
11508 (gdbpy_get_xmethod_result_type): Remove.
11509 (gdbpy_invoke_xmethod): Remove.
11510 * python/python.c (python_extension_ops): Remove obsolete
11511 callbacks.
11512
e379cee6
PA
115132018-01-05 Pedro Alves <palves@redhat.com>
11514
11515 PR gdb/18653
11516 * common/signals-state-save-restore.c
11517 (save_original_signals_state): New parameter 'quiet'. Warn if we
11518 find a custom handler preinstalled, instead of internal erroring.
11519 But only warn if !quiet.
11520 * common/signals-state-save-restore.h
11521 (save_original_signals_state): New parameter 'quiet'.
11522 * main.c (captured_main_1): Move save_original_signals_state call
11523 after option handling, and pass QUIET.
11524
a655456c
PA
115252018-01-05 Pedro Alves <palves@redhat.com>
11526
11527 * spu-tdep.c (spu_catch_start): Pass
11528 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
11529
de63c46b
PA
115302018-01-05 Pedro Alves <palves@redhat.com>
11531
11532 PR gdb/22670
11533 * ada-lang.c (literal_symbol_name_matcher): New function.
11534 (ada_get_symbol_name_matcher): Use it for
11535 symbol_name_match_type::SEARCH_NAME.
11536 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
11537 it down instead of assuming symbol_name_match_type::FULL.
11538 * block.h (block_lookup_symbol): New parameter 'match_type'.
11539 * c-valprint.c (print_unpacked_pointer): Use
11540 lookup_symbol_search_name instead of lookup_symbol.
11541 * compile/compile-object-load.c (get_out_value_type): Pass down
11542 symbol_name_match_type::SEARCH_NAME.
11543 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
11544 symbol_name_match_type::FULL.
11545 * cp-support.c (cp_get_symbol_name_matcher): Handle
11546 symbol_name_match_type::SEARCH_NAME.
11547 * infrun.c (insert_exception_resume_breakpoint): Use
11548 lookup_symbol_search_name.
11549 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
11550 * psymtab.c (maintenance_check_psymtabs): Use
11551 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
11552 * stack.c (print_frame_args): Use lookup_symbol_search_name and
11553 SYMBOL_SEARCH_NAME.
11554 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
11555 if symbol_name_match_type::SEARCH_NAME.
11556 (lookup_symbol_in_language): Pass down
11557 symbol_name_match_type::FULL.
11558 (lookup_symbol_search_name): New.
11559 (lookup_language_this): Pass down
11560 symbol_name_match_type::SEARCH_NAME.
11561 (lookup_symbol_aux, lookup_local_symbol): New parameter
11562 'match_type'. Pass it down.
11563 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
11564 (lookup_symbol_search_name): New declaration.
11565 (lookup_symbol_in_block): New 'match_type' parameter.
11566
f98fc17b
PA
115672018-01-05 Pedro Alves <palves@redhat.com>
11568
11569 PR gdb/22670
11570 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
11571 ada_lookup_symbol.
11572 (ada_lookup_symbol): Reimplement in terms of
11573 ada_lookup_symbol_list, bits factored out from
11574 ada_lookup_encoded_symbol.
11575
342f8240
JB
115762018-01-05 Joel Brobecker <brobecker@adacore.com>
11577
11578 * ada-exp.y (write_object_renaming): When subscripting an array
11579 using a symbol as the index, pass the block in call to
11580 ada_lookup_encoded_symbol when looking that symbol up.
11581
7150d33c
JG
115822018-01-05 Jerome Guitton <guitton@adacore.com>
11583
11584 * ada-lang.c (ada_array_length): Use ada_index_type instead of
11585 TYPE_INDEX_TYPE.
11586
cc0e770c
JB
115872018-01-05 Joel Brobecker <brobecker@adacore.com>
11588
11589 * ada-lang.c (ada_to_fixed_value_create): Add handling of
11590 the case where VALUE_LVAL (val0) is not lval_memory.
11591
f79da888 115922018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
11593
11594 * ada-valprint.c (print_optional_low_bound): Handle
11595 character-indexed array printing like boolean-indexed array
11596 printing.
11597
cd385f94
JB
115982018-01-05 Joel Brobecker <brobecker@adacore.com>
11599
11600 * NEWS: Create a new section for the next release branch.
11601 Rename the section of the current branch, now that it has
11602 been cut.
11603
09aca949
JB
116042018-01-05 Joel Brobecker <brobecker@adacore.com>
11605
11606 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
11607 * version.in: Bump version to 8.1.50.DATE-git.
11608
9f757bf7
XR
116092018-01-03 Xavier Roirand <roirand@adacore.com>
11610
11611 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
11612 Add field.
11613 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
11614 Add field.
11615 (default_exception_support_info) <catch_handlers_sym>: Add field.
11616 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
11617 (ada_exception_name_addr_1): Add "catch handlers" handling.
11618 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
11619 Update all callers.
11620 (create_excep_cond_exprs) <ex>: Add parameter.
11621 (re_set_exception): Update create_excep_cond_exprs call.
11622 (print_it_exception, print_one_exception, print_mention_exception)
11623 (print_recreate_exception): Add "catch handler" handling.
11624 (allocate_location_catch_handlers, re_set_catch_handlers)
11625 (check_status_catch_handlers, print_it_catch_handlers)
11626 (print_one_catch_handlers, print_mention_catch_handlers)
11627 (print_recreate_catch_handlers): New function.
11628 (catch_handlers_breakpoint_ops): New variable.
11629 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
11630 Add parameter. Add "catch handler" handling.
11631 (ada_exception_sym_name, ada_exception_breakpoint_ops):
11632 Add "catch handler" handling.
11633 (ada_exception_catchpoint_cond_string): Add "catch handler"
11634 handling.
11635 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
11636 call.
11637 (catch_ada_handlers_command): New function.
11638 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
11639 operations structure.
11640 (_initialize_ada_language): Add "catch handlers" command entry.
11641 * NEWS: Document "catch handlers" feature.
11642
9fe561ab
JB
116432018-01-02 Joel Brobecker <brobecker@adacore.com>
11644
11645 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
11646 account when creating the array type of the slice.
11647 (ada_value_slice): Likewise.
11648
a405673c
JB
116492018-01-02 Joel Brobecker <brobecker@adacore.com>
11650
11651 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
11652 New enum value.
11653 (create_array_type_with_stride): Add byte_stride_prop parameter.
11654 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
11655 New parameter. Update all callers in this file.
11656 (array_type_has_dynamic_stride): New function.
11657 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
11658 of arrays with dynamic byte strides.
11659 * dwarf2read.c (read_array_type): Add support for dynamic
11660 DW_AT_byte_stride attributes.
11661
74a2f8ff
JB
116622018-01-02 Joel Brobecker <brobecker@adacore.com>
11663
11664 * dwarf2read.c (read_unspecified_type): Treat
11665 DW_TAG_enumeration_type DIEs from Ada units as stubs.
11666
e2882c85
JB
116672018-01-01 Joel Brobecker <brobecker@adacore.com>
11668
11669 Update copyright year range in all GDB files.
11670
1690bb24
JB
116712018-01-01 Joel Brobecker <brobecker@adacore.com>
11672
11673 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
11674 and gdb/testsuite/gdb.base/step-line.c.
11675
0f0c98a8
JB
116762018-01-01 Joel Brobecker <brobecker@adacore.com>
11677
11678 * copyright.py (main): Dump the contents of
11679 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
11680 even if BY_HAND is empty.
11681
82e1e79a
JB
116822018-01-01 Joel Brobecker <brobecker@adacore.com>
11683
11684 * top.c (print_gdb_version): Update Copyright year in version
11685 message.
11686
053f54e5 116872018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 11688
053f54e5 11689 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 11690
053f54e5 11691For older changes see ChangeLog-2017.
c906108c
SS
11692\f
11693Local Variables:
11694mode: change-log
11695left-margin: 8
11696fill-column: 74
11697version-control: never
57da7796 11698coding: utf-8
c906108c 11699End:
This page took 2.878482 seconds and 4 git commands to generate.