]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
More Solaris procfs cleanup
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
4
5 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
6 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
7 * sol-thread.c (ps_pdmodel): Don't guard definition.
8
9 * procfs.c: Fix formatting.
10
11 * procfs.c (sysset_t_alloc): Remove.
12 (create_procinfo): Use XNEW instead of sysset_t_alloc.
13 (procfs_debug_inferior): Likewise.
14 (procfs_set_exec_trap): Likewise.
15 (proc_set_traced_sysentry): Don't allocate argp dynamically.
16 (proc_set_traced_sysexit): Likewise.
17
18 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
19 (dead_procinfo): Likewise.
20 (proc_warn): Likewise.
21 (proc_error): Likewise.
22 (proc_get_LDT_entry): Likewise.
23 (do_attach): Likewise.
24 (procfs_target::pid_to_str): Likewise.
25 (iterate_over_mappings): Likewise.
26
27 * procfs.c (create_procinfo): Fix ARI warning.
28 (proc_get_status): Likewise.
29 (proc_stop_process): Likewise.
30 (proc_run_process): Likewise.
31 (proc_kill): Likewise.
32 (proc_get_LDT_entry): Likewise.
33 (procfs_find_LDT_entry): Likewise.
34 (proc_update_threads): Likewise.
35 (proc_iterate_over_threads): Likewise.
36 (do_attach): Likewise.
37 (procfs_xfer_memory): Likewise.
38 (invalidate_cache): Likewise.
39 (procfs_target::resume): Likewise.
40 (procfs_init_inferior): Likewise.
41 (procfs_set_exec_trap): Likewise.
42 (procfs_target::thread_alive): Likewise.
43 (procfs_target::pid_to_exec_file): Likewise.
44 (iterate_over_mappings): Likewise.
45 (procfs_target::make_corefile_notes): Likewise.
46 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
47
48 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
49 (procfs_find_LDT_entry): Likewise.
50 * sol-thread.c (ps_lgetLDT): Likewise.
51
52 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
53
54 PR tdep/17903
55 * procfs.c (procfs_target): Declare pid_to_exec_file.
56 (procfs_target::pid_to_exec_file): New.
57
58 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
59
60 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
61 renaming.
62 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
63 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
64
65 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66
67 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
68 (supply_fpregset, fill_fpregset): Move ...
69 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
70 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
71 Remove references to ioctl-based procfs.
72 Include <sys/reg.h>.
73 Remove PR_MODEL_NATIVE guards.
74 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
75 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
76
77 2018-09-19 Xavier Roirand <roirand@adacore.com>
78
79 PR gdb/20981:
80 * solib-darwin.c (darwin_get_dyld_bfd): New function.
81 (darwin_solib_get_all_image_info_addr_at_init): Update call.
82 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
83
84 2018-09-19 John Baldwin <jhb@FreeBSD.org>
85
86 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
87 (fbsd_print_sockaddr_in6): Likewise.
88
89 2018-09-19 Richard Bunt <richard.bunt@arm.com>
90 Chris January <chris.january@arm.com>
91
92 * eval.c (skip_undetermined_arglist): Skip argument list helper.
93 (evaluate_subexp_standard): Return a dummy type when
94 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
95 OP_F77_UNDETERMINED_ARGLIST case.
96 * expression.h (enum noside): Update comment.
97
98 2018-09-19 George Vasick <george.vasick@oracle.com>
99
100 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
101
102 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
103 April Chin <april.chin@oracle.com>
104 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
105
106 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
107 uint_t lwpid_t.
108 (create_procinfo): Print pids in /proc without leading zeros.
109
110 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
111
112 * nios2-tdep.c (nios2_gcc_target_options): New.
113 (nios2_gdb_arch_init): Install new hook.
114
115 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
116
117 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
118 New file.
119 * update-gnulib.sh: Apply patch.
120 * configure: Re-generate.
121
122 2018-09-18 John Baldwin <jhb@FreeBSD.org>
123
124 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
125 description. Make "info proc" command descriptions more
126 consistent.
127
128 2018-09-18 John Baldwin <jhb@FreeBSD.org>
129
130 * NEWS: Mention 'info proc files' command.
131
132 2018-09-18 John Baldwin <jhb@FreeBSD.org>
133
134 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
135 descriptors for IP_FILES and IP_ALL.
136
137 2018-09-18 John Baldwin <jhb@FreeBSD.org>
138
139 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
140 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
141 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
142 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
143 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
144 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
145 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
146 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
147 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
148 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
149 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
150 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
151 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
152 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
153 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
154 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
155 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
156 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
157 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
158 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
159 (struct fbsd_sockaddr_un): New types.
160 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
161 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
162 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
163 (fbsd_core_info_proc_files): New functions.
164 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
165 IP_ALL.
166 * fbsd-tdep.h (fbsd_info_proc_files_header)
167 (fbsd_info_proc_files_entry): New.
168
169 2018-09-18 John Baldwin <jhb@FreeBSD.org>
170
171 * defs.h (enum info_proc_what) [IP_FILES]: New value.
172 * infcmd.c (info_proc_cmd_files): New function.
173 (_initialize_infcmd): Register 'info proc files' command.
174
175 2018-09-18 John Baldwin <jhb@FreeBSD.org>
176
177 * gnulib/aclocal-m4-deps.mk: Re-generate.
178 * gnulib/aclocal.m4: Re-generate.
179 * gnulib/config.in: Re-generate.
180 * gnulib/configure: Re-generate.
181 * gnulib/import/Makefile.am: Re-generate.
182 * gnulib/import/Makefile.in: Re-generate.
183 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
184 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
185 * gnulib/import/arpa_inet.in.h: New file.
186 * gnulib/import/inet_ntop.c: New file.
187 * gnulib/import/m4/arpa_inet_h.m4: New file.
188 * gnulib/import/m4/inet_ntop.m4: New file.
189 * gnulib/import/m4/netinet_in_h.m4: New file.
190 * gnulib/import/m4/socklen.m4: New file.
191 * gnulib/import/m4/sockpfaf.m4: New file.
192 * gnulib/import/m4/stdalign.m4: New file.
193 * gnulib/import/m4/sys_uio_h.m4: New file.
194 * gnulib/import/netinet_in.in.h: New file.
195 * gnulib/import/stdalign.in.h: New file.
196 * gnulib/import/sys_socket.c: New file.
197 * gnulib/import/sys_socket.in.h: New file.
198 * gnulib/import/sys_uio.in.h: New file.
199 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
200 module.
201
202 2018-09-18 John Baldwin <jhb@FreeBSD.org>
203
204 * gnulib/aclocal-m4-deps.mk: New file.
205 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
206 deterministically.
207
208 2018-09-18 John Baldwin <jhb@FreeBSD.org>
209
210 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
211 KVE_PATH.
212
213 2018-09-18 Tom Tromey <tom@tromey.com>
214
215 * compile/compile-object-load.c (struct
216 link_hash_table_cleanup_data): Add constructor and destructor.
217 Use DISABLE_COPY_AND_ASSIGN.
218 (~link_hash_table_cleanup_data): Rename from
219 link_hash_table_free. Now a destructor.
220 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
221
222 2018-09-18 Tom Tromey <tom@tromey.com>
223
224 * compile/compile-object-run.c (do_module_cleanup): Use delete.
225 * compile/compile-object-load.c (struct munmap_list): Move to
226 header file.
227 (munmap_list::add): Rename from munmap_list_add; rewrite.
228 (munmap_list::~munmap_list): Rename from munmap_list_free.
229 (munmap_listp_free_cleanup): Remove.
230 (compile_object_load): Update.
231 * compile/compile-object-load.h (struct munmap_list): Move from
232 compile-object-load.c. Rewrite.
233
234 2018-09-18 Alan Hayward <alan.hayward@arm.com>
235
236 * aarch64-tdep.c (pass_in_v): Use register size.
237 (aarch64_extract_return_value): Likewise.
238 (aarch64_store_return_value): Likewise.
239
240 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
241
242 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
243 rlim_t.
244
245 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
246
247 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
248 Fix short help line.
249
250 2018-09-17 Tom Tromey <tom@tromey.com>
251
252 PR python/20445:
253 * configure: Rebuild.
254 * configure.ac: Conditionally use -DNDEBUG for Python.
255
256 2018-09-17 Tom Tromey <tom@tromey.com>
257
258 * configure: Rebuild.
259 * configure.ac: Use gmp as a library dependency when checking for
260 mpfr.
261
262 2018-09-17 Pedro Alves <palves@redhat.com>
263
264 * python/py-inferior.c (find_inferior_object): Delete.
265
266 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
267
268 * compile/compile-cplus-types.c
269 (compile_cplus_instance::enter_scope): Don't use new_scope after
270 std::move.
271
272 2018-09-17 Tom Tromey <tom@tromey.com>
273
274 * common/pathstuff.c (get_standard_cache_dir): Use
275 ~/Library/Caches on macOS.
276 * common/pathstuff.h (get_standard_cache_dir): Update comment.
277
278 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
279
280 PR python/23669
281 * breakpoint.c (commands_cmd_element): New.
282 (_initialize_breakpoint): Assign commands_cmd_element.
283 * breakpoint.h (commands_cmd_element): New.
284 * cli/cli-script.c (while_cmd_element, if_command,
285 define_cmd_element): New.
286 (command_name_equals): Remove.
287 (process_next_line): Compare commands by pointer, not by name.
288 (_initialize_cli_script): Assign the various cmd_list_element
289 variables.
290 * compile/compile.c (compile_cmd_element): New.
291 (_initialize_compile): Assign compile_cmd_element.
292 * compile/compile.h (compile_cmd_element): New.
293 * guile/guile.c (guile_cmd_element): New.
294 (install_gdb_commands): Assign guile_cmd_element.
295 * guile/guile.h (guile_cmd_element): New.
296 * python/python.c (python_cmd_element): New.
297 (_initialize_python): Assign python_cmd_element.
298 * python/python.h (python_cmd_element): New.
299 * tracepoint.c (while_stepping_cmd_element): New.
300 (_initialize_tracepoint): Assign while_stepping_cmd_element.
301 * tracepoint.h (while_stepping_cmd_element): New.
302
303 2018-09-17 Tom Tromey <tom@tromey.com>
304
305 * infrun.c (save_infcall_suspend_state): Return
306 infcall_suspend_state_up.
307 (save_infcall_control_state): Return infcall_control_state_up.
308 * inferior.h (save_infcall_suspend_state)
309 (save_infcall_control_state): Declare later. Return unique
310 pointers.
311
312 2018-09-17 Tom Tromey <tom@tromey.com>
313
314 * infrun.c (struct stop_context): Declare constructor,
315 destructor, "changed" method.
316 (stop_context::stop_context): Rename from save_stop_context.
317 (stop_context::~stop_context): Rename from
318 release_stop_context_cleanup.
319 (normal_stop): Update.
320 (stop_context::changed): Rename from stop_context_changed. Return
321 bool.
322
323 2018-09-17 Tom Tromey <tom@tromey.com>
324
325 * inferior.h (struct infcall_suspend_state_deleter): New.
326 (infcall_suspend_state_up): New typedef.
327 (struct infcall_control_state_deleter): New.
328 (infcall_control_state_up): New typedef.
329 (make_cleanup_restore_infcall_suspend_state)
330 (make_cleanup_restore_infcall_control_state): Don't declare.
331 * infcall.c (call_function_by_hand_dummy): Update.
332 * infrun.c (do_restore_infcall_suspend_state_cleanup)
333 (make_cleanup_restore_infcall_suspend_state): Remove.
334 (do_restore_infcall_control_state_cleanup)
335 (make_cleanup_restore_infcall_control_state): Remove.
336
337 2018-09-17 Tom Tromey <tom@tromey.com>
338
339 * gdbthread.h (struct thread_control_state): Add initializer.
340 (class thread_info) <control>: Remove initializer.
341 * inferior.h (struct inferior_control_state): Add initializer.
342 (class inferior) <control>: Remove initializer.
343 (exit_inferior_1): Update.
344 * infrun.c (struct infcall_control_state): Add constructors.
345 (save_infcall_control_state): Use new.
346 (restore_infcall_control_state, discard_infcall_control_state):
347 Use delete.
348
349 2018-09-17 Tom Tromey <tom@tromey.com>
350
351 * infrun.c (struct infcall_suspend_state) <registers>: Now a
352 unique_ptr.
353 <siginfo_data>: Now a unique_xmalloc_ptr.
354 (save_infcall_suspend_state, restore_infcall_suspend_state)
355 (discard_infcall_suspend_state)
356 (get_infcall_suspend_state_regcache): Update.
357
358 2018-09-17 Tom Tromey <tom@tromey.com>
359
360 * gdbthread.h (struct thread_suspend_state): Add initializers.
361 (class thread_info) <suspend>: Remove initializer.
362 * infrun.c (struct infcall_suspend_state): Add initializers.
363 (save_infcall_suspend_state): Use new.
364 (discard_infcall_suspend_state): Use delete.
365
366 2018-09-16 Tom Tromey <tom@tromey.com>
367
368 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
369 Remove.
370 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
371 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
372 (py_varobj_iter_new): Likewise.
373 (py_varobj_get_iterator): Use gdbpy_ref.
374
375 2018-09-16 Tom Tromey <tom@tromey.com>
376
377 * python/py-threadevent.c (py_get_event_thread): Simplify.
378 * python/py-inferior.c (infpy_thread_from_thread_handle):
379 Return immediately after calling thread_to_thread_object. Use
380 Py_RETURN_NONE.
381 (thread_to_thread_object): Set the exception on a NULL return.
382
383 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
384
385 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
386
387 2018-09-16 Tom Tromey <tom@tromey.com>
388
389 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
390 Remove.
391
392 2018-09-16 Tom Tromey <tom@tromey.com>
393
394 * python/python-internal.h (thread_to_thread_object): Change
395 return type.
396 * python/py-inferior.c (thread_to_thread_object): Return a new
397 reference.
398 (infpy_thread_from_thread_handle): Update.
399 * python/py-infthread.c (gdbpy_selected_thread): Update.
400 * python/py-stopevent.c (create_stop_event_object): Update.
401 * python/py-threadevent.c (py_get_event_thread): Return a new
402 reference.
403 (py_get_event_thread): Update.
404 * python/py-event.h (py_get_event_thread): Change return type.
405 * python/py-continueevent.c (create_continue_event_object):
406 Update.
407
408 2018-09-16 Tom Tromey <tom@tromey.com>
409
410 * python/py-progspace.c (pspy_get_objfiles): Update.
411 * python/python-internal.h (objfile_to_objfile_object): Change
412 return type.
413 * python/py-newobjfileevent.c (create_new_objfile_event_object):
414 Update.
415 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
416 Update.
417 * python/python.c (gdbpy_get_current_objfile): Update.
418 (gdbpy_objfiles): Update.
419 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
420 Update.
421 (objfile_to_objfile_object): Return a new reference.
422 * python/py-symtab.c (stpy_get_objfile): Update.
423 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
424 Update.
425
426 2018-09-16 Tom Tromey <tom@tromey.com>
427
428 * python/py-inferior.c (infpy_get_progspace): Update.
429 * python/python-internal.h (pspace_to_pspace_object): Change
430 return type.
431 * python/py-newobjfileevent.c
432 (create_clear_objfiles_event_object): Update.
433 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
434 Update.
435 * python/python.c (gdbpy_get_current_progspace): Update.
436 (gdbpy_progspaces): Update.
437 * python/py-progspace.c (pspace_to_pspace_object): Return a new
438 reference.
439 * python/py-objfile.c (objfpy_get_progspace): Update.
440 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
441 Update.
442
443 2018-09-16 Tom Tromey <tom@tromey.com>
444
445 * python/lib/gdb/__init__.py (current_progspace, objfiles)
446 (solib_name, block_for_pc, find_pc_line): New functions.
447 (execute_unwinders): Update.
448 * python/py-block.c (gdbpy_block_for_pc): Remove.
449 * python/py-inferior.c (infpy_get_progspace): New function.
450 (inferior_object_getset) <progspace>: Add.
451 * python/py-progspace.c (pspy_objfiles): Rewrite.
452 (pspy_solib_name, pspy_block_for_pc)
453 (pspy_find_pc_line, pspy_is_valid): New functions.
454 (progspace_object_methods): Add entries for solib_name,
455 block_for_pc, find_pc_line, is_valid.
456 * python/python-internal.h (gdbpy_block_for_pc)
457 (build_objfiles_list): Don't declare.
458 * python/python.c: Don't include solib.h.
459 (gdbpy_solib_name, gdbpy_find_pc_line)
460 (gdbpy_get_current_progspace, build_objfiles_list)
461 (gdbpy_objfiles): Remove.
462 (GdbMethods) <current_progspace, objfiles, block_for_pc,
463 solib_name, find_pc_line>: Remove entries.
464
465 2018-09-16 Tom Tromey <tom@tromey.com>
466
467 * top.c (new_ui_command): Use GNU style for metasyntactic
468 variables.
469 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
470 variables.
471 * maint.c (maintenance_translate_address): Remove "<>" around
472 text.
473 * interps.c (interpreter_exec_cmd): Use GNU style for
474 metasyntactic variables.
475 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
476 metasyntactic variables.
477 * tracepoint.c (tfind_range_command): Use GNU style for
478 metasyntactic variables.
479 (tfind_outside_command): Likewise.
480 (_initialize_tracepoint): Likewise.
481 * remote.c (extended_remote_target::create_inferior): Use GNU
482 style for metasyntactic variables.
483 * sparc64-tdep.c (adi_examine_command): Use GNU style for
484 metasyntactic variables.
485 (adi_assign_command): Likewise.
486
487 2018-09-16 Tom Tromey <tom@tromey.com>
488
489 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
490 metasyntactic variables. Print message if no disassembler options
491 are available.
492
493 2018-09-15 Tom Tromey <tom@tromey.com>
494
495 * infcmd.c (get_inferior_args): Return const char *.
496 * inferior.h (get_inferior_args): Return type now const.
497 * linux-tdep.c (linux_fill_prpsinfo): Update.
498 * procfs.c (procfs_target::make_corefile_notes): Update.
499
500 2018-09-07 Tom Tromey <tom@tromey.com>
501
502 * python/python.c (execute_gdb_command): Call bpstat_do_actions
503 inside the TRY.
504
505 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
506
507 * nios2-tdep.c (nios2_type_align): New.
508 (nios2_gdb_arch_init): Install type_align hook.
509
510 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
511
512 * eval.c (fake_method::fake_method): Call xzalloc directly for a
513 type that is neither object file owned, nor gdbarch owned.
514 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
515 gdbarch is non-NULL.
516 (alloc_type_instance): Allocate non-objfile owned types on the
517 gdbarch obstack.
518 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
519 using TYPE_ALLOC to ensure memory is allocated on the correct
520 obstack.
521 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
522 obstack, or the gdbarch obstack.
523 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
524
525 2018-09-14 Tom Tromey <tom@tromey.com>
526
527 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
528 block.
529
530 2018-09-14 Tom Tromey <tom@tromey.com>
531
532 * nat/fork-inferior.c (get_startup_shell): Remove "static".
533
534 2018-09-13 Tom Tromey <tom@tromey.com>
535
536 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
537 static.
538
539 2018-09-13 Tom Tromey <tom@tromey.com>
540
541 * exec.c (try_open_exec_file): Use std::string.
542
543 2018-09-13 Tom Tromey <tom@tromey.com>
544
545 * utils.h (gdb_bfd_errmsg): Return std::string.
546 * exec.c (exec_file_attach): Update.
547 * compile/compile-object-load.c (compile_object_load): Update.
548 * utils.c (gdb_bfd_errmsg): Return std::string.
549
550 2018-09-13 Tom Tromey <tom@tromey.com>
551
552 * procfs.c (struct procinfo_deleter): New.
553 (procinfo_up): New typedef.
554 (do_destroy_procinfo_cleanup): Remove.
555 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
556
557 2018-09-13 Tom Tromey <tom@tromey.com>
558
559 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
560
561 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
562 2018-09-13 Tom Tromey <tom@tromey.com>
563
564 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
565 (pspy_get_objfiles): New function.
566 (progspace_object_methods): New.
567 (pspace_object_type): Add tp_methods callback.
568 * python/python-internal.h (build_objfiles_list): New
569 declaration.
570 * python/python.c (build_objfiles_list): New function.
571 (gdbpy_objfiles): Implement using build_objfiles_list.
572 * NEWS: Mention the Progspace.objfiles method.
573
574 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
575
576 * python/py-inferior.c (infpy_get_progspace): New function.
577 (inferior_object_getset): Add progspace property.
578 * NEWS: Mention the new property.
579
580 2018-09-13 Tom Tromey <tom@tromey.com>
581
582 PR rust/23650:
583 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
584
585 2018-09-13 Tom Tromey <tom@tromey.com>
586
587 PR rust/23626:
588 * rust-lang.c (rust_enum_variant): Now static.
589 (rust_empty_enum_p): New function.
590 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
591 Handle empty enum.
592
593 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
594
595 * python/py-inferior.c (infpy_repr): New.
596 (inferior_object_type): Register infpy_repr.
597 * python/py-objfile.c (objfpy_repr): New.
598 (objfile_object_type): Register objfpy_repr.
599
600 2018-09-12 John Baldwin <jhb@FreeBSD.org>
601
602 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
603
604 2018-09-12 John Baldwin <jhb@FreeBSD.org>
605
606 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
607 typo.
608
609 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
610
611 * common/common-utils.c: Don't include '<sys/stat.h>'.
612 (is_regular_file): Move to...
613 * common/filestuff.c (is_regular_file): ... here.
614 * common/common-utils.h (is_regular_file): Move to...
615 * common/filestuff.h (is_regular_file): ... here.
616
617 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
618
619 * skip.c (debug_skip): New variable.
620 (skiplist_entry::do_skip_file_p): Add debug output.
621 (skiplist_entry::do_skip_gfile_p): Likewise.
622 (skiplist_entry::skip_function_p): Likewise.
623 (_initialize_step_skip): Create debug command.
624 * NEWS: Mention set/show debug skip.
625
626 2018-09-11 Xavier Roirand <roirand@adacore.com>
627
628 * darwin-nat.c (should_disable_startup_with_shell):
629 New function.
630 (darwin_nat_target::create_inferior): Add call.
631
632 2018-09-11 Xavier Roirand <roirand@adacore.com>
633
634 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
635 inf_port, msg_state>: Initialize.
636 (struct darwin_thread_info) <signaled, single_step>: Change
637 type and initialize.
638 (struct darwin_thread_info) <event>: Initialize.
639
640 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
641
642 PR gdb/23555
643 PR gdb/23558
644 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
645 guesses.
646
647 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
648
649 Revert:
650 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
651
652 PR gdb/23555
653 PR gdb/23558
654 * gnulib/aclocal.m4: Regenerate.
655 * gnulib/config.in: Regenerate.
656 * gnulib/configure: Regenerate.
657 * gnulib/import/Makefile.am: Update.
658 * gnulib/import/Makefile.in: Update.
659 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
660 * gnulib/import/_Noreturn.h: ... this.
661 * gnulib/import/alloca.in.h: Update.
662 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
663 * gnulib/import/arg-nonnull.h: ... this.
664 * gnulib/import/assure.h: Update.
665 * gnulib/import/at-func.c: Update.
666 * gnulib/import/basename-lgpl.c: Update.
667 * gnulib/import/extra/snippet/c++defs.h: Rename to...
668 * gnulib/import/c++defs.h: ... this.
669 * gnulib/import/canonicalize-lgpl.c: Update.
670 * gnulib/import/cdefs.h: Update.
671 * gnulib/import/chdir-long.c: Update.
672 * gnulib/import/chdir-long.h: Update.
673 * gnulib/import/cloexec.c: Update.
674 * gnulib/import/cloexec.h: Update.
675 * gnulib/import/close.c: Update.
676 * gnulib/import/closedir.c: Update.
677 * gnulib/import/config.charset: Update.
678 * gnulib/import/dirent-private.h: Update.
679 * gnulib/import/dirent.in.h: Update.
680 * gnulib/import/dirfd.c: Update.
681 * gnulib/import/dirname-lgpl.c: Update.
682 * gnulib/import/dirname.h: Update.
683 * gnulib/import/dosname.h: Update.
684 * gnulib/import/dup-safer-flag.c: Update.
685 * gnulib/import/dup-safer.c: Update.
686 * gnulib/import/dup.c: Update.
687 * gnulib/import/dup2.c: Update.
688 * gnulib/import/errno.in.h: Update.
689 * gnulib/import/error.c: Update.
690 * gnulib/import/error.h: Update.
691 * gnulib/import/exitfail.c: Update.
692 * gnulib/import/exitfail.h: Update.
693 * gnulib/import/extra/update-copyright: Update.
694 * gnulib/import/fchdir.c: Update.
695 * gnulib/import/fcntl.c: Update.
696 * gnulib/import/fcntl.in.h: Update.
697 * gnulib/import/fd-hook.c: Update.
698 * gnulib/import/fd-hook.h: Update.
699 * gnulib/import/fd-safer-flag.c: Update.
700 * gnulib/import/fd-safer.c: Update.
701 * gnulib/import/fdopendir.c: Update.
702 * gnulib/import/filename.h: Update.
703 * gnulib/import/filenamecat-lgpl.c: Update.
704 * gnulib/import/filenamecat.h: Update.
705 * gnulib/import/flexmember.h: Update.
706 * gnulib/import/float+.h: Update.
707 * gnulib/import/float.c: Update.
708 * gnulib/import/float.in.h: Update.
709 * gnulib/import/fnmatch.c: Update.
710 * gnulib/import/fnmatch.in.h: Update.
711 * gnulib/import/fnmatch_loop.c: Update.
712 * gnulib/import/fpucw.h: Update.
713 * gnulib/import/frexp.c: Update.
714 * gnulib/import/frexpl.c: Update.
715 * gnulib/import/fstat.c: Update.
716 * gnulib/import/fstatat.c: Update.
717 * gnulib/import/getcwd-lgpl.c: Update.
718 * gnulib/import/getcwd.c: Update.
719 * gnulib/import/getdtablesize.c: Update.
720 * gnulib/import/getlogin_r.c: Update.
721 * gnulib/import/getprogname.c: Update.
722 * gnulib/import/getprogname.h: Update.
723 * gnulib/import/gettext.h: Update.
724 * gnulib/import/gettimeofday.c: Update.
725 * gnulib/import/glob-libc.h: Update.
726 * gnulib/import/glob.c: Update.
727 * gnulib/import/glob.in.h: Update.
728 * gnulib/import/glob_internal.h: Update.
729 * gnulib/import/glob_pattern_p.c: Update.
730 * gnulib/import/globfree.c: Update.
731 * gnulib/import/hard-locale.c: Update.
732 * gnulib/import/hard-locale.h: Update.
733 * gnulib/import/intprops.h: Update.
734 * gnulib/import/inttypes.in.h: Update.
735 * gnulib/import/isnan.c: Update.
736 * gnulib/import/isnand-nolibm.h: Update.
737 * gnulib/import/isnand.c: Update.
738 * gnulib/import/isnanl-nolibm.h: Update.
739 * gnulib/import/isnanl.c: Update.
740 * gnulib/import/itold.c: Update.
741 * gnulib/import/libc-config.h: Update.
742 * gnulib/import/limits.in.h: Update.
743 * gnulib/import/localcharset.c: Update.
744 * gnulib/import/localcharset.h: Update.
745 * gnulib/import/localtime-buffer.c: Update.
746 * gnulib/import/localtime-buffer.h: Update.
747 * gnulib/import/lstat.c: Update.
748 * gnulib/import/m4/00gnulib.m4: Update.
749 * gnulib/import/m4/__inline.m4: Update.
750 * gnulib/import/m4/absolute-header.m4: Update.
751 * gnulib/import/m4/alloca.m4: Update.
752 * gnulib/import/m4/builtin-expect.m4: Update.
753 * gnulib/import/m4/canonicalize.m4: Update.
754 * gnulib/import/m4/chdir-long.m4: Update.
755 * gnulib/import/m4/close.m4: Update.
756 * gnulib/import/m4/closedir.m4: Update.
757 * gnulib/import/m4/configmake.m4: Update.
758 * gnulib/import/m4/d-ino.m4: Update.
759 * gnulib/import/m4/d-type.m4: Update.
760 * gnulib/import/m4/dirent_h.m4: Update.
761 * gnulib/import/m4/dirfd.m4: Update.
762 * gnulib/import/m4/dirname.m4: Update.
763 * gnulib/import/m4/double-slash-root.m4: Update.
764 * gnulib/import/m4/dup.m4: Update.
765 * gnulib/import/m4/dup2.m4: Update.
766 * gnulib/import/m4/eealloc.m4: Update.
767 * gnulib/import/m4/environ.m4: Update.
768 * gnulib/import/m4/errno_h.m4: Update.
769 * gnulib/import/m4/error.m4: Update.
770 * gnulib/import/m4/exponentd.m4: Update.
771 * gnulib/import/m4/exponentl.m4: Update.
772 * gnulib/import/m4/extensions.m4: Update.
773 * gnulib/import/m4/extern-inline.m4: Update.
774 * gnulib/import/m4/fchdir.m4: Update.
775 * gnulib/import/m4/fcntl-o.m4: Update.
776 * gnulib/import/m4/fcntl.m4: Update.
777 * gnulib/import/m4/fcntl_h.m4: Update.
778 * gnulib/import/m4/fdopendir.m4: Update.
779 * gnulib/import/m4/filenamecat.m4: Update.
780 * gnulib/import/m4/flexmember.m4: Update.
781 * gnulib/import/m4/float_h.m4: Update.
782 * gnulib/import/m4/fnmatch.m4: Update.
783 * gnulib/import/m4/fnmatch_h.m4: Update.
784 * gnulib/import/m4/fpieee.m4: Update.
785 * gnulib/import/m4/frexp.m4: Update.
786 * gnulib/import/m4/frexpl.m4: Update.
787 * gnulib/import/m4/fstat.m4: Update.
788 * gnulib/import/m4/fstatat.m4: Update.
789 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
790 * gnulib/import/m4/getcwd-path-max.m4: Update.
791 * gnulib/import/m4/getcwd.m4: Update.
792 * gnulib/import/m4/getdtablesize.m4: Update.
793 * gnulib/import/m4/getlogin.m4: Update.
794 * gnulib/import/m4/getlogin_r.m4: Update.
795 * gnulib/import/m4/getpagesize.m4: Update.
796 * gnulib/import/m4/getprogname.m4: Update.
797 * gnulib/import/m4/gettimeofday.m4: Update.
798 * gnulib/import/m4/glibc21.m4: Update.
799 * gnulib/import/m4/glob.m4: Update.
800 * gnulib/import/m4/glob_h.m4: Update.
801 * gnulib/import/m4/gnulib-cache.m4: Update.
802 * gnulib/import/m4/gnulib-common.m4: Update.
803 * gnulib/import/m4/gnulib-comp.m4: Update.
804 * gnulib/import/m4/gnulib-tool.m4: Update.
805 * gnulib/import/m4/hard-locale.m4: Update.
806 * gnulib/import/m4/include_next.m4: Update.
807 * gnulib/import/m4/inttypes-pri.m4: Update.
808 * gnulib/import/m4/inttypes.m4: Update.
809 * gnulib/import/m4/isnand.m4: Update.
810 * gnulib/import/m4/isnanl.m4: Update.
811 * gnulib/import/m4/largefile.m4: Update.
812 * gnulib/import/m4/limits-h.m4: Update.
813 * gnulib/import/m4/localcharset.m4: Update.
814 * gnulib/import/m4/locale-fr.m4: Update.
815 * gnulib/import/m4/locale-ja.m4: Update.
816 * gnulib/import/m4/locale-zh.m4: Update.
817 * gnulib/import/m4/localtime-buffer.m4: Update.
818 * gnulib/import/m4/longlong.m4: Update.
819 * gnulib/import/m4/lstat.m4: Update.
820 * gnulib/import/m4/malloc.m4: Update.
821 * gnulib/import/m4/malloca.m4: Update.
822 * gnulib/import/m4/math_h.m4: Update.
823 * gnulib/import/m4/mbrtowc.m4: Update.
824 * gnulib/import/m4/mbsinit.m4: Update.
825 * gnulib/import/m4/mbsrtowcs.m4: Update.
826 * gnulib/import/m4/mbstate_t.m4: Update.
827 * gnulib/import/m4/memchr.m4: Update.
828 * gnulib/import/m4/memmem.m4: Update.
829 * gnulib/import/m4/mempcpy.m4: Update.
830 * gnulib/import/m4/memrchr.m4: Update.
831 * gnulib/import/m4/mkdir.m4: Update.
832 * gnulib/import/m4/mkstemp.m4: Update.
833 * gnulib/import/m4/mmap-anon.m4: Update.
834 * gnulib/import/m4/mode_t.m4: Update.
835 * gnulib/import/m4/msvc-inval.m4: Update.
836 * gnulib/import/m4/msvc-nothrow.m4: Update.
837 * gnulib/import/m4/multiarch.m4: Update.
838 * gnulib/import/m4/nocrash.m4: Update.
839 * gnulib/import/m4/off_t.m4: Update.
840 * gnulib/import/m4/onceonly.m4: Update.
841 * gnulib/import/m4/open-cloexec.m4: Update.
842 * gnulib/import/m4/open.m4: Update.
843 * gnulib/import/m4/openat.m4: Update.
844 * gnulib/import/m4/opendir.m4: Update.
845 * gnulib/import/m4/pathmax.m4: Update.
846 * gnulib/import/m4/rawmemchr.m4: Update.
847 * gnulib/import/m4/readdir.m4: Update.
848 * gnulib/import/m4/readlink.m4: Update.
849 * gnulib/import/m4/realloc.m4: Update.
850 * gnulib/import/m4/rename.m4: Update.
851 * gnulib/import/m4/rewinddir.m4: Update.
852 * gnulib/import/m4/rmdir.m4: Update.
853 * gnulib/import/m4/save-cwd.m4: Update.
854 * gnulib/import/m4/secure_getenv.m4: Update.
855 * gnulib/import/m4/setenv.m4: Update.
856 * gnulib/import/m4/signal_h.m4: Update.
857 * gnulib/import/m4/ssize_t.m4: Update.
858 * gnulib/import/m4/stat-time.m4: Update.
859 * gnulib/import/m4/stat.m4: Update.
860 * gnulib/import/m4/std-gnu11.m4: Update.
861 * gnulib/import/m4/stdbool.m4: Update.
862 * gnulib/import/m4/stddef_h.m4: Update.
863 * gnulib/import/m4/stdint.m4: Update.
864 * gnulib/import/m4/stdio_h.m4: Update.
865 * gnulib/import/m4/stdlib_h.m4: Update.
866 * gnulib/import/m4/strchrnul.m4: Update.
867 * gnulib/import/m4/strdup.m4: Update.
868 * gnulib/import/m4/strerror.m4: Update.
869 * gnulib/import/m4/string_h.m4: Update.
870 * gnulib/import/m4/strstr.m4: Update.
871 * gnulib/import/m4/strtok_r.m4: Update.
872 * gnulib/import/m4/sys_socket_h.m4: Update.
873 * gnulib/import/m4/sys_stat_h.m4: Update.
874 * gnulib/import/m4/sys_time_h.m4: Update.
875 * gnulib/import/m4/sys_types_h.m4: Update.
876 * gnulib/import/m4/tempname.m4: Update.
877 * gnulib/import/m4/time_h.m4: Update.
878 * gnulib/import/m4/unistd-safer.m4: Update.
879 * gnulib/import/m4/unistd_h.m4: Update.
880 * gnulib/import/m4/warn-on-use.m4: Update.
881 * gnulib/import/m4/wchar_h.m4: Update.
882 * gnulib/import/m4/wchar_t.m4: Update.
883 * gnulib/import/m4/wctype_h.m4: Update.
884 * gnulib/import/m4/wint_t.m4: Update.
885 * gnulib/import/malloc.c: Update.
886 * gnulib/import/malloc/scratch_buffer.h: Update.
887 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
888 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
889 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
890 * gnulib/import/malloca.c: Update.
891 * gnulib/import/malloca.h: Update.
892 * gnulib/import/malloca.valgrind: Update.
893 * gnulib/import/math.in.h: Update.
894 * gnulib/import/mbrtowc.c: Update.
895 * gnulib/import/mbsinit.c: Update.
896 * gnulib/import/mbsrtowcs-impl.h: Update.
897 * gnulib/import/mbsrtowcs-state.c: Update.
898 * gnulib/import/mbsrtowcs.c: Update.
899 * gnulib/import/memchr.c: Update.
900 * gnulib/import/memmem.c: Update.
901 * gnulib/import/mempcpy.c: Update.
902 * gnulib/import/memrchr.c: Update.
903 * gnulib/import/mkdir.c: Update.
904 * gnulib/import/mkstemp.c: Update.
905 * gnulib/import/msvc-inval.c: Update.
906 * gnulib/import/msvc-inval.h: Update.
907 * gnulib/import/msvc-nothrow.c: Update.
908 * gnulib/import/msvc-nothrow.h: Update.
909 * gnulib/import/open.c: Update.
910 * gnulib/import/openat-die.c: Update.
911 * gnulib/import/openat-priv.h: Update.
912 * gnulib/import/openat-proc.c: Update.
913 * gnulib/import/openat.c: Update.
914 * gnulib/import/openat.h: Update.
915 * gnulib/import/opendir.c: Update.
916 * gnulib/import/pathmax.h: Update.
917 * gnulib/import/pipe-safer.c: Update.
918 * gnulib/import/rawmemchr.c: Update.
919 * gnulib/import/readdir.c: Update.
920 * gnulib/import/readlink.c: Update.
921 * gnulib/import/realloc.c: Update.
922 * gnulib/import/ref-add.sin: Update.
923 * gnulib/import/ref-del.sin: Update.
924 * gnulib/import/rename.c: Update.
925 * gnulib/import/rewinddir.c: Update.
926 * gnulib/import/rmdir.c: Update.
927 * gnulib/import/same-inode.h: Update.
928 * gnulib/import/save-cwd.c: Update.
929 * gnulib/import/save-cwd.h: Update.
930 * gnulib/import/scratch_buffer.h: Update.
931 * gnulib/import/secure_getenv.c: Update.
932 * gnulib/import/setenv.c: Update.
933 * gnulib/import/signal.in.h: Update.
934 * gnulib/import/stat-time.c: Update.
935 * gnulib/import/stat-time.h: Update.
936 * gnulib/import/stat-w32.c: Update.
937 * gnulib/import/stat-w32.h: Update.
938 * gnulib/import/stat.c: Update.
939 * gnulib/import/stdbool.in.h: Update.
940 * gnulib/import/stddef.in.h: Update.
941 * gnulib/import/stdint.in.h: Update.
942 * gnulib/import/stdio.in.h: Update.
943 * gnulib/import/stdlib.in.h: Update.
944 * gnulib/import/str-two-way.h: Update.
945 * gnulib/import/strchrnul.c: Update.
946 * gnulib/import/strdup.c: Update.
947 * gnulib/import/streq.h: Update.
948 * gnulib/import/strerror-override.c: Update.
949 * gnulib/import/strerror-override.h: Update.
950 * gnulib/import/strerror.c: Update.
951 * gnulib/import/string.in.h: Update.
952 * gnulib/import/stripslash.c: Update.
953 * gnulib/import/strnlen1.c: Update.
954 * gnulib/import/strnlen1.h: Update.
955 * gnulib/import/strstr.c: Update.
956 * gnulib/import/strtok_r.c: Update.
957 * gnulib/import/sys_stat.in.h: Update.
958 * gnulib/import/sys_time.in.h: Update.
959 * gnulib/import/sys_types.in.h: Update.
960 * gnulib/import/tempname.c: Update.
961 * gnulib/import/tempname.h: Update.
962 * gnulib/import/time.in.h: Update.
963 * gnulib/import/unistd--.h: Update.
964 * gnulib/import/unistd-safer.h: Update.
965 * gnulib/import/unistd.in.h: Update.
966 * gnulib/import/unsetenv.c: Update.
967 * gnulib/import/verify.h: Update.
968 * gnulib/import/extra/snippet/warn-on-use.h: Update.
969 * gnulib/import/wchar.in.h: Update.
970 * gnulib/import/wctype.in.h: Update.
971 * gnulib/import/xalloc-oversized.h: Update.
972 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
973 "53e2c179f26a890fa6685af4b6c1397ee370433b".
974
975 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
976
977 * record-btrace.c (get_thread_current_frame): Remove
978 old_inferior_ptid.
979
980 2018-09-10 Jerome Guitton <guitton@adacore.com>
981
982 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
983 with check_tag to 1 if and only if the type is tagged and the
984 component being searched cannot been found in the current
985 view. Otherwise, always call ada_to_fixed_type with
986 check_tag to 0.
987
988 2018-09-10 Xavier Roirand <roirand@adacore.com>
989
990 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
991 declaration.
992 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
993 * ada-varobj.c (ada_varobj_get_number_of_children,
994 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
995
996 2018-09-10 Xavier Roirand <roirand@adacore.com>
997
998 * ada-valprint.c (ada_value_print): Use type instead of
999 enclosing type.
1000
1001 2018-09-10 Xavier Roirand <roirand@adacore.com>
1002
1003 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1004 an array of access to unconstrained array.
1005
1006 2018-09-10 Xavier Roirand <roirand@adacore.com>
1007
1008 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1009 (ada_check_typedef): Use it.
1010
1011 2018-09-10 Xavier Roirand <roirand@adacore.com>
1012
1013 * ada-varobj.c (ada_varobj_describe_struct_child)
1014 (ada_varobj_describe_child): Handle union case like struct one.
1015
1016 2018-09-10 Tom Tromey <tom@tromey.com>
1017
1018 PR python/18380:
1019 * python/python.c (_initialize_python): Make example in "python"
1020 help work in Python 3.
1021
1022 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1023
1024 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1025 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1026 $(EXEEXT) to the script, as it is not a program.
1027
1028 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1029
1030 * python/py-prettyprint.c (pretty_print_one_value): Return
1031 gdbpy_ref<>.
1032 (print_string_repr): Adjust.
1033 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1034 * python/python-internal.h (apply_varobj_pretty_printer): Return
1035 gdbpy_ref<>.
1036 * varobj.c (varobj_value_get_print_value): Adjust.
1037
1038 2018-09-08 Tom Tromey <tom@tromey.com>
1039
1040 PR python/16047:
1041 * python/py-prettyprint.c (pretty_print_one_value): Check for
1042 to_string method.
1043
1044 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1045
1046 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1047 replace_operator_with_call.
1048
1049 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1050
1051 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1052
1053 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1054
1055 * ada-typeprint.c (print_range): Print the bounds using TYPE
1056 rather than its TYPE_TARGET_TYPE.
1057
1058 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1059
1060 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1061 call to ada_to_fixed_value_create.
1062
1063 2018-09-08 Jerome Guitton <guitton@adacore.com>
1064
1065 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1066
1067 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1068
1069 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1070 by calls to error.
1071
1072 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1073
1074 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1075 Move update of loop variable "fi".
1076
1077 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1078
1079 * ada-lang.c (value_assign_to_component): In the case of
1080 big-endian targets, extract the bits of the given VAL
1081 using an src_offset of zero if container is not a scalar.
1082
1083 2018-09-06 Simon Ser <contact@emersion.fr>
1084
1085 PR gdb/23105
1086 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1087 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1088 * fbsd-tdep.c (fbsd_make_note_desc): New.
1089 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1090 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1091 * target.h (enum target_object) Add FreeBSD-specific
1092 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1093
1094 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1095
1096 * compile/compile-c.h (generate_c_for_variable_locations):
1097 Change reference to pointer.
1098 * compile/compile-c-support.c (compile_program) <compute>:
1099 Likewise.
1100 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1101 (generate_c_for_for_one_variable): Likewise
1102 (generate_c_for_variable_locations): Likewise
1103 * compile/compile-c-types.c (compile_c_instance::convert_type):
1104 Likewise
1105 * compile/compile-cplus-symbols.c (convert_one_symbol):
1106 std::move the scope passed to enter_scope.
1107 * compile/compile-cplus-types.c
1108 (compile_cplus_instance::enter_scope): Make parameter
1109 rvalue-reference.
1110 (compile_cplus_instance::new_scope): Change reference to
1111 pointer.
1112 (compile_cplus_instance::convert_type): Likewise
1113 (compile_cplus_convert_typedef): std::move the scope passed to
1114 enter_scope.
1115 (compile_cplus_convert_struct_or_union): Likewise.
1116 (compile_cplus_convert_enum): Likewise.
1117 (compile_cplus_convert_namespace): Likewise.
1118 * compile/compile-cplus.h (compile_cplus_instance)
1119 <enter_scope>: Make parameter rvalue-reference.
1120 * compile/compile-internal.h (compile_instance)
1121 <get_cached_type>: Likewise
1122 * compile/compile-loc2c.c (push): Likewise
1123 (pushf): Likewise
1124 (unary): Likewise
1125 (binary): Likewise
1126 (print_label): Likewise
1127 (pushf_register_address): Likewise
1128 (pushf_register): Likewise
1129 (do_compile_dwarf_expr_to_c): Likewise
1130 (compile_dwarf_expr_to_c): Likewise
1131 (compile_dwarf_bounds_to_c): Likewise
1132 * compile/compile.c (compile_instance::get_cached_type):
1133 Likewise
1134 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1135 (compile_dwarf_bounds_to_c): Likewise
1136 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1137 (dwarf2_compile_property_to_c): Likewise
1138 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1139 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1140 Likewise
1141
1142 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1143
1144 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1145 * tui/tui-data.c (init_content_element): Don't initialize it.
1146
1147 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1148
1149 * tui/tui-data.h (struct tui_win_info)
1150 <detail::opaque>: Remove.
1151 * tui/tui-data.c (init_win_info): Remove assignment.
1152
1153 2018-09-05 Tom Tromey <tom@tromey.com>
1154
1155 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1156 -Wformat-nonliteral.
1157 * target-float.c (host_float_ops<T>::to_string)
1158 (host_float_ops<T>::from_string): Use
1159 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1160 * configure: Rebuild.
1161
1162 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1163
1164 * printcmd.c (printf_c_string): Use
1165 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1166 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1167
1168 2018-09-05 Tom Tromey <tom@tromey.com>
1169
1170 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1171
1172 2018-09-05 Tom de Vries <tdevries@suse.de>
1173
1174 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1175 with resolve_abstract_p == true.
1176 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1177 defaulting to false. Propagate resolve_abstract_p to
1178 dwarf2_fetch_die_loc_sect_off.
1179 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1180 parameter, defaulting to false.
1181 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1182 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1183 parameter.
1184 * dwarf2read.h (struct die_info): Forward-declare.
1185 (die_info_ptr): New typedef.
1186 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1187
1188 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1189
1190 GDB 8.2 released.
1191
1192 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1193 Pedro Alves <palves@redhat.com>
1194
1195 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1196 "aclocal-m4-deps.mk". Include file here.
1197 $(srcdir)/aclocal.m4: Add "configure.ac".
1198 * gnulib/aclocal-m4-deps.mk: New file.
1199 * gnulib/update-gnulib.sh: Automatically update
1200 "aclocal-m4-deps.mk".
1201
1202 2018-09-04 Tom Tromey <tom@tromey.com>
1203
1204 * configure: Rebuild.
1205 * configure.ac: Remove multi-ice code.
1206
1207 2018-09-04 Tom Tromey <tom@tromey.com>
1208
1209 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1210 (ada-exp.o): Update.
1211
1212 2018-09-04 Tom Tromey <tom@tromey.com>
1213
1214 * Makefile.in (printcmd.o, target-float.o): Remove.
1215 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1216
1217 2018-09-04 Tom Tromey <tom@tromey.com>
1218
1219 * gnulib/Makefile.in: Remove obsolete comment.
1220 * Makefile.in: Remove obsolete comment.
1221
1222 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1223
1224 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1225 line with '+'.
1226
1227 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1228
1229 * riscv-tdep.c: Add 'prologue-value.h' include.
1230 (struct riscv_unwind_cache): New struct.
1231 (riscv_debug_unwinder): New global.
1232 (riscv_scan_prologue): Update arguments, capture register details
1233 from prologue scan.
1234 (riscv_skip_prologue): Reformat arguments line, move end of
1235 prologue calculation into riscv_scan_prologue.
1236 (riscv_frame_cache): Update return type, create
1237 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1238 details.
1239 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1240 (riscv_frame_prev_register): Use the trad_frame within the
1241 riscv_unwind_cache.
1242 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1243 flag.
1244
1245 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1246
1247 * trad-frame.h (trad_frame_set_realreg): Declare.
1248 (trad_frame_set_addr): Declare.
1249 * trad-frame.c (trad_frame_set_realreg): Define new function.
1250 (trad_frame_set_addr): Define new function.
1251 (trad_frame_set_reg_realreg): Use new function.
1252 (trad_frame_set_reg_addr): Use new function.
1253
1254 2018-09-01 Keith Seitz <keiths@redhat.com>
1255
1256 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1257 pulongest instead of "%lld".
1258 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1259 ATTRIBUTE_UNUSED.
1260
1261 2018-08-31 Tom Tromey <tom@tromey.com>
1262
1263 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1264 variant part type.
1265
1266 2018-08-31 Pedro Alves <palves@redhat.com>
1267
1268 * gdbarch.h: Regenerate.
1269
1270 2018-08-31 Pedro Alves <palves@redhat.com>
1271
1272 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1273 * target.h (Hardware watchpoint interfaces): Describe
1274 continuable/steppable/non-steppable watchpoints.
1275 * gdbarch.h, gdbarch.c: Regenerate.
1276
1277 2018-08-31 Pedro Alves <palves@redhat.com>
1278
1279 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1280 Delete.
1281 * s390-linux-nat.c
1282 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1283 * target.h (target_ops::have_continuable_watchpoint): Delete.
1284 (target_have_continuable_watchpoint): Delete.
1285 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1286 * target-delegates.c: Regenerate.
1287
1288 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1289
1290 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1291 the files present in "gnulib/import/m4/".
1292
1293 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1294
1295 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1296 c.sw, c.swsp, and c.sdsp.
1297
1298 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1301 (riscv_read_misa_reg): Don't cache value read into inferior data.
1302 (riscv_new_inferior_data): Delete.
1303 (riscv_inferior_data_cleanup): Delete.
1304 (riscv_inferior_data): Delete.
1305 (riscv_invalidate_inferior_data): Delete.
1306 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1307
1308 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1309
1310 * compile/compile-cplus-types.c
1311 (compile_cplus_instance::leave_scope): Take the address of scope
1312 object.
1313 (compile_cplus_instance::convert_qualified_base): Compare quals
1314 to 0.
1315
1316 2018-08-30 Keith Seitz <keiths@redhat.com>
1317
1318 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1319 Use "%s" and host_address_to_string instead of "%p" in printf.
1320
1321 2018-08-29 Keith Seitz <keiths@redhat.com>
1322
1323 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1324 and compile-cplus-types.c.
1325 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1326 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1327 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1328 Declare.
1329 * compile/compile-c-support.c: Include compile-cplus.h.
1330 (load_libcompile): Templatize.
1331 (get_compile_context): "New" function.
1332 (c_get_compile_context): Use get_compile_context.
1333 (cplus_get_compile_context): New function.
1334 (cplus_push_user_expression, cplus_pop_user_expression)
1335 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1336 (cplus_compute_program): Define new structs/functions.
1337 * compile/compile-cplus-symmbols.c: New file.
1338 * compile/compile-cplus-types.c: New file.
1339 * compile/compile-cplus.h: New file.
1340 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1341 Declare.
1342 * compile/compile-object-load.c (get_out_value_type): Use
1343 strncmp_iw when comparing symbol names.
1344 (compile_object_load): Add mst_bss and mst_data.
1345 * compile/compile.c (_initialize_compile): Remove
1346 -Wno-implicit-function-declaration from `compile_args'.
1347 * compile/gcc-cp-plugin.h: New file.
1348 * NEWS: Mention C++ compile support and new debug options.
1349
1350 2018-08-29 Keith Seitz <keiths@redhat.com>
1351
1352 * linespec.c (collect_info::add_symbol): Make virtual.
1353 (struct symbol_searcher_collect_info): New struct.
1354 (symbol_searcher::find_all_symbols): New method.
1355 * symtab.h (class symbol_searcher): New class.
1356
1357 2018-08-29 Keith Seitz <keiths@redhat.com>
1358
1359 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1360 Change to vector of block_symbol. Update all users.
1361 (struct collect_info) <symbols>: Likewise.
1362 (collect_info::add_symbol): Take block_symbol as argument.
1363 Update all callers.
1364 (decode_compound_collector) <m_symbols>: Change type to vector
1365 of block_symbol. Update all users.
1366 (decode_compound_collector::operator ()): Change parameter type
1367 to block_symbol.
1368 (find_method, find_function_symbols, find_linespec_symbols)
1369 (find_label_symbols_in_block, find_label_symbols): Change symbol
1370 vectors to block_symbol vectors.
1371 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1372 block_symbol.
1373
1374 2018-08-29 Keith Seitz <keiths@redhat.com>
1375
1376 * linespec.c (symbolp): Remove typedef and VEC definitions.
1377 (bound_minimal_symbol_d): Likewise.
1378
1379 2018-08-29 Keith Seitz <keiths@redhat.com>
1380
1381 * linespec.c (decode_compound_collector::decode_compound_collector):
1382 Remove initialization for `m_symtabs'.
1383 (decode_compound_collector::release_symbols): Change return type
1384 to std::vector. Update all callers.
1385 (class decode_compound_collector) <m_symbols>: Change type to
1386 std::vector.
1387 (lookup_prefix_sym): Change return type to std::vector. Update all
1388 callers.
1389 (compare_symbols): Remove.
1390 (std_compare_symbols): Rename to `compare_symbols'.
1391 (find_method): Change `sym_classes' parameter to std::vector.
1392 Update all callers. Use std::sort to sort sym_classes.
1393 (find_linespec_symbols): Remove cleanup.
1394
1395 2018-08-29 Keith Seitz <keiths@redhat.com>
1396
1397 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1398 std::vector. Update all users.
1399 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1400 (struct collect_info) <minimal_symbols>: Likewise.
1401 (compare_msymbols): Return bool. Change parameters to const
1402 bound_minimal_symbol references.
1403 (find_method, find_function_symbols, find_linespec_symbols): Change
1404 `minsyms' parameter to std::vector. Update all callers.
1405
1406 2018-08-29 Keith Seitz <keiths@redhat.com>
1407
1408 * linespec.c (struct linespec) <label_symbols>: Change type to
1409 std::vector. Update all users.
1410 (find_label_symbols_in_block): Change `result' parameter to
1411 std::vector. Update all callers.
1412 (find_label_symbols): Return std::vector. Update all callers.
1413
1414 2018-08-29 Keith Seitz <keiths@redhat.com>
1415
1416 * linespec.c (struct linespec) <function_symbols>: Change type to
1417 std::vector. Update all users.
1418 (struct collect_info) <function_symbols>: Likewise.
1419 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1420 (std_compare_symbols): New function.
1421 (find_method, find_function_symbols, find_linespec_symbols)
1422 (find_label_symbols_in_block): Change `symbols' parameter to
1423 std::vector. Update all callers.
1424 (find_label_symbols): Likewise for `function_symbols' and
1425 `label_funcs_ret'.
1426
1427 2018-08-29 Keith Seitz <keiths@redhat.com>
1428
1429 * linespec.c (symtab_vector_up): Define.
1430 (struct linespec) <file_symtabs>: Change type to std::vector *.
1431 Update all uses.
1432 (struct collect_info) <file_symtabs>: Likewise.
1433 (collect_symtabs_from_filename): Return symtab_vector_up.
1434 Update all callers.
1435 (decode_objc): Remove cleanup.
1436 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1437 (symtab_collector::release_symtabs): Return symtab_vector_up.
1438 Update all callers.
1439 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1440 Update all users.
1441 (collect_symtabs_from_filename, symtabs_from_filename): Return
1442 symtab_vector_up. Update all callers.
1443
1444 2018-08-29 Tom Tromey <tom@tromey.com>
1445
1446 * csky-tdep.c (csky_analyze_prologue): Use
1447 core_addr_to_string_nz.
1448
1449 2018-08-29 Tom Tromey <tom@tromey.com>
1450
1451 * windows-nat.c (struct xlate_exception) <them>: Change type to
1452 DWORD.
1453 (xlate): Fix formatting. Remove last entry.
1454 (struct xlate_exception, xlate): Comment out.
1455 (windows_nat_target::resume): Use ranged for.
1456
1457 2018-08-29 Jim Wilson <jimw@sifive.com>
1458
1459 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1460 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1461 of NT_PRFPREG.
1462 (riscv_linux_nat_target::store_registers): Likewise.
1463
1464 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1465
1466 PR gdb/23555
1467 PR gdb/23558
1468 * gnulib/aclocal.m4: Regenerate.
1469 * gnulib/config.in: Regenerate.
1470 * gnulib/configure: Regenerate.
1471 * gnulib/import/Makefile.am: Update.
1472 * gnulib/import/Makefile.in: Update.
1473 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1474 * gnulib/import/_Noreturn.h: ... this.
1475 * gnulib/import/alloca.in.h: Update.
1476 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1477 * gnulib/import/arg-nonnull.h: ... this.
1478 * gnulib/import/assure.h: Update.
1479 * gnulib/import/at-func.c: Update.
1480 * gnulib/import/basename-lgpl.c: Update.
1481 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1482 * gnulib/import/c++defs.h: ... this.
1483 * gnulib/import/canonicalize-lgpl.c: Update.
1484 * gnulib/import/cdefs.h: Update.
1485 * gnulib/import/chdir-long.c: Update.
1486 * gnulib/import/chdir-long.h: Update.
1487 * gnulib/import/cloexec.c: Update.
1488 * gnulib/import/cloexec.h: Update.
1489 * gnulib/import/close.c: Update.
1490 * gnulib/import/closedir.c: Update.
1491 * gnulib/import/config.charset: Update.
1492 * gnulib/import/dirent-private.h: Update.
1493 * gnulib/import/dirent.in.h: Update.
1494 * gnulib/import/dirfd.c: Update.
1495 * gnulib/import/dirname-lgpl.c: Update.
1496 * gnulib/import/dirname.h: Update.
1497 * gnulib/import/dosname.h: Update.
1498 * gnulib/import/dup-safer-flag.c: Update.
1499 * gnulib/import/dup-safer.c: Update.
1500 * gnulib/import/dup.c: Update.
1501 * gnulib/import/dup2.c: Update.
1502 * gnulib/import/errno.in.h: Update.
1503 * gnulib/import/error.c: Update.
1504 * gnulib/import/error.h: Update.
1505 * gnulib/import/exitfail.c: Update.
1506 * gnulib/import/exitfail.h: Update.
1507 * gnulib/import/extra/update-copyright: Update.
1508 * gnulib/import/fchdir.c: Update.
1509 * gnulib/import/fcntl.c: Update.
1510 * gnulib/import/fcntl.in.h: Update.
1511 * gnulib/import/fd-hook.c: Update.
1512 * gnulib/import/fd-hook.h: Update.
1513 * gnulib/import/fd-safer-flag.c: Update.
1514 * gnulib/import/fd-safer.c: Update.
1515 * gnulib/import/fdopendir.c: Update.
1516 * gnulib/import/filename.h: Update.
1517 * gnulib/import/filenamecat-lgpl.c: Update.
1518 * gnulib/import/filenamecat.h: Update.
1519 * gnulib/import/flexmember.h: Update.
1520 * gnulib/import/float+.h: Update.
1521 * gnulib/import/float.c: Update.
1522 * gnulib/import/float.in.h: Update.
1523 * gnulib/import/fnmatch.c: Update.
1524 * gnulib/import/fnmatch.in.h: Update.
1525 * gnulib/import/fnmatch_loop.c: Update.
1526 * gnulib/import/fpucw.h: Update.
1527 * gnulib/import/frexp.c: Update.
1528 * gnulib/import/frexpl.c: Update.
1529 * gnulib/import/fstat.c: Update.
1530 * gnulib/import/fstatat.c: Update.
1531 * gnulib/import/getcwd-lgpl.c: Update.
1532 * gnulib/import/getcwd.c: Update.
1533 * gnulib/import/getdtablesize.c: Update.
1534 * gnulib/import/getlogin_r.c: Update.
1535 * gnulib/import/getprogname.c: Update.
1536 * gnulib/import/getprogname.h: Update.
1537 * gnulib/import/gettext.h: Update.
1538 * gnulib/import/gettimeofday.c: Update.
1539 * gnulib/import/glob-libc.h: Update.
1540 * gnulib/import/glob.c: Update.
1541 * gnulib/import/glob.in.h: Update.
1542 * gnulib/import/glob_internal.h: Update.
1543 * gnulib/import/glob_pattern_p.c: Update.
1544 * gnulib/import/globfree.c: Update.
1545 * gnulib/import/hard-locale.c: Update.
1546 * gnulib/import/hard-locale.h: Update.
1547 * gnulib/import/intprops.h: Update.
1548 * gnulib/import/inttypes.in.h: Update.
1549 * gnulib/import/isnan.c: Update.
1550 * gnulib/import/isnand-nolibm.h: Update.
1551 * gnulib/import/isnand.c: Update.
1552 * gnulib/import/isnanl-nolibm.h: Update.
1553 * gnulib/import/isnanl.c: Update.
1554 * gnulib/import/itold.c: Update.
1555 * gnulib/import/libc-config.h: Update.
1556 * gnulib/import/limits.in.h: Update.
1557 * gnulib/import/localcharset.c: Update.
1558 * gnulib/import/localcharset.h: Update.
1559 * gnulib/import/localtime-buffer.c: Update.
1560 * gnulib/import/localtime-buffer.h: Update.
1561 * gnulib/import/lstat.c: Update.
1562 * gnulib/import/m4/00gnulib.m4: Update.
1563 * gnulib/import/m4/__inline.m4: Update.
1564 * gnulib/import/m4/absolute-header.m4: Update.
1565 * gnulib/import/m4/alloca.m4: Update.
1566 * gnulib/import/m4/builtin-expect.m4: Update.
1567 * gnulib/import/m4/canonicalize.m4: Update.
1568 * gnulib/import/m4/chdir-long.m4: Update.
1569 * gnulib/import/m4/close.m4: Update.
1570 * gnulib/import/m4/closedir.m4: Update.
1571 * gnulib/import/m4/configmake.m4: Update.
1572 * gnulib/import/m4/d-ino.m4: Update.
1573 * gnulib/import/m4/d-type.m4: Update.
1574 * gnulib/import/m4/dirent_h.m4: Update.
1575 * gnulib/import/m4/dirfd.m4: Update.
1576 * gnulib/import/m4/dirname.m4: Update.
1577 * gnulib/import/m4/double-slash-root.m4: Update.
1578 * gnulib/import/m4/dup.m4: Update.
1579 * gnulib/import/m4/dup2.m4: Update.
1580 * gnulib/import/m4/eealloc.m4: Update.
1581 * gnulib/import/m4/environ.m4: Update.
1582 * gnulib/import/m4/errno_h.m4: Update.
1583 * gnulib/import/m4/error.m4: Update.
1584 * gnulib/import/m4/exponentd.m4: Update.
1585 * gnulib/import/m4/exponentl.m4: Update.
1586 * gnulib/import/m4/extensions.m4: Update.
1587 * gnulib/import/m4/extern-inline.m4: Update.
1588 * gnulib/import/m4/fchdir.m4: Update.
1589 * gnulib/import/m4/fcntl-o.m4: Update.
1590 * gnulib/import/m4/fcntl.m4: Update.
1591 * gnulib/import/m4/fcntl_h.m4: Update.
1592 * gnulib/import/m4/fdopendir.m4: Update.
1593 * gnulib/import/m4/filenamecat.m4: Update.
1594 * gnulib/import/m4/flexmember.m4: Update.
1595 * gnulib/import/m4/float_h.m4: Update.
1596 * gnulib/import/m4/fnmatch.m4: Update.
1597 * gnulib/import/m4/fnmatch_h.m4: Update.
1598 * gnulib/import/m4/fpieee.m4: Update.
1599 * gnulib/import/m4/frexp.m4: Update.
1600 * gnulib/import/m4/frexpl.m4: Update.
1601 * gnulib/import/m4/fstat.m4: Update.
1602 * gnulib/import/m4/fstatat.m4: Update.
1603 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1604 * gnulib/import/m4/getcwd-path-max.m4: Update.
1605 * gnulib/import/m4/getcwd.m4: Update.
1606 * gnulib/import/m4/getdtablesize.m4: Update.
1607 * gnulib/import/m4/getlogin.m4: Update.
1608 * gnulib/import/m4/getlogin_r.m4: Update.
1609 * gnulib/import/m4/getpagesize.m4: Update.
1610 * gnulib/import/m4/getprogname.m4: Update.
1611 * gnulib/import/m4/gettimeofday.m4: Update.
1612 * gnulib/import/m4/glibc21.m4: Update.
1613 * gnulib/import/m4/glob.m4: Update.
1614 * gnulib/import/m4/glob_h.m4: Update.
1615 * gnulib/import/m4/gnulib-cache.m4: Update.
1616 * gnulib/import/m4/gnulib-common.m4: Update.
1617 * gnulib/import/m4/gnulib-comp.m4: Update.
1618 * gnulib/import/m4/gnulib-tool.m4: Update.
1619 * gnulib/import/m4/hard-locale.m4: Update.
1620 * gnulib/import/m4/include_next.m4: Update.
1621 * gnulib/import/m4/inttypes-pri.m4: Update.
1622 * gnulib/import/m4/inttypes.m4: Update.
1623 * gnulib/import/m4/isnand.m4: Update.
1624 * gnulib/import/m4/isnanl.m4: Update.
1625 * gnulib/import/m4/largefile.m4: Update.
1626 * gnulib/import/m4/limits-h.m4: Update.
1627 * gnulib/import/m4/localcharset.m4: Update.
1628 * gnulib/import/m4/locale-fr.m4: Update.
1629 * gnulib/import/m4/locale-ja.m4: Update.
1630 * gnulib/import/m4/locale-zh.m4: Update.
1631 * gnulib/import/m4/localtime-buffer.m4: Update.
1632 * gnulib/import/m4/longlong.m4: Update.
1633 * gnulib/import/m4/lstat.m4: Update.
1634 * gnulib/import/m4/malloc.m4: Update.
1635 * gnulib/import/m4/malloca.m4: Update.
1636 * gnulib/import/m4/math_h.m4: Update.
1637 * gnulib/import/m4/mbrtowc.m4: Update.
1638 * gnulib/import/m4/mbsinit.m4: Update.
1639 * gnulib/import/m4/mbsrtowcs.m4: Update.
1640 * gnulib/import/m4/mbstate_t.m4: Update.
1641 * gnulib/import/m4/memchr.m4: Update.
1642 * gnulib/import/m4/memmem.m4: Update.
1643 * gnulib/import/m4/mempcpy.m4: Update.
1644 * gnulib/import/m4/memrchr.m4: Update.
1645 * gnulib/import/m4/mkdir.m4: Update.
1646 * gnulib/import/m4/mkstemp.m4: Update.
1647 * gnulib/import/m4/mmap-anon.m4: Update.
1648 * gnulib/import/m4/mode_t.m4: Update.
1649 * gnulib/import/m4/msvc-inval.m4: Update.
1650 * gnulib/import/m4/msvc-nothrow.m4: Update.
1651 * gnulib/import/m4/multiarch.m4: Update.
1652 * gnulib/import/m4/nocrash.m4: Update.
1653 * gnulib/import/m4/off_t.m4: Update.
1654 * gnulib/import/m4/onceonly.m4: Update.
1655 * gnulib/import/m4/open-cloexec.m4: Update.
1656 * gnulib/import/m4/open.m4: Update.
1657 * gnulib/import/m4/openat.m4: Update.
1658 * gnulib/import/m4/opendir.m4: Update.
1659 * gnulib/import/m4/pathmax.m4: Update.
1660 * gnulib/import/m4/rawmemchr.m4: Update.
1661 * gnulib/import/m4/readdir.m4: Update.
1662 * gnulib/import/m4/readlink.m4: Update.
1663 * gnulib/import/m4/realloc.m4: Update.
1664 * gnulib/import/m4/rename.m4: Update.
1665 * gnulib/import/m4/rewinddir.m4: Update.
1666 * gnulib/import/m4/rmdir.m4: Update.
1667 * gnulib/import/m4/save-cwd.m4: Update.
1668 * gnulib/import/m4/secure_getenv.m4: Update.
1669 * gnulib/import/m4/setenv.m4: Update.
1670 * gnulib/import/m4/signal_h.m4: Update.
1671 * gnulib/import/m4/ssize_t.m4: Update.
1672 * gnulib/import/m4/stat-time.m4: Update.
1673 * gnulib/import/m4/stat.m4: Update.
1674 * gnulib/import/m4/std-gnu11.m4: Update.
1675 * gnulib/import/m4/stdbool.m4: Update.
1676 * gnulib/import/m4/stddef_h.m4: Update.
1677 * gnulib/import/m4/stdint.m4: Update.
1678 * gnulib/import/m4/stdio_h.m4: Update.
1679 * gnulib/import/m4/stdlib_h.m4: Update.
1680 * gnulib/import/m4/strchrnul.m4: Update.
1681 * gnulib/import/m4/strdup.m4: Update.
1682 * gnulib/import/m4/strerror.m4: Update.
1683 * gnulib/import/m4/string_h.m4: Update.
1684 * gnulib/import/m4/strstr.m4: Update.
1685 * gnulib/import/m4/strtok_r.m4: Update.
1686 * gnulib/import/m4/sys_socket_h.m4: Update.
1687 * gnulib/import/m4/sys_stat_h.m4: Update.
1688 * gnulib/import/m4/sys_time_h.m4: Update.
1689 * gnulib/import/m4/sys_types_h.m4: Update.
1690 * gnulib/import/m4/tempname.m4: Update.
1691 * gnulib/import/m4/time_h.m4: Update.
1692 * gnulib/import/m4/unistd-safer.m4: Update.
1693 * gnulib/import/m4/unistd_h.m4: Update.
1694 * gnulib/import/m4/warn-on-use.m4: Update.
1695 * gnulib/import/m4/wchar_h.m4: Update.
1696 * gnulib/import/m4/wchar_t.m4: Update.
1697 * gnulib/import/m4/wctype_h.m4: Update.
1698 * gnulib/import/m4/wint_t.m4: Update.
1699 * gnulib/import/malloc.c: Update.
1700 * gnulib/import/malloc/scratch_buffer.h: Update.
1701 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1702 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1703 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1704 * gnulib/import/malloca.c: Update.
1705 * gnulib/import/malloca.h: Update.
1706 * gnulib/import/malloca.valgrind: Update.
1707 * gnulib/import/math.in.h: Update.
1708 * gnulib/import/mbrtowc.c: Update.
1709 * gnulib/import/mbsinit.c: Update.
1710 * gnulib/import/mbsrtowcs-impl.h: Update.
1711 * gnulib/import/mbsrtowcs-state.c: Update.
1712 * gnulib/import/mbsrtowcs.c: Update.
1713 * gnulib/import/memchr.c: Update.
1714 * gnulib/import/memmem.c: Update.
1715 * gnulib/import/mempcpy.c: Update.
1716 * gnulib/import/memrchr.c: Update.
1717 * gnulib/import/mkdir.c: Update.
1718 * gnulib/import/mkstemp.c: Update.
1719 * gnulib/import/msvc-inval.c: Update.
1720 * gnulib/import/msvc-inval.h: Update.
1721 * gnulib/import/msvc-nothrow.c: Update.
1722 * gnulib/import/msvc-nothrow.h: Update.
1723 * gnulib/import/open.c: Update.
1724 * gnulib/import/openat-die.c: Update.
1725 * gnulib/import/openat-priv.h: Update.
1726 * gnulib/import/openat-proc.c: Update.
1727 * gnulib/import/openat.c: Update.
1728 * gnulib/import/openat.h: Update.
1729 * gnulib/import/opendir.c: Update.
1730 * gnulib/import/pathmax.h: Update.
1731 * gnulib/import/pipe-safer.c: Update.
1732 * gnulib/import/rawmemchr.c: Update.
1733 * gnulib/import/readdir.c: Update.
1734 * gnulib/import/readlink.c: Update.
1735 * gnulib/import/realloc.c: Update.
1736 * gnulib/import/ref-add.sin: Update.
1737 * gnulib/import/ref-del.sin: Update.
1738 * gnulib/import/rename.c: Update.
1739 * gnulib/import/rewinddir.c: Update.
1740 * gnulib/import/rmdir.c: Update.
1741 * gnulib/import/same-inode.h: Update.
1742 * gnulib/import/save-cwd.c: Update.
1743 * gnulib/import/save-cwd.h: Update.
1744 * gnulib/import/scratch_buffer.h: Update.
1745 * gnulib/import/secure_getenv.c: Update.
1746 * gnulib/import/setenv.c: Update.
1747 * gnulib/import/signal.in.h: Update.
1748 * gnulib/import/stat-time.c: Update.
1749 * gnulib/import/stat-time.h: Update.
1750 * gnulib/import/stat-w32.c: Update.
1751 * gnulib/import/stat-w32.h: Update.
1752 * gnulib/import/stat.c: Update.
1753 * gnulib/import/stdbool.in.h: Update.
1754 * gnulib/import/stddef.in.h: Update.
1755 * gnulib/import/stdint.in.h: Update.
1756 * gnulib/import/stdio.in.h: Update.
1757 * gnulib/import/stdlib.in.h: Update.
1758 * gnulib/import/str-two-way.h: Update.
1759 * gnulib/import/strchrnul.c: Update.
1760 * gnulib/import/strdup.c: Update.
1761 * gnulib/import/streq.h: Update.
1762 * gnulib/import/strerror-override.c: Update.
1763 * gnulib/import/strerror-override.h: Update.
1764 * gnulib/import/strerror.c: Update.
1765 * gnulib/import/string.in.h: Update.
1766 * gnulib/import/stripslash.c: Update.
1767 * gnulib/import/strnlen1.c: Update.
1768 * gnulib/import/strnlen1.h: Update.
1769 * gnulib/import/strstr.c: Update.
1770 * gnulib/import/strtok_r.c: Update.
1771 * gnulib/import/sys_stat.in.h: Update.
1772 * gnulib/import/sys_time.in.h: Update.
1773 * gnulib/import/sys_types.in.h: Update.
1774 * gnulib/import/tempname.c: Update.
1775 * gnulib/import/tempname.h: Update.
1776 * gnulib/import/time.in.h: Update.
1777 * gnulib/import/unistd--.h: Update.
1778 * gnulib/import/unistd-safer.h: Update.
1779 * gnulib/import/unistd.in.h: Update.
1780 * gnulib/import/unsetenv.c: Update.
1781 * gnulib/import/verify.h: Update.
1782 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1783 * gnulib/import/wchar.in.h: Update.
1784 * gnulib/import/wctype.in.h: Update.
1785 * gnulib/import/xalloc-oversized.h: Update.
1786 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1787 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1788
1789 2018-08-16 Gary Benson <gbenson@redhat.com>
1790
1791 PR gdb/13000:
1792 * gdb/main.c (captured_main_1): Exit with nonzero status
1793 in batch mode if the last command to be executed failed.
1794 * NEWS: Mention the above.
1795
1796 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1797
1798 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1799 end of warning message.
1800
1801 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1802
1803 PR gdb/22943:
1804 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1805 (aarch64_extract_return_value): Use
1806 aapcs_is_vfp_call_or_return_candidate.
1807 (aarch64_return_in_memory): Likewise.
1808 (aarch64_store_return_value): Likewise.
1809
1810 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1811
1812 * aarch64-tdep.c
1813 (aapcs_is_vfp_call_or_return_candidate): Make static
1814 (pass_in_v_or_stack): Remove function.
1815 (pass_in_v_vfp_candidate): New function.
1816 (aarch64_push_dummy_call): Check for float register candidates.
1817
1818 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1819
1820 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1821 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1822 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1823
1824 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1825
1826 PR build/23399
1827 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1828 (struct ipa_sym_addresses): Rename to...
1829 (struct ipa_sym_addresses_common): ... this.
1830 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1831
1832 2018-08-28 Tom Tromey <tom@tromey.com>
1833
1834 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1835 (token_fifo): Now a std::vector.
1836 (yylex, c_parse): Update.
1837 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1838 (token_fifo): Now a std::vector.
1839 (yylex, d_parse): Update.
1840 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1841 (token_fifo): Now a std::vector.
1842 (yylex, go_parse): Update.
1843
1844 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1845
1846 * parser-defs.h (struct type_stack) <elements>: Change type to
1847 std::vector<union type_stack_elt>.
1848 <depth, size>: Remove.
1849 * parse.c (parse_exp_in_context_1): Adjust.
1850 (type_stack_reserve): Remove.
1851 (check_type_stack_depth): Remove.
1852 (insert_into_type_stack): Adjust to std::vector.
1853 (insert_type): Likewise.
1854 (push_type): Likewise.
1855 (push_type_int): Likewise.
1856 (insert_type_address_space): Likewise.
1857 (pop_type): Likewise.
1858 (pop_type_int): Likewise.
1859 (pop_typelist): Likewise.
1860 (pop_type_stack): Likewise.
1861 (append_type_stack): Likewise.
1862 (push_type_stack): Likewise.
1863 (get_type_stack): Likewise.
1864 (type_stack_cleanup): Likewise.
1865 (push_typelist): Likewise.
1866 (follow_types): Likewise.
1867 (_initialize_parse): Likewise.
1868
1869 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1870
1871 * NEWS: Mention csky target.
1872
1873 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1874 Hafiz Abid Qadeer <abidh@codesourcery.com>
1875 Don Breazeal <donb@codesourcery.com>
1876
1877 * csky-linux-tdep.c: New file.
1878 * csky-tdep.c: Likewise.
1879 * csky-tdep.h: Likewise.
1880 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1881 csky-tdep.o.
1882 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1883 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1884 * configure.tgt: Add csky support.
1885
1886 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1887
1888 * python/py-framefilter.c (py_print_frame): Print frame architecture
1889 when printing on an MI output.
1890
1891 2018-08-27 Tom Tromey <tom@tromey.com>
1892
1893 PR build/23087:
1894 * configure: Rebuild.
1895 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1896
1897 2018-08-27 Tom Tromey <tom@tromey.com>
1898
1899 * aarch64-linux-tdep.c
1900 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1901 casts to int.
1902
1903 2018-08-27 Tom Tromey <tom@tromey.com>
1904
1905 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1906 unsigned.
1907 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1908 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1909 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1910 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1911 unsigned.
1912
1913 2018-08-27 Tom Tromey <tom@tromey.com>
1914
1915 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1916 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1917
1918 2018-08-27 Tom Tromey <tom@tromey.com>
1919
1920 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1921 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1922 ULONGEST_MAX.
1923 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1924 ULONGEST_MAX.
1925 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1926 ULONGEST_MAX.
1927 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1928 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1929 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1930 ULONGEST_MAX.
1931 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1932 (ppc64_linux_sigaction_tramp_frame)
1933 (ppc32_linux_sighandler_tramp_frame)
1934 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1935 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1936 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1937 * mn10300-linux-tdep.c (am33_linux_sigframe)
1938 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1939 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1940 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1941 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1942 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1943 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1944 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1945 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1946 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1947 * microblaze-linux-tdep.c
1948 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1949 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1950 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1951 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1952 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1953 * common/common-types.h (ULONGEST_MAX): New define.
1954 (CORE_ADDR_MAX): Fix formatting.
1955 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1956 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1957 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1958 (arm_linux_rt_sigreturn_tramp_frame)
1959 (arm_eabi_linux_sigreturn_tramp_frame)
1960 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1961 (thumb2_eabi_linux_sigreturn_tramp_frame)
1962 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1963 (arm_linux_restart_syscall_tramp_frame)
1964 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1965 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1966 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1967 ULONGEST_MAX.
1968 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1969
1970 2018-08-27 Tom Tromey <tom@tromey.com>
1971
1972 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1973 CORE_ADDR_MAX.
1974 * mips-tdep.c (mips_deal_with_atomic_sequence)
1975 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1976 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1977 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1978 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1979 CORE_ADDR_MAX.
1980 * aarch64-tdep.c (aarch64_software_single_step): Use
1981 CORE_ADDR_MAX.
1982
1983 2018-08-27 Tom Tromey <tom@tromey.com>
1984
1985 * linespec.c (complete_linespec_component): Add cast to "char".
1986 * completer.c (completion_tracker::build_completion_result): Add
1987 cast to "char".
1988
1989 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1990
1991 * solist.h (struct solist, struct target_so_ops): Fix
1992 indentation.
1993
1994 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1995
1996 * ada-tasks.c (ada_task_info_s): Remove typedef.
1997 (DEF_VEC_O(ada_task_info_s)): Remove.
1998 (struct ada_tasks_inferior_data): Initialize fields.
1999 <task_list>: Make an std::vector.
2000 (get_ada_tasks_inferior_data): Allocate with new.
2001 (ada_get_task_number): Adjust.
2002 (get_task_number_from_id): Likewise.
2003 (valid_task_id): Likewise.
2004 (ada_get_task_info_from_ptid): Likewise.
2005 (iterate_over_live_ada_tasks): Likewise.
2006 (add_ada_task): Likewise.
2007 (read_known_tasks): Likewise.
2008 (ada_build_task_list): Likewise.
2009 (print_ada_task_info): Likewise.
2010 (info_task): Likewise.
2011 (task_command_1): Likewise.
2012
2013 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2014
2015 * ada-lang.c (add_angle_brackets): Return std::string.
2016
2017 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2018
2019 * python/py-threadevent.c (py_get_event_thread): Initialize
2020 pythread.
2021
2022 2018-08-24 Pedro Alves <palves@redhat.com>
2023
2024 * python/py-bpevent.c (create_breakpoint_event_object): Use
2025 copy-initialization.
2026 * python/py-continueevent.c (emit_continue_event): Use
2027 copy-initialization.
2028 * python/py-exitedevent.c (create_exited_event_object): Return a
2029 gdbpy_ref<>.
2030 (emit_exited_event): Use copy-initialization.
2031 * python/py-inferior.c (python_new_inferior)
2032 (python_inferior_deleted, add_thread_object): Use
2033 copy-initialization.
2034 * python/py-infevents.c (create_inferior_call_event_object)
2035 (create_register_changed_event_object)
2036 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2037 (emit_inferior_call_event, emit_memory_changed_event)
2038 (emit_register_changed_event): Use copy-initialization.
2039 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2040 Return a gdbpy_ref<>.
2041 (emit_new_objfile_event): Use copy-initialization.
2042 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2043 (emit_clear_objfiles_event): Use copy-initialization.
2044 * python/py-signalevent.c (create_signal_event_object): Use
2045 copy-initialization.
2046 * python/py-threadevent.c (create_thread_event_object): Use
2047 copy-initialization.
2048
2049 2018-08-24 Pedro Alves <palves@redhat.com>
2050 Simon Marchi <simon.marchi@ericsson.com>
2051
2052 PR gdb/23379
2053 * python/py-continueevent.c: Include "gdbthread.h".
2054 (create_continue_event_object): Add intro comment. Add 'ptid'
2055 parameter. Use it to find thread to pass to
2056 create_thread_event_object.
2057 (emit_continue_event): Pass PTID down to
2058 create_continue_event_object.
2059 * python/py-event.h (py_get_event_thread): Declare.
2060 (create_thread_event_object): Remove default from 'thread'
2061 parameter.
2062 * python/py-stopevent.c (create_stop_event_object): Use
2063 py_get_event_thread.
2064 * python/py-threadevent.c (get_event_thread): Rename to ...
2065 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2066 and use it to find the thread.
2067 (create_thread_event_object): Assert that THREAD isn't null.
2068 Don't find the event thread here.
2069
2070 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2071
2072 * block.h (blockrange, blockranges): New struct declarations.
2073 (struct block): Add new field named `ranges'.
2074 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2075 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2076 macros for accessing ranges in struct block.
2077 (make_blockranges): New declaration.
2078 block.c (make_blockranges): New function.
2079 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2080 for block.
2081 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2082 * blockframe.c (cache_pc_function_block): New static global.
2083 (clear_pc_function_cache): Clear cache_pc_function_block.
2084 (find_pc_partial_function): Move comment to symtab.h. Add
2085 support for non-contiguous blocks.
2086 * cli/cli-cmds.c (block.h): Include.
2087 (print_disassembly): Handle printing of non-contiguous blocks.
2088 (disassemble_current_function): Likewise.
2089 (disassemble_command): Likewise.
2090
2091 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2092 BLOCK_START.
2093 * blockframe.c (get_pc_function_start): Likewise.
2094 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2095 (gcc_symbol_address): Likewise.
2096 * compile/compile-object-run.c (compile_object_run): Likewise.
2097 * compile/compile.c (get_expr_block_and_pc): Likewise.
2098 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2099 (func_addr_to_tail_call_list): Likewise.
2100 * findvar.c (default_read_var_value): Likewise.
2101 * inline-frame.c (inline_frame_this_id): Likewise.
2102 (skip-inline_frames): Likewise.
2103 * infcmd.c (until_next_command): Likewise.
2104 * linespec.c (convert_linespec_to_sals): Likewise.
2105 * parse.c (parse_exp_in_context_1): Likewise.
2106 * printcmd.c (build_address_symbolic): likewise.
2107 (info_address_command): Likewise.
2108 symtab.c (find_function_start_sal): Likewise.
2109 (skip_prologue_sal): Likewise.
2110 (find_function_alias_target): Likewise.
2111 (find_gnu_ifunc): Likewise.
2112 * stack.c (find_frame_funname): Likewise.
2113 * symtab.c (fixup_symbol_section): Likewise.
2114 (find_function_start_sal): Likewise.
2115 (skip_prologue_sal): Likewsie.
2116 (find_function_alias_target): Likewise.
2117 (find_gnu_ifunc): Likewise.
2118 * tracepoint.c (info_scope_command): Likewise.
2119 * value.c (value_fn_field): Likewise.
2120
2121 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2122 in place of find_pc_partial_function.
2123 * blockframe.c (find_function_entry_range_from_pc): New function.
2124 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2125 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2126 for each range in a block.
2127
2128
2129 2018-08-23 Xavier Roirand <roirand@adacore.com>
2130
2131 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2132 incrementation.
2133
2134 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2135
2136 * solib-svr4.c (read_program_headers_from_bfd): Return
2137 gdb::optional<gdb::byte_vector>.
2138 (svr4_exec_displacement): Adjust.
2139
2140 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2141
2142 * solib-svr4.c (read_program_header): Return
2143 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2144 (find_program_interpreter): Return
2145 gdb::optional<gdb::byte_vector>.
2146 (scan_dyntag_auxv): Adjust.
2147 (enable_break): Adjust.
2148 (svr4_exec_displacement): Adjust.
2149
2150 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2151
2152 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2153 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2154
2155 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2156
2157 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2158 string_vprintf.
2159 * guile/scm-utils.c (gdbscm_printf): Likewise.
2160 * serial.c (serial_printf): Likewise.
2161 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2162
2163 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2164
2165 * stack.c (print_frame): Print frame architecture when printing on
2166 an MI output.
2167 * NEWS: Mention new "arch" attribute in frame output.
2168
2169 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2170
2171 * arch/aarch64.h (aarch64_regnum): Update comment.
2172
2173 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2174
2175 * NEWS: Add SVE to 8.2 section.
2176
2177 2018-08-21 Pedro Alves <palves@redhat.com>
2178
2179 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2180 out from gdbscm_parse_function_args.
2181 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2182 gdbscm_parse_function_args_1.
2183
2184 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2185
2186 PR gdb/17816
2187 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2188 operator.
2189
2190 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2191
2192 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2193
2194 2018-08-19 Michael Spang <spang@google.com>
2195
2196 PR gdb/11786
2197 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2198 for PT_TLS segments.
2199
2200 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2201
2202 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2203 dwarf_variable_value.
2204 * dwarf2-frame.c (class dwarf_expr_executor):
2205 Add override for dwarf_variable_value.
2206 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2207 (class symbol_needs_eval_context): Likewise.
2208 (indirect_synthetic_pointer): Add forward declaration.
2209 (sect_variable_value): New function.
2210 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2211 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2212 for DW_OP_GNU_variable_value.
2213
2214 2018-08-16 Tom Tromey <tom@tromey.com>
2215
2216 * top.c (read_command_file): Update.
2217 (command_line_input): Remove "repeat" argument.
2218 * ada-lang.c (get_selections): Update.
2219 * linespec.c (decode_line_2): Update.
2220 * defs.h (command_line_input): Remove argument.
2221 * cli/cli-script.c (read_next_line): Update.
2222 * python/py-gdb-readline.c: Update.
2223
2224 2018-08-17 Tom Tromey <tom@tromey.com>
2225
2226 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2227 command_line_input.
2228
2229 2018-08-15 Tom Tromey <tom@tromey.com>
2230
2231 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2232
2233 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2234
2235 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2236 If used, use find_pc_partial_function to find address range
2237 to disassemble.
2238 * mi/mi-main.c (mi_cmd_list_features): Report
2239 "data-disassemble-a-option" feature.
2240 * NEWS: Mention new -data-disassemble option -a.
2241
2242 2018-08-13 Tom Tromey <tom@tromey.com>
2243
2244 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2245
2246 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2247
2248 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2249 (aarch64_linux_collect_sve_regset): Likewise.
2250 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2251 * regcache.h (regcache_map_entry_size): New function.
2252
2253 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2254
2255 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2256 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2257 (SVE_HEADER_VL_LENGTH): Likewise.
2258 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2259 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2260 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2261 (SVE_HEADER_SIZE_OFFSET): Likewise.
2262 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2263 (SVE_HEADER_VL_OFFSET): Likewise.
2264 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2265 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2266 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2267 (SVE_HEADER_SIZE): Likewise.
2268 (aarch64_linux_core_read_vq): Add function.
2269 (aarch64_linux_core_read_description): Check for SVE section.
2270
2271 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2272
2273 * aarch64-fbsd-tdep.c
2274 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2275 collect_size.
2276 * aarch64-linux-tdep.c
2277 (aarch64_linux_iterate_over_regset_sections): Likewise.
2278 * alpha-linux-tdep.c
2279 (alpha_linux_iterate_over_regset_sections):
2280 * alpha-nbsd-tdep.c
2281 (alphanbsd_iterate_over_regset_sections): Likewise.
2282 * amd64-fbsd-tdep.c
2283 (amd64fbsd_iterate_over_regset_sections): Likewise.
2284 * amd64-linux-tdep.c
2285 (amd64_linux_iterate_over_regset_sections): Likewise.
2286 * arm-bsd-tdep.c
2287 (armbsd_iterate_over_regset_sections): Likewise.
2288 * arm-fbsd-tdep.c
2289 (arm_fbsd_iterate_over_regset_sections): Likewise.
2290 * arm-linux-tdep.c
2291 (arm_linux_iterate_over_regset_sections): Likewise.
2292 * corelow.c (get_core_registers_cb): Likewise.
2293 (core_target::fetch_registers): Likewise.
2294 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2295 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2296 * gdbarch.h (void): Regenerate.
2297 * gdbarch.sh: Add supply_size and collect_size.
2298 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2299 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2300 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2301 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2302 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2303 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2304 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2305 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2306 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2307 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2308 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2309 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2310 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2311 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2312 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2313 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2314 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2315 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2316 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2317 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2318 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2319 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2320 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2321 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2322 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2323 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2324 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2325 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2326 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2327 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2328
2329 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2330
2331 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2332 with string_printf.
2333
2334 2018-08-10 Keith Seitz <keiths@redhat.com>
2335
2336 * compile/compile-c-support.c (add_code_header, add_code_footer):
2337 Move into policy class.
2338 (c_push_user_expression, pop_user_expression_nop)
2339 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2340 (compile_program): New host class.
2341 (c_compile_program): New typedef.
2342 (c_compute_porgram): Use c_compile_program.
2343
2344 2018-08-10 Keith Seitz <keiths@redhat.com>
2345
2346 * compile/compile-internal.h (compile_instance::~compile_instance):
2347 Remove calls to htab_delete.
2348 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2349 * compile.c (compile_instance::compile_instance): Initialize
2350 htab unique pointers.
2351 (compile_instance::get_cached_type, compile_instance::insert_type)
2352 (compile_instance::error_symbol_once): Update for unique_ptr.
2353
2354 2018-08-10 Keith Seitz <keiths@redhat.com>
2355
2356 * compile/compile-c-symbols.c (struct symbol_error)
2357 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2358 (compile_instance::insert_symbol_error)
2359 (compile_instance::error_symbol_once): Move to ...
2360 * compile/compile.c: ... here.
2361
2362 2018-08-10 Keith Seitz <keiths@redhat.com>
2363
2364 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2365 instead of `new_compile_instance'.
2366 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2367 Update description.
2368 If the symbol error map is not initialized, create it.
2369 (generate_c_for_for_one_symbol): Do not check/initialize
2370 the symbol error map.
2371 * compile/compile-c-types.c (compile_c_instance): Make a class.
2372 Update all callers.
2373 (compile_instance::compile_instance): Initialize the type cache.
2374 (get_cached_type): New function.
2375 (insert_type): Update description.
2376 (compile_c_instance::m_default_cflags): Define.
2377 (convert_type): Update description. Use get_cached_type.
2378 (delete_instance): Moved to destructor.
2379 (new_compile_instance): Moved to constructor.
2380 * compile/compile-c.h (compile_c_instance): Make class inheriting
2381 from compile_instance.
2382 <base>: Remove field.
2383 <type_map, symbol_err_map>: Move to base class.
2384 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2385 * compile/compile-internal.h (compile_instance): Make class.
2386 <type_map_t, symbol_err_map_t>: Define.
2387 <fe>: Rename to `m_gcc_fe'.
2388 <scope, block, gcc_target_options>: Add `m_' prefix.
2389 <m_type_map, m_symbol_err_map>: New fields, moved from
2390 compile_c_instance.
2391 <destroy>: Remove.
2392 (convert_type, new_compile_instance): Remove.
2393 * compile/compile.c (cleanup_compile_instance): Remove.
2394 (compile_to_object): Use unique_ptr to eliminate cleanups.
2395 (compile_instance::set_print_callback, compile_instance::version)
2396 (compile_instance::set_verbose)
2397 (compile_instance::set_driver_filename)
2398 (compile_instance::set_triplet_regexp)
2399 (compile_instance::set_arguments)
2400 (compile_instance::set_source_file)
2401 (compile_instance::compile): Define.
2402
2403 2018-08-10 Keith Seitz <keiths@redhat.com>
2404
2405 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2406 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2407 gcc-c-fe.def to define C plugin.
2408 (delete_instance): Delete `c_plugin'.
2409 (new_compile_instance): Initialize `c_plugin'.
2410 * compile/compile-c.h: Include gcc_c_plugin.h.
2411 (struct compile_c_instance) <c_plugin>: New member.
2412 * gcc-c-plugin.h: New file.
2413 Update all callers with API change.
2414
2415 2018-08-10 Keith Seitz <keiths@redhat.com>
2416
2417 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2418 (HFILES_NO_SRCDIR): ... to here.
2419 Add compile-internal.h and compile-c.h.
2420 * compile/compile-c-support.c: Include compile-c.h.
2421 * compile/compile-c-symbols.c: Include compile-c.h.
2422 (generate_c_for_variable_locations): Update comment.
2423 * compile/compile-c-types.c: Include compile-c.h.
2424 * compile/compile-c.h: New file -- moved C language declarations
2425 from other files here.
2426 * compile/compile-internal.h: Do not include hashtab.h or
2427 common/enum-flags.h.
2428 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2429 (gcc_convert_symbol, gcc_symbol_address)
2430 (generate_c_for_variable_locations, c_get_mode_for_size)
2431 (c_get_range_decl_name): Definitions moved to compile-c.h.
2432 * compile/compile-loc2c.c: Include compile-c.h.
2433
2434 2018-08-10 Keith Seitz <keiths@redhat.com>
2435
2436 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2437 (c_symbol_substitution_name): ... this.
2438 Update all callers.
2439
2440 2018-08-10 Keith Seitz <keiths@redhat.com>
2441
2442 * compile/compile-c-support.c (c_compute_program): Use
2443 unique_xmalloc_ptr to eliminate cleanup.
2444 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2445 Return a unique_xmalloc_ptr and eliminate cleanup.
2446 * compile/compile-internal.h (generate_c_for_variable_locations):
2447 Return unique_xmalloc_ptr and update description.
2448
2449 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2450
2451 * corelow.c (core_target::get_core_register_section): Rename
2452 min_size to section_min_size.
2453
2454 2018-08-09 Jim Wilson <jimw@sifive.com>
2455
2456 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2457 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2458 * NEWS: Mention new GNU/Linux RISC-V target.
2459 * configure.host: Add riscv*-*-linux*.
2460 * configure.nat: Add riscv*.
2461 * configure.tgt: Add riscv*-*-linux*.
2462 * riscv-linux-nat.c: New file.
2463 * riscv-linux-tdep.c: New file.
2464
2465 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * infrun.c (resume): Make static, add forward declaration.
2468 (proceed): Update header comment.
2469 * infrun.h (resume): Delete declaration.
2470
2471 2018-08-09 Tom Tromey <tom@tromey.com>
2472
2473 * riscv-tdep.h: Minor formatting fixes.
2474
2475 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2476
2477 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2478 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2479 (test_mkdir_recursive): Likewise.
2480 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2481
2482 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2483
2484 * valarith.c (value_subscripted_rvalue): If an array is not in
2485 memory, and we don't know the upper bound, then we can't know that
2486 the requested element exists or not.
2487
2488 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2489
2490 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2491 (target_options_to_string): Add comment.
2492
2493 2018-08-08 Tom Tromey <tom@tromey.com>
2494
2495 * unittests/scoped_mmap-selftests.c: Check result of "write".
2496
2497 2018-08-08 Jim Wilson <jimw@sifive.com>
2498
2499 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2500 (decode_register_index_short): New.
2501 (decode_j_type_insn, decode_cj_type_insn): New.
2502 (decode_b_type_insn, decode_cb_type_insn): New.
2503 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2504 local xlen. Check xlen when decoding ambiguous compressed insns. In
2505 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2506 is_c_sw_insn instead of is_sw_insn.
2507 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2508 (riscv_software_single_step): New.
2509 * riscv-tdep.h (riscv_software_single_step): Declare.
2510
2511 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2512 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2513
2514 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2515
2516 PR gdb/18050:
2517 * target.c (dispose_inferior): Don't dispose of inferiors that are
2518 already killed.
2519
2520 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2521
2522 * remote.c (remote_target::download_tracepoint): Change char* to
2523 const char*.
2524
2525 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2526
2527 * target.h (target_options_to_string): Return an std::string.
2528 * target.c (str_comma_list_concat_elem): Return void, use
2529 std::string.
2530 (do_option): Likewise.
2531 (target_options_to_string): Return an std::string.
2532 * linux-nat.c (linux_nat_target::wait): Adjust.
2533 * target-debug.h (target_debug_print_options): Adjust.
2534
2535 2018-08-07 Tom Tromey <tom@tromey.com>
2536
2537 * Makefile.in (CPPFLAGS): New variable.
2538 (INTERNAL_CPPFLAGS): Use it.
2539
2540 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2541
2542 * NEWS: Mention the index cache.
2543
2544 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2545
2546 * common/pathstuff.h (get_standard_cache_dir): New.
2547 * common/pathstuff.c (get_standard_cache_dir): New.
2548 * build-id.h (build_id_to_string): New.
2549 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2550 DEBUG_STR_SUFFIX): Move to here.
2551 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2552 DEBUG_STR_SUFFIX): Move from there.
2553 (write_psymtabs_to_index): Make non-static, add basename
2554 parameter. Write to temporary files, rename when done.
2555 (save_gdb_index_command): Adjust call to
2556 write_psymtabs_to_index.
2557 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2558 field.
2559 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2560 (get_gdb_index_contents_from_cache): New.
2561 (get_gdb_index_contents_from_cache_dwz): New.
2562 (dwarf2_initialize_objfile): Read index from cache.
2563 (dwarf2_build_psymtabs): Save to index.
2564 * dwarf-index-cache.h: New file.
2565 * dwarf-index-cache.c: New file.
2566 * dwarf-index-write.h: New file.
2567
2568 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2569
2570 * gnulib/aclocal.m4: Re-generate.
2571 * gnulib/config.in: Re-generate.
2572 * gnulib/configure: Re-generate.
2573 * gnulib/import/Makefile.am: Re-generate.
2574 * gnulib/import/Makefile.in: Re-generate.
2575 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2576 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2577 * gnulib/import/m4/mkdir.m4: New file.
2578 * gnulib/import/mkdir.c: New file.
2579 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2580 module.
2581
2582 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2583
2584 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2585 * common/scoped_mmap.c: New file.
2586 * common/scoped_mmap.h (destroy): New method.
2587 (~scoped_mmap, reset): Use destroy.
2588 (scoped_mmap): New move constructor.
2589 (mmap_file): New declaration.
2590 * unittests/scoped_mmap-selftests.c (test_normal,
2591 test_invalid_filename, run_tests): New functions.
2592 (_initialize_scoped_mmap_selftests): Register selftest.
2593
2594 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2595
2596 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2597 (read_gdb_index_from_buffer): ... this. Remove section
2598 parameter, add buffer parameter.
2599 (get_gdb_index_contents_ftype,
2600 get_gdb_index_contents_dwz_ftype): New typedefs.
2601 (dwarf2_read_gdb_index): Add callback parameters to get the
2602 index contents.
2603 (get_gdb_index_contents_from_section): New.
2604 (dwarf2_initialize_objfile): Update call to
2605 dwarf2_read_gdb_index.
2606
2607 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2608
2609 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2610 (gdb_open_cloexec): Likewise.
2611 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2612 (commandline_from_pid): Likewise.
2613 (linux_xfer_osdata_threads): Likewise.
2614 (linux_xfer_osdata_fds): Likewise.
2615 * ada-lang.c (is_package_name): Likewise.
2616 * auxv.c (procfs_xfer_auxv): Likewise.
2617 * breakpoint.c (print_one_breakpoint_location): Use
2618 uiout::field_fmt.
2619 (print_one_catch_solib): Use string_printf.
2620 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2621 (add_pe_forwarded_sym): Likewise.
2622 * dwarf2read.c (create_type_unit_group): Likewise.
2623 (build_error_marker_type): Likewise.
2624 * infcall.c (get_function_name): Likewise.
2625 * valprint.c (print_converted_chars_to_obstack): Likewise.
2626 * xtensa-tdep.c (xtensa_register_type): Likewise.
2627
2628 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2629
2630 * remote.c (remote_target::download_tracepoint): Fix format
2631 string errors.
2632
2633 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2634
2635 * tracefile.c: Include common/byte-vector.h.
2636 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2637 with trace_regblock_size if needed. Update uses of buf.
2638
2639 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2640
2641 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2642 std::vector<unsigned char>.
2643 * tracepoint.c (collection_list::collection_list): Remove
2644 m_regs_mask initializer from initializer list. Resize
2645 m_regs_mask using the largest remote register number.
2646 (collection_list::add_remote_register): Remove size check on
2647 m_regs_mask. Use at to access element.
2648 (collection_list::stringify): Change type of temp_buf to
2649 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2650 stringify the register mask. Use pack_hex_byte for the register
2651 mask.
2652
2653 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2654
2655 * tracepoint.h (class collection_list) <add_register>: Remove.
2656 <add_remote_register, add_ax_registers, add_local_register>:
2657 Declare.
2658 <add_memrange>: Add scope parameter.
2659 * tracepoint.c (encode_actions_1): Likewise.
2660 (collection_list::add_register): Rename to ...
2661 (collection_list::add_remote_register): ... this. Update
2662 comment.
2663 (collection_list::add_ax_registers, add_local_register): New
2664 methods.
2665 (collection_list::add_memrange): Add scope parameter. Call
2666 add_local_register instead of add_register.
2667 (finalize_tracepoint_aexpr): New function.
2668 (collection_list::collect_symbol): Update calls to add_memrange.
2669 Call add_local_register instead of add_register. Call
2670 add_ax_registers. Call finalize_tracepoint_aexpr.
2671 (encode_actions_1): Get remote regnos for $reg action. Call
2672 add_remote_register, add_ax_registers, and add_local_register.
2673 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2674 (validate_actionline): Call finalize_tracepoint_aexpr.
2675
2676 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2677
2678 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2679 Replace array buf with gdb::char_vector buf, of size
2680 get_remote_packet_size (). Replace references to buf and
2681 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2682 and xsnprintf with snprintf. Raise errors if the buffer is too
2683 small.
2684
2685 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2686
2687 * remote.c (remote_target::download_tracepoint): Fix the has_more
2688 predicate in the QTDP action list iteration.
2689
2690 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2691
2692 * remote.c (remote_target::download_tracepoint): Fix indentation
2693 in for block.
2694
2695 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2696
2697 * proc-api.c (_initialize_proc_api): Remove c, unused.
2698 * procfs.c (procfs_init_inferior): Remove signals, unused.
2699 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2700 unused.
2701
2702 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2703 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2706 'W_STOPCODE (0)' as this could be ambiguous.
2707
2708 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2709
2710 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2711 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2712 "ai_socktype").
2713
2714 2018-08-02 Tom Tromey <tom@tromey.com>
2715
2716 PR symtab/16842.
2717 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2718 symbols.
2719 (process_structure_scope): Likewise.
2720
2721 2018-08-02 Xavier Roirand <roirand@adacore.com>
2722
2723 PR gdb/22629:
2724 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2725 kill inferior.
2726
2727 2018-08-02 Tom Tromey <tom@tromey.com>
2728
2729 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2730 (darwin_suspend_inferior, darwin_resume_inferior)
2731 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2732 (darwin_check_new_threads): Check result of get_darwin_inferior.
2733
2734 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2735
2736 GDB 8.1.1 released.
2737
2738 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2739
2740 * varobj.c (varobj_get_path_expr_parent): Report an error if
2741 parent is a dynamic varobj.
2742
2743 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2744
2745 * gnulib/aclocal.m4: Re-generate.
2746 * gnulib/config.in: Re-generate.
2747 * gnulib/configure: Re-generate.
2748 * gnulib/import/Makefile.in: Re-generate.
2749 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2750 * gnulib/import/m4/onceonly.m4: Re-generate.
2751
2752 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2753
2754 * target-descriptions.c (struct xml_test_tdesc): New.
2755 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2756 (record_xml_tdesc): Update.
2757 (maintenance_check_xml_descriptions): Update.
2758 * target-descriptions.h (record_xml_tdesc): Update comment.
2759
2760 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2761
2762 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2763 checking array bounds are defined.
2764
2765 2018-07-30 Tom Tromey <tom@tromey.com>
2766
2767 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2768 irreflexivity violation.
2769
2770 2018-07-30 Tom Tromey <tom@tromey.com>
2771
2772 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2773 * value.c (unpack_long): Remove lint code.
2774 * valops.c (value_ind): Remove lint code.
2775 * valarith.c (value_x_binop, value_x_unop, value_equal)
2776 (value_pos): Remove lint code.
2777
2778 2018-07-28 Tom de Vries <tdevries@suse.de>
2779
2780 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2781 with undefined upper bound as <optimized out>.
2782
2783 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2784
2785 * gcore.in: Rename variable "name" to "prefix". Expand
2786 "usage" text.
2787
2788 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2789
2790 * windows-nat.c (windows_nat_target::create_inferior): Update to
2791 call close() in global namespace.
2792
2793 2018-07-26 Tom Tromey <tom@tromey.com>
2794
2795 * dwarf-index-write.c (add_address_entry): Don't add objfile
2796 offsets.
2797 * dbxread.c (find_stab_function): Rename from
2798 find_stab_function_addr. Return a bound_minimal_symbol.
2799 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2800 Don't add objfile offsets.
2801 (end_psymtab): Use raw_text_low, raw_text_high,
2802 MSYMBOL_VALUE_RAW_ADDRESS.
2803 (read_ofile_symtab): Update.
2804 (process_one_symbol): Update.
2805 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2806 offsets.
2807 (dw2_relocate): Remove.
2808 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2809 searching addrmap.
2810 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2811 Update.
2812 (process_psymtab_comp_unit_reader, add_partial_symbol)
2813 (add_partial_subprogram, dwarf2_ranges_read): Update.
2814 (load_partial_dies): Update.
2815 (add_address_entry): Don't add objfile offsets.
2816 (dwarf2_build_include_psymtabs): Update.
2817 (create_addrmap_from_aranges): Don't add objfile offsets.
2818 (dw2_find_pc_sect_compunit_symtab): Update.
2819 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2820 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2821 Update.
2822 (parse_partial_symbols): Don't add objfile offsets. Use
2823 raw_text_low, raw_text_high. Update.
2824 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2825 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2826 or call 'relocate' quick function. Clear psymbol_map.
2827 * psympriv.h (struct partial_symbol) <address>: Add section
2828 offset.
2829 <set_unrelocated_address>: Rename from set_address.
2830 <raw_text_low, raw_text_high>: New methods.
2831 <text_low, text_high>: Add objfile parameter.
2832 (add_psymbol_to_bcache): Add 'section' parameter. Call
2833 set_unrelocated_address.
2834 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2835 (find_pc_psymbol): Update.
2836 (fixup_psymbol_section, relocate_psymtabs): Remove.
2837 (dump_psymtab, psym_functions): Update.
2838 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2839 parameter.
2840 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2841 (start_psymtab_common): Update.
2842 * symfile-debug.c (debug_qf_relocate): Remove.
2843 (debug_sym_quick_functions): Update.
2844 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2845 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2846 Update.
2847
2848 2018-07-26 Tom Tromey <tromey@redhat.com>
2849
2850 * dbxread.c (end_psymtab): Use text_high_valid and
2851 text_low_valid.
2852 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2853 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2854 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2855 Update comment.
2856 <text_low_valid, text_high_valid>: New fields.
2857 <set_text_low, set_text_high>: Update.
2858 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2859
2860 2018-07-26 Tom Tromey <tom@tromey.com>
2861
2862 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2863 Update.
2864 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2865 textlow and texthigh fields.
2866 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2867 Update.
2868 * mdebugread.c (parse_lines, parse_partial_symbols)
2869 (psymtab_to_symtab_1): Update.
2870 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2871 Rename fields. Update comment. Now private.
2872 <text_low, text_high, set_text_low, set_text_high>: New methods.
2873 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2874 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2875 (start_psymtab_common, maintenance_info_psymtabs)
2876 (maintenance_check_psymtabs): Update.
2877 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2878 texthigh fields.
2879 (scan_xcoff_symtab): Update.
2880
2881 2018-07-26 Tom Tromey <tromey@redhat.com>
2882
2883 * psympriv.h (struct partial_symbol) <unrelocated_address,
2884 address, set_address>: New methods.
2885 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2886 (fixup_psymbol_section, relocate_psymtabs): Update.
2887 (print_partial_symbols): Add 'objfile' parameter. Update.
2888 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2889 Update.
2890
2891 2018-07-26 Tom Tromey <tom@tromey.com>
2892
2893 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2894 (debug_names::write_psymbols): Update.
2895 * psympriv.h (struct partial_symbol): Derive from
2896 general_symbol_info.
2897 <obj_section>: New method.
2898 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2899 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2900 (find_pc_sect_psymbol, fixup_psymbol_section)
2901 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2902 (print_partial_symbols, recursively_search_psymtabs)
2903 (compare_psymbols, psymbol_hash, psymbol_compare)
2904 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2905 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2906
2907 2018-07-26 Tom Tromey <tromey@redhat.com>
2908
2909 * dbxread.c (end_psymtab): Remove dead code.
2910
2911 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2912
2913 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2914 DWARF unwinders are disabled.
2915 * dwarf2-frame.c: Add dwarf2read.h include.
2916 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2917 disabled.
2918 (dwarf2_frame_unwinders_enabled_p): Define.
2919 (show_dwarf_unwinders_enabled_p): New function.
2920 (_initialize_dwarf2_frame): Register switch to control DWARF
2921 unwinder use.
2922 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2923 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2924 (show_dwarf_cmdlist): Remove static keyword.
2925 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2926 (show_dwarf_cmdlist): Declare.
2927 * NEWS: Document new feature.
2928
2929 2018-07-26 Tom de Vries <tdevries@suse.de>
2930
2931 PR breakpoints/23366
2932 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2933
2934 2018-07-26 Tom de Vries <tdevries@suse.de>
2935
2936 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2937 DW_AT_count can't be translated to a dynamic prop.
2938
2939 2018-07-25 Tom de Vries <tdevries@suse.de>
2940
2941 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2942 try/catch.
2943
2944 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2945
2946 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2947
2948 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2949
2950 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2951
2952 2018-07-24 Keith Seitz <keiths@redhat.comt
2953
2954 PR symtab/23010
2955 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2956 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2957 instead of add_symbol_to_list.
2958 (read_file_scope): Call prepare_one_comp_unit before reading
2959 any other DIEs.
2960
2961 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2962
2963 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2964
2965 2018-07-24 Tom Tromey <tom@tromey.com>
2966
2967 * utils.c (malloc, realloc, free): Don't declare.
2968 * configure, config.in: Rebuild.
2969 * configure.ac: Don't check for declarations of free, malloc, or
2970 realloc.
2971
2972 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2973
2974 * aarch64-linux-nat.c
2975 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2976 variable.
2977 * arm-linux-nat.c (fetch_regs): Likewise.
2978 (store_regs): Likewise.
2979 (fetch_vfp_regs): Likewise.
2980 (store_vfp_regs): Likewise.
2981 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2982 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2983 (arm_linux_nat_target::insert_watchpoint): Likewise.
2984 (arm_linux_nat_target::remove_watchpoint): Likewise.
2985 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2986 Likewise.
2987 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2988 Likewise.
2989 * ppc-linux-nat.c (fetch_register): Likewise.
2990 (fetch_all_gp_regs): Likewise.
2991 (fetch_ppc_registers): Likewise.
2992 (store_all_gp_regs): Likewise.
2993 (store_ppc_registers): Likewise.
2994 (hwdebug_insert_point): Likewise.
2995 (can_use_watchpoint_cond_accel): Likewise.
2996 * remote-sim.c (gdb_os_write_stdout): Likewise.
2997
2998 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2999 Tom Tromey <tom@tromey.com>
3000
3001 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3002 test for it.
3003 * configure: Rebuild.
3004
3005 2018-07-22 Tom Tromey <tom@tromey.com>
3006
3007 * regformats/regdat.sh: Define xmltarget_${name} inside
3008 #ifndef IN_PROCESS_AGENT.
3009
3010 2018-07-22 Tom Tromey <tom@tromey.com>
3011
3012 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3013
3014 2018-07-22 Tom Tromey <tom@tromey.com>
3015
3016 * symfile.c (reread_symbols): Notify iter, not objfile.
3017
3018 2018-07-22 Tom Tromey <tom@tromey.com>
3019
3020 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3021 Use arch_ops.
3022 (ravenscar_thread_target::prepare_to_store): Likewise.
3023
3024 2018-07-22 Tom Tromey <tom@tromey.com>
3025
3026 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3027 unused variable. Call value_fetch_lazy when needed.
3028 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3029 Remove unused variable. Call value_fetch_lazy when needed.
3030
3031 2018-07-22 Tom Tromey <tom@tromey.com>
3032
3033 * m32c-tdep.c (mark_dma): Return void.
3034 (make_regs): Remove unused declarations.
3035
3036 2018-07-22 Tom Tromey <tom@tromey.com>
3037
3038 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3039 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3040 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3041 bkscm_get_valid_block_smob_arg_unsafe for effect.
3042
3043 2018-07-22 Tom Tromey <tom@tromey.com>
3044
3045 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3046 value_type.
3047
3048 2018-07-22 Tom Tromey <tom@tromey.com>
3049
3050 * windows-nat.c (saved_context): Conditionally define.
3051 * remote.c (remote_target::remote_btrace_maybe_reopen):
3052 Conditionally declare "warned".
3053 * inflow.c (sigquit_ours): Conditionally define.
3054 (new_tty): Move "tty" declaration inside #if.
3055 * guile/guile.c (guile_datadir): Conditionally define.
3056 * charset.c (set_be_le_names): Move some declarations inside #if.
3057 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3058 #if.
3059 (parse_xml_btrace_conf): Likewise.
3060
3061 2018-07-22 Tom Tromey <tom@tromey.com>
3062
3063 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3064
3065 2018-07-22 Tom Tromey <tom@tromey.com>
3066
3067 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3068 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3069 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3070 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3071 * stack.c (frame_apply_level_command): Remove unused variable.
3072 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3073 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3074 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3075 unused variable.
3076 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3077 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3078 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3079 variable.
3080 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3081 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3082 variable.
3083 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3084 Remove unused variable.
3085 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3086 variable.
3087 * common/tdesc.c (print_xml_feature::visit): Remove unused
3088 variable.
3089 * compile/compile-object-load.c (store_regs): Remove unused
3090 variables.
3091 * complaints.c (clear_complaints): Remove unused variable.
3092 * corelow.c (core_target_open): Remove unused variable.
3093 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3094 variable.
3095 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3096 variable.
3097 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3098 variable.
3099 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3100 variable.
3101 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3102 variable.
3103 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3104 variable.
3105 * ia64-tdep.c (examine_prologue): Remove unused variable.
3106 * infcall.c (run_inferior_call): Remove unused variable.
3107 * inferior.c (exit_inferior): Remove unused variable.
3108 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3109 * linespec.c (decode_line_2): Remove unused variable.
3110 * linux-nat.c (super_close): Remove.
3111 * linux-tdep.c (linux_info_proc): Remove unused variable.
3112 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3113 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3114 Remove unused variable.
3115 * parse.c (find_minsym_type_and_address): Remove unused variable.
3116 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3117 variable.
3118 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3119 variable.
3120 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3121 variables.
3122 * record-btrace.c (record_btrace_target::store_registers): Remove
3123 unused variable.
3124 (cmd_show_record_btrace_cpu): Remove unused variable.
3125 * riscv-tdep.c (riscv_register_reggroup_p)
3126 (riscv_push_dummy_call, riscv_return_value): Remove unused
3127 variable.
3128 * rust-exp.y (literal): Remove unused variable.
3129 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3130 unused variable.
3131 <STRUCTOP_ANONYMOUS>: Likewise.
3132 * s390-linux-tdep.c (s390_linux_init_abi_31)
3133 (s390_linux_init_abi_64): Remove unused variable.
3134 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3135 (file_select_thread, net_windows_open, _initialize_ser_windows):
3136 Remove unused variables.
3137 * symtab.c (find_pc_sect_line): Remove unused variable.
3138 * target-memory.c (compute_garbled_blocks): Remove unused
3139 variable.
3140 (target_write_memory_blocks): Remove unused variable.
3141 * target.c (target_stack::unpush): Remove unused variables.
3142 * tracepoint.c (start_tracing, all_tracepoint_actions)
3143 (merge_uploaded_trace_state_variables)
3144 (print_one_static_tracepoint_marker): Remove unused variable.
3145 * unittests/basic_string_view/element_access/char/1.cc (test01):
3146 Remove unused variable.
3147 * windows-nat.c (windows_continue, windows_add_all_dlls)
3148 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3149 Remove unused variables.
3150
3151 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3152
3153 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3154 attr_profile in HAVE_ELF.
3155 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3156 HAVE_ELF.
3157
3158 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3159
3160 * frame.c (frame_register_unwind): Change parameter name.
3161 (frame_unwind_register): Likewise.
3162 (frame_unwind_register_value): Likewise.
3163 (frame_unwind_register_signed): Likewise.
3164 (frame_unwind_register_unsigned): Likewise.
3165 * frame.h (frame_register_unwind): Likewise.
3166 (frame_unwind_register): Likewise.
3167 (frame_unwind_register_value): Likewise.
3168 (frame_unwind_register_signed): Likewise.
3169 (frame_unwind_register_unsigned): Likewise.
3170 (frame_unwind_arch): Likewise.
3171
3172 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3173
3174 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3175 ISA maintenance.
3176
3177 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3178
3179 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3180 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3181 hand.
3182
3183 2018-07-20 Keith Seitz <keiths@redhat.com>
3184
3185 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3186 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3187 m_compunit_symtab, m_language>: Add "m_" prefix.
3188 Update all uses.
3189 * buildsym.c: Update all uses.
3190
3191 2018-07-20 Tom Tromey <tom@tromey.com>
3192
3193 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3194 * buildsym.h (record_line_ftype): Remove typedef.
3195
3196 2018-07-20 Tom Tromey <tom@tromey.com>
3197
3198 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3199 (end_expandable_symtab): Likewise.
3200 (end_symtab_get_static_block): Likewise.
3201 (end_symtab_from_static_block): Likewise.
3202 * buildsym-legacy.c (augment_type_symtab): Remove.
3203 (end_expandable_symtab): Remove.
3204 (end_symtab_get_static_block): Remove.
3205 (end_symtab_from_static_block): Remove.
3206
3207 2018-07-20 Tom Tromey <tom@tromey.com>
3208
3209 * dwarf2read.c: Include buildsym.h.
3210 (struct dwarf2_cu) <builder>: New method.
3211 (fixup_go_packaging): Update.
3212 (process_full_comp_unit, process_full_type_unit): Update. Don't
3213 use scoped_free_pendings.
3214 (using_directives): Add "cu" parameter, remove "language".
3215 (read_import_statement, setup_type_unit_groups, )
3216 (read_func_scope, read_lexical_block_scope)
3217 (dwarf2_record_block_ranges, read_namespace): Update.
3218 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3219 (lnp_state_machine::handle_end_sequence): Update.
3220 (class lnp_state_machine) <m_cu>: New member.
3221 <m_record_line_callback>: Remove.
3222 <m_currently_recording_lines>: New member.
3223 (lnp_state_machine::handle_set_file): Update.
3224 (noop_record_line): Remove.
3225 (dwarf_record_line_p): Add cu parameter.
3226 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3227 (lnp_state_machine::record_line)
3228 (lnp_state_machine::lnp_state_machine)
3229 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3230 (dwarf_decode_lines): Update.
3231 (dwarf2_start_subfile): Add cu parameter.
3232 (dwarf2_start_symtab, new_symbol): Update.
3233 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3234 Remove dwarf2_per_objfile parameter.
3235 (dwarf_decode_macros): Update.
3236
3237 2018-07-20 Tom Tromey <tom@tromey.com>
3238
3239 * stabsread.c (define_symbol): Update.
3240 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3241 * dwarf2read.c (new_symbol): Update.
3242 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3243 * cp-namespace.c: Include buildsym.h.
3244 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3245 * buildsym-legacy.c (get_buildsym_compunit): New function.
3246
3247 2018-07-20 Tom Tromey <tom@tromey.com>
3248
3249 * xcoffread.c: Include buildsym-legacy.h.
3250 * windows-nat.c: Include buildsym-legacy.h.
3251 * stabsread.c: Include buildsym-legacy.h.
3252 * mdebugread.c: Include buildsym-legacy.h.
3253 * buildsym-legacy.h: New file.
3254 * buildsym-legacy.c: New file, from buildsym.c.
3255 * go32-nat.c: Include buildsym-legacy.h.
3256 * dwarf2read.c: Include buildsym-legacy.h.
3257 * dbxread.c: Include buildsym-legacy.h.
3258 * cp-namespace.c: Include buildsym-legacy.h.
3259 * coffread.c: Include buildsym-legacy.h.
3260 * buildsym.h: Move some contents to buildsym-legacy.h.
3261 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3262 buildsym-legacy.c.
3263 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3264
3265 2018-07-20 Tom Tromey <tom@tromey.com>
3266
3267 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3268 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3269 (buildsym_compunit::buildsym_compunit)
3270 (buildsym_compunit::~buildsym_compunit)
3271 (buildsym_compunit::get_macro_table): Define.
3272
3273 2018-07-20 Tom Tromey <tom@tromey.com>
3274
3275 * buildsym.c (reset_symtab_globals): Remove.
3276 (buildsym_compunit::end_symtab_from_static_block): Update.
3277 (buildsym_compunit::augment_type_symtab): Update.
3278 (end_symtab_from_static_block): Call free_buildsym_compunit.
3279 (augment_type_symtab, end_symtab, end_expandable_symtab):
3280 Likewise.
3281
3282 2018-07-20 Tom Tromey <tom@tromey.com>
3283
3284 * arch-utils.c: Do not include buildsym.h.
3285 * mipsread.c: Do not include buildsym.h.
3286 * machoread.c: Do not include buildsym.h.
3287 * elfread.c: Do not include buildsym.h.
3288
3289 2018-07-20 Tom Tromey <tom@tromey.com>
3290
3291 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3292 initialization.
3293 (buildsym_compunit): Add new constructor.
3294 (struct buildsym_compunit) <get_last_source_file, finish_block,
3295 record_block_range, start_subfile, patch_subfile_names,
3296 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3297 set_last_source_start_addr, get_last_source_start_addr,
3298 get_local_using_directives, set_local_using_directives,
3299 get_global_using_directives, outermost_context_p,
3300 get_current_context_stack, get_context_stack_depth,
3301 get_current_subfile, get_local_symbols, get_file_symbols,
3302 get_global_symbols, record_debugformat, record_producer,
3303 push_context, pop_context, end_symtab_get_static_block,
3304 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3305 New public methods.
3306 <record_pending_block, finish_block_internal, make_blockvector,
3307 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3308 private methods.
3309 Update all users.
3310
3311 2018-05-22 Tom Tromey <tom@tromey.com>
3312
3313 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3314 parameter.
3315 (finish_block_internal): Update.
3316
3317 2018-07-20 Tom Tromey <tom@tromey.com>
3318
3319 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3320 parameter.
3321 (finish_block_internal): Update.
3322
3323 2018-07-20 Tom Tromey <tom@tromey.com>
3324
3325 * buildsym.h (EXTERN): Don't define or undef.
3326 * buildsym.c (EXTERN): Don't define.
3327
3328 2018-07-20 Tom Tromey <tom@tromey.com>
3329
3330 * buildsym.c: Remove TODO comment.
3331
3332 2018-07-20 Tom Tromey <tom@tromey.com>
3333
3334 * coffread.c (coff_symtab_read): Update.
3335 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3336 (xcoff_new_init): Update.
3337 * mipsread.c (mipscoff_new_init): Update.
3338 * mdebugread.c (mdebug_build_psymtabs): Update.
3339 * elfread.c (elf_new_init): Update.
3340 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3341 Update.
3342 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3343 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3344 (stabsect_build_psymtabs): Update.
3345 * buildsym.h (buildsym_init): Don't declare.
3346 * buildsym.c: Update comment.
3347 (prepare_for_building): Remove.
3348 (start_symtab, restart_symtab): Update.
3349 (reset_symtab_globals): Update comment.
3350 (buildsym_init): Remove.
3351
3352 2018-07-20 Tom Tromey <tom@tromey.com>
3353
3354 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3355 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3356 (read_enum_type, common_block_start, common_block_end)
3357 (cleanup_undefined_types_1, finish_global_stabs): Update.
3358 * mdebugread.c (psymtab_to_symtab_1): Update.
3359 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3360 (read_lexical_block_scope, new_symbol): Update.
3361 * dbxread.c (process_one_symbol): Update.
3362 * coffread.c (coff_symtab_read, process_coff_symbol)
3363 (coff_read_enum_type): Update.
3364 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3365 declare.
3366 (get_local_symbols, get_file_symbols, get_global_symbols): New
3367 functions.
3368 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3369 m_global_symbols.
3370 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3371 (~scoped_free_pendings): Update.
3372 (finish_block, prepare_for_building, reset_symtab_globals)
3373 (end_symtab_get_static_block, end_symtab_with_blockvector)
3374 (augment_type_symtab, push_context): Update.
3375 (get_local_symbols, get_file_symbols, get_global_symbols): New
3376 functions.
3377 (buildsym_init): Update.
3378
3379 2018-07-20 Tom Tromey <tom@tromey.com>
3380
3381 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3382 (process_full_type_unit): Likewise.
3383 (dwarf2_start_symtab): Set list_in_scope.
3384
3385 2018-07-20 Tom Tromey <tom@tromey.com>
3386
3387 * dwarf2read.c (process_psymtab_comp_unit_reader)
3388 (build_type_psymtabs_reader): Do not set list_in_scope.
3389
3390 2018-07-20 Tom Tromey <tom@tromey.com>
3391
3392 * buildsym.c (free_pendings): Remove.
3393 (add_symbol_to_list, scoped_free_pendings)
3394 (finish_block_internal, buildsym_init): Update.
3395
3396 2018-07-20 Tom Tromey <tom@tromey.com>
3397
3398 * xcoffread.c (read_xcoff_symtab): Update.
3399 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3400 Update.
3401 * dbxread.c (process_one_symbol): Update.
3402 * coffread.c (coff_symtab_read): Update.
3403 * buildsym.h (finish_block): Update.
3404 * buildsym.c (finish_block): Remove "listhead" argument.
3405 (end_symtab_get_static_block): Update.
3406
3407 2018-07-20 Tom Tromey <tom@tromey.com>
3408
3409 * buildsym.h (class scoped_free_pendings): Remove constructor.
3410 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3411 method.
3412 <m_pending_block_obstack, m_pending_blocks>: New members.
3413 (pending_block_obstack, pending_blocks): Remove.
3414 (scoped_free_pendings::scoped_free_pendings): Default.
3415 (~scoped_free_pendings): Update.
3416 (free_pending_blocks): Remove.
3417 (finish_block_internal, record_pending_block, make_blockvector)
3418 (end_symtab_get_static_block, augment_type_symtab, push_context)
3419 (buildsym_init): Update.
3420
3421 2018-07-20 Tom Tromey <tom@tromey.com>
3422
3423 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3424 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3425 members.
3426 (pending_addrmap, pending_addrmap_obstack)
3427 (pending_addrmap_interesting): Remove.
3428 (scoped_free_pendings, record_block_range, make_blockvector)
3429 (prepare_for_building, reset_symtab_globals, buildsym_init):
3430 Update.
3431
3432 2018-07-20 Tom Tromey <tom@tromey.com>
3433
3434 * xcoffread.c (process_linenos): Update.
3435 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3436 * mdebugread.c (psymtab_to_symtab_1): Update.
3437 * dwarf2read.c (setup_type_unit_groups)
3438 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3439 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3440 * dbxread.c (process_one_symbol): Update.
3441 * coffread.c (coff_symtab_read, enter_linenos)
3442 (process_coff_symbol): Update.
3443 * buildsym.h (current_subfile): Don't declare.
3444 (get_current_subfile): Declare.
3445 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3446 member.
3447 (start_subfile, free_buildsym_compunit, push_subfile)
3448 (prepare_for_building, start_symtab): Update.
3449 (get_current_subfile): New function.
3450
3451 2018-07-20 Tom Tromey <tom@tromey.com>
3452
3453 * coffread.c (coff_symtab_read): Update.
3454 * xcoffread.c (read_xcoff_symtab): Update.
3455 * dwarf2read.c (new_symbol): Update.
3456 (read_func_scope, read_lexical_block_scope): Update.
3457 * dbxread.c (process_one_symbol): Update.
3458 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3459 (outermost_context_p): Remove macro.
3460 (outermost_context_p, get_current_context_stack)
3461 (get_context_stack_depth): Declare.
3462 (pop_context): Return struct context_stack.
3463 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3464 member.
3465 (context_stack_size): Remove.
3466 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3467 (prepare_for_building, end_symtab_get_static_block)
3468 (augment_type_symtab, push_context): Update.
3469 (pop_context): Return struct context_stack.
3470 (outermost_context_p, get_current_context_stack)
3471 (get_context_stack_depth): New functions.
3472 (buildsym_init): Update.
3473
3474 2018-07-20 Tom Tromey <tom@tromey.com>
3475
3476 * rust-exp.y: Now a pure parser. Update all rules.
3477 (%union): Move earlier.
3478 (current_parser, work_obstack): Remove globals.
3479 (rust_parser, ~rust_parser): Update.
3480 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3481 lex_character, lex_number, lex_string, lex_identifier,
3482 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3483 convert_name, convert_params_to_expression,
3484 convert_ast_to_expression, ast_basic_type, ast_operation,
3485 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3486 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3487 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3488 ast_array_type, ast_slice_type, ast_reference_type,
3489 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3490 (rust_parse): Update.
3491 (rustyyerror, rustyylex): Add parser parameter.
3492 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3493 (rust_lex_stringish_test, rust_lex_test_sequence)
3494 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3495 (rust_lex_test_push_back, rust_lex_tests): Update.
3496
3497 2018-07-19 Pedro Alves <palves@redhat.com>
3498
3499 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3500 gdb::unique_xmalloc_ptr.
3501 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3502 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3503 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3504 copy-initialization.
3505 * guile/scm-pretty-print.c (ppscm_print_children): Use
3506 gdb::unique_xmalloc_ptr instead of cleanups.
3507 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3508 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3509 gdb::unique_xmalloc_ptr.
3510 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3511 Adjust to use gdb::unique_xmalloc_ptr.
3512 * guile/scm-utils.c (extract_arg): Adjust.
3513 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3514 gdb::unique_xmalloc_ptr instead of a cleanup.
3515
3516 2018-07-19 Tom Tromey <tom@tromey.com>
3517
3518 * utils.c (do_value_free_to_mark)
3519 (make_cleanup_value_free_to_mark): Remove.
3520 * utils.h (make_cleanup_value_free_to_mark): Remove.
3521
3522 2018-07-19 Pedro Alves <palves@redhat.com>
3523
3524 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3525 forwarding reference.
3526
3527 2018-07-18 Pedro Alves <palves@redhat.com>
3528
3529 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3530 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3531 cleanup.
3532
3533 2018-07-18 Pedro Alves <palves@redhat.com>
3534
3535 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3536 exceptions.
3537 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3538 (gdbscm_wrap): New.
3539 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3540 directly instead of a cleanup.
3541 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3542 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3543 (vlscm_binop_gdbthrow): New, factored out from ...
3544 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3545 (vlscm_rich_compare): Use gdbscm_wrap.
3546 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3547 instead of a cleanup.
3548 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3549 cleanup.
3550 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3551 Use xfree directly instead of a cleanup.
3552 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3553 Adjust to use gdbscm_wrap and scoped_value_mark.
3554 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3555 (gdbscm_value_address, gdbscm_value_dereference)
3556 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3557 scoped_value_mark.
3558 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3559 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3560 scoped_value_mark.
3561 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3562 gdbscm_wrap and scoped_value_mark.
3563 (gdbscm_value_to_string): Use xfree directly instead of a
3564 cleanup. Move 'buffer' unique_ptr to TRY scope.
3565 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3566 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3567 scoped_value_mark.
3568 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3569 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3570 scoped_value_mark.
3571 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3572 gdbscm_wrap.
3573
3574 2018-07-18 Tom de Vries <tdevries@suse.de>
3575
3576 * findvar.c (default_read_var_value): Also resolve dynamic type for
3577 LOC_OPTIMIZED_OUT vars.
3578
3579 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3580
3581 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3582 decoding.
3583
3584 2018-07-17 Tom Tromey <tom@tromey.com>
3585
3586 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3587 (compute_enum_list, pascm_set_param_value_x)
3588 (gdbscm_parameter_value): Update.
3589 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3590 (gdbscm_scm_to_host_string): Update.
3591 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3592 Update.
3593 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3594 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3595 * guile/scm-string.c (gdbscm_scm_to_string): Return
3596 unique_xmalloc_ptr.
3597 (gdbscm_scm_to_host_string): Likewise.
3598
3599 2018-07-17 Tom Tromey <tom@tromey.com>
3600
3601 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3602 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3603 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3604 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3605 unique_xmalloc_ptr.
3606
3607 2018-07-17 Tom Tromey <tom@tromey.com>
3608
3609 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3610 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3611 Update.
3612 * guile/scm-cmd.c (cmdscm_function): Update.
3613 * guile/scm-pretty-print.c
3614 (ppscm_print_exception_unless_memory_error): Update.
3615 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3616 Return unique_xmalloc_ptr.
3617
3618 2018-07-17 Tom Tromey <tom@tromey.com>
3619
3620 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3621 Use string_printf.
3622
3623 2018-07-17 Jim Wilson <jimw@sifive.com>
3624
3625 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3626 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3627 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3628 unecessary braces after EF_RISCV_RVC test. Delete call to
3629 set_gdbarch_decr_pc_after_break.
3630
3631 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3632 RISCV_LAST_FP_REGNUM + 1.
3633 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3634
3635 2018-07-17 Tom Tromey <tom@tromey.com>
3636
3637 * configure.ac: Remove --disable-gdbcli.
3638 * configure: Rebuild.
3639 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3640 (SUBDIR_CLI_CFLAGS): Remove.
3641 (SFILES): Use SUBDIR_CLI_SRCS.
3642 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3643
3644 2018-07-17 Tom Tromey <tom@tromey.com>
3645
3646 PR gdb/18624:
3647 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3648
3649 2018-07-16 Jim Wilson <jimw@sifive.com>
3650
3651 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3652
3653 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3654
3655 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3656 variable.
3657 (libunwind_frame_sniffer): Likewise.
3658 (libunwind_frame_prev_register): Likewise.
3659 (libunwind_sigtramp_frame_sniffer): Likewise.
3660 * ia64-tdep.c (ia64_access_reg): Likewise.
3661 (ia64_access_rse_reg): Likewise.
3662 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3663 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3664
3665 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3666
3667 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3668
3669 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3670
3671 * remote-sim.c (gdbsim_target::close,
3672 gdbsim_target::mourn_inferior): Remove unused variables.
3673
3674 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3675
3676 * ia64-tdep.c (ktab_buf): New global.
3677 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3678 (get_kernel_table): Adjust.
3679
3680 2018-07-16 Tom Tromey <tom@tromey.com>
3681
3682 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3683 * dwarf2read.c (using_directives, new_symbol): Use
3684 outermost_context_p.
3685 * dbxread.c (process_one_symbol): Use outermost_context_p.
3686 * coffread.c (coff_symtab_read): Use outermost_context_p.
3687
3688 2018-07-16 Tom Tromey <tom@tromey.com>
3689
3690 * dwarf2read.c (using_directives, read_func_scope)
3691 (read_lexical_block_scope): Update.
3692 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3693 * buildsym.h (local_using_directives, global_using_directives):
3694 Don't declare.
3695 (get_local_using_directives, set_local_using_directives)
3696 (get_global_using_directives): Declare.
3697 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3698 m_global_using_directives>: New members.
3699 (finish_block_internal, prepare_for_building)
3700 (reset_symtab_globals, end_symtab_get_static_block)
3701 (push_context): Update.
3702 (get_local_using_directives, set_local_using_directives)
3703 (get_global_using_directives): New functions.
3704 (buildsym_init): Update.
3705
3706 2018-07-16 Tom Tromey <tom@tromey.com>
3707
3708 * xcoffread.c (xcoff_initial_scan): Don't call
3709 free_pending_blocks.
3710 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3711 * buildsym.h (class scoped_free_pendings): Add constructor.
3712 (free_pending_blocks): Don't declare.
3713 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3714 (free_pending_blocks): Now static.
3715
3716 2018-07-16 Tom Tromey <tom@tromey.com>
3717
3718 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3719 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3720 member.
3721 (struct subfile_stack): Remove.
3722 (subfile_stack): Remove.
3723 (push_subfile, pop_subfile, buildsym_init): Update.
3724
3725 2018-07-16 Tom Tromey <tom@tromey.com>
3726
3727 * buildsym.c (push_subfile): Use gdb_assert.
3728 (pop_subfile): Use gdb_assert.
3729
3730 2018-07-16 Tom Tromey <tom@tromey.com>
3731
3732 * buildsym.h (merge_symbol_lists): Remove.
3733 * buildsym.c (merge_symbol_lists): Remove.
3734
3735 2018-07-16 Tom Tromey <tom@tromey.com>
3736
3737 * stabsread.c (scan_file_globals): Update comment.
3738 * stabsread.h (scan_file_globals): Move from buildsym.h.
3739 * buildsym.h (scan_file_globals): Move to stabsread.h.
3740
3741 2018-07-16 Tom Tromey <tom@tromey.com>
3742
3743 * xcoffread.c (xcoff_new_init): Update.
3744 * mipsread.c (mipscoff_new_init): Update.
3745 * mdebugread.c (mdebug_build_psymtabs): Update.
3746 * elfread.c (elf_new_init): Update.
3747 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3748 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3749 * buildsym.h (buildsym_new_init): Don't declare.
3750 * buildsym.c (buildsym_new_init): Remove.
3751
3752 2018-07-16 Tom Tromey <tom@tromey.com>
3753
3754 * stabsread.h (within_function): Move from buildsym.h.
3755 * stabsread.c (start_stabs): Clear within_function.
3756 * coffread.c (coff_start_symtab): Clear within_function.
3757 * buildsym.h (within_function): Move to stabsread.h.
3758 * buildsym.c (prepare_for_building): Update.
3759
3760 2018-07-16 Tom Tromey <tom@tromey.com>
3761
3762 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3763 * dwarf2read.c (dwarf2_start_symtab): Don't set
3764 processing_gcc_compilation.
3765 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3766
3767 2018-07-16 Tom Tromey <tom@tromey.com>
3768
3769 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3770 (next_symbol_text_func): Move from buildsym.h.
3771 * stabsread.c (hashname): Move from buildsym.c.
3772 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3773 (next_symbol_text_func, hashname): Move to stabsread.h.
3774 * buildsym.c: Don't include bcache.h
3775 (hashname): Move to stasbread.c.
3776
3777 2018-07-16 Tom Tromey <tom@tromey.com>
3778
3779 * buildsym.h (context_stack_size): Don't declare.
3780 * buildsym.c (context_stack_size): New global.
3781
3782 2018-07-16 Tom Tromey <tom@tromey.com>
3783
3784 * dbxread.c (processing_acc_compilation): New global.
3785 * buildsym.h (processing_acc_compilation): Don't declare.
3786
3787 2018-07-16 Tom Tromey <tom@tromey.com>
3788
3789 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3790 * dbxread.c (read_ofile_symtab): Update.
3791 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3792 * buildsym.h (last_source_start_addr): Remove.
3793 (set_last_source_start_addr, get_last_source_start_addr):
3794 Declare.
3795 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3796 parameter.
3797 (struct buildsym_compunit) <m_last_source_start_addr>: New
3798 member.
3799 (prepare_for_building): Remove start_addr parameter.
3800 (start_symtab, restart_symtab, end_symtab_get_static_block)
3801 (end_symtab_with_blockvector): Update.
3802 (set_last_source_start_addr, get_last_source_start_addr): New
3803 functions.
3804
3805 2018-07-16 Tom Tromey <tom@tromey.com>
3806
3807 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3808 member.
3809 (have_line_numbers): Remove.
3810 (record_line, prepare_for_building, end_symtab_get_static_block)
3811 (augment_type_symtab): Update.
3812
3813 2018-07-16 Tom Tromey <tom@tromey.com>
3814
3815 * buildsym.c (~buildsym_compunit): Free the macro table.
3816 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3817 methods.
3818 <m_pending_macros>: New member.
3819 (pending_macros): Remove.
3820 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3821 (reset_symtab_globals, end_symtab_get_static_block)
3822 (end_symtab_with_blockvector, augment_type_symtab)
3823 (buildsym_init): Update.
3824
3825 2018-07-16 Tom Tromey <tom@tromey.com>
3826
3827 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3828 parameter.
3829 (buildsym_compunit::set_last_source_file): New method.
3830 <m_last_source_file>: New member.
3831 (prepare_for_building): Remove "name" parameter.
3832 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3833 (last_source_file): Remove.
3834 (set_last_source_file, get_last_source_file): Update.
3835
3836 2018-07-16 Tom Tromey <tom@tromey.com>
3837
3838 * buildsym.c (prepare_for_building): Add assert.
3839
3840 2018-07-16 Tom Tromey <tom@tromey.com>
3841
3842 * buildsym.c (~buildsym_compunit): Update.
3843 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3844 (start_subfile, patch_subfile_names)
3845 (end_symtab_with_blockvector): Update.
3846
3847 2018-07-16 Tom Tromey <tom@tromey.com>
3848
3849 * buildsym.c (struct buildsym_compunit): Add constructor,
3850 destructor, initializers.
3851 (start_buildsym_compunit): Remove.
3852 (free_buildsym_compunit): Use "delete".
3853 (start_symtab, restart_symtab): Use "new".
3854
3855 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3856
3857 * symfile.c (set_objfile_default_section_offset): Remove struct
3858 keyword.
3859
3860 2018-07-14 Stafford Horne <shorne@gmail.com>
3861
3862 * (Responsible Maintainers): Add myself as or1k maintainer.
3863
3864 2018-07-13 Tom Tromey <tom@tromey.com>
3865
3866 * symfile.c (set_objfile_default_section_offset): Use extra braces
3867 around initializer.
3868
3869 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3870
3871 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3872 non-branching basr.
3873
3874 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3875
3876 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3877 unittests/cli-utils-selftests.c
3878 * unittests/cli-utils-selftests.c: New file.
3879
3880 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3881
3882 * NEWS: Mention new commands. Mention change to 'thread apply'.
3883
3884 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3885
3886 * thread.c (thr_try_catch_cmd): New function.
3887 (thread_apply_all_command): Handle qcs flags.
3888 (thread_apply_command): Handle qcs flags.
3889 (taas_command): New function.
3890 (tfaas_command): New function.
3891 (_initialize_thread): Update to setup the new commands 'taas
3892 and 'tfaas'. Change doc string for 'thread apply'.
3893
3894 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3895
3896 * stack.c: (trailing_outermost_frame): New function, mostly
3897 extracted from backtrace_command_1.
3898 (leading_innermost_frame): New function.
3899 (backtrace_command_1): Update to call trailing_outermost_frame.
3900 (frame_apply_command_count): New function.
3901 (frame_apply_level_command): New function.
3902 (frame_apply_all_command): New function.
3903 (frame_apply_command): New function.
3904 (faas_command): New function.
3905 (frame_cmd_list): New variable.
3906 (_initialize_stack): Update to setup the new commands 'frame apply'
3907 and 'faas'.
3908
3909 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3910
3911 * cli-utils.c (number_or_range_parser::get_number): Only handle
3912 numbers or convenience var as numbers.
3913 (parse_flags): New function.
3914 (parse_flags_qcs): New function.
3915 (number_or_range_parser::finished): Ensure parsing end is detected
3916 before end of string.
3917 * cli-utils.h (parse_flags): New function.
3918 (parse_flags_qcs): New function.
3919 (number_or_range_parser): Remove m_finished bool.
3920 (number_or_range_parser::skip_range): Set m_in_range to false.
3921
3922 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3923
3924 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3925 on Windows.
3926
3927 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3928 Jan Kratochvil <jan.kratochvil@redhat.com>
3929 Paul Fertser <fercerpav@gmail.com>
3930 Tsutomu Seki <sekiriki@gmail.com>
3931 Pedro Alves <palves@redhat.com>
3932
3933 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3934 'unittests/parse-connection-spec-selftests.c'.
3935 (COMMON_SFILES): Add 'common/netstuff.c'.
3936 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3937 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3938 * common/netstuff.c: New file.
3939 * common/netstuff.h: New file.
3940 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3941 (wait_for_connect): Update comment. New parameter
3942 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3943 Use 'sock' directly instead of 'scb->fd'.
3944 (try_connect): New function, with code from 'net_open'.
3945 (net_open): Rewrite main loop to deal with multiple
3946 sockets/addresses. Handle IPv6-style hostnames; implement
3947 support for IPv6 connections.
3948 * unittests/parse-connection-spec-selftests.c: New file.
3949
3950 2018-07-11 Pedro Alves <palves@redhat.com>
3951
3952 PR gdb/23377
3953 * remote.c (remote_target::remote_detach_pid): Call
3954 set_current_process.
3955
3956 2018-07-11 Pedro Alves <palves@redhat.com>
3957
3958 * h8300-tdep.c (h8300_gdbarch_init): Remove
3959 set_gdbarch_ecoff_reg_to_regnum calls.
3960
3961 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3962
3963 PR c++/23373
3964 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3965 offsets/sizes for static members of a class/struct.
3966
3967 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3968
3969 * target-descriptions.c (tdesc_register_bitsize): Rename.
3970 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3971 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3972 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3973
3974 2018-07-10 Tom Tromey <tom@tromey.com>
3975
3976 * breakpoint.c (moribund_locations): Now static and a
3977 std::vector.
3978 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3979 (build_bpstat_chain, update_global_location_list)
3980 (breakpoint_retire_moribund): Update.
3981 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3982 VEC.
3983
3984 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3985
3986 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3987 (riscv_register_reggroup_p): Use new function, remove unneeded
3988 parenthesis.
3989 (riscv_push_dummy_call): Extend assert to compare against xlen or
3990 flen based on register type.
3991
3992 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3993
3994 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3995
3996 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3997
3998 * remote.c (show_hardware_watchpoint_limit): New function.
3999 (show_hardware_watchpoint_length_limit): New function.
4000 (show_hardware_breakpoint_limit): New function.
4001 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4002 where appropriate, update help text.
4003
4004 2018-07-09 Tom Tromey <tom@tromey.com>
4005
4006 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4007 (CLIBS): Don't mention NAT_CLIBS.
4008
4009 2018-07-09 Tom Tromey <tom@tromey.com>
4010
4011 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4012 (LIBGDB_OBS, clean mostlyclean): Update.
4013 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4014
4015 2018-07-09 Tom Tromey <tom@tromey.com>
4016
4017 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4018 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4019 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4020
4021 2018-07-09 Tom Tromey <tom@tromey.com>
4022
4023 * Makefile.in (ALLDEPFILES): Remove exec.c.
4024 (COMMON_OBS): Remove exec.o.
4025 (COMMON_SFILES): Add exec.c.
4026
4027 2018-07-09 Tom Tromey <tom@tromey.com>
4028
4029 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4030
4031 2018-07-09 Tom Tromey <tom@tromey.com>
4032
4033 * Makefile.in (clean mostlyclean): Remove stamp-version.
4034 (version.c): Depend on stamp-version.
4035 (stamp-version): New rule, from version.c rule.
4036
4037 2018-07-09 Tom Tromey <tom@tromey.com>
4038
4039 * Makefile.in (init.c): Depend on stamp-init.
4040 (stamp-init): New rule, from init.c rule.
4041 (clean mostlyclean): Remove stamp-init.
4042
4043 2018-07-09 Tom Tromey <tom@tromey.com>
4044
4045 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4046 SUBDIR_GCC_COMPILE_SRCS.
4047
4048 2018-07-09 Tom Tromey <tom@tromey.com>
4049
4050 * Makefile.in (init.c): Remove some unused sed rules.
4051
4052 2018-07-09 Tom Tromey <tom@tromey.com>
4053
4054 * Makefile.in (TSOBS): Remove.
4055 (INIT_FILES): Update.
4056 (LIBGDB_OBS): Update.
4057 (COMMON_SFILES): Add inflow.c.
4058 (SFILES): Remove inflow.c.
4059
4060 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4061
4062 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4063
4064 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4065
4066 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4067 get_saveloc_name, is_signal_frame_name, step_name,
4068 init_remote_name, create_addr_space_name,
4069 destroy_addr_space_name, search_unwind_table_name,
4070 find_dyn_list_name): Constify.
4071
4072 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4073
4074 * darwin-nat.c (darwin_pthread_kill): New function.
4075 (darwin_resume_thread): Use darwin_pthread_kill.
4076
4077 2018-07-05 Tom de Vries <tdevries@suse.de>
4078
4079 * macroexp.c (macro_buffer) <operator=>: New member function.
4080
4081 2018-07-04 Tom Tromey <tom@tromey.com>
4082
4083 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4084
4085 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4086
4087 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4088 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4089 * maint.c: Likewise.
4090 * top.c: Likewise.
4091
4092 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4093
4094 * NEWS: Create a new section for the next release branch.
4095 Rename the section of the current branch, now that it has
4096 been cut.
4097
4098 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4099
4100 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4101 * version.in: Bump version to 8.2.50.DATE-git.
4102
4103 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4104 Pedro Alves <palves@redhat.com>
4105
4106 * linux-nat.c (linux_init_ptrace): Rename to ...
4107 (linux_init_ptrace_procfs): ... this. Call
4108 linux_proc_init_warnings.
4109 (linux_nat_target::post_attach)
4110 (linux_nat_target::post_startup_inferior): Adjust.
4111 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4112 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4113
4114 2018-07-04 Tom de Vries <tdevries@suse.de>
4115
4116 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4117 check ...
4118 (read_comp_unit_head): ... here.
4119
4120 2018-07-03 Tom Tromey <tom@tromey.com>
4121
4122 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4123 (stop_tracing, tstatus_command)
4124 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4125 (print_one_static_tracepoint_marker): Update.
4126 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4127 std::vector.
4128 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4129 VEC.
4130 (all_tracepoints, static_tracepoints_here): Return std::vector.
4131
4132 2018-07-03 Tom Tromey <tom@tromey.com>
4133
4134 * common/ptid.c (ptid_equal): Remove.
4135 * common/ptid.h (ptid_equal): Don't declare.
4136 * ada-tasks.c: Update.
4137 * breakpoint.c: Update.
4138 * common/agent.c: Update.
4139 * corelow.c: Update.
4140 * darwin-nat-info.c: Update.
4141 * darwin-nat.c: Update.
4142 * dcache.c: Update.
4143 * dtrace-probe.c: Update.
4144 * dummy-frame.c: Update.
4145 * fbsd-nat.c: Update.
4146 * frame.c: Update.
4147 * gdbthread.h: Update.
4148 * gnu-nat.c: Update.
4149 * go32-nat.c: Update.
4150 * inf-loop.c: Update.
4151 * inf-ptrace.c: Update.
4152 * infcall.c: Update.
4153 * infcmd.c: Update.
4154 * inflow.c: Update.
4155 * infrun.c: Update.
4156 * linux-fork.c: Update.
4157 * linux-nat.c: Update.
4158 * linux-thread-db.c: Update.
4159 * mi/mi-cmd-var.c: Update.
4160 * mi/mi-interp.c: Update.
4161 * mi/mi-main.c: Update.
4162 * nto-procfs.c: Update.
4163 * ppc-linux-tdep.c: Update.
4164 * procfs.c: Update.
4165 * python/py-inferior.c: Update.
4166 * python/py-record-btrace.c: Update.
4167 * python/py-record.c: Update.
4168 * ravenscar-thread.c: Update.
4169 * regcache.c: Update.
4170 * remote-sim.c: Update.
4171 * remote.c: Update.
4172 * sol-thread.c: Update.
4173 * solib.c: Update.
4174 * target.c: Update.
4175 * tui/tui-stack.c: Update.
4176 * varobj.c: Update.
4177 * windows-nat.c: Update.
4178 * windows-tdep.c: Update.
4179
4180 2018-07-03 Tom Tromey <tom@tromey.com>
4181
4182 * common/ptid.c (ptid_match): Remove.
4183 * common/ptid.h (ptid_match): Don't declare.
4184 * fbsd-nat.c: Update.
4185 * infcmd.c: Update.
4186 * infrun.c: Update.
4187 * linux-nat.c: Update.
4188 * record-btrace.c: Update.
4189 * regcache.c: Update.
4190 * remote.c: Update.
4191
4192 2018-07-03 Tom Tromey <tom@tromey.com>
4193
4194 * common/ptid.c (ptid_tid_p): Remove.
4195 * common/ptid.h (ptid_tid_p): Don't declare.
4196 * sol-thread.c: Update.
4197
4198 2018-07-03 Tom Tromey <tom@tromey.com>
4199
4200 * common/ptid.c (ptid_lwp_p): Remove.
4201 * common/ptid.h (ptid_lwp_p): Don't declare.
4202 * fbsd-nat.c: Update.
4203 * linux-nat.c: Update.
4204 * nat/linux-procfs.c: Update.
4205 * nat/x86-linux-dregs.c: Update.
4206 * sol-thread.c: Update.
4207
4208 2018-07-03 Tom Tromey <tom@tromey.com>
4209
4210 * common/ptid.c (ptid_is_pid): Remove.
4211 * common/ptid.h (ptid_is_pid): Don't declare.
4212 * infrun.c: Update.
4213 * linux-nat.c: Update.
4214 * mi/mi-interp.c: Update.
4215 * remote.c: Update.
4216 * thread.c: Update.
4217
4218 2018-07-03 Tom Tromey <tom@tromey.com>
4219
4220 * common/ptid.c (ptid_get_tid): Remove.
4221 * common/ptid.h (ptid_get_tid): Don't declare.
4222 * ada-tasks.c: Update.
4223 * aix-thread.c: Update.
4224 * bsd-uthread.c: Update.
4225 * darwin-nat.c: Update.
4226 * fbsd-nat.c: Update.
4227 * i386-darwin-nat.c: Update.
4228 * infrun.c: Update.
4229 * linux-tdep.c: Update.
4230 * nto-procfs.c: Update.
4231 * ppc-ravenscar-thread.c: Update.
4232 * python/py-infthread.c: Update.
4233 * ravenscar-thread.c: Update.
4234 * sol-thread.c: Update.
4235 * sparc-ravenscar-thread.c: Update.
4236 * windows-nat.c: Update.
4237
4238 2018-07-03 Tom Tromey <tom@tromey.com>
4239
4240 * common/ptid.c (ptid_get_lwp): Remove.
4241 * common/ptid.h (ptid_get_lwp): Don't declare.
4242 * aarch64-linux-nat.c: Update.
4243 * ada-tasks.c: Update.
4244 * aix-thread.c: Update.
4245 * amd64-linux-nat.c: Update.
4246 * arm-linux-nat.c: Update.
4247 * corelow.c: Update.
4248 * fbsd-nat.c: Update.
4249 * fbsd-tdep.c: Update.
4250 * gnu-nat.c: Update.
4251 * i386-cygwin-tdep.c: Update.
4252 * i386-gnu-nat.c: Update.
4253 * i386-linux-nat.c: Update.
4254 * ia64-linux-nat.c: Update.
4255 * inf-ptrace.c: Update.
4256 * infrun.c: Update.
4257 * linux-fork.c: Update.
4258 * linux-nat.c: Update.
4259 * linux-tdep.c: Update.
4260 * linux-thread-db.c: Update.
4261 * mips-linux-nat.c: Update.
4262 * nat/aarch64-linux-hw-point.c: Update.
4263 * nat/aarch64-linux.c: Update.
4264 * nat/linux-btrace.c: Update.
4265 * nat/linux-osdata.c: Update.
4266 * nat/linux-procfs.c: Update.
4267 * nat/x86-linux-dregs.c: Update.
4268 * obsd-nat.c: Update.
4269 * ppc-fbsd-nat.c: Update.
4270 * ppc-linux-nat.c: Update.
4271 * procfs.c: Update.
4272 * python/py-infthread.c: Update.
4273 * ravenscar-thread.c: Update.
4274 * remote.c: Update.
4275 * s390-linux-nat.c: Update.
4276 * sol-thread.c: Update.
4277 * sol2-tdep.c: Update.
4278 * spu-linux-nat.c: Update.
4279 * x86-linux-nat.c: Update.
4280 * xtensa-linux-nat.c: Update.
4281
4282 2018-07-03 Tom Tromey <tom@tromey.com>
4283
4284 * common/ptid.c (ptid_get_pid): Remove.
4285 * common/ptid.h (ptid_get_pid): Don't declare.
4286 * aarch64-linux-nat.c: Update.
4287 * ada-lang.c: Update.
4288 * aix-thread.c: Update.
4289 * alpha-bsd-nat.c: Update.
4290 * amd64-fbsd-nat.c: Update.
4291 * amd64-linux-nat.c: Update.
4292 * arm-linux-nat.c: Update.
4293 * arm-nbsd-nat.c: Update.
4294 * auxv.c: Update.
4295 * break-catch-syscall.c: Update.
4296 * breakpoint.c: Update.
4297 * bsd-uthread.c: Update.
4298 * corelow.c: Update.
4299 * ctf.c: Update.
4300 * darwin-nat.c: Update.
4301 * fbsd-nat.c: Update.
4302 * fbsd-tdep.c: Update.
4303 * gcore.c: Update.
4304 * gnu-nat.c: Update.
4305 * hppa-nbsd-nat.c: Update.
4306 * hppa-obsd-nat.c: Update.
4307 * i386-fbsd-nat.c: Update.
4308 * ia64-linux-nat.c: Update.
4309 * inf-ptrace.c: Update.
4310 * infcmd.c: Update.
4311 * inferior.c: Update.
4312 * inferior.h: Update.
4313 * inflow.c: Update.
4314 * infrun.c: Update.
4315 * linux-fork.c: Update.
4316 * linux-nat.c: Update.
4317 * linux-tdep.c: Update.
4318 * linux-thread-db.c: Update.
4319 * m68k-bsd-nat.c: Update.
4320 * mi/mi-interp.c: Update.
4321 * mi/mi-main.c: Update.
4322 * mips-linux-nat.c: Update.
4323 * mips-nbsd-nat.c: Update.
4324 * mips64-obsd-nat.c: Update.
4325 * nat/aarch64-linux-hw-point.c: Update.
4326 * nat/aarch64-linux.c: Update.
4327 * nat/linux-btrace.c: Update.
4328 * nat/linux-osdata.c: Update.
4329 * nat/linux-procfs.c: Update.
4330 * nat/x86-linux-dregs.c: Update.
4331 * nto-procfs.c: Update.
4332 * obsd-nat.c: Update.
4333 * ppc-linux-nat.c: Update.
4334 * ppc-nbsd-nat.c: Update.
4335 * ppc-obsd-nat.c: Update.
4336 * proc-service.c: Update.
4337 * procfs.c: Update.
4338 * python/py-inferior.c: Update.
4339 * python/py-infthread.c: Update.
4340 * ravenscar-thread.c: Update.
4341 * record.c: Update.
4342 * remote-sim.c: Update.
4343 * remote.c: Update.
4344 * rs6000-nat.c: Update.
4345 * s390-linux-nat.c: Update.
4346 * sh-nbsd-nat.c: Update.
4347 * sol-thread.c: Update.
4348 * sparc-nat.c: Update.
4349 * sparc64-tdep.c: Update.
4350 * spu-linux-nat.c: Update.
4351 * spu-tdep.c: Update.
4352 * target-debug.h: Update.
4353 * target.c: Update.
4354 * thread.c: Update.
4355 * tid-parse.c: Update.
4356 * tracefile-tfile.c: Update.
4357 * vax-bsd-nat.c: Update.
4358 * windows-nat.c: Update.
4359 * x86-linux-nat.c: Update.
4360 * x86-nat.c: Update.
4361
4362 2018-07-03 Tom Tromey <tom@tromey.com>
4363
4364 * common/ptid.c (pid_to_ptid): Remove.
4365 * common/ptid.h (pid_to_ptid): Don't declare.
4366 * aix-thread.c: Update.
4367 * arm-linux-nat.c: Update.
4368 * common/ptid.c: Update.
4369 * common/ptid.h: Update.
4370 * corelow.c: Update.
4371 * ctf.c: Update.
4372 * darwin-nat.c: Update.
4373 * fbsd-nat.c: Update.
4374 * fork-child.c: Update.
4375 * gnu-nat.c: Update.
4376 * go32-nat.c: Update.
4377 * inf-ptrace.c: Update.
4378 * infcmd.c: Update.
4379 * inferior.c: Update.
4380 * infrun.c: Update.
4381 * linux-fork.c: Update.
4382 * linux-nat.c: Update.
4383 * nat/aarch64-linux-hw-point.c: Update.
4384 * nat/fork-inferior.c: Update.
4385 * nat/x86-linux-dregs.c: Update.
4386 * nto-procfs.c: Update.
4387 * obsd-nat.c: Update.
4388 * procfs.c: Update.
4389 * progspace.c: Update.
4390 * remote.c: Update.
4391 * rs6000-nat.c: Update.
4392 * s390-linux-nat.c: Update.
4393 * sol-thread.c: Update.
4394 * spu-linux-nat.c: Update.
4395 * target.c: Update.
4396 * top.c: Update.
4397 * tracefile-tfile.c: Update.
4398 * windows-nat.c: Update.
4399
4400 2018-07-03 Tom Tromey <tom@tromey.com>
4401
4402 * common/ptid.h (ptid_build): Don't declare.
4403 * common/ptid.c (ptid_build): Remove.
4404 * aix-thread.c: Update.
4405 * bsd-kvm.c: Update.
4406 * bsd-uthread.c: Update.
4407 * common/agent.c: Update.
4408 * common/ptid.c: Update.
4409 * common/ptid.h: Update.
4410 * corelow.c: Update.
4411 * darwin-nat.c: Update.
4412 * fbsd-nat.c: Update.
4413 * gnu-nat.c: Update.
4414 * linux-fork.c: Update.
4415 * linux-nat.c: Update.
4416 * linux-thread-db.c: Update.
4417 * nat/linux-osdata.c: Update.
4418 * nat/linux-procfs.c: Update.
4419 * nto-procfs.c: Update.
4420 * obsd-nat.c: Update.
4421 * proc-service.c: Update.
4422 * procfs.c: Update.
4423 * ravenscar-thread.c: Update.
4424 * remote-sim.c: Update.
4425 * remote.c: Update.
4426 * sol-thread.c: Update.
4427 * target.c: Update.
4428 * windows-nat.c: Update.
4429
4430 2018-07-03 Tom Tromey <tom@tromey.com>
4431
4432 * infrun.c (follow_exec): Use exit_inferior_silent.
4433 * inferior.c (exit_inferior_num_silent): Remove.
4434 * inferior.h (exit_inferior_num_silent): Don't declare.
4435
4436 2018-07-03 Tom Tromey <tom@tromey.com>
4437
4438 PR cli/23340:
4439 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4440 inferior_ptid on error.
4441
4442 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4443 Simon Marchi <simon.marchi@polymtl.ca>
4444
4445 PR tdep/8282
4446 * disasm.h (gdb_disassembler): Add
4447 `m_disassembler_options_holder'. member
4448 * disasm.c (get_all_disassembler_options): New function.
4449 (gdb_disassembler::gdb_disassembler): Use it.
4450 (gdb_buffered_insn_length_init_dis): Likewise.
4451 (gdb_buffered_insn_length): Adjust accordingly.
4452 (set_disassembler_options): Handle options with arguments.
4453 (show_disassembler_options_sfunc): Likewise. Add a leading new
4454 line if showing options with descriptions.
4455 (disassembler_options_completer): Adapt to using the
4456 `disasm_options_and_args_t' structure.
4457 * mips-tdep.c (mips_disassembler_options): New variable.
4458 (mips_disassembler_options_o32): Likewise.
4459 (mips_disassembler_options_n32): Likewise.
4460 (mips_disassembler_options_n64): Likewise.
4461 (gdb_print_insn_mips): Don't set `disassembler_options'.
4462 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4463 functions.
4464 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4465 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4466 `gdbarch_disassembler_options_implicit' and
4467 `gdbarch_valid_disassembler_options'.
4468 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4469 `disasm_options_and_args_t' structure.
4470 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4471 method.
4472 (valid_disassembler_options): Switch from `disasm_options_t' to
4473 the `disasm_options_and_args_t' structure.
4474 * NEWS: Document `set disassembler-options' support for the MIPS
4475 target.
4476 * gdbarch.h: Regenerate.
4477 * gdbarch.c: Regenerate.
4478
4479 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4480
4481 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4482
4483 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4484
4485 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4486 parameter in call to amd64_target_description.
4487 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4488 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4489 (amd64fbsd_init_abi): Likewise.
4490 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4491 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4492 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4493 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4494
4495 2018-06-29 Pedro Alves <palves@redhat.com>
4496
4497 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4498 "segments" parameter.
4499 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4500 (_initialize_amd64_tdep): Update call to
4501 amd64_create_target_description.
4502 (amd64_target_description): Add "segments" parameter. Adjust
4503 the implementation to use it.
4504 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4505 call to amd64_create_target_description.
4506 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4507 * gdb/arch/amd64.h (amd64_create_target_description): Add
4508 "segments" register.
4509 * gdb/arch/amd64.c (amd64_create_target_description): Add
4510 "segments" parameter. Call create_feature_i386_64bit_segments
4511 only if SEGMENTS is true.
4512 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4513 call to amd64_create_target_description.
4514
4515 2018-06-29 Pedro Alves <palves@redhat.com>
4516
4517 * thread.c (thread_target_id_str): New, factored out from ...
4518 (print_thread_info_1): ... here. Use it to compute the max
4519 "Target Id" column width.
4520
4521 2018-06-29 Pedro Alves <palves@redhat.com>
4522
4523 * remote.c (remote_target::extra_thread_info): Delete
4524 'display_buf' and 'n' locals. from the cache, regardless of
4525 packet mechanims is in use. Use cache for qThreadExtra and qP
4526 methods too.
4527
4528 2018-06-29 Pedro Alves <palves@redhat.com>
4529
4530 * blockframe.c (find_pc_sect_containing_function): New function.
4531 * breakpoint.c (print_breakpoint_location): Don't call
4532 find_pc_sect_function.
4533 * linespec.c (create_sals_line_offset): Record the location's
4534 symbol in the sal.
4535 * linespec.c (convert_address_location_to_sals): Fill in sal's
4536 symbol with find_pc_sect_containing_function.
4537 * symtab.c (find_function_start_sal): Rename to ...
4538 (find_function_start_sal_1): ... this.
4539 (find_function_start_sal): Reimplement as wrapper around
4540 find_function_start_sal_1, and use
4541 find_pc_sect_containing_function to fill in the sal's symbol.
4542 (find_function_start_sal(symbol*, bool)): Adjust.
4543 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4544 comments.
4545 (find_pc_sect_containing_function): Declare.
4546
4547 2018-06-29 Pedro Alves <palves@redhat.com>
4548
4549 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4550 true if the the location has no symbol.
4551
4552 2018-06-28 Tom Tromey <tom@tromey.com>
4553
4554 * NEWS: Mention --enable-codesign.
4555 * silent-rules.mk (ECHO_SIGN): New variable.
4556 * configure.ac: Add --enable-codesign.
4557 * configure: Rebuild.
4558 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4559 (gdb$(EXEEXT)): Optionally invoke codesign.
4560
4561 2018-06-28 Pedro Alves <palves@redhat.com>
4562
4563 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4564 comments.
4565 (switch_to_thread_no_regs): Adjust comment.
4566 * infcmd.c (stop_pc): Delete.
4567 (post_create_inferior, info_program_command): Replace references
4568 to stop_pc with references to thread_info->suspend.stop_pc.
4569 * inferior.h (stop_pc): Delete declaration.
4570 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4571 (handle_inferior_event_1, handle_signal_stop)
4572 (process_event_stop_test, keep_going_stepped_thread)
4573 (handle_step_into_function, handle_step_into_function_backward)
4574 (print_stop_location): Replace references to stop_pc with
4575 references to thread_info->suspend.stop_pc.
4576 (struct infcall_suspend_state) <stop_pc>: Delete field.
4577 (save_infcall_suspend_state, restore_infcall_suspend_state):
4578 Remove references to inf_stat->stop_pc.
4579 * linux-fork.c (fork_load_infrun_state): Likewise.
4580 * record-btrace.c (record_btrace_set_replay): Likewise.
4581 * record-full.c (record_full_goto_entry): Likewise.
4582 * remote.c (print_one_stopped_thread): Likewise.
4583 * target.c (target_resume): Extend comment.
4584 * thread.c (set_executing_thread): New.
4585 (set_executing): Use it.
4586 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4587 Remove references to stop_pc.
4588
4589 2018-06-28 Pedro Alves <palves@redhat.com>
4590
4591 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4592 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4593
4594 2018-06-28 Tom Tromey <tom@tromey.com>
4595
4596 * coffread.c (coff_symfile_finish): Update.
4597 * xcoffread.c (xcoff_symfile_finish): Update.
4598 * elfread.c (elf_symfile_finish): Update.
4599 * symfile.h (dwarf2_free_objfile): Don't declare.
4600 * dwarf2read.c (_initialize_dwarf2_read): Use
4601 register_objfile_data_with_cleanup.
4602 (dwarf2_free_objfile): Now static. Change signature.
4603
4604 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4605
4606 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4607 option "-o" to add-symbol-file-load to add an offset to each
4608 section's load address.
4609 * symfile.c (set_objfile_default_section_offset): New function.
4610
4611 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4612
4613 * symfile.c (add_symbol_file_command): Make sure that sections
4614 with the same name are sorted in the same order.
4615
4616 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4617
4618 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4619 require the second argument. If omitted, load sections at the
4620 addresses specified in the file.
4621
4622 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4623
4624 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4625 (_initialize_symfile): Add option "-o" to symbol-file to add an
4626 offset to each section of the symbol file.
4627
4628 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4629
4630 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4631
4632 2018-06-27 Tom Tromey <tom@tromey.com>
4633
4634 * stack.c (_initialize_stack): Update "func" help text.
4635
4636 2018-06-27 Tom Tromey <tom@tromey.com>
4637
4638 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4639 std::vector.
4640 (unwind_infopy_str, pyuw_create_unwind_info)
4641 (unwind_infopy_add_saved_register, pyuw_sniffer)
4642 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4643 Update.
4644 (struct saved_reg): Add constructor.
4645 <value>: Now a gdbpy_ref<>.
4646
4647 2018-06-27 Tom Tromey <tom@tromey.com>
4648
4649 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4650
4651 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4652
4653 * gdb-gdb.py.in: Format using autopep8.
4654
4655 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4656
4657 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4658 (type_lookup_function): Recognize CORE_ADDR values.
4659
4660 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4661
4662 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4663 print tag_name.
4664
4665 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4666
4667 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4668 <__lt__>: Add.
4669
4670 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4671
4672 * gdb-gdb.py: Move to...
4673 * gdb-gdb.py.in: ... here.
4674 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4675 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4676 dependencies.
4677 (distclean): Remove gdb-gdb.py when cleaning.
4678 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4679 * configure: Re-generate.
4680
4681 2018-06-27 Pedro Alves <palves@redhat.com>
4682
4683 * proc-service.c (get_ps_regcache): New.
4684 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4685 (ps_lsetfpregs): Use it.
4686
4687 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4688
4689 PR gdb/21695
4690 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4691 (dwarf_decode_lines_1): Adjust.
4692
4693 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4694
4695 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4696 override.
4697 <info_proc>: Likewise.
4698
4699 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4700
4701 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4702 to windows_fetch_one_register, and only handle the case of
4703 fetching one register. Move the code that reloads the context
4704 and iterates over all registers if R is negative to...
4705 (windows_nat_target::fetch_registers): ... here.
4706 (do_windows_store_inferior_registers): Rename to
4707 windows_store_one_register, and only handle the case of storing
4708 one register. Move the code that handles the case where r is
4709 negative to...
4710 (windows_nat_target::store_registers) ... here.
4711
4712 2018-06-26 Tom Tromey <tom@tromey.com>
4713
4714 PR rust/22574:
4715 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4716 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4717 Update.
4718 (rust_internal_print_type): Add podata parameter.
4719 (rust_print_type): Update.
4720
4721 2018-06-26 Tom Tromey <tom@tromey.com>
4722
4723 * typeprint.h (struct print_offset_data) <update, finish,
4724 maybe_print_hole>: New methods.
4725 <indentation>: New constant.
4726 * typeprint.c (print_offset_data::indentation): Define.
4727 (print_offset_data::maybe_print_hole, print_offset_data::update)
4728 (print_offset_data::finish): Move from c-typeprint.c and rename.
4729 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4730 (print_spaces_filtered_with_print_options): Update.
4731 (c_print_type_union_field_offset, maybe_print_hole)
4732 (c_print_type_struct_field_offset): Move to typeprint.c and
4733 rename.
4734 (c_type_print_base_struct_union): Update.
4735
4736 2018-06-25 Pedro Alves <palves@redhat.com>
4737
4738 * gdbthread.h (thread_info_ref, delete_thread)
4739 (delete_thread_silent, first_thread_of_inferior)
4740 (any_thread_of_inferior, switch_to_thread)
4741 (enable_thread_stack_temporaries)
4742 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4743 (get_last_thread_stack_temporary)
4744 (value_in_thread_stack_temporaries, can_access_registers_thread):
4745 Spell out "struct thread_info" instead of just "thread_info".
4746 * inferior.h (notice_new_inferior): Likewise.
4747
4748 2018-06-25 Pedro Alves <palves@redhat.com>
4749
4750 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4751 pass thread_info pointer to delete_thread.
4752 (windows_nat_target::detach): Pass inferior pointer to
4753 detach_inferior.
4754 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4755 delete_thread.
4756 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4757 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4758 and pass a thread_info pointer to delete_thread.
4759 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4760 pass thread_info pointer to delete_thread.
4761 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4762 delete_thread_silent call.
4763 * procfs.c (procfs_target::detach): Pass inferior pointer to
4764 detach_inferior.
4765 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4766 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4767 delete_thread_silent call.
4768 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4769 pass thread_info pointer to delete_thread.
4770 (windows_nat_target::detach): Pass inferior pointer to
4771 delete_inferior.
4772
4773 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4774
4775 * regcache.c (readable_regcache::read_part): Fix asserts.
4776 (reg_buffer::raw_collect_part): New function.
4777 (regcache::write_part): Fix asserts.
4778 (reg_buffer::raw_supply_part): New function.
4779 (regcache::transfer_regset_register): New helper function.
4780 (regcache::transfer_regset): Call new functions.
4781 (regcache_supply_regset): Use gdb_byte*.
4782 (regcache::supply_regset): Likewise.
4783 (regcache_collect_regset): Likewise.
4784 (regcache::collect_regset): Likewise.
4785 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4786 (reg_buffer::raw_supply_part): Likewise.
4787 (regcache::transfer_regset_register): Likewise.
4788 (regcache::transfer_regset): Use gdb_byte*.
4789
4790 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4791
4792 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4793
4794 2018-06-21 Pedro Alves <palves@redhat.com>
4795
4796 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4797 instead of a ptid_t. All callers adjusted.
4798 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4799 adjusted.
4800 (print_ada_task_info, display_current_task_id, task_command_1):
4801 Adjust.
4802 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4803 inferior_thread.
4804 (breakpoint_kind): Adjust.
4805 (remove_breakpoints_pid): Rename to ...
4806 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4807 pointer. All callers adjusted.
4808 (bpstat_clear_actions): Use inferior_thread.
4809 (get_bpstat_thread): New.
4810 (bpstat_do_actions): Use it.
4811 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4812 to take a thread_info pointer. All callers adjusted.
4813 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4814 (breakpoint_re_set_thread): Use inferior_thread.
4815 * breakpoint.h (struct inferior): Forward declare.
4816 (bpstat_stop_status): Update.
4817 (remove_breakpoints_pid): Delete.
4818 (remove_breakpoints_inf): New.
4819 * bsd-uthread.c (bsd_uthread_target::wait)
4820 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4821 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4822 (maint_btrace_packet_history_cmd)
4823 (maint_btrace_clear_packet_history_cmd): Adjust.
4824 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4825 inferior_thread.
4826 * cli/cli-interp.c: Include "inferior.h".
4827 * common/refcounted-object.h (struct
4828 refcounted_object_ref_policy): New.
4829 * compile/compile-object-load.c: Include gdbthread.h.
4830 (store_regs): Use inferior_thread.
4831 * corelow.c (core_target::close): Use current_inferior.
4832 (core_target_open): Adjust to use first_thread_of_inferior and use
4833 the current inferior.
4834 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4835 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4836 <thread>: ... this new field. All references adjusted.
4837 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4838 Take a thread_info pointer instead of a ptid_t.
4839 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4840 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4841 thread_info pointer instead of a ptid_t.
4842 * elfread.c: Include "inferior.h".
4843 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4844 Use inferior_thread.
4845 * eval.c (evaluate_subexp): Likewise.
4846 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4847 inferior_thread.
4848 * gdb_proc_service.h (struct thread_info): Forward declare.
4849 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4850 <thread>: ... this new field. All references adjusted.
4851 * gdbarch.h, gdbarch.c: Regenerate.
4852 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4853 'thread' parameter. All implementations and callers adjusted.
4854 * gdbthread.h (thread_info) <set_running>: New method.
4855 (delete_thread, delete_thread_silent): Take a thread_info pointer
4856 instead of a ptid.
4857 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4858 (first_thread_of_process): Delete, replaced by ...
4859 (first_thread_of_inferior): ... this new function. All callers
4860 adjusted.
4861 (any_live_thread_of_process): Delete, replaced by ...
4862 (any_live_thread_of_inferior): ... this new function. All callers
4863 adjusted.
4864 (switch_to_thread, switch_to_no_thread): Declare.
4865 (is_executing): Delete.
4866 (enable_thread_stack_temporaries): Update comment.
4867 <enable_thread_stack_temporaries>: Take a thread_info pointer
4868 instead of a ptid_t. Incref the thread.
4869 <~enable_thread_stack_temporaries>: Decref the thread.
4870 <m_ptid>: Delete
4871 <m_thr>: New.
4872 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4873 (get_last_thread_stack_temporary)
4874 (value_in_thread_stack_temporaries, can_access_registers_thread):
4875 Take a thread_info pointer instead of a ptid_t. All callers
4876 adjusted.
4877 * infcall.c (get_call_return_value): Use inferior_thread.
4878 (run_inferior_call): Work with thread pointers instead of ptid_t.
4879 (call_function_by_hand_dummy): Work with thread pointers instead
4880 of ptid_t. Use thread_info_ref.
4881 * infcmd.c (proceed_thread_callback): Access thread's state
4882 directly.
4883 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4884 access thread's state directly.
4885 (continue_command): Use inferior_thread.
4886 (info_program_command): Use find_thread_ptid and access thread
4887 state directly.
4888 (proceed_after_attach_callback): Use thread state directly.
4889 (notice_new_inferior): Take a thread_info pointer instead of a
4890 ptid_t. All callers adjusted.
4891 (exit_inferior): Take an inferior pointer instead of a pid. All
4892 callers adjusted.
4893 (exit_inferior_silent): New.
4894 (detach_inferior): Delete.
4895 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4896 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4897 (detach_inferior_command, kill_inferior_command): Use
4898 find_inferior_id instead of valid_gdb_inferior_id and
4899 gdb_inferior_id_to_pid.
4900 (inferior_command): Use inferior and thread pointers.
4901 * inferior.h (struct thread_info): Forward declare.
4902 (notice_new_inferior): Take a thread_info pointer instead of a
4903 ptid_t. All callers adjusted.
4904 (detach_inferior): Delete declaration.
4905 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4906 instead of a pid. All callers adjusted.
4907 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4908 (valid_gdb_inferior_id): Delete.
4909 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4910 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4911 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4912 ...
4913 <inf>: ... this new field.
4914 <step_ptid>: Delete, replaced by ...
4915 <step_thread>: ... this new field.
4916 (get_displaced_stepping_state): Take an inferior pointer instead
4917 of a pid. All callers adjusted.
4918 (displaced_step_in_progress_any_inferior): Adjust.
4919 (displaced_step_in_progress_thread): Take a thread pointer instead
4920 of a ptid_t. All callers adjusted.
4921 (displaced_step_in_progress, add_displaced_stepping_state): Take
4922 an inferior pointer instead of a pid. All callers adjusted.
4923 (get_displaced_step_closure_by_addr): Adjust.
4924 (remove_displaced_stepping_state): Take an inferior pointer
4925 instead of a pid. All callers adjusted.
4926 (displaced_step_prepare_throw, displaced_step_prepare)
4927 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4928 All callers adjusted.
4929 (start_step_over): Adjust.
4930 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4931 displaced step queue.
4932 (do_target_resume): Adjust.
4933 (fetch_inferior_event): Use inferior_thread.
4934 (context_switch, get_inferior_stop_soon): Take an
4935 execution_control_state pointer instead of a ptid_t. All callers
4936 adjusted.
4937 (switch_to_thread_cleanup): Delete.
4938 (stop_all_threads): Use scoped_restore_current_thread.
4939 * inline-frame.c: Include "gdbthread.h".
4940 (inline_state) <inline_state>: Take a thread pointer instead of a
4941 ptid_t. All callers adjusted.
4942 <ptid>: Delete, replaced by ...
4943 <thread>: ... this new field.
4944 (find_inline_frame_state): Take a thread pointer instead of a
4945 ptid_t. All callers adjusted.
4946 (skip_inline_frames, step_into_inline_frame)
4947 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4948 pointer instead of a ptid_t. All callers adjusted.
4949 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4950 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4951 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4952 pointers directly.
4953 * linux-nat.c (get_detach_signal): Likewise.
4954 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4955 (thread_db_notice_clone): Adjust.
4956 (thread_db_find_new_threads_silently)
4957 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4958 a thread pointer instead of a ptid_t. All callers adjusted.
4959 * mi/mi-cmd-var.c: Include "inferior.h".
4960 (mi_cmd_var_update_iter): Update to use thread pointers.
4961 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4962 inferior directly.
4963 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4964 out to ...
4965 (mi_output_running): ... this new function.
4966 (mi_on_resume_1): Adjust to use it.
4967 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4968 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4969 directly.
4970 (interrupt_thread_callback): : Adjust to use thread and inferior
4971 pointers.
4972 * proc-service.c: Include "gdbthread.h".
4973 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4974 * progspace-and-thread.c: Include "inferior.h".
4975 * progspace.c: Include "inferior.h".
4976 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4977 hold a reference to an inferior_object.
4978 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4979 inferior_thread.
4980 * python/py-inferior.c (struct inferior_object): Give the type a
4981 tag name instead of a typedef.
4982 (python_on_normal_stop): No need to check if the current thread is
4983 listed.
4984 (inferior_to_inferior_object): Change return type to
4985 inferior_object. All callers adjusted.
4986 (find_thread_object): Delete, bits factored out to ...
4987 (thread_to_thread_object): ... this new function.
4988 * python/py-infthread.c (create_thread_object): Use
4989 inferior_to_inferior_object.
4990 (thpy_is_stopped): Use thread pointer directly.
4991 (gdbpy_selected_thread): Use inferior_thread.
4992 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4993 field, replaced with ...
4994 <thread>: ... this new field. All users adjusted.
4995 (btpy_insn_or_gap_new): Drop const.
4996 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4997 callers adjusted.
4998 * python/py-record.c: Include "gdbthread.h".
4999 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5000 a ptid_t. All callers adjusted.
5001 (gdbpy_current_recording): Use inferior_thread.
5002 * python/py-record.h (recpy_record_object) <ptid>: Delete
5003 field, replaced with ...
5004 <thread>: ... this new field. All users adjusted.
5005 (recpy_element_object) <ptid>: Delete
5006 field, replaced with ...
5007 <thread>: ... this new field. All users adjusted.
5008 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5009 a ptid_t. All callers adjusted.
5010 * python/py-threadevent.c: Include "gdbthread.h".
5011 (get_event_thread): Use thread_to_thread_object.
5012 * python/python-internal.h (struct inferior_object): Forward
5013 declare.
5014 (find_thread_object, find_inferior_object): Delete declarations.
5015 (thread_to_thread_object, inferior_to_inferior_object): New
5016 declarations.
5017 * record-btrace.c: Include "inferior.h".
5018 (require_btrace_thread): Use inferior_thread.
5019 (record_btrace_frame_sniffer)
5020 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5021 (get_thread_current_frame): Use scoped_restore_current_thread and
5022 switch_to_thread.
5023 (get_thread_current_frame): Use thread pointer directly.
5024 (record_btrace_replay_at_breakpoint): Use thread's inferior
5025 pointer directly.
5026 * record-full.c: Include "inferior.h".
5027 * regcache.c: Include "gdbthread.h".
5028 (get_thread_arch_regcache): Use the inferior's address space
5029 directly.
5030 (get_thread_regcache, registers_changed_thread): New.
5031 * regcache.h (get_thread_regcache(thread_info *thread)): New
5032 overload.
5033 (registers_changed_thread): New.
5034 (remote_target) <remote_detach_1>: Swap order of parameters.
5035 (remote_add_thread): <remote_add_thread>: Return the new thread.
5036 (get_remote_thread_info(ptid_t)): New overload.
5037 (remote_target::remote_notice_new_inferior): Use thread pointers
5038 directly.
5039 (remote_target::process_initial_stop_replies): Use
5040 thread_info::set_running.
5041 (remote_target::remote_detach_1, remote_target::detach)
5042 (extended_remote_target::detach): Adjust.
5043 * stack.c (frame_show_address): Use inferior_thread.
5044 * target-debug.h (target_debug_print_thread_info_pp): New.
5045 * target-delegates.c: Regenerate.
5046 * target.c (default_thread_address_space): Delete.
5047 (memory_xfer_partial_1): Use current_inferior.
5048 (target_detach): Use current_inferior.
5049 (target_thread_address_space): Delete.
5050 (generic_mourn_inferior): Use current_inferior.
5051 * target.h (struct target_ops) <thread_address_space>: Delete.
5052 (target_thread_address_space): Delete.
5053 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5054 pointers directly.
5055 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5056 thread pointer instead of a ptid_t. Adjust all callers.
5057 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5058 (first_thread_of_process): Delete, replaced by ...
5059 (first_thread_of_inferior): ... this new function. All callers
5060 adjusted.
5061 (any_thread_of_process): Rename to ...
5062 (any_thread_of_inferior): ... this, and take an inferior pointer.
5063 (any_live_thread_of_process): Rename to ...
5064 (any_live_thread_of_inferior): ... this, and take an inferior
5065 pointer.
5066 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5067 (value_in_thread_stack_temporaries)
5068 (get_last_thread_stack_temporary): Take a thread pointer instead
5069 of a ptid_t. Adjust all callers.
5070 (thread_info::set_running): New.
5071 (validate_registers_access): Use inferior_thread.
5072 (can_access_registers_ptid): Rename to ...
5073 (can_access_registers_thread): ... this, and take a thread
5074 pointer.
5075 (print_thread_info_1): Adjust to compare thread pointers instead
5076 of ptids.
5077 (switch_to_no_thread, switch_to_thread): Make extern.
5078 (scoped_restore_current_thread::~scoped_restore_current_thread):
5079 Use m_thread pointer directly.
5080 (scoped_restore_current_thread::scoped_restore_current_thread):
5081 Use inferior_thread.
5082 (thread_command): Use thread pointer directly.
5083 (thread_num_make_value_helper): Use inferior_thread.
5084 * top.c (execute_command): Use inferior_thread.
5085 * tui/tui-interp.c: Include "inferior.h".
5086 * varobj.c (varobj_create): Use inferior_thread.
5087 (value_of_root_1): Use find_thread_global_id instead of
5088 global_thread_id_to_ptid.
5089
5090 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5091
5092 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5093 possible.
5094 (regcache::write_part): Likewise.
5095 (readable_regcache::cooked_read_part): Update comment.
5096 (readable_regcache::cooked_write_part): Likewise.
5097 * regcache.h: (readable_regcache::read_part): Likewise.
5098 (regcache::write_part): Likewise.
5099
5100 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5101 Dirk Schubert <dirk.schubert@arm.com>
5102
5103 * aarch64-linux-nat.c (post_attach): New.
5104 (aarch64_linux_nat_target::post_attach): Override post_attach to
5105 record the number of hardware debug registers.
5106
5107 2018-06-20 Tom Tromey <tom@tromey.com>
5108
5109 * python/py-param.c (add_setshow_generic): Make parameters const.
5110 (parmpy_init): Update.
5111
5112 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5113
5114 * regcache.h (regcache_cooked_read_ftype): Rename to...
5115 (register_read_ftype): ...this, change type to function_view.
5116 (class reg_buffer) <save>: Remove src parameter.
5117 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5118 parameter non-const in first overload. Remove src parameter in
5119 second overload.
5120 * regcache.c (do_cooked_read): Remove.
5121 (readonly_detached_regcache::readonly_detached_regcache): Make
5122 parameter non-const, adjust call to other constructor.
5123 (reg_buffer::save): Remove src parameter.
5124 * frame.c (do_frame_register_read): Remove.
5125 (frame_save_as_regcache): Use lambda function.
5126 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5127 parameter to ppu2spu_data *.
5128 (ppu2spu_sniffer): Use lambda function.
5129
5130 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5131
5132 * record-full.c (record_full_target::insert_breakpoint): Remove
5133 "struct" keyword, add const.
5134
5135 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5136
5137 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5138 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5139 * configure.ac: Remove AC_PREREQ, add missing quoting.
5140 * gnulib/configure.ac: Modernize usage of
5141 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5142 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5143 (AUTOMAKE_VERSION): Bump to 1.15.1.
5144 * configure: Re-generate.
5145 * config.in: Re-generate.
5146 * aclocal.m4: Re-generate.
5147 * gnulib/aclocal.m4: Re-generate.
5148 * gnulib/config.in: Re-generate.
5149 * gnulib/configure: Re-generate.
5150 * gnulib/import/Makefile.in: Re-generate.
5151
5152 2018-06-19 Pedro Alves <palves@redhat.com>
5153
5154 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5155 (lookup_minimal_symbol_by_pc_section): ... here with
5156 gdb_assert_not_reached added.
5157
5158 2018-06-19 Pedro Alves <palves@redhat.com>
5159
5160 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5161 parameter with a block parameter. Compare location's block symbol
5162 with the frame's block instead of addresses.
5163 (skip_inline_frames): Pass the current block instead of the
5164 frame's address. Break out as soon as we determine the frame
5165 should not be skipped.
5166
5167 2018-06-18 Tom Tromey <tom@tromey.com>
5168
5169 * solib-aix.c (solib_aix_get_section_offsets): Return
5170 unique_xmalloc_ptr.
5171 (solib_aix_solib_create_inferior_hook): Update.
5172
5173 2018-06-18 Tom Tromey <tom@tromey.com>
5174
5175 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5176
5177 2018-06-18 Tom Tromey <tom@tromey.com>
5178
5179 * solib-frv.c (frv_relocate_main_executable): Use
5180 unique_xmalloc_ptr.
5181 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5182 unique_xmalloc_ptr.
5183
5184 2018-06-18 Tom Tromey <tom@tromey.com>
5185
5186 * objfiles.h (inhibit_section_map_updates): Update.
5187 (resume_section_map_updates, resume_section_map_updates_cleanup):
5188 Remove.
5189 * solib-svr4.c (svr4_handle_solib_event): Update.
5190 * objfiles.c (inhibit_section_map_updates): Return
5191 scoped_restore_tmpl<int>.
5192 (resume_section_map_updates, resume_section_map_updates_cleanup):
5193 Remove.
5194
5195 2018-06-18 Tom Tromey <tom@tromey.com>
5196
5197 * valprint.h (read_string): Update.
5198 * valprint.c (read_string): Change type of "buffer".
5199 (val_print_string): Update.
5200 * python/py-value.c (valpy_string): Update.
5201 * language.h (struct language_defn) <la_get_string>: Change
5202 type of "buffer".
5203 (default_get_string, c_get_string): Update.
5204 * language.c (default_get_string): Change type of "buffer".
5205 * guile/scm-value.c (gdbscm_value_to_string): Update.
5206 * c-lang.c (c_get_string): Change type of "buffer".
5207
5208 2018-06-18 Tom Tromey <tom@tromey.com>
5209
5210 * ser-mingw.c (struct pipe_state_destroyer): New.
5211 (pipe_state_up): New typedef.
5212 (cleanup_pipe_state): Remove.
5213 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5214
5215 2018-06-18 Tom Tromey <tom@tromey.com>
5216
5217 * rust-lang.h (rust_yyerror): Don't declare.
5218 * rust-lang.c (rust_language_defn): Update.
5219 * rust-exp.y (yyerror): Now static.
5220 * parse.c (parse_exp_in_context_1): Update.
5221 * p-lang.h (p_yyerror): Don't declare.
5222 * p-lang.c (p_language_defn): Update.
5223 * p-exp.y (yyerror): Now static.
5224 * opencl-lang.c (opencl_language_defn): Update.
5225 * objc-lang.c (objc_language_defn): Update.
5226 * m2-lang.h (m2_yyerror): Don't declare.
5227 * m2-lang.c (m2_language_defn): Update.
5228 * m2-exp.y (yyerror): Now static.
5229 * language.h (struct language_defn) <la_error>: Remove.
5230 * language.c (unk_lang_error): Remove.
5231 (unknown_language_defn, auto_language_defn): Remove.
5232 * go-lang.h (go_yyerror): Don't declare.
5233 * go-lang.c (go_language_defn): Update.
5234 * go-exp.y (yyerror): Now static.
5235 * f-lang.h (f_yyerror): Don't declare.
5236 * f-lang.c (f_language_defn): Update.
5237 * f-exp.y (yyerror): Now static.
5238 * d-lang.h (d_yyerror): Don't declare.
5239 * d-lang.c (d_language_defn): Update.
5240 * d-exp.y (yyerror): Now static.
5241 * c-lang.h (c_yyerror): Don't declare.
5242 * c-lang.c (c_language_defn, cplus_language_defn)
5243 (asm_language_defn, minimal_language_defn): Update.
5244 * c-exp.y (yyerror): Now static.
5245 * ada-lang.h (ada_yyerror): Don't declare.
5246 * ada-lang.c (ada_language_defn): Update.
5247 * ada-exp.y (yyerror): Now static.
5248
5249 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5250
5251 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5252 (store_sveregs_to_thread): Likewise.
5253 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5254 (aarch64_linux_store_inferior_registers): Likewise.
5255 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5256 function.
5257 (aarch64_sve_regs_copy_to_regcache): Likewise.
5258 (aarch64_sve_regs_copy_from_regcache): Likewise.
5259 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5260 declaration.
5261 (aarch64_sve_regs_copy_to_regcache): Likewise.
5262 (aarch64_sve_regs_copy_from_regcache): Likewise.
5263 (sve_context): Structure from Linux headers.
5264 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5265 (SVE_SIG_ZREG_SIZE): Likewise.
5266 (SVE_SIG_PREG_SIZE): Likewise.
5267 (SVE_SIG_FFR_SIZE): Likewise.
5268 (SVE_SIG_REGS_OFFSET): Likewise.
5269 (SVE_SIG_ZREGS_OFFSET): Likewise.
5270 (SVE_SIG_ZREG_OFFSET): Likewise.
5271 (SVE_SIG_ZREGS_SIZE): Likewise.
5272 (SVE_SIG_PREGS_OFFSET): Likewise.
5273 (SVE_SIG_PREG_OFFSET): Likewise.
5274 (SVE_SIG_PREGS_SIZE): Likewise.
5275 (SVE_SIG_FFR_OFFSET): Likewise.
5276 (SVE_SIG_REGS_SIZE): Likewise.
5277 (SVE_SIG_CONTEXT_SIZE): Likewise.
5278 (SVE_PT_REGS_MASK): Likewise.
5279 (SVE_PT_REGS_FPSIMD): Likewise.
5280 (SVE_PT_REGS_SVE): Likewise.
5281 (SVE_PT_VL_INHERIT): Likewise.
5282 (SVE_PT_VL_ONEXEC): Likewise.
5283 (SVE_PT_REGS_OFFSET): Likewise.
5284 (SVE_PT_FPSIMD_OFFSET): Likewise.
5285 (SVE_PT_FPSIMD_SIZE): Likewise.
5286 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5287 (SVE_PT_SVE_PREG_SIZE): Likewise.
5288 (SVE_PT_SVE_FFR_SIZE): Likewise.
5289 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5290 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5291 (__SVE_SIG_TO_PT): Likewise.
5292 (SVE_PT_SVE_OFFSET): Likewise.
5293 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5294 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5295 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5296 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5297 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5298 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5299 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5300 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5301 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5302 (SVE_PT_SVE_SIZE): Likewise.
5303 (SVE_PT_SIZE): Likewise.
5304 (HAS_SVE_STATE): New define.
5305
5306 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5307
5308 * nat/aarch64-sve-linux-sigcontext.h: New file.
5309 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5310 new files.
5311 (SVE_VQ_MIN): Likewise.
5312 (SVE_VQ_MAX): Likewise.
5313 (SVE_VL_MIN): Likewise.
5314 (SVE_VL_MAX): Likewise.
5315 (SVE_NUM_ZREGS): Likewise.
5316 (SVE_NUM_PREGS): Likewise.
5317 (sve_vl_valid): Likewise.
5318 (struct user_sve_header): Likewise.
5319
5320 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5321 Richard Bunt <Richard.Bunt@arm.com>
5322
5323 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5324 was requested by GDB.
5325
5326 2018-06-15 Tom de Vries <tdevries@suse.de>
5327
5328 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5329
5330 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5331
5332 * gnulib/update-gnulib.sh: Print expected versions of
5333 autoconf/aclocal.
5334
5335 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5336
5337 * arch-utils.c (default_type_align): Use type_length_units.
5338 * gdbtypes.c (type_align): Use type_length_units.
5339
5340 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5341
5342 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5343 of 'define' command.
5344
5345 2018-06-14 Tom de Vries <tdevries@suse.de>
5346
5347 PR cli/22573
5348 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5349 get_no_prettyformat_print_options.
5350
5351 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5352
5353 * sparc-nat.h: Include target.h.
5354 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5355 <fetch_registers>: Remove this argument in function call.
5356 <store_registers>: Remove this argument in function call, remove
5357 extra semicolon.
5358 <low_forget_process>: Call sparc64_forget_process instead of
5359 sparc_forget_process.
5360
5361 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5362
5363 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5364 (procfs_target::make_corefile_notes): Adjust to new
5365 target_read_alloc return type.
5366
5367 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5368 Stephen Roberts <stephen.roberts@arm.com>
5369
5370 PR gdb/22882
5371 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5372 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5373 Move should_notify_stop local into more inner scope.
5374
5375 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5376 Stephen Roberts <stephen.roberts@arm.com>
5377
5378 PR gdb/22882
5379 * infrun.c (resume_1): Add call to mark_async_event_handler.
5380
5381 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5382
5383 * infrun.c (do_target_wait): Change old version of $pc printed.
5384
5385 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5386
5387 * dwarf2read.c (read_index_from_section): Rename to...
5388 (read_gdb_index_from_section): ... this, update all callers.
5389 (dwarf2_read_index): Rename to...
5390 (dwarf2_read_gdb_index): ... this, update all callers.
5391
5392 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5393
5394 * gdb/hppa-linux-nat.c
5395 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5396 hppa_linux_nat_target::fetch_registers.
5397
5398 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5399
5400 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5401 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5402 (AARCH64_DWARF_SVE_FFR): Likewise.
5403 (AARCH64_DWARF_SVE_P0): Likewise.
5404 (AARCH64_DWARF_SVE_Z0): Likewise.
5405
5406 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5407
5408 * common/common-regcache.h (raw_compare): New function.
5409 * regcache.c (regcache::raw_compare): Likewise.
5410 * regcache.h (regcache::raw_compare): New declaration.
5411
5412 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5413
5414 * common/common-regcache.h (reg_buffer_common): New structure.
5415 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5416 (reg_buffer::raw_supply): Likewise.
5417 (reg_buffer::raw_supply_integer): Likewise.
5418 (reg_buffer::raw_supply_zeroed): Likewise.
5419 (reg_buffer::raw_collect): Likewise.
5420 (reg_buffer::raw_collect_integer): Likewise.
5421 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5422 (reg_buffer::raw_supply): Likewise.
5423 (reg_buffer::raw_supply_integer): Likewise.
5424 (reg_buffer::raw_supply_zeroed): Likewise.
5425 (reg_buffer::raw_collect): Likewise.
5426 (reg_buffer::raw_collect_integer): Likewise.
5427
5428 2018-06-10 Tom Tromey <tom@tromey.com>
5429
5430 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5431 (class remote_state) <stop_reply_queue>: Now std::vector.
5432 (remote_state::~remote_state)
5433 (remote_target::stop_reply_queue_length): Update.
5434 (struct queue_iter_param, remove_child_of_pending_fork)
5435 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5436 (check_pending_event_prevents_wildcard_vcont_callback)
5437 (remove_stop_reply_for_inferior)
5438 (remove_stop_reply_of_remote_state)
5439 (remote_notif_remove_once_on_match)
5440 (stop_reply_match_ptid_and_ws)
5441 (remote_kill_child_of_pending_fork): Remove.
5442 (remote_target::remove_new_fork_children)
5443 (remote_target::check_pending_events_prevent_wildcard_vcont)
5444 (remote_target::discard_pending_stop_replies)
5445 (remote_target::discard_pending_stop_replies_in_queue)
5446 (remote_target::remote_notif_remove_queued_reply)
5447 (remote_target::queued_stop_reply)
5448 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5449 (remote_target::wait, remote_target::kill_new_fork_children)
5450 (remote_target::async): Update.
5451
5452 2018-06-10 Tom Tromey <tom@tromey.com>
5453
5454 * record-full.c (record_full_arch_list_cleanups): Remove.
5455 (record_full_message): Use try/catch.
5456 (record_full_wait_cleanups): Remove.
5457 (record_full_wait_1): Use try/catch.
5458 (record_full_restore): Likewise.
5459
5460 2018-06-10 Tom Tromey <tom@tromey.com>
5461
5462 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5463 declare VEC. Add constructor.
5464 <in_target_beneath>: Now bool.
5465 (record_full_breakpoints): Now a std::vector, static.
5466 (record_full_sync_record_breakpoints)
5467 (record_full_init_record_breakpoints)
5468 (record_full_target::insert_breakpoint)
5469 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5470
5471 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5472
5473 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5474 * serial.c (serial_interface_lookup): Remove struct keyword.
5475
5476 2018-06-10 Tom Tromey <tom@tromey.com>
5477
5478 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5479 method.
5480 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5481 a method.
5482 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5483 method.
5484 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5485 "beneath" as a method.
5486 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5487 Use "beneath" as a method.
5488
5489 2018-06-10 Tom Tromey <tom@tromey.com>
5490
5491 * tracefile.c (struct trace_file_writer_deleter): New.
5492 <operator()>: Rename from trace_file_writer_xfree.
5493 (trace_file_writer_up): New typedef.
5494 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5495
5496 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5497
5498 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5499 <m_registers, m_register_status>: Change type to
5500 std::unique_ptr.
5501 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5502 XCNEWVEC.
5503
5504 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5505
5506 * common/common-regcache.h (enum register_status): Add
5507 underlying type "signed char".
5508 * regcache.h (reg_buffer) <m_register_status>: Change type to
5509 register_status *.
5510 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5511 register_status instead of signed char.
5512 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5513 (reg_buffer::get_register_status): Remove cast.
5514 (readable_regcache::raw_read): Remove cast.
5515 (readable_regcache::cooked_read): Remove cast.
5516
5517 2018-06-09 Tom Tromey <tom@tromey.com>
5518
5519 * source.c (reverse_search_command, forward_search_command): Use
5520 scoped_fd.
5521
5522 2018-06-09 Tom Tromey <tom@tromey.com>
5523
5524 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5525 (serial_ops_list): Now static, std::vector.
5526 (serial_interface_lookup, serial_add_interface): Update.
5527
5528 2018-06-09 Tom Tromey <tom@tromey.com>
5529
5530 * dwarf2read.c (process_cu_includes): Update.
5531 (process_full_comp_unit): Update.
5532 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5533 std::vector.
5534
5535 2018-06-08 Paul Koning <paul_koning@dell.com>
5536
5537 PR gdb/23252
5538
5539 * python/python.c (do_start_initialization):
5540 Avoid call to internal Python API.
5541 (init__gdb_module): New function.
5542
5543 2018-06-08 Gary Benson <gbenson@redhat.com>
5544
5545 * linux-thread-db.c (valprint.h): New include.
5546 (struct check_thread_db_info): New structure.
5547 (check_thread_db_on_load, tdb_testinfo): New static globals.
5548 (check_thread_db, check_thread_db_callback): New functions.
5549 (try_thread_db_load_1): Run integrity checks if requested.
5550 (maintenance_check_libthread_db): New function.
5551 (_initialize_thread_db): Register "maint check libthread-db"
5552 and "maint set/show check-libthread-db".
5553 * NEWS: Mention the above new commands.
5554
5555 2018-06-08 Tom Tromey <tom@tromey.com>
5556
5557 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5558 now a method.
5559
5560 2018-06-08 Tom Tromey <tom@tromey.com>
5561
5562 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5563
5564 2018-06-08 Tom Tromey <tom@tromey.com>
5565
5566 * common/btrace-common.h (struct btrace_data): Add constructor,
5567 destructor, move assignment operator.
5568 <empty, clear, fini>: New methods.
5569 <format>: Initialize.
5570 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5571 (btrace_data_empty): Don't declare.
5572 * common/btrace-common.c (btrace_data_init): Remove.
5573 (btrace_data::fini): Rename from btrace_data_fini.
5574 (btrace_data::empty): Rename from btrace_data_empty.
5575 (btrace_data::clear): Rename from btrace_data_clear. Return
5576 bool.
5577 * btrace.h (make_cleanup_btrace_data): Don't declare.
5578 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5579 (parse_xml_btrace): Update.
5580 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5581 (maint_btrace_clear_packet_history_cmd): Update.
5582
5583 2018-06-07 Pedro Alves <palves@redhat.com>
5584
5585 * target.h (target_ops) <beneath>: Now a method. All references
5586 updated.
5587 (class target_stack): New.
5588 * target.c (g_target_stack): New.
5589 (g_current_top_target): Delete.
5590 (current_top_target): Get the top target out of g_target_stack.
5591 (target_stack::push, target_stack::unpush): New.
5592 (push_target, unpush_target): Reimplement.
5593 (target_is_pushed): Reimplement in terms of g_target_stack.
5594 (target_ops::beneath, target_stack::find_beneath): New.
5595
5596 2018-06-07 Pedro Alves <palves@redhat.com>
5597
5598 * target.h (find_target_beneath): Delete declaration.
5599 * target.c (find_target_beneath): Delete definition.
5600 * aix-thread.c: All callers of find_target_beneath adjusted to
5601 call target_ops::beneath instead.
5602 * bsd-uthread.c: Likewise.
5603 * linux-thread-db.c: Likewise.
5604 * ravenscar-thread.c: Likewise.
5605 * sol-thread.c: Likewise.
5606 * spu-multiarch.c: Likewise.
5607
5608 2018-06-07 Pedro Alves <palves@redhat.com>
5609
5610 * target.h (target_ops) <beneath>: Now a method. All references
5611 updated.
5612 (target_ops) <m_beneath>: New.
5613 * target.c (target_ops::beneath): New.
5614 * corelow.c: Adjust all references to target_ops::beneath.
5615 * linux-thread-db.c: Likewise.
5616 * make-target-delegates: Likewise.
5617 * record-btrace.c: Likewise.
5618 * record-full.c: Likewise.
5619 * remote.c: Likewise.
5620 * target.c: Likewise.
5621 * target-delegates.c: Regenerate.
5622
5623 2018-06-07 Pedro Alves <palves@redhat.com>
5624
5625 * target.h (target_stack): Delete.
5626 (current_top_target): Declare function.
5627 * target.c (target_stack): Delete.
5628 (g_current_top_target): New.
5629 (current_top_target): New function.
5630 * auxv.c: Use current_top_target instead of target_stack
5631 throughout.
5632 * avr-tdep.c: Likewise.
5633 * breakpoint.c: Likewise.
5634 * corefile.c: Likewise.
5635 * elfread.c: Likewise.
5636 * eval.c: Likewise.
5637 * exceptions.c: Likewise.
5638 * frame.c: Likewise.
5639 * gdbarch-selftests.c: Likewise.
5640 * gnu-v3-abi.c: Likewise.
5641 * ia64-tdep.c: Likewise.
5642 * ia64-vms-tdep.c: Likewise.
5643 * infcall.c: Likewise.
5644 * infcmd.c: Likewise.
5645 * infrun.c: Likewise.
5646 * linespec.c: Likewise.
5647 * linux-tdep.c: Likewise.
5648 * minsyms.c: Likewise.
5649 * ppc-linux-nat.c: Likewise.
5650 * ppc-linux-tdep.c: Likewise.
5651 * procfs.c: Likewise.
5652 * regcache.c: Likewise.
5653 * remote.c: Likewise.
5654 * rs6000-tdep.c: Likewise.
5655 * s390-linux-nat.c: Likewise.
5656 * s390-tdep.c: Likewise.
5657 * solib-aix.c: Likewise.
5658 * solib-darwin.c: Likewise.
5659 * solib-dsbt.c: Likewise.
5660 * solib-spu.c: Likewise.
5661 * solib-svr4.c: Likewise.
5662 * solib-target.c: Likewise.
5663 * sparc-tdep.c: Likewise.
5664 * sparc64-tdep.c: Likewise.
5665 * spu-tdep.c: Likewise.
5666 * symfile.c: Likewise.
5667 * symtab.c: Likewise.
5668 * target-descriptions.c: Likewise.
5669 * target-memory.c: Likewise.
5670 * target.c: Likewise.
5671 * target.h: Likewise.
5672 * tracefile-tfile.c: Likewise.
5673 * tracepoint.c: Likewise.
5674 * valops.c: Likewise.
5675 * valprint.c: Likewise.
5676 * value.c: Likewise.
5677 * windows-tdep.c: Likewise.
5678 * mi/mi-main.c: Likewise.
5679
5680 2018-06-07 Tom Tromey <tom@tromey.com>
5681
5682 * valprint.h (build_address_symbolic): Declare.
5683 * printcmd.c (print_address_symbolic): Update.
5684 (build_address_symbolic): Change "name" and "filename" to
5685 std::string.
5686 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5687 Update.
5688 * defs.h (build_address_symbolic): Remove declaration.
5689
5690 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5691
5692 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5693 (aarch64_vnv_type): Add function.
5694 (aarch64_pseudo_register_name): Add V regs for SVE.
5695 (aarch64_pseudo_register_type): Likewise.
5696 (aarch64_pseudo_register_reggroup_p): Likewise.
5697 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5698 (aarch64_pseudo_read_value): Add V regs for SVE.
5699 (aarch64_pseudo_write_2): Use V0 offset for SVE
5700 (aarch64_pseudo_write): Add V regs for SVE.
5701 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5702
5703 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5704
5705 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5706 (sve_vl_from_vq): Likewise.
5707
5708 2018-06-05 Tom Tromey <tom@tromey.com>
5709
5710 * cli/cli-cmds.c (show_version): Update.
5711 * top.c (print_gdb_version): Add "interactive" parameter.
5712 Update.
5713 * main.c (captured_main_1): Update.
5714 * top.h (print_gdb_version): Add "interactive" parameter and a
5715 comment.
5716
5717 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5718
5719 * common/enum-flags.h: Add trailing semicolon to example in
5720 comment.
5721
5722 2018-06-05 Tom Tromey <tom@tromey.com>
5723
5724 PR cli/12326:
5725 * NEWS: Add entry about pager.
5726 * utils.c (pagination_disabled_for_command): New global.
5727 (prompt_for_continue): Allow "c" response to prompt.
5728 (reinitialize_more_filter): Clear
5729 pagination_disabled_for_command.
5730 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5731
5732 2018-06-04 Tom Tromey <tom@tromey.com>
5733
5734 * ada-lang.h (ada_lookup_symbol_list): Update.
5735 * ada-lang.c (resolve_subexp): Update.
5736 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5737 parameter.
5738 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5739 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5740 results parameter to std::vector.
5741 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5742 Update.
5743 * ada-exp.y (block_lookup): Update.
5744 (select_possible_type_sym): Change type of syms. Remove nsyms
5745 parameter.
5746 (write_var_or_type, write_name_assoc): Update.
5747
5748 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5749
5750 * windows-nat.c (windows_nat_target::xfer_partial): Return
5751 TARGET_XFER_E_IO if we need to delegate to the target beneath
5752 but BENEATH is NULL.
5753
5754 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5755
5756 * Makefile.in (config.status): Add configure.nat as a
5757 dependency.
5758
5759 2018-06-04 Tom Tromey <tom@tromey.com>
5760
5761 * cp-name-parser.y (cpname_state): Add method declarations.
5762 (HANDLE_QUAL): Update.
5763 (cpname_state::d_grab, cpname_state::fill_comp)
5764 (cpname_state::make_operator, cpname_state::make_dtor)
5765 (cpname_state::make_builtin_type, cpname_state::make_name)
5766 (cpname_state::d_qualify, cpname_state::d_int_type)
5767 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5768 (%union): Move earlier.
5769
5770 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5771
5772 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5773
5774 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5775
5776 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5777 (aarch64_pseudo_write_1): Likewise.
5778 (aarch64_pseudo_read_value): Use helper.
5779 (aarch64_pseudo_write): Likewise.
5780
5781 2018-06-04 Pedro Alves <palves@redhat.com>
5782
5783 * darwin-nat.c (darwin_ops): Delete.
5784 (darwin_attach_pid): Use get_native_target.
5785
5786 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5787
5788 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5789 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5790
5791 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5792
5793 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5794 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5795 (aarch64_gdbarch_init): Check for SVE.
5796 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5797
5798 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5799
5800 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5801 * aarch64-tdep.h (aarch64_read_description): Likewise.
5802 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5803 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5804 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5805 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5806 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5807
5808 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5809
5810 * value.c (value_fetch_lazy_bitfield): New.
5811 (value_fetch_lazy_memory): New.
5812 (value_fetch_lazy_register): New.
5813 (value_fetch_lazy): Factor out to smaller functions.
5814
5815 2018-06-01 Tom Tromey <tom@tromey.com>
5816
5817 * cp-name-parser.y (backslashable, represented): Now const.
5818
5819 2018-06-01 Tom Tromey <tom@tromey.com>
5820
5821 * cp-name-parser.y: Include parser-defs.h.
5822 (parser_fprintf): Remove declaration.
5823
5824 2018-06-01 Tom Tromey <tom@tromey.com>
5825
5826 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5827 %parse-param.
5828 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5829 (global_result): Remove globals.
5830 (struct cpname_state): New.
5831 (yyparse): Don't declare.
5832 (yylex, yyerror): Move declarations after %union.
5833 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5834 (make_name): Add state parameter.
5835 Update all callers.
5836 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5837 parameter.
5838 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5839 Update.
5840 (yylex): Add lvalp, state parameters.
5841 (yyerror): Add state parameter.
5842 (cp_demangled_name_to_comp): Update.
5843
5844 2018-06-01 Tom Tromey <tom@tromey.com>
5845
5846 * cp-name-parser.y (parser_fprintf): Declare.
5847 (GDB_YY_REMAP_PREFIX): Define.
5848 Include yy-remap.h. Don't redefine yy* identifiers.
5849
5850 2018-06-01 Tom Tromey <tom@tromey.com>
5851
5852 * python/py-type.c (typy_legacy_template_argument): Update.
5853 * cp-support.h (cp_demangled_name_to_comp): Update.
5854 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5855 parameter to be a "std::string *".
5856 (main): Update.
5857
5858 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5859
5860 * ada-lex.l: Include "diagnostics.h" instead of
5861 "common/diagnostics.h".
5862 * unittests/environ-selftests.c: Likewise.
5863 * common/diagnostics.h: Moved to ../include.
5864
5865 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5866
5867 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5868 to language_mode_manual while calling breakpoint_re_set_one.
5869
5870 2018-06-01 Tom Tromey <tom@tromey.com>
5871
5872 * valops.c (value_cast_structs, destructor_name_p): Update.
5873 * symtab.c (gdb_mangle_name): Update.
5874 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5875 Update.
5876 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5877 (pascal_object_print_value_fields, pascal_object_print_value):
5878 Update.
5879 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5880 * linespec.c (find_methods): Update.
5881 * gdbtypes.h (type_name_no_tag): Remove.
5882 (type_name_or_error): Rename from type_name_no_tag_or_error.
5883 * gdbtypes.c (type_name_no_tag): Remove.
5884 (type_name_or_error): Rename from type_name_no_tag_or_error.
5885 (lookup_struct_elt_type, check_typedef): Update.
5886 * expprint.c (print_subexp_standard): Update.
5887 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5888 * d-namespace.c (d_lookup_nested_symbol): Update.
5889 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5890 (cp_print_class_member): Update.
5891 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5892 * completer.c (add_struct_fields): Update.
5893 * c-typeprint.c (cp_type_print_derivation_info)
5894 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5895 Update.
5896 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5897 (ada_prefer_type, ada_is_exception_sym): Update.
5898
5899 2018-06-01 Tom Tromey <tom@tromey.com>
5900
5901 * valops.c (enum_constant_from_type, value_namespace_elt)
5902 (value_maybe_namespace_elt): Update.
5903 * valarith.c (find_size_for_pointer_math): Update.
5904 * target-descriptions.c (make_gdb_type): Update.
5905 * symmisc.c (print_symbol): Update.
5906 * stabsread.c (define_symbol, read_type)
5907 (complain_about_struct_wipeout, add_undefined_type)
5908 (cleanup_undefined_types_1): Update.
5909 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5910 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5911 (rust_internal_print_type, rust_composite_type)
5912 (rust_evaluate_funcall, rust_evaluate_subexp)
5913 (rust_inclusive_range_type_p): Update.
5914 * python/py-type.c (typy_get_tag): Update.
5915 * p-typeprint.c (pascal_type_print_base): Update.
5916 * mdebugread.c (parse_symbol, parse_type): Update.
5917 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5918 Update.
5919 * guile/scm-type.c (gdbscm_type_tag): Update.
5920 * go-lang.c (sixg_string_p): Update.
5921 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5922 Update.
5923 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5924 (TYPE_TAG_NAME): Remove.
5925 * gdbtypes.c (type_name_no_tag): Simplify.
5926 (check_typedef, check_types_equal, recursive_dump_type)
5927 (copy_type_recursive, arch_composite_type): Update.
5928 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5929 in summary mode when needed.
5930 * eval.c (evaluate_funcall): Update.
5931 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5932 (process_structure_scope, read_enumeration_type)
5933 (read_namespace_type, read_module_type, determine_prefix): Update.
5934 * cp-support.c (inspect_type): Update.
5935 * coffread.c (process_coff_symbol, decode_base_type): Update.
5936 * c-varobj.c (c_is_path_expr_parent): Update.
5937 * c-typeprint.c (c_type_print_base_struct_union): Update.
5938 (c_type_print_base_1): Update. Print struct/class/union/enum in
5939 summary when using C language.
5940 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5941 (gen_maybe_namespace_elt): Update.
5942 * ada-lang.c (ada_type_name): Simplify.
5943 (empty_record, ada_template_to_fixed_record_type_1)
5944 (template_to_static_fixed_type)
5945 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5946
5947 2018-06-01 Tom Tromey <tom@tromey.com>
5948
5949 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5950 c_print_type.
5951 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5952 (c_print_type): Update.
5953 (c_print_type): New overload.
5954 (c_type_print_varspec_prefix, c_type_print_args)
5955 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5956 (c_type_print_base_struct_union, c_type_print_base_1)
5957 (cp_type_print_method_args): Add "language" parameter.
5958 (c_type_print_base): Update.
5959 * c-lang.h (c_print_type): Add new overload.
5960
5961 2018-06-01 Tom Tromey <tom@tromey.com>
5962
5963 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5964 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5965
5966 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5967
5968 * aarch64-tdep.c (aarch64_sve_register_names): New const
5969 var.
5970 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5971 (AARCH64_SVE_Z_REGS_NUM): New define.
5972 (AARCH64_SVE_P_REGS_NUM): Likewise.
5973 (AARCH64_SVE_NUM_REGS): Likewise.
5974
5975 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5976
5977 * nat/linux-ptrace.h [__alpha__]
5978 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5979 definitions.
5980
5981 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5982
5983 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5984 the endianness selected.
5985 * NEWS: Document `set endian auto' mode operation update.
5986
5987 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5988
5989 * Makefile.in: Add new header.
5990 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5991 (sve_vl_from_vg): Likewise.
5992 (sve_vq_from_vl): Likewise.
5993 (sve_vl_from_vq): Likewise.
5994 (sve_vq_from_vg): Likewise.
5995 (sve_vg_from_vq): Likewise.
5996 * configure.nat: Add new c file.
5997 * nat/aarch64-sve-linux-ptrace.c: New file.
5998 * nat/aarch64-sve-linux-ptrace.h: New file.
5999
6000 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6001
6002 * aarch64-linux-nat.c (aarch64_linux_read_description):
6003 Add parmeter zero.
6004 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6005 Likewise.
6006 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6007 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6008 (aarch64_gdbarch_init): Add parmeter zero.
6009 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6010 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6011 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6012 parmeter.
6013 * doc/gdb.texinfo: Describe SVE feature
6014 * features/aarch64-sve.c: New file.
6015
6016 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6017
6018 PR gdb/23210
6019 * gdbarch.sh (significant_addr_bit): Default to zero when
6020 not set by target architecture.
6021 * gdbarch.c: Re-generated.
6022 * utils.c (address_significant): Update.
6023
6024 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6025
6026 * stack.c (func_command): Remove trailing newline in call to error.
6027
6028 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6029
6030 * regcache.h (regcache_raw_collect): Remove, update callers to
6031 use regcache::raw_collect.
6032 * regcache.c (regcache_raw_collect): Remove.
6033
6034 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6035
6036 * regcache.h (regcache_raw_supply): Remove, update callers to
6037 use detached_regcache::raw_supply.
6038 * regcache.c (regcache_raw_supply): Remove.
6039
6040 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6041
6042 * regcache.h (regcache_cooked_write_part): Remove, update
6043 callers to use regcache::cooked_write_part.
6044 * regcache.c (regcache_cooked_write_part): Remove.
6045
6046 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6047
6048 * regcache.h (regcache_cooked_read_part): Remove, update callers
6049 to use readable_regcache::cooked_read_part.
6050 * regcache.c (regcache_cooked_read_part): Remove.
6051
6052 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6053
6054 * regcache.h (regcache_cooked_read_value): Remove, update
6055 callers to use readable_regcache::cooked_read_value.
6056 * regcache.c (regcache_cooked_read_value): Remove.
6057
6058 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6059
6060 * regcache.h (regcache_cooked_write): Remove, update callers to
6061 use regcache::cooked_write.
6062 * regcache.c (regcache_cooked_write): Remove.
6063
6064 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6065
6066 * regcache.h (regcache_invalidate): Remove, update callers to
6067 use detached_regcache::invalidate instead.
6068 * regcache.c (regcache_invalidate): Remove.
6069
6070 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6071
6072 * regcache.h (regcache_raw_write_part): Remove, update callers
6073 to use regcache::raw_write_part instead.
6074 * regcache.c (regcache_raw_write_part): Remove.
6075
6076 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6077
6078 * regcache.h (regcache_raw_read_part): Remove, update callers to
6079 use readable_regcache::raw_read_part instead.
6080 * regcache.c (regcache_raw_read_part): Remove.
6081
6082 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6083
6084 * regcache.h (regcache_cooked_read): Remove, update callers to
6085 use readable_regcache::cooked_read instead.
6086 * regcache.c (regcache_cooked_read): Remove.
6087
6088 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6089
6090 * regcache.h (regcache_raw_write): Remove, update callers to use
6091 regcache::raw_write instead.
6092 * regcache.c (regcache_raw_write): Remove.
6093
6094 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6095
6096 * regcache.h (regcache_raw_read): Remove, update callers to use
6097 readable_regcache::raw_read instead.
6098 * regcache.c (regcache_raw_read): Remove.
6099
6100 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6101
6102 * regcache.h (regcache_raw_update): Remove, update callers to
6103 use readable_regcache::raw_update instead.
6104 * regcache.c (regcache_raw_update): Remove.
6105
6106 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6107
6108 * regcache.h (regcache_register_status): Remove, update callers
6109 to use reg_buffer::get_register_status directly instead.
6110 * regcache.c (regcache_register_status): Remove.
6111
6112 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6113
6114 * regcache.h (regcache_get_ptid): Remove, update all callers to
6115 call regcache::ptid instead.
6116 * regcache.c (regcache_get_ptid): Remove.
6117
6118 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6119
6120 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6121
6122 2018-05-30 Pedro Alves <palves@redhat.com>
6123
6124 * common/common-exceptions.h (exception_rethrow): Use
6125 ATTRIBUTE_NORETURN.
6126
6127 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6128
6129 * breakpoint.c (print_solib_event, check_status_catch_solib):
6130 Remove struct keyword in range-based for loops.
6131 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6132 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6133 Likewise.
6134 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6135 Likewise.
6136 * symfile.c (addr_info_make_relative): Likewise.
6137 * thread.c (value_in_thread_stack_temporaries): Likewise.
6138
6139 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6140
6141 PR gdb/16841
6142 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6143 aggregate type to get its real type before accessing it.
6144
6145 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6146
6147 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6148 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6149 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6150 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6151 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6152 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6153 * printcmd.c (info_address_command): Likewise.
6154
6155 2018-05-29 Tom Tromey <tom@tromey.com>
6156
6157 * windows-nat.c (handle_exception): Update fall-through comment.
6158
6159 2018-05-29 Tom Tromey <tom@tromey.com>
6160
6161 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6162 (struct program_space) <added_solibs>: Now a std::vector.
6163 * breakpoint.c (print_solib_event): Update.
6164 (check_status_catch_solib): Update.
6165 * progspace.c (clear_program_space_solib_cache): Update.
6166 * solib.c (update_solib_list): Update.
6167
6168 2018-05-29 Tom Tromey <tom@tromey.com>
6169
6170 * python/py-type.c (typy_richcompare): Update.
6171 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6172 * gdbtypes.h (types_deeply_equal): Return bool.
6173 (types_equal): Likewise.
6174 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6175 declare VEC.
6176 (check_types_equal): Change worklist to std::vector. Return
6177 bool.
6178 (struct type_equality_entry): Add constructor.
6179 (compare_maybe_null_strings): Return bool.
6180 (check_types_worklist): Return bool. Change worklist to
6181 std::vector.
6182 (types_deeply_equal): Use std::vector.
6183 (types_equal): Return bool.
6184 (compare_maybe_null_strings): Simplify.
6185
6186 2018-05-29 Tom Tromey <tom@tromey.com>
6187
6188 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6189
6190 2018-05-29 Tom Tromey <tom@tromey.com>
6191
6192 * objc-lang.h: Don't include cp-support.h.
6193 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6194 declare VEC.
6195
6196 2018-05-27 Tom Tromey <tom@tromey.com>
6197
6198 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6199
6200 2018-05-25 Tom Tromey <tom@tromey.com>
6201
6202 * value.c (value::location): Initialize.
6203
6204 2018-05-25 Tom Tromey <tom@tromey.com>
6205
6206 * dbxread.c (init_bincl_list): Remove.
6207 (bincl_list): Now a std::vector.
6208 (bincls_allocated, next_bincl): Remove.
6209 (free_bincl_list, do_free_bincl_list_cleanup)
6210 (make_cleanup_free_bincl_list): Remove.
6211 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6212 unique_xmalloc_ptr.
6213 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6214 (struct header_file_location): Add constructor.
6215 (add_bincl_to_list): Remove.
6216
6217 2018-05-25 Tom Tromey <tom@tromey.com>
6218
6219 * tui/tui.c (tui_enable): Update.
6220 * mi/mi-interp.c (mi_interp::init): Update.
6221 * interps.h (class interp) <name>: New method.
6222 <m_name>: Rename from name.
6223 (~scoped_restore_interp): Update.
6224 * interps.c (interp::interp): Update.
6225 (interp_add, interp_set, interp_lookup_existing)
6226 (current_interp_named_p): Update.
6227
6228 2018-05-25 Tom Tromey <tom@tromey.com>
6229
6230 * interps.c (interp_name): Remove.
6231 * mi/mi-interp.c (mi_interp::init): Update.
6232 * interps.h (interp_name): Remove.
6233 (~scoped_restore_interp): Update.
6234 * tui/tui.c (tui_enable): Update.
6235
6236 2018-05-25 Tom Tromey <tom@tromey.com>
6237
6238 * utils.c (fputs_maybe_filtered): Update.
6239 * linespec.c (decode_line_full): Update.
6240 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6241 (mi_print_breakpoint_for_event, mi_solib_loaded)
6242 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6243 (mi_user_selected_context_changed): Update.
6244 * mi/mi-main.c (mi_execute_command): Update.
6245 * cli/cli-script.c (execute_control_command): Update.
6246 * python/python.c (execute_gdb_command): Update.
6247 * solib.c (info_sharedlibrary_command): Update.
6248 * interps.c (interp_ui_out): Remove.
6249 * interps.h (interp_ui_out): Remove.
6250
6251 2018-05-25 Tom Tromey <tom@tromey.com>
6252
6253 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6254 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6255 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6256
6257 2018-05-25 Tom Tromey <tom@tromey.com>
6258
6259 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6260 * interps.c (interp_exec): Use scoped_restore.
6261
6262 2018-05-25 Tom Tromey <tom@tromey.com>
6263
6264 * remote.c (remote_target::remote_file_get): Use
6265 gdb::byte_vector.
6266 (remote_target::remote_file_put): Likewise.
6267
6268 2018-05-25 Tom Tromey <tom@tromey.com>
6269
6270 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6271 a std::string.
6272 (get_pe_section_index, add_pe_exported_sym): Update.
6273 (read_pe_exported_syms): Use gdb::def_vector.
6274
6275 2018-05-25 Tom Tromey <tom@tromey.com>
6276
6277 * frame.c (remove_prev_frame): Remove.
6278 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6279
6280 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6281
6282 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6283 Remove prototypes.
6284 * mips-linux-nat.c (supply_fpregset): Always call
6285 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6286 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6287 `mips_fill_fpregset'.
6288 * mips-linux-tdep.c (mips_supply_fpregset)
6289 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6290 (mips_fill_fpregset_wrapper): Remove functions.
6291 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6292 (mips_linux_fpregset): Remove variable.
6293 (mips_linux_iterate_over_regset_sections): Use
6294 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6295 (mips_linux_o32_sigframe_init): Remove comment.
6296
6297 2018-05-25 Pedro Alves <palves@redhat.com>
6298
6299 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6300 (struct readahead_cache, struct packet_reg, struct
6301 remote_arch_state, class remote_state): Move higher up in the
6302 file.
6303 (remote_target::m_remote_state): Now an object instead of a pointer.
6304 (remote_target::get_remote_state): Adjust.
6305
6306 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6307
6308 * stack.c (select_and_print_frame): Delete.
6309 (struct function_bounds): Move struct within function.
6310 (func_command): Most content moved into new function
6311 find_frame_for_function, use new function, print result, add
6312 function comment.
6313 (find_frame_for_function): New function, now returns a result.
6314
6315 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6316
6317 * stack.c (iterate_over_block_arg_vars): Fix comment.
6318 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6319
6320 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6321
6322 PR gdb/23203
6323 * frame.c
6324 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6325 Define.
6326 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6327 Define.
6328 * frame.h (class scoped_restore_selected_frame): New class.
6329 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6330 of any exception, use scoped_restore_selected_frame to restore the
6331 frame instead.
6332
6333 2018-05-24 Pedro Alves <palves@redhat.com>
6334
6335 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6336 override.
6337
6338 2018-05-23 Tom Tromey <tom@tromey.com>
6339
6340 * complaints.c (struct complaints): Remove.
6341 (symfile_complaint_book): Remove.
6342 (series): New global.
6343 (complaint_internal): Update.
6344 (clear_complaints): Update.
6345
6346 2018-05-23 Tom Tromey <tom@tromey.com>
6347
6348 * complaints.c (counters): New global.
6349 (struct complain): Remove.
6350 (struct complaints) <root>: Remove.
6351 (complaint_sentinel): Remove.
6352 (symfile_complaint_book): Update.
6353 (find_complaint) Remove.
6354 (complaint_internal, clear_complaints): Update.
6355
6356 2018-05-23 Tom Tromey <tom@tromey.com>
6357
6358 * complaints.c (struct complain) <file, line>: Remove.
6359 (find_complaint): Remove file, line parameters.
6360 (complaint_internal): Update.
6361
6362 2018-05-23 Tom Tromey <tom@tromey.com>
6363
6364 * complaints.c (vcomplaint): Remove.
6365 (complaint_internal) Merge in contents of vcomplaint.
6366
6367 2018-05-23 Tom Tromey <tom@tromey.com>
6368
6369 * complaints.c (struct complaints) <explanation>: Remove.
6370 (symfile_explanations): Remove.
6371 (symfile_complaint_book): Update.
6372 (vcomplaint): Update.
6373 (struct explanation): Remove.
6374
6375 2018-05-23 Tom Tromey <tom@tromey.com>
6376
6377 * complaints.c (symfile_complaints): Remove.
6378 (complaint_internal): Remove "complaints" parameter.
6379 (clear_complaints, vcomplaint): Remove "c" parameter.
6380 (get_complaints): Remove.
6381 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6382 (dwarf2_debug_line_missing_file_complaint)
6383 (dwarf2_debug_line_missing_end_sequence_complaint)
6384 (dwarf2_complex_location_expr_complaint)
6385 (dwarf2_const_value_length_mismatch_complaint)
6386 (dwarf2_section_buffer_overflow_complaint)
6387 (dwarf2_macro_malformed_definition_complaint)
6388 (dwarf2_invalid_attrib_class_complaint)
6389 (create_addrmap_from_index, dw2_symtab_iter_next)
6390 (dw2_expand_marked_cus)
6391 (dw2_debug_names_iterator::find_vec_in_debug_names)
6392 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6393 (create_debug_type_hash_table, init_cutu_and_read_dies)
6394 (partial_die_parent_scope, add_partial_enumeration)
6395 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6396 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6397 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6398 (create_cus_hash_table, create_dwp_hash_table)
6399 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6400 (dwarf2_rnglists_process, dwarf2_ranges_process)
6401 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6402 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6403 (handle_struct_member_die, process_structure_scope)
6404 (read_array_type, read_common_block, read_module_type)
6405 (read_tag_pointer_type, read_typedef, read_base_type)
6406 (read_subrange_type, load_partial_dies, partial_die_info::read)
6407 (partial_die_info::read, partial_die_info::read)
6408 (partial_die_info::read, read_checked_initial_length_and_offset)
6409 (dwarf2_string_attr, read_formatted_entries)
6410 (dwarf_decode_line_header)
6411 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6412 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6413 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6414 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6415 (get_signatured_type, get_DW_AT_signature_type)
6416 (decode_locdesc, file_file_name, consume_improper_spaces)
6417 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6418 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6419 (dwarf2_symbol_mark_computed, set_die_type)
6420 (read_attribute_value): Update.
6421 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6422 Update.
6423 * dbxread.c (unknown_symtype_complaint)
6424 (lbrac_mismatch_complaint, repeated_header_complaint)
6425 (set_namestring, function_outside_compilation_unit_complaint)
6426 (read_dbx_symtab, process_one_symbol): Update.
6427 * gdbtypes.c (stub_noname_complaint): Update.
6428 * windows-nat.c (handle_unload_dll): Update.
6429 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6430 (decode_base_type): Update.
6431 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6432 (eb_complaint, record_include_begin, record_include_end)
6433 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6434 (process_xcoff_symbol, read_symbol)
6435 (function_outside_compilation_unit_complaint)
6436 (scan_xcoff_symtab): Update.
6437 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6438 * buildsym.c (finish_block_internal, make_blockvector)
6439 (end_symtab_get_static_block, augment_type_symtab): Update.
6440 * dtrace-probe.c (dtrace_process_dof)
6441 (dtrace_static_probe_ops::get_probes): Update.
6442 * complaints.h (struct complaint): Don't declare.
6443 (symfile_complaints): Remove.
6444 (complaint_internal): Remove "complaints" parameter.
6445 (complaint): Likewise.
6446 (clear_complaints): Likewise.
6447 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6448 (reread_symbols): Update.
6449 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6450 (dwarf2_frame_cache, decode_frame_entry): Update.
6451 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6452 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6453 (info_selectors_command): Update.
6454 * macrotab.c (macro_include, check_for_redefinition)
6455 (macro_undef): Update.
6456 * objfiles.c (filter_overlapping_sections): Update.
6457 * stabsread.c (invalid_cpp_abbrev_complaint)
6458 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6459 (define_symbol, error_type, read_type, rs6000_builtin_type)
6460 (stabs_method_name_from_physname, read_member_functions)
6461 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6462 (attach_fields_to_type, complain_about_struct_wipeout)
6463 (read_range_type, read_args, common_block_start)
6464 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6465 Update.
6466 * mdebugread.c (index_complaint, unknown_ext_complaint)
6467 (basic_type_complaint, bad_tag_guess_complaint)
6468 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6469 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6470 (parse_procedure, parse_lines)
6471 (function_outside_compilation_unit_complaint)
6472 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6473 (bad_tag_guess_complaint, reg_value_complaint): Update.
6474 * cp-support.c (demangled_name_complaint): Update.
6475 * macroscope.c (sal_macro_scope): Update.
6476 * dwarf-index-write.c (class debug_names): Update.
6477
6478 2018-05-23 Tom Tromey <tom@tromey.com>
6479
6480 * complaints.c (clear_complaints): Remove "noisy" parameter.
6481 * complaints.h (clear_complaints): Update.
6482 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6483 (reread_symbols): Update.
6484
6485 2018-05-23 Tom Tromey <tom@tromey.com>
6486
6487 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6488 SUBSEQUENT_MESSAGE.
6489 (vcomplaint, clear_complaints): Update.
6490 (symfile_explanations): Remove some messages.
6491
6492 2018-05-23 Tom Tromey <tom@tromey.com>
6493
6494 * complaints.c (internal_complaint): Remove.
6495 * complaints.h (internal_complaint): Remove.
6496
6497 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6498
6499 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6500
6501 2018-05-22 Pedro Alves <palves@redhat.com>
6502
6503 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6504 (remote_fileio_badfd, remote_fileio_return_errno)
6505 (remote_fileio_return_success, remote_fileio_func_open)
6506 (remote_fileio_func_open, remote_fileio_func_close)
6507 (remote_fileio_func_read, remote_fileio_func_write)
6508 (remote_fileio_func_lseek, remote_fileio_func_rename)
6509 (remote_fileio_func_unlink, remote_fileio_func_stat)
6510 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6511 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6512 remote_target parameter.
6513 (remote_fio_func_map) <func>: Add remote_target parameter.
6514 (do_remote_fileio_request, remote_fileio_request):
6515 * remote-fileio.h (remote_fileio_request):
6516 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6517 remote_target parameter.
6518 (remote_notif_process, handle_notification): Adjust to pass down
6519 the remote.
6520 (remote_notif_state_allocate): Add remote_target parameter. Save
6521 it.
6522 * remote-notif.h (struct remote_target): Forward declare.
6523 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6524 remote_target parameter.
6525 (struct remote_notif_state) <remote>: New field.
6526 (remote_notif_ack, remote_notif_parse): Add remote_target
6527 parameter.
6528 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6529 remote_target parameter.
6530 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6531 (threads_listing_context, rmt_thread_action, protocol_feature)
6532 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6533 (packet_result, struct threads_listing_context, remote_state):
6534 Move definitions and declarations higher up.
6535 (remote_target) <~remote_target>: Declare.
6536 (remote_download_command_source, remote_file_put, remote_file_get)
6537 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6538 (remote_hostio_pread_vFile, remote_hostio_send_command)
6539 (remote_hostio_set_filesystem, remote_hostio_open)
6540 (remote_hostio_close, remote_hostio_unlink, remote_state)
6541 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6542 (get_memory_write_packet_size, get_memory_read_packet_size)
6543 (append_pending_thread_resumptions, remote_detach_1)
6544 (append_resumption, remote_resume_with_vcont)
6545 (add_current_inferior_and_thread, wait_ns, wait_as)
6546 (process_stop_reply, remote_notice_new_inferior)
6547 (process_initial_stop_replies, remote_add_thread)
6548 (btrace_sync_conf, remote_btrace_maybe_reopen)
6549 (remove_new_fork_children, kill_new_fork_children)
6550 (discard_pending_stop_replies, stop_reply_queue_length)
6551 (check_pending_events_prevent_wildcard_vcont)
6552 (discard_pending_stop_replies_in_queue, stop_reply)
6553 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6554 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6555 (remote_interrupt_as, remote_interrupt_ns)
6556 (remote_get_noisy_reply, remote_query_attached)
6557 (remote_add_inferior, remote_current_thread, get_current_thread)
6558 (set_thread, set_general_thread, set_continue_thread)
6559 (set_general_process, write_ptid)
6560 (remote_unpack_thread_info_response, remote_get_threadinfo)
6561 (parse_threadlist_response, remote_get_threadlist)
6562 (remote_threadlist_iterator, remote_get_threads_with_ql)
6563 (remote_get_threads_with_qxfer)
6564 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6565 (get_offsets, remote_check_symbols, remote_supported_packet)
6566 (remote_query_supported, remote_packet_size)
6567 (remote_serial_quit_handler, remote_detach_pid)
6568 (remote_vcont_probe, remote_resume_with_hc)
6569 (send_interrupt_sequence, interrupt_query)
6570 (remote_notif_get_pending_events, fetch_register_using_p)
6571 (send_g_packet, process_g_packet, fetch_registers_using_g)
6572 (store_register_using_P, store_registers_using_G)
6573 (set_remote_traceframe, check_binary_download)
6574 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6575 (remote_xfer_live_readonly_partial, remote_read_bytes)
6576 (remote_send_printf, remote_flash_write, readchar)
6577 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6578 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6579 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6580 (extended_remote_disable_randomization, extended_remote_run)
6581 (send_environment_packet, extended_remote_environment_support)
6582 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6583 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6584 (packet_command): Now methods of ...
6585 (remote_target): ... this class.
6586 (m_remote_state) <remote_target>: New field.
6587 (struct remote_state) <stop_reply_queue,
6588 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6589 fields.
6590 (remote_state::remote_state): Allocate stop_reply_queue.
6591 (remote_state): Delete global.
6592 (get_remote_state_raw): Delete.
6593 (remote_target::get_remote_state): Allocate m_remote_state on
6594 demand.
6595 (get_current_remote_target): New.
6596 (remote_ops, extended_remote_ops): Delete.
6597 (wait_forever_enabled_p, remote_async_inferior_event_token):
6598 Delete, moved to struct remote_state.
6599 (remote_target::close): Delete self. Destruction bits split to
6600 ...
6601 (remote_target::~remote_target): ... this.
6602 (show_memory_packet_size): Adjust to use
6603 get_current_remote_target.
6604 (struct protocol_feature) <func>: Add remote_target parameter.
6605 All callers adjusted.
6606 (curr_quit_handler_target): New.
6607 (remote_serial_quit_handler): Reimplement.
6608 (remote_target::open_1): Adjust to use get_current_remote_target.
6609 Heap-allocate remote_target/extended_remote_target instances.
6610 (vcont_builder::vcont_builder): Add remote_target parameter, and
6611 save it in m_remote. All callers adjusted.
6612 (vcont_builder::m_remote): New field.
6613 (vcont_builder::restart, vcont_builder::flush)
6614 (vcont_builder::push_action): Use it.
6615 (remote_target::commit_resume): Use it.
6616 (struct queue_iter_param) <remote>: New field.
6617 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6618 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6619 (check_pending_event_prevents_wildcard_vcont_callback)
6620 (remote_target::check_pending_events_prevent_wildcard_vcont)
6621 (remote_target::discard_pending_stop_replies)
6622 (remote_target::discard_pending_stop_replies_in_queue)
6623 (remote_target::remote_notif_remove_queued_reply): Fill in
6624 'remote' field.
6625 (remote_notif_get_pending_events): New.
6626 (remote_target::readchar, remote_target::remote_serial_write):
6627 Save/restore curr_quit_handler_target.
6628 (putpkt): New.
6629 (kill_new_fork_children): Fill in 'remote' field.
6630 (packet_command): Use get_current_remote_target, defer to
6631 remote_target method of same name.
6632 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6633 parameter, and save it in m_remote. All callers adjusted.
6634 (scoped_remote_fd::release): Use m_remote.
6635 (scoped_remote_fd::m_remote): New field.
6636 (remote_file_put, remote_file_get, remote_file_delete): Use
6637 get_current_remote_target, defer to remote_target method of same
6638 name.
6639 (remote_btrace_reset): Add remote_state paremeter. Update all
6640 callers.
6641 (remote_async_inferior_event_handler). Pass down 'data'.
6642 (remote_new_objfile): Use get_current_remote_target.
6643 (remote_target::vcont_r_supported): New.
6644 (set_range_stepping): Use get_current_remote_target and
6645 remote_target::vcont_r_supported.
6646 (_initialize_remote): Don't allocate 'remote_state' and
6647 'stop_reply_queue' globals.
6648 * remote.h (struct remote_target): Forward declare.
6649 (getpkt, putpkt, remote_notif_get_pending_events): Add
6650 'remote_target' parameter.
6651
6652 2018-05-22 Pedro Alves <palves@redhat.com>
6653
6654 * remote.c (vcont_builder): Now a class. Make all data members
6655 private.
6656 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6657 Declare methods.
6658 (vcont_builder_restart): Rename to ...
6659 (vcont_builder::restart): ... this.
6660 (vcont_builder_flush): Rename to ...
6661 (vcont_builder::flush): ... this.
6662 (vcont_builder_push_action): Rename to ...
6663 (vcont_builder::push_action): ... this.
6664 (remote_target::commit_resume): Adjust.
6665
6666 2018-05-22 Pedro Alves <palves@redhat.com>
6667
6668 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6669 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6670 (get_fixed_memory_packet_size): New.
6671 (get_memory_packet_size): Use it.
6672 (set_memory_packet_size): Don't override the config size with
6673 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6674 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6675 Don't refer to get_memory_packet_size if not connected to a remote
6676 target. Show "(default)" if configured size is 0.
6677
6678 2018-05-22 Pedro Alves <palves@redhat.com>
6679
6680 * remote.c (remote_target::mourn_inferior): Move
6681 discard_pending_stop_replies call here from ...
6682 (_initialize_remote): ... here.
6683
6684 2018-05-22 Pedro Alves <palves@redhat.com>
6685
6686 * remote.c (compare_section_command): Remove set_general_process
6687 call.
6688
6689 2018-05-22 Pedro Alves <palves@redhat.com>
6690
6691 * remote.c (struct packet_reg, struct remote_arch_state):
6692 Move higher up in the file.
6693 (remote_state) <m_arch_states>: Store remote_arch_state values
6694 instead of remote_arch_state pointers.
6695 (remote_state::get_remote_arch_state): Adjust.
6696
6697 2018-05-22 Pedro Alves <palves@redhat.com>
6698
6699 * remote.c: Include <unordered_map>.
6700 (remote_state): Now a class.
6701 (remote_state) <get_remote_arch_state>: Declare method.
6702 <get_remote_arch_state>: New field.
6703 (remote_arch_state) <remote_arch_state>: Declare ctor.
6704 <regs>: Now a unique_ptr.
6705 (remote_gdbarch_data_handle): Delete.
6706 (get_remote_arch_state): Delete.
6707 (remote_state::get_remote_arch_state): New.
6708 (get_remote_state): Adjust to call remote_state's
6709 get_remote_arch_state method.
6710 (init_remote_state): Delete, bits factored out to ...
6711 (remote_arch_state::remote_arch_state): ... this new method.
6712 (get_remote_packet_size, get_memory_packet_size)
6713 (process_g_packet, remote_target::fetch_registers)
6714 (remote_target::prepare_to_store, store_registers_using_G)
6715 (remote_target::store_registers, remote_target::get_trace_status):
6716 Adjust to call remote_state's method.
6717 (_initialize_remote): Remove reference to
6718 remote_gdbarch_data_handle.
6719
6720 2018-05-22 Pedro Alves <palves@redhat.com>
6721
6722 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6723 pread>: New method declarations.
6724 (remote_target::open_1): Adjust.
6725 (readahead_cache_invalidate): Rename to ...
6726 (readahead_cache::invalidate): ... this, and adjust to be a class
6727 method.
6728 (readahead_cache_invalidate_fd): Rename to ...
6729 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6730 class method.
6731 (remote_hostio_pwrite): Adjust.
6732 (remote_hostio_pread_from_cache): Rename to ...
6733 (readahead_cache::pread): ... this, and adjust to be a class
6734 method.
6735 (remote_hostio_close): Adjust.
6736
6737 2018-05-22 Pedro Alves <palves@redhat.com>
6738
6739 * remote.c (remote_hostio_close_cleanup): Delete.
6740 (class scoped_remote_fd): New.
6741 (remote_file_put, remote_file_get): Use it.
6742
6743 2018-05-22 Pedro Alves <palves@redhat.com>
6744
6745 (struct vCont_action_support): Use bool and initialize all fields.
6746 (struct readahead_cache): Initialize all fields.
6747 (remote_state): Use bool and initialize all fields.
6748 (remote_state::remote_state, remote_state::~remote_state): New.
6749 (new_remote_state): Delete.
6750 (_initialize_remote): Use new to allocate remote_state.
6751
6752 2018-05-22 Pedro Alves <palves@redhat.com>
6753 張俊芝 <zjz@zjz.name>
6754
6755 PR gdb/22973
6756 * c-exp.y: Include "c-support.h".
6757 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6758 of tolower. Use c_ident_is_alpha to scan names.
6759 * c-lang.c: Include "c-support.h".
6760 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6761 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6762 * c-support.h: New file, with bits factored out from ...
6763 * cp-name-parser.y: ... this file.
6764 Include "c-support.h".
6765 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6766 c-support.h and renamed.
6767 (symbol_end, yylex): Adjust.
6768
6769 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6770
6771 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6772 parameter type to CORE_ADDR.
6773 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6774 parameter type in declaration to CORE_ADDR.
6775 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6776 target_auxv_search to get AT_HWCAP and use the result to get the
6777 target description.
6778 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6779 to CORE_ADDR. Remove the cast of the return value to unsigned
6780 long. Fix error predicate of target_auxv_search.
6781 (ppc_linux_nat_target::read_description): Change the type of the
6782 hwcap variable to CORE_ADDR.
6783
6784 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6785
6786 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6787 if the size of fpscr is larger than 32 bits.
6788
6789 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6790
6791 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6792 (ppc32_linux_vsxregmap): New global.
6793 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6794 regcache_supply_regset, and regcache_collect_regset.
6795 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6796 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6797 (fetch_vsx_register, store_vsx_register): Remove.
6798 (fetch_vsx_registers): Add regno parameter. Get regset using
6799 ppc_linux_vsxregset. Use regset to supply registers.
6800 (store_vsx_registers): Add regno parameter. Get regset using
6801 ppc_linux_vsxregset. Use regset to collect registers.
6802 (fetch_register): Call fetch_vsx_registers instead of
6803 fetch_vsx_register.
6804 (store_register): Call store_vsx_registers instead of
6805 store_vsx_register.
6806 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6807 new regno parameter.
6808 (store_ppc_registers): Call store_vsx_registers with -1 for the
6809 new regno parameter.
6810 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6811 (ppc_collect_vsxregset): Remove.
6812
6813 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6814
6815 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6816 offset fields.
6817 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6818 for vector register offset fields.
6819 (ppc64_fbsd_reg_offsets): Likewise.
6820 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6821 to vector register offset fields.
6822 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6823 to vector register offset fields.
6824 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6825 vector register offset fields.
6826 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6827 initializers for vector register offset fields.
6828 (rs6000_aix64_reg_offsets): Likewise.
6829 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6830 (ppc_supply_vrregset): Remove.
6831 (ppc_collect_vrregset): Remove.
6832 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6833 (ppc_linux_vrregset) : New function.
6834 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6835 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6836 (ppc32_linux_vrregset): Remove.
6837 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6838 and use result instead of ppc32_linux_vrregset.
6839 (ppc32_linux_reg_offsets): Remove initializers for vector register
6840 offset fields.
6841 (ppc64_linux_reg_offsets): Likewise.
6842 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6843 * ppc-linux-nat.c: Include regset.h.
6844 (gdb_vrregset_t): Adjust comment to account for little-endian
6845 mode.
6846 (supply_vrregset, fill_vrregset): Remove.
6847 (fetch_altivec_register, store_altivec_register): Remove.
6848 (fetch_altivec_registers): Add regno parameter. Get regset using
6849 ppc_linux_vrregset. Use regset to supply registers.
6850 (store_altivec_registers): Add regno parameter. Get regset using
6851 ppc_linux_vrregset. Use regset to collect registers.
6852 (fetch_register): Call fetch_altivec_registers instead of
6853 fetch_altivec_register.
6854 (store_register): Call store_altivec_registers instead of
6855 store_altivec_register.
6856 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6857 the new regno parameter.
6858 (store_ppc_registers): Call store_altivec_registers with -1 for
6859 the new regno parameter.
6860
6861 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6862
6863 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6864 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6865 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6866 (gdb_vrregset_t): Change array type size to
6867 PPC_LINUX_SIZEOF_VRREGSET.
6868 (gdb_vsxregset_t): Change array type size to
6869 PPC_LINUX_SIZEOF_VSXREGSET.
6870 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6871 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6872 PPC_LINUX_SIZEOF_VSXREGSET.
6873
6874 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6875
6876 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6877 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6878 nat/ppc-linux.c.
6879 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6880 ppc_linux_target_wordsize with tid.
6881 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6882 wordsize with tid.
6883 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6884 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6885 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6886 tid parameter. Remove static specifier.
6887 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6888 (ppc_linux_target_wordsize): New declaration.
6889
6890 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6891
6892 * arch/ppc-linux-common.c: New file.
6893 * arch/ppc-linux-common.h: New file.
6894 * arch/ppc-linux-tdesc.h: New file.
6895 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6896 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6897 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6898 arch/ppc-linux-tdesc.h.
6899 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6900 arch/ppc-linux-tdesc.h.
6901 (ppc_linux_nat_target::read_description): Remove target
6902 description matching code. Fill a ppc_linux_features struct and
6903 call ppc_linux_match_description with it. Move comment about ISA
6904 2.05 to ppc-linux-common.c.
6905 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6906 arch/ppc-linux-tdesc.h.
6907 (ppc_linux_core_read_description): Remove target description
6908 matching code. Fill a ppc_linux_features struct and call
6909 ppc_linux_match_description with it.
6910 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6911 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6912 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6913 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6914 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6915 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6916 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6917 (tdesc_powerpc_e500l): Remove.
6918
6919 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6920
6921 * ada-lang.c (catch_assert_command): Pass empty string instead
6922 of NULL for excep_string argument.
6923
6924 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6925
6926 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6927 the width of the requested register exceeds the width of the
6928 `ptrace' data type.
6929
6930 2018-05-21 Tom Tromey <tom@tromey.com>
6931
6932 * printcmd.c (output_command): Remove.
6933 (output_command_const): Rename to output_command.
6934 * valprint.h (output_command): Rename from output_command_const.
6935 * tracepoint.c (trace_dump_actions): Call output_command.
6936
6937 2018-05-21 Tom Tromey <tom@tromey.com>
6938
6939 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6940 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6941 * ada-lang.h (create_ada_exception_catchpoint): Update.
6942 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6943 std::string.
6944 (create_excep_cond_exprs, ~ada_catchpoint)
6945 (should_stop_exception, print_one_exception)
6946 (print_mention_exception, print_recreate_exception): Update.
6947 (ada_get_next_arg): Remove.
6948 (catch_ada_exception_command_split): Use std::string. Change type
6949 of "excep_string", "cond_string".
6950 (catch_ada_exception_command): Update.
6951 (create_ada_exception_catchpoint): Change type of excep_string.
6952 (ada_exception_sal): Remove excep_string parameter.
6953 (~ada_catchpoint): Remove.
6954
6955 2018-05-21 Tom Tromey <tom@tromey.com>
6956
6957 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6958 cleanup.
6959
6960 2018-05-21 Tom Tromey <tom@tromey.com>
6961
6962 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6963 Return unique_xmalloc_ptr.
6964 (print_it_exception): Update.
6965
6966 2018-05-21 Tom Tromey <tom@tromey.com>
6967
6968 * tracepoint.c (trace_dump_actions): Use std::string.
6969
6970 2018-05-21 Tom Tromey <tom@tromey.com>
6971
6972 * symfile.c (reread_symbols): Use std::string for original_name.
6973
6974 2018-05-21 Tom Tromey <tom@tromey.com>
6975
6976 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6977 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6978 constructor.
6979
6980 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6981
6982 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6983 instance to...
6984 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6985 * objfiles.c (get_objfile_bfd_data): Allocate
6986 objfile_per_bfd_storage with obstack_new when allocating on
6987 obstack.
6988
6989 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6990
6991 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6992 OBSTACK_ZALLOC.
6993 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6994 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6995 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6996 (add_pending): Likewise.
6997 (parse_symbol): Likewise.
6998 (parse_partial_symbols): Likewise.
6999 (psymtab_to_symtab_1): Likewise.
7000 (new_psymtab): Likewise.
7001 (elfmdebug_build_psymtabs): Likewise.
7002 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7003 * objfiles.c (get_objfile_bfd_data): Likewise.
7004 (objfile_register_static_link): Likewise.
7005 * psymtab.c (allocate_psymtab): Likewise.
7006 * stabsread.c (read_member_functions): Likewise.
7007 * xcoffread.c (xcoff_end_psymtab): Likewise.
7008
7009 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7010
7011 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7012 compiler supports std::is_trivially_constructible.
7013 * common/poison.h: Include obstack.h.
7014 (IsMallocable): Define to is_trivially_constructible if the
7015 compiler supports it, define to true_type otherwise.
7016 (xobnew): New.
7017 (XOBNEW): Redefine.
7018 (xobnewvec): New.
7019 (XOBNEWVEC): Redefine.
7020 * gdb_obstack.h (obstack_zalloc): New.
7021 (OBSTACK_ZALLOC): Redefine.
7022 (obstack_calloc): New.
7023 (OBSTACK_CALLOC): Redefine.
7024 (obstack_new): New.
7025 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7026 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7027 gdbarch.c.
7028 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7029 obstack_calloc/obstack_zalloc.
7030 (gdbarch_obstack_zalloc): Remove.
7031 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7032
7033 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7034
7035 * stack.c (backtrace_command_1): Remove useless variable int i.
7036
7037 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7038
7039 * stack.c (print_frame_info): Fix comment.
7040
7041 2018-05-18 Tom Tromey <tom@tromey.com>
7042
7043 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7044 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7045 (~dwarf2_per_objfile): Update
7046 (dwarf2_get_dwz_file): Use new.
7047 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7048 unique_ptr.
7049
7050 2018-05-18 Tom Tromey <tom@tromey.com>
7051
7052 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7053 unique_ptr.
7054 * dwarf2read.c (struct dwp_file): Add constructor and
7055 initializers.
7056 (open_and_init_dwp_file): Return a unique_ptr.
7057 (dwarf2_per_objfile, create_dwp_hash_table)
7058 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7059 (lookup_dwo_unit_in_dwp): Update.
7060 (open_and_init_dwp_file, get_dwp_file): Update.
7061
7062 2018-05-18 Tom Tromey <tom@tromey.com>
7063
7064 * dwarf2read.c (dwarf2_per_objfile): Update.
7065 (struct mapped_index): Add initializers.
7066 (dwarf2_read_index): Use new.
7067 (dw2_symtab_iter_init): Update.
7068 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7069 unique_ptr.
7070
7071 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7072
7073 * dwarf2read.c (mapped_index) <total_size>: Remove.
7074
7075 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7076
7077 * unittests/format_pieces-selftests.c (test_format_specifier):
7078 Add ARI comments.
7079
7080 2018-05-18 Tom Tromey <tom@tromey.com>
7081
7082 * c-typeprint.c (maybe_print_hole): New function.
7083 (c_print_type_struct_field_offset): Update.
7084 (c_type_print_base_struct_union): Call maybe_print_hole.
7085
7086 2018-05-17 Keith Seitz <keiths@redhat.com>
7087
7088 * breakpoint.c (build_bpstat_chain): New function, moved from
7089 bpstat_stop_status.
7090 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7091 If no stop chain is passed, call build_bpstat_chain to build it.
7092 * breakpoint.h (build_bpstat_chain): Declare.
7093 (bpstat_stop_status): Move documentation here from breakpoint.c.
7094 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7095 build the stop chain and pass it to skip_inline_frames.
7096 Pass this stop chain to bpstat_stop_status.
7097 * inline-frame.c: Include breakpoint.h.
7098 (stopped_by_user_bp_inline_frame): New function.
7099 (skip_inline_frames): Add parameter `stop_chain'.
7100 Move documention to inline-frame.h.
7101 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7102 whether the frame should be elided.
7103 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7104 Add moved documentation and update for new parameter.
7105
7106 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7107
7108 PR cli/14975
7109 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7110 unittests/format_pieces-selftests.c.
7111 * common/format.h (format_piece) <operator==>: New.
7112 (format_pieces) <operator[]>: Remove.
7113 * common/format.c (format_pieces::format_pieces): Handle \e.
7114 * unittests/format_pieces-selftests.c: New.
7115
7116 2018-05-17 Tom Tromey <tom@tromey.com>
7117
7118 PR symtab/23010:
7119 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7120 (dw2_instantiate_symtab): Add skip_partial parameter.
7121 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7122 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7123 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7124 (dw2_expand_symtabs_matching_one)
7125 (dw2_find_pc_sect_compunit_symtab)
7126 (dw2_debug_names_lookup_symbol)
7127 (dw2_debug_names_expand_symtabs_for_function): Update.
7128 (init_cutu_and_read_dies): Add skip_partial parameter.
7129 (process_psymtab_comp_unit, build_type_psymtabs_1)
7130 (process_skeletonless_type_unit, load_partial_comp_unit)
7131 (psymtab_to_symtab_1): Update.
7132 (load_full_comp_unit): Add skip_partial parameter.
7133 (process_imported_unit_die, dwarf2_read_addr_index)
7134 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7135 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7136 (read_signatured_type): Update.
7137
7138 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7139
7140 * value.c (release_value): Remove unused variable.
7141 (record_latest_value): Likewise.
7142 (access_value_history): Likewise.
7143 (preserve_values): Likewise.
7144
7145 2018-05-17 Tom Tromey <tom@tromey.com>
7146
7147 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7148 Initialize.
7149
7150 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7151
7152 PR gdb/22286
7153 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7154 Also handle registers whose width is not a multiple of
7155 PTRACE_TYPE_RET.
7156 (linux_nat_trad_target::store_register): Likewise.
7157
7158 2018-05-16 Tom Tromey <tom@tromey.com>
7159
7160 * gdbcore.h (core_bfd): Redefine.
7161 * corelow.c (core_target::close): Update.
7162 (core_target_open): Update.
7163 * progspace.h (struct program_space) <cbfd>: Now a
7164 gdb_bfd_ref_ptr.
7165
7166 2018-05-16 Tom Tromey <tom@tromey.com>
7167
7168 PR cli/19551:
7169 * symfile-add-flags.h (enum symfile_add_flags)
7170 <SYMFILE_NOT_FILENAME>: New constant.
7171 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7172 objfile name from BFD.
7173 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7174 * minidebug.c (find_separate_debug_file_in_section): Put
7175 ".gnu_debugdata" into BFD's file name.
7176
7177 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7178
7179 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7180 Remove.
7181
7182 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7183
7184 PR binutils/21446
7185 * aarch64-tdep.c (aarch64_analyze_prologue,
7186 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7187 Indicate not interested in errors.
7188
7189 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7190
7191 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7192 Supply the MIPS_ZERO_REGNUM register.
7193
7194 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7195
7196 * mips-tdep.c (mask_address_var): Make variable static.
7197
7198 2018-05-14 Tom Tromey <tom@tromey.com>
7199
7200 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7201
7202 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7203
7204 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7205 FXSAVE_ADDR for the mxcsr register.
7206
7207 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7208
7209 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7210
7211 2018-05-11 Pedro Alves <palves@redhat.com>
7212
7213 * corelow.c (core_target) <core_target>: No longer inline.
7214 Initialize m_core_gdbarch, m_core_vec and build the section table
7215 here.
7216 <~core_target>: New.
7217 <core_gdbarch, get_core_register_section>: New methods.
7218 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7219 factored out from ...
7220 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7221 (core_ops): Delete.
7222 (sniff_core_bfd): Add gdbarch parameter.
7223 (core_close): Delete, merged into ...
7224 (core_target::close): ... here. Delete self.
7225 (core_close_cleanup): Delete.
7226 (core_target_open): Allocate a core_target on the heap. Use a
7227 unique_ptr instead of a cleanup. Bits moved into the core_target
7228 ctor. Adjust to use core_target methods instead of globals.
7229 (get_core_register_section): Rename to ...
7230 (core_target::get_core_register_section): ... this and adjust.
7231 (struct get_core_registers_cb_data): New.
7232 (get_core_registers_cb): Use it. Use bool.
7233 (core_target::fetch_registers, core_target::files_info)
7234 (core_target::xfer_partial, core_target::read_description)
7235 (core_target::pid_to, core_target::thread_name): Adjust to
7236 reference class fields instead of globals.
7237 * target.h (struct target_ops_deleter, target_ops_up): New.
7238
7239 2018-05-11 Pedro Alves <palves@redhat.com>
7240
7241 * corefile.c (core_file_command): Move to corelow.c.
7242 * corelow.c (the_core_target): Delete.
7243 (core_file_command): Moved from corefile.c. Check exec_bfd
7244 instead of the_core_target. Use target_detach instead of calling
7245 into the_core_target directly.
7246 (maybe_say_no_core_file_now): New.
7247 (core_target::detach): Use it.
7248 (_initialize_corelow): Remove references to the_core_target.
7249 * gdbcore.h (the_core_target): Delete.
7250
7251 2018-05-11 Tom Tromey <tromey@redhat.com>
7252 Pedro Alves <palves@redhat.com>
7253
7254 * corefile.c (core_bfd): Remove.
7255 * gdbcore.h (core_bfd): Now a macro.
7256 * progspace.h (struct program_space) <cbfd>: New field.
7257
7258 2018-05-11 Tom Tromey <tom@tromey.com>
7259
7260 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7261 gdb::def_vector.
7262
7263 2018-05-10 Tom Tromey <tom@tromey.com>
7264
7265 * configure: Rebuild.
7266 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7267
7268 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7269
7270 PR server/23158:
7271 * regformats/regdat.sh: Adjust script, following the addition
7272 of the new expedite_regs parameter to init_target_desc.
7273
7274 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7275
7276 PR gdb/23127
7277 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7278 set_gdbarch_significant_addr_bit.
7279 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7280 set_gdbarch_significant_addr_bit.
7281 * utils.c (address_significant): Update to sign extend addr.
7282
7283 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7284
7285 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7286 (xtensa_linux_init_abi): Limit tdep->num_regs by
7287 tdep->num_nopriv_regs.
7288 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7289 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7290 not initialized.
7291
7292 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7293
7294 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7295
7296 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7297
7298 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7299 (I387_MXCSR_INIT_VAL): New constant.
7300 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7301 buffer if it was supplied by the inferior.
7302 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7303 (i387_xsave_get_clear_bv): New function.
7304 (i387_supply_xsave): Only read x87 control registers from the
7305 xsave buffer if the feature is enabled, and the state will have
7306 been written, otherwise, provide a suitable default.
7307 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7308 including x87 control registers. Update control registers if they
7309 have changed from the default value, and mark features as enabled
7310 as required.
7311 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7312
7313 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7314
7315 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7316
7317 2018-05-07 Tom Tromey <tom@tromey.com>
7318
7319 * configure: Rebuild.
7320 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7321
7322 2018-05-07 Tom Tromey <tom@tromey.com>
7323
7324 PR tdep/20362:
7325 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7326 bit. Use correct value for VDIV.
7327
7328 2018-05-04 Tom Tromey <tom@tromey.com>
7329
7330 * configure: Rebuild.
7331 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7332
7333 2018-05-04 Tom Tromey <tom@tromey.com>
7334
7335 * linux-record.c (record_linux_system_call) <case
7336 RECORD_SYS_RECVFROM>: Add "break".
7337
7338 2018-05-04 Tom Tromey <tom@tromey.com>
7339
7340 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7341 Add missing "break".
7342 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7343 Add missing "break".
7344
7345 2018-05-04 Tom Tromey <tom@tromey.com>
7346
7347 * rs6000-tdep.c (ppc_process_record_op4)
7348 (ppc_process_record_op63): Add fall-through comment.
7349
7350 2018-05-04 Tom Tromey <tom@tromey.com>
7351
7352 * i386-tdep.c (i386_process_record): Add fall-through comment.
7353
7354 2018-05-04 Tom Tromey <tom@tromey.com>
7355
7356 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7357 comment.
7358
7359 2018-05-04 Tom Tromey <tom@tromey.com>
7360
7361 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7362 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7363 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7364 comment.
7365 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7366 comment.
7367 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7368 comment.
7369
7370 2018-05-04 Tom Tromey <tom@tromey.com>
7371
7372 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7373
7374 2018-05-04 Tom Tromey <tom@tromey.com>
7375
7376 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7377 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7378 * symfile.c (section_is_mapped): Fix fall-through comment.
7379 * stabsread.c (define_symbol, read_member_functions): Fix
7380 fall-through comment.
7381 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7382 comment.
7383 * remote.c (remote_wait_as): Fix fall-through comment.
7384 * p-exp.y (yylex): Fix fall-through comment.
7385 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7386 comment.
7387 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7388 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7389 * jv-exp.y (yylex): Fix fall-through comment.
7390 * go-exp.y (lex_one_token): Fix fall-through comment.
7391 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7392 fall-through comment.
7393 * f-exp.y (yylex): Fix fall-through comment.
7394 * dwarf2read.c (process_die): Fix fall-through comments.
7395 * dbxread.c (process_one_symbol): Fix fall-through comment.
7396 * d-exp.y (lex_one_token): Fix fall-through comment.
7397 * cp-name-parser.y (yylex): Fix fall-through comment.
7398 * coffread.c (coff_symtab_read): Fix fall-through comment.
7399 * c-exp.y (lex_one_token): Fix fall-through comment.
7400 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7401 comment.
7402 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7403 comment.
7404
7405 2018-05-04 Tom Tromey <tom@tromey.com>
7406
7407 PR python/22730:
7408 * NEWS: Mention gdb.execute change.
7409 * gdbcmd.h (execute_control_command): Don't declare.
7410 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7411 execute_control_commands, execute_control_commands_to_string.
7412 * cli/cli-script.h (execute_control_commands)
7413 (execute_control_commands_to_string): Declare.
7414 (execute_control_command): Add from_tty parameter.
7415 * cli/cli-script.c (execute_control_commands)
7416 (execute_control_commands_to_string): New functions.
7417 (execute_user_command): Use execute_control_commands.
7418 (execute_control_command_1): Add "from_tty" parameter. Update.
7419 (execute_control_command): Likewise.
7420
7421 2018-05-04 Tom Tromey <tom@tromey.com>
7422
7423 PR python/22731:
7424 * NEWS: Mention that breakpoint commands are writable.
7425 * python/py-breakpoint.c (bppy_set_commands): New function.
7426 (breakpoint_object_getset) <"commands">: Use it.
7427
7428 2018-05-04 Tom Tromey <tom@tromey.com>
7429
7430 * tracepoint.c (actions_command): Update.
7431 * mi/mi-cmd-break.c (mi_command_line_array)
7432 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7433 (mi_read_next_line): Remove.
7434 (mi_cmd_break_commands): Update.
7435 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7436 function_view.
7437 * cli/cli-script.c (get_command_line): Update.
7438 (process_next_line): Use function_view. Constify.
7439 (recurse_read_control_structure, read_command_lines)
7440 (read_command_lines_1): Change argument types to function_view.
7441 (do_define_command, document_command): Update.
7442 * breakpoint.h (check_tracepoint_command): Don't declare.
7443 * breakpoint.c (check_tracepoint_command): Remove.
7444 (commands_command_1, create_tracepoint_from_upload): Update.
7445
7446 2018-05-04 Tom Tromey <tom@tromey.com>
7447
7448 PR gdb/11750:
7449 * cli/cli-script.h (enum command_control_type) <define_control>:
7450 New constant.
7451 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7452 (build_command_line, execute_control_command_1)
7453 (process_next_line): Likewise.
7454 (do_define_command): New function, extracted from define_command.
7455 (define_command): Use it.
7456
7457 2018-05-04 Tom Tromey <tom@tromey.com>
7458
7459 * tracepoint.c (actions_command): Update.
7460 * cli/cli-script.h (read_command_lines): Update.
7461 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7462 (MAX_TMPBUF): Remove define.
7463 (define_command): Use string_printf.
7464 (document_command): Likewise.
7465 * breakpoint.c (commands_command_1): Update.
7466
7467 2018-05-04 Tom Tromey <tom@tromey.com>
7468
7469 * top.c (execute_command): Update.
7470 * cli/cli-script.h (print_command_lines): Now varargs.
7471 * cli/cli-script.c (print_command_lines): Now varargs.
7472 (execute_control_command_1) <case while_control, case if_control>:
7473 Update.
7474
7475 2018-05-04 Tom Tromey <tom@tromey.com>
7476
7477 * tracepoint.c (all_tracepoint_actions): Rename from
7478 all_tracepoint_actions_and_cleanup. Change return type.
7479 (actions_command, encode_actions_1, encode_actions)
7480 (trace_dump_actions, tdump_command): Update.
7481 * remote.c (remote_download_command_source): Update.
7482 * python/python.c (gdbpy_eval_from_control_command)
7483 (python_command, python_interactive_command): Update.
7484 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7485 * guile/guile.c (guile_command)
7486 (gdbscm_eval_from_control_command, guile_command): Update.
7487 * compile/compile.c (compile_code_command)
7488 (compile_print_command, compile_to_object): Update.
7489 * cli/cli-script.h (struct command_lines_deleter): New.
7490 (counted_command_line): New typedef.
7491 (struct command_line): Add constructor, destructor.
7492 <body_list>: Remove.
7493 <body_list_0, body_list_1>: New members.
7494 (command_line_up): Remove typedef.
7495 (read_command_lines, read_command_lines_1, get_command_line):
7496 Update.
7497 (copy_command_lines): Don't declare.
7498 * cli/cli-script.c (build_command_line): Use "new".
7499 (get_command_line): Return counted_command_line.
7500 (print_command_lines, execute_user_command)
7501 (execute_control_command_1, while_command, if_command): Update.
7502 (realloc_body_list): Remove.
7503 (process_next_line, recurse_read_control_structure): Update.
7504 (read_command_lines, read_command_lines_1): Return counted_command_line.
7505 (free_command_lines): Use "delete".
7506 (copy_command_lines): Remove.
7507 (define_command, document_command, show_user_1): Update.
7508 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7509 a counted_command_line.
7510 * breakpoint.h (counted_command_line): Remove typedef.
7511 (breakpoint_set_commands): Update.
7512 * breakpoint.c (check_no_tracepoint_commands)
7513 (validate_commands_for_breakpoint): Update.
7514 (breakpoint_set_commands): Change commands to be a
7515 counted_command_line.
7516 (commands_command_1, update_dprintf_command_list)
7517 (create_tracepoint_from_upload): Update.
7518
7519 2018-05-04 Tom Tromey <tom@tromey.com>
7520
7521 * cli/cli-decode.h (cmd_list_element): New constructor.
7522 (~cmd_list_element): New destructor.
7523 (struct cmd_list_element): Add initializers.
7524 * cli/cli-decode.c (do_add_cmd): Use "new".
7525 (delete_cmd): Use "delete".
7526
7527 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7528 Pedro Alves <palves@redhat.com>
7529
7530 PR breakpoints/19806 and support for PR external/20207.
7531 * NEWS: Mention Aarch64 watchpoint improvements.
7532 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7533 watchpoints and PR external/20207 watchpoints.
7534 * nat/aarch64-linux-hw-point.c
7535 (kernel_supports_any_contiguous_range): New.
7536 (aarch64_watchpoint_offset): New.
7537 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7538 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7539 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7540 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7541 next_addr_orig_p. Support PR external/20207 watchpoints.
7542 (aarch64_downgrade_regs): New.
7543 (aarch64_dr_state_insert_one_point): New parameters offset and
7544 addr_orig.
7545 (aarch64_dr_state_remove_one_point): Likewise.
7546 (aarch64_handle_breakpoint): Update caller.
7547 (aarch64_handle_aligned_watchpoint): Likewise.
7548 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7549 aligned_offset.
7550 (aarch64_linux_set_debug_regs): Remove const from state. Call
7551 aarch64_downgrade_regs.
7552 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7553 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7554 (DR_CONTROL_MASK): ... this.
7555 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7556 (unsigned int aarch64_watchpoint_offset): New prototype.
7557 (aarch64_linux_set_debug_regs): Remove const from state.
7558 * utils.c (align_up, align_down): Move to ...
7559 * common/common-utils.c (align_up, align_down): ... here.
7560 * utils.h (align_up, align_down): Move to ...
7561 * common/common-utils.h (align_up, align_down): ... here.
7562
7563 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7564
7565 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7566 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7567 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7568 Re-implement to match the ABI as summarized in GCC's
7569 gcc/config/sparc/sparc.c. All callers updated.
7570 (sparc32_store_arguments): Remove assertion.
7571
7572 2018-05-04 Tom Tromey <tom@tromey.com>
7573
7574 * printcmd.c: Don't include tui.h.
7575 (decode_format): Use skip_spaces.
7576
7577 2018-05-04 Tom Tromey <tom@tromey.com>
7578
7579 PR gdb/22619:
7580 * printcmd.c (last_count): New global.
7581 (x_command): Use saved count when repeating.
7582
7583 2018-05-04 Tom Tromey <tom@tromey.com>
7584
7585 * nto-procfs.c (do_closedir_cleanup): Remove.
7586 (procfs_pidlist): Use gdb_dir_up.
7587 * procfs.c (do_closedir_cleanup): Remove.
7588 (proc_update_threads): Use gdb_dir_up.
7589 * common/filestuff.h (struct gdb_dir_deleter): New.
7590 (gdb_dir_up): New typedef.
7591
7592 2018-05-04 Tom Tromey <tom@tromey.com>
7593
7594 * ada-lang.c (print_mention_exception): Use std::string.
7595
7596 2018-05-04 Tom Tromey <tom@tromey.com>
7597
7598 * ada-lang.c (create_excep_cond_exprs): Update.
7599 (ada_exception_catchpoint_cond_string): Use std::string.
7600
7601 2018-05-04 Tom Tromey <tom@tromey.com>
7602
7603 * ada-lang.c (xget_renaming_scope): Return std::string.
7604 (old_renaming_is_invisible): Update.
7605
7606 2018-05-04 Tom Tromey <tom@tromey.com>
7607
7608 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7609 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7610
7611 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7612
7613 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7614
7615 2018-05-04 Tom Tromey <tom@tromey.com>
7616
7617 * remote.c (remote_query_supported_append): Change type.
7618 (remote_check_symbols): Update.
7619
7620 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7621
7622 PR gdb/11420
7623 * configure.ac: Prepend libpython.
7624 * python/python-config.py: Likewise.
7625 * configure: Regenerate.
7626
7627 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7628
7629 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7630
7631 2018-05-03 Pedro Alves <palves@redhat.com>
7632
7633 * s390-linux-nat.c
7634 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7635 override. Write 'true' instead of '1'.
7636 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7637 declaration.
7638
7639 2018-05-02 Pedro Alves <palves@redhat.com>
7640
7641 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7642 add_inf_child_target.
7643 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7644 add_inf_child_target.
7645 * aix-thread.c (aix_thread_target_info): New.
7646 (aix_thread_target) <shortname, longname, doc>: Delete.
7647 <info>: New.
7648 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7649 add_inf_child_target.
7650 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7651 add_inf_child_target.
7652 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7653 add_inf_child_target.
7654 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7655 add_inf_child_target.
7656 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7657 add_inf_child_target.
7658 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7659 add_inf_child_target.
7660 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7661 add_inf_child_target.
7662 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7663 add_inf_child_target.
7664 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7665 add_inf_child_target.
7666 * bfd-target.c (target_bfd_target_info): New.
7667 (target_bfd) <shortname, longname, doc>: Delete.
7668 <info>: New.
7669 * bsd-kvm.c (bsd_kvm_target_info): New.
7670 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7671 <info>: New.
7672 (bsd_kvm_target::open): Rename to ...
7673 (bsd_kvm_target_open): ... this. Adjust.
7674 * bsd-uthread.c (bsd_uthread_target_info): New.
7675 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7676 <info>: New.
7677 * corefile.c (core_file_command): Adjust.
7678 * corelow.c (core_target_info): New.
7679 (core_target) <shortname, longname, doc>: Delete.
7680 <info>: New.
7681 (core_target::open): Rename to ...
7682 (core_target_open): ... this. Adjust.
7683 * ctf.c (ctf_target_info): New.
7684 (ctf_target) <shortname, longname, doc>: Delete.
7685 <info>: New.
7686 (ctf_target::open): Rename to ...
7687 (ctf_target_open): ... this.
7688 (_initialize_ctf): Adjust.
7689 * exec.c (exec_target_info): New.
7690 (exec_target) <shortname, longname, doc>: Delete.
7691 <info>: New.
7692 (exec_target::open): Rename to ...
7693 (exec_target_open): ... this.
7694 * gdbcore.h (core_target_open): Declare.
7695 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7696 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7697 add_inf_child_target.
7698 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7699 add_inf_child_target.
7700 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7701 add_inf_child_target.
7702 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7703 add_inf_child_target.
7704 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7705 add_inf_child_target.
7706 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7707 add_inf_child_target.
7708 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7709 add_inf_child_target.
7710 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7711 add_inf_child_target.
7712 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7713 add_inf_child_target.
7714 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7715 add_inf_child_target.
7716 * inf-child.c (inf_child_target_info): New.
7717 (inf_child_target::info): New.
7718 (inf_child_open_target): Remove 'target' parameter. Use
7719 get_native_target instead.
7720 (inf_child_target::open): Delete.
7721 (add_inf_child_target): New.
7722 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7723 Delete.
7724 <info>: New.
7725 (add_inf_child_target): Declare.
7726 (inf_child_open_target): Declare.
7727 * linux-thread-db.c (thread_db_target_info): New.
7728 (thread_db_target) <shortname, longname, doc>: Delete.
7729 <info>: New.
7730 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7731 add_inf_child_target.
7732 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7733 add_inf_child_target.
7734 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7735 add_inf_child_target.
7736 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7737 add_inf_child_target.
7738 * make-target-delegates (print_class): Adjust.
7739 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7740 add_inf_child_target.
7741 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7742 add_inf_child_target.
7743 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7744 add_inf_child_target.
7745 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7746 add_inf_child_target.
7747 * nto-procfs.c (nto_native_target_info): New.
7748 (nto_procfs_target_native) <shortname, longname, doc>:
7749 Delete.
7750 <info>: New.
7751 (nto_procfs_target_info): New.
7752 (nto_procfs_target_procfs) <shortname, longname, doc>:
7753 Delete.
7754 <info>: New.
7755 (init_procfs_targets): Adjust.
7756 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7757 add_inf_child_target.
7758 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7759 add_inf_child_target.
7760 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7761 add_inf_child_target.
7762 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7763 add_inf_child_target.
7764 * ravenscar-thread.c (ravenscar_target_info): New.
7765 (ravenscar_thread_target) <shortname, longname, doc>:
7766 Delete.
7767 <info>: New.
7768 * record-btrace.c (record_btrace_target_info):
7769 (record_btrace_target) <shortname, longname, doc>: Delete.
7770 <info>: New.
7771 (record_btrace_target::open): Rename to ...
7772 (record_btrace_target_open): ... this. Adjust.
7773 * record-full.c (record_longname, record_doc): New.
7774 (record_full_base_target) <shortname, longname, doc>: Delete.
7775 <info>: New.
7776 (record_full_target_info): New.
7777 (record_full_target): <shortname>: Delete.
7778 <info>: New.
7779 (record_full_core_open_1, record_full_open_1): Update comments.
7780 (record_full_base_target::open): Rename to ...
7781 (record_full_open): ... this.
7782 (cmd_record_full_restore): Update.
7783 (_initialize_record_full): Update.
7784 * remote-sim.c (remote_sim_target_info): New.
7785 (gdbsim_target) <shortname, longname, doc>: Delete.
7786 <info>: New.
7787 (gdbsim_target::open): Rename to ...
7788 (gdbsim_target_open): ... this.
7789 (_initialize_remote_sim): Adjust.
7790 * remote.c (remote_doc): New.
7791 (remote_target_info): New.
7792 (remote_target) <shortname, longname, doc>: Delete.
7793 <info>: New.
7794 (extended_remote_target_info): New.
7795 (extended_remote_target) <shortname, longname, doc>: Delete.
7796 <info>: New.
7797 (remote_target::open_1): Make static. Adjust.
7798 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7799 * s390-linux-nat.c (_initialize_s390_nat): Use
7800 add_inf_child_target.
7801 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7802 add_inf_child_target.
7803 * sol-thread.c (thread_db_target_info): New.
7804 (sol_thread_target) <shortname, longname, doc>: Delete.
7805 <info>: New.
7806 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7807 add_inf_child_target.
7808 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7809 add_inf_child_target.
7810 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7811 add_inf_child_target.
7812 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7813 add_inf_child_target.
7814 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7815 add_inf_child_target.
7816 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7817 add_inf_child_target.
7818 * spu-linux-nat.c (_initialize_spu_nat): Use
7819 add_inf_child_target.
7820 * spu-multiarch.c (spu_multiarch_target_info): New.
7821 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7822 <info>: New.
7823 * target-delegates.c: Regenerate.
7824 * target.c: Include <unordered_map>.
7825 (target_ops_p): Delete.
7826 (DEF_VEC_P(target_ops_p)): Delete.
7827 (target_factories): New.
7828 (test_target_info): New.
7829 (test_target_ops::info): New.
7830 (open_target): Adjust to use target_factories.
7831 (add_target_with_completer): Rename to ...
7832 (add_target): ... this. Change prototype. Register target_info
7833 and open callback in target_factories. Register target_info in
7834 command context instead of target_ops.
7835 (add_target): Delete old implementation.
7836 (add_deprecated_target_alias): Change prototype. Adjust.
7837 (the_native_target): New.
7838 (set_native_target, get_native_target): New.
7839 (find_default_run_target): Use the_native_target.
7840 (find_attach_target, find_run_target): Simplify.
7841 (target_ops::open): Delete.
7842 (dummy_target_info): New.
7843 (dummy_target::shortname, dummy_target::longname)
7844 (dummy_target::doc): Delete.
7845 (dummy_target::info): New.
7846 (debug_target::shortname, debug_target::longname)
7847 (debug_target::doc): Delete.
7848 (debug_target::info): New.
7849 * target.h (struct target_info): New.
7850 (target_ops::~target_ops): Add comment.
7851 (target_ops::info): New.
7852 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7853 longer virtual. Implement in terms of target_info.
7854 (set_native_target, get_native_target): Declare.
7855 (target_open_ftype): New.
7856 (add_target, add_target_with_completer)
7857 (add_deprecated_target_alias): Change prototype.
7858 (test_target) <shortname, longname, doc>: Delete.
7859 <info>: New.
7860 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7861 add_inf_child_target.
7862 * tracefile-tfile.c (tfile_target_info): New.
7863 (tfile_target) <shortname, longname, doc>: Delete.
7864 <info>: New.
7865 (tfile_target::open): Rename to ...
7866 (tfile_target_open): ... this.
7867 (_initialize_tracefile_tfile): Adjust.
7868 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7869 add_inf_child_target.
7870 * windows-nat.c (_initialize_windows_nat): Use
7871 add_inf_child_target.
7872 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7873 add_inf_child_target.
7874
7875 2018-05-02 Pedro Alves <palves@redhat.com>
7876
7877 * linux-nat.h (linux_nat_target) <low_new_thread,
7878 low_delete_thread, low_new_fork, low_forget_process,
7879 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7880 New virtual methods.
7881 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7882 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7883 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7884 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7885 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7886 Delete.
7887 * linux-fork.c (delete_fork): Adjust to call low method.
7888 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7889 (linux_nat_new_fork, linux_nat_forget_process_hook)
7890 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7891 (linux_nat_status_is_event):
7892 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7893 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7894 to call low method.
7895 (sigtrap_is_event): Rename to ...
7896 (linux_nat_target::low_status_is_event): ... this.
7897 (linux_nat_set_status_is_event): Delete.
7898 (save_stop_reason, linux_nat_wait_1)
7899 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7900 low methods.
7901 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7902 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7903 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7904 (linux_nat_set_prepare_to_resume): Delete.
7905 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7906 low virtual methods.
7907 * amd64-linux-nat.c: Likewise.
7908 * arm-linux-nat.c: Likewise.
7909 * i386-linux-nat.c: Likewise.
7910 * ia64-linux-nat.c: Likewise.
7911 * mips-linux-nat.c: Likewise.
7912 * ppc-linux-nat.c: Likewise.
7913 * s390-linux-nat.c: Likewise.
7914 * sparc64-linux-nat.c: Likewise.
7915 * x86-linux-nat.c: Likewise.
7916 * x86-linux-nat.h: Include "nat/x86-linux.h".
7917 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7918 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7919 Override methods.
7920
7921 2018-05-02 Pedro Alves <palves@redhat.com>
7922
7923 * target.h (target_ops)
7924 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7925 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7926 stopped_by_watchpoint, have_continuable_watchpoint,
7927 stopped_data_address, watchpoint_addr_within_range,
7928 can_accel_watchpoint_condition, can_run, thread_alive,
7929 has_all_memory, has_memory, has_stack, has_registers,
7930 has_execution, can_async_p, is_async_p, supports_non_stop,
7931 always_non_stop_p, can_execute_reverse, supports_multi_process,
7932 supports_enable_disable_tracepoint,
7933 supports_disable_randomization, supports_string_tracing,
7934 supports_evaluation_of_breakpoint_conditions,
7935 can_run_breakpoint_commands, filesystem_is_local,
7936 can_download_tracepoint, get_trace_state_variable_value,
7937 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7938 record_is_replaying, record_will_replay,
7939 augmented_libraries_svr4_read>: Adjust to return bool.
7940 * aarch64-linux-nat.c: All implementations adjusted.
7941 * aix-thread.c: All implementations adjusted.
7942 * arm-linux-nat.c: All implementations adjusted.
7943 * breakpoint.c: All implementations adjusted.
7944 * bsd-kvm.c: All implementations adjusted.
7945 * bsd-uthread.c: All implementations adjusted.
7946 * corelow.c: All implementations adjusted.
7947 * ctf.c: All implementations adjusted.
7948 * darwin-nat.c: All implementations adjusted.
7949 * darwin-nat.h: All implementations adjusted.
7950 * exec.c: All implementations adjusted.
7951 * fbsd-nat.c: All implementations adjusted.
7952 * fbsd-nat.h: All implementations adjusted.
7953 * gnu-nat.c: All implementations adjusted.
7954 * gnu-nat.h: All implementations adjusted.
7955 * go32-nat.c: All implementations adjusted.
7956 * ia64-linux-nat.c: All implementations adjusted.
7957 * inf-child.c: All implementations adjusted.
7958 * inf-child.h: All implementations adjusted.
7959 * inf-ptrace.c: All implementations adjusted.
7960 * inf-ptrace.h: All implementations adjusted.
7961 * linux-nat.c: All implementations adjusted.
7962 * linux-nat.h: All implementations adjusted.
7963 * mips-linux-nat.c: All implementations adjusted.
7964 * nto-procfs.c: All implementations adjusted.
7965 * ppc-linux-nat.c: All implementations adjusted.
7966 * procfs.c: All implementations adjusted.
7967 * ravenscar-thread.c: All implementations adjusted.
7968 * record-btrace.c: All implementations adjusted.
7969 * record-full.c: All implementations adjusted.
7970 * remote-sim.c: All implementations adjusted.
7971 * remote.c: All implementations adjusted.
7972 * s390-linux-nat.c: All implementations adjusted.
7973 * sol-thread.c: All implementations adjusted.
7974 * spu-multiarch.c: All implementations adjusted.
7975 * target-delegates.c: All implementations adjusted.
7976 * target.c: All implementations adjusted.
7977 * target.h: All implementations adjusted.
7978 * tracefile-tfile.c: All implementations adjusted.
7979 * tracefile.c: All implementations adjusted.
7980 * tracefile.h: All implementations adjusted.
7981 * windows-nat.c: All implementations adjusted.
7982 * x86-linux-nat.h: All implementations adjusted.
7983 * x86-nat.h: All implementations adjusted.
7984
7985 2018-05-02 Pedro Alves <palves@redhat.com>
7986
7987 * make-target-delegates (scan_target_h): Don't trim lines here.
7988 Replace sequences of tabs and/or whitespace with a single
7989 whitespace.
7990 (top level, parsing methods): Trim each line before processing it
7991 here.
7992
7993 2018-05-02 Pedro Alves <palves@redhat.com>
7994 John Baldwin <jhb@freebsd.org>
7995
7996 * target.h (enum strata) <debug_stratum>: New.
7997 (struct target_ops) <all delegation methods>: Replace by C++
7998 virtual methods, and drop "to_" prefix. All references updated
7999 throughout.
8000 <to_shortname, to_longname, to_doc, to_data,
8001 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8002 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8003 virtual methods. All references updated throughout.
8004 <can_attach, supports_terminal_ours, can_create_inferior,
8005 get_thread_control_capabilities, attach_no_wait>: New
8006 virtual methods.
8007 <insert_breakpoint, remove_breakpoint>: Now
8008 TARGET_DEFAULT_NORETURN methods.
8009 <info_proc>: Now returns bool.
8010 <to_magic>: Delete.
8011 (OPS_MAGIC): Delete.
8012 (current_target): Delete. All references replaced by references
8013 to ...
8014 (target_stack): ... this. New.
8015 (target_shortname, target_longname): Adjust.
8016 (target_can_run): Now a function declaration.
8017 (default_child_has_all_memory, default_child_has_memory)
8018 (default_child_has_stack, default_child_has_registers)
8019 (default_child_has_execution): Remove target_ops parameter.
8020 (complete_target_initialization): Delete.
8021 (memory_breakpoint_target): New template class.
8022 (test_target_ops): Refactor as a C++ class with virtual methods.
8023 * make-target-delegates (NAME_PART): Tighten.
8024 (POINTER_PART, CP_SYMBOL): New.
8025 (SIMPLE_RETURN_PART): Reimplement.
8026 (VEC_RETURN_PART): Expect less.
8027 (RETURN_PART, VIRTUAL_PART): New.
8028 (METHOD): Adjust to C++ virtual methods.
8029 (scan_target_h): Remove reference to C99.
8030 (dname): Output "target_ops::" prefix.
8031 (write_function_header): Adjust to output a C++ class method.
8032 (write_declaration): New.
8033 (write_delegator): Adjust to output a C++ class method.
8034 (tdname): Output "dummy_target::" prefix.
8035 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8036 method.
8037 (tdefault_names, debug_names): Delete.
8038 (return_types, tdefaults, styles, argtypes_array): New.
8039 (top level): All methods are delegators.
8040 (print_class): New.
8041 (top level): Print dummy_target and debug_target classes.
8042 * target-delegates.c: Regenerate.
8043 * target-debug.h (target_debug_print_enum_info_proc_what)
8044 (target_debug_print_thread_control_capabilities)
8045 (target_debug_print_thread_info_p): New.
8046 * target.c (dummy_target): Delete.
8047 (the_dummy_target, the_debug_target): New.
8048 (target_stack): Now extern.
8049 (set_targetdebug): Push/unpush debug target.
8050 (default_child_has_all_memory, default_child_has_memory)
8051 (default_child_has_stack, default_child_has_registers)
8052 (default_child_has_execution): Remove target_ops parameter.
8053 (complete_target_initialization): Delete.
8054 (add_target_with_completer): No longer call
8055 complete_target_initialization.
8056 (target_supports_terminal_ours): Use regular delegation.
8057 (update_current_target): Delete.
8058 (push_target): No longer check magic number. Don't call
8059 update_current_target.
8060 (unpush_target): Don't call update_current_target.
8061 (target_is_pushed): No longer check magic number.
8062 (target_require_runnable): Skip for all stratums over
8063 process_stratum.
8064 (target_ops::info_proc): New.
8065 (target_info_proc): Use find_target_at and
8066 find_default_run_target.
8067 (target_supports_disable_randomization): Use regular delegation.
8068 (target_get_osdata): Use find_target_at.
8069 (target_ops::open, target_ops::close, target_ops::can_attach)
8070 (target_ops::attach, target_ops::can_create_inferior)
8071 (target_ops::create_inferior, target_ops::can_run)
8072 (target_can_run): New.
8073 (default_fileio_target): Use regular delegation.
8074 (target_ops::fileio_open, target_ops::fileio_pwrite)
8075 (target_ops::fileio_pread, target_ops::fileio_fstat)
8076 (target_ops::fileio_close, target_ops::fileio_unlink)
8077 (target_ops::fileio_readlink): New.
8078 (target_fileio_open_1, target_fileio_unlink)
8079 (target_fileio_readlink): Always call the target method. Handle
8080 FILEIO_ENOSYS.
8081 (return_zero, return_zero_has_execution): Delete.
8082 (init_dummy_target): Delete.
8083 (dummy_target::dummy_target, dummy_target::shortname)
8084 (dummy_target::longname, dummy_target::doc)
8085 (debug_target::debug_target, debug_target::shortname)
8086 (debug_target::longname, debug_target::doc): New.
8087 (target_supports_delete_record): Use regular delegation.
8088 (setup_target_debug): Delete.
8089 (maintenance_print_target_stack): Skip debug_stratum.
8090 (initialize_targets): Instantiate the_dummy_target and
8091 the_debug_target.
8092 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8093 use target_stack.
8094 (target_auxv_search, fprint_target_auxv): Adjust.
8095 (info_auxv_command): Adjust to use target_stack.
8096 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8097 * exceptions.c (print_flush): Handle a NULL target_stack.
8098 * regcache.c (target_ops_no_register): Refactor as class with
8099 virtual methods.
8100
8101 * exec.c (exec_target): New class.
8102 (exec_ops): Now an exec_target.
8103 (exec_open, exec_close_1, exec_get_section_table)
8104 (exec_xfer_partial, exec_files_info, exec_has_memory)
8105 (exec_make_note_section): Refactor as exec_target methods.
8106 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8107 Delete.
8108 (exec_target::find_memory_regions): New.
8109 (_initialize_exec): Don't call init_exec_ops.
8110 * gdbcore.h (exec_file_clear): Delete.
8111
8112 * corefile.c (core_target): Delete.
8113 (core_file_command): Adjust.
8114 * corelow.c (core_target): New class.
8115 (the_core_target): New.
8116 (core_close): Remove target_ops parameter.
8117 (core_close_cleanup): Adjust.
8118 (core_target::close): New.
8119 (core_open, core_detach, get_core_registers, core_files_info)
8120 (core_xfer_partial, core_thread_alive, core_read_description)
8121 (core_pid_to_str, core_thread_name, core_has_memory)
8122 (core_has_stack, core_has_registers, core_info_proc): Rework as
8123 core_target methods.
8124 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8125 (_initialize_corelow): Initialize the_core_target.
8126 * gdbcore.h (core_target): Delete.
8127 (the_core_target): New.
8128
8129 * ctf.c: (ctf_target): New class.
8130 (ctf_ops): Now a ctf_target.
8131 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8132 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8133 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8134 methods.
8135 (init_ctf_ops): Delete.
8136 (_initialize_ctf): Don't call it.
8137 * tracefile-tfile.c (tfile_target): New class.
8138 (tfile_ops): Now a tfile_target.
8139 (tfile_open, tfile_close, tfile_files_info)
8140 (tfile_get_tracepoint_status, tfile_trace_find)
8141 (tfile_fetch_registers, tfile_xfer_partial)
8142 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8143 Refactor as tfile_target methods.
8144 (tfile_xfer_partial_features): Remove target_ops parameter.
8145 (init_tfile_ops): Delete.
8146 (_initialize_tracefile_tfile): Don't call it.
8147 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8148 (tracefile_has_stack, tracefile_has_registers)
8149 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8150 tracefile_target methods.
8151 (init_tracefile_ops): Delete.
8152 (tracefile_target::tracefile_target): New.
8153 * tracefile.h: Include "target.h".
8154 (tracefile_target): New class.
8155 (init_tracefile_ops): Delete.
8156
8157 * spu-multiarch.c (spu_multiarch_target): New class.
8158 (spu_ops): Now a spu_multiarch_target.
8159 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8160 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8161 (spu_search_memory, spu_mourn_inferior): Refactor as
8162 spu_multiarch_target methods.
8163 (init_spu_ops): Delete.
8164 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8165 complete_target_initialization.
8166
8167 * ravenscar-thread.c (ravenscar_thread_target): New class.
8168 (ravenscar_ops): Now a ravenscar_thread_target.
8169 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8170 (ravenscar_thread_alive, ravenscar_pid_to_str)
8171 (ravenscar_fetch_registers, ravenscar_store_registers)
8172 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8173 (ravenscar_stopped_by_hw_breakpoint)
8174 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8175 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8176 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8177 methods.
8178 (init_ravenscar_thread_ops): Delete.
8179 (_initialize_ravenscar): Remove references to
8180 init_ravenscar_thread_ops and complete_target_initialization.
8181
8182 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8183 (bsd_uthread_target): New class.
8184 (bsd_uthread_ops): Now a bsd_uthread_target.
8185 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8186 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8187 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8188 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8189 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8190 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8191 (bsd_uthread_target): Delete function.
8192 (_initialize_bsd_uthread): Remove reference to
8193 complete_target_initialization.
8194
8195 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8196 (target_bfd): ... this new class.
8197 (target_bfd_xfer_partial, target_bfd_get_section_table)
8198 (target_bfd_close): Refactor as target_bfd methods.
8199 (target_bfd::~target_bfd): New.
8200 (target_bfd_reopen): Adjust.
8201 (target_bfd::close): New.
8202
8203 * record-btrace.c (record_btrace_target): New class.
8204 (record_btrace_ops): Now a record_btrace_target.
8205 (record_btrace_open, record_btrace_stop_recording)
8206 (record_btrace_disconnect, record_btrace_close)
8207 (record_btrace_async, record_btrace_info)
8208 (record_btrace_insn_history, record_btrace_insn_history_range)
8209 (record_btrace_insn_history_from, record_btrace_call_history)
8210 (record_btrace_call_history_range)
8211 (record_btrace_call_history_from, record_btrace_record_method)
8212 (record_btrace_is_replaying, record_btrace_will_replay)
8213 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8214 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8215 (record_btrace_store_registers, record_btrace_prepare_to_store)
8216 (record_btrace_to_get_unwinder)
8217 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8218 (record_btrace_commit_resume, record_btrace_wait)
8219 (record_btrace_stop, record_btrace_can_execute_reverse)
8220 (record_btrace_stopped_by_sw_breakpoint)
8221 (record_btrace_supports_stopped_by_sw_breakpoint)
8222 (record_btrace_stopped_by_hw_breakpoint)
8223 (record_btrace_supports_stopped_by_hw_breakpoint)
8224 (record_btrace_update_thread_list, record_btrace_thread_alive)
8225 (record_btrace_goto_begin, record_btrace_goto_end)
8226 (record_btrace_goto, record_btrace_stop_replaying_all)
8227 (record_btrace_execution_direction)
8228 (record_btrace_prepare_to_generate_core)
8229 (record_btrace_done_generating_core): Refactor as
8230 record_btrace_target methods.
8231 (init_record_btrace_ops): Delete.
8232 (_initialize_record_btrace): Remove reference to
8233 init_record_btrace_ops.
8234 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8235 the execution_direction global.
8236 (record_full_base_target, record_full_target)
8237 (record_full_core_target): New classes.
8238 (record_full_ops): Now a record_full_target.
8239 (record_full_core_ops): Now a record_full_core_target.
8240 (record_full_target::detach, record_full_target::disconnect)
8241 (record_full_core_target::disconnect)
8242 (record_full_target::mourn_inferior, record_full_target::kill):
8243 New.
8244 (record_full_open, record_full_close, record_full_async): Refactor
8245 as methods of the record_full_base_target class.
8246 (record_full_resume, record_full_commit_resume): Refactor
8247 as methods of the record_full_target class.
8248 (record_full_wait, record_full_stopped_by_watchpoint)
8249 (record_full_stopped_data_address)
8250 (record_full_stopped_by_sw_breakpoint)
8251 (record_full_supports_stopped_by_sw_breakpoint)
8252 (record_full_stopped_by_hw_breakpoint)
8253 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8254 methods of the record_full_base_target class.
8255 (record_full_store_registers, record_full_xfer_partial)
8256 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8257 Refactor as methods of the record_full_target class.
8258 (record_full_can_execute_reverse, record_full_get_bookmark)
8259 (record_full_goto_bookmark, record_full_execution_direction)
8260 (record_full_record_method, record_full_info, record_full_delete)
8261 (record_full_is_replaying, record_full_will_replay)
8262 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8263 (record_full_stop_replaying): Refactor as methods of the
8264 record_full_base_target class.
8265 (record_full_core_resume, record_full_core_kill)
8266 (record_full_core_fetch_registers)
8267 (record_full_core_prepare_to_store)
8268 (record_full_core_store_registers, record_full_core_xfer_partial)
8269 (record_full_core_insert_breakpoint)
8270 (record_full_core_remove_breakpoint)
8271 (record_full_core_has_execution): Refactor
8272 as methods of the record_full_core_target class.
8273 (record_full_base_target::supports_delete_record): New.
8274 (init_record_full_ops): Delete.
8275 (init_record_full_core_ops): Delete.
8276 (record_full_save): Refactor as method of the
8277 record_full_base_target class.
8278 (_initialize_record_full): Remove references to
8279 init_record_full_ops and init_record_full_core_ops.
8280
8281 * remote.c (remote_target, extended_remote_target): New classes.
8282 (remote_ops): Now a remote_target.
8283 (extended_remote_ops): Now an extended_remote_target.
8284 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8285 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8286 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8287 (remote_pass_signals, remote_set_syscall_catchpoint)
8288 (remote_program_signals, )
8289 (remote_thread_always_alive): Remove target_ops parameter.
8290 (remote_thread_alive, remote_thread_name)
8291 (remote_update_thread_list, remote_threads_extra_info)
8292 (remote_static_tracepoint_marker_at)
8293 (remote_static_tracepoint_markers_by_strid)
8294 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8295 (remote_open): Refactor as methods of remote_target.
8296 (extended_remote_open, extended_remote_detach)
8297 (extended_remote_attach, extended_remote_post_attach):
8298 (extended_remote_supports_disable_randomization)
8299 (extended_remote_create_inferior): : Refactor as method of
8300 extended_remote_target.
8301 (remote_set_permissions, remote_open_1, remote_detach)
8302 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8303 (remote_resume, remote_commit_resume, remote_stop)
8304 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8305 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8306 (remote_prepare_to_store, remote_store_registers)
8307 (remote_flash_erase, remote_flash_done, remote_files_info)
8308 (remote_kill, remote_mourn, remote_insert_breakpoint)
8309 (remote_remove_breakpoint, remote_insert_watchpoint)
8310 (remote_watchpoint_addr_within_range)
8311 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8312 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8313 (remote_supports_stopped_by_sw_breakpoint)
8314 (remote_stopped_by_hw_breakpoint)
8315 (remote_supports_stopped_by_hw_breakpoint)
8316 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8317 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8318 (remote_verify_memory): Refactor as methods of remote_target.
8319 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8320 parameter.
8321 (remote_xfer_partial, remote_get_memory_xfer_limit)
8322 (remote_search_memory, remote_rcmd, remote_memory_map)
8323 (remote_pid_to_str, remote_get_thread_local_address)
8324 (remote_get_tib_address, remote_read_description): Refactor as
8325 methods of remote_target.
8326 (remote_target::fileio_open, remote_target::fileio_pwrite)
8327 (remote_target::fileio_pread, remote_target::fileio_close): New.
8328 (remote_hostio_readlink, remote_hostio_fstat)
8329 (remote_filesystem_is_local, remote_can_execute_reverse)
8330 (remote_supports_non_stop, remote_supports_disable_randomization)
8331 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8332 (remote_supports_enable_disable_tracepoint)
8333 (remote_supports_string_tracing)
8334 (remote_can_run_breakpoint_commands, remote_trace_init)
8335 (remote_download_tracepoint, remote_can_download_tracepoint)
8336 (remote_download_trace_state_variable, remote_enable_tracepoint)
8337 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8338 (remote_trace_start, remote_get_trace_status)
8339 (remote_get_tracepoint_status, remote_trace_stop)
8340 (remote_trace_find, remote_get_trace_state_variable_value)
8341 (remote_save_trace_data, remote_get_raw_trace_data)
8342 (remote_set_disconnected_tracing, remote_core_of_thread)
8343 (remote_set_circular_trace_buffer, remote_traceframe_info)
8344 (remote_get_min_fast_tracepoint_insn_len)
8345 (remote_set_trace_buffer_size, remote_set_trace_notes)
8346 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8347 (remote_disable_btrace, remote_teardown_btrace)
8348 (remote_read_btrace, remote_btrace_conf)
8349 (remote_augmented_libraries_svr4_read, remote_load)
8350 (remote_pid_to_exec_file, remote_can_do_single_step)
8351 (remote_execution_direction, remote_thread_handle_to_thread_info):
8352 Refactor as methods of remote_target.
8353 (init_remote_ops, init_extended_remote_ops): Delete.
8354 (remote_can_async_p, remote_is_async_p, remote_async)
8355 (remote_thread_events, remote_upload_tracepoints)
8356 (remote_upload_trace_state_variables): Refactor as methods of
8357 remote_target.
8358 (_initialize_remote): Remove references to init_remote_ops and
8359 init_extended_remote_ops.
8360
8361 * remote-sim.c (gdbsim_target): New class.
8362 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8363 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8364 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8365 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8366 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8367 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8368 Refactor as methods of gdbsim_target.
8369 (gdbsim_ops): Now a gdbsim_target.
8370 (init_gdbsim_ops): Delete.
8371 (gdbsim_cntrl_c): Adjust.
8372 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8373
8374 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8375 (the_amd64_linux_nat_target): New.
8376 (amd64_linux_fetch_inferior_registers)
8377 (amd64_linux_store_inferior_registers): Refactor as methods of
8378 amd64_linux_nat_target.
8379 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8380 * i386-linux-nat.c: Don't include "linux-nat.h".
8381 (i386_linux_nat_target): New class.
8382 (the_i386_linux_nat_target): New.
8383 (i386_linux_fetch_inferior_registers)
8384 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8385 as methods of i386_linux_nat_target.
8386 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8387 * inf-child.c (inf_child_ops): Delete.
8388 (inf_child_fetch_inferior_registers)
8389 (inf_child_store_inferior_registers): Delete.
8390 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8391 methods of inf_child_target.
8392 (inf_child_target::supports_terminal_ours)
8393 (inf_child_target::terminal_init)
8394 (inf_child_target::terminal_inferior)
8395 (inf_child_target::terminal_ours_for_output)
8396 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8397 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8398 New.
8399 (inf_child_open, inf_child_disconnect, inf_child_close)
8400 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8401 (inf_child_post_startup_inferior, inf_child_can_run)
8402 (inf_child_pid_to_exec_file): Refactor as methods of
8403 inf_child_target.
8404 (inf_child_follow_fork): Delete.
8405 (inf_child_target::can_create_inferior)
8406 (inf_child_target::can_attach): New.
8407 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8408 (inf_child_target::has_stack, inf_child_target::has_registers)
8409 (inf_child_target::has_execution): New.
8410 (inf_child_fileio_open, inf_child_fileio_pwrite)
8411 (inf_child_fileio_pread, inf_child_fileio_fstat)
8412 (inf_child_fileio_close, inf_child_fileio_unlink)
8413 (inf_child_fileio_readlink, inf_child_use_agent)
8414 (inf_child_can_use_agent): Refactor as methods of
8415 inf_child_target.
8416 (return_zero, inf_child_target): Delete.
8417 (inf_child_target::inf_child_target): New.
8418 * inf-child.h: Include "target.h".
8419 (inf_child_target): Delete function prototype.
8420 (inf_child_target): New class.
8421 (inf_child_open_target, inf_child_mourn_inferior)
8422 (inf_child_maybe_unpush_target): Delete.
8423 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8424 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8425 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8426 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8427 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8428 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8429 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8430 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8431 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8432 methods of inf_ptrace_target.
8433 (inf_ptrace_target): Delete function.
8434 * inf-ptrace.h: Include "inf-child.h".
8435 (inf_ptrace_target): Delete function declaration.
8436 (inf_ptrace_target): New class.
8437 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8438 * linux-nat.c (linux_target): New.
8439 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8440 (linux_nat_target::~linux_nat_target): New.
8441 (linux_child_post_attach, linux_child_post_startup_inferior)
8442 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8443 (linux_child_remove_fork_catchpoint)
8444 (linux_child_insert_vfork_catchpoint)
8445 (linux_child_remove_vfork_catchpoint)
8446 (linux_child_insert_exec_catchpoint)
8447 (linux_child_remove_exec_catchpoint)
8448 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8449 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8450 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8451 (linux_nat_stopped_data_address)
8452 (linux_nat_stopped_by_sw_breakpoint)
8453 (linux_nat_supports_stopped_by_sw_breakpoint)
8454 (linux_nat_stopped_by_hw_breakpoint)
8455 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8456 (linux_nat_kill, linux_nat_mourn_inferior)
8457 (linux_nat_xfer_partial, linux_nat_thread_alive)
8458 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8459 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8460 (linux_child_static_tracepoint_markers_by_strid)
8461 (linux_nat_is_async_p, linux_nat_can_async_p)
8462 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8463 (linux_nat_supports_multi_process)
8464 (linux_nat_supports_disable_randomization, linux_nat_async)
8465 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8466 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8467 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8468 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8469 methods of linux_nat_target.
8470 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8471 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8472 parameter.
8473 (check_stopped_by_watchpoint): Adjust.
8474 (linux_xfer_partial): Delete.
8475 (linux_target_install_ops, linux_target, linux_nat_add_target):
8476 Delete.
8477 (linux_nat_target::linux_nat_target): New.
8478 * linux-nat.h: Include "inf-ptrace.h".
8479 (linux_nat_target): New.
8480 (linux_target, linux_target_install_ops, linux_nat_add_target):
8481 Delete function declarations.
8482 (linux_target): Declare global.
8483 * linux-thread-db.c (thread_db_target): New.
8484 (thread_db_target::thread_db_target): New.
8485 (thread_db_ops): Delete.
8486 (the_thread_db_target): New.
8487 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8488 (thread_db_update_thread_list, thread_db_pid_to_str)
8489 (thread_db_extra_thread_info)
8490 (thread_db_thread_handle_to_thread_info)
8491 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8492 (thread_db_resume): Refactor as methods of thread_db_target.
8493 (init_thread_db_ops): Delete.
8494 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8495 * x86-linux-nat.c: Don't include "linux-nat.h".
8496 (super_post_startup_inferior): Delete.
8497 (x86_linux_nat_target::~x86_linux_nat_target): New.
8498 (x86_linux_child_post_startup_inferior)
8499 (x86_linux_read_description, x86_linux_enable_btrace)
8500 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8501 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8502 methods of x86_linux_nat_target.
8503 (x86_linux_create_target): Delete. Bits folded ...
8504 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8505 pointer.
8506 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8507 (x86_linux_nat_target): New class.
8508 (x86_linux_create_target): Delete.
8509 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8510 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8511 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8512 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8513 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8514 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8515 make extern.
8516 (x86_use_watchpoints): Delete.
8517 * x86-nat.h: Include "breakpoint.h" and "target.h".
8518 (x86_use_watchpoints): Delete.
8519 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8520 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8521 (x86_insert_watchpoint, x86_remove_watchpoint)
8522 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8523 (x86_stopped_by_hw_breakpoint): New declarations.
8524 (x86_nat_target): New template class.
8525
8526 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8527 (the_ppc_linux_nat_target): New.
8528 (ppc_linux_fetch_inferior_registers)
8529 (ppc_linux_can_use_hw_breakpoint)
8530 (ppc_linux_region_ok_for_hw_watchpoint)
8531 (ppc_linux_ranged_break_num_registers)
8532 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8533 (ppc_linux_insert_mask_watchpoint)
8534 (ppc_linux_remove_mask_watchpoint)
8535 (ppc_linux_can_accel_watchpoint_condition)
8536 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8537 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8538 (ppc_linux_watchpoint_addr_within_range)
8539 (ppc_linux_masked_watch_num_registers)
8540 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8541 (ppc_linux_read_description): Refactor as methods of
8542 ppc_linux_nat_target.
8543 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8544
8545 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8546 (procfs_target): New class.
8547 (the_procfs_target): New.
8548 (procfs_target): Delete function.
8549 (procfs_auxv_parse, procfs_attach, procfs_detach)
8550 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8551 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8552 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8553 (procfs_create_inferior, procfs_update_thread_list)
8554 (procfs_thread_alive, procfs_pid_to_str)
8555 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8556 (procfs_stopped_data_address, procfs_insert_watchpoint)
8557 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8558 (proc_find_memory_regions, procfs_info_proc)
8559 (procfs_make_note_section): Refactor as methods of procfs_target.
8560 (_initialize_procfs): Adjust.
8561 * sol-thread.c (sol_thread_target): New class.
8562 (sol_thread_ops): Now a sol_thread_target.
8563 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8564 (sol_thread_fetch_registers, sol_thread_store_registers)
8565 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8566 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8567 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8568 (init_sol_thread_ops): Delete.
8569 (_initialize_sol_thread): Adjust. Remove references to
8570 init_sol_thread_ops and complete_target_initialization.
8571
8572 * windows-nat.c (windows_nat_target): New class.
8573 (windows_fetch_inferior_registers)
8574 (windows_store_inferior_registers, windows_resume, windows_wait)
8575 (windows_attach, windows_detach, windows_pid_to_exec_file)
8576 (windows_files_info, windows_create_inferior)
8577 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8578 (windows_close, windows_pid_to_str, windows_xfer_partial)
8579 (windows_get_tib_address, windows_get_ada_task_ptid)
8580 (windows_thread_name, windows_thread_alive): Refactor as
8581 windows_nat_target methods.
8582 (do_initial_windows_stuff): Adjust.
8583 (windows_target): Delete function.
8584 (_initialize_windows_nat): Adjust.
8585
8586 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8587 (darwin_mourn_inferior, darwin_kill_inferior)
8588 (darwin_create_inferior, darwin_attach, darwin_detach)
8589 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8590 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8591 (darwin_supports_multi_process): Refactor as darwin_nat_target
8592 methods.
8593 (darwin_resume_to, darwin_files_info): Delete.
8594 (_initialize_darwin_inferior): Rename to ...
8595 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8596 * darwin-nat.h: Include "inf-child.h".
8597 (darwin_nat_target): New class.
8598 (darwin_complete_target): Delete.
8599 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8600 (darwin_target): New.
8601 (i386_darwin_fetch_inferior_registers)
8602 (i386_darwin_store_inferior_registers): Refactor as methods of
8603 darwin_nat_target.
8604 (darwin_complete_target): Delete, with ...
8605 (_initialize_i386_darwin_nat): ... bits factored out here.
8606
8607 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8608 (the_alpha_linux_nat_target): New.
8609 (alpha_linux_register_u_offset): Refactor as
8610 alpha_linux_nat_target method.
8611 (_initialize_alpha_linux_nat): Adjust.
8612 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8613 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8614 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8615 methods of linux_nat_trad_target.
8616 (linux_trad_target): Delete.
8617 * linux-nat-trad.h (linux_trad_target): Delete function.
8618 (linux_nat_trad_target): New class.
8619 * mips-linux-nat.c (mips_linux_nat_target): New class.
8620 (super_fetch_registers, super_store_registers, super_close):
8621 Delete.
8622 (the_mips_linux_nat_target): New.
8623 (mips64_linux_regsets_fetch_registers)
8624 (mips64_linux_regsets_store_registers)
8625 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8626 (mips_linux_register_u_offset, mips_linux_read_description)
8627 (mips_linux_can_use_hw_breakpoint)
8628 (mips_linux_stopped_by_watchpoint)
8629 (mips_linux_stopped_data_address)
8630 (mips_linux_region_ok_for_hw_watchpoint)
8631 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8632 (mips_linux_close): Refactor as methods of mips_linux_nat.
8633 (_initialize_mips_linux_nat): Adjust to C++ification.
8634
8635 * aix-thread.c (aix_thread_target): New class.
8636 (aix_thread_ops): Now an aix_thread_target.
8637 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8638 (aix_thread_fetch_registers, aix_thread_store_registers)
8639 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8640 (aix_thread_thread_alive, aix_thread_pid_to_str)
8641 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8642 Refactor as methods of aix_thread_target.
8643 (init_aix_thread_ops): Delete.
8644 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8645 and complete_target_initialization.
8646 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8647 (rs6000_nat_target): New class.
8648 (the_rs6000_nat_target): New.
8649 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8650 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8651 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8652 (super_create_inferior): Delete.
8653 (_initialize_rs6000_nat): Adjust to C++ification.
8654
8655 * arm-linux-nat.c (arm_linux_nat_target): New class.
8656 (the_arm_linux_nat_target): New.
8657 (arm_linux_fetch_inferior_registers)
8658 (arm_linux_store_inferior_registers, arm_linux_read_description)
8659 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8660 (arm_linux_remove_hw_breakpoint)
8661 (arm_linux_region_ok_for_hw_watchpoint)
8662 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8663 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8664 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8665 arm_linux_nat_target.
8666 (_initialize_arm_linux_nat): Adjust to C++ification.
8667
8668 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8669 (the_aarch64_linux_nat_target): New.
8670 (aarch64_linux_fetch_inferior_registers)
8671 (aarch64_linux_store_inferior_registers)
8672 (aarch64_linux_child_post_startup_inferior)
8673 (aarch64_linux_read_description)
8674 (aarch64_linux_can_use_hw_breakpoint)
8675 (aarch64_linux_insert_hw_breakpoint)
8676 (aarch64_linux_remove_hw_breakpoint)
8677 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8678 (aarch64_linux_region_ok_for_hw_watchpoint)
8679 (aarch64_linux_stopped_data_address)
8680 (aarch64_linux_stopped_by_watchpoint)
8681 (aarch64_linux_watchpoint_addr_within_range)
8682 (aarch64_linux_can_do_single_step): Refactor as methods of
8683 aarch64_linux_nat_target.
8684 (super_post_startup_inferior): Delete.
8685 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8686
8687 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8688 (the_hppa_linux_nat_target): New.
8689 (hppa_linux_fetch_inferior_registers)
8690 (hppa_linux_store_inferior_registers): Refactor as methods of
8691 hppa_linux_nat_target.
8692 (_initialize_hppa_linux_nat): Adjust to C++ification.
8693
8694 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8695 (the_ia64_linux_nat_target): New.
8696 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8697 (ia64_linux_stopped_data_address)
8698 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8699 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8700 ia64_linux_nat_target methods.
8701 (super_xfer_partial): Delete.
8702 (_initialize_ia64_linux_nat): Adjust to C++ification.
8703
8704 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8705 (the_m32r_linux_nat_target): New.
8706 (m32r_linux_fetch_inferior_registers)
8707 (m32r_linux_store_inferior_registers): Refactor as
8708 m32r_linux_nat_target methods.
8709 (_initialize_m32r_linux_nat): Adjust to C++ification.
8710
8711 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8712 (the_m68k_linux_nat_target): New.
8713 (m68k_linux_fetch_inferior_registers)
8714 (m68k_linux_store_inferior_registers): Refactor as
8715 m68k_linux_nat_target methods.
8716 (_initialize_m68k_linux_nat): Adjust to C++ification.
8717
8718 * s390-linux-nat.c (s390_linux_nat_target): New class.
8719 (the_s390_linux_nat_target): New.
8720 (s390_linux_fetch_inferior_registers)
8721 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8722 (s390_insert_watchpoint, s390_remove_watchpoint)
8723 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8724 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8725 (s390_auxv_parse, s390_read_description): Refactor as methods of
8726 s390_linux_nat_target.
8727 (_initialize_s390_nat): Adjust to C++ification.
8728
8729 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8730 (the_sparc_linux_nat_target): New.
8731 (_initialize_sparc_linux_nat): Adjust to C++ification.
8732 * sparc-nat.c (sparc_fetch_inferior_registers)
8733 (sparc_store_inferior_registers): Remove target_ops parameter.
8734 * sparc-nat.h (sparc_fetch_inferior_registers)
8735 (sparc_store_inferior_registers): Remove target_ops parameter.
8736 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8737 (the_sparc64_linux_nat_target): New.
8738 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8739
8740 * spu-linux-nat.c (spu_linux_nat_target): New class.
8741 (the_spu_linux_nat_target): New.
8742 (spu_child_post_startup_inferior, spu_child_post_attach)
8743 (spu_child_wait, spu_fetch_inferior_registers)
8744 (spu_store_inferior_registers, spu_xfer_partial)
8745 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8746 methods.
8747 (_initialize_spu_nat): Adjust to C++ification.
8748
8749 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8750 (the_tilegx_linux_nat_target): New.
8751 (fetch_inferior_registers, store_inferior_registers):
8752 Refactor as methods.
8753 (_initialize_tile_linux_nat): Adjust to C++ification.
8754
8755 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8756 (the_xtensa_linux_nat_target): New.
8757 (xtensa_linux_fetch_inferior_registers)
8758 (xtensa_linux_store_inferior_registers): Refactor as
8759 xtensa_linux_nat_target methods.
8760 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8761
8762 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8763 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8764 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8765 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8766 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8767 (fbsd_stopped_by_sw_breakpoint)
8768 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8769 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8770 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8771 (fbsd_post_startup_inferior, fbsd_post_attach)
8772 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8773 (fbsd_set_syscall_catchpoint)
8774 (super_xfer_partial, super_resume, super_wait)
8775 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8776 (fbsd_handle_debug_trap): Remove target_ops parameter.
8777 (fbsd_nat_add_target): Delete.
8778 * fbsd-nat.h: Include "inf-ptrace.h".
8779 (fbsd_nat_add_target): Delete.
8780 (USE_SIGTRAP_SIGINFO): Define.
8781 (fbsd_nat_target): New class.
8782
8783 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8784 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8785 (amd64bsd_target): Delete.
8786 * amd64-bsd-nat.h: New file.
8787 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8788 "x86-bsd-nat.h".
8789 (amd64_fbsd_nat_target): New class.
8790 (the_amd64_fbsd_nat_target): New.
8791 (amd64fbsd_read_description): Refactor as method of
8792 amd64_fbsd_nat_target.
8793 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8794 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8795 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8796 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8797 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8798 (i386bsd_target): Delete.
8799 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8800 (i386bsd_fetch_inferior_registers)
8801 (i386bsd_store_inferior_registers): Declare.
8802 (i386_bsd_nat_target): New class.
8803 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8804 (the_i386_fbsd_nat_target): New.
8805 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8806 i386_fbsd_nat_target methods.
8807 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8808 (_initialize_i386fbsd_nat): Adjust to C++ification.
8809 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8810 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8811 (_initialize_x86_bsd_nat): Adjust to C++ification.
8812 * x86-bsd-nat.h: Include "x86-nat.h".
8813 (x86bsd_target): Delete declaration.
8814 (x86bsd_nat_target): New class.
8815
8816 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8817 (the_aarch64_fbsd_nat_target): New.
8818 (aarch64_fbsd_fetch_inferior_registers)
8819 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8820 aarch64_fbsd_nat_target.
8821 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8822 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8823 (the_alpha_bsd_nat_target): New.
8824 (alphabsd_fetch_inferior_registers)
8825 (alphabsd_store_inferior_registers): Refactor as
8826 alpha_bsd_nat_target methods.
8827 (_initialize_alphabsd_nat): Refactor as methods of
8828 alpha_bsd_nat_target.
8829 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8830 (the_amd64_nbsd_nat_target): New.
8831 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8832 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8833 (the_amd64_obsd_nat_target): New.
8834 (_initialize_amd64obsd_nat): Adjust to C++ification.
8835 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8836 (the_arm_fbsd_nat_target): New.
8837 (arm_fbsd_fetch_inferior_registers)
8838 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8839 (_initialize_arm_fbsd_nat): Refactor as methods of
8840 arm_fbsd_nat_target.
8841 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8842 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8843 (the_arm_netbsd_nat_target): New.
8844 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8845 arm_netbsd_nat_target.
8846 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8847 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8848 (the_hppa_nbsd_nat_target): New.
8849 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8850 hppa_nbsd_nat_target methods.
8851 (_initialize_hppanbsd_nat): Adjust to C++ification.
8852 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8853 (the_hppa_obsd_nat_target): New.
8854 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8855 methods of hppa_obsd_nat_target.
8856 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8857 add_target.
8858 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8859 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8860 add_target.
8861 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8862 (_initialize_i386obsd_nat): Use add_target.
8863 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8864 (the_m68k_bsd_nat_target): New.
8865 (m68kbsd_fetch_inferior_registers)
8866 (m68kbsd_store_inferior_registers): Refactor as methods of
8867 m68k_bsd_nat_target.
8868 (_initialize_m68kbsd_nat): Adjust to C++ification.
8869 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8870 (the_mips_fbsd_nat_target): New.
8871 (mips_fbsd_fetch_inferior_registers)
8872 (mips_fbsd_store_inferior_registers): Refactor as methods of
8873 mips_fbsd_nat_target.
8874 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8875 add_target.
8876 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8877 (the_mips_nbsd_nat_target): New.
8878 (mipsnbsd_fetch_inferior_registers)
8879 (mipsnbsd_store_inferior_registers): Refactor as methods of
8880 mips_nbsd_nat_target.
8881 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8882 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8883 (the_mips64_obsd_nat_target): New.
8884 (mips64obsd_fetch_inferior_registers)
8885 (mips64obsd_store_inferior_registers): Refactor as methods of
8886 mips64_obsd_nat_target.
8887 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8888 add_target.
8889 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8890 nbsd_nat_target.
8891 * nbsd-nat.h: Include "inf-ptrace.h".
8892 (nbsd_nat_target): New class.
8893 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8894 (obsd_wait): Refactor as methods of obsd_nat_target.
8895 (obsd_add_target): Delete.
8896 * obsd-nat.h: Include "inf-ptrace.h".
8897 (obsd_nat_target): New class.
8898 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8899 (the_ppc_fbsd_nat_target): New.
8900 (ppcfbsd_fetch_inferior_registers)
8901 (ppcfbsd_store_inferior_registers): Refactor as methods of
8902 ppc_fbsd_nat_target.
8903 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8904 add_target.
8905 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8906 (the_ppc_nbsd_nat_target): New.
8907 (ppcnbsd_fetch_inferior_registers)
8908 (ppcnbsd_store_inferior_registers): Refactor as methods of
8909 ppc_nbsd_nat_target.
8910 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8911 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8912 (the_ppc_obsd_nat_target): New.
8913 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8914 methods of ppc_obsd_nat_target.
8915 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8916 add_target.
8917 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8918 (the_sh_nbsd_nat_target): New.
8919 (shnbsd_fetch_inferior_registers)
8920 (shnbsd_store_inferior_registers): Refactor as methods of
8921 sh_nbsd_nat_target.
8922 (_initialize_shnbsd_nat): Adjust to C++ification.
8923 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8924 (inf_ptrace_xfer_partial): Delete.
8925 (sparc_xfer_partial, sparc_target): Delete.
8926 * sparc-nat.h (sparc_fetch_inferior_registers)
8927 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8928 (sparc_target): Delete function declaration.
8929 (sparc_target): New template class.
8930 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8931 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8932 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8933 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8934 add_target.
8935 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8936 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8937 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8938 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8939 add_target.
8940 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8941 (the_vax_bsd_nat_target): New.
8942 (vaxbsd_fetch_inferior_registers)
8943 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8944 methods.
8945 (_initialize_vaxbsd_nat): Adjust to C++ification.
8946
8947 * bsd-kvm.c (bsd_kvm_target): New class.
8948 (bsd_kvm_ops): Now a bsd_kvm_target.
8949 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8950 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8951 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8952 bsd_kvm_target.
8953 (bsd_kvm_return_one): Delete.
8954 (bsd_kvm_add_target): Adjust to C++ification.
8955
8956 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8957 (nto_procfs_target_procfs): New classes.
8958 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8959 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8960 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8961 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8962 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8963 (procfs_remove_hw_breakpoint, procfs_resume)
8964 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8965 (procfs_kill_inferior, procfs_store_registers)
8966 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8967 as methods of nto_procfs_target.
8968 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8969 (nto_native_ops): Delete.
8970 (procfs_open, procfs_native_open): Delete.
8971 (nto_native_ops): Now an nto_procfs_target_native.
8972 (init_procfs_targets): Adjust to C++ification.
8973 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8974 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8975 Refactor as methods of nto_procfs_target.
8976
8977 * go32-nat.c (go32_nat_target): New class.
8978 (the_go32_nat_target): New.
8979 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8980 (go32_store_registers, go32_xfer_partial, go32_files_info)
8981 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8982 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8983 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8984 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8985 (go32_target): Delete.
8986 (_initialize_go32_nat): Adjust to C++ification.
8987
8988 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8989 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8990 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8991 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8992 gnu_nat_target.
8993 (gnu_target): Delete.
8994 * gnu-nat.h (gnu_target): Delete.
8995 (gnu_nat_target): New class.
8996 * i386-gnu-nat.c (gnu_base_target): New.
8997 (i386_gnu_nat_target): New class.
8998 (the_i386_gnu_nat_target): New.
8999 (_initialize_i386gnu_nat): Adjust to C++ification.
9000
9001 2018-05-02 Pedro Alves <palves@redhat.com>
9002
9003 * bfd-target.c (target_bfd_xclose): Rename to ...
9004 (target_bfd_close): ... this.
9005 (target_bfd_reopen): Adjust.
9006 * target.c (target_close): Remove references to to_xclose.
9007 * target.h (target_ops::to_xclose): Delete.
9008 (target_ops::to_close): Update comments.
9009
9010 2018-05-02 Pedro Alves <palves@redhat.com>
9011
9012 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9013 "linux-nat.h".
9014 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9015 * inf-ptrace.c (inf_ptrace_register_u_offset)
9016 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9017 (inf_ptrace_store_register, inf_ptrace_store_registers)
9018 (inf_ptrace_trad_target): Move to ...
9019 * linux-nat-trad.c: ... this new file.
9020 * linux-nat-trad.h: New file.
9021 * linux-nat.c (linux_target_install_ops): Make extern.
9022 (linux_trad_target): Delete.
9023 * linux-nat.h (linux_trad_target): Delete declaration.
9024 (linux_target_install_ops): Declare.
9025 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9026 "linux-nat.h".
9027
9028 2018-05-02 Pedro Alves <palves@redhat.com>
9029
9030 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9031 procfs_target/add_target here.
9032 * procfs.c (procfs_target): Make static.
9033 (_initialize_procfs): Call add_target here.
9034 * procfs.h (struct target_ops): Remove forward declaration.
9035 (procfs_target): Remove declaration.
9036 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9037
9038 2018-05-02 Pedro Alves <palves@redhat.com>
9039
9040 * procfs.c (procfs_stopped_by_watchpoint)
9041 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9042 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9043 Forward declare.
9044 (procfs_use_watchpoints): Delete, move contents...
9045 (procfs_target): ... here.
9046 * procfs.h (procfs_use_watchpoints): Delete declaration.
9047 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9048 procfs_use_watchpoints.
9049 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9050 procfs_use_watchpoints.
9051
9052 2018-05-02 Tom Tromey <tom@tromey.com>
9053
9054 PR python/20084:
9055 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9056 and var_zuinteger_unlimited.
9057 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9058 and PARAM_ZUINTEGER_UNLIMITED.
9059 (set_parameter_value): Handle var_zuinteger and
9060 var_zuinteger_unlimited.
9061 (add_setshow_generic): Likewise.
9062 (parmpy_init): Likewise.
9063
9064 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9065
9066 PR rust/23124
9067 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9068 pointer is not null before dereferencing it.
9069
9070 2018-04-30 Tom Tromey <tom@tromey.com>
9071
9072 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9073 is_mi_like_p.
9074
9075 2018-04-30 Tom Tromey <tom@tromey.com>
9076
9077 * breakpoint.c (mention): Remove use of is_mi_like_p.
9078 (print_mention_ranged_breakpoint): Likewise.
9079 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9080 of is_mi_like_p.
9081
9082 2018-04-30 Tom Tromey <tom@tromey.com>
9083
9084 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9085
9086 2018-04-30 Tom Tromey <tom@tromey.com>
9087
9088 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9089 (info_spu_event_command): Remove some uses of is_mi_like_p.
9090
9091 2018-04-30 Tom Tromey <tom@tromey.com>
9092
9093 * python/py-framefilter.c (py_print_single_arg)
9094 (enumerate_locals, py_print_args, py_print_frame): Remove some
9095 uses of is_mi_like_p.
9096
9097 2018-04-30 Tom Tromey <tom@tromey.com>
9098
9099 * ui-out.c: Update.
9100 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9101 * ui-out.h (ui_out::is_mi_like_p): Now const.
9102 (ui_out::do_is_mi_like_p): Now const.
9103 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9104
9105 2018-04-30 Tom Tromey <tom@tromey.com>
9106
9107 * varobj.c (varobj_set_visualizer): Use new_reference.
9108 * python/python.c (gdbpy_decode_line): Use new_reference.
9109 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9110 new_reference.
9111
9112 2018-04-30 Tom Tromey <tom@tromey.com>
9113
9114 * varobj.c (install_new_value): Use new_reference.
9115 * value.h (value_incref): Return void. Swap intro comment with
9116 value_decref.
9117 * value.c (set_value_parent): Use new_reference.
9118 (value_incref): Return void. Update intro comment.
9119 (release_value): Use new_reference.
9120 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9121
9122 2018-04-30 Tom Tromey <tom@tromey.com>
9123
9124 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9125 * gdb_bfd.h (new_bfd_ref): Remove.
9126 (gdb_bfd_open): Update comment.
9127 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9128 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9129 (gdb_bfd_fdopenr): Use new_reference.
9130 * exec.c (exec_file_attach): Use new_reference.
9131
9132 2018-04-30 Tom Tromey <tom@tromey.com>
9133
9134 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9135 method.
9136
9137 2018-04-30 Tom Tromey <tom@tromey.com>
9138
9139 * jit.c (jit_read_code_entry): Use type_align.
9140 * i386-tdep.c (i386_gdbarch_init): Don't call
9141 set_gdbarch_long_long_align_bit.
9142 * gdbarch.sh: Remove long_long_align_bit.
9143 * gdbarch.c, gdbarch.h: Rebuild.
9144 * arc-tdep.c (arc_type_align): New function.
9145 (arc_gdbarch_init): Use arc_type_align. Don't call
9146 set_gdbarch_long_long_align_bit.
9147
9148 2018-04-30 Tom Tromey <tom@tromey.com>
9149
9150 * rust-lang.c (rust_type_alignment): Remove.
9151 (rust_composite_type): Use type_align.
9152
9153 2018-04-30 Tom Tromey <tom@tromey.com>
9154
9155 * NEWS: Mention Type.align.
9156 * python/py-type.c (typy_get_alignof): New function.
9157 (type_object_getset): Add "alignof".
9158
9159 2018-04-30 Tom Tromey <tom@tromey.com>
9160
9161 PR exp/17095:
9162 * NEWS: Update.
9163 * std-operator.def (UNOP_ALIGNOF): New operator.
9164 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9165 New.
9166 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9167 * c-lang.c (c_op_print_tab): Add alignof.
9168 * c-exp.y (ALIGNOF): New token.
9169 (exp): Add "ALIGNOF" production.
9170 (ident_tokens): Add _Alignof and alignof.
9171
9172 2018-04-30 Tom Tromey <tom@tromey.com>
9173
9174 * i386-tdep.c (i386_type_align): New function.
9175 (i386_gdbarch_init): Update.
9176 * gdbarch.sh (type_align): New method.
9177 * gdbarch.c, gdbarch.h: Rebuild.
9178 * arch-utils.h (default_type_align): Declare.
9179 * arch-utils.c (default_type_align): New function.
9180 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9181 (struct type) <align_log2>: New field.
9182 <instance_flags>: Now a bitfield.
9183 (TYPE_RAW_ALIGN): New macro.
9184 (type_align, type_raw_align, set_type_align): Declare.
9185 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9186 functions.
9187 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9188 (get_alignment, maybe_set_alignment): New functions.
9189 (read_structure_type, read_enumeration_type, read_array_type)
9190 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9191 (read_subrange_type, read_base_type): Set type alignment.
9192
9193 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9194
9195 * dwarf2read.c (read_index_from_section): Use bool.
9196
9197 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9198
9199 PR gdb/22950
9200 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9201 with #ifdef.
9202
9203 2018-04-29 John Reiser <jreiser@BitWagon.com>
9204
9205 PR build/22873
9206 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9207 last step, and do it atomically.
9208
9209 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9210
9211 * compile/compile-c-types.c (convert_int, convert_float):
9212 Update for C FE v1.
9213
9214 2018-04-27 Tom Tromey <tom@tromey.com>
9215
9216 PR rust/22545:
9217 * rust-lang.c (rust_inclusive_range_type_p): New function.
9218 (rust_range): Handle inclusive ranges.
9219 (rust_compute_range): Likewise.
9220 * rust-exp.y (struct rust_op) <inclusive>: New field.
9221 (DOTDOTEQ): New constant.
9222 (range_expr): Add "..=" productions.
9223 (operator_tokens): Add "..=" token.
9224 (ast_range): Add "inclusive" parameter.
9225 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9226 ranges.
9227 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9228 bounds values.
9229 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9230 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9231 Update comments.
9232 * expprint.c (print_subexp_standard): Handle new bounds values.
9233 (dump_subexp_body_standard): Likewise.
9234
9235 2018-04-27 Tom Tromey <tom@tromey.com>
9236
9237 * configure: Rebuild.
9238 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9239 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9240 "OVERRIDE".
9241 (class symbol_needs_eval_context): Likewise.
9242 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9243 (mock_mapped_index::symbol_name_at): Use "override". Remove
9244 "virtual".
9245 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9246 "override".
9247 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9248 * aarch64-tdep.c (instruction_reader::read): Use "override".
9249 (instruction_reader_test::read): Likewise.
9250 * arm-tdep.c (instruction_reader::read): Use "override".
9251 (instruction_reader_thumb::read): Likewise.
9252
9253 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9254
9255 PR remote/9665
9256 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9257 instead of remote_send.
9258 (remote_send): Remove.
9259
9260 2018-04-26 Pedro Alves <palves@redhat.com>
9261
9262 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9263 find_function_start_sal instead of find_pc_line.
9264
9265 2018-04-26 Pedro Alves <palves@redhat.com>
9266
9267 * breakpoint.c (set_breakpoint_location_function): Handle
9268 mst_data_gnu_ifunc.
9269 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9270 * elfread.c (elf_symtab_read): Give data symbols with
9271 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9272 (elf_rel_plt_read): Update comment.
9273 * linespec.c (convert_linespec_to_sals): Handle
9274 mst_data_gnu_ifunc.
9275 (minsym_found): Handle mst_data_gnu_ifunc.
9276 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9277 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9278 * parse.c (find_minsym_type_and_address): Handle
9279 mst_data_gnu_ifunc.
9280 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9281 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9282 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9283 comment.
9284 <mst_data_gnu_ifunc>: New enumerator.
9285
9286 2018-04-26 Pedro Alves <palves@redhat.com>
9287
9288 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9289 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9290 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9291 Handle it.
9292 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9293 (lookup_minimal_symbol_by_pc): Adjust.
9294 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9295 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9296 * minsyms.h (lookup_msym_prefer): New enum.
9297 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9298 parameter by a lookup_msym_prefer parameter.
9299
9300 2018-04-26 Pedro Alves <palves@redhat.com>
9301
9302 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9303 ends in "@plt" instead of looking at the symbol's section.
9304
9305 2018-04-26 Pedro Alves <palves@redhat.com>
9306
9307 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9308 all references.
9309 (find_pc_partial_function_gnu_ifunc): Rename to ...
9310 (find_pc_partial_function): ... this, and remove references to
9311 'is_gnu_ifunc_p'.
9312 (find_pc_partial_function): Delete old implementation.
9313 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9314
9315 2018-04-26 Pedro Alves <palves@redhat.com>
9316
9317 * linespec.c (struct bound_minimal_symbol_search_key): New.
9318 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9319 skip first line if we found a GNU ifunc minimal symbol by name.
9320 (compare_msymbols): Change parameters to work with a destructured
9321 lhs minsym.
9322 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9323 functions.
9324
9325 2018-04-26 Pedro Alves <palves@redhat.com>
9326
9327 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9328 ifunc targets here. Instead, if we have an ifunc minsym, use its
9329 address/name.
9330 (add_location_to_breakpoint): Store the minsym and the objfile in
9331 the breakpoint location.
9332 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9333 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9334 Record the minsym in the sal.
9335 * symtab.h (symtab_and_line) <msymbol>: New field.
9336
9337 2018-04-26 Pedro Alves <palves@redhat.com>
9338
9339 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9340 unless we actually resolved the ifunc.
9341
9342 2018-04-26 Pedro Alves <palves@redhat.com>
9343
9344 * c-exp.y (variable production): Prefer ifunc minsyms over
9345 regular function symbols.
9346 * symtab.c (find_gnu_ifunc): New function.
9347 * minsyms.h (lookup_msym_prefer): New enum.
9348 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9349 parameter by a lookup_msym_prefer parameter.
9350 * symtab.h (find_gnu_ifunc): New declaration.
9351
9352 2018-04-26 Pedro Alves <palves@redhat.com>
9353
9354 * blockframe.c (find_gnu_ifunc_target_type): New function.
9355 (find_function_type): New.
9356 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9357 return a value with a memory address.
9358 (eval_call): For calls to GNU ifunc functions, try to find the
9359 type of the target function from the type that the resolver
9360 returns.
9361 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9362 symbols.
9363 * infcall.c (find_function_return_type): Delete.
9364 (find_function_addr): Add 'function_type' parameter. For calls to
9365 GNU ifunc functions, try to find the type of the target function
9366 from the type that the resolver returns, and return it via
9367 FUNCTION_TYPE.
9368 (call_function_by_hand_dummy): Adjust to use the function type
9369 returned by find_function_addr.
9370 (find_function_addr): Add 'function_type' parameter and move
9371 description here.
9372 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9373 declarations.
9374
9375 2018-04-26 Pedro Alves <palves@redhat.com>
9376
9377 * c-exp.y (variable production): Skip finding an alias for ifunc
9378 symbols.
9379
9380 2018-04-26 Pedro Alves <palves@redhat.com>
9381
9382 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9383
9384 2018-04-25 Pedro Alves <palves@redhat.com>
9385
9386 * infcmd.c (kill_command): Print the pid as string, not the whole
9387 thread's ptid. Add comment. s/has been killed/killed/ in output
9388 message.
9389 * remote.c (remote_detach_1): Print the pid as string, not the
9390 whole thread's ptid.
9391
9392 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9393 Sergio Durigan Junior <sergiodj@redhat.com>
9394 Pedro Alves <palves@redhat.com>
9395
9396 * infcmd.c (kill_command): Print message when inferior has
9397 been killed.
9398 * inferior.c (print_inferior_events): Remove 'static'. Set as
9399 '1'.
9400 (add_inferior): Improve message printed when
9401 'print_inferior_events' is on.
9402 (exit_inferior): Remove message printed when
9403 'print_inferior_events' is on.
9404 (detach_inferior): Improve message printed when
9405 'print_inferior_events' is on.
9406 (initialize_inferiors): Use 'add_inferior_silent' to set
9407 'current_inferior_'.
9408 * inferior.h (print_inferior_events): Declare here as
9409 'extern'.
9410 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9411 '[Detaching...]' messages when 'print_inferior_events' is on.
9412 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9413 as prefix/suffix for messages. Remove periods. Fix erroneous
9414 'Detaching after fork from child...', replace it by '... from
9415 parent...'.
9416 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9417 prefix/suffix when printing 'Detaching...' messages. Print
9418 them when 'print_inferior_events' is on.
9419 * remote.c (remote_detach_1): Print message when detaching
9420 from inferior and '!is_fork_parent'.
9421
9422 2018-04-24 Tom Tromey <tom@tromey.com>
9423
9424 * cli-out.h: Reindent.
9425
9426 2018-04-24 Tom Tromey <tom@tromey.com>
9427
9428 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9429 (cli_ui_out::do_field_string): Use fputs_filtered.
9430 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9431
9432 2018-04-23 Tom Tromey <tom@tromey.com>
9433
9434 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9435 gdb::unique_xmalloc_ptr.
9436
9437 2018-04-23 Tom Tromey <tom@tromey.com>
9438
9439 * configure: Rebuild.
9440
9441 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9442
9443 PR gdb/23095
9444 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9445 prepare_for_testing. Set normal_bp to r_debug_state if target
9446 is bsd.
9447
9448 2018-04-21 Pedro Alves <palves@redhat.com>
9449 Rajendra SY <rajendra.sy@gmail.com>
9450
9451 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9452 * remote.c (extended_remote_attach): In all-stop mode, mark the
9453 thread as executing.
9454
9455 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9456
9457 * thread.c (thread_apply_all_command): Fix comment.
9458 (thread_command): Fix comment.
9459
9460 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9461
9462 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9463 parameter.
9464 * features/aarch64-core.c (create_feature_aarch64_core):
9465 Regenerate.
9466 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9467 Likewise.
9468 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9469 Likewise.
9470 * features/i386/32bit-avx512.c
9471 (create_feature_i386_32bit_avx512): Likewise.
9472 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9473 Likewise.
9474 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9475 Likewise.
9476 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9477 Likewise.
9478 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9479 Likewise.
9480 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9481 Likewise.
9482 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9483 Likewise.
9484 * features/i386/64bit-avx512.c
9485 (create_feature_i386_64bit_avx512): Likewise.
9486 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9487 Likewise.
9488 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9489 Likewise.
9490 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9491 Likewise.
9492 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9493 Likewise.
9494 * features/i386/64bit-segments.c
9495 (create_feature_i386_64bit_segments): Likewise.
9496 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9497 Likewise.
9498 * features/i386/x32-core.c
9499 (create_feature_i386_x32_core): Likewise.
9500 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9501 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9502 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9503 * target-descriptions.c: In generated code, don't pass xml
9504 filename.
9505
9506 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9507
9508 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9509 (print_xml_feature::visit_post): Likewise.
9510 (print_xml_feature::visit): Likewise.
9511 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9512 (print_xml_feature): Add new class.
9513 * regformats/regdat.sh: Null xmltarget on feature targets.
9514 * target-descriptions.c (struct target_desc): Add xmltarget.
9515 (maintenance_check_tdesc_xml_convert): Add unittest function.
9516 (tdesc_get_features_xml): Add function to get xml.
9517 (maintenance_check_xml_descriptions): Test xml generation.
9518 * xml-tdesc.c (string_read_description_xml): Add function.
9519 * xml-tdesc.h (string_read_description_xml): Add declaration.
9520
9521 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9522
9523 * features/Makefile: Add feature marker to targets with new style
9524 target descriptions.
9525 * regformats/aarch64.dat: Regenerate.
9526 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9527 * regformats/i386/amd64-avx-linux.dat: Likewise.
9528 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9529 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9530 * regformats/i386/amd64-linux.dat: Likewise.
9531 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9532 * regformats/i386/amd64.dat: Likewise.
9533 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9534 * regformats/i386/i386-avx-linux.dat: Likewise.
9535 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9536 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9537 * regformats/i386/i386-linux.dat: Likewise.
9538 * regformats/i386/i386-mmx-linux.dat: Likewise.
9539 * regformats/i386/i386-mpx-linux.dat: Likewise.
9540 * regformats/i386/i386.dat: Likewise.
9541 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9542 * regformats/i386/x32-avx-linux.dat: Likewise.
9543 * regformats/i386/x32-linux.dat: Likewise.
9544 * regformats/tic6x-c62x-linux.dat: Likewise.
9545 * regformats/tic6x-c64x-linux.dat: Likewise.
9546 * regformats/tic6x-c64xp-linux.dat: Likewise.
9547 * regformats/regdat.sh: Parse feature marker.
9548
9549 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9550
9551 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9552 (tdesc_osabi_name): Likewise.
9553 * target-descriptions.c (tdesc_architecture_name): Add new
9554 function.
9555 (tdesc_osabi_name): Likewise.
9556
9557 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9558
9559 * common/tdesc.c (tdesc_predefined_type): Move to here.
9560 (tdesc_named_type): Likewise.
9561 (tdesc_create_vector): Likewise.
9562 (tdesc_create_struct): Likewise.
9563 (tdesc_set_struct_size): Likewise.
9564 (tdesc_create_union): Likewise.
9565 (tdesc_create_flags): Likewise.
9566 (tdesc_create_enum): Likewise.
9567 (tdesc_add_field): Likewise.
9568 (tdesc_add_typed_bitfield): Likewise.
9569 (tdesc_add_bitfield): Likewise.
9570 (tdesc_add_flag): Likewise.
9571 (tdesc_add_enum_value): Likewise.
9572 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9573 (struct tdesc_type_vector): Likewise.
9574 (struct tdesc_type_field): Likewise.
9575 (struct tdesc_type_with_fields): Likewise.
9576 (tdesc_create_enum): Add declaration.
9577 (tdesc_add_typed_bitfield): Likewise.
9578 (tdesc_add_enum_value): Likewise.
9579 * target-descriptions.c (tdesc_type_field): Move from here.
9580 (tdesc_type_builtin): Likewise.
9581 (tdesc_type_vector): Likewise.
9582 (tdesc_type_with_fields): Likewise.
9583 (tdesc_predefined_types): Likewise.
9584 (tdesc_named_type): Likewise.
9585 (tdesc_create_vector): Likewise.
9586 (tdesc_create_struct): Likewise.
9587 (tdesc_set_struct_size): Likewise.
9588 (tdesc_create_union): Likewise.
9589 (tdesc_create_flags): Likewise.
9590 (tdesc_create_enum): Likewise.
9591 (tdesc_add_field): Likewise.
9592 (tdesc_add_typed_bitfield): Likewise.
9593 (tdesc_add_bitfield): Likewise.
9594 (tdesc_add_flag): Likewise.
9595 (tdesc_add_enum_value): Likewise.
9596 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9597 (tdesc_add_typed_bitfield): Likewise.
9598 (tdesc_add_enum_value): Likewise.
9599
9600 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9601
9602 * common/tdesc.c (tdesc_feature::accept): Move to here.
9603 (tdesc_feature::operator==): Likewise.
9604 (tdesc_create_reg): Likewise.
9605 * common/tdesc.h (tdesc_type_kind): Likewise.
9606 (struct tdesc_type): Likewise.
9607 (struct tdesc_feature): Likewise.
9608 * regformats/regdat.sh: Create a feature.
9609 * target-descriptions.c (tdesc_type_kind): Move from here.
9610 (tdesc_type): Likewise.
9611 (tdesc_type_up): Likewise.
9612 (tdesc_feature): Likewise.
9613 (tdesc_create_reg): Likewise.
9614
9615 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9616
9617 * Makefile.in: Add arch/tdesc.c
9618 * common/tdesc.c: New file.
9619 * common/tdesc.h (tdesc_element_visitor): Move to here.
9620 (tdesc_element): Likewise.
9621 (tdesc_reg): Likewise.
9622 (tdesc_reg_up): Likewise.
9623 * regformats/regdef.h (reg): Add offset to constructors.
9624 * target-descriptions.c (tdesc_element_visitor): Move from here.
9625 (tdesc_element): Likewise.
9626 (tdesc_reg): Likewise.
9627 (tdesc_reg_up): Likewise.
9628
9629 2018-04-17 Tom Tromey <tom@tromey.com>
9630
9631 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9632 discriminant field.
9633
9634 2018-04-17 Tom Tromey <tom@tromey.com>
9635
9636 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9637
9638 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9639
9640 * symtab.c (print_symbol_info): Skip printing filename and line
9641 number when `last' is NULL.
9642 (symtab_symbol_info): Use empty string instead of NULL for first
9643 invocation of print_symbol_info.
9644 (rbreak_command): Pass NULL to `last' parameter of
9645 print_symbol_info.
9646
9647 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9648
9649 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9650 instead of nullptr.
9651
9652 2018-04-16 Pedro Alves <palves@redhat.com>
9653
9654 * MAINTAINERS (sh): Remove.
9655 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9656 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9657 (ALLDEPFILES): Remove sh64-tdep.c.
9658 * NEWS: Mentions that support for SH-5/SH64 is removed.
9659 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9660 (sh*-*-openbsd*): Ditto.
9661 (sh64-*-elf*): Remove.
9662 (sh*): Remove.
9663 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9664 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9665 * sh-tdep.c: No longer include "sh64-tdep.h".
9666 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9667 * sh64-tdep.c, sh64-tdep.h: Remove files.
9668
9669 2018-04-16 Pedro Alves <palves@redhat.com>
9670
9671 * MAINTAINERS: Remove m88k.
9672 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9673 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9674 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9675 * NEWS: Mention that support for m88k was removed.
9676 * configure.host (m88*-*-*): Remove support.
9677 * configure.nat (m88k-*-*): Remove support.
9678 * configure.tgt (m88*-*-openbsd*): Remove.
9679 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9680
9681 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9682
9683 * configure.tgt (x86_tobjs): New variable.
9684 (amd64_tobjs, i386_tobjs): Use it.
9685
9686 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9687
9688 * symtab.c (print_symbol_info): Precede the symbol definition by
9689 the line number when available.
9690 * NEWS: Advertise this enhancement.
9691
9692 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9693
9694 * NEWS (New options): announce set/show record btrace cpu.
9695 * btrace.c: Include record-btrace.h.
9696 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9697 the vendor is unknown.
9698 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9699 Maybe overwrite the btrace configuration's cpu.
9700 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9701 (btrace_fetch): Add cpu parameter. Update callers.
9702 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9703 Maybe overwrite the btrace configuration's cpu. Skip enabling
9704 errata workarounds if the vendor is unknown.
9705 * python/py-record-btrace.c: Include record-btrace.h.
9706 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9707 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9708 * record-btrace.c (record_btrace_cpu_state_kind): New.
9709 (record_btrace_cpu): New.
9710 (set_record_btrace_cpu_cmdlist): New.
9711 (record_btrace_get_cpu): New.
9712 (require_btrace_thread, record_btrace_info)
9713 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9714 (cmd_set_record_btrace_cpu_none): New.
9715 (cmd_set_record_btrace_cpu_auto): New.
9716 (cmd_set_record_btrace_cpu): New.
9717 (cmd_show_record_btrace_cpu): New.
9718 (_initialize_record_btrace): Initialize set/show record btrace cpu
9719 commands.
9720 * record-btrace.h (record_btrace_get_cpu): New.
9721
9722 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9723
9724 * record.c (set_record_command): Fix typo in message.
9725
9726 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9727
9728 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9729
9730 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9731
9732 * infrun.c (process_event_stop_test): Call
9733 gdbarch_in_indirect_branch_thunk.
9734 * gdbarch.sh (in_indirect_branch_thunk): New.
9735 * gdbarch.c: Regenerated.
9736 * gdbarch.h: Regenerated.
9737 * x86-tdep.h: New.
9738 * x86-tdep.c: New.
9739 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9740 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9741 (ALLDEPFILES): Add x86-tdep.c.
9742 * arch-utils.h (default_in_indirect_branch_thunk): New.
9743 * arch-utils.c (default_in_indirect_branch_thunk): New.
9744 * i386-tdep: Include x86-tdep.h.
9745 (i386_in_indirect_branch_thunk): New.
9746 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9747 function.
9748 * amd64-tdep: Include x86-tdep.h.
9749 (amd64_in_indirect_branch_thunk): New.
9750 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9751
9752 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9753
9754 PR gdb/23053
9755 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9756 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9757 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9758 regression.
9759
9760 2018-04-12 Tom Tromey <tom@tromey.com>
9761
9762 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9763 (rust_evaluate_subexp): Likewise.
9764
9765 2018-04-12 Pedro Alves <palves@redhat.com>
9766
9767 * procfs.c (procfs_detach): Make forward declaration's prototype
9768 match definition's protototype.
9769 (proc_get_LDT_entry): Remove stale do_cleanups call.
9770
9771 2018-04-12 Pedro Alves <palves@redhat.com>
9772
9773 * target.h (target_ops::to_has_exited): Delete.
9774 (target_has_exited): Delete.
9775 * target-delegates.c: Regenerate.
9776
9777 2018-04-11 Pedro Alves <palves@redhat.com>
9778
9779 * target.c (fileio_fh_t::t): Add comment.
9780 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9781 (target_fileio_close): Handle a NULL target.
9782 (invalidate_fileio_fh): New.
9783 (target_close): Call it.
9784 * remote.c (remote_hostio_send_command): No longer check whether
9785 remote_desc is open.
9786
9787 2018-04-11 Pedro Alves <palves@redhat.com>
9788
9789 * target.c (fileio_fh_t): Make it a named struct instead of a
9790 typedef.
9791 (fileio_fh_t::is_closed): New method.
9792 (DEF_VEC_O (fileio_fh_t)): Remove.
9793 (fileio_fhandles): Now a std::vector.
9794 (is_closed_fileio_fh): Delete.
9795 (acquire_fileio_fd): Adjust. Rename parameters.
9796 (release_fileio_fd): Adjust.
9797 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9798 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9799 (target_fileio_close): Adjust.
9800
9801 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9802
9803 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9804 index.
9805
9806 2018-04-10 Pedro Alves <palves@redhat.com>
9807
9808 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9809 (scoped_finish_thread_state): New class.
9810 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9811 cleanup.
9812 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9813 (fetch_inferior_event, normal_stop): Likewise.
9814 * thread.c (finish_thread_state_cleanup): Delete.
9815
9816 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9817 Pedro Alves <palves@redhat.com>
9818
9819 * value.c: Include "selftest.h" and "common/array-view.h".
9820 (struct range) <operator ==>: New.
9821 (test_ranges_contain): New.
9822 (check_ranges_vector): New.
9823 (test_insert_into_bit_range_vector): New.
9824 (_initialize_values): Register selftests.
9825 * common/array-view.h (operator==, operator!=): New.
9826
9827 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9828
9829 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9830 an iterator.
9831 * inline-frame.c: Include <algorithm>.
9832 (struct inline_state): Add constructor.
9833 (inline_state_s): Remove.
9834 (DEF_VEC_O(inline_state_s)): Remove.
9835 (inline_states): Change type to std::vector.
9836 (find_inline_frame_state): Adjust to std::vector.
9837 (allocate_inline_frame_state): Remove.
9838 (clear_inline_frame_state): Adjust to std::vector.
9839 (skip_inline_frames): Adjust to std::vector.
9840
9841 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9842
9843 * tracepoint.h (struct trace_state_variable): Add constructor.
9844 <name>: Change type to std::string.
9845 * tracepoint.c (tsv_s): Remove.
9846 (DEF_VEC_O(tsv_s)): Remove.
9847 (tvariables): Change to std::vector.
9848 (create_trace_state_variable): Adjust to std::vector.
9849 (find_trace_state_variable): Likewise.
9850 (find_trace_state_variable_by_number): Likewise.
9851 (delete_trace_state_variable): Likewise.
9852 (trace_variable_command): Adjust to std::string.
9853 (delete_trace_variable_command): Likewise.
9854 (tvariables_info_1): Adjust to std::vector.
9855 (save_trace_state_variables): Likewise.
9856 (start_tracing): Likewise.
9857 (merge_uploaded_trace_state_variables): Adjust to std::vector
9858 and std::string.
9859 * target.h (struct target_ops)
9860 <to_download_trace_state_variable>: Pass reference to
9861 trace_state_variable.
9862 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9863 * target-delegates.c: Re-generate.
9864 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9865 (mi_tsv_deleted): Likewise.
9866 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9867 * remote.c (remote_download_trace_state_variable): Change
9868 pointer to reference and adjust.
9869 * make-target-delegates (parse_argtypes): Handle references.
9870 (write_function_header): Likewise.
9871 (munge_type): Likewise.
9872
9873 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9874
9875 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9876 string_view-selftests.c.
9877 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9878 testsuite.
9879 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9880 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9881 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9882 * unittests/basic_string_view/element_access/char/1.cc:
9883 Likewise.
9884 * unittests/basic_string_view/element_access/char/empty.cc:
9885 Likewise.
9886 * unittests/basic_string_view/element_access/char/front_back.cc:
9887 Likewise.
9888 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9889 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9890 Likewise.
9891 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9892 Likewise.
9893 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9894 Likewise.
9895 * unittests/basic_string_view/operations/compare/char/1.cc:
9896 Likewise.
9897 * unittests/basic_string_view/operations/compare/char/13650.cc:
9898 Likewise.
9899 * unittests/basic_string_view/operations/copy/char/1.cc:
9900 Likewise.
9901 * unittests/basic_string_view/operations/data/char/1.cc:
9902 Likewise.
9903 * unittests/basic_string_view/operations/find/char/1.cc:
9904 Likewise.
9905 * unittests/basic_string_view/operations/find/char/2.cc:
9906 Likewise.
9907 * unittests/basic_string_view/operations/find/char/3.cc:
9908 Likewise.
9909 * unittests/basic_string_view/operations/find/char/4.cc:
9910 Likewise.
9911 * unittests/basic_string_view/operations/rfind/char/1.cc:
9912 Likewise.
9913 * unittests/basic_string_view/operations/rfind/char/2.cc:
9914 Likewise.
9915 * unittests/basic_string_view/operations/rfind/char/3.cc:
9916 Likewise.
9917 * unittests/basic_string_view/operations/substr/char/1.cc:
9918 Likewise.
9919 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9920 * unittests/string_view-selftests.c: New file.
9921
9922 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9923
9924 * unittests/basic_string_view/capacity/1.cc: New file.
9925 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9926 * unittests/basic_string_view/cons/char/1.cc: New file.
9927 * unittests/basic_string_view/cons/char/2.cc: New file.
9928 * unittests/basic_string_view/cons/char/3.cc: New file.
9929 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9930 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9931 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9932 * unittests/basic_string_view/element_access/char/1.cc: New file.
9933 * unittests/basic_string_view/element_access/char/2.cc: New file.
9934 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9935 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9936 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9937 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9938 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9939 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9940 * unittests/basic_string_view/include.cc: New file.
9941 * unittests/basic_string_view/inserters/char/1.cc: New file.
9942 * unittests/basic_string_view/inserters/char/2.cc: New file.
9943 * unittests/basic_string_view/inserters/char/3.cc: New file.
9944 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9945 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9946 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9947 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9948 * unittests/basic_string_view/literals/types.cc: New file.
9949 * unittests/basic_string_view/literals/values.cc: New file.
9950 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9951 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9952 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9953 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9954 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9955 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9956 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9957 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9958 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9959 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9960 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9961 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9962 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9963 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9964 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9965 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9966 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9967 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9968 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9969 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9970 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9971 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9972 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9973 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9974 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9975 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9976 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9977 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9978 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9979 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9980 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9981 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9982 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9983 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9984 * unittests/basic_string_view/operators/char/2.cc: New file.
9985 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9986 * unittests/basic_string_view/range_access/char/1.cc: New file.
9987 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9988 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9989 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9990 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9991 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9992 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9993 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9994 * unittests/basic_string_view/typedefs.cc: New file.
9995 * unittests/basic_string_view/types/1.cc: New file.
9996
9997 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9998
9999 * common/gdb_string_view.h: Remove libstdc++ implementation
10000 details, adjust to gdb reality.
10001 * common/gdb_string_view.tcc: Likewise.
10002 * cli/cli-script.c (struct string_view): Remove.
10003 (user_args) <m_args>: Change element type to gdb::string_view.
10004 (user_args::insert_args): Adjust.
10005
10006 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10007
10008 * common/gdb_string_view.h: New file.
10009 * common/gdb_string_view.tcc: New file.
10010
10011 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10012
10013 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10014 * configure: Re-generate.
10015
10016 2018-04-09 Pedro Alves <palves@redhat.com>
10017
10018 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10019 (set_target_gdbarch): Call
10020 gdb::observers::architecture_changed.notify instead of
10021 observer_notify_architecture_changed.
10022
10023 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10024
10025 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10026 (do_restore_current_traceframe_cleanup): Remove.
10027 (restore_current_traceframe_cleanup_dtor): Remove.
10028 (make_cleanup_restore_current_traceframe): Remove.
10029 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10030 New.
10031 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10032 * infrun.c (fetch_inferior_event): Use
10033 scoped_restore_current_traceframe.
10034
10035 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10036
10037 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10038 Remove.
10039 <n_allocated_type_units>: Remove.
10040 <all_type_units>: Change to std::vector.
10041 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10042 to std::vector change.
10043 (dwarf2_per_objfile::get_cutu): Likewise.
10044 (dwarf2_per_objfile::get_tu): Likewise.
10045 (create_signatured_type_table_from_index): Likewise.
10046 (create_signatured_type_table_from_debug_names): Likewise.
10047 (dw2_symtab_iter_next): Likewise.
10048 (dw2_print_stats): Likewise.
10049 (dw2_expand_all_symtabs): Likewise.
10050 (dw2_expand_marked_cus): Likewise.
10051 (dw2_debug_names_iterator::next): Likewise.
10052 (dwarf2_initialize_objfile): Likewise.
10053 (add_signatured_type_cu_to_table): Likewise.
10054 (create_all_type_units): Likewise.
10055 (add_type_unit): Likewise.
10056 (struct tu_abbrev_offset): Add constructor.
10057 (build_type_psymtabs_1): Adjust to std::vector change.
10058 (print_tu_stats): Likewise.
10059 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10060 (write_debug_names): Likewise.
10061
10062 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10063
10064 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10065 Make an std::vector.
10066 <n_comp_units>: Remove.
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_cu): Likewise.
10071 (create_cus_from_index): Likewise.
10072 (create_addrmap_from_index): Likewise.
10073 (create_addrmap_from_aranges): Likewise.
10074 (dwarf2_read_index): Likewise.
10075 (dw2_find_last_source_symtab): Likewise.
10076 (dw2_map_symtabs_matching_filename): Likewise.
10077 (dw2_symtab_iter_next): Likewise.
10078 (dw2_print_stats): Likewise.
10079 (dw2_expand_all_symtabs): Likewise.
10080 (dw2_expand_symtabs_with_fullname): Likewise.
10081 (dw2_expand_marked_cus): Likewise.
10082 (dw2_map_symbol_filenames): Likewise.
10083 (create_cus_from_debug_names): Likewise.
10084 (dwarf2_read_debug_names): Likewise.
10085 (dw2_debug_names_iterator::next): Likewise.
10086 (dwarf2_initialize_objfile): Likewise.
10087 (set_partial_user): Likewise.
10088 (dwarf2_build_psymtabs_hard): Likewise.
10089 (read_comp_units_from_section): Remove arguments, adjust to
10090 std::vector change.
10091 (create_all_comp_units): Adjust to std::vector and
10092 read_comp_units_from_section changes.
10093 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10094 change.
10095 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10096 (psyms_seen_size): Likewise.
10097 (write_gdbindex): Likewise.
10098 (write_debug_names): Likewise.
10099
10100 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10101
10102 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10103 with dwarf2_per_objfile.
10104 (create_cus_from_index): Likewise.
10105 (create_signatured_type_table_from_index): Likewise.
10106 (dwarf2_read_index): Likewise.
10107 (dwarf2_initialize_objfile): Likewise.
10108 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10109 per_cu rather than get_dwarf2_per_objfile.
10110
10111 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10112
10113 * dwarf2read.h (struct signatured_type): Forward declare.
10114 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10115 New methods.
10116 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10117 (dw2_get_cutu): ...this.
10118 (dwarf2_per_objfile::get_cu): Rename from...
10119 (dw2_get_cu): ...this.
10120 (dwarf2_per_objfile::get_tu): New.
10121 (create_addrmap_from_index): Adjust.
10122 (create_addrmap_from_aranges): Adjust.
10123 (dw2_find_last_source_symtab): Adjust.
10124 (dw2_map_symtabs_matching_filename): Adjust.
10125 (dw2_symtab_iter_next): Adjust.
10126 (dw2_print_stats): Adjust.
10127 (dw2_expand_all_symtabs): Adjust.
10128 (dw2_expand_symtabs_with_fullname): Adjust.
10129 (dw2_expand_marked_cus): Adjust.
10130 (dw_expand_symtabs_matching_file_matcher): Adjust.
10131 (dw2_map_symbol_filenames): Adjust.
10132 (dw2_debug_names_iterator::next): Adjust.
10133 (dwarf2_initialize_objfile): Adjust.
10134 (set_partial_user): Adjust.
10135 (dwarf2_build_psymtabs_hard): Adjust.
10136
10137 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10138
10139 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10140 Remove unused variables.
10141 (dw2_map_symtabs_matching_filename): Likewise.
10142 (dwarf2_record_block_ranges): Likewise.
10143 (dwarf2_read_addr_index): Likewise.
10144 (follow_die_offset): Likewise.
10145
10146 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10147
10148 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10149 to symbol_file_add_main.
10150
10151 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10152
10153 PR mi/22299
10154 * mi/mi-console.c (do_fputc_async_safe): New.
10155 (mi_console_file::write_async_safe): New.
10156 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10157 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10158 New.
10159 * ui-file.c (ui_file::putstrn): Adjust call to
10160 fputstrn_unfiltered.
10161 * utils.c (printchar): Replace do_fputs and do_fprintf
10162 parameters by do_fputc.
10163 (fputstr_filtered): Adjust call to printchar.
10164 (fputstr_unfiltered): Likewise.
10165 (fputstrn_filtered): Likewise.
10166 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10167 printchar.
10168 * utils.h (do_fputc_ftype): New typedef.
10169 (fputstrn_unfiltered): Add do_fputc parameter.
10170
10171 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10172
10173 * regformats/i386/i386-avx.dat: Remove.
10174
10175 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10176
10177 PR gdb/22979
10178 * amd64-tdep.c (amd64_none_init_abi): New function.
10179 (amd64_x32_none_init_abi): New function.
10180 (_initialize_amd64_tdep): Register handlers for x86-64 and
10181 x64_32 with GDB_OSABI_NONE.
10182 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10183 GDB_OSABI_NONE osabi.
10184
10185 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10186
10187 PR gdb/22980
10188 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10189 GDB_OSABI_NONE.
10190 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10191 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10192
10193 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10194
10195 * common/byte-vector.h (char_vector): New type.
10196 * target.h (target_read_alloc): Return
10197 gdb::optional<byte_vector>.
10198 (target_read_stralloc): Return gdb::optional<char_vector>.
10199 (target_get_osdata): Return gdb::optional<char_vector>.
10200 * target.c (target_read_alloc_1): Templatize. Replacement
10201 manual memory management with vector.
10202 (target_read_alloc): Change return type, adjust.
10203 (target_read_stralloc): Change return type, adjust.
10204 (target_get_osdata): Change return type, adjust.
10205 * auxv.c (struct auxv_info) <length>: Remove.
10206 <data>: Change type to gdb::optional<byte_vector>.
10207 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10208 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10209 (target_auxv_search): Adjust.
10210 (fprint_target_auxv): Adjust.
10211 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10212 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10213 (linux_make_corefile_notes): Adjust.
10214 * osdata.c (get_osdata): Adjust.
10215 * remote.c (remote_get_threads_with_qxfer): Adjust.
10216 (remote_memory_map): Adjust.
10217 (remote_traceframe_info): Adjust.
10218 (btrace_read_config): Adjust.
10219 (remote_read_btrace): Adjust.
10220 (remote_pid_to_exec_file): Adjust.
10221 * solib-aix.c (solib_aix_get_library_list): Adjust.
10222 * solib-dsbt.c (decode_loadmap): Don't free buf.
10223 (dsbt_get_initial_loadmaps): Adjust.
10224 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10225 * solib-target.c (solib_target_current_sos): Adjust.
10226 * tracepoint.c (sdata_make_value): Adjust.
10227 * xml-support.c (xinclude_start_include): Adjust.
10228 (xml_fetch_content_from_file): Adjust.
10229 * xml-support.h (xml_fetch_another): Change return type.
10230 (xml_fetch_content_from_file): Change return type.
10231 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10232 * xml-tdesc.c (file_read_description_xml): Adjust.
10233 (fetch_available_features_from_target): Change return type.
10234 (target_fetch_description_xml): Adjust.
10235 (target_read_description_xml): Adjust.
10236
10237 2018-04-06 Tom Tromey <tom@tromey.com>
10238
10239 * value.c (~value): Update.
10240 (struct value) <contents>: Now unique_xmalloc_ptr.
10241 (value_contents_bits_eq, allocate_value_contents)
10242 (value_contents_raw, value_contents_all_raw)
10243 (value_contents_for_printing, value_contents_for_printing_const)
10244 (set_value_enclosing_type): Update.
10245
10246 2018-04-06 Tom Tromey <tom@tromey.com>
10247
10248 * value.c (range_s): Remove typedef, VEC.
10249 (struct range): Add operator<.
10250 (range_lessthan): Remove.
10251 (ranges_contain): Change type.
10252 (~value): Update.
10253 (struct value) <unavailable, optimized_out>: Now std::vector.
10254 (value_entirely_available)
10255 (value_entirely_covered_by_range_vector)
10256 (value_entirely_unavailable, value_entirely_optimized_out):
10257 Update.
10258 (insert_into_bit_range_vector): Change argument type.
10259 (find_first_range_overlap): Likewise.
10260 (struct ranges_and_idx, value_contents_bits_eq)
10261 (require_not_optimized_out, require_available): Update.
10262 (ranges_copy_adjusted): Change argument types.
10263 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10264
10265 2018-04-06 Tom Tromey <tom@tromey.com>
10266
10267 * value.c (~value): Update.
10268 (struct value) <parent>: Now a value_ref_ptr.
10269 (value_parent, set_value_parent, value_address, value_copy):
10270 Update.
10271
10272 2018-04-06 Tom Tromey <tom@tromey.com>
10273
10274 * value.c (struct value): Add constructor, destructor, and member
10275 initializers.
10276 (allocate_value_lazy, value_decref): Update.
10277
10278 2018-04-06 Tom Tromey <tom@tromey.com>
10279
10280 * value.c (struct value) <released, next>: Remove.
10281 (all_values): Now a std::vector.
10282 (allocate_value_lazy): Update.
10283 (value_next): Remove.
10284 (value_mark, value_free_to_mark, release_value)
10285 (value_release_to_mark): Update.
10286
10287 2018-04-06 Tom Tromey <tom@tromey.com>
10288
10289 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10290 (free_value_chain): Remove.
10291 * value.c (free_value_chain): Remove.
10292 (value_release_to_mark): Return a std::vector.
10293 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10294 std::vector.
10295 (check_condition): Update.
10296 * eval.c (fetch_subexp_value): Change "val_chain" to a
10297 std::vector.
10298 * breakpoint.c (update_watchpoint): Update.
10299 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10300
10301 2018-04-06 Tom Tromey <tom@tromey.com>
10302
10303 * value.h (free_all_values): Remove.
10304 * value.c (free_all_values): Remove.
10305
10306 2018-04-06 Tom Tromey <tom@tromey.com>
10307
10308 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10309 (value_history_chain, value_history_count): Remove.
10310 (value_history): New global.
10311 (record_latest_value, access_value_history, show_values)
10312 (preserve_values): Update.
10313
10314 2018-04-06 Tom Tromey <tom@tromey.com>
10315
10316 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10317 * varobj.c (varobj_set_display_format, varobj_set_value)
10318 (install_default_visualizer, construct_visualizer)
10319 (install_new_value, ~varobj, varobj_get_value_type)
10320 (my_value_of_variable, varobj_editable_p): Update.
10321 * c-varobj.c (c_describe_child, c_value_of_variable)
10322 (cplus_number_of_children, cplus_describe_child): Update.
10323 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10324 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10325 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10326
10327 2018-04-06 Tom Tromey <tom@tromey.com>
10328
10329 * printcmd.c (last_examine_address): Change type to
10330 value_ref_ptr.
10331 (do_examine, x_command): Update.
10332
10333 2018-04-06 Tom Tromey <tom@tromey.com>
10334
10335 * value.c (release_value): Update.
10336 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10337 (struct bpstats) <val>: Now a value_ref_ptr.
10338 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10339 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10340 (~watchpoint, print_it_watchpoint, watch_command_1)
10341 (invalidate_bp_value_on_memory_change): Update.
10342
10343 2018-04-06 Tom Tromey <tom@tromey.com>
10344
10345 * varobj.c (varobj_clear_saved_item)
10346 (update_dynamic_varobj_children, install_new_value, ~varobj):
10347 Update.
10348 * value.h (value_incref): Move declaration earlier.
10349 (value_decref): Rename from value_free.
10350 (struct value_ref_policy): New.
10351 (value_ref_ptr): New typedef.
10352 (struct value_deleter): Remove.
10353 (gdb_value_up): Remove typedef.
10354 (release_value): Change return type.
10355 (release_value_or_incref): Remove.
10356 * value.c (set_value_parent): Update.
10357 (value_incref): Change return type.
10358 (value_decref): Rename from value_free.
10359 (value_free_to_mark, free_all_values, free_value_chain): Update.
10360 (release_value): Return value_ref_ptr.
10361 (release_value_or_incref): Remove.
10362 (record_latest_value, set_internalvar, clear_internalvar):
10363 Update.
10364 * stack.c (info_frame_command): Don't call value_free.
10365 * python/py-value.c (valpy_dealloc, valpy_new)
10366 (value_to_value_object): Update.
10367 * printcmd.c (do_examine): Update.
10368 * opencl-lang.c (lval_func_free_closure): Update.
10369 * mi/mi-main.c (register_changed_p): Don't call value_free.
10370 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10371 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10372 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10373 value_free.
10374 * guile/scm-value.c (vlscm_free_value_smob)
10375 (vlscm_scm_from_value): Update.
10376 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10377 (frame_unwind_register_unsigned, get_frame_register_bytes)
10378 (put_frame_register_bytes): Don't call value_free.
10379 * findvar.c (address_from_register): Don't call value_free.
10380 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10381 * dwarf2loc.c (entry_data_value_free_closure)
10382 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10383 (dwarf2_evaluate_loc_desc_full): Update.
10384 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10385 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10386 (~watchpoint, watch_command_1)
10387 (invalidate_bp_value_on_memory_change): Update.
10388 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10389
10390 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10391
10392 PR gdb/23022
10393 * warning.m4: Add -Wno-error=deprecated-register.
10394 * configure: Re-generate.
10395
10396 2018-04-05 Tom Tromey <tom@tromey.com>
10397
10398 * linespec.h: Remove include of "vec.h".
10399
10400 2018-04-05 Tom Tromey <tom@tromey.com>
10401
10402 * linespec.c (typep): Remove typedef.
10403 (find_methods, find_superclass_methods): Take a std::vector.
10404 (find_method): Use std::vector.
10405
10406 2018-04-05 Tom Tromey <tom@tromey.com>
10407
10408 * utils.c (compare_strings): Remove.
10409 * utils.h (compare_strings): Remove.
10410 * objc-lang.h (find_imps): Update.
10411 * objc-lang.c (find_methods): Take a std::vector.
10412 (uniquify_strings, find_imps): Likewise.
10413 * linespec.c (find_methods): Take a std::vector.
10414 (decode_objc): Use std::vector.
10415 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10416 a std::vector.
10417 (find_method, find_function_symbols): Use std::vector.
10418
10419 2018-04-05 Tom Tromey <tom@tromey.com>
10420
10421 * completer.c (completion_tracker::completion_tracker): Remove
10422 cast.
10423 (completion_tracker::discard_completions): Likewise.
10424 * breakpoint.c (ambiguous_names_p): Remove cast.
10425 * ada-lang.c (_initialize_ada_language): Remove cast.
10426 * utils.h (streq): Update.
10427 (streq_hash): Add new declaration.
10428 * utils.c (streq): Return bool.
10429 (streq_hash): New function.
10430
10431 2018-04-05 Tom Tromey <tom@tromey.com>
10432
10433 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10434 Remove a string copy.
10435
10436 2018-04-05 Tom Tromey <tom@tromey.com>
10437
10438 * linespec.c (filter_results): Use std::vector.
10439 (decode_line_2, decode_line_full): Update.
10440
10441 2018-04-05 Tom Tromey <tom@tromey.com>
10442
10443 * linespec.c (canonical_to_fullform): Return std::string.
10444 (filter_results): Update.
10445 (struct decode_line_2_item): Add constructor.
10446 <fullform, displayform>: Now std::string.
10447 (decode_line_2_compare_items): Now a std::sort comparator.
10448 (decode_line_2): Update.
10449
10450 2018-04-05 Tom Tromey <tom@tromey.com>
10451
10452 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10453 (unexpected_linespec_error): Update.
10454 (linespec_parse_basic, parse_linespec): Update.
10455
10456 2018-04-05 Tom Tromey <tom@tromey.com>
10457
10458 * linespec.c (linespec_parse_basic): Reindent.
10459
10460 2018-04-05 Tom Tromey <tom@tromey.com>
10461
10462 * minsyms.h (iterate_over_minimal_symbols): Update.
10463 * minsyms.c (iterate_over_minimal_symbols): Take a
10464 gdb::function_view.
10465 * linespec.c (struct collect_minsyms): Remove.
10466 (compare_msyms): Now a std::sort comparator.
10467 (add_minsym): Add parameters.
10468 (search_minsyms_for_name): Update. Use std::vector.
10469
10470 2018-04-03 Tom Tromey <tom@tromey.com>
10471
10472 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10473 gdb::byte_vector.
10474
10475 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10476
10477 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10478
10479 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10480
10481 PR gdb/16959
10482 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10483 printing static type.
10484
10485 2018-04-01 Tom Tromey <tom@tromey.com>
10486
10487 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10488 (rs6000_xfer_shared_libraries): Update.
10489
10490 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10491
10492 * common/gdb_vecs.h (char_ptr): Remove.
10493 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10494
10495 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10496
10497 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10498 with std::vector.
10499 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10500
10501 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10502
10503 * tracepoint.h (struct uploaded_tp): Initialize fields.
10504 <actions, step_actions, cmd_strings>: Change type to
10505 std::vector<char *>.
10506 * tracepoint.c (get_uploaded_tp): Allocate with new.
10507 (free_uploaded_tps): Free with delete.
10508 (parse_tracepoint_definition): Adjust to std::vector change.
10509 * breakpoint.c (read_uploaded_action): Likewise.
10510 (create_tracepoint_from_upload): Likewise.
10511 * ctf.c (ctf_write_uploaded_tp): Likewise.
10512 (SET_ARRAY_FIELD): Likewise.
10513 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10514
10515 2018-03-30 Tom Tromey <tom@tromey.com>
10516
10517 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10518 std::unique_ptr.
10519 (svr4_keep_data_in_core): Update.
10520 (svr4_read_so_list): Update.
10521
10522 2018-03-30 Tom Tromey <tom@tromey.com>
10523
10524 * windows-nat.c (handle_output_debug_string, handle_exception):
10525 Update.
10526 * target.h (target_read_string): Update.
10527 * target.c (target_read_string): Change "string" to
10528 unique_xmalloc_ptr.
10529 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10530 Update.
10531 * solib-frv.c (frv_current_sos): Update.
10532 * solib-dsbt.c (dsbt_current_sos): Update.
10533 * solib-darwin.c (darwin_current_sos): Update.
10534 * linux-thread-db.c (inferior_has_bug): Update.
10535 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10536 Update. Remove alloca.
10537 * ada-lang.c (ada_main_name): Update.
10538
10539 2018-03-30 Tom Tromey <tom@tromey.com>
10540
10541 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10542 (struct dwo_file_deleter): New.
10543 (dwo_file_up): New typedef.
10544 (open_and_init_dwo_file): Use dwo_file_up.
10545 (free_dwo_file_cleanup): Remove.
10546
10547 2018-03-30 Tom Tromey <tom@tromey.com>
10548
10549 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10550 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10551
10552 2018-03-30 Tom Tromey <tom@tromey.com>
10553
10554 * dwarf2read.c (class free_cached_comp_units): New class.
10555 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10556 (free_cached_comp_units): Remove function.
10557
10558 2018-03-30 Tom Tromey <tom@tromey.com>
10559
10560 * utils.h (make_cleanup_unpush_target): Remove.
10561 * inf-ptrace.c (struct target_unpusher): New.
10562 (target_unpush_up) New typedef.
10563 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10564 target_unpush_up.
10565 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10566
10567 2018-03-27 Tom Tromey <tom@tromey.com>
10568
10569 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10570
10571 2018-03-27 Pedro Alves <palves@redhat.com>
10572 Tom Tromey <tom@tromey.com>
10573
10574 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10575 destructor. Now a class.
10576 (gdb_readline_wrapper_cleanup): Remove function.
10577 (gdb_readline_wrapper): Remove cleanups.
10578
10579 2018-03-27 Tom Tromey <tom@tromey.com>
10580
10581 * typeprint.h (struct type_print_options) <local_typedefs,
10582 global_typedefs>: Remove "struct" keyword.
10583 (class typedef_hash_table): New class.
10584 (recursively_update_typedef_hash, add_template_parameters)
10585 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10586 (find_typedef_in_hash): Don't declare.
10587 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10588 (typedef_hash_table::recursively_update): Rename from
10589 recursively_update_typedef_hash. Now a member.
10590 (typedef_hash_table::add_template_parameters): Rename from
10591 add_template_parameters. Now a member.
10592 (typedef_hash_table::typedef_hash_table): Now a constructor;
10593 rename from create_typedef_hash.
10594 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10595 rename from free_typedef_hash.
10596 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10597 (do_free_global_table): Remove.
10598 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10599 from copy_type_recursive.
10600 (create_global_typedef_table): Remove.
10601 (typedef_hash_table::find_global_typedef): Now a member of
10602 typedef_hash_table.
10603 (typedef_hash_table::find_typedef): Rename from
10604 find_typedef_in_hash; now a member.
10605 (whatis_exp): Update.
10606 * extension.h (struct ext_lang_type_printers): Add constructor and
10607 destructor.
10608 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10609 declare.
10610 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10611 Now a constructor; rename from start_ext_lang_type_printers.
10612 (ext_lang_type_printers): Now a destructor; rename from
10613 free_ext_lang_type_printers.
10614 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10615 Update.
10616 (c_type_print_base_struct_union): Update. Remove cleanups.
10617
10618 2018-03-27 Tom Tromey <tom@tromey.com>
10619
10620 * dwarf-index-write.c: Include <cmath>.
10621
10622 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10623
10624 * NEWS: Add entry describing new "set|show varsize-limit" command.
10625 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10626 command.
10627 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10628 "set variable".
10629
10630 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10631
10632 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10633 dwarf-index-write.c
10634 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10635 * dwarf-index-common.c: New file.
10636 * dwarf-index-common.h: New file.
10637 * dwarf-index-write.c: New file.
10638 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10639 (struct dwarf2_section_info): Move from here.
10640 (dwarf2_section_info_def): Likewise.
10641 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10642 (offset_type): Likewise.
10643 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10644 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10645 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10646 (byte_swap): Likewise.
10647 (MAYBE_SWAP): Likewise.
10648 (dwarf2_per_cu_ptr): Likewise.
10649 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10650 (struct tu_stats): Likewise.
10651 (struct dwarf2_per_objfile): Likewise.
10652 (struct dwarf2_per_cu_data): Likewise.
10653 (struct signatured_type): Likewise.
10654 (sig_type_ptr): Likewise.
10655 (DEF_VEC_P (sig_type_ptr)): Likewise.
10656 (INDEX4_SUFFIX): Likewise.
10657 (INDEX5_SUFFIX): Likewise.
10658 (DEBUG_STR_SUFFIX): Likewise.
10659 (dwarf2_read_section): Make non-static.
10660 (mapped_index_string_hash): Move from here.
10661 (dwarf5_djb_hash): Likewise.
10662 (file_write): Likewise.
10663 (class data_buf): Likewise.
10664 (struct symtab_index_entry): Likewise.
10665 (struct mapped_symtab): Likewise.
10666 (find_slot): Likewise.
10667 (hash_expand): Likewise.
10668 (add_index_entry): Likewise.
10669 (uniquify_cu_indices): Likewise.
10670 (class c_str_view): Likewise.
10671 (class c_str_view_hasher): Likewise.
10672 (class vector_hasher): Likewise.
10673 (write_hash_table): Likewise.
10674 (psym_index_map): Likewise.
10675 (struct addrmap_index_data): Likewise.
10676 (add_address_entry): Likewise.
10677 (add_address_entry_worker): Likewise.
10678 (write_address_map): Likewise.
10679 (symbol_kind): Likewise.
10680 (write_psymbols): Likewise.
10681 (struct signatured_type_index_data): Likewise.
10682 (write_one_signatured_type): Likewise.
10683 (recursively_count_psymbols): Likewise.
10684 (recursively_write_psymbols): Likewise.
10685 (class debug_names): Likewise.
10686 (check_dwarf64_offsets): Likewise.
10687 (psyms_seen_size): Likewise.
10688 (write_gdbindex): Likewise.
10689 (write_debug_names): Likewise.
10690 (assert_file_size): Likewise.
10691 (write_psymtabs_to_index): Likewise.
10692 (save_gdb_index_command): Likewise.
10693 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10694 command.
10695 * dwarf2read.h: New file.
10696
10697 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10698
10699 PR gdb/22670
10700 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10701 symbol name if the CU's language stores symbol names in linkage
10702 format.
10703 * language.h (struct language_defn)
10704 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10705 all instances of this struct.
10706
10707 2018-03-26 Tom Tromey <tom@tromey.com>
10708
10709 * stack.c (backtrace_command_1): Remove verbose code.
10710
10711 2018-03-26 Tom Tromey <tom@tromey.com>
10712
10713 * python/py-framefilter.c (py_print_type): Don't catch
10714 exceptions. Return void.
10715 (py_print_value): Likewise.
10716 (py_print_single_arg): Likewise.
10717 (enumerate_args): Don't catch exceptions.
10718 (py_print_args): Likewise.
10719 (py_print_frame): Likewise.
10720 (gdbpy_apply_frame_filter): Catch exceptions here.
10721
10722 2018-03-26 Tom Tromey <tom@tromey.com>
10723
10724 * stack.c (_initialize_stack): Remove trailing newlines from help
10725 text. Add "Usage" line to "backtrace" help.
10726
10727 2018-03-26 Tom Tromey <tom@tromey.com>
10728
10729 PR python/16486:
10730 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10731
10732 2018-03-26 Tom Tromey <tom@tromey.com>
10733
10734 * python/py-framefilter.c (py_print_single_arg): Return
10735 EXT_LANG_BT_ERROR from catch.
10736
10737 2018-03-26 Tom Tromey <tom@tromey.com>
10738
10739 PR backtrace/15584:
10740 * stack.c (backtrace_command_1): Move some code into no-filters
10741 "if".
10742
10743 2018-03-26 Tom Tromey <tom@tromey.com>
10744
10745 * python/py-framefilter.c (throw_quit_or_print_exception): New
10746 function.
10747 (gdbpy_apply_frame_filter): Use it.
10748
10749 2018-03-26 Tom Tromey <tom@tromey.com>
10750
10751 PR cli/17716:
10752 * python/py-framefilter.c (py_print_type, py_print_value)
10753 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10754 RETURN_MASK_ERROR.
10755
10756 2018-03-26 Tom Tromey <tom@tromey.com>
10757
10758 * python/py-framefilter.c (enumerate_args): Use
10759 gdb::unique_xmalloc_ptr.
10760
10761 2018-03-26 Tom Tromey <tom@tromey.com>
10762
10763 * python/py-framefilter.c (py_print_frame): Return
10764 EXT_LANG_BT_OK.
10765 (gdbpy_apply_frame_filter): Update comment.
10766 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10767 Remove.
10768 <EXT_LANG_BT_NO_FILTERS>: Change value.
10769
10770 2018-03-26 Tom Tromey <tom@tromey.com>
10771
10772 PR backtrace/15582:
10773 * stack.c (backtrace_command): Parse "hide" argument.
10774 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10775 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10776 constant.
10777
10778 2018-03-26 Tom Tromey <tom@tromey.com>
10779
10780 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10781 add "flags".
10782 (backtrace_command): Remove "fulltrace", add "flags".
10783
10784 2018-03-26 Tom Tromey <tom@tromey.com>
10785
10786 * stack.c (backtrace_command): Rewrite command line parsing.
10787
10788 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10789
10790 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10791
10792 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10793
10794 * filename-seen-cache.h: Add include guard.
10795
10796 2018-03-26 Keith Seitz <keiths@redhat.com>
10797
10798 * symfile.c (place_section): Remove "struct" from section_addr_info
10799 in comment.
10800 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10801 "struct" keyword from section_addr_info.
10802
10803 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10804
10805 * regformats/regdef.h (reg): Add constructors.
10806
10807 2018-03-25 Pedro Alves <palves@redhat.com>
10808
10809 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10810 if then/else bodies in var_func_name extraction.
10811
10812 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10813
10814 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10815 lookup_minimal_symbol() to find symbol entry.
10816 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10817
10818 2018-03-23 Keith Seitz <keiths@redhat.com>
10819
10820 PR c++/22968
10821 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10822 nested type definitions for C++, too.
10823
10824 2018-03-23 Tom Tromey <tom@tromey.com>
10825
10826 * machoread.c (struct oso_el): Add a constructor. Don't define as
10827 a typedef.
10828 (macho_register_oso): Remove.
10829 (macho_symtab_read): Take a std::vector.
10830 (oso_el_compare_name): Now a std::sort comparator.
10831 (macho_symfile_read_all_oso): Take a std::vector.
10832 (macho_symfile_read): Use std::vector. Remove cleanups.
10833
10834 2018-03-22 Tom Tromey <tom@tromey.com>
10835
10836 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10837 (record_full_goto_bookmark): Use std::string.
10838
10839 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10840
10841 PR tdep/18295
10842 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10843 a single mask.
10844
10845 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10846
10847 * rs6000-tdep.c (store_insn_p): New function.
10848 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10849 and cr_reg to their unshifted values. Use store_insn_p to
10850 match LR saves using either R1 or fdata->alloca_reg. Use
10851 store_insn_p to match CR saves. Set alloca_reg_offset
10852 when alloca_reg and framep are set. Remove lr_reg shift
10853 when assigning to fdata->lr_register.
10854
10855 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10856
10857 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10858 command line args instead of emitting a warning.
10859
10860 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10861
10862 * tracepoint.h (struct static_tracepoint_marker): Initialize
10863 fields, define default constructor, move constructor and move
10864 assignment, disable the rest.
10865 <str_id, extra>: Make std::string.
10866 (release_static_tracepoint_marker): Remove.
10867 (free_current_marker): Remove.
10868 * tracepoint.c (free_current_marker): Remove.
10869 (parse_static_tracepoint_marker_definition): Adjust to
10870 std::string, use new hex2str overload.
10871 (release_static_tracepoint_marker): Remove.
10872 (print_one_static_tracepoint_marker): Get marker by reference
10873 and adjust to std::string.
10874 (info_static_tracepoint_markers_command): Adjust to std::vector
10875 changes
10876 * target.h (static_tracepoint_marker_p): Remove typedef.
10877 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10878 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10879 bool.
10880 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10881 * target-debug.h
10882 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10883 (target_debug_print_std_vector_static_tracepoint_marker): New.
10884 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10885 to...
10886 (target_debug_print_static_tracepoint_marker_p): ... this.
10887 * target-delegates.c: Re-generate.
10888 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10889 Make std::string.
10890 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10891 (decode_static_tracepoint_spec): Adjust to std::vector.
10892 (tracepoint_print_one_detail): Adjust to std::string.
10893 (strace_marker_decode_location): Adjust to std::string.
10894 (update_static_tracepoint): Adjust to std::string, remove call
10895 to release_static_tracepoint_marker.
10896 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10897 Adjust to std::vector.
10898 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10899 (remote_static_tracepoint_markers_by_strid): Adjust to
10900 std::vector.
10901 * common/rsp-low.h (hex2str): New overload with explicit count
10902 of bytes.
10903 * common/rsp-low.c (hex2str): New overload with explicit count
10904 of bytes.
10905 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10906 (_initialize_rsp_low_selftests): Add test_hex2str test.
10907 * unittests/tracepoint-selftests.c
10908 (test_parse_static_tracepoint_marker_definition): Adjust to
10909 std::string.
10910
10911 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10912
10913 * tracepoint.c (parse_static_tracepoint_marker_definition):
10914 Consider case where the definition is followed by more
10915 definitions.
10916 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10917 tracepoint-selftests.c.
10918 * unittests/tracepoint-selftests.c: New.
10919
10920 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10921
10922 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10923 Carvalho.
10924
10925 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10926
10927 * symtab.c (find_pc_sect_line): fixed indentation.
10928
10929 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10930
10931 * symtab.c (find_pc_sect_line): now uses binary search.
10932
10933 2018-03-19 Tom Tromey <tom@tromey.com>
10934
10935 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10936 "IDENT" production.
10937
10938 2018-03-19 Pedro Alves <palves@redhat.com>
10939 Tom Tromey <tom@tromey.com>
10940
10941 * unittests/observable-selftests.c: New file.
10942 * common/observable.h: New file.
10943 * observable.h: New file.
10944 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10945 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10946 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10947 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10948 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10949 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10950 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10951 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10952 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10953 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10954 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10955 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10956 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10957 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10958 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10959 tui/tui-interp.c, valops.c: Update all users.
10960 * tui/tui-hooks.c (tui_bp_created_observer)
10961 (tui_bp_deleted_observer, tui_bp_modified_observer)
10962 (tui_inferior_exit_observer, tui_before_prompt_observer)
10963 (tui_normal_stop_observer, tui_register_changed_observer):
10964 Remove.
10965 (tui_observers_token): New global.
10966 (attach_or_detach, tui_attach_detach_observers): New functions.
10967 (tui_install_hooks, tui_remove_hooks): Use
10968 tui_attach_detach_observers.
10969 * record-btrace.c (record_btrace_thread_observer): Remove.
10970 (record_btrace_thread_observer_token): New global.
10971 * observer.sh: Remove.
10972 * observer.c: Rename to observable.c.
10973 * observable.c (namespace gdb_observers): Define new objects.
10974 (observer_debug): Move into gdb_observers namespace.
10975 (struct observer, struct observer_list, xalloc_observer_list_node)
10976 (xfree_observer_list_node, generic_observer_attach)
10977 (generic_observer_detach, generic_observer_notify): Remove.
10978 (_initialize_observer): Update.
10979 Don't include observer.inc.
10980 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10981 (clean mostlyclean): Likewise.
10982 (observer.h, observer.inc): Remove targets.
10983 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10984 (COMMON_SFILES): Use observable.c, not observer.c.
10985 * .gitignore: Remove observer.h.
10986
10987 2018-03-18 Tom Tromey <tom@tromey.com>
10988
10989 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10990 gdb::def_vector.
10991 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10992
10993 2018-03-17 Tom Tromey <tom@tromey.com>
10994
10995 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10996
10997 2018-03-17 Tom Tromey <tom@tromey.com>
10998
10999 * target.c (class scoped_target_fd): New.
11000 (target_fileio_close_cleanup): Remove.
11001 (target_fileio_read_alloc_1): Use scoped_target_fd.
11002
11003 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11004
11005 * silent-rules.mk: New.
11006 * Makefile.in: Include silent-rules.mk
11007 (srcdir, VPATH, top_srcdir): Move up.
11008 (COMPILE): Add ECHO_CXX.
11009 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11010 (init.c): Add ECHO_INIT_C.
11011 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11012 (version.c): Add ECHO_GEN.
11013 (printcmd.o): Add ECHO_CXX.
11014 (target-float.o): Add ECHO_CXX.
11015 (ada-exp.o): Add ECHO_CXX.
11016 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11017 (insight$(EXEEXT)): Add ECHO_CXXLD.
11018 * gnulib/configure.ac: Add AM_SILENT_RULES.
11019 * gnulib/aclocal.m4: Re-generate.
11020 * gnulib/configure: Re-generate.
11021 * gnulib/import/Makefile.in: Re-generate.
11022
11023 2018-03-16 Tom Tromey <tom@tromey.com>
11024
11025 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11026 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11027 * utils.c (do_free_section_addr_info)
11028 (make_cleanup_free_section_addr_info): Remove.
11029 * symfile.h (struct other_sections): Add constructor.
11030 (struct section_addr_info): Remove.
11031 (section_addr_info): New typedef.
11032 (struct sym_fns) <sym_offsets>: Change type of parameter.
11033 (build_section_addr_info_from_objfile)
11034 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11035 (default_symfile_offsets, symbol_file_add)
11036 (symbol_file_add_from_bfd)
11037 (build_section_addr_info_from_section_table): Update.
11038 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11039 * symfile.c (alloc_section_addr_info): Remove.
11040 (build_section_addr_info_from_section_table): Change return type.
11041 Update.
11042 (build_section_addr_info_from_bfd)
11043 (build_section_addr_info_from_objfile): Likewise.
11044 (free_section_addr_info): Remove.
11045 (relative_addr_info_to_section_offsets): Change type of "addrs".
11046 (addrs_section_compar): Now a std::sort comparator.
11047 (addrs_section_sort): Change return type.
11048 (addr_info_make_relative): Change type of "addrs". Update.
11049 (default_symfile_offsets, syms_from_objfile_1)
11050 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11051 (symbol_file_add_separate): Update.
11052 (symbol_file_add): Change type of "addrs". Update.
11053 (add_symbol_file_command): Update. Remove cleanups.
11054 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11055 cleanups.
11056 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11057 * solib.c (solib_read_symbols): Update.
11058 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11059 * machoread.c (macho_symfile_offsets): Update.
11060 * jit.c (jit_bfd_try_read_symtab): Update.
11061
11062 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11063
11064 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11065 unittests/utils-selftests.c.
11066 * unittests/utils-selftests.c: New file.
11067
11068 2018-03-14 Tom Tromey <tom@tromey.com>
11069
11070 PR cli/14977:
11071 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11072 for NULL.
11073
11074 2018-03-14 Tom Tromey <tom@tromey.com>
11075
11076 PR cli/19918:
11077 * printcmd.c (printf_pointer): Allow "-" in format.
11078
11079 2018-03-14 Tom Tromey <tom@tromey.com>
11080
11081 * printcmd.c (_initialize_printcmd): Add usage to printf.
11082
11083 2018-03-14 Yao Qi <qiyao@sourceware.org>
11084
11085 * MAINTAINERS: Update my email address.
11086
11087 2018-03-13 Tom Tromey <tom@tromey.com>
11088
11089 * machoread.c (macho_check_dsym): Change filenamep to a
11090 std::string*.
11091 (macho_symfile_read): Update.
11092 * symfile.c (load_command): Use std::string.
11093
11094 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11095
11096 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11097 to error message string.
11098 (riscv_register_name): Use xsnprintf instead of sprintf.
11099 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11100 internal_error.
11101 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11102 error.
11103 (riscv_push_dummy_call): Likewise.
11104
11105 2018-03-12 Tom Tromey <tom@tromey.com>
11106
11107 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11108 Use gdb::byte_vector.
11109 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11110
11111 2018-03-12 Yao Qi <yao.qi@linaro.org>
11112
11113 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11114 parameter type to readable_regcache.
11115 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11116 the declaration.
11117
11118 2018-03-11 Tom Tromey <tom@tromey.com>
11119
11120 * dwarf2read.c (struct nextfield): Add initializers.
11121 (struct nextfnfield): Remove.
11122 (struct fnfieldlist): Add initializers. Remove "length" and
11123 "head", use std::vector.
11124 (struct decl_field_list): Remove.
11125 (struct field_info): Add initializers.
11126 <fields, baseclasses>: Now std::vector.
11127 <nbaseclasses, nfnfields, typedef_field_list_count,
11128 nested_types_list_count>: Remove.
11129 (dwarf2_add_field, dwarf2_add_type_defn)
11130 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11131 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11132 (process_structure_scope): Update.
11133
11134 2018-03-11 Tom Tromey <tom@tromey.com>
11135
11136 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11137 for use by std::sort.
11138 (build_type_psymtabs_1): Use std::vector.
11139
11140 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11141
11142 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11143 and LIBMPFR in the printed configuration.
11144
11145 2018-03-08 Tom Tromey <tom@tromey.com>
11146
11147 * source.c (get_filename_and_charpos): Use scoped_fd.
11148 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11149 (procfs_pidlist): Likewise.
11150 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11151 (iterate_over_mappings): Likewise.
11152
11153 2018-03-08 Tom Tromey <tom@tromey.com>
11154
11155 * infcall.c (struct call_return_meta_info)
11156 <stack_temporaries_enabled>: Remove.
11157 (get_call_return_value, call_function_by_hand_dummy): Update.
11158 * thread.c (disable_thread_stack_temporaries): Remove.
11159 (enable_thread_stack_temporaries): Remove.
11160 (thread_stack_temporaries_enabled_p): Return bool.
11161 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11162 (get_last_thread_stack_temporary): Update.
11163 * eval.c (evaluate_subexp): Update.
11164 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11165 class, not a function.
11166 (value_ptr, value_vec): Remove typedefs.
11167 (class thread_info) <stack_temporaries_enabled>: Now bool.
11168 <stack_temporaries>: Now a std::vector.
11169 (thread_stack_temporaries_enabled_p)
11170 (value_in_thread_stack_temporaries): Return bool.
11171
11172 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11173
11174 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11175 (getpkt_or_notif_sane_1): Likewise.
11176
11177 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11178
11179 * build-id.c (build_id_to_debug_bfd): Use std::string.
11180
11181 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11182
11183 * build-id.c (find_separate_debug_file_by_buildid): Return
11184 std::string.
11185 * build-id.h (find_separate_debug_file_by_buildid): Return
11186 std::string.
11187 * coffread.c (coff_symfile_read): Adjust to std::string.
11188 * elfread.c (elf_symfile_read): Adjust to std::string.
11189 * symfile.c (separate_debug_file_exists): Change parameter to
11190 std::string.
11191 (find_separate_debug_file): Return std::string.
11192 (find_separate_debug_file_by_debuglink): Return std::string.
11193 * symfile.h (find_separate_debug_file_by_debuglink): Return
11194 std::string.
11195
11196 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11197
11198 * common/xml-utils.c (xml_escape_text): Move code to...
11199 (xml_escape_text_append): ... this new function.
11200 * common/xml-utils.h (xml_escape_text_append): New declaration.
11201 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11202 New function.
11203 (_initialize_xml_utils): register test_xml_escape_text_append as
11204 a selftest.
11205
11206 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11207
11208 * defs.h: Remove MAX_REGISTER_SIZE.
11209 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11210 asserts.
11211 * python/py-unwind.c (pyuw_sniffer): Likewise.
11212
11213 2018-03-07 Tom Tromey <tom@tromey.com>
11214
11215 * linux-tdep.c (linux_info_proc): Update.
11216 * target.h (struct target_ops) <to_fileio_readlink>: Return
11217 optional<string>.
11218 (target_fileio_readlink): Return optional<string>.
11219 * remote.c (remote_hostio_readlink): Return optional<string>.
11220 * inf-child.c (inf_child_fileio_readlink): Return
11221 optional<string>.
11222 * target.c (target_fileio_readlink): Return optional<string>.
11223
11224 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11225
11226 * regcache.c (cooked_read_test): Add riscv to the list of
11227 architectures that have a save_reggroup.
11228
11229 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11230
11231 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11232 value is not a dynamic class object.
11233
11234 2018-03-06 Tom Tromey <tom@tromey.com>
11235
11236 * rust-exp.y: Formatting fixes.
11237
11238 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11239
11240 * riscv-tdep.c (riscv_register_name): Remove target description
11241 support.
11242 (riscv_gdbarch_init): Remove target description check.
11243
11244 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11245
11246 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11247 comment.
11248 * riscv-tdep.h: Likewise.
11249
11250 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11251
11252 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11253 (riscv_pseudo_register_write): Delete.
11254 (riscv_gdbarch_init): Remove all use of pseudo registers.
11255
11256 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11257
11258 * record-btrace.c (btrace_print_lines): Replace cleanup
11259 parameter with RAII equivalents.
11260 (btrace_insn_history): Replace cleanup with RAII equivalents.
11261 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11262 make_cleanup_ui_out_tuple_begin_end): Remove.
11263 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11264 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11265 make_cleanup_ui_out_list_begin_end): Remove.
11266
11267 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11268
11269 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11270 parameter types to std::vector. Use bool.
11271 (record_btrace_wait): Replace VEC(tp_t) with
11272 std::vector<thread_info *>.
11273 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11274
11275 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11276
11277 * record-btrace.c (record_btrace_disable_callback): Remove.
11278 (struct scoped_btrace_disable): New.
11279 (record_btrace_open): Use scoped_btrace_disable.
11280
11281 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11282
11283 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11284 reading values from registers.
11285
11286 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11287
11288 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11289 where appropriate.
11290
11291 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11292
11293 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11294 change parameter type. Use GDB's print functions, and use
11295 core_addr_to_string where appropriate.
11296 (riscv_push_dummy_call): Use core_addr_to_string where
11297 appropriate, update call to riscv_print_arg_location, and reindent
11298 a few lines.
11299 (riscv_return_value): Update call to riscv_print_arg_location.
11300
11301 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11302 Tim Newsome <tim@sifive.com>
11303 Albert Ou <a0u@eecs.berkeley.edu>
11304 Darius Rad <darius@bluespec.com>
11305
11306 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11307 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11308 (ALLDEPFILES): Add riscv-tdep.c
11309 * configure.tgt: Add riscv support.
11310 * riscv-tdep.c: New file.
11311 * riscv-tdep.h: New file.
11312 * NEWS: Mention new target.
11313 * MAINTAINERS: Add entry for riscv.
11314
11315 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11316
11317 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11318 fields within aggregates.
11319
11320 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11321
11322 * record-btrace.c (btrace_print_lines): Change type of flags to
11323 gdb_disassembly_flags.
11324
11325 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11326
11327 * fbsd-nat.c: Include "inf-ptrace.h".
11328 (USE_SIGTRAP_SIGINFO): Conditionally define.
11329 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11330 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11331 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11332 function.
11333 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11334 Likewise.
11335 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11336 Likewise.
11337 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11338 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11339 "supports_stopped_by_hw_breakpoint" target methods.
11340
11341 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11342
11343 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11344 * fbsd-nat.c (debug_fbsd_nat): New variable.
11345 (show_fbsd_nat_debug): New function.
11346 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11347 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11348
11349 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11350
11351 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11352 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11353 prototype.
11354 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11355 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11356 method.
11357
11358 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11359
11360 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11361 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11362
11363 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11364
11365 * charset.c (struct charset_vector): New.
11366 (charsets): Change type to charset_vector.
11367 (find_charset_names): Adjust.
11368 (add_one): Adjust.
11369 (_initialize_charset): Adjust.
11370
11371 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11372
11373 * progspace.h (struct program_space) <deleted_solibs>: Change
11374 type to std::vector<std::string>.
11375 * progspace.c (clear_program_space_solib_cache): Adjust.
11376 * breakpoint.c (print_solib_event): Adjust.
11377 (check_status_catch_solib): Adjust.
11378 * solib.c (update_solib_list): Adjust.
11379 * ui-out.h (class ui_out) <field_string>: New overload.
11380 * ui-out.c (ui_out::field_string): New overload.
11381
11382 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11383
11384 * progspace.h (struct program_space): Add constructor and
11385 destructor, initialize fields.
11386 (add_program_space): Remove.
11387 * progspace.c (add_program_space): Rename to...
11388 (program_space::program_space): ... this.
11389 (release_program_space): Rename to...
11390 (program_space::~program_space): ... this.
11391 (delete_program_space): Use delete to delete program_space.
11392 (initialize_progspace): Use new to allocate program_space.
11393 * inferior.c (add_inferior_with_spaces): Likewise.
11394 (clone_inferior_command): Likewise.
11395 * infrun.c (follow_fork_inferior): Likewise.
11396 (handle_vfork_child_exec_or_exit): Likewise.
11397
11398 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11399
11400 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11401 (delim_string_to_char_ptr_vec): Return std::vector of
11402 gdb::unique_xmalloc_ptr.
11403 (dirnames_to_char_ptr_vec_append): Take std::vector of
11404 gdb::unique_xmalloc_ptr.
11405 (dirnames_to_char_ptr_vec): Return std::vector of
11406 gdb::unique_xmalloc_ptr.
11407 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11408 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11409 (delim_string_to_char_ptr_vec): Return an std::vector of
11410 gdb::unique_xmalloc_ptr, adjust the code.
11411 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11412 gdb::unique_xmalloc_ptr, adjust the code.
11413 (dirnames_to_char_ptr_vec): Return an std::vector of
11414 gdb::unique_xmalloc_ptr, adjust the code.
11415 * auto-load.c (auto_load_safe_path_vec): Change type to
11416 std::vector of gdb::unique_xmalloc_ptr.
11417 (auto_load_expand_dir_vars): Return an std::vector of
11418 gdb::unique_xmalloc_ptr, adjust the code.
11419 (auto_load_safe_path_vec_update): Adjust.
11420 (filename_is_in_auto_load_safe_path_vec): Adjust.
11421 (auto_load_objfile_script_1): Adjust.
11422 * build-id.c (build_id_to_debug_bfd): Adjust.
11423 * linux-thread-db.c (thread_db_load_search): Adjust.
11424 * source.c (add_path): Adjust.
11425 (openp): Adjust.
11426 * symfile.c (find_separate_debug_file): Adjust.
11427 * utils.c (do_free_char_ptr_vec): Remove.
11428 (make_cleanup_free_char_ptr_vec): Remove.
11429
11430 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11431
11432 PR gdb/22907
11433 * common/pathstuff.c: Conditionally include "<windows.h>".
11434
11435 2018-03-01 Georg Sauthoff <mail@georg.so>
11436
11437 PR gdb/22888
11438 * gcore.in: Quote variables and switch interpreter to bash.
11439
11440 2018-03-01 Tom Tromey <tom@tromey.com>
11441
11442 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11443 assertion. Add assertion for discriminant_index.
11444 (quirk_rust_enum): Use correct base type name in univariant case.
11445
11446 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11447
11448 * record.c (get_call_history_modifiers): Return a
11449 record_print_flags.
11450 (cmd_record_call_history): Adjust.
11451 * record-btrace.c (record_btrace_call_history): Adjust.
11452 (record_btrace_call_history_range): Adjust.
11453 (record_btrace_call_history_from): Adjust.
11454 * target-debug.h (target_debug_print_record_print_flags): New.
11455 * target-delegates.c: Re-generate.
11456 * target.c (target_call_history): Change flags type.
11457 (target_call_history_from): Likewise.
11458 (target_call_history_range): Likewise.
11459 * target.h (struct target_ops) <target_call_history>: Likewise.
11460 (target_call_history_from): Likewise.
11461 (target_call_history_range): Likewise.
11462
11463 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11464 Simon Marchi <simon.marchi@polymtl.ca>
11465
11466 * common/common-utils.c: Include "sys/stat.h".
11467 (is_regular_file): Move here from "source.c"; change return
11468 type to "bool".
11469 * common/common-utils.h (is_regular_file): New prototype.
11470 * common/pathstuff.c (contains_dir_separator): New function.
11471 * common/pathstuff.h (contains_dir_separator): New prototype.
11472 * source.c: Don't include "sys/stat.h".
11473 (is_regular_file): Move to "common/common-utils.c".
11474
11475 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11476
11477 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11478 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11479 * auto-load.c: Include "common/pathstuff.h".
11480 * common/common-def.h (current_directory): Move here.
11481 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11482 function.
11483 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11484 prototype.
11485 * common/pathstuff.c: New file.
11486 * common/pathstuff.h: New file.
11487 * compile/compile.c: Include "common/pathstuff.h".
11488 * defs.h (current_directory): Move to "common/common-defs.h".
11489 * dwarf2read.c: Include "common/pathstuff.h".
11490 * exec.c: Likewise.
11491 * guile/scm-safe-call.c: Likewise.
11492 * linux-thread-db.c: Likewise.
11493 * main.c: Likewise.
11494 * nto-tdep.c: Likewise.
11495 * objfiles.c: Likewise.
11496 * source.c: Likewise.
11497 * symtab.c: Likewise.
11498 * utils.c: Include "common/pathstuff.h".
11499 (gdb_realpath): Move to "common/pathstuff.c".
11500 (gdb_realpath_keepfile): Likewise.
11501 (gdb_abspath): Likewise.
11502 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11503 (gdb_realpath_keepfile): Likewise.
11504 (gdb_abspath): Likewise.
11505
11506 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11507
11508 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11509 wildcard process pid for super_resume for kernels with a
11510 specific bug.
11511
11512 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11513
11514 * compile/compile.c (get_args): Add additional comments
11515 explaining function.
11516
11517 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11518 Tom Tromey <tom@tromey.com>
11519
11520 * target.h (memory_write_request_s): Remove typedef. Don't define
11521 VEC.
11522 (target_write_memory_blocks): Change argument to std::vector.
11523 (struct memory_write_request): Add constructor.
11524 * target-memory.c (compare_block_starting_address): Return bool.
11525 Change argument types.
11526 (claim_memory): Change arguments to use std::vector.
11527 (split_regular_and_flash_blocks, blocks_to_erase)
11528 (compute_garbled_blocks): Likewise.
11529 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11530 (target_write_memory_blocks): Change argument to std::vector.
11531 * symfile.c (struct load_section_data): Add constructor and
11532 destructor. Use std::vector for "requests".
11533 (struct load_progress_data): Add initializers.
11534 (load_section_callback): Update. Use "new".
11535 (clear_memory_write_data): Remove.
11536 (generic_load): Update.
11537
11538 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11539
11540 * arch/aarch64.h: Use common/tdesc.h.
11541
11542 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11543
11544 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11545 architecture with a 64-bit ABI.
11546
11547 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11548
11549 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11550 ahead of target description loading.
11551
11552 2018-02-26 Tom Tromey <tom@tromey.com>
11553
11554 * stack.c (backtrace_command_1): Update.
11555 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11556 of "flags".
11557 * python/py-framefilter.c (py_print_frame)
11558 (gdbpy_apply_frame_filter): Change type of "flags".
11559 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11560 of "flags".
11561 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11562 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11563 * extension.h (enum frame_filter_flag): Rename from
11564 frame_filter_flags.
11565 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11566 (apply_ext_lang_frame_filter): Change type of "flags".
11567 * extension.c (apply_ext_lang_frame_filter): Change type of
11568 "flags".
11569 * extension-priv.h (struct extension_language_ops)
11570 <apply_frame_filter>: Change type of "flags".
11571
11572 2018-02-26 Tom Tromey <tom@tromey.com>
11573
11574 PR python/16497:
11575 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11576 off-by-one in py_end computation.
11577 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11578 PRINT_MORE_FRAMES.
11579 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11580 constant.
11581
11582 2018-02-26 Tom Tromey <tom@tromey.com>
11583
11584 * dwarf2read.c (struct variant_field): New.
11585 (struct nextfield) <variant>: New field.
11586 (dwarf2_add_field): Handle DW_TAG_variant_part.
11587 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11588 discriminated union.
11589 (read_structure_type): Handle DW_TAG_variant_part.
11590 (handle_struct_member_die): New function, extracted from
11591 process_structure_scope. Handle DW_TAG_variant.
11592 (process_structure_scope): Handle discriminated unions. Call
11593 handle_struct_member_die.
11594
11595 2018-02-26 Tom Tromey <tom@tromey.com>
11596
11597 * rust-lang.h (rust_last_path_segment): Declare.
11598 * rust-lang.c (rust_last_path_segment): Now public. Change
11599 contract.
11600 (struct disr_info): Remove.
11601 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11602 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11603 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11604 (rust_enum_p, rust_enum_variant): New function.
11605 (rust_underscore_fields): Remove "offset" parameter.
11606 (rust_print_enum): New function.
11607 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11608 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11609 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11610 enums.
11611 (rust_internal_print_type): New function, from rust_print_type.
11612 Remove enum code.
11613 (rust_print_type): Call rust_internal_print_type.
11614 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11615 Update enum handling.
11616 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11617 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11618 (rust_union_quirks): New functions.
11619 (process_full_comp_unit, process_full_type_unit): Call
11620 rust_union_quirks.
11621 (process_structure_scope): Update rust_unions if necessary.
11622
11623 2018-02-26 Tom Tromey <tom@tromey.com>
11624
11625 * value.h (value_union_variant): Declare.
11626 * valops.c (value_union_variant): New function.
11627 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11628 (struct discriminant_info): New.
11629 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11630 enumerator.
11631 (struct main_type) <flag_discriminated_union>: New field.
11632
11633 2018-02-26 Tom Tromey <tom@tromey.com>
11634
11635 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11636 unittests/unpack-selftests.c.
11637 * unittests/unpack-selftests.c: New file.
11638 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11639
11640 2018-02-26 Yao Qi <yao.qi@linaro.org>
11641
11642 * dwarf2read.c (struct partial_die_info) <read>: New method.
11643 (read_partial_die): Remove the declaration.
11644 (load_partial_dies): Update.
11645 (partial_die_info::partial_die_info):
11646 (read_partial_die): Change it to partial_die_info::read.
11647
11648 2018-02-26 Yao Qi <yao.qi@linaro.org>
11649
11650 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11651 (fixup_partial_die): Remove declaration.
11652 (scan_partial_symbols): Update.
11653 (partial_die_parent_scope): Likewise.
11654 (partial_die_full_name): Likewise.
11655 (fixup_partial_die): Change it to partial_die_info::fixup.
11656
11657 2018-02-26 Yao Qi <yao.qi@linaro.org>
11658
11659 * dwarf2read.c (read_partial_die): Update the declaration.
11660 (load_partial_dies): Caller update.
11661 (read_partial_die): Remove one argument abbrev_len.
11662
11663 2018-02-26 Yao Qi <yao.qi@linaro.org>
11664
11665 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11666 assignment operator.
11667 (load_partial_dies): Use ctor and copy ctor.
11668 (read_partial_die): Update.
11669 (dwarf2_cu::find_partial_die): Use ctor.
11670
11671 2018-02-26 Yao Qi <yao.qi@linaro.org>
11672
11673 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11674 (find_partial_die_in_comp_unit): Change it to
11675 dwarf2_cu::find_partial_die.
11676 (find_partial_die): Update.
11677
11678 2018-02-26 Yao Qi <yao.qi@linaro.org>
11679
11680 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11681 is NULL.
11682
11683 2018-02-26 Yao Qi <yao.qi@linaro.org>
11684
11685 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11686
11687 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11688
11689 * arch/amd64.h: Use common/tdesc.h.
11690 * arch/i386.c: Likewise.
11691 * arch/i386.h: Likewise.
11692 * arch/tic6x.c: Likewise.
11693 * arch/tdesc.h: Move file from here...
11694 * common/tdesc.h: ...to here.
11695 * features/aarch64-core.c: Regenerate.
11696 * features/aarch64-fpu.c: Regenerate.
11697 * features/i386/32bit-avx.c: Regenerate.
11698 * features/i386/32bit-avx512.c: Regenerate.
11699 * features/i386/32bit-core.c: Regenerate.
11700 * features/i386/32bit-linux.c: Regenerate.
11701 * features/i386/32bit-mpx.c: Regenerate.
11702 * features/i386/32bit-pkeys.c: Regenerate.
11703 * features/i386/32bit-sse.c: Regenerate.
11704 * features/i386/64bit-avx.c: Regenerate.
11705 * features/i386/64bit-avx512.c: Regenerate.
11706 * features/i386/64bit-core.c: Regenerate.
11707 * features/i386/64bit-linux.c: Regenerate.
11708 * features/i386/64bit-mpx.c: Regenerate.
11709 * features/i386/64bit-pkeys.c: Regenerate.
11710 * features/i386/64bit-segments.c: Regenerate.
11711 * features/i386/64bit-sse.c: Regenerate.
11712 * features/i386/x32-core.c: Regenerate.
11713 * features/tic6x-c6xp.c: Regenerate.
11714 * features/tic6x-core.c: Regenerate.
11715 * features/tic6x-gp.c: Regenerate.
11716 * target-descriptions.c: Use common/tdesc.h.
11717 * target-descriptions.h: Likewise.
11718
11719 2018-02-24 Tom Tromey <tom@tromey.com>
11720
11721 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11722 (try_thread_db_load_from_dir, thread_db_load_search): Use
11723 std::string.
11724 (info_auto_load_libthread_db_compare): Return bool. Change
11725 argument types.
11726 (info_auto_load_libthread_db): Use std::vector, std::string.
11727 Remove cleanups.
11728
11729 2018-02-24 Tom Tromey <tom@tromey.com>
11730
11731 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11732 std::string.
11733 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11734 std::string*.
11735 * gdbarch.c: Rebuild.
11736 * gdbarch.h: Rebuild.
11737 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11738 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11739 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11740 std::string*.
11741
11742 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11743
11744 * gdbtypes.h (sect_offset): Change type to uint64_t.
11745 (sect_offset_str): New function.
11746 * dwarf2read.c (create_addrmap_from_aranges): Use
11747 sect_offset_str.
11748 (error_check_comp_unit_head): Likewise.
11749 (create_debug_type_hash_table): Likewise.
11750 (read_cutu_die_from_dwo): Likewise.
11751 (init_cutu_and_read_dies): Likewise.
11752 (init_cutu_and_read_dies_no_follow): Likewise.
11753 (process_psymtab_comp_unit_reader): Likewise.
11754 (partial_die_parent_scope): Likewise.
11755 (peek_die_abbrev): Likewise.
11756 (process_queue): Likewise.
11757 (dwarf2_physname): Likewise.
11758 (read_namespace_alias): Likewise.
11759 (read_import_statement): Likewise.
11760 (create_dwo_cu_reader): Likewise.
11761 (create_cus_hash_table): Likewise.
11762 (lookup_dwo_cutu): Likewise.
11763 (inherit_abstract_dies): Likewise.
11764 (read_func_scope): Likewise.
11765 (read_call_site_scope): Likewise.
11766 (dwarf2_add_member_fn): Likewise.
11767 (read_common_block): Likewise.
11768 (read_module_type): Likewise.
11769 (read_typedef): Likewise.
11770 (read_subrange_type): Likewise.
11771 (load_partial_dies): Likewise.
11772 (read_partial_die): Likewise.
11773 (find_partial_die): Likewise.
11774 (read_str_index): Likewise.
11775 (dwarf2_string_attr): Likewise.
11776 (build_error_marker_type): Likewise.
11777 (lookup_die_type): Likewise.
11778 (dump_die_shallow): Likewise.
11779 (follow_die_ref): Likewise.
11780 (dwarf2_fetch_die_loc_sect_off): Likewise.
11781 (dwarf2_fetch_constant_bytes): Likewise.
11782 (follow_die_sig): Likewise.
11783 (get_signatured_type): Likewise.
11784 (get_DW_AT_signature_type): Likewise.
11785 (dwarf2_find_containing_comp_unit): Likewise.
11786 (set_die_type): Likewise.
11787
11788 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11789
11790 * arch/aarch64.c: Include "common-defs.h".
11791 * arch/amd64.c: Likewise.
11792 * arch/i386.c: Likewise.
11793
11794 2018-02-21 Tom Tromey <tom@tromey.com>
11795
11796 * value.h: (extract_field_op): Update.
11797 * eval.c (extract_field_op): Return a const char *.
11798 * expression.h (parse_expression_for_completion): Update.
11799 * completer.c (complete_expression): Update.
11800 (add_struct_fields): Make fieldname const.
11801 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11802 (mark_completion_tag, parse_exp_in_context_1): Update.
11803 (parse_expression_for_completion): Change "name" to
11804 unique_xmalloc_ptr*.
11805
11806 2018-02-21 Tom Tromey <tom@tromey.com>
11807
11808 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11809
11810 2018-02-21 Yao Qi <yao.qi@linaro.org>
11811
11812 * avr-tdep.c (avr_read_pc): Change parameter type to
11813 readable_regcache.
11814 * gdbarch.sh (read_pc): Likewise.
11815 * gdbarch.c: Re-generated.
11816 * gdbarch.h: Re-generated.
11817 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11818 readable_regcache.
11819 * ia64-tdep.c (ia64_read_pc): Likewise.
11820 * mips-tdep.c (mips_read_pc): Likewise.
11821 * spu-tdep.c (spu_read_pc): Likewise.
11822
11823 2018-02-21 Yao Qi <yao.qi@linaro.org>
11824
11825 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11826 * regcache-dump.c: New file.
11827 * regcache.c: Move register_dump to regcache-dump.c.
11828 (maintenance_print_registers): Likewise.
11829 (maintenance_print_raw_registers): Likewise.
11830 (maintenance_print_cooked_registers): Likewise.
11831 (maintenance_print_register_groups): Likewise.
11832 (maintenance_print_remote_registers): Likewise.
11833 (_initialize_regcache): Likewise.
11834 * regcache.h (register_dump): Moved from regcache.c.
11835
11836 2018-02-21 Yao Qi <yao.qi@linaro.org>
11837
11838 * regcache.c (regcache::regcache): Update.
11839 (regcache::invalidate): Move it to detached_regcache::invalidate.
11840 (get_thread_arch_aspace_regcache): Update.
11841 (regcache::raw_update): Update.
11842 (regcache::cooked_read): Remove some code.
11843 (regcache::cooked_read_value): Likewise.
11844 (regcache::raw_write): Remove assert on m_readonly_p.
11845 (regcache::raw_supply_integer): Move it to
11846 detached_regcache::raw_supply_integer.
11847 (regcache::raw_supply_zeroed): Likewise.
11848 * regcache.h (detached_regcache) <raw_supply_integer>: New
11849 declaration.
11850 <raw_supply_zeroed, invalidate>: Likewise.
11851 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11852 <invalidate>: Likewise.
11853 <m_readonly_p>: Removed.
11854
11855 2018-02-21 Yao Qi <yao.qi@linaro.org>
11856
11857 * infcmd.c (get_return_value): Let stop_regs point to
11858 get_current_regcache.
11859 * regcache.c (regcache::regcache): Remove.
11860 (register_dump_reg_buffer): New class.
11861 (regcache_print): Adjust.
11862 * regcache.h (regcache): Remove constructors.
11863
11864 2018-02-21 Yao Qi <yao.qi@linaro.org>
11865
11866 * regcache.c (class register_dump): New class.
11867 (register_dump_regcache, register_dump_none): New class.
11868 (register_dump_remote, register_dump_groups): New class.
11869 (regcache_print): Update.
11870 * regcache.h (regcache_dump_what): Move it to regcache.c.
11871 (regcache) <dump>: Remove.
11872
11873 2018-02-21 Yao Qi <yao.qi@linaro.org>
11874
11875 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11876 reg_buffer_rw *.
11877 (jit_unwind_reg_set_impl): Call raw_supply.
11878 (jit_frame_sniffer): Use reg_buffer_rw.
11879 * record-full.c (record_full_core_regbuf): Change its type.
11880 (record_full_core_open_1): Use reg_buffer_rw.
11881 (record_full_close): Likewise.
11882 (record_full_core_fetch_registers): Use regcache->raw_supply.
11883 (record_full_core_store_registers): Likewise.
11884 * regcache.c (regcache::get_register_status): Move it to
11885 reg_buffer.
11886 (regcache_raw_set_cached_value): Remove.
11887 (regcache::raw_set_cached_value): Remove.
11888 (regcache::raw_write): Call raw_supply.
11889 (regcache::raw_supply): Move it to reg_buffer_rw.
11890 * regcache.h (regcache_raw_set_cached_value): Remove.
11891 (reg_buffer_rw): New class.
11892
11893 2018-02-21 Yao Qi <yao.qi@linaro.org>
11894
11895 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11896 readonly_detached_regcache.
11897 (dummy_frame_prev_register): Use regcache->cooked_read.
11898 * frame.c (frame_save_as_regcache): Change return type.
11899 (frame_pop): Update.
11900 * frame.h (frame_save_as_regcache): Update declaration.
11901 * inferior.h (get_infcall_suspend_state_regcache): Update
11902 declaration.
11903 * infrun.c (infcall_suspend_state) <registers>: use
11904 readonly_detached_regcache.
11905 (save_infcall_suspend_state): Don't use regcache_dup.
11906 (get_infcall_suspend_state_regcache): Change return type.
11907 * linux-fork.c (struct fork_info) <savedregs>: Change to
11908 readonly_detached_regcache.
11909 <pc>: New field.
11910 (fork_save_infrun_state): Don't use regcache_dup.
11911 (info_checkpoints_command): Adjust.
11912 * mi/mi-main.c (register_changed_p): Update declaration.
11913 (mi_cmd_data_list_changed_registers): Use
11914 readonly_detached_regcache.
11915 (register_changed_p): Change parameter type to
11916 readonly_detached_regcache.
11917 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11918 readonly_detached_regcache.
11919 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11920 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11921 New.
11922 (regcache::save): Move it to reg_buffer.
11923 (regcache::restore): Change parameter type.
11924 (regcache_dup): Remove.
11925 * regcache.h (reg_buffer) <save>: New method.
11926 (readonly_detached_regcache): New class.
11927 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11928 readonly_detached_regcache.
11929 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11930
11931 2018-02-21 Yao Qi <yao.qi@linaro.org>
11932
11933 * frame.c (frame_save_as_regcache): Use regcache method save.
11934 (frame_pop): Use regcache method restore.
11935 * infrun.c (restore_infcall_suspend_state): Likewise.
11936 * linux-fork.c (fork_load_infrun_state): Likewise.
11937 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11938 save.
11939 * regcache.c (regcache_save): Remove.
11940 (regcache::restore): More asserts.
11941 (regcache_cpy): Remove.
11942 * regcache.h (regcache_save): Remove the declaration.
11943 (regcache::restore): Move from private to public.
11944 Remove the friend declaration of regcache_cpy.
11945 (regcache_cpy): Remove declaration.
11946
11947 2018-02-21 Yao Qi <yao.qi@linaro.org>
11948
11949 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11950 parameter type to 'readable_regcache *'.
11951 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11952 * arm-tdep.c (arm_neon_quad_read): Likewise.
11953 (arm_pseudo_read): Likewise.
11954 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11955 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11956 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11957 * gdbarch.c: Re-generated.
11958 * gdbarch.h: Re-generated.
11959 * gdbarch.sh (pseudo_register_read): Change parameter type to
11960 'readable_regcache *'.
11961 (pseudo_register_read_value): Likewise.
11962 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11963 (h8300_pseudo_register_read): Likewise.
11964 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11965 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11966 (i386_pseudo_register_read_into_value): Likewise.
11967 (i386_pseudo_register_read_value): Likewise.
11968 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11969 declaration.
11970 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11971 * m32c-tdep.c (m32c_raw_read): Likewise.
11972 (m32c_read_flg): Likewise.
11973 (m32c_banked_register): Likewise.
11974 (m32c_banked_read): Likewise.
11975 (m32c_sb_read): Likewise.
11976 (m32c_part_read): Likewise.
11977 (m32c_cat_read): Likewise.
11978 (m32c_r3r2r1r0_read): Likewise.
11979 (m32c_pseudo_register_read): Likewise.
11980 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11981 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11982 (mep_pseudo_cr64_read): Likewise.
11983 (mep_pseudo_register_read): Likewise.
11984 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11985 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11986 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11987 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11988 (regcache::cooked_read): Likewise.
11989 (regcache::cooked_read_value): Likewise.
11990 (regcache_cooked_read_signed):
11991 (regcache::cooked_read): Likewise.
11992 * regcache.h (readable_regcache): New class.
11993 (regcache): Inherit readable_regcache. Move some methods to
11994 readable_regcache.
11995 * rl78-tdep.c (rl78_pseudo_register_read): Change
11996 parameter type to 'readable_regcache *'.
11997 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11998 (e500_pseudo_register_read): Change parameter type to
11999 'readable_regcache *'.
12000 (dfp_pseudo_register_read): Likewise.
12001 (vsx_pseudo_register_read): Likewise.
12002 (efpr_pseudo_register_read): Likewise.
12003 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12004 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12005 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12006 (sh64_pseudo_register_read): Likewise.
12007 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12008 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12009 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12010 (spu_pseudo_register_read): Likewise.
12011 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12012 (xtensa_pseudo_register_read): Likewise.
12013
12014 2018-02-21 Yao Qi <yao.qi@linaro.org>
12015
12016 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12017 (regcache::arch): Move it to reg_buffer::arch.
12018 (regcache::register_buffer): Likewise.
12019 (regcache::assert_regnum): Likewise.
12020 (regcache::num_raw_registers): Likewise.
12021 * regcache.h (reg_buffer): New class.
12022 (regcache): Inherit reg_buffer.
12023
12024 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12025
12026 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12027 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12028
12029 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12030
12031 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12032
12033 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12034
12035 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12036 (SFILES): Remove common/*.c files.
12037 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12038 * common/common.host: Add common reference.
12039 * configure.ac: Likewise.
12040 * configure: Regenerate.
12041
12042 2018-02-16 Yao Qi <yao.qi@linaro.org>
12043
12044 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12045 (block_initialize_namespace): Use new.
12046 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12047 (dwarf2_free_objfile): Use delete.
12048 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12049 (copy_type_recursive): Use new.
12050 * gdb_obstack.h (allocate_on_obstack): New.
12051
12052 2018-02-15 Yao Qi <yao.qi@linaro.org>
12053
12054 PR gdb/22849
12055 * inferior.c (exit_inferior_1): Reset inf->control.
12056
12057 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12058
12059 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12060 declaration.
12061
12062 2018-02-14 Pedro Alves <palves@redhat.com>
12063
12064 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12065 frame_cleanup_after_sniffer on exception.
12066
12067 2018-02-14 Tom Tromey <tom@tromey.com>
12068
12069 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12070 const.
12071 (solib_bfd_open): Make pathname const.
12072 * solib.c (solib_bfd_open): Make pathname const.
12073 * solib-spu.c (spu_bfd_fopen): Make name const.
12074 (spu_bfd_open): Make pathname const.
12075 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12076 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12077
12078 2018-02-14 Tom Tromey <tom@tromey.com>
12079
12080 * symfile.c (symfile_bfd_open): Update.
12081 * source.h (openp, source_full_path_of, find_and_open_source):
12082 Change argument type to unique_xmalloc_ptr.
12083 * source.c (openp): Take a unique_xmalloc_ptr.
12084 (source_full_path_of, find_and_open_source): Likewise.
12085 (open_source_file, symtab_to_fullname): Update.
12086 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12087 unique_xmalloc_ptr.
12088 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12089 (exec_file_find): Update.
12090 * psymtab.c (psymtab_to_fullname): Update.
12091 * nto-tdep.h (nto_find_and_open_solib): Update.
12092 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12093 unique_xmalloc_ptr.
12094 * exec.c (exec_file_attach): Update.
12095 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12096 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12097
12098 2018-02-14 Tom Tromey <tom@tromey.com>
12099
12100 * solib.c: Include source.h.
12101 * nto-tdep.c: Include source.h.
12102 * mi/mi-cmd-env.c: Include source.h.
12103 * infcmd.c: Include source.h.
12104 * exec.c: Include source.h.
12105 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12106 (add_path, directory_switch, source_path, init_source_path): Move
12107 declarations...
12108 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12109 (add_path, directory_switch, source_path, init_source_path):
12110 ...here.
12111
12112 2018-02-14 Tom Tromey <tom@tromey.com>
12113
12114 * solist.h (exec_file_find, solib_find): Return
12115 unique_xmalloc_ptr.
12116 (solib_bfd_fopen): Take a const char *.
12117 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12118 (exec_file_find, solib_find): Likewise.
12119 (solib_bfd_fopen): Do not take ownership of "pathname".
12120 (solib_bfd_open): Use unique_xmalloc_ptr.
12121 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12122 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12123 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12124 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12125
12126 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12127
12128 * ada-lang.c (name_match_type_from_name): Remove reference to
12129 ada_name_for_lookup in function's documentation.
12130 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12131
12132 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12133
12134 * defs.h (enum openp_flags): New enum.
12135 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12136 Move to enum openp_flags.
12137 (openp_flags): New enum flags.
12138 (openp): Change parameter type to openp_flags.
12139 * source.c (openp): Change parameter type to openp_flags.
12140 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12141 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12142
12143 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12144
12145 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12146 per-command.
12147
12148 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12149
12150 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12151 into...
12152 (class dwarf2_queue_guard): ...the destructor of this new class.
12153 (dw2_do_instantiate_symtab): Create instance of the new class
12154 dwarf2_queue_guard, remove cleanup.
12155
12156 2018-02-09 Tom Tromey <tom@tromey.com>
12157
12158 * source.c (find_source_lines): Don't reference past the end of
12159 the vector.
12160
12161 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12162
12163 * remote.c (remote_btrace_maybe_reopen): Change error message.
12164 * btrace.c (btrace_enable): Likewise.
12165 (parse_xml_btrace): Likewise.
12166 (parse_xml_btrace_conf): Likewise.
12167
12168 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12169
12170 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12171 (linux_enable_pt, linux_enable_bts): Call
12172 diagnose_perf_event_open_fail.
12173
12174 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12175
12176 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12177 Remove parameter and change return type. Update callers. Move it.
12178 (linux_enable_bts, linux_enable_pt): Improve error message.
12179 (linux_enable_pt): Remove zero buffer size check.
12180 (linux_enable_btrace): Improve error messages. Remove NULL return
12181 check.
12182
12183 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12184
12185 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12186 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12187 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12188 (linux_supports_pt, linux_supports_btrace): Remove.
12189 (linux_enable_bts): Call cpu_supports_bts.
12190 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12191 * remote.c (remote_supports_btrace): Remove.
12192 (init_remote_ops): Remove remote_supports_btrace.
12193 * target-delegates.c: Regenerated.
12194 * target.c (target_supports_btrace): Remove.
12195 * target.h (target_ops) <to_supports_btrace>: Remove
12196 (target_supports_btrace): Remove.
12197 * x86-linux-nat.c (x86_linux_create_target): Remove
12198 linux_supports_btrace.
12199
12200 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12201
12202 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12203 btrace failed.
12204 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12205 exception and use message in own exception.
12206
12207 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12208
12209 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12210 (perf_event_pt_event_type): Use gdb_file_up.
12211 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12212 scoped_fd, and scoped_mmap.
12213
12214 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12215
12216 * common/scoped_mmap.h: New.
12217 * unittests/scoped_mmap-selftest.c: New.
12218 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12219 unittests/scoped_mmap-selftest.c.
12220
12221 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12222
12223 * common/scoped_fd.h: New.
12224 * unittests/scoped_fd-selftest.c: New.
12225 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12226 unittests/scoped_fd-selftest.c.
12227
12228 2018-02-09 Tom Tromey <tom@tromey.com>
12229
12230 * auto-load.c (auto_load_section_scripts): Use
12231 gdb::unique_xmalloc_ptr.
12232
12233 2018-02-09 Tom Tromey <tom@tromey.com>
12234
12235 * auto-load.c (execute_script_contents): Use std::string.
12236
12237 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12238
12239 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12240 Python function, rather than a new command.
12241
12242 2018-02-08 Tom Tromey <tom@tromey.com>
12243
12244 * solib.c (solib_find_1): Use std::string.
12245 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12246
12247 2018-02-08 Tom Tromey <tom@tromey.com>
12248
12249 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12250
12251 2018-02-08 Tom Tromey <tom@tromey.com>
12252
12253 * source.c (find_source_lines): Use gdb::def_vector.
12254
12255 2018-02-08 Tom Tromey <tom@tromey.com>
12256
12257 * macrocmd.c (struct temporary_macro_definition): New.
12258 (macro_define_command): Use temporary_macro_definition. Remove
12259 cleanups.
12260 (free_macro_definition_ptr): Remove.
12261
12262 2018-02-08 Tom Tromey <tom@tromey.com>
12263
12264 * macroexp.c (maybe_expand): Use std::string.
12265
12266 2018-02-08 Tom Tromey <tom@tromey.com>
12267
12268 * macroexp.c (struct macro_buffer): Add initializers for some
12269 members.
12270 (init_buffer, init_shared_buffer, free_buffer)
12271 (free_buffer_return_text): Remove.
12272 (macro_buffer): New constructors.
12273 (~macro_buffer): New destructor.
12274 (macro_buffer::set_shared): New method.
12275 (macro_buffer::resize_buffer, macro_buffer::appendc)
12276 (macro_buffer::appendmem): Now methods, not free functions.
12277 (set_token, append_tokens_without_splicing, stringify)
12278 (macro_stringify): Update.
12279 (gather_arguments): Change return type. Remove argc_p argument,
12280 add args_ptr argument. Use std::vector.
12281 (substitute_args): Remove argc argument. Accept std::vector.
12282 (expand): Update. Use std::vector.
12283 (scan, macro_expand, macro_expand_next): Update.
12284
12285 2018-02-08 Tom Tromey <tom@tromey.com>
12286
12287 * symtab.c (default_collect_symbol_completion_matches_break_on):
12288 Use unique_xmalloc_ptr.
12289 * macroscope.h: (sal_macro_scope, user_macro_scope)
12290 (default_macro_scope): Return unique_xmalloc_ptr.
12291 * macroscope.c (sal_macro_scope, user_macro_scope)
12292 (default_macro_scope): Return unique_xmalloc_ptr.
12293 * macroexp.h (macro_expand, macro_expand_once): Return
12294 unique_xmalloc_ptr.
12295 * macroexp.c (macro_expand, macro_expand_once): Return
12296 unique_xmalloc_ptr.
12297 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12298 (info_macro_command, info_macros_command): Use
12299 unique_xmalloc_ptr.
12300 * compile/compile-c-support.c (write_macro_definitions): Use
12301 unique_xmalloc_ptr.
12302 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12303
12304 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12305
12306 * value.c (value_static_field): Assign field type instead of
12307 containing type when returning an optimized out value.
12308
12309 2018-02-06 Yao Qi <yao.qi@linaro.org>
12310
12311 * ft32-tdep.c (ft32_read_pc): Remove.
12312 (ft32_write_pc): Remove.
12313 (ft32_gdbarch_init): Update.
12314 * m32r-tdep.c (m32r_read_pc): Remove.
12315 (m32r_gdbarch_init): Update.
12316 * mep-tdep.c (mep_read_pc): Remove.
12317 (mep_gdbarch_init): Update.
12318 * microblaze-tdep.c (microblaze_write_pc): Remove.
12319 (microblaze_gdbarch_init): Update.
12320 * mn10300-tdep.c (mn10300_read_pc): Remove.
12321 (mn10300_write_pc): Remove.
12322 (mn10300_gdbarch_init): Update.
12323 * moxie-tdep.c (moxie_read_pc): Remove.
12324 (moxie_write_pc): Remove.
12325 (moxie_gdbarch_init): Update.
12326
12327 2018-02-06 Yao Qi <yao.qi@linaro.org>
12328
12329 * expprint.c (print_subexp_standard): Handle
12330 OP_F77_UNDETERMINED_ARGLIST.
12331 (dump_subexp_body_standard): Likewise.
12332
12333 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12334
12335 * target-descriptions.c (tdesc_element_visitor) Add empty
12336 implementations.
12337 (tdesc_type): Move make_gdb_type from here.
12338 (tdesc_type_builtin): Likewise.
12339 (tdesc_type_vector): Likewise.
12340 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12341 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12342 (make_gdb_type_union): Likewise.
12343 (make_gdb_type_flags): Likewise.
12344 (make_gdb_type_enum): Likewise.
12345 (make_gdb_type): New function.
12346 (tdesc_register_type): Use static make_gdb_type.
12347
12348 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12349
12350 * infcmd.c (default_print_one_register_info): Align natural-format
12351 column values consistently one under another.
12352 (pad_to_column): New function.
12353
12354 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12355
12356 * dwarf2read.c (dwarf2_physname): Move commment.
12357
12358 2018-02-01 Leszek Swirski <leszeks@google.com>
12359
12360 * varobj.c (varobj_formatted_print_options): Allow recursive
12361 pretty printing if pretty printing is enabled.
12362
12363 2018-02-01 Leszek Swirski <leszeks@google.com>
12364
12365 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12366 names after a structop as a filename.
12367
12368 2018-02-01 Yao Qi <yao.qi@linaro.org>
12369
12370 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12371 (arm_record_coproc_data_proc): Likewise.
12372
12373 2018-02-01 Yao Qi <yao.qi@linaro.org>
12374
12375 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12376
12377 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12378
12379 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12380 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12381
12382 2018-01-31 Pedro Alves <palves@redhat.com>
12383
12384 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12385 * inflow.c (child_terminal_save_inferior): Wrap reference to
12386 tcgetpgrp in HAVE_TERMIOS_H.
12387 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12388 _WIN32.
12389 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12390 always iterate over all inferiors.
12391 (gdbsim_cntrl_c): Adjust.
12392 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12393
12394 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12395
12396 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12397 index type is objfile-owned if the element type is as well.
12398
12399 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12400
12401 GDB 8.1 released.
12402
12403 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12404
12405 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12406 "features/s390x-linux64.c".
12407 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12408 s390_linux32 and s390x_linux64.
12409 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12410 default tdesc.
12411 * s390-tdep.c: Include "features/s390-linux32.c" and
12412 "features/s390x-linux64.c".
12413 (s390_tdesc_valid): Add check for tdesc_has_registers.
12414 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12415 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12416 tdesc_s390x_linux64.
12417 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12418 tdesc_s390x_linux64 to...
12419 * s390-tdep.h: ...here.
12420
12421 2018-01-30 Pedro Alves <palves@redhat.com>
12422
12423 PR gdb/13211
12424 * config.in, configure: Regenerate.
12425 * configure.ac: Check for getpgid.
12426 * go32-nat.c (go32_pass_ctrlc): New.
12427 (go32_target): Install it.
12428 * inf-child.c (inf_child_target): Install
12429 child_terminal_save_inferior, child_pass_ctrlc and
12430 child_interrupt.
12431 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12432 (inf_ptrace_target): No longer install it.
12433 * infcmd.c (interrupt_target_1): Adjust.
12434 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12435 (child_interrupt): Declare.
12436 (inferior::terminal_state): New.
12437 * inflow.c (struct terminal_info): Update comments.
12438 (inferior_process_group): Delete.
12439 (terminal_is_ours): Delete.
12440 (gdb_tty_state): New.
12441 (child_terminal_init): Adjust.
12442 (is_gdb_terminal, sharing_input_terminal_1)
12443 (sharing_input_terminal): New functions.
12444 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12445 Set the process's actual process group in the foreground if
12446 possible. Handle is_ours_for_output/is_ours distinction. Don't
12447 mark terminal as the inferior's if not sharing GDB's terminal.
12448 Don't check attach_flag.
12449 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12450 pass down a target_terminal_state.
12451 (child_terminal_save_inferior): New, factored out from ...
12452 (child_terminal_ours_1): ... this. Handle
12453 target_terminal_state::is_ours_for_output.
12454 (child_interrupt, child_pass_ctrlc): New.
12455 (inflow_inferior_exit): Clear the inferior's terminal_state.
12456 (copy_terminal_info): Copy the inferior's terminal state.
12457 (_initialize_inflow): Remove reference to terminal_is_ours.
12458 * inflow.h (inferior_process_group): Delete.
12459 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12460 * procfs.c (procfs_target): Don't install procfs_interrupt.
12461 (procfs_interrupt): Delete.
12462 * remote.c (remote_serial_quit_handler): Adjust.
12463 (remote_interrupt): Remove ptid parameter. Adjust.
12464 * target-delegates.c: Regenerate.
12465 * target.c: Include "terminal.h".
12466 (target_terminal::terminal_state): Rename to ...
12467 (target_terminal::m_terminal_state): ... this.
12468 (target_terminal::init): Adjust.
12469 (target_terminal::inferior): Adjust to per-inferior
12470 terminal_state.
12471 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12472 (target_terminal::ours, target_terminal::ours_for_output): Use
12473 target_terminal_is_ours_kind.
12474 (target_interrupt): Remove ptid parameter. Adjust.
12475 (default_target_pass_ctrlc): Adjust.
12476 * target.h (target_ops::to_terminal_save_inferior): New field.
12477 (target_ops::to_interrupt): Remove ptid_t parameter.
12478 (target_interrupt): Remove ptid_t parameter. Update comment.
12479 (target_pass_ctrlc): Update comment.
12480 * target/target.h (target_terminal_state): New scoped enum,
12481 factored out of ...
12482 (target_terminal::terminal_state): ... here.
12483 (target_terminal::inferior): Update comments.
12484 (target_terminal::restore_inferior): New.
12485 (target_terminal::is_inferior, target_terminal::is_ours)
12486 (target_terminal::is_ours_for_output): Adjust.
12487 (target_terminal::scoped_restore_terminal_state): Adjust to
12488 rename, and call restore_inferior() instead of inferior().
12489 (target_terminal::scoped_restore_terminal_state::m_state): Change
12490 type.
12491 (target_terminal::terminal_state): Rename to ...
12492 (target_terminal::m_terminal_state): ... this and change type.
12493
12494 2018-01-30 Pedro Alves <palves@redhat.com>
12495
12496 * linux-nat.c (wait_for_signal): New function.
12497 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12498 directly.
12499 (async_terminal_is_ours)
12500 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12501 (linux_nat_add_target): Don't override
12502 to_terminal_inferior/to_terminal_ours.
12503
12504 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12505
12506 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12507
12508 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12509
12510 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12511 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12512 dwarf2_per_objfile_free here.
12513 (dwarf2_per_objfile_free): Remove.
12514 (_initialize_dwarf2_read): Don't register
12515 dwarf2_per_objfile_free as a registry cleanup.
12516
12517 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12518
12519 Avoid compilation errors in MinGW native builds
12520
12521 The error is triggered by including python-internal.h, and the
12522 error message is:
12523
12524 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12525 from build-gnulib/import/math.h:27,
12526 from d:/usr/Python26/include/pyport.h:235,
12527 from d:/usr/Python26/include/Python.h:58,
12528 from python/python-internal.h:94,
12529 from python/py-arch.c:24:
12530 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12531 using ::hypot;
12532 ^~~~~
12533
12534 This happens because Python headers define 'hypot' to expand t
12535 '_hypot' in the Windows builds.
12536 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12537 'hypoth'. This avoids a compilation error.
12538
12539 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12540
12541 * MAINTAINERS (Write After Approval): Fix ordering.
12542
12543 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12544
12545 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12546
12547 2018-01-26 Alan Modra <amodra@gmail.com>
12548
12549 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12550 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12551 Remove nop. Make const. Comment.
12552 (powerpc32_plt_stub_so_2): New.
12553 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12554 Correct count. Update uses.
12555 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12556 Move common code reading PLT entry word. Correct
12557 powerpc32_plt_stub PLT address calculation.
12558 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12559 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12560 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12561 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12562 (ppc64_standard_linkage8): Likewise.
12563 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12564 Correct insns description.
12565 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12566
12567 2018-01-24 Pedro Alves <palves@redhat.com>
12568
12569 GCC PR libstdc++/83906
12570 * gdbtypes.c (operator==(const dynamic_prop &,
12571 const dynamic_prop &)): New.
12572 (operator==(const range_bounds &, const range_bounds &)): New.
12573 (check_types_equal): Use them instead of memcmp.
12574 * gdbtypes.h (operator==(const dynamic_prop &,
12575 const dynamic_prop &)): Declare.
12576 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12577 (operator==(const range_bounds &, const range_bounds &)): Declare.
12578 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12579
12580 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12581
12582 * s390-linux-tdep.c (s390_record_address_mask)
12583 (s390_record_calc_disp_common, s390_record_calc_disp)
12584 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12585 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12586 (s390_process_record): Move to s390-tdep.c.
12587 (s390_linux_init_abi_any): Adjust.
12588 * s390-tdep.c (s390_record_address_mask)
12589 (s390_record_calc_disp_common, s390_record_calc_disp)
12590 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12591 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12592 (s390_process_record): Moved from s390-linux-tdep.c
12593 (s390_gdbarch_init): Adjust.
12594
12595 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12596
12597 * s390-linux-nat.c (s390-tdep.h): New include.
12598 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12599 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12600 (ALLDEPFILES): Add s390-tdep.c.
12601 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12602 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12603 * s390-tdep.h: ...this. New file.
12604 * s390-linux-tdep.c (s390-tdep.h): New include.
12605 (_initialize_s390_tdep): Rename to...
12606 (_initialize_s390_linux_tdep): ...this and adjust.
12607 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12608 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12609 s390-tdep.h.
12610 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12611 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12612 (s390_is_partial_instruction, s390_software_single_step)
12613 (is_non_branch_ril, s390_displaced_step_copy_insn)
12614 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12615 (s390_prologue_data, s390_addr, s390_store, s390_load)
12616 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12617 (s390_register_call_saved, s390_guess_tracepoint_registers)
12618 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12619 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12620 (s390_pseudo_register_name, s390_pseudo_register_type)
12621 (s390_pseudo_register_read, s390_pseudo_register_write)
12622 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12623 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12624 (s390_addr_bits_remove, s390_address_class_type_flags)
12625 (s390_address_class_type_flags_to_name)
12626 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12627 (s390_function_arg_float, s390_function_arg_vector)
12628 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12629 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12630 (s390_frame_align, s390_register_return_value, s390_return_value)
12631 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12632 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12633 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12634 (s390_trad_frame_prev_register, s390_unwind_cache)
12635 (s390_prologue_frame_unwind_cache)
12636 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12637 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12638 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12639 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12640 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12641 (s390_frame_base_address, s390_local_base_address)
12642 (s390_frame_base, s390_gcc_target_options)
12643 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12644 (s390_validate_reg_range, s390_tdesc_valid)
12645 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12646 * s390-tdep.c: ...this. New file.
12647
12648 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12649
12650 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12651 (s390_process_record, s390_gdbarch_tdep_alloc)
12652 (s390_linux_init_abi_any): Use/set new hook.
12653
12654 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12655
12656 * s390-linux-tdep.c (osabi.h): New include.
12657 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12658 (s390_linux_init_abi_any): New functions.
12659 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12660
12661 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12662
12663 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12664 tdesc_has_registers check
12665
12666 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12667
12668 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12669 (s390_validate_reg_range): New macro.
12670 (s390_gdbarch_init): Adjust.
12671
12672 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12673
12674 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12675 (s390_gdbarch_tdep_alloc): Adjust.
12676 (s390_gdbarch_init): Adjust.
12677
12678 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12679
12680 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12681 <have_tdb>: Change type to bool.
12682 (s390_gdbarch_tdep_alloc): Adjust.
12683 (s390_gdbarch_init): Adjust.
12684
12685 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12686
12687 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12688 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12689 (s390_gdbarch_tdep_alloc): New function.
12690 (s390_gdbarch_init): Allocate tdep at start and use its fields
12691 instead of separate variables.
12692
12693 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12694
12695 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12696 when looking for cached gdbarch and add comment for remaining.
12697
12698 2018-01-22 Pedro Alves <palves@redhat.com>
12699 Sergio Durigan Junior <sergiodj@redhat.com>
12700
12701 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12702 case.
12703
12704 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12705
12706 * MAINTAINERS: Update my company e-mail address.
12707
12708 2018-01-22 Yao Qi <yao.qi@linaro.org>
12709
12710 * regcache.c (cooked_write_test): New function.
12711 (_initialize_regcache): Register the test.
12712
12713 2018-01-22 Yao Qi <yao.qi@linaro.org>
12714
12715 * ia64-tdep.c (ia64_pseudo_register_read): Call
12716 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12717 * m32c-tdep.c (m32c_cat_read): Likewise.
12718 (m32c_r3r2r1r0_read): Likewise.
12719 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12720 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12721
12722 2018-01-22 Yao Qi <yao.qi@linaro.org>
12723
12724 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12725 method raw_read instead of regcache_raw_read.
12726 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12727 * arm-tdep.c (arm_neon_quad_read): Likewise.
12728 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12729 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12730 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12731 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12732 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12733 (i386_pseudo_register_read_into_value): Likewise.
12734 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12735 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12736 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12737 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12738 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12739 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12740 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12741 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12742 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12743
12744 2018-01-22 Yao Qi <yao.qi@linaro.org>
12745
12746 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12747 * configure.tgt: Remove target mt.
12748 * mt-tdep.c: Remove.
12749 * regcache.c (cooked_read_test): Remove the check for mt.
12750
12751 2018-01-22 Yao Qi <yao.qi@linaro.org>
12752
12753 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12754 instead of gdbarch_pseudo_register_read_value.
12755
12756 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12757
12758 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12759 language is Ada.
12760
12761 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12762
12763 * linespec.c (create_sals_line_offset): Remove code that preserved
12764 the symtab_and_line's line number.
12765
12766 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12767
12768 * varobj.c (varobj_create): Don't set valid_block when creating a
12769 floating varobj.
12770
12771 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12772
12773 * varobj.c (varobj_create): Remove out of date comment.
12774
12775 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12776
12777 PR mi/20395
12778 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12779 updating innermost block.
12780 * parse.c (innermost_block_tracker::update): Take extra type
12781 parameter, and check types match before updating innermost block.
12782 (write_dollar_variable): Update innermost block for registers.
12783 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12784 (innermost_block_tracker::innermost_block_tracker): Initialise
12785 m_types member.
12786 (innermost_block_tracker::reset): Take type parameter.
12787 (innermost_block_tracker::update): Take type parameter, and pass
12788 type through as needed.
12789 (innermost_block_tracker::m_types): New member.
12790 * varobj.c (varobj_create): Pass type when reseting innermost
12791 block.
12792
12793 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12794
12795 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12796 * ada-lang.c (resolve_subexp): Likewise.
12797 * breakpoint.c (set_breakpoint_condition) Likewise.
12798 (watch_command_1) Likewise.
12799 * c-exp.y (variable): Likewise.
12800 * d-exp.y (PrimaryExpression): Likewise.
12801 * f-exp.y (variable): Likewise.
12802 * go-exp.y (variable): Likewise.
12803 * m2-exp.y (variable): Likewise.
12804 * objfiles.c (objfile::~objfile): Likewise.
12805 * p-exp.y (variable): Likewise.
12806 * parse.c (innermost_block): Change type.
12807 * parser-defs.h (class innermost_block_tracker): New.
12808 (innermost_block): Change to innermost_block_tracker.
12809 * printcmd.c (display_command): Switch to innermost_block API.
12810 (do_one_display): Likewise.
12811 * rust-exp.y (do_one_display): Likewise.
12812 * symfile.c (clear_symtab_users): Likewise.
12813 * varobj.c (varobj_create): Switch to innermost_block API, replace
12814 use of innermost_block with block stored on varobj object.
12815
12816 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12817
12818 * expression.h (innermost_block): Remove declaration.
12819 * varobj.c: Add 'parser-defs.h' include.
12820
12821 2018-01-19 Tom Tromey <tom@tromey.com>
12822
12823 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12824 symbols in the static and global blocks.
12825
12826 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12827
12828 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12829 gdb_ptrace.h, and move including gdb_wait.h ...
12830 * nat/linux-ptrace.h: ... to here.
12831
12832 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12833
12834 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12835 inf_ptrace_detach_success.
12836 (inf_ptrace_detach_success): Add inferior parameter, use it
12837 instead of inferior_ptid, pass it to detach_inferior.
12838 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12839 parameter.
12840 * inferior.c (detach_inferior): Add overload that takes an
12841 inferior object.
12842 * inferior.h (detach_inferior): Likewise.
12843 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12844 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12845 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12846
12847 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12848
12849 * target.h (struct target_ops) <to_detach>: Add inferior
12850 parameter.
12851 (target_detach): Likewise.
12852 * target.c (dispose_inferior): Pass inferior down.
12853 (target_detach): Pass inferior down. Assert that it is equal to
12854 the current inferior.
12855 * aix-thread.c (aix_thread_detach): Pass inferior down.
12856 * corefile.c (core_file_command): Pass current_inferior() down.
12857 * corelow.c (core_detach): Add inferior parameter.
12858 * darwin-nat.c (darwin_detach): Likewise.
12859 * gnu-nat.c (gnu_detach): Likewise.
12860 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12861 * infcmd.c (detach_command): Pass current_inferior() down to
12862 target_detach.
12863 * infrun.c (follow_fork_inferior): Pass parent_inf to
12864 target_detach.
12865 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12866 target_detach.
12867 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12868 * linux-thread-db.c (thread_db_detach): Likewise.
12869 * nto-procfs.c (procfs_detach): Likewise.
12870 * procfs.c (procfs_detach): Likewise.
12871 * record.c (record_detach): Likewise.
12872 * record.h (struct inferior): Forward-declare.
12873 (record_detach): Add inferior parameter.
12874 * remote-sim.c (gdbsim_detach): Likewise.
12875 * remote.c (remote_detach_1): Likewise.
12876 (remote_detach): Likewise.
12877 (extended_remote_detach): Likewise.
12878 * sol-thread.c (sol_thread_detach): Likewise.
12879 * target-debug.h (target_debug_print_inferior_p): New macro.
12880 * target-delegates.c: Re-generate.
12881 * top.c (kill_or_detach): Pass inferior down to target_detach.
12882 * windows-nat.c (windows_detach): Add inferior parameter.
12883
12884 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12885
12886 * target.h (struct target_ops) <to_detach>: Remove args
12887 parameter.
12888 (target_detach): Likewise.
12889 * target.c (dispose_inferior): Adjust.
12890 (target_detach): Remove args parameter, adjust.
12891 * aix-thread.c (aix_thread_detach): Adjust.
12892 * corefile.c (core_file_command): Adjust.
12893 * corelow.c (core_detach): Adjust.
12894 * darwin-nat.c (darwin_detach): Adjust.
12895 * gnu-nat.c (gnu_detach): Adjust.
12896 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12897 * infcmd.c (detach_command): Adjust
12898 * infrun.c (follow_fork_inferior): Adjust.
12899 (handle_vfork_child_exec_or_exit): Adjust.
12900 * linux-fork.c (linux_fork_detach): Remove args parameter.
12901 * linux-fork.h (linux_fork_detach): Likewise.
12902 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12903 * linux-thread-db.c (thread_db_detach): Likewise.
12904 * nto-procfs.c (procfs_detach): Likewise.
12905 * procfs.c (procfs_detach): Likewise.
12906 (do_detach): Remove signo parameter.
12907 * record.c (record_detach): Remove args parameter.
12908 * record.h (record_detach): Likewise.
12909 * remote-sim.c (gdbsim_detach): Likewise.
12910 * remote.c (remote_detach_1): Likewise.
12911 (remote_detach): Likewise.
12912 (extended_remote_detach): Likewise.
12913 * sol-thread.c (sol_thread_detach): Likewise.
12914 * target-delegates.c: Re-generate.
12915 * top.c (struct qt_args) <args>: Remove field.
12916 (kill_or_detach): Don't pass args.
12917 (quit_force): Don't set args.
12918 * windows-nat.c (windows_detach): Remove args parameter.
12919
12920 2018-01-19 Yao Qi <yao.qi@linaro.org>
12921
12922 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12923 (arm_linux_init_abi): Install it.
12924
12925 2018-01-19 Yao Qi <yao.qi@linaro.org>
12926
12927 * osabi.c (gdb_osabi_names): Extend the regexp for
12928 arm-linux-gnueabihf.
12929
12930 2018-01-18 Yao Qi <yao.qi@linaro.org>
12931
12932 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12933 m_abbrevs.
12934 (abbrev_table::add_abbrev): Update.
12935 (abbrev_table::lookup_abbrev): Update.
12936
12937 2018-01-18 Yao Qi <yao.qi@linaro.org>
12938
12939 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12940
12941 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12942
12943 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12944 to "std::string".
12945
12946 2018-01-17 Tom Tromey <tom@tromey.com>
12947
12948 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12949
12950 2018-01-17 Tom Tromey <tom@tromey.com>
12951
12952 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12953 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12954 (create_array_type_with_stride): Update.
12955 * dwarf2read.c (set_die_type): Update.
12956
12957 2018-01-17 Tom Tromey <tom@tromey.com>
12958
12959 * dwarf2read.c (delayed_method_info): Remove typedef.
12960 (dwarf2_cu::method_info): Now a std::vector.
12961 (add_to_method_list): Update.
12962 (free_delayed_list): Remove.
12963 (compute_delayed_physnames): Update.
12964 (process_full_comp_unit, process_full_type_unit): Clear the method
12965 list. Remove cleanups.
12966 (psymtab_include_file_name): Add name_holder parameter. Use
12967 unique_xmalloc_ptr.
12968 (dwarf_decode_lines): Update.
12969
12970 2018-01-17 Tom Tromey <tom@tromey.com>
12971 Simon Marchi <simon.marchi@ericsson.com>
12972
12973 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12974 (dwarf2_per_objfile::free_cached_comp_units)
12975 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12976 (init_cutu_and_read_dies_no_follow): Update.
12977 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12978 (dwarf2_cu::~dwarf2_cu): New.
12979 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12980 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12981
12982 2018-01-17 Tom Tromey <tom@tromey.com>
12983 Simon Marchi <simon.marchi@ericsson.com>
12984
12985 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12986 (struct die_reader_specs) <abbrev_table>: New member.
12987 (struct abbrev_table): Add constructor.
12988 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12989 <abbrev_obstack>: Now an auto_obstack.
12990 (abbrev_table_up): New typedef.
12991 (init_cu_die_reader): Add abbrev_table parameter.
12992 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12993 Add result_dwo_abbrev_table.
12994 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12995 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12996 Update.
12997 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12998 parameter.
12999 (skip_children): Update.
13000 (abbrev_table::alloc_abbrev): Rename from
13001 abbrev_table_alloc_abbrev.
13002 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13003 (abbrev_table::lookup_abbrev): Rename from
13004 abbrev_table_lookup_abbrev.
13005 (abbrev_table_read_table): Return abbrev_table_up.
13006 (abbrev_table_free, abbrev_table_free_cleanup)
13007 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13008 (load_partial_dies): Update.
13009
13010 2018-01-17 Tom Tromey <tom@tromey.com>
13011
13012 * dwarf2read.c (dwarf2_compute_name): Update comment.
13013 (read_func_scope, read_variable): Update.
13014 (new_symbol): Remove.
13015 (new_symbol_full): Rename to new_symbol.
13016
13017 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13018
13019 PR gdb/16577
13020 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13021 a warning instead of throwing an error, set section size to 0 and return
13022 NULL.
13023 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13024
13025 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13026
13027 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13028 std::string.
13029 (linux_ptrace_attach_fail_reason_string): Likewise.
13030 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13031 Likewise.
13032 (linux_ptrace_attach_fail_reason_string): Likewise.
13033 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13034
13035 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13036
13037 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13038
13039 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13040
13041 PR gdb/21559
13042 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13043 checking for fs_base/gs_base fields in struct user_regs_struct.
13044 * configure: Regenerate.
13045
13046 2018-01-17 Yao Qi <yao.qi@linaro.org>
13047
13048 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13049 function.
13050 (aarch64_linux_init_abi): Install it to gdbarch hook
13051 gcc_target_options.
13052
13053 2018-01-15 Pedro Alves <palves@redhat.com>
13054
13055 * common/signals-state-save-restore.c
13056 (save_original_signals_state): Fix typos.
13057
13058 2017-01-12 Tom Tromey <tom@tromey.com>
13059 Sergio Durigan Junior <sergiodj@redhat.com>
13060
13061 * Makefile.in (install-only): Install gdb-add-index.
13062
13063 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13064
13065 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13066
13067 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13068
13069 * infrun.c (keep_going_pass_signal): Clear step-over info when
13070 insert_breakpoints fails.
13071
13072 2018-01-11 Pedro Alves <palves@redhat.com>
13073
13074 PR gdb/22583
13075 * infrun.c (resume): Rename to ...
13076 (resume_1): ... this.
13077 (resume): Reimplement as wrapper around resume_1.
13078
13079 2018-01-11 Pedro Alves <palves@redhat.com>
13080
13081 PR remote/22597
13082 * remote.c (remote_parse_stop_reply): Default to the last-set
13083 general thread instead of to 'magic_null_ptid'.
13084
13085 2018-01-10 Pedro Alves <palves@redhat.com>
13086
13087 * language.h (language_get_symbol_name_matcher): Rename ...
13088 (get_symbol_name_matcher): ... this.
13089 * language.c (language_get_symbol_name_matcher): Ditto.
13090 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13091 callers adjusted.
13092
13093 2018-01-10 Pedro Alves <palves@redhat.com>
13094
13095 PR gdb/22670
13096 * dwarf2read.c
13097 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13098 Adjust to use language_get_symbol_name_matcher instead of
13099 language_defn::la_get_symbol_name_matcher.
13100 * language.c (language_get_symbol_name_matcher): If in Ada mode
13101 and the lookup name is a verbatim match, return Ada's matcher.
13102 * language.h (language_get_symbol_name_matcher): Adjust comment.
13103 (ada_lookup_name_info::verbatim_p):: New method.
13104
13105 2018-01-10 Pedro Alves <palves@redhat.com>
13106
13107 PR gdb/22670
13108 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13109 minsym's language is language_auto or language_cplus, pass down
13110 language_ada instead.
13111 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13112
13113 2018-01-10 Pedro Alves <palves@redhat.com>
13114
13115 PR gdb/22670
13116 * minsyms.c (linkage_name_str): New function.
13117 (iterate_over_minimal_symbols): Use it.
13118
13119 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13120
13121 * NEWS: Document that 'info proc' now works on FreeBSD.
13122
13123 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13124
13125 * configure.ac: Check for kinfo_getfile in libutil.
13126 * configure: Regenerate.
13127 * config.in: Regenerate.
13128 * fbsd-nat.c: Include "fbsd-tdep.h".
13129 (fbsd_fetch_cmdline): New.
13130 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13131 rather than calling error.
13132 (fbsd_info_proc): New.
13133 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13134 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13135 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13136
13137 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13138
13139 * fbsd-nat.c (struct free_deleter): Remove.
13140 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13141
13142 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13143
13144 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13145 NULL for an empty pathname.
13146
13147 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13148
13149 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13150 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13151 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13152 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13153 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13154 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13155 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13156 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13157 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13158 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13159 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13160 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13161 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13162 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13163 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13164
13165 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13166
13167 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13168 (gnu_xfer_auxv): New function.
13169 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13170 TARGET_OBJECT_AUXV.
13171
13172 2018-01-08 Yao Qi <yao.qi@linaro.org>
13173 Simon Marchi <simon.marchi@ericsson.com>
13174
13175 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13176 common/selftest.c.
13177 (COMMON_OBS): Remove selftest.o.
13178 * configure.ac: Append selftest-arch.c and common/selftest.c to
13179 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13180 * configure: Re-generated.
13181 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13182 GDB_SELF_TEST.
13183 (maintenance_info_selftests): Likewise.
13184
13185 2018-01-08 Xavier Roirand <roirand@adacore.com>
13186
13187 * ada-valprint.c (val_print_packed_array_elements): Use
13188 proper number of elements when printing an array indexed
13189 by an enumeration type.
13190
13191 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13192
13193 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13194 (dw2_get_file_names_reader): Adjust.
13195 (lookup_dwo_signatured_type): Adjust.
13196 (lookup_dwp_signatured_type): Adjust.
13197 (lookup_signatured_type): Adjust.
13198 (create_type_unit_group): Adjust.
13199 (get_type_unit_group): Adjust.
13200 (process_psymtab_comp_unit_reader): Adjust.
13201 (build_type_psymtabs_reader): Adjust.
13202 (scan_partial_symbols): Adjust.
13203 (add_partial_symbol): Adjust.
13204 (add_partial_subprogram): Adjust.
13205 (peek_die_abbrev): Adjust.
13206 (fixup_go_packaging): Adjust.
13207 (process_imported_unit_die): Adjust.
13208 (dwarf2_compute_name): Adjust.
13209 (dwarf2_physname): Adjust.
13210 (read_import_statement): Adjust.
13211 (handle_DW_AT_stmt_list): Adjust.
13212 (read_file_scope): Adjust.
13213 (read_func_scope): Adjust.
13214 (read_lexical_block_scope): Adjust.
13215 (read_call_site_scope): Adjust.
13216 (read_variable): Adjust.
13217 (dwarf2_rnglists_process): Adjust.
13218 (dwarf2_ranges_process): Adjust.
13219 (dwarf2_ranges_read): Adjust.
13220 (dwarf2_get_pc_bounds): Adjust.
13221 (dwarf2_record_block_ranges): Adjust.
13222 (dwarf2_add_field): Adjust.
13223 (dwarf2_add_member_fn): Adjust.
13224 (read_structure_type): Adjust.
13225 (process_structure_scope): Adjust.
13226 (read_enumeration_type): Adjust.
13227 (read_array_type): Adjust.
13228 (mark_common_block_symbol_computed): Adjust.
13229 (read_common_block): Adjust.
13230 (read_namespace_type): Adjust.
13231 (read_namespace): Adjust.
13232 (read_module_type): Adjust.
13233 (read_tag_pointer_type): Adjust.
13234 (read_tag_ptr_to_member_type): Adjust.
13235 (read_tag_string_type): Adjust.
13236 (read_subroutine_type): Adjust.
13237 (read_typedef): Adjust.
13238 (read_base_type): Adjust.
13239 (attr_to_dynamic_prop): Adjust.
13240 (read_subrange_type): Adjust.
13241 (read_unspecified_type): Adjust.
13242 (dwarf2_read_abbrevs): Adjust.
13243 (load_partial_dies): Adjust.
13244 (read_partial_die): Adjust.
13245 (find_partial_die): Adjust.
13246 (guess_partial_die_structure_name): Adjust.
13247 (fixup_partial_die): Adjust.
13248 (read_attribute_value): Adjust.
13249 (read_addr_index): Adjust.
13250 (read_addr_index_from_leb128): Adjust.
13251 (read_str_index): Adjust.
13252 (dwarf2_string_attr): Adjust.
13253 (get_debug_line_section): Adjust.
13254 (dwarf_decode_line_header): Adjust.
13255 (lnp_state_machine::check_line_address): Adjust.
13256 (dwarf_decode_lines_1): Adjust.
13257 (dwarf_decode_lines): Adjust.
13258 (dwarf2_start_symtab): Adjust.
13259 (var_decode_location): Adjust.
13260 (new_symbol_full): Adjust.
13261 (dwarf2_const_value_data): Adjust.
13262 (dwarf2_const_value_attr): Adjust.
13263 (dwarf2_const_value): Adjust.
13264 (die_type): Adjust.
13265 (die_containing_type): Adjust.
13266 (build_error_marker_type): Adjust.
13267 (lookup_die_type): Adjust.
13268 (guess_full_die_structure_name): Adjust.
13269 (anonymous_struct_prefix): Adjust.
13270 (determine_prefix): Adjust.
13271 (dwarf2_name): Adjust.
13272 (follow_die_ref_or_sig): Adjust.
13273 (follow_die_offset): Adjust.
13274 (follow_die_ref): Adjust.
13275 (follow_die_sig_1): Adjust.
13276 (follow_die_sig): Adjust.
13277 (get_signatured_type): Adjust.
13278 (get_DW_AT_signature_type): Adjust.
13279 (decode_locdesc): Adjust.
13280 (dwarf_decode_macros): Adjust.
13281 (cu_debug_loc_section): Adjust.
13282 (fill_in_loclist_baton): Adjust.
13283 (dwarf2_symbol_mark_computed): Adjust.
13284 (init_one_comp_unit): Don't assign
13285 dwarf2_cu::dwarf2_per_objfile.
13286 (set_die_type): Adjust.
13287
13288 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13289
13290 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13291 <dwarf2_per_objfile>: New field.
13292 (dwarf2_per_objfile): Remove global.
13293 (get_dwarf2_per_objfile): New function.
13294 (set_dwarf2_per_objfile): New function.
13295 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13296 dwarf2_per_objfile.
13297 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13298 (read_abbrev_offset): Likewise.
13299 (read_indirect_string): Likewise.
13300 (read_indirect_line_string): Likewise.
13301 (read_indirect_string_at_offset): Likewise.
13302 (read_indirect_string_from_dwz): Likewise.
13303 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13304 dwarf2_per_objfile.
13305 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13306 (create_all_comp_units): Change objfile parameter to
13307 dwarf2_per_objfile.
13308 (create_all_type_units): Likewise.
13309 (process_queue): Add dwarf2_per_objfile parameter.
13310 (read_and_check_comp_unit_head): Likewise.
13311 (lookup_dwo_unit_in_dwp): Likewise.
13312 (get_dwp_file): Likewise.
13313 (process_cu_includes): Likewise.
13314 (struct free_dwo_file_cleanup_data): New struct.
13315 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13316 set_dwarf2_per_objfile.
13317 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13318 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13319 context, adjust calls.
13320 (dw2_instantiate_symtab): Likewise.
13321 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13322 (dw2_get_cu): Likewise.
13323 (create_cu_from_index_list): Change objfile parameter to
13324 dwarf2_per_objfile.
13325 (create_cus_from_index_list): Get dwarf2_per_objfile from
13326 context, adjust calls.
13327 (create_cus_from_index): Likewise.
13328 (create_signatured_type_table_from_index): Change objfile
13329 parameter to dwarf2_per_objfile.
13330 (create_signatured_type_table_from_debug_names): Change objfile
13331 parameter to dwarf2_per_objfile.
13332 (create_addrmap_from_index): Likewise.
13333 (create_addrmap_from_aranges): Likewise.
13334 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13335 (dw2_setup): Remove.
13336 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13337 context.
13338 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13339 get_dwarf2_per_objfile.
13340 (dw2_forget_cached_source_info): Likewise.
13341 (dw2_map_symtabs_matching_filename): Likewise.
13342 (struct dw2_symtab_iterator) <index>: Remove.
13343 <dwarf2_per_objfile>: New field.
13344 (dw2_symtab_iter_init): Replace index parameter with
13345 dwarf2_per_objfile.
13346 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13347 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13348 (dw2_print_stats): Likewise.
13349 (dw2_dump): Likewise.
13350 (dw2_expand_symtabs_for_function): Likewise.
13351 (dw2_expand_all_symtabs): Likewise.
13352 (dw2_expand_symtabs_with_fullname): Likewise.
13353 (dw2_expand_marked_cus): Replace index and objfile parameters
13354 with dwarf2_per_objfile.
13355 (dw_expand_symtabs_matching_file_matcher): Add
13356 dwarf2_per_objfile parameter and adjust calls.
13357 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13358 adjust calls.
13359 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13360 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13361 adjust calls.
13362 (create_cus_from_debug_names_list): Replace objfile parameter
13363 with dwarf2_per_objfile and adjust calls.
13364 (create_cus_from_debug_names): Likewise.
13365 (dwarf2_read_debug_names): Likewise.
13366 (mapped_debug_names::namei_to_name): Adjust call.
13367 (dw2_debug_names_iterator::next): Likewise.
13368 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13369 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13370 (dw2_debug_names_dump): Likewise.
13371 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13372 (dw2_debug_names_expand_symtabs_matching): Likewise.
13373 (dwarf2_initialize_objfile): Likewise.
13374 (dwarf2_build_psymtabs): Likewise.
13375 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13376 this_cu.
13377 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13378 (read_and_check_comp_unit_head): Likewise.
13379 (read_abbrev_offset): Likewise.
13380 (create_debug_type_hash_table): Likewise.
13381 (create_debug_types_hash_table): Likewise.
13382 (create_all_type_units): Replace objfile parameter with
13383 dwarf2_per_objfile.
13384 (add_type_unit): Add dwarf2_per_objfile parameter.
13385 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13386 with dwarf2_per_objfile.
13387 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13388 (lookup_dwp_signatured_type): Likewise.
13389 (lookup_signatured_type): Likewise.
13390 (read_cutu_die_from_dwo): Likewise.
13391 (init_tu_and_read_dwo_dies): Likewise.
13392 (init_cutu_and_read_dies): Likewise.
13393 (init_cutu_and_read_dies_no_follow): Likewise.
13394 (allocate_type_unit_groups_table): Add objfile parameter.
13395 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13396 (get_type_unit_group): Likewise.
13397 (process_psymtab_comp_unit): Update call.
13398 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13399 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13400 (print_tu_stats): Likewise.
13401 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13402 in void* parameter.
13403 (build_type_psymtabs): Change objfile parameter to
13404 dwarf2_per_objfile.
13405 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13406 passed in void* parameter.
13407 (process_skeletonless_type_units): Change objfile parameter to
13408 dwarf2_per_objfile.
13409 (set_partial_user): Likewise.
13410 (dwarf2_build_psymtabs_hard): Likewise.
13411 (read_comp_units_from_section): Likewise.
13412 (create_all_comp_units): Likewise.
13413 (scan_partial_symbols): Update calls.
13414 (add_partial_symbol): Likewise.
13415 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13416 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13417 (process_queue): Add dwarf2_per_objfile parameter.
13418 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13419 (compute_compunit_symtab_includes): Likewise.
13420 (process_cu_includes): Add dwarf2_per_objfile parameter.
13421 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13422 (process_full_type_unit): Likewise.
13423 (process_imported_unit_die): Update call.
13424 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13425 (read_file_scope): Likewise.
13426 (allocate_dwo_file_hash_table): Add objfile parameter.
13427 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13428 (create_cus_hash_table): Likewise.
13429 (create_dwp_hash_table): Likewise.
13430 (create_dwo_unit_in_dwp_v1): Likewise.
13431 (create_dwp_v2_section): Likewise.
13432 (create_dwo_unit_in_dwp_v2): Likewise.
13433 (lookup_dwo_unit_in_dwp): Likewise.
13434 (try_open_dwop_file): Likewise.
13435 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13436 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13437 cleanup to include a reference to dwarf2_per_objfile.
13438 (open_dwp_file): Add dwarf2_per_objfile parameter.
13439 (open_and_init_dwp_file): Likewise.
13440 (get_dwp_file): Likewise.
13441 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13442 (queue_and_load_all_dwo_tus): Update call.
13443 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13444 data.
13445 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13446 (dwarf2_ranges_process): Likewise.
13447 (dwarf2_get_pc_bounds): Likewise.
13448 (mark_common_block_symbol_computed): Likewise.
13449 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13450 (dwarf2_read_abbrevs): Update call.
13451 (read_partial_die): Use dwarf2_per_objfile from cu.
13452 (find_partial_die): Likewise.
13453 (fixup_partial_die): Likewise.
13454 (read_attribute_value): Likewise.
13455 (read_indirect_string_at_offset_from): Add objfile parameter.
13456 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13457 parameter.
13458 (read_indirect_string_from_dwz): Add objfile parameter.
13459 (read_indirect_string): Add objfile parameter.
13460 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13461 (read_addr_index): Use dwarf2_per_objfile from cu.
13462 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13463 call dw2_setup.
13464 (read_str_index): Use dwarf2_per_objfile from cu.
13465 (get_debug_line_section): Likewise.
13466 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13467 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13468 (new_symbol_full): Use dwarf2_per_objfile from cu.
13469 (build_error_marker_type): Likewise.
13470 (lookup_die_type): Likewise.
13471 (determine_prefix): Likewise.
13472 (follow_die_offset): Likewise.
13473 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13474 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13475 (dwarf2_fetch_die_type_sect_off): Likewise.
13476 (dwarf2_get_die_type): Likewise.
13477 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13478 (get_signatured_type): Likewise.
13479 (get_DW_AT_signature_type): Likewise.
13480 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13481 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13482 (cu_debug_loc_section): Likewise.
13483 (fill_in_loclist_baton): Likewise.
13484 (dwarf2_symbol_mark_computed): Likewise.
13485 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13486 dwarf2_per_objfile.
13487 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13488 parameter.
13489 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13490 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13491 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13492 (set_die_type): Use dwarf2_free_objfile from cu.
13493 (get_die_type_at_offset): Likewise.
13494 (dwarf2_per_objfile_free): Don't assign global variable.
13495 (debug_names) <constructor>: Add dwarf2_per_objfile
13496 parameter, update m_debugstrlookup construction.
13497 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13498 parameter.
13499 <m_dwarf2_per_objfile>: New field.
13500 <lookup>: Use m_dwarf2_per_objfile.
13501 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13502 (psyms_seen_size): Likewise.
13503 (write_gdbindex): Replace objfile parameter with
13504 dwarf2_per_objfile.
13505 (write_debug_names): Likewise.
13506 (write_psymtabs_to_index): Likewise.
13507 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13508 calls.
13509
13510 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13511
13512 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13513 <dwarf2_per_objfile>: New field.
13514 (struct dwarf2_per_cu_data) <objfile>: Remove.
13515 <dwarf2_per_objfile>: New field.
13516 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13517 of objfile.
13518 (create_signatured_type_table_from_index): Likewise.
13519 (create_debug_type_hash_table): Likewise.
13520 (fill_in_sig_entry_from_dwo_entry): Likewise.
13521 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13522 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13523 objfile.
13524 (create_partial_symtab): Access objfile through
13525 dwarf2_per_objfile.
13526 (process_psymtab_comp_unit_reader): Likewise.
13527 (read_comp_units_from_section): Likewise.
13528 (scan_partial_symbols): Likewise.
13529 (add_partial_symbol): Likewise.
13530 (add_partial_subprogram): Likewise.
13531 (peek_die_abbrev): Likewise.
13532 (fixup_go_packaging): Likewise.
13533 (process_full_comp_unit): Likewise.
13534 (process_full_type_unit): Likewise.
13535 (process_imported_unit_die): Likewise.
13536 (dwarf2_compute_name): Likewise.
13537 (dwarf2_physname): Likewise.
13538 (read_import_statement): Likewise.
13539 (create_cus_hash_table): Assign dwarf2_physname instead of
13540 objfile.
13541 (read_func_scope): Access objfile through dwarf2_per_objfile.
13542 (read_lexical_block_scope): Likewise.
13543 (read_call_site_scope): Likewise.
13544 (read_variable): Likewise.
13545 (dwarf2_rnglists_process): Likewise.
13546 (dwarf2_ranges_process): Likewise.
13547 (dwarf2_ranges_read): Likewise.
13548 (dwarf2_record_block_ranges): Likewise.
13549 (dwarf2_add_field): Likewise.
13550 (dwarf2_add_member_fn): Likewise.
13551 (read_structure_type): Likewise.
13552 (process_structure_scope): Likewise.
13553 (read_enumeration_type): Likewise.
13554 (read_array_type): Likewise.
13555 (read_common_block): Likewise.
13556 (read_namespace_type): Likewise.
13557 (read_namespace): Likewise.
13558 (read_module_type): Likewise.
13559 (read_tag_pointer_type): Likewise.
13560 (read_tag_ptr_to_member_type): Likewise.
13561 (read_tag_string_type): Likewise.
13562 (read_subroutine_type): Likewise.
13563 (read_typedef): Likewise.
13564 (read_base_type): Likewise.
13565 (attr_to_dynamic_prop): Likewise.
13566 (read_subrange_type): Likewise.
13567 (read_unspecified_type): Likewise.
13568 (load_partial_dies): Likewise.
13569 (read_partial_die): Likewise.
13570 (find_partial_die): Likewise.
13571 (guess_partial_die_structure_name): Likewise.
13572 (fixup_partial_die): Likewise.
13573 (read_attribute_value): Likewise.
13574 (read_addr_index_from_leb128): Likewise.
13575 (dwarf2_read_addr_index): Likewise.
13576 (dwarf2_string_attr): Likewise.
13577 (lnp_state_machine::check_line_address): Likewise.
13578 (dwarf_decode_lines_1): Likewise.
13579 (dwarf_decode_lines): Likewise.
13580 (dwarf2_start_symtab): Likewise.
13581 (var_decode_location): Likewise.
13582 (new_symbol_full): Likewise.
13583 (dwarf2_const_value_data): Likewise.
13584 (dwarf2_const_value_attr): Likewise.
13585 (dwarf2_const_value): Likewise.
13586 (die_type): Likewise.
13587 (die_containing_type): Likewise.
13588 (lookup_die_type): Likewise.
13589 (guess_full_die_structure_name): Likewise.
13590 (anonymous_struct_prefix): Likewise.
13591 (dwarf2_name): Likewise.
13592 (follow_die_ref_or_sig): Likewise.
13593 (follow_die_offset): Likewise.
13594 (follow_die_ref): Likewise.
13595 (dwarf2_fetch_die_loc_sect_off): Likewise.
13596 (dwarf2_fetch_constant_bytes): Likewise.
13597 (dwarf2_fetch_die_type_sect_off): Likewise.
13598 (dwarf2_get_die_type): Likewise.
13599 (follow_die_sig): Likewise.
13600 (decode_locdesc): Likewise.
13601 (dwarf2_per_cu_objfile): Likewise.
13602 (dwarf2_per_cu_text_offset): Likewise.
13603 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13604 objfile.
13605 (set_die_type): Access objfile through
13606 dwarf2_per_objfile.
13607
13608 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13609
13610 * valprint.c (converted_character_d): Remove typedef.
13611 (DEF_VEC_O (converted_character_d)): Remove.
13612 (count_next_character): Use std::vector.
13613 (print_converted_chars_to_obstack): Likewise.
13614 (generic_printstr): Likewise.
13615
13616 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13617
13618 * xml-support.h (struct gdb_xml_value): Add constructor.
13619 <value>: Change type to unique_xmalloc_ptr.
13620 (gdb_xml_value_s): Remove typedef.
13621 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13622 (gdb_xml_element_start_handler): Change parameter type to
13623 std::vector.
13624 (xml_find_attribute): Likewise.
13625 * xml-support.c (xml_find_attribute): Change parameter type to
13626 std::vector and adjust.
13627 (gdb_xml_values_cleanup): Remove.
13628 (gdb_xml_parser::start_element): Adjust to std::vector.
13629 (xinclude_start_include): Change paraeter type to std::vector
13630 and adjust.
13631 * btrace.c (check_xml_btrace_version): Likewise.
13632 (parse_xml_btrace_block): Likewise.
13633 (parse_xml_btrace_pt_config_cpu): Likewise.
13634 (parse_xml_btrace_pt): Likewise.
13635 (parse_xml_btrace_conf_bts): Likewise.
13636 (parse_xml_btrace_conf_pt): Likewise.
13637 * memory-map.c (memory_map_start_memory): Likewise.
13638 (memory_map_start_property): Likewise.
13639 * osdata.c (osdata_start_osdata): Likewise.
13640 (osdata_start_item): Likewise.
13641 (osdata_start_column): Likewise.
13642 * remote.c (start_thread): Likewise.
13643 * solib-aix.c (library_list_start_library): Likewise.
13644 (library_list_start_list): Likewise.
13645 * solib-svr4.c (library_list_start_library): Likewise.
13646 (svr4_library_list_start_list): Likewise.
13647 * solib-target.c (library_list_start_segment): Likewise.
13648 (library_list_start_section): Likewise.
13649 (library_list_start_library): Likewise.
13650 (library_list_start_list): Likewise.
13651 * tracepoint.c (traceframe_info_start_memory): Likewise.
13652 (traceframe_info_start_tvar): Likewise.
13653 * xml-syscall.c (syscall_start_syscall): Likewise.
13654 * xml-tdesc.c (tdesc_start_target): Likewise.
13655 (tdesc_start_feature): Likewise.
13656 (tdesc_start_reg): Likewise.
13657 (tdesc_start_union): Likewise.
13658 (tdesc_start_struct): Likewise.
13659 (tdesc_start_flags): Likewise.
13660 (tdesc_start_enum): Likewise.
13661 (tdesc_start_field): Likewise.
13662 (tdesc_start_enum_value): Likewise.
13663 (tdesc_start_vector): Likewise.
13664
13665 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13666
13667 * extension.h (struct xmethod_worker) <clone>: Remove.
13668 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13669 Remove.
13670 (python_xmethod_worker::clone): Remove.
13671 * valops.c (find_overload_match): Use std::move instead of
13672 clone.
13673
13674 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13675
13676 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13677 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13678 <free_xmethod_worker_data>: Remove.
13679 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13680 <get_xmethod_arg_types>: Remove.
13681 <get_xmethod_result_type>: Remove.
13682 <invoke_xmethod>: Remove.
13683 * extension.c (new_xmethod_worker): Remove.
13684 (clone_xmethod_worker): Remove.
13685 (get_matching_xmethod_workers): Return void, pass std::vector by
13686 pointer.
13687 (get_xmethod_arg_types): Rename to...
13688 (xmethod_worker::get_arg_types): ... this, and adjust.
13689 (get_xmethod_result_type): Rename to...
13690 (xmethod_worker::get_result_type): ... this, and adjust.
13691 (invoke_xmethod): Remove.
13692 (free_xmethod_worker): Remove.
13693 (free_xmethod_worker_vec): Remove.
13694 * extension.h (enum ext_lang_rc): Move here from
13695 extension-priv.h.
13696 (struct xmethod_worker): Add constructor and destructor.
13697 <data>: Remove.
13698 <value>: Remove.
13699 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13700 virtual pure methods.
13701 <get_arg_types, get_result_type>: New methods.
13702 (xmethod_worker_ptr): Remove typedef.
13703 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13704 (xmethod_worker_vec): Remove typedef.
13705 (xmethod_worker_up): New typedef.
13706 (invoke_xmethod): Remove.
13707 (clone_xmethod_worker): Remove.
13708 (free_xmethod_worker): Remove.
13709 (free_xmethod_worker_vec): Remove.
13710 (get_xmethod_arg_types): Remove.
13711 (get_xmethod_result_type): Remove.
13712 * valops.c (find_method_list): Use std::vector, don't use
13713 intermediate vector.
13714 (value_find_oload_method_list): Use std::vector.
13715 (find_overload_match): Use std::vector.
13716 (find_oload_champ): Use std::vector.
13717 * value.c (value_free): Use operator delete.
13718 (value_of_xmethod): Rename to...
13719 (value_from_xmethod): ... this. Don't assign
13720 xmethod_worker::value, take rvalue-reference.
13721 (result_type_of_xmethod): Adjust.
13722 (call_xmethod): Adjust.
13723 * value.h: Include extension.h.
13724 (struct xmethod_worker): Don't forward-declare.
13725 (value_of_xmethod): Rename to...
13726 (value_from_xmethod): ... this, take rvalue-reference.
13727 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13728 (struct python_xmethod_worker): ... this, add constructor and
13729 destructor.
13730 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13731 (gdbpy_free_xmethod_worker_data): Rename to...
13732 (python_xmethod_worker::~python_xmethod_worker): ... this and
13733 adjust.
13734 (gdbpy_clone_xmethod_worker_data): Rename to...
13735 (python_xmethod_worker::clone): ... this and adjust.
13736 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13737 temporary vector.
13738 (gdbpy_get_xmethod_arg_types): Rename to...
13739 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13740 (gdbpy_get_xmethod_result_type): Rename to...
13741 (python_xmethod_worker::do_get_result_type): ... this and
13742 adjust.
13743 (gdbpy_invoke_xmethod): Rename to...
13744 (python_xmethod_worker::invoke): ... this and adjust.
13745 (new_python_xmethod_worker): Rename to...
13746 (python_xmethod_worker::python_xmethod_worker): ... this and
13747 adjust.
13748 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13749 Remove.
13750 (gdbpy_free_xmethod_worker_data): Remove.
13751 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13752 (gdbpy_get_xmethod_arg_types): Remove.
13753 (gdbpy_get_xmethod_result_type): Remove.
13754 (gdbpy_invoke_xmethod): Remove.
13755 * python/python.c (python_extension_ops): Remove obsolete
13756 callbacks.
13757
13758 2018-01-05 Pedro Alves <palves@redhat.com>
13759
13760 PR gdb/18653
13761 * common/signals-state-save-restore.c
13762 (save_original_signals_state): New parameter 'quiet'. Warn if we
13763 find a custom handler preinstalled, instead of internal erroring.
13764 But only warn if !quiet.
13765 * common/signals-state-save-restore.h
13766 (save_original_signals_state): New parameter 'quiet'.
13767 * main.c (captured_main_1): Move save_original_signals_state call
13768 after option handling, and pass QUIET.
13769
13770 2018-01-05 Pedro Alves <palves@redhat.com>
13771
13772 * spu-tdep.c (spu_catch_start): Pass
13773 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13774
13775 2018-01-05 Pedro Alves <palves@redhat.com>
13776
13777 PR gdb/22670
13778 * ada-lang.c (literal_symbol_name_matcher): New function.
13779 (ada_get_symbol_name_matcher): Use it for
13780 symbol_name_match_type::SEARCH_NAME.
13781 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13782 it down instead of assuming symbol_name_match_type::FULL.
13783 * block.h (block_lookup_symbol): New parameter 'match_type'.
13784 * c-valprint.c (print_unpacked_pointer): Use
13785 lookup_symbol_search_name instead of lookup_symbol.
13786 * compile/compile-object-load.c (get_out_value_type): Pass down
13787 symbol_name_match_type::SEARCH_NAME.
13788 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13789 symbol_name_match_type::FULL.
13790 * cp-support.c (cp_get_symbol_name_matcher): Handle
13791 symbol_name_match_type::SEARCH_NAME.
13792 * infrun.c (insert_exception_resume_breakpoint): Use
13793 lookup_symbol_search_name.
13794 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13795 * psymtab.c (maintenance_check_psymtabs): Use
13796 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13797 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13798 SYMBOL_SEARCH_NAME.
13799 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13800 if symbol_name_match_type::SEARCH_NAME.
13801 (lookup_symbol_in_language): Pass down
13802 symbol_name_match_type::FULL.
13803 (lookup_symbol_search_name): New.
13804 (lookup_language_this): Pass down
13805 symbol_name_match_type::SEARCH_NAME.
13806 (lookup_symbol_aux, lookup_local_symbol): New parameter
13807 'match_type'. Pass it down.
13808 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13809 (lookup_symbol_search_name): New declaration.
13810 (lookup_symbol_in_block): New 'match_type' parameter.
13811
13812 2018-01-05 Pedro Alves <palves@redhat.com>
13813
13814 PR gdb/22670
13815 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13816 ada_lookup_symbol.
13817 (ada_lookup_symbol): Reimplement in terms of
13818 ada_lookup_symbol_list, bits factored out from
13819 ada_lookup_encoded_symbol.
13820
13821 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13822
13823 * ada-exp.y (write_object_renaming): When subscripting an array
13824 using a symbol as the index, pass the block in call to
13825 ada_lookup_encoded_symbol when looking that symbol up.
13826
13827 2018-01-05 Jerome Guitton <guitton@adacore.com>
13828
13829 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13830 TYPE_INDEX_TYPE.
13831
13832 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13833
13834 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13835 the case where VALUE_LVAL (val0) is not lval_memory.
13836
13837 2018-01-05 Xavier Roirand <roirand@adacore.com>
13838
13839 * ada-valprint.c (print_optional_low_bound): Handle
13840 character-indexed array printing like boolean-indexed array
13841 printing.
13842
13843 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13844
13845 * NEWS: Create a new section for the next release branch.
13846 Rename the section of the current branch, now that it has
13847 been cut.
13848
13849 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13850
13851 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13852 * version.in: Bump version to 8.1.50.DATE-git.
13853
13854 2018-01-03 Xavier Roirand <roirand@adacore.com>
13855
13856 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13857 Add field.
13858 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13859 Add field.
13860 (default_exception_support_info) <catch_handlers_sym>: Add field.
13861 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13862 (ada_exception_name_addr_1): Add "catch handlers" handling.
13863 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13864 Update all callers.
13865 (create_excep_cond_exprs) <ex>: Add parameter.
13866 (re_set_exception): Update create_excep_cond_exprs call.
13867 (print_it_exception, print_one_exception, print_mention_exception)
13868 (print_recreate_exception): Add "catch handler" handling.
13869 (allocate_location_catch_handlers, re_set_catch_handlers)
13870 (check_status_catch_handlers, print_it_catch_handlers)
13871 (print_one_catch_handlers, print_mention_catch_handlers)
13872 (print_recreate_catch_handlers): New function.
13873 (catch_handlers_breakpoint_ops): New variable.
13874 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13875 Add parameter. Add "catch handler" handling.
13876 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13877 Add "catch handler" handling.
13878 (ada_exception_catchpoint_cond_string): Add "catch handler"
13879 handling.
13880 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13881 call.
13882 (catch_ada_handlers_command): New function.
13883 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13884 operations structure.
13885 (_initialize_ada_language): Add "catch handlers" command entry.
13886 * NEWS: Document "catch handlers" feature.
13887
13888 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13889
13890 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13891 account when creating the array type of the slice.
13892 (ada_value_slice): Likewise.
13893
13894 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13895
13896 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13897 New enum value.
13898 (create_array_type_with_stride): Add byte_stride_prop parameter.
13899 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13900 New parameter. Update all callers in this file.
13901 (array_type_has_dynamic_stride): New function.
13902 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13903 of arrays with dynamic byte strides.
13904 * dwarf2read.c (read_array_type): Add support for dynamic
13905 DW_AT_byte_stride attributes.
13906
13907 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13908
13909 * dwarf2read.c (read_unspecified_type): Treat
13910 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13911
13912 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13913
13914 Update copyright year range in all GDB files.
13915
13916 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13917
13918 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13919 and gdb/testsuite/gdb.base/step-line.c.
13920
13921 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13922
13923 * copyright.py (main): Dump the contents of
13924 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13925 even if BY_HAND is empty.
13926
13927 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13928
13929 * top.c (print_gdb_version): Update Copyright year in version
13930 message.
13931
13932 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13933
13934 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13935
13936 For older changes see ChangeLog-2017.
13937 \f
13938 Local Variables:
13939 mode: change-log
13940 left-margin: 8
13941 fill-column: 74
13942 version-control: never
13943 coding: utf-8
13944 End: