Preserve sign when converting gdb.Value to Python int
[binutils-gdb.git] / gdb / ChangeLog
1 2018-09-23 Tom Tromey <tom@tromey.com>
2
3 PR python/20126:
4 * python/py-value.c (valpy_int): Respect type sign.
5
6 2018-09-23 Tom Tromey <tom@tromey.com>
7
8 PR python/18352;
9 * python/py-value.c (valpy_float): Allow conversions from int or
10 char.
11 (valpy_int, valpy_long): Allow conversions from float.
12
13 2018-09-23 Tom Tromey <tom@tromey.com>
14
15 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
16 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
17
18 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19
20 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
21 __sighndlr.
22 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
23
24 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
25
26 * windows-nat.c (windows_nat_target::wait): Remove a spurious
27 target_terminal::ours().
28
29 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
30
31 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
32 of vl to ULONGEST.
33
34 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
35
36 * breakpoint.c (update_inserted_breakpoint_locations): Remove
37 redundant condition.
38
39 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40
41 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
42
43 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
44 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
45 * sol-thread.c (ps_pdmodel): Don't guard definition.
46
47 * procfs.c: Fix formatting.
48
49 * procfs.c (sysset_t_alloc): Remove.
50 (create_procinfo): Use XNEW instead of sysset_t_alloc.
51 (procfs_debug_inferior): Likewise.
52 (procfs_set_exec_trap): Likewise.
53 (proc_set_traced_sysentry): Don't allocate argp dynamically.
54 (proc_set_traced_sysexit): Likewise.
55
56 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
57 (dead_procinfo): Likewise.
58 (proc_warn): Likewise.
59 (proc_error): Likewise.
60 (proc_get_LDT_entry): Likewise.
61 (do_attach): Likewise.
62 (procfs_target::pid_to_str): Likewise.
63 (iterate_over_mappings): Likewise.
64
65 * procfs.c (create_procinfo): Fix ARI warning.
66 (proc_get_status): Likewise.
67 (proc_stop_process): Likewise.
68 (proc_run_process): Likewise.
69 (proc_kill): Likewise.
70 (proc_get_LDT_entry): Likewise.
71 (procfs_find_LDT_entry): Likewise.
72 (proc_update_threads): Likewise.
73 (proc_iterate_over_threads): Likewise.
74 (do_attach): Likewise.
75 (procfs_xfer_memory): Likewise.
76 (invalidate_cache): Likewise.
77 (procfs_target::resume): Likewise.
78 (procfs_init_inferior): Likewise.
79 (procfs_set_exec_trap): Likewise.
80 (procfs_target::thread_alive): Likewise.
81 (procfs_target::pid_to_exec_file): Likewise.
82 (iterate_over_mappings): Likewise.
83 (procfs_target::make_corefile_notes): Likewise.
84 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
85
86 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
87 (procfs_find_LDT_entry): Likewise.
88 * sol-thread.c (ps_lgetLDT): Likewise.
89
90 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
91
92 PR tdep/17903
93 * procfs.c (procfs_target): Declare pid_to_exec_file.
94 (procfs_target::pid_to_exec_file): New.
95
96 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
97
98 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
99 renaming.
100 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
101 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
102
103 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
104
105 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
106 (supply_fpregset, fill_fpregset): Move ...
107 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
108 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
109 Remove references to ioctl-based procfs.
110 Include <sys/reg.h>.
111 Remove PR_MODEL_NATIVE guards.
112 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
113 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
114
115 2018-09-19 Xavier Roirand <roirand@adacore.com>
116
117 PR gdb/20981:
118 * solib-darwin.c (darwin_get_dyld_bfd): New function.
119 (darwin_solib_get_all_image_info_addr_at_init): Update call.
120 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
121
122 2018-09-19 John Baldwin <jhb@FreeBSD.org>
123
124 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
125 (fbsd_print_sockaddr_in6): Likewise.
126
127 2018-09-19 Richard Bunt <richard.bunt@arm.com>
128 Chris January <chris.january@arm.com>
129
130 * eval.c (skip_undetermined_arglist): Skip argument list helper.
131 (evaluate_subexp_standard): Return a dummy type when
132 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
133 OP_F77_UNDETERMINED_ARGLIST case.
134 * expression.h (enum noside): Update comment.
135
136 2018-09-19 George Vasick <george.vasick@oracle.com>
137
138 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
139
140 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
141 April Chin <april.chin@oracle.com>
142 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
143
144 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
145 uint_t lwpid_t.
146 (create_procinfo): Print pids in /proc without leading zeros.
147
148 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
149
150 * nios2-tdep.c (nios2_gcc_target_options): New.
151 (nios2_gdb_arch_init): Install new hook.
152
153 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
154
155 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
156 New file.
157 * update-gnulib.sh: Apply patch.
158 * configure: Re-generate.
159
160 2018-09-18 John Baldwin <jhb@FreeBSD.org>
161
162 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
163 description. Make "info proc" command descriptions more
164 consistent.
165
166 2018-09-18 John Baldwin <jhb@FreeBSD.org>
167
168 * NEWS: Mention 'info proc files' command.
169
170 2018-09-18 John Baldwin <jhb@FreeBSD.org>
171
172 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
173 descriptors for IP_FILES and IP_ALL.
174
175 2018-09-18 John Baldwin <jhb@FreeBSD.org>
176
177 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
178 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
179 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
180 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
181 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
182 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
183 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
184 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
185 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
186 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
187 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
188 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
189 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
190 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
191 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
192 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
193 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
194 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
195 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
196 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
197 (struct fbsd_sockaddr_un): New types.
198 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
199 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
200 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
201 (fbsd_core_info_proc_files): New functions.
202 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
203 IP_ALL.
204 * fbsd-tdep.h (fbsd_info_proc_files_header)
205 (fbsd_info_proc_files_entry): New.
206
207 2018-09-18 John Baldwin <jhb@FreeBSD.org>
208
209 * defs.h (enum info_proc_what) [IP_FILES]: New value.
210 * infcmd.c (info_proc_cmd_files): New function.
211 (_initialize_infcmd): Register 'info proc files' command.
212
213 2018-09-18 John Baldwin <jhb@FreeBSD.org>
214
215 * gnulib/aclocal-m4-deps.mk: Re-generate.
216 * gnulib/aclocal.m4: Re-generate.
217 * gnulib/config.in: Re-generate.
218 * gnulib/configure: Re-generate.
219 * gnulib/import/Makefile.am: Re-generate.
220 * gnulib/import/Makefile.in: Re-generate.
221 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
222 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
223 * gnulib/import/arpa_inet.in.h: New file.
224 * gnulib/import/inet_ntop.c: New file.
225 * gnulib/import/m4/arpa_inet_h.m4: New file.
226 * gnulib/import/m4/inet_ntop.m4: New file.
227 * gnulib/import/m4/netinet_in_h.m4: New file.
228 * gnulib/import/m4/socklen.m4: New file.
229 * gnulib/import/m4/sockpfaf.m4: New file.
230 * gnulib/import/m4/stdalign.m4: New file.
231 * gnulib/import/m4/sys_uio_h.m4: New file.
232 * gnulib/import/netinet_in.in.h: New file.
233 * gnulib/import/stdalign.in.h: New file.
234 * gnulib/import/sys_socket.c: New file.
235 * gnulib/import/sys_socket.in.h: New file.
236 * gnulib/import/sys_uio.in.h: New file.
237 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
238 module.
239
240 2018-09-18 John Baldwin <jhb@FreeBSD.org>
241
242 * gnulib/aclocal-m4-deps.mk: New file.
243 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
244 deterministically.
245
246 2018-09-18 John Baldwin <jhb@FreeBSD.org>
247
248 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
249 KVE_PATH.
250
251 2018-09-18 Tom Tromey <tom@tromey.com>
252
253 * compile/compile-object-load.c (struct
254 link_hash_table_cleanup_data): Add constructor and destructor.
255 Use DISABLE_COPY_AND_ASSIGN.
256 (~link_hash_table_cleanup_data): Rename from
257 link_hash_table_free. Now a destructor.
258 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
259
260 2018-09-18 Tom Tromey <tom@tromey.com>
261
262 * compile/compile-object-run.c (do_module_cleanup): Use delete.
263 * compile/compile-object-load.c (struct munmap_list): Move to
264 header file.
265 (munmap_list::add): Rename from munmap_list_add; rewrite.
266 (munmap_list::~munmap_list): Rename from munmap_list_free.
267 (munmap_listp_free_cleanup): Remove.
268 (compile_object_load): Update.
269 * compile/compile-object-load.h (struct munmap_list): Move from
270 compile-object-load.c. Rewrite.
271
272 2018-09-18 Alan Hayward <alan.hayward@arm.com>
273
274 * aarch64-tdep.c (pass_in_v): Use register size.
275 (aarch64_extract_return_value): Likewise.
276 (aarch64_store_return_value): Likewise.
277
278 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
279
280 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
281 rlim_t.
282
283 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
284
285 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
286 Fix short help line.
287
288 2018-09-17 Tom Tromey <tom@tromey.com>
289
290 PR python/20445:
291 * configure: Rebuild.
292 * configure.ac: Conditionally use -DNDEBUG for Python.
293
294 2018-09-17 Tom Tromey <tom@tromey.com>
295
296 * configure: Rebuild.
297 * configure.ac: Use gmp as a library dependency when checking for
298 mpfr.
299
300 2018-09-17 Pedro Alves <palves@redhat.com>
301
302 * python/py-inferior.c (find_inferior_object): Delete.
303
304 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
305
306 * compile/compile-cplus-types.c
307 (compile_cplus_instance::enter_scope): Don't use new_scope after
308 std::move.
309
310 2018-09-17 Tom Tromey <tom@tromey.com>
311
312 * common/pathstuff.c (get_standard_cache_dir): Use
313 ~/Library/Caches on macOS.
314 * common/pathstuff.h (get_standard_cache_dir): Update comment.
315
316 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
317
318 PR python/23669
319 * breakpoint.c (commands_cmd_element): New.
320 (_initialize_breakpoint): Assign commands_cmd_element.
321 * breakpoint.h (commands_cmd_element): New.
322 * cli/cli-script.c (while_cmd_element, if_command,
323 define_cmd_element): New.
324 (command_name_equals): Remove.
325 (process_next_line): Compare commands by pointer, not by name.
326 (_initialize_cli_script): Assign the various cmd_list_element
327 variables.
328 * compile/compile.c (compile_cmd_element): New.
329 (_initialize_compile): Assign compile_cmd_element.
330 * compile/compile.h (compile_cmd_element): New.
331 * guile/guile.c (guile_cmd_element): New.
332 (install_gdb_commands): Assign guile_cmd_element.
333 * guile/guile.h (guile_cmd_element): New.
334 * python/python.c (python_cmd_element): New.
335 (_initialize_python): Assign python_cmd_element.
336 * python/python.h (python_cmd_element): New.
337 * tracepoint.c (while_stepping_cmd_element): New.
338 (_initialize_tracepoint): Assign while_stepping_cmd_element.
339 * tracepoint.h (while_stepping_cmd_element): New.
340
341 2018-09-17 Tom Tromey <tom@tromey.com>
342
343 * infrun.c (save_infcall_suspend_state): Return
344 infcall_suspend_state_up.
345 (save_infcall_control_state): Return infcall_control_state_up.
346 * inferior.h (save_infcall_suspend_state)
347 (save_infcall_control_state): Declare later. Return unique
348 pointers.
349
350 2018-09-17 Tom Tromey <tom@tromey.com>
351
352 * infrun.c (struct stop_context): Declare constructor,
353 destructor, "changed" method.
354 (stop_context::stop_context): Rename from save_stop_context.
355 (stop_context::~stop_context): Rename from
356 release_stop_context_cleanup.
357 (normal_stop): Update.
358 (stop_context::changed): Rename from stop_context_changed. Return
359 bool.
360
361 2018-09-17 Tom Tromey <tom@tromey.com>
362
363 * inferior.h (struct infcall_suspend_state_deleter): New.
364 (infcall_suspend_state_up): New typedef.
365 (struct infcall_control_state_deleter): New.
366 (infcall_control_state_up): New typedef.
367 (make_cleanup_restore_infcall_suspend_state)
368 (make_cleanup_restore_infcall_control_state): Don't declare.
369 * infcall.c (call_function_by_hand_dummy): Update.
370 * infrun.c (do_restore_infcall_suspend_state_cleanup)
371 (make_cleanup_restore_infcall_suspend_state): Remove.
372 (do_restore_infcall_control_state_cleanup)
373 (make_cleanup_restore_infcall_control_state): Remove.
374
375 2018-09-17 Tom Tromey <tom@tromey.com>
376
377 * gdbthread.h (struct thread_control_state): Add initializer.
378 (class thread_info) <control>: Remove initializer.
379 * inferior.h (struct inferior_control_state): Add initializer.
380 (class inferior) <control>: Remove initializer.
381 (exit_inferior_1): Update.
382 * infrun.c (struct infcall_control_state): Add constructors.
383 (save_infcall_control_state): Use new.
384 (restore_infcall_control_state, discard_infcall_control_state):
385 Use delete.
386
387 2018-09-17 Tom Tromey <tom@tromey.com>
388
389 * infrun.c (struct infcall_suspend_state) <registers>: Now a
390 unique_ptr.
391 <siginfo_data>: Now a unique_xmalloc_ptr.
392 (save_infcall_suspend_state, restore_infcall_suspend_state)
393 (discard_infcall_suspend_state)
394 (get_infcall_suspend_state_regcache): Update.
395
396 2018-09-17 Tom Tromey <tom@tromey.com>
397
398 * gdbthread.h (struct thread_suspend_state): Add initializers.
399 (class thread_info) <suspend>: Remove initializer.
400 * infrun.c (struct infcall_suspend_state): Add initializers.
401 (save_infcall_suspend_state): Use new.
402 (discard_infcall_suspend_state): Use delete.
403
404 2018-09-16 Tom Tromey <tom@tromey.com>
405
406 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
407 Remove.
408 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
409 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
410 (py_varobj_iter_new): Likewise.
411 (py_varobj_get_iterator): Use gdbpy_ref.
412
413 2018-09-16 Tom Tromey <tom@tromey.com>
414
415 * python/py-threadevent.c (py_get_event_thread): Simplify.
416 * python/py-inferior.c (infpy_thread_from_thread_handle):
417 Return immediately after calling thread_to_thread_object. Use
418 Py_RETURN_NONE.
419 (thread_to_thread_object): Set the exception on a NULL return.
420
421 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
422
423 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
424
425 2018-09-16 Tom Tromey <tom@tromey.com>
426
427 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
428 Remove.
429
430 2018-09-16 Tom Tromey <tom@tromey.com>
431
432 * python/python-internal.h (thread_to_thread_object): Change
433 return type.
434 * python/py-inferior.c (thread_to_thread_object): Return a new
435 reference.
436 (infpy_thread_from_thread_handle): Update.
437 * python/py-infthread.c (gdbpy_selected_thread): Update.
438 * python/py-stopevent.c (create_stop_event_object): Update.
439 * python/py-threadevent.c (py_get_event_thread): Return a new
440 reference.
441 (py_get_event_thread): Update.
442 * python/py-event.h (py_get_event_thread): Change return type.
443 * python/py-continueevent.c (create_continue_event_object):
444 Update.
445
446 2018-09-16 Tom Tromey <tom@tromey.com>
447
448 * python/py-progspace.c (pspy_get_objfiles): Update.
449 * python/python-internal.h (objfile_to_objfile_object): Change
450 return type.
451 * python/py-newobjfileevent.c (create_new_objfile_event_object):
452 Update.
453 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
454 Update.
455 * python/python.c (gdbpy_get_current_objfile): Update.
456 (gdbpy_objfiles): Update.
457 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
458 Update.
459 (objfile_to_objfile_object): Return a new reference.
460 * python/py-symtab.c (stpy_get_objfile): Update.
461 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
462 Update.
463
464 2018-09-16 Tom Tromey <tom@tromey.com>
465
466 * python/py-inferior.c (infpy_get_progspace): Update.
467 * python/python-internal.h (pspace_to_pspace_object): Change
468 return type.
469 * python/py-newobjfileevent.c
470 (create_clear_objfiles_event_object): Update.
471 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
472 Update.
473 * python/python.c (gdbpy_get_current_progspace): Update.
474 (gdbpy_progspaces): Update.
475 * python/py-progspace.c (pspace_to_pspace_object): Return a new
476 reference.
477 * python/py-objfile.c (objfpy_get_progspace): Update.
478 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
479 Update.
480
481 2018-09-16 Tom Tromey <tom@tromey.com>
482
483 * python/lib/gdb/__init__.py (current_progspace, objfiles)
484 (solib_name, block_for_pc, find_pc_line): New functions.
485 (execute_unwinders): Update.
486 * python/py-block.c (gdbpy_block_for_pc): Remove.
487 * python/py-inferior.c (infpy_get_progspace): New function.
488 (inferior_object_getset) <progspace>: Add.
489 * python/py-progspace.c (pspy_objfiles): Rewrite.
490 (pspy_solib_name, pspy_block_for_pc)
491 (pspy_find_pc_line, pspy_is_valid): New functions.
492 (progspace_object_methods): Add entries for solib_name,
493 block_for_pc, find_pc_line, is_valid.
494 * python/python-internal.h (gdbpy_block_for_pc)
495 (build_objfiles_list): Don't declare.
496 * python/python.c: Don't include solib.h.
497 (gdbpy_solib_name, gdbpy_find_pc_line)
498 (gdbpy_get_current_progspace, build_objfiles_list)
499 (gdbpy_objfiles): Remove.
500 (GdbMethods) <current_progspace, objfiles, block_for_pc,
501 solib_name, find_pc_line>: Remove entries.
502
503 2018-09-16 Tom Tromey <tom@tromey.com>
504
505 * top.c (new_ui_command): Use GNU style for metasyntactic
506 variables.
507 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
508 variables.
509 * maint.c (maintenance_translate_address): Remove "<>" around
510 text.
511 * interps.c (interpreter_exec_cmd): Use GNU style for
512 metasyntactic variables.
513 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
514 metasyntactic variables.
515 * tracepoint.c (tfind_range_command): Use GNU style for
516 metasyntactic variables.
517 (tfind_outside_command): Likewise.
518 (_initialize_tracepoint): Likewise.
519 * remote.c (extended_remote_target::create_inferior): Use GNU
520 style for metasyntactic variables.
521 * sparc64-tdep.c (adi_examine_command): Use GNU style for
522 metasyntactic variables.
523 (adi_assign_command): Likewise.
524
525 2018-09-16 Tom Tromey <tom@tromey.com>
526
527 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
528 metasyntactic variables. Print message if no disassembler options
529 are available.
530
531 2018-09-15 Tom Tromey <tom@tromey.com>
532
533 * infcmd.c (get_inferior_args): Return const char *.
534 * inferior.h (get_inferior_args): Return type now const.
535 * linux-tdep.c (linux_fill_prpsinfo): Update.
536 * procfs.c (procfs_target::make_corefile_notes): Update.
537
538 2018-09-07 Tom Tromey <tom@tromey.com>
539
540 * python/python.c (execute_gdb_command): Call bpstat_do_actions
541 inside the TRY.
542
543 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
544
545 * nios2-tdep.c (nios2_type_align): New.
546 (nios2_gdb_arch_init): Install type_align hook.
547
548 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
549
550 * eval.c (fake_method::fake_method): Call xzalloc directly for a
551 type that is neither object file owned, nor gdbarch owned.
552 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
553 gdbarch is non-NULL.
554 (alloc_type_instance): Allocate non-objfile owned types on the
555 gdbarch obstack.
556 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
557 using TYPE_ALLOC to ensure memory is allocated on the correct
558 obstack.
559 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
560 obstack, or the gdbarch obstack.
561 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
562
563 2018-09-14 Tom Tromey <tom@tromey.com>
564
565 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
566 block.
567
568 2018-09-14 Tom Tromey <tom@tromey.com>
569
570 * nat/fork-inferior.c (get_startup_shell): Remove "static".
571
572 2018-09-13 Tom Tromey <tom@tromey.com>
573
574 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
575 static.
576
577 2018-09-13 Tom Tromey <tom@tromey.com>
578
579 * exec.c (try_open_exec_file): Use std::string.
580
581 2018-09-13 Tom Tromey <tom@tromey.com>
582
583 * utils.h (gdb_bfd_errmsg): Return std::string.
584 * exec.c (exec_file_attach): Update.
585 * compile/compile-object-load.c (compile_object_load): Update.
586 * utils.c (gdb_bfd_errmsg): Return std::string.
587
588 2018-09-13 Tom Tromey <tom@tromey.com>
589
590 * procfs.c (struct procinfo_deleter): New.
591 (procinfo_up): New typedef.
592 (do_destroy_procinfo_cleanup): Remove.
593 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
594
595 2018-09-13 Tom Tromey <tom@tromey.com>
596
597 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
598
599 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
600 2018-09-13 Tom Tromey <tom@tromey.com>
601
602 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
603 (pspy_get_objfiles): New function.
604 (progspace_object_methods): New.
605 (pspace_object_type): Add tp_methods callback.
606 * python/python-internal.h (build_objfiles_list): New
607 declaration.
608 * python/python.c (build_objfiles_list): New function.
609 (gdbpy_objfiles): Implement using build_objfiles_list.
610 * NEWS: Mention the Progspace.objfiles method.
611
612 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
613
614 * python/py-inferior.c (infpy_get_progspace): New function.
615 (inferior_object_getset): Add progspace property.
616 * NEWS: Mention the new property.
617
618 2018-09-13 Tom Tromey <tom@tromey.com>
619
620 PR rust/23650:
621 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
622
623 2018-09-13 Tom Tromey <tom@tromey.com>
624
625 PR rust/23626:
626 * rust-lang.c (rust_enum_variant): Now static.
627 (rust_empty_enum_p): New function.
628 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
629 Handle empty enum.
630
631 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
632
633 * python/py-inferior.c (infpy_repr): New.
634 (inferior_object_type): Register infpy_repr.
635 * python/py-objfile.c (objfpy_repr): New.
636 (objfile_object_type): Register objfpy_repr.
637
638 2018-09-12 John Baldwin <jhb@FreeBSD.org>
639
640 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
641
642 2018-09-12 John Baldwin <jhb@FreeBSD.org>
643
644 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
645 typo.
646
647 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
648
649 * common/common-utils.c: Don't include '<sys/stat.h>'.
650 (is_regular_file): Move to...
651 * common/filestuff.c (is_regular_file): ... here.
652 * common/common-utils.h (is_regular_file): Move to...
653 * common/filestuff.h (is_regular_file): ... here.
654
655 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
656
657 * skip.c (debug_skip): New variable.
658 (skiplist_entry::do_skip_file_p): Add debug output.
659 (skiplist_entry::do_skip_gfile_p): Likewise.
660 (skiplist_entry::skip_function_p): Likewise.
661 (_initialize_step_skip): Create debug command.
662 * NEWS: Mention set/show debug skip.
663
664 2018-09-11 Xavier Roirand <roirand@adacore.com>
665
666 * darwin-nat.c (should_disable_startup_with_shell):
667 New function.
668 (darwin_nat_target::create_inferior): Add call.
669
670 2018-09-11 Xavier Roirand <roirand@adacore.com>
671
672 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
673 inf_port, msg_state>: Initialize.
674 (struct darwin_thread_info) <signaled, single_step>: Change
675 type and initialize.
676 (struct darwin_thread_info) <event>: Initialize.
677
678 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
679
680 PR gdb/23555
681 PR gdb/23558
682 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
683 guesses.
684
685 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
686
687 Revert:
688 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
689
690 PR gdb/23555
691 PR gdb/23558
692 * gnulib/aclocal.m4: Regenerate.
693 * gnulib/config.in: Regenerate.
694 * gnulib/configure: Regenerate.
695 * gnulib/import/Makefile.am: Update.
696 * gnulib/import/Makefile.in: Update.
697 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
698 * gnulib/import/_Noreturn.h: ... this.
699 * gnulib/import/alloca.in.h: Update.
700 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
701 * gnulib/import/arg-nonnull.h: ... this.
702 * gnulib/import/assure.h: Update.
703 * gnulib/import/at-func.c: Update.
704 * gnulib/import/basename-lgpl.c: Update.
705 * gnulib/import/extra/snippet/c++defs.h: Rename to...
706 * gnulib/import/c++defs.h: ... this.
707 * gnulib/import/canonicalize-lgpl.c: Update.
708 * gnulib/import/cdefs.h: Update.
709 * gnulib/import/chdir-long.c: Update.
710 * gnulib/import/chdir-long.h: Update.
711 * gnulib/import/cloexec.c: Update.
712 * gnulib/import/cloexec.h: Update.
713 * gnulib/import/close.c: Update.
714 * gnulib/import/closedir.c: Update.
715 * gnulib/import/config.charset: Update.
716 * gnulib/import/dirent-private.h: Update.
717 * gnulib/import/dirent.in.h: Update.
718 * gnulib/import/dirfd.c: Update.
719 * gnulib/import/dirname-lgpl.c: Update.
720 * gnulib/import/dirname.h: Update.
721 * gnulib/import/dosname.h: Update.
722 * gnulib/import/dup-safer-flag.c: Update.
723 * gnulib/import/dup-safer.c: Update.
724 * gnulib/import/dup.c: Update.
725 * gnulib/import/dup2.c: Update.
726 * gnulib/import/errno.in.h: Update.
727 * gnulib/import/error.c: Update.
728 * gnulib/import/error.h: Update.
729 * gnulib/import/exitfail.c: Update.
730 * gnulib/import/exitfail.h: Update.
731 * gnulib/import/extra/update-copyright: Update.
732 * gnulib/import/fchdir.c: Update.
733 * gnulib/import/fcntl.c: Update.
734 * gnulib/import/fcntl.in.h: Update.
735 * gnulib/import/fd-hook.c: Update.
736 * gnulib/import/fd-hook.h: Update.
737 * gnulib/import/fd-safer-flag.c: Update.
738 * gnulib/import/fd-safer.c: Update.
739 * gnulib/import/fdopendir.c: Update.
740 * gnulib/import/filename.h: Update.
741 * gnulib/import/filenamecat-lgpl.c: Update.
742 * gnulib/import/filenamecat.h: Update.
743 * gnulib/import/flexmember.h: Update.
744 * gnulib/import/float+.h: Update.
745 * gnulib/import/float.c: Update.
746 * gnulib/import/float.in.h: Update.
747 * gnulib/import/fnmatch.c: Update.
748 * gnulib/import/fnmatch.in.h: Update.
749 * gnulib/import/fnmatch_loop.c: Update.
750 * gnulib/import/fpucw.h: Update.
751 * gnulib/import/frexp.c: Update.
752 * gnulib/import/frexpl.c: Update.
753 * gnulib/import/fstat.c: Update.
754 * gnulib/import/fstatat.c: Update.
755 * gnulib/import/getcwd-lgpl.c: Update.
756 * gnulib/import/getcwd.c: Update.
757 * gnulib/import/getdtablesize.c: Update.
758 * gnulib/import/getlogin_r.c: Update.
759 * gnulib/import/getprogname.c: Update.
760 * gnulib/import/getprogname.h: Update.
761 * gnulib/import/gettext.h: Update.
762 * gnulib/import/gettimeofday.c: Update.
763 * gnulib/import/glob-libc.h: Update.
764 * gnulib/import/glob.c: Update.
765 * gnulib/import/glob.in.h: Update.
766 * gnulib/import/glob_internal.h: Update.
767 * gnulib/import/glob_pattern_p.c: Update.
768 * gnulib/import/globfree.c: Update.
769 * gnulib/import/hard-locale.c: Update.
770 * gnulib/import/hard-locale.h: Update.
771 * gnulib/import/intprops.h: Update.
772 * gnulib/import/inttypes.in.h: Update.
773 * gnulib/import/isnan.c: Update.
774 * gnulib/import/isnand-nolibm.h: Update.
775 * gnulib/import/isnand.c: Update.
776 * gnulib/import/isnanl-nolibm.h: Update.
777 * gnulib/import/isnanl.c: Update.
778 * gnulib/import/itold.c: Update.
779 * gnulib/import/libc-config.h: Update.
780 * gnulib/import/limits.in.h: Update.
781 * gnulib/import/localcharset.c: Update.
782 * gnulib/import/localcharset.h: Update.
783 * gnulib/import/localtime-buffer.c: Update.
784 * gnulib/import/localtime-buffer.h: Update.
785 * gnulib/import/lstat.c: Update.
786 * gnulib/import/m4/00gnulib.m4: Update.
787 * gnulib/import/m4/__inline.m4: Update.
788 * gnulib/import/m4/absolute-header.m4: Update.
789 * gnulib/import/m4/alloca.m4: Update.
790 * gnulib/import/m4/builtin-expect.m4: Update.
791 * gnulib/import/m4/canonicalize.m4: Update.
792 * gnulib/import/m4/chdir-long.m4: Update.
793 * gnulib/import/m4/close.m4: Update.
794 * gnulib/import/m4/closedir.m4: Update.
795 * gnulib/import/m4/configmake.m4: Update.
796 * gnulib/import/m4/d-ino.m4: Update.
797 * gnulib/import/m4/d-type.m4: Update.
798 * gnulib/import/m4/dirent_h.m4: Update.
799 * gnulib/import/m4/dirfd.m4: Update.
800 * gnulib/import/m4/dirname.m4: Update.
801 * gnulib/import/m4/double-slash-root.m4: Update.
802 * gnulib/import/m4/dup.m4: Update.
803 * gnulib/import/m4/dup2.m4: Update.
804 * gnulib/import/m4/eealloc.m4: Update.
805 * gnulib/import/m4/environ.m4: Update.
806 * gnulib/import/m4/errno_h.m4: Update.
807 * gnulib/import/m4/error.m4: Update.
808 * gnulib/import/m4/exponentd.m4: Update.
809 * gnulib/import/m4/exponentl.m4: Update.
810 * gnulib/import/m4/extensions.m4: Update.
811 * gnulib/import/m4/extern-inline.m4: Update.
812 * gnulib/import/m4/fchdir.m4: Update.
813 * gnulib/import/m4/fcntl-o.m4: Update.
814 * gnulib/import/m4/fcntl.m4: Update.
815 * gnulib/import/m4/fcntl_h.m4: Update.
816 * gnulib/import/m4/fdopendir.m4: Update.
817 * gnulib/import/m4/filenamecat.m4: Update.
818 * gnulib/import/m4/flexmember.m4: Update.
819 * gnulib/import/m4/float_h.m4: Update.
820 * gnulib/import/m4/fnmatch.m4: Update.
821 * gnulib/import/m4/fnmatch_h.m4: Update.
822 * gnulib/import/m4/fpieee.m4: Update.
823 * gnulib/import/m4/frexp.m4: Update.
824 * gnulib/import/m4/frexpl.m4: Update.
825 * gnulib/import/m4/fstat.m4: Update.
826 * gnulib/import/m4/fstatat.m4: Update.
827 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
828 * gnulib/import/m4/getcwd-path-max.m4: Update.
829 * gnulib/import/m4/getcwd.m4: Update.
830 * gnulib/import/m4/getdtablesize.m4: Update.
831 * gnulib/import/m4/getlogin.m4: Update.
832 * gnulib/import/m4/getlogin_r.m4: Update.
833 * gnulib/import/m4/getpagesize.m4: Update.
834 * gnulib/import/m4/getprogname.m4: Update.
835 * gnulib/import/m4/gettimeofday.m4: Update.
836 * gnulib/import/m4/glibc21.m4: Update.
837 * gnulib/import/m4/glob.m4: Update.
838 * gnulib/import/m4/glob_h.m4: Update.
839 * gnulib/import/m4/gnulib-cache.m4: Update.
840 * gnulib/import/m4/gnulib-common.m4: Update.
841 * gnulib/import/m4/gnulib-comp.m4: Update.
842 * gnulib/import/m4/gnulib-tool.m4: Update.
843 * gnulib/import/m4/hard-locale.m4: Update.
844 * gnulib/import/m4/include_next.m4: Update.
845 * gnulib/import/m4/inttypes-pri.m4: Update.
846 * gnulib/import/m4/inttypes.m4: Update.
847 * gnulib/import/m4/isnand.m4: Update.
848 * gnulib/import/m4/isnanl.m4: Update.
849 * gnulib/import/m4/largefile.m4: Update.
850 * gnulib/import/m4/limits-h.m4: Update.
851 * gnulib/import/m4/localcharset.m4: Update.
852 * gnulib/import/m4/locale-fr.m4: Update.
853 * gnulib/import/m4/locale-ja.m4: Update.
854 * gnulib/import/m4/locale-zh.m4: Update.
855 * gnulib/import/m4/localtime-buffer.m4: Update.
856 * gnulib/import/m4/longlong.m4: Update.
857 * gnulib/import/m4/lstat.m4: Update.
858 * gnulib/import/m4/malloc.m4: Update.
859 * gnulib/import/m4/malloca.m4: Update.
860 * gnulib/import/m4/math_h.m4: Update.
861 * gnulib/import/m4/mbrtowc.m4: Update.
862 * gnulib/import/m4/mbsinit.m4: Update.
863 * gnulib/import/m4/mbsrtowcs.m4: Update.
864 * gnulib/import/m4/mbstate_t.m4: Update.
865 * gnulib/import/m4/memchr.m4: Update.
866 * gnulib/import/m4/memmem.m4: Update.
867 * gnulib/import/m4/mempcpy.m4: Update.
868 * gnulib/import/m4/memrchr.m4: Update.
869 * gnulib/import/m4/mkdir.m4: Update.
870 * gnulib/import/m4/mkstemp.m4: Update.
871 * gnulib/import/m4/mmap-anon.m4: Update.
872 * gnulib/import/m4/mode_t.m4: Update.
873 * gnulib/import/m4/msvc-inval.m4: Update.
874 * gnulib/import/m4/msvc-nothrow.m4: Update.
875 * gnulib/import/m4/multiarch.m4: Update.
876 * gnulib/import/m4/nocrash.m4: Update.
877 * gnulib/import/m4/off_t.m4: Update.
878 * gnulib/import/m4/onceonly.m4: Update.
879 * gnulib/import/m4/open-cloexec.m4: Update.
880 * gnulib/import/m4/open.m4: Update.
881 * gnulib/import/m4/openat.m4: Update.
882 * gnulib/import/m4/opendir.m4: Update.
883 * gnulib/import/m4/pathmax.m4: Update.
884 * gnulib/import/m4/rawmemchr.m4: Update.
885 * gnulib/import/m4/readdir.m4: Update.
886 * gnulib/import/m4/readlink.m4: Update.
887 * gnulib/import/m4/realloc.m4: Update.
888 * gnulib/import/m4/rename.m4: Update.
889 * gnulib/import/m4/rewinddir.m4: Update.
890 * gnulib/import/m4/rmdir.m4: Update.
891 * gnulib/import/m4/save-cwd.m4: Update.
892 * gnulib/import/m4/secure_getenv.m4: Update.
893 * gnulib/import/m4/setenv.m4: Update.
894 * gnulib/import/m4/signal_h.m4: Update.
895 * gnulib/import/m4/ssize_t.m4: Update.
896 * gnulib/import/m4/stat-time.m4: Update.
897 * gnulib/import/m4/stat.m4: Update.
898 * gnulib/import/m4/std-gnu11.m4: Update.
899 * gnulib/import/m4/stdbool.m4: Update.
900 * gnulib/import/m4/stddef_h.m4: Update.
901 * gnulib/import/m4/stdint.m4: Update.
902 * gnulib/import/m4/stdio_h.m4: Update.
903 * gnulib/import/m4/stdlib_h.m4: Update.
904 * gnulib/import/m4/strchrnul.m4: Update.
905 * gnulib/import/m4/strdup.m4: Update.
906 * gnulib/import/m4/strerror.m4: Update.
907 * gnulib/import/m4/string_h.m4: Update.
908 * gnulib/import/m4/strstr.m4: Update.
909 * gnulib/import/m4/strtok_r.m4: Update.
910 * gnulib/import/m4/sys_socket_h.m4: Update.
911 * gnulib/import/m4/sys_stat_h.m4: Update.
912 * gnulib/import/m4/sys_time_h.m4: Update.
913 * gnulib/import/m4/sys_types_h.m4: Update.
914 * gnulib/import/m4/tempname.m4: Update.
915 * gnulib/import/m4/time_h.m4: Update.
916 * gnulib/import/m4/unistd-safer.m4: Update.
917 * gnulib/import/m4/unistd_h.m4: Update.
918 * gnulib/import/m4/warn-on-use.m4: Update.
919 * gnulib/import/m4/wchar_h.m4: Update.
920 * gnulib/import/m4/wchar_t.m4: Update.
921 * gnulib/import/m4/wctype_h.m4: Update.
922 * gnulib/import/m4/wint_t.m4: Update.
923 * gnulib/import/malloc.c: Update.
924 * gnulib/import/malloc/scratch_buffer.h: Update.
925 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
926 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
927 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
928 * gnulib/import/malloca.c: Update.
929 * gnulib/import/malloca.h: Update.
930 * gnulib/import/malloca.valgrind: Update.
931 * gnulib/import/math.in.h: Update.
932 * gnulib/import/mbrtowc.c: Update.
933 * gnulib/import/mbsinit.c: Update.
934 * gnulib/import/mbsrtowcs-impl.h: Update.
935 * gnulib/import/mbsrtowcs-state.c: Update.
936 * gnulib/import/mbsrtowcs.c: Update.
937 * gnulib/import/memchr.c: Update.
938 * gnulib/import/memmem.c: Update.
939 * gnulib/import/mempcpy.c: Update.
940 * gnulib/import/memrchr.c: Update.
941 * gnulib/import/mkdir.c: Update.
942 * gnulib/import/mkstemp.c: Update.
943 * gnulib/import/msvc-inval.c: Update.
944 * gnulib/import/msvc-inval.h: Update.
945 * gnulib/import/msvc-nothrow.c: Update.
946 * gnulib/import/msvc-nothrow.h: Update.
947 * gnulib/import/open.c: Update.
948 * gnulib/import/openat-die.c: Update.
949 * gnulib/import/openat-priv.h: Update.
950 * gnulib/import/openat-proc.c: Update.
951 * gnulib/import/openat.c: Update.
952 * gnulib/import/openat.h: Update.
953 * gnulib/import/opendir.c: Update.
954 * gnulib/import/pathmax.h: Update.
955 * gnulib/import/pipe-safer.c: Update.
956 * gnulib/import/rawmemchr.c: Update.
957 * gnulib/import/readdir.c: Update.
958 * gnulib/import/readlink.c: Update.
959 * gnulib/import/realloc.c: Update.
960 * gnulib/import/ref-add.sin: Update.
961 * gnulib/import/ref-del.sin: Update.
962 * gnulib/import/rename.c: Update.
963 * gnulib/import/rewinddir.c: Update.
964 * gnulib/import/rmdir.c: Update.
965 * gnulib/import/same-inode.h: Update.
966 * gnulib/import/save-cwd.c: Update.
967 * gnulib/import/save-cwd.h: Update.
968 * gnulib/import/scratch_buffer.h: Update.
969 * gnulib/import/secure_getenv.c: Update.
970 * gnulib/import/setenv.c: Update.
971 * gnulib/import/signal.in.h: Update.
972 * gnulib/import/stat-time.c: Update.
973 * gnulib/import/stat-time.h: Update.
974 * gnulib/import/stat-w32.c: Update.
975 * gnulib/import/stat-w32.h: Update.
976 * gnulib/import/stat.c: Update.
977 * gnulib/import/stdbool.in.h: Update.
978 * gnulib/import/stddef.in.h: Update.
979 * gnulib/import/stdint.in.h: Update.
980 * gnulib/import/stdio.in.h: Update.
981 * gnulib/import/stdlib.in.h: Update.
982 * gnulib/import/str-two-way.h: Update.
983 * gnulib/import/strchrnul.c: Update.
984 * gnulib/import/strdup.c: Update.
985 * gnulib/import/streq.h: Update.
986 * gnulib/import/strerror-override.c: Update.
987 * gnulib/import/strerror-override.h: Update.
988 * gnulib/import/strerror.c: Update.
989 * gnulib/import/string.in.h: Update.
990 * gnulib/import/stripslash.c: Update.
991 * gnulib/import/strnlen1.c: Update.
992 * gnulib/import/strnlen1.h: Update.
993 * gnulib/import/strstr.c: Update.
994 * gnulib/import/strtok_r.c: Update.
995 * gnulib/import/sys_stat.in.h: Update.
996 * gnulib/import/sys_time.in.h: Update.
997 * gnulib/import/sys_types.in.h: Update.
998 * gnulib/import/tempname.c: Update.
999 * gnulib/import/tempname.h: Update.
1000 * gnulib/import/time.in.h: Update.
1001 * gnulib/import/unistd--.h: Update.
1002 * gnulib/import/unistd-safer.h: Update.
1003 * gnulib/import/unistd.in.h: Update.
1004 * gnulib/import/unsetenv.c: Update.
1005 * gnulib/import/verify.h: Update.
1006 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1007 * gnulib/import/wchar.in.h: Update.
1008 * gnulib/import/wctype.in.h: Update.
1009 * gnulib/import/xalloc-oversized.h: Update.
1010 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1011 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1012
1013 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1014
1015 * record-btrace.c (get_thread_current_frame): Remove
1016 old_inferior_ptid.
1017
1018 2018-09-10 Jerome Guitton <guitton@adacore.com>
1019
1020 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1021 with check_tag to 1 if and only if the type is tagged and the
1022 component being searched cannot been found in the current
1023 view. Otherwise, always call ada_to_fixed_type with
1024 check_tag to 0.
1025
1026 2018-09-10 Xavier Roirand <roirand@adacore.com>
1027
1028 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1029 declaration.
1030 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1031 * ada-varobj.c (ada_varobj_get_number_of_children,
1032 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1033
1034 2018-09-10 Xavier Roirand <roirand@adacore.com>
1035
1036 * ada-valprint.c (ada_value_print): Use type instead of
1037 enclosing type.
1038
1039 2018-09-10 Xavier Roirand <roirand@adacore.com>
1040
1041 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1042 an array of access to unconstrained array.
1043
1044 2018-09-10 Xavier Roirand <roirand@adacore.com>
1045
1046 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1047 (ada_check_typedef): Use it.
1048
1049 2018-09-10 Xavier Roirand <roirand@adacore.com>
1050
1051 * ada-varobj.c (ada_varobj_describe_struct_child)
1052 (ada_varobj_describe_child): Handle union case like struct one.
1053
1054 2018-09-10 Tom Tromey <tom@tromey.com>
1055
1056 PR python/18380:
1057 * python/python.c (_initialize_python): Make example in "python"
1058 help work in Python 3.
1059
1060 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1061
1062 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1063 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1064 $(EXEEXT) to the script, as it is not a program.
1065
1066 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1067
1068 * python/py-prettyprint.c (pretty_print_one_value): Return
1069 gdbpy_ref<>.
1070 (print_string_repr): Adjust.
1071 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1072 * python/python-internal.h (apply_varobj_pretty_printer): Return
1073 gdbpy_ref<>.
1074 * varobj.c (varobj_value_get_print_value): Adjust.
1075
1076 2018-09-08 Tom Tromey <tom@tromey.com>
1077
1078 PR python/16047:
1079 * python/py-prettyprint.c (pretty_print_one_value): Check for
1080 to_string method.
1081
1082 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1083
1084 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1085 replace_operator_with_call.
1086
1087 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1088
1089 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1090
1091 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1092
1093 * ada-typeprint.c (print_range): Print the bounds using TYPE
1094 rather than its TYPE_TARGET_TYPE.
1095
1096 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1097
1098 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1099 call to ada_to_fixed_value_create.
1100
1101 2018-09-08 Jerome Guitton <guitton@adacore.com>
1102
1103 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1104
1105 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1106
1107 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1108 by calls to error.
1109
1110 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1111
1112 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1113 Move update of loop variable "fi".
1114
1115 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1116
1117 * ada-lang.c (value_assign_to_component): In the case of
1118 big-endian targets, extract the bits of the given VAL
1119 using an src_offset of zero if container is not a scalar.
1120
1121 2018-09-06 Simon Ser <contact@emersion.fr>
1122
1123 PR gdb/23105
1124 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1125 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1126 * fbsd-tdep.c (fbsd_make_note_desc): New.
1127 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1128 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1129 * target.h (enum target_object) Add FreeBSD-specific
1130 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1131
1132 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1133
1134 * compile/compile-c.h (generate_c_for_variable_locations):
1135 Change reference to pointer.
1136 * compile/compile-c-support.c (compile_program) <compute>:
1137 Likewise.
1138 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1139 (generate_c_for_for_one_variable): Likewise
1140 (generate_c_for_variable_locations): Likewise
1141 * compile/compile-c-types.c (compile_c_instance::convert_type):
1142 Likewise
1143 * compile/compile-cplus-symbols.c (convert_one_symbol):
1144 std::move the scope passed to enter_scope.
1145 * compile/compile-cplus-types.c
1146 (compile_cplus_instance::enter_scope): Make parameter
1147 rvalue-reference.
1148 (compile_cplus_instance::new_scope): Change reference to
1149 pointer.
1150 (compile_cplus_instance::convert_type): Likewise
1151 (compile_cplus_convert_typedef): std::move the scope passed to
1152 enter_scope.
1153 (compile_cplus_convert_struct_or_union): Likewise.
1154 (compile_cplus_convert_enum): Likewise.
1155 (compile_cplus_convert_namespace): Likewise.
1156 * compile/compile-cplus.h (compile_cplus_instance)
1157 <enter_scope>: Make parameter rvalue-reference.
1158 * compile/compile-internal.h (compile_instance)
1159 <get_cached_type>: Likewise
1160 * compile/compile-loc2c.c (push): Likewise
1161 (pushf): Likewise
1162 (unary): Likewise
1163 (binary): Likewise
1164 (print_label): Likewise
1165 (pushf_register_address): Likewise
1166 (pushf_register): Likewise
1167 (do_compile_dwarf_expr_to_c): Likewise
1168 (compile_dwarf_expr_to_c): Likewise
1169 (compile_dwarf_bounds_to_c): Likewise
1170 * compile/compile.c (compile_instance::get_cached_type):
1171 Likewise
1172 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1173 (compile_dwarf_bounds_to_c): Likewise
1174 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1175 (dwarf2_compile_property_to_c): Likewise
1176 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1177 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1178 Likewise
1179
1180 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1181
1182 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1183 * tui/tui-data.c (init_content_element): Don't initialize it.
1184
1185 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1186
1187 * tui/tui-data.h (struct tui_win_info)
1188 <detail::opaque>: Remove.
1189 * tui/tui-data.c (init_win_info): Remove assignment.
1190
1191 2018-09-05 Tom Tromey <tom@tromey.com>
1192
1193 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1194 -Wformat-nonliteral.
1195 * target-float.c (host_float_ops<T>::to_string)
1196 (host_float_ops<T>::from_string): Use
1197 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1198 * configure: Rebuild.
1199
1200 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1201
1202 * printcmd.c (printf_c_string): Use
1203 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1204 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1205
1206 2018-09-05 Tom Tromey <tom@tromey.com>
1207
1208 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1209
1210 2018-09-05 Tom de Vries <tdevries@suse.de>
1211
1212 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1213 with resolve_abstract_p == true.
1214 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1215 defaulting to false. Propagate resolve_abstract_p to
1216 dwarf2_fetch_die_loc_sect_off.
1217 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1218 parameter, defaulting to false.
1219 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1220 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1221 parameter.
1222 * dwarf2read.h (struct die_info): Forward-declare.
1223 (die_info_ptr): New typedef.
1224 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1225
1226 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1227
1228 GDB 8.2 released.
1229
1230 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1231 Pedro Alves <palves@redhat.com>
1232
1233 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1234 "aclocal-m4-deps.mk". Include file here.
1235 $(srcdir)/aclocal.m4: Add "configure.ac".
1236 * gnulib/aclocal-m4-deps.mk: New file.
1237 * gnulib/update-gnulib.sh: Automatically update
1238 "aclocal-m4-deps.mk".
1239
1240 2018-09-04 Tom Tromey <tom@tromey.com>
1241
1242 * configure: Rebuild.
1243 * configure.ac: Remove multi-ice code.
1244
1245 2018-09-04 Tom Tromey <tom@tromey.com>
1246
1247 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1248 (ada-exp.o): Update.
1249
1250 2018-09-04 Tom Tromey <tom@tromey.com>
1251
1252 * Makefile.in (printcmd.o, target-float.o): Remove.
1253 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1254
1255 2018-09-04 Tom Tromey <tom@tromey.com>
1256
1257 * gnulib/Makefile.in: Remove obsolete comment.
1258 * Makefile.in: Remove obsolete comment.
1259
1260 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1261
1262 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1263 line with '+'.
1264
1265 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1266
1267 * riscv-tdep.c: Add 'prologue-value.h' include.
1268 (struct riscv_unwind_cache): New struct.
1269 (riscv_debug_unwinder): New global.
1270 (riscv_scan_prologue): Update arguments, capture register details
1271 from prologue scan.
1272 (riscv_skip_prologue): Reformat arguments line, move end of
1273 prologue calculation into riscv_scan_prologue.
1274 (riscv_frame_cache): Update return type, create
1275 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1276 details.
1277 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1278 (riscv_frame_prev_register): Use the trad_frame within the
1279 riscv_unwind_cache.
1280 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1281 flag.
1282
1283 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1284
1285 * trad-frame.h (trad_frame_set_realreg): Declare.
1286 (trad_frame_set_addr): Declare.
1287 * trad-frame.c (trad_frame_set_realreg): Define new function.
1288 (trad_frame_set_addr): Define new function.
1289 (trad_frame_set_reg_realreg): Use new function.
1290 (trad_frame_set_reg_addr): Use new function.
1291
1292 2018-09-01 Keith Seitz <keiths@redhat.com>
1293
1294 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1295 pulongest instead of "%lld".
1296 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1297 ATTRIBUTE_UNUSED.
1298
1299 2018-08-31 Tom Tromey <tom@tromey.com>
1300
1301 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1302 variant part type.
1303
1304 2018-08-31 Pedro Alves <palves@redhat.com>
1305
1306 * gdbarch.h: Regenerate.
1307
1308 2018-08-31 Pedro Alves <palves@redhat.com>
1309
1310 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1311 * target.h (Hardware watchpoint interfaces): Describe
1312 continuable/steppable/non-steppable watchpoints.
1313 * gdbarch.h, gdbarch.c: Regenerate.
1314
1315 2018-08-31 Pedro Alves <palves@redhat.com>
1316
1317 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1318 Delete.
1319 * s390-linux-nat.c
1320 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1321 * target.h (target_ops::have_continuable_watchpoint): Delete.
1322 (target_have_continuable_watchpoint): Delete.
1323 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1324 * target-delegates.c: Regenerate.
1325
1326 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1327
1328 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1329 the files present in "gnulib/import/m4/".
1330
1331 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1332
1333 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1334 c.sw, c.swsp, and c.sdsp.
1335
1336 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1337
1338 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1339 (riscv_read_misa_reg): Don't cache value read into inferior data.
1340 (riscv_new_inferior_data): Delete.
1341 (riscv_inferior_data_cleanup): Delete.
1342 (riscv_inferior_data): Delete.
1343 (riscv_invalidate_inferior_data): Delete.
1344 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1345
1346 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1347
1348 * compile/compile-cplus-types.c
1349 (compile_cplus_instance::leave_scope): Take the address of scope
1350 object.
1351 (compile_cplus_instance::convert_qualified_base): Compare quals
1352 to 0.
1353
1354 2018-08-30 Keith Seitz <keiths@redhat.com>
1355
1356 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1357 Use "%s" and host_address_to_string instead of "%p" in printf.
1358
1359 2018-08-29 Keith Seitz <keiths@redhat.com>
1360
1361 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1362 and compile-cplus-types.c.
1363 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1364 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1365 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1366 Declare.
1367 * compile/compile-c-support.c: Include compile-cplus.h.
1368 (load_libcompile): Templatize.
1369 (get_compile_context): "New" function.
1370 (c_get_compile_context): Use get_compile_context.
1371 (cplus_get_compile_context): New function.
1372 (cplus_push_user_expression, cplus_pop_user_expression)
1373 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1374 (cplus_compute_program): Define new structs/functions.
1375 * compile/compile-cplus-symmbols.c: New file.
1376 * compile/compile-cplus-types.c: New file.
1377 * compile/compile-cplus.h: New file.
1378 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1379 Declare.
1380 * compile/compile-object-load.c (get_out_value_type): Use
1381 strncmp_iw when comparing symbol names.
1382 (compile_object_load): Add mst_bss and mst_data.
1383 * compile/compile.c (_initialize_compile): Remove
1384 -Wno-implicit-function-declaration from `compile_args'.
1385 * compile/gcc-cp-plugin.h: New file.
1386 * NEWS: Mention C++ compile support and new debug options.
1387
1388 2018-08-29 Keith Seitz <keiths@redhat.com>
1389
1390 * linespec.c (collect_info::add_symbol): Make virtual.
1391 (struct symbol_searcher_collect_info): New struct.
1392 (symbol_searcher::find_all_symbols): New method.
1393 * symtab.h (class symbol_searcher): New class.
1394
1395 2018-08-29 Keith Seitz <keiths@redhat.com>
1396
1397 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1398 Change to vector of block_symbol. Update all users.
1399 (struct collect_info) <symbols>: Likewise.
1400 (collect_info::add_symbol): Take block_symbol as argument.
1401 Update all callers.
1402 (decode_compound_collector) <m_symbols>: Change type to vector
1403 of block_symbol. Update all users.
1404 (decode_compound_collector::operator ()): Change parameter type
1405 to block_symbol.
1406 (find_method, find_function_symbols, find_linespec_symbols)
1407 (find_label_symbols_in_block, find_label_symbols): Change symbol
1408 vectors to block_symbol vectors.
1409 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1410 block_symbol.
1411
1412 2018-08-29 Keith Seitz <keiths@redhat.com>
1413
1414 * linespec.c (symbolp): Remove typedef and VEC definitions.
1415 (bound_minimal_symbol_d): Likewise.
1416
1417 2018-08-29 Keith Seitz <keiths@redhat.com>
1418
1419 * linespec.c (decode_compound_collector::decode_compound_collector):
1420 Remove initialization for `m_symtabs'.
1421 (decode_compound_collector::release_symbols): Change return type
1422 to std::vector. Update all callers.
1423 (class decode_compound_collector) <m_symbols>: Change type to
1424 std::vector.
1425 (lookup_prefix_sym): Change return type to std::vector. Update all
1426 callers.
1427 (compare_symbols): Remove.
1428 (std_compare_symbols): Rename to `compare_symbols'.
1429 (find_method): Change `sym_classes' parameter to std::vector.
1430 Update all callers. Use std::sort to sort sym_classes.
1431 (find_linespec_symbols): Remove cleanup.
1432
1433 2018-08-29 Keith Seitz <keiths@redhat.com>
1434
1435 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1436 std::vector. Update all users.
1437 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1438 (struct collect_info) <minimal_symbols>: Likewise.
1439 (compare_msymbols): Return bool. Change parameters to const
1440 bound_minimal_symbol references.
1441 (find_method, find_function_symbols, find_linespec_symbols): Change
1442 `minsyms' parameter to std::vector. Update all callers.
1443
1444 2018-08-29 Keith Seitz <keiths@redhat.com>
1445
1446 * linespec.c (struct linespec) <label_symbols>: Change type to
1447 std::vector. Update all users.
1448 (find_label_symbols_in_block): Change `result' parameter to
1449 std::vector. Update all callers.
1450 (find_label_symbols): Return std::vector. Update all callers.
1451
1452 2018-08-29 Keith Seitz <keiths@redhat.com>
1453
1454 * linespec.c (struct linespec) <function_symbols>: Change type to
1455 std::vector. Update all users.
1456 (struct collect_info) <function_symbols>: Likewise.
1457 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1458 (std_compare_symbols): New function.
1459 (find_method, find_function_symbols, find_linespec_symbols)
1460 (find_label_symbols_in_block): Change `symbols' parameter to
1461 std::vector. Update all callers.
1462 (find_label_symbols): Likewise for `function_symbols' and
1463 `label_funcs_ret'.
1464
1465 2018-08-29 Keith Seitz <keiths@redhat.com>
1466
1467 * linespec.c (symtab_vector_up): Define.
1468 (struct linespec) <file_symtabs>: Change type to std::vector *.
1469 Update all uses.
1470 (struct collect_info) <file_symtabs>: Likewise.
1471 (collect_symtabs_from_filename): Return symtab_vector_up.
1472 Update all callers.
1473 (decode_objc): Remove cleanup.
1474 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1475 (symtab_collector::release_symtabs): Return symtab_vector_up.
1476 Update all callers.
1477 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1478 Update all users.
1479 (collect_symtabs_from_filename, symtabs_from_filename): Return
1480 symtab_vector_up. Update all callers.
1481
1482 2018-08-29 Tom Tromey <tom@tromey.com>
1483
1484 * csky-tdep.c (csky_analyze_prologue): Use
1485 core_addr_to_string_nz.
1486
1487 2018-08-29 Tom Tromey <tom@tromey.com>
1488
1489 * windows-nat.c (struct xlate_exception) <them>: Change type to
1490 DWORD.
1491 (xlate): Fix formatting. Remove last entry.
1492 (struct xlate_exception, xlate): Comment out.
1493 (windows_nat_target::resume): Use ranged for.
1494
1495 2018-08-29 Jim Wilson <jimw@sifive.com>
1496
1497 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1498 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1499 of NT_PRFPREG.
1500 (riscv_linux_nat_target::store_registers): Likewise.
1501
1502 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1503
1504 PR gdb/23555
1505 PR gdb/23558
1506 * gnulib/aclocal.m4: Regenerate.
1507 * gnulib/config.in: Regenerate.
1508 * gnulib/configure: Regenerate.
1509 * gnulib/import/Makefile.am: Update.
1510 * gnulib/import/Makefile.in: Update.
1511 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1512 * gnulib/import/_Noreturn.h: ... this.
1513 * gnulib/import/alloca.in.h: Update.
1514 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1515 * gnulib/import/arg-nonnull.h: ... this.
1516 * gnulib/import/assure.h: Update.
1517 * gnulib/import/at-func.c: Update.
1518 * gnulib/import/basename-lgpl.c: Update.
1519 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1520 * gnulib/import/c++defs.h: ... this.
1521 * gnulib/import/canonicalize-lgpl.c: Update.
1522 * gnulib/import/cdefs.h: Update.
1523 * gnulib/import/chdir-long.c: Update.
1524 * gnulib/import/chdir-long.h: Update.
1525 * gnulib/import/cloexec.c: Update.
1526 * gnulib/import/cloexec.h: Update.
1527 * gnulib/import/close.c: Update.
1528 * gnulib/import/closedir.c: Update.
1529 * gnulib/import/config.charset: Update.
1530 * gnulib/import/dirent-private.h: Update.
1531 * gnulib/import/dirent.in.h: Update.
1532 * gnulib/import/dirfd.c: Update.
1533 * gnulib/import/dirname-lgpl.c: Update.
1534 * gnulib/import/dirname.h: Update.
1535 * gnulib/import/dosname.h: Update.
1536 * gnulib/import/dup-safer-flag.c: Update.
1537 * gnulib/import/dup-safer.c: Update.
1538 * gnulib/import/dup.c: Update.
1539 * gnulib/import/dup2.c: Update.
1540 * gnulib/import/errno.in.h: Update.
1541 * gnulib/import/error.c: Update.
1542 * gnulib/import/error.h: Update.
1543 * gnulib/import/exitfail.c: Update.
1544 * gnulib/import/exitfail.h: Update.
1545 * gnulib/import/extra/update-copyright: Update.
1546 * gnulib/import/fchdir.c: Update.
1547 * gnulib/import/fcntl.c: Update.
1548 * gnulib/import/fcntl.in.h: Update.
1549 * gnulib/import/fd-hook.c: Update.
1550 * gnulib/import/fd-hook.h: Update.
1551 * gnulib/import/fd-safer-flag.c: Update.
1552 * gnulib/import/fd-safer.c: Update.
1553 * gnulib/import/fdopendir.c: Update.
1554 * gnulib/import/filename.h: Update.
1555 * gnulib/import/filenamecat-lgpl.c: Update.
1556 * gnulib/import/filenamecat.h: Update.
1557 * gnulib/import/flexmember.h: Update.
1558 * gnulib/import/float+.h: Update.
1559 * gnulib/import/float.c: Update.
1560 * gnulib/import/float.in.h: Update.
1561 * gnulib/import/fnmatch.c: Update.
1562 * gnulib/import/fnmatch.in.h: Update.
1563 * gnulib/import/fnmatch_loop.c: Update.
1564 * gnulib/import/fpucw.h: Update.
1565 * gnulib/import/frexp.c: Update.
1566 * gnulib/import/frexpl.c: Update.
1567 * gnulib/import/fstat.c: Update.
1568 * gnulib/import/fstatat.c: Update.
1569 * gnulib/import/getcwd-lgpl.c: Update.
1570 * gnulib/import/getcwd.c: Update.
1571 * gnulib/import/getdtablesize.c: Update.
1572 * gnulib/import/getlogin_r.c: Update.
1573 * gnulib/import/getprogname.c: Update.
1574 * gnulib/import/getprogname.h: Update.
1575 * gnulib/import/gettext.h: Update.
1576 * gnulib/import/gettimeofday.c: Update.
1577 * gnulib/import/glob-libc.h: Update.
1578 * gnulib/import/glob.c: Update.
1579 * gnulib/import/glob.in.h: Update.
1580 * gnulib/import/glob_internal.h: Update.
1581 * gnulib/import/glob_pattern_p.c: Update.
1582 * gnulib/import/globfree.c: Update.
1583 * gnulib/import/hard-locale.c: Update.
1584 * gnulib/import/hard-locale.h: Update.
1585 * gnulib/import/intprops.h: Update.
1586 * gnulib/import/inttypes.in.h: Update.
1587 * gnulib/import/isnan.c: Update.
1588 * gnulib/import/isnand-nolibm.h: Update.
1589 * gnulib/import/isnand.c: Update.
1590 * gnulib/import/isnanl-nolibm.h: Update.
1591 * gnulib/import/isnanl.c: Update.
1592 * gnulib/import/itold.c: Update.
1593 * gnulib/import/libc-config.h: Update.
1594 * gnulib/import/limits.in.h: Update.
1595 * gnulib/import/localcharset.c: Update.
1596 * gnulib/import/localcharset.h: Update.
1597 * gnulib/import/localtime-buffer.c: Update.
1598 * gnulib/import/localtime-buffer.h: Update.
1599 * gnulib/import/lstat.c: Update.
1600 * gnulib/import/m4/00gnulib.m4: Update.
1601 * gnulib/import/m4/__inline.m4: Update.
1602 * gnulib/import/m4/absolute-header.m4: Update.
1603 * gnulib/import/m4/alloca.m4: Update.
1604 * gnulib/import/m4/builtin-expect.m4: Update.
1605 * gnulib/import/m4/canonicalize.m4: Update.
1606 * gnulib/import/m4/chdir-long.m4: Update.
1607 * gnulib/import/m4/close.m4: Update.
1608 * gnulib/import/m4/closedir.m4: Update.
1609 * gnulib/import/m4/configmake.m4: Update.
1610 * gnulib/import/m4/d-ino.m4: Update.
1611 * gnulib/import/m4/d-type.m4: Update.
1612 * gnulib/import/m4/dirent_h.m4: Update.
1613 * gnulib/import/m4/dirfd.m4: Update.
1614 * gnulib/import/m4/dirname.m4: Update.
1615 * gnulib/import/m4/double-slash-root.m4: Update.
1616 * gnulib/import/m4/dup.m4: Update.
1617 * gnulib/import/m4/dup2.m4: Update.
1618 * gnulib/import/m4/eealloc.m4: Update.
1619 * gnulib/import/m4/environ.m4: Update.
1620 * gnulib/import/m4/errno_h.m4: Update.
1621 * gnulib/import/m4/error.m4: Update.
1622 * gnulib/import/m4/exponentd.m4: Update.
1623 * gnulib/import/m4/exponentl.m4: Update.
1624 * gnulib/import/m4/extensions.m4: Update.
1625 * gnulib/import/m4/extern-inline.m4: Update.
1626 * gnulib/import/m4/fchdir.m4: Update.
1627 * gnulib/import/m4/fcntl-o.m4: Update.
1628 * gnulib/import/m4/fcntl.m4: Update.
1629 * gnulib/import/m4/fcntl_h.m4: Update.
1630 * gnulib/import/m4/fdopendir.m4: Update.
1631 * gnulib/import/m4/filenamecat.m4: Update.
1632 * gnulib/import/m4/flexmember.m4: Update.
1633 * gnulib/import/m4/float_h.m4: Update.
1634 * gnulib/import/m4/fnmatch.m4: Update.
1635 * gnulib/import/m4/fnmatch_h.m4: Update.
1636 * gnulib/import/m4/fpieee.m4: Update.
1637 * gnulib/import/m4/frexp.m4: Update.
1638 * gnulib/import/m4/frexpl.m4: Update.
1639 * gnulib/import/m4/fstat.m4: Update.
1640 * gnulib/import/m4/fstatat.m4: Update.
1641 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1642 * gnulib/import/m4/getcwd-path-max.m4: Update.
1643 * gnulib/import/m4/getcwd.m4: Update.
1644 * gnulib/import/m4/getdtablesize.m4: Update.
1645 * gnulib/import/m4/getlogin.m4: Update.
1646 * gnulib/import/m4/getlogin_r.m4: Update.
1647 * gnulib/import/m4/getpagesize.m4: Update.
1648 * gnulib/import/m4/getprogname.m4: Update.
1649 * gnulib/import/m4/gettimeofday.m4: Update.
1650 * gnulib/import/m4/glibc21.m4: Update.
1651 * gnulib/import/m4/glob.m4: Update.
1652 * gnulib/import/m4/glob_h.m4: Update.
1653 * gnulib/import/m4/gnulib-cache.m4: Update.
1654 * gnulib/import/m4/gnulib-common.m4: Update.
1655 * gnulib/import/m4/gnulib-comp.m4: Update.
1656 * gnulib/import/m4/gnulib-tool.m4: Update.
1657 * gnulib/import/m4/hard-locale.m4: Update.
1658 * gnulib/import/m4/include_next.m4: Update.
1659 * gnulib/import/m4/inttypes-pri.m4: Update.
1660 * gnulib/import/m4/inttypes.m4: Update.
1661 * gnulib/import/m4/isnand.m4: Update.
1662 * gnulib/import/m4/isnanl.m4: Update.
1663 * gnulib/import/m4/largefile.m4: Update.
1664 * gnulib/import/m4/limits-h.m4: Update.
1665 * gnulib/import/m4/localcharset.m4: Update.
1666 * gnulib/import/m4/locale-fr.m4: Update.
1667 * gnulib/import/m4/locale-ja.m4: Update.
1668 * gnulib/import/m4/locale-zh.m4: Update.
1669 * gnulib/import/m4/localtime-buffer.m4: Update.
1670 * gnulib/import/m4/longlong.m4: Update.
1671 * gnulib/import/m4/lstat.m4: Update.
1672 * gnulib/import/m4/malloc.m4: Update.
1673 * gnulib/import/m4/malloca.m4: Update.
1674 * gnulib/import/m4/math_h.m4: Update.
1675 * gnulib/import/m4/mbrtowc.m4: Update.
1676 * gnulib/import/m4/mbsinit.m4: Update.
1677 * gnulib/import/m4/mbsrtowcs.m4: Update.
1678 * gnulib/import/m4/mbstate_t.m4: Update.
1679 * gnulib/import/m4/memchr.m4: Update.
1680 * gnulib/import/m4/memmem.m4: Update.
1681 * gnulib/import/m4/mempcpy.m4: Update.
1682 * gnulib/import/m4/memrchr.m4: Update.
1683 * gnulib/import/m4/mkdir.m4: Update.
1684 * gnulib/import/m4/mkstemp.m4: Update.
1685 * gnulib/import/m4/mmap-anon.m4: Update.
1686 * gnulib/import/m4/mode_t.m4: Update.
1687 * gnulib/import/m4/msvc-inval.m4: Update.
1688 * gnulib/import/m4/msvc-nothrow.m4: Update.
1689 * gnulib/import/m4/multiarch.m4: Update.
1690 * gnulib/import/m4/nocrash.m4: Update.
1691 * gnulib/import/m4/off_t.m4: Update.
1692 * gnulib/import/m4/onceonly.m4: Update.
1693 * gnulib/import/m4/open-cloexec.m4: Update.
1694 * gnulib/import/m4/open.m4: Update.
1695 * gnulib/import/m4/openat.m4: Update.
1696 * gnulib/import/m4/opendir.m4: Update.
1697 * gnulib/import/m4/pathmax.m4: Update.
1698 * gnulib/import/m4/rawmemchr.m4: Update.
1699 * gnulib/import/m4/readdir.m4: Update.
1700 * gnulib/import/m4/readlink.m4: Update.
1701 * gnulib/import/m4/realloc.m4: Update.
1702 * gnulib/import/m4/rename.m4: Update.
1703 * gnulib/import/m4/rewinddir.m4: Update.
1704 * gnulib/import/m4/rmdir.m4: Update.
1705 * gnulib/import/m4/save-cwd.m4: Update.
1706 * gnulib/import/m4/secure_getenv.m4: Update.
1707 * gnulib/import/m4/setenv.m4: Update.
1708 * gnulib/import/m4/signal_h.m4: Update.
1709 * gnulib/import/m4/ssize_t.m4: Update.
1710 * gnulib/import/m4/stat-time.m4: Update.
1711 * gnulib/import/m4/stat.m4: Update.
1712 * gnulib/import/m4/std-gnu11.m4: Update.
1713 * gnulib/import/m4/stdbool.m4: Update.
1714 * gnulib/import/m4/stddef_h.m4: Update.
1715 * gnulib/import/m4/stdint.m4: Update.
1716 * gnulib/import/m4/stdio_h.m4: Update.
1717 * gnulib/import/m4/stdlib_h.m4: Update.
1718 * gnulib/import/m4/strchrnul.m4: Update.
1719 * gnulib/import/m4/strdup.m4: Update.
1720 * gnulib/import/m4/strerror.m4: Update.
1721 * gnulib/import/m4/string_h.m4: Update.
1722 * gnulib/import/m4/strstr.m4: Update.
1723 * gnulib/import/m4/strtok_r.m4: Update.
1724 * gnulib/import/m4/sys_socket_h.m4: Update.
1725 * gnulib/import/m4/sys_stat_h.m4: Update.
1726 * gnulib/import/m4/sys_time_h.m4: Update.
1727 * gnulib/import/m4/sys_types_h.m4: Update.
1728 * gnulib/import/m4/tempname.m4: Update.
1729 * gnulib/import/m4/time_h.m4: Update.
1730 * gnulib/import/m4/unistd-safer.m4: Update.
1731 * gnulib/import/m4/unistd_h.m4: Update.
1732 * gnulib/import/m4/warn-on-use.m4: Update.
1733 * gnulib/import/m4/wchar_h.m4: Update.
1734 * gnulib/import/m4/wchar_t.m4: Update.
1735 * gnulib/import/m4/wctype_h.m4: Update.
1736 * gnulib/import/m4/wint_t.m4: Update.
1737 * gnulib/import/malloc.c: Update.
1738 * gnulib/import/malloc/scratch_buffer.h: Update.
1739 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1740 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1741 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1742 * gnulib/import/malloca.c: Update.
1743 * gnulib/import/malloca.h: Update.
1744 * gnulib/import/malloca.valgrind: Update.
1745 * gnulib/import/math.in.h: Update.
1746 * gnulib/import/mbrtowc.c: Update.
1747 * gnulib/import/mbsinit.c: Update.
1748 * gnulib/import/mbsrtowcs-impl.h: Update.
1749 * gnulib/import/mbsrtowcs-state.c: Update.
1750 * gnulib/import/mbsrtowcs.c: Update.
1751 * gnulib/import/memchr.c: Update.
1752 * gnulib/import/memmem.c: Update.
1753 * gnulib/import/mempcpy.c: Update.
1754 * gnulib/import/memrchr.c: Update.
1755 * gnulib/import/mkdir.c: Update.
1756 * gnulib/import/mkstemp.c: Update.
1757 * gnulib/import/msvc-inval.c: Update.
1758 * gnulib/import/msvc-inval.h: Update.
1759 * gnulib/import/msvc-nothrow.c: Update.
1760 * gnulib/import/msvc-nothrow.h: Update.
1761 * gnulib/import/open.c: Update.
1762 * gnulib/import/openat-die.c: Update.
1763 * gnulib/import/openat-priv.h: Update.
1764 * gnulib/import/openat-proc.c: Update.
1765 * gnulib/import/openat.c: Update.
1766 * gnulib/import/openat.h: Update.
1767 * gnulib/import/opendir.c: Update.
1768 * gnulib/import/pathmax.h: Update.
1769 * gnulib/import/pipe-safer.c: Update.
1770 * gnulib/import/rawmemchr.c: Update.
1771 * gnulib/import/readdir.c: Update.
1772 * gnulib/import/readlink.c: Update.
1773 * gnulib/import/realloc.c: Update.
1774 * gnulib/import/ref-add.sin: Update.
1775 * gnulib/import/ref-del.sin: Update.
1776 * gnulib/import/rename.c: Update.
1777 * gnulib/import/rewinddir.c: Update.
1778 * gnulib/import/rmdir.c: Update.
1779 * gnulib/import/same-inode.h: Update.
1780 * gnulib/import/save-cwd.c: Update.
1781 * gnulib/import/save-cwd.h: Update.
1782 * gnulib/import/scratch_buffer.h: Update.
1783 * gnulib/import/secure_getenv.c: Update.
1784 * gnulib/import/setenv.c: Update.
1785 * gnulib/import/signal.in.h: Update.
1786 * gnulib/import/stat-time.c: Update.
1787 * gnulib/import/stat-time.h: Update.
1788 * gnulib/import/stat-w32.c: Update.
1789 * gnulib/import/stat-w32.h: Update.
1790 * gnulib/import/stat.c: Update.
1791 * gnulib/import/stdbool.in.h: Update.
1792 * gnulib/import/stddef.in.h: Update.
1793 * gnulib/import/stdint.in.h: Update.
1794 * gnulib/import/stdio.in.h: Update.
1795 * gnulib/import/stdlib.in.h: Update.
1796 * gnulib/import/str-two-way.h: Update.
1797 * gnulib/import/strchrnul.c: Update.
1798 * gnulib/import/strdup.c: Update.
1799 * gnulib/import/streq.h: Update.
1800 * gnulib/import/strerror-override.c: Update.
1801 * gnulib/import/strerror-override.h: Update.
1802 * gnulib/import/strerror.c: Update.
1803 * gnulib/import/string.in.h: Update.
1804 * gnulib/import/stripslash.c: Update.
1805 * gnulib/import/strnlen1.c: Update.
1806 * gnulib/import/strnlen1.h: Update.
1807 * gnulib/import/strstr.c: Update.
1808 * gnulib/import/strtok_r.c: Update.
1809 * gnulib/import/sys_stat.in.h: Update.
1810 * gnulib/import/sys_time.in.h: Update.
1811 * gnulib/import/sys_types.in.h: Update.
1812 * gnulib/import/tempname.c: Update.
1813 * gnulib/import/tempname.h: Update.
1814 * gnulib/import/time.in.h: Update.
1815 * gnulib/import/unistd--.h: Update.
1816 * gnulib/import/unistd-safer.h: Update.
1817 * gnulib/import/unistd.in.h: Update.
1818 * gnulib/import/unsetenv.c: Update.
1819 * gnulib/import/verify.h: Update.
1820 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1821 * gnulib/import/wchar.in.h: Update.
1822 * gnulib/import/wctype.in.h: Update.
1823 * gnulib/import/xalloc-oversized.h: Update.
1824 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1825 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1826
1827 2018-08-16 Gary Benson <gbenson@redhat.com>
1828
1829 PR gdb/13000:
1830 * gdb/main.c (captured_main_1): Exit with nonzero status
1831 in batch mode if the last command to be executed failed.
1832 * NEWS: Mention the above.
1833
1834 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1835
1836 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1837 end of warning message.
1838
1839 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1840
1841 PR gdb/22943:
1842 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1843 (aarch64_extract_return_value): Use
1844 aapcs_is_vfp_call_or_return_candidate.
1845 (aarch64_return_in_memory): Likewise.
1846 (aarch64_store_return_value): Likewise.
1847
1848 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1849
1850 * aarch64-tdep.c
1851 (aapcs_is_vfp_call_or_return_candidate): Make static
1852 (pass_in_v_or_stack): Remove function.
1853 (pass_in_v_vfp_candidate): New function.
1854 (aarch64_push_dummy_call): Check for float register candidates.
1855
1856 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1857
1858 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1859 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1860 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1861
1862 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1863
1864 PR build/23399
1865 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1866 (struct ipa_sym_addresses): Rename to...
1867 (struct ipa_sym_addresses_common): ... this.
1868 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1869
1870 2018-08-28 Tom Tromey <tom@tromey.com>
1871
1872 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1873 (token_fifo): Now a std::vector.
1874 (yylex, c_parse): Update.
1875 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1876 (token_fifo): Now a std::vector.
1877 (yylex, d_parse): Update.
1878 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1879 (token_fifo): Now a std::vector.
1880 (yylex, go_parse): Update.
1881
1882 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1883
1884 * parser-defs.h (struct type_stack) <elements>: Change type to
1885 std::vector<union type_stack_elt>.
1886 <depth, size>: Remove.
1887 * parse.c (parse_exp_in_context_1): Adjust.
1888 (type_stack_reserve): Remove.
1889 (check_type_stack_depth): Remove.
1890 (insert_into_type_stack): Adjust to std::vector.
1891 (insert_type): Likewise.
1892 (push_type): Likewise.
1893 (push_type_int): Likewise.
1894 (insert_type_address_space): Likewise.
1895 (pop_type): Likewise.
1896 (pop_type_int): Likewise.
1897 (pop_typelist): Likewise.
1898 (pop_type_stack): Likewise.
1899 (append_type_stack): Likewise.
1900 (push_type_stack): Likewise.
1901 (get_type_stack): Likewise.
1902 (type_stack_cleanup): Likewise.
1903 (push_typelist): Likewise.
1904 (follow_types): Likewise.
1905 (_initialize_parse): Likewise.
1906
1907 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1908
1909 * NEWS: Mention csky target.
1910
1911 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1912 Hafiz Abid Qadeer <abidh@codesourcery.com>
1913 Don Breazeal <donb@codesourcery.com>
1914
1915 * csky-linux-tdep.c: New file.
1916 * csky-tdep.c: Likewise.
1917 * csky-tdep.h: Likewise.
1918 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1919 csky-tdep.o.
1920 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1921 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1922 * configure.tgt: Add csky support.
1923
1924 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1925
1926 * python/py-framefilter.c (py_print_frame): Print frame architecture
1927 when printing on an MI output.
1928
1929 2018-08-27 Tom Tromey <tom@tromey.com>
1930
1931 PR build/23087:
1932 * configure: Rebuild.
1933 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1934
1935 2018-08-27 Tom Tromey <tom@tromey.com>
1936
1937 * aarch64-linux-tdep.c
1938 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1939 casts to int.
1940
1941 2018-08-27 Tom Tromey <tom@tromey.com>
1942
1943 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1944 unsigned.
1945 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1946 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1947 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1948 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1949 unsigned.
1950
1951 2018-08-27 Tom Tromey <tom@tromey.com>
1952
1953 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1954 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1955
1956 2018-08-27 Tom Tromey <tom@tromey.com>
1957
1958 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1959 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1960 ULONGEST_MAX.
1961 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1962 ULONGEST_MAX.
1963 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1964 ULONGEST_MAX.
1965 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1966 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1967 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1968 ULONGEST_MAX.
1969 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1970 (ppc64_linux_sigaction_tramp_frame)
1971 (ppc32_linux_sighandler_tramp_frame)
1972 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1973 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1974 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1975 * mn10300-linux-tdep.c (am33_linux_sigframe)
1976 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1977 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1978 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1979 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1980 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1981 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1982 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1983 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1984 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1985 * microblaze-linux-tdep.c
1986 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1987 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1988 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1989 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1990 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1991 * common/common-types.h (ULONGEST_MAX): New define.
1992 (CORE_ADDR_MAX): Fix formatting.
1993 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1994 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1995 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1996 (arm_linux_rt_sigreturn_tramp_frame)
1997 (arm_eabi_linux_sigreturn_tramp_frame)
1998 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1999 (thumb2_eabi_linux_sigreturn_tramp_frame)
2000 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2001 (arm_linux_restart_syscall_tramp_frame)
2002 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2003 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2004 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2005 ULONGEST_MAX.
2006 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2007
2008 2018-08-27 Tom Tromey <tom@tromey.com>
2009
2010 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2011 CORE_ADDR_MAX.
2012 * mips-tdep.c (mips_deal_with_atomic_sequence)
2013 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2014 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2015 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2016 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2017 CORE_ADDR_MAX.
2018 * aarch64-tdep.c (aarch64_software_single_step): Use
2019 CORE_ADDR_MAX.
2020
2021 2018-08-27 Tom Tromey <tom@tromey.com>
2022
2023 * linespec.c (complete_linespec_component): Add cast to "char".
2024 * completer.c (completion_tracker::build_completion_result): Add
2025 cast to "char".
2026
2027 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2028
2029 * solist.h (struct solist, struct target_so_ops): Fix
2030 indentation.
2031
2032 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2033
2034 * ada-tasks.c (ada_task_info_s): Remove typedef.
2035 (DEF_VEC_O(ada_task_info_s)): Remove.
2036 (struct ada_tasks_inferior_data): Initialize fields.
2037 <task_list>: Make an std::vector.
2038 (get_ada_tasks_inferior_data): Allocate with new.
2039 (ada_get_task_number): Adjust.
2040 (get_task_number_from_id): Likewise.
2041 (valid_task_id): Likewise.
2042 (ada_get_task_info_from_ptid): Likewise.
2043 (iterate_over_live_ada_tasks): Likewise.
2044 (add_ada_task): Likewise.
2045 (read_known_tasks): Likewise.
2046 (ada_build_task_list): Likewise.
2047 (print_ada_task_info): Likewise.
2048 (info_task): Likewise.
2049 (task_command_1): Likewise.
2050
2051 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2052
2053 * ada-lang.c (add_angle_brackets): Return std::string.
2054
2055 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2056
2057 * python/py-threadevent.c (py_get_event_thread): Initialize
2058 pythread.
2059
2060 2018-08-24 Pedro Alves <palves@redhat.com>
2061
2062 * python/py-bpevent.c (create_breakpoint_event_object): Use
2063 copy-initialization.
2064 * python/py-continueevent.c (emit_continue_event): Use
2065 copy-initialization.
2066 * python/py-exitedevent.c (create_exited_event_object): Return a
2067 gdbpy_ref<>.
2068 (emit_exited_event): Use copy-initialization.
2069 * python/py-inferior.c (python_new_inferior)
2070 (python_inferior_deleted, add_thread_object): Use
2071 copy-initialization.
2072 * python/py-infevents.c (create_inferior_call_event_object)
2073 (create_register_changed_event_object)
2074 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2075 (emit_inferior_call_event, emit_memory_changed_event)
2076 (emit_register_changed_event): Use copy-initialization.
2077 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2078 Return a gdbpy_ref<>.
2079 (emit_new_objfile_event): Use copy-initialization.
2080 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2081 (emit_clear_objfiles_event): Use copy-initialization.
2082 * python/py-signalevent.c (create_signal_event_object): Use
2083 copy-initialization.
2084 * python/py-threadevent.c (create_thread_event_object): Use
2085 copy-initialization.
2086
2087 2018-08-24 Pedro Alves <palves@redhat.com>
2088 Simon Marchi <simon.marchi@ericsson.com>
2089
2090 PR gdb/23379
2091 * python/py-continueevent.c: Include "gdbthread.h".
2092 (create_continue_event_object): Add intro comment. Add 'ptid'
2093 parameter. Use it to find thread to pass to
2094 create_thread_event_object.
2095 (emit_continue_event): Pass PTID down to
2096 create_continue_event_object.
2097 * python/py-event.h (py_get_event_thread): Declare.
2098 (create_thread_event_object): Remove default from 'thread'
2099 parameter.
2100 * python/py-stopevent.c (create_stop_event_object): Use
2101 py_get_event_thread.
2102 * python/py-threadevent.c (get_event_thread): Rename to ...
2103 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2104 and use it to find the thread.
2105 (create_thread_event_object): Assert that THREAD isn't null.
2106 Don't find the event thread here.
2107
2108 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2109
2110 * block.h (blockrange, blockranges): New struct declarations.
2111 (struct block): Add new field named `ranges'.
2112 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2113 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2114 macros for accessing ranges in struct block.
2115 (make_blockranges): New declaration.
2116 block.c (make_blockranges): New function.
2117 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2118 for block.
2119 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2120 * blockframe.c (cache_pc_function_block): New static global.
2121 (clear_pc_function_cache): Clear cache_pc_function_block.
2122 (find_pc_partial_function): Move comment to symtab.h. Add
2123 support for non-contiguous blocks.
2124 * cli/cli-cmds.c (block.h): Include.
2125 (print_disassembly): Handle printing of non-contiguous blocks.
2126 (disassemble_current_function): Likewise.
2127 (disassemble_command): Likewise.
2128
2129 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2130 BLOCK_START.
2131 * blockframe.c (get_pc_function_start): Likewise.
2132 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2133 (gcc_symbol_address): Likewise.
2134 * compile/compile-object-run.c (compile_object_run): Likewise.
2135 * compile/compile.c (get_expr_block_and_pc): Likewise.
2136 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2137 (func_addr_to_tail_call_list): Likewise.
2138 * findvar.c (default_read_var_value): Likewise.
2139 * inline-frame.c (inline_frame_this_id): Likewise.
2140 (skip-inline_frames): Likewise.
2141 * infcmd.c (until_next_command): Likewise.
2142 * linespec.c (convert_linespec_to_sals): Likewise.
2143 * parse.c (parse_exp_in_context_1): Likewise.
2144 * printcmd.c (build_address_symbolic): likewise.
2145 (info_address_command): Likewise.
2146 symtab.c (find_function_start_sal): Likewise.
2147 (skip_prologue_sal): Likewise.
2148 (find_function_alias_target): Likewise.
2149 (find_gnu_ifunc): Likewise.
2150 * stack.c (find_frame_funname): Likewise.
2151 * symtab.c (fixup_symbol_section): Likewise.
2152 (find_function_start_sal): Likewise.
2153 (skip_prologue_sal): Likewsie.
2154 (find_function_alias_target): Likewise.
2155 (find_gnu_ifunc): Likewise.
2156 * tracepoint.c (info_scope_command): Likewise.
2157 * value.c (value_fn_field): Likewise.
2158
2159 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2160 in place of find_pc_partial_function.
2161 * blockframe.c (find_function_entry_range_from_pc): New function.
2162 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2163 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2164 for each range in a block.
2165
2166
2167 2018-08-23 Xavier Roirand <roirand@adacore.com>
2168
2169 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2170 incrementation.
2171
2172 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2173
2174 * solib-svr4.c (read_program_headers_from_bfd): Return
2175 gdb::optional<gdb::byte_vector>.
2176 (svr4_exec_displacement): Adjust.
2177
2178 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2179
2180 * solib-svr4.c (read_program_header): Return
2181 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2182 (find_program_interpreter): Return
2183 gdb::optional<gdb::byte_vector>.
2184 (scan_dyntag_auxv): Adjust.
2185 (enable_break): Adjust.
2186 (svr4_exec_displacement): Adjust.
2187
2188 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2189
2190 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2191 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2192
2193 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2194
2195 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2196 string_vprintf.
2197 * guile/scm-utils.c (gdbscm_printf): Likewise.
2198 * serial.c (serial_printf): Likewise.
2199 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2200
2201 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2202
2203 * stack.c (print_frame): Print frame architecture when printing on
2204 an MI output.
2205 * NEWS: Mention new "arch" attribute in frame output.
2206
2207 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2208
2209 * arch/aarch64.h (aarch64_regnum): Update comment.
2210
2211 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2212
2213 * NEWS: Add SVE to 8.2 section.
2214
2215 2018-08-21 Pedro Alves <palves@redhat.com>
2216
2217 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2218 out from gdbscm_parse_function_args.
2219 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2220 gdbscm_parse_function_args_1.
2221
2222 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2223
2224 PR gdb/17816
2225 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2226 operator.
2227
2228 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2229
2230 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2231
2232 2018-08-19 Michael Spang <spang@google.com>
2233
2234 PR gdb/11786
2235 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2236 for PT_TLS segments.
2237
2238 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2239
2240 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2241 dwarf_variable_value.
2242 * dwarf2-frame.c (class dwarf_expr_executor):
2243 Add override for dwarf_variable_value.
2244 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2245 (class symbol_needs_eval_context): Likewise.
2246 (indirect_synthetic_pointer): Add forward declaration.
2247 (sect_variable_value): New function.
2248 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2249 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2250 for DW_OP_GNU_variable_value.
2251
2252 2018-08-16 Tom Tromey <tom@tromey.com>
2253
2254 * top.c (read_command_file): Update.
2255 (command_line_input): Remove "repeat" argument.
2256 * ada-lang.c (get_selections): Update.
2257 * linespec.c (decode_line_2): Update.
2258 * defs.h (command_line_input): Remove argument.
2259 * cli/cli-script.c (read_next_line): Update.
2260 * python/py-gdb-readline.c: Update.
2261
2262 2018-08-17 Tom Tromey <tom@tromey.com>
2263
2264 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2265 command_line_input.
2266
2267 2018-08-15 Tom Tromey <tom@tromey.com>
2268
2269 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2270
2271 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2272
2273 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2274 If used, use find_pc_partial_function to find address range
2275 to disassemble.
2276 * mi/mi-main.c (mi_cmd_list_features): Report
2277 "data-disassemble-a-option" feature.
2278 * NEWS: Mention new -data-disassemble option -a.
2279
2280 2018-08-13 Tom Tromey <tom@tromey.com>
2281
2282 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2283
2284 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2285
2286 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2287 (aarch64_linux_collect_sve_regset): Likewise.
2288 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2289 * regcache.h (regcache_map_entry_size): New function.
2290
2291 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2292
2293 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2294 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2295 (SVE_HEADER_VL_LENGTH): Likewise.
2296 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2297 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2298 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2299 (SVE_HEADER_SIZE_OFFSET): Likewise.
2300 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2301 (SVE_HEADER_VL_OFFSET): Likewise.
2302 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2303 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2304 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2305 (SVE_HEADER_SIZE): Likewise.
2306 (aarch64_linux_core_read_vq): Add function.
2307 (aarch64_linux_core_read_description): Check for SVE section.
2308
2309 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2310
2311 * aarch64-fbsd-tdep.c
2312 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2313 collect_size.
2314 * aarch64-linux-tdep.c
2315 (aarch64_linux_iterate_over_regset_sections): Likewise.
2316 * alpha-linux-tdep.c
2317 (alpha_linux_iterate_over_regset_sections):
2318 * alpha-nbsd-tdep.c
2319 (alphanbsd_iterate_over_regset_sections): Likewise.
2320 * amd64-fbsd-tdep.c
2321 (amd64fbsd_iterate_over_regset_sections): Likewise.
2322 * amd64-linux-tdep.c
2323 (amd64_linux_iterate_over_regset_sections): Likewise.
2324 * arm-bsd-tdep.c
2325 (armbsd_iterate_over_regset_sections): Likewise.
2326 * arm-fbsd-tdep.c
2327 (arm_fbsd_iterate_over_regset_sections): Likewise.
2328 * arm-linux-tdep.c
2329 (arm_linux_iterate_over_regset_sections): Likewise.
2330 * corelow.c (get_core_registers_cb): Likewise.
2331 (core_target::fetch_registers): Likewise.
2332 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2333 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2334 * gdbarch.h (void): Regenerate.
2335 * gdbarch.sh: Add supply_size and collect_size.
2336 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2337 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2338 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2339 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2340 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2341 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2342 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2343 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2344 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2345 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2346 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2347 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2348 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2349 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2350 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2351 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2352 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2353 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2354 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2355 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2356 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2357 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2358 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2359 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2360 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2361 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2362 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2363 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2364 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2365 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2366
2367 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2368
2369 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2370 with string_printf.
2371
2372 2018-08-10 Keith Seitz <keiths@redhat.com>
2373
2374 * compile/compile-c-support.c (add_code_header, add_code_footer):
2375 Move into policy class.
2376 (c_push_user_expression, pop_user_expression_nop)
2377 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2378 (compile_program): New host class.
2379 (c_compile_program): New typedef.
2380 (c_compute_porgram): Use c_compile_program.
2381
2382 2018-08-10 Keith Seitz <keiths@redhat.com>
2383
2384 * compile/compile-internal.h (compile_instance::~compile_instance):
2385 Remove calls to htab_delete.
2386 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2387 * compile.c (compile_instance::compile_instance): Initialize
2388 htab unique pointers.
2389 (compile_instance::get_cached_type, compile_instance::insert_type)
2390 (compile_instance::error_symbol_once): Update for unique_ptr.
2391
2392 2018-08-10 Keith Seitz <keiths@redhat.com>
2393
2394 * compile/compile-c-symbols.c (struct symbol_error)
2395 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2396 (compile_instance::insert_symbol_error)
2397 (compile_instance::error_symbol_once): Move to ...
2398 * compile/compile.c: ... here.
2399
2400 2018-08-10 Keith Seitz <keiths@redhat.com>
2401
2402 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2403 instead of `new_compile_instance'.
2404 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2405 Update description.
2406 If the symbol error map is not initialized, create it.
2407 (generate_c_for_for_one_symbol): Do not check/initialize
2408 the symbol error map.
2409 * compile/compile-c-types.c (compile_c_instance): Make a class.
2410 Update all callers.
2411 (compile_instance::compile_instance): Initialize the type cache.
2412 (get_cached_type): New function.
2413 (insert_type): Update description.
2414 (compile_c_instance::m_default_cflags): Define.
2415 (convert_type): Update description. Use get_cached_type.
2416 (delete_instance): Moved to destructor.
2417 (new_compile_instance): Moved to constructor.
2418 * compile/compile-c.h (compile_c_instance): Make class inheriting
2419 from compile_instance.
2420 <base>: Remove field.
2421 <type_map, symbol_err_map>: Move to base class.
2422 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2423 * compile/compile-internal.h (compile_instance): Make class.
2424 <type_map_t, symbol_err_map_t>: Define.
2425 <fe>: Rename to `m_gcc_fe'.
2426 <scope, block, gcc_target_options>: Add `m_' prefix.
2427 <m_type_map, m_symbol_err_map>: New fields, moved from
2428 compile_c_instance.
2429 <destroy>: Remove.
2430 (convert_type, new_compile_instance): Remove.
2431 * compile/compile.c (cleanup_compile_instance): Remove.
2432 (compile_to_object): Use unique_ptr to eliminate cleanups.
2433 (compile_instance::set_print_callback, compile_instance::version)
2434 (compile_instance::set_verbose)
2435 (compile_instance::set_driver_filename)
2436 (compile_instance::set_triplet_regexp)
2437 (compile_instance::set_arguments)
2438 (compile_instance::set_source_file)
2439 (compile_instance::compile): Define.
2440
2441 2018-08-10 Keith Seitz <keiths@redhat.com>
2442
2443 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2444 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2445 gcc-c-fe.def to define C plugin.
2446 (delete_instance): Delete `c_plugin'.
2447 (new_compile_instance): Initialize `c_plugin'.
2448 * compile/compile-c.h: Include gcc_c_plugin.h.
2449 (struct compile_c_instance) <c_plugin>: New member.
2450 * gcc-c-plugin.h: New file.
2451 Update all callers with API change.
2452
2453 2018-08-10 Keith Seitz <keiths@redhat.com>
2454
2455 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2456 (HFILES_NO_SRCDIR): ... to here.
2457 Add compile-internal.h and compile-c.h.
2458 * compile/compile-c-support.c: Include compile-c.h.
2459 * compile/compile-c-symbols.c: Include compile-c.h.
2460 (generate_c_for_variable_locations): Update comment.
2461 * compile/compile-c-types.c: Include compile-c.h.
2462 * compile/compile-c.h: New file -- moved C language declarations
2463 from other files here.
2464 * compile/compile-internal.h: Do not include hashtab.h or
2465 common/enum-flags.h.
2466 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2467 (gcc_convert_symbol, gcc_symbol_address)
2468 (generate_c_for_variable_locations, c_get_mode_for_size)
2469 (c_get_range_decl_name): Definitions moved to compile-c.h.
2470 * compile/compile-loc2c.c: Include compile-c.h.
2471
2472 2018-08-10 Keith Seitz <keiths@redhat.com>
2473
2474 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2475 (c_symbol_substitution_name): ... this.
2476 Update all callers.
2477
2478 2018-08-10 Keith Seitz <keiths@redhat.com>
2479
2480 * compile/compile-c-support.c (c_compute_program): Use
2481 unique_xmalloc_ptr to eliminate cleanup.
2482 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2483 Return a unique_xmalloc_ptr and eliminate cleanup.
2484 * compile/compile-internal.h (generate_c_for_variable_locations):
2485 Return unique_xmalloc_ptr and update description.
2486
2487 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2488
2489 * corelow.c (core_target::get_core_register_section): Rename
2490 min_size to section_min_size.
2491
2492 2018-08-09 Jim Wilson <jimw@sifive.com>
2493
2494 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2495 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2496 * NEWS: Mention new GNU/Linux RISC-V target.
2497 * configure.host: Add riscv*-*-linux*.
2498 * configure.nat: Add riscv*.
2499 * configure.tgt: Add riscv*-*-linux*.
2500 * riscv-linux-nat.c: New file.
2501 * riscv-linux-tdep.c: New file.
2502
2503 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2504
2505 * infrun.c (resume): Make static, add forward declaration.
2506 (proceed): Update header comment.
2507 * infrun.h (resume): Delete declaration.
2508
2509 2018-08-09 Tom Tromey <tom@tromey.com>
2510
2511 * riscv-tdep.h: Minor formatting fixes.
2512
2513 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2514
2515 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2516 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2517 (test_mkdir_recursive): Likewise.
2518 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2519
2520 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2521
2522 * valarith.c (value_subscripted_rvalue): If an array is not in
2523 memory, and we don't know the upper bound, then we can't know that
2524 the requested element exists or not.
2525
2526 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2527
2528 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2529 (target_options_to_string): Add comment.
2530
2531 2018-08-08 Tom Tromey <tom@tromey.com>
2532
2533 * unittests/scoped_mmap-selftests.c: Check result of "write".
2534
2535 2018-08-08 Jim Wilson <jimw@sifive.com>
2536
2537 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2538 (decode_register_index_short): New.
2539 (decode_j_type_insn, decode_cj_type_insn): New.
2540 (decode_b_type_insn, decode_cb_type_insn): New.
2541 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2542 local xlen. Check xlen when decoding ambiguous compressed insns. In
2543 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2544 is_c_sw_insn instead of is_sw_insn.
2545 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2546 (riscv_software_single_step): New.
2547 * riscv-tdep.h (riscv_software_single_step): Declare.
2548
2549 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2550 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2551
2552 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2553
2554 PR gdb/18050:
2555 * target.c (dispose_inferior): Don't dispose of inferiors that are
2556 already killed.
2557
2558 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2559
2560 * remote.c (remote_target::download_tracepoint): Change char* to
2561 const char*.
2562
2563 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2564
2565 * target.h (target_options_to_string): Return an std::string.
2566 * target.c (str_comma_list_concat_elem): Return void, use
2567 std::string.
2568 (do_option): Likewise.
2569 (target_options_to_string): Return an std::string.
2570 * linux-nat.c (linux_nat_target::wait): Adjust.
2571 * target-debug.h (target_debug_print_options): Adjust.
2572
2573 2018-08-07 Tom Tromey <tom@tromey.com>
2574
2575 * Makefile.in (CPPFLAGS): New variable.
2576 (INTERNAL_CPPFLAGS): Use it.
2577
2578 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2579
2580 * NEWS: Mention the index cache.
2581
2582 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2583
2584 * common/pathstuff.h (get_standard_cache_dir): New.
2585 * common/pathstuff.c (get_standard_cache_dir): New.
2586 * build-id.h (build_id_to_string): New.
2587 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2588 DEBUG_STR_SUFFIX): Move to here.
2589 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2590 DEBUG_STR_SUFFIX): Move from there.
2591 (write_psymtabs_to_index): Make non-static, add basename
2592 parameter. Write to temporary files, rename when done.
2593 (save_gdb_index_command): Adjust call to
2594 write_psymtabs_to_index.
2595 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2596 field.
2597 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2598 (get_gdb_index_contents_from_cache): New.
2599 (get_gdb_index_contents_from_cache_dwz): New.
2600 (dwarf2_initialize_objfile): Read index from cache.
2601 (dwarf2_build_psymtabs): Save to index.
2602 * dwarf-index-cache.h: New file.
2603 * dwarf-index-cache.c: New file.
2604 * dwarf-index-write.h: New file.
2605
2606 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2607
2608 * gnulib/aclocal.m4: Re-generate.
2609 * gnulib/config.in: Re-generate.
2610 * gnulib/configure: Re-generate.
2611 * gnulib/import/Makefile.am: Re-generate.
2612 * gnulib/import/Makefile.in: Re-generate.
2613 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2614 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2615 * gnulib/import/m4/mkdir.m4: New file.
2616 * gnulib/import/mkdir.c: New file.
2617 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2618 module.
2619
2620 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2621
2622 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2623 * common/scoped_mmap.c: New file.
2624 * common/scoped_mmap.h (destroy): New method.
2625 (~scoped_mmap, reset): Use destroy.
2626 (scoped_mmap): New move constructor.
2627 (mmap_file): New declaration.
2628 * unittests/scoped_mmap-selftests.c (test_normal,
2629 test_invalid_filename, run_tests): New functions.
2630 (_initialize_scoped_mmap_selftests): Register selftest.
2631
2632 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2633
2634 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2635 (read_gdb_index_from_buffer): ... this. Remove section
2636 parameter, add buffer parameter.
2637 (get_gdb_index_contents_ftype,
2638 get_gdb_index_contents_dwz_ftype): New typedefs.
2639 (dwarf2_read_gdb_index): Add callback parameters to get the
2640 index contents.
2641 (get_gdb_index_contents_from_section): New.
2642 (dwarf2_initialize_objfile): Update call to
2643 dwarf2_read_gdb_index.
2644
2645 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2646
2647 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2648 (gdb_open_cloexec): Likewise.
2649 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2650 (commandline_from_pid): Likewise.
2651 (linux_xfer_osdata_threads): Likewise.
2652 (linux_xfer_osdata_fds): Likewise.
2653 * ada-lang.c (is_package_name): Likewise.
2654 * auxv.c (procfs_xfer_auxv): Likewise.
2655 * breakpoint.c (print_one_breakpoint_location): Use
2656 uiout::field_fmt.
2657 (print_one_catch_solib): Use string_printf.
2658 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2659 (add_pe_forwarded_sym): Likewise.
2660 * dwarf2read.c (create_type_unit_group): Likewise.
2661 (build_error_marker_type): Likewise.
2662 * infcall.c (get_function_name): Likewise.
2663 * valprint.c (print_converted_chars_to_obstack): Likewise.
2664 * xtensa-tdep.c (xtensa_register_type): Likewise.
2665
2666 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2667
2668 * remote.c (remote_target::download_tracepoint): Fix format
2669 string errors.
2670
2671 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2672
2673 * tracefile.c: Include common/byte-vector.h.
2674 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2675 with trace_regblock_size if needed. Update uses of buf.
2676
2677 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2678
2679 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2680 std::vector<unsigned char>.
2681 * tracepoint.c (collection_list::collection_list): Remove
2682 m_regs_mask initializer from initializer list. Resize
2683 m_regs_mask using the largest remote register number.
2684 (collection_list::add_remote_register): Remove size check on
2685 m_regs_mask. Use at to access element.
2686 (collection_list::stringify): Change type of temp_buf to
2687 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2688 stringify the register mask. Use pack_hex_byte for the register
2689 mask.
2690
2691 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2692
2693 * tracepoint.h (class collection_list) <add_register>: Remove.
2694 <add_remote_register, add_ax_registers, add_local_register>:
2695 Declare.
2696 <add_memrange>: Add scope parameter.
2697 * tracepoint.c (encode_actions_1): Likewise.
2698 (collection_list::add_register): Rename to ...
2699 (collection_list::add_remote_register): ... this. Update
2700 comment.
2701 (collection_list::add_ax_registers, add_local_register): New
2702 methods.
2703 (collection_list::add_memrange): Add scope parameter. Call
2704 add_local_register instead of add_register.
2705 (finalize_tracepoint_aexpr): New function.
2706 (collection_list::collect_symbol): Update calls to add_memrange.
2707 Call add_local_register instead of add_register. Call
2708 add_ax_registers. Call finalize_tracepoint_aexpr.
2709 (encode_actions_1): Get remote regnos for $reg action. Call
2710 add_remote_register, add_ax_registers, and add_local_register.
2711 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2712 (validate_actionline): Call finalize_tracepoint_aexpr.
2713
2714 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2715
2716 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2717 Replace array buf with gdb::char_vector buf, of size
2718 get_remote_packet_size (). Replace references to buf and
2719 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2720 and xsnprintf with snprintf. Raise errors if the buffer is too
2721 small.
2722
2723 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2724
2725 * remote.c (remote_target::download_tracepoint): Fix the has_more
2726 predicate in the QTDP action list iteration.
2727
2728 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2729
2730 * remote.c (remote_target::download_tracepoint): Fix indentation
2731 in for block.
2732
2733 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2734
2735 * proc-api.c (_initialize_proc_api): Remove c, unused.
2736 * procfs.c (procfs_init_inferior): Remove signals, unused.
2737 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2738 unused.
2739
2740 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2741 Andrew Burgess <andrew.burgess@embecosm.com>
2742
2743 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2744 'W_STOPCODE (0)' as this could be ambiguous.
2745
2746 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2747
2748 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2749 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2750 "ai_socktype").
2751
2752 2018-08-02 Tom Tromey <tom@tromey.com>
2753
2754 PR symtab/16842.
2755 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2756 symbols.
2757 (process_structure_scope): Likewise.
2758
2759 2018-08-02 Xavier Roirand <roirand@adacore.com>
2760
2761 PR gdb/22629:
2762 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2763 kill inferior.
2764
2765 2018-08-02 Tom Tromey <tom@tromey.com>
2766
2767 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2768 (darwin_suspend_inferior, darwin_resume_inferior)
2769 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2770 (darwin_check_new_threads): Check result of get_darwin_inferior.
2771
2772 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2773
2774 GDB 8.1.1 released.
2775
2776 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2777
2778 * varobj.c (varobj_get_path_expr_parent): Report an error if
2779 parent is a dynamic varobj.
2780
2781 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2782
2783 * gnulib/aclocal.m4: Re-generate.
2784 * gnulib/config.in: Re-generate.
2785 * gnulib/configure: Re-generate.
2786 * gnulib/import/Makefile.in: Re-generate.
2787 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2788 * gnulib/import/m4/onceonly.m4: Re-generate.
2789
2790 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2791
2792 * target-descriptions.c (struct xml_test_tdesc): New.
2793 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2794 (record_xml_tdesc): Update.
2795 (maintenance_check_xml_descriptions): Update.
2796 * target-descriptions.h (record_xml_tdesc): Update comment.
2797
2798 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2799
2800 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2801 checking array bounds are defined.
2802
2803 2018-07-30 Tom Tromey <tom@tromey.com>
2804
2805 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2806 irreflexivity violation.
2807
2808 2018-07-30 Tom Tromey <tom@tromey.com>
2809
2810 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2811 * value.c (unpack_long): Remove lint code.
2812 * valops.c (value_ind): Remove lint code.
2813 * valarith.c (value_x_binop, value_x_unop, value_equal)
2814 (value_pos): Remove lint code.
2815
2816 2018-07-28 Tom de Vries <tdevries@suse.de>
2817
2818 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2819 with undefined upper bound as <optimized out>.
2820
2821 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2822
2823 * gcore.in: Rename variable "name" to "prefix". Expand
2824 "usage" text.
2825
2826 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2827
2828 * windows-nat.c (windows_nat_target::create_inferior): Update to
2829 call close() in global namespace.
2830
2831 2018-07-26 Tom Tromey <tom@tromey.com>
2832
2833 * dwarf-index-write.c (add_address_entry): Don't add objfile
2834 offsets.
2835 * dbxread.c (find_stab_function): Rename from
2836 find_stab_function_addr. Return a bound_minimal_symbol.
2837 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2838 Don't add objfile offsets.
2839 (end_psymtab): Use raw_text_low, raw_text_high,
2840 MSYMBOL_VALUE_RAW_ADDRESS.
2841 (read_ofile_symtab): Update.
2842 (process_one_symbol): Update.
2843 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2844 offsets.
2845 (dw2_relocate): Remove.
2846 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2847 searching addrmap.
2848 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2849 Update.
2850 (process_psymtab_comp_unit_reader, add_partial_symbol)
2851 (add_partial_subprogram, dwarf2_ranges_read): Update.
2852 (load_partial_dies): Update.
2853 (add_address_entry): Don't add objfile offsets.
2854 (dwarf2_build_include_psymtabs): Update.
2855 (create_addrmap_from_aranges): Don't add objfile offsets.
2856 (dw2_find_pc_sect_compunit_symtab): Update.
2857 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2858 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2859 Update.
2860 (parse_partial_symbols): Don't add objfile offsets. Use
2861 raw_text_low, raw_text_high. Update.
2862 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2863 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2864 or call 'relocate' quick function. Clear psymbol_map.
2865 * psympriv.h (struct partial_symbol) <address>: Add section
2866 offset.
2867 <set_unrelocated_address>: Rename from set_address.
2868 <raw_text_low, raw_text_high>: New methods.
2869 <text_low, text_high>: Add objfile parameter.
2870 (add_psymbol_to_bcache): Add 'section' parameter. Call
2871 set_unrelocated_address.
2872 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2873 (find_pc_psymbol): Update.
2874 (fixup_psymbol_section, relocate_psymtabs): Remove.
2875 (dump_psymtab, psym_functions): Update.
2876 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2877 parameter.
2878 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2879 (start_psymtab_common): Update.
2880 * symfile-debug.c (debug_qf_relocate): Remove.
2881 (debug_sym_quick_functions): Update.
2882 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2883 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2884 Update.
2885
2886 2018-07-26 Tom Tromey <tromey@redhat.com>
2887
2888 * dbxread.c (end_psymtab): Use text_high_valid and
2889 text_low_valid.
2890 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2891 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2892 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2893 Update comment.
2894 <text_low_valid, text_high_valid>: New fields.
2895 <set_text_low, set_text_high>: Update.
2896 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2897
2898 2018-07-26 Tom Tromey <tom@tromey.com>
2899
2900 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2901 Update.
2902 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2903 textlow and texthigh fields.
2904 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2905 Update.
2906 * mdebugread.c (parse_lines, parse_partial_symbols)
2907 (psymtab_to_symtab_1): Update.
2908 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2909 Rename fields. Update comment. Now private.
2910 <text_low, text_high, set_text_low, set_text_high>: New methods.
2911 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2912 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2913 (start_psymtab_common, maintenance_info_psymtabs)
2914 (maintenance_check_psymtabs): Update.
2915 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2916 texthigh fields.
2917 (scan_xcoff_symtab): Update.
2918
2919 2018-07-26 Tom Tromey <tromey@redhat.com>
2920
2921 * psympriv.h (struct partial_symbol) <unrelocated_address,
2922 address, set_address>: New methods.
2923 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2924 (fixup_psymbol_section, relocate_psymtabs): Update.
2925 (print_partial_symbols): Add 'objfile' parameter. Update.
2926 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2927 Update.
2928
2929 2018-07-26 Tom Tromey <tom@tromey.com>
2930
2931 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2932 (debug_names::write_psymbols): Update.
2933 * psympriv.h (struct partial_symbol): Derive from
2934 general_symbol_info.
2935 <obj_section>: New method.
2936 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2937 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2938 (find_pc_sect_psymbol, fixup_psymbol_section)
2939 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2940 (print_partial_symbols, recursively_search_psymtabs)
2941 (compare_psymbols, psymbol_hash, psymbol_compare)
2942 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2943 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2944
2945 2018-07-26 Tom Tromey <tromey@redhat.com>
2946
2947 * dbxread.c (end_psymtab): Remove dead code.
2948
2949 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2950
2951 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2952 DWARF unwinders are disabled.
2953 * dwarf2-frame.c: Add dwarf2read.h include.
2954 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2955 disabled.
2956 (dwarf2_frame_unwinders_enabled_p): Define.
2957 (show_dwarf_unwinders_enabled_p): New function.
2958 (_initialize_dwarf2_frame): Register switch to control DWARF
2959 unwinder use.
2960 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2961 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2962 (show_dwarf_cmdlist): Remove static keyword.
2963 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2964 (show_dwarf_cmdlist): Declare.
2965 * NEWS: Document new feature.
2966
2967 2018-07-26 Tom de Vries <tdevries@suse.de>
2968
2969 PR breakpoints/23366
2970 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2971
2972 2018-07-26 Tom de Vries <tdevries@suse.de>
2973
2974 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2975 DW_AT_count can't be translated to a dynamic prop.
2976
2977 2018-07-25 Tom de Vries <tdevries@suse.de>
2978
2979 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2980 try/catch.
2981
2982 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2983
2984 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2985
2986 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2987
2988 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2989
2990 2018-07-24 Keith Seitz <keiths@redhat.comt
2991
2992 PR symtab/23010
2993 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2994 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2995 instead of add_symbol_to_list.
2996 (read_file_scope): Call prepare_one_comp_unit before reading
2997 any other DIEs.
2998
2999 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3000
3001 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3002
3003 2018-07-24 Tom Tromey <tom@tromey.com>
3004
3005 * utils.c (malloc, realloc, free): Don't declare.
3006 * configure, config.in: Rebuild.
3007 * configure.ac: Don't check for declarations of free, malloc, or
3008 realloc.
3009
3010 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3011
3012 * aarch64-linux-nat.c
3013 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3014 variable.
3015 * arm-linux-nat.c (fetch_regs): Likewise.
3016 (store_regs): Likewise.
3017 (fetch_vfp_regs): Likewise.
3018 (store_vfp_regs): Likewise.
3019 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3020 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3021 (arm_linux_nat_target::insert_watchpoint): Likewise.
3022 (arm_linux_nat_target::remove_watchpoint): Likewise.
3023 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3024 Likewise.
3025 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3026 Likewise.
3027 * ppc-linux-nat.c (fetch_register): Likewise.
3028 (fetch_all_gp_regs): Likewise.
3029 (fetch_ppc_registers): Likewise.
3030 (store_all_gp_regs): Likewise.
3031 (store_ppc_registers): Likewise.
3032 (hwdebug_insert_point): Likewise.
3033 (can_use_watchpoint_cond_accel): Likewise.
3034 * remote-sim.c (gdb_os_write_stdout): Likewise.
3035
3036 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3037 Tom Tromey <tom@tromey.com>
3038
3039 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3040 test for it.
3041 * configure: Rebuild.
3042
3043 2018-07-22 Tom Tromey <tom@tromey.com>
3044
3045 * regformats/regdat.sh: Define xmltarget_${name} inside
3046 #ifndef IN_PROCESS_AGENT.
3047
3048 2018-07-22 Tom Tromey <tom@tromey.com>
3049
3050 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3051
3052 2018-07-22 Tom Tromey <tom@tromey.com>
3053
3054 * symfile.c (reread_symbols): Notify iter, not objfile.
3055
3056 2018-07-22 Tom Tromey <tom@tromey.com>
3057
3058 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3059 Use arch_ops.
3060 (ravenscar_thread_target::prepare_to_store): Likewise.
3061
3062 2018-07-22 Tom Tromey <tom@tromey.com>
3063
3064 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3065 unused variable. Call value_fetch_lazy when needed.
3066 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3067 Remove unused variable. Call value_fetch_lazy when needed.
3068
3069 2018-07-22 Tom Tromey <tom@tromey.com>
3070
3071 * m32c-tdep.c (mark_dma): Return void.
3072 (make_regs): Remove unused declarations.
3073
3074 2018-07-22 Tom Tromey <tom@tromey.com>
3075
3076 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3077 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3078 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3079 bkscm_get_valid_block_smob_arg_unsafe for effect.
3080
3081 2018-07-22 Tom Tromey <tom@tromey.com>
3082
3083 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3084 value_type.
3085
3086 2018-07-22 Tom Tromey <tom@tromey.com>
3087
3088 * windows-nat.c (saved_context): Conditionally define.
3089 * remote.c (remote_target::remote_btrace_maybe_reopen):
3090 Conditionally declare "warned".
3091 * inflow.c (sigquit_ours): Conditionally define.
3092 (new_tty): Move "tty" declaration inside #if.
3093 * guile/guile.c (guile_datadir): Conditionally define.
3094 * charset.c (set_be_le_names): Move some declarations inside #if.
3095 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3096 #if.
3097 (parse_xml_btrace_conf): Likewise.
3098
3099 2018-07-22 Tom Tromey <tom@tromey.com>
3100
3101 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3102
3103 2018-07-22 Tom Tromey <tom@tromey.com>
3104
3105 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3106 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3107 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3108 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3109 * stack.c (frame_apply_level_command): Remove unused variable.
3110 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3111 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3112 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3113 unused variable.
3114 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3115 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3116 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3117 variable.
3118 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3119 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3120 variable.
3121 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3122 Remove unused variable.
3123 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3124 variable.
3125 * common/tdesc.c (print_xml_feature::visit): Remove unused
3126 variable.
3127 * compile/compile-object-load.c (store_regs): Remove unused
3128 variables.
3129 * complaints.c (clear_complaints): Remove unused variable.
3130 * corelow.c (core_target_open): Remove unused variable.
3131 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3132 variable.
3133 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3134 variable.
3135 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3136 variable.
3137 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3138 variable.
3139 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3140 variable.
3141 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3142 variable.
3143 * ia64-tdep.c (examine_prologue): Remove unused variable.
3144 * infcall.c (run_inferior_call): Remove unused variable.
3145 * inferior.c (exit_inferior): Remove unused variable.
3146 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3147 * linespec.c (decode_line_2): Remove unused variable.
3148 * linux-nat.c (super_close): Remove.
3149 * linux-tdep.c (linux_info_proc): Remove unused variable.
3150 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3151 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3152 Remove unused variable.
3153 * parse.c (find_minsym_type_and_address): Remove unused variable.
3154 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3155 variable.
3156 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3157 variable.
3158 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3159 variables.
3160 * record-btrace.c (record_btrace_target::store_registers): Remove
3161 unused variable.
3162 (cmd_show_record_btrace_cpu): Remove unused variable.
3163 * riscv-tdep.c (riscv_register_reggroup_p)
3164 (riscv_push_dummy_call, riscv_return_value): Remove unused
3165 variable.
3166 * rust-exp.y (literal): Remove unused variable.
3167 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3168 unused variable.
3169 <STRUCTOP_ANONYMOUS>: Likewise.
3170 * s390-linux-tdep.c (s390_linux_init_abi_31)
3171 (s390_linux_init_abi_64): Remove unused variable.
3172 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3173 (file_select_thread, net_windows_open, _initialize_ser_windows):
3174 Remove unused variables.
3175 * symtab.c (find_pc_sect_line): Remove unused variable.
3176 * target-memory.c (compute_garbled_blocks): Remove unused
3177 variable.
3178 (target_write_memory_blocks): Remove unused variable.
3179 * target.c (target_stack::unpush): Remove unused variables.
3180 * tracepoint.c (start_tracing, all_tracepoint_actions)
3181 (merge_uploaded_trace_state_variables)
3182 (print_one_static_tracepoint_marker): Remove unused variable.
3183 * unittests/basic_string_view/element_access/char/1.cc (test01):
3184 Remove unused variable.
3185 * windows-nat.c (windows_continue, windows_add_all_dlls)
3186 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3187 Remove unused variables.
3188
3189 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3190
3191 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3192 attr_profile in HAVE_ELF.
3193 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3194 HAVE_ELF.
3195
3196 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3197
3198 * frame.c (frame_register_unwind): Change parameter name.
3199 (frame_unwind_register): Likewise.
3200 (frame_unwind_register_value): Likewise.
3201 (frame_unwind_register_signed): Likewise.
3202 (frame_unwind_register_unsigned): Likewise.
3203 * frame.h (frame_register_unwind): Likewise.
3204 (frame_unwind_register): Likewise.
3205 (frame_unwind_register_value): Likewise.
3206 (frame_unwind_register_signed): Likewise.
3207 (frame_unwind_register_unsigned): Likewise.
3208 (frame_unwind_arch): Likewise.
3209
3210 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3211
3212 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3213 ISA maintenance.
3214
3215 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3216
3217 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3218 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3219 hand.
3220
3221 2018-07-20 Keith Seitz <keiths@redhat.com>
3222
3223 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3224 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3225 m_compunit_symtab, m_language>: Add "m_" prefix.
3226 Update all uses.
3227 * buildsym.c: Update all uses.
3228
3229 2018-07-20 Tom Tromey <tom@tromey.com>
3230
3231 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3232 * buildsym.h (record_line_ftype): Remove typedef.
3233
3234 2018-07-20 Tom Tromey <tom@tromey.com>
3235
3236 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3237 (end_expandable_symtab): Likewise.
3238 (end_symtab_get_static_block): Likewise.
3239 (end_symtab_from_static_block): Likewise.
3240 * buildsym-legacy.c (augment_type_symtab): Remove.
3241 (end_expandable_symtab): Remove.
3242 (end_symtab_get_static_block): Remove.
3243 (end_symtab_from_static_block): Remove.
3244
3245 2018-07-20 Tom Tromey <tom@tromey.com>
3246
3247 * dwarf2read.c: Include buildsym.h.
3248 (struct dwarf2_cu) <builder>: New method.
3249 (fixup_go_packaging): Update.
3250 (process_full_comp_unit, process_full_type_unit): Update. Don't
3251 use scoped_free_pendings.
3252 (using_directives): Add "cu" parameter, remove "language".
3253 (read_import_statement, setup_type_unit_groups, )
3254 (read_func_scope, read_lexical_block_scope)
3255 (dwarf2_record_block_ranges, read_namespace): Update.
3256 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3257 (lnp_state_machine::handle_end_sequence): Update.
3258 (class lnp_state_machine) <m_cu>: New member.
3259 <m_record_line_callback>: Remove.
3260 <m_currently_recording_lines>: New member.
3261 (lnp_state_machine::handle_set_file): Update.
3262 (noop_record_line): Remove.
3263 (dwarf_record_line_p): Add cu parameter.
3264 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3265 (lnp_state_machine::record_line)
3266 (lnp_state_machine::lnp_state_machine)
3267 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3268 (dwarf_decode_lines): Update.
3269 (dwarf2_start_subfile): Add cu parameter.
3270 (dwarf2_start_symtab, new_symbol): Update.
3271 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3272 Remove dwarf2_per_objfile parameter.
3273 (dwarf_decode_macros): Update.
3274
3275 2018-07-20 Tom Tromey <tom@tromey.com>
3276
3277 * stabsread.c (define_symbol): Update.
3278 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3279 * dwarf2read.c (new_symbol): Update.
3280 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3281 * cp-namespace.c: Include buildsym.h.
3282 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3283 * buildsym-legacy.c (get_buildsym_compunit): New function.
3284
3285 2018-07-20 Tom Tromey <tom@tromey.com>
3286
3287 * xcoffread.c: Include buildsym-legacy.h.
3288 * windows-nat.c: Include buildsym-legacy.h.
3289 * stabsread.c: Include buildsym-legacy.h.
3290 * mdebugread.c: Include buildsym-legacy.h.
3291 * buildsym-legacy.h: New file.
3292 * buildsym-legacy.c: New file, from buildsym.c.
3293 * go32-nat.c: Include buildsym-legacy.h.
3294 * dwarf2read.c: Include buildsym-legacy.h.
3295 * dbxread.c: Include buildsym-legacy.h.
3296 * cp-namespace.c: Include buildsym-legacy.h.
3297 * coffread.c: Include buildsym-legacy.h.
3298 * buildsym.h: Move some contents to buildsym-legacy.h.
3299 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3300 buildsym-legacy.c.
3301 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3302
3303 2018-07-20 Tom Tromey <tom@tromey.com>
3304
3305 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3306 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3307 (buildsym_compunit::buildsym_compunit)
3308 (buildsym_compunit::~buildsym_compunit)
3309 (buildsym_compunit::get_macro_table): Define.
3310
3311 2018-07-20 Tom Tromey <tom@tromey.com>
3312
3313 * buildsym.c (reset_symtab_globals): Remove.
3314 (buildsym_compunit::end_symtab_from_static_block): Update.
3315 (buildsym_compunit::augment_type_symtab): Update.
3316 (end_symtab_from_static_block): Call free_buildsym_compunit.
3317 (augment_type_symtab, end_symtab, end_expandable_symtab):
3318 Likewise.
3319
3320 2018-07-20 Tom Tromey <tom@tromey.com>
3321
3322 * arch-utils.c: Do not include buildsym.h.
3323 * mipsread.c: Do not include buildsym.h.
3324 * machoread.c: Do not include buildsym.h.
3325 * elfread.c: Do not include buildsym.h.
3326
3327 2018-07-20 Tom Tromey <tom@tromey.com>
3328
3329 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3330 initialization.
3331 (buildsym_compunit): Add new constructor.
3332 (struct buildsym_compunit) <get_last_source_file, finish_block,
3333 record_block_range, start_subfile, patch_subfile_names,
3334 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3335 set_last_source_start_addr, get_last_source_start_addr,
3336 get_local_using_directives, set_local_using_directives,
3337 get_global_using_directives, outermost_context_p,
3338 get_current_context_stack, get_context_stack_depth,
3339 get_current_subfile, get_local_symbols, get_file_symbols,
3340 get_global_symbols, record_debugformat, record_producer,
3341 push_context, pop_context, end_symtab_get_static_block,
3342 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3343 New public methods.
3344 <record_pending_block, finish_block_internal, make_blockvector,
3345 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3346 private methods.
3347 Update all users.
3348
3349 2018-05-22 Tom Tromey <tom@tromey.com>
3350
3351 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3352 parameter.
3353 (finish_block_internal): Update.
3354
3355 2018-07-20 Tom Tromey <tom@tromey.com>
3356
3357 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3358 parameter.
3359 (finish_block_internal): Update.
3360
3361 2018-07-20 Tom Tromey <tom@tromey.com>
3362
3363 * buildsym.h (EXTERN): Don't define or undef.
3364 * buildsym.c (EXTERN): Don't define.
3365
3366 2018-07-20 Tom Tromey <tom@tromey.com>
3367
3368 * buildsym.c: Remove TODO comment.
3369
3370 2018-07-20 Tom Tromey <tom@tromey.com>
3371
3372 * coffread.c (coff_symtab_read): Update.
3373 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3374 (xcoff_new_init): Update.
3375 * mipsread.c (mipscoff_new_init): Update.
3376 * mdebugread.c (mdebug_build_psymtabs): Update.
3377 * elfread.c (elf_new_init): Update.
3378 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3379 Update.
3380 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3381 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3382 (stabsect_build_psymtabs): Update.
3383 * buildsym.h (buildsym_init): Don't declare.
3384 * buildsym.c: Update comment.
3385 (prepare_for_building): Remove.
3386 (start_symtab, restart_symtab): Update.
3387 (reset_symtab_globals): Update comment.
3388 (buildsym_init): Remove.
3389
3390 2018-07-20 Tom Tromey <tom@tromey.com>
3391
3392 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3393 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3394 (read_enum_type, common_block_start, common_block_end)
3395 (cleanup_undefined_types_1, finish_global_stabs): Update.
3396 * mdebugread.c (psymtab_to_symtab_1): Update.
3397 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3398 (read_lexical_block_scope, new_symbol): Update.
3399 * dbxread.c (process_one_symbol): Update.
3400 * coffread.c (coff_symtab_read, process_coff_symbol)
3401 (coff_read_enum_type): Update.
3402 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3403 declare.
3404 (get_local_symbols, get_file_symbols, get_global_symbols): New
3405 functions.
3406 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3407 m_global_symbols.
3408 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3409 (~scoped_free_pendings): Update.
3410 (finish_block, prepare_for_building, reset_symtab_globals)
3411 (end_symtab_get_static_block, end_symtab_with_blockvector)
3412 (augment_type_symtab, push_context): Update.
3413 (get_local_symbols, get_file_symbols, get_global_symbols): New
3414 functions.
3415 (buildsym_init): Update.
3416
3417 2018-07-20 Tom Tromey <tom@tromey.com>
3418
3419 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3420 (process_full_type_unit): Likewise.
3421 (dwarf2_start_symtab): Set list_in_scope.
3422
3423 2018-07-20 Tom Tromey <tom@tromey.com>
3424
3425 * dwarf2read.c (process_psymtab_comp_unit_reader)
3426 (build_type_psymtabs_reader): Do not set list_in_scope.
3427
3428 2018-07-20 Tom Tromey <tom@tromey.com>
3429
3430 * buildsym.c (free_pendings): Remove.
3431 (add_symbol_to_list, scoped_free_pendings)
3432 (finish_block_internal, buildsym_init): Update.
3433
3434 2018-07-20 Tom Tromey <tom@tromey.com>
3435
3436 * xcoffread.c (read_xcoff_symtab): Update.
3437 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3438 Update.
3439 * dbxread.c (process_one_symbol): Update.
3440 * coffread.c (coff_symtab_read): Update.
3441 * buildsym.h (finish_block): Update.
3442 * buildsym.c (finish_block): Remove "listhead" argument.
3443 (end_symtab_get_static_block): Update.
3444
3445 2018-07-20 Tom Tromey <tom@tromey.com>
3446
3447 * buildsym.h (class scoped_free_pendings): Remove constructor.
3448 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3449 method.
3450 <m_pending_block_obstack, m_pending_blocks>: New members.
3451 (pending_block_obstack, pending_blocks): Remove.
3452 (scoped_free_pendings::scoped_free_pendings): Default.
3453 (~scoped_free_pendings): Update.
3454 (free_pending_blocks): Remove.
3455 (finish_block_internal, record_pending_block, make_blockvector)
3456 (end_symtab_get_static_block, augment_type_symtab, push_context)
3457 (buildsym_init): Update.
3458
3459 2018-07-20 Tom Tromey <tom@tromey.com>
3460
3461 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3462 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3463 members.
3464 (pending_addrmap, pending_addrmap_obstack)
3465 (pending_addrmap_interesting): Remove.
3466 (scoped_free_pendings, record_block_range, make_blockvector)
3467 (prepare_for_building, reset_symtab_globals, buildsym_init):
3468 Update.
3469
3470 2018-07-20 Tom Tromey <tom@tromey.com>
3471
3472 * xcoffread.c (process_linenos): Update.
3473 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3474 * mdebugread.c (psymtab_to_symtab_1): Update.
3475 * dwarf2read.c (setup_type_unit_groups)
3476 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3477 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3478 * dbxread.c (process_one_symbol): Update.
3479 * coffread.c (coff_symtab_read, enter_linenos)
3480 (process_coff_symbol): Update.
3481 * buildsym.h (current_subfile): Don't declare.
3482 (get_current_subfile): Declare.
3483 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3484 member.
3485 (start_subfile, free_buildsym_compunit, push_subfile)
3486 (prepare_for_building, start_symtab): Update.
3487 (get_current_subfile): New function.
3488
3489 2018-07-20 Tom Tromey <tom@tromey.com>
3490
3491 * coffread.c (coff_symtab_read): Update.
3492 * xcoffread.c (read_xcoff_symtab): Update.
3493 * dwarf2read.c (new_symbol): Update.
3494 (read_func_scope, read_lexical_block_scope): Update.
3495 * dbxread.c (process_one_symbol): Update.
3496 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3497 (outermost_context_p): Remove macro.
3498 (outermost_context_p, get_current_context_stack)
3499 (get_context_stack_depth): Declare.
3500 (pop_context): Return struct context_stack.
3501 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3502 member.
3503 (context_stack_size): Remove.
3504 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3505 (prepare_for_building, end_symtab_get_static_block)
3506 (augment_type_symtab, push_context): Update.
3507 (pop_context): Return struct context_stack.
3508 (outermost_context_p, get_current_context_stack)
3509 (get_context_stack_depth): New functions.
3510 (buildsym_init): Update.
3511
3512 2018-07-20 Tom Tromey <tom@tromey.com>
3513
3514 * rust-exp.y: Now a pure parser. Update all rules.
3515 (%union): Move earlier.
3516 (current_parser, work_obstack): Remove globals.
3517 (rust_parser, ~rust_parser): Update.
3518 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3519 lex_character, lex_number, lex_string, lex_identifier,
3520 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3521 convert_name, convert_params_to_expression,
3522 convert_ast_to_expression, ast_basic_type, ast_operation,
3523 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3524 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3525 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3526 ast_array_type, ast_slice_type, ast_reference_type,
3527 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3528 (rust_parse): Update.
3529 (rustyyerror, rustyylex): Add parser parameter.
3530 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3531 (rust_lex_stringish_test, rust_lex_test_sequence)
3532 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3533 (rust_lex_test_push_back, rust_lex_tests): Update.
3534
3535 2018-07-19 Pedro Alves <palves@redhat.com>
3536
3537 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3538 gdb::unique_xmalloc_ptr.
3539 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3540 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3541 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3542 copy-initialization.
3543 * guile/scm-pretty-print.c (ppscm_print_children): Use
3544 gdb::unique_xmalloc_ptr instead of cleanups.
3545 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3546 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3547 gdb::unique_xmalloc_ptr.
3548 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3549 Adjust to use gdb::unique_xmalloc_ptr.
3550 * guile/scm-utils.c (extract_arg): Adjust.
3551 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3552 gdb::unique_xmalloc_ptr instead of a cleanup.
3553
3554 2018-07-19 Tom Tromey <tom@tromey.com>
3555
3556 * utils.c (do_value_free_to_mark)
3557 (make_cleanup_value_free_to_mark): Remove.
3558 * utils.h (make_cleanup_value_free_to_mark): Remove.
3559
3560 2018-07-19 Pedro Alves <palves@redhat.com>
3561
3562 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3563 forwarding reference.
3564
3565 2018-07-18 Pedro Alves <palves@redhat.com>
3566
3567 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3568 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3569 cleanup.
3570
3571 2018-07-18 Pedro Alves <palves@redhat.com>
3572
3573 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3574 exceptions.
3575 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3576 (gdbscm_wrap): New.
3577 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3578 directly instead of a cleanup.
3579 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3580 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3581 (vlscm_binop_gdbthrow): New, factored out from ...
3582 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3583 (vlscm_rich_compare): Use gdbscm_wrap.
3584 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3585 instead of a cleanup.
3586 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3587 cleanup.
3588 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3589 Use xfree directly instead of a cleanup.
3590 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3591 Adjust to use gdbscm_wrap and scoped_value_mark.
3592 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3593 (gdbscm_value_address, gdbscm_value_dereference)
3594 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3595 scoped_value_mark.
3596 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3597 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3598 scoped_value_mark.
3599 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3600 gdbscm_wrap and scoped_value_mark.
3601 (gdbscm_value_to_string): Use xfree directly instead of a
3602 cleanup. Move 'buffer' unique_ptr to TRY scope.
3603 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3604 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3605 scoped_value_mark.
3606 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3607 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3608 scoped_value_mark.
3609 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3610 gdbscm_wrap.
3611
3612 2018-07-18 Tom de Vries <tdevries@suse.de>
3613
3614 * findvar.c (default_read_var_value): Also resolve dynamic type for
3615 LOC_OPTIMIZED_OUT vars.
3616
3617 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3618
3619 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3620 decoding.
3621
3622 2018-07-17 Tom Tromey <tom@tromey.com>
3623
3624 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3625 (compute_enum_list, pascm_set_param_value_x)
3626 (gdbscm_parameter_value): Update.
3627 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3628 (gdbscm_scm_to_host_string): Update.
3629 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3630 Update.
3631 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3632 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3633 * guile/scm-string.c (gdbscm_scm_to_string): Return
3634 unique_xmalloc_ptr.
3635 (gdbscm_scm_to_host_string): Likewise.
3636
3637 2018-07-17 Tom Tromey <tom@tromey.com>
3638
3639 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3640 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3641 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3642 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3643 unique_xmalloc_ptr.
3644
3645 2018-07-17 Tom Tromey <tom@tromey.com>
3646
3647 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3648 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3649 Update.
3650 * guile/scm-cmd.c (cmdscm_function): Update.
3651 * guile/scm-pretty-print.c
3652 (ppscm_print_exception_unless_memory_error): Update.
3653 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3654 Return unique_xmalloc_ptr.
3655
3656 2018-07-17 Tom Tromey <tom@tromey.com>
3657
3658 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3659 Use string_printf.
3660
3661 2018-07-17 Jim Wilson <jimw@sifive.com>
3662
3663 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3664 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3665 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3666 unecessary braces after EF_RISCV_RVC test. Delete call to
3667 set_gdbarch_decr_pc_after_break.
3668
3669 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3670 RISCV_LAST_FP_REGNUM + 1.
3671 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3672
3673 2018-07-17 Tom Tromey <tom@tromey.com>
3674
3675 * configure.ac: Remove --disable-gdbcli.
3676 * configure: Rebuild.
3677 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3678 (SUBDIR_CLI_CFLAGS): Remove.
3679 (SFILES): Use SUBDIR_CLI_SRCS.
3680 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3681
3682 2018-07-17 Tom Tromey <tom@tromey.com>
3683
3684 PR gdb/18624:
3685 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3686
3687 2018-07-16 Jim Wilson <jimw@sifive.com>
3688
3689 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3690
3691 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3692
3693 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3694 variable.
3695 (libunwind_frame_sniffer): Likewise.
3696 (libunwind_frame_prev_register): Likewise.
3697 (libunwind_sigtramp_frame_sniffer): Likewise.
3698 * ia64-tdep.c (ia64_access_reg): Likewise.
3699 (ia64_access_rse_reg): Likewise.
3700 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3701 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3702
3703 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3704
3705 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3706
3707 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3708
3709 * remote-sim.c (gdbsim_target::close,
3710 gdbsim_target::mourn_inferior): Remove unused variables.
3711
3712 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3713
3714 * ia64-tdep.c (ktab_buf): New global.
3715 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3716 (get_kernel_table): Adjust.
3717
3718 2018-07-16 Tom Tromey <tom@tromey.com>
3719
3720 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3721 * dwarf2read.c (using_directives, new_symbol): Use
3722 outermost_context_p.
3723 * dbxread.c (process_one_symbol): Use outermost_context_p.
3724 * coffread.c (coff_symtab_read): Use outermost_context_p.
3725
3726 2018-07-16 Tom Tromey <tom@tromey.com>
3727
3728 * dwarf2read.c (using_directives, read_func_scope)
3729 (read_lexical_block_scope): Update.
3730 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3731 * buildsym.h (local_using_directives, global_using_directives):
3732 Don't declare.
3733 (get_local_using_directives, set_local_using_directives)
3734 (get_global_using_directives): Declare.
3735 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3736 m_global_using_directives>: New members.
3737 (finish_block_internal, prepare_for_building)
3738 (reset_symtab_globals, end_symtab_get_static_block)
3739 (push_context): Update.
3740 (get_local_using_directives, set_local_using_directives)
3741 (get_global_using_directives): New functions.
3742 (buildsym_init): Update.
3743
3744 2018-07-16 Tom Tromey <tom@tromey.com>
3745
3746 * xcoffread.c (xcoff_initial_scan): Don't call
3747 free_pending_blocks.
3748 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3749 * buildsym.h (class scoped_free_pendings): Add constructor.
3750 (free_pending_blocks): Don't declare.
3751 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3752 (free_pending_blocks): Now static.
3753
3754 2018-07-16 Tom Tromey <tom@tromey.com>
3755
3756 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3757 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3758 member.
3759 (struct subfile_stack): Remove.
3760 (subfile_stack): Remove.
3761 (push_subfile, pop_subfile, buildsym_init): Update.
3762
3763 2018-07-16 Tom Tromey <tom@tromey.com>
3764
3765 * buildsym.c (push_subfile): Use gdb_assert.
3766 (pop_subfile): Use gdb_assert.
3767
3768 2018-07-16 Tom Tromey <tom@tromey.com>
3769
3770 * buildsym.h (merge_symbol_lists): Remove.
3771 * buildsym.c (merge_symbol_lists): Remove.
3772
3773 2018-07-16 Tom Tromey <tom@tromey.com>
3774
3775 * stabsread.c (scan_file_globals): Update comment.
3776 * stabsread.h (scan_file_globals): Move from buildsym.h.
3777 * buildsym.h (scan_file_globals): Move to stabsread.h.
3778
3779 2018-07-16 Tom Tromey <tom@tromey.com>
3780
3781 * xcoffread.c (xcoff_new_init): Update.
3782 * mipsread.c (mipscoff_new_init): Update.
3783 * mdebugread.c (mdebug_build_psymtabs): Update.
3784 * elfread.c (elf_new_init): Update.
3785 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3786 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3787 * buildsym.h (buildsym_new_init): Don't declare.
3788 * buildsym.c (buildsym_new_init): Remove.
3789
3790 2018-07-16 Tom Tromey <tom@tromey.com>
3791
3792 * stabsread.h (within_function): Move from buildsym.h.
3793 * stabsread.c (start_stabs): Clear within_function.
3794 * coffread.c (coff_start_symtab): Clear within_function.
3795 * buildsym.h (within_function): Move to stabsread.h.
3796 * buildsym.c (prepare_for_building): Update.
3797
3798 2018-07-16 Tom Tromey <tom@tromey.com>
3799
3800 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3801 * dwarf2read.c (dwarf2_start_symtab): Don't set
3802 processing_gcc_compilation.
3803 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3804
3805 2018-07-16 Tom Tromey <tom@tromey.com>
3806
3807 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3808 (next_symbol_text_func): Move from buildsym.h.
3809 * stabsread.c (hashname): Move from buildsym.c.
3810 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3811 (next_symbol_text_func, hashname): Move to stabsread.h.
3812 * buildsym.c: Don't include bcache.h
3813 (hashname): Move to stasbread.c.
3814
3815 2018-07-16 Tom Tromey <tom@tromey.com>
3816
3817 * buildsym.h (context_stack_size): Don't declare.
3818 * buildsym.c (context_stack_size): New global.
3819
3820 2018-07-16 Tom Tromey <tom@tromey.com>
3821
3822 * dbxread.c (processing_acc_compilation): New global.
3823 * buildsym.h (processing_acc_compilation): Don't declare.
3824
3825 2018-07-16 Tom Tromey <tom@tromey.com>
3826
3827 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3828 * dbxread.c (read_ofile_symtab): Update.
3829 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3830 * buildsym.h (last_source_start_addr): Remove.
3831 (set_last_source_start_addr, get_last_source_start_addr):
3832 Declare.
3833 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3834 parameter.
3835 (struct buildsym_compunit) <m_last_source_start_addr>: New
3836 member.
3837 (prepare_for_building): Remove start_addr parameter.
3838 (start_symtab, restart_symtab, end_symtab_get_static_block)
3839 (end_symtab_with_blockvector): Update.
3840 (set_last_source_start_addr, get_last_source_start_addr): New
3841 functions.
3842
3843 2018-07-16 Tom Tromey <tom@tromey.com>
3844
3845 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3846 member.
3847 (have_line_numbers): Remove.
3848 (record_line, prepare_for_building, end_symtab_get_static_block)
3849 (augment_type_symtab): Update.
3850
3851 2018-07-16 Tom Tromey <tom@tromey.com>
3852
3853 * buildsym.c (~buildsym_compunit): Free the macro table.
3854 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3855 methods.
3856 <m_pending_macros>: New member.
3857 (pending_macros): Remove.
3858 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3859 (reset_symtab_globals, end_symtab_get_static_block)
3860 (end_symtab_with_blockvector, augment_type_symtab)
3861 (buildsym_init): Update.
3862
3863 2018-07-16 Tom Tromey <tom@tromey.com>
3864
3865 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3866 parameter.
3867 (buildsym_compunit::set_last_source_file): New method.
3868 <m_last_source_file>: New member.
3869 (prepare_for_building): Remove "name" parameter.
3870 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3871 (last_source_file): Remove.
3872 (set_last_source_file, get_last_source_file): Update.
3873
3874 2018-07-16 Tom Tromey <tom@tromey.com>
3875
3876 * buildsym.c (prepare_for_building): Add assert.
3877
3878 2018-07-16 Tom Tromey <tom@tromey.com>
3879
3880 * buildsym.c (~buildsym_compunit): Update.
3881 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3882 (start_subfile, patch_subfile_names)
3883 (end_symtab_with_blockvector): Update.
3884
3885 2018-07-16 Tom Tromey <tom@tromey.com>
3886
3887 * buildsym.c (struct buildsym_compunit): Add constructor,
3888 destructor, initializers.
3889 (start_buildsym_compunit): Remove.
3890 (free_buildsym_compunit): Use "delete".
3891 (start_symtab, restart_symtab): Use "new".
3892
3893 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3894
3895 * symfile.c (set_objfile_default_section_offset): Remove struct
3896 keyword.
3897
3898 2018-07-14 Stafford Horne <shorne@gmail.com>
3899
3900 * (Responsible Maintainers): Add myself as or1k maintainer.
3901
3902 2018-07-13 Tom Tromey <tom@tromey.com>
3903
3904 * symfile.c (set_objfile_default_section_offset): Use extra braces
3905 around initializer.
3906
3907 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3908
3909 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3910 non-branching basr.
3911
3912 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3913
3914 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3915 unittests/cli-utils-selftests.c
3916 * unittests/cli-utils-selftests.c: New file.
3917
3918 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3919
3920 * NEWS: Mention new commands. Mention change to 'thread apply'.
3921
3922 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3923
3924 * thread.c (thr_try_catch_cmd): New function.
3925 (thread_apply_all_command): Handle qcs flags.
3926 (thread_apply_command): Handle qcs flags.
3927 (taas_command): New function.
3928 (tfaas_command): New function.
3929 (_initialize_thread): Update to setup the new commands 'taas
3930 and 'tfaas'. Change doc string for 'thread apply'.
3931
3932 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3933
3934 * stack.c: (trailing_outermost_frame): New function, mostly
3935 extracted from backtrace_command_1.
3936 (leading_innermost_frame): New function.
3937 (backtrace_command_1): Update to call trailing_outermost_frame.
3938 (frame_apply_command_count): New function.
3939 (frame_apply_level_command): New function.
3940 (frame_apply_all_command): New function.
3941 (frame_apply_command): New function.
3942 (faas_command): New function.
3943 (frame_cmd_list): New variable.
3944 (_initialize_stack): Update to setup the new commands 'frame apply'
3945 and 'faas'.
3946
3947 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3948
3949 * cli-utils.c (number_or_range_parser::get_number): Only handle
3950 numbers or convenience var as numbers.
3951 (parse_flags): New function.
3952 (parse_flags_qcs): New function.
3953 (number_or_range_parser::finished): Ensure parsing end is detected
3954 before end of string.
3955 * cli-utils.h (parse_flags): New function.
3956 (parse_flags_qcs): New function.
3957 (number_or_range_parser): Remove m_finished bool.
3958 (number_or_range_parser::skip_range): Set m_in_range to false.
3959
3960 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3961
3962 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3963 on Windows.
3964
3965 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3966 Jan Kratochvil <jan.kratochvil@redhat.com>
3967 Paul Fertser <fercerpav@gmail.com>
3968 Tsutomu Seki <sekiriki@gmail.com>
3969 Pedro Alves <palves@redhat.com>
3970
3971 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3972 'unittests/parse-connection-spec-selftests.c'.
3973 (COMMON_SFILES): Add 'common/netstuff.c'.
3974 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3975 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3976 * common/netstuff.c: New file.
3977 * common/netstuff.h: New file.
3978 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3979 (wait_for_connect): Update comment. New parameter
3980 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3981 Use 'sock' directly instead of 'scb->fd'.
3982 (try_connect): New function, with code from 'net_open'.
3983 (net_open): Rewrite main loop to deal with multiple
3984 sockets/addresses. Handle IPv6-style hostnames; implement
3985 support for IPv6 connections.
3986 * unittests/parse-connection-spec-selftests.c: New file.
3987
3988 2018-07-11 Pedro Alves <palves@redhat.com>
3989
3990 PR gdb/23377
3991 * remote.c (remote_target::remote_detach_pid): Call
3992 set_current_process.
3993
3994 2018-07-11 Pedro Alves <palves@redhat.com>
3995
3996 * h8300-tdep.c (h8300_gdbarch_init): Remove
3997 set_gdbarch_ecoff_reg_to_regnum calls.
3998
3999 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4000
4001 PR c++/23373
4002 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4003 offsets/sizes for static members of a class/struct.
4004
4005 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4006
4007 * target-descriptions.c (tdesc_register_bitsize): Rename.
4008 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4009 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4010 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4011
4012 2018-07-10 Tom Tromey <tom@tromey.com>
4013
4014 * breakpoint.c (moribund_locations): Now static and a
4015 std::vector.
4016 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4017 (build_bpstat_chain, update_global_location_list)
4018 (breakpoint_retire_moribund): Update.
4019 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4020 VEC.
4021
4022 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4023
4024 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4025 (riscv_register_reggroup_p): Use new function, remove unneeded
4026 parenthesis.
4027 (riscv_push_dummy_call): Extend assert to compare against xlen or
4028 flen based on register type.
4029
4030 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4031
4032 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4033
4034 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4035
4036 * remote.c (show_hardware_watchpoint_limit): New function.
4037 (show_hardware_watchpoint_length_limit): New function.
4038 (show_hardware_breakpoint_limit): New function.
4039 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4040 where appropriate, update help text.
4041
4042 2018-07-09 Tom Tromey <tom@tromey.com>
4043
4044 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4045 (CLIBS): Don't mention NAT_CLIBS.
4046
4047 2018-07-09 Tom Tromey <tom@tromey.com>
4048
4049 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4050 (LIBGDB_OBS, clean mostlyclean): Update.
4051 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4052
4053 2018-07-09 Tom Tromey <tom@tromey.com>
4054
4055 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4056 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4057 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4058
4059 2018-07-09 Tom Tromey <tom@tromey.com>
4060
4061 * Makefile.in (ALLDEPFILES): Remove exec.c.
4062 (COMMON_OBS): Remove exec.o.
4063 (COMMON_SFILES): Add exec.c.
4064
4065 2018-07-09 Tom Tromey <tom@tromey.com>
4066
4067 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4068
4069 2018-07-09 Tom Tromey <tom@tromey.com>
4070
4071 * Makefile.in (clean mostlyclean): Remove stamp-version.
4072 (version.c): Depend on stamp-version.
4073 (stamp-version): New rule, from version.c rule.
4074
4075 2018-07-09 Tom Tromey <tom@tromey.com>
4076
4077 * Makefile.in (init.c): Depend on stamp-init.
4078 (stamp-init): New rule, from init.c rule.
4079 (clean mostlyclean): Remove stamp-init.
4080
4081 2018-07-09 Tom Tromey <tom@tromey.com>
4082
4083 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4084 SUBDIR_GCC_COMPILE_SRCS.
4085
4086 2018-07-09 Tom Tromey <tom@tromey.com>
4087
4088 * Makefile.in (init.c): Remove some unused sed rules.
4089
4090 2018-07-09 Tom Tromey <tom@tromey.com>
4091
4092 * Makefile.in (TSOBS): Remove.
4093 (INIT_FILES): Update.
4094 (LIBGDB_OBS): Update.
4095 (COMMON_SFILES): Add inflow.c.
4096 (SFILES): Remove inflow.c.
4097
4098 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4099
4100 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4101
4102 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4103
4104 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4105 get_saveloc_name, is_signal_frame_name, step_name,
4106 init_remote_name, create_addr_space_name,
4107 destroy_addr_space_name, search_unwind_table_name,
4108 find_dyn_list_name): Constify.
4109
4110 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4111
4112 * darwin-nat.c (darwin_pthread_kill): New function.
4113 (darwin_resume_thread): Use darwin_pthread_kill.
4114
4115 2018-07-05 Tom de Vries <tdevries@suse.de>
4116
4117 * macroexp.c (macro_buffer) <operator=>: New member function.
4118
4119 2018-07-04 Tom Tromey <tom@tromey.com>
4120
4121 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4122
4123 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4124
4125 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4126 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4127 * maint.c: Likewise.
4128 * top.c: Likewise.
4129
4130 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4131
4132 * NEWS: Create a new section for the next release branch.
4133 Rename the section of the current branch, now that it has
4134 been cut.
4135
4136 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4137
4138 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4139 * version.in: Bump version to 8.2.50.DATE-git.
4140
4141 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4142 Pedro Alves <palves@redhat.com>
4143
4144 * linux-nat.c (linux_init_ptrace): Rename to ...
4145 (linux_init_ptrace_procfs): ... this. Call
4146 linux_proc_init_warnings.
4147 (linux_nat_target::post_attach)
4148 (linux_nat_target::post_startup_inferior): Adjust.
4149 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4150 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4151
4152 2018-07-04 Tom de Vries <tdevries@suse.de>
4153
4154 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4155 check ...
4156 (read_comp_unit_head): ... here.
4157
4158 2018-07-03 Tom Tromey <tom@tromey.com>
4159
4160 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4161 (stop_tracing, tstatus_command)
4162 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4163 (print_one_static_tracepoint_marker): Update.
4164 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4165 std::vector.
4166 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4167 VEC.
4168 (all_tracepoints, static_tracepoints_here): Return std::vector.
4169
4170 2018-07-03 Tom Tromey <tom@tromey.com>
4171
4172 * common/ptid.c (ptid_equal): Remove.
4173 * common/ptid.h (ptid_equal): Don't declare.
4174 * ada-tasks.c: Update.
4175 * breakpoint.c: Update.
4176 * common/agent.c: Update.
4177 * corelow.c: Update.
4178 * darwin-nat-info.c: Update.
4179 * darwin-nat.c: Update.
4180 * dcache.c: Update.
4181 * dtrace-probe.c: Update.
4182 * dummy-frame.c: Update.
4183 * fbsd-nat.c: Update.
4184 * frame.c: Update.
4185 * gdbthread.h: Update.
4186 * gnu-nat.c: Update.
4187 * go32-nat.c: Update.
4188 * inf-loop.c: Update.
4189 * inf-ptrace.c: Update.
4190 * infcall.c: Update.
4191 * infcmd.c: Update.
4192 * inflow.c: Update.
4193 * infrun.c: Update.
4194 * linux-fork.c: Update.
4195 * linux-nat.c: Update.
4196 * linux-thread-db.c: Update.
4197 * mi/mi-cmd-var.c: Update.
4198 * mi/mi-interp.c: Update.
4199 * mi/mi-main.c: Update.
4200 * nto-procfs.c: Update.
4201 * ppc-linux-tdep.c: Update.
4202 * procfs.c: Update.
4203 * python/py-inferior.c: Update.
4204 * python/py-record-btrace.c: Update.
4205 * python/py-record.c: Update.
4206 * ravenscar-thread.c: Update.
4207 * regcache.c: Update.
4208 * remote-sim.c: Update.
4209 * remote.c: Update.
4210 * sol-thread.c: Update.
4211 * solib.c: Update.
4212 * target.c: Update.
4213 * tui/tui-stack.c: Update.
4214 * varobj.c: Update.
4215 * windows-nat.c: Update.
4216 * windows-tdep.c: Update.
4217
4218 2018-07-03 Tom Tromey <tom@tromey.com>
4219
4220 * common/ptid.c (ptid_match): Remove.
4221 * common/ptid.h (ptid_match): Don't declare.
4222 * fbsd-nat.c: Update.
4223 * infcmd.c: Update.
4224 * infrun.c: Update.
4225 * linux-nat.c: Update.
4226 * record-btrace.c: Update.
4227 * regcache.c: Update.
4228 * remote.c: Update.
4229
4230 2018-07-03 Tom Tromey <tom@tromey.com>
4231
4232 * common/ptid.c (ptid_tid_p): Remove.
4233 * common/ptid.h (ptid_tid_p): Don't declare.
4234 * sol-thread.c: Update.
4235
4236 2018-07-03 Tom Tromey <tom@tromey.com>
4237
4238 * common/ptid.c (ptid_lwp_p): Remove.
4239 * common/ptid.h (ptid_lwp_p): Don't declare.
4240 * fbsd-nat.c: Update.
4241 * linux-nat.c: Update.
4242 * nat/linux-procfs.c: Update.
4243 * nat/x86-linux-dregs.c: Update.
4244 * sol-thread.c: Update.
4245
4246 2018-07-03 Tom Tromey <tom@tromey.com>
4247
4248 * common/ptid.c (ptid_is_pid): Remove.
4249 * common/ptid.h (ptid_is_pid): Don't declare.
4250 * infrun.c: Update.
4251 * linux-nat.c: Update.
4252 * mi/mi-interp.c: Update.
4253 * remote.c: Update.
4254 * thread.c: Update.
4255
4256 2018-07-03 Tom Tromey <tom@tromey.com>
4257
4258 * common/ptid.c (ptid_get_tid): Remove.
4259 * common/ptid.h (ptid_get_tid): Don't declare.
4260 * ada-tasks.c: Update.
4261 * aix-thread.c: Update.
4262 * bsd-uthread.c: Update.
4263 * darwin-nat.c: Update.
4264 * fbsd-nat.c: Update.
4265 * i386-darwin-nat.c: Update.
4266 * infrun.c: Update.
4267 * linux-tdep.c: Update.
4268 * nto-procfs.c: Update.
4269 * ppc-ravenscar-thread.c: Update.
4270 * python/py-infthread.c: Update.
4271 * ravenscar-thread.c: Update.
4272 * sol-thread.c: Update.
4273 * sparc-ravenscar-thread.c: Update.
4274 * windows-nat.c: Update.
4275
4276 2018-07-03 Tom Tromey <tom@tromey.com>
4277
4278 * common/ptid.c (ptid_get_lwp): Remove.
4279 * common/ptid.h (ptid_get_lwp): Don't declare.
4280 * aarch64-linux-nat.c: Update.
4281 * ada-tasks.c: Update.
4282 * aix-thread.c: Update.
4283 * amd64-linux-nat.c: Update.
4284 * arm-linux-nat.c: Update.
4285 * corelow.c: Update.
4286 * fbsd-nat.c: Update.
4287 * fbsd-tdep.c: Update.
4288 * gnu-nat.c: Update.
4289 * i386-cygwin-tdep.c: Update.
4290 * i386-gnu-nat.c: Update.
4291 * i386-linux-nat.c: Update.
4292 * ia64-linux-nat.c: Update.
4293 * inf-ptrace.c: Update.
4294 * infrun.c: Update.
4295 * linux-fork.c: Update.
4296 * linux-nat.c: Update.
4297 * linux-tdep.c: Update.
4298 * linux-thread-db.c: Update.
4299 * mips-linux-nat.c: Update.
4300 * nat/aarch64-linux-hw-point.c: Update.
4301 * nat/aarch64-linux.c: Update.
4302 * nat/linux-btrace.c: Update.
4303 * nat/linux-osdata.c: Update.
4304 * nat/linux-procfs.c: Update.
4305 * nat/x86-linux-dregs.c: Update.
4306 * obsd-nat.c: Update.
4307 * ppc-fbsd-nat.c: Update.
4308 * ppc-linux-nat.c: Update.
4309 * procfs.c: Update.
4310 * python/py-infthread.c: Update.
4311 * ravenscar-thread.c: Update.
4312 * remote.c: Update.
4313 * s390-linux-nat.c: Update.
4314 * sol-thread.c: Update.
4315 * sol2-tdep.c: Update.
4316 * spu-linux-nat.c: Update.
4317 * x86-linux-nat.c: Update.
4318 * xtensa-linux-nat.c: Update.
4319
4320 2018-07-03 Tom Tromey <tom@tromey.com>
4321
4322 * common/ptid.c (ptid_get_pid): Remove.
4323 * common/ptid.h (ptid_get_pid): Don't declare.
4324 * aarch64-linux-nat.c: Update.
4325 * ada-lang.c: Update.
4326 * aix-thread.c: Update.
4327 * alpha-bsd-nat.c: Update.
4328 * amd64-fbsd-nat.c: Update.
4329 * amd64-linux-nat.c: Update.
4330 * arm-linux-nat.c: Update.
4331 * arm-nbsd-nat.c: Update.
4332 * auxv.c: Update.
4333 * break-catch-syscall.c: Update.
4334 * breakpoint.c: Update.
4335 * bsd-uthread.c: Update.
4336 * corelow.c: Update.
4337 * ctf.c: Update.
4338 * darwin-nat.c: Update.
4339 * fbsd-nat.c: Update.
4340 * fbsd-tdep.c: Update.
4341 * gcore.c: Update.
4342 * gnu-nat.c: Update.
4343 * hppa-nbsd-nat.c: Update.
4344 * hppa-obsd-nat.c: Update.
4345 * i386-fbsd-nat.c: Update.
4346 * ia64-linux-nat.c: Update.
4347 * inf-ptrace.c: Update.
4348 * infcmd.c: Update.
4349 * inferior.c: Update.
4350 * inferior.h: Update.
4351 * inflow.c: Update.
4352 * infrun.c: Update.
4353 * linux-fork.c: Update.
4354 * linux-nat.c: Update.
4355 * linux-tdep.c: Update.
4356 * linux-thread-db.c: Update.
4357 * m68k-bsd-nat.c: Update.
4358 * mi/mi-interp.c: Update.
4359 * mi/mi-main.c: Update.
4360 * mips-linux-nat.c: Update.
4361 * mips-nbsd-nat.c: Update.
4362 * mips64-obsd-nat.c: Update.
4363 * nat/aarch64-linux-hw-point.c: Update.
4364 * nat/aarch64-linux.c: Update.
4365 * nat/linux-btrace.c: Update.
4366 * nat/linux-osdata.c: Update.
4367 * nat/linux-procfs.c: Update.
4368 * nat/x86-linux-dregs.c: Update.
4369 * nto-procfs.c: Update.
4370 * obsd-nat.c: Update.
4371 * ppc-linux-nat.c: Update.
4372 * ppc-nbsd-nat.c: Update.
4373 * ppc-obsd-nat.c: Update.
4374 * proc-service.c: Update.
4375 * procfs.c: Update.
4376 * python/py-inferior.c: Update.
4377 * python/py-infthread.c: Update.
4378 * ravenscar-thread.c: Update.
4379 * record.c: Update.
4380 * remote-sim.c: Update.
4381 * remote.c: Update.
4382 * rs6000-nat.c: Update.
4383 * s390-linux-nat.c: Update.
4384 * sh-nbsd-nat.c: Update.
4385 * sol-thread.c: Update.
4386 * sparc-nat.c: Update.
4387 * sparc64-tdep.c: Update.
4388 * spu-linux-nat.c: Update.
4389 * spu-tdep.c: Update.
4390 * target-debug.h: Update.
4391 * target.c: Update.
4392 * thread.c: Update.
4393 * tid-parse.c: Update.
4394 * tracefile-tfile.c: Update.
4395 * vax-bsd-nat.c: Update.
4396 * windows-nat.c: Update.
4397 * x86-linux-nat.c: Update.
4398 * x86-nat.c: Update.
4399
4400 2018-07-03 Tom Tromey <tom@tromey.com>
4401
4402 * common/ptid.c (pid_to_ptid): Remove.
4403 * common/ptid.h (pid_to_ptid): Don't declare.
4404 * aix-thread.c: Update.
4405 * arm-linux-nat.c: Update.
4406 * common/ptid.c: Update.
4407 * common/ptid.h: Update.
4408 * corelow.c: Update.
4409 * ctf.c: Update.
4410 * darwin-nat.c: Update.
4411 * fbsd-nat.c: Update.
4412 * fork-child.c: Update.
4413 * gnu-nat.c: Update.
4414 * go32-nat.c: Update.
4415 * inf-ptrace.c: Update.
4416 * infcmd.c: Update.
4417 * inferior.c: Update.
4418 * infrun.c: Update.
4419 * linux-fork.c: Update.
4420 * linux-nat.c: Update.
4421 * nat/aarch64-linux-hw-point.c: Update.
4422 * nat/fork-inferior.c: Update.
4423 * nat/x86-linux-dregs.c: Update.
4424 * nto-procfs.c: Update.
4425 * obsd-nat.c: Update.
4426 * procfs.c: Update.
4427 * progspace.c: Update.
4428 * remote.c: Update.
4429 * rs6000-nat.c: Update.
4430 * s390-linux-nat.c: Update.
4431 * sol-thread.c: Update.
4432 * spu-linux-nat.c: Update.
4433 * target.c: Update.
4434 * top.c: Update.
4435 * tracefile-tfile.c: Update.
4436 * windows-nat.c: Update.
4437
4438 2018-07-03 Tom Tromey <tom@tromey.com>
4439
4440 * common/ptid.h (ptid_build): Don't declare.
4441 * common/ptid.c (ptid_build): Remove.
4442 * aix-thread.c: Update.
4443 * bsd-kvm.c: Update.
4444 * bsd-uthread.c: Update.
4445 * common/agent.c: Update.
4446 * common/ptid.c: Update.
4447 * common/ptid.h: Update.
4448 * corelow.c: Update.
4449 * darwin-nat.c: Update.
4450 * fbsd-nat.c: Update.
4451 * gnu-nat.c: Update.
4452 * linux-fork.c: Update.
4453 * linux-nat.c: Update.
4454 * linux-thread-db.c: Update.
4455 * nat/linux-osdata.c: Update.
4456 * nat/linux-procfs.c: Update.
4457 * nto-procfs.c: Update.
4458 * obsd-nat.c: Update.
4459 * proc-service.c: Update.
4460 * procfs.c: Update.
4461 * ravenscar-thread.c: Update.
4462 * remote-sim.c: Update.
4463 * remote.c: Update.
4464 * sol-thread.c: Update.
4465 * target.c: Update.
4466 * windows-nat.c: Update.
4467
4468 2018-07-03 Tom Tromey <tom@tromey.com>
4469
4470 * infrun.c (follow_exec): Use exit_inferior_silent.
4471 * inferior.c (exit_inferior_num_silent): Remove.
4472 * inferior.h (exit_inferior_num_silent): Don't declare.
4473
4474 2018-07-03 Tom Tromey <tom@tromey.com>
4475
4476 PR cli/23340:
4477 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4478 inferior_ptid on error.
4479
4480 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4481 Simon Marchi <simon.marchi@polymtl.ca>
4482
4483 PR tdep/8282
4484 * disasm.h (gdb_disassembler): Add
4485 `m_disassembler_options_holder'. member
4486 * disasm.c (get_all_disassembler_options): New function.
4487 (gdb_disassembler::gdb_disassembler): Use it.
4488 (gdb_buffered_insn_length_init_dis): Likewise.
4489 (gdb_buffered_insn_length): Adjust accordingly.
4490 (set_disassembler_options): Handle options with arguments.
4491 (show_disassembler_options_sfunc): Likewise. Add a leading new
4492 line if showing options with descriptions.
4493 (disassembler_options_completer): Adapt to using the
4494 `disasm_options_and_args_t' structure.
4495 * mips-tdep.c (mips_disassembler_options): New variable.
4496 (mips_disassembler_options_o32): Likewise.
4497 (mips_disassembler_options_n32): Likewise.
4498 (mips_disassembler_options_n64): Likewise.
4499 (gdb_print_insn_mips): Don't set `disassembler_options'.
4500 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4501 functions.
4502 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4503 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4504 `gdbarch_disassembler_options_implicit' and
4505 `gdbarch_valid_disassembler_options'.
4506 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4507 `disasm_options_and_args_t' structure.
4508 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4509 method.
4510 (valid_disassembler_options): Switch from `disasm_options_t' to
4511 the `disasm_options_and_args_t' structure.
4512 * NEWS: Document `set disassembler-options' support for the MIPS
4513 target.
4514 * gdbarch.h: Regenerate.
4515 * gdbarch.c: Regenerate.
4516
4517 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4518
4519 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4520
4521 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4522
4523 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4524 parameter in call to amd64_target_description.
4525 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4526 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4527 (amd64fbsd_init_abi): Likewise.
4528 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4529 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4530 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4531 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4532
4533 2018-06-29 Pedro Alves <palves@redhat.com>
4534
4535 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4536 "segments" parameter.
4537 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4538 (_initialize_amd64_tdep): Update call to
4539 amd64_create_target_description.
4540 (amd64_target_description): Add "segments" parameter. Adjust
4541 the implementation to use it.
4542 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4543 call to amd64_create_target_description.
4544 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4545 * gdb/arch/amd64.h (amd64_create_target_description): Add
4546 "segments" register.
4547 * gdb/arch/amd64.c (amd64_create_target_description): Add
4548 "segments" parameter. Call create_feature_i386_64bit_segments
4549 only if SEGMENTS is true.
4550 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4551 call to amd64_create_target_description.
4552
4553 2018-06-29 Pedro Alves <palves@redhat.com>
4554
4555 * thread.c (thread_target_id_str): New, factored out from ...
4556 (print_thread_info_1): ... here. Use it to compute the max
4557 "Target Id" column width.
4558
4559 2018-06-29 Pedro Alves <palves@redhat.com>
4560
4561 * remote.c (remote_target::extra_thread_info): Delete
4562 'display_buf' and 'n' locals. from the cache, regardless of
4563 packet mechanims is in use. Use cache for qThreadExtra and qP
4564 methods too.
4565
4566 2018-06-29 Pedro Alves <palves@redhat.com>
4567
4568 * blockframe.c (find_pc_sect_containing_function): New function.
4569 * breakpoint.c (print_breakpoint_location): Don't call
4570 find_pc_sect_function.
4571 * linespec.c (create_sals_line_offset): Record the location's
4572 symbol in the sal.
4573 * linespec.c (convert_address_location_to_sals): Fill in sal's
4574 symbol with find_pc_sect_containing_function.
4575 * symtab.c (find_function_start_sal): Rename to ...
4576 (find_function_start_sal_1): ... this.
4577 (find_function_start_sal): Reimplement as wrapper around
4578 find_function_start_sal_1, and use
4579 find_pc_sect_containing_function to fill in the sal's symbol.
4580 (find_function_start_sal(symbol*, bool)): Adjust.
4581 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4582 comments.
4583 (find_pc_sect_containing_function): Declare.
4584
4585 2018-06-29 Pedro Alves <palves@redhat.com>
4586
4587 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4588 true if the the location has no symbol.
4589
4590 2018-06-28 Tom Tromey <tom@tromey.com>
4591
4592 * NEWS: Mention --enable-codesign.
4593 * silent-rules.mk (ECHO_SIGN): New variable.
4594 * configure.ac: Add --enable-codesign.
4595 * configure: Rebuild.
4596 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4597 (gdb$(EXEEXT)): Optionally invoke codesign.
4598
4599 2018-06-28 Pedro Alves <palves@redhat.com>
4600
4601 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4602 comments.
4603 (switch_to_thread_no_regs): Adjust comment.
4604 * infcmd.c (stop_pc): Delete.
4605 (post_create_inferior, info_program_command): Replace references
4606 to stop_pc with references to thread_info->suspend.stop_pc.
4607 * inferior.h (stop_pc): Delete declaration.
4608 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4609 (handle_inferior_event_1, handle_signal_stop)
4610 (process_event_stop_test, keep_going_stepped_thread)
4611 (handle_step_into_function, handle_step_into_function_backward)
4612 (print_stop_location): Replace references to stop_pc with
4613 references to thread_info->suspend.stop_pc.
4614 (struct infcall_suspend_state) <stop_pc>: Delete field.
4615 (save_infcall_suspend_state, restore_infcall_suspend_state):
4616 Remove references to inf_stat->stop_pc.
4617 * linux-fork.c (fork_load_infrun_state): Likewise.
4618 * record-btrace.c (record_btrace_set_replay): Likewise.
4619 * record-full.c (record_full_goto_entry): Likewise.
4620 * remote.c (print_one_stopped_thread): Likewise.
4621 * target.c (target_resume): Extend comment.
4622 * thread.c (set_executing_thread): New.
4623 (set_executing): Use it.
4624 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4625 Remove references to stop_pc.
4626
4627 2018-06-28 Pedro Alves <palves@redhat.com>
4628
4629 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4630 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4631
4632 2018-06-28 Tom Tromey <tom@tromey.com>
4633
4634 * coffread.c (coff_symfile_finish): Update.
4635 * xcoffread.c (xcoff_symfile_finish): Update.
4636 * elfread.c (elf_symfile_finish): Update.
4637 * symfile.h (dwarf2_free_objfile): Don't declare.
4638 * dwarf2read.c (_initialize_dwarf2_read): Use
4639 register_objfile_data_with_cleanup.
4640 (dwarf2_free_objfile): Now static. Change signature.
4641
4642 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4643
4644 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4645 option "-o" to add-symbol-file-load to add an offset to each
4646 section's load address.
4647 * symfile.c (set_objfile_default_section_offset): New function.
4648
4649 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4650
4651 * symfile.c (add_symbol_file_command): Make sure that sections
4652 with the same name are sorted in the same order.
4653
4654 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4655
4656 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4657 require the second argument. If omitted, load sections at the
4658 addresses specified in the file.
4659
4660 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4661
4662 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4663 (_initialize_symfile): Add option "-o" to symbol-file to add an
4664 offset to each section of the symbol file.
4665
4666 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4667
4668 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4669
4670 2018-06-27 Tom Tromey <tom@tromey.com>
4671
4672 * stack.c (_initialize_stack): Update "func" help text.
4673
4674 2018-06-27 Tom Tromey <tom@tromey.com>
4675
4676 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4677 std::vector.
4678 (unwind_infopy_str, pyuw_create_unwind_info)
4679 (unwind_infopy_add_saved_register, pyuw_sniffer)
4680 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4681 Update.
4682 (struct saved_reg): Add constructor.
4683 <value>: Now a gdbpy_ref<>.
4684
4685 2018-06-27 Tom Tromey <tom@tromey.com>
4686
4687 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4688
4689 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4690
4691 * gdb-gdb.py.in: Format using autopep8.
4692
4693 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4694
4695 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4696 (type_lookup_function): Recognize CORE_ADDR values.
4697
4698 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4699
4700 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4701 print tag_name.
4702
4703 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4704
4705 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4706 <__lt__>: Add.
4707
4708 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4709
4710 * gdb-gdb.py: Move to...
4711 * gdb-gdb.py.in: ... here.
4712 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4713 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4714 dependencies.
4715 (distclean): Remove gdb-gdb.py when cleaning.
4716 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4717 * configure: Re-generate.
4718
4719 2018-06-27 Pedro Alves <palves@redhat.com>
4720
4721 * proc-service.c (get_ps_regcache): New.
4722 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4723 (ps_lsetfpregs): Use it.
4724
4725 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4726
4727 PR gdb/21695
4728 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4729 (dwarf_decode_lines_1): Adjust.
4730
4731 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4732
4733 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4734 override.
4735 <info_proc>: Likewise.
4736
4737 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4738
4739 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4740 to windows_fetch_one_register, and only handle the case of
4741 fetching one register. Move the code that reloads the context
4742 and iterates over all registers if R is negative to...
4743 (windows_nat_target::fetch_registers): ... here.
4744 (do_windows_store_inferior_registers): Rename to
4745 windows_store_one_register, and only handle the case of storing
4746 one register. Move the code that handles the case where r is
4747 negative to...
4748 (windows_nat_target::store_registers) ... here.
4749
4750 2018-06-26 Tom Tromey <tom@tromey.com>
4751
4752 PR rust/22574:
4753 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4754 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4755 Update.
4756 (rust_internal_print_type): Add podata parameter.
4757 (rust_print_type): Update.
4758
4759 2018-06-26 Tom Tromey <tom@tromey.com>
4760
4761 * typeprint.h (struct print_offset_data) <update, finish,
4762 maybe_print_hole>: New methods.
4763 <indentation>: New constant.
4764 * typeprint.c (print_offset_data::indentation): Define.
4765 (print_offset_data::maybe_print_hole, print_offset_data::update)
4766 (print_offset_data::finish): Move from c-typeprint.c and rename.
4767 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4768 (print_spaces_filtered_with_print_options): Update.
4769 (c_print_type_union_field_offset, maybe_print_hole)
4770 (c_print_type_struct_field_offset): Move to typeprint.c and
4771 rename.
4772 (c_type_print_base_struct_union): Update.
4773
4774 2018-06-25 Pedro Alves <palves@redhat.com>
4775
4776 * gdbthread.h (thread_info_ref, delete_thread)
4777 (delete_thread_silent, first_thread_of_inferior)
4778 (any_thread_of_inferior, switch_to_thread)
4779 (enable_thread_stack_temporaries)
4780 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4781 (get_last_thread_stack_temporary)
4782 (value_in_thread_stack_temporaries, can_access_registers_thread):
4783 Spell out "struct thread_info" instead of just "thread_info".
4784 * inferior.h (notice_new_inferior): Likewise.
4785
4786 2018-06-25 Pedro Alves <palves@redhat.com>
4787
4788 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4789 pass thread_info pointer to delete_thread.
4790 (windows_nat_target::detach): Pass inferior pointer to
4791 detach_inferior.
4792 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4793 delete_thread.
4794 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4795 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4796 and pass a thread_info pointer to delete_thread.
4797 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4798 pass thread_info pointer to delete_thread.
4799 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4800 delete_thread_silent call.
4801 * procfs.c (procfs_target::detach): Pass inferior pointer to
4802 detach_inferior.
4803 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4804 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4805 delete_thread_silent call.
4806 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4807 pass thread_info pointer to delete_thread.
4808 (windows_nat_target::detach): Pass inferior pointer to
4809 delete_inferior.
4810
4811 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4812
4813 * regcache.c (readable_regcache::read_part): Fix asserts.
4814 (reg_buffer::raw_collect_part): New function.
4815 (regcache::write_part): Fix asserts.
4816 (reg_buffer::raw_supply_part): New function.
4817 (regcache::transfer_regset_register): New helper function.
4818 (regcache::transfer_regset): Call new functions.
4819 (regcache_supply_regset): Use gdb_byte*.
4820 (regcache::supply_regset): Likewise.
4821 (regcache_collect_regset): Likewise.
4822 (regcache::collect_regset): Likewise.
4823 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4824 (reg_buffer::raw_supply_part): Likewise.
4825 (regcache::transfer_regset_register): Likewise.
4826 (regcache::transfer_regset): Use gdb_byte*.
4827
4828 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4829
4830 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4831
4832 2018-06-21 Pedro Alves <palves@redhat.com>
4833
4834 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4835 instead of a ptid_t. All callers adjusted.
4836 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4837 adjusted.
4838 (print_ada_task_info, display_current_task_id, task_command_1):
4839 Adjust.
4840 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4841 inferior_thread.
4842 (breakpoint_kind): Adjust.
4843 (remove_breakpoints_pid): Rename to ...
4844 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4845 pointer. All callers adjusted.
4846 (bpstat_clear_actions): Use inferior_thread.
4847 (get_bpstat_thread): New.
4848 (bpstat_do_actions): Use it.
4849 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4850 to take a thread_info pointer. All callers adjusted.
4851 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4852 (breakpoint_re_set_thread): Use inferior_thread.
4853 * breakpoint.h (struct inferior): Forward declare.
4854 (bpstat_stop_status): Update.
4855 (remove_breakpoints_pid): Delete.
4856 (remove_breakpoints_inf): New.
4857 * bsd-uthread.c (bsd_uthread_target::wait)
4858 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4859 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4860 (maint_btrace_packet_history_cmd)
4861 (maint_btrace_clear_packet_history_cmd): Adjust.
4862 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4863 inferior_thread.
4864 * cli/cli-interp.c: Include "inferior.h".
4865 * common/refcounted-object.h (struct
4866 refcounted_object_ref_policy): New.
4867 * compile/compile-object-load.c: Include gdbthread.h.
4868 (store_regs): Use inferior_thread.
4869 * corelow.c (core_target::close): Use current_inferior.
4870 (core_target_open): Adjust to use first_thread_of_inferior and use
4871 the current inferior.
4872 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4873 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4874 <thread>: ... this new field. All references adjusted.
4875 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4876 Take a thread_info pointer instead of a ptid_t.
4877 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4878 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4879 thread_info pointer instead of a ptid_t.
4880 * elfread.c: Include "inferior.h".
4881 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4882 Use inferior_thread.
4883 * eval.c (evaluate_subexp): Likewise.
4884 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4885 inferior_thread.
4886 * gdb_proc_service.h (struct thread_info): Forward declare.
4887 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4888 <thread>: ... this new field. All references adjusted.
4889 * gdbarch.h, gdbarch.c: Regenerate.
4890 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4891 'thread' parameter. All implementations and callers adjusted.
4892 * gdbthread.h (thread_info) <set_running>: New method.
4893 (delete_thread, delete_thread_silent): Take a thread_info pointer
4894 instead of a ptid.
4895 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4896 (first_thread_of_process): Delete, replaced by ...
4897 (first_thread_of_inferior): ... this new function. All callers
4898 adjusted.
4899 (any_live_thread_of_process): Delete, replaced by ...
4900 (any_live_thread_of_inferior): ... this new function. All callers
4901 adjusted.
4902 (switch_to_thread, switch_to_no_thread): Declare.
4903 (is_executing): Delete.
4904 (enable_thread_stack_temporaries): Update comment.
4905 <enable_thread_stack_temporaries>: Take a thread_info pointer
4906 instead of a ptid_t. Incref the thread.
4907 <~enable_thread_stack_temporaries>: Decref the thread.
4908 <m_ptid>: Delete
4909 <m_thr>: New.
4910 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4911 (get_last_thread_stack_temporary)
4912 (value_in_thread_stack_temporaries, can_access_registers_thread):
4913 Take a thread_info pointer instead of a ptid_t. All callers
4914 adjusted.
4915 * infcall.c (get_call_return_value): Use inferior_thread.
4916 (run_inferior_call): Work with thread pointers instead of ptid_t.
4917 (call_function_by_hand_dummy): Work with thread pointers instead
4918 of ptid_t. Use thread_info_ref.
4919 * infcmd.c (proceed_thread_callback): Access thread's state
4920 directly.
4921 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4922 access thread's state directly.
4923 (continue_command): Use inferior_thread.
4924 (info_program_command): Use find_thread_ptid and access thread
4925 state directly.
4926 (proceed_after_attach_callback): Use thread state directly.
4927 (notice_new_inferior): Take a thread_info pointer instead of a
4928 ptid_t. All callers adjusted.
4929 (exit_inferior): Take an inferior pointer instead of a pid. All
4930 callers adjusted.
4931 (exit_inferior_silent): New.
4932 (detach_inferior): Delete.
4933 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4934 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4935 (detach_inferior_command, kill_inferior_command): Use
4936 find_inferior_id instead of valid_gdb_inferior_id and
4937 gdb_inferior_id_to_pid.
4938 (inferior_command): Use inferior and thread pointers.
4939 * inferior.h (struct thread_info): Forward declare.
4940 (notice_new_inferior): Take a thread_info pointer instead of a
4941 ptid_t. All callers adjusted.
4942 (detach_inferior): Delete declaration.
4943 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4944 instead of a pid. All callers adjusted.
4945 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4946 (valid_gdb_inferior_id): Delete.
4947 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4948 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4949 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4950 ...
4951 <inf>: ... this new field.
4952 <step_ptid>: Delete, replaced by ...
4953 <step_thread>: ... this new field.
4954 (get_displaced_stepping_state): Take an inferior pointer instead
4955 of a pid. All callers adjusted.
4956 (displaced_step_in_progress_any_inferior): Adjust.
4957 (displaced_step_in_progress_thread): Take a thread pointer instead
4958 of a ptid_t. All callers adjusted.
4959 (displaced_step_in_progress, add_displaced_stepping_state): Take
4960 an inferior pointer instead of a pid. All callers adjusted.
4961 (get_displaced_step_closure_by_addr): Adjust.
4962 (remove_displaced_stepping_state): Take an inferior pointer
4963 instead of a pid. All callers adjusted.
4964 (displaced_step_prepare_throw, displaced_step_prepare)
4965 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4966 All callers adjusted.
4967 (start_step_over): Adjust.
4968 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4969 displaced step queue.
4970 (do_target_resume): Adjust.
4971 (fetch_inferior_event): Use inferior_thread.
4972 (context_switch, get_inferior_stop_soon): Take an
4973 execution_control_state pointer instead of a ptid_t. All callers
4974 adjusted.
4975 (switch_to_thread_cleanup): Delete.
4976 (stop_all_threads): Use scoped_restore_current_thread.
4977 * inline-frame.c: Include "gdbthread.h".
4978 (inline_state) <inline_state>: Take a thread pointer instead of a
4979 ptid_t. All callers adjusted.
4980 <ptid>: Delete, replaced by ...
4981 <thread>: ... this new field.
4982 (find_inline_frame_state): Take a thread pointer instead of a
4983 ptid_t. All callers adjusted.
4984 (skip_inline_frames, step_into_inline_frame)
4985 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4986 pointer instead of a ptid_t. All callers adjusted.
4987 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4988 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4989 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4990 pointers directly.
4991 * linux-nat.c (get_detach_signal): Likewise.
4992 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4993 (thread_db_notice_clone): Adjust.
4994 (thread_db_find_new_threads_silently)
4995 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4996 a thread pointer instead of a ptid_t. All callers adjusted.
4997 * mi/mi-cmd-var.c: Include "inferior.h".
4998 (mi_cmd_var_update_iter): Update to use thread pointers.
4999 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5000 inferior directly.
5001 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5002 out to ...
5003 (mi_output_running): ... this new function.
5004 (mi_on_resume_1): Adjust to use it.
5005 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5006 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5007 directly.
5008 (interrupt_thread_callback): : Adjust to use thread and inferior
5009 pointers.
5010 * proc-service.c: Include "gdbthread.h".
5011 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5012 * progspace-and-thread.c: Include "inferior.h".
5013 * progspace.c: Include "inferior.h".
5014 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5015 hold a reference to an inferior_object.
5016 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5017 inferior_thread.
5018 * python/py-inferior.c (struct inferior_object): Give the type a
5019 tag name instead of a typedef.
5020 (python_on_normal_stop): No need to check if the current thread is
5021 listed.
5022 (inferior_to_inferior_object): Change return type to
5023 inferior_object. All callers adjusted.
5024 (find_thread_object): Delete, bits factored out to ...
5025 (thread_to_thread_object): ... this new function.
5026 * python/py-infthread.c (create_thread_object): Use
5027 inferior_to_inferior_object.
5028 (thpy_is_stopped): Use thread pointer directly.
5029 (gdbpy_selected_thread): Use inferior_thread.
5030 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5031 field, replaced with ...
5032 <thread>: ... this new field. All users adjusted.
5033 (btpy_insn_or_gap_new): Drop const.
5034 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5035 callers adjusted.
5036 * python/py-record.c: Include "gdbthread.h".
5037 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5038 a ptid_t. All callers adjusted.
5039 (gdbpy_current_recording): Use inferior_thread.
5040 * python/py-record.h (recpy_record_object) <ptid>: Delete
5041 field, replaced with ...
5042 <thread>: ... this new field. All users adjusted.
5043 (recpy_element_object) <ptid>: Delete
5044 field, replaced with ...
5045 <thread>: ... this new field. All users adjusted.
5046 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5047 a ptid_t. All callers adjusted.
5048 * python/py-threadevent.c: Include "gdbthread.h".
5049 (get_event_thread): Use thread_to_thread_object.
5050 * python/python-internal.h (struct inferior_object): Forward
5051 declare.
5052 (find_thread_object, find_inferior_object): Delete declarations.
5053 (thread_to_thread_object, inferior_to_inferior_object): New
5054 declarations.
5055 * record-btrace.c: Include "inferior.h".
5056 (require_btrace_thread): Use inferior_thread.
5057 (record_btrace_frame_sniffer)
5058 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5059 (get_thread_current_frame): Use scoped_restore_current_thread and
5060 switch_to_thread.
5061 (get_thread_current_frame): Use thread pointer directly.
5062 (record_btrace_replay_at_breakpoint): Use thread's inferior
5063 pointer directly.
5064 * record-full.c: Include "inferior.h".
5065 * regcache.c: Include "gdbthread.h".
5066 (get_thread_arch_regcache): Use the inferior's address space
5067 directly.
5068 (get_thread_regcache, registers_changed_thread): New.
5069 * regcache.h (get_thread_regcache(thread_info *thread)): New
5070 overload.
5071 (registers_changed_thread): New.
5072 (remote_target) <remote_detach_1>: Swap order of parameters.
5073 (remote_add_thread): <remote_add_thread>: Return the new thread.
5074 (get_remote_thread_info(ptid_t)): New overload.
5075 (remote_target::remote_notice_new_inferior): Use thread pointers
5076 directly.
5077 (remote_target::process_initial_stop_replies): Use
5078 thread_info::set_running.
5079 (remote_target::remote_detach_1, remote_target::detach)
5080 (extended_remote_target::detach): Adjust.
5081 * stack.c (frame_show_address): Use inferior_thread.
5082 * target-debug.h (target_debug_print_thread_info_pp): New.
5083 * target-delegates.c: Regenerate.
5084 * target.c (default_thread_address_space): Delete.
5085 (memory_xfer_partial_1): Use current_inferior.
5086 (target_detach): Use current_inferior.
5087 (target_thread_address_space): Delete.
5088 (generic_mourn_inferior): Use current_inferior.
5089 * target.h (struct target_ops) <thread_address_space>: Delete.
5090 (target_thread_address_space): Delete.
5091 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5092 pointers directly.
5093 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5094 thread pointer instead of a ptid_t. Adjust all callers.
5095 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5096 (first_thread_of_process): Delete, replaced by ...
5097 (first_thread_of_inferior): ... this new function. All callers
5098 adjusted.
5099 (any_thread_of_process): Rename to ...
5100 (any_thread_of_inferior): ... this, and take an inferior pointer.
5101 (any_live_thread_of_process): Rename to ...
5102 (any_live_thread_of_inferior): ... this, and take an inferior
5103 pointer.
5104 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5105 (value_in_thread_stack_temporaries)
5106 (get_last_thread_stack_temporary): Take a thread pointer instead
5107 of a ptid_t. Adjust all callers.
5108 (thread_info::set_running): New.
5109 (validate_registers_access): Use inferior_thread.
5110 (can_access_registers_ptid): Rename to ...
5111 (can_access_registers_thread): ... this, and take a thread
5112 pointer.
5113 (print_thread_info_1): Adjust to compare thread pointers instead
5114 of ptids.
5115 (switch_to_no_thread, switch_to_thread): Make extern.
5116 (scoped_restore_current_thread::~scoped_restore_current_thread):
5117 Use m_thread pointer directly.
5118 (scoped_restore_current_thread::scoped_restore_current_thread):
5119 Use inferior_thread.
5120 (thread_command): Use thread pointer directly.
5121 (thread_num_make_value_helper): Use inferior_thread.
5122 * top.c (execute_command): Use inferior_thread.
5123 * tui/tui-interp.c: Include "inferior.h".
5124 * varobj.c (varobj_create): Use inferior_thread.
5125 (value_of_root_1): Use find_thread_global_id instead of
5126 global_thread_id_to_ptid.
5127
5128 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5129
5130 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5131 possible.
5132 (regcache::write_part): Likewise.
5133 (readable_regcache::cooked_read_part): Update comment.
5134 (readable_regcache::cooked_write_part): Likewise.
5135 * regcache.h: (readable_regcache::read_part): Likewise.
5136 (regcache::write_part): Likewise.
5137
5138 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5139 Dirk Schubert <dirk.schubert@arm.com>
5140
5141 * aarch64-linux-nat.c (post_attach): New.
5142 (aarch64_linux_nat_target::post_attach): Override post_attach to
5143 record the number of hardware debug registers.
5144
5145 2018-06-20 Tom Tromey <tom@tromey.com>
5146
5147 * python/py-param.c (add_setshow_generic): Make parameters const.
5148 (parmpy_init): Update.
5149
5150 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5151
5152 * regcache.h (regcache_cooked_read_ftype): Rename to...
5153 (register_read_ftype): ...this, change type to function_view.
5154 (class reg_buffer) <save>: Remove src parameter.
5155 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5156 parameter non-const in first overload. Remove src parameter in
5157 second overload.
5158 * regcache.c (do_cooked_read): Remove.
5159 (readonly_detached_regcache::readonly_detached_regcache): Make
5160 parameter non-const, adjust call to other constructor.
5161 (reg_buffer::save): Remove src parameter.
5162 * frame.c (do_frame_register_read): Remove.
5163 (frame_save_as_regcache): Use lambda function.
5164 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5165 parameter to ppu2spu_data *.
5166 (ppu2spu_sniffer): Use lambda function.
5167
5168 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5169
5170 * record-full.c (record_full_target::insert_breakpoint): Remove
5171 "struct" keyword, add const.
5172
5173 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5174
5175 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5176 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5177 * configure.ac: Remove AC_PREREQ, add missing quoting.
5178 * gnulib/configure.ac: Modernize usage of
5179 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5180 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5181 (AUTOMAKE_VERSION): Bump to 1.15.1.
5182 * configure: Re-generate.
5183 * config.in: Re-generate.
5184 * aclocal.m4: Re-generate.
5185 * gnulib/aclocal.m4: Re-generate.
5186 * gnulib/config.in: Re-generate.
5187 * gnulib/configure: Re-generate.
5188 * gnulib/import/Makefile.in: Re-generate.
5189
5190 2018-06-19 Pedro Alves <palves@redhat.com>
5191
5192 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5193 (lookup_minimal_symbol_by_pc_section): ... here with
5194 gdb_assert_not_reached added.
5195
5196 2018-06-19 Pedro Alves <palves@redhat.com>
5197
5198 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5199 parameter with a block parameter. Compare location's block symbol
5200 with the frame's block instead of addresses.
5201 (skip_inline_frames): Pass the current block instead of the
5202 frame's address. Break out as soon as we determine the frame
5203 should not be skipped.
5204
5205 2018-06-18 Tom Tromey <tom@tromey.com>
5206
5207 * solib-aix.c (solib_aix_get_section_offsets): Return
5208 unique_xmalloc_ptr.
5209 (solib_aix_solib_create_inferior_hook): Update.
5210
5211 2018-06-18 Tom Tromey <tom@tromey.com>
5212
5213 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5214
5215 2018-06-18 Tom Tromey <tom@tromey.com>
5216
5217 * solib-frv.c (frv_relocate_main_executable): Use
5218 unique_xmalloc_ptr.
5219 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5220 unique_xmalloc_ptr.
5221
5222 2018-06-18 Tom Tromey <tom@tromey.com>
5223
5224 * objfiles.h (inhibit_section_map_updates): Update.
5225 (resume_section_map_updates, resume_section_map_updates_cleanup):
5226 Remove.
5227 * solib-svr4.c (svr4_handle_solib_event): Update.
5228 * objfiles.c (inhibit_section_map_updates): Return
5229 scoped_restore_tmpl<int>.
5230 (resume_section_map_updates, resume_section_map_updates_cleanup):
5231 Remove.
5232
5233 2018-06-18 Tom Tromey <tom@tromey.com>
5234
5235 * valprint.h (read_string): Update.
5236 * valprint.c (read_string): Change type of "buffer".
5237 (val_print_string): Update.
5238 * python/py-value.c (valpy_string): Update.
5239 * language.h (struct language_defn) <la_get_string>: Change
5240 type of "buffer".
5241 (default_get_string, c_get_string): Update.
5242 * language.c (default_get_string): Change type of "buffer".
5243 * guile/scm-value.c (gdbscm_value_to_string): Update.
5244 * c-lang.c (c_get_string): Change type of "buffer".
5245
5246 2018-06-18 Tom Tromey <tom@tromey.com>
5247
5248 * ser-mingw.c (struct pipe_state_destroyer): New.
5249 (pipe_state_up): New typedef.
5250 (cleanup_pipe_state): Remove.
5251 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5252
5253 2018-06-18 Tom Tromey <tom@tromey.com>
5254
5255 * rust-lang.h (rust_yyerror): Don't declare.
5256 * rust-lang.c (rust_language_defn): Update.
5257 * rust-exp.y (yyerror): Now static.
5258 * parse.c (parse_exp_in_context_1): Update.
5259 * p-lang.h (p_yyerror): Don't declare.
5260 * p-lang.c (p_language_defn): Update.
5261 * p-exp.y (yyerror): Now static.
5262 * opencl-lang.c (opencl_language_defn): Update.
5263 * objc-lang.c (objc_language_defn): Update.
5264 * m2-lang.h (m2_yyerror): Don't declare.
5265 * m2-lang.c (m2_language_defn): Update.
5266 * m2-exp.y (yyerror): Now static.
5267 * language.h (struct language_defn) <la_error>: Remove.
5268 * language.c (unk_lang_error): Remove.
5269 (unknown_language_defn, auto_language_defn): Remove.
5270 * go-lang.h (go_yyerror): Don't declare.
5271 * go-lang.c (go_language_defn): Update.
5272 * go-exp.y (yyerror): Now static.
5273 * f-lang.h (f_yyerror): Don't declare.
5274 * f-lang.c (f_language_defn): Update.
5275 * f-exp.y (yyerror): Now static.
5276 * d-lang.h (d_yyerror): Don't declare.
5277 * d-lang.c (d_language_defn): Update.
5278 * d-exp.y (yyerror): Now static.
5279 * c-lang.h (c_yyerror): Don't declare.
5280 * c-lang.c (c_language_defn, cplus_language_defn)
5281 (asm_language_defn, minimal_language_defn): Update.
5282 * c-exp.y (yyerror): Now static.
5283 * ada-lang.h (ada_yyerror): Don't declare.
5284 * ada-lang.c (ada_language_defn): Update.
5285 * ada-exp.y (yyerror): Now static.
5286
5287 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5288
5289 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5290 (store_sveregs_to_thread): Likewise.
5291 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5292 (aarch64_linux_store_inferior_registers): Likewise.
5293 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5294 function.
5295 (aarch64_sve_regs_copy_to_regcache): Likewise.
5296 (aarch64_sve_regs_copy_from_regcache): Likewise.
5297 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5298 declaration.
5299 (aarch64_sve_regs_copy_to_regcache): Likewise.
5300 (aarch64_sve_regs_copy_from_regcache): Likewise.
5301 (sve_context): Structure from Linux headers.
5302 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5303 (SVE_SIG_ZREG_SIZE): Likewise.
5304 (SVE_SIG_PREG_SIZE): Likewise.
5305 (SVE_SIG_FFR_SIZE): Likewise.
5306 (SVE_SIG_REGS_OFFSET): Likewise.
5307 (SVE_SIG_ZREGS_OFFSET): Likewise.
5308 (SVE_SIG_ZREG_OFFSET): Likewise.
5309 (SVE_SIG_ZREGS_SIZE): Likewise.
5310 (SVE_SIG_PREGS_OFFSET): Likewise.
5311 (SVE_SIG_PREG_OFFSET): Likewise.
5312 (SVE_SIG_PREGS_SIZE): Likewise.
5313 (SVE_SIG_FFR_OFFSET): Likewise.
5314 (SVE_SIG_REGS_SIZE): Likewise.
5315 (SVE_SIG_CONTEXT_SIZE): Likewise.
5316 (SVE_PT_REGS_MASK): Likewise.
5317 (SVE_PT_REGS_FPSIMD): Likewise.
5318 (SVE_PT_REGS_SVE): Likewise.
5319 (SVE_PT_VL_INHERIT): Likewise.
5320 (SVE_PT_VL_ONEXEC): Likewise.
5321 (SVE_PT_REGS_OFFSET): Likewise.
5322 (SVE_PT_FPSIMD_OFFSET): Likewise.
5323 (SVE_PT_FPSIMD_SIZE): Likewise.
5324 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5325 (SVE_PT_SVE_PREG_SIZE): Likewise.
5326 (SVE_PT_SVE_FFR_SIZE): Likewise.
5327 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5328 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5329 (__SVE_SIG_TO_PT): Likewise.
5330 (SVE_PT_SVE_OFFSET): Likewise.
5331 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5332 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5333 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5334 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5335 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5336 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5337 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5338 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5339 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5340 (SVE_PT_SVE_SIZE): Likewise.
5341 (SVE_PT_SIZE): Likewise.
5342 (HAS_SVE_STATE): New define.
5343
5344 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5345
5346 * nat/aarch64-sve-linux-sigcontext.h: New file.
5347 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5348 new files.
5349 (SVE_VQ_MIN): Likewise.
5350 (SVE_VQ_MAX): Likewise.
5351 (SVE_VL_MIN): Likewise.
5352 (SVE_VL_MAX): Likewise.
5353 (SVE_NUM_ZREGS): Likewise.
5354 (SVE_NUM_PREGS): Likewise.
5355 (sve_vl_valid): Likewise.
5356 (struct user_sve_header): Likewise.
5357
5358 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5359 Richard Bunt <Richard.Bunt@arm.com>
5360
5361 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5362 was requested by GDB.
5363
5364 2018-06-15 Tom de Vries <tdevries@suse.de>
5365
5366 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5367
5368 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5369
5370 * gnulib/update-gnulib.sh: Print expected versions of
5371 autoconf/aclocal.
5372
5373 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5374
5375 * arch-utils.c (default_type_align): Use type_length_units.
5376 * gdbtypes.c (type_align): Use type_length_units.
5377
5378 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5379
5380 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5381 of 'define' command.
5382
5383 2018-06-14 Tom de Vries <tdevries@suse.de>
5384
5385 PR cli/22573
5386 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5387 get_no_prettyformat_print_options.
5388
5389 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5390
5391 * sparc-nat.h: Include target.h.
5392 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5393 <fetch_registers>: Remove this argument in function call.
5394 <store_registers>: Remove this argument in function call, remove
5395 extra semicolon.
5396 <low_forget_process>: Call sparc64_forget_process instead of
5397 sparc_forget_process.
5398
5399 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5400
5401 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5402 (procfs_target::make_corefile_notes): Adjust to new
5403 target_read_alloc return type.
5404
5405 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5406 Stephen Roberts <stephen.roberts@arm.com>
5407
5408 PR gdb/22882
5409 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5410 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5411 Move should_notify_stop local into more inner scope.
5412
5413 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5414 Stephen Roberts <stephen.roberts@arm.com>
5415
5416 PR gdb/22882
5417 * infrun.c (resume_1): Add call to mark_async_event_handler.
5418
5419 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5420
5421 * infrun.c (do_target_wait): Change old version of $pc printed.
5422
5423 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5424
5425 * dwarf2read.c (read_index_from_section): Rename to...
5426 (read_gdb_index_from_section): ... this, update all callers.
5427 (dwarf2_read_index): Rename to...
5428 (dwarf2_read_gdb_index): ... this, update all callers.
5429
5430 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5431
5432 * gdb/hppa-linux-nat.c
5433 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5434 hppa_linux_nat_target::fetch_registers.
5435
5436 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5437
5438 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5439 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5440 (AARCH64_DWARF_SVE_FFR): Likewise.
5441 (AARCH64_DWARF_SVE_P0): Likewise.
5442 (AARCH64_DWARF_SVE_Z0): Likewise.
5443
5444 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5445
5446 * common/common-regcache.h (raw_compare): New function.
5447 * regcache.c (regcache::raw_compare): Likewise.
5448 * regcache.h (regcache::raw_compare): New declaration.
5449
5450 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5451
5452 * common/common-regcache.h (reg_buffer_common): New structure.
5453 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5454 (reg_buffer::raw_supply): Likewise.
5455 (reg_buffer::raw_supply_integer): Likewise.
5456 (reg_buffer::raw_supply_zeroed): Likewise.
5457 (reg_buffer::raw_collect): Likewise.
5458 (reg_buffer::raw_collect_integer): Likewise.
5459 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5460 (reg_buffer::raw_supply): Likewise.
5461 (reg_buffer::raw_supply_integer): Likewise.
5462 (reg_buffer::raw_supply_zeroed): Likewise.
5463 (reg_buffer::raw_collect): Likewise.
5464 (reg_buffer::raw_collect_integer): Likewise.
5465
5466 2018-06-10 Tom Tromey <tom@tromey.com>
5467
5468 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5469 (class remote_state) <stop_reply_queue>: Now std::vector.
5470 (remote_state::~remote_state)
5471 (remote_target::stop_reply_queue_length): Update.
5472 (struct queue_iter_param, remove_child_of_pending_fork)
5473 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5474 (check_pending_event_prevents_wildcard_vcont_callback)
5475 (remove_stop_reply_for_inferior)
5476 (remove_stop_reply_of_remote_state)
5477 (remote_notif_remove_once_on_match)
5478 (stop_reply_match_ptid_and_ws)
5479 (remote_kill_child_of_pending_fork): Remove.
5480 (remote_target::remove_new_fork_children)
5481 (remote_target::check_pending_events_prevent_wildcard_vcont)
5482 (remote_target::discard_pending_stop_replies)
5483 (remote_target::discard_pending_stop_replies_in_queue)
5484 (remote_target::remote_notif_remove_queued_reply)
5485 (remote_target::queued_stop_reply)
5486 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5487 (remote_target::wait, remote_target::kill_new_fork_children)
5488 (remote_target::async): Update.
5489
5490 2018-06-10 Tom Tromey <tom@tromey.com>
5491
5492 * record-full.c (record_full_arch_list_cleanups): Remove.
5493 (record_full_message): Use try/catch.
5494 (record_full_wait_cleanups): Remove.
5495 (record_full_wait_1): Use try/catch.
5496 (record_full_restore): Likewise.
5497
5498 2018-06-10 Tom Tromey <tom@tromey.com>
5499
5500 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5501 declare VEC. Add constructor.
5502 <in_target_beneath>: Now bool.
5503 (record_full_breakpoints): Now a std::vector, static.
5504 (record_full_sync_record_breakpoints)
5505 (record_full_init_record_breakpoints)
5506 (record_full_target::insert_breakpoint)
5507 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5508
5509 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5510
5511 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5512 * serial.c (serial_interface_lookup): Remove struct keyword.
5513
5514 2018-06-10 Tom Tromey <tom@tromey.com>
5515
5516 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5517 method.
5518 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5519 a method.
5520 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5521 method.
5522 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5523 "beneath" as a method.
5524 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5525 Use "beneath" as a method.
5526
5527 2018-06-10 Tom Tromey <tom@tromey.com>
5528
5529 * tracefile.c (struct trace_file_writer_deleter): New.
5530 <operator()>: Rename from trace_file_writer_xfree.
5531 (trace_file_writer_up): New typedef.
5532 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5533
5534 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5535
5536 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5537 <m_registers, m_register_status>: Change type to
5538 std::unique_ptr.
5539 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5540 XCNEWVEC.
5541
5542 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5543
5544 * common/common-regcache.h (enum register_status): Add
5545 underlying type "signed char".
5546 * regcache.h (reg_buffer) <m_register_status>: Change type to
5547 register_status *.
5548 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5549 register_status instead of signed char.
5550 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5551 (reg_buffer::get_register_status): Remove cast.
5552 (readable_regcache::raw_read): Remove cast.
5553 (readable_regcache::cooked_read): Remove cast.
5554
5555 2018-06-09 Tom Tromey <tom@tromey.com>
5556
5557 * source.c (reverse_search_command, forward_search_command): Use
5558 scoped_fd.
5559
5560 2018-06-09 Tom Tromey <tom@tromey.com>
5561
5562 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5563 (serial_ops_list): Now static, std::vector.
5564 (serial_interface_lookup, serial_add_interface): Update.
5565
5566 2018-06-09 Tom Tromey <tom@tromey.com>
5567
5568 * dwarf2read.c (process_cu_includes): Update.
5569 (process_full_comp_unit): Update.
5570 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5571 std::vector.
5572
5573 2018-06-08 Paul Koning <paul_koning@dell.com>
5574
5575 PR gdb/23252
5576
5577 * python/python.c (do_start_initialization):
5578 Avoid call to internal Python API.
5579 (init__gdb_module): New function.
5580
5581 2018-06-08 Gary Benson <gbenson@redhat.com>
5582
5583 * linux-thread-db.c (valprint.h): New include.
5584 (struct check_thread_db_info): New structure.
5585 (check_thread_db_on_load, tdb_testinfo): New static globals.
5586 (check_thread_db, check_thread_db_callback): New functions.
5587 (try_thread_db_load_1): Run integrity checks if requested.
5588 (maintenance_check_libthread_db): New function.
5589 (_initialize_thread_db): Register "maint check libthread-db"
5590 and "maint set/show check-libthread-db".
5591 * NEWS: Mention the above new commands.
5592
5593 2018-06-08 Tom Tromey <tom@tromey.com>
5594
5595 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5596 now a method.
5597
5598 2018-06-08 Tom Tromey <tom@tromey.com>
5599
5600 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5601
5602 2018-06-08 Tom Tromey <tom@tromey.com>
5603
5604 * common/btrace-common.h (struct btrace_data): Add constructor,
5605 destructor, move assignment operator.
5606 <empty, clear, fini>: New methods.
5607 <format>: Initialize.
5608 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5609 (btrace_data_empty): Don't declare.
5610 * common/btrace-common.c (btrace_data_init): Remove.
5611 (btrace_data::fini): Rename from btrace_data_fini.
5612 (btrace_data::empty): Rename from btrace_data_empty.
5613 (btrace_data::clear): Rename from btrace_data_clear. Return
5614 bool.
5615 * btrace.h (make_cleanup_btrace_data): Don't declare.
5616 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5617 (parse_xml_btrace): Update.
5618 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5619 (maint_btrace_clear_packet_history_cmd): Update.
5620
5621 2018-06-07 Pedro Alves <palves@redhat.com>
5622
5623 * target.h (target_ops) <beneath>: Now a method. All references
5624 updated.
5625 (class target_stack): New.
5626 * target.c (g_target_stack): New.
5627 (g_current_top_target): Delete.
5628 (current_top_target): Get the top target out of g_target_stack.
5629 (target_stack::push, target_stack::unpush): New.
5630 (push_target, unpush_target): Reimplement.
5631 (target_is_pushed): Reimplement in terms of g_target_stack.
5632 (target_ops::beneath, target_stack::find_beneath): New.
5633
5634 2018-06-07 Pedro Alves <palves@redhat.com>
5635
5636 * target.h (find_target_beneath): Delete declaration.
5637 * target.c (find_target_beneath): Delete definition.
5638 * aix-thread.c: All callers of find_target_beneath adjusted to
5639 call target_ops::beneath instead.
5640 * bsd-uthread.c: Likewise.
5641 * linux-thread-db.c: Likewise.
5642 * ravenscar-thread.c: Likewise.
5643 * sol-thread.c: Likewise.
5644 * spu-multiarch.c: Likewise.
5645
5646 2018-06-07 Pedro Alves <palves@redhat.com>
5647
5648 * target.h (target_ops) <beneath>: Now a method. All references
5649 updated.
5650 (target_ops) <m_beneath>: New.
5651 * target.c (target_ops::beneath): New.
5652 * corelow.c: Adjust all references to target_ops::beneath.
5653 * linux-thread-db.c: Likewise.
5654 * make-target-delegates: Likewise.
5655 * record-btrace.c: Likewise.
5656 * record-full.c: Likewise.
5657 * remote.c: Likewise.
5658 * target.c: Likewise.
5659 * target-delegates.c: Regenerate.
5660
5661 2018-06-07 Pedro Alves <palves@redhat.com>
5662
5663 * target.h (target_stack): Delete.
5664 (current_top_target): Declare function.
5665 * target.c (target_stack): Delete.
5666 (g_current_top_target): New.
5667 (current_top_target): New function.
5668 * auxv.c: Use current_top_target instead of target_stack
5669 throughout.
5670 * avr-tdep.c: Likewise.
5671 * breakpoint.c: Likewise.
5672 * corefile.c: Likewise.
5673 * elfread.c: Likewise.
5674 * eval.c: Likewise.
5675 * exceptions.c: Likewise.
5676 * frame.c: Likewise.
5677 * gdbarch-selftests.c: Likewise.
5678 * gnu-v3-abi.c: Likewise.
5679 * ia64-tdep.c: Likewise.
5680 * ia64-vms-tdep.c: Likewise.
5681 * infcall.c: Likewise.
5682 * infcmd.c: Likewise.
5683 * infrun.c: Likewise.
5684 * linespec.c: Likewise.
5685 * linux-tdep.c: Likewise.
5686 * minsyms.c: Likewise.
5687 * ppc-linux-nat.c: Likewise.
5688 * ppc-linux-tdep.c: Likewise.
5689 * procfs.c: Likewise.
5690 * regcache.c: Likewise.
5691 * remote.c: Likewise.
5692 * rs6000-tdep.c: Likewise.
5693 * s390-linux-nat.c: Likewise.
5694 * s390-tdep.c: Likewise.
5695 * solib-aix.c: Likewise.
5696 * solib-darwin.c: Likewise.
5697 * solib-dsbt.c: Likewise.
5698 * solib-spu.c: Likewise.
5699 * solib-svr4.c: Likewise.
5700 * solib-target.c: Likewise.
5701 * sparc-tdep.c: Likewise.
5702 * sparc64-tdep.c: Likewise.
5703 * spu-tdep.c: Likewise.
5704 * symfile.c: Likewise.
5705 * symtab.c: Likewise.
5706 * target-descriptions.c: Likewise.
5707 * target-memory.c: Likewise.
5708 * target.c: Likewise.
5709 * target.h: Likewise.
5710 * tracefile-tfile.c: Likewise.
5711 * tracepoint.c: Likewise.
5712 * valops.c: Likewise.
5713 * valprint.c: Likewise.
5714 * value.c: Likewise.
5715 * windows-tdep.c: Likewise.
5716 * mi/mi-main.c: Likewise.
5717
5718 2018-06-07 Tom Tromey <tom@tromey.com>
5719
5720 * valprint.h (build_address_symbolic): Declare.
5721 * printcmd.c (print_address_symbolic): Update.
5722 (build_address_symbolic): Change "name" and "filename" to
5723 std::string.
5724 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5725 Update.
5726 * defs.h (build_address_symbolic): Remove declaration.
5727
5728 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5729
5730 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5731 (aarch64_vnv_type): Add function.
5732 (aarch64_pseudo_register_name): Add V regs for SVE.
5733 (aarch64_pseudo_register_type): Likewise.
5734 (aarch64_pseudo_register_reggroup_p): Likewise.
5735 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5736 (aarch64_pseudo_read_value): Add V regs for SVE.
5737 (aarch64_pseudo_write_2): Use V0 offset for SVE
5738 (aarch64_pseudo_write): Add V regs for SVE.
5739 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5740
5741 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5742
5743 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5744 (sve_vl_from_vq): Likewise.
5745
5746 2018-06-05 Tom Tromey <tom@tromey.com>
5747
5748 * cli/cli-cmds.c (show_version): Update.
5749 * top.c (print_gdb_version): Add "interactive" parameter.
5750 Update.
5751 * main.c (captured_main_1): Update.
5752 * top.h (print_gdb_version): Add "interactive" parameter and a
5753 comment.
5754
5755 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5756
5757 * common/enum-flags.h: Add trailing semicolon to example in
5758 comment.
5759
5760 2018-06-05 Tom Tromey <tom@tromey.com>
5761
5762 PR cli/12326:
5763 * NEWS: Add entry about pager.
5764 * utils.c (pagination_disabled_for_command): New global.
5765 (prompt_for_continue): Allow "c" response to prompt.
5766 (reinitialize_more_filter): Clear
5767 pagination_disabled_for_command.
5768 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5769
5770 2018-06-04 Tom Tromey <tom@tromey.com>
5771
5772 * ada-lang.h (ada_lookup_symbol_list): Update.
5773 * ada-lang.c (resolve_subexp): Update.
5774 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5775 parameter.
5776 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5777 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5778 results parameter to std::vector.
5779 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5780 Update.
5781 * ada-exp.y (block_lookup): Update.
5782 (select_possible_type_sym): Change type of syms. Remove nsyms
5783 parameter.
5784 (write_var_or_type, write_name_assoc): Update.
5785
5786 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5787
5788 * windows-nat.c (windows_nat_target::xfer_partial): Return
5789 TARGET_XFER_E_IO if we need to delegate to the target beneath
5790 but BENEATH is NULL.
5791
5792 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5793
5794 * Makefile.in (config.status): Add configure.nat as a
5795 dependency.
5796
5797 2018-06-04 Tom Tromey <tom@tromey.com>
5798
5799 * cp-name-parser.y (cpname_state): Add method declarations.
5800 (HANDLE_QUAL): Update.
5801 (cpname_state::d_grab, cpname_state::fill_comp)
5802 (cpname_state::make_operator, cpname_state::make_dtor)
5803 (cpname_state::make_builtin_type, cpname_state::make_name)
5804 (cpname_state::d_qualify, cpname_state::d_int_type)
5805 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5806 (%union): Move earlier.
5807
5808 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5809
5810 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5811
5812 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5813
5814 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5815 (aarch64_pseudo_write_1): Likewise.
5816 (aarch64_pseudo_read_value): Use helper.
5817 (aarch64_pseudo_write): Likewise.
5818
5819 2018-06-04 Pedro Alves <palves@redhat.com>
5820
5821 * darwin-nat.c (darwin_ops): Delete.
5822 (darwin_attach_pid): Use get_native_target.
5823
5824 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5825
5826 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5827 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5828
5829 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5830
5831 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5832 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5833 (aarch64_gdbarch_init): Check for SVE.
5834 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5835
5836 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5837
5838 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5839 * aarch64-tdep.h (aarch64_read_description): Likewise.
5840 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5841 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5842 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5843 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5844 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5845
5846 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5847
5848 * value.c (value_fetch_lazy_bitfield): New.
5849 (value_fetch_lazy_memory): New.
5850 (value_fetch_lazy_register): New.
5851 (value_fetch_lazy): Factor out to smaller functions.
5852
5853 2018-06-01 Tom Tromey <tom@tromey.com>
5854
5855 * cp-name-parser.y (backslashable, represented): Now const.
5856
5857 2018-06-01 Tom Tromey <tom@tromey.com>
5858
5859 * cp-name-parser.y: Include parser-defs.h.
5860 (parser_fprintf): Remove declaration.
5861
5862 2018-06-01 Tom Tromey <tom@tromey.com>
5863
5864 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5865 %parse-param.
5866 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5867 (global_result): Remove globals.
5868 (struct cpname_state): New.
5869 (yyparse): Don't declare.
5870 (yylex, yyerror): Move declarations after %union.
5871 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5872 (make_name): Add state parameter.
5873 Update all callers.
5874 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5875 parameter.
5876 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5877 Update.
5878 (yylex): Add lvalp, state parameters.
5879 (yyerror): Add state parameter.
5880 (cp_demangled_name_to_comp): Update.
5881
5882 2018-06-01 Tom Tromey <tom@tromey.com>
5883
5884 * cp-name-parser.y (parser_fprintf): Declare.
5885 (GDB_YY_REMAP_PREFIX): Define.
5886 Include yy-remap.h. Don't redefine yy* identifiers.
5887
5888 2018-06-01 Tom Tromey <tom@tromey.com>
5889
5890 * python/py-type.c (typy_legacy_template_argument): Update.
5891 * cp-support.h (cp_demangled_name_to_comp): Update.
5892 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5893 parameter to be a "std::string *".
5894 (main): Update.
5895
5896 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5897
5898 * ada-lex.l: Include "diagnostics.h" instead of
5899 "common/diagnostics.h".
5900 * unittests/environ-selftests.c: Likewise.
5901 * common/diagnostics.h: Moved to ../include.
5902
5903 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5904
5905 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5906 to language_mode_manual while calling breakpoint_re_set_one.
5907
5908 2018-06-01 Tom Tromey <tom@tromey.com>
5909
5910 * valops.c (value_cast_structs, destructor_name_p): Update.
5911 * symtab.c (gdb_mangle_name): Update.
5912 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5913 Update.
5914 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5915 (pascal_object_print_value_fields, pascal_object_print_value):
5916 Update.
5917 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5918 * linespec.c (find_methods): Update.
5919 * gdbtypes.h (type_name_no_tag): Remove.
5920 (type_name_or_error): Rename from type_name_no_tag_or_error.
5921 * gdbtypes.c (type_name_no_tag): Remove.
5922 (type_name_or_error): Rename from type_name_no_tag_or_error.
5923 (lookup_struct_elt_type, check_typedef): Update.
5924 * expprint.c (print_subexp_standard): Update.
5925 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5926 * d-namespace.c (d_lookup_nested_symbol): Update.
5927 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5928 (cp_print_class_member): Update.
5929 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5930 * completer.c (add_struct_fields): Update.
5931 * c-typeprint.c (cp_type_print_derivation_info)
5932 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5933 Update.
5934 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5935 (ada_prefer_type, ada_is_exception_sym): Update.
5936
5937 2018-06-01 Tom Tromey <tom@tromey.com>
5938
5939 * valops.c (enum_constant_from_type, value_namespace_elt)
5940 (value_maybe_namespace_elt): Update.
5941 * valarith.c (find_size_for_pointer_math): Update.
5942 * target-descriptions.c (make_gdb_type): Update.
5943 * symmisc.c (print_symbol): Update.
5944 * stabsread.c (define_symbol, read_type)
5945 (complain_about_struct_wipeout, add_undefined_type)
5946 (cleanup_undefined_types_1): Update.
5947 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5948 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5949 (rust_internal_print_type, rust_composite_type)
5950 (rust_evaluate_funcall, rust_evaluate_subexp)
5951 (rust_inclusive_range_type_p): Update.
5952 * python/py-type.c (typy_get_tag): Update.
5953 * p-typeprint.c (pascal_type_print_base): Update.
5954 * mdebugread.c (parse_symbol, parse_type): Update.
5955 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5956 Update.
5957 * guile/scm-type.c (gdbscm_type_tag): Update.
5958 * go-lang.c (sixg_string_p): Update.
5959 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5960 Update.
5961 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5962 (TYPE_TAG_NAME): Remove.
5963 * gdbtypes.c (type_name_no_tag): Simplify.
5964 (check_typedef, check_types_equal, recursive_dump_type)
5965 (copy_type_recursive, arch_composite_type): Update.
5966 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5967 in summary mode when needed.
5968 * eval.c (evaluate_funcall): Update.
5969 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5970 (process_structure_scope, read_enumeration_type)
5971 (read_namespace_type, read_module_type, determine_prefix): Update.
5972 * cp-support.c (inspect_type): Update.
5973 * coffread.c (process_coff_symbol, decode_base_type): Update.
5974 * c-varobj.c (c_is_path_expr_parent): Update.
5975 * c-typeprint.c (c_type_print_base_struct_union): Update.
5976 (c_type_print_base_1): Update. Print struct/class/union/enum in
5977 summary when using C language.
5978 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5979 (gen_maybe_namespace_elt): Update.
5980 * ada-lang.c (ada_type_name): Simplify.
5981 (empty_record, ada_template_to_fixed_record_type_1)
5982 (template_to_static_fixed_type)
5983 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5984
5985 2018-06-01 Tom Tromey <tom@tromey.com>
5986
5987 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5988 c_print_type.
5989 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5990 (c_print_type): Update.
5991 (c_print_type): New overload.
5992 (c_type_print_varspec_prefix, c_type_print_args)
5993 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5994 (c_type_print_base_struct_union, c_type_print_base_1)
5995 (cp_type_print_method_args): Add "language" parameter.
5996 (c_type_print_base): Update.
5997 * c-lang.h (c_print_type): Add new overload.
5998
5999 2018-06-01 Tom Tromey <tom@tromey.com>
6000
6001 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6002 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6003
6004 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6005
6006 * aarch64-tdep.c (aarch64_sve_register_names): New const
6007 var.
6008 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6009 (AARCH64_SVE_Z_REGS_NUM): New define.
6010 (AARCH64_SVE_P_REGS_NUM): Likewise.
6011 (AARCH64_SVE_NUM_REGS): Likewise.
6012
6013 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6014
6015 * nat/linux-ptrace.h [__alpha__]
6016 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6017 definitions.
6018
6019 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6020
6021 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6022 the endianness selected.
6023 * NEWS: Document `set endian auto' mode operation update.
6024
6025 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6026
6027 * Makefile.in: Add new header.
6028 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6029 (sve_vl_from_vg): Likewise.
6030 (sve_vq_from_vl): Likewise.
6031 (sve_vl_from_vq): Likewise.
6032 (sve_vq_from_vg): Likewise.
6033 (sve_vg_from_vq): Likewise.
6034 * configure.nat: Add new c file.
6035 * nat/aarch64-sve-linux-ptrace.c: New file.
6036 * nat/aarch64-sve-linux-ptrace.h: New file.
6037
6038 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6039
6040 * aarch64-linux-nat.c (aarch64_linux_read_description):
6041 Add parmeter zero.
6042 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6043 Likewise.
6044 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6045 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6046 (aarch64_gdbarch_init): Add parmeter zero.
6047 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6048 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6049 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6050 parmeter.
6051 * doc/gdb.texinfo: Describe SVE feature
6052 * features/aarch64-sve.c: New file.
6053
6054 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6055
6056 PR gdb/23210
6057 * gdbarch.sh (significant_addr_bit): Default to zero when
6058 not set by target architecture.
6059 * gdbarch.c: Re-generated.
6060 * utils.c (address_significant): Update.
6061
6062 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6063
6064 * stack.c (func_command): Remove trailing newline in call to error.
6065
6066 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6067
6068 * regcache.h (regcache_raw_collect): Remove, update callers to
6069 use regcache::raw_collect.
6070 * regcache.c (regcache_raw_collect): Remove.
6071
6072 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6073
6074 * regcache.h (regcache_raw_supply): Remove, update callers to
6075 use detached_regcache::raw_supply.
6076 * regcache.c (regcache_raw_supply): Remove.
6077
6078 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6079
6080 * regcache.h (regcache_cooked_write_part): Remove, update
6081 callers to use regcache::cooked_write_part.
6082 * regcache.c (regcache_cooked_write_part): Remove.
6083
6084 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6085
6086 * regcache.h (regcache_cooked_read_part): Remove, update callers
6087 to use readable_regcache::cooked_read_part.
6088 * regcache.c (regcache_cooked_read_part): Remove.
6089
6090 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6091
6092 * regcache.h (regcache_cooked_read_value): Remove, update
6093 callers to use readable_regcache::cooked_read_value.
6094 * regcache.c (regcache_cooked_read_value): Remove.
6095
6096 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6097
6098 * regcache.h (regcache_cooked_write): Remove, update callers to
6099 use regcache::cooked_write.
6100 * regcache.c (regcache_cooked_write): Remove.
6101
6102 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6103
6104 * regcache.h (regcache_invalidate): Remove, update callers to
6105 use detached_regcache::invalidate instead.
6106 * regcache.c (regcache_invalidate): Remove.
6107
6108 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6109
6110 * regcache.h (regcache_raw_write_part): Remove, update callers
6111 to use regcache::raw_write_part instead.
6112 * regcache.c (regcache_raw_write_part): Remove.
6113
6114 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6115
6116 * regcache.h (regcache_raw_read_part): Remove, update callers to
6117 use readable_regcache::raw_read_part instead.
6118 * regcache.c (regcache_raw_read_part): Remove.
6119
6120 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6121
6122 * regcache.h (regcache_cooked_read): Remove, update callers to
6123 use readable_regcache::cooked_read instead.
6124 * regcache.c (regcache_cooked_read): Remove.
6125
6126 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6127
6128 * regcache.h (regcache_raw_write): Remove, update callers to use
6129 regcache::raw_write instead.
6130 * regcache.c (regcache_raw_write): Remove.
6131
6132 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6133
6134 * regcache.h (regcache_raw_read): Remove, update callers to use
6135 readable_regcache::raw_read instead.
6136 * regcache.c (regcache_raw_read): Remove.
6137
6138 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6139
6140 * regcache.h (regcache_raw_update): Remove, update callers to
6141 use readable_regcache::raw_update instead.
6142 * regcache.c (regcache_raw_update): Remove.
6143
6144 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6145
6146 * regcache.h (regcache_register_status): Remove, update callers
6147 to use reg_buffer::get_register_status directly instead.
6148 * regcache.c (regcache_register_status): Remove.
6149
6150 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6151
6152 * regcache.h (regcache_get_ptid): Remove, update all callers to
6153 call regcache::ptid instead.
6154 * regcache.c (regcache_get_ptid): Remove.
6155
6156 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6157
6158 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6159
6160 2018-05-30 Pedro Alves <palves@redhat.com>
6161
6162 * common/common-exceptions.h (exception_rethrow): Use
6163 ATTRIBUTE_NORETURN.
6164
6165 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6166
6167 * breakpoint.c (print_solib_event, check_status_catch_solib):
6168 Remove struct keyword in range-based for loops.
6169 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6170 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6171 Likewise.
6172 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6173 Likewise.
6174 * symfile.c (addr_info_make_relative): Likewise.
6175 * thread.c (value_in_thread_stack_temporaries): Likewise.
6176
6177 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6178
6179 PR gdb/16841
6180 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6181 aggregate type to get its real type before accessing it.
6182
6183 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6184
6185 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6186 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6187 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6188 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6189 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6190 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6191 * printcmd.c (info_address_command): Likewise.
6192
6193 2018-05-29 Tom Tromey <tom@tromey.com>
6194
6195 * windows-nat.c (handle_exception): Update fall-through comment.
6196
6197 2018-05-29 Tom Tromey <tom@tromey.com>
6198
6199 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6200 (struct program_space) <added_solibs>: Now a std::vector.
6201 * breakpoint.c (print_solib_event): Update.
6202 (check_status_catch_solib): Update.
6203 * progspace.c (clear_program_space_solib_cache): Update.
6204 * solib.c (update_solib_list): Update.
6205
6206 2018-05-29 Tom Tromey <tom@tromey.com>
6207
6208 * python/py-type.c (typy_richcompare): Update.
6209 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6210 * gdbtypes.h (types_deeply_equal): Return bool.
6211 (types_equal): Likewise.
6212 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6213 declare VEC.
6214 (check_types_equal): Change worklist to std::vector. Return
6215 bool.
6216 (struct type_equality_entry): Add constructor.
6217 (compare_maybe_null_strings): Return bool.
6218 (check_types_worklist): Return bool. Change worklist to
6219 std::vector.
6220 (types_deeply_equal): Use std::vector.
6221 (types_equal): Return bool.
6222 (compare_maybe_null_strings): Simplify.
6223
6224 2018-05-29 Tom Tromey <tom@tromey.com>
6225
6226 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6227
6228 2018-05-29 Tom Tromey <tom@tromey.com>
6229
6230 * objc-lang.h: Don't include cp-support.h.
6231 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6232 declare VEC.
6233
6234 2018-05-27 Tom Tromey <tom@tromey.com>
6235
6236 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6237
6238 2018-05-25 Tom Tromey <tom@tromey.com>
6239
6240 * value.c (value::location): Initialize.
6241
6242 2018-05-25 Tom Tromey <tom@tromey.com>
6243
6244 * dbxread.c (init_bincl_list): Remove.
6245 (bincl_list): Now a std::vector.
6246 (bincls_allocated, next_bincl): Remove.
6247 (free_bincl_list, do_free_bincl_list_cleanup)
6248 (make_cleanup_free_bincl_list): Remove.
6249 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6250 unique_xmalloc_ptr.
6251 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6252 (struct header_file_location): Add constructor.
6253 (add_bincl_to_list): Remove.
6254
6255 2018-05-25 Tom Tromey <tom@tromey.com>
6256
6257 * tui/tui.c (tui_enable): Update.
6258 * mi/mi-interp.c (mi_interp::init): Update.
6259 * interps.h (class interp) <name>: New method.
6260 <m_name>: Rename from name.
6261 (~scoped_restore_interp): Update.
6262 * interps.c (interp::interp): Update.
6263 (interp_add, interp_set, interp_lookup_existing)
6264 (current_interp_named_p): Update.
6265
6266 2018-05-25 Tom Tromey <tom@tromey.com>
6267
6268 * interps.c (interp_name): Remove.
6269 * mi/mi-interp.c (mi_interp::init): Update.
6270 * interps.h (interp_name): Remove.
6271 (~scoped_restore_interp): Update.
6272 * tui/tui.c (tui_enable): Update.
6273
6274 2018-05-25 Tom Tromey <tom@tromey.com>
6275
6276 * utils.c (fputs_maybe_filtered): Update.
6277 * linespec.c (decode_line_full): Update.
6278 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6279 (mi_print_breakpoint_for_event, mi_solib_loaded)
6280 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6281 (mi_user_selected_context_changed): Update.
6282 * mi/mi-main.c (mi_execute_command): Update.
6283 * cli/cli-script.c (execute_control_command): Update.
6284 * python/python.c (execute_gdb_command): Update.
6285 * solib.c (info_sharedlibrary_command): Update.
6286 * interps.c (interp_ui_out): Remove.
6287 * interps.h (interp_ui_out): Remove.
6288
6289 2018-05-25 Tom Tromey <tom@tromey.com>
6290
6291 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6292 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6293 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6294
6295 2018-05-25 Tom Tromey <tom@tromey.com>
6296
6297 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6298 * interps.c (interp_exec): Use scoped_restore.
6299
6300 2018-05-25 Tom Tromey <tom@tromey.com>
6301
6302 * remote.c (remote_target::remote_file_get): Use
6303 gdb::byte_vector.
6304 (remote_target::remote_file_put): Likewise.
6305
6306 2018-05-25 Tom Tromey <tom@tromey.com>
6307
6308 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6309 a std::string.
6310 (get_pe_section_index, add_pe_exported_sym): Update.
6311 (read_pe_exported_syms): Use gdb::def_vector.
6312
6313 2018-05-25 Tom Tromey <tom@tromey.com>
6314
6315 * frame.c (remove_prev_frame): Remove.
6316 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6317
6318 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6319
6320 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6321 Remove prototypes.
6322 * mips-linux-nat.c (supply_fpregset): Always call
6323 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6324 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6325 `mips_fill_fpregset'.
6326 * mips-linux-tdep.c (mips_supply_fpregset)
6327 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6328 (mips_fill_fpregset_wrapper): Remove functions.
6329 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6330 (mips_linux_fpregset): Remove variable.
6331 (mips_linux_iterate_over_regset_sections): Use
6332 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6333 (mips_linux_o32_sigframe_init): Remove comment.
6334
6335 2018-05-25 Pedro Alves <palves@redhat.com>
6336
6337 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6338 (struct readahead_cache, struct packet_reg, struct
6339 remote_arch_state, class remote_state): Move higher up in the
6340 file.
6341 (remote_target::m_remote_state): Now an object instead of a pointer.
6342 (remote_target::get_remote_state): Adjust.
6343
6344 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6345
6346 * stack.c (select_and_print_frame): Delete.
6347 (struct function_bounds): Move struct within function.
6348 (func_command): Most content moved into new function
6349 find_frame_for_function, use new function, print result, add
6350 function comment.
6351 (find_frame_for_function): New function, now returns a result.
6352
6353 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6354
6355 * stack.c (iterate_over_block_arg_vars): Fix comment.
6356 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6357
6358 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6359
6360 PR gdb/23203
6361 * frame.c
6362 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6363 Define.
6364 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6365 Define.
6366 * frame.h (class scoped_restore_selected_frame): New class.
6367 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6368 of any exception, use scoped_restore_selected_frame to restore the
6369 frame instead.
6370
6371 2018-05-24 Pedro Alves <palves@redhat.com>
6372
6373 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6374 override.
6375
6376 2018-05-23 Tom Tromey <tom@tromey.com>
6377
6378 * complaints.c (struct complaints): Remove.
6379 (symfile_complaint_book): Remove.
6380 (series): New global.
6381 (complaint_internal): Update.
6382 (clear_complaints): Update.
6383
6384 2018-05-23 Tom Tromey <tom@tromey.com>
6385
6386 * complaints.c (counters): New global.
6387 (struct complain): Remove.
6388 (struct complaints) <root>: Remove.
6389 (complaint_sentinel): Remove.
6390 (symfile_complaint_book): Update.
6391 (find_complaint) Remove.
6392 (complaint_internal, clear_complaints): Update.
6393
6394 2018-05-23 Tom Tromey <tom@tromey.com>
6395
6396 * complaints.c (struct complain) <file, line>: Remove.
6397 (find_complaint): Remove file, line parameters.
6398 (complaint_internal): Update.
6399
6400 2018-05-23 Tom Tromey <tom@tromey.com>
6401
6402 * complaints.c (vcomplaint): Remove.
6403 (complaint_internal) Merge in contents of vcomplaint.
6404
6405 2018-05-23 Tom Tromey <tom@tromey.com>
6406
6407 * complaints.c (struct complaints) <explanation>: Remove.
6408 (symfile_explanations): Remove.
6409 (symfile_complaint_book): Update.
6410 (vcomplaint): Update.
6411 (struct explanation): Remove.
6412
6413 2018-05-23 Tom Tromey <tom@tromey.com>
6414
6415 * complaints.c (symfile_complaints): Remove.
6416 (complaint_internal): Remove "complaints" parameter.
6417 (clear_complaints, vcomplaint): Remove "c" parameter.
6418 (get_complaints): Remove.
6419 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6420 (dwarf2_debug_line_missing_file_complaint)
6421 (dwarf2_debug_line_missing_end_sequence_complaint)
6422 (dwarf2_complex_location_expr_complaint)
6423 (dwarf2_const_value_length_mismatch_complaint)
6424 (dwarf2_section_buffer_overflow_complaint)
6425 (dwarf2_macro_malformed_definition_complaint)
6426 (dwarf2_invalid_attrib_class_complaint)
6427 (create_addrmap_from_index, dw2_symtab_iter_next)
6428 (dw2_expand_marked_cus)
6429 (dw2_debug_names_iterator::find_vec_in_debug_names)
6430 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6431 (create_debug_type_hash_table, init_cutu_and_read_dies)
6432 (partial_die_parent_scope, add_partial_enumeration)
6433 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6434 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6435 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6436 (create_cus_hash_table, create_dwp_hash_table)
6437 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6438 (dwarf2_rnglists_process, dwarf2_ranges_process)
6439 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6440 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6441 (handle_struct_member_die, process_structure_scope)
6442 (read_array_type, read_common_block, read_module_type)
6443 (read_tag_pointer_type, read_typedef, read_base_type)
6444 (read_subrange_type, load_partial_dies, partial_die_info::read)
6445 (partial_die_info::read, partial_die_info::read)
6446 (partial_die_info::read, read_checked_initial_length_and_offset)
6447 (dwarf2_string_attr, read_formatted_entries)
6448 (dwarf_decode_line_header)
6449 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6450 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6451 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6452 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6453 (get_signatured_type, get_DW_AT_signature_type)
6454 (decode_locdesc, file_file_name, consume_improper_spaces)
6455 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6456 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6457 (dwarf2_symbol_mark_computed, set_die_type)
6458 (read_attribute_value): Update.
6459 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6460 Update.
6461 * dbxread.c (unknown_symtype_complaint)
6462 (lbrac_mismatch_complaint, repeated_header_complaint)
6463 (set_namestring, function_outside_compilation_unit_complaint)
6464 (read_dbx_symtab, process_one_symbol): Update.
6465 * gdbtypes.c (stub_noname_complaint): Update.
6466 * windows-nat.c (handle_unload_dll): Update.
6467 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6468 (decode_base_type): Update.
6469 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6470 (eb_complaint, record_include_begin, record_include_end)
6471 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6472 (process_xcoff_symbol, read_symbol)
6473 (function_outside_compilation_unit_complaint)
6474 (scan_xcoff_symtab): Update.
6475 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6476 * buildsym.c (finish_block_internal, make_blockvector)
6477 (end_symtab_get_static_block, augment_type_symtab): Update.
6478 * dtrace-probe.c (dtrace_process_dof)
6479 (dtrace_static_probe_ops::get_probes): Update.
6480 * complaints.h (struct complaint): Don't declare.
6481 (symfile_complaints): Remove.
6482 (complaint_internal): Remove "complaints" parameter.
6483 (complaint): Likewise.
6484 (clear_complaints): Likewise.
6485 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6486 (reread_symbols): Update.
6487 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6488 (dwarf2_frame_cache, decode_frame_entry): Update.
6489 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6490 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6491 (info_selectors_command): Update.
6492 * macrotab.c (macro_include, check_for_redefinition)
6493 (macro_undef): Update.
6494 * objfiles.c (filter_overlapping_sections): Update.
6495 * stabsread.c (invalid_cpp_abbrev_complaint)
6496 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6497 (define_symbol, error_type, read_type, rs6000_builtin_type)
6498 (stabs_method_name_from_physname, read_member_functions)
6499 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6500 (attach_fields_to_type, complain_about_struct_wipeout)
6501 (read_range_type, read_args, common_block_start)
6502 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6503 Update.
6504 * mdebugread.c (index_complaint, unknown_ext_complaint)
6505 (basic_type_complaint, bad_tag_guess_complaint)
6506 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6507 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6508 (parse_procedure, parse_lines)
6509 (function_outside_compilation_unit_complaint)
6510 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6511 (bad_tag_guess_complaint, reg_value_complaint): Update.
6512 * cp-support.c (demangled_name_complaint): Update.
6513 * macroscope.c (sal_macro_scope): Update.
6514 * dwarf-index-write.c (class debug_names): Update.
6515
6516 2018-05-23 Tom Tromey <tom@tromey.com>
6517
6518 * complaints.c (clear_complaints): Remove "noisy" parameter.
6519 * complaints.h (clear_complaints): Update.
6520 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6521 (reread_symbols): Update.
6522
6523 2018-05-23 Tom Tromey <tom@tromey.com>
6524
6525 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6526 SUBSEQUENT_MESSAGE.
6527 (vcomplaint, clear_complaints): Update.
6528 (symfile_explanations): Remove some messages.
6529
6530 2018-05-23 Tom Tromey <tom@tromey.com>
6531
6532 * complaints.c (internal_complaint): Remove.
6533 * complaints.h (internal_complaint): Remove.
6534
6535 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6536
6537 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6538
6539 2018-05-22 Pedro Alves <palves@redhat.com>
6540
6541 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6542 (remote_fileio_badfd, remote_fileio_return_errno)
6543 (remote_fileio_return_success, remote_fileio_func_open)
6544 (remote_fileio_func_open, remote_fileio_func_close)
6545 (remote_fileio_func_read, remote_fileio_func_write)
6546 (remote_fileio_func_lseek, remote_fileio_func_rename)
6547 (remote_fileio_func_unlink, remote_fileio_func_stat)
6548 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6549 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6550 remote_target parameter.
6551 (remote_fio_func_map) <func>: Add remote_target parameter.
6552 (do_remote_fileio_request, remote_fileio_request):
6553 * remote-fileio.h (remote_fileio_request):
6554 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6555 remote_target parameter.
6556 (remote_notif_process, handle_notification): Adjust to pass down
6557 the remote.
6558 (remote_notif_state_allocate): Add remote_target parameter. Save
6559 it.
6560 * remote-notif.h (struct remote_target): Forward declare.
6561 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6562 remote_target parameter.
6563 (struct remote_notif_state) <remote>: New field.
6564 (remote_notif_ack, remote_notif_parse): Add remote_target
6565 parameter.
6566 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6567 remote_target parameter.
6568 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6569 (threads_listing_context, rmt_thread_action, protocol_feature)
6570 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6571 (packet_result, struct threads_listing_context, remote_state):
6572 Move definitions and declarations higher up.
6573 (remote_target) <~remote_target>: Declare.
6574 (remote_download_command_source, remote_file_put, remote_file_get)
6575 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6576 (remote_hostio_pread_vFile, remote_hostio_send_command)
6577 (remote_hostio_set_filesystem, remote_hostio_open)
6578 (remote_hostio_close, remote_hostio_unlink, remote_state)
6579 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6580 (get_memory_write_packet_size, get_memory_read_packet_size)
6581 (append_pending_thread_resumptions, remote_detach_1)
6582 (append_resumption, remote_resume_with_vcont)
6583 (add_current_inferior_and_thread, wait_ns, wait_as)
6584 (process_stop_reply, remote_notice_new_inferior)
6585 (process_initial_stop_replies, remote_add_thread)
6586 (btrace_sync_conf, remote_btrace_maybe_reopen)
6587 (remove_new_fork_children, kill_new_fork_children)
6588 (discard_pending_stop_replies, stop_reply_queue_length)
6589 (check_pending_events_prevent_wildcard_vcont)
6590 (discard_pending_stop_replies_in_queue, stop_reply)
6591 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6592 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6593 (remote_interrupt_as, remote_interrupt_ns)
6594 (remote_get_noisy_reply, remote_query_attached)
6595 (remote_add_inferior, remote_current_thread, get_current_thread)
6596 (set_thread, set_general_thread, set_continue_thread)
6597 (set_general_process, write_ptid)
6598 (remote_unpack_thread_info_response, remote_get_threadinfo)
6599 (parse_threadlist_response, remote_get_threadlist)
6600 (remote_threadlist_iterator, remote_get_threads_with_ql)
6601 (remote_get_threads_with_qxfer)
6602 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6603 (get_offsets, remote_check_symbols, remote_supported_packet)
6604 (remote_query_supported, remote_packet_size)
6605 (remote_serial_quit_handler, remote_detach_pid)
6606 (remote_vcont_probe, remote_resume_with_hc)
6607 (send_interrupt_sequence, interrupt_query)
6608 (remote_notif_get_pending_events, fetch_register_using_p)
6609 (send_g_packet, process_g_packet, fetch_registers_using_g)
6610 (store_register_using_P, store_registers_using_G)
6611 (set_remote_traceframe, check_binary_download)
6612 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6613 (remote_xfer_live_readonly_partial, remote_read_bytes)
6614 (remote_send_printf, remote_flash_write, readchar)
6615 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6616 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6617 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6618 (extended_remote_disable_randomization, extended_remote_run)
6619 (send_environment_packet, extended_remote_environment_support)
6620 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6621 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6622 (packet_command): Now methods of ...
6623 (remote_target): ... this class.
6624 (m_remote_state) <remote_target>: New field.
6625 (struct remote_state) <stop_reply_queue,
6626 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6627 fields.
6628 (remote_state::remote_state): Allocate stop_reply_queue.
6629 (remote_state): Delete global.
6630 (get_remote_state_raw): Delete.
6631 (remote_target::get_remote_state): Allocate m_remote_state on
6632 demand.
6633 (get_current_remote_target): New.
6634 (remote_ops, extended_remote_ops): Delete.
6635 (wait_forever_enabled_p, remote_async_inferior_event_token):
6636 Delete, moved to struct remote_state.
6637 (remote_target::close): Delete self. Destruction bits split to
6638 ...
6639 (remote_target::~remote_target): ... this.
6640 (show_memory_packet_size): Adjust to use
6641 get_current_remote_target.
6642 (struct protocol_feature) <func>: Add remote_target parameter.
6643 All callers adjusted.
6644 (curr_quit_handler_target): New.
6645 (remote_serial_quit_handler): Reimplement.
6646 (remote_target::open_1): Adjust to use get_current_remote_target.
6647 Heap-allocate remote_target/extended_remote_target instances.
6648 (vcont_builder::vcont_builder): Add remote_target parameter, and
6649 save it in m_remote. All callers adjusted.
6650 (vcont_builder::m_remote): New field.
6651 (vcont_builder::restart, vcont_builder::flush)
6652 (vcont_builder::push_action): Use it.
6653 (remote_target::commit_resume): Use it.
6654 (struct queue_iter_param) <remote>: New field.
6655 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6656 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6657 (check_pending_event_prevents_wildcard_vcont_callback)
6658 (remote_target::check_pending_events_prevent_wildcard_vcont)
6659 (remote_target::discard_pending_stop_replies)
6660 (remote_target::discard_pending_stop_replies_in_queue)
6661 (remote_target::remote_notif_remove_queued_reply): Fill in
6662 'remote' field.
6663 (remote_notif_get_pending_events): New.
6664 (remote_target::readchar, remote_target::remote_serial_write):
6665 Save/restore curr_quit_handler_target.
6666 (putpkt): New.
6667 (kill_new_fork_children): Fill in 'remote' field.
6668 (packet_command): Use get_current_remote_target, defer to
6669 remote_target method of same name.
6670 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6671 parameter, and save it in m_remote. All callers adjusted.
6672 (scoped_remote_fd::release): Use m_remote.
6673 (scoped_remote_fd::m_remote): New field.
6674 (remote_file_put, remote_file_get, remote_file_delete): Use
6675 get_current_remote_target, defer to remote_target method of same
6676 name.
6677 (remote_btrace_reset): Add remote_state paremeter. Update all
6678 callers.
6679 (remote_async_inferior_event_handler). Pass down 'data'.
6680 (remote_new_objfile): Use get_current_remote_target.
6681 (remote_target::vcont_r_supported): New.
6682 (set_range_stepping): Use get_current_remote_target and
6683 remote_target::vcont_r_supported.
6684 (_initialize_remote): Don't allocate 'remote_state' and
6685 'stop_reply_queue' globals.
6686 * remote.h (struct remote_target): Forward declare.
6687 (getpkt, putpkt, remote_notif_get_pending_events): Add
6688 'remote_target' parameter.
6689
6690 2018-05-22 Pedro Alves <palves@redhat.com>
6691
6692 * remote.c (vcont_builder): Now a class. Make all data members
6693 private.
6694 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6695 Declare methods.
6696 (vcont_builder_restart): Rename to ...
6697 (vcont_builder::restart): ... this.
6698 (vcont_builder_flush): Rename to ...
6699 (vcont_builder::flush): ... this.
6700 (vcont_builder_push_action): Rename to ...
6701 (vcont_builder::push_action): ... this.
6702 (remote_target::commit_resume): Adjust.
6703
6704 2018-05-22 Pedro Alves <palves@redhat.com>
6705
6706 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6707 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6708 (get_fixed_memory_packet_size): New.
6709 (get_memory_packet_size): Use it.
6710 (set_memory_packet_size): Don't override the config size with
6711 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6712 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6713 Don't refer to get_memory_packet_size if not connected to a remote
6714 target. Show "(default)" if configured size is 0.
6715
6716 2018-05-22 Pedro Alves <palves@redhat.com>
6717
6718 * remote.c (remote_target::mourn_inferior): Move
6719 discard_pending_stop_replies call here from ...
6720 (_initialize_remote): ... here.
6721
6722 2018-05-22 Pedro Alves <palves@redhat.com>
6723
6724 * remote.c (compare_section_command): Remove set_general_process
6725 call.
6726
6727 2018-05-22 Pedro Alves <palves@redhat.com>
6728
6729 * remote.c (struct packet_reg, struct remote_arch_state):
6730 Move higher up in the file.
6731 (remote_state) <m_arch_states>: Store remote_arch_state values
6732 instead of remote_arch_state pointers.
6733 (remote_state::get_remote_arch_state): Adjust.
6734
6735 2018-05-22 Pedro Alves <palves@redhat.com>
6736
6737 * remote.c: Include <unordered_map>.
6738 (remote_state): Now a class.
6739 (remote_state) <get_remote_arch_state>: Declare method.
6740 <get_remote_arch_state>: New field.
6741 (remote_arch_state) <remote_arch_state>: Declare ctor.
6742 <regs>: Now a unique_ptr.
6743 (remote_gdbarch_data_handle): Delete.
6744 (get_remote_arch_state): Delete.
6745 (remote_state::get_remote_arch_state): New.
6746 (get_remote_state): Adjust to call remote_state's
6747 get_remote_arch_state method.
6748 (init_remote_state): Delete, bits factored out to ...
6749 (remote_arch_state::remote_arch_state): ... this new method.
6750 (get_remote_packet_size, get_memory_packet_size)
6751 (process_g_packet, remote_target::fetch_registers)
6752 (remote_target::prepare_to_store, store_registers_using_G)
6753 (remote_target::store_registers, remote_target::get_trace_status):
6754 Adjust to call remote_state's method.
6755 (_initialize_remote): Remove reference to
6756 remote_gdbarch_data_handle.
6757
6758 2018-05-22 Pedro Alves <palves@redhat.com>
6759
6760 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6761 pread>: New method declarations.
6762 (remote_target::open_1): Adjust.
6763 (readahead_cache_invalidate): Rename to ...
6764 (readahead_cache::invalidate): ... this, and adjust to be a class
6765 method.
6766 (readahead_cache_invalidate_fd): Rename to ...
6767 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6768 class method.
6769 (remote_hostio_pwrite): Adjust.
6770 (remote_hostio_pread_from_cache): Rename to ...
6771 (readahead_cache::pread): ... this, and adjust to be a class
6772 method.
6773 (remote_hostio_close): Adjust.
6774
6775 2018-05-22 Pedro Alves <palves@redhat.com>
6776
6777 * remote.c (remote_hostio_close_cleanup): Delete.
6778 (class scoped_remote_fd): New.
6779 (remote_file_put, remote_file_get): Use it.
6780
6781 2018-05-22 Pedro Alves <palves@redhat.com>
6782
6783 (struct vCont_action_support): Use bool and initialize all fields.
6784 (struct readahead_cache): Initialize all fields.
6785 (remote_state): Use bool and initialize all fields.
6786 (remote_state::remote_state, remote_state::~remote_state): New.
6787 (new_remote_state): Delete.
6788 (_initialize_remote): Use new to allocate remote_state.
6789
6790 2018-05-22 Pedro Alves <palves@redhat.com>
6791 張俊芝 <zjz@zjz.name>
6792
6793 PR gdb/22973
6794 * c-exp.y: Include "c-support.h".
6795 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6796 of tolower. Use c_ident_is_alpha to scan names.
6797 * c-lang.c: Include "c-support.h".
6798 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6799 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6800 * c-support.h: New file, with bits factored out from ...
6801 * cp-name-parser.y: ... this file.
6802 Include "c-support.h".
6803 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6804 c-support.h and renamed.
6805 (symbol_end, yylex): Adjust.
6806
6807 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6808
6809 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6810 parameter type to CORE_ADDR.
6811 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6812 parameter type in declaration to CORE_ADDR.
6813 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6814 target_auxv_search to get AT_HWCAP and use the result to get the
6815 target description.
6816 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6817 to CORE_ADDR. Remove the cast of the return value to unsigned
6818 long. Fix error predicate of target_auxv_search.
6819 (ppc_linux_nat_target::read_description): Change the type of the
6820 hwcap variable to CORE_ADDR.
6821
6822 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6823
6824 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6825 if the size of fpscr is larger than 32 bits.
6826
6827 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6828
6829 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6830 (ppc32_linux_vsxregmap): New global.
6831 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6832 regcache_supply_regset, and regcache_collect_regset.
6833 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6834 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6835 (fetch_vsx_register, store_vsx_register): Remove.
6836 (fetch_vsx_registers): Add regno parameter. Get regset using
6837 ppc_linux_vsxregset. Use regset to supply registers.
6838 (store_vsx_registers): Add regno parameter. Get regset using
6839 ppc_linux_vsxregset. Use regset to collect registers.
6840 (fetch_register): Call fetch_vsx_registers instead of
6841 fetch_vsx_register.
6842 (store_register): Call store_vsx_registers instead of
6843 store_vsx_register.
6844 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6845 new regno parameter.
6846 (store_ppc_registers): Call store_vsx_registers with -1 for the
6847 new regno parameter.
6848 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6849 (ppc_collect_vsxregset): Remove.
6850
6851 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6852
6853 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6854 offset fields.
6855 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6856 for vector register offset fields.
6857 (ppc64_fbsd_reg_offsets): Likewise.
6858 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6859 to vector register offset fields.
6860 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6861 to vector register offset fields.
6862 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6863 vector register offset fields.
6864 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6865 initializers for vector register offset fields.
6866 (rs6000_aix64_reg_offsets): Likewise.
6867 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6868 (ppc_supply_vrregset): Remove.
6869 (ppc_collect_vrregset): Remove.
6870 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6871 (ppc_linux_vrregset) : New function.
6872 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6873 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6874 (ppc32_linux_vrregset): Remove.
6875 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6876 and use result instead of ppc32_linux_vrregset.
6877 (ppc32_linux_reg_offsets): Remove initializers for vector register
6878 offset fields.
6879 (ppc64_linux_reg_offsets): Likewise.
6880 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6881 * ppc-linux-nat.c: Include regset.h.
6882 (gdb_vrregset_t): Adjust comment to account for little-endian
6883 mode.
6884 (supply_vrregset, fill_vrregset): Remove.
6885 (fetch_altivec_register, store_altivec_register): Remove.
6886 (fetch_altivec_registers): Add regno parameter. Get regset using
6887 ppc_linux_vrregset. Use regset to supply registers.
6888 (store_altivec_registers): Add regno parameter. Get regset using
6889 ppc_linux_vrregset. Use regset to collect registers.
6890 (fetch_register): Call fetch_altivec_registers instead of
6891 fetch_altivec_register.
6892 (store_register): Call store_altivec_registers instead of
6893 store_altivec_register.
6894 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6895 the new regno parameter.
6896 (store_ppc_registers): Call store_altivec_registers with -1 for
6897 the new regno parameter.
6898
6899 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6900
6901 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6902 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6903 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6904 (gdb_vrregset_t): Change array type size to
6905 PPC_LINUX_SIZEOF_VRREGSET.
6906 (gdb_vsxregset_t): Change array type size to
6907 PPC_LINUX_SIZEOF_VSXREGSET.
6908 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6909 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6910 PPC_LINUX_SIZEOF_VSXREGSET.
6911
6912 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6913
6914 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6915 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6916 nat/ppc-linux.c.
6917 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6918 ppc_linux_target_wordsize with tid.
6919 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6920 wordsize with tid.
6921 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6922 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6923 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6924 tid parameter. Remove static specifier.
6925 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6926 (ppc_linux_target_wordsize): New declaration.
6927
6928 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6929
6930 * arch/ppc-linux-common.c: New file.
6931 * arch/ppc-linux-common.h: New file.
6932 * arch/ppc-linux-tdesc.h: New file.
6933 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6934 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6935 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6936 arch/ppc-linux-tdesc.h.
6937 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6938 arch/ppc-linux-tdesc.h.
6939 (ppc_linux_nat_target::read_description): Remove target
6940 description matching code. Fill a ppc_linux_features struct and
6941 call ppc_linux_match_description with it. Move comment about ISA
6942 2.05 to ppc-linux-common.c.
6943 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6944 arch/ppc-linux-tdesc.h.
6945 (ppc_linux_core_read_description): Remove target description
6946 matching code. Fill a ppc_linux_features struct and call
6947 ppc_linux_match_description with it.
6948 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6949 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6950 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6951 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6952 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6953 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6954 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6955 (tdesc_powerpc_e500l): Remove.
6956
6957 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6958
6959 * ada-lang.c (catch_assert_command): Pass empty string instead
6960 of NULL for excep_string argument.
6961
6962 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6963
6964 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6965 the width of the requested register exceeds the width of the
6966 `ptrace' data type.
6967
6968 2018-05-21 Tom Tromey <tom@tromey.com>
6969
6970 * printcmd.c (output_command): Remove.
6971 (output_command_const): Rename to output_command.
6972 * valprint.h (output_command): Rename from output_command_const.
6973 * tracepoint.c (trace_dump_actions): Call output_command.
6974
6975 2018-05-21 Tom Tromey <tom@tromey.com>
6976
6977 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6978 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6979 * ada-lang.h (create_ada_exception_catchpoint): Update.
6980 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6981 std::string.
6982 (create_excep_cond_exprs, ~ada_catchpoint)
6983 (should_stop_exception, print_one_exception)
6984 (print_mention_exception, print_recreate_exception): Update.
6985 (ada_get_next_arg): Remove.
6986 (catch_ada_exception_command_split): Use std::string. Change type
6987 of "excep_string", "cond_string".
6988 (catch_ada_exception_command): Update.
6989 (create_ada_exception_catchpoint): Change type of excep_string.
6990 (ada_exception_sal): Remove excep_string parameter.
6991 (~ada_catchpoint): Remove.
6992
6993 2018-05-21 Tom Tromey <tom@tromey.com>
6994
6995 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6996 cleanup.
6997
6998 2018-05-21 Tom Tromey <tom@tromey.com>
6999
7000 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7001 Return unique_xmalloc_ptr.
7002 (print_it_exception): Update.
7003
7004 2018-05-21 Tom Tromey <tom@tromey.com>
7005
7006 * tracepoint.c (trace_dump_actions): Use std::string.
7007
7008 2018-05-21 Tom Tromey <tom@tromey.com>
7009
7010 * symfile.c (reread_symbols): Use std::string for original_name.
7011
7012 2018-05-21 Tom Tromey <tom@tromey.com>
7013
7014 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7015 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7016 constructor.
7017
7018 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7019
7020 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7021 instance to...
7022 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7023 * objfiles.c (get_objfile_bfd_data): Allocate
7024 objfile_per_bfd_storage with obstack_new when allocating on
7025 obstack.
7026
7027 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7028
7029 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7030 OBSTACK_ZALLOC.
7031 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7032 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7033 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7034 (add_pending): Likewise.
7035 (parse_symbol): Likewise.
7036 (parse_partial_symbols): Likewise.
7037 (psymtab_to_symtab_1): Likewise.
7038 (new_psymtab): Likewise.
7039 (elfmdebug_build_psymtabs): Likewise.
7040 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7041 * objfiles.c (get_objfile_bfd_data): Likewise.
7042 (objfile_register_static_link): Likewise.
7043 * psymtab.c (allocate_psymtab): Likewise.
7044 * stabsread.c (read_member_functions): Likewise.
7045 * xcoffread.c (xcoff_end_psymtab): Likewise.
7046
7047 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7048
7049 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7050 compiler supports std::is_trivially_constructible.
7051 * common/poison.h: Include obstack.h.
7052 (IsMallocable): Define to is_trivially_constructible if the
7053 compiler supports it, define to true_type otherwise.
7054 (xobnew): New.
7055 (XOBNEW): Redefine.
7056 (xobnewvec): New.
7057 (XOBNEWVEC): Redefine.
7058 * gdb_obstack.h (obstack_zalloc): New.
7059 (OBSTACK_ZALLOC): Redefine.
7060 (obstack_calloc): New.
7061 (OBSTACK_CALLOC): Redefine.
7062 (obstack_new): New.
7063 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7064 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7065 gdbarch.c.
7066 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7067 obstack_calloc/obstack_zalloc.
7068 (gdbarch_obstack_zalloc): Remove.
7069 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7070
7071 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7072
7073 * stack.c (backtrace_command_1): Remove useless variable int i.
7074
7075 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7076
7077 * stack.c (print_frame_info): Fix comment.
7078
7079 2018-05-18 Tom Tromey <tom@tromey.com>
7080
7081 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7082 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7083 (~dwarf2_per_objfile): Update
7084 (dwarf2_get_dwz_file): Use new.
7085 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7086 unique_ptr.
7087
7088 2018-05-18 Tom Tromey <tom@tromey.com>
7089
7090 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7091 unique_ptr.
7092 * dwarf2read.c (struct dwp_file): Add constructor and
7093 initializers.
7094 (open_and_init_dwp_file): Return a unique_ptr.
7095 (dwarf2_per_objfile, create_dwp_hash_table)
7096 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7097 (lookup_dwo_unit_in_dwp): Update.
7098 (open_and_init_dwp_file, get_dwp_file): Update.
7099
7100 2018-05-18 Tom Tromey <tom@tromey.com>
7101
7102 * dwarf2read.c (dwarf2_per_objfile): Update.
7103 (struct mapped_index): Add initializers.
7104 (dwarf2_read_index): Use new.
7105 (dw2_symtab_iter_init): Update.
7106 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7107 unique_ptr.
7108
7109 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7110
7111 * dwarf2read.c (mapped_index) <total_size>: Remove.
7112
7113 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7114
7115 * unittests/format_pieces-selftests.c (test_format_specifier):
7116 Add ARI comments.
7117
7118 2018-05-18 Tom Tromey <tom@tromey.com>
7119
7120 * c-typeprint.c (maybe_print_hole): New function.
7121 (c_print_type_struct_field_offset): Update.
7122 (c_type_print_base_struct_union): Call maybe_print_hole.
7123
7124 2018-05-17 Keith Seitz <keiths@redhat.com>
7125
7126 * breakpoint.c (build_bpstat_chain): New function, moved from
7127 bpstat_stop_status.
7128 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7129 If no stop chain is passed, call build_bpstat_chain to build it.
7130 * breakpoint.h (build_bpstat_chain): Declare.
7131 (bpstat_stop_status): Move documentation here from breakpoint.c.
7132 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7133 build the stop chain and pass it to skip_inline_frames.
7134 Pass this stop chain to bpstat_stop_status.
7135 * inline-frame.c: Include breakpoint.h.
7136 (stopped_by_user_bp_inline_frame): New function.
7137 (skip_inline_frames): Add parameter `stop_chain'.
7138 Move documention to inline-frame.h.
7139 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7140 whether the frame should be elided.
7141 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7142 Add moved documentation and update for new parameter.
7143
7144 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7145
7146 PR cli/14975
7147 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7148 unittests/format_pieces-selftests.c.
7149 * common/format.h (format_piece) <operator==>: New.
7150 (format_pieces) <operator[]>: Remove.
7151 * common/format.c (format_pieces::format_pieces): Handle \e.
7152 * unittests/format_pieces-selftests.c: New.
7153
7154 2018-05-17 Tom Tromey <tom@tromey.com>
7155
7156 PR symtab/23010:
7157 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7158 (dw2_instantiate_symtab): Add skip_partial parameter.
7159 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7160 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7161 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7162 (dw2_expand_symtabs_matching_one)
7163 (dw2_find_pc_sect_compunit_symtab)
7164 (dw2_debug_names_lookup_symbol)
7165 (dw2_debug_names_expand_symtabs_for_function): Update.
7166 (init_cutu_and_read_dies): Add skip_partial parameter.
7167 (process_psymtab_comp_unit, build_type_psymtabs_1)
7168 (process_skeletonless_type_unit, load_partial_comp_unit)
7169 (psymtab_to_symtab_1): Update.
7170 (load_full_comp_unit): Add skip_partial parameter.
7171 (process_imported_unit_die, dwarf2_read_addr_index)
7172 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7173 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7174 (read_signatured_type): Update.
7175
7176 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7177
7178 * value.c (release_value): Remove unused variable.
7179 (record_latest_value): Likewise.
7180 (access_value_history): Likewise.
7181 (preserve_values): Likewise.
7182
7183 2018-05-17 Tom Tromey <tom@tromey.com>
7184
7185 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7186 Initialize.
7187
7188 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7189
7190 PR gdb/22286
7191 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7192 Also handle registers whose width is not a multiple of
7193 PTRACE_TYPE_RET.
7194 (linux_nat_trad_target::store_register): Likewise.
7195
7196 2018-05-16 Tom Tromey <tom@tromey.com>
7197
7198 * gdbcore.h (core_bfd): Redefine.
7199 * corelow.c (core_target::close): Update.
7200 (core_target_open): Update.
7201 * progspace.h (struct program_space) <cbfd>: Now a
7202 gdb_bfd_ref_ptr.
7203
7204 2018-05-16 Tom Tromey <tom@tromey.com>
7205
7206 PR cli/19551:
7207 * symfile-add-flags.h (enum symfile_add_flags)
7208 <SYMFILE_NOT_FILENAME>: New constant.
7209 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7210 objfile name from BFD.
7211 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7212 * minidebug.c (find_separate_debug_file_in_section): Put
7213 ".gnu_debugdata" into BFD's file name.
7214
7215 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7216
7217 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7218 Remove.
7219
7220 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7221
7222 PR binutils/21446
7223 * aarch64-tdep.c (aarch64_analyze_prologue,
7224 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7225 Indicate not interested in errors.
7226
7227 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7228
7229 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7230 Supply the MIPS_ZERO_REGNUM register.
7231
7232 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7233
7234 * mips-tdep.c (mask_address_var): Make variable static.
7235
7236 2018-05-14 Tom Tromey <tom@tromey.com>
7237
7238 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7239
7240 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7241
7242 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7243 FXSAVE_ADDR for the mxcsr register.
7244
7245 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7246
7247 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7248
7249 2018-05-11 Pedro Alves <palves@redhat.com>
7250
7251 * corelow.c (core_target) <core_target>: No longer inline.
7252 Initialize m_core_gdbarch, m_core_vec and build the section table
7253 here.
7254 <~core_target>: New.
7255 <core_gdbarch, get_core_register_section>: New methods.
7256 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7257 factored out from ...
7258 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7259 (core_ops): Delete.
7260 (sniff_core_bfd): Add gdbarch parameter.
7261 (core_close): Delete, merged into ...
7262 (core_target::close): ... here. Delete self.
7263 (core_close_cleanup): Delete.
7264 (core_target_open): Allocate a core_target on the heap. Use a
7265 unique_ptr instead of a cleanup. Bits moved into the core_target
7266 ctor. Adjust to use core_target methods instead of globals.
7267 (get_core_register_section): Rename to ...
7268 (core_target::get_core_register_section): ... this and adjust.
7269 (struct get_core_registers_cb_data): New.
7270 (get_core_registers_cb): Use it. Use bool.
7271 (core_target::fetch_registers, core_target::files_info)
7272 (core_target::xfer_partial, core_target::read_description)
7273 (core_target::pid_to, core_target::thread_name): Adjust to
7274 reference class fields instead of globals.
7275 * target.h (struct target_ops_deleter, target_ops_up): New.
7276
7277 2018-05-11 Pedro Alves <palves@redhat.com>
7278
7279 * corefile.c (core_file_command): Move to corelow.c.
7280 * corelow.c (the_core_target): Delete.
7281 (core_file_command): Moved from corefile.c. Check exec_bfd
7282 instead of the_core_target. Use target_detach instead of calling
7283 into the_core_target directly.
7284 (maybe_say_no_core_file_now): New.
7285 (core_target::detach): Use it.
7286 (_initialize_corelow): Remove references to the_core_target.
7287 * gdbcore.h (the_core_target): Delete.
7288
7289 2018-05-11 Tom Tromey <tromey@redhat.com>
7290 Pedro Alves <palves@redhat.com>
7291
7292 * corefile.c (core_bfd): Remove.
7293 * gdbcore.h (core_bfd): Now a macro.
7294 * progspace.h (struct program_space) <cbfd>: New field.
7295
7296 2018-05-11 Tom Tromey <tom@tromey.com>
7297
7298 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7299 gdb::def_vector.
7300
7301 2018-05-10 Tom Tromey <tom@tromey.com>
7302
7303 * configure: Rebuild.
7304 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7305
7306 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7307
7308 PR server/23158:
7309 * regformats/regdat.sh: Adjust script, following the addition
7310 of the new expedite_regs parameter to init_target_desc.
7311
7312 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7313
7314 PR gdb/23127
7315 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7316 set_gdbarch_significant_addr_bit.
7317 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7318 set_gdbarch_significant_addr_bit.
7319 * utils.c (address_significant): Update to sign extend addr.
7320
7321 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7322
7323 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7324 (xtensa_linux_init_abi): Limit tdep->num_regs by
7325 tdep->num_nopriv_regs.
7326 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7327 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7328 not initialized.
7329
7330 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7331
7332 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7333
7334 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7335
7336 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7337 (I387_MXCSR_INIT_VAL): New constant.
7338 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7339 buffer if it was supplied by the inferior.
7340 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7341 (i387_xsave_get_clear_bv): New function.
7342 (i387_supply_xsave): Only read x87 control registers from the
7343 xsave buffer if the feature is enabled, and the state will have
7344 been written, otherwise, provide a suitable default.
7345 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7346 including x87 control registers. Update control registers if they
7347 have changed from the default value, and mark features as enabled
7348 as required.
7349 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7350
7351 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7352
7353 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7354
7355 2018-05-07 Tom Tromey <tom@tromey.com>
7356
7357 * configure: Rebuild.
7358 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7359
7360 2018-05-07 Tom Tromey <tom@tromey.com>
7361
7362 PR tdep/20362:
7363 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7364 bit. Use correct value for VDIV.
7365
7366 2018-05-04 Tom Tromey <tom@tromey.com>
7367
7368 * configure: Rebuild.
7369 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7370
7371 2018-05-04 Tom Tromey <tom@tromey.com>
7372
7373 * linux-record.c (record_linux_system_call) <case
7374 RECORD_SYS_RECVFROM>: Add "break".
7375
7376 2018-05-04 Tom Tromey <tom@tromey.com>
7377
7378 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7379 Add missing "break".
7380 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7381 Add missing "break".
7382
7383 2018-05-04 Tom Tromey <tom@tromey.com>
7384
7385 * rs6000-tdep.c (ppc_process_record_op4)
7386 (ppc_process_record_op63): Add fall-through comment.
7387
7388 2018-05-04 Tom Tromey <tom@tromey.com>
7389
7390 * i386-tdep.c (i386_process_record): Add fall-through comment.
7391
7392 2018-05-04 Tom Tromey <tom@tromey.com>
7393
7394 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7395 comment.
7396
7397 2018-05-04 Tom Tromey <tom@tromey.com>
7398
7399 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7400 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7401 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7402 comment.
7403 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7404 comment.
7405 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7406 comment.
7407
7408 2018-05-04 Tom Tromey <tom@tromey.com>
7409
7410 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7411
7412 2018-05-04 Tom Tromey <tom@tromey.com>
7413
7414 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7415 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7416 * symfile.c (section_is_mapped): Fix fall-through comment.
7417 * stabsread.c (define_symbol, read_member_functions): Fix
7418 fall-through comment.
7419 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7420 comment.
7421 * remote.c (remote_wait_as): Fix fall-through comment.
7422 * p-exp.y (yylex): Fix fall-through comment.
7423 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7424 comment.
7425 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7426 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7427 * jv-exp.y (yylex): Fix fall-through comment.
7428 * go-exp.y (lex_one_token): Fix fall-through comment.
7429 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7430 fall-through comment.
7431 * f-exp.y (yylex): Fix fall-through comment.
7432 * dwarf2read.c (process_die): Fix fall-through comments.
7433 * dbxread.c (process_one_symbol): Fix fall-through comment.
7434 * d-exp.y (lex_one_token): Fix fall-through comment.
7435 * cp-name-parser.y (yylex): Fix fall-through comment.
7436 * coffread.c (coff_symtab_read): Fix fall-through comment.
7437 * c-exp.y (lex_one_token): Fix fall-through comment.
7438 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7439 comment.
7440 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7441 comment.
7442
7443 2018-05-04 Tom Tromey <tom@tromey.com>
7444
7445 PR python/22730:
7446 * NEWS: Mention gdb.execute change.
7447 * gdbcmd.h (execute_control_command): Don't declare.
7448 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7449 execute_control_commands, execute_control_commands_to_string.
7450 * cli/cli-script.h (execute_control_commands)
7451 (execute_control_commands_to_string): Declare.
7452 (execute_control_command): Add from_tty parameter.
7453 * cli/cli-script.c (execute_control_commands)
7454 (execute_control_commands_to_string): New functions.
7455 (execute_user_command): Use execute_control_commands.
7456 (execute_control_command_1): Add "from_tty" parameter. Update.
7457 (execute_control_command): Likewise.
7458
7459 2018-05-04 Tom Tromey <tom@tromey.com>
7460
7461 PR python/22731:
7462 * NEWS: Mention that breakpoint commands are writable.
7463 * python/py-breakpoint.c (bppy_set_commands): New function.
7464 (breakpoint_object_getset) <"commands">: Use it.
7465
7466 2018-05-04 Tom Tromey <tom@tromey.com>
7467
7468 * tracepoint.c (actions_command): Update.
7469 * mi/mi-cmd-break.c (mi_command_line_array)
7470 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7471 (mi_read_next_line): Remove.
7472 (mi_cmd_break_commands): Update.
7473 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7474 function_view.
7475 * cli/cli-script.c (get_command_line): Update.
7476 (process_next_line): Use function_view. Constify.
7477 (recurse_read_control_structure, read_command_lines)
7478 (read_command_lines_1): Change argument types to function_view.
7479 (do_define_command, document_command): Update.
7480 * breakpoint.h (check_tracepoint_command): Don't declare.
7481 * breakpoint.c (check_tracepoint_command): Remove.
7482 (commands_command_1, create_tracepoint_from_upload): Update.
7483
7484 2018-05-04 Tom Tromey <tom@tromey.com>
7485
7486 PR gdb/11750:
7487 * cli/cli-script.h (enum command_control_type) <define_control>:
7488 New constant.
7489 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7490 (build_command_line, execute_control_command_1)
7491 (process_next_line): Likewise.
7492 (do_define_command): New function, extracted from define_command.
7493 (define_command): Use it.
7494
7495 2018-05-04 Tom Tromey <tom@tromey.com>
7496
7497 * tracepoint.c (actions_command): Update.
7498 * cli/cli-script.h (read_command_lines): Update.
7499 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7500 (MAX_TMPBUF): Remove define.
7501 (define_command): Use string_printf.
7502 (document_command): Likewise.
7503 * breakpoint.c (commands_command_1): Update.
7504
7505 2018-05-04 Tom Tromey <tom@tromey.com>
7506
7507 * top.c (execute_command): Update.
7508 * cli/cli-script.h (print_command_lines): Now varargs.
7509 * cli/cli-script.c (print_command_lines): Now varargs.
7510 (execute_control_command_1) <case while_control, case if_control>:
7511 Update.
7512
7513 2018-05-04 Tom Tromey <tom@tromey.com>
7514
7515 * tracepoint.c (all_tracepoint_actions): Rename from
7516 all_tracepoint_actions_and_cleanup. Change return type.
7517 (actions_command, encode_actions_1, encode_actions)
7518 (trace_dump_actions, tdump_command): Update.
7519 * remote.c (remote_download_command_source): Update.
7520 * python/python.c (gdbpy_eval_from_control_command)
7521 (python_command, python_interactive_command): Update.
7522 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7523 * guile/guile.c (guile_command)
7524 (gdbscm_eval_from_control_command, guile_command): Update.
7525 * compile/compile.c (compile_code_command)
7526 (compile_print_command, compile_to_object): Update.
7527 * cli/cli-script.h (struct command_lines_deleter): New.
7528 (counted_command_line): New typedef.
7529 (struct command_line): Add constructor, destructor.
7530 <body_list>: Remove.
7531 <body_list_0, body_list_1>: New members.
7532 (command_line_up): Remove typedef.
7533 (read_command_lines, read_command_lines_1, get_command_line):
7534 Update.
7535 (copy_command_lines): Don't declare.
7536 * cli/cli-script.c (build_command_line): Use "new".
7537 (get_command_line): Return counted_command_line.
7538 (print_command_lines, execute_user_command)
7539 (execute_control_command_1, while_command, if_command): Update.
7540 (realloc_body_list): Remove.
7541 (process_next_line, recurse_read_control_structure): Update.
7542 (read_command_lines, read_command_lines_1): Return counted_command_line.
7543 (free_command_lines): Use "delete".
7544 (copy_command_lines): Remove.
7545 (define_command, document_command, show_user_1): Update.
7546 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7547 a counted_command_line.
7548 * breakpoint.h (counted_command_line): Remove typedef.
7549 (breakpoint_set_commands): Update.
7550 * breakpoint.c (check_no_tracepoint_commands)
7551 (validate_commands_for_breakpoint): Update.
7552 (breakpoint_set_commands): Change commands to be a
7553 counted_command_line.
7554 (commands_command_1, update_dprintf_command_list)
7555 (create_tracepoint_from_upload): Update.
7556
7557 2018-05-04 Tom Tromey <tom@tromey.com>
7558
7559 * cli/cli-decode.h (cmd_list_element): New constructor.
7560 (~cmd_list_element): New destructor.
7561 (struct cmd_list_element): Add initializers.
7562 * cli/cli-decode.c (do_add_cmd): Use "new".
7563 (delete_cmd): Use "delete".
7564
7565 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7566 Pedro Alves <palves@redhat.com>
7567
7568 PR breakpoints/19806 and support for PR external/20207.
7569 * NEWS: Mention Aarch64 watchpoint improvements.
7570 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7571 watchpoints and PR external/20207 watchpoints.
7572 * nat/aarch64-linux-hw-point.c
7573 (kernel_supports_any_contiguous_range): New.
7574 (aarch64_watchpoint_offset): New.
7575 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7576 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7577 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7578 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7579 next_addr_orig_p. Support PR external/20207 watchpoints.
7580 (aarch64_downgrade_regs): New.
7581 (aarch64_dr_state_insert_one_point): New parameters offset and
7582 addr_orig.
7583 (aarch64_dr_state_remove_one_point): Likewise.
7584 (aarch64_handle_breakpoint): Update caller.
7585 (aarch64_handle_aligned_watchpoint): Likewise.
7586 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7587 aligned_offset.
7588 (aarch64_linux_set_debug_regs): Remove const from state. Call
7589 aarch64_downgrade_regs.
7590 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7591 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7592 (DR_CONTROL_MASK): ... this.
7593 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7594 (unsigned int aarch64_watchpoint_offset): New prototype.
7595 (aarch64_linux_set_debug_regs): Remove const from state.
7596 * utils.c (align_up, align_down): Move to ...
7597 * common/common-utils.c (align_up, align_down): ... here.
7598 * utils.h (align_up, align_down): Move to ...
7599 * common/common-utils.h (align_up, align_down): ... here.
7600
7601 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7602
7603 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7604 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7605 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7606 Re-implement to match the ABI as summarized in GCC's
7607 gcc/config/sparc/sparc.c. All callers updated.
7608 (sparc32_store_arguments): Remove assertion.
7609
7610 2018-05-04 Tom Tromey <tom@tromey.com>
7611
7612 * printcmd.c: Don't include tui.h.
7613 (decode_format): Use skip_spaces.
7614
7615 2018-05-04 Tom Tromey <tom@tromey.com>
7616
7617 PR gdb/22619:
7618 * printcmd.c (last_count): New global.
7619 (x_command): Use saved count when repeating.
7620
7621 2018-05-04 Tom Tromey <tom@tromey.com>
7622
7623 * nto-procfs.c (do_closedir_cleanup): Remove.
7624 (procfs_pidlist): Use gdb_dir_up.
7625 * procfs.c (do_closedir_cleanup): Remove.
7626 (proc_update_threads): Use gdb_dir_up.
7627 * common/filestuff.h (struct gdb_dir_deleter): New.
7628 (gdb_dir_up): New typedef.
7629
7630 2018-05-04 Tom Tromey <tom@tromey.com>
7631
7632 * ada-lang.c (print_mention_exception): Use std::string.
7633
7634 2018-05-04 Tom Tromey <tom@tromey.com>
7635
7636 * ada-lang.c (create_excep_cond_exprs): Update.
7637 (ada_exception_catchpoint_cond_string): Use std::string.
7638
7639 2018-05-04 Tom Tromey <tom@tromey.com>
7640
7641 * ada-lang.c (xget_renaming_scope): Return std::string.
7642 (old_renaming_is_invisible): Update.
7643
7644 2018-05-04 Tom Tromey <tom@tromey.com>
7645
7646 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7647 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7648
7649 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7650
7651 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7652
7653 2018-05-04 Tom Tromey <tom@tromey.com>
7654
7655 * remote.c (remote_query_supported_append): Change type.
7656 (remote_check_symbols): Update.
7657
7658 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7659
7660 PR gdb/11420
7661 * configure.ac: Prepend libpython.
7662 * python/python-config.py: Likewise.
7663 * configure: Regenerate.
7664
7665 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7666
7667 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7668
7669 2018-05-03 Pedro Alves <palves@redhat.com>
7670
7671 * s390-linux-nat.c
7672 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7673 override. Write 'true' instead of '1'.
7674 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7675 declaration.
7676
7677 2018-05-02 Pedro Alves <palves@redhat.com>
7678
7679 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7680 add_inf_child_target.
7681 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7682 add_inf_child_target.
7683 * aix-thread.c (aix_thread_target_info): New.
7684 (aix_thread_target) <shortname, longname, doc>: Delete.
7685 <info>: New.
7686 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7687 add_inf_child_target.
7688 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7689 add_inf_child_target.
7690 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7691 add_inf_child_target.
7692 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7693 add_inf_child_target.
7694 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7695 add_inf_child_target.
7696 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7697 add_inf_child_target.
7698 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7699 add_inf_child_target.
7700 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7701 add_inf_child_target.
7702 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7703 add_inf_child_target.
7704 * bfd-target.c (target_bfd_target_info): New.
7705 (target_bfd) <shortname, longname, doc>: Delete.
7706 <info>: New.
7707 * bsd-kvm.c (bsd_kvm_target_info): New.
7708 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7709 <info>: New.
7710 (bsd_kvm_target::open): Rename to ...
7711 (bsd_kvm_target_open): ... this. Adjust.
7712 * bsd-uthread.c (bsd_uthread_target_info): New.
7713 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7714 <info>: New.
7715 * corefile.c (core_file_command): Adjust.
7716 * corelow.c (core_target_info): New.
7717 (core_target) <shortname, longname, doc>: Delete.
7718 <info>: New.
7719 (core_target::open): Rename to ...
7720 (core_target_open): ... this. Adjust.
7721 * ctf.c (ctf_target_info): New.
7722 (ctf_target) <shortname, longname, doc>: Delete.
7723 <info>: New.
7724 (ctf_target::open): Rename to ...
7725 (ctf_target_open): ... this.
7726 (_initialize_ctf): Adjust.
7727 * exec.c (exec_target_info): New.
7728 (exec_target) <shortname, longname, doc>: Delete.
7729 <info>: New.
7730 (exec_target::open): Rename to ...
7731 (exec_target_open): ... this.
7732 * gdbcore.h (core_target_open): Declare.
7733 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7734 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7735 add_inf_child_target.
7736 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7737 add_inf_child_target.
7738 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7739 add_inf_child_target.
7740 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7741 add_inf_child_target.
7742 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7743 add_inf_child_target.
7744 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7745 add_inf_child_target.
7746 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7747 add_inf_child_target.
7748 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7749 add_inf_child_target.
7750 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7751 add_inf_child_target.
7752 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7753 add_inf_child_target.
7754 * inf-child.c (inf_child_target_info): New.
7755 (inf_child_target::info): New.
7756 (inf_child_open_target): Remove 'target' parameter. Use
7757 get_native_target instead.
7758 (inf_child_target::open): Delete.
7759 (add_inf_child_target): New.
7760 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7761 Delete.
7762 <info>: New.
7763 (add_inf_child_target): Declare.
7764 (inf_child_open_target): Declare.
7765 * linux-thread-db.c (thread_db_target_info): New.
7766 (thread_db_target) <shortname, longname, doc>: Delete.
7767 <info>: New.
7768 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7769 add_inf_child_target.
7770 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7771 add_inf_child_target.
7772 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7773 add_inf_child_target.
7774 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7775 add_inf_child_target.
7776 * make-target-delegates (print_class): Adjust.
7777 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7778 add_inf_child_target.
7779 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7780 add_inf_child_target.
7781 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7782 add_inf_child_target.
7783 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7784 add_inf_child_target.
7785 * nto-procfs.c (nto_native_target_info): New.
7786 (nto_procfs_target_native) <shortname, longname, doc>:
7787 Delete.
7788 <info>: New.
7789 (nto_procfs_target_info): New.
7790 (nto_procfs_target_procfs) <shortname, longname, doc>:
7791 Delete.
7792 <info>: New.
7793 (init_procfs_targets): Adjust.
7794 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7795 add_inf_child_target.
7796 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7797 add_inf_child_target.
7798 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7799 add_inf_child_target.
7800 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7801 add_inf_child_target.
7802 * ravenscar-thread.c (ravenscar_target_info): New.
7803 (ravenscar_thread_target) <shortname, longname, doc>:
7804 Delete.
7805 <info>: New.
7806 * record-btrace.c (record_btrace_target_info):
7807 (record_btrace_target) <shortname, longname, doc>: Delete.
7808 <info>: New.
7809 (record_btrace_target::open): Rename to ...
7810 (record_btrace_target_open): ... this. Adjust.
7811 * record-full.c (record_longname, record_doc): New.
7812 (record_full_base_target) <shortname, longname, doc>: Delete.
7813 <info>: New.
7814 (record_full_target_info): New.
7815 (record_full_target): <shortname>: Delete.
7816 <info>: New.
7817 (record_full_core_open_1, record_full_open_1): Update comments.
7818 (record_full_base_target::open): Rename to ...
7819 (record_full_open): ... this.
7820 (cmd_record_full_restore): Update.
7821 (_initialize_record_full): Update.
7822 * remote-sim.c (remote_sim_target_info): New.
7823 (gdbsim_target) <shortname, longname, doc>: Delete.
7824 <info>: New.
7825 (gdbsim_target::open): Rename to ...
7826 (gdbsim_target_open): ... this.
7827 (_initialize_remote_sim): Adjust.
7828 * remote.c (remote_doc): New.
7829 (remote_target_info): New.
7830 (remote_target) <shortname, longname, doc>: Delete.
7831 <info>: New.
7832 (extended_remote_target_info): New.
7833 (extended_remote_target) <shortname, longname, doc>: Delete.
7834 <info>: New.
7835 (remote_target::open_1): Make static. Adjust.
7836 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7837 * s390-linux-nat.c (_initialize_s390_nat): Use
7838 add_inf_child_target.
7839 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7840 add_inf_child_target.
7841 * sol-thread.c (thread_db_target_info): New.
7842 (sol_thread_target) <shortname, longname, doc>: Delete.
7843 <info>: New.
7844 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7845 add_inf_child_target.
7846 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7847 add_inf_child_target.
7848 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7849 add_inf_child_target.
7850 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7851 add_inf_child_target.
7852 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7853 add_inf_child_target.
7854 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7855 add_inf_child_target.
7856 * spu-linux-nat.c (_initialize_spu_nat): Use
7857 add_inf_child_target.
7858 * spu-multiarch.c (spu_multiarch_target_info): New.
7859 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7860 <info>: New.
7861 * target-delegates.c: Regenerate.
7862 * target.c: Include <unordered_map>.
7863 (target_ops_p): Delete.
7864 (DEF_VEC_P(target_ops_p)): Delete.
7865 (target_factories): New.
7866 (test_target_info): New.
7867 (test_target_ops::info): New.
7868 (open_target): Adjust to use target_factories.
7869 (add_target_with_completer): Rename to ...
7870 (add_target): ... this. Change prototype. Register target_info
7871 and open callback in target_factories. Register target_info in
7872 command context instead of target_ops.
7873 (add_target): Delete old implementation.
7874 (add_deprecated_target_alias): Change prototype. Adjust.
7875 (the_native_target): New.
7876 (set_native_target, get_native_target): New.
7877 (find_default_run_target): Use the_native_target.
7878 (find_attach_target, find_run_target): Simplify.
7879 (target_ops::open): Delete.
7880 (dummy_target_info): New.
7881 (dummy_target::shortname, dummy_target::longname)
7882 (dummy_target::doc): Delete.
7883 (dummy_target::info): New.
7884 (debug_target::shortname, debug_target::longname)
7885 (debug_target::doc): Delete.
7886 (debug_target::info): New.
7887 * target.h (struct target_info): New.
7888 (target_ops::~target_ops): Add comment.
7889 (target_ops::info): New.
7890 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7891 longer virtual. Implement in terms of target_info.
7892 (set_native_target, get_native_target): Declare.
7893 (target_open_ftype): New.
7894 (add_target, add_target_with_completer)
7895 (add_deprecated_target_alias): Change prototype.
7896 (test_target) <shortname, longname, doc>: Delete.
7897 <info>: New.
7898 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7899 add_inf_child_target.
7900 * tracefile-tfile.c (tfile_target_info): New.
7901 (tfile_target) <shortname, longname, doc>: Delete.
7902 <info>: New.
7903 (tfile_target::open): Rename to ...
7904 (tfile_target_open): ... this.
7905 (_initialize_tracefile_tfile): Adjust.
7906 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7907 add_inf_child_target.
7908 * windows-nat.c (_initialize_windows_nat): Use
7909 add_inf_child_target.
7910 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7911 add_inf_child_target.
7912
7913 2018-05-02 Pedro Alves <palves@redhat.com>
7914
7915 * linux-nat.h (linux_nat_target) <low_new_thread,
7916 low_delete_thread, low_new_fork, low_forget_process,
7917 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7918 New virtual methods.
7919 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7920 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7921 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7922 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7923 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7924 Delete.
7925 * linux-fork.c (delete_fork): Adjust to call low method.
7926 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7927 (linux_nat_new_fork, linux_nat_forget_process_hook)
7928 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7929 (linux_nat_status_is_event):
7930 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7931 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7932 to call low method.
7933 (sigtrap_is_event): Rename to ...
7934 (linux_nat_target::low_status_is_event): ... this.
7935 (linux_nat_set_status_is_event): Delete.
7936 (save_stop_reason, linux_nat_wait_1)
7937 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7938 low methods.
7939 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7940 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7941 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7942 (linux_nat_set_prepare_to_resume): Delete.
7943 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7944 low virtual methods.
7945 * amd64-linux-nat.c: Likewise.
7946 * arm-linux-nat.c: Likewise.
7947 * i386-linux-nat.c: Likewise.
7948 * ia64-linux-nat.c: Likewise.
7949 * mips-linux-nat.c: Likewise.
7950 * ppc-linux-nat.c: Likewise.
7951 * s390-linux-nat.c: Likewise.
7952 * sparc64-linux-nat.c: Likewise.
7953 * x86-linux-nat.c: Likewise.
7954 * x86-linux-nat.h: Include "nat/x86-linux.h".
7955 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7956 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7957 Override methods.
7958
7959 2018-05-02 Pedro Alves <palves@redhat.com>
7960
7961 * target.h (target_ops)
7962 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7963 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7964 stopped_by_watchpoint, have_continuable_watchpoint,
7965 stopped_data_address, watchpoint_addr_within_range,
7966 can_accel_watchpoint_condition, can_run, thread_alive,
7967 has_all_memory, has_memory, has_stack, has_registers,
7968 has_execution, can_async_p, is_async_p, supports_non_stop,
7969 always_non_stop_p, can_execute_reverse, supports_multi_process,
7970 supports_enable_disable_tracepoint,
7971 supports_disable_randomization, supports_string_tracing,
7972 supports_evaluation_of_breakpoint_conditions,
7973 can_run_breakpoint_commands, filesystem_is_local,
7974 can_download_tracepoint, get_trace_state_variable_value,
7975 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7976 record_is_replaying, record_will_replay,
7977 augmented_libraries_svr4_read>: Adjust to return bool.
7978 * aarch64-linux-nat.c: All implementations adjusted.
7979 * aix-thread.c: All implementations adjusted.
7980 * arm-linux-nat.c: All implementations adjusted.
7981 * breakpoint.c: All implementations adjusted.
7982 * bsd-kvm.c: All implementations adjusted.
7983 * bsd-uthread.c: All implementations adjusted.
7984 * corelow.c: All implementations adjusted.
7985 * ctf.c: All implementations adjusted.
7986 * darwin-nat.c: All implementations adjusted.
7987 * darwin-nat.h: All implementations adjusted.
7988 * exec.c: All implementations adjusted.
7989 * fbsd-nat.c: All implementations adjusted.
7990 * fbsd-nat.h: All implementations adjusted.
7991 * gnu-nat.c: All implementations adjusted.
7992 * gnu-nat.h: All implementations adjusted.
7993 * go32-nat.c: All implementations adjusted.
7994 * ia64-linux-nat.c: All implementations adjusted.
7995 * inf-child.c: All implementations adjusted.
7996 * inf-child.h: All implementations adjusted.
7997 * inf-ptrace.c: All implementations adjusted.
7998 * inf-ptrace.h: All implementations adjusted.
7999 * linux-nat.c: All implementations adjusted.
8000 * linux-nat.h: All implementations adjusted.
8001 * mips-linux-nat.c: All implementations adjusted.
8002 * nto-procfs.c: All implementations adjusted.
8003 * ppc-linux-nat.c: All implementations adjusted.
8004 * procfs.c: All implementations adjusted.
8005 * ravenscar-thread.c: All implementations adjusted.
8006 * record-btrace.c: All implementations adjusted.
8007 * record-full.c: All implementations adjusted.
8008 * remote-sim.c: All implementations adjusted.
8009 * remote.c: All implementations adjusted.
8010 * s390-linux-nat.c: All implementations adjusted.
8011 * sol-thread.c: All implementations adjusted.
8012 * spu-multiarch.c: All implementations adjusted.
8013 * target-delegates.c: All implementations adjusted.
8014 * target.c: All implementations adjusted.
8015 * target.h: All implementations adjusted.
8016 * tracefile-tfile.c: All implementations adjusted.
8017 * tracefile.c: All implementations adjusted.
8018 * tracefile.h: All implementations adjusted.
8019 * windows-nat.c: All implementations adjusted.
8020 * x86-linux-nat.h: All implementations adjusted.
8021 * x86-nat.h: All implementations adjusted.
8022
8023 2018-05-02 Pedro Alves <palves@redhat.com>
8024
8025 * make-target-delegates (scan_target_h): Don't trim lines here.
8026 Replace sequences of tabs and/or whitespace with a single
8027 whitespace.
8028 (top level, parsing methods): Trim each line before processing it
8029 here.
8030
8031 2018-05-02 Pedro Alves <palves@redhat.com>
8032 John Baldwin <jhb@freebsd.org>
8033
8034 * target.h (enum strata) <debug_stratum>: New.
8035 (struct target_ops) <all delegation methods>: Replace by C++
8036 virtual methods, and drop "to_" prefix. All references updated
8037 throughout.
8038 <to_shortname, to_longname, to_doc, to_data,
8039 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8040 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8041 virtual methods. All references updated throughout.
8042 <can_attach, supports_terminal_ours, can_create_inferior,
8043 get_thread_control_capabilities, attach_no_wait>: New
8044 virtual methods.
8045 <insert_breakpoint, remove_breakpoint>: Now
8046 TARGET_DEFAULT_NORETURN methods.
8047 <info_proc>: Now returns bool.
8048 <to_magic>: Delete.
8049 (OPS_MAGIC): Delete.
8050 (current_target): Delete. All references replaced by references
8051 to ...
8052 (target_stack): ... this. New.
8053 (target_shortname, target_longname): Adjust.
8054 (target_can_run): Now a function declaration.
8055 (default_child_has_all_memory, default_child_has_memory)
8056 (default_child_has_stack, default_child_has_registers)
8057 (default_child_has_execution): Remove target_ops parameter.
8058 (complete_target_initialization): Delete.
8059 (memory_breakpoint_target): New template class.
8060 (test_target_ops): Refactor as a C++ class with virtual methods.
8061 * make-target-delegates (NAME_PART): Tighten.
8062 (POINTER_PART, CP_SYMBOL): New.
8063 (SIMPLE_RETURN_PART): Reimplement.
8064 (VEC_RETURN_PART): Expect less.
8065 (RETURN_PART, VIRTUAL_PART): New.
8066 (METHOD): Adjust to C++ virtual methods.
8067 (scan_target_h): Remove reference to C99.
8068 (dname): Output "target_ops::" prefix.
8069 (write_function_header): Adjust to output a C++ class method.
8070 (write_declaration): New.
8071 (write_delegator): Adjust to output a C++ class method.
8072 (tdname): Output "dummy_target::" prefix.
8073 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8074 method.
8075 (tdefault_names, debug_names): Delete.
8076 (return_types, tdefaults, styles, argtypes_array): New.
8077 (top level): All methods are delegators.
8078 (print_class): New.
8079 (top level): Print dummy_target and debug_target classes.
8080 * target-delegates.c: Regenerate.
8081 * target-debug.h (target_debug_print_enum_info_proc_what)
8082 (target_debug_print_thread_control_capabilities)
8083 (target_debug_print_thread_info_p): New.
8084 * target.c (dummy_target): Delete.
8085 (the_dummy_target, the_debug_target): New.
8086 (target_stack): Now extern.
8087 (set_targetdebug): Push/unpush debug target.
8088 (default_child_has_all_memory, default_child_has_memory)
8089 (default_child_has_stack, default_child_has_registers)
8090 (default_child_has_execution): Remove target_ops parameter.
8091 (complete_target_initialization): Delete.
8092 (add_target_with_completer): No longer call
8093 complete_target_initialization.
8094 (target_supports_terminal_ours): Use regular delegation.
8095 (update_current_target): Delete.
8096 (push_target): No longer check magic number. Don't call
8097 update_current_target.
8098 (unpush_target): Don't call update_current_target.
8099 (target_is_pushed): No longer check magic number.
8100 (target_require_runnable): Skip for all stratums over
8101 process_stratum.
8102 (target_ops::info_proc): New.
8103 (target_info_proc): Use find_target_at and
8104 find_default_run_target.
8105 (target_supports_disable_randomization): Use regular delegation.
8106 (target_get_osdata): Use find_target_at.
8107 (target_ops::open, target_ops::close, target_ops::can_attach)
8108 (target_ops::attach, target_ops::can_create_inferior)
8109 (target_ops::create_inferior, target_ops::can_run)
8110 (target_can_run): New.
8111 (default_fileio_target): Use regular delegation.
8112 (target_ops::fileio_open, target_ops::fileio_pwrite)
8113 (target_ops::fileio_pread, target_ops::fileio_fstat)
8114 (target_ops::fileio_close, target_ops::fileio_unlink)
8115 (target_ops::fileio_readlink): New.
8116 (target_fileio_open_1, target_fileio_unlink)
8117 (target_fileio_readlink): Always call the target method. Handle
8118 FILEIO_ENOSYS.
8119 (return_zero, return_zero_has_execution): Delete.
8120 (init_dummy_target): Delete.
8121 (dummy_target::dummy_target, dummy_target::shortname)
8122 (dummy_target::longname, dummy_target::doc)
8123 (debug_target::debug_target, debug_target::shortname)
8124 (debug_target::longname, debug_target::doc): New.
8125 (target_supports_delete_record): Use regular delegation.
8126 (setup_target_debug): Delete.
8127 (maintenance_print_target_stack): Skip debug_stratum.
8128 (initialize_targets): Instantiate the_dummy_target and
8129 the_debug_target.
8130 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8131 use target_stack.
8132 (target_auxv_search, fprint_target_auxv): Adjust.
8133 (info_auxv_command): Adjust to use target_stack.
8134 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8135 * exceptions.c (print_flush): Handle a NULL target_stack.
8136 * regcache.c (target_ops_no_register): Refactor as class with
8137 virtual methods.
8138
8139 * exec.c (exec_target): New class.
8140 (exec_ops): Now an exec_target.
8141 (exec_open, exec_close_1, exec_get_section_table)
8142 (exec_xfer_partial, exec_files_info, exec_has_memory)
8143 (exec_make_note_section): Refactor as exec_target methods.
8144 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8145 Delete.
8146 (exec_target::find_memory_regions): New.
8147 (_initialize_exec): Don't call init_exec_ops.
8148 * gdbcore.h (exec_file_clear): Delete.
8149
8150 * corefile.c (core_target): Delete.
8151 (core_file_command): Adjust.
8152 * corelow.c (core_target): New class.
8153 (the_core_target): New.
8154 (core_close): Remove target_ops parameter.
8155 (core_close_cleanup): Adjust.
8156 (core_target::close): New.
8157 (core_open, core_detach, get_core_registers, core_files_info)
8158 (core_xfer_partial, core_thread_alive, core_read_description)
8159 (core_pid_to_str, core_thread_name, core_has_memory)
8160 (core_has_stack, core_has_registers, core_info_proc): Rework as
8161 core_target methods.
8162 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8163 (_initialize_corelow): Initialize the_core_target.
8164 * gdbcore.h (core_target): Delete.
8165 (the_core_target): New.
8166
8167 * ctf.c: (ctf_target): New class.
8168 (ctf_ops): Now a ctf_target.
8169 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8170 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8171 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8172 methods.
8173 (init_ctf_ops): Delete.
8174 (_initialize_ctf): Don't call it.
8175 * tracefile-tfile.c (tfile_target): New class.
8176 (tfile_ops): Now a tfile_target.
8177 (tfile_open, tfile_close, tfile_files_info)
8178 (tfile_get_tracepoint_status, tfile_trace_find)
8179 (tfile_fetch_registers, tfile_xfer_partial)
8180 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8181 Refactor as tfile_target methods.
8182 (tfile_xfer_partial_features): Remove target_ops parameter.
8183 (init_tfile_ops): Delete.
8184 (_initialize_tracefile_tfile): Don't call it.
8185 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8186 (tracefile_has_stack, tracefile_has_registers)
8187 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8188 tracefile_target methods.
8189 (init_tracefile_ops): Delete.
8190 (tracefile_target::tracefile_target): New.
8191 * tracefile.h: Include "target.h".
8192 (tracefile_target): New class.
8193 (init_tracefile_ops): Delete.
8194
8195 * spu-multiarch.c (spu_multiarch_target): New class.
8196 (spu_ops): Now a spu_multiarch_target.
8197 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8198 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8199 (spu_search_memory, spu_mourn_inferior): Refactor as
8200 spu_multiarch_target methods.
8201 (init_spu_ops): Delete.
8202 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8203 complete_target_initialization.
8204
8205 * ravenscar-thread.c (ravenscar_thread_target): New class.
8206 (ravenscar_ops): Now a ravenscar_thread_target.
8207 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8208 (ravenscar_thread_alive, ravenscar_pid_to_str)
8209 (ravenscar_fetch_registers, ravenscar_store_registers)
8210 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8211 (ravenscar_stopped_by_hw_breakpoint)
8212 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8213 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8214 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8215 methods.
8216 (init_ravenscar_thread_ops): Delete.
8217 (_initialize_ravenscar): Remove references to
8218 init_ravenscar_thread_ops and complete_target_initialization.
8219
8220 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8221 (bsd_uthread_target): New class.
8222 (bsd_uthread_ops): Now a bsd_uthread_target.
8223 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8224 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8225 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8226 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8227 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8228 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8229 (bsd_uthread_target): Delete function.
8230 (_initialize_bsd_uthread): Remove reference to
8231 complete_target_initialization.
8232
8233 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8234 (target_bfd): ... this new class.
8235 (target_bfd_xfer_partial, target_bfd_get_section_table)
8236 (target_bfd_close): Refactor as target_bfd methods.
8237 (target_bfd::~target_bfd): New.
8238 (target_bfd_reopen): Adjust.
8239 (target_bfd::close): New.
8240
8241 * record-btrace.c (record_btrace_target): New class.
8242 (record_btrace_ops): Now a record_btrace_target.
8243 (record_btrace_open, record_btrace_stop_recording)
8244 (record_btrace_disconnect, record_btrace_close)
8245 (record_btrace_async, record_btrace_info)
8246 (record_btrace_insn_history, record_btrace_insn_history_range)
8247 (record_btrace_insn_history_from, record_btrace_call_history)
8248 (record_btrace_call_history_range)
8249 (record_btrace_call_history_from, record_btrace_record_method)
8250 (record_btrace_is_replaying, record_btrace_will_replay)
8251 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8252 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8253 (record_btrace_store_registers, record_btrace_prepare_to_store)
8254 (record_btrace_to_get_unwinder)
8255 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8256 (record_btrace_commit_resume, record_btrace_wait)
8257 (record_btrace_stop, record_btrace_can_execute_reverse)
8258 (record_btrace_stopped_by_sw_breakpoint)
8259 (record_btrace_supports_stopped_by_sw_breakpoint)
8260 (record_btrace_stopped_by_hw_breakpoint)
8261 (record_btrace_supports_stopped_by_hw_breakpoint)
8262 (record_btrace_update_thread_list, record_btrace_thread_alive)
8263 (record_btrace_goto_begin, record_btrace_goto_end)
8264 (record_btrace_goto, record_btrace_stop_replaying_all)
8265 (record_btrace_execution_direction)
8266 (record_btrace_prepare_to_generate_core)
8267 (record_btrace_done_generating_core): Refactor as
8268 record_btrace_target methods.
8269 (init_record_btrace_ops): Delete.
8270 (_initialize_record_btrace): Remove reference to
8271 init_record_btrace_ops.
8272 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8273 the execution_direction global.
8274 (record_full_base_target, record_full_target)
8275 (record_full_core_target): New classes.
8276 (record_full_ops): Now a record_full_target.
8277 (record_full_core_ops): Now a record_full_core_target.
8278 (record_full_target::detach, record_full_target::disconnect)
8279 (record_full_core_target::disconnect)
8280 (record_full_target::mourn_inferior, record_full_target::kill):
8281 New.
8282 (record_full_open, record_full_close, record_full_async): Refactor
8283 as methods of the record_full_base_target class.
8284 (record_full_resume, record_full_commit_resume): Refactor
8285 as methods of the record_full_target class.
8286 (record_full_wait, record_full_stopped_by_watchpoint)
8287 (record_full_stopped_data_address)
8288 (record_full_stopped_by_sw_breakpoint)
8289 (record_full_supports_stopped_by_sw_breakpoint)
8290 (record_full_stopped_by_hw_breakpoint)
8291 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8292 methods of the record_full_base_target class.
8293 (record_full_store_registers, record_full_xfer_partial)
8294 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8295 Refactor as methods of the record_full_target class.
8296 (record_full_can_execute_reverse, record_full_get_bookmark)
8297 (record_full_goto_bookmark, record_full_execution_direction)
8298 (record_full_record_method, record_full_info, record_full_delete)
8299 (record_full_is_replaying, record_full_will_replay)
8300 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8301 (record_full_stop_replaying): Refactor as methods of the
8302 record_full_base_target class.
8303 (record_full_core_resume, record_full_core_kill)
8304 (record_full_core_fetch_registers)
8305 (record_full_core_prepare_to_store)
8306 (record_full_core_store_registers, record_full_core_xfer_partial)
8307 (record_full_core_insert_breakpoint)
8308 (record_full_core_remove_breakpoint)
8309 (record_full_core_has_execution): Refactor
8310 as methods of the record_full_core_target class.
8311 (record_full_base_target::supports_delete_record): New.
8312 (init_record_full_ops): Delete.
8313 (init_record_full_core_ops): Delete.
8314 (record_full_save): Refactor as method of the
8315 record_full_base_target class.
8316 (_initialize_record_full): Remove references to
8317 init_record_full_ops and init_record_full_core_ops.
8318
8319 * remote.c (remote_target, extended_remote_target): New classes.
8320 (remote_ops): Now a remote_target.
8321 (extended_remote_ops): Now an extended_remote_target.
8322 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8323 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8324 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8325 (remote_pass_signals, remote_set_syscall_catchpoint)
8326 (remote_program_signals, )
8327 (remote_thread_always_alive): Remove target_ops parameter.
8328 (remote_thread_alive, remote_thread_name)
8329 (remote_update_thread_list, remote_threads_extra_info)
8330 (remote_static_tracepoint_marker_at)
8331 (remote_static_tracepoint_markers_by_strid)
8332 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8333 (remote_open): Refactor as methods of remote_target.
8334 (extended_remote_open, extended_remote_detach)
8335 (extended_remote_attach, extended_remote_post_attach):
8336 (extended_remote_supports_disable_randomization)
8337 (extended_remote_create_inferior): : Refactor as method of
8338 extended_remote_target.
8339 (remote_set_permissions, remote_open_1, remote_detach)
8340 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8341 (remote_resume, remote_commit_resume, remote_stop)
8342 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8343 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8344 (remote_prepare_to_store, remote_store_registers)
8345 (remote_flash_erase, remote_flash_done, remote_files_info)
8346 (remote_kill, remote_mourn, remote_insert_breakpoint)
8347 (remote_remove_breakpoint, remote_insert_watchpoint)
8348 (remote_watchpoint_addr_within_range)
8349 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8350 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8351 (remote_supports_stopped_by_sw_breakpoint)
8352 (remote_stopped_by_hw_breakpoint)
8353 (remote_supports_stopped_by_hw_breakpoint)
8354 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8355 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8356 (remote_verify_memory): Refactor as methods of remote_target.
8357 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8358 parameter.
8359 (remote_xfer_partial, remote_get_memory_xfer_limit)
8360 (remote_search_memory, remote_rcmd, remote_memory_map)
8361 (remote_pid_to_str, remote_get_thread_local_address)
8362 (remote_get_tib_address, remote_read_description): Refactor as
8363 methods of remote_target.
8364 (remote_target::fileio_open, remote_target::fileio_pwrite)
8365 (remote_target::fileio_pread, remote_target::fileio_close): New.
8366 (remote_hostio_readlink, remote_hostio_fstat)
8367 (remote_filesystem_is_local, remote_can_execute_reverse)
8368 (remote_supports_non_stop, remote_supports_disable_randomization)
8369 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8370 (remote_supports_enable_disable_tracepoint)
8371 (remote_supports_string_tracing)
8372 (remote_can_run_breakpoint_commands, remote_trace_init)
8373 (remote_download_tracepoint, remote_can_download_tracepoint)
8374 (remote_download_trace_state_variable, remote_enable_tracepoint)
8375 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8376 (remote_trace_start, remote_get_trace_status)
8377 (remote_get_tracepoint_status, remote_trace_stop)
8378 (remote_trace_find, remote_get_trace_state_variable_value)
8379 (remote_save_trace_data, remote_get_raw_trace_data)
8380 (remote_set_disconnected_tracing, remote_core_of_thread)
8381 (remote_set_circular_trace_buffer, remote_traceframe_info)
8382 (remote_get_min_fast_tracepoint_insn_len)
8383 (remote_set_trace_buffer_size, remote_set_trace_notes)
8384 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8385 (remote_disable_btrace, remote_teardown_btrace)
8386 (remote_read_btrace, remote_btrace_conf)
8387 (remote_augmented_libraries_svr4_read, remote_load)
8388 (remote_pid_to_exec_file, remote_can_do_single_step)
8389 (remote_execution_direction, remote_thread_handle_to_thread_info):
8390 Refactor as methods of remote_target.
8391 (init_remote_ops, init_extended_remote_ops): Delete.
8392 (remote_can_async_p, remote_is_async_p, remote_async)
8393 (remote_thread_events, remote_upload_tracepoints)
8394 (remote_upload_trace_state_variables): Refactor as methods of
8395 remote_target.
8396 (_initialize_remote): Remove references to init_remote_ops and
8397 init_extended_remote_ops.
8398
8399 * remote-sim.c (gdbsim_target): New class.
8400 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8401 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8402 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8403 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8404 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8405 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8406 Refactor as methods of gdbsim_target.
8407 (gdbsim_ops): Now a gdbsim_target.
8408 (init_gdbsim_ops): Delete.
8409 (gdbsim_cntrl_c): Adjust.
8410 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8411
8412 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8413 (the_amd64_linux_nat_target): New.
8414 (amd64_linux_fetch_inferior_registers)
8415 (amd64_linux_store_inferior_registers): Refactor as methods of
8416 amd64_linux_nat_target.
8417 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8418 * i386-linux-nat.c: Don't include "linux-nat.h".
8419 (i386_linux_nat_target): New class.
8420 (the_i386_linux_nat_target): New.
8421 (i386_linux_fetch_inferior_registers)
8422 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8423 as methods of i386_linux_nat_target.
8424 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8425 * inf-child.c (inf_child_ops): Delete.
8426 (inf_child_fetch_inferior_registers)
8427 (inf_child_store_inferior_registers): Delete.
8428 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8429 methods of inf_child_target.
8430 (inf_child_target::supports_terminal_ours)
8431 (inf_child_target::terminal_init)
8432 (inf_child_target::terminal_inferior)
8433 (inf_child_target::terminal_ours_for_output)
8434 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8435 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8436 New.
8437 (inf_child_open, inf_child_disconnect, inf_child_close)
8438 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8439 (inf_child_post_startup_inferior, inf_child_can_run)
8440 (inf_child_pid_to_exec_file): Refactor as methods of
8441 inf_child_target.
8442 (inf_child_follow_fork): Delete.
8443 (inf_child_target::can_create_inferior)
8444 (inf_child_target::can_attach): New.
8445 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8446 (inf_child_target::has_stack, inf_child_target::has_registers)
8447 (inf_child_target::has_execution): New.
8448 (inf_child_fileio_open, inf_child_fileio_pwrite)
8449 (inf_child_fileio_pread, inf_child_fileio_fstat)
8450 (inf_child_fileio_close, inf_child_fileio_unlink)
8451 (inf_child_fileio_readlink, inf_child_use_agent)
8452 (inf_child_can_use_agent): Refactor as methods of
8453 inf_child_target.
8454 (return_zero, inf_child_target): Delete.
8455 (inf_child_target::inf_child_target): New.
8456 * inf-child.h: Include "target.h".
8457 (inf_child_target): Delete function prototype.
8458 (inf_child_target): New class.
8459 (inf_child_open_target, inf_child_mourn_inferior)
8460 (inf_child_maybe_unpush_target): Delete.
8461 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8462 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8463 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8464 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8465 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8466 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8467 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8468 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8469 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8470 methods of inf_ptrace_target.
8471 (inf_ptrace_target): Delete function.
8472 * inf-ptrace.h: Include "inf-child.h".
8473 (inf_ptrace_target): Delete function declaration.
8474 (inf_ptrace_target): New class.
8475 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8476 * linux-nat.c (linux_target): New.
8477 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8478 (linux_nat_target::~linux_nat_target): New.
8479 (linux_child_post_attach, linux_child_post_startup_inferior)
8480 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8481 (linux_child_remove_fork_catchpoint)
8482 (linux_child_insert_vfork_catchpoint)
8483 (linux_child_remove_vfork_catchpoint)
8484 (linux_child_insert_exec_catchpoint)
8485 (linux_child_remove_exec_catchpoint)
8486 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8487 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8488 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8489 (linux_nat_stopped_data_address)
8490 (linux_nat_stopped_by_sw_breakpoint)
8491 (linux_nat_supports_stopped_by_sw_breakpoint)
8492 (linux_nat_stopped_by_hw_breakpoint)
8493 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8494 (linux_nat_kill, linux_nat_mourn_inferior)
8495 (linux_nat_xfer_partial, linux_nat_thread_alive)
8496 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8497 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8498 (linux_child_static_tracepoint_markers_by_strid)
8499 (linux_nat_is_async_p, linux_nat_can_async_p)
8500 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8501 (linux_nat_supports_multi_process)
8502 (linux_nat_supports_disable_randomization, linux_nat_async)
8503 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8504 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8505 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8506 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8507 methods of linux_nat_target.
8508 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8509 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8510 parameter.
8511 (check_stopped_by_watchpoint): Adjust.
8512 (linux_xfer_partial): Delete.
8513 (linux_target_install_ops, linux_target, linux_nat_add_target):
8514 Delete.
8515 (linux_nat_target::linux_nat_target): New.
8516 * linux-nat.h: Include "inf-ptrace.h".
8517 (linux_nat_target): New.
8518 (linux_target, linux_target_install_ops, linux_nat_add_target):
8519 Delete function declarations.
8520 (linux_target): Declare global.
8521 * linux-thread-db.c (thread_db_target): New.
8522 (thread_db_target::thread_db_target): New.
8523 (thread_db_ops): Delete.
8524 (the_thread_db_target): New.
8525 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8526 (thread_db_update_thread_list, thread_db_pid_to_str)
8527 (thread_db_extra_thread_info)
8528 (thread_db_thread_handle_to_thread_info)
8529 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8530 (thread_db_resume): Refactor as methods of thread_db_target.
8531 (init_thread_db_ops): Delete.
8532 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8533 * x86-linux-nat.c: Don't include "linux-nat.h".
8534 (super_post_startup_inferior): Delete.
8535 (x86_linux_nat_target::~x86_linux_nat_target): New.
8536 (x86_linux_child_post_startup_inferior)
8537 (x86_linux_read_description, x86_linux_enable_btrace)
8538 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8539 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8540 methods of x86_linux_nat_target.
8541 (x86_linux_create_target): Delete. Bits folded ...
8542 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8543 pointer.
8544 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8545 (x86_linux_nat_target): New class.
8546 (x86_linux_create_target): Delete.
8547 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8548 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8549 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8550 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8551 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8552 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8553 make extern.
8554 (x86_use_watchpoints): Delete.
8555 * x86-nat.h: Include "breakpoint.h" and "target.h".
8556 (x86_use_watchpoints): Delete.
8557 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8558 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8559 (x86_insert_watchpoint, x86_remove_watchpoint)
8560 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8561 (x86_stopped_by_hw_breakpoint): New declarations.
8562 (x86_nat_target): New template class.
8563
8564 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8565 (the_ppc_linux_nat_target): New.
8566 (ppc_linux_fetch_inferior_registers)
8567 (ppc_linux_can_use_hw_breakpoint)
8568 (ppc_linux_region_ok_for_hw_watchpoint)
8569 (ppc_linux_ranged_break_num_registers)
8570 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8571 (ppc_linux_insert_mask_watchpoint)
8572 (ppc_linux_remove_mask_watchpoint)
8573 (ppc_linux_can_accel_watchpoint_condition)
8574 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8575 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8576 (ppc_linux_watchpoint_addr_within_range)
8577 (ppc_linux_masked_watch_num_registers)
8578 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8579 (ppc_linux_read_description): Refactor as methods of
8580 ppc_linux_nat_target.
8581 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8582
8583 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8584 (procfs_target): New class.
8585 (the_procfs_target): New.
8586 (procfs_target): Delete function.
8587 (procfs_auxv_parse, procfs_attach, procfs_detach)
8588 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8589 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8590 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8591 (procfs_create_inferior, procfs_update_thread_list)
8592 (procfs_thread_alive, procfs_pid_to_str)
8593 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8594 (procfs_stopped_data_address, procfs_insert_watchpoint)
8595 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8596 (proc_find_memory_regions, procfs_info_proc)
8597 (procfs_make_note_section): Refactor as methods of procfs_target.
8598 (_initialize_procfs): Adjust.
8599 * sol-thread.c (sol_thread_target): New class.
8600 (sol_thread_ops): Now a sol_thread_target.
8601 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8602 (sol_thread_fetch_registers, sol_thread_store_registers)
8603 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8604 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8605 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8606 (init_sol_thread_ops): Delete.
8607 (_initialize_sol_thread): Adjust. Remove references to
8608 init_sol_thread_ops and complete_target_initialization.
8609
8610 * windows-nat.c (windows_nat_target): New class.
8611 (windows_fetch_inferior_registers)
8612 (windows_store_inferior_registers, windows_resume, windows_wait)
8613 (windows_attach, windows_detach, windows_pid_to_exec_file)
8614 (windows_files_info, windows_create_inferior)
8615 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8616 (windows_close, windows_pid_to_str, windows_xfer_partial)
8617 (windows_get_tib_address, windows_get_ada_task_ptid)
8618 (windows_thread_name, windows_thread_alive): Refactor as
8619 windows_nat_target methods.
8620 (do_initial_windows_stuff): Adjust.
8621 (windows_target): Delete function.
8622 (_initialize_windows_nat): Adjust.
8623
8624 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8625 (darwin_mourn_inferior, darwin_kill_inferior)
8626 (darwin_create_inferior, darwin_attach, darwin_detach)
8627 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8628 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8629 (darwin_supports_multi_process): Refactor as darwin_nat_target
8630 methods.
8631 (darwin_resume_to, darwin_files_info): Delete.
8632 (_initialize_darwin_inferior): Rename to ...
8633 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8634 * darwin-nat.h: Include "inf-child.h".
8635 (darwin_nat_target): New class.
8636 (darwin_complete_target): Delete.
8637 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8638 (darwin_target): New.
8639 (i386_darwin_fetch_inferior_registers)
8640 (i386_darwin_store_inferior_registers): Refactor as methods of
8641 darwin_nat_target.
8642 (darwin_complete_target): Delete, with ...
8643 (_initialize_i386_darwin_nat): ... bits factored out here.
8644
8645 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8646 (the_alpha_linux_nat_target): New.
8647 (alpha_linux_register_u_offset): Refactor as
8648 alpha_linux_nat_target method.
8649 (_initialize_alpha_linux_nat): Adjust.
8650 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8651 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8652 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8653 methods of linux_nat_trad_target.
8654 (linux_trad_target): Delete.
8655 * linux-nat-trad.h (linux_trad_target): Delete function.
8656 (linux_nat_trad_target): New class.
8657 * mips-linux-nat.c (mips_linux_nat_target): New class.
8658 (super_fetch_registers, super_store_registers, super_close):
8659 Delete.
8660 (the_mips_linux_nat_target): New.
8661 (mips64_linux_regsets_fetch_registers)
8662 (mips64_linux_regsets_store_registers)
8663 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8664 (mips_linux_register_u_offset, mips_linux_read_description)
8665 (mips_linux_can_use_hw_breakpoint)
8666 (mips_linux_stopped_by_watchpoint)
8667 (mips_linux_stopped_data_address)
8668 (mips_linux_region_ok_for_hw_watchpoint)
8669 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8670 (mips_linux_close): Refactor as methods of mips_linux_nat.
8671 (_initialize_mips_linux_nat): Adjust to C++ification.
8672
8673 * aix-thread.c (aix_thread_target): New class.
8674 (aix_thread_ops): Now an aix_thread_target.
8675 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8676 (aix_thread_fetch_registers, aix_thread_store_registers)
8677 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8678 (aix_thread_thread_alive, aix_thread_pid_to_str)
8679 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8680 Refactor as methods of aix_thread_target.
8681 (init_aix_thread_ops): Delete.
8682 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8683 and complete_target_initialization.
8684 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8685 (rs6000_nat_target): New class.
8686 (the_rs6000_nat_target): New.
8687 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8688 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8689 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8690 (super_create_inferior): Delete.
8691 (_initialize_rs6000_nat): Adjust to C++ification.
8692
8693 * arm-linux-nat.c (arm_linux_nat_target): New class.
8694 (the_arm_linux_nat_target): New.
8695 (arm_linux_fetch_inferior_registers)
8696 (arm_linux_store_inferior_registers, arm_linux_read_description)
8697 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8698 (arm_linux_remove_hw_breakpoint)
8699 (arm_linux_region_ok_for_hw_watchpoint)
8700 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8701 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8702 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8703 arm_linux_nat_target.
8704 (_initialize_arm_linux_nat): Adjust to C++ification.
8705
8706 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8707 (the_aarch64_linux_nat_target): New.
8708 (aarch64_linux_fetch_inferior_registers)
8709 (aarch64_linux_store_inferior_registers)
8710 (aarch64_linux_child_post_startup_inferior)
8711 (aarch64_linux_read_description)
8712 (aarch64_linux_can_use_hw_breakpoint)
8713 (aarch64_linux_insert_hw_breakpoint)
8714 (aarch64_linux_remove_hw_breakpoint)
8715 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8716 (aarch64_linux_region_ok_for_hw_watchpoint)
8717 (aarch64_linux_stopped_data_address)
8718 (aarch64_linux_stopped_by_watchpoint)
8719 (aarch64_linux_watchpoint_addr_within_range)
8720 (aarch64_linux_can_do_single_step): Refactor as methods of
8721 aarch64_linux_nat_target.
8722 (super_post_startup_inferior): Delete.
8723 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8724
8725 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8726 (the_hppa_linux_nat_target): New.
8727 (hppa_linux_fetch_inferior_registers)
8728 (hppa_linux_store_inferior_registers): Refactor as methods of
8729 hppa_linux_nat_target.
8730 (_initialize_hppa_linux_nat): Adjust to C++ification.
8731
8732 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8733 (the_ia64_linux_nat_target): New.
8734 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8735 (ia64_linux_stopped_data_address)
8736 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8737 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8738 ia64_linux_nat_target methods.
8739 (super_xfer_partial): Delete.
8740 (_initialize_ia64_linux_nat): Adjust to C++ification.
8741
8742 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8743 (the_m32r_linux_nat_target): New.
8744 (m32r_linux_fetch_inferior_registers)
8745 (m32r_linux_store_inferior_registers): Refactor as
8746 m32r_linux_nat_target methods.
8747 (_initialize_m32r_linux_nat): Adjust to C++ification.
8748
8749 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8750 (the_m68k_linux_nat_target): New.
8751 (m68k_linux_fetch_inferior_registers)
8752 (m68k_linux_store_inferior_registers): Refactor as
8753 m68k_linux_nat_target methods.
8754 (_initialize_m68k_linux_nat): Adjust to C++ification.
8755
8756 * s390-linux-nat.c (s390_linux_nat_target): New class.
8757 (the_s390_linux_nat_target): New.
8758 (s390_linux_fetch_inferior_registers)
8759 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8760 (s390_insert_watchpoint, s390_remove_watchpoint)
8761 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8762 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8763 (s390_auxv_parse, s390_read_description): Refactor as methods of
8764 s390_linux_nat_target.
8765 (_initialize_s390_nat): Adjust to C++ification.
8766
8767 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8768 (the_sparc_linux_nat_target): New.
8769 (_initialize_sparc_linux_nat): Adjust to C++ification.
8770 * sparc-nat.c (sparc_fetch_inferior_registers)
8771 (sparc_store_inferior_registers): Remove target_ops parameter.
8772 * sparc-nat.h (sparc_fetch_inferior_registers)
8773 (sparc_store_inferior_registers): Remove target_ops parameter.
8774 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8775 (the_sparc64_linux_nat_target): New.
8776 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8777
8778 * spu-linux-nat.c (spu_linux_nat_target): New class.
8779 (the_spu_linux_nat_target): New.
8780 (spu_child_post_startup_inferior, spu_child_post_attach)
8781 (spu_child_wait, spu_fetch_inferior_registers)
8782 (spu_store_inferior_registers, spu_xfer_partial)
8783 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8784 methods.
8785 (_initialize_spu_nat): Adjust to C++ification.
8786
8787 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8788 (the_tilegx_linux_nat_target): New.
8789 (fetch_inferior_registers, store_inferior_registers):
8790 Refactor as methods.
8791 (_initialize_tile_linux_nat): Adjust to C++ification.
8792
8793 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8794 (the_xtensa_linux_nat_target): New.
8795 (xtensa_linux_fetch_inferior_registers)
8796 (xtensa_linux_store_inferior_registers): Refactor as
8797 xtensa_linux_nat_target methods.
8798 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8799
8800 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8801 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8802 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8803 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8804 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8805 (fbsd_stopped_by_sw_breakpoint)
8806 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8807 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8808 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8809 (fbsd_post_startup_inferior, fbsd_post_attach)
8810 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8811 (fbsd_set_syscall_catchpoint)
8812 (super_xfer_partial, super_resume, super_wait)
8813 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8814 (fbsd_handle_debug_trap): Remove target_ops parameter.
8815 (fbsd_nat_add_target): Delete.
8816 * fbsd-nat.h: Include "inf-ptrace.h".
8817 (fbsd_nat_add_target): Delete.
8818 (USE_SIGTRAP_SIGINFO): Define.
8819 (fbsd_nat_target): New class.
8820
8821 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8822 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8823 (amd64bsd_target): Delete.
8824 * amd64-bsd-nat.h: New file.
8825 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8826 "x86-bsd-nat.h".
8827 (amd64_fbsd_nat_target): New class.
8828 (the_amd64_fbsd_nat_target): New.
8829 (amd64fbsd_read_description): Refactor as method of
8830 amd64_fbsd_nat_target.
8831 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8832 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8833 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8834 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8835 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8836 (i386bsd_target): Delete.
8837 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8838 (i386bsd_fetch_inferior_registers)
8839 (i386bsd_store_inferior_registers): Declare.
8840 (i386_bsd_nat_target): New class.
8841 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8842 (the_i386_fbsd_nat_target): New.
8843 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8844 i386_fbsd_nat_target methods.
8845 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8846 (_initialize_i386fbsd_nat): Adjust to C++ification.
8847 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8848 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8849 (_initialize_x86_bsd_nat): Adjust to C++ification.
8850 * x86-bsd-nat.h: Include "x86-nat.h".
8851 (x86bsd_target): Delete declaration.
8852 (x86bsd_nat_target): New class.
8853
8854 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8855 (the_aarch64_fbsd_nat_target): New.
8856 (aarch64_fbsd_fetch_inferior_registers)
8857 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8858 aarch64_fbsd_nat_target.
8859 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8860 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8861 (the_alpha_bsd_nat_target): New.
8862 (alphabsd_fetch_inferior_registers)
8863 (alphabsd_store_inferior_registers): Refactor as
8864 alpha_bsd_nat_target methods.
8865 (_initialize_alphabsd_nat): Refactor as methods of
8866 alpha_bsd_nat_target.
8867 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8868 (the_amd64_nbsd_nat_target): New.
8869 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8870 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8871 (the_amd64_obsd_nat_target): New.
8872 (_initialize_amd64obsd_nat): Adjust to C++ification.
8873 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8874 (the_arm_fbsd_nat_target): New.
8875 (arm_fbsd_fetch_inferior_registers)
8876 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8877 (_initialize_arm_fbsd_nat): Refactor as methods of
8878 arm_fbsd_nat_target.
8879 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8880 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8881 (the_arm_netbsd_nat_target): New.
8882 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8883 arm_netbsd_nat_target.
8884 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8885 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8886 (the_hppa_nbsd_nat_target): New.
8887 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8888 hppa_nbsd_nat_target methods.
8889 (_initialize_hppanbsd_nat): Adjust to C++ification.
8890 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8891 (the_hppa_obsd_nat_target): New.
8892 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8893 methods of hppa_obsd_nat_target.
8894 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8895 add_target.
8896 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8897 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8898 add_target.
8899 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8900 (_initialize_i386obsd_nat): Use add_target.
8901 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8902 (the_m68k_bsd_nat_target): New.
8903 (m68kbsd_fetch_inferior_registers)
8904 (m68kbsd_store_inferior_registers): Refactor as methods of
8905 m68k_bsd_nat_target.
8906 (_initialize_m68kbsd_nat): Adjust to C++ification.
8907 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8908 (the_mips_fbsd_nat_target): New.
8909 (mips_fbsd_fetch_inferior_registers)
8910 (mips_fbsd_store_inferior_registers): Refactor as methods of
8911 mips_fbsd_nat_target.
8912 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8913 add_target.
8914 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8915 (the_mips_nbsd_nat_target): New.
8916 (mipsnbsd_fetch_inferior_registers)
8917 (mipsnbsd_store_inferior_registers): Refactor as methods of
8918 mips_nbsd_nat_target.
8919 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8920 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8921 (the_mips64_obsd_nat_target): New.
8922 (mips64obsd_fetch_inferior_registers)
8923 (mips64obsd_store_inferior_registers): Refactor as methods of
8924 mips64_obsd_nat_target.
8925 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8926 add_target.
8927 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8928 nbsd_nat_target.
8929 * nbsd-nat.h: Include "inf-ptrace.h".
8930 (nbsd_nat_target): New class.
8931 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8932 (obsd_wait): Refactor as methods of obsd_nat_target.
8933 (obsd_add_target): Delete.
8934 * obsd-nat.h: Include "inf-ptrace.h".
8935 (obsd_nat_target): New class.
8936 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8937 (the_ppc_fbsd_nat_target): New.
8938 (ppcfbsd_fetch_inferior_registers)
8939 (ppcfbsd_store_inferior_registers): Refactor as methods of
8940 ppc_fbsd_nat_target.
8941 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8942 add_target.
8943 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8944 (the_ppc_nbsd_nat_target): New.
8945 (ppcnbsd_fetch_inferior_registers)
8946 (ppcnbsd_store_inferior_registers): Refactor as methods of
8947 ppc_nbsd_nat_target.
8948 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8949 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8950 (the_ppc_obsd_nat_target): New.
8951 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8952 methods of ppc_obsd_nat_target.
8953 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8954 add_target.
8955 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8956 (the_sh_nbsd_nat_target): New.
8957 (shnbsd_fetch_inferior_registers)
8958 (shnbsd_store_inferior_registers): Refactor as methods of
8959 sh_nbsd_nat_target.
8960 (_initialize_shnbsd_nat): Adjust to C++ification.
8961 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8962 (inf_ptrace_xfer_partial): Delete.
8963 (sparc_xfer_partial, sparc_target): Delete.
8964 * sparc-nat.h (sparc_fetch_inferior_registers)
8965 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8966 (sparc_target): Delete function declaration.
8967 (sparc_target): New template class.
8968 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8969 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8970 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8971 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8972 add_target.
8973 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8974 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8975 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8976 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8977 add_target.
8978 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8979 (the_vax_bsd_nat_target): New.
8980 (vaxbsd_fetch_inferior_registers)
8981 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8982 methods.
8983 (_initialize_vaxbsd_nat): Adjust to C++ification.
8984
8985 * bsd-kvm.c (bsd_kvm_target): New class.
8986 (bsd_kvm_ops): Now a bsd_kvm_target.
8987 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8988 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8989 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8990 bsd_kvm_target.
8991 (bsd_kvm_return_one): Delete.
8992 (bsd_kvm_add_target): Adjust to C++ification.
8993
8994 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8995 (nto_procfs_target_procfs): New classes.
8996 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8997 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8998 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8999 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9000 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9001 (procfs_remove_hw_breakpoint, procfs_resume)
9002 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9003 (procfs_kill_inferior, procfs_store_registers)
9004 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9005 as methods of nto_procfs_target.
9006 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9007 (nto_native_ops): Delete.
9008 (procfs_open, procfs_native_open): Delete.
9009 (nto_native_ops): Now an nto_procfs_target_native.
9010 (init_procfs_targets): Adjust to C++ification.
9011 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9012 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9013 Refactor as methods of nto_procfs_target.
9014
9015 * go32-nat.c (go32_nat_target): New class.
9016 (the_go32_nat_target): New.
9017 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9018 (go32_store_registers, go32_xfer_partial, go32_files_info)
9019 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9020 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9021 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9022 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9023 (go32_target): Delete.
9024 (_initialize_go32_nat): Adjust to C++ification.
9025
9026 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9027 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9028 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9029 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9030 gnu_nat_target.
9031 (gnu_target): Delete.
9032 * gnu-nat.h (gnu_target): Delete.
9033 (gnu_nat_target): New class.
9034 * i386-gnu-nat.c (gnu_base_target): New.
9035 (i386_gnu_nat_target): New class.
9036 (the_i386_gnu_nat_target): New.
9037 (_initialize_i386gnu_nat): Adjust to C++ification.
9038
9039 2018-05-02 Pedro Alves <palves@redhat.com>
9040
9041 * bfd-target.c (target_bfd_xclose): Rename to ...
9042 (target_bfd_close): ... this.
9043 (target_bfd_reopen): Adjust.
9044 * target.c (target_close): Remove references to to_xclose.
9045 * target.h (target_ops::to_xclose): Delete.
9046 (target_ops::to_close): Update comments.
9047
9048 2018-05-02 Pedro Alves <palves@redhat.com>
9049
9050 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9051 "linux-nat.h".
9052 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9053 * inf-ptrace.c (inf_ptrace_register_u_offset)
9054 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9055 (inf_ptrace_store_register, inf_ptrace_store_registers)
9056 (inf_ptrace_trad_target): Move to ...
9057 * linux-nat-trad.c: ... this new file.
9058 * linux-nat-trad.h: New file.
9059 * linux-nat.c (linux_target_install_ops): Make extern.
9060 (linux_trad_target): Delete.
9061 * linux-nat.h (linux_trad_target): Delete declaration.
9062 (linux_target_install_ops): Declare.
9063 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9064 "linux-nat.h".
9065
9066 2018-05-02 Pedro Alves <palves@redhat.com>
9067
9068 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9069 procfs_target/add_target here.
9070 * procfs.c (procfs_target): Make static.
9071 (_initialize_procfs): Call add_target here.
9072 * procfs.h (struct target_ops): Remove forward declaration.
9073 (procfs_target): Remove declaration.
9074 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9075
9076 2018-05-02 Pedro Alves <palves@redhat.com>
9077
9078 * procfs.c (procfs_stopped_by_watchpoint)
9079 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9080 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9081 Forward declare.
9082 (procfs_use_watchpoints): Delete, move contents...
9083 (procfs_target): ... here.
9084 * procfs.h (procfs_use_watchpoints): Delete declaration.
9085 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9086 procfs_use_watchpoints.
9087 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9088 procfs_use_watchpoints.
9089
9090 2018-05-02 Tom Tromey <tom@tromey.com>
9091
9092 PR python/20084:
9093 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9094 and var_zuinteger_unlimited.
9095 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9096 and PARAM_ZUINTEGER_UNLIMITED.
9097 (set_parameter_value): Handle var_zuinteger and
9098 var_zuinteger_unlimited.
9099 (add_setshow_generic): Likewise.
9100 (parmpy_init): Likewise.
9101
9102 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9103
9104 PR rust/23124
9105 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9106 pointer is not null before dereferencing it.
9107
9108 2018-04-30 Tom Tromey <tom@tromey.com>
9109
9110 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9111 is_mi_like_p.
9112
9113 2018-04-30 Tom Tromey <tom@tromey.com>
9114
9115 * breakpoint.c (mention): Remove use of is_mi_like_p.
9116 (print_mention_ranged_breakpoint): Likewise.
9117 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9118 of is_mi_like_p.
9119
9120 2018-04-30 Tom Tromey <tom@tromey.com>
9121
9122 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9123
9124 2018-04-30 Tom Tromey <tom@tromey.com>
9125
9126 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9127 (info_spu_event_command): Remove some uses of is_mi_like_p.
9128
9129 2018-04-30 Tom Tromey <tom@tromey.com>
9130
9131 * python/py-framefilter.c (py_print_single_arg)
9132 (enumerate_locals, py_print_args, py_print_frame): Remove some
9133 uses of is_mi_like_p.
9134
9135 2018-04-30 Tom Tromey <tom@tromey.com>
9136
9137 * ui-out.c: Update.
9138 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9139 * ui-out.h (ui_out::is_mi_like_p): Now const.
9140 (ui_out::do_is_mi_like_p): Now const.
9141 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9142
9143 2018-04-30 Tom Tromey <tom@tromey.com>
9144
9145 * varobj.c (varobj_set_visualizer): Use new_reference.
9146 * python/python.c (gdbpy_decode_line): Use new_reference.
9147 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9148 new_reference.
9149
9150 2018-04-30 Tom Tromey <tom@tromey.com>
9151
9152 * varobj.c (install_new_value): Use new_reference.
9153 * value.h (value_incref): Return void. Swap intro comment with
9154 value_decref.
9155 * value.c (set_value_parent): Use new_reference.
9156 (value_incref): Return void. Update intro comment.
9157 (release_value): Use new_reference.
9158 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9159
9160 2018-04-30 Tom Tromey <tom@tromey.com>
9161
9162 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9163 * gdb_bfd.h (new_bfd_ref): Remove.
9164 (gdb_bfd_open): Update comment.
9165 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9166 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9167 (gdb_bfd_fdopenr): Use new_reference.
9168 * exec.c (exec_file_attach): Use new_reference.
9169
9170 2018-04-30 Tom Tromey <tom@tromey.com>
9171
9172 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9173 method.
9174
9175 2018-04-30 Tom Tromey <tom@tromey.com>
9176
9177 * jit.c (jit_read_code_entry): Use type_align.
9178 * i386-tdep.c (i386_gdbarch_init): Don't call
9179 set_gdbarch_long_long_align_bit.
9180 * gdbarch.sh: Remove long_long_align_bit.
9181 * gdbarch.c, gdbarch.h: Rebuild.
9182 * arc-tdep.c (arc_type_align): New function.
9183 (arc_gdbarch_init): Use arc_type_align. Don't call
9184 set_gdbarch_long_long_align_bit.
9185
9186 2018-04-30 Tom Tromey <tom@tromey.com>
9187
9188 * rust-lang.c (rust_type_alignment): Remove.
9189 (rust_composite_type): Use type_align.
9190
9191 2018-04-30 Tom Tromey <tom@tromey.com>
9192
9193 * NEWS: Mention Type.align.
9194 * python/py-type.c (typy_get_alignof): New function.
9195 (type_object_getset): Add "alignof".
9196
9197 2018-04-30 Tom Tromey <tom@tromey.com>
9198
9199 PR exp/17095:
9200 * NEWS: Update.
9201 * std-operator.def (UNOP_ALIGNOF): New operator.
9202 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9203 New.
9204 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9205 * c-lang.c (c_op_print_tab): Add alignof.
9206 * c-exp.y (ALIGNOF): New token.
9207 (exp): Add "ALIGNOF" production.
9208 (ident_tokens): Add _Alignof and alignof.
9209
9210 2018-04-30 Tom Tromey <tom@tromey.com>
9211
9212 * i386-tdep.c (i386_type_align): New function.
9213 (i386_gdbarch_init): Update.
9214 * gdbarch.sh (type_align): New method.
9215 * gdbarch.c, gdbarch.h: Rebuild.
9216 * arch-utils.h (default_type_align): Declare.
9217 * arch-utils.c (default_type_align): New function.
9218 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9219 (struct type) <align_log2>: New field.
9220 <instance_flags>: Now a bitfield.
9221 (TYPE_RAW_ALIGN): New macro.
9222 (type_align, type_raw_align, set_type_align): Declare.
9223 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9224 functions.
9225 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9226 (get_alignment, maybe_set_alignment): New functions.
9227 (read_structure_type, read_enumeration_type, read_array_type)
9228 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9229 (read_subrange_type, read_base_type): Set type alignment.
9230
9231 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9232
9233 * dwarf2read.c (read_index_from_section): Use bool.
9234
9235 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9236
9237 PR gdb/22950
9238 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9239 with #ifdef.
9240
9241 2018-04-29 John Reiser <jreiser@BitWagon.com>
9242
9243 PR build/22873
9244 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9245 last step, and do it atomically.
9246
9247 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9248
9249 * compile/compile-c-types.c (convert_int, convert_float):
9250 Update for C FE v1.
9251
9252 2018-04-27 Tom Tromey <tom@tromey.com>
9253
9254 PR rust/22545:
9255 * rust-lang.c (rust_inclusive_range_type_p): New function.
9256 (rust_range): Handle inclusive ranges.
9257 (rust_compute_range): Likewise.
9258 * rust-exp.y (struct rust_op) <inclusive>: New field.
9259 (DOTDOTEQ): New constant.
9260 (range_expr): Add "..=" productions.
9261 (operator_tokens): Add "..=" token.
9262 (ast_range): Add "inclusive" parameter.
9263 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9264 ranges.
9265 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9266 bounds values.
9267 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9268 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9269 Update comments.
9270 * expprint.c (print_subexp_standard): Handle new bounds values.
9271 (dump_subexp_body_standard): Likewise.
9272
9273 2018-04-27 Tom Tromey <tom@tromey.com>
9274
9275 * configure: Rebuild.
9276 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9277 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9278 "OVERRIDE".
9279 (class symbol_needs_eval_context): Likewise.
9280 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9281 (mock_mapped_index::symbol_name_at): Use "override". Remove
9282 "virtual".
9283 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9284 "override".
9285 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9286 * aarch64-tdep.c (instruction_reader::read): Use "override".
9287 (instruction_reader_test::read): Likewise.
9288 * arm-tdep.c (instruction_reader::read): Use "override".
9289 (instruction_reader_thumb::read): Likewise.
9290
9291 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9292
9293 PR remote/9665
9294 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9295 instead of remote_send.
9296 (remote_send): Remove.
9297
9298 2018-04-26 Pedro Alves <palves@redhat.com>
9299
9300 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9301 find_function_start_sal instead of find_pc_line.
9302
9303 2018-04-26 Pedro Alves <palves@redhat.com>
9304
9305 * breakpoint.c (set_breakpoint_location_function): Handle
9306 mst_data_gnu_ifunc.
9307 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9308 * elfread.c (elf_symtab_read): Give data symbols with
9309 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9310 (elf_rel_plt_read): Update comment.
9311 * linespec.c (convert_linespec_to_sals): Handle
9312 mst_data_gnu_ifunc.
9313 (minsym_found): Handle mst_data_gnu_ifunc.
9314 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9315 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9316 * parse.c (find_minsym_type_and_address): Handle
9317 mst_data_gnu_ifunc.
9318 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9319 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9320 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9321 comment.
9322 <mst_data_gnu_ifunc>: New enumerator.
9323
9324 2018-04-26 Pedro Alves <palves@redhat.com>
9325
9326 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9327 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9328 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9329 Handle it.
9330 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9331 (lookup_minimal_symbol_by_pc): Adjust.
9332 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9333 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9334 * minsyms.h (lookup_msym_prefer): New enum.
9335 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9336 parameter by a lookup_msym_prefer parameter.
9337
9338 2018-04-26 Pedro Alves <palves@redhat.com>
9339
9340 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9341 ends in "@plt" instead of looking at the symbol's section.
9342
9343 2018-04-26 Pedro Alves <palves@redhat.com>
9344
9345 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9346 all references.
9347 (find_pc_partial_function_gnu_ifunc): Rename to ...
9348 (find_pc_partial_function): ... this, and remove references to
9349 'is_gnu_ifunc_p'.
9350 (find_pc_partial_function): Delete old implementation.
9351 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9352
9353 2018-04-26 Pedro Alves <palves@redhat.com>
9354
9355 * linespec.c (struct bound_minimal_symbol_search_key): New.
9356 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9357 skip first line if we found a GNU ifunc minimal symbol by name.
9358 (compare_msymbols): Change parameters to work with a destructured
9359 lhs minsym.
9360 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9361 functions.
9362
9363 2018-04-26 Pedro Alves <palves@redhat.com>
9364
9365 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9366 ifunc targets here. Instead, if we have an ifunc minsym, use its
9367 address/name.
9368 (add_location_to_breakpoint): Store the minsym and the objfile in
9369 the breakpoint location.
9370 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9371 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9372 Record the minsym in the sal.
9373 * symtab.h (symtab_and_line) <msymbol>: New field.
9374
9375 2018-04-26 Pedro Alves <palves@redhat.com>
9376
9377 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9378 unless we actually resolved the ifunc.
9379
9380 2018-04-26 Pedro Alves <palves@redhat.com>
9381
9382 * c-exp.y (variable production): Prefer ifunc minsyms over
9383 regular function symbols.
9384 * symtab.c (find_gnu_ifunc): New function.
9385 * minsyms.h (lookup_msym_prefer): New enum.
9386 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9387 parameter by a lookup_msym_prefer parameter.
9388 * symtab.h (find_gnu_ifunc): New declaration.
9389
9390 2018-04-26 Pedro Alves <palves@redhat.com>
9391
9392 * blockframe.c (find_gnu_ifunc_target_type): New function.
9393 (find_function_type): New.
9394 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9395 return a value with a memory address.
9396 (eval_call): For calls to GNU ifunc functions, try to find the
9397 type of the target function from the type that the resolver
9398 returns.
9399 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9400 symbols.
9401 * infcall.c (find_function_return_type): Delete.
9402 (find_function_addr): Add 'function_type' parameter. For calls to
9403 GNU ifunc functions, try to find the type of the target function
9404 from the type that the resolver returns, and return it via
9405 FUNCTION_TYPE.
9406 (call_function_by_hand_dummy): Adjust to use the function type
9407 returned by find_function_addr.
9408 (find_function_addr): Add 'function_type' parameter and move
9409 description here.
9410 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9411 declarations.
9412
9413 2018-04-26 Pedro Alves <palves@redhat.com>
9414
9415 * c-exp.y (variable production): Skip finding an alias for ifunc
9416 symbols.
9417
9418 2018-04-26 Pedro Alves <palves@redhat.com>
9419
9420 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9421
9422 2018-04-25 Pedro Alves <palves@redhat.com>
9423
9424 * infcmd.c (kill_command): Print the pid as string, not the whole
9425 thread's ptid. Add comment. s/has been killed/killed/ in output
9426 message.
9427 * remote.c (remote_detach_1): Print the pid as string, not the
9428 whole thread's ptid.
9429
9430 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9431 Sergio Durigan Junior <sergiodj@redhat.com>
9432 Pedro Alves <palves@redhat.com>
9433
9434 * infcmd.c (kill_command): Print message when inferior has
9435 been killed.
9436 * inferior.c (print_inferior_events): Remove 'static'. Set as
9437 '1'.
9438 (add_inferior): Improve message printed when
9439 'print_inferior_events' is on.
9440 (exit_inferior): Remove message printed when
9441 'print_inferior_events' is on.
9442 (detach_inferior): Improve message printed when
9443 'print_inferior_events' is on.
9444 (initialize_inferiors): Use 'add_inferior_silent' to set
9445 'current_inferior_'.
9446 * inferior.h (print_inferior_events): Declare here as
9447 'extern'.
9448 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9449 '[Detaching...]' messages when 'print_inferior_events' is on.
9450 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9451 as prefix/suffix for messages. Remove periods. Fix erroneous
9452 'Detaching after fork from child...', replace it by '... from
9453 parent...'.
9454 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9455 prefix/suffix when printing 'Detaching...' messages. Print
9456 them when 'print_inferior_events' is on.
9457 * remote.c (remote_detach_1): Print message when detaching
9458 from inferior and '!is_fork_parent'.
9459
9460 2018-04-24 Tom Tromey <tom@tromey.com>
9461
9462 * cli-out.h: Reindent.
9463
9464 2018-04-24 Tom Tromey <tom@tromey.com>
9465
9466 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9467 (cli_ui_out::do_field_string): Use fputs_filtered.
9468 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9469
9470 2018-04-23 Tom Tromey <tom@tromey.com>
9471
9472 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9473 gdb::unique_xmalloc_ptr.
9474
9475 2018-04-23 Tom Tromey <tom@tromey.com>
9476
9477 * configure: Rebuild.
9478
9479 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9480
9481 PR gdb/23095
9482 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9483 prepare_for_testing. Set normal_bp to r_debug_state if target
9484 is bsd.
9485
9486 2018-04-21 Pedro Alves <palves@redhat.com>
9487 Rajendra SY <rajendra.sy@gmail.com>
9488
9489 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9490 * remote.c (extended_remote_attach): In all-stop mode, mark the
9491 thread as executing.
9492
9493 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9494
9495 * thread.c (thread_apply_all_command): Fix comment.
9496 (thread_command): Fix comment.
9497
9498 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9499
9500 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9501 parameter.
9502 * features/aarch64-core.c (create_feature_aarch64_core):
9503 Regenerate.
9504 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9505 Likewise.
9506 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9507 Likewise.
9508 * features/i386/32bit-avx512.c
9509 (create_feature_i386_32bit_avx512): Likewise.
9510 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9511 Likewise.
9512 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9513 Likewise.
9514 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9515 Likewise.
9516 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9517 Likewise.
9518 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9519 Likewise.
9520 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9521 Likewise.
9522 * features/i386/64bit-avx512.c
9523 (create_feature_i386_64bit_avx512): Likewise.
9524 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9525 Likewise.
9526 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9527 Likewise.
9528 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9529 Likewise.
9530 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9531 Likewise.
9532 * features/i386/64bit-segments.c
9533 (create_feature_i386_64bit_segments): Likewise.
9534 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9535 Likewise.
9536 * features/i386/x32-core.c
9537 (create_feature_i386_x32_core): Likewise.
9538 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9539 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9540 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9541 * target-descriptions.c: In generated code, don't pass xml
9542 filename.
9543
9544 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9545
9546 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9547 (print_xml_feature::visit_post): Likewise.
9548 (print_xml_feature::visit): Likewise.
9549 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9550 (print_xml_feature): Add new class.
9551 * regformats/regdat.sh: Null xmltarget on feature targets.
9552 * target-descriptions.c (struct target_desc): Add xmltarget.
9553 (maintenance_check_tdesc_xml_convert): Add unittest function.
9554 (tdesc_get_features_xml): Add function to get xml.
9555 (maintenance_check_xml_descriptions): Test xml generation.
9556 * xml-tdesc.c (string_read_description_xml): Add function.
9557 * xml-tdesc.h (string_read_description_xml): Add declaration.
9558
9559 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9560
9561 * features/Makefile: Add feature marker to targets with new style
9562 target descriptions.
9563 * regformats/aarch64.dat: Regenerate.
9564 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9565 * regformats/i386/amd64-avx-linux.dat: Likewise.
9566 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9567 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9568 * regformats/i386/amd64-linux.dat: Likewise.
9569 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9570 * regformats/i386/amd64.dat: Likewise.
9571 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9572 * regformats/i386/i386-avx-linux.dat: Likewise.
9573 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9574 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9575 * regformats/i386/i386-linux.dat: Likewise.
9576 * regformats/i386/i386-mmx-linux.dat: Likewise.
9577 * regformats/i386/i386-mpx-linux.dat: Likewise.
9578 * regformats/i386/i386.dat: Likewise.
9579 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9580 * regformats/i386/x32-avx-linux.dat: Likewise.
9581 * regformats/i386/x32-linux.dat: Likewise.
9582 * regformats/tic6x-c62x-linux.dat: Likewise.
9583 * regformats/tic6x-c64x-linux.dat: Likewise.
9584 * regformats/tic6x-c64xp-linux.dat: Likewise.
9585 * regformats/regdat.sh: Parse feature marker.
9586
9587 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9588
9589 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9590 (tdesc_osabi_name): Likewise.
9591 * target-descriptions.c (tdesc_architecture_name): Add new
9592 function.
9593 (tdesc_osabi_name): Likewise.
9594
9595 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9596
9597 * common/tdesc.c (tdesc_predefined_type): Move to here.
9598 (tdesc_named_type): Likewise.
9599 (tdesc_create_vector): Likewise.
9600 (tdesc_create_struct): Likewise.
9601 (tdesc_set_struct_size): Likewise.
9602 (tdesc_create_union): Likewise.
9603 (tdesc_create_flags): Likewise.
9604 (tdesc_create_enum): Likewise.
9605 (tdesc_add_field): Likewise.
9606 (tdesc_add_typed_bitfield): Likewise.
9607 (tdesc_add_bitfield): Likewise.
9608 (tdesc_add_flag): Likewise.
9609 (tdesc_add_enum_value): Likewise.
9610 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9611 (struct tdesc_type_vector): Likewise.
9612 (struct tdesc_type_field): Likewise.
9613 (struct tdesc_type_with_fields): Likewise.
9614 (tdesc_create_enum): Add declaration.
9615 (tdesc_add_typed_bitfield): Likewise.
9616 (tdesc_add_enum_value): Likewise.
9617 * target-descriptions.c (tdesc_type_field): Move from here.
9618 (tdesc_type_builtin): Likewise.
9619 (tdesc_type_vector): Likewise.
9620 (tdesc_type_with_fields): Likewise.
9621 (tdesc_predefined_types): Likewise.
9622 (tdesc_named_type): Likewise.
9623 (tdesc_create_vector): Likewise.
9624 (tdesc_create_struct): Likewise.
9625 (tdesc_set_struct_size): Likewise.
9626 (tdesc_create_union): Likewise.
9627 (tdesc_create_flags): Likewise.
9628 (tdesc_create_enum): Likewise.
9629 (tdesc_add_field): Likewise.
9630 (tdesc_add_typed_bitfield): Likewise.
9631 (tdesc_add_bitfield): Likewise.
9632 (tdesc_add_flag): Likewise.
9633 (tdesc_add_enum_value): Likewise.
9634 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9635 (tdesc_add_typed_bitfield): Likewise.
9636 (tdesc_add_enum_value): Likewise.
9637
9638 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9639
9640 * common/tdesc.c (tdesc_feature::accept): Move to here.
9641 (tdesc_feature::operator==): Likewise.
9642 (tdesc_create_reg): Likewise.
9643 * common/tdesc.h (tdesc_type_kind): Likewise.
9644 (struct tdesc_type): Likewise.
9645 (struct tdesc_feature): Likewise.
9646 * regformats/regdat.sh: Create a feature.
9647 * target-descriptions.c (tdesc_type_kind): Move from here.
9648 (tdesc_type): Likewise.
9649 (tdesc_type_up): Likewise.
9650 (tdesc_feature): Likewise.
9651 (tdesc_create_reg): Likewise.
9652
9653 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9654
9655 * Makefile.in: Add arch/tdesc.c
9656 * common/tdesc.c: New file.
9657 * common/tdesc.h (tdesc_element_visitor): Move to here.
9658 (tdesc_element): Likewise.
9659 (tdesc_reg): Likewise.
9660 (tdesc_reg_up): Likewise.
9661 * regformats/regdef.h (reg): Add offset to constructors.
9662 * target-descriptions.c (tdesc_element_visitor): Move from here.
9663 (tdesc_element): Likewise.
9664 (tdesc_reg): Likewise.
9665 (tdesc_reg_up): Likewise.
9666
9667 2018-04-17 Tom Tromey <tom@tromey.com>
9668
9669 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9670 discriminant field.
9671
9672 2018-04-17 Tom Tromey <tom@tromey.com>
9673
9674 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9675
9676 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9677
9678 * symtab.c (print_symbol_info): Skip printing filename and line
9679 number when `last' is NULL.
9680 (symtab_symbol_info): Use empty string instead of NULL for first
9681 invocation of print_symbol_info.
9682 (rbreak_command): Pass NULL to `last' parameter of
9683 print_symbol_info.
9684
9685 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9686
9687 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9688 instead of nullptr.
9689
9690 2018-04-16 Pedro Alves <palves@redhat.com>
9691
9692 * MAINTAINERS (sh): Remove.
9693 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9694 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9695 (ALLDEPFILES): Remove sh64-tdep.c.
9696 * NEWS: Mentions that support for SH-5/SH64 is removed.
9697 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9698 (sh*-*-openbsd*): Ditto.
9699 (sh64-*-elf*): Remove.
9700 (sh*): Remove.
9701 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9702 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9703 * sh-tdep.c: No longer include "sh64-tdep.h".
9704 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9705 * sh64-tdep.c, sh64-tdep.h: Remove files.
9706
9707 2018-04-16 Pedro Alves <palves@redhat.com>
9708
9709 * MAINTAINERS: Remove m88k.
9710 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9711 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9712 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9713 * NEWS: Mention that support for m88k was removed.
9714 * configure.host (m88*-*-*): Remove support.
9715 * configure.nat (m88k-*-*): Remove support.
9716 * configure.tgt (m88*-*-openbsd*): Remove.
9717 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9718
9719 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9720
9721 * configure.tgt (x86_tobjs): New variable.
9722 (amd64_tobjs, i386_tobjs): Use it.
9723
9724 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9725
9726 * symtab.c (print_symbol_info): Precede the symbol definition by
9727 the line number when available.
9728 * NEWS: Advertise this enhancement.
9729
9730 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9731
9732 * NEWS (New options): announce set/show record btrace cpu.
9733 * btrace.c: Include record-btrace.h.
9734 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9735 the vendor is unknown.
9736 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9737 Maybe overwrite the btrace configuration's cpu.
9738 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9739 (btrace_fetch): Add cpu parameter. Update callers.
9740 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9741 Maybe overwrite the btrace configuration's cpu. Skip enabling
9742 errata workarounds if the vendor is unknown.
9743 * python/py-record-btrace.c: Include record-btrace.h.
9744 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9745 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9746 * record-btrace.c (record_btrace_cpu_state_kind): New.
9747 (record_btrace_cpu): New.
9748 (set_record_btrace_cpu_cmdlist): New.
9749 (record_btrace_get_cpu): New.
9750 (require_btrace_thread, record_btrace_info)
9751 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9752 (cmd_set_record_btrace_cpu_none): New.
9753 (cmd_set_record_btrace_cpu_auto): New.
9754 (cmd_set_record_btrace_cpu): New.
9755 (cmd_show_record_btrace_cpu): New.
9756 (_initialize_record_btrace): Initialize set/show record btrace cpu
9757 commands.
9758 * record-btrace.h (record_btrace_get_cpu): New.
9759
9760 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9761
9762 * record.c (set_record_command): Fix typo in message.
9763
9764 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9765
9766 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9767
9768 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9769
9770 * infrun.c (process_event_stop_test): Call
9771 gdbarch_in_indirect_branch_thunk.
9772 * gdbarch.sh (in_indirect_branch_thunk): New.
9773 * gdbarch.c: Regenerated.
9774 * gdbarch.h: Regenerated.
9775 * x86-tdep.h: New.
9776 * x86-tdep.c: New.
9777 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9778 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9779 (ALLDEPFILES): Add x86-tdep.c.
9780 * arch-utils.h (default_in_indirect_branch_thunk): New.
9781 * arch-utils.c (default_in_indirect_branch_thunk): New.
9782 * i386-tdep: Include x86-tdep.h.
9783 (i386_in_indirect_branch_thunk): New.
9784 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9785 function.
9786 * amd64-tdep: Include x86-tdep.h.
9787 (amd64_in_indirect_branch_thunk): New.
9788 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9789
9790 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9791
9792 PR gdb/23053
9793 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9794 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9795 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9796 regression.
9797
9798 2018-04-12 Tom Tromey <tom@tromey.com>
9799
9800 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9801 (rust_evaluate_subexp): Likewise.
9802
9803 2018-04-12 Pedro Alves <palves@redhat.com>
9804
9805 * procfs.c (procfs_detach): Make forward declaration's prototype
9806 match definition's protototype.
9807 (proc_get_LDT_entry): Remove stale do_cleanups call.
9808
9809 2018-04-12 Pedro Alves <palves@redhat.com>
9810
9811 * target.h (target_ops::to_has_exited): Delete.
9812 (target_has_exited): Delete.
9813 * target-delegates.c: Regenerate.
9814
9815 2018-04-11 Pedro Alves <palves@redhat.com>
9816
9817 * target.c (fileio_fh_t::t): Add comment.
9818 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9819 (target_fileio_close): Handle a NULL target.
9820 (invalidate_fileio_fh): New.
9821 (target_close): Call it.
9822 * remote.c (remote_hostio_send_command): No longer check whether
9823 remote_desc is open.
9824
9825 2018-04-11 Pedro Alves <palves@redhat.com>
9826
9827 * target.c (fileio_fh_t): Make it a named struct instead of a
9828 typedef.
9829 (fileio_fh_t::is_closed): New method.
9830 (DEF_VEC_O (fileio_fh_t)): Remove.
9831 (fileio_fhandles): Now a std::vector.
9832 (is_closed_fileio_fh): Delete.
9833 (acquire_fileio_fd): Adjust. Rename parameters.
9834 (release_fileio_fd): Adjust.
9835 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9836 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9837 (target_fileio_close): Adjust.
9838
9839 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9840
9841 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9842 index.
9843
9844 2018-04-10 Pedro Alves <palves@redhat.com>
9845
9846 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9847 (scoped_finish_thread_state): New class.
9848 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9849 cleanup.
9850 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9851 (fetch_inferior_event, normal_stop): Likewise.
9852 * thread.c (finish_thread_state_cleanup): Delete.
9853
9854 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9855 Pedro Alves <palves@redhat.com>
9856
9857 * value.c: Include "selftest.h" and "common/array-view.h".
9858 (struct range) <operator ==>: New.
9859 (test_ranges_contain): New.
9860 (check_ranges_vector): New.
9861 (test_insert_into_bit_range_vector): New.
9862 (_initialize_values): Register selftests.
9863 * common/array-view.h (operator==, operator!=): New.
9864
9865 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9866
9867 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9868 an iterator.
9869 * inline-frame.c: Include <algorithm>.
9870 (struct inline_state): Add constructor.
9871 (inline_state_s): Remove.
9872 (DEF_VEC_O(inline_state_s)): Remove.
9873 (inline_states): Change type to std::vector.
9874 (find_inline_frame_state): Adjust to std::vector.
9875 (allocate_inline_frame_state): Remove.
9876 (clear_inline_frame_state): Adjust to std::vector.
9877 (skip_inline_frames): Adjust to std::vector.
9878
9879 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9880
9881 * tracepoint.h (struct trace_state_variable): Add constructor.
9882 <name>: Change type to std::string.
9883 * tracepoint.c (tsv_s): Remove.
9884 (DEF_VEC_O(tsv_s)): Remove.
9885 (tvariables): Change to std::vector.
9886 (create_trace_state_variable): Adjust to std::vector.
9887 (find_trace_state_variable): Likewise.
9888 (find_trace_state_variable_by_number): Likewise.
9889 (delete_trace_state_variable): Likewise.
9890 (trace_variable_command): Adjust to std::string.
9891 (delete_trace_variable_command): Likewise.
9892 (tvariables_info_1): Adjust to std::vector.
9893 (save_trace_state_variables): Likewise.
9894 (start_tracing): Likewise.
9895 (merge_uploaded_trace_state_variables): Adjust to std::vector
9896 and std::string.
9897 * target.h (struct target_ops)
9898 <to_download_trace_state_variable>: Pass reference to
9899 trace_state_variable.
9900 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9901 * target-delegates.c: Re-generate.
9902 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9903 (mi_tsv_deleted): Likewise.
9904 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9905 * remote.c (remote_download_trace_state_variable): Change
9906 pointer to reference and adjust.
9907 * make-target-delegates (parse_argtypes): Handle references.
9908 (write_function_header): Likewise.
9909 (munge_type): Likewise.
9910
9911 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9912
9913 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9914 string_view-selftests.c.
9915 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9916 testsuite.
9917 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9918 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9919 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9920 * unittests/basic_string_view/element_access/char/1.cc:
9921 Likewise.
9922 * unittests/basic_string_view/element_access/char/empty.cc:
9923 Likewise.
9924 * unittests/basic_string_view/element_access/char/front_back.cc:
9925 Likewise.
9926 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9927 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9928 Likewise.
9929 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9930 Likewise.
9931 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9932 Likewise.
9933 * unittests/basic_string_view/operations/compare/char/1.cc:
9934 Likewise.
9935 * unittests/basic_string_view/operations/compare/char/13650.cc:
9936 Likewise.
9937 * unittests/basic_string_view/operations/copy/char/1.cc:
9938 Likewise.
9939 * unittests/basic_string_view/operations/data/char/1.cc:
9940 Likewise.
9941 * unittests/basic_string_view/operations/find/char/1.cc:
9942 Likewise.
9943 * unittests/basic_string_view/operations/find/char/2.cc:
9944 Likewise.
9945 * unittests/basic_string_view/operations/find/char/3.cc:
9946 Likewise.
9947 * unittests/basic_string_view/operations/find/char/4.cc:
9948 Likewise.
9949 * unittests/basic_string_view/operations/rfind/char/1.cc:
9950 Likewise.
9951 * unittests/basic_string_view/operations/rfind/char/2.cc:
9952 Likewise.
9953 * unittests/basic_string_view/operations/rfind/char/3.cc:
9954 Likewise.
9955 * unittests/basic_string_view/operations/substr/char/1.cc:
9956 Likewise.
9957 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9958 * unittests/string_view-selftests.c: New file.
9959
9960 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9961
9962 * unittests/basic_string_view/capacity/1.cc: New file.
9963 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9964 * unittests/basic_string_view/cons/char/1.cc: New file.
9965 * unittests/basic_string_view/cons/char/2.cc: New file.
9966 * unittests/basic_string_view/cons/char/3.cc: New file.
9967 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9968 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9969 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9970 * unittests/basic_string_view/element_access/char/1.cc: New file.
9971 * unittests/basic_string_view/element_access/char/2.cc: New file.
9972 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9973 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9974 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9975 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9976 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9977 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9978 * unittests/basic_string_view/include.cc: New file.
9979 * unittests/basic_string_view/inserters/char/1.cc: New file.
9980 * unittests/basic_string_view/inserters/char/2.cc: New file.
9981 * unittests/basic_string_view/inserters/char/3.cc: New file.
9982 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9983 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9984 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9985 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9986 * unittests/basic_string_view/literals/types.cc: New file.
9987 * unittests/basic_string_view/literals/values.cc: New file.
9988 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9989 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9990 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9991 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9992 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9993 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9994 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9995 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9996 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9997 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9998 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9999 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10000 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10001 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10002 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10003 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10004 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10005 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10006 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10007 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10008 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10009 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10010 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10011 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10012 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10013 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10014 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10015 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10016 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10017 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10018 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10019 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10020 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10021 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10022 * unittests/basic_string_view/operators/char/2.cc: New file.
10023 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10024 * unittests/basic_string_view/range_access/char/1.cc: New file.
10025 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10026 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10027 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10028 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10029 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10030 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10031 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10032 * unittests/basic_string_view/typedefs.cc: New file.
10033 * unittests/basic_string_view/types/1.cc: New file.
10034
10035 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10036
10037 * common/gdb_string_view.h: Remove libstdc++ implementation
10038 details, adjust to gdb reality.
10039 * common/gdb_string_view.tcc: Likewise.
10040 * cli/cli-script.c (struct string_view): Remove.
10041 (user_args) <m_args>: Change element type to gdb::string_view.
10042 (user_args::insert_args): Adjust.
10043
10044 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10045
10046 * common/gdb_string_view.h: New file.
10047 * common/gdb_string_view.tcc: New file.
10048
10049 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10050
10051 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10052 * configure: Re-generate.
10053
10054 2018-04-09 Pedro Alves <palves@redhat.com>
10055
10056 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10057 (set_target_gdbarch): Call
10058 gdb::observers::architecture_changed.notify instead of
10059 observer_notify_architecture_changed.
10060
10061 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10062
10063 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10064 (do_restore_current_traceframe_cleanup): Remove.
10065 (restore_current_traceframe_cleanup_dtor): Remove.
10066 (make_cleanup_restore_current_traceframe): Remove.
10067 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10068 New.
10069 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10070 * infrun.c (fetch_inferior_event): Use
10071 scoped_restore_current_traceframe.
10072
10073 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10074
10075 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10076 Remove.
10077 <n_allocated_type_units>: Remove.
10078 <all_type_units>: Change to std::vector.
10079 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10080 to std::vector change.
10081 (dwarf2_per_objfile::get_cutu): Likewise.
10082 (dwarf2_per_objfile::get_tu): Likewise.
10083 (create_signatured_type_table_from_index): Likewise.
10084 (create_signatured_type_table_from_debug_names): Likewise.
10085 (dw2_symtab_iter_next): Likewise.
10086 (dw2_print_stats): Likewise.
10087 (dw2_expand_all_symtabs): Likewise.
10088 (dw2_expand_marked_cus): Likewise.
10089 (dw2_debug_names_iterator::next): Likewise.
10090 (dwarf2_initialize_objfile): Likewise.
10091 (add_signatured_type_cu_to_table): Likewise.
10092 (create_all_type_units): Likewise.
10093 (add_type_unit): Likewise.
10094 (struct tu_abbrev_offset): Add constructor.
10095 (build_type_psymtabs_1): Adjust to std::vector change.
10096 (print_tu_stats): Likewise.
10097 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10098 (write_debug_names): Likewise.
10099
10100 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10101
10102 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10103 Make an std::vector.
10104 <n_comp_units>: Remove.
10105 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10106 to std::vector change.
10107 (dwarf2_per_objfile::get_cutu): Likewise.
10108 (dwarf2_per_objfile::get_cu): Likewise.
10109 (create_cus_from_index): Likewise.
10110 (create_addrmap_from_index): Likewise.
10111 (create_addrmap_from_aranges): Likewise.
10112 (dwarf2_read_index): Likewise.
10113 (dw2_find_last_source_symtab): Likewise.
10114 (dw2_map_symtabs_matching_filename): Likewise.
10115 (dw2_symtab_iter_next): Likewise.
10116 (dw2_print_stats): Likewise.
10117 (dw2_expand_all_symtabs): Likewise.
10118 (dw2_expand_symtabs_with_fullname): Likewise.
10119 (dw2_expand_marked_cus): Likewise.
10120 (dw2_map_symbol_filenames): Likewise.
10121 (create_cus_from_debug_names): Likewise.
10122 (dwarf2_read_debug_names): Likewise.
10123 (dw2_debug_names_iterator::next): Likewise.
10124 (dwarf2_initialize_objfile): Likewise.
10125 (set_partial_user): Likewise.
10126 (dwarf2_build_psymtabs_hard): Likewise.
10127 (read_comp_units_from_section): Remove arguments, adjust to
10128 std::vector change.
10129 (create_all_comp_units): Adjust to std::vector and
10130 read_comp_units_from_section changes.
10131 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10132 change.
10133 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10134 (psyms_seen_size): Likewise.
10135 (write_gdbindex): Likewise.
10136 (write_debug_names): Likewise.
10137
10138 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10139
10140 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10141 with dwarf2_per_objfile.
10142 (create_cus_from_index): Likewise.
10143 (create_signatured_type_table_from_index): Likewise.
10144 (dwarf2_read_index): Likewise.
10145 (dwarf2_initialize_objfile): Likewise.
10146 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10147 per_cu rather than get_dwarf2_per_objfile.
10148
10149 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10150
10151 * dwarf2read.h (struct signatured_type): Forward declare.
10152 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10153 New methods.
10154 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10155 (dw2_get_cutu): ...this.
10156 (dwarf2_per_objfile::get_cu): Rename from...
10157 (dw2_get_cu): ...this.
10158 (dwarf2_per_objfile::get_tu): New.
10159 (create_addrmap_from_index): Adjust.
10160 (create_addrmap_from_aranges): Adjust.
10161 (dw2_find_last_source_symtab): Adjust.
10162 (dw2_map_symtabs_matching_filename): Adjust.
10163 (dw2_symtab_iter_next): Adjust.
10164 (dw2_print_stats): Adjust.
10165 (dw2_expand_all_symtabs): Adjust.
10166 (dw2_expand_symtabs_with_fullname): Adjust.
10167 (dw2_expand_marked_cus): Adjust.
10168 (dw_expand_symtabs_matching_file_matcher): Adjust.
10169 (dw2_map_symbol_filenames): Adjust.
10170 (dw2_debug_names_iterator::next): Adjust.
10171 (dwarf2_initialize_objfile): Adjust.
10172 (set_partial_user): Adjust.
10173 (dwarf2_build_psymtabs_hard): Adjust.
10174
10175 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10176
10177 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10178 Remove unused variables.
10179 (dw2_map_symtabs_matching_filename): Likewise.
10180 (dwarf2_record_block_ranges): Likewise.
10181 (dwarf2_read_addr_index): Likewise.
10182 (follow_die_offset): Likewise.
10183
10184 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10185
10186 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10187 to symbol_file_add_main.
10188
10189 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10190
10191 PR mi/22299
10192 * mi/mi-console.c (do_fputc_async_safe): New.
10193 (mi_console_file::write_async_safe): New.
10194 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10195 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10196 New.
10197 * ui-file.c (ui_file::putstrn): Adjust call to
10198 fputstrn_unfiltered.
10199 * utils.c (printchar): Replace do_fputs and do_fprintf
10200 parameters by do_fputc.
10201 (fputstr_filtered): Adjust call to printchar.
10202 (fputstr_unfiltered): Likewise.
10203 (fputstrn_filtered): Likewise.
10204 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10205 printchar.
10206 * utils.h (do_fputc_ftype): New typedef.
10207 (fputstrn_unfiltered): Add do_fputc parameter.
10208
10209 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10210
10211 * regformats/i386/i386-avx.dat: Remove.
10212
10213 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10214
10215 PR gdb/22979
10216 * amd64-tdep.c (amd64_none_init_abi): New function.
10217 (amd64_x32_none_init_abi): New function.
10218 (_initialize_amd64_tdep): Register handlers for x86-64 and
10219 x64_32 with GDB_OSABI_NONE.
10220 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10221 GDB_OSABI_NONE osabi.
10222
10223 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10224
10225 PR gdb/22980
10226 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10227 GDB_OSABI_NONE.
10228 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10229 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10230
10231 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10232
10233 * common/byte-vector.h (char_vector): New type.
10234 * target.h (target_read_alloc): Return
10235 gdb::optional<byte_vector>.
10236 (target_read_stralloc): Return gdb::optional<char_vector>.
10237 (target_get_osdata): Return gdb::optional<char_vector>.
10238 * target.c (target_read_alloc_1): Templatize. Replacement
10239 manual memory management with vector.
10240 (target_read_alloc): Change return type, adjust.
10241 (target_read_stralloc): Change return type, adjust.
10242 (target_get_osdata): Change return type, adjust.
10243 * auxv.c (struct auxv_info) <length>: Remove.
10244 <data>: Change type to gdb::optional<byte_vector>.
10245 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10246 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10247 (target_auxv_search): Adjust.
10248 (fprint_target_auxv): Adjust.
10249 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10250 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10251 (linux_make_corefile_notes): Adjust.
10252 * osdata.c (get_osdata): Adjust.
10253 * remote.c (remote_get_threads_with_qxfer): Adjust.
10254 (remote_memory_map): Adjust.
10255 (remote_traceframe_info): Adjust.
10256 (btrace_read_config): Adjust.
10257 (remote_read_btrace): Adjust.
10258 (remote_pid_to_exec_file): Adjust.
10259 * solib-aix.c (solib_aix_get_library_list): Adjust.
10260 * solib-dsbt.c (decode_loadmap): Don't free buf.
10261 (dsbt_get_initial_loadmaps): Adjust.
10262 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10263 * solib-target.c (solib_target_current_sos): Adjust.
10264 * tracepoint.c (sdata_make_value): Adjust.
10265 * xml-support.c (xinclude_start_include): Adjust.
10266 (xml_fetch_content_from_file): Adjust.
10267 * xml-support.h (xml_fetch_another): Change return type.
10268 (xml_fetch_content_from_file): Change return type.
10269 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10270 * xml-tdesc.c (file_read_description_xml): Adjust.
10271 (fetch_available_features_from_target): Change return type.
10272 (target_fetch_description_xml): Adjust.
10273 (target_read_description_xml): Adjust.
10274
10275 2018-04-06 Tom Tromey <tom@tromey.com>
10276
10277 * value.c (~value): Update.
10278 (struct value) <contents>: Now unique_xmalloc_ptr.
10279 (value_contents_bits_eq, allocate_value_contents)
10280 (value_contents_raw, value_contents_all_raw)
10281 (value_contents_for_printing, value_contents_for_printing_const)
10282 (set_value_enclosing_type): Update.
10283
10284 2018-04-06 Tom Tromey <tom@tromey.com>
10285
10286 * value.c (range_s): Remove typedef, VEC.
10287 (struct range): Add operator<.
10288 (range_lessthan): Remove.
10289 (ranges_contain): Change type.
10290 (~value): Update.
10291 (struct value) <unavailable, optimized_out>: Now std::vector.
10292 (value_entirely_available)
10293 (value_entirely_covered_by_range_vector)
10294 (value_entirely_unavailable, value_entirely_optimized_out):
10295 Update.
10296 (insert_into_bit_range_vector): Change argument type.
10297 (find_first_range_overlap): Likewise.
10298 (struct ranges_and_idx, value_contents_bits_eq)
10299 (require_not_optimized_out, require_available): Update.
10300 (ranges_copy_adjusted): Change argument types.
10301 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10302
10303 2018-04-06 Tom Tromey <tom@tromey.com>
10304
10305 * value.c (~value): Update.
10306 (struct value) <parent>: Now a value_ref_ptr.
10307 (value_parent, set_value_parent, value_address, value_copy):
10308 Update.
10309
10310 2018-04-06 Tom Tromey <tom@tromey.com>
10311
10312 * value.c (struct value): Add constructor, destructor, and member
10313 initializers.
10314 (allocate_value_lazy, value_decref): Update.
10315
10316 2018-04-06 Tom Tromey <tom@tromey.com>
10317
10318 * value.c (struct value) <released, next>: Remove.
10319 (all_values): Now a std::vector.
10320 (allocate_value_lazy): Update.
10321 (value_next): Remove.
10322 (value_mark, value_free_to_mark, release_value)
10323 (value_release_to_mark): Update.
10324
10325 2018-04-06 Tom Tromey <tom@tromey.com>
10326
10327 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10328 (free_value_chain): Remove.
10329 * value.c (free_value_chain): Remove.
10330 (value_release_to_mark): Return a std::vector.
10331 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10332 std::vector.
10333 (check_condition): Update.
10334 * eval.c (fetch_subexp_value): Change "val_chain" to a
10335 std::vector.
10336 * breakpoint.c (update_watchpoint): Update.
10337 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10338
10339 2018-04-06 Tom Tromey <tom@tromey.com>
10340
10341 * value.h (free_all_values): Remove.
10342 * value.c (free_all_values): Remove.
10343
10344 2018-04-06 Tom Tromey <tom@tromey.com>
10345
10346 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10347 (value_history_chain, value_history_count): Remove.
10348 (value_history): New global.
10349 (record_latest_value, access_value_history, show_values)
10350 (preserve_values): Update.
10351
10352 2018-04-06 Tom Tromey <tom@tromey.com>
10353
10354 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10355 * varobj.c (varobj_set_display_format, varobj_set_value)
10356 (install_default_visualizer, construct_visualizer)
10357 (install_new_value, ~varobj, varobj_get_value_type)
10358 (my_value_of_variable, varobj_editable_p): Update.
10359 * c-varobj.c (c_describe_child, c_value_of_variable)
10360 (cplus_number_of_children, cplus_describe_child): Update.
10361 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10362 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10363 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10364
10365 2018-04-06 Tom Tromey <tom@tromey.com>
10366
10367 * printcmd.c (last_examine_address): Change type to
10368 value_ref_ptr.
10369 (do_examine, x_command): Update.
10370
10371 2018-04-06 Tom Tromey <tom@tromey.com>
10372
10373 * value.c (release_value): Update.
10374 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10375 (struct bpstats) <val>: Now a value_ref_ptr.
10376 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10377 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10378 (~watchpoint, print_it_watchpoint, watch_command_1)
10379 (invalidate_bp_value_on_memory_change): Update.
10380
10381 2018-04-06 Tom Tromey <tom@tromey.com>
10382
10383 * varobj.c (varobj_clear_saved_item)
10384 (update_dynamic_varobj_children, install_new_value, ~varobj):
10385 Update.
10386 * value.h (value_incref): Move declaration earlier.
10387 (value_decref): Rename from value_free.
10388 (struct value_ref_policy): New.
10389 (value_ref_ptr): New typedef.
10390 (struct value_deleter): Remove.
10391 (gdb_value_up): Remove typedef.
10392 (release_value): Change return type.
10393 (release_value_or_incref): Remove.
10394 * value.c (set_value_parent): Update.
10395 (value_incref): Change return type.
10396 (value_decref): Rename from value_free.
10397 (value_free_to_mark, free_all_values, free_value_chain): Update.
10398 (release_value): Return value_ref_ptr.
10399 (release_value_or_incref): Remove.
10400 (record_latest_value, set_internalvar, clear_internalvar):
10401 Update.
10402 * stack.c (info_frame_command): Don't call value_free.
10403 * python/py-value.c (valpy_dealloc, valpy_new)
10404 (value_to_value_object): Update.
10405 * printcmd.c (do_examine): Update.
10406 * opencl-lang.c (lval_func_free_closure): Update.
10407 * mi/mi-main.c (register_changed_p): Don't call value_free.
10408 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10409 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10410 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10411 value_free.
10412 * guile/scm-value.c (vlscm_free_value_smob)
10413 (vlscm_scm_from_value): Update.
10414 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10415 (frame_unwind_register_unsigned, get_frame_register_bytes)
10416 (put_frame_register_bytes): Don't call value_free.
10417 * findvar.c (address_from_register): Don't call value_free.
10418 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10419 * dwarf2loc.c (entry_data_value_free_closure)
10420 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10421 (dwarf2_evaluate_loc_desc_full): Update.
10422 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10423 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10424 (~watchpoint, watch_command_1)
10425 (invalidate_bp_value_on_memory_change): Update.
10426 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10427
10428 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10429
10430 PR gdb/23022
10431 * warning.m4: Add -Wno-error=deprecated-register.
10432 * configure: Re-generate.
10433
10434 2018-04-05 Tom Tromey <tom@tromey.com>
10435
10436 * linespec.h: Remove include of "vec.h".
10437
10438 2018-04-05 Tom Tromey <tom@tromey.com>
10439
10440 * linespec.c (typep): Remove typedef.
10441 (find_methods, find_superclass_methods): Take a std::vector.
10442 (find_method): Use std::vector.
10443
10444 2018-04-05 Tom Tromey <tom@tromey.com>
10445
10446 * utils.c (compare_strings): Remove.
10447 * utils.h (compare_strings): Remove.
10448 * objc-lang.h (find_imps): Update.
10449 * objc-lang.c (find_methods): Take a std::vector.
10450 (uniquify_strings, find_imps): Likewise.
10451 * linespec.c (find_methods): Take a std::vector.
10452 (decode_objc): Use std::vector.
10453 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10454 a std::vector.
10455 (find_method, find_function_symbols): Use std::vector.
10456
10457 2018-04-05 Tom Tromey <tom@tromey.com>
10458
10459 * completer.c (completion_tracker::completion_tracker): Remove
10460 cast.
10461 (completion_tracker::discard_completions): Likewise.
10462 * breakpoint.c (ambiguous_names_p): Remove cast.
10463 * ada-lang.c (_initialize_ada_language): Remove cast.
10464 * utils.h (streq): Update.
10465 (streq_hash): Add new declaration.
10466 * utils.c (streq): Return bool.
10467 (streq_hash): New function.
10468
10469 2018-04-05 Tom Tromey <tom@tromey.com>
10470
10471 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10472 Remove a string copy.
10473
10474 2018-04-05 Tom Tromey <tom@tromey.com>
10475
10476 * linespec.c (filter_results): Use std::vector.
10477 (decode_line_2, decode_line_full): Update.
10478
10479 2018-04-05 Tom Tromey <tom@tromey.com>
10480
10481 * linespec.c (canonical_to_fullform): Return std::string.
10482 (filter_results): Update.
10483 (struct decode_line_2_item): Add constructor.
10484 <fullform, displayform>: Now std::string.
10485 (decode_line_2_compare_items): Now a std::sort comparator.
10486 (decode_line_2): Update.
10487
10488 2018-04-05 Tom Tromey <tom@tromey.com>
10489
10490 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10491 (unexpected_linespec_error): Update.
10492 (linespec_parse_basic, parse_linespec): Update.
10493
10494 2018-04-05 Tom Tromey <tom@tromey.com>
10495
10496 * linespec.c (linespec_parse_basic): Reindent.
10497
10498 2018-04-05 Tom Tromey <tom@tromey.com>
10499
10500 * minsyms.h (iterate_over_minimal_symbols): Update.
10501 * minsyms.c (iterate_over_minimal_symbols): Take a
10502 gdb::function_view.
10503 * linespec.c (struct collect_minsyms): Remove.
10504 (compare_msyms): Now a std::sort comparator.
10505 (add_minsym): Add parameters.
10506 (search_minsyms_for_name): Update. Use std::vector.
10507
10508 2018-04-03 Tom Tromey <tom@tromey.com>
10509
10510 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10511 gdb::byte_vector.
10512
10513 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10514
10515 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10516
10517 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10518
10519 PR gdb/16959
10520 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10521 printing static type.
10522
10523 2018-04-01 Tom Tromey <tom@tromey.com>
10524
10525 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10526 (rs6000_xfer_shared_libraries): Update.
10527
10528 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10529
10530 * common/gdb_vecs.h (char_ptr): Remove.
10531 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10532
10533 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10534
10535 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10536 with std::vector.
10537 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10538
10539 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10540
10541 * tracepoint.h (struct uploaded_tp): Initialize fields.
10542 <actions, step_actions, cmd_strings>: Change type to
10543 std::vector<char *>.
10544 * tracepoint.c (get_uploaded_tp): Allocate with new.
10545 (free_uploaded_tps): Free with delete.
10546 (parse_tracepoint_definition): Adjust to std::vector change.
10547 * breakpoint.c (read_uploaded_action): Likewise.
10548 (create_tracepoint_from_upload): Likewise.
10549 * ctf.c (ctf_write_uploaded_tp): Likewise.
10550 (SET_ARRAY_FIELD): Likewise.
10551 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10552
10553 2018-03-30 Tom Tromey <tom@tromey.com>
10554
10555 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10556 std::unique_ptr.
10557 (svr4_keep_data_in_core): Update.
10558 (svr4_read_so_list): Update.
10559
10560 2018-03-30 Tom Tromey <tom@tromey.com>
10561
10562 * windows-nat.c (handle_output_debug_string, handle_exception):
10563 Update.
10564 * target.h (target_read_string): Update.
10565 * target.c (target_read_string): Change "string" to
10566 unique_xmalloc_ptr.
10567 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10568 Update.
10569 * solib-frv.c (frv_current_sos): Update.
10570 * solib-dsbt.c (dsbt_current_sos): Update.
10571 * solib-darwin.c (darwin_current_sos): Update.
10572 * linux-thread-db.c (inferior_has_bug): Update.
10573 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10574 Update. Remove alloca.
10575 * ada-lang.c (ada_main_name): Update.
10576
10577 2018-03-30 Tom Tromey <tom@tromey.com>
10578
10579 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10580 (struct dwo_file_deleter): New.
10581 (dwo_file_up): New typedef.
10582 (open_and_init_dwo_file): Use dwo_file_up.
10583 (free_dwo_file_cleanup): Remove.
10584
10585 2018-03-30 Tom Tromey <tom@tromey.com>
10586
10587 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10588 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10589
10590 2018-03-30 Tom Tromey <tom@tromey.com>
10591
10592 * dwarf2read.c (class free_cached_comp_units): New class.
10593 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10594 (free_cached_comp_units): Remove function.
10595
10596 2018-03-30 Tom Tromey <tom@tromey.com>
10597
10598 * utils.h (make_cleanup_unpush_target): Remove.
10599 * inf-ptrace.c (struct target_unpusher): New.
10600 (target_unpush_up) New typedef.
10601 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10602 target_unpush_up.
10603 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10604
10605 2018-03-27 Tom Tromey <tom@tromey.com>
10606
10607 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10608
10609 2018-03-27 Pedro Alves <palves@redhat.com>
10610 Tom Tromey <tom@tromey.com>
10611
10612 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10613 destructor. Now a class.
10614 (gdb_readline_wrapper_cleanup): Remove function.
10615 (gdb_readline_wrapper): Remove cleanups.
10616
10617 2018-03-27 Tom Tromey <tom@tromey.com>
10618
10619 * typeprint.h (struct type_print_options) <local_typedefs,
10620 global_typedefs>: Remove "struct" keyword.
10621 (class typedef_hash_table): New class.
10622 (recursively_update_typedef_hash, add_template_parameters)
10623 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10624 (find_typedef_in_hash): Don't declare.
10625 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10626 (typedef_hash_table::recursively_update): Rename from
10627 recursively_update_typedef_hash. Now a member.
10628 (typedef_hash_table::add_template_parameters): Rename from
10629 add_template_parameters. Now a member.
10630 (typedef_hash_table::typedef_hash_table): Now a constructor;
10631 rename from create_typedef_hash.
10632 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10633 rename from free_typedef_hash.
10634 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10635 (do_free_global_table): Remove.
10636 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10637 from copy_type_recursive.
10638 (create_global_typedef_table): Remove.
10639 (typedef_hash_table::find_global_typedef): Now a member of
10640 typedef_hash_table.
10641 (typedef_hash_table::find_typedef): Rename from
10642 find_typedef_in_hash; now a member.
10643 (whatis_exp): Update.
10644 * extension.h (struct ext_lang_type_printers): Add constructor and
10645 destructor.
10646 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10647 declare.
10648 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10649 Now a constructor; rename from start_ext_lang_type_printers.
10650 (ext_lang_type_printers): Now a destructor; rename from
10651 free_ext_lang_type_printers.
10652 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10653 Update.
10654 (c_type_print_base_struct_union): Update. Remove cleanups.
10655
10656 2018-03-27 Tom Tromey <tom@tromey.com>
10657
10658 * dwarf-index-write.c: Include <cmath>.
10659
10660 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10661
10662 * NEWS: Add entry describing new "set|show varsize-limit" command.
10663 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10664 command.
10665 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10666 "set variable".
10667
10668 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10669
10670 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10671 dwarf-index-write.c
10672 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10673 * dwarf-index-common.c: New file.
10674 * dwarf-index-common.h: New file.
10675 * dwarf-index-write.c: New file.
10676 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10677 (struct dwarf2_section_info): Move from here.
10678 (dwarf2_section_info_def): Likewise.
10679 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10680 (offset_type): Likewise.
10681 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10682 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10683 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10684 (byte_swap): Likewise.
10685 (MAYBE_SWAP): Likewise.
10686 (dwarf2_per_cu_ptr): Likewise.
10687 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10688 (struct tu_stats): Likewise.
10689 (struct dwarf2_per_objfile): Likewise.
10690 (struct dwarf2_per_cu_data): Likewise.
10691 (struct signatured_type): Likewise.
10692 (sig_type_ptr): Likewise.
10693 (DEF_VEC_P (sig_type_ptr)): Likewise.
10694 (INDEX4_SUFFIX): Likewise.
10695 (INDEX5_SUFFIX): Likewise.
10696 (DEBUG_STR_SUFFIX): Likewise.
10697 (dwarf2_read_section): Make non-static.
10698 (mapped_index_string_hash): Move from here.
10699 (dwarf5_djb_hash): Likewise.
10700 (file_write): Likewise.
10701 (class data_buf): Likewise.
10702 (struct symtab_index_entry): Likewise.
10703 (struct mapped_symtab): Likewise.
10704 (find_slot): Likewise.
10705 (hash_expand): Likewise.
10706 (add_index_entry): Likewise.
10707 (uniquify_cu_indices): Likewise.
10708 (class c_str_view): Likewise.
10709 (class c_str_view_hasher): Likewise.
10710 (class vector_hasher): Likewise.
10711 (write_hash_table): Likewise.
10712 (psym_index_map): Likewise.
10713 (struct addrmap_index_data): Likewise.
10714 (add_address_entry): Likewise.
10715 (add_address_entry_worker): Likewise.
10716 (write_address_map): Likewise.
10717 (symbol_kind): Likewise.
10718 (write_psymbols): Likewise.
10719 (struct signatured_type_index_data): Likewise.
10720 (write_one_signatured_type): Likewise.
10721 (recursively_count_psymbols): Likewise.
10722 (recursively_write_psymbols): Likewise.
10723 (class debug_names): Likewise.
10724 (check_dwarf64_offsets): Likewise.
10725 (psyms_seen_size): Likewise.
10726 (write_gdbindex): Likewise.
10727 (write_debug_names): Likewise.
10728 (assert_file_size): Likewise.
10729 (write_psymtabs_to_index): Likewise.
10730 (save_gdb_index_command): Likewise.
10731 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10732 command.
10733 * dwarf2read.h: New file.
10734
10735 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10736
10737 PR gdb/22670
10738 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10739 symbol name if the CU's language stores symbol names in linkage
10740 format.
10741 * language.h (struct language_defn)
10742 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10743 all instances of this struct.
10744
10745 2018-03-26 Tom Tromey <tom@tromey.com>
10746
10747 * stack.c (backtrace_command_1): Remove verbose code.
10748
10749 2018-03-26 Tom Tromey <tom@tromey.com>
10750
10751 * python/py-framefilter.c (py_print_type): Don't catch
10752 exceptions. Return void.
10753 (py_print_value): Likewise.
10754 (py_print_single_arg): Likewise.
10755 (enumerate_args): Don't catch exceptions.
10756 (py_print_args): Likewise.
10757 (py_print_frame): Likewise.
10758 (gdbpy_apply_frame_filter): Catch exceptions here.
10759
10760 2018-03-26 Tom Tromey <tom@tromey.com>
10761
10762 * stack.c (_initialize_stack): Remove trailing newlines from help
10763 text. Add "Usage" line to "backtrace" help.
10764
10765 2018-03-26 Tom Tromey <tom@tromey.com>
10766
10767 PR python/16486:
10768 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10769
10770 2018-03-26 Tom Tromey <tom@tromey.com>
10771
10772 * python/py-framefilter.c (py_print_single_arg): Return
10773 EXT_LANG_BT_ERROR from catch.
10774
10775 2018-03-26 Tom Tromey <tom@tromey.com>
10776
10777 PR backtrace/15584:
10778 * stack.c (backtrace_command_1): Move some code into no-filters
10779 "if".
10780
10781 2018-03-26 Tom Tromey <tom@tromey.com>
10782
10783 * python/py-framefilter.c (throw_quit_or_print_exception): New
10784 function.
10785 (gdbpy_apply_frame_filter): Use it.
10786
10787 2018-03-26 Tom Tromey <tom@tromey.com>
10788
10789 PR cli/17716:
10790 * python/py-framefilter.c (py_print_type, py_print_value)
10791 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10792 RETURN_MASK_ERROR.
10793
10794 2018-03-26 Tom Tromey <tom@tromey.com>
10795
10796 * python/py-framefilter.c (enumerate_args): Use
10797 gdb::unique_xmalloc_ptr.
10798
10799 2018-03-26 Tom Tromey <tom@tromey.com>
10800
10801 * python/py-framefilter.c (py_print_frame): Return
10802 EXT_LANG_BT_OK.
10803 (gdbpy_apply_frame_filter): Update comment.
10804 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10805 Remove.
10806 <EXT_LANG_BT_NO_FILTERS>: Change value.
10807
10808 2018-03-26 Tom Tromey <tom@tromey.com>
10809
10810 PR backtrace/15582:
10811 * stack.c (backtrace_command): Parse "hide" argument.
10812 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10813 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10814 constant.
10815
10816 2018-03-26 Tom Tromey <tom@tromey.com>
10817
10818 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10819 add "flags".
10820 (backtrace_command): Remove "fulltrace", add "flags".
10821
10822 2018-03-26 Tom Tromey <tom@tromey.com>
10823
10824 * stack.c (backtrace_command): Rewrite command line parsing.
10825
10826 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10827
10828 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10829
10830 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10831
10832 * filename-seen-cache.h: Add include guard.
10833
10834 2018-03-26 Keith Seitz <keiths@redhat.com>
10835
10836 * symfile.c (place_section): Remove "struct" from section_addr_info
10837 in comment.
10838 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10839 "struct" keyword from section_addr_info.
10840
10841 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10842
10843 * regformats/regdef.h (reg): Add constructors.
10844
10845 2018-03-25 Pedro Alves <palves@redhat.com>
10846
10847 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10848 if then/else bodies in var_func_name extraction.
10849
10850 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10851
10852 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10853 lookup_minimal_symbol() to find symbol entry.
10854 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10855
10856 2018-03-23 Keith Seitz <keiths@redhat.com>
10857
10858 PR c++/22968
10859 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10860 nested type definitions for C++, too.
10861
10862 2018-03-23 Tom Tromey <tom@tromey.com>
10863
10864 * machoread.c (struct oso_el): Add a constructor. Don't define as
10865 a typedef.
10866 (macho_register_oso): Remove.
10867 (macho_symtab_read): Take a std::vector.
10868 (oso_el_compare_name): Now a std::sort comparator.
10869 (macho_symfile_read_all_oso): Take a std::vector.
10870 (macho_symfile_read): Use std::vector. Remove cleanups.
10871
10872 2018-03-22 Tom Tromey <tom@tromey.com>
10873
10874 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10875 (record_full_goto_bookmark): Use std::string.
10876
10877 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10878
10879 PR tdep/18295
10880 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10881 a single mask.
10882
10883 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10884
10885 * rs6000-tdep.c (store_insn_p): New function.
10886 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10887 and cr_reg to their unshifted values. Use store_insn_p to
10888 match LR saves using either R1 or fdata->alloca_reg. Use
10889 store_insn_p to match CR saves. Set alloca_reg_offset
10890 when alloca_reg and framep are set. Remove lr_reg shift
10891 when assigning to fdata->lr_register.
10892
10893 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10894
10895 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10896 command line args instead of emitting a warning.
10897
10898 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10899
10900 * tracepoint.h (struct static_tracepoint_marker): Initialize
10901 fields, define default constructor, move constructor and move
10902 assignment, disable the rest.
10903 <str_id, extra>: Make std::string.
10904 (release_static_tracepoint_marker): Remove.
10905 (free_current_marker): Remove.
10906 * tracepoint.c (free_current_marker): Remove.
10907 (parse_static_tracepoint_marker_definition): Adjust to
10908 std::string, use new hex2str overload.
10909 (release_static_tracepoint_marker): Remove.
10910 (print_one_static_tracepoint_marker): Get marker by reference
10911 and adjust to std::string.
10912 (info_static_tracepoint_markers_command): Adjust to std::vector
10913 changes
10914 * target.h (static_tracepoint_marker_p): Remove typedef.
10915 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10916 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10917 bool.
10918 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10919 * target-debug.h
10920 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10921 (target_debug_print_std_vector_static_tracepoint_marker): New.
10922 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10923 to...
10924 (target_debug_print_static_tracepoint_marker_p): ... this.
10925 * target-delegates.c: Re-generate.
10926 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10927 Make std::string.
10928 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10929 (decode_static_tracepoint_spec): Adjust to std::vector.
10930 (tracepoint_print_one_detail): Adjust to std::string.
10931 (strace_marker_decode_location): Adjust to std::string.
10932 (update_static_tracepoint): Adjust to std::string, remove call
10933 to release_static_tracepoint_marker.
10934 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10935 Adjust to std::vector.
10936 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10937 (remote_static_tracepoint_markers_by_strid): Adjust to
10938 std::vector.
10939 * common/rsp-low.h (hex2str): New overload with explicit count
10940 of bytes.
10941 * common/rsp-low.c (hex2str): New overload with explicit count
10942 of bytes.
10943 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10944 (_initialize_rsp_low_selftests): Add test_hex2str test.
10945 * unittests/tracepoint-selftests.c
10946 (test_parse_static_tracepoint_marker_definition): Adjust to
10947 std::string.
10948
10949 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10950
10951 * tracepoint.c (parse_static_tracepoint_marker_definition):
10952 Consider case where the definition is followed by more
10953 definitions.
10954 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10955 tracepoint-selftests.c.
10956 * unittests/tracepoint-selftests.c: New.
10957
10958 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10959
10960 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10961 Carvalho.
10962
10963 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10964
10965 * symtab.c (find_pc_sect_line): fixed indentation.
10966
10967 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10968
10969 * symtab.c (find_pc_sect_line): now uses binary search.
10970
10971 2018-03-19 Tom Tromey <tom@tromey.com>
10972
10973 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10974 "IDENT" production.
10975
10976 2018-03-19 Pedro Alves <palves@redhat.com>
10977 Tom Tromey <tom@tromey.com>
10978
10979 * unittests/observable-selftests.c: New file.
10980 * common/observable.h: New file.
10981 * observable.h: New file.
10982 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10983 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10984 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10985 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10986 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10987 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10988 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10989 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10990 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10991 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10992 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10993 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10994 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10995 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10996 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10997 tui/tui-interp.c, valops.c: Update all users.
10998 * tui/tui-hooks.c (tui_bp_created_observer)
10999 (tui_bp_deleted_observer, tui_bp_modified_observer)
11000 (tui_inferior_exit_observer, tui_before_prompt_observer)
11001 (tui_normal_stop_observer, tui_register_changed_observer):
11002 Remove.
11003 (tui_observers_token): New global.
11004 (attach_or_detach, tui_attach_detach_observers): New functions.
11005 (tui_install_hooks, tui_remove_hooks): Use
11006 tui_attach_detach_observers.
11007 * record-btrace.c (record_btrace_thread_observer): Remove.
11008 (record_btrace_thread_observer_token): New global.
11009 * observer.sh: Remove.
11010 * observer.c: Rename to observable.c.
11011 * observable.c (namespace gdb_observers): Define new objects.
11012 (observer_debug): Move into gdb_observers namespace.
11013 (struct observer, struct observer_list, xalloc_observer_list_node)
11014 (xfree_observer_list_node, generic_observer_attach)
11015 (generic_observer_detach, generic_observer_notify): Remove.
11016 (_initialize_observer): Update.
11017 Don't include observer.inc.
11018 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11019 (clean mostlyclean): Likewise.
11020 (observer.h, observer.inc): Remove targets.
11021 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11022 (COMMON_SFILES): Use observable.c, not observer.c.
11023 * .gitignore: Remove observer.h.
11024
11025 2018-03-18 Tom Tromey <tom@tromey.com>
11026
11027 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11028 gdb::def_vector.
11029 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11030
11031 2018-03-17 Tom Tromey <tom@tromey.com>
11032
11033 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11034
11035 2018-03-17 Tom Tromey <tom@tromey.com>
11036
11037 * target.c (class scoped_target_fd): New.
11038 (target_fileio_close_cleanup): Remove.
11039 (target_fileio_read_alloc_1): Use scoped_target_fd.
11040
11041 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11042
11043 * silent-rules.mk: New.
11044 * Makefile.in: Include silent-rules.mk
11045 (srcdir, VPATH, top_srcdir): Move up.
11046 (COMPILE): Add ECHO_CXX.
11047 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11048 (init.c): Add ECHO_INIT_C.
11049 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11050 (version.c): Add ECHO_GEN.
11051 (printcmd.o): Add ECHO_CXX.
11052 (target-float.o): Add ECHO_CXX.
11053 (ada-exp.o): Add ECHO_CXX.
11054 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11055 (insight$(EXEEXT)): Add ECHO_CXXLD.
11056 * gnulib/configure.ac: Add AM_SILENT_RULES.
11057 * gnulib/aclocal.m4: Re-generate.
11058 * gnulib/configure: Re-generate.
11059 * gnulib/import/Makefile.in: Re-generate.
11060
11061 2018-03-16 Tom Tromey <tom@tromey.com>
11062
11063 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11064 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11065 * utils.c (do_free_section_addr_info)
11066 (make_cleanup_free_section_addr_info): Remove.
11067 * symfile.h (struct other_sections): Add constructor.
11068 (struct section_addr_info): Remove.
11069 (section_addr_info): New typedef.
11070 (struct sym_fns) <sym_offsets>: Change type of parameter.
11071 (build_section_addr_info_from_objfile)
11072 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11073 (default_symfile_offsets, symbol_file_add)
11074 (symbol_file_add_from_bfd)
11075 (build_section_addr_info_from_section_table): Update.
11076 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11077 * symfile.c (alloc_section_addr_info): Remove.
11078 (build_section_addr_info_from_section_table): Change return type.
11079 Update.
11080 (build_section_addr_info_from_bfd)
11081 (build_section_addr_info_from_objfile): Likewise.
11082 (free_section_addr_info): Remove.
11083 (relative_addr_info_to_section_offsets): Change type of "addrs".
11084 (addrs_section_compar): Now a std::sort comparator.
11085 (addrs_section_sort): Change return type.
11086 (addr_info_make_relative): Change type of "addrs". Update.
11087 (default_symfile_offsets, syms_from_objfile_1)
11088 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11089 (symbol_file_add_separate): Update.
11090 (symbol_file_add): Change type of "addrs". Update.
11091 (add_symbol_file_command): Update. Remove cleanups.
11092 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11093 cleanups.
11094 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11095 * solib.c (solib_read_symbols): Update.
11096 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11097 * machoread.c (macho_symfile_offsets): Update.
11098 * jit.c (jit_bfd_try_read_symtab): Update.
11099
11100 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11101
11102 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11103 unittests/utils-selftests.c.
11104 * unittests/utils-selftests.c: New file.
11105
11106 2018-03-14 Tom Tromey <tom@tromey.com>
11107
11108 PR cli/14977:
11109 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11110 for NULL.
11111
11112 2018-03-14 Tom Tromey <tom@tromey.com>
11113
11114 PR cli/19918:
11115 * printcmd.c (printf_pointer): Allow "-" in format.
11116
11117 2018-03-14 Tom Tromey <tom@tromey.com>
11118
11119 * printcmd.c (_initialize_printcmd): Add usage to printf.
11120
11121 2018-03-14 Yao Qi <qiyao@sourceware.org>
11122
11123 * MAINTAINERS: Update my email address.
11124
11125 2018-03-13 Tom Tromey <tom@tromey.com>
11126
11127 * machoread.c (macho_check_dsym): Change filenamep to a
11128 std::string*.
11129 (macho_symfile_read): Update.
11130 * symfile.c (load_command): Use std::string.
11131
11132 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11133
11134 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11135 to error message string.
11136 (riscv_register_name): Use xsnprintf instead of sprintf.
11137 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11138 internal_error.
11139 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11140 error.
11141 (riscv_push_dummy_call): Likewise.
11142
11143 2018-03-12 Tom Tromey <tom@tromey.com>
11144
11145 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11146 Use gdb::byte_vector.
11147 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11148
11149 2018-03-12 Yao Qi <yao.qi@linaro.org>
11150
11151 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11152 parameter type to readable_regcache.
11153 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11154 the declaration.
11155
11156 2018-03-11 Tom Tromey <tom@tromey.com>
11157
11158 * dwarf2read.c (struct nextfield): Add initializers.
11159 (struct nextfnfield): Remove.
11160 (struct fnfieldlist): Add initializers. Remove "length" and
11161 "head", use std::vector.
11162 (struct decl_field_list): Remove.
11163 (struct field_info): Add initializers.
11164 <fields, baseclasses>: Now std::vector.
11165 <nbaseclasses, nfnfields, typedef_field_list_count,
11166 nested_types_list_count>: Remove.
11167 (dwarf2_add_field, dwarf2_add_type_defn)
11168 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11169 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11170 (process_structure_scope): Update.
11171
11172 2018-03-11 Tom Tromey <tom@tromey.com>
11173
11174 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11175 for use by std::sort.
11176 (build_type_psymtabs_1): Use std::vector.
11177
11178 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11179
11180 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11181 and LIBMPFR in the printed configuration.
11182
11183 2018-03-08 Tom Tromey <tom@tromey.com>
11184
11185 * source.c (get_filename_and_charpos): Use scoped_fd.
11186 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11187 (procfs_pidlist): Likewise.
11188 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11189 (iterate_over_mappings): Likewise.
11190
11191 2018-03-08 Tom Tromey <tom@tromey.com>
11192
11193 * infcall.c (struct call_return_meta_info)
11194 <stack_temporaries_enabled>: Remove.
11195 (get_call_return_value, call_function_by_hand_dummy): Update.
11196 * thread.c (disable_thread_stack_temporaries): Remove.
11197 (enable_thread_stack_temporaries): Remove.
11198 (thread_stack_temporaries_enabled_p): Return bool.
11199 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11200 (get_last_thread_stack_temporary): Update.
11201 * eval.c (evaluate_subexp): Update.
11202 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11203 class, not a function.
11204 (value_ptr, value_vec): Remove typedefs.
11205 (class thread_info) <stack_temporaries_enabled>: Now bool.
11206 <stack_temporaries>: Now a std::vector.
11207 (thread_stack_temporaries_enabled_p)
11208 (value_in_thread_stack_temporaries): Return bool.
11209
11210 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11211
11212 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11213 (getpkt_or_notif_sane_1): Likewise.
11214
11215 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11216
11217 * build-id.c (build_id_to_debug_bfd): Use std::string.
11218
11219 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11220
11221 * build-id.c (find_separate_debug_file_by_buildid): Return
11222 std::string.
11223 * build-id.h (find_separate_debug_file_by_buildid): Return
11224 std::string.
11225 * coffread.c (coff_symfile_read): Adjust to std::string.
11226 * elfread.c (elf_symfile_read): Adjust to std::string.
11227 * symfile.c (separate_debug_file_exists): Change parameter to
11228 std::string.
11229 (find_separate_debug_file): Return std::string.
11230 (find_separate_debug_file_by_debuglink): Return std::string.
11231 * symfile.h (find_separate_debug_file_by_debuglink): Return
11232 std::string.
11233
11234 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11235
11236 * common/xml-utils.c (xml_escape_text): Move code to...
11237 (xml_escape_text_append): ... this new function.
11238 * common/xml-utils.h (xml_escape_text_append): New declaration.
11239 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11240 New function.
11241 (_initialize_xml_utils): register test_xml_escape_text_append as
11242 a selftest.
11243
11244 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11245
11246 * defs.h: Remove MAX_REGISTER_SIZE.
11247 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11248 asserts.
11249 * python/py-unwind.c (pyuw_sniffer): Likewise.
11250
11251 2018-03-07 Tom Tromey <tom@tromey.com>
11252
11253 * linux-tdep.c (linux_info_proc): Update.
11254 * target.h (struct target_ops) <to_fileio_readlink>: Return
11255 optional<string>.
11256 (target_fileio_readlink): Return optional<string>.
11257 * remote.c (remote_hostio_readlink): Return optional<string>.
11258 * inf-child.c (inf_child_fileio_readlink): Return
11259 optional<string>.
11260 * target.c (target_fileio_readlink): Return optional<string>.
11261
11262 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11263
11264 * regcache.c (cooked_read_test): Add riscv to the list of
11265 architectures that have a save_reggroup.
11266
11267 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11268
11269 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11270 value is not a dynamic class object.
11271
11272 2018-03-06 Tom Tromey <tom@tromey.com>
11273
11274 * rust-exp.y: Formatting fixes.
11275
11276 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11277
11278 * riscv-tdep.c (riscv_register_name): Remove target description
11279 support.
11280 (riscv_gdbarch_init): Remove target description check.
11281
11282 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11283
11284 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11285 comment.
11286 * riscv-tdep.h: Likewise.
11287
11288 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11289
11290 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11291 (riscv_pseudo_register_write): Delete.
11292 (riscv_gdbarch_init): Remove all use of pseudo registers.
11293
11294 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11295
11296 * record-btrace.c (btrace_print_lines): Replace cleanup
11297 parameter with RAII equivalents.
11298 (btrace_insn_history): Replace cleanup with RAII equivalents.
11299 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11300 make_cleanup_ui_out_tuple_begin_end): Remove.
11301 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11302 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11303 make_cleanup_ui_out_list_begin_end): Remove.
11304
11305 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11306
11307 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11308 parameter types to std::vector. Use bool.
11309 (record_btrace_wait): Replace VEC(tp_t) with
11310 std::vector<thread_info *>.
11311 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11312
11313 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11314
11315 * record-btrace.c (record_btrace_disable_callback): Remove.
11316 (struct scoped_btrace_disable): New.
11317 (record_btrace_open): Use scoped_btrace_disable.
11318
11319 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11320
11321 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11322 reading values from registers.
11323
11324 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11325
11326 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11327 where appropriate.
11328
11329 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11330
11331 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11332 change parameter type. Use GDB's print functions, and use
11333 core_addr_to_string where appropriate.
11334 (riscv_push_dummy_call): Use core_addr_to_string where
11335 appropriate, update call to riscv_print_arg_location, and reindent
11336 a few lines.
11337 (riscv_return_value): Update call to riscv_print_arg_location.
11338
11339 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11340 Tim Newsome <tim@sifive.com>
11341 Albert Ou <a0u@eecs.berkeley.edu>
11342 Darius Rad <darius@bluespec.com>
11343
11344 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11345 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11346 (ALLDEPFILES): Add riscv-tdep.c
11347 * configure.tgt: Add riscv support.
11348 * riscv-tdep.c: New file.
11349 * riscv-tdep.h: New file.
11350 * NEWS: Mention new target.
11351 * MAINTAINERS: Add entry for riscv.
11352
11353 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11354
11355 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11356 fields within aggregates.
11357
11358 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11359
11360 * record-btrace.c (btrace_print_lines): Change type of flags to
11361 gdb_disassembly_flags.
11362
11363 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11364
11365 * fbsd-nat.c: Include "inf-ptrace.h".
11366 (USE_SIGTRAP_SIGINFO): Conditionally define.
11367 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11368 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11369 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11370 function.
11371 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11372 Likewise.
11373 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11374 Likewise.
11375 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11376 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11377 "supports_stopped_by_hw_breakpoint" target methods.
11378
11379 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11380
11381 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11382 * fbsd-nat.c (debug_fbsd_nat): New variable.
11383 (show_fbsd_nat_debug): New function.
11384 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11385 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11386
11387 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11388
11389 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11390 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11391 prototype.
11392 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11393 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11394 method.
11395
11396 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11397
11398 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11399 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11400
11401 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11402
11403 * charset.c (struct charset_vector): New.
11404 (charsets): Change type to charset_vector.
11405 (find_charset_names): Adjust.
11406 (add_one): Adjust.
11407 (_initialize_charset): Adjust.
11408
11409 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11410
11411 * progspace.h (struct program_space) <deleted_solibs>: Change
11412 type to std::vector<std::string>.
11413 * progspace.c (clear_program_space_solib_cache): Adjust.
11414 * breakpoint.c (print_solib_event): Adjust.
11415 (check_status_catch_solib): Adjust.
11416 * solib.c (update_solib_list): Adjust.
11417 * ui-out.h (class ui_out) <field_string>: New overload.
11418 * ui-out.c (ui_out::field_string): New overload.
11419
11420 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11421
11422 * progspace.h (struct program_space): Add constructor and
11423 destructor, initialize fields.
11424 (add_program_space): Remove.
11425 * progspace.c (add_program_space): Rename to...
11426 (program_space::program_space): ... this.
11427 (release_program_space): Rename to...
11428 (program_space::~program_space): ... this.
11429 (delete_program_space): Use delete to delete program_space.
11430 (initialize_progspace): Use new to allocate program_space.
11431 * inferior.c (add_inferior_with_spaces): Likewise.
11432 (clone_inferior_command): Likewise.
11433 * infrun.c (follow_fork_inferior): Likewise.
11434 (handle_vfork_child_exec_or_exit): Likewise.
11435
11436 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11437
11438 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11439 (delim_string_to_char_ptr_vec): Return std::vector of
11440 gdb::unique_xmalloc_ptr.
11441 (dirnames_to_char_ptr_vec_append): Take std::vector of
11442 gdb::unique_xmalloc_ptr.
11443 (dirnames_to_char_ptr_vec): Return std::vector of
11444 gdb::unique_xmalloc_ptr.
11445 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11446 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11447 (delim_string_to_char_ptr_vec): Return an std::vector of
11448 gdb::unique_xmalloc_ptr, adjust the code.
11449 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11450 gdb::unique_xmalloc_ptr, adjust the code.
11451 (dirnames_to_char_ptr_vec): Return an std::vector of
11452 gdb::unique_xmalloc_ptr, adjust the code.
11453 * auto-load.c (auto_load_safe_path_vec): Change type to
11454 std::vector of gdb::unique_xmalloc_ptr.
11455 (auto_load_expand_dir_vars): Return an std::vector of
11456 gdb::unique_xmalloc_ptr, adjust the code.
11457 (auto_load_safe_path_vec_update): Adjust.
11458 (filename_is_in_auto_load_safe_path_vec): Adjust.
11459 (auto_load_objfile_script_1): Adjust.
11460 * build-id.c (build_id_to_debug_bfd): Adjust.
11461 * linux-thread-db.c (thread_db_load_search): Adjust.
11462 * source.c (add_path): Adjust.
11463 (openp): Adjust.
11464 * symfile.c (find_separate_debug_file): Adjust.
11465 * utils.c (do_free_char_ptr_vec): Remove.
11466 (make_cleanup_free_char_ptr_vec): Remove.
11467
11468 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11469
11470 PR gdb/22907
11471 * common/pathstuff.c: Conditionally include "<windows.h>".
11472
11473 2018-03-01 Georg Sauthoff <mail@georg.so>
11474
11475 PR gdb/22888
11476 * gcore.in: Quote variables and switch interpreter to bash.
11477
11478 2018-03-01 Tom Tromey <tom@tromey.com>
11479
11480 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11481 assertion. Add assertion for discriminant_index.
11482 (quirk_rust_enum): Use correct base type name in univariant case.
11483
11484 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11485
11486 * record.c (get_call_history_modifiers): Return a
11487 record_print_flags.
11488 (cmd_record_call_history): Adjust.
11489 * record-btrace.c (record_btrace_call_history): Adjust.
11490 (record_btrace_call_history_range): Adjust.
11491 (record_btrace_call_history_from): Adjust.
11492 * target-debug.h (target_debug_print_record_print_flags): New.
11493 * target-delegates.c: Re-generate.
11494 * target.c (target_call_history): Change flags type.
11495 (target_call_history_from): Likewise.
11496 (target_call_history_range): Likewise.
11497 * target.h (struct target_ops) <target_call_history>: Likewise.
11498 (target_call_history_from): Likewise.
11499 (target_call_history_range): Likewise.
11500
11501 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11502 Simon Marchi <simon.marchi@polymtl.ca>
11503
11504 * common/common-utils.c: Include "sys/stat.h".
11505 (is_regular_file): Move here from "source.c"; change return
11506 type to "bool".
11507 * common/common-utils.h (is_regular_file): New prototype.
11508 * common/pathstuff.c (contains_dir_separator): New function.
11509 * common/pathstuff.h (contains_dir_separator): New prototype.
11510 * source.c: Don't include "sys/stat.h".
11511 (is_regular_file): Move to "common/common-utils.c".
11512
11513 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11514
11515 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11516 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11517 * auto-load.c: Include "common/pathstuff.h".
11518 * common/common-def.h (current_directory): Move here.
11519 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11520 function.
11521 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11522 prototype.
11523 * common/pathstuff.c: New file.
11524 * common/pathstuff.h: New file.
11525 * compile/compile.c: Include "common/pathstuff.h".
11526 * defs.h (current_directory): Move to "common/common-defs.h".
11527 * dwarf2read.c: Include "common/pathstuff.h".
11528 * exec.c: Likewise.
11529 * guile/scm-safe-call.c: Likewise.
11530 * linux-thread-db.c: Likewise.
11531 * main.c: Likewise.
11532 * nto-tdep.c: Likewise.
11533 * objfiles.c: Likewise.
11534 * source.c: Likewise.
11535 * symtab.c: Likewise.
11536 * utils.c: Include "common/pathstuff.h".
11537 (gdb_realpath): Move to "common/pathstuff.c".
11538 (gdb_realpath_keepfile): Likewise.
11539 (gdb_abspath): Likewise.
11540 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11541 (gdb_realpath_keepfile): Likewise.
11542 (gdb_abspath): Likewise.
11543
11544 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11545
11546 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11547 wildcard process pid for super_resume for kernels with a
11548 specific bug.
11549
11550 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11551
11552 * compile/compile.c (get_args): Add additional comments
11553 explaining function.
11554
11555 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11556 Tom Tromey <tom@tromey.com>
11557
11558 * target.h (memory_write_request_s): Remove typedef. Don't define
11559 VEC.
11560 (target_write_memory_blocks): Change argument to std::vector.
11561 (struct memory_write_request): Add constructor.
11562 * target-memory.c (compare_block_starting_address): Return bool.
11563 Change argument types.
11564 (claim_memory): Change arguments to use std::vector.
11565 (split_regular_and_flash_blocks, blocks_to_erase)
11566 (compute_garbled_blocks): Likewise.
11567 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11568 (target_write_memory_blocks): Change argument to std::vector.
11569 * symfile.c (struct load_section_data): Add constructor and
11570 destructor. Use std::vector for "requests".
11571 (struct load_progress_data): Add initializers.
11572 (load_section_callback): Update. Use "new".
11573 (clear_memory_write_data): Remove.
11574 (generic_load): Update.
11575
11576 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11577
11578 * arch/aarch64.h: Use common/tdesc.h.
11579
11580 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11581
11582 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11583 architecture with a 64-bit ABI.
11584
11585 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11586
11587 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11588 ahead of target description loading.
11589
11590 2018-02-26 Tom Tromey <tom@tromey.com>
11591
11592 * stack.c (backtrace_command_1): Update.
11593 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11594 of "flags".
11595 * python/py-framefilter.c (py_print_frame)
11596 (gdbpy_apply_frame_filter): Change type of "flags".
11597 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11598 of "flags".
11599 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11600 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11601 * extension.h (enum frame_filter_flag): Rename from
11602 frame_filter_flags.
11603 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11604 (apply_ext_lang_frame_filter): Change type of "flags".
11605 * extension.c (apply_ext_lang_frame_filter): Change type of
11606 "flags".
11607 * extension-priv.h (struct extension_language_ops)
11608 <apply_frame_filter>: Change type of "flags".
11609
11610 2018-02-26 Tom Tromey <tom@tromey.com>
11611
11612 PR python/16497:
11613 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11614 off-by-one in py_end computation.
11615 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11616 PRINT_MORE_FRAMES.
11617 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11618 constant.
11619
11620 2018-02-26 Tom Tromey <tom@tromey.com>
11621
11622 * dwarf2read.c (struct variant_field): New.
11623 (struct nextfield) <variant>: New field.
11624 (dwarf2_add_field): Handle DW_TAG_variant_part.
11625 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11626 discriminated union.
11627 (read_structure_type): Handle DW_TAG_variant_part.
11628 (handle_struct_member_die): New function, extracted from
11629 process_structure_scope. Handle DW_TAG_variant.
11630 (process_structure_scope): Handle discriminated unions. Call
11631 handle_struct_member_die.
11632
11633 2018-02-26 Tom Tromey <tom@tromey.com>
11634
11635 * rust-lang.h (rust_last_path_segment): Declare.
11636 * rust-lang.c (rust_last_path_segment): Now public. Change
11637 contract.
11638 (struct disr_info): Remove.
11639 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11640 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11641 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11642 (rust_enum_p, rust_enum_variant): New function.
11643 (rust_underscore_fields): Remove "offset" parameter.
11644 (rust_print_enum): New function.
11645 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11646 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11647 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11648 enums.
11649 (rust_internal_print_type): New function, from rust_print_type.
11650 Remove enum code.
11651 (rust_print_type): Call rust_internal_print_type.
11652 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11653 Update enum handling.
11654 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11655 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11656 (rust_union_quirks): New functions.
11657 (process_full_comp_unit, process_full_type_unit): Call
11658 rust_union_quirks.
11659 (process_structure_scope): Update rust_unions if necessary.
11660
11661 2018-02-26 Tom Tromey <tom@tromey.com>
11662
11663 * value.h (value_union_variant): Declare.
11664 * valops.c (value_union_variant): New function.
11665 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11666 (struct discriminant_info): New.
11667 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11668 enumerator.
11669 (struct main_type) <flag_discriminated_union>: New field.
11670
11671 2018-02-26 Tom Tromey <tom@tromey.com>
11672
11673 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11674 unittests/unpack-selftests.c.
11675 * unittests/unpack-selftests.c: New file.
11676 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11677
11678 2018-02-26 Yao Qi <yao.qi@linaro.org>
11679
11680 * dwarf2read.c (struct partial_die_info) <read>: New method.
11681 (read_partial_die): Remove the declaration.
11682 (load_partial_dies): Update.
11683 (partial_die_info::partial_die_info):
11684 (read_partial_die): Change it to partial_die_info::read.
11685
11686 2018-02-26 Yao Qi <yao.qi@linaro.org>
11687
11688 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11689 (fixup_partial_die): Remove declaration.
11690 (scan_partial_symbols): Update.
11691 (partial_die_parent_scope): Likewise.
11692 (partial_die_full_name): Likewise.
11693 (fixup_partial_die): Change it to partial_die_info::fixup.
11694
11695 2018-02-26 Yao Qi <yao.qi@linaro.org>
11696
11697 * dwarf2read.c (read_partial_die): Update the declaration.
11698 (load_partial_dies): Caller update.
11699 (read_partial_die): Remove one argument abbrev_len.
11700
11701 2018-02-26 Yao Qi <yao.qi@linaro.org>
11702
11703 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11704 assignment operator.
11705 (load_partial_dies): Use ctor and copy ctor.
11706 (read_partial_die): Update.
11707 (dwarf2_cu::find_partial_die): Use ctor.
11708
11709 2018-02-26 Yao Qi <yao.qi@linaro.org>
11710
11711 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11712 (find_partial_die_in_comp_unit): Change it to
11713 dwarf2_cu::find_partial_die.
11714 (find_partial_die): Update.
11715
11716 2018-02-26 Yao Qi <yao.qi@linaro.org>
11717
11718 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11719 is NULL.
11720
11721 2018-02-26 Yao Qi <yao.qi@linaro.org>
11722
11723 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11724
11725 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11726
11727 * arch/amd64.h: Use common/tdesc.h.
11728 * arch/i386.c: Likewise.
11729 * arch/i386.h: Likewise.
11730 * arch/tic6x.c: Likewise.
11731 * arch/tdesc.h: Move file from here...
11732 * common/tdesc.h: ...to here.
11733 * features/aarch64-core.c: Regenerate.
11734 * features/aarch64-fpu.c: Regenerate.
11735 * features/i386/32bit-avx.c: Regenerate.
11736 * features/i386/32bit-avx512.c: Regenerate.
11737 * features/i386/32bit-core.c: Regenerate.
11738 * features/i386/32bit-linux.c: Regenerate.
11739 * features/i386/32bit-mpx.c: Regenerate.
11740 * features/i386/32bit-pkeys.c: Regenerate.
11741 * features/i386/32bit-sse.c: Regenerate.
11742 * features/i386/64bit-avx.c: Regenerate.
11743 * features/i386/64bit-avx512.c: Regenerate.
11744 * features/i386/64bit-core.c: Regenerate.
11745 * features/i386/64bit-linux.c: Regenerate.
11746 * features/i386/64bit-mpx.c: Regenerate.
11747 * features/i386/64bit-pkeys.c: Regenerate.
11748 * features/i386/64bit-segments.c: Regenerate.
11749 * features/i386/64bit-sse.c: Regenerate.
11750 * features/i386/x32-core.c: Regenerate.
11751 * features/tic6x-c6xp.c: Regenerate.
11752 * features/tic6x-core.c: Regenerate.
11753 * features/tic6x-gp.c: Regenerate.
11754 * target-descriptions.c: Use common/tdesc.h.
11755 * target-descriptions.h: Likewise.
11756
11757 2018-02-24 Tom Tromey <tom@tromey.com>
11758
11759 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11760 (try_thread_db_load_from_dir, thread_db_load_search): Use
11761 std::string.
11762 (info_auto_load_libthread_db_compare): Return bool. Change
11763 argument types.
11764 (info_auto_load_libthread_db): Use std::vector, std::string.
11765 Remove cleanups.
11766
11767 2018-02-24 Tom Tromey <tom@tromey.com>
11768
11769 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11770 std::string.
11771 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11772 std::string*.
11773 * gdbarch.c: Rebuild.
11774 * gdbarch.h: Rebuild.
11775 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11776 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11777 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11778 std::string*.
11779
11780 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11781
11782 * gdbtypes.h (sect_offset): Change type to uint64_t.
11783 (sect_offset_str): New function.
11784 * dwarf2read.c (create_addrmap_from_aranges): Use
11785 sect_offset_str.
11786 (error_check_comp_unit_head): Likewise.
11787 (create_debug_type_hash_table): Likewise.
11788 (read_cutu_die_from_dwo): Likewise.
11789 (init_cutu_and_read_dies): Likewise.
11790 (init_cutu_and_read_dies_no_follow): Likewise.
11791 (process_psymtab_comp_unit_reader): Likewise.
11792 (partial_die_parent_scope): Likewise.
11793 (peek_die_abbrev): Likewise.
11794 (process_queue): Likewise.
11795 (dwarf2_physname): Likewise.
11796 (read_namespace_alias): Likewise.
11797 (read_import_statement): Likewise.
11798 (create_dwo_cu_reader): Likewise.
11799 (create_cus_hash_table): Likewise.
11800 (lookup_dwo_cutu): Likewise.
11801 (inherit_abstract_dies): Likewise.
11802 (read_func_scope): Likewise.
11803 (read_call_site_scope): Likewise.
11804 (dwarf2_add_member_fn): Likewise.
11805 (read_common_block): Likewise.
11806 (read_module_type): Likewise.
11807 (read_typedef): Likewise.
11808 (read_subrange_type): Likewise.
11809 (load_partial_dies): Likewise.
11810 (read_partial_die): Likewise.
11811 (find_partial_die): Likewise.
11812 (read_str_index): Likewise.
11813 (dwarf2_string_attr): Likewise.
11814 (build_error_marker_type): Likewise.
11815 (lookup_die_type): Likewise.
11816 (dump_die_shallow): Likewise.
11817 (follow_die_ref): Likewise.
11818 (dwarf2_fetch_die_loc_sect_off): Likewise.
11819 (dwarf2_fetch_constant_bytes): Likewise.
11820 (follow_die_sig): Likewise.
11821 (get_signatured_type): Likewise.
11822 (get_DW_AT_signature_type): Likewise.
11823 (dwarf2_find_containing_comp_unit): Likewise.
11824 (set_die_type): Likewise.
11825
11826 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11827
11828 * arch/aarch64.c: Include "common-defs.h".
11829 * arch/amd64.c: Likewise.
11830 * arch/i386.c: Likewise.
11831
11832 2018-02-21 Tom Tromey <tom@tromey.com>
11833
11834 * value.h: (extract_field_op): Update.
11835 * eval.c (extract_field_op): Return a const char *.
11836 * expression.h (parse_expression_for_completion): Update.
11837 * completer.c (complete_expression): Update.
11838 (add_struct_fields): Make fieldname const.
11839 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11840 (mark_completion_tag, parse_exp_in_context_1): Update.
11841 (parse_expression_for_completion): Change "name" to
11842 unique_xmalloc_ptr*.
11843
11844 2018-02-21 Tom Tromey <tom@tromey.com>
11845
11846 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11847
11848 2018-02-21 Yao Qi <yao.qi@linaro.org>
11849
11850 * avr-tdep.c (avr_read_pc): Change parameter type to
11851 readable_regcache.
11852 * gdbarch.sh (read_pc): Likewise.
11853 * gdbarch.c: Re-generated.
11854 * gdbarch.h: Re-generated.
11855 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11856 readable_regcache.
11857 * ia64-tdep.c (ia64_read_pc): Likewise.
11858 * mips-tdep.c (mips_read_pc): Likewise.
11859 * spu-tdep.c (spu_read_pc): Likewise.
11860
11861 2018-02-21 Yao Qi <yao.qi@linaro.org>
11862
11863 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11864 * regcache-dump.c: New file.
11865 * regcache.c: Move register_dump to regcache-dump.c.
11866 (maintenance_print_registers): Likewise.
11867 (maintenance_print_raw_registers): Likewise.
11868 (maintenance_print_cooked_registers): Likewise.
11869 (maintenance_print_register_groups): Likewise.
11870 (maintenance_print_remote_registers): Likewise.
11871 (_initialize_regcache): Likewise.
11872 * regcache.h (register_dump): Moved from regcache.c.
11873
11874 2018-02-21 Yao Qi <yao.qi@linaro.org>
11875
11876 * regcache.c (regcache::regcache): Update.
11877 (regcache::invalidate): Move it to detached_regcache::invalidate.
11878 (get_thread_arch_aspace_regcache): Update.
11879 (regcache::raw_update): Update.
11880 (regcache::cooked_read): Remove some code.
11881 (regcache::cooked_read_value): Likewise.
11882 (regcache::raw_write): Remove assert on m_readonly_p.
11883 (regcache::raw_supply_integer): Move it to
11884 detached_regcache::raw_supply_integer.
11885 (regcache::raw_supply_zeroed): Likewise.
11886 * regcache.h (detached_regcache) <raw_supply_integer>: New
11887 declaration.
11888 <raw_supply_zeroed, invalidate>: Likewise.
11889 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11890 <invalidate>: Likewise.
11891 <m_readonly_p>: Removed.
11892
11893 2018-02-21 Yao Qi <yao.qi@linaro.org>
11894
11895 * infcmd.c (get_return_value): Let stop_regs point to
11896 get_current_regcache.
11897 * regcache.c (regcache::regcache): Remove.
11898 (register_dump_reg_buffer): New class.
11899 (regcache_print): Adjust.
11900 * regcache.h (regcache): Remove constructors.
11901
11902 2018-02-21 Yao Qi <yao.qi@linaro.org>
11903
11904 * regcache.c (class register_dump): New class.
11905 (register_dump_regcache, register_dump_none): New class.
11906 (register_dump_remote, register_dump_groups): New class.
11907 (regcache_print): Update.
11908 * regcache.h (regcache_dump_what): Move it to regcache.c.
11909 (regcache) <dump>: Remove.
11910
11911 2018-02-21 Yao Qi <yao.qi@linaro.org>
11912
11913 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11914 reg_buffer_rw *.
11915 (jit_unwind_reg_set_impl): Call raw_supply.
11916 (jit_frame_sniffer): Use reg_buffer_rw.
11917 * record-full.c (record_full_core_regbuf): Change its type.
11918 (record_full_core_open_1): Use reg_buffer_rw.
11919 (record_full_close): Likewise.
11920 (record_full_core_fetch_registers): Use regcache->raw_supply.
11921 (record_full_core_store_registers): Likewise.
11922 * regcache.c (regcache::get_register_status): Move it to
11923 reg_buffer.
11924 (regcache_raw_set_cached_value): Remove.
11925 (regcache::raw_set_cached_value): Remove.
11926 (regcache::raw_write): Call raw_supply.
11927 (regcache::raw_supply): Move it to reg_buffer_rw.
11928 * regcache.h (regcache_raw_set_cached_value): Remove.
11929 (reg_buffer_rw): New class.
11930
11931 2018-02-21 Yao Qi <yao.qi@linaro.org>
11932
11933 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11934 readonly_detached_regcache.
11935 (dummy_frame_prev_register): Use regcache->cooked_read.
11936 * frame.c (frame_save_as_regcache): Change return type.
11937 (frame_pop): Update.
11938 * frame.h (frame_save_as_regcache): Update declaration.
11939 * inferior.h (get_infcall_suspend_state_regcache): Update
11940 declaration.
11941 * infrun.c (infcall_suspend_state) <registers>: use
11942 readonly_detached_regcache.
11943 (save_infcall_suspend_state): Don't use regcache_dup.
11944 (get_infcall_suspend_state_regcache): Change return type.
11945 * linux-fork.c (struct fork_info) <savedregs>: Change to
11946 readonly_detached_regcache.
11947 <pc>: New field.
11948 (fork_save_infrun_state): Don't use regcache_dup.
11949 (info_checkpoints_command): Adjust.
11950 * mi/mi-main.c (register_changed_p): Update declaration.
11951 (mi_cmd_data_list_changed_registers): Use
11952 readonly_detached_regcache.
11953 (register_changed_p): Change parameter type to
11954 readonly_detached_regcache.
11955 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11956 readonly_detached_regcache.
11957 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11958 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11959 New.
11960 (regcache::save): Move it to reg_buffer.
11961 (regcache::restore): Change parameter type.
11962 (regcache_dup): Remove.
11963 * regcache.h (reg_buffer) <save>: New method.
11964 (readonly_detached_regcache): New class.
11965 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11966 readonly_detached_regcache.
11967 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11968
11969 2018-02-21 Yao Qi <yao.qi@linaro.org>
11970
11971 * frame.c (frame_save_as_regcache): Use regcache method save.
11972 (frame_pop): Use regcache method restore.
11973 * infrun.c (restore_infcall_suspend_state): Likewise.
11974 * linux-fork.c (fork_load_infrun_state): Likewise.
11975 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11976 save.
11977 * regcache.c (regcache_save): Remove.
11978 (regcache::restore): More asserts.
11979 (regcache_cpy): Remove.
11980 * regcache.h (regcache_save): Remove the declaration.
11981 (regcache::restore): Move from private to public.
11982 Remove the friend declaration of regcache_cpy.
11983 (regcache_cpy): Remove declaration.
11984
11985 2018-02-21 Yao Qi <yao.qi@linaro.org>
11986
11987 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11988 parameter type to 'readable_regcache *'.
11989 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11990 * arm-tdep.c (arm_neon_quad_read): Likewise.
11991 (arm_pseudo_read): Likewise.
11992 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11993 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11994 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11995 * gdbarch.c: Re-generated.
11996 * gdbarch.h: Re-generated.
11997 * gdbarch.sh (pseudo_register_read): Change parameter type to
11998 'readable_regcache *'.
11999 (pseudo_register_read_value): Likewise.
12000 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12001 (h8300_pseudo_register_read): Likewise.
12002 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12003 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12004 (i386_pseudo_register_read_into_value): Likewise.
12005 (i386_pseudo_register_read_value): Likewise.
12006 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12007 declaration.
12008 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12009 * m32c-tdep.c (m32c_raw_read): Likewise.
12010 (m32c_read_flg): Likewise.
12011 (m32c_banked_register): Likewise.
12012 (m32c_banked_read): Likewise.
12013 (m32c_sb_read): Likewise.
12014 (m32c_part_read): Likewise.
12015 (m32c_cat_read): Likewise.
12016 (m32c_r3r2r1r0_read): Likewise.
12017 (m32c_pseudo_register_read): Likewise.
12018 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12019 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12020 (mep_pseudo_cr64_read): Likewise.
12021 (mep_pseudo_register_read): Likewise.
12022 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12023 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12024 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12025 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12026 (regcache::cooked_read): Likewise.
12027 (regcache::cooked_read_value): Likewise.
12028 (regcache_cooked_read_signed):
12029 (regcache::cooked_read): Likewise.
12030 * regcache.h (readable_regcache): New class.
12031 (regcache): Inherit readable_regcache. Move some methods to
12032 readable_regcache.
12033 * rl78-tdep.c (rl78_pseudo_register_read): Change
12034 parameter type to 'readable_regcache *'.
12035 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12036 (e500_pseudo_register_read): Change parameter type to
12037 'readable_regcache *'.
12038 (dfp_pseudo_register_read): Likewise.
12039 (vsx_pseudo_register_read): Likewise.
12040 (efpr_pseudo_register_read): Likewise.
12041 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12042 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12043 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12044 (sh64_pseudo_register_read): Likewise.
12045 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12046 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12047 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12048 (spu_pseudo_register_read): Likewise.
12049 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12050 (xtensa_pseudo_register_read): Likewise.
12051
12052 2018-02-21 Yao Qi <yao.qi@linaro.org>
12053
12054 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12055 (regcache::arch): Move it to reg_buffer::arch.
12056 (regcache::register_buffer): Likewise.
12057 (regcache::assert_regnum): Likewise.
12058 (regcache::num_raw_registers): Likewise.
12059 * regcache.h (reg_buffer): New class.
12060 (regcache): Inherit reg_buffer.
12061
12062 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12063
12064 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12065 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12066
12067 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12068
12069 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12070
12071 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12072
12073 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12074 (SFILES): Remove common/*.c files.
12075 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12076 * common/common.host: Add common reference.
12077 * configure.ac: Likewise.
12078 * configure: Regenerate.
12079
12080 2018-02-16 Yao Qi <yao.qi@linaro.org>
12081
12082 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12083 (block_initialize_namespace): Use new.
12084 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12085 (dwarf2_free_objfile): Use delete.
12086 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12087 (copy_type_recursive): Use new.
12088 * gdb_obstack.h (allocate_on_obstack): New.
12089
12090 2018-02-15 Yao Qi <yao.qi@linaro.org>
12091
12092 PR gdb/22849
12093 * inferior.c (exit_inferior_1): Reset inf->control.
12094
12095 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12096
12097 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12098 declaration.
12099
12100 2018-02-14 Pedro Alves <palves@redhat.com>
12101
12102 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12103 frame_cleanup_after_sniffer on exception.
12104
12105 2018-02-14 Tom Tromey <tom@tromey.com>
12106
12107 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12108 const.
12109 (solib_bfd_open): Make pathname const.
12110 * solib.c (solib_bfd_open): Make pathname const.
12111 * solib-spu.c (spu_bfd_fopen): Make name const.
12112 (spu_bfd_open): Make pathname const.
12113 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12114 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12115
12116 2018-02-14 Tom Tromey <tom@tromey.com>
12117
12118 * symfile.c (symfile_bfd_open): Update.
12119 * source.h (openp, source_full_path_of, find_and_open_source):
12120 Change argument type to unique_xmalloc_ptr.
12121 * source.c (openp): Take a unique_xmalloc_ptr.
12122 (source_full_path_of, find_and_open_source): Likewise.
12123 (open_source_file, symtab_to_fullname): Update.
12124 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12125 unique_xmalloc_ptr.
12126 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12127 (exec_file_find): Update.
12128 * psymtab.c (psymtab_to_fullname): Update.
12129 * nto-tdep.h (nto_find_and_open_solib): Update.
12130 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12131 unique_xmalloc_ptr.
12132 * exec.c (exec_file_attach): Update.
12133 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12134 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12135
12136 2018-02-14 Tom Tromey <tom@tromey.com>
12137
12138 * solib.c: Include source.h.
12139 * nto-tdep.c: Include source.h.
12140 * mi/mi-cmd-env.c: Include source.h.
12141 * infcmd.c: Include source.h.
12142 * exec.c: Include source.h.
12143 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12144 (add_path, directory_switch, source_path, init_source_path): Move
12145 declarations...
12146 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12147 (add_path, directory_switch, source_path, init_source_path):
12148 ...here.
12149
12150 2018-02-14 Tom Tromey <tom@tromey.com>
12151
12152 * solist.h (exec_file_find, solib_find): Return
12153 unique_xmalloc_ptr.
12154 (solib_bfd_fopen): Take a const char *.
12155 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12156 (exec_file_find, solib_find): Likewise.
12157 (solib_bfd_fopen): Do not take ownership of "pathname".
12158 (solib_bfd_open): Use unique_xmalloc_ptr.
12159 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12160 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12161 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12162 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12163
12164 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12165
12166 * ada-lang.c (name_match_type_from_name): Remove reference to
12167 ada_name_for_lookup in function's documentation.
12168 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12169
12170 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12171
12172 * defs.h (enum openp_flags): New enum.
12173 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12174 Move to enum openp_flags.
12175 (openp_flags): New enum flags.
12176 (openp): Change parameter type to openp_flags.
12177 * source.c (openp): Change parameter type to openp_flags.
12178 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12179 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12180
12181 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12182
12183 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12184 per-command.
12185
12186 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12187
12188 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12189 into...
12190 (class dwarf2_queue_guard): ...the destructor of this new class.
12191 (dw2_do_instantiate_symtab): Create instance of the new class
12192 dwarf2_queue_guard, remove cleanup.
12193
12194 2018-02-09 Tom Tromey <tom@tromey.com>
12195
12196 * source.c (find_source_lines): Don't reference past the end of
12197 the vector.
12198
12199 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12200
12201 * remote.c (remote_btrace_maybe_reopen): Change error message.
12202 * btrace.c (btrace_enable): Likewise.
12203 (parse_xml_btrace): Likewise.
12204 (parse_xml_btrace_conf): Likewise.
12205
12206 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12207
12208 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12209 (linux_enable_pt, linux_enable_bts): Call
12210 diagnose_perf_event_open_fail.
12211
12212 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12213
12214 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12215 Remove parameter and change return type. Update callers. Move it.
12216 (linux_enable_bts, linux_enable_pt): Improve error message.
12217 (linux_enable_pt): Remove zero buffer size check.
12218 (linux_enable_btrace): Improve error messages. Remove NULL return
12219 check.
12220
12221 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12222
12223 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12224 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12225 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12226 (linux_supports_pt, linux_supports_btrace): Remove.
12227 (linux_enable_bts): Call cpu_supports_bts.
12228 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12229 * remote.c (remote_supports_btrace): Remove.
12230 (init_remote_ops): Remove remote_supports_btrace.
12231 * target-delegates.c: Regenerated.
12232 * target.c (target_supports_btrace): Remove.
12233 * target.h (target_ops) <to_supports_btrace>: Remove
12234 (target_supports_btrace): Remove.
12235 * x86-linux-nat.c (x86_linux_create_target): Remove
12236 linux_supports_btrace.
12237
12238 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12239
12240 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12241 btrace failed.
12242 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12243 exception and use message in own exception.
12244
12245 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12246
12247 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12248 (perf_event_pt_event_type): Use gdb_file_up.
12249 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12250 scoped_fd, and scoped_mmap.
12251
12252 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12253
12254 * common/scoped_mmap.h: New.
12255 * unittests/scoped_mmap-selftest.c: New.
12256 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12257 unittests/scoped_mmap-selftest.c.
12258
12259 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12260
12261 * common/scoped_fd.h: New.
12262 * unittests/scoped_fd-selftest.c: New.
12263 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12264 unittests/scoped_fd-selftest.c.
12265
12266 2018-02-09 Tom Tromey <tom@tromey.com>
12267
12268 * auto-load.c (auto_load_section_scripts): Use
12269 gdb::unique_xmalloc_ptr.
12270
12271 2018-02-09 Tom Tromey <tom@tromey.com>
12272
12273 * auto-load.c (execute_script_contents): Use std::string.
12274
12275 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12276
12277 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12278 Python function, rather than a new command.
12279
12280 2018-02-08 Tom Tromey <tom@tromey.com>
12281
12282 * solib.c (solib_find_1): Use std::string.
12283 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12284
12285 2018-02-08 Tom Tromey <tom@tromey.com>
12286
12287 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12288
12289 2018-02-08 Tom Tromey <tom@tromey.com>
12290
12291 * source.c (find_source_lines): Use gdb::def_vector.
12292
12293 2018-02-08 Tom Tromey <tom@tromey.com>
12294
12295 * macrocmd.c (struct temporary_macro_definition): New.
12296 (macro_define_command): Use temporary_macro_definition. Remove
12297 cleanups.
12298 (free_macro_definition_ptr): Remove.
12299
12300 2018-02-08 Tom Tromey <tom@tromey.com>
12301
12302 * macroexp.c (maybe_expand): Use std::string.
12303
12304 2018-02-08 Tom Tromey <tom@tromey.com>
12305
12306 * macroexp.c (struct macro_buffer): Add initializers for some
12307 members.
12308 (init_buffer, init_shared_buffer, free_buffer)
12309 (free_buffer_return_text): Remove.
12310 (macro_buffer): New constructors.
12311 (~macro_buffer): New destructor.
12312 (macro_buffer::set_shared): New method.
12313 (macro_buffer::resize_buffer, macro_buffer::appendc)
12314 (macro_buffer::appendmem): Now methods, not free functions.
12315 (set_token, append_tokens_without_splicing, stringify)
12316 (macro_stringify): Update.
12317 (gather_arguments): Change return type. Remove argc_p argument,
12318 add args_ptr argument. Use std::vector.
12319 (substitute_args): Remove argc argument. Accept std::vector.
12320 (expand): Update. Use std::vector.
12321 (scan, macro_expand, macro_expand_next): Update.
12322
12323 2018-02-08 Tom Tromey <tom@tromey.com>
12324
12325 * symtab.c (default_collect_symbol_completion_matches_break_on):
12326 Use unique_xmalloc_ptr.
12327 * macroscope.h: (sal_macro_scope, user_macro_scope)
12328 (default_macro_scope): Return unique_xmalloc_ptr.
12329 * macroscope.c (sal_macro_scope, user_macro_scope)
12330 (default_macro_scope): Return unique_xmalloc_ptr.
12331 * macroexp.h (macro_expand, macro_expand_once): Return
12332 unique_xmalloc_ptr.
12333 * macroexp.c (macro_expand, macro_expand_once): Return
12334 unique_xmalloc_ptr.
12335 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12336 (info_macro_command, info_macros_command): Use
12337 unique_xmalloc_ptr.
12338 * compile/compile-c-support.c (write_macro_definitions): Use
12339 unique_xmalloc_ptr.
12340 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12341
12342 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12343
12344 * value.c (value_static_field): Assign field type instead of
12345 containing type when returning an optimized out value.
12346
12347 2018-02-06 Yao Qi <yao.qi@linaro.org>
12348
12349 * ft32-tdep.c (ft32_read_pc): Remove.
12350 (ft32_write_pc): Remove.
12351 (ft32_gdbarch_init): Update.
12352 * m32r-tdep.c (m32r_read_pc): Remove.
12353 (m32r_gdbarch_init): Update.
12354 * mep-tdep.c (mep_read_pc): Remove.
12355 (mep_gdbarch_init): Update.
12356 * microblaze-tdep.c (microblaze_write_pc): Remove.
12357 (microblaze_gdbarch_init): Update.
12358 * mn10300-tdep.c (mn10300_read_pc): Remove.
12359 (mn10300_write_pc): Remove.
12360 (mn10300_gdbarch_init): Update.
12361 * moxie-tdep.c (moxie_read_pc): Remove.
12362 (moxie_write_pc): Remove.
12363 (moxie_gdbarch_init): Update.
12364
12365 2018-02-06 Yao Qi <yao.qi@linaro.org>
12366
12367 * expprint.c (print_subexp_standard): Handle
12368 OP_F77_UNDETERMINED_ARGLIST.
12369 (dump_subexp_body_standard): Likewise.
12370
12371 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12372
12373 * target-descriptions.c (tdesc_element_visitor) Add empty
12374 implementations.
12375 (tdesc_type): Move make_gdb_type from here.
12376 (tdesc_type_builtin): Likewise.
12377 (tdesc_type_vector): Likewise.
12378 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12379 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12380 (make_gdb_type_union): Likewise.
12381 (make_gdb_type_flags): Likewise.
12382 (make_gdb_type_enum): Likewise.
12383 (make_gdb_type): New function.
12384 (tdesc_register_type): Use static make_gdb_type.
12385
12386 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12387
12388 * infcmd.c (default_print_one_register_info): Align natural-format
12389 column values consistently one under another.
12390 (pad_to_column): New function.
12391
12392 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12393
12394 * dwarf2read.c (dwarf2_physname): Move commment.
12395
12396 2018-02-01 Leszek Swirski <leszeks@google.com>
12397
12398 * varobj.c (varobj_formatted_print_options): Allow recursive
12399 pretty printing if pretty printing is enabled.
12400
12401 2018-02-01 Leszek Swirski <leszeks@google.com>
12402
12403 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12404 names after a structop as a filename.
12405
12406 2018-02-01 Yao Qi <yao.qi@linaro.org>
12407
12408 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12409 (arm_record_coproc_data_proc): Likewise.
12410
12411 2018-02-01 Yao Qi <yao.qi@linaro.org>
12412
12413 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12414
12415 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12416
12417 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12418 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12419
12420 2018-01-31 Pedro Alves <palves@redhat.com>
12421
12422 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12423 * inflow.c (child_terminal_save_inferior): Wrap reference to
12424 tcgetpgrp in HAVE_TERMIOS_H.
12425 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12426 _WIN32.
12427 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12428 always iterate over all inferiors.
12429 (gdbsim_cntrl_c): Adjust.
12430 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12431
12432 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12433
12434 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12435 index type is objfile-owned if the element type is as well.
12436
12437 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12438
12439 GDB 8.1 released.
12440
12441 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12442
12443 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12444 "features/s390x-linux64.c".
12445 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12446 s390_linux32 and s390x_linux64.
12447 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12448 default tdesc.
12449 * s390-tdep.c: Include "features/s390-linux32.c" and
12450 "features/s390x-linux64.c".
12451 (s390_tdesc_valid): Add check for tdesc_has_registers.
12452 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12453 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12454 tdesc_s390x_linux64.
12455 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12456 tdesc_s390x_linux64 to...
12457 * s390-tdep.h: ...here.
12458
12459 2018-01-30 Pedro Alves <palves@redhat.com>
12460
12461 PR gdb/13211
12462 * config.in, configure: Regenerate.
12463 * configure.ac: Check for getpgid.
12464 * go32-nat.c (go32_pass_ctrlc): New.
12465 (go32_target): Install it.
12466 * inf-child.c (inf_child_target): Install
12467 child_terminal_save_inferior, child_pass_ctrlc and
12468 child_interrupt.
12469 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12470 (inf_ptrace_target): No longer install it.
12471 * infcmd.c (interrupt_target_1): Adjust.
12472 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12473 (child_interrupt): Declare.
12474 (inferior::terminal_state): New.
12475 * inflow.c (struct terminal_info): Update comments.
12476 (inferior_process_group): Delete.
12477 (terminal_is_ours): Delete.
12478 (gdb_tty_state): New.
12479 (child_terminal_init): Adjust.
12480 (is_gdb_terminal, sharing_input_terminal_1)
12481 (sharing_input_terminal): New functions.
12482 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12483 Set the process's actual process group in the foreground if
12484 possible. Handle is_ours_for_output/is_ours distinction. Don't
12485 mark terminal as the inferior's if not sharing GDB's terminal.
12486 Don't check attach_flag.
12487 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12488 pass down a target_terminal_state.
12489 (child_terminal_save_inferior): New, factored out from ...
12490 (child_terminal_ours_1): ... this. Handle
12491 target_terminal_state::is_ours_for_output.
12492 (child_interrupt, child_pass_ctrlc): New.
12493 (inflow_inferior_exit): Clear the inferior's terminal_state.
12494 (copy_terminal_info): Copy the inferior's terminal state.
12495 (_initialize_inflow): Remove reference to terminal_is_ours.
12496 * inflow.h (inferior_process_group): Delete.
12497 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12498 * procfs.c (procfs_target): Don't install procfs_interrupt.
12499 (procfs_interrupt): Delete.
12500 * remote.c (remote_serial_quit_handler): Adjust.
12501 (remote_interrupt): Remove ptid parameter. Adjust.
12502 * target-delegates.c: Regenerate.
12503 * target.c: Include "terminal.h".
12504 (target_terminal::terminal_state): Rename to ...
12505 (target_terminal::m_terminal_state): ... this.
12506 (target_terminal::init): Adjust.
12507 (target_terminal::inferior): Adjust to per-inferior
12508 terminal_state.
12509 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12510 (target_terminal::ours, target_terminal::ours_for_output): Use
12511 target_terminal_is_ours_kind.
12512 (target_interrupt): Remove ptid parameter. Adjust.
12513 (default_target_pass_ctrlc): Adjust.
12514 * target.h (target_ops::to_terminal_save_inferior): New field.
12515 (target_ops::to_interrupt): Remove ptid_t parameter.
12516 (target_interrupt): Remove ptid_t parameter. Update comment.
12517 (target_pass_ctrlc): Update comment.
12518 * target/target.h (target_terminal_state): New scoped enum,
12519 factored out of ...
12520 (target_terminal::terminal_state): ... here.
12521 (target_terminal::inferior): Update comments.
12522 (target_terminal::restore_inferior): New.
12523 (target_terminal::is_inferior, target_terminal::is_ours)
12524 (target_terminal::is_ours_for_output): Adjust.
12525 (target_terminal::scoped_restore_terminal_state): Adjust to
12526 rename, and call restore_inferior() instead of inferior().
12527 (target_terminal::scoped_restore_terminal_state::m_state): Change
12528 type.
12529 (target_terminal::terminal_state): Rename to ...
12530 (target_terminal::m_terminal_state): ... this and change type.
12531
12532 2018-01-30 Pedro Alves <palves@redhat.com>
12533
12534 * linux-nat.c (wait_for_signal): New function.
12535 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12536 directly.
12537 (async_terminal_is_ours)
12538 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12539 (linux_nat_add_target): Don't override
12540 to_terminal_inferior/to_terminal_ours.
12541
12542 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12543
12544 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12545
12546 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12547
12548 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12549 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12550 dwarf2_per_objfile_free here.
12551 (dwarf2_per_objfile_free): Remove.
12552 (_initialize_dwarf2_read): Don't register
12553 dwarf2_per_objfile_free as a registry cleanup.
12554
12555 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12556
12557 Avoid compilation errors in MinGW native builds
12558
12559 The error is triggered by including python-internal.h, and the
12560 error message is:
12561
12562 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12563 from build-gnulib/import/math.h:27,
12564 from d:/usr/Python26/include/pyport.h:235,
12565 from d:/usr/Python26/include/Python.h:58,
12566 from python/python-internal.h:94,
12567 from python/py-arch.c:24:
12568 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12569 using ::hypot;
12570 ^~~~~
12571
12572 This happens because Python headers define 'hypot' to expand t
12573 '_hypot' in the Windows builds.
12574 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12575 'hypoth'. This avoids a compilation error.
12576
12577 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12578
12579 * MAINTAINERS (Write After Approval): Fix ordering.
12580
12581 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12582
12583 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12584
12585 2018-01-26 Alan Modra <amodra@gmail.com>
12586
12587 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12588 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12589 Remove nop. Make const. Comment.
12590 (powerpc32_plt_stub_so_2): New.
12591 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12592 Correct count. Update uses.
12593 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12594 Move common code reading PLT entry word. Correct
12595 powerpc32_plt_stub PLT address calculation.
12596 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12597 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12598 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12599 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12600 (ppc64_standard_linkage8): Likewise.
12601 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12602 Correct insns description.
12603 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12604
12605 2018-01-24 Pedro Alves <palves@redhat.com>
12606
12607 GCC PR libstdc++/83906
12608 * gdbtypes.c (operator==(const dynamic_prop &,
12609 const dynamic_prop &)): New.
12610 (operator==(const range_bounds &, const range_bounds &)): New.
12611 (check_types_equal): Use them instead of memcmp.
12612 * gdbtypes.h (operator==(const dynamic_prop &,
12613 const dynamic_prop &)): Declare.
12614 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12615 (operator==(const range_bounds &, const range_bounds &)): Declare.
12616 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12617
12618 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12619
12620 * s390-linux-tdep.c (s390_record_address_mask)
12621 (s390_record_calc_disp_common, s390_record_calc_disp)
12622 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12623 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12624 (s390_process_record): Move to s390-tdep.c.
12625 (s390_linux_init_abi_any): Adjust.
12626 * s390-tdep.c (s390_record_address_mask)
12627 (s390_record_calc_disp_common, s390_record_calc_disp)
12628 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12629 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12630 (s390_process_record): Moved from s390-linux-tdep.c
12631 (s390_gdbarch_init): Adjust.
12632
12633 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12634
12635 * s390-linux-nat.c (s390-tdep.h): New include.
12636 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12637 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12638 (ALLDEPFILES): Add s390-tdep.c.
12639 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12640 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12641 * s390-tdep.h: ...this. New file.
12642 * s390-linux-tdep.c (s390-tdep.h): New include.
12643 (_initialize_s390_tdep): Rename to...
12644 (_initialize_s390_linux_tdep): ...this and adjust.
12645 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12646 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12647 s390-tdep.h.
12648 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12649 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12650 (s390_is_partial_instruction, s390_software_single_step)
12651 (is_non_branch_ril, s390_displaced_step_copy_insn)
12652 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12653 (s390_prologue_data, s390_addr, s390_store, s390_load)
12654 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12655 (s390_register_call_saved, s390_guess_tracepoint_registers)
12656 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12657 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12658 (s390_pseudo_register_name, s390_pseudo_register_type)
12659 (s390_pseudo_register_read, s390_pseudo_register_write)
12660 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12661 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12662 (s390_addr_bits_remove, s390_address_class_type_flags)
12663 (s390_address_class_type_flags_to_name)
12664 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12665 (s390_function_arg_float, s390_function_arg_vector)
12666 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12667 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12668 (s390_frame_align, s390_register_return_value, s390_return_value)
12669 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12670 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12671 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12672 (s390_trad_frame_prev_register, s390_unwind_cache)
12673 (s390_prologue_frame_unwind_cache)
12674 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12675 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12676 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12677 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12678 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12679 (s390_frame_base_address, s390_local_base_address)
12680 (s390_frame_base, s390_gcc_target_options)
12681 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12682 (s390_validate_reg_range, s390_tdesc_valid)
12683 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12684 * s390-tdep.c: ...this. New file.
12685
12686 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12687
12688 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12689 (s390_process_record, s390_gdbarch_tdep_alloc)
12690 (s390_linux_init_abi_any): Use/set new hook.
12691
12692 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12693
12694 * s390-linux-tdep.c (osabi.h): New include.
12695 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12696 (s390_linux_init_abi_any): New functions.
12697 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12698
12699 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12700
12701 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12702 tdesc_has_registers check
12703
12704 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12705
12706 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12707 (s390_validate_reg_range): New macro.
12708 (s390_gdbarch_init): Adjust.
12709
12710 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12711
12712 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12713 (s390_gdbarch_tdep_alloc): Adjust.
12714 (s390_gdbarch_init): Adjust.
12715
12716 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12717
12718 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12719 <have_tdb>: Change type to bool.
12720 (s390_gdbarch_tdep_alloc): Adjust.
12721 (s390_gdbarch_init): Adjust.
12722
12723 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12724
12725 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12726 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12727 (s390_gdbarch_tdep_alloc): New function.
12728 (s390_gdbarch_init): Allocate tdep at start and use its fields
12729 instead of separate variables.
12730
12731 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12732
12733 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12734 when looking for cached gdbarch and add comment for remaining.
12735
12736 2018-01-22 Pedro Alves <palves@redhat.com>
12737 Sergio Durigan Junior <sergiodj@redhat.com>
12738
12739 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12740 case.
12741
12742 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12743
12744 * MAINTAINERS: Update my company e-mail address.
12745
12746 2018-01-22 Yao Qi <yao.qi@linaro.org>
12747
12748 * regcache.c (cooked_write_test): New function.
12749 (_initialize_regcache): Register the test.
12750
12751 2018-01-22 Yao Qi <yao.qi@linaro.org>
12752
12753 * ia64-tdep.c (ia64_pseudo_register_read): Call
12754 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12755 * m32c-tdep.c (m32c_cat_read): Likewise.
12756 (m32c_r3r2r1r0_read): Likewise.
12757 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12758 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12759
12760 2018-01-22 Yao Qi <yao.qi@linaro.org>
12761
12762 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12763 method raw_read instead of regcache_raw_read.
12764 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12765 * arm-tdep.c (arm_neon_quad_read): Likewise.
12766 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12767 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12768 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12769 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12770 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12771 (i386_pseudo_register_read_into_value): Likewise.
12772 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12773 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12774 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12775 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12776 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12777 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12778 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12779 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12780 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12781
12782 2018-01-22 Yao Qi <yao.qi@linaro.org>
12783
12784 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12785 * configure.tgt: Remove target mt.
12786 * mt-tdep.c: Remove.
12787 * regcache.c (cooked_read_test): Remove the check for mt.
12788
12789 2018-01-22 Yao Qi <yao.qi@linaro.org>
12790
12791 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12792 instead of gdbarch_pseudo_register_read_value.
12793
12794 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12795
12796 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12797 language is Ada.
12798
12799 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12800
12801 * linespec.c (create_sals_line_offset): Remove code that preserved
12802 the symtab_and_line's line number.
12803
12804 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12805
12806 * varobj.c (varobj_create): Don't set valid_block when creating a
12807 floating varobj.
12808
12809 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12810
12811 * varobj.c (varobj_create): Remove out of date comment.
12812
12813 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12814
12815 PR mi/20395
12816 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12817 updating innermost block.
12818 * parse.c (innermost_block_tracker::update): Take extra type
12819 parameter, and check types match before updating innermost block.
12820 (write_dollar_variable): Update innermost block for registers.
12821 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12822 (innermost_block_tracker::innermost_block_tracker): Initialise
12823 m_types member.
12824 (innermost_block_tracker::reset): Take type parameter.
12825 (innermost_block_tracker::update): Take type parameter, and pass
12826 type through as needed.
12827 (innermost_block_tracker::m_types): New member.
12828 * varobj.c (varobj_create): Pass type when reseting innermost
12829 block.
12830
12831 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12832
12833 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12834 * ada-lang.c (resolve_subexp): Likewise.
12835 * breakpoint.c (set_breakpoint_condition) Likewise.
12836 (watch_command_1) Likewise.
12837 * c-exp.y (variable): Likewise.
12838 * d-exp.y (PrimaryExpression): Likewise.
12839 * f-exp.y (variable): Likewise.
12840 * go-exp.y (variable): Likewise.
12841 * m2-exp.y (variable): Likewise.
12842 * objfiles.c (objfile::~objfile): Likewise.
12843 * p-exp.y (variable): Likewise.
12844 * parse.c (innermost_block): Change type.
12845 * parser-defs.h (class innermost_block_tracker): New.
12846 (innermost_block): Change to innermost_block_tracker.
12847 * printcmd.c (display_command): Switch to innermost_block API.
12848 (do_one_display): Likewise.
12849 * rust-exp.y (do_one_display): Likewise.
12850 * symfile.c (clear_symtab_users): Likewise.
12851 * varobj.c (varobj_create): Switch to innermost_block API, replace
12852 use of innermost_block with block stored on varobj object.
12853
12854 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12855
12856 * expression.h (innermost_block): Remove declaration.
12857 * varobj.c: Add 'parser-defs.h' include.
12858
12859 2018-01-19 Tom Tromey <tom@tromey.com>
12860
12861 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12862 symbols in the static and global blocks.
12863
12864 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12865
12866 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12867 gdb_ptrace.h, and move including gdb_wait.h ...
12868 * nat/linux-ptrace.h: ... to here.
12869
12870 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12871
12872 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12873 inf_ptrace_detach_success.
12874 (inf_ptrace_detach_success): Add inferior parameter, use it
12875 instead of inferior_ptid, pass it to detach_inferior.
12876 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12877 parameter.
12878 * inferior.c (detach_inferior): Add overload that takes an
12879 inferior object.
12880 * inferior.h (detach_inferior): Likewise.
12881 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12882 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12883 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12884
12885 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12886
12887 * target.h (struct target_ops) <to_detach>: Add inferior
12888 parameter.
12889 (target_detach): Likewise.
12890 * target.c (dispose_inferior): Pass inferior down.
12891 (target_detach): Pass inferior down. Assert that it is equal to
12892 the current inferior.
12893 * aix-thread.c (aix_thread_detach): Pass inferior down.
12894 * corefile.c (core_file_command): Pass current_inferior() down.
12895 * corelow.c (core_detach): Add inferior parameter.
12896 * darwin-nat.c (darwin_detach): Likewise.
12897 * gnu-nat.c (gnu_detach): Likewise.
12898 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12899 * infcmd.c (detach_command): Pass current_inferior() down to
12900 target_detach.
12901 * infrun.c (follow_fork_inferior): Pass parent_inf to
12902 target_detach.
12903 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12904 target_detach.
12905 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12906 * linux-thread-db.c (thread_db_detach): Likewise.
12907 * nto-procfs.c (procfs_detach): Likewise.
12908 * procfs.c (procfs_detach): Likewise.
12909 * record.c (record_detach): Likewise.
12910 * record.h (struct inferior): Forward-declare.
12911 (record_detach): Add inferior parameter.
12912 * remote-sim.c (gdbsim_detach): Likewise.
12913 * remote.c (remote_detach_1): Likewise.
12914 (remote_detach): Likewise.
12915 (extended_remote_detach): Likewise.
12916 * sol-thread.c (sol_thread_detach): Likewise.
12917 * target-debug.h (target_debug_print_inferior_p): New macro.
12918 * target-delegates.c: Re-generate.
12919 * top.c (kill_or_detach): Pass inferior down to target_detach.
12920 * windows-nat.c (windows_detach): Add inferior parameter.
12921
12922 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12923
12924 * target.h (struct target_ops) <to_detach>: Remove args
12925 parameter.
12926 (target_detach): Likewise.
12927 * target.c (dispose_inferior): Adjust.
12928 (target_detach): Remove args parameter, adjust.
12929 * aix-thread.c (aix_thread_detach): Adjust.
12930 * corefile.c (core_file_command): Adjust.
12931 * corelow.c (core_detach): Adjust.
12932 * darwin-nat.c (darwin_detach): Adjust.
12933 * gnu-nat.c (gnu_detach): Adjust.
12934 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12935 * infcmd.c (detach_command): Adjust
12936 * infrun.c (follow_fork_inferior): Adjust.
12937 (handle_vfork_child_exec_or_exit): Adjust.
12938 * linux-fork.c (linux_fork_detach): Remove args parameter.
12939 * linux-fork.h (linux_fork_detach): Likewise.
12940 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12941 * linux-thread-db.c (thread_db_detach): Likewise.
12942 * nto-procfs.c (procfs_detach): Likewise.
12943 * procfs.c (procfs_detach): Likewise.
12944 (do_detach): Remove signo parameter.
12945 * record.c (record_detach): Remove args parameter.
12946 * record.h (record_detach): Likewise.
12947 * remote-sim.c (gdbsim_detach): Likewise.
12948 * remote.c (remote_detach_1): Likewise.
12949 (remote_detach): Likewise.
12950 (extended_remote_detach): Likewise.
12951 * sol-thread.c (sol_thread_detach): Likewise.
12952 * target-delegates.c: Re-generate.
12953 * top.c (struct qt_args) <args>: Remove field.
12954 (kill_or_detach): Don't pass args.
12955 (quit_force): Don't set args.
12956 * windows-nat.c (windows_detach): Remove args parameter.
12957
12958 2018-01-19 Yao Qi <yao.qi@linaro.org>
12959
12960 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12961 (arm_linux_init_abi): Install it.
12962
12963 2018-01-19 Yao Qi <yao.qi@linaro.org>
12964
12965 * osabi.c (gdb_osabi_names): Extend the regexp for
12966 arm-linux-gnueabihf.
12967
12968 2018-01-18 Yao Qi <yao.qi@linaro.org>
12969
12970 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12971 m_abbrevs.
12972 (abbrev_table::add_abbrev): Update.
12973 (abbrev_table::lookup_abbrev): Update.
12974
12975 2018-01-18 Yao Qi <yao.qi@linaro.org>
12976
12977 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12978
12979 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12980
12981 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12982 to "std::string".
12983
12984 2018-01-17 Tom Tromey <tom@tromey.com>
12985
12986 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12987
12988 2018-01-17 Tom Tromey <tom@tromey.com>
12989
12990 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12991 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12992 (create_array_type_with_stride): Update.
12993 * dwarf2read.c (set_die_type): Update.
12994
12995 2018-01-17 Tom Tromey <tom@tromey.com>
12996
12997 * dwarf2read.c (delayed_method_info): Remove typedef.
12998 (dwarf2_cu::method_info): Now a std::vector.
12999 (add_to_method_list): Update.
13000 (free_delayed_list): Remove.
13001 (compute_delayed_physnames): Update.
13002 (process_full_comp_unit, process_full_type_unit): Clear the method
13003 list. Remove cleanups.
13004 (psymtab_include_file_name): Add name_holder parameter. Use
13005 unique_xmalloc_ptr.
13006 (dwarf_decode_lines): Update.
13007
13008 2018-01-17 Tom Tromey <tom@tromey.com>
13009 Simon Marchi <simon.marchi@ericsson.com>
13010
13011 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13012 (dwarf2_per_objfile::free_cached_comp_units)
13013 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13014 (init_cutu_and_read_dies_no_follow): Update.
13015 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13016 (dwarf2_cu::~dwarf2_cu): New.
13017 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13018 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13019
13020 2018-01-17 Tom Tromey <tom@tromey.com>
13021 Simon Marchi <simon.marchi@ericsson.com>
13022
13023 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13024 (struct die_reader_specs) <abbrev_table>: New member.
13025 (struct abbrev_table): Add constructor.
13026 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13027 <abbrev_obstack>: Now an auto_obstack.
13028 (abbrev_table_up): New typedef.
13029 (init_cu_die_reader): Add abbrev_table parameter.
13030 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13031 Add result_dwo_abbrev_table.
13032 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13033 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13034 Update.
13035 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13036 parameter.
13037 (skip_children): Update.
13038 (abbrev_table::alloc_abbrev): Rename from
13039 abbrev_table_alloc_abbrev.
13040 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13041 (abbrev_table::lookup_abbrev): Rename from
13042 abbrev_table_lookup_abbrev.
13043 (abbrev_table_read_table): Return abbrev_table_up.
13044 (abbrev_table_free, abbrev_table_free_cleanup)
13045 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13046 (load_partial_dies): Update.
13047
13048 2018-01-17 Tom Tromey <tom@tromey.com>
13049
13050 * dwarf2read.c (dwarf2_compute_name): Update comment.
13051 (read_func_scope, read_variable): Update.
13052 (new_symbol): Remove.
13053 (new_symbol_full): Rename to new_symbol.
13054
13055 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13056
13057 PR gdb/16577
13058 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13059 a warning instead of throwing an error, set section size to 0 and return
13060 NULL.
13061 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13062
13063 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13064
13065 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13066 std::string.
13067 (linux_ptrace_attach_fail_reason_string): Likewise.
13068 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13069 Likewise.
13070 (linux_ptrace_attach_fail_reason_string): Likewise.
13071 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13072
13073 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13074
13075 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13076
13077 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13078
13079 PR gdb/21559
13080 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13081 checking for fs_base/gs_base fields in struct user_regs_struct.
13082 * configure: Regenerate.
13083
13084 2018-01-17 Yao Qi <yao.qi@linaro.org>
13085
13086 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13087 function.
13088 (aarch64_linux_init_abi): Install it to gdbarch hook
13089 gcc_target_options.
13090
13091 2018-01-15 Pedro Alves <palves@redhat.com>
13092
13093 * common/signals-state-save-restore.c
13094 (save_original_signals_state): Fix typos.
13095
13096 2017-01-12 Tom Tromey <tom@tromey.com>
13097 Sergio Durigan Junior <sergiodj@redhat.com>
13098
13099 * Makefile.in (install-only): Install gdb-add-index.
13100
13101 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13102
13103 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13104
13105 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13106
13107 * infrun.c (keep_going_pass_signal): Clear step-over info when
13108 insert_breakpoints fails.
13109
13110 2018-01-11 Pedro Alves <palves@redhat.com>
13111
13112 PR gdb/22583
13113 * infrun.c (resume): Rename to ...
13114 (resume_1): ... this.
13115 (resume): Reimplement as wrapper around resume_1.
13116
13117 2018-01-11 Pedro Alves <palves@redhat.com>
13118
13119 PR remote/22597
13120 * remote.c (remote_parse_stop_reply): Default to the last-set
13121 general thread instead of to 'magic_null_ptid'.
13122
13123 2018-01-10 Pedro Alves <palves@redhat.com>
13124
13125 * language.h (language_get_symbol_name_matcher): Rename ...
13126 (get_symbol_name_matcher): ... this.
13127 * language.c (language_get_symbol_name_matcher): Ditto.
13128 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13129 callers adjusted.
13130
13131 2018-01-10 Pedro Alves <palves@redhat.com>
13132
13133 PR gdb/22670
13134 * dwarf2read.c
13135 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13136 Adjust to use language_get_symbol_name_matcher instead of
13137 language_defn::la_get_symbol_name_matcher.
13138 * language.c (language_get_symbol_name_matcher): If in Ada mode
13139 and the lookup name is a verbatim match, return Ada's matcher.
13140 * language.h (language_get_symbol_name_matcher): Adjust comment.
13141 (ada_lookup_name_info::verbatim_p):: New method.
13142
13143 2018-01-10 Pedro Alves <palves@redhat.com>
13144
13145 PR gdb/22670
13146 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13147 minsym's language is language_auto or language_cplus, pass down
13148 language_ada instead.
13149 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13150
13151 2018-01-10 Pedro Alves <palves@redhat.com>
13152
13153 PR gdb/22670
13154 * minsyms.c (linkage_name_str): New function.
13155 (iterate_over_minimal_symbols): Use it.
13156
13157 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13158
13159 * NEWS: Document that 'info proc' now works on FreeBSD.
13160
13161 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13162
13163 * configure.ac: Check for kinfo_getfile in libutil.
13164 * configure: Regenerate.
13165 * config.in: Regenerate.
13166 * fbsd-nat.c: Include "fbsd-tdep.h".
13167 (fbsd_fetch_cmdline): New.
13168 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13169 rather than calling error.
13170 (fbsd_info_proc): New.
13171 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13172 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13173 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13174
13175 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13176
13177 * fbsd-nat.c (struct free_deleter): Remove.
13178 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13179
13180 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13181
13182 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13183 NULL for an empty pathname.
13184
13185 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13186
13187 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13188 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13189 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13190 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13191 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13192 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13193 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13194 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13195 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13196 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13197 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13198 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13199 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13200 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13201 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13202
13203 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13204
13205 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13206 (gnu_xfer_auxv): New function.
13207 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13208 TARGET_OBJECT_AUXV.
13209
13210 2018-01-08 Yao Qi <yao.qi@linaro.org>
13211 Simon Marchi <simon.marchi@ericsson.com>
13212
13213 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13214 common/selftest.c.
13215 (COMMON_OBS): Remove selftest.o.
13216 * configure.ac: Append selftest-arch.c and common/selftest.c to
13217 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13218 * configure: Re-generated.
13219 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13220 GDB_SELF_TEST.
13221 (maintenance_info_selftests): Likewise.
13222
13223 2018-01-08 Xavier Roirand <roirand@adacore.com>
13224
13225 * ada-valprint.c (val_print_packed_array_elements): Use
13226 proper number of elements when printing an array indexed
13227 by an enumeration type.
13228
13229 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13230
13231 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13232 (dw2_get_file_names_reader): Adjust.
13233 (lookup_dwo_signatured_type): Adjust.
13234 (lookup_dwp_signatured_type): Adjust.
13235 (lookup_signatured_type): Adjust.
13236 (create_type_unit_group): Adjust.
13237 (get_type_unit_group): Adjust.
13238 (process_psymtab_comp_unit_reader): Adjust.
13239 (build_type_psymtabs_reader): Adjust.
13240 (scan_partial_symbols): Adjust.
13241 (add_partial_symbol): Adjust.
13242 (add_partial_subprogram): Adjust.
13243 (peek_die_abbrev): Adjust.
13244 (fixup_go_packaging): Adjust.
13245 (process_imported_unit_die): Adjust.
13246 (dwarf2_compute_name): Adjust.
13247 (dwarf2_physname): Adjust.
13248 (read_import_statement): Adjust.
13249 (handle_DW_AT_stmt_list): Adjust.
13250 (read_file_scope): Adjust.
13251 (read_func_scope): Adjust.
13252 (read_lexical_block_scope): Adjust.
13253 (read_call_site_scope): Adjust.
13254 (read_variable): Adjust.
13255 (dwarf2_rnglists_process): Adjust.
13256 (dwarf2_ranges_process): Adjust.
13257 (dwarf2_ranges_read): Adjust.
13258 (dwarf2_get_pc_bounds): Adjust.
13259 (dwarf2_record_block_ranges): Adjust.
13260 (dwarf2_add_field): Adjust.
13261 (dwarf2_add_member_fn): Adjust.
13262 (read_structure_type): Adjust.
13263 (process_structure_scope): Adjust.
13264 (read_enumeration_type): Adjust.
13265 (read_array_type): Adjust.
13266 (mark_common_block_symbol_computed): Adjust.
13267 (read_common_block): Adjust.
13268 (read_namespace_type): Adjust.
13269 (read_namespace): Adjust.
13270 (read_module_type): Adjust.
13271 (read_tag_pointer_type): Adjust.
13272 (read_tag_ptr_to_member_type): Adjust.
13273 (read_tag_string_type): Adjust.
13274 (read_subroutine_type): Adjust.
13275 (read_typedef): Adjust.
13276 (read_base_type): Adjust.
13277 (attr_to_dynamic_prop): Adjust.
13278 (read_subrange_type): Adjust.
13279 (read_unspecified_type): Adjust.
13280 (dwarf2_read_abbrevs): Adjust.
13281 (load_partial_dies): Adjust.
13282 (read_partial_die): Adjust.
13283 (find_partial_die): Adjust.
13284 (guess_partial_die_structure_name): Adjust.
13285 (fixup_partial_die): Adjust.
13286 (read_attribute_value): Adjust.
13287 (read_addr_index): Adjust.
13288 (read_addr_index_from_leb128): Adjust.
13289 (read_str_index): Adjust.
13290 (dwarf2_string_attr): Adjust.
13291 (get_debug_line_section): Adjust.
13292 (dwarf_decode_line_header): Adjust.
13293 (lnp_state_machine::check_line_address): Adjust.
13294 (dwarf_decode_lines_1): Adjust.
13295 (dwarf_decode_lines): Adjust.
13296 (dwarf2_start_symtab): Adjust.
13297 (var_decode_location): Adjust.
13298 (new_symbol_full): Adjust.
13299 (dwarf2_const_value_data): Adjust.
13300 (dwarf2_const_value_attr): Adjust.
13301 (dwarf2_const_value): Adjust.
13302 (die_type): Adjust.
13303 (die_containing_type): Adjust.
13304 (build_error_marker_type): Adjust.
13305 (lookup_die_type): Adjust.
13306 (guess_full_die_structure_name): Adjust.
13307 (anonymous_struct_prefix): Adjust.
13308 (determine_prefix): Adjust.
13309 (dwarf2_name): Adjust.
13310 (follow_die_ref_or_sig): Adjust.
13311 (follow_die_offset): Adjust.
13312 (follow_die_ref): Adjust.
13313 (follow_die_sig_1): Adjust.
13314 (follow_die_sig): Adjust.
13315 (get_signatured_type): Adjust.
13316 (get_DW_AT_signature_type): Adjust.
13317 (decode_locdesc): Adjust.
13318 (dwarf_decode_macros): Adjust.
13319 (cu_debug_loc_section): Adjust.
13320 (fill_in_loclist_baton): Adjust.
13321 (dwarf2_symbol_mark_computed): Adjust.
13322 (init_one_comp_unit): Don't assign
13323 dwarf2_cu::dwarf2_per_objfile.
13324 (set_die_type): Adjust.
13325
13326 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13327
13328 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13329 <dwarf2_per_objfile>: New field.
13330 (dwarf2_per_objfile): Remove global.
13331 (get_dwarf2_per_objfile): New function.
13332 (set_dwarf2_per_objfile): New function.
13333 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13334 dwarf2_per_objfile.
13335 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13336 (read_abbrev_offset): Likewise.
13337 (read_indirect_string): Likewise.
13338 (read_indirect_line_string): Likewise.
13339 (read_indirect_string_at_offset): Likewise.
13340 (read_indirect_string_from_dwz): Likewise.
13341 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13342 dwarf2_per_objfile.
13343 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13344 (create_all_comp_units): Change objfile parameter to
13345 dwarf2_per_objfile.
13346 (create_all_type_units): Likewise.
13347 (process_queue): Add dwarf2_per_objfile parameter.
13348 (read_and_check_comp_unit_head): Likewise.
13349 (lookup_dwo_unit_in_dwp): Likewise.
13350 (get_dwp_file): Likewise.
13351 (process_cu_includes): Likewise.
13352 (struct free_dwo_file_cleanup_data): New struct.
13353 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13354 set_dwarf2_per_objfile.
13355 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13356 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13357 context, adjust calls.
13358 (dw2_instantiate_symtab): Likewise.
13359 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13360 (dw2_get_cu): Likewise.
13361 (create_cu_from_index_list): Change objfile parameter to
13362 dwarf2_per_objfile.
13363 (create_cus_from_index_list): Get dwarf2_per_objfile from
13364 context, adjust calls.
13365 (create_cus_from_index): Likewise.
13366 (create_signatured_type_table_from_index): Change objfile
13367 parameter to dwarf2_per_objfile.
13368 (create_signatured_type_table_from_debug_names): Change objfile
13369 parameter to dwarf2_per_objfile.
13370 (create_addrmap_from_index): Likewise.
13371 (create_addrmap_from_aranges): Likewise.
13372 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13373 (dw2_setup): Remove.
13374 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13375 context.
13376 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13377 get_dwarf2_per_objfile.
13378 (dw2_forget_cached_source_info): Likewise.
13379 (dw2_map_symtabs_matching_filename): Likewise.
13380 (struct dw2_symtab_iterator) <index>: Remove.
13381 <dwarf2_per_objfile>: New field.
13382 (dw2_symtab_iter_init): Replace index parameter with
13383 dwarf2_per_objfile.
13384 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13385 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13386 (dw2_print_stats): Likewise.
13387 (dw2_dump): Likewise.
13388 (dw2_expand_symtabs_for_function): Likewise.
13389 (dw2_expand_all_symtabs): Likewise.
13390 (dw2_expand_symtabs_with_fullname): Likewise.
13391 (dw2_expand_marked_cus): Replace index and objfile parameters
13392 with dwarf2_per_objfile.
13393 (dw_expand_symtabs_matching_file_matcher): Add
13394 dwarf2_per_objfile parameter and adjust calls.
13395 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13396 adjust calls.
13397 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13398 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13399 adjust calls.
13400 (create_cus_from_debug_names_list): Replace objfile parameter
13401 with dwarf2_per_objfile and adjust calls.
13402 (create_cus_from_debug_names): Likewise.
13403 (dwarf2_read_debug_names): Likewise.
13404 (mapped_debug_names::namei_to_name): Adjust call.
13405 (dw2_debug_names_iterator::next): Likewise.
13406 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13407 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13408 (dw2_debug_names_dump): Likewise.
13409 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13410 (dw2_debug_names_expand_symtabs_matching): Likewise.
13411 (dwarf2_initialize_objfile): Likewise.
13412 (dwarf2_build_psymtabs): Likewise.
13413 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13414 this_cu.
13415 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13416 (read_and_check_comp_unit_head): Likewise.
13417 (read_abbrev_offset): Likewise.
13418 (create_debug_type_hash_table): Likewise.
13419 (create_debug_types_hash_table): Likewise.
13420 (create_all_type_units): Replace objfile parameter with
13421 dwarf2_per_objfile.
13422 (add_type_unit): Add dwarf2_per_objfile parameter.
13423 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13424 with dwarf2_per_objfile.
13425 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13426 (lookup_dwp_signatured_type): Likewise.
13427 (lookup_signatured_type): Likewise.
13428 (read_cutu_die_from_dwo): Likewise.
13429 (init_tu_and_read_dwo_dies): Likewise.
13430 (init_cutu_and_read_dies): Likewise.
13431 (init_cutu_and_read_dies_no_follow): Likewise.
13432 (allocate_type_unit_groups_table): Add objfile parameter.
13433 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13434 (get_type_unit_group): Likewise.
13435 (process_psymtab_comp_unit): Update call.
13436 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13437 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13438 (print_tu_stats): Likewise.
13439 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13440 in void* parameter.
13441 (build_type_psymtabs): Change objfile parameter to
13442 dwarf2_per_objfile.
13443 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13444 passed in void* parameter.
13445 (process_skeletonless_type_units): Change objfile parameter to
13446 dwarf2_per_objfile.
13447 (set_partial_user): Likewise.
13448 (dwarf2_build_psymtabs_hard): Likewise.
13449 (read_comp_units_from_section): Likewise.
13450 (create_all_comp_units): Likewise.
13451 (scan_partial_symbols): Update calls.
13452 (add_partial_symbol): Likewise.
13453 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13454 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13455 (process_queue): Add dwarf2_per_objfile parameter.
13456 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13457 (compute_compunit_symtab_includes): Likewise.
13458 (process_cu_includes): Add dwarf2_per_objfile parameter.
13459 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13460 (process_full_type_unit): Likewise.
13461 (process_imported_unit_die): Update call.
13462 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13463 (read_file_scope): Likewise.
13464 (allocate_dwo_file_hash_table): Add objfile parameter.
13465 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13466 (create_cus_hash_table): Likewise.
13467 (create_dwp_hash_table): Likewise.
13468 (create_dwo_unit_in_dwp_v1): Likewise.
13469 (create_dwp_v2_section): Likewise.
13470 (create_dwo_unit_in_dwp_v2): Likewise.
13471 (lookup_dwo_unit_in_dwp): Likewise.
13472 (try_open_dwop_file): Likewise.
13473 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13474 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13475 cleanup to include a reference to dwarf2_per_objfile.
13476 (open_dwp_file): Add dwarf2_per_objfile parameter.
13477 (open_and_init_dwp_file): Likewise.
13478 (get_dwp_file): Likewise.
13479 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13480 (queue_and_load_all_dwo_tus): Update call.
13481 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13482 data.
13483 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13484 (dwarf2_ranges_process): Likewise.
13485 (dwarf2_get_pc_bounds): Likewise.
13486 (mark_common_block_symbol_computed): Likewise.
13487 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13488 (dwarf2_read_abbrevs): Update call.
13489 (read_partial_die): Use dwarf2_per_objfile from cu.
13490 (find_partial_die): Likewise.
13491 (fixup_partial_die): Likewise.
13492 (read_attribute_value): Likewise.
13493 (read_indirect_string_at_offset_from): Add objfile parameter.
13494 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13495 parameter.
13496 (read_indirect_string_from_dwz): Add objfile parameter.
13497 (read_indirect_string): Add objfile parameter.
13498 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13499 (read_addr_index): Use dwarf2_per_objfile from cu.
13500 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13501 call dw2_setup.
13502 (read_str_index): Use dwarf2_per_objfile from cu.
13503 (get_debug_line_section): Likewise.
13504 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13505 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13506 (new_symbol_full): Use dwarf2_per_objfile from cu.
13507 (build_error_marker_type): Likewise.
13508 (lookup_die_type): Likewise.
13509 (determine_prefix): Likewise.
13510 (follow_die_offset): Likewise.
13511 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13512 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13513 (dwarf2_fetch_die_type_sect_off): Likewise.
13514 (dwarf2_get_die_type): Likewise.
13515 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13516 (get_signatured_type): Likewise.
13517 (get_DW_AT_signature_type): Likewise.
13518 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13519 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13520 (cu_debug_loc_section): Likewise.
13521 (fill_in_loclist_baton): Likewise.
13522 (dwarf2_symbol_mark_computed): Likewise.
13523 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13524 dwarf2_per_objfile.
13525 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13526 parameter.
13527 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13528 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13529 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13530 (set_die_type): Use dwarf2_free_objfile from cu.
13531 (get_die_type_at_offset): Likewise.
13532 (dwarf2_per_objfile_free): Don't assign global variable.
13533 (debug_names) <constructor>: Add dwarf2_per_objfile
13534 parameter, update m_debugstrlookup construction.
13535 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13536 parameter.
13537 <m_dwarf2_per_objfile>: New field.
13538 <lookup>: Use m_dwarf2_per_objfile.
13539 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13540 (psyms_seen_size): Likewise.
13541 (write_gdbindex): Replace objfile parameter with
13542 dwarf2_per_objfile.
13543 (write_debug_names): Likewise.
13544 (write_psymtabs_to_index): Likewise.
13545 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13546 calls.
13547
13548 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13549
13550 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13551 <dwarf2_per_objfile>: New field.
13552 (struct dwarf2_per_cu_data) <objfile>: Remove.
13553 <dwarf2_per_objfile>: New field.
13554 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13555 of objfile.
13556 (create_signatured_type_table_from_index): Likewise.
13557 (create_debug_type_hash_table): Likewise.
13558 (fill_in_sig_entry_from_dwo_entry): Likewise.
13559 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13560 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13561 objfile.
13562 (create_partial_symtab): Access objfile through
13563 dwarf2_per_objfile.
13564 (process_psymtab_comp_unit_reader): Likewise.
13565 (read_comp_units_from_section): Likewise.
13566 (scan_partial_symbols): Likewise.
13567 (add_partial_symbol): Likewise.
13568 (add_partial_subprogram): Likewise.
13569 (peek_die_abbrev): Likewise.
13570 (fixup_go_packaging): Likewise.
13571 (process_full_comp_unit): Likewise.
13572 (process_full_type_unit): Likewise.
13573 (process_imported_unit_die): Likewise.
13574 (dwarf2_compute_name): Likewise.
13575 (dwarf2_physname): Likewise.
13576 (read_import_statement): Likewise.
13577 (create_cus_hash_table): Assign dwarf2_physname instead of
13578 objfile.
13579 (read_func_scope): Access objfile through dwarf2_per_objfile.
13580 (read_lexical_block_scope): Likewise.
13581 (read_call_site_scope): Likewise.
13582 (read_variable): Likewise.
13583 (dwarf2_rnglists_process): Likewise.
13584 (dwarf2_ranges_process): Likewise.
13585 (dwarf2_ranges_read): Likewise.
13586 (dwarf2_record_block_ranges): Likewise.
13587 (dwarf2_add_field): Likewise.
13588 (dwarf2_add_member_fn): Likewise.
13589 (read_structure_type): Likewise.
13590 (process_structure_scope): Likewise.
13591 (read_enumeration_type): Likewise.
13592 (read_array_type): Likewise.
13593 (read_common_block): Likewise.
13594 (read_namespace_type): Likewise.
13595 (read_namespace): Likewise.
13596 (read_module_type): Likewise.
13597 (read_tag_pointer_type): Likewise.
13598 (read_tag_ptr_to_member_type): Likewise.
13599 (read_tag_string_type): Likewise.
13600 (read_subroutine_type): Likewise.
13601 (read_typedef): Likewise.
13602 (read_base_type): Likewise.
13603 (attr_to_dynamic_prop): Likewise.
13604 (read_subrange_type): Likewise.
13605 (read_unspecified_type): Likewise.
13606 (load_partial_dies): Likewise.
13607 (read_partial_die): Likewise.
13608 (find_partial_die): Likewise.
13609 (guess_partial_die_structure_name): Likewise.
13610 (fixup_partial_die): Likewise.
13611 (read_attribute_value): Likewise.
13612 (read_addr_index_from_leb128): Likewise.
13613 (dwarf2_read_addr_index): Likewise.
13614 (dwarf2_string_attr): Likewise.
13615 (lnp_state_machine::check_line_address): Likewise.
13616 (dwarf_decode_lines_1): Likewise.
13617 (dwarf_decode_lines): Likewise.
13618 (dwarf2_start_symtab): Likewise.
13619 (var_decode_location): Likewise.
13620 (new_symbol_full): Likewise.
13621 (dwarf2_const_value_data): Likewise.
13622 (dwarf2_const_value_attr): Likewise.
13623 (dwarf2_const_value): Likewise.
13624 (die_type): Likewise.
13625 (die_containing_type): Likewise.
13626 (lookup_die_type): Likewise.
13627 (guess_full_die_structure_name): Likewise.
13628 (anonymous_struct_prefix): Likewise.
13629 (dwarf2_name): Likewise.
13630 (follow_die_ref_or_sig): Likewise.
13631 (follow_die_offset): Likewise.
13632 (follow_die_ref): Likewise.
13633 (dwarf2_fetch_die_loc_sect_off): Likewise.
13634 (dwarf2_fetch_constant_bytes): Likewise.
13635 (dwarf2_fetch_die_type_sect_off): Likewise.
13636 (dwarf2_get_die_type): Likewise.
13637 (follow_die_sig): Likewise.
13638 (decode_locdesc): Likewise.
13639 (dwarf2_per_cu_objfile): Likewise.
13640 (dwarf2_per_cu_text_offset): Likewise.
13641 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13642 objfile.
13643 (set_die_type): Access objfile through
13644 dwarf2_per_objfile.
13645
13646 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13647
13648 * valprint.c (converted_character_d): Remove typedef.
13649 (DEF_VEC_O (converted_character_d)): Remove.
13650 (count_next_character): Use std::vector.
13651 (print_converted_chars_to_obstack): Likewise.
13652 (generic_printstr): Likewise.
13653
13654 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13655
13656 * xml-support.h (struct gdb_xml_value): Add constructor.
13657 <value>: Change type to unique_xmalloc_ptr.
13658 (gdb_xml_value_s): Remove typedef.
13659 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13660 (gdb_xml_element_start_handler): Change parameter type to
13661 std::vector.
13662 (xml_find_attribute): Likewise.
13663 * xml-support.c (xml_find_attribute): Change parameter type to
13664 std::vector and adjust.
13665 (gdb_xml_values_cleanup): Remove.
13666 (gdb_xml_parser::start_element): Adjust to std::vector.
13667 (xinclude_start_include): Change paraeter type to std::vector
13668 and adjust.
13669 * btrace.c (check_xml_btrace_version): Likewise.
13670 (parse_xml_btrace_block): Likewise.
13671 (parse_xml_btrace_pt_config_cpu): Likewise.
13672 (parse_xml_btrace_pt): Likewise.
13673 (parse_xml_btrace_conf_bts): Likewise.
13674 (parse_xml_btrace_conf_pt): Likewise.
13675 * memory-map.c (memory_map_start_memory): Likewise.
13676 (memory_map_start_property): Likewise.
13677 * osdata.c (osdata_start_osdata): Likewise.
13678 (osdata_start_item): Likewise.
13679 (osdata_start_column): Likewise.
13680 * remote.c (start_thread): Likewise.
13681 * solib-aix.c (library_list_start_library): Likewise.
13682 (library_list_start_list): Likewise.
13683 * solib-svr4.c (library_list_start_library): Likewise.
13684 (svr4_library_list_start_list): Likewise.
13685 * solib-target.c (library_list_start_segment): Likewise.
13686 (library_list_start_section): Likewise.
13687 (library_list_start_library): Likewise.
13688 (library_list_start_list): Likewise.
13689 * tracepoint.c (traceframe_info_start_memory): Likewise.
13690 (traceframe_info_start_tvar): Likewise.
13691 * xml-syscall.c (syscall_start_syscall): Likewise.
13692 * xml-tdesc.c (tdesc_start_target): Likewise.
13693 (tdesc_start_feature): Likewise.
13694 (tdesc_start_reg): Likewise.
13695 (tdesc_start_union): Likewise.
13696 (tdesc_start_struct): Likewise.
13697 (tdesc_start_flags): Likewise.
13698 (tdesc_start_enum): Likewise.
13699 (tdesc_start_field): Likewise.
13700 (tdesc_start_enum_value): Likewise.
13701 (tdesc_start_vector): Likewise.
13702
13703 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13704
13705 * extension.h (struct xmethod_worker) <clone>: Remove.
13706 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13707 Remove.
13708 (python_xmethod_worker::clone): Remove.
13709 * valops.c (find_overload_match): Use std::move instead of
13710 clone.
13711
13712 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13713
13714 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13715 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13716 <free_xmethod_worker_data>: Remove.
13717 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13718 <get_xmethod_arg_types>: Remove.
13719 <get_xmethod_result_type>: Remove.
13720 <invoke_xmethod>: Remove.
13721 * extension.c (new_xmethod_worker): Remove.
13722 (clone_xmethod_worker): Remove.
13723 (get_matching_xmethod_workers): Return void, pass std::vector by
13724 pointer.
13725 (get_xmethod_arg_types): Rename to...
13726 (xmethod_worker::get_arg_types): ... this, and adjust.
13727 (get_xmethod_result_type): Rename to...
13728 (xmethod_worker::get_result_type): ... this, and adjust.
13729 (invoke_xmethod): Remove.
13730 (free_xmethod_worker): Remove.
13731 (free_xmethod_worker_vec): Remove.
13732 * extension.h (enum ext_lang_rc): Move here from
13733 extension-priv.h.
13734 (struct xmethod_worker): Add constructor and destructor.
13735 <data>: Remove.
13736 <value>: Remove.
13737 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13738 virtual pure methods.
13739 <get_arg_types, get_result_type>: New methods.
13740 (xmethod_worker_ptr): Remove typedef.
13741 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13742 (xmethod_worker_vec): Remove typedef.
13743 (xmethod_worker_up): New typedef.
13744 (invoke_xmethod): Remove.
13745 (clone_xmethod_worker): Remove.
13746 (free_xmethod_worker): Remove.
13747 (free_xmethod_worker_vec): Remove.
13748 (get_xmethod_arg_types): Remove.
13749 (get_xmethod_result_type): Remove.
13750 * valops.c (find_method_list): Use std::vector, don't use
13751 intermediate vector.
13752 (value_find_oload_method_list): Use std::vector.
13753 (find_overload_match): Use std::vector.
13754 (find_oload_champ): Use std::vector.
13755 * value.c (value_free): Use operator delete.
13756 (value_of_xmethod): Rename to...
13757 (value_from_xmethod): ... this. Don't assign
13758 xmethod_worker::value, take rvalue-reference.
13759 (result_type_of_xmethod): Adjust.
13760 (call_xmethod): Adjust.
13761 * value.h: Include extension.h.
13762 (struct xmethod_worker): Don't forward-declare.
13763 (value_of_xmethod): Rename to...
13764 (value_from_xmethod): ... this, take rvalue-reference.
13765 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13766 (struct python_xmethod_worker): ... this, add constructor and
13767 destructor.
13768 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13769 (gdbpy_free_xmethod_worker_data): Rename to...
13770 (python_xmethod_worker::~python_xmethod_worker): ... this and
13771 adjust.
13772 (gdbpy_clone_xmethod_worker_data): Rename to...
13773 (python_xmethod_worker::clone): ... this and adjust.
13774 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13775 temporary vector.
13776 (gdbpy_get_xmethod_arg_types): Rename to...
13777 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13778 (gdbpy_get_xmethod_result_type): Rename to...
13779 (python_xmethod_worker::do_get_result_type): ... this and
13780 adjust.
13781 (gdbpy_invoke_xmethod): Rename to...
13782 (python_xmethod_worker::invoke): ... this and adjust.
13783 (new_python_xmethod_worker): Rename to...
13784 (python_xmethod_worker::python_xmethod_worker): ... this and
13785 adjust.
13786 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13787 Remove.
13788 (gdbpy_free_xmethod_worker_data): Remove.
13789 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13790 (gdbpy_get_xmethod_arg_types): Remove.
13791 (gdbpy_get_xmethod_result_type): Remove.
13792 (gdbpy_invoke_xmethod): Remove.
13793 * python/python.c (python_extension_ops): Remove obsolete
13794 callbacks.
13795
13796 2018-01-05 Pedro Alves <palves@redhat.com>
13797
13798 PR gdb/18653
13799 * common/signals-state-save-restore.c
13800 (save_original_signals_state): New parameter 'quiet'. Warn if we
13801 find a custom handler preinstalled, instead of internal erroring.
13802 But only warn if !quiet.
13803 * common/signals-state-save-restore.h
13804 (save_original_signals_state): New parameter 'quiet'.
13805 * main.c (captured_main_1): Move save_original_signals_state call
13806 after option handling, and pass QUIET.
13807
13808 2018-01-05 Pedro Alves <palves@redhat.com>
13809
13810 * spu-tdep.c (spu_catch_start): Pass
13811 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13812
13813 2018-01-05 Pedro Alves <palves@redhat.com>
13814
13815 PR gdb/22670
13816 * ada-lang.c (literal_symbol_name_matcher): New function.
13817 (ada_get_symbol_name_matcher): Use it for
13818 symbol_name_match_type::SEARCH_NAME.
13819 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13820 it down instead of assuming symbol_name_match_type::FULL.
13821 * block.h (block_lookup_symbol): New parameter 'match_type'.
13822 * c-valprint.c (print_unpacked_pointer): Use
13823 lookup_symbol_search_name instead of lookup_symbol.
13824 * compile/compile-object-load.c (get_out_value_type): Pass down
13825 symbol_name_match_type::SEARCH_NAME.
13826 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13827 symbol_name_match_type::FULL.
13828 * cp-support.c (cp_get_symbol_name_matcher): Handle
13829 symbol_name_match_type::SEARCH_NAME.
13830 * infrun.c (insert_exception_resume_breakpoint): Use
13831 lookup_symbol_search_name.
13832 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13833 * psymtab.c (maintenance_check_psymtabs): Use
13834 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13835 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13836 SYMBOL_SEARCH_NAME.
13837 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13838 if symbol_name_match_type::SEARCH_NAME.
13839 (lookup_symbol_in_language): Pass down
13840 symbol_name_match_type::FULL.
13841 (lookup_symbol_search_name): New.
13842 (lookup_language_this): Pass down
13843 symbol_name_match_type::SEARCH_NAME.
13844 (lookup_symbol_aux, lookup_local_symbol): New parameter
13845 'match_type'. Pass it down.
13846 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13847 (lookup_symbol_search_name): New declaration.
13848 (lookup_symbol_in_block): New 'match_type' parameter.
13849
13850 2018-01-05 Pedro Alves <palves@redhat.com>
13851
13852 PR gdb/22670
13853 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13854 ada_lookup_symbol.
13855 (ada_lookup_symbol): Reimplement in terms of
13856 ada_lookup_symbol_list, bits factored out from
13857 ada_lookup_encoded_symbol.
13858
13859 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13860
13861 * ada-exp.y (write_object_renaming): When subscripting an array
13862 using a symbol as the index, pass the block in call to
13863 ada_lookup_encoded_symbol when looking that symbol up.
13864
13865 2018-01-05 Jerome Guitton <guitton@adacore.com>
13866
13867 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13868 TYPE_INDEX_TYPE.
13869
13870 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13871
13872 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13873 the case where VALUE_LVAL (val0) is not lval_memory.
13874
13875 2018-01-05 Xavier Roirand <roirand@adacore.com>
13876
13877 * ada-valprint.c (print_optional_low_bound): Handle
13878 character-indexed array printing like boolean-indexed array
13879 printing.
13880
13881 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13882
13883 * NEWS: Create a new section for the next release branch.
13884 Rename the section of the current branch, now that it has
13885 been cut.
13886
13887 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13888
13889 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13890 * version.in: Bump version to 8.1.50.DATE-git.
13891
13892 2018-01-03 Xavier Roirand <roirand@adacore.com>
13893
13894 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13895 Add field.
13896 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13897 Add field.
13898 (default_exception_support_info) <catch_handlers_sym>: Add field.
13899 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13900 (ada_exception_name_addr_1): Add "catch handlers" handling.
13901 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13902 Update all callers.
13903 (create_excep_cond_exprs) <ex>: Add parameter.
13904 (re_set_exception): Update create_excep_cond_exprs call.
13905 (print_it_exception, print_one_exception, print_mention_exception)
13906 (print_recreate_exception): Add "catch handler" handling.
13907 (allocate_location_catch_handlers, re_set_catch_handlers)
13908 (check_status_catch_handlers, print_it_catch_handlers)
13909 (print_one_catch_handlers, print_mention_catch_handlers)
13910 (print_recreate_catch_handlers): New function.
13911 (catch_handlers_breakpoint_ops): New variable.
13912 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13913 Add parameter. Add "catch handler" handling.
13914 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13915 Add "catch handler" handling.
13916 (ada_exception_catchpoint_cond_string): Add "catch handler"
13917 handling.
13918 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13919 call.
13920 (catch_ada_handlers_command): New function.
13921 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13922 operations structure.
13923 (_initialize_ada_language): Add "catch handlers" command entry.
13924 * NEWS: Document "catch handlers" feature.
13925
13926 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13927
13928 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13929 account when creating the array type of the slice.
13930 (ada_value_slice): Likewise.
13931
13932 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13933
13934 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13935 New enum value.
13936 (create_array_type_with_stride): Add byte_stride_prop parameter.
13937 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13938 New parameter. Update all callers in this file.
13939 (array_type_has_dynamic_stride): New function.
13940 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13941 of arrays with dynamic byte strides.
13942 * dwarf2read.c (read_array_type): Add support for dynamic
13943 DW_AT_byte_stride attributes.
13944
13945 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13946
13947 * dwarf2read.c (read_unspecified_type): Treat
13948 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13949
13950 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13951
13952 Update copyright year range in all GDB files.
13953
13954 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13955
13956 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13957 and gdb/testsuite/gdb.base/step-line.c.
13958
13959 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13960
13961 * copyright.py (main): Dump the contents of
13962 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13963 even if BY_HAND is empty.
13964
13965 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13966
13967 * top.c (print_gdb_version): Update Copyright year in version
13968 message.
13969
13970 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13971
13972 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13973
13974 For older changes see ChangeLog-2017.
13975 \f
13976 Local Variables:
13977 mode: change-log
13978 left-margin: 8
13979 fill-column: 74
13980 version-control: never
13981 coding: utf-8
13982 End: