d864e431f5606fb69c64e5f3e70219ce2591495a
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-09-23 Tom Tromey <tom@tromey.com>
2
3 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
4 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
5
6 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7
8 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
9 __sighndlr.
10 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
11
12 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
13
14 * windows-nat.c (windows_nat_target::wait): Remove a spurious
15 target_terminal::ours().
16
17 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
18
19 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
20 of vl to ULONGEST.
21
22 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
23
24 * breakpoint.c (update_inserted_breakpoint_locations): Remove
25 redundant condition.
26
27 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28
29 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
30
31 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
32 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
33 * sol-thread.c (ps_pdmodel): Don't guard definition.
34
35 * procfs.c: Fix formatting.
36
37 * procfs.c (sysset_t_alloc): Remove.
38 (create_procinfo): Use XNEW instead of sysset_t_alloc.
39 (procfs_debug_inferior): Likewise.
40 (procfs_set_exec_trap): Likewise.
41 (proc_set_traced_sysentry): Don't allocate argp dynamically.
42 (proc_set_traced_sysexit): Likewise.
43
44 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
45 (dead_procinfo): Likewise.
46 (proc_warn): Likewise.
47 (proc_error): Likewise.
48 (proc_get_LDT_entry): Likewise.
49 (do_attach): Likewise.
50 (procfs_target::pid_to_str): Likewise.
51 (iterate_over_mappings): Likewise.
52
53 * procfs.c (create_procinfo): Fix ARI warning.
54 (proc_get_status): Likewise.
55 (proc_stop_process): Likewise.
56 (proc_run_process): Likewise.
57 (proc_kill): Likewise.
58 (proc_get_LDT_entry): Likewise.
59 (procfs_find_LDT_entry): Likewise.
60 (proc_update_threads): Likewise.
61 (proc_iterate_over_threads): Likewise.
62 (do_attach): Likewise.
63 (procfs_xfer_memory): Likewise.
64 (invalidate_cache): Likewise.
65 (procfs_target::resume): Likewise.
66 (procfs_init_inferior): Likewise.
67 (procfs_set_exec_trap): Likewise.
68 (procfs_target::thread_alive): Likewise.
69 (procfs_target::pid_to_exec_file): Likewise.
70 (iterate_over_mappings): Likewise.
71 (procfs_target::make_corefile_notes): Likewise.
72 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
73
74 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
75 (procfs_find_LDT_entry): Likewise.
76 * sol-thread.c (ps_lgetLDT): Likewise.
77
78 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
79
80 PR tdep/17903
81 * procfs.c (procfs_target): Declare pid_to_exec_file.
82 (procfs_target::pid_to_exec_file): New.
83
84 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
85
86 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
87 renaming.
88 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
89 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
90
91 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
92
93 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
94 (supply_fpregset, fill_fpregset): Move ...
95 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
96 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
97 Remove references to ioctl-based procfs.
98 Include <sys/reg.h>.
99 Remove PR_MODEL_NATIVE guards.
100 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
101 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
102
103 2018-09-19 Xavier Roirand <roirand@adacore.com>
104
105 PR gdb/20981:
106 * solib-darwin.c (darwin_get_dyld_bfd): New function.
107 (darwin_solib_get_all_image_info_addr_at_init): Update call.
108 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
109
110 2018-09-19 John Baldwin <jhb@FreeBSD.org>
111
112 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
113 (fbsd_print_sockaddr_in6): Likewise.
114
115 2018-09-19 Richard Bunt <richard.bunt@arm.com>
116 Chris January <chris.january@arm.com>
117
118 * eval.c (skip_undetermined_arglist): Skip argument list helper.
119 (evaluate_subexp_standard): Return a dummy type when
120 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
121 OP_F77_UNDETERMINED_ARGLIST case.
122 * expression.h (enum noside): Update comment.
123
124 2018-09-19 George Vasick <george.vasick@oracle.com>
125
126 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
127
128 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
129 April Chin <april.chin@oracle.com>
130 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
131
132 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
133 uint_t lwpid_t.
134 (create_procinfo): Print pids in /proc without leading zeros.
135
136 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
137
138 * nios2-tdep.c (nios2_gcc_target_options): New.
139 (nios2_gdb_arch_init): Install new hook.
140
141 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
142
143 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
144 New file.
145 * update-gnulib.sh: Apply patch.
146 * configure: Re-generate.
147
148 2018-09-18 John Baldwin <jhb@FreeBSD.org>
149
150 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
151 description. Make "info proc" command descriptions more
152 consistent.
153
154 2018-09-18 John Baldwin <jhb@FreeBSD.org>
155
156 * NEWS: Mention 'info proc files' command.
157
158 2018-09-18 John Baldwin <jhb@FreeBSD.org>
159
160 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
161 descriptors for IP_FILES and IP_ALL.
162
163 2018-09-18 John Baldwin <jhb@FreeBSD.org>
164
165 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
166 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
167 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
168 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
169 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
170 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
171 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
172 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
173 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
174 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
175 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
176 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
177 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
178 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
179 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
180 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
181 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
182 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
183 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
184 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
185 (struct fbsd_sockaddr_un): New types.
186 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
187 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
188 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
189 (fbsd_core_info_proc_files): New functions.
190 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
191 IP_ALL.
192 * fbsd-tdep.h (fbsd_info_proc_files_header)
193 (fbsd_info_proc_files_entry): New.
194
195 2018-09-18 John Baldwin <jhb@FreeBSD.org>
196
197 * defs.h (enum info_proc_what) [IP_FILES]: New value.
198 * infcmd.c (info_proc_cmd_files): New function.
199 (_initialize_infcmd): Register 'info proc files' command.
200
201 2018-09-18 John Baldwin <jhb@FreeBSD.org>
202
203 * gnulib/aclocal-m4-deps.mk: Re-generate.
204 * gnulib/aclocal.m4: Re-generate.
205 * gnulib/config.in: Re-generate.
206 * gnulib/configure: Re-generate.
207 * gnulib/import/Makefile.am: Re-generate.
208 * gnulib/import/Makefile.in: Re-generate.
209 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
210 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
211 * gnulib/import/arpa_inet.in.h: New file.
212 * gnulib/import/inet_ntop.c: New file.
213 * gnulib/import/m4/arpa_inet_h.m4: New file.
214 * gnulib/import/m4/inet_ntop.m4: New file.
215 * gnulib/import/m4/netinet_in_h.m4: New file.
216 * gnulib/import/m4/socklen.m4: New file.
217 * gnulib/import/m4/sockpfaf.m4: New file.
218 * gnulib/import/m4/stdalign.m4: New file.
219 * gnulib/import/m4/sys_uio_h.m4: New file.
220 * gnulib/import/netinet_in.in.h: New file.
221 * gnulib/import/stdalign.in.h: New file.
222 * gnulib/import/sys_socket.c: New file.
223 * gnulib/import/sys_socket.in.h: New file.
224 * gnulib/import/sys_uio.in.h: New file.
225 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
226 module.
227
228 2018-09-18 John Baldwin <jhb@FreeBSD.org>
229
230 * gnulib/aclocal-m4-deps.mk: New file.
231 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
232 deterministically.
233
234 2018-09-18 John Baldwin <jhb@FreeBSD.org>
235
236 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
237 KVE_PATH.
238
239 2018-09-18 Tom Tromey <tom@tromey.com>
240
241 * compile/compile-object-load.c (struct
242 link_hash_table_cleanup_data): Add constructor and destructor.
243 Use DISABLE_COPY_AND_ASSIGN.
244 (~link_hash_table_cleanup_data): Rename from
245 link_hash_table_free. Now a destructor.
246 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
247
248 2018-09-18 Tom Tromey <tom@tromey.com>
249
250 * compile/compile-object-run.c (do_module_cleanup): Use delete.
251 * compile/compile-object-load.c (struct munmap_list): Move to
252 header file.
253 (munmap_list::add): Rename from munmap_list_add; rewrite.
254 (munmap_list::~munmap_list): Rename from munmap_list_free.
255 (munmap_listp_free_cleanup): Remove.
256 (compile_object_load): Update.
257 * compile/compile-object-load.h (struct munmap_list): Move from
258 compile-object-load.c. Rewrite.
259
260 2018-09-18 Alan Hayward <alan.hayward@arm.com>
261
262 * aarch64-tdep.c (pass_in_v): Use register size.
263 (aarch64_extract_return_value): Likewise.
264 (aarch64_store_return_value): Likewise.
265
266 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
267
268 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
269 rlim_t.
270
271 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
272
273 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
274 Fix short help line.
275
276 2018-09-17 Tom Tromey <tom@tromey.com>
277
278 PR python/20445:
279 * configure: Rebuild.
280 * configure.ac: Conditionally use -DNDEBUG for Python.
281
282 2018-09-17 Tom Tromey <tom@tromey.com>
283
284 * configure: Rebuild.
285 * configure.ac: Use gmp as a library dependency when checking for
286 mpfr.
287
288 2018-09-17 Pedro Alves <palves@redhat.com>
289
290 * python/py-inferior.c (find_inferior_object): Delete.
291
292 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
293
294 * compile/compile-cplus-types.c
295 (compile_cplus_instance::enter_scope): Don't use new_scope after
296 std::move.
297
298 2018-09-17 Tom Tromey <tom@tromey.com>
299
300 * common/pathstuff.c (get_standard_cache_dir): Use
301 ~/Library/Caches on macOS.
302 * common/pathstuff.h (get_standard_cache_dir): Update comment.
303
304 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
305
306 PR python/23669
307 * breakpoint.c (commands_cmd_element): New.
308 (_initialize_breakpoint): Assign commands_cmd_element.
309 * breakpoint.h (commands_cmd_element): New.
310 * cli/cli-script.c (while_cmd_element, if_command,
311 define_cmd_element): New.
312 (command_name_equals): Remove.
313 (process_next_line): Compare commands by pointer, not by name.
314 (_initialize_cli_script): Assign the various cmd_list_element
315 variables.
316 * compile/compile.c (compile_cmd_element): New.
317 (_initialize_compile): Assign compile_cmd_element.
318 * compile/compile.h (compile_cmd_element): New.
319 * guile/guile.c (guile_cmd_element): New.
320 (install_gdb_commands): Assign guile_cmd_element.
321 * guile/guile.h (guile_cmd_element): New.
322 * python/python.c (python_cmd_element): New.
323 (_initialize_python): Assign python_cmd_element.
324 * python/python.h (python_cmd_element): New.
325 * tracepoint.c (while_stepping_cmd_element): New.
326 (_initialize_tracepoint): Assign while_stepping_cmd_element.
327 * tracepoint.h (while_stepping_cmd_element): New.
328
329 2018-09-17 Tom Tromey <tom@tromey.com>
330
331 * infrun.c (save_infcall_suspend_state): Return
332 infcall_suspend_state_up.
333 (save_infcall_control_state): Return infcall_control_state_up.
334 * inferior.h (save_infcall_suspend_state)
335 (save_infcall_control_state): Declare later. Return unique
336 pointers.
337
338 2018-09-17 Tom Tromey <tom@tromey.com>
339
340 * infrun.c (struct stop_context): Declare constructor,
341 destructor, "changed" method.
342 (stop_context::stop_context): Rename from save_stop_context.
343 (stop_context::~stop_context): Rename from
344 release_stop_context_cleanup.
345 (normal_stop): Update.
346 (stop_context::changed): Rename from stop_context_changed. Return
347 bool.
348
349 2018-09-17 Tom Tromey <tom@tromey.com>
350
351 * inferior.h (struct infcall_suspend_state_deleter): New.
352 (infcall_suspend_state_up): New typedef.
353 (struct infcall_control_state_deleter): New.
354 (infcall_control_state_up): New typedef.
355 (make_cleanup_restore_infcall_suspend_state)
356 (make_cleanup_restore_infcall_control_state): Don't declare.
357 * infcall.c (call_function_by_hand_dummy): Update.
358 * infrun.c (do_restore_infcall_suspend_state_cleanup)
359 (make_cleanup_restore_infcall_suspend_state): Remove.
360 (do_restore_infcall_control_state_cleanup)
361 (make_cleanup_restore_infcall_control_state): Remove.
362
363 2018-09-17 Tom Tromey <tom@tromey.com>
364
365 * gdbthread.h (struct thread_control_state): Add initializer.
366 (class thread_info) <control>: Remove initializer.
367 * inferior.h (struct inferior_control_state): Add initializer.
368 (class inferior) <control>: Remove initializer.
369 (exit_inferior_1): Update.
370 * infrun.c (struct infcall_control_state): Add constructors.
371 (save_infcall_control_state): Use new.
372 (restore_infcall_control_state, discard_infcall_control_state):
373 Use delete.
374
375 2018-09-17 Tom Tromey <tom@tromey.com>
376
377 * infrun.c (struct infcall_suspend_state) <registers>: Now a
378 unique_ptr.
379 <siginfo_data>: Now a unique_xmalloc_ptr.
380 (save_infcall_suspend_state, restore_infcall_suspend_state)
381 (discard_infcall_suspend_state)
382 (get_infcall_suspend_state_regcache): Update.
383
384 2018-09-17 Tom Tromey <tom@tromey.com>
385
386 * gdbthread.h (struct thread_suspend_state): Add initializers.
387 (class thread_info) <suspend>: Remove initializer.
388 * infrun.c (struct infcall_suspend_state): Add initializers.
389 (save_infcall_suspend_state): Use new.
390 (discard_infcall_suspend_state): Use delete.
391
392 2018-09-16 Tom Tromey <tom@tromey.com>
393
394 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
395 Remove.
396 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
397 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
398 (py_varobj_iter_new): Likewise.
399 (py_varobj_get_iterator): Use gdbpy_ref.
400
401 2018-09-16 Tom Tromey <tom@tromey.com>
402
403 * python/py-threadevent.c (py_get_event_thread): Simplify.
404 * python/py-inferior.c (infpy_thread_from_thread_handle):
405 Return immediately after calling thread_to_thread_object. Use
406 Py_RETURN_NONE.
407 (thread_to_thread_object): Set the exception on a NULL return.
408
409 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
410
411 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
412
413 2018-09-16 Tom Tromey <tom@tromey.com>
414
415 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
416 Remove.
417
418 2018-09-16 Tom Tromey <tom@tromey.com>
419
420 * python/python-internal.h (thread_to_thread_object): Change
421 return type.
422 * python/py-inferior.c (thread_to_thread_object): Return a new
423 reference.
424 (infpy_thread_from_thread_handle): Update.
425 * python/py-infthread.c (gdbpy_selected_thread): Update.
426 * python/py-stopevent.c (create_stop_event_object): Update.
427 * python/py-threadevent.c (py_get_event_thread): Return a new
428 reference.
429 (py_get_event_thread): Update.
430 * python/py-event.h (py_get_event_thread): Change return type.
431 * python/py-continueevent.c (create_continue_event_object):
432 Update.
433
434 2018-09-16 Tom Tromey <tom@tromey.com>
435
436 * python/py-progspace.c (pspy_get_objfiles): Update.
437 * python/python-internal.h (objfile_to_objfile_object): Change
438 return type.
439 * python/py-newobjfileevent.c (create_new_objfile_event_object):
440 Update.
441 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
442 Update.
443 * python/python.c (gdbpy_get_current_objfile): Update.
444 (gdbpy_objfiles): Update.
445 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
446 Update.
447 (objfile_to_objfile_object): Return a new reference.
448 * python/py-symtab.c (stpy_get_objfile): Update.
449 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
450 Update.
451
452 2018-09-16 Tom Tromey <tom@tromey.com>
453
454 * python/py-inferior.c (infpy_get_progspace): Update.
455 * python/python-internal.h (pspace_to_pspace_object): Change
456 return type.
457 * python/py-newobjfileevent.c
458 (create_clear_objfiles_event_object): Update.
459 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
460 Update.
461 * python/python.c (gdbpy_get_current_progspace): Update.
462 (gdbpy_progspaces): Update.
463 * python/py-progspace.c (pspace_to_pspace_object): Return a new
464 reference.
465 * python/py-objfile.c (objfpy_get_progspace): Update.
466 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
467 Update.
468
469 2018-09-16 Tom Tromey <tom@tromey.com>
470
471 * python/lib/gdb/__init__.py (current_progspace, objfiles)
472 (solib_name, block_for_pc, find_pc_line): New functions.
473 (execute_unwinders): Update.
474 * python/py-block.c (gdbpy_block_for_pc): Remove.
475 * python/py-inferior.c (infpy_get_progspace): New function.
476 (inferior_object_getset) <progspace>: Add.
477 * python/py-progspace.c (pspy_objfiles): Rewrite.
478 (pspy_solib_name, pspy_block_for_pc)
479 (pspy_find_pc_line, pspy_is_valid): New functions.
480 (progspace_object_methods): Add entries for solib_name,
481 block_for_pc, find_pc_line, is_valid.
482 * python/python-internal.h (gdbpy_block_for_pc)
483 (build_objfiles_list): Don't declare.
484 * python/python.c: Don't include solib.h.
485 (gdbpy_solib_name, gdbpy_find_pc_line)
486 (gdbpy_get_current_progspace, build_objfiles_list)
487 (gdbpy_objfiles): Remove.
488 (GdbMethods) <current_progspace, objfiles, block_for_pc,
489 solib_name, find_pc_line>: Remove entries.
490
491 2018-09-16 Tom Tromey <tom@tromey.com>
492
493 * top.c (new_ui_command): Use GNU style for metasyntactic
494 variables.
495 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
496 variables.
497 * maint.c (maintenance_translate_address): Remove "<>" around
498 text.
499 * interps.c (interpreter_exec_cmd): Use GNU style for
500 metasyntactic variables.
501 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
502 metasyntactic variables.
503 * tracepoint.c (tfind_range_command): Use GNU style for
504 metasyntactic variables.
505 (tfind_outside_command): Likewise.
506 (_initialize_tracepoint): Likewise.
507 * remote.c (extended_remote_target::create_inferior): Use GNU
508 style for metasyntactic variables.
509 * sparc64-tdep.c (adi_examine_command): Use GNU style for
510 metasyntactic variables.
511 (adi_assign_command): Likewise.
512
513 2018-09-16 Tom Tromey <tom@tromey.com>
514
515 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
516 metasyntactic variables. Print message if no disassembler options
517 are available.
518
519 2018-09-15 Tom Tromey <tom@tromey.com>
520
521 * infcmd.c (get_inferior_args): Return const char *.
522 * inferior.h (get_inferior_args): Return type now const.
523 * linux-tdep.c (linux_fill_prpsinfo): Update.
524 * procfs.c (procfs_target::make_corefile_notes): Update.
525
526 2018-09-07 Tom Tromey <tom@tromey.com>
527
528 * python/python.c (execute_gdb_command): Call bpstat_do_actions
529 inside the TRY.
530
531 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
532
533 * nios2-tdep.c (nios2_type_align): New.
534 (nios2_gdb_arch_init): Install type_align hook.
535
536 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
537
538 * eval.c (fake_method::fake_method): Call xzalloc directly for a
539 type that is neither object file owned, nor gdbarch owned.
540 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
541 gdbarch is non-NULL.
542 (alloc_type_instance): Allocate non-objfile owned types on the
543 gdbarch obstack.
544 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
545 using TYPE_ALLOC to ensure memory is allocated on the correct
546 obstack.
547 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
548 obstack, or the gdbarch obstack.
549 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
550
551 2018-09-14 Tom Tromey <tom@tromey.com>
552
553 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
554 block.
555
556 2018-09-14 Tom Tromey <tom@tromey.com>
557
558 * nat/fork-inferior.c (get_startup_shell): Remove "static".
559
560 2018-09-13 Tom Tromey <tom@tromey.com>
561
562 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
563 static.
564
565 2018-09-13 Tom Tromey <tom@tromey.com>
566
567 * exec.c (try_open_exec_file): Use std::string.
568
569 2018-09-13 Tom Tromey <tom@tromey.com>
570
571 * utils.h (gdb_bfd_errmsg): Return std::string.
572 * exec.c (exec_file_attach): Update.
573 * compile/compile-object-load.c (compile_object_load): Update.
574 * utils.c (gdb_bfd_errmsg): Return std::string.
575
576 2018-09-13 Tom Tromey <tom@tromey.com>
577
578 * procfs.c (struct procinfo_deleter): New.
579 (procinfo_up): New typedef.
580 (do_destroy_procinfo_cleanup): Remove.
581 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
582
583 2018-09-13 Tom Tromey <tom@tromey.com>
584
585 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
586
587 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
588 2018-09-13 Tom Tromey <tom@tromey.com>
589
590 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
591 (pspy_get_objfiles): New function.
592 (progspace_object_methods): New.
593 (pspace_object_type): Add tp_methods callback.
594 * python/python-internal.h (build_objfiles_list): New
595 declaration.
596 * python/python.c (build_objfiles_list): New function.
597 (gdbpy_objfiles): Implement using build_objfiles_list.
598 * NEWS: Mention the Progspace.objfiles method.
599
600 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
601
602 * python/py-inferior.c (infpy_get_progspace): New function.
603 (inferior_object_getset): Add progspace property.
604 * NEWS: Mention the new property.
605
606 2018-09-13 Tom Tromey <tom@tromey.com>
607
608 PR rust/23650:
609 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
610
611 2018-09-13 Tom Tromey <tom@tromey.com>
612
613 PR rust/23626:
614 * rust-lang.c (rust_enum_variant): Now static.
615 (rust_empty_enum_p): New function.
616 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
617 Handle empty enum.
618
619 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
620
621 * python/py-inferior.c (infpy_repr): New.
622 (inferior_object_type): Register infpy_repr.
623 * python/py-objfile.c (objfpy_repr): New.
624 (objfile_object_type): Register objfpy_repr.
625
626 2018-09-12 John Baldwin <jhb@FreeBSD.org>
627
628 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
629
630 2018-09-12 John Baldwin <jhb@FreeBSD.org>
631
632 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
633 typo.
634
635 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
636
637 * common/common-utils.c: Don't include '<sys/stat.h>'.
638 (is_regular_file): Move to...
639 * common/filestuff.c (is_regular_file): ... here.
640 * common/common-utils.h (is_regular_file): Move to...
641 * common/filestuff.h (is_regular_file): ... here.
642
643 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
644
645 * skip.c (debug_skip): New variable.
646 (skiplist_entry::do_skip_file_p): Add debug output.
647 (skiplist_entry::do_skip_gfile_p): Likewise.
648 (skiplist_entry::skip_function_p): Likewise.
649 (_initialize_step_skip): Create debug command.
650 * NEWS: Mention set/show debug skip.
651
652 2018-09-11 Xavier Roirand <roirand@adacore.com>
653
654 * darwin-nat.c (should_disable_startup_with_shell):
655 New function.
656 (darwin_nat_target::create_inferior): Add call.
657
658 2018-09-11 Xavier Roirand <roirand@adacore.com>
659
660 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
661 inf_port, msg_state>: Initialize.
662 (struct darwin_thread_info) <signaled, single_step>: Change
663 type and initialize.
664 (struct darwin_thread_info) <event>: Initialize.
665
666 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
667
668 PR gdb/23555
669 PR gdb/23558
670 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
671 guesses.
672
673 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
674
675 Revert:
676 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
677
678 PR gdb/23555
679 PR gdb/23558
680 * gnulib/aclocal.m4: Regenerate.
681 * gnulib/config.in: Regenerate.
682 * gnulib/configure: Regenerate.
683 * gnulib/import/Makefile.am: Update.
684 * gnulib/import/Makefile.in: Update.
685 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
686 * gnulib/import/_Noreturn.h: ... this.
687 * gnulib/import/alloca.in.h: Update.
688 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
689 * gnulib/import/arg-nonnull.h: ... this.
690 * gnulib/import/assure.h: Update.
691 * gnulib/import/at-func.c: Update.
692 * gnulib/import/basename-lgpl.c: Update.
693 * gnulib/import/extra/snippet/c++defs.h: Rename to...
694 * gnulib/import/c++defs.h: ... this.
695 * gnulib/import/canonicalize-lgpl.c: Update.
696 * gnulib/import/cdefs.h: Update.
697 * gnulib/import/chdir-long.c: Update.
698 * gnulib/import/chdir-long.h: Update.
699 * gnulib/import/cloexec.c: Update.
700 * gnulib/import/cloexec.h: Update.
701 * gnulib/import/close.c: Update.
702 * gnulib/import/closedir.c: Update.
703 * gnulib/import/config.charset: Update.
704 * gnulib/import/dirent-private.h: Update.
705 * gnulib/import/dirent.in.h: Update.
706 * gnulib/import/dirfd.c: Update.
707 * gnulib/import/dirname-lgpl.c: Update.
708 * gnulib/import/dirname.h: Update.
709 * gnulib/import/dosname.h: Update.
710 * gnulib/import/dup-safer-flag.c: Update.
711 * gnulib/import/dup-safer.c: Update.
712 * gnulib/import/dup.c: Update.
713 * gnulib/import/dup2.c: Update.
714 * gnulib/import/errno.in.h: Update.
715 * gnulib/import/error.c: Update.
716 * gnulib/import/error.h: Update.
717 * gnulib/import/exitfail.c: Update.
718 * gnulib/import/exitfail.h: Update.
719 * gnulib/import/extra/update-copyright: Update.
720 * gnulib/import/fchdir.c: Update.
721 * gnulib/import/fcntl.c: Update.
722 * gnulib/import/fcntl.in.h: Update.
723 * gnulib/import/fd-hook.c: Update.
724 * gnulib/import/fd-hook.h: Update.
725 * gnulib/import/fd-safer-flag.c: Update.
726 * gnulib/import/fd-safer.c: Update.
727 * gnulib/import/fdopendir.c: Update.
728 * gnulib/import/filename.h: Update.
729 * gnulib/import/filenamecat-lgpl.c: Update.
730 * gnulib/import/filenamecat.h: Update.
731 * gnulib/import/flexmember.h: Update.
732 * gnulib/import/float+.h: Update.
733 * gnulib/import/float.c: Update.
734 * gnulib/import/float.in.h: Update.
735 * gnulib/import/fnmatch.c: Update.
736 * gnulib/import/fnmatch.in.h: Update.
737 * gnulib/import/fnmatch_loop.c: Update.
738 * gnulib/import/fpucw.h: Update.
739 * gnulib/import/frexp.c: Update.
740 * gnulib/import/frexpl.c: Update.
741 * gnulib/import/fstat.c: Update.
742 * gnulib/import/fstatat.c: Update.
743 * gnulib/import/getcwd-lgpl.c: Update.
744 * gnulib/import/getcwd.c: Update.
745 * gnulib/import/getdtablesize.c: Update.
746 * gnulib/import/getlogin_r.c: Update.
747 * gnulib/import/getprogname.c: Update.
748 * gnulib/import/getprogname.h: Update.
749 * gnulib/import/gettext.h: Update.
750 * gnulib/import/gettimeofday.c: Update.
751 * gnulib/import/glob-libc.h: Update.
752 * gnulib/import/glob.c: Update.
753 * gnulib/import/glob.in.h: Update.
754 * gnulib/import/glob_internal.h: Update.
755 * gnulib/import/glob_pattern_p.c: Update.
756 * gnulib/import/globfree.c: Update.
757 * gnulib/import/hard-locale.c: Update.
758 * gnulib/import/hard-locale.h: Update.
759 * gnulib/import/intprops.h: Update.
760 * gnulib/import/inttypes.in.h: Update.
761 * gnulib/import/isnan.c: Update.
762 * gnulib/import/isnand-nolibm.h: Update.
763 * gnulib/import/isnand.c: Update.
764 * gnulib/import/isnanl-nolibm.h: Update.
765 * gnulib/import/isnanl.c: Update.
766 * gnulib/import/itold.c: Update.
767 * gnulib/import/libc-config.h: Update.
768 * gnulib/import/limits.in.h: Update.
769 * gnulib/import/localcharset.c: Update.
770 * gnulib/import/localcharset.h: Update.
771 * gnulib/import/localtime-buffer.c: Update.
772 * gnulib/import/localtime-buffer.h: Update.
773 * gnulib/import/lstat.c: Update.
774 * gnulib/import/m4/00gnulib.m4: Update.
775 * gnulib/import/m4/__inline.m4: Update.
776 * gnulib/import/m4/absolute-header.m4: Update.
777 * gnulib/import/m4/alloca.m4: Update.
778 * gnulib/import/m4/builtin-expect.m4: Update.
779 * gnulib/import/m4/canonicalize.m4: Update.
780 * gnulib/import/m4/chdir-long.m4: Update.
781 * gnulib/import/m4/close.m4: Update.
782 * gnulib/import/m4/closedir.m4: Update.
783 * gnulib/import/m4/configmake.m4: Update.
784 * gnulib/import/m4/d-ino.m4: Update.
785 * gnulib/import/m4/d-type.m4: Update.
786 * gnulib/import/m4/dirent_h.m4: Update.
787 * gnulib/import/m4/dirfd.m4: Update.
788 * gnulib/import/m4/dirname.m4: Update.
789 * gnulib/import/m4/double-slash-root.m4: Update.
790 * gnulib/import/m4/dup.m4: Update.
791 * gnulib/import/m4/dup2.m4: Update.
792 * gnulib/import/m4/eealloc.m4: Update.
793 * gnulib/import/m4/environ.m4: Update.
794 * gnulib/import/m4/errno_h.m4: Update.
795 * gnulib/import/m4/error.m4: Update.
796 * gnulib/import/m4/exponentd.m4: Update.
797 * gnulib/import/m4/exponentl.m4: Update.
798 * gnulib/import/m4/extensions.m4: Update.
799 * gnulib/import/m4/extern-inline.m4: Update.
800 * gnulib/import/m4/fchdir.m4: Update.
801 * gnulib/import/m4/fcntl-o.m4: Update.
802 * gnulib/import/m4/fcntl.m4: Update.
803 * gnulib/import/m4/fcntl_h.m4: Update.
804 * gnulib/import/m4/fdopendir.m4: Update.
805 * gnulib/import/m4/filenamecat.m4: Update.
806 * gnulib/import/m4/flexmember.m4: Update.
807 * gnulib/import/m4/float_h.m4: Update.
808 * gnulib/import/m4/fnmatch.m4: Update.
809 * gnulib/import/m4/fnmatch_h.m4: Update.
810 * gnulib/import/m4/fpieee.m4: Update.
811 * gnulib/import/m4/frexp.m4: Update.
812 * gnulib/import/m4/frexpl.m4: Update.
813 * gnulib/import/m4/fstat.m4: Update.
814 * gnulib/import/m4/fstatat.m4: Update.
815 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
816 * gnulib/import/m4/getcwd-path-max.m4: Update.
817 * gnulib/import/m4/getcwd.m4: Update.
818 * gnulib/import/m4/getdtablesize.m4: Update.
819 * gnulib/import/m4/getlogin.m4: Update.
820 * gnulib/import/m4/getlogin_r.m4: Update.
821 * gnulib/import/m4/getpagesize.m4: Update.
822 * gnulib/import/m4/getprogname.m4: Update.
823 * gnulib/import/m4/gettimeofday.m4: Update.
824 * gnulib/import/m4/glibc21.m4: Update.
825 * gnulib/import/m4/glob.m4: Update.
826 * gnulib/import/m4/glob_h.m4: Update.
827 * gnulib/import/m4/gnulib-cache.m4: Update.
828 * gnulib/import/m4/gnulib-common.m4: Update.
829 * gnulib/import/m4/gnulib-comp.m4: Update.
830 * gnulib/import/m4/gnulib-tool.m4: Update.
831 * gnulib/import/m4/hard-locale.m4: Update.
832 * gnulib/import/m4/include_next.m4: Update.
833 * gnulib/import/m4/inttypes-pri.m4: Update.
834 * gnulib/import/m4/inttypes.m4: Update.
835 * gnulib/import/m4/isnand.m4: Update.
836 * gnulib/import/m4/isnanl.m4: Update.
837 * gnulib/import/m4/largefile.m4: Update.
838 * gnulib/import/m4/limits-h.m4: Update.
839 * gnulib/import/m4/localcharset.m4: Update.
840 * gnulib/import/m4/locale-fr.m4: Update.
841 * gnulib/import/m4/locale-ja.m4: Update.
842 * gnulib/import/m4/locale-zh.m4: Update.
843 * gnulib/import/m4/localtime-buffer.m4: Update.
844 * gnulib/import/m4/longlong.m4: Update.
845 * gnulib/import/m4/lstat.m4: Update.
846 * gnulib/import/m4/malloc.m4: Update.
847 * gnulib/import/m4/malloca.m4: Update.
848 * gnulib/import/m4/math_h.m4: Update.
849 * gnulib/import/m4/mbrtowc.m4: Update.
850 * gnulib/import/m4/mbsinit.m4: Update.
851 * gnulib/import/m4/mbsrtowcs.m4: Update.
852 * gnulib/import/m4/mbstate_t.m4: Update.
853 * gnulib/import/m4/memchr.m4: Update.
854 * gnulib/import/m4/memmem.m4: Update.
855 * gnulib/import/m4/mempcpy.m4: Update.
856 * gnulib/import/m4/memrchr.m4: Update.
857 * gnulib/import/m4/mkdir.m4: Update.
858 * gnulib/import/m4/mkstemp.m4: Update.
859 * gnulib/import/m4/mmap-anon.m4: Update.
860 * gnulib/import/m4/mode_t.m4: Update.
861 * gnulib/import/m4/msvc-inval.m4: Update.
862 * gnulib/import/m4/msvc-nothrow.m4: Update.
863 * gnulib/import/m4/multiarch.m4: Update.
864 * gnulib/import/m4/nocrash.m4: Update.
865 * gnulib/import/m4/off_t.m4: Update.
866 * gnulib/import/m4/onceonly.m4: Update.
867 * gnulib/import/m4/open-cloexec.m4: Update.
868 * gnulib/import/m4/open.m4: Update.
869 * gnulib/import/m4/openat.m4: Update.
870 * gnulib/import/m4/opendir.m4: Update.
871 * gnulib/import/m4/pathmax.m4: Update.
872 * gnulib/import/m4/rawmemchr.m4: Update.
873 * gnulib/import/m4/readdir.m4: Update.
874 * gnulib/import/m4/readlink.m4: Update.
875 * gnulib/import/m4/realloc.m4: Update.
876 * gnulib/import/m4/rename.m4: Update.
877 * gnulib/import/m4/rewinddir.m4: Update.
878 * gnulib/import/m4/rmdir.m4: Update.
879 * gnulib/import/m4/save-cwd.m4: Update.
880 * gnulib/import/m4/secure_getenv.m4: Update.
881 * gnulib/import/m4/setenv.m4: Update.
882 * gnulib/import/m4/signal_h.m4: Update.
883 * gnulib/import/m4/ssize_t.m4: Update.
884 * gnulib/import/m4/stat-time.m4: Update.
885 * gnulib/import/m4/stat.m4: Update.
886 * gnulib/import/m4/std-gnu11.m4: Update.
887 * gnulib/import/m4/stdbool.m4: Update.
888 * gnulib/import/m4/stddef_h.m4: Update.
889 * gnulib/import/m4/stdint.m4: Update.
890 * gnulib/import/m4/stdio_h.m4: Update.
891 * gnulib/import/m4/stdlib_h.m4: Update.
892 * gnulib/import/m4/strchrnul.m4: Update.
893 * gnulib/import/m4/strdup.m4: Update.
894 * gnulib/import/m4/strerror.m4: Update.
895 * gnulib/import/m4/string_h.m4: Update.
896 * gnulib/import/m4/strstr.m4: Update.
897 * gnulib/import/m4/strtok_r.m4: Update.
898 * gnulib/import/m4/sys_socket_h.m4: Update.
899 * gnulib/import/m4/sys_stat_h.m4: Update.
900 * gnulib/import/m4/sys_time_h.m4: Update.
901 * gnulib/import/m4/sys_types_h.m4: Update.
902 * gnulib/import/m4/tempname.m4: Update.
903 * gnulib/import/m4/time_h.m4: Update.
904 * gnulib/import/m4/unistd-safer.m4: Update.
905 * gnulib/import/m4/unistd_h.m4: Update.
906 * gnulib/import/m4/warn-on-use.m4: Update.
907 * gnulib/import/m4/wchar_h.m4: Update.
908 * gnulib/import/m4/wchar_t.m4: Update.
909 * gnulib/import/m4/wctype_h.m4: Update.
910 * gnulib/import/m4/wint_t.m4: Update.
911 * gnulib/import/malloc.c: Update.
912 * gnulib/import/malloc/scratch_buffer.h: Update.
913 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
914 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
915 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
916 * gnulib/import/malloca.c: Update.
917 * gnulib/import/malloca.h: Update.
918 * gnulib/import/malloca.valgrind: Update.
919 * gnulib/import/math.in.h: Update.
920 * gnulib/import/mbrtowc.c: Update.
921 * gnulib/import/mbsinit.c: Update.
922 * gnulib/import/mbsrtowcs-impl.h: Update.
923 * gnulib/import/mbsrtowcs-state.c: Update.
924 * gnulib/import/mbsrtowcs.c: Update.
925 * gnulib/import/memchr.c: Update.
926 * gnulib/import/memmem.c: Update.
927 * gnulib/import/mempcpy.c: Update.
928 * gnulib/import/memrchr.c: Update.
929 * gnulib/import/mkdir.c: Update.
930 * gnulib/import/mkstemp.c: Update.
931 * gnulib/import/msvc-inval.c: Update.
932 * gnulib/import/msvc-inval.h: Update.
933 * gnulib/import/msvc-nothrow.c: Update.
934 * gnulib/import/msvc-nothrow.h: Update.
935 * gnulib/import/open.c: Update.
936 * gnulib/import/openat-die.c: Update.
937 * gnulib/import/openat-priv.h: Update.
938 * gnulib/import/openat-proc.c: Update.
939 * gnulib/import/openat.c: Update.
940 * gnulib/import/openat.h: Update.
941 * gnulib/import/opendir.c: Update.
942 * gnulib/import/pathmax.h: Update.
943 * gnulib/import/pipe-safer.c: Update.
944 * gnulib/import/rawmemchr.c: Update.
945 * gnulib/import/readdir.c: Update.
946 * gnulib/import/readlink.c: Update.
947 * gnulib/import/realloc.c: Update.
948 * gnulib/import/ref-add.sin: Update.
949 * gnulib/import/ref-del.sin: Update.
950 * gnulib/import/rename.c: Update.
951 * gnulib/import/rewinddir.c: Update.
952 * gnulib/import/rmdir.c: Update.
953 * gnulib/import/same-inode.h: Update.
954 * gnulib/import/save-cwd.c: Update.
955 * gnulib/import/save-cwd.h: Update.
956 * gnulib/import/scratch_buffer.h: Update.
957 * gnulib/import/secure_getenv.c: Update.
958 * gnulib/import/setenv.c: Update.
959 * gnulib/import/signal.in.h: Update.
960 * gnulib/import/stat-time.c: Update.
961 * gnulib/import/stat-time.h: Update.
962 * gnulib/import/stat-w32.c: Update.
963 * gnulib/import/stat-w32.h: Update.
964 * gnulib/import/stat.c: Update.
965 * gnulib/import/stdbool.in.h: Update.
966 * gnulib/import/stddef.in.h: Update.
967 * gnulib/import/stdint.in.h: Update.
968 * gnulib/import/stdio.in.h: Update.
969 * gnulib/import/stdlib.in.h: Update.
970 * gnulib/import/str-two-way.h: Update.
971 * gnulib/import/strchrnul.c: Update.
972 * gnulib/import/strdup.c: Update.
973 * gnulib/import/streq.h: Update.
974 * gnulib/import/strerror-override.c: Update.
975 * gnulib/import/strerror-override.h: Update.
976 * gnulib/import/strerror.c: Update.
977 * gnulib/import/string.in.h: Update.
978 * gnulib/import/stripslash.c: Update.
979 * gnulib/import/strnlen1.c: Update.
980 * gnulib/import/strnlen1.h: Update.
981 * gnulib/import/strstr.c: Update.
982 * gnulib/import/strtok_r.c: Update.
983 * gnulib/import/sys_stat.in.h: Update.
984 * gnulib/import/sys_time.in.h: Update.
985 * gnulib/import/sys_types.in.h: Update.
986 * gnulib/import/tempname.c: Update.
987 * gnulib/import/tempname.h: Update.
988 * gnulib/import/time.in.h: Update.
989 * gnulib/import/unistd--.h: Update.
990 * gnulib/import/unistd-safer.h: Update.
991 * gnulib/import/unistd.in.h: Update.
992 * gnulib/import/unsetenv.c: Update.
993 * gnulib/import/verify.h: Update.
994 * gnulib/import/extra/snippet/warn-on-use.h: Update.
995 * gnulib/import/wchar.in.h: Update.
996 * gnulib/import/wctype.in.h: Update.
997 * gnulib/import/xalloc-oversized.h: Update.
998 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
999 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1000
1001 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1002
1003 * record-btrace.c (get_thread_current_frame): Remove
1004 old_inferior_ptid.
1005
1006 2018-09-10 Jerome Guitton <guitton@adacore.com>
1007
1008 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1009 with check_tag to 1 if and only if the type is tagged and the
1010 component being searched cannot been found in the current
1011 view. Otherwise, always call ada_to_fixed_type with
1012 check_tag to 0.
1013
1014 2018-09-10 Xavier Roirand <roirand@adacore.com>
1015
1016 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1017 declaration.
1018 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1019 * ada-varobj.c (ada_varobj_get_number_of_children,
1020 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1021
1022 2018-09-10 Xavier Roirand <roirand@adacore.com>
1023
1024 * ada-valprint.c (ada_value_print): Use type instead of
1025 enclosing type.
1026
1027 2018-09-10 Xavier Roirand <roirand@adacore.com>
1028
1029 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1030 an array of access to unconstrained array.
1031
1032 2018-09-10 Xavier Roirand <roirand@adacore.com>
1033
1034 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1035 (ada_check_typedef): Use it.
1036
1037 2018-09-10 Xavier Roirand <roirand@adacore.com>
1038
1039 * ada-varobj.c (ada_varobj_describe_struct_child)
1040 (ada_varobj_describe_child): Handle union case like struct one.
1041
1042 2018-09-10 Tom Tromey <tom@tromey.com>
1043
1044 PR python/18380:
1045 * python/python.c (_initialize_python): Make example in "python"
1046 help work in Python 3.
1047
1048 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1049
1050 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1051 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1052 $(EXEEXT) to the script, as it is not a program.
1053
1054 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1055
1056 * python/py-prettyprint.c (pretty_print_one_value): Return
1057 gdbpy_ref<>.
1058 (print_string_repr): Adjust.
1059 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1060 * python/python-internal.h (apply_varobj_pretty_printer): Return
1061 gdbpy_ref<>.
1062 * varobj.c (varobj_value_get_print_value): Adjust.
1063
1064 2018-09-08 Tom Tromey <tom@tromey.com>
1065
1066 PR python/16047:
1067 * python/py-prettyprint.c (pretty_print_one_value): Check for
1068 to_string method.
1069
1070 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1071
1072 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1073 replace_operator_with_call.
1074
1075 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1076
1077 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1078
1079 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1080
1081 * ada-typeprint.c (print_range): Print the bounds using TYPE
1082 rather than its TYPE_TARGET_TYPE.
1083
1084 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1085
1086 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1087 call to ada_to_fixed_value_create.
1088
1089 2018-09-08 Jerome Guitton <guitton@adacore.com>
1090
1091 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1092
1093 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1094
1095 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1096 by calls to error.
1097
1098 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1099
1100 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1101 Move update of loop variable "fi".
1102
1103 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1104
1105 * ada-lang.c (value_assign_to_component): In the case of
1106 big-endian targets, extract the bits of the given VAL
1107 using an src_offset of zero if container is not a scalar.
1108
1109 2018-09-06 Simon Ser <contact@emersion.fr>
1110
1111 PR gdb/23105
1112 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1113 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1114 * fbsd-tdep.c (fbsd_make_note_desc): New.
1115 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1116 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1117 * target.h (enum target_object) Add FreeBSD-specific
1118 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1119
1120 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1121
1122 * compile/compile-c.h (generate_c_for_variable_locations):
1123 Change reference to pointer.
1124 * compile/compile-c-support.c (compile_program) <compute>:
1125 Likewise.
1126 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1127 (generate_c_for_for_one_variable): Likewise
1128 (generate_c_for_variable_locations): Likewise
1129 * compile/compile-c-types.c (compile_c_instance::convert_type):
1130 Likewise
1131 * compile/compile-cplus-symbols.c (convert_one_symbol):
1132 std::move the scope passed to enter_scope.
1133 * compile/compile-cplus-types.c
1134 (compile_cplus_instance::enter_scope): Make parameter
1135 rvalue-reference.
1136 (compile_cplus_instance::new_scope): Change reference to
1137 pointer.
1138 (compile_cplus_instance::convert_type): Likewise
1139 (compile_cplus_convert_typedef): std::move the scope passed to
1140 enter_scope.
1141 (compile_cplus_convert_struct_or_union): Likewise.
1142 (compile_cplus_convert_enum): Likewise.
1143 (compile_cplus_convert_namespace): Likewise.
1144 * compile/compile-cplus.h (compile_cplus_instance)
1145 <enter_scope>: Make parameter rvalue-reference.
1146 * compile/compile-internal.h (compile_instance)
1147 <get_cached_type>: Likewise
1148 * compile/compile-loc2c.c (push): Likewise
1149 (pushf): Likewise
1150 (unary): Likewise
1151 (binary): Likewise
1152 (print_label): Likewise
1153 (pushf_register_address): Likewise
1154 (pushf_register): Likewise
1155 (do_compile_dwarf_expr_to_c): Likewise
1156 (compile_dwarf_expr_to_c): Likewise
1157 (compile_dwarf_bounds_to_c): Likewise
1158 * compile/compile.c (compile_instance::get_cached_type):
1159 Likewise
1160 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1161 (compile_dwarf_bounds_to_c): Likewise
1162 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1163 (dwarf2_compile_property_to_c): Likewise
1164 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1165 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1166 Likewise
1167
1168 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1169
1170 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1171 * tui/tui-data.c (init_content_element): Don't initialize it.
1172
1173 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1174
1175 * tui/tui-data.h (struct tui_win_info)
1176 <detail::opaque>: Remove.
1177 * tui/tui-data.c (init_win_info): Remove assignment.
1178
1179 2018-09-05 Tom Tromey <tom@tromey.com>
1180
1181 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1182 -Wformat-nonliteral.
1183 * target-float.c (host_float_ops<T>::to_string)
1184 (host_float_ops<T>::from_string): Use
1185 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1186 * configure: Rebuild.
1187
1188 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1189
1190 * printcmd.c (printf_c_string): Use
1191 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1192 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1193
1194 2018-09-05 Tom Tromey <tom@tromey.com>
1195
1196 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1197
1198 2018-09-05 Tom de Vries <tdevries@suse.de>
1199
1200 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1201 with resolve_abstract_p == true.
1202 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1203 defaulting to false. Propagate resolve_abstract_p to
1204 dwarf2_fetch_die_loc_sect_off.
1205 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1206 parameter, defaulting to false.
1207 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1208 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1209 parameter.
1210 * dwarf2read.h (struct die_info): Forward-declare.
1211 (die_info_ptr): New typedef.
1212 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1213
1214 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1215
1216 GDB 8.2 released.
1217
1218 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1219 Pedro Alves <palves@redhat.com>
1220
1221 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1222 "aclocal-m4-deps.mk". Include file here.
1223 $(srcdir)/aclocal.m4: Add "configure.ac".
1224 * gnulib/aclocal-m4-deps.mk: New file.
1225 * gnulib/update-gnulib.sh: Automatically update
1226 "aclocal-m4-deps.mk".
1227
1228 2018-09-04 Tom Tromey <tom@tromey.com>
1229
1230 * configure: Rebuild.
1231 * configure.ac: Remove multi-ice code.
1232
1233 2018-09-04 Tom Tromey <tom@tromey.com>
1234
1235 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1236 (ada-exp.o): Update.
1237
1238 2018-09-04 Tom Tromey <tom@tromey.com>
1239
1240 * Makefile.in (printcmd.o, target-float.o): Remove.
1241 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1242
1243 2018-09-04 Tom Tromey <tom@tromey.com>
1244
1245 * gnulib/Makefile.in: Remove obsolete comment.
1246 * Makefile.in: Remove obsolete comment.
1247
1248 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1249
1250 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1251 line with '+'.
1252
1253 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1254
1255 * riscv-tdep.c: Add 'prologue-value.h' include.
1256 (struct riscv_unwind_cache): New struct.
1257 (riscv_debug_unwinder): New global.
1258 (riscv_scan_prologue): Update arguments, capture register details
1259 from prologue scan.
1260 (riscv_skip_prologue): Reformat arguments line, move end of
1261 prologue calculation into riscv_scan_prologue.
1262 (riscv_frame_cache): Update return type, create
1263 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1264 details.
1265 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1266 (riscv_frame_prev_register): Use the trad_frame within the
1267 riscv_unwind_cache.
1268 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1269 flag.
1270
1271 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * trad-frame.h (trad_frame_set_realreg): Declare.
1274 (trad_frame_set_addr): Declare.
1275 * trad-frame.c (trad_frame_set_realreg): Define new function.
1276 (trad_frame_set_addr): Define new function.
1277 (trad_frame_set_reg_realreg): Use new function.
1278 (trad_frame_set_reg_addr): Use new function.
1279
1280 2018-09-01 Keith Seitz <keiths@redhat.com>
1281
1282 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1283 pulongest instead of "%lld".
1284 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1285 ATTRIBUTE_UNUSED.
1286
1287 2018-08-31 Tom Tromey <tom@tromey.com>
1288
1289 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1290 variant part type.
1291
1292 2018-08-31 Pedro Alves <palves@redhat.com>
1293
1294 * gdbarch.h: Regenerate.
1295
1296 2018-08-31 Pedro Alves <palves@redhat.com>
1297
1298 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1299 * target.h (Hardware watchpoint interfaces): Describe
1300 continuable/steppable/non-steppable watchpoints.
1301 * gdbarch.h, gdbarch.c: Regenerate.
1302
1303 2018-08-31 Pedro Alves <palves@redhat.com>
1304
1305 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1306 Delete.
1307 * s390-linux-nat.c
1308 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1309 * target.h (target_ops::have_continuable_watchpoint): Delete.
1310 (target_have_continuable_watchpoint): Delete.
1311 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1312 * target-delegates.c: Regenerate.
1313
1314 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1315
1316 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1317 the files present in "gnulib/import/m4/".
1318
1319 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1322 c.sw, c.swsp, and c.sdsp.
1323
1324 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1325
1326 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1327 (riscv_read_misa_reg): Don't cache value read into inferior data.
1328 (riscv_new_inferior_data): Delete.
1329 (riscv_inferior_data_cleanup): Delete.
1330 (riscv_inferior_data): Delete.
1331 (riscv_invalidate_inferior_data): Delete.
1332 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1333
1334 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1335
1336 * compile/compile-cplus-types.c
1337 (compile_cplus_instance::leave_scope): Take the address of scope
1338 object.
1339 (compile_cplus_instance::convert_qualified_base): Compare quals
1340 to 0.
1341
1342 2018-08-30 Keith Seitz <keiths@redhat.com>
1343
1344 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1345 Use "%s" and host_address_to_string instead of "%p" in printf.
1346
1347 2018-08-29 Keith Seitz <keiths@redhat.com>
1348
1349 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1350 and compile-cplus-types.c.
1351 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1352 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1353 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1354 Declare.
1355 * compile/compile-c-support.c: Include compile-cplus.h.
1356 (load_libcompile): Templatize.
1357 (get_compile_context): "New" function.
1358 (c_get_compile_context): Use get_compile_context.
1359 (cplus_get_compile_context): New function.
1360 (cplus_push_user_expression, cplus_pop_user_expression)
1361 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1362 (cplus_compute_program): Define new structs/functions.
1363 * compile/compile-cplus-symmbols.c: New file.
1364 * compile/compile-cplus-types.c: New file.
1365 * compile/compile-cplus.h: New file.
1366 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1367 Declare.
1368 * compile/compile-object-load.c (get_out_value_type): Use
1369 strncmp_iw when comparing symbol names.
1370 (compile_object_load): Add mst_bss and mst_data.
1371 * compile/compile.c (_initialize_compile): Remove
1372 -Wno-implicit-function-declaration from `compile_args'.
1373 * compile/gcc-cp-plugin.h: New file.
1374 * NEWS: Mention C++ compile support and new debug options.
1375
1376 2018-08-29 Keith Seitz <keiths@redhat.com>
1377
1378 * linespec.c (collect_info::add_symbol): Make virtual.
1379 (struct symbol_searcher_collect_info): New struct.
1380 (symbol_searcher::find_all_symbols): New method.
1381 * symtab.h (class symbol_searcher): New class.
1382
1383 2018-08-29 Keith Seitz <keiths@redhat.com>
1384
1385 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1386 Change to vector of block_symbol. Update all users.
1387 (struct collect_info) <symbols>: Likewise.
1388 (collect_info::add_symbol): Take block_symbol as argument.
1389 Update all callers.
1390 (decode_compound_collector) <m_symbols>: Change type to vector
1391 of block_symbol. Update all users.
1392 (decode_compound_collector::operator ()): Change parameter type
1393 to block_symbol.
1394 (find_method, find_function_symbols, find_linespec_symbols)
1395 (find_label_symbols_in_block, find_label_symbols): Change symbol
1396 vectors to block_symbol vectors.
1397 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1398 block_symbol.
1399
1400 2018-08-29 Keith Seitz <keiths@redhat.com>
1401
1402 * linespec.c (symbolp): Remove typedef and VEC definitions.
1403 (bound_minimal_symbol_d): Likewise.
1404
1405 2018-08-29 Keith Seitz <keiths@redhat.com>
1406
1407 * linespec.c (decode_compound_collector::decode_compound_collector):
1408 Remove initialization for `m_symtabs'.
1409 (decode_compound_collector::release_symbols): Change return type
1410 to std::vector. Update all callers.
1411 (class decode_compound_collector) <m_symbols>: Change type to
1412 std::vector.
1413 (lookup_prefix_sym): Change return type to std::vector. Update all
1414 callers.
1415 (compare_symbols): Remove.
1416 (std_compare_symbols): Rename to `compare_symbols'.
1417 (find_method): Change `sym_classes' parameter to std::vector.
1418 Update all callers. Use std::sort to sort sym_classes.
1419 (find_linespec_symbols): Remove cleanup.
1420
1421 2018-08-29 Keith Seitz <keiths@redhat.com>
1422
1423 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1424 std::vector. Update all users.
1425 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1426 (struct collect_info) <minimal_symbols>: Likewise.
1427 (compare_msymbols): Return bool. Change parameters to const
1428 bound_minimal_symbol references.
1429 (find_method, find_function_symbols, find_linespec_symbols): Change
1430 `minsyms' parameter to std::vector. Update all callers.
1431
1432 2018-08-29 Keith Seitz <keiths@redhat.com>
1433
1434 * linespec.c (struct linespec) <label_symbols>: Change type to
1435 std::vector. Update all users.
1436 (find_label_symbols_in_block): Change `result' parameter to
1437 std::vector. Update all callers.
1438 (find_label_symbols): Return std::vector. Update all callers.
1439
1440 2018-08-29 Keith Seitz <keiths@redhat.com>
1441
1442 * linespec.c (struct linespec) <function_symbols>: Change type to
1443 std::vector. Update all users.
1444 (struct collect_info) <function_symbols>: Likewise.
1445 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1446 (std_compare_symbols): New function.
1447 (find_method, find_function_symbols, find_linespec_symbols)
1448 (find_label_symbols_in_block): Change `symbols' parameter to
1449 std::vector. Update all callers.
1450 (find_label_symbols): Likewise for `function_symbols' and
1451 `label_funcs_ret'.
1452
1453 2018-08-29 Keith Seitz <keiths@redhat.com>
1454
1455 * linespec.c (symtab_vector_up): Define.
1456 (struct linespec) <file_symtabs>: Change type to std::vector *.
1457 Update all uses.
1458 (struct collect_info) <file_symtabs>: Likewise.
1459 (collect_symtabs_from_filename): Return symtab_vector_up.
1460 Update all callers.
1461 (decode_objc): Remove cleanup.
1462 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1463 (symtab_collector::release_symtabs): Return symtab_vector_up.
1464 Update all callers.
1465 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1466 Update all users.
1467 (collect_symtabs_from_filename, symtabs_from_filename): Return
1468 symtab_vector_up. Update all callers.
1469
1470 2018-08-29 Tom Tromey <tom@tromey.com>
1471
1472 * csky-tdep.c (csky_analyze_prologue): Use
1473 core_addr_to_string_nz.
1474
1475 2018-08-29 Tom Tromey <tom@tromey.com>
1476
1477 * windows-nat.c (struct xlate_exception) <them>: Change type to
1478 DWORD.
1479 (xlate): Fix formatting. Remove last entry.
1480 (struct xlate_exception, xlate): Comment out.
1481 (windows_nat_target::resume): Use ranged for.
1482
1483 2018-08-29 Jim Wilson <jimw@sifive.com>
1484
1485 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1486 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1487 of NT_PRFPREG.
1488 (riscv_linux_nat_target::store_registers): Likewise.
1489
1490 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1491
1492 PR gdb/23555
1493 PR gdb/23558
1494 * gnulib/aclocal.m4: Regenerate.
1495 * gnulib/config.in: Regenerate.
1496 * gnulib/configure: Regenerate.
1497 * gnulib/import/Makefile.am: Update.
1498 * gnulib/import/Makefile.in: Update.
1499 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1500 * gnulib/import/_Noreturn.h: ... this.
1501 * gnulib/import/alloca.in.h: Update.
1502 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1503 * gnulib/import/arg-nonnull.h: ... this.
1504 * gnulib/import/assure.h: Update.
1505 * gnulib/import/at-func.c: Update.
1506 * gnulib/import/basename-lgpl.c: Update.
1507 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1508 * gnulib/import/c++defs.h: ... this.
1509 * gnulib/import/canonicalize-lgpl.c: Update.
1510 * gnulib/import/cdefs.h: Update.
1511 * gnulib/import/chdir-long.c: Update.
1512 * gnulib/import/chdir-long.h: Update.
1513 * gnulib/import/cloexec.c: Update.
1514 * gnulib/import/cloexec.h: Update.
1515 * gnulib/import/close.c: Update.
1516 * gnulib/import/closedir.c: Update.
1517 * gnulib/import/config.charset: Update.
1518 * gnulib/import/dirent-private.h: Update.
1519 * gnulib/import/dirent.in.h: Update.
1520 * gnulib/import/dirfd.c: Update.
1521 * gnulib/import/dirname-lgpl.c: Update.
1522 * gnulib/import/dirname.h: Update.
1523 * gnulib/import/dosname.h: Update.
1524 * gnulib/import/dup-safer-flag.c: Update.
1525 * gnulib/import/dup-safer.c: Update.
1526 * gnulib/import/dup.c: Update.
1527 * gnulib/import/dup2.c: Update.
1528 * gnulib/import/errno.in.h: Update.
1529 * gnulib/import/error.c: Update.
1530 * gnulib/import/error.h: Update.
1531 * gnulib/import/exitfail.c: Update.
1532 * gnulib/import/exitfail.h: Update.
1533 * gnulib/import/extra/update-copyright: Update.
1534 * gnulib/import/fchdir.c: Update.
1535 * gnulib/import/fcntl.c: Update.
1536 * gnulib/import/fcntl.in.h: Update.
1537 * gnulib/import/fd-hook.c: Update.
1538 * gnulib/import/fd-hook.h: Update.
1539 * gnulib/import/fd-safer-flag.c: Update.
1540 * gnulib/import/fd-safer.c: Update.
1541 * gnulib/import/fdopendir.c: Update.
1542 * gnulib/import/filename.h: Update.
1543 * gnulib/import/filenamecat-lgpl.c: Update.
1544 * gnulib/import/filenamecat.h: Update.
1545 * gnulib/import/flexmember.h: Update.
1546 * gnulib/import/float+.h: Update.
1547 * gnulib/import/float.c: Update.
1548 * gnulib/import/float.in.h: Update.
1549 * gnulib/import/fnmatch.c: Update.
1550 * gnulib/import/fnmatch.in.h: Update.
1551 * gnulib/import/fnmatch_loop.c: Update.
1552 * gnulib/import/fpucw.h: Update.
1553 * gnulib/import/frexp.c: Update.
1554 * gnulib/import/frexpl.c: Update.
1555 * gnulib/import/fstat.c: Update.
1556 * gnulib/import/fstatat.c: Update.
1557 * gnulib/import/getcwd-lgpl.c: Update.
1558 * gnulib/import/getcwd.c: Update.
1559 * gnulib/import/getdtablesize.c: Update.
1560 * gnulib/import/getlogin_r.c: Update.
1561 * gnulib/import/getprogname.c: Update.
1562 * gnulib/import/getprogname.h: Update.
1563 * gnulib/import/gettext.h: Update.
1564 * gnulib/import/gettimeofday.c: Update.
1565 * gnulib/import/glob-libc.h: Update.
1566 * gnulib/import/glob.c: Update.
1567 * gnulib/import/glob.in.h: Update.
1568 * gnulib/import/glob_internal.h: Update.
1569 * gnulib/import/glob_pattern_p.c: Update.
1570 * gnulib/import/globfree.c: Update.
1571 * gnulib/import/hard-locale.c: Update.
1572 * gnulib/import/hard-locale.h: Update.
1573 * gnulib/import/intprops.h: Update.
1574 * gnulib/import/inttypes.in.h: Update.
1575 * gnulib/import/isnan.c: Update.
1576 * gnulib/import/isnand-nolibm.h: Update.
1577 * gnulib/import/isnand.c: Update.
1578 * gnulib/import/isnanl-nolibm.h: Update.
1579 * gnulib/import/isnanl.c: Update.
1580 * gnulib/import/itold.c: Update.
1581 * gnulib/import/libc-config.h: Update.
1582 * gnulib/import/limits.in.h: Update.
1583 * gnulib/import/localcharset.c: Update.
1584 * gnulib/import/localcharset.h: Update.
1585 * gnulib/import/localtime-buffer.c: Update.
1586 * gnulib/import/localtime-buffer.h: Update.
1587 * gnulib/import/lstat.c: Update.
1588 * gnulib/import/m4/00gnulib.m4: Update.
1589 * gnulib/import/m4/__inline.m4: Update.
1590 * gnulib/import/m4/absolute-header.m4: Update.
1591 * gnulib/import/m4/alloca.m4: Update.
1592 * gnulib/import/m4/builtin-expect.m4: Update.
1593 * gnulib/import/m4/canonicalize.m4: Update.
1594 * gnulib/import/m4/chdir-long.m4: Update.
1595 * gnulib/import/m4/close.m4: Update.
1596 * gnulib/import/m4/closedir.m4: Update.
1597 * gnulib/import/m4/configmake.m4: Update.
1598 * gnulib/import/m4/d-ino.m4: Update.
1599 * gnulib/import/m4/d-type.m4: Update.
1600 * gnulib/import/m4/dirent_h.m4: Update.
1601 * gnulib/import/m4/dirfd.m4: Update.
1602 * gnulib/import/m4/dirname.m4: Update.
1603 * gnulib/import/m4/double-slash-root.m4: Update.
1604 * gnulib/import/m4/dup.m4: Update.
1605 * gnulib/import/m4/dup2.m4: Update.
1606 * gnulib/import/m4/eealloc.m4: Update.
1607 * gnulib/import/m4/environ.m4: Update.
1608 * gnulib/import/m4/errno_h.m4: Update.
1609 * gnulib/import/m4/error.m4: Update.
1610 * gnulib/import/m4/exponentd.m4: Update.
1611 * gnulib/import/m4/exponentl.m4: Update.
1612 * gnulib/import/m4/extensions.m4: Update.
1613 * gnulib/import/m4/extern-inline.m4: Update.
1614 * gnulib/import/m4/fchdir.m4: Update.
1615 * gnulib/import/m4/fcntl-o.m4: Update.
1616 * gnulib/import/m4/fcntl.m4: Update.
1617 * gnulib/import/m4/fcntl_h.m4: Update.
1618 * gnulib/import/m4/fdopendir.m4: Update.
1619 * gnulib/import/m4/filenamecat.m4: Update.
1620 * gnulib/import/m4/flexmember.m4: Update.
1621 * gnulib/import/m4/float_h.m4: Update.
1622 * gnulib/import/m4/fnmatch.m4: Update.
1623 * gnulib/import/m4/fnmatch_h.m4: Update.
1624 * gnulib/import/m4/fpieee.m4: Update.
1625 * gnulib/import/m4/frexp.m4: Update.
1626 * gnulib/import/m4/frexpl.m4: Update.
1627 * gnulib/import/m4/fstat.m4: Update.
1628 * gnulib/import/m4/fstatat.m4: Update.
1629 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1630 * gnulib/import/m4/getcwd-path-max.m4: Update.
1631 * gnulib/import/m4/getcwd.m4: Update.
1632 * gnulib/import/m4/getdtablesize.m4: Update.
1633 * gnulib/import/m4/getlogin.m4: Update.
1634 * gnulib/import/m4/getlogin_r.m4: Update.
1635 * gnulib/import/m4/getpagesize.m4: Update.
1636 * gnulib/import/m4/getprogname.m4: Update.
1637 * gnulib/import/m4/gettimeofday.m4: Update.
1638 * gnulib/import/m4/glibc21.m4: Update.
1639 * gnulib/import/m4/glob.m4: Update.
1640 * gnulib/import/m4/glob_h.m4: Update.
1641 * gnulib/import/m4/gnulib-cache.m4: Update.
1642 * gnulib/import/m4/gnulib-common.m4: Update.
1643 * gnulib/import/m4/gnulib-comp.m4: Update.
1644 * gnulib/import/m4/gnulib-tool.m4: Update.
1645 * gnulib/import/m4/hard-locale.m4: Update.
1646 * gnulib/import/m4/include_next.m4: Update.
1647 * gnulib/import/m4/inttypes-pri.m4: Update.
1648 * gnulib/import/m4/inttypes.m4: Update.
1649 * gnulib/import/m4/isnand.m4: Update.
1650 * gnulib/import/m4/isnanl.m4: Update.
1651 * gnulib/import/m4/largefile.m4: Update.
1652 * gnulib/import/m4/limits-h.m4: Update.
1653 * gnulib/import/m4/localcharset.m4: Update.
1654 * gnulib/import/m4/locale-fr.m4: Update.
1655 * gnulib/import/m4/locale-ja.m4: Update.
1656 * gnulib/import/m4/locale-zh.m4: Update.
1657 * gnulib/import/m4/localtime-buffer.m4: Update.
1658 * gnulib/import/m4/longlong.m4: Update.
1659 * gnulib/import/m4/lstat.m4: Update.
1660 * gnulib/import/m4/malloc.m4: Update.
1661 * gnulib/import/m4/malloca.m4: Update.
1662 * gnulib/import/m4/math_h.m4: Update.
1663 * gnulib/import/m4/mbrtowc.m4: Update.
1664 * gnulib/import/m4/mbsinit.m4: Update.
1665 * gnulib/import/m4/mbsrtowcs.m4: Update.
1666 * gnulib/import/m4/mbstate_t.m4: Update.
1667 * gnulib/import/m4/memchr.m4: Update.
1668 * gnulib/import/m4/memmem.m4: Update.
1669 * gnulib/import/m4/mempcpy.m4: Update.
1670 * gnulib/import/m4/memrchr.m4: Update.
1671 * gnulib/import/m4/mkdir.m4: Update.
1672 * gnulib/import/m4/mkstemp.m4: Update.
1673 * gnulib/import/m4/mmap-anon.m4: Update.
1674 * gnulib/import/m4/mode_t.m4: Update.
1675 * gnulib/import/m4/msvc-inval.m4: Update.
1676 * gnulib/import/m4/msvc-nothrow.m4: Update.
1677 * gnulib/import/m4/multiarch.m4: Update.
1678 * gnulib/import/m4/nocrash.m4: Update.
1679 * gnulib/import/m4/off_t.m4: Update.
1680 * gnulib/import/m4/onceonly.m4: Update.
1681 * gnulib/import/m4/open-cloexec.m4: Update.
1682 * gnulib/import/m4/open.m4: Update.
1683 * gnulib/import/m4/openat.m4: Update.
1684 * gnulib/import/m4/opendir.m4: Update.
1685 * gnulib/import/m4/pathmax.m4: Update.
1686 * gnulib/import/m4/rawmemchr.m4: Update.
1687 * gnulib/import/m4/readdir.m4: Update.
1688 * gnulib/import/m4/readlink.m4: Update.
1689 * gnulib/import/m4/realloc.m4: Update.
1690 * gnulib/import/m4/rename.m4: Update.
1691 * gnulib/import/m4/rewinddir.m4: Update.
1692 * gnulib/import/m4/rmdir.m4: Update.
1693 * gnulib/import/m4/save-cwd.m4: Update.
1694 * gnulib/import/m4/secure_getenv.m4: Update.
1695 * gnulib/import/m4/setenv.m4: Update.
1696 * gnulib/import/m4/signal_h.m4: Update.
1697 * gnulib/import/m4/ssize_t.m4: Update.
1698 * gnulib/import/m4/stat-time.m4: Update.
1699 * gnulib/import/m4/stat.m4: Update.
1700 * gnulib/import/m4/std-gnu11.m4: Update.
1701 * gnulib/import/m4/stdbool.m4: Update.
1702 * gnulib/import/m4/stddef_h.m4: Update.
1703 * gnulib/import/m4/stdint.m4: Update.
1704 * gnulib/import/m4/stdio_h.m4: Update.
1705 * gnulib/import/m4/stdlib_h.m4: Update.
1706 * gnulib/import/m4/strchrnul.m4: Update.
1707 * gnulib/import/m4/strdup.m4: Update.
1708 * gnulib/import/m4/strerror.m4: Update.
1709 * gnulib/import/m4/string_h.m4: Update.
1710 * gnulib/import/m4/strstr.m4: Update.
1711 * gnulib/import/m4/strtok_r.m4: Update.
1712 * gnulib/import/m4/sys_socket_h.m4: Update.
1713 * gnulib/import/m4/sys_stat_h.m4: Update.
1714 * gnulib/import/m4/sys_time_h.m4: Update.
1715 * gnulib/import/m4/sys_types_h.m4: Update.
1716 * gnulib/import/m4/tempname.m4: Update.
1717 * gnulib/import/m4/time_h.m4: Update.
1718 * gnulib/import/m4/unistd-safer.m4: Update.
1719 * gnulib/import/m4/unistd_h.m4: Update.
1720 * gnulib/import/m4/warn-on-use.m4: Update.
1721 * gnulib/import/m4/wchar_h.m4: Update.
1722 * gnulib/import/m4/wchar_t.m4: Update.
1723 * gnulib/import/m4/wctype_h.m4: Update.
1724 * gnulib/import/m4/wint_t.m4: Update.
1725 * gnulib/import/malloc.c: Update.
1726 * gnulib/import/malloc/scratch_buffer.h: Update.
1727 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1728 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1729 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1730 * gnulib/import/malloca.c: Update.
1731 * gnulib/import/malloca.h: Update.
1732 * gnulib/import/malloca.valgrind: Update.
1733 * gnulib/import/math.in.h: Update.
1734 * gnulib/import/mbrtowc.c: Update.
1735 * gnulib/import/mbsinit.c: Update.
1736 * gnulib/import/mbsrtowcs-impl.h: Update.
1737 * gnulib/import/mbsrtowcs-state.c: Update.
1738 * gnulib/import/mbsrtowcs.c: Update.
1739 * gnulib/import/memchr.c: Update.
1740 * gnulib/import/memmem.c: Update.
1741 * gnulib/import/mempcpy.c: Update.
1742 * gnulib/import/memrchr.c: Update.
1743 * gnulib/import/mkdir.c: Update.
1744 * gnulib/import/mkstemp.c: Update.
1745 * gnulib/import/msvc-inval.c: Update.
1746 * gnulib/import/msvc-inval.h: Update.
1747 * gnulib/import/msvc-nothrow.c: Update.
1748 * gnulib/import/msvc-nothrow.h: Update.
1749 * gnulib/import/open.c: Update.
1750 * gnulib/import/openat-die.c: Update.
1751 * gnulib/import/openat-priv.h: Update.
1752 * gnulib/import/openat-proc.c: Update.
1753 * gnulib/import/openat.c: Update.
1754 * gnulib/import/openat.h: Update.
1755 * gnulib/import/opendir.c: Update.
1756 * gnulib/import/pathmax.h: Update.
1757 * gnulib/import/pipe-safer.c: Update.
1758 * gnulib/import/rawmemchr.c: Update.
1759 * gnulib/import/readdir.c: Update.
1760 * gnulib/import/readlink.c: Update.
1761 * gnulib/import/realloc.c: Update.
1762 * gnulib/import/ref-add.sin: Update.
1763 * gnulib/import/ref-del.sin: Update.
1764 * gnulib/import/rename.c: Update.
1765 * gnulib/import/rewinddir.c: Update.
1766 * gnulib/import/rmdir.c: Update.
1767 * gnulib/import/same-inode.h: Update.
1768 * gnulib/import/save-cwd.c: Update.
1769 * gnulib/import/save-cwd.h: Update.
1770 * gnulib/import/scratch_buffer.h: Update.
1771 * gnulib/import/secure_getenv.c: Update.
1772 * gnulib/import/setenv.c: Update.
1773 * gnulib/import/signal.in.h: Update.
1774 * gnulib/import/stat-time.c: Update.
1775 * gnulib/import/stat-time.h: Update.
1776 * gnulib/import/stat-w32.c: Update.
1777 * gnulib/import/stat-w32.h: Update.
1778 * gnulib/import/stat.c: Update.
1779 * gnulib/import/stdbool.in.h: Update.
1780 * gnulib/import/stddef.in.h: Update.
1781 * gnulib/import/stdint.in.h: Update.
1782 * gnulib/import/stdio.in.h: Update.
1783 * gnulib/import/stdlib.in.h: Update.
1784 * gnulib/import/str-two-way.h: Update.
1785 * gnulib/import/strchrnul.c: Update.
1786 * gnulib/import/strdup.c: Update.
1787 * gnulib/import/streq.h: Update.
1788 * gnulib/import/strerror-override.c: Update.
1789 * gnulib/import/strerror-override.h: Update.
1790 * gnulib/import/strerror.c: Update.
1791 * gnulib/import/string.in.h: Update.
1792 * gnulib/import/stripslash.c: Update.
1793 * gnulib/import/strnlen1.c: Update.
1794 * gnulib/import/strnlen1.h: Update.
1795 * gnulib/import/strstr.c: Update.
1796 * gnulib/import/strtok_r.c: Update.
1797 * gnulib/import/sys_stat.in.h: Update.
1798 * gnulib/import/sys_time.in.h: Update.
1799 * gnulib/import/sys_types.in.h: Update.
1800 * gnulib/import/tempname.c: Update.
1801 * gnulib/import/tempname.h: Update.
1802 * gnulib/import/time.in.h: Update.
1803 * gnulib/import/unistd--.h: Update.
1804 * gnulib/import/unistd-safer.h: Update.
1805 * gnulib/import/unistd.in.h: Update.
1806 * gnulib/import/unsetenv.c: Update.
1807 * gnulib/import/verify.h: Update.
1808 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1809 * gnulib/import/wchar.in.h: Update.
1810 * gnulib/import/wctype.in.h: Update.
1811 * gnulib/import/xalloc-oversized.h: Update.
1812 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1813 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1814
1815 2018-08-16 Gary Benson <gbenson@redhat.com>
1816
1817 PR gdb/13000:
1818 * gdb/main.c (captured_main_1): Exit with nonzero status
1819 in batch mode if the last command to be executed failed.
1820 * NEWS: Mention the above.
1821
1822 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1823
1824 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1825 end of warning message.
1826
1827 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1828
1829 PR gdb/22943:
1830 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1831 (aarch64_extract_return_value): Use
1832 aapcs_is_vfp_call_or_return_candidate.
1833 (aarch64_return_in_memory): Likewise.
1834 (aarch64_store_return_value): Likewise.
1835
1836 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1837
1838 * aarch64-tdep.c
1839 (aapcs_is_vfp_call_or_return_candidate): Make static
1840 (pass_in_v_or_stack): Remove function.
1841 (pass_in_v_vfp_candidate): New function.
1842 (aarch64_push_dummy_call): Check for float register candidates.
1843
1844 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1845
1846 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1847 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1848 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1849
1850 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1851
1852 PR build/23399
1853 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1854 (struct ipa_sym_addresses): Rename to...
1855 (struct ipa_sym_addresses_common): ... this.
1856 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1857
1858 2018-08-28 Tom Tromey <tom@tromey.com>
1859
1860 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1861 (token_fifo): Now a std::vector.
1862 (yylex, c_parse): Update.
1863 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1864 (token_fifo): Now a std::vector.
1865 (yylex, d_parse): Update.
1866 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1867 (token_fifo): Now a std::vector.
1868 (yylex, go_parse): Update.
1869
1870 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1871
1872 * parser-defs.h (struct type_stack) <elements>: Change type to
1873 std::vector<union type_stack_elt>.
1874 <depth, size>: Remove.
1875 * parse.c (parse_exp_in_context_1): Adjust.
1876 (type_stack_reserve): Remove.
1877 (check_type_stack_depth): Remove.
1878 (insert_into_type_stack): Adjust to std::vector.
1879 (insert_type): Likewise.
1880 (push_type): Likewise.
1881 (push_type_int): Likewise.
1882 (insert_type_address_space): Likewise.
1883 (pop_type): Likewise.
1884 (pop_type_int): Likewise.
1885 (pop_typelist): Likewise.
1886 (pop_type_stack): Likewise.
1887 (append_type_stack): Likewise.
1888 (push_type_stack): Likewise.
1889 (get_type_stack): Likewise.
1890 (type_stack_cleanup): Likewise.
1891 (push_typelist): Likewise.
1892 (follow_types): Likewise.
1893 (_initialize_parse): Likewise.
1894
1895 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1896
1897 * NEWS: Mention csky target.
1898
1899 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1900 Hafiz Abid Qadeer <abidh@codesourcery.com>
1901 Don Breazeal <donb@codesourcery.com>
1902
1903 * csky-linux-tdep.c: New file.
1904 * csky-tdep.c: Likewise.
1905 * csky-tdep.h: Likewise.
1906 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1907 csky-tdep.o.
1908 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1909 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1910 * configure.tgt: Add csky support.
1911
1912 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1913
1914 * python/py-framefilter.c (py_print_frame): Print frame architecture
1915 when printing on an MI output.
1916
1917 2018-08-27 Tom Tromey <tom@tromey.com>
1918
1919 PR build/23087:
1920 * configure: Rebuild.
1921 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1922
1923 2018-08-27 Tom Tromey <tom@tromey.com>
1924
1925 * aarch64-linux-tdep.c
1926 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1927 casts to int.
1928
1929 2018-08-27 Tom Tromey <tom@tromey.com>
1930
1931 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1932 unsigned.
1933 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1934 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1935 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1936 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1937 unsigned.
1938
1939 2018-08-27 Tom Tromey <tom@tromey.com>
1940
1941 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1942 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1943
1944 2018-08-27 Tom Tromey <tom@tromey.com>
1945
1946 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1947 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1948 ULONGEST_MAX.
1949 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1950 ULONGEST_MAX.
1951 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1952 ULONGEST_MAX.
1953 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1954 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1955 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1956 ULONGEST_MAX.
1957 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1958 (ppc64_linux_sigaction_tramp_frame)
1959 (ppc32_linux_sighandler_tramp_frame)
1960 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1961 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1962 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1963 * mn10300-linux-tdep.c (am33_linux_sigframe)
1964 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1965 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1966 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1967 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1968 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1969 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1970 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1971 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1972 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1973 * microblaze-linux-tdep.c
1974 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1975 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1976 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1977 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1978 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1979 * common/common-types.h (ULONGEST_MAX): New define.
1980 (CORE_ADDR_MAX): Fix formatting.
1981 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1982 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1983 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1984 (arm_linux_rt_sigreturn_tramp_frame)
1985 (arm_eabi_linux_sigreturn_tramp_frame)
1986 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1987 (thumb2_eabi_linux_sigreturn_tramp_frame)
1988 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1989 (arm_linux_restart_syscall_tramp_frame)
1990 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1991 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1992 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1993 ULONGEST_MAX.
1994 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1995
1996 2018-08-27 Tom Tromey <tom@tromey.com>
1997
1998 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1999 CORE_ADDR_MAX.
2000 * mips-tdep.c (mips_deal_with_atomic_sequence)
2001 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2002 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2003 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2004 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2005 CORE_ADDR_MAX.
2006 * aarch64-tdep.c (aarch64_software_single_step): Use
2007 CORE_ADDR_MAX.
2008
2009 2018-08-27 Tom Tromey <tom@tromey.com>
2010
2011 * linespec.c (complete_linespec_component): Add cast to "char".
2012 * completer.c (completion_tracker::build_completion_result): Add
2013 cast to "char".
2014
2015 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2016
2017 * solist.h (struct solist, struct target_so_ops): Fix
2018 indentation.
2019
2020 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2021
2022 * ada-tasks.c (ada_task_info_s): Remove typedef.
2023 (DEF_VEC_O(ada_task_info_s)): Remove.
2024 (struct ada_tasks_inferior_data): Initialize fields.
2025 <task_list>: Make an std::vector.
2026 (get_ada_tasks_inferior_data): Allocate with new.
2027 (ada_get_task_number): Adjust.
2028 (get_task_number_from_id): Likewise.
2029 (valid_task_id): Likewise.
2030 (ada_get_task_info_from_ptid): Likewise.
2031 (iterate_over_live_ada_tasks): Likewise.
2032 (add_ada_task): Likewise.
2033 (read_known_tasks): Likewise.
2034 (ada_build_task_list): Likewise.
2035 (print_ada_task_info): Likewise.
2036 (info_task): Likewise.
2037 (task_command_1): Likewise.
2038
2039 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2040
2041 * ada-lang.c (add_angle_brackets): Return std::string.
2042
2043 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2044
2045 * python/py-threadevent.c (py_get_event_thread): Initialize
2046 pythread.
2047
2048 2018-08-24 Pedro Alves <palves@redhat.com>
2049
2050 * python/py-bpevent.c (create_breakpoint_event_object): Use
2051 copy-initialization.
2052 * python/py-continueevent.c (emit_continue_event): Use
2053 copy-initialization.
2054 * python/py-exitedevent.c (create_exited_event_object): Return a
2055 gdbpy_ref<>.
2056 (emit_exited_event): Use copy-initialization.
2057 * python/py-inferior.c (python_new_inferior)
2058 (python_inferior_deleted, add_thread_object): Use
2059 copy-initialization.
2060 * python/py-infevents.c (create_inferior_call_event_object)
2061 (create_register_changed_event_object)
2062 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2063 (emit_inferior_call_event, emit_memory_changed_event)
2064 (emit_register_changed_event): Use copy-initialization.
2065 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2066 Return a gdbpy_ref<>.
2067 (emit_new_objfile_event): Use copy-initialization.
2068 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2069 (emit_clear_objfiles_event): Use copy-initialization.
2070 * python/py-signalevent.c (create_signal_event_object): Use
2071 copy-initialization.
2072 * python/py-threadevent.c (create_thread_event_object): Use
2073 copy-initialization.
2074
2075 2018-08-24 Pedro Alves <palves@redhat.com>
2076 Simon Marchi <simon.marchi@ericsson.com>
2077
2078 PR gdb/23379
2079 * python/py-continueevent.c: Include "gdbthread.h".
2080 (create_continue_event_object): Add intro comment. Add 'ptid'
2081 parameter. Use it to find thread to pass to
2082 create_thread_event_object.
2083 (emit_continue_event): Pass PTID down to
2084 create_continue_event_object.
2085 * python/py-event.h (py_get_event_thread): Declare.
2086 (create_thread_event_object): Remove default from 'thread'
2087 parameter.
2088 * python/py-stopevent.c (create_stop_event_object): Use
2089 py_get_event_thread.
2090 * python/py-threadevent.c (get_event_thread): Rename to ...
2091 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2092 and use it to find the thread.
2093 (create_thread_event_object): Assert that THREAD isn't null.
2094 Don't find the event thread here.
2095
2096 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2097
2098 * block.h (blockrange, blockranges): New struct declarations.
2099 (struct block): Add new field named `ranges'.
2100 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2101 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2102 macros for accessing ranges in struct block.
2103 (make_blockranges): New declaration.
2104 block.c (make_blockranges): New function.
2105 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2106 for block.
2107 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2108 * blockframe.c (cache_pc_function_block): New static global.
2109 (clear_pc_function_cache): Clear cache_pc_function_block.
2110 (find_pc_partial_function): Move comment to symtab.h. Add
2111 support for non-contiguous blocks.
2112 * cli/cli-cmds.c (block.h): Include.
2113 (print_disassembly): Handle printing of non-contiguous blocks.
2114 (disassemble_current_function): Likewise.
2115 (disassemble_command): Likewise.
2116
2117 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2118 BLOCK_START.
2119 * blockframe.c (get_pc_function_start): Likewise.
2120 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2121 (gcc_symbol_address): Likewise.
2122 * compile/compile-object-run.c (compile_object_run): Likewise.
2123 * compile/compile.c (get_expr_block_and_pc): Likewise.
2124 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2125 (func_addr_to_tail_call_list): Likewise.
2126 * findvar.c (default_read_var_value): Likewise.
2127 * inline-frame.c (inline_frame_this_id): Likewise.
2128 (skip-inline_frames): Likewise.
2129 * infcmd.c (until_next_command): Likewise.
2130 * linespec.c (convert_linespec_to_sals): Likewise.
2131 * parse.c (parse_exp_in_context_1): Likewise.
2132 * printcmd.c (build_address_symbolic): likewise.
2133 (info_address_command): Likewise.
2134 symtab.c (find_function_start_sal): Likewise.
2135 (skip_prologue_sal): Likewise.
2136 (find_function_alias_target): Likewise.
2137 (find_gnu_ifunc): Likewise.
2138 * stack.c (find_frame_funname): Likewise.
2139 * symtab.c (fixup_symbol_section): Likewise.
2140 (find_function_start_sal): Likewise.
2141 (skip_prologue_sal): Likewsie.
2142 (find_function_alias_target): Likewise.
2143 (find_gnu_ifunc): Likewise.
2144 * tracepoint.c (info_scope_command): Likewise.
2145 * value.c (value_fn_field): Likewise.
2146
2147 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2148 in place of find_pc_partial_function.
2149 * blockframe.c (find_function_entry_range_from_pc): New function.
2150 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2151 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2152 for each range in a block.
2153
2154
2155 2018-08-23 Xavier Roirand <roirand@adacore.com>
2156
2157 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2158 incrementation.
2159
2160 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2161
2162 * solib-svr4.c (read_program_headers_from_bfd): Return
2163 gdb::optional<gdb::byte_vector>.
2164 (svr4_exec_displacement): Adjust.
2165
2166 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2167
2168 * solib-svr4.c (read_program_header): Return
2169 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2170 (find_program_interpreter): Return
2171 gdb::optional<gdb::byte_vector>.
2172 (scan_dyntag_auxv): Adjust.
2173 (enable_break): Adjust.
2174 (svr4_exec_displacement): Adjust.
2175
2176 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2177
2178 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2179 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2180
2181 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2182
2183 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2184 string_vprintf.
2185 * guile/scm-utils.c (gdbscm_printf): Likewise.
2186 * serial.c (serial_printf): Likewise.
2187 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2188
2189 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2190
2191 * stack.c (print_frame): Print frame architecture when printing on
2192 an MI output.
2193 * NEWS: Mention new "arch" attribute in frame output.
2194
2195 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2196
2197 * arch/aarch64.h (aarch64_regnum): Update comment.
2198
2199 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2200
2201 * NEWS: Add SVE to 8.2 section.
2202
2203 2018-08-21 Pedro Alves <palves@redhat.com>
2204
2205 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2206 out from gdbscm_parse_function_args.
2207 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2208 gdbscm_parse_function_args_1.
2209
2210 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2211
2212 PR gdb/17816
2213 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2214 operator.
2215
2216 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2217
2218 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2219
2220 2018-08-19 Michael Spang <spang@google.com>
2221
2222 PR gdb/11786
2223 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2224 for PT_TLS segments.
2225
2226 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2227
2228 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2229 dwarf_variable_value.
2230 * dwarf2-frame.c (class dwarf_expr_executor):
2231 Add override for dwarf_variable_value.
2232 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2233 (class symbol_needs_eval_context): Likewise.
2234 (indirect_synthetic_pointer): Add forward declaration.
2235 (sect_variable_value): New function.
2236 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2237 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2238 for DW_OP_GNU_variable_value.
2239
2240 2018-08-16 Tom Tromey <tom@tromey.com>
2241
2242 * top.c (read_command_file): Update.
2243 (command_line_input): Remove "repeat" argument.
2244 * ada-lang.c (get_selections): Update.
2245 * linespec.c (decode_line_2): Update.
2246 * defs.h (command_line_input): Remove argument.
2247 * cli/cli-script.c (read_next_line): Update.
2248 * python/py-gdb-readline.c: Update.
2249
2250 2018-08-17 Tom Tromey <tom@tromey.com>
2251
2252 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2253 command_line_input.
2254
2255 2018-08-15 Tom Tromey <tom@tromey.com>
2256
2257 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2258
2259 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2260
2261 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2262 If used, use find_pc_partial_function to find address range
2263 to disassemble.
2264 * mi/mi-main.c (mi_cmd_list_features): Report
2265 "data-disassemble-a-option" feature.
2266 * NEWS: Mention new -data-disassemble option -a.
2267
2268 2018-08-13 Tom Tromey <tom@tromey.com>
2269
2270 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2271
2272 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2273
2274 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2275 (aarch64_linux_collect_sve_regset): Likewise.
2276 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2277 * regcache.h (regcache_map_entry_size): New function.
2278
2279 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2280
2281 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2282 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2283 (SVE_HEADER_VL_LENGTH): Likewise.
2284 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2285 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2286 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2287 (SVE_HEADER_SIZE_OFFSET): Likewise.
2288 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2289 (SVE_HEADER_VL_OFFSET): Likewise.
2290 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2291 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2292 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2293 (SVE_HEADER_SIZE): Likewise.
2294 (aarch64_linux_core_read_vq): Add function.
2295 (aarch64_linux_core_read_description): Check for SVE section.
2296
2297 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2298
2299 * aarch64-fbsd-tdep.c
2300 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2301 collect_size.
2302 * aarch64-linux-tdep.c
2303 (aarch64_linux_iterate_over_regset_sections): Likewise.
2304 * alpha-linux-tdep.c
2305 (alpha_linux_iterate_over_regset_sections):
2306 * alpha-nbsd-tdep.c
2307 (alphanbsd_iterate_over_regset_sections): Likewise.
2308 * amd64-fbsd-tdep.c
2309 (amd64fbsd_iterate_over_regset_sections): Likewise.
2310 * amd64-linux-tdep.c
2311 (amd64_linux_iterate_over_regset_sections): Likewise.
2312 * arm-bsd-tdep.c
2313 (armbsd_iterate_over_regset_sections): Likewise.
2314 * arm-fbsd-tdep.c
2315 (arm_fbsd_iterate_over_regset_sections): Likewise.
2316 * arm-linux-tdep.c
2317 (arm_linux_iterate_over_regset_sections): Likewise.
2318 * corelow.c (get_core_registers_cb): Likewise.
2319 (core_target::fetch_registers): Likewise.
2320 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2321 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2322 * gdbarch.h (void): Regenerate.
2323 * gdbarch.sh: Add supply_size and collect_size.
2324 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2325 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2326 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2327 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2328 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2329 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2330 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2331 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2332 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2333 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2334 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2335 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2336 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2337 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2338 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2339 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2340 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2341 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2342 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2343 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2344 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2345 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2346 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2347 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2348 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2349 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2350 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2351 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2352 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2353 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2354
2355 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2356
2357 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2358 with string_printf.
2359
2360 2018-08-10 Keith Seitz <keiths@redhat.com>
2361
2362 * compile/compile-c-support.c (add_code_header, add_code_footer):
2363 Move into policy class.
2364 (c_push_user_expression, pop_user_expression_nop)
2365 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2366 (compile_program): New host class.
2367 (c_compile_program): New typedef.
2368 (c_compute_porgram): Use c_compile_program.
2369
2370 2018-08-10 Keith Seitz <keiths@redhat.com>
2371
2372 * compile/compile-internal.h (compile_instance::~compile_instance):
2373 Remove calls to htab_delete.
2374 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2375 * compile.c (compile_instance::compile_instance): Initialize
2376 htab unique pointers.
2377 (compile_instance::get_cached_type, compile_instance::insert_type)
2378 (compile_instance::error_symbol_once): Update for unique_ptr.
2379
2380 2018-08-10 Keith Seitz <keiths@redhat.com>
2381
2382 * compile/compile-c-symbols.c (struct symbol_error)
2383 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2384 (compile_instance::insert_symbol_error)
2385 (compile_instance::error_symbol_once): Move to ...
2386 * compile/compile.c: ... here.
2387
2388 2018-08-10 Keith Seitz <keiths@redhat.com>
2389
2390 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2391 instead of `new_compile_instance'.
2392 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2393 Update description.
2394 If the symbol error map is not initialized, create it.
2395 (generate_c_for_for_one_symbol): Do not check/initialize
2396 the symbol error map.
2397 * compile/compile-c-types.c (compile_c_instance): Make a class.
2398 Update all callers.
2399 (compile_instance::compile_instance): Initialize the type cache.
2400 (get_cached_type): New function.
2401 (insert_type): Update description.
2402 (compile_c_instance::m_default_cflags): Define.
2403 (convert_type): Update description. Use get_cached_type.
2404 (delete_instance): Moved to destructor.
2405 (new_compile_instance): Moved to constructor.
2406 * compile/compile-c.h (compile_c_instance): Make class inheriting
2407 from compile_instance.
2408 <base>: Remove field.
2409 <type_map, symbol_err_map>: Move to base class.
2410 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2411 * compile/compile-internal.h (compile_instance): Make class.
2412 <type_map_t, symbol_err_map_t>: Define.
2413 <fe>: Rename to `m_gcc_fe'.
2414 <scope, block, gcc_target_options>: Add `m_' prefix.
2415 <m_type_map, m_symbol_err_map>: New fields, moved from
2416 compile_c_instance.
2417 <destroy>: Remove.
2418 (convert_type, new_compile_instance): Remove.
2419 * compile/compile.c (cleanup_compile_instance): Remove.
2420 (compile_to_object): Use unique_ptr to eliminate cleanups.
2421 (compile_instance::set_print_callback, compile_instance::version)
2422 (compile_instance::set_verbose)
2423 (compile_instance::set_driver_filename)
2424 (compile_instance::set_triplet_regexp)
2425 (compile_instance::set_arguments)
2426 (compile_instance::set_source_file)
2427 (compile_instance::compile): Define.
2428
2429 2018-08-10 Keith Seitz <keiths@redhat.com>
2430
2431 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2432 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2433 gcc-c-fe.def to define C plugin.
2434 (delete_instance): Delete `c_plugin'.
2435 (new_compile_instance): Initialize `c_plugin'.
2436 * compile/compile-c.h: Include gcc_c_plugin.h.
2437 (struct compile_c_instance) <c_plugin>: New member.
2438 * gcc-c-plugin.h: New file.
2439 Update all callers with API change.
2440
2441 2018-08-10 Keith Seitz <keiths@redhat.com>
2442
2443 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2444 (HFILES_NO_SRCDIR): ... to here.
2445 Add compile-internal.h and compile-c.h.
2446 * compile/compile-c-support.c: Include compile-c.h.
2447 * compile/compile-c-symbols.c: Include compile-c.h.
2448 (generate_c_for_variable_locations): Update comment.
2449 * compile/compile-c-types.c: Include compile-c.h.
2450 * compile/compile-c.h: New file -- moved C language declarations
2451 from other files here.
2452 * compile/compile-internal.h: Do not include hashtab.h or
2453 common/enum-flags.h.
2454 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2455 (gcc_convert_symbol, gcc_symbol_address)
2456 (generate_c_for_variable_locations, c_get_mode_for_size)
2457 (c_get_range_decl_name): Definitions moved to compile-c.h.
2458 * compile/compile-loc2c.c: Include compile-c.h.
2459
2460 2018-08-10 Keith Seitz <keiths@redhat.com>
2461
2462 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2463 (c_symbol_substitution_name): ... this.
2464 Update all callers.
2465
2466 2018-08-10 Keith Seitz <keiths@redhat.com>
2467
2468 * compile/compile-c-support.c (c_compute_program): Use
2469 unique_xmalloc_ptr to eliminate cleanup.
2470 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2471 Return a unique_xmalloc_ptr and eliminate cleanup.
2472 * compile/compile-internal.h (generate_c_for_variable_locations):
2473 Return unique_xmalloc_ptr and update description.
2474
2475 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2476
2477 * corelow.c (core_target::get_core_register_section): Rename
2478 min_size to section_min_size.
2479
2480 2018-08-09 Jim Wilson <jimw@sifive.com>
2481
2482 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2483 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2484 * NEWS: Mention new GNU/Linux RISC-V target.
2485 * configure.host: Add riscv*-*-linux*.
2486 * configure.nat: Add riscv*.
2487 * configure.tgt: Add riscv*-*-linux*.
2488 * riscv-linux-nat.c: New file.
2489 * riscv-linux-tdep.c: New file.
2490
2491 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2492
2493 * infrun.c (resume): Make static, add forward declaration.
2494 (proceed): Update header comment.
2495 * infrun.h (resume): Delete declaration.
2496
2497 2018-08-09 Tom Tromey <tom@tromey.com>
2498
2499 * riscv-tdep.h: Minor formatting fixes.
2500
2501 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2502
2503 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2504 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2505 (test_mkdir_recursive): Likewise.
2506 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2507
2508 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2509
2510 * valarith.c (value_subscripted_rvalue): If an array is not in
2511 memory, and we don't know the upper bound, then we can't know that
2512 the requested element exists or not.
2513
2514 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2515
2516 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2517 (target_options_to_string): Add comment.
2518
2519 2018-08-08 Tom Tromey <tom@tromey.com>
2520
2521 * unittests/scoped_mmap-selftests.c: Check result of "write".
2522
2523 2018-08-08 Jim Wilson <jimw@sifive.com>
2524
2525 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2526 (decode_register_index_short): New.
2527 (decode_j_type_insn, decode_cj_type_insn): New.
2528 (decode_b_type_insn, decode_cb_type_insn): New.
2529 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2530 local xlen. Check xlen when decoding ambiguous compressed insns. In
2531 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2532 is_c_sw_insn instead of is_sw_insn.
2533 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2534 (riscv_software_single_step): New.
2535 * riscv-tdep.h (riscv_software_single_step): Declare.
2536
2537 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2538 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2539
2540 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2541
2542 PR gdb/18050:
2543 * target.c (dispose_inferior): Don't dispose of inferiors that are
2544 already killed.
2545
2546 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2547
2548 * remote.c (remote_target::download_tracepoint): Change char* to
2549 const char*.
2550
2551 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2552
2553 * target.h (target_options_to_string): Return an std::string.
2554 * target.c (str_comma_list_concat_elem): Return void, use
2555 std::string.
2556 (do_option): Likewise.
2557 (target_options_to_string): Return an std::string.
2558 * linux-nat.c (linux_nat_target::wait): Adjust.
2559 * target-debug.h (target_debug_print_options): Adjust.
2560
2561 2018-08-07 Tom Tromey <tom@tromey.com>
2562
2563 * Makefile.in (CPPFLAGS): New variable.
2564 (INTERNAL_CPPFLAGS): Use it.
2565
2566 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2567
2568 * NEWS: Mention the index cache.
2569
2570 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2571
2572 * common/pathstuff.h (get_standard_cache_dir): New.
2573 * common/pathstuff.c (get_standard_cache_dir): New.
2574 * build-id.h (build_id_to_string): New.
2575 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2576 DEBUG_STR_SUFFIX): Move to here.
2577 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2578 DEBUG_STR_SUFFIX): Move from there.
2579 (write_psymtabs_to_index): Make non-static, add basename
2580 parameter. Write to temporary files, rename when done.
2581 (save_gdb_index_command): Adjust call to
2582 write_psymtabs_to_index.
2583 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2584 field.
2585 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2586 (get_gdb_index_contents_from_cache): New.
2587 (get_gdb_index_contents_from_cache_dwz): New.
2588 (dwarf2_initialize_objfile): Read index from cache.
2589 (dwarf2_build_psymtabs): Save to index.
2590 * dwarf-index-cache.h: New file.
2591 * dwarf-index-cache.c: New file.
2592 * dwarf-index-write.h: New file.
2593
2594 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2595
2596 * gnulib/aclocal.m4: Re-generate.
2597 * gnulib/config.in: Re-generate.
2598 * gnulib/configure: Re-generate.
2599 * gnulib/import/Makefile.am: Re-generate.
2600 * gnulib/import/Makefile.in: Re-generate.
2601 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2602 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2603 * gnulib/import/m4/mkdir.m4: New file.
2604 * gnulib/import/mkdir.c: New file.
2605 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2606 module.
2607
2608 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2609
2610 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2611 * common/scoped_mmap.c: New file.
2612 * common/scoped_mmap.h (destroy): New method.
2613 (~scoped_mmap, reset): Use destroy.
2614 (scoped_mmap): New move constructor.
2615 (mmap_file): New declaration.
2616 * unittests/scoped_mmap-selftests.c (test_normal,
2617 test_invalid_filename, run_tests): New functions.
2618 (_initialize_scoped_mmap_selftests): Register selftest.
2619
2620 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2621
2622 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2623 (read_gdb_index_from_buffer): ... this. Remove section
2624 parameter, add buffer parameter.
2625 (get_gdb_index_contents_ftype,
2626 get_gdb_index_contents_dwz_ftype): New typedefs.
2627 (dwarf2_read_gdb_index): Add callback parameters to get the
2628 index contents.
2629 (get_gdb_index_contents_from_section): New.
2630 (dwarf2_initialize_objfile): Update call to
2631 dwarf2_read_gdb_index.
2632
2633 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2634
2635 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2636 (gdb_open_cloexec): Likewise.
2637 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2638 (commandline_from_pid): Likewise.
2639 (linux_xfer_osdata_threads): Likewise.
2640 (linux_xfer_osdata_fds): Likewise.
2641 * ada-lang.c (is_package_name): Likewise.
2642 * auxv.c (procfs_xfer_auxv): Likewise.
2643 * breakpoint.c (print_one_breakpoint_location): Use
2644 uiout::field_fmt.
2645 (print_one_catch_solib): Use string_printf.
2646 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2647 (add_pe_forwarded_sym): Likewise.
2648 * dwarf2read.c (create_type_unit_group): Likewise.
2649 (build_error_marker_type): Likewise.
2650 * infcall.c (get_function_name): Likewise.
2651 * valprint.c (print_converted_chars_to_obstack): Likewise.
2652 * xtensa-tdep.c (xtensa_register_type): Likewise.
2653
2654 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2655
2656 * remote.c (remote_target::download_tracepoint): Fix format
2657 string errors.
2658
2659 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2660
2661 * tracefile.c: Include common/byte-vector.h.
2662 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2663 with trace_regblock_size if needed. Update uses of buf.
2664
2665 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2666
2667 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2668 std::vector<unsigned char>.
2669 * tracepoint.c (collection_list::collection_list): Remove
2670 m_regs_mask initializer from initializer list. Resize
2671 m_regs_mask using the largest remote register number.
2672 (collection_list::add_remote_register): Remove size check on
2673 m_regs_mask. Use at to access element.
2674 (collection_list::stringify): Change type of temp_buf to
2675 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2676 stringify the register mask. Use pack_hex_byte for the register
2677 mask.
2678
2679 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2680
2681 * tracepoint.h (class collection_list) <add_register>: Remove.
2682 <add_remote_register, add_ax_registers, add_local_register>:
2683 Declare.
2684 <add_memrange>: Add scope parameter.
2685 * tracepoint.c (encode_actions_1): Likewise.
2686 (collection_list::add_register): Rename to ...
2687 (collection_list::add_remote_register): ... this. Update
2688 comment.
2689 (collection_list::add_ax_registers, add_local_register): New
2690 methods.
2691 (collection_list::add_memrange): Add scope parameter. Call
2692 add_local_register instead of add_register.
2693 (finalize_tracepoint_aexpr): New function.
2694 (collection_list::collect_symbol): Update calls to add_memrange.
2695 Call add_local_register instead of add_register. Call
2696 add_ax_registers. Call finalize_tracepoint_aexpr.
2697 (encode_actions_1): Get remote regnos for $reg action. Call
2698 add_remote_register, add_ax_registers, and add_local_register.
2699 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2700 (validate_actionline): Call finalize_tracepoint_aexpr.
2701
2702 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2703
2704 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2705 Replace array buf with gdb::char_vector buf, of size
2706 get_remote_packet_size (). Replace references to buf and
2707 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2708 and xsnprintf with snprintf. Raise errors if the buffer is too
2709 small.
2710
2711 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2712
2713 * remote.c (remote_target::download_tracepoint): Fix the has_more
2714 predicate in the QTDP action list iteration.
2715
2716 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2717
2718 * remote.c (remote_target::download_tracepoint): Fix indentation
2719 in for block.
2720
2721 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2722
2723 * proc-api.c (_initialize_proc_api): Remove c, unused.
2724 * procfs.c (procfs_init_inferior): Remove signals, unused.
2725 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2726 unused.
2727
2728 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2729 Andrew Burgess <andrew.burgess@embecosm.com>
2730
2731 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2732 'W_STOPCODE (0)' as this could be ambiguous.
2733
2734 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2735
2736 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2737 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2738 "ai_socktype").
2739
2740 2018-08-02 Tom Tromey <tom@tromey.com>
2741
2742 PR symtab/16842.
2743 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2744 symbols.
2745 (process_structure_scope): Likewise.
2746
2747 2018-08-02 Xavier Roirand <roirand@adacore.com>
2748
2749 PR gdb/22629:
2750 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2751 kill inferior.
2752
2753 2018-08-02 Tom Tromey <tom@tromey.com>
2754
2755 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2756 (darwin_suspend_inferior, darwin_resume_inferior)
2757 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2758 (darwin_check_new_threads): Check result of get_darwin_inferior.
2759
2760 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2761
2762 GDB 8.1.1 released.
2763
2764 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2765
2766 * varobj.c (varobj_get_path_expr_parent): Report an error if
2767 parent is a dynamic varobj.
2768
2769 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2770
2771 * gnulib/aclocal.m4: Re-generate.
2772 * gnulib/config.in: Re-generate.
2773 * gnulib/configure: Re-generate.
2774 * gnulib/import/Makefile.in: Re-generate.
2775 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2776 * gnulib/import/m4/onceonly.m4: Re-generate.
2777
2778 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2779
2780 * target-descriptions.c (struct xml_test_tdesc): New.
2781 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2782 (record_xml_tdesc): Update.
2783 (maintenance_check_xml_descriptions): Update.
2784 * target-descriptions.h (record_xml_tdesc): Update comment.
2785
2786 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2787
2788 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2789 checking array bounds are defined.
2790
2791 2018-07-30 Tom Tromey <tom@tromey.com>
2792
2793 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2794 irreflexivity violation.
2795
2796 2018-07-30 Tom Tromey <tom@tromey.com>
2797
2798 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2799 * value.c (unpack_long): Remove lint code.
2800 * valops.c (value_ind): Remove lint code.
2801 * valarith.c (value_x_binop, value_x_unop, value_equal)
2802 (value_pos): Remove lint code.
2803
2804 2018-07-28 Tom de Vries <tdevries@suse.de>
2805
2806 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2807 with undefined upper bound as <optimized out>.
2808
2809 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2810
2811 * gcore.in: Rename variable "name" to "prefix". Expand
2812 "usage" text.
2813
2814 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2815
2816 * windows-nat.c (windows_nat_target::create_inferior): Update to
2817 call close() in global namespace.
2818
2819 2018-07-26 Tom Tromey <tom@tromey.com>
2820
2821 * dwarf-index-write.c (add_address_entry): Don't add objfile
2822 offsets.
2823 * dbxread.c (find_stab_function): Rename from
2824 find_stab_function_addr. Return a bound_minimal_symbol.
2825 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2826 Don't add objfile offsets.
2827 (end_psymtab): Use raw_text_low, raw_text_high,
2828 MSYMBOL_VALUE_RAW_ADDRESS.
2829 (read_ofile_symtab): Update.
2830 (process_one_symbol): Update.
2831 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2832 offsets.
2833 (dw2_relocate): Remove.
2834 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2835 searching addrmap.
2836 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2837 Update.
2838 (process_psymtab_comp_unit_reader, add_partial_symbol)
2839 (add_partial_subprogram, dwarf2_ranges_read): Update.
2840 (load_partial_dies): Update.
2841 (add_address_entry): Don't add objfile offsets.
2842 (dwarf2_build_include_psymtabs): Update.
2843 (create_addrmap_from_aranges): Don't add objfile offsets.
2844 (dw2_find_pc_sect_compunit_symtab): Update.
2845 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2846 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2847 Update.
2848 (parse_partial_symbols): Don't add objfile offsets. Use
2849 raw_text_low, raw_text_high. Update.
2850 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2851 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2852 or call 'relocate' quick function. Clear psymbol_map.
2853 * psympriv.h (struct partial_symbol) <address>: Add section
2854 offset.
2855 <set_unrelocated_address>: Rename from set_address.
2856 <raw_text_low, raw_text_high>: New methods.
2857 <text_low, text_high>: Add objfile parameter.
2858 (add_psymbol_to_bcache): Add 'section' parameter. Call
2859 set_unrelocated_address.
2860 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2861 (find_pc_psymbol): Update.
2862 (fixup_psymbol_section, relocate_psymtabs): Remove.
2863 (dump_psymtab, psym_functions): Update.
2864 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2865 parameter.
2866 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2867 (start_psymtab_common): Update.
2868 * symfile-debug.c (debug_qf_relocate): Remove.
2869 (debug_sym_quick_functions): Update.
2870 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2871 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2872 Update.
2873
2874 2018-07-26 Tom Tromey <tromey@redhat.com>
2875
2876 * dbxread.c (end_psymtab): Use text_high_valid and
2877 text_low_valid.
2878 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2879 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2880 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2881 Update comment.
2882 <text_low_valid, text_high_valid>: New fields.
2883 <set_text_low, set_text_high>: Update.
2884 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2885
2886 2018-07-26 Tom Tromey <tom@tromey.com>
2887
2888 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2889 Update.
2890 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2891 textlow and texthigh fields.
2892 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2893 Update.
2894 * mdebugread.c (parse_lines, parse_partial_symbols)
2895 (psymtab_to_symtab_1): Update.
2896 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2897 Rename fields. Update comment. Now private.
2898 <text_low, text_high, set_text_low, set_text_high>: New methods.
2899 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2900 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2901 (start_psymtab_common, maintenance_info_psymtabs)
2902 (maintenance_check_psymtabs): Update.
2903 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2904 texthigh fields.
2905 (scan_xcoff_symtab): Update.
2906
2907 2018-07-26 Tom Tromey <tromey@redhat.com>
2908
2909 * psympriv.h (struct partial_symbol) <unrelocated_address,
2910 address, set_address>: New methods.
2911 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2912 (fixup_psymbol_section, relocate_psymtabs): Update.
2913 (print_partial_symbols): Add 'objfile' parameter. Update.
2914 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2915 Update.
2916
2917 2018-07-26 Tom Tromey <tom@tromey.com>
2918
2919 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2920 (debug_names::write_psymbols): Update.
2921 * psympriv.h (struct partial_symbol): Derive from
2922 general_symbol_info.
2923 <obj_section>: New method.
2924 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2925 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2926 (find_pc_sect_psymbol, fixup_psymbol_section)
2927 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2928 (print_partial_symbols, recursively_search_psymtabs)
2929 (compare_psymbols, psymbol_hash, psymbol_compare)
2930 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2931 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2932
2933 2018-07-26 Tom Tromey <tromey@redhat.com>
2934
2935 * dbxread.c (end_psymtab): Remove dead code.
2936
2937 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2938
2939 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2940 DWARF unwinders are disabled.
2941 * dwarf2-frame.c: Add dwarf2read.h include.
2942 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2943 disabled.
2944 (dwarf2_frame_unwinders_enabled_p): Define.
2945 (show_dwarf_unwinders_enabled_p): New function.
2946 (_initialize_dwarf2_frame): Register switch to control DWARF
2947 unwinder use.
2948 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2949 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2950 (show_dwarf_cmdlist): Remove static keyword.
2951 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2952 (show_dwarf_cmdlist): Declare.
2953 * NEWS: Document new feature.
2954
2955 2018-07-26 Tom de Vries <tdevries@suse.de>
2956
2957 PR breakpoints/23366
2958 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2959
2960 2018-07-26 Tom de Vries <tdevries@suse.de>
2961
2962 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2963 DW_AT_count can't be translated to a dynamic prop.
2964
2965 2018-07-25 Tom de Vries <tdevries@suse.de>
2966
2967 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2968 try/catch.
2969
2970 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2971
2972 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2973
2974 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2975
2976 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2977
2978 2018-07-24 Keith Seitz <keiths@redhat.comt
2979
2980 PR symtab/23010
2981 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2982 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2983 instead of add_symbol_to_list.
2984 (read_file_scope): Call prepare_one_comp_unit before reading
2985 any other DIEs.
2986
2987 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2988
2989 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2990
2991 2018-07-24 Tom Tromey <tom@tromey.com>
2992
2993 * utils.c (malloc, realloc, free): Don't declare.
2994 * configure, config.in: Rebuild.
2995 * configure.ac: Don't check for declarations of free, malloc, or
2996 realloc.
2997
2998 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2999
3000 * aarch64-linux-nat.c
3001 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3002 variable.
3003 * arm-linux-nat.c (fetch_regs): Likewise.
3004 (store_regs): Likewise.
3005 (fetch_vfp_regs): Likewise.
3006 (store_vfp_regs): Likewise.
3007 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3008 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3009 (arm_linux_nat_target::insert_watchpoint): Likewise.
3010 (arm_linux_nat_target::remove_watchpoint): Likewise.
3011 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3012 Likewise.
3013 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3014 Likewise.
3015 * ppc-linux-nat.c (fetch_register): Likewise.
3016 (fetch_all_gp_regs): Likewise.
3017 (fetch_ppc_registers): Likewise.
3018 (store_all_gp_regs): Likewise.
3019 (store_ppc_registers): Likewise.
3020 (hwdebug_insert_point): Likewise.
3021 (can_use_watchpoint_cond_accel): Likewise.
3022 * remote-sim.c (gdb_os_write_stdout): Likewise.
3023
3024 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3025 Tom Tromey <tom@tromey.com>
3026
3027 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3028 test for it.
3029 * configure: Rebuild.
3030
3031 2018-07-22 Tom Tromey <tom@tromey.com>
3032
3033 * regformats/regdat.sh: Define xmltarget_${name} inside
3034 #ifndef IN_PROCESS_AGENT.
3035
3036 2018-07-22 Tom Tromey <tom@tromey.com>
3037
3038 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3039
3040 2018-07-22 Tom Tromey <tom@tromey.com>
3041
3042 * symfile.c (reread_symbols): Notify iter, not objfile.
3043
3044 2018-07-22 Tom Tromey <tom@tromey.com>
3045
3046 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3047 Use arch_ops.
3048 (ravenscar_thread_target::prepare_to_store): Likewise.
3049
3050 2018-07-22 Tom Tromey <tom@tromey.com>
3051
3052 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3053 unused variable. Call value_fetch_lazy when needed.
3054 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3055 Remove unused variable. Call value_fetch_lazy when needed.
3056
3057 2018-07-22 Tom Tromey <tom@tromey.com>
3058
3059 * m32c-tdep.c (mark_dma): Return void.
3060 (make_regs): Remove unused declarations.
3061
3062 2018-07-22 Tom Tromey <tom@tromey.com>
3063
3064 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3065 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3066 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3067 bkscm_get_valid_block_smob_arg_unsafe for effect.
3068
3069 2018-07-22 Tom Tromey <tom@tromey.com>
3070
3071 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3072 value_type.
3073
3074 2018-07-22 Tom Tromey <tom@tromey.com>
3075
3076 * windows-nat.c (saved_context): Conditionally define.
3077 * remote.c (remote_target::remote_btrace_maybe_reopen):
3078 Conditionally declare "warned".
3079 * inflow.c (sigquit_ours): Conditionally define.
3080 (new_tty): Move "tty" declaration inside #if.
3081 * guile/guile.c (guile_datadir): Conditionally define.
3082 * charset.c (set_be_le_names): Move some declarations inside #if.
3083 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3084 #if.
3085 (parse_xml_btrace_conf): Likewise.
3086
3087 2018-07-22 Tom Tromey <tom@tromey.com>
3088
3089 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3090
3091 2018-07-22 Tom Tromey <tom@tromey.com>
3092
3093 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3094 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3095 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3096 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3097 * stack.c (frame_apply_level_command): Remove unused variable.
3098 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3099 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3100 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3101 unused variable.
3102 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3103 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3104 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3105 variable.
3106 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3107 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3108 variable.
3109 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3110 Remove unused variable.
3111 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3112 variable.
3113 * common/tdesc.c (print_xml_feature::visit): Remove unused
3114 variable.
3115 * compile/compile-object-load.c (store_regs): Remove unused
3116 variables.
3117 * complaints.c (clear_complaints): Remove unused variable.
3118 * corelow.c (core_target_open): Remove unused variable.
3119 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3120 variable.
3121 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3122 variable.
3123 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3124 variable.
3125 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3126 variable.
3127 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3128 variable.
3129 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3130 variable.
3131 * ia64-tdep.c (examine_prologue): Remove unused variable.
3132 * infcall.c (run_inferior_call): Remove unused variable.
3133 * inferior.c (exit_inferior): Remove unused variable.
3134 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3135 * linespec.c (decode_line_2): Remove unused variable.
3136 * linux-nat.c (super_close): Remove.
3137 * linux-tdep.c (linux_info_proc): Remove unused variable.
3138 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3139 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3140 Remove unused variable.
3141 * parse.c (find_minsym_type_and_address): Remove unused variable.
3142 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3143 variable.
3144 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3145 variable.
3146 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3147 variables.
3148 * record-btrace.c (record_btrace_target::store_registers): Remove
3149 unused variable.
3150 (cmd_show_record_btrace_cpu): Remove unused variable.
3151 * riscv-tdep.c (riscv_register_reggroup_p)
3152 (riscv_push_dummy_call, riscv_return_value): Remove unused
3153 variable.
3154 * rust-exp.y (literal): Remove unused variable.
3155 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3156 unused variable.
3157 <STRUCTOP_ANONYMOUS>: Likewise.
3158 * s390-linux-tdep.c (s390_linux_init_abi_31)
3159 (s390_linux_init_abi_64): Remove unused variable.
3160 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3161 (file_select_thread, net_windows_open, _initialize_ser_windows):
3162 Remove unused variables.
3163 * symtab.c (find_pc_sect_line): Remove unused variable.
3164 * target-memory.c (compute_garbled_blocks): Remove unused
3165 variable.
3166 (target_write_memory_blocks): Remove unused variable.
3167 * target.c (target_stack::unpush): Remove unused variables.
3168 * tracepoint.c (start_tracing, all_tracepoint_actions)
3169 (merge_uploaded_trace_state_variables)
3170 (print_one_static_tracepoint_marker): Remove unused variable.
3171 * unittests/basic_string_view/element_access/char/1.cc (test01):
3172 Remove unused variable.
3173 * windows-nat.c (windows_continue, windows_add_all_dlls)
3174 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3175 Remove unused variables.
3176
3177 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3178
3179 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3180 attr_profile in HAVE_ELF.
3181 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3182 HAVE_ELF.
3183
3184 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3185
3186 * frame.c (frame_register_unwind): Change parameter name.
3187 (frame_unwind_register): Likewise.
3188 (frame_unwind_register_value): Likewise.
3189 (frame_unwind_register_signed): Likewise.
3190 (frame_unwind_register_unsigned): Likewise.
3191 * frame.h (frame_register_unwind): Likewise.
3192 (frame_unwind_register): Likewise.
3193 (frame_unwind_register_value): Likewise.
3194 (frame_unwind_register_signed): Likewise.
3195 (frame_unwind_register_unsigned): Likewise.
3196 (frame_unwind_arch): Likewise.
3197
3198 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3199
3200 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3201 ISA maintenance.
3202
3203 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3204
3205 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3206 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3207 hand.
3208
3209 2018-07-20 Keith Seitz <keiths@redhat.com>
3210
3211 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3212 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3213 m_compunit_symtab, m_language>: Add "m_" prefix.
3214 Update all uses.
3215 * buildsym.c: Update all uses.
3216
3217 2018-07-20 Tom Tromey <tom@tromey.com>
3218
3219 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3220 * buildsym.h (record_line_ftype): Remove typedef.
3221
3222 2018-07-20 Tom Tromey <tom@tromey.com>
3223
3224 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3225 (end_expandable_symtab): Likewise.
3226 (end_symtab_get_static_block): Likewise.
3227 (end_symtab_from_static_block): Likewise.
3228 * buildsym-legacy.c (augment_type_symtab): Remove.
3229 (end_expandable_symtab): Remove.
3230 (end_symtab_get_static_block): Remove.
3231 (end_symtab_from_static_block): Remove.
3232
3233 2018-07-20 Tom Tromey <tom@tromey.com>
3234
3235 * dwarf2read.c: Include buildsym.h.
3236 (struct dwarf2_cu) <builder>: New method.
3237 (fixup_go_packaging): Update.
3238 (process_full_comp_unit, process_full_type_unit): Update. Don't
3239 use scoped_free_pendings.
3240 (using_directives): Add "cu" parameter, remove "language".
3241 (read_import_statement, setup_type_unit_groups, )
3242 (read_func_scope, read_lexical_block_scope)
3243 (dwarf2_record_block_ranges, read_namespace): Update.
3244 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3245 (lnp_state_machine::handle_end_sequence): Update.
3246 (class lnp_state_machine) <m_cu>: New member.
3247 <m_record_line_callback>: Remove.
3248 <m_currently_recording_lines>: New member.
3249 (lnp_state_machine::handle_set_file): Update.
3250 (noop_record_line): Remove.
3251 (dwarf_record_line_p): Add cu parameter.
3252 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3253 (lnp_state_machine::record_line)
3254 (lnp_state_machine::lnp_state_machine)
3255 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3256 (dwarf_decode_lines): Update.
3257 (dwarf2_start_subfile): Add cu parameter.
3258 (dwarf2_start_symtab, new_symbol): Update.
3259 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3260 Remove dwarf2_per_objfile parameter.
3261 (dwarf_decode_macros): Update.
3262
3263 2018-07-20 Tom Tromey <tom@tromey.com>
3264
3265 * stabsread.c (define_symbol): Update.
3266 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3267 * dwarf2read.c (new_symbol): Update.
3268 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3269 * cp-namespace.c: Include buildsym.h.
3270 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3271 * buildsym-legacy.c (get_buildsym_compunit): New function.
3272
3273 2018-07-20 Tom Tromey <tom@tromey.com>
3274
3275 * xcoffread.c: Include buildsym-legacy.h.
3276 * windows-nat.c: Include buildsym-legacy.h.
3277 * stabsread.c: Include buildsym-legacy.h.
3278 * mdebugread.c: Include buildsym-legacy.h.
3279 * buildsym-legacy.h: New file.
3280 * buildsym-legacy.c: New file, from buildsym.c.
3281 * go32-nat.c: Include buildsym-legacy.h.
3282 * dwarf2read.c: Include buildsym-legacy.h.
3283 * dbxread.c: Include buildsym-legacy.h.
3284 * cp-namespace.c: Include buildsym-legacy.h.
3285 * coffread.c: Include buildsym-legacy.h.
3286 * buildsym.h: Move some contents to buildsym-legacy.h.
3287 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3288 buildsym-legacy.c.
3289 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3290
3291 2018-07-20 Tom Tromey <tom@tromey.com>
3292
3293 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3294 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3295 (buildsym_compunit::buildsym_compunit)
3296 (buildsym_compunit::~buildsym_compunit)
3297 (buildsym_compunit::get_macro_table): Define.
3298
3299 2018-07-20 Tom Tromey <tom@tromey.com>
3300
3301 * buildsym.c (reset_symtab_globals): Remove.
3302 (buildsym_compunit::end_symtab_from_static_block): Update.
3303 (buildsym_compunit::augment_type_symtab): Update.
3304 (end_symtab_from_static_block): Call free_buildsym_compunit.
3305 (augment_type_symtab, end_symtab, end_expandable_symtab):
3306 Likewise.
3307
3308 2018-07-20 Tom Tromey <tom@tromey.com>
3309
3310 * arch-utils.c: Do not include buildsym.h.
3311 * mipsread.c: Do not include buildsym.h.
3312 * machoread.c: Do not include buildsym.h.
3313 * elfread.c: Do not include buildsym.h.
3314
3315 2018-07-20 Tom Tromey <tom@tromey.com>
3316
3317 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3318 initialization.
3319 (buildsym_compunit): Add new constructor.
3320 (struct buildsym_compunit) <get_last_source_file, finish_block,
3321 record_block_range, start_subfile, patch_subfile_names,
3322 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3323 set_last_source_start_addr, get_last_source_start_addr,
3324 get_local_using_directives, set_local_using_directives,
3325 get_global_using_directives, outermost_context_p,
3326 get_current_context_stack, get_context_stack_depth,
3327 get_current_subfile, get_local_symbols, get_file_symbols,
3328 get_global_symbols, record_debugformat, record_producer,
3329 push_context, pop_context, end_symtab_get_static_block,
3330 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3331 New public methods.
3332 <record_pending_block, finish_block_internal, make_blockvector,
3333 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3334 private methods.
3335 Update all users.
3336
3337 2018-05-22 Tom Tromey <tom@tromey.com>
3338
3339 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3340 parameter.
3341 (finish_block_internal): Update.
3342
3343 2018-07-20 Tom Tromey <tom@tromey.com>
3344
3345 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3346 parameter.
3347 (finish_block_internal): Update.
3348
3349 2018-07-20 Tom Tromey <tom@tromey.com>
3350
3351 * buildsym.h (EXTERN): Don't define or undef.
3352 * buildsym.c (EXTERN): Don't define.
3353
3354 2018-07-20 Tom Tromey <tom@tromey.com>
3355
3356 * buildsym.c: Remove TODO comment.
3357
3358 2018-07-20 Tom Tromey <tom@tromey.com>
3359
3360 * coffread.c (coff_symtab_read): Update.
3361 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3362 (xcoff_new_init): Update.
3363 * mipsread.c (mipscoff_new_init): Update.
3364 * mdebugread.c (mdebug_build_psymtabs): Update.
3365 * elfread.c (elf_new_init): Update.
3366 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3367 Update.
3368 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3369 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3370 (stabsect_build_psymtabs): Update.
3371 * buildsym.h (buildsym_init): Don't declare.
3372 * buildsym.c: Update comment.
3373 (prepare_for_building): Remove.
3374 (start_symtab, restart_symtab): Update.
3375 (reset_symtab_globals): Update comment.
3376 (buildsym_init): Remove.
3377
3378 2018-07-20 Tom Tromey <tom@tromey.com>
3379
3380 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3381 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3382 (read_enum_type, common_block_start, common_block_end)
3383 (cleanup_undefined_types_1, finish_global_stabs): Update.
3384 * mdebugread.c (psymtab_to_symtab_1): Update.
3385 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3386 (read_lexical_block_scope, new_symbol): Update.
3387 * dbxread.c (process_one_symbol): Update.
3388 * coffread.c (coff_symtab_read, process_coff_symbol)
3389 (coff_read_enum_type): Update.
3390 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3391 declare.
3392 (get_local_symbols, get_file_symbols, get_global_symbols): New
3393 functions.
3394 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3395 m_global_symbols.
3396 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3397 (~scoped_free_pendings): Update.
3398 (finish_block, prepare_for_building, reset_symtab_globals)
3399 (end_symtab_get_static_block, end_symtab_with_blockvector)
3400 (augment_type_symtab, push_context): Update.
3401 (get_local_symbols, get_file_symbols, get_global_symbols): New
3402 functions.
3403 (buildsym_init): Update.
3404
3405 2018-07-20 Tom Tromey <tom@tromey.com>
3406
3407 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3408 (process_full_type_unit): Likewise.
3409 (dwarf2_start_symtab): Set list_in_scope.
3410
3411 2018-07-20 Tom Tromey <tom@tromey.com>
3412
3413 * dwarf2read.c (process_psymtab_comp_unit_reader)
3414 (build_type_psymtabs_reader): Do not set list_in_scope.
3415
3416 2018-07-20 Tom Tromey <tom@tromey.com>
3417
3418 * buildsym.c (free_pendings): Remove.
3419 (add_symbol_to_list, scoped_free_pendings)
3420 (finish_block_internal, buildsym_init): Update.
3421
3422 2018-07-20 Tom Tromey <tom@tromey.com>
3423
3424 * xcoffread.c (read_xcoff_symtab): Update.
3425 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3426 Update.
3427 * dbxread.c (process_one_symbol): Update.
3428 * coffread.c (coff_symtab_read): Update.
3429 * buildsym.h (finish_block): Update.
3430 * buildsym.c (finish_block): Remove "listhead" argument.
3431 (end_symtab_get_static_block): Update.
3432
3433 2018-07-20 Tom Tromey <tom@tromey.com>
3434
3435 * buildsym.h (class scoped_free_pendings): Remove constructor.
3436 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3437 method.
3438 <m_pending_block_obstack, m_pending_blocks>: New members.
3439 (pending_block_obstack, pending_blocks): Remove.
3440 (scoped_free_pendings::scoped_free_pendings): Default.
3441 (~scoped_free_pendings): Update.
3442 (free_pending_blocks): Remove.
3443 (finish_block_internal, record_pending_block, make_blockvector)
3444 (end_symtab_get_static_block, augment_type_symtab, push_context)
3445 (buildsym_init): Update.
3446
3447 2018-07-20 Tom Tromey <tom@tromey.com>
3448
3449 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3450 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3451 members.
3452 (pending_addrmap, pending_addrmap_obstack)
3453 (pending_addrmap_interesting): Remove.
3454 (scoped_free_pendings, record_block_range, make_blockvector)
3455 (prepare_for_building, reset_symtab_globals, buildsym_init):
3456 Update.
3457
3458 2018-07-20 Tom Tromey <tom@tromey.com>
3459
3460 * xcoffread.c (process_linenos): Update.
3461 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3462 * mdebugread.c (psymtab_to_symtab_1): Update.
3463 * dwarf2read.c (setup_type_unit_groups)
3464 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3465 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3466 * dbxread.c (process_one_symbol): Update.
3467 * coffread.c (coff_symtab_read, enter_linenos)
3468 (process_coff_symbol): Update.
3469 * buildsym.h (current_subfile): Don't declare.
3470 (get_current_subfile): Declare.
3471 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3472 member.
3473 (start_subfile, free_buildsym_compunit, push_subfile)
3474 (prepare_for_building, start_symtab): Update.
3475 (get_current_subfile): New function.
3476
3477 2018-07-20 Tom Tromey <tom@tromey.com>
3478
3479 * coffread.c (coff_symtab_read): Update.
3480 * xcoffread.c (read_xcoff_symtab): Update.
3481 * dwarf2read.c (new_symbol): Update.
3482 (read_func_scope, read_lexical_block_scope): Update.
3483 * dbxread.c (process_one_symbol): Update.
3484 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3485 (outermost_context_p): Remove macro.
3486 (outermost_context_p, get_current_context_stack)
3487 (get_context_stack_depth): Declare.
3488 (pop_context): Return struct context_stack.
3489 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3490 member.
3491 (context_stack_size): Remove.
3492 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3493 (prepare_for_building, end_symtab_get_static_block)
3494 (augment_type_symtab, push_context): Update.
3495 (pop_context): Return struct context_stack.
3496 (outermost_context_p, get_current_context_stack)
3497 (get_context_stack_depth): New functions.
3498 (buildsym_init): Update.
3499
3500 2018-07-20 Tom Tromey <tom@tromey.com>
3501
3502 * rust-exp.y: Now a pure parser. Update all rules.
3503 (%union): Move earlier.
3504 (current_parser, work_obstack): Remove globals.
3505 (rust_parser, ~rust_parser): Update.
3506 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3507 lex_character, lex_number, lex_string, lex_identifier,
3508 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3509 convert_name, convert_params_to_expression,
3510 convert_ast_to_expression, ast_basic_type, ast_operation,
3511 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3512 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3513 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3514 ast_array_type, ast_slice_type, ast_reference_type,
3515 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3516 (rust_parse): Update.
3517 (rustyyerror, rustyylex): Add parser parameter.
3518 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3519 (rust_lex_stringish_test, rust_lex_test_sequence)
3520 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3521 (rust_lex_test_push_back, rust_lex_tests): Update.
3522
3523 2018-07-19 Pedro Alves <palves@redhat.com>
3524
3525 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3526 gdb::unique_xmalloc_ptr.
3527 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3528 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3529 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3530 copy-initialization.
3531 * guile/scm-pretty-print.c (ppscm_print_children): Use
3532 gdb::unique_xmalloc_ptr instead of cleanups.
3533 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3534 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3535 gdb::unique_xmalloc_ptr.
3536 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3537 Adjust to use gdb::unique_xmalloc_ptr.
3538 * guile/scm-utils.c (extract_arg): Adjust.
3539 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3540 gdb::unique_xmalloc_ptr instead of a cleanup.
3541
3542 2018-07-19 Tom Tromey <tom@tromey.com>
3543
3544 * utils.c (do_value_free_to_mark)
3545 (make_cleanup_value_free_to_mark): Remove.
3546 * utils.h (make_cleanup_value_free_to_mark): Remove.
3547
3548 2018-07-19 Pedro Alves <palves@redhat.com>
3549
3550 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3551 forwarding reference.
3552
3553 2018-07-18 Pedro Alves <palves@redhat.com>
3554
3555 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3556 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3557 cleanup.
3558
3559 2018-07-18 Pedro Alves <palves@redhat.com>
3560
3561 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3562 exceptions.
3563 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3564 (gdbscm_wrap): New.
3565 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3566 directly instead of a cleanup.
3567 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3568 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3569 (vlscm_binop_gdbthrow): New, factored out from ...
3570 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3571 (vlscm_rich_compare): Use gdbscm_wrap.
3572 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3573 instead of a cleanup.
3574 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3575 cleanup.
3576 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3577 Use xfree directly instead of a cleanup.
3578 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3579 Adjust to use gdbscm_wrap and scoped_value_mark.
3580 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3581 (gdbscm_value_address, gdbscm_value_dereference)
3582 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3583 scoped_value_mark.
3584 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3585 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3586 scoped_value_mark.
3587 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3588 gdbscm_wrap and scoped_value_mark.
3589 (gdbscm_value_to_string): Use xfree directly instead of a
3590 cleanup. Move 'buffer' unique_ptr to TRY scope.
3591 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3592 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3593 scoped_value_mark.
3594 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3595 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3596 scoped_value_mark.
3597 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3598 gdbscm_wrap.
3599
3600 2018-07-18 Tom de Vries <tdevries@suse.de>
3601
3602 * findvar.c (default_read_var_value): Also resolve dynamic type for
3603 LOC_OPTIMIZED_OUT vars.
3604
3605 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3606
3607 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3608 decoding.
3609
3610 2018-07-17 Tom Tromey <tom@tromey.com>
3611
3612 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3613 (compute_enum_list, pascm_set_param_value_x)
3614 (gdbscm_parameter_value): Update.
3615 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3616 (gdbscm_scm_to_host_string): Update.
3617 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3618 Update.
3619 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3620 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3621 * guile/scm-string.c (gdbscm_scm_to_string): Return
3622 unique_xmalloc_ptr.
3623 (gdbscm_scm_to_host_string): Likewise.
3624
3625 2018-07-17 Tom Tromey <tom@tromey.com>
3626
3627 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3628 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3629 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3630 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3631 unique_xmalloc_ptr.
3632
3633 2018-07-17 Tom Tromey <tom@tromey.com>
3634
3635 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3636 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3637 Update.
3638 * guile/scm-cmd.c (cmdscm_function): Update.
3639 * guile/scm-pretty-print.c
3640 (ppscm_print_exception_unless_memory_error): Update.
3641 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3642 Return unique_xmalloc_ptr.
3643
3644 2018-07-17 Tom Tromey <tom@tromey.com>
3645
3646 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3647 Use string_printf.
3648
3649 2018-07-17 Jim Wilson <jimw@sifive.com>
3650
3651 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3652 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3653 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3654 unecessary braces after EF_RISCV_RVC test. Delete call to
3655 set_gdbarch_decr_pc_after_break.
3656
3657 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3658 RISCV_LAST_FP_REGNUM + 1.
3659 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3660
3661 2018-07-17 Tom Tromey <tom@tromey.com>
3662
3663 * configure.ac: Remove --disable-gdbcli.
3664 * configure: Rebuild.
3665 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3666 (SUBDIR_CLI_CFLAGS): Remove.
3667 (SFILES): Use SUBDIR_CLI_SRCS.
3668 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3669
3670 2018-07-17 Tom Tromey <tom@tromey.com>
3671
3672 PR gdb/18624:
3673 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3674
3675 2018-07-16 Jim Wilson <jimw@sifive.com>
3676
3677 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3678
3679 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3680
3681 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3682 variable.
3683 (libunwind_frame_sniffer): Likewise.
3684 (libunwind_frame_prev_register): Likewise.
3685 (libunwind_sigtramp_frame_sniffer): Likewise.
3686 * ia64-tdep.c (ia64_access_reg): Likewise.
3687 (ia64_access_rse_reg): Likewise.
3688 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3689 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3690
3691 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3692
3693 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3694
3695 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3696
3697 * remote-sim.c (gdbsim_target::close,
3698 gdbsim_target::mourn_inferior): Remove unused variables.
3699
3700 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3701
3702 * ia64-tdep.c (ktab_buf): New global.
3703 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3704 (get_kernel_table): Adjust.
3705
3706 2018-07-16 Tom Tromey <tom@tromey.com>
3707
3708 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3709 * dwarf2read.c (using_directives, new_symbol): Use
3710 outermost_context_p.
3711 * dbxread.c (process_one_symbol): Use outermost_context_p.
3712 * coffread.c (coff_symtab_read): Use outermost_context_p.
3713
3714 2018-07-16 Tom Tromey <tom@tromey.com>
3715
3716 * dwarf2read.c (using_directives, read_func_scope)
3717 (read_lexical_block_scope): Update.
3718 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3719 * buildsym.h (local_using_directives, global_using_directives):
3720 Don't declare.
3721 (get_local_using_directives, set_local_using_directives)
3722 (get_global_using_directives): Declare.
3723 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3724 m_global_using_directives>: New members.
3725 (finish_block_internal, prepare_for_building)
3726 (reset_symtab_globals, end_symtab_get_static_block)
3727 (push_context): Update.
3728 (get_local_using_directives, set_local_using_directives)
3729 (get_global_using_directives): New functions.
3730 (buildsym_init): Update.
3731
3732 2018-07-16 Tom Tromey <tom@tromey.com>
3733
3734 * xcoffread.c (xcoff_initial_scan): Don't call
3735 free_pending_blocks.
3736 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3737 * buildsym.h (class scoped_free_pendings): Add constructor.
3738 (free_pending_blocks): Don't declare.
3739 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3740 (free_pending_blocks): Now static.
3741
3742 2018-07-16 Tom Tromey <tom@tromey.com>
3743
3744 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3745 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3746 member.
3747 (struct subfile_stack): Remove.
3748 (subfile_stack): Remove.
3749 (push_subfile, pop_subfile, buildsym_init): Update.
3750
3751 2018-07-16 Tom Tromey <tom@tromey.com>
3752
3753 * buildsym.c (push_subfile): Use gdb_assert.
3754 (pop_subfile): Use gdb_assert.
3755
3756 2018-07-16 Tom Tromey <tom@tromey.com>
3757
3758 * buildsym.h (merge_symbol_lists): Remove.
3759 * buildsym.c (merge_symbol_lists): Remove.
3760
3761 2018-07-16 Tom Tromey <tom@tromey.com>
3762
3763 * stabsread.c (scan_file_globals): Update comment.
3764 * stabsread.h (scan_file_globals): Move from buildsym.h.
3765 * buildsym.h (scan_file_globals): Move to stabsread.h.
3766
3767 2018-07-16 Tom Tromey <tom@tromey.com>
3768
3769 * xcoffread.c (xcoff_new_init): Update.
3770 * mipsread.c (mipscoff_new_init): Update.
3771 * mdebugread.c (mdebug_build_psymtabs): Update.
3772 * elfread.c (elf_new_init): Update.
3773 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3774 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3775 * buildsym.h (buildsym_new_init): Don't declare.
3776 * buildsym.c (buildsym_new_init): Remove.
3777
3778 2018-07-16 Tom Tromey <tom@tromey.com>
3779
3780 * stabsread.h (within_function): Move from buildsym.h.
3781 * stabsread.c (start_stabs): Clear within_function.
3782 * coffread.c (coff_start_symtab): Clear within_function.
3783 * buildsym.h (within_function): Move to stabsread.h.
3784 * buildsym.c (prepare_for_building): Update.
3785
3786 2018-07-16 Tom Tromey <tom@tromey.com>
3787
3788 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3789 * dwarf2read.c (dwarf2_start_symtab): Don't set
3790 processing_gcc_compilation.
3791 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3792
3793 2018-07-16 Tom Tromey <tom@tromey.com>
3794
3795 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3796 (next_symbol_text_func): Move from buildsym.h.
3797 * stabsread.c (hashname): Move from buildsym.c.
3798 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3799 (next_symbol_text_func, hashname): Move to stabsread.h.
3800 * buildsym.c: Don't include bcache.h
3801 (hashname): Move to stasbread.c.
3802
3803 2018-07-16 Tom Tromey <tom@tromey.com>
3804
3805 * buildsym.h (context_stack_size): Don't declare.
3806 * buildsym.c (context_stack_size): New global.
3807
3808 2018-07-16 Tom Tromey <tom@tromey.com>
3809
3810 * dbxread.c (processing_acc_compilation): New global.
3811 * buildsym.h (processing_acc_compilation): Don't declare.
3812
3813 2018-07-16 Tom Tromey <tom@tromey.com>
3814
3815 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3816 * dbxread.c (read_ofile_symtab): Update.
3817 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3818 * buildsym.h (last_source_start_addr): Remove.
3819 (set_last_source_start_addr, get_last_source_start_addr):
3820 Declare.
3821 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3822 parameter.
3823 (struct buildsym_compunit) <m_last_source_start_addr>: New
3824 member.
3825 (prepare_for_building): Remove start_addr parameter.
3826 (start_symtab, restart_symtab, end_symtab_get_static_block)
3827 (end_symtab_with_blockvector): Update.
3828 (set_last_source_start_addr, get_last_source_start_addr): New
3829 functions.
3830
3831 2018-07-16 Tom Tromey <tom@tromey.com>
3832
3833 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3834 member.
3835 (have_line_numbers): Remove.
3836 (record_line, prepare_for_building, end_symtab_get_static_block)
3837 (augment_type_symtab): Update.
3838
3839 2018-07-16 Tom Tromey <tom@tromey.com>
3840
3841 * buildsym.c (~buildsym_compunit): Free the macro table.
3842 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3843 methods.
3844 <m_pending_macros>: New member.
3845 (pending_macros): Remove.
3846 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3847 (reset_symtab_globals, end_symtab_get_static_block)
3848 (end_symtab_with_blockvector, augment_type_symtab)
3849 (buildsym_init): Update.
3850
3851 2018-07-16 Tom Tromey <tom@tromey.com>
3852
3853 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3854 parameter.
3855 (buildsym_compunit::set_last_source_file): New method.
3856 <m_last_source_file>: New member.
3857 (prepare_for_building): Remove "name" parameter.
3858 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3859 (last_source_file): Remove.
3860 (set_last_source_file, get_last_source_file): Update.
3861
3862 2018-07-16 Tom Tromey <tom@tromey.com>
3863
3864 * buildsym.c (prepare_for_building): Add assert.
3865
3866 2018-07-16 Tom Tromey <tom@tromey.com>
3867
3868 * buildsym.c (~buildsym_compunit): Update.
3869 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3870 (start_subfile, patch_subfile_names)
3871 (end_symtab_with_blockvector): Update.
3872
3873 2018-07-16 Tom Tromey <tom@tromey.com>
3874
3875 * buildsym.c (struct buildsym_compunit): Add constructor,
3876 destructor, initializers.
3877 (start_buildsym_compunit): Remove.
3878 (free_buildsym_compunit): Use "delete".
3879 (start_symtab, restart_symtab): Use "new".
3880
3881 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3882
3883 * symfile.c (set_objfile_default_section_offset): Remove struct
3884 keyword.
3885
3886 2018-07-14 Stafford Horne <shorne@gmail.com>
3887
3888 * (Responsible Maintainers): Add myself as or1k maintainer.
3889
3890 2018-07-13 Tom Tromey <tom@tromey.com>
3891
3892 * symfile.c (set_objfile_default_section_offset): Use extra braces
3893 around initializer.
3894
3895 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3896
3897 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3898 non-branching basr.
3899
3900 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3901
3902 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3903 unittests/cli-utils-selftests.c
3904 * unittests/cli-utils-selftests.c: New file.
3905
3906 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3907
3908 * NEWS: Mention new commands. Mention change to 'thread apply'.
3909
3910 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3911
3912 * thread.c (thr_try_catch_cmd): New function.
3913 (thread_apply_all_command): Handle qcs flags.
3914 (thread_apply_command): Handle qcs flags.
3915 (taas_command): New function.
3916 (tfaas_command): New function.
3917 (_initialize_thread): Update to setup the new commands 'taas
3918 and 'tfaas'. Change doc string for 'thread apply'.
3919
3920 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3921
3922 * stack.c: (trailing_outermost_frame): New function, mostly
3923 extracted from backtrace_command_1.
3924 (leading_innermost_frame): New function.
3925 (backtrace_command_1): Update to call trailing_outermost_frame.
3926 (frame_apply_command_count): New function.
3927 (frame_apply_level_command): New function.
3928 (frame_apply_all_command): New function.
3929 (frame_apply_command): New function.
3930 (faas_command): New function.
3931 (frame_cmd_list): New variable.
3932 (_initialize_stack): Update to setup the new commands 'frame apply'
3933 and 'faas'.
3934
3935 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3936
3937 * cli-utils.c (number_or_range_parser::get_number): Only handle
3938 numbers or convenience var as numbers.
3939 (parse_flags): New function.
3940 (parse_flags_qcs): New function.
3941 (number_or_range_parser::finished): Ensure parsing end is detected
3942 before end of string.
3943 * cli-utils.h (parse_flags): New function.
3944 (parse_flags_qcs): New function.
3945 (number_or_range_parser): Remove m_finished bool.
3946 (number_or_range_parser::skip_range): Set m_in_range to false.
3947
3948 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3949
3950 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3951 on Windows.
3952
3953 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3954 Jan Kratochvil <jan.kratochvil@redhat.com>
3955 Paul Fertser <fercerpav@gmail.com>
3956 Tsutomu Seki <sekiriki@gmail.com>
3957 Pedro Alves <palves@redhat.com>
3958
3959 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3960 'unittests/parse-connection-spec-selftests.c'.
3961 (COMMON_SFILES): Add 'common/netstuff.c'.
3962 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3963 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3964 * common/netstuff.c: New file.
3965 * common/netstuff.h: New file.
3966 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3967 (wait_for_connect): Update comment. New parameter
3968 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3969 Use 'sock' directly instead of 'scb->fd'.
3970 (try_connect): New function, with code from 'net_open'.
3971 (net_open): Rewrite main loop to deal with multiple
3972 sockets/addresses. Handle IPv6-style hostnames; implement
3973 support for IPv6 connections.
3974 * unittests/parse-connection-spec-selftests.c: New file.
3975
3976 2018-07-11 Pedro Alves <palves@redhat.com>
3977
3978 PR gdb/23377
3979 * remote.c (remote_target::remote_detach_pid): Call
3980 set_current_process.
3981
3982 2018-07-11 Pedro Alves <palves@redhat.com>
3983
3984 * h8300-tdep.c (h8300_gdbarch_init): Remove
3985 set_gdbarch_ecoff_reg_to_regnum calls.
3986
3987 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3988
3989 PR c++/23373
3990 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3991 offsets/sizes for static members of a class/struct.
3992
3993 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3994
3995 * target-descriptions.c (tdesc_register_bitsize): Rename.
3996 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3997 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3998 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3999
4000 2018-07-10 Tom Tromey <tom@tromey.com>
4001
4002 * breakpoint.c (moribund_locations): Now static and a
4003 std::vector.
4004 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4005 (build_bpstat_chain, update_global_location_list)
4006 (breakpoint_retire_moribund): Update.
4007 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4008 VEC.
4009
4010 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4011
4012 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4013 (riscv_register_reggroup_p): Use new function, remove unneeded
4014 parenthesis.
4015 (riscv_push_dummy_call): Extend assert to compare against xlen or
4016 flen based on register type.
4017
4018 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4019
4020 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4021
4022 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4023
4024 * remote.c (show_hardware_watchpoint_limit): New function.
4025 (show_hardware_watchpoint_length_limit): New function.
4026 (show_hardware_breakpoint_limit): New function.
4027 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4028 where appropriate, update help text.
4029
4030 2018-07-09 Tom Tromey <tom@tromey.com>
4031
4032 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4033 (CLIBS): Don't mention NAT_CLIBS.
4034
4035 2018-07-09 Tom Tromey <tom@tromey.com>
4036
4037 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4038 (LIBGDB_OBS, clean mostlyclean): Update.
4039 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4040
4041 2018-07-09 Tom Tromey <tom@tromey.com>
4042
4043 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4044 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4045 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4046
4047 2018-07-09 Tom Tromey <tom@tromey.com>
4048
4049 * Makefile.in (ALLDEPFILES): Remove exec.c.
4050 (COMMON_OBS): Remove exec.o.
4051 (COMMON_SFILES): Add exec.c.
4052
4053 2018-07-09 Tom Tromey <tom@tromey.com>
4054
4055 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4056
4057 2018-07-09 Tom Tromey <tom@tromey.com>
4058
4059 * Makefile.in (clean mostlyclean): Remove stamp-version.
4060 (version.c): Depend on stamp-version.
4061 (stamp-version): New rule, from version.c rule.
4062
4063 2018-07-09 Tom Tromey <tom@tromey.com>
4064
4065 * Makefile.in (init.c): Depend on stamp-init.
4066 (stamp-init): New rule, from init.c rule.
4067 (clean mostlyclean): Remove stamp-init.
4068
4069 2018-07-09 Tom Tromey <tom@tromey.com>
4070
4071 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4072 SUBDIR_GCC_COMPILE_SRCS.
4073
4074 2018-07-09 Tom Tromey <tom@tromey.com>
4075
4076 * Makefile.in (init.c): Remove some unused sed rules.
4077
4078 2018-07-09 Tom Tromey <tom@tromey.com>
4079
4080 * Makefile.in (TSOBS): Remove.
4081 (INIT_FILES): Update.
4082 (LIBGDB_OBS): Update.
4083 (COMMON_SFILES): Add inflow.c.
4084 (SFILES): Remove inflow.c.
4085
4086 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4087
4088 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4089
4090 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4091
4092 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4093 get_saveloc_name, is_signal_frame_name, step_name,
4094 init_remote_name, create_addr_space_name,
4095 destroy_addr_space_name, search_unwind_table_name,
4096 find_dyn_list_name): Constify.
4097
4098 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4099
4100 * darwin-nat.c (darwin_pthread_kill): New function.
4101 (darwin_resume_thread): Use darwin_pthread_kill.
4102
4103 2018-07-05 Tom de Vries <tdevries@suse.de>
4104
4105 * macroexp.c (macro_buffer) <operator=>: New member function.
4106
4107 2018-07-04 Tom Tromey <tom@tromey.com>
4108
4109 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4110
4111 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4112
4113 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4114 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4115 * maint.c: Likewise.
4116 * top.c: Likewise.
4117
4118 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4119
4120 * NEWS: Create a new section for the next release branch.
4121 Rename the section of the current branch, now that it has
4122 been cut.
4123
4124 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4125
4126 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4127 * version.in: Bump version to 8.2.50.DATE-git.
4128
4129 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4130 Pedro Alves <palves@redhat.com>
4131
4132 * linux-nat.c (linux_init_ptrace): Rename to ...
4133 (linux_init_ptrace_procfs): ... this. Call
4134 linux_proc_init_warnings.
4135 (linux_nat_target::post_attach)
4136 (linux_nat_target::post_startup_inferior): Adjust.
4137 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4138 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4139
4140 2018-07-04 Tom de Vries <tdevries@suse.de>
4141
4142 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4143 check ...
4144 (read_comp_unit_head): ... here.
4145
4146 2018-07-03 Tom Tromey <tom@tromey.com>
4147
4148 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4149 (stop_tracing, tstatus_command)
4150 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4151 (print_one_static_tracepoint_marker): Update.
4152 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4153 std::vector.
4154 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4155 VEC.
4156 (all_tracepoints, static_tracepoints_here): Return std::vector.
4157
4158 2018-07-03 Tom Tromey <tom@tromey.com>
4159
4160 * common/ptid.c (ptid_equal): Remove.
4161 * common/ptid.h (ptid_equal): Don't declare.
4162 * ada-tasks.c: Update.
4163 * breakpoint.c: Update.
4164 * common/agent.c: Update.
4165 * corelow.c: Update.
4166 * darwin-nat-info.c: Update.
4167 * darwin-nat.c: Update.
4168 * dcache.c: Update.
4169 * dtrace-probe.c: Update.
4170 * dummy-frame.c: Update.
4171 * fbsd-nat.c: Update.
4172 * frame.c: Update.
4173 * gdbthread.h: Update.
4174 * gnu-nat.c: Update.
4175 * go32-nat.c: Update.
4176 * inf-loop.c: Update.
4177 * inf-ptrace.c: Update.
4178 * infcall.c: Update.
4179 * infcmd.c: Update.
4180 * inflow.c: Update.
4181 * infrun.c: Update.
4182 * linux-fork.c: Update.
4183 * linux-nat.c: Update.
4184 * linux-thread-db.c: Update.
4185 * mi/mi-cmd-var.c: Update.
4186 * mi/mi-interp.c: Update.
4187 * mi/mi-main.c: Update.
4188 * nto-procfs.c: Update.
4189 * ppc-linux-tdep.c: Update.
4190 * procfs.c: Update.
4191 * python/py-inferior.c: Update.
4192 * python/py-record-btrace.c: Update.
4193 * python/py-record.c: Update.
4194 * ravenscar-thread.c: Update.
4195 * regcache.c: Update.
4196 * remote-sim.c: Update.
4197 * remote.c: Update.
4198 * sol-thread.c: Update.
4199 * solib.c: Update.
4200 * target.c: Update.
4201 * tui/tui-stack.c: Update.
4202 * varobj.c: Update.
4203 * windows-nat.c: Update.
4204 * windows-tdep.c: Update.
4205
4206 2018-07-03 Tom Tromey <tom@tromey.com>
4207
4208 * common/ptid.c (ptid_match): Remove.
4209 * common/ptid.h (ptid_match): Don't declare.
4210 * fbsd-nat.c: Update.
4211 * infcmd.c: Update.
4212 * infrun.c: Update.
4213 * linux-nat.c: Update.
4214 * record-btrace.c: Update.
4215 * regcache.c: Update.
4216 * remote.c: Update.
4217
4218 2018-07-03 Tom Tromey <tom@tromey.com>
4219
4220 * common/ptid.c (ptid_tid_p): Remove.
4221 * common/ptid.h (ptid_tid_p): Don't declare.
4222 * sol-thread.c: Update.
4223
4224 2018-07-03 Tom Tromey <tom@tromey.com>
4225
4226 * common/ptid.c (ptid_lwp_p): Remove.
4227 * common/ptid.h (ptid_lwp_p): Don't declare.
4228 * fbsd-nat.c: Update.
4229 * linux-nat.c: Update.
4230 * nat/linux-procfs.c: Update.
4231 * nat/x86-linux-dregs.c: Update.
4232 * sol-thread.c: Update.
4233
4234 2018-07-03 Tom Tromey <tom@tromey.com>
4235
4236 * common/ptid.c (ptid_is_pid): Remove.
4237 * common/ptid.h (ptid_is_pid): Don't declare.
4238 * infrun.c: Update.
4239 * linux-nat.c: Update.
4240 * mi/mi-interp.c: Update.
4241 * remote.c: Update.
4242 * thread.c: Update.
4243
4244 2018-07-03 Tom Tromey <tom@tromey.com>
4245
4246 * common/ptid.c (ptid_get_tid): Remove.
4247 * common/ptid.h (ptid_get_tid): Don't declare.
4248 * ada-tasks.c: Update.
4249 * aix-thread.c: Update.
4250 * bsd-uthread.c: Update.
4251 * darwin-nat.c: Update.
4252 * fbsd-nat.c: Update.
4253 * i386-darwin-nat.c: Update.
4254 * infrun.c: Update.
4255 * linux-tdep.c: Update.
4256 * nto-procfs.c: Update.
4257 * ppc-ravenscar-thread.c: Update.
4258 * python/py-infthread.c: Update.
4259 * ravenscar-thread.c: Update.
4260 * sol-thread.c: Update.
4261 * sparc-ravenscar-thread.c: Update.
4262 * windows-nat.c: Update.
4263
4264 2018-07-03 Tom Tromey <tom@tromey.com>
4265
4266 * common/ptid.c (ptid_get_lwp): Remove.
4267 * common/ptid.h (ptid_get_lwp): Don't declare.
4268 * aarch64-linux-nat.c: Update.
4269 * ada-tasks.c: Update.
4270 * aix-thread.c: Update.
4271 * amd64-linux-nat.c: Update.
4272 * arm-linux-nat.c: Update.
4273 * corelow.c: Update.
4274 * fbsd-nat.c: Update.
4275 * fbsd-tdep.c: Update.
4276 * gnu-nat.c: Update.
4277 * i386-cygwin-tdep.c: Update.
4278 * i386-gnu-nat.c: Update.
4279 * i386-linux-nat.c: Update.
4280 * ia64-linux-nat.c: Update.
4281 * inf-ptrace.c: Update.
4282 * infrun.c: Update.
4283 * linux-fork.c: Update.
4284 * linux-nat.c: Update.
4285 * linux-tdep.c: Update.
4286 * linux-thread-db.c: Update.
4287 * mips-linux-nat.c: Update.
4288 * nat/aarch64-linux-hw-point.c: Update.
4289 * nat/aarch64-linux.c: Update.
4290 * nat/linux-btrace.c: Update.
4291 * nat/linux-osdata.c: Update.
4292 * nat/linux-procfs.c: Update.
4293 * nat/x86-linux-dregs.c: Update.
4294 * obsd-nat.c: Update.
4295 * ppc-fbsd-nat.c: Update.
4296 * ppc-linux-nat.c: Update.
4297 * procfs.c: Update.
4298 * python/py-infthread.c: Update.
4299 * ravenscar-thread.c: Update.
4300 * remote.c: Update.
4301 * s390-linux-nat.c: Update.
4302 * sol-thread.c: Update.
4303 * sol2-tdep.c: Update.
4304 * spu-linux-nat.c: Update.
4305 * x86-linux-nat.c: Update.
4306 * xtensa-linux-nat.c: Update.
4307
4308 2018-07-03 Tom Tromey <tom@tromey.com>
4309
4310 * common/ptid.c (ptid_get_pid): Remove.
4311 * common/ptid.h (ptid_get_pid): Don't declare.
4312 * aarch64-linux-nat.c: Update.
4313 * ada-lang.c: Update.
4314 * aix-thread.c: Update.
4315 * alpha-bsd-nat.c: Update.
4316 * amd64-fbsd-nat.c: Update.
4317 * amd64-linux-nat.c: Update.
4318 * arm-linux-nat.c: Update.
4319 * arm-nbsd-nat.c: Update.
4320 * auxv.c: Update.
4321 * break-catch-syscall.c: Update.
4322 * breakpoint.c: Update.
4323 * bsd-uthread.c: Update.
4324 * corelow.c: Update.
4325 * ctf.c: Update.
4326 * darwin-nat.c: Update.
4327 * fbsd-nat.c: Update.
4328 * fbsd-tdep.c: Update.
4329 * gcore.c: Update.
4330 * gnu-nat.c: Update.
4331 * hppa-nbsd-nat.c: Update.
4332 * hppa-obsd-nat.c: Update.
4333 * i386-fbsd-nat.c: Update.
4334 * ia64-linux-nat.c: Update.
4335 * inf-ptrace.c: Update.
4336 * infcmd.c: Update.
4337 * inferior.c: Update.
4338 * inferior.h: Update.
4339 * inflow.c: Update.
4340 * infrun.c: Update.
4341 * linux-fork.c: Update.
4342 * linux-nat.c: Update.
4343 * linux-tdep.c: Update.
4344 * linux-thread-db.c: Update.
4345 * m68k-bsd-nat.c: Update.
4346 * mi/mi-interp.c: Update.
4347 * mi/mi-main.c: Update.
4348 * mips-linux-nat.c: Update.
4349 * mips-nbsd-nat.c: Update.
4350 * mips64-obsd-nat.c: Update.
4351 * nat/aarch64-linux-hw-point.c: Update.
4352 * nat/aarch64-linux.c: Update.
4353 * nat/linux-btrace.c: Update.
4354 * nat/linux-osdata.c: Update.
4355 * nat/linux-procfs.c: Update.
4356 * nat/x86-linux-dregs.c: Update.
4357 * nto-procfs.c: Update.
4358 * obsd-nat.c: Update.
4359 * ppc-linux-nat.c: Update.
4360 * ppc-nbsd-nat.c: Update.
4361 * ppc-obsd-nat.c: Update.
4362 * proc-service.c: Update.
4363 * procfs.c: Update.
4364 * python/py-inferior.c: Update.
4365 * python/py-infthread.c: Update.
4366 * ravenscar-thread.c: Update.
4367 * record.c: Update.
4368 * remote-sim.c: Update.
4369 * remote.c: Update.
4370 * rs6000-nat.c: Update.
4371 * s390-linux-nat.c: Update.
4372 * sh-nbsd-nat.c: Update.
4373 * sol-thread.c: Update.
4374 * sparc-nat.c: Update.
4375 * sparc64-tdep.c: Update.
4376 * spu-linux-nat.c: Update.
4377 * spu-tdep.c: Update.
4378 * target-debug.h: Update.
4379 * target.c: Update.
4380 * thread.c: Update.
4381 * tid-parse.c: Update.
4382 * tracefile-tfile.c: Update.
4383 * vax-bsd-nat.c: Update.
4384 * windows-nat.c: Update.
4385 * x86-linux-nat.c: Update.
4386 * x86-nat.c: Update.
4387
4388 2018-07-03 Tom Tromey <tom@tromey.com>
4389
4390 * common/ptid.c (pid_to_ptid): Remove.
4391 * common/ptid.h (pid_to_ptid): Don't declare.
4392 * aix-thread.c: Update.
4393 * arm-linux-nat.c: Update.
4394 * common/ptid.c: Update.
4395 * common/ptid.h: Update.
4396 * corelow.c: Update.
4397 * ctf.c: Update.
4398 * darwin-nat.c: Update.
4399 * fbsd-nat.c: Update.
4400 * fork-child.c: Update.
4401 * gnu-nat.c: Update.
4402 * go32-nat.c: Update.
4403 * inf-ptrace.c: Update.
4404 * infcmd.c: Update.
4405 * inferior.c: Update.
4406 * infrun.c: Update.
4407 * linux-fork.c: Update.
4408 * linux-nat.c: Update.
4409 * nat/aarch64-linux-hw-point.c: Update.
4410 * nat/fork-inferior.c: Update.
4411 * nat/x86-linux-dregs.c: Update.
4412 * nto-procfs.c: Update.
4413 * obsd-nat.c: Update.
4414 * procfs.c: Update.
4415 * progspace.c: Update.
4416 * remote.c: Update.
4417 * rs6000-nat.c: Update.
4418 * s390-linux-nat.c: Update.
4419 * sol-thread.c: Update.
4420 * spu-linux-nat.c: Update.
4421 * target.c: Update.
4422 * top.c: Update.
4423 * tracefile-tfile.c: Update.
4424 * windows-nat.c: Update.
4425
4426 2018-07-03 Tom Tromey <tom@tromey.com>
4427
4428 * common/ptid.h (ptid_build): Don't declare.
4429 * common/ptid.c (ptid_build): Remove.
4430 * aix-thread.c: Update.
4431 * bsd-kvm.c: Update.
4432 * bsd-uthread.c: Update.
4433 * common/agent.c: Update.
4434 * common/ptid.c: Update.
4435 * common/ptid.h: Update.
4436 * corelow.c: Update.
4437 * darwin-nat.c: Update.
4438 * fbsd-nat.c: Update.
4439 * gnu-nat.c: Update.
4440 * linux-fork.c: Update.
4441 * linux-nat.c: Update.
4442 * linux-thread-db.c: Update.
4443 * nat/linux-osdata.c: Update.
4444 * nat/linux-procfs.c: Update.
4445 * nto-procfs.c: Update.
4446 * obsd-nat.c: Update.
4447 * proc-service.c: Update.
4448 * procfs.c: Update.
4449 * ravenscar-thread.c: Update.
4450 * remote-sim.c: Update.
4451 * remote.c: Update.
4452 * sol-thread.c: Update.
4453 * target.c: Update.
4454 * windows-nat.c: Update.
4455
4456 2018-07-03 Tom Tromey <tom@tromey.com>
4457
4458 * infrun.c (follow_exec): Use exit_inferior_silent.
4459 * inferior.c (exit_inferior_num_silent): Remove.
4460 * inferior.h (exit_inferior_num_silent): Don't declare.
4461
4462 2018-07-03 Tom Tromey <tom@tromey.com>
4463
4464 PR cli/23340:
4465 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4466 inferior_ptid on error.
4467
4468 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4469 Simon Marchi <simon.marchi@polymtl.ca>
4470
4471 PR tdep/8282
4472 * disasm.h (gdb_disassembler): Add
4473 `m_disassembler_options_holder'. member
4474 * disasm.c (get_all_disassembler_options): New function.
4475 (gdb_disassembler::gdb_disassembler): Use it.
4476 (gdb_buffered_insn_length_init_dis): Likewise.
4477 (gdb_buffered_insn_length): Adjust accordingly.
4478 (set_disassembler_options): Handle options with arguments.
4479 (show_disassembler_options_sfunc): Likewise. Add a leading new
4480 line if showing options with descriptions.
4481 (disassembler_options_completer): Adapt to using the
4482 `disasm_options_and_args_t' structure.
4483 * mips-tdep.c (mips_disassembler_options): New variable.
4484 (mips_disassembler_options_o32): Likewise.
4485 (mips_disassembler_options_n32): Likewise.
4486 (mips_disassembler_options_n64): Likewise.
4487 (gdb_print_insn_mips): Don't set `disassembler_options'.
4488 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4489 functions.
4490 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4491 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4492 `gdbarch_disassembler_options_implicit' and
4493 `gdbarch_valid_disassembler_options'.
4494 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4495 `disasm_options_and_args_t' structure.
4496 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4497 method.
4498 (valid_disassembler_options): Switch from `disasm_options_t' to
4499 the `disasm_options_and_args_t' structure.
4500 * NEWS: Document `set disassembler-options' support for the MIPS
4501 target.
4502 * gdbarch.h: Regenerate.
4503 * gdbarch.c: Regenerate.
4504
4505 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4506
4507 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4508
4509 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4510
4511 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4512 parameter in call to amd64_target_description.
4513 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4514 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4515 (amd64fbsd_init_abi): Likewise.
4516 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4517 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4518 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4519 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4520
4521 2018-06-29 Pedro Alves <palves@redhat.com>
4522
4523 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4524 "segments" parameter.
4525 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4526 (_initialize_amd64_tdep): Update call to
4527 amd64_create_target_description.
4528 (amd64_target_description): Add "segments" parameter. Adjust
4529 the implementation to use it.
4530 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4531 call to amd64_create_target_description.
4532 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4533 * gdb/arch/amd64.h (amd64_create_target_description): Add
4534 "segments" register.
4535 * gdb/arch/amd64.c (amd64_create_target_description): Add
4536 "segments" parameter. Call create_feature_i386_64bit_segments
4537 only if SEGMENTS is true.
4538 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4539 call to amd64_create_target_description.
4540
4541 2018-06-29 Pedro Alves <palves@redhat.com>
4542
4543 * thread.c (thread_target_id_str): New, factored out from ...
4544 (print_thread_info_1): ... here. Use it to compute the max
4545 "Target Id" column width.
4546
4547 2018-06-29 Pedro Alves <palves@redhat.com>
4548
4549 * remote.c (remote_target::extra_thread_info): Delete
4550 'display_buf' and 'n' locals. from the cache, regardless of
4551 packet mechanims is in use. Use cache for qThreadExtra and qP
4552 methods too.
4553
4554 2018-06-29 Pedro Alves <palves@redhat.com>
4555
4556 * blockframe.c (find_pc_sect_containing_function): New function.
4557 * breakpoint.c (print_breakpoint_location): Don't call
4558 find_pc_sect_function.
4559 * linespec.c (create_sals_line_offset): Record the location's
4560 symbol in the sal.
4561 * linespec.c (convert_address_location_to_sals): Fill in sal's
4562 symbol with find_pc_sect_containing_function.
4563 * symtab.c (find_function_start_sal): Rename to ...
4564 (find_function_start_sal_1): ... this.
4565 (find_function_start_sal): Reimplement as wrapper around
4566 find_function_start_sal_1, and use
4567 find_pc_sect_containing_function to fill in the sal's symbol.
4568 (find_function_start_sal(symbol*, bool)): Adjust.
4569 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4570 comments.
4571 (find_pc_sect_containing_function): Declare.
4572
4573 2018-06-29 Pedro Alves <palves@redhat.com>
4574
4575 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4576 true if the the location has no symbol.
4577
4578 2018-06-28 Tom Tromey <tom@tromey.com>
4579
4580 * NEWS: Mention --enable-codesign.
4581 * silent-rules.mk (ECHO_SIGN): New variable.
4582 * configure.ac: Add --enable-codesign.
4583 * configure: Rebuild.
4584 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4585 (gdb$(EXEEXT)): Optionally invoke codesign.
4586
4587 2018-06-28 Pedro Alves <palves@redhat.com>
4588
4589 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4590 comments.
4591 (switch_to_thread_no_regs): Adjust comment.
4592 * infcmd.c (stop_pc): Delete.
4593 (post_create_inferior, info_program_command): Replace references
4594 to stop_pc with references to thread_info->suspend.stop_pc.
4595 * inferior.h (stop_pc): Delete declaration.
4596 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4597 (handle_inferior_event_1, handle_signal_stop)
4598 (process_event_stop_test, keep_going_stepped_thread)
4599 (handle_step_into_function, handle_step_into_function_backward)
4600 (print_stop_location): Replace references to stop_pc with
4601 references to thread_info->suspend.stop_pc.
4602 (struct infcall_suspend_state) <stop_pc>: Delete field.
4603 (save_infcall_suspend_state, restore_infcall_suspend_state):
4604 Remove references to inf_stat->stop_pc.
4605 * linux-fork.c (fork_load_infrun_state): Likewise.
4606 * record-btrace.c (record_btrace_set_replay): Likewise.
4607 * record-full.c (record_full_goto_entry): Likewise.
4608 * remote.c (print_one_stopped_thread): Likewise.
4609 * target.c (target_resume): Extend comment.
4610 * thread.c (set_executing_thread): New.
4611 (set_executing): Use it.
4612 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4613 Remove references to stop_pc.
4614
4615 2018-06-28 Pedro Alves <palves@redhat.com>
4616
4617 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4618 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4619
4620 2018-06-28 Tom Tromey <tom@tromey.com>
4621
4622 * coffread.c (coff_symfile_finish): Update.
4623 * xcoffread.c (xcoff_symfile_finish): Update.
4624 * elfread.c (elf_symfile_finish): Update.
4625 * symfile.h (dwarf2_free_objfile): Don't declare.
4626 * dwarf2read.c (_initialize_dwarf2_read): Use
4627 register_objfile_data_with_cleanup.
4628 (dwarf2_free_objfile): Now static. Change signature.
4629
4630 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4631
4632 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4633 option "-o" to add-symbol-file-load to add an offset to each
4634 section's load address.
4635 * symfile.c (set_objfile_default_section_offset): New function.
4636
4637 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4638
4639 * symfile.c (add_symbol_file_command): Make sure that sections
4640 with the same name are sorted in the same order.
4641
4642 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4643
4644 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4645 require the second argument. If omitted, load sections at the
4646 addresses specified in the file.
4647
4648 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4649
4650 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4651 (_initialize_symfile): Add option "-o" to symbol-file to add an
4652 offset to each section of the symbol file.
4653
4654 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4655
4656 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4657
4658 2018-06-27 Tom Tromey <tom@tromey.com>
4659
4660 * stack.c (_initialize_stack): Update "func" help text.
4661
4662 2018-06-27 Tom Tromey <tom@tromey.com>
4663
4664 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4665 std::vector.
4666 (unwind_infopy_str, pyuw_create_unwind_info)
4667 (unwind_infopy_add_saved_register, pyuw_sniffer)
4668 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4669 Update.
4670 (struct saved_reg): Add constructor.
4671 <value>: Now a gdbpy_ref<>.
4672
4673 2018-06-27 Tom Tromey <tom@tromey.com>
4674
4675 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4676
4677 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4678
4679 * gdb-gdb.py.in: Format using autopep8.
4680
4681 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4682
4683 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4684 (type_lookup_function): Recognize CORE_ADDR values.
4685
4686 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4687
4688 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4689 print tag_name.
4690
4691 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4692
4693 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4694 <__lt__>: Add.
4695
4696 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4697
4698 * gdb-gdb.py: Move to...
4699 * gdb-gdb.py.in: ... here.
4700 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4701 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4702 dependencies.
4703 (distclean): Remove gdb-gdb.py when cleaning.
4704 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4705 * configure: Re-generate.
4706
4707 2018-06-27 Pedro Alves <palves@redhat.com>
4708
4709 * proc-service.c (get_ps_regcache): New.
4710 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4711 (ps_lsetfpregs): Use it.
4712
4713 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4714
4715 PR gdb/21695
4716 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4717 (dwarf_decode_lines_1): Adjust.
4718
4719 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4720
4721 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4722 override.
4723 <info_proc>: Likewise.
4724
4725 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4726
4727 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4728 to windows_fetch_one_register, and only handle the case of
4729 fetching one register. Move the code that reloads the context
4730 and iterates over all registers if R is negative to...
4731 (windows_nat_target::fetch_registers): ... here.
4732 (do_windows_store_inferior_registers): Rename to
4733 windows_store_one_register, and only handle the case of storing
4734 one register. Move the code that handles the case where r is
4735 negative to...
4736 (windows_nat_target::store_registers) ... here.
4737
4738 2018-06-26 Tom Tromey <tom@tromey.com>
4739
4740 PR rust/22574:
4741 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4742 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4743 Update.
4744 (rust_internal_print_type): Add podata parameter.
4745 (rust_print_type): Update.
4746
4747 2018-06-26 Tom Tromey <tom@tromey.com>
4748
4749 * typeprint.h (struct print_offset_data) <update, finish,
4750 maybe_print_hole>: New methods.
4751 <indentation>: New constant.
4752 * typeprint.c (print_offset_data::indentation): Define.
4753 (print_offset_data::maybe_print_hole, print_offset_data::update)
4754 (print_offset_data::finish): Move from c-typeprint.c and rename.
4755 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4756 (print_spaces_filtered_with_print_options): Update.
4757 (c_print_type_union_field_offset, maybe_print_hole)
4758 (c_print_type_struct_field_offset): Move to typeprint.c and
4759 rename.
4760 (c_type_print_base_struct_union): Update.
4761
4762 2018-06-25 Pedro Alves <palves@redhat.com>
4763
4764 * gdbthread.h (thread_info_ref, delete_thread)
4765 (delete_thread_silent, first_thread_of_inferior)
4766 (any_thread_of_inferior, switch_to_thread)
4767 (enable_thread_stack_temporaries)
4768 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4769 (get_last_thread_stack_temporary)
4770 (value_in_thread_stack_temporaries, can_access_registers_thread):
4771 Spell out "struct thread_info" instead of just "thread_info".
4772 * inferior.h (notice_new_inferior): Likewise.
4773
4774 2018-06-25 Pedro Alves <palves@redhat.com>
4775
4776 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4777 pass thread_info pointer to delete_thread.
4778 (windows_nat_target::detach): Pass inferior pointer to
4779 detach_inferior.
4780 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4781 delete_thread.
4782 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4783 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4784 and pass a thread_info pointer to delete_thread.
4785 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4786 pass thread_info pointer to delete_thread.
4787 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4788 delete_thread_silent call.
4789 * procfs.c (procfs_target::detach): Pass inferior pointer to
4790 detach_inferior.
4791 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4792 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4793 delete_thread_silent call.
4794 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4795 pass thread_info pointer to delete_thread.
4796 (windows_nat_target::detach): Pass inferior pointer to
4797 delete_inferior.
4798
4799 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4800
4801 * regcache.c (readable_regcache::read_part): Fix asserts.
4802 (reg_buffer::raw_collect_part): New function.
4803 (regcache::write_part): Fix asserts.
4804 (reg_buffer::raw_supply_part): New function.
4805 (regcache::transfer_regset_register): New helper function.
4806 (regcache::transfer_regset): Call new functions.
4807 (regcache_supply_regset): Use gdb_byte*.
4808 (regcache::supply_regset): Likewise.
4809 (regcache_collect_regset): Likewise.
4810 (regcache::collect_regset): Likewise.
4811 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4812 (reg_buffer::raw_supply_part): Likewise.
4813 (regcache::transfer_regset_register): Likewise.
4814 (regcache::transfer_regset): Use gdb_byte*.
4815
4816 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4817
4818 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4819
4820 2018-06-21 Pedro Alves <palves@redhat.com>
4821
4822 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4823 instead of a ptid_t. All callers adjusted.
4824 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4825 adjusted.
4826 (print_ada_task_info, display_current_task_id, task_command_1):
4827 Adjust.
4828 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4829 inferior_thread.
4830 (breakpoint_kind): Adjust.
4831 (remove_breakpoints_pid): Rename to ...
4832 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4833 pointer. All callers adjusted.
4834 (bpstat_clear_actions): Use inferior_thread.
4835 (get_bpstat_thread): New.
4836 (bpstat_do_actions): Use it.
4837 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4838 to take a thread_info pointer. All callers adjusted.
4839 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4840 (breakpoint_re_set_thread): Use inferior_thread.
4841 * breakpoint.h (struct inferior): Forward declare.
4842 (bpstat_stop_status): Update.
4843 (remove_breakpoints_pid): Delete.
4844 (remove_breakpoints_inf): New.
4845 * bsd-uthread.c (bsd_uthread_target::wait)
4846 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4847 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4848 (maint_btrace_packet_history_cmd)
4849 (maint_btrace_clear_packet_history_cmd): Adjust.
4850 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4851 inferior_thread.
4852 * cli/cli-interp.c: Include "inferior.h".
4853 * common/refcounted-object.h (struct
4854 refcounted_object_ref_policy): New.
4855 * compile/compile-object-load.c: Include gdbthread.h.
4856 (store_regs): Use inferior_thread.
4857 * corelow.c (core_target::close): Use current_inferior.
4858 (core_target_open): Adjust to use first_thread_of_inferior and use
4859 the current inferior.
4860 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4861 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4862 <thread>: ... this new field. All references adjusted.
4863 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4864 Take a thread_info pointer instead of a ptid_t.
4865 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4866 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4867 thread_info pointer instead of a ptid_t.
4868 * elfread.c: Include "inferior.h".
4869 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4870 Use inferior_thread.
4871 * eval.c (evaluate_subexp): Likewise.
4872 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4873 inferior_thread.
4874 * gdb_proc_service.h (struct thread_info): Forward declare.
4875 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4876 <thread>: ... this new field. All references adjusted.
4877 * gdbarch.h, gdbarch.c: Regenerate.
4878 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4879 'thread' parameter. All implementations and callers adjusted.
4880 * gdbthread.h (thread_info) <set_running>: New method.
4881 (delete_thread, delete_thread_silent): Take a thread_info pointer
4882 instead of a ptid.
4883 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4884 (first_thread_of_process): Delete, replaced by ...
4885 (first_thread_of_inferior): ... this new function. All callers
4886 adjusted.
4887 (any_live_thread_of_process): Delete, replaced by ...
4888 (any_live_thread_of_inferior): ... this new function. All callers
4889 adjusted.
4890 (switch_to_thread, switch_to_no_thread): Declare.
4891 (is_executing): Delete.
4892 (enable_thread_stack_temporaries): Update comment.
4893 <enable_thread_stack_temporaries>: Take a thread_info pointer
4894 instead of a ptid_t. Incref the thread.
4895 <~enable_thread_stack_temporaries>: Decref the thread.
4896 <m_ptid>: Delete
4897 <m_thr>: New.
4898 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4899 (get_last_thread_stack_temporary)
4900 (value_in_thread_stack_temporaries, can_access_registers_thread):
4901 Take a thread_info pointer instead of a ptid_t. All callers
4902 adjusted.
4903 * infcall.c (get_call_return_value): Use inferior_thread.
4904 (run_inferior_call): Work with thread pointers instead of ptid_t.
4905 (call_function_by_hand_dummy): Work with thread pointers instead
4906 of ptid_t. Use thread_info_ref.
4907 * infcmd.c (proceed_thread_callback): Access thread's state
4908 directly.
4909 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4910 access thread's state directly.
4911 (continue_command): Use inferior_thread.
4912 (info_program_command): Use find_thread_ptid and access thread
4913 state directly.
4914 (proceed_after_attach_callback): Use thread state directly.
4915 (notice_new_inferior): Take a thread_info pointer instead of a
4916 ptid_t. All callers adjusted.
4917 (exit_inferior): Take an inferior pointer instead of a pid. All
4918 callers adjusted.
4919 (exit_inferior_silent): New.
4920 (detach_inferior): Delete.
4921 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4922 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4923 (detach_inferior_command, kill_inferior_command): Use
4924 find_inferior_id instead of valid_gdb_inferior_id and
4925 gdb_inferior_id_to_pid.
4926 (inferior_command): Use inferior and thread pointers.
4927 * inferior.h (struct thread_info): Forward declare.
4928 (notice_new_inferior): Take a thread_info pointer instead of a
4929 ptid_t. All callers adjusted.
4930 (detach_inferior): Delete declaration.
4931 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4932 instead of a pid. All callers adjusted.
4933 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4934 (valid_gdb_inferior_id): Delete.
4935 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4936 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4937 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4938 ...
4939 <inf>: ... this new field.
4940 <step_ptid>: Delete, replaced by ...
4941 <step_thread>: ... this new field.
4942 (get_displaced_stepping_state): Take an inferior pointer instead
4943 of a pid. All callers adjusted.
4944 (displaced_step_in_progress_any_inferior): Adjust.
4945 (displaced_step_in_progress_thread): Take a thread pointer instead
4946 of a ptid_t. All callers adjusted.
4947 (displaced_step_in_progress, add_displaced_stepping_state): Take
4948 an inferior pointer instead of a pid. All callers adjusted.
4949 (get_displaced_step_closure_by_addr): Adjust.
4950 (remove_displaced_stepping_state): Take an inferior pointer
4951 instead of a pid. All callers adjusted.
4952 (displaced_step_prepare_throw, displaced_step_prepare)
4953 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4954 All callers adjusted.
4955 (start_step_over): Adjust.
4956 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4957 displaced step queue.
4958 (do_target_resume): Adjust.
4959 (fetch_inferior_event): Use inferior_thread.
4960 (context_switch, get_inferior_stop_soon): Take an
4961 execution_control_state pointer instead of a ptid_t. All callers
4962 adjusted.
4963 (switch_to_thread_cleanup): Delete.
4964 (stop_all_threads): Use scoped_restore_current_thread.
4965 * inline-frame.c: Include "gdbthread.h".
4966 (inline_state) <inline_state>: Take a thread pointer instead of a
4967 ptid_t. All callers adjusted.
4968 <ptid>: Delete, replaced by ...
4969 <thread>: ... this new field.
4970 (find_inline_frame_state): Take a thread pointer instead of a
4971 ptid_t. All callers adjusted.
4972 (skip_inline_frames, step_into_inline_frame)
4973 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4974 pointer instead of a ptid_t. All callers adjusted.
4975 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4976 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4977 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4978 pointers directly.
4979 * linux-nat.c (get_detach_signal): Likewise.
4980 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4981 (thread_db_notice_clone): Adjust.
4982 (thread_db_find_new_threads_silently)
4983 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4984 a thread pointer instead of a ptid_t. All callers adjusted.
4985 * mi/mi-cmd-var.c: Include "inferior.h".
4986 (mi_cmd_var_update_iter): Update to use thread pointers.
4987 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4988 inferior directly.
4989 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4990 out to ...
4991 (mi_output_running): ... this new function.
4992 (mi_on_resume_1): Adjust to use it.
4993 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4994 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4995 directly.
4996 (interrupt_thread_callback): : Adjust to use thread and inferior
4997 pointers.
4998 * proc-service.c: Include "gdbthread.h".
4999 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5000 * progspace-and-thread.c: Include "inferior.h".
5001 * progspace.c: Include "inferior.h".
5002 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5003 hold a reference to an inferior_object.
5004 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5005 inferior_thread.
5006 * python/py-inferior.c (struct inferior_object): Give the type a
5007 tag name instead of a typedef.
5008 (python_on_normal_stop): No need to check if the current thread is
5009 listed.
5010 (inferior_to_inferior_object): Change return type to
5011 inferior_object. All callers adjusted.
5012 (find_thread_object): Delete, bits factored out to ...
5013 (thread_to_thread_object): ... this new function.
5014 * python/py-infthread.c (create_thread_object): Use
5015 inferior_to_inferior_object.
5016 (thpy_is_stopped): Use thread pointer directly.
5017 (gdbpy_selected_thread): Use inferior_thread.
5018 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5019 field, replaced with ...
5020 <thread>: ... this new field. All users adjusted.
5021 (btpy_insn_or_gap_new): Drop const.
5022 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5023 callers adjusted.
5024 * python/py-record.c: Include "gdbthread.h".
5025 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5026 a ptid_t. All callers adjusted.
5027 (gdbpy_current_recording): Use inferior_thread.
5028 * python/py-record.h (recpy_record_object) <ptid>: Delete
5029 field, replaced with ...
5030 <thread>: ... this new field. All users adjusted.
5031 (recpy_element_object) <ptid>: Delete
5032 field, replaced with ...
5033 <thread>: ... this new field. All users adjusted.
5034 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5035 a ptid_t. All callers adjusted.
5036 * python/py-threadevent.c: Include "gdbthread.h".
5037 (get_event_thread): Use thread_to_thread_object.
5038 * python/python-internal.h (struct inferior_object): Forward
5039 declare.
5040 (find_thread_object, find_inferior_object): Delete declarations.
5041 (thread_to_thread_object, inferior_to_inferior_object): New
5042 declarations.
5043 * record-btrace.c: Include "inferior.h".
5044 (require_btrace_thread): Use inferior_thread.
5045 (record_btrace_frame_sniffer)
5046 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5047 (get_thread_current_frame): Use scoped_restore_current_thread and
5048 switch_to_thread.
5049 (get_thread_current_frame): Use thread pointer directly.
5050 (record_btrace_replay_at_breakpoint): Use thread's inferior
5051 pointer directly.
5052 * record-full.c: Include "inferior.h".
5053 * regcache.c: Include "gdbthread.h".
5054 (get_thread_arch_regcache): Use the inferior's address space
5055 directly.
5056 (get_thread_regcache, registers_changed_thread): New.
5057 * regcache.h (get_thread_regcache(thread_info *thread)): New
5058 overload.
5059 (registers_changed_thread): New.
5060 (remote_target) <remote_detach_1>: Swap order of parameters.
5061 (remote_add_thread): <remote_add_thread>: Return the new thread.
5062 (get_remote_thread_info(ptid_t)): New overload.
5063 (remote_target::remote_notice_new_inferior): Use thread pointers
5064 directly.
5065 (remote_target::process_initial_stop_replies): Use
5066 thread_info::set_running.
5067 (remote_target::remote_detach_1, remote_target::detach)
5068 (extended_remote_target::detach): Adjust.
5069 * stack.c (frame_show_address): Use inferior_thread.
5070 * target-debug.h (target_debug_print_thread_info_pp): New.
5071 * target-delegates.c: Regenerate.
5072 * target.c (default_thread_address_space): Delete.
5073 (memory_xfer_partial_1): Use current_inferior.
5074 (target_detach): Use current_inferior.
5075 (target_thread_address_space): Delete.
5076 (generic_mourn_inferior): Use current_inferior.
5077 * target.h (struct target_ops) <thread_address_space>: Delete.
5078 (target_thread_address_space): Delete.
5079 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5080 pointers directly.
5081 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5082 thread pointer instead of a ptid_t. Adjust all callers.
5083 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5084 (first_thread_of_process): Delete, replaced by ...
5085 (first_thread_of_inferior): ... this new function. All callers
5086 adjusted.
5087 (any_thread_of_process): Rename to ...
5088 (any_thread_of_inferior): ... this, and take an inferior pointer.
5089 (any_live_thread_of_process): Rename to ...
5090 (any_live_thread_of_inferior): ... this, and take an inferior
5091 pointer.
5092 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5093 (value_in_thread_stack_temporaries)
5094 (get_last_thread_stack_temporary): Take a thread pointer instead
5095 of a ptid_t. Adjust all callers.
5096 (thread_info::set_running): New.
5097 (validate_registers_access): Use inferior_thread.
5098 (can_access_registers_ptid): Rename to ...
5099 (can_access_registers_thread): ... this, and take a thread
5100 pointer.
5101 (print_thread_info_1): Adjust to compare thread pointers instead
5102 of ptids.
5103 (switch_to_no_thread, switch_to_thread): Make extern.
5104 (scoped_restore_current_thread::~scoped_restore_current_thread):
5105 Use m_thread pointer directly.
5106 (scoped_restore_current_thread::scoped_restore_current_thread):
5107 Use inferior_thread.
5108 (thread_command): Use thread pointer directly.
5109 (thread_num_make_value_helper): Use inferior_thread.
5110 * top.c (execute_command): Use inferior_thread.
5111 * tui/tui-interp.c: Include "inferior.h".
5112 * varobj.c (varobj_create): Use inferior_thread.
5113 (value_of_root_1): Use find_thread_global_id instead of
5114 global_thread_id_to_ptid.
5115
5116 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5117
5118 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5119 possible.
5120 (regcache::write_part): Likewise.
5121 (readable_regcache::cooked_read_part): Update comment.
5122 (readable_regcache::cooked_write_part): Likewise.
5123 * regcache.h: (readable_regcache::read_part): Likewise.
5124 (regcache::write_part): Likewise.
5125
5126 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5127 Dirk Schubert <dirk.schubert@arm.com>
5128
5129 * aarch64-linux-nat.c (post_attach): New.
5130 (aarch64_linux_nat_target::post_attach): Override post_attach to
5131 record the number of hardware debug registers.
5132
5133 2018-06-20 Tom Tromey <tom@tromey.com>
5134
5135 * python/py-param.c (add_setshow_generic): Make parameters const.
5136 (parmpy_init): Update.
5137
5138 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5139
5140 * regcache.h (regcache_cooked_read_ftype): Rename to...
5141 (register_read_ftype): ...this, change type to function_view.
5142 (class reg_buffer) <save>: Remove src parameter.
5143 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5144 parameter non-const in first overload. Remove src parameter in
5145 second overload.
5146 * regcache.c (do_cooked_read): Remove.
5147 (readonly_detached_regcache::readonly_detached_regcache): Make
5148 parameter non-const, adjust call to other constructor.
5149 (reg_buffer::save): Remove src parameter.
5150 * frame.c (do_frame_register_read): Remove.
5151 (frame_save_as_regcache): Use lambda function.
5152 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5153 parameter to ppu2spu_data *.
5154 (ppu2spu_sniffer): Use lambda function.
5155
5156 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5157
5158 * record-full.c (record_full_target::insert_breakpoint): Remove
5159 "struct" keyword, add const.
5160
5161 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5162
5163 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5164 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5165 * configure.ac: Remove AC_PREREQ, add missing quoting.
5166 * gnulib/configure.ac: Modernize usage of
5167 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5168 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5169 (AUTOMAKE_VERSION): Bump to 1.15.1.
5170 * configure: Re-generate.
5171 * config.in: Re-generate.
5172 * aclocal.m4: Re-generate.
5173 * gnulib/aclocal.m4: Re-generate.
5174 * gnulib/config.in: Re-generate.
5175 * gnulib/configure: Re-generate.
5176 * gnulib/import/Makefile.in: Re-generate.
5177
5178 2018-06-19 Pedro Alves <palves@redhat.com>
5179
5180 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5181 (lookup_minimal_symbol_by_pc_section): ... here with
5182 gdb_assert_not_reached added.
5183
5184 2018-06-19 Pedro Alves <palves@redhat.com>
5185
5186 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5187 parameter with a block parameter. Compare location's block symbol
5188 with the frame's block instead of addresses.
5189 (skip_inline_frames): Pass the current block instead of the
5190 frame's address. Break out as soon as we determine the frame
5191 should not be skipped.
5192
5193 2018-06-18 Tom Tromey <tom@tromey.com>
5194
5195 * solib-aix.c (solib_aix_get_section_offsets): Return
5196 unique_xmalloc_ptr.
5197 (solib_aix_solib_create_inferior_hook): Update.
5198
5199 2018-06-18 Tom Tromey <tom@tromey.com>
5200
5201 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5202
5203 2018-06-18 Tom Tromey <tom@tromey.com>
5204
5205 * solib-frv.c (frv_relocate_main_executable): Use
5206 unique_xmalloc_ptr.
5207 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5208 unique_xmalloc_ptr.
5209
5210 2018-06-18 Tom Tromey <tom@tromey.com>
5211
5212 * objfiles.h (inhibit_section_map_updates): Update.
5213 (resume_section_map_updates, resume_section_map_updates_cleanup):
5214 Remove.
5215 * solib-svr4.c (svr4_handle_solib_event): Update.
5216 * objfiles.c (inhibit_section_map_updates): Return
5217 scoped_restore_tmpl<int>.
5218 (resume_section_map_updates, resume_section_map_updates_cleanup):
5219 Remove.
5220
5221 2018-06-18 Tom Tromey <tom@tromey.com>
5222
5223 * valprint.h (read_string): Update.
5224 * valprint.c (read_string): Change type of "buffer".
5225 (val_print_string): Update.
5226 * python/py-value.c (valpy_string): Update.
5227 * language.h (struct language_defn) <la_get_string>: Change
5228 type of "buffer".
5229 (default_get_string, c_get_string): Update.
5230 * language.c (default_get_string): Change type of "buffer".
5231 * guile/scm-value.c (gdbscm_value_to_string): Update.
5232 * c-lang.c (c_get_string): Change type of "buffer".
5233
5234 2018-06-18 Tom Tromey <tom@tromey.com>
5235
5236 * ser-mingw.c (struct pipe_state_destroyer): New.
5237 (pipe_state_up): New typedef.
5238 (cleanup_pipe_state): Remove.
5239 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5240
5241 2018-06-18 Tom Tromey <tom@tromey.com>
5242
5243 * rust-lang.h (rust_yyerror): Don't declare.
5244 * rust-lang.c (rust_language_defn): Update.
5245 * rust-exp.y (yyerror): Now static.
5246 * parse.c (parse_exp_in_context_1): Update.
5247 * p-lang.h (p_yyerror): Don't declare.
5248 * p-lang.c (p_language_defn): Update.
5249 * p-exp.y (yyerror): Now static.
5250 * opencl-lang.c (opencl_language_defn): Update.
5251 * objc-lang.c (objc_language_defn): Update.
5252 * m2-lang.h (m2_yyerror): Don't declare.
5253 * m2-lang.c (m2_language_defn): Update.
5254 * m2-exp.y (yyerror): Now static.
5255 * language.h (struct language_defn) <la_error>: Remove.
5256 * language.c (unk_lang_error): Remove.
5257 (unknown_language_defn, auto_language_defn): Remove.
5258 * go-lang.h (go_yyerror): Don't declare.
5259 * go-lang.c (go_language_defn): Update.
5260 * go-exp.y (yyerror): Now static.
5261 * f-lang.h (f_yyerror): Don't declare.
5262 * f-lang.c (f_language_defn): Update.
5263 * f-exp.y (yyerror): Now static.
5264 * d-lang.h (d_yyerror): Don't declare.
5265 * d-lang.c (d_language_defn): Update.
5266 * d-exp.y (yyerror): Now static.
5267 * c-lang.h (c_yyerror): Don't declare.
5268 * c-lang.c (c_language_defn, cplus_language_defn)
5269 (asm_language_defn, minimal_language_defn): Update.
5270 * c-exp.y (yyerror): Now static.
5271 * ada-lang.h (ada_yyerror): Don't declare.
5272 * ada-lang.c (ada_language_defn): Update.
5273 * ada-exp.y (yyerror): Now static.
5274
5275 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5276
5277 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5278 (store_sveregs_to_thread): Likewise.
5279 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5280 (aarch64_linux_store_inferior_registers): Likewise.
5281 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5282 function.
5283 (aarch64_sve_regs_copy_to_regcache): Likewise.
5284 (aarch64_sve_regs_copy_from_regcache): Likewise.
5285 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5286 declaration.
5287 (aarch64_sve_regs_copy_to_regcache): Likewise.
5288 (aarch64_sve_regs_copy_from_regcache): Likewise.
5289 (sve_context): Structure from Linux headers.
5290 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5291 (SVE_SIG_ZREG_SIZE): Likewise.
5292 (SVE_SIG_PREG_SIZE): Likewise.
5293 (SVE_SIG_FFR_SIZE): Likewise.
5294 (SVE_SIG_REGS_OFFSET): Likewise.
5295 (SVE_SIG_ZREGS_OFFSET): Likewise.
5296 (SVE_SIG_ZREG_OFFSET): Likewise.
5297 (SVE_SIG_ZREGS_SIZE): Likewise.
5298 (SVE_SIG_PREGS_OFFSET): Likewise.
5299 (SVE_SIG_PREG_OFFSET): Likewise.
5300 (SVE_SIG_PREGS_SIZE): Likewise.
5301 (SVE_SIG_FFR_OFFSET): Likewise.
5302 (SVE_SIG_REGS_SIZE): Likewise.
5303 (SVE_SIG_CONTEXT_SIZE): Likewise.
5304 (SVE_PT_REGS_MASK): Likewise.
5305 (SVE_PT_REGS_FPSIMD): Likewise.
5306 (SVE_PT_REGS_SVE): Likewise.
5307 (SVE_PT_VL_INHERIT): Likewise.
5308 (SVE_PT_VL_ONEXEC): Likewise.
5309 (SVE_PT_REGS_OFFSET): Likewise.
5310 (SVE_PT_FPSIMD_OFFSET): Likewise.
5311 (SVE_PT_FPSIMD_SIZE): Likewise.
5312 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5313 (SVE_PT_SVE_PREG_SIZE): Likewise.
5314 (SVE_PT_SVE_FFR_SIZE): Likewise.
5315 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5316 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5317 (__SVE_SIG_TO_PT): Likewise.
5318 (SVE_PT_SVE_OFFSET): Likewise.
5319 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5320 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5321 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5322 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5323 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5324 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5325 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5326 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5327 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5328 (SVE_PT_SVE_SIZE): Likewise.
5329 (SVE_PT_SIZE): Likewise.
5330 (HAS_SVE_STATE): New define.
5331
5332 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5333
5334 * nat/aarch64-sve-linux-sigcontext.h: New file.
5335 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5336 new files.
5337 (SVE_VQ_MIN): Likewise.
5338 (SVE_VQ_MAX): Likewise.
5339 (SVE_VL_MIN): Likewise.
5340 (SVE_VL_MAX): Likewise.
5341 (SVE_NUM_ZREGS): Likewise.
5342 (SVE_NUM_PREGS): Likewise.
5343 (sve_vl_valid): Likewise.
5344 (struct user_sve_header): Likewise.
5345
5346 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5347 Richard Bunt <Richard.Bunt@arm.com>
5348
5349 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5350 was requested by GDB.
5351
5352 2018-06-15 Tom de Vries <tdevries@suse.de>
5353
5354 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5355
5356 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5357
5358 * gnulib/update-gnulib.sh: Print expected versions of
5359 autoconf/aclocal.
5360
5361 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5362
5363 * arch-utils.c (default_type_align): Use type_length_units.
5364 * gdbtypes.c (type_align): Use type_length_units.
5365
5366 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5367
5368 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5369 of 'define' command.
5370
5371 2018-06-14 Tom de Vries <tdevries@suse.de>
5372
5373 PR cli/22573
5374 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5375 get_no_prettyformat_print_options.
5376
5377 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5378
5379 * sparc-nat.h: Include target.h.
5380 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5381 <fetch_registers>: Remove this argument in function call.
5382 <store_registers>: Remove this argument in function call, remove
5383 extra semicolon.
5384 <low_forget_process>: Call sparc64_forget_process instead of
5385 sparc_forget_process.
5386
5387 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5388
5389 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5390 (procfs_target::make_corefile_notes): Adjust to new
5391 target_read_alloc return type.
5392
5393 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5394 Stephen Roberts <stephen.roberts@arm.com>
5395
5396 PR gdb/22882
5397 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5398 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5399 Move should_notify_stop local into more inner scope.
5400
5401 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5402 Stephen Roberts <stephen.roberts@arm.com>
5403
5404 PR gdb/22882
5405 * infrun.c (resume_1): Add call to mark_async_event_handler.
5406
5407 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5408
5409 * infrun.c (do_target_wait): Change old version of $pc printed.
5410
5411 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5412
5413 * dwarf2read.c (read_index_from_section): Rename to...
5414 (read_gdb_index_from_section): ... this, update all callers.
5415 (dwarf2_read_index): Rename to...
5416 (dwarf2_read_gdb_index): ... this, update all callers.
5417
5418 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5419
5420 * gdb/hppa-linux-nat.c
5421 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5422 hppa_linux_nat_target::fetch_registers.
5423
5424 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5425
5426 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5427 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5428 (AARCH64_DWARF_SVE_FFR): Likewise.
5429 (AARCH64_DWARF_SVE_P0): Likewise.
5430 (AARCH64_DWARF_SVE_Z0): Likewise.
5431
5432 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5433
5434 * common/common-regcache.h (raw_compare): New function.
5435 * regcache.c (regcache::raw_compare): Likewise.
5436 * regcache.h (regcache::raw_compare): New declaration.
5437
5438 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5439
5440 * common/common-regcache.h (reg_buffer_common): New structure.
5441 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5442 (reg_buffer::raw_supply): Likewise.
5443 (reg_buffer::raw_supply_integer): Likewise.
5444 (reg_buffer::raw_supply_zeroed): Likewise.
5445 (reg_buffer::raw_collect): Likewise.
5446 (reg_buffer::raw_collect_integer): Likewise.
5447 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5448 (reg_buffer::raw_supply): Likewise.
5449 (reg_buffer::raw_supply_integer): Likewise.
5450 (reg_buffer::raw_supply_zeroed): Likewise.
5451 (reg_buffer::raw_collect): Likewise.
5452 (reg_buffer::raw_collect_integer): Likewise.
5453
5454 2018-06-10 Tom Tromey <tom@tromey.com>
5455
5456 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5457 (class remote_state) <stop_reply_queue>: Now std::vector.
5458 (remote_state::~remote_state)
5459 (remote_target::stop_reply_queue_length): Update.
5460 (struct queue_iter_param, remove_child_of_pending_fork)
5461 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5462 (check_pending_event_prevents_wildcard_vcont_callback)
5463 (remove_stop_reply_for_inferior)
5464 (remove_stop_reply_of_remote_state)
5465 (remote_notif_remove_once_on_match)
5466 (stop_reply_match_ptid_and_ws)
5467 (remote_kill_child_of_pending_fork): Remove.
5468 (remote_target::remove_new_fork_children)
5469 (remote_target::check_pending_events_prevent_wildcard_vcont)
5470 (remote_target::discard_pending_stop_replies)
5471 (remote_target::discard_pending_stop_replies_in_queue)
5472 (remote_target::remote_notif_remove_queued_reply)
5473 (remote_target::queued_stop_reply)
5474 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5475 (remote_target::wait, remote_target::kill_new_fork_children)
5476 (remote_target::async): Update.
5477
5478 2018-06-10 Tom Tromey <tom@tromey.com>
5479
5480 * record-full.c (record_full_arch_list_cleanups): Remove.
5481 (record_full_message): Use try/catch.
5482 (record_full_wait_cleanups): Remove.
5483 (record_full_wait_1): Use try/catch.
5484 (record_full_restore): Likewise.
5485
5486 2018-06-10 Tom Tromey <tom@tromey.com>
5487
5488 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5489 declare VEC. Add constructor.
5490 <in_target_beneath>: Now bool.
5491 (record_full_breakpoints): Now a std::vector, static.
5492 (record_full_sync_record_breakpoints)
5493 (record_full_init_record_breakpoints)
5494 (record_full_target::insert_breakpoint)
5495 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5496
5497 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5498
5499 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5500 * serial.c (serial_interface_lookup): Remove struct keyword.
5501
5502 2018-06-10 Tom Tromey <tom@tromey.com>
5503
5504 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5505 method.
5506 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5507 a method.
5508 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5509 method.
5510 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5511 "beneath" as a method.
5512 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5513 Use "beneath" as a method.
5514
5515 2018-06-10 Tom Tromey <tom@tromey.com>
5516
5517 * tracefile.c (struct trace_file_writer_deleter): New.
5518 <operator()>: Rename from trace_file_writer_xfree.
5519 (trace_file_writer_up): New typedef.
5520 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5521
5522 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5523
5524 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5525 <m_registers, m_register_status>: Change type to
5526 std::unique_ptr.
5527 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5528 XCNEWVEC.
5529
5530 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5531
5532 * common/common-regcache.h (enum register_status): Add
5533 underlying type "signed char".
5534 * regcache.h (reg_buffer) <m_register_status>: Change type to
5535 register_status *.
5536 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5537 register_status instead of signed char.
5538 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5539 (reg_buffer::get_register_status): Remove cast.
5540 (readable_regcache::raw_read): Remove cast.
5541 (readable_regcache::cooked_read): Remove cast.
5542
5543 2018-06-09 Tom Tromey <tom@tromey.com>
5544
5545 * source.c (reverse_search_command, forward_search_command): Use
5546 scoped_fd.
5547
5548 2018-06-09 Tom Tromey <tom@tromey.com>
5549
5550 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5551 (serial_ops_list): Now static, std::vector.
5552 (serial_interface_lookup, serial_add_interface): Update.
5553
5554 2018-06-09 Tom Tromey <tom@tromey.com>
5555
5556 * dwarf2read.c (process_cu_includes): Update.
5557 (process_full_comp_unit): Update.
5558 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5559 std::vector.
5560
5561 2018-06-08 Paul Koning <paul_koning@dell.com>
5562
5563 PR gdb/23252
5564
5565 * python/python.c (do_start_initialization):
5566 Avoid call to internal Python API.
5567 (init__gdb_module): New function.
5568
5569 2018-06-08 Gary Benson <gbenson@redhat.com>
5570
5571 * linux-thread-db.c (valprint.h): New include.
5572 (struct check_thread_db_info): New structure.
5573 (check_thread_db_on_load, tdb_testinfo): New static globals.
5574 (check_thread_db, check_thread_db_callback): New functions.
5575 (try_thread_db_load_1): Run integrity checks if requested.
5576 (maintenance_check_libthread_db): New function.
5577 (_initialize_thread_db): Register "maint check libthread-db"
5578 and "maint set/show check-libthread-db".
5579 * NEWS: Mention the above new commands.
5580
5581 2018-06-08 Tom Tromey <tom@tromey.com>
5582
5583 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5584 now a method.
5585
5586 2018-06-08 Tom Tromey <tom@tromey.com>
5587
5588 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5589
5590 2018-06-08 Tom Tromey <tom@tromey.com>
5591
5592 * common/btrace-common.h (struct btrace_data): Add constructor,
5593 destructor, move assignment operator.
5594 <empty, clear, fini>: New methods.
5595 <format>: Initialize.
5596 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5597 (btrace_data_empty): Don't declare.
5598 * common/btrace-common.c (btrace_data_init): Remove.
5599 (btrace_data::fini): Rename from btrace_data_fini.
5600 (btrace_data::empty): Rename from btrace_data_empty.
5601 (btrace_data::clear): Rename from btrace_data_clear. Return
5602 bool.
5603 * btrace.h (make_cleanup_btrace_data): Don't declare.
5604 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5605 (parse_xml_btrace): Update.
5606 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5607 (maint_btrace_clear_packet_history_cmd): Update.
5608
5609 2018-06-07 Pedro Alves <palves@redhat.com>
5610
5611 * target.h (target_ops) <beneath>: Now a method. All references
5612 updated.
5613 (class target_stack): New.
5614 * target.c (g_target_stack): New.
5615 (g_current_top_target): Delete.
5616 (current_top_target): Get the top target out of g_target_stack.
5617 (target_stack::push, target_stack::unpush): New.
5618 (push_target, unpush_target): Reimplement.
5619 (target_is_pushed): Reimplement in terms of g_target_stack.
5620 (target_ops::beneath, target_stack::find_beneath): New.
5621
5622 2018-06-07 Pedro Alves <palves@redhat.com>
5623
5624 * target.h (find_target_beneath): Delete declaration.
5625 * target.c (find_target_beneath): Delete definition.
5626 * aix-thread.c: All callers of find_target_beneath adjusted to
5627 call target_ops::beneath instead.
5628 * bsd-uthread.c: Likewise.
5629 * linux-thread-db.c: Likewise.
5630 * ravenscar-thread.c: Likewise.
5631 * sol-thread.c: Likewise.
5632 * spu-multiarch.c: Likewise.
5633
5634 2018-06-07 Pedro Alves <palves@redhat.com>
5635
5636 * target.h (target_ops) <beneath>: Now a method. All references
5637 updated.
5638 (target_ops) <m_beneath>: New.
5639 * target.c (target_ops::beneath): New.
5640 * corelow.c: Adjust all references to target_ops::beneath.
5641 * linux-thread-db.c: Likewise.
5642 * make-target-delegates: Likewise.
5643 * record-btrace.c: Likewise.
5644 * record-full.c: Likewise.
5645 * remote.c: Likewise.
5646 * target.c: Likewise.
5647 * target-delegates.c: Regenerate.
5648
5649 2018-06-07 Pedro Alves <palves@redhat.com>
5650
5651 * target.h (target_stack): Delete.
5652 (current_top_target): Declare function.
5653 * target.c (target_stack): Delete.
5654 (g_current_top_target): New.
5655 (current_top_target): New function.
5656 * auxv.c: Use current_top_target instead of target_stack
5657 throughout.
5658 * avr-tdep.c: Likewise.
5659 * breakpoint.c: Likewise.
5660 * corefile.c: Likewise.
5661 * elfread.c: Likewise.
5662 * eval.c: Likewise.
5663 * exceptions.c: Likewise.
5664 * frame.c: Likewise.
5665 * gdbarch-selftests.c: Likewise.
5666 * gnu-v3-abi.c: Likewise.
5667 * ia64-tdep.c: Likewise.
5668 * ia64-vms-tdep.c: Likewise.
5669 * infcall.c: Likewise.
5670 * infcmd.c: Likewise.
5671 * infrun.c: Likewise.
5672 * linespec.c: Likewise.
5673 * linux-tdep.c: Likewise.
5674 * minsyms.c: Likewise.
5675 * ppc-linux-nat.c: Likewise.
5676 * ppc-linux-tdep.c: Likewise.
5677 * procfs.c: Likewise.
5678 * regcache.c: Likewise.
5679 * remote.c: Likewise.
5680 * rs6000-tdep.c: Likewise.
5681 * s390-linux-nat.c: Likewise.
5682 * s390-tdep.c: Likewise.
5683 * solib-aix.c: Likewise.
5684 * solib-darwin.c: Likewise.
5685 * solib-dsbt.c: Likewise.
5686 * solib-spu.c: Likewise.
5687 * solib-svr4.c: Likewise.
5688 * solib-target.c: Likewise.
5689 * sparc-tdep.c: Likewise.
5690 * sparc64-tdep.c: Likewise.
5691 * spu-tdep.c: Likewise.
5692 * symfile.c: Likewise.
5693 * symtab.c: Likewise.
5694 * target-descriptions.c: Likewise.
5695 * target-memory.c: Likewise.
5696 * target.c: Likewise.
5697 * target.h: Likewise.
5698 * tracefile-tfile.c: Likewise.
5699 * tracepoint.c: Likewise.
5700 * valops.c: Likewise.
5701 * valprint.c: Likewise.
5702 * value.c: Likewise.
5703 * windows-tdep.c: Likewise.
5704 * mi/mi-main.c: Likewise.
5705
5706 2018-06-07 Tom Tromey <tom@tromey.com>
5707
5708 * valprint.h (build_address_symbolic): Declare.
5709 * printcmd.c (print_address_symbolic): Update.
5710 (build_address_symbolic): Change "name" and "filename" to
5711 std::string.
5712 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5713 Update.
5714 * defs.h (build_address_symbolic): Remove declaration.
5715
5716 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5717
5718 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5719 (aarch64_vnv_type): Add function.
5720 (aarch64_pseudo_register_name): Add V regs for SVE.
5721 (aarch64_pseudo_register_type): Likewise.
5722 (aarch64_pseudo_register_reggroup_p): Likewise.
5723 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5724 (aarch64_pseudo_read_value): Add V regs for SVE.
5725 (aarch64_pseudo_write_2): Use V0 offset for SVE
5726 (aarch64_pseudo_write): Add V regs for SVE.
5727 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5728
5729 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5730
5731 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5732 (sve_vl_from_vq): Likewise.
5733
5734 2018-06-05 Tom Tromey <tom@tromey.com>
5735
5736 * cli/cli-cmds.c (show_version): Update.
5737 * top.c (print_gdb_version): Add "interactive" parameter.
5738 Update.
5739 * main.c (captured_main_1): Update.
5740 * top.h (print_gdb_version): Add "interactive" parameter and a
5741 comment.
5742
5743 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5744
5745 * common/enum-flags.h: Add trailing semicolon to example in
5746 comment.
5747
5748 2018-06-05 Tom Tromey <tom@tromey.com>
5749
5750 PR cli/12326:
5751 * NEWS: Add entry about pager.
5752 * utils.c (pagination_disabled_for_command): New global.
5753 (prompt_for_continue): Allow "c" response to prompt.
5754 (reinitialize_more_filter): Clear
5755 pagination_disabled_for_command.
5756 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5757
5758 2018-06-04 Tom Tromey <tom@tromey.com>
5759
5760 * ada-lang.h (ada_lookup_symbol_list): Update.
5761 * ada-lang.c (resolve_subexp): Update.
5762 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5763 parameter.
5764 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5765 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5766 results parameter to std::vector.
5767 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5768 Update.
5769 * ada-exp.y (block_lookup): Update.
5770 (select_possible_type_sym): Change type of syms. Remove nsyms
5771 parameter.
5772 (write_var_or_type, write_name_assoc): Update.
5773
5774 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5775
5776 * windows-nat.c (windows_nat_target::xfer_partial): Return
5777 TARGET_XFER_E_IO if we need to delegate to the target beneath
5778 but BENEATH is NULL.
5779
5780 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5781
5782 * Makefile.in (config.status): Add configure.nat as a
5783 dependency.
5784
5785 2018-06-04 Tom Tromey <tom@tromey.com>
5786
5787 * cp-name-parser.y (cpname_state): Add method declarations.
5788 (HANDLE_QUAL): Update.
5789 (cpname_state::d_grab, cpname_state::fill_comp)
5790 (cpname_state::make_operator, cpname_state::make_dtor)
5791 (cpname_state::make_builtin_type, cpname_state::make_name)
5792 (cpname_state::d_qualify, cpname_state::d_int_type)
5793 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5794 (%union): Move earlier.
5795
5796 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5797
5798 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5799
5800 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5801
5802 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5803 (aarch64_pseudo_write_1): Likewise.
5804 (aarch64_pseudo_read_value): Use helper.
5805 (aarch64_pseudo_write): Likewise.
5806
5807 2018-06-04 Pedro Alves <palves@redhat.com>
5808
5809 * darwin-nat.c (darwin_ops): Delete.
5810 (darwin_attach_pid): Use get_native_target.
5811
5812 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5813
5814 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5815 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5816
5817 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5818
5819 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5820 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5821 (aarch64_gdbarch_init): Check for SVE.
5822 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5823
5824 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5825
5826 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5827 * aarch64-tdep.h (aarch64_read_description): Likewise.
5828 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5829 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5830 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5831 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5832 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5833
5834 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5835
5836 * value.c (value_fetch_lazy_bitfield): New.
5837 (value_fetch_lazy_memory): New.
5838 (value_fetch_lazy_register): New.
5839 (value_fetch_lazy): Factor out to smaller functions.
5840
5841 2018-06-01 Tom Tromey <tom@tromey.com>
5842
5843 * cp-name-parser.y (backslashable, represented): Now const.
5844
5845 2018-06-01 Tom Tromey <tom@tromey.com>
5846
5847 * cp-name-parser.y: Include parser-defs.h.
5848 (parser_fprintf): Remove declaration.
5849
5850 2018-06-01 Tom Tromey <tom@tromey.com>
5851
5852 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5853 %parse-param.
5854 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5855 (global_result): Remove globals.
5856 (struct cpname_state): New.
5857 (yyparse): Don't declare.
5858 (yylex, yyerror): Move declarations after %union.
5859 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5860 (make_name): Add state parameter.
5861 Update all callers.
5862 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5863 parameter.
5864 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5865 Update.
5866 (yylex): Add lvalp, state parameters.
5867 (yyerror): Add state parameter.
5868 (cp_demangled_name_to_comp): Update.
5869
5870 2018-06-01 Tom Tromey <tom@tromey.com>
5871
5872 * cp-name-parser.y (parser_fprintf): Declare.
5873 (GDB_YY_REMAP_PREFIX): Define.
5874 Include yy-remap.h. Don't redefine yy* identifiers.
5875
5876 2018-06-01 Tom Tromey <tom@tromey.com>
5877
5878 * python/py-type.c (typy_legacy_template_argument): Update.
5879 * cp-support.h (cp_demangled_name_to_comp): Update.
5880 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5881 parameter to be a "std::string *".
5882 (main): Update.
5883
5884 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5885
5886 * ada-lex.l: Include "diagnostics.h" instead of
5887 "common/diagnostics.h".
5888 * unittests/environ-selftests.c: Likewise.
5889 * common/diagnostics.h: Moved to ../include.
5890
5891 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5892
5893 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5894 to language_mode_manual while calling breakpoint_re_set_one.
5895
5896 2018-06-01 Tom Tromey <tom@tromey.com>
5897
5898 * valops.c (value_cast_structs, destructor_name_p): Update.
5899 * symtab.c (gdb_mangle_name): Update.
5900 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5901 Update.
5902 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5903 (pascal_object_print_value_fields, pascal_object_print_value):
5904 Update.
5905 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5906 * linespec.c (find_methods): Update.
5907 * gdbtypes.h (type_name_no_tag): Remove.
5908 (type_name_or_error): Rename from type_name_no_tag_or_error.
5909 * gdbtypes.c (type_name_no_tag): Remove.
5910 (type_name_or_error): Rename from type_name_no_tag_or_error.
5911 (lookup_struct_elt_type, check_typedef): Update.
5912 * expprint.c (print_subexp_standard): Update.
5913 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5914 * d-namespace.c (d_lookup_nested_symbol): Update.
5915 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5916 (cp_print_class_member): Update.
5917 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5918 * completer.c (add_struct_fields): Update.
5919 * c-typeprint.c (cp_type_print_derivation_info)
5920 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5921 Update.
5922 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5923 (ada_prefer_type, ada_is_exception_sym): Update.
5924
5925 2018-06-01 Tom Tromey <tom@tromey.com>
5926
5927 * valops.c (enum_constant_from_type, value_namespace_elt)
5928 (value_maybe_namespace_elt): Update.
5929 * valarith.c (find_size_for_pointer_math): Update.
5930 * target-descriptions.c (make_gdb_type): Update.
5931 * symmisc.c (print_symbol): Update.
5932 * stabsread.c (define_symbol, read_type)
5933 (complain_about_struct_wipeout, add_undefined_type)
5934 (cleanup_undefined_types_1): Update.
5935 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5936 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5937 (rust_internal_print_type, rust_composite_type)
5938 (rust_evaluate_funcall, rust_evaluate_subexp)
5939 (rust_inclusive_range_type_p): Update.
5940 * python/py-type.c (typy_get_tag): Update.
5941 * p-typeprint.c (pascal_type_print_base): Update.
5942 * mdebugread.c (parse_symbol, parse_type): Update.
5943 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5944 Update.
5945 * guile/scm-type.c (gdbscm_type_tag): Update.
5946 * go-lang.c (sixg_string_p): Update.
5947 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5948 Update.
5949 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5950 (TYPE_TAG_NAME): Remove.
5951 * gdbtypes.c (type_name_no_tag): Simplify.
5952 (check_typedef, check_types_equal, recursive_dump_type)
5953 (copy_type_recursive, arch_composite_type): Update.
5954 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5955 in summary mode when needed.
5956 * eval.c (evaluate_funcall): Update.
5957 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5958 (process_structure_scope, read_enumeration_type)
5959 (read_namespace_type, read_module_type, determine_prefix): Update.
5960 * cp-support.c (inspect_type): Update.
5961 * coffread.c (process_coff_symbol, decode_base_type): Update.
5962 * c-varobj.c (c_is_path_expr_parent): Update.
5963 * c-typeprint.c (c_type_print_base_struct_union): Update.
5964 (c_type_print_base_1): Update. Print struct/class/union/enum in
5965 summary when using C language.
5966 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5967 (gen_maybe_namespace_elt): Update.
5968 * ada-lang.c (ada_type_name): Simplify.
5969 (empty_record, ada_template_to_fixed_record_type_1)
5970 (template_to_static_fixed_type)
5971 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5972
5973 2018-06-01 Tom Tromey <tom@tromey.com>
5974
5975 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5976 c_print_type.
5977 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5978 (c_print_type): Update.
5979 (c_print_type): New overload.
5980 (c_type_print_varspec_prefix, c_type_print_args)
5981 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5982 (c_type_print_base_struct_union, c_type_print_base_1)
5983 (cp_type_print_method_args): Add "language" parameter.
5984 (c_type_print_base): Update.
5985 * c-lang.h (c_print_type): Add new overload.
5986
5987 2018-06-01 Tom Tromey <tom@tromey.com>
5988
5989 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5990 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5991
5992 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5993
5994 * aarch64-tdep.c (aarch64_sve_register_names): New const
5995 var.
5996 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5997 (AARCH64_SVE_Z_REGS_NUM): New define.
5998 (AARCH64_SVE_P_REGS_NUM): Likewise.
5999 (AARCH64_SVE_NUM_REGS): Likewise.
6000
6001 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6002
6003 * nat/linux-ptrace.h [__alpha__]
6004 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6005 definitions.
6006
6007 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6008
6009 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6010 the endianness selected.
6011 * NEWS: Document `set endian auto' mode operation update.
6012
6013 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6014
6015 * Makefile.in: Add new header.
6016 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6017 (sve_vl_from_vg): Likewise.
6018 (sve_vq_from_vl): Likewise.
6019 (sve_vl_from_vq): Likewise.
6020 (sve_vq_from_vg): Likewise.
6021 (sve_vg_from_vq): Likewise.
6022 * configure.nat: Add new c file.
6023 * nat/aarch64-sve-linux-ptrace.c: New file.
6024 * nat/aarch64-sve-linux-ptrace.h: New file.
6025
6026 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6027
6028 * aarch64-linux-nat.c (aarch64_linux_read_description):
6029 Add parmeter zero.
6030 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6031 Likewise.
6032 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6033 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6034 (aarch64_gdbarch_init): Add parmeter zero.
6035 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6036 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6037 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6038 parmeter.
6039 * doc/gdb.texinfo: Describe SVE feature
6040 * features/aarch64-sve.c: New file.
6041
6042 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6043
6044 PR gdb/23210
6045 * gdbarch.sh (significant_addr_bit): Default to zero when
6046 not set by target architecture.
6047 * gdbarch.c: Re-generated.
6048 * utils.c (address_significant): Update.
6049
6050 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6051
6052 * stack.c (func_command): Remove trailing newline in call to error.
6053
6054 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6055
6056 * regcache.h (regcache_raw_collect): Remove, update callers to
6057 use regcache::raw_collect.
6058 * regcache.c (regcache_raw_collect): Remove.
6059
6060 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6061
6062 * regcache.h (regcache_raw_supply): Remove, update callers to
6063 use detached_regcache::raw_supply.
6064 * regcache.c (regcache_raw_supply): Remove.
6065
6066 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6067
6068 * regcache.h (regcache_cooked_write_part): Remove, update
6069 callers to use regcache::cooked_write_part.
6070 * regcache.c (regcache_cooked_write_part): Remove.
6071
6072 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6073
6074 * regcache.h (regcache_cooked_read_part): Remove, update callers
6075 to use readable_regcache::cooked_read_part.
6076 * regcache.c (regcache_cooked_read_part): Remove.
6077
6078 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6079
6080 * regcache.h (regcache_cooked_read_value): Remove, update
6081 callers to use readable_regcache::cooked_read_value.
6082 * regcache.c (regcache_cooked_read_value): Remove.
6083
6084 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6085
6086 * regcache.h (regcache_cooked_write): Remove, update callers to
6087 use regcache::cooked_write.
6088 * regcache.c (regcache_cooked_write): Remove.
6089
6090 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6091
6092 * regcache.h (regcache_invalidate): Remove, update callers to
6093 use detached_regcache::invalidate instead.
6094 * regcache.c (regcache_invalidate): Remove.
6095
6096 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6097
6098 * regcache.h (regcache_raw_write_part): Remove, update callers
6099 to use regcache::raw_write_part instead.
6100 * regcache.c (regcache_raw_write_part): Remove.
6101
6102 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6103
6104 * regcache.h (regcache_raw_read_part): Remove, update callers to
6105 use readable_regcache::raw_read_part instead.
6106 * regcache.c (regcache_raw_read_part): Remove.
6107
6108 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6109
6110 * regcache.h (regcache_cooked_read): Remove, update callers to
6111 use readable_regcache::cooked_read instead.
6112 * regcache.c (regcache_cooked_read): Remove.
6113
6114 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6115
6116 * regcache.h (regcache_raw_write): Remove, update callers to use
6117 regcache::raw_write instead.
6118 * regcache.c (regcache_raw_write): Remove.
6119
6120 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6121
6122 * regcache.h (regcache_raw_read): Remove, update callers to use
6123 readable_regcache::raw_read instead.
6124 * regcache.c (regcache_raw_read): Remove.
6125
6126 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6127
6128 * regcache.h (regcache_raw_update): Remove, update callers to
6129 use readable_regcache::raw_update instead.
6130 * regcache.c (regcache_raw_update): Remove.
6131
6132 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6133
6134 * regcache.h (regcache_register_status): Remove, update callers
6135 to use reg_buffer::get_register_status directly instead.
6136 * regcache.c (regcache_register_status): Remove.
6137
6138 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6139
6140 * regcache.h (regcache_get_ptid): Remove, update all callers to
6141 call regcache::ptid instead.
6142 * regcache.c (regcache_get_ptid): Remove.
6143
6144 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6145
6146 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6147
6148 2018-05-30 Pedro Alves <palves@redhat.com>
6149
6150 * common/common-exceptions.h (exception_rethrow): Use
6151 ATTRIBUTE_NORETURN.
6152
6153 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6154
6155 * breakpoint.c (print_solib_event, check_status_catch_solib):
6156 Remove struct keyword in range-based for loops.
6157 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6158 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6159 Likewise.
6160 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6161 Likewise.
6162 * symfile.c (addr_info_make_relative): Likewise.
6163 * thread.c (value_in_thread_stack_temporaries): Likewise.
6164
6165 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6166
6167 PR gdb/16841
6168 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6169 aggregate type to get its real type before accessing it.
6170
6171 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6172
6173 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6174 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6175 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6176 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6177 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6178 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6179 * printcmd.c (info_address_command): Likewise.
6180
6181 2018-05-29 Tom Tromey <tom@tromey.com>
6182
6183 * windows-nat.c (handle_exception): Update fall-through comment.
6184
6185 2018-05-29 Tom Tromey <tom@tromey.com>
6186
6187 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6188 (struct program_space) <added_solibs>: Now a std::vector.
6189 * breakpoint.c (print_solib_event): Update.
6190 (check_status_catch_solib): Update.
6191 * progspace.c (clear_program_space_solib_cache): Update.
6192 * solib.c (update_solib_list): Update.
6193
6194 2018-05-29 Tom Tromey <tom@tromey.com>
6195
6196 * python/py-type.c (typy_richcompare): Update.
6197 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6198 * gdbtypes.h (types_deeply_equal): Return bool.
6199 (types_equal): Likewise.
6200 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6201 declare VEC.
6202 (check_types_equal): Change worklist to std::vector. Return
6203 bool.
6204 (struct type_equality_entry): Add constructor.
6205 (compare_maybe_null_strings): Return bool.
6206 (check_types_worklist): Return bool. Change worklist to
6207 std::vector.
6208 (types_deeply_equal): Use std::vector.
6209 (types_equal): Return bool.
6210 (compare_maybe_null_strings): Simplify.
6211
6212 2018-05-29 Tom Tromey <tom@tromey.com>
6213
6214 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6215
6216 2018-05-29 Tom Tromey <tom@tromey.com>
6217
6218 * objc-lang.h: Don't include cp-support.h.
6219 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6220 declare VEC.
6221
6222 2018-05-27 Tom Tromey <tom@tromey.com>
6223
6224 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6225
6226 2018-05-25 Tom Tromey <tom@tromey.com>
6227
6228 * value.c (value::location): Initialize.
6229
6230 2018-05-25 Tom Tromey <tom@tromey.com>
6231
6232 * dbxread.c (init_bincl_list): Remove.
6233 (bincl_list): Now a std::vector.
6234 (bincls_allocated, next_bincl): Remove.
6235 (free_bincl_list, do_free_bincl_list_cleanup)
6236 (make_cleanup_free_bincl_list): Remove.
6237 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6238 unique_xmalloc_ptr.
6239 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6240 (struct header_file_location): Add constructor.
6241 (add_bincl_to_list): Remove.
6242
6243 2018-05-25 Tom Tromey <tom@tromey.com>
6244
6245 * tui/tui.c (tui_enable): Update.
6246 * mi/mi-interp.c (mi_interp::init): Update.
6247 * interps.h (class interp) <name>: New method.
6248 <m_name>: Rename from name.
6249 (~scoped_restore_interp): Update.
6250 * interps.c (interp::interp): Update.
6251 (interp_add, interp_set, interp_lookup_existing)
6252 (current_interp_named_p): Update.
6253
6254 2018-05-25 Tom Tromey <tom@tromey.com>
6255
6256 * interps.c (interp_name): Remove.
6257 * mi/mi-interp.c (mi_interp::init): Update.
6258 * interps.h (interp_name): Remove.
6259 (~scoped_restore_interp): Update.
6260 * tui/tui.c (tui_enable): Update.
6261
6262 2018-05-25 Tom Tromey <tom@tromey.com>
6263
6264 * utils.c (fputs_maybe_filtered): Update.
6265 * linespec.c (decode_line_full): Update.
6266 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6267 (mi_print_breakpoint_for_event, mi_solib_loaded)
6268 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6269 (mi_user_selected_context_changed): Update.
6270 * mi/mi-main.c (mi_execute_command): Update.
6271 * cli/cli-script.c (execute_control_command): Update.
6272 * python/python.c (execute_gdb_command): Update.
6273 * solib.c (info_sharedlibrary_command): Update.
6274 * interps.c (interp_ui_out): Remove.
6275 * interps.h (interp_ui_out): Remove.
6276
6277 2018-05-25 Tom Tromey <tom@tromey.com>
6278
6279 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6280 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6281 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6282
6283 2018-05-25 Tom Tromey <tom@tromey.com>
6284
6285 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6286 * interps.c (interp_exec): Use scoped_restore.
6287
6288 2018-05-25 Tom Tromey <tom@tromey.com>
6289
6290 * remote.c (remote_target::remote_file_get): Use
6291 gdb::byte_vector.
6292 (remote_target::remote_file_put): Likewise.
6293
6294 2018-05-25 Tom Tromey <tom@tromey.com>
6295
6296 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6297 a std::string.
6298 (get_pe_section_index, add_pe_exported_sym): Update.
6299 (read_pe_exported_syms): Use gdb::def_vector.
6300
6301 2018-05-25 Tom Tromey <tom@tromey.com>
6302
6303 * frame.c (remove_prev_frame): Remove.
6304 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6305
6306 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6307
6308 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6309 Remove prototypes.
6310 * mips-linux-nat.c (supply_fpregset): Always call
6311 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6312 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6313 `mips_fill_fpregset'.
6314 * mips-linux-tdep.c (mips_supply_fpregset)
6315 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6316 (mips_fill_fpregset_wrapper): Remove functions.
6317 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6318 (mips_linux_fpregset): Remove variable.
6319 (mips_linux_iterate_over_regset_sections): Use
6320 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6321 (mips_linux_o32_sigframe_init): Remove comment.
6322
6323 2018-05-25 Pedro Alves <palves@redhat.com>
6324
6325 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6326 (struct readahead_cache, struct packet_reg, struct
6327 remote_arch_state, class remote_state): Move higher up in the
6328 file.
6329 (remote_target::m_remote_state): Now an object instead of a pointer.
6330 (remote_target::get_remote_state): Adjust.
6331
6332 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6333
6334 * stack.c (select_and_print_frame): Delete.
6335 (struct function_bounds): Move struct within function.
6336 (func_command): Most content moved into new function
6337 find_frame_for_function, use new function, print result, add
6338 function comment.
6339 (find_frame_for_function): New function, now returns a result.
6340
6341 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6342
6343 * stack.c (iterate_over_block_arg_vars): Fix comment.
6344 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6345
6346 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6347
6348 PR gdb/23203
6349 * frame.c
6350 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6351 Define.
6352 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6353 Define.
6354 * frame.h (class scoped_restore_selected_frame): New class.
6355 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6356 of any exception, use scoped_restore_selected_frame to restore the
6357 frame instead.
6358
6359 2018-05-24 Pedro Alves <palves@redhat.com>
6360
6361 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6362 override.
6363
6364 2018-05-23 Tom Tromey <tom@tromey.com>
6365
6366 * complaints.c (struct complaints): Remove.
6367 (symfile_complaint_book): Remove.
6368 (series): New global.
6369 (complaint_internal): Update.
6370 (clear_complaints): Update.
6371
6372 2018-05-23 Tom Tromey <tom@tromey.com>
6373
6374 * complaints.c (counters): New global.
6375 (struct complain): Remove.
6376 (struct complaints) <root>: Remove.
6377 (complaint_sentinel): Remove.
6378 (symfile_complaint_book): Update.
6379 (find_complaint) Remove.
6380 (complaint_internal, clear_complaints): Update.
6381
6382 2018-05-23 Tom Tromey <tom@tromey.com>
6383
6384 * complaints.c (struct complain) <file, line>: Remove.
6385 (find_complaint): Remove file, line parameters.
6386 (complaint_internal): Update.
6387
6388 2018-05-23 Tom Tromey <tom@tromey.com>
6389
6390 * complaints.c (vcomplaint): Remove.
6391 (complaint_internal) Merge in contents of vcomplaint.
6392
6393 2018-05-23 Tom Tromey <tom@tromey.com>
6394
6395 * complaints.c (struct complaints) <explanation>: Remove.
6396 (symfile_explanations): Remove.
6397 (symfile_complaint_book): Update.
6398 (vcomplaint): Update.
6399 (struct explanation): Remove.
6400
6401 2018-05-23 Tom Tromey <tom@tromey.com>
6402
6403 * complaints.c (symfile_complaints): Remove.
6404 (complaint_internal): Remove "complaints" parameter.
6405 (clear_complaints, vcomplaint): Remove "c" parameter.
6406 (get_complaints): Remove.
6407 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6408 (dwarf2_debug_line_missing_file_complaint)
6409 (dwarf2_debug_line_missing_end_sequence_complaint)
6410 (dwarf2_complex_location_expr_complaint)
6411 (dwarf2_const_value_length_mismatch_complaint)
6412 (dwarf2_section_buffer_overflow_complaint)
6413 (dwarf2_macro_malformed_definition_complaint)
6414 (dwarf2_invalid_attrib_class_complaint)
6415 (create_addrmap_from_index, dw2_symtab_iter_next)
6416 (dw2_expand_marked_cus)
6417 (dw2_debug_names_iterator::find_vec_in_debug_names)
6418 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6419 (create_debug_type_hash_table, init_cutu_and_read_dies)
6420 (partial_die_parent_scope, add_partial_enumeration)
6421 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6422 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6423 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6424 (create_cus_hash_table, create_dwp_hash_table)
6425 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6426 (dwarf2_rnglists_process, dwarf2_ranges_process)
6427 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6428 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6429 (handle_struct_member_die, process_structure_scope)
6430 (read_array_type, read_common_block, read_module_type)
6431 (read_tag_pointer_type, read_typedef, read_base_type)
6432 (read_subrange_type, load_partial_dies, partial_die_info::read)
6433 (partial_die_info::read, partial_die_info::read)
6434 (partial_die_info::read, read_checked_initial_length_and_offset)
6435 (dwarf2_string_attr, read_formatted_entries)
6436 (dwarf_decode_line_header)
6437 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6438 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6439 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6440 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6441 (get_signatured_type, get_DW_AT_signature_type)
6442 (decode_locdesc, file_file_name, consume_improper_spaces)
6443 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6444 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6445 (dwarf2_symbol_mark_computed, set_die_type)
6446 (read_attribute_value): Update.
6447 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6448 Update.
6449 * dbxread.c (unknown_symtype_complaint)
6450 (lbrac_mismatch_complaint, repeated_header_complaint)
6451 (set_namestring, function_outside_compilation_unit_complaint)
6452 (read_dbx_symtab, process_one_symbol): Update.
6453 * gdbtypes.c (stub_noname_complaint): Update.
6454 * windows-nat.c (handle_unload_dll): Update.
6455 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6456 (decode_base_type): Update.
6457 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6458 (eb_complaint, record_include_begin, record_include_end)
6459 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6460 (process_xcoff_symbol, read_symbol)
6461 (function_outside_compilation_unit_complaint)
6462 (scan_xcoff_symtab): Update.
6463 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6464 * buildsym.c (finish_block_internal, make_blockvector)
6465 (end_symtab_get_static_block, augment_type_symtab): Update.
6466 * dtrace-probe.c (dtrace_process_dof)
6467 (dtrace_static_probe_ops::get_probes): Update.
6468 * complaints.h (struct complaint): Don't declare.
6469 (symfile_complaints): Remove.
6470 (complaint_internal): Remove "complaints" parameter.
6471 (complaint): Likewise.
6472 (clear_complaints): Likewise.
6473 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6474 (reread_symbols): Update.
6475 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6476 (dwarf2_frame_cache, decode_frame_entry): Update.
6477 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6478 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6479 (info_selectors_command): Update.
6480 * macrotab.c (macro_include, check_for_redefinition)
6481 (macro_undef): Update.
6482 * objfiles.c (filter_overlapping_sections): Update.
6483 * stabsread.c (invalid_cpp_abbrev_complaint)
6484 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6485 (define_symbol, error_type, read_type, rs6000_builtin_type)
6486 (stabs_method_name_from_physname, read_member_functions)
6487 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6488 (attach_fields_to_type, complain_about_struct_wipeout)
6489 (read_range_type, read_args, common_block_start)
6490 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6491 Update.
6492 * mdebugread.c (index_complaint, unknown_ext_complaint)
6493 (basic_type_complaint, bad_tag_guess_complaint)
6494 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6495 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6496 (parse_procedure, parse_lines)
6497 (function_outside_compilation_unit_complaint)
6498 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6499 (bad_tag_guess_complaint, reg_value_complaint): Update.
6500 * cp-support.c (demangled_name_complaint): Update.
6501 * macroscope.c (sal_macro_scope): Update.
6502 * dwarf-index-write.c (class debug_names): Update.
6503
6504 2018-05-23 Tom Tromey <tom@tromey.com>
6505
6506 * complaints.c (clear_complaints): Remove "noisy" parameter.
6507 * complaints.h (clear_complaints): Update.
6508 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6509 (reread_symbols): Update.
6510
6511 2018-05-23 Tom Tromey <tom@tromey.com>
6512
6513 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6514 SUBSEQUENT_MESSAGE.
6515 (vcomplaint, clear_complaints): Update.
6516 (symfile_explanations): Remove some messages.
6517
6518 2018-05-23 Tom Tromey <tom@tromey.com>
6519
6520 * complaints.c (internal_complaint): Remove.
6521 * complaints.h (internal_complaint): Remove.
6522
6523 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6524
6525 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6526
6527 2018-05-22 Pedro Alves <palves@redhat.com>
6528
6529 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6530 (remote_fileio_badfd, remote_fileio_return_errno)
6531 (remote_fileio_return_success, remote_fileio_func_open)
6532 (remote_fileio_func_open, remote_fileio_func_close)
6533 (remote_fileio_func_read, remote_fileio_func_write)
6534 (remote_fileio_func_lseek, remote_fileio_func_rename)
6535 (remote_fileio_func_unlink, remote_fileio_func_stat)
6536 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6537 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6538 remote_target parameter.
6539 (remote_fio_func_map) <func>: Add remote_target parameter.
6540 (do_remote_fileio_request, remote_fileio_request):
6541 * remote-fileio.h (remote_fileio_request):
6542 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6543 remote_target parameter.
6544 (remote_notif_process, handle_notification): Adjust to pass down
6545 the remote.
6546 (remote_notif_state_allocate): Add remote_target parameter. Save
6547 it.
6548 * remote-notif.h (struct remote_target): Forward declare.
6549 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6550 remote_target parameter.
6551 (struct remote_notif_state) <remote>: New field.
6552 (remote_notif_ack, remote_notif_parse): Add remote_target
6553 parameter.
6554 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6555 remote_target parameter.
6556 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6557 (threads_listing_context, rmt_thread_action, protocol_feature)
6558 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6559 (packet_result, struct threads_listing_context, remote_state):
6560 Move definitions and declarations higher up.
6561 (remote_target) <~remote_target>: Declare.
6562 (remote_download_command_source, remote_file_put, remote_file_get)
6563 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6564 (remote_hostio_pread_vFile, remote_hostio_send_command)
6565 (remote_hostio_set_filesystem, remote_hostio_open)
6566 (remote_hostio_close, remote_hostio_unlink, remote_state)
6567 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6568 (get_memory_write_packet_size, get_memory_read_packet_size)
6569 (append_pending_thread_resumptions, remote_detach_1)
6570 (append_resumption, remote_resume_with_vcont)
6571 (add_current_inferior_and_thread, wait_ns, wait_as)
6572 (process_stop_reply, remote_notice_new_inferior)
6573 (process_initial_stop_replies, remote_add_thread)
6574 (btrace_sync_conf, remote_btrace_maybe_reopen)
6575 (remove_new_fork_children, kill_new_fork_children)
6576 (discard_pending_stop_replies, stop_reply_queue_length)
6577 (check_pending_events_prevent_wildcard_vcont)
6578 (discard_pending_stop_replies_in_queue, stop_reply)
6579 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6580 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6581 (remote_interrupt_as, remote_interrupt_ns)
6582 (remote_get_noisy_reply, remote_query_attached)
6583 (remote_add_inferior, remote_current_thread, get_current_thread)
6584 (set_thread, set_general_thread, set_continue_thread)
6585 (set_general_process, write_ptid)
6586 (remote_unpack_thread_info_response, remote_get_threadinfo)
6587 (parse_threadlist_response, remote_get_threadlist)
6588 (remote_threadlist_iterator, remote_get_threads_with_ql)
6589 (remote_get_threads_with_qxfer)
6590 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6591 (get_offsets, remote_check_symbols, remote_supported_packet)
6592 (remote_query_supported, remote_packet_size)
6593 (remote_serial_quit_handler, remote_detach_pid)
6594 (remote_vcont_probe, remote_resume_with_hc)
6595 (send_interrupt_sequence, interrupt_query)
6596 (remote_notif_get_pending_events, fetch_register_using_p)
6597 (send_g_packet, process_g_packet, fetch_registers_using_g)
6598 (store_register_using_P, store_registers_using_G)
6599 (set_remote_traceframe, check_binary_download)
6600 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6601 (remote_xfer_live_readonly_partial, remote_read_bytes)
6602 (remote_send_printf, remote_flash_write, readchar)
6603 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6604 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6605 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6606 (extended_remote_disable_randomization, extended_remote_run)
6607 (send_environment_packet, extended_remote_environment_support)
6608 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6609 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6610 (packet_command): Now methods of ...
6611 (remote_target): ... this class.
6612 (m_remote_state) <remote_target>: New field.
6613 (struct remote_state) <stop_reply_queue,
6614 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6615 fields.
6616 (remote_state::remote_state): Allocate stop_reply_queue.
6617 (remote_state): Delete global.
6618 (get_remote_state_raw): Delete.
6619 (remote_target::get_remote_state): Allocate m_remote_state on
6620 demand.
6621 (get_current_remote_target): New.
6622 (remote_ops, extended_remote_ops): Delete.
6623 (wait_forever_enabled_p, remote_async_inferior_event_token):
6624 Delete, moved to struct remote_state.
6625 (remote_target::close): Delete self. Destruction bits split to
6626 ...
6627 (remote_target::~remote_target): ... this.
6628 (show_memory_packet_size): Adjust to use
6629 get_current_remote_target.
6630 (struct protocol_feature) <func>: Add remote_target parameter.
6631 All callers adjusted.
6632 (curr_quit_handler_target): New.
6633 (remote_serial_quit_handler): Reimplement.
6634 (remote_target::open_1): Adjust to use get_current_remote_target.
6635 Heap-allocate remote_target/extended_remote_target instances.
6636 (vcont_builder::vcont_builder): Add remote_target parameter, and
6637 save it in m_remote. All callers adjusted.
6638 (vcont_builder::m_remote): New field.
6639 (vcont_builder::restart, vcont_builder::flush)
6640 (vcont_builder::push_action): Use it.
6641 (remote_target::commit_resume): Use it.
6642 (struct queue_iter_param) <remote>: New field.
6643 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6644 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6645 (check_pending_event_prevents_wildcard_vcont_callback)
6646 (remote_target::check_pending_events_prevent_wildcard_vcont)
6647 (remote_target::discard_pending_stop_replies)
6648 (remote_target::discard_pending_stop_replies_in_queue)
6649 (remote_target::remote_notif_remove_queued_reply): Fill in
6650 'remote' field.
6651 (remote_notif_get_pending_events): New.
6652 (remote_target::readchar, remote_target::remote_serial_write):
6653 Save/restore curr_quit_handler_target.
6654 (putpkt): New.
6655 (kill_new_fork_children): Fill in 'remote' field.
6656 (packet_command): Use get_current_remote_target, defer to
6657 remote_target method of same name.
6658 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6659 parameter, and save it in m_remote. All callers adjusted.
6660 (scoped_remote_fd::release): Use m_remote.
6661 (scoped_remote_fd::m_remote): New field.
6662 (remote_file_put, remote_file_get, remote_file_delete): Use
6663 get_current_remote_target, defer to remote_target method of same
6664 name.
6665 (remote_btrace_reset): Add remote_state paremeter. Update all
6666 callers.
6667 (remote_async_inferior_event_handler). Pass down 'data'.
6668 (remote_new_objfile): Use get_current_remote_target.
6669 (remote_target::vcont_r_supported): New.
6670 (set_range_stepping): Use get_current_remote_target and
6671 remote_target::vcont_r_supported.
6672 (_initialize_remote): Don't allocate 'remote_state' and
6673 'stop_reply_queue' globals.
6674 * remote.h (struct remote_target): Forward declare.
6675 (getpkt, putpkt, remote_notif_get_pending_events): Add
6676 'remote_target' parameter.
6677
6678 2018-05-22 Pedro Alves <palves@redhat.com>
6679
6680 * remote.c (vcont_builder): Now a class. Make all data members
6681 private.
6682 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6683 Declare methods.
6684 (vcont_builder_restart): Rename to ...
6685 (vcont_builder::restart): ... this.
6686 (vcont_builder_flush): Rename to ...
6687 (vcont_builder::flush): ... this.
6688 (vcont_builder_push_action): Rename to ...
6689 (vcont_builder::push_action): ... this.
6690 (remote_target::commit_resume): Adjust.
6691
6692 2018-05-22 Pedro Alves <palves@redhat.com>
6693
6694 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6695 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6696 (get_fixed_memory_packet_size): New.
6697 (get_memory_packet_size): Use it.
6698 (set_memory_packet_size): Don't override the config size with
6699 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6700 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6701 Don't refer to get_memory_packet_size if not connected to a remote
6702 target. Show "(default)" if configured size is 0.
6703
6704 2018-05-22 Pedro Alves <palves@redhat.com>
6705
6706 * remote.c (remote_target::mourn_inferior): Move
6707 discard_pending_stop_replies call here from ...
6708 (_initialize_remote): ... here.
6709
6710 2018-05-22 Pedro Alves <palves@redhat.com>
6711
6712 * remote.c (compare_section_command): Remove set_general_process
6713 call.
6714
6715 2018-05-22 Pedro Alves <palves@redhat.com>
6716
6717 * remote.c (struct packet_reg, struct remote_arch_state):
6718 Move higher up in the file.
6719 (remote_state) <m_arch_states>: Store remote_arch_state values
6720 instead of remote_arch_state pointers.
6721 (remote_state::get_remote_arch_state): Adjust.
6722
6723 2018-05-22 Pedro Alves <palves@redhat.com>
6724
6725 * remote.c: Include <unordered_map>.
6726 (remote_state): Now a class.
6727 (remote_state) <get_remote_arch_state>: Declare method.
6728 <get_remote_arch_state>: New field.
6729 (remote_arch_state) <remote_arch_state>: Declare ctor.
6730 <regs>: Now a unique_ptr.
6731 (remote_gdbarch_data_handle): Delete.
6732 (get_remote_arch_state): Delete.
6733 (remote_state::get_remote_arch_state): New.
6734 (get_remote_state): Adjust to call remote_state's
6735 get_remote_arch_state method.
6736 (init_remote_state): Delete, bits factored out to ...
6737 (remote_arch_state::remote_arch_state): ... this new method.
6738 (get_remote_packet_size, get_memory_packet_size)
6739 (process_g_packet, remote_target::fetch_registers)
6740 (remote_target::prepare_to_store, store_registers_using_G)
6741 (remote_target::store_registers, remote_target::get_trace_status):
6742 Adjust to call remote_state's method.
6743 (_initialize_remote): Remove reference to
6744 remote_gdbarch_data_handle.
6745
6746 2018-05-22 Pedro Alves <palves@redhat.com>
6747
6748 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6749 pread>: New method declarations.
6750 (remote_target::open_1): Adjust.
6751 (readahead_cache_invalidate): Rename to ...
6752 (readahead_cache::invalidate): ... this, and adjust to be a class
6753 method.
6754 (readahead_cache_invalidate_fd): Rename to ...
6755 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6756 class method.
6757 (remote_hostio_pwrite): Adjust.
6758 (remote_hostio_pread_from_cache): Rename to ...
6759 (readahead_cache::pread): ... this, and adjust to be a class
6760 method.
6761 (remote_hostio_close): Adjust.
6762
6763 2018-05-22 Pedro Alves <palves@redhat.com>
6764
6765 * remote.c (remote_hostio_close_cleanup): Delete.
6766 (class scoped_remote_fd): New.
6767 (remote_file_put, remote_file_get): Use it.
6768
6769 2018-05-22 Pedro Alves <palves@redhat.com>
6770
6771 (struct vCont_action_support): Use bool and initialize all fields.
6772 (struct readahead_cache): Initialize all fields.
6773 (remote_state): Use bool and initialize all fields.
6774 (remote_state::remote_state, remote_state::~remote_state): New.
6775 (new_remote_state): Delete.
6776 (_initialize_remote): Use new to allocate remote_state.
6777
6778 2018-05-22 Pedro Alves <palves@redhat.com>
6779 張俊芝 <zjz@zjz.name>
6780
6781 PR gdb/22973
6782 * c-exp.y: Include "c-support.h".
6783 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6784 of tolower. Use c_ident_is_alpha to scan names.
6785 * c-lang.c: Include "c-support.h".
6786 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6787 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6788 * c-support.h: New file, with bits factored out from ...
6789 * cp-name-parser.y: ... this file.
6790 Include "c-support.h".
6791 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6792 c-support.h and renamed.
6793 (symbol_end, yylex): Adjust.
6794
6795 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6796
6797 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6798 parameter type to CORE_ADDR.
6799 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6800 parameter type in declaration to CORE_ADDR.
6801 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6802 target_auxv_search to get AT_HWCAP and use the result to get the
6803 target description.
6804 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6805 to CORE_ADDR. Remove the cast of the return value to unsigned
6806 long. Fix error predicate of target_auxv_search.
6807 (ppc_linux_nat_target::read_description): Change the type of the
6808 hwcap variable to CORE_ADDR.
6809
6810 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6811
6812 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6813 if the size of fpscr is larger than 32 bits.
6814
6815 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6816
6817 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6818 (ppc32_linux_vsxregmap): New global.
6819 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6820 regcache_supply_regset, and regcache_collect_regset.
6821 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6822 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6823 (fetch_vsx_register, store_vsx_register): Remove.
6824 (fetch_vsx_registers): Add regno parameter. Get regset using
6825 ppc_linux_vsxregset. Use regset to supply registers.
6826 (store_vsx_registers): Add regno parameter. Get regset using
6827 ppc_linux_vsxregset. Use regset to collect registers.
6828 (fetch_register): Call fetch_vsx_registers instead of
6829 fetch_vsx_register.
6830 (store_register): Call store_vsx_registers instead of
6831 store_vsx_register.
6832 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6833 new regno parameter.
6834 (store_ppc_registers): Call store_vsx_registers with -1 for the
6835 new regno parameter.
6836 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6837 (ppc_collect_vsxregset): Remove.
6838
6839 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6840
6841 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6842 offset fields.
6843 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6844 for vector register offset fields.
6845 (ppc64_fbsd_reg_offsets): Likewise.
6846 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6847 to vector register offset fields.
6848 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6849 to vector register offset fields.
6850 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6851 vector register offset fields.
6852 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6853 initializers for vector register offset fields.
6854 (rs6000_aix64_reg_offsets): Likewise.
6855 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6856 (ppc_supply_vrregset): Remove.
6857 (ppc_collect_vrregset): Remove.
6858 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6859 (ppc_linux_vrregset) : New function.
6860 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6861 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6862 (ppc32_linux_vrregset): Remove.
6863 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6864 and use result instead of ppc32_linux_vrregset.
6865 (ppc32_linux_reg_offsets): Remove initializers for vector register
6866 offset fields.
6867 (ppc64_linux_reg_offsets): Likewise.
6868 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6869 * ppc-linux-nat.c: Include regset.h.
6870 (gdb_vrregset_t): Adjust comment to account for little-endian
6871 mode.
6872 (supply_vrregset, fill_vrregset): Remove.
6873 (fetch_altivec_register, store_altivec_register): Remove.
6874 (fetch_altivec_registers): Add regno parameter. Get regset using
6875 ppc_linux_vrregset. Use regset to supply registers.
6876 (store_altivec_registers): Add regno parameter. Get regset using
6877 ppc_linux_vrregset. Use regset to collect registers.
6878 (fetch_register): Call fetch_altivec_registers instead of
6879 fetch_altivec_register.
6880 (store_register): Call store_altivec_registers instead of
6881 store_altivec_register.
6882 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6883 the new regno parameter.
6884 (store_ppc_registers): Call store_altivec_registers with -1 for
6885 the new regno parameter.
6886
6887 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6888
6889 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6890 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6891 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6892 (gdb_vrregset_t): Change array type size to
6893 PPC_LINUX_SIZEOF_VRREGSET.
6894 (gdb_vsxregset_t): Change array type size to
6895 PPC_LINUX_SIZEOF_VSXREGSET.
6896 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6897 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6898 PPC_LINUX_SIZEOF_VSXREGSET.
6899
6900 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6901
6902 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6903 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6904 nat/ppc-linux.c.
6905 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6906 ppc_linux_target_wordsize with tid.
6907 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6908 wordsize with tid.
6909 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6910 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6911 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6912 tid parameter. Remove static specifier.
6913 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6914 (ppc_linux_target_wordsize): New declaration.
6915
6916 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6917
6918 * arch/ppc-linux-common.c: New file.
6919 * arch/ppc-linux-common.h: New file.
6920 * arch/ppc-linux-tdesc.h: New file.
6921 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6922 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6923 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6924 arch/ppc-linux-tdesc.h.
6925 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6926 arch/ppc-linux-tdesc.h.
6927 (ppc_linux_nat_target::read_description): Remove target
6928 description matching code. Fill a ppc_linux_features struct and
6929 call ppc_linux_match_description with it. Move comment about ISA
6930 2.05 to ppc-linux-common.c.
6931 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6932 arch/ppc-linux-tdesc.h.
6933 (ppc_linux_core_read_description): Remove target description
6934 matching code. Fill a ppc_linux_features struct and call
6935 ppc_linux_match_description with it.
6936 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6937 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6938 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6939 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6940 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6941 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6942 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6943 (tdesc_powerpc_e500l): Remove.
6944
6945 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6946
6947 * ada-lang.c (catch_assert_command): Pass empty string instead
6948 of NULL for excep_string argument.
6949
6950 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6951
6952 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6953 the width of the requested register exceeds the width of the
6954 `ptrace' data type.
6955
6956 2018-05-21 Tom Tromey <tom@tromey.com>
6957
6958 * printcmd.c (output_command): Remove.
6959 (output_command_const): Rename to output_command.
6960 * valprint.h (output_command): Rename from output_command_const.
6961 * tracepoint.c (trace_dump_actions): Call output_command.
6962
6963 2018-05-21 Tom Tromey <tom@tromey.com>
6964
6965 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6966 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6967 * ada-lang.h (create_ada_exception_catchpoint): Update.
6968 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6969 std::string.
6970 (create_excep_cond_exprs, ~ada_catchpoint)
6971 (should_stop_exception, print_one_exception)
6972 (print_mention_exception, print_recreate_exception): Update.
6973 (ada_get_next_arg): Remove.
6974 (catch_ada_exception_command_split): Use std::string. Change type
6975 of "excep_string", "cond_string".
6976 (catch_ada_exception_command): Update.
6977 (create_ada_exception_catchpoint): Change type of excep_string.
6978 (ada_exception_sal): Remove excep_string parameter.
6979 (~ada_catchpoint): Remove.
6980
6981 2018-05-21 Tom Tromey <tom@tromey.com>
6982
6983 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6984 cleanup.
6985
6986 2018-05-21 Tom Tromey <tom@tromey.com>
6987
6988 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6989 Return unique_xmalloc_ptr.
6990 (print_it_exception): Update.
6991
6992 2018-05-21 Tom Tromey <tom@tromey.com>
6993
6994 * tracepoint.c (trace_dump_actions): Use std::string.
6995
6996 2018-05-21 Tom Tromey <tom@tromey.com>
6997
6998 * symfile.c (reread_symbols): Use std::string for original_name.
6999
7000 2018-05-21 Tom Tromey <tom@tromey.com>
7001
7002 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7003 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7004 constructor.
7005
7006 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7007
7008 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7009 instance to...
7010 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7011 * objfiles.c (get_objfile_bfd_data): Allocate
7012 objfile_per_bfd_storage with obstack_new when allocating on
7013 obstack.
7014
7015 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7016
7017 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7018 OBSTACK_ZALLOC.
7019 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7020 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7021 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7022 (add_pending): Likewise.
7023 (parse_symbol): Likewise.
7024 (parse_partial_symbols): Likewise.
7025 (psymtab_to_symtab_1): Likewise.
7026 (new_psymtab): Likewise.
7027 (elfmdebug_build_psymtabs): Likewise.
7028 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7029 * objfiles.c (get_objfile_bfd_data): Likewise.
7030 (objfile_register_static_link): Likewise.
7031 * psymtab.c (allocate_psymtab): Likewise.
7032 * stabsread.c (read_member_functions): Likewise.
7033 * xcoffread.c (xcoff_end_psymtab): Likewise.
7034
7035 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7036
7037 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7038 compiler supports std::is_trivially_constructible.
7039 * common/poison.h: Include obstack.h.
7040 (IsMallocable): Define to is_trivially_constructible if the
7041 compiler supports it, define to true_type otherwise.
7042 (xobnew): New.
7043 (XOBNEW): Redefine.
7044 (xobnewvec): New.
7045 (XOBNEWVEC): Redefine.
7046 * gdb_obstack.h (obstack_zalloc): New.
7047 (OBSTACK_ZALLOC): Redefine.
7048 (obstack_calloc): New.
7049 (OBSTACK_CALLOC): Redefine.
7050 (obstack_new): New.
7051 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7052 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7053 gdbarch.c.
7054 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7055 obstack_calloc/obstack_zalloc.
7056 (gdbarch_obstack_zalloc): Remove.
7057 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7058
7059 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7060
7061 * stack.c (backtrace_command_1): Remove useless variable int i.
7062
7063 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7064
7065 * stack.c (print_frame_info): Fix comment.
7066
7067 2018-05-18 Tom Tromey <tom@tromey.com>
7068
7069 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7070 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7071 (~dwarf2_per_objfile): Update
7072 (dwarf2_get_dwz_file): Use new.
7073 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7074 unique_ptr.
7075
7076 2018-05-18 Tom Tromey <tom@tromey.com>
7077
7078 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7079 unique_ptr.
7080 * dwarf2read.c (struct dwp_file): Add constructor and
7081 initializers.
7082 (open_and_init_dwp_file): Return a unique_ptr.
7083 (dwarf2_per_objfile, create_dwp_hash_table)
7084 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7085 (lookup_dwo_unit_in_dwp): Update.
7086 (open_and_init_dwp_file, get_dwp_file): Update.
7087
7088 2018-05-18 Tom Tromey <tom@tromey.com>
7089
7090 * dwarf2read.c (dwarf2_per_objfile): Update.
7091 (struct mapped_index): Add initializers.
7092 (dwarf2_read_index): Use new.
7093 (dw2_symtab_iter_init): Update.
7094 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7095 unique_ptr.
7096
7097 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7098
7099 * dwarf2read.c (mapped_index) <total_size>: Remove.
7100
7101 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7102
7103 * unittests/format_pieces-selftests.c (test_format_specifier):
7104 Add ARI comments.
7105
7106 2018-05-18 Tom Tromey <tom@tromey.com>
7107
7108 * c-typeprint.c (maybe_print_hole): New function.
7109 (c_print_type_struct_field_offset): Update.
7110 (c_type_print_base_struct_union): Call maybe_print_hole.
7111
7112 2018-05-17 Keith Seitz <keiths@redhat.com>
7113
7114 * breakpoint.c (build_bpstat_chain): New function, moved from
7115 bpstat_stop_status.
7116 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7117 If no stop chain is passed, call build_bpstat_chain to build it.
7118 * breakpoint.h (build_bpstat_chain): Declare.
7119 (bpstat_stop_status): Move documentation here from breakpoint.c.
7120 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7121 build the stop chain and pass it to skip_inline_frames.
7122 Pass this stop chain to bpstat_stop_status.
7123 * inline-frame.c: Include breakpoint.h.
7124 (stopped_by_user_bp_inline_frame): New function.
7125 (skip_inline_frames): Add parameter `stop_chain'.
7126 Move documention to inline-frame.h.
7127 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7128 whether the frame should be elided.
7129 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7130 Add moved documentation and update for new parameter.
7131
7132 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7133
7134 PR cli/14975
7135 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7136 unittests/format_pieces-selftests.c.
7137 * common/format.h (format_piece) <operator==>: New.
7138 (format_pieces) <operator[]>: Remove.
7139 * common/format.c (format_pieces::format_pieces): Handle \e.
7140 * unittests/format_pieces-selftests.c: New.
7141
7142 2018-05-17 Tom Tromey <tom@tromey.com>
7143
7144 PR symtab/23010:
7145 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7146 (dw2_instantiate_symtab): Add skip_partial parameter.
7147 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7148 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7149 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7150 (dw2_expand_symtabs_matching_one)
7151 (dw2_find_pc_sect_compunit_symtab)
7152 (dw2_debug_names_lookup_symbol)
7153 (dw2_debug_names_expand_symtabs_for_function): Update.
7154 (init_cutu_and_read_dies): Add skip_partial parameter.
7155 (process_psymtab_comp_unit, build_type_psymtabs_1)
7156 (process_skeletonless_type_unit, load_partial_comp_unit)
7157 (psymtab_to_symtab_1): Update.
7158 (load_full_comp_unit): Add skip_partial parameter.
7159 (process_imported_unit_die, dwarf2_read_addr_index)
7160 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7161 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7162 (read_signatured_type): Update.
7163
7164 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7165
7166 * value.c (release_value): Remove unused variable.
7167 (record_latest_value): Likewise.
7168 (access_value_history): Likewise.
7169 (preserve_values): Likewise.
7170
7171 2018-05-17 Tom Tromey <tom@tromey.com>
7172
7173 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7174 Initialize.
7175
7176 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7177
7178 PR gdb/22286
7179 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7180 Also handle registers whose width is not a multiple of
7181 PTRACE_TYPE_RET.
7182 (linux_nat_trad_target::store_register): Likewise.
7183
7184 2018-05-16 Tom Tromey <tom@tromey.com>
7185
7186 * gdbcore.h (core_bfd): Redefine.
7187 * corelow.c (core_target::close): Update.
7188 (core_target_open): Update.
7189 * progspace.h (struct program_space) <cbfd>: Now a
7190 gdb_bfd_ref_ptr.
7191
7192 2018-05-16 Tom Tromey <tom@tromey.com>
7193
7194 PR cli/19551:
7195 * symfile-add-flags.h (enum symfile_add_flags)
7196 <SYMFILE_NOT_FILENAME>: New constant.
7197 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7198 objfile name from BFD.
7199 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7200 * minidebug.c (find_separate_debug_file_in_section): Put
7201 ".gnu_debugdata" into BFD's file name.
7202
7203 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7204
7205 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7206 Remove.
7207
7208 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7209
7210 PR binutils/21446
7211 * aarch64-tdep.c (aarch64_analyze_prologue,
7212 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7213 Indicate not interested in errors.
7214
7215 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7216
7217 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7218 Supply the MIPS_ZERO_REGNUM register.
7219
7220 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7221
7222 * mips-tdep.c (mask_address_var): Make variable static.
7223
7224 2018-05-14 Tom Tromey <tom@tromey.com>
7225
7226 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7227
7228 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7229
7230 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7231 FXSAVE_ADDR for the mxcsr register.
7232
7233 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7234
7235 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7236
7237 2018-05-11 Pedro Alves <palves@redhat.com>
7238
7239 * corelow.c (core_target) <core_target>: No longer inline.
7240 Initialize m_core_gdbarch, m_core_vec and build the section table
7241 here.
7242 <~core_target>: New.
7243 <core_gdbarch, get_core_register_section>: New methods.
7244 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7245 factored out from ...
7246 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7247 (core_ops): Delete.
7248 (sniff_core_bfd): Add gdbarch parameter.
7249 (core_close): Delete, merged into ...
7250 (core_target::close): ... here. Delete self.
7251 (core_close_cleanup): Delete.
7252 (core_target_open): Allocate a core_target on the heap. Use a
7253 unique_ptr instead of a cleanup. Bits moved into the core_target
7254 ctor. Adjust to use core_target methods instead of globals.
7255 (get_core_register_section): Rename to ...
7256 (core_target::get_core_register_section): ... this and adjust.
7257 (struct get_core_registers_cb_data): New.
7258 (get_core_registers_cb): Use it. Use bool.
7259 (core_target::fetch_registers, core_target::files_info)
7260 (core_target::xfer_partial, core_target::read_description)
7261 (core_target::pid_to, core_target::thread_name): Adjust to
7262 reference class fields instead of globals.
7263 * target.h (struct target_ops_deleter, target_ops_up): New.
7264
7265 2018-05-11 Pedro Alves <palves@redhat.com>
7266
7267 * corefile.c (core_file_command): Move to corelow.c.
7268 * corelow.c (the_core_target): Delete.
7269 (core_file_command): Moved from corefile.c. Check exec_bfd
7270 instead of the_core_target. Use target_detach instead of calling
7271 into the_core_target directly.
7272 (maybe_say_no_core_file_now): New.
7273 (core_target::detach): Use it.
7274 (_initialize_corelow): Remove references to the_core_target.
7275 * gdbcore.h (the_core_target): Delete.
7276
7277 2018-05-11 Tom Tromey <tromey@redhat.com>
7278 Pedro Alves <palves@redhat.com>
7279
7280 * corefile.c (core_bfd): Remove.
7281 * gdbcore.h (core_bfd): Now a macro.
7282 * progspace.h (struct program_space) <cbfd>: New field.
7283
7284 2018-05-11 Tom Tromey <tom@tromey.com>
7285
7286 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7287 gdb::def_vector.
7288
7289 2018-05-10 Tom Tromey <tom@tromey.com>
7290
7291 * configure: Rebuild.
7292 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7293
7294 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7295
7296 PR server/23158:
7297 * regformats/regdat.sh: Adjust script, following the addition
7298 of the new expedite_regs parameter to init_target_desc.
7299
7300 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7301
7302 PR gdb/23127
7303 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7304 set_gdbarch_significant_addr_bit.
7305 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7306 set_gdbarch_significant_addr_bit.
7307 * utils.c (address_significant): Update to sign extend addr.
7308
7309 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7310
7311 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7312 (xtensa_linux_init_abi): Limit tdep->num_regs by
7313 tdep->num_nopriv_regs.
7314 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7315 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7316 not initialized.
7317
7318 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7319
7320 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7321
7322 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7323
7324 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7325 (I387_MXCSR_INIT_VAL): New constant.
7326 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7327 buffer if it was supplied by the inferior.
7328 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7329 (i387_xsave_get_clear_bv): New function.
7330 (i387_supply_xsave): Only read x87 control registers from the
7331 xsave buffer if the feature is enabled, and the state will have
7332 been written, otherwise, provide a suitable default.
7333 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7334 including x87 control registers. Update control registers if they
7335 have changed from the default value, and mark features as enabled
7336 as required.
7337 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7338
7339 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7340
7341 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7342
7343 2018-05-07 Tom Tromey <tom@tromey.com>
7344
7345 * configure: Rebuild.
7346 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7347
7348 2018-05-07 Tom Tromey <tom@tromey.com>
7349
7350 PR tdep/20362:
7351 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7352 bit. Use correct value for VDIV.
7353
7354 2018-05-04 Tom Tromey <tom@tromey.com>
7355
7356 * configure: Rebuild.
7357 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7358
7359 2018-05-04 Tom Tromey <tom@tromey.com>
7360
7361 * linux-record.c (record_linux_system_call) <case
7362 RECORD_SYS_RECVFROM>: Add "break".
7363
7364 2018-05-04 Tom Tromey <tom@tromey.com>
7365
7366 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7367 Add missing "break".
7368 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7369 Add missing "break".
7370
7371 2018-05-04 Tom Tromey <tom@tromey.com>
7372
7373 * rs6000-tdep.c (ppc_process_record_op4)
7374 (ppc_process_record_op63): Add fall-through comment.
7375
7376 2018-05-04 Tom Tromey <tom@tromey.com>
7377
7378 * i386-tdep.c (i386_process_record): Add fall-through comment.
7379
7380 2018-05-04 Tom Tromey <tom@tromey.com>
7381
7382 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7383 comment.
7384
7385 2018-05-04 Tom Tromey <tom@tromey.com>
7386
7387 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7388 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7389 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7390 comment.
7391 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7392 comment.
7393 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7394 comment.
7395
7396 2018-05-04 Tom Tromey <tom@tromey.com>
7397
7398 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7399
7400 2018-05-04 Tom Tromey <tom@tromey.com>
7401
7402 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7403 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7404 * symfile.c (section_is_mapped): Fix fall-through comment.
7405 * stabsread.c (define_symbol, read_member_functions): Fix
7406 fall-through comment.
7407 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7408 comment.
7409 * remote.c (remote_wait_as): Fix fall-through comment.
7410 * p-exp.y (yylex): Fix fall-through comment.
7411 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7412 comment.
7413 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7414 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7415 * jv-exp.y (yylex): Fix fall-through comment.
7416 * go-exp.y (lex_one_token): Fix fall-through comment.
7417 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7418 fall-through comment.
7419 * f-exp.y (yylex): Fix fall-through comment.
7420 * dwarf2read.c (process_die): Fix fall-through comments.
7421 * dbxread.c (process_one_symbol): Fix fall-through comment.
7422 * d-exp.y (lex_one_token): Fix fall-through comment.
7423 * cp-name-parser.y (yylex): Fix fall-through comment.
7424 * coffread.c (coff_symtab_read): Fix fall-through comment.
7425 * c-exp.y (lex_one_token): Fix fall-through comment.
7426 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7427 comment.
7428 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7429 comment.
7430
7431 2018-05-04 Tom Tromey <tom@tromey.com>
7432
7433 PR python/22730:
7434 * NEWS: Mention gdb.execute change.
7435 * gdbcmd.h (execute_control_command): Don't declare.
7436 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7437 execute_control_commands, execute_control_commands_to_string.
7438 * cli/cli-script.h (execute_control_commands)
7439 (execute_control_commands_to_string): Declare.
7440 (execute_control_command): Add from_tty parameter.
7441 * cli/cli-script.c (execute_control_commands)
7442 (execute_control_commands_to_string): New functions.
7443 (execute_user_command): Use execute_control_commands.
7444 (execute_control_command_1): Add "from_tty" parameter. Update.
7445 (execute_control_command): Likewise.
7446
7447 2018-05-04 Tom Tromey <tom@tromey.com>
7448
7449 PR python/22731:
7450 * NEWS: Mention that breakpoint commands are writable.
7451 * python/py-breakpoint.c (bppy_set_commands): New function.
7452 (breakpoint_object_getset) <"commands">: Use it.
7453
7454 2018-05-04 Tom Tromey <tom@tromey.com>
7455
7456 * tracepoint.c (actions_command): Update.
7457 * mi/mi-cmd-break.c (mi_command_line_array)
7458 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7459 (mi_read_next_line): Remove.
7460 (mi_cmd_break_commands): Update.
7461 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7462 function_view.
7463 * cli/cli-script.c (get_command_line): Update.
7464 (process_next_line): Use function_view. Constify.
7465 (recurse_read_control_structure, read_command_lines)
7466 (read_command_lines_1): Change argument types to function_view.
7467 (do_define_command, document_command): Update.
7468 * breakpoint.h (check_tracepoint_command): Don't declare.
7469 * breakpoint.c (check_tracepoint_command): Remove.
7470 (commands_command_1, create_tracepoint_from_upload): Update.
7471
7472 2018-05-04 Tom Tromey <tom@tromey.com>
7473
7474 PR gdb/11750:
7475 * cli/cli-script.h (enum command_control_type) <define_control>:
7476 New constant.
7477 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7478 (build_command_line, execute_control_command_1)
7479 (process_next_line): Likewise.
7480 (do_define_command): New function, extracted from define_command.
7481 (define_command): Use it.
7482
7483 2018-05-04 Tom Tromey <tom@tromey.com>
7484
7485 * tracepoint.c (actions_command): Update.
7486 * cli/cli-script.h (read_command_lines): Update.
7487 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7488 (MAX_TMPBUF): Remove define.
7489 (define_command): Use string_printf.
7490 (document_command): Likewise.
7491 * breakpoint.c (commands_command_1): Update.
7492
7493 2018-05-04 Tom Tromey <tom@tromey.com>
7494
7495 * top.c (execute_command): Update.
7496 * cli/cli-script.h (print_command_lines): Now varargs.
7497 * cli/cli-script.c (print_command_lines): Now varargs.
7498 (execute_control_command_1) <case while_control, case if_control>:
7499 Update.
7500
7501 2018-05-04 Tom Tromey <tom@tromey.com>
7502
7503 * tracepoint.c (all_tracepoint_actions): Rename from
7504 all_tracepoint_actions_and_cleanup. Change return type.
7505 (actions_command, encode_actions_1, encode_actions)
7506 (trace_dump_actions, tdump_command): Update.
7507 * remote.c (remote_download_command_source): Update.
7508 * python/python.c (gdbpy_eval_from_control_command)
7509 (python_command, python_interactive_command): Update.
7510 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7511 * guile/guile.c (guile_command)
7512 (gdbscm_eval_from_control_command, guile_command): Update.
7513 * compile/compile.c (compile_code_command)
7514 (compile_print_command, compile_to_object): Update.
7515 * cli/cli-script.h (struct command_lines_deleter): New.
7516 (counted_command_line): New typedef.
7517 (struct command_line): Add constructor, destructor.
7518 <body_list>: Remove.
7519 <body_list_0, body_list_1>: New members.
7520 (command_line_up): Remove typedef.
7521 (read_command_lines, read_command_lines_1, get_command_line):
7522 Update.
7523 (copy_command_lines): Don't declare.
7524 * cli/cli-script.c (build_command_line): Use "new".
7525 (get_command_line): Return counted_command_line.
7526 (print_command_lines, execute_user_command)
7527 (execute_control_command_1, while_command, if_command): Update.
7528 (realloc_body_list): Remove.
7529 (process_next_line, recurse_read_control_structure): Update.
7530 (read_command_lines, read_command_lines_1): Return counted_command_line.
7531 (free_command_lines): Use "delete".
7532 (copy_command_lines): Remove.
7533 (define_command, document_command, show_user_1): Update.
7534 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7535 a counted_command_line.
7536 * breakpoint.h (counted_command_line): Remove typedef.
7537 (breakpoint_set_commands): Update.
7538 * breakpoint.c (check_no_tracepoint_commands)
7539 (validate_commands_for_breakpoint): Update.
7540 (breakpoint_set_commands): Change commands to be a
7541 counted_command_line.
7542 (commands_command_1, update_dprintf_command_list)
7543 (create_tracepoint_from_upload): Update.
7544
7545 2018-05-04 Tom Tromey <tom@tromey.com>
7546
7547 * cli/cli-decode.h (cmd_list_element): New constructor.
7548 (~cmd_list_element): New destructor.
7549 (struct cmd_list_element): Add initializers.
7550 * cli/cli-decode.c (do_add_cmd): Use "new".
7551 (delete_cmd): Use "delete".
7552
7553 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7554 Pedro Alves <palves@redhat.com>
7555
7556 PR breakpoints/19806 and support for PR external/20207.
7557 * NEWS: Mention Aarch64 watchpoint improvements.
7558 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7559 watchpoints and PR external/20207 watchpoints.
7560 * nat/aarch64-linux-hw-point.c
7561 (kernel_supports_any_contiguous_range): New.
7562 (aarch64_watchpoint_offset): New.
7563 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7564 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7565 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7566 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7567 next_addr_orig_p. Support PR external/20207 watchpoints.
7568 (aarch64_downgrade_regs): New.
7569 (aarch64_dr_state_insert_one_point): New parameters offset and
7570 addr_orig.
7571 (aarch64_dr_state_remove_one_point): Likewise.
7572 (aarch64_handle_breakpoint): Update caller.
7573 (aarch64_handle_aligned_watchpoint): Likewise.
7574 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7575 aligned_offset.
7576 (aarch64_linux_set_debug_regs): Remove const from state. Call
7577 aarch64_downgrade_regs.
7578 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7579 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7580 (DR_CONTROL_MASK): ... this.
7581 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7582 (unsigned int aarch64_watchpoint_offset): New prototype.
7583 (aarch64_linux_set_debug_regs): Remove const from state.
7584 * utils.c (align_up, align_down): Move to ...
7585 * common/common-utils.c (align_up, align_down): ... here.
7586 * utils.h (align_up, align_down): Move to ...
7587 * common/common-utils.h (align_up, align_down): ... here.
7588
7589 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7590
7591 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7592 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7593 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7594 Re-implement to match the ABI as summarized in GCC's
7595 gcc/config/sparc/sparc.c. All callers updated.
7596 (sparc32_store_arguments): Remove assertion.
7597
7598 2018-05-04 Tom Tromey <tom@tromey.com>
7599
7600 * printcmd.c: Don't include tui.h.
7601 (decode_format): Use skip_spaces.
7602
7603 2018-05-04 Tom Tromey <tom@tromey.com>
7604
7605 PR gdb/22619:
7606 * printcmd.c (last_count): New global.
7607 (x_command): Use saved count when repeating.
7608
7609 2018-05-04 Tom Tromey <tom@tromey.com>
7610
7611 * nto-procfs.c (do_closedir_cleanup): Remove.
7612 (procfs_pidlist): Use gdb_dir_up.
7613 * procfs.c (do_closedir_cleanup): Remove.
7614 (proc_update_threads): Use gdb_dir_up.
7615 * common/filestuff.h (struct gdb_dir_deleter): New.
7616 (gdb_dir_up): New typedef.
7617
7618 2018-05-04 Tom Tromey <tom@tromey.com>
7619
7620 * ada-lang.c (print_mention_exception): Use std::string.
7621
7622 2018-05-04 Tom Tromey <tom@tromey.com>
7623
7624 * ada-lang.c (create_excep_cond_exprs): Update.
7625 (ada_exception_catchpoint_cond_string): Use std::string.
7626
7627 2018-05-04 Tom Tromey <tom@tromey.com>
7628
7629 * ada-lang.c (xget_renaming_scope): Return std::string.
7630 (old_renaming_is_invisible): Update.
7631
7632 2018-05-04 Tom Tromey <tom@tromey.com>
7633
7634 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7635 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7636
7637 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7638
7639 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7640
7641 2018-05-04 Tom Tromey <tom@tromey.com>
7642
7643 * remote.c (remote_query_supported_append): Change type.
7644 (remote_check_symbols): Update.
7645
7646 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7647
7648 PR gdb/11420
7649 * configure.ac: Prepend libpython.
7650 * python/python-config.py: Likewise.
7651 * configure: Regenerate.
7652
7653 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7654
7655 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7656
7657 2018-05-03 Pedro Alves <palves@redhat.com>
7658
7659 * s390-linux-nat.c
7660 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7661 override. Write 'true' instead of '1'.
7662 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7663 declaration.
7664
7665 2018-05-02 Pedro Alves <palves@redhat.com>
7666
7667 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7668 add_inf_child_target.
7669 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7670 add_inf_child_target.
7671 * aix-thread.c (aix_thread_target_info): New.
7672 (aix_thread_target) <shortname, longname, doc>: Delete.
7673 <info>: New.
7674 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7675 add_inf_child_target.
7676 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7677 add_inf_child_target.
7678 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7679 add_inf_child_target.
7680 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7681 add_inf_child_target.
7682 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7683 add_inf_child_target.
7684 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7685 add_inf_child_target.
7686 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7687 add_inf_child_target.
7688 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7689 add_inf_child_target.
7690 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7691 add_inf_child_target.
7692 * bfd-target.c (target_bfd_target_info): New.
7693 (target_bfd) <shortname, longname, doc>: Delete.
7694 <info>: New.
7695 * bsd-kvm.c (bsd_kvm_target_info): New.
7696 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7697 <info>: New.
7698 (bsd_kvm_target::open): Rename to ...
7699 (bsd_kvm_target_open): ... this. Adjust.
7700 * bsd-uthread.c (bsd_uthread_target_info): New.
7701 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7702 <info>: New.
7703 * corefile.c (core_file_command): Adjust.
7704 * corelow.c (core_target_info): New.
7705 (core_target) <shortname, longname, doc>: Delete.
7706 <info>: New.
7707 (core_target::open): Rename to ...
7708 (core_target_open): ... this. Adjust.
7709 * ctf.c (ctf_target_info): New.
7710 (ctf_target) <shortname, longname, doc>: Delete.
7711 <info>: New.
7712 (ctf_target::open): Rename to ...
7713 (ctf_target_open): ... this.
7714 (_initialize_ctf): Adjust.
7715 * exec.c (exec_target_info): New.
7716 (exec_target) <shortname, longname, doc>: Delete.
7717 <info>: New.
7718 (exec_target::open): Rename to ...
7719 (exec_target_open): ... this.
7720 * gdbcore.h (core_target_open): Declare.
7721 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7722 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7723 add_inf_child_target.
7724 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7725 add_inf_child_target.
7726 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7727 add_inf_child_target.
7728 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7729 add_inf_child_target.
7730 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7731 add_inf_child_target.
7732 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7733 add_inf_child_target.
7734 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7735 add_inf_child_target.
7736 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7737 add_inf_child_target.
7738 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7739 add_inf_child_target.
7740 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7741 add_inf_child_target.
7742 * inf-child.c (inf_child_target_info): New.
7743 (inf_child_target::info): New.
7744 (inf_child_open_target): Remove 'target' parameter. Use
7745 get_native_target instead.
7746 (inf_child_target::open): Delete.
7747 (add_inf_child_target): New.
7748 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7749 Delete.
7750 <info>: New.
7751 (add_inf_child_target): Declare.
7752 (inf_child_open_target): Declare.
7753 * linux-thread-db.c (thread_db_target_info): New.
7754 (thread_db_target) <shortname, longname, doc>: Delete.
7755 <info>: New.
7756 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7757 add_inf_child_target.
7758 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7759 add_inf_child_target.
7760 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7761 add_inf_child_target.
7762 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7763 add_inf_child_target.
7764 * make-target-delegates (print_class): Adjust.
7765 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7766 add_inf_child_target.
7767 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7768 add_inf_child_target.
7769 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7770 add_inf_child_target.
7771 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7772 add_inf_child_target.
7773 * nto-procfs.c (nto_native_target_info): New.
7774 (nto_procfs_target_native) <shortname, longname, doc>:
7775 Delete.
7776 <info>: New.
7777 (nto_procfs_target_info): New.
7778 (nto_procfs_target_procfs) <shortname, longname, doc>:
7779 Delete.
7780 <info>: New.
7781 (init_procfs_targets): Adjust.
7782 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7783 add_inf_child_target.
7784 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7785 add_inf_child_target.
7786 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7787 add_inf_child_target.
7788 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7789 add_inf_child_target.
7790 * ravenscar-thread.c (ravenscar_target_info): New.
7791 (ravenscar_thread_target) <shortname, longname, doc>:
7792 Delete.
7793 <info>: New.
7794 * record-btrace.c (record_btrace_target_info):
7795 (record_btrace_target) <shortname, longname, doc>: Delete.
7796 <info>: New.
7797 (record_btrace_target::open): Rename to ...
7798 (record_btrace_target_open): ... this. Adjust.
7799 * record-full.c (record_longname, record_doc): New.
7800 (record_full_base_target) <shortname, longname, doc>: Delete.
7801 <info>: New.
7802 (record_full_target_info): New.
7803 (record_full_target): <shortname>: Delete.
7804 <info>: New.
7805 (record_full_core_open_1, record_full_open_1): Update comments.
7806 (record_full_base_target::open): Rename to ...
7807 (record_full_open): ... this.
7808 (cmd_record_full_restore): Update.
7809 (_initialize_record_full): Update.
7810 * remote-sim.c (remote_sim_target_info): New.
7811 (gdbsim_target) <shortname, longname, doc>: Delete.
7812 <info>: New.
7813 (gdbsim_target::open): Rename to ...
7814 (gdbsim_target_open): ... this.
7815 (_initialize_remote_sim): Adjust.
7816 * remote.c (remote_doc): New.
7817 (remote_target_info): New.
7818 (remote_target) <shortname, longname, doc>: Delete.
7819 <info>: New.
7820 (extended_remote_target_info): New.
7821 (extended_remote_target) <shortname, longname, doc>: Delete.
7822 <info>: New.
7823 (remote_target::open_1): Make static. Adjust.
7824 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7825 * s390-linux-nat.c (_initialize_s390_nat): Use
7826 add_inf_child_target.
7827 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7828 add_inf_child_target.
7829 * sol-thread.c (thread_db_target_info): New.
7830 (sol_thread_target) <shortname, longname, doc>: Delete.
7831 <info>: New.
7832 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7833 add_inf_child_target.
7834 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7835 add_inf_child_target.
7836 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7837 add_inf_child_target.
7838 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7839 add_inf_child_target.
7840 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7841 add_inf_child_target.
7842 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7843 add_inf_child_target.
7844 * spu-linux-nat.c (_initialize_spu_nat): Use
7845 add_inf_child_target.
7846 * spu-multiarch.c (spu_multiarch_target_info): New.
7847 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7848 <info>: New.
7849 * target-delegates.c: Regenerate.
7850 * target.c: Include <unordered_map>.
7851 (target_ops_p): Delete.
7852 (DEF_VEC_P(target_ops_p)): Delete.
7853 (target_factories): New.
7854 (test_target_info): New.
7855 (test_target_ops::info): New.
7856 (open_target): Adjust to use target_factories.
7857 (add_target_with_completer): Rename to ...
7858 (add_target): ... this. Change prototype. Register target_info
7859 and open callback in target_factories. Register target_info in
7860 command context instead of target_ops.
7861 (add_target): Delete old implementation.
7862 (add_deprecated_target_alias): Change prototype. Adjust.
7863 (the_native_target): New.
7864 (set_native_target, get_native_target): New.
7865 (find_default_run_target): Use the_native_target.
7866 (find_attach_target, find_run_target): Simplify.
7867 (target_ops::open): Delete.
7868 (dummy_target_info): New.
7869 (dummy_target::shortname, dummy_target::longname)
7870 (dummy_target::doc): Delete.
7871 (dummy_target::info): New.
7872 (debug_target::shortname, debug_target::longname)
7873 (debug_target::doc): Delete.
7874 (debug_target::info): New.
7875 * target.h (struct target_info): New.
7876 (target_ops::~target_ops): Add comment.
7877 (target_ops::info): New.
7878 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7879 longer virtual. Implement in terms of target_info.
7880 (set_native_target, get_native_target): Declare.
7881 (target_open_ftype): New.
7882 (add_target, add_target_with_completer)
7883 (add_deprecated_target_alias): Change prototype.
7884 (test_target) <shortname, longname, doc>: Delete.
7885 <info>: New.
7886 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7887 add_inf_child_target.
7888 * tracefile-tfile.c (tfile_target_info): New.
7889 (tfile_target) <shortname, longname, doc>: Delete.
7890 <info>: New.
7891 (tfile_target::open): Rename to ...
7892 (tfile_target_open): ... this.
7893 (_initialize_tracefile_tfile): Adjust.
7894 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7895 add_inf_child_target.
7896 * windows-nat.c (_initialize_windows_nat): Use
7897 add_inf_child_target.
7898 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7899 add_inf_child_target.
7900
7901 2018-05-02 Pedro Alves <palves@redhat.com>
7902
7903 * linux-nat.h (linux_nat_target) <low_new_thread,
7904 low_delete_thread, low_new_fork, low_forget_process,
7905 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7906 New virtual methods.
7907 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7908 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7909 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7910 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7911 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7912 Delete.
7913 * linux-fork.c (delete_fork): Adjust to call low method.
7914 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7915 (linux_nat_new_fork, linux_nat_forget_process_hook)
7916 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7917 (linux_nat_status_is_event):
7918 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7919 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7920 to call low method.
7921 (sigtrap_is_event): Rename to ...
7922 (linux_nat_target::low_status_is_event): ... this.
7923 (linux_nat_set_status_is_event): Delete.
7924 (save_stop_reason, linux_nat_wait_1)
7925 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7926 low methods.
7927 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7928 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7929 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7930 (linux_nat_set_prepare_to_resume): Delete.
7931 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7932 low virtual methods.
7933 * amd64-linux-nat.c: Likewise.
7934 * arm-linux-nat.c: Likewise.
7935 * i386-linux-nat.c: Likewise.
7936 * ia64-linux-nat.c: Likewise.
7937 * mips-linux-nat.c: Likewise.
7938 * ppc-linux-nat.c: Likewise.
7939 * s390-linux-nat.c: Likewise.
7940 * sparc64-linux-nat.c: Likewise.
7941 * x86-linux-nat.c: Likewise.
7942 * x86-linux-nat.h: Include "nat/x86-linux.h".
7943 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7944 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7945 Override methods.
7946
7947 2018-05-02 Pedro Alves <palves@redhat.com>
7948
7949 * target.h (target_ops)
7950 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7951 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7952 stopped_by_watchpoint, have_continuable_watchpoint,
7953 stopped_data_address, watchpoint_addr_within_range,
7954 can_accel_watchpoint_condition, can_run, thread_alive,
7955 has_all_memory, has_memory, has_stack, has_registers,
7956 has_execution, can_async_p, is_async_p, supports_non_stop,
7957 always_non_stop_p, can_execute_reverse, supports_multi_process,
7958 supports_enable_disable_tracepoint,
7959 supports_disable_randomization, supports_string_tracing,
7960 supports_evaluation_of_breakpoint_conditions,
7961 can_run_breakpoint_commands, filesystem_is_local,
7962 can_download_tracepoint, get_trace_state_variable_value,
7963 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7964 record_is_replaying, record_will_replay,
7965 augmented_libraries_svr4_read>: Adjust to return bool.
7966 * aarch64-linux-nat.c: All implementations adjusted.
7967 * aix-thread.c: All implementations adjusted.
7968 * arm-linux-nat.c: All implementations adjusted.
7969 * breakpoint.c: All implementations adjusted.
7970 * bsd-kvm.c: All implementations adjusted.
7971 * bsd-uthread.c: All implementations adjusted.
7972 * corelow.c: All implementations adjusted.
7973 * ctf.c: All implementations adjusted.
7974 * darwin-nat.c: All implementations adjusted.
7975 * darwin-nat.h: All implementations adjusted.
7976 * exec.c: All implementations adjusted.
7977 * fbsd-nat.c: All implementations adjusted.
7978 * fbsd-nat.h: All implementations adjusted.
7979 * gnu-nat.c: All implementations adjusted.
7980 * gnu-nat.h: All implementations adjusted.
7981 * go32-nat.c: All implementations adjusted.
7982 * ia64-linux-nat.c: All implementations adjusted.
7983 * inf-child.c: All implementations adjusted.
7984 * inf-child.h: All implementations adjusted.
7985 * inf-ptrace.c: All implementations adjusted.
7986 * inf-ptrace.h: All implementations adjusted.
7987 * linux-nat.c: All implementations adjusted.
7988 * linux-nat.h: All implementations adjusted.
7989 * mips-linux-nat.c: All implementations adjusted.
7990 * nto-procfs.c: All implementations adjusted.
7991 * ppc-linux-nat.c: All implementations adjusted.
7992 * procfs.c: All implementations adjusted.
7993 * ravenscar-thread.c: All implementations adjusted.
7994 * record-btrace.c: All implementations adjusted.
7995 * record-full.c: All implementations adjusted.
7996 * remote-sim.c: All implementations adjusted.
7997 * remote.c: All implementations adjusted.
7998 * s390-linux-nat.c: All implementations adjusted.
7999 * sol-thread.c: All implementations adjusted.
8000 * spu-multiarch.c: All implementations adjusted.
8001 * target-delegates.c: All implementations adjusted.
8002 * target.c: All implementations adjusted.
8003 * target.h: All implementations adjusted.
8004 * tracefile-tfile.c: All implementations adjusted.
8005 * tracefile.c: All implementations adjusted.
8006 * tracefile.h: All implementations adjusted.
8007 * windows-nat.c: All implementations adjusted.
8008 * x86-linux-nat.h: All implementations adjusted.
8009 * x86-nat.h: All implementations adjusted.
8010
8011 2018-05-02 Pedro Alves <palves@redhat.com>
8012
8013 * make-target-delegates (scan_target_h): Don't trim lines here.
8014 Replace sequences of tabs and/or whitespace with a single
8015 whitespace.
8016 (top level, parsing methods): Trim each line before processing it
8017 here.
8018
8019 2018-05-02 Pedro Alves <palves@redhat.com>
8020 John Baldwin <jhb@freebsd.org>
8021
8022 * target.h (enum strata) <debug_stratum>: New.
8023 (struct target_ops) <all delegation methods>: Replace by C++
8024 virtual methods, and drop "to_" prefix. All references updated
8025 throughout.
8026 <to_shortname, to_longname, to_doc, to_data,
8027 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8028 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8029 virtual methods. All references updated throughout.
8030 <can_attach, supports_terminal_ours, can_create_inferior,
8031 get_thread_control_capabilities, attach_no_wait>: New
8032 virtual methods.
8033 <insert_breakpoint, remove_breakpoint>: Now
8034 TARGET_DEFAULT_NORETURN methods.
8035 <info_proc>: Now returns bool.
8036 <to_magic>: Delete.
8037 (OPS_MAGIC): Delete.
8038 (current_target): Delete. All references replaced by references
8039 to ...
8040 (target_stack): ... this. New.
8041 (target_shortname, target_longname): Adjust.
8042 (target_can_run): Now a function declaration.
8043 (default_child_has_all_memory, default_child_has_memory)
8044 (default_child_has_stack, default_child_has_registers)
8045 (default_child_has_execution): Remove target_ops parameter.
8046 (complete_target_initialization): Delete.
8047 (memory_breakpoint_target): New template class.
8048 (test_target_ops): Refactor as a C++ class with virtual methods.
8049 * make-target-delegates (NAME_PART): Tighten.
8050 (POINTER_PART, CP_SYMBOL): New.
8051 (SIMPLE_RETURN_PART): Reimplement.
8052 (VEC_RETURN_PART): Expect less.
8053 (RETURN_PART, VIRTUAL_PART): New.
8054 (METHOD): Adjust to C++ virtual methods.
8055 (scan_target_h): Remove reference to C99.
8056 (dname): Output "target_ops::" prefix.
8057 (write_function_header): Adjust to output a C++ class method.
8058 (write_declaration): New.
8059 (write_delegator): Adjust to output a C++ class method.
8060 (tdname): Output "dummy_target::" prefix.
8061 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8062 method.
8063 (tdefault_names, debug_names): Delete.
8064 (return_types, tdefaults, styles, argtypes_array): New.
8065 (top level): All methods are delegators.
8066 (print_class): New.
8067 (top level): Print dummy_target and debug_target classes.
8068 * target-delegates.c: Regenerate.
8069 * target-debug.h (target_debug_print_enum_info_proc_what)
8070 (target_debug_print_thread_control_capabilities)
8071 (target_debug_print_thread_info_p): New.
8072 * target.c (dummy_target): Delete.
8073 (the_dummy_target, the_debug_target): New.
8074 (target_stack): Now extern.
8075 (set_targetdebug): Push/unpush debug target.
8076 (default_child_has_all_memory, default_child_has_memory)
8077 (default_child_has_stack, default_child_has_registers)
8078 (default_child_has_execution): Remove target_ops parameter.
8079 (complete_target_initialization): Delete.
8080 (add_target_with_completer): No longer call
8081 complete_target_initialization.
8082 (target_supports_terminal_ours): Use regular delegation.
8083 (update_current_target): Delete.
8084 (push_target): No longer check magic number. Don't call
8085 update_current_target.
8086 (unpush_target): Don't call update_current_target.
8087 (target_is_pushed): No longer check magic number.
8088 (target_require_runnable): Skip for all stratums over
8089 process_stratum.
8090 (target_ops::info_proc): New.
8091 (target_info_proc): Use find_target_at and
8092 find_default_run_target.
8093 (target_supports_disable_randomization): Use regular delegation.
8094 (target_get_osdata): Use find_target_at.
8095 (target_ops::open, target_ops::close, target_ops::can_attach)
8096 (target_ops::attach, target_ops::can_create_inferior)
8097 (target_ops::create_inferior, target_ops::can_run)
8098 (target_can_run): New.
8099 (default_fileio_target): Use regular delegation.
8100 (target_ops::fileio_open, target_ops::fileio_pwrite)
8101 (target_ops::fileio_pread, target_ops::fileio_fstat)
8102 (target_ops::fileio_close, target_ops::fileio_unlink)
8103 (target_ops::fileio_readlink): New.
8104 (target_fileio_open_1, target_fileio_unlink)
8105 (target_fileio_readlink): Always call the target method. Handle
8106 FILEIO_ENOSYS.
8107 (return_zero, return_zero_has_execution): Delete.
8108 (init_dummy_target): Delete.
8109 (dummy_target::dummy_target, dummy_target::shortname)
8110 (dummy_target::longname, dummy_target::doc)
8111 (debug_target::debug_target, debug_target::shortname)
8112 (debug_target::longname, debug_target::doc): New.
8113 (target_supports_delete_record): Use regular delegation.
8114 (setup_target_debug): Delete.
8115 (maintenance_print_target_stack): Skip debug_stratum.
8116 (initialize_targets): Instantiate the_dummy_target and
8117 the_debug_target.
8118 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8119 use target_stack.
8120 (target_auxv_search, fprint_target_auxv): Adjust.
8121 (info_auxv_command): Adjust to use target_stack.
8122 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8123 * exceptions.c (print_flush): Handle a NULL target_stack.
8124 * regcache.c (target_ops_no_register): Refactor as class with
8125 virtual methods.
8126
8127 * exec.c (exec_target): New class.
8128 (exec_ops): Now an exec_target.
8129 (exec_open, exec_close_1, exec_get_section_table)
8130 (exec_xfer_partial, exec_files_info, exec_has_memory)
8131 (exec_make_note_section): Refactor as exec_target methods.
8132 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8133 Delete.
8134 (exec_target::find_memory_regions): New.
8135 (_initialize_exec): Don't call init_exec_ops.
8136 * gdbcore.h (exec_file_clear): Delete.
8137
8138 * corefile.c (core_target): Delete.
8139 (core_file_command): Adjust.
8140 * corelow.c (core_target): New class.
8141 (the_core_target): New.
8142 (core_close): Remove target_ops parameter.
8143 (core_close_cleanup): Adjust.
8144 (core_target::close): New.
8145 (core_open, core_detach, get_core_registers, core_files_info)
8146 (core_xfer_partial, core_thread_alive, core_read_description)
8147 (core_pid_to_str, core_thread_name, core_has_memory)
8148 (core_has_stack, core_has_registers, core_info_proc): Rework as
8149 core_target methods.
8150 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8151 (_initialize_corelow): Initialize the_core_target.
8152 * gdbcore.h (core_target): Delete.
8153 (the_core_target): New.
8154
8155 * ctf.c: (ctf_target): New class.
8156 (ctf_ops): Now a ctf_target.
8157 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8158 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8159 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8160 methods.
8161 (init_ctf_ops): Delete.
8162 (_initialize_ctf): Don't call it.
8163 * tracefile-tfile.c (tfile_target): New class.
8164 (tfile_ops): Now a tfile_target.
8165 (tfile_open, tfile_close, tfile_files_info)
8166 (tfile_get_tracepoint_status, tfile_trace_find)
8167 (tfile_fetch_registers, tfile_xfer_partial)
8168 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8169 Refactor as tfile_target methods.
8170 (tfile_xfer_partial_features): Remove target_ops parameter.
8171 (init_tfile_ops): Delete.
8172 (_initialize_tracefile_tfile): Don't call it.
8173 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8174 (tracefile_has_stack, tracefile_has_registers)
8175 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8176 tracefile_target methods.
8177 (init_tracefile_ops): Delete.
8178 (tracefile_target::tracefile_target): New.
8179 * tracefile.h: Include "target.h".
8180 (tracefile_target): New class.
8181 (init_tracefile_ops): Delete.
8182
8183 * spu-multiarch.c (spu_multiarch_target): New class.
8184 (spu_ops): Now a spu_multiarch_target.
8185 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8186 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8187 (spu_search_memory, spu_mourn_inferior): Refactor as
8188 spu_multiarch_target methods.
8189 (init_spu_ops): Delete.
8190 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8191 complete_target_initialization.
8192
8193 * ravenscar-thread.c (ravenscar_thread_target): New class.
8194 (ravenscar_ops): Now a ravenscar_thread_target.
8195 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8196 (ravenscar_thread_alive, ravenscar_pid_to_str)
8197 (ravenscar_fetch_registers, ravenscar_store_registers)
8198 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8199 (ravenscar_stopped_by_hw_breakpoint)
8200 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8201 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8202 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8203 methods.
8204 (init_ravenscar_thread_ops): Delete.
8205 (_initialize_ravenscar): Remove references to
8206 init_ravenscar_thread_ops and complete_target_initialization.
8207
8208 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8209 (bsd_uthread_target): New class.
8210 (bsd_uthread_ops): Now a bsd_uthread_target.
8211 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8212 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8213 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8214 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8215 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8216 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8217 (bsd_uthread_target): Delete function.
8218 (_initialize_bsd_uthread): Remove reference to
8219 complete_target_initialization.
8220
8221 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8222 (target_bfd): ... this new class.
8223 (target_bfd_xfer_partial, target_bfd_get_section_table)
8224 (target_bfd_close): Refactor as target_bfd methods.
8225 (target_bfd::~target_bfd): New.
8226 (target_bfd_reopen): Adjust.
8227 (target_bfd::close): New.
8228
8229 * record-btrace.c (record_btrace_target): New class.
8230 (record_btrace_ops): Now a record_btrace_target.
8231 (record_btrace_open, record_btrace_stop_recording)
8232 (record_btrace_disconnect, record_btrace_close)
8233 (record_btrace_async, record_btrace_info)
8234 (record_btrace_insn_history, record_btrace_insn_history_range)
8235 (record_btrace_insn_history_from, record_btrace_call_history)
8236 (record_btrace_call_history_range)
8237 (record_btrace_call_history_from, record_btrace_record_method)
8238 (record_btrace_is_replaying, record_btrace_will_replay)
8239 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8240 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8241 (record_btrace_store_registers, record_btrace_prepare_to_store)
8242 (record_btrace_to_get_unwinder)
8243 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8244 (record_btrace_commit_resume, record_btrace_wait)
8245 (record_btrace_stop, record_btrace_can_execute_reverse)
8246 (record_btrace_stopped_by_sw_breakpoint)
8247 (record_btrace_supports_stopped_by_sw_breakpoint)
8248 (record_btrace_stopped_by_hw_breakpoint)
8249 (record_btrace_supports_stopped_by_hw_breakpoint)
8250 (record_btrace_update_thread_list, record_btrace_thread_alive)
8251 (record_btrace_goto_begin, record_btrace_goto_end)
8252 (record_btrace_goto, record_btrace_stop_replaying_all)
8253 (record_btrace_execution_direction)
8254 (record_btrace_prepare_to_generate_core)
8255 (record_btrace_done_generating_core): Refactor as
8256 record_btrace_target methods.
8257 (init_record_btrace_ops): Delete.
8258 (_initialize_record_btrace): Remove reference to
8259 init_record_btrace_ops.
8260 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8261 the execution_direction global.
8262 (record_full_base_target, record_full_target)
8263 (record_full_core_target): New classes.
8264 (record_full_ops): Now a record_full_target.
8265 (record_full_core_ops): Now a record_full_core_target.
8266 (record_full_target::detach, record_full_target::disconnect)
8267 (record_full_core_target::disconnect)
8268 (record_full_target::mourn_inferior, record_full_target::kill):
8269 New.
8270 (record_full_open, record_full_close, record_full_async): Refactor
8271 as methods of the record_full_base_target class.
8272 (record_full_resume, record_full_commit_resume): Refactor
8273 as methods of the record_full_target class.
8274 (record_full_wait, record_full_stopped_by_watchpoint)
8275 (record_full_stopped_data_address)
8276 (record_full_stopped_by_sw_breakpoint)
8277 (record_full_supports_stopped_by_sw_breakpoint)
8278 (record_full_stopped_by_hw_breakpoint)
8279 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8280 methods of the record_full_base_target class.
8281 (record_full_store_registers, record_full_xfer_partial)
8282 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8283 Refactor as methods of the record_full_target class.
8284 (record_full_can_execute_reverse, record_full_get_bookmark)
8285 (record_full_goto_bookmark, record_full_execution_direction)
8286 (record_full_record_method, record_full_info, record_full_delete)
8287 (record_full_is_replaying, record_full_will_replay)
8288 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8289 (record_full_stop_replaying): Refactor as methods of the
8290 record_full_base_target class.
8291 (record_full_core_resume, record_full_core_kill)
8292 (record_full_core_fetch_registers)
8293 (record_full_core_prepare_to_store)
8294 (record_full_core_store_registers, record_full_core_xfer_partial)
8295 (record_full_core_insert_breakpoint)
8296 (record_full_core_remove_breakpoint)
8297 (record_full_core_has_execution): Refactor
8298 as methods of the record_full_core_target class.
8299 (record_full_base_target::supports_delete_record): New.
8300 (init_record_full_ops): Delete.
8301 (init_record_full_core_ops): Delete.
8302 (record_full_save): Refactor as method of the
8303 record_full_base_target class.
8304 (_initialize_record_full): Remove references to
8305 init_record_full_ops and init_record_full_core_ops.
8306
8307 * remote.c (remote_target, extended_remote_target): New classes.
8308 (remote_ops): Now a remote_target.
8309 (extended_remote_ops): Now an extended_remote_target.
8310 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8311 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8312 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8313 (remote_pass_signals, remote_set_syscall_catchpoint)
8314 (remote_program_signals, )
8315 (remote_thread_always_alive): Remove target_ops parameter.
8316 (remote_thread_alive, remote_thread_name)
8317 (remote_update_thread_list, remote_threads_extra_info)
8318 (remote_static_tracepoint_marker_at)
8319 (remote_static_tracepoint_markers_by_strid)
8320 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8321 (remote_open): Refactor as methods of remote_target.
8322 (extended_remote_open, extended_remote_detach)
8323 (extended_remote_attach, extended_remote_post_attach):
8324 (extended_remote_supports_disable_randomization)
8325 (extended_remote_create_inferior): : Refactor as method of
8326 extended_remote_target.
8327 (remote_set_permissions, remote_open_1, remote_detach)
8328 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8329 (remote_resume, remote_commit_resume, remote_stop)
8330 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8331 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8332 (remote_prepare_to_store, remote_store_registers)
8333 (remote_flash_erase, remote_flash_done, remote_files_info)
8334 (remote_kill, remote_mourn, remote_insert_breakpoint)
8335 (remote_remove_breakpoint, remote_insert_watchpoint)
8336 (remote_watchpoint_addr_within_range)
8337 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8338 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8339 (remote_supports_stopped_by_sw_breakpoint)
8340 (remote_stopped_by_hw_breakpoint)
8341 (remote_supports_stopped_by_hw_breakpoint)
8342 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8343 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8344 (remote_verify_memory): Refactor as methods of remote_target.
8345 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8346 parameter.
8347 (remote_xfer_partial, remote_get_memory_xfer_limit)
8348 (remote_search_memory, remote_rcmd, remote_memory_map)
8349 (remote_pid_to_str, remote_get_thread_local_address)
8350 (remote_get_tib_address, remote_read_description): Refactor as
8351 methods of remote_target.
8352 (remote_target::fileio_open, remote_target::fileio_pwrite)
8353 (remote_target::fileio_pread, remote_target::fileio_close): New.
8354 (remote_hostio_readlink, remote_hostio_fstat)
8355 (remote_filesystem_is_local, remote_can_execute_reverse)
8356 (remote_supports_non_stop, remote_supports_disable_randomization)
8357 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8358 (remote_supports_enable_disable_tracepoint)
8359 (remote_supports_string_tracing)
8360 (remote_can_run_breakpoint_commands, remote_trace_init)
8361 (remote_download_tracepoint, remote_can_download_tracepoint)
8362 (remote_download_trace_state_variable, remote_enable_tracepoint)
8363 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8364 (remote_trace_start, remote_get_trace_status)
8365 (remote_get_tracepoint_status, remote_trace_stop)
8366 (remote_trace_find, remote_get_trace_state_variable_value)
8367 (remote_save_trace_data, remote_get_raw_trace_data)
8368 (remote_set_disconnected_tracing, remote_core_of_thread)
8369 (remote_set_circular_trace_buffer, remote_traceframe_info)
8370 (remote_get_min_fast_tracepoint_insn_len)
8371 (remote_set_trace_buffer_size, remote_set_trace_notes)
8372 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8373 (remote_disable_btrace, remote_teardown_btrace)
8374 (remote_read_btrace, remote_btrace_conf)
8375 (remote_augmented_libraries_svr4_read, remote_load)
8376 (remote_pid_to_exec_file, remote_can_do_single_step)
8377 (remote_execution_direction, remote_thread_handle_to_thread_info):
8378 Refactor as methods of remote_target.
8379 (init_remote_ops, init_extended_remote_ops): Delete.
8380 (remote_can_async_p, remote_is_async_p, remote_async)
8381 (remote_thread_events, remote_upload_tracepoints)
8382 (remote_upload_trace_state_variables): Refactor as methods of
8383 remote_target.
8384 (_initialize_remote): Remove references to init_remote_ops and
8385 init_extended_remote_ops.
8386
8387 * remote-sim.c (gdbsim_target): New class.
8388 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8389 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8390 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8391 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8392 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8393 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8394 Refactor as methods of gdbsim_target.
8395 (gdbsim_ops): Now a gdbsim_target.
8396 (init_gdbsim_ops): Delete.
8397 (gdbsim_cntrl_c): Adjust.
8398 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8399
8400 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8401 (the_amd64_linux_nat_target): New.
8402 (amd64_linux_fetch_inferior_registers)
8403 (amd64_linux_store_inferior_registers): Refactor as methods of
8404 amd64_linux_nat_target.
8405 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8406 * i386-linux-nat.c: Don't include "linux-nat.h".
8407 (i386_linux_nat_target): New class.
8408 (the_i386_linux_nat_target): New.
8409 (i386_linux_fetch_inferior_registers)
8410 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8411 as methods of i386_linux_nat_target.
8412 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8413 * inf-child.c (inf_child_ops): Delete.
8414 (inf_child_fetch_inferior_registers)
8415 (inf_child_store_inferior_registers): Delete.
8416 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8417 methods of inf_child_target.
8418 (inf_child_target::supports_terminal_ours)
8419 (inf_child_target::terminal_init)
8420 (inf_child_target::terminal_inferior)
8421 (inf_child_target::terminal_ours_for_output)
8422 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8423 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8424 New.
8425 (inf_child_open, inf_child_disconnect, inf_child_close)
8426 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8427 (inf_child_post_startup_inferior, inf_child_can_run)
8428 (inf_child_pid_to_exec_file): Refactor as methods of
8429 inf_child_target.
8430 (inf_child_follow_fork): Delete.
8431 (inf_child_target::can_create_inferior)
8432 (inf_child_target::can_attach): New.
8433 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8434 (inf_child_target::has_stack, inf_child_target::has_registers)
8435 (inf_child_target::has_execution): New.
8436 (inf_child_fileio_open, inf_child_fileio_pwrite)
8437 (inf_child_fileio_pread, inf_child_fileio_fstat)
8438 (inf_child_fileio_close, inf_child_fileio_unlink)
8439 (inf_child_fileio_readlink, inf_child_use_agent)
8440 (inf_child_can_use_agent): Refactor as methods of
8441 inf_child_target.
8442 (return_zero, inf_child_target): Delete.
8443 (inf_child_target::inf_child_target): New.
8444 * inf-child.h: Include "target.h".
8445 (inf_child_target): Delete function prototype.
8446 (inf_child_target): New class.
8447 (inf_child_open_target, inf_child_mourn_inferior)
8448 (inf_child_maybe_unpush_target): Delete.
8449 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8450 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8451 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8452 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8453 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8454 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8455 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8456 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8457 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8458 methods of inf_ptrace_target.
8459 (inf_ptrace_target): Delete function.
8460 * inf-ptrace.h: Include "inf-child.h".
8461 (inf_ptrace_target): Delete function declaration.
8462 (inf_ptrace_target): New class.
8463 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8464 * linux-nat.c (linux_target): New.
8465 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8466 (linux_nat_target::~linux_nat_target): New.
8467 (linux_child_post_attach, linux_child_post_startup_inferior)
8468 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8469 (linux_child_remove_fork_catchpoint)
8470 (linux_child_insert_vfork_catchpoint)
8471 (linux_child_remove_vfork_catchpoint)
8472 (linux_child_insert_exec_catchpoint)
8473 (linux_child_remove_exec_catchpoint)
8474 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8475 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8476 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8477 (linux_nat_stopped_data_address)
8478 (linux_nat_stopped_by_sw_breakpoint)
8479 (linux_nat_supports_stopped_by_sw_breakpoint)
8480 (linux_nat_stopped_by_hw_breakpoint)
8481 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8482 (linux_nat_kill, linux_nat_mourn_inferior)
8483 (linux_nat_xfer_partial, linux_nat_thread_alive)
8484 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8485 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8486 (linux_child_static_tracepoint_markers_by_strid)
8487 (linux_nat_is_async_p, linux_nat_can_async_p)
8488 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8489 (linux_nat_supports_multi_process)
8490 (linux_nat_supports_disable_randomization, linux_nat_async)
8491 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8492 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8493 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8494 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8495 methods of linux_nat_target.
8496 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8497 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8498 parameter.
8499 (check_stopped_by_watchpoint): Adjust.
8500 (linux_xfer_partial): Delete.
8501 (linux_target_install_ops, linux_target, linux_nat_add_target):
8502 Delete.
8503 (linux_nat_target::linux_nat_target): New.
8504 * linux-nat.h: Include "inf-ptrace.h".
8505 (linux_nat_target): New.
8506 (linux_target, linux_target_install_ops, linux_nat_add_target):
8507 Delete function declarations.
8508 (linux_target): Declare global.
8509 * linux-thread-db.c (thread_db_target): New.
8510 (thread_db_target::thread_db_target): New.
8511 (thread_db_ops): Delete.
8512 (the_thread_db_target): New.
8513 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8514 (thread_db_update_thread_list, thread_db_pid_to_str)
8515 (thread_db_extra_thread_info)
8516 (thread_db_thread_handle_to_thread_info)
8517 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8518 (thread_db_resume): Refactor as methods of thread_db_target.
8519 (init_thread_db_ops): Delete.
8520 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8521 * x86-linux-nat.c: Don't include "linux-nat.h".
8522 (super_post_startup_inferior): Delete.
8523 (x86_linux_nat_target::~x86_linux_nat_target): New.
8524 (x86_linux_child_post_startup_inferior)
8525 (x86_linux_read_description, x86_linux_enable_btrace)
8526 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8527 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8528 methods of x86_linux_nat_target.
8529 (x86_linux_create_target): Delete. Bits folded ...
8530 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8531 pointer.
8532 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8533 (x86_linux_nat_target): New class.
8534 (x86_linux_create_target): Delete.
8535 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8536 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8537 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8538 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8539 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8540 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8541 make extern.
8542 (x86_use_watchpoints): Delete.
8543 * x86-nat.h: Include "breakpoint.h" and "target.h".
8544 (x86_use_watchpoints): Delete.
8545 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8546 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8547 (x86_insert_watchpoint, x86_remove_watchpoint)
8548 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8549 (x86_stopped_by_hw_breakpoint): New declarations.
8550 (x86_nat_target): New template class.
8551
8552 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8553 (the_ppc_linux_nat_target): New.
8554 (ppc_linux_fetch_inferior_registers)
8555 (ppc_linux_can_use_hw_breakpoint)
8556 (ppc_linux_region_ok_for_hw_watchpoint)
8557 (ppc_linux_ranged_break_num_registers)
8558 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8559 (ppc_linux_insert_mask_watchpoint)
8560 (ppc_linux_remove_mask_watchpoint)
8561 (ppc_linux_can_accel_watchpoint_condition)
8562 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8563 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8564 (ppc_linux_watchpoint_addr_within_range)
8565 (ppc_linux_masked_watch_num_registers)
8566 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8567 (ppc_linux_read_description): Refactor as methods of
8568 ppc_linux_nat_target.
8569 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8570
8571 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8572 (procfs_target): New class.
8573 (the_procfs_target): New.
8574 (procfs_target): Delete function.
8575 (procfs_auxv_parse, procfs_attach, procfs_detach)
8576 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8577 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8578 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8579 (procfs_create_inferior, procfs_update_thread_list)
8580 (procfs_thread_alive, procfs_pid_to_str)
8581 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8582 (procfs_stopped_data_address, procfs_insert_watchpoint)
8583 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8584 (proc_find_memory_regions, procfs_info_proc)
8585 (procfs_make_note_section): Refactor as methods of procfs_target.
8586 (_initialize_procfs): Adjust.
8587 * sol-thread.c (sol_thread_target): New class.
8588 (sol_thread_ops): Now a sol_thread_target.
8589 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8590 (sol_thread_fetch_registers, sol_thread_store_registers)
8591 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8592 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8593 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8594 (init_sol_thread_ops): Delete.
8595 (_initialize_sol_thread): Adjust. Remove references to
8596 init_sol_thread_ops and complete_target_initialization.
8597
8598 * windows-nat.c (windows_nat_target): New class.
8599 (windows_fetch_inferior_registers)
8600 (windows_store_inferior_registers, windows_resume, windows_wait)
8601 (windows_attach, windows_detach, windows_pid_to_exec_file)
8602 (windows_files_info, windows_create_inferior)
8603 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8604 (windows_close, windows_pid_to_str, windows_xfer_partial)
8605 (windows_get_tib_address, windows_get_ada_task_ptid)
8606 (windows_thread_name, windows_thread_alive): Refactor as
8607 windows_nat_target methods.
8608 (do_initial_windows_stuff): Adjust.
8609 (windows_target): Delete function.
8610 (_initialize_windows_nat): Adjust.
8611
8612 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8613 (darwin_mourn_inferior, darwin_kill_inferior)
8614 (darwin_create_inferior, darwin_attach, darwin_detach)
8615 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8616 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8617 (darwin_supports_multi_process): Refactor as darwin_nat_target
8618 methods.
8619 (darwin_resume_to, darwin_files_info): Delete.
8620 (_initialize_darwin_inferior): Rename to ...
8621 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8622 * darwin-nat.h: Include "inf-child.h".
8623 (darwin_nat_target): New class.
8624 (darwin_complete_target): Delete.
8625 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8626 (darwin_target): New.
8627 (i386_darwin_fetch_inferior_registers)
8628 (i386_darwin_store_inferior_registers): Refactor as methods of
8629 darwin_nat_target.
8630 (darwin_complete_target): Delete, with ...
8631 (_initialize_i386_darwin_nat): ... bits factored out here.
8632
8633 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8634 (the_alpha_linux_nat_target): New.
8635 (alpha_linux_register_u_offset): Refactor as
8636 alpha_linux_nat_target method.
8637 (_initialize_alpha_linux_nat): Adjust.
8638 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8639 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8640 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8641 methods of linux_nat_trad_target.
8642 (linux_trad_target): Delete.
8643 * linux-nat-trad.h (linux_trad_target): Delete function.
8644 (linux_nat_trad_target): New class.
8645 * mips-linux-nat.c (mips_linux_nat_target): New class.
8646 (super_fetch_registers, super_store_registers, super_close):
8647 Delete.
8648 (the_mips_linux_nat_target): New.
8649 (mips64_linux_regsets_fetch_registers)
8650 (mips64_linux_regsets_store_registers)
8651 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8652 (mips_linux_register_u_offset, mips_linux_read_description)
8653 (mips_linux_can_use_hw_breakpoint)
8654 (mips_linux_stopped_by_watchpoint)
8655 (mips_linux_stopped_data_address)
8656 (mips_linux_region_ok_for_hw_watchpoint)
8657 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8658 (mips_linux_close): Refactor as methods of mips_linux_nat.
8659 (_initialize_mips_linux_nat): Adjust to C++ification.
8660
8661 * aix-thread.c (aix_thread_target): New class.
8662 (aix_thread_ops): Now an aix_thread_target.
8663 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8664 (aix_thread_fetch_registers, aix_thread_store_registers)
8665 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8666 (aix_thread_thread_alive, aix_thread_pid_to_str)
8667 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8668 Refactor as methods of aix_thread_target.
8669 (init_aix_thread_ops): Delete.
8670 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8671 and complete_target_initialization.
8672 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8673 (rs6000_nat_target): New class.
8674 (the_rs6000_nat_target): New.
8675 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8676 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8677 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8678 (super_create_inferior): Delete.
8679 (_initialize_rs6000_nat): Adjust to C++ification.
8680
8681 * arm-linux-nat.c (arm_linux_nat_target): New class.
8682 (the_arm_linux_nat_target): New.
8683 (arm_linux_fetch_inferior_registers)
8684 (arm_linux_store_inferior_registers, arm_linux_read_description)
8685 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8686 (arm_linux_remove_hw_breakpoint)
8687 (arm_linux_region_ok_for_hw_watchpoint)
8688 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8689 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8690 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8691 arm_linux_nat_target.
8692 (_initialize_arm_linux_nat): Adjust to C++ification.
8693
8694 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8695 (the_aarch64_linux_nat_target): New.
8696 (aarch64_linux_fetch_inferior_registers)
8697 (aarch64_linux_store_inferior_registers)
8698 (aarch64_linux_child_post_startup_inferior)
8699 (aarch64_linux_read_description)
8700 (aarch64_linux_can_use_hw_breakpoint)
8701 (aarch64_linux_insert_hw_breakpoint)
8702 (aarch64_linux_remove_hw_breakpoint)
8703 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8704 (aarch64_linux_region_ok_for_hw_watchpoint)
8705 (aarch64_linux_stopped_data_address)
8706 (aarch64_linux_stopped_by_watchpoint)
8707 (aarch64_linux_watchpoint_addr_within_range)
8708 (aarch64_linux_can_do_single_step): Refactor as methods of
8709 aarch64_linux_nat_target.
8710 (super_post_startup_inferior): Delete.
8711 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8712
8713 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8714 (the_hppa_linux_nat_target): New.
8715 (hppa_linux_fetch_inferior_registers)
8716 (hppa_linux_store_inferior_registers): Refactor as methods of
8717 hppa_linux_nat_target.
8718 (_initialize_hppa_linux_nat): Adjust to C++ification.
8719
8720 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8721 (the_ia64_linux_nat_target): New.
8722 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8723 (ia64_linux_stopped_data_address)
8724 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8725 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8726 ia64_linux_nat_target methods.
8727 (super_xfer_partial): Delete.
8728 (_initialize_ia64_linux_nat): Adjust to C++ification.
8729
8730 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8731 (the_m32r_linux_nat_target): New.
8732 (m32r_linux_fetch_inferior_registers)
8733 (m32r_linux_store_inferior_registers): Refactor as
8734 m32r_linux_nat_target methods.
8735 (_initialize_m32r_linux_nat): Adjust to C++ification.
8736
8737 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8738 (the_m68k_linux_nat_target): New.
8739 (m68k_linux_fetch_inferior_registers)
8740 (m68k_linux_store_inferior_registers): Refactor as
8741 m68k_linux_nat_target methods.
8742 (_initialize_m68k_linux_nat): Adjust to C++ification.
8743
8744 * s390-linux-nat.c (s390_linux_nat_target): New class.
8745 (the_s390_linux_nat_target): New.
8746 (s390_linux_fetch_inferior_registers)
8747 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8748 (s390_insert_watchpoint, s390_remove_watchpoint)
8749 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8750 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8751 (s390_auxv_parse, s390_read_description): Refactor as methods of
8752 s390_linux_nat_target.
8753 (_initialize_s390_nat): Adjust to C++ification.
8754
8755 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8756 (the_sparc_linux_nat_target): New.
8757 (_initialize_sparc_linux_nat): Adjust to C++ification.
8758 * sparc-nat.c (sparc_fetch_inferior_registers)
8759 (sparc_store_inferior_registers): Remove target_ops parameter.
8760 * sparc-nat.h (sparc_fetch_inferior_registers)
8761 (sparc_store_inferior_registers): Remove target_ops parameter.
8762 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8763 (the_sparc64_linux_nat_target): New.
8764 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8765
8766 * spu-linux-nat.c (spu_linux_nat_target): New class.
8767 (the_spu_linux_nat_target): New.
8768 (spu_child_post_startup_inferior, spu_child_post_attach)
8769 (spu_child_wait, spu_fetch_inferior_registers)
8770 (spu_store_inferior_registers, spu_xfer_partial)
8771 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8772 methods.
8773 (_initialize_spu_nat): Adjust to C++ification.
8774
8775 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8776 (the_tilegx_linux_nat_target): New.
8777 (fetch_inferior_registers, store_inferior_registers):
8778 Refactor as methods.
8779 (_initialize_tile_linux_nat): Adjust to C++ification.
8780
8781 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8782 (the_xtensa_linux_nat_target): New.
8783 (xtensa_linux_fetch_inferior_registers)
8784 (xtensa_linux_store_inferior_registers): Refactor as
8785 xtensa_linux_nat_target methods.
8786 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8787
8788 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8789 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8790 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8791 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8792 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8793 (fbsd_stopped_by_sw_breakpoint)
8794 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8795 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8796 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8797 (fbsd_post_startup_inferior, fbsd_post_attach)
8798 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8799 (fbsd_set_syscall_catchpoint)
8800 (super_xfer_partial, super_resume, super_wait)
8801 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8802 (fbsd_handle_debug_trap): Remove target_ops parameter.
8803 (fbsd_nat_add_target): Delete.
8804 * fbsd-nat.h: Include "inf-ptrace.h".
8805 (fbsd_nat_add_target): Delete.
8806 (USE_SIGTRAP_SIGINFO): Define.
8807 (fbsd_nat_target): New class.
8808
8809 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8810 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8811 (amd64bsd_target): Delete.
8812 * amd64-bsd-nat.h: New file.
8813 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8814 "x86-bsd-nat.h".
8815 (amd64_fbsd_nat_target): New class.
8816 (the_amd64_fbsd_nat_target): New.
8817 (amd64fbsd_read_description): Refactor as method of
8818 amd64_fbsd_nat_target.
8819 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8820 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8821 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8822 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8823 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8824 (i386bsd_target): Delete.
8825 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8826 (i386bsd_fetch_inferior_registers)
8827 (i386bsd_store_inferior_registers): Declare.
8828 (i386_bsd_nat_target): New class.
8829 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8830 (the_i386_fbsd_nat_target): New.
8831 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8832 i386_fbsd_nat_target methods.
8833 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8834 (_initialize_i386fbsd_nat): Adjust to C++ification.
8835 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8836 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8837 (_initialize_x86_bsd_nat): Adjust to C++ification.
8838 * x86-bsd-nat.h: Include "x86-nat.h".
8839 (x86bsd_target): Delete declaration.
8840 (x86bsd_nat_target): New class.
8841
8842 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8843 (the_aarch64_fbsd_nat_target): New.
8844 (aarch64_fbsd_fetch_inferior_registers)
8845 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8846 aarch64_fbsd_nat_target.
8847 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8848 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8849 (the_alpha_bsd_nat_target): New.
8850 (alphabsd_fetch_inferior_registers)
8851 (alphabsd_store_inferior_registers): Refactor as
8852 alpha_bsd_nat_target methods.
8853 (_initialize_alphabsd_nat): Refactor as methods of
8854 alpha_bsd_nat_target.
8855 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8856 (the_amd64_nbsd_nat_target): New.
8857 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8858 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8859 (the_amd64_obsd_nat_target): New.
8860 (_initialize_amd64obsd_nat): Adjust to C++ification.
8861 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8862 (the_arm_fbsd_nat_target): New.
8863 (arm_fbsd_fetch_inferior_registers)
8864 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8865 (_initialize_arm_fbsd_nat): Refactor as methods of
8866 arm_fbsd_nat_target.
8867 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8868 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8869 (the_arm_netbsd_nat_target): New.
8870 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8871 arm_netbsd_nat_target.
8872 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8873 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8874 (the_hppa_nbsd_nat_target): New.
8875 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8876 hppa_nbsd_nat_target methods.
8877 (_initialize_hppanbsd_nat): Adjust to C++ification.
8878 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8879 (the_hppa_obsd_nat_target): New.
8880 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8881 methods of hppa_obsd_nat_target.
8882 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8883 add_target.
8884 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8885 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8886 add_target.
8887 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8888 (_initialize_i386obsd_nat): Use add_target.
8889 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8890 (the_m68k_bsd_nat_target): New.
8891 (m68kbsd_fetch_inferior_registers)
8892 (m68kbsd_store_inferior_registers): Refactor as methods of
8893 m68k_bsd_nat_target.
8894 (_initialize_m68kbsd_nat): Adjust to C++ification.
8895 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8896 (the_mips_fbsd_nat_target): New.
8897 (mips_fbsd_fetch_inferior_registers)
8898 (mips_fbsd_store_inferior_registers): Refactor as methods of
8899 mips_fbsd_nat_target.
8900 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8901 add_target.
8902 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8903 (the_mips_nbsd_nat_target): New.
8904 (mipsnbsd_fetch_inferior_registers)
8905 (mipsnbsd_store_inferior_registers): Refactor as methods of
8906 mips_nbsd_nat_target.
8907 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8908 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8909 (the_mips64_obsd_nat_target): New.
8910 (mips64obsd_fetch_inferior_registers)
8911 (mips64obsd_store_inferior_registers): Refactor as methods of
8912 mips64_obsd_nat_target.
8913 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8914 add_target.
8915 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8916 nbsd_nat_target.
8917 * nbsd-nat.h: Include "inf-ptrace.h".
8918 (nbsd_nat_target): New class.
8919 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8920 (obsd_wait): Refactor as methods of obsd_nat_target.
8921 (obsd_add_target): Delete.
8922 * obsd-nat.h: Include "inf-ptrace.h".
8923 (obsd_nat_target): New class.
8924 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8925 (the_ppc_fbsd_nat_target): New.
8926 (ppcfbsd_fetch_inferior_registers)
8927 (ppcfbsd_store_inferior_registers): Refactor as methods of
8928 ppc_fbsd_nat_target.
8929 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8930 add_target.
8931 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8932 (the_ppc_nbsd_nat_target): New.
8933 (ppcnbsd_fetch_inferior_registers)
8934 (ppcnbsd_store_inferior_registers): Refactor as methods of
8935 ppc_nbsd_nat_target.
8936 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8937 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8938 (the_ppc_obsd_nat_target): New.
8939 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8940 methods of ppc_obsd_nat_target.
8941 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8942 add_target.
8943 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8944 (the_sh_nbsd_nat_target): New.
8945 (shnbsd_fetch_inferior_registers)
8946 (shnbsd_store_inferior_registers): Refactor as methods of
8947 sh_nbsd_nat_target.
8948 (_initialize_shnbsd_nat): Adjust to C++ification.
8949 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8950 (inf_ptrace_xfer_partial): Delete.
8951 (sparc_xfer_partial, sparc_target): Delete.
8952 * sparc-nat.h (sparc_fetch_inferior_registers)
8953 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8954 (sparc_target): Delete function declaration.
8955 (sparc_target): New template class.
8956 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8957 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8958 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8959 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8960 add_target.
8961 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8962 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8963 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8964 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8965 add_target.
8966 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8967 (the_vax_bsd_nat_target): New.
8968 (vaxbsd_fetch_inferior_registers)
8969 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8970 methods.
8971 (_initialize_vaxbsd_nat): Adjust to C++ification.
8972
8973 * bsd-kvm.c (bsd_kvm_target): New class.
8974 (bsd_kvm_ops): Now a bsd_kvm_target.
8975 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8976 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8977 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8978 bsd_kvm_target.
8979 (bsd_kvm_return_one): Delete.
8980 (bsd_kvm_add_target): Adjust to C++ification.
8981
8982 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8983 (nto_procfs_target_procfs): New classes.
8984 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8985 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8986 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8987 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8988 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8989 (procfs_remove_hw_breakpoint, procfs_resume)
8990 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8991 (procfs_kill_inferior, procfs_store_registers)
8992 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8993 as methods of nto_procfs_target.
8994 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8995 (nto_native_ops): Delete.
8996 (procfs_open, procfs_native_open): Delete.
8997 (nto_native_ops): Now an nto_procfs_target_native.
8998 (init_procfs_targets): Adjust to C++ification.
8999 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9000 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9001 Refactor as methods of nto_procfs_target.
9002
9003 * go32-nat.c (go32_nat_target): New class.
9004 (the_go32_nat_target): New.
9005 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9006 (go32_store_registers, go32_xfer_partial, go32_files_info)
9007 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9008 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9009 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9010 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9011 (go32_target): Delete.
9012 (_initialize_go32_nat): Adjust to C++ification.
9013
9014 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9015 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9016 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9017 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9018 gnu_nat_target.
9019 (gnu_target): Delete.
9020 * gnu-nat.h (gnu_target): Delete.
9021 (gnu_nat_target): New class.
9022 * i386-gnu-nat.c (gnu_base_target): New.
9023 (i386_gnu_nat_target): New class.
9024 (the_i386_gnu_nat_target): New.
9025 (_initialize_i386gnu_nat): Adjust to C++ification.
9026
9027 2018-05-02 Pedro Alves <palves@redhat.com>
9028
9029 * bfd-target.c (target_bfd_xclose): Rename to ...
9030 (target_bfd_close): ... this.
9031 (target_bfd_reopen): Adjust.
9032 * target.c (target_close): Remove references to to_xclose.
9033 * target.h (target_ops::to_xclose): Delete.
9034 (target_ops::to_close): Update comments.
9035
9036 2018-05-02 Pedro Alves <palves@redhat.com>
9037
9038 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9039 "linux-nat.h".
9040 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9041 * inf-ptrace.c (inf_ptrace_register_u_offset)
9042 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9043 (inf_ptrace_store_register, inf_ptrace_store_registers)
9044 (inf_ptrace_trad_target): Move to ...
9045 * linux-nat-trad.c: ... this new file.
9046 * linux-nat-trad.h: New file.
9047 * linux-nat.c (linux_target_install_ops): Make extern.
9048 (linux_trad_target): Delete.
9049 * linux-nat.h (linux_trad_target): Delete declaration.
9050 (linux_target_install_ops): Declare.
9051 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9052 "linux-nat.h".
9053
9054 2018-05-02 Pedro Alves <palves@redhat.com>
9055
9056 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9057 procfs_target/add_target here.
9058 * procfs.c (procfs_target): Make static.
9059 (_initialize_procfs): Call add_target here.
9060 * procfs.h (struct target_ops): Remove forward declaration.
9061 (procfs_target): Remove declaration.
9062 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9063
9064 2018-05-02 Pedro Alves <palves@redhat.com>
9065
9066 * procfs.c (procfs_stopped_by_watchpoint)
9067 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9068 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9069 Forward declare.
9070 (procfs_use_watchpoints): Delete, move contents...
9071 (procfs_target): ... here.
9072 * procfs.h (procfs_use_watchpoints): Delete declaration.
9073 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9074 procfs_use_watchpoints.
9075 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9076 procfs_use_watchpoints.
9077
9078 2018-05-02 Tom Tromey <tom@tromey.com>
9079
9080 PR python/20084:
9081 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9082 and var_zuinteger_unlimited.
9083 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9084 and PARAM_ZUINTEGER_UNLIMITED.
9085 (set_parameter_value): Handle var_zuinteger and
9086 var_zuinteger_unlimited.
9087 (add_setshow_generic): Likewise.
9088 (parmpy_init): Likewise.
9089
9090 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9091
9092 PR rust/23124
9093 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9094 pointer is not null before dereferencing it.
9095
9096 2018-04-30 Tom Tromey <tom@tromey.com>
9097
9098 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9099 is_mi_like_p.
9100
9101 2018-04-30 Tom Tromey <tom@tromey.com>
9102
9103 * breakpoint.c (mention): Remove use of is_mi_like_p.
9104 (print_mention_ranged_breakpoint): Likewise.
9105 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9106 of is_mi_like_p.
9107
9108 2018-04-30 Tom Tromey <tom@tromey.com>
9109
9110 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9111
9112 2018-04-30 Tom Tromey <tom@tromey.com>
9113
9114 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9115 (info_spu_event_command): Remove some uses of is_mi_like_p.
9116
9117 2018-04-30 Tom Tromey <tom@tromey.com>
9118
9119 * python/py-framefilter.c (py_print_single_arg)
9120 (enumerate_locals, py_print_args, py_print_frame): Remove some
9121 uses of is_mi_like_p.
9122
9123 2018-04-30 Tom Tromey <tom@tromey.com>
9124
9125 * ui-out.c: Update.
9126 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9127 * ui-out.h (ui_out::is_mi_like_p): Now const.
9128 (ui_out::do_is_mi_like_p): Now const.
9129 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9130
9131 2018-04-30 Tom Tromey <tom@tromey.com>
9132
9133 * varobj.c (varobj_set_visualizer): Use new_reference.
9134 * python/python.c (gdbpy_decode_line): Use new_reference.
9135 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9136 new_reference.
9137
9138 2018-04-30 Tom Tromey <tom@tromey.com>
9139
9140 * varobj.c (install_new_value): Use new_reference.
9141 * value.h (value_incref): Return void. Swap intro comment with
9142 value_decref.
9143 * value.c (set_value_parent): Use new_reference.
9144 (value_incref): Return void. Update intro comment.
9145 (release_value): Use new_reference.
9146 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9147
9148 2018-04-30 Tom Tromey <tom@tromey.com>
9149
9150 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9151 * gdb_bfd.h (new_bfd_ref): Remove.
9152 (gdb_bfd_open): Update comment.
9153 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9154 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9155 (gdb_bfd_fdopenr): Use new_reference.
9156 * exec.c (exec_file_attach): Use new_reference.
9157
9158 2018-04-30 Tom Tromey <tom@tromey.com>
9159
9160 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9161 method.
9162
9163 2018-04-30 Tom Tromey <tom@tromey.com>
9164
9165 * jit.c (jit_read_code_entry): Use type_align.
9166 * i386-tdep.c (i386_gdbarch_init): Don't call
9167 set_gdbarch_long_long_align_bit.
9168 * gdbarch.sh: Remove long_long_align_bit.
9169 * gdbarch.c, gdbarch.h: Rebuild.
9170 * arc-tdep.c (arc_type_align): New function.
9171 (arc_gdbarch_init): Use arc_type_align. Don't call
9172 set_gdbarch_long_long_align_bit.
9173
9174 2018-04-30 Tom Tromey <tom@tromey.com>
9175
9176 * rust-lang.c (rust_type_alignment): Remove.
9177 (rust_composite_type): Use type_align.
9178
9179 2018-04-30 Tom Tromey <tom@tromey.com>
9180
9181 * NEWS: Mention Type.align.
9182 * python/py-type.c (typy_get_alignof): New function.
9183 (type_object_getset): Add "alignof".
9184
9185 2018-04-30 Tom Tromey <tom@tromey.com>
9186
9187 PR exp/17095:
9188 * NEWS: Update.
9189 * std-operator.def (UNOP_ALIGNOF): New operator.
9190 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9191 New.
9192 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9193 * c-lang.c (c_op_print_tab): Add alignof.
9194 * c-exp.y (ALIGNOF): New token.
9195 (exp): Add "ALIGNOF" production.
9196 (ident_tokens): Add _Alignof and alignof.
9197
9198 2018-04-30 Tom Tromey <tom@tromey.com>
9199
9200 * i386-tdep.c (i386_type_align): New function.
9201 (i386_gdbarch_init): Update.
9202 * gdbarch.sh (type_align): New method.
9203 * gdbarch.c, gdbarch.h: Rebuild.
9204 * arch-utils.h (default_type_align): Declare.
9205 * arch-utils.c (default_type_align): New function.
9206 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9207 (struct type) <align_log2>: New field.
9208 <instance_flags>: Now a bitfield.
9209 (TYPE_RAW_ALIGN): New macro.
9210 (type_align, type_raw_align, set_type_align): Declare.
9211 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9212 functions.
9213 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9214 (get_alignment, maybe_set_alignment): New functions.
9215 (read_structure_type, read_enumeration_type, read_array_type)
9216 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9217 (read_subrange_type, read_base_type): Set type alignment.
9218
9219 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9220
9221 * dwarf2read.c (read_index_from_section): Use bool.
9222
9223 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9224
9225 PR gdb/22950
9226 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9227 with #ifdef.
9228
9229 2018-04-29 John Reiser <jreiser@BitWagon.com>
9230
9231 PR build/22873
9232 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9233 last step, and do it atomically.
9234
9235 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9236
9237 * compile/compile-c-types.c (convert_int, convert_float):
9238 Update for C FE v1.
9239
9240 2018-04-27 Tom Tromey <tom@tromey.com>
9241
9242 PR rust/22545:
9243 * rust-lang.c (rust_inclusive_range_type_p): New function.
9244 (rust_range): Handle inclusive ranges.
9245 (rust_compute_range): Likewise.
9246 * rust-exp.y (struct rust_op) <inclusive>: New field.
9247 (DOTDOTEQ): New constant.
9248 (range_expr): Add "..=" productions.
9249 (operator_tokens): Add "..=" token.
9250 (ast_range): Add "inclusive" parameter.
9251 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9252 ranges.
9253 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9254 bounds values.
9255 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9256 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9257 Update comments.
9258 * expprint.c (print_subexp_standard): Handle new bounds values.
9259 (dump_subexp_body_standard): Likewise.
9260
9261 2018-04-27 Tom Tromey <tom@tromey.com>
9262
9263 * configure: Rebuild.
9264 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9265 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9266 "OVERRIDE".
9267 (class symbol_needs_eval_context): Likewise.
9268 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9269 (mock_mapped_index::symbol_name_at): Use "override". Remove
9270 "virtual".
9271 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9272 "override".
9273 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9274 * aarch64-tdep.c (instruction_reader::read): Use "override".
9275 (instruction_reader_test::read): Likewise.
9276 * arm-tdep.c (instruction_reader::read): Use "override".
9277 (instruction_reader_thumb::read): Likewise.
9278
9279 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9280
9281 PR remote/9665
9282 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9283 instead of remote_send.
9284 (remote_send): Remove.
9285
9286 2018-04-26 Pedro Alves <palves@redhat.com>
9287
9288 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9289 find_function_start_sal instead of find_pc_line.
9290
9291 2018-04-26 Pedro Alves <palves@redhat.com>
9292
9293 * breakpoint.c (set_breakpoint_location_function): Handle
9294 mst_data_gnu_ifunc.
9295 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9296 * elfread.c (elf_symtab_read): Give data symbols with
9297 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9298 (elf_rel_plt_read): Update comment.
9299 * linespec.c (convert_linespec_to_sals): Handle
9300 mst_data_gnu_ifunc.
9301 (minsym_found): Handle mst_data_gnu_ifunc.
9302 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9303 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9304 * parse.c (find_minsym_type_and_address): Handle
9305 mst_data_gnu_ifunc.
9306 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9307 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9308 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9309 comment.
9310 <mst_data_gnu_ifunc>: New enumerator.
9311
9312 2018-04-26 Pedro Alves <palves@redhat.com>
9313
9314 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9315 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9316 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9317 Handle it.
9318 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9319 (lookup_minimal_symbol_by_pc): Adjust.
9320 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9321 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9322 * minsyms.h (lookup_msym_prefer): New enum.
9323 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9324 parameter by a lookup_msym_prefer parameter.
9325
9326 2018-04-26 Pedro Alves <palves@redhat.com>
9327
9328 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9329 ends in "@plt" instead of looking at the symbol's section.
9330
9331 2018-04-26 Pedro Alves <palves@redhat.com>
9332
9333 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9334 all references.
9335 (find_pc_partial_function_gnu_ifunc): Rename to ...
9336 (find_pc_partial_function): ... this, and remove references to
9337 'is_gnu_ifunc_p'.
9338 (find_pc_partial_function): Delete old implementation.
9339 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9340
9341 2018-04-26 Pedro Alves <palves@redhat.com>
9342
9343 * linespec.c (struct bound_minimal_symbol_search_key): New.
9344 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9345 skip first line if we found a GNU ifunc minimal symbol by name.
9346 (compare_msymbols): Change parameters to work with a destructured
9347 lhs minsym.
9348 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9349 functions.
9350
9351 2018-04-26 Pedro Alves <palves@redhat.com>
9352
9353 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9354 ifunc targets here. Instead, if we have an ifunc minsym, use its
9355 address/name.
9356 (add_location_to_breakpoint): Store the minsym and the objfile in
9357 the breakpoint location.
9358 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9359 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9360 Record the minsym in the sal.
9361 * symtab.h (symtab_and_line) <msymbol>: New field.
9362
9363 2018-04-26 Pedro Alves <palves@redhat.com>
9364
9365 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9366 unless we actually resolved the ifunc.
9367
9368 2018-04-26 Pedro Alves <palves@redhat.com>
9369
9370 * c-exp.y (variable production): Prefer ifunc minsyms over
9371 regular function symbols.
9372 * symtab.c (find_gnu_ifunc): New function.
9373 * minsyms.h (lookup_msym_prefer): New enum.
9374 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9375 parameter by a lookup_msym_prefer parameter.
9376 * symtab.h (find_gnu_ifunc): New declaration.
9377
9378 2018-04-26 Pedro Alves <palves@redhat.com>
9379
9380 * blockframe.c (find_gnu_ifunc_target_type): New function.
9381 (find_function_type): New.
9382 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9383 return a value with a memory address.
9384 (eval_call): For calls to GNU ifunc functions, try to find the
9385 type of the target function from the type that the resolver
9386 returns.
9387 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9388 symbols.
9389 * infcall.c (find_function_return_type): Delete.
9390 (find_function_addr): Add 'function_type' parameter. For calls to
9391 GNU ifunc functions, try to find the type of the target function
9392 from the type that the resolver returns, and return it via
9393 FUNCTION_TYPE.
9394 (call_function_by_hand_dummy): Adjust to use the function type
9395 returned by find_function_addr.
9396 (find_function_addr): Add 'function_type' parameter and move
9397 description here.
9398 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9399 declarations.
9400
9401 2018-04-26 Pedro Alves <palves@redhat.com>
9402
9403 * c-exp.y (variable production): Skip finding an alias for ifunc
9404 symbols.
9405
9406 2018-04-26 Pedro Alves <palves@redhat.com>
9407
9408 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9409
9410 2018-04-25 Pedro Alves <palves@redhat.com>
9411
9412 * infcmd.c (kill_command): Print the pid as string, not the whole
9413 thread's ptid. Add comment. s/has been killed/killed/ in output
9414 message.
9415 * remote.c (remote_detach_1): Print the pid as string, not the
9416 whole thread's ptid.
9417
9418 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9419 Sergio Durigan Junior <sergiodj@redhat.com>
9420 Pedro Alves <palves@redhat.com>
9421
9422 * infcmd.c (kill_command): Print message when inferior has
9423 been killed.
9424 * inferior.c (print_inferior_events): Remove 'static'. Set as
9425 '1'.
9426 (add_inferior): Improve message printed when
9427 'print_inferior_events' is on.
9428 (exit_inferior): Remove message printed when
9429 'print_inferior_events' is on.
9430 (detach_inferior): Improve message printed when
9431 'print_inferior_events' is on.
9432 (initialize_inferiors): Use 'add_inferior_silent' to set
9433 'current_inferior_'.
9434 * inferior.h (print_inferior_events): Declare here as
9435 'extern'.
9436 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9437 '[Detaching...]' messages when 'print_inferior_events' is on.
9438 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9439 as prefix/suffix for messages. Remove periods. Fix erroneous
9440 'Detaching after fork from child...', replace it by '... from
9441 parent...'.
9442 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9443 prefix/suffix when printing 'Detaching...' messages. Print
9444 them when 'print_inferior_events' is on.
9445 * remote.c (remote_detach_1): Print message when detaching
9446 from inferior and '!is_fork_parent'.
9447
9448 2018-04-24 Tom Tromey <tom@tromey.com>
9449
9450 * cli-out.h: Reindent.
9451
9452 2018-04-24 Tom Tromey <tom@tromey.com>
9453
9454 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9455 (cli_ui_out::do_field_string): Use fputs_filtered.
9456 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9457
9458 2018-04-23 Tom Tromey <tom@tromey.com>
9459
9460 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9461 gdb::unique_xmalloc_ptr.
9462
9463 2018-04-23 Tom Tromey <tom@tromey.com>
9464
9465 * configure: Rebuild.
9466
9467 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9468
9469 PR gdb/23095
9470 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9471 prepare_for_testing. Set normal_bp to r_debug_state if target
9472 is bsd.
9473
9474 2018-04-21 Pedro Alves <palves@redhat.com>
9475 Rajendra SY <rajendra.sy@gmail.com>
9476
9477 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9478 * remote.c (extended_remote_attach): In all-stop mode, mark the
9479 thread as executing.
9480
9481 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9482
9483 * thread.c (thread_apply_all_command): Fix comment.
9484 (thread_command): Fix comment.
9485
9486 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9487
9488 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9489 parameter.
9490 * features/aarch64-core.c (create_feature_aarch64_core):
9491 Regenerate.
9492 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9493 Likewise.
9494 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9495 Likewise.
9496 * features/i386/32bit-avx512.c
9497 (create_feature_i386_32bit_avx512): Likewise.
9498 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9499 Likewise.
9500 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9501 Likewise.
9502 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9503 Likewise.
9504 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9505 Likewise.
9506 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9507 Likewise.
9508 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9509 Likewise.
9510 * features/i386/64bit-avx512.c
9511 (create_feature_i386_64bit_avx512): Likewise.
9512 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9513 Likewise.
9514 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9515 Likewise.
9516 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9517 Likewise.
9518 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9519 Likewise.
9520 * features/i386/64bit-segments.c
9521 (create_feature_i386_64bit_segments): Likewise.
9522 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9523 Likewise.
9524 * features/i386/x32-core.c
9525 (create_feature_i386_x32_core): Likewise.
9526 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9527 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9528 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9529 * target-descriptions.c: In generated code, don't pass xml
9530 filename.
9531
9532 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9533
9534 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9535 (print_xml_feature::visit_post): Likewise.
9536 (print_xml_feature::visit): Likewise.
9537 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9538 (print_xml_feature): Add new class.
9539 * regformats/regdat.sh: Null xmltarget on feature targets.
9540 * target-descriptions.c (struct target_desc): Add xmltarget.
9541 (maintenance_check_tdesc_xml_convert): Add unittest function.
9542 (tdesc_get_features_xml): Add function to get xml.
9543 (maintenance_check_xml_descriptions): Test xml generation.
9544 * xml-tdesc.c (string_read_description_xml): Add function.
9545 * xml-tdesc.h (string_read_description_xml): Add declaration.
9546
9547 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9548
9549 * features/Makefile: Add feature marker to targets with new style
9550 target descriptions.
9551 * regformats/aarch64.dat: Regenerate.
9552 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9553 * regformats/i386/amd64-avx-linux.dat: Likewise.
9554 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9555 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9556 * regformats/i386/amd64-linux.dat: Likewise.
9557 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9558 * regformats/i386/amd64.dat: Likewise.
9559 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9560 * regformats/i386/i386-avx-linux.dat: Likewise.
9561 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9562 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9563 * regformats/i386/i386-linux.dat: Likewise.
9564 * regformats/i386/i386-mmx-linux.dat: Likewise.
9565 * regformats/i386/i386-mpx-linux.dat: Likewise.
9566 * regformats/i386/i386.dat: Likewise.
9567 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9568 * regformats/i386/x32-avx-linux.dat: Likewise.
9569 * regformats/i386/x32-linux.dat: Likewise.
9570 * regformats/tic6x-c62x-linux.dat: Likewise.
9571 * regformats/tic6x-c64x-linux.dat: Likewise.
9572 * regformats/tic6x-c64xp-linux.dat: Likewise.
9573 * regformats/regdat.sh: Parse feature marker.
9574
9575 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9576
9577 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9578 (tdesc_osabi_name): Likewise.
9579 * target-descriptions.c (tdesc_architecture_name): Add new
9580 function.
9581 (tdesc_osabi_name): Likewise.
9582
9583 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9584
9585 * common/tdesc.c (tdesc_predefined_type): Move to here.
9586 (tdesc_named_type): Likewise.
9587 (tdesc_create_vector): Likewise.
9588 (tdesc_create_struct): Likewise.
9589 (tdesc_set_struct_size): Likewise.
9590 (tdesc_create_union): Likewise.
9591 (tdesc_create_flags): Likewise.
9592 (tdesc_create_enum): Likewise.
9593 (tdesc_add_field): Likewise.
9594 (tdesc_add_typed_bitfield): Likewise.
9595 (tdesc_add_bitfield): Likewise.
9596 (tdesc_add_flag): Likewise.
9597 (tdesc_add_enum_value): Likewise.
9598 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9599 (struct tdesc_type_vector): Likewise.
9600 (struct tdesc_type_field): Likewise.
9601 (struct tdesc_type_with_fields): Likewise.
9602 (tdesc_create_enum): Add declaration.
9603 (tdesc_add_typed_bitfield): Likewise.
9604 (tdesc_add_enum_value): Likewise.
9605 * target-descriptions.c (tdesc_type_field): Move from here.
9606 (tdesc_type_builtin): Likewise.
9607 (tdesc_type_vector): Likewise.
9608 (tdesc_type_with_fields): Likewise.
9609 (tdesc_predefined_types): Likewise.
9610 (tdesc_named_type): Likewise.
9611 (tdesc_create_vector): Likewise.
9612 (tdesc_create_struct): Likewise.
9613 (tdesc_set_struct_size): Likewise.
9614 (tdesc_create_union): Likewise.
9615 (tdesc_create_flags): Likewise.
9616 (tdesc_create_enum): Likewise.
9617 (tdesc_add_field): Likewise.
9618 (tdesc_add_typed_bitfield): Likewise.
9619 (tdesc_add_bitfield): Likewise.
9620 (tdesc_add_flag): Likewise.
9621 (tdesc_add_enum_value): Likewise.
9622 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9623 (tdesc_add_typed_bitfield): Likewise.
9624 (tdesc_add_enum_value): Likewise.
9625
9626 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9627
9628 * common/tdesc.c (tdesc_feature::accept): Move to here.
9629 (tdesc_feature::operator==): Likewise.
9630 (tdesc_create_reg): Likewise.
9631 * common/tdesc.h (tdesc_type_kind): Likewise.
9632 (struct tdesc_type): Likewise.
9633 (struct tdesc_feature): Likewise.
9634 * regformats/regdat.sh: Create a feature.
9635 * target-descriptions.c (tdesc_type_kind): Move from here.
9636 (tdesc_type): Likewise.
9637 (tdesc_type_up): Likewise.
9638 (tdesc_feature): Likewise.
9639 (tdesc_create_reg): Likewise.
9640
9641 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9642
9643 * Makefile.in: Add arch/tdesc.c
9644 * common/tdesc.c: New file.
9645 * common/tdesc.h (tdesc_element_visitor): Move to here.
9646 (tdesc_element): Likewise.
9647 (tdesc_reg): Likewise.
9648 (tdesc_reg_up): Likewise.
9649 * regformats/regdef.h (reg): Add offset to constructors.
9650 * target-descriptions.c (tdesc_element_visitor): Move from here.
9651 (tdesc_element): Likewise.
9652 (tdesc_reg): Likewise.
9653 (tdesc_reg_up): Likewise.
9654
9655 2018-04-17 Tom Tromey <tom@tromey.com>
9656
9657 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9658 discriminant field.
9659
9660 2018-04-17 Tom Tromey <tom@tromey.com>
9661
9662 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9663
9664 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9665
9666 * symtab.c (print_symbol_info): Skip printing filename and line
9667 number when `last' is NULL.
9668 (symtab_symbol_info): Use empty string instead of NULL for first
9669 invocation of print_symbol_info.
9670 (rbreak_command): Pass NULL to `last' parameter of
9671 print_symbol_info.
9672
9673 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9674
9675 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9676 instead of nullptr.
9677
9678 2018-04-16 Pedro Alves <palves@redhat.com>
9679
9680 * MAINTAINERS (sh): Remove.
9681 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9682 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9683 (ALLDEPFILES): Remove sh64-tdep.c.
9684 * NEWS: Mentions that support for SH-5/SH64 is removed.
9685 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9686 (sh*-*-openbsd*): Ditto.
9687 (sh64-*-elf*): Remove.
9688 (sh*): Remove.
9689 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9690 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9691 * sh-tdep.c: No longer include "sh64-tdep.h".
9692 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9693 * sh64-tdep.c, sh64-tdep.h: Remove files.
9694
9695 2018-04-16 Pedro Alves <palves@redhat.com>
9696
9697 * MAINTAINERS: Remove m88k.
9698 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9699 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9700 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9701 * NEWS: Mention that support for m88k was removed.
9702 * configure.host (m88*-*-*): Remove support.
9703 * configure.nat (m88k-*-*): Remove support.
9704 * configure.tgt (m88*-*-openbsd*): Remove.
9705 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9706
9707 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9708
9709 * configure.tgt (x86_tobjs): New variable.
9710 (amd64_tobjs, i386_tobjs): Use it.
9711
9712 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9713
9714 * symtab.c (print_symbol_info): Precede the symbol definition by
9715 the line number when available.
9716 * NEWS: Advertise this enhancement.
9717
9718 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9719
9720 * NEWS (New options): announce set/show record btrace cpu.
9721 * btrace.c: Include record-btrace.h.
9722 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9723 the vendor is unknown.
9724 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9725 Maybe overwrite the btrace configuration's cpu.
9726 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9727 (btrace_fetch): Add cpu parameter. Update callers.
9728 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9729 Maybe overwrite the btrace configuration's cpu. Skip enabling
9730 errata workarounds if the vendor is unknown.
9731 * python/py-record-btrace.c: Include record-btrace.h.
9732 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9733 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9734 * record-btrace.c (record_btrace_cpu_state_kind): New.
9735 (record_btrace_cpu): New.
9736 (set_record_btrace_cpu_cmdlist): New.
9737 (record_btrace_get_cpu): New.
9738 (require_btrace_thread, record_btrace_info)
9739 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9740 (cmd_set_record_btrace_cpu_none): New.
9741 (cmd_set_record_btrace_cpu_auto): New.
9742 (cmd_set_record_btrace_cpu): New.
9743 (cmd_show_record_btrace_cpu): New.
9744 (_initialize_record_btrace): Initialize set/show record btrace cpu
9745 commands.
9746 * record-btrace.h (record_btrace_get_cpu): New.
9747
9748 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9749
9750 * record.c (set_record_command): Fix typo in message.
9751
9752 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9753
9754 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9755
9756 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9757
9758 * infrun.c (process_event_stop_test): Call
9759 gdbarch_in_indirect_branch_thunk.
9760 * gdbarch.sh (in_indirect_branch_thunk): New.
9761 * gdbarch.c: Regenerated.
9762 * gdbarch.h: Regenerated.
9763 * x86-tdep.h: New.
9764 * x86-tdep.c: New.
9765 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9766 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9767 (ALLDEPFILES): Add x86-tdep.c.
9768 * arch-utils.h (default_in_indirect_branch_thunk): New.
9769 * arch-utils.c (default_in_indirect_branch_thunk): New.
9770 * i386-tdep: Include x86-tdep.h.
9771 (i386_in_indirect_branch_thunk): New.
9772 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9773 function.
9774 * amd64-tdep: Include x86-tdep.h.
9775 (amd64_in_indirect_branch_thunk): New.
9776 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9777
9778 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9779
9780 PR gdb/23053
9781 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9782 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9783 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9784 regression.
9785
9786 2018-04-12 Tom Tromey <tom@tromey.com>
9787
9788 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9789 (rust_evaluate_subexp): Likewise.
9790
9791 2018-04-12 Pedro Alves <palves@redhat.com>
9792
9793 * procfs.c (procfs_detach): Make forward declaration's prototype
9794 match definition's protototype.
9795 (proc_get_LDT_entry): Remove stale do_cleanups call.
9796
9797 2018-04-12 Pedro Alves <palves@redhat.com>
9798
9799 * target.h (target_ops::to_has_exited): Delete.
9800 (target_has_exited): Delete.
9801 * target-delegates.c: Regenerate.
9802
9803 2018-04-11 Pedro Alves <palves@redhat.com>
9804
9805 * target.c (fileio_fh_t::t): Add comment.
9806 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9807 (target_fileio_close): Handle a NULL target.
9808 (invalidate_fileio_fh): New.
9809 (target_close): Call it.
9810 * remote.c (remote_hostio_send_command): No longer check whether
9811 remote_desc is open.
9812
9813 2018-04-11 Pedro Alves <palves@redhat.com>
9814
9815 * target.c (fileio_fh_t): Make it a named struct instead of a
9816 typedef.
9817 (fileio_fh_t::is_closed): New method.
9818 (DEF_VEC_O (fileio_fh_t)): Remove.
9819 (fileio_fhandles): Now a std::vector.
9820 (is_closed_fileio_fh): Delete.
9821 (acquire_fileio_fd): Adjust. Rename parameters.
9822 (release_fileio_fd): Adjust.
9823 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9824 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9825 (target_fileio_close): Adjust.
9826
9827 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9828
9829 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9830 index.
9831
9832 2018-04-10 Pedro Alves <palves@redhat.com>
9833
9834 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9835 (scoped_finish_thread_state): New class.
9836 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9837 cleanup.
9838 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9839 (fetch_inferior_event, normal_stop): Likewise.
9840 * thread.c (finish_thread_state_cleanup): Delete.
9841
9842 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9843 Pedro Alves <palves@redhat.com>
9844
9845 * value.c: Include "selftest.h" and "common/array-view.h".
9846 (struct range) <operator ==>: New.
9847 (test_ranges_contain): New.
9848 (check_ranges_vector): New.
9849 (test_insert_into_bit_range_vector): New.
9850 (_initialize_values): Register selftests.
9851 * common/array-view.h (operator==, operator!=): New.
9852
9853 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9854
9855 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9856 an iterator.
9857 * inline-frame.c: Include <algorithm>.
9858 (struct inline_state): Add constructor.
9859 (inline_state_s): Remove.
9860 (DEF_VEC_O(inline_state_s)): Remove.
9861 (inline_states): Change type to std::vector.
9862 (find_inline_frame_state): Adjust to std::vector.
9863 (allocate_inline_frame_state): Remove.
9864 (clear_inline_frame_state): Adjust to std::vector.
9865 (skip_inline_frames): Adjust to std::vector.
9866
9867 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9868
9869 * tracepoint.h (struct trace_state_variable): Add constructor.
9870 <name>: Change type to std::string.
9871 * tracepoint.c (tsv_s): Remove.
9872 (DEF_VEC_O(tsv_s)): Remove.
9873 (tvariables): Change to std::vector.
9874 (create_trace_state_variable): Adjust to std::vector.
9875 (find_trace_state_variable): Likewise.
9876 (find_trace_state_variable_by_number): Likewise.
9877 (delete_trace_state_variable): Likewise.
9878 (trace_variable_command): Adjust to std::string.
9879 (delete_trace_variable_command): Likewise.
9880 (tvariables_info_1): Adjust to std::vector.
9881 (save_trace_state_variables): Likewise.
9882 (start_tracing): Likewise.
9883 (merge_uploaded_trace_state_variables): Adjust to std::vector
9884 and std::string.
9885 * target.h (struct target_ops)
9886 <to_download_trace_state_variable>: Pass reference to
9887 trace_state_variable.
9888 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9889 * target-delegates.c: Re-generate.
9890 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9891 (mi_tsv_deleted): Likewise.
9892 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9893 * remote.c (remote_download_trace_state_variable): Change
9894 pointer to reference and adjust.
9895 * make-target-delegates (parse_argtypes): Handle references.
9896 (write_function_header): Likewise.
9897 (munge_type): Likewise.
9898
9899 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9900
9901 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9902 string_view-selftests.c.
9903 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9904 testsuite.
9905 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9906 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9907 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9908 * unittests/basic_string_view/element_access/char/1.cc:
9909 Likewise.
9910 * unittests/basic_string_view/element_access/char/empty.cc:
9911 Likewise.
9912 * unittests/basic_string_view/element_access/char/front_back.cc:
9913 Likewise.
9914 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9915 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9916 Likewise.
9917 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9918 Likewise.
9919 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9920 Likewise.
9921 * unittests/basic_string_view/operations/compare/char/1.cc:
9922 Likewise.
9923 * unittests/basic_string_view/operations/compare/char/13650.cc:
9924 Likewise.
9925 * unittests/basic_string_view/operations/copy/char/1.cc:
9926 Likewise.
9927 * unittests/basic_string_view/operations/data/char/1.cc:
9928 Likewise.
9929 * unittests/basic_string_view/operations/find/char/1.cc:
9930 Likewise.
9931 * unittests/basic_string_view/operations/find/char/2.cc:
9932 Likewise.
9933 * unittests/basic_string_view/operations/find/char/3.cc:
9934 Likewise.
9935 * unittests/basic_string_view/operations/find/char/4.cc:
9936 Likewise.
9937 * unittests/basic_string_view/operations/rfind/char/1.cc:
9938 Likewise.
9939 * unittests/basic_string_view/operations/rfind/char/2.cc:
9940 Likewise.
9941 * unittests/basic_string_view/operations/rfind/char/3.cc:
9942 Likewise.
9943 * unittests/basic_string_view/operations/substr/char/1.cc:
9944 Likewise.
9945 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9946 * unittests/string_view-selftests.c: New file.
9947
9948 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9949
9950 * unittests/basic_string_view/capacity/1.cc: New file.
9951 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9952 * unittests/basic_string_view/cons/char/1.cc: New file.
9953 * unittests/basic_string_view/cons/char/2.cc: New file.
9954 * unittests/basic_string_view/cons/char/3.cc: New file.
9955 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9956 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9957 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9958 * unittests/basic_string_view/element_access/char/1.cc: New file.
9959 * unittests/basic_string_view/element_access/char/2.cc: New file.
9960 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9961 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9962 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9963 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9964 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9965 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9966 * unittests/basic_string_view/include.cc: New file.
9967 * unittests/basic_string_view/inserters/char/1.cc: New file.
9968 * unittests/basic_string_view/inserters/char/2.cc: New file.
9969 * unittests/basic_string_view/inserters/char/3.cc: New file.
9970 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9971 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9972 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9973 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9974 * unittests/basic_string_view/literals/types.cc: New file.
9975 * unittests/basic_string_view/literals/values.cc: New file.
9976 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9977 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9978 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9979 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9980 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9981 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9982 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9983 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9984 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9985 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9986 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9987 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9988 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9989 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9990 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9991 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9992 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9993 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9994 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9995 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9996 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9997 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9998 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9999 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10000 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10001 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10002 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10003 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10004 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10005 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10006 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10007 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10008 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10009 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10010 * unittests/basic_string_view/operators/char/2.cc: New file.
10011 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10012 * unittests/basic_string_view/range_access/char/1.cc: New file.
10013 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10014 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10015 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10016 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10017 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10018 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10019 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10020 * unittests/basic_string_view/typedefs.cc: New file.
10021 * unittests/basic_string_view/types/1.cc: New file.
10022
10023 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10024
10025 * common/gdb_string_view.h: Remove libstdc++ implementation
10026 details, adjust to gdb reality.
10027 * common/gdb_string_view.tcc: Likewise.
10028 * cli/cli-script.c (struct string_view): Remove.
10029 (user_args) <m_args>: Change element type to gdb::string_view.
10030 (user_args::insert_args): Adjust.
10031
10032 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10033
10034 * common/gdb_string_view.h: New file.
10035 * common/gdb_string_view.tcc: New file.
10036
10037 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10038
10039 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10040 * configure: Re-generate.
10041
10042 2018-04-09 Pedro Alves <palves@redhat.com>
10043
10044 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10045 (set_target_gdbarch): Call
10046 gdb::observers::architecture_changed.notify instead of
10047 observer_notify_architecture_changed.
10048
10049 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10050
10051 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10052 (do_restore_current_traceframe_cleanup): Remove.
10053 (restore_current_traceframe_cleanup_dtor): Remove.
10054 (make_cleanup_restore_current_traceframe): Remove.
10055 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10056 New.
10057 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10058 * infrun.c (fetch_inferior_event): Use
10059 scoped_restore_current_traceframe.
10060
10061 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10062
10063 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10064 Remove.
10065 <n_allocated_type_units>: Remove.
10066 <all_type_units>: Change to std::vector.
10067 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10068 to std::vector change.
10069 (dwarf2_per_objfile::get_cutu): Likewise.
10070 (dwarf2_per_objfile::get_tu): Likewise.
10071 (create_signatured_type_table_from_index): Likewise.
10072 (create_signatured_type_table_from_debug_names): Likewise.
10073 (dw2_symtab_iter_next): Likewise.
10074 (dw2_print_stats): Likewise.
10075 (dw2_expand_all_symtabs): Likewise.
10076 (dw2_expand_marked_cus): Likewise.
10077 (dw2_debug_names_iterator::next): Likewise.
10078 (dwarf2_initialize_objfile): Likewise.
10079 (add_signatured_type_cu_to_table): Likewise.
10080 (create_all_type_units): Likewise.
10081 (add_type_unit): Likewise.
10082 (struct tu_abbrev_offset): Add constructor.
10083 (build_type_psymtabs_1): Adjust to std::vector change.
10084 (print_tu_stats): Likewise.
10085 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10086 (write_debug_names): Likewise.
10087
10088 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10089
10090 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10091 Make an std::vector.
10092 <n_comp_units>: Remove.
10093 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10094 to std::vector change.
10095 (dwarf2_per_objfile::get_cutu): Likewise.
10096 (dwarf2_per_objfile::get_cu): Likewise.
10097 (create_cus_from_index): Likewise.
10098 (create_addrmap_from_index): Likewise.
10099 (create_addrmap_from_aranges): Likewise.
10100 (dwarf2_read_index): Likewise.
10101 (dw2_find_last_source_symtab): Likewise.
10102 (dw2_map_symtabs_matching_filename): Likewise.
10103 (dw2_symtab_iter_next): Likewise.
10104 (dw2_print_stats): Likewise.
10105 (dw2_expand_all_symtabs): Likewise.
10106 (dw2_expand_symtabs_with_fullname): Likewise.
10107 (dw2_expand_marked_cus): Likewise.
10108 (dw2_map_symbol_filenames): Likewise.
10109 (create_cus_from_debug_names): Likewise.
10110 (dwarf2_read_debug_names): Likewise.
10111 (dw2_debug_names_iterator::next): Likewise.
10112 (dwarf2_initialize_objfile): Likewise.
10113 (set_partial_user): Likewise.
10114 (dwarf2_build_psymtabs_hard): Likewise.
10115 (read_comp_units_from_section): Remove arguments, adjust to
10116 std::vector change.
10117 (create_all_comp_units): Adjust to std::vector and
10118 read_comp_units_from_section changes.
10119 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10120 change.
10121 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10122 (psyms_seen_size): Likewise.
10123 (write_gdbindex): Likewise.
10124 (write_debug_names): Likewise.
10125
10126 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10127
10128 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10129 with dwarf2_per_objfile.
10130 (create_cus_from_index): Likewise.
10131 (create_signatured_type_table_from_index): Likewise.
10132 (dwarf2_read_index): Likewise.
10133 (dwarf2_initialize_objfile): Likewise.
10134 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10135 per_cu rather than get_dwarf2_per_objfile.
10136
10137 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10138
10139 * dwarf2read.h (struct signatured_type): Forward declare.
10140 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10141 New methods.
10142 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10143 (dw2_get_cutu): ...this.
10144 (dwarf2_per_objfile::get_cu): Rename from...
10145 (dw2_get_cu): ...this.
10146 (dwarf2_per_objfile::get_tu): New.
10147 (create_addrmap_from_index): Adjust.
10148 (create_addrmap_from_aranges): Adjust.
10149 (dw2_find_last_source_symtab): Adjust.
10150 (dw2_map_symtabs_matching_filename): Adjust.
10151 (dw2_symtab_iter_next): Adjust.
10152 (dw2_print_stats): Adjust.
10153 (dw2_expand_all_symtabs): Adjust.
10154 (dw2_expand_symtabs_with_fullname): Adjust.
10155 (dw2_expand_marked_cus): Adjust.
10156 (dw_expand_symtabs_matching_file_matcher): Adjust.
10157 (dw2_map_symbol_filenames): Adjust.
10158 (dw2_debug_names_iterator::next): Adjust.
10159 (dwarf2_initialize_objfile): Adjust.
10160 (set_partial_user): Adjust.
10161 (dwarf2_build_psymtabs_hard): Adjust.
10162
10163 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10164
10165 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10166 Remove unused variables.
10167 (dw2_map_symtabs_matching_filename): Likewise.
10168 (dwarf2_record_block_ranges): Likewise.
10169 (dwarf2_read_addr_index): Likewise.
10170 (follow_die_offset): Likewise.
10171
10172 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10173
10174 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10175 to symbol_file_add_main.
10176
10177 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10178
10179 PR mi/22299
10180 * mi/mi-console.c (do_fputc_async_safe): New.
10181 (mi_console_file::write_async_safe): New.
10182 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10183 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10184 New.
10185 * ui-file.c (ui_file::putstrn): Adjust call to
10186 fputstrn_unfiltered.
10187 * utils.c (printchar): Replace do_fputs and do_fprintf
10188 parameters by do_fputc.
10189 (fputstr_filtered): Adjust call to printchar.
10190 (fputstr_unfiltered): Likewise.
10191 (fputstrn_filtered): Likewise.
10192 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10193 printchar.
10194 * utils.h (do_fputc_ftype): New typedef.
10195 (fputstrn_unfiltered): Add do_fputc parameter.
10196
10197 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10198
10199 * regformats/i386/i386-avx.dat: Remove.
10200
10201 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10202
10203 PR gdb/22979
10204 * amd64-tdep.c (amd64_none_init_abi): New function.
10205 (amd64_x32_none_init_abi): New function.
10206 (_initialize_amd64_tdep): Register handlers for x86-64 and
10207 x64_32 with GDB_OSABI_NONE.
10208 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10209 GDB_OSABI_NONE osabi.
10210
10211 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10212
10213 PR gdb/22980
10214 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10215 GDB_OSABI_NONE.
10216 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10217 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10218
10219 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10220
10221 * common/byte-vector.h (char_vector): New type.
10222 * target.h (target_read_alloc): Return
10223 gdb::optional<byte_vector>.
10224 (target_read_stralloc): Return gdb::optional<char_vector>.
10225 (target_get_osdata): Return gdb::optional<char_vector>.
10226 * target.c (target_read_alloc_1): Templatize. Replacement
10227 manual memory management with vector.
10228 (target_read_alloc): Change return type, adjust.
10229 (target_read_stralloc): Change return type, adjust.
10230 (target_get_osdata): Change return type, adjust.
10231 * auxv.c (struct auxv_info) <length>: Remove.
10232 <data>: Change type to gdb::optional<byte_vector>.
10233 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10234 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10235 (target_auxv_search): Adjust.
10236 (fprint_target_auxv): Adjust.
10237 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10238 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10239 (linux_make_corefile_notes): Adjust.
10240 * osdata.c (get_osdata): Adjust.
10241 * remote.c (remote_get_threads_with_qxfer): Adjust.
10242 (remote_memory_map): Adjust.
10243 (remote_traceframe_info): Adjust.
10244 (btrace_read_config): Adjust.
10245 (remote_read_btrace): Adjust.
10246 (remote_pid_to_exec_file): Adjust.
10247 * solib-aix.c (solib_aix_get_library_list): Adjust.
10248 * solib-dsbt.c (decode_loadmap): Don't free buf.
10249 (dsbt_get_initial_loadmaps): Adjust.
10250 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10251 * solib-target.c (solib_target_current_sos): Adjust.
10252 * tracepoint.c (sdata_make_value): Adjust.
10253 * xml-support.c (xinclude_start_include): Adjust.
10254 (xml_fetch_content_from_file): Adjust.
10255 * xml-support.h (xml_fetch_another): Change return type.
10256 (xml_fetch_content_from_file): Change return type.
10257 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10258 * xml-tdesc.c (file_read_description_xml): Adjust.
10259 (fetch_available_features_from_target): Change return type.
10260 (target_fetch_description_xml): Adjust.
10261 (target_read_description_xml): Adjust.
10262
10263 2018-04-06 Tom Tromey <tom@tromey.com>
10264
10265 * value.c (~value): Update.
10266 (struct value) <contents>: Now unique_xmalloc_ptr.
10267 (value_contents_bits_eq, allocate_value_contents)
10268 (value_contents_raw, value_contents_all_raw)
10269 (value_contents_for_printing, value_contents_for_printing_const)
10270 (set_value_enclosing_type): Update.
10271
10272 2018-04-06 Tom Tromey <tom@tromey.com>
10273
10274 * value.c (range_s): Remove typedef, VEC.
10275 (struct range): Add operator<.
10276 (range_lessthan): Remove.
10277 (ranges_contain): Change type.
10278 (~value): Update.
10279 (struct value) <unavailable, optimized_out>: Now std::vector.
10280 (value_entirely_available)
10281 (value_entirely_covered_by_range_vector)
10282 (value_entirely_unavailable, value_entirely_optimized_out):
10283 Update.
10284 (insert_into_bit_range_vector): Change argument type.
10285 (find_first_range_overlap): Likewise.
10286 (struct ranges_and_idx, value_contents_bits_eq)
10287 (require_not_optimized_out, require_available): Update.
10288 (ranges_copy_adjusted): Change argument types.
10289 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10290
10291 2018-04-06 Tom Tromey <tom@tromey.com>
10292
10293 * value.c (~value): Update.
10294 (struct value) <parent>: Now a value_ref_ptr.
10295 (value_parent, set_value_parent, value_address, value_copy):
10296 Update.
10297
10298 2018-04-06 Tom Tromey <tom@tromey.com>
10299
10300 * value.c (struct value): Add constructor, destructor, and member
10301 initializers.
10302 (allocate_value_lazy, value_decref): Update.
10303
10304 2018-04-06 Tom Tromey <tom@tromey.com>
10305
10306 * value.c (struct value) <released, next>: Remove.
10307 (all_values): Now a std::vector.
10308 (allocate_value_lazy): Update.
10309 (value_next): Remove.
10310 (value_mark, value_free_to_mark, release_value)
10311 (value_release_to_mark): Update.
10312
10313 2018-04-06 Tom Tromey <tom@tromey.com>
10314
10315 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10316 (free_value_chain): Remove.
10317 * value.c (free_value_chain): Remove.
10318 (value_release_to_mark): Return a std::vector.
10319 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10320 std::vector.
10321 (check_condition): Update.
10322 * eval.c (fetch_subexp_value): Change "val_chain" to a
10323 std::vector.
10324 * breakpoint.c (update_watchpoint): Update.
10325 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10326
10327 2018-04-06 Tom Tromey <tom@tromey.com>
10328
10329 * value.h (free_all_values): Remove.
10330 * value.c (free_all_values): Remove.
10331
10332 2018-04-06 Tom Tromey <tom@tromey.com>
10333
10334 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10335 (value_history_chain, value_history_count): Remove.
10336 (value_history): New global.
10337 (record_latest_value, access_value_history, show_values)
10338 (preserve_values): Update.
10339
10340 2018-04-06 Tom Tromey <tom@tromey.com>
10341
10342 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10343 * varobj.c (varobj_set_display_format, varobj_set_value)
10344 (install_default_visualizer, construct_visualizer)
10345 (install_new_value, ~varobj, varobj_get_value_type)
10346 (my_value_of_variable, varobj_editable_p): Update.
10347 * c-varobj.c (c_describe_child, c_value_of_variable)
10348 (cplus_number_of_children, cplus_describe_child): Update.
10349 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10350 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10351 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10352
10353 2018-04-06 Tom Tromey <tom@tromey.com>
10354
10355 * printcmd.c (last_examine_address): Change type to
10356 value_ref_ptr.
10357 (do_examine, x_command): Update.
10358
10359 2018-04-06 Tom Tromey <tom@tromey.com>
10360
10361 * value.c (release_value): Update.
10362 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10363 (struct bpstats) <val>: Now a value_ref_ptr.
10364 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10365 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10366 (~watchpoint, print_it_watchpoint, watch_command_1)
10367 (invalidate_bp_value_on_memory_change): Update.
10368
10369 2018-04-06 Tom Tromey <tom@tromey.com>
10370
10371 * varobj.c (varobj_clear_saved_item)
10372 (update_dynamic_varobj_children, install_new_value, ~varobj):
10373 Update.
10374 * value.h (value_incref): Move declaration earlier.
10375 (value_decref): Rename from value_free.
10376 (struct value_ref_policy): New.
10377 (value_ref_ptr): New typedef.
10378 (struct value_deleter): Remove.
10379 (gdb_value_up): Remove typedef.
10380 (release_value): Change return type.
10381 (release_value_or_incref): Remove.
10382 * value.c (set_value_parent): Update.
10383 (value_incref): Change return type.
10384 (value_decref): Rename from value_free.
10385 (value_free_to_mark, free_all_values, free_value_chain): Update.
10386 (release_value): Return value_ref_ptr.
10387 (release_value_or_incref): Remove.
10388 (record_latest_value, set_internalvar, clear_internalvar):
10389 Update.
10390 * stack.c (info_frame_command): Don't call value_free.
10391 * python/py-value.c (valpy_dealloc, valpy_new)
10392 (value_to_value_object): Update.
10393 * printcmd.c (do_examine): Update.
10394 * opencl-lang.c (lval_func_free_closure): Update.
10395 * mi/mi-main.c (register_changed_p): Don't call value_free.
10396 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10397 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10398 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10399 value_free.
10400 * guile/scm-value.c (vlscm_free_value_smob)
10401 (vlscm_scm_from_value): Update.
10402 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10403 (frame_unwind_register_unsigned, get_frame_register_bytes)
10404 (put_frame_register_bytes): Don't call value_free.
10405 * findvar.c (address_from_register): Don't call value_free.
10406 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10407 * dwarf2loc.c (entry_data_value_free_closure)
10408 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10409 (dwarf2_evaluate_loc_desc_full): Update.
10410 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10411 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10412 (~watchpoint, watch_command_1)
10413 (invalidate_bp_value_on_memory_change): Update.
10414 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10415
10416 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10417
10418 PR gdb/23022
10419 * warning.m4: Add -Wno-error=deprecated-register.
10420 * configure: Re-generate.
10421
10422 2018-04-05 Tom Tromey <tom@tromey.com>
10423
10424 * linespec.h: Remove include of "vec.h".
10425
10426 2018-04-05 Tom Tromey <tom@tromey.com>
10427
10428 * linespec.c (typep): Remove typedef.
10429 (find_methods, find_superclass_methods): Take a std::vector.
10430 (find_method): Use std::vector.
10431
10432 2018-04-05 Tom Tromey <tom@tromey.com>
10433
10434 * utils.c (compare_strings): Remove.
10435 * utils.h (compare_strings): Remove.
10436 * objc-lang.h (find_imps): Update.
10437 * objc-lang.c (find_methods): Take a std::vector.
10438 (uniquify_strings, find_imps): Likewise.
10439 * linespec.c (find_methods): Take a std::vector.
10440 (decode_objc): Use std::vector.
10441 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10442 a std::vector.
10443 (find_method, find_function_symbols): Use std::vector.
10444
10445 2018-04-05 Tom Tromey <tom@tromey.com>
10446
10447 * completer.c (completion_tracker::completion_tracker): Remove
10448 cast.
10449 (completion_tracker::discard_completions): Likewise.
10450 * breakpoint.c (ambiguous_names_p): Remove cast.
10451 * ada-lang.c (_initialize_ada_language): Remove cast.
10452 * utils.h (streq): Update.
10453 (streq_hash): Add new declaration.
10454 * utils.c (streq): Return bool.
10455 (streq_hash): New function.
10456
10457 2018-04-05 Tom Tromey <tom@tromey.com>
10458
10459 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10460 Remove a string copy.
10461
10462 2018-04-05 Tom Tromey <tom@tromey.com>
10463
10464 * linespec.c (filter_results): Use std::vector.
10465 (decode_line_2, decode_line_full): Update.
10466
10467 2018-04-05 Tom Tromey <tom@tromey.com>
10468
10469 * linespec.c (canonical_to_fullform): Return std::string.
10470 (filter_results): Update.
10471 (struct decode_line_2_item): Add constructor.
10472 <fullform, displayform>: Now std::string.
10473 (decode_line_2_compare_items): Now a std::sort comparator.
10474 (decode_line_2): Update.
10475
10476 2018-04-05 Tom Tromey <tom@tromey.com>
10477
10478 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10479 (unexpected_linespec_error): Update.
10480 (linespec_parse_basic, parse_linespec): Update.
10481
10482 2018-04-05 Tom Tromey <tom@tromey.com>
10483
10484 * linespec.c (linespec_parse_basic): Reindent.
10485
10486 2018-04-05 Tom Tromey <tom@tromey.com>
10487
10488 * minsyms.h (iterate_over_minimal_symbols): Update.
10489 * minsyms.c (iterate_over_minimal_symbols): Take a
10490 gdb::function_view.
10491 * linespec.c (struct collect_minsyms): Remove.
10492 (compare_msyms): Now a std::sort comparator.
10493 (add_minsym): Add parameters.
10494 (search_minsyms_for_name): Update. Use std::vector.
10495
10496 2018-04-03 Tom Tromey <tom@tromey.com>
10497
10498 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10499 gdb::byte_vector.
10500
10501 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10502
10503 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10504
10505 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10506
10507 PR gdb/16959
10508 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10509 printing static type.
10510
10511 2018-04-01 Tom Tromey <tom@tromey.com>
10512
10513 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10514 (rs6000_xfer_shared_libraries): Update.
10515
10516 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10517
10518 * common/gdb_vecs.h (char_ptr): Remove.
10519 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10520
10521 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10522
10523 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10524 with std::vector.
10525 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10526
10527 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10528
10529 * tracepoint.h (struct uploaded_tp): Initialize fields.
10530 <actions, step_actions, cmd_strings>: Change type to
10531 std::vector<char *>.
10532 * tracepoint.c (get_uploaded_tp): Allocate with new.
10533 (free_uploaded_tps): Free with delete.
10534 (parse_tracepoint_definition): Adjust to std::vector change.
10535 * breakpoint.c (read_uploaded_action): Likewise.
10536 (create_tracepoint_from_upload): Likewise.
10537 * ctf.c (ctf_write_uploaded_tp): Likewise.
10538 (SET_ARRAY_FIELD): Likewise.
10539 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10540
10541 2018-03-30 Tom Tromey <tom@tromey.com>
10542
10543 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10544 std::unique_ptr.
10545 (svr4_keep_data_in_core): Update.
10546 (svr4_read_so_list): Update.
10547
10548 2018-03-30 Tom Tromey <tom@tromey.com>
10549
10550 * windows-nat.c (handle_output_debug_string, handle_exception):
10551 Update.
10552 * target.h (target_read_string): Update.
10553 * target.c (target_read_string): Change "string" to
10554 unique_xmalloc_ptr.
10555 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10556 Update.
10557 * solib-frv.c (frv_current_sos): Update.
10558 * solib-dsbt.c (dsbt_current_sos): Update.
10559 * solib-darwin.c (darwin_current_sos): Update.
10560 * linux-thread-db.c (inferior_has_bug): Update.
10561 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10562 Update. Remove alloca.
10563 * ada-lang.c (ada_main_name): Update.
10564
10565 2018-03-30 Tom Tromey <tom@tromey.com>
10566
10567 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10568 (struct dwo_file_deleter): New.
10569 (dwo_file_up): New typedef.
10570 (open_and_init_dwo_file): Use dwo_file_up.
10571 (free_dwo_file_cleanup): Remove.
10572
10573 2018-03-30 Tom Tromey <tom@tromey.com>
10574
10575 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10576 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10577
10578 2018-03-30 Tom Tromey <tom@tromey.com>
10579
10580 * dwarf2read.c (class free_cached_comp_units): New class.
10581 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10582 (free_cached_comp_units): Remove function.
10583
10584 2018-03-30 Tom Tromey <tom@tromey.com>
10585
10586 * utils.h (make_cleanup_unpush_target): Remove.
10587 * inf-ptrace.c (struct target_unpusher): New.
10588 (target_unpush_up) New typedef.
10589 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10590 target_unpush_up.
10591 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10592
10593 2018-03-27 Tom Tromey <tom@tromey.com>
10594
10595 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10596
10597 2018-03-27 Pedro Alves <palves@redhat.com>
10598 Tom Tromey <tom@tromey.com>
10599
10600 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10601 destructor. Now a class.
10602 (gdb_readline_wrapper_cleanup): Remove function.
10603 (gdb_readline_wrapper): Remove cleanups.
10604
10605 2018-03-27 Tom Tromey <tom@tromey.com>
10606
10607 * typeprint.h (struct type_print_options) <local_typedefs,
10608 global_typedefs>: Remove "struct" keyword.
10609 (class typedef_hash_table): New class.
10610 (recursively_update_typedef_hash, add_template_parameters)
10611 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10612 (find_typedef_in_hash): Don't declare.
10613 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10614 (typedef_hash_table::recursively_update): Rename from
10615 recursively_update_typedef_hash. Now a member.
10616 (typedef_hash_table::add_template_parameters): Rename from
10617 add_template_parameters. Now a member.
10618 (typedef_hash_table::typedef_hash_table): Now a constructor;
10619 rename from create_typedef_hash.
10620 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10621 rename from free_typedef_hash.
10622 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10623 (do_free_global_table): Remove.
10624 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10625 from copy_type_recursive.
10626 (create_global_typedef_table): Remove.
10627 (typedef_hash_table::find_global_typedef): Now a member of
10628 typedef_hash_table.
10629 (typedef_hash_table::find_typedef): Rename from
10630 find_typedef_in_hash; now a member.
10631 (whatis_exp): Update.
10632 * extension.h (struct ext_lang_type_printers): Add constructor and
10633 destructor.
10634 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10635 declare.
10636 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10637 Now a constructor; rename from start_ext_lang_type_printers.
10638 (ext_lang_type_printers): Now a destructor; rename from
10639 free_ext_lang_type_printers.
10640 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10641 Update.
10642 (c_type_print_base_struct_union): Update. Remove cleanups.
10643
10644 2018-03-27 Tom Tromey <tom@tromey.com>
10645
10646 * dwarf-index-write.c: Include <cmath>.
10647
10648 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10649
10650 * NEWS: Add entry describing new "set|show varsize-limit" command.
10651 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10652 command.
10653 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10654 "set variable".
10655
10656 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10657
10658 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10659 dwarf-index-write.c
10660 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10661 * dwarf-index-common.c: New file.
10662 * dwarf-index-common.h: New file.
10663 * dwarf-index-write.c: New file.
10664 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10665 (struct dwarf2_section_info): Move from here.
10666 (dwarf2_section_info_def): Likewise.
10667 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10668 (offset_type): Likewise.
10669 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10670 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10671 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10672 (byte_swap): Likewise.
10673 (MAYBE_SWAP): Likewise.
10674 (dwarf2_per_cu_ptr): Likewise.
10675 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10676 (struct tu_stats): Likewise.
10677 (struct dwarf2_per_objfile): Likewise.
10678 (struct dwarf2_per_cu_data): Likewise.
10679 (struct signatured_type): Likewise.
10680 (sig_type_ptr): Likewise.
10681 (DEF_VEC_P (sig_type_ptr)): Likewise.
10682 (INDEX4_SUFFIX): Likewise.
10683 (INDEX5_SUFFIX): Likewise.
10684 (DEBUG_STR_SUFFIX): Likewise.
10685 (dwarf2_read_section): Make non-static.
10686 (mapped_index_string_hash): Move from here.
10687 (dwarf5_djb_hash): Likewise.
10688 (file_write): Likewise.
10689 (class data_buf): Likewise.
10690 (struct symtab_index_entry): Likewise.
10691 (struct mapped_symtab): Likewise.
10692 (find_slot): Likewise.
10693 (hash_expand): Likewise.
10694 (add_index_entry): Likewise.
10695 (uniquify_cu_indices): Likewise.
10696 (class c_str_view): Likewise.
10697 (class c_str_view_hasher): Likewise.
10698 (class vector_hasher): Likewise.
10699 (write_hash_table): Likewise.
10700 (psym_index_map): Likewise.
10701 (struct addrmap_index_data): Likewise.
10702 (add_address_entry): Likewise.
10703 (add_address_entry_worker): Likewise.
10704 (write_address_map): Likewise.
10705 (symbol_kind): Likewise.
10706 (write_psymbols): Likewise.
10707 (struct signatured_type_index_data): Likewise.
10708 (write_one_signatured_type): Likewise.
10709 (recursively_count_psymbols): Likewise.
10710 (recursively_write_psymbols): Likewise.
10711 (class debug_names): Likewise.
10712 (check_dwarf64_offsets): Likewise.
10713 (psyms_seen_size): Likewise.
10714 (write_gdbindex): Likewise.
10715 (write_debug_names): Likewise.
10716 (assert_file_size): Likewise.
10717 (write_psymtabs_to_index): Likewise.
10718 (save_gdb_index_command): Likewise.
10719 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10720 command.
10721 * dwarf2read.h: New file.
10722
10723 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10724
10725 PR gdb/22670
10726 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10727 symbol name if the CU's language stores symbol names in linkage
10728 format.
10729 * language.h (struct language_defn)
10730 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10731 all instances of this struct.
10732
10733 2018-03-26 Tom Tromey <tom@tromey.com>
10734
10735 * stack.c (backtrace_command_1): Remove verbose code.
10736
10737 2018-03-26 Tom Tromey <tom@tromey.com>
10738
10739 * python/py-framefilter.c (py_print_type): Don't catch
10740 exceptions. Return void.
10741 (py_print_value): Likewise.
10742 (py_print_single_arg): Likewise.
10743 (enumerate_args): Don't catch exceptions.
10744 (py_print_args): Likewise.
10745 (py_print_frame): Likewise.
10746 (gdbpy_apply_frame_filter): Catch exceptions here.
10747
10748 2018-03-26 Tom Tromey <tom@tromey.com>
10749
10750 * stack.c (_initialize_stack): Remove trailing newlines from help
10751 text. Add "Usage" line to "backtrace" help.
10752
10753 2018-03-26 Tom Tromey <tom@tromey.com>
10754
10755 PR python/16486:
10756 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10757
10758 2018-03-26 Tom Tromey <tom@tromey.com>
10759
10760 * python/py-framefilter.c (py_print_single_arg): Return
10761 EXT_LANG_BT_ERROR from catch.
10762
10763 2018-03-26 Tom Tromey <tom@tromey.com>
10764
10765 PR backtrace/15584:
10766 * stack.c (backtrace_command_1): Move some code into no-filters
10767 "if".
10768
10769 2018-03-26 Tom Tromey <tom@tromey.com>
10770
10771 * python/py-framefilter.c (throw_quit_or_print_exception): New
10772 function.
10773 (gdbpy_apply_frame_filter): Use it.
10774
10775 2018-03-26 Tom Tromey <tom@tromey.com>
10776
10777 PR cli/17716:
10778 * python/py-framefilter.c (py_print_type, py_print_value)
10779 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10780 RETURN_MASK_ERROR.
10781
10782 2018-03-26 Tom Tromey <tom@tromey.com>
10783
10784 * python/py-framefilter.c (enumerate_args): Use
10785 gdb::unique_xmalloc_ptr.
10786
10787 2018-03-26 Tom Tromey <tom@tromey.com>
10788
10789 * python/py-framefilter.c (py_print_frame): Return
10790 EXT_LANG_BT_OK.
10791 (gdbpy_apply_frame_filter): Update comment.
10792 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10793 Remove.
10794 <EXT_LANG_BT_NO_FILTERS>: Change value.
10795
10796 2018-03-26 Tom Tromey <tom@tromey.com>
10797
10798 PR backtrace/15582:
10799 * stack.c (backtrace_command): Parse "hide" argument.
10800 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10801 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10802 constant.
10803
10804 2018-03-26 Tom Tromey <tom@tromey.com>
10805
10806 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10807 add "flags".
10808 (backtrace_command): Remove "fulltrace", add "flags".
10809
10810 2018-03-26 Tom Tromey <tom@tromey.com>
10811
10812 * stack.c (backtrace_command): Rewrite command line parsing.
10813
10814 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10815
10816 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10817
10818 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10819
10820 * filename-seen-cache.h: Add include guard.
10821
10822 2018-03-26 Keith Seitz <keiths@redhat.com>
10823
10824 * symfile.c (place_section): Remove "struct" from section_addr_info
10825 in comment.
10826 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10827 "struct" keyword from section_addr_info.
10828
10829 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10830
10831 * regformats/regdef.h (reg): Add constructors.
10832
10833 2018-03-25 Pedro Alves <palves@redhat.com>
10834
10835 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10836 if then/else bodies in var_func_name extraction.
10837
10838 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10839
10840 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10841 lookup_minimal_symbol() to find symbol entry.
10842 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10843
10844 2018-03-23 Keith Seitz <keiths@redhat.com>
10845
10846 PR c++/22968
10847 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10848 nested type definitions for C++, too.
10849
10850 2018-03-23 Tom Tromey <tom@tromey.com>
10851
10852 * machoread.c (struct oso_el): Add a constructor. Don't define as
10853 a typedef.
10854 (macho_register_oso): Remove.
10855 (macho_symtab_read): Take a std::vector.
10856 (oso_el_compare_name): Now a std::sort comparator.
10857 (macho_symfile_read_all_oso): Take a std::vector.
10858 (macho_symfile_read): Use std::vector. Remove cleanups.
10859
10860 2018-03-22 Tom Tromey <tom@tromey.com>
10861
10862 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10863 (record_full_goto_bookmark): Use std::string.
10864
10865 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10866
10867 PR tdep/18295
10868 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10869 a single mask.
10870
10871 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10872
10873 * rs6000-tdep.c (store_insn_p): New function.
10874 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10875 and cr_reg to their unshifted values. Use store_insn_p to
10876 match LR saves using either R1 or fdata->alloca_reg. Use
10877 store_insn_p to match CR saves. Set alloca_reg_offset
10878 when alloca_reg and framep are set. Remove lr_reg shift
10879 when assigning to fdata->lr_register.
10880
10881 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10882
10883 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10884 command line args instead of emitting a warning.
10885
10886 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10887
10888 * tracepoint.h (struct static_tracepoint_marker): Initialize
10889 fields, define default constructor, move constructor and move
10890 assignment, disable the rest.
10891 <str_id, extra>: Make std::string.
10892 (release_static_tracepoint_marker): Remove.
10893 (free_current_marker): Remove.
10894 * tracepoint.c (free_current_marker): Remove.
10895 (parse_static_tracepoint_marker_definition): Adjust to
10896 std::string, use new hex2str overload.
10897 (release_static_tracepoint_marker): Remove.
10898 (print_one_static_tracepoint_marker): Get marker by reference
10899 and adjust to std::string.
10900 (info_static_tracepoint_markers_command): Adjust to std::vector
10901 changes
10902 * target.h (static_tracepoint_marker_p): Remove typedef.
10903 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10904 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10905 bool.
10906 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10907 * target-debug.h
10908 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10909 (target_debug_print_std_vector_static_tracepoint_marker): New.
10910 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10911 to...
10912 (target_debug_print_static_tracepoint_marker_p): ... this.
10913 * target-delegates.c: Re-generate.
10914 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10915 Make std::string.
10916 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10917 (decode_static_tracepoint_spec): Adjust to std::vector.
10918 (tracepoint_print_one_detail): Adjust to std::string.
10919 (strace_marker_decode_location): Adjust to std::string.
10920 (update_static_tracepoint): Adjust to std::string, remove call
10921 to release_static_tracepoint_marker.
10922 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10923 Adjust to std::vector.
10924 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10925 (remote_static_tracepoint_markers_by_strid): Adjust to
10926 std::vector.
10927 * common/rsp-low.h (hex2str): New overload with explicit count
10928 of bytes.
10929 * common/rsp-low.c (hex2str): New overload with explicit count
10930 of bytes.
10931 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10932 (_initialize_rsp_low_selftests): Add test_hex2str test.
10933 * unittests/tracepoint-selftests.c
10934 (test_parse_static_tracepoint_marker_definition): Adjust to
10935 std::string.
10936
10937 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10938
10939 * tracepoint.c (parse_static_tracepoint_marker_definition):
10940 Consider case where the definition is followed by more
10941 definitions.
10942 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10943 tracepoint-selftests.c.
10944 * unittests/tracepoint-selftests.c: New.
10945
10946 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10947
10948 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10949 Carvalho.
10950
10951 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10952
10953 * symtab.c (find_pc_sect_line): fixed indentation.
10954
10955 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10956
10957 * symtab.c (find_pc_sect_line): now uses binary search.
10958
10959 2018-03-19 Tom Tromey <tom@tromey.com>
10960
10961 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10962 "IDENT" production.
10963
10964 2018-03-19 Pedro Alves <palves@redhat.com>
10965 Tom Tromey <tom@tromey.com>
10966
10967 * unittests/observable-selftests.c: New file.
10968 * common/observable.h: New file.
10969 * observable.h: New file.
10970 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10971 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10972 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10973 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10974 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10975 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10976 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10977 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10978 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10979 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10980 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10981 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10982 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10983 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10984 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10985 tui/tui-interp.c, valops.c: Update all users.
10986 * tui/tui-hooks.c (tui_bp_created_observer)
10987 (tui_bp_deleted_observer, tui_bp_modified_observer)
10988 (tui_inferior_exit_observer, tui_before_prompt_observer)
10989 (tui_normal_stop_observer, tui_register_changed_observer):
10990 Remove.
10991 (tui_observers_token): New global.
10992 (attach_or_detach, tui_attach_detach_observers): New functions.
10993 (tui_install_hooks, tui_remove_hooks): Use
10994 tui_attach_detach_observers.
10995 * record-btrace.c (record_btrace_thread_observer): Remove.
10996 (record_btrace_thread_observer_token): New global.
10997 * observer.sh: Remove.
10998 * observer.c: Rename to observable.c.
10999 * observable.c (namespace gdb_observers): Define new objects.
11000 (observer_debug): Move into gdb_observers namespace.
11001 (struct observer, struct observer_list, xalloc_observer_list_node)
11002 (xfree_observer_list_node, generic_observer_attach)
11003 (generic_observer_detach, generic_observer_notify): Remove.
11004 (_initialize_observer): Update.
11005 Don't include observer.inc.
11006 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11007 (clean mostlyclean): Likewise.
11008 (observer.h, observer.inc): Remove targets.
11009 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11010 (COMMON_SFILES): Use observable.c, not observer.c.
11011 * .gitignore: Remove observer.h.
11012
11013 2018-03-18 Tom Tromey <tom@tromey.com>
11014
11015 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11016 gdb::def_vector.
11017 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11018
11019 2018-03-17 Tom Tromey <tom@tromey.com>
11020
11021 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11022
11023 2018-03-17 Tom Tromey <tom@tromey.com>
11024
11025 * target.c (class scoped_target_fd): New.
11026 (target_fileio_close_cleanup): Remove.
11027 (target_fileio_read_alloc_1): Use scoped_target_fd.
11028
11029 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11030
11031 * silent-rules.mk: New.
11032 * Makefile.in: Include silent-rules.mk
11033 (srcdir, VPATH, top_srcdir): Move up.
11034 (COMPILE): Add ECHO_CXX.
11035 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11036 (init.c): Add ECHO_INIT_C.
11037 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11038 (version.c): Add ECHO_GEN.
11039 (printcmd.o): Add ECHO_CXX.
11040 (target-float.o): Add ECHO_CXX.
11041 (ada-exp.o): Add ECHO_CXX.
11042 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11043 (insight$(EXEEXT)): Add ECHO_CXXLD.
11044 * gnulib/configure.ac: Add AM_SILENT_RULES.
11045 * gnulib/aclocal.m4: Re-generate.
11046 * gnulib/configure: Re-generate.
11047 * gnulib/import/Makefile.in: Re-generate.
11048
11049 2018-03-16 Tom Tromey <tom@tromey.com>
11050
11051 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11052 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11053 * utils.c (do_free_section_addr_info)
11054 (make_cleanup_free_section_addr_info): Remove.
11055 * symfile.h (struct other_sections): Add constructor.
11056 (struct section_addr_info): Remove.
11057 (section_addr_info): New typedef.
11058 (struct sym_fns) <sym_offsets>: Change type of parameter.
11059 (build_section_addr_info_from_objfile)
11060 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11061 (default_symfile_offsets, symbol_file_add)
11062 (symbol_file_add_from_bfd)
11063 (build_section_addr_info_from_section_table): Update.
11064 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11065 * symfile.c (alloc_section_addr_info): Remove.
11066 (build_section_addr_info_from_section_table): Change return type.
11067 Update.
11068 (build_section_addr_info_from_bfd)
11069 (build_section_addr_info_from_objfile): Likewise.
11070 (free_section_addr_info): Remove.
11071 (relative_addr_info_to_section_offsets): Change type of "addrs".
11072 (addrs_section_compar): Now a std::sort comparator.
11073 (addrs_section_sort): Change return type.
11074 (addr_info_make_relative): Change type of "addrs". Update.
11075 (default_symfile_offsets, syms_from_objfile_1)
11076 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11077 (symbol_file_add_separate): Update.
11078 (symbol_file_add): Change type of "addrs". Update.
11079 (add_symbol_file_command): Update. Remove cleanups.
11080 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11081 cleanups.
11082 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11083 * solib.c (solib_read_symbols): Update.
11084 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11085 * machoread.c (macho_symfile_offsets): Update.
11086 * jit.c (jit_bfd_try_read_symtab): Update.
11087
11088 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11089
11090 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11091 unittests/utils-selftests.c.
11092 * unittests/utils-selftests.c: New file.
11093
11094 2018-03-14 Tom Tromey <tom@tromey.com>
11095
11096 PR cli/14977:
11097 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11098 for NULL.
11099
11100 2018-03-14 Tom Tromey <tom@tromey.com>
11101
11102 PR cli/19918:
11103 * printcmd.c (printf_pointer): Allow "-" in format.
11104
11105 2018-03-14 Tom Tromey <tom@tromey.com>
11106
11107 * printcmd.c (_initialize_printcmd): Add usage to printf.
11108
11109 2018-03-14 Yao Qi <qiyao@sourceware.org>
11110
11111 * MAINTAINERS: Update my email address.
11112
11113 2018-03-13 Tom Tromey <tom@tromey.com>
11114
11115 * machoread.c (macho_check_dsym): Change filenamep to a
11116 std::string*.
11117 (macho_symfile_read): Update.
11118 * symfile.c (load_command): Use std::string.
11119
11120 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11121
11122 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11123 to error message string.
11124 (riscv_register_name): Use xsnprintf instead of sprintf.
11125 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11126 internal_error.
11127 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11128 error.
11129 (riscv_push_dummy_call): Likewise.
11130
11131 2018-03-12 Tom Tromey <tom@tromey.com>
11132
11133 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11134 Use gdb::byte_vector.
11135 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11136
11137 2018-03-12 Yao Qi <yao.qi@linaro.org>
11138
11139 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11140 parameter type to readable_regcache.
11141 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11142 the declaration.
11143
11144 2018-03-11 Tom Tromey <tom@tromey.com>
11145
11146 * dwarf2read.c (struct nextfield): Add initializers.
11147 (struct nextfnfield): Remove.
11148 (struct fnfieldlist): Add initializers. Remove "length" and
11149 "head", use std::vector.
11150 (struct decl_field_list): Remove.
11151 (struct field_info): Add initializers.
11152 <fields, baseclasses>: Now std::vector.
11153 <nbaseclasses, nfnfields, typedef_field_list_count,
11154 nested_types_list_count>: Remove.
11155 (dwarf2_add_field, dwarf2_add_type_defn)
11156 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11157 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11158 (process_structure_scope): Update.
11159
11160 2018-03-11 Tom Tromey <tom@tromey.com>
11161
11162 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11163 for use by std::sort.
11164 (build_type_psymtabs_1): Use std::vector.
11165
11166 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11167
11168 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11169 and LIBMPFR in the printed configuration.
11170
11171 2018-03-08 Tom Tromey <tom@tromey.com>
11172
11173 * source.c (get_filename_and_charpos): Use scoped_fd.
11174 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11175 (procfs_pidlist): Likewise.
11176 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11177 (iterate_over_mappings): Likewise.
11178
11179 2018-03-08 Tom Tromey <tom@tromey.com>
11180
11181 * infcall.c (struct call_return_meta_info)
11182 <stack_temporaries_enabled>: Remove.
11183 (get_call_return_value, call_function_by_hand_dummy): Update.
11184 * thread.c (disable_thread_stack_temporaries): Remove.
11185 (enable_thread_stack_temporaries): Remove.
11186 (thread_stack_temporaries_enabled_p): Return bool.
11187 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11188 (get_last_thread_stack_temporary): Update.
11189 * eval.c (evaluate_subexp): Update.
11190 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11191 class, not a function.
11192 (value_ptr, value_vec): Remove typedefs.
11193 (class thread_info) <stack_temporaries_enabled>: Now bool.
11194 <stack_temporaries>: Now a std::vector.
11195 (thread_stack_temporaries_enabled_p)
11196 (value_in_thread_stack_temporaries): Return bool.
11197
11198 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11199
11200 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11201 (getpkt_or_notif_sane_1): Likewise.
11202
11203 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11204
11205 * build-id.c (build_id_to_debug_bfd): Use std::string.
11206
11207 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11208
11209 * build-id.c (find_separate_debug_file_by_buildid): Return
11210 std::string.
11211 * build-id.h (find_separate_debug_file_by_buildid): Return
11212 std::string.
11213 * coffread.c (coff_symfile_read): Adjust to std::string.
11214 * elfread.c (elf_symfile_read): Adjust to std::string.
11215 * symfile.c (separate_debug_file_exists): Change parameter to
11216 std::string.
11217 (find_separate_debug_file): Return std::string.
11218 (find_separate_debug_file_by_debuglink): Return std::string.
11219 * symfile.h (find_separate_debug_file_by_debuglink): Return
11220 std::string.
11221
11222 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11223
11224 * common/xml-utils.c (xml_escape_text): Move code to...
11225 (xml_escape_text_append): ... this new function.
11226 * common/xml-utils.h (xml_escape_text_append): New declaration.
11227 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11228 New function.
11229 (_initialize_xml_utils): register test_xml_escape_text_append as
11230 a selftest.
11231
11232 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11233
11234 * defs.h: Remove MAX_REGISTER_SIZE.
11235 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11236 asserts.
11237 * python/py-unwind.c (pyuw_sniffer): Likewise.
11238
11239 2018-03-07 Tom Tromey <tom@tromey.com>
11240
11241 * linux-tdep.c (linux_info_proc): Update.
11242 * target.h (struct target_ops) <to_fileio_readlink>: Return
11243 optional<string>.
11244 (target_fileio_readlink): Return optional<string>.
11245 * remote.c (remote_hostio_readlink): Return optional<string>.
11246 * inf-child.c (inf_child_fileio_readlink): Return
11247 optional<string>.
11248 * target.c (target_fileio_readlink): Return optional<string>.
11249
11250 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11251
11252 * regcache.c (cooked_read_test): Add riscv to the list of
11253 architectures that have a save_reggroup.
11254
11255 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11256
11257 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11258 value is not a dynamic class object.
11259
11260 2018-03-06 Tom Tromey <tom@tromey.com>
11261
11262 * rust-exp.y: Formatting fixes.
11263
11264 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11265
11266 * riscv-tdep.c (riscv_register_name): Remove target description
11267 support.
11268 (riscv_gdbarch_init): Remove target description check.
11269
11270 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11271
11272 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11273 comment.
11274 * riscv-tdep.h: Likewise.
11275
11276 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11277
11278 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11279 (riscv_pseudo_register_write): Delete.
11280 (riscv_gdbarch_init): Remove all use of pseudo registers.
11281
11282 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11283
11284 * record-btrace.c (btrace_print_lines): Replace cleanup
11285 parameter with RAII equivalents.
11286 (btrace_insn_history): Replace cleanup with RAII equivalents.
11287 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11288 make_cleanup_ui_out_tuple_begin_end): Remove.
11289 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11290 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11291 make_cleanup_ui_out_list_begin_end): Remove.
11292
11293 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11294
11295 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11296 parameter types to std::vector. Use bool.
11297 (record_btrace_wait): Replace VEC(tp_t) with
11298 std::vector<thread_info *>.
11299 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11300
11301 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11302
11303 * record-btrace.c (record_btrace_disable_callback): Remove.
11304 (struct scoped_btrace_disable): New.
11305 (record_btrace_open): Use scoped_btrace_disable.
11306
11307 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11308
11309 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11310 reading values from registers.
11311
11312 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11313
11314 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11315 where appropriate.
11316
11317 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11318
11319 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11320 change parameter type. Use GDB's print functions, and use
11321 core_addr_to_string where appropriate.
11322 (riscv_push_dummy_call): Use core_addr_to_string where
11323 appropriate, update call to riscv_print_arg_location, and reindent
11324 a few lines.
11325 (riscv_return_value): Update call to riscv_print_arg_location.
11326
11327 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11328 Tim Newsome <tim@sifive.com>
11329 Albert Ou <a0u@eecs.berkeley.edu>
11330 Darius Rad <darius@bluespec.com>
11331
11332 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11333 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11334 (ALLDEPFILES): Add riscv-tdep.c
11335 * configure.tgt: Add riscv support.
11336 * riscv-tdep.c: New file.
11337 * riscv-tdep.h: New file.
11338 * NEWS: Mention new target.
11339 * MAINTAINERS: Add entry for riscv.
11340
11341 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11342
11343 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11344 fields within aggregates.
11345
11346 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11347
11348 * record-btrace.c (btrace_print_lines): Change type of flags to
11349 gdb_disassembly_flags.
11350
11351 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11352
11353 * fbsd-nat.c: Include "inf-ptrace.h".
11354 (USE_SIGTRAP_SIGINFO): Conditionally define.
11355 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11356 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11357 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11358 function.
11359 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11360 Likewise.
11361 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11362 Likewise.
11363 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11364 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11365 "supports_stopped_by_hw_breakpoint" target methods.
11366
11367 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11368
11369 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11370 * fbsd-nat.c (debug_fbsd_nat): New variable.
11371 (show_fbsd_nat_debug): New function.
11372 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11373 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11374
11375 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11376
11377 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11378 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11379 prototype.
11380 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11381 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11382 method.
11383
11384 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11385
11386 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11387 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11388
11389 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11390
11391 * charset.c (struct charset_vector): New.
11392 (charsets): Change type to charset_vector.
11393 (find_charset_names): Adjust.
11394 (add_one): Adjust.
11395 (_initialize_charset): Adjust.
11396
11397 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11398
11399 * progspace.h (struct program_space) <deleted_solibs>: Change
11400 type to std::vector<std::string>.
11401 * progspace.c (clear_program_space_solib_cache): Adjust.
11402 * breakpoint.c (print_solib_event): Adjust.
11403 (check_status_catch_solib): Adjust.
11404 * solib.c (update_solib_list): Adjust.
11405 * ui-out.h (class ui_out) <field_string>: New overload.
11406 * ui-out.c (ui_out::field_string): New overload.
11407
11408 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11409
11410 * progspace.h (struct program_space): Add constructor and
11411 destructor, initialize fields.
11412 (add_program_space): Remove.
11413 * progspace.c (add_program_space): Rename to...
11414 (program_space::program_space): ... this.
11415 (release_program_space): Rename to...
11416 (program_space::~program_space): ... this.
11417 (delete_program_space): Use delete to delete program_space.
11418 (initialize_progspace): Use new to allocate program_space.
11419 * inferior.c (add_inferior_with_spaces): Likewise.
11420 (clone_inferior_command): Likewise.
11421 * infrun.c (follow_fork_inferior): Likewise.
11422 (handle_vfork_child_exec_or_exit): Likewise.
11423
11424 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11425
11426 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11427 (delim_string_to_char_ptr_vec): Return std::vector of
11428 gdb::unique_xmalloc_ptr.
11429 (dirnames_to_char_ptr_vec_append): Take std::vector of
11430 gdb::unique_xmalloc_ptr.
11431 (dirnames_to_char_ptr_vec): Return std::vector of
11432 gdb::unique_xmalloc_ptr.
11433 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11434 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11435 (delim_string_to_char_ptr_vec): Return an std::vector of
11436 gdb::unique_xmalloc_ptr, adjust the code.
11437 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11438 gdb::unique_xmalloc_ptr, adjust the code.
11439 (dirnames_to_char_ptr_vec): Return an std::vector of
11440 gdb::unique_xmalloc_ptr, adjust the code.
11441 * auto-load.c (auto_load_safe_path_vec): Change type to
11442 std::vector of gdb::unique_xmalloc_ptr.
11443 (auto_load_expand_dir_vars): Return an std::vector of
11444 gdb::unique_xmalloc_ptr, adjust the code.
11445 (auto_load_safe_path_vec_update): Adjust.
11446 (filename_is_in_auto_load_safe_path_vec): Adjust.
11447 (auto_load_objfile_script_1): Adjust.
11448 * build-id.c (build_id_to_debug_bfd): Adjust.
11449 * linux-thread-db.c (thread_db_load_search): Adjust.
11450 * source.c (add_path): Adjust.
11451 (openp): Adjust.
11452 * symfile.c (find_separate_debug_file): Adjust.
11453 * utils.c (do_free_char_ptr_vec): Remove.
11454 (make_cleanup_free_char_ptr_vec): Remove.
11455
11456 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11457
11458 PR gdb/22907
11459 * common/pathstuff.c: Conditionally include "<windows.h>".
11460
11461 2018-03-01 Georg Sauthoff <mail@georg.so>
11462
11463 PR gdb/22888
11464 * gcore.in: Quote variables and switch interpreter to bash.
11465
11466 2018-03-01 Tom Tromey <tom@tromey.com>
11467
11468 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11469 assertion. Add assertion for discriminant_index.
11470 (quirk_rust_enum): Use correct base type name in univariant case.
11471
11472 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11473
11474 * record.c (get_call_history_modifiers): Return a
11475 record_print_flags.
11476 (cmd_record_call_history): Adjust.
11477 * record-btrace.c (record_btrace_call_history): Adjust.
11478 (record_btrace_call_history_range): Adjust.
11479 (record_btrace_call_history_from): Adjust.
11480 * target-debug.h (target_debug_print_record_print_flags): New.
11481 * target-delegates.c: Re-generate.
11482 * target.c (target_call_history): Change flags type.
11483 (target_call_history_from): Likewise.
11484 (target_call_history_range): Likewise.
11485 * target.h (struct target_ops) <target_call_history>: Likewise.
11486 (target_call_history_from): Likewise.
11487 (target_call_history_range): Likewise.
11488
11489 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11490 Simon Marchi <simon.marchi@polymtl.ca>
11491
11492 * common/common-utils.c: Include "sys/stat.h".
11493 (is_regular_file): Move here from "source.c"; change return
11494 type to "bool".
11495 * common/common-utils.h (is_regular_file): New prototype.
11496 * common/pathstuff.c (contains_dir_separator): New function.
11497 * common/pathstuff.h (contains_dir_separator): New prototype.
11498 * source.c: Don't include "sys/stat.h".
11499 (is_regular_file): Move to "common/common-utils.c".
11500
11501 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11502
11503 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11504 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11505 * auto-load.c: Include "common/pathstuff.h".
11506 * common/common-def.h (current_directory): Move here.
11507 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11508 function.
11509 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11510 prototype.
11511 * common/pathstuff.c: New file.
11512 * common/pathstuff.h: New file.
11513 * compile/compile.c: Include "common/pathstuff.h".
11514 * defs.h (current_directory): Move to "common/common-defs.h".
11515 * dwarf2read.c: Include "common/pathstuff.h".
11516 * exec.c: Likewise.
11517 * guile/scm-safe-call.c: Likewise.
11518 * linux-thread-db.c: Likewise.
11519 * main.c: Likewise.
11520 * nto-tdep.c: Likewise.
11521 * objfiles.c: Likewise.
11522 * source.c: Likewise.
11523 * symtab.c: Likewise.
11524 * utils.c: Include "common/pathstuff.h".
11525 (gdb_realpath): Move to "common/pathstuff.c".
11526 (gdb_realpath_keepfile): Likewise.
11527 (gdb_abspath): Likewise.
11528 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11529 (gdb_realpath_keepfile): Likewise.
11530 (gdb_abspath): Likewise.
11531
11532 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11533
11534 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11535 wildcard process pid for super_resume for kernels with a
11536 specific bug.
11537
11538 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11539
11540 * compile/compile.c (get_args): Add additional comments
11541 explaining function.
11542
11543 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11544 Tom Tromey <tom@tromey.com>
11545
11546 * target.h (memory_write_request_s): Remove typedef. Don't define
11547 VEC.
11548 (target_write_memory_blocks): Change argument to std::vector.
11549 (struct memory_write_request): Add constructor.
11550 * target-memory.c (compare_block_starting_address): Return bool.
11551 Change argument types.
11552 (claim_memory): Change arguments to use std::vector.
11553 (split_regular_and_flash_blocks, blocks_to_erase)
11554 (compute_garbled_blocks): Likewise.
11555 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11556 (target_write_memory_blocks): Change argument to std::vector.
11557 * symfile.c (struct load_section_data): Add constructor and
11558 destructor. Use std::vector for "requests".
11559 (struct load_progress_data): Add initializers.
11560 (load_section_callback): Update. Use "new".
11561 (clear_memory_write_data): Remove.
11562 (generic_load): Update.
11563
11564 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11565
11566 * arch/aarch64.h: Use common/tdesc.h.
11567
11568 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11569
11570 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11571 architecture with a 64-bit ABI.
11572
11573 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11574
11575 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11576 ahead of target description loading.
11577
11578 2018-02-26 Tom Tromey <tom@tromey.com>
11579
11580 * stack.c (backtrace_command_1): Update.
11581 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11582 of "flags".
11583 * python/py-framefilter.c (py_print_frame)
11584 (gdbpy_apply_frame_filter): Change type of "flags".
11585 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11586 of "flags".
11587 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11588 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11589 * extension.h (enum frame_filter_flag): Rename from
11590 frame_filter_flags.
11591 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11592 (apply_ext_lang_frame_filter): Change type of "flags".
11593 * extension.c (apply_ext_lang_frame_filter): Change type of
11594 "flags".
11595 * extension-priv.h (struct extension_language_ops)
11596 <apply_frame_filter>: Change type of "flags".
11597
11598 2018-02-26 Tom Tromey <tom@tromey.com>
11599
11600 PR python/16497:
11601 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11602 off-by-one in py_end computation.
11603 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11604 PRINT_MORE_FRAMES.
11605 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11606 constant.
11607
11608 2018-02-26 Tom Tromey <tom@tromey.com>
11609
11610 * dwarf2read.c (struct variant_field): New.
11611 (struct nextfield) <variant>: New field.
11612 (dwarf2_add_field): Handle DW_TAG_variant_part.
11613 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11614 discriminated union.
11615 (read_structure_type): Handle DW_TAG_variant_part.
11616 (handle_struct_member_die): New function, extracted from
11617 process_structure_scope. Handle DW_TAG_variant.
11618 (process_structure_scope): Handle discriminated unions. Call
11619 handle_struct_member_die.
11620
11621 2018-02-26 Tom Tromey <tom@tromey.com>
11622
11623 * rust-lang.h (rust_last_path_segment): Declare.
11624 * rust-lang.c (rust_last_path_segment): Now public. Change
11625 contract.
11626 (struct disr_info): Remove.
11627 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11628 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11629 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11630 (rust_enum_p, rust_enum_variant): New function.
11631 (rust_underscore_fields): Remove "offset" parameter.
11632 (rust_print_enum): New function.
11633 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11634 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11635 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11636 enums.
11637 (rust_internal_print_type): New function, from rust_print_type.
11638 Remove enum code.
11639 (rust_print_type): Call rust_internal_print_type.
11640 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11641 Update enum handling.
11642 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11643 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11644 (rust_union_quirks): New functions.
11645 (process_full_comp_unit, process_full_type_unit): Call
11646 rust_union_quirks.
11647 (process_structure_scope): Update rust_unions if necessary.
11648
11649 2018-02-26 Tom Tromey <tom@tromey.com>
11650
11651 * value.h (value_union_variant): Declare.
11652 * valops.c (value_union_variant): New function.
11653 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11654 (struct discriminant_info): New.
11655 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11656 enumerator.
11657 (struct main_type) <flag_discriminated_union>: New field.
11658
11659 2018-02-26 Tom Tromey <tom@tromey.com>
11660
11661 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11662 unittests/unpack-selftests.c.
11663 * unittests/unpack-selftests.c: New file.
11664 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11665
11666 2018-02-26 Yao Qi <yao.qi@linaro.org>
11667
11668 * dwarf2read.c (struct partial_die_info) <read>: New method.
11669 (read_partial_die): Remove the declaration.
11670 (load_partial_dies): Update.
11671 (partial_die_info::partial_die_info):
11672 (read_partial_die): Change it to partial_die_info::read.
11673
11674 2018-02-26 Yao Qi <yao.qi@linaro.org>
11675
11676 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11677 (fixup_partial_die): Remove declaration.
11678 (scan_partial_symbols): Update.
11679 (partial_die_parent_scope): Likewise.
11680 (partial_die_full_name): Likewise.
11681 (fixup_partial_die): Change it to partial_die_info::fixup.
11682
11683 2018-02-26 Yao Qi <yao.qi@linaro.org>
11684
11685 * dwarf2read.c (read_partial_die): Update the declaration.
11686 (load_partial_dies): Caller update.
11687 (read_partial_die): Remove one argument abbrev_len.
11688
11689 2018-02-26 Yao Qi <yao.qi@linaro.org>
11690
11691 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11692 assignment operator.
11693 (load_partial_dies): Use ctor and copy ctor.
11694 (read_partial_die): Update.
11695 (dwarf2_cu::find_partial_die): Use ctor.
11696
11697 2018-02-26 Yao Qi <yao.qi@linaro.org>
11698
11699 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11700 (find_partial_die_in_comp_unit): Change it to
11701 dwarf2_cu::find_partial_die.
11702 (find_partial_die): Update.
11703
11704 2018-02-26 Yao Qi <yao.qi@linaro.org>
11705
11706 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11707 is NULL.
11708
11709 2018-02-26 Yao Qi <yao.qi@linaro.org>
11710
11711 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11712
11713 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11714
11715 * arch/amd64.h: Use common/tdesc.h.
11716 * arch/i386.c: Likewise.
11717 * arch/i386.h: Likewise.
11718 * arch/tic6x.c: Likewise.
11719 * arch/tdesc.h: Move file from here...
11720 * common/tdesc.h: ...to here.
11721 * features/aarch64-core.c: Regenerate.
11722 * features/aarch64-fpu.c: Regenerate.
11723 * features/i386/32bit-avx.c: Regenerate.
11724 * features/i386/32bit-avx512.c: Regenerate.
11725 * features/i386/32bit-core.c: Regenerate.
11726 * features/i386/32bit-linux.c: Regenerate.
11727 * features/i386/32bit-mpx.c: Regenerate.
11728 * features/i386/32bit-pkeys.c: Regenerate.
11729 * features/i386/32bit-sse.c: Regenerate.
11730 * features/i386/64bit-avx.c: Regenerate.
11731 * features/i386/64bit-avx512.c: Regenerate.
11732 * features/i386/64bit-core.c: Regenerate.
11733 * features/i386/64bit-linux.c: Regenerate.
11734 * features/i386/64bit-mpx.c: Regenerate.
11735 * features/i386/64bit-pkeys.c: Regenerate.
11736 * features/i386/64bit-segments.c: Regenerate.
11737 * features/i386/64bit-sse.c: Regenerate.
11738 * features/i386/x32-core.c: Regenerate.
11739 * features/tic6x-c6xp.c: Regenerate.
11740 * features/tic6x-core.c: Regenerate.
11741 * features/tic6x-gp.c: Regenerate.
11742 * target-descriptions.c: Use common/tdesc.h.
11743 * target-descriptions.h: Likewise.
11744
11745 2018-02-24 Tom Tromey <tom@tromey.com>
11746
11747 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11748 (try_thread_db_load_from_dir, thread_db_load_search): Use
11749 std::string.
11750 (info_auto_load_libthread_db_compare): Return bool. Change
11751 argument types.
11752 (info_auto_load_libthread_db): Use std::vector, std::string.
11753 Remove cleanups.
11754
11755 2018-02-24 Tom Tromey <tom@tromey.com>
11756
11757 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11758 std::string.
11759 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11760 std::string*.
11761 * gdbarch.c: Rebuild.
11762 * gdbarch.h: Rebuild.
11763 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11764 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11765 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11766 std::string*.
11767
11768 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11769
11770 * gdbtypes.h (sect_offset): Change type to uint64_t.
11771 (sect_offset_str): New function.
11772 * dwarf2read.c (create_addrmap_from_aranges): Use
11773 sect_offset_str.
11774 (error_check_comp_unit_head): Likewise.
11775 (create_debug_type_hash_table): Likewise.
11776 (read_cutu_die_from_dwo): Likewise.
11777 (init_cutu_and_read_dies): Likewise.
11778 (init_cutu_and_read_dies_no_follow): Likewise.
11779 (process_psymtab_comp_unit_reader): Likewise.
11780 (partial_die_parent_scope): Likewise.
11781 (peek_die_abbrev): Likewise.
11782 (process_queue): Likewise.
11783 (dwarf2_physname): Likewise.
11784 (read_namespace_alias): Likewise.
11785 (read_import_statement): Likewise.
11786 (create_dwo_cu_reader): Likewise.
11787 (create_cus_hash_table): Likewise.
11788 (lookup_dwo_cutu): Likewise.
11789 (inherit_abstract_dies): Likewise.
11790 (read_func_scope): Likewise.
11791 (read_call_site_scope): Likewise.
11792 (dwarf2_add_member_fn): Likewise.
11793 (read_common_block): Likewise.
11794 (read_module_type): Likewise.
11795 (read_typedef): Likewise.
11796 (read_subrange_type): Likewise.
11797 (load_partial_dies): Likewise.
11798 (read_partial_die): Likewise.
11799 (find_partial_die): Likewise.
11800 (read_str_index): Likewise.
11801 (dwarf2_string_attr): Likewise.
11802 (build_error_marker_type): Likewise.
11803 (lookup_die_type): Likewise.
11804 (dump_die_shallow): Likewise.
11805 (follow_die_ref): Likewise.
11806 (dwarf2_fetch_die_loc_sect_off): Likewise.
11807 (dwarf2_fetch_constant_bytes): Likewise.
11808 (follow_die_sig): Likewise.
11809 (get_signatured_type): Likewise.
11810 (get_DW_AT_signature_type): Likewise.
11811 (dwarf2_find_containing_comp_unit): Likewise.
11812 (set_die_type): Likewise.
11813
11814 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11815
11816 * arch/aarch64.c: Include "common-defs.h".
11817 * arch/amd64.c: Likewise.
11818 * arch/i386.c: Likewise.
11819
11820 2018-02-21 Tom Tromey <tom@tromey.com>
11821
11822 * value.h: (extract_field_op): Update.
11823 * eval.c (extract_field_op): Return a const char *.
11824 * expression.h (parse_expression_for_completion): Update.
11825 * completer.c (complete_expression): Update.
11826 (add_struct_fields): Make fieldname const.
11827 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11828 (mark_completion_tag, parse_exp_in_context_1): Update.
11829 (parse_expression_for_completion): Change "name" to
11830 unique_xmalloc_ptr*.
11831
11832 2018-02-21 Tom Tromey <tom@tromey.com>
11833
11834 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11835
11836 2018-02-21 Yao Qi <yao.qi@linaro.org>
11837
11838 * avr-tdep.c (avr_read_pc): Change parameter type to
11839 readable_regcache.
11840 * gdbarch.sh (read_pc): Likewise.
11841 * gdbarch.c: Re-generated.
11842 * gdbarch.h: Re-generated.
11843 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11844 readable_regcache.
11845 * ia64-tdep.c (ia64_read_pc): Likewise.
11846 * mips-tdep.c (mips_read_pc): Likewise.
11847 * spu-tdep.c (spu_read_pc): Likewise.
11848
11849 2018-02-21 Yao Qi <yao.qi@linaro.org>
11850
11851 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11852 * regcache-dump.c: New file.
11853 * regcache.c: Move register_dump to regcache-dump.c.
11854 (maintenance_print_registers): Likewise.
11855 (maintenance_print_raw_registers): Likewise.
11856 (maintenance_print_cooked_registers): Likewise.
11857 (maintenance_print_register_groups): Likewise.
11858 (maintenance_print_remote_registers): Likewise.
11859 (_initialize_regcache): Likewise.
11860 * regcache.h (register_dump): Moved from regcache.c.
11861
11862 2018-02-21 Yao Qi <yao.qi@linaro.org>
11863
11864 * regcache.c (regcache::regcache): Update.
11865 (regcache::invalidate): Move it to detached_regcache::invalidate.
11866 (get_thread_arch_aspace_regcache): Update.
11867 (regcache::raw_update): Update.
11868 (regcache::cooked_read): Remove some code.
11869 (regcache::cooked_read_value): Likewise.
11870 (regcache::raw_write): Remove assert on m_readonly_p.
11871 (regcache::raw_supply_integer): Move it to
11872 detached_regcache::raw_supply_integer.
11873 (regcache::raw_supply_zeroed): Likewise.
11874 * regcache.h (detached_regcache) <raw_supply_integer>: New
11875 declaration.
11876 <raw_supply_zeroed, invalidate>: Likewise.
11877 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11878 <invalidate>: Likewise.
11879 <m_readonly_p>: Removed.
11880
11881 2018-02-21 Yao Qi <yao.qi@linaro.org>
11882
11883 * infcmd.c (get_return_value): Let stop_regs point to
11884 get_current_regcache.
11885 * regcache.c (regcache::regcache): Remove.
11886 (register_dump_reg_buffer): New class.
11887 (regcache_print): Adjust.
11888 * regcache.h (regcache): Remove constructors.
11889
11890 2018-02-21 Yao Qi <yao.qi@linaro.org>
11891
11892 * regcache.c (class register_dump): New class.
11893 (register_dump_regcache, register_dump_none): New class.
11894 (register_dump_remote, register_dump_groups): New class.
11895 (regcache_print): Update.
11896 * regcache.h (regcache_dump_what): Move it to regcache.c.
11897 (regcache) <dump>: Remove.
11898
11899 2018-02-21 Yao Qi <yao.qi@linaro.org>
11900
11901 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11902 reg_buffer_rw *.
11903 (jit_unwind_reg_set_impl): Call raw_supply.
11904 (jit_frame_sniffer): Use reg_buffer_rw.
11905 * record-full.c (record_full_core_regbuf): Change its type.
11906 (record_full_core_open_1): Use reg_buffer_rw.
11907 (record_full_close): Likewise.
11908 (record_full_core_fetch_registers): Use regcache->raw_supply.
11909 (record_full_core_store_registers): Likewise.
11910 * regcache.c (regcache::get_register_status): Move it to
11911 reg_buffer.
11912 (regcache_raw_set_cached_value): Remove.
11913 (regcache::raw_set_cached_value): Remove.
11914 (regcache::raw_write): Call raw_supply.
11915 (regcache::raw_supply): Move it to reg_buffer_rw.
11916 * regcache.h (regcache_raw_set_cached_value): Remove.
11917 (reg_buffer_rw): New class.
11918
11919 2018-02-21 Yao Qi <yao.qi@linaro.org>
11920
11921 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11922 readonly_detached_regcache.
11923 (dummy_frame_prev_register): Use regcache->cooked_read.
11924 * frame.c (frame_save_as_regcache): Change return type.
11925 (frame_pop): Update.
11926 * frame.h (frame_save_as_regcache): Update declaration.
11927 * inferior.h (get_infcall_suspend_state_regcache): Update
11928 declaration.
11929 * infrun.c (infcall_suspend_state) <registers>: use
11930 readonly_detached_regcache.
11931 (save_infcall_suspend_state): Don't use regcache_dup.
11932 (get_infcall_suspend_state_regcache): Change return type.
11933 * linux-fork.c (struct fork_info) <savedregs>: Change to
11934 readonly_detached_regcache.
11935 <pc>: New field.
11936 (fork_save_infrun_state): Don't use regcache_dup.
11937 (info_checkpoints_command): Adjust.
11938 * mi/mi-main.c (register_changed_p): Update declaration.
11939 (mi_cmd_data_list_changed_registers): Use
11940 readonly_detached_regcache.
11941 (register_changed_p): Change parameter type to
11942 readonly_detached_regcache.
11943 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11944 readonly_detached_regcache.
11945 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11946 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11947 New.
11948 (regcache::save): Move it to reg_buffer.
11949 (regcache::restore): Change parameter type.
11950 (regcache_dup): Remove.
11951 * regcache.h (reg_buffer) <save>: New method.
11952 (readonly_detached_regcache): New class.
11953 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11954 readonly_detached_regcache.
11955 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11956
11957 2018-02-21 Yao Qi <yao.qi@linaro.org>
11958
11959 * frame.c (frame_save_as_regcache): Use regcache method save.
11960 (frame_pop): Use regcache method restore.
11961 * infrun.c (restore_infcall_suspend_state): Likewise.
11962 * linux-fork.c (fork_load_infrun_state): Likewise.
11963 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11964 save.
11965 * regcache.c (regcache_save): Remove.
11966 (regcache::restore): More asserts.
11967 (regcache_cpy): Remove.
11968 * regcache.h (regcache_save): Remove the declaration.
11969 (regcache::restore): Move from private to public.
11970 Remove the friend declaration of regcache_cpy.
11971 (regcache_cpy): Remove declaration.
11972
11973 2018-02-21 Yao Qi <yao.qi@linaro.org>
11974
11975 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11976 parameter type to 'readable_regcache *'.
11977 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11978 * arm-tdep.c (arm_neon_quad_read): Likewise.
11979 (arm_pseudo_read): Likewise.
11980 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11981 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11982 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11983 * gdbarch.c: Re-generated.
11984 * gdbarch.h: Re-generated.
11985 * gdbarch.sh (pseudo_register_read): Change parameter type to
11986 'readable_regcache *'.
11987 (pseudo_register_read_value): Likewise.
11988 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11989 (h8300_pseudo_register_read): Likewise.
11990 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11991 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11992 (i386_pseudo_register_read_into_value): Likewise.
11993 (i386_pseudo_register_read_value): Likewise.
11994 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11995 declaration.
11996 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11997 * m32c-tdep.c (m32c_raw_read): Likewise.
11998 (m32c_read_flg): Likewise.
11999 (m32c_banked_register): Likewise.
12000 (m32c_banked_read): Likewise.
12001 (m32c_sb_read): Likewise.
12002 (m32c_part_read): Likewise.
12003 (m32c_cat_read): Likewise.
12004 (m32c_r3r2r1r0_read): Likewise.
12005 (m32c_pseudo_register_read): Likewise.
12006 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12007 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12008 (mep_pseudo_cr64_read): Likewise.
12009 (mep_pseudo_register_read): Likewise.
12010 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12011 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12012 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12013 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12014 (regcache::cooked_read): Likewise.
12015 (regcache::cooked_read_value): Likewise.
12016 (regcache_cooked_read_signed):
12017 (regcache::cooked_read): Likewise.
12018 * regcache.h (readable_regcache): New class.
12019 (regcache): Inherit readable_regcache. Move some methods to
12020 readable_regcache.
12021 * rl78-tdep.c (rl78_pseudo_register_read): Change
12022 parameter type to 'readable_regcache *'.
12023 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12024 (e500_pseudo_register_read): Change parameter type to
12025 'readable_regcache *'.
12026 (dfp_pseudo_register_read): Likewise.
12027 (vsx_pseudo_register_read): Likewise.
12028 (efpr_pseudo_register_read): Likewise.
12029 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12030 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12031 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12032 (sh64_pseudo_register_read): Likewise.
12033 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12034 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12035 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12036 (spu_pseudo_register_read): Likewise.
12037 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12038 (xtensa_pseudo_register_read): Likewise.
12039
12040 2018-02-21 Yao Qi <yao.qi@linaro.org>
12041
12042 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12043 (regcache::arch): Move it to reg_buffer::arch.
12044 (regcache::register_buffer): Likewise.
12045 (regcache::assert_regnum): Likewise.
12046 (regcache::num_raw_registers): Likewise.
12047 * regcache.h (reg_buffer): New class.
12048 (regcache): Inherit reg_buffer.
12049
12050 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12051
12052 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12053 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12054
12055 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12056
12057 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12058
12059 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12060
12061 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12062 (SFILES): Remove common/*.c files.
12063 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12064 * common/common.host: Add common reference.
12065 * configure.ac: Likewise.
12066 * configure: Regenerate.
12067
12068 2018-02-16 Yao Qi <yao.qi@linaro.org>
12069
12070 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12071 (block_initialize_namespace): Use new.
12072 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12073 (dwarf2_free_objfile): Use delete.
12074 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12075 (copy_type_recursive): Use new.
12076 * gdb_obstack.h (allocate_on_obstack): New.
12077
12078 2018-02-15 Yao Qi <yao.qi@linaro.org>
12079
12080 PR gdb/22849
12081 * inferior.c (exit_inferior_1): Reset inf->control.
12082
12083 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12084
12085 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12086 declaration.
12087
12088 2018-02-14 Pedro Alves <palves@redhat.com>
12089
12090 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12091 frame_cleanup_after_sniffer on exception.
12092
12093 2018-02-14 Tom Tromey <tom@tromey.com>
12094
12095 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12096 const.
12097 (solib_bfd_open): Make pathname const.
12098 * solib.c (solib_bfd_open): Make pathname const.
12099 * solib-spu.c (spu_bfd_fopen): Make name const.
12100 (spu_bfd_open): Make pathname const.
12101 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12102 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12103
12104 2018-02-14 Tom Tromey <tom@tromey.com>
12105
12106 * symfile.c (symfile_bfd_open): Update.
12107 * source.h (openp, source_full_path_of, find_and_open_source):
12108 Change argument type to unique_xmalloc_ptr.
12109 * source.c (openp): Take a unique_xmalloc_ptr.
12110 (source_full_path_of, find_and_open_source): Likewise.
12111 (open_source_file, symtab_to_fullname): Update.
12112 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12113 unique_xmalloc_ptr.
12114 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12115 (exec_file_find): Update.
12116 * psymtab.c (psymtab_to_fullname): Update.
12117 * nto-tdep.h (nto_find_and_open_solib): Update.
12118 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12119 unique_xmalloc_ptr.
12120 * exec.c (exec_file_attach): Update.
12121 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12122 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12123
12124 2018-02-14 Tom Tromey <tom@tromey.com>
12125
12126 * solib.c: Include source.h.
12127 * nto-tdep.c: Include source.h.
12128 * mi/mi-cmd-env.c: Include source.h.
12129 * infcmd.c: Include source.h.
12130 * exec.c: Include source.h.
12131 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12132 (add_path, directory_switch, source_path, init_source_path): Move
12133 declarations...
12134 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12135 (add_path, directory_switch, source_path, init_source_path):
12136 ...here.
12137
12138 2018-02-14 Tom Tromey <tom@tromey.com>
12139
12140 * solist.h (exec_file_find, solib_find): Return
12141 unique_xmalloc_ptr.
12142 (solib_bfd_fopen): Take a const char *.
12143 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12144 (exec_file_find, solib_find): Likewise.
12145 (solib_bfd_fopen): Do not take ownership of "pathname".
12146 (solib_bfd_open): Use unique_xmalloc_ptr.
12147 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12148 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12149 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12150 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12151
12152 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12153
12154 * ada-lang.c (name_match_type_from_name): Remove reference to
12155 ada_name_for_lookup in function's documentation.
12156 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12157
12158 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12159
12160 * defs.h (enum openp_flags): New enum.
12161 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12162 Move to enum openp_flags.
12163 (openp_flags): New enum flags.
12164 (openp): Change parameter type to openp_flags.
12165 * source.c (openp): Change parameter type to openp_flags.
12166 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12167 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12168
12169 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12170
12171 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12172 per-command.
12173
12174 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12175
12176 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12177 into...
12178 (class dwarf2_queue_guard): ...the destructor of this new class.
12179 (dw2_do_instantiate_symtab): Create instance of the new class
12180 dwarf2_queue_guard, remove cleanup.
12181
12182 2018-02-09 Tom Tromey <tom@tromey.com>
12183
12184 * source.c (find_source_lines): Don't reference past the end of
12185 the vector.
12186
12187 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12188
12189 * remote.c (remote_btrace_maybe_reopen): Change error message.
12190 * btrace.c (btrace_enable): Likewise.
12191 (parse_xml_btrace): Likewise.
12192 (parse_xml_btrace_conf): Likewise.
12193
12194 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12195
12196 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12197 (linux_enable_pt, linux_enable_bts): Call
12198 diagnose_perf_event_open_fail.
12199
12200 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12201
12202 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12203 Remove parameter and change return type. Update callers. Move it.
12204 (linux_enable_bts, linux_enable_pt): Improve error message.
12205 (linux_enable_pt): Remove zero buffer size check.
12206 (linux_enable_btrace): Improve error messages. Remove NULL return
12207 check.
12208
12209 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12210
12211 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12212 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12213 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12214 (linux_supports_pt, linux_supports_btrace): Remove.
12215 (linux_enable_bts): Call cpu_supports_bts.
12216 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12217 * remote.c (remote_supports_btrace): Remove.
12218 (init_remote_ops): Remove remote_supports_btrace.
12219 * target-delegates.c: Regenerated.
12220 * target.c (target_supports_btrace): Remove.
12221 * target.h (target_ops) <to_supports_btrace>: Remove
12222 (target_supports_btrace): Remove.
12223 * x86-linux-nat.c (x86_linux_create_target): Remove
12224 linux_supports_btrace.
12225
12226 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12227
12228 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12229 btrace failed.
12230 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12231 exception and use message in own exception.
12232
12233 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12234
12235 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12236 (perf_event_pt_event_type): Use gdb_file_up.
12237 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12238 scoped_fd, and scoped_mmap.
12239
12240 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12241
12242 * common/scoped_mmap.h: New.
12243 * unittests/scoped_mmap-selftest.c: New.
12244 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12245 unittests/scoped_mmap-selftest.c.
12246
12247 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12248
12249 * common/scoped_fd.h: New.
12250 * unittests/scoped_fd-selftest.c: New.
12251 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12252 unittests/scoped_fd-selftest.c.
12253
12254 2018-02-09 Tom Tromey <tom@tromey.com>
12255
12256 * auto-load.c (auto_load_section_scripts): Use
12257 gdb::unique_xmalloc_ptr.
12258
12259 2018-02-09 Tom Tromey <tom@tromey.com>
12260
12261 * auto-load.c (execute_script_contents): Use std::string.
12262
12263 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12264
12265 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12266 Python function, rather than a new command.
12267
12268 2018-02-08 Tom Tromey <tom@tromey.com>
12269
12270 * solib.c (solib_find_1): Use std::string.
12271 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12272
12273 2018-02-08 Tom Tromey <tom@tromey.com>
12274
12275 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12276
12277 2018-02-08 Tom Tromey <tom@tromey.com>
12278
12279 * source.c (find_source_lines): Use gdb::def_vector.
12280
12281 2018-02-08 Tom Tromey <tom@tromey.com>
12282
12283 * macrocmd.c (struct temporary_macro_definition): New.
12284 (macro_define_command): Use temporary_macro_definition. Remove
12285 cleanups.
12286 (free_macro_definition_ptr): Remove.
12287
12288 2018-02-08 Tom Tromey <tom@tromey.com>
12289
12290 * macroexp.c (maybe_expand): Use std::string.
12291
12292 2018-02-08 Tom Tromey <tom@tromey.com>
12293
12294 * macroexp.c (struct macro_buffer): Add initializers for some
12295 members.
12296 (init_buffer, init_shared_buffer, free_buffer)
12297 (free_buffer_return_text): Remove.
12298 (macro_buffer): New constructors.
12299 (~macro_buffer): New destructor.
12300 (macro_buffer::set_shared): New method.
12301 (macro_buffer::resize_buffer, macro_buffer::appendc)
12302 (macro_buffer::appendmem): Now methods, not free functions.
12303 (set_token, append_tokens_without_splicing, stringify)
12304 (macro_stringify): Update.
12305 (gather_arguments): Change return type. Remove argc_p argument,
12306 add args_ptr argument. Use std::vector.
12307 (substitute_args): Remove argc argument. Accept std::vector.
12308 (expand): Update. Use std::vector.
12309 (scan, macro_expand, macro_expand_next): Update.
12310
12311 2018-02-08 Tom Tromey <tom@tromey.com>
12312
12313 * symtab.c (default_collect_symbol_completion_matches_break_on):
12314 Use unique_xmalloc_ptr.
12315 * macroscope.h: (sal_macro_scope, user_macro_scope)
12316 (default_macro_scope): Return unique_xmalloc_ptr.
12317 * macroscope.c (sal_macro_scope, user_macro_scope)
12318 (default_macro_scope): Return unique_xmalloc_ptr.
12319 * macroexp.h (macro_expand, macro_expand_once): Return
12320 unique_xmalloc_ptr.
12321 * macroexp.c (macro_expand, macro_expand_once): Return
12322 unique_xmalloc_ptr.
12323 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12324 (info_macro_command, info_macros_command): Use
12325 unique_xmalloc_ptr.
12326 * compile/compile-c-support.c (write_macro_definitions): Use
12327 unique_xmalloc_ptr.
12328 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12329
12330 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12331
12332 * value.c (value_static_field): Assign field type instead of
12333 containing type when returning an optimized out value.
12334
12335 2018-02-06 Yao Qi <yao.qi@linaro.org>
12336
12337 * ft32-tdep.c (ft32_read_pc): Remove.
12338 (ft32_write_pc): Remove.
12339 (ft32_gdbarch_init): Update.
12340 * m32r-tdep.c (m32r_read_pc): Remove.
12341 (m32r_gdbarch_init): Update.
12342 * mep-tdep.c (mep_read_pc): Remove.
12343 (mep_gdbarch_init): Update.
12344 * microblaze-tdep.c (microblaze_write_pc): Remove.
12345 (microblaze_gdbarch_init): Update.
12346 * mn10300-tdep.c (mn10300_read_pc): Remove.
12347 (mn10300_write_pc): Remove.
12348 (mn10300_gdbarch_init): Update.
12349 * moxie-tdep.c (moxie_read_pc): Remove.
12350 (moxie_write_pc): Remove.
12351 (moxie_gdbarch_init): Update.
12352
12353 2018-02-06 Yao Qi <yao.qi@linaro.org>
12354
12355 * expprint.c (print_subexp_standard): Handle
12356 OP_F77_UNDETERMINED_ARGLIST.
12357 (dump_subexp_body_standard): Likewise.
12358
12359 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12360
12361 * target-descriptions.c (tdesc_element_visitor) Add empty
12362 implementations.
12363 (tdesc_type): Move make_gdb_type from here.
12364 (tdesc_type_builtin): Likewise.
12365 (tdesc_type_vector): Likewise.
12366 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12367 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12368 (make_gdb_type_union): Likewise.
12369 (make_gdb_type_flags): Likewise.
12370 (make_gdb_type_enum): Likewise.
12371 (make_gdb_type): New function.
12372 (tdesc_register_type): Use static make_gdb_type.
12373
12374 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12375
12376 * infcmd.c (default_print_one_register_info): Align natural-format
12377 column values consistently one under another.
12378 (pad_to_column): New function.
12379
12380 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12381
12382 * dwarf2read.c (dwarf2_physname): Move commment.
12383
12384 2018-02-01 Leszek Swirski <leszeks@google.com>
12385
12386 * varobj.c (varobj_formatted_print_options): Allow recursive
12387 pretty printing if pretty printing is enabled.
12388
12389 2018-02-01 Leszek Swirski <leszeks@google.com>
12390
12391 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12392 names after a structop as a filename.
12393
12394 2018-02-01 Yao Qi <yao.qi@linaro.org>
12395
12396 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12397 (arm_record_coproc_data_proc): Likewise.
12398
12399 2018-02-01 Yao Qi <yao.qi@linaro.org>
12400
12401 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12402
12403 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12404
12405 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12406 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12407
12408 2018-01-31 Pedro Alves <palves@redhat.com>
12409
12410 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12411 * inflow.c (child_terminal_save_inferior): Wrap reference to
12412 tcgetpgrp in HAVE_TERMIOS_H.
12413 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12414 _WIN32.
12415 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12416 always iterate over all inferiors.
12417 (gdbsim_cntrl_c): Adjust.
12418 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12419
12420 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12421
12422 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12423 index type is objfile-owned if the element type is as well.
12424
12425 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12426
12427 GDB 8.1 released.
12428
12429 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12430
12431 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12432 "features/s390x-linux64.c".
12433 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12434 s390_linux32 and s390x_linux64.
12435 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12436 default tdesc.
12437 * s390-tdep.c: Include "features/s390-linux32.c" and
12438 "features/s390x-linux64.c".
12439 (s390_tdesc_valid): Add check for tdesc_has_registers.
12440 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12441 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12442 tdesc_s390x_linux64.
12443 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12444 tdesc_s390x_linux64 to...
12445 * s390-tdep.h: ...here.
12446
12447 2018-01-30 Pedro Alves <palves@redhat.com>
12448
12449 PR gdb/13211
12450 * config.in, configure: Regenerate.
12451 * configure.ac: Check for getpgid.
12452 * go32-nat.c (go32_pass_ctrlc): New.
12453 (go32_target): Install it.
12454 * inf-child.c (inf_child_target): Install
12455 child_terminal_save_inferior, child_pass_ctrlc and
12456 child_interrupt.
12457 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12458 (inf_ptrace_target): No longer install it.
12459 * infcmd.c (interrupt_target_1): Adjust.
12460 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12461 (child_interrupt): Declare.
12462 (inferior::terminal_state): New.
12463 * inflow.c (struct terminal_info): Update comments.
12464 (inferior_process_group): Delete.
12465 (terminal_is_ours): Delete.
12466 (gdb_tty_state): New.
12467 (child_terminal_init): Adjust.
12468 (is_gdb_terminal, sharing_input_terminal_1)
12469 (sharing_input_terminal): New functions.
12470 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12471 Set the process's actual process group in the foreground if
12472 possible. Handle is_ours_for_output/is_ours distinction. Don't
12473 mark terminal as the inferior's if not sharing GDB's terminal.
12474 Don't check attach_flag.
12475 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12476 pass down a target_terminal_state.
12477 (child_terminal_save_inferior): New, factored out from ...
12478 (child_terminal_ours_1): ... this. Handle
12479 target_terminal_state::is_ours_for_output.
12480 (child_interrupt, child_pass_ctrlc): New.
12481 (inflow_inferior_exit): Clear the inferior's terminal_state.
12482 (copy_terminal_info): Copy the inferior's terminal state.
12483 (_initialize_inflow): Remove reference to terminal_is_ours.
12484 * inflow.h (inferior_process_group): Delete.
12485 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12486 * procfs.c (procfs_target): Don't install procfs_interrupt.
12487 (procfs_interrupt): Delete.
12488 * remote.c (remote_serial_quit_handler): Adjust.
12489 (remote_interrupt): Remove ptid parameter. Adjust.
12490 * target-delegates.c: Regenerate.
12491 * target.c: Include "terminal.h".
12492 (target_terminal::terminal_state): Rename to ...
12493 (target_terminal::m_terminal_state): ... this.
12494 (target_terminal::init): Adjust.
12495 (target_terminal::inferior): Adjust to per-inferior
12496 terminal_state.
12497 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12498 (target_terminal::ours, target_terminal::ours_for_output): Use
12499 target_terminal_is_ours_kind.
12500 (target_interrupt): Remove ptid parameter. Adjust.
12501 (default_target_pass_ctrlc): Adjust.
12502 * target.h (target_ops::to_terminal_save_inferior): New field.
12503 (target_ops::to_interrupt): Remove ptid_t parameter.
12504 (target_interrupt): Remove ptid_t parameter. Update comment.
12505 (target_pass_ctrlc): Update comment.
12506 * target/target.h (target_terminal_state): New scoped enum,
12507 factored out of ...
12508 (target_terminal::terminal_state): ... here.
12509 (target_terminal::inferior): Update comments.
12510 (target_terminal::restore_inferior): New.
12511 (target_terminal::is_inferior, target_terminal::is_ours)
12512 (target_terminal::is_ours_for_output): Adjust.
12513 (target_terminal::scoped_restore_terminal_state): Adjust to
12514 rename, and call restore_inferior() instead of inferior().
12515 (target_terminal::scoped_restore_terminal_state::m_state): Change
12516 type.
12517 (target_terminal::terminal_state): Rename to ...
12518 (target_terminal::m_terminal_state): ... this and change type.
12519
12520 2018-01-30 Pedro Alves <palves@redhat.com>
12521
12522 * linux-nat.c (wait_for_signal): New function.
12523 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12524 directly.
12525 (async_terminal_is_ours)
12526 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12527 (linux_nat_add_target): Don't override
12528 to_terminal_inferior/to_terminal_ours.
12529
12530 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12531
12532 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12533
12534 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12535
12536 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12537 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12538 dwarf2_per_objfile_free here.
12539 (dwarf2_per_objfile_free): Remove.
12540 (_initialize_dwarf2_read): Don't register
12541 dwarf2_per_objfile_free as a registry cleanup.
12542
12543 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12544
12545 Avoid compilation errors in MinGW native builds
12546
12547 The error is triggered by including python-internal.h, and the
12548 error message is:
12549
12550 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12551 from build-gnulib/import/math.h:27,
12552 from d:/usr/Python26/include/pyport.h:235,
12553 from d:/usr/Python26/include/Python.h:58,
12554 from python/python-internal.h:94,
12555 from python/py-arch.c:24:
12556 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12557 using ::hypot;
12558 ^~~~~
12559
12560 This happens because Python headers define 'hypot' to expand t
12561 '_hypot' in the Windows builds.
12562 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12563 'hypoth'. This avoids a compilation error.
12564
12565 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12566
12567 * MAINTAINERS (Write After Approval): Fix ordering.
12568
12569 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12570
12571 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12572
12573 2018-01-26 Alan Modra <amodra@gmail.com>
12574
12575 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12576 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12577 Remove nop. Make const. Comment.
12578 (powerpc32_plt_stub_so_2): New.
12579 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12580 Correct count. Update uses.
12581 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12582 Move common code reading PLT entry word. Correct
12583 powerpc32_plt_stub PLT address calculation.
12584 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12585 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12586 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12587 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12588 (ppc64_standard_linkage8): Likewise.
12589 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12590 Correct insns description.
12591 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12592
12593 2018-01-24 Pedro Alves <palves@redhat.com>
12594
12595 GCC PR libstdc++/83906
12596 * gdbtypes.c (operator==(const dynamic_prop &,
12597 const dynamic_prop &)): New.
12598 (operator==(const range_bounds &, const range_bounds &)): New.
12599 (check_types_equal): Use them instead of memcmp.
12600 * gdbtypes.h (operator==(const dynamic_prop &,
12601 const dynamic_prop &)): Declare.
12602 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12603 (operator==(const range_bounds &, const range_bounds &)): Declare.
12604 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12605
12606 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12607
12608 * s390-linux-tdep.c (s390_record_address_mask)
12609 (s390_record_calc_disp_common, s390_record_calc_disp)
12610 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12611 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12612 (s390_process_record): Move to s390-tdep.c.
12613 (s390_linux_init_abi_any): Adjust.
12614 * s390-tdep.c (s390_record_address_mask)
12615 (s390_record_calc_disp_common, s390_record_calc_disp)
12616 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12617 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12618 (s390_process_record): Moved from s390-linux-tdep.c
12619 (s390_gdbarch_init): Adjust.
12620
12621 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12622
12623 * s390-linux-nat.c (s390-tdep.h): New include.
12624 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12625 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12626 (ALLDEPFILES): Add s390-tdep.c.
12627 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12628 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12629 * s390-tdep.h: ...this. New file.
12630 * s390-linux-tdep.c (s390-tdep.h): New include.
12631 (_initialize_s390_tdep): Rename to...
12632 (_initialize_s390_linux_tdep): ...this and adjust.
12633 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12634 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12635 s390-tdep.h.
12636 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12637 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12638 (s390_is_partial_instruction, s390_software_single_step)
12639 (is_non_branch_ril, s390_displaced_step_copy_insn)
12640 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12641 (s390_prologue_data, s390_addr, s390_store, s390_load)
12642 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12643 (s390_register_call_saved, s390_guess_tracepoint_registers)
12644 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12645 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12646 (s390_pseudo_register_name, s390_pseudo_register_type)
12647 (s390_pseudo_register_read, s390_pseudo_register_write)
12648 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12649 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12650 (s390_addr_bits_remove, s390_address_class_type_flags)
12651 (s390_address_class_type_flags_to_name)
12652 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12653 (s390_function_arg_float, s390_function_arg_vector)
12654 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12655 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12656 (s390_frame_align, s390_register_return_value, s390_return_value)
12657 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12658 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12659 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12660 (s390_trad_frame_prev_register, s390_unwind_cache)
12661 (s390_prologue_frame_unwind_cache)
12662 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12663 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12664 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12665 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12666 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12667 (s390_frame_base_address, s390_local_base_address)
12668 (s390_frame_base, s390_gcc_target_options)
12669 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12670 (s390_validate_reg_range, s390_tdesc_valid)
12671 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12672 * s390-tdep.c: ...this. New file.
12673
12674 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12675
12676 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12677 (s390_process_record, s390_gdbarch_tdep_alloc)
12678 (s390_linux_init_abi_any): Use/set new hook.
12679
12680 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12681
12682 * s390-linux-tdep.c (osabi.h): New include.
12683 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12684 (s390_linux_init_abi_any): New functions.
12685 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12686
12687 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12688
12689 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12690 tdesc_has_registers check
12691
12692 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12693
12694 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12695 (s390_validate_reg_range): New macro.
12696 (s390_gdbarch_init): Adjust.
12697
12698 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12699
12700 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12701 (s390_gdbarch_tdep_alloc): Adjust.
12702 (s390_gdbarch_init): Adjust.
12703
12704 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12705
12706 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12707 <have_tdb>: Change type to bool.
12708 (s390_gdbarch_tdep_alloc): Adjust.
12709 (s390_gdbarch_init): Adjust.
12710
12711 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12712
12713 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12714 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12715 (s390_gdbarch_tdep_alloc): New function.
12716 (s390_gdbarch_init): Allocate tdep at start and use its fields
12717 instead of separate variables.
12718
12719 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12720
12721 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12722 when looking for cached gdbarch and add comment for remaining.
12723
12724 2018-01-22 Pedro Alves <palves@redhat.com>
12725 Sergio Durigan Junior <sergiodj@redhat.com>
12726
12727 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12728 case.
12729
12730 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12731
12732 * MAINTAINERS: Update my company e-mail address.
12733
12734 2018-01-22 Yao Qi <yao.qi@linaro.org>
12735
12736 * regcache.c (cooked_write_test): New function.
12737 (_initialize_regcache): Register the test.
12738
12739 2018-01-22 Yao Qi <yao.qi@linaro.org>
12740
12741 * ia64-tdep.c (ia64_pseudo_register_read): Call
12742 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12743 * m32c-tdep.c (m32c_cat_read): Likewise.
12744 (m32c_r3r2r1r0_read): Likewise.
12745 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12746 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12747
12748 2018-01-22 Yao Qi <yao.qi@linaro.org>
12749
12750 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12751 method raw_read instead of regcache_raw_read.
12752 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12753 * arm-tdep.c (arm_neon_quad_read): Likewise.
12754 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12755 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12756 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12757 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12758 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12759 (i386_pseudo_register_read_into_value): Likewise.
12760 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12761 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12762 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12763 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12764 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12765 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12766 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12767 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12768 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12769
12770 2018-01-22 Yao Qi <yao.qi@linaro.org>
12771
12772 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12773 * configure.tgt: Remove target mt.
12774 * mt-tdep.c: Remove.
12775 * regcache.c (cooked_read_test): Remove the check for mt.
12776
12777 2018-01-22 Yao Qi <yao.qi@linaro.org>
12778
12779 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12780 instead of gdbarch_pseudo_register_read_value.
12781
12782 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12783
12784 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12785 language is Ada.
12786
12787 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12788
12789 * linespec.c (create_sals_line_offset): Remove code that preserved
12790 the symtab_and_line's line number.
12791
12792 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12793
12794 * varobj.c (varobj_create): Don't set valid_block when creating a
12795 floating varobj.
12796
12797 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12798
12799 * varobj.c (varobj_create): Remove out of date comment.
12800
12801 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12802
12803 PR mi/20395
12804 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12805 updating innermost block.
12806 * parse.c (innermost_block_tracker::update): Take extra type
12807 parameter, and check types match before updating innermost block.
12808 (write_dollar_variable): Update innermost block for registers.
12809 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12810 (innermost_block_tracker::innermost_block_tracker): Initialise
12811 m_types member.
12812 (innermost_block_tracker::reset): Take type parameter.
12813 (innermost_block_tracker::update): Take type parameter, and pass
12814 type through as needed.
12815 (innermost_block_tracker::m_types): New member.
12816 * varobj.c (varobj_create): Pass type when reseting innermost
12817 block.
12818
12819 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12820
12821 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12822 * ada-lang.c (resolve_subexp): Likewise.
12823 * breakpoint.c (set_breakpoint_condition) Likewise.
12824 (watch_command_1) Likewise.
12825 * c-exp.y (variable): Likewise.
12826 * d-exp.y (PrimaryExpression): Likewise.
12827 * f-exp.y (variable): Likewise.
12828 * go-exp.y (variable): Likewise.
12829 * m2-exp.y (variable): Likewise.
12830 * objfiles.c (objfile::~objfile): Likewise.
12831 * p-exp.y (variable): Likewise.
12832 * parse.c (innermost_block): Change type.
12833 * parser-defs.h (class innermost_block_tracker): New.
12834 (innermost_block): Change to innermost_block_tracker.
12835 * printcmd.c (display_command): Switch to innermost_block API.
12836 (do_one_display): Likewise.
12837 * rust-exp.y (do_one_display): Likewise.
12838 * symfile.c (clear_symtab_users): Likewise.
12839 * varobj.c (varobj_create): Switch to innermost_block API, replace
12840 use of innermost_block with block stored on varobj object.
12841
12842 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12843
12844 * expression.h (innermost_block): Remove declaration.
12845 * varobj.c: Add 'parser-defs.h' include.
12846
12847 2018-01-19 Tom Tromey <tom@tromey.com>
12848
12849 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12850 symbols in the static and global blocks.
12851
12852 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12853
12854 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12855 gdb_ptrace.h, and move including gdb_wait.h ...
12856 * nat/linux-ptrace.h: ... to here.
12857
12858 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12859
12860 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12861 inf_ptrace_detach_success.
12862 (inf_ptrace_detach_success): Add inferior parameter, use it
12863 instead of inferior_ptid, pass it to detach_inferior.
12864 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12865 parameter.
12866 * inferior.c (detach_inferior): Add overload that takes an
12867 inferior object.
12868 * inferior.h (detach_inferior): Likewise.
12869 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12870 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12871 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12872
12873 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12874
12875 * target.h (struct target_ops) <to_detach>: Add inferior
12876 parameter.
12877 (target_detach): Likewise.
12878 * target.c (dispose_inferior): Pass inferior down.
12879 (target_detach): Pass inferior down. Assert that it is equal to
12880 the current inferior.
12881 * aix-thread.c (aix_thread_detach): Pass inferior down.
12882 * corefile.c (core_file_command): Pass current_inferior() down.
12883 * corelow.c (core_detach): Add inferior parameter.
12884 * darwin-nat.c (darwin_detach): Likewise.
12885 * gnu-nat.c (gnu_detach): Likewise.
12886 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12887 * infcmd.c (detach_command): Pass current_inferior() down to
12888 target_detach.
12889 * infrun.c (follow_fork_inferior): Pass parent_inf to
12890 target_detach.
12891 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12892 target_detach.
12893 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12894 * linux-thread-db.c (thread_db_detach): Likewise.
12895 * nto-procfs.c (procfs_detach): Likewise.
12896 * procfs.c (procfs_detach): Likewise.
12897 * record.c (record_detach): Likewise.
12898 * record.h (struct inferior): Forward-declare.
12899 (record_detach): Add inferior parameter.
12900 * remote-sim.c (gdbsim_detach): Likewise.
12901 * remote.c (remote_detach_1): Likewise.
12902 (remote_detach): Likewise.
12903 (extended_remote_detach): Likewise.
12904 * sol-thread.c (sol_thread_detach): Likewise.
12905 * target-debug.h (target_debug_print_inferior_p): New macro.
12906 * target-delegates.c: Re-generate.
12907 * top.c (kill_or_detach): Pass inferior down to target_detach.
12908 * windows-nat.c (windows_detach): Add inferior parameter.
12909
12910 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12911
12912 * target.h (struct target_ops) <to_detach>: Remove args
12913 parameter.
12914 (target_detach): Likewise.
12915 * target.c (dispose_inferior): Adjust.
12916 (target_detach): Remove args parameter, adjust.
12917 * aix-thread.c (aix_thread_detach): Adjust.
12918 * corefile.c (core_file_command): Adjust.
12919 * corelow.c (core_detach): Adjust.
12920 * darwin-nat.c (darwin_detach): Adjust.
12921 * gnu-nat.c (gnu_detach): Adjust.
12922 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12923 * infcmd.c (detach_command): Adjust
12924 * infrun.c (follow_fork_inferior): Adjust.
12925 (handle_vfork_child_exec_or_exit): Adjust.
12926 * linux-fork.c (linux_fork_detach): Remove args parameter.
12927 * linux-fork.h (linux_fork_detach): Likewise.
12928 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12929 * linux-thread-db.c (thread_db_detach): Likewise.
12930 * nto-procfs.c (procfs_detach): Likewise.
12931 * procfs.c (procfs_detach): Likewise.
12932 (do_detach): Remove signo parameter.
12933 * record.c (record_detach): Remove args parameter.
12934 * record.h (record_detach): Likewise.
12935 * remote-sim.c (gdbsim_detach): Likewise.
12936 * remote.c (remote_detach_1): Likewise.
12937 (remote_detach): Likewise.
12938 (extended_remote_detach): Likewise.
12939 * sol-thread.c (sol_thread_detach): Likewise.
12940 * target-delegates.c: Re-generate.
12941 * top.c (struct qt_args) <args>: Remove field.
12942 (kill_or_detach): Don't pass args.
12943 (quit_force): Don't set args.
12944 * windows-nat.c (windows_detach): Remove args parameter.
12945
12946 2018-01-19 Yao Qi <yao.qi@linaro.org>
12947
12948 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12949 (arm_linux_init_abi): Install it.
12950
12951 2018-01-19 Yao Qi <yao.qi@linaro.org>
12952
12953 * osabi.c (gdb_osabi_names): Extend the regexp for
12954 arm-linux-gnueabihf.
12955
12956 2018-01-18 Yao Qi <yao.qi@linaro.org>
12957
12958 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12959 m_abbrevs.
12960 (abbrev_table::add_abbrev): Update.
12961 (abbrev_table::lookup_abbrev): Update.
12962
12963 2018-01-18 Yao Qi <yao.qi@linaro.org>
12964
12965 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12966
12967 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12968
12969 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12970 to "std::string".
12971
12972 2018-01-17 Tom Tromey <tom@tromey.com>
12973
12974 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12975
12976 2018-01-17 Tom Tromey <tom@tromey.com>
12977
12978 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12979 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12980 (create_array_type_with_stride): Update.
12981 * dwarf2read.c (set_die_type): Update.
12982
12983 2018-01-17 Tom Tromey <tom@tromey.com>
12984
12985 * dwarf2read.c (delayed_method_info): Remove typedef.
12986 (dwarf2_cu::method_info): Now a std::vector.
12987 (add_to_method_list): Update.
12988 (free_delayed_list): Remove.
12989 (compute_delayed_physnames): Update.
12990 (process_full_comp_unit, process_full_type_unit): Clear the method
12991 list. Remove cleanups.
12992 (psymtab_include_file_name): Add name_holder parameter. Use
12993 unique_xmalloc_ptr.
12994 (dwarf_decode_lines): Update.
12995
12996 2018-01-17 Tom Tromey <tom@tromey.com>
12997 Simon Marchi <simon.marchi@ericsson.com>
12998
12999 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13000 (dwarf2_per_objfile::free_cached_comp_units)
13001 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13002 (init_cutu_and_read_dies_no_follow): Update.
13003 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13004 (dwarf2_cu::~dwarf2_cu): New.
13005 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13006 (age_cached_comp_units, free_one_cached_comp_unit): 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) <abbrev_table>: Remove.
13012 (struct die_reader_specs) <abbrev_table>: New member.
13013 (struct abbrev_table): Add constructor.
13014 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13015 <abbrev_obstack>: Now an auto_obstack.
13016 (abbrev_table_up): New typedef.
13017 (init_cu_die_reader): Add abbrev_table parameter.
13018 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13019 Add result_dwo_abbrev_table.
13020 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13021 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13022 Update.
13023 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13024 parameter.
13025 (skip_children): Update.
13026 (abbrev_table::alloc_abbrev): Rename from
13027 abbrev_table_alloc_abbrev.
13028 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13029 (abbrev_table::lookup_abbrev): Rename from
13030 abbrev_table_lookup_abbrev.
13031 (abbrev_table_read_table): Return abbrev_table_up.
13032 (abbrev_table_free, abbrev_table_free_cleanup)
13033 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13034 (load_partial_dies): Update.
13035
13036 2018-01-17 Tom Tromey <tom@tromey.com>
13037
13038 * dwarf2read.c (dwarf2_compute_name): Update comment.
13039 (read_func_scope, read_variable): Update.
13040 (new_symbol): Remove.
13041 (new_symbol_full): Rename to new_symbol.
13042
13043 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13044
13045 PR gdb/16577
13046 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13047 a warning instead of throwing an error, set section size to 0 and return
13048 NULL.
13049 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13050
13051 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13052
13053 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13054 std::string.
13055 (linux_ptrace_attach_fail_reason_string): Likewise.
13056 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13057 Likewise.
13058 (linux_ptrace_attach_fail_reason_string): Likewise.
13059 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13060
13061 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13062
13063 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13064
13065 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13066
13067 PR gdb/21559
13068 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13069 checking for fs_base/gs_base fields in struct user_regs_struct.
13070 * configure: Regenerate.
13071
13072 2018-01-17 Yao Qi <yao.qi@linaro.org>
13073
13074 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13075 function.
13076 (aarch64_linux_init_abi): Install it to gdbarch hook
13077 gcc_target_options.
13078
13079 2018-01-15 Pedro Alves <palves@redhat.com>
13080
13081 * common/signals-state-save-restore.c
13082 (save_original_signals_state): Fix typos.
13083
13084 2017-01-12 Tom Tromey <tom@tromey.com>
13085 Sergio Durigan Junior <sergiodj@redhat.com>
13086
13087 * Makefile.in (install-only): Install gdb-add-index.
13088
13089 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13090
13091 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13092
13093 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13094
13095 * infrun.c (keep_going_pass_signal): Clear step-over info when
13096 insert_breakpoints fails.
13097
13098 2018-01-11 Pedro Alves <palves@redhat.com>
13099
13100 PR gdb/22583
13101 * infrun.c (resume): Rename to ...
13102 (resume_1): ... this.
13103 (resume): Reimplement as wrapper around resume_1.
13104
13105 2018-01-11 Pedro Alves <palves@redhat.com>
13106
13107 PR remote/22597
13108 * remote.c (remote_parse_stop_reply): Default to the last-set
13109 general thread instead of to 'magic_null_ptid'.
13110
13111 2018-01-10 Pedro Alves <palves@redhat.com>
13112
13113 * language.h (language_get_symbol_name_matcher): Rename ...
13114 (get_symbol_name_matcher): ... this.
13115 * language.c (language_get_symbol_name_matcher): Ditto.
13116 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13117 callers adjusted.
13118
13119 2018-01-10 Pedro Alves <palves@redhat.com>
13120
13121 PR gdb/22670
13122 * dwarf2read.c
13123 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13124 Adjust to use language_get_symbol_name_matcher instead of
13125 language_defn::la_get_symbol_name_matcher.
13126 * language.c (language_get_symbol_name_matcher): If in Ada mode
13127 and the lookup name is a verbatim match, return Ada's matcher.
13128 * language.h (language_get_symbol_name_matcher): Adjust comment.
13129 (ada_lookup_name_info::verbatim_p):: New method.
13130
13131 2018-01-10 Pedro Alves <palves@redhat.com>
13132
13133 PR gdb/22670
13134 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13135 minsym's language is language_auto or language_cplus, pass down
13136 language_ada instead.
13137 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13138
13139 2018-01-10 Pedro Alves <palves@redhat.com>
13140
13141 PR gdb/22670
13142 * minsyms.c (linkage_name_str): New function.
13143 (iterate_over_minimal_symbols): Use it.
13144
13145 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13146
13147 * NEWS: Document that 'info proc' now works on FreeBSD.
13148
13149 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13150
13151 * configure.ac: Check for kinfo_getfile in libutil.
13152 * configure: Regenerate.
13153 * config.in: Regenerate.
13154 * fbsd-nat.c: Include "fbsd-tdep.h".
13155 (fbsd_fetch_cmdline): New.
13156 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13157 rather than calling error.
13158 (fbsd_info_proc): New.
13159 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13160 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13161 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13162
13163 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13164
13165 * fbsd-nat.c (struct free_deleter): Remove.
13166 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13167
13168 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13169
13170 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13171 NULL for an empty pathname.
13172
13173 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13174
13175 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13176 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13177 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13178 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13179 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13180 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13181 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13182 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13183 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13184 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13185 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13186 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13187 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13188 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13189 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13190
13191 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13192
13193 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13194 (gnu_xfer_auxv): New function.
13195 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13196 TARGET_OBJECT_AUXV.
13197
13198 2018-01-08 Yao Qi <yao.qi@linaro.org>
13199 Simon Marchi <simon.marchi@ericsson.com>
13200
13201 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13202 common/selftest.c.
13203 (COMMON_OBS): Remove selftest.o.
13204 * configure.ac: Append selftest-arch.c and common/selftest.c to
13205 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13206 * configure: Re-generated.
13207 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13208 GDB_SELF_TEST.
13209 (maintenance_info_selftests): Likewise.
13210
13211 2018-01-08 Xavier Roirand <roirand@adacore.com>
13212
13213 * ada-valprint.c (val_print_packed_array_elements): Use
13214 proper number of elements when printing an array indexed
13215 by an enumeration type.
13216
13217 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13218
13219 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13220 (dw2_get_file_names_reader): Adjust.
13221 (lookup_dwo_signatured_type): Adjust.
13222 (lookup_dwp_signatured_type): Adjust.
13223 (lookup_signatured_type): Adjust.
13224 (create_type_unit_group): Adjust.
13225 (get_type_unit_group): Adjust.
13226 (process_psymtab_comp_unit_reader): Adjust.
13227 (build_type_psymtabs_reader): Adjust.
13228 (scan_partial_symbols): Adjust.
13229 (add_partial_symbol): Adjust.
13230 (add_partial_subprogram): Adjust.
13231 (peek_die_abbrev): Adjust.
13232 (fixup_go_packaging): Adjust.
13233 (process_imported_unit_die): Adjust.
13234 (dwarf2_compute_name): Adjust.
13235 (dwarf2_physname): Adjust.
13236 (read_import_statement): Adjust.
13237 (handle_DW_AT_stmt_list): Adjust.
13238 (read_file_scope): Adjust.
13239 (read_func_scope): Adjust.
13240 (read_lexical_block_scope): Adjust.
13241 (read_call_site_scope): Adjust.
13242 (read_variable): Adjust.
13243 (dwarf2_rnglists_process): Adjust.
13244 (dwarf2_ranges_process): Adjust.
13245 (dwarf2_ranges_read): Adjust.
13246 (dwarf2_get_pc_bounds): Adjust.
13247 (dwarf2_record_block_ranges): Adjust.
13248 (dwarf2_add_field): Adjust.
13249 (dwarf2_add_member_fn): Adjust.
13250 (read_structure_type): Adjust.
13251 (process_structure_scope): Adjust.
13252 (read_enumeration_type): Adjust.
13253 (read_array_type): Adjust.
13254 (mark_common_block_symbol_computed): Adjust.
13255 (read_common_block): Adjust.
13256 (read_namespace_type): Adjust.
13257 (read_namespace): Adjust.
13258 (read_module_type): Adjust.
13259 (read_tag_pointer_type): Adjust.
13260 (read_tag_ptr_to_member_type): Adjust.
13261 (read_tag_string_type): Adjust.
13262 (read_subroutine_type): Adjust.
13263 (read_typedef): Adjust.
13264 (read_base_type): Adjust.
13265 (attr_to_dynamic_prop): Adjust.
13266 (read_subrange_type): Adjust.
13267 (read_unspecified_type): Adjust.
13268 (dwarf2_read_abbrevs): Adjust.
13269 (load_partial_dies): Adjust.
13270 (read_partial_die): Adjust.
13271 (find_partial_die): Adjust.
13272 (guess_partial_die_structure_name): Adjust.
13273 (fixup_partial_die): Adjust.
13274 (read_attribute_value): Adjust.
13275 (read_addr_index): Adjust.
13276 (read_addr_index_from_leb128): Adjust.
13277 (read_str_index): Adjust.
13278 (dwarf2_string_attr): Adjust.
13279 (get_debug_line_section): Adjust.
13280 (dwarf_decode_line_header): Adjust.
13281 (lnp_state_machine::check_line_address): Adjust.
13282 (dwarf_decode_lines_1): Adjust.
13283 (dwarf_decode_lines): Adjust.
13284 (dwarf2_start_symtab): Adjust.
13285 (var_decode_location): Adjust.
13286 (new_symbol_full): Adjust.
13287 (dwarf2_const_value_data): Adjust.
13288 (dwarf2_const_value_attr): Adjust.
13289 (dwarf2_const_value): Adjust.
13290 (die_type): Adjust.
13291 (die_containing_type): Adjust.
13292 (build_error_marker_type): Adjust.
13293 (lookup_die_type): Adjust.
13294 (guess_full_die_structure_name): Adjust.
13295 (anonymous_struct_prefix): Adjust.
13296 (determine_prefix): Adjust.
13297 (dwarf2_name): Adjust.
13298 (follow_die_ref_or_sig): Adjust.
13299 (follow_die_offset): Adjust.
13300 (follow_die_ref): Adjust.
13301 (follow_die_sig_1): Adjust.
13302 (follow_die_sig): Adjust.
13303 (get_signatured_type): Adjust.
13304 (get_DW_AT_signature_type): Adjust.
13305 (decode_locdesc): Adjust.
13306 (dwarf_decode_macros): Adjust.
13307 (cu_debug_loc_section): Adjust.
13308 (fill_in_loclist_baton): Adjust.
13309 (dwarf2_symbol_mark_computed): Adjust.
13310 (init_one_comp_unit): Don't assign
13311 dwarf2_cu::dwarf2_per_objfile.
13312 (set_die_type): Adjust.
13313
13314 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13315
13316 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13317 <dwarf2_per_objfile>: New field.
13318 (dwarf2_per_objfile): Remove global.
13319 (get_dwarf2_per_objfile): New function.
13320 (set_dwarf2_per_objfile): New function.
13321 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13322 dwarf2_per_objfile.
13323 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13324 (read_abbrev_offset): Likewise.
13325 (read_indirect_string): Likewise.
13326 (read_indirect_line_string): Likewise.
13327 (read_indirect_string_at_offset): Likewise.
13328 (read_indirect_string_from_dwz): Likewise.
13329 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13330 dwarf2_per_objfile.
13331 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13332 (create_all_comp_units): Change objfile parameter to
13333 dwarf2_per_objfile.
13334 (create_all_type_units): Likewise.
13335 (process_queue): Add dwarf2_per_objfile parameter.
13336 (read_and_check_comp_unit_head): Likewise.
13337 (lookup_dwo_unit_in_dwp): Likewise.
13338 (get_dwp_file): Likewise.
13339 (process_cu_includes): Likewise.
13340 (struct free_dwo_file_cleanup_data): New struct.
13341 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13342 set_dwarf2_per_objfile.
13343 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13344 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13345 context, adjust calls.
13346 (dw2_instantiate_symtab): Likewise.
13347 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13348 (dw2_get_cu): Likewise.
13349 (create_cu_from_index_list): Change objfile parameter to
13350 dwarf2_per_objfile.
13351 (create_cus_from_index_list): Get dwarf2_per_objfile from
13352 context, adjust calls.
13353 (create_cus_from_index): Likewise.
13354 (create_signatured_type_table_from_index): Change objfile
13355 parameter to dwarf2_per_objfile.
13356 (create_signatured_type_table_from_debug_names): Change objfile
13357 parameter to dwarf2_per_objfile.
13358 (create_addrmap_from_index): Likewise.
13359 (create_addrmap_from_aranges): Likewise.
13360 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13361 (dw2_setup): Remove.
13362 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13363 context.
13364 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13365 get_dwarf2_per_objfile.
13366 (dw2_forget_cached_source_info): Likewise.
13367 (dw2_map_symtabs_matching_filename): Likewise.
13368 (struct dw2_symtab_iterator) <index>: Remove.
13369 <dwarf2_per_objfile>: New field.
13370 (dw2_symtab_iter_init): Replace index parameter with
13371 dwarf2_per_objfile.
13372 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13373 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13374 (dw2_print_stats): Likewise.
13375 (dw2_dump): Likewise.
13376 (dw2_expand_symtabs_for_function): Likewise.
13377 (dw2_expand_all_symtabs): Likewise.
13378 (dw2_expand_symtabs_with_fullname): Likewise.
13379 (dw2_expand_marked_cus): Replace index and objfile parameters
13380 with dwarf2_per_objfile.
13381 (dw_expand_symtabs_matching_file_matcher): Add
13382 dwarf2_per_objfile parameter and adjust calls.
13383 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13384 adjust calls.
13385 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13386 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13387 adjust calls.
13388 (create_cus_from_debug_names_list): Replace objfile parameter
13389 with dwarf2_per_objfile and adjust calls.
13390 (create_cus_from_debug_names): Likewise.
13391 (dwarf2_read_debug_names): Likewise.
13392 (mapped_debug_names::namei_to_name): Adjust call.
13393 (dw2_debug_names_iterator::next): Likewise.
13394 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13395 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13396 (dw2_debug_names_dump): Likewise.
13397 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13398 (dw2_debug_names_expand_symtabs_matching): Likewise.
13399 (dwarf2_initialize_objfile): Likewise.
13400 (dwarf2_build_psymtabs): Likewise.
13401 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13402 this_cu.
13403 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13404 (read_and_check_comp_unit_head): Likewise.
13405 (read_abbrev_offset): Likewise.
13406 (create_debug_type_hash_table): Likewise.
13407 (create_debug_types_hash_table): Likewise.
13408 (create_all_type_units): Replace objfile parameter with
13409 dwarf2_per_objfile.
13410 (add_type_unit): Add dwarf2_per_objfile parameter.
13411 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13412 with dwarf2_per_objfile.
13413 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13414 (lookup_dwp_signatured_type): Likewise.
13415 (lookup_signatured_type): Likewise.
13416 (read_cutu_die_from_dwo): Likewise.
13417 (init_tu_and_read_dwo_dies): Likewise.
13418 (init_cutu_and_read_dies): Likewise.
13419 (init_cutu_and_read_dies_no_follow): Likewise.
13420 (allocate_type_unit_groups_table): Add objfile parameter.
13421 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13422 (get_type_unit_group): Likewise.
13423 (process_psymtab_comp_unit): Update call.
13424 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13425 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13426 (print_tu_stats): Likewise.
13427 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13428 in void* parameter.
13429 (build_type_psymtabs): Change objfile parameter to
13430 dwarf2_per_objfile.
13431 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13432 passed in void* parameter.
13433 (process_skeletonless_type_units): Change objfile parameter to
13434 dwarf2_per_objfile.
13435 (set_partial_user): Likewise.
13436 (dwarf2_build_psymtabs_hard): Likewise.
13437 (read_comp_units_from_section): Likewise.
13438 (create_all_comp_units): Likewise.
13439 (scan_partial_symbols): Update calls.
13440 (add_partial_symbol): Likewise.
13441 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13442 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13443 (process_queue): Add dwarf2_per_objfile parameter.
13444 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13445 (compute_compunit_symtab_includes): Likewise.
13446 (process_cu_includes): Add dwarf2_per_objfile parameter.
13447 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13448 (process_full_type_unit): Likewise.
13449 (process_imported_unit_die): Update call.
13450 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13451 (read_file_scope): Likewise.
13452 (allocate_dwo_file_hash_table): Add objfile parameter.
13453 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13454 (create_cus_hash_table): Likewise.
13455 (create_dwp_hash_table): Likewise.
13456 (create_dwo_unit_in_dwp_v1): Likewise.
13457 (create_dwp_v2_section): Likewise.
13458 (create_dwo_unit_in_dwp_v2): Likewise.
13459 (lookup_dwo_unit_in_dwp): Likewise.
13460 (try_open_dwop_file): Likewise.
13461 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13462 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13463 cleanup to include a reference to dwarf2_per_objfile.
13464 (open_dwp_file): Add dwarf2_per_objfile parameter.
13465 (open_and_init_dwp_file): Likewise.
13466 (get_dwp_file): Likewise.
13467 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13468 (queue_and_load_all_dwo_tus): Update call.
13469 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13470 data.
13471 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13472 (dwarf2_ranges_process): Likewise.
13473 (dwarf2_get_pc_bounds): Likewise.
13474 (mark_common_block_symbol_computed): Likewise.
13475 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13476 (dwarf2_read_abbrevs): Update call.
13477 (read_partial_die): Use dwarf2_per_objfile from cu.
13478 (find_partial_die): Likewise.
13479 (fixup_partial_die): Likewise.
13480 (read_attribute_value): Likewise.
13481 (read_indirect_string_at_offset_from): Add objfile parameter.
13482 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13483 parameter.
13484 (read_indirect_string_from_dwz): Add objfile parameter.
13485 (read_indirect_string): Add objfile parameter.
13486 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13487 (read_addr_index): Use dwarf2_per_objfile from cu.
13488 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13489 call dw2_setup.
13490 (read_str_index): Use dwarf2_per_objfile from cu.
13491 (get_debug_line_section): Likewise.
13492 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13493 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13494 (new_symbol_full): Use dwarf2_per_objfile from cu.
13495 (build_error_marker_type): Likewise.
13496 (lookup_die_type): Likewise.
13497 (determine_prefix): Likewise.
13498 (follow_die_offset): Likewise.
13499 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13500 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13501 (dwarf2_fetch_die_type_sect_off): Likewise.
13502 (dwarf2_get_die_type): Likewise.
13503 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13504 (get_signatured_type): Likewise.
13505 (get_DW_AT_signature_type): Likewise.
13506 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13507 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13508 (cu_debug_loc_section): Likewise.
13509 (fill_in_loclist_baton): Likewise.
13510 (dwarf2_symbol_mark_computed): Likewise.
13511 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13512 dwarf2_per_objfile.
13513 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13514 parameter.
13515 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13516 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13517 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13518 (set_die_type): Use dwarf2_free_objfile from cu.
13519 (get_die_type_at_offset): Likewise.
13520 (dwarf2_per_objfile_free): Don't assign global variable.
13521 (debug_names) <constructor>: Add dwarf2_per_objfile
13522 parameter, update m_debugstrlookup construction.
13523 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13524 parameter.
13525 <m_dwarf2_per_objfile>: New field.
13526 <lookup>: Use m_dwarf2_per_objfile.
13527 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13528 (psyms_seen_size): Likewise.
13529 (write_gdbindex): Replace objfile parameter with
13530 dwarf2_per_objfile.
13531 (write_debug_names): Likewise.
13532 (write_psymtabs_to_index): Likewise.
13533 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13534 calls.
13535
13536 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13537
13538 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13539 <dwarf2_per_objfile>: New field.
13540 (struct dwarf2_per_cu_data) <objfile>: Remove.
13541 <dwarf2_per_objfile>: New field.
13542 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13543 of objfile.
13544 (create_signatured_type_table_from_index): Likewise.
13545 (create_debug_type_hash_table): Likewise.
13546 (fill_in_sig_entry_from_dwo_entry): Likewise.
13547 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13548 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13549 objfile.
13550 (create_partial_symtab): Access objfile through
13551 dwarf2_per_objfile.
13552 (process_psymtab_comp_unit_reader): Likewise.
13553 (read_comp_units_from_section): Likewise.
13554 (scan_partial_symbols): Likewise.
13555 (add_partial_symbol): Likewise.
13556 (add_partial_subprogram): Likewise.
13557 (peek_die_abbrev): Likewise.
13558 (fixup_go_packaging): Likewise.
13559 (process_full_comp_unit): Likewise.
13560 (process_full_type_unit): Likewise.
13561 (process_imported_unit_die): Likewise.
13562 (dwarf2_compute_name): Likewise.
13563 (dwarf2_physname): Likewise.
13564 (read_import_statement): Likewise.
13565 (create_cus_hash_table): Assign dwarf2_physname instead of
13566 objfile.
13567 (read_func_scope): Access objfile through dwarf2_per_objfile.
13568 (read_lexical_block_scope): Likewise.
13569 (read_call_site_scope): Likewise.
13570 (read_variable): Likewise.
13571 (dwarf2_rnglists_process): Likewise.
13572 (dwarf2_ranges_process): Likewise.
13573 (dwarf2_ranges_read): Likewise.
13574 (dwarf2_record_block_ranges): Likewise.
13575 (dwarf2_add_field): Likewise.
13576 (dwarf2_add_member_fn): Likewise.
13577 (read_structure_type): Likewise.
13578 (process_structure_scope): Likewise.
13579 (read_enumeration_type): Likewise.
13580 (read_array_type): Likewise.
13581 (read_common_block): Likewise.
13582 (read_namespace_type): Likewise.
13583 (read_namespace): Likewise.
13584 (read_module_type): Likewise.
13585 (read_tag_pointer_type): Likewise.
13586 (read_tag_ptr_to_member_type): Likewise.
13587 (read_tag_string_type): Likewise.
13588 (read_subroutine_type): Likewise.
13589 (read_typedef): Likewise.
13590 (read_base_type): Likewise.
13591 (attr_to_dynamic_prop): Likewise.
13592 (read_subrange_type): Likewise.
13593 (read_unspecified_type): Likewise.
13594 (load_partial_dies): Likewise.
13595 (read_partial_die): Likewise.
13596 (find_partial_die): Likewise.
13597 (guess_partial_die_structure_name): Likewise.
13598 (fixup_partial_die): Likewise.
13599 (read_attribute_value): Likewise.
13600 (read_addr_index_from_leb128): Likewise.
13601 (dwarf2_read_addr_index): Likewise.
13602 (dwarf2_string_attr): Likewise.
13603 (lnp_state_machine::check_line_address): Likewise.
13604 (dwarf_decode_lines_1): Likewise.
13605 (dwarf_decode_lines): Likewise.
13606 (dwarf2_start_symtab): Likewise.
13607 (var_decode_location): Likewise.
13608 (new_symbol_full): Likewise.
13609 (dwarf2_const_value_data): Likewise.
13610 (dwarf2_const_value_attr): Likewise.
13611 (dwarf2_const_value): Likewise.
13612 (die_type): Likewise.
13613 (die_containing_type): Likewise.
13614 (lookup_die_type): Likewise.
13615 (guess_full_die_structure_name): Likewise.
13616 (anonymous_struct_prefix): Likewise.
13617 (dwarf2_name): Likewise.
13618 (follow_die_ref_or_sig): Likewise.
13619 (follow_die_offset): Likewise.
13620 (follow_die_ref): Likewise.
13621 (dwarf2_fetch_die_loc_sect_off): Likewise.
13622 (dwarf2_fetch_constant_bytes): Likewise.
13623 (dwarf2_fetch_die_type_sect_off): Likewise.
13624 (dwarf2_get_die_type): Likewise.
13625 (follow_die_sig): Likewise.
13626 (decode_locdesc): Likewise.
13627 (dwarf2_per_cu_objfile): Likewise.
13628 (dwarf2_per_cu_text_offset): Likewise.
13629 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13630 objfile.
13631 (set_die_type): Access objfile through
13632 dwarf2_per_objfile.
13633
13634 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13635
13636 * valprint.c (converted_character_d): Remove typedef.
13637 (DEF_VEC_O (converted_character_d)): Remove.
13638 (count_next_character): Use std::vector.
13639 (print_converted_chars_to_obstack): Likewise.
13640 (generic_printstr): Likewise.
13641
13642 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13643
13644 * xml-support.h (struct gdb_xml_value): Add constructor.
13645 <value>: Change type to unique_xmalloc_ptr.
13646 (gdb_xml_value_s): Remove typedef.
13647 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13648 (gdb_xml_element_start_handler): Change parameter type to
13649 std::vector.
13650 (xml_find_attribute): Likewise.
13651 * xml-support.c (xml_find_attribute): Change parameter type to
13652 std::vector and adjust.
13653 (gdb_xml_values_cleanup): Remove.
13654 (gdb_xml_parser::start_element): Adjust to std::vector.
13655 (xinclude_start_include): Change paraeter type to std::vector
13656 and adjust.
13657 * btrace.c (check_xml_btrace_version): Likewise.
13658 (parse_xml_btrace_block): Likewise.
13659 (parse_xml_btrace_pt_config_cpu): Likewise.
13660 (parse_xml_btrace_pt): Likewise.
13661 (parse_xml_btrace_conf_bts): Likewise.
13662 (parse_xml_btrace_conf_pt): Likewise.
13663 * memory-map.c (memory_map_start_memory): Likewise.
13664 (memory_map_start_property): Likewise.
13665 * osdata.c (osdata_start_osdata): Likewise.
13666 (osdata_start_item): Likewise.
13667 (osdata_start_column): Likewise.
13668 * remote.c (start_thread): Likewise.
13669 * solib-aix.c (library_list_start_library): Likewise.
13670 (library_list_start_list): Likewise.
13671 * solib-svr4.c (library_list_start_library): Likewise.
13672 (svr4_library_list_start_list): Likewise.
13673 * solib-target.c (library_list_start_segment): Likewise.
13674 (library_list_start_section): Likewise.
13675 (library_list_start_library): Likewise.
13676 (library_list_start_list): Likewise.
13677 * tracepoint.c (traceframe_info_start_memory): Likewise.
13678 (traceframe_info_start_tvar): Likewise.
13679 * xml-syscall.c (syscall_start_syscall): Likewise.
13680 * xml-tdesc.c (tdesc_start_target): Likewise.
13681 (tdesc_start_feature): Likewise.
13682 (tdesc_start_reg): Likewise.
13683 (tdesc_start_union): Likewise.
13684 (tdesc_start_struct): Likewise.
13685 (tdesc_start_flags): Likewise.
13686 (tdesc_start_enum): Likewise.
13687 (tdesc_start_field): Likewise.
13688 (tdesc_start_enum_value): Likewise.
13689 (tdesc_start_vector): Likewise.
13690
13691 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13692
13693 * extension.h (struct xmethod_worker) <clone>: Remove.
13694 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13695 Remove.
13696 (python_xmethod_worker::clone): Remove.
13697 * valops.c (find_overload_match): Use std::move instead of
13698 clone.
13699
13700 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13701
13702 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13703 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13704 <free_xmethod_worker_data>: Remove.
13705 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13706 <get_xmethod_arg_types>: Remove.
13707 <get_xmethod_result_type>: Remove.
13708 <invoke_xmethod>: Remove.
13709 * extension.c (new_xmethod_worker): Remove.
13710 (clone_xmethod_worker): Remove.
13711 (get_matching_xmethod_workers): Return void, pass std::vector by
13712 pointer.
13713 (get_xmethod_arg_types): Rename to...
13714 (xmethod_worker::get_arg_types): ... this, and adjust.
13715 (get_xmethod_result_type): Rename to...
13716 (xmethod_worker::get_result_type): ... this, and adjust.
13717 (invoke_xmethod): Remove.
13718 (free_xmethod_worker): Remove.
13719 (free_xmethod_worker_vec): Remove.
13720 * extension.h (enum ext_lang_rc): Move here from
13721 extension-priv.h.
13722 (struct xmethod_worker): Add constructor and destructor.
13723 <data>: Remove.
13724 <value>: Remove.
13725 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13726 virtual pure methods.
13727 <get_arg_types, get_result_type>: New methods.
13728 (xmethod_worker_ptr): Remove typedef.
13729 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13730 (xmethod_worker_vec): Remove typedef.
13731 (xmethod_worker_up): New typedef.
13732 (invoke_xmethod): Remove.
13733 (clone_xmethod_worker): Remove.
13734 (free_xmethod_worker): Remove.
13735 (free_xmethod_worker_vec): Remove.
13736 (get_xmethod_arg_types): Remove.
13737 (get_xmethod_result_type): Remove.
13738 * valops.c (find_method_list): Use std::vector, don't use
13739 intermediate vector.
13740 (value_find_oload_method_list): Use std::vector.
13741 (find_overload_match): Use std::vector.
13742 (find_oload_champ): Use std::vector.
13743 * value.c (value_free): Use operator delete.
13744 (value_of_xmethod): Rename to...
13745 (value_from_xmethod): ... this. Don't assign
13746 xmethod_worker::value, take rvalue-reference.
13747 (result_type_of_xmethod): Adjust.
13748 (call_xmethod): Adjust.
13749 * value.h: Include extension.h.
13750 (struct xmethod_worker): Don't forward-declare.
13751 (value_of_xmethod): Rename to...
13752 (value_from_xmethod): ... this, take rvalue-reference.
13753 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13754 (struct python_xmethod_worker): ... this, add constructor and
13755 destructor.
13756 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13757 (gdbpy_free_xmethod_worker_data): Rename to...
13758 (python_xmethod_worker::~python_xmethod_worker): ... this and
13759 adjust.
13760 (gdbpy_clone_xmethod_worker_data): Rename to...
13761 (python_xmethod_worker::clone): ... this and adjust.
13762 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13763 temporary vector.
13764 (gdbpy_get_xmethod_arg_types): Rename to...
13765 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13766 (gdbpy_get_xmethod_result_type): Rename to...
13767 (python_xmethod_worker::do_get_result_type): ... this and
13768 adjust.
13769 (gdbpy_invoke_xmethod): Rename to...
13770 (python_xmethod_worker::invoke): ... this and adjust.
13771 (new_python_xmethod_worker): Rename to...
13772 (python_xmethod_worker::python_xmethod_worker): ... this and
13773 adjust.
13774 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13775 Remove.
13776 (gdbpy_free_xmethod_worker_data): Remove.
13777 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13778 (gdbpy_get_xmethod_arg_types): Remove.
13779 (gdbpy_get_xmethod_result_type): Remove.
13780 (gdbpy_invoke_xmethod): Remove.
13781 * python/python.c (python_extension_ops): Remove obsolete
13782 callbacks.
13783
13784 2018-01-05 Pedro Alves <palves@redhat.com>
13785
13786 PR gdb/18653
13787 * common/signals-state-save-restore.c
13788 (save_original_signals_state): New parameter 'quiet'. Warn if we
13789 find a custom handler preinstalled, instead of internal erroring.
13790 But only warn if !quiet.
13791 * common/signals-state-save-restore.h
13792 (save_original_signals_state): New parameter 'quiet'.
13793 * main.c (captured_main_1): Move save_original_signals_state call
13794 after option handling, and pass QUIET.
13795
13796 2018-01-05 Pedro Alves <palves@redhat.com>
13797
13798 * spu-tdep.c (spu_catch_start): Pass
13799 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13800
13801 2018-01-05 Pedro Alves <palves@redhat.com>
13802
13803 PR gdb/22670
13804 * ada-lang.c (literal_symbol_name_matcher): New function.
13805 (ada_get_symbol_name_matcher): Use it for
13806 symbol_name_match_type::SEARCH_NAME.
13807 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13808 it down instead of assuming symbol_name_match_type::FULL.
13809 * block.h (block_lookup_symbol): New parameter 'match_type'.
13810 * c-valprint.c (print_unpacked_pointer): Use
13811 lookup_symbol_search_name instead of lookup_symbol.
13812 * compile/compile-object-load.c (get_out_value_type): Pass down
13813 symbol_name_match_type::SEARCH_NAME.
13814 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13815 symbol_name_match_type::FULL.
13816 * cp-support.c (cp_get_symbol_name_matcher): Handle
13817 symbol_name_match_type::SEARCH_NAME.
13818 * infrun.c (insert_exception_resume_breakpoint): Use
13819 lookup_symbol_search_name.
13820 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13821 * psymtab.c (maintenance_check_psymtabs): Use
13822 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13823 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13824 SYMBOL_SEARCH_NAME.
13825 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13826 if symbol_name_match_type::SEARCH_NAME.
13827 (lookup_symbol_in_language): Pass down
13828 symbol_name_match_type::FULL.
13829 (lookup_symbol_search_name): New.
13830 (lookup_language_this): Pass down
13831 symbol_name_match_type::SEARCH_NAME.
13832 (lookup_symbol_aux, lookup_local_symbol): New parameter
13833 'match_type'. Pass it down.
13834 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13835 (lookup_symbol_search_name): New declaration.
13836 (lookup_symbol_in_block): New 'match_type' parameter.
13837
13838 2018-01-05 Pedro Alves <palves@redhat.com>
13839
13840 PR gdb/22670
13841 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13842 ada_lookup_symbol.
13843 (ada_lookup_symbol): Reimplement in terms of
13844 ada_lookup_symbol_list, bits factored out from
13845 ada_lookup_encoded_symbol.
13846
13847 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13848
13849 * ada-exp.y (write_object_renaming): When subscripting an array
13850 using a symbol as the index, pass the block in call to
13851 ada_lookup_encoded_symbol when looking that symbol up.
13852
13853 2018-01-05 Jerome Guitton <guitton@adacore.com>
13854
13855 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13856 TYPE_INDEX_TYPE.
13857
13858 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13859
13860 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13861 the case where VALUE_LVAL (val0) is not lval_memory.
13862
13863 2018-01-05 Xavier Roirand <roirand@adacore.com>
13864
13865 * ada-valprint.c (print_optional_low_bound): Handle
13866 character-indexed array printing like boolean-indexed array
13867 printing.
13868
13869 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13870
13871 * NEWS: Create a new section for the next release branch.
13872 Rename the section of the current branch, now that it has
13873 been cut.
13874
13875 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13876
13877 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13878 * version.in: Bump version to 8.1.50.DATE-git.
13879
13880 2018-01-03 Xavier Roirand <roirand@adacore.com>
13881
13882 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13883 Add field.
13884 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13885 Add field.
13886 (default_exception_support_info) <catch_handlers_sym>: Add field.
13887 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13888 (ada_exception_name_addr_1): Add "catch handlers" handling.
13889 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13890 Update all callers.
13891 (create_excep_cond_exprs) <ex>: Add parameter.
13892 (re_set_exception): Update create_excep_cond_exprs call.
13893 (print_it_exception, print_one_exception, print_mention_exception)
13894 (print_recreate_exception): Add "catch handler" handling.
13895 (allocate_location_catch_handlers, re_set_catch_handlers)
13896 (check_status_catch_handlers, print_it_catch_handlers)
13897 (print_one_catch_handlers, print_mention_catch_handlers)
13898 (print_recreate_catch_handlers): New function.
13899 (catch_handlers_breakpoint_ops): New variable.
13900 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13901 Add parameter. Add "catch handler" handling.
13902 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13903 Add "catch handler" handling.
13904 (ada_exception_catchpoint_cond_string): Add "catch handler"
13905 handling.
13906 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13907 call.
13908 (catch_ada_handlers_command): New function.
13909 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13910 operations structure.
13911 (_initialize_ada_language): Add "catch handlers" command entry.
13912 * NEWS: Document "catch handlers" feature.
13913
13914 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13915
13916 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13917 account when creating the array type of the slice.
13918 (ada_value_slice): Likewise.
13919
13920 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13921
13922 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13923 New enum value.
13924 (create_array_type_with_stride): Add byte_stride_prop parameter.
13925 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13926 New parameter. Update all callers in this file.
13927 (array_type_has_dynamic_stride): New function.
13928 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13929 of arrays with dynamic byte strides.
13930 * dwarf2read.c (read_array_type): Add support for dynamic
13931 DW_AT_byte_stride attributes.
13932
13933 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13934
13935 * dwarf2read.c (read_unspecified_type): Treat
13936 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13937
13938 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13939
13940 Update copyright year range in all GDB files.
13941
13942 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13943
13944 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13945 and gdb/testsuite/gdb.base/step-line.c.
13946
13947 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13948
13949 * copyright.py (main): Dump the contents of
13950 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13951 even if BY_HAND is empty.
13952
13953 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13954
13955 * top.c (print_gdb_version): Update Copyright year in version
13956 message.
13957
13958 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13959
13960 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13961
13962 For older changes see ChangeLog-2017.
13963 \f
13964 Local Variables:
13965 mode: change-log
13966 left-margin: 8
13967 fill-column: 74
13968 version-control: never
13969 coding: utf-8
13970 End:
This page took 0.348086 seconds and 4 git commands to generate.