Report Python errors coming from gdb.post_event
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
39a24317
TT
12018-09-23 Tom Tromey <tom@tromey.com>
2
3 PR python/14062:
4 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
5
f5769a2c
TT
62018-09-23 Tom Tromey <tom@tromey.com>
7
8 PR python/18170:
9 * python/py-value.c (valpy_int): Allow conversion from pointer
10 type.
11
1c1e54f6
TT
122018-09-23 Tom Tromey <tom@tromey.com>
13
14 PR python/20126:
15 * python/py-value.c (valpy_int): Respect type sign.
16
fb4fa946
TT
172018-09-23 Tom Tromey <tom@tromey.com>
18
19 PR python/18352;
20 * python/py-value.c (valpy_float): Allow conversions from int or
21 char.
22 (valpy_int, valpy_long): Allow conversions from float.
23
65773341
TT
242018-09-23 Tom Tromey <tom@tromey.com>
25
26 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
27 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
28
1db88d22
RO
292018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30
31 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
32 __sighndlr.
33 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
34
a44294f5
JT
352018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
36
37 * windows-nat.c (windows_nat_target::wait): Remove a spurious
38 target_terminal::ours().
39
0c0a40e0
SM
402018-09-23 Simon Marchi <simon.marchi@ericsson.com>
41
42 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
43 of vl to ULONGEST.
44
4daf1902
YS
452018-09-21 Yacov Simhony <ysimhony@gmail.com>
46
47 * breakpoint.c (update_inserted_breakpoint_locations): Remove
48 redundant condition.
49
c475f569
RO
502018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
51
52 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
53
54 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
55 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
56 * sol-thread.c (ps_pdmodel): Don't guard definition.
57
58 * procfs.c: Fix formatting.
59
60 * procfs.c (sysset_t_alloc): Remove.
61 (create_procinfo): Use XNEW instead of sysset_t_alloc.
62 (procfs_debug_inferior): Likewise.
63 (procfs_set_exec_trap): Likewise.
64 (proc_set_traced_sysentry): Don't allocate argp dynamically.
65 (proc_set_traced_sysexit): Likewise.
66
67 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
68 (dead_procinfo): Likewise.
69 (proc_warn): Likewise.
70 (proc_error): Likewise.
71 (proc_get_LDT_entry): Likewise.
72 (do_attach): Likewise.
73 (procfs_target::pid_to_str): Likewise.
74 (iterate_over_mappings): Likewise.
75
76 * procfs.c (create_procinfo): Fix ARI warning.
77 (proc_get_status): Likewise.
78 (proc_stop_process): Likewise.
79 (proc_run_process): Likewise.
80 (proc_kill): Likewise.
81 (proc_get_LDT_entry): Likewise.
82 (procfs_find_LDT_entry): Likewise.
83 (proc_update_threads): Likewise.
84 (proc_iterate_over_threads): Likewise.
85 (do_attach): Likewise.
86 (procfs_xfer_memory): Likewise.
87 (invalidate_cache): Likewise.
88 (procfs_target::resume): Likewise.
89 (procfs_init_inferior): Likewise.
90 (procfs_set_exec_trap): Likewise.
91 (procfs_target::thread_alive): Likewise.
92 (procfs_target::pid_to_exec_file): Likewise.
93 (iterate_over_mappings): Likewise.
94 (procfs_target::make_corefile_notes): Likewise.
95 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
96
97 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
98 (procfs_find_LDT_entry): Likewise.
99 * sol-thread.c (ps_lgetLDT): Likewise.
100
4206c05e
RO
1012018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
102
103 PR tdep/17903
104 * procfs.c (procfs_target): Declare pid_to_exec_file.
105 (procfs_target::pid_to_exec_file): New.
106
3d282ac3
RO
1072018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
108
109 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
110 renaming.
111 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
112 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
113
8c93fae6
RO
1142018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
115
116 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
117 (supply_fpregset, fill_fpregset): Move ...
118 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
119 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
120 Remove references to ioctl-based procfs.
121 Include <sys/reg.h>.
122 Remove PR_MODEL_NATIVE guards.
123 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
124 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
125
79b32f4a
XR
1262018-09-19 Xavier Roirand <roirand@adacore.com>
127
128 PR gdb/20981:
129 * solib-darwin.c (darwin_get_dyld_bfd): New function.
130 (darwin_solib_get_all_image_info_addr_at_init): Update call.
131 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
132
07147793
JB
1332018-09-19 John Baldwin <jhb@FreeBSD.org>
134
135 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
136 (fbsd_print_sockaddr_in6): Likewise.
137
23be8da7
RB
1382018-09-19 Richard Bunt <richard.bunt@arm.com>
139 Chris January <chris.january@arm.com>
140
141 * eval.c (skip_undetermined_arglist): Skip argument list helper.
142 (evaluate_subexp_standard): Return a dummy type when
143 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
144 OP_F77_UNDETERMINED_ARGLIST case.
145 * expression.h (enum noside): Update comment.
146
7307a73a
RO
1472018-09-19 George Vasick <george.vasick@oracle.com>
148
149 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
150
13db92d3
RO
1512018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
152 April Chin <april.chin@oracle.com>
153 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
154
155 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
156 uint_t lwpid_t.
157 (create_procinfo): Print pids in /proc without leading zeros.
158
3d50f170
SL
1592018-09-18 Sandra Loosemore <sandra@codesourcery.com>
160
161 * nios2-tdep.c (nios2_gcc_target_options): New.
162 (nios2_gdb_arch_init): Install new hook.
163
b567ca63
SM
1642018-09-18 Simon Marchi <simon.marchi@ericsson.com>
165
166 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
167 New file.
168 * update-gnulib.sh: Apply patch.
169 * configure: Re-generate.
170
73f1bd76
JB
1712018-09-18 John Baldwin <jhb@FreeBSD.org>
172
173 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
174 description. Make "info proc" command descriptions more
175 consistent.
176
8b113111
JB
1772018-09-18 John Baldwin <jhb@FreeBSD.org>
178
179 * NEWS: Mention 'info proc files' command.
180
7e69672e
JB
1812018-09-18 John Baldwin <jhb@FreeBSD.org>
182
183 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
184 descriptors for IP_FILES and IP_ALL.
185
57c2a98a
JB
1862018-09-18 John Baldwin <jhb@FreeBSD.org>
187
188 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
189 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
190 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
191 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
192 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
193 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
194 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
195 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
196 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
197 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
198 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
199 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
200 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
201 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
202 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
203 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
204 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
205 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
206 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
207 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
208 (struct fbsd_sockaddr_un): New types.
209 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
210 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
211 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
212 (fbsd_core_info_proc_files): New functions.
213 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
214 IP_ALL.
215 * fbsd-tdep.h (fbsd_info_proc_files_header)
216 (fbsd_info_proc_files_entry): New.
217
e98ee8c4
JB
2182018-09-18 John Baldwin <jhb@FreeBSD.org>
219
220 * defs.h (enum info_proc_what) [IP_FILES]: New value.
221 * infcmd.c (info_proc_cmd_files): New function.
222 (_initialize_infcmd): Register 'info proc files' command.
223
725e2999
JB
2242018-09-18 John Baldwin <jhb@FreeBSD.org>
225
226 * gnulib/aclocal-m4-deps.mk: Re-generate.
227 * gnulib/aclocal.m4: Re-generate.
228 * gnulib/config.in: Re-generate.
229 * gnulib/configure: Re-generate.
230 * gnulib/import/Makefile.am: Re-generate.
231 * gnulib/import/Makefile.in: Re-generate.
232 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
233 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
234 * gnulib/import/arpa_inet.in.h: New file.
235 * gnulib/import/inet_ntop.c: New file.
236 * gnulib/import/m4/arpa_inet_h.m4: New file.
237 * gnulib/import/m4/inet_ntop.m4: New file.
238 * gnulib/import/m4/netinet_in_h.m4: New file.
239 * gnulib/import/m4/socklen.m4: New file.
240 * gnulib/import/m4/sockpfaf.m4: New file.
241 * gnulib/import/m4/stdalign.m4: New file.
242 * gnulib/import/m4/sys_uio_h.m4: New file.
243 * gnulib/import/netinet_in.in.h: New file.
244 * gnulib/import/stdalign.in.h: New file.
245 * gnulib/import/sys_socket.c: New file.
246 * gnulib/import/sys_socket.in.h: New file.
247 * gnulib/import/sys_uio.in.h: New file.
248 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
249 module.
250
2afffa7f
JB
2512018-09-18 John Baldwin <jhb@FreeBSD.org>
252
253 * gnulib/aclocal-m4-deps.mk: New file.
254 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
255 deterministically.
256
9f235e09
JB
2572018-09-18 John Baldwin <jhb@FreeBSD.org>
258
259 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
260 KVE_PATH.
261
40f03055
TT
2622018-09-18 Tom Tromey <tom@tromey.com>
263
264 * compile/compile-object-load.c (struct
265 link_hash_table_cleanup_data): Add constructor and destructor.
266 Use DISABLE_COPY_AND_ASSIGN.
267 (~link_hash_table_cleanup_data): Rename from
268 link_hash_table_free. Now a destructor.
269 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
270
c9e0a7e3
TT
2712018-09-18 Tom Tromey <tom@tromey.com>
272
273 * compile/compile-object-run.c (do_module_cleanup): Use delete.
274 * compile/compile-object-load.c (struct munmap_list): Move to
275 header file.
276 (munmap_list::add): Rename from munmap_list_add; rewrite.
277 (munmap_list::~munmap_list): Rename from munmap_list_free.
278 (munmap_listp_free_cleanup): Remove.
279 (compile_object_load): Update.
280 * compile/compile-object-load.h (struct munmap_list): Move from
281 compile-object-load.c. Rewrite.
282
3ff2c72e
AH
2832018-09-18 Alan Hayward <alan.hayward@arm.com>
284
285 * aarch64-tdep.c (pass_in_v): Use register size.
286 (aarch64_extract_return_value): Likewise.
287 (aarch64_store_return_value): Likewise.
288
206c1947
RO
2892018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
290
291 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
292 rlim_t.
293
6eb5dbce
PW
2942018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
295
296 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
297 Fix short help line.
298
ae292b3a
TT
2992018-09-17 Tom Tromey <tom@tromey.com>
300
301 PR python/20445:
302 * configure: Rebuild.
303 * configure.ac: Conditionally use -DNDEBUG for Python.
304
da658607
TT
3052018-09-17 Tom Tromey <tom@tromey.com>
306
307 * configure: Rebuild.
308 * configure.ac: Use gmp as a library dependency when checking for
309 mpfr.
310
d35da542
PA
3112018-09-17 Pedro Alves <palves@redhat.com>
312
313 * python/py-inferior.c (find_inferior_object): Delete.
314
461464f2
SM
3152018-09-17 Simon Marchi <simon.marchi@ericsson.com>
316
317 * compile/compile-cplus-types.c
318 (compile_cplus_instance::enter_scope): Don't use new_scope after
319 std::move.
320
e6cd1dc1
TT
3212018-09-17 Tom Tromey <tom@tromey.com>
322
323 * common/pathstuff.c (get_standard_cache_dir): Use
324 ~/Library/Caches on macOS.
325 * common/pathstuff.h (get_standard_cache_dir): Update comment.
326
8588b356
SM
3272018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
328
329 PR python/23669
330 * breakpoint.c (commands_cmd_element): New.
331 (_initialize_breakpoint): Assign commands_cmd_element.
332 * breakpoint.h (commands_cmd_element): New.
333 * cli/cli-script.c (while_cmd_element, if_command,
334 define_cmd_element): New.
335 (command_name_equals): Remove.
336 (process_next_line): Compare commands by pointer, not by name.
337 (_initialize_cli_script): Assign the various cmd_list_element
338 variables.
339 * compile/compile.c (compile_cmd_element): New.
340 (_initialize_compile): Assign compile_cmd_element.
341 * compile/compile.h (compile_cmd_element): New.
342 * guile/guile.c (guile_cmd_element): New.
343 (install_gdb_commands): Assign guile_cmd_element.
344 * guile/guile.h (guile_cmd_element): New.
345 * python/python.c (python_cmd_element): New.
346 (_initialize_python): Assign python_cmd_element.
347 * python/python.h (python_cmd_element): New.
348 * tracepoint.c (while_stepping_cmd_element): New.
349 (_initialize_tracepoint): Assign while_stepping_cmd_element.
350 * tracepoint.h (while_stepping_cmd_element): New.
351
cb524840
TT
3522018-09-17 Tom Tromey <tom@tromey.com>
353
354 * infrun.c (save_infcall_suspend_state): Return
355 infcall_suspend_state_up.
356 (save_infcall_control_state): Return infcall_control_state_up.
357 * inferior.h (save_infcall_suspend_state)
358 (save_infcall_control_state): Declare later. Return unique
359 pointers.
360
2d844eaf
TT
3612018-09-17 Tom Tromey <tom@tromey.com>
362
363 * infrun.c (struct stop_context): Declare constructor,
364 destructor, "changed" method.
365 (stop_context::stop_context): Rename from save_stop_context.
366 (stop_context::~stop_context): Rename from
367 release_stop_context_cleanup.
368 (normal_stop): Update.
369 (stop_context::changed): Rename from stop_context_changed. Return
370 bool.
371
c7c4d3fa
TT
3722018-09-17 Tom Tromey <tom@tromey.com>
373
374 * inferior.h (struct infcall_suspend_state_deleter): New.
375 (infcall_suspend_state_up): New typedef.
376 (struct infcall_control_state_deleter): New.
377 (infcall_control_state_up): New typedef.
378 (make_cleanup_restore_infcall_suspend_state)
379 (make_cleanup_restore_infcall_control_state): Don't declare.
380 * infcall.c (call_function_by_hand_dummy): Update.
381 * infrun.c (do_restore_infcall_suspend_state_cleanup)
382 (make_cleanup_restore_infcall_suspend_state): Remove.
383 (do_restore_infcall_control_state_cleanup)
384 (make_cleanup_restore_infcall_control_state): Remove.
385
ee841dd8
TT
3862018-09-17 Tom Tromey <tom@tromey.com>
387
388 * gdbthread.h (struct thread_control_state): Add initializer.
389 (class thread_info) <control>: Remove initializer.
390 * inferior.h (struct inferior_control_state): Add initializer.
391 (class inferior) <control>: Remove initializer.
392 (exit_inferior_1): Update.
393 * infrun.c (struct infcall_control_state): Add constructors.
394 (save_infcall_control_state): Use new.
395 (restore_infcall_control_state, discard_infcall_control_state):
396 Use delete.
397
117f580a
TT
3982018-09-17 Tom Tromey <tom@tromey.com>
399
400 * infrun.c (struct infcall_suspend_state) <registers>: Now a
401 unique_ptr.
402 <siginfo_data>: Now a unique_xmalloc_ptr.
403 (save_infcall_suspend_state, restore_infcall_suspend_state)
404 (discard_infcall_suspend_state)
405 (get_infcall_suspend_state_regcache): Update.
406
dd848631
TT
4072018-09-17 Tom Tromey <tom@tromey.com>
408
409 * gdbthread.h (struct thread_suspend_state): Add initializers.
410 (class thread_info) <suspend>: Remove initializer.
411 * infrun.c (struct infcall_suspend_state): Add initializers.
412 (save_infcall_suspend_state): Use new.
413 (discard_infcall_suspend_state): Use delete.
414
1a338907
TT
4152018-09-16 Tom Tromey <tom@tromey.com>
416
417 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
418 Remove.
419 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
420 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
421 (py_varobj_iter_new): Likewise.
422 (py_varobj_get_iterator): Use gdbpy_ref.
423
4a137fec
TT
4242018-09-16 Tom Tromey <tom@tromey.com>
425
426 * python/py-threadevent.c (py_get_event_thread): Simplify.
427 * python/py-inferior.c (infpy_thread_from_thread_handle):
428 Return immediately after calling thread_to_thread_object. Use
429 Py_RETURN_NONE.
430 (thread_to_thread_object): Set the exception on a NULL return.
431
8ff03f0b
SM
4322018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
433
434 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
435
94c8b725
TT
4362018-09-16 Tom Tromey <tom@tromey.com>
437
438 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
439 Remove.
440
db1337cc
TT
4412018-09-16 Tom Tromey <tom@tromey.com>
442
443 * python/python-internal.h (thread_to_thread_object): Change
444 return type.
445 * python/py-inferior.c (thread_to_thread_object): Return a new
446 reference.
447 (infpy_thread_from_thread_handle): Update.
448 * python/py-infthread.c (gdbpy_selected_thread): Update.
449 * python/py-stopevent.c (create_stop_event_object): Update.
450 * python/py-threadevent.c (py_get_event_thread): Return a new
451 reference.
452 (py_get_event_thread): Update.
453 * python/py-event.h (py_get_event_thread): Change return type.
454 * python/py-continueevent.c (create_continue_event_object):
455 Update.
456
0a9db5ad
TT
4572018-09-16 Tom Tromey <tom@tromey.com>
458
459 * python/py-progspace.c (pspy_get_objfiles): Update.
460 * python/python-internal.h (objfile_to_objfile_object): Change
461 return type.
462 * python/py-newobjfileevent.c (create_new_objfile_event_object):
463 Update.
464 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
465 Update.
466 * python/python.c (gdbpy_get_current_objfile): Update.
467 (gdbpy_objfiles): Update.
468 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
469 Update.
470 (objfile_to_objfile_object): Return a new reference.
471 * python/py-symtab.c (stpy_get_objfile): Update.
472 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
473 Update.
474
3c7aa307
TT
4752018-09-16 Tom Tromey <tom@tromey.com>
476
477 * python/py-inferior.c (infpy_get_progspace): Update.
478 * python/python-internal.h (pspace_to_pspace_object): Change
479 return type.
480 * python/py-newobjfileevent.c
481 (create_clear_objfiles_event_object): Update.
482 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
483 Update.
484 * python/python.c (gdbpy_get_current_progspace): Update.
485 (gdbpy_progspaces): Update.
486 * python/py-progspace.c (pspace_to_pspace_object): Return a new
487 reference.
488 * python/py-objfile.c (objfpy_get_progspace): Update.
489 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
490 Update.
491
8743a9cd
TT
4922018-09-16 Tom Tromey <tom@tromey.com>
493
494 * python/lib/gdb/__init__.py (current_progspace, objfiles)
495 (solib_name, block_for_pc, find_pc_line): New functions.
496 (execute_unwinders): Update.
497 * python/py-block.c (gdbpy_block_for_pc): Remove.
498 * python/py-inferior.c (infpy_get_progspace): New function.
499 (inferior_object_getset) <progspace>: Add.
500 * python/py-progspace.c (pspy_objfiles): Rewrite.
501 (pspy_solib_name, pspy_block_for_pc)
502 (pspy_find_pc_line, pspy_is_valid): New functions.
503 (progspace_object_methods): Add entries for solib_name,
504 block_for_pc, find_pc_line, is_valid.
505 * python/python-internal.h (gdbpy_block_for_pc)
506 (build_objfiles_list): Don't declare.
507 * python/python.c: Don't include solib.h.
508 (gdbpy_solib_name, gdbpy_find_pc_line)
509 (gdbpy_get_current_progspace, build_objfiles_list)
510 (gdbpy_objfiles): Remove.
511 (GdbMethods) <current_progspace, objfiles, block_for_pc,
512 solib_name, find_pc_line>: Remove entries.
513
65e65158
TT
5142018-09-16 Tom Tromey <tom@tromey.com>
515
516 * top.c (new_ui_command): Use GNU style for metasyntactic
517 variables.
518 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
519 variables.
520 * maint.c (maintenance_translate_address): Remove "<>" around
521 text.
522 * interps.c (interpreter_exec_cmd): Use GNU style for
523 metasyntactic variables.
524 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
525 metasyntactic variables.
526 * tracepoint.c (tfind_range_command): Use GNU style for
527 metasyntactic variables.
528 (tfind_outside_command): Likewise.
529 (_initialize_tracepoint): Likewise.
530 * remote.c (extended_remote_target::create_inferior): Use GNU
531 style for metasyntactic variables.
532 * sparc64-tdep.c (adi_examine_command): Use GNU style for
533 metasyntactic variables.
534 (adi_assign_command): Likewise.
535
f4bab6ff
TT
5362018-09-16 Tom Tromey <tom@tromey.com>
537
538 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
539 metasyntactic variables. Print message if no disassembler options
540 are available.
541
cbaaa0ca
TT
5422018-09-15 Tom Tromey <tom@tromey.com>
543
544 * infcmd.c (get_inferior_args): Return const char *.
545 * inferior.h (get_inferior_args): Return type now const.
546 * linux-tdep.c (linux_fill_prpsinfo): Update.
547 * procfs.c (procfs_target::make_corefile_notes): Update.
548
a3a6aef4
TT
5492018-09-07 Tom Tromey <tom@tromey.com>
550
551 * python/python.c (execute_gdb_command): Call bpstat_do_actions
552 inside the TRY.
553
f70e088f
SL
5542018-09-14 Sandra Loosemore <sandra@codesourcery.com>
555
556 * nios2-tdep.c (nios2_type_align): New.
557 (nios2_gdb_arch_init): Install type_align hook.
558
2fabdf33
AB
5592018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
560
561 * eval.c (fake_method::fake_method): Call xzalloc directly for a
562 type that is neither object file owned, nor gdbarch owned.
563 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
564 gdbarch is non-NULL.
565 (alloc_type_instance): Allocate non-objfile owned types on the
566 gdbarch obstack.
567 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
568 using TYPE_ALLOC to ensure memory is allocated on the correct
569 obstack.
570 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
571 obstack, or the gdbarch obstack.
572 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
573
b4b08fa2
TT
5742018-09-14 Tom Tromey <tom@tromey.com>
575
576 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
577 block.
578
87b240d4
TT
5792018-09-14 Tom Tromey <tom@tromey.com>
580
581 * nat/fork-inferior.c (get_startup_shell): Remove "static".
582
7d221512
TT
5832018-09-13 Tom Tromey <tom@tromey.com>
584
585 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
586 static.
587
97e67fc6
TT
5882018-09-13 Tom Tromey <tom@tromey.com>
589
590 * exec.c (try_open_exec_file): Use std::string.
591
803c08d0
TT
5922018-09-13 Tom Tromey <tom@tromey.com>
593
594 * utils.h (gdb_bfd_errmsg): Return std::string.
595 * exec.c (exec_file_attach): Update.
596 * compile/compile-object-load.c (compile_object_load): Update.
597 * utils.c (gdb_bfd_errmsg): Return std::string.
598
5b4cbbe3
TT
5992018-09-13 Tom Tromey <tom@tromey.com>
600
601 * procfs.c (struct procinfo_deleter): New.
602 (procinfo_up): New typedef.
603 (do_destroy_procinfo_cleanup): Remove.
604 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
605
db68fbe2
TT
6062018-09-13 Tom Tromey <tom@tromey.com>
607
608 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
609
0ae1a321
SM
6102018-09-13 Simon Marchi <simon.marchi@ericsson.com>
6112018-09-13 Tom Tromey <tom@tromey.com>
612
613 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
614 (pspy_get_objfiles): New function.
615 (progspace_object_methods): New.
616 (pspace_object_type): Add tp_methods callback.
617 * python/python-internal.h (build_objfiles_list): New
618 declaration.
619 * python/python.c (build_objfiles_list): New function.
620 (gdbpy_objfiles): Implement using build_objfiles_list.
621 * NEWS: Mention the Progspace.objfiles method.
622
a40bf0c2
SM
6232018-09-13 Simon Marchi <simon.marchi@ericsson.com>
624
625 * python/py-inferior.c (infpy_get_progspace): New function.
626 (inferior_object_getset): Add progspace property.
627 * NEWS: Mention the new property.
628
4a3fe98f
TT
6292018-09-13 Tom Tromey <tom@tromey.com>
630
631 PR rust/23650:
632 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
633
098b2108
TT
6342018-09-13 Tom Tromey <tom@tromey.com>
635
636 PR rust/23626:
637 * rust-lang.c (rust_enum_variant): Now static.
638 (rust_empty_enum_p): New function.
639 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
640 Handle empty enum.
641
1256af7d
SM
6422018-09-13 Simon Marchi <simon.marchi@ericsson.com>
643
644 * python/py-inferior.c (infpy_repr): New.
645 (inferior_object_type): Register infpy_repr.
646 * python/py-objfile.c (objfpy_repr): New.
647 (objfile_object_type): Register objfpy_repr.
648
f117a62c
JB
6492018-09-12 John Baldwin <jhb@FreeBSD.org>
650
651 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
652
88f22c34
JB
6532018-09-12 John Baldwin <jhb@FreeBSD.org>
654
655 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
656 typo.
657
3c025cfe
SDJ
6582018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
659
660 * common/common-utils.c: Don't include '<sys/stat.h>'.
661 (is_regular_file): Move to...
662 * common/filestuff.c (is_regular_file): ... here.
663 * common/common-utils.h (is_regular_file): Move to...
664 * common/filestuff.h (is_regular_file): ... here.
665
3e68067f
SM
6662018-09-12 Simon Marchi <simon.marchi@ericsson.com>
667
668 * skip.c (debug_skip): New variable.
669 (skiplist_entry::do_skip_file_p): Add debug output.
670 (skiplist_entry::do_skip_gfile_p): Likewise.
671 (skiplist_entry::skip_function_p): Likewise.
672 (_initialize_step_skip): Create debug command.
673 * NEWS: Mention set/show debug skip.
674
d6be54ef
XR
6752018-09-11 Xavier Roirand <roirand@adacore.com>
676
677 * darwin-nat.c (should_disable_startup_with_shell):
678 New function.
679 (darwin_nat_target::create_inferior): Add call.
680
de1ec836
XR
6812018-09-11 Xavier Roirand <roirand@adacore.com>
682
683 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
684 inf_port, msg_state>: Initialize.
685 (struct darwin_thread_info) <signaled, single_step>: Change
686 type and initialize.
687 (struct darwin_thread_info) <event>: Initialize.
688
e2fc52e7
SDJ
6892018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
690
691 PR gdb/23555
692 PR gdb/23558
693 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
694 guesses.
695
5e8754f9
SDJ
6962018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
697
698 Revert:
699 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
700
701 PR gdb/23555
702 PR gdb/23558
703 * gnulib/aclocal.m4: Regenerate.
704 * gnulib/config.in: Regenerate.
705 * gnulib/configure: Regenerate.
706 * gnulib/import/Makefile.am: Update.
707 * gnulib/import/Makefile.in: Update.
708 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
709 * gnulib/import/_Noreturn.h: ... this.
710 * gnulib/import/alloca.in.h: Update.
711 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
712 * gnulib/import/arg-nonnull.h: ... this.
713 * gnulib/import/assure.h: Update.
714 * gnulib/import/at-func.c: Update.
715 * gnulib/import/basename-lgpl.c: Update.
716 * gnulib/import/extra/snippet/c++defs.h: Rename to...
717 * gnulib/import/c++defs.h: ... this.
718 * gnulib/import/canonicalize-lgpl.c: Update.
719 * gnulib/import/cdefs.h: Update.
720 * gnulib/import/chdir-long.c: Update.
721 * gnulib/import/chdir-long.h: Update.
722 * gnulib/import/cloexec.c: Update.
723 * gnulib/import/cloexec.h: Update.
724 * gnulib/import/close.c: Update.
725 * gnulib/import/closedir.c: Update.
726 * gnulib/import/config.charset: Update.
727 * gnulib/import/dirent-private.h: Update.
728 * gnulib/import/dirent.in.h: Update.
729 * gnulib/import/dirfd.c: Update.
730 * gnulib/import/dirname-lgpl.c: Update.
731 * gnulib/import/dirname.h: Update.
732 * gnulib/import/dosname.h: Update.
733 * gnulib/import/dup-safer-flag.c: Update.
734 * gnulib/import/dup-safer.c: Update.
735 * gnulib/import/dup.c: Update.
736 * gnulib/import/dup2.c: Update.
737 * gnulib/import/errno.in.h: Update.
738 * gnulib/import/error.c: Update.
739 * gnulib/import/error.h: Update.
740 * gnulib/import/exitfail.c: Update.
741 * gnulib/import/exitfail.h: Update.
742 * gnulib/import/extra/update-copyright: Update.
743 * gnulib/import/fchdir.c: Update.
744 * gnulib/import/fcntl.c: Update.
745 * gnulib/import/fcntl.in.h: Update.
746 * gnulib/import/fd-hook.c: Update.
747 * gnulib/import/fd-hook.h: Update.
748 * gnulib/import/fd-safer-flag.c: Update.
749 * gnulib/import/fd-safer.c: Update.
750 * gnulib/import/fdopendir.c: Update.
751 * gnulib/import/filename.h: Update.
752 * gnulib/import/filenamecat-lgpl.c: Update.
753 * gnulib/import/filenamecat.h: Update.
754 * gnulib/import/flexmember.h: Update.
755 * gnulib/import/float+.h: Update.
756 * gnulib/import/float.c: Update.
757 * gnulib/import/float.in.h: Update.
758 * gnulib/import/fnmatch.c: Update.
759 * gnulib/import/fnmatch.in.h: Update.
760 * gnulib/import/fnmatch_loop.c: Update.
761 * gnulib/import/fpucw.h: Update.
762 * gnulib/import/frexp.c: Update.
763 * gnulib/import/frexpl.c: Update.
764 * gnulib/import/fstat.c: Update.
765 * gnulib/import/fstatat.c: Update.
766 * gnulib/import/getcwd-lgpl.c: Update.
767 * gnulib/import/getcwd.c: Update.
768 * gnulib/import/getdtablesize.c: Update.
769 * gnulib/import/getlogin_r.c: Update.
770 * gnulib/import/getprogname.c: Update.
771 * gnulib/import/getprogname.h: Update.
772 * gnulib/import/gettext.h: Update.
773 * gnulib/import/gettimeofday.c: Update.
774 * gnulib/import/glob-libc.h: Update.
775 * gnulib/import/glob.c: Update.
776 * gnulib/import/glob.in.h: Update.
777 * gnulib/import/glob_internal.h: Update.
778 * gnulib/import/glob_pattern_p.c: Update.
779 * gnulib/import/globfree.c: Update.
780 * gnulib/import/hard-locale.c: Update.
781 * gnulib/import/hard-locale.h: Update.
782 * gnulib/import/intprops.h: Update.
783 * gnulib/import/inttypes.in.h: Update.
784 * gnulib/import/isnan.c: Update.
785 * gnulib/import/isnand-nolibm.h: Update.
786 * gnulib/import/isnand.c: Update.
787 * gnulib/import/isnanl-nolibm.h: Update.
788 * gnulib/import/isnanl.c: Update.
789 * gnulib/import/itold.c: Update.
790 * gnulib/import/libc-config.h: Update.
791 * gnulib/import/limits.in.h: Update.
792 * gnulib/import/localcharset.c: Update.
793 * gnulib/import/localcharset.h: Update.
794 * gnulib/import/localtime-buffer.c: Update.
795 * gnulib/import/localtime-buffer.h: Update.
796 * gnulib/import/lstat.c: Update.
797 * gnulib/import/m4/00gnulib.m4: Update.
798 * gnulib/import/m4/__inline.m4: Update.
799 * gnulib/import/m4/absolute-header.m4: Update.
800 * gnulib/import/m4/alloca.m4: Update.
801 * gnulib/import/m4/builtin-expect.m4: Update.
802 * gnulib/import/m4/canonicalize.m4: Update.
803 * gnulib/import/m4/chdir-long.m4: Update.
804 * gnulib/import/m4/close.m4: Update.
805 * gnulib/import/m4/closedir.m4: Update.
806 * gnulib/import/m4/configmake.m4: Update.
807 * gnulib/import/m4/d-ino.m4: Update.
808 * gnulib/import/m4/d-type.m4: Update.
809 * gnulib/import/m4/dirent_h.m4: Update.
810 * gnulib/import/m4/dirfd.m4: Update.
811 * gnulib/import/m4/dirname.m4: Update.
812 * gnulib/import/m4/double-slash-root.m4: Update.
813 * gnulib/import/m4/dup.m4: Update.
814 * gnulib/import/m4/dup2.m4: Update.
815 * gnulib/import/m4/eealloc.m4: Update.
816 * gnulib/import/m4/environ.m4: Update.
817 * gnulib/import/m4/errno_h.m4: Update.
818 * gnulib/import/m4/error.m4: Update.
819 * gnulib/import/m4/exponentd.m4: Update.
820 * gnulib/import/m4/exponentl.m4: Update.
821 * gnulib/import/m4/extensions.m4: Update.
822 * gnulib/import/m4/extern-inline.m4: Update.
823 * gnulib/import/m4/fchdir.m4: Update.
824 * gnulib/import/m4/fcntl-o.m4: Update.
825 * gnulib/import/m4/fcntl.m4: Update.
826 * gnulib/import/m4/fcntl_h.m4: Update.
827 * gnulib/import/m4/fdopendir.m4: Update.
828 * gnulib/import/m4/filenamecat.m4: Update.
829 * gnulib/import/m4/flexmember.m4: Update.
830 * gnulib/import/m4/float_h.m4: Update.
831 * gnulib/import/m4/fnmatch.m4: Update.
832 * gnulib/import/m4/fnmatch_h.m4: Update.
833 * gnulib/import/m4/fpieee.m4: Update.
834 * gnulib/import/m4/frexp.m4: Update.
835 * gnulib/import/m4/frexpl.m4: Update.
836 * gnulib/import/m4/fstat.m4: Update.
837 * gnulib/import/m4/fstatat.m4: Update.
838 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
839 * gnulib/import/m4/getcwd-path-max.m4: Update.
840 * gnulib/import/m4/getcwd.m4: Update.
841 * gnulib/import/m4/getdtablesize.m4: Update.
842 * gnulib/import/m4/getlogin.m4: Update.
843 * gnulib/import/m4/getlogin_r.m4: Update.
844 * gnulib/import/m4/getpagesize.m4: Update.
845 * gnulib/import/m4/getprogname.m4: Update.
846 * gnulib/import/m4/gettimeofday.m4: Update.
847 * gnulib/import/m4/glibc21.m4: Update.
848 * gnulib/import/m4/glob.m4: Update.
849 * gnulib/import/m4/glob_h.m4: Update.
850 * gnulib/import/m4/gnulib-cache.m4: Update.
851 * gnulib/import/m4/gnulib-common.m4: Update.
852 * gnulib/import/m4/gnulib-comp.m4: Update.
853 * gnulib/import/m4/gnulib-tool.m4: Update.
854 * gnulib/import/m4/hard-locale.m4: Update.
855 * gnulib/import/m4/include_next.m4: Update.
856 * gnulib/import/m4/inttypes-pri.m4: Update.
857 * gnulib/import/m4/inttypes.m4: Update.
858 * gnulib/import/m4/isnand.m4: Update.
859 * gnulib/import/m4/isnanl.m4: Update.
860 * gnulib/import/m4/largefile.m4: Update.
861 * gnulib/import/m4/limits-h.m4: Update.
862 * gnulib/import/m4/localcharset.m4: Update.
863 * gnulib/import/m4/locale-fr.m4: Update.
864 * gnulib/import/m4/locale-ja.m4: Update.
865 * gnulib/import/m4/locale-zh.m4: Update.
866 * gnulib/import/m4/localtime-buffer.m4: Update.
867 * gnulib/import/m4/longlong.m4: Update.
868 * gnulib/import/m4/lstat.m4: Update.
869 * gnulib/import/m4/malloc.m4: Update.
870 * gnulib/import/m4/malloca.m4: Update.
871 * gnulib/import/m4/math_h.m4: Update.
872 * gnulib/import/m4/mbrtowc.m4: Update.
873 * gnulib/import/m4/mbsinit.m4: Update.
874 * gnulib/import/m4/mbsrtowcs.m4: Update.
875 * gnulib/import/m4/mbstate_t.m4: Update.
876 * gnulib/import/m4/memchr.m4: Update.
877 * gnulib/import/m4/memmem.m4: Update.
878 * gnulib/import/m4/mempcpy.m4: Update.
879 * gnulib/import/m4/memrchr.m4: Update.
880 * gnulib/import/m4/mkdir.m4: Update.
881 * gnulib/import/m4/mkstemp.m4: Update.
882 * gnulib/import/m4/mmap-anon.m4: Update.
883 * gnulib/import/m4/mode_t.m4: Update.
884 * gnulib/import/m4/msvc-inval.m4: Update.
885 * gnulib/import/m4/msvc-nothrow.m4: Update.
886 * gnulib/import/m4/multiarch.m4: Update.
887 * gnulib/import/m4/nocrash.m4: Update.
888 * gnulib/import/m4/off_t.m4: Update.
889 * gnulib/import/m4/onceonly.m4: Update.
890 * gnulib/import/m4/open-cloexec.m4: Update.
891 * gnulib/import/m4/open.m4: Update.
892 * gnulib/import/m4/openat.m4: Update.
893 * gnulib/import/m4/opendir.m4: Update.
894 * gnulib/import/m4/pathmax.m4: Update.
895 * gnulib/import/m4/rawmemchr.m4: Update.
896 * gnulib/import/m4/readdir.m4: Update.
897 * gnulib/import/m4/readlink.m4: Update.
898 * gnulib/import/m4/realloc.m4: Update.
899 * gnulib/import/m4/rename.m4: Update.
900 * gnulib/import/m4/rewinddir.m4: Update.
901 * gnulib/import/m4/rmdir.m4: Update.
902 * gnulib/import/m4/save-cwd.m4: Update.
903 * gnulib/import/m4/secure_getenv.m4: Update.
904 * gnulib/import/m4/setenv.m4: Update.
905 * gnulib/import/m4/signal_h.m4: Update.
906 * gnulib/import/m4/ssize_t.m4: Update.
907 * gnulib/import/m4/stat-time.m4: Update.
908 * gnulib/import/m4/stat.m4: Update.
909 * gnulib/import/m4/std-gnu11.m4: Update.
910 * gnulib/import/m4/stdbool.m4: Update.
911 * gnulib/import/m4/stddef_h.m4: Update.
912 * gnulib/import/m4/stdint.m4: Update.
913 * gnulib/import/m4/stdio_h.m4: Update.
914 * gnulib/import/m4/stdlib_h.m4: Update.
915 * gnulib/import/m4/strchrnul.m4: Update.
916 * gnulib/import/m4/strdup.m4: Update.
917 * gnulib/import/m4/strerror.m4: Update.
918 * gnulib/import/m4/string_h.m4: Update.
919 * gnulib/import/m4/strstr.m4: Update.
920 * gnulib/import/m4/strtok_r.m4: Update.
921 * gnulib/import/m4/sys_socket_h.m4: Update.
922 * gnulib/import/m4/sys_stat_h.m4: Update.
923 * gnulib/import/m4/sys_time_h.m4: Update.
924 * gnulib/import/m4/sys_types_h.m4: Update.
925 * gnulib/import/m4/tempname.m4: Update.
926 * gnulib/import/m4/time_h.m4: Update.
927 * gnulib/import/m4/unistd-safer.m4: Update.
928 * gnulib/import/m4/unistd_h.m4: Update.
929 * gnulib/import/m4/warn-on-use.m4: Update.
930 * gnulib/import/m4/wchar_h.m4: Update.
931 * gnulib/import/m4/wchar_t.m4: Update.
932 * gnulib/import/m4/wctype_h.m4: Update.
933 * gnulib/import/m4/wint_t.m4: Update.
934 * gnulib/import/malloc.c: Update.
935 * gnulib/import/malloc/scratch_buffer.h: Update.
936 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
937 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
938 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
939 * gnulib/import/malloca.c: Update.
940 * gnulib/import/malloca.h: Update.
941 * gnulib/import/malloca.valgrind: Update.
942 * gnulib/import/math.in.h: Update.
943 * gnulib/import/mbrtowc.c: Update.
944 * gnulib/import/mbsinit.c: Update.
945 * gnulib/import/mbsrtowcs-impl.h: Update.
946 * gnulib/import/mbsrtowcs-state.c: Update.
947 * gnulib/import/mbsrtowcs.c: Update.
948 * gnulib/import/memchr.c: Update.
949 * gnulib/import/memmem.c: Update.
950 * gnulib/import/mempcpy.c: Update.
951 * gnulib/import/memrchr.c: Update.
952 * gnulib/import/mkdir.c: Update.
953 * gnulib/import/mkstemp.c: Update.
954 * gnulib/import/msvc-inval.c: Update.
955 * gnulib/import/msvc-inval.h: Update.
956 * gnulib/import/msvc-nothrow.c: Update.
957 * gnulib/import/msvc-nothrow.h: Update.
958 * gnulib/import/open.c: Update.
959 * gnulib/import/openat-die.c: Update.
960 * gnulib/import/openat-priv.h: Update.
961 * gnulib/import/openat-proc.c: Update.
962 * gnulib/import/openat.c: Update.
963 * gnulib/import/openat.h: Update.
964 * gnulib/import/opendir.c: Update.
965 * gnulib/import/pathmax.h: Update.
966 * gnulib/import/pipe-safer.c: Update.
967 * gnulib/import/rawmemchr.c: Update.
968 * gnulib/import/readdir.c: Update.
969 * gnulib/import/readlink.c: Update.
970 * gnulib/import/realloc.c: Update.
971 * gnulib/import/ref-add.sin: Update.
972 * gnulib/import/ref-del.sin: Update.
973 * gnulib/import/rename.c: Update.
974 * gnulib/import/rewinddir.c: Update.
975 * gnulib/import/rmdir.c: Update.
976 * gnulib/import/same-inode.h: Update.
977 * gnulib/import/save-cwd.c: Update.
978 * gnulib/import/save-cwd.h: Update.
979 * gnulib/import/scratch_buffer.h: Update.
980 * gnulib/import/secure_getenv.c: Update.
981 * gnulib/import/setenv.c: Update.
982 * gnulib/import/signal.in.h: Update.
983 * gnulib/import/stat-time.c: Update.
984 * gnulib/import/stat-time.h: Update.
985 * gnulib/import/stat-w32.c: Update.
986 * gnulib/import/stat-w32.h: Update.
987 * gnulib/import/stat.c: Update.
988 * gnulib/import/stdbool.in.h: Update.
989 * gnulib/import/stddef.in.h: Update.
990 * gnulib/import/stdint.in.h: Update.
991 * gnulib/import/stdio.in.h: Update.
992 * gnulib/import/stdlib.in.h: Update.
993 * gnulib/import/str-two-way.h: Update.
994 * gnulib/import/strchrnul.c: Update.
995 * gnulib/import/strdup.c: Update.
996 * gnulib/import/streq.h: Update.
997 * gnulib/import/strerror-override.c: Update.
998 * gnulib/import/strerror-override.h: Update.
999 * gnulib/import/strerror.c: Update.
1000 * gnulib/import/string.in.h: Update.
1001 * gnulib/import/stripslash.c: Update.
1002 * gnulib/import/strnlen1.c: Update.
1003 * gnulib/import/strnlen1.h: Update.
1004 * gnulib/import/strstr.c: Update.
1005 * gnulib/import/strtok_r.c: Update.
1006 * gnulib/import/sys_stat.in.h: Update.
1007 * gnulib/import/sys_time.in.h: Update.
1008 * gnulib/import/sys_types.in.h: Update.
1009 * gnulib/import/tempname.c: Update.
1010 * gnulib/import/tempname.h: Update.
1011 * gnulib/import/time.in.h: Update.
1012 * gnulib/import/unistd--.h: Update.
1013 * gnulib/import/unistd-safer.h: Update.
1014 * gnulib/import/unistd.in.h: Update.
1015 * gnulib/import/unsetenv.c: Update.
1016 * gnulib/import/verify.h: Update.
1017 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1018 * gnulib/import/wchar.in.h: Update.
1019 * gnulib/import/wctype.in.h: Update.
1020 * gnulib/import/xalloc-oversized.h: Update.
1021 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1022 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1023
8ec23583
SM
10242018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1025
1026 * record-btrace.c (get_thread_current_frame): Remove
1027 old_inferior_ptid.
1028
1f5d1570
JG
10292018-09-10 Jerome Guitton <guitton@adacore.com>
1030
1031 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1032 with check_tag to 1 if and only if the type is tagged and the
1033 component being searched cannot been found in the current
1034 view. Otherwise, always call ada_to_fixed_type with
1035 check_tag to 0.
1036
d91e9ea8
XR
10372018-09-10 Xavier Roirand <roirand@adacore.com>
1038
1039 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1040 declaration.
1041 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1042 * ada-varobj.c (ada_varobj_get_number_of_children,
1043 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1044
cc330e39
XR
10452018-09-10 Xavier Roirand <roirand@adacore.com>
1046
1047 * ada-valprint.c (ada_value_print): Use type instead of
1048 enclosing type.
1049
b9c50e9a
XR
10502018-09-10 Xavier Roirand <roirand@adacore.com>
1051
1052 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1053 an array of access to unconstrained array.
1054
736ade86
XR
10552018-09-10 Xavier Roirand <roirand@adacore.com>
1056
1057 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1058 (ada_check_typedef): Use it.
1059
2963898f
XR
10602018-09-10 Xavier Roirand <roirand@adacore.com>
1061
1062 * ada-varobj.c (ada_varobj_describe_struct_child)
1063 (ada_varobj_describe_child): Handle union case like struct one.
1064
a154931e
TT
10652018-09-10 Tom Tromey <tom@tromey.com>
1066
1067 PR python/18380:
1068 * python/python.c (_initialize_python): Make example in "python"
1069 help work in Python 3.
1070
23c4651c
EZ
10712018-09-10 Eli Zaretskii <eliz@gnu.org>
1072
1073 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1074 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1075 $(EXEEXT) to the script, as it is not a program.
1076
a5c5eda7
SM
10772018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1078
1079 * python/py-prettyprint.c (pretty_print_one_value): Return
1080 gdbpy_ref<>.
1081 (print_string_repr): Adjust.
1082 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1083 * python/python-internal.h (apply_varobj_pretty_printer): Return
1084 gdbpy_ref<>.
1085 * varobj.c (varobj_value_get_print_value): Adjust.
1086
332cf4c9
TT
10872018-09-08 Tom Tromey <tom@tromey.com>
1088
1089 PR python/16047:
1090 * python/py-prettyprint.c (pretty_print_one_value): Check for
1091 to_string method.
1092
424da6cf
JB
10932018-09-08 Joel Brobecker <brobecker@adacore.com>
1094
1095 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1096 replace_operator_with_call.
1097
95f39a5b
JB
10982018-09-08 Joel Brobecker <brobecker@adacore.com>
1099
1100 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1101
16b9eb7b
JB
11022018-09-08 Joel Brobecker <brobecker@adacore.com>
1103
1104 * ada-typeprint.c (print_range): Print the bounds using TYPE
1105 rather than its TYPE_TARGET_TYPE.
1106
d8ce9127
JB
11072018-09-08 Joel Brobecker <brobecker@adacore.com>
1108
1109 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1110 call to ada_to_fixed_value_create.
1111
0d81f350
JG
11122018-09-08 Jerome Guitton <guitton@adacore.com>
1113
1114 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1115
57aff202
JB
11162018-09-08 Joel Brobecker <brobecker@adacore.com>
1117
1118 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1119 by calls to error.
1120
fb44b1a7
JB
11212018-09-08 Joel Brobecker <brobecker@adacore.com>
1122
1123 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1124 Move update of loop variable "fi".
1125
2a62dfa9
JB
11262018-09-08 Joel Brobecker <brobecker@adacore.com>
1127
1128 * ada-lang.c (value_assign_to_component): In the case of
1129 big-endian targets, extract the bits of the given VAL
1130 using an src_offset of zero if container is not a scalar.
1131
739ab2e9
SS
11322018-09-06 Simon Ser <contact@emersion.fr>
1133
1134 PR gdb/23105
1135 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1136 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1137 * fbsd-tdep.c (fbsd_make_note_desc): New.
1138 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1139 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1140 * target.h (enum target_object) Add FreeBSD-specific
1141 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1142
d82b3862
SM
11432018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1144
1145 * compile/compile-c.h (generate_c_for_variable_locations):
1146 Change reference to pointer.
1147 * compile/compile-c-support.c (compile_program) <compute>:
1148 Likewise.
1149 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1150 (generate_c_for_for_one_variable): Likewise
1151 (generate_c_for_variable_locations): Likewise
1152 * compile/compile-c-types.c (compile_c_instance::convert_type):
1153 Likewise
1154 * compile/compile-cplus-symbols.c (convert_one_symbol):
1155 std::move the scope passed to enter_scope.
1156 * compile/compile-cplus-types.c
1157 (compile_cplus_instance::enter_scope): Make parameter
1158 rvalue-reference.
1159 (compile_cplus_instance::new_scope): Change reference to
1160 pointer.
1161 (compile_cplus_instance::convert_type): Likewise
1162 (compile_cplus_convert_typedef): std::move the scope passed to
1163 enter_scope.
1164 (compile_cplus_convert_struct_or_union): Likewise.
1165 (compile_cplus_convert_enum): Likewise.
1166 (compile_cplus_convert_namespace): Likewise.
1167 * compile/compile-cplus.h (compile_cplus_instance)
1168 <enter_scope>: Make parameter rvalue-reference.
1169 * compile/compile-internal.h (compile_instance)
1170 <get_cached_type>: Likewise
1171 * compile/compile-loc2c.c (push): Likewise
1172 (pushf): Likewise
1173 (unary): Likewise
1174 (binary): Likewise
1175 (print_label): Likewise
1176 (pushf_register_address): Likewise
1177 (pushf_register): Likewise
1178 (do_compile_dwarf_expr_to_c): Likewise
1179 (compile_dwarf_expr_to_c): Likewise
1180 (compile_dwarf_bounds_to_c): Likewise
1181 * compile/compile.c (compile_instance::get_cached_type):
1182 Likewise
1183 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1184 (compile_dwarf_bounds_to_c): Likewise
1185 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1186 (dwarf2_compile_property_to_c): Likewise
1187 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1188 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1189 Likewise
1190
cc5a5ae5
SM
11912018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1192
1193 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1194 * tui/tui-data.c (init_content_element): Don't initialize it.
1195
137be540
SM
11962018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1197
1198 * tui/tui-data.h (struct tui_win_info)
1199 <detail::opaque>: Remove.
1200 * tui/tui-data.c (init_win_info): Remove assignment.
1201
f1628857
TT
12022018-09-05 Tom Tromey <tom@tromey.com>
1203
1204 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1205 -Wformat-nonliteral.
1206 * target-float.c (host_float_ops<T>::to_string)
1207 (host_float_ops<T>::from_string): Use
1208 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1209 * configure: Rebuild.
1210
af39b1c2
SM
12112018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1212
1213 * printcmd.c (printf_c_string): Use
1214 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1215 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1216
081bca4d
TT
12172018-09-05 Tom Tromey <tom@tromey.com>
1218
1219 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1220
e4a62c65
TV
12212018-09-05 Tom de Vries <tdevries@suse.de>
1222
1223 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1224 with resolve_abstract_p == true.
1225 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1226 defaulting to false. Propagate resolve_abstract_p to
1227 dwarf2_fetch_die_loc_sect_off.
1228 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1229 parameter, defaulting to false.
1230 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1231 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1232 parameter.
1233 * dwarf2read.h (struct die_info): Forward-declare.
1234 (die_info_ptr): New typedef.
1235 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1236
2b69821e
JB
12372018-09-05 Joel Brobecker <brobecker@adacore.com>
1238
1239 GDB 8.2 released.
1240
fcc9b044
SDJ
12412018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1242 Pedro Alves <palves@redhat.com>
1243
1244 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1245 "aclocal-m4-deps.mk". Include file here.
1246 $(srcdir)/aclocal.m4: Add "configure.ac".
1247 * gnulib/aclocal-m4-deps.mk: New file.
1248 * gnulib/update-gnulib.sh: Automatically update
1249 "aclocal-m4-deps.mk".
1250
d53d5436
TT
12512018-09-04 Tom Tromey <tom@tromey.com>
1252
1253 * configure: Rebuild.
1254 * configure.ac: Remove multi-ice code.
1255
8dc9fd87
TT
12562018-09-04 Tom Tromey <tom@tromey.com>
1257
1258 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1259 (ada-exp.o): Update.
1260
3322c5d9
TT
12612018-09-04 Tom Tromey <tom@tromey.com>
1262
1263 * Makefile.in (printcmd.o, target-float.o): Remove.
1264 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1265
ba2bf2aa
TT
12662018-09-04 Tom Tromey <tom@tromey.com>
1267
1268 * gnulib/Makefile.in: Remove obsolete comment.
1269 * Makefile.in: Remove obsolete comment.
1270
6c9d681b
AB
12712018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1274 line with '+'.
1275
78a3b0fa
AB
12762018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1277
1278 * riscv-tdep.c: Add 'prologue-value.h' include.
1279 (struct riscv_unwind_cache): New struct.
1280 (riscv_debug_unwinder): New global.
1281 (riscv_scan_prologue): Update arguments, capture register details
1282 from prologue scan.
1283 (riscv_skip_prologue): Reformat arguments line, move end of
1284 prologue calculation into riscv_scan_prologue.
1285 (riscv_frame_cache): Update return type, create
1286 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1287 details.
1288 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1289 (riscv_frame_prev_register): Use the trad_frame within the
1290 riscv_unwind_cache.
1291 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1292 flag.
1293
23e60e7a
AB
12942018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1295
1296 * trad-frame.h (trad_frame_set_realreg): Declare.
1297 (trad_frame_set_addr): Declare.
1298 * trad-frame.c (trad_frame_set_realreg): Define new function.
1299 (trad_frame_set_addr): Define new function.
1300 (trad_frame_set_reg_realreg): Use new function.
1301 (trad_frame_set_reg_addr): Use new function.
1302
5c889512
KS
13032018-09-01 Keith Seitz <keiths@redhat.com>
1304
1305 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1306 pulongest instead of "%lld".
1307 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1308 ATTRIBUTE_UNUSED.
1309
c8c81635
TT
13102018-08-31 Tom Tromey <tom@tromey.com>
1311
1312 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1313 variant part type.
1314
0c888588
PA
13152018-08-31 Pedro Alves <palves@redhat.com>
1316
1317 * gdbarch.h: Regenerate.
1318
7ea65f08
PA
13192018-08-31 Pedro Alves <palves@redhat.com>
1320
1321 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1322 * target.h (Hardware watchpoint interfaces): Describe
1323 continuable/steppable/non-steppable watchpoints.
1324 * gdbarch.h, gdbarch.c: Regenerate.
1325
7eb65faf
PA
13262018-08-31 Pedro Alves <palves@redhat.com>
1327
1328 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1329 Delete.
1330 * s390-linux-nat.c
1331 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1332 * target.h (target_ops::have_continuable_watchpoint): Delete.
1333 (target_have_continuable_watchpoint): Delete.
1334 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1335 * target-delegates.c: Regenerate.
1336
dab999b1
SDJ
13372018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1338
1339 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1340 the files present in "gnulib/import/m4/".
1341
ff3a05b3
AB
13422018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1343
1344 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1345 c.sw, c.swsp, and c.sdsp.
1346
0b3f9efc
AB
13472018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1350 (riscv_read_misa_reg): Don't cache value read into inferior data.
1351 (riscv_new_inferior_data): Delete.
1352 (riscv_inferior_data_cleanup): Delete.
1353 (riscv_inferior_data): Delete.
1354 (riscv_invalidate_inferior_data): Delete.
1355 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1356
a0dc02a6
SM
13572018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1358
1359 * compile/compile-cplus-types.c
1360 (compile_cplus_instance::leave_scope): Take the address of scope
1361 object.
1362 (compile_cplus_instance::convert_qualified_base): Compare quals
1363 to 0.
1364
fdad7678
KS
13652018-08-30 Keith Seitz <keiths@redhat.com>
1366
1367 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1368 Use "%s" and host_address_to_string instead of "%p" in printf.
1369
078a0207
KS
13702018-08-29 Keith Seitz <keiths@redhat.com>
1371
1372 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1373 and compile-cplus-types.c.
1374 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1375 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1376 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1377 Declare.
1378 * compile/compile-c-support.c: Include compile-cplus.h.
1379 (load_libcompile): Templatize.
1380 (get_compile_context): "New" function.
1381 (c_get_compile_context): Use get_compile_context.
1382 (cplus_get_compile_context): New function.
1383 (cplus_push_user_expression, cplus_pop_user_expression)
1384 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1385 (cplus_compute_program): Define new structs/functions.
1386 * compile/compile-cplus-symmbols.c: New file.
1387 * compile/compile-cplus-types.c: New file.
1388 * compile/compile-cplus.h: New file.
1389 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1390 Declare.
1391 * compile/compile-object-load.c (get_out_value_type): Use
1392 strncmp_iw when comparing symbol names.
1393 (compile_object_load): Add mst_bss and mst_data.
1394 * compile/compile.c (_initialize_compile): Remove
1395 -Wno-implicit-function-declaration from `compile_args'.
1396 * compile/gcc-cp-plugin.h: New file.
1397 * NEWS: Mention C++ compile support and new debug options.
1398
fcaad03c
KS
13992018-08-29 Keith Seitz <keiths@redhat.com>
1400
1401 * linespec.c (collect_info::add_symbol): Make virtual.
1402 (struct symbol_searcher_collect_info): New struct.
1403 (symbol_searcher::find_all_symbols): New method.
1404 * symtab.h (class symbol_searcher): New class.
1405
7e41c8db
KS
14062018-08-29 Keith Seitz <keiths@redhat.com>
1407
1408 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1409 Change to vector of block_symbol. Update all users.
1410 (struct collect_info) <symbols>: Likewise.
1411 (collect_info::add_symbol): Take block_symbol as argument.
1412 Update all callers.
1413 (decode_compound_collector) <m_symbols>: Change type to vector
1414 of block_symbol. Update all users.
1415 (decode_compound_collector::operator ()): Change parameter type
1416 to block_symbol.
1417 (find_method, find_function_symbols, find_linespec_symbols)
1418 (find_label_symbols_in_block, find_label_symbols): Change symbol
1419 vectors to block_symbol vectors.
1420 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1421 block_symbol.
1422
63e8c3da
KS
14232018-08-29 Keith Seitz <keiths@redhat.com>
1424
1425 * linespec.c (symbolp): Remove typedef and VEC definitions.
1426 (bound_minimal_symbol_d): Likewise.
1427
4dedf84d
KS
14282018-08-29 Keith Seitz <keiths@redhat.com>
1429
1430 * linespec.c (decode_compound_collector::decode_compound_collector):
1431 Remove initialization for `m_symtabs'.
1432 (decode_compound_collector::release_symbols): Change return type
1433 to std::vector. Update all callers.
1434 (class decode_compound_collector) <m_symbols>: Change type to
1435 std::vector.
1436 (lookup_prefix_sym): Change return type to std::vector. Update all
1437 callers.
1438 (compare_symbols): Remove.
1439 (std_compare_symbols): Rename to `compare_symbols'.
1440 (find_method): Change `sym_classes' parameter to std::vector.
1441 Update all callers. Use std::sort to sort sym_classes.
1442 (find_linespec_symbols): Remove cleanup.
1443
c2a031c5
KS
14442018-08-29 Keith Seitz <keiths@redhat.com>
1445
1446 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1447 std::vector. Update all users.
1448 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1449 (struct collect_info) <minimal_symbols>: Likewise.
1450 (compare_msymbols): Return bool. Change parameters to const
1451 bound_minimal_symbol references.
1452 (find_method, find_function_symbols, find_linespec_symbols): Change
1453 `minsyms' parameter to std::vector. Update all callers.
1454
3553eadc
KS
14552018-08-29 Keith Seitz <keiths@redhat.com>
1456
1457 * linespec.c (struct linespec) <label_symbols>: Change type to
1458 std::vector. Update all users.
1459 (find_label_symbols_in_block): Change `result' parameter to
1460 std::vector. Update all callers.
1461 (find_label_symbols): Return std::vector. Update all callers.
1462
7243d011
KS
14632018-08-29 Keith Seitz <keiths@redhat.com>
1464
1465 * linespec.c (struct linespec) <function_symbols>: Change type to
1466 std::vector. Update all users.
1467 (struct collect_info) <function_symbols>: Likewise.
1468 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1469 (std_compare_symbols): New function.
1470 (find_method, find_function_symbols, find_linespec_symbols)
1471 (find_label_symbols_in_block): Change `symbols' parameter to
1472 std::vector. Update all callers.
1473 (find_label_symbols): Likewise for `function_symbols' and
1474 `label_funcs_ret'.
1475
2a908241
KS
14762018-08-29 Keith Seitz <keiths@redhat.com>
1477
1478 * linespec.c (symtab_vector_up): Define.
1479 (struct linespec) <file_symtabs>: Change type to std::vector *.
1480 Update all uses.
1481 (struct collect_info) <file_symtabs>: Likewise.
1482 (collect_symtabs_from_filename): Return symtab_vector_up.
1483 Update all callers.
1484 (decode_objc): Remove cleanup.
1485 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1486 (symtab_collector::release_symtabs): Return symtab_vector_up.
1487 Update all callers.
1488 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1489 Update all users.
1490 (collect_symtabs_from_filename, symtabs_from_filename): Return
1491 symtab_vector_up. Update all callers.
1492
f6c4e3e8
TT
14932018-08-29 Tom Tromey <tom@tromey.com>
1494
1495 * csky-tdep.c (csky_analyze_prologue): Use
1496 core_addr_to_string_nz.
1497
73c13fe6
TT
14982018-08-29 Tom Tromey <tom@tromey.com>
1499
1500 * windows-nat.c (struct xlate_exception) <them>: Change type to
1501 DWORD.
1502 (xlate): Fix formatting. Remove last entry.
1503 (struct xlate_exception, xlate): Comment out.
1504 (windows_nat_target::resume): Use ranged for.
1505
4d3928d7
JW
15062018-08-29 Jim Wilson <jimw@sifive.com>
1507
1508 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1509 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1510 of NT_PRFPREG.
1511 (riscv_linux_nat_target::store_registers): Likewise.
1512
7a6dbc2f
SDJ
15132018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1514
1515 PR gdb/23555
1516 PR gdb/23558
1517 * gnulib/aclocal.m4: Regenerate.
1518 * gnulib/config.in: Regenerate.
1519 * gnulib/configure: Regenerate.
1520 * gnulib/import/Makefile.am: Update.
1521 * gnulib/import/Makefile.in: Update.
1522 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1523 * gnulib/import/_Noreturn.h: ... this.
1524 * gnulib/import/alloca.in.h: Update.
1525 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1526 * gnulib/import/arg-nonnull.h: ... this.
1527 * gnulib/import/assure.h: Update.
1528 * gnulib/import/at-func.c: Update.
1529 * gnulib/import/basename-lgpl.c: Update.
1530 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1531 * gnulib/import/c++defs.h: ... this.
1532 * gnulib/import/canonicalize-lgpl.c: Update.
1533 * gnulib/import/cdefs.h: Update.
1534 * gnulib/import/chdir-long.c: Update.
1535 * gnulib/import/chdir-long.h: Update.
1536 * gnulib/import/cloexec.c: Update.
1537 * gnulib/import/cloexec.h: Update.
1538 * gnulib/import/close.c: Update.
1539 * gnulib/import/closedir.c: Update.
1540 * gnulib/import/config.charset: Update.
1541 * gnulib/import/dirent-private.h: Update.
1542 * gnulib/import/dirent.in.h: Update.
1543 * gnulib/import/dirfd.c: Update.
1544 * gnulib/import/dirname-lgpl.c: Update.
1545 * gnulib/import/dirname.h: Update.
1546 * gnulib/import/dosname.h: Update.
1547 * gnulib/import/dup-safer-flag.c: Update.
1548 * gnulib/import/dup-safer.c: Update.
1549 * gnulib/import/dup.c: Update.
1550 * gnulib/import/dup2.c: Update.
1551 * gnulib/import/errno.in.h: Update.
1552 * gnulib/import/error.c: Update.
1553 * gnulib/import/error.h: Update.
1554 * gnulib/import/exitfail.c: Update.
1555 * gnulib/import/exitfail.h: Update.
1556 * gnulib/import/extra/update-copyright: Update.
1557 * gnulib/import/fchdir.c: Update.
1558 * gnulib/import/fcntl.c: Update.
1559 * gnulib/import/fcntl.in.h: Update.
1560 * gnulib/import/fd-hook.c: Update.
1561 * gnulib/import/fd-hook.h: Update.
1562 * gnulib/import/fd-safer-flag.c: Update.
1563 * gnulib/import/fd-safer.c: Update.
1564 * gnulib/import/fdopendir.c: Update.
1565 * gnulib/import/filename.h: Update.
1566 * gnulib/import/filenamecat-lgpl.c: Update.
1567 * gnulib/import/filenamecat.h: Update.
1568 * gnulib/import/flexmember.h: Update.
1569 * gnulib/import/float+.h: Update.
1570 * gnulib/import/float.c: Update.
1571 * gnulib/import/float.in.h: Update.
1572 * gnulib/import/fnmatch.c: Update.
1573 * gnulib/import/fnmatch.in.h: Update.
1574 * gnulib/import/fnmatch_loop.c: Update.
1575 * gnulib/import/fpucw.h: Update.
1576 * gnulib/import/frexp.c: Update.
1577 * gnulib/import/frexpl.c: Update.
1578 * gnulib/import/fstat.c: Update.
1579 * gnulib/import/fstatat.c: Update.
1580 * gnulib/import/getcwd-lgpl.c: Update.
1581 * gnulib/import/getcwd.c: Update.
1582 * gnulib/import/getdtablesize.c: Update.
1583 * gnulib/import/getlogin_r.c: Update.
1584 * gnulib/import/getprogname.c: Update.
1585 * gnulib/import/getprogname.h: Update.
1586 * gnulib/import/gettext.h: Update.
1587 * gnulib/import/gettimeofday.c: Update.
1588 * gnulib/import/glob-libc.h: Update.
1589 * gnulib/import/glob.c: Update.
1590 * gnulib/import/glob.in.h: Update.
1591 * gnulib/import/glob_internal.h: Update.
1592 * gnulib/import/glob_pattern_p.c: Update.
1593 * gnulib/import/globfree.c: Update.
1594 * gnulib/import/hard-locale.c: Update.
1595 * gnulib/import/hard-locale.h: Update.
1596 * gnulib/import/intprops.h: Update.
1597 * gnulib/import/inttypes.in.h: Update.
1598 * gnulib/import/isnan.c: Update.
1599 * gnulib/import/isnand-nolibm.h: Update.
1600 * gnulib/import/isnand.c: Update.
1601 * gnulib/import/isnanl-nolibm.h: Update.
1602 * gnulib/import/isnanl.c: Update.
1603 * gnulib/import/itold.c: Update.
1604 * gnulib/import/libc-config.h: Update.
1605 * gnulib/import/limits.in.h: Update.
1606 * gnulib/import/localcharset.c: Update.
1607 * gnulib/import/localcharset.h: Update.
1608 * gnulib/import/localtime-buffer.c: Update.
1609 * gnulib/import/localtime-buffer.h: Update.
1610 * gnulib/import/lstat.c: Update.
1611 * gnulib/import/m4/00gnulib.m4: Update.
1612 * gnulib/import/m4/__inline.m4: Update.
1613 * gnulib/import/m4/absolute-header.m4: Update.
1614 * gnulib/import/m4/alloca.m4: Update.
1615 * gnulib/import/m4/builtin-expect.m4: Update.
1616 * gnulib/import/m4/canonicalize.m4: Update.
1617 * gnulib/import/m4/chdir-long.m4: Update.
1618 * gnulib/import/m4/close.m4: Update.
1619 * gnulib/import/m4/closedir.m4: Update.
1620 * gnulib/import/m4/configmake.m4: Update.
1621 * gnulib/import/m4/d-ino.m4: Update.
1622 * gnulib/import/m4/d-type.m4: Update.
1623 * gnulib/import/m4/dirent_h.m4: Update.
1624 * gnulib/import/m4/dirfd.m4: Update.
1625 * gnulib/import/m4/dirname.m4: Update.
1626 * gnulib/import/m4/double-slash-root.m4: Update.
1627 * gnulib/import/m4/dup.m4: Update.
1628 * gnulib/import/m4/dup2.m4: Update.
1629 * gnulib/import/m4/eealloc.m4: Update.
1630 * gnulib/import/m4/environ.m4: Update.
1631 * gnulib/import/m4/errno_h.m4: Update.
1632 * gnulib/import/m4/error.m4: Update.
1633 * gnulib/import/m4/exponentd.m4: Update.
1634 * gnulib/import/m4/exponentl.m4: Update.
1635 * gnulib/import/m4/extensions.m4: Update.
1636 * gnulib/import/m4/extern-inline.m4: Update.
1637 * gnulib/import/m4/fchdir.m4: Update.
1638 * gnulib/import/m4/fcntl-o.m4: Update.
1639 * gnulib/import/m4/fcntl.m4: Update.
1640 * gnulib/import/m4/fcntl_h.m4: Update.
1641 * gnulib/import/m4/fdopendir.m4: Update.
1642 * gnulib/import/m4/filenamecat.m4: Update.
1643 * gnulib/import/m4/flexmember.m4: Update.
1644 * gnulib/import/m4/float_h.m4: Update.
1645 * gnulib/import/m4/fnmatch.m4: Update.
1646 * gnulib/import/m4/fnmatch_h.m4: Update.
1647 * gnulib/import/m4/fpieee.m4: Update.
1648 * gnulib/import/m4/frexp.m4: Update.
1649 * gnulib/import/m4/frexpl.m4: Update.
1650 * gnulib/import/m4/fstat.m4: Update.
1651 * gnulib/import/m4/fstatat.m4: Update.
1652 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1653 * gnulib/import/m4/getcwd-path-max.m4: Update.
1654 * gnulib/import/m4/getcwd.m4: Update.
1655 * gnulib/import/m4/getdtablesize.m4: Update.
1656 * gnulib/import/m4/getlogin.m4: Update.
1657 * gnulib/import/m4/getlogin_r.m4: Update.
1658 * gnulib/import/m4/getpagesize.m4: Update.
1659 * gnulib/import/m4/getprogname.m4: Update.
1660 * gnulib/import/m4/gettimeofday.m4: Update.
1661 * gnulib/import/m4/glibc21.m4: Update.
1662 * gnulib/import/m4/glob.m4: Update.
1663 * gnulib/import/m4/glob_h.m4: Update.
1664 * gnulib/import/m4/gnulib-cache.m4: Update.
1665 * gnulib/import/m4/gnulib-common.m4: Update.
1666 * gnulib/import/m4/gnulib-comp.m4: Update.
1667 * gnulib/import/m4/gnulib-tool.m4: Update.
1668 * gnulib/import/m4/hard-locale.m4: Update.
1669 * gnulib/import/m4/include_next.m4: Update.
1670 * gnulib/import/m4/inttypes-pri.m4: Update.
1671 * gnulib/import/m4/inttypes.m4: Update.
1672 * gnulib/import/m4/isnand.m4: Update.
1673 * gnulib/import/m4/isnanl.m4: Update.
1674 * gnulib/import/m4/largefile.m4: Update.
1675 * gnulib/import/m4/limits-h.m4: Update.
1676 * gnulib/import/m4/localcharset.m4: Update.
1677 * gnulib/import/m4/locale-fr.m4: Update.
1678 * gnulib/import/m4/locale-ja.m4: Update.
1679 * gnulib/import/m4/locale-zh.m4: Update.
1680 * gnulib/import/m4/localtime-buffer.m4: Update.
1681 * gnulib/import/m4/longlong.m4: Update.
1682 * gnulib/import/m4/lstat.m4: Update.
1683 * gnulib/import/m4/malloc.m4: Update.
1684 * gnulib/import/m4/malloca.m4: Update.
1685 * gnulib/import/m4/math_h.m4: Update.
1686 * gnulib/import/m4/mbrtowc.m4: Update.
1687 * gnulib/import/m4/mbsinit.m4: Update.
1688 * gnulib/import/m4/mbsrtowcs.m4: Update.
1689 * gnulib/import/m4/mbstate_t.m4: Update.
1690 * gnulib/import/m4/memchr.m4: Update.
1691 * gnulib/import/m4/memmem.m4: Update.
1692 * gnulib/import/m4/mempcpy.m4: Update.
1693 * gnulib/import/m4/memrchr.m4: Update.
1694 * gnulib/import/m4/mkdir.m4: Update.
1695 * gnulib/import/m4/mkstemp.m4: Update.
1696 * gnulib/import/m4/mmap-anon.m4: Update.
1697 * gnulib/import/m4/mode_t.m4: Update.
1698 * gnulib/import/m4/msvc-inval.m4: Update.
1699 * gnulib/import/m4/msvc-nothrow.m4: Update.
1700 * gnulib/import/m4/multiarch.m4: Update.
1701 * gnulib/import/m4/nocrash.m4: Update.
1702 * gnulib/import/m4/off_t.m4: Update.
1703 * gnulib/import/m4/onceonly.m4: Update.
1704 * gnulib/import/m4/open-cloexec.m4: Update.
1705 * gnulib/import/m4/open.m4: Update.
1706 * gnulib/import/m4/openat.m4: Update.
1707 * gnulib/import/m4/opendir.m4: Update.
1708 * gnulib/import/m4/pathmax.m4: Update.
1709 * gnulib/import/m4/rawmemchr.m4: Update.
1710 * gnulib/import/m4/readdir.m4: Update.
1711 * gnulib/import/m4/readlink.m4: Update.
1712 * gnulib/import/m4/realloc.m4: Update.
1713 * gnulib/import/m4/rename.m4: Update.
1714 * gnulib/import/m4/rewinddir.m4: Update.
1715 * gnulib/import/m4/rmdir.m4: Update.
1716 * gnulib/import/m4/save-cwd.m4: Update.
1717 * gnulib/import/m4/secure_getenv.m4: Update.
1718 * gnulib/import/m4/setenv.m4: Update.
1719 * gnulib/import/m4/signal_h.m4: Update.
1720 * gnulib/import/m4/ssize_t.m4: Update.
1721 * gnulib/import/m4/stat-time.m4: Update.
1722 * gnulib/import/m4/stat.m4: Update.
1723 * gnulib/import/m4/std-gnu11.m4: Update.
1724 * gnulib/import/m4/stdbool.m4: Update.
1725 * gnulib/import/m4/stddef_h.m4: Update.
1726 * gnulib/import/m4/stdint.m4: Update.
1727 * gnulib/import/m4/stdio_h.m4: Update.
1728 * gnulib/import/m4/stdlib_h.m4: Update.
1729 * gnulib/import/m4/strchrnul.m4: Update.
1730 * gnulib/import/m4/strdup.m4: Update.
1731 * gnulib/import/m4/strerror.m4: Update.
1732 * gnulib/import/m4/string_h.m4: Update.
1733 * gnulib/import/m4/strstr.m4: Update.
1734 * gnulib/import/m4/strtok_r.m4: Update.
1735 * gnulib/import/m4/sys_socket_h.m4: Update.
1736 * gnulib/import/m4/sys_stat_h.m4: Update.
1737 * gnulib/import/m4/sys_time_h.m4: Update.
1738 * gnulib/import/m4/sys_types_h.m4: Update.
1739 * gnulib/import/m4/tempname.m4: Update.
1740 * gnulib/import/m4/time_h.m4: Update.
1741 * gnulib/import/m4/unistd-safer.m4: Update.
1742 * gnulib/import/m4/unistd_h.m4: Update.
1743 * gnulib/import/m4/warn-on-use.m4: Update.
1744 * gnulib/import/m4/wchar_h.m4: Update.
1745 * gnulib/import/m4/wchar_t.m4: Update.
1746 * gnulib/import/m4/wctype_h.m4: Update.
1747 * gnulib/import/m4/wint_t.m4: Update.
1748 * gnulib/import/malloc.c: Update.
1749 * gnulib/import/malloc/scratch_buffer.h: Update.
1750 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1751 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1752 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1753 * gnulib/import/malloca.c: Update.
1754 * gnulib/import/malloca.h: Update.
1755 * gnulib/import/malloca.valgrind: Update.
1756 * gnulib/import/math.in.h: Update.
1757 * gnulib/import/mbrtowc.c: Update.
1758 * gnulib/import/mbsinit.c: Update.
1759 * gnulib/import/mbsrtowcs-impl.h: Update.
1760 * gnulib/import/mbsrtowcs-state.c: Update.
1761 * gnulib/import/mbsrtowcs.c: Update.
1762 * gnulib/import/memchr.c: Update.
1763 * gnulib/import/memmem.c: Update.
1764 * gnulib/import/mempcpy.c: Update.
1765 * gnulib/import/memrchr.c: Update.
1766 * gnulib/import/mkdir.c: Update.
1767 * gnulib/import/mkstemp.c: Update.
1768 * gnulib/import/msvc-inval.c: Update.
1769 * gnulib/import/msvc-inval.h: Update.
1770 * gnulib/import/msvc-nothrow.c: Update.
1771 * gnulib/import/msvc-nothrow.h: Update.
1772 * gnulib/import/open.c: Update.
1773 * gnulib/import/openat-die.c: Update.
1774 * gnulib/import/openat-priv.h: Update.
1775 * gnulib/import/openat-proc.c: Update.
1776 * gnulib/import/openat.c: Update.
1777 * gnulib/import/openat.h: Update.
1778 * gnulib/import/opendir.c: Update.
1779 * gnulib/import/pathmax.h: Update.
1780 * gnulib/import/pipe-safer.c: Update.
1781 * gnulib/import/rawmemchr.c: Update.
1782 * gnulib/import/readdir.c: Update.
1783 * gnulib/import/readlink.c: Update.
1784 * gnulib/import/realloc.c: Update.
1785 * gnulib/import/ref-add.sin: Update.
1786 * gnulib/import/ref-del.sin: Update.
1787 * gnulib/import/rename.c: Update.
1788 * gnulib/import/rewinddir.c: Update.
1789 * gnulib/import/rmdir.c: Update.
1790 * gnulib/import/same-inode.h: Update.
1791 * gnulib/import/save-cwd.c: Update.
1792 * gnulib/import/save-cwd.h: Update.
1793 * gnulib/import/scratch_buffer.h: Update.
1794 * gnulib/import/secure_getenv.c: Update.
1795 * gnulib/import/setenv.c: Update.
1796 * gnulib/import/signal.in.h: Update.
1797 * gnulib/import/stat-time.c: Update.
1798 * gnulib/import/stat-time.h: Update.
1799 * gnulib/import/stat-w32.c: Update.
1800 * gnulib/import/stat-w32.h: Update.
1801 * gnulib/import/stat.c: Update.
1802 * gnulib/import/stdbool.in.h: Update.
1803 * gnulib/import/stddef.in.h: Update.
1804 * gnulib/import/stdint.in.h: Update.
1805 * gnulib/import/stdio.in.h: Update.
1806 * gnulib/import/stdlib.in.h: Update.
1807 * gnulib/import/str-two-way.h: Update.
1808 * gnulib/import/strchrnul.c: Update.
1809 * gnulib/import/strdup.c: Update.
1810 * gnulib/import/streq.h: Update.
1811 * gnulib/import/strerror-override.c: Update.
1812 * gnulib/import/strerror-override.h: Update.
1813 * gnulib/import/strerror.c: Update.
1814 * gnulib/import/string.in.h: Update.
1815 * gnulib/import/stripslash.c: Update.
1816 * gnulib/import/strnlen1.c: Update.
1817 * gnulib/import/strnlen1.h: Update.
1818 * gnulib/import/strstr.c: Update.
1819 * gnulib/import/strtok_r.c: Update.
1820 * gnulib/import/sys_stat.in.h: Update.
1821 * gnulib/import/sys_time.in.h: Update.
1822 * gnulib/import/sys_types.in.h: Update.
1823 * gnulib/import/tempname.c: Update.
1824 * gnulib/import/tempname.h: Update.
1825 * gnulib/import/time.in.h: Update.
1826 * gnulib/import/unistd--.h: Update.
1827 * gnulib/import/unistd-safer.h: Update.
1828 * gnulib/import/unistd.in.h: Update.
1829 * gnulib/import/unsetenv.c: Update.
1830 * gnulib/import/verify.h: Update.
1831 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1832 * gnulib/import/wchar.in.h: Update.
1833 * gnulib/import/wctype.in.h: Update.
1834 * gnulib/import/xalloc-oversized.h: Update.
1835 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1836 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1837
b0f492b9
GB
18382018-08-16 Gary Benson <gbenson@redhat.com>
1839
1840 PR gdb/13000:
1841 * gdb/main.c (captured_main_1): Exit with nonzero status
1842 in batch mode if the last command to be executed failed.
1843 * NEWS: Mention the above.
1844
2362e7f7
SM
18452018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1846
1847 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1848 end of warning message.
1849
4f4aedeb
AH
18502018-08-29 Alan Hayward <alan.hayward@arm.com>
1851
1852 PR gdb/22943:
1853 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1854 (aarch64_extract_return_value): Use
1855 aapcs_is_vfp_call_or_return_candidate.
1856 (aarch64_return_in_memory): Likewise.
1857 (aarch64_store_return_value): Likewise.
1858
0e745c60
AH
18592018-08-29 Alan Hayward <alan.hayward@arm.com>
1860
1861 * aarch64-tdep.c
1862 (aapcs_is_vfp_call_or_return_candidate): Make static
1863 (pass_in_v_or_stack): Remove function.
1864 (pass_in_v_vfp_candidate): New function.
1865 (aarch64_push_dummy_call): Check for float register candidates.
1866
ea92689a
AH
18672018-08-29 Alan Hayward <alan.hayward@arm.com>
1868
1869 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1870 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1871 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1872
ad202fcc
SM
18732018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1874
1875 PR build/23399
1876 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1877 (struct ipa_sym_addresses): Rename to...
1878 (struct ipa_sym_addresses_common): ... this.
1879 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1880
5fe3f3e4
TT
18812018-08-28 Tom Tromey <tom@tromey.com>
1882
1883 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1884 (token_fifo): Now a std::vector.
1885 (yylex, c_parse): Update.
1886 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1887 (token_fifo): Now a std::vector.
1888 (yylex, d_parse): Update.
1889 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1890 (token_fifo): Now a std::vector.
1891 (yylex, go_parse): Update.
1892
858d8004
SM
18932018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1894
1895 * parser-defs.h (struct type_stack) <elements>: Change type to
1896 std::vector<union type_stack_elt>.
1897 <depth, size>: Remove.
1898 * parse.c (parse_exp_in_context_1): Adjust.
1899 (type_stack_reserve): Remove.
1900 (check_type_stack_depth): Remove.
1901 (insert_into_type_stack): Adjust to std::vector.
1902 (insert_type): Likewise.
1903 (push_type): Likewise.
1904 (push_type_int): Likewise.
1905 (insert_type_address_space): Likewise.
1906 (pop_type): Likewise.
1907 (pop_type_int): Likewise.
1908 (pop_typelist): Likewise.
1909 (pop_type_stack): Likewise.
1910 (append_type_stack): Likewise.
1911 (push_type_stack): Likewise.
1912 (get_type_stack): Likewise.
1913 (type_stack_cleanup): Likewise.
1914 (push_typelist): Likewise.
1915 (follow_types): Likewise.
1916 (_initialize_parse): Likewise.
1917
416a69af
HAQ
19182018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1919
1920 * NEWS: Mention csky target.
1921
9d24df82
HAQ
19222018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1923 Hafiz Abid Qadeer <abidh@codesourcery.com>
1924 Don Breazeal <donb@codesourcery.com>
1925
1926 * csky-linux-tdep.c: New file.
1927 * csky-tdep.c: Likewise.
1928 * csky-tdep.h: Likewise.
1929 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1930 csky-tdep.o.
1931 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1932 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1933 * configure.tgt: Add csky support.
1934
3bf9c013
JV
19352018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1936
1937 * python/py-framefilter.c (py_print_frame): Print frame architecture
1938 when printing on an MI output.
1939
d3d8724a
TT
19402018-08-27 Tom Tromey <tom@tromey.com>
1941
1942 PR build/23087:
1943 * configure: Rebuild.
1944 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1945
1885053b
TT
19462018-08-27 Tom Tromey <tom@tromey.com>
1947
1948 * aarch64-linux-tdep.c
1949 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1950 casts to int.
1951
8406672e
TT
19522018-08-27 Tom Tromey <tom@tromey.com>
1953
1954 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1955 unsigned.
1956 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1957 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1958 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1959 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1960 unsigned.
1961
ec40cf90
TT
19622018-08-27 Tom Tromey <tom@tromey.com>
1963
1964 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1965 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1966
7bc02706
TT
19672018-08-27 Tom Tromey <tom@tromey.com>
1968
1969 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1970 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1971 ULONGEST_MAX.
1972 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1973 ULONGEST_MAX.
1974 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1975 ULONGEST_MAX.
1976 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1977 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1978 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1979 ULONGEST_MAX.
1980 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1981 (ppc64_linux_sigaction_tramp_frame)
1982 (ppc32_linux_sighandler_tramp_frame)
1983 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1984 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1985 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1986 * mn10300-linux-tdep.c (am33_linux_sigframe)
1987 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1988 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1989 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1990 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1991 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1992 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1993 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1994 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1995 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1996 * microblaze-linux-tdep.c
1997 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1998 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1999 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2000 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2001 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2002 * common/common-types.h (ULONGEST_MAX): New define.
2003 (CORE_ADDR_MAX): Fix formatting.
2004 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2005 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2006 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2007 (arm_linux_rt_sigreturn_tramp_frame)
2008 (arm_eabi_linux_sigreturn_tramp_frame)
2009 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2010 (thumb2_eabi_linux_sigreturn_tramp_frame)
2011 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2012 (arm_linux_restart_syscall_tramp_frame)
2013 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2014 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2015 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2016 ULONGEST_MAX.
2017 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2018
70ab8ccd
TT
20192018-08-27 Tom Tromey <tom@tromey.com>
2020
2021 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2022 CORE_ADDR_MAX.
2023 * mips-tdep.c (mips_deal_with_atomic_sequence)
2024 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2025 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2026 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2027 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2028 CORE_ADDR_MAX.
2029 * aarch64-tdep.c (aarch64_software_single_step): Use
2030 CORE_ADDR_MAX.
2031
896a7aa6
TT
20322018-08-27 Tom Tromey <tom@tromey.com>
2033
2034 * linespec.c (complete_linespec_component): Add cast to "char".
2035 * completer.c (completion_tracker::build_completion_result): Add
2036 cast to "char".
2037
dd33d41d
SM
20382018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2039
2040 * solist.h (struct solist, struct target_so_ops): Fix
2041 indentation.
2042
c645cda4
SM
20432018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2044
2045 * ada-tasks.c (ada_task_info_s): Remove typedef.
2046 (DEF_VEC_O(ada_task_info_s)): Remove.
2047 (struct ada_tasks_inferior_data): Initialize fields.
2048 <task_list>: Make an std::vector.
2049 (get_ada_tasks_inferior_data): Allocate with new.
2050 (ada_get_task_number): Adjust.
2051 (get_task_number_from_id): Likewise.
2052 (valid_task_id): Likewise.
2053 (ada_get_task_info_from_ptid): Likewise.
2054 (iterate_over_live_ada_tasks): Likewise.
2055 (add_ada_task): Likewise.
2056 (read_known_tasks): Likewise.
2057 (ada_build_task_list): Likewise.
2058 (print_ada_task_info): Likewise.
2059 (info_task): Likewise.
2060 (task_command_1): Likewise.
2061
39e7af3e
SM
20622018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2063
2064 * ada-lang.c (add_angle_brackets): Return std::string.
2065
bbbbbcee
SM
20662018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2067
2068 * python/py-threadevent.c (py_get_event_thread): Initialize
2069 pythread.
2070
d98fc15b
PA
20712018-08-24 Pedro Alves <palves@redhat.com>
2072
2073 * python/py-bpevent.c (create_breakpoint_event_object): Use
2074 copy-initialization.
2075 * python/py-continueevent.c (emit_continue_event): Use
2076 copy-initialization.
2077 * python/py-exitedevent.c (create_exited_event_object): Return a
2078 gdbpy_ref<>.
2079 (emit_exited_event): Use copy-initialization.
2080 * python/py-inferior.c (python_new_inferior)
2081 (python_inferior_deleted, add_thread_object): Use
2082 copy-initialization.
2083 * python/py-infevents.c (create_inferior_call_event_object)
2084 (create_register_changed_event_object)
2085 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2086 (emit_inferior_call_event, emit_memory_changed_event)
2087 (emit_register_changed_event): Use copy-initialization.
2088 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2089 Return a gdbpy_ref<>.
2090 (emit_new_objfile_event): Use copy-initialization.
2091 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2092 (emit_clear_objfiles_event): Use copy-initialization.
2093 * python/py-signalevent.c (create_signal_event_object): Use
2094 copy-initialization.
2095 * python/py-threadevent.c (create_thread_event_object): Use
2096 copy-initialization.
2097
da3c8738
PA
20982018-08-24 Pedro Alves <palves@redhat.com>
2099 Simon Marchi <simon.marchi@ericsson.com>
2100
2101 PR gdb/23379
2102 * python/py-continueevent.c: Include "gdbthread.h".
2103 (create_continue_event_object): Add intro comment. Add 'ptid'
2104 parameter. Use it to find thread to pass to
2105 create_thread_event_object.
2106 (emit_continue_event): Pass PTID down to
2107 create_continue_event_object.
2108 * python/py-event.h (py_get_event_thread): Declare.
2109 (create_thread_event_object): Remove default from 'thread'
2110 parameter.
2111 * python/py-stopevent.c (create_stop_event_object): Use
2112 py_get_event_thread.
2113 * python/py-threadevent.c (get_event_thread): Rename to ...
2114 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2115 and use it to find the thread.
2116 (create_thread_event_object): Assert that THREAD isn't null.
2117 Don't find the event thread here.
2118
26457a9c
KB
21192018-08-23 Kevin Buettner <kevinb@redhat.com>
2120
2121 * block.h (blockrange, blockranges): New struct declarations.
2122 (struct block): Add new field named `ranges'.
2123 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2124 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2125 macros for accessing ranges in struct block.
2126 (make_blockranges): New declaration.
2127 block.c (make_blockranges): New function.
2d5f09ec
KB
2128 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2129 for block.
fc811edd
KB
2130 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2131 * blockframe.c (cache_pc_function_block): New static global.
2132 (clear_pc_function_cache): Clear cache_pc_function_block.
2133 (find_pc_partial_function): Move comment to symtab.h. Add
2134 support for non-contiguous blocks.
e9480230
KB
2135 * cli/cli-cmds.c (block.h): Include.
2136 (print_disassembly): Handle printing of non-contiguous blocks.
2137 (disassemble_current_function): Likewise.
2138 (disassemble_command): Likewise.
26457a9c 2139
2b1ffcfd
KB
2140 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2141 BLOCK_START.
2142 * blockframe.c (get_pc_function_start): Likewise.
2143 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2144 (gcc_symbol_address): Likewise.
2145 * compile/compile-object-run.c (compile_object_run): Likewise.
2146 * compile/compile.c (get_expr_block_and_pc): Likewise.
2147 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2148 (func_addr_to_tail_call_list): Likewise.
2149 * findvar.c (default_read_var_value): Likewise.
2150 * inline-frame.c (inline_frame_this_id): Likewise.
2151 (skip-inline_frames): Likewise.
2152 * infcmd.c (until_next_command): Likewise.
2153 * linespec.c (convert_linespec_to_sals): Likewise.
2154 * parse.c (parse_exp_in_context_1): Likewise.
2155 * printcmd.c (build_address_symbolic): likewise.
2156 (info_address_command): Likewise.
2157 symtab.c (find_function_start_sal): Likewise.
2158 (skip_prologue_sal): Likewise.
2159 (find_function_alias_target): Likewise.
2160 (find_gnu_ifunc): Likewise.
2161 * stack.c (find_frame_funname): Likewise.
2162 * symtab.c (fixup_symbol_section): Likewise.
2163 (find_function_start_sal): Likewise.
2164 (skip_prologue_sal): Likewsie.
2165 (find_function_alias_target): Likewise.
2166 (find_gnu_ifunc): Likewise.
2167 * tracepoint.c (info_scope_command): Likewise.
2168 * value.c (value_fn_field): Likewise.
2169
9644dc3a
KB
2170 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2171 in place of find_pc_partial_function.
2172 * blockframe.c (find_function_entry_range_from_pc): New function.
2173 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2174 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2175 for each range in a block.
2176
2177
12a0d0f6
XR
21782018-08-23 Xavier Roirand <roirand@adacore.com>
2179
2180 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2181 incrementation.
2182
d1012b8e
SM
21832018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * solib-svr4.c (read_program_headers_from_bfd): Return
2186 gdb::optional<gdb::byte_vector>.
2187 (svr4_exec_displacement): Adjust.
2188
17658d46
SM
21892018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2190
2191 * solib-svr4.c (read_program_header): Return
2192 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2193 (find_program_interpreter): Return
2194 gdb::optional<gdb::byte_vector>.
2195 (scan_dyntag_auxv): Adjust.
2196 (enable_break): Adjust.
2197 (svr4_exec_displacement): Adjust.
2198
ae739fe7
SM
21992018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2200
2201 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2202 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2203
467dc1e2
SM
22042018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2205
2206 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2207 string_vprintf.
2208 * guile/scm-utils.c (gdbscm_printf): Likewise.
2209 * serial.c (serial_printf): Likewise.
2210 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2211
6d52907e
JV
22122018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2213
2214 * stack.c (print_frame): Print frame architecture when printing on
2215 an MI output.
2216 * NEWS: Mention new "arch" attribute in frame output.
2217
9758a8f8
AH
22182018-08-21 Alan Hayward <alan.hayward@arm.com>
2219
2220 * arch/aarch64.h (aarch64_regnum): Update comment.
2221
1461bdac
AH
22222018-08-21 Alan Hayward <alan.hayward@arm.com>
2223
2224 * NEWS: Add SVE to 8.2 section.
2225
4895f384
PA
22262018-08-21 Pedro Alves <palves@redhat.com>
2227
2228 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2229 out from gdbscm_parse_function_args.
2230 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2231 gdbscm_parse_function_args_1.
2232
a4497d2f
SM
22332018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2234
2235 PR gdb/17816
2236 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2237 operator.
2238
c44deb73
SM
22392018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2240
2241 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2242
be2d111a
MS
22432018-08-19 Michael Spang <spang@google.com>
2244
2245 PR gdb/11786
2246 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2247 for PT_TLS segments.
2248
a6b786da
KB
22492018-08-18 Kevin Buettner <kevinb@redhat.com>
2250
2251 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2252 dwarf_variable_value.
2253 * dwarf2-frame.c (class dwarf_expr_executor):
2254 Add override for dwarf_variable_value.
2255 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2256 (class symbol_needs_eval_context): Likewise.
2257 (indirect_synthetic_pointer): Add forward declaration.
2258 (sect_variable_value): New function.
2259 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2260 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2261 for DW_OP_GNU_variable_value.
2262
89fbedf3
TT
22632018-08-16 Tom Tromey <tom@tromey.com>
2264
2265 * top.c (read_command_file): Update.
2266 (command_line_input): Remove "repeat" argument.
2267 * ada-lang.c (get_selections): Update.
2268 * linespec.c (decode_line_2): Update.
2269 * defs.h (command_line_input): Remove argument.
2270 * cli/cli-script.c (read_next_line): Update.
2271 * python/py-gdb-readline.c: Update.
2272
12582533
TT
22732018-08-17 Tom Tromey <tom@tromey.com>
2274
2275 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2276 command_line_input.
2277
49514353
TT
22782018-08-15 Tom Tromey <tom@tromey.com>
2279
2280 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2281
26fb3983
JV
22822018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2283
2284 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2285 If used, use find_pc_partial_function to find address range
2286 to disassemble.
2287 * mi/mi-main.c (mi_cmd_list_features): Report
2288 "data-disassemble-a-option" feature.
2289 * NEWS: Mention new -data-disassemble option -a.
2290
a97b53dd
TT
22912018-08-13 Tom Tromey <tom@tromey.com>
2292
2293 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2294
0c76e06d
AH
22952018-08-13 Alan Hayward <alan.hayward@arm.com>
2296
2297 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2298 (aarch64_linux_collect_sve_regset): Likewise.
2299 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2300 * regcache.h (regcache_map_entry_size): New function.
2301
b7fd65b9
AH
23022018-08-13 Alan Hayward <alan.hayward@arm.com>
2303
2304 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2305 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2306 (SVE_HEADER_VL_LENGTH): Likewise.
2307 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2308 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2309 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2310 (SVE_HEADER_SIZE_OFFSET): Likewise.
2311 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2312 (SVE_HEADER_VL_OFFSET): Likewise.
2313 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2314 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2315 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2316 (SVE_HEADER_SIZE): Likewise.
2317 (aarch64_linux_core_read_vq): Add function.
2318 (aarch64_linux_core_read_description): Check for SVE section.
2319
a616bb94
AH
23202018-08-13 Alan Hayward <alan.hayward@arm.com>
2321
2322 * aarch64-fbsd-tdep.c
2323 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2324 collect_size.
2325 * aarch64-linux-tdep.c
2326 (aarch64_linux_iterate_over_regset_sections): Likewise.
2327 * alpha-linux-tdep.c
2328 (alpha_linux_iterate_over_regset_sections):
2329 * alpha-nbsd-tdep.c
2330 (alphanbsd_iterate_over_regset_sections): Likewise.
2331 * amd64-fbsd-tdep.c
2332 (amd64fbsd_iterate_over_regset_sections): Likewise.
2333 * amd64-linux-tdep.c
2334 (amd64_linux_iterate_over_regset_sections): Likewise.
2335 * arm-bsd-tdep.c
2336 (armbsd_iterate_over_regset_sections): Likewise.
2337 * arm-fbsd-tdep.c
2338 (arm_fbsd_iterate_over_regset_sections): Likewise.
2339 * arm-linux-tdep.c
2340 (arm_linux_iterate_over_regset_sections): Likewise.
2341 * corelow.c (get_core_registers_cb): Likewise.
2342 (core_target::fetch_registers): Likewise.
2343 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2344 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2345 * gdbarch.h (void): Regenerate.
2346 * gdbarch.sh: Add supply_size and collect_size.
2347 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2348 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2349 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2350 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2351 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2352 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2353 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2354 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2355 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2356 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2357 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2358 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2359 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2360 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2361 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2362 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2363 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2364 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2365 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2366 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2367 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2368 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2369 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2370 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2371 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2372 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2373 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2374 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2375 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2376 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2377
a9925d4f
SM
23782018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2379
2380 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2381 with string_printf.
2382
ad3a68e9
KS
23832018-08-10 Keith Seitz <keiths@redhat.com>
2384
2385 * compile/compile-c-support.c (add_code_header, add_code_footer):
2386 Move into policy class.
2387 (c_push_user_expression, pop_user_expression_nop)
2388 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2389 (compile_program): New host class.
2390 (c_compile_program): New typedef.
2391 (c_compute_porgram): Use c_compile_program.
2392
0cfbf430
KS
23932018-08-10 Keith Seitz <keiths@redhat.com>
2394
2395 * compile/compile-internal.h (compile_instance::~compile_instance):
2396 Remove calls to htab_delete.
2397 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2398 * compile.c (compile_instance::compile_instance): Initialize
2399 htab unique pointers.
2400 (compile_instance::get_cached_type, compile_instance::insert_type)
2401 (compile_instance::error_symbol_once): Update for unique_ptr.
2402
946d3d10
KS
24032018-08-10 Keith Seitz <keiths@redhat.com>
2404
2405 * compile/compile-c-symbols.c (struct symbol_error)
2406 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2407 (compile_instance::insert_symbol_error)
2408 (compile_instance::error_symbol_once): Move to ...
2409 * compile/compile.c: ... here.
2410
9cdfd9a2
KS
24112018-08-10 Keith Seitz <keiths@redhat.com>
2412
2413 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2414 instead of `new_compile_instance'.
2415 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2416 Update description.
2417 If the symbol error map is not initialized, create it.
2418 (generate_c_for_for_one_symbol): Do not check/initialize
2419 the symbol error map.
2420 * compile/compile-c-types.c (compile_c_instance): Make a class.
2421 Update all callers.
2422 (compile_instance::compile_instance): Initialize the type cache.
2423 (get_cached_type): New function.
2424 (insert_type): Update description.
2425 (compile_c_instance::m_default_cflags): Define.
2426 (convert_type): Update description. Use get_cached_type.
2427 (delete_instance): Moved to destructor.
2428 (new_compile_instance): Moved to constructor.
2429 * compile/compile-c.h (compile_c_instance): Make class inheriting
2430 from compile_instance.
2431 <base>: Remove field.
2432 <type_map, symbol_err_map>: Move to base class.
2433 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2434 * compile/compile-internal.h (compile_instance): Make class.
2435 <type_map_t, symbol_err_map_t>: Define.
2436 <fe>: Rename to `m_gcc_fe'.
2437 <scope, block, gcc_target_options>: Add `m_' prefix.
2438 <m_type_map, m_symbol_err_map>: New fields, moved from
2439 compile_c_instance.
2440 <destroy>: Remove.
2441 (convert_type, new_compile_instance): Remove.
2442 * compile/compile.c (cleanup_compile_instance): Remove.
2443 (compile_to_object): Use unique_ptr to eliminate cleanups.
2444 (compile_instance::set_print_callback, compile_instance::version)
2445 (compile_instance::set_verbose)
2446 (compile_instance::set_driver_filename)
2447 (compile_instance::set_triplet_regexp)
2448 (compile_instance::set_arguments)
2449 (compile_instance::set_source_file)
2450 (compile_instance::compile): Define.
2451
18cdc6d8
KS
24522018-08-10 Keith Seitz <keiths@redhat.com>
2453
2454 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2455 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2456 gcc-c-fe.def to define C plugin.
2457 (delete_instance): Delete `c_plugin'.
2458 (new_compile_instance): Initialize `c_plugin'.
2459 * compile/compile-c.h: Include gcc_c_plugin.h.
2460 (struct compile_c_instance) <c_plugin>: New member.
2461 * gcc-c-plugin.h: New file.
2462 Update all callers with API change.
2463
b7dc48b4
KS
24642018-08-10 Keith Seitz <keiths@redhat.com>
2465
2466 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2467 (HFILES_NO_SRCDIR): ... to here.
2468 Add compile-internal.h and compile-c.h.
2469 * compile/compile-c-support.c: Include compile-c.h.
2470 * compile/compile-c-symbols.c: Include compile-c.h.
2471 (generate_c_for_variable_locations): Update comment.
2472 * compile/compile-c-types.c: Include compile-c.h.
2473 * compile/compile-c.h: New file -- moved C language declarations
2474 from other files here.
2475 * compile/compile-internal.h: Do not include hashtab.h or
2476 common/enum-flags.h.
2477 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2478 (gcc_convert_symbol, gcc_symbol_address)
2479 (generate_c_for_variable_locations, c_get_mode_for_size)
2480 (c_get_range_decl_name): Definitions moved to compile-c.h.
2481 * compile/compile-loc2c.c: Include compile-c.h.
2482
6f36b6d2
KS
24832018-08-10 Keith Seitz <keiths@redhat.com>
2484
2485 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2486 (c_symbol_substitution_name): ... this.
2487 Update all callers.
2488
bd923e51
KS
24892018-08-10 Keith Seitz <keiths@redhat.com>
2490
2491 * compile/compile-c-support.c (c_compute_program): Use
2492 unique_xmalloc_ptr to eliminate cleanup.
2493 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2494 Return a unique_xmalloc_ptr and eliminate cleanup.
2495 * compile/compile-internal.h (generate_c_for_variable_locations):
2496 Return unique_xmalloc_ptr and update description.
2497
dbd534fe
AH
24982018-08-10 Alan Hayward <alan.hayward@arm.com>
2499
2500 * corelow.c (core_target::get_core_register_section): Rename
2501 min_size to section_min_size.
2502
90ad3654
JW
25032018-08-09 Jim Wilson <jimw@sifive.com>
2504
52a187f8
JW
2505 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2506 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2507 * NEWS: Mention new GNU/Linux RISC-V target.
2508 * configure.host: Add riscv*-*-linux*.
2509 * configure.nat: Add riscv*.
2510 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 2511 * riscv-linux-nat.c: New file.
90ad3654
JW
2512 * riscv-linux-tdep.c: New file.
2513
aff4e175
AB
25142018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2515
2516 * infrun.c (resume): Make static, add forward declaration.
2517 (proceed): Update header comment.
2518 * infrun.h (resume): Delete declaration.
2519
06ab9219
TT
25202018-08-09 Tom Tromey <tom@tromey.com>
2521
2522 * riscv-tdep.h: Minor formatting fixes.
2523
83c8d318
SM
25242018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2525
2526 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2527 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2528 (test_mkdir_recursive): Likewise.
2529 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2530
5ff2bbae
AB
25312018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2532
2533 * valarith.c (value_subscripted_rvalue): If an array is not in
2534 memory, and we don't know the upper bound, then we can't know that
2535 the requested element exists or not.
2536
fdbac7d8
SM
25372018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2538
2539 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2540 (target_options_to_string): Add comment.
2541
83202f7a
TT
25422018-08-08 Tom Tromey <tom@tromey.com>
2543
2544 * unittests/scoped_mmap-selftests.c: Check result of "write".
2545
411baa47
JW
25462018-08-08 Jim Wilson <jimw@sifive.com>
2547
5c720ed8
JW
2548 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2549 (decode_register_index_short): New.
2550 (decode_j_type_insn, decode_cj_type_insn): New.
2551 (decode_b_type_insn, decode_cb_type_insn): New.
2552 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2553 local xlen. Check xlen when decoding ambiguous compressed insns. In
2554 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2555 is_c_sw_insn instead of is_sw_insn.
2556 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2557 (riscv_software_single_step): New.
2558 * riscv-tdep.h (riscv_software_single_step): Declare.
2559
411baa47
JW
2560 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2561 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2562
9d4a934c
AB
25632018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2564
2565 PR gdb/18050:
2566 * target.c (dispose_inferior): Don't dispose of inferiors that are
2567 already killed.
2568
ff36536c
SN
25692018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2570
2571 * remote.c (remote_target::download_tracepoint): Change char* to
2572 const char*.
2573
09ce46f2
SM
25742018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2575
2576 * target.h (target_options_to_string): Return an std::string.
2577 * target.c (str_comma_list_concat_elem): Return void, use
2578 std::string.
2579 (do_option): Likewise.
2580 (target_options_to_string): Return an std::string.
2581 * linux-nat.c (linux_nat_target::wait): Adjust.
2582 * target-debug.h (target_debug_print_options): Adjust.
2583
9c612964
TT
25842018-08-07 Tom Tromey <tom@tromey.com>
2585
2586 * Makefile.in (CPPFLAGS): New variable.
2587 (INTERNAL_CPPFLAGS): Use it.
2588
7d11235d
SM
25892018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2590
2591 * NEWS: Mention the index cache.
2592
87d6a7aa
SM
25932018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2594
2595 * common/pathstuff.h (get_standard_cache_dir): New.
2596 * common/pathstuff.c (get_standard_cache_dir): New.
2597 * build-id.h (build_id_to_string): New.
2598 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2599 DEBUG_STR_SUFFIX): Move to here.
2600 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2601 DEBUG_STR_SUFFIX): Move from there.
2602 (write_psymtabs_to_index): Make non-static, add basename
2603 parameter. Write to temporary files, rename when done.
2604 (save_gdb_index_command): Adjust call to
2605 write_psymtabs_to_index.
2606 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2607 field.
2608 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2609 (get_gdb_index_contents_from_cache): New.
2610 (get_gdb_index_contents_from_cache_dwz): New.
2611 (dwarf2_initialize_objfile): Read index from cache.
2612 (dwarf2_build_psymtabs): Save to index.
2613 * dwarf-index-cache.h: New file.
2614 * dwarf-index-cache.c: New file.
2615 * dwarf-index-write.h: New file.
2616
8a99096f
SM
26172018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2618
2619 * gnulib/aclocal.m4: Re-generate.
2620 * gnulib/config.in: Re-generate.
2621 * gnulib/configure: Re-generate.
2622 * gnulib/import/Makefile.am: Re-generate.
2623 * gnulib/import/Makefile.in: Re-generate.
2624 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2625 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2626 * gnulib/import/m4/mkdir.m4: New file.
2627 * gnulib/import/mkdir.c: New file.
2628 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2629 module.
2630
5c831bb1
SM
26312018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2632
2633 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2634 * common/scoped_mmap.c: New file.
2635 * common/scoped_mmap.h (destroy): New method.
2636 (~scoped_mmap, reset): Use destroy.
2637 (scoped_mmap): New move constructor.
2638 (mmap_file): New declaration.
2639 * unittests/scoped_mmap-selftests.c (test_normal,
2640 test_invalid_filename, run_tests): New functions.
2641 (_initialize_scoped_mmap_selftests): Register selftest.
2642
4485a1c1
SM
26432018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2644
2645 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2646 (read_gdb_index_from_buffer): ... this. Remove section
2647 parameter, add buffer parameter.
2648 (get_gdb_index_contents_ftype,
2649 get_gdb_index_contents_dwz_ftype): New typedefs.
2650 (dwarf2_read_gdb_index): Add callback parameters to get the
2651 index contents.
2652 (get_gdb_index_contents_from_section): New.
2653 (dwarf2_initialize_objfile): Update call to
2654 dwarf2_read_gdb_index.
2655
528e1572
SM
26562018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2657
2658 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2659 (gdb_open_cloexec): Likewise.
2660 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2661 (commandline_from_pid): Likewise.
2662 (linux_xfer_osdata_threads): Likewise.
2663 (linux_xfer_osdata_fds): Likewise.
2664 * ada-lang.c (is_package_name): Likewise.
2665 * auxv.c (procfs_xfer_auxv): Likewise.
2666 * breakpoint.c (print_one_breakpoint_location): Use
2667 uiout::field_fmt.
2668 (print_one_catch_solib): Use string_printf.
2669 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2670 (add_pe_forwarded_sym): Likewise.
2671 * dwarf2read.c (create_type_unit_group): Likewise.
2672 (build_error_marker_type): Likewise.
2673 * infcall.c (get_function_name): Likewise.
2674 * valprint.c (print_converted_chars_to_obstack): Likewise.
2675 * xtensa-tdep.c (xtensa_register_type): Likewise.
2676
a7f25a84
SM
26772018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2678
2679 * remote.c (remote_target::download_tracepoint): Fix format
2680 string errors.
2681
296956be
PFC
26822018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2683
2684 * tracefile.c: Include common/byte-vector.h.
2685 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2686 with trace_regblock_size if needed. Update uses of buf.
2687
a04b9d62
PFC
26882018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2689
2690 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2691 std::vector<unsigned char>.
2692 * tracepoint.c (collection_list::collection_list): Remove
2693 m_regs_mask initializer from initializer list. Resize
2694 m_regs_mask using the largest remote register number.
2695 (collection_list::add_remote_register): Remove size check on
2696 m_regs_mask. Use at to access element.
2697 (collection_list::stringify): Change type of temp_buf to
2698 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2699 stringify the register mask. Use pack_hex_byte for the register
2700 mask.
2701
4277c4b8
PFC
27022018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2703
2704 * tracepoint.h (class collection_list) <add_register>: Remove.
2705 <add_remote_register, add_ax_registers, add_local_register>:
2706 Declare.
2707 <add_memrange>: Add scope parameter.
2708 * tracepoint.c (encode_actions_1): Likewise.
2709 (collection_list::add_register): Rename to ...
2710 (collection_list::add_remote_register): ... this. Update
2711 comment.
2712 (collection_list::add_ax_registers, add_local_register): New
2713 methods.
2714 (collection_list::add_memrange): Add scope parameter. Call
2715 add_local_register instead of add_register.
2716 (finalize_tracepoint_aexpr): New function.
2717 (collection_list::collect_symbol): Update calls to add_memrange.
2718 Call add_local_register instead of add_register. Call
2719 add_ax_registers. Call finalize_tracepoint_aexpr.
2720 (encode_actions_1): Get remote regnos for $reg action. Call
2721 add_remote_register, add_ax_registers, and add_local_register.
2722 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2723 (validate_actionline): Call finalize_tracepoint_aexpr.
2724
3df3a985
PFC
27252018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2726
2727 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2728 Replace array buf with gdb::char_vector buf, of size
2729 get_remote_packet_size (). Replace references to buf and
2730 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2731 and xsnprintf with snprintf. Raise errors if the buffer is too
2732 small.
2733
aa6f3694
PFC
27342018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2735
2736 * remote.c (remote_target::download_tracepoint): Fix the has_more
2737 predicate in the QTDP action list iteration.
2738
05abfc39
PFC
27392018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2740
2741 * remote.c (remote_target::download_tracepoint): Fix indentation
2742 in for block.
2743
821a2682
RO
27442018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2745
2746 * proc-api.c (_initialize_proc_api): Remove c, unused.
2747 * procfs.c (procfs_init_inferior): Remove signals, unused.
2748 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2749 unused.
2750
95347337
AB
27512018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2752 Andrew Burgess <andrew.burgess@embecosm.com>
2753
2754 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2755 'W_STOPCODE (0)' as this could be ambiguous.
2756
425699f5
SDJ
27572018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2758
2759 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2760 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2761 "ai_socktype").
2762
3e1d3d8c
TT
27632018-08-02 Tom Tromey <tom@tromey.com>
2764
2765 PR symtab/16842.
2766 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2767 symbols.
2768 (process_structure_scope): Likewise.
2769
15843549
XR
27702018-08-02 Xavier Roirand <roirand@adacore.com>
2771
2772 PR gdb/22629:
2773 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2774 kill inferior.
2775
b5bddbbb
TT
27762018-08-02 Tom Tromey <tom@tromey.com>
2777
2778 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2779 (darwin_suspend_inferior, darwin_resume_inferior)
2780 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2781 (darwin_check_new_threads): Check result of get_darwin_inferior.
2782
f61cfa07
JB
27832018-07-31 Joel Brobecker <brobecker@adacore.com>
2784
2785 GDB 8.1.1 released.
2786
5abe0f0c
JV
27872018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2788
2789 * varobj.c (varobj_get_path_expr_parent): Report an error if
2790 parent is a dynamic varobj.
2791
472fa5ee
SM
27922018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2793
2794 * gnulib/aclocal.m4: Re-generate.
2795 * gnulib/config.in: Re-generate.
2796 * gnulib/configure: Re-generate.
2797 * gnulib/import/Makefile.in: Re-generate.
2798 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2799 * gnulib/import/m4/onceonly.m4: Re-generate.
2800
1c28969e
SM
28012018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2802
2803 * target-descriptions.c (struct xml_test_tdesc): New.
2804 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2805 (record_xml_tdesc): Update.
2806 (maintenance_check_xml_descriptions): Update.
2807 * target-descriptions.h (record_xml_tdesc): Update comment.
2808
c8f2dc0d
AB
28092018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2810
2811 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2812 checking array bounds are defined.
2813
463c08d1
TT
28142018-07-30 Tom Tromey <tom@tromey.com>
2815
2816 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2817 irreflexivity violation.
2818
dba7455e
TT
28192018-07-30 Tom Tromey <tom@tromey.com>
2820
2821 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2822 * value.c (unpack_long): Remove lint code.
2823 * valops.c (value_ind): Remove lint code.
2824 * valarith.c (value_x_binop, value_x_unop, value_equal)
2825 (value_pos): Remove lint code.
2826
37cc0cae
TV
28272018-07-28 Tom de Vries <tdevries@suse.de>
2828
2829 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2830 with undefined upper bound as <optimized out>.
2831
129eb0f1
SDJ
28322018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2833
2834 * gcore.in: Rename variable "name" to "prefix". Expand
2835 "usage" text.
2836
6af79d7b
JT
28372018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2838
2839 * windows-nat.c (windows_nat_target::create_inferior): Update to
2840 call close() in global namespace.
2841
79748972
TT
28422018-07-26 Tom Tromey <tom@tromey.com>
2843
2844 * dwarf-index-write.c (add_address_entry): Don't add objfile
2845 offsets.
2846 * dbxread.c (find_stab_function): Rename from
2847 find_stab_function_addr. Return a bound_minimal_symbol.
2848 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2849 Don't add objfile offsets.
2850 (end_psymtab): Use raw_text_low, raw_text_high,
2851 MSYMBOL_VALUE_RAW_ADDRESS.
2852 (read_ofile_symtab): Update.
2853 (process_one_symbol): Update.
2854 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2855 offsets.
2856 (dw2_relocate): Remove.
2857 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2858 searching addrmap.
2859 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2860 Update.
2861 (process_psymtab_comp_unit_reader, add_partial_symbol)
2862 (add_partial_subprogram, dwarf2_ranges_read): Update.
2863 (load_partial_dies): Update.
2864 (add_address_entry): Don't add objfile offsets.
2865 (dwarf2_build_include_psymtabs): Update.
2866 (create_addrmap_from_aranges): Don't add objfile offsets.
2867 (dw2_find_pc_sect_compunit_symtab): Update.
2868 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2869 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2870 Update.
2871 (parse_partial_symbols): Don't add objfile offsets. Use
2872 raw_text_low, raw_text_high. Update.
2873 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2874 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2875 or call 'relocate' quick function. Clear psymbol_map.
2876 * psympriv.h (struct partial_symbol) <address>: Add section
2877 offset.
2878 <set_unrelocated_address>: Rename from set_address.
2879 <raw_text_low, raw_text_high>: New methods.
2880 <text_low, text_high>: Add objfile parameter.
2881 (add_psymbol_to_bcache): Add 'section' parameter. Call
2882 set_unrelocated_address.
2883 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2884 (find_pc_psymbol): Update.
2885 (fixup_psymbol_section, relocate_psymtabs): Remove.
2886 (dump_psymtab, psym_functions): Update.
2887 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2888 parameter.
2889 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2890 (start_psymtab_common): Update.
2891 * symfile-debug.c (debug_qf_relocate): Remove.
2892 (debug_sym_quick_functions): Update.
2893 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2894 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2895 Update.
2896
52948f01
TT
28972018-07-26 Tom Tromey <tromey@redhat.com>
2898
2899 * dbxread.c (end_psymtab): Use text_high_valid and
2900 text_low_valid.
2901 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2902 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2903 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2904 Update comment.
2905 <text_low_valid, text_high_valid>: New fields.
2906 <set_text_low, set_text_high>: Update.
2907 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2908
4ae976d1
TT
29092018-07-26 Tom Tromey <tom@tromey.com>
2910
2911 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2912 Update.
2913 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2914 textlow and texthigh fields.
2915 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2916 Update.
2917 * mdebugread.c (parse_lines, parse_partial_symbols)
2918 (psymtab_to_symtab_1): Update.
2919 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2920 Rename fields. Update comment. Now private.
2921 <text_low, text_high, set_text_low, set_text_high>: New methods.
2922 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2923 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2924 (start_psymtab_common, maintenance_info_psymtabs)
2925 (maintenance_check_psymtabs): Update.
2926 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2927 texthigh fields.
2928 (scan_xcoff_symtab): Update.
2929
02e9e7f7
TT
29302018-07-26 Tom Tromey <tromey@redhat.com>
2931
2932 * psympriv.h (struct partial_symbol) <unrelocated_address,
2933 address, set_address>: New methods.
2934 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2935 (fixup_psymbol_section, relocate_psymtabs): Update.
2936 (print_partial_symbols): Add 'objfile' parameter. Update.
2937 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2938 Update.
2939
8a6d4234
TT
29402018-07-26 Tom Tromey <tom@tromey.com>
2941
2942 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2943 (debug_names::write_psymbols): Update.
2944 * psympriv.h (struct partial_symbol): Derive from
2945 general_symbol_info.
2946 <obj_section>: New method.
2947 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2948 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2949 (find_pc_sect_psymbol, fixup_psymbol_section)
2950 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2951 (print_partial_symbols, recursively_search_psymtabs)
2952 (compare_psymbols, psymbol_hash, psymbol_compare)
2953 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2954 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2955
08994e1d
TT
29562018-07-26 Tom Tromey <tromey@redhat.com>
2957
2958 * dbxread.c (end_psymtab): Remove dead code.
2959
3c3bb058
AB
29602018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2961
2962 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2963 DWARF unwinders are disabled.
2964 * dwarf2-frame.c: Add dwarf2read.h include.
2965 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2966 disabled.
2967 (dwarf2_frame_unwinders_enabled_p): Define.
2968 (show_dwarf_unwinders_enabled_p): New function.
2969 (_initialize_dwarf2_frame): Register switch to control DWARF
2970 unwinder use.
2971 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2972 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2973 (show_dwarf_cmdlist): Remove static keyword.
2974 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2975 (show_dwarf_cmdlist): Declare.
2976 * NEWS: Document new feature.
2977
9e7f3bbb
TV
29782018-07-26 Tom de Vries <tdevries@suse.de>
2979
2980 PR breakpoints/23366
2981 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2982
506f5c41
TV
29832018-07-26 Tom de Vries <tdevries@suse.de>
2984
2985 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2986 DW_AT_count can't be translated to a dynamic prop.
2987
16f808ec
TV
29882018-07-25 Tom de Vries <tdevries@suse.de>
2989
2990 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2991 try/catch.
2992
d7154a8d
JV
29932018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2994
2995 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2996
a45389f6
JB
29972018-07-25 Joel Brobecker <brobecker@adacore.com>
2998
2999 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3000
380618d6
KS
30012018-07-24 Keith Seitz <keiths@redhat.comt
3002
3003 PR symtab/23010
3004 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3005 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3006 instead of add_symbol_to_list.
3007 (read_file_scope): Call prepare_one_comp_unit before reading
3008 any other DIEs.
3009
4b17aefe
SM
30102018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3011
3012 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3013
29d17e47
TT
30142018-07-24 Tom Tromey <tom@tromey.com>
3015
3016 * utils.c (malloc, realloc, free): Don't declare.
3017 * configure, config.in: Rebuild.
3018 * configure.ac: Don't check for declarations of free, malloc, or
3019 realloc.
3020
cf4088a9
SM
30212018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3022
3023 * aarch64-linux-nat.c
3024 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3025 variable.
3026 * arm-linux-nat.c (fetch_regs): Likewise.
3027 (store_regs): Likewise.
3028 (fetch_vfp_regs): Likewise.
3029 (store_vfp_regs): Likewise.
3030 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3031 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3032 (arm_linux_nat_target::insert_watchpoint): Likewise.
3033 (arm_linux_nat_target::remove_watchpoint): Likewise.
3034 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3035 Likewise.
3036 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3037 Likewise.
3038 * ppc-linux-nat.c (fetch_register): Likewise.
3039 (fetch_all_gp_regs): Likewise.
3040 (fetch_ppc_registers): Likewise.
3041 (store_all_gp_regs): Likewise.
3042 (store_ppc_registers): Likewise.
3043 (hwdebug_insert_point): Likewise.
3044 (can_use_watchpoint_cond_accel): Likewise.
3045 * remote-sim.c (gdb_os_write_stdout): Likewise.
3046
a0de763e
TT
30472018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3048 Tom Tromey <tom@tromey.com>
3049
3050 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3051 test for it.
3052 * configure: Rebuild.
3053
3b20124b
TT
30542018-07-22 Tom Tromey <tom@tromey.com>
3055
3056 * regformats/regdat.sh: Define xmltarget_${name} inside
3057 #ifndef IN_PROCESS_AGENT.
3058
8c8807f4
TT
30592018-07-22 Tom Tromey <tom@tromey.com>
3060
3061 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3062
c486b610
TT
30632018-07-22 Tom Tromey <tom@tromey.com>
3064
3065 * symfile.c (reread_symbols): Notify iter, not objfile.
3066
494f80a9
TT
30672018-07-22 Tom Tromey <tom@tromey.com>
3068
3069 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3070 Use arch_ops.
3071 (ravenscar_thread_target::prepare_to_store): Likewise.
3072
c51f6a54
TT
30732018-07-22 Tom Tromey <tom@tromey.com>
3074
3075 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3076 unused variable. Call value_fetch_lazy when needed.
3077 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3078 Remove unused variable. Call value_fetch_lazy when needed.
3079
374fd1fd
TT
30802018-07-22 Tom Tromey <tom@tromey.com>
3081
3082 * m32c-tdep.c (mark_dma): Return void.
3083 (make_regs): Remove unused declarations.
3084
d5e9a511
TT
30852018-07-22 Tom Tromey <tom@tromey.com>
3086
3087 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3088 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3089 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3090 bkscm_get_valid_block_smob_arg_unsafe for effect.
3091
996d693a
TT
30922018-07-22 Tom Tromey <tom@tromey.com>
3093
3094 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3095 value_type.
3096
15766370
TT
30972018-07-22 Tom Tromey <tom@tromey.com>
3098
3099 * windows-nat.c (saved_context): Conditionally define.
3100 * remote.c (remote_target::remote_btrace_maybe_reopen):
3101 Conditionally declare "warned".
3102 * inflow.c (sigquit_ours): Conditionally define.
3103 (new_tty): Move "tty" declaration inside #if.
3104 * guile/guile.c (guile_datadir): Conditionally define.
3105 * charset.c (set_be_le_names): Move some declarations inside #if.
3106 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3107 #if.
3108 (parse_xml_btrace_conf): Likewise.
3109
f4e80e13
TT
31102018-07-22 Tom Tromey <tom@tromey.com>
3111
3112 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3113
8d49165d
TT
31142018-07-22 Tom Tromey <tom@tromey.com>
3115
3116 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3117 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3118 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3119 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3120 * stack.c (frame_apply_level_command): Remove unused variable.
3121 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3122 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3123 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3124 unused variable.
3125 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3126 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3127 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3128 variable.
3129 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3130 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3131 variable.
3132 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3133 Remove unused variable.
3134 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3135 variable.
3136 * common/tdesc.c (print_xml_feature::visit): Remove unused
3137 variable.
3138 * compile/compile-object-load.c (store_regs): Remove unused
3139 variables.
3140 * complaints.c (clear_complaints): Remove unused variable.
3141 * corelow.c (core_target_open): Remove unused variable.
3142 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3143 variable.
3144 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3145 variable.
3146 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3147 variable.
3148 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3149 variable.
3150 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3151 variable.
3152 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3153 variable.
3154 * ia64-tdep.c (examine_prologue): Remove unused variable.
3155 * infcall.c (run_inferior_call): Remove unused variable.
3156 * inferior.c (exit_inferior): Remove unused variable.
3157 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3158 * linespec.c (decode_line_2): Remove unused variable.
3159 * linux-nat.c (super_close): Remove.
3160 * linux-tdep.c (linux_info_proc): Remove unused variable.
3161 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3162 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3163 Remove unused variable.
3164 * parse.c (find_minsym_type_and_address): Remove unused variable.
3165 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3166 variable.
3167 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3168 variable.
3169 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3170 variables.
3171 * record-btrace.c (record_btrace_target::store_registers): Remove
3172 unused variable.
3173 (cmd_show_record_btrace_cpu): Remove unused variable.
3174 * riscv-tdep.c (riscv_register_reggroup_p)
3175 (riscv_push_dummy_call, riscv_return_value): Remove unused
3176 variable.
3177 * rust-exp.y (literal): Remove unused variable.
3178 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3179 unused variable.
3180 <STRUCTOP_ANONYMOUS>: Likewise.
3181 * s390-linux-tdep.c (s390_linux_init_abi_31)
3182 (s390_linux_init_abi_64): Remove unused variable.
3183 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3184 (file_select_thread, net_windows_open, _initialize_ser_windows):
3185 Remove unused variables.
3186 * symtab.c (find_pc_sect_line): Remove unused variable.
3187 * target-memory.c (compute_garbled_blocks): Remove unused
3188 variable.
3189 (target_write_memory_blocks): Remove unused variable.
3190 * target.c (target_stack::unpush): Remove unused variables.
3191 * tracepoint.c (start_tracing, all_tracepoint_actions)
3192 (merge_uploaded_trace_state_variables)
3193 (print_one_static_tracepoint_marker): Remove unused variable.
3194 * unittests/basic_string_view/element_access/char/1.cc (test01):
3195 Remove unused variable.
3196 * windows-nat.c (windows_continue, windows_add_all_dlls)
3197 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3198 Remove unused variables.
3199
17cbafdb
SM
32002018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3201
3202 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3203 attr_profile in HAVE_ELF.
3204 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3205 HAVE_ELF.
3206
0ee6c332
SM
32072018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3208
3209 * frame.c (frame_register_unwind): Change parameter name.
3210 (frame_unwind_register): Likewise.
3211 (frame_unwind_register_value): Likewise.
3212 (frame_unwind_register_signed): Likewise.
3213 (frame_unwind_register_unsigned): Likewise.
3214 * frame.h (frame_register_unwind): Likewise.
3215 (frame_unwind_register): Likewise.
3216 (frame_unwind_register_value): Likewise.
3217 (frame_unwind_register_signed): Likewise.
3218 (frame_unwind_register_unsigned): Likewise.
3219 (frame_unwind_arch): Likewise.
3220
e2e31f10
MR
32212018-07-20 Maciej W. Rozycki <macro@mips.com>
3222
3223 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3224 ISA maintenance.
3225
2d389915
MR
32262018-07-20 Maciej W. Rozycki <macro@mips.com>
3227
3228 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3229 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3230 hand.
3231
cbb09508
KS
32322018-07-20 Keith Seitz <keiths@redhat.com>
3233
3234 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3235 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3236 m_compunit_symtab, m_language>: Add "m_" prefix.
3237 Update all uses.
3238 * buildsym.c: Update all uses.
3239
bfe2e011
TT
32402018-07-20 Tom Tromey <tom@tromey.com>
3241
3242 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3243 * buildsym.h (record_line_ftype): Remove typedef.
3244
0e6f3061
TT
32452018-07-20 Tom Tromey <tom@tromey.com>
3246
3247 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3248 (end_expandable_symtab): Likewise.
3249 (end_symtab_get_static_block): Likewise.
3250 (end_symtab_from_static_block): Likewise.
3251 * buildsym-legacy.c (augment_type_symtab): Remove.
3252 (end_expandable_symtab): Remove.
3253 (end_symtab_get_static_block): Remove.
3254 (end_symtab_from_static_block): Remove.
3255
804d2729
TT
32562018-07-20 Tom Tromey <tom@tromey.com>
3257
3258 * dwarf2read.c: Include buildsym.h.
3259 (struct dwarf2_cu) <builder>: New method.
3260 (fixup_go_packaging): Update.
3261 (process_full_comp_unit, process_full_type_unit): Update. Don't
3262 use scoped_free_pendings.
3263 (using_directives): Add "cu" parameter, remove "language".
3264 (read_import_statement, setup_type_unit_groups, )
3265 (read_func_scope, read_lexical_block_scope)
3266 (dwarf2_record_block_ranges, read_namespace): Update.
3267 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3268 (lnp_state_machine::handle_end_sequence): Update.
3269 (class lnp_state_machine) <m_cu>: New member.
3270 <m_record_line_callback>: Remove.
3271 <m_currently_recording_lines>: New member.
3272 (lnp_state_machine::handle_set_file): Update.
3273 (noop_record_line): Remove.
3274 (dwarf_record_line_p): Add cu parameter.
3275 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3276 (lnp_state_machine::record_line)
3277 (lnp_state_machine::lnp_state_machine)
3278 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3279 (dwarf_decode_lines): Update.
3280 (dwarf2_start_subfile): Add cu parameter.
3281 (dwarf2_start_symtab, new_symbol): Update.
3282 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3283 Remove dwarf2_per_objfile parameter.
3284 (dwarf_decode_macros): Update.
3285
80e649fc
TT
32862018-07-20 Tom Tromey <tom@tromey.com>
3287
3288 * stabsread.c (define_symbol): Update.
3289 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3290 * dwarf2read.c (new_symbol): Update.
3291 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3292 * cp-namespace.c: Include buildsym.h.
3293 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3294 * buildsym-legacy.c (get_buildsym_compunit): New function.
3295
0baae8db
TT
32962018-07-20 Tom Tromey <tom@tromey.com>
3297
3298 * xcoffread.c: Include buildsym-legacy.h.
3299 * windows-nat.c: Include buildsym-legacy.h.
3300 * stabsread.c: Include buildsym-legacy.h.
3301 * mdebugread.c: Include buildsym-legacy.h.
3302 * buildsym-legacy.h: New file.
3303 * buildsym-legacy.c: New file, from buildsym.c.
3304 * go32-nat.c: Include buildsym-legacy.h.
3305 * dwarf2read.c: Include buildsym-legacy.h.
3306 * dbxread.c: Include buildsym-legacy.h.
3307 * cp-namespace.c: Include buildsym-legacy.h.
3308 * coffread.c: Include buildsym-legacy.h.
3309 * buildsym.h: Move some contents to buildsym-legacy.h.
3310 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3311 buildsym-legacy.c.
3312 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3313
ab209f6f
TT
33142018-07-20 Tom Tromey <tom@tromey.com>
3315
3316 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3317 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3318 (buildsym_compunit::buildsym_compunit)
3319 (buildsym_compunit::~buildsym_compunit)
3320 (buildsym_compunit::get_macro_table): Define.
3321
74c72eac
TT
33222018-07-20 Tom Tromey <tom@tromey.com>
3323
3324 * buildsym.c (reset_symtab_globals): Remove.
3325 (buildsym_compunit::end_symtab_from_static_block): Update.
3326 (buildsym_compunit::augment_type_symtab): Update.
3327 (end_symtab_from_static_block): Call free_buildsym_compunit.
3328 (augment_type_symtab, end_symtab, end_expandable_symtab):
3329 Likewise.
3330
da6580e5
TT
33312018-07-20 Tom Tromey <tom@tromey.com>
3332
3333 * arch-utils.c: Do not include buildsym.h.
3334 * mipsread.c: Do not include buildsym.h.
3335 * machoread.c: Do not include buildsym.h.
3336 * elfread.c: Do not include buildsym.h.
3337
4a2125f5
TT
33382018-07-20 Tom Tromey <tom@tromey.com>
3339
3340 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3341 initialization.
3342 (buildsym_compunit): Add new constructor.
3343 (struct buildsym_compunit) <get_last_source_file, finish_block,
3344 record_block_range, start_subfile, patch_subfile_names,
3345 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3346 set_last_source_start_addr, get_last_source_start_addr,
3347 get_local_using_directives, set_local_using_directives,
3348 get_global_using_directives, outermost_context_p,
3349 get_current_context_stack, get_context_stack_depth,
3350 get_current_subfile, get_local_symbols, get_file_symbols,
3351 get_global_symbols, record_debugformat, record_producer,
3352 push_context, pop_context, end_symtab_get_static_block,
3353 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3354 New public methods.
3355 <record_pending_block, finish_block_internal, make_blockvector,
3356 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3357 private methods.
3358 Update all users.
3359
33602018-05-22 Tom Tromey <tom@tromey.com>
3361
3362 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3363 parameter.
3364 (finish_block_internal): Update.
3365
6b213a47
TT
33662018-07-20 Tom Tromey <tom@tromey.com>
3367
3368 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3369 parameter.
3370 (finish_block_internal): Update.
3371
b80a981d
TT
33722018-07-20 Tom Tromey <tom@tromey.com>
3373
3374 * buildsym.h (EXTERN): Don't define or undef.
3375 * buildsym.c (EXTERN): Don't define.
3376
ddb70602
TT
33772018-07-20 Tom Tromey <tom@tromey.com>
3378
3379 * buildsym.c: Remove TODO comment.
3380
b37dd3bc
TT
33812018-07-20 Tom Tromey <tom@tromey.com>
3382
3383 * coffread.c (coff_symtab_read): Update.
3384 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3385 (xcoff_new_init): Update.
3386 * mipsread.c (mipscoff_new_init): Update.
3387 * mdebugread.c (mdebug_build_psymtabs): Update.
3388 * elfread.c (elf_new_init): Update.
3389 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3390 Update.
3391 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3392 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3393 (stabsect_build_psymtabs): Update.
3394 * buildsym.h (buildsym_init): Don't declare.
3395 * buildsym.c: Update comment.
3396 (prepare_for_building): Remove.
3397 (start_symtab, restart_symtab): Update.
3398 (reset_symtab_globals): Update comment.
3399 (buildsym_init): Remove.
3400
e148f09d
TT
34012018-07-20 Tom Tromey <tom@tromey.com>
3402
3403 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3404 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3405 (read_enum_type, common_block_start, common_block_end)
3406 (cleanup_undefined_types_1, finish_global_stabs): Update.
3407 * mdebugread.c (psymtab_to_symtab_1): Update.
3408 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3409 (read_lexical_block_scope, new_symbol): Update.
3410 * dbxread.c (process_one_symbol): Update.
3411 * coffread.c (coff_symtab_read, process_coff_symbol)
3412 (coff_read_enum_type): Update.
3413 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3414 declare.
3415 (get_local_symbols, get_file_symbols, get_global_symbols): New
3416 functions.
3417 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3418 m_global_symbols.
3419 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3420 (~scoped_free_pendings): Update.
3421 (finish_block, prepare_for_building, reset_symtab_globals)
3422 (end_symtab_get_static_block, end_symtab_with_blockvector)
3423 (augment_type_symtab, push_context): Update.
3424 (get_local_symbols, get_file_symbols, get_global_symbols): New
3425 functions.
3426 (buildsym_init): Update.
3427
93b8bea4
TT
34282018-07-20 Tom Tromey <tom@tromey.com>
3429
3430 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3431 (process_full_type_unit): Likewise.
3432 (dwarf2_start_symtab): Set list_in_scope.
3433
f62f6af5
TT
34342018-07-20 Tom Tromey <tom@tromey.com>
3435
3436 * dwarf2read.c (process_psymtab_comp_unit_reader)
3437 (build_type_psymtabs_reader): Do not set list_in_scope.
3438
1d376700
TT
34392018-07-20 Tom Tromey <tom@tromey.com>
3440
3441 * buildsym.c (free_pendings): Remove.
3442 (add_symbol_to_list, scoped_free_pendings)
3443 (finish_block_internal, buildsym_init): Update.
3444
c233e9c6
TT
34452018-07-20 Tom Tromey <tom@tromey.com>
3446
3447 * xcoffread.c (read_xcoff_symtab): Update.
3448 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3449 Update.
3450 * dbxread.c (process_one_symbol): Update.
3451 * coffread.c (coff_symtab_read): Update.
3452 * buildsym.h (finish_block): Update.
3453 * buildsym.c (finish_block): Remove "listhead" argument.
3454 (end_symtab_get_static_block): Update.
3455
5ac04550
TT
34562018-07-20 Tom Tromey <tom@tromey.com>
3457
3458 * buildsym.h (class scoped_free_pendings): Remove constructor.
3459 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3460 method.
3461 <m_pending_block_obstack, m_pending_blocks>: New members.
3462 (pending_block_obstack, pending_blocks): Remove.
3463 (scoped_free_pendings::scoped_free_pendings): Default.
3464 (~scoped_free_pendings): Update.
3465 (free_pending_blocks): Remove.
3466 (finish_block_internal, record_pending_block, make_blockvector)
3467 (end_symtab_get_static_block, augment_type_symtab, push_context)
3468 (buildsym_init): Update.
3469
7ea05a7b
TT
34702018-07-20 Tom Tromey <tom@tromey.com>
3471
3472 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3473 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3474 members.
3475 (pending_addrmap, pending_addrmap_obstack)
3476 (pending_addrmap_interesting): Remove.
3477 (scoped_free_pendings, record_block_range, make_blockvector)
3478 (prepare_for_building, reset_symtab_globals, buildsym_init):
3479 Update.
3480
3c65e5b3
TT
34812018-07-20 Tom Tromey <tom@tromey.com>
3482
3483 * xcoffread.c (process_linenos): Update.
3484 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3485 * mdebugread.c (psymtab_to_symtab_1): Update.
3486 * dwarf2read.c (setup_type_unit_groups)
3487 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3488 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3489 * dbxread.c (process_one_symbol): Update.
3490 * coffread.c (coff_symtab_read, enter_linenos)
3491 (process_coff_symbol): Update.
3492 * buildsym.h (current_subfile): Don't declare.
3493 (get_current_subfile): Declare.
3494 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3495 member.
3496 (start_subfile, free_buildsym_compunit, push_subfile)
3497 (prepare_for_building, start_symtab): Update.
3498 (get_current_subfile): New function.
3499
a60f3166
TT
35002018-07-20 Tom Tromey <tom@tromey.com>
3501
3502 * coffread.c (coff_symtab_read): Update.
3503 * xcoffread.c (read_xcoff_symtab): Update.
3504 * dwarf2read.c (new_symbol): Update.
3505 (read_func_scope, read_lexical_block_scope): Update.
3506 * dbxread.c (process_one_symbol): Update.
3507 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3508 (outermost_context_p): Remove macro.
3509 (outermost_context_p, get_current_context_stack)
3510 (get_context_stack_depth): Declare.
3511 (pop_context): Return struct context_stack.
3512 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3513 member.
3514 (context_stack_size): Remove.
3515 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3516 (prepare_for_building, end_symtab_get_static_block)
3517 (augment_type_symtab, push_context): Update.
3518 (pop_context): Return struct context_stack.
3519 (outermost_context_p, get_current_context_stack)
3520 (get_context_stack_depth): New functions.
3521 (buildsym_init): Update.
3522
56ba65a0
TT
35232018-07-20 Tom Tromey <tom@tromey.com>
3524
3525 * rust-exp.y: Now a pure parser. Update all rules.
3526 (%union): Move earlier.
3527 (current_parser, work_obstack): Remove globals.
3528 (rust_parser, ~rust_parser): Update.
3529 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3530 lex_character, lex_number, lex_string, lex_identifier,
3531 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3532 convert_name, convert_params_to_expression,
3533 convert_ast_to_expression, ast_basic_type, ast_operation,
3534 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3535 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3536 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3537 ast_array_type, ast_slice_type, ast_reference_type,
3538 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3539 (rust_parse): Update.
3540 (rustyyerror, rustyylex): Add parser parameter.
3541 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3542 (rust_lex_stringish_test, rust_lex_test_sequence)
3543 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3544 (rust_lex_test_push_back, rust_lex_tests): Update.
3545
4c693332
PA
35462018-07-19 Pedro Alves <palves@redhat.com>
3547
3548 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3549 gdb::unique_xmalloc_ptr.
3550 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3551 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3552 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3553 copy-initialization.
3554 * guile/scm-pretty-print.c (ppscm_print_children): Use
3555 gdb::unique_xmalloc_ptr instead of cleanups.
3556 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3557 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3558 gdb::unique_xmalloc_ptr.
3559 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3560 Adjust to use gdb::unique_xmalloc_ptr.
3561 * guile/scm-utils.c (extract_arg): Adjust.
3562 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3563 gdb::unique_xmalloc_ptr instead of a cleanup.
3564
4581dc82
TT
35652018-07-19 Tom Tromey <tom@tromey.com>
3566
3567 * utils.c (do_value_free_to_mark)
3568 (make_cleanup_value_free_to_mark): Remove.
3569 * utils.h (make_cleanup_value_free_to_mark): Remove.
3570
43cc6c3a
PA
35712018-07-19 Pedro Alves <palves@redhat.com>
3572
3573 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3574 forwarding reference.
3575
3a5f2a48
PA
35762018-07-18 Pedro Alves <palves@redhat.com>
3577
3578 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3579 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3580 cleanup.
3581
557e56be
PA
35822018-07-18 Pedro Alves <palves@redhat.com>
3583
3584 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3585 exceptions.
3586 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3587 (gdbscm_wrap): New.
3588 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3589 directly instead of a cleanup.
3590 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3591 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3592 (vlscm_binop_gdbthrow): New, factored out from ...
3593 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3594 (vlscm_rich_compare): Use gdbscm_wrap.
3595 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3596 instead of a cleanup.
3597 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3598 cleanup.
3599 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3600 Use xfree directly instead of a cleanup.
3601 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3602 Adjust to use gdbscm_wrap and scoped_value_mark.
3603 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3604 (gdbscm_value_address, gdbscm_value_dereference)
3605 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3606 scoped_value_mark.
3607 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3608 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3609 scoped_value_mark.
3610 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3611 gdbscm_wrap and scoped_value_mark.
3612 (gdbscm_value_to_string): Use xfree directly instead of a
3613 cleanup. Move 'buffer' unique_ptr to TRY scope.
3614 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3615 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3616 scoped_value_mark.
3617 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3618 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3619 scoped_value_mark.
3620 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3621 gdbscm_wrap.
3622
42dc7699
TV
36232018-07-18 Tom de Vries <tdevries@suse.de>
3624
3625 * findvar.c (default_read_var_value): Also resolve dynamic type for
3626 LOC_OPTIMIZED_OUT vars.
3627
6592ceed
MR
36282018-07-18 Maciej W. Rozycki <macro@mips.com>
3629
3630 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3631 decoding.
3632
c6c6149a
TT
36332018-07-17 Tom Tromey <tom@tromey.com>
3634
3635 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3636 (compute_enum_list, pascm_set_param_value_x)
3637 (gdbscm_parameter_value): Update.
3638 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3639 (gdbscm_scm_to_host_string): Update.
3640 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3641 Update.
3642 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3643 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3644 * guile/scm-string.c (gdbscm_scm_to_string): Return
3645 unique_xmalloc_ptr.
3646 (gdbscm_scm_to_host_string): Likewise.
3647
a1a31cb8
TT
36482018-07-17 Tom Tromey <tom@tromey.com>
3649
3650 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3651 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3652 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3653 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3654 unique_xmalloc_ptr.
3655
15bf3002
TT
36562018-07-17 Tom Tromey <tom@tromey.com>
3657
3658 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3659 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3660 Update.
3661 * guile/scm-cmd.c (cmdscm_function): Update.
3662 * guile/scm-pretty-print.c
3663 (ppscm_print_exception_unless_memory_error): Update.
3664 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3665 Return unique_xmalloc_ptr.
3666
7eb1a66c
TT
36672018-07-17 Tom Tromey <tom@tromey.com>
3668
3669 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3670 Use string_printf.
3671
ce73f310
JW
36722018-07-17 Jim Wilson <jimw@sifive.com>
3673
27724bad
JW
3674 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3675 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3676 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3677 unecessary braces after EF_RISCV_RVC test. Delete call to
3678 set_gdbarch_decr_pc_after_break.
3679
ce73f310
JW
3680 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3681 RISCV_LAST_FP_REGNUM + 1.
3682 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3683
056dec39
TT
36842018-07-17 Tom Tromey <tom@tromey.com>
3685
3686 * configure.ac: Remove --disable-gdbcli.
3687 * configure: Rebuild.
3688 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3689 (SUBDIR_CLI_CFLAGS): Remove.
3690 (SFILES): Use SUBDIR_CLI_SRCS.
3691 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3692
4735f0ed
TT
36932018-07-17 Tom Tromey <tom@tromey.com>
3694
3695 PR gdb/18624:
3696 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3697
117a0e99
JW
36982018-07-16 Jim Wilson <jimw@sifive.com>
3699
3700 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3701
8a67aaa8
SM
37022018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3703
3704 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3705 variable.
3706 (libunwind_frame_sniffer): Likewise.
3707 (libunwind_frame_prev_register): Likewise.
3708 (libunwind_sigtramp_frame_sniffer): Likewise.
3709 * ia64-tdep.c (ia64_access_reg): Likewise.
3710 (ia64_access_rse_reg): Likewise.
3711 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3712 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3713
ec74dcd8
SM
37142018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3715
3716 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3717
a700e753
SM
37182018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3719
3720 * remote-sim.c (gdbsim_target::close,
3721 gdbsim_target::mourn_inferior): Remove unused variables.
3722
8b411ff8
SM
37232018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3724
3725 * ia64-tdep.c (ktab_buf): New global.
3726 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3727 (get_kernel_table): Adjust.
3728
edb0470b
TT
37292018-07-16 Tom Tromey <tom@tromey.com>
3730
3731 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3732 * dwarf2read.c (using_directives, new_symbol): Use
3733 outermost_context_p.
3734 * dbxread.c (process_one_symbol): Use outermost_context_p.
3735 * coffread.c (coff_symtab_read): Use outermost_context_p.
3736
6cccc9a8
TT
37372018-07-16 Tom Tromey <tom@tromey.com>
3738
3739 * dwarf2read.c (using_directives, read_func_scope)
3740 (read_lexical_block_scope): Update.
3741 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3742 * buildsym.h (local_using_directives, global_using_directives):
3743 Don't declare.
3744 (get_local_using_directives, set_local_using_directives)
3745 (get_global_using_directives): Declare.
3746 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3747 m_global_using_directives>: New members.
3748 (finish_block_internal, prepare_for_building)
3749 (reset_symtab_globals, end_symtab_get_static_block)
3750 (push_context): Update.
3751 (get_local_using_directives, set_local_using_directives)
3752 (get_global_using_directives): New functions.
3753 (buildsym_init): Update.
3754
652788a7
TT
37552018-07-16 Tom Tromey <tom@tromey.com>
3756
3757 * xcoffread.c (xcoff_initial_scan): Don't call
3758 free_pending_blocks.
3759 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3760 * buildsym.h (class scoped_free_pendings): Add constructor.
3761 (free_pending_blocks): Don't declare.
3762 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3763 (free_pending_blocks): Now static.
3764
8419ee53
TT
37652018-07-16 Tom Tromey <tom@tromey.com>
3766
3767 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3768 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3769 member.
3770 (struct subfile_stack): Remove.
3771 (subfile_stack): Remove.
3772 (push_subfile, pop_subfile, buildsym_init): Update.
3773
ccdac490
TT
37742018-07-16 Tom Tromey <tom@tromey.com>
3775
3776 * buildsym.c (push_subfile): Use gdb_assert.
3777 (pop_subfile): Use gdb_assert.
3778
43130d6f
TT
37792018-07-16 Tom Tromey <tom@tromey.com>
3780
3781 * buildsym.h (merge_symbol_lists): Remove.
3782 * buildsym.c (merge_symbol_lists): Remove.
3783
77d6f1aa
TT
37842018-07-16 Tom Tromey <tom@tromey.com>
3785
3786 * stabsread.c (scan_file_globals): Update comment.
3787 * stabsread.h (scan_file_globals): Move from buildsym.h.
3788 * buildsym.h (scan_file_globals): Move to stabsread.h.
3789
2c722d18
TT
37902018-07-16 Tom Tromey <tom@tromey.com>
3791
3792 * xcoffread.c (xcoff_new_init): Update.
3793 * mipsread.c (mipscoff_new_init): Update.
3794 * mdebugread.c (mdebug_build_psymtabs): Update.
3795 * elfread.c (elf_new_init): Update.
3796 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3797 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3798 * buildsym.h (buildsym_new_init): Don't declare.
3799 * buildsym.c (buildsym_new_init): Remove.
3800
5985ac61
TT
38012018-07-16 Tom Tromey <tom@tromey.com>
3802
3803 * stabsread.h (within_function): Move from buildsym.h.
3804 * stabsread.c (start_stabs): Clear within_function.
3805 * coffread.c (coff_start_symtab): Clear within_function.
3806 * buildsym.h (within_function): Move to stabsread.h.
3807 * buildsym.c (prepare_for_building): Update.
3808
6b84eeb2
TT
38092018-07-16 Tom Tromey <tom@tromey.com>
3810
3811 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3812 * dwarf2read.c (dwarf2_start_symtab): Don't set
3813 processing_gcc_compilation.
3814 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3815
2150c3ef
TT
38162018-07-16 Tom Tromey <tom@tromey.com>
3817
3818 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3819 (next_symbol_text_func): Move from buildsym.h.
3820 * stabsread.c (hashname): Move from buildsym.c.
3821 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3822 (next_symbol_text_func, hashname): Move to stabsread.h.
3823 * buildsym.c: Don't include bcache.h
3824 (hashname): Move to stasbread.c.
3825
0ec44fc0
TT
38262018-07-16 Tom Tromey <tom@tromey.com>
3827
3828 * buildsym.h (context_stack_size): Don't declare.
3829 * buildsym.c (context_stack_size): New global.
3830
81cc346d
TT
38312018-07-16 Tom Tromey <tom@tromey.com>
3832
3833 * dbxread.c (processing_acc_compilation): New global.
3834 * buildsym.h (processing_acc_compilation): Don't declare.
3835
2c99ee5c
TT
38362018-07-16 Tom Tromey <tom@tromey.com>
3837
3838 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3839 * dbxread.c (read_ofile_symtab): Update.
3840 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3841 * buildsym.h (last_source_start_addr): Remove.
3842 (set_last_source_start_addr, get_last_source_start_addr):
3843 Declare.
3844 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3845 parameter.
3846 (struct buildsym_compunit) <m_last_source_start_addr>: New
3847 member.
3848 (prepare_for_building): Remove start_addr parameter.
3849 (start_symtab, restart_symtab, end_symtab_get_static_block)
3850 (end_symtab_with_blockvector): Update.
3851 (set_last_source_start_addr, get_last_source_start_addr): New
3852 functions.
3853
530fedbc
TT
38542018-07-16 Tom Tromey <tom@tromey.com>
3855
3856 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3857 member.
3858 (have_line_numbers): Remove.
3859 (record_line, prepare_for_building, end_symtab_get_static_block)
3860 (augment_type_symtab): Update.
3861
6a976300
TT
38622018-07-16 Tom Tromey <tom@tromey.com>
3863
3864 * buildsym.c (~buildsym_compunit): Free the macro table.
3865 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3866 methods.
3867 <m_pending_macros>: New member.
3868 (pending_macros): Remove.
3869 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3870 (reset_symtab_globals, end_symtab_get_static_block)
3871 (end_symtab_with_blockvector, augment_type_symtab)
3872 (buildsym_init): Update.
3873
c0015d44
TT
38742018-07-16 Tom Tromey <tom@tromey.com>
3875
3876 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3877 parameter.
3878 (buildsym_compunit::set_last_source_file): New method.
3879 <m_last_source_file>: New member.
3880 (prepare_for_building): Remove "name" parameter.
3881 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3882 (last_source_file): Remove.
3883 (set_last_source_file, get_last_source_file): Update.
3884
e62cca7c
TT
38852018-07-16 Tom Tromey <tom@tromey.com>
3886
3887 * buildsym.c (prepare_for_building): Add assert.
3888
905eb0e2
TT
38892018-07-16 Tom Tromey <tom@tromey.com>
3890
3891 * buildsym.c (~buildsym_compunit): Update.
3892 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3893 (start_subfile, patch_subfile_names)
3894 (end_symtab_with_blockvector): Update.
3895
b248663f
TT
38962018-07-16 Tom Tromey <tom@tromey.com>
3897
3898 * buildsym.c (struct buildsym_compunit): Add constructor,
3899 destructor, initializers.
3900 (start_buildsym_compunit): Remove.
3901 (free_buildsym_compunit): Use "delete".
3902 (start_symtab, restart_symtab): Use "new".
3903
ff27d073
SM
39042018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3905
3906 * symfile.c (set_objfile_default_section_offset): Remove struct
3907 keyword.
3908
6a15ecf5
SH
39092018-07-14 Stafford Horne <shorne@gmail.com>
3910
3911 * (Responsible Maintainers): Add myself as or1k maintainer.
3912
027a4c30
TT
39132018-07-13 Tom Tromey <tom@tromey.com>
3914
3915 * symfile.c (set_objfile_default_section_offset): Use extra braces
3916 around initializer.
3917
5c1eda30
AA
39182018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3919
3920 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3921 non-branching basr.
3922
bc7b042b
PW
39232018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3924
3925 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3926 unittests/cli-utils-selftests.c
3927 * unittests/cli-utils-selftests.c: New file.
3928
a14c4daa
PW
39292018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3930
3931 * NEWS: Mention new commands. Mention change to 'thread apply'.
3932
1fe75df7
PW
39332018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3934
3935 * thread.c (thr_try_catch_cmd): New function.
3936 (thread_apply_all_command): Handle qcs flags.
3937 (thread_apply_command): Handle qcs flags.
3938 (taas_command): New function.
3939 (tfaas_command): New function.
3940 (_initialize_thread): Update to setup the new commands 'taas
3941 and 'tfaas'. Change doc string for 'thread apply'.
3942
6a70eb7d
PW
39432018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3944
3945 * stack.c: (trailing_outermost_frame): New function, mostly
3946 extracted from backtrace_command_1.
3947 (leading_innermost_frame): New function.
3948 (backtrace_command_1): Update to call trailing_outermost_frame.
3949 (frame_apply_command_count): New function.
3950 (frame_apply_level_command): New function.
3951 (frame_apply_all_command): New function.
3952 (frame_apply_command): New function.
3953 (faas_command): New function.
3954 (frame_cmd_list): New variable.
3955 (_initialize_stack): Update to setup the new commands 'frame apply'
3956 and 'faas'.
3957
529c08b2
PW
39582018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3959
3960 * cli-utils.c (number_or_range_parser::get_number): Only handle
3961 numbers or convenience var as numbers.
3962 (parse_flags): New function.
3963 (parse_flags_qcs): New function.
3964 (number_or_range_parser::finished): Ensure parsing end is detected
3965 before end of string.
3966 * cli-utils.h (parse_flags): New function.
3967 (parse_flags_qcs): New function.
3968 (number_or_range_parser): Remove m_finished bool.
3969 (number_or_range_parser::skip_range): Set m_in_range to false.
3970
64b58472
SDJ
39712018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3972
3973 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3974 on Windows.
3975
c7ab0aef
SDJ
39762018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3977 Jan Kratochvil <jan.kratochvil@redhat.com>
3978 Paul Fertser <fercerpav@gmail.com>
3979 Tsutomu Seki <sekiriki@gmail.com>
3980 Pedro Alves <palves@redhat.com>
3981
3982 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3983 'unittests/parse-connection-spec-selftests.c'.
3984 (COMMON_SFILES): Add 'common/netstuff.c'.
3985 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3986 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3987 * common/netstuff.c: New file.
3988 * common/netstuff.h: New file.
3989 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3990 (wait_for_connect): Update comment. New parameter
3991 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3992 Use 'sock' directly instead of 'scb->fd'.
3993 (try_connect): New function, with code from 'net_open'.
3994 (net_open): Rewrite main loop to deal with multiple
3995 sockets/addresses. Handle IPv6-style hostnames; implement
3996 support for IPv6 connections.
3997 * unittests/parse-connection-spec-selftests.c: New file.
3998
4c7333b3
PA
39992018-07-11 Pedro Alves <palves@redhat.com>
4000
4001 PR gdb/23377
4002 * remote.c (remote_target::remote_detach_pid): Call
4003 set_current_process.
4004
a6f88f6e
PA
40052018-07-11 Pedro Alves <palves@redhat.com>
4006
4007 * h8300-tdep.c (h8300_gdbarch_init): Remove
4008 set_gdbarch_ecoff_reg_to_regnum calls.
4009
16ff70dd
SDJ
40102018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4011
4012 PR c++/23373
4013 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4014 offsets/sizes for static members of a class/struct.
4015
12863263
AH
40162018-07-11 Alan Hayward <alan.hayward@arm.com>
4017
4018 * target-descriptions.c (tdesc_register_bitsize): Rename.
4019 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4020 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4021 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4022
1123588c
TT
40232018-07-10 Tom Tromey <tom@tromey.com>
4024
4025 * breakpoint.c (moribund_locations): Now static and a
4026 std::vector.
4027 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4028 (build_bpstat_chain, update_global_location_list)
4029 (breakpoint_retire_moribund): Update.
4030 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4031 VEC.
4032
8c49aa89
AB
40332018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4034
4035 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4036 (riscv_register_reggroup_p): Use new function, remove unneeded
4037 parenthesis.
4038 (riscv_push_dummy_call): Extend assert to compare against xlen or
4039 flen based on register type.
4040
42ecac17
AB
40412018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4042
4043 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4044
055303e2
AB
40452018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4046
4047 * remote.c (show_hardware_watchpoint_limit): New function.
4048 (show_hardware_watchpoint_length_limit): New function.
4049 (show_hardware_breakpoint_limit): New function.
4050 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4051 where appropriate, update help text.
4052
8fd32c1c
TT
40532018-07-09 Tom Tromey <tom@tromey.com>
4054
4055 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4056 (CLIBS): Don't mention NAT_CLIBS.
4057
31278b51
TT
40582018-07-09 Tom Tromey <tom@tromey.com>
4059
4060 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4061 (LIBGDB_OBS, clean mostlyclean): Update.
4062 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4063
e5fd1493
TT
40642018-07-09 Tom Tromey <tom@tromey.com>
4065
4066 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4067 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4068 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4069
981e0c0c
TT
40702018-07-09 Tom Tromey <tom@tromey.com>
4071
4072 * Makefile.in (ALLDEPFILES): Remove exec.c.
4073 (COMMON_OBS): Remove exec.o.
4074 (COMMON_SFILES): Add exec.c.
4075
14ccceb2
TT
40762018-07-09 Tom Tromey <tom@tromey.com>
4077
4078 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4079
5d3c3a68
TT
40802018-07-09 Tom Tromey <tom@tromey.com>
4081
4082 * Makefile.in (clean mostlyclean): Remove stamp-version.
4083 (version.c): Depend on stamp-version.
4084 (stamp-version): New rule, from version.c rule.
4085
1998086d
TT
40862018-07-09 Tom Tromey <tom@tromey.com>
4087
4088 * Makefile.in (init.c): Depend on stamp-init.
4089 (stamp-init): New rule, from init.c rule.
4090 (clean mostlyclean): Remove stamp-init.
4091
4c754949
TT
40922018-07-09 Tom Tromey <tom@tromey.com>
4093
4094 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4095 SUBDIR_GCC_COMPILE_SRCS.
4096
6497f1dd
TT
40972018-07-09 Tom Tromey <tom@tromey.com>
4098
4099 * Makefile.in (init.c): Remove some unused sed rules.
4100
97a34db9
TT
41012018-07-09 Tom Tromey <tom@tromey.com>
4102
4103 * Makefile.in (TSOBS): Remove.
4104 (INIT_FILES): Update.
4105 (LIBGDB_OBS): Update.
4106 (COMMON_SFILES): Add inflow.c.
4107 (SFILES): Remove inflow.c.
4108
25289ac1
JK
41092018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4110
4111 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4112
e83f4d97
SM
41132018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4114
4869c585
SM
4115 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4116 get_saveloc_name, is_signal_frame_name, step_name,
4117 init_remote_name, create_addr_space_name,
4118 destroy_addr_space_name, search_unwind_table_name,
4119 find_dyn_list_name): Constify.
e83f4d97 4120
6821842f
SM
41212018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4122
4123 * darwin-nat.c (darwin_pthread_kill): New function.
4124 (darwin_resume_thread): Use darwin_pthread_kill.
4125
c530603c
TV
41262018-07-05 Tom de Vries <tdevries@suse.de>
4127
4128 * macroexp.c (macro_buffer) <operator=>: New member function.
4129
a7d0f0f0
TT
41302018-07-04 Tom Tromey <tom@tromey.com>
4131
4132 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4133
6242c6a6
SM
41342018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4135
4136 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4137 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4138 * maint.c: Likewise.
4139 * top.c: Likewise.
4140
4e5b2f89
JB
41412018-07-04 Joel Brobecker <brobecker@adacore.com>
4142
4143 * NEWS: Create a new section for the next release branch.
4144 Rename the section of the current branch, now that it has
4145 been cut.
4146
538ccc4a
JB
41472018-07-04 Joel Brobecker <brobecker@adacore.com>
4148
4149 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4150 * version.in: Bump version to 8.2.50.DATE-git.
4151
1b919490
VB
41522018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4153 Pedro Alves <palves@redhat.com>
4154
4155 * linux-nat.c (linux_init_ptrace): Rename to ...
4156 (linux_init_ptrace_procfs): ... this. Call
4157 linux_proc_init_warnings.
4158 (linux_nat_target::post_attach)
4159 (linux_nat_target::post_startup_inferior): Adjust.
4160 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4161 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4162
1ea5da02
TV
41632018-07-04 Tom de Vries <tdevries@suse.de>
4164
4165 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4166 check ...
4167 (read_comp_unit_head): ... here.
4168
f51e0e20
TT
41692018-07-03 Tom Tromey <tom@tromey.com>
4170
4171 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4172 (stop_tracing, tstatus_command)
4173 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4174 (print_one_static_tracepoint_marker): Update.
4175 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4176 std::vector.
4177 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4178 VEC.
4179 (all_tracepoints, static_tracepoints_here): Return std::vector.
4180
d7e15655
TT
41812018-07-03 Tom Tromey <tom@tromey.com>
4182
4183 * common/ptid.c (ptid_equal): Remove.
4184 * common/ptid.h (ptid_equal): Don't declare.
4185 * ada-tasks.c: Update.
4186 * breakpoint.c: Update.
4187 * common/agent.c: Update.
4188 * corelow.c: Update.
4189 * darwin-nat-info.c: Update.
4190 * darwin-nat.c: Update.
4191 * dcache.c: Update.
4192 * dtrace-probe.c: Update.
4193 * dummy-frame.c: Update.
4194 * fbsd-nat.c: Update.
4195 * frame.c: Update.
4196 * gdbthread.h: Update.
4197 * gnu-nat.c: Update.
4198 * go32-nat.c: Update.
4199 * inf-loop.c: Update.
4200 * inf-ptrace.c: Update.
4201 * infcall.c: Update.
4202 * infcmd.c: Update.
4203 * inflow.c: Update.
4204 * infrun.c: Update.
4205 * linux-fork.c: Update.
4206 * linux-nat.c: Update.
4207 * linux-thread-db.c: Update.
4208 * mi/mi-cmd-var.c: Update.
4209 * mi/mi-interp.c: Update.
4210 * mi/mi-main.c: Update.
4211 * nto-procfs.c: Update.
4212 * ppc-linux-tdep.c: Update.
4213 * procfs.c: Update.
4214 * python/py-inferior.c: Update.
4215 * python/py-record-btrace.c: Update.
4216 * python/py-record.c: Update.
4217 * ravenscar-thread.c: Update.
4218 * regcache.c: Update.
4219 * remote-sim.c: Update.
4220 * remote.c: Update.
4221 * sol-thread.c: Update.
4222 * solib.c: Update.
4223 * target.c: Update.
4224 * tui/tui-stack.c: Update.
4225 * varobj.c: Update.
4226 * windows-nat.c: Update.
4227 * windows-tdep.c: Update.
4228
26a57c92
TT
42292018-07-03 Tom Tromey <tom@tromey.com>
4230
4231 * common/ptid.c (ptid_match): Remove.
4232 * common/ptid.h (ptid_match): Don't declare.
4233 * fbsd-nat.c: Update.
4234 * infcmd.c: Update.
4235 * infrun.c: Update.
4236 * linux-nat.c: Update.
4237 * record-btrace.c: Update.
4238 * regcache.c: Update.
4239 * remote.c: Update.
4240
d2a107e3
TT
42412018-07-03 Tom Tromey <tom@tromey.com>
4242
4243 * common/ptid.c (ptid_tid_p): Remove.
4244 * common/ptid.h (ptid_tid_p): Don't declare.
4245 * sol-thread.c: Update.
4246
15a9e13e
TT
42472018-07-03 Tom Tromey <tom@tromey.com>
4248
4249 * common/ptid.c (ptid_lwp_p): Remove.
4250 * common/ptid.h (ptid_lwp_p): Don't declare.
4251 * fbsd-nat.c: Update.
4252 * linux-nat.c: Update.
4253 * nat/linux-procfs.c: Update.
4254 * nat/x86-linux-dregs.c: Update.
4255 * sol-thread.c: Update.
4256
0e998d96
TT
42572018-07-03 Tom Tromey <tom@tromey.com>
4258
4259 * common/ptid.c (ptid_is_pid): Remove.
4260 * common/ptid.h (ptid_is_pid): Don't declare.
4261 * infrun.c: Update.
4262 * linux-nat.c: Update.
4263 * mi/mi-interp.c: Update.
4264 * remote.c: Update.
4265 * thread.c: Update.
4266
cc6bcb54
TT
42672018-07-03 Tom Tromey <tom@tromey.com>
4268
4269 * common/ptid.c (ptid_get_tid): Remove.
4270 * common/ptid.h (ptid_get_tid): Don't declare.
4271 * ada-tasks.c: Update.
4272 * aix-thread.c: Update.
4273 * bsd-uthread.c: Update.
4274 * darwin-nat.c: Update.
4275 * fbsd-nat.c: Update.
4276 * i386-darwin-nat.c: Update.
4277 * infrun.c: Update.
4278 * linux-tdep.c: Update.
4279 * nto-procfs.c: Update.
4280 * ppc-ravenscar-thread.c: Update.
4281 * python/py-infthread.c: Update.
4282 * ravenscar-thread.c: Update.
4283 * sol-thread.c: Update.
4284 * sparc-ravenscar-thread.c: Update.
4285 * windows-nat.c: Update.
4286
e38504b3
TT
42872018-07-03 Tom Tromey <tom@tromey.com>
4288
4289 * common/ptid.c (ptid_get_lwp): Remove.
4290 * common/ptid.h (ptid_get_lwp): Don't declare.
4291 * aarch64-linux-nat.c: Update.
4292 * ada-tasks.c: Update.
4293 * aix-thread.c: Update.
4294 * amd64-linux-nat.c: Update.
4295 * arm-linux-nat.c: Update.
4296 * corelow.c: Update.
4297 * fbsd-nat.c: Update.
4298 * fbsd-tdep.c: Update.
4299 * gnu-nat.c: Update.
4300 * i386-cygwin-tdep.c: Update.
4301 * i386-gnu-nat.c: Update.
4302 * i386-linux-nat.c: Update.
4303 * ia64-linux-nat.c: Update.
4304 * inf-ptrace.c: Update.
4305 * infrun.c: Update.
4306 * linux-fork.c: Update.
4307 * linux-nat.c: Update.
4308 * linux-tdep.c: Update.
4309 * linux-thread-db.c: Update.
4310 * mips-linux-nat.c: Update.
4311 * nat/aarch64-linux-hw-point.c: Update.
4312 * nat/aarch64-linux.c: Update.
4313 * nat/linux-btrace.c: Update.
4314 * nat/linux-osdata.c: Update.
4315 * nat/linux-procfs.c: Update.
4316 * nat/x86-linux-dregs.c: Update.
4317 * obsd-nat.c: Update.
4318 * ppc-fbsd-nat.c: Update.
4319 * ppc-linux-nat.c: Update.
4320 * procfs.c: Update.
4321 * python/py-infthread.c: Update.
4322 * ravenscar-thread.c: Update.
4323 * remote.c: Update.
4324 * s390-linux-nat.c: Update.
4325 * sol-thread.c: Update.
4326 * sol2-tdep.c: Update.
4327 * spu-linux-nat.c: Update.
4328 * x86-linux-nat.c: Update.
4329 * xtensa-linux-nat.c: Update.
4330
e99b03dc
TT
43312018-07-03 Tom Tromey <tom@tromey.com>
4332
4333 * common/ptid.c (ptid_get_pid): Remove.
4334 * common/ptid.h (ptid_get_pid): Don't declare.
4335 * aarch64-linux-nat.c: Update.
4336 * ada-lang.c: Update.
4337 * aix-thread.c: Update.
4338 * alpha-bsd-nat.c: Update.
4339 * amd64-fbsd-nat.c: Update.
4340 * amd64-linux-nat.c: Update.
4341 * arm-linux-nat.c: Update.
4342 * arm-nbsd-nat.c: Update.
4343 * auxv.c: Update.
4344 * break-catch-syscall.c: Update.
4345 * breakpoint.c: Update.
4346 * bsd-uthread.c: Update.
4347 * corelow.c: Update.
4348 * ctf.c: Update.
4349 * darwin-nat.c: Update.
4350 * fbsd-nat.c: Update.
4351 * fbsd-tdep.c: Update.
4352 * gcore.c: Update.
4353 * gnu-nat.c: Update.
4354 * hppa-nbsd-nat.c: Update.
4355 * hppa-obsd-nat.c: Update.
4356 * i386-fbsd-nat.c: Update.
4357 * ia64-linux-nat.c: Update.
4358 * inf-ptrace.c: Update.
4359 * infcmd.c: Update.
4360 * inferior.c: Update.
4361 * inferior.h: Update.
4362 * inflow.c: Update.
4363 * infrun.c: Update.
4364 * linux-fork.c: Update.
4365 * linux-nat.c: Update.
4366 * linux-tdep.c: Update.
4367 * linux-thread-db.c: Update.
4368 * m68k-bsd-nat.c: Update.
4369 * mi/mi-interp.c: Update.
4370 * mi/mi-main.c: Update.
4371 * mips-linux-nat.c: Update.
4372 * mips-nbsd-nat.c: Update.
4373 * mips64-obsd-nat.c: Update.
4374 * nat/aarch64-linux-hw-point.c: Update.
4375 * nat/aarch64-linux.c: Update.
4376 * nat/linux-btrace.c: Update.
4377 * nat/linux-osdata.c: Update.
4378 * nat/linux-procfs.c: Update.
4379 * nat/x86-linux-dregs.c: Update.
4380 * nto-procfs.c: Update.
4381 * obsd-nat.c: Update.
4382 * ppc-linux-nat.c: Update.
4383 * ppc-nbsd-nat.c: Update.
4384 * ppc-obsd-nat.c: Update.
4385 * proc-service.c: Update.
4386 * procfs.c: Update.
4387 * python/py-inferior.c: Update.
4388 * python/py-infthread.c: Update.
4389 * ravenscar-thread.c: Update.
4390 * record.c: Update.
4391 * remote-sim.c: Update.
4392 * remote.c: Update.
4393 * rs6000-nat.c: Update.
4394 * s390-linux-nat.c: Update.
4395 * sh-nbsd-nat.c: Update.
4396 * sol-thread.c: Update.
4397 * sparc-nat.c: Update.
4398 * sparc64-tdep.c: Update.
4399 * spu-linux-nat.c: Update.
4400 * spu-tdep.c: Update.
4401 * target-debug.h: Update.
4402 * target.c: Update.
4403 * thread.c: Update.
4404 * tid-parse.c: Update.
4405 * tracefile-tfile.c: Update.
4406 * vax-bsd-nat.c: Update.
4407 * windows-nat.c: Update.
4408 * x86-linux-nat.c: Update.
4409 * x86-nat.c: Update.
4410
f2907e49
TT
44112018-07-03 Tom Tromey <tom@tromey.com>
4412
4413 * common/ptid.c (pid_to_ptid): Remove.
4414 * common/ptid.h (pid_to_ptid): Don't declare.
4415 * aix-thread.c: Update.
4416 * arm-linux-nat.c: Update.
4417 * common/ptid.c: Update.
4418 * common/ptid.h: Update.
4419 * corelow.c: Update.
4420 * ctf.c: Update.
4421 * darwin-nat.c: Update.
4422 * fbsd-nat.c: Update.
4423 * fork-child.c: Update.
4424 * gnu-nat.c: Update.
4425 * go32-nat.c: Update.
4426 * inf-ptrace.c: Update.
4427 * infcmd.c: Update.
4428 * inferior.c: Update.
4429 * infrun.c: Update.
4430 * linux-fork.c: Update.
4431 * linux-nat.c: Update.
4432 * nat/aarch64-linux-hw-point.c: Update.
4433 * nat/fork-inferior.c: Update.
4434 * nat/x86-linux-dregs.c: Update.
4435 * nto-procfs.c: Update.
4436 * obsd-nat.c: Update.
4437 * procfs.c: Update.
4438 * progspace.c: Update.
4439 * remote.c: Update.
4440 * rs6000-nat.c: Update.
4441 * s390-linux-nat.c: Update.
4442 * sol-thread.c: Update.
4443 * spu-linux-nat.c: Update.
4444 * target.c: Update.
4445 * top.c: Update.
4446 * tracefile-tfile.c: Update.
4447 * windows-nat.c: Update.
4448
fd79271b
TT
44492018-07-03 Tom Tromey <tom@tromey.com>
4450
4451 * common/ptid.h (ptid_build): Don't declare.
4452 * common/ptid.c (ptid_build): Remove.
4453 * aix-thread.c: Update.
4454 * bsd-kvm.c: Update.
4455 * bsd-uthread.c: Update.
4456 * common/agent.c: Update.
4457 * common/ptid.c: Update.
4458 * common/ptid.h: Update.
4459 * corelow.c: Update.
4460 * darwin-nat.c: Update.
4461 * fbsd-nat.c: Update.
4462 * gnu-nat.c: Update.
4463 * linux-fork.c: Update.
4464 * linux-nat.c: Update.
4465 * linux-thread-db.c: Update.
4466 * nat/linux-osdata.c: Update.
4467 * nat/linux-procfs.c: Update.
4468 * nto-procfs.c: Update.
4469 * obsd-nat.c: Update.
4470 * proc-service.c: Update.
4471 * procfs.c: Update.
4472 * ravenscar-thread.c: Update.
4473 * remote-sim.c: Update.
4474 * remote.c: Update.
4475 * sol-thread.c: Update.
4476 * target.c: Update.
4477 * windows-nat.c: Update.
4478
057302ce
TT
44792018-07-03 Tom Tromey <tom@tromey.com>
4480
4481 * infrun.c (follow_exec): Use exit_inferior_silent.
4482 * inferior.c (exit_inferior_num_silent): Remove.
4483 * inferior.h (exit_inferior_num_silent): Don't declare.
4484
a50c11c6
TT
44852018-07-03 Tom Tromey <tom@tromey.com>
4486
4487 PR cli/23340:
4488 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4489 inferior_ptid on error.
4490
471b9d15
MR
44912018-07-02 Maciej W. Rozycki <macro@mips.com>
4492 Simon Marchi <simon.marchi@polymtl.ca>
4493
4494 PR tdep/8282
4495 * disasm.h (gdb_disassembler): Add
4496 `m_disassembler_options_holder'. member
4497 * disasm.c (get_all_disassembler_options): New function.
4498 (gdb_disassembler::gdb_disassembler): Use it.
4499 (gdb_buffered_insn_length_init_dis): Likewise.
4500 (gdb_buffered_insn_length): Adjust accordingly.
4501 (set_disassembler_options): Handle options with arguments.
4502 (show_disassembler_options_sfunc): Likewise. Add a leading new
4503 line if showing options with descriptions.
4504 (disassembler_options_completer): Adapt to using the
4505 `disasm_options_and_args_t' structure.
4506 * mips-tdep.c (mips_disassembler_options): New variable.
4507 (mips_disassembler_options_o32): Likewise.
4508 (mips_disassembler_options_n32): Likewise.
4509 (mips_disassembler_options_n64): Likewise.
4510 (gdb_print_insn_mips): Don't set `disassembler_options'.
4511 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4512 functions.
4513 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4514 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4515 `gdbarch_disassembler_options_implicit' and
4516 `gdbarch_valid_disassembler_options'.
4517 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4518 `disasm_options_and_args_t' structure.
4519 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4520 method.
4521 (valid_disassembler_options): Switch from `disasm_options_t' to
4522 the `disasm_options_and_args_t' structure.
4523 * NEWS: Document `set disassembler-options' support for the MIPS
4524 target.
4525 * gdbarch.h: Regenerate.
4526 * gdbarch.c: Regenerate.
4527
41823f29
SH
45282018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4529
4530 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4531
41206e32
JB
45322018-06-29 Joel Brobecker <brobecker@adacore.com>
4533
4534 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4535 parameter in call to amd64_target_description.
4536 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4537 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4538 (amd64fbsd_init_abi): Likewise.
4539 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4540 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4541 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4542 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4543
de52b960
PA
45442018-06-29 Pedro Alves <palves@redhat.com>
4545
4546 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4547 "segments" parameter.
4548 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4549 (_initialize_amd64_tdep): Update call to
4550 amd64_create_target_description.
4551 (amd64_target_description): Add "segments" parameter. Adjust
4552 the implementation to use it.
4553 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4554 call to amd64_create_target_description.
4555 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4556 * gdb/arch/amd64.h (amd64_create_target_description): Add
4557 "segments" register.
4558 * gdb/arch/amd64.c (amd64_create_target_description): Add
4559 "segments" parameter. Call create_feature_i386_64bit_segments
4560 only if SEGMENTS is true.
4561 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4562 call to amd64_create_target_description.
4563
75acb486
PA
45642018-06-29 Pedro Alves <palves@redhat.com>
4565
4566 * thread.c (thread_target_id_str): New, factored out from ...
4567 (print_thread_info_1): ... here. Use it to compute the max
4568 "Target Id" column width.
4569
c76a8ea3
PA
45702018-06-29 Pedro Alves <palves@redhat.com>
4571
4572 * remote.c (remote_target::extra_thread_info): Delete
4573 'display_buf' and 'n' locals. from the cache, regardless of
4574 packet mechanims is in use. Use cache for qThreadExtra and qP
4575 methods too.
4576
cd2bb709
PA
45772018-06-29 Pedro Alves <palves@redhat.com>
4578
4579 * blockframe.c (find_pc_sect_containing_function): New function.
4580 * breakpoint.c (print_breakpoint_location): Don't call
4581 find_pc_sect_function.
4582 * linespec.c (create_sals_line_offset): Record the location's
4583 symbol in the sal.
4584 * linespec.c (convert_address_location_to_sals): Fill in sal's
4585 symbol with find_pc_sect_containing_function.
4586 * symtab.c (find_function_start_sal): Rename to ...
4587 (find_function_start_sal_1): ... this.
4588 (find_function_start_sal): Reimplement as wrapper around
4589 find_function_start_sal_1, and use
4590 find_pc_sect_containing_function to fill in the sal's symbol.
4591 (find_function_start_sal(symbol*, bool)): Adjust.
4592 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4593 comments.
4594 (find_pc_sect_containing_function): Declare.
4595
991ff292
PA
45962018-06-29 Pedro Alves <palves@redhat.com>
4597
4598 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4599 true if the the location has no symbol.
4600
44cee4fd
TT
46012018-06-28 Tom Tromey <tom@tromey.com>
4602
4603 * NEWS: Mention --enable-codesign.
4604 * silent-rules.mk (ECHO_SIGN): New variable.
4605 * configure.ac: Add --enable-codesign.
4606 * configure: Rebuild.
4607 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4608 (gdb$(EXEEXT)): Optionally invoke codesign.
4609
f2ffa92b
PA
46102018-06-28 Pedro Alves <palves@redhat.com>
4611
4612 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4613 comments.
4614 (switch_to_thread_no_regs): Adjust comment.
4615 * infcmd.c (stop_pc): Delete.
4616 (post_create_inferior, info_program_command): Replace references
4617 to stop_pc with references to thread_info->suspend.stop_pc.
4618 * inferior.h (stop_pc): Delete declaration.
4619 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4620 (handle_inferior_event_1, handle_signal_stop)
4621 (process_event_stop_test, keep_going_stepped_thread)
4622 (handle_step_into_function, handle_step_into_function_backward)
4623 (print_stop_location): Replace references to stop_pc with
4624 references to thread_info->suspend.stop_pc.
4625 (struct infcall_suspend_state) <stop_pc>: Delete field.
4626 (save_infcall_suspend_state, restore_infcall_suspend_state):
4627 Remove references to inf_stat->stop_pc.
4628 * linux-fork.c (fork_load_infrun_state): Likewise.
4629 * record-btrace.c (record_btrace_set_replay): Likewise.
4630 * record-full.c (record_full_goto_entry): Likewise.
4631 * remote.c (print_one_stopped_thread): Likewise.
4632 * target.c (target_resume): Extend comment.
4633 * thread.c (set_executing_thread): New.
4634 (set_executing): Use it.
4635 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4636 Remove references to stop_pc.
4637
ecdc3a72
PA
46382018-06-28 Pedro Alves <palves@redhat.com>
4639
4640 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4641 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4642
d95d3aef
TT
46432018-06-28 Tom Tromey <tom@tromey.com>
4644
4645 * coffread.c (coff_symfile_finish): Update.
4646 * xcoffread.c (xcoff_symfile_finish): Update.
4647 * elfread.c (elf_symfile_finish): Update.
4648 * symfile.h (dwarf2_free_objfile): Don't declare.
4649 * dwarf2read.c (_initialize_dwarf2_read): Use
4650 register_objfile_data_with_cleanup.
4651 (dwarf2_free_objfile): Now static. Change signature.
4652
291f9a96
PT
46532018-06-28 Petr Tesarik <ptesarik@suse.cz>
4654
4655 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4656 option "-o" to add-symbol-file-load to add an offset to each
4657 section's load address.
4658 * symfile.c (set_objfile_default_section_offset): New function.
4659
d81a3eaf
PT
46602018-06-28 Petr Tesarik <ptesarik@suse.cz>
4661
4662 * symfile.c (add_symbol_file_command): Make sure that sections
4663 with the same name are sorted in the same order.
4664
ed6dfe51
PT
46652018-06-28 Petr Tesarik <ptesarik@suse.cz>
4666
4667 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4668 require the second argument. If omitted, load sections at the
4669 addresses specified in the file.
4670
d4d429d5
PT
46712018-06-28 Petr Tesarik <ptesarik@suse.cz>
4672
4673 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4674 (_initialize_symfile): Add option "-o" to symbol-file to add an
4675 offset to each section of the symbol file.
4676
39b27ab6
PT
46772018-06-28 Petr Tesarik <ptesarik@suse.cz>
4678
4679 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4680
41827fc3
TT
46812018-06-27 Tom Tromey <tom@tromey.com>
4682
4683 * stack.c (_initialize_stack): Update "func" help text.
4684
0c6aef22
TT
46852018-06-27 Tom Tromey <tom@tromey.com>
4686
4687 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4688 std::vector.
4689 (unwind_infopy_str, pyuw_create_unwind_info)
4690 (unwind_infopy_add_saved_register, pyuw_sniffer)
4691 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4692 Update.
4693 (struct saved_reg): Add constructor.
4694 <value>: Now a gdbpy_ref<>.
4695
63177289
TT
46962018-06-27 Tom Tromey <tom@tromey.com>
4697
4698 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4699
e76f78a0
SM
47002018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4701
4702 * gdb-gdb.py.in: Format using autopep8.
4703
9a14af7b
SM
47042018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4705
4706 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4707 (type_lookup_function): Recognize CORE_ADDR values.
4708
189366cd
SM
47092018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4710
4711 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4712 print tag_name.
4713
68ad5fb9
SM
47142018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4715
4716 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4717 <__lt__>: Add.
4718
141ec9f6
SM
47192018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4720
4721 * gdb-gdb.py: Move to...
4722 * gdb-gdb.py.in: ... here.
4723 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4724 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4725 dependencies.
4726 (distclean): Remove gdb-gdb.py when cleaning.
4727 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4728 * configure: Re-generate.
4729
4c4e7ad4
PA
47302018-06-27 Pedro Alves <palves@redhat.com>
4731
4732 * proc-service.c (get_ps_regcache): New.
4733 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4734 (ps_lsetfpregs): Use it.
4735
7ab6656f
OJ
47362018-06-27 Omair Javaid <omair.javaid@linaro.org>
4737
4738 PR gdb/21695
4739 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4740 (dwarf_decode_lines_1): Adjust.
4741
bd583225
SM
47422018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4743
4744 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4745 override.
4746 <info_proc>: Likewise.
4747
9a325b7b
JB
47482018-06-26 Joel Brobecker <brobecker@adacore.com>
4749
4750 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4751 to windows_fetch_one_register, and only handle the case of
4752 fetching one register. Move the code that reloads the context
4753 and iterates over all registers if R is negative to...
4754 (windows_nat_target::fetch_registers): ... here.
4755 (do_windows_store_inferior_registers): Rename to
4756 windows_store_one_register, and only handle the case of storing
4757 one register. Move the code that handles the case where r is
4758 negative to...
4759 (windows_nat_target::store_registers) ... here.
4760
a33ccfc7
TT
47612018-06-26 Tom Tromey <tom@tromey.com>
4762
4763 PR rust/22574:
4764 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4765 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4766 Update.
4767 (rust_internal_print_type): Add podata parameter.
4768 (rust_print_type): Update.
4769
e0c547d1
TT
47702018-06-26 Tom Tromey <tom@tromey.com>
4771
4772 * typeprint.h (struct print_offset_data) <update, finish,
4773 maybe_print_hole>: New methods.
4774 <indentation>: New constant.
4775 * typeprint.c (print_offset_data::indentation): Define.
4776 (print_offset_data::maybe_print_hole, print_offset_data::update)
4777 (print_offset_data::finish): Move from c-typeprint.c and rename.
4778 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4779 (print_spaces_filtered_with_print_options): Update.
4780 (c_print_type_union_field_offset, maybe_print_hole)
4781 (c_print_type_struct_field_offset): Move to typeprint.c and
4782 rename.
4783 (c_type_print_base_struct_union): Update.
4784
75cbc781
PA
47852018-06-25 Pedro Alves <palves@redhat.com>
4786
4787 * gdbthread.h (thread_info_ref, delete_thread)
4788 (delete_thread_silent, first_thread_of_inferior)
4789 (any_thread_of_inferior, switch_to_thread)
4790 (enable_thread_stack_temporaries)
4791 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4792 (get_last_thread_stack_temporary)
4793 (value_in_thread_stack_temporaries, can_access_registers_thread):
4794 Spell out "struct thread_info" instead of just "thread_info".
4795 * inferior.h (notice_new_inferior): Likewise.
4796
b7a08269
PA
47972018-06-25 Pedro Alves <palves@redhat.com>
4798
4799 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4800 pass thread_info pointer to delete_thread.
4801 (windows_nat_target::detach): Pass inferior pointer to
4802 detach_inferior.
4803 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4804 delete_thread.
4805 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4806 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4807 and pass a thread_info pointer to delete_thread.
4808 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4809 pass thread_info pointer to delete_thread.
4810 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4811 delete_thread_silent call.
4812 * procfs.c (procfs_target::detach): Pass inferior pointer to
4813 detach_inferior.
4814 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4815 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4816 delete_thread_silent call.
4817 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4818 pass thread_info pointer to delete_thread.
4819 (windows_nat_target::detach): Pass inferior pointer to
4820 delete_inferior.
4821
8e7767e3
AH
48222018-06-22 Alan Hayward <alan.hayward@arm.com>
4823
4824 * regcache.c (readable_regcache::read_part): Fix asserts.
4825 (reg_buffer::raw_collect_part): New function.
4826 (regcache::write_part): Fix asserts.
4827 (reg_buffer::raw_supply_part): New function.
4828 (regcache::transfer_regset_register): New helper function.
4829 (regcache::transfer_regset): Call new functions.
4830 (regcache_supply_regset): Use gdb_byte*.
4831 (regcache::supply_regset): Likewise.
4832 (regcache_collect_regset): Likewise.
4833 (regcache::collect_regset): Likewise.
4834 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4835 (reg_buffer::raw_supply_part): Likewise.
4836 (regcache::transfer_regset_register): Likewise.
4837 (regcache::transfer_regset): Use gdb_byte*.
4838
bfd60e34
AH
48392018-06-22 Alan Hayward <alan.hayward@arm.com>
4840
4841 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4842
00431a78
PA
48432018-06-21 Pedro Alves <palves@redhat.com>
4844
4845 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4846 instead of a ptid_t. All callers adjusted.
4847 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4848 adjusted.
4849 (print_ada_task_info, display_current_task_id, task_command_1):
4850 Adjust.
4851 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4852 inferior_thread.
4853 (breakpoint_kind): Adjust.
4854 (remove_breakpoints_pid): Rename to ...
4855 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4856 pointer. All callers adjusted.
4857 (bpstat_clear_actions): Use inferior_thread.
4858 (get_bpstat_thread): New.
4859 (bpstat_do_actions): Use it.
4860 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4861 to take a thread_info pointer. All callers adjusted.
4862 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4863 (breakpoint_re_set_thread): Use inferior_thread.
4864 * breakpoint.h (struct inferior): Forward declare.
4865 (bpstat_stop_status): Update.
4866 (remove_breakpoints_pid): Delete.
4867 (remove_breakpoints_inf): New.
4868 * bsd-uthread.c (bsd_uthread_target::wait)
4869 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4870 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4871 (maint_btrace_packet_history_cmd)
4872 (maint_btrace_clear_packet_history_cmd): Adjust.
4873 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4874 inferior_thread.
4875 * cli/cli-interp.c: Include "inferior.h".
4876 * common/refcounted-object.h (struct
4877 refcounted_object_ref_policy): New.
4878 * compile/compile-object-load.c: Include gdbthread.h.
4879 (store_regs): Use inferior_thread.
4880 * corelow.c (core_target::close): Use current_inferior.
4881 (core_target_open): Adjust to use first_thread_of_inferior and use
4882 the current inferior.
4883 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4884 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4885 <thread>: ... this new field. All references adjusted.
4886 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4887 Take a thread_info pointer instead of a ptid_t.
4888 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4889 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4890 thread_info pointer instead of a ptid_t.
4891 * elfread.c: Include "inferior.h".
4892 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4893 Use inferior_thread.
4894 * eval.c (evaluate_subexp): Likewise.
4895 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4896 inferior_thread.
4897 * gdb_proc_service.h (struct thread_info): Forward declare.
4898 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4899 <thread>: ... this new field. All references adjusted.
4900 * gdbarch.h, gdbarch.c: Regenerate.
4901 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4902 'thread' parameter. All implementations and callers adjusted.
4903 * gdbthread.h (thread_info) <set_running>: New method.
4904 (delete_thread, delete_thread_silent): Take a thread_info pointer
4905 instead of a ptid.
4906 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4907 (first_thread_of_process): Delete, replaced by ...
4908 (first_thread_of_inferior): ... this new function. All callers
4909 adjusted.
4910 (any_live_thread_of_process): Delete, replaced by ...
4911 (any_live_thread_of_inferior): ... this new function. All callers
4912 adjusted.
4913 (switch_to_thread, switch_to_no_thread): Declare.
4914 (is_executing): Delete.
4915 (enable_thread_stack_temporaries): Update comment.
4916 <enable_thread_stack_temporaries>: Take a thread_info pointer
4917 instead of a ptid_t. Incref the thread.
4918 <~enable_thread_stack_temporaries>: Decref the thread.
4919 <m_ptid>: Delete
4920 <m_thr>: New.
4921 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4922 (get_last_thread_stack_temporary)
4923 (value_in_thread_stack_temporaries, can_access_registers_thread):
4924 Take a thread_info pointer instead of a ptid_t. All callers
4925 adjusted.
4926 * infcall.c (get_call_return_value): Use inferior_thread.
4927 (run_inferior_call): Work with thread pointers instead of ptid_t.
4928 (call_function_by_hand_dummy): Work with thread pointers instead
4929 of ptid_t. Use thread_info_ref.
4930 * infcmd.c (proceed_thread_callback): Access thread's state
4931 directly.
4932 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4933 access thread's state directly.
4934 (continue_command): Use inferior_thread.
4935 (info_program_command): Use find_thread_ptid and access thread
4936 state directly.
4937 (proceed_after_attach_callback): Use thread state directly.
4938 (notice_new_inferior): Take a thread_info pointer instead of a
4939 ptid_t. All callers adjusted.
4940 (exit_inferior): Take an inferior pointer instead of a pid. All
4941 callers adjusted.
4942 (exit_inferior_silent): New.
4943 (detach_inferior): Delete.
4944 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4945 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4946 (detach_inferior_command, kill_inferior_command): Use
4947 find_inferior_id instead of valid_gdb_inferior_id and
4948 gdb_inferior_id_to_pid.
4949 (inferior_command): Use inferior and thread pointers.
4950 * inferior.h (struct thread_info): Forward declare.
4951 (notice_new_inferior): Take a thread_info pointer instead of a
4952 ptid_t. All callers adjusted.
4953 (detach_inferior): Delete declaration.
4954 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4955 instead of a pid. All callers adjusted.
4956 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4957 (valid_gdb_inferior_id): Delete.
4958 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4959 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4960 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4961 ...
4962 <inf>: ... this new field.
4963 <step_ptid>: Delete, replaced by ...
4964 <step_thread>: ... this new field.
4965 (get_displaced_stepping_state): Take an inferior pointer instead
4966 of a pid. All callers adjusted.
4967 (displaced_step_in_progress_any_inferior): Adjust.
4968 (displaced_step_in_progress_thread): Take a thread pointer instead
4969 of a ptid_t. All callers adjusted.
4970 (displaced_step_in_progress, add_displaced_stepping_state): Take
4971 an inferior pointer instead of a pid. All callers adjusted.
4972 (get_displaced_step_closure_by_addr): Adjust.
4973 (remove_displaced_stepping_state): Take an inferior pointer
4974 instead of a pid. All callers adjusted.
4975 (displaced_step_prepare_throw, displaced_step_prepare)
4976 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4977 All callers adjusted.
4978 (start_step_over): Adjust.
4979 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4980 displaced step queue.
4981 (do_target_resume): Adjust.
4982 (fetch_inferior_event): Use inferior_thread.
4983 (context_switch, get_inferior_stop_soon): Take an
4984 execution_control_state pointer instead of a ptid_t. All callers
4985 adjusted.
4986 (switch_to_thread_cleanup): Delete.
4987 (stop_all_threads): Use scoped_restore_current_thread.
4988 * inline-frame.c: Include "gdbthread.h".
4989 (inline_state) <inline_state>: Take a thread pointer instead of a
4990 ptid_t. All callers adjusted.
4991 <ptid>: Delete, replaced by ...
4992 <thread>: ... this new field.
4993 (find_inline_frame_state): Take a thread pointer instead of a
4994 ptid_t. All callers adjusted.
4995 (skip_inline_frames, step_into_inline_frame)
4996 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4997 pointer instead of a ptid_t. All callers adjusted.
4998 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4999 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5000 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5001 pointers directly.
5002 * linux-nat.c (get_detach_signal): Likewise.
5003 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5004 (thread_db_notice_clone): Adjust.
5005 (thread_db_find_new_threads_silently)
5006 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5007 a thread pointer instead of a ptid_t. All callers adjusted.
5008 * mi/mi-cmd-var.c: Include "inferior.h".
5009 (mi_cmd_var_update_iter): Update to use thread pointers.
5010 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5011 inferior directly.
5012 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5013 out to ...
5014 (mi_output_running): ... this new function.
5015 (mi_on_resume_1): Adjust to use it.
5016 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5017 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5018 directly.
5019 (interrupt_thread_callback): : Adjust to use thread and inferior
5020 pointers.
5021 * proc-service.c: Include "gdbthread.h".
5022 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5023 * progspace-and-thread.c: Include "inferior.h".
5024 * progspace.c: Include "inferior.h".
5025 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5026 hold a reference to an inferior_object.
5027 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5028 inferior_thread.
5029 * python/py-inferior.c (struct inferior_object): Give the type a
5030 tag name instead of a typedef.
5031 (python_on_normal_stop): No need to check if the current thread is
5032 listed.
5033 (inferior_to_inferior_object): Change return type to
5034 inferior_object. All callers adjusted.
5035 (find_thread_object): Delete, bits factored out to ...
5036 (thread_to_thread_object): ... this new function.
5037 * python/py-infthread.c (create_thread_object): Use
5038 inferior_to_inferior_object.
5039 (thpy_is_stopped): Use thread pointer directly.
5040 (gdbpy_selected_thread): Use inferior_thread.
5041 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5042 field, replaced with ...
5043 <thread>: ... this new field. All users adjusted.
5044 (btpy_insn_or_gap_new): Drop const.
5045 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5046 callers adjusted.
5047 * python/py-record.c: Include "gdbthread.h".
5048 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5049 a ptid_t. All callers adjusted.
5050 (gdbpy_current_recording): Use inferior_thread.
5051 * python/py-record.h (recpy_record_object) <ptid>: Delete
5052 field, replaced with ...
5053 <thread>: ... this new field. All users adjusted.
5054 (recpy_element_object) <ptid>: Delete
5055 field, replaced with ...
5056 <thread>: ... this new field. All users adjusted.
5057 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5058 a ptid_t. All callers adjusted.
5059 * python/py-threadevent.c: Include "gdbthread.h".
5060 (get_event_thread): Use thread_to_thread_object.
5061 * python/python-internal.h (struct inferior_object): Forward
5062 declare.
5063 (find_thread_object, find_inferior_object): Delete declarations.
5064 (thread_to_thread_object, inferior_to_inferior_object): New
5065 declarations.
5066 * record-btrace.c: Include "inferior.h".
5067 (require_btrace_thread): Use inferior_thread.
5068 (record_btrace_frame_sniffer)
5069 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5070 (get_thread_current_frame): Use scoped_restore_current_thread and
5071 switch_to_thread.
5072 (get_thread_current_frame): Use thread pointer directly.
5073 (record_btrace_replay_at_breakpoint): Use thread's inferior
5074 pointer directly.
5075 * record-full.c: Include "inferior.h".
5076 * regcache.c: Include "gdbthread.h".
5077 (get_thread_arch_regcache): Use the inferior's address space
5078 directly.
5079 (get_thread_regcache, registers_changed_thread): New.
5080 * regcache.h (get_thread_regcache(thread_info *thread)): New
5081 overload.
5082 (registers_changed_thread): New.
5083 (remote_target) <remote_detach_1>: Swap order of parameters.
5084 (remote_add_thread): <remote_add_thread>: Return the new thread.
5085 (get_remote_thread_info(ptid_t)): New overload.
5086 (remote_target::remote_notice_new_inferior): Use thread pointers
5087 directly.
5088 (remote_target::process_initial_stop_replies): Use
5089 thread_info::set_running.
5090 (remote_target::remote_detach_1, remote_target::detach)
5091 (extended_remote_target::detach): Adjust.
5092 * stack.c (frame_show_address): Use inferior_thread.
5093 * target-debug.h (target_debug_print_thread_info_pp): New.
5094 * target-delegates.c: Regenerate.
5095 * target.c (default_thread_address_space): Delete.
5096 (memory_xfer_partial_1): Use current_inferior.
5097 (target_detach): Use current_inferior.
5098 (target_thread_address_space): Delete.
5099 (generic_mourn_inferior): Use current_inferior.
5100 * target.h (struct target_ops) <thread_address_space>: Delete.
5101 (target_thread_address_space): Delete.
5102 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5103 pointers directly.
5104 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5105 thread pointer instead of a ptid_t. Adjust all callers.
5106 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5107 (first_thread_of_process): Delete, replaced by ...
5108 (first_thread_of_inferior): ... this new function. All callers
5109 adjusted.
5110 (any_thread_of_process): Rename to ...
5111 (any_thread_of_inferior): ... this, and take an inferior pointer.
5112 (any_live_thread_of_process): Rename to ...
5113 (any_live_thread_of_inferior): ... this, and take an inferior
5114 pointer.
5115 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5116 (value_in_thread_stack_temporaries)
5117 (get_last_thread_stack_temporary): Take a thread pointer instead
5118 of a ptid_t. Adjust all callers.
5119 (thread_info::set_running): New.
5120 (validate_registers_access): Use inferior_thread.
5121 (can_access_registers_ptid): Rename to ...
5122 (can_access_registers_thread): ... this, and take a thread
5123 pointer.
5124 (print_thread_info_1): Adjust to compare thread pointers instead
5125 of ptids.
5126 (switch_to_no_thread, switch_to_thread): Make extern.
5127 (scoped_restore_current_thread::~scoped_restore_current_thread):
5128 Use m_thread pointer directly.
5129 (scoped_restore_current_thread::scoped_restore_current_thread):
5130 Use inferior_thread.
5131 (thread_command): Use thread pointer directly.
5132 (thread_num_make_value_helper): Use inferior_thread.
5133 * top.c (execute_command): Use inferior_thread.
5134 * tui/tui-interp.c: Include "inferior.h".
5135 * varobj.c (varobj_create): Use inferior_thread.
5136 (value_of_root_1): Use find_thread_global_id instead of
5137 global_thread_id_to_ptid.
5138
33bab475
AH
51392018-06-21 Alan Hayward <alan.hayward@arm.com>
5140
5141 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5142 possible.
5143 (regcache::write_part): Likewise.
5144 (readable_regcache::cooked_read_part): Update comment.
5145 (readable_regcache::cooked_write_part): Likewise.
5146 * regcache.h: (readable_regcache::read_part): Likewise.
5147 (regcache::write_part): Likewise.
5148
8363f9d5
RB
51492018-06-21 Richard Bunt <richard.bunt@arm.com>
5150 Dirk Schubert <dirk.schubert@arm.com>
5151
5152 * aarch64-linux-nat.c (post_attach): New.
5153 (aarch64_linux_nat_target::post_attach): Override post_attach to
5154 record the number of hardware debug registers.
5155
0d0b0ea2
TT
51562018-06-20 Tom Tromey <tom@tromey.com>
5157
5158 * python/py-param.c (add_setshow_generic): Make parameters const.
5159 (parmpy_init): Update.
5160
302abd6e
SM
51612018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5162
5163 * regcache.h (regcache_cooked_read_ftype): Rename to...
5164 (register_read_ftype): ...this, change type to function_view.
5165 (class reg_buffer) <save>: Remove src parameter.
5166 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5167 parameter non-const in first overload. Remove src parameter in
5168 second overload.
5169 * regcache.c (do_cooked_read): Remove.
5170 (readonly_detached_regcache::readonly_detached_regcache): Make
5171 parameter non-const, adjust call to other constructor.
5172 (reg_buffer::save): Remove src parameter.
5173 * frame.c (do_frame_register_read): Remove.
5174 (frame_save_as_regcache): Use lambda function.
5175 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5176 parameter to ppu2spu_data *.
5177 (ppu2spu_sniffer): Use lambda function.
5178
19f3f25f
SM
51792018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5180
5181 * record-full.c (record_full_target::insert_breakpoint): Remove
5182 "struct" keyword, add const.
5183
d0ac1c44
SM
51842018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5185
5186 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5187 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5188 * configure.ac: Remove AC_PREREQ, add missing quoting.
5189 * gnulib/configure.ac: Modernize usage of
5190 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5191 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5192 (AUTOMAKE_VERSION): Bump to 1.15.1.
5193 * configure: Re-generate.
5194 * config.in: Re-generate.
5195 * aclocal.m4: Re-generate.
5196 * gnulib/aclocal.m4: Re-generate.
5197 * gnulib/config.in: Re-generate.
5198 * gnulib/configure: Re-generate.
5199 * gnulib/import/Makefile.in: Re-generate.
5200
6ae50267
PA
52012018-06-19 Pedro Alves <palves@redhat.com>
5202
5203 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5204 (lookup_minimal_symbol_by_pc_section): ... here with
5205 gdb_assert_not_reached added.
5206
61b04dd0
PA
52072018-06-19 Pedro Alves <palves@redhat.com>
5208
5209 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5210 parameter with a block parameter. Compare location's block symbol
5211 with the frame's block instead of addresses.
5212 (skip_inline_frames): Pass the current block instead of the
5213 frame's address. Break out as soon as we determine the frame
5214 should not be skipped.
5215
f709fabb
TT
52162018-06-18 Tom Tromey <tom@tromey.com>
5217
5218 * solib-aix.c (solib_aix_get_section_offsets): Return
5219 unique_xmalloc_ptr.
5220 (solib_aix_solib_create_inferior_hook): Update.
5221
668eb2f0
TT
52222018-06-18 Tom Tromey <tom@tromey.com>
5223
5224 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5225
309822ca
TT
52262018-06-18 Tom Tromey <tom@tromey.com>
5227
5228 * solib-frv.c (frv_relocate_main_executable): Use
5229 unique_xmalloc_ptr.
5230 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5231 unique_xmalloc_ptr.
5232
06424eac
TT
52332018-06-18 Tom Tromey <tom@tromey.com>
5234
5235 * objfiles.h (inhibit_section_map_updates): Update.
5236 (resume_section_map_updates, resume_section_map_updates_cleanup):
5237 Remove.
5238 * solib-svr4.c (svr4_handle_solib_event): Update.
5239 * objfiles.c (inhibit_section_map_updates): Return
5240 scoped_restore_tmpl<int>.
5241 (resume_section_map_updates, resume_section_map_updates_cleanup):
5242 Remove.
5243
b4be9fad
TT
52442018-06-18 Tom Tromey <tom@tromey.com>
5245
5246 * valprint.h (read_string): Update.
5247 * valprint.c (read_string): Change type of "buffer".
5248 (val_print_string): Update.
5249 * python/py-value.c (valpy_string): Update.
5250 * language.h (struct language_defn) <la_get_string>: Change
5251 type of "buffer".
5252 (default_get_string, c_get_string): Update.
5253 * language.c (default_get_string): Change type of "buffer".
5254 * guile/scm-value.c (gdbscm_value_to_string): Update.
5255 * c-lang.c (c_get_string): Change type of "buffer".
5256
3f0dbd67
TT
52572018-06-18 Tom Tromey <tom@tromey.com>
5258
5259 * ser-mingw.c (struct pipe_state_destroyer): New.
5260 (pipe_state_up): New typedef.
5261 (cleanup_pipe_state): Remove.
5262 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5263
69d340c6
TT
52642018-06-18 Tom Tromey <tom@tromey.com>
5265
5266 * rust-lang.h (rust_yyerror): Don't declare.
5267 * rust-lang.c (rust_language_defn): Update.
5268 * rust-exp.y (yyerror): Now static.
5269 * parse.c (parse_exp_in_context_1): Update.
5270 * p-lang.h (p_yyerror): Don't declare.
5271 * p-lang.c (p_language_defn): Update.
5272 * p-exp.y (yyerror): Now static.
5273 * opencl-lang.c (opencl_language_defn): Update.
5274 * objc-lang.c (objc_language_defn): Update.
5275 * m2-lang.h (m2_yyerror): Don't declare.
5276 * m2-lang.c (m2_language_defn): Update.
5277 * m2-exp.y (yyerror): Now static.
5278 * language.h (struct language_defn) <la_error>: Remove.
5279 * language.c (unk_lang_error): Remove.
5280 (unknown_language_defn, auto_language_defn): Remove.
5281 * go-lang.h (go_yyerror): Don't declare.
5282 * go-lang.c (go_language_defn): Update.
5283 * go-exp.y (yyerror): Now static.
5284 * f-lang.h (f_yyerror): Don't declare.
5285 * f-lang.c (f_language_defn): Update.
5286 * f-exp.y (yyerror): Now static.
5287 * d-lang.h (d_yyerror): Don't declare.
5288 * d-lang.c (d_language_defn): Update.
5289 * d-exp.y (yyerror): Now static.
5290 * c-lang.h (c_yyerror): Don't declare.
5291 * c-lang.c (c_language_defn, cplus_language_defn)
5292 (asm_language_defn, minimal_language_defn): Update.
5293 * c-exp.y (yyerror): Now static.
5294 * ada-lang.h (ada_yyerror): Don't declare.
5295 * ada-lang.c (ada_language_defn): Update.
5296 * ada-exp.y (yyerror): Now static.
5297
e9902bfc
AH
52982018-06-18 Alan Hayward <alan.hayward@arm.com>
5299
5300 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5301 (store_sveregs_to_thread): Likewise.
5302 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5303 (aarch64_linux_store_inferior_registers): Likewise.
5304 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5305 function.
5306 (aarch64_sve_regs_copy_to_regcache): Likewise.
5307 (aarch64_sve_regs_copy_from_regcache): Likewise.
5308 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5309 declaration.
5310 (aarch64_sve_regs_copy_to_regcache): Likewise.
5311 (aarch64_sve_regs_copy_from_regcache): Likewise.
5312 (sve_context): Structure from Linux headers.
5313 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5314 (SVE_SIG_ZREG_SIZE): Likewise.
5315 (SVE_SIG_PREG_SIZE): Likewise.
5316 (SVE_SIG_FFR_SIZE): Likewise.
5317 (SVE_SIG_REGS_OFFSET): Likewise.
5318 (SVE_SIG_ZREGS_OFFSET): Likewise.
5319 (SVE_SIG_ZREG_OFFSET): Likewise.
5320 (SVE_SIG_ZREGS_SIZE): Likewise.
5321 (SVE_SIG_PREGS_OFFSET): Likewise.
5322 (SVE_SIG_PREG_OFFSET): Likewise.
5323 (SVE_SIG_PREGS_SIZE): Likewise.
5324 (SVE_SIG_FFR_OFFSET): Likewise.
5325 (SVE_SIG_REGS_SIZE): Likewise.
5326 (SVE_SIG_CONTEXT_SIZE): Likewise.
5327 (SVE_PT_REGS_MASK): Likewise.
5328 (SVE_PT_REGS_FPSIMD): Likewise.
5329 (SVE_PT_REGS_SVE): Likewise.
5330 (SVE_PT_VL_INHERIT): Likewise.
5331 (SVE_PT_VL_ONEXEC): Likewise.
5332 (SVE_PT_REGS_OFFSET): Likewise.
5333 (SVE_PT_FPSIMD_OFFSET): Likewise.
5334 (SVE_PT_FPSIMD_SIZE): Likewise.
5335 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5336 (SVE_PT_SVE_PREG_SIZE): Likewise.
5337 (SVE_PT_SVE_FFR_SIZE): Likewise.
5338 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5339 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5340 (__SVE_SIG_TO_PT): Likewise.
5341 (SVE_PT_SVE_OFFSET): Likewise.
5342 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5343 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5344 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5345 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5346 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5347 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5348 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5349 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5350 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5351 (SVE_PT_SVE_SIZE): Likewise.
5352 (SVE_PT_SIZE): Likewise.
5353 (HAS_SVE_STATE): New define.
5354
17a1cc89
AH
53552018-06-18 Alan Hayward <alan.hayward@arm.com>
5356
5357 * nat/aarch64-sve-linux-sigcontext.h: New file.
5358 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5359 new files.
5360 (SVE_VQ_MIN): Likewise.
5361 (SVE_VQ_MAX): Likewise.
5362 (SVE_VL_MIN): Likewise.
5363 (SVE_VL_MAX): Likewise.
5364 (SVE_NUM_ZREGS): Likewise.
5365 (SVE_NUM_PREGS): Likewise.
5366 (sve_vl_valid): Likewise.
5367 (struct user_sve_header): Likewise.
5368
7010835a
AB
53692018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5370 Richard Bunt <Richard.Bunt@arm.com>
5371
5372 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5373 was requested by GDB.
5374
479b3ef4
TV
53752018-06-15 Tom de Vries <tdevries@suse.de>
5376
5377 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5378
8199b8f4
SM
53792018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5380
5381 * gnulib/update-gnulib.sh: Print expected versions of
5382 autoconf/aclocal.
5383
55c748a1
SM
53842018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5385
5386 * arch-utils.c (default_type_align): Use type_length_units.
5387 * gdbtypes.c (type_align): Use type_length_units.
5388
87a8eca7
PW
53892018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5390
5391 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5392 of 'define' command.
5393
5d9a0608
TV
53942018-06-14 Tom de Vries <tdevries@suse.de>
5395
5396 PR cli/22573
5397 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5398 get_no_prettyformat_print_options.
5399
ab89b5a5
SM
54002018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5401
5402 * sparc-nat.h: Include target.h.
5403 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5404 <fetch_registers>: Remove this argument in function call.
5405 <store_registers>: Remove this argument in function call, remove
5406 extra semicolon.
5407 <low_forget_process>: Call sparc64_forget_process instead of
5408 sparc_forget_process.
5409
62c808ae
RO
54102018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5411
5412 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5413 (procfs_target::make_corefile_notes): Adjust to new
5414 target_read_alloc return type.
5415
1840d81a
AB
54162018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5417 Stephen Roberts <stephen.roberts@arm.com>
5418
5419 PR gdb/22882
5420 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5421 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5422 Move should_notify_stop local into more inner scope.
5423
9516f85a
AB
54242018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5425 Stephen Roberts <stephen.roberts@arm.com>
5426
5427 PR gdb/22882
5428 * infrun.c (resume_1): Add call to mark_async_event_handler.
5429
defd2172
AB
54302018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5431
5432 * infrun.c (do_target_wait): Change old version of $pc printed.
5433
7b23e087
SM
54342018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5435
5436 * dwarf2read.c (read_index_from_section): Rename to...
5437 (read_gdb_index_from_section): ... this, update all callers.
5438 (dwarf2_read_index): Rename to...
5439 (dwarf2_read_gdb_index): ... this, update all callers.
5440
69c67a0b
JDA
54412018-06-11 John David Anglin <danglin@gcc.gnu.org>
5442
5443 * gdb/hppa-linux-nat.c
5444 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5445 hppa_linux_nat_target::fetch_registers.
5446
65d4cada
AH
54472018-06-11 Alan Hayward <alan.hayward@arm.com>
5448
5449 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5450 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5451 (AARCH64_DWARF_SVE_FFR): Likewise.
5452 (AARCH64_DWARF_SVE_P0): Likewise.
5453 (AARCH64_DWARF_SVE_Z0): Likewise.
5454
f868386e
AH
54552018-06-11 Alan Hayward <alan.hayward@arm.com>
5456
5457 * common/common-regcache.h (raw_compare): New function.
5458 * regcache.c (regcache::raw_compare): Likewise.
5459 * regcache.h (regcache::raw_compare): New declaration.
5460
9c861883
AH
54612018-06-11 Alan Hayward <alan.hayward@arm.com>
5462
5463 * common/common-regcache.h (reg_buffer_common): New structure.
5464 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5465 (reg_buffer::raw_supply): Likewise.
5466 (reg_buffer::raw_supply_integer): Likewise.
5467 (reg_buffer::raw_supply_zeroed): Likewise.
5468 (reg_buffer::raw_collect): Likewise.
5469 (reg_buffer::raw_collect_integer): Likewise.
5470 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5471 (reg_buffer::raw_supply): Likewise.
5472 (reg_buffer::raw_supply_integer): Likewise.
5473 (reg_buffer::raw_supply_zeroed): Likewise.
5474 (reg_buffer::raw_collect): Likewise.
5475 (reg_buffer::raw_collect_integer): Likewise.
5476
953edf2b
TT
54772018-06-10 Tom Tromey <tom@tromey.com>
5478
5479 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5480 (class remote_state) <stop_reply_queue>: Now std::vector.
5481 (remote_state::~remote_state)
5482 (remote_target::stop_reply_queue_length): Update.
5483 (struct queue_iter_param, remove_child_of_pending_fork)
5484 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5485 (check_pending_event_prevents_wildcard_vcont_callback)
5486 (remove_stop_reply_for_inferior)
5487 (remove_stop_reply_of_remote_state)
5488 (remote_notif_remove_once_on_match)
5489 (stop_reply_match_ptid_and_ws)
5490 (remote_kill_child_of_pending_fork): Remove.
5491 (remote_target::remove_new_fork_children)
5492 (remote_target::check_pending_events_prevent_wildcard_vcont)
5493 (remote_target::discard_pending_stop_replies)
5494 (remote_target::discard_pending_stop_replies_in_queue)
5495 (remote_target::remote_notif_remove_queued_reply)
5496 (remote_target::queued_stop_reply)
5497 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5498 (remote_target::wait, remote_target::kill_new_fork_children)
5499 (remote_target::async): Update.
5500
1ddbba9d
TT
55012018-06-10 Tom Tromey <tom@tromey.com>
5502
5503 * record-full.c (record_full_arch_list_cleanups): Remove.
5504 (record_full_message): Use try/catch.
5505 (record_full_wait_cleanups): Remove.
5506 (record_full_wait_1): Use try/catch.
5507 (record_full_restore): Likewise.
5508
219605fd
TT
55092018-06-10 Tom Tromey <tom@tromey.com>
5510
5511 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5512 declare VEC. Add constructor.
5513 <in_target_beneath>: Now bool.
5514 (record_full_breakpoints): Now a std::vector, static.
5515 (record_full_sync_record_breakpoints)
5516 (record_full_init_record_breakpoints)
5517 (record_full_target::insert_breakpoint)
5518 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5519
71b73764
SM
55202018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5521
5522 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5523 * serial.c (serial_interface_lookup): Remove struct keyword.
5524
4360561f
TT
55252018-06-10 Tom Tromey <tom@tromey.com>
5526
5527 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5528 method.
5529 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5530 a method.
5531 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5532 method.
5533 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5534 "beneath" as a method.
5535 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5536 Use "beneath" as a method.
5537
d14b92bf
TT
55382018-06-10 Tom Tromey <tom@tromey.com>
5539
5540 * tracefile.c (struct trace_file_writer_deleter): New.
5541 <operator()>: Rename from trace_file_writer_xfree.
5542 (trace_file_writer_up): New typedef.
5543 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5544
835dcf92
SM
55452018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5546
5547 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5548 <m_registers, m_register_status>: Change type to
5549 std::unique_ptr.
5550 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5551 XCNEWVEC.
5552
aac0d564
SM
55532018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5554
5555 * common/common-regcache.h (enum register_status): Add
5556 underlying type "signed char".
5557 * regcache.h (reg_buffer) <m_register_status>: Change type to
5558 register_status *.
5559 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5560 register_status instead of signed char.
5561 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5562 (reg_buffer::get_register_status): Remove cast.
5563 (readable_regcache::raw_read): Remove cast.
5564 (readable_regcache::cooked_read): Remove cast.
5565
77ad7394
TT
55662018-06-09 Tom Tromey <tom@tromey.com>
5567
5568 * source.c (reverse_search_command, forward_search_command): Use
5569 scoped_fd.
5570
191cca63
TT
55712018-06-09 Tom Tromey <tom@tromey.com>
5572
5573 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5574 (serial_ops_list): Now static, std::vector.
5575 (serial_interface_lookup, serial_add_interface): Update.
5576
c5d0225d
TT
55772018-06-09 Tom Tromey <tom@tromey.com>
5578
5579 * dwarf2read.c (process_cu_includes): Update.
5580 (process_full_comp_unit): Update.
5581 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5582 std::vector.
5583
aeab5128
PK
55842018-06-08 Paul Koning <paul_koning@dell.com>
5585
5586 PR gdb/23252
5587
5588 * python/python.c (do_start_initialization):
5589 Avoid call to internal Python API.
5590 (init__gdb_module): New function.
5591
5045b3d7
GB
55922018-06-08 Gary Benson <gbenson@redhat.com>
5593
5594 * linux-thread-db.c (valprint.h): New include.
5595 (struct check_thread_db_info): New structure.
5596 (check_thread_db_on_load, tdb_testinfo): New static globals.
5597 (check_thread_db, check_thread_db_callback): New functions.
5598 (try_thread_db_load_1): Run integrity checks if requested.
5599 (maintenance_check_libthread_db): New function.
5600 (_initialize_thread_db): Register "maint check libthread-db"
5601 and "maint set/show check-libthread-db".
5602 * NEWS: Mention the above new commands.
5603
2f4f025f
TT
56042018-06-08 Tom Tromey <tom@tromey.com>
5605
5606 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5607 now a method.
5608
343b0027
TT
56092018-06-08 Tom Tromey <tom@tromey.com>
5610
5611 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5612
8dcc53b3
TT
56132018-06-08 Tom Tromey <tom@tromey.com>
5614
5615 * common/btrace-common.h (struct btrace_data): Add constructor,
5616 destructor, move assignment operator.
5617 <empty, clear, fini>: New methods.
5618 <format>: Initialize.
5619 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5620 (btrace_data_empty): Don't declare.
5621 * common/btrace-common.c (btrace_data_init): Remove.
5622 (btrace_data::fini): Rename from btrace_data_fini.
5623 (btrace_data::empty): Rename from btrace_data_empty.
5624 (btrace_data::clear): Rename from btrace_data_clear. Return
5625 bool.
5626 * btrace.h (make_cleanup_btrace_data): Don't declare.
5627 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5628 (parse_xml_btrace): Update.
5629 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5630 (maint_btrace_clear_packet_history_cmd): Update.
5631
a1740ee1
PA
56322018-06-07 Pedro Alves <palves@redhat.com>
5633
5634 * target.h (target_ops) <beneath>: Now a method. All references
5635 updated.
5636 (class target_stack): New.
5637 * target.c (g_target_stack): New.
5638 (g_current_top_target): Delete.
5639 (current_top_target): Get the top target out of g_target_stack.
5640 (target_stack::push, target_stack::unpush): New.
5641 (push_target, unpush_target): Reimplement.
5642 (target_is_pushed): Reimplement in terms of g_target_stack.
5643 (target_ops::beneath, target_stack::find_beneath): New.
5644
d6ca69cd
PA
56452018-06-07 Pedro Alves <palves@redhat.com>
5646
5647 * target.h (find_target_beneath): Delete declaration.
5648 * target.c (find_target_beneath): Delete definition.
5649 * aix-thread.c: All callers of find_target_beneath adjusted to
5650 call target_ops::beneath instead.
5651 * bsd-uthread.c: Likewise.
5652 * linux-thread-db.c: Likewise.
5653 * ravenscar-thread.c: Likewise.
5654 * sol-thread.c: Likewise.
5655 * spu-multiarch.c: Likewise.
5656
b6a8c27b
PA
56572018-06-07 Pedro Alves <palves@redhat.com>
5658
5659 * target.h (target_ops) <beneath>: Now a method. All references
5660 updated.
5661 (target_ops) <m_beneath>: New.
5662 * target.c (target_ops::beneath): New.
5663 * corelow.c: Adjust all references to target_ops::beneath.
5664 * linux-thread-db.c: Likewise.
5665 * make-target-delegates: Likewise.
5666 * record-btrace.c: Likewise.
5667 * record-full.c: Likewise.
5668 * remote.c: Likewise.
5669 * target.c: Likewise.
5670 * target-delegates.c: Regenerate.
5671
8b88a78e
PA
56722018-06-07 Pedro Alves <palves@redhat.com>
5673
5674 * target.h (target_stack): Delete.
5675 (current_top_target): Declare function.
5676 * target.c (target_stack): Delete.
5677 (g_current_top_target): New.
5678 (current_top_target): New function.
5679 * auxv.c: Use current_top_target instead of target_stack
5680 throughout.
5681 * avr-tdep.c: Likewise.
5682 * breakpoint.c: Likewise.
5683 * corefile.c: Likewise.
5684 * elfread.c: Likewise.
5685 * eval.c: Likewise.
5686 * exceptions.c: Likewise.
5687 * frame.c: Likewise.
5688 * gdbarch-selftests.c: Likewise.
5689 * gnu-v3-abi.c: Likewise.
5690 * ia64-tdep.c: Likewise.
5691 * ia64-vms-tdep.c: Likewise.
5692 * infcall.c: Likewise.
5693 * infcmd.c: Likewise.
5694 * infrun.c: Likewise.
5695 * linespec.c: Likewise.
5696 * linux-tdep.c: Likewise.
5697 * minsyms.c: Likewise.
5698 * ppc-linux-nat.c: Likewise.
5699 * ppc-linux-tdep.c: Likewise.
5700 * procfs.c: Likewise.
5701 * regcache.c: Likewise.
5702 * remote.c: Likewise.
5703 * rs6000-tdep.c: Likewise.
5704 * s390-linux-nat.c: Likewise.
5705 * s390-tdep.c: Likewise.
5706 * solib-aix.c: Likewise.
5707 * solib-darwin.c: Likewise.
5708 * solib-dsbt.c: Likewise.
5709 * solib-spu.c: Likewise.
5710 * solib-svr4.c: Likewise.
5711 * solib-target.c: Likewise.
5712 * sparc-tdep.c: Likewise.
5713 * sparc64-tdep.c: Likewise.
5714 * spu-tdep.c: Likewise.
5715 * symfile.c: Likewise.
5716 * symtab.c: Likewise.
5717 * target-descriptions.c: Likewise.
5718 * target-memory.c: Likewise.
5719 * target.c: Likewise.
5720 * target.h: Likewise.
5721 * tracefile-tfile.c: Likewise.
5722 * tracepoint.c: Likewise.
5723 * valops.c: Likewise.
5724 * valprint.c: Likewise.
5725 * value.c: Likewise.
5726 * windows-tdep.c: Likewise.
5727 * mi/mi-main.c: Likewise.
5728
c7110220
TT
57292018-06-07 Tom Tromey <tom@tromey.com>
5730
5731 * valprint.h (build_address_symbolic): Declare.
5732 * printcmd.c (print_address_symbolic): Update.
5733 (build_address_symbolic): Change "name" and "filename" to
5734 std::string.
5735 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5736 Update.
5737 * defs.h (build_address_symbolic): Remove declaration.
5738
63bad7b6
AH
57392018-06-07 Alan Hayward <alan.hayward@arm.com>
5740
5741 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5742 (aarch64_vnv_type): Add function.
5743 (aarch64_pseudo_register_name): Add V regs for SVE.
5744 (aarch64_pseudo_register_type): Likewise.
5745 (aarch64_pseudo_register_reggroup_p): Likewise.
5746 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5747 (aarch64_pseudo_read_value): Add V regs for SVE.
5748 (aarch64_pseudo_write_2): Use V0 offset for SVE
5749 (aarch64_pseudo_write): Add V regs for SVE.
5750 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5751
13e3c608
SDJ
57522018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5753
5754 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5755 (sve_vl_from_vq): Likewise.
5756
c61b06a1
TT
57572018-06-05 Tom Tromey <tom@tromey.com>
5758
5759 * cli/cli-cmds.c (show_version): Update.
5760 * top.c (print_gdb_version): Add "interactive" parameter.
5761 Update.
5762 * main.c (captured_main_1): Update.
5763 * top.h (print_gdb_version): Add "interactive" parameter and a
5764 comment.
5765
115f7325
DM
57662018-06-05 David Malcolm <dmalcolm@redhat.com>
5767
5768 * common/enum-flags.h: Add trailing semicolon to example in
5769 comment.
5770
eb6af809
TT
57712018-06-05 Tom Tromey <tom@tromey.com>
5772
5773 PR cli/12326:
5774 * NEWS: Add entry about pager.
5775 * utils.c (pagination_disabled_for_command): New global.
5776 (prompt_for_continue): Allow "c" response to prompt.
5777 (reinitialize_more_filter): Clear
5778 pagination_disabled_for_command.
5779 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5780
54d343a2
TT
57812018-06-04 Tom Tromey <tom@tromey.com>
5782
5783 * ada-lang.h (ada_lookup_symbol_list): Update.
5784 * ada-lang.c (resolve_subexp): Update.
5785 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5786 parameter.
5787 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5788 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5789 results parameter to std::vector.
5790 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5791 Update.
5792 * ada-exp.y (block_lookup): Update.
5793 (select_possible_type_sym): Change type of syms. Remove nsyms
5794 parameter.
5795 (write_var_or_type, write_name_assoc): Update.
5796
178d6a63
JB
57972018-06-04 Joel Brobecker <brobecker@adacore.com>
5798
5799 * windows-nat.c (windows_nat_target::xfer_partial): Return
5800 TARGET_XFER_E_IO if we need to delegate to the target beneath
5801 but BENEATH is NULL.
5802
baf00c2d
SM
58032018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5804
5805 * Makefile.in (config.status): Add configure.nat as a
5806 dependency.
5807
214b073c
TT
58082018-06-04 Tom Tromey <tom@tromey.com>
5809
5810 * cp-name-parser.y (cpname_state): Add method declarations.
5811 (HANDLE_QUAL): Update.
5812 (cpname_state::d_grab, cpname_state::fill_comp)
5813 (cpname_state::make_operator, cpname_state::make_dtor)
5814 (cpname_state::make_builtin_type, cpname_state::make_name)
5815 (cpname_state::d_qualify, cpname_state::d_int_type)
5816 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5817 (%union): Move earlier.
5818
62b74cb8
AH
58192018-06-04 Alan Hayward <alan.hayward@arm.com>
5820
5821 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5822
3c5cd5c3
AH
58232018-06-04 Alan Hayward <alan.hayward@arm.com>
5824
5825 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5826 (aarch64_pseudo_write_1): Likewise.
5827 (aarch64_pseudo_read_value): Use helper.
5828 (aarch64_pseudo_write): Likewise.
5829
59f413d5
PA
58302018-06-04 Pedro Alves <palves@redhat.com>
5831
5832 * darwin-nat.c (darwin_ops): Delete.
5833 (darwin_attach_pid): Use get_native_target.
5834
1332a140
AH
58352018-06-04 Alan Hayward <alan.hayward@arm.com>
5836
5837 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5838 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5839
ba2d2bb2
AH
58402018-06-04 Alan Hayward <alan.hayward@arm.com>
5841
5842 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5843 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5844 (aarch64_gdbarch_init): Check for SVE.
5845 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5846
58472018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
5848
5849 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5850 * aarch64-tdep.h (aarch64_read_description): Likewise.
5851 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5852 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5853 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5854 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5855 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5856
41c60b4b
SM
58572018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5858
5859 * value.c (value_fetch_lazy_bitfield): New.
5860 (value_fetch_lazy_memory): New.
5861 (value_fetch_lazy_register): New.
5862 (value_fetch_lazy): Factor out to smaller functions.
5863
7b640f72
TT
58642018-06-01 Tom Tromey <tom@tromey.com>
5865
5866 * cp-name-parser.y (backslashable, represented): Now const.
5867
98e69eb3
TT
58682018-06-01 Tom Tromey <tom@tromey.com>
5869
5870 * cp-name-parser.y: Include parser-defs.h.
5871 (parser_fprintf): Remove declaration.
5872
49265499
TT
58732018-06-01 Tom Tromey <tom@tromey.com>
5874
5875 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5876 %parse-param.
5877 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5878 (global_result): Remove globals.
5879 (struct cpname_state): New.
5880 (yyparse): Don't declare.
5881 (yylex, yyerror): Move declarations after %union.
5882 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5883 (make_name): Add state parameter.
5884 Update all callers.
5885 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5886 parameter.
5887 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5888 Update.
5889 (yylex): Add lvalp, state parameters.
5890 (yyerror): Add state parameter.
5891 (cp_demangled_name_to_comp): Update.
5892
55b6c984
TT
58932018-06-01 Tom Tromey <tom@tromey.com>
5894
5895 * cp-name-parser.y (parser_fprintf): Declare.
5896 (GDB_YY_REMAP_PREFIX): Define.
5897 Include yy-remap.h. Don't redefine yy* identifiers.
5898
3513a6bb
TT
58992018-06-01 Tom Tromey <tom@tromey.com>
5900
5901 * python/py-type.c (typy_legacy_template_argument): Update.
5902 * cp-support.h (cp_demangled_name_to_comp): Update.
5903 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5904 parameter to be a "std::string *".
5905 (main): Update.
5906
e9cb46ab
L
59072018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5908
5909 * ada-lex.l: Include "diagnostics.h" instead of
5910 "common/diagnostics.h".
5911 * unittests/environ-selftests.c: Likewise.
5912 * common/diagnostics.h: Moved to ../include.
5913
8e817061
JB
59142018-06-01 Joel Brobecker <brobecker@adacore.com>
5915
5916 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5917 to language_mode_manual while calling breakpoint_re_set_one.
5918
a737d952
TT
59192018-06-01 Tom Tromey <tom@tromey.com>
5920
5921 * valops.c (value_cast_structs, destructor_name_p): Update.
5922 * symtab.c (gdb_mangle_name): Update.
5923 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5924 Update.
5925 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5926 (pascal_object_print_value_fields, pascal_object_print_value):
5927 Update.
5928 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5929 * linespec.c (find_methods): Update.
5930 * gdbtypes.h (type_name_no_tag): Remove.
5931 (type_name_or_error): Rename from type_name_no_tag_or_error.
5932 * gdbtypes.c (type_name_no_tag): Remove.
5933 (type_name_or_error): Rename from type_name_no_tag_or_error.
5934 (lookup_struct_elt_type, check_typedef): Update.
5935 * expprint.c (print_subexp_standard): Update.
5936 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5937 * d-namespace.c (d_lookup_nested_symbol): Update.
5938 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5939 (cp_print_class_member): Update.
5940 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5941 * completer.c (add_struct_fields): Update.
5942 * c-typeprint.c (cp_type_print_derivation_info)
5943 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5944 Update.
5945 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5946 (ada_prefer_type, ada_is_exception_sym): Update.
5947
e86ca25f
TT
59482018-06-01 Tom Tromey <tom@tromey.com>
5949
5950 * valops.c (enum_constant_from_type, value_namespace_elt)
5951 (value_maybe_namespace_elt): Update.
5952 * valarith.c (find_size_for_pointer_math): Update.
5953 * target-descriptions.c (make_gdb_type): Update.
5954 * symmisc.c (print_symbol): Update.
5955 * stabsread.c (define_symbol, read_type)
5956 (complain_about_struct_wipeout, add_undefined_type)
5957 (cleanup_undefined_types_1): Update.
5958 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5959 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5960 (rust_internal_print_type, rust_composite_type)
5961 (rust_evaluate_funcall, rust_evaluate_subexp)
5962 (rust_inclusive_range_type_p): Update.
5963 * python/py-type.c (typy_get_tag): Update.
5964 * p-typeprint.c (pascal_type_print_base): Update.
5965 * mdebugread.c (parse_symbol, parse_type): Update.
5966 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5967 Update.
5968 * guile/scm-type.c (gdbscm_type_tag): Update.
5969 * go-lang.c (sixg_string_p): Update.
5970 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5971 Update.
5972 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5973 (TYPE_TAG_NAME): Remove.
5974 * gdbtypes.c (type_name_no_tag): Simplify.
5975 (check_typedef, check_types_equal, recursive_dump_type)
5976 (copy_type_recursive, arch_composite_type): Update.
5977 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5978 in summary mode when needed.
5979 * eval.c (evaluate_funcall): Update.
5980 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5981 (process_structure_scope, read_enumeration_type)
5982 (read_namespace_type, read_module_type, determine_prefix): Update.
5983 * cp-support.c (inspect_type): Update.
5984 * coffread.c (process_coff_symbol, decode_base_type): Update.
5985 * c-varobj.c (c_is_path_expr_parent): Update.
5986 * c-typeprint.c (c_type_print_base_struct_union): Update.
5987 (c_type_print_base_1): Update. Print struct/class/union/enum in
5988 summary when using C language.
5989 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5990 (gen_maybe_namespace_elt): Update.
5991 * ada-lang.c (ada_type_name): Simplify.
5992 (empty_record, ada_template_to_fixed_record_type_1)
5993 (template_to_static_fixed_type)
5994 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5995
c1ec8cea
TT
59962018-06-01 Tom Tromey <tom@tromey.com>
5997
5998 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5999 c_print_type.
6000 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6001 (c_print_type): Update.
6002 (c_print_type): New overload.
6003 (c_type_print_varspec_prefix, c_type_print_args)
6004 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6005 (c_type_print_base_struct_union, c_type_print_base_1)
6006 (cp_type_print_method_args): Add "language" parameter.
6007 (c_type_print_base): Update.
6008 * c-lang.h (c_print_type): Add new overload.
6009
bc8453a7
TT
60102018-06-01 Tom Tromey <tom@tromey.com>
6011
6012 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6013 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6014
739e8682
AH
60152018-06-01 Alan Hayward <alan.hayward@arm.com>
6016
6017 * aarch64-tdep.c (aarch64_sve_register_names): New const
6018 var.
6019 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6020 (AARCH64_SVE_Z_REGS_NUM): New define.
6021 (AARCH64_SVE_P_REGS_NUM): Likewise.
6022 (AARCH64_SVE_NUM_REGS): Likewise.
6023
8a60efe7
UB
60242018-05-31 Uros Bizjak <ubizjak@gmail.com>
6025
6026 * nat/linux-ptrace.h [__alpha__]
6027 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6028 definitions.
6029
4b2dfa9d
MR
60302018-05-31 Maciej W. Rozycki <macro@mips.com>
6031
6032 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6033 the endianness selected.
6034 * NEWS: Document `set endian auto' mode operation update.
6035
122394f1
AH
60362018-05-31 Alan Hayward <alan.hayward@arm.com>
6037
6038 * Makefile.in: Add new header.
6039 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6040 (sve_vl_from_vg): Likewise.
6041 (sve_vq_from_vl): Likewise.
6042 (sve_vl_from_vq): Likewise.
6043 (sve_vq_from_vg): Likewise.
6044 (sve_vg_from_vq): Likewise.
6045 * configure.nat: Add new c file.
6046 * nat/aarch64-sve-linux-ptrace.c: New file.
6047 * nat/aarch64-sve-linux-ptrace.h: New file.
6048
95228a0d
AH
60492018-05-31 Alan Hayward <alan.hayward@arm.com>
6050
6051 * aarch64-linux-nat.c (aarch64_linux_read_description):
6052 Add parmeter zero.
6053 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6054 Likewise.
6055 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6056 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6057 (aarch64_gdbarch_init): Add parmeter zero.
6058 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6059 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6060 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6061 parmeter.
6062 * doc/gdb.texinfo: Describe SVE feature
6063 * features/aarch64-sve.c: New file.
6064
5969f0db
OJ
60652018-05-31 Omair Javaid <omair.javaid@linaro.org>
6066
6067 PR gdb/23210
6068 * gdbarch.sh (significant_addr_bit): Default to zero when
6069 not set by target architecture.
6070 * gdbarch.c: Re-generated.
6071 * utils.c (address_significant): Update.
6072
61367c61
JB
60732018-05-30 Joel Brobecker <brobecker@adacore.com>
6074
6075 * stack.c (func_command): Remove trailing newline in call to error.
6076
34a79281
SM
60772018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6078
6079 * regcache.h (regcache_raw_collect): Remove, update callers to
6080 use regcache::raw_collect.
6081 * regcache.c (regcache_raw_collect): Remove.
6082
73e1c03f
SM
60832018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6084
6085 * regcache.h (regcache_raw_supply): Remove, update callers to
6086 use detached_regcache::raw_supply.
6087 * regcache.c (regcache_raw_supply): Remove.
6088
e4c4a59b
SM
60892018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6090
6091 * regcache.h (regcache_cooked_write_part): Remove, update
6092 callers to use regcache::cooked_write_part.
6093 * regcache.c (regcache_cooked_write_part): Remove.
6094
73bb0000
SM
60952018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6096
6097 * regcache.h (regcache_cooked_read_part): Remove, update callers
6098 to use readable_regcache::cooked_read_part.
6099 * regcache.c (regcache_cooked_read_part): Remove.
6100
46a45e9d
SM
61012018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6102
6103 * regcache.h (regcache_cooked_read_value): Remove, update
6104 callers to use readable_regcache::cooked_read_value.
6105 * regcache.c (regcache_cooked_read_value): Remove.
6106
b66f5587
SM
61072018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6108
6109 * regcache.h (regcache_cooked_write): Remove, update callers to
6110 use regcache::cooked_write.
6111 * regcache.c (regcache_cooked_write): Remove.
6112
6aa7d724
SM
61132018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6114
6115 * regcache.h (regcache_invalidate): Remove, update callers to
6116 use detached_regcache::invalidate instead.
6117 * regcache.c (regcache_invalidate): Remove.
6118
4f0420fd
SM
61192018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6120
6121 * regcache.h (regcache_raw_write_part): Remove, update callers
6122 to use regcache::raw_write_part instead.
6123 * regcache.c (regcache_raw_write_part): Remove.
6124
502fe83e
SM
61252018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6126
6127 * regcache.h (regcache_raw_read_part): Remove, update callers to
6128 use readable_regcache::raw_read_part instead.
6129 * regcache.c (regcache_raw_read_part): Remove.
6130
dca08e1f
SM
61312018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6132
6133 * regcache.h (regcache_cooked_read): Remove, update callers to
6134 use readable_regcache::cooked_read instead.
6135 * regcache.c (regcache_cooked_read): Remove.
6136
10eaee5f
SM
61372018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6138
6139 * regcache.h (regcache_raw_write): Remove, update callers to use
6140 regcache::raw_write instead.
6141 * regcache.c (regcache_raw_write): Remove.
6142
0b883586
SM
61432018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6144
6145 * regcache.h (regcache_raw_read): Remove, update callers to use
6146 readable_regcache::raw_read instead.
6147 * regcache.c (regcache_raw_read): Remove.
6148
0b47d985
SM
61492018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6150
6151 * regcache.h (regcache_raw_update): Remove, update callers to
6152 use readable_regcache::raw_update instead.
6153 * regcache.c (regcache_raw_update): Remove.
6154
0ec9f114
SM
61552018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6156
6157 * regcache.h (regcache_register_status): Remove, update callers
6158 to use reg_buffer::get_register_status directly instead.
6159 * regcache.c (regcache_register_status): Remove.
6160
222312d3
SM
61612018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6162
6163 * regcache.h (regcache_get_ptid): Remove, update all callers to
6164 call regcache::ptid instead.
6165 * regcache.c (regcache_get_ptid): Remove.
6166
fdbe37e3
SM
61672018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6168
6169 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6170
f7c6f423
PA
61712018-05-30 Pedro Alves <palves@redhat.com>
6172
6173 * common/common-exceptions.h (exception_rethrow): Use
6174 ATTRIBUTE_NORETURN.
6175
52941706
SM
61762018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6177
6178 * breakpoint.c (print_solib_event, check_status_catch_solib):
6179 Remove struct keyword in range-based for loops.
6180 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6181 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6182 Likewise.
6183 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6184 Likewise.
6185 * symfile.c (addr_info_make_relative): Likewise.
6186 * thread.c (value_in_thread_stack_temporaries): Likewise.
6187
bf2977b5
WP
61882018-06-12 Weimin Pan <weimin.pan@oracle.com>
6189
6190 PR gdb/16841
6191 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6192 aggregate type to get its real type before accessing it.
6193
64cc34d8
WP
61942018-05-29 Weimin Pan <weimin.pan@oracle.com>
6195
6196 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6197 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6198 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6199 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6200 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6201 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6202 * printcmd.c (info_address_command): Likewise.
6203
e7ec8713
TT
62042018-05-29 Tom Tromey <tom@tromey.com>
6205
6206 * windows-nat.c (handle_exception): Update fall-through comment.
6207
bcb430e4
TT
62082018-05-29 Tom Tromey <tom@tromey.com>
6209
6210 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6211 (struct program_space) <added_solibs>: Now a std::vector.
6212 * breakpoint.c (print_solib_event): Update.
6213 (check_status_catch_solib): Update.
6214 * progspace.c (clear_program_space_solib_cache): Update.
6215 * solib.c (update_solib_list): Update.
6216
894882e3
TT
62172018-05-29 Tom Tromey <tom@tromey.com>
6218
6219 * python/py-type.c (typy_richcompare): Update.
6220 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6221 * gdbtypes.h (types_deeply_equal): Return bool.
6222 (types_equal): Likewise.
6223 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6224 declare VEC.
6225 (check_types_equal): Change worklist to std::vector. Return
6226 bool.
6227 (struct type_equality_entry): Add constructor.
6228 (compare_maybe_null_strings): Return bool.
6229 (check_types_worklist): Return bool. Change worklist to
6230 std::vector.
6231 (types_deeply_equal): Use std::vector.
6232 (types_equal): Return bool.
6233 (compare_maybe_null_strings): Simplify.
6234
10b2ded4
TT
62352018-05-29 Tom Tromey <tom@tromey.com>
6236
6237 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6238
4f7deebe
TT
62392018-05-29 Tom Tromey <tom@tromey.com>
6240
6241 * objc-lang.h: Don't include cp-support.h.
6242 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6243 declare VEC.
6244
b8283aea
TT
62452018-05-27 Tom Tromey <tom@tromey.com>
6246
6247 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6248
41a883c8
TT
62492018-05-25 Tom Tromey <tom@tromey.com>
6250
6251 * value.c (value::location): Initialize.
6252
bf259e25
TT
62532018-05-25 Tom Tromey <tom@tromey.com>
6254
6255 * dbxread.c (init_bincl_list): Remove.
6256 (bincl_list): Now a std::vector.
6257 (bincls_allocated, next_bincl): Remove.
6258 (free_bincl_list, do_free_bincl_list_cleanup)
6259 (make_cleanup_free_bincl_list): Remove.
6260 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6261 unique_xmalloc_ptr.
6262 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6263 (struct header_file_location): Add constructor.
6264 (add_bincl_to_list): Remove.
6265
d525a99b
TT
62662018-05-25 Tom Tromey <tom@tromey.com>
6267
6268 * tui/tui.c (tui_enable): Update.
6269 * mi/mi-interp.c (mi_interp::init): Update.
6270 * interps.h (class interp) <name>: New method.
6271 <m_name>: Rename from name.
6272 (~scoped_restore_interp): Update.
6273 * interps.c (interp::interp): Update.
6274 (interp_add, interp_set, interp_lookup_existing)
6275 (current_interp_named_p): Update.
6276
da505cff
TT
62772018-05-25 Tom Tromey <tom@tromey.com>
6278
6279 * interps.c (interp_name): Remove.
6280 * mi/mi-interp.c (mi_interp::init): Update.
6281 * interps.h (interp_name): Remove.
6282 (~scoped_restore_interp): Update.
6283 * tui/tui.c (tui_enable): Update.
6284
29f94340
TT
62852018-05-25 Tom Tromey <tom@tromey.com>
6286
6287 * utils.c (fputs_maybe_filtered): Update.
6288 * linespec.c (decode_line_full): Update.
6289 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6290 (mi_print_breakpoint_for_event, mi_solib_loaded)
6291 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6292 (mi_user_selected_context_changed): Update.
6293 * mi/mi-main.c (mi_execute_command): Update.
6294 * cli/cli-script.c (execute_control_command): Update.
6295 * python/python.c (execute_gdb_command): Update.
6296 * solib.c (info_sharedlibrary_command): Update.
6297 * interps.c (interp_ui_out): Remove.
6298 * interps.h (interp_ui_out): Remove.
6299
716b8bc5
TT
63002018-05-25 Tom Tromey <tom@tromey.com>
6301
6302 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6303 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6304 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6305
753ff9bd
TT
63062018-05-25 Tom Tromey <tom@tromey.com>
6307
6308 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6309 * interps.c (interp_exec): Use scoped_restore.
6310
5ca3b260
TT
63112018-05-25 Tom Tromey <tom@tromey.com>
6312
6313 * remote.c (remote_target::remote_file_get): Use
6314 gdb::byte_vector.
6315 (remote_target::remote_file_put): Likewise.
6316
3173aa2f
TT
63172018-05-25 Tom Tromey <tom@tromey.com>
6318
6319 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6320 a std::string.
6321 (get_pe_section_index, add_pe_exported_sym): Update.
6322 (read_pe_exported_syms): Use gdb::def_vector.
6323
09a5e1b5
TT
63242018-05-25 Tom Tromey <tom@tromey.com>
6325
6326 * frame.c (remove_prev_frame): Remove.
6327 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6328
d8dab6c3
MR
63292018-05-25 Maciej W. Rozycki <macro@mips.com>
6330
6331 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6332 Remove prototypes.
6333 * mips-linux-nat.c (supply_fpregset): Always call
6334 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6335 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6336 `mips_fill_fpregset'.
6337 * mips-linux-tdep.c (mips_supply_fpregset)
6338 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6339 (mips_fill_fpregset_wrapper): Remove functions.
6340 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6341 (mips_linux_fpregset): Remove variable.
6342 (mips_linux_iterate_over_regset_sections): Use
6343 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6344 (mips_linux_o32_sigframe_init): Remove comment.
6345
3c69da40
PA
63462018-05-25 Pedro Alves <palves@redhat.com>
6347
6348 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6349 (struct readahead_cache, struct packet_reg, struct
6350 remote_arch_state, class remote_state): Move higher up in the
6351 file.
6352 (remote_target::m_remote_state): Now an object instead of a pointer.
6353 (remote_target::get_remote_state): Adjust.
6354
39f0c204
AB
63552018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6356
6357 * stack.c (select_and_print_frame): Delete.
6358 (struct function_bounds): Move struct within function.
6359 (func_command): Most content moved into new function
6360 find_frame_for_function, use new function, print result, add
6361 function comment.
6362 (find_frame_for_function): New function, now returns a result.
6363
d392224a
PW
63642018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6365
6366 * stack.c (iterate_over_block_arg_vars): Fix comment.
6367 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6368
45f25d6c
AB
63692018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6370
6371 PR gdb/23203
6372 * frame.c
6373 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6374 Define.
6375 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6376 Define.
6377 * frame.h (class scoped_restore_selected_frame): New class.
6378 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6379 of any exception, use scoped_restore_selected_frame to restore the
6380 frame instead.
6381
da05d921
PA
63822018-05-24 Pedro Alves <palves@redhat.com>
6383
6384 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6385 override.
6386
a8be540e
TT
63872018-05-23 Tom Tromey <tom@tromey.com>
6388
6389 * complaints.c (struct complaints): Remove.
6390 (symfile_complaint_book): Remove.
6391 (series): New global.
6392 (complaint_internal): Update.
6393 (clear_complaints): Update.
6394
ff1cf532
TT
63952018-05-23 Tom Tromey <tom@tromey.com>
6396
6397 * complaints.c (counters): New global.
6398 (struct complain): Remove.
6399 (struct complaints) <root>: Remove.
6400 (complaint_sentinel): Remove.
6401 (symfile_complaint_book): Update.
6402 (find_complaint) Remove.
6403 (complaint_internal, clear_complaints): Update.
6404
7ff88174
TT
64052018-05-23 Tom Tromey <tom@tromey.com>
6406
6407 * complaints.c (struct complain) <file, line>: Remove.
6408 (find_complaint): Remove file, line parameters.
6409 (complaint_internal): Update.
6410
de54e1a5
TT
64112018-05-23 Tom Tromey <tom@tromey.com>
6412
6413 * complaints.c (vcomplaint): Remove.
6414 (complaint_internal) Merge in contents of vcomplaint.
6415
2ac237e5
TT
64162018-05-23 Tom Tromey <tom@tromey.com>
6417
6418 * complaints.c (struct complaints) <explanation>: Remove.
6419 (symfile_explanations): Remove.
6420 (symfile_complaint_book): Update.
6421 (vcomplaint): Update.
6422 (struct explanation): Remove.
6423
b98664d3
TT
64242018-05-23 Tom Tromey <tom@tromey.com>
6425
6426 * complaints.c (symfile_complaints): Remove.
6427 (complaint_internal): Remove "complaints" parameter.
6428 (clear_complaints, vcomplaint): Remove "c" parameter.
6429 (get_complaints): Remove.
6430 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6431 (dwarf2_debug_line_missing_file_complaint)
6432 (dwarf2_debug_line_missing_end_sequence_complaint)
6433 (dwarf2_complex_location_expr_complaint)
6434 (dwarf2_const_value_length_mismatch_complaint)
6435 (dwarf2_section_buffer_overflow_complaint)
6436 (dwarf2_macro_malformed_definition_complaint)
6437 (dwarf2_invalid_attrib_class_complaint)
6438 (create_addrmap_from_index, dw2_symtab_iter_next)
6439 (dw2_expand_marked_cus)
6440 (dw2_debug_names_iterator::find_vec_in_debug_names)
6441 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6442 (create_debug_type_hash_table, init_cutu_and_read_dies)
6443 (partial_die_parent_scope, add_partial_enumeration)
6444 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6445 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6446 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6447 (create_cus_hash_table, create_dwp_hash_table)
6448 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6449 (dwarf2_rnglists_process, dwarf2_ranges_process)
6450 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6451 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6452 (handle_struct_member_die, process_structure_scope)
6453 (read_array_type, read_common_block, read_module_type)
6454 (read_tag_pointer_type, read_typedef, read_base_type)
6455 (read_subrange_type, load_partial_dies, partial_die_info::read)
6456 (partial_die_info::read, partial_die_info::read)
6457 (partial_die_info::read, read_checked_initial_length_and_offset)
6458 (dwarf2_string_attr, read_formatted_entries)
6459 (dwarf_decode_line_header)
6460 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6461 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6462 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6463 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6464 (get_signatured_type, get_DW_AT_signature_type)
6465 (decode_locdesc, file_file_name, consume_improper_spaces)
6466 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6467 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6468 (dwarf2_symbol_mark_computed, set_die_type)
6469 (read_attribute_value): Update.
6470 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6471 Update.
6472 * dbxread.c (unknown_symtype_complaint)
6473 (lbrac_mismatch_complaint, repeated_header_complaint)
6474 (set_namestring, function_outside_compilation_unit_complaint)
6475 (read_dbx_symtab, process_one_symbol): Update.
6476 * gdbtypes.c (stub_noname_complaint): Update.
6477 * windows-nat.c (handle_unload_dll): Update.
6478 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6479 (decode_base_type): Update.
6480 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6481 (eb_complaint, record_include_begin, record_include_end)
6482 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6483 (process_xcoff_symbol, read_symbol)
6484 (function_outside_compilation_unit_complaint)
6485 (scan_xcoff_symtab): Update.
6486 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6487 * buildsym.c (finish_block_internal, make_blockvector)
6488 (end_symtab_get_static_block, augment_type_symtab): Update.
6489 * dtrace-probe.c (dtrace_process_dof)
6490 (dtrace_static_probe_ops::get_probes): Update.
6491 * complaints.h (struct complaint): Don't declare.
6492 (symfile_complaints): Remove.
6493 (complaint_internal): Remove "complaints" parameter.
6494 (complaint): Likewise.
6495 (clear_complaints): Likewise.
6496 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6497 (reread_symbols): Update.
6498 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6499 (dwarf2_frame_cache, decode_frame_entry): Update.
6500 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6501 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6502 (info_selectors_command): Update.
6503 * macrotab.c (macro_include, check_for_redefinition)
6504 (macro_undef): Update.
6505 * objfiles.c (filter_overlapping_sections): Update.
6506 * stabsread.c (invalid_cpp_abbrev_complaint)
6507 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6508 (define_symbol, error_type, read_type, rs6000_builtin_type)
6509 (stabs_method_name_from_physname, read_member_functions)
6510 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6511 (attach_fields_to_type, complain_about_struct_wipeout)
6512 (read_range_type, read_args, common_block_start)
6513 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6514 Update.
6515 * mdebugread.c (index_complaint, unknown_ext_complaint)
6516 (basic_type_complaint, bad_tag_guess_complaint)
6517 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6518 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6519 (parse_procedure, parse_lines)
6520 (function_outside_compilation_unit_complaint)
6521 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6522 (bad_tag_guess_complaint, reg_value_complaint): Update.
6523 * cp-support.c (demangled_name_complaint): Update.
6524 * macroscope.c (sal_macro_scope): Update.
6525 * dwarf-index-write.c (class debug_names): Update.
6526
4e9668d0
TT
65272018-05-23 Tom Tromey <tom@tromey.com>
6528
6529 * complaints.c (clear_complaints): Remove "noisy" parameter.
6530 * complaints.h (clear_complaints): Update.
6531 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6532 (reread_symbols): Update.
6533
43ba33c7
TT
65342018-05-23 Tom Tromey <tom@tromey.com>
6535
6536 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6537 SUBSEQUENT_MESSAGE.
6538 (vcomplaint, clear_complaints): Update.
6539 (symfile_explanations): Remove some messages.
6540
2b9496b2
TT
65412018-05-23 Tom Tromey <tom@tromey.com>
6542
6543 * complaints.c (internal_complaint): Remove.
6544 * complaints.h (internal_complaint): Remove.
6545
35f1fea3
MR
65462018-05-22 Maciej W. Rozycki <macro@mips.com>
6547
6548 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6549
6b8edb51
PA
65502018-05-22 Pedro Alves <palves@redhat.com>
6551
6552 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6553 (remote_fileio_badfd, remote_fileio_return_errno)
6554 (remote_fileio_return_success, remote_fileio_func_open)
6555 (remote_fileio_func_open, remote_fileio_func_close)
6556 (remote_fileio_func_read, remote_fileio_func_write)
6557 (remote_fileio_func_lseek, remote_fileio_func_rename)
6558 (remote_fileio_func_unlink, remote_fileio_func_stat)
6559 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6560 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6561 remote_target parameter.
6562 (remote_fio_func_map) <func>: Add remote_target parameter.
6563 (do_remote_fileio_request, remote_fileio_request):
6564 * remote-fileio.h (remote_fileio_request):
6565 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6566 remote_target parameter.
6567 (remote_notif_process, handle_notification): Adjust to pass down
6568 the remote.
6569 (remote_notif_state_allocate): Add remote_target parameter. Save
6570 it.
6571 * remote-notif.h (struct remote_target): Forward declare.
6572 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6573 remote_target parameter.
6574 (struct remote_notif_state) <remote>: New field.
6575 (remote_notif_ack, remote_notif_parse): Add remote_target
6576 parameter.
6577 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6578 remote_target parameter.
6579 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6580 (threads_listing_context, rmt_thread_action, protocol_feature)
6581 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6582 (packet_result, struct threads_listing_context, remote_state):
6583 Move definitions and declarations higher up.
6584 (remote_target) <~remote_target>: Declare.
6585 (remote_download_command_source, remote_file_put, remote_file_get)
6586 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6587 (remote_hostio_pread_vFile, remote_hostio_send_command)
6588 (remote_hostio_set_filesystem, remote_hostio_open)
6589 (remote_hostio_close, remote_hostio_unlink, remote_state)
6590 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6591 (get_memory_write_packet_size, get_memory_read_packet_size)
6592 (append_pending_thread_resumptions, remote_detach_1)
6593 (append_resumption, remote_resume_with_vcont)
6594 (add_current_inferior_and_thread, wait_ns, wait_as)
6595 (process_stop_reply, remote_notice_new_inferior)
6596 (process_initial_stop_replies, remote_add_thread)
6597 (btrace_sync_conf, remote_btrace_maybe_reopen)
6598 (remove_new_fork_children, kill_new_fork_children)
6599 (discard_pending_stop_replies, stop_reply_queue_length)
6600 (check_pending_events_prevent_wildcard_vcont)
6601 (discard_pending_stop_replies_in_queue, stop_reply)
6602 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6603 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6604 (remote_interrupt_as, remote_interrupt_ns)
6605 (remote_get_noisy_reply, remote_query_attached)
6606 (remote_add_inferior, remote_current_thread, get_current_thread)
6607 (set_thread, set_general_thread, set_continue_thread)
6608 (set_general_process, write_ptid)
6609 (remote_unpack_thread_info_response, remote_get_threadinfo)
6610 (parse_threadlist_response, remote_get_threadlist)
6611 (remote_threadlist_iterator, remote_get_threads_with_ql)
6612 (remote_get_threads_with_qxfer)
6613 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6614 (get_offsets, remote_check_symbols, remote_supported_packet)
6615 (remote_query_supported, remote_packet_size)
6616 (remote_serial_quit_handler, remote_detach_pid)
6617 (remote_vcont_probe, remote_resume_with_hc)
6618 (send_interrupt_sequence, interrupt_query)
6619 (remote_notif_get_pending_events, fetch_register_using_p)
6620 (send_g_packet, process_g_packet, fetch_registers_using_g)
6621 (store_register_using_P, store_registers_using_G)
6622 (set_remote_traceframe, check_binary_download)
6623 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6624 (remote_xfer_live_readonly_partial, remote_read_bytes)
6625 (remote_send_printf, remote_flash_write, readchar)
6626 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6627 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6628 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6629 (extended_remote_disable_randomization, extended_remote_run)
6630 (send_environment_packet, extended_remote_environment_support)
6631 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6632 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6633 (packet_command): Now methods of ...
6634 (remote_target): ... this class.
6635 (m_remote_state) <remote_target>: New field.
6636 (struct remote_state) <stop_reply_queue,
6637 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6638 fields.
6639 (remote_state::remote_state): Allocate stop_reply_queue.
6640 (remote_state): Delete global.
6641 (get_remote_state_raw): Delete.
6642 (remote_target::get_remote_state): Allocate m_remote_state on
6643 demand.
6644 (get_current_remote_target): New.
6645 (remote_ops, extended_remote_ops): Delete.
6646 (wait_forever_enabled_p, remote_async_inferior_event_token):
6647 Delete, moved to struct remote_state.
6648 (remote_target::close): Delete self. Destruction bits split to
6649 ...
6650 (remote_target::~remote_target): ... this.
6651 (show_memory_packet_size): Adjust to use
6652 get_current_remote_target.
6653 (struct protocol_feature) <func>: Add remote_target parameter.
6654 All callers adjusted.
6655 (curr_quit_handler_target): New.
6656 (remote_serial_quit_handler): Reimplement.
6657 (remote_target::open_1): Adjust to use get_current_remote_target.
6658 Heap-allocate remote_target/extended_remote_target instances.
6659 (vcont_builder::vcont_builder): Add remote_target parameter, and
6660 save it in m_remote. All callers adjusted.
6661 (vcont_builder::m_remote): New field.
6662 (vcont_builder::restart, vcont_builder::flush)
6663 (vcont_builder::push_action): Use it.
6664 (remote_target::commit_resume): Use it.
6665 (struct queue_iter_param) <remote>: New field.
6666 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6667 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6668 (check_pending_event_prevents_wildcard_vcont_callback)
6669 (remote_target::check_pending_events_prevent_wildcard_vcont)
6670 (remote_target::discard_pending_stop_replies)
6671 (remote_target::discard_pending_stop_replies_in_queue)
6672 (remote_target::remote_notif_remove_queued_reply): Fill in
6673 'remote' field.
6674 (remote_notif_get_pending_events): New.
6675 (remote_target::readchar, remote_target::remote_serial_write):
6676 Save/restore curr_quit_handler_target.
6677 (putpkt): New.
6678 (kill_new_fork_children): Fill in 'remote' field.
6679 (packet_command): Use get_current_remote_target, defer to
6680 remote_target method of same name.
6681 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6682 parameter, and save it in m_remote. All callers adjusted.
6683 (scoped_remote_fd::release): Use m_remote.
6684 (scoped_remote_fd::m_remote): New field.
6685 (remote_file_put, remote_file_get, remote_file_delete): Use
6686 get_current_remote_target, defer to remote_target method of same
6687 name.
6688 (remote_btrace_reset): Add remote_state paremeter. Update all
6689 callers.
6690 (remote_async_inferior_event_handler). Pass down 'data'.
6691 (remote_new_objfile): Use get_current_remote_target.
6692 (remote_target::vcont_r_supported): New.
6693 (set_range_stepping): Use get_current_remote_target and
6694 remote_target::vcont_r_supported.
6695 (_initialize_remote): Don't allocate 'remote_state' and
6696 'stop_reply_queue' globals.
6697 * remote.h (struct remote_target): Forward declare.
6698 (getpkt, putpkt, remote_notif_get_pending_events): Add
6699 'remote_target' parameter.
6700
f5db4863
PA
67012018-05-22 Pedro Alves <palves@redhat.com>
6702
6703 * remote.c (vcont_builder): Now a class. Make all data members
6704 private.
6705 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6706 Declare methods.
6707 (vcont_builder_restart): Rename to ...
6708 (vcont_builder::restart): ... this.
6709 (vcont_builder_flush): Rename to ...
6710 (vcont_builder::flush): ... this.
6711 (vcont_builder_push_action): Rename to ...
6712 (vcont_builder::push_action): ... this.
6713 (remote_target::commit_resume): Adjust.
6714
cc0be08f
PA
67152018-05-22 Pedro Alves <palves@redhat.com>
6716
6717 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6718 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6719 (get_fixed_memory_packet_size): New.
6720 (get_memory_packet_size): Use it.
6721 (set_memory_packet_size): Don't override the config size with
6722 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6723 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6724 Don't refer to get_memory_packet_size if not connected to a remote
6725 target. Show "(default)" if configured size is 0.
6726
9607784a
PA
67272018-05-22 Pedro Alves <palves@redhat.com>
6728
6729 * remote.c (remote_target::mourn_inferior): Move
6730 discard_pending_stop_replies call here from ...
6731 (_initialize_remote): ... here.
6732
0e9a6b2f
PA
67332018-05-22 Pedro Alves <palves@redhat.com>
6734
6735 * remote.c (compare_section_command): Remove set_general_process
6736 call.
6737
43c3a0e4
PA
67382018-05-22 Pedro Alves <palves@redhat.com>
6739
6740 * remote.c (struct packet_reg, struct remote_arch_state):
6741 Move higher up in the file.
6742 (remote_state) <m_arch_states>: Store remote_arch_state values
6743 instead of remote_arch_state pointers.
6744 (remote_state::get_remote_arch_state): Adjust.
6745
9d6eea31
PA
67462018-05-22 Pedro Alves <palves@redhat.com>
6747
6748 * remote.c: Include <unordered_map>.
6749 (remote_state): Now a class.
6750 (remote_state) <get_remote_arch_state>: Declare method.
6751 <get_remote_arch_state>: New field.
6752 (remote_arch_state) <remote_arch_state>: Declare ctor.
6753 <regs>: Now a unique_ptr.
6754 (remote_gdbarch_data_handle): Delete.
6755 (get_remote_arch_state): Delete.
6756 (remote_state::get_remote_arch_state): New.
6757 (get_remote_state): Adjust to call remote_state's
6758 get_remote_arch_state method.
6759 (init_remote_state): Delete, bits factored out to ...
6760 (remote_arch_state::remote_arch_state): ... this new method.
6761 (get_remote_packet_size, get_memory_packet_size)
6762 (process_g_packet, remote_target::fetch_registers)
6763 (remote_target::prepare_to_store, store_registers_using_G)
6764 (remote_target::store_registers, remote_target::get_trace_status):
6765 Adjust to call remote_state's method.
6766 (_initialize_remote): Remove reference to
6767 remote_gdbarch_data_handle.
6768
dd194f6b
PA
67692018-05-22 Pedro Alves <palves@redhat.com>
6770
6771 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6772 pread>: New method declarations.
6773 (remote_target::open_1): Adjust.
6774 (readahead_cache_invalidate): Rename to ...
6775 (readahead_cache::invalidate): ... this, and adjust to be a class
6776 method.
6777 (readahead_cache_invalidate_fd): Rename to ...
6778 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6779 class method.
6780 (remote_hostio_pwrite): Adjust.
6781 (remote_hostio_pread_from_cache): Rename to ...
6782 (readahead_cache::pread): ... this, and adjust to be a class
6783 method.
6784 (remote_hostio_close): Adjust.
6785
440b7aec
PA
67862018-05-22 Pedro Alves <palves@redhat.com>
6787
6788 * remote.c (remote_hostio_close_cleanup): Delete.
6789 (class scoped_remote_fd): New.
6790 (remote_file_put, remote_file_get): Use it.
6791
de44f5a7
PA
67922018-05-22 Pedro Alves <palves@redhat.com>
6793
6794 (struct vCont_action_support): Use bool and initialize all fields.
6795 (struct readahead_cache): Initialize all fields.
6796 (remote_state): Use bool and initialize all fields.
6797 (remote_state::remote_state, remote_state::~remote_state): New.
6798 (new_remote_state): Delete.
6799 (_initialize_remote): Use new to allocate remote_state.
6800
b1b60145
PA
68012018-05-22 Pedro Alves <palves@redhat.com>
6802 張俊芝 <zjz@zjz.name>
6803
6804 PR gdb/22973
6805 * c-exp.y: Include "c-support.h".
6806 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6807 of tolower. Use c_ident_is_alpha to scan names.
6808 * c-lang.c: Include "c-support.h".
6809 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6810 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6811 * c-support.h: New file, with bits factored out from ...
6812 * cp-name-parser.y: ... this file.
6813 Include "c-support.h".
6814 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6815 c-support.h and renamed.
6816 (symbol_end, yylex): Adjust.
6817
0ec848ad
PFC
68182018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6819
6820 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6821 parameter type to CORE_ADDR.
6822 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6823 parameter type in declaration to CORE_ADDR.
6824 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6825 target_auxv_search to get AT_HWCAP and use the result to get the
6826 target description.
6827 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6828 to CORE_ADDR. Remove the cast of the return value to unsigned
6829 long. Fix error predicate of target_auxv_search.
6830 (ppc_linux_nat_target::read_description): Change the type of the
6831 hwcap variable to CORE_ADDR.
6832
0fb2aaa1
PFC
68332018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6834
6835 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6836 if the size of fpscr is larger than 32 bits.
6837
2c3305f6
PFC
68382018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6839
6840 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6841 (ppc32_linux_vsxregmap): New global.
6842 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6843 regcache_supply_regset, and regcache_collect_regset.
6844 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6845 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6846 (fetch_vsx_register, store_vsx_register): Remove.
6847 (fetch_vsx_registers): Add regno parameter. Get regset using
6848 ppc_linux_vsxregset. Use regset to supply registers.
6849 (store_vsx_registers): Add regno parameter. Get regset using
6850 ppc_linux_vsxregset. Use regset to collect registers.
6851 (fetch_register): Call fetch_vsx_registers instead of
6852 fetch_vsx_register.
6853 (store_register): Call store_vsx_registers instead of
6854 store_vsx_register.
6855 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6856 new regno parameter.
6857 (store_ppc_registers): Call store_vsx_registers with -1 for the
6858 new regno parameter.
6859 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6860 (ppc_collect_vsxregset): Remove.
6861
1d75a658
PFC
68622018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6863
6864 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6865 offset fields.
6866 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6867 for vector register offset fields.
6868 (ppc64_fbsd_reg_offsets): Likewise.
6869 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6870 to vector register offset fields.
6871 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6872 to vector register offset fields.
6873 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6874 vector register offset fields.
6875 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6876 initializers for vector register offset fields.
6877 (rs6000_aix64_reg_offsets): Likewise.
6878 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6879 (ppc_supply_vrregset): Remove.
6880 (ppc_collect_vrregset): Remove.
6881 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6882 (ppc_linux_vrregset) : New function.
6883 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6884 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6885 (ppc32_linux_vrregset): Remove.
6886 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6887 and use result instead of ppc32_linux_vrregset.
6888 (ppc32_linux_reg_offsets): Remove initializers for vector register
6889 offset fields.
6890 (ppc64_linux_reg_offsets): Likewise.
6891 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6892 * ppc-linux-nat.c: Include regset.h.
6893 (gdb_vrregset_t): Adjust comment to account for little-endian
6894 mode.
6895 (supply_vrregset, fill_vrregset): Remove.
6896 (fetch_altivec_register, store_altivec_register): Remove.
6897 (fetch_altivec_registers): Add regno parameter. Get regset using
6898 ppc_linux_vrregset. Use regset to supply registers.
6899 (store_altivec_registers): Add regno parameter. Get regset using
6900 ppc_linux_vrregset. Use regset to collect registers.
6901 (fetch_register): Call fetch_altivec_registers instead of
6902 fetch_altivec_register.
6903 (store_register): Call store_altivec_registers instead of
6904 store_altivec_register.
6905 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6906 the new regno parameter.
6907 (store_ppc_registers): Call store_altivec_registers with -1 for
6908 the new regno parameter.
6909
d078308a
PFC
69102018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6911
6912 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6913 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6914 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6915 (gdb_vrregset_t): Change array type size to
6916 PPC_LINUX_SIZEOF_VRREGSET.
6917 (gdb_vsxregset_t): Change array type size to
6918 PPC_LINUX_SIZEOF_VSXREGSET.
6919 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6920 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6921 PPC_LINUX_SIZEOF_VSXREGSET.
6922
2e077f5e
PFC
69232018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6924
6925 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6926 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6927 nat/ppc-linux.c.
6928 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6929 ppc_linux_target_wordsize with tid.
6930 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6931 wordsize with tid.
6932 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6933 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6934 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6935 tid parameter. Remove static specifier.
6936 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6937 (ppc_linux_target_wordsize): New declaration.
6938
bd64614e
PFC
69392018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6940
6941 * arch/ppc-linux-common.c: New file.
6942 * arch/ppc-linux-common.h: New file.
6943 * arch/ppc-linux-tdesc.h: New file.
6944 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6945 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6946 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6947 arch/ppc-linux-tdesc.h.
6948 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6949 arch/ppc-linux-tdesc.h.
6950 (ppc_linux_nat_target::read_description): Remove target
6951 description matching code. Fill a ppc_linux_features struct and
6952 call ppc_linux_match_description with it. Move comment about ISA
6953 2.05 to ppc-linux-common.c.
6954 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6955 arch/ppc-linux-tdesc.h.
6956 (ppc_linux_core_read_description): Remove target description
6957 matching code. Fill a ppc_linux_features struct and call
6958 ppc_linux_match_description with it.
6959 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6960 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6961 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6962 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6963 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6964 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6965 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6966 (tdesc_powerpc_e500l): Remove.
6967
241db429
JB
69682018-05-22 Joel Brobecker <brobecker@adacore.com>
6969
6970 * ada-lang.c (catch_assert_command): Pass empty string instead
6971 of NULL for excep_string argument.
6972
75d74cca
MR
69732018-05-22 Maciej W. Rozycki <macro@mips.com>
6974
6975 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6976 the width of the requested register exceeds the width of the
6977 `ptrace' data type.
6978
122b53ea
TT
69792018-05-21 Tom Tromey <tom@tromey.com>
6980
6981 * printcmd.c (output_command): Remove.
6982 (output_command_const): Rename to output_command.
6983 * valprint.h (output_command): Rename from output_command_const.
6984 * tracepoint.c (trace_dump_actions): Call output_command.
6985
bc18fbb5
TT
69862018-05-21 Tom Tromey <tom@tromey.com>
6987
6988 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6989 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6990 * ada-lang.h (create_ada_exception_catchpoint): Update.
6991 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6992 std::string.
6993 (create_excep_cond_exprs, ~ada_catchpoint)
6994 (should_stop_exception, print_one_exception)
6995 (print_mention_exception, print_recreate_exception): Update.
6996 (ada_get_next_arg): Remove.
6997 (catch_ada_exception_command_split): Use std::string. Change type
6998 of "excep_string", "cond_string".
6999 (catch_ada_exception_command): Update.
7000 (create_ada_exception_catchpoint): Change type of excep_string.
7001 (ada_exception_sal): Remove excep_string parameter.
7002 (~ada_catchpoint): Remove.
7003
790217f6
TT
70042018-05-21 Tom Tromey <tom@tromey.com>
7005
7006 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7007 cleanup.
7008
6f46ac85
TT
70092018-05-21 Tom Tromey <tom@tromey.com>
7010
7011 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7012 Return unique_xmalloc_ptr.
7013 (print_it_exception): Update.
7014
15b6611c
TT
70152018-05-21 Tom Tromey <tom@tromey.com>
7016
7017 * tracepoint.c (trace_dump_actions): Use std::string.
7018
c0c9f665
TT
70192018-05-21 Tom Tromey <tom@tromey.com>
7020
7021 * symfile.c (reread_symbols): Use std::string for original_name.
7022
22ca247e
TT
70232018-05-21 Tom Tromey <tom@tromey.com>
7024
7025 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7026 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7027 constructor.
7028
184cde75
SM
70292018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7030
7031 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7032 instance to...
7033 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7034 * objfiles.c (get_objfile_bfd_data): Allocate
7035 objfile_per_bfd_storage with obstack_new when allocating on
7036 obstack.
7037
e39db4db
SM
70382018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7039
7040 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7041 OBSTACK_ZALLOC.
7042 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7043 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7044 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7045 (add_pending): Likewise.
7046 (parse_symbol): Likewise.
7047 (parse_partial_symbols): Likewise.
7048 (psymtab_to_symtab_1): Likewise.
7049 (new_psymtab): Likewise.
7050 (elfmdebug_build_psymtabs): Likewise.
7051 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7052 * objfiles.c (get_objfile_bfd_data): Likewise.
7053 (objfile_register_static_link): Likewise.
7054 * psymtab.c (allocate_psymtab): Likewise.
7055 * stabsread.c (read_member_functions): Likewise.
7056 * xcoffread.c (xcoff_end_psymtab): Likewise.
7057
284a0e3c
SM
70582018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7059
7060 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7061 compiler supports std::is_trivially_constructible.
7062 * common/poison.h: Include obstack.h.
7063 (IsMallocable): Define to is_trivially_constructible if the
7064 compiler supports it, define to true_type otherwise.
7065 (xobnew): New.
7066 (XOBNEW): Redefine.
7067 (xobnewvec): New.
7068 (XOBNEWVEC): Redefine.
7069 * gdb_obstack.h (obstack_zalloc): New.
7070 (OBSTACK_ZALLOC): Redefine.
7071 (obstack_calloc): New.
7072 (OBSTACK_CALLOC): Redefine.
7073 (obstack_new): New.
7074 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7075 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7076 gdbarch.c.
7077 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7078 obstack_calloc/obstack_zalloc.
7079 (gdbarch_obstack_zalloc): Remove.
7080 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7081
59f66be3
PW
70822018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7083
7084 * stack.c (backtrace_command_1): Remove useless variable int i.
7085
50c65c2d
PW
70862018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7087
7088 * stack.c (print_frame_info): Fix comment.
7089
7ff8cb8c
TT
70902018-05-18 Tom Tromey <tom@tromey.com>
7091
7092 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7093 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7094 (~dwarf2_per_objfile): Update
7095 (dwarf2_get_dwz_file): Use new.
7096 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7097 unique_ptr.
7098
400174b1
TT
70992018-05-18 Tom Tromey <tom@tromey.com>
7100
7101 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7102 unique_ptr.
7103 * dwarf2read.c (struct dwp_file): Add constructor and
7104 initializers.
7105 (open_and_init_dwp_file): Return a unique_ptr.
7106 (dwarf2_per_objfile, create_dwp_hash_table)
7107 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7108 (lookup_dwo_unit_in_dwp): Update.
7109 (open_and_init_dwp_file, get_dwp_file): Update.
7110
3063847f
TT
71112018-05-18 Tom Tromey <tom@tromey.com>
7112
7113 * dwarf2read.c (dwarf2_per_objfile): Update.
7114 (struct mapped_index): Add initializers.
7115 (dwarf2_read_index): Use new.
7116 (dw2_symtab_iter_init): Update.
7117 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7118 unique_ptr.
7119
d3d02dee
SM
71202018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7121
7122 * dwarf2read.c (mapped_index) <total_size>: Remove.
7123
1d143c36
SM
71242018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7125
7126 * unittests/format_pieces-selftests.c (test_format_specifier):
7127 Add ARI comments.
7128
ce1e8424
TT
71292018-05-18 Tom Tromey <tom@tromey.com>
7130
7131 * c-typeprint.c (maybe_print_hole): New function.
7132 (c_print_type_struct_field_offset): Update.
7133 (c_type_print_base_struct_union): Call maybe_print_hole.
7134
ddfe970e
KS
71352018-05-17 Keith Seitz <keiths@redhat.com>
7136
7137 * breakpoint.c (build_bpstat_chain): New function, moved from
7138 bpstat_stop_status.
7139 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7140 If no stop chain is passed, call build_bpstat_chain to build it.
7141 * breakpoint.h (build_bpstat_chain): Declare.
7142 (bpstat_stop_status): Move documentation here from breakpoint.c.
7143 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7144 build the stop chain and pass it to skip_inline_frames.
7145 Pass this stop chain to bpstat_stop_status.
7146 * inline-frame.c: Include breakpoint.h.
7147 (stopped_by_user_bp_inline_frame): New function.
7148 (skip_inline_frames): Add parameter `stop_chain'.
7149 Move documention to inline-frame.h.
7150 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7151 whether the frame should be elided.
7152 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7153 Add moved documentation and update for new parameter.
7154
b17992c1
SM
71552018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7156
7157 PR cli/14975
7158 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7159 unittests/format_pieces-selftests.c.
7160 * common/format.h (format_piece) <operator==>: New.
7161 (format_pieces) <operator[]>: Remove.
7162 * common/format.c (format_pieces::format_pieces): Handle \e.
7163 * unittests/format_pieces-selftests.c: New.
7164
58f0c718
TT
71652018-05-17 Tom Tromey <tom@tromey.com>
7166
7167 PR symtab/23010:
7168 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7169 (dw2_instantiate_symtab): Add skip_partial parameter.
7170 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7171 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7172 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7173 (dw2_expand_symtabs_matching_one)
7174 (dw2_find_pc_sect_compunit_symtab)
7175 (dw2_debug_names_lookup_symbol)
7176 (dw2_debug_names_expand_symtabs_for_function): Update.
7177 (init_cutu_and_read_dies): Add skip_partial parameter.
7178 (process_psymtab_comp_unit, build_type_psymtabs_1)
7179 (process_skeletonless_type_unit, load_partial_comp_unit)
7180 (psymtab_to_symtab_1): Update.
7181 (load_full_comp_unit): Add skip_partial parameter.
7182 (process_imported_unit_die, dwarf2_read_addr_index)
7183 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7184 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7185 (read_signatured_type): Update.
7186
3e618834
SM
71872018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7188
7189 * value.c (release_value): Remove unused variable.
7190 (record_latest_value): Likewise.
7191 (access_value_history): Likewise.
7192 (preserve_values): Likewise.
7193
fe10fe31
TT
71942018-05-17 Tom Tromey <tom@tromey.com>
7195
7196 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7197 Initialize.
7198
1d761124
MR
71992018-05-16 Maciej W. Rozycki <macro@mips.com>
7200
7201 PR gdb/22286
7202 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7203 Also handle registers whose width is not a multiple of
7204 PTRACE_TYPE_RET.
7205 (linux_nat_trad_target::store_register): Likewise.
7206
06333fea
TT
72072018-05-16 Tom Tromey <tom@tromey.com>
7208
7209 * gdbcore.h (core_bfd): Redefine.
7210 * corelow.c (core_target::close): Update.
7211 (core_target_open): Update.
7212 * progspace.h (struct program_space) <cbfd>: Now a
7213 gdb_bfd_ref_ptr.
7214
921222e2
TT
72152018-05-16 Tom Tromey <tom@tromey.com>
7216
7217 PR cli/19551:
7218 * symfile-add-flags.h (enum symfile_add_flags)
7219 <SYMFILE_NOT_FILENAME>: New constant.
7220 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7221 objfile name from BFD.
7222 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7223 * minidebug.c (find_separate_debug_file_in_section): Put
7224 ".gnu_debugdata" into BFD's file name.
7225
3acb7083
SM
72262018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7227
7228 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7229 Remove.
7230
561a72d4
TC
72312018-05-15 Tamar Christina <tamar.christina@arm.com>
7232
7233 PR binutils/21446
7234 * aarch64-tdep.c (aarch64_analyze_prologue,
7235 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7236 Indicate not interested in errors.
7237
4e6ff0e1
MR
72382018-05-15 Maciej W. Rozycki <macro@mips.com>
7239
7240 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7241 Supply the MIPS_ZERO_REGNUM register.
7242
ea33cd92
MR
72432018-05-15 Maciej W. Rozycki <macro@mips.com>
7244
7245 * mips-tdep.c (mask_address_var): Make variable static.
7246
2d79090e
TT
72472018-05-14 Tom Tromey <tom@tromey.com>
7248
7249 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7250
cf4912ae
AB
72512018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7252
7253 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7254 FXSAVE_ADDR for the mxcsr register.
7255
67e6f569
MF
72562018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7257
7258 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7259
15244507
PA
72602018-05-11 Pedro Alves <palves@redhat.com>
7261
7262 * corelow.c (core_target) <core_target>: No longer inline.
7263 Initialize m_core_gdbarch, m_core_vec and build the section table
7264 here.
7265 <~core_target>: New.
7266 <core_gdbarch, get_core_register_section>: New methods.
7267 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7268 factored out from ...
7269 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7270 (core_ops): Delete.
7271 (sniff_core_bfd): Add gdbarch parameter.
7272 (core_close): Delete, merged into ...
7273 (core_target::close): ... here. Delete self.
7274 (core_close_cleanup): Delete.
7275 (core_target_open): Allocate a core_target on the heap. Use a
7276 unique_ptr instead of a cleanup. Bits moved into the core_target
7277 ctor. Adjust to use core_target methods instead of globals.
7278 (get_core_register_section): Rename to ...
7279 (core_target::get_core_register_section): ... this and adjust.
7280 (struct get_core_registers_cb_data): New.
7281 (get_core_registers_cb): Use it. Use bool.
7282 (core_target::fetch_registers, core_target::files_info)
7283 (core_target::xfer_partial, core_target::read_description)
7284 (core_target::pid_to, core_target::thread_name): Adjust to
7285 reference class fields instead of globals.
7286 * target.h (struct target_ops_deleter, target_ops_up): New.
7287
451953fa
PA
72882018-05-11 Pedro Alves <palves@redhat.com>
7289
7290 * corefile.c (core_file_command): Move to corelow.c.
7291 * corelow.c (the_core_target): Delete.
7292 (core_file_command): Moved from corefile.c. Check exec_bfd
7293 instead of the_core_target. Use target_detach instead of calling
7294 into the_core_target directly.
7295 (maybe_say_no_core_file_now): New.
7296 (core_target::detach): Use it.
7297 (_initialize_corelow): Remove references to the_core_target.
7298 * gdbcore.h (the_core_target): Delete.
7299
e540a5a2 73002018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 7301 Pedro Alves <palves@redhat.com>
e540a5a2
TT
7302
7303 * corefile.c (core_bfd): Remove.
7304 * gdbcore.h (core_bfd): Now a macro.
7305 * progspace.h (struct program_space) <cbfd>: New field.
7306
633cf254
TT
73072018-05-11 Tom Tromey <tom@tromey.com>
7308
7309 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7310 gdb::def_vector.
7311
1a34f210
TT
73122018-05-10 Tom Tromey <tom@tromey.com>
7313
7314 * configure: Rebuild.
7315 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7316
190852c8
JB
73172018-05-10 Joel Brobecker <brobecker@adacore.com>
7318
7319 PR server/23158:
7320 * regformats/regdat.sh: Adjust script, following the addition
7321 of the new expedite_regs parameter to init_target_desc.
7322
8727de56
OJ
73232018-05-10 Omair Javaid <omair.javaid@linaro.org>
7324
7325 PR gdb/23127
7326 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7327 set_gdbarch_significant_addr_bit.
7328 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7329 set_gdbarch_significant_addr_bit.
7330 * utils.c (address_significant): Update to sign extend addr.
7331
37d9e062
MF
73322018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7333
7334 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7335 (xtensa_linux_init_abi): Limit tdep->num_regs by
7336 tdep->num_nopriv_regs.
7337 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7338 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7339 not initialized.
7340
7402fbca
SM
73412018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7342
7343 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7344
8ee22052
AB
73452018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7346
7347 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7348 (I387_MXCSR_INIT_VAL): New constant.
7349 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7350 buffer if it was supplied by the inferior.
7351 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7352 (i387_xsave_get_clear_bv): New function.
7353 (i387_supply_xsave): Only read x87 control registers from the
7354 xsave buffer if the feature is enabled, and the state will have
7355 been written, otherwise, provide a suitable default.
7356 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7357 including x87 control registers. Update control registers if they
7358 have changed from the default value, and mark features as enabled
7359 as required.
7360 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7361
968ae51b
UW
73622018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7363
7364 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7365
aff689d3
TT
73662018-05-07 Tom Tromey <tom@tromey.com>
7367
7368 * configure: Rebuild.
7369 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7370
ce887586
TT
73712018-05-07 Tom Tromey <tom@tromey.com>
7372
7373 PR tdep/20362:
7374 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7375 bit. Use correct value for VDIV.
7376
85e26832
TT
73772018-05-04 Tom Tromey <tom@tromey.com>
7378
7379 * configure: Rebuild.
7380 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7381
449b1ac7
TT
73822018-05-04 Tom Tromey <tom@tromey.com>
7383
7384 * linux-record.c (record_linux_system_call) <case
7385 RECORD_SYS_RECVFROM>: Add "break".
7386
15c9ffd6
TT
73872018-05-04 Tom Tromey <tom@tromey.com>
7388
7389 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7390 Add missing "break".
7391 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7392 Add missing "break".
7393
e3829d13
TT
73942018-05-04 Tom Tromey <tom@tromey.com>
7395
7396 * rs6000-tdep.c (ppc_process_record_op4)
7397 (ppc_process_record_op63): Add fall-through comment.
7398
da0e1563
TT
73992018-05-04 Tom Tromey <tom@tromey.com>
7400
7401 * i386-tdep.c (i386_process_record): Add fall-through comment.
7402
0019cd49
TT
74032018-05-04 Tom Tromey <tom@tromey.com>
7404
7405 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7406 comment.
7407
565e0eda
TT
74082018-05-04 Tom Tromey <tom@tromey.com>
7409
7410 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7411 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7412 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7413 comment.
7414 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7415 comment.
7416 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7417 comment.
7418
621846f4
TT
74192018-05-04 Tom Tromey <tom@tromey.com>
7420
7421 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7422
86a73007
TT
74232018-05-04 Tom Tromey <tom@tromey.com>
7424
7425 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7426 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7427 * symfile.c (section_is_mapped): Fix fall-through comment.
7428 * stabsread.c (define_symbol, read_member_functions): Fix
7429 fall-through comment.
7430 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7431 comment.
7432 * remote.c (remote_wait_as): Fix fall-through comment.
7433 * p-exp.y (yylex): Fix fall-through comment.
7434 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7435 comment.
7436 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7437 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7438 * jv-exp.y (yylex): Fix fall-through comment.
7439 * go-exp.y (lex_one_token): Fix fall-through comment.
7440 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7441 fall-through comment.
7442 * f-exp.y (yylex): Fix fall-through comment.
7443 * dwarf2read.c (process_die): Fix fall-through comments.
7444 * dbxread.c (process_one_symbol): Fix fall-through comment.
7445 * d-exp.y (lex_one_token): Fix fall-through comment.
7446 * cp-name-parser.y (yylex): Fix fall-through comment.
7447 * coffread.c (coff_symtab_read): Fix fall-through comment.
7448 * c-exp.y (lex_one_token): Fix fall-through comment.
7449 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7450 comment.
7451 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7452 comment.
7453
56bcdbea
TT
74542018-05-04 Tom Tromey <tom@tromey.com>
7455
7456 PR python/22730:
7457 * NEWS: Mention gdb.execute change.
7458 * gdbcmd.h (execute_control_command): Don't declare.
7459 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7460 execute_control_commands, execute_control_commands_to_string.
7461 * cli/cli-script.h (execute_control_commands)
7462 (execute_control_commands_to_string): Declare.
7463 (execute_control_command): Add from_tty parameter.
7464 * cli/cli-script.c (execute_control_commands)
7465 (execute_control_commands_to_string): New functions.
7466 (execute_user_command): Use execute_control_commands.
7467 (execute_control_command_1): Add "from_tty" parameter. Update.
7468 (execute_control_command): Likewise.
7469
a913fffb
TT
74702018-05-04 Tom Tromey <tom@tromey.com>
7471
7472 PR python/22731:
7473 * NEWS: Mention that breakpoint commands are writable.
7474 * python/py-breakpoint.c (bppy_set_commands): New function.
7475 (breakpoint_object_getset) <"commands">: Use it.
7476
60b3cef2
TT
74772018-05-04 Tom Tromey <tom@tromey.com>
7478
7479 * tracepoint.c (actions_command): Update.
7480 * mi/mi-cmd-break.c (mi_command_line_array)
7481 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7482 (mi_read_next_line): Remove.
7483 (mi_cmd_break_commands): Update.
7484 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7485 function_view.
7486 * cli/cli-script.c (get_command_line): Update.
7487 (process_next_line): Use function_view. Constify.
7488 (recurse_read_control_structure, read_command_lines)
7489 (read_command_lines_1): Change argument types to function_view.
7490 (do_define_command, document_command): Update.
7491 * breakpoint.h (check_tracepoint_command): Don't declare.
7492 * breakpoint.c (check_tracepoint_command): Remove.
7493 (commands_command_1, create_tracepoint_from_upload): Update.
7494
7a2c85f2
TT
74952018-05-04 Tom Tromey <tom@tromey.com>
7496
7497 PR gdb/11750:
7498 * cli/cli-script.h (enum command_control_type) <define_control>:
7499 New constant.
7500 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7501 (build_command_line, execute_control_command_1)
7502 (process_next_line): Likewise.
7503 (do_define_command): New function, extracted from define_command.
7504 (define_command): Use it.
7505
295dc222
TT
75062018-05-04 Tom Tromey <tom@tromey.com>
7507
7508 * tracepoint.c (actions_command): Update.
7509 * cli/cli-script.h (read_command_lines): Update.
7510 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7511 (MAX_TMPBUF): Remove define.
7512 (define_command): Use string_printf.
7513 (document_command): Likewise.
7514 * breakpoint.c (commands_command_1): Update.
7515
1263a9d5
TT
75162018-05-04 Tom Tromey <tom@tromey.com>
7517
7518 * top.c (execute_command): Update.
7519 * cli/cli-script.h (print_command_lines): Now varargs.
7520 * cli/cli-script.c (print_command_lines): Now varargs.
7521 (execute_control_command_1) <case while_control, case if_control>:
7522 Update.
7523
12973681
TT
75242018-05-04 Tom Tromey <tom@tromey.com>
7525
7526 * tracepoint.c (all_tracepoint_actions): Rename from
7527 all_tracepoint_actions_and_cleanup. Change return type.
7528 (actions_command, encode_actions_1, encode_actions)
7529 (trace_dump_actions, tdump_command): Update.
7530 * remote.c (remote_download_command_source): Update.
7531 * python/python.c (gdbpy_eval_from_control_command)
7532 (python_command, python_interactive_command): Update.
7533 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7534 * guile/guile.c (guile_command)
7535 (gdbscm_eval_from_control_command, guile_command): Update.
7536 * compile/compile.c (compile_code_command)
7537 (compile_print_command, compile_to_object): Update.
7538 * cli/cli-script.h (struct command_lines_deleter): New.
7539 (counted_command_line): New typedef.
7540 (struct command_line): Add constructor, destructor.
7541 <body_list>: Remove.
7542 <body_list_0, body_list_1>: New members.
7543 (command_line_up): Remove typedef.
7544 (read_command_lines, read_command_lines_1, get_command_line):
7545 Update.
7546 (copy_command_lines): Don't declare.
7547 * cli/cli-script.c (build_command_line): Use "new".
7548 (get_command_line): Return counted_command_line.
7549 (print_command_lines, execute_user_command)
7550 (execute_control_command_1, while_command, if_command): Update.
7551 (realloc_body_list): Remove.
7552 (process_next_line, recurse_read_control_structure): Update.
7553 (read_command_lines, read_command_lines_1): Return counted_command_line.
7554 (free_command_lines): Use "delete".
7555 (copy_command_lines): Remove.
7556 (define_command, document_command, show_user_1): Update.
7557 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7558 a counted_command_line.
7559 * breakpoint.h (counted_command_line): Remove typedef.
7560 (breakpoint_set_commands): Update.
7561 * breakpoint.c (check_no_tracepoint_commands)
7562 (validate_commands_for_breakpoint): Update.
7563 (breakpoint_set_commands): Change commands to be a
7564 counted_command_line.
7565 (commands_command_1, update_dprintf_command_list)
7566 (create_tracepoint_from_upload): Update.
7567
e2fc72e2
TT
75682018-05-04 Tom Tromey <tom@tromey.com>
7569
7570 * cli/cli-decode.h (cmd_list_element): New constructor.
7571 (~cmd_list_element): New destructor.
7572 (struct cmd_list_element): Add initializers.
7573 * cli/cli-decode.c (do_add_cmd): Use "new".
7574 (delete_cmd): Use "delete".
7575
a3b60e45
JK
75762018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7577 Pedro Alves <palves@redhat.com>
7578
7579 PR breakpoints/19806 and support for PR external/20207.
7580 * NEWS: Mention Aarch64 watchpoint improvements.
7581 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7582 watchpoints and PR external/20207 watchpoints.
7583 * nat/aarch64-linux-hw-point.c
7584 (kernel_supports_any_contiguous_range): New.
7585 (aarch64_watchpoint_offset): New.
7586 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7587 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7588 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7589 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7590 next_addr_orig_p. Support PR external/20207 watchpoints.
7591 (aarch64_downgrade_regs): New.
7592 (aarch64_dr_state_insert_one_point): New parameters offset and
7593 addr_orig.
7594 (aarch64_dr_state_remove_one_point): Likewise.
7595 (aarch64_handle_breakpoint): Update caller.
7596 (aarch64_handle_aligned_watchpoint): Likewise.
7597 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7598 aligned_offset.
7599 (aarch64_linux_set_debug_regs): Remove const from state. Call
7600 aarch64_downgrade_regs.
7601 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7602 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7603 (DR_CONTROL_MASK): ... this.
7604 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7605 (unsigned int aarch64_watchpoint_offset): New prototype.
7606 (aarch64_linux_set_debug_regs): Remove const from state.
7607 * utils.c (align_up, align_down): Move to ...
7608 * common/common-utils.c (align_up, align_down): ... here.
7609 * utils.h (align_up, align_down): Move to ...
7610 * common/common-utils.h (align_up, align_down): ... here.
7611
05bc7456
JB
76122018-05-04 Joel Brobecker <brobecker@adacore.com>
7613
7614 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7615 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7616 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7617 Re-implement to match the ABI as summarized in GCC's
7618 gcc/config/sparc/sparc.c. All callers updated.
7619 (sparc32_store_arguments): Remove assertion.
7620
2f433492
TT
76212018-05-04 Tom Tromey <tom@tromey.com>
7622
7623 * printcmd.c: Don't include tui.h.
7624 (decode_format): Use skip_spaces.
7625
9be2ae8f
TT
76262018-05-04 Tom Tromey <tom@tromey.com>
7627
7628 PR gdb/22619:
7629 * printcmd.c (last_count): New global.
7630 (x_command): Use saved count when repeating.
7631
f0b3976b
TT
76322018-05-04 Tom Tromey <tom@tromey.com>
7633
7634 * nto-procfs.c (do_closedir_cleanup): Remove.
7635 (procfs_pidlist): Use gdb_dir_up.
7636 * procfs.c (do_closedir_cleanup): Remove.
7637 (proc_update_threads): Use gdb_dir_up.
7638 * common/filestuff.h (struct gdb_dir_deleter): New.
7639 (gdb_dir_up): New typedef.
7640
862d101a
TT
76412018-05-04 Tom Tromey <tom@tromey.com>
7642
7643 * ada-lang.c (print_mention_exception): Use std::string.
7644
cb7de75e
TT
76452018-05-04 Tom Tromey <tom@tromey.com>
7646
7647 * ada-lang.c (create_excep_cond_exprs): Update.
7648 (ada_exception_catchpoint_cond_string): Use std::string.
7649
49d83361
TT
76502018-05-04 Tom Tromey <tom@tromey.com>
7651
7652 * ada-lang.c (xget_renaming_scope): Return std::string.
7653 (old_renaming_is_invisible): Update.
7654
ade72a34
TT
76552018-05-04 Tom Tromey <tom@tromey.com>
7656
7657 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7658 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7659
2be4d7f0
UW
76602018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7661
7662 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7663
69b6ecb0
TT
76642018-05-04 Tom Tromey <tom@tromey.com>
7665
7666 * remote.c (remote_query_supported_append): Change type.
7667 (remote_check_symbols): Update.
7668
bf27f0e2
PP
76692018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7670
7671 PR gdb/11420
7672 * configure.ac: Prepend libpython.
7673 * python/python-config.py: Likewise.
7674 * configure: Regenerate.
7675
4ea17de8
SM
76762018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7677
7678 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7679
bd732259
PA
76802018-05-03 Pedro Alves <palves@redhat.com>
7681
7682 * s390-linux-nat.c
7683 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7684 override. Write 'true' instead of '1'.
7685 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7686 declaration.
7687
d9f719f1
PA
76882018-05-02 Pedro Alves <palves@redhat.com>
7689
7690 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7691 add_inf_child_target.
7692 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7693 add_inf_child_target.
7694 * aix-thread.c (aix_thread_target_info): New.
7695 (aix_thread_target) <shortname, longname, doc>: Delete.
7696 <info>: New.
7697 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7698 add_inf_child_target.
7699 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7700 add_inf_child_target.
7701 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7702 add_inf_child_target.
7703 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7704 add_inf_child_target.
7705 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7706 add_inf_child_target.
7707 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7708 add_inf_child_target.
7709 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7710 add_inf_child_target.
7711 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7712 add_inf_child_target.
7713 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7714 add_inf_child_target.
7715 * bfd-target.c (target_bfd_target_info): New.
7716 (target_bfd) <shortname, longname, doc>: Delete.
7717 <info>: New.
7718 * bsd-kvm.c (bsd_kvm_target_info): New.
7719 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7720 <info>: New.
7721 (bsd_kvm_target::open): Rename to ...
7722 (bsd_kvm_target_open): ... this. Adjust.
7723 * bsd-uthread.c (bsd_uthread_target_info): New.
7724 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7725 <info>: New.
7726 * corefile.c (core_file_command): Adjust.
7727 * corelow.c (core_target_info): New.
7728 (core_target) <shortname, longname, doc>: Delete.
7729 <info>: New.
7730 (core_target::open): Rename to ...
7731 (core_target_open): ... this. Adjust.
7732 * ctf.c (ctf_target_info): New.
7733 (ctf_target) <shortname, longname, doc>: Delete.
7734 <info>: New.
7735 (ctf_target::open): Rename to ...
7736 (ctf_target_open): ... this.
7737 (_initialize_ctf): Adjust.
7738 * exec.c (exec_target_info): New.
7739 (exec_target) <shortname, longname, doc>: Delete.
7740 <info>: New.
7741 (exec_target::open): Rename to ...
7742 (exec_target_open): ... this.
7743 * gdbcore.h (core_target_open): Declare.
7744 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7745 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7746 add_inf_child_target.
7747 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7748 add_inf_child_target.
7749 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7750 add_inf_child_target.
7751 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7752 add_inf_child_target.
7753 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7754 add_inf_child_target.
7755 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7756 add_inf_child_target.
7757 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7758 add_inf_child_target.
7759 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7760 add_inf_child_target.
7761 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7762 add_inf_child_target.
7763 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7764 add_inf_child_target.
7765 * inf-child.c (inf_child_target_info): New.
7766 (inf_child_target::info): New.
7767 (inf_child_open_target): Remove 'target' parameter. Use
7768 get_native_target instead.
7769 (inf_child_target::open): Delete.
7770 (add_inf_child_target): New.
7771 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7772 Delete.
7773 <info>: New.
7774 (add_inf_child_target): Declare.
7775 (inf_child_open_target): Declare.
7776 * linux-thread-db.c (thread_db_target_info): New.
7777 (thread_db_target) <shortname, longname, doc>: Delete.
7778 <info>: New.
7779 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7780 add_inf_child_target.
7781 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7782 add_inf_child_target.
7783 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7784 add_inf_child_target.
7785 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7786 add_inf_child_target.
7787 * make-target-delegates (print_class): Adjust.
7788 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7789 add_inf_child_target.
7790 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7791 add_inf_child_target.
7792 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7793 add_inf_child_target.
7794 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7795 add_inf_child_target.
7796 * nto-procfs.c (nto_native_target_info): New.
7797 (nto_procfs_target_native) <shortname, longname, doc>:
7798 Delete.
7799 <info>: New.
7800 (nto_procfs_target_info): New.
7801 (nto_procfs_target_procfs) <shortname, longname, doc>:
7802 Delete.
7803 <info>: New.
7804 (init_procfs_targets): Adjust.
7805 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7806 add_inf_child_target.
7807 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7808 add_inf_child_target.
7809 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7810 add_inf_child_target.
7811 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7812 add_inf_child_target.
7813 * ravenscar-thread.c (ravenscar_target_info): New.
7814 (ravenscar_thread_target) <shortname, longname, doc>:
7815 Delete.
7816 <info>: New.
7817 * record-btrace.c (record_btrace_target_info):
7818 (record_btrace_target) <shortname, longname, doc>: Delete.
7819 <info>: New.
7820 (record_btrace_target::open): Rename to ...
7821 (record_btrace_target_open): ... this. Adjust.
7822 * record-full.c (record_longname, record_doc): New.
7823 (record_full_base_target) <shortname, longname, doc>: Delete.
7824 <info>: New.
7825 (record_full_target_info): New.
7826 (record_full_target): <shortname>: Delete.
7827 <info>: New.
7828 (record_full_core_open_1, record_full_open_1): Update comments.
7829 (record_full_base_target::open): Rename to ...
7830 (record_full_open): ... this.
7831 (cmd_record_full_restore): Update.
7832 (_initialize_record_full): Update.
7833 * remote-sim.c (remote_sim_target_info): New.
7834 (gdbsim_target) <shortname, longname, doc>: Delete.
7835 <info>: New.
7836 (gdbsim_target::open): Rename to ...
7837 (gdbsim_target_open): ... this.
7838 (_initialize_remote_sim): Adjust.
7839 * remote.c (remote_doc): New.
7840 (remote_target_info): New.
7841 (remote_target) <shortname, longname, doc>: Delete.
7842 <info>: New.
7843 (extended_remote_target_info): New.
7844 (extended_remote_target) <shortname, longname, doc>: Delete.
7845 <info>: New.
7846 (remote_target::open_1): Make static. Adjust.
7847 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7848 * s390-linux-nat.c (_initialize_s390_nat): Use
7849 add_inf_child_target.
7850 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7851 add_inf_child_target.
7852 * sol-thread.c (thread_db_target_info): New.
7853 (sol_thread_target) <shortname, longname, doc>: Delete.
7854 <info>: New.
7855 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7856 add_inf_child_target.
7857 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7858 add_inf_child_target.
7859 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7860 add_inf_child_target.
7861 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7862 add_inf_child_target.
7863 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7864 add_inf_child_target.
7865 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7866 add_inf_child_target.
7867 * spu-linux-nat.c (_initialize_spu_nat): Use
7868 add_inf_child_target.
7869 * spu-multiarch.c (spu_multiarch_target_info): New.
7870 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7871 <info>: New.
7872 * target-delegates.c: Regenerate.
7873 * target.c: Include <unordered_map>.
7874 (target_ops_p): Delete.
7875 (DEF_VEC_P(target_ops_p)): Delete.
7876 (target_factories): New.
7877 (test_target_info): New.
7878 (test_target_ops::info): New.
7879 (open_target): Adjust to use target_factories.
7880 (add_target_with_completer): Rename to ...
7881 (add_target): ... this. Change prototype. Register target_info
7882 and open callback in target_factories. Register target_info in
7883 command context instead of target_ops.
7884 (add_target): Delete old implementation.
7885 (add_deprecated_target_alias): Change prototype. Adjust.
7886 (the_native_target): New.
7887 (set_native_target, get_native_target): New.
7888 (find_default_run_target): Use the_native_target.
7889 (find_attach_target, find_run_target): Simplify.
7890 (target_ops::open): Delete.
7891 (dummy_target_info): New.
7892 (dummy_target::shortname, dummy_target::longname)
7893 (dummy_target::doc): Delete.
7894 (dummy_target::info): New.
7895 (debug_target::shortname, debug_target::longname)
7896 (debug_target::doc): Delete.
7897 (debug_target::info): New.
7898 * target.h (struct target_info): New.
7899 (target_ops::~target_ops): Add comment.
7900 (target_ops::info): New.
7901 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7902 longer virtual. Implement in terms of target_info.
7903 (set_native_target, get_native_target): Declare.
7904 (target_open_ftype): New.
7905 (add_target, add_target_with_completer)
7906 (add_deprecated_target_alias): Change prototype.
7907 (test_target) <shortname, longname, doc>: Delete.
7908 <info>: New.
7909 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7910 add_inf_child_target.
7911 * tracefile-tfile.c (tfile_target_info): New.
7912 (tfile_target) <shortname, longname, doc>: Delete.
7913 <info>: New.
7914 (tfile_target::open): Rename to ...
7915 (tfile_target_open): ... this.
7916 (_initialize_tracefile_tfile): Adjust.
7917 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7918 add_inf_child_target.
7919 * windows-nat.c (_initialize_windows_nat): Use
7920 add_inf_child_target.
7921 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7922 add_inf_child_target.
7923
135340af
PA
79242018-05-02 Pedro Alves <palves@redhat.com>
7925
7926 * linux-nat.h (linux_nat_target) <low_new_thread,
7927 low_delete_thread, low_new_fork, low_forget_process,
7928 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7929 New virtual methods.
7930 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7931 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7932 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7933 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7934 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7935 Delete.
7936 * linux-fork.c (delete_fork): Adjust to call low method.
7937 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7938 (linux_nat_new_fork, linux_nat_forget_process_hook)
7939 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7940 (linux_nat_status_is_event):
7941 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7942 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7943 to call low method.
7944 (sigtrap_is_event): Rename to ...
7945 (linux_nat_target::low_status_is_event): ... this.
7946 (linux_nat_set_status_is_event): Delete.
7947 (save_stop_reason, linux_nat_wait_1)
7948 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7949 low methods.
7950 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7951 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7952 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7953 (linux_nat_set_prepare_to_resume): Delete.
7954 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7955 low virtual methods.
7956 * amd64-linux-nat.c: Likewise.
7957 * arm-linux-nat.c: Likewise.
7958 * i386-linux-nat.c: Likewise.
7959 * ia64-linux-nat.c: Likewise.
7960 * mips-linux-nat.c: Likewise.
7961 * ppc-linux-nat.c: Likewise.
7962 * s390-linux-nat.c: Likewise.
7963 * sparc64-linux-nat.c: Likewise.
7964 * x86-linux-nat.c: Likewise.
7965 * x86-linux-nat.h: Include "nat/x86-linux.h".
7966 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7967 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7968 Override methods.
7969
57810aa7
PA
79702018-05-02 Pedro Alves <palves@redhat.com>
7971
7972 * target.h (target_ops)
7973 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7974 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7975 stopped_by_watchpoint, have_continuable_watchpoint,
7976 stopped_data_address, watchpoint_addr_within_range,
7977 can_accel_watchpoint_condition, can_run, thread_alive,
7978 has_all_memory, has_memory, has_stack, has_registers,
7979 has_execution, can_async_p, is_async_p, supports_non_stop,
7980 always_non_stop_p, can_execute_reverse, supports_multi_process,
7981 supports_enable_disable_tracepoint,
7982 supports_disable_randomization, supports_string_tracing,
7983 supports_evaluation_of_breakpoint_conditions,
7984 can_run_breakpoint_commands, filesystem_is_local,
7985 can_download_tracepoint, get_trace_state_variable_value,
7986 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7987 record_is_replaying, record_will_replay,
7988 augmented_libraries_svr4_read>: Adjust to return bool.
7989 * aarch64-linux-nat.c: All implementations adjusted.
7990 * aix-thread.c: All implementations adjusted.
7991 * arm-linux-nat.c: All implementations adjusted.
7992 * breakpoint.c: All implementations adjusted.
7993 * bsd-kvm.c: All implementations adjusted.
7994 * bsd-uthread.c: All implementations adjusted.
7995 * corelow.c: All implementations adjusted.
7996 * ctf.c: All implementations adjusted.
7997 * darwin-nat.c: All implementations adjusted.
7998 * darwin-nat.h: All implementations adjusted.
7999 * exec.c: All implementations adjusted.
8000 * fbsd-nat.c: All implementations adjusted.
8001 * fbsd-nat.h: All implementations adjusted.
8002 * gnu-nat.c: All implementations adjusted.
8003 * gnu-nat.h: All implementations adjusted.
8004 * go32-nat.c: All implementations adjusted.
8005 * ia64-linux-nat.c: All implementations adjusted.
8006 * inf-child.c: All implementations adjusted.
8007 * inf-child.h: All implementations adjusted.
8008 * inf-ptrace.c: All implementations adjusted.
8009 * inf-ptrace.h: All implementations adjusted.
8010 * linux-nat.c: All implementations adjusted.
8011 * linux-nat.h: All implementations adjusted.
8012 * mips-linux-nat.c: All implementations adjusted.
8013 * nto-procfs.c: All implementations adjusted.
8014 * ppc-linux-nat.c: All implementations adjusted.
8015 * procfs.c: All implementations adjusted.
8016 * ravenscar-thread.c: All implementations adjusted.
8017 * record-btrace.c: All implementations adjusted.
8018 * record-full.c: All implementations adjusted.
8019 * remote-sim.c: All implementations adjusted.
8020 * remote.c: All implementations adjusted.
8021 * s390-linux-nat.c: All implementations adjusted.
8022 * sol-thread.c: All implementations adjusted.
8023 * spu-multiarch.c: All implementations adjusted.
8024 * target-delegates.c: All implementations adjusted.
8025 * target.c: All implementations adjusted.
8026 * target.h: All implementations adjusted.
8027 * tracefile-tfile.c: All implementations adjusted.
8028 * tracefile.c: All implementations adjusted.
8029 * tracefile.h: All implementations adjusted.
8030 * windows-nat.c: All implementations adjusted.
8031 * x86-linux-nat.h: All implementations adjusted.
8032 * x86-nat.h: All implementations adjusted.
8033
ad6a4e2d
PA
80342018-05-02 Pedro Alves <palves@redhat.com>
8035
8036 * make-target-delegates (scan_target_h): Don't trim lines here.
8037 Replace sequences of tabs and/or whitespace with a single
8038 whitespace.
8039 (top level, parsing methods): Trim each line before processing it
8040 here.
8041
f6ac5f3d
PA
80422018-05-02 Pedro Alves <palves@redhat.com>
8043 John Baldwin <jhb@freebsd.org>
8044
8045 * target.h (enum strata) <debug_stratum>: New.
8046 (struct target_ops) <all delegation methods>: Replace by C++
8047 virtual methods, and drop "to_" prefix. All references updated
8048 throughout.
8049 <to_shortname, to_longname, to_doc, to_data,
8050 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8051 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8052 virtual methods. All references updated throughout.
8053 <can_attach, supports_terminal_ours, can_create_inferior,
8054 get_thread_control_capabilities, attach_no_wait>: New
8055 virtual methods.
8056 <insert_breakpoint, remove_breakpoint>: Now
8057 TARGET_DEFAULT_NORETURN methods.
8058 <info_proc>: Now returns bool.
8059 <to_magic>: Delete.
8060 (OPS_MAGIC): Delete.
8061 (current_target): Delete. All references replaced by references
8062 to ...
8063 (target_stack): ... this. New.
8064 (target_shortname, target_longname): Adjust.
8065 (target_can_run): Now a function declaration.
8066 (default_child_has_all_memory, default_child_has_memory)
8067 (default_child_has_stack, default_child_has_registers)
8068 (default_child_has_execution): Remove target_ops parameter.
8069 (complete_target_initialization): Delete.
8070 (memory_breakpoint_target): New template class.
8071 (test_target_ops): Refactor as a C++ class with virtual methods.
8072 * make-target-delegates (NAME_PART): Tighten.
8073 (POINTER_PART, CP_SYMBOL): New.
8074 (SIMPLE_RETURN_PART): Reimplement.
8075 (VEC_RETURN_PART): Expect less.
8076 (RETURN_PART, VIRTUAL_PART): New.
8077 (METHOD): Adjust to C++ virtual methods.
8078 (scan_target_h): Remove reference to C99.
8079 (dname): Output "target_ops::" prefix.
8080 (write_function_header): Adjust to output a C++ class method.
8081 (write_declaration): New.
8082 (write_delegator): Adjust to output a C++ class method.
8083 (tdname): Output "dummy_target::" prefix.
8084 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8085 method.
8086 (tdefault_names, debug_names): Delete.
8087 (return_types, tdefaults, styles, argtypes_array): New.
8088 (top level): All methods are delegators.
8089 (print_class): New.
8090 (top level): Print dummy_target and debug_target classes.
8091 * target-delegates.c: Regenerate.
8092 * target-debug.h (target_debug_print_enum_info_proc_what)
8093 (target_debug_print_thread_control_capabilities)
8094 (target_debug_print_thread_info_p): New.
8095 * target.c (dummy_target): Delete.
8096 (the_dummy_target, the_debug_target): New.
8097 (target_stack): Now extern.
8098 (set_targetdebug): Push/unpush debug target.
8099 (default_child_has_all_memory, default_child_has_memory)
8100 (default_child_has_stack, default_child_has_registers)
8101 (default_child_has_execution): Remove target_ops parameter.
8102 (complete_target_initialization): Delete.
8103 (add_target_with_completer): No longer call
8104 complete_target_initialization.
8105 (target_supports_terminal_ours): Use regular delegation.
8106 (update_current_target): Delete.
8107 (push_target): No longer check magic number. Don't call
8108 update_current_target.
8109 (unpush_target): Don't call update_current_target.
8110 (target_is_pushed): No longer check magic number.
8111 (target_require_runnable): Skip for all stratums over
8112 process_stratum.
8113 (target_ops::info_proc): New.
8114 (target_info_proc): Use find_target_at and
8115 find_default_run_target.
8116 (target_supports_disable_randomization): Use regular delegation.
8117 (target_get_osdata): Use find_target_at.
8118 (target_ops::open, target_ops::close, target_ops::can_attach)
8119 (target_ops::attach, target_ops::can_create_inferior)
8120 (target_ops::create_inferior, target_ops::can_run)
8121 (target_can_run): New.
8122 (default_fileio_target): Use regular delegation.
8123 (target_ops::fileio_open, target_ops::fileio_pwrite)
8124 (target_ops::fileio_pread, target_ops::fileio_fstat)
8125 (target_ops::fileio_close, target_ops::fileio_unlink)
8126 (target_ops::fileio_readlink): New.
8127 (target_fileio_open_1, target_fileio_unlink)
8128 (target_fileio_readlink): Always call the target method. Handle
8129 FILEIO_ENOSYS.
8130 (return_zero, return_zero_has_execution): Delete.
8131 (init_dummy_target): Delete.
8132 (dummy_target::dummy_target, dummy_target::shortname)
8133 (dummy_target::longname, dummy_target::doc)
8134 (debug_target::debug_target, debug_target::shortname)
8135 (debug_target::longname, debug_target::doc): New.
8136 (target_supports_delete_record): Use regular delegation.
8137 (setup_target_debug): Delete.
8138 (maintenance_print_target_stack): Skip debug_stratum.
8139 (initialize_targets): Instantiate the_dummy_target and
8140 the_debug_target.
8141 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8142 use target_stack.
8143 (target_auxv_search, fprint_target_auxv): Adjust.
8144 (info_auxv_command): Adjust to use target_stack.
8145 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8146 * exceptions.c (print_flush): Handle a NULL target_stack.
8147 * regcache.c (target_ops_no_register): Refactor as class with
8148 virtual methods.
8149
8150 * exec.c (exec_target): New class.
8151 (exec_ops): Now an exec_target.
8152 (exec_open, exec_close_1, exec_get_section_table)
8153 (exec_xfer_partial, exec_files_info, exec_has_memory)
8154 (exec_make_note_section): Refactor as exec_target methods.
8155 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8156 Delete.
8157 (exec_target::find_memory_regions): New.
8158 (_initialize_exec): Don't call init_exec_ops.
8159 * gdbcore.h (exec_file_clear): Delete.
8160
8161 * corefile.c (core_target): Delete.
8162 (core_file_command): Adjust.
8163 * corelow.c (core_target): New class.
8164 (the_core_target): New.
8165 (core_close): Remove target_ops parameter.
8166 (core_close_cleanup): Adjust.
8167 (core_target::close): New.
8168 (core_open, core_detach, get_core_registers, core_files_info)
8169 (core_xfer_partial, core_thread_alive, core_read_description)
8170 (core_pid_to_str, core_thread_name, core_has_memory)
8171 (core_has_stack, core_has_registers, core_info_proc): Rework as
8172 core_target methods.
8173 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8174 (_initialize_corelow): Initialize the_core_target.
8175 * gdbcore.h (core_target): Delete.
8176 (the_core_target): New.
8177
8178 * ctf.c: (ctf_target): New class.
8179 (ctf_ops): Now a ctf_target.
8180 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8181 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8182 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8183 methods.
8184 (init_ctf_ops): Delete.
8185 (_initialize_ctf): Don't call it.
8186 * tracefile-tfile.c (tfile_target): New class.
8187 (tfile_ops): Now a tfile_target.
8188 (tfile_open, tfile_close, tfile_files_info)
8189 (tfile_get_tracepoint_status, tfile_trace_find)
8190 (tfile_fetch_registers, tfile_xfer_partial)
8191 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8192 Refactor as tfile_target methods.
8193 (tfile_xfer_partial_features): Remove target_ops parameter.
8194 (init_tfile_ops): Delete.
8195 (_initialize_tracefile_tfile): Don't call it.
8196 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8197 (tracefile_has_stack, tracefile_has_registers)
8198 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8199 tracefile_target methods.
8200 (init_tracefile_ops): Delete.
8201 (tracefile_target::tracefile_target): New.
8202 * tracefile.h: Include "target.h".
8203 (tracefile_target): New class.
8204 (init_tracefile_ops): Delete.
8205
8206 * spu-multiarch.c (spu_multiarch_target): New class.
8207 (spu_ops): Now a spu_multiarch_target.
8208 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8209 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8210 (spu_search_memory, spu_mourn_inferior): Refactor as
8211 spu_multiarch_target methods.
8212 (init_spu_ops): Delete.
8213 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8214 complete_target_initialization.
8215
8216 * ravenscar-thread.c (ravenscar_thread_target): New class.
8217 (ravenscar_ops): Now a ravenscar_thread_target.
8218 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8219 (ravenscar_thread_alive, ravenscar_pid_to_str)
8220 (ravenscar_fetch_registers, ravenscar_store_registers)
8221 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8222 (ravenscar_stopped_by_hw_breakpoint)
8223 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8224 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8225 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8226 methods.
8227 (init_ravenscar_thread_ops): Delete.
8228 (_initialize_ravenscar): Remove references to
8229 init_ravenscar_thread_ops and complete_target_initialization.
8230
8231 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8232 (bsd_uthread_target): New class.
8233 (bsd_uthread_ops): Now a bsd_uthread_target.
8234 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8235 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8236 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8237 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8238 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8239 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8240 (bsd_uthread_target): Delete function.
8241 (_initialize_bsd_uthread): Remove reference to
8242 complete_target_initialization.
8243
8244 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8245 (target_bfd): ... this new class.
8246 (target_bfd_xfer_partial, target_bfd_get_section_table)
8247 (target_bfd_close): Refactor as target_bfd methods.
8248 (target_bfd::~target_bfd): New.
8249 (target_bfd_reopen): Adjust.
8250 (target_bfd::close): New.
8251
8252 * record-btrace.c (record_btrace_target): New class.
8253 (record_btrace_ops): Now a record_btrace_target.
8254 (record_btrace_open, record_btrace_stop_recording)
8255 (record_btrace_disconnect, record_btrace_close)
8256 (record_btrace_async, record_btrace_info)
8257 (record_btrace_insn_history, record_btrace_insn_history_range)
8258 (record_btrace_insn_history_from, record_btrace_call_history)
8259 (record_btrace_call_history_range)
8260 (record_btrace_call_history_from, record_btrace_record_method)
8261 (record_btrace_is_replaying, record_btrace_will_replay)
8262 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8263 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8264 (record_btrace_store_registers, record_btrace_prepare_to_store)
8265 (record_btrace_to_get_unwinder)
8266 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8267 (record_btrace_commit_resume, record_btrace_wait)
8268 (record_btrace_stop, record_btrace_can_execute_reverse)
8269 (record_btrace_stopped_by_sw_breakpoint)
8270 (record_btrace_supports_stopped_by_sw_breakpoint)
8271 (record_btrace_stopped_by_hw_breakpoint)
8272 (record_btrace_supports_stopped_by_hw_breakpoint)
8273 (record_btrace_update_thread_list, record_btrace_thread_alive)
8274 (record_btrace_goto_begin, record_btrace_goto_end)
8275 (record_btrace_goto, record_btrace_stop_replaying_all)
8276 (record_btrace_execution_direction)
8277 (record_btrace_prepare_to_generate_core)
8278 (record_btrace_done_generating_core): Refactor as
8279 record_btrace_target methods.
8280 (init_record_btrace_ops): Delete.
8281 (_initialize_record_btrace): Remove reference to
8282 init_record_btrace_ops.
8283 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8284 the execution_direction global.
8285 (record_full_base_target, record_full_target)
8286 (record_full_core_target): New classes.
8287 (record_full_ops): Now a record_full_target.
8288 (record_full_core_ops): Now a record_full_core_target.
8289 (record_full_target::detach, record_full_target::disconnect)
8290 (record_full_core_target::disconnect)
8291 (record_full_target::mourn_inferior, record_full_target::kill):
8292 New.
8293 (record_full_open, record_full_close, record_full_async): Refactor
8294 as methods of the record_full_base_target class.
8295 (record_full_resume, record_full_commit_resume): Refactor
8296 as methods of the record_full_target class.
8297 (record_full_wait, record_full_stopped_by_watchpoint)
8298 (record_full_stopped_data_address)
8299 (record_full_stopped_by_sw_breakpoint)
8300 (record_full_supports_stopped_by_sw_breakpoint)
8301 (record_full_stopped_by_hw_breakpoint)
8302 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8303 methods of the record_full_base_target class.
8304 (record_full_store_registers, record_full_xfer_partial)
8305 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8306 Refactor as methods of the record_full_target class.
8307 (record_full_can_execute_reverse, record_full_get_bookmark)
8308 (record_full_goto_bookmark, record_full_execution_direction)
8309 (record_full_record_method, record_full_info, record_full_delete)
8310 (record_full_is_replaying, record_full_will_replay)
8311 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8312 (record_full_stop_replaying): Refactor as methods of the
8313 record_full_base_target class.
8314 (record_full_core_resume, record_full_core_kill)
8315 (record_full_core_fetch_registers)
8316 (record_full_core_prepare_to_store)
8317 (record_full_core_store_registers, record_full_core_xfer_partial)
8318 (record_full_core_insert_breakpoint)
8319 (record_full_core_remove_breakpoint)
8320 (record_full_core_has_execution): Refactor
8321 as methods of the record_full_core_target class.
8322 (record_full_base_target::supports_delete_record): New.
8323 (init_record_full_ops): Delete.
8324 (init_record_full_core_ops): Delete.
8325 (record_full_save): Refactor as method of the
8326 record_full_base_target class.
8327 (_initialize_record_full): Remove references to
8328 init_record_full_ops and init_record_full_core_ops.
8329
8330 * remote.c (remote_target, extended_remote_target): New classes.
8331 (remote_ops): Now a remote_target.
8332 (extended_remote_ops): Now an extended_remote_target.
8333 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8334 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8335 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8336 (remote_pass_signals, remote_set_syscall_catchpoint)
8337 (remote_program_signals, )
8338 (remote_thread_always_alive): Remove target_ops parameter.
8339 (remote_thread_alive, remote_thread_name)
8340 (remote_update_thread_list, remote_threads_extra_info)
8341 (remote_static_tracepoint_marker_at)
8342 (remote_static_tracepoint_markers_by_strid)
8343 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8344 (remote_open): Refactor as methods of remote_target.
8345 (extended_remote_open, extended_remote_detach)
8346 (extended_remote_attach, extended_remote_post_attach):
8347 (extended_remote_supports_disable_randomization)
8348 (extended_remote_create_inferior): : Refactor as method of
8349 extended_remote_target.
8350 (remote_set_permissions, remote_open_1, remote_detach)
8351 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8352 (remote_resume, remote_commit_resume, remote_stop)
8353 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8354 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8355 (remote_prepare_to_store, remote_store_registers)
8356 (remote_flash_erase, remote_flash_done, remote_files_info)
8357 (remote_kill, remote_mourn, remote_insert_breakpoint)
8358 (remote_remove_breakpoint, remote_insert_watchpoint)
8359 (remote_watchpoint_addr_within_range)
8360 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8361 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8362 (remote_supports_stopped_by_sw_breakpoint)
8363 (remote_stopped_by_hw_breakpoint)
8364 (remote_supports_stopped_by_hw_breakpoint)
8365 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8366 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8367 (remote_verify_memory): Refactor as methods of remote_target.
8368 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8369 parameter.
8370 (remote_xfer_partial, remote_get_memory_xfer_limit)
8371 (remote_search_memory, remote_rcmd, remote_memory_map)
8372 (remote_pid_to_str, remote_get_thread_local_address)
8373 (remote_get_tib_address, remote_read_description): Refactor as
8374 methods of remote_target.
8375 (remote_target::fileio_open, remote_target::fileio_pwrite)
8376 (remote_target::fileio_pread, remote_target::fileio_close): New.
8377 (remote_hostio_readlink, remote_hostio_fstat)
8378 (remote_filesystem_is_local, remote_can_execute_reverse)
8379 (remote_supports_non_stop, remote_supports_disable_randomization)
8380 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8381 (remote_supports_enable_disable_tracepoint)
8382 (remote_supports_string_tracing)
8383 (remote_can_run_breakpoint_commands, remote_trace_init)
8384 (remote_download_tracepoint, remote_can_download_tracepoint)
8385 (remote_download_trace_state_variable, remote_enable_tracepoint)
8386 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8387 (remote_trace_start, remote_get_trace_status)
8388 (remote_get_tracepoint_status, remote_trace_stop)
8389 (remote_trace_find, remote_get_trace_state_variable_value)
8390 (remote_save_trace_data, remote_get_raw_trace_data)
8391 (remote_set_disconnected_tracing, remote_core_of_thread)
8392 (remote_set_circular_trace_buffer, remote_traceframe_info)
8393 (remote_get_min_fast_tracepoint_insn_len)
8394 (remote_set_trace_buffer_size, remote_set_trace_notes)
8395 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8396 (remote_disable_btrace, remote_teardown_btrace)
8397 (remote_read_btrace, remote_btrace_conf)
8398 (remote_augmented_libraries_svr4_read, remote_load)
8399 (remote_pid_to_exec_file, remote_can_do_single_step)
8400 (remote_execution_direction, remote_thread_handle_to_thread_info):
8401 Refactor as methods of remote_target.
8402 (init_remote_ops, init_extended_remote_ops): Delete.
8403 (remote_can_async_p, remote_is_async_p, remote_async)
8404 (remote_thread_events, remote_upload_tracepoints)
8405 (remote_upload_trace_state_variables): Refactor as methods of
8406 remote_target.
8407 (_initialize_remote): Remove references to init_remote_ops and
8408 init_extended_remote_ops.
8409
8410 * remote-sim.c (gdbsim_target): New class.
8411 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8412 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8413 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8414 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8415 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8416 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8417 Refactor as methods of gdbsim_target.
8418 (gdbsim_ops): Now a gdbsim_target.
8419 (init_gdbsim_ops): Delete.
8420 (gdbsim_cntrl_c): Adjust.
8421 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8422
8423 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8424 (the_amd64_linux_nat_target): New.
8425 (amd64_linux_fetch_inferior_registers)
8426 (amd64_linux_store_inferior_registers): Refactor as methods of
8427 amd64_linux_nat_target.
8428 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8429 * i386-linux-nat.c: Don't include "linux-nat.h".
8430 (i386_linux_nat_target): New class.
8431 (the_i386_linux_nat_target): New.
8432 (i386_linux_fetch_inferior_registers)
8433 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8434 as methods of i386_linux_nat_target.
8435 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8436 * inf-child.c (inf_child_ops): Delete.
8437 (inf_child_fetch_inferior_registers)
8438 (inf_child_store_inferior_registers): Delete.
8439 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8440 methods of inf_child_target.
8441 (inf_child_target::supports_terminal_ours)
8442 (inf_child_target::terminal_init)
8443 (inf_child_target::terminal_inferior)
8444 (inf_child_target::terminal_ours_for_output)
8445 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8446 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8447 New.
8448 (inf_child_open, inf_child_disconnect, inf_child_close)
8449 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8450 (inf_child_post_startup_inferior, inf_child_can_run)
8451 (inf_child_pid_to_exec_file): Refactor as methods of
8452 inf_child_target.
8453 (inf_child_follow_fork): Delete.
8454 (inf_child_target::can_create_inferior)
8455 (inf_child_target::can_attach): New.
8456 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8457 (inf_child_target::has_stack, inf_child_target::has_registers)
8458 (inf_child_target::has_execution): New.
8459 (inf_child_fileio_open, inf_child_fileio_pwrite)
8460 (inf_child_fileio_pread, inf_child_fileio_fstat)
8461 (inf_child_fileio_close, inf_child_fileio_unlink)
8462 (inf_child_fileio_readlink, inf_child_use_agent)
8463 (inf_child_can_use_agent): Refactor as methods of
8464 inf_child_target.
8465 (return_zero, inf_child_target): Delete.
8466 (inf_child_target::inf_child_target): New.
8467 * inf-child.h: Include "target.h".
8468 (inf_child_target): Delete function prototype.
8469 (inf_child_target): New class.
8470 (inf_child_open_target, inf_child_mourn_inferior)
8471 (inf_child_maybe_unpush_target): Delete.
8472 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8473 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8474 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8475 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8476 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8477 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8478 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8479 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8480 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8481 methods of inf_ptrace_target.
8482 (inf_ptrace_target): Delete function.
8483 * inf-ptrace.h: Include "inf-child.h".
8484 (inf_ptrace_target): Delete function declaration.
8485 (inf_ptrace_target): New class.
8486 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8487 * linux-nat.c (linux_target): New.
8488 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8489 (linux_nat_target::~linux_nat_target): New.
8490 (linux_child_post_attach, linux_child_post_startup_inferior)
8491 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8492 (linux_child_remove_fork_catchpoint)
8493 (linux_child_insert_vfork_catchpoint)
8494 (linux_child_remove_vfork_catchpoint)
8495 (linux_child_insert_exec_catchpoint)
8496 (linux_child_remove_exec_catchpoint)
8497 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8498 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8499 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8500 (linux_nat_stopped_data_address)
8501 (linux_nat_stopped_by_sw_breakpoint)
8502 (linux_nat_supports_stopped_by_sw_breakpoint)
8503 (linux_nat_stopped_by_hw_breakpoint)
8504 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8505 (linux_nat_kill, linux_nat_mourn_inferior)
8506 (linux_nat_xfer_partial, linux_nat_thread_alive)
8507 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8508 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8509 (linux_child_static_tracepoint_markers_by_strid)
8510 (linux_nat_is_async_p, linux_nat_can_async_p)
8511 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8512 (linux_nat_supports_multi_process)
8513 (linux_nat_supports_disable_randomization, linux_nat_async)
8514 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8515 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8516 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8517 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8518 methods of linux_nat_target.
8519 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8520 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8521 parameter.
8522 (check_stopped_by_watchpoint): Adjust.
8523 (linux_xfer_partial): Delete.
8524 (linux_target_install_ops, linux_target, linux_nat_add_target):
8525 Delete.
8526 (linux_nat_target::linux_nat_target): New.
8527 * linux-nat.h: Include "inf-ptrace.h".
8528 (linux_nat_target): New.
8529 (linux_target, linux_target_install_ops, linux_nat_add_target):
8530 Delete function declarations.
8531 (linux_target): Declare global.
8532 * linux-thread-db.c (thread_db_target): New.
8533 (thread_db_target::thread_db_target): New.
8534 (thread_db_ops): Delete.
8535 (the_thread_db_target): New.
8536 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8537 (thread_db_update_thread_list, thread_db_pid_to_str)
8538 (thread_db_extra_thread_info)
8539 (thread_db_thread_handle_to_thread_info)
8540 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8541 (thread_db_resume): Refactor as methods of thread_db_target.
8542 (init_thread_db_ops): Delete.
8543 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8544 * x86-linux-nat.c: Don't include "linux-nat.h".
8545 (super_post_startup_inferior): Delete.
8546 (x86_linux_nat_target::~x86_linux_nat_target): New.
8547 (x86_linux_child_post_startup_inferior)
8548 (x86_linux_read_description, x86_linux_enable_btrace)
8549 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8550 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8551 methods of x86_linux_nat_target.
8552 (x86_linux_create_target): Delete. Bits folded ...
8553 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8554 pointer.
8555 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8556 (x86_linux_nat_target): New class.
8557 (x86_linux_create_target): Delete.
8558 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8559 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8560 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8561 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8562 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8563 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8564 make extern.
8565 (x86_use_watchpoints): Delete.
8566 * x86-nat.h: Include "breakpoint.h" and "target.h".
8567 (x86_use_watchpoints): Delete.
8568 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8569 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8570 (x86_insert_watchpoint, x86_remove_watchpoint)
8571 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8572 (x86_stopped_by_hw_breakpoint): New declarations.
8573 (x86_nat_target): New template class.
8574
8575 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8576 (the_ppc_linux_nat_target): New.
8577 (ppc_linux_fetch_inferior_registers)
8578 (ppc_linux_can_use_hw_breakpoint)
8579 (ppc_linux_region_ok_for_hw_watchpoint)
8580 (ppc_linux_ranged_break_num_registers)
8581 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8582 (ppc_linux_insert_mask_watchpoint)
8583 (ppc_linux_remove_mask_watchpoint)
8584 (ppc_linux_can_accel_watchpoint_condition)
8585 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8586 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8587 (ppc_linux_watchpoint_addr_within_range)
8588 (ppc_linux_masked_watch_num_registers)
8589 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8590 (ppc_linux_read_description): Refactor as methods of
8591 ppc_linux_nat_target.
8592 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8593
8594 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8595 (procfs_target): New class.
8596 (the_procfs_target): New.
8597 (procfs_target): Delete function.
8598 (procfs_auxv_parse, procfs_attach, procfs_detach)
8599 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8600 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8601 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8602 (procfs_create_inferior, procfs_update_thread_list)
8603 (procfs_thread_alive, procfs_pid_to_str)
8604 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8605 (procfs_stopped_data_address, procfs_insert_watchpoint)
8606 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8607 (proc_find_memory_regions, procfs_info_proc)
8608 (procfs_make_note_section): Refactor as methods of procfs_target.
8609 (_initialize_procfs): Adjust.
8610 * sol-thread.c (sol_thread_target): New class.
8611 (sol_thread_ops): Now a sol_thread_target.
8612 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8613 (sol_thread_fetch_registers, sol_thread_store_registers)
8614 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8615 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8616 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8617 (init_sol_thread_ops): Delete.
8618 (_initialize_sol_thread): Adjust. Remove references to
8619 init_sol_thread_ops and complete_target_initialization.
8620
8621 * windows-nat.c (windows_nat_target): New class.
8622 (windows_fetch_inferior_registers)
8623 (windows_store_inferior_registers, windows_resume, windows_wait)
8624 (windows_attach, windows_detach, windows_pid_to_exec_file)
8625 (windows_files_info, windows_create_inferior)
8626 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8627 (windows_close, windows_pid_to_str, windows_xfer_partial)
8628 (windows_get_tib_address, windows_get_ada_task_ptid)
8629 (windows_thread_name, windows_thread_alive): Refactor as
8630 windows_nat_target methods.
8631 (do_initial_windows_stuff): Adjust.
8632 (windows_target): Delete function.
8633 (_initialize_windows_nat): Adjust.
8634
8635 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8636 (darwin_mourn_inferior, darwin_kill_inferior)
8637 (darwin_create_inferior, darwin_attach, darwin_detach)
8638 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8639 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8640 (darwin_supports_multi_process): Refactor as darwin_nat_target
8641 methods.
8642 (darwin_resume_to, darwin_files_info): Delete.
8643 (_initialize_darwin_inferior): Rename to ...
8644 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8645 * darwin-nat.h: Include "inf-child.h".
8646 (darwin_nat_target): New class.
8647 (darwin_complete_target): Delete.
8648 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8649 (darwin_target): New.
8650 (i386_darwin_fetch_inferior_registers)
8651 (i386_darwin_store_inferior_registers): Refactor as methods of
8652 darwin_nat_target.
8653 (darwin_complete_target): Delete, with ...
8654 (_initialize_i386_darwin_nat): ... bits factored out here.
8655
8656 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8657 (the_alpha_linux_nat_target): New.
8658 (alpha_linux_register_u_offset): Refactor as
8659 alpha_linux_nat_target method.
8660 (_initialize_alpha_linux_nat): Adjust.
8661 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8662 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8663 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8664 methods of linux_nat_trad_target.
8665 (linux_trad_target): Delete.
8666 * linux-nat-trad.h (linux_trad_target): Delete function.
8667 (linux_nat_trad_target): New class.
8668 * mips-linux-nat.c (mips_linux_nat_target): New class.
8669 (super_fetch_registers, super_store_registers, super_close):
8670 Delete.
8671 (the_mips_linux_nat_target): New.
8672 (mips64_linux_regsets_fetch_registers)
8673 (mips64_linux_regsets_store_registers)
8674 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8675 (mips_linux_register_u_offset, mips_linux_read_description)
8676 (mips_linux_can_use_hw_breakpoint)
8677 (mips_linux_stopped_by_watchpoint)
8678 (mips_linux_stopped_data_address)
8679 (mips_linux_region_ok_for_hw_watchpoint)
8680 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8681 (mips_linux_close): Refactor as methods of mips_linux_nat.
8682 (_initialize_mips_linux_nat): Adjust to C++ification.
8683
8684 * aix-thread.c (aix_thread_target): New class.
8685 (aix_thread_ops): Now an aix_thread_target.
8686 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8687 (aix_thread_fetch_registers, aix_thread_store_registers)
8688 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8689 (aix_thread_thread_alive, aix_thread_pid_to_str)
8690 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8691 Refactor as methods of aix_thread_target.
8692 (init_aix_thread_ops): Delete.
8693 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8694 and complete_target_initialization.
8695 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8696 (rs6000_nat_target): New class.
8697 (the_rs6000_nat_target): New.
8698 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8699 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8700 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8701 (super_create_inferior): Delete.
8702 (_initialize_rs6000_nat): Adjust to C++ification.
8703
8704 * arm-linux-nat.c (arm_linux_nat_target): New class.
8705 (the_arm_linux_nat_target): New.
8706 (arm_linux_fetch_inferior_registers)
8707 (arm_linux_store_inferior_registers, arm_linux_read_description)
8708 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8709 (arm_linux_remove_hw_breakpoint)
8710 (arm_linux_region_ok_for_hw_watchpoint)
8711 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8712 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8713 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8714 arm_linux_nat_target.
8715 (_initialize_arm_linux_nat): Adjust to C++ification.
8716
8717 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8718 (the_aarch64_linux_nat_target): New.
8719 (aarch64_linux_fetch_inferior_registers)
8720 (aarch64_linux_store_inferior_registers)
8721 (aarch64_linux_child_post_startup_inferior)
8722 (aarch64_linux_read_description)
8723 (aarch64_linux_can_use_hw_breakpoint)
8724 (aarch64_linux_insert_hw_breakpoint)
8725 (aarch64_linux_remove_hw_breakpoint)
8726 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8727 (aarch64_linux_region_ok_for_hw_watchpoint)
8728 (aarch64_linux_stopped_data_address)
8729 (aarch64_linux_stopped_by_watchpoint)
8730 (aarch64_linux_watchpoint_addr_within_range)
8731 (aarch64_linux_can_do_single_step): Refactor as methods of
8732 aarch64_linux_nat_target.
8733 (super_post_startup_inferior): Delete.
8734 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8735
8736 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8737 (the_hppa_linux_nat_target): New.
8738 (hppa_linux_fetch_inferior_registers)
8739 (hppa_linux_store_inferior_registers): Refactor as methods of
8740 hppa_linux_nat_target.
8741 (_initialize_hppa_linux_nat): Adjust to C++ification.
8742
8743 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8744 (the_ia64_linux_nat_target): New.
8745 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8746 (ia64_linux_stopped_data_address)
8747 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8748 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8749 ia64_linux_nat_target methods.
8750 (super_xfer_partial): Delete.
8751 (_initialize_ia64_linux_nat): Adjust to C++ification.
8752
8753 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8754 (the_m32r_linux_nat_target): New.
8755 (m32r_linux_fetch_inferior_registers)
8756 (m32r_linux_store_inferior_registers): Refactor as
8757 m32r_linux_nat_target methods.
8758 (_initialize_m32r_linux_nat): Adjust to C++ification.
8759
8760 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8761 (the_m68k_linux_nat_target): New.
8762 (m68k_linux_fetch_inferior_registers)
8763 (m68k_linux_store_inferior_registers): Refactor as
8764 m68k_linux_nat_target methods.
8765 (_initialize_m68k_linux_nat): Adjust to C++ification.
8766
8767 * s390-linux-nat.c (s390_linux_nat_target): New class.
8768 (the_s390_linux_nat_target): New.
8769 (s390_linux_fetch_inferior_registers)
8770 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8771 (s390_insert_watchpoint, s390_remove_watchpoint)
8772 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8773 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8774 (s390_auxv_parse, s390_read_description): Refactor as methods of
8775 s390_linux_nat_target.
8776 (_initialize_s390_nat): Adjust to C++ification.
8777
8778 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8779 (the_sparc_linux_nat_target): New.
8780 (_initialize_sparc_linux_nat): Adjust to C++ification.
8781 * sparc-nat.c (sparc_fetch_inferior_registers)
8782 (sparc_store_inferior_registers): Remove target_ops parameter.
8783 * sparc-nat.h (sparc_fetch_inferior_registers)
8784 (sparc_store_inferior_registers): Remove target_ops parameter.
8785 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8786 (the_sparc64_linux_nat_target): New.
8787 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8788
8789 * spu-linux-nat.c (spu_linux_nat_target): New class.
8790 (the_spu_linux_nat_target): New.
8791 (spu_child_post_startup_inferior, spu_child_post_attach)
8792 (spu_child_wait, spu_fetch_inferior_registers)
8793 (spu_store_inferior_registers, spu_xfer_partial)
8794 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8795 methods.
8796 (_initialize_spu_nat): Adjust to C++ification.
8797
8798 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8799 (the_tilegx_linux_nat_target): New.
8800 (fetch_inferior_registers, store_inferior_registers):
8801 Refactor as methods.
8802 (_initialize_tile_linux_nat): Adjust to C++ification.
8803
8804 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8805 (the_xtensa_linux_nat_target): New.
8806 (xtensa_linux_fetch_inferior_registers)
8807 (xtensa_linux_store_inferior_registers): Refactor as
8808 xtensa_linux_nat_target methods.
8809 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8810
8811 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8812 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8813 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8814 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8815 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8816 (fbsd_stopped_by_sw_breakpoint)
8817 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8818 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8819 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8820 (fbsd_post_startup_inferior, fbsd_post_attach)
8821 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8822 (fbsd_set_syscall_catchpoint)
8823 (super_xfer_partial, super_resume, super_wait)
8824 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8825 (fbsd_handle_debug_trap): Remove target_ops parameter.
8826 (fbsd_nat_add_target): Delete.
8827 * fbsd-nat.h: Include "inf-ptrace.h".
8828 (fbsd_nat_add_target): Delete.
8829 (USE_SIGTRAP_SIGINFO): Define.
8830 (fbsd_nat_target): New class.
8831
8832 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8833 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8834 (amd64bsd_target): Delete.
8835 * amd64-bsd-nat.h: New file.
8836 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8837 "x86-bsd-nat.h".
8838 (amd64_fbsd_nat_target): New class.
8839 (the_amd64_fbsd_nat_target): New.
8840 (amd64fbsd_read_description): Refactor as method of
8841 amd64_fbsd_nat_target.
8842 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8843 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8844 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8845 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8846 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8847 (i386bsd_target): Delete.
8848 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8849 (i386bsd_fetch_inferior_registers)
8850 (i386bsd_store_inferior_registers): Declare.
8851 (i386_bsd_nat_target): New class.
8852 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8853 (the_i386_fbsd_nat_target): New.
8854 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8855 i386_fbsd_nat_target methods.
8856 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8857 (_initialize_i386fbsd_nat): Adjust to C++ification.
8858 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8859 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8860 (_initialize_x86_bsd_nat): Adjust to C++ification.
8861 * x86-bsd-nat.h: Include "x86-nat.h".
8862 (x86bsd_target): Delete declaration.
8863 (x86bsd_nat_target): New class.
8864
8865 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8866 (the_aarch64_fbsd_nat_target): New.
8867 (aarch64_fbsd_fetch_inferior_registers)
8868 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8869 aarch64_fbsd_nat_target.
8870 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8871 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8872 (the_alpha_bsd_nat_target): New.
8873 (alphabsd_fetch_inferior_registers)
8874 (alphabsd_store_inferior_registers): Refactor as
8875 alpha_bsd_nat_target methods.
8876 (_initialize_alphabsd_nat): Refactor as methods of
8877 alpha_bsd_nat_target.
8878 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8879 (the_amd64_nbsd_nat_target): New.
8880 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8881 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8882 (the_amd64_obsd_nat_target): New.
8883 (_initialize_amd64obsd_nat): Adjust to C++ification.
8884 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8885 (the_arm_fbsd_nat_target): New.
8886 (arm_fbsd_fetch_inferior_registers)
8887 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8888 (_initialize_arm_fbsd_nat): Refactor as methods of
8889 arm_fbsd_nat_target.
8890 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8891 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8892 (the_arm_netbsd_nat_target): New.
8893 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8894 arm_netbsd_nat_target.
8895 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8896 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8897 (the_hppa_nbsd_nat_target): New.
8898 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8899 hppa_nbsd_nat_target methods.
8900 (_initialize_hppanbsd_nat): Adjust to C++ification.
8901 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8902 (the_hppa_obsd_nat_target): New.
8903 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8904 methods of hppa_obsd_nat_target.
8905 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8906 add_target.
8907 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8908 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8909 add_target.
8910 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8911 (_initialize_i386obsd_nat): Use add_target.
8912 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8913 (the_m68k_bsd_nat_target): New.
8914 (m68kbsd_fetch_inferior_registers)
8915 (m68kbsd_store_inferior_registers): Refactor as methods of
8916 m68k_bsd_nat_target.
8917 (_initialize_m68kbsd_nat): Adjust to C++ification.
8918 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8919 (the_mips_fbsd_nat_target): New.
8920 (mips_fbsd_fetch_inferior_registers)
8921 (mips_fbsd_store_inferior_registers): Refactor as methods of
8922 mips_fbsd_nat_target.
8923 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8924 add_target.
8925 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8926 (the_mips_nbsd_nat_target): New.
8927 (mipsnbsd_fetch_inferior_registers)
8928 (mipsnbsd_store_inferior_registers): Refactor as methods of
8929 mips_nbsd_nat_target.
8930 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8931 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8932 (the_mips64_obsd_nat_target): New.
8933 (mips64obsd_fetch_inferior_registers)
8934 (mips64obsd_store_inferior_registers): Refactor as methods of
8935 mips64_obsd_nat_target.
8936 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8937 add_target.
8938 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8939 nbsd_nat_target.
8940 * nbsd-nat.h: Include "inf-ptrace.h".
8941 (nbsd_nat_target): New class.
8942 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8943 (obsd_wait): Refactor as methods of obsd_nat_target.
8944 (obsd_add_target): Delete.
8945 * obsd-nat.h: Include "inf-ptrace.h".
8946 (obsd_nat_target): New class.
8947 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8948 (the_ppc_fbsd_nat_target): New.
8949 (ppcfbsd_fetch_inferior_registers)
8950 (ppcfbsd_store_inferior_registers): Refactor as methods of
8951 ppc_fbsd_nat_target.
8952 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8953 add_target.
8954 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8955 (the_ppc_nbsd_nat_target): New.
8956 (ppcnbsd_fetch_inferior_registers)
8957 (ppcnbsd_store_inferior_registers): Refactor as methods of
8958 ppc_nbsd_nat_target.
8959 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8960 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8961 (the_ppc_obsd_nat_target): New.
8962 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8963 methods of ppc_obsd_nat_target.
8964 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8965 add_target.
8966 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8967 (the_sh_nbsd_nat_target): New.
8968 (shnbsd_fetch_inferior_registers)
8969 (shnbsd_store_inferior_registers): Refactor as methods of
8970 sh_nbsd_nat_target.
8971 (_initialize_shnbsd_nat): Adjust to C++ification.
8972 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8973 (inf_ptrace_xfer_partial): Delete.
8974 (sparc_xfer_partial, sparc_target): Delete.
8975 * sparc-nat.h (sparc_fetch_inferior_registers)
8976 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8977 (sparc_target): Delete function declaration.
8978 (sparc_target): New template class.
8979 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8980 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8981 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8982 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8983 add_target.
8984 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8985 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8986 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8987 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8988 add_target.
8989 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8990 (the_vax_bsd_nat_target): New.
8991 (vaxbsd_fetch_inferior_registers)
8992 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8993 methods.
8994 (_initialize_vaxbsd_nat): Adjust to C++ification.
8995
8996 * bsd-kvm.c (bsd_kvm_target): New class.
8997 (bsd_kvm_ops): Now a bsd_kvm_target.
8998 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8999 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9000 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9001 bsd_kvm_target.
9002 (bsd_kvm_return_one): Delete.
9003 (bsd_kvm_add_target): Adjust to C++ification.
9004
9005 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9006 (nto_procfs_target_procfs): New classes.
9007 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9008 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9009 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9010 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9011 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9012 (procfs_remove_hw_breakpoint, procfs_resume)
9013 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9014 (procfs_kill_inferior, procfs_store_registers)
9015 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9016 as methods of nto_procfs_target.
9017 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9018 (nto_native_ops): Delete.
9019 (procfs_open, procfs_native_open): Delete.
9020 (nto_native_ops): Now an nto_procfs_target_native.
9021 (init_procfs_targets): Adjust to C++ification.
9022 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9023 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9024 Refactor as methods of nto_procfs_target.
9025
9026 * go32-nat.c (go32_nat_target): New class.
9027 (the_go32_nat_target): New.
9028 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9029 (go32_store_registers, go32_xfer_partial, go32_files_info)
9030 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9031 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9032 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9033 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9034 (go32_target): Delete.
9035 (_initialize_go32_nat): Adjust to C++ification.
9036
9037 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9038 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9039 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9040 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9041 gnu_nat_target.
9042 (gnu_target): Delete.
9043 * gnu-nat.h (gnu_target): Delete.
9044 (gnu_nat_target): New class.
9045 * i386-gnu-nat.c (gnu_base_target): New.
9046 (i386_gnu_nat_target): New class.
9047 (the_i386_gnu_nat_target): New.
9048 (_initialize_i386gnu_nat): Adjust to C++ification.
9049
3fffc070
PA
90502018-05-02 Pedro Alves <palves@redhat.com>
9051
9052 * bfd-target.c (target_bfd_xclose): Rename to ...
9053 (target_bfd_close): ... this.
9054 (target_bfd_reopen): Adjust.
9055 * target.c (target_close): Remove references to to_xclose.
9056 * target.h (target_ops::to_xclose): Delete.
9057 (target_ops::to_close): Update comments.
9058
6798487f
PA
90592018-05-02 Pedro Alves <palves@redhat.com>
9060
9061 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9062 "linux-nat.h".
9063 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9064 * inf-ptrace.c (inf_ptrace_register_u_offset)
9065 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9066 (inf_ptrace_store_register, inf_ptrace_store_registers)
9067 (inf_ptrace_trad_target): Move to ...
9068 * linux-nat-trad.c: ... this new file.
9069 * linux-nat-trad.h: New file.
9070 * linux-nat.c (linux_target_install_ops): Make extern.
9071 (linux_trad_target): Delete.
9072 * linux-nat.h (linux_trad_target): Delete declaration.
9073 (linux_target_install_ops): Declare.
9074 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9075 "linux-nat.h".
9076
c1955e17
PA
90772018-05-02 Pedro Alves <palves@redhat.com>
9078
9079 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9080 procfs_target/add_target here.
9081 * procfs.c (procfs_target): Make static.
9082 (_initialize_procfs): Call add_target here.
9083 * procfs.h (struct target_ops): Remove forward declaration.
9084 (procfs_target): Remove declaration.
9085 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9086
b5c8fcb1
PA
90872018-05-02 Pedro Alves <palves@redhat.com>
9088
9089 * procfs.c (procfs_stopped_by_watchpoint)
9090 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9091 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9092 Forward declare.
9093 (procfs_use_watchpoints): Delete, move contents...
9094 (procfs_target): ... here.
9095 * procfs.h (procfs_use_watchpoints): Delete declaration.
9096 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9097 procfs_use_watchpoints.
9098 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9099 procfs_use_watchpoints.
9100
0489430a
TT
91012018-05-02 Tom Tromey <tom@tromey.com>
9102
9103 PR python/20084:
9104 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9105 and var_zuinteger_unlimited.
9106 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9107 and PARAM_ZUINTEGER_UNLIMITED.
9108 (set_parameter_value): Handle var_zuinteger and
9109 var_zuinteger_unlimited.
9110 (add_setshow_generic): Likewise.
9111 (parmpy_init): Likewise.
9112
1632f8ba
DR
91132018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9114
9115 PR rust/23124
9116 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9117 pointer is not null before dereferencing it.
9118
76761936
TT
91192018-04-30 Tom Tromey <tom@tromey.com>
9120
9121 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9122 is_mi_like_p.
9123
2d33446d
TT
91242018-04-30 Tom Tromey <tom@tromey.com>
9125
9126 * breakpoint.c (mention): Remove use of is_mi_like_p.
9127 (print_mention_ranged_breakpoint): Likewise.
9128 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9129 of is_mi_like_p.
9130
f3c6abab
TT
91312018-04-30 Tom Tromey <tom@tromey.com>
9132
9133 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9134
40c03530
TT
91352018-04-30 Tom Tromey <tom@tromey.com>
9136
9137 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9138 (info_spu_event_command): Remove some uses of is_mi_like_p.
9139
2038b7fd
TT
91402018-04-30 Tom Tromey <tom@tromey.com>
9141
9142 * python/py-framefilter.c (py_print_single_arg)
9143 (enumerate_locals, py_print_args, py_print_frame): Remove some
9144 uses of is_mi_like_p.
9145
4904c3c6
TT
91462018-04-30 Tom Tromey <tom@tromey.com>
9147
9148 * ui-out.c: Update.
9149 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9150 * ui-out.h (ui_out::is_mi_like_p): Now const.
9151 (ui_out::do_is_mi_like_p): Now const.
9152 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9153
7c66fffc
TT
91542018-04-30 Tom Tromey <tom@tromey.com>
9155
9156 * varobj.c (varobj_set_visualizer): Use new_reference.
9157 * python/python.c (gdbpy_decode_line): Use new_reference.
9158 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9159 new_reference.
9160
bbfa6f00
TT
91612018-04-30 Tom Tromey <tom@tromey.com>
9162
9163 * varobj.c (install_new_value): Use new_reference.
9164 * value.h (value_incref): Return void. Swap intro comment with
9165 value_decref.
9166 * value.c (set_value_parent): Use new_reference.
9167 (value_incref): Return void. Update intro comment.
9168 (release_value): Use new_reference.
9169 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9170
1831a9f9
TT
91712018-04-30 Tom Tromey <tom@tromey.com>
9172
9173 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9174 * gdb_bfd.h (new_bfd_ref): Remove.
9175 (gdb_bfd_open): Update comment.
9176 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9177 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9178 (gdb_bfd_fdopenr): Use new_reference.
9179 * exec.c (exec_file_attach): Use new_reference.
9180
7c1b5f3d
TT
91812018-04-30 Tom Tromey <tom@tromey.com>
9182
9183 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9184 method.
9185
e11fb955
TT
91862018-04-30 Tom Tromey <tom@tromey.com>
9187
9188 * jit.c (jit_read_code_entry): Use type_align.
9189 * i386-tdep.c (i386_gdbarch_init): Don't call
9190 set_gdbarch_long_long_align_bit.
9191 * gdbarch.sh: Remove long_long_align_bit.
9192 * gdbarch.c, gdbarch.h: Rebuild.
9193 * arc-tdep.c (arc_type_align): New function.
9194 (arc_gdbarch_init): Use arc_type_align. Don't call
9195 set_gdbarch_long_long_align_bit.
9196
2fff16dd
TT
91972018-04-30 Tom Tromey <tom@tromey.com>
9198
9199 * rust-lang.c (rust_type_alignment): Remove.
9200 (rust_composite_type): Use type_align.
9201
6d7bb824
TT
92022018-04-30 Tom Tromey <tom@tromey.com>
9203
9204 * NEWS: Mention Type.align.
9205 * python/py-type.c (typy_get_alignof): New function.
9206 (type_object_getset): Add "alignof".
9207
007e1530
TT
92082018-04-30 Tom Tromey <tom@tromey.com>
9209
9210 PR exp/17095:
9211 * NEWS: Update.
9212 * std-operator.def (UNOP_ALIGNOF): New operator.
9213 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9214 New.
9215 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9216 * c-lang.c (c_op_print_tab): Add alignof.
9217 * c-exp.y (ALIGNOF): New token.
9218 (exp): Add "ALIGNOF" production.
9219 (ident_tokens): Add _Alignof and alignof.
9220
2b4424c3
TT
92212018-04-30 Tom Tromey <tom@tromey.com>
9222
9223 * i386-tdep.c (i386_type_align): New function.
9224 (i386_gdbarch_init): Update.
9225 * gdbarch.sh (type_align): New method.
9226 * gdbarch.c, gdbarch.h: Rebuild.
9227 * arch-utils.h (default_type_align): Declare.
9228 * arch-utils.c (default_type_align): New function.
9229 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9230 (struct type) <align_log2>: New field.
9231 <instance_flags>: Now a bitfield.
9232 (TYPE_RAW_ALIGN): New macro.
9233 (type_align, type_raw_align, set_type_align): Declare.
9234 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9235 functions.
9236 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9237 (get_alignment, maybe_set_alignment): New functions.
9238 (read_structure_type, read_enumeration_type, read_array_type)
9239 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9240 (read_subrange_type, read_base_type): Set type alignment.
9241
d33bc52e
SM
92422018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9243
9244 * dwarf2read.c (read_index_from_section): Use bool.
9245
e28b63a9
FG
92462018-04-29 Fabian Groffen <grobian@gentoo.org>
9247
9248 PR gdb/22950
9249 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9250 with #ifdef.
9251
cd8c76e4
JR
92522018-04-29 John Reiser <jreiser@BitWagon.com>
9253
9254 PR build/22873
9255 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9256 last step, and do it atomically.
9257
476d250e
AO
92582018-04-27 Alexandre Oliva <aoliva@redhat.com>
9259
9260 * compile/compile-c-types.c (convert_int, convert_float):
9261 Update for C FE v1.
9262
6873858b
TT
92632018-04-27 Tom Tromey <tom@tromey.com>
9264
9265 PR rust/22545:
9266 * rust-lang.c (rust_inclusive_range_type_p): New function.
9267 (rust_range): Handle inclusive ranges.
9268 (rust_compute_range): Likewise.
9269 * rust-exp.y (struct rust_op) <inclusive>: New field.
9270 (DOTDOTEQ): New constant.
9271 (range_expr): Add "..=" productions.
9272 (operator_tokens): Add "..=" token.
9273 (ast_range): Add "inclusive" parameter.
9274 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9275 ranges.
9276 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9277 bounds values.
9278 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9279 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9280 Update comments.
9281 * expprint.c (print_subexp_standard): Handle new bounds values.
9282 (dump_subexp_body_standard): Likewise.
9283
632e107b
TT
92842018-04-27 Tom Tromey <tom@tromey.com>
9285
9286 * configure: Rebuild.
9287 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9288 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9289 "OVERRIDE".
9290 (class symbol_needs_eval_context): Likewise.
9291 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9292 (mock_mapped_index::symbol_name_at): Use "override". Remove
9293 "virtual".
9294 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9295 "override".
9296 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9297 * aarch64-tdep.c (instruction_reader::read): Use "override".
9298 (instruction_reader_test::read): Likewise.
9299 * arm-tdep.c (instruction_reader::read): Use "override".
9300 (instruction_reader_thumb::read): Likewise.
9301
b75abf5b
AK
93022018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9303
9304 PR remote/9665
9305 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9306 instead of remote_send.
9307 (remote_send): Remove.
9308
79188d8d
PA
93092018-04-26 Pedro Alves <palves@redhat.com>
9310
9311 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9312 find_function_start_sal instead of find_pc_line.
9313
f50776aa
PA
93142018-04-26 Pedro Alves <palves@redhat.com>
9315
9316 * breakpoint.c (set_breakpoint_location_function): Handle
9317 mst_data_gnu_ifunc.
9318 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9319 * elfread.c (elf_symtab_read): Give data symbols with
9320 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9321 (elf_rel_plt_read): Update comment.
9322 * linespec.c (convert_linespec_to_sals): Handle
9323 mst_data_gnu_ifunc.
9324 (minsym_found): Handle mst_data_gnu_ifunc.
9325 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9326 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9327 * parse.c (find_minsym_type_and_address): Handle
9328 mst_data_gnu_ifunc.
9329 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9330 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9331 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9332 comment.
9333 <mst_data_gnu_ifunc>: New enumerator.
9334
20944a6e
PA
93352018-04-26 Pedro Alves <palves@redhat.com>
9336
9337 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9338 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9339 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9340 Handle it.
9341 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9342 (lookup_minimal_symbol_by_pc): Adjust.
9343 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9344 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9345 * minsyms.h (lookup_msym_prefer): New enum.
9346 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9347 parameter by a lookup_msym_prefer parameter.
9348
1adeb822
PA
93492018-04-26 Pedro Alves <palves@redhat.com>
9350
9351 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9352 ends in "@plt" instead of looking at the symbol's section.
9353
a0aca7b0
PA
93542018-04-26 Pedro Alves <palves@redhat.com>
9355
9356 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9357 all references.
9358 (find_pc_partial_function_gnu_ifunc): Rename to ...
9359 (find_pc_partial_function): ... this, and remove references to
9360 'is_gnu_ifunc_p'.
9361 (find_pc_partial_function): Delete old implementation.
9362 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9363
76af0f26
PA
93642018-04-26 Pedro Alves <palves@redhat.com>
9365
9366 * linespec.c (struct bound_minimal_symbol_search_key): New.
9367 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9368 skip first line if we found a GNU ifunc minimal symbol by name.
9369 (compare_msymbols): Change parameters to work with a destructured
9370 lhs minsym.
9371 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9372 functions.
9373
3467ec66
PA
93742018-04-26 Pedro Alves <palves@redhat.com>
9375
9376 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9377 ifunc targets here. Instead, if we have an ifunc minsym, use its
9378 address/name.
9379 (add_location_to_breakpoint): Store the minsym and the objfile in
9380 the breakpoint location.
9381 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9382 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9383 Record the minsym in the sal.
9384 * symtab.h (symtab_and_line) <msymbol>: New field.
9385
28f4fa4d
PA
93862018-04-26 Pedro Alves <palves@redhat.com>
9387
9388 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9389 unless we actually resolved the ifunc.
9390
ca31ab1d
PA
93912018-04-26 Pedro Alves <palves@redhat.com>
9392
9393 * c-exp.y (variable production): Prefer ifunc minsyms over
9394 regular function symbols.
9395 * symtab.c (find_gnu_ifunc): New function.
9396 * minsyms.h (lookup_msym_prefer): New enum.
9397 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9398 parameter by a lookup_msym_prefer parameter.
9399 * symtab.h (find_gnu_ifunc): New declaration.
9400
8388016d
PA
94012018-04-26 Pedro Alves <palves@redhat.com>
9402
9403 * blockframe.c (find_gnu_ifunc_target_type): New function.
9404 (find_function_type): New.
9405 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9406 return a value with a memory address.
9407 (eval_call): For calls to GNU ifunc functions, try to find the
9408 type of the target function from the type that the resolver
9409 returns.
9410 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9411 symbols.
9412 * infcall.c (find_function_return_type): Delete.
9413 (find_function_addr): Add 'function_type' parameter. For calls to
9414 GNU ifunc functions, try to find the type of the target function
9415 from the type that the resolver returns, and return it via
9416 FUNCTION_TYPE.
9417 (call_function_by_hand_dummy): Adjust to use the function type
9418 returned by find_function_addr.
9419 (find_function_addr): Add 'function_type' parameter and move
9420 description here.
9421 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9422 declarations.
9423
a376e11d
PA
94242018-04-26 Pedro Alves <palves@redhat.com>
9425
9426 * c-exp.y (variable production): Skip finding an alias for ifunc
9427 symbols.
9428
02e169e2
PA
94292018-04-26 Pedro Alves <palves@redhat.com>
9430
9431 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9432
249b5733
PA
94332018-04-25 Pedro Alves <palves@redhat.com>
9434
9435 * infcmd.c (kill_command): Print the pid as string, not the whole
9436 thread's ptid. Add comment. s/has been killed/killed/ in output
9437 message.
9438 * remote.c (remote_detach_1): Print the pid as string, not the
9439 whole thread's ptid.
9440
f67c0c91
SDJ
94412018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9442 Sergio Durigan Junior <sergiodj@redhat.com>
9443 Pedro Alves <palves@redhat.com>
9444
9445 * infcmd.c (kill_command): Print message when inferior has
9446 been killed.
9447 * inferior.c (print_inferior_events): Remove 'static'. Set as
9448 '1'.
9449 (add_inferior): Improve message printed when
9450 'print_inferior_events' is on.
9451 (exit_inferior): Remove message printed when
9452 'print_inferior_events' is on.
9453 (detach_inferior): Improve message printed when
9454 'print_inferior_events' is on.
9455 (initialize_inferiors): Use 'add_inferior_silent' to set
9456 'current_inferior_'.
9457 * inferior.h (print_inferior_events): Declare here as
9458 'extern'.
9459 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9460 '[Detaching...]' messages when 'print_inferior_events' is on.
9461 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9462 as prefix/suffix for messages. Remove periods. Fix erroneous
9463 'Detaching after fork from child...', replace it by '... from
9464 parent...'.
9465 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9466 prefix/suffix when printing 'Detaching...' messages. Print
9467 them when 'print_inferior_events' is on.
9468 * remote.c (remote_detach_1): Print message when detaching
9469 from inferior and '!is_fork_parent'.
9470
e427af18
TT
94712018-04-24 Tom Tromey <tom@tromey.com>
9472
9473 * cli-out.h: Reindent.
9474
05b1d8d6
TT
94752018-04-24 Tom Tromey <tom@tromey.com>
9476
9477 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9478 (cli_ui_out::do_field_string): Use fputs_filtered.
9479 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9480
a95c7dab
TT
94812018-04-23 Tom Tromey <tom@tromey.com>
9482
9483 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9484 gdb::unique_xmalloc_ptr.
9485
458412c3
TT
94862018-04-23 Tom Tromey <tom@tromey.com>
9487
9488 * configure: Rebuild.
9489
db86b02b
RS
94902018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9491
9492 PR gdb/23095
9493 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9494 prepare_for_testing. Set normal_bp to r_debug_state if target
9495 is bsd.
9496
00aecdcf
PA
94972018-04-21 Pedro Alves <palves@redhat.com>
9498 Rajendra SY <rajendra.sy@gmail.com>
9499
9500 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9501 * remote.c (extended_remote_attach): In all-stop mode, mark the
9502 thread as executing.
9503
224608c3
PW
95042018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9505
9506 * thread.c (thread_apply_all_command): Fix comment.
9507 (thread_command): Fix comment.
9508
3b74854b
AH
95092018-04-10 Alan Hayward <alan.hayward@arm.com>
9510
9511 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9512 parameter.
9513 * features/aarch64-core.c (create_feature_aarch64_core):
9514 Regenerate.
9515 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9516 Likewise.
9517 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9518 Likewise.
9519 * features/i386/32bit-avx512.c
9520 (create_feature_i386_32bit_avx512): Likewise.
9521 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9522 Likewise.
9523 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9524 Likewise.
9525 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9526 Likewise.
9527 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9528 Likewise.
9529 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9530 Likewise.
9531 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9532 Likewise.
9533 * features/i386/64bit-avx512.c
9534 (create_feature_i386_64bit_avx512): Likewise.
9535 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9536 Likewise.
9537 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9538 Likewise.
9539 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9540 Likewise.
9541 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9542 Likewise.
9543 * features/i386/64bit-segments.c
9544 (create_feature_i386_64bit_segments): Likewise.
9545 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9546 Likewise.
9547 * features/i386/x32-core.c
9548 (create_feature_i386_x32_core): Likewise.
9549 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9550 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9551 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9552 * target-descriptions.c: In generated code, don't pass xml
9553 filename.
9554
e98577a9
AH
95552018-04-18 Alan Hayward <alan.hayward@arm.com>
9556
9557 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9558 (print_xml_feature::visit_post): Likewise.
9559 (print_xml_feature::visit): Likewise.
9560 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9561 (print_xml_feature): Add new class.
9562 * regformats/regdat.sh: Null xmltarget on feature targets.
9563 * target-descriptions.c (struct target_desc): Add xmltarget.
9564 (maintenance_check_tdesc_xml_convert): Add unittest function.
9565 (tdesc_get_features_xml): Add function to get xml.
9566 (maintenance_check_xml_descriptions): Test xml generation.
9567 * xml-tdesc.c (string_read_description_xml): Add function.
9568 * xml-tdesc.h (string_read_description_xml): Add declaration.
9569
ad7fc756
AH
95702018-04-18 Alan Hayward <alan.hayward@arm.com>
9571
9572 * features/Makefile: Add feature marker to targets with new style
9573 target descriptions.
9574 * regformats/aarch64.dat: Regenerate.
9575 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9576 * regformats/i386/amd64-avx-linux.dat: Likewise.
9577 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9578 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9579 * regformats/i386/amd64-linux.dat: Likewise.
9580 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9581 * regformats/i386/amd64.dat: Likewise.
9582 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9583 * regformats/i386/i386-avx-linux.dat: Likewise.
9584 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9585 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9586 * regformats/i386/i386-linux.dat: Likewise.
9587 * regformats/i386/i386-mmx-linux.dat: Likewise.
9588 * regformats/i386/i386-mpx-linux.dat: Likewise.
9589 * regformats/i386/i386.dat: Likewise.
9590 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9591 * regformats/i386/x32-avx-linux.dat: Likewise.
9592 * regformats/i386/x32-linux.dat: Likewise.
9593 * regformats/tic6x-c62x-linux.dat: Likewise.
9594 * regformats/tic6x-c64x-linux.dat: Likewise.
9595 * regformats/tic6x-c64xp-linux.dat: Likewise.
9596 * regformats/regdat.sh: Parse feature marker.
9597
d278f585
AH
95982018-04-18 Alan Hayward <alan.hayward@arm.com>
9599
9600 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9601 (tdesc_osabi_name): Likewise.
9602 * target-descriptions.c (tdesc_architecture_name): Add new
9603 function.
9604 (tdesc_osabi_name): Likewise.
9605
eee8a18d
AH
96062018-04-18 Alan Hayward <alan.hayward@arm.com>
9607
9608 * common/tdesc.c (tdesc_predefined_type): Move to here.
9609 (tdesc_named_type): Likewise.
9610 (tdesc_create_vector): Likewise.
9611 (tdesc_create_struct): Likewise.
9612 (tdesc_set_struct_size): Likewise.
9613 (tdesc_create_union): Likewise.
9614 (tdesc_create_flags): Likewise.
9615 (tdesc_create_enum): Likewise.
9616 (tdesc_add_field): Likewise.
9617 (tdesc_add_typed_bitfield): Likewise.
9618 (tdesc_add_bitfield): Likewise.
9619 (tdesc_add_flag): Likewise.
9620 (tdesc_add_enum_value): Likewise.
9621 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9622 (struct tdesc_type_vector): Likewise.
9623 (struct tdesc_type_field): Likewise.
9624 (struct tdesc_type_with_fields): Likewise.
9625 (tdesc_create_enum): Add declaration.
9626 (tdesc_add_typed_bitfield): Likewise.
9627 (tdesc_add_enum_value): Likewise.
9628 * target-descriptions.c (tdesc_type_field): Move from here.
9629 (tdesc_type_builtin): Likewise.
9630 (tdesc_type_vector): Likewise.
9631 (tdesc_type_with_fields): Likewise.
9632 (tdesc_predefined_types): Likewise.
9633 (tdesc_named_type): Likewise.
9634 (tdesc_create_vector): Likewise.
9635 (tdesc_create_struct): Likewise.
9636 (tdesc_set_struct_size): Likewise.
9637 (tdesc_create_union): Likewise.
9638 (tdesc_create_flags): Likewise.
9639 (tdesc_create_enum): Likewise.
9640 (tdesc_add_field): Likewise.
9641 (tdesc_add_typed_bitfield): Likewise.
9642 (tdesc_add_bitfield): Likewise.
9643 (tdesc_add_flag): Likewise.
9644 (tdesc_add_enum_value): Likewise.
9645 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9646 (tdesc_add_typed_bitfield): Likewise.
9647 (tdesc_add_enum_value): Likewise.
9648
82ec9bc7
AH
96492018-04-18 Alan Hayward <alan.hayward@arm.com>
9650
9651 * common/tdesc.c (tdesc_feature::accept): Move to here.
9652 (tdesc_feature::operator==): Likewise.
9653 (tdesc_create_reg): Likewise.
9654 * common/tdesc.h (tdesc_type_kind): Likewise.
9655 (struct tdesc_type): Likewise.
9656 (struct tdesc_feature): Likewise.
9657 * regformats/regdat.sh: Create a feature.
9658 * target-descriptions.c (tdesc_type_kind): Move from here.
9659 (tdesc_type): Likewise.
9660 (tdesc_type_up): Likewise.
9661 (tdesc_feature): Likewise.
9662 (tdesc_create_reg): Likewise.
9663
ea3e7d71
AH
96642018-04-18 Alan Hayward <alan.hayward@arm.com>
9665
9666 * Makefile.in: Add arch/tdesc.c
9667 * common/tdesc.c: New file.
9668 * common/tdesc.h (tdesc_element_visitor): Move to here.
9669 (tdesc_element): Likewise.
9670 (tdesc_reg): Likewise.
9671 (tdesc_reg_up): Likewise.
9672 * regformats/regdef.h (reg): Add offset to constructors.
9673 * target-descriptions.c (tdesc_element_visitor): Move from here.
9674 (tdesc_element): Likewise.
9675 (tdesc_reg): Likewise.
9676 (tdesc_reg_up): Likewise.
9677
bedda9ac
TT
96782018-04-17 Tom Tromey <tom@tromey.com>
9679
9680 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9681 discriminant field.
9682
a037790e
TT
96832018-04-17 Tom Tromey <tom@tromey.com>
9684
9685 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9686
c7dcbf88
AA
96872018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9688
9689 * symtab.c (print_symbol_info): Skip printing filename and line
9690 number when `last' is NULL.
9691 (symtab_symbol_info): Use empty string instead of NULL for first
9692 invocation of print_symbol_info.
9693 (rbreak_command): Pass NULL to `last' parameter of
9694 print_symbol_info.
9695
07d28c77
SM
96962018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9697
9698 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9699 instead of nullptr.
9700
8a3de5e1
PA
97012018-04-16 Pedro Alves <palves@redhat.com>
9702
9703 * MAINTAINERS (sh): Remove.
9704 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9705 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9706 (ALLDEPFILES): Remove sh64-tdep.c.
9707 * NEWS: Mentions that support for SH-5/SH64 is removed.
9708 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9709 (sh*-*-openbsd*): Ditto.
9710 (sh64-*-elf*): Remove.
9711 (sh*): Remove.
9712 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9713 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9714 * sh-tdep.c: No longer include "sh64-tdep.h".
9715 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9716 * sh64-tdep.c, sh64-tdep.h: Remove files.
9717
a2a79012
PA
97182018-04-16 Pedro Alves <palves@redhat.com>
9719
9720 * MAINTAINERS: Remove m88k.
9721 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9722 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9723 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9724 * NEWS: Mention that support for m88k was removed.
9725 * configure.host (m88*-*-*): Remove support.
9726 * configure.nat (m88k-*-*): Remove support.
9727 * configure.tgt (m88*-*-openbsd*): Remove.
9728 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9729
eda4efb1
SM
97302018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9731
9732 * configure.tgt (x86_tobjs): New variable.
9733 (amd64_tobjs, i386_tobjs): Use it.
9734
b744723f
AA
97352018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9736
9737 * symtab.c (print_symbol_info): Precede the symbol definition by
9738 the line number when available.
9739 * NEWS: Advertise this enhancement.
9740
4a4495d6
MM
97412018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9742
9743 * NEWS (New options): announce set/show record btrace cpu.
9744 * btrace.c: Include record-btrace.h.
9745 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9746 the vendor is unknown.
9747 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9748 Maybe overwrite the btrace configuration's cpu.
9749 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9750 (btrace_fetch): Add cpu parameter. Update callers.
9751 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9752 Maybe overwrite the btrace configuration's cpu. Skip enabling
9753 errata workarounds if the vendor is unknown.
9754 * python/py-record-btrace.c: Include record-btrace.h.
9755 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9756 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9757 * record-btrace.c (record_btrace_cpu_state_kind): New.
9758 (record_btrace_cpu): New.
9759 (set_record_btrace_cpu_cmdlist): New.
9760 (record_btrace_get_cpu): New.
9761 (require_btrace_thread, record_btrace_info)
9762 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9763 (cmd_set_record_btrace_cpu_none): New.
9764 (cmd_set_record_btrace_cpu_auto): New.
9765 (cmd_set_record_btrace_cpu): New.
9766 (cmd_show_record_btrace_cpu): New.
9767 (_initialize_record_btrace): Initialize set/show record btrace cpu
9768 commands.
9769 * record-btrace.h (record_btrace_get_cpu): New.
9770
69f90c75
MM
97712018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9772
9773 * record.c (set_record_command): Fix typo in message.
9774
b85310e1
MM
97752018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9776
9777 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9778
1d509aa6
MM
97792018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9780
9781 * infrun.c (process_event_stop_test): Call
9782 gdbarch_in_indirect_branch_thunk.
9783 * gdbarch.sh (in_indirect_branch_thunk): New.
9784 * gdbarch.c: Regenerated.
9785 * gdbarch.h: Regenerated.
9786 * x86-tdep.h: New.
9787 * x86-tdep.c: New.
9788 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9789 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9790 (ALLDEPFILES): Add x86-tdep.c.
9791 * arch-utils.h (default_in_indirect_branch_thunk): New.
9792 * arch-utils.c (default_in_indirect_branch_thunk): New.
9793 * i386-tdep: Include x86-tdep.h.
9794 (i386_in_indirect_branch_thunk): New.
9795 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9796 function.
9797 * amd64-tdep: Include x86-tdep.h.
9798 (amd64_in_indirect_branch_thunk): New.
9799 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9800
b4be9bfd
JK
98012018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9802
9803 PR gdb/23053
9804 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9805 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9806 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9807 regression.
9808
53d7df28
TT
98092018-04-12 Tom Tromey <tom@tromey.com>
9810
9811 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9812 (rust_evaluate_subexp): Likewise.
9813
70b33f19
PA
98142018-04-12 Pedro Alves <palves@redhat.com>
9815
9816 * procfs.c (procfs_detach): Make forward declaration's prototype
9817 match definition's protototype.
9818 (proc_get_LDT_entry): Remove stale do_cleanups call.
9819
436411b1
PA
98202018-04-12 Pedro Alves <palves@redhat.com>
9821
9822 * target.h (target_ops::to_has_exited): Delete.
9823 (target_has_exited): Delete.
9824 * target-delegates.c: Regenerate.
9825
20db9c52
PA
98262018-04-11 Pedro Alves <palves@redhat.com>
9827
9828 * target.c (fileio_fh_t::t): Add comment.
9829 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9830 (target_fileio_close): Handle a NULL target.
9831 (invalidate_fileio_fh): New.
9832 (target_close): Call it.
9833 * remote.c (remote_hostio_send_command): No longer check whether
9834 remote_desc is open.
9835
5ff79300
PA
98362018-04-11 Pedro Alves <palves@redhat.com>
9837
9838 * target.c (fileio_fh_t): Make it a named struct instead of a
9839 typedef.
9840 (fileio_fh_t::is_closed): New method.
9841 (DEF_VEC_O (fileio_fh_t)): Remove.
9842 (fileio_fhandles): Now a std::vector.
9843 (is_closed_fileio_fh): Delete.
9844 (acquire_fileio_fd): Adjust. Rename parameters.
9845 (release_fileio_fd): Adjust.
9846 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9847 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9848 (target_fileio_close): Adjust.
9849
6e22e10d
SM
98502018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9851
9852 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9853 index.
9854
731f534f
PA
98552018-04-10 Pedro Alves <palves@redhat.com>
9856
9857 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9858 (scoped_finish_thread_state): New class.
9859 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9860 cleanup.
9861 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9862 (fetch_inferior_event, normal_stop): Likewise.
9863 * thread.c (finish_thread_state_cleanup): Delete.
9864
d5f4488f
SM
98652018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9866 Pedro Alves <palves@redhat.com>
9867
9868 * value.c: Include "selftest.h" and "common/array-view.h".
9869 (struct range) <operator ==>: New.
9870 (test_ranges_contain): New.
9871 (check_ranges_vector): New.
9872 (test_insert_into_bit_range_vector): New.
9873 (_initialize_values): Register selftests.
9874 * common/array-view.h (operator==, operator!=): New.
9875
b24531ed
SM
98762018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9877
9878 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9879 an iterator.
9880 * inline-frame.c: Include <algorithm>.
9881 (struct inline_state): Add constructor.
9882 (inline_state_s): Remove.
9883 (DEF_VEC_O(inline_state_s)): Remove.
9884 (inline_states): Change type to std::vector.
9885 (find_inline_frame_state): Adjust to std::vector.
9886 (allocate_inline_frame_state): Remove.
9887 (clear_inline_frame_state): Adjust to std::vector.
9888 (skip_inline_frames): Adjust to std::vector.
9889
c252925c
SM
98902018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9891
9892 * tracepoint.h (struct trace_state_variable): Add constructor.
9893 <name>: Change type to std::string.
9894 * tracepoint.c (tsv_s): Remove.
9895 (DEF_VEC_O(tsv_s)): Remove.
9896 (tvariables): Change to std::vector.
9897 (create_trace_state_variable): Adjust to std::vector.
9898 (find_trace_state_variable): Likewise.
9899 (find_trace_state_variable_by_number): Likewise.
9900 (delete_trace_state_variable): Likewise.
9901 (trace_variable_command): Adjust to std::string.
9902 (delete_trace_variable_command): Likewise.
9903 (tvariables_info_1): Adjust to std::vector.
9904 (save_trace_state_variables): Likewise.
9905 (start_tracing): Likewise.
9906 (merge_uploaded_trace_state_variables): Adjust to std::vector
9907 and std::string.
9908 * target.h (struct target_ops)
9909 <to_download_trace_state_variable>: Pass reference to
9910 trace_state_variable.
9911 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9912 * target-delegates.c: Re-generate.
9913 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9914 (mi_tsv_deleted): Likewise.
9915 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9916 * remote.c (remote_download_trace_state_variable): Change
9917 pointer to reference and adjust.
9918 * make-target-delegates (parse_argtypes): Handle references.
9919 (write_function_header): Likewise.
9920 (munge_type): Likewise.
9921
c9638d26
SM
99222018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9923
9924 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9925 string_view-selftests.c.
9926 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9927 testsuite.
9928 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9929 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9930 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9931 * unittests/basic_string_view/element_access/char/1.cc:
9932 Likewise.
9933 * unittests/basic_string_view/element_access/char/empty.cc:
9934 Likewise.
9935 * unittests/basic_string_view/element_access/char/front_back.cc:
9936 Likewise.
9937 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9938 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9939 Likewise.
9940 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9941 Likewise.
9942 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9943 Likewise.
9944 * unittests/basic_string_view/operations/compare/char/1.cc:
9945 Likewise.
9946 * unittests/basic_string_view/operations/compare/char/13650.cc:
9947 Likewise.
9948 * unittests/basic_string_view/operations/copy/char/1.cc:
9949 Likewise.
9950 * unittests/basic_string_view/operations/data/char/1.cc:
9951 Likewise.
9952 * unittests/basic_string_view/operations/find/char/1.cc:
9953 Likewise.
9954 * unittests/basic_string_view/operations/find/char/2.cc:
9955 Likewise.
9956 * unittests/basic_string_view/operations/find/char/3.cc:
9957 Likewise.
9958 * unittests/basic_string_view/operations/find/char/4.cc:
9959 Likewise.
9960 * unittests/basic_string_view/operations/rfind/char/1.cc:
9961 Likewise.
9962 * unittests/basic_string_view/operations/rfind/char/2.cc:
9963 Likewise.
9964 * unittests/basic_string_view/operations/rfind/char/3.cc:
9965 Likewise.
9966 * unittests/basic_string_view/operations/substr/char/1.cc:
9967 Likewise.
9968 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9969 * unittests/string_view-selftests.c: New file.
9970
fdc11678
SM
99712018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9972
9973 * unittests/basic_string_view/capacity/1.cc: New file.
9974 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9975 * unittests/basic_string_view/cons/char/1.cc: New file.
9976 * unittests/basic_string_view/cons/char/2.cc: New file.
9977 * unittests/basic_string_view/cons/char/3.cc: New file.
9978 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9979 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9980 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9981 * unittests/basic_string_view/element_access/char/1.cc: New file.
9982 * unittests/basic_string_view/element_access/char/2.cc: New file.
9983 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9984 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9985 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9986 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9987 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9988 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9989 * unittests/basic_string_view/include.cc: New file.
9990 * unittests/basic_string_view/inserters/char/1.cc: New file.
9991 * unittests/basic_string_view/inserters/char/2.cc: New file.
9992 * unittests/basic_string_view/inserters/char/3.cc: New file.
9993 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9994 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9995 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9996 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9997 * unittests/basic_string_view/literals/types.cc: New file.
9998 * unittests/basic_string_view/literals/values.cc: New file.
9999 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10000 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10001 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10002 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10003 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10004 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10005 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10006 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10007 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10008 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10009 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10010 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10011 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10012 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10013 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10014 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10015 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10016 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10017 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10018 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10019 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10020 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10021 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10022 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10023 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10024 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10025 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10026 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10027 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10028 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10029 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10030 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10031 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10032 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10033 * unittests/basic_string_view/operators/char/2.cc: New file.
10034 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10035 * unittests/basic_string_view/range_access/char/1.cc: New file.
10036 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10037 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10038 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10039 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10040 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10041 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10042 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10043 * unittests/basic_string_view/typedefs.cc: New file.
10044 * unittests/basic_string_view/types/1.cc: New file.
10045
8345c4a2
SM
100462018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10047
10048 * common/gdb_string_view.h: Remove libstdc++ implementation
10049 details, adjust to gdb reality.
10050 * common/gdb_string_view.tcc: Likewise.
10051 * cli/cli-script.c (struct string_view): Remove.
10052 (user_args) <m_args>: Change element type to gdb::string_view.
10053 (user_args::insert_args): Adjust.
10054
7adcdf08
SM
100552018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10056
10057 * common/gdb_string_view.h: New file.
10058 * common/gdb_string_view.tcc: New file.
10059
41260ac2
SM
100602018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10061
10062 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10063 * configure: Re-generate.
10064
0bee6dd4
PA
100652018-04-09 Pedro Alves <palves@redhat.com>
10066
10067 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10068 (set_target_gdbarch): Call
10069 gdb::observers::architecture_changed.notify instead of
10070 observer_notify_architecture_changed.
10071
6f14adc5
SM
100722018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10073
10074 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10075 (do_restore_current_traceframe_cleanup): Remove.
10076 (restore_current_traceframe_cleanup_dtor): Remove.
10077 (make_cleanup_restore_current_traceframe): Remove.
10078 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10079 New.
10080 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10081 * infrun.c (fetch_inferior_event): Use
10082 scoped_restore_current_traceframe.
10083
b2bdb8cf
SM
100842018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10085
10086 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10087 Remove.
10088 <n_allocated_type_units>: Remove.
10089 <all_type_units>: Change to std::vector.
10090 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10091 to std::vector change.
10092 (dwarf2_per_objfile::get_cutu): Likewise.
10093 (dwarf2_per_objfile::get_tu): Likewise.
10094 (create_signatured_type_table_from_index): Likewise.
10095 (create_signatured_type_table_from_debug_names): Likewise.
10096 (dw2_symtab_iter_next): Likewise.
10097 (dw2_print_stats): Likewise.
10098 (dw2_expand_all_symtabs): Likewise.
10099 (dw2_expand_marked_cus): Likewise.
10100 (dw2_debug_names_iterator::next): Likewise.
10101 (dwarf2_initialize_objfile): Likewise.
10102 (add_signatured_type_cu_to_table): Likewise.
10103 (create_all_type_units): Likewise.
10104 (add_type_unit): Likewise.
10105 (struct tu_abbrev_offset): Add constructor.
10106 (build_type_psymtabs_1): Adjust to std::vector change.
10107 (print_tu_stats): Likewise.
10108 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10109 (write_debug_names): Likewise.
10110
b76e467d
SM
101112018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10112
10113 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10114 Make an std::vector.
10115 <n_comp_units>: Remove.
10116 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10117 to std::vector change.
10118 (dwarf2_per_objfile::get_cutu): Likewise.
10119 (dwarf2_per_objfile::get_cu): Likewise.
10120 (create_cus_from_index): Likewise.
10121 (create_addrmap_from_index): Likewise.
10122 (create_addrmap_from_aranges): Likewise.
10123 (dwarf2_read_index): Likewise.
10124 (dw2_find_last_source_symtab): Likewise.
10125 (dw2_map_symtabs_matching_filename): Likewise.
10126 (dw2_symtab_iter_next): Likewise.
10127 (dw2_print_stats): Likewise.
10128 (dw2_expand_all_symtabs): Likewise.
10129 (dw2_expand_symtabs_with_fullname): Likewise.
10130 (dw2_expand_marked_cus): Likewise.
10131 (dw2_map_symbol_filenames): Likewise.
10132 (create_cus_from_debug_names): Likewise.
10133 (dwarf2_read_debug_names): Likewise.
10134 (dw2_debug_names_iterator::next): Likewise.
10135 (dwarf2_initialize_objfile): Likewise.
10136 (set_partial_user): Likewise.
10137 (dwarf2_build_psymtabs_hard): Likewise.
10138 (read_comp_units_from_section): Remove arguments, adjust to
10139 std::vector change.
10140 (create_all_comp_units): Adjust to std::vector and
10141 read_comp_units_from_section changes.
10142 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10143 change.
10144 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10145 (psyms_seen_size): Likewise.
10146 (write_gdbindex): Likewise.
10147 (write_debug_names): Likewise.
10148
12359b5e
SM
101492018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10150
10151 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10152 with dwarf2_per_objfile.
10153 (create_cus_from_index): Likewise.
10154 (create_signatured_type_table_from_index): Likewise.
10155 (dwarf2_read_index): Likewise.
10156 (dwarf2_initialize_objfile): Likewise.
10157 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10158 per_cu rather than get_dwarf2_per_objfile.
10159
ff4c9fec
SM
101602018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10161
10162 * dwarf2read.h (struct signatured_type): Forward declare.
10163 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10164 New methods.
10165 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10166 (dw2_get_cutu): ...this.
10167 (dwarf2_per_objfile::get_cu): Rename from...
10168 (dw2_get_cu): ...this.
10169 (dwarf2_per_objfile::get_tu): New.
10170 (create_addrmap_from_index): Adjust.
10171 (create_addrmap_from_aranges): Adjust.
10172 (dw2_find_last_source_symtab): Adjust.
10173 (dw2_map_symtabs_matching_filename): Adjust.
10174 (dw2_symtab_iter_next): Adjust.
10175 (dw2_print_stats): Adjust.
10176 (dw2_expand_all_symtabs): Adjust.
10177 (dw2_expand_symtabs_with_fullname): Adjust.
10178 (dw2_expand_marked_cus): Adjust.
10179 (dw_expand_symtabs_matching_file_matcher): Adjust.
10180 (dw2_map_symbol_filenames): Adjust.
10181 (dw2_debug_names_iterator::next): Adjust.
10182 (dwarf2_initialize_objfile): Adjust.
10183 (set_partial_user): Adjust.
10184 (dwarf2_build_psymtabs_hard): Adjust.
10185
5ca3fcb6
SM
101862018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10187
10188 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10189 Remove unused variables.
10190 (dw2_map_symtabs_matching_filename): Likewise.
10191 (dwarf2_record_block_ranges): Likewise.
10192 (dwarf2_read_addr_index): Likewise.
10193 (follow_die_offset): Likewise.
10194
b2e586e8
SM
101952018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10196
10197 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10198 to symbol_file_add_main.
10199
7c4e78cf
SM
102002018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10201
10202 PR mi/22299
10203 * mi/mi-console.c (do_fputc_async_safe): New.
10204 (mi_console_file::write_async_safe): New.
10205 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10206 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10207 New.
10208 * ui-file.c (ui_file::putstrn): Adjust call to
10209 fputstrn_unfiltered.
10210 * utils.c (printchar): Replace do_fputs and do_fprintf
10211 parameters by do_fputc.
10212 (fputstr_filtered): Adjust call to printchar.
10213 (fputstr_unfiltered): Likewise.
10214 (fputstrn_filtered): Likewise.
10215 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10216 printchar.
10217 * utils.h (do_fputc_ftype): New typedef.
10218 (fputstrn_unfiltered): Add do_fputc parameter.
10219
5dc026d3
SM
102202018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10221
10222 * regformats/i386/i386-avx.dat: Remove.
10223
c912f608
SM
102242018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10225
10226 PR gdb/22979
10227 * amd64-tdep.c (amd64_none_init_abi): New function.
10228 (amd64_x32_none_init_abi): New function.
10229 (_initialize_amd64_tdep): Register handlers for x86-64 and
10230 x64_32 with GDB_OSABI_NONE.
10231 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10232 GDB_OSABI_NONE osabi.
10233
26540402
SM
102342018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10235
10236 PR gdb/22980
10237 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10238 GDB_OSABI_NONE.
10239 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10240 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10241
9018be22
SM
102422018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10243
10244 * common/byte-vector.h (char_vector): New type.
10245 * target.h (target_read_alloc): Return
10246 gdb::optional<byte_vector>.
10247 (target_read_stralloc): Return gdb::optional<char_vector>.
10248 (target_get_osdata): Return gdb::optional<char_vector>.
10249 * target.c (target_read_alloc_1): Templatize. Replacement
10250 manual memory management with vector.
10251 (target_read_alloc): Change return type, adjust.
10252 (target_read_stralloc): Change return type, adjust.
10253 (target_get_osdata): Change return type, adjust.
10254 * auxv.c (struct auxv_info) <length>: Remove.
10255 <data>: Change type to gdb::optional<byte_vector>.
10256 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10257 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10258 (target_auxv_search): Adjust.
10259 (fprint_target_auxv): Adjust.
10260 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10261 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10262 (linux_make_corefile_notes): Adjust.
10263 * osdata.c (get_osdata): Adjust.
10264 * remote.c (remote_get_threads_with_qxfer): Adjust.
10265 (remote_memory_map): Adjust.
10266 (remote_traceframe_info): Adjust.
10267 (btrace_read_config): Adjust.
10268 (remote_read_btrace): Adjust.
10269 (remote_pid_to_exec_file): Adjust.
10270 * solib-aix.c (solib_aix_get_library_list): Adjust.
10271 * solib-dsbt.c (decode_loadmap): Don't free buf.
10272 (dsbt_get_initial_loadmaps): Adjust.
10273 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10274 * solib-target.c (solib_target_current_sos): Adjust.
10275 * tracepoint.c (sdata_make_value): Adjust.
10276 * xml-support.c (xinclude_start_include): Adjust.
10277 (xml_fetch_content_from_file): Adjust.
10278 * xml-support.h (xml_fetch_another): Change return type.
10279 (xml_fetch_content_from_file): Change return type.
10280 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10281 * xml-tdesc.c (file_read_description_xml): Adjust.
10282 (fetch_available_features_from_target): Change return type.
10283 (target_fetch_description_xml): Adjust.
10284 (target_read_description_xml): Adjust.
10285
14c88955
TT
102862018-04-06 Tom Tromey <tom@tromey.com>
10287
10288 * value.c (~value): Update.
10289 (struct value) <contents>: Now unique_xmalloc_ptr.
10290 (value_contents_bits_eq, allocate_value_contents)
10291 (value_contents_raw, value_contents_all_raw)
10292 (value_contents_for_printing, value_contents_for_printing_const)
10293 (set_value_enclosing_type): Update.
10294
0c7e6dd8
TT
102952018-04-06 Tom Tromey <tom@tromey.com>
10296
10297 * value.c (range_s): Remove typedef, VEC.
10298 (struct range): Add operator<.
10299 (range_lessthan): Remove.
10300 (ranges_contain): Change type.
10301 (~value): Update.
10302 (struct value) <unavailable, optimized_out>: Now std::vector.
10303 (value_entirely_available)
10304 (value_entirely_covered_by_range_vector)
10305 (value_entirely_unavailable, value_entirely_optimized_out):
10306 Update.
10307 (insert_into_bit_range_vector): Change argument type.
10308 (find_first_range_overlap): Likewise.
10309 (struct ranges_and_idx, value_contents_bits_eq)
10310 (require_not_optimized_out, require_available): Update.
10311 (ranges_copy_adjusted): Change argument types.
10312 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10313
2c8331b9
TT
103142018-04-06 Tom Tromey <tom@tromey.com>
10315
10316 * value.c (~value): Update.
10317 (struct value) <parent>: Now a value_ref_ptr.
10318 (value_parent, set_value_parent, value_address, value_copy):
10319 Update.
10320
466ce3ae
TT
103212018-04-06 Tom Tromey <tom@tromey.com>
10322
10323 * value.c (struct value): Add constructor, destructor, and member
10324 initializers.
10325 (allocate_value_lazy, value_decref): Update.
10326
062d818d
TT
103272018-04-06 Tom Tromey <tom@tromey.com>
10328
10329 * value.c (struct value) <released, next>: Remove.
10330 (all_values): Now a std::vector.
10331 (allocate_value_lazy): Update.
10332 (value_next): Remove.
10333 (value_mark, value_free_to_mark, release_value)
10334 (value_release_to_mark): Update.
10335
a6535de1
TT
103362018-04-06 Tom Tromey <tom@tromey.com>
10337
10338 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10339 (free_value_chain): Remove.
10340 * value.c (free_value_chain): Remove.
10341 (value_release_to_mark): Return a std::vector.
10342 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10343 std::vector.
10344 (check_condition): Update.
10345 * eval.c (fetch_subexp_value): Change "val_chain" to a
10346 std::vector.
10347 * breakpoint.c (update_watchpoint): Update.
10348 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10349
b5621201
TT
103502018-04-06 Tom Tromey <tom@tromey.com>
10351
10352 * value.h (free_all_values): Remove.
10353 * value.c (free_all_values): Remove.
10354
4d0266a0
TT
103552018-04-06 Tom Tromey <tom@tromey.com>
10356
10357 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10358 (value_history_chain, value_history_count): Remove.
10359 (value_history): New global.
10360 (record_latest_value, access_value_history, show_values)
10361 (preserve_values): Update.
10362
b4d61099
TT
103632018-04-06 Tom Tromey <tom@tromey.com>
10364
10365 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10366 * varobj.c (varobj_set_display_format, varobj_set_value)
10367 (install_default_visualizer, construct_visualizer)
10368 (install_new_value, ~varobj, varobj_get_value_type)
10369 (my_value_of_variable, varobj_editable_p): Update.
10370 * c-varobj.c (c_describe_child, c_value_of_variable)
10371 (cplus_number_of_children, cplus_describe_child): Update.
10372 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10373 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10374 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10375
9b558729
TT
103762018-04-06 Tom Tromey <tom@tromey.com>
10377
10378 * printcmd.c (last_examine_address): Change type to
10379 value_ref_ptr.
10380 (do_examine, x_command): Update.
10381
850645cf
TT
103822018-04-06 Tom Tromey <tom@tromey.com>
10383
10384 * value.c (release_value): Update.
10385 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10386 (struct bpstats) <val>: Now a value_ref_ptr.
10387 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10388 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10389 (~watchpoint, print_it_watchpoint, watch_command_1)
10390 (invalidate_bp_value_on_memory_change): Update.
10391
22bc8444
TT
103922018-04-06 Tom Tromey <tom@tromey.com>
10393
10394 * varobj.c (varobj_clear_saved_item)
10395 (update_dynamic_varobj_children, install_new_value, ~varobj):
10396 Update.
10397 * value.h (value_incref): Move declaration earlier.
10398 (value_decref): Rename from value_free.
10399 (struct value_ref_policy): New.
10400 (value_ref_ptr): New typedef.
10401 (struct value_deleter): Remove.
10402 (gdb_value_up): Remove typedef.
10403 (release_value): Change return type.
10404 (release_value_or_incref): Remove.
10405 * value.c (set_value_parent): Update.
10406 (value_incref): Change return type.
10407 (value_decref): Rename from value_free.
10408 (value_free_to_mark, free_all_values, free_value_chain): Update.
10409 (release_value): Return value_ref_ptr.
10410 (release_value_or_incref): Remove.
10411 (record_latest_value, set_internalvar, clear_internalvar):
10412 Update.
10413 * stack.c (info_frame_command): Don't call value_free.
10414 * python/py-value.c (valpy_dealloc, valpy_new)
10415 (value_to_value_object): Update.
10416 * printcmd.c (do_examine): Update.
10417 * opencl-lang.c (lval_func_free_closure): Update.
10418 * mi/mi-main.c (register_changed_p): Don't call value_free.
10419 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10420 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10421 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10422 value_free.
10423 * guile/scm-value.c (vlscm_free_value_smob)
10424 (vlscm_scm_from_value): Update.
10425 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10426 (frame_unwind_register_unsigned, get_frame_register_bytes)
10427 (put_frame_register_bytes): Don't call value_free.
10428 * findvar.c (address_from_register): Don't call value_free.
10429 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10430 * dwarf2loc.c (entry_data_value_free_closure)
10431 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10432 (dwarf2_evaluate_loc_desc_full): Update.
10433 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10434 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10435 (~watchpoint, watch_command_1)
10436 (invalidate_bp_value_on_memory_change): Update.
10437 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10438
7f8a5d38
SM
104392018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10440
10441 PR gdb/23022
10442 * warning.m4: Add -Wno-error=deprecated-register.
10443 * configure: Re-generate.
10444
8a76bd3b
TT
104452018-04-05 Tom Tromey <tom@tromey.com>
10446
10447 * linespec.h: Remove include of "vec.h".
10448
8e8d776e
TT
104492018-04-05 Tom Tromey <tom@tromey.com>
10450
10451 * linespec.c (typep): Remove typedef.
10452 (find_methods, find_superclass_methods): Take a std::vector.
10453 (find_method): Use std::vector.
10454
9b2f8581
TT
104552018-04-05 Tom Tromey <tom@tromey.com>
10456
10457 * utils.c (compare_strings): Remove.
10458 * utils.h (compare_strings): Remove.
10459 * objc-lang.h (find_imps): Update.
10460 * objc-lang.c (find_methods): Take a std::vector.
10461 (uniquify_strings, find_imps): Likewise.
10462 * linespec.c (find_methods): Take a std::vector.
10463 (decode_objc): Use std::vector.
10464 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10465 a std::vector.
10466 (find_method, find_function_symbols): Use std::vector.
10467
459a2e4c
TT
104682018-04-05 Tom Tromey <tom@tromey.com>
10469
10470 * completer.c (completion_tracker::completion_tracker): Remove
10471 cast.
10472 (completion_tracker::discard_completions): Likewise.
10473 * breakpoint.c (ambiguous_names_p): Remove cast.
10474 * ada-lang.c (_initialize_ada_language): Remove cast.
10475 * utils.h (streq): Update.
10476 (streq_hash): Add new declaration.
10477 * utils.c (streq): Return bool.
10478 (streq_hash): New function.
10479
9be2c17a
TT
104802018-04-05 Tom Tromey <tom@tromey.com>
10481
10482 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10483 Remove a string copy.
10484
f73c6ece
TT
104852018-04-05 Tom Tromey <tom@tromey.com>
10486
10487 * linespec.c (filter_results): Use std::vector.
10488 (decode_line_2, decode_line_full): Update.
10489
53a0f8a2
TT
104902018-04-05 Tom Tromey <tom@tromey.com>
10491
10492 * linespec.c (canonical_to_fullform): Return std::string.
10493 (filter_results): Update.
10494 (struct decode_line_2_item): Add constructor.
10495 <fullform, displayform>: Now std::string.
10496 (decode_line_2_compare_items): Now a std::sort comparator.
10497 (decode_line_2): Update.
10498
a5b5adf5
TT
104992018-04-05 Tom Tromey <tom@tromey.com>
10500
10501 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10502 (unexpected_linespec_error): Update.
10503 (linespec_parse_basic, parse_linespec): Update.
10504
6a307fc5
TT
105052018-04-05 Tom Tromey <tom@tromey.com>
10506
10507 * linespec.c (linespec_parse_basic): Reindent.
10508
41c1efc6
TT
105092018-04-05 Tom Tromey <tom@tromey.com>
10510
10511 * minsyms.h (iterate_over_minimal_symbols): Update.
10512 * minsyms.c (iterate_over_minimal_symbols): Take a
10513 gdb::function_view.
10514 * linespec.c (struct collect_minsyms): Remove.
10515 (compare_msyms): Now a std::sort comparator.
10516 (add_minsym): Add parameters.
10517 (search_minsyms_for_name): Update. Use std::vector.
10518
c5edbf3d
TT
105192018-04-03 Tom Tromey <tom@tromey.com>
10520
10521 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10522 gdb::byte_vector.
10523
b39efc48
WP
105242018-04-02 Weimin Pan <weimin.pan@oracle.com>
10525
10526 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10527
121ad66c 105282018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
10529
10530 PR gdb/16959
10531 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10532 printing static type.
10533
09473be8
TT
105342018-04-01 Tom Tromey <tom@tromey.com>
10535
10536 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10537 (rs6000_xfer_shared_libraries): Update.
10538
ec1f2d91
SM
105392018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10540
10541 * common/gdb_vecs.h (char_ptr): Remove.
10542 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10543
d8611974
SM
105442018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10545
10546 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10547 with std::vector.
10548 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10549
a18ba4e4
SM
105502018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10551
10552 * tracepoint.h (struct uploaded_tp): Initialize fields.
10553 <actions, step_actions, cmd_strings>: Change type to
10554 std::vector<char *>.
10555 * tracepoint.c (get_uploaded_tp): Allocate with new.
10556 (free_uploaded_tps): Free with delete.
10557 (parse_tracepoint_definition): Adjust to std::vector change.
10558 * breakpoint.c (read_uploaded_action): Likewise.
10559 (create_tracepoint_from_upload): Likewise.
10560 * ctf.c (ctf_write_uploaded_tp): Likewise.
10561 (SET_ARRAY_FIELD): Likewise.
10562 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10563
a7961323
TT
105642018-03-30 Tom Tromey <tom@tromey.com>
10565
10566 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10567 std::unique_ptr.
10568 (svr4_keep_data_in_core): Update.
10569 (svr4_read_so_list): Update.
10570
e83e4e24
TT
105712018-03-30 Tom Tromey <tom@tromey.com>
10572
10573 * windows-nat.c (handle_output_debug_string, handle_exception):
10574 Update.
10575 * target.h (target_read_string): Update.
10576 * target.c (target_read_string): Change "string" to
10577 unique_xmalloc_ptr.
10578 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10579 Update.
10580 * solib-frv.c (frv_current_sos): Update.
10581 * solib-dsbt.c (dsbt_current_sos): Update.
10582 * solib-darwin.c (darwin_current_sos): Update.
10583 * linux-thread-db.c (inferior_has_bug): Update.
10584 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10585 Update. Remove alloca.
10586 * ada-lang.c (ada_main_name): Update.
10587
263db9a1
TT
105882018-03-30 Tom Tromey <tom@tromey.com>
10589
10590 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10591 (struct dwo_file_deleter): New.
10592 (dwo_file_up): New typedef.
10593 (open_and_init_dwo_file): Use dwo_file_up.
10594 (free_dwo_file_cleanup): Remove.
10595
5dafb3d1
TT
105962018-03-30 Tom Tromey <tom@tromey.com>
10597
10598 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10599 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10600
11ed8cad
TT
106012018-03-30 Tom Tromey <tom@tromey.com>
10602
10603 * dwarf2read.c (class free_cached_comp_units): New class.
10604 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10605 (free_cached_comp_units): Remove function.
10606
9ae79dac
TT
106072018-03-30 Tom Tromey <tom@tromey.com>
10608
10609 * utils.h (make_cleanup_unpush_target): Remove.
10610 * inf-ptrace.c (struct target_unpusher): New.
10611 (target_unpush_up) New typedef.
10612 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10613 target_unpush_up.
10614 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10615
5aa89276
TT
106162018-03-27 Tom Tromey <tom@tromey.com>
10617
10618 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10619
1dbeed45
TT
106202018-03-27 Pedro Alves <palves@redhat.com>
10621 Tom Tromey <tom@tromey.com>
10622
10623 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10624 destructor. Now a class.
10625 (gdb_readline_wrapper_cleanup): Remove function.
10626 (gdb_readline_wrapper): Remove cleanups.
10627
c819b2c0
TT
106282018-03-27 Tom Tromey <tom@tromey.com>
10629
10630 * typeprint.h (struct type_print_options) <local_typedefs,
10631 global_typedefs>: Remove "struct" keyword.
10632 (class typedef_hash_table): New class.
10633 (recursively_update_typedef_hash, add_template_parameters)
10634 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10635 (find_typedef_in_hash): Don't declare.
10636 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10637 (typedef_hash_table::recursively_update): Rename from
10638 recursively_update_typedef_hash. Now a member.
10639 (typedef_hash_table::add_template_parameters): Rename from
10640 add_template_parameters. Now a member.
10641 (typedef_hash_table::typedef_hash_table): Now a constructor;
10642 rename from create_typedef_hash.
10643 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10644 rename from free_typedef_hash.
10645 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10646 (do_free_global_table): Remove.
10647 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10648 from copy_type_recursive.
10649 (create_global_typedef_table): Remove.
10650 (typedef_hash_table::find_global_typedef): Now a member of
10651 typedef_hash_table.
10652 (typedef_hash_table::find_typedef): Rename from
10653 find_typedef_in_hash; now a member.
10654 (whatis_exp): Update.
10655 * extension.h (struct ext_lang_type_printers): Add constructor and
10656 destructor.
10657 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10658 declare.
10659 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10660 Now a constructor; rename from start_ext_lang_type_printers.
10661 (ext_lang_type_printers): Now a destructor; rename from
10662 free_ext_lang_type_printers.
10663 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10664 Update.
10665 (c_type_print_base_struct_union): Update. Remove cleanups.
10666
608219fb
TT
106672018-03-27 Tom Tromey <tom@tromey.com>
10668
10669 * dwarf-index-write.c: Include <cmath>.
10670
3fcded8f
JB
106712018-03-27 Joel Brobecker <brobecker@adacore.com>
10672
10673 * NEWS: Add entry describing new "set|show varsize-limit" command.
10674 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10675 command.
10676 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10677 "set variable".
10678
cd4fb1b2
SM
106792018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10680
10681 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10682 dwarf-index-write.c
10683 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10684 * dwarf-index-common.c: New file.
10685 * dwarf-index-common.h: New file.
10686 * dwarf-index-write.c: New file.
10687 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10688 (struct dwarf2_section_info): Move from here.
10689 (dwarf2_section_info_def): Likewise.
10690 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10691 (offset_type): Likewise.
10692 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10693 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10694 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10695 (byte_swap): Likewise.
10696 (MAYBE_SWAP): Likewise.
10697 (dwarf2_per_cu_ptr): Likewise.
10698 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10699 (struct tu_stats): Likewise.
10700 (struct dwarf2_per_objfile): Likewise.
10701 (struct dwarf2_per_cu_data): Likewise.
10702 (struct signatured_type): Likewise.
10703 (sig_type_ptr): Likewise.
10704 (DEF_VEC_P (sig_type_ptr)): Likewise.
10705 (INDEX4_SUFFIX): Likewise.
10706 (INDEX5_SUFFIX): Likewise.
10707 (DEBUG_STR_SUFFIX): Likewise.
10708 (dwarf2_read_section): Make non-static.
10709 (mapped_index_string_hash): Move from here.
10710 (dwarf5_djb_hash): Likewise.
10711 (file_write): Likewise.
10712 (class data_buf): Likewise.
10713 (struct symtab_index_entry): Likewise.
10714 (struct mapped_symtab): Likewise.
10715 (find_slot): Likewise.
10716 (hash_expand): Likewise.
10717 (add_index_entry): Likewise.
10718 (uniquify_cu_indices): Likewise.
10719 (class c_str_view): Likewise.
10720 (class c_str_view_hasher): Likewise.
10721 (class vector_hasher): Likewise.
10722 (write_hash_table): Likewise.
10723 (psym_index_map): Likewise.
10724 (struct addrmap_index_data): Likewise.
10725 (add_address_entry): Likewise.
10726 (add_address_entry_worker): Likewise.
10727 (write_address_map): Likewise.
10728 (symbol_kind): Likewise.
10729 (write_psymbols): Likewise.
10730 (struct signatured_type_index_data): Likewise.
10731 (write_one_signatured_type): Likewise.
10732 (recursively_count_psymbols): Likewise.
10733 (recursively_write_psymbols): Likewise.
10734 (class debug_names): Likewise.
10735 (check_dwarf64_offsets): Likewise.
10736 (psyms_seen_size): Likewise.
10737 (write_gdbindex): Likewise.
10738 (write_debug_names): Likewise.
10739 (assert_file_size): Likewise.
10740 (write_psymtabs_to_index): Likewise.
10741 (save_gdb_index_command): Likewise.
10742 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10743 command.
10744 * dwarf2read.h: New file.
10745
59cc4834
JB
107462018-03-27 Joel Brobecker <brobecker@adacore.com>
10747
10748 PR gdb/22670
10749 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10750 symbol name if the CU's language stores symbol names in linkage
10751 format.
10752 * language.h (struct language_defn)
10753 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10754 all instances of this struct.
10755
67501539
TT
107562018-03-26 Tom Tromey <tom@tromey.com>
10757
10758 * stack.c (backtrace_command_1): Remove verbose code.
10759
76c939ac
TT
107602018-03-26 Tom Tromey <tom@tromey.com>
10761
10762 * python/py-framefilter.c (py_print_type): Don't catch
10763 exceptions. Return void.
10764 (py_print_value): Likewise.
10765 (py_print_single_arg): Likewise.
10766 (enumerate_args): Don't catch exceptions.
10767 (py_print_args): Likewise.
10768 (py_print_frame): Likewise.
10769 (gdbpy_apply_frame_filter): Catch exceptions here.
10770
9507b29c
TT
107712018-03-26 Tom Tromey <tom@tromey.com>
10772
10773 * stack.c (_initialize_stack): Remove trailing newlines from help
10774 text. Add "Usage" line to "backtrace" help.
10775
eb68e487
TT
107762018-03-26 Tom Tromey <tom@tromey.com>
10777
10778 PR python/16486:
10779 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10780
1f111921
TT
107812018-03-26 Tom Tromey <tom@tromey.com>
10782
10783 * python/py-framefilter.c (py_print_single_arg): Return
10784 EXT_LANG_BT_ERROR from catch.
10785
fb7eb8b5
TT
107862018-03-26 Tom Tromey <tom@tromey.com>
10787
10788 PR backtrace/15584:
10789 * stack.c (backtrace_command_1): Move some code into no-filters
10790 "if".
10791
4ca59a9f
TT
107922018-03-26 Tom Tromey <tom@tromey.com>
10793
10794 * python/py-framefilter.c (throw_quit_or_print_exception): New
10795 function.
10796 (gdbpy_apply_frame_filter): Use it.
10797
92256134
TT
107982018-03-26 Tom Tromey <tom@tromey.com>
10799
10800 PR cli/17716:
10801 * python/py-framefilter.c (py_print_type, py_print_value)
10802 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10803 RETURN_MASK_ERROR.
10804
7a630bc2
TT
108052018-03-26 Tom Tromey <tom@tromey.com>
10806
10807 * python/py-framefilter.c (enumerate_args): Use
10808 gdb::unique_xmalloc_ptr.
10809
63283d4a
TT
108102018-03-26 Tom Tromey <tom@tromey.com>
10811
10812 * python/py-framefilter.c (py_print_frame): Return
10813 EXT_LANG_BT_OK.
10814 (gdbpy_apply_frame_filter): Update comment.
10815 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10816 Remove.
10817 <EXT_LANG_BT_NO_FILTERS>: Change value.
10818
978d6c75
TT
108192018-03-26 Tom Tromey <tom@tromey.com>
10820
10821 PR backtrace/15582:
10822 * stack.c (backtrace_command): Parse "hide" argument.
10823 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10824 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10825 constant.
10826
1cf7e640
TT
108272018-03-26 Tom Tromey <tom@tromey.com>
10828
10829 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10830 add "flags".
10831 (backtrace_command): Remove "fulltrace", add "flags".
10832
ea3b0687
TT
108332018-03-26 Tom Tromey <tom@tromey.com>
10834
10835 * stack.c (backtrace_command): Rewrite command line parsing.
10836
9f034d75
SM
108372018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10838
10839 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10840
ce1459e5
SM
108412018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10842
10843 * filename-seen-cache.h: Add include guard.
10844
4f7ae6f5
KS
108452018-03-26 Keith Seitz <keiths@redhat.com>
10846
10847 * symfile.c (place_section): Remove "struct" from section_addr_info
10848 in comment.
10849 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10850 "struct" keyword from section_addr_info.
10851
5cd3e386
AH
108522018-03-26 Alan Hayward <alan.hayward@arm.com>
10853
10854 * regformats/regdef.h (reg): Add constructors.
10855
3e5ef9a4
PA
108562018-03-25 Pedro Alves <palves@redhat.com>
10857
10858 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10859 if then/else bodies in var_func_name extraction.
10860
c88d2fcc 108612018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
10862
10863 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10864 lookup_minimal_symbol() to find symbol entry.
10865 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10866
b7fee5a3
KS
108672018-03-23 Keith Seitz <keiths@redhat.com>
10868
10869 PR c++/22968
10870 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10871 nested type definitions for C++, too.
10872
2cc9b304
TT
108732018-03-23 Tom Tromey <tom@tromey.com>
10874
10875 * machoread.c (struct oso_el): Add a constructor. Don't define as
10876 a typedef.
10877 (macho_register_oso): Remove.
10878 (macho_symtab_read): Take a std::vector.
10879 (oso_el_compare_name): Now a std::sort comparator.
10880 (macho_symfile_read_all_oso): Take a std::vector.
10881 (macho_symfile_read): Use std::vector. Remove cleanups.
10882
a2b2bc12
TT
108832018-03-22 Tom Tromey <tom@tromey.com>
10884
10885 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10886 (record_full_goto_bookmark): Use std::string.
10887
7a8f494c
PFC
108882018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10889
10890 PR tdep/18295
10891 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10892 a single mask.
10893
dd6d677f
PFC
108942018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10895
10896 * rs6000-tdep.c (store_insn_p): New function.
10897 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10898 and cr_reg to their unshifted values. Use store_insn_p to
10899 match LR saves using either R1 or fdata->alloca_reg. Use
10900 store_insn_p to match CR saves. Set alloca_reg_offset
10901 when alloca_reg and framep are set. Remove lr_reg shift
10902 when assigning to fdata->lr_register.
10903
26d6cec4
AA
109042018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10905
10906 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10907 command line args instead of emitting a warning.
10908
5d9310c4
SM
109092018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10910
10911 * tracepoint.h (struct static_tracepoint_marker): Initialize
10912 fields, define default constructor, move constructor and move
10913 assignment, disable the rest.
10914 <str_id, extra>: Make std::string.
10915 (release_static_tracepoint_marker): Remove.
10916 (free_current_marker): Remove.
10917 * tracepoint.c (free_current_marker): Remove.
10918 (parse_static_tracepoint_marker_definition): Adjust to
10919 std::string, use new hex2str overload.
10920 (release_static_tracepoint_marker): Remove.
10921 (print_one_static_tracepoint_marker): Get marker by reference
10922 and adjust to std::string.
10923 (info_static_tracepoint_markers_command): Adjust to std::vector
10924 changes
10925 * target.h (static_tracepoint_marker_p): Remove typedef.
10926 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10927 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10928 bool.
10929 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10930 * target-debug.h
10931 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10932 (target_debug_print_std_vector_static_tracepoint_marker): New.
10933 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10934 to...
10935 (target_debug_print_static_tracepoint_marker_p): ... this.
10936 * target-delegates.c: Re-generate.
10937 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10938 Make std::string.
10939 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10940 (decode_static_tracepoint_spec): Adjust to std::vector.
10941 (tracepoint_print_one_detail): Adjust to std::string.
10942 (strace_marker_decode_location): Adjust to std::string.
10943 (update_static_tracepoint): Adjust to std::string, remove call
10944 to release_static_tracepoint_marker.
10945 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10946 Adjust to std::vector.
10947 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10948 (remote_static_tracepoint_markers_by_strid): Adjust to
10949 std::vector.
10950 * common/rsp-low.h (hex2str): New overload with explicit count
10951 of bytes.
10952 * common/rsp-low.c (hex2str): New overload with explicit count
10953 of bytes.
10954 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10955 (_initialize_rsp_low_selftests): Add test_hex2str test.
10956 * unittests/tracepoint-selftests.c
10957 (test_parse_static_tracepoint_marker_definition): Adjust to
10958 std::string.
10959
62c222b6
SM
109602018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10961
10962 * tracepoint.c (parse_static_tracepoint_marker_definition):
10963 Consider case where the definition is followed by more
10964 definitions.
10965 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10966 tracepoint-selftests.c.
10967 * unittests/tracepoint-selftests.c: New.
10968
7eb2418f
PFC
109692018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10970
10971 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10972 Carvalho.
10973
7cbe16e9
SR
109742018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10975
3d6b3b82 10976 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 10977
4ee89e90
SR
109782018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10979
3d6b3b82 10980 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 10981
92630041
TT
109822018-03-19 Tom Tromey <tom@tromey.com>
10983
10984 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10985 "IDENT" production.
10986
76727919
TT
109872018-03-19 Pedro Alves <palves@redhat.com>
10988 Tom Tromey <tom@tromey.com>
10989
10990 * unittests/observable-selftests.c: New file.
10991 * common/observable.h: New file.
10992 * observable.h: New file.
10993 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10994 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10995 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10996 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10997 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10998 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10999 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11000 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11001 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11002 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11003 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11004 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11005 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11006 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11007 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11008 tui/tui-interp.c, valops.c: Update all users.
11009 * tui/tui-hooks.c (tui_bp_created_observer)
11010 (tui_bp_deleted_observer, tui_bp_modified_observer)
11011 (tui_inferior_exit_observer, tui_before_prompt_observer)
11012 (tui_normal_stop_observer, tui_register_changed_observer):
11013 Remove.
11014 (tui_observers_token): New global.
11015 (attach_or_detach, tui_attach_detach_observers): New functions.
11016 (tui_install_hooks, tui_remove_hooks): Use
11017 tui_attach_detach_observers.
11018 * record-btrace.c (record_btrace_thread_observer): Remove.
11019 (record_btrace_thread_observer_token): New global.
11020 * observer.sh: Remove.
11021 * observer.c: Rename to observable.c.
11022 * observable.c (namespace gdb_observers): Define new objects.
11023 (observer_debug): Move into gdb_observers namespace.
11024 (struct observer, struct observer_list, xalloc_observer_list_node)
11025 (xfree_observer_list_node, generic_observer_attach)
11026 (generic_observer_detach, generic_observer_notify): Remove.
11027 (_initialize_observer): Update.
11028 Don't include observer.inc.
11029 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11030 (clean mostlyclean): Likewise.
11031 (observer.h, observer.inc): Remove targets.
11032 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11033 (COMMON_SFILES): Use observable.c, not observer.c.
11034 * .gitignore: Remove observer.h.
11035
1cb1f3da
TT
110362018-03-18 Tom Tromey <tom@tromey.com>
11037
11038 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11039 gdb::def_vector.
11040 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11041
a06ab151
TT
110422018-03-17 Tom Tromey <tom@tromey.com>
11043
11044 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11045
770623f7
TT
110462018-03-17 Tom Tromey <tom@tromey.com>
11047
11048 * target.c (class scoped_target_fd): New.
11049 (target_fileio_close_cleanup): Remove.
11050 (target_fileio_read_alloc_1): Use scoped_target_fd.
11051
39be3c7e
SM
110522018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11053
11054 * silent-rules.mk: New.
11055 * Makefile.in: Include silent-rules.mk
11056 (srcdir, VPATH, top_srcdir): Move up.
11057 (COMPILE): Add ECHO_CXX.
11058 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11059 (init.c): Add ECHO_INIT_C.
11060 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11061 (version.c): Add ECHO_GEN.
11062 (printcmd.o): Add ECHO_CXX.
11063 (target-float.o): Add ECHO_CXX.
11064 (ada-exp.o): Add ECHO_CXX.
11065 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11066 (insight$(EXEEXT)): Add ECHO_CXXLD.
11067 * gnulib/configure.ac: Add AM_SILENT_RULES.
11068 * gnulib/aclocal.m4: Re-generate.
11069 * gnulib/configure: Re-generate.
11070 * gnulib/import/Makefile.in: Re-generate.
11071
37e136b1
TT
110722018-03-16 Tom Tromey <tom@tromey.com>
11073
11074 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11075 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11076 * utils.c (do_free_section_addr_info)
11077 (make_cleanup_free_section_addr_info): Remove.
11078 * symfile.h (struct other_sections): Add constructor.
11079 (struct section_addr_info): Remove.
11080 (section_addr_info): New typedef.
11081 (struct sym_fns) <sym_offsets>: Change type of parameter.
11082 (build_section_addr_info_from_objfile)
11083 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11084 (default_symfile_offsets, symbol_file_add)
11085 (symbol_file_add_from_bfd)
11086 (build_section_addr_info_from_section_table): Update.
11087 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11088 * symfile.c (alloc_section_addr_info): Remove.
11089 (build_section_addr_info_from_section_table): Change return type.
11090 Update.
11091 (build_section_addr_info_from_bfd)
11092 (build_section_addr_info_from_objfile): Likewise.
11093 (free_section_addr_info): Remove.
11094 (relative_addr_info_to_section_offsets): Change type of "addrs".
11095 (addrs_section_compar): Now a std::sort comparator.
11096 (addrs_section_sort): Change return type.
11097 (addr_info_make_relative): Change type of "addrs". Update.
11098 (default_symfile_offsets, syms_from_objfile_1)
11099 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11100 (symbol_file_add_separate): Update.
11101 (symbol_file_add): Change type of "addrs". Update.
11102 (add_symbol_file_command): Update. Remove cleanups.
11103 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11104 cleanups.
11105 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11106 * solib.c (solib_read_symbols): Update.
11107 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11108 * machoread.c (macho_symfile_offsets): Update.
11109 * jit.c (jit_bfd_try_read_symtab): Update.
11110
03afa6ef
SM
111112018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11112
11113 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11114 unittests/utils-selftests.c.
11115 * unittests/utils-selftests.c: New file.
11116
3ae9ce5d
TT
111172018-03-14 Tom Tromey <tom@tromey.com>
11118
11119 PR cli/14977:
11120 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11121 for NULL.
11122
b8c2339b
TT
111232018-03-14 Tom Tromey <tom@tromey.com>
11124
11125 PR cli/19918:
11126 * printcmd.c (printf_pointer): Allow "-" in format.
11127
80ae639d
TT
111282018-03-14 Tom Tromey <tom@tromey.com>
11129
11130 * printcmd.c (_initialize_printcmd): Add usage to printf.
11131
0d671d99
YQ
111322018-03-14 Yao Qi <qiyao@sourceware.org>
11133
11134 * MAINTAINERS: Update my email address.
11135
b577b6af
TT
111362018-03-13 Tom Tromey <tom@tromey.com>
11137
11138 * machoread.c (macho_check_dsym): Change filenamep to a
11139 std::string*.
11140 (macho_symfile_read): Update.
11141 * symfile.c (load_command): Use std::string.
11142
89a3b63e
AB
111432018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11144
11145 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11146 to error message string.
11147 (riscv_register_name): Use xsnprintf instead of sprintf.
11148 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11149 internal_error.
11150 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11151 error.
11152 (riscv_push_dummy_call): Likewise.
11153
984c7238
TT
111542018-03-12 Tom Tromey <tom@tromey.com>
11155
11156 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11157 Use gdb::byte_vector.
11158 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11159
933522d1
YQ
111602018-03-12 Yao Qi <yao.qi@linaro.org>
11161
11162 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11163 parameter type to readable_regcache.
11164 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11165 the declaration.
11166
be2daae6
TT
111672018-03-11 Tom Tromey <tom@tromey.com>
11168
11169 * dwarf2read.c (struct nextfield): Add initializers.
11170 (struct nextfnfield): Remove.
11171 (struct fnfieldlist): Add initializers. Remove "length" and
11172 "head", use std::vector.
11173 (struct decl_field_list): Remove.
11174 (struct field_info): Add initializers.
11175 <fields, baseclasses>: Now std::vector.
11176 <nbaseclasses, nfnfields, typedef_field_list_count,
11177 nested_types_list_count>: Remove.
11178 (dwarf2_add_field, dwarf2_add_type_defn)
11179 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11180 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11181 (process_structure_scope): Update.
11182
484cf504
TT
111832018-03-11 Tom Tromey <tom@tromey.com>
11184
11185 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11186 for use by std::sort.
11187 (build_type_psymtabs_1): Use std::vector.
11188
9bd8e0b0
EZ
111892018-03-09 Eli Zaretskii <eliz@gnu.org>
11190
11191 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11192 and LIBMPFR in the printed configuration.
11193
5dc1a704
TT
111942018-03-08 Tom Tromey <tom@tromey.com>
11195
11196 * source.c (get_filename_and_charpos): Use scoped_fd.
11197 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11198 (procfs_pidlist): Likewise.
11199 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11200 (iterate_over_mappings): Likewise.
11201
fdf07f3a
TT
112022018-03-08 Tom Tromey <tom@tromey.com>
11203
11204 * infcall.c (struct call_return_meta_info)
11205 <stack_temporaries_enabled>: Remove.
11206 (get_call_return_value, call_function_by_hand_dummy): Update.
11207 * thread.c (disable_thread_stack_temporaries): Remove.
11208 (enable_thread_stack_temporaries): Remove.
11209 (thread_stack_temporaries_enabled_p): Return bool.
11210 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11211 (get_last_thread_stack_temporary): Update.
11212 * eval.c (evaluate_subexp): Update.
11213 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11214 class, not a function.
11215 (value_ptr, value_vec): Remove typedefs.
11216 (class thread_info) <stack_temporaries_enabled>: Now bool.
11217 <stack_temporaries>: Now a std::vector.
11218 (thread_stack_temporaries_enabled_p)
11219 (value_in_thread_stack_temporaries): Return bool.
11220
567a3e54
SM
112212018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11222
11223 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11224 (getpkt_or_notif_sane_1): Likewise.
11225
00b40057
SM
112262018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11227
11228 * build-id.c (build_id_to_debug_bfd): Use std::string.
11229
a8dbfd58
SM
112302018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11231
11232 * build-id.c (find_separate_debug_file_by_buildid): Return
11233 std::string.
11234 * build-id.h (find_separate_debug_file_by_buildid): Return
11235 std::string.
11236 * coffread.c (coff_symfile_read): Adjust to std::string.
11237 * elfread.c (elf_symfile_read): Adjust to std::string.
11238 * symfile.c (separate_debug_file_exists): Change parameter to
11239 std::string.
11240 (find_separate_debug_file): Return std::string.
11241 (find_separate_debug_file_by_debuglink): Return std::string.
11242 * symfile.h (find_separate_debug_file_by_debuglink): Return
11243 std::string.
11244
e6a58aa8
SM
112452018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11246
11247 * common/xml-utils.c (xml_escape_text): Move code to...
11248 (xml_escape_text_append): ... this new function.
11249 * common/xml-utils.h (xml_escape_text_append): New declaration.
11250 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11251 New function.
11252 (_initialize_xml_utils): register test_xml_escape_text_append as
11253 a selftest.
11254
4ef0bef6
AH
112552018-03-07 Alan Hayward <alan.hayward@arm.com>
11256
11257 * defs.h: Remove MAX_REGISTER_SIZE.
11258 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11259 asserts.
11260 * python/py-unwind.c (pyuw_sniffer): Likewise.
11261
e0d3522b
TT
112622018-03-07 Tom Tromey <tom@tromey.com>
11263
11264 * linux-tdep.c (linux_info_proc): Update.
11265 * target.h (struct target_ops) <to_fileio_readlink>: Return
11266 optional<string>.
11267 (target_fileio_readlink): Return optional<string>.
11268 * remote.c (remote_hostio_readlink): Return optional<string>.
11269 * inf-child.c (inf_child_fileio_readlink): Return
11270 optional<string>.
11271 * target.c (target_fileio_readlink): Return optional<string>.
11272
ea005f31
AB
112732018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11274
11275 * regcache.c (cooked_read_test): Add riscv to the list of
11276 architectures that have a save_reggroup.
11277
e95a97d4
AA
112782018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11279
11280 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11281 value is not a dynamic class object.
11282
d8344f3d
TT
112832018-03-06 Tom Tromey <tom@tromey.com>
11284
11285 * rust-exp.y: Formatting fixes.
11286
9add17f2
AB
112872018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11288
11289 * riscv-tdep.c (riscv_register_name): Remove target description
11290 support.
11291 (riscv_gdbarch_init): Remove target description check.
11292
c9486dfe
AB
112932018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11294
11295 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11296 comment.
11297 * riscv-tdep.h: Likewise.
11298
d74aff3d
AB
112992018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11300
11301 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11302 (riscv_pseudo_register_write): Delete.
11303 (riscv_gdbarch_init): Remove all use of pseudo registers.
11304
7ea78b59
SM
113052018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11306
11307 * record-btrace.c (btrace_print_lines): Replace cleanup
11308 parameter with RAII equivalents.
11309 (btrace_insn_history): Replace cleanup with RAII equivalents.
11310 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11311 make_cleanup_ui_out_tuple_begin_end): Remove.
11312 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11313 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11314 make_cleanup_ui_out_list_begin_end): Remove.
11315
53127008
SM
113162018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11317
11318 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11319 parameter types to std::vector. Use bool.
11320 (record_btrace_wait): Replace VEC(tp_t) with
11321 std::vector<thread_info *>.
11322 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11323
228f1508
SM
113242018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11325
11326 * record-btrace.c (record_btrace_disable_callback): Remove.
11327 (struct scoped_btrace_disable): New.
11328 (record_btrace_open): Use scoped_btrace_disable.
11329
b2970c23
AB
113302018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11331
11332 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11333 reading values from registers.
11334
fb294655
AB
113352018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11336
11337 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11338 where appropriate.
11339
cab5bb9d
AB
113402018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11341
11342 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11343 change parameter type. Use GDB's print functions, and use
11344 core_addr_to_string where appropriate.
11345 (riscv_push_dummy_call): Use core_addr_to_string where
11346 appropriate, update call to riscv_print_arg_location, and reindent
11347 a few lines.
11348 (riscv_return_value): Update call to riscv_print_arg_location.
11349
dbbb1059
AB
113502018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11351 Tim Newsome <tim@sifive.com>
11352 Albert Ou <a0u@eecs.berkeley.edu>
11353 Darius Rad <darius@bluespec.com>
11354
11355 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11356 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11357 (ALLDEPFILES): Add riscv-tdep.c
11358 * configure.tgt: Add riscv support.
11359 * riscv-tdep.c: New file.
11360 * riscv-tdep.h: New file.
11361 * NEWS: Mention new target.
11362 * MAINTAINERS: Add entry for riscv.
11363
5dc43913
AB
113642018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11365
11366 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11367 fields within aggregates.
11368
3dea1ef7
SM
113692018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11370
11371 * record-btrace.c (btrace_print_lines): Change type of flags to
11372 gdb_disassembly_flags.
11373
7efba073
JB
113742018-03-04 John Baldwin <jhb@FreeBSD.org>
11375
11376 * fbsd-nat.c: Include "inf-ptrace.h".
11377 (USE_SIGTRAP_SIGINFO): Conditionally define.
11378 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11379 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11380 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11381 function.
11382 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11383 Likewise.
11384 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11385 Likewise.
11386 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11387 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11388 "supports_stopped_by_hw_breakpoint" target methods.
11389
386a8676
JB
113902018-03-04 John Baldwin <jhb@FreeBSD.org>
11391
11392 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11393 * fbsd-nat.c (debug_fbsd_nat): New variable.
11394 (show_fbsd_nat_debug): New function.
11395 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11396 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11397
12279366
JB
113982018-03-04 John Baldwin <jhb@FreeBSD.org>
11399
11400 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11401 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11402 prototype.
11403 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11404 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11405 method.
11406
54693cf5
SM
114072018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11408
11409 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11410 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11411
ccb2231c
SM
114122018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11413
11414 * charset.c (struct charset_vector): New.
11415 (charsets): Change type to charset_vector.
11416 (find_charset_names): Adjust.
11417 (add_one): Adjust.
11418 (_initialize_charset): Adjust.
11419
6fb16ce6
SM
114202018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11421
11422 * progspace.h (struct program_space) <deleted_solibs>: Change
11423 type to std::vector<std::string>.
11424 * progspace.c (clear_program_space_solib_cache): Adjust.
11425 * breakpoint.c (print_solib_event): Adjust.
11426 (check_status_catch_solib): Adjust.
11427 * solib.c (update_solib_list): Adjust.
11428 * ui-out.h (class ui_out) <field_string>: New overload.
11429 * ui-out.c (ui_out::field_string): New overload.
11430
564b1e3f
SM
114312018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11432
11433 * progspace.h (struct program_space): Add constructor and
11434 destructor, initialize fields.
11435 (add_program_space): Remove.
11436 * progspace.c (add_program_space): Rename to...
11437 (program_space::program_space): ... this.
11438 (release_program_space): Rename to...
11439 (program_space::~program_space): ... this.
11440 (delete_program_space): Use delete to delete program_space.
11441 (initialize_progspace): Use new to allocate program_space.
11442 * inferior.c (add_inferior_with_spaces): Likewise.
11443 (clone_inferior_command): Likewise.
11444 * infrun.c (follow_fork_inferior): Likewise.
11445 (handle_vfork_child_exec_or_exit): Likewise.
11446
e80aaf61
SM
114472018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11448
11449 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11450 (delim_string_to_char_ptr_vec): Return std::vector of
11451 gdb::unique_xmalloc_ptr.
11452 (dirnames_to_char_ptr_vec_append): Take std::vector of
11453 gdb::unique_xmalloc_ptr.
11454 (dirnames_to_char_ptr_vec): Return std::vector of
11455 gdb::unique_xmalloc_ptr.
11456 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11457 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11458 (delim_string_to_char_ptr_vec): Return an std::vector of
11459 gdb::unique_xmalloc_ptr, adjust the code.
11460 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11461 gdb::unique_xmalloc_ptr, adjust the code.
11462 (dirnames_to_char_ptr_vec): Return an std::vector of
11463 gdb::unique_xmalloc_ptr, adjust the code.
11464 * auto-load.c (auto_load_safe_path_vec): Change type to
11465 std::vector of gdb::unique_xmalloc_ptr.
11466 (auto_load_expand_dir_vars): Return an std::vector of
11467 gdb::unique_xmalloc_ptr, adjust the code.
11468 (auto_load_safe_path_vec_update): Adjust.
11469 (filename_is_in_auto_load_safe_path_vec): Adjust.
11470 (auto_load_objfile_script_1): Adjust.
11471 * build-id.c (build_id_to_debug_bfd): Adjust.
11472 * linux-thread-db.c (thread_db_load_search): Adjust.
11473 * source.c (add_path): Adjust.
11474 (openp): Adjust.
11475 * symfile.c (find_separate_debug_file): Adjust.
11476 * utils.c (do_free_char_ptr_vec): Remove.
11477 (make_cleanup_free_char_ptr_vec): Remove.
11478
ab818ade
SDJ
114792018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11480
11481 PR gdb/22907
11482 * common/pathstuff.c: Conditionally include "<windows.h>".
11483
e1e6f073
GS
114842018-03-01 Georg Sauthoff <mail@georg.so>
11485
11486 PR gdb/22888
11487 * gcore.in: Quote variables and switch interpreter to bash.
11488
c7b15a66
TT
114892018-03-01 Tom Tromey <tom@tromey.com>
11490
11491 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11492 assertion. Add assertion for discriminant_index.
11493 (quirk_rust_enum): Use correct base type name in univariant case.
11494
0cb7c7b0
SM
114952018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11496
11497 * record.c (get_call_history_modifiers): Return a
11498 record_print_flags.
11499 (cmd_record_call_history): Adjust.
11500 * record-btrace.c (record_btrace_call_history): Adjust.
11501 (record_btrace_call_history_range): Adjust.
11502 (record_btrace_call_history_from): Adjust.
11503 * target-debug.h (target_debug_print_record_print_flags): New.
11504 * target-delegates.c: Re-generate.
11505 * target.c (target_call_history): Change flags type.
11506 (target_call_history_from): Likewise.
11507 (target_call_history_range): Likewise.
11508 * target.h (struct target_ops) <target_call_history>: Likewise.
11509 (target_call_history_from): Likewise.
11510 (target_call_history_range): Likewise.
11511
25e3c82c
SDJ
115122018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11513 Simon Marchi <simon.marchi@polymtl.ca>
11514
11515 * common/common-utils.c: Include "sys/stat.h".
11516 (is_regular_file): Move here from "source.c"; change return
11517 type to "bool".
11518 * common/common-utils.h (is_regular_file): New prototype.
11519 * common/pathstuff.c (contains_dir_separator): New function.
11520 * common/pathstuff.h (contains_dir_separator): New prototype.
11521 * source.c: Don't include "sys/stat.h".
11522 (is_regular_file): Move to "common/common-utils.c".
11523
b4987c95
SDJ
115242018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11525
11526 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11527 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11528 * auto-load.c: Include "common/pathstuff.h".
11529 * common/common-def.h (current_directory): Move here.
11530 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11531 function.
11532 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11533 prototype.
11534 * common/pathstuff.c: New file.
11535 * common/pathstuff.h: New file.
11536 * compile/compile.c: Include "common/pathstuff.h".
11537 * defs.h (current_directory): Move to "common/common-defs.h".
11538 * dwarf2read.c: Include "common/pathstuff.h".
11539 * exec.c: Likewise.
11540 * guile/scm-safe-call.c: Likewise.
11541 * linux-thread-db.c: Likewise.
11542 * main.c: Likewise.
11543 * nto-tdep.c: Likewise.
11544 * objfiles.c: Likewise.
11545 * source.c: Likewise.
11546 * symtab.c: Likewise.
11547 * utils.c: Include "common/pathstuff.h".
11548 (gdb_realpath): Move to "common/pathstuff.c".
11549 (gdb_realpath_keepfile): Likewise.
11550 (gdb_abspath): Likewise.
11551 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11552 (gdb_realpath_keepfile): Likewise.
11553 (gdb_abspath): Likewise.
11554
f169cfdc
JB
115552018-02-28 John Baldwin <jhb@FreeBSD.org>
11556
11557 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11558 wildcard process pid for super_resume for kernels with a
11559 specific bug.
11560
e05cac70
PM
115612018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11562
11563 * compile/compile.c (get_args): Add additional comments
11564 explaining function.
11565
55089490
TT
115662018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11567 Tom Tromey <tom@tromey.com>
11568
11569 * target.h (memory_write_request_s): Remove typedef. Don't define
11570 VEC.
11571 (target_write_memory_blocks): Change argument to std::vector.
11572 (struct memory_write_request): Add constructor.
11573 * target-memory.c (compare_block_starting_address): Return bool.
11574 Change argument types.
11575 (claim_memory): Change arguments to use std::vector.
11576 (split_regular_and_flash_blocks, blocks_to_erase)
11577 (compute_garbled_blocks): Likewise.
11578 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11579 (target_write_memory_blocks): Change argument to std::vector.
11580 * symfile.c (struct load_section_data): Add constructor and
11581 destructor. Use std::vector for "requests".
11582 (struct load_progress_data): Add initializers.
11583 (load_section_callback): Update. Use "new".
11584 (clear_memory_write_data): Remove.
11585 (generic_load): Update.
11586
0c305b61
AH
115872018-02-27 Alan Hayward <alan.hayward@arm.com>
11588
11589 * arch/aarch64.h: Use common/tdesc.h.
11590
c5196c92
MR
115912018-02-26 Maciej W. Rozycki <macro@mips.com>
11592
11593 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11594 architecture with a 64-bit ABI.
11595
37c33887
MR
115962018-02-26 Maciej W. Rozycki <macro@mips.com>
11597
11598 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11599 ahead of target description loading.
11600
d4dd3282
TT
116012018-02-26 Tom Tromey <tom@tromey.com>
11602
11603 * stack.c (backtrace_command_1): Update.
11604 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11605 of "flags".
11606 * python/py-framefilter.c (py_print_frame)
11607 (gdbpy_apply_frame_filter): Change type of "flags".
11608 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11609 of "flags".
11610 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11611 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11612 * extension.h (enum frame_filter_flag): Rename from
11613 frame_filter_flags.
11614 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11615 (apply_ext_lang_frame_filter): Change type of "flags".
11616 * extension.c (apply_ext_lang_frame_filter): Change type of
11617 "flags".
11618 * extension-priv.h (struct extension_language_ops)
11619 <apply_frame_filter>: Change type of "flags".
11620
6893c19a
TT
116212018-02-26 Tom Tromey <tom@tromey.com>
11622
11623 PR python/16497:
11624 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11625 off-by-one in py_end computation.
11626 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11627 PRINT_MORE_FRAMES.
11628 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11629 constant.
11630
2ddeaf8a
TT
116312018-02-26 Tom Tromey <tom@tromey.com>
11632
11633 * dwarf2read.c (struct variant_field): New.
11634 (struct nextfield) <variant>: New field.
11635 (dwarf2_add_field): Handle DW_TAG_variant_part.
11636 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11637 discriminated union.
11638 (read_structure_type): Handle DW_TAG_variant_part.
11639 (handle_struct_member_die): New function, extracted from
11640 process_structure_scope. Handle DW_TAG_variant.
11641 (process_structure_scope): Handle discriminated unions. Call
11642 handle_struct_member_die.
11643
c9317f21
TT
116442018-02-26 Tom Tromey <tom@tromey.com>
11645
11646 * rust-lang.h (rust_last_path_segment): Declare.
11647 * rust-lang.c (rust_last_path_segment): Now public. Change
11648 contract.
11649 (struct disr_info): Remove.
11650 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11651 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11652 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11653 (rust_enum_p, rust_enum_variant): New function.
11654 (rust_underscore_fields): Remove "offset" parameter.
11655 (rust_print_enum): New function.
11656 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11657 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11658 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11659 enums.
11660 (rust_internal_print_type): New function, from rust_print_type.
11661 Remove enum code.
11662 (rust_print_type): Call rust_internal_print_type.
11663 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11664 Update enum handling.
11665 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11666 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11667 (rust_union_quirks): New functions.
11668 (process_full_comp_unit, process_full_type_unit): Call
11669 rust_union_quirks.
11670 (process_structure_scope): Update rust_unions if necessary.
11671
7c22600a
TT
116722018-02-26 Tom Tromey <tom@tromey.com>
11673
11674 * value.h (value_union_variant): Declare.
11675 * valops.c (value_union_variant): New function.
11676 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11677 (struct discriminant_info): New.
11678 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11679 enumerator.
11680 (struct main_type) <flag_discriminated_union>: New field.
11681
15ce8941
TT
116822018-02-26 Tom Tromey <tom@tromey.com>
11683
11684 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11685 unittests/unpack-selftests.c.
11686 * unittests/unpack-selftests.c: New file.
11687 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11688
48fbe735
YQ
116892018-02-26 Yao Qi <yao.qi@linaro.org>
11690
11691 * dwarf2read.c (struct partial_die_info) <read>: New method.
11692 (read_partial_die): Remove the declaration.
11693 (load_partial_dies): Update.
11694 (partial_die_info::partial_die_info):
11695 (read_partial_die): Change it to partial_die_info::read.
11696
52356b79
YQ
116972018-02-26 Yao Qi <yao.qi@linaro.org>
11698
11699 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11700 (fixup_partial_die): Remove declaration.
11701 (scan_partial_symbols): Update.
11702 (partial_die_parent_scope): Likewise.
11703 (partial_die_full_name): Likewise.
11704 (fixup_partial_die): Change it to partial_die_info::fixup.
11705
35cc7ed7
YQ
117062018-02-26 Yao Qi <yao.qi@linaro.org>
11707
11708 * dwarf2read.c (read_partial_die): Update the declaration.
11709 (load_partial_dies): Caller update.
11710 (read_partial_die): Remove one argument abbrev_len.
11711
6f06d47b
YQ
117122018-02-26 Yao Qi <yao.qi@linaro.org>
11713
11714 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11715 assignment operator.
11716 (load_partial_dies): Use ctor and copy ctor.
11717 (read_partial_die): Update.
11718 (dwarf2_cu::find_partial_die): Use ctor.
11719
d590ff25
YQ
117202018-02-26 Yao Qi <yao.qi@linaro.org>
11721
11722 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11723 (find_partial_die_in_comp_unit): Change it to
11724 dwarf2_cu::find_partial_die.
11725 (find_partial_die): Update.
11726
fd0a254f
YQ
117272018-02-26 Yao Qi <yao.qi@linaro.org>
11728
11729 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11730 is NULL.
11731
cd9983dd
YQ
117322018-02-26 Yao Qi <yao.qi@linaro.org>
11733
11734 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11735
f46cd62a
AH
117362018-02-26 Alan Hayward <alan.hayward@arm.com>
11737
11738 * arch/amd64.h: Use common/tdesc.h.
11739 * arch/i386.c: Likewise.
11740 * arch/i386.h: Likewise.
11741 * arch/tic6x.c: Likewise.
11742 * arch/tdesc.h: Move file from here...
11743 * common/tdesc.h: ...to here.
11744 * features/aarch64-core.c: Regenerate.
11745 * features/aarch64-fpu.c: Regenerate.
11746 * features/i386/32bit-avx.c: Regenerate.
11747 * features/i386/32bit-avx512.c: Regenerate.
11748 * features/i386/32bit-core.c: Regenerate.
11749 * features/i386/32bit-linux.c: Regenerate.
11750 * features/i386/32bit-mpx.c: Regenerate.
11751 * features/i386/32bit-pkeys.c: Regenerate.
11752 * features/i386/32bit-sse.c: Regenerate.
11753 * features/i386/64bit-avx.c: Regenerate.
11754 * features/i386/64bit-avx512.c: Regenerate.
11755 * features/i386/64bit-core.c: Regenerate.
11756 * features/i386/64bit-linux.c: Regenerate.
11757 * features/i386/64bit-mpx.c: Regenerate.
11758 * features/i386/64bit-pkeys.c: Regenerate.
11759 * features/i386/64bit-segments.c: Regenerate.
11760 * features/i386/64bit-sse.c: Regenerate.
11761 * features/i386/x32-core.c: Regenerate.
11762 * features/tic6x-c6xp.c: Regenerate.
11763 * features/tic6x-core.c: Regenerate.
11764 * features/tic6x-gp.c: Regenerate.
11765 * target-descriptions.c: Use common/tdesc.h.
11766 * target-descriptions.h: Likewise.
11767
9b292f68
TT
117682018-02-24 Tom Tromey <tom@tromey.com>
11769
11770 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11771 (try_thread_db_load_from_dir, thread_db_load_search): Use
11772 std::string.
11773 (info_auto_load_libthread_db_compare): Return bool. Change
11774 argument types.
11775 (info_auto_load_libthread_db): Use std::vector, std::string.
11776 Remove cleanups.
11777
281d762b
TT
117782018-02-24 Tom Tromey <tom@tromey.com>
11779
11780 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11781 std::string.
11782 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11783 std::string*.
11784 * gdbarch.c: Rebuild.
11785 * gdbarch.h: Rebuild.
11786 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11787 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11788 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11789 std::string*.
11790
9d8780f0
SM
117912018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11792
11793 * gdbtypes.h (sect_offset): Change type to uint64_t.
11794 (sect_offset_str): New function.
11795 * dwarf2read.c (create_addrmap_from_aranges): Use
11796 sect_offset_str.
11797 (error_check_comp_unit_head): Likewise.
11798 (create_debug_type_hash_table): Likewise.
11799 (read_cutu_die_from_dwo): Likewise.
11800 (init_cutu_and_read_dies): Likewise.
11801 (init_cutu_and_read_dies_no_follow): Likewise.
11802 (process_psymtab_comp_unit_reader): Likewise.
11803 (partial_die_parent_scope): Likewise.
11804 (peek_die_abbrev): Likewise.
11805 (process_queue): Likewise.
11806 (dwarf2_physname): Likewise.
11807 (read_namespace_alias): Likewise.
11808 (read_import_statement): Likewise.
11809 (create_dwo_cu_reader): Likewise.
11810 (create_cus_hash_table): Likewise.
11811 (lookup_dwo_cutu): Likewise.
11812 (inherit_abstract_dies): Likewise.
11813 (read_func_scope): Likewise.
11814 (read_call_site_scope): Likewise.
11815 (dwarf2_add_member_fn): Likewise.
11816 (read_common_block): Likewise.
11817 (read_module_type): Likewise.
11818 (read_typedef): Likewise.
11819 (read_subrange_type): Likewise.
11820 (load_partial_dies): Likewise.
11821 (read_partial_die): Likewise.
11822 (find_partial_die): Likewise.
11823 (read_str_index): Likewise.
11824 (dwarf2_string_attr): Likewise.
11825 (build_error_marker_type): Likewise.
11826 (lookup_die_type): Likewise.
11827 (dump_die_shallow): Likewise.
11828 (follow_die_ref): Likewise.
11829 (dwarf2_fetch_die_loc_sect_off): Likewise.
11830 (dwarf2_fetch_constant_bytes): Likewise.
11831 (follow_die_sig): Likewise.
11832 (get_signatured_type): Likewise.
11833 (get_DW_AT_signature_type): Likewise.
11834 (dwarf2_find_containing_comp_unit): Likewise.
11835 (set_die_type): Likewise.
11836
8ec57239
JB
118372018-02-21 John Baldwin <jhb@FreeBSD.org>
11838
11839 * arch/aarch64.c: Include "common-defs.h".
11840 * arch/amd64.c: Likewise.
11841 * arch/i386.c: Likewise.
11842
3eac2b65
TT
118432018-02-21 Tom Tromey <tom@tromey.com>
11844
11845 * value.h: (extract_field_op): Update.
11846 * eval.c (extract_field_op): Return a const char *.
11847 * expression.h (parse_expression_for_completion): Update.
11848 * completer.c (complete_expression): Update.
11849 (add_struct_fields): Make fieldname const.
11850 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11851 (mark_completion_tag, parse_exp_in_context_1): Update.
11852 (parse_expression_for_completion): Change "name" to
11853 unique_xmalloc_ptr*.
11854
6ccb583f
TT
118552018-02-21 Tom Tromey <tom@tromey.com>
11856
11857 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11858
c113ed0c
YQ
118592018-02-21 Yao Qi <yao.qi@linaro.org>
11860
11861 * avr-tdep.c (avr_read_pc): Change parameter type to
11862 readable_regcache.
11863 * gdbarch.sh (read_pc): Likewise.
11864 * gdbarch.c: Re-generated.
11865 * gdbarch.h: Re-generated.
11866 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11867 readable_regcache.
11868 * ia64-tdep.c (ia64_read_pc): Likewise.
11869 * mips-tdep.c (mips_read_pc): Likewise.
11870 * spu-tdep.c (spu_read_pc): Likewise.
11871
4c74fe6b
YQ
118722018-02-21 Yao Qi <yao.qi@linaro.org>
11873
11874 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11875 * regcache-dump.c: New file.
11876 * regcache.c: Move register_dump to regcache-dump.c.
11877 (maintenance_print_registers): Likewise.
11878 (maintenance_print_raw_registers): Likewise.
11879 (maintenance_print_cooked_registers): Likewise.
11880 (maintenance_print_register_groups): Likewise.
11881 (maintenance_print_remote_registers): Likewise.
11882 (_initialize_regcache): Likewise.
11883 * regcache.h (register_dump): Moved from regcache.c.
11884
796bb026
YQ
118852018-02-21 Yao Qi <yao.qi@linaro.org>
11886
11887 * regcache.c (regcache::regcache): Update.
11888 (regcache::invalidate): Move it to detached_regcache::invalidate.
11889 (get_thread_arch_aspace_regcache): Update.
11890 (regcache::raw_update): Update.
11891 (regcache::cooked_read): Remove some code.
11892 (regcache::cooked_read_value): Likewise.
11893 (regcache::raw_write): Remove assert on m_readonly_p.
11894 (regcache::raw_supply_integer): Move it to
11895 detached_regcache::raw_supply_integer.
11896 (regcache::raw_supply_zeroed): Likewise.
11897 * regcache.h (detached_regcache) <raw_supply_integer>: New
11898 declaration.
11899 <raw_supply_zeroed, invalidate>: Likewise.
11900 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11901 <invalidate>: Likewise.
11902 <m_readonly_p>: Removed.
11903
215c69dc
YQ
119042018-02-21 Yao Qi <yao.qi@linaro.org>
11905
11906 * infcmd.c (get_return_value): Let stop_regs point to
11907 get_current_regcache.
11908 * regcache.c (regcache::regcache): Remove.
11909 (register_dump_reg_buffer): New class.
11910 (regcache_print): Adjust.
11911 * regcache.h (regcache): Remove constructors.
11912
f3384e66
YQ
119132018-02-21 Yao Qi <yao.qi@linaro.org>
11914
11915 * regcache.c (class register_dump): New class.
11916 (register_dump_regcache, register_dump_none): New class.
11917 (register_dump_remote, register_dump_groups): New class.
11918 (regcache_print): Update.
11919 * regcache.h (regcache_dump_what): Move it to regcache.c.
11920 (regcache) <dump>: Remove.
11921
c8ec2f33
YQ
119222018-02-21 Yao Qi <yao.qi@linaro.org>
11923
11924 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11925 reg_buffer_rw *.
11926 (jit_unwind_reg_set_impl): Call raw_supply.
11927 (jit_frame_sniffer): Use reg_buffer_rw.
11928 * record-full.c (record_full_core_regbuf): Change its type.
11929 (record_full_core_open_1): Use reg_buffer_rw.
11930 (record_full_close): Likewise.
11931 (record_full_core_fetch_registers): Use regcache->raw_supply.
11932 (record_full_core_store_registers): Likewise.
11933 * regcache.c (regcache::get_register_status): Move it to
11934 reg_buffer.
11935 (regcache_raw_set_cached_value): Remove.
11936 (regcache::raw_set_cached_value): Remove.
11937 (regcache::raw_write): Call raw_supply.
11938 (regcache::raw_supply): Move it to reg_buffer_rw.
11939 * regcache.h (regcache_raw_set_cached_value): Remove.
11940 (reg_buffer_rw): New class.
11941
daf6667d
YQ
119422018-02-21 Yao Qi <yao.qi@linaro.org>
11943
11944 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11945 readonly_detached_regcache.
11946 (dummy_frame_prev_register): Use regcache->cooked_read.
11947 * frame.c (frame_save_as_regcache): Change return type.
11948 (frame_pop): Update.
11949 * frame.h (frame_save_as_regcache): Update declaration.
11950 * inferior.h (get_infcall_suspend_state_regcache): Update
11951 declaration.
11952 * infrun.c (infcall_suspend_state) <registers>: use
11953 readonly_detached_regcache.
11954 (save_infcall_suspend_state): Don't use regcache_dup.
11955 (get_infcall_suspend_state_regcache): Change return type.
11956 * linux-fork.c (struct fork_info) <savedregs>: Change to
11957 readonly_detached_regcache.
11958 <pc>: New field.
11959 (fork_save_infrun_state): Don't use regcache_dup.
11960 (info_checkpoints_command): Adjust.
11961 * mi/mi-main.c (register_changed_p): Update declaration.
11962 (mi_cmd_data_list_changed_registers): Use
11963 readonly_detached_regcache.
11964 (register_changed_p): Change parameter type to
11965 readonly_detached_regcache.
11966 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11967 readonly_detached_regcache.
11968 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11969 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11970 New.
11971 (regcache::save): Move it to reg_buffer.
11972 (regcache::restore): Change parameter type.
11973 (regcache_dup): Remove.
11974 * regcache.h (reg_buffer) <save>: New method.
11975 (readonly_detached_regcache): New class.
11976 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11977 readonly_detached_regcache.
11978 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11979
fc5b8736
YQ
119802018-02-21 Yao Qi <yao.qi@linaro.org>
11981
11982 * frame.c (frame_save_as_regcache): Use regcache method save.
11983 (frame_pop): Use regcache method restore.
11984 * infrun.c (restore_infcall_suspend_state): Likewise.
11985 * linux-fork.c (fork_load_infrun_state): Likewise.
11986 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11987 save.
11988 * regcache.c (regcache_save): Remove.
11989 (regcache::restore): More asserts.
11990 (regcache_cpy): Remove.
11991 * regcache.h (regcache_save): Remove the declaration.
11992 (regcache::restore): Move from private to public.
11993 Remove the friend declaration of regcache_cpy.
11994 (regcache_cpy): Remove declaration.
11995
849d0ba8
YQ
119962018-02-21 Yao Qi <yao.qi@linaro.org>
11997
11998 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11999 parameter type to 'readable_regcache *'.
12000 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12001 * arm-tdep.c (arm_neon_quad_read): Likewise.
12002 (arm_pseudo_read): Likewise.
12003 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12004 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12005 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12006 * gdbarch.c: Re-generated.
12007 * gdbarch.h: Re-generated.
12008 * gdbarch.sh (pseudo_register_read): Change parameter type to
12009 'readable_regcache *'.
12010 (pseudo_register_read_value): Likewise.
12011 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12012 (h8300_pseudo_register_read): Likewise.
12013 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12014 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12015 (i386_pseudo_register_read_into_value): Likewise.
12016 (i386_pseudo_register_read_value): Likewise.
12017 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12018 declaration.
12019 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12020 * m32c-tdep.c (m32c_raw_read): Likewise.
12021 (m32c_read_flg): Likewise.
12022 (m32c_banked_register): Likewise.
12023 (m32c_banked_read): Likewise.
12024 (m32c_sb_read): Likewise.
12025 (m32c_part_read): Likewise.
12026 (m32c_cat_read): Likewise.
12027 (m32c_r3r2r1r0_read): Likewise.
12028 (m32c_pseudo_register_read): Likewise.
12029 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12030 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12031 (mep_pseudo_cr64_read): Likewise.
12032 (mep_pseudo_register_read): Likewise.
12033 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12034 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12035 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12036 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12037 (regcache::cooked_read): Likewise.
12038 (regcache::cooked_read_value): Likewise.
12039 (regcache_cooked_read_signed):
12040 (regcache::cooked_read): Likewise.
12041 * regcache.h (readable_regcache): New class.
12042 (regcache): Inherit readable_regcache. Move some methods to
12043 readable_regcache.
12044 * rl78-tdep.c (rl78_pseudo_register_read): Change
12045 parameter type to 'readable_regcache *'.
12046 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12047 (e500_pseudo_register_read): Change parameter type to
12048 'readable_regcache *'.
12049 (dfp_pseudo_register_read): Likewise.
12050 (vsx_pseudo_register_read): Likewise.
12051 (efpr_pseudo_register_read): Likewise.
12052 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12053 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12054 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12055 (sh64_pseudo_register_read): Likewise.
12056 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12057 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12058 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12059 (spu_pseudo_register_read): Likewise.
12060 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12061 (xtensa_pseudo_register_read): Likewise.
12062
31716595
YQ
120632018-02-21 Yao Qi <yao.qi@linaro.org>
12064
12065 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12066 (regcache::arch): Move it to reg_buffer::arch.
12067 (regcache::register_buffer): Likewise.
12068 (regcache::assert_regnum): Likewise.
12069 (regcache::num_raw_registers): Likewise.
12070 * regcache.h (reg_buffer): New class.
12071 (regcache): Inherit reg_buffer.
12072
7104e59b
SM
120732018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12074
12075 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12076 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12077
2d8adcbd
MM
120782018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12079
12080 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12081
b5884fa7
AH
120822018-02-19 Alan Hayward <alan.hayward@arm.com>
12083
12084 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12085 (SFILES): Remove common/*.c files.
12086 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12087 * common/common.host: Add common reference.
12088 * configure.ac: Likewise.
12089 * configure: Regenerate.
12090
fd90ace4
YQ
120912018-02-16 Yao Qi <yao.qi@linaro.org>
12092
12093 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12094 (block_initialize_namespace): Use new.
12095 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12096 (dwarf2_free_objfile): Use delete.
12097 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12098 (copy_type_recursive): Use new.
12099 * gdb_obstack.h (allocate_on_obstack): New.
12100
85046ae2
YQ
121012018-02-15 Yao Qi <yao.qi@linaro.org>
12102
12103 PR gdb/22849
12104 * inferior.c (exit_inferior_1): Reset inf->control.
12105
355c559b
JB
121062018-02-15 Joel Brobecker <brobecker@adacore.com>
12107
12108 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12109 declaration.
12110
980548fd
PA
121112018-02-14 Pedro Alves <palves@redhat.com>
12112
12113 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12114 frame_cleanup_after_sniffer on exception.
12115
692d6f97
TT
121162018-02-14 Tom Tromey <tom@tromey.com>
12117
12118 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12119 const.
12120 (solib_bfd_open): Make pathname const.
12121 * solib.c (solib_bfd_open): Make pathname const.
12122 * solib-spu.c (spu_bfd_fopen): Make name const.
12123 (spu_bfd_open): Make pathname const.
12124 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12125 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12126
e0cc99a6
TT
121272018-02-14 Tom Tromey <tom@tromey.com>
12128
12129 * symfile.c (symfile_bfd_open): Update.
12130 * source.h (openp, source_full_path_of, find_and_open_source):
12131 Change argument type to unique_xmalloc_ptr.
12132 * source.c (openp): Take a unique_xmalloc_ptr.
12133 (source_full_path_of, find_and_open_source): Likewise.
12134 (open_source_file, symtab_to_fullname): Update.
12135 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12136 unique_xmalloc_ptr.
12137 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12138 (exec_file_find): Update.
12139 * psymtab.c (psymtab_to_fullname): Update.
12140 * nto-tdep.h (nto_find_and_open_solib): Update.
12141 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12142 unique_xmalloc_ptr.
12143 * exec.c (exec_file_attach): Update.
12144 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12145 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12146
b46a8d7c
TT
121472018-02-14 Tom Tromey <tom@tromey.com>
12148
12149 * solib.c: Include source.h.
12150 * nto-tdep.c: Include source.h.
12151 * mi/mi-cmd-env.c: Include source.h.
12152 * infcmd.c: Include source.h.
12153 * exec.c: Include source.h.
12154 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12155 (add_path, directory_switch, source_path, init_source_path): Move
12156 declarations...
12157 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12158 (add_path, directory_switch, source_path, init_source_path):
12159 ...here.
12160
797bc1cb
TT
121612018-02-14 Tom Tromey <tom@tromey.com>
12162
12163 * solist.h (exec_file_find, solib_find): Return
12164 unique_xmalloc_ptr.
12165 (solib_bfd_fopen): Take a const char *.
12166 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12167 (exec_file_find, solib_find): Likewise.
12168 (solib_bfd_fopen): Do not take ownership of "pathname".
12169 (solib_bfd_open): Use unique_xmalloc_ptr.
12170 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12171 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12172 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12173 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12174
f98b2e33
JB
121752018-02-14 Joel Brobecker <brobecker@adacore.com>
12176
12177 * ada-lang.c (name_match_type_from_name): Remove reference to
12178 ada_name_for_lookup in function's documentation.
12179 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12180
24b9144d
SM
121812018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12182
12183 * defs.h (enum openp_flags): New enum.
12184 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12185 Move to enum openp_flags.
12186 (openp_flags): New enum flags.
12187 (openp): Change parameter type to openp_flags.
12188 * source.c (openp): Change parameter type to openp_flags.
12189 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12190 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12191
387cd15b
SM
121922018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12193
12194 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12195 per-command.
12196
b303c6f6
AB
121972018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12198
12199 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12200 into...
12201 (class dwarf2_queue_guard): ...the destructor of this new class.
12202 (dw2_do_instantiate_symtab): Create instance of the new class
12203 dwarf2_queue_guard, remove cleanup.
12204
9c3630e9
TT
122052018-02-09 Tom Tromey <tom@tromey.com>
12206
12207 * source.c (find_source_lines): Don't reference past the end of
12208 the vector.
12209
c4e12631
MM
122102018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12211
12212 * remote.c (remote_btrace_maybe_reopen): Change error message.
12213 * btrace.c (btrace_enable): Likewise.
12214 (parse_xml_btrace): Likewise.
12215 (parse_xml_btrace_conf): Likewise.
12216
88711fbf
MM
122172018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12218
12219 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12220 (linux_enable_pt, linux_enable_bts): Call
12221 diagnose_perf_event_open_fail.
12222
17ad2a4f
MM
122232018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12224
12225 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12226 Remove parameter and change return type. Update callers. Move it.
12227 (linux_enable_bts, linux_enable_pt): Improve error message.
12228 (linux_enable_pt): Remove zero buffer size check.
12229 (linux_enable_btrace): Improve error messages. Remove NULL return
12230 check.
12231
de6242d3
MM
122322018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12233
12234 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12235 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12236 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12237 (linux_supports_pt, linux_supports_btrace): Remove.
12238 (linux_enable_bts): Call cpu_supports_bts.
12239 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12240 * remote.c (remote_supports_btrace): Remove.
12241 (init_remote_ops): Remove remote_supports_btrace.
12242 * target-delegates.c: Regenerated.
12243 * target.c (target_supports_btrace): Remove.
12244 * target.h (target_ops) <to_supports_btrace>: Remove
12245 (target_supports_btrace): Remove.
12246 * x86-linux-nat.c (x86_linux_create_target): Remove
12247 linux_supports_btrace.
12248
9ee23a85
MM
122492018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12250
12251 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12252 btrace failed.
12253 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12254 exception and use message in own exception.
12255
5c3284c1
MM
122562018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12257
12258 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12259 (perf_event_pt_event_type): Use gdb_file_up.
12260 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12261 scoped_fd, and scoped_mmap.
12262
84696f37
MM
122632018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12264
12265 * common/scoped_mmap.h: New.
12266 * unittests/scoped_mmap-selftest.c: New.
12267 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12268 unittests/scoped_mmap-selftest.c.
12269
ea4a0888
MM
122702018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12271
12272 * common/scoped_fd.h: New.
12273 * unittests/scoped_fd-selftest.c: New.
12274 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12275 unittests/scoped_fd-selftest.c.
12276
869e8290
TT
122772018-02-09 Tom Tromey <tom@tromey.com>
12278
12279 * auto-load.c (auto_load_section_scripts): Use
12280 gdb::unique_xmalloc_ptr.
12281
a37a2ae7
TT
122822018-02-09 Tom Tromey <tom@tromey.com>
12283
12284 * auto-load.c (execute_script_contents): Use std::string.
12285
4e725347
JB
122862018-02-09 Joel Brobecker <brobecker@adacore.com>
12287
12288 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12289 Python function, rather than a new command.
12290
9a897d43
TT
122912018-02-08 Tom Tromey <tom@tromey.com>
12292
12293 * solib.c (solib_find_1): Use std::string.
12294 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12295
58ef3771
TT
122962018-02-08 Tom Tromey <tom@tromey.com>
12297
12298 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12299
a9abc434
TT
123002018-02-08 Tom Tromey <tom@tromey.com>
12301
12302 * source.c (find_source_lines): Use gdb::def_vector.
12303
84f27c6f
TT
123042018-02-08 Tom Tromey <tom@tromey.com>
12305
12306 * macrocmd.c (struct temporary_macro_definition): New.
12307 (macro_define_command): Use temporary_macro_definition. Remove
12308 cleanups.
12309 (free_macro_definition_ptr): Remove.
12310
0354904b
TT
123112018-02-08 Tom Tromey <tom@tromey.com>
12312
12313 * macroexp.c (maybe_expand): Use std::string.
12314
1739cf24
TT
123152018-02-08 Tom Tromey <tom@tromey.com>
12316
12317 * macroexp.c (struct macro_buffer): Add initializers for some
12318 members.
12319 (init_buffer, init_shared_buffer, free_buffer)
12320 (free_buffer_return_text): Remove.
12321 (macro_buffer): New constructors.
12322 (~macro_buffer): New destructor.
12323 (macro_buffer::set_shared): New method.
12324 (macro_buffer::resize_buffer, macro_buffer::appendc)
12325 (macro_buffer::appendmem): Now methods, not free functions.
12326 (set_token, append_tokens_without_splicing, stringify)
12327 (macro_stringify): Update.
12328 (gather_arguments): Change return type. Remove argc_p argument,
12329 add args_ptr argument. Use std::vector.
12330 (substitute_args): Remove argc argument. Accept std::vector.
12331 (expand): Update. Use std::vector.
12332 (scan, macro_expand, macro_expand_next): Update.
12333
f6c2623e
TT
123342018-02-08 Tom Tromey <tom@tromey.com>
12335
12336 * symtab.c (default_collect_symbol_completion_matches_break_on):
12337 Use unique_xmalloc_ptr.
12338 * macroscope.h: (sal_macro_scope, user_macro_scope)
12339 (default_macro_scope): Return unique_xmalloc_ptr.
12340 * macroscope.c (sal_macro_scope, user_macro_scope)
12341 (default_macro_scope): Return unique_xmalloc_ptr.
12342 * macroexp.h (macro_expand, macro_expand_once): Return
12343 unique_xmalloc_ptr.
12344 * macroexp.c (macro_expand, macro_expand_once): Return
12345 unique_xmalloc_ptr.
12346 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12347 (info_macro_command, info_macros_command): Use
12348 unique_xmalloc_ptr.
12349 * compile/compile-c-support.c (write_macro_definitions): Use
12350 unique_xmalloc_ptr.
12351 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12352
c2e0e465
SM
123532018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12354
12355 * value.c (value_static_field): Assign field type instead of
12356 containing type when returning an optimized out value.
12357
3f8c94b4
YQ
123582018-02-06 Yao Qi <yao.qi@linaro.org>
12359
12360 * ft32-tdep.c (ft32_read_pc): Remove.
12361 (ft32_write_pc): Remove.
12362 (ft32_gdbarch_init): Update.
12363 * m32r-tdep.c (m32r_read_pc): Remove.
12364 (m32r_gdbarch_init): Update.
12365 * mep-tdep.c (mep_read_pc): Remove.
12366 (mep_gdbarch_init): Update.
12367 * microblaze-tdep.c (microblaze_write_pc): Remove.
12368 (microblaze_gdbarch_init): Update.
12369 * mn10300-tdep.c (mn10300_read_pc): Remove.
12370 (mn10300_write_pc): Remove.
12371 (mn10300_gdbarch_init): Update.
12372 * moxie-tdep.c (moxie_read_pc): Remove.
12373 (moxie_write_pc): Remove.
12374 (moxie_gdbarch_init): Update.
12375
bca65a23
YQ
123762018-02-06 Yao Qi <yao.qi@linaro.org>
12377
12378 * expprint.c (print_subexp_standard): Handle
12379 OP_F77_UNDETERMINED_ARGLIST.
12380 (dump_subexp_body_standard): Likewise.
12381
583e3f90 123822018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 12383
583e3f90
YQ
12384 * target-descriptions.c (tdesc_element_visitor) Add empty
12385 implementations.
b8df6ca7
AH
12386 (tdesc_type): Move make_gdb_type from here.
12387 (tdesc_type_builtin): Likewise.
12388 (tdesc_type_vector): Likewise.
12389 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12390 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12391 (make_gdb_type_union): Likewise.
12392 (make_gdb_type_flags): Likewise.
12393 (make_gdb_type_enum): Likewise.
12394 (make_gdb_type): New function.
12395 (tdesc_register_type): Use static make_gdb_type.
12396
e813d34a
RK
123972018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12398
12399 * infcmd.c (default_print_one_register_info): Align natural-format
12400 column values consistently one under another.
12401 (pad_to_column): New function.
12402
0eb876f5
JB
124032018-02-05 Joel Brobecker <brobecker@adacore.com>
12404
12405 * dwarf2read.c (dwarf2_physname): Move commment.
12406
0625771b
LS
124072018-02-01 Leszek Swirski <leszeks@google.com>
12408
12409 * varobj.c (varobj_formatted_print_options): Allow recursive
12410 pretty printing if pretty printing is enabled.
12411
59498c30
LS
124122018-02-01 Leszek Swirski <leszeks@google.com>
12413
12414 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12415 names after a structop as a filename.
12416
2d9e6acb
YQ
124172018-02-01 Yao Qi <yao.qi@linaro.org>
12418
12419 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12420 (arm_record_coproc_data_proc): Likewise.
12421
df95a9cf
YQ
124222018-02-01 Yao Qi <yao.qi@linaro.org>
12423
12424 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12425
07e5f5cf
NP
124262018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12427
12428 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12429 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12430
3045b475
PA
124312018-01-31 Pedro Alves <palves@redhat.com>
12432
12433 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12434 * inflow.c (child_terminal_save_inferior): Wrap reference to
12435 tcgetpgrp in HAVE_TERMIOS_H.
12436 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12437 _WIN32.
12438 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12439 always iterate over all inferiors.
12440 (gdbsim_cntrl_c): Adjust.
12441 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12442
929b5ad4
JB
124432018-01-31 Joel Brobecker <brobecker@adacore.com>
12444
12445 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12446 index type is objfile-owned if the element type is as well.
12447
29236ca2
JB
124482018-01-31 Joel Brobecker <brobecker@adacore.com>
12449
12450 GDB 8.1 released.
12451
c81e8879
PR
124522018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12453
12454 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12455 "features/s390x-linux64.c".
12456 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12457 s390_linux32 and s390x_linux64.
12458 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12459 default tdesc.
12460 * s390-tdep.c: Include "features/s390-linux32.c" and
12461 "features/s390x-linux64.c".
12462 (s390_tdesc_valid): Add check for tdesc_has_registers.
12463 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12464 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12465 tdesc_s390x_linux64.
12466 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12467 tdesc_s390x_linux64 to...
12468 * s390-tdep.h: ...here.
12469
e671cd59
PA
124702018-01-30 Pedro Alves <palves@redhat.com>
12471
12472 PR gdb/13211
12473 * config.in, configure: Regenerate.
12474 * configure.ac: Check for getpgid.
12475 * go32-nat.c (go32_pass_ctrlc): New.
12476 (go32_target): Install it.
12477 * inf-child.c (inf_child_target): Install
12478 child_terminal_save_inferior, child_pass_ctrlc and
12479 child_interrupt.
12480 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12481 (inf_ptrace_target): No longer install it.
12482 * infcmd.c (interrupt_target_1): Adjust.
12483 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12484 (child_interrupt): Declare.
12485 (inferior::terminal_state): New.
12486 * inflow.c (struct terminal_info): Update comments.
12487 (inferior_process_group): Delete.
12488 (terminal_is_ours): Delete.
12489 (gdb_tty_state): New.
12490 (child_terminal_init): Adjust.
12491 (is_gdb_terminal, sharing_input_terminal_1)
12492 (sharing_input_terminal): New functions.
12493 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12494 Set the process's actual process group in the foreground if
12495 possible. Handle is_ours_for_output/is_ours distinction. Don't
12496 mark terminal as the inferior's if not sharing GDB's terminal.
12497 Don't check attach_flag.
12498 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12499 pass down a target_terminal_state.
12500 (child_terminal_save_inferior): New, factored out from ...
12501 (child_terminal_ours_1): ... this. Handle
12502 target_terminal_state::is_ours_for_output.
12503 (child_interrupt, child_pass_ctrlc): New.
12504 (inflow_inferior_exit): Clear the inferior's terminal_state.
12505 (copy_terminal_info): Copy the inferior's terminal state.
12506 (_initialize_inflow): Remove reference to terminal_is_ours.
12507 * inflow.h (inferior_process_group): Delete.
12508 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12509 * procfs.c (procfs_target): Don't install procfs_interrupt.
12510 (procfs_interrupt): Delete.
12511 * remote.c (remote_serial_quit_handler): Adjust.
12512 (remote_interrupt): Remove ptid parameter. Adjust.
12513 * target-delegates.c: Regenerate.
12514 * target.c: Include "terminal.h".
12515 (target_terminal::terminal_state): Rename to ...
12516 (target_terminal::m_terminal_state): ... this.
12517 (target_terminal::init): Adjust.
12518 (target_terminal::inferior): Adjust to per-inferior
12519 terminal_state.
12520 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12521 (target_terminal::ours, target_terminal::ours_for_output): Use
12522 target_terminal_is_ours_kind.
12523 (target_interrupt): Remove ptid parameter. Adjust.
12524 (default_target_pass_ctrlc): Adjust.
12525 * target.h (target_ops::to_terminal_save_inferior): New field.
12526 (target_ops::to_interrupt): Remove ptid_t parameter.
12527 (target_interrupt): Remove ptid_t parameter. Update comment.
12528 (target_pass_ctrlc): Update comment.
12529 * target/target.h (target_terminal_state): New scoped enum,
12530 factored out of ...
12531 (target_terminal::terminal_state): ... here.
12532 (target_terminal::inferior): Update comments.
12533 (target_terminal::restore_inferior): New.
12534 (target_terminal::is_inferior, target_terminal::is_ours)
12535 (target_terminal::is_ours_for_output): Adjust.
12536 (target_terminal::scoped_restore_terminal_state): Adjust to
12537 rename, and call restore_inferior() instead of inferior().
12538 (target_terminal::scoped_restore_terminal_state::m_state): Change
12539 type.
12540 (target_terminal::terminal_state): Rename to ...
12541 (target_terminal::m_terminal_state): ... this and change type.
12542
9c3a5d93
PA
125432018-01-30 Pedro Alves <palves@redhat.com>
12544
12545 * linux-nat.c (wait_for_signal): New function.
12546 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12547 directly.
12548 (async_terminal_is_ours)
12549 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12550 (linux_nat_add_target): Don't override
12551 to_terminal_inferior/to_terminal_ours.
12552
69ab5edb
SDJ
125532018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12554
12555 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12556
fc8e7e75
SM
125572018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12558
12559 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12560 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12561 dwarf2_per_objfile_free here.
12562 (dwarf2_per_objfile_free): Remove.
12563 (_initialize_dwarf2_read): Don't register
12564 dwarf2_per_objfile_free as a registry cleanup.
12565
b2a426e2
EZ
125662018-01-27 Eli Zaretskii <eliz@gnu.org>
12567
12568 Avoid compilation errors in MinGW native builds
12569
12570 The error is triggered by including python-internal.h, and the
12571 error message is:
12572
12573 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12574 from build-gnulib/import/math.h:27,
12575 from d:/usr/Python26/include/pyport.h:235,
12576 from d:/usr/Python26/include/Python.h:58,
12577 from python/python-internal.h:94,
12578 from python/py-arch.c:24:
12579 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12580 using ::hypot;
12581 ^~~~~
12582
12583 This happens because Python headers define 'hypot' to expand t
12584 '_hypot' in the Windows builds.
12585 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12586 'hypoth'. This avoids a compilation error.
12587
0bdd8eac
AH
125882018-01-26 Alan Hayward <alan.hayward@arm.com>
12589
12590 * MAINTAINERS (Write After Approval): Fix ordering.
12591
56ae9dc3
AH
125922018-01-26 Alan Hayward <alan.hayward@arm.com>
12593
12594 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12595
7433498b
AM
125962018-01-26 Alan Modra <amodra@gmail.com>
12597
12598 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12599 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12600 Remove nop. Make const. Comment.
12601 (powerpc32_plt_stub_so_2): New.
12602 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12603 Correct count. Update uses.
12604 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12605 Move common code reading PLT entry word. Correct
12606 powerpc32_plt_stub PLT address calculation.
12607 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12608 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12609 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12610 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12611 (ppc64_standard_linkage8): Likewise.
12612 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12613 Correct insns description.
12614 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12615
0f59d5fc
PA
126162018-01-24 Pedro Alves <palves@redhat.com>
12617
12618 GCC PR libstdc++/83906
12619 * gdbtypes.c (operator==(const dynamic_prop &,
12620 const dynamic_prop &)): New.
12621 (operator==(const range_bounds &, const range_bounds &)): New.
12622 (check_types_equal): Use them instead of memcmp.
12623 * gdbtypes.h (operator==(const dynamic_prop &,
12624 const dynamic_prop &)): Declare.
12625 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12626 (operator==(const range_bounds &, const range_bounds &)): Declare.
12627 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12628
ef8914a4
PR
126292018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12630
12631 * s390-linux-tdep.c (s390_record_address_mask)
12632 (s390_record_calc_disp_common, s390_record_calc_disp)
12633 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12634 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12635 (s390_process_record): Move to s390-tdep.c.
12636 (s390_linux_init_abi_any): Adjust.
12637 * s390-tdep.c (s390_record_address_mask)
12638 (s390_record_calc_disp_common, s390_record_calc_disp)
12639 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12640 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12641 (s390_process_record): Moved from s390-linux-tdep.c
12642 (s390_gdbarch_init): Adjust.
12643
d6e58945
PR
126442018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12645
12646 * s390-linux-nat.c (s390-tdep.h): New include.
12647 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12648 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12649 (ALLDEPFILES): Add s390-tdep.c.
12650 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12651 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12652 * s390-tdep.h: ...this. New file.
12653 * s390-linux-tdep.c (s390-tdep.h): New include.
12654 (_initialize_s390_tdep): Rename to...
12655 (_initialize_s390_linux_tdep): ...this and adjust.
12656 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12657 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12658 s390-tdep.h.
12659 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12660 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12661 (s390_is_partial_instruction, s390_software_single_step)
12662 (is_non_branch_ril, s390_displaced_step_copy_insn)
12663 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12664 (s390_prologue_data, s390_addr, s390_store, s390_load)
12665 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12666 (s390_register_call_saved, s390_guess_tracepoint_registers)
12667 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12668 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12669 (s390_pseudo_register_name, s390_pseudo_register_type)
12670 (s390_pseudo_register_read, s390_pseudo_register_write)
12671 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12672 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12673 (s390_addr_bits_remove, s390_address_class_type_flags)
12674 (s390_address_class_type_flags_to_name)
12675 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12676 (s390_function_arg_float, s390_function_arg_vector)
12677 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12678 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12679 (s390_frame_align, s390_register_return_value, s390_return_value)
12680 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12681 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12682 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12683 (s390_trad_frame_prev_register, s390_unwind_cache)
12684 (s390_prologue_frame_unwind_cache)
12685 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12686 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12687 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12688 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12689 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12690 (s390_frame_base_address, s390_local_base_address)
12691 (s390_frame_base, s390_gcc_target_options)
12692 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12693 (s390_validate_reg_range, s390_tdesc_valid)
12694 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12695 * s390-tdep.c: ...this. New file.
12696
9c0b896e
PR
126972018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12698
12699 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12700 (s390_process_record, s390_gdbarch_tdep_alloc)
12701 (s390_linux_init_abi_any): Use/set new hook.
12702
7042632b
PR
127032018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12704
12705 * s390-linux-tdep.c (osabi.h): New include.
12706 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12707 (s390_linux_init_abi_any): New functions.
12708 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12709
650f5e13
PR
127102018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12711
12712 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12713 tdesc_has_registers check
12714
47c9317e
PR
127152018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12716
12717 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12718 (s390_validate_reg_range): New macro.
12719 (s390_gdbarch_init): Adjust.
12720
095085d8
PR
127212018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12722
12723 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12724 (s390_gdbarch_tdep_alloc): Adjust.
12725 (s390_gdbarch_init): Adjust.
12726
ab9bcc67
PR
127272018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12728
12729 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12730 <have_tdb>: Change type to bool.
12731 (s390_gdbarch_tdep_alloc): Adjust.
12732 (s390_gdbarch_init): Adjust.
12733
21f6f5ff
PR
127342018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12735
12736 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12737 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12738 (s390_gdbarch_tdep_alloc): New function.
12739 (s390_gdbarch_init): Allocate tdep at start and use its fields
12740 instead of separate variables.
12741
0eb97953
PR
127422018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12743
12744 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12745 when looking for cached gdbarch and add comment for remaining.
12746
5c319bb2
PA
127472018-01-22 Pedro Alves <palves@redhat.com>
12748 Sergio Durigan Junior <sergiodj@redhat.com>
12749
12750 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12751 case.
12752
d65ce302
MR
127532018-01-22 Maciej W. Rozycki <macro@mips.com>
12754
12755 * MAINTAINERS: Update my company e-mail address.
12756
ec7a5fcb
YQ
127572018-01-22 Yao Qi <yao.qi@linaro.org>
12758
12759 * regcache.c (cooked_write_test): New function.
12760 (_initialize_regcache): Register the test.
12761
11f57cb6
YQ
127622018-01-22 Yao Qi <yao.qi@linaro.org>
12763
12764 * ia64-tdep.c (ia64_pseudo_register_read): Call
12765 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12766 * m32c-tdep.c (m32c_cat_read): Likewise.
12767 (m32c_r3r2r1r0_read): Likewise.
12768 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12769 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12770
03f50fc8
YQ
127712018-01-22 Yao Qi <yao.qi@linaro.org>
12772
12773 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12774 method raw_read instead of regcache_raw_read.
12775 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12776 * arm-tdep.c (arm_neon_quad_read): Likewise.
12777 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12778 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12779 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12780 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12781 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12782 (i386_pseudo_register_read_into_value): Likewise.
12783 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12784 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12785 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12786 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12787 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12788 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12789 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12790 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12791 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12792
dc711524
YQ
127932018-01-22 Yao Qi <yao.qi@linaro.org>
12794
12795 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12796 * configure.tgt: Remove target mt.
12797 * mt-tdep.c: Remove.
12798 * regcache.c (cooked_read_test): Remove the check for mt.
12799
3f5a868b
YQ
128002018-01-22 Yao Qi <yao.qi@linaro.org>
12801
12802 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12803 instead of gdbarch_pseudo_register_read_value.
12804
de4cb04a
JB
128052018-01-22 Joel Brobecker <brobecker@adacore.com>
12806
12807 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12808 language is Ada.
12809
a9e40818
JB
128102018-01-22 Joel Brobecker <brobecker@adacore.com>
12811
12812 * linespec.c (create_sals_line_offset): Remove code that preserved
12813 the symtab_and_line's line number.
12814
e707fc44
AB
128152018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12816
12817 * varobj.c (varobj_create): Don't set valid_block when creating a
12818 floating varobj.
12819
03d0bf7b
AB
128202018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12821
12822 * varobj.c (varobj_create): Remove out of date comment.
12823
ae451627
AB
128242018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12825
12826 PR mi/20395
12827 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12828 updating innermost block.
12829 * parse.c (innermost_block_tracker::update): Take extra type
12830 parameter, and check types match before updating innermost block.
12831 (write_dollar_variable): Update innermost block for registers.
12832 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12833 (innermost_block_tracker::innermost_block_tracker): Initialise
12834 m_types member.
12835 (innermost_block_tracker::reset): Take type parameter.
12836 (innermost_block_tracker::update): Take type parameter, and pass
12837 type through as needed.
12838 (innermost_block_tracker::m_types): New member.
12839 * varobj.c (varobj_create): Pass type when reseting innermost
12840 block.
12841
aee1fcdf
AB
128422018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12843
12844 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12845 * ada-lang.c (resolve_subexp): Likewise.
12846 * breakpoint.c (set_breakpoint_condition) Likewise.
12847 (watch_command_1) Likewise.
12848 * c-exp.y (variable): Likewise.
12849 * d-exp.y (PrimaryExpression): Likewise.
12850 * f-exp.y (variable): Likewise.
12851 * go-exp.y (variable): Likewise.
12852 * m2-exp.y (variable): Likewise.
12853 * objfiles.c (objfile::~objfile): Likewise.
12854 * p-exp.y (variable): Likewise.
12855 * parse.c (innermost_block): Change type.
12856 * parser-defs.h (class innermost_block_tracker): New.
12857 (innermost_block): Change to innermost_block_tracker.
12858 * printcmd.c (display_command): Switch to innermost_block API.
12859 (do_one_display): Likewise.
12860 * rust-exp.y (do_one_display): Likewise.
12861 * symfile.c (clear_symtab_users): Likewise.
12862 * varobj.c (varobj_create): Switch to innermost_block API, replace
12863 use of innermost_block with block stored on varobj object.
12864
396af9a1
AB
128652018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12866
12867 * expression.h (innermost_block): Remove declaration.
12868 * varobj.c: Add 'parser-defs.h' include.
12869
fcfcc376
TT
128702018-01-19 Tom Tromey <tom@tromey.com>
12871
12872 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12873 symbols in the static and global blocks.
12874
5a6c3296
JC
128752018-01-19 James Clarke <jrtc27@jrtc27.com>
12876
12877 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12878 gdb_ptrace.h, and move including gdb_wait.h ...
12879 * nat/linux-ptrace.h: ... to here.
12880
bc09b0c1
SM
128812018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12882
12883 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12884 inf_ptrace_detach_success.
12885 (inf_ptrace_detach_success): Add inferior parameter, use it
12886 instead of inferior_ptid, pass it to detach_inferior.
12887 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12888 parameter.
12889 * inferior.c (detach_inferior): Add overload that takes an
12890 inferior object.
12891 * inferior.h (detach_inferior): Likewise.
12892 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12893 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12894 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12895
6e1e1966
SM
128962018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12897
12898 * target.h (struct target_ops) <to_detach>: Add inferior
12899 parameter.
12900 (target_detach): Likewise.
12901 * target.c (dispose_inferior): Pass inferior down.
12902 (target_detach): Pass inferior down. Assert that it is equal to
12903 the current inferior.
12904 * aix-thread.c (aix_thread_detach): Pass inferior down.
12905 * corefile.c (core_file_command): Pass current_inferior() down.
12906 * corelow.c (core_detach): Add inferior parameter.
12907 * darwin-nat.c (darwin_detach): Likewise.
12908 * gnu-nat.c (gnu_detach): Likewise.
12909 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12910 * infcmd.c (detach_command): Pass current_inferior() down to
12911 target_detach.
12912 * infrun.c (follow_fork_inferior): Pass parent_inf to
12913 target_detach.
12914 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12915 target_detach.
12916 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12917 * linux-thread-db.c (thread_db_detach): Likewise.
12918 * nto-procfs.c (procfs_detach): Likewise.
12919 * procfs.c (procfs_detach): Likewise.
12920 * record.c (record_detach): Likewise.
12921 * record.h (struct inferior): Forward-declare.
12922 (record_detach): Add inferior parameter.
12923 * remote-sim.c (gdbsim_detach): Likewise.
12924 * remote.c (remote_detach_1): Likewise.
12925 (remote_detach): Likewise.
12926 (extended_remote_detach): Likewise.
12927 * sol-thread.c (sol_thread_detach): Likewise.
12928 * target-debug.h (target_debug_print_inferior_p): New macro.
12929 * target-delegates.c: Re-generate.
12930 * top.c (kill_or_detach): Pass inferior down to target_detach.
12931 * windows-nat.c (windows_detach): Add inferior parameter.
12932
6bd6f3b6
SM
129332018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12934
12935 * target.h (struct target_ops) <to_detach>: Remove args
12936 parameter.
12937 (target_detach): Likewise.
12938 * target.c (dispose_inferior): Adjust.
12939 (target_detach): Remove args parameter, adjust.
12940 * aix-thread.c (aix_thread_detach): Adjust.
12941 * corefile.c (core_file_command): Adjust.
12942 * corelow.c (core_detach): Adjust.
12943 * darwin-nat.c (darwin_detach): Adjust.
12944 * gnu-nat.c (gnu_detach): Adjust.
12945 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12946 * infcmd.c (detach_command): Adjust
12947 * infrun.c (follow_fork_inferior): Adjust.
12948 (handle_vfork_child_exec_or_exit): Adjust.
12949 * linux-fork.c (linux_fork_detach): Remove args parameter.
12950 * linux-fork.h (linux_fork_detach): Likewise.
12951 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12952 * linux-thread-db.c (thread_db_detach): Likewise.
12953 * nto-procfs.c (procfs_detach): Likewise.
12954 * procfs.c (procfs_detach): Likewise.
12955 (do_detach): Remove signo parameter.
12956 * record.c (record_detach): Remove args parameter.
12957 * record.h (record_detach): Likewise.
12958 * remote-sim.c (gdbsim_detach): Likewise.
12959 * remote.c (remote_detach_1): Likewise.
12960 (remote_detach): Likewise.
12961 (extended_remote_detach): Likewise.
12962 * sol-thread.c (sol_thread_detach): Likewise.
12963 * target-delegates.c: Re-generate.
12964 * top.c (struct qt_args) <args>: Remove field.
12965 (kill_or_detach): Don't pass args.
12966 (quit_force): Don't set args.
12967 * windows-nat.c (windows_detach): Remove args parameter.
12968
88af8ea8
YQ
129692018-01-19 Yao Qi <yao.qi@linaro.org>
12970
12971 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12972 (arm_linux_init_abi): Install it.
12973
dea445b9
YQ
129742018-01-19 Yao Qi <yao.qi@linaro.org>
12975
12976 * osabi.c (gdb_osabi_names): Extend the regexp for
12977 arm-linux-gnueabihf.
12978
4a17f768
YQ
129792018-01-18 Yao Qi <yao.qi@linaro.org>
12980
12981 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12982 m_abbrevs.
12983 (abbrev_table::add_abbrev): Update.
12984 (abbrev_table::lookup_abbrev): Update.
12985
d679c21a
YQ
129862018-01-18 Yao Qi <yao.qi@linaro.org>
12987
12988 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12989
7d937cad
SDJ
129902018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12991
12992 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12993 to "std::string".
12994
9e14690d
TT
129952018-01-17 Tom Tromey <tom@tromey.com>
12996
12997 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12998
50a82047
TT
129992018-01-17 Tom Tromey <tom@tromey.com>
13000
13001 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13002 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13003 (create_array_type_with_stride): Update.
13004 * dwarf2read.c (set_die_type): Update.
13005
c89b44cd
TT
130062018-01-17 Tom Tromey <tom@tromey.com>
13007
13008 * dwarf2read.c (delayed_method_info): Remove typedef.
13009 (dwarf2_cu::method_info): Now a std::vector.
13010 (add_to_method_list): Update.
13011 (free_delayed_list): Remove.
13012 (compute_delayed_physnames): Update.
13013 (process_full_comp_unit, process_full_type_unit): Clear the method
13014 list. Remove cleanups.
13015 (psymtab_include_file_name): Add name_holder parameter. Use
13016 unique_xmalloc_ptr.
13017 (dwarf_decode_lines): Update.
13018
fcd3b13d
SM
130192018-01-17 Tom Tromey <tom@tromey.com>
13020 Simon Marchi <simon.marchi@ericsson.com>
13021
13022 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13023 (dwarf2_per_objfile::free_cached_comp_units)
13024 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13025 (init_cutu_and_read_dies_no_follow): Update.
13026 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13027 (dwarf2_cu::~dwarf2_cu): New.
13028 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13029 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13030
685af9cd
TT
130312018-01-17 Tom Tromey <tom@tromey.com>
13032 Simon Marchi <simon.marchi@ericsson.com>
13033
13034 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13035 (struct die_reader_specs) <abbrev_table>: New member.
13036 (struct abbrev_table): Add constructor.
13037 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13038 <abbrev_obstack>: Now an auto_obstack.
13039 (abbrev_table_up): New typedef.
13040 (init_cu_die_reader): Add abbrev_table parameter.
13041 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13042 Add result_dwo_abbrev_table.
13043 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13044 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13045 Update.
13046 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13047 parameter.
13048 (skip_children): Update.
13049 (abbrev_table::alloc_abbrev): Rename from
13050 abbrev_table_alloc_abbrev.
13051 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13052 (abbrev_table::lookup_abbrev): Rename from
13053 abbrev_table_lookup_abbrev.
13054 (abbrev_table_read_table): Return abbrev_table_up.
13055 (abbrev_table_free, abbrev_table_free_cleanup)
13056 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13057 (load_partial_dies): Update.
13058
5e2db402
TT
130592018-01-17 Tom Tromey <tom@tromey.com>
13060
13061 * dwarf2read.c (dwarf2_compute_name): Update comment.
13062 (read_func_scope, read_variable): Update.
13063 (new_symbol): Remove.
13064 (new_symbol_full): Rename to new_symbol.
13065
ee7f689e 130662018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
13067
13068 PR gdb/16577
13069 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13070 a warning instead of throwing an error, set section size to 0 and return
13071 NULL.
13072 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13073
4d9b86e1
SM
130742018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13075
13076 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13077 std::string.
13078 (linux_ptrace_attach_fail_reason_string): Likewise.
13079 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13080 Likewise.
13081 (linux_ptrace_attach_fail_reason_string): Likewise.
13082 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13083
a7b2d0fb
SM
130842018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13085
13086 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13087
f517c180
EA
130882018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13089
13090 PR gdb/21559
13091 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13092 checking for fs_base/gs_base fields in struct user_regs_struct.
13093 * configure: Regenerate.
13094
7045b1ca
YQ
130952018-01-17 Yao Qi <yao.qi@linaro.org>
13096
13097 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13098 function.
13099 (aarch64_linux_init_abi): Install it to gdbarch hook
13100 gcc_target_options.
13101
db422fb2
PA
131022018-01-15 Pedro Alves <palves@redhat.com>
13103
13104 * common/signals-state-save-restore.c
13105 (save_original_signals_state): Fix typos.
13106
ba643918
SDJ
131072017-01-12 Tom Tromey <tom@tromey.com>
13108 Sergio Durigan Junior <sergiodj@redhat.com>
13109
13110 * Makefile.in (install-only): Install gdb-add-index.
13111
906b4aac
JB
131122018-01-12 John Baldwin <jhb@FreeBSD.org>
13113
13114 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13115
bdf2a94a
AA
131162018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13117
13118 * infrun.c (keep_going_pass_signal): Clear step-over info when
13119 insert_breakpoints fails.
13120
71d378ae
PA
131212018-01-11 Pedro Alves <palves@redhat.com>
13122
13123 PR gdb/22583
13124 * infrun.c (resume): Rename to ...
13125 (resume_1): ... this.
13126 (resume): Reimplement as wrapper around resume_1.
13127
3cada740
PA
131282018-01-11 Pedro Alves <palves@redhat.com>
13129
13130 PR remote/22597
13131 * remote.c (remote_parse_stop_reply): Default to the last-set
13132 general thread instead of to 'magic_null_ptid'.
13133
618daa93
PA
131342018-01-10 Pedro Alves <palves@redhat.com>
13135
13136 * language.h (language_get_symbol_name_matcher): Rename ...
13137 (get_symbol_name_matcher): ... this.
13138 * language.c (language_get_symbol_name_matcher): Ditto.
13139 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13140 callers adjusted.
13141
c63d3e8d
PA
131422018-01-10 Pedro Alves <palves@redhat.com>
13143
13144 PR gdb/22670
13145 * dwarf2read.c
13146 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13147 Adjust to use language_get_symbol_name_matcher instead of
13148 language_defn::la_get_symbol_name_matcher.
13149 * language.c (language_get_symbol_name_matcher): If in Ada mode
13150 and the lookup name is a verbatim match, return Ada's matcher.
13151 * language.h (language_get_symbol_name_matcher): Adjust comment.
13152 (ada_lookup_name_info::verbatim_p):: New method.
13153
d4c2a405
PA
131542018-01-10 Pedro Alves <palves@redhat.com>
13155
13156 PR gdb/22670
13157 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13158 minsym's language is language_auto or language_cplus, pass down
13159 language_ada instead.
13160 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13161
8825213e
PA
131622018-01-10 Pedro Alves <palves@redhat.com>
13163
13164 PR gdb/22670
13165 * minsyms.c (linkage_name_str): New function.
13166 (iterate_over_minimal_symbols): Use it.
13167
2d97a5d9
JB
131682018-01-09 John Baldwin <jhb@FreeBSD.org>
13169
13170 * NEWS: Document that 'info proc' now works on FreeBSD.
13171
92fce24d
JB
131722018-01-09 John Baldwin <jhb@FreeBSD.org>
13173
13174 * configure.ac: Check for kinfo_getfile in libutil.
13175 * configure: Regenerate.
13176 * config.in: Regenerate.
13177 * fbsd-nat.c: Include "fbsd-tdep.h".
13178 (fbsd_fetch_cmdline): New.
13179 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13180 rather than calling error.
13181 (fbsd_info_proc): New.
13182 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13183 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13184 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13185
262f62f5
JB
131862018-01-09 John Baldwin <jhb@FreeBSD.org>
13187
13188 * fbsd-nat.c (struct free_deleter): Remove.
13189 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13190
b999e203
JB
131912018-01-09 John Baldwin <jhb@FreeBSD.org>
13192
13193 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13194 NULL for an empty pathname.
13195
d2176225
JB
131962018-01-09 John Baldwin <jhb@FreeBSD.org>
13197
13198 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13199 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13200 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13201 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13202 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13203 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13204 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13205 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13206 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13207 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13208 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13209 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13210 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13211 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13212 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13213
9c4ac400
ST
132142018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13215
13216 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13217 (gnu_xfer_auxv): New function.
13218 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13219 TARGET_OBJECT_AUXV.
13220
1e5ded6c
YQ
132212018-01-08 Yao Qi <yao.qi@linaro.org>
13222 Simon Marchi <simon.marchi@ericsson.com>
13223
13224 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13225 common/selftest.c.
13226 (COMMON_OBS): Remove selftest.o.
13227 * configure.ac: Append selftest-arch.c and common/selftest.c to
13228 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13229 * configure: Re-generated.
13230 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13231 GDB_SELF_TEST.
13232 (maintenance_info_selftests): Likewise.
13233
04bafb1e
XR
132342018-01-08 Xavier Roirand <roirand@adacore.com>
13235
13236 * ada-valprint.c (val_print_packed_array_elements): Use
13237 proper number of elements when printing an array indexed
13238 by an enumeration type.
13239
518817b3
SM
132402018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13241
13242 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13243 (dw2_get_file_names_reader): Adjust.
13244 (lookup_dwo_signatured_type): Adjust.
13245 (lookup_dwp_signatured_type): Adjust.
13246 (lookup_signatured_type): Adjust.
13247 (create_type_unit_group): Adjust.
13248 (get_type_unit_group): Adjust.
13249 (process_psymtab_comp_unit_reader): Adjust.
13250 (build_type_psymtabs_reader): Adjust.
13251 (scan_partial_symbols): Adjust.
13252 (add_partial_symbol): Adjust.
13253 (add_partial_subprogram): Adjust.
13254 (peek_die_abbrev): Adjust.
13255 (fixup_go_packaging): Adjust.
13256 (process_imported_unit_die): Adjust.
13257 (dwarf2_compute_name): Adjust.
13258 (dwarf2_physname): Adjust.
13259 (read_import_statement): Adjust.
13260 (handle_DW_AT_stmt_list): Adjust.
13261 (read_file_scope): Adjust.
13262 (read_func_scope): Adjust.
13263 (read_lexical_block_scope): Adjust.
13264 (read_call_site_scope): Adjust.
13265 (read_variable): Adjust.
13266 (dwarf2_rnglists_process): Adjust.
13267 (dwarf2_ranges_process): Adjust.
13268 (dwarf2_ranges_read): Adjust.
13269 (dwarf2_get_pc_bounds): Adjust.
13270 (dwarf2_record_block_ranges): Adjust.
13271 (dwarf2_add_field): Adjust.
13272 (dwarf2_add_member_fn): Adjust.
13273 (read_structure_type): Adjust.
13274 (process_structure_scope): Adjust.
13275 (read_enumeration_type): Adjust.
13276 (read_array_type): Adjust.
13277 (mark_common_block_symbol_computed): Adjust.
13278 (read_common_block): Adjust.
13279 (read_namespace_type): Adjust.
13280 (read_namespace): Adjust.
13281 (read_module_type): Adjust.
13282 (read_tag_pointer_type): Adjust.
13283 (read_tag_ptr_to_member_type): Adjust.
13284 (read_tag_string_type): Adjust.
13285 (read_subroutine_type): Adjust.
13286 (read_typedef): Adjust.
13287 (read_base_type): Adjust.
13288 (attr_to_dynamic_prop): Adjust.
13289 (read_subrange_type): Adjust.
13290 (read_unspecified_type): Adjust.
13291 (dwarf2_read_abbrevs): Adjust.
13292 (load_partial_dies): Adjust.
13293 (read_partial_die): Adjust.
13294 (find_partial_die): Adjust.
13295 (guess_partial_die_structure_name): Adjust.
13296 (fixup_partial_die): Adjust.
13297 (read_attribute_value): Adjust.
13298 (read_addr_index): Adjust.
13299 (read_addr_index_from_leb128): Adjust.
13300 (read_str_index): Adjust.
13301 (dwarf2_string_attr): Adjust.
13302 (get_debug_line_section): Adjust.
13303 (dwarf_decode_line_header): Adjust.
13304 (lnp_state_machine::check_line_address): Adjust.
13305 (dwarf_decode_lines_1): Adjust.
13306 (dwarf_decode_lines): Adjust.
13307 (dwarf2_start_symtab): Adjust.
13308 (var_decode_location): Adjust.
13309 (new_symbol_full): Adjust.
13310 (dwarf2_const_value_data): Adjust.
13311 (dwarf2_const_value_attr): Adjust.
13312 (dwarf2_const_value): Adjust.
13313 (die_type): Adjust.
13314 (die_containing_type): Adjust.
13315 (build_error_marker_type): Adjust.
13316 (lookup_die_type): Adjust.
13317 (guess_full_die_structure_name): Adjust.
13318 (anonymous_struct_prefix): Adjust.
13319 (determine_prefix): Adjust.
13320 (dwarf2_name): Adjust.
13321 (follow_die_ref_or_sig): Adjust.
13322 (follow_die_offset): Adjust.
13323 (follow_die_ref): Adjust.
13324 (follow_die_sig_1): Adjust.
13325 (follow_die_sig): Adjust.
13326 (get_signatured_type): Adjust.
13327 (get_DW_AT_signature_type): Adjust.
13328 (decode_locdesc): Adjust.
13329 (dwarf_decode_macros): Adjust.
13330 (cu_debug_loc_section): Adjust.
13331 (fill_in_loclist_baton): Adjust.
13332 (dwarf2_symbol_mark_computed): Adjust.
13333 (init_one_comp_unit): Don't assign
13334 dwarf2_cu::dwarf2_per_objfile.
13335 (set_die_type): Adjust.
13336
ed2dc618
SM
133372018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13338
13339 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13340 <dwarf2_per_objfile>: New field.
13341 (dwarf2_per_objfile): Remove global.
13342 (get_dwarf2_per_objfile): New function.
13343 (set_dwarf2_per_objfile): New function.
13344 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13345 dwarf2_per_objfile.
13346 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13347 (read_abbrev_offset): Likewise.
13348 (read_indirect_string): Likewise.
13349 (read_indirect_line_string): Likewise.
13350 (read_indirect_string_at_offset): Likewise.
13351 (read_indirect_string_from_dwz): Likewise.
13352 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13353 dwarf2_per_objfile.
13354 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13355 (create_all_comp_units): Change objfile parameter to
13356 dwarf2_per_objfile.
13357 (create_all_type_units): Likewise.
13358 (process_queue): Add dwarf2_per_objfile parameter.
13359 (read_and_check_comp_unit_head): Likewise.
13360 (lookup_dwo_unit_in_dwp): Likewise.
13361 (get_dwp_file): Likewise.
13362 (process_cu_includes): Likewise.
13363 (struct free_dwo_file_cleanup_data): New struct.
13364 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13365 set_dwarf2_per_objfile.
13366 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13367 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13368 context, adjust calls.
13369 (dw2_instantiate_symtab): Likewise.
13370 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13371 (dw2_get_cu): Likewise.
13372 (create_cu_from_index_list): Change objfile parameter to
13373 dwarf2_per_objfile.
13374 (create_cus_from_index_list): Get dwarf2_per_objfile from
13375 context, adjust calls.
13376 (create_cus_from_index): Likewise.
13377 (create_signatured_type_table_from_index): Change objfile
13378 parameter to dwarf2_per_objfile.
13379 (create_signatured_type_table_from_debug_names): Change objfile
13380 parameter to dwarf2_per_objfile.
13381 (create_addrmap_from_index): Likewise.
13382 (create_addrmap_from_aranges): Likewise.
13383 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13384 (dw2_setup): Remove.
13385 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13386 context.
13387 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13388 get_dwarf2_per_objfile.
13389 (dw2_forget_cached_source_info): Likewise.
13390 (dw2_map_symtabs_matching_filename): Likewise.
13391 (struct dw2_symtab_iterator) <index>: Remove.
13392 <dwarf2_per_objfile>: New field.
13393 (dw2_symtab_iter_init): Replace index parameter with
13394 dwarf2_per_objfile.
13395 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13396 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13397 (dw2_print_stats): Likewise.
13398 (dw2_dump): Likewise.
13399 (dw2_expand_symtabs_for_function): Likewise.
13400 (dw2_expand_all_symtabs): Likewise.
13401 (dw2_expand_symtabs_with_fullname): Likewise.
13402 (dw2_expand_marked_cus): Replace index and objfile parameters
13403 with dwarf2_per_objfile.
13404 (dw_expand_symtabs_matching_file_matcher): Add
13405 dwarf2_per_objfile parameter and adjust calls.
13406 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13407 adjust calls.
13408 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13409 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13410 adjust calls.
13411 (create_cus_from_debug_names_list): Replace objfile parameter
13412 with dwarf2_per_objfile and adjust calls.
13413 (create_cus_from_debug_names): Likewise.
13414 (dwarf2_read_debug_names): Likewise.
13415 (mapped_debug_names::namei_to_name): Adjust call.
13416 (dw2_debug_names_iterator::next): Likewise.
13417 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13418 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13419 (dw2_debug_names_dump): Likewise.
13420 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13421 (dw2_debug_names_expand_symtabs_matching): Likewise.
13422 (dwarf2_initialize_objfile): Likewise.
13423 (dwarf2_build_psymtabs): Likewise.
13424 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13425 this_cu.
13426 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13427 (read_and_check_comp_unit_head): Likewise.
13428 (read_abbrev_offset): Likewise.
13429 (create_debug_type_hash_table): Likewise.
13430 (create_debug_types_hash_table): Likewise.
13431 (create_all_type_units): Replace objfile parameter with
13432 dwarf2_per_objfile.
13433 (add_type_unit): Add dwarf2_per_objfile parameter.
13434 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13435 with dwarf2_per_objfile.
13436 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13437 (lookup_dwp_signatured_type): Likewise.
13438 (lookup_signatured_type): Likewise.
13439 (read_cutu_die_from_dwo): Likewise.
13440 (init_tu_and_read_dwo_dies): Likewise.
13441 (init_cutu_and_read_dies): Likewise.
13442 (init_cutu_and_read_dies_no_follow): Likewise.
13443 (allocate_type_unit_groups_table): Add objfile parameter.
13444 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13445 (get_type_unit_group): Likewise.
13446 (process_psymtab_comp_unit): Update call.
13447 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13448 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13449 (print_tu_stats): Likewise.
13450 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13451 in void* parameter.
13452 (build_type_psymtabs): Change objfile parameter to
13453 dwarf2_per_objfile.
13454 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13455 passed in void* parameter.
13456 (process_skeletonless_type_units): Change objfile parameter to
13457 dwarf2_per_objfile.
13458 (set_partial_user): Likewise.
13459 (dwarf2_build_psymtabs_hard): Likewise.
13460 (read_comp_units_from_section): Likewise.
13461 (create_all_comp_units): Likewise.
13462 (scan_partial_symbols): Update calls.
13463 (add_partial_symbol): Likewise.
13464 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13465 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13466 (process_queue): Add dwarf2_per_objfile parameter.
13467 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13468 (compute_compunit_symtab_includes): Likewise.
13469 (process_cu_includes): Add dwarf2_per_objfile parameter.
13470 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13471 (process_full_type_unit): Likewise.
13472 (process_imported_unit_die): Update call.
13473 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13474 (read_file_scope): Likewise.
13475 (allocate_dwo_file_hash_table): Add objfile parameter.
13476 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13477 (create_cus_hash_table): Likewise.
13478 (create_dwp_hash_table): Likewise.
13479 (create_dwo_unit_in_dwp_v1): Likewise.
13480 (create_dwp_v2_section): Likewise.
13481 (create_dwo_unit_in_dwp_v2): Likewise.
13482 (lookup_dwo_unit_in_dwp): Likewise.
13483 (try_open_dwop_file): Likewise.
13484 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13485 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13486 cleanup to include a reference to dwarf2_per_objfile.
13487 (open_dwp_file): Add dwarf2_per_objfile parameter.
13488 (open_and_init_dwp_file): Likewise.
13489 (get_dwp_file): Likewise.
13490 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13491 (queue_and_load_all_dwo_tus): Update call.
13492 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13493 data.
13494 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13495 (dwarf2_ranges_process): Likewise.
13496 (dwarf2_get_pc_bounds): Likewise.
13497 (mark_common_block_symbol_computed): Likewise.
13498 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13499 (dwarf2_read_abbrevs): Update call.
13500 (read_partial_die): Use dwarf2_per_objfile from cu.
13501 (find_partial_die): Likewise.
13502 (fixup_partial_die): Likewise.
13503 (read_attribute_value): Likewise.
13504 (read_indirect_string_at_offset_from): Add objfile parameter.
13505 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13506 parameter.
13507 (read_indirect_string_from_dwz): Add objfile parameter.
13508 (read_indirect_string): Add objfile parameter.
13509 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13510 (read_addr_index): Use dwarf2_per_objfile from cu.
13511 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13512 call dw2_setup.
13513 (read_str_index): Use dwarf2_per_objfile from cu.
13514 (get_debug_line_section): Likewise.
13515 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13516 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13517 (new_symbol_full): Use dwarf2_per_objfile from cu.
13518 (build_error_marker_type): Likewise.
13519 (lookup_die_type): Likewise.
13520 (determine_prefix): Likewise.
13521 (follow_die_offset): Likewise.
13522 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13523 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13524 (dwarf2_fetch_die_type_sect_off): Likewise.
13525 (dwarf2_get_die_type): Likewise.
13526 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13527 (get_signatured_type): Likewise.
13528 (get_DW_AT_signature_type): Likewise.
13529 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13530 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13531 (cu_debug_loc_section): Likewise.
13532 (fill_in_loclist_baton): Likewise.
13533 (dwarf2_symbol_mark_computed): Likewise.
13534 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13535 dwarf2_per_objfile.
13536 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13537 parameter.
13538 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13539 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13540 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13541 (set_die_type): Use dwarf2_free_objfile from cu.
13542 (get_die_type_at_offset): Likewise.
13543 (dwarf2_per_objfile_free): Don't assign global variable.
13544 (debug_names) <constructor>: Add dwarf2_per_objfile
13545 parameter, update m_debugstrlookup construction.
13546 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13547 parameter.
13548 <m_dwarf2_per_objfile>: New field.
13549 <lookup>: Use m_dwarf2_per_objfile.
13550 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13551 (psyms_seen_size): Likewise.
13552 (write_gdbindex): Replace objfile parameter with
13553 dwarf2_per_objfile.
13554 (write_debug_names): Likewise.
13555 (write_psymtabs_to_index): Likewise.
13556 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13557 calls.
13558
e3b94546
SM
135592018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13560
13561 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13562 <dwarf2_per_objfile>: New field.
13563 (struct dwarf2_per_cu_data) <objfile>: Remove.
13564 <dwarf2_per_objfile>: New field.
13565 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13566 of objfile.
13567 (create_signatured_type_table_from_index): Likewise.
13568 (create_debug_type_hash_table): Likewise.
13569 (fill_in_sig_entry_from_dwo_entry): Likewise.
13570 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13571 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13572 objfile.
13573 (create_partial_symtab): Access objfile through
13574 dwarf2_per_objfile.
13575 (process_psymtab_comp_unit_reader): Likewise.
13576 (read_comp_units_from_section): Likewise.
13577 (scan_partial_symbols): Likewise.
13578 (add_partial_symbol): Likewise.
13579 (add_partial_subprogram): Likewise.
13580 (peek_die_abbrev): Likewise.
13581 (fixup_go_packaging): Likewise.
13582 (process_full_comp_unit): Likewise.
13583 (process_full_type_unit): Likewise.
13584 (process_imported_unit_die): Likewise.
13585 (dwarf2_compute_name): Likewise.
13586 (dwarf2_physname): Likewise.
13587 (read_import_statement): Likewise.
13588 (create_cus_hash_table): Assign dwarf2_physname instead of
13589 objfile.
13590 (read_func_scope): Access objfile through dwarf2_per_objfile.
13591 (read_lexical_block_scope): Likewise.
13592 (read_call_site_scope): Likewise.
13593 (read_variable): Likewise.
13594 (dwarf2_rnglists_process): Likewise.
13595 (dwarf2_ranges_process): Likewise.
13596 (dwarf2_ranges_read): Likewise.
13597 (dwarf2_record_block_ranges): Likewise.
13598 (dwarf2_add_field): Likewise.
13599 (dwarf2_add_member_fn): Likewise.
13600 (read_structure_type): Likewise.
13601 (process_structure_scope): Likewise.
13602 (read_enumeration_type): Likewise.
13603 (read_array_type): Likewise.
13604 (read_common_block): Likewise.
13605 (read_namespace_type): Likewise.
13606 (read_namespace): Likewise.
13607 (read_module_type): Likewise.
13608 (read_tag_pointer_type): Likewise.
13609 (read_tag_ptr_to_member_type): Likewise.
13610 (read_tag_string_type): Likewise.
13611 (read_subroutine_type): Likewise.
13612 (read_typedef): Likewise.
13613 (read_base_type): Likewise.
13614 (attr_to_dynamic_prop): Likewise.
13615 (read_subrange_type): Likewise.
13616 (read_unspecified_type): Likewise.
13617 (load_partial_dies): Likewise.
13618 (read_partial_die): Likewise.
13619 (find_partial_die): Likewise.
13620 (guess_partial_die_structure_name): Likewise.
13621 (fixup_partial_die): Likewise.
13622 (read_attribute_value): Likewise.
13623 (read_addr_index_from_leb128): Likewise.
13624 (dwarf2_read_addr_index): Likewise.
13625 (dwarf2_string_attr): Likewise.
13626 (lnp_state_machine::check_line_address): Likewise.
13627 (dwarf_decode_lines_1): Likewise.
13628 (dwarf_decode_lines): Likewise.
13629 (dwarf2_start_symtab): Likewise.
13630 (var_decode_location): Likewise.
13631 (new_symbol_full): Likewise.
13632 (dwarf2_const_value_data): Likewise.
13633 (dwarf2_const_value_attr): Likewise.
13634 (dwarf2_const_value): Likewise.
13635 (die_type): Likewise.
13636 (die_containing_type): Likewise.
13637 (lookup_die_type): Likewise.
13638 (guess_full_die_structure_name): Likewise.
13639 (anonymous_struct_prefix): Likewise.
13640 (dwarf2_name): Likewise.
13641 (follow_die_ref_or_sig): Likewise.
13642 (follow_die_offset): Likewise.
13643 (follow_die_ref): Likewise.
13644 (dwarf2_fetch_die_loc_sect_off): Likewise.
13645 (dwarf2_fetch_constant_bytes): Likewise.
13646 (dwarf2_fetch_die_type_sect_off): Likewise.
13647 (dwarf2_get_die_type): Likewise.
13648 (follow_die_sig): Likewise.
13649 (decode_locdesc): Likewise.
13650 (dwarf2_per_cu_objfile): Likewise.
13651 (dwarf2_per_cu_text_offset): Likewise.
13652 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13653 objfile.
13654 (set_die_type): Access objfile through
13655 dwarf2_per_objfile.
13656
b01ba14d
SM
136572018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13658
13659 * valprint.c (converted_character_d): Remove typedef.
13660 (DEF_VEC_O (converted_character_d)): Remove.
13661 (count_next_character): Use std::vector.
13662 (print_converted_chars_to_obstack): Likewise.
13663 (generic_printstr): Likewise.
13664
4d0fdd9b
SM
136652018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13666
13667 * xml-support.h (struct gdb_xml_value): Add constructor.
13668 <value>: Change type to unique_xmalloc_ptr.
13669 (gdb_xml_value_s): Remove typedef.
13670 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13671 (gdb_xml_element_start_handler): Change parameter type to
13672 std::vector.
13673 (xml_find_attribute): Likewise.
13674 * xml-support.c (xml_find_attribute): Change parameter type to
13675 std::vector and adjust.
13676 (gdb_xml_values_cleanup): Remove.
13677 (gdb_xml_parser::start_element): Adjust to std::vector.
13678 (xinclude_start_include): Change paraeter type to std::vector
13679 and adjust.
13680 * btrace.c (check_xml_btrace_version): Likewise.
13681 (parse_xml_btrace_block): Likewise.
13682 (parse_xml_btrace_pt_config_cpu): Likewise.
13683 (parse_xml_btrace_pt): Likewise.
13684 (parse_xml_btrace_conf_bts): Likewise.
13685 (parse_xml_btrace_conf_pt): Likewise.
13686 * memory-map.c (memory_map_start_memory): Likewise.
13687 (memory_map_start_property): Likewise.
13688 * osdata.c (osdata_start_osdata): Likewise.
13689 (osdata_start_item): Likewise.
13690 (osdata_start_column): Likewise.
13691 * remote.c (start_thread): Likewise.
13692 * solib-aix.c (library_list_start_library): Likewise.
13693 (library_list_start_list): Likewise.
13694 * solib-svr4.c (library_list_start_library): Likewise.
13695 (svr4_library_list_start_list): Likewise.
13696 * solib-target.c (library_list_start_segment): Likewise.
13697 (library_list_start_section): Likewise.
13698 (library_list_start_library): Likewise.
13699 (library_list_start_list): Likewise.
13700 * tracepoint.c (traceframe_info_start_memory): Likewise.
13701 (traceframe_info_start_tvar): Likewise.
13702 * xml-syscall.c (syscall_start_syscall): Likewise.
13703 * xml-tdesc.c (tdesc_start_target): Likewise.
13704 (tdesc_start_feature): Likewise.
13705 (tdesc_start_reg): Likewise.
13706 (tdesc_start_union): Likewise.
13707 (tdesc_start_struct): Likewise.
13708 (tdesc_start_flags): Likewise.
13709 (tdesc_start_enum): Likewise.
13710 (tdesc_start_field): Likewise.
13711 (tdesc_start_enum_value): Likewise.
13712 (tdesc_start_vector): Likewise.
13713
f979c73f
SM
137142018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13715
13716 * extension.h (struct xmethod_worker) <clone>: Remove.
13717 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13718 Remove.
13719 (python_xmethod_worker::clone): Remove.
13720 * valops.c (find_overload_match): Use std::move instead of
13721 clone.
13722
ba18742c
SM
137232018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13724
13725 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13726 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13727 <free_xmethod_worker_data>: Remove.
13728 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13729 <get_xmethod_arg_types>: Remove.
13730 <get_xmethod_result_type>: Remove.
13731 <invoke_xmethod>: Remove.
13732 * extension.c (new_xmethod_worker): Remove.
13733 (clone_xmethod_worker): Remove.
13734 (get_matching_xmethod_workers): Return void, pass std::vector by
13735 pointer.
13736 (get_xmethod_arg_types): Rename to...
13737 (xmethod_worker::get_arg_types): ... this, and adjust.
13738 (get_xmethod_result_type): Rename to...
13739 (xmethod_worker::get_result_type): ... this, and adjust.
13740 (invoke_xmethod): Remove.
13741 (free_xmethod_worker): Remove.
13742 (free_xmethod_worker_vec): Remove.
13743 * extension.h (enum ext_lang_rc): Move here from
13744 extension-priv.h.
13745 (struct xmethod_worker): Add constructor and destructor.
13746 <data>: Remove.
13747 <value>: Remove.
13748 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13749 virtual pure methods.
13750 <get_arg_types, get_result_type>: New methods.
13751 (xmethod_worker_ptr): Remove typedef.
13752 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13753 (xmethod_worker_vec): Remove typedef.
13754 (xmethod_worker_up): New typedef.
13755 (invoke_xmethod): Remove.
13756 (clone_xmethod_worker): Remove.
13757 (free_xmethod_worker): Remove.
13758 (free_xmethod_worker_vec): Remove.
13759 (get_xmethod_arg_types): Remove.
13760 (get_xmethod_result_type): Remove.
13761 * valops.c (find_method_list): Use std::vector, don't use
13762 intermediate vector.
13763 (value_find_oload_method_list): Use std::vector.
13764 (find_overload_match): Use std::vector.
13765 (find_oload_champ): Use std::vector.
13766 * value.c (value_free): Use operator delete.
13767 (value_of_xmethod): Rename to...
13768 (value_from_xmethod): ... this. Don't assign
13769 xmethod_worker::value, take rvalue-reference.
13770 (result_type_of_xmethod): Adjust.
13771 (call_xmethod): Adjust.
13772 * value.h: Include extension.h.
13773 (struct xmethod_worker): Don't forward-declare.
13774 (value_of_xmethod): Rename to...
13775 (value_from_xmethod): ... this, take rvalue-reference.
13776 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13777 (struct python_xmethod_worker): ... this, add constructor and
13778 destructor.
13779 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13780 (gdbpy_free_xmethod_worker_data): Rename to...
13781 (python_xmethod_worker::~python_xmethod_worker): ... this and
13782 adjust.
13783 (gdbpy_clone_xmethod_worker_data): Rename to...
13784 (python_xmethod_worker::clone): ... this and adjust.
13785 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13786 temporary vector.
13787 (gdbpy_get_xmethod_arg_types): Rename to...
13788 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13789 (gdbpy_get_xmethod_result_type): Rename to...
13790 (python_xmethod_worker::do_get_result_type): ... this and
13791 adjust.
13792 (gdbpy_invoke_xmethod): Rename to...
13793 (python_xmethod_worker::invoke): ... this and adjust.
13794 (new_python_xmethod_worker): Rename to...
13795 (python_xmethod_worker::python_xmethod_worker): ... this and
13796 adjust.
13797 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13798 Remove.
13799 (gdbpy_free_xmethod_worker_data): Remove.
13800 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13801 (gdbpy_get_xmethod_arg_types): Remove.
13802 (gdbpy_get_xmethod_result_type): Remove.
13803 (gdbpy_invoke_xmethod): Remove.
13804 * python/python.c (python_extension_ops): Remove obsolete
13805 callbacks.
13806
e379cee6
PA
138072018-01-05 Pedro Alves <palves@redhat.com>
13808
13809 PR gdb/18653
13810 * common/signals-state-save-restore.c
13811 (save_original_signals_state): New parameter 'quiet'. Warn if we
13812 find a custom handler preinstalled, instead of internal erroring.
13813 But only warn if !quiet.
13814 * common/signals-state-save-restore.h
13815 (save_original_signals_state): New parameter 'quiet'.
13816 * main.c (captured_main_1): Move save_original_signals_state call
13817 after option handling, and pass QUIET.
13818
a655456c
PA
138192018-01-05 Pedro Alves <palves@redhat.com>
13820
13821 * spu-tdep.c (spu_catch_start): Pass
13822 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13823
de63c46b
PA
138242018-01-05 Pedro Alves <palves@redhat.com>
13825
13826 PR gdb/22670
13827 * ada-lang.c (literal_symbol_name_matcher): New function.
13828 (ada_get_symbol_name_matcher): Use it for
13829 symbol_name_match_type::SEARCH_NAME.
13830 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13831 it down instead of assuming symbol_name_match_type::FULL.
13832 * block.h (block_lookup_symbol): New parameter 'match_type'.
13833 * c-valprint.c (print_unpacked_pointer): Use
13834 lookup_symbol_search_name instead of lookup_symbol.
13835 * compile/compile-object-load.c (get_out_value_type): Pass down
13836 symbol_name_match_type::SEARCH_NAME.
13837 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13838 symbol_name_match_type::FULL.
13839 * cp-support.c (cp_get_symbol_name_matcher): Handle
13840 symbol_name_match_type::SEARCH_NAME.
13841 * infrun.c (insert_exception_resume_breakpoint): Use
13842 lookup_symbol_search_name.
13843 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13844 * psymtab.c (maintenance_check_psymtabs): Use
13845 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13846 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13847 SYMBOL_SEARCH_NAME.
13848 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13849 if symbol_name_match_type::SEARCH_NAME.
13850 (lookup_symbol_in_language): Pass down
13851 symbol_name_match_type::FULL.
13852 (lookup_symbol_search_name): New.
13853 (lookup_language_this): Pass down
13854 symbol_name_match_type::SEARCH_NAME.
13855 (lookup_symbol_aux, lookup_local_symbol): New parameter
13856 'match_type'. Pass it down.
13857 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13858 (lookup_symbol_search_name): New declaration.
13859 (lookup_symbol_in_block): New 'match_type' parameter.
13860
f98fc17b
PA
138612018-01-05 Pedro Alves <palves@redhat.com>
13862
13863 PR gdb/22670
13864 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13865 ada_lookup_symbol.
13866 (ada_lookup_symbol): Reimplement in terms of
13867 ada_lookup_symbol_list, bits factored out from
13868 ada_lookup_encoded_symbol.
13869
342f8240
JB
138702018-01-05 Joel Brobecker <brobecker@adacore.com>
13871
13872 * ada-exp.y (write_object_renaming): When subscripting an array
13873 using a symbol as the index, pass the block in call to
13874 ada_lookup_encoded_symbol when looking that symbol up.
13875
7150d33c
JG
138762018-01-05 Jerome Guitton <guitton@adacore.com>
13877
13878 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13879 TYPE_INDEX_TYPE.
13880
cc0e770c
JB
138812018-01-05 Joel Brobecker <brobecker@adacore.com>
13882
13883 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13884 the case where VALUE_LVAL (val0) is not lval_memory.
13885
f79da888 138862018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
13887
13888 * ada-valprint.c (print_optional_low_bound): Handle
13889 character-indexed array printing like boolean-indexed array
13890 printing.
13891
cd385f94
JB
138922018-01-05 Joel Brobecker <brobecker@adacore.com>
13893
13894 * NEWS: Create a new section for the next release branch.
13895 Rename the section of the current branch, now that it has
13896 been cut.
13897
09aca949
JB
138982018-01-05 Joel Brobecker <brobecker@adacore.com>
13899
13900 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13901 * version.in: Bump version to 8.1.50.DATE-git.
13902
9f757bf7
XR
139032018-01-03 Xavier Roirand <roirand@adacore.com>
13904
13905 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13906 Add field.
13907 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13908 Add field.
13909 (default_exception_support_info) <catch_handlers_sym>: Add field.
13910 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13911 (ada_exception_name_addr_1): Add "catch handlers" handling.
13912 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13913 Update all callers.
13914 (create_excep_cond_exprs) <ex>: Add parameter.
13915 (re_set_exception): Update create_excep_cond_exprs call.
13916 (print_it_exception, print_one_exception, print_mention_exception)
13917 (print_recreate_exception): Add "catch handler" handling.
13918 (allocate_location_catch_handlers, re_set_catch_handlers)
13919 (check_status_catch_handlers, print_it_catch_handlers)
13920 (print_one_catch_handlers, print_mention_catch_handlers)
13921 (print_recreate_catch_handlers): New function.
13922 (catch_handlers_breakpoint_ops): New variable.
13923 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13924 Add parameter. Add "catch handler" handling.
13925 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13926 Add "catch handler" handling.
13927 (ada_exception_catchpoint_cond_string): Add "catch handler"
13928 handling.
13929 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13930 call.
13931 (catch_ada_handlers_command): New function.
13932 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13933 operations structure.
13934 (_initialize_ada_language): Add "catch handlers" command entry.
13935 * NEWS: Document "catch handlers" feature.
13936
9fe561ab
JB
139372018-01-02 Joel Brobecker <brobecker@adacore.com>
13938
13939 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13940 account when creating the array type of the slice.
13941 (ada_value_slice): Likewise.
13942
a405673c
JB
139432018-01-02 Joel Brobecker <brobecker@adacore.com>
13944
13945 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13946 New enum value.
13947 (create_array_type_with_stride): Add byte_stride_prop parameter.
13948 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13949 New parameter. Update all callers in this file.
13950 (array_type_has_dynamic_stride): New function.
13951 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13952 of arrays with dynamic byte strides.
13953 * dwarf2read.c (read_array_type): Add support for dynamic
13954 DW_AT_byte_stride attributes.
13955
74a2f8ff
JB
139562018-01-02 Joel Brobecker <brobecker@adacore.com>
13957
13958 * dwarf2read.c (read_unspecified_type): Treat
13959 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13960
e2882c85
JB
139612018-01-01 Joel Brobecker <brobecker@adacore.com>
13962
13963 Update copyright year range in all GDB files.
13964
1690bb24
JB
139652018-01-01 Joel Brobecker <brobecker@adacore.com>
13966
13967 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13968 and gdb/testsuite/gdb.base/step-line.c.
13969
0f0c98a8
JB
139702018-01-01 Joel Brobecker <brobecker@adacore.com>
13971
13972 * copyright.py (main): Dump the contents of
13973 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13974 even if BY_HAND is empty.
13975
82e1e79a
JB
139762018-01-01 Joel Brobecker <brobecker@adacore.com>
13977
13978 * top.c (print_gdb_version): Update Copyright year in version
13979 message.
13980
053f54e5 139812018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 13982
053f54e5 13983 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 13984
053f54e5 13985For older changes see ChangeLog-2017.
c906108c
SS
13986\f
13987Local Variables:
13988mode: change-log
13989left-margin: 8
13990fill-column: 74
13991version-control: never
57da7796 13992coding: utf-8
c906108c 13993End:
This page took 3.726622 seconds and 4 git commands to generate.