Provide pid_to_exec_file on Solaris (PR tdep/17903)
[binutils-gdb.git] / gdb / ChangeLog
1 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 PR tdep/17903
4 * procfs.c (procfs_target): Declare pid_to_exec_file.
5 (procfs_target::pid_to_exec_file): New.
6
7 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8
9 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
10 renaming.
11 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
12 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
13
14 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15
16 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
17 (supply_fpregset, fill_fpregset): Move ...
18 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
19 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
20 Remove references to ioctl-based procfs.
21 Include <sys/reg.h>.
22 Remove PR_MODEL_NATIVE guards.
23 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
24 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
25
26 2018-09-19 Xavier Roirand <roirand@adacore.com>
27
28 PR gdb/20981:
29 * solib-darwin.c (darwin_get_dyld_bfd): New function.
30 (darwin_solib_get_all_image_info_addr_at_init): Update call.
31 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
32
33 2018-09-19 John Baldwin <jhb@FreeBSD.org>
34
35 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
36 (fbsd_print_sockaddr_in6): Likewise.
37
38 2018-09-19 Richard Bunt <richard.bunt@arm.com>
39 Chris January <chris.january@arm.com>
40
41 * eval.c (skip_undetermined_arglist): Skip argument list helper.
42 (evaluate_subexp_standard): Return a dummy type when
43 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
44 OP_F77_UNDETERMINED_ARGLIST case.
45 * expression.h (enum noside): Update comment.
46
47 2018-09-19 George Vasick <george.vasick@oracle.com>
48
49 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
50
51 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
52 April Chin <april.chin@oracle.com>
53 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
54
55 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
56 uint_t lwpid_t.
57 (create_procinfo): Print pids in /proc without leading zeros.
58
59 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
60
61 * nios2-tdep.c (nios2_gcc_target_options): New.
62 (nios2_gdb_arch_init): Install new hook.
63
64 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
65
66 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
67 New file.
68 * update-gnulib.sh: Apply patch.
69 * configure: Re-generate.
70
71 2018-09-18 John Baldwin <jhb@FreeBSD.org>
72
73 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
74 description. Make "info proc" command descriptions more
75 consistent.
76
77 2018-09-18 John Baldwin <jhb@FreeBSD.org>
78
79 * NEWS: Mention 'info proc files' command.
80
81 2018-09-18 John Baldwin <jhb@FreeBSD.org>
82
83 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
84 descriptors for IP_FILES and IP_ALL.
85
86 2018-09-18 John Baldwin <jhb@FreeBSD.org>
87
88 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
89 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
90 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
91 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
92 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
93 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
94 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
95 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
96 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
97 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
98 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
99 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
100 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
101 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
102 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
103 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
104 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
105 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
106 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
107 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
108 (struct fbsd_sockaddr_un): New types.
109 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
110 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
111 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
112 (fbsd_core_info_proc_files): New functions.
113 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
114 IP_ALL.
115 * fbsd-tdep.h (fbsd_info_proc_files_header)
116 (fbsd_info_proc_files_entry): New.
117
118 2018-09-18 John Baldwin <jhb@FreeBSD.org>
119
120 * defs.h (enum info_proc_what) [IP_FILES]: New value.
121 * infcmd.c (info_proc_cmd_files): New function.
122 (_initialize_infcmd): Register 'info proc files' command.
123
124 2018-09-18 John Baldwin <jhb@FreeBSD.org>
125
126 * gnulib/aclocal-m4-deps.mk: Re-generate.
127 * gnulib/aclocal.m4: Re-generate.
128 * gnulib/config.in: Re-generate.
129 * gnulib/configure: Re-generate.
130 * gnulib/import/Makefile.am: Re-generate.
131 * gnulib/import/Makefile.in: Re-generate.
132 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
133 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
134 * gnulib/import/arpa_inet.in.h: New file.
135 * gnulib/import/inet_ntop.c: New file.
136 * gnulib/import/m4/arpa_inet_h.m4: New file.
137 * gnulib/import/m4/inet_ntop.m4: New file.
138 * gnulib/import/m4/netinet_in_h.m4: New file.
139 * gnulib/import/m4/socklen.m4: New file.
140 * gnulib/import/m4/sockpfaf.m4: New file.
141 * gnulib/import/m4/stdalign.m4: New file.
142 * gnulib/import/m4/sys_uio_h.m4: New file.
143 * gnulib/import/netinet_in.in.h: New file.
144 * gnulib/import/stdalign.in.h: New file.
145 * gnulib/import/sys_socket.c: New file.
146 * gnulib/import/sys_socket.in.h: New file.
147 * gnulib/import/sys_uio.in.h: New file.
148 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
149 module.
150
151 2018-09-18 John Baldwin <jhb@FreeBSD.org>
152
153 * gnulib/aclocal-m4-deps.mk: New file.
154 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
155 deterministically.
156
157 2018-09-18 John Baldwin <jhb@FreeBSD.org>
158
159 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
160 KVE_PATH.
161
162 2018-09-18 Tom Tromey <tom@tromey.com>
163
164 * compile/compile-object-load.c (struct
165 link_hash_table_cleanup_data): Add constructor and destructor.
166 Use DISABLE_COPY_AND_ASSIGN.
167 (~link_hash_table_cleanup_data): Rename from
168 link_hash_table_free. Now a destructor.
169 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
170
171 2018-09-18 Tom Tromey <tom@tromey.com>
172
173 * compile/compile-object-run.c (do_module_cleanup): Use delete.
174 * compile/compile-object-load.c (struct munmap_list): Move to
175 header file.
176 (munmap_list::add): Rename from munmap_list_add; rewrite.
177 (munmap_list::~munmap_list): Rename from munmap_list_free.
178 (munmap_listp_free_cleanup): Remove.
179 (compile_object_load): Update.
180 * compile/compile-object-load.h (struct munmap_list): Move from
181 compile-object-load.c. Rewrite.
182
183 2018-09-18 Alan Hayward <alan.hayward@arm.com>
184
185 * aarch64-tdep.c (pass_in_v): Use register size.
186 (aarch64_extract_return_value): Likewise.
187 (aarch64_store_return_value): Likewise.
188
189 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
190
191 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
192 rlim_t.
193
194 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
195
196 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
197 Fix short help line.
198
199 2018-09-17 Tom Tromey <tom@tromey.com>
200
201 PR python/20445:
202 * configure: Rebuild.
203 * configure.ac: Conditionally use -DNDEBUG for Python.
204
205 2018-09-17 Tom Tromey <tom@tromey.com>
206
207 * configure: Rebuild.
208 * configure.ac: Use gmp as a library dependency when checking for
209 mpfr.
210
211 2018-09-17 Pedro Alves <palves@redhat.com>
212
213 * python/py-inferior.c (find_inferior_object): Delete.
214
215 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
216
217 * compile/compile-cplus-types.c
218 (compile_cplus_instance::enter_scope): Don't use new_scope after
219 std::move.
220
221 2018-09-17 Tom Tromey <tom@tromey.com>
222
223 * common/pathstuff.c (get_standard_cache_dir): Use
224 ~/Library/Caches on macOS.
225 * common/pathstuff.h (get_standard_cache_dir): Update comment.
226
227 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
228
229 PR python/23669
230 * breakpoint.c (commands_cmd_element): New.
231 (_initialize_breakpoint): Assign commands_cmd_element.
232 * breakpoint.h (commands_cmd_element): New.
233 * cli/cli-script.c (while_cmd_element, if_command,
234 define_cmd_element): New.
235 (command_name_equals): Remove.
236 (process_next_line): Compare commands by pointer, not by name.
237 (_initialize_cli_script): Assign the various cmd_list_element
238 variables.
239 * compile/compile.c (compile_cmd_element): New.
240 (_initialize_compile): Assign compile_cmd_element.
241 * compile/compile.h (compile_cmd_element): New.
242 * guile/guile.c (guile_cmd_element): New.
243 (install_gdb_commands): Assign guile_cmd_element.
244 * guile/guile.h (guile_cmd_element): New.
245 * python/python.c (python_cmd_element): New.
246 (_initialize_python): Assign python_cmd_element.
247 * python/python.h (python_cmd_element): New.
248 * tracepoint.c (while_stepping_cmd_element): New.
249 (_initialize_tracepoint): Assign while_stepping_cmd_element.
250 * tracepoint.h (while_stepping_cmd_element): New.
251
252 2018-09-17 Tom Tromey <tom@tromey.com>
253
254 * infrun.c (save_infcall_suspend_state): Return
255 infcall_suspend_state_up.
256 (save_infcall_control_state): Return infcall_control_state_up.
257 * inferior.h (save_infcall_suspend_state)
258 (save_infcall_control_state): Declare later. Return unique
259 pointers.
260
261 2018-09-17 Tom Tromey <tom@tromey.com>
262
263 * infrun.c (struct stop_context): Declare constructor,
264 destructor, "changed" method.
265 (stop_context::stop_context): Rename from save_stop_context.
266 (stop_context::~stop_context): Rename from
267 release_stop_context_cleanup.
268 (normal_stop): Update.
269 (stop_context::changed): Rename from stop_context_changed. Return
270 bool.
271
272 2018-09-17 Tom Tromey <tom@tromey.com>
273
274 * inferior.h (struct infcall_suspend_state_deleter): New.
275 (infcall_suspend_state_up): New typedef.
276 (struct infcall_control_state_deleter): New.
277 (infcall_control_state_up): New typedef.
278 (make_cleanup_restore_infcall_suspend_state)
279 (make_cleanup_restore_infcall_control_state): Don't declare.
280 * infcall.c (call_function_by_hand_dummy): Update.
281 * infrun.c (do_restore_infcall_suspend_state_cleanup)
282 (make_cleanup_restore_infcall_suspend_state): Remove.
283 (do_restore_infcall_control_state_cleanup)
284 (make_cleanup_restore_infcall_control_state): Remove.
285
286 2018-09-17 Tom Tromey <tom@tromey.com>
287
288 * gdbthread.h (struct thread_control_state): Add initializer.
289 (class thread_info) <control>: Remove initializer.
290 * inferior.h (struct inferior_control_state): Add initializer.
291 (class inferior) <control>: Remove initializer.
292 (exit_inferior_1): Update.
293 * infrun.c (struct infcall_control_state): Add constructors.
294 (save_infcall_control_state): Use new.
295 (restore_infcall_control_state, discard_infcall_control_state):
296 Use delete.
297
298 2018-09-17 Tom Tromey <tom@tromey.com>
299
300 * infrun.c (struct infcall_suspend_state) <registers>: Now a
301 unique_ptr.
302 <siginfo_data>: Now a unique_xmalloc_ptr.
303 (save_infcall_suspend_state, restore_infcall_suspend_state)
304 (discard_infcall_suspend_state)
305 (get_infcall_suspend_state_regcache): Update.
306
307 2018-09-17 Tom Tromey <tom@tromey.com>
308
309 * gdbthread.h (struct thread_suspend_state): Add initializers.
310 (class thread_info) <suspend>: Remove initializer.
311 * infrun.c (struct infcall_suspend_state): Add initializers.
312 (save_infcall_suspend_state): Use new.
313 (discard_infcall_suspend_state): Use delete.
314
315 2018-09-16 Tom Tromey <tom@tromey.com>
316
317 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
318 Remove.
319 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
320 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
321 (py_varobj_iter_new): Likewise.
322 (py_varobj_get_iterator): Use gdbpy_ref.
323
324 2018-09-16 Tom Tromey <tom@tromey.com>
325
326 * python/py-threadevent.c (py_get_event_thread): Simplify.
327 * python/py-inferior.c (infpy_thread_from_thread_handle):
328 Return immediately after calling thread_to_thread_object. Use
329 Py_RETURN_NONE.
330 (thread_to_thread_object): Set the exception on a NULL return.
331
332 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
335
336 2018-09-16 Tom Tromey <tom@tromey.com>
337
338 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
339 Remove.
340
341 2018-09-16 Tom Tromey <tom@tromey.com>
342
343 * python/python-internal.h (thread_to_thread_object): Change
344 return type.
345 * python/py-inferior.c (thread_to_thread_object): Return a new
346 reference.
347 (infpy_thread_from_thread_handle): Update.
348 * python/py-infthread.c (gdbpy_selected_thread): Update.
349 * python/py-stopevent.c (create_stop_event_object): Update.
350 * python/py-threadevent.c (py_get_event_thread): Return a new
351 reference.
352 (py_get_event_thread): Update.
353 * python/py-event.h (py_get_event_thread): Change return type.
354 * python/py-continueevent.c (create_continue_event_object):
355 Update.
356
357 2018-09-16 Tom Tromey <tom@tromey.com>
358
359 * python/py-progspace.c (pspy_get_objfiles): Update.
360 * python/python-internal.h (objfile_to_objfile_object): Change
361 return type.
362 * python/py-newobjfileevent.c (create_new_objfile_event_object):
363 Update.
364 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
365 Update.
366 * python/python.c (gdbpy_get_current_objfile): Update.
367 (gdbpy_objfiles): Update.
368 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
369 Update.
370 (objfile_to_objfile_object): Return a new reference.
371 * python/py-symtab.c (stpy_get_objfile): Update.
372 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
373 Update.
374
375 2018-09-16 Tom Tromey <tom@tromey.com>
376
377 * python/py-inferior.c (infpy_get_progspace): Update.
378 * python/python-internal.h (pspace_to_pspace_object): Change
379 return type.
380 * python/py-newobjfileevent.c
381 (create_clear_objfiles_event_object): Update.
382 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
383 Update.
384 * python/python.c (gdbpy_get_current_progspace): Update.
385 (gdbpy_progspaces): Update.
386 * python/py-progspace.c (pspace_to_pspace_object): Return a new
387 reference.
388 * python/py-objfile.c (objfpy_get_progspace): Update.
389 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
390 Update.
391
392 2018-09-16 Tom Tromey <tom@tromey.com>
393
394 * python/lib/gdb/__init__.py (current_progspace, objfiles)
395 (solib_name, block_for_pc, find_pc_line): New functions.
396 (execute_unwinders): Update.
397 * python/py-block.c (gdbpy_block_for_pc): Remove.
398 * python/py-inferior.c (infpy_get_progspace): New function.
399 (inferior_object_getset) <progspace>: Add.
400 * python/py-progspace.c (pspy_objfiles): Rewrite.
401 (pspy_solib_name, pspy_block_for_pc)
402 (pspy_find_pc_line, pspy_is_valid): New functions.
403 (progspace_object_methods): Add entries for solib_name,
404 block_for_pc, find_pc_line, is_valid.
405 * python/python-internal.h (gdbpy_block_for_pc)
406 (build_objfiles_list): Don't declare.
407 * python/python.c: Don't include solib.h.
408 (gdbpy_solib_name, gdbpy_find_pc_line)
409 (gdbpy_get_current_progspace, build_objfiles_list)
410 (gdbpy_objfiles): Remove.
411 (GdbMethods) <current_progspace, objfiles, block_for_pc,
412 solib_name, find_pc_line>: Remove entries.
413
414 2018-09-16 Tom Tromey <tom@tromey.com>
415
416 * top.c (new_ui_command): Use GNU style for metasyntactic
417 variables.
418 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
419 variables.
420 * maint.c (maintenance_translate_address): Remove "<>" around
421 text.
422 * interps.c (interpreter_exec_cmd): Use GNU style for
423 metasyntactic variables.
424 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
425 metasyntactic variables.
426 * tracepoint.c (tfind_range_command): Use GNU style for
427 metasyntactic variables.
428 (tfind_outside_command): Likewise.
429 (_initialize_tracepoint): Likewise.
430 * remote.c (extended_remote_target::create_inferior): Use GNU
431 style for metasyntactic variables.
432 * sparc64-tdep.c (adi_examine_command): Use GNU style for
433 metasyntactic variables.
434 (adi_assign_command): Likewise.
435
436 2018-09-16 Tom Tromey <tom@tromey.com>
437
438 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
439 metasyntactic variables. Print message if no disassembler options
440 are available.
441
442 2018-09-15 Tom Tromey <tom@tromey.com>
443
444 * infcmd.c (get_inferior_args): Return const char *.
445 * inferior.h (get_inferior_args): Return type now const.
446 * linux-tdep.c (linux_fill_prpsinfo): Update.
447 * procfs.c (procfs_target::make_corefile_notes): Update.
448
449 2018-09-07 Tom Tromey <tom@tromey.com>
450
451 * python/python.c (execute_gdb_command): Call bpstat_do_actions
452 inside the TRY.
453
454 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
455
456 * nios2-tdep.c (nios2_type_align): New.
457 (nios2_gdb_arch_init): Install type_align hook.
458
459 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
460
461 * eval.c (fake_method::fake_method): Call xzalloc directly for a
462 type that is neither object file owned, nor gdbarch owned.
463 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
464 gdbarch is non-NULL.
465 (alloc_type_instance): Allocate non-objfile owned types on the
466 gdbarch obstack.
467 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
468 using TYPE_ALLOC to ensure memory is allocated on the correct
469 obstack.
470 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
471 obstack, or the gdbarch obstack.
472 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
473
474 2018-09-14 Tom Tromey <tom@tromey.com>
475
476 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
477 block.
478
479 2018-09-14 Tom Tromey <tom@tromey.com>
480
481 * nat/fork-inferior.c (get_startup_shell): Remove "static".
482
483 2018-09-13 Tom Tromey <tom@tromey.com>
484
485 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
486 static.
487
488 2018-09-13 Tom Tromey <tom@tromey.com>
489
490 * exec.c (try_open_exec_file): Use std::string.
491
492 2018-09-13 Tom Tromey <tom@tromey.com>
493
494 * utils.h (gdb_bfd_errmsg): Return std::string.
495 * exec.c (exec_file_attach): Update.
496 * compile/compile-object-load.c (compile_object_load): Update.
497 * utils.c (gdb_bfd_errmsg): Return std::string.
498
499 2018-09-13 Tom Tromey <tom@tromey.com>
500
501 * procfs.c (struct procinfo_deleter): New.
502 (procinfo_up): New typedef.
503 (do_destroy_procinfo_cleanup): Remove.
504 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
505
506 2018-09-13 Tom Tromey <tom@tromey.com>
507
508 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
509
510 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
511 2018-09-13 Tom Tromey <tom@tromey.com>
512
513 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
514 (pspy_get_objfiles): New function.
515 (progspace_object_methods): New.
516 (pspace_object_type): Add tp_methods callback.
517 * python/python-internal.h (build_objfiles_list): New
518 declaration.
519 * python/python.c (build_objfiles_list): New function.
520 (gdbpy_objfiles): Implement using build_objfiles_list.
521 * NEWS: Mention the Progspace.objfiles method.
522
523 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
524
525 * python/py-inferior.c (infpy_get_progspace): New function.
526 (inferior_object_getset): Add progspace property.
527 * NEWS: Mention the new property.
528
529 2018-09-13 Tom Tromey <tom@tromey.com>
530
531 PR rust/23650:
532 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
533
534 2018-09-13 Tom Tromey <tom@tromey.com>
535
536 PR rust/23626:
537 * rust-lang.c (rust_enum_variant): Now static.
538 (rust_empty_enum_p): New function.
539 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
540 Handle empty enum.
541
542 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
543
544 * python/py-inferior.c (infpy_repr): New.
545 (inferior_object_type): Register infpy_repr.
546 * python/py-objfile.c (objfpy_repr): New.
547 (objfile_object_type): Register objfpy_repr.
548
549 2018-09-12 John Baldwin <jhb@FreeBSD.org>
550
551 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
552
553 2018-09-12 John Baldwin <jhb@FreeBSD.org>
554
555 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
556 typo.
557
558 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
559
560 * common/common-utils.c: Don't include '<sys/stat.h>'.
561 (is_regular_file): Move to...
562 * common/filestuff.c (is_regular_file): ... here.
563 * common/common-utils.h (is_regular_file): Move to...
564 * common/filestuff.h (is_regular_file): ... here.
565
566 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
567
568 * skip.c (debug_skip): New variable.
569 (skiplist_entry::do_skip_file_p): Add debug output.
570 (skiplist_entry::do_skip_gfile_p): Likewise.
571 (skiplist_entry::skip_function_p): Likewise.
572 (_initialize_step_skip): Create debug command.
573 * NEWS: Mention set/show debug skip.
574
575 2018-09-11 Xavier Roirand <roirand@adacore.com>
576
577 * darwin-nat.c (should_disable_startup_with_shell):
578 New function.
579 (darwin_nat_target::create_inferior): Add call.
580
581 2018-09-11 Xavier Roirand <roirand@adacore.com>
582
583 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
584 inf_port, msg_state>: Initialize.
585 (struct darwin_thread_info) <signaled, single_step>: Change
586 type and initialize.
587 (struct darwin_thread_info) <event>: Initialize.
588
589 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
590
591 PR gdb/23555
592 PR gdb/23558
593 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
594 guesses.
595
596 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
597
598 Revert:
599 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
600
601 PR gdb/23555
602 PR gdb/23558
603 * gnulib/aclocal.m4: Regenerate.
604 * gnulib/config.in: Regenerate.
605 * gnulib/configure: Regenerate.
606 * gnulib/import/Makefile.am: Update.
607 * gnulib/import/Makefile.in: Update.
608 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
609 * gnulib/import/_Noreturn.h: ... this.
610 * gnulib/import/alloca.in.h: Update.
611 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
612 * gnulib/import/arg-nonnull.h: ... this.
613 * gnulib/import/assure.h: Update.
614 * gnulib/import/at-func.c: Update.
615 * gnulib/import/basename-lgpl.c: Update.
616 * gnulib/import/extra/snippet/c++defs.h: Rename to...
617 * gnulib/import/c++defs.h: ... this.
618 * gnulib/import/canonicalize-lgpl.c: Update.
619 * gnulib/import/cdefs.h: Update.
620 * gnulib/import/chdir-long.c: Update.
621 * gnulib/import/chdir-long.h: Update.
622 * gnulib/import/cloexec.c: Update.
623 * gnulib/import/cloexec.h: Update.
624 * gnulib/import/close.c: Update.
625 * gnulib/import/closedir.c: Update.
626 * gnulib/import/config.charset: Update.
627 * gnulib/import/dirent-private.h: Update.
628 * gnulib/import/dirent.in.h: Update.
629 * gnulib/import/dirfd.c: Update.
630 * gnulib/import/dirname-lgpl.c: Update.
631 * gnulib/import/dirname.h: Update.
632 * gnulib/import/dosname.h: Update.
633 * gnulib/import/dup-safer-flag.c: Update.
634 * gnulib/import/dup-safer.c: Update.
635 * gnulib/import/dup.c: Update.
636 * gnulib/import/dup2.c: Update.
637 * gnulib/import/errno.in.h: Update.
638 * gnulib/import/error.c: Update.
639 * gnulib/import/error.h: Update.
640 * gnulib/import/exitfail.c: Update.
641 * gnulib/import/exitfail.h: Update.
642 * gnulib/import/extra/update-copyright: Update.
643 * gnulib/import/fchdir.c: Update.
644 * gnulib/import/fcntl.c: Update.
645 * gnulib/import/fcntl.in.h: Update.
646 * gnulib/import/fd-hook.c: Update.
647 * gnulib/import/fd-hook.h: Update.
648 * gnulib/import/fd-safer-flag.c: Update.
649 * gnulib/import/fd-safer.c: Update.
650 * gnulib/import/fdopendir.c: Update.
651 * gnulib/import/filename.h: Update.
652 * gnulib/import/filenamecat-lgpl.c: Update.
653 * gnulib/import/filenamecat.h: Update.
654 * gnulib/import/flexmember.h: Update.
655 * gnulib/import/float+.h: Update.
656 * gnulib/import/float.c: Update.
657 * gnulib/import/float.in.h: Update.
658 * gnulib/import/fnmatch.c: Update.
659 * gnulib/import/fnmatch.in.h: Update.
660 * gnulib/import/fnmatch_loop.c: Update.
661 * gnulib/import/fpucw.h: Update.
662 * gnulib/import/frexp.c: Update.
663 * gnulib/import/frexpl.c: Update.
664 * gnulib/import/fstat.c: Update.
665 * gnulib/import/fstatat.c: Update.
666 * gnulib/import/getcwd-lgpl.c: Update.
667 * gnulib/import/getcwd.c: Update.
668 * gnulib/import/getdtablesize.c: Update.
669 * gnulib/import/getlogin_r.c: Update.
670 * gnulib/import/getprogname.c: Update.
671 * gnulib/import/getprogname.h: Update.
672 * gnulib/import/gettext.h: Update.
673 * gnulib/import/gettimeofday.c: Update.
674 * gnulib/import/glob-libc.h: Update.
675 * gnulib/import/glob.c: Update.
676 * gnulib/import/glob.in.h: Update.
677 * gnulib/import/glob_internal.h: Update.
678 * gnulib/import/glob_pattern_p.c: Update.
679 * gnulib/import/globfree.c: Update.
680 * gnulib/import/hard-locale.c: Update.
681 * gnulib/import/hard-locale.h: Update.
682 * gnulib/import/intprops.h: Update.
683 * gnulib/import/inttypes.in.h: Update.
684 * gnulib/import/isnan.c: Update.
685 * gnulib/import/isnand-nolibm.h: Update.
686 * gnulib/import/isnand.c: Update.
687 * gnulib/import/isnanl-nolibm.h: Update.
688 * gnulib/import/isnanl.c: Update.
689 * gnulib/import/itold.c: Update.
690 * gnulib/import/libc-config.h: Update.
691 * gnulib/import/limits.in.h: Update.
692 * gnulib/import/localcharset.c: Update.
693 * gnulib/import/localcharset.h: Update.
694 * gnulib/import/localtime-buffer.c: Update.
695 * gnulib/import/localtime-buffer.h: Update.
696 * gnulib/import/lstat.c: Update.
697 * gnulib/import/m4/00gnulib.m4: Update.
698 * gnulib/import/m4/__inline.m4: Update.
699 * gnulib/import/m4/absolute-header.m4: Update.
700 * gnulib/import/m4/alloca.m4: Update.
701 * gnulib/import/m4/builtin-expect.m4: Update.
702 * gnulib/import/m4/canonicalize.m4: Update.
703 * gnulib/import/m4/chdir-long.m4: Update.
704 * gnulib/import/m4/close.m4: Update.
705 * gnulib/import/m4/closedir.m4: Update.
706 * gnulib/import/m4/configmake.m4: Update.
707 * gnulib/import/m4/d-ino.m4: Update.
708 * gnulib/import/m4/d-type.m4: Update.
709 * gnulib/import/m4/dirent_h.m4: Update.
710 * gnulib/import/m4/dirfd.m4: Update.
711 * gnulib/import/m4/dirname.m4: Update.
712 * gnulib/import/m4/double-slash-root.m4: Update.
713 * gnulib/import/m4/dup.m4: Update.
714 * gnulib/import/m4/dup2.m4: Update.
715 * gnulib/import/m4/eealloc.m4: Update.
716 * gnulib/import/m4/environ.m4: Update.
717 * gnulib/import/m4/errno_h.m4: Update.
718 * gnulib/import/m4/error.m4: Update.
719 * gnulib/import/m4/exponentd.m4: Update.
720 * gnulib/import/m4/exponentl.m4: Update.
721 * gnulib/import/m4/extensions.m4: Update.
722 * gnulib/import/m4/extern-inline.m4: Update.
723 * gnulib/import/m4/fchdir.m4: Update.
724 * gnulib/import/m4/fcntl-o.m4: Update.
725 * gnulib/import/m4/fcntl.m4: Update.
726 * gnulib/import/m4/fcntl_h.m4: Update.
727 * gnulib/import/m4/fdopendir.m4: Update.
728 * gnulib/import/m4/filenamecat.m4: Update.
729 * gnulib/import/m4/flexmember.m4: Update.
730 * gnulib/import/m4/float_h.m4: Update.
731 * gnulib/import/m4/fnmatch.m4: Update.
732 * gnulib/import/m4/fnmatch_h.m4: Update.
733 * gnulib/import/m4/fpieee.m4: Update.
734 * gnulib/import/m4/frexp.m4: Update.
735 * gnulib/import/m4/frexpl.m4: Update.
736 * gnulib/import/m4/fstat.m4: Update.
737 * gnulib/import/m4/fstatat.m4: Update.
738 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
739 * gnulib/import/m4/getcwd-path-max.m4: Update.
740 * gnulib/import/m4/getcwd.m4: Update.
741 * gnulib/import/m4/getdtablesize.m4: Update.
742 * gnulib/import/m4/getlogin.m4: Update.
743 * gnulib/import/m4/getlogin_r.m4: Update.
744 * gnulib/import/m4/getpagesize.m4: Update.
745 * gnulib/import/m4/getprogname.m4: Update.
746 * gnulib/import/m4/gettimeofday.m4: Update.
747 * gnulib/import/m4/glibc21.m4: Update.
748 * gnulib/import/m4/glob.m4: Update.
749 * gnulib/import/m4/glob_h.m4: Update.
750 * gnulib/import/m4/gnulib-cache.m4: Update.
751 * gnulib/import/m4/gnulib-common.m4: Update.
752 * gnulib/import/m4/gnulib-comp.m4: Update.
753 * gnulib/import/m4/gnulib-tool.m4: Update.
754 * gnulib/import/m4/hard-locale.m4: Update.
755 * gnulib/import/m4/include_next.m4: Update.
756 * gnulib/import/m4/inttypes-pri.m4: Update.
757 * gnulib/import/m4/inttypes.m4: Update.
758 * gnulib/import/m4/isnand.m4: Update.
759 * gnulib/import/m4/isnanl.m4: Update.
760 * gnulib/import/m4/largefile.m4: Update.
761 * gnulib/import/m4/limits-h.m4: Update.
762 * gnulib/import/m4/localcharset.m4: Update.
763 * gnulib/import/m4/locale-fr.m4: Update.
764 * gnulib/import/m4/locale-ja.m4: Update.
765 * gnulib/import/m4/locale-zh.m4: Update.
766 * gnulib/import/m4/localtime-buffer.m4: Update.
767 * gnulib/import/m4/longlong.m4: Update.
768 * gnulib/import/m4/lstat.m4: Update.
769 * gnulib/import/m4/malloc.m4: Update.
770 * gnulib/import/m4/malloca.m4: Update.
771 * gnulib/import/m4/math_h.m4: Update.
772 * gnulib/import/m4/mbrtowc.m4: Update.
773 * gnulib/import/m4/mbsinit.m4: Update.
774 * gnulib/import/m4/mbsrtowcs.m4: Update.
775 * gnulib/import/m4/mbstate_t.m4: Update.
776 * gnulib/import/m4/memchr.m4: Update.
777 * gnulib/import/m4/memmem.m4: Update.
778 * gnulib/import/m4/mempcpy.m4: Update.
779 * gnulib/import/m4/memrchr.m4: Update.
780 * gnulib/import/m4/mkdir.m4: Update.
781 * gnulib/import/m4/mkstemp.m4: Update.
782 * gnulib/import/m4/mmap-anon.m4: Update.
783 * gnulib/import/m4/mode_t.m4: Update.
784 * gnulib/import/m4/msvc-inval.m4: Update.
785 * gnulib/import/m4/msvc-nothrow.m4: Update.
786 * gnulib/import/m4/multiarch.m4: Update.
787 * gnulib/import/m4/nocrash.m4: Update.
788 * gnulib/import/m4/off_t.m4: Update.
789 * gnulib/import/m4/onceonly.m4: Update.
790 * gnulib/import/m4/open-cloexec.m4: Update.
791 * gnulib/import/m4/open.m4: Update.
792 * gnulib/import/m4/openat.m4: Update.
793 * gnulib/import/m4/opendir.m4: Update.
794 * gnulib/import/m4/pathmax.m4: Update.
795 * gnulib/import/m4/rawmemchr.m4: Update.
796 * gnulib/import/m4/readdir.m4: Update.
797 * gnulib/import/m4/readlink.m4: Update.
798 * gnulib/import/m4/realloc.m4: Update.
799 * gnulib/import/m4/rename.m4: Update.
800 * gnulib/import/m4/rewinddir.m4: Update.
801 * gnulib/import/m4/rmdir.m4: Update.
802 * gnulib/import/m4/save-cwd.m4: Update.
803 * gnulib/import/m4/secure_getenv.m4: Update.
804 * gnulib/import/m4/setenv.m4: Update.
805 * gnulib/import/m4/signal_h.m4: Update.
806 * gnulib/import/m4/ssize_t.m4: Update.
807 * gnulib/import/m4/stat-time.m4: Update.
808 * gnulib/import/m4/stat.m4: Update.
809 * gnulib/import/m4/std-gnu11.m4: Update.
810 * gnulib/import/m4/stdbool.m4: Update.
811 * gnulib/import/m4/stddef_h.m4: Update.
812 * gnulib/import/m4/stdint.m4: Update.
813 * gnulib/import/m4/stdio_h.m4: Update.
814 * gnulib/import/m4/stdlib_h.m4: Update.
815 * gnulib/import/m4/strchrnul.m4: Update.
816 * gnulib/import/m4/strdup.m4: Update.
817 * gnulib/import/m4/strerror.m4: Update.
818 * gnulib/import/m4/string_h.m4: Update.
819 * gnulib/import/m4/strstr.m4: Update.
820 * gnulib/import/m4/strtok_r.m4: Update.
821 * gnulib/import/m4/sys_socket_h.m4: Update.
822 * gnulib/import/m4/sys_stat_h.m4: Update.
823 * gnulib/import/m4/sys_time_h.m4: Update.
824 * gnulib/import/m4/sys_types_h.m4: Update.
825 * gnulib/import/m4/tempname.m4: Update.
826 * gnulib/import/m4/time_h.m4: Update.
827 * gnulib/import/m4/unistd-safer.m4: Update.
828 * gnulib/import/m4/unistd_h.m4: Update.
829 * gnulib/import/m4/warn-on-use.m4: Update.
830 * gnulib/import/m4/wchar_h.m4: Update.
831 * gnulib/import/m4/wchar_t.m4: Update.
832 * gnulib/import/m4/wctype_h.m4: Update.
833 * gnulib/import/m4/wint_t.m4: Update.
834 * gnulib/import/malloc.c: Update.
835 * gnulib/import/malloc/scratch_buffer.h: Update.
836 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
837 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
838 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
839 * gnulib/import/malloca.c: Update.
840 * gnulib/import/malloca.h: Update.
841 * gnulib/import/malloca.valgrind: Update.
842 * gnulib/import/math.in.h: Update.
843 * gnulib/import/mbrtowc.c: Update.
844 * gnulib/import/mbsinit.c: Update.
845 * gnulib/import/mbsrtowcs-impl.h: Update.
846 * gnulib/import/mbsrtowcs-state.c: Update.
847 * gnulib/import/mbsrtowcs.c: Update.
848 * gnulib/import/memchr.c: Update.
849 * gnulib/import/memmem.c: Update.
850 * gnulib/import/mempcpy.c: Update.
851 * gnulib/import/memrchr.c: Update.
852 * gnulib/import/mkdir.c: Update.
853 * gnulib/import/mkstemp.c: Update.
854 * gnulib/import/msvc-inval.c: Update.
855 * gnulib/import/msvc-inval.h: Update.
856 * gnulib/import/msvc-nothrow.c: Update.
857 * gnulib/import/msvc-nothrow.h: Update.
858 * gnulib/import/open.c: Update.
859 * gnulib/import/openat-die.c: Update.
860 * gnulib/import/openat-priv.h: Update.
861 * gnulib/import/openat-proc.c: Update.
862 * gnulib/import/openat.c: Update.
863 * gnulib/import/openat.h: Update.
864 * gnulib/import/opendir.c: Update.
865 * gnulib/import/pathmax.h: Update.
866 * gnulib/import/pipe-safer.c: Update.
867 * gnulib/import/rawmemchr.c: Update.
868 * gnulib/import/readdir.c: Update.
869 * gnulib/import/readlink.c: Update.
870 * gnulib/import/realloc.c: Update.
871 * gnulib/import/ref-add.sin: Update.
872 * gnulib/import/ref-del.sin: Update.
873 * gnulib/import/rename.c: Update.
874 * gnulib/import/rewinddir.c: Update.
875 * gnulib/import/rmdir.c: Update.
876 * gnulib/import/same-inode.h: Update.
877 * gnulib/import/save-cwd.c: Update.
878 * gnulib/import/save-cwd.h: Update.
879 * gnulib/import/scratch_buffer.h: Update.
880 * gnulib/import/secure_getenv.c: Update.
881 * gnulib/import/setenv.c: Update.
882 * gnulib/import/signal.in.h: Update.
883 * gnulib/import/stat-time.c: Update.
884 * gnulib/import/stat-time.h: Update.
885 * gnulib/import/stat-w32.c: Update.
886 * gnulib/import/stat-w32.h: Update.
887 * gnulib/import/stat.c: Update.
888 * gnulib/import/stdbool.in.h: Update.
889 * gnulib/import/stddef.in.h: Update.
890 * gnulib/import/stdint.in.h: Update.
891 * gnulib/import/stdio.in.h: Update.
892 * gnulib/import/stdlib.in.h: Update.
893 * gnulib/import/str-two-way.h: Update.
894 * gnulib/import/strchrnul.c: Update.
895 * gnulib/import/strdup.c: Update.
896 * gnulib/import/streq.h: Update.
897 * gnulib/import/strerror-override.c: Update.
898 * gnulib/import/strerror-override.h: Update.
899 * gnulib/import/strerror.c: Update.
900 * gnulib/import/string.in.h: Update.
901 * gnulib/import/stripslash.c: Update.
902 * gnulib/import/strnlen1.c: Update.
903 * gnulib/import/strnlen1.h: Update.
904 * gnulib/import/strstr.c: Update.
905 * gnulib/import/strtok_r.c: Update.
906 * gnulib/import/sys_stat.in.h: Update.
907 * gnulib/import/sys_time.in.h: Update.
908 * gnulib/import/sys_types.in.h: Update.
909 * gnulib/import/tempname.c: Update.
910 * gnulib/import/tempname.h: Update.
911 * gnulib/import/time.in.h: Update.
912 * gnulib/import/unistd--.h: Update.
913 * gnulib/import/unistd-safer.h: Update.
914 * gnulib/import/unistd.in.h: Update.
915 * gnulib/import/unsetenv.c: Update.
916 * gnulib/import/verify.h: Update.
917 * gnulib/import/extra/snippet/warn-on-use.h: Update.
918 * gnulib/import/wchar.in.h: Update.
919 * gnulib/import/wctype.in.h: Update.
920 * gnulib/import/xalloc-oversized.h: Update.
921 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
922 "53e2c179f26a890fa6685af4b6c1397ee370433b".
923
924 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
925
926 * record-btrace.c (get_thread_current_frame): Remove
927 old_inferior_ptid.
928
929 2018-09-10 Jerome Guitton <guitton@adacore.com>
930
931 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
932 with check_tag to 1 if and only if the type is tagged and the
933 component being searched cannot been found in the current
934 view. Otherwise, always call ada_to_fixed_type with
935 check_tag to 0.
936
937 2018-09-10 Xavier Roirand <roirand@adacore.com>
938
939 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
940 declaration.
941 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
942 * ada-varobj.c (ada_varobj_get_number_of_children,
943 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
944
945 2018-09-10 Xavier Roirand <roirand@adacore.com>
946
947 * ada-valprint.c (ada_value_print): Use type instead of
948 enclosing type.
949
950 2018-09-10 Xavier Roirand <roirand@adacore.com>
951
952 * ada-lang.c (ada_value_subscript): Handle case when parameter is
953 an array of access to unconstrained array.
954
955 2018-09-10 Xavier Roirand <roirand@adacore.com>
956
957 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
958 (ada_check_typedef): Use it.
959
960 2018-09-10 Xavier Roirand <roirand@adacore.com>
961
962 * ada-varobj.c (ada_varobj_describe_struct_child)
963 (ada_varobj_describe_child): Handle union case like struct one.
964
965 2018-09-10 Tom Tromey <tom@tromey.com>
966
967 PR python/18380:
968 * python/python.c (_initialize_python): Make example in "python"
969 help work in Python 3.
970
971 2018-09-10 Eli Zaretskii <eliz@gnu.org>
972
973 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
974 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
975 $(EXEEXT) to the script, as it is not a program.
976
977 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
978
979 * python/py-prettyprint.c (pretty_print_one_value): Return
980 gdbpy_ref<>.
981 (print_string_repr): Adjust.
982 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
983 * python/python-internal.h (apply_varobj_pretty_printer): Return
984 gdbpy_ref<>.
985 * varobj.c (varobj_value_get_print_value): Adjust.
986
987 2018-09-08 Tom Tromey <tom@tromey.com>
988
989 PR python/16047:
990 * python/py-prettyprint.c (pretty_print_one_value): Check for
991 to_string method.
992
993 2018-09-08 Joel Brobecker <brobecker@adacore.com>
994
995 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
996 replace_operator_with_call.
997
998 2018-09-08 Joel Brobecker <brobecker@adacore.com>
999
1000 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1001
1002 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1003
1004 * ada-typeprint.c (print_range): Print the bounds using TYPE
1005 rather than its TYPE_TARGET_TYPE.
1006
1007 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1008
1009 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1010 call to ada_to_fixed_value_create.
1011
1012 2018-09-08 Jerome Guitton <guitton@adacore.com>
1013
1014 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1015
1016 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1017
1018 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1019 by calls to error.
1020
1021 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1022
1023 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1024 Move update of loop variable "fi".
1025
1026 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1027
1028 * ada-lang.c (value_assign_to_component): In the case of
1029 big-endian targets, extract the bits of the given VAL
1030 using an src_offset of zero if container is not a scalar.
1031
1032 2018-09-06 Simon Ser <contact@emersion.fr>
1033
1034 PR gdb/23105
1035 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1036 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1037 * fbsd-tdep.c (fbsd_make_note_desc): New.
1038 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1039 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1040 * target.h (enum target_object) Add FreeBSD-specific
1041 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1042
1043 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1044
1045 * compile/compile-c.h (generate_c_for_variable_locations):
1046 Change reference to pointer.
1047 * compile/compile-c-support.c (compile_program) <compute>:
1048 Likewise.
1049 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1050 (generate_c_for_for_one_variable): Likewise
1051 (generate_c_for_variable_locations): Likewise
1052 * compile/compile-c-types.c (compile_c_instance::convert_type):
1053 Likewise
1054 * compile/compile-cplus-symbols.c (convert_one_symbol):
1055 std::move the scope passed to enter_scope.
1056 * compile/compile-cplus-types.c
1057 (compile_cplus_instance::enter_scope): Make parameter
1058 rvalue-reference.
1059 (compile_cplus_instance::new_scope): Change reference to
1060 pointer.
1061 (compile_cplus_instance::convert_type): Likewise
1062 (compile_cplus_convert_typedef): std::move the scope passed to
1063 enter_scope.
1064 (compile_cplus_convert_struct_or_union): Likewise.
1065 (compile_cplus_convert_enum): Likewise.
1066 (compile_cplus_convert_namespace): Likewise.
1067 * compile/compile-cplus.h (compile_cplus_instance)
1068 <enter_scope>: Make parameter rvalue-reference.
1069 * compile/compile-internal.h (compile_instance)
1070 <get_cached_type>: Likewise
1071 * compile/compile-loc2c.c (push): Likewise
1072 (pushf): Likewise
1073 (unary): Likewise
1074 (binary): Likewise
1075 (print_label): Likewise
1076 (pushf_register_address): Likewise
1077 (pushf_register): Likewise
1078 (do_compile_dwarf_expr_to_c): Likewise
1079 (compile_dwarf_expr_to_c): Likewise
1080 (compile_dwarf_bounds_to_c): Likewise
1081 * compile/compile.c (compile_instance::get_cached_type):
1082 Likewise
1083 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1084 (compile_dwarf_bounds_to_c): Likewise
1085 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1086 (dwarf2_compile_property_to_c): Likewise
1087 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1088 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1089 Likewise
1090
1091 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1092
1093 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1094 * tui/tui-data.c (init_content_element): Don't initialize it.
1095
1096 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1097
1098 * tui/tui-data.h (struct tui_win_info)
1099 <detail::opaque>: Remove.
1100 * tui/tui-data.c (init_win_info): Remove assignment.
1101
1102 2018-09-05 Tom Tromey <tom@tromey.com>
1103
1104 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1105 -Wformat-nonliteral.
1106 * target-float.c (host_float_ops<T>::to_string)
1107 (host_float_ops<T>::from_string): Use
1108 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1109 * configure: Rebuild.
1110
1111 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1112
1113 * printcmd.c (printf_c_string): Use
1114 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1115 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1116
1117 2018-09-05 Tom Tromey <tom@tromey.com>
1118
1119 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1120
1121 2018-09-05 Tom de Vries <tdevries@suse.de>
1122
1123 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1124 with resolve_abstract_p == true.
1125 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1126 defaulting to false. Propagate resolve_abstract_p to
1127 dwarf2_fetch_die_loc_sect_off.
1128 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1129 parameter, defaulting to false.
1130 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1131 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1132 parameter.
1133 * dwarf2read.h (struct die_info): Forward-declare.
1134 (die_info_ptr): New typedef.
1135 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1136
1137 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1138
1139 GDB 8.2 released.
1140
1141 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1142 Pedro Alves <palves@redhat.com>
1143
1144 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1145 "aclocal-m4-deps.mk". Include file here.
1146 $(srcdir)/aclocal.m4: Add "configure.ac".
1147 * gnulib/aclocal-m4-deps.mk: New file.
1148 * gnulib/update-gnulib.sh: Automatically update
1149 "aclocal-m4-deps.mk".
1150
1151 2018-09-04 Tom Tromey <tom@tromey.com>
1152
1153 * configure: Rebuild.
1154 * configure.ac: Remove multi-ice code.
1155
1156 2018-09-04 Tom Tromey <tom@tromey.com>
1157
1158 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1159 (ada-exp.o): Update.
1160
1161 2018-09-04 Tom Tromey <tom@tromey.com>
1162
1163 * Makefile.in (printcmd.o, target-float.o): Remove.
1164 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1165
1166 2018-09-04 Tom Tromey <tom@tromey.com>
1167
1168 * gnulib/Makefile.in: Remove obsolete comment.
1169 * Makefile.in: Remove obsolete comment.
1170
1171 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1172
1173 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1174 line with '+'.
1175
1176 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * riscv-tdep.c: Add 'prologue-value.h' include.
1179 (struct riscv_unwind_cache): New struct.
1180 (riscv_debug_unwinder): New global.
1181 (riscv_scan_prologue): Update arguments, capture register details
1182 from prologue scan.
1183 (riscv_skip_prologue): Reformat arguments line, move end of
1184 prologue calculation into riscv_scan_prologue.
1185 (riscv_frame_cache): Update return type, create
1186 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1187 details.
1188 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1189 (riscv_frame_prev_register): Use the trad_frame within the
1190 riscv_unwind_cache.
1191 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1192 flag.
1193
1194 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * trad-frame.h (trad_frame_set_realreg): Declare.
1197 (trad_frame_set_addr): Declare.
1198 * trad-frame.c (trad_frame_set_realreg): Define new function.
1199 (trad_frame_set_addr): Define new function.
1200 (trad_frame_set_reg_realreg): Use new function.
1201 (trad_frame_set_reg_addr): Use new function.
1202
1203 2018-09-01 Keith Seitz <keiths@redhat.com>
1204
1205 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1206 pulongest instead of "%lld".
1207 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1208 ATTRIBUTE_UNUSED.
1209
1210 2018-08-31 Tom Tromey <tom@tromey.com>
1211
1212 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1213 variant part type.
1214
1215 2018-08-31 Pedro Alves <palves@redhat.com>
1216
1217 * gdbarch.h: Regenerate.
1218
1219 2018-08-31 Pedro Alves <palves@redhat.com>
1220
1221 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1222 * target.h (Hardware watchpoint interfaces): Describe
1223 continuable/steppable/non-steppable watchpoints.
1224 * gdbarch.h, gdbarch.c: Regenerate.
1225
1226 2018-08-31 Pedro Alves <palves@redhat.com>
1227
1228 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1229 Delete.
1230 * s390-linux-nat.c
1231 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1232 * target.h (target_ops::have_continuable_watchpoint): Delete.
1233 (target_have_continuable_watchpoint): Delete.
1234 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1235 * target-delegates.c: Regenerate.
1236
1237 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1238
1239 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1240 the files present in "gnulib/import/m4/".
1241
1242 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1243
1244 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1245 c.sw, c.swsp, and c.sdsp.
1246
1247 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1248
1249 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1250 (riscv_read_misa_reg): Don't cache value read into inferior data.
1251 (riscv_new_inferior_data): Delete.
1252 (riscv_inferior_data_cleanup): Delete.
1253 (riscv_inferior_data): Delete.
1254 (riscv_invalidate_inferior_data): Delete.
1255 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1256
1257 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1258
1259 * compile/compile-cplus-types.c
1260 (compile_cplus_instance::leave_scope): Take the address of scope
1261 object.
1262 (compile_cplus_instance::convert_qualified_base): Compare quals
1263 to 0.
1264
1265 2018-08-30 Keith Seitz <keiths@redhat.com>
1266
1267 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1268 Use "%s" and host_address_to_string instead of "%p" in printf.
1269
1270 2018-08-29 Keith Seitz <keiths@redhat.com>
1271
1272 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1273 and compile-cplus-types.c.
1274 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1275 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1276 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1277 Declare.
1278 * compile/compile-c-support.c: Include compile-cplus.h.
1279 (load_libcompile): Templatize.
1280 (get_compile_context): "New" function.
1281 (c_get_compile_context): Use get_compile_context.
1282 (cplus_get_compile_context): New function.
1283 (cplus_push_user_expression, cplus_pop_user_expression)
1284 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1285 (cplus_compute_program): Define new structs/functions.
1286 * compile/compile-cplus-symmbols.c: New file.
1287 * compile/compile-cplus-types.c: New file.
1288 * compile/compile-cplus.h: New file.
1289 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1290 Declare.
1291 * compile/compile-object-load.c (get_out_value_type): Use
1292 strncmp_iw when comparing symbol names.
1293 (compile_object_load): Add mst_bss and mst_data.
1294 * compile/compile.c (_initialize_compile): Remove
1295 -Wno-implicit-function-declaration from `compile_args'.
1296 * compile/gcc-cp-plugin.h: New file.
1297 * NEWS: Mention C++ compile support and new debug options.
1298
1299 2018-08-29 Keith Seitz <keiths@redhat.com>
1300
1301 * linespec.c (collect_info::add_symbol): Make virtual.
1302 (struct symbol_searcher_collect_info): New struct.
1303 (symbol_searcher::find_all_symbols): New method.
1304 * symtab.h (class symbol_searcher): New class.
1305
1306 2018-08-29 Keith Seitz <keiths@redhat.com>
1307
1308 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1309 Change to vector of block_symbol. Update all users.
1310 (struct collect_info) <symbols>: Likewise.
1311 (collect_info::add_symbol): Take block_symbol as argument.
1312 Update all callers.
1313 (decode_compound_collector) <m_symbols>: Change type to vector
1314 of block_symbol. Update all users.
1315 (decode_compound_collector::operator ()): Change parameter type
1316 to block_symbol.
1317 (find_method, find_function_symbols, find_linespec_symbols)
1318 (find_label_symbols_in_block, find_label_symbols): Change symbol
1319 vectors to block_symbol vectors.
1320 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1321 block_symbol.
1322
1323 2018-08-29 Keith Seitz <keiths@redhat.com>
1324
1325 * linespec.c (symbolp): Remove typedef and VEC definitions.
1326 (bound_minimal_symbol_d): Likewise.
1327
1328 2018-08-29 Keith Seitz <keiths@redhat.com>
1329
1330 * linespec.c (decode_compound_collector::decode_compound_collector):
1331 Remove initialization for `m_symtabs'.
1332 (decode_compound_collector::release_symbols): Change return type
1333 to std::vector. Update all callers.
1334 (class decode_compound_collector) <m_symbols>: Change type to
1335 std::vector.
1336 (lookup_prefix_sym): Change return type to std::vector. Update all
1337 callers.
1338 (compare_symbols): Remove.
1339 (std_compare_symbols): Rename to `compare_symbols'.
1340 (find_method): Change `sym_classes' parameter to std::vector.
1341 Update all callers. Use std::sort to sort sym_classes.
1342 (find_linespec_symbols): Remove cleanup.
1343
1344 2018-08-29 Keith Seitz <keiths@redhat.com>
1345
1346 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1347 std::vector. Update all users.
1348 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1349 (struct collect_info) <minimal_symbols>: Likewise.
1350 (compare_msymbols): Return bool. Change parameters to const
1351 bound_minimal_symbol references.
1352 (find_method, find_function_symbols, find_linespec_symbols): Change
1353 `minsyms' parameter to std::vector. Update all callers.
1354
1355 2018-08-29 Keith Seitz <keiths@redhat.com>
1356
1357 * linespec.c (struct linespec) <label_symbols>: Change type to
1358 std::vector. Update all users.
1359 (find_label_symbols_in_block): Change `result' parameter to
1360 std::vector. Update all callers.
1361 (find_label_symbols): Return std::vector. Update all callers.
1362
1363 2018-08-29 Keith Seitz <keiths@redhat.com>
1364
1365 * linespec.c (struct linespec) <function_symbols>: Change type to
1366 std::vector. Update all users.
1367 (struct collect_info) <function_symbols>: Likewise.
1368 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1369 (std_compare_symbols): New function.
1370 (find_method, find_function_symbols, find_linespec_symbols)
1371 (find_label_symbols_in_block): Change `symbols' parameter to
1372 std::vector. Update all callers.
1373 (find_label_symbols): Likewise for `function_symbols' and
1374 `label_funcs_ret'.
1375
1376 2018-08-29 Keith Seitz <keiths@redhat.com>
1377
1378 * linespec.c (symtab_vector_up): Define.
1379 (struct linespec) <file_symtabs>: Change type to std::vector *.
1380 Update all uses.
1381 (struct collect_info) <file_symtabs>: Likewise.
1382 (collect_symtabs_from_filename): Return symtab_vector_up.
1383 Update all callers.
1384 (decode_objc): Remove cleanup.
1385 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1386 (symtab_collector::release_symtabs): Return symtab_vector_up.
1387 Update all callers.
1388 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1389 Update all users.
1390 (collect_symtabs_from_filename, symtabs_from_filename): Return
1391 symtab_vector_up. Update all callers.
1392
1393 2018-08-29 Tom Tromey <tom@tromey.com>
1394
1395 * csky-tdep.c (csky_analyze_prologue): Use
1396 core_addr_to_string_nz.
1397
1398 2018-08-29 Tom Tromey <tom@tromey.com>
1399
1400 * windows-nat.c (struct xlate_exception) <them>: Change type to
1401 DWORD.
1402 (xlate): Fix formatting. Remove last entry.
1403 (struct xlate_exception, xlate): Comment out.
1404 (windows_nat_target::resume): Use ranged for.
1405
1406 2018-08-29 Jim Wilson <jimw@sifive.com>
1407
1408 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1409 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1410 of NT_PRFPREG.
1411 (riscv_linux_nat_target::store_registers): Likewise.
1412
1413 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1414
1415 PR gdb/23555
1416 PR gdb/23558
1417 * gnulib/aclocal.m4: Regenerate.
1418 * gnulib/config.in: Regenerate.
1419 * gnulib/configure: Regenerate.
1420 * gnulib/import/Makefile.am: Update.
1421 * gnulib/import/Makefile.in: Update.
1422 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1423 * gnulib/import/_Noreturn.h: ... this.
1424 * gnulib/import/alloca.in.h: Update.
1425 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1426 * gnulib/import/arg-nonnull.h: ... this.
1427 * gnulib/import/assure.h: Update.
1428 * gnulib/import/at-func.c: Update.
1429 * gnulib/import/basename-lgpl.c: Update.
1430 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1431 * gnulib/import/c++defs.h: ... this.
1432 * gnulib/import/canonicalize-lgpl.c: Update.
1433 * gnulib/import/cdefs.h: Update.
1434 * gnulib/import/chdir-long.c: Update.
1435 * gnulib/import/chdir-long.h: Update.
1436 * gnulib/import/cloexec.c: Update.
1437 * gnulib/import/cloexec.h: Update.
1438 * gnulib/import/close.c: Update.
1439 * gnulib/import/closedir.c: Update.
1440 * gnulib/import/config.charset: Update.
1441 * gnulib/import/dirent-private.h: Update.
1442 * gnulib/import/dirent.in.h: Update.
1443 * gnulib/import/dirfd.c: Update.
1444 * gnulib/import/dirname-lgpl.c: Update.
1445 * gnulib/import/dirname.h: Update.
1446 * gnulib/import/dosname.h: Update.
1447 * gnulib/import/dup-safer-flag.c: Update.
1448 * gnulib/import/dup-safer.c: Update.
1449 * gnulib/import/dup.c: Update.
1450 * gnulib/import/dup2.c: Update.
1451 * gnulib/import/errno.in.h: Update.
1452 * gnulib/import/error.c: Update.
1453 * gnulib/import/error.h: Update.
1454 * gnulib/import/exitfail.c: Update.
1455 * gnulib/import/exitfail.h: Update.
1456 * gnulib/import/extra/update-copyright: Update.
1457 * gnulib/import/fchdir.c: Update.
1458 * gnulib/import/fcntl.c: Update.
1459 * gnulib/import/fcntl.in.h: Update.
1460 * gnulib/import/fd-hook.c: Update.
1461 * gnulib/import/fd-hook.h: Update.
1462 * gnulib/import/fd-safer-flag.c: Update.
1463 * gnulib/import/fd-safer.c: Update.
1464 * gnulib/import/fdopendir.c: Update.
1465 * gnulib/import/filename.h: Update.
1466 * gnulib/import/filenamecat-lgpl.c: Update.
1467 * gnulib/import/filenamecat.h: Update.
1468 * gnulib/import/flexmember.h: Update.
1469 * gnulib/import/float+.h: Update.
1470 * gnulib/import/float.c: Update.
1471 * gnulib/import/float.in.h: Update.
1472 * gnulib/import/fnmatch.c: Update.
1473 * gnulib/import/fnmatch.in.h: Update.
1474 * gnulib/import/fnmatch_loop.c: Update.
1475 * gnulib/import/fpucw.h: Update.
1476 * gnulib/import/frexp.c: Update.
1477 * gnulib/import/frexpl.c: Update.
1478 * gnulib/import/fstat.c: Update.
1479 * gnulib/import/fstatat.c: Update.
1480 * gnulib/import/getcwd-lgpl.c: Update.
1481 * gnulib/import/getcwd.c: Update.
1482 * gnulib/import/getdtablesize.c: Update.
1483 * gnulib/import/getlogin_r.c: Update.
1484 * gnulib/import/getprogname.c: Update.
1485 * gnulib/import/getprogname.h: Update.
1486 * gnulib/import/gettext.h: Update.
1487 * gnulib/import/gettimeofday.c: Update.
1488 * gnulib/import/glob-libc.h: Update.
1489 * gnulib/import/glob.c: Update.
1490 * gnulib/import/glob.in.h: Update.
1491 * gnulib/import/glob_internal.h: Update.
1492 * gnulib/import/glob_pattern_p.c: Update.
1493 * gnulib/import/globfree.c: Update.
1494 * gnulib/import/hard-locale.c: Update.
1495 * gnulib/import/hard-locale.h: Update.
1496 * gnulib/import/intprops.h: Update.
1497 * gnulib/import/inttypes.in.h: Update.
1498 * gnulib/import/isnan.c: Update.
1499 * gnulib/import/isnand-nolibm.h: Update.
1500 * gnulib/import/isnand.c: Update.
1501 * gnulib/import/isnanl-nolibm.h: Update.
1502 * gnulib/import/isnanl.c: Update.
1503 * gnulib/import/itold.c: Update.
1504 * gnulib/import/libc-config.h: Update.
1505 * gnulib/import/limits.in.h: Update.
1506 * gnulib/import/localcharset.c: Update.
1507 * gnulib/import/localcharset.h: Update.
1508 * gnulib/import/localtime-buffer.c: Update.
1509 * gnulib/import/localtime-buffer.h: Update.
1510 * gnulib/import/lstat.c: Update.
1511 * gnulib/import/m4/00gnulib.m4: Update.
1512 * gnulib/import/m4/__inline.m4: Update.
1513 * gnulib/import/m4/absolute-header.m4: Update.
1514 * gnulib/import/m4/alloca.m4: Update.
1515 * gnulib/import/m4/builtin-expect.m4: Update.
1516 * gnulib/import/m4/canonicalize.m4: Update.
1517 * gnulib/import/m4/chdir-long.m4: Update.
1518 * gnulib/import/m4/close.m4: Update.
1519 * gnulib/import/m4/closedir.m4: Update.
1520 * gnulib/import/m4/configmake.m4: Update.
1521 * gnulib/import/m4/d-ino.m4: Update.
1522 * gnulib/import/m4/d-type.m4: Update.
1523 * gnulib/import/m4/dirent_h.m4: Update.
1524 * gnulib/import/m4/dirfd.m4: Update.
1525 * gnulib/import/m4/dirname.m4: Update.
1526 * gnulib/import/m4/double-slash-root.m4: Update.
1527 * gnulib/import/m4/dup.m4: Update.
1528 * gnulib/import/m4/dup2.m4: Update.
1529 * gnulib/import/m4/eealloc.m4: Update.
1530 * gnulib/import/m4/environ.m4: Update.
1531 * gnulib/import/m4/errno_h.m4: Update.
1532 * gnulib/import/m4/error.m4: Update.
1533 * gnulib/import/m4/exponentd.m4: Update.
1534 * gnulib/import/m4/exponentl.m4: Update.
1535 * gnulib/import/m4/extensions.m4: Update.
1536 * gnulib/import/m4/extern-inline.m4: Update.
1537 * gnulib/import/m4/fchdir.m4: Update.
1538 * gnulib/import/m4/fcntl-o.m4: Update.
1539 * gnulib/import/m4/fcntl.m4: Update.
1540 * gnulib/import/m4/fcntl_h.m4: Update.
1541 * gnulib/import/m4/fdopendir.m4: Update.
1542 * gnulib/import/m4/filenamecat.m4: Update.
1543 * gnulib/import/m4/flexmember.m4: Update.
1544 * gnulib/import/m4/float_h.m4: Update.
1545 * gnulib/import/m4/fnmatch.m4: Update.
1546 * gnulib/import/m4/fnmatch_h.m4: Update.
1547 * gnulib/import/m4/fpieee.m4: Update.
1548 * gnulib/import/m4/frexp.m4: Update.
1549 * gnulib/import/m4/frexpl.m4: Update.
1550 * gnulib/import/m4/fstat.m4: Update.
1551 * gnulib/import/m4/fstatat.m4: Update.
1552 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1553 * gnulib/import/m4/getcwd-path-max.m4: Update.
1554 * gnulib/import/m4/getcwd.m4: Update.
1555 * gnulib/import/m4/getdtablesize.m4: Update.
1556 * gnulib/import/m4/getlogin.m4: Update.
1557 * gnulib/import/m4/getlogin_r.m4: Update.
1558 * gnulib/import/m4/getpagesize.m4: Update.
1559 * gnulib/import/m4/getprogname.m4: Update.
1560 * gnulib/import/m4/gettimeofday.m4: Update.
1561 * gnulib/import/m4/glibc21.m4: Update.
1562 * gnulib/import/m4/glob.m4: Update.
1563 * gnulib/import/m4/glob_h.m4: Update.
1564 * gnulib/import/m4/gnulib-cache.m4: Update.
1565 * gnulib/import/m4/gnulib-common.m4: Update.
1566 * gnulib/import/m4/gnulib-comp.m4: Update.
1567 * gnulib/import/m4/gnulib-tool.m4: Update.
1568 * gnulib/import/m4/hard-locale.m4: Update.
1569 * gnulib/import/m4/include_next.m4: Update.
1570 * gnulib/import/m4/inttypes-pri.m4: Update.
1571 * gnulib/import/m4/inttypes.m4: Update.
1572 * gnulib/import/m4/isnand.m4: Update.
1573 * gnulib/import/m4/isnanl.m4: Update.
1574 * gnulib/import/m4/largefile.m4: Update.
1575 * gnulib/import/m4/limits-h.m4: Update.
1576 * gnulib/import/m4/localcharset.m4: Update.
1577 * gnulib/import/m4/locale-fr.m4: Update.
1578 * gnulib/import/m4/locale-ja.m4: Update.
1579 * gnulib/import/m4/locale-zh.m4: Update.
1580 * gnulib/import/m4/localtime-buffer.m4: Update.
1581 * gnulib/import/m4/longlong.m4: Update.
1582 * gnulib/import/m4/lstat.m4: Update.
1583 * gnulib/import/m4/malloc.m4: Update.
1584 * gnulib/import/m4/malloca.m4: Update.
1585 * gnulib/import/m4/math_h.m4: Update.
1586 * gnulib/import/m4/mbrtowc.m4: Update.
1587 * gnulib/import/m4/mbsinit.m4: Update.
1588 * gnulib/import/m4/mbsrtowcs.m4: Update.
1589 * gnulib/import/m4/mbstate_t.m4: Update.
1590 * gnulib/import/m4/memchr.m4: Update.
1591 * gnulib/import/m4/memmem.m4: Update.
1592 * gnulib/import/m4/mempcpy.m4: Update.
1593 * gnulib/import/m4/memrchr.m4: Update.
1594 * gnulib/import/m4/mkdir.m4: Update.
1595 * gnulib/import/m4/mkstemp.m4: Update.
1596 * gnulib/import/m4/mmap-anon.m4: Update.
1597 * gnulib/import/m4/mode_t.m4: Update.
1598 * gnulib/import/m4/msvc-inval.m4: Update.
1599 * gnulib/import/m4/msvc-nothrow.m4: Update.
1600 * gnulib/import/m4/multiarch.m4: Update.
1601 * gnulib/import/m4/nocrash.m4: Update.
1602 * gnulib/import/m4/off_t.m4: Update.
1603 * gnulib/import/m4/onceonly.m4: Update.
1604 * gnulib/import/m4/open-cloexec.m4: Update.
1605 * gnulib/import/m4/open.m4: Update.
1606 * gnulib/import/m4/openat.m4: Update.
1607 * gnulib/import/m4/opendir.m4: Update.
1608 * gnulib/import/m4/pathmax.m4: Update.
1609 * gnulib/import/m4/rawmemchr.m4: Update.
1610 * gnulib/import/m4/readdir.m4: Update.
1611 * gnulib/import/m4/readlink.m4: Update.
1612 * gnulib/import/m4/realloc.m4: Update.
1613 * gnulib/import/m4/rename.m4: Update.
1614 * gnulib/import/m4/rewinddir.m4: Update.
1615 * gnulib/import/m4/rmdir.m4: Update.
1616 * gnulib/import/m4/save-cwd.m4: Update.
1617 * gnulib/import/m4/secure_getenv.m4: Update.
1618 * gnulib/import/m4/setenv.m4: Update.
1619 * gnulib/import/m4/signal_h.m4: Update.
1620 * gnulib/import/m4/ssize_t.m4: Update.
1621 * gnulib/import/m4/stat-time.m4: Update.
1622 * gnulib/import/m4/stat.m4: Update.
1623 * gnulib/import/m4/std-gnu11.m4: Update.
1624 * gnulib/import/m4/stdbool.m4: Update.
1625 * gnulib/import/m4/stddef_h.m4: Update.
1626 * gnulib/import/m4/stdint.m4: Update.
1627 * gnulib/import/m4/stdio_h.m4: Update.
1628 * gnulib/import/m4/stdlib_h.m4: Update.
1629 * gnulib/import/m4/strchrnul.m4: Update.
1630 * gnulib/import/m4/strdup.m4: Update.
1631 * gnulib/import/m4/strerror.m4: Update.
1632 * gnulib/import/m4/string_h.m4: Update.
1633 * gnulib/import/m4/strstr.m4: Update.
1634 * gnulib/import/m4/strtok_r.m4: Update.
1635 * gnulib/import/m4/sys_socket_h.m4: Update.
1636 * gnulib/import/m4/sys_stat_h.m4: Update.
1637 * gnulib/import/m4/sys_time_h.m4: Update.
1638 * gnulib/import/m4/sys_types_h.m4: Update.
1639 * gnulib/import/m4/tempname.m4: Update.
1640 * gnulib/import/m4/time_h.m4: Update.
1641 * gnulib/import/m4/unistd-safer.m4: Update.
1642 * gnulib/import/m4/unistd_h.m4: Update.
1643 * gnulib/import/m4/warn-on-use.m4: Update.
1644 * gnulib/import/m4/wchar_h.m4: Update.
1645 * gnulib/import/m4/wchar_t.m4: Update.
1646 * gnulib/import/m4/wctype_h.m4: Update.
1647 * gnulib/import/m4/wint_t.m4: Update.
1648 * gnulib/import/malloc.c: Update.
1649 * gnulib/import/malloc/scratch_buffer.h: Update.
1650 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1651 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1652 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1653 * gnulib/import/malloca.c: Update.
1654 * gnulib/import/malloca.h: Update.
1655 * gnulib/import/malloca.valgrind: Update.
1656 * gnulib/import/math.in.h: Update.
1657 * gnulib/import/mbrtowc.c: Update.
1658 * gnulib/import/mbsinit.c: Update.
1659 * gnulib/import/mbsrtowcs-impl.h: Update.
1660 * gnulib/import/mbsrtowcs-state.c: Update.
1661 * gnulib/import/mbsrtowcs.c: Update.
1662 * gnulib/import/memchr.c: Update.
1663 * gnulib/import/memmem.c: Update.
1664 * gnulib/import/mempcpy.c: Update.
1665 * gnulib/import/memrchr.c: Update.
1666 * gnulib/import/mkdir.c: Update.
1667 * gnulib/import/mkstemp.c: Update.
1668 * gnulib/import/msvc-inval.c: Update.
1669 * gnulib/import/msvc-inval.h: Update.
1670 * gnulib/import/msvc-nothrow.c: Update.
1671 * gnulib/import/msvc-nothrow.h: Update.
1672 * gnulib/import/open.c: Update.
1673 * gnulib/import/openat-die.c: Update.
1674 * gnulib/import/openat-priv.h: Update.
1675 * gnulib/import/openat-proc.c: Update.
1676 * gnulib/import/openat.c: Update.
1677 * gnulib/import/openat.h: Update.
1678 * gnulib/import/opendir.c: Update.
1679 * gnulib/import/pathmax.h: Update.
1680 * gnulib/import/pipe-safer.c: Update.
1681 * gnulib/import/rawmemchr.c: Update.
1682 * gnulib/import/readdir.c: Update.
1683 * gnulib/import/readlink.c: Update.
1684 * gnulib/import/realloc.c: Update.
1685 * gnulib/import/ref-add.sin: Update.
1686 * gnulib/import/ref-del.sin: Update.
1687 * gnulib/import/rename.c: Update.
1688 * gnulib/import/rewinddir.c: Update.
1689 * gnulib/import/rmdir.c: Update.
1690 * gnulib/import/same-inode.h: Update.
1691 * gnulib/import/save-cwd.c: Update.
1692 * gnulib/import/save-cwd.h: Update.
1693 * gnulib/import/scratch_buffer.h: Update.
1694 * gnulib/import/secure_getenv.c: Update.
1695 * gnulib/import/setenv.c: Update.
1696 * gnulib/import/signal.in.h: Update.
1697 * gnulib/import/stat-time.c: Update.
1698 * gnulib/import/stat-time.h: Update.
1699 * gnulib/import/stat-w32.c: Update.
1700 * gnulib/import/stat-w32.h: Update.
1701 * gnulib/import/stat.c: Update.
1702 * gnulib/import/stdbool.in.h: Update.
1703 * gnulib/import/stddef.in.h: Update.
1704 * gnulib/import/stdint.in.h: Update.
1705 * gnulib/import/stdio.in.h: Update.
1706 * gnulib/import/stdlib.in.h: Update.
1707 * gnulib/import/str-two-way.h: Update.
1708 * gnulib/import/strchrnul.c: Update.
1709 * gnulib/import/strdup.c: Update.
1710 * gnulib/import/streq.h: Update.
1711 * gnulib/import/strerror-override.c: Update.
1712 * gnulib/import/strerror-override.h: Update.
1713 * gnulib/import/strerror.c: Update.
1714 * gnulib/import/string.in.h: Update.
1715 * gnulib/import/stripslash.c: Update.
1716 * gnulib/import/strnlen1.c: Update.
1717 * gnulib/import/strnlen1.h: Update.
1718 * gnulib/import/strstr.c: Update.
1719 * gnulib/import/strtok_r.c: Update.
1720 * gnulib/import/sys_stat.in.h: Update.
1721 * gnulib/import/sys_time.in.h: Update.
1722 * gnulib/import/sys_types.in.h: Update.
1723 * gnulib/import/tempname.c: Update.
1724 * gnulib/import/tempname.h: Update.
1725 * gnulib/import/time.in.h: Update.
1726 * gnulib/import/unistd--.h: Update.
1727 * gnulib/import/unistd-safer.h: Update.
1728 * gnulib/import/unistd.in.h: Update.
1729 * gnulib/import/unsetenv.c: Update.
1730 * gnulib/import/verify.h: Update.
1731 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1732 * gnulib/import/wchar.in.h: Update.
1733 * gnulib/import/wctype.in.h: Update.
1734 * gnulib/import/xalloc-oversized.h: Update.
1735 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1736 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1737
1738 2018-08-16 Gary Benson <gbenson@redhat.com>
1739
1740 PR gdb/13000:
1741 * gdb/main.c (captured_main_1): Exit with nonzero status
1742 in batch mode if the last command to be executed failed.
1743 * NEWS: Mention the above.
1744
1745 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1746
1747 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1748 end of warning message.
1749
1750 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1751
1752 PR gdb/22943:
1753 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1754 (aarch64_extract_return_value): Use
1755 aapcs_is_vfp_call_or_return_candidate.
1756 (aarch64_return_in_memory): Likewise.
1757 (aarch64_store_return_value): Likewise.
1758
1759 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1760
1761 * aarch64-tdep.c
1762 (aapcs_is_vfp_call_or_return_candidate): Make static
1763 (pass_in_v_or_stack): Remove function.
1764 (pass_in_v_vfp_candidate): New function.
1765 (aarch64_push_dummy_call): Check for float register candidates.
1766
1767 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1768
1769 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1770 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1771 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1772
1773 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1774
1775 PR build/23399
1776 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1777 (struct ipa_sym_addresses): Rename to...
1778 (struct ipa_sym_addresses_common): ... this.
1779 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1780
1781 2018-08-28 Tom Tromey <tom@tromey.com>
1782
1783 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1784 (token_fifo): Now a std::vector.
1785 (yylex, c_parse): Update.
1786 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1787 (token_fifo): Now a std::vector.
1788 (yylex, d_parse): Update.
1789 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1790 (token_fifo): Now a std::vector.
1791 (yylex, go_parse): Update.
1792
1793 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1794
1795 * parser-defs.h (struct type_stack) <elements>: Change type to
1796 std::vector<union type_stack_elt>.
1797 <depth, size>: Remove.
1798 * parse.c (parse_exp_in_context_1): Adjust.
1799 (type_stack_reserve): Remove.
1800 (check_type_stack_depth): Remove.
1801 (insert_into_type_stack): Adjust to std::vector.
1802 (insert_type): Likewise.
1803 (push_type): Likewise.
1804 (push_type_int): Likewise.
1805 (insert_type_address_space): Likewise.
1806 (pop_type): Likewise.
1807 (pop_type_int): Likewise.
1808 (pop_typelist): Likewise.
1809 (pop_type_stack): Likewise.
1810 (append_type_stack): Likewise.
1811 (push_type_stack): Likewise.
1812 (get_type_stack): Likewise.
1813 (type_stack_cleanup): Likewise.
1814 (push_typelist): Likewise.
1815 (follow_types): Likewise.
1816 (_initialize_parse): Likewise.
1817
1818 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1819
1820 * NEWS: Mention csky target.
1821
1822 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1823 Hafiz Abid Qadeer <abidh@codesourcery.com>
1824 Don Breazeal <donb@codesourcery.com>
1825
1826 * csky-linux-tdep.c: New file.
1827 * csky-tdep.c: Likewise.
1828 * csky-tdep.h: Likewise.
1829 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1830 csky-tdep.o.
1831 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1832 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1833 * configure.tgt: Add csky support.
1834
1835 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1836
1837 * python/py-framefilter.c (py_print_frame): Print frame architecture
1838 when printing on an MI output.
1839
1840 2018-08-27 Tom Tromey <tom@tromey.com>
1841
1842 PR build/23087:
1843 * configure: Rebuild.
1844 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1845
1846 2018-08-27 Tom Tromey <tom@tromey.com>
1847
1848 * aarch64-linux-tdep.c
1849 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1850 casts to int.
1851
1852 2018-08-27 Tom Tromey <tom@tromey.com>
1853
1854 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1855 unsigned.
1856 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1857 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1858 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1859 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1860 unsigned.
1861
1862 2018-08-27 Tom Tromey <tom@tromey.com>
1863
1864 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1865 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1866
1867 2018-08-27 Tom Tromey <tom@tromey.com>
1868
1869 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1870 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1871 ULONGEST_MAX.
1872 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1873 ULONGEST_MAX.
1874 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1875 ULONGEST_MAX.
1876 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1877 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1878 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1879 ULONGEST_MAX.
1880 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1881 (ppc64_linux_sigaction_tramp_frame)
1882 (ppc32_linux_sighandler_tramp_frame)
1883 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1884 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1885 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1886 * mn10300-linux-tdep.c (am33_linux_sigframe)
1887 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1888 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1889 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1890 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1891 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1892 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1893 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1894 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1895 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1896 * microblaze-linux-tdep.c
1897 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1898 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1899 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1900 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1901 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1902 * common/common-types.h (ULONGEST_MAX): New define.
1903 (CORE_ADDR_MAX): Fix formatting.
1904 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1905 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1906 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1907 (arm_linux_rt_sigreturn_tramp_frame)
1908 (arm_eabi_linux_sigreturn_tramp_frame)
1909 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1910 (thumb2_eabi_linux_sigreturn_tramp_frame)
1911 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1912 (arm_linux_restart_syscall_tramp_frame)
1913 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1914 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1915 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1916 ULONGEST_MAX.
1917 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1918
1919 2018-08-27 Tom Tromey <tom@tromey.com>
1920
1921 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1922 CORE_ADDR_MAX.
1923 * mips-tdep.c (mips_deal_with_atomic_sequence)
1924 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1925 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1926 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1927 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1928 CORE_ADDR_MAX.
1929 * aarch64-tdep.c (aarch64_software_single_step): Use
1930 CORE_ADDR_MAX.
1931
1932 2018-08-27 Tom Tromey <tom@tromey.com>
1933
1934 * linespec.c (complete_linespec_component): Add cast to "char".
1935 * completer.c (completion_tracker::build_completion_result): Add
1936 cast to "char".
1937
1938 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1939
1940 * solist.h (struct solist, struct target_so_ops): Fix
1941 indentation.
1942
1943 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1944
1945 * ada-tasks.c (ada_task_info_s): Remove typedef.
1946 (DEF_VEC_O(ada_task_info_s)): Remove.
1947 (struct ada_tasks_inferior_data): Initialize fields.
1948 <task_list>: Make an std::vector.
1949 (get_ada_tasks_inferior_data): Allocate with new.
1950 (ada_get_task_number): Adjust.
1951 (get_task_number_from_id): Likewise.
1952 (valid_task_id): Likewise.
1953 (ada_get_task_info_from_ptid): Likewise.
1954 (iterate_over_live_ada_tasks): Likewise.
1955 (add_ada_task): Likewise.
1956 (read_known_tasks): Likewise.
1957 (ada_build_task_list): Likewise.
1958 (print_ada_task_info): Likewise.
1959 (info_task): Likewise.
1960 (task_command_1): Likewise.
1961
1962 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1963
1964 * ada-lang.c (add_angle_brackets): Return std::string.
1965
1966 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1967
1968 * python/py-threadevent.c (py_get_event_thread): Initialize
1969 pythread.
1970
1971 2018-08-24 Pedro Alves <palves@redhat.com>
1972
1973 * python/py-bpevent.c (create_breakpoint_event_object): Use
1974 copy-initialization.
1975 * python/py-continueevent.c (emit_continue_event): Use
1976 copy-initialization.
1977 * python/py-exitedevent.c (create_exited_event_object): Return a
1978 gdbpy_ref<>.
1979 (emit_exited_event): Use copy-initialization.
1980 * python/py-inferior.c (python_new_inferior)
1981 (python_inferior_deleted, add_thread_object): Use
1982 copy-initialization.
1983 * python/py-infevents.c (create_inferior_call_event_object)
1984 (create_register_changed_event_object)
1985 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1986 (emit_inferior_call_event, emit_memory_changed_event)
1987 (emit_register_changed_event): Use copy-initialization.
1988 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1989 Return a gdbpy_ref<>.
1990 (emit_new_objfile_event): Use copy-initialization.
1991 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1992 (emit_clear_objfiles_event): Use copy-initialization.
1993 * python/py-signalevent.c (create_signal_event_object): Use
1994 copy-initialization.
1995 * python/py-threadevent.c (create_thread_event_object): Use
1996 copy-initialization.
1997
1998 2018-08-24 Pedro Alves <palves@redhat.com>
1999 Simon Marchi <simon.marchi@ericsson.com>
2000
2001 PR gdb/23379
2002 * python/py-continueevent.c: Include "gdbthread.h".
2003 (create_continue_event_object): Add intro comment. Add 'ptid'
2004 parameter. Use it to find thread to pass to
2005 create_thread_event_object.
2006 (emit_continue_event): Pass PTID down to
2007 create_continue_event_object.
2008 * python/py-event.h (py_get_event_thread): Declare.
2009 (create_thread_event_object): Remove default from 'thread'
2010 parameter.
2011 * python/py-stopevent.c (create_stop_event_object): Use
2012 py_get_event_thread.
2013 * python/py-threadevent.c (get_event_thread): Rename to ...
2014 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2015 and use it to find the thread.
2016 (create_thread_event_object): Assert that THREAD isn't null.
2017 Don't find the event thread here.
2018
2019 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2020
2021 * block.h (blockrange, blockranges): New struct declarations.
2022 (struct block): Add new field named `ranges'.
2023 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2024 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2025 macros for accessing ranges in struct block.
2026 (make_blockranges): New declaration.
2027 block.c (make_blockranges): New function.
2028 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2029 for block.
2030 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2031 * blockframe.c (cache_pc_function_block): New static global.
2032 (clear_pc_function_cache): Clear cache_pc_function_block.
2033 (find_pc_partial_function): Move comment to symtab.h. Add
2034 support for non-contiguous blocks.
2035 * cli/cli-cmds.c (block.h): Include.
2036 (print_disassembly): Handle printing of non-contiguous blocks.
2037 (disassemble_current_function): Likewise.
2038 (disassemble_command): Likewise.
2039
2040 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2041 BLOCK_START.
2042 * blockframe.c (get_pc_function_start): Likewise.
2043 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2044 (gcc_symbol_address): Likewise.
2045 * compile/compile-object-run.c (compile_object_run): Likewise.
2046 * compile/compile.c (get_expr_block_and_pc): Likewise.
2047 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2048 (func_addr_to_tail_call_list): Likewise.
2049 * findvar.c (default_read_var_value): Likewise.
2050 * inline-frame.c (inline_frame_this_id): Likewise.
2051 (skip-inline_frames): Likewise.
2052 * infcmd.c (until_next_command): Likewise.
2053 * linespec.c (convert_linespec_to_sals): Likewise.
2054 * parse.c (parse_exp_in_context_1): Likewise.
2055 * printcmd.c (build_address_symbolic): likewise.
2056 (info_address_command): Likewise.
2057 symtab.c (find_function_start_sal): Likewise.
2058 (skip_prologue_sal): Likewise.
2059 (find_function_alias_target): Likewise.
2060 (find_gnu_ifunc): Likewise.
2061 * stack.c (find_frame_funname): Likewise.
2062 * symtab.c (fixup_symbol_section): Likewise.
2063 (find_function_start_sal): Likewise.
2064 (skip_prologue_sal): Likewsie.
2065 (find_function_alias_target): Likewise.
2066 (find_gnu_ifunc): Likewise.
2067 * tracepoint.c (info_scope_command): Likewise.
2068 * value.c (value_fn_field): Likewise.
2069
2070 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2071 in place of find_pc_partial_function.
2072 * blockframe.c (find_function_entry_range_from_pc): New function.
2073 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2074 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2075 for each range in a block.
2076
2077
2078 2018-08-23 Xavier Roirand <roirand@adacore.com>
2079
2080 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2081 incrementation.
2082
2083 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2084
2085 * solib-svr4.c (read_program_headers_from_bfd): Return
2086 gdb::optional<gdb::byte_vector>.
2087 (svr4_exec_displacement): Adjust.
2088
2089 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2090
2091 * solib-svr4.c (read_program_header): Return
2092 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2093 (find_program_interpreter): Return
2094 gdb::optional<gdb::byte_vector>.
2095 (scan_dyntag_auxv): Adjust.
2096 (enable_break): Adjust.
2097 (svr4_exec_displacement): Adjust.
2098
2099 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2100
2101 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2102 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2103
2104 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2105
2106 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2107 string_vprintf.
2108 * guile/scm-utils.c (gdbscm_printf): Likewise.
2109 * serial.c (serial_printf): Likewise.
2110 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2111
2112 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2113
2114 * stack.c (print_frame): Print frame architecture when printing on
2115 an MI output.
2116 * NEWS: Mention new "arch" attribute in frame output.
2117
2118 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2119
2120 * arch/aarch64.h (aarch64_regnum): Update comment.
2121
2122 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2123
2124 * NEWS: Add SVE to 8.2 section.
2125
2126 2018-08-21 Pedro Alves <palves@redhat.com>
2127
2128 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2129 out from gdbscm_parse_function_args.
2130 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2131 gdbscm_parse_function_args_1.
2132
2133 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2134
2135 PR gdb/17816
2136 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2137 operator.
2138
2139 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2140
2141 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2142
2143 2018-08-19 Michael Spang <spang@google.com>
2144
2145 PR gdb/11786
2146 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2147 for PT_TLS segments.
2148
2149 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2150
2151 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2152 dwarf_variable_value.
2153 * dwarf2-frame.c (class dwarf_expr_executor):
2154 Add override for dwarf_variable_value.
2155 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2156 (class symbol_needs_eval_context): Likewise.
2157 (indirect_synthetic_pointer): Add forward declaration.
2158 (sect_variable_value): New function.
2159 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2160 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2161 for DW_OP_GNU_variable_value.
2162
2163 2018-08-16 Tom Tromey <tom@tromey.com>
2164
2165 * top.c (read_command_file): Update.
2166 (command_line_input): Remove "repeat" argument.
2167 * ada-lang.c (get_selections): Update.
2168 * linespec.c (decode_line_2): Update.
2169 * defs.h (command_line_input): Remove argument.
2170 * cli/cli-script.c (read_next_line): Update.
2171 * python/py-gdb-readline.c: Update.
2172
2173 2018-08-17 Tom Tromey <tom@tromey.com>
2174
2175 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2176 command_line_input.
2177
2178 2018-08-15 Tom Tromey <tom@tromey.com>
2179
2180 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2181
2182 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2183
2184 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2185 If used, use find_pc_partial_function to find address range
2186 to disassemble.
2187 * mi/mi-main.c (mi_cmd_list_features): Report
2188 "data-disassemble-a-option" feature.
2189 * NEWS: Mention new -data-disassemble option -a.
2190
2191 2018-08-13 Tom Tromey <tom@tromey.com>
2192
2193 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2194
2195 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2196
2197 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2198 (aarch64_linux_collect_sve_regset): Likewise.
2199 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2200 * regcache.h (regcache_map_entry_size): New function.
2201
2202 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2203
2204 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2205 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2206 (SVE_HEADER_VL_LENGTH): Likewise.
2207 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2208 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2209 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2210 (SVE_HEADER_SIZE_OFFSET): Likewise.
2211 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2212 (SVE_HEADER_VL_OFFSET): Likewise.
2213 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2214 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2215 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2216 (SVE_HEADER_SIZE): Likewise.
2217 (aarch64_linux_core_read_vq): Add function.
2218 (aarch64_linux_core_read_description): Check for SVE section.
2219
2220 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2221
2222 * aarch64-fbsd-tdep.c
2223 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2224 collect_size.
2225 * aarch64-linux-tdep.c
2226 (aarch64_linux_iterate_over_regset_sections): Likewise.
2227 * alpha-linux-tdep.c
2228 (alpha_linux_iterate_over_regset_sections):
2229 * alpha-nbsd-tdep.c
2230 (alphanbsd_iterate_over_regset_sections): Likewise.
2231 * amd64-fbsd-tdep.c
2232 (amd64fbsd_iterate_over_regset_sections): Likewise.
2233 * amd64-linux-tdep.c
2234 (amd64_linux_iterate_over_regset_sections): Likewise.
2235 * arm-bsd-tdep.c
2236 (armbsd_iterate_over_regset_sections): Likewise.
2237 * arm-fbsd-tdep.c
2238 (arm_fbsd_iterate_over_regset_sections): Likewise.
2239 * arm-linux-tdep.c
2240 (arm_linux_iterate_over_regset_sections): Likewise.
2241 * corelow.c (get_core_registers_cb): Likewise.
2242 (core_target::fetch_registers): Likewise.
2243 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2244 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2245 * gdbarch.h (void): Regenerate.
2246 * gdbarch.sh: Add supply_size and collect_size.
2247 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2248 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2249 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2250 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2251 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2252 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2253 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2254 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2255 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2256 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2257 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2258 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2259 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2260 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2261 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2262 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2263 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2264 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2265 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2266 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2267 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2268 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2269 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2270 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2271 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2272 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2273 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2274 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2275 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2276 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2277
2278 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2279
2280 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2281 with string_printf.
2282
2283 2018-08-10 Keith Seitz <keiths@redhat.com>
2284
2285 * compile/compile-c-support.c (add_code_header, add_code_footer):
2286 Move into policy class.
2287 (c_push_user_expression, pop_user_expression_nop)
2288 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2289 (compile_program): New host class.
2290 (c_compile_program): New typedef.
2291 (c_compute_porgram): Use c_compile_program.
2292
2293 2018-08-10 Keith Seitz <keiths@redhat.com>
2294
2295 * compile/compile-internal.h (compile_instance::~compile_instance):
2296 Remove calls to htab_delete.
2297 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2298 * compile.c (compile_instance::compile_instance): Initialize
2299 htab unique pointers.
2300 (compile_instance::get_cached_type, compile_instance::insert_type)
2301 (compile_instance::error_symbol_once): Update for unique_ptr.
2302
2303 2018-08-10 Keith Seitz <keiths@redhat.com>
2304
2305 * compile/compile-c-symbols.c (struct symbol_error)
2306 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2307 (compile_instance::insert_symbol_error)
2308 (compile_instance::error_symbol_once): Move to ...
2309 * compile/compile.c: ... here.
2310
2311 2018-08-10 Keith Seitz <keiths@redhat.com>
2312
2313 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2314 instead of `new_compile_instance'.
2315 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2316 Update description.
2317 If the symbol error map is not initialized, create it.
2318 (generate_c_for_for_one_symbol): Do not check/initialize
2319 the symbol error map.
2320 * compile/compile-c-types.c (compile_c_instance): Make a class.
2321 Update all callers.
2322 (compile_instance::compile_instance): Initialize the type cache.
2323 (get_cached_type): New function.
2324 (insert_type): Update description.
2325 (compile_c_instance::m_default_cflags): Define.
2326 (convert_type): Update description. Use get_cached_type.
2327 (delete_instance): Moved to destructor.
2328 (new_compile_instance): Moved to constructor.
2329 * compile/compile-c.h (compile_c_instance): Make class inheriting
2330 from compile_instance.
2331 <base>: Remove field.
2332 <type_map, symbol_err_map>: Move to base class.
2333 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2334 * compile/compile-internal.h (compile_instance): Make class.
2335 <type_map_t, symbol_err_map_t>: Define.
2336 <fe>: Rename to `m_gcc_fe'.
2337 <scope, block, gcc_target_options>: Add `m_' prefix.
2338 <m_type_map, m_symbol_err_map>: New fields, moved from
2339 compile_c_instance.
2340 <destroy>: Remove.
2341 (convert_type, new_compile_instance): Remove.
2342 * compile/compile.c (cleanup_compile_instance): Remove.
2343 (compile_to_object): Use unique_ptr to eliminate cleanups.
2344 (compile_instance::set_print_callback, compile_instance::version)
2345 (compile_instance::set_verbose)
2346 (compile_instance::set_driver_filename)
2347 (compile_instance::set_triplet_regexp)
2348 (compile_instance::set_arguments)
2349 (compile_instance::set_source_file)
2350 (compile_instance::compile): Define.
2351
2352 2018-08-10 Keith Seitz <keiths@redhat.com>
2353
2354 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2355 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2356 gcc-c-fe.def to define C plugin.
2357 (delete_instance): Delete `c_plugin'.
2358 (new_compile_instance): Initialize `c_plugin'.
2359 * compile/compile-c.h: Include gcc_c_plugin.h.
2360 (struct compile_c_instance) <c_plugin>: New member.
2361 * gcc-c-plugin.h: New file.
2362 Update all callers with API change.
2363
2364 2018-08-10 Keith Seitz <keiths@redhat.com>
2365
2366 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2367 (HFILES_NO_SRCDIR): ... to here.
2368 Add compile-internal.h and compile-c.h.
2369 * compile/compile-c-support.c: Include compile-c.h.
2370 * compile/compile-c-symbols.c: Include compile-c.h.
2371 (generate_c_for_variable_locations): Update comment.
2372 * compile/compile-c-types.c: Include compile-c.h.
2373 * compile/compile-c.h: New file -- moved C language declarations
2374 from other files here.
2375 * compile/compile-internal.h: Do not include hashtab.h or
2376 common/enum-flags.h.
2377 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2378 (gcc_convert_symbol, gcc_symbol_address)
2379 (generate_c_for_variable_locations, c_get_mode_for_size)
2380 (c_get_range_decl_name): Definitions moved to compile-c.h.
2381 * compile/compile-loc2c.c: Include compile-c.h.
2382
2383 2018-08-10 Keith Seitz <keiths@redhat.com>
2384
2385 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2386 (c_symbol_substitution_name): ... this.
2387 Update all callers.
2388
2389 2018-08-10 Keith Seitz <keiths@redhat.com>
2390
2391 * compile/compile-c-support.c (c_compute_program): Use
2392 unique_xmalloc_ptr to eliminate cleanup.
2393 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2394 Return a unique_xmalloc_ptr and eliminate cleanup.
2395 * compile/compile-internal.h (generate_c_for_variable_locations):
2396 Return unique_xmalloc_ptr and update description.
2397
2398 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2399
2400 * corelow.c (core_target::get_core_register_section): Rename
2401 min_size to section_min_size.
2402
2403 2018-08-09 Jim Wilson <jimw@sifive.com>
2404
2405 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2406 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2407 * NEWS: Mention new GNU/Linux RISC-V target.
2408 * configure.host: Add riscv*-*-linux*.
2409 * configure.nat: Add riscv*.
2410 * configure.tgt: Add riscv*-*-linux*.
2411 * riscv-linux-nat.c: New file.
2412 * riscv-linux-tdep.c: New file.
2413
2414 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2415
2416 * infrun.c (resume): Make static, add forward declaration.
2417 (proceed): Update header comment.
2418 * infrun.h (resume): Delete declaration.
2419
2420 2018-08-09 Tom Tromey <tom@tromey.com>
2421
2422 * riscv-tdep.h: Minor formatting fixes.
2423
2424 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2425
2426 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2427 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2428 (test_mkdir_recursive): Likewise.
2429 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2430
2431 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2432
2433 * valarith.c (value_subscripted_rvalue): If an array is not in
2434 memory, and we don't know the upper bound, then we can't know that
2435 the requested element exists or not.
2436
2437 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2438
2439 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2440 (target_options_to_string): Add comment.
2441
2442 2018-08-08 Tom Tromey <tom@tromey.com>
2443
2444 * unittests/scoped_mmap-selftests.c: Check result of "write".
2445
2446 2018-08-08 Jim Wilson <jimw@sifive.com>
2447
2448 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2449 (decode_register_index_short): New.
2450 (decode_j_type_insn, decode_cj_type_insn): New.
2451 (decode_b_type_insn, decode_cb_type_insn): New.
2452 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2453 local xlen. Check xlen when decoding ambiguous compressed insns. In
2454 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2455 is_c_sw_insn instead of is_sw_insn.
2456 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2457 (riscv_software_single_step): New.
2458 * riscv-tdep.h (riscv_software_single_step): Declare.
2459
2460 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2461 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2462
2463 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2464
2465 PR gdb/18050:
2466 * target.c (dispose_inferior): Don't dispose of inferiors that are
2467 already killed.
2468
2469 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2470
2471 * remote.c (remote_target::download_tracepoint): Change char* to
2472 const char*.
2473
2474 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2475
2476 * target.h (target_options_to_string): Return an std::string.
2477 * target.c (str_comma_list_concat_elem): Return void, use
2478 std::string.
2479 (do_option): Likewise.
2480 (target_options_to_string): Return an std::string.
2481 * linux-nat.c (linux_nat_target::wait): Adjust.
2482 * target-debug.h (target_debug_print_options): Adjust.
2483
2484 2018-08-07 Tom Tromey <tom@tromey.com>
2485
2486 * Makefile.in (CPPFLAGS): New variable.
2487 (INTERNAL_CPPFLAGS): Use it.
2488
2489 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2490
2491 * NEWS: Mention the index cache.
2492
2493 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2494
2495 * common/pathstuff.h (get_standard_cache_dir): New.
2496 * common/pathstuff.c (get_standard_cache_dir): New.
2497 * build-id.h (build_id_to_string): New.
2498 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2499 DEBUG_STR_SUFFIX): Move to here.
2500 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2501 DEBUG_STR_SUFFIX): Move from there.
2502 (write_psymtabs_to_index): Make non-static, add basename
2503 parameter. Write to temporary files, rename when done.
2504 (save_gdb_index_command): Adjust call to
2505 write_psymtabs_to_index.
2506 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2507 field.
2508 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2509 (get_gdb_index_contents_from_cache): New.
2510 (get_gdb_index_contents_from_cache_dwz): New.
2511 (dwarf2_initialize_objfile): Read index from cache.
2512 (dwarf2_build_psymtabs): Save to index.
2513 * dwarf-index-cache.h: New file.
2514 * dwarf-index-cache.c: New file.
2515 * dwarf-index-write.h: New file.
2516
2517 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2518
2519 * gnulib/aclocal.m4: Re-generate.
2520 * gnulib/config.in: Re-generate.
2521 * gnulib/configure: Re-generate.
2522 * gnulib/import/Makefile.am: Re-generate.
2523 * gnulib/import/Makefile.in: Re-generate.
2524 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2525 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2526 * gnulib/import/m4/mkdir.m4: New file.
2527 * gnulib/import/mkdir.c: New file.
2528 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2529 module.
2530
2531 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2532
2533 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2534 * common/scoped_mmap.c: New file.
2535 * common/scoped_mmap.h (destroy): New method.
2536 (~scoped_mmap, reset): Use destroy.
2537 (scoped_mmap): New move constructor.
2538 (mmap_file): New declaration.
2539 * unittests/scoped_mmap-selftests.c (test_normal,
2540 test_invalid_filename, run_tests): New functions.
2541 (_initialize_scoped_mmap_selftests): Register selftest.
2542
2543 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2544
2545 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2546 (read_gdb_index_from_buffer): ... this. Remove section
2547 parameter, add buffer parameter.
2548 (get_gdb_index_contents_ftype,
2549 get_gdb_index_contents_dwz_ftype): New typedefs.
2550 (dwarf2_read_gdb_index): Add callback parameters to get the
2551 index contents.
2552 (get_gdb_index_contents_from_section): New.
2553 (dwarf2_initialize_objfile): Update call to
2554 dwarf2_read_gdb_index.
2555
2556 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2557
2558 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2559 (gdb_open_cloexec): Likewise.
2560 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2561 (commandline_from_pid): Likewise.
2562 (linux_xfer_osdata_threads): Likewise.
2563 (linux_xfer_osdata_fds): Likewise.
2564 * ada-lang.c (is_package_name): Likewise.
2565 * auxv.c (procfs_xfer_auxv): Likewise.
2566 * breakpoint.c (print_one_breakpoint_location): Use
2567 uiout::field_fmt.
2568 (print_one_catch_solib): Use string_printf.
2569 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2570 (add_pe_forwarded_sym): Likewise.
2571 * dwarf2read.c (create_type_unit_group): Likewise.
2572 (build_error_marker_type): Likewise.
2573 * infcall.c (get_function_name): Likewise.
2574 * valprint.c (print_converted_chars_to_obstack): Likewise.
2575 * xtensa-tdep.c (xtensa_register_type): Likewise.
2576
2577 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2578
2579 * remote.c (remote_target::download_tracepoint): Fix format
2580 string errors.
2581
2582 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2583
2584 * tracefile.c: Include common/byte-vector.h.
2585 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2586 with trace_regblock_size if needed. Update uses of buf.
2587
2588 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2589
2590 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2591 std::vector<unsigned char>.
2592 * tracepoint.c (collection_list::collection_list): Remove
2593 m_regs_mask initializer from initializer list. Resize
2594 m_regs_mask using the largest remote register number.
2595 (collection_list::add_remote_register): Remove size check on
2596 m_regs_mask. Use at to access element.
2597 (collection_list::stringify): Change type of temp_buf to
2598 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2599 stringify the register mask. Use pack_hex_byte for the register
2600 mask.
2601
2602 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2603
2604 * tracepoint.h (class collection_list) <add_register>: Remove.
2605 <add_remote_register, add_ax_registers, add_local_register>:
2606 Declare.
2607 <add_memrange>: Add scope parameter.
2608 * tracepoint.c (encode_actions_1): Likewise.
2609 (collection_list::add_register): Rename to ...
2610 (collection_list::add_remote_register): ... this. Update
2611 comment.
2612 (collection_list::add_ax_registers, add_local_register): New
2613 methods.
2614 (collection_list::add_memrange): Add scope parameter. Call
2615 add_local_register instead of add_register.
2616 (finalize_tracepoint_aexpr): New function.
2617 (collection_list::collect_symbol): Update calls to add_memrange.
2618 Call add_local_register instead of add_register. Call
2619 add_ax_registers. Call finalize_tracepoint_aexpr.
2620 (encode_actions_1): Get remote regnos for $reg action. Call
2621 add_remote_register, add_ax_registers, and add_local_register.
2622 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2623 (validate_actionline): Call finalize_tracepoint_aexpr.
2624
2625 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2626
2627 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2628 Replace array buf with gdb::char_vector buf, of size
2629 get_remote_packet_size (). Replace references to buf and
2630 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2631 and xsnprintf with snprintf. Raise errors if the buffer is too
2632 small.
2633
2634 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2635
2636 * remote.c (remote_target::download_tracepoint): Fix the has_more
2637 predicate in the QTDP action list iteration.
2638
2639 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2640
2641 * remote.c (remote_target::download_tracepoint): Fix indentation
2642 in for block.
2643
2644 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2645
2646 * proc-api.c (_initialize_proc_api): Remove c, unused.
2647 * procfs.c (procfs_init_inferior): Remove signals, unused.
2648 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2649 unused.
2650
2651 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2652 Andrew Burgess <andrew.burgess@embecosm.com>
2653
2654 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2655 'W_STOPCODE (0)' as this could be ambiguous.
2656
2657 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2658
2659 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2660 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2661 "ai_socktype").
2662
2663 2018-08-02 Tom Tromey <tom@tromey.com>
2664
2665 PR symtab/16842.
2666 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2667 symbols.
2668 (process_structure_scope): Likewise.
2669
2670 2018-08-02 Xavier Roirand <roirand@adacore.com>
2671
2672 PR gdb/22629:
2673 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2674 kill inferior.
2675
2676 2018-08-02 Tom Tromey <tom@tromey.com>
2677
2678 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2679 (darwin_suspend_inferior, darwin_resume_inferior)
2680 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2681 (darwin_check_new_threads): Check result of get_darwin_inferior.
2682
2683 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2684
2685 GDB 8.1.1 released.
2686
2687 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2688
2689 * varobj.c (varobj_get_path_expr_parent): Report an error if
2690 parent is a dynamic varobj.
2691
2692 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2693
2694 * gnulib/aclocal.m4: Re-generate.
2695 * gnulib/config.in: Re-generate.
2696 * gnulib/configure: Re-generate.
2697 * gnulib/import/Makefile.in: Re-generate.
2698 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2699 * gnulib/import/m4/onceonly.m4: Re-generate.
2700
2701 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2702
2703 * target-descriptions.c (struct xml_test_tdesc): New.
2704 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2705 (record_xml_tdesc): Update.
2706 (maintenance_check_xml_descriptions): Update.
2707 * target-descriptions.h (record_xml_tdesc): Update comment.
2708
2709 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2710
2711 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2712 checking array bounds are defined.
2713
2714 2018-07-30 Tom Tromey <tom@tromey.com>
2715
2716 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2717 irreflexivity violation.
2718
2719 2018-07-30 Tom Tromey <tom@tromey.com>
2720
2721 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2722 * value.c (unpack_long): Remove lint code.
2723 * valops.c (value_ind): Remove lint code.
2724 * valarith.c (value_x_binop, value_x_unop, value_equal)
2725 (value_pos): Remove lint code.
2726
2727 2018-07-28 Tom de Vries <tdevries@suse.de>
2728
2729 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2730 with undefined upper bound as <optimized out>.
2731
2732 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2733
2734 * gcore.in: Rename variable "name" to "prefix". Expand
2735 "usage" text.
2736
2737 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2738
2739 * windows-nat.c (windows_nat_target::create_inferior): Update to
2740 call close() in global namespace.
2741
2742 2018-07-26 Tom Tromey <tom@tromey.com>
2743
2744 * dwarf-index-write.c (add_address_entry): Don't add objfile
2745 offsets.
2746 * dbxread.c (find_stab_function): Rename from
2747 find_stab_function_addr. Return a bound_minimal_symbol.
2748 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2749 Don't add objfile offsets.
2750 (end_psymtab): Use raw_text_low, raw_text_high,
2751 MSYMBOL_VALUE_RAW_ADDRESS.
2752 (read_ofile_symtab): Update.
2753 (process_one_symbol): Update.
2754 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2755 offsets.
2756 (dw2_relocate): Remove.
2757 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2758 searching addrmap.
2759 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2760 Update.
2761 (process_psymtab_comp_unit_reader, add_partial_symbol)
2762 (add_partial_subprogram, dwarf2_ranges_read): Update.
2763 (load_partial_dies): Update.
2764 (add_address_entry): Don't add objfile offsets.
2765 (dwarf2_build_include_psymtabs): Update.
2766 (create_addrmap_from_aranges): Don't add objfile offsets.
2767 (dw2_find_pc_sect_compunit_symtab): Update.
2768 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2769 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2770 Update.
2771 (parse_partial_symbols): Don't add objfile offsets. Use
2772 raw_text_low, raw_text_high. Update.
2773 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2774 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2775 or call 'relocate' quick function. Clear psymbol_map.
2776 * psympriv.h (struct partial_symbol) <address>: Add section
2777 offset.
2778 <set_unrelocated_address>: Rename from set_address.
2779 <raw_text_low, raw_text_high>: New methods.
2780 <text_low, text_high>: Add objfile parameter.
2781 (add_psymbol_to_bcache): Add 'section' parameter. Call
2782 set_unrelocated_address.
2783 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2784 (find_pc_psymbol): Update.
2785 (fixup_psymbol_section, relocate_psymtabs): Remove.
2786 (dump_psymtab, psym_functions): Update.
2787 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2788 parameter.
2789 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2790 (start_psymtab_common): Update.
2791 * symfile-debug.c (debug_qf_relocate): Remove.
2792 (debug_sym_quick_functions): Update.
2793 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2794 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2795 Update.
2796
2797 2018-07-26 Tom Tromey <tromey@redhat.com>
2798
2799 * dbxread.c (end_psymtab): Use text_high_valid and
2800 text_low_valid.
2801 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2802 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2803 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2804 Update comment.
2805 <text_low_valid, text_high_valid>: New fields.
2806 <set_text_low, set_text_high>: Update.
2807 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2808
2809 2018-07-26 Tom Tromey <tom@tromey.com>
2810
2811 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2812 Update.
2813 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2814 textlow and texthigh fields.
2815 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2816 Update.
2817 * mdebugread.c (parse_lines, parse_partial_symbols)
2818 (psymtab_to_symtab_1): Update.
2819 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2820 Rename fields. Update comment. Now private.
2821 <text_low, text_high, set_text_low, set_text_high>: New methods.
2822 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2823 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2824 (start_psymtab_common, maintenance_info_psymtabs)
2825 (maintenance_check_psymtabs): Update.
2826 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2827 texthigh fields.
2828 (scan_xcoff_symtab): Update.
2829
2830 2018-07-26 Tom Tromey <tromey@redhat.com>
2831
2832 * psympriv.h (struct partial_symbol) <unrelocated_address,
2833 address, set_address>: New methods.
2834 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2835 (fixup_psymbol_section, relocate_psymtabs): Update.
2836 (print_partial_symbols): Add 'objfile' parameter. Update.
2837 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2838 Update.
2839
2840 2018-07-26 Tom Tromey <tom@tromey.com>
2841
2842 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2843 (debug_names::write_psymbols): Update.
2844 * psympriv.h (struct partial_symbol): Derive from
2845 general_symbol_info.
2846 <obj_section>: New method.
2847 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2848 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2849 (find_pc_sect_psymbol, fixup_psymbol_section)
2850 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2851 (print_partial_symbols, recursively_search_psymtabs)
2852 (compare_psymbols, psymbol_hash, psymbol_compare)
2853 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2854 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2855
2856 2018-07-26 Tom Tromey <tromey@redhat.com>
2857
2858 * dbxread.c (end_psymtab): Remove dead code.
2859
2860 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2861
2862 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2863 DWARF unwinders are disabled.
2864 * dwarf2-frame.c: Add dwarf2read.h include.
2865 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2866 disabled.
2867 (dwarf2_frame_unwinders_enabled_p): Define.
2868 (show_dwarf_unwinders_enabled_p): New function.
2869 (_initialize_dwarf2_frame): Register switch to control DWARF
2870 unwinder use.
2871 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2872 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2873 (show_dwarf_cmdlist): Remove static keyword.
2874 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2875 (show_dwarf_cmdlist): Declare.
2876 * NEWS: Document new feature.
2877
2878 2018-07-26 Tom de Vries <tdevries@suse.de>
2879
2880 PR breakpoints/23366
2881 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2882
2883 2018-07-26 Tom de Vries <tdevries@suse.de>
2884
2885 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2886 DW_AT_count can't be translated to a dynamic prop.
2887
2888 2018-07-25 Tom de Vries <tdevries@suse.de>
2889
2890 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2891 try/catch.
2892
2893 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2894
2895 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2896
2897 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2898
2899 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2900
2901 2018-07-24 Keith Seitz <keiths@redhat.comt
2902
2903 PR symtab/23010
2904 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2905 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2906 instead of add_symbol_to_list.
2907 (read_file_scope): Call prepare_one_comp_unit before reading
2908 any other DIEs.
2909
2910 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2911
2912 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2913
2914 2018-07-24 Tom Tromey <tom@tromey.com>
2915
2916 * utils.c (malloc, realloc, free): Don't declare.
2917 * configure, config.in: Rebuild.
2918 * configure.ac: Don't check for declarations of free, malloc, or
2919 realloc.
2920
2921 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2922
2923 * aarch64-linux-nat.c
2924 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2925 variable.
2926 * arm-linux-nat.c (fetch_regs): Likewise.
2927 (store_regs): Likewise.
2928 (fetch_vfp_regs): Likewise.
2929 (store_vfp_regs): Likewise.
2930 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2931 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2932 (arm_linux_nat_target::insert_watchpoint): Likewise.
2933 (arm_linux_nat_target::remove_watchpoint): Likewise.
2934 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2935 Likewise.
2936 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2937 Likewise.
2938 * ppc-linux-nat.c (fetch_register): Likewise.
2939 (fetch_all_gp_regs): Likewise.
2940 (fetch_ppc_registers): Likewise.
2941 (store_all_gp_regs): Likewise.
2942 (store_ppc_registers): Likewise.
2943 (hwdebug_insert_point): Likewise.
2944 (can_use_watchpoint_cond_accel): Likewise.
2945 * remote-sim.c (gdb_os_write_stdout): Likewise.
2946
2947 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2948 Tom Tromey <tom@tromey.com>
2949
2950 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2951 test for it.
2952 * configure: Rebuild.
2953
2954 2018-07-22 Tom Tromey <tom@tromey.com>
2955
2956 * regformats/regdat.sh: Define xmltarget_${name} inside
2957 #ifndef IN_PROCESS_AGENT.
2958
2959 2018-07-22 Tom Tromey <tom@tromey.com>
2960
2961 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2962
2963 2018-07-22 Tom Tromey <tom@tromey.com>
2964
2965 * symfile.c (reread_symbols): Notify iter, not objfile.
2966
2967 2018-07-22 Tom Tromey <tom@tromey.com>
2968
2969 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2970 Use arch_ops.
2971 (ravenscar_thread_target::prepare_to_store): Likewise.
2972
2973 2018-07-22 Tom Tromey <tom@tromey.com>
2974
2975 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2976 unused variable. Call value_fetch_lazy when needed.
2977 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2978 Remove unused variable. Call value_fetch_lazy when needed.
2979
2980 2018-07-22 Tom Tromey <tom@tromey.com>
2981
2982 * m32c-tdep.c (mark_dma): Return void.
2983 (make_regs): Remove unused declarations.
2984
2985 2018-07-22 Tom Tromey <tom@tromey.com>
2986
2987 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2988 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2989 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2990 bkscm_get_valid_block_smob_arg_unsafe for effect.
2991
2992 2018-07-22 Tom Tromey <tom@tromey.com>
2993
2994 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2995 value_type.
2996
2997 2018-07-22 Tom Tromey <tom@tromey.com>
2998
2999 * windows-nat.c (saved_context): Conditionally define.
3000 * remote.c (remote_target::remote_btrace_maybe_reopen):
3001 Conditionally declare "warned".
3002 * inflow.c (sigquit_ours): Conditionally define.
3003 (new_tty): Move "tty" declaration inside #if.
3004 * guile/guile.c (guile_datadir): Conditionally define.
3005 * charset.c (set_be_le_names): Move some declarations inside #if.
3006 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3007 #if.
3008 (parse_xml_btrace_conf): Likewise.
3009
3010 2018-07-22 Tom Tromey <tom@tromey.com>
3011
3012 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3013
3014 2018-07-22 Tom Tromey <tom@tromey.com>
3015
3016 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3017 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3018 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3019 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3020 * stack.c (frame_apply_level_command): Remove unused variable.
3021 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3022 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3023 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3024 unused variable.
3025 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3026 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3027 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3028 variable.
3029 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3030 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3031 variable.
3032 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3033 Remove unused variable.
3034 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3035 variable.
3036 * common/tdesc.c (print_xml_feature::visit): Remove unused
3037 variable.
3038 * compile/compile-object-load.c (store_regs): Remove unused
3039 variables.
3040 * complaints.c (clear_complaints): Remove unused variable.
3041 * corelow.c (core_target_open): Remove unused variable.
3042 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3043 variable.
3044 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3045 variable.
3046 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3047 variable.
3048 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3049 variable.
3050 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3051 variable.
3052 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3053 variable.
3054 * ia64-tdep.c (examine_prologue): Remove unused variable.
3055 * infcall.c (run_inferior_call): Remove unused variable.
3056 * inferior.c (exit_inferior): Remove unused variable.
3057 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3058 * linespec.c (decode_line_2): Remove unused variable.
3059 * linux-nat.c (super_close): Remove.
3060 * linux-tdep.c (linux_info_proc): Remove unused variable.
3061 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3062 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3063 Remove unused variable.
3064 * parse.c (find_minsym_type_and_address): Remove unused variable.
3065 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3066 variable.
3067 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3068 variable.
3069 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3070 variables.
3071 * record-btrace.c (record_btrace_target::store_registers): Remove
3072 unused variable.
3073 (cmd_show_record_btrace_cpu): Remove unused variable.
3074 * riscv-tdep.c (riscv_register_reggroup_p)
3075 (riscv_push_dummy_call, riscv_return_value): Remove unused
3076 variable.
3077 * rust-exp.y (literal): Remove unused variable.
3078 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3079 unused variable.
3080 <STRUCTOP_ANONYMOUS>: Likewise.
3081 * s390-linux-tdep.c (s390_linux_init_abi_31)
3082 (s390_linux_init_abi_64): Remove unused variable.
3083 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3084 (file_select_thread, net_windows_open, _initialize_ser_windows):
3085 Remove unused variables.
3086 * symtab.c (find_pc_sect_line): Remove unused variable.
3087 * target-memory.c (compute_garbled_blocks): Remove unused
3088 variable.
3089 (target_write_memory_blocks): Remove unused variable.
3090 * target.c (target_stack::unpush): Remove unused variables.
3091 * tracepoint.c (start_tracing, all_tracepoint_actions)
3092 (merge_uploaded_trace_state_variables)
3093 (print_one_static_tracepoint_marker): Remove unused variable.
3094 * unittests/basic_string_view/element_access/char/1.cc (test01):
3095 Remove unused variable.
3096 * windows-nat.c (windows_continue, windows_add_all_dlls)
3097 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3098 Remove unused variables.
3099
3100 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3101
3102 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3103 attr_profile in HAVE_ELF.
3104 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3105 HAVE_ELF.
3106
3107 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3108
3109 * frame.c (frame_register_unwind): Change parameter name.
3110 (frame_unwind_register): Likewise.
3111 (frame_unwind_register_value): Likewise.
3112 (frame_unwind_register_signed): Likewise.
3113 (frame_unwind_register_unsigned): Likewise.
3114 * frame.h (frame_register_unwind): Likewise.
3115 (frame_unwind_register): Likewise.
3116 (frame_unwind_register_value): Likewise.
3117 (frame_unwind_register_signed): Likewise.
3118 (frame_unwind_register_unsigned): Likewise.
3119 (frame_unwind_arch): Likewise.
3120
3121 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3122
3123 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3124 ISA maintenance.
3125
3126 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3127
3128 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3129 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3130 hand.
3131
3132 2018-07-20 Keith Seitz <keiths@redhat.com>
3133
3134 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3135 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3136 m_compunit_symtab, m_language>: Add "m_" prefix.
3137 Update all uses.
3138 * buildsym.c: Update all uses.
3139
3140 2018-07-20 Tom Tromey <tom@tromey.com>
3141
3142 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3143 * buildsym.h (record_line_ftype): Remove typedef.
3144
3145 2018-07-20 Tom Tromey <tom@tromey.com>
3146
3147 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3148 (end_expandable_symtab): Likewise.
3149 (end_symtab_get_static_block): Likewise.
3150 (end_symtab_from_static_block): Likewise.
3151 * buildsym-legacy.c (augment_type_symtab): Remove.
3152 (end_expandable_symtab): Remove.
3153 (end_symtab_get_static_block): Remove.
3154 (end_symtab_from_static_block): Remove.
3155
3156 2018-07-20 Tom Tromey <tom@tromey.com>
3157
3158 * dwarf2read.c: Include buildsym.h.
3159 (struct dwarf2_cu) <builder>: New method.
3160 (fixup_go_packaging): Update.
3161 (process_full_comp_unit, process_full_type_unit): Update. Don't
3162 use scoped_free_pendings.
3163 (using_directives): Add "cu" parameter, remove "language".
3164 (read_import_statement, setup_type_unit_groups, )
3165 (read_func_scope, read_lexical_block_scope)
3166 (dwarf2_record_block_ranges, read_namespace): Update.
3167 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3168 (lnp_state_machine::handle_end_sequence): Update.
3169 (class lnp_state_machine) <m_cu>: New member.
3170 <m_record_line_callback>: Remove.
3171 <m_currently_recording_lines>: New member.
3172 (lnp_state_machine::handle_set_file): Update.
3173 (noop_record_line): Remove.
3174 (dwarf_record_line_p): Add cu parameter.
3175 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3176 (lnp_state_machine::record_line)
3177 (lnp_state_machine::lnp_state_machine)
3178 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3179 (dwarf_decode_lines): Update.
3180 (dwarf2_start_subfile): Add cu parameter.
3181 (dwarf2_start_symtab, new_symbol): Update.
3182 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3183 Remove dwarf2_per_objfile parameter.
3184 (dwarf_decode_macros): Update.
3185
3186 2018-07-20 Tom Tromey <tom@tromey.com>
3187
3188 * stabsread.c (define_symbol): Update.
3189 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3190 * dwarf2read.c (new_symbol): Update.
3191 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3192 * cp-namespace.c: Include buildsym.h.
3193 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3194 * buildsym-legacy.c (get_buildsym_compunit): New function.
3195
3196 2018-07-20 Tom Tromey <tom@tromey.com>
3197
3198 * xcoffread.c: Include buildsym-legacy.h.
3199 * windows-nat.c: Include buildsym-legacy.h.
3200 * stabsread.c: Include buildsym-legacy.h.
3201 * mdebugread.c: Include buildsym-legacy.h.
3202 * buildsym-legacy.h: New file.
3203 * buildsym-legacy.c: New file, from buildsym.c.
3204 * go32-nat.c: Include buildsym-legacy.h.
3205 * dwarf2read.c: Include buildsym-legacy.h.
3206 * dbxread.c: Include buildsym-legacy.h.
3207 * cp-namespace.c: Include buildsym-legacy.h.
3208 * coffread.c: Include buildsym-legacy.h.
3209 * buildsym.h: Move some contents to buildsym-legacy.h.
3210 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3211 buildsym-legacy.c.
3212 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3213
3214 2018-07-20 Tom Tromey <tom@tromey.com>
3215
3216 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3217 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3218 (buildsym_compunit::buildsym_compunit)
3219 (buildsym_compunit::~buildsym_compunit)
3220 (buildsym_compunit::get_macro_table): Define.
3221
3222 2018-07-20 Tom Tromey <tom@tromey.com>
3223
3224 * buildsym.c (reset_symtab_globals): Remove.
3225 (buildsym_compunit::end_symtab_from_static_block): Update.
3226 (buildsym_compunit::augment_type_symtab): Update.
3227 (end_symtab_from_static_block): Call free_buildsym_compunit.
3228 (augment_type_symtab, end_symtab, end_expandable_symtab):
3229 Likewise.
3230
3231 2018-07-20 Tom Tromey <tom@tromey.com>
3232
3233 * arch-utils.c: Do not include buildsym.h.
3234 * mipsread.c: Do not include buildsym.h.
3235 * machoread.c: Do not include buildsym.h.
3236 * elfread.c: Do not include buildsym.h.
3237
3238 2018-07-20 Tom Tromey <tom@tromey.com>
3239
3240 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3241 initialization.
3242 (buildsym_compunit): Add new constructor.
3243 (struct buildsym_compunit) <get_last_source_file, finish_block,
3244 record_block_range, start_subfile, patch_subfile_names,
3245 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3246 set_last_source_start_addr, get_last_source_start_addr,
3247 get_local_using_directives, set_local_using_directives,
3248 get_global_using_directives, outermost_context_p,
3249 get_current_context_stack, get_context_stack_depth,
3250 get_current_subfile, get_local_symbols, get_file_symbols,
3251 get_global_symbols, record_debugformat, record_producer,
3252 push_context, pop_context, end_symtab_get_static_block,
3253 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3254 New public methods.
3255 <record_pending_block, finish_block_internal, make_blockvector,
3256 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3257 private methods.
3258 Update all users.
3259
3260 2018-05-22 Tom Tromey <tom@tromey.com>
3261
3262 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3263 parameter.
3264 (finish_block_internal): Update.
3265
3266 2018-07-20 Tom Tromey <tom@tromey.com>
3267
3268 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3269 parameter.
3270 (finish_block_internal): Update.
3271
3272 2018-07-20 Tom Tromey <tom@tromey.com>
3273
3274 * buildsym.h (EXTERN): Don't define or undef.
3275 * buildsym.c (EXTERN): Don't define.
3276
3277 2018-07-20 Tom Tromey <tom@tromey.com>
3278
3279 * buildsym.c: Remove TODO comment.
3280
3281 2018-07-20 Tom Tromey <tom@tromey.com>
3282
3283 * coffread.c (coff_symtab_read): Update.
3284 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3285 (xcoff_new_init): Update.
3286 * mipsread.c (mipscoff_new_init): Update.
3287 * mdebugread.c (mdebug_build_psymtabs): Update.
3288 * elfread.c (elf_new_init): Update.
3289 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3290 Update.
3291 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3292 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3293 (stabsect_build_psymtabs): Update.
3294 * buildsym.h (buildsym_init): Don't declare.
3295 * buildsym.c: Update comment.
3296 (prepare_for_building): Remove.
3297 (start_symtab, restart_symtab): Update.
3298 (reset_symtab_globals): Update comment.
3299 (buildsym_init): Remove.
3300
3301 2018-07-20 Tom Tromey <tom@tromey.com>
3302
3303 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3304 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3305 (read_enum_type, common_block_start, common_block_end)
3306 (cleanup_undefined_types_1, finish_global_stabs): Update.
3307 * mdebugread.c (psymtab_to_symtab_1): Update.
3308 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3309 (read_lexical_block_scope, new_symbol): Update.
3310 * dbxread.c (process_one_symbol): Update.
3311 * coffread.c (coff_symtab_read, process_coff_symbol)
3312 (coff_read_enum_type): Update.
3313 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3314 declare.
3315 (get_local_symbols, get_file_symbols, get_global_symbols): New
3316 functions.
3317 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3318 m_global_symbols.
3319 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3320 (~scoped_free_pendings): Update.
3321 (finish_block, prepare_for_building, reset_symtab_globals)
3322 (end_symtab_get_static_block, end_symtab_with_blockvector)
3323 (augment_type_symtab, push_context): Update.
3324 (get_local_symbols, get_file_symbols, get_global_symbols): New
3325 functions.
3326 (buildsym_init): Update.
3327
3328 2018-07-20 Tom Tromey <tom@tromey.com>
3329
3330 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3331 (process_full_type_unit): Likewise.
3332 (dwarf2_start_symtab): Set list_in_scope.
3333
3334 2018-07-20 Tom Tromey <tom@tromey.com>
3335
3336 * dwarf2read.c (process_psymtab_comp_unit_reader)
3337 (build_type_psymtabs_reader): Do not set list_in_scope.
3338
3339 2018-07-20 Tom Tromey <tom@tromey.com>
3340
3341 * buildsym.c (free_pendings): Remove.
3342 (add_symbol_to_list, scoped_free_pendings)
3343 (finish_block_internal, buildsym_init): Update.
3344
3345 2018-07-20 Tom Tromey <tom@tromey.com>
3346
3347 * xcoffread.c (read_xcoff_symtab): Update.
3348 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3349 Update.
3350 * dbxread.c (process_one_symbol): Update.
3351 * coffread.c (coff_symtab_read): Update.
3352 * buildsym.h (finish_block): Update.
3353 * buildsym.c (finish_block): Remove "listhead" argument.
3354 (end_symtab_get_static_block): Update.
3355
3356 2018-07-20 Tom Tromey <tom@tromey.com>
3357
3358 * buildsym.h (class scoped_free_pendings): Remove constructor.
3359 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3360 method.
3361 <m_pending_block_obstack, m_pending_blocks>: New members.
3362 (pending_block_obstack, pending_blocks): Remove.
3363 (scoped_free_pendings::scoped_free_pendings): Default.
3364 (~scoped_free_pendings): Update.
3365 (free_pending_blocks): Remove.
3366 (finish_block_internal, record_pending_block, make_blockvector)
3367 (end_symtab_get_static_block, augment_type_symtab, push_context)
3368 (buildsym_init): Update.
3369
3370 2018-07-20 Tom Tromey <tom@tromey.com>
3371
3372 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3373 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3374 members.
3375 (pending_addrmap, pending_addrmap_obstack)
3376 (pending_addrmap_interesting): Remove.
3377 (scoped_free_pendings, record_block_range, make_blockvector)
3378 (prepare_for_building, reset_symtab_globals, buildsym_init):
3379 Update.
3380
3381 2018-07-20 Tom Tromey <tom@tromey.com>
3382
3383 * xcoffread.c (process_linenos): Update.
3384 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3385 * mdebugread.c (psymtab_to_symtab_1): Update.
3386 * dwarf2read.c (setup_type_unit_groups)
3387 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3388 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3389 * dbxread.c (process_one_symbol): Update.
3390 * coffread.c (coff_symtab_read, enter_linenos)
3391 (process_coff_symbol): Update.
3392 * buildsym.h (current_subfile): Don't declare.
3393 (get_current_subfile): Declare.
3394 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3395 member.
3396 (start_subfile, free_buildsym_compunit, push_subfile)
3397 (prepare_for_building, start_symtab): Update.
3398 (get_current_subfile): New function.
3399
3400 2018-07-20 Tom Tromey <tom@tromey.com>
3401
3402 * coffread.c (coff_symtab_read): Update.
3403 * xcoffread.c (read_xcoff_symtab): Update.
3404 * dwarf2read.c (new_symbol): Update.
3405 (read_func_scope, read_lexical_block_scope): Update.
3406 * dbxread.c (process_one_symbol): Update.
3407 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3408 (outermost_context_p): Remove macro.
3409 (outermost_context_p, get_current_context_stack)
3410 (get_context_stack_depth): Declare.
3411 (pop_context): Return struct context_stack.
3412 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3413 member.
3414 (context_stack_size): Remove.
3415 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3416 (prepare_for_building, end_symtab_get_static_block)
3417 (augment_type_symtab, push_context): Update.
3418 (pop_context): Return struct context_stack.
3419 (outermost_context_p, get_current_context_stack)
3420 (get_context_stack_depth): New functions.
3421 (buildsym_init): Update.
3422
3423 2018-07-20 Tom Tromey <tom@tromey.com>
3424
3425 * rust-exp.y: Now a pure parser. Update all rules.
3426 (%union): Move earlier.
3427 (current_parser, work_obstack): Remove globals.
3428 (rust_parser, ~rust_parser): Update.
3429 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3430 lex_character, lex_number, lex_string, lex_identifier,
3431 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3432 convert_name, convert_params_to_expression,
3433 convert_ast_to_expression, ast_basic_type, ast_operation,
3434 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3435 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3436 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3437 ast_array_type, ast_slice_type, ast_reference_type,
3438 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3439 (rust_parse): Update.
3440 (rustyyerror, rustyylex): Add parser parameter.
3441 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3442 (rust_lex_stringish_test, rust_lex_test_sequence)
3443 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3444 (rust_lex_test_push_back, rust_lex_tests): Update.
3445
3446 2018-07-19 Pedro Alves <palves@redhat.com>
3447
3448 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3449 gdb::unique_xmalloc_ptr.
3450 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3451 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3452 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3453 copy-initialization.
3454 * guile/scm-pretty-print.c (ppscm_print_children): Use
3455 gdb::unique_xmalloc_ptr instead of cleanups.
3456 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3457 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3458 gdb::unique_xmalloc_ptr.
3459 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3460 Adjust to use gdb::unique_xmalloc_ptr.
3461 * guile/scm-utils.c (extract_arg): Adjust.
3462 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3463 gdb::unique_xmalloc_ptr instead of a cleanup.
3464
3465 2018-07-19 Tom Tromey <tom@tromey.com>
3466
3467 * utils.c (do_value_free_to_mark)
3468 (make_cleanup_value_free_to_mark): Remove.
3469 * utils.h (make_cleanup_value_free_to_mark): Remove.
3470
3471 2018-07-19 Pedro Alves <palves@redhat.com>
3472
3473 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3474 forwarding reference.
3475
3476 2018-07-18 Pedro Alves <palves@redhat.com>
3477
3478 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3479 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3480 cleanup.
3481
3482 2018-07-18 Pedro Alves <palves@redhat.com>
3483
3484 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3485 exceptions.
3486 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3487 (gdbscm_wrap): New.
3488 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3489 directly instead of a cleanup.
3490 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3491 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3492 (vlscm_binop_gdbthrow): New, factored out from ...
3493 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3494 (vlscm_rich_compare): Use gdbscm_wrap.
3495 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3496 instead of a cleanup.
3497 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3498 cleanup.
3499 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3500 Use xfree directly instead of a cleanup.
3501 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3502 Adjust to use gdbscm_wrap and scoped_value_mark.
3503 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3504 (gdbscm_value_address, gdbscm_value_dereference)
3505 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3506 scoped_value_mark.
3507 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3508 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3509 scoped_value_mark.
3510 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3511 gdbscm_wrap and scoped_value_mark.
3512 (gdbscm_value_to_string): Use xfree directly instead of a
3513 cleanup. Move 'buffer' unique_ptr to TRY scope.
3514 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3515 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3516 scoped_value_mark.
3517 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3518 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3519 scoped_value_mark.
3520 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3521 gdbscm_wrap.
3522
3523 2018-07-18 Tom de Vries <tdevries@suse.de>
3524
3525 * findvar.c (default_read_var_value): Also resolve dynamic type for
3526 LOC_OPTIMIZED_OUT vars.
3527
3528 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3529
3530 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3531 decoding.
3532
3533 2018-07-17 Tom Tromey <tom@tromey.com>
3534
3535 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3536 (compute_enum_list, pascm_set_param_value_x)
3537 (gdbscm_parameter_value): Update.
3538 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3539 (gdbscm_scm_to_host_string): Update.
3540 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3541 Update.
3542 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3543 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3544 * guile/scm-string.c (gdbscm_scm_to_string): Return
3545 unique_xmalloc_ptr.
3546 (gdbscm_scm_to_host_string): Likewise.
3547
3548 2018-07-17 Tom Tromey <tom@tromey.com>
3549
3550 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3551 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3552 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3553 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3554 unique_xmalloc_ptr.
3555
3556 2018-07-17 Tom Tromey <tom@tromey.com>
3557
3558 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3559 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3560 Update.
3561 * guile/scm-cmd.c (cmdscm_function): Update.
3562 * guile/scm-pretty-print.c
3563 (ppscm_print_exception_unless_memory_error): Update.
3564 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3565 Return unique_xmalloc_ptr.
3566
3567 2018-07-17 Tom Tromey <tom@tromey.com>
3568
3569 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3570 Use string_printf.
3571
3572 2018-07-17 Jim Wilson <jimw@sifive.com>
3573
3574 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3575 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3576 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3577 unecessary braces after EF_RISCV_RVC test. Delete call to
3578 set_gdbarch_decr_pc_after_break.
3579
3580 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3581 RISCV_LAST_FP_REGNUM + 1.
3582 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3583
3584 2018-07-17 Tom Tromey <tom@tromey.com>
3585
3586 * configure.ac: Remove --disable-gdbcli.
3587 * configure: Rebuild.
3588 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3589 (SUBDIR_CLI_CFLAGS): Remove.
3590 (SFILES): Use SUBDIR_CLI_SRCS.
3591 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3592
3593 2018-07-17 Tom Tromey <tom@tromey.com>
3594
3595 PR gdb/18624:
3596 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3597
3598 2018-07-16 Jim Wilson <jimw@sifive.com>
3599
3600 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3601
3602 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3603
3604 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3605 variable.
3606 (libunwind_frame_sniffer): Likewise.
3607 (libunwind_frame_prev_register): Likewise.
3608 (libunwind_sigtramp_frame_sniffer): Likewise.
3609 * ia64-tdep.c (ia64_access_reg): Likewise.
3610 (ia64_access_rse_reg): Likewise.
3611 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3612 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3613
3614 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3615
3616 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3617
3618 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3619
3620 * remote-sim.c (gdbsim_target::close,
3621 gdbsim_target::mourn_inferior): Remove unused variables.
3622
3623 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3624
3625 * ia64-tdep.c (ktab_buf): New global.
3626 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3627 (get_kernel_table): Adjust.
3628
3629 2018-07-16 Tom Tromey <tom@tromey.com>
3630
3631 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3632 * dwarf2read.c (using_directives, new_symbol): Use
3633 outermost_context_p.
3634 * dbxread.c (process_one_symbol): Use outermost_context_p.
3635 * coffread.c (coff_symtab_read): Use outermost_context_p.
3636
3637 2018-07-16 Tom Tromey <tom@tromey.com>
3638
3639 * dwarf2read.c (using_directives, read_func_scope)
3640 (read_lexical_block_scope): Update.
3641 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3642 * buildsym.h (local_using_directives, global_using_directives):
3643 Don't declare.
3644 (get_local_using_directives, set_local_using_directives)
3645 (get_global_using_directives): Declare.
3646 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3647 m_global_using_directives>: New members.
3648 (finish_block_internal, prepare_for_building)
3649 (reset_symtab_globals, end_symtab_get_static_block)
3650 (push_context): Update.
3651 (get_local_using_directives, set_local_using_directives)
3652 (get_global_using_directives): New functions.
3653 (buildsym_init): Update.
3654
3655 2018-07-16 Tom Tromey <tom@tromey.com>
3656
3657 * xcoffread.c (xcoff_initial_scan): Don't call
3658 free_pending_blocks.
3659 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3660 * buildsym.h (class scoped_free_pendings): Add constructor.
3661 (free_pending_blocks): Don't declare.
3662 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3663 (free_pending_blocks): Now static.
3664
3665 2018-07-16 Tom Tromey <tom@tromey.com>
3666
3667 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3668 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3669 member.
3670 (struct subfile_stack): Remove.
3671 (subfile_stack): Remove.
3672 (push_subfile, pop_subfile, buildsym_init): Update.
3673
3674 2018-07-16 Tom Tromey <tom@tromey.com>
3675
3676 * buildsym.c (push_subfile): Use gdb_assert.
3677 (pop_subfile): Use gdb_assert.
3678
3679 2018-07-16 Tom Tromey <tom@tromey.com>
3680
3681 * buildsym.h (merge_symbol_lists): Remove.
3682 * buildsym.c (merge_symbol_lists): Remove.
3683
3684 2018-07-16 Tom Tromey <tom@tromey.com>
3685
3686 * stabsread.c (scan_file_globals): Update comment.
3687 * stabsread.h (scan_file_globals): Move from buildsym.h.
3688 * buildsym.h (scan_file_globals): Move to stabsread.h.
3689
3690 2018-07-16 Tom Tromey <tom@tromey.com>
3691
3692 * xcoffread.c (xcoff_new_init): Update.
3693 * mipsread.c (mipscoff_new_init): Update.
3694 * mdebugread.c (mdebug_build_psymtabs): Update.
3695 * elfread.c (elf_new_init): Update.
3696 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3697 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3698 * buildsym.h (buildsym_new_init): Don't declare.
3699 * buildsym.c (buildsym_new_init): Remove.
3700
3701 2018-07-16 Tom Tromey <tom@tromey.com>
3702
3703 * stabsread.h (within_function): Move from buildsym.h.
3704 * stabsread.c (start_stabs): Clear within_function.
3705 * coffread.c (coff_start_symtab): Clear within_function.
3706 * buildsym.h (within_function): Move to stabsread.h.
3707 * buildsym.c (prepare_for_building): Update.
3708
3709 2018-07-16 Tom Tromey <tom@tromey.com>
3710
3711 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3712 * dwarf2read.c (dwarf2_start_symtab): Don't set
3713 processing_gcc_compilation.
3714 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3715
3716 2018-07-16 Tom Tromey <tom@tromey.com>
3717
3718 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3719 (next_symbol_text_func): Move from buildsym.h.
3720 * stabsread.c (hashname): Move from buildsym.c.
3721 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3722 (next_symbol_text_func, hashname): Move to stabsread.h.
3723 * buildsym.c: Don't include bcache.h
3724 (hashname): Move to stasbread.c.
3725
3726 2018-07-16 Tom Tromey <tom@tromey.com>
3727
3728 * buildsym.h (context_stack_size): Don't declare.
3729 * buildsym.c (context_stack_size): New global.
3730
3731 2018-07-16 Tom Tromey <tom@tromey.com>
3732
3733 * dbxread.c (processing_acc_compilation): New global.
3734 * buildsym.h (processing_acc_compilation): Don't declare.
3735
3736 2018-07-16 Tom Tromey <tom@tromey.com>
3737
3738 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3739 * dbxread.c (read_ofile_symtab): Update.
3740 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3741 * buildsym.h (last_source_start_addr): Remove.
3742 (set_last_source_start_addr, get_last_source_start_addr):
3743 Declare.
3744 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3745 parameter.
3746 (struct buildsym_compunit) <m_last_source_start_addr>: New
3747 member.
3748 (prepare_for_building): Remove start_addr parameter.
3749 (start_symtab, restart_symtab, end_symtab_get_static_block)
3750 (end_symtab_with_blockvector): Update.
3751 (set_last_source_start_addr, get_last_source_start_addr): New
3752 functions.
3753
3754 2018-07-16 Tom Tromey <tom@tromey.com>
3755
3756 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3757 member.
3758 (have_line_numbers): Remove.
3759 (record_line, prepare_for_building, end_symtab_get_static_block)
3760 (augment_type_symtab): Update.
3761
3762 2018-07-16 Tom Tromey <tom@tromey.com>
3763
3764 * buildsym.c (~buildsym_compunit): Free the macro table.
3765 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3766 methods.
3767 <m_pending_macros>: New member.
3768 (pending_macros): Remove.
3769 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3770 (reset_symtab_globals, end_symtab_get_static_block)
3771 (end_symtab_with_blockvector, augment_type_symtab)
3772 (buildsym_init): Update.
3773
3774 2018-07-16 Tom Tromey <tom@tromey.com>
3775
3776 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3777 parameter.
3778 (buildsym_compunit::set_last_source_file): New method.
3779 <m_last_source_file>: New member.
3780 (prepare_for_building): Remove "name" parameter.
3781 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3782 (last_source_file): Remove.
3783 (set_last_source_file, get_last_source_file): Update.
3784
3785 2018-07-16 Tom Tromey <tom@tromey.com>
3786
3787 * buildsym.c (prepare_for_building): Add assert.
3788
3789 2018-07-16 Tom Tromey <tom@tromey.com>
3790
3791 * buildsym.c (~buildsym_compunit): Update.
3792 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3793 (start_subfile, patch_subfile_names)
3794 (end_symtab_with_blockvector): Update.
3795
3796 2018-07-16 Tom Tromey <tom@tromey.com>
3797
3798 * buildsym.c (struct buildsym_compunit): Add constructor,
3799 destructor, initializers.
3800 (start_buildsym_compunit): Remove.
3801 (free_buildsym_compunit): Use "delete".
3802 (start_symtab, restart_symtab): Use "new".
3803
3804 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3805
3806 * symfile.c (set_objfile_default_section_offset): Remove struct
3807 keyword.
3808
3809 2018-07-14 Stafford Horne <shorne@gmail.com>
3810
3811 * (Responsible Maintainers): Add myself as or1k maintainer.
3812
3813 2018-07-13 Tom Tromey <tom@tromey.com>
3814
3815 * symfile.c (set_objfile_default_section_offset): Use extra braces
3816 around initializer.
3817
3818 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3819
3820 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3821 non-branching basr.
3822
3823 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3824
3825 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3826 unittests/cli-utils-selftests.c
3827 * unittests/cli-utils-selftests.c: New file.
3828
3829 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3830
3831 * NEWS: Mention new commands. Mention change to 'thread apply'.
3832
3833 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3834
3835 * thread.c (thr_try_catch_cmd): New function.
3836 (thread_apply_all_command): Handle qcs flags.
3837 (thread_apply_command): Handle qcs flags.
3838 (taas_command): New function.
3839 (tfaas_command): New function.
3840 (_initialize_thread): Update to setup the new commands 'taas
3841 and 'tfaas'. Change doc string for 'thread apply'.
3842
3843 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3844
3845 * stack.c: (trailing_outermost_frame): New function, mostly
3846 extracted from backtrace_command_1.
3847 (leading_innermost_frame): New function.
3848 (backtrace_command_1): Update to call trailing_outermost_frame.
3849 (frame_apply_command_count): New function.
3850 (frame_apply_level_command): New function.
3851 (frame_apply_all_command): New function.
3852 (frame_apply_command): New function.
3853 (faas_command): New function.
3854 (frame_cmd_list): New variable.
3855 (_initialize_stack): Update to setup the new commands 'frame apply'
3856 and 'faas'.
3857
3858 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3859
3860 * cli-utils.c (number_or_range_parser::get_number): Only handle
3861 numbers or convenience var as numbers.
3862 (parse_flags): New function.
3863 (parse_flags_qcs): New function.
3864 (number_or_range_parser::finished): Ensure parsing end is detected
3865 before end of string.
3866 * cli-utils.h (parse_flags): New function.
3867 (parse_flags_qcs): New function.
3868 (number_or_range_parser): Remove m_finished bool.
3869 (number_or_range_parser::skip_range): Set m_in_range to false.
3870
3871 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3872
3873 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3874 on Windows.
3875
3876 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3877 Jan Kratochvil <jan.kratochvil@redhat.com>
3878 Paul Fertser <fercerpav@gmail.com>
3879 Tsutomu Seki <sekiriki@gmail.com>
3880 Pedro Alves <palves@redhat.com>
3881
3882 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3883 'unittests/parse-connection-spec-selftests.c'.
3884 (COMMON_SFILES): Add 'common/netstuff.c'.
3885 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3886 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3887 * common/netstuff.c: New file.
3888 * common/netstuff.h: New file.
3889 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3890 (wait_for_connect): Update comment. New parameter
3891 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3892 Use 'sock' directly instead of 'scb->fd'.
3893 (try_connect): New function, with code from 'net_open'.
3894 (net_open): Rewrite main loop to deal with multiple
3895 sockets/addresses. Handle IPv6-style hostnames; implement
3896 support for IPv6 connections.
3897 * unittests/parse-connection-spec-selftests.c: New file.
3898
3899 2018-07-11 Pedro Alves <palves@redhat.com>
3900
3901 PR gdb/23377
3902 * remote.c (remote_target::remote_detach_pid): Call
3903 set_current_process.
3904
3905 2018-07-11 Pedro Alves <palves@redhat.com>
3906
3907 * h8300-tdep.c (h8300_gdbarch_init): Remove
3908 set_gdbarch_ecoff_reg_to_regnum calls.
3909
3910 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3911
3912 PR c++/23373
3913 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3914 offsets/sizes for static members of a class/struct.
3915
3916 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3917
3918 * target-descriptions.c (tdesc_register_bitsize): Rename.
3919 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3920 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3921 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3922
3923 2018-07-10 Tom Tromey <tom@tromey.com>
3924
3925 * breakpoint.c (moribund_locations): Now static and a
3926 std::vector.
3927 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3928 (build_bpstat_chain, update_global_location_list)
3929 (breakpoint_retire_moribund): Update.
3930 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3931 VEC.
3932
3933 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3934
3935 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3936 (riscv_register_reggroup_p): Use new function, remove unneeded
3937 parenthesis.
3938 (riscv_push_dummy_call): Extend assert to compare against xlen or
3939 flen based on register type.
3940
3941 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3942
3943 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3944
3945 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3946
3947 * remote.c (show_hardware_watchpoint_limit): New function.
3948 (show_hardware_watchpoint_length_limit): New function.
3949 (show_hardware_breakpoint_limit): New function.
3950 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3951 where appropriate, update help text.
3952
3953 2018-07-09 Tom Tromey <tom@tromey.com>
3954
3955 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3956 (CLIBS): Don't mention NAT_CLIBS.
3957
3958 2018-07-09 Tom Tromey <tom@tromey.com>
3959
3960 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3961 (LIBGDB_OBS, clean mostlyclean): Update.
3962 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3963
3964 2018-07-09 Tom Tromey <tom@tromey.com>
3965
3966 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3967 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3968 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3969
3970 2018-07-09 Tom Tromey <tom@tromey.com>
3971
3972 * Makefile.in (ALLDEPFILES): Remove exec.c.
3973 (COMMON_OBS): Remove exec.o.
3974 (COMMON_SFILES): Add exec.c.
3975
3976 2018-07-09 Tom Tromey <tom@tromey.com>
3977
3978 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3979
3980 2018-07-09 Tom Tromey <tom@tromey.com>
3981
3982 * Makefile.in (clean mostlyclean): Remove stamp-version.
3983 (version.c): Depend on stamp-version.
3984 (stamp-version): New rule, from version.c rule.
3985
3986 2018-07-09 Tom Tromey <tom@tromey.com>
3987
3988 * Makefile.in (init.c): Depend on stamp-init.
3989 (stamp-init): New rule, from init.c rule.
3990 (clean mostlyclean): Remove stamp-init.
3991
3992 2018-07-09 Tom Tromey <tom@tromey.com>
3993
3994 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3995 SUBDIR_GCC_COMPILE_SRCS.
3996
3997 2018-07-09 Tom Tromey <tom@tromey.com>
3998
3999 * Makefile.in (init.c): Remove some unused sed rules.
4000
4001 2018-07-09 Tom Tromey <tom@tromey.com>
4002
4003 * Makefile.in (TSOBS): Remove.
4004 (INIT_FILES): Update.
4005 (LIBGDB_OBS): Update.
4006 (COMMON_SFILES): Add inflow.c.
4007 (SFILES): Remove inflow.c.
4008
4009 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4010
4011 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4012
4013 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4014
4015 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4016 get_saveloc_name, is_signal_frame_name, step_name,
4017 init_remote_name, create_addr_space_name,
4018 destroy_addr_space_name, search_unwind_table_name,
4019 find_dyn_list_name): Constify.
4020
4021 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4022
4023 * darwin-nat.c (darwin_pthread_kill): New function.
4024 (darwin_resume_thread): Use darwin_pthread_kill.
4025
4026 2018-07-05 Tom de Vries <tdevries@suse.de>
4027
4028 * macroexp.c (macro_buffer) <operator=>: New member function.
4029
4030 2018-07-04 Tom Tromey <tom@tromey.com>
4031
4032 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4033
4034 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4035
4036 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4037 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4038 * maint.c: Likewise.
4039 * top.c: Likewise.
4040
4041 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4042
4043 * NEWS: Create a new section for the next release branch.
4044 Rename the section of the current branch, now that it has
4045 been cut.
4046
4047 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4048
4049 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4050 * version.in: Bump version to 8.2.50.DATE-git.
4051
4052 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4053 Pedro Alves <palves@redhat.com>
4054
4055 * linux-nat.c (linux_init_ptrace): Rename to ...
4056 (linux_init_ptrace_procfs): ... this. Call
4057 linux_proc_init_warnings.
4058 (linux_nat_target::post_attach)
4059 (linux_nat_target::post_startup_inferior): Adjust.
4060 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4061 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4062
4063 2018-07-04 Tom de Vries <tdevries@suse.de>
4064
4065 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4066 check ...
4067 (read_comp_unit_head): ... here.
4068
4069 2018-07-03 Tom Tromey <tom@tromey.com>
4070
4071 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4072 (stop_tracing, tstatus_command)
4073 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4074 (print_one_static_tracepoint_marker): Update.
4075 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4076 std::vector.
4077 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4078 VEC.
4079 (all_tracepoints, static_tracepoints_here): Return std::vector.
4080
4081 2018-07-03 Tom Tromey <tom@tromey.com>
4082
4083 * common/ptid.c (ptid_equal): Remove.
4084 * common/ptid.h (ptid_equal): Don't declare.
4085 * ada-tasks.c: Update.
4086 * breakpoint.c: Update.
4087 * common/agent.c: Update.
4088 * corelow.c: Update.
4089 * darwin-nat-info.c: Update.
4090 * darwin-nat.c: Update.
4091 * dcache.c: Update.
4092 * dtrace-probe.c: Update.
4093 * dummy-frame.c: Update.
4094 * fbsd-nat.c: Update.
4095 * frame.c: Update.
4096 * gdbthread.h: Update.
4097 * gnu-nat.c: Update.
4098 * go32-nat.c: Update.
4099 * inf-loop.c: Update.
4100 * inf-ptrace.c: Update.
4101 * infcall.c: Update.
4102 * infcmd.c: Update.
4103 * inflow.c: Update.
4104 * infrun.c: Update.
4105 * linux-fork.c: Update.
4106 * linux-nat.c: Update.
4107 * linux-thread-db.c: Update.
4108 * mi/mi-cmd-var.c: Update.
4109 * mi/mi-interp.c: Update.
4110 * mi/mi-main.c: Update.
4111 * nto-procfs.c: Update.
4112 * ppc-linux-tdep.c: Update.
4113 * procfs.c: Update.
4114 * python/py-inferior.c: Update.
4115 * python/py-record-btrace.c: Update.
4116 * python/py-record.c: Update.
4117 * ravenscar-thread.c: Update.
4118 * regcache.c: Update.
4119 * remote-sim.c: Update.
4120 * remote.c: Update.
4121 * sol-thread.c: Update.
4122 * solib.c: Update.
4123 * target.c: Update.
4124 * tui/tui-stack.c: Update.
4125 * varobj.c: Update.
4126 * windows-nat.c: Update.
4127 * windows-tdep.c: Update.
4128
4129 2018-07-03 Tom Tromey <tom@tromey.com>
4130
4131 * common/ptid.c (ptid_match): Remove.
4132 * common/ptid.h (ptid_match): Don't declare.
4133 * fbsd-nat.c: Update.
4134 * infcmd.c: Update.
4135 * infrun.c: Update.
4136 * linux-nat.c: Update.
4137 * record-btrace.c: Update.
4138 * regcache.c: Update.
4139 * remote.c: Update.
4140
4141 2018-07-03 Tom Tromey <tom@tromey.com>
4142
4143 * common/ptid.c (ptid_tid_p): Remove.
4144 * common/ptid.h (ptid_tid_p): Don't declare.
4145 * sol-thread.c: Update.
4146
4147 2018-07-03 Tom Tromey <tom@tromey.com>
4148
4149 * common/ptid.c (ptid_lwp_p): Remove.
4150 * common/ptid.h (ptid_lwp_p): Don't declare.
4151 * fbsd-nat.c: Update.
4152 * linux-nat.c: Update.
4153 * nat/linux-procfs.c: Update.
4154 * nat/x86-linux-dregs.c: Update.
4155 * sol-thread.c: Update.
4156
4157 2018-07-03 Tom Tromey <tom@tromey.com>
4158
4159 * common/ptid.c (ptid_is_pid): Remove.
4160 * common/ptid.h (ptid_is_pid): Don't declare.
4161 * infrun.c: Update.
4162 * linux-nat.c: Update.
4163 * mi/mi-interp.c: Update.
4164 * remote.c: Update.
4165 * thread.c: Update.
4166
4167 2018-07-03 Tom Tromey <tom@tromey.com>
4168
4169 * common/ptid.c (ptid_get_tid): Remove.
4170 * common/ptid.h (ptid_get_tid): Don't declare.
4171 * ada-tasks.c: Update.
4172 * aix-thread.c: Update.
4173 * bsd-uthread.c: Update.
4174 * darwin-nat.c: Update.
4175 * fbsd-nat.c: Update.
4176 * i386-darwin-nat.c: Update.
4177 * infrun.c: Update.
4178 * linux-tdep.c: Update.
4179 * nto-procfs.c: Update.
4180 * ppc-ravenscar-thread.c: Update.
4181 * python/py-infthread.c: Update.
4182 * ravenscar-thread.c: Update.
4183 * sol-thread.c: Update.
4184 * sparc-ravenscar-thread.c: Update.
4185 * windows-nat.c: Update.
4186
4187 2018-07-03 Tom Tromey <tom@tromey.com>
4188
4189 * common/ptid.c (ptid_get_lwp): Remove.
4190 * common/ptid.h (ptid_get_lwp): Don't declare.
4191 * aarch64-linux-nat.c: Update.
4192 * ada-tasks.c: Update.
4193 * aix-thread.c: Update.
4194 * amd64-linux-nat.c: Update.
4195 * arm-linux-nat.c: Update.
4196 * corelow.c: Update.
4197 * fbsd-nat.c: Update.
4198 * fbsd-tdep.c: Update.
4199 * gnu-nat.c: Update.
4200 * i386-cygwin-tdep.c: Update.
4201 * i386-gnu-nat.c: Update.
4202 * i386-linux-nat.c: Update.
4203 * ia64-linux-nat.c: Update.
4204 * inf-ptrace.c: Update.
4205 * infrun.c: Update.
4206 * linux-fork.c: Update.
4207 * linux-nat.c: Update.
4208 * linux-tdep.c: Update.
4209 * linux-thread-db.c: Update.
4210 * mips-linux-nat.c: Update.
4211 * nat/aarch64-linux-hw-point.c: Update.
4212 * nat/aarch64-linux.c: Update.
4213 * nat/linux-btrace.c: Update.
4214 * nat/linux-osdata.c: Update.
4215 * nat/linux-procfs.c: Update.
4216 * nat/x86-linux-dregs.c: Update.
4217 * obsd-nat.c: Update.
4218 * ppc-fbsd-nat.c: Update.
4219 * ppc-linux-nat.c: Update.
4220 * procfs.c: Update.
4221 * python/py-infthread.c: Update.
4222 * ravenscar-thread.c: Update.
4223 * remote.c: Update.
4224 * s390-linux-nat.c: Update.
4225 * sol-thread.c: Update.
4226 * sol2-tdep.c: Update.
4227 * spu-linux-nat.c: Update.
4228 * x86-linux-nat.c: Update.
4229 * xtensa-linux-nat.c: Update.
4230
4231 2018-07-03 Tom Tromey <tom@tromey.com>
4232
4233 * common/ptid.c (ptid_get_pid): Remove.
4234 * common/ptid.h (ptid_get_pid): Don't declare.
4235 * aarch64-linux-nat.c: Update.
4236 * ada-lang.c: Update.
4237 * aix-thread.c: Update.
4238 * alpha-bsd-nat.c: Update.
4239 * amd64-fbsd-nat.c: Update.
4240 * amd64-linux-nat.c: Update.
4241 * arm-linux-nat.c: Update.
4242 * arm-nbsd-nat.c: Update.
4243 * auxv.c: Update.
4244 * break-catch-syscall.c: Update.
4245 * breakpoint.c: Update.
4246 * bsd-uthread.c: Update.
4247 * corelow.c: Update.
4248 * ctf.c: Update.
4249 * darwin-nat.c: Update.
4250 * fbsd-nat.c: Update.
4251 * fbsd-tdep.c: Update.
4252 * gcore.c: Update.
4253 * gnu-nat.c: Update.
4254 * hppa-nbsd-nat.c: Update.
4255 * hppa-obsd-nat.c: Update.
4256 * i386-fbsd-nat.c: Update.
4257 * ia64-linux-nat.c: Update.
4258 * inf-ptrace.c: Update.
4259 * infcmd.c: Update.
4260 * inferior.c: Update.
4261 * inferior.h: Update.
4262 * inflow.c: Update.
4263 * infrun.c: Update.
4264 * linux-fork.c: Update.
4265 * linux-nat.c: Update.
4266 * linux-tdep.c: Update.
4267 * linux-thread-db.c: Update.
4268 * m68k-bsd-nat.c: Update.
4269 * mi/mi-interp.c: Update.
4270 * mi/mi-main.c: Update.
4271 * mips-linux-nat.c: Update.
4272 * mips-nbsd-nat.c: Update.
4273 * mips64-obsd-nat.c: Update.
4274 * nat/aarch64-linux-hw-point.c: Update.
4275 * nat/aarch64-linux.c: Update.
4276 * nat/linux-btrace.c: Update.
4277 * nat/linux-osdata.c: Update.
4278 * nat/linux-procfs.c: Update.
4279 * nat/x86-linux-dregs.c: Update.
4280 * nto-procfs.c: Update.
4281 * obsd-nat.c: Update.
4282 * ppc-linux-nat.c: Update.
4283 * ppc-nbsd-nat.c: Update.
4284 * ppc-obsd-nat.c: Update.
4285 * proc-service.c: Update.
4286 * procfs.c: Update.
4287 * python/py-inferior.c: Update.
4288 * python/py-infthread.c: Update.
4289 * ravenscar-thread.c: Update.
4290 * record.c: Update.
4291 * remote-sim.c: Update.
4292 * remote.c: Update.
4293 * rs6000-nat.c: Update.
4294 * s390-linux-nat.c: Update.
4295 * sh-nbsd-nat.c: Update.
4296 * sol-thread.c: Update.
4297 * sparc-nat.c: Update.
4298 * sparc64-tdep.c: Update.
4299 * spu-linux-nat.c: Update.
4300 * spu-tdep.c: Update.
4301 * target-debug.h: Update.
4302 * target.c: Update.
4303 * thread.c: Update.
4304 * tid-parse.c: Update.
4305 * tracefile-tfile.c: Update.
4306 * vax-bsd-nat.c: Update.
4307 * windows-nat.c: Update.
4308 * x86-linux-nat.c: Update.
4309 * x86-nat.c: Update.
4310
4311 2018-07-03 Tom Tromey <tom@tromey.com>
4312
4313 * common/ptid.c (pid_to_ptid): Remove.
4314 * common/ptid.h (pid_to_ptid): Don't declare.
4315 * aix-thread.c: Update.
4316 * arm-linux-nat.c: Update.
4317 * common/ptid.c: Update.
4318 * common/ptid.h: Update.
4319 * corelow.c: Update.
4320 * ctf.c: Update.
4321 * darwin-nat.c: Update.
4322 * fbsd-nat.c: Update.
4323 * fork-child.c: Update.
4324 * gnu-nat.c: Update.
4325 * go32-nat.c: Update.
4326 * inf-ptrace.c: Update.
4327 * infcmd.c: Update.
4328 * inferior.c: Update.
4329 * infrun.c: Update.
4330 * linux-fork.c: Update.
4331 * linux-nat.c: Update.
4332 * nat/aarch64-linux-hw-point.c: Update.
4333 * nat/fork-inferior.c: Update.
4334 * nat/x86-linux-dregs.c: Update.
4335 * nto-procfs.c: Update.
4336 * obsd-nat.c: Update.
4337 * procfs.c: Update.
4338 * progspace.c: Update.
4339 * remote.c: Update.
4340 * rs6000-nat.c: Update.
4341 * s390-linux-nat.c: Update.
4342 * sol-thread.c: Update.
4343 * spu-linux-nat.c: Update.
4344 * target.c: Update.
4345 * top.c: Update.
4346 * tracefile-tfile.c: Update.
4347 * windows-nat.c: Update.
4348
4349 2018-07-03 Tom Tromey <tom@tromey.com>
4350
4351 * common/ptid.h (ptid_build): Don't declare.
4352 * common/ptid.c (ptid_build): Remove.
4353 * aix-thread.c: Update.
4354 * bsd-kvm.c: Update.
4355 * bsd-uthread.c: Update.
4356 * common/agent.c: Update.
4357 * common/ptid.c: Update.
4358 * common/ptid.h: Update.
4359 * corelow.c: Update.
4360 * darwin-nat.c: Update.
4361 * fbsd-nat.c: Update.
4362 * gnu-nat.c: Update.
4363 * linux-fork.c: Update.
4364 * linux-nat.c: Update.
4365 * linux-thread-db.c: Update.
4366 * nat/linux-osdata.c: Update.
4367 * nat/linux-procfs.c: Update.
4368 * nto-procfs.c: Update.
4369 * obsd-nat.c: Update.
4370 * proc-service.c: Update.
4371 * procfs.c: Update.
4372 * ravenscar-thread.c: Update.
4373 * remote-sim.c: Update.
4374 * remote.c: Update.
4375 * sol-thread.c: Update.
4376 * target.c: Update.
4377 * windows-nat.c: Update.
4378
4379 2018-07-03 Tom Tromey <tom@tromey.com>
4380
4381 * infrun.c (follow_exec): Use exit_inferior_silent.
4382 * inferior.c (exit_inferior_num_silent): Remove.
4383 * inferior.h (exit_inferior_num_silent): Don't declare.
4384
4385 2018-07-03 Tom Tromey <tom@tromey.com>
4386
4387 PR cli/23340:
4388 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4389 inferior_ptid on error.
4390
4391 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4392 Simon Marchi <simon.marchi@polymtl.ca>
4393
4394 PR tdep/8282
4395 * disasm.h (gdb_disassembler): Add
4396 `m_disassembler_options_holder'. member
4397 * disasm.c (get_all_disassembler_options): New function.
4398 (gdb_disassembler::gdb_disassembler): Use it.
4399 (gdb_buffered_insn_length_init_dis): Likewise.
4400 (gdb_buffered_insn_length): Adjust accordingly.
4401 (set_disassembler_options): Handle options with arguments.
4402 (show_disassembler_options_sfunc): Likewise. Add a leading new
4403 line if showing options with descriptions.
4404 (disassembler_options_completer): Adapt to using the
4405 `disasm_options_and_args_t' structure.
4406 * mips-tdep.c (mips_disassembler_options): New variable.
4407 (mips_disassembler_options_o32): Likewise.
4408 (mips_disassembler_options_n32): Likewise.
4409 (mips_disassembler_options_n64): Likewise.
4410 (gdb_print_insn_mips): Don't set `disassembler_options'.
4411 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4412 functions.
4413 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4414 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4415 `gdbarch_disassembler_options_implicit' and
4416 `gdbarch_valid_disassembler_options'.
4417 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4418 `disasm_options_and_args_t' structure.
4419 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4420 method.
4421 (valid_disassembler_options): Switch from `disasm_options_t' to
4422 the `disasm_options_and_args_t' structure.
4423 * NEWS: Document `set disassembler-options' support for the MIPS
4424 target.
4425 * gdbarch.h: Regenerate.
4426 * gdbarch.c: Regenerate.
4427
4428 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4429
4430 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4431
4432 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4433
4434 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4435 parameter in call to amd64_target_description.
4436 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4437 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4438 (amd64fbsd_init_abi): Likewise.
4439 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4440 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4441 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4442 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4443
4444 2018-06-29 Pedro Alves <palves@redhat.com>
4445
4446 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4447 "segments" parameter.
4448 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4449 (_initialize_amd64_tdep): Update call to
4450 amd64_create_target_description.
4451 (amd64_target_description): Add "segments" parameter. Adjust
4452 the implementation to use it.
4453 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4454 call to amd64_create_target_description.
4455 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4456 * gdb/arch/amd64.h (amd64_create_target_description): Add
4457 "segments" register.
4458 * gdb/arch/amd64.c (amd64_create_target_description): Add
4459 "segments" parameter. Call create_feature_i386_64bit_segments
4460 only if SEGMENTS is true.
4461 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4462 call to amd64_create_target_description.
4463
4464 2018-06-29 Pedro Alves <palves@redhat.com>
4465
4466 * thread.c (thread_target_id_str): New, factored out from ...
4467 (print_thread_info_1): ... here. Use it to compute the max
4468 "Target Id" column width.
4469
4470 2018-06-29 Pedro Alves <palves@redhat.com>
4471
4472 * remote.c (remote_target::extra_thread_info): Delete
4473 'display_buf' and 'n' locals. from the cache, regardless of
4474 packet mechanims is in use. Use cache for qThreadExtra and qP
4475 methods too.
4476
4477 2018-06-29 Pedro Alves <palves@redhat.com>
4478
4479 * blockframe.c (find_pc_sect_containing_function): New function.
4480 * breakpoint.c (print_breakpoint_location): Don't call
4481 find_pc_sect_function.
4482 * linespec.c (create_sals_line_offset): Record the location's
4483 symbol in the sal.
4484 * linespec.c (convert_address_location_to_sals): Fill in sal's
4485 symbol with find_pc_sect_containing_function.
4486 * symtab.c (find_function_start_sal): Rename to ...
4487 (find_function_start_sal_1): ... this.
4488 (find_function_start_sal): Reimplement as wrapper around
4489 find_function_start_sal_1, and use
4490 find_pc_sect_containing_function to fill in the sal's symbol.
4491 (find_function_start_sal(symbol*, bool)): Adjust.
4492 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4493 comments.
4494 (find_pc_sect_containing_function): Declare.
4495
4496 2018-06-29 Pedro Alves <palves@redhat.com>
4497
4498 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4499 true if the the location has no symbol.
4500
4501 2018-06-28 Tom Tromey <tom@tromey.com>
4502
4503 * NEWS: Mention --enable-codesign.
4504 * silent-rules.mk (ECHO_SIGN): New variable.
4505 * configure.ac: Add --enable-codesign.
4506 * configure: Rebuild.
4507 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4508 (gdb$(EXEEXT)): Optionally invoke codesign.
4509
4510 2018-06-28 Pedro Alves <palves@redhat.com>
4511
4512 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4513 comments.
4514 (switch_to_thread_no_regs): Adjust comment.
4515 * infcmd.c (stop_pc): Delete.
4516 (post_create_inferior, info_program_command): Replace references
4517 to stop_pc with references to thread_info->suspend.stop_pc.
4518 * inferior.h (stop_pc): Delete declaration.
4519 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4520 (handle_inferior_event_1, handle_signal_stop)
4521 (process_event_stop_test, keep_going_stepped_thread)
4522 (handle_step_into_function, handle_step_into_function_backward)
4523 (print_stop_location): Replace references to stop_pc with
4524 references to thread_info->suspend.stop_pc.
4525 (struct infcall_suspend_state) <stop_pc>: Delete field.
4526 (save_infcall_suspend_state, restore_infcall_suspend_state):
4527 Remove references to inf_stat->stop_pc.
4528 * linux-fork.c (fork_load_infrun_state): Likewise.
4529 * record-btrace.c (record_btrace_set_replay): Likewise.
4530 * record-full.c (record_full_goto_entry): Likewise.
4531 * remote.c (print_one_stopped_thread): Likewise.
4532 * target.c (target_resume): Extend comment.
4533 * thread.c (set_executing_thread): New.
4534 (set_executing): Use it.
4535 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4536 Remove references to stop_pc.
4537
4538 2018-06-28 Pedro Alves <palves@redhat.com>
4539
4540 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4541 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4542
4543 2018-06-28 Tom Tromey <tom@tromey.com>
4544
4545 * coffread.c (coff_symfile_finish): Update.
4546 * xcoffread.c (xcoff_symfile_finish): Update.
4547 * elfread.c (elf_symfile_finish): Update.
4548 * symfile.h (dwarf2_free_objfile): Don't declare.
4549 * dwarf2read.c (_initialize_dwarf2_read): Use
4550 register_objfile_data_with_cleanup.
4551 (dwarf2_free_objfile): Now static. Change signature.
4552
4553 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4554
4555 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4556 option "-o" to add-symbol-file-load to add an offset to each
4557 section's load address.
4558 * symfile.c (set_objfile_default_section_offset): New function.
4559
4560 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4561
4562 * symfile.c (add_symbol_file_command): Make sure that sections
4563 with the same name are sorted in the same order.
4564
4565 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4566
4567 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4568 require the second argument. If omitted, load sections at the
4569 addresses specified in the file.
4570
4571 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4572
4573 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4574 (_initialize_symfile): Add option "-o" to symbol-file to add an
4575 offset to each section of the symbol file.
4576
4577 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4578
4579 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4580
4581 2018-06-27 Tom Tromey <tom@tromey.com>
4582
4583 * stack.c (_initialize_stack): Update "func" help text.
4584
4585 2018-06-27 Tom Tromey <tom@tromey.com>
4586
4587 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4588 std::vector.
4589 (unwind_infopy_str, pyuw_create_unwind_info)
4590 (unwind_infopy_add_saved_register, pyuw_sniffer)
4591 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4592 Update.
4593 (struct saved_reg): Add constructor.
4594 <value>: Now a gdbpy_ref<>.
4595
4596 2018-06-27 Tom Tromey <tom@tromey.com>
4597
4598 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4599
4600 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4601
4602 * gdb-gdb.py.in: Format using autopep8.
4603
4604 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4605
4606 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4607 (type_lookup_function): Recognize CORE_ADDR values.
4608
4609 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4610
4611 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4612 print tag_name.
4613
4614 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4615
4616 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4617 <__lt__>: Add.
4618
4619 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4620
4621 * gdb-gdb.py: Move to...
4622 * gdb-gdb.py.in: ... here.
4623 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4624 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4625 dependencies.
4626 (distclean): Remove gdb-gdb.py when cleaning.
4627 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4628 * configure: Re-generate.
4629
4630 2018-06-27 Pedro Alves <palves@redhat.com>
4631
4632 * proc-service.c (get_ps_regcache): New.
4633 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4634 (ps_lsetfpregs): Use it.
4635
4636 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4637
4638 PR gdb/21695
4639 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4640 (dwarf_decode_lines_1): Adjust.
4641
4642 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4643
4644 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4645 override.
4646 <info_proc>: Likewise.
4647
4648 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4649
4650 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4651 to windows_fetch_one_register, and only handle the case of
4652 fetching one register. Move the code that reloads the context
4653 and iterates over all registers if R is negative to...
4654 (windows_nat_target::fetch_registers): ... here.
4655 (do_windows_store_inferior_registers): Rename to
4656 windows_store_one_register, and only handle the case of storing
4657 one register. Move the code that handles the case where r is
4658 negative to...
4659 (windows_nat_target::store_registers) ... here.
4660
4661 2018-06-26 Tom Tromey <tom@tromey.com>
4662
4663 PR rust/22574:
4664 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4665 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4666 Update.
4667 (rust_internal_print_type): Add podata parameter.
4668 (rust_print_type): Update.
4669
4670 2018-06-26 Tom Tromey <tom@tromey.com>
4671
4672 * typeprint.h (struct print_offset_data) <update, finish,
4673 maybe_print_hole>: New methods.
4674 <indentation>: New constant.
4675 * typeprint.c (print_offset_data::indentation): Define.
4676 (print_offset_data::maybe_print_hole, print_offset_data::update)
4677 (print_offset_data::finish): Move from c-typeprint.c and rename.
4678 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4679 (print_spaces_filtered_with_print_options): Update.
4680 (c_print_type_union_field_offset, maybe_print_hole)
4681 (c_print_type_struct_field_offset): Move to typeprint.c and
4682 rename.
4683 (c_type_print_base_struct_union): Update.
4684
4685 2018-06-25 Pedro Alves <palves@redhat.com>
4686
4687 * gdbthread.h (thread_info_ref, delete_thread)
4688 (delete_thread_silent, first_thread_of_inferior)
4689 (any_thread_of_inferior, switch_to_thread)
4690 (enable_thread_stack_temporaries)
4691 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4692 (get_last_thread_stack_temporary)
4693 (value_in_thread_stack_temporaries, can_access_registers_thread):
4694 Spell out "struct thread_info" instead of just "thread_info".
4695 * inferior.h (notice_new_inferior): Likewise.
4696
4697 2018-06-25 Pedro Alves <palves@redhat.com>
4698
4699 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4700 pass thread_info pointer to delete_thread.
4701 (windows_nat_target::detach): Pass inferior pointer to
4702 detach_inferior.
4703 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4704 delete_thread.
4705 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4706 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4707 and pass a thread_info pointer to delete_thread.
4708 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4709 pass thread_info pointer to delete_thread.
4710 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4711 delete_thread_silent call.
4712 * procfs.c (procfs_target::detach): Pass inferior pointer to
4713 detach_inferior.
4714 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4715 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4716 delete_thread_silent call.
4717 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4718 pass thread_info pointer to delete_thread.
4719 (windows_nat_target::detach): Pass inferior pointer to
4720 delete_inferior.
4721
4722 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4723
4724 * regcache.c (readable_regcache::read_part): Fix asserts.
4725 (reg_buffer::raw_collect_part): New function.
4726 (regcache::write_part): Fix asserts.
4727 (reg_buffer::raw_supply_part): New function.
4728 (regcache::transfer_regset_register): New helper function.
4729 (regcache::transfer_regset): Call new functions.
4730 (regcache_supply_regset): Use gdb_byte*.
4731 (regcache::supply_regset): Likewise.
4732 (regcache_collect_regset): Likewise.
4733 (regcache::collect_regset): Likewise.
4734 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4735 (reg_buffer::raw_supply_part): Likewise.
4736 (regcache::transfer_regset_register): Likewise.
4737 (regcache::transfer_regset): Use gdb_byte*.
4738
4739 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4740
4741 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4742
4743 2018-06-21 Pedro Alves <palves@redhat.com>
4744
4745 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4746 instead of a ptid_t. All callers adjusted.
4747 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4748 adjusted.
4749 (print_ada_task_info, display_current_task_id, task_command_1):
4750 Adjust.
4751 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4752 inferior_thread.
4753 (breakpoint_kind): Adjust.
4754 (remove_breakpoints_pid): Rename to ...
4755 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4756 pointer. All callers adjusted.
4757 (bpstat_clear_actions): Use inferior_thread.
4758 (get_bpstat_thread): New.
4759 (bpstat_do_actions): Use it.
4760 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4761 to take a thread_info pointer. All callers adjusted.
4762 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4763 (breakpoint_re_set_thread): Use inferior_thread.
4764 * breakpoint.h (struct inferior): Forward declare.
4765 (bpstat_stop_status): Update.
4766 (remove_breakpoints_pid): Delete.
4767 (remove_breakpoints_inf): New.
4768 * bsd-uthread.c (bsd_uthread_target::wait)
4769 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4770 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4771 (maint_btrace_packet_history_cmd)
4772 (maint_btrace_clear_packet_history_cmd): Adjust.
4773 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4774 inferior_thread.
4775 * cli/cli-interp.c: Include "inferior.h".
4776 * common/refcounted-object.h (struct
4777 refcounted_object_ref_policy): New.
4778 * compile/compile-object-load.c: Include gdbthread.h.
4779 (store_regs): Use inferior_thread.
4780 * corelow.c (core_target::close): Use current_inferior.
4781 (core_target_open): Adjust to use first_thread_of_inferior and use
4782 the current inferior.
4783 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4784 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4785 <thread>: ... this new field. All references adjusted.
4786 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4787 Take a thread_info pointer instead of a ptid_t.
4788 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4789 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4790 thread_info pointer instead of a ptid_t.
4791 * elfread.c: Include "inferior.h".
4792 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4793 Use inferior_thread.
4794 * eval.c (evaluate_subexp): Likewise.
4795 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4796 inferior_thread.
4797 * gdb_proc_service.h (struct thread_info): Forward declare.
4798 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4799 <thread>: ... this new field. All references adjusted.
4800 * gdbarch.h, gdbarch.c: Regenerate.
4801 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4802 'thread' parameter. All implementations and callers adjusted.
4803 * gdbthread.h (thread_info) <set_running>: New method.
4804 (delete_thread, delete_thread_silent): Take a thread_info pointer
4805 instead of a ptid.
4806 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4807 (first_thread_of_process): Delete, replaced by ...
4808 (first_thread_of_inferior): ... this new function. All callers
4809 adjusted.
4810 (any_live_thread_of_process): Delete, replaced by ...
4811 (any_live_thread_of_inferior): ... this new function. All callers
4812 adjusted.
4813 (switch_to_thread, switch_to_no_thread): Declare.
4814 (is_executing): Delete.
4815 (enable_thread_stack_temporaries): Update comment.
4816 <enable_thread_stack_temporaries>: Take a thread_info pointer
4817 instead of a ptid_t. Incref the thread.
4818 <~enable_thread_stack_temporaries>: Decref the thread.
4819 <m_ptid>: Delete
4820 <m_thr>: New.
4821 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4822 (get_last_thread_stack_temporary)
4823 (value_in_thread_stack_temporaries, can_access_registers_thread):
4824 Take a thread_info pointer instead of a ptid_t. All callers
4825 adjusted.
4826 * infcall.c (get_call_return_value): Use inferior_thread.
4827 (run_inferior_call): Work with thread pointers instead of ptid_t.
4828 (call_function_by_hand_dummy): Work with thread pointers instead
4829 of ptid_t. Use thread_info_ref.
4830 * infcmd.c (proceed_thread_callback): Access thread's state
4831 directly.
4832 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4833 access thread's state directly.
4834 (continue_command): Use inferior_thread.
4835 (info_program_command): Use find_thread_ptid and access thread
4836 state directly.
4837 (proceed_after_attach_callback): Use thread state directly.
4838 (notice_new_inferior): Take a thread_info pointer instead of a
4839 ptid_t. All callers adjusted.
4840 (exit_inferior): Take an inferior pointer instead of a pid. All
4841 callers adjusted.
4842 (exit_inferior_silent): New.
4843 (detach_inferior): Delete.
4844 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4845 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4846 (detach_inferior_command, kill_inferior_command): Use
4847 find_inferior_id instead of valid_gdb_inferior_id and
4848 gdb_inferior_id_to_pid.
4849 (inferior_command): Use inferior and thread pointers.
4850 * inferior.h (struct thread_info): Forward declare.
4851 (notice_new_inferior): Take a thread_info pointer instead of a
4852 ptid_t. All callers adjusted.
4853 (detach_inferior): Delete declaration.
4854 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4855 instead of a pid. All callers adjusted.
4856 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4857 (valid_gdb_inferior_id): Delete.
4858 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4859 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4860 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4861 ...
4862 <inf>: ... this new field.
4863 <step_ptid>: Delete, replaced by ...
4864 <step_thread>: ... this new field.
4865 (get_displaced_stepping_state): Take an inferior pointer instead
4866 of a pid. All callers adjusted.
4867 (displaced_step_in_progress_any_inferior): Adjust.
4868 (displaced_step_in_progress_thread): Take a thread pointer instead
4869 of a ptid_t. All callers adjusted.
4870 (displaced_step_in_progress, add_displaced_stepping_state): Take
4871 an inferior pointer instead of a pid. All callers adjusted.
4872 (get_displaced_step_closure_by_addr): Adjust.
4873 (remove_displaced_stepping_state): Take an inferior pointer
4874 instead of a pid. All callers adjusted.
4875 (displaced_step_prepare_throw, displaced_step_prepare)
4876 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4877 All callers adjusted.
4878 (start_step_over): Adjust.
4879 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4880 displaced step queue.
4881 (do_target_resume): Adjust.
4882 (fetch_inferior_event): Use inferior_thread.
4883 (context_switch, get_inferior_stop_soon): Take an
4884 execution_control_state pointer instead of a ptid_t. All callers
4885 adjusted.
4886 (switch_to_thread_cleanup): Delete.
4887 (stop_all_threads): Use scoped_restore_current_thread.
4888 * inline-frame.c: Include "gdbthread.h".
4889 (inline_state) <inline_state>: Take a thread pointer instead of a
4890 ptid_t. All callers adjusted.
4891 <ptid>: Delete, replaced by ...
4892 <thread>: ... this new field.
4893 (find_inline_frame_state): Take a thread pointer instead of a
4894 ptid_t. All callers adjusted.
4895 (skip_inline_frames, step_into_inline_frame)
4896 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4897 pointer instead of a ptid_t. All callers adjusted.
4898 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4899 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4900 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4901 pointers directly.
4902 * linux-nat.c (get_detach_signal): Likewise.
4903 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4904 (thread_db_notice_clone): Adjust.
4905 (thread_db_find_new_threads_silently)
4906 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4907 a thread pointer instead of a ptid_t. All callers adjusted.
4908 * mi/mi-cmd-var.c: Include "inferior.h".
4909 (mi_cmd_var_update_iter): Update to use thread pointers.
4910 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4911 inferior directly.
4912 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4913 out to ...
4914 (mi_output_running): ... this new function.
4915 (mi_on_resume_1): Adjust to use it.
4916 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4917 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4918 directly.
4919 (interrupt_thread_callback): : Adjust to use thread and inferior
4920 pointers.
4921 * proc-service.c: Include "gdbthread.h".
4922 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4923 * progspace-and-thread.c: Include "inferior.h".
4924 * progspace.c: Include "inferior.h".
4925 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4926 hold a reference to an inferior_object.
4927 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4928 inferior_thread.
4929 * python/py-inferior.c (struct inferior_object): Give the type a
4930 tag name instead of a typedef.
4931 (python_on_normal_stop): No need to check if the current thread is
4932 listed.
4933 (inferior_to_inferior_object): Change return type to
4934 inferior_object. All callers adjusted.
4935 (find_thread_object): Delete, bits factored out to ...
4936 (thread_to_thread_object): ... this new function.
4937 * python/py-infthread.c (create_thread_object): Use
4938 inferior_to_inferior_object.
4939 (thpy_is_stopped): Use thread pointer directly.
4940 (gdbpy_selected_thread): Use inferior_thread.
4941 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4942 field, replaced with ...
4943 <thread>: ... this new field. All users adjusted.
4944 (btpy_insn_or_gap_new): Drop const.
4945 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4946 callers adjusted.
4947 * python/py-record.c: Include "gdbthread.h".
4948 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4949 a ptid_t. All callers adjusted.
4950 (gdbpy_current_recording): Use inferior_thread.
4951 * python/py-record.h (recpy_record_object) <ptid>: Delete
4952 field, replaced with ...
4953 <thread>: ... this new field. All users adjusted.
4954 (recpy_element_object) <ptid>: Delete
4955 field, replaced with ...
4956 <thread>: ... this new field. All users adjusted.
4957 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4958 a ptid_t. All callers adjusted.
4959 * python/py-threadevent.c: Include "gdbthread.h".
4960 (get_event_thread): Use thread_to_thread_object.
4961 * python/python-internal.h (struct inferior_object): Forward
4962 declare.
4963 (find_thread_object, find_inferior_object): Delete declarations.
4964 (thread_to_thread_object, inferior_to_inferior_object): New
4965 declarations.
4966 * record-btrace.c: Include "inferior.h".
4967 (require_btrace_thread): Use inferior_thread.
4968 (record_btrace_frame_sniffer)
4969 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4970 (get_thread_current_frame): Use scoped_restore_current_thread and
4971 switch_to_thread.
4972 (get_thread_current_frame): Use thread pointer directly.
4973 (record_btrace_replay_at_breakpoint): Use thread's inferior
4974 pointer directly.
4975 * record-full.c: Include "inferior.h".
4976 * regcache.c: Include "gdbthread.h".
4977 (get_thread_arch_regcache): Use the inferior's address space
4978 directly.
4979 (get_thread_regcache, registers_changed_thread): New.
4980 * regcache.h (get_thread_regcache(thread_info *thread)): New
4981 overload.
4982 (registers_changed_thread): New.
4983 (remote_target) <remote_detach_1>: Swap order of parameters.
4984 (remote_add_thread): <remote_add_thread>: Return the new thread.
4985 (get_remote_thread_info(ptid_t)): New overload.
4986 (remote_target::remote_notice_new_inferior): Use thread pointers
4987 directly.
4988 (remote_target::process_initial_stop_replies): Use
4989 thread_info::set_running.
4990 (remote_target::remote_detach_1, remote_target::detach)
4991 (extended_remote_target::detach): Adjust.
4992 * stack.c (frame_show_address): Use inferior_thread.
4993 * target-debug.h (target_debug_print_thread_info_pp): New.
4994 * target-delegates.c: Regenerate.
4995 * target.c (default_thread_address_space): Delete.
4996 (memory_xfer_partial_1): Use current_inferior.
4997 (target_detach): Use current_inferior.
4998 (target_thread_address_space): Delete.
4999 (generic_mourn_inferior): Use current_inferior.
5000 * target.h (struct target_ops) <thread_address_space>: Delete.
5001 (target_thread_address_space): Delete.
5002 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5003 pointers directly.
5004 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5005 thread pointer instead of a ptid_t. Adjust all callers.
5006 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5007 (first_thread_of_process): Delete, replaced by ...
5008 (first_thread_of_inferior): ... this new function. All callers
5009 adjusted.
5010 (any_thread_of_process): Rename to ...
5011 (any_thread_of_inferior): ... this, and take an inferior pointer.
5012 (any_live_thread_of_process): Rename to ...
5013 (any_live_thread_of_inferior): ... this, and take an inferior
5014 pointer.
5015 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5016 (value_in_thread_stack_temporaries)
5017 (get_last_thread_stack_temporary): Take a thread pointer instead
5018 of a ptid_t. Adjust all callers.
5019 (thread_info::set_running): New.
5020 (validate_registers_access): Use inferior_thread.
5021 (can_access_registers_ptid): Rename to ...
5022 (can_access_registers_thread): ... this, and take a thread
5023 pointer.
5024 (print_thread_info_1): Adjust to compare thread pointers instead
5025 of ptids.
5026 (switch_to_no_thread, switch_to_thread): Make extern.
5027 (scoped_restore_current_thread::~scoped_restore_current_thread):
5028 Use m_thread pointer directly.
5029 (scoped_restore_current_thread::scoped_restore_current_thread):
5030 Use inferior_thread.
5031 (thread_command): Use thread pointer directly.
5032 (thread_num_make_value_helper): Use inferior_thread.
5033 * top.c (execute_command): Use inferior_thread.
5034 * tui/tui-interp.c: Include "inferior.h".
5035 * varobj.c (varobj_create): Use inferior_thread.
5036 (value_of_root_1): Use find_thread_global_id instead of
5037 global_thread_id_to_ptid.
5038
5039 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5040
5041 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5042 possible.
5043 (regcache::write_part): Likewise.
5044 (readable_regcache::cooked_read_part): Update comment.
5045 (readable_regcache::cooked_write_part): Likewise.
5046 * regcache.h: (readable_regcache::read_part): Likewise.
5047 (regcache::write_part): Likewise.
5048
5049 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5050 Dirk Schubert <dirk.schubert@arm.com>
5051
5052 * aarch64-linux-nat.c (post_attach): New.
5053 (aarch64_linux_nat_target::post_attach): Override post_attach to
5054 record the number of hardware debug registers.
5055
5056 2018-06-20 Tom Tromey <tom@tromey.com>
5057
5058 * python/py-param.c (add_setshow_generic): Make parameters const.
5059 (parmpy_init): Update.
5060
5061 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5062
5063 * regcache.h (regcache_cooked_read_ftype): Rename to...
5064 (register_read_ftype): ...this, change type to function_view.
5065 (class reg_buffer) <save>: Remove src parameter.
5066 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5067 parameter non-const in first overload. Remove src parameter in
5068 second overload.
5069 * regcache.c (do_cooked_read): Remove.
5070 (readonly_detached_regcache::readonly_detached_regcache): Make
5071 parameter non-const, adjust call to other constructor.
5072 (reg_buffer::save): Remove src parameter.
5073 * frame.c (do_frame_register_read): Remove.
5074 (frame_save_as_regcache): Use lambda function.
5075 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5076 parameter to ppu2spu_data *.
5077 (ppu2spu_sniffer): Use lambda function.
5078
5079 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5080
5081 * record-full.c (record_full_target::insert_breakpoint): Remove
5082 "struct" keyword, add const.
5083
5084 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5085
5086 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5087 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5088 * configure.ac: Remove AC_PREREQ, add missing quoting.
5089 * gnulib/configure.ac: Modernize usage of
5090 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5091 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5092 (AUTOMAKE_VERSION): Bump to 1.15.1.
5093 * configure: Re-generate.
5094 * config.in: Re-generate.
5095 * aclocal.m4: Re-generate.
5096 * gnulib/aclocal.m4: Re-generate.
5097 * gnulib/config.in: Re-generate.
5098 * gnulib/configure: Re-generate.
5099 * gnulib/import/Makefile.in: Re-generate.
5100
5101 2018-06-19 Pedro Alves <palves@redhat.com>
5102
5103 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5104 (lookup_minimal_symbol_by_pc_section): ... here with
5105 gdb_assert_not_reached added.
5106
5107 2018-06-19 Pedro Alves <palves@redhat.com>
5108
5109 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5110 parameter with a block parameter. Compare location's block symbol
5111 with the frame's block instead of addresses.
5112 (skip_inline_frames): Pass the current block instead of the
5113 frame's address. Break out as soon as we determine the frame
5114 should not be skipped.
5115
5116 2018-06-18 Tom Tromey <tom@tromey.com>
5117
5118 * solib-aix.c (solib_aix_get_section_offsets): Return
5119 unique_xmalloc_ptr.
5120 (solib_aix_solib_create_inferior_hook): Update.
5121
5122 2018-06-18 Tom Tromey <tom@tromey.com>
5123
5124 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5125
5126 2018-06-18 Tom Tromey <tom@tromey.com>
5127
5128 * solib-frv.c (frv_relocate_main_executable): Use
5129 unique_xmalloc_ptr.
5130 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5131 unique_xmalloc_ptr.
5132
5133 2018-06-18 Tom Tromey <tom@tromey.com>
5134
5135 * objfiles.h (inhibit_section_map_updates): Update.
5136 (resume_section_map_updates, resume_section_map_updates_cleanup):
5137 Remove.
5138 * solib-svr4.c (svr4_handle_solib_event): Update.
5139 * objfiles.c (inhibit_section_map_updates): Return
5140 scoped_restore_tmpl<int>.
5141 (resume_section_map_updates, resume_section_map_updates_cleanup):
5142 Remove.
5143
5144 2018-06-18 Tom Tromey <tom@tromey.com>
5145
5146 * valprint.h (read_string): Update.
5147 * valprint.c (read_string): Change type of "buffer".
5148 (val_print_string): Update.
5149 * python/py-value.c (valpy_string): Update.
5150 * language.h (struct language_defn) <la_get_string>: Change
5151 type of "buffer".
5152 (default_get_string, c_get_string): Update.
5153 * language.c (default_get_string): Change type of "buffer".
5154 * guile/scm-value.c (gdbscm_value_to_string): Update.
5155 * c-lang.c (c_get_string): Change type of "buffer".
5156
5157 2018-06-18 Tom Tromey <tom@tromey.com>
5158
5159 * ser-mingw.c (struct pipe_state_destroyer): New.
5160 (pipe_state_up): New typedef.
5161 (cleanup_pipe_state): Remove.
5162 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5163
5164 2018-06-18 Tom Tromey <tom@tromey.com>
5165
5166 * rust-lang.h (rust_yyerror): Don't declare.
5167 * rust-lang.c (rust_language_defn): Update.
5168 * rust-exp.y (yyerror): Now static.
5169 * parse.c (parse_exp_in_context_1): Update.
5170 * p-lang.h (p_yyerror): Don't declare.
5171 * p-lang.c (p_language_defn): Update.
5172 * p-exp.y (yyerror): Now static.
5173 * opencl-lang.c (opencl_language_defn): Update.
5174 * objc-lang.c (objc_language_defn): Update.
5175 * m2-lang.h (m2_yyerror): Don't declare.
5176 * m2-lang.c (m2_language_defn): Update.
5177 * m2-exp.y (yyerror): Now static.
5178 * language.h (struct language_defn) <la_error>: Remove.
5179 * language.c (unk_lang_error): Remove.
5180 (unknown_language_defn, auto_language_defn): Remove.
5181 * go-lang.h (go_yyerror): Don't declare.
5182 * go-lang.c (go_language_defn): Update.
5183 * go-exp.y (yyerror): Now static.
5184 * f-lang.h (f_yyerror): Don't declare.
5185 * f-lang.c (f_language_defn): Update.
5186 * f-exp.y (yyerror): Now static.
5187 * d-lang.h (d_yyerror): Don't declare.
5188 * d-lang.c (d_language_defn): Update.
5189 * d-exp.y (yyerror): Now static.
5190 * c-lang.h (c_yyerror): Don't declare.
5191 * c-lang.c (c_language_defn, cplus_language_defn)
5192 (asm_language_defn, minimal_language_defn): Update.
5193 * c-exp.y (yyerror): Now static.
5194 * ada-lang.h (ada_yyerror): Don't declare.
5195 * ada-lang.c (ada_language_defn): Update.
5196 * ada-exp.y (yyerror): Now static.
5197
5198 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5199
5200 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5201 (store_sveregs_to_thread): Likewise.
5202 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5203 (aarch64_linux_store_inferior_registers): Likewise.
5204 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5205 function.
5206 (aarch64_sve_regs_copy_to_regcache): Likewise.
5207 (aarch64_sve_regs_copy_from_regcache): Likewise.
5208 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5209 declaration.
5210 (aarch64_sve_regs_copy_to_regcache): Likewise.
5211 (aarch64_sve_regs_copy_from_regcache): Likewise.
5212 (sve_context): Structure from Linux headers.
5213 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5214 (SVE_SIG_ZREG_SIZE): Likewise.
5215 (SVE_SIG_PREG_SIZE): Likewise.
5216 (SVE_SIG_FFR_SIZE): Likewise.
5217 (SVE_SIG_REGS_OFFSET): Likewise.
5218 (SVE_SIG_ZREGS_OFFSET): Likewise.
5219 (SVE_SIG_ZREG_OFFSET): Likewise.
5220 (SVE_SIG_ZREGS_SIZE): Likewise.
5221 (SVE_SIG_PREGS_OFFSET): Likewise.
5222 (SVE_SIG_PREG_OFFSET): Likewise.
5223 (SVE_SIG_PREGS_SIZE): Likewise.
5224 (SVE_SIG_FFR_OFFSET): Likewise.
5225 (SVE_SIG_REGS_SIZE): Likewise.
5226 (SVE_SIG_CONTEXT_SIZE): Likewise.
5227 (SVE_PT_REGS_MASK): Likewise.
5228 (SVE_PT_REGS_FPSIMD): Likewise.
5229 (SVE_PT_REGS_SVE): Likewise.
5230 (SVE_PT_VL_INHERIT): Likewise.
5231 (SVE_PT_VL_ONEXEC): Likewise.
5232 (SVE_PT_REGS_OFFSET): Likewise.
5233 (SVE_PT_FPSIMD_OFFSET): Likewise.
5234 (SVE_PT_FPSIMD_SIZE): Likewise.
5235 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5236 (SVE_PT_SVE_PREG_SIZE): Likewise.
5237 (SVE_PT_SVE_FFR_SIZE): Likewise.
5238 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5239 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5240 (__SVE_SIG_TO_PT): Likewise.
5241 (SVE_PT_SVE_OFFSET): Likewise.
5242 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5243 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5244 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5245 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5246 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5247 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5248 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5249 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5250 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5251 (SVE_PT_SVE_SIZE): Likewise.
5252 (SVE_PT_SIZE): Likewise.
5253 (HAS_SVE_STATE): New define.
5254
5255 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5256
5257 * nat/aarch64-sve-linux-sigcontext.h: New file.
5258 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5259 new files.
5260 (SVE_VQ_MIN): Likewise.
5261 (SVE_VQ_MAX): Likewise.
5262 (SVE_VL_MIN): Likewise.
5263 (SVE_VL_MAX): Likewise.
5264 (SVE_NUM_ZREGS): Likewise.
5265 (SVE_NUM_PREGS): Likewise.
5266 (sve_vl_valid): Likewise.
5267 (struct user_sve_header): Likewise.
5268
5269 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5270 Richard Bunt <Richard.Bunt@arm.com>
5271
5272 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5273 was requested by GDB.
5274
5275 2018-06-15 Tom de Vries <tdevries@suse.de>
5276
5277 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5278
5279 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5280
5281 * gnulib/update-gnulib.sh: Print expected versions of
5282 autoconf/aclocal.
5283
5284 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5285
5286 * arch-utils.c (default_type_align): Use type_length_units.
5287 * gdbtypes.c (type_align): Use type_length_units.
5288
5289 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5290
5291 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5292 of 'define' command.
5293
5294 2018-06-14 Tom de Vries <tdevries@suse.de>
5295
5296 PR cli/22573
5297 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5298 get_no_prettyformat_print_options.
5299
5300 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5301
5302 * sparc-nat.h: Include target.h.
5303 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5304 <fetch_registers>: Remove this argument in function call.
5305 <store_registers>: Remove this argument in function call, remove
5306 extra semicolon.
5307 <low_forget_process>: Call sparc64_forget_process instead of
5308 sparc_forget_process.
5309
5310 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5311
5312 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5313 (procfs_target::make_corefile_notes): Adjust to new
5314 target_read_alloc return type.
5315
5316 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5317 Stephen Roberts <stephen.roberts@arm.com>
5318
5319 PR gdb/22882
5320 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5321 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5322 Move should_notify_stop local into more inner scope.
5323
5324 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5325 Stephen Roberts <stephen.roberts@arm.com>
5326
5327 PR gdb/22882
5328 * infrun.c (resume_1): Add call to mark_async_event_handler.
5329
5330 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5331
5332 * infrun.c (do_target_wait): Change old version of $pc printed.
5333
5334 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5335
5336 * dwarf2read.c (read_index_from_section): Rename to...
5337 (read_gdb_index_from_section): ... this, update all callers.
5338 (dwarf2_read_index): Rename to...
5339 (dwarf2_read_gdb_index): ... this, update all callers.
5340
5341 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5342
5343 * gdb/hppa-linux-nat.c
5344 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5345 hppa_linux_nat_target::fetch_registers.
5346
5347 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5348
5349 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5350 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5351 (AARCH64_DWARF_SVE_FFR): Likewise.
5352 (AARCH64_DWARF_SVE_P0): Likewise.
5353 (AARCH64_DWARF_SVE_Z0): Likewise.
5354
5355 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5356
5357 * common/common-regcache.h (raw_compare): New function.
5358 * regcache.c (regcache::raw_compare): Likewise.
5359 * regcache.h (regcache::raw_compare): New declaration.
5360
5361 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5362
5363 * common/common-regcache.h (reg_buffer_common): New structure.
5364 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5365 (reg_buffer::raw_supply): Likewise.
5366 (reg_buffer::raw_supply_integer): Likewise.
5367 (reg_buffer::raw_supply_zeroed): Likewise.
5368 (reg_buffer::raw_collect): Likewise.
5369 (reg_buffer::raw_collect_integer): Likewise.
5370 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5371 (reg_buffer::raw_supply): Likewise.
5372 (reg_buffer::raw_supply_integer): Likewise.
5373 (reg_buffer::raw_supply_zeroed): Likewise.
5374 (reg_buffer::raw_collect): Likewise.
5375 (reg_buffer::raw_collect_integer): Likewise.
5376
5377 2018-06-10 Tom Tromey <tom@tromey.com>
5378
5379 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5380 (class remote_state) <stop_reply_queue>: Now std::vector.
5381 (remote_state::~remote_state)
5382 (remote_target::stop_reply_queue_length): Update.
5383 (struct queue_iter_param, remove_child_of_pending_fork)
5384 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5385 (check_pending_event_prevents_wildcard_vcont_callback)
5386 (remove_stop_reply_for_inferior)
5387 (remove_stop_reply_of_remote_state)
5388 (remote_notif_remove_once_on_match)
5389 (stop_reply_match_ptid_and_ws)
5390 (remote_kill_child_of_pending_fork): Remove.
5391 (remote_target::remove_new_fork_children)
5392 (remote_target::check_pending_events_prevent_wildcard_vcont)
5393 (remote_target::discard_pending_stop_replies)
5394 (remote_target::discard_pending_stop_replies_in_queue)
5395 (remote_target::remote_notif_remove_queued_reply)
5396 (remote_target::queued_stop_reply)
5397 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5398 (remote_target::wait, remote_target::kill_new_fork_children)
5399 (remote_target::async): Update.
5400
5401 2018-06-10 Tom Tromey <tom@tromey.com>
5402
5403 * record-full.c (record_full_arch_list_cleanups): Remove.
5404 (record_full_message): Use try/catch.
5405 (record_full_wait_cleanups): Remove.
5406 (record_full_wait_1): Use try/catch.
5407 (record_full_restore): Likewise.
5408
5409 2018-06-10 Tom Tromey <tom@tromey.com>
5410
5411 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5412 declare VEC. Add constructor.
5413 <in_target_beneath>: Now bool.
5414 (record_full_breakpoints): Now a std::vector, static.
5415 (record_full_sync_record_breakpoints)
5416 (record_full_init_record_breakpoints)
5417 (record_full_target::insert_breakpoint)
5418 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5419
5420 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5421
5422 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5423 * serial.c (serial_interface_lookup): Remove struct keyword.
5424
5425 2018-06-10 Tom Tromey <tom@tromey.com>
5426
5427 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5428 method.
5429 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5430 a method.
5431 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5432 method.
5433 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5434 "beneath" as a method.
5435 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5436 Use "beneath" as a method.
5437
5438 2018-06-10 Tom Tromey <tom@tromey.com>
5439
5440 * tracefile.c (struct trace_file_writer_deleter): New.
5441 <operator()>: Rename from trace_file_writer_xfree.
5442 (trace_file_writer_up): New typedef.
5443 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5444
5445 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5446
5447 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5448 <m_registers, m_register_status>: Change type to
5449 std::unique_ptr.
5450 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5451 XCNEWVEC.
5452
5453 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5454
5455 * common/common-regcache.h (enum register_status): Add
5456 underlying type "signed char".
5457 * regcache.h (reg_buffer) <m_register_status>: Change type to
5458 register_status *.
5459 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5460 register_status instead of signed char.
5461 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5462 (reg_buffer::get_register_status): Remove cast.
5463 (readable_regcache::raw_read): Remove cast.
5464 (readable_regcache::cooked_read): Remove cast.
5465
5466 2018-06-09 Tom Tromey <tom@tromey.com>
5467
5468 * source.c (reverse_search_command, forward_search_command): Use
5469 scoped_fd.
5470
5471 2018-06-09 Tom Tromey <tom@tromey.com>
5472
5473 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5474 (serial_ops_list): Now static, std::vector.
5475 (serial_interface_lookup, serial_add_interface): Update.
5476
5477 2018-06-09 Tom Tromey <tom@tromey.com>
5478
5479 * dwarf2read.c (process_cu_includes): Update.
5480 (process_full_comp_unit): Update.
5481 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5482 std::vector.
5483
5484 2018-06-08 Paul Koning <paul_koning@dell.com>
5485
5486 PR gdb/23252
5487
5488 * python/python.c (do_start_initialization):
5489 Avoid call to internal Python API.
5490 (init__gdb_module): New function.
5491
5492 2018-06-08 Gary Benson <gbenson@redhat.com>
5493
5494 * linux-thread-db.c (valprint.h): New include.
5495 (struct check_thread_db_info): New structure.
5496 (check_thread_db_on_load, tdb_testinfo): New static globals.
5497 (check_thread_db, check_thread_db_callback): New functions.
5498 (try_thread_db_load_1): Run integrity checks if requested.
5499 (maintenance_check_libthread_db): New function.
5500 (_initialize_thread_db): Register "maint check libthread-db"
5501 and "maint set/show check-libthread-db".
5502 * NEWS: Mention the above new commands.
5503
5504 2018-06-08 Tom Tromey <tom@tromey.com>
5505
5506 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5507 now a method.
5508
5509 2018-06-08 Tom Tromey <tom@tromey.com>
5510
5511 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5512
5513 2018-06-08 Tom Tromey <tom@tromey.com>
5514
5515 * common/btrace-common.h (struct btrace_data): Add constructor,
5516 destructor, move assignment operator.
5517 <empty, clear, fini>: New methods.
5518 <format>: Initialize.
5519 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5520 (btrace_data_empty): Don't declare.
5521 * common/btrace-common.c (btrace_data_init): Remove.
5522 (btrace_data::fini): Rename from btrace_data_fini.
5523 (btrace_data::empty): Rename from btrace_data_empty.
5524 (btrace_data::clear): Rename from btrace_data_clear. Return
5525 bool.
5526 * btrace.h (make_cleanup_btrace_data): Don't declare.
5527 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5528 (parse_xml_btrace): Update.
5529 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5530 (maint_btrace_clear_packet_history_cmd): Update.
5531
5532 2018-06-07 Pedro Alves <palves@redhat.com>
5533
5534 * target.h (target_ops) <beneath>: Now a method. All references
5535 updated.
5536 (class target_stack): New.
5537 * target.c (g_target_stack): New.
5538 (g_current_top_target): Delete.
5539 (current_top_target): Get the top target out of g_target_stack.
5540 (target_stack::push, target_stack::unpush): New.
5541 (push_target, unpush_target): Reimplement.
5542 (target_is_pushed): Reimplement in terms of g_target_stack.
5543 (target_ops::beneath, target_stack::find_beneath): New.
5544
5545 2018-06-07 Pedro Alves <palves@redhat.com>
5546
5547 * target.h (find_target_beneath): Delete declaration.
5548 * target.c (find_target_beneath): Delete definition.
5549 * aix-thread.c: All callers of find_target_beneath adjusted to
5550 call target_ops::beneath instead.
5551 * bsd-uthread.c: Likewise.
5552 * linux-thread-db.c: Likewise.
5553 * ravenscar-thread.c: Likewise.
5554 * sol-thread.c: Likewise.
5555 * spu-multiarch.c: Likewise.
5556
5557 2018-06-07 Pedro Alves <palves@redhat.com>
5558
5559 * target.h (target_ops) <beneath>: Now a method. All references
5560 updated.
5561 (target_ops) <m_beneath>: New.
5562 * target.c (target_ops::beneath): New.
5563 * corelow.c: Adjust all references to target_ops::beneath.
5564 * linux-thread-db.c: Likewise.
5565 * make-target-delegates: Likewise.
5566 * record-btrace.c: Likewise.
5567 * record-full.c: Likewise.
5568 * remote.c: Likewise.
5569 * target.c: Likewise.
5570 * target-delegates.c: Regenerate.
5571
5572 2018-06-07 Pedro Alves <palves@redhat.com>
5573
5574 * target.h (target_stack): Delete.
5575 (current_top_target): Declare function.
5576 * target.c (target_stack): Delete.
5577 (g_current_top_target): New.
5578 (current_top_target): New function.
5579 * auxv.c: Use current_top_target instead of target_stack
5580 throughout.
5581 * avr-tdep.c: Likewise.
5582 * breakpoint.c: Likewise.
5583 * corefile.c: Likewise.
5584 * elfread.c: Likewise.
5585 * eval.c: Likewise.
5586 * exceptions.c: Likewise.
5587 * frame.c: Likewise.
5588 * gdbarch-selftests.c: Likewise.
5589 * gnu-v3-abi.c: Likewise.
5590 * ia64-tdep.c: Likewise.
5591 * ia64-vms-tdep.c: Likewise.
5592 * infcall.c: Likewise.
5593 * infcmd.c: Likewise.
5594 * infrun.c: Likewise.
5595 * linespec.c: Likewise.
5596 * linux-tdep.c: Likewise.
5597 * minsyms.c: Likewise.
5598 * ppc-linux-nat.c: Likewise.
5599 * ppc-linux-tdep.c: Likewise.
5600 * procfs.c: Likewise.
5601 * regcache.c: Likewise.
5602 * remote.c: Likewise.
5603 * rs6000-tdep.c: Likewise.
5604 * s390-linux-nat.c: Likewise.
5605 * s390-tdep.c: Likewise.
5606 * solib-aix.c: Likewise.
5607 * solib-darwin.c: Likewise.
5608 * solib-dsbt.c: Likewise.
5609 * solib-spu.c: Likewise.
5610 * solib-svr4.c: Likewise.
5611 * solib-target.c: Likewise.
5612 * sparc-tdep.c: Likewise.
5613 * sparc64-tdep.c: Likewise.
5614 * spu-tdep.c: Likewise.
5615 * symfile.c: Likewise.
5616 * symtab.c: Likewise.
5617 * target-descriptions.c: Likewise.
5618 * target-memory.c: Likewise.
5619 * target.c: Likewise.
5620 * target.h: Likewise.
5621 * tracefile-tfile.c: Likewise.
5622 * tracepoint.c: Likewise.
5623 * valops.c: Likewise.
5624 * valprint.c: Likewise.
5625 * value.c: Likewise.
5626 * windows-tdep.c: Likewise.
5627 * mi/mi-main.c: Likewise.
5628
5629 2018-06-07 Tom Tromey <tom@tromey.com>
5630
5631 * valprint.h (build_address_symbolic): Declare.
5632 * printcmd.c (print_address_symbolic): Update.
5633 (build_address_symbolic): Change "name" and "filename" to
5634 std::string.
5635 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5636 Update.
5637 * defs.h (build_address_symbolic): Remove declaration.
5638
5639 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5640
5641 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5642 (aarch64_vnv_type): Add function.
5643 (aarch64_pseudo_register_name): Add V regs for SVE.
5644 (aarch64_pseudo_register_type): Likewise.
5645 (aarch64_pseudo_register_reggroup_p): Likewise.
5646 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5647 (aarch64_pseudo_read_value): Add V regs for SVE.
5648 (aarch64_pseudo_write_2): Use V0 offset for SVE
5649 (aarch64_pseudo_write): Add V regs for SVE.
5650 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5651
5652 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5653
5654 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5655 (sve_vl_from_vq): Likewise.
5656
5657 2018-06-05 Tom Tromey <tom@tromey.com>
5658
5659 * cli/cli-cmds.c (show_version): Update.
5660 * top.c (print_gdb_version): Add "interactive" parameter.
5661 Update.
5662 * main.c (captured_main_1): Update.
5663 * top.h (print_gdb_version): Add "interactive" parameter and a
5664 comment.
5665
5666 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5667
5668 * common/enum-flags.h: Add trailing semicolon to example in
5669 comment.
5670
5671 2018-06-05 Tom Tromey <tom@tromey.com>
5672
5673 PR cli/12326:
5674 * NEWS: Add entry about pager.
5675 * utils.c (pagination_disabled_for_command): New global.
5676 (prompt_for_continue): Allow "c" response to prompt.
5677 (reinitialize_more_filter): Clear
5678 pagination_disabled_for_command.
5679 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5680
5681 2018-06-04 Tom Tromey <tom@tromey.com>
5682
5683 * ada-lang.h (ada_lookup_symbol_list): Update.
5684 * ada-lang.c (resolve_subexp): Update.
5685 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5686 parameter.
5687 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5688 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5689 results parameter to std::vector.
5690 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5691 Update.
5692 * ada-exp.y (block_lookup): Update.
5693 (select_possible_type_sym): Change type of syms. Remove nsyms
5694 parameter.
5695 (write_var_or_type, write_name_assoc): Update.
5696
5697 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5698
5699 * windows-nat.c (windows_nat_target::xfer_partial): Return
5700 TARGET_XFER_E_IO if we need to delegate to the target beneath
5701 but BENEATH is NULL.
5702
5703 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5704
5705 * Makefile.in (config.status): Add configure.nat as a
5706 dependency.
5707
5708 2018-06-04 Tom Tromey <tom@tromey.com>
5709
5710 * cp-name-parser.y (cpname_state): Add method declarations.
5711 (HANDLE_QUAL): Update.
5712 (cpname_state::d_grab, cpname_state::fill_comp)
5713 (cpname_state::make_operator, cpname_state::make_dtor)
5714 (cpname_state::make_builtin_type, cpname_state::make_name)
5715 (cpname_state::d_qualify, cpname_state::d_int_type)
5716 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5717 (%union): Move earlier.
5718
5719 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5720
5721 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5722
5723 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5724
5725 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5726 (aarch64_pseudo_write_1): Likewise.
5727 (aarch64_pseudo_read_value): Use helper.
5728 (aarch64_pseudo_write): Likewise.
5729
5730 2018-06-04 Pedro Alves <palves@redhat.com>
5731
5732 * darwin-nat.c (darwin_ops): Delete.
5733 (darwin_attach_pid): Use get_native_target.
5734
5735 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5736
5737 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5738 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5739
5740 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5741
5742 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5743 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5744 (aarch64_gdbarch_init): Check for SVE.
5745 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5746
5747 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5748
5749 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5750 * aarch64-tdep.h (aarch64_read_description): Likewise.
5751 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5752 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5753 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5754 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5755 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5756
5757 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5758
5759 * value.c (value_fetch_lazy_bitfield): New.
5760 (value_fetch_lazy_memory): New.
5761 (value_fetch_lazy_register): New.
5762 (value_fetch_lazy): Factor out to smaller functions.
5763
5764 2018-06-01 Tom Tromey <tom@tromey.com>
5765
5766 * cp-name-parser.y (backslashable, represented): Now const.
5767
5768 2018-06-01 Tom Tromey <tom@tromey.com>
5769
5770 * cp-name-parser.y: Include parser-defs.h.
5771 (parser_fprintf): Remove declaration.
5772
5773 2018-06-01 Tom Tromey <tom@tromey.com>
5774
5775 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5776 %parse-param.
5777 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5778 (global_result): Remove globals.
5779 (struct cpname_state): New.
5780 (yyparse): Don't declare.
5781 (yylex, yyerror): Move declarations after %union.
5782 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5783 (make_name): Add state parameter.
5784 Update all callers.
5785 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5786 parameter.
5787 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5788 Update.
5789 (yylex): Add lvalp, state parameters.
5790 (yyerror): Add state parameter.
5791 (cp_demangled_name_to_comp): Update.
5792
5793 2018-06-01 Tom Tromey <tom@tromey.com>
5794
5795 * cp-name-parser.y (parser_fprintf): Declare.
5796 (GDB_YY_REMAP_PREFIX): Define.
5797 Include yy-remap.h. Don't redefine yy* identifiers.
5798
5799 2018-06-01 Tom Tromey <tom@tromey.com>
5800
5801 * python/py-type.c (typy_legacy_template_argument): Update.
5802 * cp-support.h (cp_demangled_name_to_comp): Update.
5803 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5804 parameter to be a "std::string *".
5805 (main): Update.
5806
5807 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5808
5809 * ada-lex.l: Include "diagnostics.h" instead of
5810 "common/diagnostics.h".
5811 * unittests/environ-selftests.c: Likewise.
5812 * common/diagnostics.h: Moved to ../include.
5813
5814 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5815
5816 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5817 to language_mode_manual while calling breakpoint_re_set_one.
5818
5819 2018-06-01 Tom Tromey <tom@tromey.com>
5820
5821 * valops.c (value_cast_structs, destructor_name_p): Update.
5822 * symtab.c (gdb_mangle_name): Update.
5823 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5824 Update.
5825 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5826 (pascal_object_print_value_fields, pascal_object_print_value):
5827 Update.
5828 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5829 * linespec.c (find_methods): Update.
5830 * gdbtypes.h (type_name_no_tag): Remove.
5831 (type_name_or_error): Rename from type_name_no_tag_or_error.
5832 * gdbtypes.c (type_name_no_tag): Remove.
5833 (type_name_or_error): Rename from type_name_no_tag_or_error.
5834 (lookup_struct_elt_type, check_typedef): Update.
5835 * expprint.c (print_subexp_standard): Update.
5836 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5837 * d-namespace.c (d_lookup_nested_symbol): Update.
5838 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5839 (cp_print_class_member): Update.
5840 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5841 * completer.c (add_struct_fields): Update.
5842 * c-typeprint.c (cp_type_print_derivation_info)
5843 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5844 Update.
5845 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5846 (ada_prefer_type, ada_is_exception_sym): Update.
5847
5848 2018-06-01 Tom Tromey <tom@tromey.com>
5849
5850 * valops.c (enum_constant_from_type, value_namespace_elt)
5851 (value_maybe_namespace_elt): Update.
5852 * valarith.c (find_size_for_pointer_math): Update.
5853 * target-descriptions.c (make_gdb_type): Update.
5854 * symmisc.c (print_symbol): Update.
5855 * stabsread.c (define_symbol, read_type)
5856 (complain_about_struct_wipeout, add_undefined_type)
5857 (cleanup_undefined_types_1): Update.
5858 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5859 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5860 (rust_internal_print_type, rust_composite_type)
5861 (rust_evaluate_funcall, rust_evaluate_subexp)
5862 (rust_inclusive_range_type_p): Update.
5863 * python/py-type.c (typy_get_tag): Update.
5864 * p-typeprint.c (pascal_type_print_base): Update.
5865 * mdebugread.c (parse_symbol, parse_type): Update.
5866 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5867 Update.
5868 * guile/scm-type.c (gdbscm_type_tag): Update.
5869 * go-lang.c (sixg_string_p): Update.
5870 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5871 Update.
5872 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5873 (TYPE_TAG_NAME): Remove.
5874 * gdbtypes.c (type_name_no_tag): Simplify.
5875 (check_typedef, check_types_equal, recursive_dump_type)
5876 (copy_type_recursive, arch_composite_type): Update.
5877 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5878 in summary mode when needed.
5879 * eval.c (evaluate_funcall): Update.
5880 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5881 (process_structure_scope, read_enumeration_type)
5882 (read_namespace_type, read_module_type, determine_prefix): Update.
5883 * cp-support.c (inspect_type): Update.
5884 * coffread.c (process_coff_symbol, decode_base_type): Update.
5885 * c-varobj.c (c_is_path_expr_parent): Update.
5886 * c-typeprint.c (c_type_print_base_struct_union): Update.
5887 (c_type_print_base_1): Update. Print struct/class/union/enum in
5888 summary when using C language.
5889 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5890 (gen_maybe_namespace_elt): Update.
5891 * ada-lang.c (ada_type_name): Simplify.
5892 (empty_record, ada_template_to_fixed_record_type_1)
5893 (template_to_static_fixed_type)
5894 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5895
5896 2018-06-01 Tom Tromey <tom@tromey.com>
5897
5898 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5899 c_print_type.
5900 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5901 (c_print_type): Update.
5902 (c_print_type): New overload.
5903 (c_type_print_varspec_prefix, c_type_print_args)
5904 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5905 (c_type_print_base_struct_union, c_type_print_base_1)
5906 (cp_type_print_method_args): Add "language" parameter.
5907 (c_type_print_base): Update.
5908 * c-lang.h (c_print_type): Add new overload.
5909
5910 2018-06-01 Tom Tromey <tom@tromey.com>
5911
5912 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5913 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5914
5915 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5916
5917 * aarch64-tdep.c (aarch64_sve_register_names): New const
5918 var.
5919 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5920 (AARCH64_SVE_Z_REGS_NUM): New define.
5921 (AARCH64_SVE_P_REGS_NUM): Likewise.
5922 (AARCH64_SVE_NUM_REGS): Likewise.
5923
5924 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5925
5926 * nat/linux-ptrace.h [__alpha__]
5927 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5928 definitions.
5929
5930 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5931
5932 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5933 the endianness selected.
5934 * NEWS: Document `set endian auto' mode operation update.
5935
5936 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5937
5938 * Makefile.in: Add new header.
5939 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5940 (sve_vl_from_vg): Likewise.
5941 (sve_vq_from_vl): Likewise.
5942 (sve_vl_from_vq): Likewise.
5943 (sve_vq_from_vg): Likewise.
5944 (sve_vg_from_vq): Likewise.
5945 * configure.nat: Add new c file.
5946 * nat/aarch64-sve-linux-ptrace.c: New file.
5947 * nat/aarch64-sve-linux-ptrace.h: New file.
5948
5949 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5950
5951 * aarch64-linux-nat.c (aarch64_linux_read_description):
5952 Add parmeter zero.
5953 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5954 Likewise.
5955 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5956 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5957 (aarch64_gdbarch_init): Add parmeter zero.
5958 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5959 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5960 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5961 parmeter.
5962 * doc/gdb.texinfo: Describe SVE feature
5963 * features/aarch64-sve.c: New file.
5964
5965 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
5966
5967 PR gdb/23210
5968 * gdbarch.sh (significant_addr_bit): Default to zero when
5969 not set by target architecture.
5970 * gdbarch.c: Re-generated.
5971 * utils.c (address_significant): Update.
5972
5973 2018-05-30 Joel Brobecker <brobecker@adacore.com>
5974
5975 * stack.c (func_command): Remove trailing newline in call to error.
5976
5977 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5978
5979 * regcache.h (regcache_raw_collect): Remove, update callers to
5980 use regcache::raw_collect.
5981 * regcache.c (regcache_raw_collect): Remove.
5982
5983 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5984
5985 * regcache.h (regcache_raw_supply): Remove, update callers to
5986 use detached_regcache::raw_supply.
5987 * regcache.c (regcache_raw_supply): Remove.
5988
5989 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5990
5991 * regcache.h (regcache_cooked_write_part): Remove, update
5992 callers to use regcache::cooked_write_part.
5993 * regcache.c (regcache_cooked_write_part): Remove.
5994
5995 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5996
5997 * regcache.h (regcache_cooked_read_part): Remove, update callers
5998 to use readable_regcache::cooked_read_part.
5999 * regcache.c (regcache_cooked_read_part): Remove.
6000
6001 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6002
6003 * regcache.h (regcache_cooked_read_value): Remove, update
6004 callers to use readable_regcache::cooked_read_value.
6005 * regcache.c (regcache_cooked_read_value): Remove.
6006
6007 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6008
6009 * regcache.h (regcache_cooked_write): Remove, update callers to
6010 use regcache::cooked_write.
6011 * regcache.c (regcache_cooked_write): Remove.
6012
6013 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6014
6015 * regcache.h (regcache_invalidate): Remove, update callers to
6016 use detached_regcache::invalidate instead.
6017 * regcache.c (regcache_invalidate): Remove.
6018
6019 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6020
6021 * regcache.h (regcache_raw_write_part): Remove, update callers
6022 to use regcache::raw_write_part instead.
6023 * regcache.c (regcache_raw_write_part): Remove.
6024
6025 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6026
6027 * regcache.h (regcache_raw_read_part): Remove, update callers to
6028 use readable_regcache::raw_read_part instead.
6029 * regcache.c (regcache_raw_read_part): Remove.
6030
6031 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6032
6033 * regcache.h (regcache_cooked_read): Remove, update callers to
6034 use readable_regcache::cooked_read instead.
6035 * regcache.c (regcache_cooked_read): Remove.
6036
6037 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6038
6039 * regcache.h (regcache_raw_write): Remove, update callers to use
6040 regcache::raw_write instead.
6041 * regcache.c (regcache_raw_write): Remove.
6042
6043 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6044
6045 * regcache.h (regcache_raw_read): Remove, update callers to use
6046 readable_regcache::raw_read instead.
6047 * regcache.c (regcache_raw_read): Remove.
6048
6049 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6050
6051 * regcache.h (regcache_raw_update): Remove, update callers to
6052 use readable_regcache::raw_update instead.
6053 * regcache.c (regcache_raw_update): Remove.
6054
6055 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6056
6057 * regcache.h (regcache_register_status): Remove, update callers
6058 to use reg_buffer::get_register_status directly instead.
6059 * regcache.c (regcache_register_status): Remove.
6060
6061 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6062
6063 * regcache.h (regcache_get_ptid): Remove, update all callers to
6064 call regcache::ptid instead.
6065 * regcache.c (regcache_get_ptid): Remove.
6066
6067 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6068
6069 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6070
6071 2018-05-30 Pedro Alves <palves@redhat.com>
6072
6073 * common/common-exceptions.h (exception_rethrow): Use
6074 ATTRIBUTE_NORETURN.
6075
6076 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6077
6078 * breakpoint.c (print_solib_event, check_status_catch_solib):
6079 Remove struct keyword in range-based for loops.
6080 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6081 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6082 Likewise.
6083 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6084 Likewise.
6085 * symfile.c (addr_info_make_relative): Likewise.
6086 * thread.c (value_in_thread_stack_temporaries): Likewise.
6087
6088 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6089
6090 PR gdb/16841
6091 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6092 aggregate type to get its real type before accessing it.
6093
6094 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6095
6096 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6097 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6098 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6099 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6100 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6101 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6102 * printcmd.c (info_address_command): Likewise.
6103
6104 2018-05-29 Tom Tromey <tom@tromey.com>
6105
6106 * windows-nat.c (handle_exception): Update fall-through comment.
6107
6108 2018-05-29 Tom Tromey <tom@tromey.com>
6109
6110 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6111 (struct program_space) <added_solibs>: Now a std::vector.
6112 * breakpoint.c (print_solib_event): Update.
6113 (check_status_catch_solib): Update.
6114 * progspace.c (clear_program_space_solib_cache): Update.
6115 * solib.c (update_solib_list): Update.
6116
6117 2018-05-29 Tom Tromey <tom@tromey.com>
6118
6119 * python/py-type.c (typy_richcompare): Update.
6120 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6121 * gdbtypes.h (types_deeply_equal): Return bool.
6122 (types_equal): Likewise.
6123 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6124 declare VEC.
6125 (check_types_equal): Change worklist to std::vector. Return
6126 bool.
6127 (struct type_equality_entry): Add constructor.
6128 (compare_maybe_null_strings): Return bool.
6129 (check_types_worklist): Return bool. Change worklist to
6130 std::vector.
6131 (types_deeply_equal): Use std::vector.
6132 (types_equal): Return bool.
6133 (compare_maybe_null_strings): Simplify.
6134
6135 2018-05-29 Tom Tromey <tom@tromey.com>
6136
6137 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6138
6139 2018-05-29 Tom Tromey <tom@tromey.com>
6140
6141 * objc-lang.h: Don't include cp-support.h.
6142 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6143 declare VEC.
6144
6145 2018-05-27 Tom Tromey <tom@tromey.com>
6146
6147 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6148
6149 2018-05-25 Tom Tromey <tom@tromey.com>
6150
6151 * value.c (value::location): Initialize.
6152
6153 2018-05-25 Tom Tromey <tom@tromey.com>
6154
6155 * dbxread.c (init_bincl_list): Remove.
6156 (bincl_list): Now a std::vector.
6157 (bincls_allocated, next_bincl): Remove.
6158 (free_bincl_list, do_free_bincl_list_cleanup)
6159 (make_cleanup_free_bincl_list): Remove.
6160 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6161 unique_xmalloc_ptr.
6162 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6163 (struct header_file_location): Add constructor.
6164 (add_bincl_to_list): Remove.
6165
6166 2018-05-25 Tom Tromey <tom@tromey.com>
6167
6168 * tui/tui.c (tui_enable): Update.
6169 * mi/mi-interp.c (mi_interp::init): Update.
6170 * interps.h (class interp) <name>: New method.
6171 <m_name>: Rename from name.
6172 (~scoped_restore_interp): Update.
6173 * interps.c (interp::interp): Update.
6174 (interp_add, interp_set, interp_lookup_existing)
6175 (current_interp_named_p): Update.
6176
6177 2018-05-25 Tom Tromey <tom@tromey.com>
6178
6179 * interps.c (interp_name): Remove.
6180 * mi/mi-interp.c (mi_interp::init): Update.
6181 * interps.h (interp_name): Remove.
6182 (~scoped_restore_interp): Update.
6183 * tui/tui.c (tui_enable): Update.
6184
6185 2018-05-25 Tom Tromey <tom@tromey.com>
6186
6187 * utils.c (fputs_maybe_filtered): Update.
6188 * linespec.c (decode_line_full): Update.
6189 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6190 (mi_print_breakpoint_for_event, mi_solib_loaded)
6191 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6192 (mi_user_selected_context_changed): Update.
6193 * mi/mi-main.c (mi_execute_command): Update.
6194 * cli/cli-script.c (execute_control_command): Update.
6195 * python/python.c (execute_gdb_command): Update.
6196 * solib.c (info_sharedlibrary_command): Update.
6197 * interps.c (interp_ui_out): Remove.
6198 * interps.h (interp_ui_out): Remove.
6199
6200 2018-05-25 Tom Tromey <tom@tromey.com>
6201
6202 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6203 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6204 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6205
6206 2018-05-25 Tom Tromey <tom@tromey.com>
6207
6208 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6209 * interps.c (interp_exec): Use scoped_restore.
6210
6211 2018-05-25 Tom Tromey <tom@tromey.com>
6212
6213 * remote.c (remote_target::remote_file_get): Use
6214 gdb::byte_vector.
6215 (remote_target::remote_file_put): Likewise.
6216
6217 2018-05-25 Tom Tromey <tom@tromey.com>
6218
6219 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6220 a std::string.
6221 (get_pe_section_index, add_pe_exported_sym): Update.
6222 (read_pe_exported_syms): Use gdb::def_vector.
6223
6224 2018-05-25 Tom Tromey <tom@tromey.com>
6225
6226 * frame.c (remove_prev_frame): Remove.
6227 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6228
6229 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6230
6231 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6232 Remove prototypes.
6233 * mips-linux-nat.c (supply_fpregset): Always call
6234 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6235 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6236 `mips_fill_fpregset'.
6237 * mips-linux-tdep.c (mips_supply_fpregset)
6238 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6239 (mips_fill_fpregset_wrapper): Remove functions.
6240 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6241 (mips_linux_fpregset): Remove variable.
6242 (mips_linux_iterate_over_regset_sections): Use
6243 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6244 (mips_linux_o32_sigframe_init): Remove comment.
6245
6246 2018-05-25 Pedro Alves <palves@redhat.com>
6247
6248 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6249 (struct readahead_cache, struct packet_reg, struct
6250 remote_arch_state, class remote_state): Move higher up in the
6251 file.
6252 (remote_target::m_remote_state): Now an object instead of a pointer.
6253 (remote_target::get_remote_state): Adjust.
6254
6255 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6256
6257 * stack.c (select_and_print_frame): Delete.
6258 (struct function_bounds): Move struct within function.
6259 (func_command): Most content moved into new function
6260 find_frame_for_function, use new function, print result, add
6261 function comment.
6262 (find_frame_for_function): New function, now returns a result.
6263
6264 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6265
6266 * stack.c (iterate_over_block_arg_vars): Fix comment.
6267 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6268
6269 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6270
6271 PR gdb/23203
6272 * frame.c
6273 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6274 Define.
6275 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6276 Define.
6277 * frame.h (class scoped_restore_selected_frame): New class.
6278 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6279 of any exception, use scoped_restore_selected_frame to restore the
6280 frame instead.
6281
6282 2018-05-24 Pedro Alves <palves@redhat.com>
6283
6284 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6285 override.
6286
6287 2018-05-23 Tom Tromey <tom@tromey.com>
6288
6289 * complaints.c (struct complaints): Remove.
6290 (symfile_complaint_book): Remove.
6291 (series): New global.
6292 (complaint_internal): Update.
6293 (clear_complaints): Update.
6294
6295 2018-05-23 Tom Tromey <tom@tromey.com>
6296
6297 * complaints.c (counters): New global.
6298 (struct complain): Remove.
6299 (struct complaints) <root>: Remove.
6300 (complaint_sentinel): Remove.
6301 (symfile_complaint_book): Update.
6302 (find_complaint) Remove.
6303 (complaint_internal, clear_complaints): Update.
6304
6305 2018-05-23 Tom Tromey <tom@tromey.com>
6306
6307 * complaints.c (struct complain) <file, line>: Remove.
6308 (find_complaint): Remove file, line parameters.
6309 (complaint_internal): Update.
6310
6311 2018-05-23 Tom Tromey <tom@tromey.com>
6312
6313 * complaints.c (vcomplaint): Remove.
6314 (complaint_internal) Merge in contents of vcomplaint.
6315
6316 2018-05-23 Tom Tromey <tom@tromey.com>
6317
6318 * complaints.c (struct complaints) <explanation>: Remove.
6319 (symfile_explanations): Remove.
6320 (symfile_complaint_book): Update.
6321 (vcomplaint): Update.
6322 (struct explanation): Remove.
6323
6324 2018-05-23 Tom Tromey <tom@tromey.com>
6325
6326 * complaints.c (symfile_complaints): Remove.
6327 (complaint_internal): Remove "complaints" parameter.
6328 (clear_complaints, vcomplaint): Remove "c" parameter.
6329 (get_complaints): Remove.
6330 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6331 (dwarf2_debug_line_missing_file_complaint)
6332 (dwarf2_debug_line_missing_end_sequence_complaint)
6333 (dwarf2_complex_location_expr_complaint)
6334 (dwarf2_const_value_length_mismatch_complaint)
6335 (dwarf2_section_buffer_overflow_complaint)
6336 (dwarf2_macro_malformed_definition_complaint)
6337 (dwarf2_invalid_attrib_class_complaint)
6338 (create_addrmap_from_index, dw2_symtab_iter_next)
6339 (dw2_expand_marked_cus)
6340 (dw2_debug_names_iterator::find_vec_in_debug_names)
6341 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6342 (create_debug_type_hash_table, init_cutu_and_read_dies)
6343 (partial_die_parent_scope, add_partial_enumeration)
6344 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6345 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6346 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6347 (create_cus_hash_table, create_dwp_hash_table)
6348 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6349 (dwarf2_rnglists_process, dwarf2_ranges_process)
6350 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6351 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6352 (handle_struct_member_die, process_structure_scope)
6353 (read_array_type, read_common_block, read_module_type)
6354 (read_tag_pointer_type, read_typedef, read_base_type)
6355 (read_subrange_type, load_partial_dies, partial_die_info::read)
6356 (partial_die_info::read, partial_die_info::read)
6357 (partial_die_info::read, read_checked_initial_length_and_offset)
6358 (dwarf2_string_attr, read_formatted_entries)
6359 (dwarf_decode_line_header)
6360 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6361 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6362 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6363 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6364 (get_signatured_type, get_DW_AT_signature_type)
6365 (decode_locdesc, file_file_name, consume_improper_spaces)
6366 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6367 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6368 (dwarf2_symbol_mark_computed, set_die_type)
6369 (read_attribute_value): Update.
6370 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6371 Update.
6372 * dbxread.c (unknown_symtype_complaint)
6373 (lbrac_mismatch_complaint, repeated_header_complaint)
6374 (set_namestring, function_outside_compilation_unit_complaint)
6375 (read_dbx_symtab, process_one_symbol): Update.
6376 * gdbtypes.c (stub_noname_complaint): Update.
6377 * windows-nat.c (handle_unload_dll): Update.
6378 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6379 (decode_base_type): Update.
6380 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6381 (eb_complaint, record_include_begin, record_include_end)
6382 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6383 (process_xcoff_symbol, read_symbol)
6384 (function_outside_compilation_unit_complaint)
6385 (scan_xcoff_symtab): Update.
6386 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6387 * buildsym.c (finish_block_internal, make_blockvector)
6388 (end_symtab_get_static_block, augment_type_symtab): Update.
6389 * dtrace-probe.c (dtrace_process_dof)
6390 (dtrace_static_probe_ops::get_probes): Update.
6391 * complaints.h (struct complaint): Don't declare.
6392 (symfile_complaints): Remove.
6393 (complaint_internal): Remove "complaints" parameter.
6394 (complaint): Likewise.
6395 (clear_complaints): Likewise.
6396 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6397 (reread_symbols): Update.
6398 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6399 (dwarf2_frame_cache, decode_frame_entry): Update.
6400 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6401 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6402 (info_selectors_command): Update.
6403 * macrotab.c (macro_include, check_for_redefinition)
6404 (macro_undef): Update.
6405 * objfiles.c (filter_overlapping_sections): Update.
6406 * stabsread.c (invalid_cpp_abbrev_complaint)
6407 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6408 (define_symbol, error_type, read_type, rs6000_builtin_type)
6409 (stabs_method_name_from_physname, read_member_functions)
6410 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6411 (attach_fields_to_type, complain_about_struct_wipeout)
6412 (read_range_type, read_args, common_block_start)
6413 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6414 Update.
6415 * mdebugread.c (index_complaint, unknown_ext_complaint)
6416 (basic_type_complaint, bad_tag_guess_complaint)
6417 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6418 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6419 (parse_procedure, parse_lines)
6420 (function_outside_compilation_unit_complaint)
6421 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6422 (bad_tag_guess_complaint, reg_value_complaint): Update.
6423 * cp-support.c (demangled_name_complaint): Update.
6424 * macroscope.c (sal_macro_scope): Update.
6425 * dwarf-index-write.c (class debug_names): Update.
6426
6427 2018-05-23 Tom Tromey <tom@tromey.com>
6428
6429 * complaints.c (clear_complaints): Remove "noisy" parameter.
6430 * complaints.h (clear_complaints): Update.
6431 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6432 (reread_symbols): Update.
6433
6434 2018-05-23 Tom Tromey <tom@tromey.com>
6435
6436 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6437 SUBSEQUENT_MESSAGE.
6438 (vcomplaint, clear_complaints): Update.
6439 (symfile_explanations): Remove some messages.
6440
6441 2018-05-23 Tom Tromey <tom@tromey.com>
6442
6443 * complaints.c (internal_complaint): Remove.
6444 * complaints.h (internal_complaint): Remove.
6445
6446 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6447
6448 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6449
6450 2018-05-22 Pedro Alves <palves@redhat.com>
6451
6452 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6453 (remote_fileio_badfd, remote_fileio_return_errno)
6454 (remote_fileio_return_success, remote_fileio_func_open)
6455 (remote_fileio_func_open, remote_fileio_func_close)
6456 (remote_fileio_func_read, remote_fileio_func_write)
6457 (remote_fileio_func_lseek, remote_fileio_func_rename)
6458 (remote_fileio_func_unlink, remote_fileio_func_stat)
6459 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6460 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6461 remote_target parameter.
6462 (remote_fio_func_map) <func>: Add remote_target parameter.
6463 (do_remote_fileio_request, remote_fileio_request):
6464 * remote-fileio.h (remote_fileio_request):
6465 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6466 remote_target parameter.
6467 (remote_notif_process, handle_notification): Adjust to pass down
6468 the remote.
6469 (remote_notif_state_allocate): Add remote_target parameter. Save
6470 it.
6471 * remote-notif.h (struct remote_target): Forward declare.
6472 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6473 remote_target parameter.
6474 (struct remote_notif_state) <remote>: New field.
6475 (remote_notif_ack, remote_notif_parse): Add remote_target
6476 parameter.
6477 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6478 remote_target parameter.
6479 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6480 (threads_listing_context, rmt_thread_action, protocol_feature)
6481 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6482 (packet_result, struct threads_listing_context, remote_state):
6483 Move definitions and declarations higher up.
6484 (remote_target) <~remote_target>: Declare.
6485 (remote_download_command_source, remote_file_put, remote_file_get)
6486 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6487 (remote_hostio_pread_vFile, remote_hostio_send_command)
6488 (remote_hostio_set_filesystem, remote_hostio_open)
6489 (remote_hostio_close, remote_hostio_unlink, remote_state)
6490 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6491 (get_memory_write_packet_size, get_memory_read_packet_size)
6492 (append_pending_thread_resumptions, remote_detach_1)
6493 (append_resumption, remote_resume_with_vcont)
6494 (add_current_inferior_and_thread, wait_ns, wait_as)
6495 (process_stop_reply, remote_notice_new_inferior)
6496 (process_initial_stop_replies, remote_add_thread)
6497 (btrace_sync_conf, remote_btrace_maybe_reopen)
6498 (remove_new_fork_children, kill_new_fork_children)
6499 (discard_pending_stop_replies, stop_reply_queue_length)
6500 (check_pending_events_prevent_wildcard_vcont)
6501 (discard_pending_stop_replies_in_queue, stop_reply)
6502 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6503 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6504 (remote_interrupt_as, remote_interrupt_ns)
6505 (remote_get_noisy_reply, remote_query_attached)
6506 (remote_add_inferior, remote_current_thread, get_current_thread)
6507 (set_thread, set_general_thread, set_continue_thread)
6508 (set_general_process, write_ptid)
6509 (remote_unpack_thread_info_response, remote_get_threadinfo)
6510 (parse_threadlist_response, remote_get_threadlist)
6511 (remote_threadlist_iterator, remote_get_threads_with_ql)
6512 (remote_get_threads_with_qxfer)
6513 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6514 (get_offsets, remote_check_symbols, remote_supported_packet)
6515 (remote_query_supported, remote_packet_size)
6516 (remote_serial_quit_handler, remote_detach_pid)
6517 (remote_vcont_probe, remote_resume_with_hc)
6518 (send_interrupt_sequence, interrupt_query)
6519 (remote_notif_get_pending_events, fetch_register_using_p)
6520 (send_g_packet, process_g_packet, fetch_registers_using_g)
6521 (store_register_using_P, store_registers_using_G)
6522 (set_remote_traceframe, check_binary_download)
6523 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6524 (remote_xfer_live_readonly_partial, remote_read_bytes)
6525 (remote_send_printf, remote_flash_write, readchar)
6526 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6527 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6528 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6529 (extended_remote_disable_randomization, extended_remote_run)
6530 (send_environment_packet, extended_remote_environment_support)
6531 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6532 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6533 (packet_command): Now methods of ...
6534 (remote_target): ... this class.
6535 (m_remote_state) <remote_target>: New field.
6536 (struct remote_state) <stop_reply_queue,
6537 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6538 fields.
6539 (remote_state::remote_state): Allocate stop_reply_queue.
6540 (remote_state): Delete global.
6541 (get_remote_state_raw): Delete.
6542 (remote_target::get_remote_state): Allocate m_remote_state on
6543 demand.
6544 (get_current_remote_target): New.
6545 (remote_ops, extended_remote_ops): Delete.
6546 (wait_forever_enabled_p, remote_async_inferior_event_token):
6547 Delete, moved to struct remote_state.
6548 (remote_target::close): Delete self. Destruction bits split to
6549 ...
6550 (remote_target::~remote_target): ... this.
6551 (show_memory_packet_size): Adjust to use
6552 get_current_remote_target.
6553 (struct protocol_feature) <func>: Add remote_target parameter.
6554 All callers adjusted.
6555 (curr_quit_handler_target): New.
6556 (remote_serial_quit_handler): Reimplement.
6557 (remote_target::open_1): Adjust to use get_current_remote_target.
6558 Heap-allocate remote_target/extended_remote_target instances.
6559 (vcont_builder::vcont_builder): Add remote_target parameter, and
6560 save it in m_remote. All callers adjusted.
6561 (vcont_builder::m_remote): New field.
6562 (vcont_builder::restart, vcont_builder::flush)
6563 (vcont_builder::push_action): Use it.
6564 (remote_target::commit_resume): Use it.
6565 (struct queue_iter_param) <remote>: New field.
6566 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6567 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6568 (check_pending_event_prevents_wildcard_vcont_callback)
6569 (remote_target::check_pending_events_prevent_wildcard_vcont)
6570 (remote_target::discard_pending_stop_replies)
6571 (remote_target::discard_pending_stop_replies_in_queue)
6572 (remote_target::remote_notif_remove_queued_reply): Fill in
6573 'remote' field.
6574 (remote_notif_get_pending_events): New.
6575 (remote_target::readchar, remote_target::remote_serial_write):
6576 Save/restore curr_quit_handler_target.
6577 (putpkt): New.
6578 (kill_new_fork_children): Fill in 'remote' field.
6579 (packet_command): Use get_current_remote_target, defer to
6580 remote_target method of same name.
6581 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6582 parameter, and save it in m_remote. All callers adjusted.
6583 (scoped_remote_fd::release): Use m_remote.
6584 (scoped_remote_fd::m_remote): New field.
6585 (remote_file_put, remote_file_get, remote_file_delete): Use
6586 get_current_remote_target, defer to remote_target method of same
6587 name.
6588 (remote_btrace_reset): Add remote_state paremeter. Update all
6589 callers.
6590 (remote_async_inferior_event_handler). Pass down 'data'.
6591 (remote_new_objfile): Use get_current_remote_target.
6592 (remote_target::vcont_r_supported): New.
6593 (set_range_stepping): Use get_current_remote_target and
6594 remote_target::vcont_r_supported.
6595 (_initialize_remote): Don't allocate 'remote_state' and
6596 'stop_reply_queue' globals.
6597 * remote.h (struct remote_target): Forward declare.
6598 (getpkt, putpkt, remote_notif_get_pending_events): Add
6599 'remote_target' parameter.
6600
6601 2018-05-22 Pedro Alves <palves@redhat.com>
6602
6603 * remote.c (vcont_builder): Now a class. Make all data members
6604 private.
6605 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6606 Declare methods.
6607 (vcont_builder_restart): Rename to ...
6608 (vcont_builder::restart): ... this.
6609 (vcont_builder_flush): Rename to ...
6610 (vcont_builder::flush): ... this.
6611 (vcont_builder_push_action): Rename to ...
6612 (vcont_builder::push_action): ... this.
6613 (remote_target::commit_resume): Adjust.
6614
6615 2018-05-22 Pedro Alves <palves@redhat.com>
6616
6617 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6618 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6619 (get_fixed_memory_packet_size): New.
6620 (get_memory_packet_size): Use it.
6621 (set_memory_packet_size): Don't override the config size with
6622 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6623 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6624 Don't refer to get_memory_packet_size if not connected to a remote
6625 target. Show "(default)" if configured size is 0.
6626
6627 2018-05-22 Pedro Alves <palves@redhat.com>
6628
6629 * remote.c (remote_target::mourn_inferior): Move
6630 discard_pending_stop_replies call here from ...
6631 (_initialize_remote): ... here.
6632
6633 2018-05-22 Pedro Alves <palves@redhat.com>
6634
6635 * remote.c (compare_section_command): Remove set_general_process
6636 call.
6637
6638 2018-05-22 Pedro Alves <palves@redhat.com>
6639
6640 * remote.c (struct packet_reg, struct remote_arch_state):
6641 Move higher up in the file.
6642 (remote_state) <m_arch_states>: Store remote_arch_state values
6643 instead of remote_arch_state pointers.
6644 (remote_state::get_remote_arch_state): Adjust.
6645
6646 2018-05-22 Pedro Alves <palves@redhat.com>
6647
6648 * remote.c: Include <unordered_map>.
6649 (remote_state): Now a class.
6650 (remote_state) <get_remote_arch_state>: Declare method.
6651 <get_remote_arch_state>: New field.
6652 (remote_arch_state) <remote_arch_state>: Declare ctor.
6653 <regs>: Now a unique_ptr.
6654 (remote_gdbarch_data_handle): Delete.
6655 (get_remote_arch_state): Delete.
6656 (remote_state::get_remote_arch_state): New.
6657 (get_remote_state): Adjust to call remote_state's
6658 get_remote_arch_state method.
6659 (init_remote_state): Delete, bits factored out to ...
6660 (remote_arch_state::remote_arch_state): ... this new method.
6661 (get_remote_packet_size, get_memory_packet_size)
6662 (process_g_packet, remote_target::fetch_registers)
6663 (remote_target::prepare_to_store, store_registers_using_G)
6664 (remote_target::store_registers, remote_target::get_trace_status):
6665 Adjust to call remote_state's method.
6666 (_initialize_remote): Remove reference to
6667 remote_gdbarch_data_handle.
6668
6669 2018-05-22 Pedro Alves <palves@redhat.com>
6670
6671 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6672 pread>: New method declarations.
6673 (remote_target::open_1): Adjust.
6674 (readahead_cache_invalidate): Rename to ...
6675 (readahead_cache::invalidate): ... this, and adjust to be a class
6676 method.
6677 (readahead_cache_invalidate_fd): Rename to ...
6678 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6679 class method.
6680 (remote_hostio_pwrite): Adjust.
6681 (remote_hostio_pread_from_cache): Rename to ...
6682 (readahead_cache::pread): ... this, and adjust to be a class
6683 method.
6684 (remote_hostio_close): Adjust.
6685
6686 2018-05-22 Pedro Alves <palves@redhat.com>
6687
6688 * remote.c (remote_hostio_close_cleanup): Delete.
6689 (class scoped_remote_fd): New.
6690 (remote_file_put, remote_file_get): Use it.
6691
6692 2018-05-22 Pedro Alves <palves@redhat.com>
6693
6694 (struct vCont_action_support): Use bool and initialize all fields.
6695 (struct readahead_cache): Initialize all fields.
6696 (remote_state): Use bool and initialize all fields.
6697 (remote_state::remote_state, remote_state::~remote_state): New.
6698 (new_remote_state): Delete.
6699 (_initialize_remote): Use new to allocate remote_state.
6700
6701 2018-05-22 Pedro Alves <palves@redhat.com>
6702 張俊芝 <zjz@zjz.name>
6703
6704 PR gdb/22973
6705 * c-exp.y: Include "c-support.h".
6706 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6707 of tolower. Use c_ident_is_alpha to scan names.
6708 * c-lang.c: Include "c-support.h".
6709 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6710 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6711 * c-support.h: New file, with bits factored out from ...
6712 * cp-name-parser.y: ... this file.
6713 Include "c-support.h".
6714 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6715 c-support.h and renamed.
6716 (symbol_end, yylex): Adjust.
6717
6718 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6719
6720 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6721 parameter type to CORE_ADDR.
6722 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6723 parameter type in declaration to CORE_ADDR.
6724 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6725 target_auxv_search to get AT_HWCAP and use the result to get the
6726 target description.
6727 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6728 to CORE_ADDR. Remove the cast of the return value to unsigned
6729 long. Fix error predicate of target_auxv_search.
6730 (ppc_linux_nat_target::read_description): Change the type of the
6731 hwcap variable to CORE_ADDR.
6732
6733 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6734
6735 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6736 if the size of fpscr is larger than 32 bits.
6737
6738 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6739
6740 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6741 (ppc32_linux_vsxregmap): New global.
6742 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6743 regcache_supply_regset, and regcache_collect_regset.
6744 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6745 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6746 (fetch_vsx_register, store_vsx_register): Remove.
6747 (fetch_vsx_registers): Add regno parameter. Get regset using
6748 ppc_linux_vsxregset. Use regset to supply registers.
6749 (store_vsx_registers): Add regno parameter. Get regset using
6750 ppc_linux_vsxregset. Use regset to collect registers.
6751 (fetch_register): Call fetch_vsx_registers instead of
6752 fetch_vsx_register.
6753 (store_register): Call store_vsx_registers instead of
6754 store_vsx_register.
6755 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6756 new regno parameter.
6757 (store_ppc_registers): Call store_vsx_registers with -1 for the
6758 new regno parameter.
6759 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6760 (ppc_collect_vsxregset): Remove.
6761
6762 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6763
6764 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6765 offset fields.
6766 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6767 for vector register offset fields.
6768 (ppc64_fbsd_reg_offsets): Likewise.
6769 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6770 to vector register offset fields.
6771 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6772 to vector register offset fields.
6773 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6774 vector register offset fields.
6775 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6776 initializers for vector register offset fields.
6777 (rs6000_aix64_reg_offsets): Likewise.
6778 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6779 (ppc_supply_vrregset): Remove.
6780 (ppc_collect_vrregset): Remove.
6781 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6782 (ppc_linux_vrregset) : New function.
6783 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6784 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6785 (ppc32_linux_vrregset): Remove.
6786 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6787 and use result instead of ppc32_linux_vrregset.
6788 (ppc32_linux_reg_offsets): Remove initializers for vector register
6789 offset fields.
6790 (ppc64_linux_reg_offsets): Likewise.
6791 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6792 * ppc-linux-nat.c: Include regset.h.
6793 (gdb_vrregset_t): Adjust comment to account for little-endian
6794 mode.
6795 (supply_vrregset, fill_vrregset): Remove.
6796 (fetch_altivec_register, store_altivec_register): Remove.
6797 (fetch_altivec_registers): Add regno parameter. Get regset using
6798 ppc_linux_vrregset. Use regset to supply registers.
6799 (store_altivec_registers): Add regno parameter. Get regset using
6800 ppc_linux_vrregset. Use regset to collect registers.
6801 (fetch_register): Call fetch_altivec_registers instead of
6802 fetch_altivec_register.
6803 (store_register): Call store_altivec_registers instead of
6804 store_altivec_register.
6805 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6806 the new regno parameter.
6807 (store_ppc_registers): Call store_altivec_registers with -1 for
6808 the new regno parameter.
6809
6810 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6811
6812 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6813 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6814 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6815 (gdb_vrregset_t): Change array type size to
6816 PPC_LINUX_SIZEOF_VRREGSET.
6817 (gdb_vsxregset_t): Change array type size to
6818 PPC_LINUX_SIZEOF_VSXREGSET.
6819 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6820 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6821 PPC_LINUX_SIZEOF_VSXREGSET.
6822
6823 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6824
6825 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6826 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6827 nat/ppc-linux.c.
6828 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6829 ppc_linux_target_wordsize with tid.
6830 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6831 wordsize with tid.
6832 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6833 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6834 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6835 tid parameter. Remove static specifier.
6836 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6837 (ppc_linux_target_wordsize): New declaration.
6838
6839 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6840
6841 * arch/ppc-linux-common.c: New file.
6842 * arch/ppc-linux-common.h: New file.
6843 * arch/ppc-linux-tdesc.h: New file.
6844 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6845 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6846 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6847 arch/ppc-linux-tdesc.h.
6848 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6849 arch/ppc-linux-tdesc.h.
6850 (ppc_linux_nat_target::read_description): Remove target
6851 description matching code. Fill a ppc_linux_features struct and
6852 call ppc_linux_match_description with it. Move comment about ISA
6853 2.05 to ppc-linux-common.c.
6854 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6855 arch/ppc-linux-tdesc.h.
6856 (ppc_linux_core_read_description): Remove target description
6857 matching code. Fill a ppc_linux_features struct and call
6858 ppc_linux_match_description with it.
6859 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6860 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6861 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6862 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6863 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6864 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6865 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6866 (tdesc_powerpc_e500l): Remove.
6867
6868 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6869
6870 * ada-lang.c (catch_assert_command): Pass empty string instead
6871 of NULL for excep_string argument.
6872
6873 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6874
6875 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6876 the width of the requested register exceeds the width of the
6877 `ptrace' data type.
6878
6879 2018-05-21 Tom Tromey <tom@tromey.com>
6880
6881 * printcmd.c (output_command): Remove.
6882 (output_command_const): Rename to output_command.
6883 * valprint.h (output_command): Rename from output_command_const.
6884 * tracepoint.c (trace_dump_actions): Call output_command.
6885
6886 2018-05-21 Tom Tromey <tom@tromey.com>
6887
6888 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6889 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6890 * ada-lang.h (create_ada_exception_catchpoint): Update.
6891 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6892 std::string.
6893 (create_excep_cond_exprs, ~ada_catchpoint)
6894 (should_stop_exception, print_one_exception)
6895 (print_mention_exception, print_recreate_exception): Update.
6896 (ada_get_next_arg): Remove.
6897 (catch_ada_exception_command_split): Use std::string. Change type
6898 of "excep_string", "cond_string".
6899 (catch_ada_exception_command): Update.
6900 (create_ada_exception_catchpoint): Change type of excep_string.
6901 (ada_exception_sal): Remove excep_string parameter.
6902 (~ada_catchpoint): Remove.
6903
6904 2018-05-21 Tom Tromey <tom@tromey.com>
6905
6906 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6907 cleanup.
6908
6909 2018-05-21 Tom Tromey <tom@tromey.com>
6910
6911 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6912 Return unique_xmalloc_ptr.
6913 (print_it_exception): Update.
6914
6915 2018-05-21 Tom Tromey <tom@tromey.com>
6916
6917 * tracepoint.c (trace_dump_actions): Use std::string.
6918
6919 2018-05-21 Tom Tromey <tom@tromey.com>
6920
6921 * symfile.c (reread_symbols): Use std::string for original_name.
6922
6923 2018-05-21 Tom Tromey <tom@tromey.com>
6924
6925 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6926 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6927 constructor.
6928
6929 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6930
6931 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6932 instance to...
6933 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6934 * objfiles.c (get_objfile_bfd_data): Allocate
6935 objfile_per_bfd_storage with obstack_new when allocating on
6936 obstack.
6937
6938 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6939
6940 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6941 OBSTACK_ZALLOC.
6942 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6943 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6944 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6945 (add_pending): Likewise.
6946 (parse_symbol): Likewise.
6947 (parse_partial_symbols): Likewise.
6948 (psymtab_to_symtab_1): Likewise.
6949 (new_psymtab): Likewise.
6950 (elfmdebug_build_psymtabs): Likewise.
6951 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6952 * objfiles.c (get_objfile_bfd_data): Likewise.
6953 (objfile_register_static_link): Likewise.
6954 * psymtab.c (allocate_psymtab): Likewise.
6955 * stabsread.c (read_member_functions): Likewise.
6956 * xcoffread.c (xcoff_end_psymtab): Likewise.
6957
6958 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6959
6960 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6961 compiler supports std::is_trivially_constructible.
6962 * common/poison.h: Include obstack.h.
6963 (IsMallocable): Define to is_trivially_constructible if the
6964 compiler supports it, define to true_type otherwise.
6965 (xobnew): New.
6966 (XOBNEW): Redefine.
6967 (xobnewvec): New.
6968 (XOBNEWVEC): Redefine.
6969 * gdb_obstack.h (obstack_zalloc): New.
6970 (OBSTACK_ZALLOC): Redefine.
6971 (obstack_calloc): New.
6972 (OBSTACK_CALLOC): Redefine.
6973 (obstack_new): New.
6974 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6975 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6976 gdbarch.c.
6977 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6978 obstack_calloc/obstack_zalloc.
6979 (gdbarch_obstack_zalloc): Remove.
6980 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6981
6982 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6983
6984 * stack.c (backtrace_command_1): Remove useless variable int i.
6985
6986 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6987
6988 * stack.c (print_frame_info): Fix comment.
6989
6990 2018-05-18 Tom Tromey <tom@tromey.com>
6991
6992 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6993 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6994 (~dwarf2_per_objfile): Update
6995 (dwarf2_get_dwz_file): Use new.
6996 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6997 unique_ptr.
6998
6999 2018-05-18 Tom Tromey <tom@tromey.com>
7000
7001 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7002 unique_ptr.
7003 * dwarf2read.c (struct dwp_file): Add constructor and
7004 initializers.
7005 (open_and_init_dwp_file): Return a unique_ptr.
7006 (dwarf2_per_objfile, create_dwp_hash_table)
7007 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7008 (lookup_dwo_unit_in_dwp): Update.
7009 (open_and_init_dwp_file, get_dwp_file): Update.
7010
7011 2018-05-18 Tom Tromey <tom@tromey.com>
7012
7013 * dwarf2read.c (dwarf2_per_objfile): Update.
7014 (struct mapped_index): Add initializers.
7015 (dwarf2_read_index): Use new.
7016 (dw2_symtab_iter_init): Update.
7017 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7018 unique_ptr.
7019
7020 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7021
7022 * dwarf2read.c (mapped_index) <total_size>: Remove.
7023
7024 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7025
7026 * unittests/format_pieces-selftests.c (test_format_specifier):
7027 Add ARI comments.
7028
7029 2018-05-18 Tom Tromey <tom@tromey.com>
7030
7031 * c-typeprint.c (maybe_print_hole): New function.
7032 (c_print_type_struct_field_offset): Update.
7033 (c_type_print_base_struct_union): Call maybe_print_hole.
7034
7035 2018-05-17 Keith Seitz <keiths@redhat.com>
7036
7037 * breakpoint.c (build_bpstat_chain): New function, moved from
7038 bpstat_stop_status.
7039 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7040 If no stop chain is passed, call build_bpstat_chain to build it.
7041 * breakpoint.h (build_bpstat_chain): Declare.
7042 (bpstat_stop_status): Move documentation here from breakpoint.c.
7043 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7044 build the stop chain and pass it to skip_inline_frames.
7045 Pass this stop chain to bpstat_stop_status.
7046 * inline-frame.c: Include breakpoint.h.
7047 (stopped_by_user_bp_inline_frame): New function.
7048 (skip_inline_frames): Add parameter `stop_chain'.
7049 Move documention to inline-frame.h.
7050 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7051 whether the frame should be elided.
7052 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7053 Add moved documentation and update for new parameter.
7054
7055 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7056
7057 PR cli/14975
7058 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7059 unittests/format_pieces-selftests.c.
7060 * common/format.h (format_piece) <operator==>: New.
7061 (format_pieces) <operator[]>: Remove.
7062 * common/format.c (format_pieces::format_pieces): Handle \e.
7063 * unittests/format_pieces-selftests.c: New.
7064
7065 2018-05-17 Tom Tromey <tom@tromey.com>
7066
7067 PR symtab/23010:
7068 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7069 (dw2_instantiate_symtab): Add skip_partial parameter.
7070 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7071 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7072 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7073 (dw2_expand_symtabs_matching_one)
7074 (dw2_find_pc_sect_compunit_symtab)
7075 (dw2_debug_names_lookup_symbol)
7076 (dw2_debug_names_expand_symtabs_for_function): Update.
7077 (init_cutu_and_read_dies): Add skip_partial parameter.
7078 (process_psymtab_comp_unit, build_type_psymtabs_1)
7079 (process_skeletonless_type_unit, load_partial_comp_unit)
7080 (psymtab_to_symtab_1): Update.
7081 (load_full_comp_unit): Add skip_partial parameter.
7082 (process_imported_unit_die, dwarf2_read_addr_index)
7083 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7084 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7085 (read_signatured_type): Update.
7086
7087 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7088
7089 * value.c (release_value): Remove unused variable.
7090 (record_latest_value): Likewise.
7091 (access_value_history): Likewise.
7092 (preserve_values): Likewise.
7093
7094 2018-05-17 Tom Tromey <tom@tromey.com>
7095
7096 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7097 Initialize.
7098
7099 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7100
7101 PR gdb/22286
7102 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7103 Also handle registers whose width is not a multiple of
7104 PTRACE_TYPE_RET.
7105 (linux_nat_trad_target::store_register): Likewise.
7106
7107 2018-05-16 Tom Tromey <tom@tromey.com>
7108
7109 * gdbcore.h (core_bfd): Redefine.
7110 * corelow.c (core_target::close): Update.
7111 (core_target_open): Update.
7112 * progspace.h (struct program_space) <cbfd>: Now a
7113 gdb_bfd_ref_ptr.
7114
7115 2018-05-16 Tom Tromey <tom@tromey.com>
7116
7117 PR cli/19551:
7118 * symfile-add-flags.h (enum symfile_add_flags)
7119 <SYMFILE_NOT_FILENAME>: New constant.
7120 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7121 objfile name from BFD.
7122 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7123 * minidebug.c (find_separate_debug_file_in_section): Put
7124 ".gnu_debugdata" into BFD's file name.
7125
7126 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7127
7128 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7129 Remove.
7130
7131 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7132
7133 PR binutils/21446
7134 * aarch64-tdep.c (aarch64_analyze_prologue,
7135 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7136 Indicate not interested in errors.
7137
7138 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7139
7140 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7141 Supply the MIPS_ZERO_REGNUM register.
7142
7143 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7144
7145 * mips-tdep.c (mask_address_var): Make variable static.
7146
7147 2018-05-14 Tom Tromey <tom@tromey.com>
7148
7149 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7150
7151 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7152
7153 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7154 FXSAVE_ADDR for the mxcsr register.
7155
7156 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7157
7158 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7159
7160 2018-05-11 Pedro Alves <palves@redhat.com>
7161
7162 * corelow.c (core_target) <core_target>: No longer inline.
7163 Initialize m_core_gdbarch, m_core_vec and build the section table
7164 here.
7165 <~core_target>: New.
7166 <core_gdbarch, get_core_register_section>: New methods.
7167 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7168 factored out from ...
7169 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7170 (core_ops): Delete.
7171 (sniff_core_bfd): Add gdbarch parameter.
7172 (core_close): Delete, merged into ...
7173 (core_target::close): ... here. Delete self.
7174 (core_close_cleanup): Delete.
7175 (core_target_open): Allocate a core_target on the heap. Use a
7176 unique_ptr instead of a cleanup. Bits moved into the core_target
7177 ctor. Adjust to use core_target methods instead of globals.
7178 (get_core_register_section): Rename to ...
7179 (core_target::get_core_register_section): ... this and adjust.
7180 (struct get_core_registers_cb_data): New.
7181 (get_core_registers_cb): Use it. Use bool.
7182 (core_target::fetch_registers, core_target::files_info)
7183 (core_target::xfer_partial, core_target::read_description)
7184 (core_target::pid_to, core_target::thread_name): Adjust to
7185 reference class fields instead of globals.
7186 * target.h (struct target_ops_deleter, target_ops_up): New.
7187
7188 2018-05-11 Pedro Alves <palves@redhat.com>
7189
7190 * corefile.c (core_file_command): Move to corelow.c.
7191 * corelow.c (the_core_target): Delete.
7192 (core_file_command): Moved from corefile.c. Check exec_bfd
7193 instead of the_core_target. Use target_detach instead of calling
7194 into the_core_target directly.
7195 (maybe_say_no_core_file_now): New.
7196 (core_target::detach): Use it.
7197 (_initialize_corelow): Remove references to the_core_target.
7198 * gdbcore.h (the_core_target): Delete.
7199
7200 2018-05-11 Tom Tromey <tromey@redhat.com>
7201 Pedro Alves <palves@redhat.com>
7202
7203 * corefile.c (core_bfd): Remove.
7204 * gdbcore.h (core_bfd): Now a macro.
7205 * progspace.h (struct program_space) <cbfd>: New field.
7206
7207 2018-05-11 Tom Tromey <tom@tromey.com>
7208
7209 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7210 gdb::def_vector.
7211
7212 2018-05-10 Tom Tromey <tom@tromey.com>
7213
7214 * configure: Rebuild.
7215 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7216
7217 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7218
7219 PR server/23158:
7220 * regformats/regdat.sh: Adjust script, following the addition
7221 of the new expedite_regs parameter to init_target_desc.
7222
7223 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7224
7225 PR gdb/23127
7226 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7227 set_gdbarch_significant_addr_bit.
7228 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7229 set_gdbarch_significant_addr_bit.
7230 * utils.c (address_significant): Update to sign extend addr.
7231
7232 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7233
7234 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7235 (xtensa_linux_init_abi): Limit tdep->num_regs by
7236 tdep->num_nopriv_regs.
7237 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7238 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7239 not initialized.
7240
7241 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7242
7243 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7244
7245 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7246
7247 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7248 (I387_MXCSR_INIT_VAL): New constant.
7249 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7250 buffer if it was supplied by the inferior.
7251 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7252 (i387_xsave_get_clear_bv): New function.
7253 (i387_supply_xsave): Only read x87 control registers from the
7254 xsave buffer if the feature is enabled, and the state will have
7255 been written, otherwise, provide a suitable default.
7256 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7257 including x87 control registers. Update control registers if they
7258 have changed from the default value, and mark features as enabled
7259 as required.
7260 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7261
7262 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7263
7264 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7265
7266 2018-05-07 Tom Tromey <tom@tromey.com>
7267
7268 * configure: Rebuild.
7269 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7270
7271 2018-05-07 Tom Tromey <tom@tromey.com>
7272
7273 PR tdep/20362:
7274 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7275 bit. Use correct value for VDIV.
7276
7277 2018-05-04 Tom Tromey <tom@tromey.com>
7278
7279 * configure: Rebuild.
7280 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7281
7282 2018-05-04 Tom Tromey <tom@tromey.com>
7283
7284 * linux-record.c (record_linux_system_call) <case
7285 RECORD_SYS_RECVFROM>: Add "break".
7286
7287 2018-05-04 Tom Tromey <tom@tromey.com>
7288
7289 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7290 Add missing "break".
7291 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7292 Add missing "break".
7293
7294 2018-05-04 Tom Tromey <tom@tromey.com>
7295
7296 * rs6000-tdep.c (ppc_process_record_op4)
7297 (ppc_process_record_op63): Add fall-through comment.
7298
7299 2018-05-04 Tom Tromey <tom@tromey.com>
7300
7301 * i386-tdep.c (i386_process_record): Add fall-through comment.
7302
7303 2018-05-04 Tom Tromey <tom@tromey.com>
7304
7305 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7306 comment.
7307
7308 2018-05-04 Tom Tromey <tom@tromey.com>
7309
7310 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7311 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7312 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7313 comment.
7314 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7315 comment.
7316 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7317 comment.
7318
7319 2018-05-04 Tom Tromey <tom@tromey.com>
7320
7321 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7322
7323 2018-05-04 Tom Tromey <tom@tromey.com>
7324
7325 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7326 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7327 * symfile.c (section_is_mapped): Fix fall-through comment.
7328 * stabsread.c (define_symbol, read_member_functions): Fix
7329 fall-through comment.
7330 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7331 comment.
7332 * remote.c (remote_wait_as): Fix fall-through comment.
7333 * p-exp.y (yylex): Fix fall-through comment.
7334 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7335 comment.
7336 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7337 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7338 * jv-exp.y (yylex): Fix fall-through comment.
7339 * go-exp.y (lex_one_token): Fix fall-through comment.
7340 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7341 fall-through comment.
7342 * f-exp.y (yylex): Fix fall-through comment.
7343 * dwarf2read.c (process_die): Fix fall-through comments.
7344 * dbxread.c (process_one_symbol): Fix fall-through comment.
7345 * d-exp.y (lex_one_token): Fix fall-through comment.
7346 * cp-name-parser.y (yylex): Fix fall-through comment.
7347 * coffread.c (coff_symtab_read): Fix fall-through comment.
7348 * c-exp.y (lex_one_token): Fix fall-through comment.
7349 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7350 comment.
7351 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7352 comment.
7353
7354 2018-05-04 Tom Tromey <tom@tromey.com>
7355
7356 PR python/22730:
7357 * NEWS: Mention gdb.execute change.
7358 * gdbcmd.h (execute_control_command): Don't declare.
7359 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7360 execute_control_commands, execute_control_commands_to_string.
7361 * cli/cli-script.h (execute_control_commands)
7362 (execute_control_commands_to_string): Declare.
7363 (execute_control_command): Add from_tty parameter.
7364 * cli/cli-script.c (execute_control_commands)
7365 (execute_control_commands_to_string): New functions.
7366 (execute_user_command): Use execute_control_commands.
7367 (execute_control_command_1): Add "from_tty" parameter. Update.
7368 (execute_control_command): Likewise.
7369
7370 2018-05-04 Tom Tromey <tom@tromey.com>
7371
7372 PR python/22731:
7373 * NEWS: Mention that breakpoint commands are writable.
7374 * python/py-breakpoint.c (bppy_set_commands): New function.
7375 (breakpoint_object_getset) <"commands">: Use it.
7376
7377 2018-05-04 Tom Tromey <tom@tromey.com>
7378
7379 * tracepoint.c (actions_command): Update.
7380 * mi/mi-cmd-break.c (mi_command_line_array)
7381 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7382 (mi_read_next_line): Remove.
7383 (mi_cmd_break_commands): Update.
7384 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7385 function_view.
7386 * cli/cli-script.c (get_command_line): Update.
7387 (process_next_line): Use function_view. Constify.
7388 (recurse_read_control_structure, read_command_lines)
7389 (read_command_lines_1): Change argument types to function_view.
7390 (do_define_command, document_command): Update.
7391 * breakpoint.h (check_tracepoint_command): Don't declare.
7392 * breakpoint.c (check_tracepoint_command): Remove.
7393 (commands_command_1, create_tracepoint_from_upload): Update.
7394
7395 2018-05-04 Tom Tromey <tom@tromey.com>
7396
7397 PR gdb/11750:
7398 * cli/cli-script.h (enum command_control_type) <define_control>:
7399 New constant.
7400 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7401 (build_command_line, execute_control_command_1)
7402 (process_next_line): Likewise.
7403 (do_define_command): New function, extracted from define_command.
7404 (define_command): Use it.
7405
7406 2018-05-04 Tom Tromey <tom@tromey.com>
7407
7408 * tracepoint.c (actions_command): Update.
7409 * cli/cli-script.h (read_command_lines): Update.
7410 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7411 (MAX_TMPBUF): Remove define.
7412 (define_command): Use string_printf.
7413 (document_command): Likewise.
7414 * breakpoint.c (commands_command_1): Update.
7415
7416 2018-05-04 Tom Tromey <tom@tromey.com>
7417
7418 * top.c (execute_command): Update.
7419 * cli/cli-script.h (print_command_lines): Now varargs.
7420 * cli/cli-script.c (print_command_lines): Now varargs.
7421 (execute_control_command_1) <case while_control, case if_control>:
7422 Update.
7423
7424 2018-05-04 Tom Tromey <tom@tromey.com>
7425
7426 * tracepoint.c (all_tracepoint_actions): Rename from
7427 all_tracepoint_actions_and_cleanup. Change return type.
7428 (actions_command, encode_actions_1, encode_actions)
7429 (trace_dump_actions, tdump_command): Update.
7430 * remote.c (remote_download_command_source): Update.
7431 * python/python.c (gdbpy_eval_from_control_command)
7432 (python_command, python_interactive_command): Update.
7433 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7434 * guile/guile.c (guile_command)
7435 (gdbscm_eval_from_control_command, guile_command): Update.
7436 * compile/compile.c (compile_code_command)
7437 (compile_print_command, compile_to_object): Update.
7438 * cli/cli-script.h (struct command_lines_deleter): New.
7439 (counted_command_line): New typedef.
7440 (struct command_line): Add constructor, destructor.
7441 <body_list>: Remove.
7442 <body_list_0, body_list_1>: New members.
7443 (command_line_up): Remove typedef.
7444 (read_command_lines, read_command_lines_1, get_command_line):
7445 Update.
7446 (copy_command_lines): Don't declare.
7447 * cli/cli-script.c (build_command_line): Use "new".
7448 (get_command_line): Return counted_command_line.
7449 (print_command_lines, execute_user_command)
7450 (execute_control_command_1, while_command, if_command): Update.
7451 (realloc_body_list): Remove.
7452 (process_next_line, recurse_read_control_structure): Update.
7453 (read_command_lines, read_command_lines_1): Return counted_command_line.
7454 (free_command_lines): Use "delete".
7455 (copy_command_lines): Remove.
7456 (define_command, document_command, show_user_1): Update.
7457 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7458 a counted_command_line.
7459 * breakpoint.h (counted_command_line): Remove typedef.
7460 (breakpoint_set_commands): Update.
7461 * breakpoint.c (check_no_tracepoint_commands)
7462 (validate_commands_for_breakpoint): Update.
7463 (breakpoint_set_commands): Change commands to be a
7464 counted_command_line.
7465 (commands_command_1, update_dprintf_command_list)
7466 (create_tracepoint_from_upload): Update.
7467
7468 2018-05-04 Tom Tromey <tom@tromey.com>
7469
7470 * cli/cli-decode.h (cmd_list_element): New constructor.
7471 (~cmd_list_element): New destructor.
7472 (struct cmd_list_element): Add initializers.
7473 * cli/cli-decode.c (do_add_cmd): Use "new".
7474 (delete_cmd): Use "delete".
7475
7476 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7477 Pedro Alves <palves@redhat.com>
7478
7479 PR breakpoints/19806 and support for PR external/20207.
7480 * NEWS: Mention Aarch64 watchpoint improvements.
7481 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7482 watchpoints and PR external/20207 watchpoints.
7483 * nat/aarch64-linux-hw-point.c
7484 (kernel_supports_any_contiguous_range): New.
7485 (aarch64_watchpoint_offset): New.
7486 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7487 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7488 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7489 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7490 next_addr_orig_p. Support PR external/20207 watchpoints.
7491 (aarch64_downgrade_regs): New.
7492 (aarch64_dr_state_insert_one_point): New parameters offset and
7493 addr_orig.
7494 (aarch64_dr_state_remove_one_point): Likewise.
7495 (aarch64_handle_breakpoint): Update caller.
7496 (aarch64_handle_aligned_watchpoint): Likewise.
7497 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7498 aligned_offset.
7499 (aarch64_linux_set_debug_regs): Remove const from state. Call
7500 aarch64_downgrade_regs.
7501 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7502 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7503 (DR_CONTROL_MASK): ... this.
7504 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7505 (unsigned int aarch64_watchpoint_offset): New prototype.
7506 (aarch64_linux_set_debug_regs): Remove const from state.
7507 * utils.c (align_up, align_down): Move to ...
7508 * common/common-utils.c (align_up, align_down): ... here.
7509 * utils.h (align_up, align_down): Move to ...
7510 * common/common-utils.h (align_up, align_down): ... here.
7511
7512 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7513
7514 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7515 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7516 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7517 Re-implement to match the ABI as summarized in GCC's
7518 gcc/config/sparc/sparc.c. All callers updated.
7519 (sparc32_store_arguments): Remove assertion.
7520
7521 2018-05-04 Tom Tromey <tom@tromey.com>
7522
7523 * printcmd.c: Don't include tui.h.
7524 (decode_format): Use skip_spaces.
7525
7526 2018-05-04 Tom Tromey <tom@tromey.com>
7527
7528 PR gdb/22619:
7529 * printcmd.c (last_count): New global.
7530 (x_command): Use saved count when repeating.
7531
7532 2018-05-04 Tom Tromey <tom@tromey.com>
7533
7534 * nto-procfs.c (do_closedir_cleanup): Remove.
7535 (procfs_pidlist): Use gdb_dir_up.
7536 * procfs.c (do_closedir_cleanup): Remove.
7537 (proc_update_threads): Use gdb_dir_up.
7538 * common/filestuff.h (struct gdb_dir_deleter): New.
7539 (gdb_dir_up): New typedef.
7540
7541 2018-05-04 Tom Tromey <tom@tromey.com>
7542
7543 * ada-lang.c (print_mention_exception): Use std::string.
7544
7545 2018-05-04 Tom Tromey <tom@tromey.com>
7546
7547 * ada-lang.c (create_excep_cond_exprs): Update.
7548 (ada_exception_catchpoint_cond_string): Use std::string.
7549
7550 2018-05-04 Tom Tromey <tom@tromey.com>
7551
7552 * ada-lang.c (xget_renaming_scope): Return std::string.
7553 (old_renaming_is_invisible): Update.
7554
7555 2018-05-04 Tom Tromey <tom@tromey.com>
7556
7557 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7558 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7559
7560 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7561
7562 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7563
7564 2018-05-04 Tom Tromey <tom@tromey.com>
7565
7566 * remote.c (remote_query_supported_append): Change type.
7567 (remote_check_symbols): Update.
7568
7569 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7570
7571 PR gdb/11420
7572 * configure.ac: Prepend libpython.
7573 * python/python-config.py: Likewise.
7574 * configure: Regenerate.
7575
7576 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7577
7578 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7579
7580 2018-05-03 Pedro Alves <palves@redhat.com>
7581
7582 * s390-linux-nat.c
7583 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7584 override. Write 'true' instead of '1'.
7585 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7586 declaration.
7587
7588 2018-05-02 Pedro Alves <palves@redhat.com>
7589
7590 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7591 add_inf_child_target.
7592 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7593 add_inf_child_target.
7594 * aix-thread.c (aix_thread_target_info): New.
7595 (aix_thread_target) <shortname, longname, doc>: Delete.
7596 <info>: New.
7597 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7598 add_inf_child_target.
7599 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7600 add_inf_child_target.
7601 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7602 add_inf_child_target.
7603 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7604 add_inf_child_target.
7605 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7606 add_inf_child_target.
7607 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7608 add_inf_child_target.
7609 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7610 add_inf_child_target.
7611 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7612 add_inf_child_target.
7613 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7614 add_inf_child_target.
7615 * bfd-target.c (target_bfd_target_info): New.
7616 (target_bfd) <shortname, longname, doc>: Delete.
7617 <info>: New.
7618 * bsd-kvm.c (bsd_kvm_target_info): New.
7619 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7620 <info>: New.
7621 (bsd_kvm_target::open): Rename to ...
7622 (bsd_kvm_target_open): ... this. Adjust.
7623 * bsd-uthread.c (bsd_uthread_target_info): New.
7624 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7625 <info>: New.
7626 * corefile.c (core_file_command): Adjust.
7627 * corelow.c (core_target_info): New.
7628 (core_target) <shortname, longname, doc>: Delete.
7629 <info>: New.
7630 (core_target::open): Rename to ...
7631 (core_target_open): ... this. Adjust.
7632 * ctf.c (ctf_target_info): New.
7633 (ctf_target) <shortname, longname, doc>: Delete.
7634 <info>: New.
7635 (ctf_target::open): Rename to ...
7636 (ctf_target_open): ... this.
7637 (_initialize_ctf): Adjust.
7638 * exec.c (exec_target_info): New.
7639 (exec_target) <shortname, longname, doc>: Delete.
7640 <info>: New.
7641 (exec_target::open): Rename to ...
7642 (exec_target_open): ... this.
7643 * gdbcore.h (core_target_open): Declare.
7644 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7645 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7646 add_inf_child_target.
7647 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7648 add_inf_child_target.
7649 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7650 add_inf_child_target.
7651 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7652 add_inf_child_target.
7653 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7654 add_inf_child_target.
7655 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7656 add_inf_child_target.
7657 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7658 add_inf_child_target.
7659 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7660 add_inf_child_target.
7661 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7662 add_inf_child_target.
7663 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7664 add_inf_child_target.
7665 * inf-child.c (inf_child_target_info): New.
7666 (inf_child_target::info): New.
7667 (inf_child_open_target): Remove 'target' parameter. Use
7668 get_native_target instead.
7669 (inf_child_target::open): Delete.
7670 (add_inf_child_target): New.
7671 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7672 Delete.
7673 <info>: New.
7674 (add_inf_child_target): Declare.
7675 (inf_child_open_target): Declare.
7676 * linux-thread-db.c (thread_db_target_info): New.
7677 (thread_db_target) <shortname, longname, doc>: Delete.
7678 <info>: New.
7679 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7680 add_inf_child_target.
7681 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7682 add_inf_child_target.
7683 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7684 add_inf_child_target.
7685 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7686 add_inf_child_target.
7687 * make-target-delegates (print_class): Adjust.
7688 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7689 add_inf_child_target.
7690 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7691 add_inf_child_target.
7692 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7693 add_inf_child_target.
7694 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7695 add_inf_child_target.
7696 * nto-procfs.c (nto_native_target_info): New.
7697 (nto_procfs_target_native) <shortname, longname, doc>:
7698 Delete.
7699 <info>: New.
7700 (nto_procfs_target_info): New.
7701 (nto_procfs_target_procfs) <shortname, longname, doc>:
7702 Delete.
7703 <info>: New.
7704 (init_procfs_targets): Adjust.
7705 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7706 add_inf_child_target.
7707 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7708 add_inf_child_target.
7709 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7710 add_inf_child_target.
7711 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7712 add_inf_child_target.
7713 * ravenscar-thread.c (ravenscar_target_info): New.
7714 (ravenscar_thread_target) <shortname, longname, doc>:
7715 Delete.
7716 <info>: New.
7717 * record-btrace.c (record_btrace_target_info):
7718 (record_btrace_target) <shortname, longname, doc>: Delete.
7719 <info>: New.
7720 (record_btrace_target::open): Rename to ...
7721 (record_btrace_target_open): ... this. Adjust.
7722 * record-full.c (record_longname, record_doc): New.
7723 (record_full_base_target) <shortname, longname, doc>: Delete.
7724 <info>: New.
7725 (record_full_target_info): New.
7726 (record_full_target): <shortname>: Delete.
7727 <info>: New.
7728 (record_full_core_open_1, record_full_open_1): Update comments.
7729 (record_full_base_target::open): Rename to ...
7730 (record_full_open): ... this.
7731 (cmd_record_full_restore): Update.
7732 (_initialize_record_full): Update.
7733 * remote-sim.c (remote_sim_target_info): New.
7734 (gdbsim_target) <shortname, longname, doc>: Delete.
7735 <info>: New.
7736 (gdbsim_target::open): Rename to ...
7737 (gdbsim_target_open): ... this.
7738 (_initialize_remote_sim): Adjust.
7739 * remote.c (remote_doc): New.
7740 (remote_target_info): New.
7741 (remote_target) <shortname, longname, doc>: Delete.
7742 <info>: New.
7743 (extended_remote_target_info): New.
7744 (extended_remote_target) <shortname, longname, doc>: Delete.
7745 <info>: New.
7746 (remote_target::open_1): Make static. Adjust.
7747 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7748 * s390-linux-nat.c (_initialize_s390_nat): Use
7749 add_inf_child_target.
7750 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7751 add_inf_child_target.
7752 * sol-thread.c (thread_db_target_info): New.
7753 (sol_thread_target) <shortname, longname, doc>: Delete.
7754 <info>: New.
7755 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7756 add_inf_child_target.
7757 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7758 add_inf_child_target.
7759 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7760 add_inf_child_target.
7761 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7762 add_inf_child_target.
7763 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7764 add_inf_child_target.
7765 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7766 add_inf_child_target.
7767 * spu-linux-nat.c (_initialize_spu_nat): Use
7768 add_inf_child_target.
7769 * spu-multiarch.c (spu_multiarch_target_info): New.
7770 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7771 <info>: New.
7772 * target-delegates.c: Regenerate.
7773 * target.c: Include <unordered_map>.
7774 (target_ops_p): Delete.
7775 (DEF_VEC_P(target_ops_p)): Delete.
7776 (target_factories): New.
7777 (test_target_info): New.
7778 (test_target_ops::info): New.
7779 (open_target): Adjust to use target_factories.
7780 (add_target_with_completer): Rename to ...
7781 (add_target): ... this. Change prototype. Register target_info
7782 and open callback in target_factories. Register target_info in
7783 command context instead of target_ops.
7784 (add_target): Delete old implementation.
7785 (add_deprecated_target_alias): Change prototype. Adjust.
7786 (the_native_target): New.
7787 (set_native_target, get_native_target): New.
7788 (find_default_run_target): Use the_native_target.
7789 (find_attach_target, find_run_target): Simplify.
7790 (target_ops::open): Delete.
7791 (dummy_target_info): New.
7792 (dummy_target::shortname, dummy_target::longname)
7793 (dummy_target::doc): Delete.
7794 (dummy_target::info): New.
7795 (debug_target::shortname, debug_target::longname)
7796 (debug_target::doc): Delete.
7797 (debug_target::info): New.
7798 * target.h (struct target_info): New.
7799 (target_ops::~target_ops): Add comment.
7800 (target_ops::info): New.
7801 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7802 longer virtual. Implement in terms of target_info.
7803 (set_native_target, get_native_target): Declare.
7804 (target_open_ftype): New.
7805 (add_target, add_target_with_completer)
7806 (add_deprecated_target_alias): Change prototype.
7807 (test_target) <shortname, longname, doc>: Delete.
7808 <info>: New.
7809 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7810 add_inf_child_target.
7811 * tracefile-tfile.c (tfile_target_info): New.
7812 (tfile_target) <shortname, longname, doc>: Delete.
7813 <info>: New.
7814 (tfile_target::open): Rename to ...
7815 (tfile_target_open): ... this.
7816 (_initialize_tracefile_tfile): Adjust.
7817 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7818 add_inf_child_target.
7819 * windows-nat.c (_initialize_windows_nat): Use
7820 add_inf_child_target.
7821 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7822 add_inf_child_target.
7823
7824 2018-05-02 Pedro Alves <palves@redhat.com>
7825
7826 * linux-nat.h (linux_nat_target) <low_new_thread,
7827 low_delete_thread, low_new_fork, low_forget_process,
7828 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7829 New virtual methods.
7830 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7831 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7832 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7833 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7834 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7835 Delete.
7836 * linux-fork.c (delete_fork): Adjust to call low method.
7837 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7838 (linux_nat_new_fork, linux_nat_forget_process_hook)
7839 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7840 (linux_nat_status_is_event):
7841 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7842 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7843 to call low method.
7844 (sigtrap_is_event): Rename to ...
7845 (linux_nat_target::low_status_is_event): ... this.
7846 (linux_nat_set_status_is_event): Delete.
7847 (save_stop_reason, linux_nat_wait_1)
7848 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7849 low methods.
7850 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7851 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7852 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7853 (linux_nat_set_prepare_to_resume): Delete.
7854 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7855 low virtual methods.
7856 * amd64-linux-nat.c: Likewise.
7857 * arm-linux-nat.c: Likewise.
7858 * i386-linux-nat.c: Likewise.
7859 * ia64-linux-nat.c: Likewise.
7860 * mips-linux-nat.c: Likewise.
7861 * ppc-linux-nat.c: Likewise.
7862 * s390-linux-nat.c: Likewise.
7863 * sparc64-linux-nat.c: Likewise.
7864 * x86-linux-nat.c: Likewise.
7865 * x86-linux-nat.h: Include "nat/x86-linux.h".
7866 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7867 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7868 Override methods.
7869
7870 2018-05-02 Pedro Alves <palves@redhat.com>
7871
7872 * target.h (target_ops)
7873 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7874 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7875 stopped_by_watchpoint, have_continuable_watchpoint,
7876 stopped_data_address, watchpoint_addr_within_range,
7877 can_accel_watchpoint_condition, can_run, thread_alive,
7878 has_all_memory, has_memory, has_stack, has_registers,
7879 has_execution, can_async_p, is_async_p, supports_non_stop,
7880 always_non_stop_p, can_execute_reverse, supports_multi_process,
7881 supports_enable_disable_tracepoint,
7882 supports_disable_randomization, supports_string_tracing,
7883 supports_evaluation_of_breakpoint_conditions,
7884 can_run_breakpoint_commands, filesystem_is_local,
7885 can_download_tracepoint, get_trace_state_variable_value,
7886 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7887 record_is_replaying, record_will_replay,
7888 augmented_libraries_svr4_read>: Adjust to return bool.
7889 * aarch64-linux-nat.c: All implementations adjusted.
7890 * aix-thread.c: All implementations adjusted.
7891 * arm-linux-nat.c: All implementations adjusted.
7892 * breakpoint.c: All implementations adjusted.
7893 * bsd-kvm.c: All implementations adjusted.
7894 * bsd-uthread.c: All implementations adjusted.
7895 * corelow.c: All implementations adjusted.
7896 * ctf.c: All implementations adjusted.
7897 * darwin-nat.c: All implementations adjusted.
7898 * darwin-nat.h: All implementations adjusted.
7899 * exec.c: All implementations adjusted.
7900 * fbsd-nat.c: All implementations adjusted.
7901 * fbsd-nat.h: All implementations adjusted.
7902 * gnu-nat.c: All implementations adjusted.
7903 * gnu-nat.h: All implementations adjusted.
7904 * go32-nat.c: All implementations adjusted.
7905 * ia64-linux-nat.c: All implementations adjusted.
7906 * inf-child.c: All implementations adjusted.
7907 * inf-child.h: All implementations adjusted.
7908 * inf-ptrace.c: All implementations adjusted.
7909 * inf-ptrace.h: All implementations adjusted.
7910 * linux-nat.c: All implementations adjusted.
7911 * linux-nat.h: All implementations adjusted.
7912 * mips-linux-nat.c: All implementations adjusted.
7913 * nto-procfs.c: All implementations adjusted.
7914 * ppc-linux-nat.c: All implementations adjusted.
7915 * procfs.c: All implementations adjusted.
7916 * ravenscar-thread.c: All implementations adjusted.
7917 * record-btrace.c: All implementations adjusted.
7918 * record-full.c: All implementations adjusted.
7919 * remote-sim.c: All implementations adjusted.
7920 * remote.c: All implementations adjusted.
7921 * s390-linux-nat.c: All implementations adjusted.
7922 * sol-thread.c: All implementations adjusted.
7923 * spu-multiarch.c: All implementations adjusted.
7924 * target-delegates.c: All implementations adjusted.
7925 * target.c: All implementations adjusted.
7926 * target.h: All implementations adjusted.
7927 * tracefile-tfile.c: All implementations adjusted.
7928 * tracefile.c: All implementations adjusted.
7929 * tracefile.h: All implementations adjusted.
7930 * windows-nat.c: All implementations adjusted.
7931 * x86-linux-nat.h: All implementations adjusted.
7932 * x86-nat.h: All implementations adjusted.
7933
7934 2018-05-02 Pedro Alves <palves@redhat.com>
7935
7936 * make-target-delegates (scan_target_h): Don't trim lines here.
7937 Replace sequences of tabs and/or whitespace with a single
7938 whitespace.
7939 (top level, parsing methods): Trim each line before processing it
7940 here.
7941
7942 2018-05-02 Pedro Alves <palves@redhat.com>
7943 John Baldwin <jhb@freebsd.org>
7944
7945 * target.h (enum strata) <debug_stratum>: New.
7946 (struct target_ops) <all delegation methods>: Replace by C++
7947 virtual methods, and drop "to_" prefix. All references updated
7948 throughout.
7949 <to_shortname, to_longname, to_doc, to_data,
7950 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7951 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7952 virtual methods. All references updated throughout.
7953 <can_attach, supports_terminal_ours, can_create_inferior,
7954 get_thread_control_capabilities, attach_no_wait>: New
7955 virtual methods.
7956 <insert_breakpoint, remove_breakpoint>: Now
7957 TARGET_DEFAULT_NORETURN methods.
7958 <info_proc>: Now returns bool.
7959 <to_magic>: Delete.
7960 (OPS_MAGIC): Delete.
7961 (current_target): Delete. All references replaced by references
7962 to ...
7963 (target_stack): ... this. New.
7964 (target_shortname, target_longname): Adjust.
7965 (target_can_run): Now a function declaration.
7966 (default_child_has_all_memory, default_child_has_memory)
7967 (default_child_has_stack, default_child_has_registers)
7968 (default_child_has_execution): Remove target_ops parameter.
7969 (complete_target_initialization): Delete.
7970 (memory_breakpoint_target): New template class.
7971 (test_target_ops): Refactor as a C++ class with virtual methods.
7972 * make-target-delegates (NAME_PART): Tighten.
7973 (POINTER_PART, CP_SYMBOL): New.
7974 (SIMPLE_RETURN_PART): Reimplement.
7975 (VEC_RETURN_PART): Expect less.
7976 (RETURN_PART, VIRTUAL_PART): New.
7977 (METHOD): Adjust to C++ virtual methods.
7978 (scan_target_h): Remove reference to C99.
7979 (dname): Output "target_ops::" prefix.
7980 (write_function_header): Adjust to output a C++ class method.
7981 (write_declaration): New.
7982 (write_delegator): Adjust to output a C++ class method.
7983 (tdname): Output "dummy_target::" prefix.
7984 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7985 method.
7986 (tdefault_names, debug_names): Delete.
7987 (return_types, tdefaults, styles, argtypes_array): New.
7988 (top level): All methods are delegators.
7989 (print_class): New.
7990 (top level): Print dummy_target and debug_target classes.
7991 * target-delegates.c: Regenerate.
7992 * target-debug.h (target_debug_print_enum_info_proc_what)
7993 (target_debug_print_thread_control_capabilities)
7994 (target_debug_print_thread_info_p): New.
7995 * target.c (dummy_target): Delete.
7996 (the_dummy_target, the_debug_target): New.
7997 (target_stack): Now extern.
7998 (set_targetdebug): Push/unpush debug target.
7999 (default_child_has_all_memory, default_child_has_memory)
8000 (default_child_has_stack, default_child_has_registers)
8001 (default_child_has_execution): Remove target_ops parameter.
8002 (complete_target_initialization): Delete.
8003 (add_target_with_completer): No longer call
8004 complete_target_initialization.
8005 (target_supports_terminal_ours): Use regular delegation.
8006 (update_current_target): Delete.
8007 (push_target): No longer check magic number. Don't call
8008 update_current_target.
8009 (unpush_target): Don't call update_current_target.
8010 (target_is_pushed): No longer check magic number.
8011 (target_require_runnable): Skip for all stratums over
8012 process_stratum.
8013 (target_ops::info_proc): New.
8014 (target_info_proc): Use find_target_at and
8015 find_default_run_target.
8016 (target_supports_disable_randomization): Use regular delegation.
8017 (target_get_osdata): Use find_target_at.
8018 (target_ops::open, target_ops::close, target_ops::can_attach)
8019 (target_ops::attach, target_ops::can_create_inferior)
8020 (target_ops::create_inferior, target_ops::can_run)
8021 (target_can_run): New.
8022 (default_fileio_target): Use regular delegation.
8023 (target_ops::fileio_open, target_ops::fileio_pwrite)
8024 (target_ops::fileio_pread, target_ops::fileio_fstat)
8025 (target_ops::fileio_close, target_ops::fileio_unlink)
8026 (target_ops::fileio_readlink): New.
8027 (target_fileio_open_1, target_fileio_unlink)
8028 (target_fileio_readlink): Always call the target method. Handle
8029 FILEIO_ENOSYS.
8030 (return_zero, return_zero_has_execution): Delete.
8031 (init_dummy_target): Delete.
8032 (dummy_target::dummy_target, dummy_target::shortname)
8033 (dummy_target::longname, dummy_target::doc)
8034 (debug_target::debug_target, debug_target::shortname)
8035 (debug_target::longname, debug_target::doc): New.
8036 (target_supports_delete_record): Use regular delegation.
8037 (setup_target_debug): Delete.
8038 (maintenance_print_target_stack): Skip debug_stratum.
8039 (initialize_targets): Instantiate the_dummy_target and
8040 the_debug_target.
8041 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8042 use target_stack.
8043 (target_auxv_search, fprint_target_auxv): Adjust.
8044 (info_auxv_command): Adjust to use target_stack.
8045 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8046 * exceptions.c (print_flush): Handle a NULL target_stack.
8047 * regcache.c (target_ops_no_register): Refactor as class with
8048 virtual methods.
8049
8050 * exec.c (exec_target): New class.
8051 (exec_ops): Now an exec_target.
8052 (exec_open, exec_close_1, exec_get_section_table)
8053 (exec_xfer_partial, exec_files_info, exec_has_memory)
8054 (exec_make_note_section): Refactor as exec_target methods.
8055 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8056 Delete.
8057 (exec_target::find_memory_regions): New.
8058 (_initialize_exec): Don't call init_exec_ops.
8059 * gdbcore.h (exec_file_clear): Delete.
8060
8061 * corefile.c (core_target): Delete.
8062 (core_file_command): Adjust.
8063 * corelow.c (core_target): New class.
8064 (the_core_target): New.
8065 (core_close): Remove target_ops parameter.
8066 (core_close_cleanup): Adjust.
8067 (core_target::close): New.
8068 (core_open, core_detach, get_core_registers, core_files_info)
8069 (core_xfer_partial, core_thread_alive, core_read_description)
8070 (core_pid_to_str, core_thread_name, core_has_memory)
8071 (core_has_stack, core_has_registers, core_info_proc): Rework as
8072 core_target methods.
8073 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8074 (_initialize_corelow): Initialize the_core_target.
8075 * gdbcore.h (core_target): Delete.
8076 (the_core_target): New.
8077
8078 * ctf.c: (ctf_target): New class.
8079 (ctf_ops): Now a ctf_target.
8080 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8081 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8082 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8083 methods.
8084 (init_ctf_ops): Delete.
8085 (_initialize_ctf): Don't call it.
8086 * tracefile-tfile.c (tfile_target): New class.
8087 (tfile_ops): Now a tfile_target.
8088 (tfile_open, tfile_close, tfile_files_info)
8089 (tfile_get_tracepoint_status, tfile_trace_find)
8090 (tfile_fetch_registers, tfile_xfer_partial)
8091 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8092 Refactor as tfile_target methods.
8093 (tfile_xfer_partial_features): Remove target_ops parameter.
8094 (init_tfile_ops): Delete.
8095 (_initialize_tracefile_tfile): Don't call it.
8096 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8097 (tracefile_has_stack, tracefile_has_registers)
8098 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8099 tracefile_target methods.
8100 (init_tracefile_ops): Delete.
8101 (tracefile_target::tracefile_target): New.
8102 * tracefile.h: Include "target.h".
8103 (tracefile_target): New class.
8104 (init_tracefile_ops): Delete.
8105
8106 * spu-multiarch.c (spu_multiarch_target): New class.
8107 (spu_ops): Now a spu_multiarch_target.
8108 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8109 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8110 (spu_search_memory, spu_mourn_inferior): Refactor as
8111 spu_multiarch_target methods.
8112 (init_spu_ops): Delete.
8113 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8114 complete_target_initialization.
8115
8116 * ravenscar-thread.c (ravenscar_thread_target): New class.
8117 (ravenscar_ops): Now a ravenscar_thread_target.
8118 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8119 (ravenscar_thread_alive, ravenscar_pid_to_str)
8120 (ravenscar_fetch_registers, ravenscar_store_registers)
8121 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8122 (ravenscar_stopped_by_hw_breakpoint)
8123 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8124 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8125 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8126 methods.
8127 (init_ravenscar_thread_ops): Delete.
8128 (_initialize_ravenscar): Remove references to
8129 init_ravenscar_thread_ops and complete_target_initialization.
8130
8131 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8132 (bsd_uthread_target): New class.
8133 (bsd_uthread_ops): Now a bsd_uthread_target.
8134 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8135 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8136 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8137 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8138 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8139 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8140 (bsd_uthread_target): Delete function.
8141 (_initialize_bsd_uthread): Remove reference to
8142 complete_target_initialization.
8143
8144 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8145 (target_bfd): ... this new class.
8146 (target_bfd_xfer_partial, target_bfd_get_section_table)
8147 (target_bfd_close): Refactor as target_bfd methods.
8148 (target_bfd::~target_bfd): New.
8149 (target_bfd_reopen): Adjust.
8150 (target_bfd::close): New.
8151
8152 * record-btrace.c (record_btrace_target): New class.
8153 (record_btrace_ops): Now a record_btrace_target.
8154 (record_btrace_open, record_btrace_stop_recording)
8155 (record_btrace_disconnect, record_btrace_close)
8156 (record_btrace_async, record_btrace_info)
8157 (record_btrace_insn_history, record_btrace_insn_history_range)
8158 (record_btrace_insn_history_from, record_btrace_call_history)
8159 (record_btrace_call_history_range)
8160 (record_btrace_call_history_from, record_btrace_record_method)
8161 (record_btrace_is_replaying, record_btrace_will_replay)
8162 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8163 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8164 (record_btrace_store_registers, record_btrace_prepare_to_store)
8165 (record_btrace_to_get_unwinder)
8166 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8167 (record_btrace_commit_resume, record_btrace_wait)
8168 (record_btrace_stop, record_btrace_can_execute_reverse)
8169 (record_btrace_stopped_by_sw_breakpoint)
8170 (record_btrace_supports_stopped_by_sw_breakpoint)
8171 (record_btrace_stopped_by_hw_breakpoint)
8172 (record_btrace_supports_stopped_by_hw_breakpoint)
8173 (record_btrace_update_thread_list, record_btrace_thread_alive)
8174 (record_btrace_goto_begin, record_btrace_goto_end)
8175 (record_btrace_goto, record_btrace_stop_replaying_all)
8176 (record_btrace_execution_direction)
8177 (record_btrace_prepare_to_generate_core)
8178 (record_btrace_done_generating_core): Refactor as
8179 record_btrace_target methods.
8180 (init_record_btrace_ops): Delete.
8181 (_initialize_record_btrace): Remove reference to
8182 init_record_btrace_ops.
8183 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8184 the execution_direction global.
8185 (record_full_base_target, record_full_target)
8186 (record_full_core_target): New classes.
8187 (record_full_ops): Now a record_full_target.
8188 (record_full_core_ops): Now a record_full_core_target.
8189 (record_full_target::detach, record_full_target::disconnect)
8190 (record_full_core_target::disconnect)
8191 (record_full_target::mourn_inferior, record_full_target::kill):
8192 New.
8193 (record_full_open, record_full_close, record_full_async): Refactor
8194 as methods of the record_full_base_target class.
8195 (record_full_resume, record_full_commit_resume): Refactor
8196 as methods of the record_full_target class.
8197 (record_full_wait, record_full_stopped_by_watchpoint)
8198 (record_full_stopped_data_address)
8199 (record_full_stopped_by_sw_breakpoint)
8200 (record_full_supports_stopped_by_sw_breakpoint)
8201 (record_full_stopped_by_hw_breakpoint)
8202 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8203 methods of the record_full_base_target class.
8204 (record_full_store_registers, record_full_xfer_partial)
8205 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8206 Refactor as methods of the record_full_target class.
8207 (record_full_can_execute_reverse, record_full_get_bookmark)
8208 (record_full_goto_bookmark, record_full_execution_direction)
8209 (record_full_record_method, record_full_info, record_full_delete)
8210 (record_full_is_replaying, record_full_will_replay)
8211 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8212 (record_full_stop_replaying): Refactor as methods of the
8213 record_full_base_target class.
8214 (record_full_core_resume, record_full_core_kill)
8215 (record_full_core_fetch_registers)
8216 (record_full_core_prepare_to_store)
8217 (record_full_core_store_registers, record_full_core_xfer_partial)
8218 (record_full_core_insert_breakpoint)
8219 (record_full_core_remove_breakpoint)
8220 (record_full_core_has_execution): Refactor
8221 as methods of the record_full_core_target class.
8222 (record_full_base_target::supports_delete_record): New.
8223 (init_record_full_ops): Delete.
8224 (init_record_full_core_ops): Delete.
8225 (record_full_save): Refactor as method of the
8226 record_full_base_target class.
8227 (_initialize_record_full): Remove references to
8228 init_record_full_ops and init_record_full_core_ops.
8229
8230 * remote.c (remote_target, extended_remote_target): New classes.
8231 (remote_ops): Now a remote_target.
8232 (extended_remote_ops): Now an extended_remote_target.
8233 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8234 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8235 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8236 (remote_pass_signals, remote_set_syscall_catchpoint)
8237 (remote_program_signals, )
8238 (remote_thread_always_alive): Remove target_ops parameter.
8239 (remote_thread_alive, remote_thread_name)
8240 (remote_update_thread_list, remote_threads_extra_info)
8241 (remote_static_tracepoint_marker_at)
8242 (remote_static_tracepoint_markers_by_strid)
8243 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8244 (remote_open): Refactor as methods of remote_target.
8245 (extended_remote_open, extended_remote_detach)
8246 (extended_remote_attach, extended_remote_post_attach):
8247 (extended_remote_supports_disable_randomization)
8248 (extended_remote_create_inferior): : Refactor as method of
8249 extended_remote_target.
8250 (remote_set_permissions, remote_open_1, remote_detach)
8251 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8252 (remote_resume, remote_commit_resume, remote_stop)
8253 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8254 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8255 (remote_prepare_to_store, remote_store_registers)
8256 (remote_flash_erase, remote_flash_done, remote_files_info)
8257 (remote_kill, remote_mourn, remote_insert_breakpoint)
8258 (remote_remove_breakpoint, remote_insert_watchpoint)
8259 (remote_watchpoint_addr_within_range)
8260 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8261 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8262 (remote_supports_stopped_by_sw_breakpoint)
8263 (remote_stopped_by_hw_breakpoint)
8264 (remote_supports_stopped_by_hw_breakpoint)
8265 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8266 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8267 (remote_verify_memory): Refactor as methods of remote_target.
8268 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8269 parameter.
8270 (remote_xfer_partial, remote_get_memory_xfer_limit)
8271 (remote_search_memory, remote_rcmd, remote_memory_map)
8272 (remote_pid_to_str, remote_get_thread_local_address)
8273 (remote_get_tib_address, remote_read_description): Refactor as
8274 methods of remote_target.
8275 (remote_target::fileio_open, remote_target::fileio_pwrite)
8276 (remote_target::fileio_pread, remote_target::fileio_close): New.
8277 (remote_hostio_readlink, remote_hostio_fstat)
8278 (remote_filesystem_is_local, remote_can_execute_reverse)
8279 (remote_supports_non_stop, remote_supports_disable_randomization)
8280 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8281 (remote_supports_enable_disable_tracepoint)
8282 (remote_supports_string_tracing)
8283 (remote_can_run_breakpoint_commands, remote_trace_init)
8284 (remote_download_tracepoint, remote_can_download_tracepoint)
8285 (remote_download_trace_state_variable, remote_enable_tracepoint)
8286 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8287 (remote_trace_start, remote_get_trace_status)
8288 (remote_get_tracepoint_status, remote_trace_stop)
8289 (remote_trace_find, remote_get_trace_state_variable_value)
8290 (remote_save_trace_data, remote_get_raw_trace_data)
8291 (remote_set_disconnected_tracing, remote_core_of_thread)
8292 (remote_set_circular_trace_buffer, remote_traceframe_info)
8293 (remote_get_min_fast_tracepoint_insn_len)
8294 (remote_set_trace_buffer_size, remote_set_trace_notes)
8295 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8296 (remote_disable_btrace, remote_teardown_btrace)
8297 (remote_read_btrace, remote_btrace_conf)
8298 (remote_augmented_libraries_svr4_read, remote_load)
8299 (remote_pid_to_exec_file, remote_can_do_single_step)
8300 (remote_execution_direction, remote_thread_handle_to_thread_info):
8301 Refactor as methods of remote_target.
8302 (init_remote_ops, init_extended_remote_ops): Delete.
8303 (remote_can_async_p, remote_is_async_p, remote_async)
8304 (remote_thread_events, remote_upload_tracepoints)
8305 (remote_upload_trace_state_variables): Refactor as methods of
8306 remote_target.
8307 (_initialize_remote): Remove references to init_remote_ops and
8308 init_extended_remote_ops.
8309
8310 * remote-sim.c (gdbsim_target): New class.
8311 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8312 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8313 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8314 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8315 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8316 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8317 Refactor as methods of gdbsim_target.
8318 (gdbsim_ops): Now a gdbsim_target.
8319 (init_gdbsim_ops): Delete.
8320 (gdbsim_cntrl_c): Adjust.
8321 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8322
8323 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8324 (the_amd64_linux_nat_target): New.
8325 (amd64_linux_fetch_inferior_registers)
8326 (amd64_linux_store_inferior_registers): Refactor as methods of
8327 amd64_linux_nat_target.
8328 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8329 * i386-linux-nat.c: Don't include "linux-nat.h".
8330 (i386_linux_nat_target): New class.
8331 (the_i386_linux_nat_target): New.
8332 (i386_linux_fetch_inferior_registers)
8333 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8334 as methods of i386_linux_nat_target.
8335 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8336 * inf-child.c (inf_child_ops): Delete.
8337 (inf_child_fetch_inferior_registers)
8338 (inf_child_store_inferior_registers): Delete.
8339 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8340 methods of inf_child_target.
8341 (inf_child_target::supports_terminal_ours)
8342 (inf_child_target::terminal_init)
8343 (inf_child_target::terminal_inferior)
8344 (inf_child_target::terminal_ours_for_output)
8345 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8346 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8347 New.
8348 (inf_child_open, inf_child_disconnect, inf_child_close)
8349 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8350 (inf_child_post_startup_inferior, inf_child_can_run)
8351 (inf_child_pid_to_exec_file): Refactor as methods of
8352 inf_child_target.
8353 (inf_child_follow_fork): Delete.
8354 (inf_child_target::can_create_inferior)
8355 (inf_child_target::can_attach): New.
8356 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8357 (inf_child_target::has_stack, inf_child_target::has_registers)
8358 (inf_child_target::has_execution): New.
8359 (inf_child_fileio_open, inf_child_fileio_pwrite)
8360 (inf_child_fileio_pread, inf_child_fileio_fstat)
8361 (inf_child_fileio_close, inf_child_fileio_unlink)
8362 (inf_child_fileio_readlink, inf_child_use_agent)
8363 (inf_child_can_use_agent): Refactor as methods of
8364 inf_child_target.
8365 (return_zero, inf_child_target): Delete.
8366 (inf_child_target::inf_child_target): New.
8367 * inf-child.h: Include "target.h".
8368 (inf_child_target): Delete function prototype.
8369 (inf_child_target): New class.
8370 (inf_child_open_target, inf_child_mourn_inferior)
8371 (inf_child_maybe_unpush_target): Delete.
8372 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8373 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8374 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8375 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8376 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8377 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8378 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8379 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8380 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8381 methods of inf_ptrace_target.
8382 (inf_ptrace_target): Delete function.
8383 * inf-ptrace.h: Include "inf-child.h".
8384 (inf_ptrace_target): Delete function declaration.
8385 (inf_ptrace_target): New class.
8386 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8387 * linux-nat.c (linux_target): New.
8388 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8389 (linux_nat_target::~linux_nat_target): New.
8390 (linux_child_post_attach, linux_child_post_startup_inferior)
8391 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8392 (linux_child_remove_fork_catchpoint)
8393 (linux_child_insert_vfork_catchpoint)
8394 (linux_child_remove_vfork_catchpoint)
8395 (linux_child_insert_exec_catchpoint)
8396 (linux_child_remove_exec_catchpoint)
8397 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8398 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8399 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8400 (linux_nat_stopped_data_address)
8401 (linux_nat_stopped_by_sw_breakpoint)
8402 (linux_nat_supports_stopped_by_sw_breakpoint)
8403 (linux_nat_stopped_by_hw_breakpoint)
8404 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8405 (linux_nat_kill, linux_nat_mourn_inferior)
8406 (linux_nat_xfer_partial, linux_nat_thread_alive)
8407 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8408 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8409 (linux_child_static_tracepoint_markers_by_strid)
8410 (linux_nat_is_async_p, linux_nat_can_async_p)
8411 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8412 (linux_nat_supports_multi_process)
8413 (linux_nat_supports_disable_randomization, linux_nat_async)
8414 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8415 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8416 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8417 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8418 methods of linux_nat_target.
8419 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8420 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8421 parameter.
8422 (check_stopped_by_watchpoint): Adjust.
8423 (linux_xfer_partial): Delete.
8424 (linux_target_install_ops, linux_target, linux_nat_add_target):
8425 Delete.
8426 (linux_nat_target::linux_nat_target): New.
8427 * linux-nat.h: Include "inf-ptrace.h".
8428 (linux_nat_target): New.
8429 (linux_target, linux_target_install_ops, linux_nat_add_target):
8430 Delete function declarations.
8431 (linux_target): Declare global.
8432 * linux-thread-db.c (thread_db_target): New.
8433 (thread_db_target::thread_db_target): New.
8434 (thread_db_ops): Delete.
8435 (the_thread_db_target): New.
8436 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8437 (thread_db_update_thread_list, thread_db_pid_to_str)
8438 (thread_db_extra_thread_info)
8439 (thread_db_thread_handle_to_thread_info)
8440 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8441 (thread_db_resume): Refactor as methods of thread_db_target.
8442 (init_thread_db_ops): Delete.
8443 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8444 * x86-linux-nat.c: Don't include "linux-nat.h".
8445 (super_post_startup_inferior): Delete.
8446 (x86_linux_nat_target::~x86_linux_nat_target): New.
8447 (x86_linux_child_post_startup_inferior)
8448 (x86_linux_read_description, x86_linux_enable_btrace)
8449 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8450 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8451 methods of x86_linux_nat_target.
8452 (x86_linux_create_target): Delete. Bits folded ...
8453 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8454 pointer.
8455 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8456 (x86_linux_nat_target): New class.
8457 (x86_linux_create_target): Delete.
8458 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8459 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8460 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8461 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8462 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8463 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8464 make extern.
8465 (x86_use_watchpoints): Delete.
8466 * x86-nat.h: Include "breakpoint.h" and "target.h".
8467 (x86_use_watchpoints): Delete.
8468 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8469 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8470 (x86_insert_watchpoint, x86_remove_watchpoint)
8471 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8472 (x86_stopped_by_hw_breakpoint): New declarations.
8473 (x86_nat_target): New template class.
8474
8475 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8476 (the_ppc_linux_nat_target): New.
8477 (ppc_linux_fetch_inferior_registers)
8478 (ppc_linux_can_use_hw_breakpoint)
8479 (ppc_linux_region_ok_for_hw_watchpoint)
8480 (ppc_linux_ranged_break_num_registers)
8481 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8482 (ppc_linux_insert_mask_watchpoint)
8483 (ppc_linux_remove_mask_watchpoint)
8484 (ppc_linux_can_accel_watchpoint_condition)
8485 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8486 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8487 (ppc_linux_watchpoint_addr_within_range)
8488 (ppc_linux_masked_watch_num_registers)
8489 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8490 (ppc_linux_read_description): Refactor as methods of
8491 ppc_linux_nat_target.
8492 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8493
8494 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8495 (procfs_target): New class.
8496 (the_procfs_target): New.
8497 (procfs_target): Delete function.
8498 (procfs_auxv_parse, procfs_attach, procfs_detach)
8499 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8500 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8501 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8502 (procfs_create_inferior, procfs_update_thread_list)
8503 (procfs_thread_alive, procfs_pid_to_str)
8504 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8505 (procfs_stopped_data_address, procfs_insert_watchpoint)
8506 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8507 (proc_find_memory_regions, procfs_info_proc)
8508 (procfs_make_note_section): Refactor as methods of procfs_target.
8509 (_initialize_procfs): Adjust.
8510 * sol-thread.c (sol_thread_target): New class.
8511 (sol_thread_ops): Now a sol_thread_target.
8512 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8513 (sol_thread_fetch_registers, sol_thread_store_registers)
8514 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8515 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8516 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8517 (init_sol_thread_ops): Delete.
8518 (_initialize_sol_thread): Adjust. Remove references to
8519 init_sol_thread_ops and complete_target_initialization.
8520
8521 * windows-nat.c (windows_nat_target): New class.
8522 (windows_fetch_inferior_registers)
8523 (windows_store_inferior_registers, windows_resume, windows_wait)
8524 (windows_attach, windows_detach, windows_pid_to_exec_file)
8525 (windows_files_info, windows_create_inferior)
8526 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8527 (windows_close, windows_pid_to_str, windows_xfer_partial)
8528 (windows_get_tib_address, windows_get_ada_task_ptid)
8529 (windows_thread_name, windows_thread_alive): Refactor as
8530 windows_nat_target methods.
8531 (do_initial_windows_stuff): Adjust.
8532 (windows_target): Delete function.
8533 (_initialize_windows_nat): Adjust.
8534
8535 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8536 (darwin_mourn_inferior, darwin_kill_inferior)
8537 (darwin_create_inferior, darwin_attach, darwin_detach)
8538 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8539 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8540 (darwin_supports_multi_process): Refactor as darwin_nat_target
8541 methods.
8542 (darwin_resume_to, darwin_files_info): Delete.
8543 (_initialize_darwin_inferior): Rename to ...
8544 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8545 * darwin-nat.h: Include "inf-child.h".
8546 (darwin_nat_target): New class.
8547 (darwin_complete_target): Delete.
8548 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8549 (darwin_target): New.
8550 (i386_darwin_fetch_inferior_registers)
8551 (i386_darwin_store_inferior_registers): Refactor as methods of
8552 darwin_nat_target.
8553 (darwin_complete_target): Delete, with ...
8554 (_initialize_i386_darwin_nat): ... bits factored out here.
8555
8556 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8557 (the_alpha_linux_nat_target): New.
8558 (alpha_linux_register_u_offset): Refactor as
8559 alpha_linux_nat_target method.
8560 (_initialize_alpha_linux_nat): Adjust.
8561 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8562 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8563 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8564 methods of linux_nat_trad_target.
8565 (linux_trad_target): Delete.
8566 * linux-nat-trad.h (linux_trad_target): Delete function.
8567 (linux_nat_trad_target): New class.
8568 * mips-linux-nat.c (mips_linux_nat_target): New class.
8569 (super_fetch_registers, super_store_registers, super_close):
8570 Delete.
8571 (the_mips_linux_nat_target): New.
8572 (mips64_linux_regsets_fetch_registers)
8573 (mips64_linux_regsets_store_registers)
8574 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8575 (mips_linux_register_u_offset, mips_linux_read_description)
8576 (mips_linux_can_use_hw_breakpoint)
8577 (mips_linux_stopped_by_watchpoint)
8578 (mips_linux_stopped_data_address)
8579 (mips_linux_region_ok_for_hw_watchpoint)
8580 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8581 (mips_linux_close): Refactor as methods of mips_linux_nat.
8582 (_initialize_mips_linux_nat): Adjust to C++ification.
8583
8584 * aix-thread.c (aix_thread_target): New class.
8585 (aix_thread_ops): Now an aix_thread_target.
8586 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8587 (aix_thread_fetch_registers, aix_thread_store_registers)
8588 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8589 (aix_thread_thread_alive, aix_thread_pid_to_str)
8590 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8591 Refactor as methods of aix_thread_target.
8592 (init_aix_thread_ops): Delete.
8593 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8594 and complete_target_initialization.
8595 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8596 (rs6000_nat_target): New class.
8597 (the_rs6000_nat_target): New.
8598 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8599 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8600 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8601 (super_create_inferior): Delete.
8602 (_initialize_rs6000_nat): Adjust to C++ification.
8603
8604 * arm-linux-nat.c (arm_linux_nat_target): New class.
8605 (the_arm_linux_nat_target): New.
8606 (arm_linux_fetch_inferior_registers)
8607 (arm_linux_store_inferior_registers, arm_linux_read_description)
8608 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8609 (arm_linux_remove_hw_breakpoint)
8610 (arm_linux_region_ok_for_hw_watchpoint)
8611 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8612 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8613 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8614 arm_linux_nat_target.
8615 (_initialize_arm_linux_nat): Adjust to C++ification.
8616
8617 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8618 (the_aarch64_linux_nat_target): New.
8619 (aarch64_linux_fetch_inferior_registers)
8620 (aarch64_linux_store_inferior_registers)
8621 (aarch64_linux_child_post_startup_inferior)
8622 (aarch64_linux_read_description)
8623 (aarch64_linux_can_use_hw_breakpoint)
8624 (aarch64_linux_insert_hw_breakpoint)
8625 (aarch64_linux_remove_hw_breakpoint)
8626 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8627 (aarch64_linux_region_ok_for_hw_watchpoint)
8628 (aarch64_linux_stopped_data_address)
8629 (aarch64_linux_stopped_by_watchpoint)
8630 (aarch64_linux_watchpoint_addr_within_range)
8631 (aarch64_linux_can_do_single_step): Refactor as methods of
8632 aarch64_linux_nat_target.
8633 (super_post_startup_inferior): Delete.
8634 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8635
8636 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8637 (the_hppa_linux_nat_target): New.
8638 (hppa_linux_fetch_inferior_registers)
8639 (hppa_linux_store_inferior_registers): Refactor as methods of
8640 hppa_linux_nat_target.
8641 (_initialize_hppa_linux_nat): Adjust to C++ification.
8642
8643 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8644 (the_ia64_linux_nat_target): New.
8645 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8646 (ia64_linux_stopped_data_address)
8647 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8648 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8649 ia64_linux_nat_target methods.
8650 (super_xfer_partial): Delete.
8651 (_initialize_ia64_linux_nat): Adjust to C++ification.
8652
8653 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8654 (the_m32r_linux_nat_target): New.
8655 (m32r_linux_fetch_inferior_registers)
8656 (m32r_linux_store_inferior_registers): Refactor as
8657 m32r_linux_nat_target methods.
8658 (_initialize_m32r_linux_nat): Adjust to C++ification.
8659
8660 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8661 (the_m68k_linux_nat_target): New.
8662 (m68k_linux_fetch_inferior_registers)
8663 (m68k_linux_store_inferior_registers): Refactor as
8664 m68k_linux_nat_target methods.
8665 (_initialize_m68k_linux_nat): Adjust to C++ification.
8666
8667 * s390-linux-nat.c (s390_linux_nat_target): New class.
8668 (the_s390_linux_nat_target): New.
8669 (s390_linux_fetch_inferior_registers)
8670 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8671 (s390_insert_watchpoint, s390_remove_watchpoint)
8672 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8673 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8674 (s390_auxv_parse, s390_read_description): Refactor as methods of
8675 s390_linux_nat_target.
8676 (_initialize_s390_nat): Adjust to C++ification.
8677
8678 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8679 (the_sparc_linux_nat_target): New.
8680 (_initialize_sparc_linux_nat): Adjust to C++ification.
8681 * sparc-nat.c (sparc_fetch_inferior_registers)
8682 (sparc_store_inferior_registers): Remove target_ops parameter.
8683 * sparc-nat.h (sparc_fetch_inferior_registers)
8684 (sparc_store_inferior_registers): Remove target_ops parameter.
8685 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8686 (the_sparc64_linux_nat_target): New.
8687 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8688
8689 * spu-linux-nat.c (spu_linux_nat_target): New class.
8690 (the_spu_linux_nat_target): New.
8691 (spu_child_post_startup_inferior, spu_child_post_attach)
8692 (spu_child_wait, spu_fetch_inferior_registers)
8693 (spu_store_inferior_registers, spu_xfer_partial)
8694 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8695 methods.
8696 (_initialize_spu_nat): Adjust to C++ification.
8697
8698 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8699 (the_tilegx_linux_nat_target): New.
8700 (fetch_inferior_registers, store_inferior_registers):
8701 Refactor as methods.
8702 (_initialize_tile_linux_nat): Adjust to C++ification.
8703
8704 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8705 (the_xtensa_linux_nat_target): New.
8706 (xtensa_linux_fetch_inferior_registers)
8707 (xtensa_linux_store_inferior_registers): Refactor as
8708 xtensa_linux_nat_target methods.
8709 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8710
8711 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8712 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8713 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8714 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8715 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8716 (fbsd_stopped_by_sw_breakpoint)
8717 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8718 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8719 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8720 (fbsd_post_startup_inferior, fbsd_post_attach)
8721 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8722 (fbsd_set_syscall_catchpoint)
8723 (super_xfer_partial, super_resume, super_wait)
8724 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8725 (fbsd_handle_debug_trap): Remove target_ops parameter.
8726 (fbsd_nat_add_target): Delete.
8727 * fbsd-nat.h: Include "inf-ptrace.h".
8728 (fbsd_nat_add_target): Delete.
8729 (USE_SIGTRAP_SIGINFO): Define.
8730 (fbsd_nat_target): New class.
8731
8732 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8733 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8734 (amd64bsd_target): Delete.
8735 * amd64-bsd-nat.h: New file.
8736 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8737 "x86-bsd-nat.h".
8738 (amd64_fbsd_nat_target): New class.
8739 (the_amd64_fbsd_nat_target): New.
8740 (amd64fbsd_read_description): Refactor as method of
8741 amd64_fbsd_nat_target.
8742 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8743 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8744 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8745 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8746 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8747 (i386bsd_target): Delete.
8748 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8749 (i386bsd_fetch_inferior_registers)
8750 (i386bsd_store_inferior_registers): Declare.
8751 (i386_bsd_nat_target): New class.
8752 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8753 (the_i386_fbsd_nat_target): New.
8754 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8755 i386_fbsd_nat_target methods.
8756 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8757 (_initialize_i386fbsd_nat): Adjust to C++ification.
8758 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8759 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8760 (_initialize_x86_bsd_nat): Adjust to C++ification.
8761 * x86-bsd-nat.h: Include "x86-nat.h".
8762 (x86bsd_target): Delete declaration.
8763 (x86bsd_nat_target): New class.
8764
8765 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8766 (the_aarch64_fbsd_nat_target): New.
8767 (aarch64_fbsd_fetch_inferior_registers)
8768 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8769 aarch64_fbsd_nat_target.
8770 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8771 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8772 (the_alpha_bsd_nat_target): New.
8773 (alphabsd_fetch_inferior_registers)
8774 (alphabsd_store_inferior_registers): Refactor as
8775 alpha_bsd_nat_target methods.
8776 (_initialize_alphabsd_nat): Refactor as methods of
8777 alpha_bsd_nat_target.
8778 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8779 (the_amd64_nbsd_nat_target): New.
8780 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8781 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8782 (the_amd64_obsd_nat_target): New.
8783 (_initialize_amd64obsd_nat): Adjust to C++ification.
8784 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8785 (the_arm_fbsd_nat_target): New.
8786 (arm_fbsd_fetch_inferior_registers)
8787 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8788 (_initialize_arm_fbsd_nat): Refactor as methods of
8789 arm_fbsd_nat_target.
8790 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8791 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8792 (the_arm_netbsd_nat_target): New.
8793 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8794 arm_netbsd_nat_target.
8795 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8796 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8797 (the_hppa_nbsd_nat_target): New.
8798 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8799 hppa_nbsd_nat_target methods.
8800 (_initialize_hppanbsd_nat): Adjust to C++ification.
8801 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8802 (the_hppa_obsd_nat_target): New.
8803 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8804 methods of hppa_obsd_nat_target.
8805 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8806 add_target.
8807 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8808 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8809 add_target.
8810 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8811 (_initialize_i386obsd_nat): Use add_target.
8812 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8813 (the_m68k_bsd_nat_target): New.
8814 (m68kbsd_fetch_inferior_registers)
8815 (m68kbsd_store_inferior_registers): Refactor as methods of
8816 m68k_bsd_nat_target.
8817 (_initialize_m68kbsd_nat): Adjust to C++ification.
8818 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8819 (the_mips_fbsd_nat_target): New.
8820 (mips_fbsd_fetch_inferior_registers)
8821 (mips_fbsd_store_inferior_registers): Refactor as methods of
8822 mips_fbsd_nat_target.
8823 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8824 add_target.
8825 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8826 (the_mips_nbsd_nat_target): New.
8827 (mipsnbsd_fetch_inferior_registers)
8828 (mipsnbsd_store_inferior_registers): Refactor as methods of
8829 mips_nbsd_nat_target.
8830 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8831 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8832 (the_mips64_obsd_nat_target): New.
8833 (mips64obsd_fetch_inferior_registers)
8834 (mips64obsd_store_inferior_registers): Refactor as methods of
8835 mips64_obsd_nat_target.
8836 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8837 add_target.
8838 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8839 nbsd_nat_target.
8840 * nbsd-nat.h: Include "inf-ptrace.h".
8841 (nbsd_nat_target): New class.
8842 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8843 (obsd_wait): Refactor as methods of obsd_nat_target.
8844 (obsd_add_target): Delete.
8845 * obsd-nat.h: Include "inf-ptrace.h".
8846 (obsd_nat_target): New class.
8847 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8848 (the_ppc_fbsd_nat_target): New.
8849 (ppcfbsd_fetch_inferior_registers)
8850 (ppcfbsd_store_inferior_registers): Refactor as methods of
8851 ppc_fbsd_nat_target.
8852 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8853 add_target.
8854 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8855 (the_ppc_nbsd_nat_target): New.
8856 (ppcnbsd_fetch_inferior_registers)
8857 (ppcnbsd_store_inferior_registers): Refactor as methods of
8858 ppc_nbsd_nat_target.
8859 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8860 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8861 (the_ppc_obsd_nat_target): New.
8862 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8863 methods of ppc_obsd_nat_target.
8864 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8865 add_target.
8866 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8867 (the_sh_nbsd_nat_target): New.
8868 (shnbsd_fetch_inferior_registers)
8869 (shnbsd_store_inferior_registers): Refactor as methods of
8870 sh_nbsd_nat_target.
8871 (_initialize_shnbsd_nat): Adjust to C++ification.
8872 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8873 (inf_ptrace_xfer_partial): Delete.
8874 (sparc_xfer_partial, sparc_target): Delete.
8875 * sparc-nat.h (sparc_fetch_inferior_registers)
8876 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8877 (sparc_target): Delete function declaration.
8878 (sparc_target): New template class.
8879 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8880 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8881 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8882 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8883 add_target.
8884 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8885 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8886 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8887 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8888 add_target.
8889 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8890 (the_vax_bsd_nat_target): New.
8891 (vaxbsd_fetch_inferior_registers)
8892 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8893 methods.
8894 (_initialize_vaxbsd_nat): Adjust to C++ification.
8895
8896 * bsd-kvm.c (bsd_kvm_target): New class.
8897 (bsd_kvm_ops): Now a bsd_kvm_target.
8898 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8899 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8900 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8901 bsd_kvm_target.
8902 (bsd_kvm_return_one): Delete.
8903 (bsd_kvm_add_target): Adjust to C++ification.
8904
8905 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8906 (nto_procfs_target_procfs): New classes.
8907 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8908 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8909 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8910 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8911 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8912 (procfs_remove_hw_breakpoint, procfs_resume)
8913 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8914 (procfs_kill_inferior, procfs_store_registers)
8915 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8916 as methods of nto_procfs_target.
8917 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8918 (nto_native_ops): Delete.
8919 (procfs_open, procfs_native_open): Delete.
8920 (nto_native_ops): Now an nto_procfs_target_native.
8921 (init_procfs_targets): Adjust to C++ification.
8922 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8923 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8924 Refactor as methods of nto_procfs_target.
8925
8926 * go32-nat.c (go32_nat_target): New class.
8927 (the_go32_nat_target): New.
8928 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8929 (go32_store_registers, go32_xfer_partial, go32_files_info)
8930 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8931 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8932 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8933 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8934 (go32_target): Delete.
8935 (_initialize_go32_nat): Adjust to C++ification.
8936
8937 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8938 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8939 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8940 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8941 gnu_nat_target.
8942 (gnu_target): Delete.
8943 * gnu-nat.h (gnu_target): Delete.
8944 (gnu_nat_target): New class.
8945 * i386-gnu-nat.c (gnu_base_target): New.
8946 (i386_gnu_nat_target): New class.
8947 (the_i386_gnu_nat_target): New.
8948 (_initialize_i386gnu_nat): Adjust to C++ification.
8949
8950 2018-05-02 Pedro Alves <palves@redhat.com>
8951
8952 * bfd-target.c (target_bfd_xclose): Rename to ...
8953 (target_bfd_close): ... this.
8954 (target_bfd_reopen): Adjust.
8955 * target.c (target_close): Remove references to to_xclose.
8956 * target.h (target_ops::to_xclose): Delete.
8957 (target_ops::to_close): Update comments.
8958
8959 2018-05-02 Pedro Alves <palves@redhat.com>
8960
8961 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8962 "linux-nat.h".
8963 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8964 * inf-ptrace.c (inf_ptrace_register_u_offset)
8965 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8966 (inf_ptrace_store_register, inf_ptrace_store_registers)
8967 (inf_ptrace_trad_target): Move to ...
8968 * linux-nat-trad.c: ... this new file.
8969 * linux-nat-trad.h: New file.
8970 * linux-nat.c (linux_target_install_ops): Make extern.
8971 (linux_trad_target): Delete.
8972 * linux-nat.h (linux_trad_target): Delete declaration.
8973 (linux_target_install_ops): Declare.
8974 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8975 "linux-nat.h".
8976
8977 2018-05-02 Pedro Alves <palves@redhat.com>
8978
8979 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8980 procfs_target/add_target here.
8981 * procfs.c (procfs_target): Make static.
8982 (_initialize_procfs): Call add_target here.
8983 * procfs.h (struct target_ops): Remove forward declaration.
8984 (procfs_target): Remove declaration.
8985 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8986
8987 2018-05-02 Pedro Alves <palves@redhat.com>
8988
8989 * procfs.c (procfs_stopped_by_watchpoint)
8990 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8991 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8992 Forward declare.
8993 (procfs_use_watchpoints): Delete, move contents...
8994 (procfs_target): ... here.
8995 * procfs.h (procfs_use_watchpoints): Delete declaration.
8996 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8997 procfs_use_watchpoints.
8998 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8999 procfs_use_watchpoints.
9000
9001 2018-05-02 Tom Tromey <tom@tromey.com>
9002
9003 PR python/20084:
9004 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9005 and var_zuinteger_unlimited.
9006 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9007 and PARAM_ZUINTEGER_UNLIMITED.
9008 (set_parameter_value): Handle var_zuinteger and
9009 var_zuinteger_unlimited.
9010 (add_setshow_generic): Likewise.
9011 (parmpy_init): Likewise.
9012
9013 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9014
9015 PR rust/23124
9016 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9017 pointer is not null before dereferencing it.
9018
9019 2018-04-30 Tom Tromey <tom@tromey.com>
9020
9021 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9022 is_mi_like_p.
9023
9024 2018-04-30 Tom Tromey <tom@tromey.com>
9025
9026 * breakpoint.c (mention): Remove use of is_mi_like_p.
9027 (print_mention_ranged_breakpoint): Likewise.
9028 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9029 of is_mi_like_p.
9030
9031 2018-04-30 Tom Tromey <tom@tromey.com>
9032
9033 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9034
9035 2018-04-30 Tom Tromey <tom@tromey.com>
9036
9037 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9038 (info_spu_event_command): Remove some uses of is_mi_like_p.
9039
9040 2018-04-30 Tom Tromey <tom@tromey.com>
9041
9042 * python/py-framefilter.c (py_print_single_arg)
9043 (enumerate_locals, py_print_args, py_print_frame): Remove some
9044 uses of is_mi_like_p.
9045
9046 2018-04-30 Tom Tromey <tom@tromey.com>
9047
9048 * ui-out.c: Update.
9049 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9050 * ui-out.h (ui_out::is_mi_like_p): Now const.
9051 (ui_out::do_is_mi_like_p): Now const.
9052 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9053
9054 2018-04-30 Tom Tromey <tom@tromey.com>
9055
9056 * varobj.c (varobj_set_visualizer): Use new_reference.
9057 * python/python.c (gdbpy_decode_line): Use new_reference.
9058 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9059 new_reference.
9060
9061 2018-04-30 Tom Tromey <tom@tromey.com>
9062
9063 * varobj.c (install_new_value): Use new_reference.
9064 * value.h (value_incref): Return void. Swap intro comment with
9065 value_decref.
9066 * value.c (set_value_parent): Use new_reference.
9067 (value_incref): Return void. Update intro comment.
9068 (release_value): Use new_reference.
9069 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9070
9071 2018-04-30 Tom Tromey <tom@tromey.com>
9072
9073 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9074 * gdb_bfd.h (new_bfd_ref): Remove.
9075 (gdb_bfd_open): Update comment.
9076 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9077 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9078 (gdb_bfd_fdopenr): Use new_reference.
9079 * exec.c (exec_file_attach): Use new_reference.
9080
9081 2018-04-30 Tom Tromey <tom@tromey.com>
9082
9083 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9084 method.
9085
9086 2018-04-30 Tom Tromey <tom@tromey.com>
9087
9088 * jit.c (jit_read_code_entry): Use type_align.
9089 * i386-tdep.c (i386_gdbarch_init): Don't call
9090 set_gdbarch_long_long_align_bit.
9091 * gdbarch.sh: Remove long_long_align_bit.
9092 * gdbarch.c, gdbarch.h: Rebuild.
9093 * arc-tdep.c (arc_type_align): New function.
9094 (arc_gdbarch_init): Use arc_type_align. Don't call
9095 set_gdbarch_long_long_align_bit.
9096
9097 2018-04-30 Tom Tromey <tom@tromey.com>
9098
9099 * rust-lang.c (rust_type_alignment): Remove.
9100 (rust_composite_type): Use type_align.
9101
9102 2018-04-30 Tom Tromey <tom@tromey.com>
9103
9104 * NEWS: Mention Type.align.
9105 * python/py-type.c (typy_get_alignof): New function.
9106 (type_object_getset): Add "alignof".
9107
9108 2018-04-30 Tom Tromey <tom@tromey.com>
9109
9110 PR exp/17095:
9111 * NEWS: Update.
9112 * std-operator.def (UNOP_ALIGNOF): New operator.
9113 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9114 New.
9115 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9116 * c-lang.c (c_op_print_tab): Add alignof.
9117 * c-exp.y (ALIGNOF): New token.
9118 (exp): Add "ALIGNOF" production.
9119 (ident_tokens): Add _Alignof and alignof.
9120
9121 2018-04-30 Tom Tromey <tom@tromey.com>
9122
9123 * i386-tdep.c (i386_type_align): New function.
9124 (i386_gdbarch_init): Update.
9125 * gdbarch.sh (type_align): New method.
9126 * gdbarch.c, gdbarch.h: Rebuild.
9127 * arch-utils.h (default_type_align): Declare.
9128 * arch-utils.c (default_type_align): New function.
9129 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9130 (struct type) <align_log2>: New field.
9131 <instance_flags>: Now a bitfield.
9132 (TYPE_RAW_ALIGN): New macro.
9133 (type_align, type_raw_align, set_type_align): Declare.
9134 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9135 functions.
9136 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9137 (get_alignment, maybe_set_alignment): New functions.
9138 (read_structure_type, read_enumeration_type, read_array_type)
9139 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9140 (read_subrange_type, read_base_type): Set type alignment.
9141
9142 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9143
9144 * dwarf2read.c (read_index_from_section): Use bool.
9145
9146 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9147
9148 PR gdb/22950
9149 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9150 with #ifdef.
9151
9152 2018-04-29 John Reiser <jreiser@BitWagon.com>
9153
9154 PR build/22873
9155 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9156 last step, and do it atomically.
9157
9158 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9159
9160 * compile/compile-c-types.c (convert_int, convert_float):
9161 Update for C FE v1.
9162
9163 2018-04-27 Tom Tromey <tom@tromey.com>
9164
9165 PR rust/22545:
9166 * rust-lang.c (rust_inclusive_range_type_p): New function.
9167 (rust_range): Handle inclusive ranges.
9168 (rust_compute_range): Likewise.
9169 * rust-exp.y (struct rust_op) <inclusive>: New field.
9170 (DOTDOTEQ): New constant.
9171 (range_expr): Add "..=" productions.
9172 (operator_tokens): Add "..=" token.
9173 (ast_range): Add "inclusive" parameter.
9174 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9175 ranges.
9176 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9177 bounds values.
9178 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9179 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9180 Update comments.
9181 * expprint.c (print_subexp_standard): Handle new bounds values.
9182 (dump_subexp_body_standard): Likewise.
9183
9184 2018-04-27 Tom Tromey <tom@tromey.com>
9185
9186 * configure: Rebuild.
9187 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9188 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9189 "OVERRIDE".
9190 (class symbol_needs_eval_context): Likewise.
9191 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9192 (mock_mapped_index::symbol_name_at): Use "override". Remove
9193 "virtual".
9194 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9195 "override".
9196 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9197 * aarch64-tdep.c (instruction_reader::read): Use "override".
9198 (instruction_reader_test::read): Likewise.
9199 * arm-tdep.c (instruction_reader::read): Use "override".
9200 (instruction_reader_thumb::read): Likewise.
9201
9202 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9203
9204 PR remote/9665
9205 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9206 instead of remote_send.
9207 (remote_send): Remove.
9208
9209 2018-04-26 Pedro Alves <palves@redhat.com>
9210
9211 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9212 find_function_start_sal instead of find_pc_line.
9213
9214 2018-04-26 Pedro Alves <palves@redhat.com>
9215
9216 * breakpoint.c (set_breakpoint_location_function): Handle
9217 mst_data_gnu_ifunc.
9218 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9219 * elfread.c (elf_symtab_read): Give data symbols with
9220 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9221 (elf_rel_plt_read): Update comment.
9222 * linespec.c (convert_linespec_to_sals): Handle
9223 mst_data_gnu_ifunc.
9224 (minsym_found): Handle mst_data_gnu_ifunc.
9225 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9226 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9227 * parse.c (find_minsym_type_and_address): Handle
9228 mst_data_gnu_ifunc.
9229 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9230 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9231 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9232 comment.
9233 <mst_data_gnu_ifunc>: New enumerator.
9234
9235 2018-04-26 Pedro Alves <palves@redhat.com>
9236
9237 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9238 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9239 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9240 Handle it.
9241 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9242 (lookup_minimal_symbol_by_pc): Adjust.
9243 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9244 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9245 * minsyms.h (lookup_msym_prefer): New enum.
9246 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9247 parameter by a lookup_msym_prefer parameter.
9248
9249 2018-04-26 Pedro Alves <palves@redhat.com>
9250
9251 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9252 ends in "@plt" instead of looking at the symbol's section.
9253
9254 2018-04-26 Pedro Alves <palves@redhat.com>
9255
9256 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9257 all references.
9258 (find_pc_partial_function_gnu_ifunc): Rename to ...
9259 (find_pc_partial_function): ... this, and remove references to
9260 'is_gnu_ifunc_p'.
9261 (find_pc_partial_function): Delete old implementation.
9262 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9263
9264 2018-04-26 Pedro Alves <palves@redhat.com>
9265
9266 * linespec.c (struct bound_minimal_symbol_search_key): New.
9267 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9268 skip first line if we found a GNU ifunc minimal symbol by name.
9269 (compare_msymbols): Change parameters to work with a destructured
9270 lhs minsym.
9271 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9272 functions.
9273
9274 2018-04-26 Pedro Alves <palves@redhat.com>
9275
9276 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9277 ifunc targets here. Instead, if we have an ifunc minsym, use its
9278 address/name.
9279 (add_location_to_breakpoint): Store the minsym and the objfile in
9280 the breakpoint location.
9281 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9282 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9283 Record the minsym in the sal.
9284 * symtab.h (symtab_and_line) <msymbol>: New field.
9285
9286 2018-04-26 Pedro Alves <palves@redhat.com>
9287
9288 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9289 unless we actually resolved the ifunc.
9290
9291 2018-04-26 Pedro Alves <palves@redhat.com>
9292
9293 * c-exp.y (variable production): Prefer ifunc minsyms over
9294 regular function symbols.
9295 * symtab.c (find_gnu_ifunc): New function.
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 * symtab.h (find_gnu_ifunc): New declaration.
9300
9301 2018-04-26 Pedro Alves <palves@redhat.com>
9302
9303 * blockframe.c (find_gnu_ifunc_target_type): New function.
9304 (find_function_type): New.
9305 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9306 return a value with a memory address.
9307 (eval_call): For calls to GNU ifunc functions, try to find the
9308 type of the target function from the type that the resolver
9309 returns.
9310 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9311 symbols.
9312 * infcall.c (find_function_return_type): Delete.
9313 (find_function_addr): Add 'function_type' parameter. For calls to
9314 GNU ifunc functions, try to find the type of the target function
9315 from the type that the resolver returns, and return it via
9316 FUNCTION_TYPE.
9317 (call_function_by_hand_dummy): Adjust to use the function type
9318 returned by find_function_addr.
9319 (find_function_addr): Add 'function_type' parameter and move
9320 description here.
9321 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9322 declarations.
9323
9324 2018-04-26 Pedro Alves <palves@redhat.com>
9325
9326 * c-exp.y (variable production): Skip finding an alias for ifunc
9327 symbols.
9328
9329 2018-04-26 Pedro Alves <palves@redhat.com>
9330
9331 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9332
9333 2018-04-25 Pedro Alves <palves@redhat.com>
9334
9335 * infcmd.c (kill_command): Print the pid as string, not the whole
9336 thread's ptid. Add comment. s/has been killed/killed/ in output
9337 message.
9338 * remote.c (remote_detach_1): Print the pid as string, not the
9339 whole thread's ptid.
9340
9341 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9342 Sergio Durigan Junior <sergiodj@redhat.com>
9343 Pedro Alves <palves@redhat.com>
9344
9345 * infcmd.c (kill_command): Print message when inferior has
9346 been killed.
9347 * inferior.c (print_inferior_events): Remove 'static'. Set as
9348 '1'.
9349 (add_inferior): Improve message printed when
9350 'print_inferior_events' is on.
9351 (exit_inferior): Remove message printed when
9352 'print_inferior_events' is on.
9353 (detach_inferior): Improve message printed when
9354 'print_inferior_events' is on.
9355 (initialize_inferiors): Use 'add_inferior_silent' to set
9356 'current_inferior_'.
9357 * inferior.h (print_inferior_events): Declare here as
9358 'extern'.
9359 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9360 '[Detaching...]' messages when 'print_inferior_events' is on.
9361 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9362 as prefix/suffix for messages. Remove periods. Fix erroneous
9363 'Detaching after fork from child...', replace it by '... from
9364 parent...'.
9365 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9366 prefix/suffix when printing 'Detaching...' messages. Print
9367 them when 'print_inferior_events' is on.
9368 * remote.c (remote_detach_1): Print message when detaching
9369 from inferior and '!is_fork_parent'.
9370
9371 2018-04-24 Tom Tromey <tom@tromey.com>
9372
9373 * cli-out.h: Reindent.
9374
9375 2018-04-24 Tom Tromey <tom@tromey.com>
9376
9377 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9378 (cli_ui_out::do_field_string): Use fputs_filtered.
9379 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9380
9381 2018-04-23 Tom Tromey <tom@tromey.com>
9382
9383 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9384 gdb::unique_xmalloc_ptr.
9385
9386 2018-04-23 Tom Tromey <tom@tromey.com>
9387
9388 * configure: Rebuild.
9389
9390 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9391
9392 PR gdb/23095
9393 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9394 prepare_for_testing. Set normal_bp to r_debug_state if target
9395 is bsd.
9396
9397 2018-04-21 Pedro Alves <palves@redhat.com>
9398 Rajendra SY <rajendra.sy@gmail.com>
9399
9400 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9401 * remote.c (extended_remote_attach): In all-stop mode, mark the
9402 thread as executing.
9403
9404 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9405
9406 * thread.c (thread_apply_all_command): Fix comment.
9407 (thread_command): Fix comment.
9408
9409 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9410
9411 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9412 parameter.
9413 * features/aarch64-core.c (create_feature_aarch64_core):
9414 Regenerate.
9415 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9416 Likewise.
9417 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9418 Likewise.
9419 * features/i386/32bit-avx512.c
9420 (create_feature_i386_32bit_avx512): Likewise.
9421 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9422 Likewise.
9423 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9424 Likewise.
9425 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9426 Likewise.
9427 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9428 Likewise.
9429 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9430 Likewise.
9431 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9432 Likewise.
9433 * features/i386/64bit-avx512.c
9434 (create_feature_i386_64bit_avx512): Likewise.
9435 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9436 Likewise.
9437 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9438 Likewise.
9439 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9440 Likewise.
9441 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9442 Likewise.
9443 * features/i386/64bit-segments.c
9444 (create_feature_i386_64bit_segments): Likewise.
9445 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9446 Likewise.
9447 * features/i386/x32-core.c
9448 (create_feature_i386_x32_core): Likewise.
9449 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9450 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9451 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9452 * target-descriptions.c: In generated code, don't pass xml
9453 filename.
9454
9455 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9456
9457 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9458 (print_xml_feature::visit_post): Likewise.
9459 (print_xml_feature::visit): Likewise.
9460 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9461 (print_xml_feature): Add new class.
9462 * regformats/regdat.sh: Null xmltarget on feature targets.
9463 * target-descriptions.c (struct target_desc): Add xmltarget.
9464 (maintenance_check_tdesc_xml_convert): Add unittest function.
9465 (tdesc_get_features_xml): Add function to get xml.
9466 (maintenance_check_xml_descriptions): Test xml generation.
9467 * xml-tdesc.c (string_read_description_xml): Add function.
9468 * xml-tdesc.h (string_read_description_xml): Add declaration.
9469
9470 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9471
9472 * features/Makefile: Add feature marker to targets with new style
9473 target descriptions.
9474 * regformats/aarch64.dat: Regenerate.
9475 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9476 * regformats/i386/amd64-avx-linux.dat: Likewise.
9477 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9478 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9479 * regformats/i386/amd64-linux.dat: Likewise.
9480 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9481 * regformats/i386/amd64.dat: Likewise.
9482 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9483 * regformats/i386/i386-avx-linux.dat: Likewise.
9484 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9485 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9486 * regformats/i386/i386-linux.dat: Likewise.
9487 * regformats/i386/i386-mmx-linux.dat: Likewise.
9488 * regformats/i386/i386-mpx-linux.dat: Likewise.
9489 * regformats/i386/i386.dat: Likewise.
9490 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9491 * regformats/i386/x32-avx-linux.dat: Likewise.
9492 * regformats/i386/x32-linux.dat: Likewise.
9493 * regformats/tic6x-c62x-linux.dat: Likewise.
9494 * regformats/tic6x-c64x-linux.dat: Likewise.
9495 * regformats/tic6x-c64xp-linux.dat: Likewise.
9496 * regformats/regdat.sh: Parse feature marker.
9497
9498 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9499
9500 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9501 (tdesc_osabi_name): Likewise.
9502 * target-descriptions.c (tdesc_architecture_name): Add new
9503 function.
9504 (tdesc_osabi_name): Likewise.
9505
9506 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9507
9508 * common/tdesc.c (tdesc_predefined_type): Move to here.
9509 (tdesc_named_type): Likewise.
9510 (tdesc_create_vector): Likewise.
9511 (tdesc_create_struct): Likewise.
9512 (tdesc_set_struct_size): Likewise.
9513 (tdesc_create_union): Likewise.
9514 (tdesc_create_flags): Likewise.
9515 (tdesc_create_enum): Likewise.
9516 (tdesc_add_field): Likewise.
9517 (tdesc_add_typed_bitfield): Likewise.
9518 (tdesc_add_bitfield): Likewise.
9519 (tdesc_add_flag): Likewise.
9520 (tdesc_add_enum_value): Likewise.
9521 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9522 (struct tdesc_type_vector): Likewise.
9523 (struct tdesc_type_field): Likewise.
9524 (struct tdesc_type_with_fields): Likewise.
9525 (tdesc_create_enum): Add declaration.
9526 (tdesc_add_typed_bitfield): Likewise.
9527 (tdesc_add_enum_value): Likewise.
9528 * target-descriptions.c (tdesc_type_field): Move from here.
9529 (tdesc_type_builtin): Likewise.
9530 (tdesc_type_vector): Likewise.
9531 (tdesc_type_with_fields): Likewise.
9532 (tdesc_predefined_types): Likewise.
9533 (tdesc_named_type): Likewise.
9534 (tdesc_create_vector): Likewise.
9535 (tdesc_create_struct): Likewise.
9536 (tdesc_set_struct_size): Likewise.
9537 (tdesc_create_union): Likewise.
9538 (tdesc_create_flags): Likewise.
9539 (tdesc_create_enum): Likewise.
9540 (tdesc_add_field): Likewise.
9541 (tdesc_add_typed_bitfield): Likewise.
9542 (tdesc_add_bitfield): Likewise.
9543 (tdesc_add_flag): Likewise.
9544 (tdesc_add_enum_value): Likewise.
9545 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9546 (tdesc_add_typed_bitfield): Likewise.
9547 (tdesc_add_enum_value): Likewise.
9548
9549 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9550
9551 * common/tdesc.c (tdesc_feature::accept): Move to here.
9552 (tdesc_feature::operator==): Likewise.
9553 (tdesc_create_reg): Likewise.
9554 * common/tdesc.h (tdesc_type_kind): Likewise.
9555 (struct tdesc_type): Likewise.
9556 (struct tdesc_feature): Likewise.
9557 * regformats/regdat.sh: Create a feature.
9558 * target-descriptions.c (tdesc_type_kind): Move from here.
9559 (tdesc_type): Likewise.
9560 (tdesc_type_up): Likewise.
9561 (tdesc_feature): Likewise.
9562 (tdesc_create_reg): Likewise.
9563
9564 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9565
9566 * Makefile.in: Add arch/tdesc.c
9567 * common/tdesc.c: New file.
9568 * common/tdesc.h (tdesc_element_visitor): Move to here.
9569 (tdesc_element): Likewise.
9570 (tdesc_reg): Likewise.
9571 (tdesc_reg_up): Likewise.
9572 * regformats/regdef.h (reg): Add offset to constructors.
9573 * target-descriptions.c (tdesc_element_visitor): Move from here.
9574 (tdesc_element): Likewise.
9575 (tdesc_reg): Likewise.
9576 (tdesc_reg_up): Likewise.
9577
9578 2018-04-17 Tom Tromey <tom@tromey.com>
9579
9580 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9581 discriminant field.
9582
9583 2018-04-17 Tom Tromey <tom@tromey.com>
9584
9585 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9586
9587 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9588
9589 * symtab.c (print_symbol_info): Skip printing filename and line
9590 number when `last' is NULL.
9591 (symtab_symbol_info): Use empty string instead of NULL for first
9592 invocation of print_symbol_info.
9593 (rbreak_command): Pass NULL to `last' parameter of
9594 print_symbol_info.
9595
9596 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9597
9598 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9599 instead of nullptr.
9600
9601 2018-04-16 Pedro Alves <palves@redhat.com>
9602
9603 * MAINTAINERS (sh): Remove.
9604 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9605 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9606 (ALLDEPFILES): Remove sh64-tdep.c.
9607 * NEWS: Mentions that support for SH-5/SH64 is removed.
9608 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9609 (sh*-*-openbsd*): Ditto.
9610 (sh64-*-elf*): Remove.
9611 (sh*): Remove.
9612 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9613 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9614 * sh-tdep.c: No longer include "sh64-tdep.h".
9615 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9616 * sh64-tdep.c, sh64-tdep.h: Remove files.
9617
9618 2018-04-16 Pedro Alves <palves@redhat.com>
9619
9620 * MAINTAINERS: Remove m88k.
9621 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9622 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9623 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9624 * NEWS: Mention that support for m88k was removed.
9625 * configure.host (m88*-*-*): Remove support.
9626 * configure.nat (m88k-*-*): Remove support.
9627 * configure.tgt (m88*-*-openbsd*): Remove.
9628 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9629
9630 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9631
9632 * configure.tgt (x86_tobjs): New variable.
9633 (amd64_tobjs, i386_tobjs): Use it.
9634
9635 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9636
9637 * symtab.c (print_symbol_info): Precede the symbol definition by
9638 the line number when available.
9639 * NEWS: Advertise this enhancement.
9640
9641 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9642
9643 * NEWS (New options): announce set/show record btrace cpu.
9644 * btrace.c: Include record-btrace.h.
9645 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9646 the vendor is unknown.
9647 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9648 Maybe overwrite the btrace configuration's cpu.
9649 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9650 (btrace_fetch): Add cpu parameter. Update callers.
9651 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9652 Maybe overwrite the btrace configuration's cpu. Skip enabling
9653 errata workarounds if the vendor is unknown.
9654 * python/py-record-btrace.c: Include record-btrace.h.
9655 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9656 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9657 * record-btrace.c (record_btrace_cpu_state_kind): New.
9658 (record_btrace_cpu): New.
9659 (set_record_btrace_cpu_cmdlist): New.
9660 (record_btrace_get_cpu): New.
9661 (require_btrace_thread, record_btrace_info)
9662 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9663 (cmd_set_record_btrace_cpu_none): New.
9664 (cmd_set_record_btrace_cpu_auto): New.
9665 (cmd_set_record_btrace_cpu): New.
9666 (cmd_show_record_btrace_cpu): New.
9667 (_initialize_record_btrace): Initialize set/show record btrace cpu
9668 commands.
9669 * record-btrace.h (record_btrace_get_cpu): New.
9670
9671 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9672
9673 * record.c (set_record_command): Fix typo in message.
9674
9675 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9676
9677 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9678
9679 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9680
9681 * infrun.c (process_event_stop_test): Call
9682 gdbarch_in_indirect_branch_thunk.
9683 * gdbarch.sh (in_indirect_branch_thunk): New.
9684 * gdbarch.c: Regenerated.
9685 * gdbarch.h: Regenerated.
9686 * x86-tdep.h: New.
9687 * x86-tdep.c: New.
9688 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9689 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9690 (ALLDEPFILES): Add x86-tdep.c.
9691 * arch-utils.h (default_in_indirect_branch_thunk): New.
9692 * arch-utils.c (default_in_indirect_branch_thunk): New.
9693 * i386-tdep: Include x86-tdep.h.
9694 (i386_in_indirect_branch_thunk): New.
9695 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9696 function.
9697 * amd64-tdep: Include x86-tdep.h.
9698 (amd64_in_indirect_branch_thunk): New.
9699 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9700
9701 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9702
9703 PR gdb/23053
9704 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9705 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9706 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9707 regression.
9708
9709 2018-04-12 Tom Tromey <tom@tromey.com>
9710
9711 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9712 (rust_evaluate_subexp): Likewise.
9713
9714 2018-04-12 Pedro Alves <palves@redhat.com>
9715
9716 * procfs.c (procfs_detach): Make forward declaration's prototype
9717 match definition's protototype.
9718 (proc_get_LDT_entry): Remove stale do_cleanups call.
9719
9720 2018-04-12 Pedro Alves <palves@redhat.com>
9721
9722 * target.h (target_ops::to_has_exited): Delete.
9723 (target_has_exited): Delete.
9724 * target-delegates.c: Regenerate.
9725
9726 2018-04-11 Pedro Alves <palves@redhat.com>
9727
9728 * target.c (fileio_fh_t::t): Add comment.
9729 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9730 (target_fileio_close): Handle a NULL target.
9731 (invalidate_fileio_fh): New.
9732 (target_close): Call it.
9733 * remote.c (remote_hostio_send_command): No longer check whether
9734 remote_desc is open.
9735
9736 2018-04-11 Pedro Alves <palves@redhat.com>
9737
9738 * target.c (fileio_fh_t): Make it a named struct instead of a
9739 typedef.
9740 (fileio_fh_t::is_closed): New method.
9741 (DEF_VEC_O (fileio_fh_t)): Remove.
9742 (fileio_fhandles): Now a std::vector.
9743 (is_closed_fileio_fh): Delete.
9744 (acquire_fileio_fd): Adjust. Rename parameters.
9745 (release_fileio_fd): Adjust.
9746 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9747 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9748 (target_fileio_close): Adjust.
9749
9750 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9751
9752 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9753 index.
9754
9755 2018-04-10 Pedro Alves <palves@redhat.com>
9756
9757 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9758 (scoped_finish_thread_state): New class.
9759 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9760 cleanup.
9761 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9762 (fetch_inferior_event, normal_stop): Likewise.
9763 * thread.c (finish_thread_state_cleanup): Delete.
9764
9765 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9766 Pedro Alves <palves@redhat.com>
9767
9768 * value.c: Include "selftest.h" and "common/array-view.h".
9769 (struct range) <operator ==>: New.
9770 (test_ranges_contain): New.
9771 (check_ranges_vector): New.
9772 (test_insert_into_bit_range_vector): New.
9773 (_initialize_values): Register selftests.
9774 * common/array-view.h (operator==, operator!=): New.
9775
9776 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9777
9778 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9779 an iterator.
9780 * inline-frame.c: Include <algorithm>.
9781 (struct inline_state): Add constructor.
9782 (inline_state_s): Remove.
9783 (DEF_VEC_O(inline_state_s)): Remove.
9784 (inline_states): Change type to std::vector.
9785 (find_inline_frame_state): Adjust to std::vector.
9786 (allocate_inline_frame_state): Remove.
9787 (clear_inline_frame_state): Adjust to std::vector.
9788 (skip_inline_frames): Adjust to std::vector.
9789
9790 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9791
9792 * tracepoint.h (struct trace_state_variable): Add constructor.
9793 <name>: Change type to std::string.
9794 * tracepoint.c (tsv_s): Remove.
9795 (DEF_VEC_O(tsv_s)): Remove.
9796 (tvariables): Change to std::vector.
9797 (create_trace_state_variable): Adjust to std::vector.
9798 (find_trace_state_variable): Likewise.
9799 (find_trace_state_variable_by_number): Likewise.
9800 (delete_trace_state_variable): Likewise.
9801 (trace_variable_command): Adjust to std::string.
9802 (delete_trace_variable_command): Likewise.
9803 (tvariables_info_1): Adjust to std::vector.
9804 (save_trace_state_variables): Likewise.
9805 (start_tracing): Likewise.
9806 (merge_uploaded_trace_state_variables): Adjust to std::vector
9807 and std::string.
9808 * target.h (struct target_ops)
9809 <to_download_trace_state_variable>: Pass reference to
9810 trace_state_variable.
9811 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9812 * target-delegates.c: Re-generate.
9813 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9814 (mi_tsv_deleted): Likewise.
9815 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9816 * remote.c (remote_download_trace_state_variable): Change
9817 pointer to reference and adjust.
9818 * make-target-delegates (parse_argtypes): Handle references.
9819 (write_function_header): Likewise.
9820 (munge_type): Likewise.
9821
9822 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9823
9824 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9825 string_view-selftests.c.
9826 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9827 testsuite.
9828 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9829 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9830 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9831 * unittests/basic_string_view/element_access/char/1.cc:
9832 Likewise.
9833 * unittests/basic_string_view/element_access/char/empty.cc:
9834 Likewise.
9835 * unittests/basic_string_view/element_access/char/front_back.cc:
9836 Likewise.
9837 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9838 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9839 Likewise.
9840 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9841 Likewise.
9842 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9843 Likewise.
9844 * unittests/basic_string_view/operations/compare/char/1.cc:
9845 Likewise.
9846 * unittests/basic_string_view/operations/compare/char/13650.cc:
9847 Likewise.
9848 * unittests/basic_string_view/operations/copy/char/1.cc:
9849 Likewise.
9850 * unittests/basic_string_view/operations/data/char/1.cc:
9851 Likewise.
9852 * unittests/basic_string_view/operations/find/char/1.cc:
9853 Likewise.
9854 * unittests/basic_string_view/operations/find/char/2.cc:
9855 Likewise.
9856 * unittests/basic_string_view/operations/find/char/3.cc:
9857 Likewise.
9858 * unittests/basic_string_view/operations/find/char/4.cc:
9859 Likewise.
9860 * unittests/basic_string_view/operations/rfind/char/1.cc:
9861 Likewise.
9862 * unittests/basic_string_view/operations/rfind/char/2.cc:
9863 Likewise.
9864 * unittests/basic_string_view/operations/rfind/char/3.cc:
9865 Likewise.
9866 * unittests/basic_string_view/operations/substr/char/1.cc:
9867 Likewise.
9868 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9869 * unittests/string_view-selftests.c: New file.
9870
9871 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9872
9873 * unittests/basic_string_view/capacity/1.cc: New file.
9874 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9875 * unittests/basic_string_view/cons/char/1.cc: New file.
9876 * unittests/basic_string_view/cons/char/2.cc: New file.
9877 * unittests/basic_string_view/cons/char/3.cc: New file.
9878 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9879 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9880 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9881 * unittests/basic_string_view/element_access/char/1.cc: New file.
9882 * unittests/basic_string_view/element_access/char/2.cc: New file.
9883 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9884 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9885 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9886 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9887 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9888 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9889 * unittests/basic_string_view/include.cc: New file.
9890 * unittests/basic_string_view/inserters/char/1.cc: New file.
9891 * unittests/basic_string_view/inserters/char/2.cc: New file.
9892 * unittests/basic_string_view/inserters/char/3.cc: New file.
9893 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9894 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9895 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9896 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9897 * unittests/basic_string_view/literals/types.cc: New file.
9898 * unittests/basic_string_view/literals/values.cc: New file.
9899 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9900 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9901 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9902 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9903 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9904 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9905 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9906 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9907 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9908 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9909 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9910 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9911 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9912 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9913 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9914 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9915 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9916 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9917 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9918 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9919 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9920 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9921 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9922 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9923 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9924 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9925 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9926 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9927 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9928 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9929 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9930 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9931 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9932 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9933 * unittests/basic_string_view/operators/char/2.cc: New file.
9934 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9935 * unittests/basic_string_view/range_access/char/1.cc: New file.
9936 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9937 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9938 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9939 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9940 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9941 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9942 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9943 * unittests/basic_string_view/typedefs.cc: New file.
9944 * unittests/basic_string_view/types/1.cc: New file.
9945
9946 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9947
9948 * common/gdb_string_view.h: Remove libstdc++ implementation
9949 details, adjust to gdb reality.
9950 * common/gdb_string_view.tcc: Likewise.
9951 * cli/cli-script.c (struct string_view): Remove.
9952 (user_args) <m_args>: Change element type to gdb::string_view.
9953 (user_args::insert_args): Adjust.
9954
9955 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9956
9957 * common/gdb_string_view.h: New file.
9958 * common/gdb_string_view.tcc: New file.
9959
9960 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9961
9962 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9963 * configure: Re-generate.
9964
9965 2018-04-09 Pedro Alves <palves@redhat.com>
9966
9967 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9968 (set_target_gdbarch): Call
9969 gdb::observers::architecture_changed.notify instead of
9970 observer_notify_architecture_changed.
9971
9972 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9973
9974 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9975 (do_restore_current_traceframe_cleanup): Remove.
9976 (restore_current_traceframe_cleanup_dtor): Remove.
9977 (make_cleanup_restore_current_traceframe): Remove.
9978 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9979 New.
9980 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9981 * infrun.c (fetch_inferior_event): Use
9982 scoped_restore_current_traceframe.
9983
9984 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9985
9986 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9987 Remove.
9988 <n_allocated_type_units>: Remove.
9989 <all_type_units>: Change to std::vector.
9990 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9991 to std::vector change.
9992 (dwarf2_per_objfile::get_cutu): Likewise.
9993 (dwarf2_per_objfile::get_tu): Likewise.
9994 (create_signatured_type_table_from_index): Likewise.
9995 (create_signatured_type_table_from_debug_names): Likewise.
9996 (dw2_symtab_iter_next): Likewise.
9997 (dw2_print_stats): Likewise.
9998 (dw2_expand_all_symtabs): Likewise.
9999 (dw2_expand_marked_cus): Likewise.
10000 (dw2_debug_names_iterator::next): Likewise.
10001 (dwarf2_initialize_objfile): Likewise.
10002 (add_signatured_type_cu_to_table): Likewise.
10003 (create_all_type_units): Likewise.
10004 (add_type_unit): Likewise.
10005 (struct tu_abbrev_offset): Add constructor.
10006 (build_type_psymtabs_1): Adjust to std::vector change.
10007 (print_tu_stats): Likewise.
10008 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10009 (write_debug_names): Likewise.
10010
10011 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10012
10013 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10014 Make an std::vector.
10015 <n_comp_units>: Remove.
10016 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10017 to std::vector change.
10018 (dwarf2_per_objfile::get_cutu): Likewise.
10019 (dwarf2_per_objfile::get_cu): Likewise.
10020 (create_cus_from_index): Likewise.
10021 (create_addrmap_from_index): Likewise.
10022 (create_addrmap_from_aranges): Likewise.
10023 (dwarf2_read_index): Likewise.
10024 (dw2_find_last_source_symtab): Likewise.
10025 (dw2_map_symtabs_matching_filename): Likewise.
10026 (dw2_symtab_iter_next): Likewise.
10027 (dw2_print_stats): Likewise.
10028 (dw2_expand_all_symtabs): Likewise.
10029 (dw2_expand_symtabs_with_fullname): Likewise.
10030 (dw2_expand_marked_cus): Likewise.
10031 (dw2_map_symbol_filenames): Likewise.
10032 (create_cus_from_debug_names): Likewise.
10033 (dwarf2_read_debug_names): Likewise.
10034 (dw2_debug_names_iterator::next): Likewise.
10035 (dwarf2_initialize_objfile): Likewise.
10036 (set_partial_user): Likewise.
10037 (dwarf2_build_psymtabs_hard): Likewise.
10038 (read_comp_units_from_section): Remove arguments, adjust to
10039 std::vector change.
10040 (create_all_comp_units): Adjust to std::vector and
10041 read_comp_units_from_section changes.
10042 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10043 change.
10044 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10045 (psyms_seen_size): Likewise.
10046 (write_gdbindex): Likewise.
10047 (write_debug_names): Likewise.
10048
10049 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10050
10051 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10052 with dwarf2_per_objfile.
10053 (create_cus_from_index): Likewise.
10054 (create_signatured_type_table_from_index): Likewise.
10055 (dwarf2_read_index): Likewise.
10056 (dwarf2_initialize_objfile): Likewise.
10057 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10058 per_cu rather than get_dwarf2_per_objfile.
10059
10060 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10061
10062 * dwarf2read.h (struct signatured_type): Forward declare.
10063 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10064 New methods.
10065 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10066 (dw2_get_cutu): ...this.
10067 (dwarf2_per_objfile::get_cu): Rename from...
10068 (dw2_get_cu): ...this.
10069 (dwarf2_per_objfile::get_tu): New.
10070 (create_addrmap_from_index): Adjust.
10071 (create_addrmap_from_aranges): Adjust.
10072 (dw2_find_last_source_symtab): Adjust.
10073 (dw2_map_symtabs_matching_filename): Adjust.
10074 (dw2_symtab_iter_next): Adjust.
10075 (dw2_print_stats): Adjust.
10076 (dw2_expand_all_symtabs): Adjust.
10077 (dw2_expand_symtabs_with_fullname): Adjust.
10078 (dw2_expand_marked_cus): Adjust.
10079 (dw_expand_symtabs_matching_file_matcher): Adjust.
10080 (dw2_map_symbol_filenames): Adjust.
10081 (dw2_debug_names_iterator::next): Adjust.
10082 (dwarf2_initialize_objfile): Adjust.
10083 (set_partial_user): Adjust.
10084 (dwarf2_build_psymtabs_hard): Adjust.
10085
10086 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10087
10088 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10089 Remove unused variables.
10090 (dw2_map_symtabs_matching_filename): Likewise.
10091 (dwarf2_record_block_ranges): Likewise.
10092 (dwarf2_read_addr_index): Likewise.
10093 (follow_die_offset): Likewise.
10094
10095 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10096
10097 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10098 to symbol_file_add_main.
10099
10100 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10101
10102 PR mi/22299
10103 * mi/mi-console.c (do_fputc_async_safe): New.
10104 (mi_console_file::write_async_safe): New.
10105 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10106 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10107 New.
10108 * ui-file.c (ui_file::putstrn): Adjust call to
10109 fputstrn_unfiltered.
10110 * utils.c (printchar): Replace do_fputs and do_fprintf
10111 parameters by do_fputc.
10112 (fputstr_filtered): Adjust call to printchar.
10113 (fputstr_unfiltered): Likewise.
10114 (fputstrn_filtered): Likewise.
10115 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10116 printchar.
10117 * utils.h (do_fputc_ftype): New typedef.
10118 (fputstrn_unfiltered): Add do_fputc parameter.
10119
10120 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10121
10122 * regformats/i386/i386-avx.dat: Remove.
10123
10124 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10125
10126 PR gdb/22979
10127 * amd64-tdep.c (amd64_none_init_abi): New function.
10128 (amd64_x32_none_init_abi): New function.
10129 (_initialize_amd64_tdep): Register handlers for x86-64 and
10130 x64_32 with GDB_OSABI_NONE.
10131 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10132 GDB_OSABI_NONE osabi.
10133
10134 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10135
10136 PR gdb/22980
10137 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10138 GDB_OSABI_NONE.
10139 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10140 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10141
10142 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10143
10144 * common/byte-vector.h (char_vector): New type.
10145 * target.h (target_read_alloc): Return
10146 gdb::optional<byte_vector>.
10147 (target_read_stralloc): Return gdb::optional<char_vector>.
10148 (target_get_osdata): Return gdb::optional<char_vector>.
10149 * target.c (target_read_alloc_1): Templatize. Replacement
10150 manual memory management with vector.
10151 (target_read_alloc): Change return type, adjust.
10152 (target_read_stralloc): Change return type, adjust.
10153 (target_get_osdata): Change return type, adjust.
10154 * auxv.c (struct auxv_info) <length>: Remove.
10155 <data>: Change type to gdb::optional<byte_vector>.
10156 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10157 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10158 (target_auxv_search): Adjust.
10159 (fprint_target_auxv): Adjust.
10160 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10161 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10162 (linux_make_corefile_notes): Adjust.
10163 * osdata.c (get_osdata): Adjust.
10164 * remote.c (remote_get_threads_with_qxfer): Adjust.
10165 (remote_memory_map): Adjust.
10166 (remote_traceframe_info): Adjust.
10167 (btrace_read_config): Adjust.
10168 (remote_read_btrace): Adjust.
10169 (remote_pid_to_exec_file): Adjust.
10170 * solib-aix.c (solib_aix_get_library_list): Adjust.
10171 * solib-dsbt.c (decode_loadmap): Don't free buf.
10172 (dsbt_get_initial_loadmaps): Adjust.
10173 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10174 * solib-target.c (solib_target_current_sos): Adjust.
10175 * tracepoint.c (sdata_make_value): Adjust.
10176 * xml-support.c (xinclude_start_include): Adjust.
10177 (xml_fetch_content_from_file): Adjust.
10178 * xml-support.h (xml_fetch_another): Change return type.
10179 (xml_fetch_content_from_file): Change return type.
10180 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10181 * xml-tdesc.c (file_read_description_xml): Adjust.
10182 (fetch_available_features_from_target): Change return type.
10183 (target_fetch_description_xml): Adjust.
10184 (target_read_description_xml): Adjust.
10185
10186 2018-04-06 Tom Tromey <tom@tromey.com>
10187
10188 * value.c (~value): Update.
10189 (struct value) <contents>: Now unique_xmalloc_ptr.
10190 (value_contents_bits_eq, allocate_value_contents)
10191 (value_contents_raw, value_contents_all_raw)
10192 (value_contents_for_printing, value_contents_for_printing_const)
10193 (set_value_enclosing_type): Update.
10194
10195 2018-04-06 Tom Tromey <tom@tromey.com>
10196
10197 * value.c (range_s): Remove typedef, VEC.
10198 (struct range): Add operator<.
10199 (range_lessthan): Remove.
10200 (ranges_contain): Change type.
10201 (~value): Update.
10202 (struct value) <unavailable, optimized_out>: Now std::vector.
10203 (value_entirely_available)
10204 (value_entirely_covered_by_range_vector)
10205 (value_entirely_unavailable, value_entirely_optimized_out):
10206 Update.
10207 (insert_into_bit_range_vector): Change argument type.
10208 (find_first_range_overlap): Likewise.
10209 (struct ranges_and_idx, value_contents_bits_eq)
10210 (require_not_optimized_out, require_available): Update.
10211 (ranges_copy_adjusted): Change argument types.
10212 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10213
10214 2018-04-06 Tom Tromey <tom@tromey.com>
10215
10216 * value.c (~value): Update.
10217 (struct value) <parent>: Now a value_ref_ptr.
10218 (value_parent, set_value_parent, value_address, value_copy):
10219 Update.
10220
10221 2018-04-06 Tom Tromey <tom@tromey.com>
10222
10223 * value.c (struct value): Add constructor, destructor, and member
10224 initializers.
10225 (allocate_value_lazy, value_decref): Update.
10226
10227 2018-04-06 Tom Tromey <tom@tromey.com>
10228
10229 * value.c (struct value) <released, next>: Remove.
10230 (all_values): Now a std::vector.
10231 (allocate_value_lazy): Update.
10232 (value_next): Remove.
10233 (value_mark, value_free_to_mark, release_value)
10234 (value_release_to_mark): Update.
10235
10236 2018-04-06 Tom Tromey <tom@tromey.com>
10237
10238 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10239 (free_value_chain): Remove.
10240 * value.c (free_value_chain): Remove.
10241 (value_release_to_mark): Return a std::vector.
10242 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10243 std::vector.
10244 (check_condition): Update.
10245 * eval.c (fetch_subexp_value): Change "val_chain" to a
10246 std::vector.
10247 * breakpoint.c (update_watchpoint): Update.
10248 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10249
10250 2018-04-06 Tom Tromey <tom@tromey.com>
10251
10252 * value.h (free_all_values): Remove.
10253 * value.c (free_all_values): Remove.
10254
10255 2018-04-06 Tom Tromey <tom@tromey.com>
10256
10257 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10258 (value_history_chain, value_history_count): Remove.
10259 (value_history): New global.
10260 (record_latest_value, access_value_history, show_values)
10261 (preserve_values): Update.
10262
10263 2018-04-06 Tom Tromey <tom@tromey.com>
10264
10265 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10266 * varobj.c (varobj_set_display_format, varobj_set_value)
10267 (install_default_visualizer, construct_visualizer)
10268 (install_new_value, ~varobj, varobj_get_value_type)
10269 (my_value_of_variable, varobj_editable_p): Update.
10270 * c-varobj.c (c_describe_child, c_value_of_variable)
10271 (cplus_number_of_children, cplus_describe_child): Update.
10272 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10273 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10274 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10275
10276 2018-04-06 Tom Tromey <tom@tromey.com>
10277
10278 * printcmd.c (last_examine_address): Change type to
10279 value_ref_ptr.
10280 (do_examine, x_command): Update.
10281
10282 2018-04-06 Tom Tromey <tom@tromey.com>
10283
10284 * value.c (release_value): Update.
10285 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10286 (struct bpstats) <val>: Now a value_ref_ptr.
10287 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10288 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10289 (~watchpoint, print_it_watchpoint, watch_command_1)
10290 (invalidate_bp_value_on_memory_change): Update.
10291
10292 2018-04-06 Tom Tromey <tom@tromey.com>
10293
10294 * varobj.c (varobj_clear_saved_item)
10295 (update_dynamic_varobj_children, install_new_value, ~varobj):
10296 Update.
10297 * value.h (value_incref): Move declaration earlier.
10298 (value_decref): Rename from value_free.
10299 (struct value_ref_policy): New.
10300 (value_ref_ptr): New typedef.
10301 (struct value_deleter): Remove.
10302 (gdb_value_up): Remove typedef.
10303 (release_value): Change return type.
10304 (release_value_or_incref): Remove.
10305 * value.c (set_value_parent): Update.
10306 (value_incref): Change return type.
10307 (value_decref): Rename from value_free.
10308 (value_free_to_mark, free_all_values, free_value_chain): Update.
10309 (release_value): Return value_ref_ptr.
10310 (release_value_or_incref): Remove.
10311 (record_latest_value, set_internalvar, clear_internalvar):
10312 Update.
10313 * stack.c (info_frame_command): Don't call value_free.
10314 * python/py-value.c (valpy_dealloc, valpy_new)
10315 (value_to_value_object): Update.
10316 * printcmd.c (do_examine): Update.
10317 * opencl-lang.c (lval_func_free_closure): Update.
10318 * mi/mi-main.c (register_changed_p): Don't call value_free.
10319 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10320 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10321 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10322 value_free.
10323 * guile/scm-value.c (vlscm_free_value_smob)
10324 (vlscm_scm_from_value): Update.
10325 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10326 (frame_unwind_register_unsigned, get_frame_register_bytes)
10327 (put_frame_register_bytes): Don't call value_free.
10328 * findvar.c (address_from_register): Don't call value_free.
10329 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10330 * dwarf2loc.c (entry_data_value_free_closure)
10331 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10332 (dwarf2_evaluate_loc_desc_full): Update.
10333 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10334 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10335 (~watchpoint, watch_command_1)
10336 (invalidate_bp_value_on_memory_change): Update.
10337 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10338
10339 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10340
10341 PR gdb/23022
10342 * warning.m4: Add -Wno-error=deprecated-register.
10343 * configure: Re-generate.
10344
10345 2018-04-05 Tom Tromey <tom@tromey.com>
10346
10347 * linespec.h: Remove include of "vec.h".
10348
10349 2018-04-05 Tom Tromey <tom@tromey.com>
10350
10351 * linespec.c (typep): Remove typedef.
10352 (find_methods, find_superclass_methods): Take a std::vector.
10353 (find_method): Use std::vector.
10354
10355 2018-04-05 Tom Tromey <tom@tromey.com>
10356
10357 * utils.c (compare_strings): Remove.
10358 * utils.h (compare_strings): Remove.
10359 * objc-lang.h (find_imps): Update.
10360 * objc-lang.c (find_methods): Take a std::vector.
10361 (uniquify_strings, find_imps): Likewise.
10362 * linespec.c (find_methods): Take a std::vector.
10363 (decode_objc): Use std::vector.
10364 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10365 a std::vector.
10366 (find_method, find_function_symbols): Use std::vector.
10367
10368 2018-04-05 Tom Tromey <tom@tromey.com>
10369
10370 * completer.c (completion_tracker::completion_tracker): Remove
10371 cast.
10372 (completion_tracker::discard_completions): Likewise.
10373 * breakpoint.c (ambiguous_names_p): Remove cast.
10374 * ada-lang.c (_initialize_ada_language): Remove cast.
10375 * utils.h (streq): Update.
10376 (streq_hash): Add new declaration.
10377 * utils.c (streq): Return bool.
10378 (streq_hash): New function.
10379
10380 2018-04-05 Tom Tromey <tom@tromey.com>
10381
10382 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10383 Remove a string copy.
10384
10385 2018-04-05 Tom Tromey <tom@tromey.com>
10386
10387 * linespec.c (filter_results): Use std::vector.
10388 (decode_line_2, decode_line_full): Update.
10389
10390 2018-04-05 Tom Tromey <tom@tromey.com>
10391
10392 * linespec.c (canonical_to_fullform): Return std::string.
10393 (filter_results): Update.
10394 (struct decode_line_2_item): Add constructor.
10395 <fullform, displayform>: Now std::string.
10396 (decode_line_2_compare_items): Now a std::sort comparator.
10397 (decode_line_2): Update.
10398
10399 2018-04-05 Tom Tromey <tom@tromey.com>
10400
10401 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10402 (unexpected_linespec_error): Update.
10403 (linespec_parse_basic, parse_linespec): Update.
10404
10405 2018-04-05 Tom Tromey <tom@tromey.com>
10406
10407 * linespec.c (linespec_parse_basic): Reindent.
10408
10409 2018-04-05 Tom Tromey <tom@tromey.com>
10410
10411 * minsyms.h (iterate_over_minimal_symbols): Update.
10412 * minsyms.c (iterate_over_minimal_symbols): Take a
10413 gdb::function_view.
10414 * linespec.c (struct collect_minsyms): Remove.
10415 (compare_msyms): Now a std::sort comparator.
10416 (add_minsym): Add parameters.
10417 (search_minsyms_for_name): Update. Use std::vector.
10418
10419 2018-04-03 Tom Tromey <tom@tromey.com>
10420
10421 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10422 gdb::byte_vector.
10423
10424 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10425
10426 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10427
10428 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10429
10430 PR gdb/16959
10431 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10432 printing static type.
10433
10434 2018-04-01 Tom Tromey <tom@tromey.com>
10435
10436 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10437 (rs6000_xfer_shared_libraries): Update.
10438
10439 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10440
10441 * common/gdb_vecs.h (char_ptr): Remove.
10442 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10443
10444 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10445
10446 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10447 with std::vector.
10448 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10449
10450 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10451
10452 * tracepoint.h (struct uploaded_tp): Initialize fields.
10453 <actions, step_actions, cmd_strings>: Change type to
10454 std::vector<char *>.
10455 * tracepoint.c (get_uploaded_tp): Allocate with new.
10456 (free_uploaded_tps): Free with delete.
10457 (parse_tracepoint_definition): Adjust to std::vector change.
10458 * breakpoint.c (read_uploaded_action): Likewise.
10459 (create_tracepoint_from_upload): Likewise.
10460 * ctf.c (ctf_write_uploaded_tp): Likewise.
10461 (SET_ARRAY_FIELD): Likewise.
10462 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10463
10464 2018-03-30 Tom Tromey <tom@tromey.com>
10465
10466 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10467 std::unique_ptr.
10468 (svr4_keep_data_in_core): Update.
10469 (svr4_read_so_list): Update.
10470
10471 2018-03-30 Tom Tromey <tom@tromey.com>
10472
10473 * windows-nat.c (handle_output_debug_string, handle_exception):
10474 Update.
10475 * target.h (target_read_string): Update.
10476 * target.c (target_read_string): Change "string" to
10477 unique_xmalloc_ptr.
10478 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10479 Update.
10480 * solib-frv.c (frv_current_sos): Update.
10481 * solib-dsbt.c (dsbt_current_sos): Update.
10482 * solib-darwin.c (darwin_current_sos): Update.
10483 * linux-thread-db.c (inferior_has_bug): Update.
10484 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10485 Update. Remove alloca.
10486 * ada-lang.c (ada_main_name): Update.
10487
10488 2018-03-30 Tom Tromey <tom@tromey.com>
10489
10490 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10491 (struct dwo_file_deleter): New.
10492 (dwo_file_up): New typedef.
10493 (open_and_init_dwo_file): Use dwo_file_up.
10494 (free_dwo_file_cleanup): Remove.
10495
10496 2018-03-30 Tom Tromey <tom@tromey.com>
10497
10498 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10499 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10500
10501 2018-03-30 Tom Tromey <tom@tromey.com>
10502
10503 * dwarf2read.c (class free_cached_comp_units): New class.
10504 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10505 (free_cached_comp_units): Remove function.
10506
10507 2018-03-30 Tom Tromey <tom@tromey.com>
10508
10509 * utils.h (make_cleanup_unpush_target): Remove.
10510 * inf-ptrace.c (struct target_unpusher): New.
10511 (target_unpush_up) New typedef.
10512 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10513 target_unpush_up.
10514 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10515
10516 2018-03-27 Tom Tromey <tom@tromey.com>
10517
10518 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10519
10520 2018-03-27 Pedro Alves <palves@redhat.com>
10521 Tom Tromey <tom@tromey.com>
10522
10523 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10524 destructor. Now a class.
10525 (gdb_readline_wrapper_cleanup): Remove function.
10526 (gdb_readline_wrapper): Remove cleanups.
10527
10528 2018-03-27 Tom Tromey <tom@tromey.com>
10529
10530 * typeprint.h (struct type_print_options) <local_typedefs,
10531 global_typedefs>: Remove "struct" keyword.
10532 (class typedef_hash_table): New class.
10533 (recursively_update_typedef_hash, add_template_parameters)
10534 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10535 (find_typedef_in_hash): Don't declare.
10536 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10537 (typedef_hash_table::recursively_update): Rename from
10538 recursively_update_typedef_hash. Now a member.
10539 (typedef_hash_table::add_template_parameters): Rename from
10540 add_template_parameters. Now a member.
10541 (typedef_hash_table::typedef_hash_table): Now a constructor;
10542 rename from create_typedef_hash.
10543 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10544 rename from free_typedef_hash.
10545 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10546 (do_free_global_table): Remove.
10547 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10548 from copy_type_recursive.
10549 (create_global_typedef_table): Remove.
10550 (typedef_hash_table::find_global_typedef): Now a member of
10551 typedef_hash_table.
10552 (typedef_hash_table::find_typedef): Rename from
10553 find_typedef_in_hash; now a member.
10554 (whatis_exp): Update.
10555 * extension.h (struct ext_lang_type_printers): Add constructor and
10556 destructor.
10557 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10558 declare.
10559 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10560 Now a constructor; rename from start_ext_lang_type_printers.
10561 (ext_lang_type_printers): Now a destructor; rename from
10562 free_ext_lang_type_printers.
10563 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10564 Update.
10565 (c_type_print_base_struct_union): Update. Remove cleanups.
10566
10567 2018-03-27 Tom Tromey <tom@tromey.com>
10568
10569 * dwarf-index-write.c: Include <cmath>.
10570
10571 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10572
10573 * NEWS: Add entry describing new "set|show varsize-limit" command.
10574 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10575 command.
10576 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10577 "set variable".
10578
10579 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10580
10581 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10582 dwarf-index-write.c
10583 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10584 * dwarf-index-common.c: New file.
10585 * dwarf-index-common.h: New file.
10586 * dwarf-index-write.c: New file.
10587 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10588 (struct dwarf2_section_info): Move from here.
10589 (dwarf2_section_info_def): Likewise.
10590 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10591 (offset_type): Likewise.
10592 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10593 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10594 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10595 (byte_swap): Likewise.
10596 (MAYBE_SWAP): Likewise.
10597 (dwarf2_per_cu_ptr): Likewise.
10598 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10599 (struct tu_stats): Likewise.
10600 (struct dwarf2_per_objfile): Likewise.
10601 (struct dwarf2_per_cu_data): Likewise.
10602 (struct signatured_type): Likewise.
10603 (sig_type_ptr): Likewise.
10604 (DEF_VEC_P (sig_type_ptr)): Likewise.
10605 (INDEX4_SUFFIX): Likewise.
10606 (INDEX5_SUFFIX): Likewise.
10607 (DEBUG_STR_SUFFIX): Likewise.
10608 (dwarf2_read_section): Make non-static.
10609 (mapped_index_string_hash): Move from here.
10610 (dwarf5_djb_hash): Likewise.
10611 (file_write): Likewise.
10612 (class data_buf): Likewise.
10613 (struct symtab_index_entry): Likewise.
10614 (struct mapped_symtab): Likewise.
10615 (find_slot): Likewise.
10616 (hash_expand): Likewise.
10617 (add_index_entry): Likewise.
10618 (uniquify_cu_indices): Likewise.
10619 (class c_str_view): Likewise.
10620 (class c_str_view_hasher): Likewise.
10621 (class vector_hasher): Likewise.
10622 (write_hash_table): Likewise.
10623 (psym_index_map): Likewise.
10624 (struct addrmap_index_data): Likewise.
10625 (add_address_entry): Likewise.
10626 (add_address_entry_worker): Likewise.
10627 (write_address_map): Likewise.
10628 (symbol_kind): Likewise.
10629 (write_psymbols): Likewise.
10630 (struct signatured_type_index_data): Likewise.
10631 (write_one_signatured_type): Likewise.
10632 (recursively_count_psymbols): Likewise.
10633 (recursively_write_psymbols): Likewise.
10634 (class debug_names): Likewise.
10635 (check_dwarf64_offsets): Likewise.
10636 (psyms_seen_size): Likewise.
10637 (write_gdbindex): Likewise.
10638 (write_debug_names): Likewise.
10639 (assert_file_size): Likewise.
10640 (write_psymtabs_to_index): Likewise.
10641 (save_gdb_index_command): Likewise.
10642 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10643 command.
10644 * dwarf2read.h: New file.
10645
10646 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10647
10648 PR gdb/22670
10649 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10650 symbol name if the CU's language stores symbol names in linkage
10651 format.
10652 * language.h (struct language_defn)
10653 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10654 all instances of this struct.
10655
10656 2018-03-26 Tom Tromey <tom@tromey.com>
10657
10658 * stack.c (backtrace_command_1): Remove verbose code.
10659
10660 2018-03-26 Tom Tromey <tom@tromey.com>
10661
10662 * python/py-framefilter.c (py_print_type): Don't catch
10663 exceptions. Return void.
10664 (py_print_value): Likewise.
10665 (py_print_single_arg): Likewise.
10666 (enumerate_args): Don't catch exceptions.
10667 (py_print_args): Likewise.
10668 (py_print_frame): Likewise.
10669 (gdbpy_apply_frame_filter): Catch exceptions here.
10670
10671 2018-03-26 Tom Tromey <tom@tromey.com>
10672
10673 * stack.c (_initialize_stack): Remove trailing newlines from help
10674 text. Add "Usage" line to "backtrace" help.
10675
10676 2018-03-26 Tom Tromey <tom@tromey.com>
10677
10678 PR python/16486:
10679 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10680
10681 2018-03-26 Tom Tromey <tom@tromey.com>
10682
10683 * python/py-framefilter.c (py_print_single_arg): Return
10684 EXT_LANG_BT_ERROR from catch.
10685
10686 2018-03-26 Tom Tromey <tom@tromey.com>
10687
10688 PR backtrace/15584:
10689 * stack.c (backtrace_command_1): Move some code into no-filters
10690 "if".
10691
10692 2018-03-26 Tom Tromey <tom@tromey.com>
10693
10694 * python/py-framefilter.c (throw_quit_or_print_exception): New
10695 function.
10696 (gdbpy_apply_frame_filter): Use it.
10697
10698 2018-03-26 Tom Tromey <tom@tromey.com>
10699
10700 PR cli/17716:
10701 * python/py-framefilter.c (py_print_type, py_print_value)
10702 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10703 RETURN_MASK_ERROR.
10704
10705 2018-03-26 Tom Tromey <tom@tromey.com>
10706
10707 * python/py-framefilter.c (enumerate_args): Use
10708 gdb::unique_xmalloc_ptr.
10709
10710 2018-03-26 Tom Tromey <tom@tromey.com>
10711
10712 * python/py-framefilter.c (py_print_frame): Return
10713 EXT_LANG_BT_OK.
10714 (gdbpy_apply_frame_filter): Update comment.
10715 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10716 Remove.
10717 <EXT_LANG_BT_NO_FILTERS>: Change value.
10718
10719 2018-03-26 Tom Tromey <tom@tromey.com>
10720
10721 PR backtrace/15582:
10722 * stack.c (backtrace_command): Parse "hide" argument.
10723 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10724 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10725 constant.
10726
10727 2018-03-26 Tom Tromey <tom@tromey.com>
10728
10729 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10730 add "flags".
10731 (backtrace_command): Remove "fulltrace", add "flags".
10732
10733 2018-03-26 Tom Tromey <tom@tromey.com>
10734
10735 * stack.c (backtrace_command): Rewrite command line parsing.
10736
10737 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10738
10739 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10740
10741 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10742
10743 * filename-seen-cache.h: Add include guard.
10744
10745 2018-03-26 Keith Seitz <keiths@redhat.com>
10746
10747 * symfile.c (place_section): Remove "struct" from section_addr_info
10748 in comment.
10749 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10750 "struct" keyword from section_addr_info.
10751
10752 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10753
10754 * regformats/regdef.h (reg): Add constructors.
10755
10756 2018-03-25 Pedro Alves <palves@redhat.com>
10757
10758 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10759 if then/else bodies in var_func_name extraction.
10760
10761 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10762
10763 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10764 lookup_minimal_symbol() to find symbol entry.
10765 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10766
10767 2018-03-23 Keith Seitz <keiths@redhat.com>
10768
10769 PR c++/22968
10770 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10771 nested type definitions for C++, too.
10772
10773 2018-03-23 Tom Tromey <tom@tromey.com>
10774
10775 * machoread.c (struct oso_el): Add a constructor. Don't define as
10776 a typedef.
10777 (macho_register_oso): Remove.
10778 (macho_symtab_read): Take a std::vector.
10779 (oso_el_compare_name): Now a std::sort comparator.
10780 (macho_symfile_read_all_oso): Take a std::vector.
10781 (macho_symfile_read): Use std::vector. Remove cleanups.
10782
10783 2018-03-22 Tom Tromey <tom@tromey.com>
10784
10785 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10786 (record_full_goto_bookmark): Use std::string.
10787
10788 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10789
10790 PR tdep/18295
10791 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10792 a single mask.
10793
10794 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10795
10796 * rs6000-tdep.c (store_insn_p): New function.
10797 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10798 and cr_reg to their unshifted values. Use store_insn_p to
10799 match LR saves using either R1 or fdata->alloca_reg. Use
10800 store_insn_p to match CR saves. Set alloca_reg_offset
10801 when alloca_reg and framep are set. Remove lr_reg shift
10802 when assigning to fdata->lr_register.
10803
10804 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10805
10806 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10807 command line args instead of emitting a warning.
10808
10809 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10810
10811 * tracepoint.h (struct static_tracepoint_marker): Initialize
10812 fields, define default constructor, move constructor and move
10813 assignment, disable the rest.
10814 <str_id, extra>: Make std::string.
10815 (release_static_tracepoint_marker): Remove.
10816 (free_current_marker): Remove.
10817 * tracepoint.c (free_current_marker): Remove.
10818 (parse_static_tracepoint_marker_definition): Adjust to
10819 std::string, use new hex2str overload.
10820 (release_static_tracepoint_marker): Remove.
10821 (print_one_static_tracepoint_marker): Get marker by reference
10822 and adjust to std::string.
10823 (info_static_tracepoint_markers_command): Adjust to std::vector
10824 changes
10825 * target.h (static_tracepoint_marker_p): Remove typedef.
10826 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10827 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10828 bool.
10829 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10830 * target-debug.h
10831 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10832 (target_debug_print_std_vector_static_tracepoint_marker): New.
10833 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10834 to...
10835 (target_debug_print_static_tracepoint_marker_p): ... this.
10836 * target-delegates.c: Re-generate.
10837 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10838 Make std::string.
10839 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10840 (decode_static_tracepoint_spec): Adjust to std::vector.
10841 (tracepoint_print_one_detail): Adjust to std::string.
10842 (strace_marker_decode_location): Adjust to std::string.
10843 (update_static_tracepoint): Adjust to std::string, remove call
10844 to release_static_tracepoint_marker.
10845 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10846 Adjust to std::vector.
10847 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10848 (remote_static_tracepoint_markers_by_strid): Adjust to
10849 std::vector.
10850 * common/rsp-low.h (hex2str): New overload with explicit count
10851 of bytes.
10852 * common/rsp-low.c (hex2str): New overload with explicit count
10853 of bytes.
10854 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10855 (_initialize_rsp_low_selftests): Add test_hex2str test.
10856 * unittests/tracepoint-selftests.c
10857 (test_parse_static_tracepoint_marker_definition): Adjust to
10858 std::string.
10859
10860 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10861
10862 * tracepoint.c (parse_static_tracepoint_marker_definition):
10863 Consider case where the definition is followed by more
10864 definitions.
10865 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10866 tracepoint-selftests.c.
10867 * unittests/tracepoint-selftests.c: New.
10868
10869 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10870
10871 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10872 Carvalho.
10873
10874 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10875
10876 * symtab.c (find_pc_sect_line): fixed indentation.
10877
10878 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10879
10880 * symtab.c (find_pc_sect_line): now uses binary search.
10881
10882 2018-03-19 Tom Tromey <tom@tromey.com>
10883
10884 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10885 "IDENT" production.
10886
10887 2018-03-19 Pedro Alves <palves@redhat.com>
10888 Tom Tromey <tom@tromey.com>
10889
10890 * unittests/observable-selftests.c: New file.
10891 * common/observable.h: New file.
10892 * observable.h: New file.
10893 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10894 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10895 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10896 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10897 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10898 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10899 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10900 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10901 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10902 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10903 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10904 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10905 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10906 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10907 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10908 tui/tui-interp.c, valops.c: Update all users.
10909 * tui/tui-hooks.c (tui_bp_created_observer)
10910 (tui_bp_deleted_observer, tui_bp_modified_observer)
10911 (tui_inferior_exit_observer, tui_before_prompt_observer)
10912 (tui_normal_stop_observer, tui_register_changed_observer):
10913 Remove.
10914 (tui_observers_token): New global.
10915 (attach_or_detach, tui_attach_detach_observers): New functions.
10916 (tui_install_hooks, tui_remove_hooks): Use
10917 tui_attach_detach_observers.
10918 * record-btrace.c (record_btrace_thread_observer): Remove.
10919 (record_btrace_thread_observer_token): New global.
10920 * observer.sh: Remove.
10921 * observer.c: Rename to observable.c.
10922 * observable.c (namespace gdb_observers): Define new objects.
10923 (observer_debug): Move into gdb_observers namespace.
10924 (struct observer, struct observer_list, xalloc_observer_list_node)
10925 (xfree_observer_list_node, generic_observer_attach)
10926 (generic_observer_detach, generic_observer_notify): Remove.
10927 (_initialize_observer): Update.
10928 Don't include observer.inc.
10929 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10930 (clean mostlyclean): Likewise.
10931 (observer.h, observer.inc): Remove targets.
10932 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10933 (COMMON_SFILES): Use observable.c, not observer.c.
10934 * .gitignore: Remove observer.h.
10935
10936 2018-03-18 Tom Tromey <tom@tromey.com>
10937
10938 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10939 gdb::def_vector.
10940 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10941
10942 2018-03-17 Tom Tromey <tom@tromey.com>
10943
10944 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10945
10946 2018-03-17 Tom Tromey <tom@tromey.com>
10947
10948 * target.c (class scoped_target_fd): New.
10949 (target_fileio_close_cleanup): Remove.
10950 (target_fileio_read_alloc_1): Use scoped_target_fd.
10951
10952 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10953
10954 * silent-rules.mk: New.
10955 * Makefile.in: Include silent-rules.mk
10956 (srcdir, VPATH, top_srcdir): Move up.
10957 (COMPILE): Add ECHO_CXX.
10958 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10959 (init.c): Add ECHO_INIT_C.
10960 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10961 (version.c): Add ECHO_GEN.
10962 (printcmd.o): Add ECHO_CXX.
10963 (target-float.o): Add ECHO_CXX.
10964 (ada-exp.o): Add ECHO_CXX.
10965 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10966 (insight$(EXEEXT)): Add ECHO_CXXLD.
10967 * gnulib/configure.ac: Add AM_SILENT_RULES.
10968 * gnulib/aclocal.m4: Re-generate.
10969 * gnulib/configure: Re-generate.
10970 * gnulib/import/Makefile.in: Re-generate.
10971
10972 2018-03-16 Tom Tromey <tom@tromey.com>
10973
10974 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10975 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10976 * utils.c (do_free_section_addr_info)
10977 (make_cleanup_free_section_addr_info): Remove.
10978 * symfile.h (struct other_sections): Add constructor.
10979 (struct section_addr_info): Remove.
10980 (section_addr_info): New typedef.
10981 (struct sym_fns) <sym_offsets>: Change type of parameter.
10982 (build_section_addr_info_from_objfile)
10983 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10984 (default_symfile_offsets, symbol_file_add)
10985 (symbol_file_add_from_bfd)
10986 (build_section_addr_info_from_section_table): Update.
10987 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10988 * symfile.c (alloc_section_addr_info): Remove.
10989 (build_section_addr_info_from_section_table): Change return type.
10990 Update.
10991 (build_section_addr_info_from_bfd)
10992 (build_section_addr_info_from_objfile): Likewise.
10993 (free_section_addr_info): Remove.
10994 (relative_addr_info_to_section_offsets): Change type of "addrs".
10995 (addrs_section_compar): Now a std::sort comparator.
10996 (addrs_section_sort): Change return type.
10997 (addr_info_make_relative): Change type of "addrs". Update.
10998 (default_symfile_offsets, syms_from_objfile_1)
10999 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11000 (symbol_file_add_separate): Update.
11001 (symbol_file_add): Change type of "addrs". Update.
11002 (add_symbol_file_command): Update. Remove cleanups.
11003 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11004 cleanups.
11005 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11006 * solib.c (solib_read_symbols): Update.
11007 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11008 * machoread.c (macho_symfile_offsets): Update.
11009 * jit.c (jit_bfd_try_read_symtab): Update.
11010
11011 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11012
11013 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11014 unittests/utils-selftests.c.
11015 * unittests/utils-selftests.c: New file.
11016
11017 2018-03-14 Tom Tromey <tom@tromey.com>
11018
11019 PR cli/14977:
11020 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11021 for NULL.
11022
11023 2018-03-14 Tom Tromey <tom@tromey.com>
11024
11025 PR cli/19918:
11026 * printcmd.c (printf_pointer): Allow "-" in format.
11027
11028 2018-03-14 Tom Tromey <tom@tromey.com>
11029
11030 * printcmd.c (_initialize_printcmd): Add usage to printf.
11031
11032 2018-03-14 Yao Qi <qiyao@sourceware.org>
11033
11034 * MAINTAINERS: Update my email address.
11035
11036 2018-03-13 Tom Tromey <tom@tromey.com>
11037
11038 * machoread.c (macho_check_dsym): Change filenamep to a
11039 std::string*.
11040 (macho_symfile_read): Update.
11041 * symfile.c (load_command): Use std::string.
11042
11043 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11044
11045 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11046 to error message string.
11047 (riscv_register_name): Use xsnprintf instead of sprintf.
11048 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11049 internal_error.
11050 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11051 error.
11052 (riscv_push_dummy_call): Likewise.
11053
11054 2018-03-12 Tom Tromey <tom@tromey.com>
11055
11056 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11057 Use gdb::byte_vector.
11058 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11059
11060 2018-03-12 Yao Qi <yao.qi@linaro.org>
11061
11062 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11063 parameter type to readable_regcache.
11064 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11065 the declaration.
11066
11067 2018-03-11 Tom Tromey <tom@tromey.com>
11068
11069 * dwarf2read.c (struct nextfield): Add initializers.
11070 (struct nextfnfield): Remove.
11071 (struct fnfieldlist): Add initializers. Remove "length" and
11072 "head", use std::vector.
11073 (struct decl_field_list): Remove.
11074 (struct field_info): Add initializers.
11075 <fields, baseclasses>: Now std::vector.
11076 <nbaseclasses, nfnfields, typedef_field_list_count,
11077 nested_types_list_count>: Remove.
11078 (dwarf2_add_field, dwarf2_add_type_defn)
11079 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11080 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11081 (process_structure_scope): Update.
11082
11083 2018-03-11 Tom Tromey <tom@tromey.com>
11084
11085 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11086 for use by std::sort.
11087 (build_type_psymtabs_1): Use std::vector.
11088
11089 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11090
11091 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11092 and LIBMPFR in the printed configuration.
11093
11094 2018-03-08 Tom Tromey <tom@tromey.com>
11095
11096 * source.c (get_filename_and_charpos): Use scoped_fd.
11097 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11098 (procfs_pidlist): Likewise.
11099 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11100 (iterate_over_mappings): Likewise.
11101
11102 2018-03-08 Tom Tromey <tom@tromey.com>
11103
11104 * infcall.c (struct call_return_meta_info)
11105 <stack_temporaries_enabled>: Remove.
11106 (get_call_return_value, call_function_by_hand_dummy): Update.
11107 * thread.c (disable_thread_stack_temporaries): Remove.
11108 (enable_thread_stack_temporaries): Remove.
11109 (thread_stack_temporaries_enabled_p): Return bool.
11110 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11111 (get_last_thread_stack_temporary): Update.
11112 * eval.c (evaluate_subexp): Update.
11113 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11114 class, not a function.
11115 (value_ptr, value_vec): Remove typedefs.
11116 (class thread_info) <stack_temporaries_enabled>: Now bool.
11117 <stack_temporaries>: Now a std::vector.
11118 (thread_stack_temporaries_enabled_p)
11119 (value_in_thread_stack_temporaries): Return bool.
11120
11121 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11122
11123 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11124 (getpkt_or_notif_sane_1): Likewise.
11125
11126 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11127
11128 * build-id.c (build_id_to_debug_bfd): Use std::string.
11129
11130 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11131
11132 * build-id.c (find_separate_debug_file_by_buildid): Return
11133 std::string.
11134 * build-id.h (find_separate_debug_file_by_buildid): Return
11135 std::string.
11136 * coffread.c (coff_symfile_read): Adjust to std::string.
11137 * elfread.c (elf_symfile_read): Adjust to std::string.
11138 * symfile.c (separate_debug_file_exists): Change parameter to
11139 std::string.
11140 (find_separate_debug_file): Return std::string.
11141 (find_separate_debug_file_by_debuglink): Return std::string.
11142 * symfile.h (find_separate_debug_file_by_debuglink): Return
11143 std::string.
11144
11145 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11146
11147 * common/xml-utils.c (xml_escape_text): Move code to...
11148 (xml_escape_text_append): ... this new function.
11149 * common/xml-utils.h (xml_escape_text_append): New declaration.
11150 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11151 New function.
11152 (_initialize_xml_utils): register test_xml_escape_text_append as
11153 a selftest.
11154
11155 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11156
11157 * defs.h: Remove MAX_REGISTER_SIZE.
11158 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11159 asserts.
11160 * python/py-unwind.c (pyuw_sniffer): Likewise.
11161
11162 2018-03-07 Tom Tromey <tom@tromey.com>
11163
11164 * linux-tdep.c (linux_info_proc): Update.
11165 * target.h (struct target_ops) <to_fileio_readlink>: Return
11166 optional<string>.
11167 (target_fileio_readlink): Return optional<string>.
11168 * remote.c (remote_hostio_readlink): Return optional<string>.
11169 * inf-child.c (inf_child_fileio_readlink): Return
11170 optional<string>.
11171 * target.c (target_fileio_readlink): Return optional<string>.
11172
11173 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11174
11175 * regcache.c (cooked_read_test): Add riscv to the list of
11176 architectures that have a save_reggroup.
11177
11178 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11179
11180 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11181 value is not a dynamic class object.
11182
11183 2018-03-06 Tom Tromey <tom@tromey.com>
11184
11185 * rust-exp.y: Formatting fixes.
11186
11187 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11188
11189 * riscv-tdep.c (riscv_register_name): Remove target description
11190 support.
11191 (riscv_gdbarch_init): Remove target description check.
11192
11193 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11194
11195 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11196 comment.
11197 * riscv-tdep.h: Likewise.
11198
11199 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11200
11201 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11202 (riscv_pseudo_register_write): Delete.
11203 (riscv_gdbarch_init): Remove all use of pseudo registers.
11204
11205 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11206
11207 * record-btrace.c (btrace_print_lines): Replace cleanup
11208 parameter with RAII equivalents.
11209 (btrace_insn_history): Replace cleanup with RAII equivalents.
11210 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11211 make_cleanup_ui_out_tuple_begin_end): Remove.
11212 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11213 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11214 make_cleanup_ui_out_list_begin_end): Remove.
11215
11216 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11217
11218 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11219 parameter types to std::vector. Use bool.
11220 (record_btrace_wait): Replace VEC(tp_t) with
11221 std::vector<thread_info *>.
11222 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11223
11224 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11225
11226 * record-btrace.c (record_btrace_disable_callback): Remove.
11227 (struct scoped_btrace_disable): New.
11228 (record_btrace_open): Use scoped_btrace_disable.
11229
11230 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11231
11232 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11233 reading values from registers.
11234
11235 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11236
11237 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11238 where appropriate.
11239
11240 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11241
11242 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11243 change parameter type. Use GDB's print functions, and use
11244 core_addr_to_string where appropriate.
11245 (riscv_push_dummy_call): Use core_addr_to_string where
11246 appropriate, update call to riscv_print_arg_location, and reindent
11247 a few lines.
11248 (riscv_return_value): Update call to riscv_print_arg_location.
11249
11250 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11251 Tim Newsome <tim@sifive.com>
11252 Albert Ou <a0u@eecs.berkeley.edu>
11253 Darius Rad <darius@bluespec.com>
11254
11255 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11256 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11257 (ALLDEPFILES): Add riscv-tdep.c
11258 * configure.tgt: Add riscv support.
11259 * riscv-tdep.c: New file.
11260 * riscv-tdep.h: New file.
11261 * NEWS: Mention new target.
11262 * MAINTAINERS: Add entry for riscv.
11263
11264 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11265
11266 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11267 fields within aggregates.
11268
11269 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11270
11271 * record-btrace.c (btrace_print_lines): Change type of flags to
11272 gdb_disassembly_flags.
11273
11274 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11275
11276 * fbsd-nat.c: Include "inf-ptrace.h".
11277 (USE_SIGTRAP_SIGINFO): Conditionally define.
11278 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11279 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11280 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11281 function.
11282 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11283 Likewise.
11284 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11285 Likewise.
11286 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11287 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11288 "supports_stopped_by_hw_breakpoint" target methods.
11289
11290 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11291
11292 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11293 * fbsd-nat.c (debug_fbsd_nat): New variable.
11294 (show_fbsd_nat_debug): New function.
11295 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11296 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11297
11298 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11299
11300 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11301 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11302 prototype.
11303 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11304 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11305 method.
11306
11307 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11308
11309 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11310 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11311
11312 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11313
11314 * charset.c (struct charset_vector): New.
11315 (charsets): Change type to charset_vector.
11316 (find_charset_names): Adjust.
11317 (add_one): Adjust.
11318 (_initialize_charset): Adjust.
11319
11320 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11321
11322 * progspace.h (struct program_space) <deleted_solibs>: Change
11323 type to std::vector<std::string>.
11324 * progspace.c (clear_program_space_solib_cache): Adjust.
11325 * breakpoint.c (print_solib_event): Adjust.
11326 (check_status_catch_solib): Adjust.
11327 * solib.c (update_solib_list): Adjust.
11328 * ui-out.h (class ui_out) <field_string>: New overload.
11329 * ui-out.c (ui_out::field_string): New overload.
11330
11331 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11332
11333 * progspace.h (struct program_space): Add constructor and
11334 destructor, initialize fields.
11335 (add_program_space): Remove.
11336 * progspace.c (add_program_space): Rename to...
11337 (program_space::program_space): ... this.
11338 (release_program_space): Rename to...
11339 (program_space::~program_space): ... this.
11340 (delete_program_space): Use delete to delete program_space.
11341 (initialize_progspace): Use new to allocate program_space.
11342 * inferior.c (add_inferior_with_spaces): Likewise.
11343 (clone_inferior_command): Likewise.
11344 * infrun.c (follow_fork_inferior): Likewise.
11345 (handle_vfork_child_exec_or_exit): Likewise.
11346
11347 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11348
11349 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11350 (delim_string_to_char_ptr_vec): Return std::vector of
11351 gdb::unique_xmalloc_ptr.
11352 (dirnames_to_char_ptr_vec_append): Take std::vector of
11353 gdb::unique_xmalloc_ptr.
11354 (dirnames_to_char_ptr_vec): Return std::vector of
11355 gdb::unique_xmalloc_ptr.
11356 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11357 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11358 (delim_string_to_char_ptr_vec): Return an std::vector of
11359 gdb::unique_xmalloc_ptr, adjust the code.
11360 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11361 gdb::unique_xmalloc_ptr, adjust the code.
11362 (dirnames_to_char_ptr_vec): Return an std::vector of
11363 gdb::unique_xmalloc_ptr, adjust the code.
11364 * auto-load.c (auto_load_safe_path_vec): Change type to
11365 std::vector of gdb::unique_xmalloc_ptr.
11366 (auto_load_expand_dir_vars): Return an std::vector of
11367 gdb::unique_xmalloc_ptr, adjust the code.
11368 (auto_load_safe_path_vec_update): Adjust.
11369 (filename_is_in_auto_load_safe_path_vec): Adjust.
11370 (auto_load_objfile_script_1): Adjust.
11371 * build-id.c (build_id_to_debug_bfd): Adjust.
11372 * linux-thread-db.c (thread_db_load_search): Adjust.
11373 * source.c (add_path): Adjust.
11374 (openp): Adjust.
11375 * symfile.c (find_separate_debug_file): Adjust.
11376 * utils.c (do_free_char_ptr_vec): Remove.
11377 (make_cleanup_free_char_ptr_vec): Remove.
11378
11379 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11380
11381 PR gdb/22907
11382 * common/pathstuff.c: Conditionally include "<windows.h>".
11383
11384 2018-03-01 Georg Sauthoff <mail@georg.so>
11385
11386 PR gdb/22888
11387 * gcore.in: Quote variables and switch interpreter to bash.
11388
11389 2018-03-01 Tom Tromey <tom@tromey.com>
11390
11391 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11392 assertion. Add assertion for discriminant_index.
11393 (quirk_rust_enum): Use correct base type name in univariant case.
11394
11395 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11396
11397 * record.c (get_call_history_modifiers): Return a
11398 record_print_flags.
11399 (cmd_record_call_history): Adjust.
11400 * record-btrace.c (record_btrace_call_history): Adjust.
11401 (record_btrace_call_history_range): Adjust.
11402 (record_btrace_call_history_from): Adjust.
11403 * target-debug.h (target_debug_print_record_print_flags): New.
11404 * target-delegates.c: Re-generate.
11405 * target.c (target_call_history): Change flags type.
11406 (target_call_history_from): Likewise.
11407 (target_call_history_range): Likewise.
11408 * target.h (struct target_ops) <target_call_history>: Likewise.
11409 (target_call_history_from): Likewise.
11410 (target_call_history_range): Likewise.
11411
11412 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11413 Simon Marchi <simon.marchi@polymtl.ca>
11414
11415 * common/common-utils.c: Include "sys/stat.h".
11416 (is_regular_file): Move here from "source.c"; change return
11417 type to "bool".
11418 * common/common-utils.h (is_regular_file): New prototype.
11419 * common/pathstuff.c (contains_dir_separator): New function.
11420 * common/pathstuff.h (contains_dir_separator): New prototype.
11421 * source.c: Don't include "sys/stat.h".
11422 (is_regular_file): Move to "common/common-utils.c".
11423
11424 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11425
11426 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11427 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11428 * auto-load.c: Include "common/pathstuff.h".
11429 * common/common-def.h (current_directory): Move here.
11430 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11431 function.
11432 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11433 prototype.
11434 * common/pathstuff.c: New file.
11435 * common/pathstuff.h: New file.
11436 * compile/compile.c: Include "common/pathstuff.h".
11437 * defs.h (current_directory): Move to "common/common-defs.h".
11438 * dwarf2read.c: Include "common/pathstuff.h".
11439 * exec.c: Likewise.
11440 * guile/scm-safe-call.c: Likewise.
11441 * linux-thread-db.c: Likewise.
11442 * main.c: Likewise.
11443 * nto-tdep.c: Likewise.
11444 * objfiles.c: Likewise.
11445 * source.c: Likewise.
11446 * symtab.c: Likewise.
11447 * utils.c: Include "common/pathstuff.h".
11448 (gdb_realpath): Move to "common/pathstuff.c".
11449 (gdb_realpath_keepfile): Likewise.
11450 (gdb_abspath): Likewise.
11451 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11452 (gdb_realpath_keepfile): Likewise.
11453 (gdb_abspath): Likewise.
11454
11455 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11456
11457 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11458 wildcard process pid for super_resume for kernels with a
11459 specific bug.
11460
11461 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11462
11463 * compile/compile.c (get_args): Add additional comments
11464 explaining function.
11465
11466 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11467 Tom Tromey <tom@tromey.com>
11468
11469 * target.h (memory_write_request_s): Remove typedef. Don't define
11470 VEC.
11471 (target_write_memory_blocks): Change argument to std::vector.
11472 (struct memory_write_request): Add constructor.
11473 * target-memory.c (compare_block_starting_address): Return bool.
11474 Change argument types.
11475 (claim_memory): Change arguments to use std::vector.
11476 (split_regular_and_flash_blocks, blocks_to_erase)
11477 (compute_garbled_blocks): Likewise.
11478 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11479 (target_write_memory_blocks): Change argument to std::vector.
11480 * symfile.c (struct load_section_data): Add constructor and
11481 destructor. Use std::vector for "requests".
11482 (struct load_progress_data): Add initializers.
11483 (load_section_callback): Update. Use "new".
11484 (clear_memory_write_data): Remove.
11485 (generic_load): Update.
11486
11487 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11488
11489 * arch/aarch64.h: Use common/tdesc.h.
11490
11491 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11492
11493 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11494 architecture with a 64-bit ABI.
11495
11496 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11497
11498 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11499 ahead of target description loading.
11500
11501 2018-02-26 Tom Tromey <tom@tromey.com>
11502
11503 * stack.c (backtrace_command_1): Update.
11504 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11505 of "flags".
11506 * python/py-framefilter.c (py_print_frame)
11507 (gdbpy_apply_frame_filter): Change type of "flags".
11508 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11509 of "flags".
11510 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11511 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11512 * extension.h (enum frame_filter_flag): Rename from
11513 frame_filter_flags.
11514 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11515 (apply_ext_lang_frame_filter): Change type of "flags".
11516 * extension.c (apply_ext_lang_frame_filter): Change type of
11517 "flags".
11518 * extension-priv.h (struct extension_language_ops)
11519 <apply_frame_filter>: Change type of "flags".
11520
11521 2018-02-26 Tom Tromey <tom@tromey.com>
11522
11523 PR python/16497:
11524 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11525 off-by-one in py_end computation.
11526 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11527 PRINT_MORE_FRAMES.
11528 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11529 constant.
11530
11531 2018-02-26 Tom Tromey <tom@tromey.com>
11532
11533 * dwarf2read.c (struct variant_field): New.
11534 (struct nextfield) <variant>: New field.
11535 (dwarf2_add_field): Handle DW_TAG_variant_part.
11536 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11537 discriminated union.
11538 (read_structure_type): Handle DW_TAG_variant_part.
11539 (handle_struct_member_die): New function, extracted from
11540 process_structure_scope. Handle DW_TAG_variant.
11541 (process_structure_scope): Handle discriminated unions. Call
11542 handle_struct_member_die.
11543
11544 2018-02-26 Tom Tromey <tom@tromey.com>
11545
11546 * rust-lang.h (rust_last_path_segment): Declare.
11547 * rust-lang.c (rust_last_path_segment): Now public. Change
11548 contract.
11549 (struct disr_info): Remove.
11550 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11551 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11552 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11553 (rust_enum_p, rust_enum_variant): New function.
11554 (rust_underscore_fields): Remove "offset" parameter.
11555 (rust_print_enum): New function.
11556 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11557 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11558 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11559 enums.
11560 (rust_internal_print_type): New function, from rust_print_type.
11561 Remove enum code.
11562 (rust_print_type): Call rust_internal_print_type.
11563 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11564 Update enum handling.
11565 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11566 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11567 (rust_union_quirks): New functions.
11568 (process_full_comp_unit, process_full_type_unit): Call
11569 rust_union_quirks.
11570 (process_structure_scope): Update rust_unions if necessary.
11571
11572 2018-02-26 Tom Tromey <tom@tromey.com>
11573
11574 * value.h (value_union_variant): Declare.
11575 * valops.c (value_union_variant): New function.
11576 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11577 (struct discriminant_info): New.
11578 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11579 enumerator.
11580 (struct main_type) <flag_discriminated_union>: New field.
11581
11582 2018-02-26 Tom Tromey <tom@tromey.com>
11583
11584 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11585 unittests/unpack-selftests.c.
11586 * unittests/unpack-selftests.c: New file.
11587 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11588
11589 2018-02-26 Yao Qi <yao.qi@linaro.org>
11590
11591 * dwarf2read.c (struct partial_die_info) <read>: New method.
11592 (read_partial_die): Remove the declaration.
11593 (load_partial_dies): Update.
11594 (partial_die_info::partial_die_info):
11595 (read_partial_die): Change it to partial_die_info::read.
11596
11597 2018-02-26 Yao Qi <yao.qi@linaro.org>
11598
11599 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11600 (fixup_partial_die): Remove declaration.
11601 (scan_partial_symbols): Update.
11602 (partial_die_parent_scope): Likewise.
11603 (partial_die_full_name): Likewise.
11604 (fixup_partial_die): Change it to partial_die_info::fixup.
11605
11606 2018-02-26 Yao Qi <yao.qi@linaro.org>
11607
11608 * dwarf2read.c (read_partial_die): Update the declaration.
11609 (load_partial_dies): Caller update.
11610 (read_partial_die): Remove one argument abbrev_len.
11611
11612 2018-02-26 Yao Qi <yao.qi@linaro.org>
11613
11614 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11615 assignment operator.
11616 (load_partial_dies): Use ctor and copy ctor.
11617 (read_partial_die): Update.
11618 (dwarf2_cu::find_partial_die): Use ctor.
11619
11620 2018-02-26 Yao Qi <yao.qi@linaro.org>
11621
11622 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11623 (find_partial_die_in_comp_unit): Change it to
11624 dwarf2_cu::find_partial_die.
11625 (find_partial_die): Update.
11626
11627 2018-02-26 Yao Qi <yao.qi@linaro.org>
11628
11629 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11630 is NULL.
11631
11632 2018-02-26 Yao Qi <yao.qi@linaro.org>
11633
11634 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11635
11636 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11637
11638 * arch/amd64.h: Use common/tdesc.h.
11639 * arch/i386.c: Likewise.
11640 * arch/i386.h: Likewise.
11641 * arch/tic6x.c: Likewise.
11642 * arch/tdesc.h: Move file from here...
11643 * common/tdesc.h: ...to here.
11644 * features/aarch64-core.c: Regenerate.
11645 * features/aarch64-fpu.c: Regenerate.
11646 * features/i386/32bit-avx.c: Regenerate.
11647 * features/i386/32bit-avx512.c: Regenerate.
11648 * features/i386/32bit-core.c: Regenerate.
11649 * features/i386/32bit-linux.c: Regenerate.
11650 * features/i386/32bit-mpx.c: Regenerate.
11651 * features/i386/32bit-pkeys.c: Regenerate.
11652 * features/i386/32bit-sse.c: Regenerate.
11653 * features/i386/64bit-avx.c: Regenerate.
11654 * features/i386/64bit-avx512.c: Regenerate.
11655 * features/i386/64bit-core.c: Regenerate.
11656 * features/i386/64bit-linux.c: Regenerate.
11657 * features/i386/64bit-mpx.c: Regenerate.
11658 * features/i386/64bit-pkeys.c: Regenerate.
11659 * features/i386/64bit-segments.c: Regenerate.
11660 * features/i386/64bit-sse.c: Regenerate.
11661 * features/i386/x32-core.c: Regenerate.
11662 * features/tic6x-c6xp.c: Regenerate.
11663 * features/tic6x-core.c: Regenerate.
11664 * features/tic6x-gp.c: Regenerate.
11665 * target-descriptions.c: Use common/tdesc.h.
11666 * target-descriptions.h: Likewise.
11667
11668 2018-02-24 Tom Tromey <tom@tromey.com>
11669
11670 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11671 (try_thread_db_load_from_dir, thread_db_load_search): Use
11672 std::string.
11673 (info_auto_load_libthread_db_compare): Return bool. Change
11674 argument types.
11675 (info_auto_load_libthread_db): Use std::vector, std::string.
11676 Remove cleanups.
11677
11678 2018-02-24 Tom Tromey <tom@tromey.com>
11679
11680 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11681 std::string.
11682 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11683 std::string*.
11684 * gdbarch.c: Rebuild.
11685 * gdbarch.h: Rebuild.
11686 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11687 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11688 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11689 std::string*.
11690
11691 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11692
11693 * gdbtypes.h (sect_offset): Change type to uint64_t.
11694 (sect_offset_str): New function.
11695 * dwarf2read.c (create_addrmap_from_aranges): Use
11696 sect_offset_str.
11697 (error_check_comp_unit_head): Likewise.
11698 (create_debug_type_hash_table): Likewise.
11699 (read_cutu_die_from_dwo): Likewise.
11700 (init_cutu_and_read_dies): Likewise.
11701 (init_cutu_and_read_dies_no_follow): Likewise.
11702 (process_psymtab_comp_unit_reader): Likewise.
11703 (partial_die_parent_scope): Likewise.
11704 (peek_die_abbrev): Likewise.
11705 (process_queue): Likewise.
11706 (dwarf2_physname): Likewise.
11707 (read_namespace_alias): Likewise.
11708 (read_import_statement): Likewise.
11709 (create_dwo_cu_reader): Likewise.
11710 (create_cus_hash_table): Likewise.
11711 (lookup_dwo_cutu): Likewise.
11712 (inherit_abstract_dies): Likewise.
11713 (read_func_scope): Likewise.
11714 (read_call_site_scope): Likewise.
11715 (dwarf2_add_member_fn): Likewise.
11716 (read_common_block): Likewise.
11717 (read_module_type): Likewise.
11718 (read_typedef): Likewise.
11719 (read_subrange_type): Likewise.
11720 (load_partial_dies): Likewise.
11721 (read_partial_die): Likewise.
11722 (find_partial_die): Likewise.
11723 (read_str_index): Likewise.
11724 (dwarf2_string_attr): Likewise.
11725 (build_error_marker_type): Likewise.
11726 (lookup_die_type): Likewise.
11727 (dump_die_shallow): Likewise.
11728 (follow_die_ref): Likewise.
11729 (dwarf2_fetch_die_loc_sect_off): Likewise.
11730 (dwarf2_fetch_constant_bytes): Likewise.
11731 (follow_die_sig): Likewise.
11732 (get_signatured_type): Likewise.
11733 (get_DW_AT_signature_type): Likewise.
11734 (dwarf2_find_containing_comp_unit): Likewise.
11735 (set_die_type): Likewise.
11736
11737 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11738
11739 * arch/aarch64.c: Include "common-defs.h".
11740 * arch/amd64.c: Likewise.
11741 * arch/i386.c: Likewise.
11742
11743 2018-02-21 Tom Tromey <tom@tromey.com>
11744
11745 * value.h: (extract_field_op): Update.
11746 * eval.c (extract_field_op): Return a const char *.
11747 * expression.h (parse_expression_for_completion): Update.
11748 * completer.c (complete_expression): Update.
11749 (add_struct_fields): Make fieldname const.
11750 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11751 (mark_completion_tag, parse_exp_in_context_1): Update.
11752 (parse_expression_for_completion): Change "name" to
11753 unique_xmalloc_ptr*.
11754
11755 2018-02-21 Tom Tromey <tom@tromey.com>
11756
11757 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11758
11759 2018-02-21 Yao Qi <yao.qi@linaro.org>
11760
11761 * avr-tdep.c (avr_read_pc): Change parameter type to
11762 readable_regcache.
11763 * gdbarch.sh (read_pc): Likewise.
11764 * gdbarch.c: Re-generated.
11765 * gdbarch.h: Re-generated.
11766 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11767 readable_regcache.
11768 * ia64-tdep.c (ia64_read_pc): Likewise.
11769 * mips-tdep.c (mips_read_pc): Likewise.
11770 * spu-tdep.c (spu_read_pc): Likewise.
11771
11772 2018-02-21 Yao Qi <yao.qi@linaro.org>
11773
11774 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11775 * regcache-dump.c: New file.
11776 * regcache.c: Move register_dump to regcache-dump.c.
11777 (maintenance_print_registers): Likewise.
11778 (maintenance_print_raw_registers): Likewise.
11779 (maintenance_print_cooked_registers): Likewise.
11780 (maintenance_print_register_groups): Likewise.
11781 (maintenance_print_remote_registers): Likewise.
11782 (_initialize_regcache): Likewise.
11783 * regcache.h (register_dump): Moved from regcache.c.
11784
11785 2018-02-21 Yao Qi <yao.qi@linaro.org>
11786
11787 * regcache.c (regcache::regcache): Update.
11788 (regcache::invalidate): Move it to detached_regcache::invalidate.
11789 (get_thread_arch_aspace_regcache): Update.
11790 (regcache::raw_update): Update.
11791 (regcache::cooked_read): Remove some code.
11792 (regcache::cooked_read_value): Likewise.
11793 (regcache::raw_write): Remove assert on m_readonly_p.
11794 (regcache::raw_supply_integer): Move it to
11795 detached_regcache::raw_supply_integer.
11796 (regcache::raw_supply_zeroed): Likewise.
11797 * regcache.h (detached_regcache) <raw_supply_integer>: New
11798 declaration.
11799 <raw_supply_zeroed, invalidate>: Likewise.
11800 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11801 <invalidate>: Likewise.
11802 <m_readonly_p>: Removed.
11803
11804 2018-02-21 Yao Qi <yao.qi@linaro.org>
11805
11806 * infcmd.c (get_return_value): Let stop_regs point to
11807 get_current_regcache.
11808 * regcache.c (regcache::regcache): Remove.
11809 (register_dump_reg_buffer): New class.
11810 (regcache_print): Adjust.
11811 * regcache.h (regcache): Remove constructors.
11812
11813 2018-02-21 Yao Qi <yao.qi@linaro.org>
11814
11815 * regcache.c (class register_dump): New class.
11816 (register_dump_regcache, register_dump_none): New class.
11817 (register_dump_remote, register_dump_groups): New class.
11818 (regcache_print): Update.
11819 * regcache.h (regcache_dump_what): Move it to regcache.c.
11820 (regcache) <dump>: Remove.
11821
11822 2018-02-21 Yao Qi <yao.qi@linaro.org>
11823
11824 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11825 reg_buffer_rw *.
11826 (jit_unwind_reg_set_impl): Call raw_supply.
11827 (jit_frame_sniffer): Use reg_buffer_rw.
11828 * record-full.c (record_full_core_regbuf): Change its type.
11829 (record_full_core_open_1): Use reg_buffer_rw.
11830 (record_full_close): Likewise.
11831 (record_full_core_fetch_registers): Use regcache->raw_supply.
11832 (record_full_core_store_registers): Likewise.
11833 * regcache.c (regcache::get_register_status): Move it to
11834 reg_buffer.
11835 (regcache_raw_set_cached_value): Remove.
11836 (regcache::raw_set_cached_value): Remove.
11837 (regcache::raw_write): Call raw_supply.
11838 (regcache::raw_supply): Move it to reg_buffer_rw.
11839 * regcache.h (regcache_raw_set_cached_value): Remove.
11840 (reg_buffer_rw): New class.
11841
11842 2018-02-21 Yao Qi <yao.qi@linaro.org>
11843
11844 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11845 readonly_detached_regcache.
11846 (dummy_frame_prev_register): Use regcache->cooked_read.
11847 * frame.c (frame_save_as_regcache): Change return type.
11848 (frame_pop): Update.
11849 * frame.h (frame_save_as_regcache): Update declaration.
11850 * inferior.h (get_infcall_suspend_state_regcache): Update
11851 declaration.
11852 * infrun.c (infcall_suspend_state) <registers>: use
11853 readonly_detached_regcache.
11854 (save_infcall_suspend_state): Don't use regcache_dup.
11855 (get_infcall_suspend_state_regcache): Change return type.
11856 * linux-fork.c (struct fork_info) <savedregs>: Change to
11857 readonly_detached_regcache.
11858 <pc>: New field.
11859 (fork_save_infrun_state): Don't use regcache_dup.
11860 (info_checkpoints_command): Adjust.
11861 * mi/mi-main.c (register_changed_p): Update declaration.
11862 (mi_cmd_data_list_changed_registers): Use
11863 readonly_detached_regcache.
11864 (register_changed_p): Change parameter type to
11865 readonly_detached_regcache.
11866 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11867 readonly_detached_regcache.
11868 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11869 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11870 New.
11871 (regcache::save): Move it to reg_buffer.
11872 (regcache::restore): Change parameter type.
11873 (regcache_dup): Remove.
11874 * regcache.h (reg_buffer) <save>: New method.
11875 (readonly_detached_regcache): New class.
11876 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11877 readonly_detached_regcache.
11878 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11879
11880 2018-02-21 Yao Qi <yao.qi@linaro.org>
11881
11882 * frame.c (frame_save_as_regcache): Use regcache method save.
11883 (frame_pop): Use regcache method restore.
11884 * infrun.c (restore_infcall_suspend_state): Likewise.
11885 * linux-fork.c (fork_load_infrun_state): Likewise.
11886 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11887 save.
11888 * regcache.c (regcache_save): Remove.
11889 (regcache::restore): More asserts.
11890 (regcache_cpy): Remove.
11891 * regcache.h (regcache_save): Remove the declaration.
11892 (regcache::restore): Move from private to public.
11893 Remove the friend declaration of regcache_cpy.
11894 (regcache_cpy): Remove declaration.
11895
11896 2018-02-21 Yao Qi <yao.qi@linaro.org>
11897
11898 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11899 parameter type to 'readable_regcache *'.
11900 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11901 * arm-tdep.c (arm_neon_quad_read): Likewise.
11902 (arm_pseudo_read): Likewise.
11903 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11904 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11905 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11906 * gdbarch.c: Re-generated.
11907 * gdbarch.h: Re-generated.
11908 * gdbarch.sh (pseudo_register_read): Change parameter type to
11909 'readable_regcache *'.
11910 (pseudo_register_read_value): Likewise.
11911 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11912 (h8300_pseudo_register_read): Likewise.
11913 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11914 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11915 (i386_pseudo_register_read_into_value): Likewise.
11916 (i386_pseudo_register_read_value): Likewise.
11917 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11918 declaration.
11919 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11920 * m32c-tdep.c (m32c_raw_read): Likewise.
11921 (m32c_read_flg): Likewise.
11922 (m32c_banked_register): Likewise.
11923 (m32c_banked_read): Likewise.
11924 (m32c_sb_read): Likewise.
11925 (m32c_part_read): Likewise.
11926 (m32c_cat_read): Likewise.
11927 (m32c_r3r2r1r0_read): Likewise.
11928 (m32c_pseudo_register_read): Likewise.
11929 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11930 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11931 (mep_pseudo_cr64_read): Likewise.
11932 (mep_pseudo_register_read): Likewise.
11933 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11934 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11935 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11936 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11937 (regcache::cooked_read): Likewise.
11938 (regcache::cooked_read_value): Likewise.
11939 (regcache_cooked_read_signed):
11940 (regcache::cooked_read): Likewise.
11941 * regcache.h (readable_regcache): New class.
11942 (regcache): Inherit readable_regcache. Move some methods to
11943 readable_regcache.
11944 * rl78-tdep.c (rl78_pseudo_register_read): Change
11945 parameter type to 'readable_regcache *'.
11946 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11947 (e500_pseudo_register_read): Change parameter type to
11948 'readable_regcache *'.
11949 (dfp_pseudo_register_read): Likewise.
11950 (vsx_pseudo_register_read): Likewise.
11951 (efpr_pseudo_register_read): Likewise.
11952 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11953 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11954 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11955 (sh64_pseudo_register_read): Likewise.
11956 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11957 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11958 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11959 (spu_pseudo_register_read): Likewise.
11960 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11961 (xtensa_pseudo_register_read): Likewise.
11962
11963 2018-02-21 Yao Qi <yao.qi@linaro.org>
11964
11965 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11966 (regcache::arch): Move it to reg_buffer::arch.
11967 (regcache::register_buffer): Likewise.
11968 (regcache::assert_regnum): Likewise.
11969 (regcache::num_raw_registers): Likewise.
11970 * regcache.h (reg_buffer): New class.
11971 (regcache): Inherit reg_buffer.
11972
11973 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11974
11975 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11976 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11977
11978 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11979
11980 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11981
11982 2018-02-19 Alan Hayward <alan.hayward@arm.com>
11983
11984 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11985 (SFILES): Remove common/*.c files.
11986 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11987 * common/common.host: Add common reference.
11988 * configure.ac: Likewise.
11989 * configure: Regenerate.
11990
11991 2018-02-16 Yao Qi <yao.qi@linaro.org>
11992
11993 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11994 (block_initialize_namespace): Use new.
11995 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11996 (dwarf2_free_objfile): Use delete.
11997 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11998 (copy_type_recursive): Use new.
11999 * gdb_obstack.h (allocate_on_obstack): New.
12000
12001 2018-02-15 Yao Qi <yao.qi@linaro.org>
12002
12003 PR gdb/22849
12004 * inferior.c (exit_inferior_1): Reset inf->control.
12005
12006 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12007
12008 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12009 declaration.
12010
12011 2018-02-14 Pedro Alves <palves@redhat.com>
12012
12013 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12014 frame_cleanup_after_sniffer on exception.
12015
12016 2018-02-14 Tom Tromey <tom@tromey.com>
12017
12018 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12019 const.
12020 (solib_bfd_open): Make pathname const.
12021 * solib.c (solib_bfd_open): Make pathname const.
12022 * solib-spu.c (spu_bfd_fopen): Make name const.
12023 (spu_bfd_open): Make pathname const.
12024 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12025 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12026
12027 2018-02-14 Tom Tromey <tom@tromey.com>
12028
12029 * symfile.c (symfile_bfd_open): Update.
12030 * source.h (openp, source_full_path_of, find_and_open_source):
12031 Change argument type to unique_xmalloc_ptr.
12032 * source.c (openp): Take a unique_xmalloc_ptr.
12033 (source_full_path_of, find_and_open_source): Likewise.
12034 (open_source_file, symtab_to_fullname): Update.
12035 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12036 unique_xmalloc_ptr.
12037 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12038 (exec_file_find): Update.
12039 * psymtab.c (psymtab_to_fullname): Update.
12040 * nto-tdep.h (nto_find_and_open_solib): Update.
12041 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12042 unique_xmalloc_ptr.
12043 * exec.c (exec_file_attach): Update.
12044 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12045 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12046
12047 2018-02-14 Tom Tromey <tom@tromey.com>
12048
12049 * solib.c: Include source.h.
12050 * nto-tdep.c: Include source.h.
12051 * mi/mi-cmd-env.c: Include source.h.
12052 * infcmd.c: Include source.h.
12053 * exec.c: Include source.h.
12054 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12055 (add_path, directory_switch, source_path, init_source_path): Move
12056 declarations...
12057 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12058 (add_path, directory_switch, source_path, init_source_path):
12059 ...here.
12060
12061 2018-02-14 Tom Tromey <tom@tromey.com>
12062
12063 * solist.h (exec_file_find, solib_find): Return
12064 unique_xmalloc_ptr.
12065 (solib_bfd_fopen): Take a const char *.
12066 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12067 (exec_file_find, solib_find): Likewise.
12068 (solib_bfd_fopen): Do not take ownership of "pathname".
12069 (solib_bfd_open): Use unique_xmalloc_ptr.
12070 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12071 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12072 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12073 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12074
12075 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12076
12077 * ada-lang.c (name_match_type_from_name): Remove reference to
12078 ada_name_for_lookup in function's documentation.
12079 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12080
12081 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12082
12083 * defs.h (enum openp_flags): New enum.
12084 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12085 Move to enum openp_flags.
12086 (openp_flags): New enum flags.
12087 (openp): Change parameter type to openp_flags.
12088 * source.c (openp): Change parameter type to openp_flags.
12089 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12090 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12091
12092 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12093
12094 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12095 per-command.
12096
12097 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12098
12099 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12100 into...
12101 (class dwarf2_queue_guard): ...the destructor of this new class.
12102 (dw2_do_instantiate_symtab): Create instance of the new class
12103 dwarf2_queue_guard, remove cleanup.
12104
12105 2018-02-09 Tom Tromey <tom@tromey.com>
12106
12107 * source.c (find_source_lines): Don't reference past the end of
12108 the vector.
12109
12110 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12111
12112 * remote.c (remote_btrace_maybe_reopen): Change error message.
12113 * btrace.c (btrace_enable): Likewise.
12114 (parse_xml_btrace): Likewise.
12115 (parse_xml_btrace_conf): Likewise.
12116
12117 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12118
12119 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12120 (linux_enable_pt, linux_enable_bts): Call
12121 diagnose_perf_event_open_fail.
12122
12123 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12124
12125 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12126 Remove parameter and change return type. Update callers. Move it.
12127 (linux_enable_bts, linux_enable_pt): Improve error message.
12128 (linux_enable_pt): Remove zero buffer size check.
12129 (linux_enable_btrace): Improve error messages. Remove NULL return
12130 check.
12131
12132 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12133
12134 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12135 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12136 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12137 (linux_supports_pt, linux_supports_btrace): Remove.
12138 (linux_enable_bts): Call cpu_supports_bts.
12139 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12140 * remote.c (remote_supports_btrace): Remove.
12141 (init_remote_ops): Remove remote_supports_btrace.
12142 * target-delegates.c: Regenerated.
12143 * target.c (target_supports_btrace): Remove.
12144 * target.h (target_ops) <to_supports_btrace>: Remove
12145 (target_supports_btrace): Remove.
12146 * x86-linux-nat.c (x86_linux_create_target): Remove
12147 linux_supports_btrace.
12148
12149 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12150
12151 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12152 btrace failed.
12153 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12154 exception and use message in own exception.
12155
12156 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12157
12158 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12159 (perf_event_pt_event_type): Use gdb_file_up.
12160 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12161 scoped_fd, and scoped_mmap.
12162
12163 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12164
12165 * common/scoped_mmap.h: New.
12166 * unittests/scoped_mmap-selftest.c: New.
12167 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12168 unittests/scoped_mmap-selftest.c.
12169
12170 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12171
12172 * common/scoped_fd.h: New.
12173 * unittests/scoped_fd-selftest.c: New.
12174 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12175 unittests/scoped_fd-selftest.c.
12176
12177 2018-02-09 Tom Tromey <tom@tromey.com>
12178
12179 * auto-load.c (auto_load_section_scripts): Use
12180 gdb::unique_xmalloc_ptr.
12181
12182 2018-02-09 Tom Tromey <tom@tromey.com>
12183
12184 * auto-load.c (execute_script_contents): Use std::string.
12185
12186 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12187
12188 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12189 Python function, rather than a new command.
12190
12191 2018-02-08 Tom Tromey <tom@tromey.com>
12192
12193 * solib.c (solib_find_1): Use std::string.
12194 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12195
12196 2018-02-08 Tom Tromey <tom@tromey.com>
12197
12198 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12199
12200 2018-02-08 Tom Tromey <tom@tromey.com>
12201
12202 * source.c (find_source_lines): Use gdb::def_vector.
12203
12204 2018-02-08 Tom Tromey <tom@tromey.com>
12205
12206 * macrocmd.c (struct temporary_macro_definition): New.
12207 (macro_define_command): Use temporary_macro_definition. Remove
12208 cleanups.
12209 (free_macro_definition_ptr): Remove.
12210
12211 2018-02-08 Tom Tromey <tom@tromey.com>
12212
12213 * macroexp.c (maybe_expand): Use std::string.
12214
12215 2018-02-08 Tom Tromey <tom@tromey.com>
12216
12217 * macroexp.c (struct macro_buffer): Add initializers for some
12218 members.
12219 (init_buffer, init_shared_buffer, free_buffer)
12220 (free_buffer_return_text): Remove.
12221 (macro_buffer): New constructors.
12222 (~macro_buffer): New destructor.
12223 (macro_buffer::set_shared): New method.
12224 (macro_buffer::resize_buffer, macro_buffer::appendc)
12225 (macro_buffer::appendmem): Now methods, not free functions.
12226 (set_token, append_tokens_without_splicing, stringify)
12227 (macro_stringify): Update.
12228 (gather_arguments): Change return type. Remove argc_p argument,
12229 add args_ptr argument. Use std::vector.
12230 (substitute_args): Remove argc argument. Accept std::vector.
12231 (expand): Update. Use std::vector.
12232 (scan, macro_expand, macro_expand_next): Update.
12233
12234 2018-02-08 Tom Tromey <tom@tromey.com>
12235
12236 * symtab.c (default_collect_symbol_completion_matches_break_on):
12237 Use unique_xmalloc_ptr.
12238 * macroscope.h: (sal_macro_scope, user_macro_scope)
12239 (default_macro_scope): Return unique_xmalloc_ptr.
12240 * macroscope.c (sal_macro_scope, user_macro_scope)
12241 (default_macro_scope): Return unique_xmalloc_ptr.
12242 * macroexp.h (macro_expand, macro_expand_once): Return
12243 unique_xmalloc_ptr.
12244 * macroexp.c (macro_expand, macro_expand_once): Return
12245 unique_xmalloc_ptr.
12246 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12247 (info_macro_command, info_macros_command): Use
12248 unique_xmalloc_ptr.
12249 * compile/compile-c-support.c (write_macro_definitions): Use
12250 unique_xmalloc_ptr.
12251 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12252
12253 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12254
12255 * value.c (value_static_field): Assign field type instead of
12256 containing type when returning an optimized out value.
12257
12258 2018-02-06 Yao Qi <yao.qi@linaro.org>
12259
12260 * ft32-tdep.c (ft32_read_pc): Remove.
12261 (ft32_write_pc): Remove.
12262 (ft32_gdbarch_init): Update.
12263 * m32r-tdep.c (m32r_read_pc): Remove.
12264 (m32r_gdbarch_init): Update.
12265 * mep-tdep.c (mep_read_pc): Remove.
12266 (mep_gdbarch_init): Update.
12267 * microblaze-tdep.c (microblaze_write_pc): Remove.
12268 (microblaze_gdbarch_init): Update.
12269 * mn10300-tdep.c (mn10300_read_pc): Remove.
12270 (mn10300_write_pc): Remove.
12271 (mn10300_gdbarch_init): Update.
12272 * moxie-tdep.c (moxie_read_pc): Remove.
12273 (moxie_write_pc): Remove.
12274 (moxie_gdbarch_init): Update.
12275
12276 2018-02-06 Yao Qi <yao.qi@linaro.org>
12277
12278 * expprint.c (print_subexp_standard): Handle
12279 OP_F77_UNDETERMINED_ARGLIST.
12280 (dump_subexp_body_standard): Likewise.
12281
12282 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12283
12284 * target-descriptions.c (tdesc_element_visitor) Add empty
12285 implementations.
12286 (tdesc_type): Move make_gdb_type from here.
12287 (tdesc_type_builtin): Likewise.
12288 (tdesc_type_vector): Likewise.
12289 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12290 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12291 (make_gdb_type_union): Likewise.
12292 (make_gdb_type_flags): Likewise.
12293 (make_gdb_type_enum): Likewise.
12294 (make_gdb_type): New function.
12295 (tdesc_register_type): Use static make_gdb_type.
12296
12297 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12298
12299 * infcmd.c (default_print_one_register_info): Align natural-format
12300 column values consistently one under another.
12301 (pad_to_column): New function.
12302
12303 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12304
12305 * dwarf2read.c (dwarf2_physname): Move commment.
12306
12307 2018-02-01 Leszek Swirski <leszeks@google.com>
12308
12309 * varobj.c (varobj_formatted_print_options): Allow recursive
12310 pretty printing if pretty printing is enabled.
12311
12312 2018-02-01 Leszek Swirski <leszeks@google.com>
12313
12314 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12315 names after a structop as a filename.
12316
12317 2018-02-01 Yao Qi <yao.qi@linaro.org>
12318
12319 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12320 (arm_record_coproc_data_proc): Likewise.
12321
12322 2018-02-01 Yao Qi <yao.qi@linaro.org>
12323
12324 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12325
12326 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12327
12328 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12329 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12330
12331 2018-01-31 Pedro Alves <palves@redhat.com>
12332
12333 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12334 * inflow.c (child_terminal_save_inferior): Wrap reference to
12335 tcgetpgrp in HAVE_TERMIOS_H.
12336 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12337 _WIN32.
12338 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12339 always iterate over all inferiors.
12340 (gdbsim_cntrl_c): Adjust.
12341 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12342
12343 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12344
12345 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12346 index type is objfile-owned if the element type is as well.
12347
12348 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12349
12350 GDB 8.1 released.
12351
12352 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12353
12354 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12355 "features/s390x-linux64.c".
12356 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12357 s390_linux32 and s390x_linux64.
12358 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12359 default tdesc.
12360 * s390-tdep.c: Include "features/s390-linux32.c" and
12361 "features/s390x-linux64.c".
12362 (s390_tdesc_valid): Add check for tdesc_has_registers.
12363 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12364 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12365 tdesc_s390x_linux64.
12366 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12367 tdesc_s390x_linux64 to...
12368 * s390-tdep.h: ...here.
12369
12370 2018-01-30 Pedro Alves <palves@redhat.com>
12371
12372 PR gdb/13211
12373 * config.in, configure: Regenerate.
12374 * configure.ac: Check for getpgid.
12375 * go32-nat.c (go32_pass_ctrlc): New.
12376 (go32_target): Install it.
12377 * inf-child.c (inf_child_target): Install
12378 child_terminal_save_inferior, child_pass_ctrlc and
12379 child_interrupt.
12380 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12381 (inf_ptrace_target): No longer install it.
12382 * infcmd.c (interrupt_target_1): Adjust.
12383 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12384 (child_interrupt): Declare.
12385 (inferior::terminal_state): New.
12386 * inflow.c (struct terminal_info): Update comments.
12387 (inferior_process_group): Delete.
12388 (terminal_is_ours): Delete.
12389 (gdb_tty_state): New.
12390 (child_terminal_init): Adjust.
12391 (is_gdb_terminal, sharing_input_terminal_1)
12392 (sharing_input_terminal): New functions.
12393 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12394 Set the process's actual process group in the foreground if
12395 possible. Handle is_ours_for_output/is_ours distinction. Don't
12396 mark terminal as the inferior's if not sharing GDB's terminal.
12397 Don't check attach_flag.
12398 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12399 pass down a target_terminal_state.
12400 (child_terminal_save_inferior): New, factored out from ...
12401 (child_terminal_ours_1): ... this. Handle
12402 target_terminal_state::is_ours_for_output.
12403 (child_interrupt, child_pass_ctrlc): New.
12404 (inflow_inferior_exit): Clear the inferior's terminal_state.
12405 (copy_terminal_info): Copy the inferior's terminal state.
12406 (_initialize_inflow): Remove reference to terminal_is_ours.
12407 * inflow.h (inferior_process_group): Delete.
12408 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12409 * procfs.c (procfs_target): Don't install procfs_interrupt.
12410 (procfs_interrupt): Delete.
12411 * remote.c (remote_serial_quit_handler): Adjust.
12412 (remote_interrupt): Remove ptid parameter. Adjust.
12413 * target-delegates.c: Regenerate.
12414 * target.c: Include "terminal.h".
12415 (target_terminal::terminal_state): Rename to ...
12416 (target_terminal::m_terminal_state): ... this.
12417 (target_terminal::init): Adjust.
12418 (target_terminal::inferior): Adjust to per-inferior
12419 terminal_state.
12420 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12421 (target_terminal::ours, target_terminal::ours_for_output): Use
12422 target_terminal_is_ours_kind.
12423 (target_interrupt): Remove ptid parameter. Adjust.
12424 (default_target_pass_ctrlc): Adjust.
12425 * target.h (target_ops::to_terminal_save_inferior): New field.
12426 (target_ops::to_interrupt): Remove ptid_t parameter.
12427 (target_interrupt): Remove ptid_t parameter. Update comment.
12428 (target_pass_ctrlc): Update comment.
12429 * target/target.h (target_terminal_state): New scoped enum,
12430 factored out of ...
12431 (target_terminal::terminal_state): ... here.
12432 (target_terminal::inferior): Update comments.
12433 (target_terminal::restore_inferior): New.
12434 (target_terminal::is_inferior, target_terminal::is_ours)
12435 (target_terminal::is_ours_for_output): Adjust.
12436 (target_terminal::scoped_restore_terminal_state): Adjust to
12437 rename, and call restore_inferior() instead of inferior().
12438 (target_terminal::scoped_restore_terminal_state::m_state): Change
12439 type.
12440 (target_terminal::terminal_state): Rename to ...
12441 (target_terminal::m_terminal_state): ... this and change type.
12442
12443 2018-01-30 Pedro Alves <palves@redhat.com>
12444
12445 * linux-nat.c (wait_for_signal): New function.
12446 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12447 directly.
12448 (async_terminal_is_ours)
12449 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12450 (linux_nat_add_target): Don't override
12451 to_terminal_inferior/to_terminal_ours.
12452
12453 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12454
12455 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12456
12457 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12458
12459 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12460 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12461 dwarf2_per_objfile_free here.
12462 (dwarf2_per_objfile_free): Remove.
12463 (_initialize_dwarf2_read): Don't register
12464 dwarf2_per_objfile_free as a registry cleanup.
12465
12466 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12467
12468 Avoid compilation errors in MinGW native builds
12469
12470 The error is triggered by including python-internal.h, and the
12471 error message is:
12472
12473 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12474 from build-gnulib/import/math.h:27,
12475 from d:/usr/Python26/include/pyport.h:235,
12476 from d:/usr/Python26/include/Python.h:58,
12477 from python/python-internal.h:94,
12478 from python/py-arch.c:24:
12479 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12480 using ::hypot;
12481 ^~~~~
12482
12483 This happens because Python headers define 'hypot' to expand t
12484 '_hypot' in the Windows builds.
12485 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12486 'hypoth'. This avoids a compilation error.
12487
12488 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12489
12490 * MAINTAINERS (Write After Approval): Fix ordering.
12491
12492 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12493
12494 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12495
12496 2018-01-26 Alan Modra <amodra@gmail.com>
12497
12498 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12499 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12500 Remove nop. Make const. Comment.
12501 (powerpc32_plt_stub_so_2): New.
12502 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12503 Correct count. Update uses.
12504 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12505 Move common code reading PLT entry word. Correct
12506 powerpc32_plt_stub PLT address calculation.
12507 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12508 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12509 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12510 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12511 (ppc64_standard_linkage8): Likewise.
12512 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12513 Correct insns description.
12514 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12515
12516 2018-01-24 Pedro Alves <palves@redhat.com>
12517
12518 GCC PR libstdc++/83906
12519 * gdbtypes.c (operator==(const dynamic_prop &,
12520 const dynamic_prop &)): New.
12521 (operator==(const range_bounds &, const range_bounds &)): New.
12522 (check_types_equal): Use them instead of memcmp.
12523 * gdbtypes.h (operator==(const dynamic_prop &,
12524 const dynamic_prop &)): Declare.
12525 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12526 (operator==(const range_bounds &, const range_bounds &)): Declare.
12527 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12528
12529 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12530
12531 * s390-linux-tdep.c (s390_record_address_mask)
12532 (s390_record_calc_disp_common, s390_record_calc_disp)
12533 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12534 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12535 (s390_process_record): Move to s390-tdep.c.
12536 (s390_linux_init_abi_any): Adjust.
12537 * s390-tdep.c (s390_record_address_mask)
12538 (s390_record_calc_disp_common, s390_record_calc_disp)
12539 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12540 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12541 (s390_process_record): Moved from s390-linux-tdep.c
12542 (s390_gdbarch_init): Adjust.
12543
12544 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12545
12546 * s390-linux-nat.c (s390-tdep.h): New include.
12547 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12548 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12549 (ALLDEPFILES): Add s390-tdep.c.
12550 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12551 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12552 * s390-tdep.h: ...this. New file.
12553 * s390-linux-tdep.c (s390-tdep.h): New include.
12554 (_initialize_s390_tdep): Rename to...
12555 (_initialize_s390_linux_tdep): ...this and adjust.
12556 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12557 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12558 s390-tdep.h.
12559 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12560 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12561 (s390_is_partial_instruction, s390_software_single_step)
12562 (is_non_branch_ril, s390_displaced_step_copy_insn)
12563 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12564 (s390_prologue_data, s390_addr, s390_store, s390_load)
12565 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12566 (s390_register_call_saved, s390_guess_tracepoint_registers)
12567 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12568 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12569 (s390_pseudo_register_name, s390_pseudo_register_type)
12570 (s390_pseudo_register_read, s390_pseudo_register_write)
12571 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12572 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12573 (s390_addr_bits_remove, s390_address_class_type_flags)
12574 (s390_address_class_type_flags_to_name)
12575 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12576 (s390_function_arg_float, s390_function_arg_vector)
12577 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12578 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12579 (s390_frame_align, s390_register_return_value, s390_return_value)
12580 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12581 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12582 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12583 (s390_trad_frame_prev_register, s390_unwind_cache)
12584 (s390_prologue_frame_unwind_cache)
12585 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12586 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12587 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12588 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12589 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12590 (s390_frame_base_address, s390_local_base_address)
12591 (s390_frame_base, s390_gcc_target_options)
12592 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12593 (s390_validate_reg_range, s390_tdesc_valid)
12594 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12595 * s390-tdep.c: ...this. New file.
12596
12597 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12598
12599 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12600 (s390_process_record, s390_gdbarch_tdep_alloc)
12601 (s390_linux_init_abi_any): Use/set new hook.
12602
12603 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12604
12605 * s390-linux-tdep.c (osabi.h): New include.
12606 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12607 (s390_linux_init_abi_any): New functions.
12608 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12609
12610 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12611
12612 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12613 tdesc_has_registers check
12614
12615 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12616
12617 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12618 (s390_validate_reg_range): New macro.
12619 (s390_gdbarch_init): Adjust.
12620
12621 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12622
12623 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12624 (s390_gdbarch_tdep_alloc): Adjust.
12625 (s390_gdbarch_init): Adjust.
12626
12627 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12628
12629 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12630 <have_tdb>: Change type to bool.
12631 (s390_gdbarch_tdep_alloc): Adjust.
12632 (s390_gdbarch_init): Adjust.
12633
12634 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12635
12636 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12637 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12638 (s390_gdbarch_tdep_alloc): New function.
12639 (s390_gdbarch_init): Allocate tdep at start and use its fields
12640 instead of separate variables.
12641
12642 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12643
12644 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12645 when looking for cached gdbarch and add comment for remaining.
12646
12647 2018-01-22 Pedro Alves <palves@redhat.com>
12648 Sergio Durigan Junior <sergiodj@redhat.com>
12649
12650 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12651 case.
12652
12653 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12654
12655 * MAINTAINERS: Update my company e-mail address.
12656
12657 2018-01-22 Yao Qi <yao.qi@linaro.org>
12658
12659 * regcache.c (cooked_write_test): New function.
12660 (_initialize_regcache): Register the test.
12661
12662 2018-01-22 Yao Qi <yao.qi@linaro.org>
12663
12664 * ia64-tdep.c (ia64_pseudo_register_read): Call
12665 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12666 * m32c-tdep.c (m32c_cat_read): Likewise.
12667 (m32c_r3r2r1r0_read): Likewise.
12668 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12669 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12670
12671 2018-01-22 Yao Qi <yao.qi@linaro.org>
12672
12673 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12674 method raw_read instead of regcache_raw_read.
12675 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12676 * arm-tdep.c (arm_neon_quad_read): Likewise.
12677 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12678 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12679 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12680 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12681 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12682 (i386_pseudo_register_read_into_value): Likewise.
12683 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12684 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12685 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12686 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12687 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12688 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12689 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12690 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12691 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12692
12693 2018-01-22 Yao Qi <yao.qi@linaro.org>
12694
12695 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12696 * configure.tgt: Remove target mt.
12697 * mt-tdep.c: Remove.
12698 * regcache.c (cooked_read_test): Remove the check for mt.
12699
12700 2018-01-22 Yao Qi <yao.qi@linaro.org>
12701
12702 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12703 instead of gdbarch_pseudo_register_read_value.
12704
12705 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12706
12707 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12708 language is Ada.
12709
12710 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12711
12712 * linespec.c (create_sals_line_offset): Remove code that preserved
12713 the symtab_and_line's line number.
12714
12715 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12716
12717 * varobj.c (varobj_create): Don't set valid_block when creating a
12718 floating varobj.
12719
12720 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12721
12722 * varobj.c (varobj_create): Remove out of date comment.
12723
12724 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12725
12726 PR mi/20395
12727 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12728 updating innermost block.
12729 * parse.c (innermost_block_tracker::update): Take extra type
12730 parameter, and check types match before updating innermost block.
12731 (write_dollar_variable): Update innermost block for registers.
12732 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12733 (innermost_block_tracker::innermost_block_tracker): Initialise
12734 m_types member.
12735 (innermost_block_tracker::reset): Take type parameter.
12736 (innermost_block_tracker::update): Take type parameter, and pass
12737 type through as needed.
12738 (innermost_block_tracker::m_types): New member.
12739 * varobj.c (varobj_create): Pass type when reseting innermost
12740 block.
12741
12742 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12743
12744 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12745 * ada-lang.c (resolve_subexp): Likewise.
12746 * breakpoint.c (set_breakpoint_condition) Likewise.
12747 (watch_command_1) Likewise.
12748 * c-exp.y (variable): Likewise.
12749 * d-exp.y (PrimaryExpression): Likewise.
12750 * f-exp.y (variable): Likewise.
12751 * go-exp.y (variable): Likewise.
12752 * m2-exp.y (variable): Likewise.
12753 * objfiles.c (objfile::~objfile): Likewise.
12754 * p-exp.y (variable): Likewise.
12755 * parse.c (innermost_block): Change type.
12756 * parser-defs.h (class innermost_block_tracker): New.
12757 (innermost_block): Change to innermost_block_tracker.
12758 * printcmd.c (display_command): Switch to innermost_block API.
12759 (do_one_display): Likewise.
12760 * rust-exp.y (do_one_display): Likewise.
12761 * symfile.c (clear_symtab_users): Likewise.
12762 * varobj.c (varobj_create): Switch to innermost_block API, replace
12763 use of innermost_block with block stored on varobj object.
12764
12765 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12766
12767 * expression.h (innermost_block): Remove declaration.
12768 * varobj.c: Add 'parser-defs.h' include.
12769
12770 2018-01-19 Tom Tromey <tom@tromey.com>
12771
12772 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12773 symbols in the static and global blocks.
12774
12775 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12776
12777 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12778 gdb_ptrace.h, and move including gdb_wait.h ...
12779 * nat/linux-ptrace.h: ... to here.
12780
12781 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12782
12783 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12784 inf_ptrace_detach_success.
12785 (inf_ptrace_detach_success): Add inferior parameter, use it
12786 instead of inferior_ptid, pass it to detach_inferior.
12787 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12788 parameter.
12789 * inferior.c (detach_inferior): Add overload that takes an
12790 inferior object.
12791 * inferior.h (detach_inferior): Likewise.
12792 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12793 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12794 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12795
12796 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12797
12798 * target.h (struct target_ops) <to_detach>: Add inferior
12799 parameter.
12800 (target_detach): Likewise.
12801 * target.c (dispose_inferior): Pass inferior down.
12802 (target_detach): Pass inferior down. Assert that it is equal to
12803 the current inferior.
12804 * aix-thread.c (aix_thread_detach): Pass inferior down.
12805 * corefile.c (core_file_command): Pass current_inferior() down.
12806 * corelow.c (core_detach): Add inferior parameter.
12807 * darwin-nat.c (darwin_detach): Likewise.
12808 * gnu-nat.c (gnu_detach): Likewise.
12809 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12810 * infcmd.c (detach_command): Pass current_inferior() down to
12811 target_detach.
12812 * infrun.c (follow_fork_inferior): Pass parent_inf to
12813 target_detach.
12814 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12815 target_detach.
12816 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12817 * linux-thread-db.c (thread_db_detach): Likewise.
12818 * nto-procfs.c (procfs_detach): Likewise.
12819 * procfs.c (procfs_detach): Likewise.
12820 * record.c (record_detach): Likewise.
12821 * record.h (struct inferior): Forward-declare.
12822 (record_detach): Add inferior parameter.
12823 * remote-sim.c (gdbsim_detach): Likewise.
12824 * remote.c (remote_detach_1): Likewise.
12825 (remote_detach): Likewise.
12826 (extended_remote_detach): Likewise.
12827 * sol-thread.c (sol_thread_detach): Likewise.
12828 * target-debug.h (target_debug_print_inferior_p): New macro.
12829 * target-delegates.c: Re-generate.
12830 * top.c (kill_or_detach): Pass inferior down to target_detach.
12831 * windows-nat.c (windows_detach): Add inferior parameter.
12832
12833 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12834
12835 * target.h (struct target_ops) <to_detach>: Remove args
12836 parameter.
12837 (target_detach): Likewise.
12838 * target.c (dispose_inferior): Adjust.
12839 (target_detach): Remove args parameter, adjust.
12840 * aix-thread.c (aix_thread_detach): Adjust.
12841 * corefile.c (core_file_command): Adjust.
12842 * corelow.c (core_detach): Adjust.
12843 * darwin-nat.c (darwin_detach): Adjust.
12844 * gnu-nat.c (gnu_detach): Adjust.
12845 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12846 * infcmd.c (detach_command): Adjust
12847 * infrun.c (follow_fork_inferior): Adjust.
12848 (handle_vfork_child_exec_or_exit): Adjust.
12849 * linux-fork.c (linux_fork_detach): Remove args parameter.
12850 * linux-fork.h (linux_fork_detach): Likewise.
12851 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12852 * linux-thread-db.c (thread_db_detach): Likewise.
12853 * nto-procfs.c (procfs_detach): Likewise.
12854 * procfs.c (procfs_detach): Likewise.
12855 (do_detach): Remove signo parameter.
12856 * record.c (record_detach): Remove args parameter.
12857 * record.h (record_detach): Likewise.
12858 * remote-sim.c (gdbsim_detach): Likewise.
12859 * remote.c (remote_detach_1): Likewise.
12860 (remote_detach): Likewise.
12861 (extended_remote_detach): Likewise.
12862 * sol-thread.c (sol_thread_detach): Likewise.
12863 * target-delegates.c: Re-generate.
12864 * top.c (struct qt_args) <args>: Remove field.
12865 (kill_or_detach): Don't pass args.
12866 (quit_force): Don't set args.
12867 * windows-nat.c (windows_detach): Remove args parameter.
12868
12869 2018-01-19 Yao Qi <yao.qi@linaro.org>
12870
12871 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12872 (arm_linux_init_abi): Install it.
12873
12874 2018-01-19 Yao Qi <yao.qi@linaro.org>
12875
12876 * osabi.c (gdb_osabi_names): Extend the regexp for
12877 arm-linux-gnueabihf.
12878
12879 2018-01-18 Yao Qi <yao.qi@linaro.org>
12880
12881 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12882 m_abbrevs.
12883 (abbrev_table::add_abbrev): Update.
12884 (abbrev_table::lookup_abbrev): Update.
12885
12886 2018-01-18 Yao Qi <yao.qi@linaro.org>
12887
12888 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12889
12890 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12891
12892 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12893 to "std::string".
12894
12895 2018-01-17 Tom Tromey <tom@tromey.com>
12896
12897 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12898
12899 2018-01-17 Tom Tromey <tom@tromey.com>
12900
12901 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12902 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12903 (create_array_type_with_stride): Update.
12904 * dwarf2read.c (set_die_type): Update.
12905
12906 2018-01-17 Tom Tromey <tom@tromey.com>
12907
12908 * dwarf2read.c (delayed_method_info): Remove typedef.
12909 (dwarf2_cu::method_info): Now a std::vector.
12910 (add_to_method_list): Update.
12911 (free_delayed_list): Remove.
12912 (compute_delayed_physnames): Update.
12913 (process_full_comp_unit, process_full_type_unit): Clear the method
12914 list. Remove cleanups.
12915 (psymtab_include_file_name): Add name_holder parameter. Use
12916 unique_xmalloc_ptr.
12917 (dwarf_decode_lines): Update.
12918
12919 2018-01-17 Tom Tromey <tom@tromey.com>
12920 Simon Marchi <simon.marchi@ericsson.com>
12921
12922 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12923 (dwarf2_per_objfile::free_cached_comp_units)
12924 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12925 (init_cutu_and_read_dies_no_follow): Update.
12926 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12927 (dwarf2_cu::~dwarf2_cu): New.
12928 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12929 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12930
12931 2018-01-17 Tom Tromey <tom@tromey.com>
12932 Simon Marchi <simon.marchi@ericsson.com>
12933
12934 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12935 (struct die_reader_specs) <abbrev_table>: New member.
12936 (struct abbrev_table): Add constructor.
12937 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12938 <abbrev_obstack>: Now an auto_obstack.
12939 (abbrev_table_up): New typedef.
12940 (init_cu_die_reader): Add abbrev_table parameter.
12941 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12942 Add result_dwo_abbrev_table.
12943 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12944 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12945 Update.
12946 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12947 parameter.
12948 (skip_children): Update.
12949 (abbrev_table::alloc_abbrev): Rename from
12950 abbrev_table_alloc_abbrev.
12951 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12952 (abbrev_table::lookup_abbrev): Rename from
12953 abbrev_table_lookup_abbrev.
12954 (abbrev_table_read_table): Return abbrev_table_up.
12955 (abbrev_table_free, abbrev_table_free_cleanup)
12956 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12957 (load_partial_dies): Update.
12958
12959 2018-01-17 Tom Tromey <tom@tromey.com>
12960
12961 * dwarf2read.c (dwarf2_compute_name): Update comment.
12962 (read_func_scope, read_variable): Update.
12963 (new_symbol): Remove.
12964 (new_symbol_full): Rename to new_symbol.
12965
12966 2018-01-17 Mike Gulick <mgulick@mathworks.com>
12967
12968 PR gdb/16577
12969 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12970 a warning instead of throwing an error, set section size to 0 and return
12971 NULL.
12972 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12973
12974 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12975
12976 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12977 std::string.
12978 (linux_ptrace_attach_fail_reason_string): Likewise.
12979 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12980 Likewise.
12981 (linux_ptrace_attach_fail_reason_string): Likewise.
12982 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12983
12984 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12985
12986 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12987
12988 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12989
12990 PR gdb/21559
12991 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12992 checking for fs_base/gs_base fields in struct user_regs_struct.
12993 * configure: Regenerate.
12994
12995 2018-01-17 Yao Qi <yao.qi@linaro.org>
12996
12997 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12998 function.
12999 (aarch64_linux_init_abi): Install it to gdbarch hook
13000 gcc_target_options.
13001
13002 2018-01-15 Pedro Alves <palves@redhat.com>
13003
13004 * common/signals-state-save-restore.c
13005 (save_original_signals_state): Fix typos.
13006
13007 2017-01-12 Tom Tromey <tom@tromey.com>
13008 Sergio Durigan Junior <sergiodj@redhat.com>
13009
13010 * Makefile.in (install-only): Install gdb-add-index.
13011
13012 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13013
13014 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13015
13016 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13017
13018 * infrun.c (keep_going_pass_signal): Clear step-over info when
13019 insert_breakpoints fails.
13020
13021 2018-01-11 Pedro Alves <palves@redhat.com>
13022
13023 PR gdb/22583
13024 * infrun.c (resume): Rename to ...
13025 (resume_1): ... this.
13026 (resume): Reimplement as wrapper around resume_1.
13027
13028 2018-01-11 Pedro Alves <palves@redhat.com>
13029
13030 PR remote/22597
13031 * remote.c (remote_parse_stop_reply): Default to the last-set
13032 general thread instead of to 'magic_null_ptid'.
13033
13034 2018-01-10 Pedro Alves <palves@redhat.com>
13035
13036 * language.h (language_get_symbol_name_matcher): Rename ...
13037 (get_symbol_name_matcher): ... this.
13038 * language.c (language_get_symbol_name_matcher): Ditto.
13039 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13040 callers adjusted.
13041
13042 2018-01-10 Pedro Alves <palves@redhat.com>
13043
13044 PR gdb/22670
13045 * dwarf2read.c
13046 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13047 Adjust to use language_get_symbol_name_matcher instead of
13048 language_defn::la_get_symbol_name_matcher.
13049 * language.c (language_get_symbol_name_matcher): If in Ada mode
13050 and the lookup name is a verbatim match, return Ada's matcher.
13051 * language.h (language_get_symbol_name_matcher): Adjust comment.
13052 (ada_lookup_name_info::verbatim_p):: New method.
13053
13054 2018-01-10 Pedro Alves <palves@redhat.com>
13055
13056 PR gdb/22670
13057 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13058 minsym's language is language_auto or language_cplus, pass down
13059 language_ada instead.
13060 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13061
13062 2018-01-10 Pedro Alves <palves@redhat.com>
13063
13064 PR gdb/22670
13065 * minsyms.c (linkage_name_str): New function.
13066 (iterate_over_minimal_symbols): Use it.
13067
13068 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13069
13070 * NEWS: Document that 'info proc' now works on FreeBSD.
13071
13072 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13073
13074 * configure.ac: Check for kinfo_getfile in libutil.
13075 * configure: Regenerate.
13076 * config.in: Regenerate.
13077 * fbsd-nat.c: Include "fbsd-tdep.h".
13078 (fbsd_fetch_cmdline): New.
13079 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13080 rather than calling error.
13081 (fbsd_info_proc): New.
13082 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13083 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13084 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13085
13086 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13087
13088 * fbsd-nat.c (struct free_deleter): Remove.
13089 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13090
13091 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13092
13093 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13094 NULL for an empty pathname.
13095
13096 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13097
13098 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13099 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13100 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13101 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13102 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13103 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13104 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13105 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13106 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13107 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13108 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13109 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13110 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13111 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13112 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13113
13114 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13115
13116 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13117 (gnu_xfer_auxv): New function.
13118 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13119 TARGET_OBJECT_AUXV.
13120
13121 2018-01-08 Yao Qi <yao.qi@linaro.org>
13122 Simon Marchi <simon.marchi@ericsson.com>
13123
13124 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13125 common/selftest.c.
13126 (COMMON_OBS): Remove selftest.o.
13127 * configure.ac: Append selftest-arch.c and common/selftest.c to
13128 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13129 * configure: Re-generated.
13130 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13131 GDB_SELF_TEST.
13132 (maintenance_info_selftests): Likewise.
13133
13134 2018-01-08 Xavier Roirand <roirand@adacore.com>
13135
13136 * ada-valprint.c (val_print_packed_array_elements): Use
13137 proper number of elements when printing an array indexed
13138 by an enumeration type.
13139
13140 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13141
13142 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13143 (dw2_get_file_names_reader): Adjust.
13144 (lookup_dwo_signatured_type): Adjust.
13145 (lookup_dwp_signatured_type): Adjust.
13146 (lookup_signatured_type): Adjust.
13147 (create_type_unit_group): Adjust.
13148 (get_type_unit_group): Adjust.
13149 (process_psymtab_comp_unit_reader): Adjust.
13150 (build_type_psymtabs_reader): Adjust.
13151 (scan_partial_symbols): Adjust.
13152 (add_partial_symbol): Adjust.
13153 (add_partial_subprogram): Adjust.
13154 (peek_die_abbrev): Adjust.
13155 (fixup_go_packaging): Adjust.
13156 (process_imported_unit_die): Adjust.
13157 (dwarf2_compute_name): Adjust.
13158 (dwarf2_physname): Adjust.
13159 (read_import_statement): Adjust.
13160 (handle_DW_AT_stmt_list): Adjust.
13161 (read_file_scope): Adjust.
13162 (read_func_scope): Adjust.
13163 (read_lexical_block_scope): Adjust.
13164 (read_call_site_scope): Adjust.
13165 (read_variable): Adjust.
13166 (dwarf2_rnglists_process): Adjust.
13167 (dwarf2_ranges_process): Adjust.
13168 (dwarf2_ranges_read): Adjust.
13169 (dwarf2_get_pc_bounds): Adjust.
13170 (dwarf2_record_block_ranges): Adjust.
13171 (dwarf2_add_field): Adjust.
13172 (dwarf2_add_member_fn): Adjust.
13173 (read_structure_type): Adjust.
13174 (process_structure_scope): Adjust.
13175 (read_enumeration_type): Adjust.
13176 (read_array_type): Adjust.
13177 (mark_common_block_symbol_computed): Adjust.
13178 (read_common_block): Adjust.
13179 (read_namespace_type): Adjust.
13180 (read_namespace): Adjust.
13181 (read_module_type): Adjust.
13182 (read_tag_pointer_type): Adjust.
13183 (read_tag_ptr_to_member_type): Adjust.
13184 (read_tag_string_type): Adjust.
13185 (read_subroutine_type): Adjust.
13186 (read_typedef): Adjust.
13187 (read_base_type): Adjust.
13188 (attr_to_dynamic_prop): Adjust.
13189 (read_subrange_type): Adjust.
13190 (read_unspecified_type): Adjust.
13191 (dwarf2_read_abbrevs): Adjust.
13192 (load_partial_dies): Adjust.
13193 (read_partial_die): Adjust.
13194 (find_partial_die): Adjust.
13195 (guess_partial_die_structure_name): Adjust.
13196 (fixup_partial_die): Adjust.
13197 (read_attribute_value): Adjust.
13198 (read_addr_index): Adjust.
13199 (read_addr_index_from_leb128): Adjust.
13200 (read_str_index): Adjust.
13201 (dwarf2_string_attr): Adjust.
13202 (get_debug_line_section): Adjust.
13203 (dwarf_decode_line_header): Adjust.
13204 (lnp_state_machine::check_line_address): Adjust.
13205 (dwarf_decode_lines_1): Adjust.
13206 (dwarf_decode_lines): Adjust.
13207 (dwarf2_start_symtab): Adjust.
13208 (var_decode_location): Adjust.
13209 (new_symbol_full): Adjust.
13210 (dwarf2_const_value_data): Adjust.
13211 (dwarf2_const_value_attr): Adjust.
13212 (dwarf2_const_value): Adjust.
13213 (die_type): Adjust.
13214 (die_containing_type): Adjust.
13215 (build_error_marker_type): Adjust.
13216 (lookup_die_type): Adjust.
13217 (guess_full_die_structure_name): Adjust.
13218 (anonymous_struct_prefix): Adjust.
13219 (determine_prefix): Adjust.
13220 (dwarf2_name): Adjust.
13221 (follow_die_ref_or_sig): Adjust.
13222 (follow_die_offset): Adjust.
13223 (follow_die_ref): Adjust.
13224 (follow_die_sig_1): Adjust.
13225 (follow_die_sig): Adjust.
13226 (get_signatured_type): Adjust.
13227 (get_DW_AT_signature_type): Adjust.
13228 (decode_locdesc): Adjust.
13229 (dwarf_decode_macros): Adjust.
13230 (cu_debug_loc_section): Adjust.
13231 (fill_in_loclist_baton): Adjust.
13232 (dwarf2_symbol_mark_computed): Adjust.
13233 (init_one_comp_unit): Don't assign
13234 dwarf2_cu::dwarf2_per_objfile.
13235 (set_die_type): Adjust.
13236
13237 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13238
13239 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13240 <dwarf2_per_objfile>: New field.
13241 (dwarf2_per_objfile): Remove global.
13242 (get_dwarf2_per_objfile): New function.
13243 (set_dwarf2_per_objfile): New function.
13244 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13245 dwarf2_per_objfile.
13246 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13247 (read_abbrev_offset): Likewise.
13248 (read_indirect_string): Likewise.
13249 (read_indirect_line_string): Likewise.
13250 (read_indirect_string_at_offset): Likewise.
13251 (read_indirect_string_from_dwz): Likewise.
13252 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13253 dwarf2_per_objfile.
13254 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13255 (create_all_comp_units): Change objfile parameter to
13256 dwarf2_per_objfile.
13257 (create_all_type_units): Likewise.
13258 (process_queue): Add dwarf2_per_objfile parameter.
13259 (read_and_check_comp_unit_head): Likewise.
13260 (lookup_dwo_unit_in_dwp): Likewise.
13261 (get_dwp_file): Likewise.
13262 (process_cu_includes): Likewise.
13263 (struct free_dwo_file_cleanup_data): New struct.
13264 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13265 set_dwarf2_per_objfile.
13266 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13267 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13268 context, adjust calls.
13269 (dw2_instantiate_symtab): Likewise.
13270 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13271 (dw2_get_cu): Likewise.
13272 (create_cu_from_index_list): Change objfile parameter to
13273 dwarf2_per_objfile.
13274 (create_cus_from_index_list): Get dwarf2_per_objfile from
13275 context, adjust calls.
13276 (create_cus_from_index): Likewise.
13277 (create_signatured_type_table_from_index): Change objfile
13278 parameter to dwarf2_per_objfile.
13279 (create_signatured_type_table_from_debug_names): Change objfile
13280 parameter to dwarf2_per_objfile.
13281 (create_addrmap_from_index): Likewise.
13282 (create_addrmap_from_aranges): Likewise.
13283 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13284 (dw2_setup): Remove.
13285 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13286 context.
13287 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13288 get_dwarf2_per_objfile.
13289 (dw2_forget_cached_source_info): Likewise.
13290 (dw2_map_symtabs_matching_filename): Likewise.
13291 (struct dw2_symtab_iterator) <index>: Remove.
13292 <dwarf2_per_objfile>: New field.
13293 (dw2_symtab_iter_init): Replace index parameter with
13294 dwarf2_per_objfile.
13295 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13296 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13297 (dw2_print_stats): Likewise.
13298 (dw2_dump): Likewise.
13299 (dw2_expand_symtabs_for_function): Likewise.
13300 (dw2_expand_all_symtabs): Likewise.
13301 (dw2_expand_symtabs_with_fullname): Likewise.
13302 (dw2_expand_marked_cus): Replace index and objfile parameters
13303 with dwarf2_per_objfile.
13304 (dw_expand_symtabs_matching_file_matcher): Add
13305 dwarf2_per_objfile parameter and adjust calls.
13306 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13307 adjust calls.
13308 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13309 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13310 adjust calls.
13311 (create_cus_from_debug_names_list): Replace objfile parameter
13312 with dwarf2_per_objfile and adjust calls.
13313 (create_cus_from_debug_names): Likewise.
13314 (dwarf2_read_debug_names): Likewise.
13315 (mapped_debug_names::namei_to_name): Adjust call.
13316 (dw2_debug_names_iterator::next): Likewise.
13317 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13318 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13319 (dw2_debug_names_dump): Likewise.
13320 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13321 (dw2_debug_names_expand_symtabs_matching): Likewise.
13322 (dwarf2_initialize_objfile): Likewise.
13323 (dwarf2_build_psymtabs): Likewise.
13324 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13325 this_cu.
13326 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13327 (read_and_check_comp_unit_head): Likewise.
13328 (read_abbrev_offset): Likewise.
13329 (create_debug_type_hash_table): Likewise.
13330 (create_debug_types_hash_table): Likewise.
13331 (create_all_type_units): Replace objfile parameter with
13332 dwarf2_per_objfile.
13333 (add_type_unit): Add dwarf2_per_objfile parameter.
13334 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13335 with dwarf2_per_objfile.
13336 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13337 (lookup_dwp_signatured_type): Likewise.
13338 (lookup_signatured_type): Likewise.
13339 (read_cutu_die_from_dwo): Likewise.
13340 (init_tu_and_read_dwo_dies): Likewise.
13341 (init_cutu_and_read_dies): Likewise.
13342 (init_cutu_and_read_dies_no_follow): Likewise.
13343 (allocate_type_unit_groups_table): Add objfile parameter.
13344 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13345 (get_type_unit_group): Likewise.
13346 (process_psymtab_comp_unit): Update call.
13347 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13348 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13349 (print_tu_stats): Likewise.
13350 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13351 in void* parameter.
13352 (build_type_psymtabs): Change objfile parameter to
13353 dwarf2_per_objfile.
13354 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13355 passed in void* parameter.
13356 (process_skeletonless_type_units): Change objfile parameter to
13357 dwarf2_per_objfile.
13358 (set_partial_user): Likewise.
13359 (dwarf2_build_psymtabs_hard): Likewise.
13360 (read_comp_units_from_section): Likewise.
13361 (create_all_comp_units): Likewise.
13362 (scan_partial_symbols): Update calls.
13363 (add_partial_symbol): Likewise.
13364 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13365 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13366 (process_queue): Add dwarf2_per_objfile parameter.
13367 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13368 (compute_compunit_symtab_includes): Likewise.
13369 (process_cu_includes): Add dwarf2_per_objfile parameter.
13370 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13371 (process_full_type_unit): Likewise.
13372 (process_imported_unit_die): Update call.
13373 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13374 (read_file_scope): Likewise.
13375 (allocate_dwo_file_hash_table): Add objfile parameter.
13376 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13377 (create_cus_hash_table): Likewise.
13378 (create_dwp_hash_table): Likewise.
13379 (create_dwo_unit_in_dwp_v1): Likewise.
13380 (create_dwp_v2_section): Likewise.
13381 (create_dwo_unit_in_dwp_v2): Likewise.
13382 (lookup_dwo_unit_in_dwp): Likewise.
13383 (try_open_dwop_file): Likewise.
13384 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13385 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13386 cleanup to include a reference to dwarf2_per_objfile.
13387 (open_dwp_file): Add dwarf2_per_objfile parameter.
13388 (open_and_init_dwp_file): Likewise.
13389 (get_dwp_file): Likewise.
13390 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13391 (queue_and_load_all_dwo_tus): Update call.
13392 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13393 data.
13394 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13395 (dwarf2_ranges_process): Likewise.
13396 (dwarf2_get_pc_bounds): Likewise.
13397 (mark_common_block_symbol_computed): Likewise.
13398 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13399 (dwarf2_read_abbrevs): Update call.
13400 (read_partial_die): Use dwarf2_per_objfile from cu.
13401 (find_partial_die): Likewise.
13402 (fixup_partial_die): Likewise.
13403 (read_attribute_value): Likewise.
13404 (read_indirect_string_at_offset_from): Add objfile parameter.
13405 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13406 parameter.
13407 (read_indirect_string_from_dwz): Add objfile parameter.
13408 (read_indirect_string): Add objfile parameter.
13409 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13410 (read_addr_index): Use dwarf2_per_objfile from cu.
13411 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13412 call dw2_setup.
13413 (read_str_index): Use dwarf2_per_objfile from cu.
13414 (get_debug_line_section): Likewise.
13415 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13416 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13417 (new_symbol_full): Use dwarf2_per_objfile from cu.
13418 (build_error_marker_type): Likewise.
13419 (lookup_die_type): Likewise.
13420 (determine_prefix): Likewise.
13421 (follow_die_offset): Likewise.
13422 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13423 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13424 (dwarf2_fetch_die_type_sect_off): Likewise.
13425 (dwarf2_get_die_type): Likewise.
13426 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13427 (get_signatured_type): Likewise.
13428 (get_DW_AT_signature_type): Likewise.
13429 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13430 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13431 (cu_debug_loc_section): Likewise.
13432 (fill_in_loclist_baton): Likewise.
13433 (dwarf2_symbol_mark_computed): Likewise.
13434 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13435 dwarf2_per_objfile.
13436 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13437 parameter.
13438 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13439 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13440 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13441 (set_die_type): Use dwarf2_free_objfile from cu.
13442 (get_die_type_at_offset): Likewise.
13443 (dwarf2_per_objfile_free): Don't assign global variable.
13444 (debug_names) <constructor>: Add dwarf2_per_objfile
13445 parameter, update m_debugstrlookup construction.
13446 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13447 parameter.
13448 <m_dwarf2_per_objfile>: New field.
13449 <lookup>: Use m_dwarf2_per_objfile.
13450 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13451 (psyms_seen_size): Likewise.
13452 (write_gdbindex): Replace objfile parameter with
13453 dwarf2_per_objfile.
13454 (write_debug_names): Likewise.
13455 (write_psymtabs_to_index): Likewise.
13456 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13457 calls.
13458
13459 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13460
13461 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13462 <dwarf2_per_objfile>: New field.
13463 (struct dwarf2_per_cu_data) <objfile>: Remove.
13464 <dwarf2_per_objfile>: New field.
13465 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13466 of objfile.
13467 (create_signatured_type_table_from_index): Likewise.
13468 (create_debug_type_hash_table): Likewise.
13469 (fill_in_sig_entry_from_dwo_entry): Likewise.
13470 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13471 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13472 objfile.
13473 (create_partial_symtab): Access objfile through
13474 dwarf2_per_objfile.
13475 (process_psymtab_comp_unit_reader): Likewise.
13476 (read_comp_units_from_section): Likewise.
13477 (scan_partial_symbols): Likewise.
13478 (add_partial_symbol): Likewise.
13479 (add_partial_subprogram): Likewise.
13480 (peek_die_abbrev): Likewise.
13481 (fixup_go_packaging): Likewise.
13482 (process_full_comp_unit): Likewise.
13483 (process_full_type_unit): Likewise.
13484 (process_imported_unit_die): Likewise.
13485 (dwarf2_compute_name): Likewise.
13486 (dwarf2_physname): Likewise.
13487 (read_import_statement): Likewise.
13488 (create_cus_hash_table): Assign dwarf2_physname instead of
13489 objfile.
13490 (read_func_scope): Access objfile through dwarf2_per_objfile.
13491 (read_lexical_block_scope): Likewise.
13492 (read_call_site_scope): Likewise.
13493 (read_variable): Likewise.
13494 (dwarf2_rnglists_process): Likewise.
13495 (dwarf2_ranges_process): Likewise.
13496 (dwarf2_ranges_read): Likewise.
13497 (dwarf2_record_block_ranges): Likewise.
13498 (dwarf2_add_field): Likewise.
13499 (dwarf2_add_member_fn): Likewise.
13500 (read_structure_type): Likewise.
13501 (process_structure_scope): Likewise.
13502 (read_enumeration_type): Likewise.
13503 (read_array_type): Likewise.
13504 (read_common_block): Likewise.
13505 (read_namespace_type): Likewise.
13506 (read_namespace): Likewise.
13507 (read_module_type): Likewise.
13508 (read_tag_pointer_type): Likewise.
13509 (read_tag_ptr_to_member_type): Likewise.
13510 (read_tag_string_type): Likewise.
13511 (read_subroutine_type): Likewise.
13512 (read_typedef): Likewise.
13513 (read_base_type): Likewise.
13514 (attr_to_dynamic_prop): Likewise.
13515 (read_subrange_type): Likewise.
13516 (read_unspecified_type): Likewise.
13517 (load_partial_dies): Likewise.
13518 (read_partial_die): Likewise.
13519 (find_partial_die): Likewise.
13520 (guess_partial_die_structure_name): Likewise.
13521 (fixup_partial_die): Likewise.
13522 (read_attribute_value): Likewise.
13523 (read_addr_index_from_leb128): Likewise.
13524 (dwarf2_read_addr_index): Likewise.
13525 (dwarf2_string_attr): Likewise.
13526 (lnp_state_machine::check_line_address): Likewise.
13527 (dwarf_decode_lines_1): Likewise.
13528 (dwarf_decode_lines): Likewise.
13529 (dwarf2_start_symtab): Likewise.
13530 (var_decode_location): Likewise.
13531 (new_symbol_full): Likewise.
13532 (dwarf2_const_value_data): Likewise.
13533 (dwarf2_const_value_attr): Likewise.
13534 (dwarf2_const_value): Likewise.
13535 (die_type): Likewise.
13536 (die_containing_type): Likewise.
13537 (lookup_die_type): Likewise.
13538 (guess_full_die_structure_name): Likewise.
13539 (anonymous_struct_prefix): Likewise.
13540 (dwarf2_name): Likewise.
13541 (follow_die_ref_or_sig): Likewise.
13542 (follow_die_offset): Likewise.
13543 (follow_die_ref): Likewise.
13544 (dwarf2_fetch_die_loc_sect_off): Likewise.
13545 (dwarf2_fetch_constant_bytes): Likewise.
13546 (dwarf2_fetch_die_type_sect_off): Likewise.
13547 (dwarf2_get_die_type): Likewise.
13548 (follow_die_sig): Likewise.
13549 (decode_locdesc): Likewise.
13550 (dwarf2_per_cu_objfile): Likewise.
13551 (dwarf2_per_cu_text_offset): Likewise.
13552 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13553 objfile.
13554 (set_die_type): Access objfile through
13555 dwarf2_per_objfile.
13556
13557 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13558
13559 * valprint.c (converted_character_d): Remove typedef.
13560 (DEF_VEC_O (converted_character_d)): Remove.
13561 (count_next_character): Use std::vector.
13562 (print_converted_chars_to_obstack): Likewise.
13563 (generic_printstr): Likewise.
13564
13565 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13566
13567 * xml-support.h (struct gdb_xml_value): Add constructor.
13568 <value>: Change type to unique_xmalloc_ptr.
13569 (gdb_xml_value_s): Remove typedef.
13570 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13571 (gdb_xml_element_start_handler): Change parameter type to
13572 std::vector.
13573 (xml_find_attribute): Likewise.
13574 * xml-support.c (xml_find_attribute): Change parameter type to
13575 std::vector and adjust.
13576 (gdb_xml_values_cleanup): Remove.
13577 (gdb_xml_parser::start_element): Adjust to std::vector.
13578 (xinclude_start_include): Change paraeter type to std::vector
13579 and adjust.
13580 * btrace.c (check_xml_btrace_version): Likewise.
13581 (parse_xml_btrace_block): Likewise.
13582 (parse_xml_btrace_pt_config_cpu): Likewise.
13583 (parse_xml_btrace_pt): Likewise.
13584 (parse_xml_btrace_conf_bts): Likewise.
13585 (parse_xml_btrace_conf_pt): Likewise.
13586 * memory-map.c (memory_map_start_memory): Likewise.
13587 (memory_map_start_property): Likewise.
13588 * osdata.c (osdata_start_osdata): Likewise.
13589 (osdata_start_item): Likewise.
13590 (osdata_start_column): Likewise.
13591 * remote.c (start_thread): Likewise.
13592 * solib-aix.c (library_list_start_library): Likewise.
13593 (library_list_start_list): Likewise.
13594 * solib-svr4.c (library_list_start_library): Likewise.
13595 (svr4_library_list_start_list): Likewise.
13596 * solib-target.c (library_list_start_segment): Likewise.
13597 (library_list_start_section): Likewise.
13598 (library_list_start_library): Likewise.
13599 (library_list_start_list): Likewise.
13600 * tracepoint.c (traceframe_info_start_memory): Likewise.
13601 (traceframe_info_start_tvar): Likewise.
13602 * xml-syscall.c (syscall_start_syscall): Likewise.
13603 * xml-tdesc.c (tdesc_start_target): Likewise.
13604 (tdesc_start_feature): Likewise.
13605 (tdesc_start_reg): Likewise.
13606 (tdesc_start_union): Likewise.
13607 (tdesc_start_struct): Likewise.
13608 (tdesc_start_flags): Likewise.
13609 (tdesc_start_enum): Likewise.
13610 (tdesc_start_field): Likewise.
13611 (tdesc_start_enum_value): Likewise.
13612 (tdesc_start_vector): Likewise.
13613
13614 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13615
13616 * extension.h (struct xmethod_worker) <clone>: Remove.
13617 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13618 Remove.
13619 (python_xmethod_worker::clone): Remove.
13620 * valops.c (find_overload_match): Use std::move instead of
13621 clone.
13622
13623 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13624
13625 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13626 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13627 <free_xmethod_worker_data>: Remove.
13628 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13629 <get_xmethod_arg_types>: Remove.
13630 <get_xmethod_result_type>: Remove.
13631 <invoke_xmethod>: Remove.
13632 * extension.c (new_xmethod_worker): Remove.
13633 (clone_xmethod_worker): Remove.
13634 (get_matching_xmethod_workers): Return void, pass std::vector by
13635 pointer.
13636 (get_xmethod_arg_types): Rename to...
13637 (xmethod_worker::get_arg_types): ... this, and adjust.
13638 (get_xmethod_result_type): Rename to...
13639 (xmethod_worker::get_result_type): ... this, and adjust.
13640 (invoke_xmethod): Remove.
13641 (free_xmethod_worker): Remove.
13642 (free_xmethod_worker_vec): Remove.
13643 * extension.h (enum ext_lang_rc): Move here from
13644 extension-priv.h.
13645 (struct xmethod_worker): Add constructor and destructor.
13646 <data>: Remove.
13647 <value>: Remove.
13648 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13649 virtual pure methods.
13650 <get_arg_types, get_result_type>: New methods.
13651 (xmethod_worker_ptr): Remove typedef.
13652 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13653 (xmethod_worker_vec): Remove typedef.
13654 (xmethod_worker_up): New typedef.
13655 (invoke_xmethod): Remove.
13656 (clone_xmethod_worker): Remove.
13657 (free_xmethod_worker): Remove.
13658 (free_xmethod_worker_vec): Remove.
13659 (get_xmethod_arg_types): Remove.
13660 (get_xmethod_result_type): Remove.
13661 * valops.c (find_method_list): Use std::vector, don't use
13662 intermediate vector.
13663 (value_find_oload_method_list): Use std::vector.
13664 (find_overload_match): Use std::vector.
13665 (find_oload_champ): Use std::vector.
13666 * value.c (value_free): Use operator delete.
13667 (value_of_xmethod): Rename to...
13668 (value_from_xmethod): ... this. Don't assign
13669 xmethod_worker::value, take rvalue-reference.
13670 (result_type_of_xmethod): Adjust.
13671 (call_xmethod): Adjust.
13672 * value.h: Include extension.h.
13673 (struct xmethod_worker): Don't forward-declare.
13674 (value_of_xmethod): Rename to...
13675 (value_from_xmethod): ... this, take rvalue-reference.
13676 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13677 (struct python_xmethod_worker): ... this, add constructor and
13678 destructor.
13679 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13680 (gdbpy_free_xmethod_worker_data): Rename to...
13681 (python_xmethod_worker::~python_xmethod_worker): ... this and
13682 adjust.
13683 (gdbpy_clone_xmethod_worker_data): Rename to...
13684 (python_xmethod_worker::clone): ... this and adjust.
13685 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13686 temporary vector.
13687 (gdbpy_get_xmethod_arg_types): Rename to...
13688 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13689 (gdbpy_get_xmethod_result_type): Rename to...
13690 (python_xmethod_worker::do_get_result_type): ... this and
13691 adjust.
13692 (gdbpy_invoke_xmethod): Rename to...
13693 (python_xmethod_worker::invoke): ... this and adjust.
13694 (new_python_xmethod_worker): Rename to...
13695 (python_xmethod_worker::python_xmethod_worker): ... this and
13696 adjust.
13697 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13698 Remove.
13699 (gdbpy_free_xmethod_worker_data): Remove.
13700 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13701 (gdbpy_get_xmethod_arg_types): Remove.
13702 (gdbpy_get_xmethod_result_type): Remove.
13703 (gdbpy_invoke_xmethod): Remove.
13704 * python/python.c (python_extension_ops): Remove obsolete
13705 callbacks.
13706
13707 2018-01-05 Pedro Alves <palves@redhat.com>
13708
13709 PR gdb/18653
13710 * common/signals-state-save-restore.c
13711 (save_original_signals_state): New parameter 'quiet'. Warn if we
13712 find a custom handler preinstalled, instead of internal erroring.
13713 But only warn if !quiet.
13714 * common/signals-state-save-restore.h
13715 (save_original_signals_state): New parameter 'quiet'.
13716 * main.c (captured_main_1): Move save_original_signals_state call
13717 after option handling, and pass QUIET.
13718
13719 2018-01-05 Pedro Alves <palves@redhat.com>
13720
13721 * spu-tdep.c (spu_catch_start): Pass
13722 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13723
13724 2018-01-05 Pedro Alves <palves@redhat.com>
13725
13726 PR gdb/22670
13727 * ada-lang.c (literal_symbol_name_matcher): New function.
13728 (ada_get_symbol_name_matcher): Use it for
13729 symbol_name_match_type::SEARCH_NAME.
13730 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13731 it down instead of assuming symbol_name_match_type::FULL.
13732 * block.h (block_lookup_symbol): New parameter 'match_type'.
13733 * c-valprint.c (print_unpacked_pointer): Use
13734 lookup_symbol_search_name instead of lookup_symbol.
13735 * compile/compile-object-load.c (get_out_value_type): Pass down
13736 symbol_name_match_type::SEARCH_NAME.
13737 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13738 symbol_name_match_type::FULL.
13739 * cp-support.c (cp_get_symbol_name_matcher): Handle
13740 symbol_name_match_type::SEARCH_NAME.
13741 * infrun.c (insert_exception_resume_breakpoint): Use
13742 lookup_symbol_search_name.
13743 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13744 * psymtab.c (maintenance_check_psymtabs): Use
13745 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13746 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13747 SYMBOL_SEARCH_NAME.
13748 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13749 if symbol_name_match_type::SEARCH_NAME.
13750 (lookup_symbol_in_language): Pass down
13751 symbol_name_match_type::FULL.
13752 (lookup_symbol_search_name): New.
13753 (lookup_language_this): Pass down
13754 symbol_name_match_type::SEARCH_NAME.
13755 (lookup_symbol_aux, lookup_local_symbol): New parameter
13756 'match_type'. Pass it down.
13757 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13758 (lookup_symbol_search_name): New declaration.
13759 (lookup_symbol_in_block): New 'match_type' parameter.
13760
13761 2018-01-05 Pedro Alves <palves@redhat.com>
13762
13763 PR gdb/22670
13764 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13765 ada_lookup_symbol.
13766 (ada_lookup_symbol): Reimplement in terms of
13767 ada_lookup_symbol_list, bits factored out from
13768 ada_lookup_encoded_symbol.
13769
13770 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13771
13772 * ada-exp.y (write_object_renaming): When subscripting an array
13773 using a symbol as the index, pass the block in call to
13774 ada_lookup_encoded_symbol when looking that symbol up.
13775
13776 2018-01-05 Jerome Guitton <guitton@adacore.com>
13777
13778 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13779 TYPE_INDEX_TYPE.
13780
13781 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13782
13783 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13784 the case where VALUE_LVAL (val0) is not lval_memory.
13785
13786 2018-01-05 Xavier Roirand <roirand@adacore.com>
13787
13788 * ada-valprint.c (print_optional_low_bound): Handle
13789 character-indexed array printing like boolean-indexed array
13790 printing.
13791
13792 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13793
13794 * NEWS: Create a new section for the next release branch.
13795 Rename the section of the current branch, now that it has
13796 been cut.
13797
13798 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13799
13800 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13801 * version.in: Bump version to 8.1.50.DATE-git.
13802
13803 2018-01-03 Xavier Roirand <roirand@adacore.com>
13804
13805 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13806 Add field.
13807 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13808 Add field.
13809 (default_exception_support_info) <catch_handlers_sym>: Add field.
13810 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13811 (ada_exception_name_addr_1): Add "catch handlers" handling.
13812 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13813 Update all callers.
13814 (create_excep_cond_exprs) <ex>: Add parameter.
13815 (re_set_exception): Update create_excep_cond_exprs call.
13816 (print_it_exception, print_one_exception, print_mention_exception)
13817 (print_recreate_exception): Add "catch handler" handling.
13818 (allocate_location_catch_handlers, re_set_catch_handlers)
13819 (check_status_catch_handlers, print_it_catch_handlers)
13820 (print_one_catch_handlers, print_mention_catch_handlers)
13821 (print_recreate_catch_handlers): New function.
13822 (catch_handlers_breakpoint_ops): New variable.
13823 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13824 Add parameter. Add "catch handler" handling.
13825 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13826 Add "catch handler" handling.
13827 (ada_exception_catchpoint_cond_string): Add "catch handler"
13828 handling.
13829 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13830 call.
13831 (catch_ada_handlers_command): New function.
13832 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13833 operations structure.
13834 (_initialize_ada_language): Add "catch handlers" command entry.
13835 * NEWS: Document "catch handlers" feature.
13836
13837 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13838
13839 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13840 account when creating the array type of the slice.
13841 (ada_value_slice): Likewise.
13842
13843 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13844
13845 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13846 New enum value.
13847 (create_array_type_with_stride): Add byte_stride_prop parameter.
13848 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13849 New parameter. Update all callers in this file.
13850 (array_type_has_dynamic_stride): New function.
13851 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13852 of arrays with dynamic byte strides.
13853 * dwarf2read.c (read_array_type): Add support for dynamic
13854 DW_AT_byte_stride attributes.
13855
13856 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13857
13858 * dwarf2read.c (read_unspecified_type): Treat
13859 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13860
13861 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13862
13863 Update copyright year range in all GDB files.
13864
13865 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13866
13867 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13868 and gdb/testsuite/gdb.base/step-line.c.
13869
13870 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13871
13872 * copyright.py (main): Dump the contents of
13873 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13874 even if BY_HAND is empty.
13875
13876 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13877
13878 * top.c (print_gdb_version): Update Copyright year in version
13879 message.
13880
13881 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13882
13883 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13884
13885 For older changes see ChangeLog-2017.
13886 \f
13887 Local Variables:
13888 mode: change-log
13889 left-margin: 8
13890 fill-column: 74
13891 version-control: never
13892 coding: utf-8
13893 End: