Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
73f1bd76
JB
12018-09-18 John Baldwin <jhb@FreeBSD.org>
2
3 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
4 description. Make "info proc" command descriptions more
5 consistent.
6
8b113111
JB
72018-09-18 John Baldwin <jhb@FreeBSD.org>
8
9 * NEWS: Mention 'info proc files' command.
10
7e69672e
JB
112018-09-18 John Baldwin <jhb@FreeBSD.org>
12
13 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
14 descriptors for IP_FILES and IP_ALL.
15
57c2a98a
JB
162018-09-18 John Baldwin <jhb@FreeBSD.org>
17
18 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
19 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
20 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
21 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
22 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
23 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
24 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
25 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
26 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
27 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
28 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
29 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
30 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
31 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
32 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
33 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
34 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
35 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
36 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
37 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
38 (struct fbsd_sockaddr_un): New types.
39 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
40 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
41 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
42 (fbsd_core_info_proc_files): New functions.
43 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
44 IP_ALL.
45 * fbsd-tdep.h (fbsd_info_proc_files_header)
46 (fbsd_info_proc_files_entry): New.
47
e98ee8c4
JB
482018-09-18 John Baldwin <jhb@FreeBSD.org>
49
50 * defs.h (enum info_proc_what) [IP_FILES]: New value.
51 * infcmd.c (info_proc_cmd_files): New function.
52 (_initialize_infcmd): Register 'info proc files' command.
53
725e2999
JB
542018-09-18 John Baldwin <jhb@FreeBSD.org>
55
56 * gnulib/aclocal-m4-deps.mk: Re-generate.
57 * gnulib/aclocal.m4: Re-generate.
58 * gnulib/config.in: Re-generate.
59 * gnulib/configure: Re-generate.
60 * gnulib/import/Makefile.am: Re-generate.
61 * gnulib/import/Makefile.in: Re-generate.
62 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
63 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
64 * gnulib/import/arpa_inet.in.h: New file.
65 * gnulib/import/inet_ntop.c: New file.
66 * gnulib/import/m4/arpa_inet_h.m4: New file.
67 * gnulib/import/m4/inet_ntop.m4: New file.
68 * gnulib/import/m4/netinet_in_h.m4: New file.
69 * gnulib/import/m4/socklen.m4: New file.
70 * gnulib/import/m4/sockpfaf.m4: New file.
71 * gnulib/import/m4/stdalign.m4: New file.
72 * gnulib/import/m4/sys_uio_h.m4: New file.
73 * gnulib/import/netinet_in.in.h: New file.
74 * gnulib/import/stdalign.in.h: New file.
75 * gnulib/import/sys_socket.c: New file.
76 * gnulib/import/sys_socket.in.h: New file.
77 * gnulib/import/sys_uio.in.h: New file.
78 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
79 module.
80
2afffa7f
JB
812018-09-18 John Baldwin <jhb@FreeBSD.org>
82
83 * gnulib/aclocal-m4-deps.mk: New file.
84 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
85 deterministically.
86
9f235e09
JB
872018-09-18 John Baldwin <jhb@FreeBSD.org>
88
89 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
90 KVE_PATH.
91
40f03055
TT
922018-09-18 Tom Tromey <tom@tromey.com>
93
94 * compile/compile-object-load.c (struct
95 link_hash_table_cleanup_data): Add constructor and destructor.
96 Use DISABLE_COPY_AND_ASSIGN.
97 (~link_hash_table_cleanup_data): Rename from
98 link_hash_table_free. Now a destructor.
99 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
100
c9e0a7e3
TT
1012018-09-18 Tom Tromey <tom@tromey.com>
102
103 * compile/compile-object-run.c (do_module_cleanup): Use delete.
104 * compile/compile-object-load.c (struct munmap_list): Move to
105 header file.
106 (munmap_list::add): Rename from munmap_list_add; rewrite.
107 (munmap_list::~munmap_list): Rename from munmap_list_free.
108 (munmap_listp_free_cleanup): Remove.
109 (compile_object_load): Update.
110 * compile/compile-object-load.h (struct munmap_list): Move from
111 compile-object-load.c. Rewrite.
112
3ff2c72e
AH
1132018-09-18 Alan Hayward <alan.hayward@arm.com>
114
115 * aarch64-tdep.c (pass_in_v): Use register size.
116 (aarch64_extract_return_value): Likewise.
117 (aarch64_store_return_value): Likewise.
118
206c1947
RO
1192018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
120
121 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
122 rlim_t.
123
6eb5dbce
PW
1242018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
125
126 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
127 Fix short help line.
128
ae292b3a
TT
1292018-09-17 Tom Tromey <tom@tromey.com>
130
131 PR python/20445:
132 * configure: Rebuild.
133 * configure.ac: Conditionally use -DNDEBUG for Python.
134
da658607
TT
1352018-09-17 Tom Tromey <tom@tromey.com>
136
137 * configure: Rebuild.
138 * configure.ac: Use gmp as a library dependency when checking for
139 mpfr.
140
d35da542
PA
1412018-09-17 Pedro Alves <palves@redhat.com>
142
143 * python/py-inferior.c (find_inferior_object): Delete.
144
461464f2
SM
1452018-09-17 Simon Marchi <simon.marchi@ericsson.com>
146
147 * compile/compile-cplus-types.c
148 (compile_cplus_instance::enter_scope): Don't use new_scope after
149 std::move.
150
e6cd1dc1
TT
1512018-09-17 Tom Tromey <tom@tromey.com>
152
153 * common/pathstuff.c (get_standard_cache_dir): Use
154 ~/Library/Caches on macOS.
155 * common/pathstuff.h (get_standard_cache_dir): Update comment.
156
8588b356
SM
1572018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
158
159 PR python/23669
160 * breakpoint.c (commands_cmd_element): New.
161 (_initialize_breakpoint): Assign commands_cmd_element.
162 * breakpoint.h (commands_cmd_element): New.
163 * cli/cli-script.c (while_cmd_element, if_command,
164 define_cmd_element): New.
165 (command_name_equals): Remove.
166 (process_next_line): Compare commands by pointer, not by name.
167 (_initialize_cli_script): Assign the various cmd_list_element
168 variables.
169 * compile/compile.c (compile_cmd_element): New.
170 (_initialize_compile): Assign compile_cmd_element.
171 * compile/compile.h (compile_cmd_element): New.
172 * guile/guile.c (guile_cmd_element): New.
173 (install_gdb_commands): Assign guile_cmd_element.
174 * guile/guile.h (guile_cmd_element): New.
175 * python/python.c (python_cmd_element): New.
176 (_initialize_python): Assign python_cmd_element.
177 * python/python.h (python_cmd_element): New.
178 * tracepoint.c (while_stepping_cmd_element): New.
179 (_initialize_tracepoint): Assign while_stepping_cmd_element.
180 * tracepoint.h (while_stepping_cmd_element): New.
181
cb524840
TT
1822018-09-17 Tom Tromey <tom@tromey.com>
183
184 * infrun.c (save_infcall_suspend_state): Return
185 infcall_suspend_state_up.
186 (save_infcall_control_state): Return infcall_control_state_up.
187 * inferior.h (save_infcall_suspend_state)
188 (save_infcall_control_state): Declare later. Return unique
189 pointers.
190
2d844eaf
TT
1912018-09-17 Tom Tromey <tom@tromey.com>
192
193 * infrun.c (struct stop_context): Declare constructor,
194 destructor, "changed" method.
195 (stop_context::stop_context): Rename from save_stop_context.
196 (stop_context::~stop_context): Rename from
197 release_stop_context_cleanup.
198 (normal_stop): Update.
199 (stop_context::changed): Rename from stop_context_changed. Return
200 bool.
201
c7c4d3fa
TT
2022018-09-17 Tom Tromey <tom@tromey.com>
203
204 * inferior.h (struct infcall_suspend_state_deleter): New.
205 (infcall_suspend_state_up): New typedef.
206 (struct infcall_control_state_deleter): New.
207 (infcall_control_state_up): New typedef.
208 (make_cleanup_restore_infcall_suspend_state)
209 (make_cleanup_restore_infcall_control_state): Don't declare.
210 * infcall.c (call_function_by_hand_dummy): Update.
211 * infrun.c (do_restore_infcall_suspend_state_cleanup)
212 (make_cleanup_restore_infcall_suspend_state): Remove.
213 (do_restore_infcall_control_state_cleanup)
214 (make_cleanup_restore_infcall_control_state): Remove.
215
ee841dd8
TT
2162018-09-17 Tom Tromey <tom@tromey.com>
217
218 * gdbthread.h (struct thread_control_state): Add initializer.
219 (class thread_info) <control>: Remove initializer.
220 * inferior.h (struct inferior_control_state): Add initializer.
221 (class inferior) <control>: Remove initializer.
222 (exit_inferior_1): Update.
223 * infrun.c (struct infcall_control_state): Add constructors.
224 (save_infcall_control_state): Use new.
225 (restore_infcall_control_state, discard_infcall_control_state):
226 Use delete.
227
117f580a
TT
2282018-09-17 Tom Tromey <tom@tromey.com>
229
230 * infrun.c (struct infcall_suspend_state) <registers>: Now a
231 unique_ptr.
232 <siginfo_data>: Now a unique_xmalloc_ptr.
233 (save_infcall_suspend_state, restore_infcall_suspend_state)
234 (discard_infcall_suspend_state)
235 (get_infcall_suspend_state_regcache): Update.
236
dd848631
TT
2372018-09-17 Tom Tromey <tom@tromey.com>
238
239 * gdbthread.h (struct thread_suspend_state): Add initializers.
240 (class thread_info) <suspend>: Remove initializer.
241 * infrun.c (struct infcall_suspend_state): Add initializers.
242 (save_infcall_suspend_state): Use new.
243 (discard_infcall_suspend_state): Use delete.
244
1a338907
TT
2452018-09-16 Tom Tromey <tom@tromey.com>
246
247 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
248 Remove.
249 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
250 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
251 (py_varobj_iter_new): Likewise.
252 (py_varobj_get_iterator): Use gdbpy_ref.
253
4a137fec
TT
2542018-09-16 Tom Tromey <tom@tromey.com>
255
256 * python/py-threadevent.c (py_get_event_thread): Simplify.
257 * python/py-inferior.c (infpy_thread_from_thread_handle):
258 Return immediately after calling thread_to_thread_object. Use
259 Py_RETURN_NONE.
260 (thread_to_thread_object): Set the exception on a NULL return.
261
8ff03f0b
SM
2622018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
263
264 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
265
94c8b725
TT
2662018-09-16 Tom Tromey <tom@tromey.com>
267
268 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
269 Remove.
270
db1337cc
TT
2712018-09-16 Tom Tromey <tom@tromey.com>
272
273 * python/python-internal.h (thread_to_thread_object): Change
274 return type.
275 * python/py-inferior.c (thread_to_thread_object): Return a new
276 reference.
277 (infpy_thread_from_thread_handle): Update.
278 * python/py-infthread.c (gdbpy_selected_thread): Update.
279 * python/py-stopevent.c (create_stop_event_object): Update.
280 * python/py-threadevent.c (py_get_event_thread): Return a new
281 reference.
282 (py_get_event_thread): Update.
283 * python/py-event.h (py_get_event_thread): Change return type.
284 * python/py-continueevent.c (create_continue_event_object):
285 Update.
286
0a9db5ad
TT
2872018-09-16 Tom Tromey <tom@tromey.com>
288
289 * python/py-progspace.c (pspy_get_objfiles): Update.
290 * python/python-internal.h (objfile_to_objfile_object): Change
291 return type.
292 * python/py-newobjfileevent.c (create_new_objfile_event_object):
293 Update.
294 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
295 Update.
296 * python/python.c (gdbpy_get_current_objfile): Update.
297 (gdbpy_objfiles): Update.
298 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
299 Update.
300 (objfile_to_objfile_object): Return a new reference.
301 * python/py-symtab.c (stpy_get_objfile): Update.
302 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
303 Update.
304
3c7aa307
TT
3052018-09-16 Tom Tromey <tom@tromey.com>
306
307 * python/py-inferior.c (infpy_get_progspace): Update.
308 * python/python-internal.h (pspace_to_pspace_object): Change
309 return type.
310 * python/py-newobjfileevent.c
311 (create_clear_objfiles_event_object): Update.
312 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
313 Update.
314 * python/python.c (gdbpy_get_current_progspace): Update.
315 (gdbpy_progspaces): Update.
316 * python/py-progspace.c (pspace_to_pspace_object): Return a new
317 reference.
318 * python/py-objfile.c (objfpy_get_progspace): Update.
319 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
320 Update.
321
8743a9cd
TT
3222018-09-16 Tom Tromey <tom@tromey.com>
323
324 * python/lib/gdb/__init__.py (current_progspace, objfiles)
325 (solib_name, block_for_pc, find_pc_line): New functions.
326 (execute_unwinders): Update.
327 * python/py-block.c (gdbpy_block_for_pc): Remove.
328 * python/py-inferior.c (infpy_get_progspace): New function.
329 (inferior_object_getset) <progspace>: Add.
330 * python/py-progspace.c (pspy_objfiles): Rewrite.
331 (pspy_solib_name, pspy_block_for_pc)
332 (pspy_find_pc_line, pspy_is_valid): New functions.
333 (progspace_object_methods): Add entries for solib_name,
334 block_for_pc, find_pc_line, is_valid.
335 * python/python-internal.h (gdbpy_block_for_pc)
336 (build_objfiles_list): Don't declare.
337 * python/python.c: Don't include solib.h.
338 (gdbpy_solib_name, gdbpy_find_pc_line)
339 (gdbpy_get_current_progspace, build_objfiles_list)
340 (gdbpy_objfiles): Remove.
341 (GdbMethods) <current_progspace, objfiles, block_for_pc,
342 solib_name, find_pc_line>: Remove entries.
343
65e65158
TT
3442018-09-16 Tom Tromey <tom@tromey.com>
345
346 * top.c (new_ui_command): Use GNU style for metasyntactic
347 variables.
348 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
349 variables.
350 * maint.c (maintenance_translate_address): Remove "<>" around
351 text.
352 * interps.c (interpreter_exec_cmd): Use GNU style for
353 metasyntactic variables.
354 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
355 metasyntactic variables.
356 * tracepoint.c (tfind_range_command): Use GNU style for
357 metasyntactic variables.
358 (tfind_outside_command): Likewise.
359 (_initialize_tracepoint): Likewise.
360 * remote.c (extended_remote_target::create_inferior): Use GNU
361 style for metasyntactic variables.
362 * sparc64-tdep.c (adi_examine_command): Use GNU style for
363 metasyntactic variables.
364 (adi_assign_command): Likewise.
365
f4bab6ff
TT
3662018-09-16 Tom Tromey <tom@tromey.com>
367
368 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
369 metasyntactic variables. Print message if no disassembler options
370 are available.
371
cbaaa0ca
TT
3722018-09-15 Tom Tromey <tom@tromey.com>
373
374 * infcmd.c (get_inferior_args): Return const char *.
375 * inferior.h (get_inferior_args): Return type now const.
376 * linux-tdep.c (linux_fill_prpsinfo): Update.
377 * procfs.c (procfs_target::make_corefile_notes): Update.
378
a3a6aef4
TT
3792018-09-07 Tom Tromey <tom@tromey.com>
380
381 * python/python.c (execute_gdb_command): Call bpstat_do_actions
382 inside the TRY.
383
f70e088f
SL
3842018-09-14 Sandra Loosemore <sandra@codesourcery.com>
385
386 * nios2-tdep.c (nios2_type_align): New.
387 (nios2_gdb_arch_init): Install type_align hook.
388
2fabdf33
AB
3892018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
390
391 * eval.c (fake_method::fake_method): Call xzalloc directly for a
392 type that is neither object file owned, nor gdbarch owned.
393 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
394 gdbarch is non-NULL.
395 (alloc_type_instance): Allocate non-objfile owned types on the
396 gdbarch obstack.
397 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
398 using TYPE_ALLOC to ensure memory is allocated on the correct
399 obstack.
400 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
401 obstack, or the gdbarch obstack.
402 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
403
b4b08fa2
TT
4042018-09-14 Tom Tromey <tom@tromey.com>
405
406 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
407 block.
408
87b240d4
TT
4092018-09-14 Tom Tromey <tom@tromey.com>
410
411 * nat/fork-inferior.c (get_startup_shell): Remove "static".
412
7d221512
TT
4132018-09-13 Tom Tromey <tom@tromey.com>
414
415 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
416 static.
417
97e67fc6
TT
4182018-09-13 Tom Tromey <tom@tromey.com>
419
420 * exec.c (try_open_exec_file): Use std::string.
421
803c08d0
TT
4222018-09-13 Tom Tromey <tom@tromey.com>
423
424 * utils.h (gdb_bfd_errmsg): Return std::string.
425 * exec.c (exec_file_attach): Update.
426 * compile/compile-object-load.c (compile_object_load): Update.
427 * utils.c (gdb_bfd_errmsg): Return std::string.
428
5b4cbbe3
TT
4292018-09-13 Tom Tromey <tom@tromey.com>
430
431 * procfs.c (struct procinfo_deleter): New.
432 (procinfo_up): New typedef.
433 (do_destroy_procinfo_cleanup): Remove.
434 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
435
db68fbe2
TT
4362018-09-13 Tom Tromey <tom@tromey.com>
437
438 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
439
0ae1a321
SM
4402018-09-13 Simon Marchi <simon.marchi@ericsson.com>
4412018-09-13 Tom Tromey <tom@tromey.com>
442
443 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
444 (pspy_get_objfiles): New function.
445 (progspace_object_methods): New.
446 (pspace_object_type): Add tp_methods callback.
447 * python/python-internal.h (build_objfiles_list): New
448 declaration.
449 * python/python.c (build_objfiles_list): New function.
450 (gdbpy_objfiles): Implement using build_objfiles_list.
451 * NEWS: Mention the Progspace.objfiles method.
452
a40bf0c2
SM
4532018-09-13 Simon Marchi <simon.marchi@ericsson.com>
454
455 * python/py-inferior.c (infpy_get_progspace): New function.
456 (inferior_object_getset): Add progspace property.
457 * NEWS: Mention the new property.
458
4a3fe98f
TT
4592018-09-13 Tom Tromey <tom@tromey.com>
460
461 PR rust/23650:
462 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
463
098b2108
TT
4642018-09-13 Tom Tromey <tom@tromey.com>
465
466 PR rust/23626:
467 * rust-lang.c (rust_enum_variant): Now static.
468 (rust_empty_enum_p): New function.
469 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
470 Handle empty enum.
471
1256af7d
SM
4722018-09-13 Simon Marchi <simon.marchi@ericsson.com>
473
474 * python/py-inferior.c (infpy_repr): New.
475 (inferior_object_type): Register infpy_repr.
476 * python/py-objfile.c (objfpy_repr): New.
477 (objfile_object_type): Register objfpy_repr.
478
f117a62c
JB
4792018-09-12 John Baldwin <jhb@FreeBSD.org>
480
481 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
482
88f22c34
JB
4832018-09-12 John Baldwin <jhb@FreeBSD.org>
484
485 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
486 typo.
487
3c025cfe
SDJ
4882018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
489
490 * common/common-utils.c: Don't include '<sys/stat.h>'.
491 (is_regular_file): Move to...
492 * common/filestuff.c (is_regular_file): ... here.
493 * common/common-utils.h (is_regular_file): Move to...
494 * common/filestuff.h (is_regular_file): ... here.
495
3e68067f
SM
4962018-09-12 Simon Marchi <simon.marchi@ericsson.com>
497
498 * skip.c (debug_skip): New variable.
499 (skiplist_entry::do_skip_file_p): Add debug output.
500 (skiplist_entry::do_skip_gfile_p): Likewise.
501 (skiplist_entry::skip_function_p): Likewise.
502 (_initialize_step_skip): Create debug command.
503 * NEWS: Mention set/show debug skip.
504
d6be54ef
XR
5052018-09-11 Xavier Roirand <roirand@adacore.com>
506
507 * darwin-nat.c (should_disable_startup_with_shell):
508 New function.
509 (darwin_nat_target::create_inferior): Add call.
510
de1ec836
XR
5112018-09-11 Xavier Roirand <roirand@adacore.com>
512
513 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
514 inf_port, msg_state>: Initialize.
515 (struct darwin_thread_info) <signaled, single_step>: Change
516 type and initialize.
517 (struct darwin_thread_info) <event>: Initialize.
518
e2fc52e7
SDJ
5192018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
520
521 PR gdb/23555
522 PR gdb/23558
523 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
524 guesses.
525
5e8754f9
SDJ
5262018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
527
528 Revert:
529 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
530
531 PR gdb/23555
532 PR gdb/23558
533 * gnulib/aclocal.m4: Regenerate.
534 * gnulib/config.in: Regenerate.
535 * gnulib/configure: Regenerate.
536 * gnulib/import/Makefile.am: Update.
537 * gnulib/import/Makefile.in: Update.
538 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
539 * gnulib/import/_Noreturn.h: ... this.
540 * gnulib/import/alloca.in.h: Update.
541 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
542 * gnulib/import/arg-nonnull.h: ... this.
543 * gnulib/import/assure.h: Update.
544 * gnulib/import/at-func.c: Update.
545 * gnulib/import/basename-lgpl.c: Update.
546 * gnulib/import/extra/snippet/c++defs.h: Rename to...
547 * gnulib/import/c++defs.h: ... this.
548 * gnulib/import/canonicalize-lgpl.c: Update.
549 * gnulib/import/cdefs.h: Update.
550 * gnulib/import/chdir-long.c: Update.
551 * gnulib/import/chdir-long.h: Update.
552 * gnulib/import/cloexec.c: Update.
553 * gnulib/import/cloexec.h: Update.
554 * gnulib/import/close.c: Update.
555 * gnulib/import/closedir.c: Update.
556 * gnulib/import/config.charset: Update.
557 * gnulib/import/dirent-private.h: Update.
558 * gnulib/import/dirent.in.h: Update.
559 * gnulib/import/dirfd.c: Update.
560 * gnulib/import/dirname-lgpl.c: Update.
561 * gnulib/import/dirname.h: Update.
562 * gnulib/import/dosname.h: Update.
563 * gnulib/import/dup-safer-flag.c: Update.
564 * gnulib/import/dup-safer.c: Update.
565 * gnulib/import/dup.c: Update.
566 * gnulib/import/dup2.c: Update.
567 * gnulib/import/errno.in.h: Update.
568 * gnulib/import/error.c: Update.
569 * gnulib/import/error.h: Update.
570 * gnulib/import/exitfail.c: Update.
571 * gnulib/import/exitfail.h: Update.
572 * gnulib/import/extra/update-copyright: Update.
573 * gnulib/import/fchdir.c: Update.
574 * gnulib/import/fcntl.c: Update.
575 * gnulib/import/fcntl.in.h: Update.
576 * gnulib/import/fd-hook.c: Update.
577 * gnulib/import/fd-hook.h: Update.
578 * gnulib/import/fd-safer-flag.c: Update.
579 * gnulib/import/fd-safer.c: Update.
580 * gnulib/import/fdopendir.c: Update.
581 * gnulib/import/filename.h: Update.
582 * gnulib/import/filenamecat-lgpl.c: Update.
583 * gnulib/import/filenamecat.h: Update.
584 * gnulib/import/flexmember.h: Update.
585 * gnulib/import/float+.h: Update.
586 * gnulib/import/float.c: Update.
587 * gnulib/import/float.in.h: Update.
588 * gnulib/import/fnmatch.c: Update.
589 * gnulib/import/fnmatch.in.h: Update.
590 * gnulib/import/fnmatch_loop.c: Update.
591 * gnulib/import/fpucw.h: Update.
592 * gnulib/import/frexp.c: Update.
593 * gnulib/import/frexpl.c: Update.
594 * gnulib/import/fstat.c: Update.
595 * gnulib/import/fstatat.c: Update.
596 * gnulib/import/getcwd-lgpl.c: Update.
597 * gnulib/import/getcwd.c: Update.
598 * gnulib/import/getdtablesize.c: Update.
599 * gnulib/import/getlogin_r.c: Update.
600 * gnulib/import/getprogname.c: Update.
601 * gnulib/import/getprogname.h: Update.
602 * gnulib/import/gettext.h: Update.
603 * gnulib/import/gettimeofday.c: Update.
604 * gnulib/import/glob-libc.h: Update.
605 * gnulib/import/glob.c: Update.
606 * gnulib/import/glob.in.h: Update.
607 * gnulib/import/glob_internal.h: Update.
608 * gnulib/import/glob_pattern_p.c: Update.
609 * gnulib/import/globfree.c: Update.
610 * gnulib/import/hard-locale.c: Update.
611 * gnulib/import/hard-locale.h: Update.
612 * gnulib/import/intprops.h: Update.
613 * gnulib/import/inttypes.in.h: Update.
614 * gnulib/import/isnan.c: Update.
615 * gnulib/import/isnand-nolibm.h: Update.
616 * gnulib/import/isnand.c: Update.
617 * gnulib/import/isnanl-nolibm.h: Update.
618 * gnulib/import/isnanl.c: Update.
619 * gnulib/import/itold.c: Update.
620 * gnulib/import/libc-config.h: Update.
621 * gnulib/import/limits.in.h: Update.
622 * gnulib/import/localcharset.c: Update.
623 * gnulib/import/localcharset.h: Update.
624 * gnulib/import/localtime-buffer.c: Update.
625 * gnulib/import/localtime-buffer.h: Update.
626 * gnulib/import/lstat.c: Update.
627 * gnulib/import/m4/00gnulib.m4: Update.
628 * gnulib/import/m4/__inline.m4: Update.
629 * gnulib/import/m4/absolute-header.m4: Update.
630 * gnulib/import/m4/alloca.m4: Update.
631 * gnulib/import/m4/builtin-expect.m4: Update.
632 * gnulib/import/m4/canonicalize.m4: Update.
633 * gnulib/import/m4/chdir-long.m4: Update.
634 * gnulib/import/m4/close.m4: Update.
635 * gnulib/import/m4/closedir.m4: Update.
636 * gnulib/import/m4/configmake.m4: Update.
637 * gnulib/import/m4/d-ino.m4: Update.
638 * gnulib/import/m4/d-type.m4: Update.
639 * gnulib/import/m4/dirent_h.m4: Update.
640 * gnulib/import/m4/dirfd.m4: Update.
641 * gnulib/import/m4/dirname.m4: Update.
642 * gnulib/import/m4/double-slash-root.m4: Update.
643 * gnulib/import/m4/dup.m4: Update.
644 * gnulib/import/m4/dup2.m4: Update.
645 * gnulib/import/m4/eealloc.m4: Update.
646 * gnulib/import/m4/environ.m4: Update.
647 * gnulib/import/m4/errno_h.m4: Update.
648 * gnulib/import/m4/error.m4: Update.
649 * gnulib/import/m4/exponentd.m4: Update.
650 * gnulib/import/m4/exponentl.m4: Update.
651 * gnulib/import/m4/extensions.m4: Update.
652 * gnulib/import/m4/extern-inline.m4: Update.
653 * gnulib/import/m4/fchdir.m4: Update.
654 * gnulib/import/m4/fcntl-o.m4: Update.
655 * gnulib/import/m4/fcntl.m4: Update.
656 * gnulib/import/m4/fcntl_h.m4: Update.
657 * gnulib/import/m4/fdopendir.m4: Update.
658 * gnulib/import/m4/filenamecat.m4: Update.
659 * gnulib/import/m4/flexmember.m4: Update.
660 * gnulib/import/m4/float_h.m4: Update.
661 * gnulib/import/m4/fnmatch.m4: Update.
662 * gnulib/import/m4/fnmatch_h.m4: Update.
663 * gnulib/import/m4/fpieee.m4: Update.
664 * gnulib/import/m4/frexp.m4: Update.
665 * gnulib/import/m4/frexpl.m4: Update.
666 * gnulib/import/m4/fstat.m4: Update.
667 * gnulib/import/m4/fstatat.m4: Update.
668 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
669 * gnulib/import/m4/getcwd-path-max.m4: Update.
670 * gnulib/import/m4/getcwd.m4: Update.
671 * gnulib/import/m4/getdtablesize.m4: Update.
672 * gnulib/import/m4/getlogin.m4: Update.
673 * gnulib/import/m4/getlogin_r.m4: Update.
674 * gnulib/import/m4/getpagesize.m4: Update.
675 * gnulib/import/m4/getprogname.m4: Update.
676 * gnulib/import/m4/gettimeofday.m4: Update.
677 * gnulib/import/m4/glibc21.m4: Update.
678 * gnulib/import/m4/glob.m4: Update.
679 * gnulib/import/m4/glob_h.m4: Update.
680 * gnulib/import/m4/gnulib-cache.m4: Update.
681 * gnulib/import/m4/gnulib-common.m4: Update.
682 * gnulib/import/m4/gnulib-comp.m4: Update.
683 * gnulib/import/m4/gnulib-tool.m4: Update.
684 * gnulib/import/m4/hard-locale.m4: Update.
685 * gnulib/import/m4/include_next.m4: Update.
686 * gnulib/import/m4/inttypes-pri.m4: Update.
687 * gnulib/import/m4/inttypes.m4: Update.
688 * gnulib/import/m4/isnand.m4: Update.
689 * gnulib/import/m4/isnanl.m4: Update.
690 * gnulib/import/m4/largefile.m4: Update.
691 * gnulib/import/m4/limits-h.m4: Update.
692 * gnulib/import/m4/localcharset.m4: Update.
693 * gnulib/import/m4/locale-fr.m4: Update.
694 * gnulib/import/m4/locale-ja.m4: Update.
695 * gnulib/import/m4/locale-zh.m4: Update.
696 * gnulib/import/m4/localtime-buffer.m4: Update.
697 * gnulib/import/m4/longlong.m4: Update.
698 * gnulib/import/m4/lstat.m4: Update.
699 * gnulib/import/m4/malloc.m4: Update.
700 * gnulib/import/m4/malloca.m4: Update.
701 * gnulib/import/m4/math_h.m4: Update.
702 * gnulib/import/m4/mbrtowc.m4: Update.
703 * gnulib/import/m4/mbsinit.m4: Update.
704 * gnulib/import/m4/mbsrtowcs.m4: Update.
705 * gnulib/import/m4/mbstate_t.m4: Update.
706 * gnulib/import/m4/memchr.m4: Update.
707 * gnulib/import/m4/memmem.m4: Update.
708 * gnulib/import/m4/mempcpy.m4: Update.
709 * gnulib/import/m4/memrchr.m4: Update.
710 * gnulib/import/m4/mkdir.m4: Update.
711 * gnulib/import/m4/mkstemp.m4: Update.
712 * gnulib/import/m4/mmap-anon.m4: Update.
713 * gnulib/import/m4/mode_t.m4: Update.
714 * gnulib/import/m4/msvc-inval.m4: Update.
715 * gnulib/import/m4/msvc-nothrow.m4: Update.
716 * gnulib/import/m4/multiarch.m4: Update.
717 * gnulib/import/m4/nocrash.m4: Update.
718 * gnulib/import/m4/off_t.m4: Update.
719 * gnulib/import/m4/onceonly.m4: Update.
720 * gnulib/import/m4/open-cloexec.m4: Update.
721 * gnulib/import/m4/open.m4: Update.
722 * gnulib/import/m4/openat.m4: Update.
723 * gnulib/import/m4/opendir.m4: Update.
724 * gnulib/import/m4/pathmax.m4: Update.
725 * gnulib/import/m4/rawmemchr.m4: Update.
726 * gnulib/import/m4/readdir.m4: Update.
727 * gnulib/import/m4/readlink.m4: Update.
728 * gnulib/import/m4/realloc.m4: Update.
729 * gnulib/import/m4/rename.m4: Update.
730 * gnulib/import/m4/rewinddir.m4: Update.
731 * gnulib/import/m4/rmdir.m4: Update.
732 * gnulib/import/m4/save-cwd.m4: Update.
733 * gnulib/import/m4/secure_getenv.m4: Update.
734 * gnulib/import/m4/setenv.m4: Update.
735 * gnulib/import/m4/signal_h.m4: Update.
736 * gnulib/import/m4/ssize_t.m4: Update.
737 * gnulib/import/m4/stat-time.m4: Update.
738 * gnulib/import/m4/stat.m4: Update.
739 * gnulib/import/m4/std-gnu11.m4: Update.
740 * gnulib/import/m4/stdbool.m4: Update.
741 * gnulib/import/m4/stddef_h.m4: Update.
742 * gnulib/import/m4/stdint.m4: Update.
743 * gnulib/import/m4/stdio_h.m4: Update.
744 * gnulib/import/m4/stdlib_h.m4: Update.
745 * gnulib/import/m4/strchrnul.m4: Update.
746 * gnulib/import/m4/strdup.m4: Update.
747 * gnulib/import/m4/strerror.m4: Update.
748 * gnulib/import/m4/string_h.m4: Update.
749 * gnulib/import/m4/strstr.m4: Update.
750 * gnulib/import/m4/strtok_r.m4: Update.
751 * gnulib/import/m4/sys_socket_h.m4: Update.
752 * gnulib/import/m4/sys_stat_h.m4: Update.
753 * gnulib/import/m4/sys_time_h.m4: Update.
754 * gnulib/import/m4/sys_types_h.m4: Update.
755 * gnulib/import/m4/tempname.m4: Update.
756 * gnulib/import/m4/time_h.m4: Update.
757 * gnulib/import/m4/unistd-safer.m4: Update.
758 * gnulib/import/m4/unistd_h.m4: Update.
759 * gnulib/import/m4/warn-on-use.m4: Update.
760 * gnulib/import/m4/wchar_h.m4: Update.
761 * gnulib/import/m4/wchar_t.m4: Update.
762 * gnulib/import/m4/wctype_h.m4: Update.
763 * gnulib/import/m4/wint_t.m4: Update.
764 * gnulib/import/malloc.c: Update.
765 * gnulib/import/malloc/scratch_buffer.h: Update.
766 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
767 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
768 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
769 * gnulib/import/malloca.c: Update.
770 * gnulib/import/malloca.h: Update.
771 * gnulib/import/malloca.valgrind: Update.
772 * gnulib/import/math.in.h: Update.
773 * gnulib/import/mbrtowc.c: Update.
774 * gnulib/import/mbsinit.c: Update.
775 * gnulib/import/mbsrtowcs-impl.h: Update.
776 * gnulib/import/mbsrtowcs-state.c: Update.
777 * gnulib/import/mbsrtowcs.c: Update.
778 * gnulib/import/memchr.c: Update.
779 * gnulib/import/memmem.c: Update.
780 * gnulib/import/mempcpy.c: Update.
781 * gnulib/import/memrchr.c: Update.
782 * gnulib/import/mkdir.c: Update.
783 * gnulib/import/mkstemp.c: Update.
784 * gnulib/import/msvc-inval.c: Update.
785 * gnulib/import/msvc-inval.h: Update.
786 * gnulib/import/msvc-nothrow.c: Update.
787 * gnulib/import/msvc-nothrow.h: Update.
788 * gnulib/import/open.c: Update.
789 * gnulib/import/openat-die.c: Update.
790 * gnulib/import/openat-priv.h: Update.
791 * gnulib/import/openat-proc.c: Update.
792 * gnulib/import/openat.c: Update.
793 * gnulib/import/openat.h: Update.
794 * gnulib/import/opendir.c: Update.
795 * gnulib/import/pathmax.h: Update.
796 * gnulib/import/pipe-safer.c: Update.
797 * gnulib/import/rawmemchr.c: Update.
798 * gnulib/import/readdir.c: Update.
799 * gnulib/import/readlink.c: Update.
800 * gnulib/import/realloc.c: Update.
801 * gnulib/import/ref-add.sin: Update.
802 * gnulib/import/ref-del.sin: Update.
803 * gnulib/import/rename.c: Update.
804 * gnulib/import/rewinddir.c: Update.
805 * gnulib/import/rmdir.c: Update.
806 * gnulib/import/same-inode.h: Update.
807 * gnulib/import/save-cwd.c: Update.
808 * gnulib/import/save-cwd.h: Update.
809 * gnulib/import/scratch_buffer.h: Update.
810 * gnulib/import/secure_getenv.c: Update.
811 * gnulib/import/setenv.c: Update.
812 * gnulib/import/signal.in.h: Update.
813 * gnulib/import/stat-time.c: Update.
814 * gnulib/import/stat-time.h: Update.
815 * gnulib/import/stat-w32.c: Update.
816 * gnulib/import/stat-w32.h: Update.
817 * gnulib/import/stat.c: Update.
818 * gnulib/import/stdbool.in.h: Update.
819 * gnulib/import/stddef.in.h: Update.
820 * gnulib/import/stdint.in.h: Update.
821 * gnulib/import/stdio.in.h: Update.
822 * gnulib/import/stdlib.in.h: Update.
823 * gnulib/import/str-two-way.h: Update.
824 * gnulib/import/strchrnul.c: Update.
825 * gnulib/import/strdup.c: Update.
826 * gnulib/import/streq.h: Update.
827 * gnulib/import/strerror-override.c: Update.
828 * gnulib/import/strerror-override.h: Update.
829 * gnulib/import/strerror.c: Update.
830 * gnulib/import/string.in.h: Update.
831 * gnulib/import/stripslash.c: Update.
832 * gnulib/import/strnlen1.c: Update.
833 * gnulib/import/strnlen1.h: Update.
834 * gnulib/import/strstr.c: Update.
835 * gnulib/import/strtok_r.c: Update.
836 * gnulib/import/sys_stat.in.h: Update.
837 * gnulib/import/sys_time.in.h: Update.
838 * gnulib/import/sys_types.in.h: Update.
839 * gnulib/import/tempname.c: Update.
840 * gnulib/import/tempname.h: Update.
841 * gnulib/import/time.in.h: Update.
842 * gnulib/import/unistd--.h: Update.
843 * gnulib/import/unistd-safer.h: Update.
844 * gnulib/import/unistd.in.h: Update.
845 * gnulib/import/unsetenv.c: Update.
846 * gnulib/import/verify.h: Update.
847 * gnulib/import/extra/snippet/warn-on-use.h: Update.
848 * gnulib/import/wchar.in.h: Update.
849 * gnulib/import/wctype.in.h: Update.
850 * gnulib/import/xalloc-oversized.h: Update.
851 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
852 "53e2c179f26a890fa6685af4b6c1397ee370433b".
853
8ec23583
SM
8542018-09-10 Simon Marchi <simon.marchi@ericsson.com>
855
856 * record-btrace.c (get_thread_current_frame): Remove
857 old_inferior_ptid.
858
1f5d1570
JG
8592018-09-10 Jerome Guitton <guitton@adacore.com>
860
861 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
862 with check_tag to 1 if and only if the type is tagged and the
863 component being searched cannot been found in the current
864 view. Otherwise, always call ada_to_fixed_type with
865 check_tag to 0.
866
d91e9ea8
XR
8672018-09-10 Xavier Roirand <roirand@adacore.com>
868
869 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
870 declaration.
871 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
872 * ada-varobj.c (ada_varobj_get_number_of_children,
873 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
874
cc330e39
XR
8752018-09-10 Xavier Roirand <roirand@adacore.com>
876
877 * ada-valprint.c (ada_value_print): Use type instead of
878 enclosing type.
879
b9c50e9a
XR
8802018-09-10 Xavier Roirand <roirand@adacore.com>
881
882 * ada-lang.c (ada_value_subscript): Handle case when parameter is
883 an array of access to unconstrained array.
884
736ade86
XR
8852018-09-10 Xavier Roirand <roirand@adacore.com>
886
887 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
888 (ada_check_typedef): Use it.
889
2963898f
XR
8902018-09-10 Xavier Roirand <roirand@adacore.com>
891
892 * ada-varobj.c (ada_varobj_describe_struct_child)
893 (ada_varobj_describe_child): Handle union case like struct one.
894
a154931e
TT
8952018-09-10 Tom Tromey <tom@tromey.com>
896
897 PR python/18380:
898 * python/python.c (_initialize_python): Make example in "python"
899 help work in Python 3.
900
23c4651c
EZ
9012018-09-10 Eli Zaretskii <eliz@gnu.org>
902
903 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
904 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
905 $(EXEEXT) to the script, as it is not a program.
906
a5c5eda7
SM
9072018-09-09 Simon Marchi <simon.marchi@ericsson.com>
908
909 * python/py-prettyprint.c (pretty_print_one_value): Return
910 gdbpy_ref<>.
911 (print_string_repr): Adjust.
912 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
913 * python/python-internal.h (apply_varobj_pretty_printer): Return
914 gdbpy_ref<>.
915 * varobj.c (varobj_value_get_print_value): Adjust.
916
332cf4c9
TT
9172018-09-08 Tom Tromey <tom@tromey.com>
918
919 PR python/16047:
920 * python/py-prettyprint.c (pretty_print_one_value): Check for
921 to_string method.
922
424da6cf
JB
9232018-09-08 Joel Brobecker <brobecker@adacore.com>
924
925 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
926 replace_operator_with_call.
927
95f39a5b
JB
9282018-09-08 Joel Brobecker <brobecker@adacore.com>
929
930 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
931
16b9eb7b
JB
9322018-09-08 Joel Brobecker <brobecker@adacore.com>
933
934 * ada-typeprint.c (print_range): Print the bounds using TYPE
935 rather than its TYPE_TARGET_TYPE.
936
d8ce9127
JB
9372018-09-08 Joel Brobecker <brobecker@adacore.com>
938
939 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
940 call to ada_to_fixed_value_create.
941
0d81f350
JG
9422018-09-08 Jerome Guitton <guitton@adacore.com>
943
944 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
945
57aff202
JB
9462018-09-08 Joel Brobecker <brobecker@adacore.com>
947
948 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
949 by calls to error.
950
fb44b1a7
JB
9512018-09-08 Joel Brobecker <brobecker@adacore.com>
952
953 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
954 Move update of loop variable "fi".
955
2a62dfa9
JB
9562018-09-08 Joel Brobecker <brobecker@adacore.com>
957
958 * ada-lang.c (value_assign_to_component): In the case of
959 big-endian targets, extract the bits of the given VAL
960 using an src_offset of zero if container is not a scalar.
961
739ab2e9
SS
9622018-09-06 Simon Ser <contact@emersion.fr>
963
964 PR gdb/23105
965 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
966 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
967 * fbsd-tdep.c (fbsd_make_note_desc): New.
968 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
969 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
970 * target.h (enum target_object) Add FreeBSD-specific
971 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
972
d82b3862
SM
9732018-09-06 Simon Marchi <simon.marchi@ericsson.com>
974
975 * compile/compile-c.h (generate_c_for_variable_locations):
976 Change reference to pointer.
977 * compile/compile-c-support.c (compile_program) <compute>:
978 Likewise.
979 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
980 (generate_c_for_for_one_variable): Likewise
981 (generate_c_for_variable_locations): Likewise
982 * compile/compile-c-types.c (compile_c_instance::convert_type):
983 Likewise
984 * compile/compile-cplus-symbols.c (convert_one_symbol):
985 std::move the scope passed to enter_scope.
986 * compile/compile-cplus-types.c
987 (compile_cplus_instance::enter_scope): Make parameter
988 rvalue-reference.
989 (compile_cplus_instance::new_scope): Change reference to
990 pointer.
991 (compile_cplus_instance::convert_type): Likewise
992 (compile_cplus_convert_typedef): std::move the scope passed to
993 enter_scope.
994 (compile_cplus_convert_struct_or_union): Likewise.
995 (compile_cplus_convert_enum): Likewise.
996 (compile_cplus_convert_namespace): Likewise.
997 * compile/compile-cplus.h (compile_cplus_instance)
998 <enter_scope>: Make parameter rvalue-reference.
999 * compile/compile-internal.h (compile_instance)
1000 <get_cached_type>: Likewise
1001 * compile/compile-loc2c.c (push): Likewise
1002 (pushf): Likewise
1003 (unary): Likewise
1004 (binary): Likewise
1005 (print_label): Likewise
1006 (pushf_register_address): Likewise
1007 (pushf_register): Likewise
1008 (do_compile_dwarf_expr_to_c): Likewise
1009 (compile_dwarf_expr_to_c): Likewise
1010 (compile_dwarf_bounds_to_c): Likewise
1011 * compile/compile.c (compile_instance::get_cached_type):
1012 Likewise
1013 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1014 (compile_dwarf_bounds_to_c): Likewise
1015 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1016 (dwarf2_compile_property_to_c): Likewise
1017 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1018 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1019 Likewise
1020
cc5a5ae5
SM
10212018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1022
1023 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1024 * tui/tui-data.c (init_content_element): Don't initialize it.
1025
137be540
SM
10262018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1027
1028 * tui/tui-data.h (struct tui_win_info)
1029 <detail::opaque>: Remove.
1030 * tui/tui-data.c (init_win_info): Remove assignment.
1031
f1628857
TT
10322018-09-05 Tom Tromey <tom@tromey.com>
1033
1034 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1035 -Wformat-nonliteral.
1036 * target-float.c (host_float_ops<T>::to_string)
1037 (host_float_ops<T>::from_string): Use
1038 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1039 * configure: Rebuild.
1040
af39b1c2
SM
10412018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1042
1043 * printcmd.c (printf_c_string): Use
1044 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1045 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1046
081bca4d
TT
10472018-09-05 Tom Tromey <tom@tromey.com>
1048
1049 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1050
e4a62c65
TV
10512018-09-05 Tom de Vries <tdevries@suse.de>
1052
1053 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1054 with resolve_abstract_p == true.
1055 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1056 defaulting to false. Propagate resolve_abstract_p to
1057 dwarf2_fetch_die_loc_sect_off.
1058 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1059 parameter, defaulting to false.
1060 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1061 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1062 parameter.
1063 * dwarf2read.h (struct die_info): Forward-declare.
1064 (die_info_ptr): New typedef.
1065 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1066
2b69821e
JB
10672018-09-05 Joel Brobecker <brobecker@adacore.com>
1068
1069 GDB 8.2 released.
1070
fcc9b044
SDJ
10712018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1072 Pedro Alves <palves@redhat.com>
1073
1074 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1075 "aclocal-m4-deps.mk". Include file here.
1076 $(srcdir)/aclocal.m4: Add "configure.ac".
1077 * gnulib/aclocal-m4-deps.mk: New file.
1078 * gnulib/update-gnulib.sh: Automatically update
1079 "aclocal-m4-deps.mk".
1080
d53d5436
TT
10812018-09-04 Tom Tromey <tom@tromey.com>
1082
1083 * configure: Rebuild.
1084 * configure.ac: Remove multi-ice code.
1085
8dc9fd87
TT
10862018-09-04 Tom Tromey <tom@tromey.com>
1087
1088 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1089 (ada-exp.o): Update.
1090
3322c5d9
TT
10912018-09-04 Tom Tromey <tom@tromey.com>
1092
1093 * Makefile.in (printcmd.o, target-float.o): Remove.
1094 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1095
ba2bf2aa
TT
10962018-09-04 Tom Tromey <tom@tromey.com>
1097
1098 * gnulib/Makefile.in: Remove obsolete comment.
1099 * Makefile.in: Remove obsolete comment.
1100
6c9d681b
AB
11012018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1102
1103 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1104 line with '+'.
1105
78a3b0fa
AB
11062018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * riscv-tdep.c: Add 'prologue-value.h' include.
1109 (struct riscv_unwind_cache): New struct.
1110 (riscv_debug_unwinder): New global.
1111 (riscv_scan_prologue): Update arguments, capture register details
1112 from prologue scan.
1113 (riscv_skip_prologue): Reformat arguments line, move end of
1114 prologue calculation into riscv_scan_prologue.
1115 (riscv_frame_cache): Update return type, create
1116 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1117 details.
1118 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1119 (riscv_frame_prev_register): Use the trad_frame within the
1120 riscv_unwind_cache.
1121 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1122 flag.
1123
23e60e7a
AB
11242018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1125
1126 * trad-frame.h (trad_frame_set_realreg): Declare.
1127 (trad_frame_set_addr): Declare.
1128 * trad-frame.c (trad_frame_set_realreg): Define new function.
1129 (trad_frame_set_addr): Define new function.
1130 (trad_frame_set_reg_realreg): Use new function.
1131 (trad_frame_set_reg_addr): Use new function.
1132
5c889512
KS
11332018-09-01 Keith Seitz <keiths@redhat.com>
1134
1135 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1136 pulongest instead of "%lld".
1137 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1138 ATTRIBUTE_UNUSED.
1139
c8c81635
TT
11402018-08-31 Tom Tromey <tom@tromey.com>
1141
1142 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1143 variant part type.
1144
0c888588
PA
11452018-08-31 Pedro Alves <palves@redhat.com>
1146
1147 * gdbarch.h: Regenerate.
1148
7ea65f08
PA
11492018-08-31 Pedro Alves <palves@redhat.com>
1150
1151 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1152 * target.h (Hardware watchpoint interfaces): Describe
1153 continuable/steppable/non-steppable watchpoints.
1154 * gdbarch.h, gdbarch.c: Regenerate.
1155
7eb65faf
PA
11562018-08-31 Pedro Alves <palves@redhat.com>
1157
1158 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1159 Delete.
1160 * s390-linux-nat.c
1161 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1162 * target.h (target_ops::have_continuable_watchpoint): Delete.
1163 (target_have_continuable_watchpoint): Delete.
1164 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1165 * target-delegates.c: Regenerate.
1166
dab999b1
SDJ
11672018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1168
1169 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1170 the files present in "gnulib/import/m4/".
1171
ff3a05b3
AB
11722018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1175 c.sw, c.swsp, and c.sdsp.
1176
0b3f9efc
AB
11772018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1180 (riscv_read_misa_reg): Don't cache value read into inferior data.
1181 (riscv_new_inferior_data): Delete.
1182 (riscv_inferior_data_cleanup): Delete.
1183 (riscv_inferior_data): Delete.
1184 (riscv_invalidate_inferior_data): Delete.
1185 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1186
a0dc02a6
SM
11872018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1188
1189 * compile/compile-cplus-types.c
1190 (compile_cplus_instance::leave_scope): Take the address of scope
1191 object.
1192 (compile_cplus_instance::convert_qualified_base): Compare quals
1193 to 0.
1194
fdad7678
KS
11952018-08-30 Keith Seitz <keiths@redhat.com>
1196
1197 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1198 Use "%s" and host_address_to_string instead of "%p" in printf.
1199
078a0207
KS
12002018-08-29 Keith Seitz <keiths@redhat.com>
1201
1202 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1203 and compile-cplus-types.c.
1204 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1205 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1206 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1207 Declare.
1208 * compile/compile-c-support.c: Include compile-cplus.h.
1209 (load_libcompile): Templatize.
1210 (get_compile_context): "New" function.
1211 (c_get_compile_context): Use get_compile_context.
1212 (cplus_get_compile_context): New function.
1213 (cplus_push_user_expression, cplus_pop_user_expression)
1214 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1215 (cplus_compute_program): Define new structs/functions.
1216 * compile/compile-cplus-symmbols.c: New file.
1217 * compile/compile-cplus-types.c: New file.
1218 * compile/compile-cplus.h: New file.
1219 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1220 Declare.
1221 * compile/compile-object-load.c (get_out_value_type): Use
1222 strncmp_iw when comparing symbol names.
1223 (compile_object_load): Add mst_bss and mst_data.
1224 * compile/compile.c (_initialize_compile): Remove
1225 -Wno-implicit-function-declaration from `compile_args'.
1226 * compile/gcc-cp-plugin.h: New file.
1227 * NEWS: Mention C++ compile support and new debug options.
1228
fcaad03c
KS
12292018-08-29 Keith Seitz <keiths@redhat.com>
1230
1231 * linespec.c (collect_info::add_symbol): Make virtual.
1232 (struct symbol_searcher_collect_info): New struct.
1233 (symbol_searcher::find_all_symbols): New method.
1234 * symtab.h (class symbol_searcher): New class.
1235
7e41c8db
KS
12362018-08-29 Keith Seitz <keiths@redhat.com>
1237
1238 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1239 Change to vector of block_symbol. Update all users.
1240 (struct collect_info) <symbols>: Likewise.
1241 (collect_info::add_symbol): Take block_symbol as argument.
1242 Update all callers.
1243 (decode_compound_collector) <m_symbols>: Change type to vector
1244 of block_symbol. Update all users.
1245 (decode_compound_collector::operator ()): Change parameter type
1246 to block_symbol.
1247 (find_method, find_function_symbols, find_linespec_symbols)
1248 (find_label_symbols_in_block, find_label_symbols): Change symbol
1249 vectors to block_symbol vectors.
1250 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1251 block_symbol.
1252
63e8c3da
KS
12532018-08-29 Keith Seitz <keiths@redhat.com>
1254
1255 * linespec.c (symbolp): Remove typedef and VEC definitions.
1256 (bound_minimal_symbol_d): Likewise.
1257
4dedf84d
KS
12582018-08-29 Keith Seitz <keiths@redhat.com>
1259
1260 * linespec.c (decode_compound_collector::decode_compound_collector):
1261 Remove initialization for `m_symtabs'.
1262 (decode_compound_collector::release_symbols): Change return type
1263 to std::vector. Update all callers.
1264 (class decode_compound_collector) <m_symbols>: Change type to
1265 std::vector.
1266 (lookup_prefix_sym): Change return type to std::vector. Update all
1267 callers.
1268 (compare_symbols): Remove.
1269 (std_compare_symbols): Rename to `compare_symbols'.
1270 (find_method): Change `sym_classes' parameter to std::vector.
1271 Update all callers. Use std::sort to sort sym_classes.
1272 (find_linespec_symbols): Remove cleanup.
1273
c2a031c5
KS
12742018-08-29 Keith Seitz <keiths@redhat.com>
1275
1276 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1277 std::vector. Update all users.
1278 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1279 (struct collect_info) <minimal_symbols>: Likewise.
1280 (compare_msymbols): Return bool. Change parameters to const
1281 bound_minimal_symbol references.
1282 (find_method, find_function_symbols, find_linespec_symbols): Change
1283 `minsyms' parameter to std::vector. Update all callers.
1284
3553eadc
KS
12852018-08-29 Keith Seitz <keiths@redhat.com>
1286
1287 * linespec.c (struct linespec) <label_symbols>: Change type to
1288 std::vector. Update all users.
1289 (find_label_symbols_in_block): Change `result' parameter to
1290 std::vector. Update all callers.
1291 (find_label_symbols): Return std::vector. Update all callers.
1292
7243d011
KS
12932018-08-29 Keith Seitz <keiths@redhat.com>
1294
1295 * linespec.c (struct linespec) <function_symbols>: Change type to
1296 std::vector. Update all users.
1297 (struct collect_info) <function_symbols>: Likewise.
1298 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1299 (std_compare_symbols): New function.
1300 (find_method, find_function_symbols, find_linespec_symbols)
1301 (find_label_symbols_in_block): Change `symbols' parameter to
1302 std::vector. Update all callers.
1303 (find_label_symbols): Likewise for `function_symbols' and
1304 `label_funcs_ret'.
1305
2a908241
KS
13062018-08-29 Keith Seitz <keiths@redhat.com>
1307
1308 * linespec.c (symtab_vector_up): Define.
1309 (struct linespec) <file_symtabs>: Change type to std::vector *.
1310 Update all uses.
1311 (struct collect_info) <file_symtabs>: Likewise.
1312 (collect_symtabs_from_filename): Return symtab_vector_up.
1313 Update all callers.
1314 (decode_objc): Remove cleanup.
1315 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1316 (symtab_collector::release_symtabs): Return symtab_vector_up.
1317 Update all callers.
1318 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1319 Update all users.
1320 (collect_symtabs_from_filename, symtabs_from_filename): Return
1321 symtab_vector_up. Update all callers.
1322
f6c4e3e8
TT
13232018-08-29 Tom Tromey <tom@tromey.com>
1324
1325 * csky-tdep.c (csky_analyze_prologue): Use
1326 core_addr_to_string_nz.
1327
73c13fe6
TT
13282018-08-29 Tom Tromey <tom@tromey.com>
1329
1330 * windows-nat.c (struct xlate_exception) <them>: Change type to
1331 DWORD.
1332 (xlate): Fix formatting. Remove last entry.
1333 (struct xlate_exception, xlate): Comment out.
1334 (windows_nat_target::resume): Use ranged for.
1335
4d3928d7
JW
13362018-08-29 Jim Wilson <jimw@sifive.com>
1337
1338 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1339 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1340 of NT_PRFPREG.
1341 (riscv_linux_nat_target::store_registers): Likewise.
1342
7a6dbc2f
SDJ
13432018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1344
1345 PR gdb/23555
1346 PR gdb/23558
1347 * gnulib/aclocal.m4: Regenerate.
1348 * gnulib/config.in: Regenerate.
1349 * gnulib/configure: Regenerate.
1350 * gnulib/import/Makefile.am: Update.
1351 * gnulib/import/Makefile.in: Update.
1352 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1353 * gnulib/import/_Noreturn.h: ... this.
1354 * gnulib/import/alloca.in.h: Update.
1355 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1356 * gnulib/import/arg-nonnull.h: ... this.
1357 * gnulib/import/assure.h: Update.
1358 * gnulib/import/at-func.c: Update.
1359 * gnulib/import/basename-lgpl.c: Update.
1360 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1361 * gnulib/import/c++defs.h: ... this.
1362 * gnulib/import/canonicalize-lgpl.c: Update.
1363 * gnulib/import/cdefs.h: Update.
1364 * gnulib/import/chdir-long.c: Update.
1365 * gnulib/import/chdir-long.h: Update.
1366 * gnulib/import/cloexec.c: Update.
1367 * gnulib/import/cloexec.h: Update.
1368 * gnulib/import/close.c: Update.
1369 * gnulib/import/closedir.c: Update.
1370 * gnulib/import/config.charset: Update.
1371 * gnulib/import/dirent-private.h: Update.
1372 * gnulib/import/dirent.in.h: Update.
1373 * gnulib/import/dirfd.c: Update.
1374 * gnulib/import/dirname-lgpl.c: Update.
1375 * gnulib/import/dirname.h: Update.
1376 * gnulib/import/dosname.h: Update.
1377 * gnulib/import/dup-safer-flag.c: Update.
1378 * gnulib/import/dup-safer.c: Update.
1379 * gnulib/import/dup.c: Update.
1380 * gnulib/import/dup2.c: Update.
1381 * gnulib/import/errno.in.h: Update.
1382 * gnulib/import/error.c: Update.
1383 * gnulib/import/error.h: Update.
1384 * gnulib/import/exitfail.c: Update.
1385 * gnulib/import/exitfail.h: Update.
1386 * gnulib/import/extra/update-copyright: Update.
1387 * gnulib/import/fchdir.c: Update.
1388 * gnulib/import/fcntl.c: Update.
1389 * gnulib/import/fcntl.in.h: Update.
1390 * gnulib/import/fd-hook.c: Update.
1391 * gnulib/import/fd-hook.h: Update.
1392 * gnulib/import/fd-safer-flag.c: Update.
1393 * gnulib/import/fd-safer.c: Update.
1394 * gnulib/import/fdopendir.c: Update.
1395 * gnulib/import/filename.h: Update.
1396 * gnulib/import/filenamecat-lgpl.c: Update.
1397 * gnulib/import/filenamecat.h: Update.
1398 * gnulib/import/flexmember.h: Update.
1399 * gnulib/import/float+.h: Update.
1400 * gnulib/import/float.c: Update.
1401 * gnulib/import/float.in.h: Update.
1402 * gnulib/import/fnmatch.c: Update.
1403 * gnulib/import/fnmatch.in.h: Update.
1404 * gnulib/import/fnmatch_loop.c: Update.
1405 * gnulib/import/fpucw.h: Update.
1406 * gnulib/import/frexp.c: Update.
1407 * gnulib/import/frexpl.c: Update.
1408 * gnulib/import/fstat.c: Update.
1409 * gnulib/import/fstatat.c: Update.
1410 * gnulib/import/getcwd-lgpl.c: Update.
1411 * gnulib/import/getcwd.c: Update.
1412 * gnulib/import/getdtablesize.c: Update.
1413 * gnulib/import/getlogin_r.c: Update.
1414 * gnulib/import/getprogname.c: Update.
1415 * gnulib/import/getprogname.h: Update.
1416 * gnulib/import/gettext.h: Update.
1417 * gnulib/import/gettimeofday.c: Update.
1418 * gnulib/import/glob-libc.h: Update.
1419 * gnulib/import/glob.c: Update.
1420 * gnulib/import/glob.in.h: Update.
1421 * gnulib/import/glob_internal.h: Update.
1422 * gnulib/import/glob_pattern_p.c: Update.
1423 * gnulib/import/globfree.c: Update.
1424 * gnulib/import/hard-locale.c: Update.
1425 * gnulib/import/hard-locale.h: Update.
1426 * gnulib/import/intprops.h: Update.
1427 * gnulib/import/inttypes.in.h: Update.
1428 * gnulib/import/isnan.c: Update.
1429 * gnulib/import/isnand-nolibm.h: Update.
1430 * gnulib/import/isnand.c: Update.
1431 * gnulib/import/isnanl-nolibm.h: Update.
1432 * gnulib/import/isnanl.c: Update.
1433 * gnulib/import/itold.c: Update.
1434 * gnulib/import/libc-config.h: Update.
1435 * gnulib/import/limits.in.h: Update.
1436 * gnulib/import/localcharset.c: Update.
1437 * gnulib/import/localcharset.h: Update.
1438 * gnulib/import/localtime-buffer.c: Update.
1439 * gnulib/import/localtime-buffer.h: Update.
1440 * gnulib/import/lstat.c: Update.
1441 * gnulib/import/m4/00gnulib.m4: Update.
1442 * gnulib/import/m4/__inline.m4: Update.
1443 * gnulib/import/m4/absolute-header.m4: Update.
1444 * gnulib/import/m4/alloca.m4: Update.
1445 * gnulib/import/m4/builtin-expect.m4: Update.
1446 * gnulib/import/m4/canonicalize.m4: Update.
1447 * gnulib/import/m4/chdir-long.m4: Update.
1448 * gnulib/import/m4/close.m4: Update.
1449 * gnulib/import/m4/closedir.m4: Update.
1450 * gnulib/import/m4/configmake.m4: Update.
1451 * gnulib/import/m4/d-ino.m4: Update.
1452 * gnulib/import/m4/d-type.m4: Update.
1453 * gnulib/import/m4/dirent_h.m4: Update.
1454 * gnulib/import/m4/dirfd.m4: Update.
1455 * gnulib/import/m4/dirname.m4: Update.
1456 * gnulib/import/m4/double-slash-root.m4: Update.
1457 * gnulib/import/m4/dup.m4: Update.
1458 * gnulib/import/m4/dup2.m4: Update.
1459 * gnulib/import/m4/eealloc.m4: Update.
1460 * gnulib/import/m4/environ.m4: Update.
1461 * gnulib/import/m4/errno_h.m4: Update.
1462 * gnulib/import/m4/error.m4: Update.
1463 * gnulib/import/m4/exponentd.m4: Update.
1464 * gnulib/import/m4/exponentl.m4: Update.
1465 * gnulib/import/m4/extensions.m4: Update.
1466 * gnulib/import/m4/extern-inline.m4: Update.
1467 * gnulib/import/m4/fchdir.m4: Update.
1468 * gnulib/import/m4/fcntl-o.m4: Update.
1469 * gnulib/import/m4/fcntl.m4: Update.
1470 * gnulib/import/m4/fcntl_h.m4: Update.
1471 * gnulib/import/m4/fdopendir.m4: Update.
1472 * gnulib/import/m4/filenamecat.m4: Update.
1473 * gnulib/import/m4/flexmember.m4: Update.
1474 * gnulib/import/m4/float_h.m4: Update.
1475 * gnulib/import/m4/fnmatch.m4: Update.
1476 * gnulib/import/m4/fnmatch_h.m4: Update.
1477 * gnulib/import/m4/fpieee.m4: Update.
1478 * gnulib/import/m4/frexp.m4: Update.
1479 * gnulib/import/m4/frexpl.m4: Update.
1480 * gnulib/import/m4/fstat.m4: Update.
1481 * gnulib/import/m4/fstatat.m4: Update.
1482 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1483 * gnulib/import/m4/getcwd-path-max.m4: Update.
1484 * gnulib/import/m4/getcwd.m4: Update.
1485 * gnulib/import/m4/getdtablesize.m4: Update.
1486 * gnulib/import/m4/getlogin.m4: Update.
1487 * gnulib/import/m4/getlogin_r.m4: Update.
1488 * gnulib/import/m4/getpagesize.m4: Update.
1489 * gnulib/import/m4/getprogname.m4: Update.
1490 * gnulib/import/m4/gettimeofday.m4: Update.
1491 * gnulib/import/m4/glibc21.m4: Update.
1492 * gnulib/import/m4/glob.m4: Update.
1493 * gnulib/import/m4/glob_h.m4: Update.
1494 * gnulib/import/m4/gnulib-cache.m4: Update.
1495 * gnulib/import/m4/gnulib-common.m4: Update.
1496 * gnulib/import/m4/gnulib-comp.m4: Update.
1497 * gnulib/import/m4/gnulib-tool.m4: Update.
1498 * gnulib/import/m4/hard-locale.m4: Update.
1499 * gnulib/import/m4/include_next.m4: Update.
1500 * gnulib/import/m4/inttypes-pri.m4: Update.
1501 * gnulib/import/m4/inttypes.m4: Update.
1502 * gnulib/import/m4/isnand.m4: Update.
1503 * gnulib/import/m4/isnanl.m4: Update.
1504 * gnulib/import/m4/largefile.m4: Update.
1505 * gnulib/import/m4/limits-h.m4: Update.
1506 * gnulib/import/m4/localcharset.m4: Update.
1507 * gnulib/import/m4/locale-fr.m4: Update.
1508 * gnulib/import/m4/locale-ja.m4: Update.
1509 * gnulib/import/m4/locale-zh.m4: Update.
1510 * gnulib/import/m4/localtime-buffer.m4: Update.
1511 * gnulib/import/m4/longlong.m4: Update.
1512 * gnulib/import/m4/lstat.m4: Update.
1513 * gnulib/import/m4/malloc.m4: Update.
1514 * gnulib/import/m4/malloca.m4: Update.
1515 * gnulib/import/m4/math_h.m4: Update.
1516 * gnulib/import/m4/mbrtowc.m4: Update.
1517 * gnulib/import/m4/mbsinit.m4: Update.
1518 * gnulib/import/m4/mbsrtowcs.m4: Update.
1519 * gnulib/import/m4/mbstate_t.m4: Update.
1520 * gnulib/import/m4/memchr.m4: Update.
1521 * gnulib/import/m4/memmem.m4: Update.
1522 * gnulib/import/m4/mempcpy.m4: Update.
1523 * gnulib/import/m4/memrchr.m4: Update.
1524 * gnulib/import/m4/mkdir.m4: Update.
1525 * gnulib/import/m4/mkstemp.m4: Update.
1526 * gnulib/import/m4/mmap-anon.m4: Update.
1527 * gnulib/import/m4/mode_t.m4: Update.
1528 * gnulib/import/m4/msvc-inval.m4: Update.
1529 * gnulib/import/m4/msvc-nothrow.m4: Update.
1530 * gnulib/import/m4/multiarch.m4: Update.
1531 * gnulib/import/m4/nocrash.m4: Update.
1532 * gnulib/import/m4/off_t.m4: Update.
1533 * gnulib/import/m4/onceonly.m4: Update.
1534 * gnulib/import/m4/open-cloexec.m4: Update.
1535 * gnulib/import/m4/open.m4: Update.
1536 * gnulib/import/m4/openat.m4: Update.
1537 * gnulib/import/m4/opendir.m4: Update.
1538 * gnulib/import/m4/pathmax.m4: Update.
1539 * gnulib/import/m4/rawmemchr.m4: Update.
1540 * gnulib/import/m4/readdir.m4: Update.
1541 * gnulib/import/m4/readlink.m4: Update.
1542 * gnulib/import/m4/realloc.m4: Update.
1543 * gnulib/import/m4/rename.m4: Update.
1544 * gnulib/import/m4/rewinddir.m4: Update.
1545 * gnulib/import/m4/rmdir.m4: Update.
1546 * gnulib/import/m4/save-cwd.m4: Update.
1547 * gnulib/import/m4/secure_getenv.m4: Update.
1548 * gnulib/import/m4/setenv.m4: Update.
1549 * gnulib/import/m4/signal_h.m4: Update.
1550 * gnulib/import/m4/ssize_t.m4: Update.
1551 * gnulib/import/m4/stat-time.m4: Update.
1552 * gnulib/import/m4/stat.m4: Update.
1553 * gnulib/import/m4/std-gnu11.m4: Update.
1554 * gnulib/import/m4/stdbool.m4: Update.
1555 * gnulib/import/m4/stddef_h.m4: Update.
1556 * gnulib/import/m4/stdint.m4: Update.
1557 * gnulib/import/m4/stdio_h.m4: Update.
1558 * gnulib/import/m4/stdlib_h.m4: Update.
1559 * gnulib/import/m4/strchrnul.m4: Update.
1560 * gnulib/import/m4/strdup.m4: Update.
1561 * gnulib/import/m4/strerror.m4: Update.
1562 * gnulib/import/m4/string_h.m4: Update.
1563 * gnulib/import/m4/strstr.m4: Update.
1564 * gnulib/import/m4/strtok_r.m4: Update.
1565 * gnulib/import/m4/sys_socket_h.m4: Update.
1566 * gnulib/import/m4/sys_stat_h.m4: Update.
1567 * gnulib/import/m4/sys_time_h.m4: Update.
1568 * gnulib/import/m4/sys_types_h.m4: Update.
1569 * gnulib/import/m4/tempname.m4: Update.
1570 * gnulib/import/m4/time_h.m4: Update.
1571 * gnulib/import/m4/unistd-safer.m4: Update.
1572 * gnulib/import/m4/unistd_h.m4: Update.
1573 * gnulib/import/m4/warn-on-use.m4: Update.
1574 * gnulib/import/m4/wchar_h.m4: Update.
1575 * gnulib/import/m4/wchar_t.m4: Update.
1576 * gnulib/import/m4/wctype_h.m4: Update.
1577 * gnulib/import/m4/wint_t.m4: Update.
1578 * gnulib/import/malloc.c: Update.
1579 * gnulib/import/malloc/scratch_buffer.h: Update.
1580 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1581 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1582 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1583 * gnulib/import/malloca.c: Update.
1584 * gnulib/import/malloca.h: Update.
1585 * gnulib/import/malloca.valgrind: Update.
1586 * gnulib/import/math.in.h: Update.
1587 * gnulib/import/mbrtowc.c: Update.
1588 * gnulib/import/mbsinit.c: Update.
1589 * gnulib/import/mbsrtowcs-impl.h: Update.
1590 * gnulib/import/mbsrtowcs-state.c: Update.
1591 * gnulib/import/mbsrtowcs.c: Update.
1592 * gnulib/import/memchr.c: Update.
1593 * gnulib/import/memmem.c: Update.
1594 * gnulib/import/mempcpy.c: Update.
1595 * gnulib/import/memrchr.c: Update.
1596 * gnulib/import/mkdir.c: Update.
1597 * gnulib/import/mkstemp.c: Update.
1598 * gnulib/import/msvc-inval.c: Update.
1599 * gnulib/import/msvc-inval.h: Update.
1600 * gnulib/import/msvc-nothrow.c: Update.
1601 * gnulib/import/msvc-nothrow.h: Update.
1602 * gnulib/import/open.c: Update.
1603 * gnulib/import/openat-die.c: Update.
1604 * gnulib/import/openat-priv.h: Update.
1605 * gnulib/import/openat-proc.c: Update.
1606 * gnulib/import/openat.c: Update.
1607 * gnulib/import/openat.h: Update.
1608 * gnulib/import/opendir.c: Update.
1609 * gnulib/import/pathmax.h: Update.
1610 * gnulib/import/pipe-safer.c: Update.
1611 * gnulib/import/rawmemchr.c: Update.
1612 * gnulib/import/readdir.c: Update.
1613 * gnulib/import/readlink.c: Update.
1614 * gnulib/import/realloc.c: Update.
1615 * gnulib/import/ref-add.sin: Update.
1616 * gnulib/import/ref-del.sin: Update.
1617 * gnulib/import/rename.c: Update.
1618 * gnulib/import/rewinddir.c: Update.
1619 * gnulib/import/rmdir.c: Update.
1620 * gnulib/import/same-inode.h: Update.
1621 * gnulib/import/save-cwd.c: Update.
1622 * gnulib/import/save-cwd.h: Update.
1623 * gnulib/import/scratch_buffer.h: Update.
1624 * gnulib/import/secure_getenv.c: Update.
1625 * gnulib/import/setenv.c: Update.
1626 * gnulib/import/signal.in.h: Update.
1627 * gnulib/import/stat-time.c: Update.
1628 * gnulib/import/stat-time.h: Update.
1629 * gnulib/import/stat-w32.c: Update.
1630 * gnulib/import/stat-w32.h: Update.
1631 * gnulib/import/stat.c: Update.
1632 * gnulib/import/stdbool.in.h: Update.
1633 * gnulib/import/stddef.in.h: Update.
1634 * gnulib/import/stdint.in.h: Update.
1635 * gnulib/import/stdio.in.h: Update.
1636 * gnulib/import/stdlib.in.h: Update.
1637 * gnulib/import/str-two-way.h: Update.
1638 * gnulib/import/strchrnul.c: Update.
1639 * gnulib/import/strdup.c: Update.
1640 * gnulib/import/streq.h: Update.
1641 * gnulib/import/strerror-override.c: Update.
1642 * gnulib/import/strerror-override.h: Update.
1643 * gnulib/import/strerror.c: Update.
1644 * gnulib/import/string.in.h: Update.
1645 * gnulib/import/stripslash.c: Update.
1646 * gnulib/import/strnlen1.c: Update.
1647 * gnulib/import/strnlen1.h: Update.
1648 * gnulib/import/strstr.c: Update.
1649 * gnulib/import/strtok_r.c: Update.
1650 * gnulib/import/sys_stat.in.h: Update.
1651 * gnulib/import/sys_time.in.h: Update.
1652 * gnulib/import/sys_types.in.h: Update.
1653 * gnulib/import/tempname.c: Update.
1654 * gnulib/import/tempname.h: Update.
1655 * gnulib/import/time.in.h: Update.
1656 * gnulib/import/unistd--.h: Update.
1657 * gnulib/import/unistd-safer.h: Update.
1658 * gnulib/import/unistd.in.h: Update.
1659 * gnulib/import/unsetenv.c: Update.
1660 * gnulib/import/verify.h: Update.
1661 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1662 * gnulib/import/wchar.in.h: Update.
1663 * gnulib/import/wctype.in.h: Update.
1664 * gnulib/import/xalloc-oversized.h: Update.
1665 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1666 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1667
b0f492b9
GB
16682018-08-16 Gary Benson <gbenson@redhat.com>
1669
1670 PR gdb/13000:
1671 * gdb/main.c (captured_main_1): Exit with nonzero status
1672 in batch mode if the last command to be executed failed.
1673 * NEWS: Mention the above.
1674
2362e7f7
SM
16752018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1676
1677 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1678 end of warning message.
1679
4f4aedeb
AH
16802018-08-29 Alan Hayward <alan.hayward@arm.com>
1681
1682 PR gdb/22943:
1683 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1684 (aarch64_extract_return_value): Use
1685 aapcs_is_vfp_call_or_return_candidate.
1686 (aarch64_return_in_memory): Likewise.
1687 (aarch64_store_return_value): Likewise.
1688
0e745c60
AH
16892018-08-29 Alan Hayward <alan.hayward@arm.com>
1690
1691 * aarch64-tdep.c
1692 (aapcs_is_vfp_call_or_return_candidate): Make static
1693 (pass_in_v_or_stack): Remove function.
1694 (pass_in_v_vfp_candidate): New function.
1695 (aarch64_push_dummy_call): Check for float register candidates.
1696
ea92689a
AH
16972018-08-29 Alan Hayward <alan.hayward@arm.com>
1698
1699 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1700 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1701 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1702
ad202fcc
SM
17032018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1704
1705 PR build/23399
1706 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1707 (struct ipa_sym_addresses): Rename to...
1708 (struct ipa_sym_addresses_common): ... this.
1709 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1710
5fe3f3e4
TT
17112018-08-28 Tom Tromey <tom@tromey.com>
1712
1713 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1714 (token_fifo): Now a std::vector.
1715 (yylex, c_parse): Update.
1716 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1717 (token_fifo): Now a std::vector.
1718 (yylex, d_parse): Update.
1719 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1720 (token_fifo): Now a std::vector.
1721 (yylex, go_parse): Update.
1722
858d8004
SM
17232018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1724
1725 * parser-defs.h (struct type_stack) <elements>: Change type to
1726 std::vector<union type_stack_elt>.
1727 <depth, size>: Remove.
1728 * parse.c (parse_exp_in_context_1): Adjust.
1729 (type_stack_reserve): Remove.
1730 (check_type_stack_depth): Remove.
1731 (insert_into_type_stack): Adjust to std::vector.
1732 (insert_type): Likewise.
1733 (push_type): Likewise.
1734 (push_type_int): Likewise.
1735 (insert_type_address_space): Likewise.
1736 (pop_type): Likewise.
1737 (pop_type_int): Likewise.
1738 (pop_typelist): Likewise.
1739 (pop_type_stack): Likewise.
1740 (append_type_stack): Likewise.
1741 (push_type_stack): Likewise.
1742 (get_type_stack): Likewise.
1743 (type_stack_cleanup): Likewise.
1744 (push_typelist): Likewise.
1745 (follow_types): Likewise.
1746 (_initialize_parse): Likewise.
1747
416a69af
HAQ
17482018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1749
1750 * NEWS: Mention csky target.
1751
9d24df82
HAQ
17522018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1753 Hafiz Abid Qadeer <abidh@codesourcery.com>
1754 Don Breazeal <donb@codesourcery.com>
1755
1756 * csky-linux-tdep.c: New file.
1757 * csky-tdep.c: Likewise.
1758 * csky-tdep.h: Likewise.
1759 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1760 csky-tdep.o.
1761 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1762 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1763 * configure.tgt: Add csky support.
1764
3bf9c013
JV
17652018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1766
1767 * python/py-framefilter.c (py_print_frame): Print frame architecture
1768 when printing on an MI output.
1769
d3d8724a
TT
17702018-08-27 Tom Tromey <tom@tromey.com>
1771
1772 PR build/23087:
1773 * configure: Rebuild.
1774 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1775
1885053b
TT
17762018-08-27 Tom Tromey <tom@tromey.com>
1777
1778 * aarch64-linux-tdep.c
1779 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1780 casts to int.
1781
8406672e
TT
17822018-08-27 Tom Tromey <tom@tromey.com>
1783
1784 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1785 unsigned.
1786 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1787 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1788 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1789 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1790 unsigned.
1791
ec40cf90
TT
17922018-08-27 Tom Tromey <tom@tromey.com>
1793
1794 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1795 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1796
7bc02706
TT
17972018-08-27 Tom Tromey <tom@tromey.com>
1798
1799 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1800 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1801 ULONGEST_MAX.
1802 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1803 ULONGEST_MAX.
1804 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1805 ULONGEST_MAX.
1806 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1807 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1808 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1809 ULONGEST_MAX.
1810 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1811 (ppc64_linux_sigaction_tramp_frame)
1812 (ppc32_linux_sighandler_tramp_frame)
1813 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1814 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1815 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1816 * mn10300-linux-tdep.c (am33_linux_sigframe)
1817 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1818 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1819 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1820 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1821 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1822 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1823 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1824 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1825 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1826 * microblaze-linux-tdep.c
1827 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1828 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1829 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1830 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1831 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1832 * common/common-types.h (ULONGEST_MAX): New define.
1833 (CORE_ADDR_MAX): Fix formatting.
1834 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1835 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1836 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1837 (arm_linux_rt_sigreturn_tramp_frame)
1838 (arm_eabi_linux_sigreturn_tramp_frame)
1839 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1840 (thumb2_eabi_linux_sigreturn_tramp_frame)
1841 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1842 (arm_linux_restart_syscall_tramp_frame)
1843 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1844 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1845 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1846 ULONGEST_MAX.
1847 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1848
70ab8ccd
TT
18492018-08-27 Tom Tromey <tom@tromey.com>
1850
1851 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1852 CORE_ADDR_MAX.
1853 * mips-tdep.c (mips_deal_with_atomic_sequence)
1854 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1855 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1856 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1857 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1858 CORE_ADDR_MAX.
1859 * aarch64-tdep.c (aarch64_software_single_step): Use
1860 CORE_ADDR_MAX.
1861
896a7aa6
TT
18622018-08-27 Tom Tromey <tom@tromey.com>
1863
1864 * linespec.c (complete_linespec_component): Add cast to "char".
1865 * completer.c (completion_tracker::build_completion_result): Add
1866 cast to "char".
1867
dd33d41d
SM
18682018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1869
1870 * solist.h (struct solist, struct target_so_ops): Fix
1871 indentation.
1872
c645cda4
SM
18732018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1874
1875 * ada-tasks.c (ada_task_info_s): Remove typedef.
1876 (DEF_VEC_O(ada_task_info_s)): Remove.
1877 (struct ada_tasks_inferior_data): Initialize fields.
1878 <task_list>: Make an std::vector.
1879 (get_ada_tasks_inferior_data): Allocate with new.
1880 (ada_get_task_number): Adjust.
1881 (get_task_number_from_id): Likewise.
1882 (valid_task_id): Likewise.
1883 (ada_get_task_info_from_ptid): Likewise.
1884 (iterate_over_live_ada_tasks): Likewise.
1885 (add_ada_task): Likewise.
1886 (read_known_tasks): Likewise.
1887 (ada_build_task_list): Likewise.
1888 (print_ada_task_info): Likewise.
1889 (info_task): Likewise.
1890 (task_command_1): Likewise.
1891
39e7af3e
SM
18922018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1893
1894 * ada-lang.c (add_angle_brackets): Return std::string.
1895
bbbbbcee
SM
18962018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1897
1898 * python/py-threadevent.c (py_get_event_thread): Initialize
1899 pythread.
1900
d98fc15b
PA
19012018-08-24 Pedro Alves <palves@redhat.com>
1902
1903 * python/py-bpevent.c (create_breakpoint_event_object): Use
1904 copy-initialization.
1905 * python/py-continueevent.c (emit_continue_event): Use
1906 copy-initialization.
1907 * python/py-exitedevent.c (create_exited_event_object): Return a
1908 gdbpy_ref<>.
1909 (emit_exited_event): Use copy-initialization.
1910 * python/py-inferior.c (python_new_inferior)
1911 (python_inferior_deleted, add_thread_object): Use
1912 copy-initialization.
1913 * python/py-infevents.c (create_inferior_call_event_object)
1914 (create_register_changed_event_object)
1915 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1916 (emit_inferior_call_event, emit_memory_changed_event)
1917 (emit_register_changed_event): Use copy-initialization.
1918 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1919 Return a gdbpy_ref<>.
1920 (emit_new_objfile_event): Use copy-initialization.
1921 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1922 (emit_clear_objfiles_event): Use copy-initialization.
1923 * python/py-signalevent.c (create_signal_event_object): Use
1924 copy-initialization.
1925 * python/py-threadevent.c (create_thread_event_object): Use
1926 copy-initialization.
1927
da3c8738
PA
19282018-08-24 Pedro Alves <palves@redhat.com>
1929 Simon Marchi <simon.marchi@ericsson.com>
1930
1931 PR gdb/23379
1932 * python/py-continueevent.c: Include "gdbthread.h".
1933 (create_continue_event_object): Add intro comment. Add 'ptid'
1934 parameter. Use it to find thread to pass to
1935 create_thread_event_object.
1936 (emit_continue_event): Pass PTID down to
1937 create_continue_event_object.
1938 * python/py-event.h (py_get_event_thread): Declare.
1939 (create_thread_event_object): Remove default from 'thread'
1940 parameter.
1941 * python/py-stopevent.c (create_stop_event_object): Use
1942 py_get_event_thread.
1943 * python/py-threadevent.c (get_event_thread): Rename to ...
1944 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1945 and use it to find the thread.
1946 (create_thread_event_object): Assert that THREAD isn't null.
1947 Don't find the event thread here.
1948
26457a9c
KB
19492018-08-23 Kevin Buettner <kevinb@redhat.com>
1950
1951 * block.h (blockrange, blockranges): New struct declarations.
1952 (struct block): Add new field named `ranges'.
1953 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1954 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1955 macros for accessing ranges in struct block.
1956 (make_blockranges): New declaration.
1957 block.c (make_blockranges): New function.
2d5f09ec
KB
1958 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1959 for block.
fc811edd
KB
1960 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1961 * blockframe.c (cache_pc_function_block): New static global.
1962 (clear_pc_function_cache): Clear cache_pc_function_block.
1963 (find_pc_partial_function): Move comment to symtab.h. Add
1964 support for non-contiguous blocks.
e9480230
KB
1965 * cli/cli-cmds.c (block.h): Include.
1966 (print_disassembly): Handle printing of non-contiguous blocks.
1967 (disassemble_current_function): Likewise.
1968 (disassemble_command): Likewise.
26457a9c 1969
2b1ffcfd
KB
1970 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1971 BLOCK_START.
1972 * blockframe.c (get_pc_function_start): Likewise.
1973 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1974 (gcc_symbol_address): Likewise.
1975 * compile/compile-object-run.c (compile_object_run): Likewise.
1976 * compile/compile.c (get_expr_block_and_pc): Likewise.
1977 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1978 (func_addr_to_tail_call_list): Likewise.
1979 * findvar.c (default_read_var_value): Likewise.
1980 * inline-frame.c (inline_frame_this_id): Likewise.
1981 (skip-inline_frames): Likewise.
1982 * infcmd.c (until_next_command): Likewise.
1983 * linespec.c (convert_linespec_to_sals): Likewise.
1984 * parse.c (parse_exp_in_context_1): Likewise.
1985 * printcmd.c (build_address_symbolic): likewise.
1986 (info_address_command): Likewise.
1987 symtab.c (find_function_start_sal): Likewise.
1988 (skip_prologue_sal): Likewise.
1989 (find_function_alias_target): Likewise.
1990 (find_gnu_ifunc): Likewise.
1991 * stack.c (find_frame_funname): Likewise.
1992 * symtab.c (fixup_symbol_section): Likewise.
1993 (find_function_start_sal): Likewise.
1994 (skip_prologue_sal): Likewsie.
1995 (find_function_alias_target): Likewise.
1996 (find_gnu_ifunc): Likewise.
1997 * tracepoint.c (info_scope_command): Likewise.
1998 * value.c (value_fn_field): Likewise.
1999
9644dc3a
KB
2000 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2001 in place of find_pc_partial_function.
2002 * blockframe.c (find_function_entry_range_from_pc): New function.
2003 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2004 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2005 for each range in a block.
2006
2007
12a0d0f6
XR
20082018-08-23 Xavier Roirand <roirand@adacore.com>
2009
2010 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2011 incrementation.
2012
d1012b8e
SM
20132018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2014
2015 * solib-svr4.c (read_program_headers_from_bfd): Return
2016 gdb::optional<gdb::byte_vector>.
2017 (svr4_exec_displacement): Adjust.
2018
17658d46
SM
20192018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2020
2021 * solib-svr4.c (read_program_header): Return
2022 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2023 (find_program_interpreter): Return
2024 gdb::optional<gdb::byte_vector>.
2025 (scan_dyntag_auxv): Adjust.
2026 (enable_break): Adjust.
2027 (svr4_exec_displacement): Adjust.
2028
ae739fe7
SM
20292018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2030
2031 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2032 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2033
467dc1e2
SM
20342018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2035
2036 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2037 string_vprintf.
2038 * guile/scm-utils.c (gdbscm_printf): Likewise.
2039 * serial.c (serial_printf): Likewise.
2040 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2041
6d52907e
JV
20422018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2043
2044 * stack.c (print_frame): Print frame architecture when printing on
2045 an MI output.
2046 * NEWS: Mention new "arch" attribute in frame output.
2047
9758a8f8
AH
20482018-08-21 Alan Hayward <alan.hayward@arm.com>
2049
2050 * arch/aarch64.h (aarch64_regnum): Update comment.
2051
1461bdac
AH
20522018-08-21 Alan Hayward <alan.hayward@arm.com>
2053
2054 * NEWS: Add SVE to 8.2 section.
2055
4895f384
PA
20562018-08-21 Pedro Alves <palves@redhat.com>
2057
2058 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2059 out from gdbscm_parse_function_args.
2060 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2061 gdbscm_parse_function_args_1.
2062
a4497d2f
SM
20632018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2064
2065 PR gdb/17816
2066 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2067 operator.
2068
c44deb73
SM
20692018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2070
2071 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2072
be2d111a
MS
20732018-08-19 Michael Spang <spang@google.com>
2074
2075 PR gdb/11786
2076 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2077 for PT_TLS segments.
2078
a6b786da
KB
20792018-08-18 Kevin Buettner <kevinb@redhat.com>
2080
2081 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2082 dwarf_variable_value.
2083 * dwarf2-frame.c (class dwarf_expr_executor):
2084 Add override for dwarf_variable_value.
2085 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2086 (class symbol_needs_eval_context): Likewise.
2087 (indirect_synthetic_pointer): Add forward declaration.
2088 (sect_variable_value): New function.
2089 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2090 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2091 for DW_OP_GNU_variable_value.
2092
89fbedf3
TT
20932018-08-16 Tom Tromey <tom@tromey.com>
2094
2095 * top.c (read_command_file): Update.
2096 (command_line_input): Remove "repeat" argument.
2097 * ada-lang.c (get_selections): Update.
2098 * linespec.c (decode_line_2): Update.
2099 * defs.h (command_line_input): Remove argument.
2100 * cli/cli-script.c (read_next_line): Update.
2101 * python/py-gdb-readline.c: Update.
2102
12582533
TT
21032018-08-17 Tom Tromey <tom@tromey.com>
2104
2105 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2106 command_line_input.
2107
49514353
TT
21082018-08-15 Tom Tromey <tom@tromey.com>
2109
2110 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2111
26fb3983
JV
21122018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2113
2114 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2115 If used, use find_pc_partial_function to find address range
2116 to disassemble.
2117 * mi/mi-main.c (mi_cmd_list_features): Report
2118 "data-disassemble-a-option" feature.
2119 * NEWS: Mention new -data-disassemble option -a.
2120
a97b53dd
TT
21212018-08-13 Tom Tromey <tom@tromey.com>
2122
2123 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2124
0c76e06d
AH
21252018-08-13 Alan Hayward <alan.hayward@arm.com>
2126
2127 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2128 (aarch64_linux_collect_sve_regset): Likewise.
2129 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2130 * regcache.h (regcache_map_entry_size): New function.
2131
b7fd65b9
AH
21322018-08-13 Alan Hayward <alan.hayward@arm.com>
2133
2134 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2135 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2136 (SVE_HEADER_VL_LENGTH): Likewise.
2137 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2138 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2139 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2140 (SVE_HEADER_SIZE_OFFSET): Likewise.
2141 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2142 (SVE_HEADER_VL_OFFSET): Likewise.
2143 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2144 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2145 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2146 (SVE_HEADER_SIZE): Likewise.
2147 (aarch64_linux_core_read_vq): Add function.
2148 (aarch64_linux_core_read_description): Check for SVE section.
2149
a616bb94
AH
21502018-08-13 Alan Hayward <alan.hayward@arm.com>
2151
2152 * aarch64-fbsd-tdep.c
2153 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2154 collect_size.
2155 * aarch64-linux-tdep.c
2156 (aarch64_linux_iterate_over_regset_sections): Likewise.
2157 * alpha-linux-tdep.c
2158 (alpha_linux_iterate_over_regset_sections):
2159 * alpha-nbsd-tdep.c
2160 (alphanbsd_iterate_over_regset_sections): Likewise.
2161 * amd64-fbsd-tdep.c
2162 (amd64fbsd_iterate_over_regset_sections): Likewise.
2163 * amd64-linux-tdep.c
2164 (amd64_linux_iterate_over_regset_sections): Likewise.
2165 * arm-bsd-tdep.c
2166 (armbsd_iterate_over_regset_sections): Likewise.
2167 * arm-fbsd-tdep.c
2168 (arm_fbsd_iterate_over_regset_sections): Likewise.
2169 * arm-linux-tdep.c
2170 (arm_linux_iterate_over_regset_sections): Likewise.
2171 * corelow.c (get_core_registers_cb): Likewise.
2172 (core_target::fetch_registers): Likewise.
2173 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2174 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2175 * gdbarch.h (void): Regenerate.
2176 * gdbarch.sh: Add supply_size and collect_size.
2177 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2178 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2179 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2180 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2181 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2182 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2183 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2184 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2185 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2186 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2187 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2188 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2189 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2190 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2191 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2192 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2193 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2194 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2195 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2196 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2197 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2198 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2199 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2200 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2201 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2202 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2203 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2204 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2205 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2206 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2207
a9925d4f
SM
22082018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2209
2210 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2211 with string_printf.
2212
ad3a68e9
KS
22132018-08-10 Keith Seitz <keiths@redhat.com>
2214
2215 * compile/compile-c-support.c (add_code_header, add_code_footer):
2216 Move into policy class.
2217 (c_push_user_expression, pop_user_expression_nop)
2218 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2219 (compile_program): New host class.
2220 (c_compile_program): New typedef.
2221 (c_compute_porgram): Use c_compile_program.
2222
0cfbf430
KS
22232018-08-10 Keith Seitz <keiths@redhat.com>
2224
2225 * compile/compile-internal.h (compile_instance::~compile_instance):
2226 Remove calls to htab_delete.
2227 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2228 * compile.c (compile_instance::compile_instance): Initialize
2229 htab unique pointers.
2230 (compile_instance::get_cached_type, compile_instance::insert_type)
2231 (compile_instance::error_symbol_once): Update for unique_ptr.
2232
946d3d10
KS
22332018-08-10 Keith Seitz <keiths@redhat.com>
2234
2235 * compile/compile-c-symbols.c (struct symbol_error)
2236 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2237 (compile_instance::insert_symbol_error)
2238 (compile_instance::error_symbol_once): Move to ...
2239 * compile/compile.c: ... here.
2240
9cdfd9a2
KS
22412018-08-10 Keith Seitz <keiths@redhat.com>
2242
2243 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2244 instead of `new_compile_instance'.
2245 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2246 Update description.
2247 If the symbol error map is not initialized, create it.
2248 (generate_c_for_for_one_symbol): Do not check/initialize
2249 the symbol error map.
2250 * compile/compile-c-types.c (compile_c_instance): Make a class.
2251 Update all callers.
2252 (compile_instance::compile_instance): Initialize the type cache.
2253 (get_cached_type): New function.
2254 (insert_type): Update description.
2255 (compile_c_instance::m_default_cflags): Define.
2256 (convert_type): Update description. Use get_cached_type.
2257 (delete_instance): Moved to destructor.
2258 (new_compile_instance): Moved to constructor.
2259 * compile/compile-c.h (compile_c_instance): Make class inheriting
2260 from compile_instance.
2261 <base>: Remove field.
2262 <type_map, symbol_err_map>: Move to base class.
2263 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2264 * compile/compile-internal.h (compile_instance): Make class.
2265 <type_map_t, symbol_err_map_t>: Define.
2266 <fe>: Rename to `m_gcc_fe'.
2267 <scope, block, gcc_target_options>: Add `m_' prefix.
2268 <m_type_map, m_symbol_err_map>: New fields, moved from
2269 compile_c_instance.
2270 <destroy>: Remove.
2271 (convert_type, new_compile_instance): Remove.
2272 * compile/compile.c (cleanup_compile_instance): Remove.
2273 (compile_to_object): Use unique_ptr to eliminate cleanups.
2274 (compile_instance::set_print_callback, compile_instance::version)
2275 (compile_instance::set_verbose)
2276 (compile_instance::set_driver_filename)
2277 (compile_instance::set_triplet_regexp)
2278 (compile_instance::set_arguments)
2279 (compile_instance::set_source_file)
2280 (compile_instance::compile): Define.
2281
18cdc6d8
KS
22822018-08-10 Keith Seitz <keiths@redhat.com>
2283
2284 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2285 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2286 gcc-c-fe.def to define C plugin.
2287 (delete_instance): Delete `c_plugin'.
2288 (new_compile_instance): Initialize `c_plugin'.
2289 * compile/compile-c.h: Include gcc_c_plugin.h.
2290 (struct compile_c_instance) <c_plugin>: New member.
2291 * gcc-c-plugin.h: New file.
2292 Update all callers with API change.
2293
b7dc48b4
KS
22942018-08-10 Keith Seitz <keiths@redhat.com>
2295
2296 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2297 (HFILES_NO_SRCDIR): ... to here.
2298 Add compile-internal.h and compile-c.h.
2299 * compile/compile-c-support.c: Include compile-c.h.
2300 * compile/compile-c-symbols.c: Include compile-c.h.
2301 (generate_c_for_variable_locations): Update comment.
2302 * compile/compile-c-types.c: Include compile-c.h.
2303 * compile/compile-c.h: New file -- moved C language declarations
2304 from other files here.
2305 * compile/compile-internal.h: Do not include hashtab.h or
2306 common/enum-flags.h.
2307 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2308 (gcc_convert_symbol, gcc_symbol_address)
2309 (generate_c_for_variable_locations, c_get_mode_for_size)
2310 (c_get_range_decl_name): Definitions moved to compile-c.h.
2311 * compile/compile-loc2c.c: Include compile-c.h.
2312
6f36b6d2
KS
23132018-08-10 Keith Seitz <keiths@redhat.com>
2314
2315 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2316 (c_symbol_substitution_name): ... this.
2317 Update all callers.
2318
bd923e51
KS
23192018-08-10 Keith Seitz <keiths@redhat.com>
2320
2321 * compile/compile-c-support.c (c_compute_program): Use
2322 unique_xmalloc_ptr to eliminate cleanup.
2323 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2324 Return a unique_xmalloc_ptr and eliminate cleanup.
2325 * compile/compile-internal.h (generate_c_for_variable_locations):
2326 Return unique_xmalloc_ptr and update description.
2327
dbd534fe
AH
23282018-08-10 Alan Hayward <alan.hayward@arm.com>
2329
2330 * corelow.c (core_target::get_core_register_section): Rename
2331 min_size to section_min_size.
2332
90ad3654
JW
23332018-08-09 Jim Wilson <jimw@sifive.com>
2334
52a187f8
JW
2335 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2336 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2337 * NEWS: Mention new GNU/Linux RISC-V target.
2338 * configure.host: Add riscv*-*-linux*.
2339 * configure.nat: Add riscv*.
2340 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 2341 * riscv-linux-nat.c: New file.
90ad3654
JW
2342 * riscv-linux-tdep.c: New file.
2343
aff4e175
AB
23442018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2345
2346 * infrun.c (resume): Make static, add forward declaration.
2347 (proceed): Update header comment.
2348 * infrun.h (resume): Delete declaration.
2349
06ab9219
TT
23502018-08-09 Tom Tromey <tom@tromey.com>
2351
2352 * riscv-tdep.h: Minor formatting fixes.
2353
83c8d318
SM
23542018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2355
2356 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2357 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2358 (test_mkdir_recursive): Likewise.
2359 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2360
5ff2bbae
AB
23612018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2362
2363 * valarith.c (value_subscripted_rvalue): If an array is not in
2364 memory, and we don't know the upper bound, then we can't know that
2365 the requested element exists or not.
2366
fdbac7d8
SM
23672018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2368
2369 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2370 (target_options_to_string): Add comment.
2371
83202f7a
TT
23722018-08-08 Tom Tromey <tom@tromey.com>
2373
2374 * unittests/scoped_mmap-selftests.c: Check result of "write".
2375
411baa47
JW
23762018-08-08 Jim Wilson <jimw@sifive.com>
2377
5c720ed8
JW
2378 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2379 (decode_register_index_short): New.
2380 (decode_j_type_insn, decode_cj_type_insn): New.
2381 (decode_b_type_insn, decode_cb_type_insn): New.
2382 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2383 local xlen. Check xlen when decoding ambiguous compressed insns. In
2384 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2385 is_c_sw_insn instead of is_sw_insn.
2386 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2387 (riscv_software_single_step): New.
2388 * riscv-tdep.h (riscv_software_single_step): Declare.
2389
411baa47
JW
2390 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2391 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2392
9d4a934c
AB
23932018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2394
2395 PR gdb/18050:
2396 * target.c (dispose_inferior): Don't dispose of inferiors that are
2397 already killed.
2398
ff36536c
SN
23992018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2400
2401 * remote.c (remote_target::download_tracepoint): Change char* to
2402 const char*.
2403
09ce46f2
SM
24042018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2405
2406 * target.h (target_options_to_string): Return an std::string.
2407 * target.c (str_comma_list_concat_elem): Return void, use
2408 std::string.
2409 (do_option): Likewise.
2410 (target_options_to_string): Return an std::string.
2411 * linux-nat.c (linux_nat_target::wait): Adjust.
2412 * target-debug.h (target_debug_print_options): Adjust.
2413
9c612964
TT
24142018-08-07 Tom Tromey <tom@tromey.com>
2415
2416 * Makefile.in (CPPFLAGS): New variable.
2417 (INTERNAL_CPPFLAGS): Use it.
2418
7d11235d
SM
24192018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2420
2421 * NEWS: Mention the index cache.
2422
87d6a7aa
SM
24232018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2424
2425 * common/pathstuff.h (get_standard_cache_dir): New.
2426 * common/pathstuff.c (get_standard_cache_dir): New.
2427 * build-id.h (build_id_to_string): New.
2428 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2429 DEBUG_STR_SUFFIX): Move to here.
2430 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2431 DEBUG_STR_SUFFIX): Move from there.
2432 (write_psymtabs_to_index): Make non-static, add basename
2433 parameter. Write to temporary files, rename when done.
2434 (save_gdb_index_command): Adjust call to
2435 write_psymtabs_to_index.
2436 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2437 field.
2438 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2439 (get_gdb_index_contents_from_cache): New.
2440 (get_gdb_index_contents_from_cache_dwz): New.
2441 (dwarf2_initialize_objfile): Read index from cache.
2442 (dwarf2_build_psymtabs): Save to index.
2443 * dwarf-index-cache.h: New file.
2444 * dwarf-index-cache.c: New file.
2445 * dwarf-index-write.h: New file.
2446
8a99096f
SM
24472018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2448
2449 * gnulib/aclocal.m4: Re-generate.
2450 * gnulib/config.in: Re-generate.
2451 * gnulib/configure: Re-generate.
2452 * gnulib/import/Makefile.am: Re-generate.
2453 * gnulib/import/Makefile.in: Re-generate.
2454 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2455 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2456 * gnulib/import/m4/mkdir.m4: New file.
2457 * gnulib/import/mkdir.c: New file.
2458 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2459 module.
2460
5c831bb1
SM
24612018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2462
2463 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2464 * common/scoped_mmap.c: New file.
2465 * common/scoped_mmap.h (destroy): New method.
2466 (~scoped_mmap, reset): Use destroy.
2467 (scoped_mmap): New move constructor.
2468 (mmap_file): New declaration.
2469 * unittests/scoped_mmap-selftests.c (test_normal,
2470 test_invalid_filename, run_tests): New functions.
2471 (_initialize_scoped_mmap_selftests): Register selftest.
2472
4485a1c1
SM
24732018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2474
2475 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2476 (read_gdb_index_from_buffer): ... this. Remove section
2477 parameter, add buffer parameter.
2478 (get_gdb_index_contents_ftype,
2479 get_gdb_index_contents_dwz_ftype): New typedefs.
2480 (dwarf2_read_gdb_index): Add callback parameters to get the
2481 index contents.
2482 (get_gdb_index_contents_from_section): New.
2483 (dwarf2_initialize_objfile): Update call to
2484 dwarf2_read_gdb_index.
2485
528e1572
SM
24862018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2487
2488 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2489 (gdb_open_cloexec): Likewise.
2490 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2491 (commandline_from_pid): Likewise.
2492 (linux_xfer_osdata_threads): Likewise.
2493 (linux_xfer_osdata_fds): Likewise.
2494 * ada-lang.c (is_package_name): Likewise.
2495 * auxv.c (procfs_xfer_auxv): Likewise.
2496 * breakpoint.c (print_one_breakpoint_location): Use
2497 uiout::field_fmt.
2498 (print_one_catch_solib): Use string_printf.
2499 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2500 (add_pe_forwarded_sym): Likewise.
2501 * dwarf2read.c (create_type_unit_group): Likewise.
2502 (build_error_marker_type): Likewise.
2503 * infcall.c (get_function_name): Likewise.
2504 * valprint.c (print_converted_chars_to_obstack): Likewise.
2505 * xtensa-tdep.c (xtensa_register_type): Likewise.
2506
a7f25a84
SM
25072018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2508
2509 * remote.c (remote_target::download_tracepoint): Fix format
2510 string errors.
2511
296956be
PFC
25122018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2513
2514 * tracefile.c: Include common/byte-vector.h.
2515 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2516 with trace_regblock_size if needed. Update uses of buf.
2517
a04b9d62
PFC
25182018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2519
2520 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2521 std::vector<unsigned char>.
2522 * tracepoint.c (collection_list::collection_list): Remove
2523 m_regs_mask initializer from initializer list. Resize
2524 m_regs_mask using the largest remote register number.
2525 (collection_list::add_remote_register): Remove size check on
2526 m_regs_mask. Use at to access element.
2527 (collection_list::stringify): Change type of temp_buf to
2528 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2529 stringify the register mask. Use pack_hex_byte for the register
2530 mask.
2531
4277c4b8
PFC
25322018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2533
2534 * tracepoint.h (class collection_list) <add_register>: Remove.
2535 <add_remote_register, add_ax_registers, add_local_register>:
2536 Declare.
2537 <add_memrange>: Add scope parameter.
2538 * tracepoint.c (encode_actions_1): Likewise.
2539 (collection_list::add_register): Rename to ...
2540 (collection_list::add_remote_register): ... this. Update
2541 comment.
2542 (collection_list::add_ax_registers, add_local_register): New
2543 methods.
2544 (collection_list::add_memrange): Add scope parameter. Call
2545 add_local_register instead of add_register.
2546 (finalize_tracepoint_aexpr): New function.
2547 (collection_list::collect_symbol): Update calls to add_memrange.
2548 Call add_local_register instead of add_register. Call
2549 add_ax_registers. Call finalize_tracepoint_aexpr.
2550 (encode_actions_1): Get remote regnos for $reg action. Call
2551 add_remote_register, add_ax_registers, and add_local_register.
2552 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2553 (validate_actionline): Call finalize_tracepoint_aexpr.
2554
3df3a985
PFC
25552018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2556
2557 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2558 Replace array buf with gdb::char_vector buf, of size
2559 get_remote_packet_size (). Replace references to buf and
2560 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2561 and xsnprintf with snprintf. Raise errors if the buffer is too
2562 small.
2563
aa6f3694
PFC
25642018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2565
2566 * remote.c (remote_target::download_tracepoint): Fix the has_more
2567 predicate in the QTDP action list iteration.
2568
05abfc39
PFC
25692018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2570
2571 * remote.c (remote_target::download_tracepoint): Fix indentation
2572 in for block.
2573
821a2682
RO
25742018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2575
2576 * proc-api.c (_initialize_proc_api): Remove c, unused.
2577 * procfs.c (procfs_init_inferior): Remove signals, unused.
2578 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2579 unused.
2580
95347337
AB
25812018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2582 Andrew Burgess <andrew.burgess@embecosm.com>
2583
2584 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2585 'W_STOPCODE (0)' as this could be ambiguous.
2586
425699f5
SDJ
25872018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2588
2589 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2590 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2591 "ai_socktype").
2592
3e1d3d8c
TT
25932018-08-02 Tom Tromey <tom@tromey.com>
2594
2595 PR symtab/16842.
2596 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2597 symbols.
2598 (process_structure_scope): Likewise.
2599
15843549
XR
26002018-08-02 Xavier Roirand <roirand@adacore.com>
2601
2602 PR gdb/22629:
2603 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2604 kill inferior.
2605
b5bddbbb
TT
26062018-08-02 Tom Tromey <tom@tromey.com>
2607
2608 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2609 (darwin_suspend_inferior, darwin_resume_inferior)
2610 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2611 (darwin_check_new_threads): Check result of get_darwin_inferior.
2612
f61cfa07
JB
26132018-07-31 Joel Brobecker <brobecker@adacore.com>
2614
2615 GDB 8.1.1 released.
2616
5abe0f0c
JV
26172018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2618
2619 * varobj.c (varobj_get_path_expr_parent): Report an error if
2620 parent is a dynamic varobj.
2621
472fa5ee
SM
26222018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2623
2624 * gnulib/aclocal.m4: Re-generate.
2625 * gnulib/config.in: Re-generate.
2626 * gnulib/configure: Re-generate.
2627 * gnulib/import/Makefile.in: Re-generate.
2628 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2629 * gnulib/import/m4/onceonly.m4: Re-generate.
2630
1c28969e
SM
26312018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2632
2633 * target-descriptions.c (struct xml_test_tdesc): New.
2634 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2635 (record_xml_tdesc): Update.
2636 (maintenance_check_xml_descriptions): Update.
2637 * target-descriptions.h (record_xml_tdesc): Update comment.
2638
c8f2dc0d
AB
26392018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2640
2641 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2642 checking array bounds are defined.
2643
463c08d1
TT
26442018-07-30 Tom Tromey <tom@tromey.com>
2645
2646 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2647 irreflexivity violation.
2648
dba7455e
TT
26492018-07-30 Tom Tromey <tom@tromey.com>
2650
2651 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2652 * value.c (unpack_long): Remove lint code.
2653 * valops.c (value_ind): Remove lint code.
2654 * valarith.c (value_x_binop, value_x_unop, value_equal)
2655 (value_pos): Remove lint code.
2656
37cc0cae
TV
26572018-07-28 Tom de Vries <tdevries@suse.de>
2658
2659 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2660 with undefined upper bound as <optimized out>.
2661
129eb0f1
SDJ
26622018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2663
2664 * gcore.in: Rename variable "name" to "prefix". Expand
2665 "usage" text.
2666
6af79d7b
JT
26672018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2668
2669 * windows-nat.c (windows_nat_target::create_inferior): Update to
2670 call close() in global namespace.
2671
79748972
TT
26722018-07-26 Tom Tromey <tom@tromey.com>
2673
2674 * dwarf-index-write.c (add_address_entry): Don't add objfile
2675 offsets.
2676 * dbxread.c (find_stab_function): Rename from
2677 find_stab_function_addr. Return a bound_minimal_symbol.
2678 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2679 Don't add objfile offsets.
2680 (end_psymtab): Use raw_text_low, raw_text_high,
2681 MSYMBOL_VALUE_RAW_ADDRESS.
2682 (read_ofile_symtab): Update.
2683 (process_one_symbol): Update.
2684 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2685 offsets.
2686 (dw2_relocate): Remove.
2687 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2688 searching addrmap.
2689 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2690 Update.
2691 (process_psymtab_comp_unit_reader, add_partial_symbol)
2692 (add_partial_subprogram, dwarf2_ranges_read): Update.
2693 (load_partial_dies): Update.
2694 (add_address_entry): Don't add objfile offsets.
2695 (dwarf2_build_include_psymtabs): Update.
2696 (create_addrmap_from_aranges): Don't add objfile offsets.
2697 (dw2_find_pc_sect_compunit_symtab): Update.
2698 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2699 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2700 Update.
2701 (parse_partial_symbols): Don't add objfile offsets. Use
2702 raw_text_low, raw_text_high. Update.
2703 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2704 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2705 or call 'relocate' quick function. Clear psymbol_map.
2706 * psympriv.h (struct partial_symbol) <address>: Add section
2707 offset.
2708 <set_unrelocated_address>: Rename from set_address.
2709 <raw_text_low, raw_text_high>: New methods.
2710 <text_low, text_high>: Add objfile parameter.
2711 (add_psymbol_to_bcache): Add 'section' parameter. Call
2712 set_unrelocated_address.
2713 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2714 (find_pc_psymbol): Update.
2715 (fixup_psymbol_section, relocate_psymtabs): Remove.
2716 (dump_psymtab, psym_functions): Update.
2717 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2718 parameter.
2719 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2720 (start_psymtab_common): Update.
2721 * symfile-debug.c (debug_qf_relocate): Remove.
2722 (debug_sym_quick_functions): Update.
2723 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2724 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2725 Update.
2726
52948f01
TT
27272018-07-26 Tom Tromey <tromey@redhat.com>
2728
2729 * dbxread.c (end_psymtab): Use text_high_valid and
2730 text_low_valid.
2731 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2732 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2733 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2734 Update comment.
2735 <text_low_valid, text_high_valid>: New fields.
2736 <set_text_low, set_text_high>: Update.
2737 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2738
4ae976d1
TT
27392018-07-26 Tom Tromey <tom@tromey.com>
2740
2741 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2742 Update.
2743 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2744 textlow and texthigh fields.
2745 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2746 Update.
2747 * mdebugread.c (parse_lines, parse_partial_symbols)
2748 (psymtab_to_symtab_1): Update.
2749 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2750 Rename fields. Update comment. Now private.
2751 <text_low, text_high, set_text_low, set_text_high>: New methods.
2752 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2753 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2754 (start_psymtab_common, maintenance_info_psymtabs)
2755 (maintenance_check_psymtabs): Update.
2756 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2757 texthigh fields.
2758 (scan_xcoff_symtab): Update.
2759
02e9e7f7
TT
27602018-07-26 Tom Tromey <tromey@redhat.com>
2761
2762 * psympriv.h (struct partial_symbol) <unrelocated_address,
2763 address, set_address>: New methods.
2764 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2765 (fixup_psymbol_section, relocate_psymtabs): Update.
2766 (print_partial_symbols): Add 'objfile' parameter. Update.
2767 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2768 Update.
2769
8a6d4234
TT
27702018-07-26 Tom Tromey <tom@tromey.com>
2771
2772 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2773 (debug_names::write_psymbols): Update.
2774 * psympriv.h (struct partial_symbol): Derive from
2775 general_symbol_info.
2776 <obj_section>: New method.
2777 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2778 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2779 (find_pc_sect_psymbol, fixup_psymbol_section)
2780 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2781 (print_partial_symbols, recursively_search_psymtabs)
2782 (compare_psymbols, psymbol_hash, psymbol_compare)
2783 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2784 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2785
08994e1d
TT
27862018-07-26 Tom Tromey <tromey@redhat.com>
2787
2788 * dbxread.c (end_psymtab): Remove dead code.
2789
3c3bb058
AB
27902018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2791
2792 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2793 DWARF unwinders are disabled.
2794 * dwarf2-frame.c: Add dwarf2read.h include.
2795 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2796 disabled.
2797 (dwarf2_frame_unwinders_enabled_p): Define.
2798 (show_dwarf_unwinders_enabled_p): New function.
2799 (_initialize_dwarf2_frame): Register switch to control DWARF
2800 unwinder use.
2801 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2802 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2803 (show_dwarf_cmdlist): Remove static keyword.
2804 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2805 (show_dwarf_cmdlist): Declare.
2806 * NEWS: Document new feature.
2807
9e7f3bbb
TV
28082018-07-26 Tom de Vries <tdevries@suse.de>
2809
2810 PR breakpoints/23366
2811 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2812
506f5c41
TV
28132018-07-26 Tom de Vries <tdevries@suse.de>
2814
2815 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2816 DW_AT_count can't be translated to a dynamic prop.
2817
16f808ec
TV
28182018-07-25 Tom de Vries <tdevries@suse.de>
2819
2820 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2821 try/catch.
2822
d7154a8d
JV
28232018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2824
2825 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2826
a45389f6
JB
28272018-07-25 Joel Brobecker <brobecker@adacore.com>
2828
2829 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2830
380618d6
KS
28312018-07-24 Keith Seitz <keiths@redhat.comt
2832
2833 PR symtab/23010
2834 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2835 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2836 instead of add_symbol_to_list.
2837 (read_file_scope): Call prepare_one_comp_unit before reading
2838 any other DIEs.
2839
4b17aefe
SM
28402018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2841
2842 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2843
29d17e47
TT
28442018-07-24 Tom Tromey <tom@tromey.com>
2845
2846 * utils.c (malloc, realloc, free): Don't declare.
2847 * configure, config.in: Rebuild.
2848 * configure.ac: Don't check for declarations of free, malloc, or
2849 realloc.
2850
cf4088a9
SM
28512018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2852
2853 * aarch64-linux-nat.c
2854 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2855 variable.
2856 * arm-linux-nat.c (fetch_regs): Likewise.
2857 (store_regs): Likewise.
2858 (fetch_vfp_regs): Likewise.
2859 (store_vfp_regs): Likewise.
2860 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2861 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2862 (arm_linux_nat_target::insert_watchpoint): Likewise.
2863 (arm_linux_nat_target::remove_watchpoint): Likewise.
2864 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2865 Likewise.
2866 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2867 Likewise.
2868 * ppc-linux-nat.c (fetch_register): Likewise.
2869 (fetch_all_gp_regs): Likewise.
2870 (fetch_ppc_registers): Likewise.
2871 (store_all_gp_regs): Likewise.
2872 (store_ppc_registers): Likewise.
2873 (hwdebug_insert_point): Likewise.
2874 (can_use_watchpoint_cond_accel): Likewise.
2875 * remote-sim.c (gdb_os_write_stdout): Likewise.
2876
a0de763e
TT
28772018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2878 Tom Tromey <tom@tromey.com>
2879
2880 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2881 test for it.
2882 * configure: Rebuild.
2883
3b20124b
TT
28842018-07-22 Tom Tromey <tom@tromey.com>
2885
2886 * regformats/regdat.sh: Define xmltarget_${name} inside
2887 #ifndef IN_PROCESS_AGENT.
2888
8c8807f4
TT
28892018-07-22 Tom Tromey <tom@tromey.com>
2890
2891 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2892
c486b610
TT
28932018-07-22 Tom Tromey <tom@tromey.com>
2894
2895 * symfile.c (reread_symbols): Notify iter, not objfile.
2896
494f80a9
TT
28972018-07-22 Tom Tromey <tom@tromey.com>
2898
2899 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2900 Use arch_ops.
2901 (ravenscar_thread_target::prepare_to_store): Likewise.
2902
c51f6a54
TT
29032018-07-22 Tom Tromey <tom@tromey.com>
2904
2905 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2906 unused variable. Call value_fetch_lazy when needed.
2907 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2908 Remove unused variable. Call value_fetch_lazy when needed.
2909
374fd1fd
TT
29102018-07-22 Tom Tromey <tom@tromey.com>
2911
2912 * m32c-tdep.c (mark_dma): Return void.
2913 (make_regs): Remove unused declarations.
2914
d5e9a511
TT
29152018-07-22 Tom Tromey <tom@tromey.com>
2916
2917 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2918 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2919 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2920 bkscm_get_valid_block_smob_arg_unsafe for effect.
2921
996d693a
TT
29222018-07-22 Tom Tromey <tom@tromey.com>
2923
2924 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2925 value_type.
2926
15766370
TT
29272018-07-22 Tom Tromey <tom@tromey.com>
2928
2929 * windows-nat.c (saved_context): Conditionally define.
2930 * remote.c (remote_target::remote_btrace_maybe_reopen):
2931 Conditionally declare "warned".
2932 * inflow.c (sigquit_ours): Conditionally define.
2933 (new_tty): Move "tty" declaration inside #if.
2934 * guile/guile.c (guile_datadir): Conditionally define.
2935 * charset.c (set_be_le_names): Move some declarations inside #if.
2936 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2937 #if.
2938 (parse_xml_btrace_conf): Likewise.
2939
f4e80e13
TT
29402018-07-22 Tom Tromey <tom@tromey.com>
2941
2942 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2943
8d49165d
TT
29442018-07-22 Tom Tromey <tom@tromey.com>
2945
2946 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2947 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2948 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2949 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2950 * stack.c (frame_apply_level_command): Remove unused variable.
2951 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2952 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2953 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2954 unused variable.
2955 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2956 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2957 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2958 variable.
2959 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2960 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2961 variable.
2962 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2963 Remove unused variable.
2964 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2965 variable.
2966 * common/tdesc.c (print_xml_feature::visit): Remove unused
2967 variable.
2968 * compile/compile-object-load.c (store_regs): Remove unused
2969 variables.
2970 * complaints.c (clear_complaints): Remove unused variable.
2971 * corelow.c (core_target_open): Remove unused variable.
2972 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2973 variable.
2974 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2975 variable.
2976 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2977 variable.
2978 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2979 variable.
2980 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2981 variable.
2982 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2983 variable.
2984 * ia64-tdep.c (examine_prologue): Remove unused variable.
2985 * infcall.c (run_inferior_call): Remove unused variable.
2986 * inferior.c (exit_inferior): Remove unused variable.
2987 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2988 * linespec.c (decode_line_2): Remove unused variable.
2989 * linux-nat.c (super_close): Remove.
2990 * linux-tdep.c (linux_info_proc): Remove unused variable.
2991 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2992 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2993 Remove unused variable.
2994 * parse.c (find_minsym_type_and_address): Remove unused variable.
2995 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2996 variable.
2997 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2998 variable.
2999 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3000 variables.
3001 * record-btrace.c (record_btrace_target::store_registers): Remove
3002 unused variable.
3003 (cmd_show_record_btrace_cpu): Remove unused variable.
3004 * riscv-tdep.c (riscv_register_reggroup_p)
3005 (riscv_push_dummy_call, riscv_return_value): Remove unused
3006 variable.
3007 * rust-exp.y (literal): Remove unused variable.
3008 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3009 unused variable.
3010 <STRUCTOP_ANONYMOUS>: Likewise.
3011 * s390-linux-tdep.c (s390_linux_init_abi_31)
3012 (s390_linux_init_abi_64): Remove unused variable.
3013 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3014 (file_select_thread, net_windows_open, _initialize_ser_windows):
3015 Remove unused variables.
3016 * symtab.c (find_pc_sect_line): Remove unused variable.
3017 * target-memory.c (compute_garbled_blocks): Remove unused
3018 variable.
3019 (target_write_memory_blocks): Remove unused variable.
3020 * target.c (target_stack::unpush): Remove unused variables.
3021 * tracepoint.c (start_tracing, all_tracepoint_actions)
3022 (merge_uploaded_trace_state_variables)
3023 (print_one_static_tracepoint_marker): Remove unused variable.
3024 * unittests/basic_string_view/element_access/char/1.cc (test01):
3025 Remove unused variable.
3026 * windows-nat.c (windows_continue, windows_add_all_dlls)
3027 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3028 Remove unused variables.
3029
17cbafdb
SM
30302018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3031
3032 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3033 attr_profile in HAVE_ELF.
3034 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3035 HAVE_ELF.
3036
0ee6c332
SM
30372018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3038
3039 * frame.c (frame_register_unwind): Change parameter name.
3040 (frame_unwind_register): Likewise.
3041 (frame_unwind_register_value): Likewise.
3042 (frame_unwind_register_signed): Likewise.
3043 (frame_unwind_register_unsigned): Likewise.
3044 * frame.h (frame_register_unwind): Likewise.
3045 (frame_unwind_register): Likewise.
3046 (frame_unwind_register_value): Likewise.
3047 (frame_unwind_register_signed): Likewise.
3048 (frame_unwind_register_unsigned): Likewise.
3049 (frame_unwind_arch): Likewise.
3050
e2e31f10
MR
30512018-07-20 Maciej W. Rozycki <macro@mips.com>
3052
3053 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3054 ISA maintenance.
3055
2d389915
MR
30562018-07-20 Maciej W. Rozycki <macro@mips.com>
3057
3058 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3059 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3060 hand.
3061
cbb09508
KS
30622018-07-20 Keith Seitz <keiths@redhat.com>
3063
3064 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3065 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3066 m_compunit_symtab, m_language>: Add "m_" prefix.
3067 Update all uses.
3068 * buildsym.c: Update all uses.
3069
bfe2e011
TT
30702018-07-20 Tom Tromey <tom@tromey.com>
3071
3072 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3073 * buildsym.h (record_line_ftype): Remove typedef.
3074
0e6f3061
TT
30752018-07-20 Tom Tromey <tom@tromey.com>
3076
3077 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3078 (end_expandable_symtab): Likewise.
3079 (end_symtab_get_static_block): Likewise.
3080 (end_symtab_from_static_block): Likewise.
3081 * buildsym-legacy.c (augment_type_symtab): Remove.
3082 (end_expandable_symtab): Remove.
3083 (end_symtab_get_static_block): Remove.
3084 (end_symtab_from_static_block): Remove.
3085
804d2729
TT
30862018-07-20 Tom Tromey <tom@tromey.com>
3087
3088 * dwarf2read.c: Include buildsym.h.
3089 (struct dwarf2_cu) <builder>: New method.
3090 (fixup_go_packaging): Update.
3091 (process_full_comp_unit, process_full_type_unit): Update. Don't
3092 use scoped_free_pendings.
3093 (using_directives): Add "cu" parameter, remove "language".
3094 (read_import_statement, setup_type_unit_groups, )
3095 (read_func_scope, read_lexical_block_scope)
3096 (dwarf2_record_block_ranges, read_namespace): Update.
3097 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3098 (lnp_state_machine::handle_end_sequence): Update.
3099 (class lnp_state_machine) <m_cu>: New member.
3100 <m_record_line_callback>: Remove.
3101 <m_currently_recording_lines>: New member.
3102 (lnp_state_machine::handle_set_file): Update.
3103 (noop_record_line): Remove.
3104 (dwarf_record_line_p): Add cu parameter.
3105 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3106 (lnp_state_machine::record_line)
3107 (lnp_state_machine::lnp_state_machine)
3108 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3109 (dwarf_decode_lines): Update.
3110 (dwarf2_start_subfile): Add cu parameter.
3111 (dwarf2_start_symtab, new_symbol): Update.
3112 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3113 Remove dwarf2_per_objfile parameter.
3114 (dwarf_decode_macros): Update.
3115
80e649fc
TT
31162018-07-20 Tom Tromey <tom@tromey.com>
3117
3118 * stabsread.c (define_symbol): Update.
3119 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3120 * dwarf2read.c (new_symbol): Update.
3121 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3122 * cp-namespace.c: Include buildsym.h.
3123 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3124 * buildsym-legacy.c (get_buildsym_compunit): New function.
3125
0baae8db
TT
31262018-07-20 Tom Tromey <tom@tromey.com>
3127
3128 * xcoffread.c: Include buildsym-legacy.h.
3129 * windows-nat.c: Include buildsym-legacy.h.
3130 * stabsread.c: Include buildsym-legacy.h.
3131 * mdebugread.c: Include buildsym-legacy.h.
3132 * buildsym-legacy.h: New file.
3133 * buildsym-legacy.c: New file, from buildsym.c.
3134 * go32-nat.c: Include buildsym-legacy.h.
3135 * dwarf2read.c: Include buildsym-legacy.h.
3136 * dbxread.c: Include buildsym-legacy.h.
3137 * cp-namespace.c: Include buildsym-legacy.h.
3138 * coffread.c: Include buildsym-legacy.h.
3139 * buildsym.h: Move some contents to buildsym-legacy.h.
3140 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3141 buildsym-legacy.c.
3142 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3143
ab209f6f
TT
31442018-07-20 Tom Tromey <tom@tromey.com>
3145
3146 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3147 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3148 (buildsym_compunit::buildsym_compunit)
3149 (buildsym_compunit::~buildsym_compunit)
3150 (buildsym_compunit::get_macro_table): Define.
3151
74c72eac
TT
31522018-07-20 Tom Tromey <tom@tromey.com>
3153
3154 * buildsym.c (reset_symtab_globals): Remove.
3155 (buildsym_compunit::end_symtab_from_static_block): Update.
3156 (buildsym_compunit::augment_type_symtab): Update.
3157 (end_symtab_from_static_block): Call free_buildsym_compunit.
3158 (augment_type_symtab, end_symtab, end_expandable_symtab):
3159 Likewise.
3160
da6580e5
TT
31612018-07-20 Tom Tromey <tom@tromey.com>
3162
3163 * arch-utils.c: Do not include buildsym.h.
3164 * mipsread.c: Do not include buildsym.h.
3165 * machoread.c: Do not include buildsym.h.
3166 * elfread.c: Do not include buildsym.h.
3167
4a2125f5
TT
31682018-07-20 Tom Tromey <tom@tromey.com>
3169
3170 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3171 initialization.
3172 (buildsym_compunit): Add new constructor.
3173 (struct buildsym_compunit) <get_last_source_file, finish_block,
3174 record_block_range, start_subfile, patch_subfile_names,
3175 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3176 set_last_source_start_addr, get_last_source_start_addr,
3177 get_local_using_directives, set_local_using_directives,
3178 get_global_using_directives, outermost_context_p,
3179 get_current_context_stack, get_context_stack_depth,
3180 get_current_subfile, get_local_symbols, get_file_symbols,
3181 get_global_symbols, record_debugformat, record_producer,
3182 push_context, pop_context, end_symtab_get_static_block,
3183 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3184 New public methods.
3185 <record_pending_block, finish_block_internal, make_blockvector,
3186 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3187 private methods.
3188 Update all users.
3189
31902018-05-22 Tom Tromey <tom@tromey.com>
3191
3192 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3193 parameter.
3194 (finish_block_internal): Update.
3195
6b213a47
TT
31962018-07-20 Tom Tromey <tom@tromey.com>
3197
3198 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3199 parameter.
3200 (finish_block_internal): Update.
3201
b80a981d
TT
32022018-07-20 Tom Tromey <tom@tromey.com>
3203
3204 * buildsym.h (EXTERN): Don't define or undef.
3205 * buildsym.c (EXTERN): Don't define.
3206
ddb70602
TT
32072018-07-20 Tom Tromey <tom@tromey.com>
3208
3209 * buildsym.c: Remove TODO comment.
3210
b37dd3bc
TT
32112018-07-20 Tom Tromey <tom@tromey.com>
3212
3213 * coffread.c (coff_symtab_read): Update.
3214 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3215 (xcoff_new_init): Update.
3216 * mipsread.c (mipscoff_new_init): Update.
3217 * mdebugread.c (mdebug_build_psymtabs): Update.
3218 * elfread.c (elf_new_init): Update.
3219 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3220 Update.
3221 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3222 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3223 (stabsect_build_psymtabs): Update.
3224 * buildsym.h (buildsym_init): Don't declare.
3225 * buildsym.c: Update comment.
3226 (prepare_for_building): Remove.
3227 (start_symtab, restart_symtab): Update.
3228 (reset_symtab_globals): Update comment.
3229 (buildsym_init): Remove.
3230
e148f09d
TT
32312018-07-20 Tom Tromey <tom@tromey.com>
3232
3233 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3234 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3235 (read_enum_type, common_block_start, common_block_end)
3236 (cleanup_undefined_types_1, finish_global_stabs): Update.
3237 * mdebugread.c (psymtab_to_symtab_1): Update.
3238 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3239 (read_lexical_block_scope, new_symbol): Update.
3240 * dbxread.c (process_one_symbol): Update.
3241 * coffread.c (coff_symtab_read, process_coff_symbol)
3242 (coff_read_enum_type): Update.
3243 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3244 declare.
3245 (get_local_symbols, get_file_symbols, get_global_symbols): New
3246 functions.
3247 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3248 m_global_symbols.
3249 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3250 (~scoped_free_pendings): Update.
3251 (finish_block, prepare_for_building, reset_symtab_globals)
3252 (end_symtab_get_static_block, end_symtab_with_blockvector)
3253 (augment_type_symtab, push_context): Update.
3254 (get_local_symbols, get_file_symbols, get_global_symbols): New
3255 functions.
3256 (buildsym_init): Update.
3257
93b8bea4
TT
32582018-07-20 Tom Tromey <tom@tromey.com>
3259
3260 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3261 (process_full_type_unit): Likewise.
3262 (dwarf2_start_symtab): Set list_in_scope.
3263
f62f6af5
TT
32642018-07-20 Tom Tromey <tom@tromey.com>
3265
3266 * dwarf2read.c (process_psymtab_comp_unit_reader)
3267 (build_type_psymtabs_reader): Do not set list_in_scope.
3268
1d376700
TT
32692018-07-20 Tom Tromey <tom@tromey.com>
3270
3271 * buildsym.c (free_pendings): Remove.
3272 (add_symbol_to_list, scoped_free_pendings)
3273 (finish_block_internal, buildsym_init): Update.
3274
c233e9c6
TT
32752018-07-20 Tom Tromey <tom@tromey.com>
3276
3277 * xcoffread.c (read_xcoff_symtab): Update.
3278 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3279 Update.
3280 * dbxread.c (process_one_symbol): Update.
3281 * coffread.c (coff_symtab_read): Update.
3282 * buildsym.h (finish_block): Update.
3283 * buildsym.c (finish_block): Remove "listhead" argument.
3284 (end_symtab_get_static_block): Update.
3285
5ac04550
TT
32862018-07-20 Tom Tromey <tom@tromey.com>
3287
3288 * buildsym.h (class scoped_free_pendings): Remove constructor.
3289 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3290 method.
3291 <m_pending_block_obstack, m_pending_blocks>: New members.
3292 (pending_block_obstack, pending_blocks): Remove.
3293 (scoped_free_pendings::scoped_free_pendings): Default.
3294 (~scoped_free_pendings): Update.
3295 (free_pending_blocks): Remove.
3296 (finish_block_internal, record_pending_block, make_blockvector)
3297 (end_symtab_get_static_block, augment_type_symtab, push_context)
3298 (buildsym_init): Update.
3299
7ea05a7b
TT
33002018-07-20 Tom Tromey <tom@tromey.com>
3301
3302 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3303 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3304 members.
3305 (pending_addrmap, pending_addrmap_obstack)
3306 (pending_addrmap_interesting): Remove.
3307 (scoped_free_pendings, record_block_range, make_blockvector)
3308 (prepare_for_building, reset_symtab_globals, buildsym_init):
3309 Update.
3310
3c65e5b3
TT
33112018-07-20 Tom Tromey <tom@tromey.com>
3312
3313 * xcoffread.c (process_linenos): Update.
3314 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3315 * mdebugread.c (psymtab_to_symtab_1): Update.
3316 * dwarf2read.c (setup_type_unit_groups)
3317 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3318 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3319 * dbxread.c (process_one_symbol): Update.
3320 * coffread.c (coff_symtab_read, enter_linenos)
3321 (process_coff_symbol): Update.
3322 * buildsym.h (current_subfile): Don't declare.
3323 (get_current_subfile): Declare.
3324 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3325 member.
3326 (start_subfile, free_buildsym_compunit, push_subfile)
3327 (prepare_for_building, start_symtab): Update.
3328 (get_current_subfile): New function.
3329
a60f3166
TT
33302018-07-20 Tom Tromey <tom@tromey.com>
3331
3332 * coffread.c (coff_symtab_read): Update.
3333 * xcoffread.c (read_xcoff_symtab): Update.
3334 * dwarf2read.c (new_symbol): Update.
3335 (read_func_scope, read_lexical_block_scope): Update.
3336 * dbxread.c (process_one_symbol): Update.
3337 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3338 (outermost_context_p): Remove macro.
3339 (outermost_context_p, get_current_context_stack)
3340 (get_context_stack_depth): Declare.
3341 (pop_context): Return struct context_stack.
3342 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3343 member.
3344 (context_stack_size): Remove.
3345 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3346 (prepare_for_building, end_symtab_get_static_block)
3347 (augment_type_symtab, push_context): Update.
3348 (pop_context): Return struct context_stack.
3349 (outermost_context_p, get_current_context_stack)
3350 (get_context_stack_depth): New functions.
3351 (buildsym_init): Update.
3352
56ba65a0
TT
33532018-07-20 Tom Tromey <tom@tromey.com>
3354
3355 * rust-exp.y: Now a pure parser. Update all rules.
3356 (%union): Move earlier.
3357 (current_parser, work_obstack): Remove globals.
3358 (rust_parser, ~rust_parser): Update.
3359 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3360 lex_character, lex_number, lex_string, lex_identifier,
3361 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3362 convert_name, convert_params_to_expression,
3363 convert_ast_to_expression, ast_basic_type, ast_operation,
3364 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3365 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3366 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3367 ast_array_type, ast_slice_type, ast_reference_type,
3368 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3369 (rust_parse): Update.
3370 (rustyyerror, rustyylex): Add parser parameter.
3371 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3372 (rust_lex_stringish_test, rust_lex_test_sequence)
3373 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3374 (rust_lex_test_push_back, rust_lex_tests): Update.
3375
4c693332
PA
33762018-07-19 Pedro Alves <palves@redhat.com>
3377
3378 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3379 gdb::unique_xmalloc_ptr.
3380 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3381 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3382 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3383 copy-initialization.
3384 * guile/scm-pretty-print.c (ppscm_print_children): Use
3385 gdb::unique_xmalloc_ptr instead of cleanups.
3386 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3387 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3388 gdb::unique_xmalloc_ptr.
3389 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3390 Adjust to use gdb::unique_xmalloc_ptr.
3391 * guile/scm-utils.c (extract_arg): Adjust.
3392 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3393 gdb::unique_xmalloc_ptr instead of a cleanup.
3394
4581dc82
TT
33952018-07-19 Tom Tromey <tom@tromey.com>
3396
3397 * utils.c (do_value_free_to_mark)
3398 (make_cleanup_value_free_to_mark): Remove.
3399 * utils.h (make_cleanup_value_free_to_mark): Remove.
3400
43cc6c3a
PA
34012018-07-19 Pedro Alves <palves@redhat.com>
3402
3403 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3404 forwarding reference.
3405
3a5f2a48
PA
34062018-07-18 Pedro Alves <palves@redhat.com>
3407
3408 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3409 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3410 cleanup.
3411
557e56be
PA
34122018-07-18 Pedro Alves <palves@redhat.com>
3413
3414 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3415 exceptions.
3416 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3417 (gdbscm_wrap): New.
3418 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3419 directly instead of a cleanup.
3420 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3421 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3422 (vlscm_binop_gdbthrow): New, factored out from ...
3423 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3424 (vlscm_rich_compare): Use gdbscm_wrap.
3425 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3426 instead of a cleanup.
3427 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3428 cleanup.
3429 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3430 Use xfree directly instead of a cleanup.
3431 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3432 Adjust to use gdbscm_wrap and scoped_value_mark.
3433 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3434 (gdbscm_value_address, gdbscm_value_dereference)
3435 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3436 scoped_value_mark.
3437 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3438 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3439 scoped_value_mark.
3440 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3441 gdbscm_wrap and scoped_value_mark.
3442 (gdbscm_value_to_string): Use xfree directly instead of a
3443 cleanup. Move 'buffer' unique_ptr to TRY scope.
3444 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3445 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3446 scoped_value_mark.
3447 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3448 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3449 scoped_value_mark.
3450 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3451 gdbscm_wrap.
3452
42dc7699
TV
34532018-07-18 Tom de Vries <tdevries@suse.de>
3454
3455 * findvar.c (default_read_var_value): Also resolve dynamic type for
3456 LOC_OPTIMIZED_OUT vars.
3457
6592ceed
MR
34582018-07-18 Maciej W. Rozycki <macro@mips.com>
3459
3460 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3461 decoding.
3462
c6c6149a
TT
34632018-07-17 Tom Tromey <tom@tromey.com>
3464
3465 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3466 (compute_enum_list, pascm_set_param_value_x)
3467 (gdbscm_parameter_value): Update.
3468 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3469 (gdbscm_scm_to_host_string): Update.
3470 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3471 Update.
3472 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3473 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3474 * guile/scm-string.c (gdbscm_scm_to_string): Return
3475 unique_xmalloc_ptr.
3476 (gdbscm_scm_to_host_string): Likewise.
3477
a1a31cb8
TT
34782018-07-17 Tom Tromey <tom@tromey.com>
3479
3480 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3481 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3482 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3483 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3484 unique_xmalloc_ptr.
3485
15bf3002
TT
34862018-07-17 Tom Tromey <tom@tromey.com>
3487
3488 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3489 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3490 Update.
3491 * guile/scm-cmd.c (cmdscm_function): Update.
3492 * guile/scm-pretty-print.c
3493 (ppscm_print_exception_unless_memory_error): Update.
3494 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3495 Return unique_xmalloc_ptr.
3496
7eb1a66c
TT
34972018-07-17 Tom Tromey <tom@tromey.com>
3498
3499 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3500 Use string_printf.
3501
ce73f310
JW
35022018-07-17 Jim Wilson <jimw@sifive.com>
3503
27724bad
JW
3504 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3505 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3506 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3507 unecessary braces after EF_RISCV_RVC test. Delete call to
3508 set_gdbarch_decr_pc_after_break.
3509
ce73f310
JW
3510 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3511 RISCV_LAST_FP_REGNUM + 1.
3512 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3513
056dec39
TT
35142018-07-17 Tom Tromey <tom@tromey.com>
3515
3516 * configure.ac: Remove --disable-gdbcli.
3517 * configure: Rebuild.
3518 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3519 (SUBDIR_CLI_CFLAGS): Remove.
3520 (SFILES): Use SUBDIR_CLI_SRCS.
3521 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3522
4735f0ed
TT
35232018-07-17 Tom Tromey <tom@tromey.com>
3524
3525 PR gdb/18624:
3526 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3527
117a0e99
JW
35282018-07-16 Jim Wilson <jimw@sifive.com>
3529
3530 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3531
8a67aaa8
SM
35322018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3533
3534 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3535 variable.
3536 (libunwind_frame_sniffer): Likewise.
3537 (libunwind_frame_prev_register): Likewise.
3538 (libunwind_sigtramp_frame_sniffer): Likewise.
3539 * ia64-tdep.c (ia64_access_reg): Likewise.
3540 (ia64_access_rse_reg): Likewise.
3541 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3542 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3543
ec74dcd8
SM
35442018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3545
3546 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3547
a700e753
SM
35482018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3549
3550 * remote-sim.c (gdbsim_target::close,
3551 gdbsim_target::mourn_inferior): Remove unused variables.
3552
8b411ff8
SM
35532018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3554
3555 * ia64-tdep.c (ktab_buf): New global.
3556 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3557 (get_kernel_table): Adjust.
3558
edb0470b
TT
35592018-07-16 Tom Tromey <tom@tromey.com>
3560
3561 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3562 * dwarf2read.c (using_directives, new_symbol): Use
3563 outermost_context_p.
3564 * dbxread.c (process_one_symbol): Use outermost_context_p.
3565 * coffread.c (coff_symtab_read): Use outermost_context_p.
3566
6cccc9a8
TT
35672018-07-16 Tom Tromey <tom@tromey.com>
3568
3569 * dwarf2read.c (using_directives, read_func_scope)
3570 (read_lexical_block_scope): Update.
3571 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3572 * buildsym.h (local_using_directives, global_using_directives):
3573 Don't declare.
3574 (get_local_using_directives, set_local_using_directives)
3575 (get_global_using_directives): Declare.
3576 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3577 m_global_using_directives>: New members.
3578 (finish_block_internal, prepare_for_building)
3579 (reset_symtab_globals, end_symtab_get_static_block)
3580 (push_context): Update.
3581 (get_local_using_directives, set_local_using_directives)
3582 (get_global_using_directives): New functions.
3583 (buildsym_init): Update.
3584
652788a7
TT
35852018-07-16 Tom Tromey <tom@tromey.com>
3586
3587 * xcoffread.c (xcoff_initial_scan): Don't call
3588 free_pending_blocks.
3589 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3590 * buildsym.h (class scoped_free_pendings): Add constructor.
3591 (free_pending_blocks): Don't declare.
3592 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3593 (free_pending_blocks): Now static.
3594
8419ee53
TT
35952018-07-16 Tom Tromey <tom@tromey.com>
3596
3597 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3598 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3599 member.
3600 (struct subfile_stack): Remove.
3601 (subfile_stack): Remove.
3602 (push_subfile, pop_subfile, buildsym_init): Update.
3603
ccdac490
TT
36042018-07-16 Tom Tromey <tom@tromey.com>
3605
3606 * buildsym.c (push_subfile): Use gdb_assert.
3607 (pop_subfile): Use gdb_assert.
3608
43130d6f
TT
36092018-07-16 Tom Tromey <tom@tromey.com>
3610
3611 * buildsym.h (merge_symbol_lists): Remove.
3612 * buildsym.c (merge_symbol_lists): Remove.
3613
77d6f1aa
TT
36142018-07-16 Tom Tromey <tom@tromey.com>
3615
3616 * stabsread.c (scan_file_globals): Update comment.
3617 * stabsread.h (scan_file_globals): Move from buildsym.h.
3618 * buildsym.h (scan_file_globals): Move to stabsread.h.
3619
2c722d18
TT
36202018-07-16 Tom Tromey <tom@tromey.com>
3621
3622 * xcoffread.c (xcoff_new_init): Update.
3623 * mipsread.c (mipscoff_new_init): Update.
3624 * mdebugread.c (mdebug_build_psymtabs): Update.
3625 * elfread.c (elf_new_init): Update.
3626 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3627 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3628 * buildsym.h (buildsym_new_init): Don't declare.
3629 * buildsym.c (buildsym_new_init): Remove.
3630
5985ac61
TT
36312018-07-16 Tom Tromey <tom@tromey.com>
3632
3633 * stabsread.h (within_function): Move from buildsym.h.
3634 * stabsread.c (start_stabs): Clear within_function.
3635 * coffread.c (coff_start_symtab): Clear within_function.
3636 * buildsym.h (within_function): Move to stabsread.h.
3637 * buildsym.c (prepare_for_building): Update.
3638
6b84eeb2
TT
36392018-07-16 Tom Tromey <tom@tromey.com>
3640
3641 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3642 * dwarf2read.c (dwarf2_start_symtab): Don't set
3643 processing_gcc_compilation.
3644 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3645
2150c3ef
TT
36462018-07-16 Tom Tromey <tom@tromey.com>
3647
3648 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3649 (next_symbol_text_func): Move from buildsym.h.
3650 * stabsread.c (hashname): Move from buildsym.c.
3651 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3652 (next_symbol_text_func, hashname): Move to stabsread.h.
3653 * buildsym.c: Don't include bcache.h
3654 (hashname): Move to stasbread.c.
3655
0ec44fc0
TT
36562018-07-16 Tom Tromey <tom@tromey.com>
3657
3658 * buildsym.h (context_stack_size): Don't declare.
3659 * buildsym.c (context_stack_size): New global.
3660
81cc346d
TT
36612018-07-16 Tom Tromey <tom@tromey.com>
3662
3663 * dbxread.c (processing_acc_compilation): New global.
3664 * buildsym.h (processing_acc_compilation): Don't declare.
3665
2c99ee5c
TT
36662018-07-16 Tom Tromey <tom@tromey.com>
3667
3668 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3669 * dbxread.c (read_ofile_symtab): Update.
3670 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3671 * buildsym.h (last_source_start_addr): Remove.
3672 (set_last_source_start_addr, get_last_source_start_addr):
3673 Declare.
3674 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3675 parameter.
3676 (struct buildsym_compunit) <m_last_source_start_addr>: New
3677 member.
3678 (prepare_for_building): Remove start_addr parameter.
3679 (start_symtab, restart_symtab, end_symtab_get_static_block)
3680 (end_symtab_with_blockvector): Update.
3681 (set_last_source_start_addr, get_last_source_start_addr): New
3682 functions.
3683
530fedbc
TT
36842018-07-16 Tom Tromey <tom@tromey.com>
3685
3686 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3687 member.
3688 (have_line_numbers): Remove.
3689 (record_line, prepare_for_building, end_symtab_get_static_block)
3690 (augment_type_symtab): Update.
3691
6a976300
TT
36922018-07-16 Tom Tromey <tom@tromey.com>
3693
3694 * buildsym.c (~buildsym_compunit): Free the macro table.
3695 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3696 methods.
3697 <m_pending_macros>: New member.
3698 (pending_macros): Remove.
3699 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3700 (reset_symtab_globals, end_symtab_get_static_block)
3701 (end_symtab_with_blockvector, augment_type_symtab)
3702 (buildsym_init): Update.
3703
c0015d44
TT
37042018-07-16 Tom Tromey <tom@tromey.com>
3705
3706 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3707 parameter.
3708 (buildsym_compunit::set_last_source_file): New method.
3709 <m_last_source_file>: New member.
3710 (prepare_for_building): Remove "name" parameter.
3711 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3712 (last_source_file): Remove.
3713 (set_last_source_file, get_last_source_file): Update.
3714
e62cca7c
TT
37152018-07-16 Tom Tromey <tom@tromey.com>
3716
3717 * buildsym.c (prepare_for_building): Add assert.
3718
905eb0e2
TT
37192018-07-16 Tom Tromey <tom@tromey.com>
3720
3721 * buildsym.c (~buildsym_compunit): Update.
3722 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3723 (start_subfile, patch_subfile_names)
3724 (end_symtab_with_blockvector): Update.
3725
b248663f
TT
37262018-07-16 Tom Tromey <tom@tromey.com>
3727
3728 * buildsym.c (struct buildsym_compunit): Add constructor,
3729 destructor, initializers.
3730 (start_buildsym_compunit): Remove.
3731 (free_buildsym_compunit): Use "delete".
3732 (start_symtab, restart_symtab): Use "new".
3733
ff27d073
SM
37342018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3735
3736 * symfile.c (set_objfile_default_section_offset): Remove struct
3737 keyword.
3738
6a15ecf5
SH
37392018-07-14 Stafford Horne <shorne@gmail.com>
3740
3741 * (Responsible Maintainers): Add myself as or1k maintainer.
3742
027a4c30
TT
37432018-07-13 Tom Tromey <tom@tromey.com>
3744
3745 * symfile.c (set_objfile_default_section_offset): Use extra braces
3746 around initializer.
3747
5c1eda30
AA
37482018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3749
3750 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3751 non-branching basr.
3752
bc7b042b
PW
37532018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3754
3755 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3756 unittests/cli-utils-selftests.c
3757 * unittests/cli-utils-selftests.c: New file.
3758
a14c4daa
PW
37592018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3760
3761 * NEWS: Mention new commands. Mention change to 'thread apply'.
3762
1fe75df7
PW
37632018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3764
3765 * thread.c (thr_try_catch_cmd): New function.
3766 (thread_apply_all_command): Handle qcs flags.
3767 (thread_apply_command): Handle qcs flags.
3768 (taas_command): New function.
3769 (tfaas_command): New function.
3770 (_initialize_thread): Update to setup the new commands 'taas
3771 and 'tfaas'. Change doc string for 'thread apply'.
3772
6a70eb7d
PW
37732018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3774
3775 * stack.c: (trailing_outermost_frame): New function, mostly
3776 extracted from backtrace_command_1.
3777 (leading_innermost_frame): New function.
3778 (backtrace_command_1): Update to call trailing_outermost_frame.
3779 (frame_apply_command_count): New function.
3780 (frame_apply_level_command): New function.
3781 (frame_apply_all_command): New function.
3782 (frame_apply_command): New function.
3783 (faas_command): New function.
3784 (frame_cmd_list): New variable.
3785 (_initialize_stack): Update to setup the new commands 'frame apply'
3786 and 'faas'.
3787
529c08b2
PW
37882018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3789
3790 * cli-utils.c (number_or_range_parser::get_number): Only handle
3791 numbers or convenience var as numbers.
3792 (parse_flags): New function.
3793 (parse_flags_qcs): New function.
3794 (number_or_range_parser::finished): Ensure parsing end is detected
3795 before end of string.
3796 * cli-utils.h (parse_flags): New function.
3797 (parse_flags_qcs): New function.
3798 (number_or_range_parser): Remove m_finished bool.
3799 (number_or_range_parser::skip_range): Set m_in_range to false.
3800
64b58472
SDJ
38012018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3802
3803 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3804 on Windows.
3805
c7ab0aef
SDJ
38062018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3807 Jan Kratochvil <jan.kratochvil@redhat.com>
3808 Paul Fertser <fercerpav@gmail.com>
3809 Tsutomu Seki <sekiriki@gmail.com>
3810 Pedro Alves <palves@redhat.com>
3811
3812 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3813 'unittests/parse-connection-spec-selftests.c'.
3814 (COMMON_SFILES): Add 'common/netstuff.c'.
3815 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3816 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3817 * common/netstuff.c: New file.
3818 * common/netstuff.h: New file.
3819 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3820 (wait_for_connect): Update comment. New parameter
3821 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3822 Use 'sock' directly instead of 'scb->fd'.
3823 (try_connect): New function, with code from 'net_open'.
3824 (net_open): Rewrite main loop to deal with multiple
3825 sockets/addresses. Handle IPv6-style hostnames; implement
3826 support for IPv6 connections.
3827 * unittests/parse-connection-spec-selftests.c: New file.
3828
4c7333b3
PA
38292018-07-11 Pedro Alves <palves@redhat.com>
3830
3831 PR gdb/23377
3832 * remote.c (remote_target::remote_detach_pid): Call
3833 set_current_process.
3834
a6f88f6e
PA
38352018-07-11 Pedro Alves <palves@redhat.com>
3836
3837 * h8300-tdep.c (h8300_gdbarch_init): Remove
3838 set_gdbarch_ecoff_reg_to_regnum calls.
3839
16ff70dd
SDJ
38402018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3841
3842 PR c++/23373
3843 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3844 offsets/sizes for static members of a class/struct.
3845
12863263
AH
38462018-07-11 Alan Hayward <alan.hayward@arm.com>
3847
3848 * target-descriptions.c (tdesc_register_bitsize): Rename.
3849 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3850 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3851 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3852
1123588c
TT
38532018-07-10 Tom Tromey <tom@tromey.com>
3854
3855 * breakpoint.c (moribund_locations): Now static and a
3856 std::vector.
3857 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3858 (build_bpstat_chain, update_global_location_list)
3859 (breakpoint_retire_moribund): Update.
3860 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3861 VEC.
3862
8c49aa89
AB
38632018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3864
3865 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3866 (riscv_register_reggroup_p): Use new function, remove unneeded
3867 parenthesis.
3868 (riscv_push_dummy_call): Extend assert to compare against xlen or
3869 flen based on register type.
3870
42ecac17
AB
38712018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3872
3873 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3874
055303e2
AB
38752018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3876
3877 * remote.c (show_hardware_watchpoint_limit): New function.
3878 (show_hardware_watchpoint_length_limit): New function.
3879 (show_hardware_breakpoint_limit): New function.
3880 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3881 where appropriate, update help text.
3882
8fd32c1c
TT
38832018-07-09 Tom Tromey <tom@tromey.com>
3884
3885 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3886 (CLIBS): Don't mention NAT_CLIBS.
3887
31278b51
TT
38882018-07-09 Tom Tromey <tom@tromey.com>
3889
3890 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3891 (LIBGDB_OBS, clean mostlyclean): Update.
3892 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3893
e5fd1493
TT
38942018-07-09 Tom Tromey <tom@tromey.com>
3895
3896 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3897 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3898 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3899
981e0c0c
TT
39002018-07-09 Tom Tromey <tom@tromey.com>
3901
3902 * Makefile.in (ALLDEPFILES): Remove exec.c.
3903 (COMMON_OBS): Remove exec.o.
3904 (COMMON_SFILES): Add exec.c.
3905
14ccceb2
TT
39062018-07-09 Tom Tromey <tom@tromey.com>
3907
3908 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3909
5d3c3a68
TT
39102018-07-09 Tom Tromey <tom@tromey.com>
3911
3912 * Makefile.in (clean mostlyclean): Remove stamp-version.
3913 (version.c): Depend on stamp-version.
3914 (stamp-version): New rule, from version.c rule.
3915
1998086d
TT
39162018-07-09 Tom Tromey <tom@tromey.com>
3917
3918 * Makefile.in (init.c): Depend on stamp-init.
3919 (stamp-init): New rule, from init.c rule.
3920 (clean mostlyclean): Remove stamp-init.
3921
4c754949
TT
39222018-07-09 Tom Tromey <tom@tromey.com>
3923
3924 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3925 SUBDIR_GCC_COMPILE_SRCS.
3926
6497f1dd
TT
39272018-07-09 Tom Tromey <tom@tromey.com>
3928
3929 * Makefile.in (init.c): Remove some unused sed rules.
3930
97a34db9
TT
39312018-07-09 Tom Tromey <tom@tromey.com>
3932
3933 * Makefile.in (TSOBS): Remove.
3934 (INIT_FILES): Update.
3935 (LIBGDB_OBS): Update.
3936 (COMMON_SFILES): Add inflow.c.
3937 (SFILES): Remove inflow.c.
3938
25289ac1
JK
39392018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3940
3941 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3942
e83f4d97
SM
39432018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3944
4869c585
SM
3945 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3946 get_saveloc_name, is_signal_frame_name, step_name,
3947 init_remote_name, create_addr_space_name,
3948 destroy_addr_space_name, search_unwind_table_name,
3949 find_dyn_list_name): Constify.
e83f4d97 3950
6821842f
SM
39512018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3952
3953 * darwin-nat.c (darwin_pthread_kill): New function.
3954 (darwin_resume_thread): Use darwin_pthread_kill.
3955
c530603c
TV
39562018-07-05 Tom de Vries <tdevries@suse.de>
3957
3958 * macroexp.c (macro_buffer) <operator=>: New member function.
3959
a7d0f0f0
TT
39602018-07-04 Tom Tromey <tom@tromey.com>
3961
3962 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3963
6242c6a6
SM
39642018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3965
3966 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3967 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3968 * maint.c: Likewise.
3969 * top.c: Likewise.
3970
4e5b2f89
JB
39712018-07-04 Joel Brobecker <brobecker@adacore.com>
3972
3973 * NEWS: Create a new section for the next release branch.
3974 Rename the section of the current branch, now that it has
3975 been cut.
3976
538ccc4a
JB
39772018-07-04 Joel Brobecker <brobecker@adacore.com>
3978
3979 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3980 * version.in: Bump version to 8.2.50.DATE-git.
3981
1b919490
VB
39822018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3983 Pedro Alves <palves@redhat.com>
3984
3985 * linux-nat.c (linux_init_ptrace): Rename to ...
3986 (linux_init_ptrace_procfs): ... this. Call
3987 linux_proc_init_warnings.
3988 (linux_nat_target::post_attach)
3989 (linux_nat_target::post_startup_inferior): Adjust.
3990 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3991 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3992
1ea5da02
TV
39932018-07-04 Tom de Vries <tdevries@suse.de>
3994
3995 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3996 check ...
3997 (read_comp_unit_head): ... here.
3998
f51e0e20
TT
39992018-07-03 Tom Tromey <tom@tromey.com>
4000
4001 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4002 (stop_tracing, tstatus_command)
4003 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4004 (print_one_static_tracepoint_marker): Update.
4005 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4006 std::vector.
4007 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4008 VEC.
4009 (all_tracepoints, static_tracepoints_here): Return std::vector.
4010
d7e15655
TT
40112018-07-03 Tom Tromey <tom@tromey.com>
4012
4013 * common/ptid.c (ptid_equal): Remove.
4014 * common/ptid.h (ptid_equal): Don't declare.
4015 * ada-tasks.c: Update.
4016 * breakpoint.c: Update.
4017 * common/agent.c: Update.
4018 * corelow.c: Update.
4019 * darwin-nat-info.c: Update.
4020 * darwin-nat.c: Update.
4021 * dcache.c: Update.
4022 * dtrace-probe.c: Update.
4023 * dummy-frame.c: Update.
4024 * fbsd-nat.c: Update.
4025 * frame.c: Update.
4026 * gdbthread.h: Update.
4027 * gnu-nat.c: Update.
4028 * go32-nat.c: Update.
4029 * inf-loop.c: Update.
4030 * inf-ptrace.c: Update.
4031 * infcall.c: Update.
4032 * infcmd.c: Update.
4033 * inflow.c: Update.
4034 * infrun.c: Update.
4035 * linux-fork.c: Update.
4036 * linux-nat.c: Update.
4037 * linux-thread-db.c: Update.
4038 * mi/mi-cmd-var.c: Update.
4039 * mi/mi-interp.c: Update.
4040 * mi/mi-main.c: Update.
4041 * nto-procfs.c: Update.
4042 * ppc-linux-tdep.c: Update.
4043 * procfs.c: Update.
4044 * python/py-inferior.c: Update.
4045 * python/py-record-btrace.c: Update.
4046 * python/py-record.c: Update.
4047 * ravenscar-thread.c: Update.
4048 * regcache.c: Update.
4049 * remote-sim.c: Update.
4050 * remote.c: Update.
4051 * sol-thread.c: Update.
4052 * solib.c: Update.
4053 * target.c: Update.
4054 * tui/tui-stack.c: Update.
4055 * varobj.c: Update.
4056 * windows-nat.c: Update.
4057 * windows-tdep.c: Update.
4058
26a57c92
TT
40592018-07-03 Tom Tromey <tom@tromey.com>
4060
4061 * common/ptid.c (ptid_match): Remove.
4062 * common/ptid.h (ptid_match): Don't declare.
4063 * fbsd-nat.c: Update.
4064 * infcmd.c: Update.
4065 * infrun.c: Update.
4066 * linux-nat.c: Update.
4067 * record-btrace.c: Update.
4068 * regcache.c: Update.
4069 * remote.c: Update.
4070
d2a107e3
TT
40712018-07-03 Tom Tromey <tom@tromey.com>
4072
4073 * common/ptid.c (ptid_tid_p): Remove.
4074 * common/ptid.h (ptid_tid_p): Don't declare.
4075 * sol-thread.c: Update.
4076
15a9e13e
TT
40772018-07-03 Tom Tromey <tom@tromey.com>
4078
4079 * common/ptid.c (ptid_lwp_p): Remove.
4080 * common/ptid.h (ptid_lwp_p): Don't declare.
4081 * fbsd-nat.c: Update.
4082 * linux-nat.c: Update.
4083 * nat/linux-procfs.c: Update.
4084 * nat/x86-linux-dregs.c: Update.
4085 * sol-thread.c: Update.
4086
0e998d96
TT
40872018-07-03 Tom Tromey <tom@tromey.com>
4088
4089 * common/ptid.c (ptid_is_pid): Remove.
4090 * common/ptid.h (ptid_is_pid): Don't declare.
4091 * infrun.c: Update.
4092 * linux-nat.c: Update.
4093 * mi/mi-interp.c: Update.
4094 * remote.c: Update.
4095 * thread.c: Update.
4096
cc6bcb54
TT
40972018-07-03 Tom Tromey <tom@tromey.com>
4098
4099 * common/ptid.c (ptid_get_tid): Remove.
4100 * common/ptid.h (ptid_get_tid): Don't declare.
4101 * ada-tasks.c: Update.
4102 * aix-thread.c: Update.
4103 * bsd-uthread.c: Update.
4104 * darwin-nat.c: Update.
4105 * fbsd-nat.c: Update.
4106 * i386-darwin-nat.c: Update.
4107 * infrun.c: Update.
4108 * linux-tdep.c: Update.
4109 * nto-procfs.c: Update.
4110 * ppc-ravenscar-thread.c: Update.
4111 * python/py-infthread.c: Update.
4112 * ravenscar-thread.c: Update.
4113 * sol-thread.c: Update.
4114 * sparc-ravenscar-thread.c: Update.
4115 * windows-nat.c: Update.
4116
e38504b3
TT
41172018-07-03 Tom Tromey <tom@tromey.com>
4118
4119 * common/ptid.c (ptid_get_lwp): Remove.
4120 * common/ptid.h (ptid_get_lwp): Don't declare.
4121 * aarch64-linux-nat.c: Update.
4122 * ada-tasks.c: Update.
4123 * aix-thread.c: Update.
4124 * amd64-linux-nat.c: Update.
4125 * arm-linux-nat.c: Update.
4126 * corelow.c: Update.
4127 * fbsd-nat.c: Update.
4128 * fbsd-tdep.c: Update.
4129 * gnu-nat.c: Update.
4130 * i386-cygwin-tdep.c: Update.
4131 * i386-gnu-nat.c: Update.
4132 * i386-linux-nat.c: Update.
4133 * ia64-linux-nat.c: Update.
4134 * inf-ptrace.c: Update.
4135 * infrun.c: Update.
4136 * linux-fork.c: Update.
4137 * linux-nat.c: Update.
4138 * linux-tdep.c: Update.
4139 * linux-thread-db.c: Update.
4140 * mips-linux-nat.c: Update.
4141 * nat/aarch64-linux-hw-point.c: Update.
4142 * nat/aarch64-linux.c: Update.
4143 * nat/linux-btrace.c: Update.
4144 * nat/linux-osdata.c: Update.
4145 * nat/linux-procfs.c: Update.
4146 * nat/x86-linux-dregs.c: Update.
4147 * obsd-nat.c: Update.
4148 * ppc-fbsd-nat.c: Update.
4149 * ppc-linux-nat.c: Update.
4150 * procfs.c: Update.
4151 * python/py-infthread.c: Update.
4152 * ravenscar-thread.c: Update.
4153 * remote.c: Update.
4154 * s390-linux-nat.c: Update.
4155 * sol-thread.c: Update.
4156 * sol2-tdep.c: Update.
4157 * spu-linux-nat.c: Update.
4158 * x86-linux-nat.c: Update.
4159 * xtensa-linux-nat.c: Update.
4160
e99b03dc
TT
41612018-07-03 Tom Tromey <tom@tromey.com>
4162
4163 * common/ptid.c (ptid_get_pid): Remove.
4164 * common/ptid.h (ptid_get_pid): Don't declare.
4165 * aarch64-linux-nat.c: Update.
4166 * ada-lang.c: Update.
4167 * aix-thread.c: Update.
4168 * alpha-bsd-nat.c: Update.
4169 * amd64-fbsd-nat.c: Update.
4170 * amd64-linux-nat.c: Update.
4171 * arm-linux-nat.c: Update.
4172 * arm-nbsd-nat.c: Update.
4173 * auxv.c: Update.
4174 * break-catch-syscall.c: Update.
4175 * breakpoint.c: Update.
4176 * bsd-uthread.c: Update.
4177 * corelow.c: Update.
4178 * ctf.c: Update.
4179 * darwin-nat.c: Update.
4180 * fbsd-nat.c: Update.
4181 * fbsd-tdep.c: Update.
4182 * gcore.c: Update.
4183 * gnu-nat.c: Update.
4184 * hppa-nbsd-nat.c: Update.
4185 * hppa-obsd-nat.c: Update.
4186 * i386-fbsd-nat.c: Update.
4187 * ia64-linux-nat.c: Update.
4188 * inf-ptrace.c: Update.
4189 * infcmd.c: Update.
4190 * inferior.c: Update.
4191 * inferior.h: Update.
4192 * inflow.c: Update.
4193 * infrun.c: Update.
4194 * linux-fork.c: Update.
4195 * linux-nat.c: Update.
4196 * linux-tdep.c: Update.
4197 * linux-thread-db.c: Update.
4198 * m68k-bsd-nat.c: Update.
4199 * mi/mi-interp.c: Update.
4200 * mi/mi-main.c: Update.
4201 * mips-linux-nat.c: Update.
4202 * mips-nbsd-nat.c: Update.
4203 * mips64-obsd-nat.c: Update.
4204 * nat/aarch64-linux-hw-point.c: Update.
4205 * nat/aarch64-linux.c: Update.
4206 * nat/linux-btrace.c: Update.
4207 * nat/linux-osdata.c: Update.
4208 * nat/linux-procfs.c: Update.
4209 * nat/x86-linux-dregs.c: Update.
4210 * nto-procfs.c: Update.
4211 * obsd-nat.c: Update.
4212 * ppc-linux-nat.c: Update.
4213 * ppc-nbsd-nat.c: Update.
4214 * ppc-obsd-nat.c: Update.
4215 * proc-service.c: Update.
4216 * procfs.c: Update.
4217 * python/py-inferior.c: Update.
4218 * python/py-infthread.c: Update.
4219 * ravenscar-thread.c: Update.
4220 * record.c: Update.
4221 * remote-sim.c: Update.
4222 * remote.c: Update.
4223 * rs6000-nat.c: Update.
4224 * s390-linux-nat.c: Update.
4225 * sh-nbsd-nat.c: Update.
4226 * sol-thread.c: Update.
4227 * sparc-nat.c: Update.
4228 * sparc64-tdep.c: Update.
4229 * spu-linux-nat.c: Update.
4230 * spu-tdep.c: Update.
4231 * target-debug.h: Update.
4232 * target.c: Update.
4233 * thread.c: Update.
4234 * tid-parse.c: Update.
4235 * tracefile-tfile.c: Update.
4236 * vax-bsd-nat.c: Update.
4237 * windows-nat.c: Update.
4238 * x86-linux-nat.c: Update.
4239 * x86-nat.c: Update.
4240
f2907e49
TT
42412018-07-03 Tom Tromey <tom@tromey.com>
4242
4243 * common/ptid.c (pid_to_ptid): Remove.
4244 * common/ptid.h (pid_to_ptid): Don't declare.
4245 * aix-thread.c: Update.
4246 * arm-linux-nat.c: Update.
4247 * common/ptid.c: Update.
4248 * common/ptid.h: Update.
4249 * corelow.c: Update.
4250 * ctf.c: Update.
4251 * darwin-nat.c: Update.
4252 * fbsd-nat.c: Update.
4253 * fork-child.c: Update.
4254 * gnu-nat.c: Update.
4255 * go32-nat.c: Update.
4256 * inf-ptrace.c: Update.
4257 * infcmd.c: Update.
4258 * inferior.c: Update.
4259 * infrun.c: Update.
4260 * linux-fork.c: Update.
4261 * linux-nat.c: Update.
4262 * nat/aarch64-linux-hw-point.c: Update.
4263 * nat/fork-inferior.c: Update.
4264 * nat/x86-linux-dregs.c: Update.
4265 * nto-procfs.c: Update.
4266 * obsd-nat.c: Update.
4267 * procfs.c: Update.
4268 * progspace.c: Update.
4269 * remote.c: Update.
4270 * rs6000-nat.c: Update.
4271 * s390-linux-nat.c: Update.
4272 * sol-thread.c: Update.
4273 * spu-linux-nat.c: Update.
4274 * target.c: Update.
4275 * top.c: Update.
4276 * tracefile-tfile.c: Update.
4277 * windows-nat.c: Update.
4278
fd79271b
TT
42792018-07-03 Tom Tromey <tom@tromey.com>
4280
4281 * common/ptid.h (ptid_build): Don't declare.
4282 * common/ptid.c (ptid_build): Remove.
4283 * aix-thread.c: Update.
4284 * bsd-kvm.c: Update.
4285 * bsd-uthread.c: Update.
4286 * common/agent.c: Update.
4287 * common/ptid.c: Update.
4288 * common/ptid.h: Update.
4289 * corelow.c: Update.
4290 * darwin-nat.c: Update.
4291 * fbsd-nat.c: Update.
4292 * gnu-nat.c: Update.
4293 * linux-fork.c: Update.
4294 * linux-nat.c: Update.
4295 * linux-thread-db.c: Update.
4296 * nat/linux-osdata.c: Update.
4297 * nat/linux-procfs.c: Update.
4298 * nto-procfs.c: Update.
4299 * obsd-nat.c: Update.
4300 * proc-service.c: Update.
4301 * procfs.c: Update.
4302 * ravenscar-thread.c: Update.
4303 * remote-sim.c: Update.
4304 * remote.c: Update.
4305 * sol-thread.c: Update.
4306 * target.c: Update.
4307 * windows-nat.c: Update.
4308
057302ce
TT
43092018-07-03 Tom Tromey <tom@tromey.com>
4310
4311 * infrun.c (follow_exec): Use exit_inferior_silent.
4312 * inferior.c (exit_inferior_num_silent): Remove.
4313 * inferior.h (exit_inferior_num_silent): Don't declare.
4314
a50c11c6
TT
43152018-07-03 Tom Tromey <tom@tromey.com>
4316
4317 PR cli/23340:
4318 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4319 inferior_ptid on error.
4320
471b9d15
MR
43212018-07-02 Maciej W. Rozycki <macro@mips.com>
4322 Simon Marchi <simon.marchi@polymtl.ca>
4323
4324 PR tdep/8282
4325 * disasm.h (gdb_disassembler): Add
4326 `m_disassembler_options_holder'. member
4327 * disasm.c (get_all_disassembler_options): New function.
4328 (gdb_disassembler::gdb_disassembler): Use it.
4329 (gdb_buffered_insn_length_init_dis): Likewise.
4330 (gdb_buffered_insn_length): Adjust accordingly.
4331 (set_disassembler_options): Handle options with arguments.
4332 (show_disassembler_options_sfunc): Likewise. Add a leading new
4333 line if showing options with descriptions.
4334 (disassembler_options_completer): Adapt to using the
4335 `disasm_options_and_args_t' structure.
4336 * mips-tdep.c (mips_disassembler_options): New variable.
4337 (mips_disassembler_options_o32): Likewise.
4338 (mips_disassembler_options_n32): Likewise.
4339 (mips_disassembler_options_n64): Likewise.
4340 (gdb_print_insn_mips): Don't set `disassembler_options'.
4341 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4342 functions.
4343 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4344 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4345 `gdbarch_disassembler_options_implicit' and
4346 `gdbarch_valid_disassembler_options'.
4347 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4348 `disasm_options_and_args_t' structure.
4349 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4350 method.
4351 (valid_disassembler_options): Switch from `disasm_options_t' to
4352 the `disasm_options_and_args_t' structure.
4353 * NEWS: Document `set disassembler-options' support for the MIPS
4354 target.
4355 * gdbarch.h: Regenerate.
4356 * gdbarch.c: Regenerate.
4357
41823f29
SH
43582018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4359
4360 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4361
41206e32
JB
43622018-06-29 Joel Brobecker <brobecker@adacore.com>
4363
4364 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4365 parameter in call to amd64_target_description.
4366 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4367 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4368 (amd64fbsd_init_abi): Likewise.
4369 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4370 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4371 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4372 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4373
de52b960
PA
43742018-06-29 Pedro Alves <palves@redhat.com>
4375
4376 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4377 "segments" parameter.
4378 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4379 (_initialize_amd64_tdep): Update call to
4380 amd64_create_target_description.
4381 (amd64_target_description): Add "segments" parameter. Adjust
4382 the implementation to use it.
4383 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4384 call to amd64_create_target_description.
4385 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4386 * gdb/arch/amd64.h (amd64_create_target_description): Add
4387 "segments" register.
4388 * gdb/arch/amd64.c (amd64_create_target_description): Add
4389 "segments" parameter. Call create_feature_i386_64bit_segments
4390 only if SEGMENTS is true.
4391 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4392 call to amd64_create_target_description.
4393
75acb486
PA
43942018-06-29 Pedro Alves <palves@redhat.com>
4395
4396 * thread.c (thread_target_id_str): New, factored out from ...
4397 (print_thread_info_1): ... here. Use it to compute the max
4398 "Target Id" column width.
4399
c76a8ea3
PA
44002018-06-29 Pedro Alves <palves@redhat.com>
4401
4402 * remote.c (remote_target::extra_thread_info): Delete
4403 'display_buf' and 'n' locals. from the cache, regardless of
4404 packet mechanims is in use. Use cache for qThreadExtra and qP
4405 methods too.
4406
cd2bb709
PA
44072018-06-29 Pedro Alves <palves@redhat.com>
4408
4409 * blockframe.c (find_pc_sect_containing_function): New function.
4410 * breakpoint.c (print_breakpoint_location): Don't call
4411 find_pc_sect_function.
4412 * linespec.c (create_sals_line_offset): Record the location's
4413 symbol in the sal.
4414 * linespec.c (convert_address_location_to_sals): Fill in sal's
4415 symbol with find_pc_sect_containing_function.
4416 * symtab.c (find_function_start_sal): Rename to ...
4417 (find_function_start_sal_1): ... this.
4418 (find_function_start_sal): Reimplement as wrapper around
4419 find_function_start_sal_1, and use
4420 find_pc_sect_containing_function to fill in the sal's symbol.
4421 (find_function_start_sal(symbol*, bool)): Adjust.
4422 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4423 comments.
4424 (find_pc_sect_containing_function): Declare.
4425
991ff292
PA
44262018-06-29 Pedro Alves <palves@redhat.com>
4427
4428 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4429 true if the the location has no symbol.
4430
44cee4fd
TT
44312018-06-28 Tom Tromey <tom@tromey.com>
4432
4433 * NEWS: Mention --enable-codesign.
4434 * silent-rules.mk (ECHO_SIGN): New variable.
4435 * configure.ac: Add --enable-codesign.
4436 * configure: Rebuild.
4437 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4438 (gdb$(EXEEXT)): Optionally invoke codesign.
4439
f2ffa92b
PA
44402018-06-28 Pedro Alves <palves@redhat.com>
4441
4442 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4443 comments.
4444 (switch_to_thread_no_regs): Adjust comment.
4445 * infcmd.c (stop_pc): Delete.
4446 (post_create_inferior, info_program_command): Replace references
4447 to stop_pc with references to thread_info->suspend.stop_pc.
4448 * inferior.h (stop_pc): Delete declaration.
4449 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4450 (handle_inferior_event_1, handle_signal_stop)
4451 (process_event_stop_test, keep_going_stepped_thread)
4452 (handle_step_into_function, handle_step_into_function_backward)
4453 (print_stop_location): Replace references to stop_pc with
4454 references to thread_info->suspend.stop_pc.
4455 (struct infcall_suspend_state) <stop_pc>: Delete field.
4456 (save_infcall_suspend_state, restore_infcall_suspend_state):
4457 Remove references to inf_stat->stop_pc.
4458 * linux-fork.c (fork_load_infrun_state): Likewise.
4459 * record-btrace.c (record_btrace_set_replay): Likewise.
4460 * record-full.c (record_full_goto_entry): Likewise.
4461 * remote.c (print_one_stopped_thread): Likewise.
4462 * target.c (target_resume): Extend comment.
4463 * thread.c (set_executing_thread): New.
4464 (set_executing): Use it.
4465 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4466 Remove references to stop_pc.
4467
ecdc3a72
PA
44682018-06-28 Pedro Alves <palves@redhat.com>
4469
4470 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4471 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4472
d95d3aef
TT
44732018-06-28 Tom Tromey <tom@tromey.com>
4474
4475 * coffread.c (coff_symfile_finish): Update.
4476 * xcoffread.c (xcoff_symfile_finish): Update.
4477 * elfread.c (elf_symfile_finish): Update.
4478 * symfile.h (dwarf2_free_objfile): Don't declare.
4479 * dwarf2read.c (_initialize_dwarf2_read): Use
4480 register_objfile_data_with_cleanup.
4481 (dwarf2_free_objfile): Now static. Change signature.
4482
291f9a96
PT
44832018-06-28 Petr Tesarik <ptesarik@suse.cz>
4484
4485 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4486 option "-o" to add-symbol-file-load to add an offset to each
4487 section's load address.
4488 * symfile.c (set_objfile_default_section_offset): New function.
4489
d81a3eaf
PT
44902018-06-28 Petr Tesarik <ptesarik@suse.cz>
4491
4492 * symfile.c (add_symbol_file_command): Make sure that sections
4493 with the same name are sorted in the same order.
4494
ed6dfe51
PT
44952018-06-28 Petr Tesarik <ptesarik@suse.cz>
4496
4497 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4498 require the second argument. If omitted, load sections at the
4499 addresses specified in the file.
4500
d4d429d5
PT
45012018-06-28 Petr Tesarik <ptesarik@suse.cz>
4502
4503 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4504 (_initialize_symfile): Add option "-o" to symbol-file to add an
4505 offset to each section of the symbol file.
4506
39b27ab6
PT
45072018-06-28 Petr Tesarik <ptesarik@suse.cz>
4508
4509 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4510
41827fc3
TT
45112018-06-27 Tom Tromey <tom@tromey.com>
4512
4513 * stack.c (_initialize_stack): Update "func" help text.
4514
0c6aef22
TT
45152018-06-27 Tom Tromey <tom@tromey.com>
4516
4517 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4518 std::vector.
4519 (unwind_infopy_str, pyuw_create_unwind_info)
4520 (unwind_infopy_add_saved_register, pyuw_sniffer)
4521 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4522 Update.
4523 (struct saved_reg): Add constructor.
4524 <value>: Now a gdbpy_ref<>.
4525
63177289
TT
45262018-06-27 Tom Tromey <tom@tromey.com>
4527
4528 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4529
e76f78a0
SM
45302018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4531
4532 * gdb-gdb.py.in: Format using autopep8.
4533
9a14af7b
SM
45342018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4535
4536 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4537 (type_lookup_function): Recognize CORE_ADDR values.
4538
189366cd
SM
45392018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4540
4541 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4542 print tag_name.
4543
68ad5fb9
SM
45442018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4545
4546 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4547 <__lt__>: Add.
4548
141ec9f6
SM
45492018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4550
4551 * gdb-gdb.py: Move to...
4552 * gdb-gdb.py.in: ... here.
4553 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4554 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4555 dependencies.
4556 (distclean): Remove gdb-gdb.py when cleaning.
4557 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4558 * configure: Re-generate.
4559
4c4e7ad4
PA
45602018-06-27 Pedro Alves <palves@redhat.com>
4561
4562 * proc-service.c (get_ps_regcache): New.
4563 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4564 (ps_lsetfpregs): Use it.
4565
7ab6656f
OJ
45662018-06-27 Omair Javaid <omair.javaid@linaro.org>
4567
4568 PR gdb/21695
4569 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4570 (dwarf_decode_lines_1): Adjust.
4571
bd583225
SM
45722018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4573
4574 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4575 override.
4576 <info_proc>: Likewise.
4577
9a325b7b
JB
45782018-06-26 Joel Brobecker <brobecker@adacore.com>
4579
4580 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4581 to windows_fetch_one_register, and only handle the case of
4582 fetching one register. Move the code that reloads the context
4583 and iterates over all registers if R is negative to...
4584 (windows_nat_target::fetch_registers): ... here.
4585 (do_windows_store_inferior_registers): Rename to
4586 windows_store_one_register, and only handle the case of storing
4587 one register. Move the code that handles the case where r is
4588 negative to...
4589 (windows_nat_target::store_registers) ... here.
4590
a33ccfc7
TT
45912018-06-26 Tom Tromey <tom@tromey.com>
4592
4593 PR rust/22574:
4594 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4595 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4596 Update.
4597 (rust_internal_print_type): Add podata parameter.
4598 (rust_print_type): Update.
4599
e0c547d1
TT
46002018-06-26 Tom Tromey <tom@tromey.com>
4601
4602 * typeprint.h (struct print_offset_data) <update, finish,
4603 maybe_print_hole>: New methods.
4604 <indentation>: New constant.
4605 * typeprint.c (print_offset_data::indentation): Define.
4606 (print_offset_data::maybe_print_hole, print_offset_data::update)
4607 (print_offset_data::finish): Move from c-typeprint.c and rename.
4608 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4609 (print_spaces_filtered_with_print_options): Update.
4610 (c_print_type_union_field_offset, maybe_print_hole)
4611 (c_print_type_struct_field_offset): Move to typeprint.c and
4612 rename.
4613 (c_type_print_base_struct_union): Update.
4614
75cbc781
PA
46152018-06-25 Pedro Alves <palves@redhat.com>
4616
4617 * gdbthread.h (thread_info_ref, delete_thread)
4618 (delete_thread_silent, first_thread_of_inferior)
4619 (any_thread_of_inferior, switch_to_thread)
4620 (enable_thread_stack_temporaries)
4621 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4622 (get_last_thread_stack_temporary)
4623 (value_in_thread_stack_temporaries, can_access_registers_thread):
4624 Spell out "struct thread_info" instead of just "thread_info".
4625 * inferior.h (notice_new_inferior): Likewise.
4626
b7a08269
PA
46272018-06-25 Pedro Alves <palves@redhat.com>
4628
4629 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4630 pass thread_info pointer to delete_thread.
4631 (windows_nat_target::detach): Pass inferior pointer to
4632 detach_inferior.
4633 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4634 delete_thread.
4635 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4636 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4637 and pass a thread_info pointer to delete_thread.
4638 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4639 pass thread_info pointer to delete_thread.
4640 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4641 delete_thread_silent call.
4642 * procfs.c (procfs_target::detach): Pass inferior pointer to
4643 detach_inferior.
4644 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4645 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4646 delete_thread_silent call.
4647 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4648 pass thread_info pointer to delete_thread.
4649 (windows_nat_target::detach): Pass inferior pointer to
4650 delete_inferior.
4651
8e7767e3
AH
46522018-06-22 Alan Hayward <alan.hayward@arm.com>
4653
4654 * regcache.c (readable_regcache::read_part): Fix asserts.
4655 (reg_buffer::raw_collect_part): New function.
4656 (regcache::write_part): Fix asserts.
4657 (reg_buffer::raw_supply_part): New function.
4658 (regcache::transfer_regset_register): New helper function.
4659 (regcache::transfer_regset): Call new functions.
4660 (regcache_supply_regset): Use gdb_byte*.
4661 (regcache::supply_regset): Likewise.
4662 (regcache_collect_regset): Likewise.
4663 (regcache::collect_regset): Likewise.
4664 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4665 (reg_buffer::raw_supply_part): Likewise.
4666 (regcache::transfer_regset_register): Likewise.
4667 (regcache::transfer_regset): Use gdb_byte*.
4668
bfd60e34
AH
46692018-06-22 Alan Hayward <alan.hayward@arm.com>
4670
4671 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4672
00431a78
PA
46732018-06-21 Pedro Alves <palves@redhat.com>
4674
4675 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4676 instead of a ptid_t. All callers adjusted.
4677 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4678 adjusted.
4679 (print_ada_task_info, display_current_task_id, task_command_1):
4680 Adjust.
4681 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4682 inferior_thread.
4683 (breakpoint_kind): Adjust.
4684 (remove_breakpoints_pid): Rename to ...
4685 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4686 pointer. All callers adjusted.
4687 (bpstat_clear_actions): Use inferior_thread.
4688 (get_bpstat_thread): New.
4689 (bpstat_do_actions): Use it.
4690 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4691 to take a thread_info pointer. All callers adjusted.
4692 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4693 (breakpoint_re_set_thread): Use inferior_thread.
4694 * breakpoint.h (struct inferior): Forward declare.
4695 (bpstat_stop_status): Update.
4696 (remove_breakpoints_pid): Delete.
4697 (remove_breakpoints_inf): New.
4698 * bsd-uthread.c (bsd_uthread_target::wait)
4699 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4700 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4701 (maint_btrace_packet_history_cmd)
4702 (maint_btrace_clear_packet_history_cmd): Adjust.
4703 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4704 inferior_thread.
4705 * cli/cli-interp.c: Include "inferior.h".
4706 * common/refcounted-object.h (struct
4707 refcounted_object_ref_policy): New.
4708 * compile/compile-object-load.c: Include gdbthread.h.
4709 (store_regs): Use inferior_thread.
4710 * corelow.c (core_target::close): Use current_inferior.
4711 (core_target_open): Adjust to use first_thread_of_inferior and use
4712 the current inferior.
4713 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4714 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4715 <thread>: ... this new field. All references adjusted.
4716 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4717 Take a thread_info pointer instead of a ptid_t.
4718 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4719 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4720 thread_info pointer instead of a ptid_t.
4721 * elfread.c: Include "inferior.h".
4722 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4723 Use inferior_thread.
4724 * eval.c (evaluate_subexp): Likewise.
4725 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4726 inferior_thread.
4727 * gdb_proc_service.h (struct thread_info): Forward declare.
4728 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4729 <thread>: ... this new field. All references adjusted.
4730 * gdbarch.h, gdbarch.c: Regenerate.
4731 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4732 'thread' parameter. All implementations and callers adjusted.
4733 * gdbthread.h (thread_info) <set_running>: New method.
4734 (delete_thread, delete_thread_silent): Take a thread_info pointer
4735 instead of a ptid.
4736 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4737 (first_thread_of_process): Delete, replaced by ...
4738 (first_thread_of_inferior): ... this new function. All callers
4739 adjusted.
4740 (any_live_thread_of_process): Delete, replaced by ...
4741 (any_live_thread_of_inferior): ... this new function. All callers
4742 adjusted.
4743 (switch_to_thread, switch_to_no_thread): Declare.
4744 (is_executing): Delete.
4745 (enable_thread_stack_temporaries): Update comment.
4746 <enable_thread_stack_temporaries>: Take a thread_info pointer
4747 instead of a ptid_t. Incref the thread.
4748 <~enable_thread_stack_temporaries>: Decref the thread.
4749 <m_ptid>: Delete
4750 <m_thr>: New.
4751 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4752 (get_last_thread_stack_temporary)
4753 (value_in_thread_stack_temporaries, can_access_registers_thread):
4754 Take a thread_info pointer instead of a ptid_t. All callers
4755 adjusted.
4756 * infcall.c (get_call_return_value): Use inferior_thread.
4757 (run_inferior_call): Work with thread pointers instead of ptid_t.
4758 (call_function_by_hand_dummy): Work with thread pointers instead
4759 of ptid_t. Use thread_info_ref.
4760 * infcmd.c (proceed_thread_callback): Access thread's state
4761 directly.
4762 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4763 access thread's state directly.
4764 (continue_command): Use inferior_thread.
4765 (info_program_command): Use find_thread_ptid and access thread
4766 state directly.
4767 (proceed_after_attach_callback): Use thread state directly.
4768 (notice_new_inferior): Take a thread_info pointer instead of a
4769 ptid_t. All callers adjusted.
4770 (exit_inferior): Take an inferior pointer instead of a pid. All
4771 callers adjusted.
4772 (exit_inferior_silent): New.
4773 (detach_inferior): Delete.
4774 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4775 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4776 (detach_inferior_command, kill_inferior_command): Use
4777 find_inferior_id instead of valid_gdb_inferior_id and
4778 gdb_inferior_id_to_pid.
4779 (inferior_command): Use inferior and thread pointers.
4780 * inferior.h (struct thread_info): Forward declare.
4781 (notice_new_inferior): Take a thread_info pointer instead of a
4782 ptid_t. All callers adjusted.
4783 (detach_inferior): Delete declaration.
4784 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4785 instead of a pid. All callers adjusted.
4786 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4787 (valid_gdb_inferior_id): Delete.
4788 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4789 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4790 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4791 ...
4792 <inf>: ... this new field.
4793 <step_ptid>: Delete, replaced by ...
4794 <step_thread>: ... this new field.
4795 (get_displaced_stepping_state): Take an inferior pointer instead
4796 of a pid. All callers adjusted.
4797 (displaced_step_in_progress_any_inferior): Adjust.
4798 (displaced_step_in_progress_thread): Take a thread pointer instead
4799 of a ptid_t. All callers adjusted.
4800 (displaced_step_in_progress, add_displaced_stepping_state): Take
4801 an inferior pointer instead of a pid. All callers adjusted.
4802 (get_displaced_step_closure_by_addr): Adjust.
4803 (remove_displaced_stepping_state): Take an inferior pointer
4804 instead of a pid. All callers adjusted.
4805 (displaced_step_prepare_throw, displaced_step_prepare)
4806 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4807 All callers adjusted.
4808 (start_step_over): Adjust.
4809 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4810 displaced step queue.
4811 (do_target_resume): Adjust.
4812 (fetch_inferior_event): Use inferior_thread.
4813 (context_switch, get_inferior_stop_soon): Take an
4814 execution_control_state pointer instead of a ptid_t. All callers
4815 adjusted.
4816 (switch_to_thread_cleanup): Delete.
4817 (stop_all_threads): Use scoped_restore_current_thread.
4818 * inline-frame.c: Include "gdbthread.h".
4819 (inline_state) <inline_state>: Take a thread pointer instead of a
4820 ptid_t. All callers adjusted.
4821 <ptid>: Delete, replaced by ...
4822 <thread>: ... this new field.
4823 (find_inline_frame_state): Take a thread pointer instead of a
4824 ptid_t. All callers adjusted.
4825 (skip_inline_frames, step_into_inline_frame)
4826 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4827 pointer instead of a ptid_t. All callers adjusted.
4828 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4829 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4830 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4831 pointers directly.
4832 * linux-nat.c (get_detach_signal): Likewise.
4833 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4834 (thread_db_notice_clone): Adjust.
4835 (thread_db_find_new_threads_silently)
4836 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4837 a thread pointer instead of a ptid_t. All callers adjusted.
4838 * mi/mi-cmd-var.c: Include "inferior.h".
4839 (mi_cmd_var_update_iter): Update to use thread pointers.
4840 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4841 inferior directly.
4842 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4843 out to ...
4844 (mi_output_running): ... this new function.
4845 (mi_on_resume_1): Adjust to use it.
4846 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4847 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4848 directly.
4849 (interrupt_thread_callback): : Adjust to use thread and inferior
4850 pointers.
4851 * proc-service.c: Include "gdbthread.h".
4852 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4853 * progspace-and-thread.c: Include "inferior.h".
4854 * progspace.c: Include "inferior.h".
4855 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4856 hold a reference to an inferior_object.
4857 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4858 inferior_thread.
4859 * python/py-inferior.c (struct inferior_object): Give the type a
4860 tag name instead of a typedef.
4861 (python_on_normal_stop): No need to check if the current thread is
4862 listed.
4863 (inferior_to_inferior_object): Change return type to
4864 inferior_object. All callers adjusted.
4865 (find_thread_object): Delete, bits factored out to ...
4866 (thread_to_thread_object): ... this new function.
4867 * python/py-infthread.c (create_thread_object): Use
4868 inferior_to_inferior_object.
4869 (thpy_is_stopped): Use thread pointer directly.
4870 (gdbpy_selected_thread): Use inferior_thread.
4871 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4872 field, replaced with ...
4873 <thread>: ... this new field. All users adjusted.
4874 (btpy_insn_or_gap_new): Drop const.
4875 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4876 callers adjusted.
4877 * python/py-record.c: Include "gdbthread.h".
4878 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4879 a ptid_t. All callers adjusted.
4880 (gdbpy_current_recording): Use inferior_thread.
4881 * python/py-record.h (recpy_record_object) <ptid>: Delete
4882 field, replaced with ...
4883 <thread>: ... this new field. All users adjusted.
4884 (recpy_element_object) <ptid>: Delete
4885 field, replaced with ...
4886 <thread>: ... this new field. All users adjusted.
4887 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4888 a ptid_t. All callers adjusted.
4889 * python/py-threadevent.c: Include "gdbthread.h".
4890 (get_event_thread): Use thread_to_thread_object.
4891 * python/python-internal.h (struct inferior_object): Forward
4892 declare.
4893 (find_thread_object, find_inferior_object): Delete declarations.
4894 (thread_to_thread_object, inferior_to_inferior_object): New
4895 declarations.
4896 * record-btrace.c: Include "inferior.h".
4897 (require_btrace_thread): Use inferior_thread.
4898 (record_btrace_frame_sniffer)
4899 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4900 (get_thread_current_frame): Use scoped_restore_current_thread and
4901 switch_to_thread.
4902 (get_thread_current_frame): Use thread pointer directly.
4903 (record_btrace_replay_at_breakpoint): Use thread's inferior
4904 pointer directly.
4905 * record-full.c: Include "inferior.h".
4906 * regcache.c: Include "gdbthread.h".
4907 (get_thread_arch_regcache): Use the inferior's address space
4908 directly.
4909 (get_thread_regcache, registers_changed_thread): New.
4910 * regcache.h (get_thread_regcache(thread_info *thread)): New
4911 overload.
4912 (registers_changed_thread): New.
4913 (remote_target) <remote_detach_1>: Swap order of parameters.
4914 (remote_add_thread): <remote_add_thread>: Return the new thread.
4915 (get_remote_thread_info(ptid_t)): New overload.
4916 (remote_target::remote_notice_new_inferior): Use thread pointers
4917 directly.
4918 (remote_target::process_initial_stop_replies): Use
4919 thread_info::set_running.
4920 (remote_target::remote_detach_1, remote_target::detach)
4921 (extended_remote_target::detach): Adjust.
4922 * stack.c (frame_show_address): Use inferior_thread.
4923 * target-debug.h (target_debug_print_thread_info_pp): New.
4924 * target-delegates.c: Regenerate.
4925 * target.c (default_thread_address_space): Delete.
4926 (memory_xfer_partial_1): Use current_inferior.
4927 (target_detach): Use current_inferior.
4928 (target_thread_address_space): Delete.
4929 (generic_mourn_inferior): Use current_inferior.
4930 * target.h (struct target_ops) <thread_address_space>: Delete.
4931 (target_thread_address_space): Delete.
4932 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4933 pointers directly.
4934 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4935 thread pointer instead of a ptid_t. Adjust all callers.
4936 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4937 (first_thread_of_process): Delete, replaced by ...
4938 (first_thread_of_inferior): ... this new function. All callers
4939 adjusted.
4940 (any_thread_of_process): Rename to ...
4941 (any_thread_of_inferior): ... this, and take an inferior pointer.
4942 (any_live_thread_of_process): Rename to ...
4943 (any_live_thread_of_inferior): ... this, and take an inferior
4944 pointer.
4945 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4946 (value_in_thread_stack_temporaries)
4947 (get_last_thread_stack_temporary): Take a thread pointer instead
4948 of a ptid_t. Adjust all callers.
4949 (thread_info::set_running): New.
4950 (validate_registers_access): Use inferior_thread.
4951 (can_access_registers_ptid): Rename to ...
4952 (can_access_registers_thread): ... this, and take a thread
4953 pointer.
4954 (print_thread_info_1): Adjust to compare thread pointers instead
4955 of ptids.
4956 (switch_to_no_thread, switch_to_thread): Make extern.
4957 (scoped_restore_current_thread::~scoped_restore_current_thread):
4958 Use m_thread pointer directly.
4959 (scoped_restore_current_thread::scoped_restore_current_thread):
4960 Use inferior_thread.
4961 (thread_command): Use thread pointer directly.
4962 (thread_num_make_value_helper): Use inferior_thread.
4963 * top.c (execute_command): Use inferior_thread.
4964 * tui/tui-interp.c: Include "inferior.h".
4965 * varobj.c (varobj_create): Use inferior_thread.
4966 (value_of_root_1): Use find_thread_global_id instead of
4967 global_thread_id_to_ptid.
4968
33bab475
AH
49692018-06-21 Alan Hayward <alan.hayward@arm.com>
4970
4971 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4972 possible.
4973 (regcache::write_part): Likewise.
4974 (readable_regcache::cooked_read_part): Update comment.
4975 (readable_regcache::cooked_write_part): Likewise.
4976 * regcache.h: (readable_regcache::read_part): Likewise.
4977 (regcache::write_part): Likewise.
4978
8363f9d5
RB
49792018-06-21 Richard Bunt <richard.bunt@arm.com>
4980 Dirk Schubert <dirk.schubert@arm.com>
4981
4982 * aarch64-linux-nat.c (post_attach): New.
4983 (aarch64_linux_nat_target::post_attach): Override post_attach to
4984 record the number of hardware debug registers.
4985
0d0b0ea2
TT
49862018-06-20 Tom Tromey <tom@tromey.com>
4987
4988 * python/py-param.c (add_setshow_generic): Make parameters const.
4989 (parmpy_init): Update.
4990
302abd6e
SM
49912018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4992
4993 * regcache.h (regcache_cooked_read_ftype): Rename to...
4994 (register_read_ftype): ...this, change type to function_view.
4995 (class reg_buffer) <save>: Remove src parameter.
4996 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4997 parameter non-const in first overload. Remove src parameter in
4998 second overload.
4999 * regcache.c (do_cooked_read): Remove.
5000 (readonly_detached_regcache::readonly_detached_regcache): Make
5001 parameter non-const, adjust call to other constructor.
5002 (reg_buffer::save): Remove src parameter.
5003 * frame.c (do_frame_register_read): Remove.
5004 (frame_save_as_regcache): Use lambda function.
5005 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5006 parameter to ppu2spu_data *.
5007 (ppu2spu_sniffer): Use lambda function.
5008
19f3f25f
SM
50092018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5010
5011 * record-full.c (record_full_target::insert_breakpoint): Remove
5012 "struct" keyword, add const.
5013
d0ac1c44
SM
50142018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5015
5016 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5017 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5018 * configure.ac: Remove AC_PREREQ, add missing quoting.
5019 * gnulib/configure.ac: Modernize usage of
5020 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5021 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5022 (AUTOMAKE_VERSION): Bump to 1.15.1.
5023 * configure: Re-generate.
5024 * config.in: Re-generate.
5025 * aclocal.m4: Re-generate.
5026 * gnulib/aclocal.m4: Re-generate.
5027 * gnulib/config.in: Re-generate.
5028 * gnulib/configure: Re-generate.
5029 * gnulib/import/Makefile.in: Re-generate.
5030
6ae50267
PA
50312018-06-19 Pedro Alves <palves@redhat.com>
5032
5033 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5034 (lookup_minimal_symbol_by_pc_section): ... here with
5035 gdb_assert_not_reached added.
5036
61b04dd0
PA
50372018-06-19 Pedro Alves <palves@redhat.com>
5038
5039 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5040 parameter with a block parameter. Compare location's block symbol
5041 with the frame's block instead of addresses.
5042 (skip_inline_frames): Pass the current block instead of the
5043 frame's address. Break out as soon as we determine the frame
5044 should not be skipped.
5045
f709fabb
TT
50462018-06-18 Tom Tromey <tom@tromey.com>
5047
5048 * solib-aix.c (solib_aix_get_section_offsets): Return
5049 unique_xmalloc_ptr.
5050 (solib_aix_solib_create_inferior_hook): Update.
5051
668eb2f0
TT
50522018-06-18 Tom Tromey <tom@tromey.com>
5053
5054 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5055
309822ca
TT
50562018-06-18 Tom Tromey <tom@tromey.com>
5057
5058 * solib-frv.c (frv_relocate_main_executable): Use
5059 unique_xmalloc_ptr.
5060 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5061 unique_xmalloc_ptr.
5062
06424eac
TT
50632018-06-18 Tom Tromey <tom@tromey.com>
5064
5065 * objfiles.h (inhibit_section_map_updates): Update.
5066 (resume_section_map_updates, resume_section_map_updates_cleanup):
5067 Remove.
5068 * solib-svr4.c (svr4_handle_solib_event): Update.
5069 * objfiles.c (inhibit_section_map_updates): Return
5070 scoped_restore_tmpl<int>.
5071 (resume_section_map_updates, resume_section_map_updates_cleanup):
5072 Remove.
5073
b4be9fad
TT
50742018-06-18 Tom Tromey <tom@tromey.com>
5075
5076 * valprint.h (read_string): Update.
5077 * valprint.c (read_string): Change type of "buffer".
5078 (val_print_string): Update.
5079 * python/py-value.c (valpy_string): Update.
5080 * language.h (struct language_defn) <la_get_string>: Change
5081 type of "buffer".
5082 (default_get_string, c_get_string): Update.
5083 * language.c (default_get_string): Change type of "buffer".
5084 * guile/scm-value.c (gdbscm_value_to_string): Update.
5085 * c-lang.c (c_get_string): Change type of "buffer".
5086
3f0dbd67
TT
50872018-06-18 Tom Tromey <tom@tromey.com>
5088
5089 * ser-mingw.c (struct pipe_state_destroyer): New.
5090 (pipe_state_up): New typedef.
5091 (cleanup_pipe_state): Remove.
5092 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5093
69d340c6
TT
50942018-06-18 Tom Tromey <tom@tromey.com>
5095
5096 * rust-lang.h (rust_yyerror): Don't declare.
5097 * rust-lang.c (rust_language_defn): Update.
5098 * rust-exp.y (yyerror): Now static.
5099 * parse.c (parse_exp_in_context_1): Update.
5100 * p-lang.h (p_yyerror): Don't declare.
5101 * p-lang.c (p_language_defn): Update.
5102 * p-exp.y (yyerror): Now static.
5103 * opencl-lang.c (opencl_language_defn): Update.
5104 * objc-lang.c (objc_language_defn): Update.
5105 * m2-lang.h (m2_yyerror): Don't declare.
5106 * m2-lang.c (m2_language_defn): Update.
5107 * m2-exp.y (yyerror): Now static.
5108 * language.h (struct language_defn) <la_error>: Remove.
5109 * language.c (unk_lang_error): Remove.
5110 (unknown_language_defn, auto_language_defn): Remove.
5111 * go-lang.h (go_yyerror): Don't declare.
5112 * go-lang.c (go_language_defn): Update.
5113 * go-exp.y (yyerror): Now static.
5114 * f-lang.h (f_yyerror): Don't declare.
5115 * f-lang.c (f_language_defn): Update.
5116 * f-exp.y (yyerror): Now static.
5117 * d-lang.h (d_yyerror): Don't declare.
5118 * d-lang.c (d_language_defn): Update.
5119 * d-exp.y (yyerror): Now static.
5120 * c-lang.h (c_yyerror): Don't declare.
5121 * c-lang.c (c_language_defn, cplus_language_defn)
5122 (asm_language_defn, minimal_language_defn): Update.
5123 * c-exp.y (yyerror): Now static.
5124 * ada-lang.h (ada_yyerror): Don't declare.
5125 * ada-lang.c (ada_language_defn): Update.
5126 * ada-exp.y (yyerror): Now static.
5127
e9902bfc
AH
51282018-06-18 Alan Hayward <alan.hayward@arm.com>
5129
5130 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5131 (store_sveregs_to_thread): Likewise.
5132 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5133 (aarch64_linux_store_inferior_registers): Likewise.
5134 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5135 function.
5136 (aarch64_sve_regs_copy_to_regcache): Likewise.
5137 (aarch64_sve_regs_copy_from_regcache): Likewise.
5138 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5139 declaration.
5140 (aarch64_sve_regs_copy_to_regcache): Likewise.
5141 (aarch64_sve_regs_copy_from_regcache): Likewise.
5142 (sve_context): Structure from Linux headers.
5143 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5144 (SVE_SIG_ZREG_SIZE): Likewise.
5145 (SVE_SIG_PREG_SIZE): Likewise.
5146 (SVE_SIG_FFR_SIZE): Likewise.
5147 (SVE_SIG_REGS_OFFSET): Likewise.
5148 (SVE_SIG_ZREGS_OFFSET): Likewise.
5149 (SVE_SIG_ZREG_OFFSET): Likewise.
5150 (SVE_SIG_ZREGS_SIZE): Likewise.
5151 (SVE_SIG_PREGS_OFFSET): Likewise.
5152 (SVE_SIG_PREG_OFFSET): Likewise.
5153 (SVE_SIG_PREGS_SIZE): Likewise.
5154 (SVE_SIG_FFR_OFFSET): Likewise.
5155 (SVE_SIG_REGS_SIZE): Likewise.
5156 (SVE_SIG_CONTEXT_SIZE): Likewise.
5157 (SVE_PT_REGS_MASK): Likewise.
5158 (SVE_PT_REGS_FPSIMD): Likewise.
5159 (SVE_PT_REGS_SVE): Likewise.
5160 (SVE_PT_VL_INHERIT): Likewise.
5161 (SVE_PT_VL_ONEXEC): Likewise.
5162 (SVE_PT_REGS_OFFSET): Likewise.
5163 (SVE_PT_FPSIMD_OFFSET): Likewise.
5164 (SVE_PT_FPSIMD_SIZE): Likewise.
5165 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5166 (SVE_PT_SVE_PREG_SIZE): Likewise.
5167 (SVE_PT_SVE_FFR_SIZE): Likewise.
5168 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5169 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5170 (__SVE_SIG_TO_PT): Likewise.
5171 (SVE_PT_SVE_OFFSET): Likewise.
5172 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5173 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5174 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5175 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5176 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5177 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5178 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5179 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5180 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5181 (SVE_PT_SVE_SIZE): Likewise.
5182 (SVE_PT_SIZE): Likewise.
5183 (HAS_SVE_STATE): New define.
5184
17a1cc89
AH
51852018-06-18 Alan Hayward <alan.hayward@arm.com>
5186
5187 * nat/aarch64-sve-linux-sigcontext.h: New file.
5188 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5189 new files.
5190 (SVE_VQ_MIN): Likewise.
5191 (SVE_VQ_MAX): Likewise.
5192 (SVE_VL_MIN): Likewise.
5193 (SVE_VL_MAX): Likewise.
5194 (SVE_NUM_ZREGS): Likewise.
5195 (SVE_NUM_PREGS): Likewise.
5196 (sve_vl_valid): Likewise.
5197 (struct user_sve_header): Likewise.
5198
7010835a
AB
51992018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5200 Richard Bunt <Richard.Bunt@arm.com>
5201
5202 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5203 was requested by GDB.
5204
479b3ef4
TV
52052018-06-15 Tom de Vries <tdevries@suse.de>
5206
5207 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5208
8199b8f4
SM
52092018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5210
5211 * gnulib/update-gnulib.sh: Print expected versions of
5212 autoconf/aclocal.
5213
55c748a1
SM
52142018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5215
5216 * arch-utils.c (default_type_align): Use type_length_units.
5217 * gdbtypes.c (type_align): Use type_length_units.
5218
87a8eca7
PW
52192018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5220
5221 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5222 of 'define' command.
5223
5d9a0608
TV
52242018-06-14 Tom de Vries <tdevries@suse.de>
5225
5226 PR cli/22573
5227 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5228 get_no_prettyformat_print_options.
5229
ab89b5a5
SM
52302018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5231
5232 * sparc-nat.h: Include target.h.
5233 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5234 <fetch_registers>: Remove this argument in function call.
5235 <store_registers>: Remove this argument in function call, remove
5236 extra semicolon.
5237 <low_forget_process>: Call sparc64_forget_process instead of
5238 sparc_forget_process.
5239
62c808ae
RO
52402018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5241
5242 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5243 (procfs_target::make_corefile_notes): Adjust to new
5244 target_read_alloc return type.
5245
1840d81a
AB
52462018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5247 Stephen Roberts <stephen.roberts@arm.com>
5248
5249 PR gdb/22882
5250 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5251 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5252 Move should_notify_stop local into more inner scope.
5253
9516f85a
AB
52542018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5255 Stephen Roberts <stephen.roberts@arm.com>
5256
5257 PR gdb/22882
5258 * infrun.c (resume_1): Add call to mark_async_event_handler.
5259
defd2172
AB
52602018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5261
5262 * infrun.c (do_target_wait): Change old version of $pc printed.
5263
7b23e087
SM
52642018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5265
5266 * dwarf2read.c (read_index_from_section): Rename to...
5267 (read_gdb_index_from_section): ... this, update all callers.
5268 (dwarf2_read_index): Rename to...
5269 (dwarf2_read_gdb_index): ... this, update all callers.
5270
69c67a0b
JDA
52712018-06-11 John David Anglin <danglin@gcc.gnu.org>
5272
5273 * gdb/hppa-linux-nat.c
5274 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5275 hppa_linux_nat_target::fetch_registers.
5276
65d4cada
AH
52772018-06-11 Alan Hayward <alan.hayward@arm.com>
5278
5279 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5280 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5281 (AARCH64_DWARF_SVE_FFR): Likewise.
5282 (AARCH64_DWARF_SVE_P0): Likewise.
5283 (AARCH64_DWARF_SVE_Z0): Likewise.
5284
f868386e
AH
52852018-06-11 Alan Hayward <alan.hayward@arm.com>
5286
5287 * common/common-regcache.h (raw_compare): New function.
5288 * regcache.c (regcache::raw_compare): Likewise.
5289 * regcache.h (regcache::raw_compare): New declaration.
5290
9c861883
AH
52912018-06-11 Alan Hayward <alan.hayward@arm.com>
5292
5293 * common/common-regcache.h (reg_buffer_common): New structure.
5294 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5295 (reg_buffer::raw_supply): Likewise.
5296 (reg_buffer::raw_supply_integer): Likewise.
5297 (reg_buffer::raw_supply_zeroed): Likewise.
5298 (reg_buffer::raw_collect): Likewise.
5299 (reg_buffer::raw_collect_integer): Likewise.
5300 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5301 (reg_buffer::raw_supply): Likewise.
5302 (reg_buffer::raw_supply_integer): Likewise.
5303 (reg_buffer::raw_supply_zeroed): Likewise.
5304 (reg_buffer::raw_collect): Likewise.
5305 (reg_buffer::raw_collect_integer): Likewise.
5306
953edf2b
TT
53072018-06-10 Tom Tromey <tom@tromey.com>
5308
5309 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5310 (class remote_state) <stop_reply_queue>: Now std::vector.
5311 (remote_state::~remote_state)
5312 (remote_target::stop_reply_queue_length): Update.
5313 (struct queue_iter_param, remove_child_of_pending_fork)
5314 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5315 (check_pending_event_prevents_wildcard_vcont_callback)
5316 (remove_stop_reply_for_inferior)
5317 (remove_stop_reply_of_remote_state)
5318 (remote_notif_remove_once_on_match)
5319 (stop_reply_match_ptid_and_ws)
5320 (remote_kill_child_of_pending_fork): Remove.
5321 (remote_target::remove_new_fork_children)
5322 (remote_target::check_pending_events_prevent_wildcard_vcont)
5323 (remote_target::discard_pending_stop_replies)
5324 (remote_target::discard_pending_stop_replies_in_queue)
5325 (remote_target::remote_notif_remove_queued_reply)
5326 (remote_target::queued_stop_reply)
5327 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5328 (remote_target::wait, remote_target::kill_new_fork_children)
5329 (remote_target::async): Update.
5330
1ddbba9d
TT
53312018-06-10 Tom Tromey <tom@tromey.com>
5332
5333 * record-full.c (record_full_arch_list_cleanups): Remove.
5334 (record_full_message): Use try/catch.
5335 (record_full_wait_cleanups): Remove.
5336 (record_full_wait_1): Use try/catch.
5337 (record_full_restore): Likewise.
5338
219605fd
TT
53392018-06-10 Tom Tromey <tom@tromey.com>
5340
5341 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5342 declare VEC. Add constructor.
5343 <in_target_beneath>: Now bool.
5344 (record_full_breakpoints): Now a std::vector, static.
5345 (record_full_sync_record_breakpoints)
5346 (record_full_init_record_breakpoints)
5347 (record_full_target::insert_breakpoint)
5348 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5349
71b73764
SM
53502018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5351
5352 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5353 * serial.c (serial_interface_lookup): Remove struct keyword.
5354
4360561f
TT
53552018-06-10 Tom Tromey <tom@tromey.com>
5356
5357 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5358 method.
5359 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5360 a method.
5361 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5362 method.
5363 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5364 "beneath" as a method.
5365 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5366 Use "beneath" as a method.
5367
d14b92bf
TT
53682018-06-10 Tom Tromey <tom@tromey.com>
5369
5370 * tracefile.c (struct trace_file_writer_deleter): New.
5371 <operator()>: Rename from trace_file_writer_xfree.
5372 (trace_file_writer_up): New typedef.
5373 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5374
835dcf92
SM
53752018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5376
5377 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5378 <m_registers, m_register_status>: Change type to
5379 std::unique_ptr.
5380 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5381 XCNEWVEC.
5382
aac0d564
SM
53832018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5384
5385 * common/common-regcache.h (enum register_status): Add
5386 underlying type "signed char".
5387 * regcache.h (reg_buffer) <m_register_status>: Change type to
5388 register_status *.
5389 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5390 register_status instead of signed char.
5391 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5392 (reg_buffer::get_register_status): Remove cast.
5393 (readable_regcache::raw_read): Remove cast.
5394 (readable_regcache::cooked_read): Remove cast.
5395
77ad7394
TT
53962018-06-09 Tom Tromey <tom@tromey.com>
5397
5398 * source.c (reverse_search_command, forward_search_command): Use
5399 scoped_fd.
5400
191cca63
TT
54012018-06-09 Tom Tromey <tom@tromey.com>
5402
5403 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5404 (serial_ops_list): Now static, std::vector.
5405 (serial_interface_lookup, serial_add_interface): Update.
5406
c5d0225d
TT
54072018-06-09 Tom Tromey <tom@tromey.com>
5408
5409 * dwarf2read.c (process_cu_includes): Update.
5410 (process_full_comp_unit): Update.
5411 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5412 std::vector.
5413
aeab5128
PK
54142018-06-08 Paul Koning <paul_koning@dell.com>
5415
5416 PR gdb/23252
5417
5418 * python/python.c (do_start_initialization):
5419 Avoid call to internal Python API.
5420 (init__gdb_module): New function.
5421
5045b3d7
GB
54222018-06-08 Gary Benson <gbenson@redhat.com>
5423
5424 * linux-thread-db.c (valprint.h): New include.
5425 (struct check_thread_db_info): New structure.
5426 (check_thread_db_on_load, tdb_testinfo): New static globals.
5427 (check_thread_db, check_thread_db_callback): New functions.
5428 (try_thread_db_load_1): Run integrity checks if requested.
5429 (maintenance_check_libthread_db): New function.
5430 (_initialize_thread_db): Register "maint check libthread-db"
5431 and "maint set/show check-libthread-db".
5432 * NEWS: Mention the above new commands.
5433
2f4f025f
TT
54342018-06-08 Tom Tromey <tom@tromey.com>
5435
5436 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5437 now a method.
5438
343b0027
TT
54392018-06-08 Tom Tromey <tom@tromey.com>
5440
5441 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5442
8dcc53b3
TT
54432018-06-08 Tom Tromey <tom@tromey.com>
5444
5445 * common/btrace-common.h (struct btrace_data): Add constructor,
5446 destructor, move assignment operator.
5447 <empty, clear, fini>: New methods.
5448 <format>: Initialize.
5449 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5450 (btrace_data_empty): Don't declare.
5451 * common/btrace-common.c (btrace_data_init): Remove.
5452 (btrace_data::fini): Rename from btrace_data_fini.
5453 (btrace_data::empty): Rename from btrace_data_empty.
5454 (btrace_data::clear): Rename from btrace_data_clear. Return
5455 bool.
5456 * btrace.h (make_cleanup_btrace_data): Don't declare.
5457 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5458 (parse_xml_btrace): Update.
5459 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5460 (maint_btrace_clear_packet_history_cmd): Update.
5461
a1740ee1
PA
54622018-06-07 Pedro Alves <palves@redhat.com>
5463
5464 * target.h (target_ops) <beneath>: Now a method. All references
5465 updated.
5466 (class target_stack): New.
5467 * target.c (g_target_stack): New.
5468 (g_current_top_target): Delete.
5469 (current_top_target): Get the top target out of g_target_stack.
5470 (target_stack::push, target_stack::unpush): New.
5471 (push_target, unpush_target): Reimplement.
5472 (target_is_pushed): Reimplement in terms of g_target_stack.
5473 (target_ops::beneath, target_stack::find_beneath): New.
5474
d6ca69cd
PA
54752018-06-07 Pedro Alves <palves@redhat.com>
5476
5477 * target.h (find_target_beneath): Delete declaration.
5478 * target.c (find_target_beneath): Delete definition.
5479 * aix-thread.c: All callers of find_target_beneath adjusted to
5480 call target_ops::beneath instead.
5481 * bsd-uthread.c: Likewise.
5482 * linux-thread-db.c: Likewise.
5483 * ravenscar-thread.c: Likewise.
5484 * sol-thread.c: Likewise.
5485 * spu-multiarch.c: Likewise.
5486
b6a8c27b
PA
54872018-06-07 Pedro Alves <palves@redhat.com>
5488
5489 * target.h (target_ops) <beneath>: Now a method. All references
5490 updated.
5491 (target_ops) <m_beneath>: New.
5492 * target.c (target_ops::beneath): New.
5493 * corelow.c: Adjust all references to target_ops::beneath.
5494 * linux-thread-db.c: Likewise.
5495 * make-target-delegates: Likewise.
5496 * record-btrace.c: Likewise.
5497 * record-full.c: Likewise.
5498 * remote.c: Likewise.
5499 * target.c: Likewise.
5500 * target-delegates.c: Regenerate.
5501
8b88a78e
PA
55022018-06-07 Pedro Alves <palves@redhat.com>
5503
5504 * target.h (target_stack): Delete.
5505 (current_top_target): Declare function.
5506 * target.c (target_stack): Delete.
5507 (g_current_top_target): New.
5508 (current_top_target): New function.
5509 * auxv.c: Use current_top_target instead of target_stack
5510 throughout.
5511 * avr-tdep.c: Likewise.
5512 * breakpoint.c: Likewise.
5513 * corefile.c: Likewise.
5514 * elfread.c: Likewise.
5515 * eval.c: Likewise.
5516 * exceptions.c: Likewise.
5517 * frame.c: Likewise.
5518 * gdbarch-selftests.c: Likewise.
5519 * gnu-v3-abi.c: Likewise.
5520 * ia64-tdep.c: Likewise.
5521 * ia64-vms-tdep.c: Likewise.
5522 * infcall.c: Likewise.
5523 * infcmd.c: Likewise.
5524 * infrun.c: Likewise.
5525 * linespec.c: Likewise.
5526 * linux-tdep.c: Likewise.
5527 * minsyms.c: Likewise.
5528 * ppc-linux-nat.c: Likewise.
5529 * ppc-linux-tdep.c: Likewise.
5530 * procfs.c: Likewise.
5531 * regcache.c: Likewise.
5532 * remote.c: Likewise.
5533 * rs6000-tdep.c: Likewise.
5534 * s390-linux-nat.c: Likewise.
5535 * s390-tdep.c: Likewise.
5536 * solib-aix.c: Likewise.
5537 * solib-darwin.c: Likewise.
5538 * solib-dsbt.c: Likewise.
5539 * solib-spu.c: Likewise.
5540 * solib-svr4.c: Likewise.
5541 * solib-target.c: Likewise.
5542 * sparc-tdep.c: Likewise.
5543 * sparc64-tdep.c: Likewise.
5544 * spu-tdep.c: Likewise.
5545 * symfile.c: Likewise.
5546 * symtab.c: Likewise.
5547 * target-descriptions.c: Likewise.
5548 * target-memory.c: Likewise.
5549 * target.c: Likewise.
5550 * target.h: Likewise.
5551 * tracefile-tfile.c: Likewise.
5552 * tracepoint.c: Likewise.
5553 * valops.c: Likewise.
5554 * valprint.c: Likewise.
5555 * value.c: Likewise.
5556 * windows-tdep.c: Likewise.
5557 * mi/mi-main.c: Likewise.
5558
c7110220
TT
55592018-06-07 Tom Tromey <tom@tromey.com>
5560
5561 * valprint.h (build_address_symbolic): Declare.
5562 * printcmd.c (print_address_symbolic): Update.
5563 (build_address_symbolic): Change "name" and "filename" to
5564 std::string.
5565 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5566 Update.
5567 * defs.h (build_address_symbolic): Remove declaration.
5568
63bad7b6
AH
55692018-06-07 Alan Hayward <alan.hayward@arm.com>
5570
5571 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5572 (aarch64_vnv_type): Add function.
5573 (aarch64_pseudo_register_name): Add V regs for SVE.
5574 (aarch64_pseudo_register_type): Likewise.
5575 (aarch64_pseudo_register_reggroup_p): Likewise.
5576 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5577 (aarch64_pseudo_read_value): Add V regs for SVE.
5578 (aarch64_pseudo_write_2): Use V0 offset for SVE
5579 (aarch64_pseudo_write): Add V regs for SVE.
5580 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5581
13e3c608
SDJ
55822018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5583
5584 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5585 (sve_vl_from_vq): Likewise.
5586
c61b06a1
TT
55872018-06-05 Tom Tromey <tom@tromey.com>
5588
5589 * cli/cli-cmds.c (show_version): Update.
5590 * top.c (print_gdb_version): Add "interactive" parameter.
5591 Update.
5592 * main.c (captured_main_1): Update.
5593 * top.h (print_gdb_version): Add "interactive" parameter and a
5594 comment.
5595
115f7325
DM
55962018-06-05 David Malcolm <dmalcolm@redhat.com>
5597
5598 * common/enum-flags.h: Add trailing semicolon to example in
5599 comment.
5600
eb6af809
TT
56012018-06-05 Tom Tromey <tom@tromey.com>
5602
5603 PR cli/12326:
5604 * NEWS: Add entry about pager.
5605 * utils.c (pagination_disabled_for_command): New global.
5606 (prompt_for_continue): Allow "c" response to prompt.
5607 (reinitialize_more_filter): Clear
5608 pagination_disabled_for_command.
5609 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5610
54d343a2
TT
56112018-06-04 Tom Tromey <tom@tromey.com>
5612
5613 * ada-lang.h (ada_lookup_symbol_list): Update.
5614 * ada-lang.c (resolve_subexp): Update.
5615 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5616 parameter.
5617 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5618 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5619 results parameter to std::vector.
5620 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5621 Update.
5622 * ada-exp.y (block_lookup): Update.
5623 (select_possible_type_sym): Change type of syms. Remove nsyms
5624 parameter.
5625 (write_var_or_type, write_name_assoc): Update.
5626
178d6a63
JB
56272018-06-04 Joel Brobecker <brobecker@adacore.com>
5628
5629 * windows-nat.c (windows_nat_target::xfer_partial): Return
5630 TARGET_XFER_E_IO if we need to delegate to the target beneath
5631 but BENEATH is NULL.
5632
baf00c2d
SM
56332018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5634
5635 * Makefile.in (config.status): Add configure.nat as a
5636 dependency.
5637
214b073c
TT
56382018-06-04 Tom Tromey <tom@tromey.com>
5639
5640 * cp-name-parser.y (cpname_state): Add method declarations.
5641 (HANDLE_QUAL): Update.
5642 (cpname_state::d_grab, cpname_state::fill_comp)
5643 (cpname_state::make_operator, cpname_state::make_dtor)
5644 (cpname_state::make_builtin_type, cpname_state::make_name)
5645 (cpname_state::d_qualify, cpname_state::d_int_type)
5646 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5647 (%union): Move earlier.
5648
62b74cb8
AH
56492018-06-04 Alan Hayward <alan.hayward@arm.com>
5650
5651 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5652
3c5cd5c3
AH
56532018-06-04 Alan Hayward <alan.hayward@arm.com>
5654
5655 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5656 (aarch64_pseudo_write_1): Likewise.
5657 (aarch64_pseudo_read_value): Use helper.
5658 (aarch64_pseudo_write): Likewise.
5659
59f413d5
PA
56602018-06-04 Pedro Alves <palves@redhat.com>
5661
5662 * darwin-nat.c (darwin_ops): Delete.
5663 (darwin_attach_pid): Use get_native_target.
5664
1332a140
AH
56652018-06-04 Alan Hayward <alan.hayward@arm.com>
5666
5667 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5668 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5669
ba2d2bb2
AH
56702018-06-04 Alan Hayward <alan.hayward@arm.com>
5671
5672 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5673 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5674 (aarch64_gdbarch_init): Check for SVE.
5675 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5676
56772018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
5678
5679 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5680 * aarch64-tdep.h (aarch64_read_description): Likewise.
5681 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5682 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5683 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5684 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5685 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5686
41c60b4b
SM
56872018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5688
5689 * value.c (value_fetch_lazy_bitfield): New.
5690 (value_fetch_lazy_memory): New.
5691 (value_fetch_lazy_register): New.
5692 (value_fetch_lazy): Factor out to smaller functions.
5693
7b640f72
TT
56942018-06-01 Tom Tromey <tom@tromey.com>
5695
5696 * cp-name-parser.y (backslashable, represented): Now const.
5697
98e69eb3
TT
56982018-06-01 Tom Tromey <tom@tromey.com>
5699
5700 * cp-name-parser.y: Include parser-defs.h.
5701 (parser_fprintf): Remove declaration.
5702
49265499
TT
57032018-06-01 Tom Tromey <tom@tromey.com>
5704
5705 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5706 %parse-param.
5707 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5708 (global_result): Remove globals.
5709 (struct cpname_state): New.
5710 (yyparse): Don't declare.
5711 (yylex, yyerror): Move declarations after %union.
5712 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5713 (make_name): Add state parameter.
5714 Update all callers.
5715 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5716 parameter.
5717 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5718 Update.
5719 (yylex): Add lvalp, state parameters.
5720 (yyerror): Add state parameter.
5721 (cp_demangled_name_to_comp): Update.
5722
55b6c984
TT
57232018-06-01 Tom Tromey <tom@tromey.com>
5724
5725 * cp-name-parser.y (parser_fprintf): Declare.
5726 (GDB_YY_REMAP_PREFIX): Define.
5727 Include yy-remap.h. Don't redefine yy* identifiers.
5728
3513a6bb
TT
57292018-06-01 Tom Tromey <tom@tromey.com>
5730
5731 * python/py-type.c (typy_legacy_template_argument): Update.
5732 * cp-support.h (cp_demangled_name_to_comp): Update.
5733 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5734 parameter to be a "std::string *".
5735 (main): Update.
5736
e9cb46ab
L
57372018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5738
5739 * ada-lex.l: Include "diagnostics.h" instead of
5740 "common/diagnostics.h".
5741 * unittests/environ-selftests.c: Likewise.
5742 * common/diagnostics.h: Moved to ../include.
5743
8e817061
JB
57442018-06-01 Joel Brobecker <brobecker@adacore.com>
5745
5746 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5747 to language_mode_manual while calling breakpoint_re_set_one.
5748
a737d952
TT
57492018-06-01 Tom Tromey <tom@tromey.com>
5750
5751 * valops.c (value_cast_structs, destructor_name_p): Update.
5752 * symtab.c (gdb_mangle_name): Update.
5753 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5754 Update.
5755 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5756 (pascal_object_print_value_fields, pascal_object_print_value):
5757 Update.
5758 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5759 * linespec.c (find_methods): Update.
5760 * gdbtypes.h (type_name_no_tag): Remove.
5761 (type_name_or_error): Rename from type_name_no_tag_or_error.
5762 * gdbtypes.c (type_name_no_tag): Remove.
5763 (type_name_or_error): Rename from type_name_no_tag_or_error.
5764 (lookup_struct_elt_type, check_typedef): Update.
5765 * expprint.c (print_subexp_standard): Update.
5766 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5767 * d-namespace.c (d_lookup_nested_symbol): Update.
5768 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5769 (cp_print_class_member): Update.
5770 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5771 * completer.c (add_struct_fields): Update.
5772 * c-typeprint.c (cp_type_print_derivation_info)
5773 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5774 Update.
5775 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5776 (ada_prefer_type, ada_is_exception_sym): Update.
5777
e86ca25f
TT
57782018-06-01 Tom Tromey <tom@tromey.com>
5779
5780 * valops.c (enum_constant_from_type, value_namespace_elt)
5781 (value_maybe_namespace_elt): Update.
5782 * valarith.c (find_size_for_pointer_math): Update.
5783 * target-descriptions.c (make_gdb_type): Update.
5784 * symmisc.c (print_symbol): Update.
5785 * stabsread.c (define_symbol, read_type)
5786 (complain_about_struct_wipeout, add_undefined_type)
5787 (cleanup_undefined_types_1): Update.
5788 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5789 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5790 (rust_internal_print_type, rust_composite_type)
5791 (rust_evaluate_funcall, rust_evaluate_subexp)
5792 (rust_inclusive_range_type_p): Update.
5793 * python/py-type.c (typy_get_tag): Update.
5794 * p-typeprint.c (pascal_type_print_base): Update.
5795 * mdebugread.c (parse_symbol, parse_type): Update.
5796 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5797 Update.
5798 * guile/scm-type.c (gdbscm_type_tag): Update.
5799 * go-lang.c (sixg_string_p): Update.
5800 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5801 Update.
5802 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5803 (TYPE_TAG_NAME): Remove.
5804 * gdbtypes.c (type_name_no_tag): Simplify.
5805 (check_typedef, check_types_equal, recursive_dump_type)
5806 (copy_type_recursive, arch_composite_type): Update.
5807 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5808 in summary mode when needed.
5809 * eval.c (evaluate_funcall): Update.
5810 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5811 (process_structure_scope, read_enumeration_type)
5812 (read_namespace_type, read_module_type, determine_prefix): Update.
5813 * cp-support.c (inspect_type): Update.
5814 * coffread.c (process_coff_symbol, decode_base_type): Update.
5815 * c-varobj.c (c_is_path_expr_parent): Update.
5816 * c-typeprint.c (c_type_print_base_struct_union): Update.
5817 (c_type_print_base_1): Update. Print struct/class/union/enum in
5818 summary when using C language.
5819 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5820 (gen_maybe_namespace_elt): Update.
5821 * ada-lang.c (ada_type_name): Simplify.
5822 (empty_record, ada_template_to_fixed_record_type_1)
5823 (template_to_static_fixed_type)
5824 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5825
c1ec8cea
TT
58262018-06-01 Tom Tromey <tom@tromey.com>
5827
5828 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5829 c_print_type.
5830 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5831 (c_print_type): Update.
5832 (c_print_type): New overload.
5833 (c_type_print_varspec_prefix, c_type_print_args)
5834 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5835 (c_type_print_base_struct_union, c_type_print_base_1)
5836 (cp_type_print_method_args): Add "language" parameter.
5837 (c_type_print_base): Update.
5838 * c-lang.h (c_print_type): Add new overload.
5839
bc8453a7
TT
58402018-06-01 Tom Tromey <tom@tromey.com>
5841
5842 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5843 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5844
739e8682
AH
58452018-06-01 Alan Hayward <alan.hayward@arm.com>
5846
5847 * aarch64-tdep.c (aarch64_sve_register_names): New const
5848 var.
5849 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5850 (AARCH64_SVE_Z_REGS_NUM): New define.
5851 (AARCH64_SVE_P_REGS_NUM): Likewise.
5852 (AARCH64_SVE_NUM_REGS): Likewise.
5853
8a60efe7
UB
58542018-05-31 Uros Bizjak <ubizjak@gmail.com>
5855
5856 * nat/linux-ptrace.h [__alpha__]
5857 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5858 definitions.
5859
4b2dfa9d
MR
58602018-05-31 Maciej W. Rozycki <macro@mips.com>
5861
5862 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5863 the endianness selected.
5864 * NEWS: Document `set endian auto' mode operation update.
5865
122394f1
AH
58662018-05-31 Alan Hayward <alan.hayward@arm.com>
5867
5868 * Makefile.in: Add new header.
5869 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5870 (sve_vl_from_vg): Likewise.
5871 (sve_vq_from_vl): Likewise.
5872 (sve_vl_from_vq): Likewise.
5873 (sve_vq_from_vg): Likewise.
5874 (sve_vg_from_vq): Likewise.
5875 * configure.nat: Add new c file.
5876 * nat/aarch64-sve-linux-ptrace.c: New file.
5877 * nat/aarch64-sve-linux-ptrace.h: New file.
5878
95228a0d
AH
58792018-05-31 Alan Hayward <alan.hayward@arm.com>
5880
5881 * aarch64-linux-nat.c (aarch64_linux_read_description):
5882 Add parmeter zero.
5883 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5884 Likewise.
5885 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5886 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5887 (aarch64_gdbarch_init): Add parmeter zero.
5888 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5889 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5890 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5891 parmeter.
5892 * doc/gdb.texinfo: Describe SVE feature
5893 * features/aarch64-sve.c: New file.
5894
5969f0db
OJ
58952018-05-31 Omair Javaid <omair.javaid@linaro.org>
5896
5897 PR gdb/23210
5898 * gdbarch.sh (significant_addr_bit): Default to zero when
5899 not set by target architecture.
5900 * gdbarch.c: Re-generated.
5901 * utils.c (address_significant): Update.
5902
61367c61
JB
59032018-05-30 Joel Brobecker <brobecker@adacore.com>
5904
5905 * stack.c (func_command): Remove trailing newline in call to error.
5906
34a79281
SM
59072018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5908
5909 * regcache.h (regcache_raw_collect): Remove, update callers to
5910 use regcache::raw_collect.
5911 * regcache.c (regcache_raw_collect): Remove.
5912
73e1c03f
SM
59132018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5914
5915 * regcache.h (regcache_raw_supply): Remove, update callers to
5916 use detached_regcache::raw_supply.
5917 * regcache.c (regcache_raw_supply): Remove.
5918
e4c4a59b
SM
59192018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5920
5921 * regcache.h (regcache_cooked_write_part): Remove, update
5922 callers to use regcache::cooked_write_part.
5923 * regcache.c (regcache_cooked_write_part): Remove.
5924
73bb0000
SM
59252018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5926
5927 * regcache.h (regcache_cooked_read_part): Remove, update callers
5928 to use readable_regcache::cooked_read_part.
5929 * regcache.c (regcache_cooked_read_part): Remove.
5930
46a45e9d
SM
59312018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5932
5933 * regcache.h (regcache_cooked_read_value): Remove, update
5934 callers to use readable_regcache::cooked_read_value.
5935 * regcache.c (regcache_cooked_read_value): Remove.
5936
b66f5587
SM
59372018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5938
5939 * regcache.h (regcache_cooked_write): Remove, update callers to
5940 use regcache::cooked_write.
5941 * regcache.c (regcache_cooked_write): Remove.
5942
6aa7d724
SM
59432018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5944
5945 * regcache.h (regcache_invalidate): Remove, update callers to
5946 use detached_regcache::invalidate instead.
5947 * regcache.c (regcache_invalidate): Remove.
5948
4f0420fd
SM
59492018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5950
5951 * regcache.h (regcache_raw_write_part): Remove, update callers
5952 to use regcache::raw_write_part instead.
5953 * regcache.c (regcache_raw_write_part): Remove.
5954
502fe83e
SM
59552018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5956
5957 * regcache.h (regcache_raw_read_part): Remove, update callers to
5958 use readable_regcache::raw_read_part instead.
5959 * regcache.c (regcache_raw_read_part): Remove.
5960
dca08e1f
SM
59612018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5962
5963 * regcache.h (regcache_cooked_read): Remove, update callers to
5964 use readable_regcache::cooked_read instead.
5965 * regcache.c (regcache_cooked_read): Remove.
5966
10eaee5f
SM
59672018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5968
5969 * regcache.h (regcache_raw_write): Remove, update callers to use
5970 regcache::raw_write instead.
5971 * regcache.c (regcache_raw_write): Remove.
5972
0b883586
SM
59732018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5974
5975 * regcache.h (regcache_raw_read): Remove, update callers to use
5976 readable_regcache::raw_read instead.
5977 * regcache.c (regcache_raw_read): Remove.
5978
0b47d985
SM
59792018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5980
5981 * regcache.h (regcache_raw_update): Remove, update callers to
5982 use readable_regcache::raw_update instead.
5983 * regcache.c (regcache_raw_update): Remove.
5984
0ec9f114
SM
59852018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5986
5987 * regcache.h (regcache_register_status): Remove, update callers
5988 to use reg_buffer::get_register_status directly instead.
5989 * regcache.c (regcache_register_status): Remove.
5990
222312d3
SM
59912018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5992
5993 * regcache.h (regcache_get_ptid): Remove, update all callers to
5994 call regcache::ptid instead.
5995 * regcache.c (regcache_get_ptid): Remove.
5996
fdbe37e3
SM
59972018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5998
5999 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6000
f7c6f423
PA
60012018-05-30 Pedro Alves <palves@redhat.com>
6002
6003 * common/common-exceptions.h (exception_rethrow): Use
6004 ATTRIBUTE_NORETURN.
6005
52941706
SM
60062018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6007
6008 * breakpoint.c (print_solib_event, check_status_catch_solib):
6009 Remove struct keyword in range-based for loops.
6010 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6011 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6012 Likewise.
6013 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6014 Likewise.
6015 * symfile.c (addr_info_make_relative): Likewise.
6016 * thread.c (value_in_thread_stack_temporaries): Likewise.
6017
bf2977b5
WP
60182018-06-12 Weimin Pan <weimin.pan@oracle.com>
6019
6020 PR gdb/16841
6021 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6022 aggregate type to get its real type before accessing it.
6023
64cc34d8
WP
60242018-05-29 Weimin Pan <weimin.pan@oracle.com>
6025
6026 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6027 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6028 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6029 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6030 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6031 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6032 * printcmd.c (info_address_command): Likewise.
6033
e7ec8713
TT
60342018-05-29 Tom Tromey <tom@tromey.com>
6035
6036 * windows-nat.c (handle_exception): Update fall-through comment.
6037
bcb430e4
TT
60382018-05-29 Tom Tromey <tom@tromey.com>
6039
6040 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6041 (struct program_space) <added_solibs>: Now a std::vector.
6042 * breakpoint.c (print_solib_event): Update.
6043 (check_status_catch_solib): Update.
6044 * progspace.c (clear_program_space_solib_cache): Update.
6045 * solib.c (update_solib_list): Update.
6046
894882e3
TT
60472018-05-29 Tom Tromey <tom@tromey.com>
6048
6049 * python/py-type.c (typy_richcompare): Update.
6050 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6051 * gdbtypes.h (types_deeply_equal): Return bool.
6052 (types_equal): Likewise.
6053 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6054 declare VEC.
6055 (check_types_equal): Change worklist to std::vector. Return
6056 bool.
6057 (struct type_equality_entry): Add constructor.
6058 (compare_maybe_null_strings): Return bool.
6059 (check_types_worklist): Return bool. Change worklist to
6060 std::vector.
6061 (types_deeply_equal): Use std::vector.
6062 (types_equal): Return bool.
6063 (compare_maybe_null_strings): Simplify.
6064
10b2ded4
TT
60652018-05-29 Tom Tromey <tom@tromey.com>
6066
6067 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6068
4f7deebe
TT
60692018-05-29 Tom Tromey <tom@tromey.com>
6070
6071 * objc-lang.h: Don't include cp-support.h.
6072 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6073 declare VEC.
6074
b8283aea
TT
60752018-05-27 Tom Tromey <tom@tromey.com>
6076
6077 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6078
41a883c8
TT
60792018-05-25 Tom Tromey <tom@tromey.com>
6080
6081 * value.c (value::location): Initialize.
6082
bf259e25
TT
60832018-05-25 Tom Tromey <tom@tromey.com>
6084
6085 * dbxread.c (init_bincl_list): Remove.
6086 (bincl_list): Now a std::vector.
6087 (bincls_allocated, next_bincl): Remove.
6088 (free_bincl_list, do_free_bincl_list_cleanup)
6089 (make_cleanup_free_bincl_list): Remove.
6090 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6091 unique_xmalloc_ptr.
6092 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6093 (struct header_file_location): Add constructor.
6094 (add_bincl_to_list): Remove.
6095
d525a99b
TT
60962018-05-25 Tom Tromey <tom@tromey.com>
6097
6098 * tui/tui.c (tui_enable): Update.
6099 * mi/mi-interp.c (mi_interp::init): Update.
6100 * interps.h (class interp) <name>: New method.
6101 <m_name>: Rename from name.
6102 (~scoped_restore_interp): Update.
6103 * interps.c (interp::interp): Update.
6104 (interp_add, interp_set, interp_lookup_existing)
6105 (current_interp_named_p): Update.
6106
da505cff
TT
61072018-05-25 Tom Tromey <tom@tromey.com>
6108
6109 * interps.c (interp_name): Remove.
6110 * mi/mi-interp.c (mi_interp::init): Update.
6111 * interps.h (interp_name): Remove.
6112 (~scoped_restore_interp): Update.
6113 * tui/tui.c (tui_enable): Update.
6114
29f94340
TT
61152018-05-25 Tom Tromey <tom@tromey.com>
6116
6117 * utils.c (fputs_maybe_filtered): Update.
6118 * linespec.c (decode_line_full): Update.
6119 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6120 (mi_print_breakpoint_for_event, mi_solib_loaded)
6121 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6122 (mi_user_selected_context_changed): Update.
6123 * mi/mi-main.c (mi_execute_command): Update.
6124 * cli/cli-script.c (execute_control_command): Update.
6125 * python/python.c (execute_gdb_command): Update.
6126 * solib.c (info_sharedlibrary_command): Update.
6127 * interps.c (interp_ui_out): Remove.
6128 * interps.h (interp_ui_out): Remove.
6129
716b8bc5
TT
61302018-05-25 Tom Tromey <tom@tromey.com>
6131
6132 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6133 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6134 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6135
753ff9bd
TT
61362018-05-25 Tom Tromey <tom@tromey.com>
6137
6138 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6139 * interps.c (interp_exec): Use scoped_restore.
6140
5ca3b260
TT
61412018-05-25 Tom Tromey <tom@tromey.com>
6142
6143 * remote.c (remote_target::remote_file_get): Use
6144 gdb::byte_vector.
6145 (remote_target::remote_file_put): Likewise.
6146
3173aa2f
TT
61472018-05-25 Tom Tromey <tom@tromey.com>
6148
6149 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6150 a std::string.
6151 (get_pe_section_index, add_pe_exported_sym): Update.
6152 (read_pe_exported_syms): Use gdb::def_vector.
6153
09a5e1b5
TT
61542018-05-25 Tom Tromey <tom@tromey.com>
6155
6156 * frame.c (remove_prev_frame): Remove.
6157 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6158
d8dab6c3
MR
61592018-05-25 Maciej W. Rozycki <macro@mips.com>
6160
6161 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6162 Remove prototypes.
6163 * mips-linux-nat.c (supply_fpregset): Always call
6164 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6165 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6166 `mips_fill_fpregset'.
6167 * mips-linux-tdep.c (mips_supply_fpregset)
6168 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6169 (mips_fill_fpregset_wrapper): Remove functions.
6170 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6171 (mips_linux_fpregset): Remove variable.
6172 (mips_linux_iterate_over_regset_sections): Use
6173 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6174 (mips_linux_o32_sigframe_init): Remove comment.
6175
3c69da40
PA
61762018-05-25 Pedro Alves <palves@redhat.com>
6177
6178 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6179 (struct readahead_cache, struct packet_reg, struct
6180 remote_arch_state, class remote_state): Move higher up in the
6181 file.
6182 (remote_target::m_remote_state): Now an object instead of a pointer.
6183 (remote_target::get_remote_state): Adjust.
6184
39f0c204
AB
61852018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6186
6187 * stack.c (select_and_print_frame): Delete.
6188 (struct function_bounds): Move struct within function.
6189 (func_command): Most content moved into new function
6190 find_frame_for_function, use new function, print result, add
6191 function comment.
6192 (find_frame_for_function): New function, now returns a result.
6193
d392224a
PW
61942018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6195
6196 * stack.c (iterate_over_block_arg_vars): Fix comment.
6197 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6198
45f25d6c
AB
61992018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6200
6201 PR gdb/23203
6202 * frame.c
6203 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6204 Define.
6205 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6206 Define.
6207 * frame.h (class scoped_restore_selected_frame): New class.
6208 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6209 of any exception, use scoped_restore_selected_frame to restore the
6210 frame instead.
6211
da05d921
PA
62122018-05-24 Pedro Alves <palves@redhat.com>
6213
6214 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6215 override.
6216
a8be540e
TT
62172018-05-23 Tom Tromey <tom@tromey.com>
6218
6219 * complaints.c (struct complaints): Remove.
6220 (symfile_complaint_book): Remove.
6221 (series): New global.
6222 (complaint_internal): Update.
6223 (clear_complaints): Update.
6224
ff1cf532
TT
62252018-05-23 Tom Tromey <tom@tromey.com>
6226
6227 * complaints.c (counters): New global.
6228 (struct complain): Remove.
6229 (struct complaints) <root>: Remove.
6230 (complaint_sentinel): Remove.
6231 (symfile_complaint_book): Update.
6232 (find_complaint) Remove.
6233 (complaint_internal, clear_complaints): Update.
6234
7ff88174
TT
62352018-05-23 Tom Tromey <tom@tromey.com>
6236
6237 * complaints.c (struct complain) <file, line>: Remove.
6238 (find_complaint): Remove file, line parameters.
6239 (complaint_internal): Update.
6240
de54e1a5
TT
62412018-05-23 Tom Tromey <tom@tromey.com>
6242
6243 * complaints.c (vcomplaint): Remove.
6244 (complaint_internal) Merge in contents of vcomplaint.
6245
2ac237e5
TT
62462018-05-23 Tom Tromey <tom@tromey.com>
6247
6248 * complaints.c (struct complaints) <explanation>: Remove.
6249 (symfile_explanations): Remove.
6250 (symfile_complaint_book): Update.
6251 (vcomplaint): Update.
6252 (struct explanation): Remove.
6253
b98664d3
TT
62542018-05-23 Tom Tromey <tom@tromey.com>
6255
6256 * complaints.c (symfile_complaints): Remove.
6257 (complaint_internal): Remove "complaints" parameter.
6258 (clear_complaints, vcomplaint): Remove "c" parameter.
6259 (get_complaints): Remove.
6260 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6261 (dwarf2_debug_line_missing_file_complaint)
6262 (dwarf2_debug_line_missing_end_sequence_complaint)
6263 (dwarf2_complex_location_expr_complaint)
6264 (dwarf2_const_value_length_mismatch_complaint)
6265 (dwarf2_section_buffer_overflow_complaint)
6266 (dwarf2_macro_malformed_definition_complaint)
6267 (dwarf2_invalid_attrib_class_complaint)
6268 (create_addrmap_from_index, dw2_symtab_iter_next)
6269 (dw2_expand_marked_cus)
6270 (dw2_debug_names_iterator::find_vec_in_debug_names)
6271 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6272 (create_debug_type_hash_table, init_cutu_and_read_dies)
6273 (partial_die_parent_scope, add_partial_enumeration)
6274 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6275 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6276 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6277 (create_cus_hash_table, create_dwp_hash_table)
6278 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6279 (dwarf2_rnglists_process, dwarf2_ranges_process)
6280 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6281 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6282 (handle_struct_member_die, process_structure_scope)
6283 (read_array_type, read_common_block, read_module_type)
6284 (read_tag_pointer_type, read_typedef, read_base_type)
6285 (read_subrange_type, load_partial_dies, partial_die_info::read)
6286 (partial_die_info::read, partial_die_info::read)
6287 (partial_die_info::read, read_checked_initial_length_and_offset)
6288 (dwarf2_string_attr, read_formatted_entries)
6289 (dwarf_decode_line_header)
6290 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6291 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6292 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6293 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6294 (get_signatured_type, get_DW_AT_signature_type)
6295 (decode_locdesc, file_file_name, consume_improper_spaces)
6296 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6297 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6298 (dwarf2_symbol_mark_computed, set_die_type)
6299 (read_attribute_value): Update.
6300 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6301 Update.
6302 * dbxread.c (unknown_symtype_complaint)
6303 (lbrac_mismatch_complaint, repeated_header_complaint)
6304 (set_namestring, function_outside_compilation_unit_complaint)
6305 (read_dbx_symtab, process_one_symbol): Update.
6306 * gdbtypes.c (stub_noname_complaint): Update.
6307 * windows-nat.c (handle_unload_dll): Update.
6308 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6309 (decode_base_type): Update.
6310 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6311 (eb_complaint, record_include_begin, record_include_end)
6312 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6313 (process_xcoff_symbol, read_symbol)
6314 (function_outside_compilation_unit_complaint)
6315 (scan_xcoff_symtab): Update.
6316 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6317 * buildsym.c (finish_block_internal, make_blockvector)
6318 (end_symtab_get_static_block, augment_type_symtab): Update.
6319 * dtrace-probe.c (dtrace_process_dof)
6320 (dtrace_static_probe_ops::get_probes): Update.
6321 * complaints.h (struct complaint): Don't declare.
6322 (symfile_complaints): Remove.
6323 (complaint_internal): Remove "complaints" parameter.
6324 (complaint): Likewise.
6325 (clear_complaints): Likewise.
6326 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6327 (reread_symbols): Update.
6328 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6329 (dwarf2_frame_cache, decode_frame_entry): Update.
6330 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6331 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6332 (info_selectors_command): Update.
6333 * macrotab.c (macro_include, check_for_redefinition)
6334 (macro_undef): Update.
6335 * objfiles.c (filter_overlapping_sections): Update.
6336 * stabsread.c (invalid_cpp_abbrev_complaint)
6337 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6338 (define_symbol, error_type, read_type, rs6000_builtin_type)
6339 (stabs_method_name_from_physname, read_member_functions)
6340 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6341 (attach_fields_to_type, complain_about_struct_wipeout)
6342 (read_range_type, read_args, common_block_start)
6343 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6344 Update.
6345 * mdebugread.c (index_complaint, unknown_ext_complaint)
6346 (basic_type_complaint, bad_tag_guess_complaint)
6347 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6348 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6349 (parse_procedure, parse_lines)
6350 (function_outside_compilation_unit_complaint)
6351 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6352 (bad_tag_guess_complaint, reg_value_complaint): Update.
6353 * cp-support.c (demangled_name_complaint): Update.
6354 * macroscope.c (sal_macro_scope): Update.
6355 * dwarf-index-write.c (class debug_names): Update.
6356
4e9668d0
TT
63572018-05-23 Tom Tromey <tom@tromey.com>
6358
6359 * complaints.c (clear_complaints): Remove "noisy" parameter.
6360 * complaints.h (clear_complaints): Update.
6361 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6362 (reread_symbols): Update.
6363
43ba33c7
TT
63642018-05-23 Tom Tromey <tom@tromey.com>
6365
6366 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6367 SUBSEQUENT_MESSAGE.
6368 (vcomplaint, clear_complaints): Update.
6369 (symfile_explanations): Remove some messages.
6370
2b9496b2
TT
63712018-05-23 Tom Tromey <tom@tromey.com>
6372
6373 * complaints.c (internal_complaint): Remove.
6374 * complaints.h (internal_complaint): Remove.
6375
35f1fea3
MR
63762018-05-22 Maciej W. Rozycki <macro@mips.com>
6377
6378 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6379
6b8edb51
PA
63802018-05-22 Pedro Alves <palves@redhat.com>
6381
6382 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6383 (remote_fileio_badfd, remote_fileio_return_errno)
6384 (remote_fileio_return_success, remote_fileio_func_open)
6385 (remote_fileio_func_open, remote_fileio_func_close)
6386 (remote_fileio_func_read, remote_fileio_func_write)
6387 (remote_fileio_func_lseek, remote_fileio_func_rename)
6388 (remote_fileio_func_unlink, remote_fileio_func_stat)
6389 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6390 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6391 remote_target parameter.
6392 (remote_fio_func_map) <func>: Add remote_target parameter.
6393 (do_remote_fileio_request, remote_fileio_request):
6394 * remote-fileio.h (remote_fileio_request):
6395 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6396 remote_target parameter.
6397 (remote_notif_process, handle_notification): Adjust to pass down
6398 the remote.
6399 (remote_notif_state_allocate): Add remote_target parameter. Save
6400 it.
6401 * remote-notif.h (struct remote_target): Forward declare.
6402 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6403 remote_target parameter.
6404 (struct remote_notif_state) <remote>: New field.
6405 (remote_notif_ack, remote_notif_parse): Add remote_target
6406 parameter.
6407 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6408 remote_target parameter.
6409 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6410 (threads_listing_context, rmt_thread_action, protocol_feature)
6411 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6412 (packet_result, struct threads_listing_context, remote_state):
6413 Move definitions and declarations higher up.
6414 (remote_target) <~remote_target>: Declare.
6415 (remote_download_command_source, remote_file_put, remote_file_get)
6416 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6417 (remote_hostio_pread_vFile, remote_hostio_send_command)
6418 (remote_hostio_set_filesystem, remote_hostio_open)
6419 (remote_hostio_close, remote_hostio_unlink, remote_state)
6420 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6421 (get_memory_write_packet_size, get_memory_read_packet_size)
6422 (append_pending_thread_resumptions, remote_detach_1)
6423 (append_resumption, remote_resume_with_vcont)
6424 (add_current_inferior_and_thread, wait_ns, wait_as)
6425 (process_stop_reply, remote_notice_new_inferior)
6426 (process_initial_stop_replies, remote_add_thread)
6427 (btrace_sync_conf, remote_btrace_maybe_reopen)
6428 (remove_new_fork_children, kill_new_fork_children)
6429 (discard_pending_stop_replies, stop_reply_queue_length)
6430 (check_pending_events_prevent_wildcard_vcont)
6431 (discard_pending_stop_replies_in_queue, stop_reply)
6432 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6433 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6434 (remote_interrupt_as, remote_interrupt_ns)
6435 (remote_get_noisy_reply, remote_query_attached)
6436 (remote_add_inferior, remote_current_thread, get_current_thread)
6437 (set_thread, set_general_thread, set_continue_thread)
6438 (set_general_process, write_ptid)
6439 (remote_unpack_thread_info_response, remote_get_threadinfo)
6440 (parse_threadlist_response, remote_get_threadlist)
6441 (remote_threadlist_iterator, remote_get_threads_with_ql)
6442 (remote_get_threads_with_qxfer)
6443 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6444 (get_offsets, remote_check_symbols, remote_supported_packet)
6445 (remote_query_supported, remote_packet_size)
6446 (remote_serial_quit_handler, remote_detach_pid)
6447 (remote_vcont_probe, remote_resume_with_hc)
6448 (send_interrupt_sequence, interrupt_query)
6449 (remote_notif_get_pending_events, fetch_register_using_p)
6450 (send_g_packet, process_g_packet, fetch_registers_using_g)
6451 (store_register_using_P, store_registers_using_G)
6452 (set_remote_traceframe, check_binary_download)
6453 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6454 (remote_xfer_live_readonly_partial, remote_read_bytes)
6455 (remote_send_printf, remote_flash_write, readchar)
6456 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6457 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6458 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6459 (extended_remote_disable_randomization, extended_remote_run)
6460 (send_environment_packet, extended_remote_environment_support)
6461 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6462 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6463 (packet_command): Now methods of ...
6464 (remote_target): ... this class.
6465 (m_remote_state) <remote_target>: New field.
6466 (struct remote_state) <stop_reply_queue,
6467 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6468 fields.
6469 (remote_state::remote_state): Allocate stop_reply_queue.
6470 (remote_state): Delete global.
6471 (get_remote_state_raw): Delete.
6472 (remote_target::get_remote_state): Allocate m_remote_state on
6473 demand.
6474 (get_current_remote_target): New.
6475 (remote_ops, extended_remote_ops): Delete.
6476 (wait_forever_enabled_p, remote_async_inferior_event_token):
6477 Delete, moved to struct remote_state.
6478 (remote_target::close): Delete self. Destruction bits split to
6479 ...
6480 (remote_target::~remote_target): ... this.
6481 (show_memory_packet_size): Adjust to use
6482 get_current_remote_target.
6483 (struct protocol_feature) <func>: Add remote_target parameter.
6484 All callers adjusted.
6485 (curr_quit_handler_target): New.
6486 (remote_serial_quit_handler): Reimplement.
6487 (remote_target::open_1): Adjust to use get_current_remote_target.
6488 Heap-allocate remote_target/extended_remote_target instances.
6489 (vcont_builder::vcont_builder): Add remote_target parameter, and
6490 save it in m_remote. All callers adjusted.
6491 (vcont_builder::m_remote): New field.
6492 (vcont_builder::restart, vcont_builder::flush)
6493 (vcont_builder::push_action): Use it.
6494 (remote_target::commit_resume): Use it.
6495 (struct queue_iter_param) <remote>: New field.
6496 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6497 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6498 (check_pending_event_prevents_wildcard_vcont_callback)
6499 (remote_target::check_pending_events_prevent_wildcard_vcont)
6500 (remote_target::discard_pending_stop_replies)
6501 (remote_target::discard_pending_stop_replies_in_queue)
6502 (remote_target::remote_notif_remove_queued_reply): Fill in
6503 'remote' field.
6504 (remote_notif_get_pending_events): New.
6505 (remote_target::readchar, remote_target::remote_serial_write):
6506 Save/restore curr_quit_handler_target.
6507 (putpkt): New.
6508 (kill_new_fork_children): Fill in 'remote' field.
6509 (packet_command): Use get_current_remote_target, defer to
6510 remote_target method of same name.
6511 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6512 parameter, and save it in m_remote. All callers adjusted.
6513 (scoped_remote_fd::release): Use m_remote.
6514 (scoped_remote_fd::m_remote): New field.
6515 (remote_file_put, remote_file_get, remote_file_delete): Use
6516 get_current_remote_target, defer to remote_target method of same
6517 name.
6518 (remote_btrace_reset): Add remote_state paremeter. Update all
6519 callers.
6520 (remote_async_inferior_event_handler). Pass down 'data'.
6521 (remote_new_objfile): Use get_current_remote_target.
6522 (remote_target::vcont_r_supported): New.
6523 (set_range_stepping): Use get_current_remote_target and
6524 remote_target::vcont_r_supported.
6525 (_initialize_remote): Don't allocate 'remote_state' and
6526 'stop_reply_queue' globals.
6527 * remote.h (struct remote_target): Forward declare.
6528 (getpkt, putpkt, remote_notif_get_pending_events): Add
6529 'remote_target' parameter.
6530
f5db4863
PA
65312018-05-22 Pedro Alves <palves@redhat.com>
6532
6533 * remote.c (vcont_builder): Now a class. Make all data members
6534 private.
6535 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6536 Declare methods.
6537 (vcont_builder_restart): Rename to ...
6538 (vcont_builder::restart): ... this.
6539 (vcont_builder_flush): Rename to ...
6540 (vcont_builder::flush): ... this.
6541 (vcont_builder_push_action): Rename to ...
6542 (vcont_builder::push_action): ... this.
6543 (remote_target::commit_resume): Adjust.
6544
cc0be08f
PA
65452018-05-22 Pedro Alves <palves@redhat.com>
6546
6547 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6548 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6549 (get_fixed_memory_packet_size): New.
6550 (get_memory_packet_size): Use it.
6551 (set_memory_packet_size): Don't override the config size with
6552 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6553 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6554 Don't refer to get_memory_packet_size if not connected to a remote
6555 target. Show "(default)" if configured size is 0.
6556
9607784a
PA
65572018-05-22 Pedro Alves <palves@redhat.com>
6558
6559 * remote.c (remote_target::mourn_inferior): Move
6560 discard_pending_stop_replies call here from ...
6561 (_initialize_remote): ... here.
6562
0e9a6b2f
PA
65632018-05-22 Pedro Alves <palves@redhat.com>
6564
6565 * remote.c (compare_section_command): Remove set_general_process
6566 call.
6567
43c3a0e4
PA
65682018-05-22 Pedro Alves <palves@redhat.com>
6569
6570 * remote.c (struct packet_reg, struct remote_arch_state):
6571 Move higher up in the file.
6572 (remote_state) <m_arch_states>: Store remote_arch_state values
6573 instead of remote_arch_state pointers.
6574 (remote_state::get_remote_arch_state): Adjust.
6575
9d6eea31
PA
65762018-05-22 Pedro Alves <palves@redhat.com>
6577
6578 * remote.c: Include <unordered_map>.
6579 (remote_state): Now a class.
6580 (remote_state) <get_remote_arch_state>: Declare method.
6581 <get_remote_arch_state>: New field.
6582 (remote_arch_state) <remote_arch_state>: Declare ctor.
6583 <regs>: Now a unique_ptr.
6584 (remote_gdbarch_data_handle): Delete.
6585 (get_remote_arch_state): Delete.
6586 (remote_state::get_remote_arch_state): New.
6587 (get_remote_state): Adjust to call remote_state's
6588 get_remote_arch_state method.
6589 (init_remote_state): Delete, bits factored out to ...
6590 (remote_arch_state::remote_arch_state): ... this new method.
6591 (get_remote_packet_size, get_memory_packet_size)
6592 (process_g_packet, remote_target::fetch_registers)
6593 (remote_target::prepare_to_store, store_registers_using_G)
6594 (remote_target::store_registers, remote_target::get_trace_status):
6595 Adjust to call remote_state's method.
6596 (_initialize_remote): Remove reference to
6597 remote_gdbarch_data_handle.
6598
dd194f6b
PA
65992018-05-22 Pedro Alves <palves@redhat.com>
6600
6601 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6602 pread>: New method declarations.
6603 (remote_target::open_1): Adjust.
6604 (readahead_cache_invalidate): Rename to ...
6605 (readahead_cache::invalidate): ... this, and adjust to be a class
6606 method.
6607 (readahead_cache_invalidate_fd): Rename to ...
6608 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6609 class method.
6610 (remote_hostio_pwrite): Adjust.
6611 (remote_hostio_pread_from_cache): Rename to ...
6612 (readahead_cache::pread): ... this, and adjust to be a class
6613 method.
6614 (remote_hostio_close): Adjust.
6615
440b7aec
PA
66162018-05-22 Pedro Alves <palves@redhat.com>
6617
6618 * remote.c (remote_hostio_close_cleanup): Delete.
6619 (class scoped_remote_fd): New.
6620 (remote_file_put, remote_file_get): Use it.
6621
de44f5a7
PA
66222018-05-22 Pedro Alves <palves@redhat.com>
6623
6624 (struct vCont_action_support): Use bool and initialize all fields.
6625 (struct readahead_cache): Initialize all fields.
6626 (remote_state): Use bool and initialize all fields.
6627 (remote_state::remote_state, remote_state::~remote_state): New.
6628 (new_remote_state): Delete.
6629 (_initialize_remote): Use new to allocate remote_state.
6630
b1b60145
PA
66312018-05-22 Pedro Alves <palves@redhat.com>
6632 張俊芝 <zjz@zjz.name>
6633
6634 PR gdb/22973
6635 * c-exp.y: Include "c-support.h".
6636 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6637 of tolower. Use c_ident_is_alpha to scan names.
6638 * c-lang.c: Include "c-support.h".
6639 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6640 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6641 * c-support.h: New file, with bits factored out from ...
6642 * cp-name-parser.y: ... this file.
6643 Include "c-support.h".
6644 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6645 c-support.h and renamed.
6646 (symbol_end, yylex): Adjust.
6647
0ec848ad
PFC
66482018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6649
6650 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6651 parameter type to CORE_ADDR.
6652 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6653 parameter type in declaration to CORE_ADDR.
6654 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6655 target_auxv_search to get AT_HWCAP and use the result to get the
6656 target description.
6657 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6658 to CORE_ADDR. Remove the cast of the return value to unsigned
6659 long. Fix error predicate of target_auxv_search.
6660 (ppc_linux_nat_target::read_description): Change the type of the
6661 hwcap variable to CORE_ADDR.
6662
0fb2aaa1
PFC
66632018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6664
6665 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6666 if the size of fpscr is larger than 32 bits.
6667
2c3305f6
PFC
66682018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6669
6670 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6671 (ppc32_linux_vsxregmap): New global.
6672 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6673 regcache_supply_regset, and regcache_collect_regset.
6674 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6675 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6676 (fetch_vsx_register, store_vsx_register): Remove.
6677 (fetch_vsx_registers): Add regno parameter. Get regset using
6678 ppc_linux_vsxregset. Use regset to supply registers.
6679 (store_vsx_registers): Add regno parameter. Get regset using
6680 ppc_linux_vsxregset. Use regset to collect registers.
6681 (fetch_register): Call fetch_vsx_registers instead of
6682 fetch_vsx_register.
6683 (store_register): Call store_vsx_registers instead of
6684 store_vsx_register.
6685 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6686 new regno parameter.
6687 (store_ppc_registers): Call store_vsx_registers with -1 for the
6688 new regno parameter.
6689 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6690 (ppc_collect_vsxregset): Remove.
6691
1d75a658
PFC
66922018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6693
6694 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6695 offset fields.
6696 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6697 for vector register offset fields.
6698 (ppc64_fbsd_reg_offsets): Likewise.
6699 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6700 to vector register offset fields.
6701 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6702 to vector register offset fields.
6703 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6704 vector register offset fields.
6705 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6706 initializers for vector register offset fields.
6707 (rs6000_aix64_reg_offsets): Likewise.
6708 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6709 (ppc_supply_vrregset): Remove.
6710 (ppc_collect_vrregset): Remove.
6711 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6712 (ppc_linux_vrregset) : New function.
6713 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6714 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6715 (ppc32_linux_vrregset): Remove.
6716 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6717 and use result instead of ppc32_linux_vrregset.
6718 (ppc32_linux_reg_offsets): Remove initializers for vector register
6719 offset fields.
6720 (ppc64_linux_reg_offsets): Likewise.
6721 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6722 * ppc-linux-nat.c: Include regset.h.
6723 (gdb_vrregset_t): Adjust comment to account for little-endian
6724 mode.
6725 (supply_vrregset, fill_vrregset): Remove.
6726 (fetch_altivec_register, store_altivec_register): Remove.
6727 (fetch_altivec_registers): Add regno parameter. Get regset using
6728 ppc_linux_vrregset. Use regset to supply registers.
6729 (store_altivec_registers): Add regno parameter. Get regset using
6730 ppc_linux_vrregset. Use regset to collect registers.
6731 (fetch_register): Call fetch_altivec_registers instead of
6732 fetch_altivec_register.
6733 (store_register): Call store_altivec_registers instead of
6734 store_altivec_register.
6735 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6736 the new regno parameter.
6737 (store_ppc_registers): Call store_altivec_registers with -1 for
6738 the new regno parameter.
6739
d078308a
PFC
67402018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6741
6742 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6743 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6744 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6745 (gdb_vrregset_t): Change array type size to
6746 PPC_LINUX_SIZEOF_VRREGSET.
6747 (gdb_vsxregset_t): Change array type size to
6748 PPC_LINUX_SIZEOF_VSXREGSET.
6749 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6750 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6751 PPC_LINUX_SIZEOF_VSXREGSET.
6752
2e077f5e
PFC
67532018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6754
6755 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6756 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6757 nat/ppc-linux.c.
6758 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6759 ppc_linux_target_wordsize with tid.
6760 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6761 wordsize with tid.
6762 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6763 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6764 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6765 tid parameter. Remove static specifier.
6766 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6767 (ppc_linux_target_wordsize): New declaration.
6768
bd64614e
PFC
67692018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6770
6771 * arch/ppc-linux-common.c: New file.
6772 * arch/ppc-linux-common.h: New file.
6773 * arch/ppc-linux-tdesc.h: New file.
6774 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6775 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6776 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6777 arch/ppc-linux-tdesc.h.
6778 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6779 arch/ppc-linux-tdesc.h.
6780 (ppc_linux_nat_target::read_description): Remove target
6781 description matching code. Fill a ppc_linux_features struct and
6782 call ppc_linux_match_description with it. Move comment about ISA
6783 2.05 to ppc-linux-common.c.
6784 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6785 arch/ppc-linux-tdesc.h.
6786 (ppc_linux_core_read_description): Remove target description
6787 matching code. Fill a ppc_linux_features struct and call
6788 ppc_linux_match_description with it.
6789 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6790 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6791 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6792 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6793 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6794 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6795 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6796 (tdesc_powerpc_e500l): Remove.
6797
241db429
JB
67982018-05-22 Joel Brobecker <brobecker@adacore.com>
6799
6800 * ada-lang.c (catch_assert_command): Pass empty string instead
6801 of NULL for excep_string argument.
6802
75d74cca
MR
68032018-05-22 Maciej W. Rozycki <macro@mips.com>
6804
6805 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6806 the width of the requested register exceeds the width of the
6807 `ptrace' data type.
6808
122b53ea
TT
68092018-05-21 Tom Tromey <tom@tromey.com>
6810
6811 * printcmd.c (output_command): Remove.
6812 (output_command_const): Rename to output_command.
6813 * valprint.h (output_command): Rename from output_command_const.
6814 * tracepoint.c (trace_dump_actions): Call output_command.
6815
bc18fbb5
TT
68162018-05-21 Tom Tromey <tom@tromey.com>
6817
6818 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6819 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6820 * ada-lang.h (create_ada_exception_catchpoint): Update.
6821 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6822 std::string.
6823 (create_excep_cond_exprs, ~ada_catchpoint)
6824 (should_stop_exception, print_one_exception)
6825 (print_mention_exception, print_recreate_exception): Update.
6826 (ada_get_next_arg): Remove.
6827 (catch_ada_exception_command_split): Use std::string. Change type
6828 of "excep_string", "cond_string".
6829 (catch_ada_exception_command): Update.
6830 (create_ada_exception_catchpoint): Change type of excep_string.
6831 (ada_exception_sal): Remove excep_string parameter.
6832 (~ada_catchpoint): Remove.
6833
790217f6
TT
68342018-05-21 Tom Tromey <tom@tromey.com>
6835
6836 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6837 cleanup.
6838
6f46ac85
TT
68392018-05-21 Tom Tromey <tom@tromey.com>
6840
6841 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6842 Return unique_xmalloc_ptr.
6843 (print_it_exception): Update.
6844
15b6611c
TT
68452018-05-21 Tom Tromey <tom@tromey.com>
6846
6847 * tracepoint.c (trace_dump_actions): Use std::string.
6848
c0c9f665
TT
68492018-05-21 Tom Tromey <tom@tromey.com>
6850
6851 * symfile.c (reread_symbols): Use std::string for original_name.
6852
22ca247e
TT
68532018-05-21 Tom Tromey <tom@tromey.com>
6854
6855 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6856 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6857 constructor.
6858
184cde75
SM
68592018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6860
6861 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6862 instance to...
6863 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6864 * objfiles.c (get_objfile_bfd_data): Allocate
6865 objfile_per_bfd_storage with obstack_new when allocating on
6866 obstack.
6867
e39db4db
SM
68682018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6869
6870 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6871 OBSTACK_ZALLOC.
6872 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6873 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6874 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6875 (add_pending): Likewise.
6876 (parse_symbol): Likewise.
6877 (parse_partial_symbols): Likewise.
6878 (psymtab_to_symtab_1): Likewise.
6879 (new_psymtab): Likewise.
6880 (elfmdebug_build_psymtabs): Likewise.
6881 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6882 * objfiles.c (get_objfile_bfd_data): Likewise.
6883 (objfile_register_static_link): Likewise.
6884 * psymtab.c (allocate_psymtab): Likewise.
6885 * stabsread.c (read_member_functions): Likewise.
6886 * xcoffread.c (xcoff_end_psymtab): Likewise.
6887
284a0e3c
SM
68882018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6889
6890 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6891 compiler supports std::is_trivially_constructible.
6892 * common/poison.h: Include obstack.h.
6893 (IsMallocable): Define to is_trivially_constructible if the
6894 compiler supports it, define to true_type otherwise.
6895 (xobnew): New.
6896 (XOBNEW): Redefine.
6897 (xobnewvec): New.
6898 (XOBNEWVEC): Redefine.
6899 * gdb_obstack.h (obstack_zalloc): New.
6900 (OBSTACK_ZALLOC): Redefine.
6901 (obstack_calloc): New.
6902 (OBSTACK_CALLOC): Redefine.
6903 (obstack_new): New.
6904 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6905 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6906 gdbarch.c.
6907 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6908 obstack_calloc/obstack_zalloc.
6909 (gdbarch_obstack_zalloc): Remove.
6910 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6911
59f66be3
PW
69122018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6913
6914 * stack.c (backtrace_command_1): Remove useless variable int i.
6915
50c65c2d
PW
69162018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6917
6918 * stack.c (print_frame_info): Fix comment.
6919
7ff8cb8c
TT
69202018-05-18 Tom Tromey <tom@tromey.com>
6921
6922 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6923 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6924 (~dwarf2_per_objfile): Update
6925 (dwarf2_get_dwz_file): Use new.
6926 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6927 unique_ptr.
6928
400174b1
TT
69292018-05-18 Tom Tromey <tom@tromey.com>
6930
6931 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6932 unique_ptr.
6933 * dwarf2read.c (struct dwp_file): Add constructor and
6934 initializers.
6935 (open_and_init_dwp_file): Return a unique_ptr.
6936 (dwarf2_per_objfile, create_dwp_hash_table)
6937 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6938 (lookup_dwo_unit_in_dwp): Update.
6939 (open_and_init_dwp_file, get_dwp_file): Update.
6940
3063847f
TT
69412018-05-18 Tom Tromey <tom@tromey.com>
6942
6943 * dwarf2read.c (dwarf2_per_objfile): Update.
6944 (struct mapped_index): Add initializers.
6945 (dwarf2_read_index): Use new.
6946 (dw2_symtab_iter_init): Update.
6947 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6948 unique_ptr.
6949
d3d02dee
SM
69502018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6951
6952 * dwarf2read.c (mapped_index) <total_size>: Remove.
6953
1d143c36
SM
69542018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6955
6956 * unittests/format_pieces-selftests.c (test_format_specifier):
6957 Add ARI comments.
6958
ce1e8424
TT
69592018-05-18 Tom Tromey <tom@tromey.com>
6960
6961 * c-typeprint.c (maybe_print_hole): New function.
6962 (c_print_type_struct_field_offset): Update.
6963 (c_type_print_base_struct_union): Call maybe_print_hole.
6964
ddfe970e
KS
69652018-05-17 Keith Seitz <keiths@redhat.com>
6966
6967 * breakpoint.c (build_bpstat_chain): New function, moved from
6968 bpstat_stop_status.
6969 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6970 If no stop chain is passed, call build_bpstat_chain to build it.
6971 * breakpoint.h (build_bpstat_chain): Declare.
6972 (bpstat_stop_status): Move documentation here from breakpoint.c.
6973 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6974 build the stop chain and pass it to skip_inline_frames.
6975 Pass this stop chain to bpstat_stop_status.
6976 * inline-frame.c: Include breakpoint.h.
6977 (stopped_by_user_bp_inline_frame): New function.
6978 (skip_inline_frames): Add parameter `stop_chain'.
6979 Move documention to inline-frame.h.
6980 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6981 whether the frame should be elided.
6982 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6983 Add moved documentation and update for new parameter.
6984
b17992c1
SM
69852018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6986
6987 PR cli/14975
6988 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6989 unittests/format_pieces-selftests.c.
6990 * common/format.h (format_piece) <operator==>: New.
6991 (format_pieces) <operator[]>: Remove.
6992 * common/format.c (format_pieces::format_pieces): Handle \e.
6993 * unittests/format_pieces-selftests.c: New.
6994
58f0c718
TT
69952018-05-17 Tom Tromey <tom@tromey.com>
6996
6997 PR symtab/23010:
6998 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6999 (dw2_instantiate_symtab): Add skip_partial parameter.
7000 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7001 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7002 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7003 (dw2_expand_symtabs_matching_one)
7004 (dw2_find_pc_sect_compunit_symtab)
7005 (dw2_debug_names_lookup_symbol)
7006 (dw2_debug_names_expand_symtabs_for_function): Update.
7007 (init_cutu_and_read_dies): Add skip_partial parameter.
7008 (process_psymtab_comp_unit, build_type_psymtabs_1)
7009 (process_skeletonless_type_unit, load_partial_comp_unit)
7010 (psymtab_to_symtab_1): Update.
7011 (load_full_comp_unit): Add skip_partial parameter.
7012 (process_imported_unit_die, dwarf2_read_addr_index)
7013 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7014 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7015 (read_signatured_type): Update.
7016
3e618834
SM
70172018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7018
7019 * value.c (release_value): Remove unused variable.
7020 (record_latest_value): Likewise.
7021 (access_value_history): Likewise.
7022 (preserve_values): Likewise.
7023
fe10fe31
TT
70242018-05-17 Tom Tromey <tom@tromey.com>
7025
7026 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7027 Initialize.
7028
1d761124
MR
70292018-05-16 Maciej W. Rozycki <macro@mips.com>
7030
7031 PR gdb/22286
7032 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7033 Also handle registers whose width is not a multiple of
7034 PTRACE_TYPE_RET.
7035 (linux_nat_trad_target::store_register): Likewise.
7036
06333fea
TT
70372018-05-16 Tom Tromey <tom@tromey.com>
7038
7039 * gdbcore.h (core_bfd): Redefine.
7040 * corelow.c (core_target::close): Update.
7041 (core_target_open): Update.
7042 * progspace.h (struct program_space) <cbfd>: Now a
7043 gdb_bfd_ref_ptr.
7044
921222e2
TT
70452018-05-16 Tom Tromey <tom@tromey.com>
7046
7047 PR cli/19551:
7048 * symfile-add-flags.h (enum symfile_add_flags)
7049 <SYMFILE_NOT_FILENAME>: New constant.
7050 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7051 objfile name from BFD.
7052 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7053 * minidebug.c (find_separate_debug_file_in_section): Put
7054 ".gnu_debugdata" into BFD's file name.
7055
3acb7083
SM
70562018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7057
7058 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7059 Remove.
7060
561a72d4
TC
70612018-05-15 Tamar Christina <tamar.christina@arm.com>
7062
7063 PR binutils/21446
7064 * aarch64-tdep.c (aarch64_analyze_prologue,
7065 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7066 Indicate not interested in errors.
7067
4e6ff0e1
MR
70682018-05-15 Maciej W. Rozycki <macro@mips.com>
7069
7070 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7071 Supply the MIPS_ZERO_REGNUM register.
7072
ea33cd92
MR
70732018-05-15 Maciej W. Rozycki <macro@mips.com>
7074
7075 * mips-tdep.c (mask_address_var): Make variable static.
7076
2d79090e
TT
70772018-05-14 Tom Tromey <tom@tromey.com>
7078
7079 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7080
cf4912ae
AB
70812018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7082
7083 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7084 FXSAVE_ADDR for the mxcsr register.
7085
67e6f569
MF
70862018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7087
7088 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7089
15244507
PA
70902018-05-11 Pedro Alves <palves@redhat.com>
7091
7092 * corelow.c (core_target) <core_target>: No longer inline.
7093 Initialize m_core_gdbarch, m_core_vec and build the section table
7094 here.
7095 <~core_target>: New.
7096 <core_gdbarch, get_core_register_section>: New methods.
7097 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7098 factored out from ...
7099 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7100 (core_ops): Delete.
7101 (sniff_core_bfd): Add gdbarch parameter.
7102 (core_close): Delete, merged into ...
7103 (core_target::close): ... here. Delete self.
7104 (core_close_cleanup): Delete.
7105 (core_target_open): Allocate a core_target on the heap. Use a
7106 unique_ptr instead of a cleanup. Bits moved into the core_target
7107 ctor. Adjust to use core_target methods instead of globals.
7108 (get_core_register_section): Rename to ...
7109 (core_target::get_core_register_section): ... this and adjust.
7110 (struct get_core_registers_cb_data): New.
7111 (get_core_registers_cb): Use it. Use bool.
7112 (core_target::fetch_registers, core_target::files_info)
7113 (core_target::xfer_partial, core_target::read_description)
7114 (core_target::pid_to, core_target::thread_name): Adjust to
7115 reference class fields instead of globals.
7116 * target.h (struct target_ops_deleter, target_ops_up): New.
7117
451953fa
PA
71182018-05-11 Pedro Alves <palves@redhat.com>
7119
7120 * corefile.c (core_file_command): Move to corelow.c.
7121 * corelow.c (the_core_target): Delete.
7122 (core_file_command): Moved from corefile.c. Check exec_bfd
7123 instead of the_core_target. Use target_detach instead of calling
7124 into the_core_target directly.
7125 (maybe_say_no_core_file_now): New.
7126 (core_target::detach): Use it.
7127 (_initialize_corelow): Remove references to the_core_target.
7128 * gdbcore.h (the_core_target): Delete.
7129
e540a5a2 71302018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 7131 Pedro Alves <palves@redhat.com>
e540a5a2
TT
7132
7133 * corefile.c (core_bfd): Remove.
7134 * gdbcore.h (core_bfd): Now a macro.
7135 * progspace.h (struct program_space) <cbfd>: New field.
7136
633cf254
TT
71372018-05-11 Tom Tromey <tom@tromey.com>
7138
7139 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7140 gdb::def_vector.
7141
1a34f210
TT
71422018-05-10 Tom Tromey <tom@tromey.com>
7143
7144 * configure: Rebuild.
7145 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7146
190852c8
JB
71472018-05-10 Joel Brobecker <brobecker@adacore.com>
7148
7149 PR server/23158:
7150 * regformats/regdat.sh: Adjust script, following the addition
7151 of the new expedite_regs parameter to init_target_desc.
7152
8727de56
OJ
71532018-05-10 Omair Javaid <omair.javaid@linaro.org>
7154
7155 PR gdb/23127
7156 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7157 set_gdbarch_significant_addr_bit.
7158 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7159 set_gdbarch_significant_addr_bit.
7160 * utils.c (address_significant): Update to sign extend addr.
7161
37d9e062
MF
71622018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7163
7164 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7165 (xtensa_linux_init_abi): Limit tdep->num_regs by
7166 tdep->num_nopriv_regs.
7167 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7168 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7169 not initialized.
7170
7402fbca
SM
71712018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7172
7173 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7174
8ee22052
AB
71752018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7176
7177 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7178 (I387_MXCSR_INIT_VAL): New constant.
7179 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7180 buffer if it was supplied by the inferior.
7181 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7182 (i387_xsave_get_clear_bv): New function.
7183 (i387_supply_xsave): Only read x87 control registers from the
7184 xsave buffer if the feature is enabled, and the state will have
7185 been written, otherwise, provide a suitable default.
7186 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7187 including x87 control registers. Update control registers if they
7188 have changed from the default value, and mark features as enabled
7189 as required.
7190 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7191
968ae51b
UW
71922018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7193
7194 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7195
aff689d3
TT
71962018-05-07 Tom Tromey <tom@tromey.com>
7197
7198 * configure: Rebuild.
7199 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7200
ce887586
TT
72012018-05-07 Tom Tromey <tom@tromey.com>
7202
7203 PR tdep/20362:
7204 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7205 bit. Use correct value for VDIV.
7206
85e26832
TT
72072018-05-04 Tom Tromey <tom@tromey.com>
7208
7209 * configure: Rebuild.
7210 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7211
449b1ac7
TT
72122018-05-04 Tom Tromey <tom@tromey.com>
7213
7214 * linux-record.c (record_linux_system_call) <case
7215 RECORD_SYS_RECVFROM>: Add "break".
7216
15c9ffd6
TT
72172018-05-04 Tom Tromey <tom@tromey.com>
7218
7219 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7220 Add missing "break".
7221 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7222 Add missing "break".
7223
e3829d13
TT
72242018-05-04 Tom Tromey <tom@tromey.com>
7225
7226 * rs6000-tdep.c (ppc_process_record_op4)
7227 (ppc_process_record_op63): Add fall-through comment.
7228
da0e1563
TT
72292018-05-04 Tom Tromey <tom@tromey.com>
7230
7231 * i386-tdep.c (i386_process_record): Add fall-through comment.
7232
0019cd49
TT
72332018-05-04 Tom Tromey <tom@tromey.com>
7234
7235 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7236 comment.
7237
565e0eda
TT
72382018-05-04 Tom Tromey <tom@tromey.com>
7239
7240 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7241 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7242 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7243 comment.
7244 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7245 comment.
7246 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7247 comment.
7248
621846f4
TT
72492018-05-04 Tom Tromey <tom@tromey.com>
7250
7251 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7252
86a73007
TT
72532018-05-04 Tom Tromey <tom@tromey.com>
7254
7255 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7256 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7257 * symfile.c (section_is_mapped): Fix fall-through comment.
7258 * stabsread.c (define_symbol, read_member_functions): Fix
7259 fall-through comment.
7260 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7261 comment.
7262 * remote.c (remote_wait_as): Fix fall-through comment.
7263 * p-exp.y (yylex): Fix fall-through comment.
7264 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7265 comment.
7266 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7267 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7268 * jv-exp.y (yylex): Fix fall-through comment.
7269 * go-exp.y (lex_one_token): Fix fall-through comment.
7270 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7271 fall-through comment.
7272 * f-exp.y (yylex): Fix fall-through comment.
7273 * dwarf2read.c (process_die): Fix fall-through comments.
7274 * dbxread.c (process_one_symbol): Fix fall-through comment.
7275 * d-exp.y (lex_one_token): Fix fall-through comment.
7276 * cp-name-parser.y (yylex): Fix fall-through comment.
7277 * coffread.c (coff_symtab_read): Fix fall-through comment.
7278 * c-exp.y (lex_one_token): Fix fall-through comment.
7279 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7280 comment.
7281 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7282 comment.
7283
56bcdbea
TT
72842018-05-04 Tom Tromey <tom@tromey.com>
7285
7286 PR python/22730:
7287 * NEWS: Mention gdb.execute change.
7288 * gdbcmd.h (execute_control_command): Don't declare.
7289 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7290 execute_control_commands, execute_control_commands_to_string.
7291 * cli/cli-script.h (execute_control_commands)
7292 (execute_control_commands_to_string): Declare.
7293 (execute_control_command): Add from_tty parameter.
7294 * cli/cli-script.c (execute_control_commands)
7295 (execute_control_commands_to_string): New functions.
7296 (execute_user_command): Use execute_control_commands.
7297 (execute_control_command_1): Add "from_tty" parameter. Update.
7298 (execute_control_command): Likewise.
7299
a913fffb
TT
73002018-05-04 Tom Tromey <tom@tromey.com>
7301
7302 PR python/22731:
7303 * NEWS: Mention that breakpoint commands are writable.
7304 * python/py-breakpoint.c (bppy_set_commands): New function.
7305 (breakpoint_object_getset) <"commands">: Use it.
7306
60b3cef2
TT
73072018-05-04 Tom Tromey <tom@tromey.com>
7308
7309 * tracepoint.c (actions_command): Update.
7310 * mi/mi-cmd-break.c (mi_command_line_array)
7311 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7312 (mi_read_next_line): Remove.
7313 (mi_cmd_break_commands): Update.
7314 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7315 function_view.
7316 * cli/cli-script.c (get_command_line): Update.
7317 (process_next_line): Use function_view. Constify.
7318 (recurse_read_control_structure, read_command_lines)
7319 (read_command_lines_1): Change argument types to function_view.
7320 (do_define_command, document_command): Update.
7321 * breakpoint.h (check_tracepoint_command): Don't declare.
7322 * breakpoint.c (check_tracepoint_command): Remove.
7323 (commands_command_1, create_tracepoint_from_upload): Update.
7324
7a2c85f2
TT
73252018-05-04 Tom Tromey <tom@tromey.com>
7326
7327 PR gdb/11750:
7328 * cli/cli-script.h (enum command_control_type) <define_control>:
7329 New constant.
7330 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7331 (build_command_line, execute_control_command_1)
7332 (process_next_line): Likewise.
7333 (do_define_command): New function, extracted from define_command.
7334 (define_command): Use it.
7335
295dc222
TT
73362018-05-04 Tom Tromey <tom@tromey.com>
7337
7338 * tracepoint.c (actions_command): Update.
7339 * cli/cli-script.h (read_command_lines): Update.
7340 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7341 (MAX_TMPBUF): Remove define.
7342 (define_command): Use string_printf.
7343 (document_command): Likewise.
7344 * breakpoint.c (commands_command_1): Update.
7345
1263a9d5
TT
73462018-05-04 Tom Tromey <tom@tromey.com>
7347
7348 * top.c (execute_command): Update.
7349 * cli/cli-script.h (print_command_lines): Now varargs.
7350 * cli/cli-script.c (print_command_lines): Now varargs.
7351 (execute_control_command_1) <case while_control, case if_control>:
7352 Update.
7353
12973681
TT
73542018-05-04 Tom Tromey <tom@tromey.com>
7355
7356 * tracepoint.c (all_tracepoint_actions): Rename from
7357 all_tracepoint_actions_and_cleanup. Change return type.
7358 (actions_command, encode_actions_1, encode_actions)
7359 (trace_dump_actions, tdump_command): Update.
7360 * remote.c (remote_download_command_source): Update.
7361 * python/python.c (gdbpy_eval_from_control_command)
7362 (python_command, python_interactive_command): Update.
7363 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7364 * guile/guile.c (guile_command)
7365 (gdbscm_eval_from_control_command, guile_command): Update.
7366 * compile/compile.c (compile_code_command)
7367 (compile_print_command, compile_to_object): Update.
7368 * cli/cli-script.h (struct command_lines_deleter): New.
7369 (counted_command_line): New typedef.
7370 (struct command_line): Add constructor, destructor.
7371 <body_list>: Remove.
7372 <body_list_0, body_list_1>: New members.
7373 (command_line_up): Remove typedef.
7374 (read_command_lines, read_command_lines_1, get_command_line):
7375 Update.
7376 (copy_command_lines): Don't declare.
7377 * cli/cli-script.c (build_command_line): Use "new".
7378 (get_command_line): Return counted_command_line.
7379 (print_command_lines, execute_user_command)
7380 (execute_control_command_1, while_command, if_command): Update.
7381 (realloc_body_list): Remove.
7382 (process_next_line, recurse_read_control_structure): Update.
7383 (read_command_lines, read_command_lines_1): Return counted_command_line.
7384 (free_command_lines): Use "delete".
7385 (copy_command_lines): Remove.
7386 (define_command, document_command, show_user_1): Update.
7387 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7388 a counted_command_line.
7389 * breakpoint.h (counted_command_line): Remove typedef.
7390 (breakpoint_set_commands): Update.
7391 * breakpoint.c (check_no_tracepoint_commands)
7392 (validate_commands_for_breakpoint): Update.
7393 (breakpoint_set_commands): Change commands to be a
7394 counted_command_line.
7395 (commands_command_1, update_dprintf_command_list)
7396 (create_tracepoint_from_upload): Update.
7397
e2fc72e2
TT
73982018-05-04 Tom Tromey <tom@tromey.com>
7399
7400 * cli/cli-decode.h (cmd_list_element): New constructor.
7401 (~cmd_list_element): New destructor.
7402 (struct cmd_list_element): Add initializers.
7403 * cli/cli-decode.c (do_add_cmd): Use "new".
7404 (delete_cmd): Use "delete".
7405
a3b60e45
JK
74062018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7407 Pedro Alves <palves@redhat.com>
7408
7409 PR breakpoints/19806 and support for PR external/20207.
7410 * NEWS: Mention Aarch64 watchpoint improvements.
7411 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7412 watchpoints and PR external/20207 watchpoints.
7413 * nat/aarch64-linux-hw-point.c
7414 (kernel_supports_any_contiguous_range): New.
7415 (aarch64_watchpoint_offset): New.
7416 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7417 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7418 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7419 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7420 next_addr_orig_p. Support PR external/20207 watchpoints.
7421 (aarch64_downgrade_regs): New.
7422 (aarch64_dr_state_insert_one_point): New parameters offset and
7423 addr_orig.
7424 (aarch64_dr_state_remove_one_point): Likewise.
7425 (aarch64_handle_breakpoint): Update caller.
7426 (aarch64_handle_aligned_watchpoint): Likewise.
7427 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7428 aligned_offset.
7429 (aarch64_linux_set_debug_regs): Remove const from state. Call
7430 aarch64_downgrade_regs.
7431 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7432 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7433 (DR_CONTROL_MASK): ... this.
7434 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7435 (unsigned int aarch64_watchpoint_offset): New prototype.
7436 (aarch64_linux_set_debug_regs): Remove const from state.
7437 * utils.c (align_up, align_down): Move to ...
7438 * common/common-utils.c (align_up, align_down): ... here.
7439 * utils.h (align_up, align_down): Move to ...
7440 * common/common-utils.h (align_up, align_down): ... here.
7441
05bc7456
JB
74422018-05-04 Joel Brobecker <brobecker@adacore.com>
7443
7444 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7445 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7446 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7447 Re-implement to match the ABI as summarized in GCC's
7448 gcc/config/sparc/sparc.c. All callers updated.
7449 (sparc32_store_arguments): Remove assertion.
7450
2f433492
TT
74512018-05-04 Tom Tromey <tom@tromey.com>
7452
7453 * printcmd.c: Don't include tui.h.
7454 (decode_format): Use skip_spaces.
7455
9be2ae8f
TT
74562018-05-04 Tom Tromey <tom@tromey.com>
7457
7458 PR gdb/22619:
7459 * printcmd.c (last_count): New global.
7460 (x_command): Use saved count when repeating.
7461
f0b3976b
TT
74622018-05-04 Tom Tromey <tom@tromey.com>
7463
7464 * nto-procfs.c (do_closedir_cleanup): Remove.
7465 (procfs_pidlist): Use gdb_dir_up.
7466 * procfs.c (do_closedir_cleanup): Remove.
7467 (proc_update_threads): Use gdb_dir_up.
7468 * common/filestuff.h (struct gdb_dir_deleter): New.
7469 (gdb_dir_up): New typedef.
7470
862d101a
TT
74712018-05-04 Tom Tromey <tom@tromey.com>
7472
7473 * ada-lang.c (print_mention_exception): Use std::string.
7474
cb7de75e
TT
74752018-05-04 Tom Tromey <tom@tromey.com>
7476
7477 * ada-lang.c (create_excep_cond_exprs): Update.
7478 (ada_exception_catchpoint_cond_string): Use std::string.
7479
49d83361
TT
74802018-05-04 Tom Tromey <tom@tromey.com>
7481
7482 * ada-lang.c (xget_renaming_scope): Return std::string.
7483 (old_renaming_is_invisible): Update.
7484
ade72a34
TT
74852018-05-04 Tom Tromey <tom@tromey.com>
7486
7487 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7488 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7489
2be4d7f0
UW
74902018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7491
7492 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7493
69b6ecb0
TT
74942018-05-04 Tom Tromey <tom@tromey.com>
7495
7496 * remote.c (remote_query_supported_append): Change type.
7497 (remote_check_symbols): Update.
7498
bf27f0e2
PP
74992018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7500
7501 PR gdb/11420
7502 * configure.ac: Prepend libpython.
7503 * python/python-config.py: Likewise.
7504 * configure: Regenerate.
7505
4ea17de8
SM
75062018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7507
7508 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7509
bd732259
PA
75102018-05-03 Pedro Alves <palves@redhat.com>
7511
7512 * s390-linux-nat.c
7513 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7514 override. Write 'true' instead of '1'.
7515 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7516 declaration.
7517
d9f719f1
PA
75182018-05-02 Pedro Alves <palves@redhat.com>
7519
7520 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7521 add_inf_child_target.
7522 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7523 add_inf_child_target.
7524 * aix-thread.c (aix_thread_target_info): New.
7525 (aix_thread_target) <shortname, longname, doc>: Delete.
7526 <info>: New.
7527 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7528 add_inf_child_target.
7529 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7530 add_inf_child_target.
7531 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7532 add_inf_child_target.
7533 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7534 add_inf_child_target.
7535 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7536 add_inf_child_target.
7537 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7538 add_inf_child_target.
7539 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7540 add_inf_child_target.
7541 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7542 add_inf_child_target.
7543 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7544 add_inf_child_target.
7545 * bfd-target.c (target_bfd_target_info): New.
7546 (target_bfd) <shortname, longname, doc>: Delete.
7547 <info>: New.
7548 * bsd-kvm.c (bsd_kvm_target_info): New.
7549 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7550 <info>: New.
7551 (bsd_kvm_target::open): Rename to ...
7552 (bsd_kvm_target_open): ... this. Adjust.
7553 * bsd-uthread.c (bsd_uthread_target_info): New.
7554 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7555 <info>: New.
7556 * corefile.c (core_file_command): Adjust.
7557 * corelow.c (core_target_info): New.
7558 (core_target) <shortname, longname, doc>: Delete.
7559 <info>: New.
7560 (core_target::open): Rename to ...
7561 (core_target_open): ... this. Adjust.
7562 * ctf.c (ctf_target_info): New.
7563 (ctf_target) <shortname, longname, doc>: Delete.
7564 <info>: New.
7565 (ctf_target::open): Rename to ...
7566 (ctf_target_open): ... this.
7567 (_initialize_ctf): Adjust.
7568 * exec.c (exec_target_info): New.
7569 (exec_target) <shortname, longname, doc>: Delete.
7570 <info>: New.
7571 (exec_target::open): Rename to ...
7572 (exec_target_open): ... this.
7573 * gdbcore.h (core_target_open): Declare.
7574 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7575 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7576 add_inf_child_target.
7577 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7578 add_inf_child_target.
7579 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7580 add_inf_child_target.
7581 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7582 add_inf_child_target.
7583 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7584 add_inf_child_target.
7585 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7586 add_inf_child_target.
7587 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7588 add_inf_child_target.
7589 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7590 add_inf_child_target.
7591 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7592 add_inf_child_target.
7593 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7594 add_inf_child_target.
7595 * inf-child.c (inf_child_target_info): New.
7596 (inf_child_target::info): New.
7597 (inf_child_open_target): Remove 'target' parameter. Use
7598 get_native_target instead.
7599 (inf_child_target::open): Delete.
7600 (add_inf_child_target): New.
7601 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7602 Delete.
7603 <info>: New.
7604 (add_inf_child_target): Declare.
7605 (inf_child_open_target): Declare.
7606 * linux-thread-db.c (thread_db_target_info): New.
7607 (thread_db_target) <shortname, longname, doc>: Delete.
7608 <info>: New.
7609 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7610 add_inf_child_target.
7611 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7612 add_inf_child_target.
7613 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7614 add_inf_child_target.
7615 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7616 add_inf_child_target.
7617 * make-target-delegates (print_class): Adjust.
7618 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7619 add_inf_child_target.
7620 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7621 add_inf_child_target.
7622 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7623 add_inf_child_target.
7624 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7625 add_inf_child_target.
7626 * nto-procfs.c (nto_native_target_info): New.
7627 (nto_procfs_target_native) <shortname, longname, doc>:
7628 Delete.
7629 <info>: New.
7630 (nto_procfs_target_info): New.
7631 (nto_procfs_target_procfs) <shortname, longname, doc>:
7632 Delete.
7633 <info>: New.
7634 (init_procfs_targets): Adjust.
7635 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7636 add_inf_child_target.
7637 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7638 add_inf_child_target.
7639 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7640 add_inf_child_target.
7641 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7642 add_inf_child_target.
7643 * ravenscar-thread.c (ravenscar_target_info): New.
7644 (ravenscar_thread_target) <shortname, longname, doc>:
7645 Delete.
7646 <info>: New.
7647 * record-btrace.c (record_btrace_target_info):
7648 (record_btrace_target) <shortname, longname, doc>: Delete.
7649 <info>: New.
7650 (record_btrace_target::open): Rename to ...
7651 (record_btrace_target_open): ... this. Adjust.
7652 * record-full.c (record_longname, record_doc): New.
7653 (record_full_base_target) <shortname, longname, doc>: Delete.
7654 <info>: New.
7655 (record_full_target_info): New.
7656 (record_full_target): <shortname>: Delete.
7657 <info>: New.
7658 (record_full_core_open_1, record_full_open_1): Update comments.
7659 (record_full_base_target::open): Rename to ...
7660 (record_full_open): ... this.
7661 (cmd_record_full_restore): Update.
7662 (_initialize_record_full): Update.
7663 * remote-sim.c (remote_sim_target_info): New.
7664 (gdbsim_target) <shortname, longname, doc>: Delete.
7665 <info>: New.
7666 (gdbsim_target::open): Rename to ...
7667 (gdbsim_target_open): ... this.
7668 (_initialize_remote_sim): Adjust.
7669 * remote.c (remote_doc): New.
7670 (remote_target_info): New.
7671 (remote_target) <shortname, longname, doc>: Delete.
7672 <info>: New.
7673 (extended_remote_target_info): New.
7674 (extended_remote_target) <shortname, longname, doc>: Delete.
7675 <info>: New.
7676 (remote_target::open_1): Make static. Adjust.
7677 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7678 * s390-linux-nat.c (_initialize_s390_nat): Use
7679 add_inf_child_target.
7680 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7681 add_inf_child_target.
7682 * sol-thread.c (thread_db_target_info): New.
7683 (sol_thread_target) <shortname, longname, doc>: Delete.
7684 <info>: New.
7685 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7686 add_inf_child_target.
7687 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7688 add_inf_child_target.
7689 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7690 add_inf_child_target.
7691 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7692 add_inf_child_target.
7693 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7694 add_inf_child_target.
7695 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7696 add_inf_child_target.
7697 * spu-linux-nat.c (_initialize_spu_nat): Use
7698 add_inf_child_target.
7699 * spu-multiarch.c (spu_multiarch_target_info): New.
7700 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7701 <info>: New.
7702 * target-delegates.c: Regenerate.
7703 * target.c: Include <unordered_map>.
7704 (target_ops_p): Delete.
7705 (DEF_VEC_P(target_ops_p)): Delete.
7706 (target_factories): New.
7707 (test_target_info): New.
7708 (test_target_ops::info): New.
7709 (open_target): Adjust to use target_factories.
7710 (add_target_with_completer): Rename to ...
7711 (add_target): ... this. Change prototype. Register target_info
7712 and open callback in target_factories. Register target_info in
7713 command context instead of target_ops.
7714 (add_target): Delete old implementation.
7715 (add_deprecated_target_alias): Change prototype. Adjust.
7716 (the_native_target): New.
7717 (set_native_target, get_native_target): New.
7718 (find_default_run_target): Use the_native_target.
7719 (find_attach_target, find_run_target): Simplify.
7720 (target_ops::open): Delete.
7721 (dummy_target_info): New.
7722 (dummy_target::shortname, dummy_target::longname)
7723 (dummy_target::doc): Delete.
7724 (dummy_target::info): New.
7725 (debug_target::shortname, debug_target::longname)
7726 (debug_target::doc): Delete.
7727 (debug_target::info): New.
7728 * target.h (struct target_info): New.
7729 (target_ops::~target_ops): Add comment.
7730 (target_ops::info): New.
7731 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7732 longer virtual. Implement in terms of target_info.
7733 (set_native_target, get_native_target): Declare.
7734 (target_open_ftype): New.
7735 (add_target, add_target_with_completer)
7736 (add_deprecated_target_alias): Change prototype.
7737 (test_target) <shortname, longname, doc>: Delete.
7738 <info>: New.
7739 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7740 add_inf_child_target.
7741 * tracefile-tfile.c (tfile_target_info): New.
7742 (tfile_target) <shortname, longname, doc>: Delete.
7743 <info>: New.
7744 (tfile_target::open): Rename to ...
7745 (tfile_target_open): ... this.
7746 (_initialize_tracefile_tfile): Adjust.
7747 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7748 add_inf_child_target.
7749 * windows-nat.c (_initialize_windows_nat): Use
7750 add_inf_child_target.
7751 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7752 add_inf_child_target.
7753
135340af
PA
77542018-05-02 Pedro Alves <palves@redhat.com>
7755
7756 * linux-nat.h (linux_nat_target) <low_new_thread,
7757 low_delete_thread, low_new_fork, low_forget_process,
7758 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7759 New virtual methods.
7760 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7761 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7762 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7763 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7764 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7765 Delete.
7766 * linux-fork.c (delete_fork): Adjust to call low method.
7767 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7768 (linux_nat_new_fork, linux_nat_forget_process_hook)
7769 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7770 (linux_nat_status_is_event):
7771 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7772 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7773 to call low method.
7774 (sigtrap_is_event): Rename to ...
7775 (linux_nat_target::low_status_is_event): ... this.
7776 (linux_nat_set_status_is_event): Delete.
7777 (save_stop_reason, linux_nat_wait_1)
7778 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7779 low methods.
7780 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7781 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7782 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7783 (linux_nat_set_prepare_to_resume): Delete.
7784 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7785 low virtual methods.
7786 * amd64-linux-nat.c: Likewise.
7787 * arm-linux-nat.c: Likewise.
7788 * i386-linux-nat.c: Likewise.
7789 * ia64-linux-nat.c: Likewise.
7790 * mips-linux-nat.c: Likewise.
7791 * ppc-linux-nat.c: Likewise.
7792 * s390-linux-nat.c: Likewise.
7793 * sparc64-linux-nat.c: Likewise.
7794 * x86-linux-nat.c: Likewise.
7795 * x86-linux-nat.h: Include "nat/x86-linux.h".
7796 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7797 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7798 Override methods.
7799
57810aa7
PA
78002018-05-02 Pedro Alves <palves@redhat.com>
7801
7802 * target.h (target_ops)
7803 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7804 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7805 stopped_by_watchpoint, have_continuable_watchpoint,
7806 stopped_data_address, watchpoint_addr_within_range,
7807 can_accel_watchpoint_condition, can_run, thread_alive,
7808 has_all_memory, has_memory, has_stack, has_registers,
7809 has_execution, can_async_p, is_async_p, supports_non_stop,
7810 always_non_stop_p, can_execute_reverse, supports_multi_process,
7811 supports_enable_disable_tracepoint,
7812 supports_disable_randomization, supports_string_tracing,
7813 supports_evaluation_of_breakpoint_conditions,
7814 can_run_breakpoint_commands, filesystem_is_local,
7815 can_download_tracepoint, get_trace_state_variable_value,
7816 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7817 record_is_replaying, record_will_replay,
7818 augmented_libraries_svr4_read>: Adjust to return bool.
7819 * aarch64-linux-nat.c: All implementations adjusted.
7820 * aix-thread.c: All implementations adjusted.
7821 * arm-linux-nat.c: All implementations adjusted.
7822 * breakpoint.c: All implementations adjusted.
7823 * bsd-kvm.c: All implementations adjusted.
7824 * bsd-uthread.c: All implementations adjusted.
7825 * corelow.c: All implementations adjusted.
7826 * ctf.c: All implementations adjusted.
7827 * darwin-nat.c: All implementations adjusted.
7828 * darwin-nat.h: All implementations adjusted.
7829 * exec.c: All implementations adjusted.
7830 * fbsd-nat.c: All implementations adjusted.
7831 * fbsd-nat.h: All implementations adjusted.
7832 * gnu-nat.c: All implementations adjusted.
7833 * gnu-nat.h: All implementations adjusted.
7834 * go32-nat.c: All implementations adjusted.
7835 * ia64-linux-nat.c: All implementations adjusted.
7836 * inf-child.c: All implementations adjusted.
7837 * inf-child.h: All implementations adjusted.
7838 * inf-ptrace.c: All implementations adjusted.
7839 * inf-ptrace.h: All implementations adjusted.
7840 * linux-nat.c: All implementations adjusted.
7841 * linux-nat.h: All implementations adjusted.
7842 * mips-linux-nat.c: All implementations adjusted.
7843 * nto-procfs.c: All implementations adjusted.
7844 * ppc-linux-nat.c: All implementations adjusted.
7845 * procfs.c: All implementations adjusted.
7846 * ravenscar-thread.c: All implementations adjusted.
7847 * record-btrace.c: All implementations adjusted.
7848 * record-full.c: All implementations adjusted.
7849 * remote-sim.c: All implementations adjusted.
7850 * remote.c: All implementations adjusted.
7851 * s390-linux-nat.c: All implementations adjusted.
7852 * sol-thread.c: All implementations adjusted.
7853 * spu-multiarch.c: All implementations adjusted.
7854 * target-delegates.c: All implementations adjusted.
7855 * target.c: All implementations adjusted.
7856 * target.h: All implementations adjusted.
7857 * tracefile-tfile.c: All implementations adjusted.
7858 * tracefile.c: All implementations adjusted.
7859 * tracefile.h: All implementations adjusted.
7860 * windows-nat.c: All implementations adjusted.
7861 * x86-linux-nat.h: All implementations adjusted.
7862 * x86-nat.h: All implementations adjusted.
7863
ad6a4e2d
PA
78642018-05-02 Pedro Alves <palves@redhat.com>
7865
7866 * make-target-delegates (scan_target_h): Don't trim lines here.
7867 Replace sequences of tabs and/or whitespace with a single
7868 whitespace.
7869 (top level, parsing methods): Trim each line before processing it
7870 here.
7871
f6ac5f3d
PA
78722018-05-02 Pedro Alves <palves@redhat.com>
7873 John Baldwin <jhb@freebsd.org>
7874
7875 * target.h (enum strata) <debug_stratum>: New.
7876 (struct target_ops) <all delegation methods>: Replace by C++
7877 virtual methods, and drop "to_" prefix. All references updated
7878 throughout.
7879 <to_shortname, to_longname, to_doc, to_data,
7880 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7881 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7882 virtual methods. All references updated throughout.
7883 <can_attach, supports_terminal_ours, can_create_inferior,
7884 get_thread_control_capabilities, attach_no_wait>: New
7885 virtual methods.
7886 <insert_breakpoint, remove_breakpoint>: Now
7887 TARGET_DEFAULT_NORETURN methods.
7888 <info_proc>: Now returns bool.
7889 <to_magic>: Delete.
7890 (OPS_MAGIC): Delete.
7891 (current_target): Delete. All references replaced by references
7892 to ...
7893 (target_stack): ... this. New.
7894 (target_shortname, target_longname): Adjust.
7895 (target_can_run): Now a function declaration.
7896 (default_child_has_all_memory, default_child_has_memory)
7897 (default_child_has_stack, default_child_has_registers)
7898 (default_child_has_execution): Remove target_ops parameter.
7899 (complete_target_initialization): Delete.
7900 (memory_breakpoint_target): New template class.
7901 (test_target_ops): Refactor as a C++ class with virtual methods.
7902 * make-target-delegates (NAME_PART): Tighten.
7903 (POINTER_PART, CP_SYMBOL): New.
7904 (SIMPLE_RETURN_PART): Reimplement.
7905 (VEC_RETURN_PART): Expect less.
7906 (RETURN_PART, VIRTUAL_PART): New.
7907 (METHOD): Adjust to C++ virtual methods.
7908 (scan_target_h): Remove reference to C99.
7909 (dname): Output "target_ops::" prefix.
7910 (write_function_header): Adjust to output a C++ class method.
7911 (write_declaration): New.
7912 (write_delegator): Adjust to output a C++ class method.
7913 (tdname): Output "dummy_target::" prefix.
7914 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7915 method.
7916 (tdefault_names, debug_names): Delete.
7917 (return_types, tdefaults, styles, argtypes_array): New.
7918 (top level): All methods are delegators.
7919 (print_class): New.
7920 (top level): Print dummy_target and debug_target classes.
7921 * target-delegates.c: Regenerate.
7922 * target-debug.h (target_debug_print_enum_info_proc_what)
7923 (target_debug_print_thread_control_capabilities)
7924 (target_debug_print_thread_info_p): New.
7925 * target.c (dummy_target): Delete.
7926 (the_dummy_target, the_debug_target): New.
7927 (target_stack): Now extern.
7928 (set_targetdebug): Push/unpush debug target.
7929 (default_child_has_all_memory, default_child_has_memory)
7930 (default_child_has_stack, default_child_has_registers)
7931 (default_child_has_execution): Remove target_ops parameter.
7932 (complete_target_initialization): Delete.
7933 (add_target_with_completer): No longer call
7934 complete_target_initialization.
7935 (target_supports_terminal_ours): Use regular delegation.
7936 (update_current_target): Delete.
7937 (push_target): No longer check magic number. Don't call
7938 update_current_target.
7939 (unpush_target): Don't call update_current_target.
7940 (target_is_pushed): No longer check magic number.
7941 (target_require_runnable): Skip for all stratums over
7942 process_stratum.
7943 (target_ops::info_proc): New.
7944 (target_info_proc): Use find_target_at and
7945 find_default_run_target.
7946 (target_supports_disable_randomization): Use regular delegation.
7947 (target_get_osdata): Use find_target_at.
7948 (target_ops::open, target_ops::close, target_ops::can_attach)
7949 (target_ops::attach, target_ops::can_create_inferior)
7950 (target_ops::create_inferior, target_ops::can_run)
7951 (target_can_run): New.
7952 (default_fileio_target): Use regular delegation.
7953 (target_ops::fileio_open, target_ops::fileio_pwrite)
7954 (target_ops::fileio_pread, target_ops::fileio_fstat)
7955 (target_ops::fileio_close, target_ops::fileio_unlink)
7956 (target_ops::fileio_readlink): New.
7957 (target_fileio_open_1, target_fileio_unlink)
7958 (target_fileio_readlink): Always call the target method. Handle
7959 FILEIO_ENOSYS.
7960 (return_zero, return_zero_has_execution): Delete.
7961 (init_dummy_target): Delete.
7962 (dummy_target::dummy_target, dummy_target::shortname)
7963 (dummy_target::longname, dummy_target::doc)
7964 (debug_target::debug_target, debug_target::shortname)
7965 (debug_target::longname, debug_target::doc): New.
7966 (target_supports_delete_record): Use regular delegation.
7967 (setup_target_debug): Delete.
7968 (maintenance_print_target_stack): Skip debug_stratum.
7969 (initialize_targets): Instantiate the_dummy_target and
7970 the_debug_target.
7971 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7972 use target_stack.
7973 (target_auxv_search, fprint_target_auxv): Adjust.
7974 (info_auxv_command): Adjust to use target_stack.
7975 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7976 * exceptions.c (print_flush): Handle a NULL target_stack.
7977 * regcache.c (target_ops_no_register): Refactor as class with
7978 virtual methods.
7979
7980 * exec.c (exec_target): New class.
7981 (exec_ops): Now an exec_target.
7982 (exec_open, exec_close_1, exec_get_section_table)
7983 (exec_xfer_partial, exec_files_info, exec_has_memory)
7984 (exec_make_note_section): Refactor as exec_target methods.
7985 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7986 Delete.
7987 (exec_target::find_memory_regions): New.
7988 (_initialize_exec): Don't call init_exec_ops.
7989 * gdbcore.h (exec_file_clear): Delete.
7990
7991 * corefile.c (core_target): Delete.
7992 (core_file_command): Adjust.
7993 * corelow.c (core_target): New class.
7994 (the_core_target): New.
7995 (core_close): Remove target_ops parameter.
7996 (core_close_cleanup): Adjust.
7997 (core_target::close): New.
7998 (core_open, core_detach, get_core_registers, core_files_info)
7999 (core_xfer_partial, core_thread_alive, core_read_description)
8000 (core_pid_to_str, core_thread_name, core_has_memory)
8001 (core_has_stack, core_has_registers, core_info_proc): Rework as
8002 core_target methods.
8003 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8004 (_initialize_corelow): Initialize the_core_target.
8005 * gdbcore.h (core_target): Delete.
8006 (the_core_target): New.
8007
8008 * ctf.c: (ctf_target): New class.
8009 (ctf_ops): Now a ctf_target.
8010 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8011 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8012 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8013 methods.
8014 (init_ctf_ops): Delete.
8015 (_initialize_ctf): Don't call it.
8016 * tracefile-tfile.c (tfile_target): New class.
8017 (tfile_ops): Now a tfile_target.
8018 (tfile_open, tfile_close, tfile_files_info)
8019 (tfile_get_tracepoint_status, tfile_trace_find)
8020 (tfile_fetch_registers, tfile_xfer_partial)
8021 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8022 Refactor as tfile_target methods.
8023 (tfile_xfer_partial_features): Remove target_ops parameter.
8024 (init_tfile_ops): Delete.
8025 (_initialize_tracefile_tfile): Don't call it.
8026 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8027 (tracefile_has_stack, tracefile_has_registers)
8028 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8029 tracefile_target methods.
8030 (init_tracefile_ops): Delete.
8031 (tracefile_target::tracefile_target): New.
8032 * tracefile.h: Include "target.h".
8033 (tracefile_target): New class.
8034 (init_tracefile_ops): Delete.
8035
8036 * spu-multiarch.c (spu_multiarch_target): New class.
8037 (spu_ops): Now a spu_multiarch_target.
8038 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8039 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8040 (spu_search_memory, spu_mourn_inferior): Refactor as
8041 spu_multiarch_target methods.
8042 (init_spu_ops): Delete.
8043 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8044 complete_target_initialization.
8045
8046 * ravenscar-thread.c (ravenscar_thread_target): New class.
8047 (ravenscar_ops): Now a ravenscar_thread_target.
8048 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8049 (ravenscar_thread_alive, ravenscar_pid_to_str)
8050 (ravenscar_fetch_registers, ravenscar_store_registers)
8051 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8052 (ravenscar_stopped_by_hw_breakpoint)
8053 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8054 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8055 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8056 methods.
8057 (init_ravenscar_thread_ops): Delete.
8058 (_initialize_ravenscar): Remove references to
8059 init_ravenscar_thread_ops and complete_target_initialization.
8060
8061 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8062 (bsd_uthread_target): New class.
8063 (bsd_uthread_ops): Now a bsd_uthread_target.
8064 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8065 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8066 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8067 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8068 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8069 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8070 (bsd_uthread_target): Delete function.
8071 (_initialize_bsd_uthread): Remove reference to
8072 complete_target_initialization.
8073
8074 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8075 (target_bfd): ... this new class.
8076 (target_bfd_xfer_partial, target_bfd_get_section_table)
8077 (target_bfd_close): Refactor as target_bfd methods.
8078 (target_bfd::~target_bfd): New.
8079 (target_bfd_reopen): Adjust.
8080 (target_bfd::close): New.
8081
8082 * record-btrace.c (record_btrace_target): New class.
8083 (record_btrace_ops): Now a record_btrace_target.
8084 (record_btrace_open, record_btrace_stop_recording)
8085 (record_btrace_disconnect, record_btrace_close)
8086 (record_btrace_async, record_btrace_info)
8087 (record_btrace_insn_history, record_btrace_insn_history_range)
8088 (record_btrace_insn_history_from, record_btrace_call_history)
8089 (record_btrace_call_history_range)
8090 (record_btrace_call_history_from, record_btrace_record_method)
8091 (record_btrace_is_replaying, record_btrace_will_replay)
8092 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8093 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8094 (record_btrace_store_registers, record_btrace_prepare_to_store)
8095 (record_btrace_to_get_unwinder)
8096 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8097 (record_btrace_commit_resume, record_btrace_wait)
8098 (record_btrace_stop, record_btrace_can_execute_reverse)
8099 (record_btrace_stopped_by_sw_breakpoint)
8100 (record_btrace_supports_stopped_by_sw_breakpoint)
8101 (record_btrace_stopped_by_hw_breakpoint)
8102 (record_btrace_supports_stopped_by_hw_breakpoint)
8103 (record_btrace_update_thread_list, record_btrace_thread_alive)
8104 (record_btrace_goto_begin, record_btrace_goto_end)
8105 (record_btrace_goto, record_btrace_stop_replaying_all)
8106 (record_btrace_execution_direction)
8107 (record_btrace_prepare_to_generate_core)
8108 (record_btrace_done_generating_core): Refactor as
8109 record_btrace_target methods.
8110 (init_record_btrace_ops): Delete.
8111 (_initialize_record_btrace): Remove reference to
8112 init_record_btrace_ops.
8113 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8114 the execution_direction global.
8115 (record_full_base_target, record_full_target)
8116 (record_full_core_target): New classes.
8117 (record_full_ops): Now a record_full_target.
8118 (record_full_core_ops): Now a record_full_core_target.
8119 (record_full_target::detach, record_full_target::disconnect)
8120 (record_full_core_target::disconnect)
8121 (record_full_target::mourn_inferior, record_full_target::kill):
8122 New.
8123 (record_full_open, record_full_close, record_full_async): Refactor
8124 as methods of the record_full_base_target class.
8125 (record_full_resume, record_full_commit_resume): Refactor
8126 as methods of the record_full_target class.
8127 (record_full_wait, record_full_stopped_by_watchpoint)
8128 (record_full_stopped_data_address)
8129 (record_full_stopped_by_sw_breakpoint)
8130 (record_full_supports_stopped_by_sw_breakpoint)
8131 (record_full_stopped_by_hw_breakpoint)
8132 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8133 methods of the record_full_base_target class.
8134 (record_full_store_registers, record_full_xfer_partial)
8135 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8136 Refactor as methods of the record_full_target class.
8137 (record_full_can_execute_reverse, record_full_get_bookmark)
8138 (record_full_goto_bookmark, record_full_execution_direction)
8139 (record_full_record_method, record_full_info, record_full_delete)
8140 (record_full_is_replaying, record_full_will_replay)
8141 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8142 (record_full_stop_replaying): Refactor as methods of the
8143 record_full_base_target class.
8144 (record_full_core_resume, record_full_core_kill)
8145 (record_full_core_fetch_registers)
8146 (record_full_core_prepare_to_store)
8147 (record_full_core_store_registers, record_full_core_xfer_partial)
8148 (record_full_core_insert_breakpoint)
8149 (record_full_core_remove_breakpoint)
8150 (record_full_core_has_execution): Refactor
8151 as methods of the record_full_core_target class.
8152 (record_full_base_target::supports_delete_record): New.
8153 (init_record_full_ops): Delete.
8154 (init_record_full_core_ops): Delete.
8155 (record_full_save): Refactor as method of the
8156 record_full_base_target class.
8157 (_initialize_record_full): Remove references to
8158 init_record_full_ops and init_record_full_core_ops.
8159
8160 * remote.c (remote_target, extended_remote_target): New classes.
8161 (remote_ops): Now a remote_target.
8162 (extended_remote_ops): Now an extended_remote_target.
8163 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8164 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8165 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8166 (remote_pass_signals, remote_set_syscall_catchpoint)
8167 (remote_program_signals, )
8168 (remote_thread_always_alive): Remove target_ops parameter.
8169 (remote_thread_alive, remote_thread_name)
8170 (remote_update_thread_list, remote_threads_extra_info)
8171 (remote_static_tracepoint_marker_at)
8172 (remote_static_tracepoint_markers_by_strid)
8173 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8174 (remote_open): Refactor as methods of remote_target.
8175 (extended_remote_open, extended_remote_detach)
8176 (extended_remote_attach, extended_remote_post_attach):
8177 (extended_remote_supports_disable_randomization)
8178 (extended_remote_create_inferior): : Refactor as method of
8179 extended_remote_target.
8180 (remote_set_permissions, remote_open_1, remote_detach)
8181 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8182 (remote_resume, remote_commit_resume, remote_stop)
8183 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8184 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8185 (remote_prepare_to_store, remote_store_registers)
8186 (remote_flash_erase, remote_flash_done, remote_files_info)
8187 (remote_kill, remote_mourn, remote_insert_breakpoint)
8188 (remote_remove_breakpoint, remote_insert_watchpoint)
8189 (remote_watchpoint_addr_within_range)
8190 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8191 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8192 (remote_supports_stopped_by_sw_breakpoint)
8193 (remote_stopped_by_hw_breakpoint)
8194 (remote_supports_stopped_by_hw_breakpoint)
8195 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8196 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8197 (remote_verify_memory): Refactor as methods of remote_target.
8198 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8199 parameter.
8200 (remote_xfer_partial, remote_get_memory_xfer_limit)
8201 (remote_search_memory, remote_rcmd, remote_memory_map)
8202 (remote_pid_to_str, remote_get_thread_local_address)
8203 (remote_get_tib_address, remote_read_description): Refactor as
8204 methods of remote_target.
8205 (remote_target::fileio_open, remote_target::fileio_pwrite)
8206 (remote_target::fileio_pread, remote_target::fileio_close): New.
8207 (remote_hostio_readlink, remote_hostio_fstat)
8208 (remote_filesystem_is_local, remote_can_execute_reverse)
8209 (remote_supports_non_stop, remote_supports_disable_randomization)
8210 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8211 (remote_supports_enable_disable_tracepoint)
8212 (remote_supports_string_tracing)
8213 (remote_can_run_breakpoint_commands, remote_trace_init)
8214 (remote_download_tracepoint, remote_can_download_tracepoint)
8215 (remote_download_trace_state_variable, remote_enable_tracepoint)
8216 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8217 (remote_trace_start, remote_get_trace_status)
8218 (remote_get_tracepoint_status, remote_trace_stop)
8219 (remote_trace_find, remote_get_trace_state_variable_value)
8220 (remote_save_trace_data, remote_get_raw_trace_data)
8221 (remote_set_disconnected_tracing, remote_core_of_thread)
8222 (remote_set_circular_trace_buffer, remote_traceframe_info)
8223 (remote_get_min_fast_tracepoint_insn_len)
8224 (remote_set_trace_buffer_size, remote_set_trace_notes)
8225 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8226 (remote_disable_btrace, remote_teardown_btrace)
8227 (remote_read_btrace, remote_btrace_conf)
8228 (remote_augmented_libraries_svr4_read, remote_load)
8229 (remote_pid_to_exec_file, remote_can_do_single_step)
8230 (remote_execution_direction, remote_thread_handle_to_thread_info):
8231 Refactor as methods of remote_target.
8232 (init_remote_ops, init_extended_remote_ops): Delete.
8233 (remote_can_async_p, remote_is_async_p, remote_async)
8234 (remote_thread_events, remote_upload_tracepoints)
8235 (remote_upload_trace_state_variables): Refactor as methods of
8236 remote_target.
8237 (_initialize_remote): Remove references to init_remote_ops and
8238 init_extended_remote_ops.
8239
8240 * remote-sim.c (gdbsim_target): New class.
8241 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8242 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8243 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8244 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8245 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8246 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8247 Refactor as methods of gdbsim_target.
8248 (gdbsim_ops): Now a gdbsim_target.
8249 (init_gdbsim_ops): Delete.
8250 (gdbsim_cntrl_c): Adjust.
8251 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8252
8253 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8254 (the_amd64_linux_nat_target): New.
8255 (amd64_linux_fetch_inferior_registers)
8256 (amd64_linux_store_inferior_registers): Refactor as methods of
8257 amd64_linux_nat_target.
8258 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8259 * i386-linux-nat.c: Don't include "linux-nat.h".
8260 (i386_linux_nat_target): New class.
8261 (the_i386_linux_nat_target): New.
8262 (i386_linux_fetch_inferior_registers)
8263 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8264 as methods of i386_linux_nat_target.
8265 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8266 * inf-child.c (inf_child_ops): Delete.
8267 (inf_child_fetch_inferior_registers)
8268 (inf_child_store_inferior_registers): Delete.
8269 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8270 methods of inf_child_target.
8271 (inf_child_target::supports_terminal_ours)
8272 (inf_child_target::terminal_init)
8273 (inf_child_target::terminal_inferior)
8274 (inf_child_target::terminal_ours_for_output)
8275 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8276 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8277 New.
8278 (inf_child_open, inf_child_disconnect, inf_child_close)
8279 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8280 (inf_child_post_startup_inferior, inf_child_can_run)
8281 (inf_child_pid_to_exec_file): Refactor as methods of
8282 inf_child_target.
8283 (inf_child_follow_fork): Delete.
8284 (inf_child_target::can_create_inferior)
8285 (inf_child_target::can_attach): New.
8286 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8287 (inf_child_target::has_stack, inf_child_target::has_registers)
8288 (inf_child_target::has_execution): New.
8289 (inf_child_fileio_open, inf_child_fileio_pwrite)
8290 (inf_child_fileio_pread, inf_child_fileio_fstat)
8291 (inf_child_fileio_close, inf_child_fileio_unlink)
8292 (inf_child_fileio_readlink, inf_child_use_agent)
8293 (inf_child_can_use_agent): Refactor as methods of
8294 inf_child_target.
8295 (return_zero, inf_child_target): Delete.
8296 (inf_child_target::inf_child_target): New.
8297 * inf-child.h: Include "target.h".
8298 (inf_child_target): Delete function prototype.
8299 (inf_child_target): New class.
8300 (inf_child_open_target, inf_child_mourn_inferior)
8301 (inf_child_maybe_unpush_target): Delete.
8302 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8303 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8304 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8305 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8306 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8307 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8308 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8309 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8310 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8311 methods of inf_ptrace_target.
8312 (inf_ptrace_target): Delete function.
8313 * inf-ptrace.h: Include "inf-child.h".
8314 (inf_ptrace_target): Delete function declaration.
8315 (inf_ptrace_target): New class.
8316 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8317 * linux-nat.c (linux_target): New.
8318 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8319 (linux_nat_target::~linux_nat_target): New.
8320 (linux_child_post_attach, linux_child_post_startup_inferior)
8321 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8322 (linux_child_remove_fork_catchpoint)
8323 (linux_child_insert_vfork_catchpoint)
8324 (linux_child_remove_vfork_catchpoint)
8325 (linux_child_insert_exec_catchpoint)
8326 (linux_child_remove_exec_catchpoint)
8327 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8328 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8329 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8330 (linux_nat_stopped_data_address)
8331 (linux_nat_stopped_by_sw_breakpoint)
8332 (linux_nat_supports_stopped_by_sw_breakpoint)
8333 (linux_nat_stopped_by_hw_breakpoint)
8334 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8335 (linux_nat_kill, linux_nat_mourn_inferior)
8336 (linux_nat_xfer_partial, linux_nat_thread_alive)
8337 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8338 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8339 (linux_child_static_tracepoint_markers_by_strid)
8340 (linux_nat_is_async_p, linux_nat_can_async_p)
8341 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8342 (linux_nat_supports_multi_process)
8343 (linux_nat_supports_disable_randomization, linux_nat_async)
8344 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8345 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8346 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8347 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8348 methods of linux_nat_target.
8349 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8350 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8351 parameter.
8352 (check_stopped_by_watchpoint): Adjust.
8353 (linux_xfer_partial): Delete.
8354 (linux_target_install_ops, linux_target, linux_nat_add_target):
8355 Delete.
8356 (linux_nat_target::linux_nat_target): New.
8357 * linux-nat.h: Include "inf-ptrace.h".
8358 (linux_nat_target): New.
8359 (linux_target, linux_target_install_ops, linux_nat_add_target):
8360 Delete function declarations.
8361 (linux_target): Declare global.
8362 * linux-thread-db.c (thread_db_target): New.
8363 (thread_db_target::thread_db_target): New.
8364 (thread_db_ops): Delete.
8365 (the_thread_db_target): New.
8366 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8367 (thread_db_update_thread_list, thread_db_pid_to_str)
8368 (thread_db_extra_thread_info)
8369 (thread_db_thread_handle_to_thread_info)
8370 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8371 (thread_db_resume): Refactor as methods of thread_db_target.
8372 (init_thread_db_ops): Delete.
8373 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8374 * x86-linux-nat.c: Don't include "linux-nat.h".
8375 (super_post_startup_inferior): Delete.
8376 (x86_linux_nat_target::~x86_linux_nat_target): New.
8377 (x86_linux_child_post_startup_inferior)
8378 (x86_linux_read_description, x86_linux_enable_btrace)
8379 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8380 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8381 methods of x86_linux_nat_target.
8382 (x86_linux_create_target): Delete. Bits folded ...
8383 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8384 pointer.
8385 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8386 (x86_linux_nat_target): New class.
8387 (x86_linux_create_target): Delete.
8388 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8389 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8390 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8391 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8392 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8393 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8394 make extern.
8395 (x86_use_watchpoints): Delete.
8396 * x86-nat.h: Include "breakpoint.h" and "target.h".
8397 (x86_use_watchpoints): Delete.
8398 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8399 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8400 (x86_insert_watchpoint, x86_remove_watchpoint)
8401 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8402 (x86_stopped_by_hw_breakpoint): New declarations.
8403 (x86_nat_target): New template class.
8404
8405 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8406 (the_ppc_linux_nat_target): New.
8407 (ppc_linux_fetch_inferior_registers)
8408 (ppc_linux_can_use_hw_breakpoint)
8409 (ppc_linux_region_ok_for_hw_watchpoint)
8410 (ppc_linux_ranged_break_num_registers)
8411 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8412 (ppc_linux_insert_mask_watchpoint)
8413 (ppc_linux_remove_mask_watchpoint)
8414 (ppc_linux_can_accel_watchpoint_condition)
8415 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8416 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8417 (ppc_linux_watchpoint_addr_within_range)
8418 (ppc_linux_masked_watch_num_registers)
8419 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8420 (ppc_linux_read_description): Refactor as methods of
8421 ppc_linux_nat_target.
8422 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8423
8424 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8425 (procfs_target): New class.
8426 (the_procfs_target): New.
8427 (procfs_target): Delete function.
8428 (procfs_auxv_parse, procfs_attach, procfs_detach)
8429 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8430 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8431 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8432 (procfs_create_inferior, procfs_update_thread_list)
8433 (procfs_thread_alive, procfs_pid_to_str)
8434 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8435 (procfs_stopped_data_address, procfs_insert_watchpoint)
8436 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8437 (proc_find_memory_regions, procfs_info_proc)
8438 (procfs_make_note_section): Refactor as methods of procfs_target.
8439 (_initialize_procfs): Adjust.
8440 * sol-thread.c (sol_thread_target): New class.
8441 (sol_thread_ops): Now a sol_thread_target.
8442 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8443 (sol_thread_fetch_registers, sol_thread_store_registers)
8444 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8445 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8446 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8447 (init_sol_thread_ops): Delete.
8448 (_initialize_sol_thread): Adjust. Remove references to
8449 init_sol_thread_ops and complete_target_initialization.
8450
8451 * windows-nat.c (windows_nat_target): New class.
8452 (windows_fetch_inferior_registers)
8453 (windows_store_inferior_registers, windows_resume, windows_wait)
8454 (windows_attach, windows_detach, windows_pid_to_exec_file)
8455 (windows_files_info, windows_create_inferior)
8456 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8457 (windows_close, windows_pid_to_str, windows_xfer_partial)
8458 (windows_get_tib_address, windows_get_ada_task_ptid)
8459 (windows_thread_name, windows_thread_alive): Refactor as
8460 windows_nat_target methods.
8461 (do_initial_windows_stuff): Adjust.
8462 (windows_target): Delete function.
8463 (_initialize_windows_nat): Adjust.
8464
8465 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8466 (darwin_mourn_inferior, darwin_kill_inferior)
8467 (darwin_create_inferior, darwin_attach, darwin_detach)
8468 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8469 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8470 (darwin_supports_multi_process): Refactor as darwin_nat_target
8471 methods.
8472 (darwin_resume_to, darwin_files_info): Delete.
8473 (_initialize_darwin_inferior): Rename to ...
8474 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8475 * darwin-nat.h: Include "inf-child.h".
8476 (darwin_nat_target): New class.
8477 (darwin_complete_target): Delete.
8478 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8479 (darwin_target): New.
8480 (i386_darwin_fetch_inferior_registers)
8481 (i386_darwin_store_inferior_registers): Refactor as methods of
8482 darwin_nat_target.
8483 (darwin_complete_target): Delete, with ...
8484 (_initialize_i386_darwin_nat): ... bits factored out here.
8485
8486 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8487 (the_alpha_linux_nat_target): New.
8488 (alpha_linux_register_u_offset): Refactor as
8489 alpha_linux_nat_target method.
8490 (_initialize_alpha_linux_nat): Adjust.
8491 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8492 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8493 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8494 methods of linux_nat_trad_target.
8495 (linux_trad_target): Delete.
8496 * linux-nat-trad.h (linux_trad_target): Delete function.
8497 (linux_nat_trad_target): New class.
8498 * mips-linux-nat.c (mips_linux_nat_target): New class.
8499 (super_fetch_registers, super_store_registers, super_close):
8500 Delete.
8501 (the_mips_linux_nat_target): New.
8502 (mips64_linux_regsets_fetch_registers)
8503 (mips64_linux_regsets_store_registers)
8504 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8505 (mips_linux_register_u_offset, mips_linux_read_description)
8506 (mips_linux_can_use_hw_breakpoint)
8507 (mips_linux_stopped_by_watchpoint)
8508 (mips_linux_stopped_data_address)
8509 (mips_linux_region_ok_for_hw_watchpoint)
8510 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8511 (mips_linux_close): Refactor as methods of mips_linux_nat.
8512 (_initialize_mips_linux_nat): Adjust to C++ification.
8513
8514 * aix-thread.c (aix_thread_target): New class.
8515 (aix_thread_ops): Now an aix_thread_target.
8516 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8517 (aix_thread_fetch_registers, aix_thread_store_registers)
8518 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8519 (aix_thread_thread_alive, aix_thread_pid_to_str)
8520 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8521 Refactor as methods of aix_thread_target.
8522 (init_aix_thread_ops): Delete.
8523 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8524 and complete_target_initialization.
8525 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8526 (rs6000_nat_target): New class.
8527 (the_rs6000_nat_target): New.
8528 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8529 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8530 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8531 (super_create_inferior): Delete.
8532 (_initialize_rs6000_nat): Adjust to C++ification.
8533
8534 * arm-linux-nat.c (arm_linux_nat_target): New class.
8535 (the_arm_linux_nat_target): New.
8536 (arm_linux_fetch_inferior_registers)
8537 (arm_linux_store_inferior_registers, arm_linux_read_description)
8538 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8539 (arm_linux_remove_hw_breakpoint)
8540 (arm_linux_region_ok_for_hw_watchpoint)
8541 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8542 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8543 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8544 arm_linux_nat_target.
8545 (_initialize_arm_linux_nat): Adjust to C++ification.
8546
8547 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8548 (the_aarch64_linux_nat_target): New.
8549 (aarch64_linux_fetch_inferior_registers)
8550 (aarch64_linux_store_inferior_registers)
8551 (aarch64_linux_child_post_startup_inferior)
8552 (aarch64_linux_read_description)
8553 (aarch64_linux_can_use_hw_breakpoint)
8554 (aarch64_linux_insert_hw_breakpoint)
8555 (aarch64_linux_remove_hw_breakpoint)
8556 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8557 (aarch64_linux_region_ok_for_hw_watchpoint)
8558 (aarch64_linux_stopped_data_address)
8559 (aarch64_linux_stopped_by_watchpoint)
8560 (aarch64_linux_watchpoint_addr_within_range)
8561 (aarch64_linux_can_do_single_step): Refactor as methods of
8562 aarch64_linux_nat_target.
8563 (super_post_startup_inferior): Delete.
8564 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8565
8566 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8567 (the_hppa_linux_nat_target): New.
8568 (hppa_linux_fetch_inferior_registers)
8569 (hppa_linux_store_inferior_registers): Refactor as methods of
8570 hppa_linux_nat_target.
8571 (_initialize_hppa_linux_nat): Adjust to C++ification.
8572
8573 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8574 (the_ia64_linux_nat_target): New.
8575 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8576 (ia64_linux_stopped_data_address)
8577 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8578 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8579 ia64_linux_nat_target methods.
8580 (super_xfer_partial): Delete.
8581 (_initialize_ia64_linux_nat): Adjust to C++ification.
8582
8583 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8584 (the_m32r_linux_nat_target): New.
8585 (m32r_linux_fetch_inferior_registers)
8586 (m32r_linux_store_inferior_registers): Refactor as
8587 m32r_linux_nat_target methods.
8588 (_initialize_m32r_linux_nat): Adjust to C++ification.
8589
8590 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8591 (the_m68k_linux_nat_target): New.
8592 (m68k_linux_fetch_inferior_registers)
8593 (m68k_linux_store_inferior_registers): Refactor as
8594 m68k_linux_nat_target methods.
8595 (_initialize_m68k_linux_nat): Adjust to C++ification.
8596
8597 * s390-linux-nat.c (s390_linux_nat_target): New class.
8598 (the_s390_linux_nat_target): New.
8599 (s390_linux_fetch_inferior_registers)
8600 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8601 (s390_insert_watchpoint, s390_remove_watchpoint)
8602 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8603 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8604 (s390_auxv_parse, s390_read_description): Refactor as methods of
8605 s390_linux_nat_target.
8606 (_initialize_s390_nat): Adjust to C++ification.
8607
8608 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8609 (the_sparc_linux_nat_target): New.
8610 (_initialize_sparc_linux_nat): Adjust to C++ification.
8611 * sparc-nat.c (sparc_fetch_inferior_registers)
8612 (sparc_store_inferior_registers): Remove target_ops parameter.
8613 * sparc-nat.h (sparc_fetch_inferior_registers)
8614 (sparc_store_inferior_registers): Remove target_ops parameter.
8615 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8616 (the_sparc64_linux_nat_target): New.
8617 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8618
8619 * spu-linux-nat.c (spu_linux_nat_target): New class.
8620 (the_spu_linux_nat_target): New.
8621 (spu_child_post_startup_inferior, spu_child_post_attach)
8622 (spu_child_wait, spu_fetch_inferior_registers)
8623 (spu_store_inferior_registers, spu_xfer_partial)
8624 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8625 methods.
8626 (_initialize_spu_nat): Adjust to C++ification.
8627
8628 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8629 (the_tilegx_linux_nat_target): New.
8630 (fetch_inferior_registers, store_inferior_registers):
8631 Refactor as methods.
8632 (_initialize_tile_linux_nat): Adjust to C++ification.
8633
8634 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8635 (the_xtensa_linux_nat_target): New.
8636 (xtensa_linux_fetch_inferior_registers)
8637 (xtensa_linux_store_inferior_registers): Refactor as
8638 xtensa_linux_nat_target methods.
8639 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8640
8641 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8642 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8643 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8644 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8645 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8646 (fbsd_stopped_by_sw_breakpoint)
8647 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8648 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8649 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8650 (fbsd_post_startup_inferior, fbsd_post_attach)
8651 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8652 (fbsd_set_syscall_catchpoint)
8653 (super_xfer_partial, super_resume, super_wait)
8654 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8655 (fbsd_handle_debug_trap): Remove target_ops parameter.
8656 (fbsd_nat_add_target): Delete.
8657 * fbsd-nat.h: Include "inf-ptrace.h".
8658 (fbsd_nat_add_target): Delete.
8659 (USE_SIGTRAP_SIGINFO): Define.
8660 (fbsd_nat_target): New class.
8661
8662 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8663 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8664 (amd64bsd_target): Delete.
8665 * amd64-bsd-nat.h: New file.
8666 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8667 "x86-bsd-nat.h".
8668 (amd64_fbsd_nat_target): New class.
8669 (the_amd64_fbsd_nat_target): New.
8670 (amd64fbsd_read_description): Refactor as method of
8671 amd64_fbsd_nat_target.
8672 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8673 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8674 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8675 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8676 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8677 (i386bsd_target): Delete.
8678 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8679 (i386bsd_fetch_inferior_registers)
8680 (i386bsd_store_inferior_registers): Declare.
8681 (i386_bsd_nat_target): New class.
8682 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8683 (the_i386_fbsd_nat_target): New.
8684 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8685 i386_fbsd_nat_target methods.
8686 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8687 (_initialize_i386fbsd_nat): Adjust to C++ification.
8688 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8689 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8690 (_initialize_x86_bsd_nat): Adjust to C++ification.
8691 * x86-bsd-nat.h: Include "x86-nat.h".
8692 (x86bsd_target): Delete declaration.
8693 (x86bsd_nat_target): New class.
8694
8695 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8696 (the_aarch64_fbsd_nat_target): New.
8697 (aarch64_fbsd_fetch_inferior_registers)
8698 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8699 aarch64_fbsd_nat_target.
8700 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8701 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8702 (the_alpha_bsd_nat_target): New.
8703 (alphabsd_fetch_inferior_registers)
8704 (alphabsd_store_inferior_registers): Refactor as
8705 alpha_bsd_nat_target methods.
8706 (_initialize_alphabsd_nat): Refactor as methods of
8707 alpha_bsd_nat_target.
8708 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8709 (the_amd64_nbsd_nat_target): New.
8710 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8711 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8712 (the_amd64_obsd_nat_target): New.
8713 (_initialize_amd64obsd_nat): Adjust to C++ification.
8714 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8715 (the_arm_fbsd_nat_target): New.
8716 (arm_fbsd_fetch_inferior_registers)
8717 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8718 (_initialize_arm_fbsd_nat): Refactor as methods of
8719 arm_fbsd_nat_target.
8720 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8721 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8722 (the_arm_netbsd_nat_target): New.
8723 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8724 arm_netbsd_nat_target.
8725 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8726 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8727 (the_hppa_nbsd_nat_target): New.
8728 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8729 hppa_nbsd_nat_target methods.
8730 (_initialize_hppanbsd_nat): Adjust to C++ification.
8731 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8732 (the_hppa_obsd_nat_target): New.
8733 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8734 methods of hppa_obsd_nat_target.
8735 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8736 add_target.
8737 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8738 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8739 add_target.
8740 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8741 (_initialize_i386obsd_nat): Use add_target.
8742 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8743 (the_m68k_bsd_nat_target): New.
8744 (m68kbsd_fetch_inferior_registers)
8745 (m68kbsd_store_inferior_registers): Refactor as methods of
8746 m68k_bsd_nat_target.
8747 (_initialize_m68kbsd_nat): Adjust to C++ification.
8748 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8749 (the_mips_fbsd_nat_target): New.
8750 (mips_fbsd_fetch_inferior_registers)
8751 (mips_fbsd_store_inferior_registers): Refactor as methods of
8752 mips_fbsd_nat_target.
8753 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8754 add_target.
8755 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8756 (the_mips_nbsd_nat_target): New.
8757 (mipsnbsd_fetch_inferior_registers)
8758 (mipsnbsd_store_inferior_registers): Refactor as methods of
8759 mips_nbsd_nat_target.
8760 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8761 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8762 (the_mips64_obsd_nat_target): New.
8763 (mips64obsd_fetch_inferior_registers)
8764 (mips64obsd_store_inferior_registers): Refactor as methods of
8765 mips64_obsd_nat_target.
8766 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8767 add_target.
8768 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8769 nbsd_nat_target.
8770 * nbsd-nat.h: Include "inf-ptrace.h".
8771 (nbsd_nat_target): New class.
8772 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8773 (obsd_wait): Refactor as methods of obsd_nat_target.
8774 (obsd_add_target): Delete.
8775 * obsd-nat.h: Include "inf-ptrace.h".
8776 (obsd_nat_target): New class.
8777 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8778 (the_ppc_fbsd_nat_target): New.
8779 (ppcfbsd_fetch_inferior_registers)
8780 (ppcfbsd_store_inferior_registers): Refactor as methods of
8781 ppc_fbsd_nat_target.
8782 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8783 add_target.
8784 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8785 (the_ppc_nbsd_nat_target): New.
8786 (ppcnbsd_fetch_inferior_registers)
8787 (ppcnbsd_store_inferior_registers): Refactor as methods of
8788 ppc_nbsd_nat_target.
8789 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8790 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8791 (the_ppc_obsd_nat_target): New.
8792 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8793 methods of ppc_obsd_nat_target.
8794 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8795 add_target.
8796 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8797 (the_sh_nbsd_nat_target): New.
8798 (shnbsd_fetch_inferior_registers)
8799 (shnbsd_store_inferior_registers): Refactor as methods of
8800 sh_nbsd_nat_target.
8801 (_initialize_shnbsd_nat): Adjust to C++ification.
8802 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8803 (inf_ptrace_xfer_partial): Delete.
8804 (sparc_xfer_partial, sparc_target): Delete.
8805 * sparc-nat.h (sparc_fetch_inferior_registers)
8806 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8807 (sparc_target): Delete function declaration.
8808 (sparc_target): New template class.
8809 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8810 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8811 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8812 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8813 add_target.
8814 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8815 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8816 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8817 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8818 add_target.
8819 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8820 (the_vax_bsd_nat_target): New.
8821 (vaxbsd_fetch_inferior_registers)
8822 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8823 methods.
8824 (_initialize_vaxbsd_nat): Adjust to C++ification.
8825
8826 * bsd-kvm.c (bsd_kvm_target): New class.
8827 (bsd_kvm_ops): Now a bsd_kvm_target.
8828 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8829 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8830 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8831 bsd_kvm_target.
8832 (bsd_kvm_return_one): Delete.
8833 (bsd_kvm_add_target): Adjust to C++ification.
8834
8835 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8836 (nto_procfs_target_procfs): New classes.
8837 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8838 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8839 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8840 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8841 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8842 (procfs_remove_hw_breakpoint, procfs_resume)
8843 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8844 (procfs_kill_inferior, procfs_store_registers)
8845 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8846 as methods of nto_procfs_target.
8847 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8848 (nto_native_ops): Delete.
8849 (procfs_open, procfs_native_open): Delete.
8850 (nto_native_ops): Now an nto_procfs_target_native.
8851 (init_procfs_targets): Adjust to C++ification.
8852 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8853 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8854 Refactor as methods of nto_procfs_target.
8855
8856 * go32-nat.c (go32_nat_target): New class.
8857 (the_go32_nat_target): New.
8858 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8859 (go32_store_registers, go32_xfer_partial, go32_files_info)
8860 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8861 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8862 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8863 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8864 (go32_target): Delete.
8865 (_initialize_go32_nat): Adjust to C++ification.
8866
8867 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8868 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8869 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8870 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8871 gnu_nat_target.
8872 (gnu_target): Delete.
8873 * gnu-nat.h (gnu_target): Delete.
8874 (gnu_nat_target): New class.
8875 * i386-gnu-nat.c (gnu_base_target): New.
8876 (i386_gnu_nat_target): New class.
8877 (the_i386_gnu_nat_target): New.
8878 (_initialize_i386gnu_nat): Adjust to C++ification.
8879
3fffc070
PA
88802018-05-02 Pedro Alves <palves@redhat.com>
8881
8882 * bfd-target.c (target_bfd_xclose): Rename to ...
8883 (target_bfd_close): ... this.
8884 (target_bfd_reopen): Adjust.
8885 * target.c (target_close): Remove references to to_xclose.
8886 * target.h (target_ops::to_xclose): Delete.
8887 (target_ops::to_close): Update comments.
8888
6798487f
PA
88892018-05-02 Pedro Alves <palves@redhat.com>
8890
8891 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8892 "linux-nat.h".
8893 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8894 * inf-ptrace.c (inf_ptrace_register_u_offset)
8895 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8896 (inf_ptrace_store_register, inf_ptrace_store_registers)
8897 (inf_ptrace_trad_target): Move to ...
8898 * linux-nat-trad.c: ... this new file.
8899 * linux-nat-trad.h: New file.
8900 * linux-nat.c (linux_target_install_ops): Make extern.
8901 (linux_trad_target): Delete.
8902 * linux-nat.h (linux_trad_target): Delete declaration.
8903 (linux_target_install_ops): Declare.
8904 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8905 "linux-nat.h".
8906
c1955e17
PA
89072018-05-02 Pedro Alves <palves@redhat.com>
8908
8909 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8910 procfs_target/add_target here.
8911 * procfs.c (procfs_target): Make static.
8912 (_initialize_procfs): Call add_target here.
8913 * procfs.h (struct target_ops): Remove forward declaration.
8914 (procfs_target): Remove declaration.
8915 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8916
b5c8fcb1
PA
89172018-05-02 Pedro Alves <palves@redhat.com>
8918
8919 * procfs.c (procfs_stopped_by_watchpoint)
8920 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8921 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8922 Forward declare.
8923 (procfs_use_watchpoints): Delete, move contents...
8924 (procfs_target): ... here.
8925 * procfs.h (procfs_use_watchpoints): Delete declaration.
8926 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8927 procfs_use_watchpoints.
8928 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8929 procfs_use_watchpoints.
8930
0489430a
TT
89312018-05-02 Tom Tromey <tom@tromey.com>
8932
8933 PR python/20084:
8934 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8935 and var_zuinteger_unlimited.
8936 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8937 and PARAM_ZUINTEGER_UNLIMITED.
8938 (set_parameter_value): Handle var_zuinteger and
8939 var_zuinteger_unlimited.
8940 (add_setshow_generic): Likewise.
8941 (parmpy_init): Likewise.
8942
1632f8ba
DR
89432018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8944
8945 PR rust/23124
8946 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8947 pointer is not null before dereferencing it.
8948
76761936
TT
89492018-04-30 Tom Tromey <tom@tromey.com>
8950
8951 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8952 is_mi_like_p.
8953
2d33446d
TT
89542018-04-30 Tom Tromey <tom@tromey.com>
8955
8956 * breakpoint.c (mention): Remove use of is_mi_like_p.
8957 (print_mention_ranged_breakpoint): Likewise.
8958 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8959 of is_mi_like_p.
8960
f3c6abab
TT
89612018-04-30 Tom Tromey <tom@tromey.com>
8962
8963 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8964
40c03530
TT
89652018-04-30 Tom Tromey <tom@tromey.com>
8966
8967 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8968 (info_spu_event_command): Remove some uses of is_mi_like_p.
8969
2038b7fd
TT
89702018-04-30 Tom Tromey <tom@tromey.com>
8971
8972 * python/py-framefilter.c (py_print_single_arg)
8973 (enumerate_locals, py_print_args, py_print_frame): Remove some
8974 uses of is_mi_like_p.
8975
4904c3c6
TT
89762018-04-30 Tom Tromey <tom@tromey.com>
8977
8978 * ui-out.c: Update.
8979 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8980 * ui-out.h (ui_out::is_mi_like_p): Now const.
8981 (ui_out::do_is_mi_like_p): Now const.
8982 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8983
7c66fffc
TT
89842018-04-30 Tom Tromey <tom@tromey.com>
8985
8986 * varobj.c (varobj_set_visualizer): Use new_reference.
8987 * python/python.c (gdbpy_decode_line): Use new_reference.
8988 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8989 new_reference.
8990
bbfa6f00
TT
89912018-04-30 Tom Tromey <tom@tromey.com>
8992
8993 * varobj.c (install_new_value): Use new_reference.
8994 * value.h (value_incref): Return void. Swap intro comment with
8995 value_decref.
8996 * value.c (set_value_parent): Use new_reference.
8997 (value_incref): Return void. Update intro comment.
8998 (release_value): Use new_reference.
8999 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9000
1831a9f9
TT
90012018-04-30 Tom Tromey <tom@tromey.com>
9002
9003 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9004 * gdb_bfd.h (new_bfd_ref): Remove.
9005 (gdb_bfd_open): Update comment.
9006 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9007 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9008 (gdb_bfd_fdopenr): Use new_reference.
9009 * exec.c (exec_file_attach): Use new_reference.
9010
7c1b5f3d
TT
90112018-04-30 Tom Tromey <tom@tromey.com>
9012
9013 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9014 method.
9015
e11fb955
TT
90162018-04-30 Tom Tromey <tom@tromey.com>
9017
9018 * jit.c (jit_read_code_entry): Use type_align.
9019 * i386-tdep.c (i386_gdbarch_init): Don't call
9020 set_gdbarch_long_long_align_bit.
9021 * gdbarch.sh: Remove long_long_align_bit.
9022 * gdbarch.c, gdbarch.h: Rebuild.
9023 * arc-tdep.c (arc_type_align): New function.
9024 (arc_gdbarch_init): Use arc_type_align. Don't call
9025 set_gdbarch_long_long_align_bit.
9026
2fff16dd
TT
90272018-04-30 Tom Tromey <tom@tromey.com>
9028
9029 * rust-lang.c (rust_type_alignment): Remove.
9030 (rust_composite_type): Use type_align.
9031
6d7bb824
TT
90322018-04-30 Tom Tromey <tom@tromey.com>
9033
9034 * NEWS: Mention Type.align.
9035 * python/py-type.c (typy_get_alignof): New function.
9036 (type_object_getset): Add "alignof".
9037
007e1530
TT
90382018-04-30 Tom Tromey <tom@tromey.com>
9039
9040 PR exp/17095:
9041 * NEWS: Update.
9042 * std-operator.def (UNOP_ALIGNOF): New operator.
9043 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9044 New.
9045 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9046 * c-lang.c (c_op_print_tab): Add alignof.
9047 * c-exp.y (ALIGNOF): New token.
9048 (exp): Add "ALIGNOF" production.
9049 (ident_tokens): Add _Alignof and alignof.
9050
2b4424c3
TT
90512018-04-30 Tom Tromey <tom@tromey.com>
9052
9053 * i386-tdep.c (i386_type_align): New function.
9054 (i386_gdbarch_init): Update.
9055 * gdbarch.sh (type_align): New method.
9056 * gdbarch.c, gdbarch.h: Rebuild.
9057 * arch-utils.h (default_type_align): Declare.
9058 * arch-utils.c (default_type_align): New function.
9059 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9060 (struct type) <align_log2>: New field.
9061 <instance_flags>: Now a bitfield.
9062 (TYPE_RAW_ALIGN): New macro.
9063 (type_align, type_raw_align, set_type_align): Declare.
9064 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9065 functions.
9066 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9067 (get_alignment, maybe_set_alignment): New functions.
9068 (read_structure_type, read_enumeration_type, read_array_type)
9069 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9070 (read_subrange_type, read_base_type): Set type alignment.
9071
d33bc52e
SM
90722018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9073
9074 * dwarf2read.c (read_index_from_section): Use bool.
9075
e28b63a9
FG
90762018-04-29 Fabian Groffen <grobian@gentoo.org>
9077
9078 PR gdb/22950
9079 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9080 with #ifdef.
9081
cd8c76e4
JR
90822018-04-29 John Reiser <jreiser@BitWagon.com>
9083
9084 PR build/22873
9085 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9086 last step, and do it atomically.
9087
476d250e
AO
90882018-04-27 Alexandre Oliva <aoliva@redhat.com>
9089
9090 * compile/compile-c-types.c (convert_int, convert_float):
9091 Update for C FE v1.
9092
6873858b
TT
90932018-04-27 Tom Tromey <tom@tromey.com>
9094
9095 PR rust/22545:
9096 * rust-lang.c (rust_inclusive_range_type_p): New function.
9097 (rust_range): Handle inclusive ranges.
9098 (rust_compute_range): Likewise.
9099 * rust-exp.y (struct rust_op) <inclusive>: New field.
9100 (DOTDOTEQ): New constant.
9101 (range_expr): Add "..=" productions.
9102 (operator_tokens): Add "..=" token.
9103 (ast_range): Add "inclusive" parameter.
9104 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9105 ranges.
9106 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9107 bounds values.
9108 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9109 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9110 Update comments.
9111 * expprint.c (print_subexp_standard): Handle new bounds values.
9112 (dump_subexp_body_standard): Likewise.
9113
632e107b
TT
91142018-04-27 Tom Tromey <tom@tromey.com>
9115
9116 * configure: Rebuild.
9117 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9118 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9119 "OVERRIDE".
9120 (class symbol_needs_eval_context): Likewise.
9121 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9122 (mock_mapped_index::symbol_name_at): Use "override". Remove
9123 "virtual".
9124 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9125 "override".
9126 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9127 * aarch64-tdep.c (instruction_reader::read): Use "override".
9128 (instruction_reader_test::read): Likewise.
9129 * arm-tdep.c (instruction_reader::read): Use "override".
9130 (instruction_reader_thumb::read): Likewise.
9131
b75abf5b
AK
91322018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9133
9134 PR remote/9665
9135 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9136 instead of remote_send.
9137 (remote_send): Remove.
9138
79188d8d
PA
91392018-04-26 Pedro Alves <palves@redhat.com>
9140
9141 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9142 find_function_start_sal instead of find_pc_line.
9143
f50776aa
PA
91442018-04-26 Pedro Alves <palves@redhat.com>
9145
9146 * breakpoint.c (set_breakpoint_location_function): Handle
9147 mst_data_gnu_ifunc.
9148 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9149 * elfread.c (elf_symtab_read): Give data symbols with
9150 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9151 (elf_rel_plt_read): Update comment.
9152 * linespec.c (convert_linespec_to_sals): Handle
9153 mst_data_gnu_ifunc.
9154 (minsym_found): Handle mst_data_gnu_ifunc.
9155 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9156 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9157 * parse.c (find_minsym_type_and_address): Handle
9158 mst_data_gnu_ifunc.
9159 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9160 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9161 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9162 comment.
9163 <mst_data_gnu_ifunc>: New enumerator.
9164
20944a6e
PA
91652018-04-26 Pedro Alves <palves@redhat.com>
9166
9167 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9168 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9169 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9170 Handle it.
9171 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9172 (lookup_minimal_symbol_by_pc): Adjust.
9173 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9174 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9175 * minsyms.h (lookup_msym_prefer): New enum.
9176 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9177 parameter by a lookup_msym_prefer parameter.
9178
1adeb822
PA
91792018-04-26 Pedro Alves <palves@redhat.com>
9180
9181 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9182 ends in "@plt" instead of looking at the symbol's section.
9183
a0aca7b0
PA
91842018-04-26 Pedro Alves <palves@redhat.com>
9185
9186 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9187 all references.
9188 (find_pc_partial_function_gnu_ifunc): Rename to ...
9189 (find_pc_partial_function): ... this, and remove references to
9190 'is_gnu_ifunc_p'.
9191 (find_pc_partial_function): Delete old implementation.
9192 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9193
76af0f26
PA
91942018-04-26 Pedro Alves <palves@redhat.com>
9195
9196 * linespec.c (struct bound_minimal_symbol_search_key): New.
9197 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9198 skip first line if we found a GNU ifunc minimal symbol by name.
9199 (compare_msymbols): Change parameters to work with a destructured
9200 lhs minsym.
9201 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9202 functions.
9203
3467ec66
PA
92042018-04-26 Pedro Alves <palves@redhat.com>
9205
9206 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9207 ifunc targets here. Instead, if we have an ifunc minsym, use its
9208 address/name.
9209 (add_location_to_breakpoint): Store the minsym and the objfile in
9210 the breakpoint location.
9211 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9212 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9213 Record the minsym in the sal.
9214 * symtab.h (symtab_and_line) <msymbol>: New field.
9215
28f4fa4d
PA
92162018-04-26 Pedro Alves <palves@redhat.com>
9217
9218 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9219 unless we actually resolved the ifunc.
9220
ca31ab1d
PA
92212018-04-26 Pedro Alves <palves@redhat.com>
9222
9223 * c-exp.y (variable production): Prefer ifunc minsyms over
9224 regular function symbols.
9225 * symtab.c (find_gnu_ifunc): New function.
9226 * minsyms.h (lookup_msym_prefer): New enum.
9227 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9228 parameter by a lookup_msym_prefer parameter.
9229 * symtab.h (find_gnu_ifunc): New declaration.
9230
8388016d
PA
92312018-04-26 Pedro Alves <palves@redhat.com>
9232
9233 * blockframe.c (find_gnu_ifunc_target_type): New function.
9234 (find_function_type): New.
9235 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9236 return a value with a memory address.
9237 (eval_call): For calls to GNU ifunc functions, try to find the
9238 type of the target function from the type that the resolver
9239 returns.
9240 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9241 symbols.
9242 * infcall.c (find_function_return_type): Delete.
9243 (find_function_addr): Add 'function_type' parameter. For calls to
9244 GNU ifunc functions, try to find the type of the target function
9245 from the type that the resolver returns, and return it via
9246 FUNCTION_TYPE.
9247 (call_function_by_hand_dummy): Adjust to use the function type
9248 returned by find_function_addr.
9249 (find_function_addr): Add 'function_type' parameter and move
9250 description here.
9251 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9252 declarations.
9253
a376e11d
PA
92542018-04-26 Pedro Alves <palves@redhat.com>
9255
9256 * c-exp.y (variable production): Skip finding an alias for ifunc
9257 symbols.
9258
02e169e2
PA
92592018-04-26 Pedro Alves <palves@redhat.com>
9260
9261 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9262
249b5733
PA
92632018-04-25 Pedro Alves <palves@redhat.com>
9264
9265 * infcmd.c (kill_command): Print the pid as string, not the whole
9266 thread's ptid. Add comment. s/has been killed/killed/ in output
9267 message.
9268 * remote.c (remote_detach_1): Print the pid as string, not the
9269 whole thread's ptid.
9270
f67c0c91
SDJ
92712018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9272 Sergio Durigan Junior <sergiodj@redhat.com>
9273 Pedro Alves <palves@redhat.com>
9274
9275 * infcmd.c (kill_command): Print message when inferior has
9276 been killed.
9277 * inferior.c (print_inferior_events): Remove 'static'. Set as
9278 '1'.
9279 (add_inferior): Improve message printed when
9280 'print_inferior_events' is on.
9281 (exit_inferior): Remove message printed when
9282 'print_inferior_events' is on.
9283 (detach_inferior): Improve message printed when
9284 'print_inferior_events' is on.
9285 (initialize_inferiors): Use 'add_inferior_silent' to set
9286 'current_inferior_'.
9287 * inferior.h (print_inferior_events): Declare here as
9288 'extern'.
9289 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9290 '[Detaching...]' messages when 'print_inferior_events' is on.
9291 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9292 as prefix/suffix for messages. Remove periods. Fix erroneous
9293 'Detaching after fork from child...', replace it by '... from
9294 parent...'.
9295 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9296 prefix/suffix when printing 'Detaching...' messages. Print
9297 them when 'print_inferior_events' is on.
9298 * remote.c (remote_detach_1): Print message when detaching
9299 from inferior and '!is_fork_parent'.
9300
e427af18
TT
93012018-04-24 Tom Tromey <tom@tromey.com>
9302
9303 * cli-out.h: Reindent.
9304
05b1d8d6
TT
93052018-04-24 Tom Tromey <tom@tromey.com>
9306
9307 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9308 (cli_ui_out::do_field_string): Use fputs_filtered.
9309 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9310
a95c7dab
TT
93112018-04-23 Tom Tromey <tom@tromey.com>
9312
9313 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9314 gdb::unique_xmalloc_ptr.
9315
458412c3
TT
93162018-04-23 Tom Tromey <tom@tromey.com>
9317
9318 * configure: Rebuild.
9319
db86b02b
RS
93202018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9321
9322 PR gdb/23095
9323 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9324 prepare_for_testing. Set normal_bp to r_debug_state if target
9325 is bsd.
9326
00aecdcf
PA
93272018-04-21 Pedro Alves <palves@redhat.com>
9328 Rajendra SY <rajendra.sy@gmail.com>
9329
9330 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9331 * remote.c (extended_remote_attach): In all-stop mode, mark the
9332 thread as executing.
9333
224608c3
PW
93342018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9335
9336 * thread.c (thread_apply_all_command): Fix comment.
9337 (thread_command): Fix comment.
9338
3b74854b
AH
93392018-04-10 Alan Hayward <alan.hayward@arm.com>
9340
9341 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9342 parameter.
9343 * features/aarch64-core.c (create_feature_aarch64_core):
9344 Regenerate.
9345 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9346 Likewise.
9347 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9348 Likewise.
9349 * features/i386/32bit-avx512.c
9350 (create_feature_i386_32bit_avx512): Likewise.
9351 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9352 Likewise.
9353 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9354 Likewise.
9355 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9356 Likewise.
9357 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9358 Likewise.
9359 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9360 Likewise.
9361 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9362 Likewise.
9363 * features/i386/64bit-avx512.c
9364 (create_feature_i386_64bit_avx512): Likewise.
9365 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9366 Likewise.
9367 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9368 Likewise.
9369 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9370 Likewise.
9371 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9372 Likewise.
9373 * features/i386/64bit-segments.c
9374 (create_feature_i386_64bit_segments): Likewise.
9375 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9376 Likewise.
9377 * features/i386/x32-core.c
9378 (create_feature_i386_x32_core): Likewise.
9379 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9380 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9381 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9382 * target-descriptions.c: In generated code, don't pass xml
9383 filename.
9384
e98577a9
AH
93852018-04-18 Alan Hayward <alan.hayward@arm.com>
9386
9387 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9388 (print_xml_feature::visit_post): Likewise.
9389 (print_xml_feature::visit): Likewise.
9390 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9391 (print_xml_feature): Add new class.
9392 * regformats/regdat.sh: Null xmltarget on feature targets.
9393 * target-descriptions.c (struct target_desc): Add xmltarget.
9394 (maintenance_check_tdesc_xml_convert): Add unittest function.
9395 (tdesc_get_features_xml): Add function to get xml.
9396 (maintenance_check_xml_descriptions): Test xml generation.
9397 * xml-tdesc.c (string_read_description_xml): Add function.
9398 * xml-tdesc.h (string_read_description_xml): Add declaration.
9399
ad7fc756
AH
94002018-04-18 Alan Hayward <alan.hayward@arm.com>
9401
9402 * features/Makefile: Add feature marker to targets with new style
9403 target descriptions.
9404 * regformats/aarch64.dat: Regenerate.
9405 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9406 * regformats/i386/amd64-avx-linux.dat: Likewise.
9407 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9408 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9409 * regformats/i386/amd64-linux.dat: Likewise.
9410 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9411 * regformats/i386/amd64.dat: Likewise.
9412 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9413 * regformats/i386/i386-avx-linux.dat: Likewise.
9414 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9415 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9416 * regformats/i386/i386-linux.dat: Likewise.
9417 * regformats/i386/i386-mmx-linux.dat: Likewise.
9418 * regformats/i386/i386-mpx-linux.dat: Likewise.
9419 * regformats/i386/i386.dat: Likewise.
9420 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9421 * regformats/i386/x32-avx-linux.dat: Likewise.
9422 * regformats/i386/x32-linux.dat: Likewise.
9423 * regformats/tic6x-c62x-linux.dat: Likewise.
9424 * regformats/tic6x-c64x-linux.dat: Likewise.
9425 * regformats/tic6x-c64xp-linux.dat: Likewise.
9426 * regformats/regdat.sh: Parse feature marker.
9427
d278f585
AH
94282018-04-18 Alan Hayward <alan.hayward@arm.com>
9429
9430 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9431 (tdesc_osabi_name): Likewise.
9432 * target-descriptions.c (tdesc_architecture_name): Add new
9433 function.
9434 (tdesc_osabi_name): Likewise.
9435
eee8a18d
AH
94362018-04-18 Alan Hayward <alan.hayward@arm.com>
9437
9438 * common/tdesc.c (tdesc_predefined_type): Move to here.
9439 (tdesc_named_type): Likewise.
9440 (tdesc_create_vector): Likewise.
9441 (tdesc_create_struct): Likewise.
9442 (tdesc_set_struct_size): Likewise.
9443 (tdesc_create_union): Likewise.
9444 (tdesc_create_flags): Likewise.
9445 (tdesc_create_enum): Likewise.
9446 (tdesc_add_field): Likewise.
9447 (tdesc_add_typed_bitfield): Likewise.
9448 (tdesc_add_bitfield): Likewise.
9449 (tdesc_add_flag): Likewise.
9450 (tdesc_add_enum_value): Likewise.
9451 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9452 (struct tdesc_type_vector): Likewise.
9453 (struct tdesc_type_field): Likewise.
9454 (struct tdesc_type_with_fields): Likewise.
9455 (tdesc_create_enum): Add declaration.
9456 (tdesc_add_typed_bitfield): Likewise.
9457 (tdesc_add_enum_value): Likewise.
9458 * target-descriptions.c (tdesc_type_field): Move from here.
9459 (tdesc_type_builtin): Likewise.
9460 (tdesc_type_vector): Likewise.
9461 (tdesc_type_with_fields): Likewise.
9462 (tdesc_predefined_types): Likewise.
9463 (tdesc_named_type): Likewise.
9464 (tdesc_create_vector): Likewise.
9465 (tdesc_create_struct): Likewise.
9466 (tdesc_set_struct_size): Likewise.
9467 (tdesc_create_union): Likewise.
9468 (tdesc_create_flags): Likewise.
9469 (tdesc_create_enum): Likewise.
9470 (tdesc_add_field): Likewise.
9471 (tdesc_add_typed_bitfield): Likewise.
9472 (tdesc_add_bitfield): Likewise.
9473 (tdesc_add_flag): Likewise.
9474 (tdesc_add_enum_value): Likewise.
9475 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9476 (tdesc_add_typed_bitfield): Likewise.
9477 (tdesc_add_enum_value): Likewise.
9478
82ec9bc7
AH
94792018-04-18 Alan Hayward <alan.hayward@arm.com>
9480
9481 * common/tdesc.c (tdesc_feature::accept): Move to here.
9482 (tdesc_feature::operator==): Likewise.
9483 (tdesc_create_reg): Likewise.
9484 * common/tdesc.h (tdesc_type_kind): Likewise.
9485 (struct tdesc_type): Likewise.
9486 (struct tdesc_feature): Likewise.
9487 * regformats/regdat.sh: Create a feature.
9488 * target-descriptions.c (tdesc_type_kind): Move from here.
9489 (tdesc_type): Likewise.
9490 (tdesc_type_up): Likewise.
9491 (tdesc_feature): Likewise.
9492 (tdesc_create_reg): Likewise.
9493
ea3e7d71
AH
94942018-04-18 Alan Hayward <alan.hayward@arm.com>
9495
9496 * Makefile.in: Add arch/tdesc.c
9497 * common/tdesc.c: New file.
9498 * common/tdesc.h (tdesc_element_visitor): Move to here.
9499 (tdesc_element): Likewise.
9500 (tdesc_reg): Likewise.
9501 (tdesc_reg_up): Likewise.
9502 * regformats/regdef.h (reg): Add offset to constructors.
9503 * target-descriptions.c (tdesc_element_visitor): Move from here.
9504 (tdesc_element): Likewise.
9505 (tdesc_reg): Likewise.
9506 (tdesc_reg_up): Likewise.
9507
bedda9ac
TT
95082018-04-17 Tom Tromey <tom@tromey.com>
9509
9510 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9511 discriminant field.
9512
a037790e
TT
95132018-04-17 Tom Tromey <tom@tromey.com>
9514
9515 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9516
c7dcbf88
AA
95172018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9518
9519 * symtab.c (print_symbol_info): Skip printing filename and line
9520 number when `last' is NULL.
9521 (symtab_symbol_info): Use empty string instead of NULL for first
9522 invocation of print_symbol_info.
9523 (rbreak_command): Pass NULL to `last' parameter of
9524 print_symbol_info.
9525
07d28c77
SM
95262018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9527
9528 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9529 instead of nullptr.
9530
8a3de5e1
PA
95312018-04-16 Pedro Alves <palves@redhat.com>
9532
9533 * MAINTAINERS (sh): Remove.
9534 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9535 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9536 (ALLDEPFILES): Remove sh64-tdep.c.
9537 * NEWS: Mentions that support for SH-5/SH64 is removed.
9538 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9539 (sh*-*-openbsd*): Ditto.
9540 (sh64-*-elf*): Remove.
9541 (sh*): Remove.
9542 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9543 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9544 * sh-tdep.c: No longer include "sh64-tdep.h".
9545 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9546 * sh64-tdep.c, sh64-tdep.h: Remove files.
9547
a2a79012
PA
95482018-04-16 Pedro Alves <palves@redhat.com>
9549
9550 * MAINTAINERS: Remove m88k.
9551 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9552 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9553 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9554 * NEWS: Mention that support for m88k was removed.
9555 * configure.host (m88*-*-*): Remove support.
9556 * configure.nat (m88k-*-*): Remove support.
9557 * configure.tgt (m88*-*-openbsd*): Remove.
9558 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9559
eda4efb1
SM
95602018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9561
9562 * configure.tgt (x86_tobjs): New variable.
9563 (amd64_tobjs, i386_tobjs): Use it.
9564
b744723f
AA
95652018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9566
9567 * symtab.c (print_symbol_info): Precede the symbol definition by
9568 the line number when available.
9569 * NEWS: Advertise this enhancement.
9570
4a4495d6
MM
95712018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9572
9573 * NEWS (New options): announce set/show record btrace cpu.
9574 * btrace.c: Include record-btrace.h.
9575 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9576 the vendor is unknown.
9577 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9578 Maybe overwrite the btrace configuration's cpu.
9579 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9580 (btrace_fetch): Add cpu parameter. Update callers.
9581 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9582 Maybe overwrite the btrace configuration's cpu. Skip enabling
9583 errata workarounds if the vendor is unknown.
9584 * python/py-record-btrace.c: Include record-btrace.h.
9585 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9586 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9587 * record-btrace.c (record_btrace_cpu_state_kind): New.
9588 (record_btrace_cpu): New.
9589 (set_record_btrace_cpu_cmdlist): New.
9590 (record_btrace_get_cpu): New.
9591 (require_btrace_thread, record_btrace_info)
9592 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9593 (cmd_set_record_btrace_cpu_none): New.
9594 (cmd_set_record_btrace_cpu_auto): New.
9595 (cmd_set_record_btrace_cpu): New.
9596 (cmd_show_record_btrace_cpu): New.
9597 (_initialize_record_btrace): Initialize set/show record btrace cpu
9598 commands.
9599 * record-btrace.h (record_btrace_get_cpu): New.
9600
69f90c75
MM
96012018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9602
9603 * record.c (set_record_command): Fix typo in message.
9604
b85310e1
MM
96052018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9606
9607 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9608
1d509aa6
MM
96092018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9610
9611 * infrun.c (process_event_stop_test): Call
9612 gdbarch_in_indirect_branch_thunk.
9613 * gdbarch.sh (in_indirect_branch_thunk): New.
9614 * gdbarch.c: Regenerated.
9615 * gdbarch.h: Regenerated.
9616 * x86-tdep.h: New.
9617 * x86-tdep.c: New.
9618 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9619 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9620 (ALLDEPFILES): Add x86-tdep.c.
9621 * arch-utils.h (default_in_indirect_branch_thunk): New.
9622 * arch-utils.c (default_in_indirect_branch_thunk): New.
9623 * i386-tdep: Include x86-tdep.h.
9624 (i386_in_indirect_branch_thunk): New.
9625 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9626 function.
9627 * amd64-tdep: Include x86-tdep.h.
9628 (amd64_in_indirect_branch_thunk): New.
9629 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9630
b4be9bfd
JK
96312018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9632
9633 PR gdb/23053
9634 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9635 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9636 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9637 regression.
9638
53d7df28
TT
96392018-04-12 Tom Tromey <tom@tromey.com>
9640
9641 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9642 (rust_evaluate_subexp): Likewise.
9643
70b33f19
PA
96442018-04-12 Pedro Alves <palves@redhat.com>
9645
9646 * procfs.c (procfs_detach): Make forward declaration's prototype
9647 match definition's protototype.
9648 (proc_get_LDT_entry): Remove stale do_cleanups call.
9649
436411b1
PA
96502018-04-12 Pedro Alves <palves@redhat.com>
9651
9652 * target.h (target_ops::to_has_exited): Delete.
9653 (target_has_exited): Delete.
9654 * target-delegates.c: Regenerate.
9655
20db9c52
PA
96562018-04-11 Pedro Alves <palves@redhat.com>
9657
9658 * target.c (fileio_fh_t::t): Add comment.
9659 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9660 (target_fileio_close): Handle a NULL target.
9661 (invalidate_fileio_fh): New.
9662 (target_close): Call it.
9663 * remote.c (remote_hostio_send_command): No longer check whether
9664 remote_desc is open.
9665
5ff79300
PA
96662018-04-11 Pedro Alves <palves@redhat.com>
9667
9668 * target.c (fileio_fh_t): Make it a named struct instead of a
9669 typedef.
9670 (fileio_fh_t::is_closed): New method.
9671 (DEF_VEC_O (fileio_fh_t)): Remove.
9672 (fileio_fhandles): Now a std::vector.
9673 (is_closed_fileio_fh): Delete.
9674 (acquire_fileio_fd): Adjust. Rename parameters.
9675 (release_fileio_fd): Adjust.
9676 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9677 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9678 (target_fileio_close): Adjust.
9679
6e22e10d
SM
96802018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9681
9682 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9683 index.
9684
731f534f
PA
96852018-04-10 Pedro Alves <palves@redhat.com>
9686
9687 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9688 (scoped_finish_thread_state): New class.
9689 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9690 cleanup.
9691 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9692 (fetch_inferior_event, normal_stop): Likewise.
9693 * thread.c (finish_thread_state_cleanup): Delete.
9694
d5f4488f
SM
96952018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9696 Pedro Alves <palves@redhat.com>
9697
9698 * value.c: Include "selftest.h" and "common/array-view.h".
9699 (struct range) <operator ==>: New.
9700 (test_ranges_contain): New.
9701 (check_ranges_vector): New.
9702 (test_insert_into_bit_range_vector): New.
9703 (_initialize_values): Register selftests.
9704 * common/array-view.h (operator==, operator!=): New.
9705
b24531ed
SM
97062018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9707
9708 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9709 an iterator.
9710 * inline-frame.c: Include <algorithm>.
9711 (struct inline_state): Add constructor.
9712 (inline_state_s): Remove.
9713 (DEF_VEC_O(inline_state_s)): Remove.
9714 (inline_states): Change type to std::vector.
9715 (find_inline_frame_state): Adjust to std::vector.
9716 (allocate_inline_frame_state): Remove.
9717 (clear_inline_frame_state): Adjust to std::vector.
9718 (skip_inline_frames): Adjust to std::vector.
9719
c252925c
SM
97202018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9721
9722 * tracepoint.h (struct trace_state_variable): Add constructor.
9723 <name>: Change type to std::string.
9724 * tracepoint.c (tsv_s): Remove.
9725 (DEF_VEC_O(tsv_s)): Remove.
9726 (tvariables): Change to std::vector.
9727 (create_trace_state_variable): Adjust to std::vector.
9728 (find_trace_state_variable): Likewise.
9729 (find_trace_state_variable_by_number): Likewise.
9730 (delete_trace_state_variable): Likewise.
9731 (trace_variable_command): Adjust to std::string.
9732 (delete_trace_variable_command): Likewise.
9733 (tvariables_info_1): Adjust to std::vector.
9734 (save_trace_state_variables): Likewise.
9735 (start_tracing): Likewise.
9736 (merge_uploaded_trace_state_variables): Adjust to std::vector
9737 and std::string.
9738 * target.h (struct target_ops)
9739 <to_download_trace_state_variable>: Pass reference to
9740 trace_state_variable.
9741 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9742 * target-delegates.c: Re-generate.
9743 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9744 (mi_tsv_deleted): Likewise.
9745 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9746 * remote.c (remote_download_trace_state_variable): Change
9747 pointer to reference and adjust.
9748 * make-target-delegates (parse_argtypes): Handle references.
9749 (write_function_header): Likewise.
9750 (munge_type): Likewise.
9751
c9638d26
SM
97522018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9753
9754 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9755 string_view-selftests.c.
9756 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9757 testsuite.
9758 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9759 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9760 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9761 * unittests/basic_string_view/element_access/char/1.cc:
9762 Likewise.
9763 * unittests/basic_string_view/element_access/char/empty.cc:
9764 Likewise.
9765 * unittests/basic_string_view/element_access/char/front_back.cc:
9766 Likewise.
9767 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9768 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9769 Likewise.
9770 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9771 Likewise.
9772 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9773 Likewise.
9774 * unittests/basic_string_view/operations/compare/char/1.cc:
9775 Likewise.
9776 * unittests/basic_string_view/operations/compare/char/13650.cc:
9777 Likewise.
9778 * unittests/basic_string_view/operations/copy/char/1.cc:
9779 Likewise.
9780 * unittests/basic_string_view/operations/data/char/1.cc:
9781 Likewise.
9782 * unittests/basic_string_view/operations/find/char/1.cc:
9783 Likewise.
9784 * unittests/basic_string_view/operations/find/char/2.cc:
9785 Likewise.
9786 * unittests/basic_string_view/operations/find/char/3.cc:
9787 Likewise.
9788 * unittests/basic_string_view/operations/find/char/4.cc:
9789 Likewise.
9790 * unittests/basic_string_view/operations/rfind/char/1.cc:
9791 Likewise.
9792 * unittests/basic_string_view/operations/rfind/char/2.cc:
9793 Likewise.
9794 * unittests/basic_string_view/operations/rfind/char/3.cc:
9795 Likewise.
9796 * unittests/basic_string_view/operations/substr/char/1.cc:
9797 Likewise.
9798 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9799 * unittests/string_view-selftests.c: New file.
9800
fdc11678
SM
98012018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9802
9803 * unittests/basic_string_view/capacity/1.cc: New file.
9804 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9805 * unittests/basic_string_view/cons/char/1.cc: New file.
9806 * unittests/basic_string_view/cons/char/2.cc: New file.
9807 * unittests/basic_string_view/cons/char/3.cc: New file.
9808 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9809 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9810 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9811 * unittests/basic_string_view/element_access/char/1.cc: New file.
9812 * unittests/basic_string_view/element_access/char/2.cc: New file.
9813 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9814 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9815 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9816 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9817 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9818 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9819 * unittests/basic_string_view/include.cc: New file.
9820 * unittests/basic_string_view/inserters/char/1.cc: New file.
9821 * unittests/basic_string_view/inserters/char/2.cc: New file.
9822 * unittests/basic_string_view/inserters/char/3.cc: New file.
9823 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9824 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9825 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9826 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9827 * unittests/basic_string_view/literals/types.cc: New file.
9828 * unittests/basic_string_view/literals/values.cc: New file.
9829 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9830 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9831 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9832 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9833 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9834 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9835 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9836 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9837 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9838 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9839 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9840 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9841 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9842 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9843 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9844 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9845 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9846 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9847 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9848 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9849 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9850 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9851 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9852 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9853 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9854 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9855 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9856 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9857 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9858 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9859 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9860 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9861 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9862 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9863 * unittests/basic_string_view/operators/char/2.cc: New file.
9864 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9865 * unittests/basic_string_view/range_access/char/1.cc: New file.
9866 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9867 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9868 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9869 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9870 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9871 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9872 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9873 * unittests/basic_string_view/typedefs.cc: New file.
9874 * unittests/basic_string_view/types/1.cc: New file.
9875
8345c4a2
SM
98762018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9877
9878 * common/gdb_string_view.h: Remove libstdc++ implementation
9879 details, adjust to gdb reality.
9880 * common/gdb_string_view.tcc: Likewise.
9881 * cli/cli-script.c (struct string_view): Remove.
9882 (user_args) <m_args>: Change element type to gdb::string_view.
9883 (user_args::insert_args): Adjust.
9884
7adcdf08
SM
98852018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9886
9887 * common/gdb_string_view.h: New file.
9888 * common/gdb_string_view.tcc: New file.
9889
41260ac2
SM
98902018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9891
9892 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9893 * configure: Re-generate.
9894
0bee6dd4
PA
98952018-04-09 Pedro Alves <palves@redhat.com>
9896
9897 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9898 (set_target_gdbarch): Call
9899 gdb::observers::architecture_changed.notify instead of
9900 observer_notify_architecture_changed.
9901
6f14adc5
SM
99022018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9903
9904 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9905 (do_restore_current_traceframe_cleanup): Remove.
9906 (restore_current_traceframe_cleanup_dtor): Remove.
9907 (make_cleanup_restore_current_traceframe): Remove.
9908 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9909 New.
9910 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9911 * infrun.c (fetch_inferior_event): Use
9912 scoped_restore_current_traceframe.
9913
b2bdb8cf
SM
99142018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9915
9916 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9917 Remove.
9918 <n_allocated_type_units>: Remove.
9919 <all_type_units>: Change to std::vector.
9920 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9921 to std::vector change.
9922 (dwarf2_per_objfile::get_cutu): Likewise.
9923 (dwarf2_per_objfile::get_tu): Likewise.
9924 (create_signatured_type_table_from_index): Likewise.
9925 (create_signatured_type_table_from_debug_names): Likewise.
9926 (dw2_symtab_iter_next): Likewise.
9927 (dw2_print_stats): Likewise.
9928 (dw2_expand_all_symtabs): Likewise.
9929 (dw2_expand_marked_cus): Likewise.
9930 (dw2_debug_names_iterator::next): Likewise.
9931 (dwarf2_initialize_objfile): Likewise.
9932 (add_signatured_type_cu_to_table): Likewise.
9933 (create_all_type_units): Likewise.
9934 (add_type_unit): Likewise.
9935 (struct tu_abbrev_offset): Add constructor.
9936 (build_type_psymtabs_1): Adjust to std::vector change.
9937 (print_tu_stats): Likewise.
9938 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9939 (write_debug_names): Likewise.
9940
b76e467d
SM
99412018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9942
9943 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9944 Make an std::vector.
9945 <n_comp_units>: Remove.
9946 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9947 to std::vector change.
9948 (dwarf2_per_objfile::get_cutu): Likewise.
9949 (dwarf2_per_objfile::get_cu): Likewise.
9950 (create_cus_from_index): Likewise.
9951 (create_addrmap_from_index): Likewise.
9952 (create_addrmap_from_aranges): Likewise.
9953 (dwarf2_read_index): Likewise.
9954 (dw2_find_last_source_symtab): Likewise.
9955 (dw2_map_symtabs_matching_filename): Likewise.
9956 (dw2_symtab_iter_next): Likewise.
9957 (dw2_print_stats): Likewise.
9958 (dw2_expand_all_symtabs): Likewise.
9959 (dw2_expand_symtabs_with_fullname): Likewise.
9960 (dw2_expand_marked_cus): Likewise.
9961 (dw2_map_symbol_filenames): Likewise.
9962 (create_cus_from_debug_names): Likewise.
9963 (dwarf2_read_debug_names): Likewise.
9964 (dw2_debug_names_iterator::next): Likewise.
9965 (dwarf2_initialize_objfile): Likewise.
9966 (set_partial_user): Likewise.
9967 (dwarf2_build_psymtabs_hard): Likewise.
9968 (read_comp_units_from_section): Remove arguments, adjust to
9969 std::vector change.
9970 (create_all_comp_units): Adjust to std::vector and
9971 read_comp_units_from_section changes.
9972 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9973 change.
9974 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9975 (psyms_seen_size): Likewise.
9976 (write_gdbindex): Likewise.
9977 (write_debug_names): Likewise.
9978
12359b5e
SM
99792018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9980
9981 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9982 with dwarf2_per_objfile.
9983 (create_cus_from_index): Likewise.
9984 (create_signatured_type_table_from_index): Likewise.
9985 (dwarf2_read_index): Likewise.
9986 (dwarf2_initialize_objfile): Likewise.
9987 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9988 per_cu rather than get_dwarf2_per_objfile.
9989
ff4c9fec
SM
99902018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9991
9992 * dwarf2read.h (struct signatured_type): Forward declare.
9993 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9994 New methods.
9995 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9996 (dw2_get_cutu): ...this.
9997 (dwarf2_per_objfile::get_cu): Rename from...
9998 (dw2_get_cu): ...this.
9999 (dwarf2_per_objfile::get_tu): New.
10000 (create_addrmap_from_index): Adjust.
10001 (create_addrmap_from_aranges): Adjust.
10002 (dw2_find_last_source_symtab): Adjust.
10003 (dw2_map_symtabs_matching_filename): Adjust.
10004 (dw2_symtab_iter_next): Adjust.
10005 (dw2_print_stats): Adjust.
10006 (dw2_expand_all_symtabs): Adjust.
10007 (dw2_expand_symtabs_with_fullname): Adjust.
10008 (dw2_expand_marked_cus): Adjust.
10009 (dw_expand_symtabs_matching_file_matcher): Adjust.
10010 (dw2_map_symbol_filenames): Adjust.
10011 (dw2_debug_names_iterator::next): Adjust.
10012 (dwarf2_initialize_objfile): Adjust.
10013 (set_partial_user): Adjust.
10014 (dwarf2_build_psymtabs_hard): Adjust.
10015
5ca3fcb6
SM
100162018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10017
10018 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10019 Remove unused variables.
10020 (dw2_map_symtabs_matching_filename): Likewise.
10021 (dwarf2_record_block_ranges): Likewise.
10022 (dwarf2_read_addr_index): Likewise.
10023 (follow_die_offset): Likewise.
10024
b2e586e8
SM
100252018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10026
10027 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10028 to symbol_file_add_main.
10029
7c4e78cf
SM
100302018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10031
10032 PR mi/22299
10033 * mi/mi-console.c (do_fputc_async_safe): New.
10034 (mi_console_file::write_async_safe): New.
10035 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10036 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10037 New.
10038 * ui-file.c (ui_file::putstrn): Adjust call to
10039 fputstrn_unfiltered.
10040 * utils.c (printchar): Replace do_fputs and do_fprintf
10041 parameters by do_fputc.
10042 (fputstr_filtered): Adjust call to printchar.
10043 (fputstr_unfiltered): Likewise.
10044 (fputstrn_filtered): Likewise.
10045 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10046 printchar.
10047 * utils.h (do_fputc_ftype): New typedef.
10048 (fputstrn_unfiltered): Add do_fputc parameter.
10049
5dc026d3
SM
100502018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10051
10052 * regformats/i386/i386-avx.dat: Remove.
10053
c912f608
SM
100542018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10055
10056 PR gdb/22979
10057 * amd64-tdep.c (amd64_none_init_abi): New function.
10058 (amd64_x32_none_init_abi): New function.
10059 (_initialize_amd64_tdep): Register handlers for x86-64 and
10060 x64_32 with GDB_OSABI_NONE.
10061 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10062 GDB_OSABI_NONE osabi.
10063
26540402
SM
100642018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10065
10066 PR gdb/22980
10067 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10068 GDB_OSABI_NONE.
10069 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10070 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10071
9018be22
SM
100722018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10073
10074 * common/byte-vector.h (char_vector): New type.
10075 * target.h (target_read_alloc): Return
10076 gdb::optional<byte_vector>.
10077 (target_read_stralloc): Return gdb::optional<char_vector>.
10078 (target_get_osdata): Return gdb::optional<char_vector>.
10079 * target.c (target_read_alloc_1): Templatize. Replacement
10080 manual memory management with vector.
10081 (target_read_alloc): Change return type, adjust.
10082 (target_read_stralloc): Change return type, adjust.
10083 (target_get_osdata): Change return type, adjust.
10084 * auxv.c (struct auxv_info) <length>: Remove.
10085 <data>: Change type to gdb::optional<byte_vector>.
10086 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10087 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10088 (target_auxv_search): Adjust.
10089 (fprint_target_auxv): Adjust.
10090 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10091 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10092 (linux_make_corefile_notes): Adjust.
10093 * osdata.c (get_osdata): Adjust.
10094 * remote.c (remote_get_threads_with_qxfer): Adjust.
10095 (remote_memory_map): Adjust.
10096 (remote_traceframe_info): Adjust.
10097 (btrace_read_config): Adjust.
10098 (remote_read_btrace): Adjust.
10099 (remote_pid_to_exec_file): Adjust.
10100 * solib-aix.c (solib_aix_get_library_list): Adjust.
10101 * solib-dsbt.c (decode_loadmap): Don't free buf.
10102 (dsbt_get_initial_loadmaps): Adjust.
10103 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10104 * solib-target.c (solib_target_current_sos): Adjust.
10105 * tracepoint.c (sdata_make_value): Adjust.
10106 * xml-support.c (xinclude_start_include): Adjust.
10107 (xml_fetch_content_from_file): Adjust.
10108 * xml-support.h (xml_fetch_another): Change return type.
10109 (xml_fetch_content_from_file): Change return type.
10110 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10111 * xml-tdesc.c (file_read_description_xml): Adjust.
10112 (fetch_available_features_from_target): Change return type.
10113 (target_fetch_description_xml): Adjust.
10114 (target_read_description_xml): Adjust.
10115
14c88955
TT
101162018-04-06 Tom Tromey <tom@tromey.com>
10117
10118 * value.c (~value): Update.
10119 (struct value) <contents>: Now unique_xmalloc_ptr.
10120 (value_contents_bits_eq, allocate_value_contents)
10121 (value_contents_raw, value_contents_all_raw)
10122 (value_contents_for_printing, value_contents_for_printing_const)
10123 (set_value_enclosing_type): Update.
10124
0c7e6dd8
TT
101252018-04-06 Tom Tromey <tom@tromey.com>
10126
10127 * value.c (range_s): Remove typedef, VEC.
10128 (struct range): Add operator<.
10129 (range_lessthan): Remove.
10130 (ranges_contain): Change type.
10131 (~value): Update.
10132 (struct value) <unavailable, optimized_out>: Now std::vector.
10133 (value_entirely_available)
10134 (value_entirely_covered_by_range_vector)
10135 (value_entirely_unavailable, value_entirely_optimized_out):
10136 Update.
10137 (insert_into_bit_range_vector): Change argument type.
10138 (find_first_range_overlap): Likewise.
10139 (struct ranges_and_idx, value_contents_bits_eq)
10140 (require_not_optimized_out, require_available): Update.
10141 (ranges_copy_adjusted): Change argument types.
10142 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10143
2c8331b9
TT
101442018-04-06 Tom Tromey <tom@tromey.com>
10145
10146 * value.c (~value): Update.
10147 (struct value) <parent>: Now a value_ref_ptr.
10148 (value_parent, set_value_parent, value_address, value_copy):
10149 Update.
10150
466ce3ae
TT
101512018-04-06 Tom Tromey <tom@tromey.com>
10152
10153 * value.c (struct value): Add constructor, destructor, and member
10154 initializers.
10155 (allocate_value_lazy, value_decref): Update.
10156
062d818d
TT
101572018-04-06 Tom Tromey <tom@tromey.com>
10158
10159 * value.c (struct value) <released, next>: Remove.
10160 (all_values): Now a std::vector.
10161 (allocate_value_lazy): Update.
10162 (value_next): Remove.
10163 (value_mark, value_free_to_mark, release_value)
10164 (value_release_to_mark): Update.
10165
a6535de1
TT
101662018-04-06 Tom Tromey <tom@tromey.com>
10167
10168 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10169 (free_value_chain): Remove.
10170 * value.c (free_value_chain): Remove.
10171 (value_release_to_mark): Return a std::vector.
10172 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10173 std::vector.
10174 (check_condition): Update.
10175 * eval.c (fetch_subexp_value): Change "val_chain" to a
10176 std::vector.
10177 * breakpoint.c (update_watchpoint): Update.
10178 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10179
b5621201
TT
101802018-04-06 Tom Tromey <tom@tromey.com>
10181
10182 * value.h (free_all_values): Remove.
10183 * value.c (free_all_values): Remove.
10184
4d0266a0
TT
101852018-04-06 Tom Tromey <tom@tromey.com>
10186
10187 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10188 (value_history_chain, value_history_count): Remove.
10189 (value_history): New global.
10190 (record_latest_value, access_value_history, show_values)
10191 (preserve_values): Update.
10192
b4d61099
TT
101932018-04-06 Tom Tromey <tom@tromey.com>
10194
10195 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10196 * varobj.c (varobj_set_display_format, varobj_set_value)
10197 (install_default_visualizer, construct_visualizer)
10198 (install_new_value, ~varobj, varobj_get_value_type)
10199 (my_value_of_variable, varobj_editable_p): Update.
10200 * c-varobj.c (c_describe_child, c_value_of_variable)
10201 (cplus_number_of_children, cplus_describe_child): Update.
10202 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10203 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10204 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10205
9b558729
TT
102062018-04-06 Tom Tromey <tom@tromey.com>
10207
10208 * printcmd.c (last_examine_address): Change type to
10209 value_ref_ptr.
10210 (do_examine, x_command): Update.
10211
850645cf
TT
102122018-04-06 Tom Tromey <tom@tromey.com>
10213
10214 * value.c (release_value): Update.
10215 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10216 (struct bpstats) <val>: Now a value_ref_ptr.
10217 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10218 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10219 (~watchpoint, print_it_watchpoint, watch_command_1)
10220 (invalidate_bp_value_on_memory_change): Update.
10221
22bc8444
TT
102222018-04-06 Tom Tromey <tom@tromey.com>
10223
10224 * varobj.c (varobj_clear_saved_item)
10225 (update_dynamic_varobj_children, install_new_value, ~varobj):
10226 Update.
10227 * value.h (value_incref): Move declaration earlier.
10228 (value_decref): Rename from value_free.
10229 (struct value_ref_policy): New.
10230 (value_ref_ptr): New typedef.
10231 (struct value_deleter): Remove.
10232 (gdb_value_up): Remove typedef.
10233 (release_value): Change return type.
10234 (release_value_or_incref): Remove.
10235 * value.c (set_value_parent): Update.
10236 (value_incref): Change return type.
10237 (value_decref): Rename from value_free.
10238 (value_free_to_mark, free_all_values, free_value_chain): Update.
10239 (release_value): Return value_ref_ptr.
10240 (release_value_or_incref): Remove.
10241 (record_latest_value, set_internalvar, clear_internalvar):
10242 Update.
10243 * stack.c (info_frame_command): Don't call value_free.
10244 * python/py-value.c (valpy_dealloc, valpy_new)
10245 (value_to_value_object): Update.
10246 * printcmd.c (do_examine): Update.
10247 * opencl-lang.c (lval_func_free_closure): Update.
10248 * mi/mi-main.c (register_changed_p): Don't call value_free.
10249 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10250 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10251 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10252 value_free.
10253 * guile/scm-value.c (vlscm_free_value_smob)
10254 (vlscm_scm_from_value): Update.
10255 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10256 (frame_unwind_register_unsigned, get_frame_register_bytes)
10257 (put_frame_register_bytes): Don't call value_free.
10258 * findvar.c (address_from_register): Don't call value_free.
10259 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10260 * dwarf2loc.c (entry_data_value_free_closure)
10261 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10262 (dwarf2_evaluate_loc_desc_full): Update.
10263 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10264 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10265 (~watchpoint, watch_command_1)
10266 (invalidate_bp_value_on_memory_change): Update.
10267 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10268
7f8a5d38
SM
102692018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10270
10271 PR gdb/23022
10272 * warning.m4: Add -Wno-error=deprecated-register.
10273 * configure: Re-generate.
10274
8a76bd3b
TT
102752018-04-05 Tom Tromey <tom@tromey.com>
10276
10277 * linespec.h: Remove include of "vec.h".
10278
8e8d776e
TT
102792018-04-05 Tom Tromey <tom@tromey.com>
10280
10281 * linespec.c (typep): Remove typedef.
10282 (find_methods, find_superclass_methods): Take a std::vector.
10283 (find_method): Use std::vector.
10284
9b2f8581
TT
102852018-04-05 Tom Tromey <tom@tromey.com>
10286
10287 * utils.c (compare_strings): Remove.
10288 * utils.h (compare_strings): Remove.
10289 * objc-lang.h (find_imps): Update.
10290 * objc-lang.c (find_methods): Take a std::vector.
10291 (uniquify_strings, find_imps): Likewise.
10292 * linespec.c (find_methods): Take a std::vector.
10293 (decode_objc): Use std::vector.
10294 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10295 a std::vector.
10296 (find_method, find_function_symbols): Use std::vector.
10297
459a2e4c
TT
102982018-04-05 Tom Tromey <tom@tromey.com>
10299
10300 * completer.c (completion_tracker::completion_tracker): Remove
10301 cast.
10302 (completion_tracker::discard_completions): Likewise.
10303 * breakpoint.c (ambiguous_names_p): Remove cast.
10304 * ada-lang.c (_initialize_ada_language): Remove cast.
10305 * utils.h (streq): Update.
10306 (streq_hash): Add new declaration.
10307 * utils.c (streq): Return bool.
10308 (streq_hash): New function.
10309
9be2c17a
TT
103102018-04-05 Tom Tromey <tom@tromey.com>
10311
10312 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10313 Remove a string copy.
10314
f73c6ece
TT
103152018-04-05 Tom Tromey <tom@tromey.com>
10316
10317 * linespec.c (filter_results): Use std::vector.
10318 (decode_line_2, decode_line_full): Update.
10319
53a0f8a2
TT
103202018-04-05 Tom Tromey <tom@tromey.com>
10321
10322 * linespec.c (canonical_to_fullform): Return std::string.
10323 (filter_results): Update.
10324 (struct decode_line_2_item): Add constructor.
10325 <fullform, displayform>: Now std::string.
10326 (decode_line_2_compare_items): Now a std::sort comparator.
10327 (decode_line_2): Update.
10328
a5b5adf5
TT
103292018-04-05 Tom Tromey <tom@tromey.com>
10330
10331 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10332 (unexpected_linespec_error): Update.
10333 (linespec_parse_basic, parse_linespec): Update.
10334
6a307fc5
TT
103352018-04-05 Tom Tromey <tom@tromey.com>
10336
10337 * linespec.c (linespec_parse_basic): Reindent.
10338
41c1efc6
TT
103392018-04-05 Tom Tromey <tom@tromey.com>
10340
10341 * minsyms.h (iterate_over_minimal_symbols): Update.
10342 * minsyms.c (iterate_over_minimal_symbols): Take a
10343 gdb::function_view.
10344 * linespec.c (struct collect_minsyms): Remove.
10345 (compare_msyms): Now a std::sort comparator.
10346 (add_minsym): Add parameters.
10347 (search_minsyms_for_name): Update. Use std::vector.
10348
c5edbf3d
TT
103492018-04-03 Tom Tromey <tom@tromey.com>
10350
10351 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10352 gdb::byte_vector.
10353
b39efc48
WP
103542018-04-02 Weimin Pan <weimin.pan@oracle.com>
10355
10356 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10357
121ad66c 103582018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
10359
10360 PR gdb/16959
10361 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10362 printing static type.
10363
09473be8
TT
103642018-04-01 Tom Tromey <tom@tromey.com>
10365
10366 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10367 (rs6000_xfer_shared_libraries): Update.
10368
ec1f2d91
SM
103692018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10370
10371 * common/gdb_vecs.h (char_ptr): Remove.
10372 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10373
d8611974
SM
103742018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10375
10376 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10377 with std::vector.
10378 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10379
a18ba4e4
SM
103802018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10381
10382 * tracepoint.h (struct uploaded_tp): Initialize fields.
10383 <actions, step_actions, cmd_strings>: Change type to
10384 std::vector<char *>.
10385 * tracepoint.c (get_uploaded_tp): Allocate with new.
10386 (free_uploaded_tps): Free with delete.
10387 (parse_tracepoint_definition): Adjust to std::vector change.
10388 * breakpoint.c (read_uploaded_action): Likewise.
10389 (create_tracepoint_from_upload): Likewise.
10390 * ctf.c (ctf_write_uploaded_tp): Likewise.
10391 (SET_ARRAY_FIELD): Likewise.
10392 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10393
a7961323
TT
103942018-03-30 Tom Tromey <tom@tromey.com>
10395
10396 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10397 std::unique_ptr.
10398 (svr4_keep_data_in_core): Update.
10399 (svr4_read_so_list): Update.
10400
e83e4e24
TT
104012018-03-30 Tom Tromey <tom@tromey.com>
10402
10403 * windows-nat.c (handle_output_debug_string, handle_exception):
10404 Update.
10405 * target.h (target_read_string): Update.
10406 * target.c (target_read_string): Change "string" to
10407 unique_xmalloc_ptr.
10408 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10409 Update.
10410 * solib-frv.c (frv_current_sos): Update.
10411 * solib-dsbt.c (dsbt_current_sos): Update.
10412 * solib-darwin.c (darwin_current_sos): Update.
10413 * linux-thread-db.c (inferior_has_bug): Update.
10414 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10415 Update. Remove alloca.
10416 * ada-lang.c (ada_main_name): Update.
10417
263db9a1
TT
104182018-03-30 Tom Tromey <tom@tromey.com>
10419
10420 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10421 (struct dwo_file_deleter): New.
10422 (dwo_file_up): New typedef.
10423 (open_and_init_dwo_file): Use dwo_file_up.
10424 (free_dwo_file_cleanup): Remove.
10425
5dafb3d1
TT
104262018-03-30 Tom Tromey <tom@tromey.com>
10427
10428 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10429 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10430
11ed8cad
TT
104312018-03-30 Tom Tromey <tom@tromey.com>
10432
10433 * dwarf2read.c (class free_cached_comp_units): New class.
10434 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10435 (free_cached_comp_units): Remove function.
10436
9ae79dac
TT
104372018-03-30 Tom Tromey <tom@tromey.com>
10438
10439 * utils.h (make_cleanup_unpush_target): Remove.
10440 * inf-ptrace.c (struct target_unpusher): New.
10441 (target_unpush_up) New typedef.
10442 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10443 target_unpush_up.
10444 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10445
5aa89276
TT
104462018-03-27 Tom Tromey <tom@tromey.com>
10447
10448 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10449
1dbeed45
TT
104502018-03-27 Pedro Alves <palves@redhat.com>
10451 Tom Tromey <tom@tromey.com>
10452
10453 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10454 destructor. Now a class.
10455 (gdb_readline_wrapper_cleanup): Remove function.
10456 (gdb_readline_wrapper): Remove cleanups.
10457
c819b2c0
TT
104582018-03-27 Tom Tromey <tom@tromey.com>
10459
10460 * typeprint.h (struct type_print_options) <local_typedefs,
10461 global_typedefs>: Remove "struct" keyword.
10462 (class typedef_hash_table): New class.
10463 (recursively_update_typedef_hash, add_template_parameters)
10464 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10465 (find_typedef_in_hash): Don't declare.
10466 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10467 (typedef_hash_table::recursively_update): Rename from
10468 recursively_update_typedef_hash. Now a member.
10469 (typedef_hash_table::add_template_parameters): Rename from
10470 add_template_parameters. Now a member.
10471 (typedef_hash_table::typedef_hash_table): Now a constructor;
10472 rename from create_typedef_hash.
10473 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10474 rename from free_typedef_hash.
10475 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10476 (do_free_global_table): Remove.
10477 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10478 from copy_type_recursive.
10479 (create_global_typedef_table): Remove.
10480 (typedef_hash_table::find_global_typedef): Now a member of
10481 typedef_hash_table.
10482 (typedef_hash_table::find_typedef): Rename from
10483 find_typedef_in_hash; now a member.
10484 (whatis_exp): Update.
10485 * extension.h (struct ext_lang_type_printers): Add constructor and
10486 destructor.
10487 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10488 declare.
10489 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10490 Now a constructor; rename from start_ext_lang_type_printers.
10491 (ext_lang_type_printers): Now a destructor; rename from
10492 free_ext_lang_type_printers.
10493 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10494 Update.
10495 (c_type_print_base_struct_union): Update. Remove cleanups.
10496
608219fb
TT
104972018-03-27 Tom Tromey <tom@tromey.com>
10498
10499 * dwarf-index-write.c: Include <cmath>.
10500
3fcded8f
JB
105012018-03-27 Joel Brobecker <brobecker@adacore.com>
10502
10503 * NEWS: Add entry describing new "set|show varsize-limit" command.
10504 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10505 command.
10506 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10507 "set variable".
10508
cd4fb1b2
SM
105092018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10510
10511 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10512 dwarf-index-write.c
10513 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10514 * dwarf-index-common.c: New file.
10515 * dwarf-index-common.h: New file.
10516 * dwarf-index-write.c: New file.
10517 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10518 (struct dwarf2_section_info): Move from here.
10519 (dwarf2_section_info_def): Likewise.
10520 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10521 (offset_type): Likewise.
10522 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10523 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10524 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10525 (byte_swap): Likewise.
10526 (MAYBE_SWAP): Likewise.
10527 (dwarf2_per_cu_ptr): Likewise.
10528 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10529 (struct tu_stats): Likewise.
10530 (struct dwarf2_per_objfile): Likewise.
10531 (struct dwarf2_per_cu_data): Likewise.
10532 (struct signatured_type): Likewise.
10533 (sig_type_ptr): Likewise.
10534 (DEF_VEC_P (sig_type_ptr)): Likewise.
10535 (INDEX4_SUFFIX): Likewise.
10536 (INDEX5_SUFFIX): Likewise.
10537 (DEBUG_STR_SUFFIX): Likewise.
10538 (dwarf2_read_section): Make non-static.
10539 (mapped_index_string_hash): Move from here.
10540 (dwarf5_djb_hash): Likewise.
10541 (file_write): Likewise.
10542 (class data_buf): Likewise.
10543 (struct symtab_index_entry): Likewise.
10544 (struct mapped_symtab): Likewise.
10545 (find_slot): Likewise.
10546 (hash_expand): Likewise.
10547 (add_index_entry): Likewise.
10548 (uniquify_cu_indices): Likewise.
10549 (class c_str_view): Likewise.
10550 (class c_str_view_hasher): Likewise.
10551 (class vector_hasher): Likewise.
10552 (write_hash_table): Likewise.
10553 (psym_index_map): Likewise.
10554 (struct addrmap_index_data): Likewise.
10555 (add_address_entry): Likewise.
10556 (add_address_entry_worker): Likewise.
10557 (write_address_map): Likewise.
10558 (symbol_kind): Likewise.
10559 (write_psymbols): Likewise.
10560 (struct signatured_type_index_data): Likewise.
10561 (write_one_signatured_type): Likewise.
10562 (recursively_count_psymbols): Likewise.
10563 (recursively_write_psymbols): Likewise.
10564 (class debug_names): Likewise.
10565 (check_dwarf64_offsets): Likewise.
10566 (psyms_seen_size): Likewise.
10567 (write_gdbindex): Likewise.
10568 (write_debug_names): Likewise.
10569 (assert_file_size): Likewise.
10570 (write_psymtabs_to_index): Likewise.
10571 (save_gdb_index_command): Likewise.
10572 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10573 command.
10574 * dwarf2read.h: New file.
10575
59cc4834
JB
105762018-03-27 Joel Brobecker <brobecker@adacore.com>
10577
10578 PR gdb/22670
10579 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10580 symbol name if the CU's language stores symbol names in linkage
10581 format.
10582 * language.h (struct language_defn)
10583 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10584 all instances of this struct.
10585
67501539
TT
105862018-03-26 Tom Tromey <tom@tromey.com>
10587
10588 * stack.c (backtrace_command_1): Remove verbose code.
10589
76c939ac
TT
105902018-03-26 Tom Tromey <tom@tromey.com>
10591
10592 * python/py-framefilter.c (py_print_type): Don't catch
10593 exceptions. Return void.
10594 (py_print_value): Likewise.
10595 (py_print_single_arg): Likewise.
10596 (enumerate_args): Don't catch exceptions.
10597 (py_print_args): Likewise.
10598 (py_print_frame): Likewise.
10599 (gdbpy_apply_frame_filter): Catch exceptions here.
10600
9507b29c
TT
106012018-03-26 Tom Tromey <tom@tromey.com>
10602
10603 * stack.c (_initialize_stack): Remove trailing newlines from help
10604 text. Add "Usage" line to "backtrace" help.
10605
eb68e487
TT
106062018-03-26 Tom Tromey <tom@tromey.com>
10607
10608 PR python/16486:
10609 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10610
1f111921
TT
106112018-03-26 Tom Tromey <tom@tromey.com>
10612
10613 * python/py-framefilter.c (py_print_single_arg): Return
10614 EXT_LANG_BT_ERROR from catch.
10615
fb7eb8b5
TT
106162018-03-26 Tom Tromey <tom@tromey.com>
10617
10618 PR backtrace/15584:
10619 * stack.c (backtrace_command_1): Move some code into no-filters
10620 "if".
10621
4ca59a9f
TT
106222018-03-26 Tom Tromey <tom@tromey.com>
10623
10624 * python/py-framefilter.c (throw_quit_or_print_exception): New
10625 function.
10626 (gdbpy_apply_frame_filter): Use it.
10627
92256134
TT
106282018-03-26 Tom Tromey <tom@tromey.com>
10629
10630 PR cli/17716:
10631 * python/py-framefilter.c (py_print_type, py_print_value)
10632 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10633 RETURN_MASK_ERROR.
10634
7a630bc2
TT
106352018-03-26 Tom Tromey <tom@tromey.com>
10636
10637 * python/py-framefilter.c (enumerate_args): Use
10638 gdb::unique_xmalloc_ptr.
10639
63283d4a
TT
106402018-03-26 Tom Tromey <tom@tromey.com>
10641
10642 * python/py-framefilter.c (py_print_frame): Return
10643 EXT_LANG_BT_OK.
10644 (gdbpy_apply_frame_filter): Update comment.
10645 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10646 Remove.
10647 <EXT_LANG_BT_NO_FILTERS>: Change value.
10648
978d6c75
TT
106492018-03-26 Tom Tromey <tom@tromey.com>
10650
10651 PR backtrace/15582:
10652 * stack.c (backtrace_command): Parse "hide" argument.
10653 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10654 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10655 constant.
10656
1cf7e640
TT
106572018-03-26 Tom Tromey <tom@tromey.com>
10658
10659 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10660 add "flags".
10661 (backtrace_command): Remove "fulltrace", add "flags".
10662
ea3b0687
TT
106632018-03-26 Tom Tromey <tom@tromey.com>
10664
10665 * stack.c (backtrace_command): Rewrite command line parsing.
10666
9f034d75
SM
106672018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10668
10669 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10670
ce1459e5
SM
106712018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10672
10673 * filename-seen-cache.h: Add include guard.
10674
4f7ae6f5
KS
106752018-03-26 Keith Seitz <keiths@redhat.com>
10676
10677 * symfile.c (place_section): Remove "struct" from section_addr_info
10678 in comment.
10679 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10680 "struct" keyword from section_addr_info.
10681
5cd3e386
AH
106822018-03-26 Alan Hayward <alan.hayward@arm.com>
10683
10684 * regformats/regdef.h (reg): Add constructors.
10685
3e5ef9a4
PA
106862018-03-25 Pedro Alves <palves@redhat.com>
10687
10688 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10689 if then/else bodies in var_func_name extraction.
10690
c88d2fcc 106912018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
10692
10693 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10694 lookup_minimal_symbol() to find symbol entry.
10695 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10696
b7fee5a3
KS
106972018-03-23 Keith Seitz <keiths@redhat.com>
10698
10699 PR c++/22968
10700 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10701 nested type definitions for C++, too.
10702
2cc9b304
TT
107032018-03-23 Tom Tromey <tom@tromey.com>
10704
10705 * machoread.c (struct oso_el): Add a constructor. Don't define as
10706 a typedef.
10707 (macho_register_oso): Remove.
10708 (macho_symtab_read): Take a std::vector.
10709 (oso_el_compare_name): Now a std::sort comparator.
10710 (macho_symfile_read_all_oso): Take a std::vector.
10711 (macho_symfile_read): Use std::vector. Remove cleanups.
10712
a2b2bc12
TT
107132018-03-22 Tom Tromey <tom@tromey.com>
10714
10715 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10716 (record_full_goto_bookmark): Use std::string.
10717
7a8f494c
PFC
107182018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10719
10720 PR tdep/18295
10721 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10722 a single mask.
10723
dd6d677f
PFC
107242018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10725
10726 * rs6000-tdep.c (store_insn_p): New function.
10727 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10728 and cr_reg to their unshifted values. Use store_insn_p to
10729 match LR saves using either R1 or fdata->alloca_reg. Use
10730 store_insn_p to match CR saves. Set alloca_reg_offset
10731 when alloca_reg and framep are set. Remove lr_reg shift
10732 when assigning to fdata->lr_register.
10733
26d6cec4
AA
107342018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10735
10736 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10737 command line args instead of emitting a warning.
10738
5d9310c4
SM
107392018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10740
10741 * tracepoint.h (struct static_tracepoint_marker): Initialize
10742 fields, define default constructor, move constructor and move
10743 assignment, disable the rest.
10744 <str_id, extra>: Make std::string.
10745 (release_static_tracepoint_marker): Remove.
10746 (free_current_marker): Remove.
10747 * tracepoint.c (free_current_marker): Remove.
10748 (parse_static_tracepoint_marker_definition): Adjust to
10749 std::string, use new hex2str overload.
10750 (release_static_tracepoint_marker): Remove.
10751 (print_one_static_tracepoint_marker): Get marker by reference
10752 and adjust to std::string.
10753 (info_static_tracepoint_markers_command): Adjust to std::vector
10754 changes
10755 * target.h (static_tracepoint_marker_p): Remove typedef.
10756 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10757 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10758 bool.
10759 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10760 * target-debug.h
10761 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10762 (target_debug_print_std_vector_static_tracepoint_marker): New.
10763 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10764 to...
10765 (target_debug_print_static_tracepoint_marker_p): ... this.
10766 * target-delegates.c: Re-generate.
10767 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10768 Make std::string.
10769 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10770 (decode_static_tracepoint_spec): Adjust to std::vector.
10771 (tracepoint_print_one_detail): Adjust to std::string.
10772 (strace_marker_decode_location): Adjust to std::string.
10773 (update_static_tracepoint): Adjust to std::string, remove call
10774 to release_static_tracepoint_marker.
10775 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10776 Adjust to std::vector.
10777 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10778 (remote_static_tracepoint_markers_by_strid): Adjust to
10779 std::vector.
10780 * common/rsp-low.h (hex2str): New overload with explicit count
10781 of bytes.
10782 * common/rsp-low.c (hex2str): New overload with explicit count
10783 of bytes.
10784 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10785 (_initialize_rsp_low_selftests): Add test_hex2str test.
10786 * unittests/tracepoint-selftests.c
10787 (test_parse_static_tracepoint_marker_definition): Adjust to
10788 std::string.
10789
62c222b6
SM
107902018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10791
10792 * tracepoint.c (parse_static_tracepoint_marker_definition):
10793 Consider case where the definition is followed by more
10794 definitions.
10795 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10796 tracepoint-selftests.c.
10797 * unittests/tracepoint-selftests.c: New.
10798
7eb2418f
PFC
107992018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10800
10801 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10802 Carvalho.
10803
7cbe16e9
SR
108042018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10805
3d6b3b82 10806 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 10807
4ee89e90
SR
108082018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10809
3d6b3b82 10810 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 10811
92630041
TT
108122018-03-19 Tom Tromey <tom@tromey.com>
10813
10814 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10815 "IDENT" production.
10816
76727919
TT
108172018-03-19 Pedro Alves <palves@redhat.com>
10818 Tom Tromey <tom@tromey.com>
10819
10820 * unittests/observable-selftests.c: New file.
10821 * common/observable.h: New file.
10822 * observable.h: New file.
10823 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10824 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10825 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10826 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10827 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10828 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10829 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10830 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10831 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10832 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10833 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10834 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10835 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10836 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10837 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10838 tui/tui-interp.c, valops.c: Update all users.
10839 * tui/tui-hooks.c (tui_bp_created_observer)
10840 (tui_bp_deleted_observer, tui_bp_modified_observer)
10841 (tui_inferior_exit_observer, tui_before_prompt_observer)
10842 (tui_normal_stop_observer, tui_register_changed_observer):
10843 Remove.
10844 (tui_observers_token): New global.
10845 (attach_or_detach, tui_attach_detach_observers): New functions.
10846 (tui_install_hooks, tui_remove_hooks): Use
10847 tui_attach_detach_observers.
10848 * record-btrace.c (record_btrace_thread_observer): Remove.
10849 (record_btrace_thread_observer_token): New global.
10850 * observer.sh: Remove.
10851 * observer.c: Rename to observable.c.
10852 * observable.c (namespace gdb_observers): Define new objects.
10853 (observer_debug): Move into gdb_observers namespace.
10854 (struct observer, struct observer_list, xalloc_observer_list_node)
10855 (xfree_observer_list_node, generic_observer_attach)
10856 (generic_observer_detach, generic_observer_notify): Remove.
10857 (_initialize_observer): Update.
10858 Don't include observer.inc.
10859 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10860 (clean mostlyclean): Likewise.
10861 (observer.h, observer.inc): Remove targets.
10862 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10863 (COMMON_SFILES): Use observable.c, not observer.c.
10864 * .gitignore: Remove observer.h.
10865
1cb1f3da
TT
108662018-03-18 Tom Tromey <tom@tromey.com>
10867
10868 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10869 gdb::def_vector.
10870 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10871
a06ab151
TT
108722018-03-17 Tom Tromey <tom@tromey.com>
10873
10874 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10875
770623f7
TT
108762018-03-17 Tom Tromey <tom@tromey.com>
10877
10878 * target.c (class scoped_target_fd): New.
10879 (target_fileio_close_cleanup): Remove.
10880 (target_fileio_read_alloc_1): Use scoped_target_fd.
10881
39be3c7e
SM
108822018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10883
10884 * silent-rules.mk: New.
10885 * Makefile.in: Include silent-rules.mk
10886 (srcdir, VPATH, top_srcdir): Move up.
10887 (COMPILE): Add ECHO_CXX.
10888 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10889 (init.c): Add ECHO_INIT_C.
10890 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10891 (version.c): Add ECHO_GEN.
10892 (printcmd.o): Add ECHO_CXX.
10893 (target-float.o): Add ECHO_CXX.
10894 (ada-exp.o): Add ECHO_CXX.
10895 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10896 (insight$(EXEEXT)): Add ECHO_CXXLD.
10897 * gnulib/configure.ac: Add AM_SILENT_RULES.
10898 * gnulib/aclocal.m4: Re-generate.
10899 * gnulib/configure: Re-generate.
10900 * gnulib/import/Makefile.in: Re-generate.
10901
37e136b1
TT
109022018-03-16 Tom Tromey <tom@tromey.com>
10903
10904 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10905 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10906 * utils.c (do_free_section_addr_info)
10907 (make_cleanup_free_section_addr_info): Remove.
10908 * symfile.h (struct other_sections): Add constructor.
10909 (struct section_addr_info): Remove.
10910 (section_addr_info): New typedef.
10911 (struct sym_fns) <sym_offsets>: Change type of parameter.
10912 (build_section_addr_info_from_objfile)
10913 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10914 (default_symfile_offsets, symbol_file_add)
10915 (symbol_file_add_from_bfd)
10916 (build_section_addr_info_from_section_table): Update.
10917 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10918 * symfile.c (alloc_section_addr_info): Remove.
10919 (build_section_addr_info_from_section_table): Change return type.
10920 Update.
10921 (build_section_addr_info_from_bfd)
10922 (build_section_addr_info_from_objfile): Likewise.
10923 (free_section_addr_info): Remove.
10924 (relative_addr_info_to_section_offsets): Change type of "addrs".
10925 (addrs_section_compar): Now a std::sort comparator.
10926 (addrs_section_sort): Change return type.
10927 (addr_info_make_relative): Change type of "addrs". Update.
10928 (default_symfile_offsets, syms_from_objfile_1)
10929 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10930 (symbol_file_add_separate): Update.
10931 (symbol_file_add): Change type of "addrs". Update.
10932 (add_symbol_file_command): Update. Remove cleanups.
10933 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10934 cleanups.
10935 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10936 * solib.c (solib_read_symbols): Update.
10937 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10938 * machoread.c (macho_symfile_offsets): Update.
10939 * jit.c (jit_bfd_try_read_symtab): Update.
10940
03afa6ef
SM
109412018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10942
10943 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10944 unittests/utils-selftests.c.
10945 * unittests/utils-selftests.c: New file.
10946
3ae9ce5d
TT
109472018-03-14 Tom Tromey <tom@tromey.com>
10948
10949 PR cli/14977:
10950 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10951 for NULL.
10952
b8c2339b
TT
109532018-03-14 Tom Tromey <tom@tromey.com>
10954
10955 PR cli/19918:
10956 * printcmd.c (printf_pointer): Allow "-" in format.
10957
80ae639d
TT
109582018-03-14 Tom Tromey <tom@tromey.com>
10959
10960 * printcmd.c (_initialize_printcmd): Add usage to printf.
10961
0d671d99
YQ
109622018-03-14 Yao Qi <qiyao@sourceware.org>
10963
10964 * MAINTAINERS: Update my email address.
10965
b577b6af
TT
109662018-03-13 Tom Tromey <tom@tromey.com>
10967
10968 * machoread.c (macho_check_dsym): Change filenamep to a
10969 std::string*.
10970 (macho_symfile_read): Update.
10971 * symfile.c (load_command): Use std::string.
10972
89a3b63e
AB
109732018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10974
10975 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10976 to error message string.
10977 (riscv_register_name): Use xsnprintf instead of sprintf.
10978 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10979 internal_error.
10980 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10981 error.
10982 (riscv_push_dummy_call): Likewise.
10983
984c7238
TT
109842018-03-12 Tom Tromey <tom@tromey.com>
10985
10986 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10987 Use gdb::byte_vector.
10988 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10989
933522d1
YQ
109902018-03-12 Yao Qi <yao.qi@linaro.org>
10991
10992 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10993 parameter type to readable_regcache.
10994 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10995 the declaration.
10996
be2daae6
TT
109972018-03-11 Tom Tromey <tom@tromey.com>
10998
10999 * dwarf2read.c (struct nextfield): Add initializers.
11000 (struct nextfnfield): Remove.
11001 (struct fnfieldlist): Add initializers. Remove "length" and
11002 "head", use std::vector.
11003 (struct decl_field_list): Remove.
11004 (struct field_info): Add initializers.
11005 <fields, baseclasses>: Now std::vector.
11006 <nbaseclasses, nfnfields, typedef_field_list_count,
11007 nested_types_list_count>: Remove.
11008 (dwarf2_add_field, dwarf2_add_type_defn)
11009 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11010 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11011 (process_structure_scope): Update.
11012
484cf504
TT
110132018-03-11 Tom Tromey <tom@tromey.com>
11014
11015 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11016 for use by std::sort.
11017 (build_type_psymtabs_1): Use std::vector.
11018
9bd8e0b0
EZ
110192018-03-09 Eli Zaretskii <eliz@gnu.org>
11020
11021 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11022 and LIBMPFR in the printed configuration.
11023
5dc1a704
TT
110242018-03-08 Tom Tromey <tom@tromey.com>
11025
11026 * source.c (get_filename_and_charpos): Use scoped_fd.
11027 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11028 (procfs_pidlist): Likewise.
11029 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11030 (iterate_over_mappings): Likewise.
11031
fdf07f3a
TT
110322018-03-08 Tom Tromey <tom@tromey.com>
11033
11034 * infcall.c (struct call_return_meta_info)
11035 <stack_temporaries_enabled>: Remove.
11036 (get_call_return_value, call_function_by_hand_dummy): Update.
11037 * thread.c (disable_thread_stack_temporaries): Remove.
11038 (enable_thread_stack_temporaries): Remove.
11039 (thread_stack_temporaries_enabled_p): Return bool.
11040 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11041 (get_last_thread_stack_temporary): Update.
11042 * eval.c (evaluate_subexp): Update.
11043 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11044 class, not a function.
11045 (value_ptr, value_vec): Remove typedefs.
11046 (class thread_info) <stack_temporaries_enabled>: Now bool.
11047 <stack_temporaries>: Now a std::vector.
11048 (thread_stack_temporaries_enabled_p)
11049 (value_in_thread_stack_temporaries): Return bool.
11050
567a3e54
SM
110512018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11052
11053 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11054 (getpkt_or_notif_sane_1): Likewise.
11055
00b40057
SM
110562018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11057
11058 * build-id.c (build_id_to_debug_bfd): Use std::string.
11059
a8dbfd58
SM
110602018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11061
11062 * build-id.c (find_separate_debug_file_by_buildid): Return
11063 std::string.
11064 * build-id.h (find_separate_debug_file_by_buildid): Return
11065 std::string.
11066 * coffread.c (coff_symfile_read): Adjust to std::string.
11067 * elfread.c (elf_symfile_read): Adjust to std::string.
11068 * symfile.c (separate_debug_file_exists): Change parameter to
11069 std::string.
11070 (find_separate_debug_file): Return std::string.
11071 (find_separate_debug_file_by_debuglink): Return std::string.
11072 * symfile.h (find_separate_debug_file_by_debuglink): Return
11073 std::string.
11074
e6a58aa8
SM
110752018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11076
11077 * common/xml-utils.c (xml_escape_text): Move code to...
11078 (xml_escape_text_append): ... this new function.
11079 * common/xml-utils.h (xml_escape_text_append): New declaration.
11080 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11081 New function.
11082 (_initialize_xml_utils): register test_xml_escape_text_append as
11083 a selftest.
11084
4ef0bef6
AH
110852018-03-07 Alan Hayward <alan.hayward@arm.com>
11086
11087 * defs.h: Remove MAX_REGISTER_SIZE.
11088 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11089 asserts.
11090 * python/py-unwind.c (pyuw_sniffer): Likewise.
11091
e0d3522b
TT
110922018-03-07 Tom Tromey <tom@tromey.com>
11093
11094 * linux-tdep.c (linux_info_proc): Update.
11095 * target.h (struct target_ops) <to_fileio_readlink>: Return
11096 optional<string>.
11097 (target_fileio_readlink): Return optional<string>.
11098 * remote.c (remote_hostio_readlink): Return optional<string>.
11099 * inf-child.c (inf_child_fileio_readlink): Return
11100 optional<string>.
11101 * target.c (target_fileio_readlink): Return optional<string>.
11102
ea005f31
AB
111032018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11104
11105 * regcache.c (cooked_read_test): Add riscv to the list of
11106 architectures that have a save_reggroup.
11107
e95a97d4
AA
111082018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11109
11110 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11111 value is not a dynamic class object.
11112
d8344f3d
TT
111132018-03-06 Tom Tromey <tom@tromey.com>
11114
11115 * rust-exp.y: Formatting fixes.
11116
9add17f2
AB
111172018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11118
11119 * riscv-tdep.c (riscv_register_name): Remove target description
11120 support.
11121 (riscv_gdbarch_init): Remove target description check.
11122
c9486dfe
AB
111232018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11124
11125 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11126 comment.
11127 * riscv-tdep.h: Likewise.
11128
d74aff3d
AB
111292018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11130
11131 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11132 (riscv_pseudo_register_write): Delete.
11133 (riscv_gdbarch_init): Remove all use of pseudo registers.
11134
7ea78b59
SM
111352018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11136
11137 * record-btrace.c (btrace_print_lines): Replace cleanup
11138 parameter with RAII equivalents.
11139 (btrace_insn_history): Replace cleanup with RAII equivalents.
11140 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11141 make_cleanup_ui_out_tuple_begin_end): Remove.
11142 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11143 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11144 make_cleanup_ui_out_list_begin_end): Remove.
11145
53127008
SM
111462018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11147
11148 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11149 parameter types to std::vector. Use bool.
11150 (record_btrace_wait): Replace VEC(tp_t) with
11151 std::vector<thread_info *>.
11152 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11153
228f1508
SM
111542018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11155
11156 * record-btrace.c (record_btrace_disable_callback): Remove.
11157 (struct scoped_btrace_disable): New.
11158 (record_btrace_open): Use scoped_btrace_disable.
11159
b2970c23
AB
111602018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11161
11162 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11163 reading values from registers.
11164
fb294655
AB
111652018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11166
11167 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11168 where appropriate.
11169
cab5bb9d
AB
111702018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11171
11172 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11173 change parameter type. Use GDB's print functions, and use
11174 core_addr_to_string where appropriate.
11175 (riscv_push_dummy_call): Use core_addr_to_string where
11176 appropriate, update call to riscv_print_arg_location, and reindent
11177 a few lines.
11178 (riscv_return_value): Update call to riscv_print_arg_location.
11179
dbbb1059
AB
111802018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11181 Tim Newsome <tim@sifive.com>
11182 Albert Ou <a0u@eecs.berkeley.edu>
11183 Darius Rad <darius@bluespec.com>
11184
11185 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11186 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11187 (ALLDEPFILES): Add riscv-tdep.c
11188 * configure.tgt: Add riscv support.
11189 * riscv-tdep.c: New file.
11190 * riscv-tdep.h: New file.
11191 * NEWS: Mention new target.
11192 * MAINTAINERS: Add entry for riscv.
11193
5dc43913
AB
111942018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11195
11196 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11197 fields within aggregates.
11198
3dea1ef7
SM
111992018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11200
11201 * record-btrace.c (btrace_print_lines): Change type of flags to
11202 gdb_disassembly_flags.
11203
7efba073
JB
112042018-03-04 John Baldwin <jhb@FreeBSD.org>
11205
11206 * fbsd-nat.c: Include "inf-ptrace.h".
11207 (USE_SIGTRAP_SIGINFO): Conditionally define.
11208 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11209 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11210 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11211 function.
11212 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11213 Likewise.
11214 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11215 Likewise.
11216 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11217 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11218 "supports_stopped_by_hw_breakpoint" target methods.
11219
386a8676
JB
112202018-03-04 John Baldwin <jhb@FreeBSD.org>
11221
11222 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11223 * fbsd-nat.c (debug_fbsd_nat): New variable.
11224 (show_fbsd_nat_debug): New function.
11225 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11226 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11227
12279366
JB
112282018-03-04 John Baldwin <jhb@FreeBSD.org>
11229
11230 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11231 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11232 prototype.
11233 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11234 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11235 method.
11236
54693cf5
SM
112372018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11238
11239 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11240 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11241
ccb2231c
SM
112422018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11243
11244 * charset.c (struct charset_vector): New.
11245 (charsets): Change type to charset_vector.
11246 (find_charset_names): Adjust.
11247 (add_one): Adjust.
11248 (_initialize_charset): Adjust.
11249
6fb16ce6
SM
112502018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11251
11252 * progspace.h (struct program_space) <deleted_solibs>: Change
11253 type to std::vector<std::string>.
11254 * progspace.c (clear_program_space_solib_cache): Adjust.
11255 * breakpoint.c (print_solib_event): Adjust.
11256 (check_status_catch_solib): Adjust.
11257 * solib.c (update_solib_list): Adjust.
11258 * ui-out.h (class ui_out) <field_string>: New overload.
11259 * ui-out.c (ui_out::field_string): New overload.
11260
564b1e3f
SM
112612018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11262
11263 * progspace.h (struct program_space): Add constructor and
11264 destructor, initialize fields.
11265 (add_program_space): Remove.
11266 * progspace.c (add_program_space): Rename to...
11267 (program_space::program_space): ... this.
11268 (release_program_space): Rename to...
11269 (program_space::~program_space): ... this.
11270 (delete_program_space): Use delete to delete program_space.
11271 (initialize_progspace): Use new to allocate program_space.
11272 * inferior.c (add_inferior_with_spaces): Likewise.
11273 (clone_inferior_command): Likewise.
11274 * infrun.c (follow_fork_inferior): Likewise.
11275 (handle_vfork_child_exec_or_exit): Likewise.
11276
e80aaf61
SM
112772018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11278
11279 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11280 (delim_string_to_char_ptr_vec): Return std::vector of
11281 gdb::unique_xmalloc_ptr.
11282 (dirnames_to_char_ptr_vec_append): Take std::vector of
11283 gdb::unique_xmalloc_ptr.
11284 (dirnames_to_char_ptr_vec): Return std::vector of
11285 gdb::unique_xmalloc_ptr.
11286 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11287 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11288 (delim_string_to_char_ptr_vec): Return an std::vector of
11289 gdb::unique_xmalloc_ptr, adjust the code.
11290 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11291 gdb::unique_xmalloc_ptr, adjust the code.
11292 (dirnames_to_char_ptr_vec): Return an std::vector of
11293 gdb::unique_xmalloc_ptr, adjust the code.
11294 * auto-load.c (auto_load_safe_path_vec): Change type to
11295 std::vector of gdb::unique_xmalloc_ptr.
11296 (auto_load_expand_dir_vars): Return an std::vector of
11297 gdb::unique_xmalloc_ptr, adjust the code.
11298 (auto_load_safe_path_vec_update): Adjust.
11299 (filename_is_in_auto_load_safe_path_vec): Adjust.
11300 (auto_load_objfile_script_1): Adjust.
11301 * build-id.c (build_id_to_debug_bfd): Adjust.
11302 * linux-thread-db.c (thread_db_load_search): Adjust.
11303 * source.c (add_path): Adjust.
11304 (openp): Adjust.
11305 * symfile.c (find_separate_debug_file): Adjust.
11306 * utils.c (do_free_char_ptr_vec): Remove.
11307 (make_cleanup_free_char_ptr_vec): Remove.
11308
ab818ade
SDJ
113092018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11310
11311 PR gdb/22907
11312 * common/pathstuff.c: Conditionally include "<windows.h>".
11313
e1e6f073
GS
113142018-03-01 Georg Sauthoff <mail@georg.so>
11315
11316 PR gdb/22888
11317 * gcore.in: Quote variables and switch interpreter to bash.
11318
c7b15a66
TT
113192018-03-01 Tom Tromey <tom@tromey.com>
11320
11321 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11322 assertion. Add assertion for discriminant_index.
11323 (quirk_rust_enum): Use correct base type name in univariant case.
11324
0cb7c7b0
SM
113252018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11326
11327 * record.c (get_call_history_modifiers): Return a
11328 record_print_flags.
11329 (cmd_record_call_history): Adjust.
11330 * record-btrace.c (record_btrace_call_history): Adjust.
11331 (record_btrace_call_history_range): Adjust.
11332 (record_btrace_call_history_from): Adjust.
11333 * target-debug.h (target_debug_print_record_print_flags): New.
11334 * target-delegates.c: Re-generate.
11335 * target.c (target_call_history): Change flags type.
11336 (target_call_history_from): Likewise.
11337 (target_call_history_range): Likewise.
11338 * target.h (struct target_ops) <target_call_history>: Likewise.
11339 (target_call_history_from): Likewise.
11340 (target_call_history_range): Likewise.
11341
25e3c82c
SDJ
113422018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11343 Simon Marchi <simon.marchi@polymtl.ca>
11344
11345 * common/common-utils.c: Include "sys/stat.h".
11346 (is_regular_file): Move here from "source.c"; change return
11347 type to "bool".
11348 * common/common-utils.h (is_regular_file): New prototype.
11349 * common/pathstuff.c (contains_dir_separator): New function.
11350 * common/pathstuff.h (contains_dir_separator): New prototype.
11351 * source.c: Don't include "sys/stat.h".
11352 (is_regular_file): Move to "common/common-utils.c".
11353
b4987c95
SDJ
113542018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11355
11356 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11357 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11358 * auto-load.c: Include "common/pathstuff.h".
11359 * common/common-def.h (current_directory): Move here.
11360 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11361 function.
11362 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11363 prototype.
11364 * common/pathstuff.c: New file.
11365 * common/pathstuff.h: New file.
11366 * compile/compile.c: Include "common/pathstuff.h".
11367 * defs.h (current_directory): Move to "common/common-defs.h".
11368 * dwarf2read.c: Include "common/pathstuff.h".
11369 * exec.c: Likewise.
11370 * guile/scm-safe-call.c: Likewise.
11371 * linux-thread-db.c: Likewise.
11372 * main.c: Likewise.
11373 * nto-tdep.c: Likewise.
11374 * objfiles.c: Likewise.
11375 * source.c: Likewise.
11376 * symtab.c: Likewise.
11377 * utils.c: Include "common/pathstuff.h".
11378 (gdb_realpath): Move to "common/pathstuff.c".
11379 (gdb_realpath_keepfile): Likewise.
11380 (gdb_abspath): Likewise.
11381 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11382 (gdb_realpath_keepfile): Likewise.
11383 (gdb_abspath): Likewise.
11384
f169cfdc
JB
113852018-02-28 John Baldwin <jhb@FreeBSD.org>
11386
11387 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11388 wildcard process pid for super_resume for kernels with a
11389 specific bug.
11390
e05cac70
PM
113912018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11392
11393 * compile/compile.c (get_args): Add additional comments
11394 explaining function.
11395
55089490
TT
113962018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11397 Tom Tromey <tom@tromey.com>
11398
11399 * target.h (memory_write_request_s): Remove typedef. Don't define
11400 VEC.
11401 (target_write_memory_blocks): Change argument to std::vector.
11402 (struct memory_write_request): Add constructor.
11403 * target-memory.c (compare_block_starting_address): Return bool.
11404 Change argument types.
11405 (claim_memory): Change arguments to use std::vector.
11406 (split_regular_and_flash_blocks, blocks_to_erase)
11407 (compute_garbled_blocks): Likewise.
11408 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11409 (target_write_memory_blocks): Change argument to std::vector.
11410 * symfile.c (struct load_section_data): Add constructor and
11411 destructor. Use std::vector for "requests".
11412 (struct load_progress_data): Add initializers.
11413 (load_section_callback): Update. Use "new".
11414 (clear_memory_write_data): Remove.
11415 (generic_load): Update.
11416
0c305b61
AH
114172018-02-27 Alan Hayward <alan.hayward@arm.com>
11418
11419 * arch/aarch64.h: Use common/tdesc.h.
11420
c5196c92
MR
114212018-02-26 Maciej W. Rozycki <macro@mips.com>
11422
11423 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11424 architecture with a 64-bit ABI.
11425
37c33887
MR
114262018-02-26 Maciej W. Rozycki <macro@mips.com>
11427
11428 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11429 ahead of target description loading.
11430
d4dd3282
TT
114312018-02-26 Tom Tromey <tom@tromey.com>
11432
11433 * stack.c (backtrace_command_1): Update.
11434 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11435 of "flags".
11436 * python/py-framefilter.c (py_print_frame)
11437 (gdbpy_apply_frame_filter): Change type of "flags".
11438 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11439 of "flags".
11440 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11441 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11442 * extension.h (enum frame_filter_flag): Rename from
11443 frame_filter_flags.
11444 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11445 (apply_ext_lang_frame_filter): Change type of "flags".
11446 * extension.c (apply_ext_lang_frame_filter): Change type of
11447 "flags".
11448 * extension-priv.h (struct extension_language_ops)
11449 <apply_frame_filter>: Change type of "flags".
11450
6893c19a
TT
114512018-02-26 Tom Tromey <tom@tromey.com>
11452
11453 PR python/16497:
11454 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11455 off-by-one in py_end computation.
11456 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11457 PRINT_MORE_FRAMES.
11458 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11459 constant.
11460
2ddeaf8a
TT
114612018-02-26 Tom Tromey <tom@tromey.com>
11462
11463 * dwarf2read.c (struct variant_field): New.
11464 (struct nextfield) <variant>: New field.
11465 (dwarf2_add_field): Handle DW_TAG_variant_part.
11466 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11467 discriminated union.
11468 (read_structure_type): Handle DW_TAG_variant_part.
11469 (handle_struct_member_die): New function, extracted from
11470 process_structure_scope. Handle DW_TAG_variant.
11471 (process_structure_scope): Handle discriminated unions. Call
11472 handle_struct_member_die.
11473
c9317f21
TT
114742018-02-26 Tom Tromey <tom@tromey.com>
11475
11476 * rust-lang.h (rust_last_path_segment): Declare.
11477 * rust-lang.c (rust_last_path_segment): Now public. Change
11478 contract.
11479 (struct disr_info): Remove.
11480 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11481 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11482 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11483 (rust_enum_p, rust_enum_variant): New function.
11484 (rust_underscore_fields): Remove "offset" parameter.
11485 (rust_print_enum): New function.
11486 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11487 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11488 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11489 enums.
11490 (rust_internal_print_type): New function, from rust_print_type.
11491 Remove enum code.
11492 (rust_print_type): Call rust_internal_print_type.
11493 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11494 Update enum handling.
11495 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11496 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11497 (rust_union_quirks): New functions.
11498 (process_full_comp_unit, process_full_type_unit): Call
11499 rust_union_quirks.
11500 (process_structure_scope): Update rust_unions if necessary.
11501
7c22600a
TT
115022018-02-26 Tom Tromey <tom@tromey.com>
11503
11504 * value.h (value_union_variant): Declare.
11505 * valops.c (value_union_variant): New function.
11506 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11507 (struct discriminant_info): New.
11508 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11509 enumerator.
11510 (struct main_type) <flag_discriminated_union>: New field.
11511
15ce8941
TT
115122018-02-26 Tom Tromey <tom@tromey.com>
11513
11514 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11515 unittests/unpack-selftests.c.
11516 * unittests/unpack-selftests.c: New file.
11517 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11518
48fbe735
YQ
115192018-02-26 Yao Qi <yao.qi@linaro.org>
11520
11521 * dwarf2read.c (struct partial_die_info) <read>: New method.
11522 (read_partial_die): Remove the declaration.
11523 (load_partial_dies): Update.
11524 (partial_die_info::partial_die_info):
11525 (read_partial_die): Change it to partial_die_info::read.
11526
52356b79
YQ
115272018-02-26 Yao Qi <yao.qi@linaro.org>
11528
11529 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11530 (fixup_partial_die): Remove declaration.
11531 (scan_partial_symbols): Update.
11532 (partial_die_parent_scope): Likewise.
11533 (partial_die_full_name): Likewise.
11534 (fixup_partial_die): Change it to partial_die_info::fixup.
11535
35cc7ed7
YQ
115362018-02-26 Yao Qi <yao.qi@linaro.org>
11537
11538 * dwarf2read.c (read_partial_die): Update the declaration.
11539 (load_partial_dies): Caller update.
11540 (read_partial_die): Remove one argument abbrev_len.
11541
6f06d47b
YQ
115422018-02-26 Yao Qi <yao.qi@linaro.org>
11543
11544 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11545 assignment operator.
11546 (load_partial_dies): Use ctor and copy ctor.
11547 (read_partial_die): Update.
11548 (dwarf2_cu::find_partial_die): Use ctor.
11549
d590ff25
YQ
115502018-02-26 Yao Qi <yao.qi@linaro.org>
11551
11552 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11553 (find_partial_die_in_comp_unit): Change it to
11554 dwarf2_cu::find_partial_die.
11555 (find_partial_die): Update.
11556
fd0a254f
YQ
115572018-02-26 Yao Qi <yao.qi@linaro.org>
11558
11559 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11560 is NULL.
11561
cd9983dd
YQ
115622018-02-26 Yao Qi <yao.qi@linaro.org>
11563
11564 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11565
f46cd62a
AH
115662018-02-26 Alan Hayward <alan.hayward@arm.com>
11567
11568 * arch/amd64.h: Use common/tdesc.h.
11569 * arch/i386.c: Likewise.
11570 * arch/i386.h: Likewise.
11571 * arch/tic6x.c: Likewise.
11572 * arch/tdesc.h: Move file from here...
11573 * common/tdesc.h: ...to here.
11574 * features/aarch64-core.c: Regenerate.
11575 * features/aarch64-fpu.c: Regenerate.
11576 * features/i386/32bit-avx.c: Regenerate.
11577 * features/i386/32bit-avx512.c: Regenerate.
11578 * features/i386/32bit-core.c: Regenerate.
11579 * features/i386/32bit-linux.c: Regenerate.
11580 * features/i386/32bit-mpx.c: Regenerate.
11581 * features/i386/32bit-pkeys.c: Regenerate.
11582 * features/i386/32bit-sse.c: Regenerate.
11583 * features/i386/64bit-avx.c: Regenerate.
11584 * features/i386/64bit-avx512.c: Regenerate.
11585 * features/i386/64bit-core.c: Regenerate.
11586 * features/i386/64bit-linux.c: Regenerate.
11587 * features/i386/64bit-mpx.c: Regenerate.
11588 * features/i386/64bit-pkeys.c: Regenerate.
11589 * features/i386/64bit-segments.c: Regenerate.
11590 * features/i386/64bit-sse.c: Regenerate.
11591 * features/i386/x32-core.c: Regenerate.
11592 * features/tic6x-c6xp.c: Regenerate.
11593 * features/tic6x-core.c: Regenerate.
11594 * features/tic6x-gp.c: Regenerate.
11595 * target-descriptions.c: Use common/tdesc.h.
11596 * target-descriptions.h: Likewise.
11597
9b292f68
TT
115982018-02-24 Tom Tromey <tom@tromey.com>
11599
11600 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11601 (try_thread_db_load_from_dir, thread_db_load_search): Use
11602 std::string.
11603 (info_auto_load_libthread_db_compare): Return bool. Change
11604 argument types.
11605 (info_auto_load_libthread_db): Use std::vector, std::string.
11606 Remove cleanups.
11607
281d762b
TT
116082018-02-24 Tom Tromey <tom@tromey.com>
11609
11610 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11611 std::string.
11612 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11613 std::string*.
11614 * gdbarch.c: Rebuild.
11615 * gdbarch.h: Rebuild.
11616 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11617 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11618 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11619 std::string*.
11620
9d8780f0
SM
116212018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11622
11623 * gdbtypes.h (sect_offset): Change type to uint64_t.
11624 (sect_offset_str): New function.
11625 * dwarf2read.c (create_addrmap_from_aranges): Use
11626 sect_offset_str.
11627 (error_check_comp_unit_head): Likewise.
11628 (create_debug_type_hash_table): Likewise.
11629 (read_cutu_die_from_dwo): Likewise.
11630 (init_cutu_and_read_dies): Likewise.
11631 (init_cutu_and_read_dies_no_follow): Likewise.
11632 (process_psymtab_comp_unit_reader): Likewise.
11633 (partial_die_parent_scope): Likewise.
11634 (peek_die_abbrev): Likewise.
11635 (process_queue): Likewise.
11636 (dwarf2_physname): Likewise.
11637 (read_namespace_alias): Likewise.
11638 (read_import_statement): Likewise.
11639 (create_dwo_cu_reader): Likewise.
11640 (create_cus_hash_table): Likewise.
11641 (lookup_dwo_cutu): Likewise.
11642 (inherit_abstract_dies): Likewise.
11643 (read_func_scope): Likewise.
11644 (read_call_site_scope): Likewise.
11645 (dwarf2_add_member_fn): Likewise.
11646 (read_common_block): Likewise.
11647 (read_module_type): Likewise.
11648 (read_typedef): Likewise.
11649 (read_subrange_type): Likewise.
11650 (load_partial_dies): Likewise.
11651 (read_partial_die): Likewise.
11652 (find_partial_die): Likewise.
11653 (read_str_index): Likewise.
11654 (dwarf2_string_attr): Likewise.
11655 (build_error_marker_type): Likewise.
11656 (lookup_die_type): Likewise.
11657 (dump_die_shallow): Likewise.
11658 (follow_die_ref): Likewise.
11659 (dwarf2_fetch_die_loc_sect_off): Likewise.
11660 (dwarf2_fetch_constant_bytes): Likewise.
11661 (follow_die_sig): Likewise.
11662 (get_signatured_type): Likewise.
11663 (get_DW_AT_signature_type): Likewise.
11664 (dwarf2_find_containing_comp_unit): Likewise.
11665 (set_die_type): Likewise.
11666
8ec57239
JB
116672018-02-21 John Baldwin <jhb@FreeBSD.org>
11668
11669 * arch/aarch64.c: Include "common-defs.h".
11670 * arch/amd64.c: Likewise.
11671 * arch/i386.c: Likewise.
11672
3eac2b65
TT
116732018-02-21 Tom Tromey <tom@tromey.com>
11674
11675 * value.h: (extract_field_op): Update.
11676 * eval.c (extract_field_op): Return a const char *.
11677 * expression.h (parse_expression_for_completion): Update.
11678 * completer.c (complete_expression): Update.
11679 (add_struct_fields): Make fieldname const.
11680 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11681 (mark_completion_tag, parse_exp_in_context_1): Update.
11682 (parse_expression_for_completion): Change "name" to
11683 unique_xmalloc_ptr*.
11684
6ccb583f
TT
116852018-02-21 Tom Tromey <tom@tromey.com>
11686
11687 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11688
c113ed0c
YQ
116892018-02-21 Yao Qi <yao.qi@linaro.org>
11690
11691 * avr-tdep.c (avr_read_pc): Change parameter type to
11692 readable_regcache.
11693 * gdbarch.sh (read_pc): Likewise.
11694 * gdbarch.c: Re-generated.
11695 * gdbarch.h: Re-generated.
11696 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11697 readable_regcache.
11698 * ia64-tdep.c (ia64_read_pc): Likewise.
11699 * mips-tdep.c (mips_read_pc): Likewise.
11700 * spu-tdep.c (spu_read_pc): Likewise.
11701
4c74fe6b
YQ
117022018-02-21 Yao Qi <yao.qi@linaro.org>
11703
11704 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11705 * regcache-dump.c: New file.
11706 * regcache.c: Move register_dump to regcache-dump.c.
11707 (maintenance_print_registers): Likewise.
11708 (maintenance_print_raw_registers): Likewise.
11709 (maintenance_print_cooked_registers): Likewise.
11710 (maintenance_print_register_groups): Likewise.
11711 (maintenance_print_remote_registers): Likewise.
11712 (_initialize_regcache): Likewise.
11713 * regcache.h (register_dump): Moved from regcache.c.
11714
796bb026
YQ
117152018-02-21 Yao Qi <yao.qi@linaro.org>
11716
11717 * regcache.c (regcache::regcache): Update.
11718 (regcache::invalidate): Move it to detached_regcache::invalidate.
11719 (get_thread_arch_aspace_regcache): Update.
11720 (regcache::raw_update): Update.
11721 (regcache::cooked_read): Remove some code.
11722 (regcache::cooked_read_value): Likewise.
11723 (regcache::raw_write): Remove assert on m_readonly_p.
11724 (regcache::raw_supply_integer): Move it to
11725 detached_regcache::raw_supply_integer.
11726 (regcache::raw_supply_zeroed): Likewise.
11727 * regcache.h (detached_regcache) <raw_supply_integer>: New
11728 declaration.
11729 <raw_supply_zeroed, invalidate>: Likewise.
11730 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11731 <invalidate>: Likewise.
11732 <m_readonly_p>: Removed.
11733
215c69dc
YQ
117342018-02-21 Yao Qi <yao.qi@linaro.org>
11735
11736 * infcmd.c (get_return_value): Let stop_regs point to
11737 get_current_regcache.
11738 * regcache.c (regcache::regcache): Remove.
11739 (register_dump_reg_buffer): New class.
11740 (regcache_print): Adjust.
11741 * regcache.h (regcache): Remove constructors.
11742
f3384e66
YQ
117432018-02-21 Yao Qi <yao.qi@linaro.org>
11744
11745 * regcache.c (class register_dump): New class.
11746 (register_dump_regcache, register_dump_none): New class.
11747 (register_dump_remote, register_dump_groups): New class.
11748 (regcache_print): Update.
11749 * regcache.h (regcache_dump_what): Move it to regcache.c.
11750 (regcache) <dump>: Remove.
11751
c8ec2f33
YQ
117522018-02-21 Yao Qi <yao.qi@linaro.org>
11753
11754 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11755 reg_buffer_rw *.
11756 (jit_unwind_reg_set_impl): Call raw_supply.
11757 (jit_frame_sniffer): Use reg_buffer_rw.
11758 * record-full.c (record_full_core_regbuf): Change its type.
11759 (record_full_core_open_1): Use reg_buffer_rw.
11760 (record_full_close): Likewise.
11761 (record_full_core_fetch_registers): Use regcache->raw_supply.
11762 (record_full_core_store_registers): Likewise.
11763 * regcache.c (regcache::get_register_status): Move it to
11764 reg_buffer.
11765 (regcache_raw_set_cached_value): Remove.
11766 (regcache::raw_set_cached_value): Remove.
11767 (regcache::raw_write): Call raw_supply.
11768 (regcache::raw_supply): Move it to reg_buffer_rw.
11769 * regcache.h (regcache_raw_set_cached_value): Remove.
11770 (reg_buffer_rw): New class.
11771
daf6667d
YQ
117722018-02-21 Yao Qi <yao.qi@linaro.org>
11773
11774 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11775 readonly_detached_regcache.
11776 (dummy_frame_prev_register): Use regcache->cooked_read.
11777 * frame.c (frame_save_as_regcache): Change return type.
11778 (frame_pop): Update.
11779 * frame.h (frame_save_as_regcache): Update declaration.
11780 * inferior.h (get_infcall_suspend_state_regcache): Update
11781 declaration.
11782 * infrun.c (infcall_suspend_state) <registers>: use
11783 readonly_detached_regcache.
11784 (save_infcall_suspend_state): Don't use regcache_dup.
11785 (get_infcall_suspend_state_regcache): Change return type.
11786 * linux-fork.c (struct fork_info) <savedregs>: Change to
11787 readonly_detached_regcache.
11788 <pc>: New field.
11789 (fork_save_infrun_state): Don't use regcache_dup.
11790 (info_checkpoints_command): Adjust.
11791 * mi/mi-main.c (register_changed_p): Update declaration.
11792 (mi_cmd_data_list_changed_registers): Use
11793 readonly_detached_regcache.
11794 (register_changed_p): Change parameter type to
11795 readonly_detached_regcache.
11796 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11797 readonly_detached_regcache.
11798 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11799 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11800 New.
11801 (regcache::save): Move it to reg_buffer.
11802 (regcache::restore): Change parameter type.
11803 (regcache_dup): Remove.
11804 * regcache.h (reg_buffer) <save>: New method.
11805 (readonly_detached_regcache): New class.
11806 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11807 readonly_detached_regcache.
11808 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11809
fc5b8736
YQ
118102018-02-21 Yao Qi <yao.qi@linaro.org>
11811
11812 * frame.c (frame_save_as_regcache): Use regcache method save.
11813 (frame_pop): Use regcache method restore.
11814 * infrun.c (restore_infcall_suspend_state): Likewise.
11815 * linux-fork.c (fork_load_infrun_state): Likewise.
11816 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11817 save.
11818 * regcache.c (regcache_save): Remove.
11819 (regcache::restore): More asserts.
11820 (regcache_cpy): Remove.
11821 * regcache.h (regcache_save): Remove the declaration.
11822 (regcache::restore): Move from private to public.
11823 Remove the friend declaration of regcache_cpy.
11824 (regcache_cpy): Remove declaration.
11825
849d0ba8
YQ
118262018-02-21 Yao Qi <yao.qi@linaro.org>
11827
11828 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11829 parameter type to 'readable_regcache *'.
11830 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11831 * arm-tdep.c (arm_neon_quad_read): Likewise.
11832 (arm_pseudo_read): Likewise.
11833 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11834 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11835 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11836 * gdbarch.c: Re-generated.
11837 * gdbarch.h: Re-generated.
11838 * gdbarch.sh (pseudo_register_read): Change parameter type to
11839 'readable_regcache *'.
11840 (pseudo_register_read_value): Likewise.
11841 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11842 (h8300_pseudo_register_read): Likewise.
11843 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11844 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11845 (i386_pseudo_register_read_into_value): Likewise.
11846 (i386_pseudo_register_read_value): Likewise.
11847 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11848 declaration.
11849 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11850 * m32c-tdep.c (m32c_raw_read): Likewise.
11851 (m32c_read_flg): Likewise.
11852 (m32c_banked_register): Likewise.
11853 (m32c_banked_read): Likewise.
11854 (m32c_sb_read): Likewise.
11855 (m32c_part_read): Likewise.
11856 (m32c_cat_read): Likewise.
11857 (m32c_r3r2r1r0_read): Likewise.
11858 (m32c_pseudo_register_read): Likewise.
11859 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11860 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11861 (mep_pseudo_cr64_read): Likewise.
11862 (mep_pseudo_register_read): Likewise.
11863 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11864 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11865 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11866 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11867 (regcache::cooked_read): Likewise.
11868 (regcache::cooked_read_value): Likewise.
11869 (regcache_cooked_read_signed):
11870 (regcache::cooked_read): Likewise.
11871 * regcache.h (readable_regcache): New class.
11872 (regcache): Inherit readable_regcache. Move some methods to
11873 readable_regcache.
11874 * rl78-tdep.c (rl78_pseudo_register_read): Change
11875 parameter type to 'readable_regcache *'.
11876 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11877 (e500_pseudo_register_read): Change parameter type to
11878 'readable_regcache *'.
11879 (dfp_pseudo_register_read): Likewise.
11880 (vsx_pseudo_register_read): Likewise.
11881 (efpr_pseudo_register_read): Likewise.
11882 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11883 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11884 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11885 (sh64_pseudo_register_read): Likewise.
11886 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11887 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11888 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11889 (spu_pseudo_register_read): Likewise.
11890 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11891 (xtensa_pseudo_register_read): Likewise.
11892
31716595
YQ
118932018-02-21 Yao Qi <yao.qi@linaro.org>
11894
11895 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11896 (regcache::arch): Move it to reg_buffer::arch.
11897 (regcache::register_buffer): Likewise.
11898 (regcache::assert_regnum): Likewise.
11899 (regcache::num_raw_registers): Likewise.
11900 * regcache.h (reg_buffer): New class.
11901 (regcache): Inherit reg_buffer.
11902
7104e59b
SM
119032018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11904
11905 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11906 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11907
2d8adcbd
MM
119082018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11909
11910 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11911
b5884fa7
AH
119122018-02-19 Alan Hayward <alan.hayward@arm.com>
11913
11914 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11915 (SFILES): Remove common/*.c files.
11916 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11917 * common/common.host: Add common reference.
11918 * configure.ac: Likewise.
11919 * configure: Regenerate.
11920
fd90ace4
YQ
119212018-02-16 Yao Qi <yao.qi@linaro.org>
11922
11923 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11924 (block_initialize_namespace): Use new.
11925 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11926 (dwarf2_free_objfile): Use delete.
11927 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11928 (copy_type_recursive): Use new.
11929 * gdb_obstack.h (allocate_on_obstack): New.
11930
85046ae2
YQ
119312018-02-15 Yao Qi <yao.qi@linaro.org>
11932
11933 PR gdb/22849
11934 * inferior.c (exit_inferior_1): Reset inf->control.
11935
355c559b
JB
119362018-02-15 Joel Brobecker <brobecker@adacore.com>
11937
11938 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11939 declaration.
11940
980548fd
PA
119412018-02-14 Pedro Alves <palves@redhat.com>
11942
11943 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11944 frame_cleanup_after_sniffer on exception.
11945
692d6f97
TT
119462018-02-14 Tom Tromey <tom@tromey.com>
11947
11948 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11949 const.
11950 (solib_bfd_open): Make pathname const.
11951 * solib.c (solib_bfd_open): Make pathname const.
11952 * solib-spu.c (spu_bfd_fopen): Make name const.
11953 (spu_bfd_open): Make pathname const.
11954 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11955 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11956
e0cc99a6
TT
119572018-02-14 Tom Tromey <tom@tromey.com>
11958
11959 * symfile.c (symfile_bfd_open): Update.
11960 * source.h (openp, source_full_path_of, find_and_open_source):
11961 Change argument type to unique_xmalloc_ptr.
11962 * source.c (openp): Take a unique_xmalloc_ptr.
11963 (source_full_path_of, find_and_open_source): Likewise.
11964 (open_source_file, symtab_to_fullname): Update.
11965 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11966 unique_xmalloc_ptr.
11967 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11968 (exec_file_find): Update.
11969 * psymtab.c (psymtab_to_fullname): Update.
11970 * nto-tdep.h (nto_find_and_open_solib): Update.
11971 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11972 unique_xmalloc_ptr.
11973 * exec.c (exec_file_attach): Update.
11974 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11975 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11976
b46a8d7c
TT
119772018-02-14 Tom Tromey <tom@tromey.com>
11978
11979 * solib.c: Include source.h.
11980 * nto-tdep.c: Include source.h.
11981 * mi/mi-cmd-env.c: Include source.h.
11982 * infcmd.c: Include source.h.
11983 * exec.c: Include source.h.
11984 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11985 (add_path, directory_switch, source_path, init_source_path): Move
11986 declarations...
11987 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11988 (add_path, directory_switch, source_path, init_source_path):
11989 ...here.
11990
797bc1cb
TT
119912018-02-14 Tom Tromey <tom@tromey.com>
11992
11993 * solist.h (exec_file_find, solib_find): Return
11994 unique_xmalloc_ptr.
11995 (solib_bfd_fopen): Take a const char *.
11996 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11997 (exec_file_find, solib_find): Likewise.
11998 (solib_bfd_fopen): Do not take ownership of "pathname".
11999 (solib_bfd_open): Use unique_xmalloc_ptr.
12000 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12001 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12002 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12003 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12004
f98b2e33
JB
120052018-02-14 Joel Brobecker <brobecker@adacore.com>
12006
12007 * ada-lang.c (name_match_type_from_name): Remove reference to
12008 ada_name_for_lookup in function's documentation.
12009 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12010
24b9144d
SM
120112018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12012
12013 * defs.h (enum openp_flags): New enum.
12014 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12015 Move to enum openp_flags.
12016 (openp_flags): New enum flags.
12017 (openp): Change parameter type to openp_flags.
12018 * source.c (openp): Change parameter type to openp_flags.
12019 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12020 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12021
387cd15b
SM
120222018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12023
12024 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12025 per-command.
12026
b303c6f6
AB
120272018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12028
12029 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12030 into...
12031 (class dwarf2_queue_guard): ...the destructor of this new class.
12032 (dw2_do_instantiate_symtab): Create instance of the new class
12033 dwarf2_queue_guard, remove cleanup.
12034
9c3630e9
TT
120352018-02-09 Tom Tromey <tom@tromey.com>
12036
12037 * source.c (find_source_lines): Don't reference past the end of
12038 the vector.
12039
c4e12631
MM
120402018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12041
12042 * remote.c (remote_btrace_maybe_reopen): Change error message.
12043 * btrace.c (btrace_enable): Likewise.
12044 (parse_xml_btrace): Likewise.
12045 (parse_xml_btrace_conf): Likewise.
12046
88711fbf
MM
120472018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12048
12049 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12050 (linux_enable_pt, linux_enable_bts): Call
12051 diagnose_perf_event_open_fail.
12052
17ad2a4f
MM
120532018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12054
12055 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12056 Remove parameter and change return type. Update callers. Move it.
12057 (linux_enable_bts, linux_enable_pt): Improve error message.
12058 (linux_enable_pt): Remove zero buffer size check.
12059 (linux_enable_btrace): Improve error messages. Remove NULL return
12060 check.
12061
de6242d3
MM
120622018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12063
12064 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12065 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12066 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12067 (linux_supports_pt, linux_supports_btrace): Remove.
12068 (linux_enable_bts): Call cpu_supports_bts.
12069 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12070 * remote.c (remote_supports_btrace): Remove.
12071 (init_remote_ops): Remove remote_supports_btrace.
12072 * target-delegates.c: Regenerated.
12073 * target.c (target_supports_btrace): Remove.
12074 * target.h (target_ops) <to_supports_btrace>: Remove
12075 (target_supports_btrace): Remove.
12076 * x86-linux-nat.c (x86_linux_create_target): Remove
12077 linux_supports_btrace.
12078
9ee23a85
MM
120792018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12080
12081 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12082 btrace failed.
12083 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12084 exception and use message in own exception.
12085
5c3284c1
MM
120862018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12087
12088 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12089 (perf_event_pt_event_type): Use gdb_file_up.
12090 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12091 scoped_fd, and scoped_mmap.
12092
84696f37
MM
120932018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12094
12095 * common/scoped_mmap.h: New.
12096 * unittests/scoped_mmap-selftest.c: New.
12097 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12098 unittests/scoped_mmap-selftest.c.
12099
ea4a0888
MM
121002018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12101
12102 * common/scoped_fd.h: New.
12103 * unittests/scoped_fd-selftest.c: New.
12104 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12105 unittests/scoped_fd-selftest.c.
12106
869e8290
TT
121072018-02-09 Tom Tromey <tom@tromey.com>
12108
12109 * auto-load.c (auto_load_section_scripts): Use
12110 gdb::unique_xmalloc_ptr.
12111
a37a2ae7
TT
121122018-02-09 Tom Tromey <tom@tromey.com>
12113
12114 * auto-load.c (execute_script_contents): Use std::string.
12115
4e725347
JB
121162018-02-09 Joel Brobecker <brobecker@adacore.com>
12117
12118 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12119 Python function, rather than a new command.
12120
9a897d43
TT
121212018-02-08 Tom Tromey <tom@tromey.com>
12122
12123 * solib.c (solib_find_1): Use std::string.
12124 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12125
58ef3771
TT
121262018-02-08 Tom Tromey <tom@tromey.com>
12127
12128 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12129
a9abc434
TT
121302018-02-08 Tom Tromey <tom@tromey.com>
12131
12132 * source.c (find_source_lines): Use gdb::def_vector.
12133
84f27c6f
TT
121342018-02-08 Tom Tromey <tom@tromey.com>
12135
12136 * macrocmd.c (struct temporary_macro_definition): New.
12137 (macro_define_command): Use temporary_macro_definition. Remove
12138 cleanups.
12139 (free_macro_definition_ptr): Remove.
12140
0354904b
TT
121412018-02-08 Tom Tromey <tom@tromey.com>
12142
12143 * macroexp.c (maybe_expand): Use std::string.
12144
1739cf24
TT
121452018-02-08 Tom Tromey <tom@tromey.com>
12146
12147 * macroexp.c (struct macro_buffer): Add initializers for some
12148 members.
12149 (init_buffer, init_shared_buffer, free_buffer)
12150 (free_buffer_return_text): Remove.
12151 (macro_buffer): New constructors.
12152 (~macro_buffer): New destructor.
12153 (macro_buffer::set_shared): New method.
12154 (macro_buffer::resize_buffer, macro_buffer::appendc)
12155 (macro_buffer::appendmem): Now methods, not free functions.
12156 (set_token, append_tokens_without_splicing, stringify)
12157 (macro_stringify): Update.
12158 (gather_arguments): Change return type. Remove argc_p argument,
12159 add args_ptr argument. Use std::vector.
12160 (substitute_args): Remove argc argument. Accept std::vector.
12161 (expand): Update. Use std::vector.
12162 (scan, macro_expand, macro_expand_next): Update.
12163
f6c2623e
TT
121642018-02-08 Tom Tromey <tom@tromey.com>
12165
12166 * symtab.c (default_collect_symbol_completion_matches_break_on):
12167 Use unique_xmalloc_ptr.
12168 * macroscope.h: (sal_macro_scope, user_macro_scope)
12169 (default_macro_scope): Return unique_xmalloc_ptr.
12170 * macroscope.c (sal_macro_scope, user_macro_scope)
12171 (default_macro_scope): Return unique_xmalloc_ptr.
12172 * macroexp.h (macro_expand, macro_expand_once): Return
12173 unique_xmalloc_ptr.
12174 * macroexp.c (macro_expand, macro_expand_once): Return
12175 unique_xmalloc_ptr.
12176 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12177 (info_macro_command, info_macros_command): Use
12178 unique_xmalloc_ptr.
12179 * compile/compile-c-support.c (write_macro_definitions): Use
12180 unique_xmalloc_ptr.
12181 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12182
c2e0e465
SM
121832018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12184
12185 * value.c (value_static_field): Assign field type instead of
12186 containing type when returning an optimized out value.
12187
3f8c94b4
YQ
121882018-02-06 Yao Qi <yao.qi@linaro.org>
12189
12190 * ft32-tdep.c (ft32_read_pc): Remove.
12191 (ft32_write_pc): Remove.
12192 (ft32_gdbarch_init): Update.
12193 * m32r-tdep.c (m32r_read_pc): Remove.
12194 (m32r_gdbarch_init): Update.
12195 * mep-tdep.c (mep_read_pc): Remove.
12196 (mep_gdbarch_init): Update.
12197 * microblaze-tdep.c (microblaze_write_pc): Remove.
12198 (microblaze_gdbarch_init): Update.
12199 * mn10300-tdep.c (mn10300_read_pc): Remove.
12200 (mn10300_write_pc): Remove.
12201 (mn10300_gdbarch_init): Update.
12202 * moxie-tdep.c (moxie_read_pc): Remove.
12203 (moxie_write_pc): Remove.
12204 (moxie_gdbarch_init): Update.
12205
bca65a23
YQ
122062018-02-06 Yao Qi <yao.qi@linaro.org>
12207
12208 * expprint.c (print_subexp_standard): Handle
12209 OP_F77_UNDETERMINED_ARGLIST.
12210 (dump_subexp_body_standard): Likewise.
12211
583e3f90 122122018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 12213
583e3f90
YQ
12214 * target-descriptions.c (tdesc_element_visitor) Add empty
12215 implementations.
b8df6ca7
AH
12216 (tdesc_type): Move make_gdb_type from here.
12217 (tdesc_type_builtin): Likewise.
12218 (tdesc_type_vector): Likewise.
12219 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12220 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12221 (make_gdb_type_union): Likewise.
12222 (make_gdb_type_flags): Likewise.
12223 (make_gdb_type_enum): Likewise.
12224 (make_gdb_type): New function.
12225 (tdesc_register_type): Use static make_gdb_type.
12226
e813d34a
RK
122272018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12228
12229 * infcmd.c (default_print_one_register_info): Align natural-format
12230 column values consistently one under another.
12231 (pad_to_column): New function.
12232
0eb876f5
JB
122332018-02-05 Joel Brobecker <brobecker@adacore.com>
12234
12235 * dwarf2read.c (dwarf2_physname): Move commment.
12236
0625771b
LS
122372018-02-01 Leszek Swirski <leszeks@google.com>
12238
12239 * varobj.c (varobj_formatted_print_options): Allow recursive
12240 pretty printing if pretty printing is enabled.
12241
59498c30
LS
122422018-02-01 Leszek Swirski <leszeks@google.com>
12243
12244 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12245 names after a structop as a filename.
12246
2d9e6acb
YQ
122472018-02-01 Yao Qi <yao.qi@linaro.org>
12248
12249 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12250 (arm_record_coproc_data_proc): Likewise.
12251
df95a9cf
YQ
122522018-02-01 Yao Qi <yao.qi@linaro.org>
12253
12254 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12255
07e5f5cf
NP
122562018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12257
12258 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12259 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12260
3045b475
PA
122612018-01-31 Pedro Alves <palves@redhat.com>
12262
12263 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12264 * inflow.c (child_terminal_save_inferior): Wrap reference to
12265 tcgetpgrp in HAVE_TERMIOS_H.
12266 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12267 _WIN32.
12268 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12269 always iterate over all inferiors.
12270 (gdbsim_cntrl_c): Adjust.
12271 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12272
929b5ad4
JB
122732018-01-31 Joel Brobecker <brobecker@adacore.com>
12274
12275 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12276 index type is objfile-owned if the element type is as well.
12277
29236ca2
JB
122782018-01-31 Joel Brobecker <brobecker@adacore.com>
12279
12280 GDB 8.1 released.
12281
c81e8879
PR
122822018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12283
12284 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12285 "features/s390x-linux64.c".
12286 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12287 s390_linux32 and s390x_linux64.
12288 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12289 default tdesc.
12290 * s390-tdep.c: Include "features/s390-linux32.c" and
12291 "features/s390x-linux64.c".
12292 (s390_tdesc_valid): Add check for tdesc_has_registers.
12293 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12294 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12295 tdesc_s390x_linux64.
12296 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12297 tdesc_s390x_linux64 to...
12298 * s390-tdep.h: ...here.
12299
e671cd59
PA
123002018-01-30 Pedro Alves <palves@redhat.com>
12301
12302 PR gdb/13211
12303 * config.in, configure: Regenerate.
12304 * configure.ac: Check for getpgid.
12305 * go32-nat.c (go32_pass_ctrlc): New.
12306 (go32_target): Install it.
12307 * inf-child.c (inf_child_target): Install
12308 child_terminal_save_inferior, child_pass_ctrlc and
12309 child_interrupt.
12310 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12311 (inf_ptrace_target): No longer install it.
12312 * infcmd.c (interrupt_target_1): Adjust.
12313 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12314 (child_interrupt): Declare.
12315 (inferior::terminal_state): New.
12316 * inflow.c (struct terminal_info): Update comments.
12317 (inferior_process_group): Delete.
12318 (terminal_is_ours): Delete.
12319 (gdb_tty_state): New.
12320 (child_terminal_init): Adjust.
12321 (is_gdb_terminal, sharing_input_terminal_1)
12322 (sharing_input_terminal): New functions.
12323 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12324 Set the process's actual process group in the foreground if
12325 possible. Handle is_ours_for_output/is_ours distinction. Don't
12326 mark terminal as the inferior's if not sharing GDB's terminal.
12327 Don't check attach_flag.
12328 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12329 pass down a target_terminal_state.
12330 (child_terminal_save_inferior): New, factored out from ...
12331 (child_terminal_ours_1): ... this. Handle
12332 target_terminal_state::is_ours_for_output.
12333 (child_interrupt, child_pass_ctrlc): New.
12334 (inflow_inferior_exit): Clear the inferior's terminal_state.
12335 (copy_terminal_info): Copy the inferior's terminal state.
12336 (_initialize_inflow): Remove reference to terminal_is_ours.
12337 * inflow.h (inferior_process_group): Delete.
12338 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12339 * procfs.c (procfs_target): Don't install procfs_interrupt.
12340 (procfs_interrupt): Delete.
12341 * remote.c (remote_serial_quit_handler): Adjust.
12342 (remote_interrupt): Remove ptid parameter. Adjust.
12343 * target-delegates.c: Regenerate.
12344 * target.c: Include "terminal.h".
12345 (target_terminal::terminal_state): Rename to ...
12346 (target_terminal::m_terminal_state): ... this.
12347 (target_terminal::init): Adjust.
12348 (target_terminal::inferior): Adjust to per-inferior
12349 terminal_state.
12350 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12351 (target_terminal::ours, target_terminal::ours_for_output): Use
12352 target_terminal_is_ours_kind.
12353 (target_interrupt): Remove ptid parameter. Adjust.
12354 (default_target_pass_ctrlc): Adjust.
12355 * target.h (target_ops::to_terminal_save_inferior): New field.
12356 (target_ops::to_interrupt): Remove ptid_t parameter.
12357 (target_interrupt): Remove ptid_t parameter. Update comment.
12358 (target_pass_ctrlc): Update comment.
12359 * target/target.h (target_terminal_state): New scoped enum,
12360 factored out of ...
12361 (target_terminal::terminal_state): ... here.
12362 (target_terminal::inferior): Update comments.
12363 (target_terminal::restore_inferior): New.
12364 (target_terminal::is_inferior, target_terminal::is_ours)
12365 (target_terminal::is_ours_for_output): Adjust.
12366 (target_terminal::scoped_restore_terminal_state): Adjust to
12367 rename, and call restore_inferior() instead of inferior().
12368 (target_terminal::scoped_restore_terminal_state::m_state): Change
12369 type.
12370 (target_terminal::terminal_state): Rename to ...
12371 (target_terminal::m_terminal_state): ... this and change type.
12372
9c3a5d93
PA
123732018-01-30 Pedro Alves <palves@redhat.com>
12374
12375 * linux-nat.c (wait_for_signal): New function.
12376 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12377 directly.
12378 (async_terminal_is_ours)
12379 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12380 (linux_nat_add_target): Don't override
12381 to_terminal_inferior/to_terminal_ours.
12382
69ab5edb
SDJ
123832018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12384
12385 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12386
fc8e7e75
SM
123872018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12388
12389 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12390 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12391 dwarf2_per_objfile_free here.
12392 (dwarf2_per_objfile_free): Remove.
12393 (_initialize_dwarf2_read): Don't register
12394 dwarf2_per_objfile_free as a registry cleanup.
12395
b2a426e2
EZ
123962018-01-27 Eli Zaretskii <eliz@gnu.org>
12397
12398 Avoid compilation errors in MinGW native builds
12399
12400 The error is triggered by including python-internal.h, and the
12401 error message is:
12402
12403 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12404 from build-gnulib/import/math.h:27,
12405 from d:/usr/Python26/include/pyport.h:235,
12406 from d:/usr/Python26/include/Python.h:58,
12407 from python/python-internal.h:94,
12408 from python/py-arch.c:24:
12409 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12410 using ::hypot;
12411 ^~~~~
12412
12413 This happens because Python headers define 'hypot' to expand t
12414 '_hypot' in the Windows builds.
12415 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12416 'hypoth'. This avoids a compilation error.
12417
0bdd8eac
AH
124182018-01-26 Alan Hayward <alan.hayward@arm.com>
12419
12420 * MAINTAINERS (Write After Approval): Fix ordering.
12421
56ae9dc3
AH
124222018-01-26 Alan Hayward <alan.hayward@arm.com>
12423
12424 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12425
7433498b
AM
124262018-01-26 Alan Modra <amodra@gmail.com>
12427
12428 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12429 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12430 Remove nop. Make const. Comment.
12431 (powerpc32_plt_stub_so_2): New.
12432 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12433 Correct count. Update uses.
12434 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12435 Move common code reading PLT entry word. Correct
12436 powerpc32_plt_stub PLT address calculation.
12437 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12438 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12439 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12440 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12441 (ppc64_standard_linkage8): Likewise.
12442 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12443 Correct insns description.
12444 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12445
0f59d5fc
PA
124462018-01-24 Pedro Alves <palves@redhat.com>
12447
12448 GCC PR libstdc++/83906
12449 * gdbtypes.c (operator==(const dynamic_prop &,
12450 const dynamic_prop &)): New.
12451 (operator==(const range_bounds &, const range_bounds &)): New.
12452 (check_types_equal): Use them instead of memcmp.
12453 * gdbtypes.h (operator==(const dynamic_prop &,
12454 const dynamic_prop &)): Declare.
12455 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12456 (operator==(const range_bounds &, const range_bounds &)): Declare.
12457 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12458
ef8914a4
PR
124592018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12460
12461 * s390-linux-tdep.c (s390_record_address_mask)
12462 (s390_record_calc_disp_common, s390_record_calc_disp)
12463 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12464 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12465 (s390_process_record): Move to s390-tdep.c.
12466 (s390_linux_init_abi_any): Adjust.
12467 * s390-tdep.c (s390_record_address_mask)
12468 (s390_record_calc_disp_common, s390_record_calc_disp)
12469 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12470 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12471 (s390_process_record): Moved from s390-linux-tdep.c
12472 (s390_gdbarch_init): Adjust.
12473
d6e58945
PR
124742018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12475
12476 * s390-linux-nat.c (s390-tdep.h): New include.
12477 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12478 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12479 (ALLDEPFILES): Add s390-tdep.c.
12480 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12481 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12482 * s390-tdep.h: ...this. New file.
12483 * s390-linux-tdep.c (s390-tdep.h): New include.
12484 (_initialize_s390_tdep): Rename to...
12485 (_initialize_s390_linux_tdep): ...this and adjust.
12486 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12487 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12488 s390-tdep.h.
12489 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12490 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12491 (s390_is_partial_instruction, s390_software_single_step)
12492 (is_non_branch_ril, s390_displaced_step_copy_insn)
12493 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12494 (s390_prologue_data, s390_addr, s390_store, s390_load)
12495 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12496 (s390_register_call_saved, s390_guess_tracepoint_registers)
12497 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12498 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12499 (s390_pseudo_register_name, s390_pseudo_register_type)
12500 (s390_pseudo_register_read, s390_pseudo_register_write)
12501 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12502 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12503 (s390_addr_bits_remove, s390_address_class_type_flags)
12504 (s390_address_class_type_flags_to_name)
12505 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12506 (s390_function_arg_float, s390_function_arg_vector)
12507 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12508 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12509 (s390_frame_align, s390_register_return_value, s390_return_value)
12510 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12511 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12512 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12513 (s390_trad_frame_prev_register, s390_unwind_cache)
12514 (s390_prologue_frame_unwind_cache)
12515 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12516 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12517 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12518 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12519 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12520 (s390_frame_base_address, s390_local_base_address)
12521 (s390_frame_base, s390_gcc_target_options)
12522 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12523 (s390_validate_reg_range, s390_tdesc_valid)
12524 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12525 * s390-tdep.c: ...this. New file.
12526
9c0b896e
PR
125272018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12528
12529 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12530 (s390_process_record, s390_gdbarch_tdep_alloc)
12531 (s390_linux_init_abi_any): Use/set new hook.
12532
7042632b
PR
125332018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12534
12535 * s390-linux-tdep.c (osabi.h): New include.
12536 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12537 (s390_linux_init_abi_any): New functions.
12538 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12539
650f5e13
PR
125402018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12541
12542 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12543 tdesc_has_registers check
12544
47c9317e
PR
125452018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12546
12547 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12548 (s390_validate_reg_range): New macro.
12549 (s390_gdbarch_init): Adjust.
12550
095085d8
PR
125512018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12552
12553 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12554 (s390_gdbarch_tdep_alloc): Adjust.
12555 (s390_gdbarch_init): Adjust.
12556
ab9bcc67
PR
125572018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12558
12559 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12560 <have_tdb>: Change type to bool.
12561 (s390_gdbarch_tdep_alloc): Adjust.
12562 (s390_gdbarch_init): Adjust.
12563
21f6f5ff
PR
125642018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12565
12566 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12567 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12568 (s390_gdbarch_tdep_alloc): New function.
12569 (s390_gdbarch_init): Allocate tdep at start and use its fields
12570 instead of separate variables.
12571
0eb97953
PR
125722018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12573
12574 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12575 when looking for cached gdbarch and add comment for remaining.
12576
5c319bb2
PA
125772018-01-22 Pedro Alves <palves@redhat.com>
12578 Sergio Durigan Junior <sergiodj@redhat.com>
12579
12580 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12581 case.
12582
d65ce302
MR
125832018-01-22 Maciej W. Rozycki <macro@mips.com>
12584
12585 * MAINTAINERS: Update my company e-mail address.
12586
ec7a5fcb
YQ
125872018-01-22 Yao Qi <yao.qi@linaro.org>
12588
12589 * regcache.c (cooked_write_test): New function.
12590 (_initialize_regcache): Register the test.
12591
11f57cb6
YQ
125922018-01-22 Yao Qi <yao.qi@linaro.org>
12593
12594 * ia64-tdep.c (ia64_pseudo_register_read): Call
12595 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12596 * m32c-tdep.c (m32c_cat_read): Likewise.
12597 (m32c_r3r2r1r0_read): Likewise.
12598 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12599 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12600
03f50fc8
YQ
126012018-01-22 Yao Qi <yao.qi@linaro.org>
12602
12603 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12604 method raw_read instead of regcache_raw_read.
12605 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12606 * arm-tdep.c (arm_neon_quad_read): Likewise.
12607 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12608 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12609 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12610 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12611 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12612 (i386_pseudo_register_read_into_value): Likewise.
12613 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12614 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12615 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12616 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12617 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12618 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12619 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12620 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12621 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12622
dc711524
YQ
126232018-01-22 Yao Qi <yao.qi@linaro.org>
12624
12625 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12626 * configure.tgt: Remove target mt.
12627 * mt-tdep.c: Remove.
12628 * regcache.c (cooked_read_test): Remove the check for mt.
12629
3f5a868b
YQ
126302018-01-22 Yao Qi <yao.qi@linaro.org>
12631
12632 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12633 instead of gdbarch_pseudo_register_read_value.
12634
de4cb04a
JB
126352018-01-22 Joel Brobecker <brobecker@adacore.com>
12636
12637 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12638 language is Ada.
12639
a9e40818
JB
126402018-01-22 Joel Brobecker <brobecker@adacore.com>
12641
12642 * linespec.c (create_sals_line_offset): Remove code that preserved
12643 the symtab_and_line's line number.
12644
e707fc44
AB
126452018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12646
12647 * varobj.c (varobj_create): Don't set valid_block when creating a
12648 floating varobj.
12649
03d0bf7b
AB
126502018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12651
12652 * varobj.c (varobj_create): Remove out of date comment.
12653
ae451627
AB
126542018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12655
12656 PR mi/20395
12657 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12658 updating innermost block.
12659 * parse.c (innermost_block_tracker::update): Take extra type
12660 parameter, and check types match before updating innermost block.
12661 (write_dollar_variable): Update innermost block for registers.
12662 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12663 (innermost_block_tracker::innermost_block_tracker): Initialise
12664 m_types member.
12665 (innermost_block_tracker::reset): Take type parameter.
12666 (innermost_block_tracker::update): Take type parameter, and pass
12667 type through as needed.
12668 (innermost_block_tracker::m_types): New member.
12669 * varobj.c (varobj_create): Pass type when reseting innermost
12670 block.
12671
aee1fcdf
AB
126722018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12673
12674 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12675 * ada-lang.c (resolve_subexp): Likewise.
12676 * breakpoint.c (set_breakpoint_condition) Likewise.
12677 (watch_command_1) Likewise.
12678 * c-exp.y (variable): Likewise.
12679 * d-exp.y (PrimaryExpression): Likewise.
12680 * f-exp.y (variable): Likewise.
12681 * go-exp.y (variable): Likewise.
12682 * m2-exp.y (variable): Likewise.
12683 * objfiles.c (objfile::~objfile): Likewise.
12684 * p-exp.y (variable): Likewise.
12685 * parse.c (innermost_block): Change type.
12686 * parser-defs.h (class innermost_block_tracker): New.
12687 (innermost_block): Change to innermost_block_tracker.
12688 * printcmd.c (display_command): Switch to innermost_block API.
12689 (do_one_display): Likewise.
12690 * rust-exp.y (do_one_display): Likewise.
12691 * symfile.c (clear_symtab_users): Likewise.
12692 * varobj.c (varobj_create): Switch to innermost_block API, replace
12693 use of innermost_block with block stored on varobj object.
12694
396af9a1
AB
126952018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12696
12697 * expression.h (innermost_block): Remove declaration.
12698 * varobj.c: Add 'parser-defs.h' include.
12699
fcfcc376
TT
127002018-01-19 Tom Tromey <tom@tromey.com>
12701
12702 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12703 symbols in the static and global blocks.
12704
5a6c3296
JC
127052018-01-19 James Clarke <jrtc27@jrtc27.com>
12706
12707 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12708 gdb_ptrace.h, and move including gdb_wait.h ...
12709 * nat/linux-ptrace.h: ... to here.
12710
bc09b0c1
SM
127112018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12712
12713 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12714 inf_ptrace_detach_success.
12715 (inf_ptrace_detach_success): Add inferior parameter, use it
12716 instead of inferior_ptid, pass it to detach_inferior.
12717 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12718 parameter.
12719 * inferior.c (detach_inferior): Add overload that takes an
12720 inferior object.
12721 * inferior.h (detach_inferior): Likewise.
12722 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12723 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12724 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12725
6e1e1966
SM
127262018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12727
12728 * target.h (struct target_ops) <to_detach>: Add inferior
12729 parameter.
12730 (target_detach): Likewise.
12731 * target.c (dispose_inferior): Pass inferior down.
12732 (target_detach): Pass inferior down. Assert that it is equal to
12733 the current inferior.
12734 * aix-thread.c (aix_thread_detach): Pass inferior down.
12735 * corefile.c (core_file_command): Pass current_inferior() down.
12736 * corelow.c (core_detach): Add inferior parameter.
12737 * darwin-nat.c (darwin_detach): Likewise.
12738 * gnu-nat.c (gnu_detach): Likewise.
12739 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12740 * infcmd.c (detach_command): Pass current_inferior() down to
12741 target_detach.
12742 * infrun.c (follow_fork_inferior): Pass parent_inf to
12743 target_detach.
12744 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12745 target_detach.
12746 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12747 * linux-thread-db.c (thread_db_detach): Likewise.
12748 * nto-procfs.c (procfs_detach): Likewise.
12749 * procfs.c (procfs_detach): Likewise.
12750 * record.c (record_detach): Likewise.
12751 * record.h (struct inferior): Forward-declare.
12752 (record_detach): Add inferior parameter.
12753 * remote-sim.c (gdbsim_detach): Likewise.
12754 * remote.c (remote_detach_1): Likewise.
12755 (remote_detach): Likewise.
12756 (extended_remote_detach): Likewise.
12757 * sol-thread.c (sol_thread_detach): Likewise.
12758 * target-debug.h (target_debug_print_inferior_p): New macro.
12759 * target-delegates.c: Re-generate.
12760 * top.c (kill_or_detach): Pass inferior down to target_detach.
12761 * windows-nat.c (windows_detach): Add inferior parameter.
12762
6bd6f3b6
SM
127632018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12764
12765 * target.h (struct target_ops) <to_detach>: Remove args
12766 parameter.
12767 (target_detach): Likewise.
12768 * target.c (dispose_inferior): Adjust.
12769 (target_detach): Remove args parameter, adjust.
12770 * aix-thread.c (aix_thread_detach): Adjust.
12771 * corefile.c (core_file_command): Adjust.
12772 * corelow.c (core_detach): Adjust.
12773 * darwin-nat.c (darwin_detach): Adjust.
12774 * gnu-nat.c (gnu_detach): Adjust.
12775 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12776 * infcmd.c (detach_command): Adjust
12777 * infrun.c (follow_fork_inferior): Adjust.
12778 (handle_vfork_child_exec_or_exit): Adjust.
12779 * linux-fork.c (linux_fork_detach): Remove args parameter.
12780 * linux-fork.h (linux_fork_detach): Likewise.
12781 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12782 * linux-thread-db.c (thread_db_detach): Likewise.
12783 * nto-procfs.c (procfs_detach): Likewise.
12784 * procfs.c (procfs_detach): Likewise.
12785 (do_detach): Remove signo parameter.
12786 * record.c (record_detach): Remove args parameter.
12787 * record.h (record_detach): Likewise.
12788 * remote-sim.c (gdbsim_detach): Likewise.
12789 * remote.c (remote_detach_1): Likewise.
12790 (remote_detach): Likewise.
12791 (extended_remote_detach): Likewise.
12792 * sol-thread.c (sol_thread_detach): Likewise.
12793 * target-delegates.c: Re-generate.
12794 * top.c (struct qt_args) <args>: Remove field.
12795 (kill_or_detach): Don't pass args.
12796 (quit_force): Don't set args.
12797 * windows-nat.c (windows_detach): Remove args parameter.
12798
88af8ea8
YQ
127992018-01-19 Yao Qi <yao.qi@linaro.org>
12800
12801 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12802 (arm_linux_init_abi): Install it.
12803
dea445b9
YQ
128042018-01-19 Yao Qi <yao.qi@linaro.org>
12805
12806 * osabi.c (gdb_osabi_names): Extend the regexp for
12807 arm-linux-gnueabihf.
12808
4a17f768
YQ
128092018-01-18 Yao Qi <yao.qi@linaro.org>
12810
12811 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12812 m_abbrevs.
12813 (abbrev_table::add_abbrev): Update.
12814 (abbrev_table::lookup_abbrev): Update.
12815
d679c21a
YQ
128162018-01-18 Yao Qi <yao.qi@linaro.org>
12817
12818 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12819
7d937cad
SDJ
128202018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12821
12822 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12823 to "std::string".
12824
9e14690d
TT
128252018-01-17 Tom Tromey <tom@tromey.com>
12826
12827 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12828
50a82047
TT
128292018-01-17 Tom Tromey <tom@tromey.com>
12830
12831 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12832 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12833 (create_array_type_with_stride): Update.
12834 * dwarf2read.c (set_die_type): Update.
12835
c89b44cd
TT
128362018-01-17 Tom Tromey <tom@tromey.com>
12837
12838 * dwarf2read.c (delayed_method_info): Remove typedef.
12839 (dwarf2_cu::method_info): Now a std::vector.
12840 (add_to_method_list): Update.
12841 (free_delayed_list): Remove.
12842 (compute_delayed_physnames): Update.
12843 (process_full_comp_unit, process_full_type_unit): Clear the method
12844 list. Remove cleanups.
12845 (psymtab_include_file_name): Add name_holder parameter. Use
12846 unique_xmalloc_ptr.
12847 (dwarf_decode_lines): Update.
12848
fcd3b13d
SM
128492018-01-17 Tom Tromey <tom@tromey.com>
12850 Simon Marchi <simon.marchi@ericsson.com>
12851
12852 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12853 (dwarf2_per_objfile::free_cached_comp_units)
12854 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12855 (init_cutu_and_read_dies_no_follow): Update.
12856 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12857 (dwarf2_cu::~dwarf2_cu): New.
12858 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12859 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12860
685af9cd
TT
128612018-01-17 Tom Tromey <tom@tromey.com>
12862 Simon Marchi <simon.marchi@ericsson.com>
12863
12864 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12865 (struct die_reader_specs) <abbrev_table>: New member.
12866 (struct abbrev_table): Add constructor.
12867 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12868 <abbrev_obstack>: Now an auto_obstack.
12869 (abbrev_table_up): New typedef.
12870 (init_cu_die_reader): Add abbrev_table parameter.
12871 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12872 Add result_dwo_abbrev_table.
12873 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12874 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12875 Update.
12876 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12877 parameter.
12878 (skip_children): Update.
12879 (abbrev_table::alloc_abbrev): Rename from
12880 abbrev_table_alloc_abbrev.
12881 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12882 (abbrev_table::lookup_abbrev): Rename from
12883 abbrev_table_lookup_abbrev.
12884 (abbrev_table_read_table): Return abbrev_table_up.
12885 (abbrev_table_free, abbrev_table_free_cleanup)
12886 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12887 (load_partial_dies): Update.
12888
5e2db402
TT
128892018-01-17 Tom Tromey <tom@tromey.com>
12890
12891 * dwarf2read.c (dwarf2_compute_name): Update comment.
12892 (read_func_scope, read_variable): Update.
12893 (new_symbol): Remove.
12894 (new_symbol_full): Rename to new_symbol.
12895
ee7f689e 128962018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
12897
12898 PR gdb/16577
12899 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12900 a warning instead of throwing an error, set section size to 0 and return
12901 NULL.
12902 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12903
4d9b86e1
SM
129042018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12905
12906 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12907 std::string.
12908 (linux_ptrace_attach_fail_reason_string): Likewise.
12909 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12910 Likewise.
12911 (linux_ptrace_attach_fail_reason_string): Likewise.
12912 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12913
a7b2d0fb
SM
129142018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12915
12916 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12917
f517c180
EA
129182018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12919
12920 PR gdb/21559
12921 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12922 checking for fs_base/gs_base fields in struct user_regs_struct.
12923 * configure: Regenerate.
12924
7045b1ca
YQ
129252018-01-17 Yao Qi <yao.qi@linaro.org>
12926
12927 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12928 function.
12929 (aarch64_linux_init_abi): Install it to gdbarch hook
12930 gcc_target_options.
12931
db422fb2
PA
129322018-01-15 Pedro Alves <palves@redhat.com>
12933
12934 * common/signals-state-save-restore.c
12935 (save_original_signals_state): Fix typos.
12936
ba643918
SDJ
129372017-01-12 Tom Tromey <tom@tromey.com>
12938 Sergio Durigan Junior <sergiodj@redhat.com>
12939
12940 * Makefile.in (install-only): Install gdb-add-index.
12941
906b4aac
JB
129422018-01-12 John Baldwin <jhb@FreeBSD.org>
12943
12944 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12945
bdf2a94a
AA
129462018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12947
12948 * infrun.c (keep_going_pass_signal): Clear step-over info when
12949 insert_breakpoints fails.
12950
71d378ae
PA
129512018-01-11 Pedro Alves <palves@redhat.com>
12952
12953 PR gdb/22583
12954 * infrun.c (resume): Rename to ...
12955 (resume_1): ... this.
12956 (resume): Reimplement as wrapper around resume_1.
12957
3cada740
PA
129582018-01-11 Pedro Alves <palves@redhat.com>
12959
12960 PR remote/22597
12961 * remote.c (remote_parse_stop_reply): Default to the last-set
12962 general thread instead of to 'magic_null_ptid'.
12963
618daa93
PA
129642018-01-10 Pedro Alves <palves@redhat.com>
12965
12966 * language.h (language_get_symbol_name_matcher): Rename ...
12967 (get_symbol_name_matcher): ... this.
12968 * language.c (language_get_symbol_name_matcher): Ditto.
12969 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12970 callers adjusted.
12971
c63d3e8d
PA
129722018-01-10 Pedro Alves <palves@redhat.com>
12973
12974 PR gdb/22670
12975 * dwarf2read.c
12976 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12977 Adjust to use language_get_symbol_name_matcher instead of
12978 language_defn::la_get_symbol_name_matcher.
12979 * language.c (language_get_symbol_name_matcher): If in Ada mode
12980 and the lookup name is a verbatim match, return Ada's matcher.
12981 * language.h (language_get_symbol_name_matcher): Adjust comment.
12982 (ada_lookup_name_info::verbatim_p):: New method.
12983
d4c2a405
PA
129842018-01-10 Pedro Alves <palves@redhat.com>
12985
12986 PR gdb/22670
12987 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12988 minsym's language is language_auto or language_cplus, pass down
12989 language_ada instead.
12990 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12991
8825213e
PA
129922018-01-10 Pedro Alves <palves@redhat.com>
12993
12994 PR gdb/22670
12995 * minsyms.c (linkage_name_str): New function.
12996 (iterate_over_minimal_symbols): Use it.
12997
2d97a5d9
JB
129982018-01-09 John Baldwin <jhb@FreeBSD.org>
12999
13000 * NEWS: Document that 'info proc' now works on FreeBSD.
13001
92fce24d
JB
130022018-01-09 John Baldwin <jhb@FreeBSD.org>
13003
13004 * configure.ac: Check for kinfo_getfile in libutil.
13005 * configure: Regenerate.
13006 * config.in: Regenerate.
13007 * fbsd-nat.c: Include "fbsd-tdep.h".
13008 (fbsd_fetch_cmdline): New.
13009 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13010 rather than calling error.
13011 (fbsd_info_proc): New.
13012 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13013 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13014 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13015
262f62f5
JB
130162018-01-09 John Baldwin <jhb@FreeBSD.org>
13017
13018 * fbsd-nat.c (struct free_deleter): Remove.
13019 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13020
b999e203
JB
130212018-01-09 John Baldwin <jhb@FreeBSD.org>
13022
13023 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13024 NULL for an empty pathname.
13025
d2176225
JB
130262018-01-09 John Baldwin <jhb@FreeBSD.org>
13027
13028 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13029 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13030 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13031 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13032 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13033 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13034 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13035 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13036 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13037 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13038 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13039 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13040 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13041 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13042 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13043
9c4ac400
ST
130442018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13045
13046 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13047 (gnu_xfer_auxv): New function.
13048 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13049 TARGET_OBJECT_AUXV.
13050
1e5ded6c
YQ
130512018-01-08 Yao Qi <yao.qi@linaro.org>
13052 Simon Marchi <simon.marchi@ericsson.com>
13053
13054 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13055 common/selftest.c.
13056 (COMMON_OBS): Remove selftest.o.
13057 * configure.ac: Append selftest-arch.c and common/selftest.c to
13058 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13059 * configure: Re-generated.
13060 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13061 GDB_SELF_TEST.
13062 (maintenance_info_selftests): Likewise.
13063
04bafb1e
XR
130642018-01-08 Xavier Roirand <roirand@adacore.com>
13065
13066 * ada-valprint.c (val_print_packed_array_elements): Use
13067 proper number of elements when printing an array indexed
13068 by an enumeration type.
13069
518817b3
SM
130702018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13071
13072 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13073 (dw2_get_file_names_reader): Adjust.
13074 (lookup_dwo_signatured_type): Adjust.
13075 (lookup_dwp_signatured_type): Adjust.
13076 (lookup_signatured_type): Adjust.
13077 (create_type_unit_group): Adjust.
13078 (get_type_unit_group): Adjust.
13079 (process_psymtab_comp_unit_reader): Adjust.
13080 (build_type_psymtabs_reader): Adjust.
13081 (scan_partial_symbols): Adjust.
13082 (add_partial_symbol): Adjust.
13083 (add_partial_subprogram): Adjust.
13084 (peek_die_abbrev): Adjust.
13085 (fixup_go_packaging): Adjust.
13086 (process_imported_unit_die): Adjust.
13087 (dwarf2_compute_name): Adjust.
13088 (dwarf2_physname): Adjust.
13089 (read_import_statement): Adjust.
13090 (handle_DW_AT_stmt_list): Adjust.
13091 (read_file_scope): Adjust.
13092 (read_func_scope): Adjust.
13093 (read_lexical_block_scope): Adjust.
13094 (read_call_site_scope): Adjust.
13095 (read_variable): Adjust.
13096 (dwarf2_rnglists_process): Adjust.
13097 (dwarf2_ranges_process): Adjust.
13098 (dwarf2_ranges_read): Adjust.
13099 (dwarf2_get_pc_bounds): Adjust.
13100 (dwarf2_record_block_ranges): Adjust.
13101 (dwarf2_add_field): Adjust.
13102 (dwarf2_add_member_fn): Adjust.
13103 (read_structure_type): Adjust.
13104 (process_structure_scope): Adjust.
13105 (read_enumeration_type): Adjust.
13106 (read_array_type): Adjust.
13107 (mark_common_block_symbol_computed): Adjust.
13108 (read_common_block): Adjust.
13109 (read_namespace_type): Adjust.
13110 (read_namespace): Adjust.
13111 (read_module_type): Adjust.
13112 (read_tag_pointer_type): Adjust.
13113 (read_tag_ptr_to_member_type): Adjust.
13114 (read_tag_string_type): Adjust.
13115 (read_subroutine_type): Adjust.
13116 (read_typedef): Adjust.
13117 (read_base_type): Adjust.
13118 (attr_to_dynamic_prop): Adjust.
13119 (read_subrange_type): Adjust.
13120 (read_unspecified_type): Adjust.
13121 (dwarf2_read_abbrevs): Adjust.
13122 (load_partial_dies): Adjust.
13123 (read_partial_die): Adjust.
13124 (find_partial_die): Adjust.
13125 (guess_partial_die_structure_name): Adjust.
13126 (fixup_partial_die): Adjust.
13127 (read_attribute_value): Adjust.
13128 (read_addr_index): Adjust.
13129 (read_addr_index_from_leb128): Adjust.
13130 (read_str_index): Adjust.
13131 (dwarf2_string_attr): Adjust.
13132 (get_debug_line_section): Adjust.
13133 (dwarf_decode_line_header): Adjust.
13134 (lnp_state_machine::check_line_address): Adjust.
13135 (dwarf_decode_lines_1): Adjust.
13136 (dwarf_decode_lines): Adjust.
13137 (dwarf2_start_symtab): Adjust.
13138 (var_decode_location): Adjust.
13139 (new_symbol_full): Adjust.
13140 (dwarf2_const_value_data): Adjust.
13141 (dwarf2_const_value_attr): Adjust.
13142 (dwarf2_const_value): Adjust.
13143 (die_type): Adjust.
13144 (die_containing_type): Adjust.
13145 (build_error_marker_type): Adjust.
13146 (lookup_die_type): Adjust.
13147 (guess_full_die_structure_name): Adjust.
13148 (anonymous_struct_prefix): Adjust.
13149 (determine_prefix): Adjust.
13150 (dwarf2_name): Adjust.
13151 (follow_die_ref_or_sig): Adjust.
13152 (follow_die_offset): Adjust.
13153 (follow_die_ref): Adjust.
13154 (follow_die_sig_1): Adjust.
13155 (follow_die_sig): Adjust.
13156 (get_signatured_type): Adjust.
13157 (get_DW_AT_signature_type): Adjust.
13158 (decode_locdesc): Adjust.
13159 (dwarf_decode_macros): Adjust.
13160 (cu_debug_loc_section): Adjust.
13161 (fill_in_loclist_baton): Adjust.
13162 (dwarf2_symbol_mark_computed): Adjust.
13163 (init_one_comp_unit): Don't assign
13164 dwarf2_cu::dwarf2_per_objfile.
13165 (set_die_type): Adjust.
13166
ed2dc618
SM
131672018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13168
13169 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13170 <dwarf2_per_objfile>: New field.
13171 (dwarf2_per_objfile): Remove global.
13172 (get_dwarf2_per_objfile): New function.
13173 (set_dwarf2_per_objfile): New function.
13174 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13175 dwarf2_per_objfile.
13176 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13177 (read_abbrev_offset): Likewise.
13178 (read_indirect_string): Likewise.
13179 (read_indirect_line_string): Likewise.
13180 (read_indirect_string_at_offset): Likewise.
13181 (read_indirect_string_from_dwz): Likewise.
13182 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13183 dwarf2_per_objfile.
13184 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13185 (create_all_comp_units): Change objfile parameter to
13186 dwarf2_per_objfile.
13187 (create_all_type_units): Likewise.
13188 (process_queue): Add dwarf2_per_objfile parameter.
13189 (read_and_check_comp_unit_head): Likewise.
13190 (lookup_dwo_unit_in_dwp): Likewise.
13191 (get_dwp_file): Likewise.
13192 (process_cu_includes): Likewise.
13193 (struct free_dwo_file_cleanup_data): New struct.
13194 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13195 set_dwarf2_per_objfile.
13196 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13197 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13198 context, adjust calls.
13199 (dw2_instantiate_symtab): Likewise.
13200 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13201 (dw2_get_cu): Likewise.
13202 (create_cu_from_index_list): Change objfile parameter to
13203 dwarf2_per_objfile.
13204 (create_cus_from_index_list): Get dwarf2_per_objfile from
13205 context, adjust calls.
13206 (create_cus_from_index): Likewise.
13207 (create_signatured_type_table_from_index): Change objfile
13208 parameter to dwarf2_per_objfile.
13209 (create_signatured_type_table_from_debug_names): Change objfile
13210 parameter to dwarf2_per_objfile.
13211 (create_addrmap_from_index): Likewise.
13212 (create_addrmap_from_aranges): Likewise.
13213 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13214 (dw2_setup): Remove.
13215 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13216 context.
13217 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13218 get_dwarf2_per_objfile.
13219 (dw2_forget_cached_source_info): Likewise.
13220 (dw2_map_symtabs_matching_filename): Likewise.
13221 (struct dw2_symtab_iterator) <index>: Remove.
13222 <dwarf2_per_objfile>: New field.
13223 (dw2_symtab_iter_init): Replace index parameter with
13224 dwarf2_per_objfile.
13225 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13226 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13227 (dw2_print_stats): Likewise.
13228 (dw2_dump): Likewise.
13229 (dw2_expand_symtabs_for_function): Likewise.
13230 (dw2_expand_all_symtabs): Likewise.
13231 (dw2_expand_symtabs_with_fullname): Likewise.
13232 (dw2_expand_marked_cus): Replace index and objfile parameters
13233 with dwarf2_per_objfile.
13234 (dw_expand_symtabs_matching_file_matcher): Add
13235 dwarf2_per_objfile parameter and adjust calls.
13236 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13237 adjust calls.
13238 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13239 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13240 adjust calls.
13241 (create_cus_from_debug_names_list): Replace objfile parameter
13242 with dwarf2_per_objfile and adjust calls.
13243 (create_cus_from_debug_names): Likewise.
13244 (dwarf2_read_debug_names): Likewise.
13245 (mapped_debug_names::namei_to_name): Adjust call.
13246 (dw2_debug_names_iterator::next): Likewise.
13247 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13248 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13249 (dw2_debug_names_dump): Likewise.
13250 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13251 (dw2_debug_names_expand_symtabs_matching): Likewise.
13252 (dwarf2_initialize_objfile): Likewise.
13253 (dwarf2_build_psymtabs): Likewise.
13254 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13255 this_cu.
13256 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13257 (read_and_check_comp_unit_head): Likewise.
13258 (read_abbrev_offset): Likewise.
13259 (create_debug_type_hash_table): Likewise.
13260 (create_debug_types_hash_table): Likewise.
13261 (create_all_type_units): Replace objfile parameter with
13262 dwarf2_per_objfile.
13263 (add_type_unit): Add dwarf2_per_objfile parameter.
13264 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13265 with dwarf2_per_objfile.
13266 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13267 (lookup_dwp_signatured_type): Likewise.
13268 (lookup_signatured_type): Likewise.
13269 (read_cutu_die_from_dwo): Likewise.
13270 (init_tu_and_read_dwo_dies): Likewise.
13271 (init_cutu_and_read_dies): Likewise.
13272 (init_cutu_and_read_dies_no_follow): Likewise.
13273 (allocate_type_unit_groups_table): Add objfile parameter.
13274 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13275 (get_type_unit_group): Likewise.
13276 (process_psymtab_comp_unit): Update call.
13277 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13278 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13279 (print_tu_stats): Likewise.
13280 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13281 in void* parameter.
13282 (build_type_psymtabs): Change objfile parameter to
13283 dwarf2_per_objfile.
13284 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13285 passed in void* parameter.
13286 (process_skeletonless_type_units): Change objfile parameter to
13287 dwarf2_per_objfile.
13288 (set_partial_user): Likewise.
13289 (dwarf2_build_psymtabs_hard): Likewise.
13290 (read_comp_units_from_section): Likewise.
13291 (create_all_comp_units): Likewise.
13292 (scan_partial_symbols): Update calls.
13293 (add_partial_symbol): Likewise.
13294 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13295 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13296 (process_queue): Add dwarf2_per_objfile parameter.
13297 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13298 (compute_compunit_symtab_includes): Likewise.
13299 (process_cu_includes): Add dwarf2_per_objfile parameter.
13300 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13301 (process_full_type_unit): Likewise.
13302 (process_imported_unit_die): Update call.
13303 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13304 (read_file_scope): Likewise.
13305 (allocate_dwo_file_hash_table): Add objfile parameter.
13306 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13307 (create_cus_hash_table): Likewise.
13308 (create_dwp_hash_table): Likewise.
13309 (create_dwo_unit_in_dwp_v1): Likewise.
13310 (create_dwp_v2_section): Likewise.
13311 (create_dwo_unit_in_dwp_v2): Likewise.
13312 (lookup_dwo_unit_in_dwp): Likewise.
13313 (try_open_dwop_file): Likewise.
13314 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13315 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13316 cleanup to include a reference to dwarf2_per_objfile.
13317 (open_dwp_file): Add dwarf2_per_objfile parameter.
13318 (open_and_init_dwp_file): Likewise.
13319 (get_dwp_file): Likewise.
13320 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13321 (queue_and_load_all_dwo_tus): Update call.
13322 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13323 data.
13324 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13325 (dwarf2_ranges_process): Likewise.
13326 (dwarf2_get_pc_bounds): Likewise.
13327 (mark_common_block_symbol_computed): Likewise.
13328 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13329 (dwarf2_read_abbrevs): Update call.
13330 (read_partial_die): Use dwarf2_per_objfile from cu.
13331 (find_partial_die): Likewise.
13332 (fixup_partial_die): Likewise.
13333 (read_attribute_value): Likewise.
13334 (read_indirect_string_at_offset_from): Add objfile parameter.
13335 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13336 parameter.
13337 (read_indirect_string_from_dwz): Add objfile parameter.
13338 (read_indirect_string): Add objfile parameter.
13339 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13340 (read_addr_index): Use dwarf2_per_objfile from cu.
13341 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13342 call dw2_setup.
13343 (read_str_index): Use dwarf2_per_objfile from cu.
13344 (get_debug_line_section): Likewise.
13345 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13346 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13347 (new_symbol_full): Use dwarf2_per_objfile from cu.
13348 (build_error_marker_type): Likewise.
13349 (lookup_die_type): Likewise.
13350 (determine_prefix): Likewise.
13351 (follow_die_offset): Likewise.
13352 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13353 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13354 (dwarf2_fetch_die_type_sect_off): Likewise.
13355 (dwarf2_get_die_type): Likewise.
13356 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13357 (get_signatured_type): Likewise.
13358 (get_DW_AT_signature_type): Likewise.
13359 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13360 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13361 (cu_debug_loc_section): Likewise.
13362 (fill_in_loclist_baton): Likewise.
13363 (dwarf2_symbol_mark_computed): Likewise.
13364 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13365 dwarf2_per_objfile.
13366 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13367 parameter.
13368 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13369 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13370 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13371 (set_die_type): Use dwarf2_free_objfile from cu.
13372 (get_die_type_at_offset): Likewise.
13373 (dwarf2_per_objfile_free): Don't assign global variable.
13374 (debug_names) <constructor>: Add dwarf2_per_objfile
13375 parameter, update m_debugstrlookup construction.
13376 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13377 parameter.
13378 <m_dwarf2_per_objfile>: New field.
13379 <lookup>: Use m_dwarf2_per_objfile.
13380 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13381 (psyms_seen_size): Likewise.
13382 (write_gdbindex): Replace objfile parameter with
13383 dwarf2_per_objfile.
13384 (write_debug_names): Likewise.
13385 (write_psymtabs_to_index): Likewise.
13386 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13387 calls.
13388
e3b94546
SM
133892018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13390
13391 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13392 <dwarf2_per_objfile>: New field.
13393 (struct dwarf2_per_cu_data) <objfile>: Remove.
13394 <dwarf2_per_objfile>: New field.
13395 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13396 of objfile.
13397 (create_signatured_type_table_from_index): Likewise.
13398 (create_debug_type_hash_table): Likewise.
13399 (fill_in_sig_entry_from_dwo_entry): Likewise.
13400 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13401 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13402 objfile.
13403 (create_partial_symtab): Access objfile through
13404 dwarf2_per_objfile.
13405 (process_psymtab_comp_unit_reader): Likewise.
13406 (read_comp_units_from_section): Likewise.
13407 (scan_partial_symbols): Likewise.
13408 (add_partial_symbol): Likewise.
13409 (add_partial_subprogram): Likewise.
13410 (peek_die_abbrev): Likewise.
13411 (fixup_go_packaging): Likewise.
13412 (process_full_comp_unit): Likewise.
13413 (process_full_type_unit): Likewise.
13414 (process_imported_unit_die): Likewise.
13415 (dwarf2_compute_name): Likewise.
13416 (dwarf2_physname): Likewise.
13417 (read_import_statement): Likewise.
13418 (create_cus_hash_table): Assign dwarf2_physname instead of
13419 objfile.
13420 (read_func_scope): Access objfile through dwarf2_per_objfile.
13421 (read_lexical_block_scope): Likewise.
13422 (read_call_site_scope): Likewise.
13423 (read_variable): Likewise.
13424 (dwarf2_rnglists_process): Likewise.
13425 (dwarf2_ranges_process): Likewise.
13426 (dwarf2_ranges_read): Likewise.
13427 (dwarf2_record_block_ranges): Likewise.
13428 (dwarf2_add_field): Likewise.
13429 (dwarf2_add_member_fn): Likewise.
13430 (read_structure_type): Likewise.
13431 (process_structure_scope): Likewise.
13432 (read_enumeration_type): Likewise.
13433 (read_array_type): Likewise.
13434 (read_common_block): Likewise.
13435 (read_namespace_type): Likewise.
13436 (read_namespace): Likewise.
13437 (read_module_type): Likewise.
13438 (read_tag_pointer_type): Likewise.
13439 (read_tag_ptr_to_member_type): Likewise.
13440 (read_tag_string_type): Likewise.
13441 (read_subroutine_type): Likewise.
13442 (read_typedef): Likewise.
13443 (read_base_type): Likewise.
13444 (attr_to_dynamic_prop): Likewise.
13445 (read_subrange_type): Likewise.
13446 (read_unspecified_type): Likewise.
13447 (load_partial_dies): Likewise.
13448 (read_partial_die): Likewise.
13449 (find_partial_die): Likewise.
13450 (guess_partial_die_structure_name): Likewise.
13451 (fixup_partial_die): Likewise.
13452 (read_attribute_value): Likewise.
13453 (read_addr_index_from_leb128): Likewise.
13454 (dwarf2_read_addr_index): Likewise.
13455 (dwarf2_string_attr): Likewise.
13456 (lnp_state_machine::check_line_address): Likewise.
13457 (dwarf_decode_lines_1): Likewise.
13458 (dwarf_decode_lines): Likewise.
13459 (dwarf2_start_symtab): Likewise.
13460 (var_decode_location): Likewise.
13461 (new_symbol_full): Likewise.
13462 (dwarf2_const_value_data): Likewise.
13463 (dwarf2_const_value_attr): Likewise.
13464 (dwarf2_const_value): Likewise.
13465 (die_type): Likewise.
13466 (die_containing_type): Likewise.
13467 (lookup_die_type): Likewise.
13468 (guess_full_die_structure_name): Likewise.
13469 (anonymous_struct_prefix): Likewise.
13470 (dwarf2_name): Likewise.
13471 (follow_die_ref_or_sig): Likewise.
13472 (follow_die_offset): Likewise.
13473 (follow_die_ref): Likewise.
13474 (dwarf2_fetch_die_loc_sect_off): Likewise.
13475 (dwarf2_fetch_constant_bytes): Likewise.
13476 (dwarf2_fetch_die_type_sect_off): Likewise.
13477 (dwarf2_get_die_type): Likewise.
13478 (follow_die_sig): Likewise.
13479 (decode_locdesc): Likewise.
13480 (dwarf2_per_cu_objfile): Likewise.
13481 (dwarf2_per_cu_text_offset): Likewise.
13482 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13483 objfile.
13484 (set_die_type): Access objfile through
13485 dwarf2_per_objfile.
13486
b01ba14d
SM
134872018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13488
13489 * valprint.c (converted_character_d): Remove typedef.
13490 (DEF_VEC_O (converted_character_d)): Remove.
13491 (count_next_character): Use std::vector.
13492 (print_converted_chars_to_obstack): Likewise.
13493 (generic_printstr): Likewise.
13494
4d0fdd9b
SM
134952018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13496
13497 * xml-support.h (struct gdb_xml_value): Add constructor.
13498 <value>: Change type to unique_xmalloc_ptr.
13499 (gdb_xml_value_s): Remove typedef.
13500 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13501 (gdb_xml_element_start_handler): Change parameter type to
13502 std::vector.
13503 (xml_find_attribute): Likewise.
13504 * xml-support.c (xml_find_attribute): Change parameter type to
13505 std::vector and adjust.
13506 (gdb_xml_values_cleanup): Remove.
13507 (gdb_xml_parser::start_element): Adjust to std::vector.
13508 (xinclude_start_include): Change paraeter type to std::vector
13509 and adjust.
13510 * btrace.c (check_xml_btrace_version): Likewise.
13511 (parse_xml_btrace_block): Likewise.
13512 (parse_xml_btrace_pt_config_cpu): Likewise.
13513 (parse_xml_btrace_pt): Likewise.
13514 (parse_xml_btrace_conf_bts): Likewise.
13515 (parse_xml_btrace_conf_pt): Likewise.
13516 * memory-map.c (memory_map_start_memory): Likewise.
13517 (memory_map_start_property): Likewise.
13518 * osdata.c (osdata_start_osdata): Likewise.
13519 (osdata_start_item): Likewise.
13520 (osdata_start_column): Likewise.
13521 * remote.c (start_thread): Likewise.
13522 * solib-aix.c (library_list_start_library): Likewise.
13523 (library_list_start_list): Likewise.
13524 * solib-svr4.c (library_list_start_library): Likewise.
13525 (svr4_library_list_start_list): Likewise.
13526 * solib-target.c (library_list_start_segment): Likewise.
13527 (library_list_start_section): Likewise.
13528 (library_list_start_library): Likewise.
13529 (library_list_start_list): Likewise.
13530 * tracepoint.c (traceframe_info_start_memory): Likewise.
13531 (traceframe_info_start_tvar): Likewise.
13532 * xml-syscall.c (syscall_start_syscall): Likewise.
13533 * xml-tdesc.c (tdesc_start_target): Likewise.
13534 (tdesc_start_feature): Likewise.
13535 (tdesc_start_reg): Likewise.
13536 (tdesc_start_union): Likewise.
13537 (tdesc_start_struct): Likewise.
13538 (tdesc_start_flags): Likewise.
13539 (tdesc_start_enum): Likewise.
13540 (tdesc_start_field): Likewise.
13541 (tdesc_start_enum_value): Likewise.
13542 (tdesc_start_vector): Likewise.
13543
f979c73f
SM
135442018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13545
13546 * extension.h (struct xmethod_worker) <clone>: Remove.
13547 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13548 Remove.
13549 (python_xmethod_worker::clone): Remove.
13550 * valops.c (find_overload_match): Use std::move instead of
13551 clone.
13552
ba18742c
SM
135532018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13554
13555 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13556 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13557 <free_xmethod_worker_data>: Remove.
13558 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13559 <get_xmethod_arg_types>: Remove.
13560 <get_xmethod_result_type>: Remove.
13561 <invoke_xmethod>: Remove.
13562 * extension.c (new_xmethod_worker): Remove.
13563 (clone_xmethod_worker): Remove.
13564 (get_matching_xmethod_workers): Return void, pass std::vector by
13565 pointer.
13566 (get_xmethod_arg_types): Rename to...
13567 (xmethod_worker::get_arg_types): ... this, and adjust.
13568 (get_xmethod_result_type): Rename to...
13569 (xmethod_worker::get_result_type): ... this, and adjust.
13570 (invoke_xmethod): Remove.
13571 (free_xmethod_worker): Remove.
13572 (free_xmethod_worker_vec): Remove.
13573 * extension.h (enum ext_lang_rc): Move here from
13574 extension-priv.h.
13575 (struct xmethod_worker): Add constructor and destructor.
13576 <data>: Remove.
13577 <value>: Remove.
13578 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13579 virtual pure methods.
13580 <get_arg_types, get_result_type>: New methods.
13581 (xmethod_worker_ptr): Remove typedef.
13582 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13583 (xmethod_worker_vec): Remove typedef.
13584 (xmethod_worker_up): New typedef.
13585 (invoke_xmethod): Remove.
13586 (clone_xmethod_worker): Remove.
13587 (free_xmethod_worker): Remove.
13588 (free_xmethod_worker_vec): Remove.
13589 (get_xmethod_arg_types): Remove.
13590 (get_xmethod_result_type): Remove.
13591 * valops.c (find_method_list): Use std::vector, don't use
13592 intermediate vector.
13593 (value_find_oload_method_list): Use std::vector.
13594 (find_overload_match): Use std::vector.
13595 (find_oload_champ): Use std::vector.
13596 * value.c (value_free): Use operator delete.
13597 (value_of_xmethod): Rename to...
13598 (value_from_xmethod): ... this. Don't assign
13599 xmethod_worker::value, take rvalue-reference.
13600 (result_type_of_xmethod): Adjust.
13601 (call_xmethod): Adjust.
13602 * value.h: Include extension.h.
13603 (struct xmethod_worker): Don't forward-declare.
13604 (value_of_xmethod): Rename to...
13605 (value_from_xmethod): ... this, take rvalue-reference.
13606 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13607 (struct python_xmethod_worker): ... this, add constructor and
13608 destructor.
13609 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13610 (gdbpy_free_xmethod_worker_data): Rename to...
13611 (python_xmethod_worker::~python_xmethod_worker): ... this and
13612 adjust.
13613 (gdbpy_clone_xmethod_worker_data): Rename to...
13614 (python_xmethod_worker::clone): ... this and adjust.
13615 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13616 temporary vector.
13617 (gdbpy_get_xmethod_arg_types): Rename to...
13618 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13619 (gdbpy_get_xmethod_result_type): Rename to...
13620 (python_xmethod_worker::do_get_result_type): ... this and
13621 adjust.
13622 (gdbpy_invoke_xmethod): Rename to...
13623 (python_xmethod_worker::invoke): ... this and adjust.
13624 (new_python_xmethod_worker): Rename to...
13625 (python_xmethod_worker::python_xmethod_worker): ... this and
13626 adjust.
13627 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13628 Remove.
13629 (gdbpy_free_xmethod_worker_data): Remove.
13630 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13631 (gdbpy_get_xmethod_arg_types): Remove.
13632 (gdbpy_get_xmethod_result_type): Remove.
13633 (gdbpy_invoke_xmethod): Remove.
13634 * python/python.c (python_extension_ops): Remove obsolete
13635 callbacks.
13636
e379cee6
PA
136372018-01-05 Pedro Alves <palves@redhat.com>
13638
13639 PR gdb/18653
13640 * common/signals-state-save-restore.c
13641 (save_original_signals_state): New parameter 'quiet'. Warn if we
13642 find a custom handler preinstalled, instead of internal erroring.
13643 But only warn if !quiet.
13644 * common/signals-state-save-restore.h
13645 (save_original_signals_state): New parameter 'quiet'.
13646 * main.c (captured_main_1): Move save_original_signals_state call
13647 after option handling, and pass QUIET.
13648
a655456c
PA
136492018-01-05 Pedro Alves <palves@redhat.com>
13650
13651 * spu-tdep.c (spu_catch_start): Pass
13652 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13653
de63c46b
PA
136542018-01-05 Pedro Alves <palves@redhat.com>
13655
13656 PR gdb/22670
13657 * ada-lang.c (literal_symbol_name_matcher): New function.
13658 (ada_get_symbol_name_matcher): Use it for
13659 symbol_name_match_type::SEARCH_NAME.
13660 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13661 it down instead of assuming symbol_name_match_type::FULL.
13662 * block.h (block_lookup_symbol): New parameter 'match_type'.
13663 * c-valprint.c (print_unpacked_pointer): Use
13664 lookup_symbol_search_name instead of lookup_symbol.
13665 * compile/compile-object-load.c (get_out_value_type): Pass down
13666 symbol_name_match_type::SEARCH_NAME.
13667 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13668 symbol_name_match_type::FULL.
13669 * cp-support.c (cp_get_symbol_name_matcher): Handle
13670 symbol_name_match_type::SEARCH_NAME.
13671 * infrun.c (insert_exception_resume_breakpoint): Use
13672 lookup_symbol_search_name.
13673 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13674 * psymtab.c (maintenance_check_psymtabs): Use
13675 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13676 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13677 SYMBOL_SEARCH_NAME.
13678 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13679 if symbol_name_match_type::SEARCH_NAME.
13680 (lookup_symbol_in_language): Pass down
13681 symbol_name_match_type::FULL.
13682 (lookup_symbol_search_name): New.
13683 (lookup_language_this): Pass down
13684 symbol_name_match_type::SEARCH_NAME.
13685 (lookup_symbol_aux, lookup_local_symbol): New parameter
13686 'match_type'. Pass it down.
13687 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13688 (lookup_symbol_search_name): New declaration.
13689 (lookup_symbol_in_block): New 'match_type' parameter.
13690
f98fc17b
PA
136912018-01-05 Pedro Alves <palves@redhat.com>
13692
13693 PR gdb/22670
13694 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13695 ada_lookup_symbol.
13696 (ada_lookup_symbol): Reimplement in terms of
13697 ada_lookup_symbol_list, bits factored out from
13698 ada_lookup_encoded_symbol.
13699
342f8240
JB
137002018-01-05 Joel Brobecker <brobecker@adacore.com>
13701
13702 * ada-exp.y (write_object_renaming): When subscripting an array
13703 using a symbol as the index, pass the block in call to
13704 ada_lookup_encoded_symbol when looking that symbol up.
13705
7150d33c
JG
137062018-01-05 Jerome Guitton <guitton@adacore.com>
13707
13708 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13709 TYPE_INDEX_TYPE.
13710
cc0e770c
JB
137112018-01-05 Joel Brobecker <brobecker@adacore.com>
13712
13713 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13714 the case where VALUE_LVAL (val0) is not lval_memory.
13715
f79da888 137162018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
13717
13718 * ada-valprint.c (print_optional_low_bound): Handle
13719 character-indexed array printing like boolean-indexed array
13720 printing.
13721
cd385f94
JB
137222018-01-05 Joel Brobecker <brobecker@adacore.com>
13723
13724 * NEWS: Create a new section for the next release branch.
13725 Rename the section of the current branch, now that it has
13726 been cut.
13727
09aca949
JB
137282018-01-05 Joel Brobecker <brobecker@adacore.com>
13729
13730 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13731 * version.in: Bump version to 8.1.50.DATE-git.
13732
9f757bf7
XR
137332018-01-03 Xavier Roirand <roirand@adacore.com>
13734
13735 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13736 Add field.
13737 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13738 Add field.
13739 (default_exception_support_info) <catch_handlers_sym>: Add field.
13740 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13741 (ada_exception_name_addr_1): Add "catch handlers" handling.
13742 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13743 Update all callers.
13744 (create_excep_cond_exprs) <ex>: Add parameter.
13745 (re_set_exception): Update create_excep_cond_exprs call.
13746 (print_it_exception, print_one_exception, print_mention_exception)
13747 (print_recreate_exception): Add "catch handler" handling.
13748 (allocate_location_catch_handlers, re_set_catch_handlers)
13749 (check_status_catch_handlers, print_it_catch_handlers)
13750 (print_one_catch_handlers, print_mention_catch_handlers)
13751 (print_recreate_catch_handlers): New function.
13752 (catch_handlers_breakpoint_ops): New variable.
13753 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13754 Add parameter. Add "catch handler" handling.
13755 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13756 Add "catch handler" handling.
13757 (ada_exception_catchpoint_cond_string): Add "catch handler"
13758 handling.
13759 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13760 call.
13761 (catch_ada_handlers_command): New function.
13762 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13763 operations structure.
13764 (_initialize_ada_language): Add "catch handlers" command entry.
13765 * NEWS: Document "catch handlers" feature.
13766
9fe561ab
JB
137672018-01-02 Joel Brobecker <brobecker@adacore.com>
13768
13769 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13770 account when creating the array type of the slice.
13771 (ada_value_slice): Likewise.
13772
a405673c
JB
137732018-01-02 Joel Brobecker <brobecker@adacore.com>
13774
13775 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13776 New enum value.
13777 (create_array_type_with_stride): Add byte_stride_prop parameter.
13778 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13779 New parameter. Update all callers in this file.
13780 (array_type_has_dynamic_stride): New function.
13781 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13782 of arrays with dynamic byte strides.
13783 * dwarf2read.c (read_array_type): Add support for dynamic
13784 DW_AT_byte_stride attributes.
13785
74a2f8ff
JB
137862018-01-02 Joel Brobecker <brobecker@adacore.com>
13787
13788 * dwarf2read.c (read_unspecified_type): Treat
13789 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13790
e2882c85
JB
137912018-01-01 Joel Brobecker <brobecker@adacore.com>
13792
13793 Update copyright year range in all GDB files.
13794
1690bb24
JB
137952018-01-01 Joel Brobecker <brobecker@adacore.com>
13796
13797 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13798 and gdb/testsuite/gdb.base/step-line.c.
13799
0f0c98a8
JB
138002018-01-01 Joel Brobecker <brobecker@adacore.com>
13801
13802 * copyright.py (main): Dump the contents of
13803 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13804 even if BY_HAND is empty.
13805
82e1e79a
JB
138062018-01-01 Joel Brobecker <brobecker@adacore.com>
13807
13808 * top.c (print_gdb_version): Update Copyright year in version
13809 message.
13810
053f54e5 138112018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 13812
053f54e5 13813 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 13814
053f54e5 13815For older changes see ChangeLog-2017.
c906108c
SS
13816\f
13817Local Variables:
13818mode: change-log
13819left-margin: 8
13820fill-column: 74
13821version-control: never
57da7796 13822coding: utf-8
c906108c 13823End:
This page took 2.633139 seconds and 4 git commands to generate.