Missed last ChangeLog entry.
[binutils-gdb.git] / gdb / ChangeLog
1 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
4 (supply_fpregset, fill_fpregset): Move ...
5 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
6 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
7 Remove references to ioctl-based procfs.
8 Include <sys/reg.h>.
9 Remove PR_MODEL_NATIVE guards.
10 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
11 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
12
13 2018-09-19 Xavier Roirand <roirand@adacore.com>
14
15 PR gdb/20981:
16 * solib-darwin.c (darwin_get_dyld_bfd): New function.
17 (darwin_solib_get_all_image_info_addr_at_init): Update call.
18 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
19
20 2018-09-19 John Baldwin <jhb@FreeBSD.org>
21
22 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
23 (fbsd_print_sockaddr_in6): Likewise.
24
25 2018-09-19 Richard Bunt <richard.bunt@arm.com>
26 Chris January <chris.january@arm.com>
27
28 * eval.c (skip_undetermined_arglist): Skip argument list helper.
29 (evaluate_subexp_standard): Return a dummy type when
30 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
31 OP_F77_UNDETERMINED_ARGLIST case.
32 * expression.h (enum noside): Update comment.
33
34 2018-09-19 George Vasick <george.vasick@oracle.com>
35
36 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
37
38 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
39 April Chin <april.chin@oracle.com>
40 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41
42 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
43 uint_t lwpid_t.
44 (create_procinfo): Print pids in /proc without leading zeros.
45
46 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
47
48 * nios2-tdep.c (nios2_gcc_target_options): New.
49 (nios2_gdb_arch_init): Install new hook.
50
51 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
52
53 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
54 New file.
55 * update-gnulib.sh: Apply patch.
56 * configure: Re-generate.
57
58 2018-09-18 John Baldwin <jhb@FreeBSD.org>
59
60 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
61 description. Make "info proc" command descriptions more
62 consistent.
63
64 2018-09-18 John Baldwin <jhb@FreeBSD.org>
65
66 * NEWS: Mention 'info proc files' command.
67
68 2018-09-18 John Baldwin <jhb@FreeBSD.org>
69
70 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
71 descriptors for IP_FILES and IP_ALL.
72
73 2018-09-18 John Baldwin <jhb@FreeBSD.org>
74
75 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
76 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
77 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
78 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
79 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
80 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
81 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
82 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
83 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
84 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
85 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
86 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
87 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
88 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
89 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
90 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
91 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
92 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
93 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
94 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
95 (struct fbsd_sockaddr_un): New types.
96 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
97 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
98 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
99 (fbsd_core_info_proc_files): New functions.
100 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
101 IP_ALL.
102 * fbsd-tdep.h (fbsd_info_proc_files_header)
103 (fbsd_info_proc_files_entry): New.
104
105 2018-09-18 John Baldwin <jhb@FreeBSD.org>
106
107 * defs.h (enum info_proc_what) [IP_FILES]: New value.
108 * infcmd.c (info_proc_cmd_files): New function.
109 (_initialize_infcmd): Register 'info proc files' command.
110
111 2018-09-18 John Baldwin <jhb@FreeBSD.org>
112
113 * gnulib/aclocal-m4-deps.mk: Re-generate.
114 * gnulib/aclocal.m4: Re-generate.
115 * gnulib/config.in: Re-generate.
116 * gnulib/configure: Re-generate.
117 * gnulib/import/Makefile.am: Re-generate.
118 * gnulib/import/Makefile.in: Re-generate.
119 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
120 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
121 * gnulib/import/arpa_inet.in.h: New file.
122 * gnulib/import/inet_ntop.c: New file.
123 * gnulib/import/m4/arpa_inet_h.m4: New file.
124 * gnulib/import/m4/inet_ntop.m4: New file.
125 * gnulib/import/m4/netinet_in_h.m4: New file.
126 * gnulib/import/m4/socklen.m4: New file.
127 * gnulib/import/m4/sockpfaf.m4: New file.
128 * gnulib/import/m4/stdalign.m4: New file.
129 * gnulib/import/m4/sys_uio_h.m4: New file.
130 * gnulib/import/netinet_in.in.h: New file.
131 * gnulib/import/stdalign.in.h: New file.
132 * gnulib/import/sys_socket.c: New file.
133 * gnulib/import/sys_socket.in.h: New file.
134 * gnulib/import/sys_uio.in.h: New file.
135 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
136 module.
137
138 2018-09-18 John Baldwin <jhb@FreeBSD.org>
139
140 * gnulib/aclocal-m4-deps.mk: New file.
141 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
142 deterministically.
143
144 2018-09-18 John Baldwin <jhb@FreeBSD.org>
145
146 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
147 KVE_PATH.
148
149 2018-09-18 Tom Tromey <tom@tromey.com>
150
151 * compile/compile-object-load.c (struct
152 link_hash_table_cleanup_data): Add constructor and destructor.
153 Use DISABLE_COPY_AND_ASSIGN.
154 (~link_hash_table_cleanup_data): Rename from
155 link_hash_table_free. Now a destructor.
156 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
157
158 2018-09-18 Tom Tromey <tom@tromey.com>
159
160 * compile/compile-object-run.c (do_module_cleanup): Use delete.
161 * compile/compile-object-load.c (struct munmap_list): Move to
162 header file.
163 (munmap_list::add): Rename from munmap_list_add; rewrite.
164 (munmap_list::~munmap_list): Rename from munmap_list_free.
165 (munmap_listp_free_cleanup): Remove.
166 (compile_object_load): Update.
167 * compile/compile-object-load.h (struct munmap_list): Move from
168 compile-object-load.c. Rewrite.
169
170 2018-09-18 Alan Hayward <alan.hayward@arm.com>
171
172 * aarch64-tdep.c (pass_in_v): Use register size.
173 (aarch64_extract_return_value): Likewise.
174 (aarch64_store_return_value): Likewise.
175
176 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
177
178 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
179 rlim_t.
180
181 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
182
183 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
184 Fix short help line.
185
186 2018-09-17 Tom Tromey <tom@tromey.com>
187
188 PR python/20445:
189 * configure: Rebuild.
190 * configure.ac: Conditionally use -DNDEBUG for Python.
191
192 2018-09-17 Tom Tromey <tom@tromey.com>
193
194 * configure: Rebuild.
195 * configure.ac: Use gmp as a library dependency when checking for
196 mpfr.
197
198 2018-09-17 Pedro Alves <palves@redhat.com>
199
200 * python/py-inferior.c (find_inferior_object): Delete.
201
202 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
203
204 * compile/compile-cplus-types.c
205 (compile_cplus_instance::enter_scope): Don't use new_scope after
206 std::move.
207
208 2018-09-17 Tom Tromey <tom@tromey.com>
209
210 * common/pathstuff.c (get_standard_cache_dir): Use
211 ~/Library/Caches on macOS.
212 * common/pathstuff.h (get_standard_cache_dir): Update comment.
213
214 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
215
216 PR python/23669
217 * breakpoint.c (commands_cmd_element): New.
218 (_initialize_breakpoint): Assign commands_cmd_element.
219 * breakpoint.h (commands_cmd_element): New.
220 * cli/cli-script.c (while_cmd_element, if_command,
221 define_cmd_element): New.
222 (command_name_equals): Remove.
223 (process_next_line): Compare commands by pointer, not by name.
224 (_initialize_cli_script): Assign the various cmd_list_element
225 variables.
226 * compile/compile.c (compile_cmd_element): New.
227 (_initialize_compile): Assign compile_cmd_element.
228 * compile/compile.h (compile_cmd_element): New.
229 * guile/guile.c (guile_cmd_element): New.
230 (install_gdb_commands): Assign guile_cmd_element.
231 * guile/guile.h (guile_cmd_element): New.
232 * python/python.c (python_cmd_element): New.
233 (_initialize_python): Assign python_cmd_element.
234 * python/python.h (python_cmd_element): New.
235 * tracepoint.c (while_stepping_cmd_element): New.
236 (_initialize_tracepoint): Assign while_stepping_cmd_element.
237 * tracepoint.h (while_stepping_cmd_element): New.
238
239 2018-09-17 Tom Tromey <tom@tromey.com>
240
241 * infrun.c (save_infcall_suspend_state): Return
242 infcall_suspend_state_up.
243 (save_infcall_control_state): Return infcall_control_state_up.
244 * inferior.h (save_infcall_suspend_state)
245 (save_infcall_control_state): Declare later. Return unique
246 pointers.
247
248 2018-09-17 Tom Tromey <tom@tromey.com>
249
250 * infrun.c (struct stop_context): Declare constructor,
251 destructor, "changed" method.
252 (stop_context::stop_context): Rename from save_stop_context.
253 (stop_context::~stop_context): Rename from
254 release_stop_context_cleanup.
255 (normal_stop): Update.
256 (stop_context::changed): Rename from stop_context_changed. Return
257 bool.
258
259 2018-09-17 Tom Tromey <tom@tromey.com>
260
261 * inferior.h (struct infcall_suspend_state_deleter): New.
262 (infcall_suspend_state_up): New typedef.
263 (struct infcall_control_state_deleter): New.
264 (infcall_control_state_up): New typedef.
265 (make_cleanup_restore_infcall_suspend_state)
266 (make_cleanup_restore_infcall_control_state): Don't declare.
267 * infcall.c (call_function_by_hand_dummy): Update.
268 * infrun.c (do_restore_infcall_suspend_state_cleanup)
269 (make_cleanup_restore_infcall_suspend_state): Remove.
270 (do_restore_infcall_control_state_cleanup)
271 (make_cleanup_restore_infcall_control_state): Remove.
272
273 2018-09-17 Tom Tromey <tom@tromey.com>
274
275 * gdbthread.h (struct thread_control_state): Add initializer.
276 (class thread_info) <control>: Remove initializer.
277 * inferior.h (struct inferior_control_state): Add initializer.
278 (class inferior) <control>: Remove initializer.
279 (exit_inferior_1): Update.
280 * infrun.c (struct infcall_control_state): Add constructors.
281 (save_infcall_control_state): Use new.
282 (restore_infcall_control_state, discard_infcall_control_state):
283 Use delete.
284
285 2018-09-17 Tom Tromey <tom@tromey.com>
286
287 * infrun.c (struct infcall_suspend_state) <registers>: Now a
288 unique_ptr.
289 <siginfo_data>: Now a unique_xmalloc_ptr.
290 (save_infcall_suspend_state, restore_infcall_suspend_state)
291 (discard_infcall_suspend_state)
292 (get_infcall_suspend_state_regcache): Update.
293
294 2018-09-17 Tom Tromey <tom@tromey.com>
295
296 * gdbthread.h (struct thread_suspend_state): Add initializers.
297 (class thread_info) <suspend>: Remove initializer.
298 * infrun.c (struct infcall_suspend_state): Add initializers.
299 (save_infcall_suspend_state): Use new.
300 (discard_infcall_suspend_state): Use delete.
301
302 2018-09-16 Tom Tromey <tom@tromey.com>
303
304 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
305 Remove.
306 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
307 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
308 (py_varobj_iter_new): Likewise.
309 (py_varobj_get_iterator): Use gdbpy_ref.
310
311 2018-09-16 Tom Tromey <tom@tromey.com>
312
313 * python/py-threadevent.c (py_get_event_thread): Simplify.
314 * python/py-inferior.c (infpy_thread_from_thread_handle):
315 Return immediately after calling thread_to_thread_object. Use
316 Py_RETURN_NONE.
317 (thread_to_thread_object): Set the exception on a NULL return.
318
319 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
320
321 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
322
323 2018-09-16 Tom Tromey <tom@tromey.com>
324
325 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
326 Remove.
327
328 2018-09-16 Tom Tromey <tom@tromey.com>
329
330 * python/python-internal.h (thread_to_thread_object): Change
331 return type.
332 * python/py-inferior.c (thread_to_thread_object): Return a new
333 reference.
334 (infpy_thread_from_thread_handle): Update.
335 * python/py-infthread.c (gdbpy_selected_thread): Update.
336 * python/py-stopevent.c (create_stop_event_object): Update.
337 * python/py-threadevent.c (py_get_event_thread): Return a new
338 reference.
339 (py_get_event_thread): Update.
340 * python/py-event.h (py_get_event_thread): Change return type.
341 * python/py-continueevent.c (create_continue_event_object):
342 Update.
343
344 2018-09-16 Tom Tromey <tom@tromey.com>
345
346 * python/py-progspace.c (pspy_get_objfiles): Update.
347 * python/python-internal.h (objfile_to_objfile_object): Change
348 return type.
349 * python/py-newobjfileevent.c (create_new_objfile_event_object):
350 Update.
351 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
352 Update.
353 * python/python.c (gdbpy_get_current_objfile): Update.
354 (gdbpy_objfiles): Update.
355 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
356 Update.
357 (objfile_to_objfile_object): Return a new reference.
358 * python/py-symtab.c (stpy_get_objfile): Update.
359 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
360 Update.
361
362 2018-09-16 Tom Tromey <tom@tromey.com>
363
364 * python/py-inferior.c (infpy_get_progspace): Update.
365 * python/python-internal.h (pspace_to_pspace_object): Change
366 return type.
367 * python/py-newobjfileevent.c
368 (create_clear_objfiles_event_object): Update.
369 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
370 Update.
371 * python/python.c (gdbpy_get_current_progspace): Update.
372 (gdbpy_progspaces): Update.
373 * python/py-progspace.c (pspace_to_pspace_object): Return a new
374 reference.
375 * python/py-objfile.c (objfpy_get_progspace): Update.
376 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
377 Update.
378
379 2018-09-16 Tom Tromey <tom@tromey.com>
380
381 * python/lib/gdb/__init__.py (current_progspace, objfiles)
382 (solib_name, block_for_pc, find_pc_line): New functions.
383 (execute_unwinders): Update.
384 * python/py-block.c (gdbpy_block_for_pc): Remove.
385 * python/py-inferior.c (infpy_get_progspace): New function.
386 (inferior_object_getset) <progspace>: Add.
387 * python/py-progspace.c (pspy_objfiles): Rewrite.
388 (pspy_solib_name, pspy_block_for_pc)
389 (pspy_find_pc_line, pspy_is_valid): New functions.
390 (progspace_object_methods): Add entries for solib_name,
391 block_for_pc, find_pc_line, is_valid.
392 * python/python-internal.h (gdbpy_block_for_pc)
393 (build_objfiles_list): Don't declare.
394 * python/python.c: Don't include solib.h.
395 (gdbpy_solib_name, gdbpy_find_pc_line)
396 (gdbpy_get_current_progspace, build_objfiles_list)
397 (gdbpy_objfiles): Remove.
398 (GdbMethods) <current_progspace, objfiles, block_for_pc,
399 solib_name, find_pc_line>: Remove entries.
400
401 2018-09-16 Tom Tromey <tom@tromey.com>
402
403 * top.c (new_ui_command): Use GNU style for metasyntactic
404 variables.
405 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
406 variables.
407 * maint.c (maintenance_translate_address): Remove "<>" around
408 text.
409 * interps.c (interpreter_exec_cmd): Use GNU style for
410 metasyntactic variables.
411 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
412 metasyntactic variables.
413 * tracepoint.c (tfind_range_command): Use GNU style for
414 metasyntactic variables.
415 (tfind_outside_command): Likewise.
416 (_initialize_tracepoint): Likewise.
417 * remote.c (extended_remote_target::create_inferior): Use GNU
418 style for metasyntactic variables.
419 * sparc64-tdep.c (adi_examine_command): Use GNU style for
420 metasyntactic variables.
421 (adi_assign_command): Likewise.
422
423 2018-09-16 Tom Tromey <tom@tromey.com>
424
425 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
426 metasyntactic variables. Print message if no disassembler options
427 are available.
428
429 2018-09-15 Tom Tromey <tom@tromey.com>
430
431 * infcmd.c (get_inferior_args): Return const char *.
432 * inferior.h (get_inferior_args): Return type now const.
433 * linux-tdep.c (linux_fill_prpsinfo): Update.
434 * procfs.c (procfs_target::make_corefile_notes): Update.
435
436 2018-09-07 Tom Tromey <tom@tromey.com>
437
438 * python/python.c (execute_gdb_command): Call bpstat_do_actions
439 inside the TRY.
440
441 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
442
443 * nios2-tdep.c (nios2_type_align): New.
444 (nios2_gdb_arch_init): Install type_align hook.
445
446 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
447
448 * eval.c (fake_method::fake_method): Call xzalloc directly for a
449 type that is neither object file owned, nor gdbarch owned.
450 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
451 gdbarch is non-NULL.
452 (alloc_type_instance): Allocate non-objfile owned types on the
453 gdbarch obstack.
454 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
455 using TYPE_ALLOC to ensure memory is allocated on the correct
456 obstack.
457 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
458 obstack, or the gdbarch obstack.
459 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
460
461 2018-09-14 Tom Tromey <tom@tromey.com>
462
463 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
464 block.
465
466 2018-09-14 Tom Tromey <tom@tromey.com>
467
468 * nat/fork-inferior.c (get_startup_shell): Remove "static".
469
470 2018-09-13 Tom Tromey <tom@tromey.com>
471
472 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
473 static.
474
475 2018-09-13 Tom Tromey <tom@tromey.com>
476
477 * exec.c (try_open_exec_file): Use std::string.
478
479 2018-09-13 Tom Tromey <tom@tromey.com>
480
481 * utils.h (gdb_bfd_errmsg): Return std::string.
482 * exec.c (exec_file_attach): Update.
483 * compile/compile-object-load.c (compile_object_load): Update.
484 * utils.c (gdb_bfd_errmsg): Return std::string.
485
486 2018-09-13 Tom Tromey <tom@tromey.com>
487
488 * procfs.c (struct procinfo_deleter): New.
489 (procinfo_up): New typedef.
490 (do_destroy_procinfo_cleanup): Remove.
491 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
492
493 2018-09-13 Tom Tromey <tom@tromey.com>
494
495 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
496
497 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
498 2018-09-13 Tom Tromey <tom@tromey.com>
499
500 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
501 (pspy_get_objfiles): New function.
502 (progspace_object_methods): New.
503 (pspace_object_type): Add tp_methods callback.
504 * python/python-internal.h (build_objfiles_list): New
505 declaration.
506 * python/python.c (build_objfiles_list): New function.
507 (gdbpy_objfiles): Implement using build_objfiles_list.
508 * NEWS: Mention the Progspace.objfiles method.
509
510 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
511
512 * python/py-inferior.c (infpy_get_progspace): New function.
513 (inferior_object_getset): Add progspace property.
514 * NEWS: Mention the new property.
515
516 2018-09-13 Tom Tromey <tom@tromey.com>
517
518 PR rust/23650:
519 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
520
521 2018-09-13 Tom Tromey <tom@tromey.com>
522
523 PR rust/23626:
524 * rust-lang.c (rust_enum_variant): Now static.
525 (rust_empty_enum_p): New function.
526 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
527 Handle empty enum.
528
529 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
530
531 * python/py-inferior.c (infpy_repr): New.
532 (inferior_object_type): Register infpy_repr.
533 * python/py-objfile.c (objfpy_repr): New.
534 (objfile_object_type): Register objfpy_repr.
535
536 2018-09-12 John Baldwin <jhb@FreeBSD.org>
537
538 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
539
540 2018-09-12 John Baldwin <jhb@FreeBSD.org>
541
542 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
543 typo.
544
545 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
546
547 * common/common-utils.c: Don't include '<sys/stat.h>'.
548 (is_regular_file): Move to...
549 * common/filestuff.c (is_regular_file): ... here.
550 * common/common-utils.h (is_regular_file): Move to...
551 * common/filestuff.h (is_regular_file): ... here.
552
553 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
554
555 * skip.c (debug_skip): New variable.
556 (skiplist_entry::do_skip_file_p): Add debug output.
557 (skiplist_entry::do_skip_gfile_p): Likewise.
558 (skiplist_entry::skip_function_p): Likewise.
559 (_initialize_step_skip): Create debug command.
560 * NEWS: Mention set/show debug skip.
561
562 2018-09-11 Xavier Roirand <roirand@adacore.com>
563
564 * darwin-nat.c (should_disable_startup_with_shell):
565 New function.
566 (darwin_nat_target::create_inferior): Add call.
567
568 2018-09-11 Xavier Roirand <roirand@adacore.com>
569
570 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
571 inf_port, msg_state>: Initialize.
572 (struct darwin_thread_info) <signaled, single_step>: Change
573 type and initialize.
574 (struct darwin_thread_info) <event>: Initialize.
575
576 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
577
578 PR gdb/23555
579 PR gdb/23558
580 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
581 guesses.
582
583 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
584
585 Revert:
586 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
587
588 PR gdb/23555
589 PR gdb/23558
590 * gnulib/aclocal.m4: Regenerate.
591 * gnulib/config.in: Regenerate.
592 * gnulib/configure: Regenerate.
593 * gnulib/import/Makefile.am: Update.
594 * gnulib/import/Makefile.in: Update.
595 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
596 * gnulib/import/_Noreturn.h: ... this.
597 * gnulib/import/alloca.in.h: Update.
598 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
599 * gnulib/import/arg-nonnull.h: ... this.
600 * gnulib/import/assure.h: Update.
601 * gnulib/import/at-func.c: Update.
602 * gnulib/import/basename-lgpl.c: Update.
603 * gnulib/import/extra/snippet/c++defs.h: Rename to...
604 * gnulib/import/c++defs.h: ... this.
605 * gnulib/import/canonicalize-lgpl.c: Update.
606 * gnulib/import/cdefs.h: Update.
607 * gnulib/import/chdir-long.c: Update.
608 * gnulib/import/chdir-long.h: Update.
609 * gnulib/import/cloexec.c: Update.
610 * gnulib/import/cloexec.h: Update.
611 * gnulib/import/close.c: Update.
612 * gnulib/import/closedir.c: Update.
613 * gnulib/import/config.charset: Update.
614 * gnulib/import/dirent-private.h: Update.
615 * gnulib/import/dirent.in.h: Update.
616 * gnulib/import/dirfd.c: Update.
617 * gnulib/import/dirname-lgpl.c: Update.
618 * gnulib/import/dirname.h: Update.
619 * gnulib/import/dosname.h: Update.
620 * gnulib/import/dup-safer-flag.c: Update.
621 * gnulib/import/dup-safer.c: Update.
622 * gnulib/import/dup.c: Update.
623 * gnulib/import/dup2.c: Update.
624 * gnulib/import/errno.in.h: Update.
625 * gnulib/import/error.c: Update.
626 * gnulib/import/error.h: Update.
627 * gnulib/import/exitfail.c: Update.
628 * gnulib/import/exitfail.h: Update.
629 * gnulib/import/extra/update-copyright: Update.
630 * gnulib/import/fchdir.c: Update.
631 * gnulib/import/fcntl.c: Update.
632 * gnulib/import/fcntl.in.h: Update.
633 * gnulib/import/fd-hook.c: Update.
634 * gnulib/import/fd-hook.h: Update.
635 * gnulib/import/fd-safer-flag.c: Update.
636 * gnulib/import/fd-safer.c: Update.
637 * gnulib/import/fdopendir.c: Update.
638 * gnulib/import/filename.h: Update.
639 * gnulib/import/filenamecat-lgpl.c: Update.
640 * gnulib/import/filenamecat.h: Update.
641 * gnulib/import/flexmember.h: Update.
642 * gnulib/import/float+.h: Update.
643 * gnulib/import/float.c: Update.
644 * gnulib/import/float.in.h: Update.
645 * gnulib/import/fnmatch.c: Update.
646 * gnulib/import/fnmatch.in.h: Update.
647 * gnulib/import/fnmatch_loop.c: Update.
648 * gnulib/import/fpucw.h: Update.
649 * gnulib/import/frexp.c: Update.
650 * gnulib/import/frexpl.c: Update.
651 * gnulib/import/fstat.c: Update.
652 * gnulib/import/fstatat.c: Update.
653 * gnulib/import/getcwd-lgpl.c: Update.
654 * gnulib/import/getcwd.c: Update.
655 * gnulib/import/getdtablesize.c: Update.
656 * gnulib/import/getlogin_r.c: Update.
657 * gnulib/import/getprogname.c: Update.
658 * gnulib/import/getprogname.h: Update.
659 * gnulib/import/gettext.h: Update.
660 * gnulib/import/gettimeofday.c: Update.
661 * gnulib/import/glob-libc.h: Update.
662 * gnulib/import/glob.c: Update.
663 * gnulib/import/glob.in.h: Update.
664 * gnulib/import/glob_internal.h: Update.
665 * gnulib/import/glob_pattern_p.c: Update.
666 * gnulib/import/globfree.c: Update.
667 * gnulib/import/hard-locale.c: Update.
668 * gnulib/import/hard-locale.h: Update.
669 * gnulib/import/intprops.h: Update.
670 * gnulib/import/inttypes.in.h: Update.
671 * gnulib/import/isnan.c: Update.
672 * gnulib/import/isnand-nolibm.h: Update.
673 * gnulib/import/isnand.c: Update.
674 * gnulib/import/isnanl-nolibm.h: Update.
675 * gnulib/import/isnanl.c: Update.
676 * gnulib/import/itold.c: Update.
677 * gnulib/import/libc-config.h: Update.
678 * gnulib/import/limits.in.h: Update.
679 * gnulib/import/localcharset.c: Update.
680 * gnulib/import/localcharset.h: Update.
681 * gnulib/import/localtime-buffer.c: Update.
682 * gnulib/import/localtime-buffer.h: Update.
683 * gnulib/import/lstat.c: Update.
684 * gnulib/import/m4/00gnulib.m4: Update.
685 * gnulib/import/m4/__inline.m4: Update.
686 * gnulib/import/m4/absolute-header.m4: Update.
687 * gnulib/import/m4/alloca.m4: Update.
688 * gnulib/import/m4/builtin-expect.m4: Update.
689 * gnulib/import/m4/canonicalize.m4: Update.
690 * gnulib/import/m4/chdir-long.m4: Update.
691 * gnulib/import/m4/close.m4: Update.
692 * gnulib/import/m4/closedir.m4: Update.
693 * gnulib/import/m4/configmake.m4: Update.
694 * gnulib/import/m4/d-ino.m4: Update.
695 * gnulib/import/m4/d-type.m4: Update.
696 * gnulib/import/m4/dirent_h.m4: Update.
697 * gnulib/import/m4/dirfd.m4: Update.
698 * gnulib/import/m4/dirname.m4: Update.
699 * gnulib/import/m4/double-slash-root.m4: Update.
700 * gnulib/import/m4/dup.m4: Update.
701 * gnulib/import/m4/dup2.m4: Update.
702 * gnulib/import/m4/eealloc.m4: Update.
703 * gnulib/import/m4/environ.m4: Update.
704 * gnulib/import/m4/errno_h.m4: Update.
705 * gnulib/import/m4/error.m4: Update.
706 * gnulib/import/m4/exponentd.m4: Update.
707 * gnulib/import/m4/exponentl.m4: Update.
708 * gnulib/import/m4/extensions.m4: Update.
709 * gnulib/import/m4/extern-inline.m4: Update.
710 * gnulib/import/m4/fchdir.m4: Update.
711 * gnulib/import/m4/fcntl-o.m4: Update.
712 * gnulib/import/m4/fcntl.m4: Update.
713 * gnulib/import/m4/fcntl_h.m4: Update.
714 * gnulib/import/m4/fdopendir.m4: Update.
715 * gnulib/import/m4/filenamecat.m4: Update.
716 * gnulib/import/m4/flexmember.m4: Update.
717 * gnulib/import/m4/float_h.m4: Update.
718 * gnulib/import/m4/fnmatch.m4: Update.
719 * gnulib/import/m4/fnmatch_h.m4: Update.
720 * gnulib/import/m4/fpieee.m4: Update.
721 * gnulib/import/m4/frexp.m4: Update.
722 * gnulib/import/m4/frexpl.m4: Update.
723 * gnulib/import/m4/fstat.m4: Update.
724 * gnulib/import/m4/fstatat.m4: Update.
725 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
726 * gnulib/import/m4/getcwd-path-max.m4: Update.
727 * gnulib/import/m4/getcwd.m4: Update.
728 * gnulib/import/m4/getdtablesize.m4: Update.
729 * gnulib/import/m4/getlogin.m4: Update.
730 * gnulib/import/m4/getlogin_r.m4: Update.
731 * gnulib/import/m4/getpagesize.m4: Update.
732 * gnulib/import/m4/getprogname.m4: Update.
733 * gnulib/import/m4/gettimeofday.m4: Update.
734 * gnulib/import/m4/glibc21.m4: Update.
735 * gnulib/import/m4/glob.m4: Update.
736 * gnulib/import/m4/glob_h.m4: Update.
737 * gnulib/import/m4/gnulib-cache.m4: Update.
738 * gnulib/import/m4/gnulib-common.m4: Update.
739 * gnulib/import/m4/gnulib-comp.m4: Update.
740 * gnulib/import/m4/gnulib-tool.m4: Update.
741 * gnulib/import/m4/hard-locale.m4: Update.
742 * gnulib/import/m4/include_next.m4: Update.
743 * gnulib/import/m4/inttypes-pri.m4: Update.
744 * gnulib/import/m4/inttypes.m4: Update.
745 * gnulib/import/m4/isnand.m4: Update.
746 * gnulib/import/m4/isnanl.m4: Update.
747 * gnulib/import/m4/largefile.m4: Update.
748 * gnulib/import/m4/limits-h.m4: Update.
749 * gnulib/import/m4/localcharset.m4: Update.
750 * gnulib/import/m4/locale-fr.m4: Update.
751 * gnulib/import/m4/locale-ja.m4: Update.
752 * gnulib/import/m4/locale-zh.m4: Update.
753 * gnulib/import/m4/localtime-buffer.m4: Update.
754 * gnulib/import/m4/longlong.m4: Update.
755 * gnulib/import/m4/lstat.m4: Update.
756 * gnulib/import/m4/malloc.m4: Update.
757 * gnulib/import/m4/malloca.m4: Update.
758 * gnulib/import/m4/math_h.m4: Update.
759 * gnulib/import/m4/mbrtowc.m4: Update.
760 * gnulib/import/m4/mbsinit.m4: Update.
761 * gnulib/import/m4/mbsrtowcs.m4: Update.
762 * gnulib/import/m4/mbstate_t.m4: Update.
763 * gnulib/import/m4/memchr.m4: Update.
764 * gnulib/import/m4/memmem.m4: Update.
765 * gnulib/import/m4/mempcpy.m4: Update.
766 * gnulib/import/m4/memrchr.m4: Update.
767 * gnulib/import/m4/mkdir.m4: Update.
768 * gnulib/import/m4/mkstemp.m4: Update.
769 * gnulib/import/m4/mmap-anon.m4: Update.
770 * gnulib/import/m4/mode_t.m4: Update.
771 * gnulib/import/m4/msvc-inval.m4: Update.
772 * gnulib/import/m4/msvc-nothrow.m4: Update.
773 * gnulib/import/m4/multiarch.m4: Update.
774 * gnulib/import/m4/nocrash.m4: Update.
775 * gnulib/import/m4/off_t.m4: Update.
776 * gnulib/import/m4/onceonly.m4: Update.
777 * gnulib/import/m4/open-cloexec.m4: Update.
778 * gnulib/import/m4/open.m4: Update.
779 * gnulib/import/m4/openat.m4: Update.
780 * gnulib/import/m4/opendir.m4: Update.
781 * gnulib/import/m4/pathmax.m4: Update.
782 * gnulib/import/m4/rawmemchr.m4: Update.
783 * gnulib/import/m4/readdir.m4: Update.
784 * gnulib/import/m4/readlink.m4: Update.
785 * gnulib/import/m4/realloc.m4: Update.
786 * gnulib/import/m4/rename.m4: Update.
787 * gnulib/import/m4/rewinddir.m4: Update.
788 * gnulib/import/m4/rmdir.m4: Update.
789 * gnulib/import/m4/save-cwd.m4: Update.
790 * gnulib/import/m4/secure_getenv.m4: Update.
791 * gnulib/import/m4/setenv.m4: Update.
792 * gnulib/import/m4/signal_h.m4: Update.
793 * gnulib/import/m4/ssize_t.m4: Update.
794 * gnulib/import/m4/stat-time.m4: Update.
795 * gnulib/import/m4/stat.m4: Update.
796 * gnulib/import/m4/std-gnu11.m4: Update.
797 * gnulib/import/m4/stdbool.m4: Update.
798 * gnulib/import/m4/stddef_h.m4: Update.
799 * gnulib/import/m4/stdint.m4: Update.
800 * gnulib/import/m4/stdio_h.m4: Update.
801 * gnulib/import/m4/stdlib_h.m4: Update.
802 * gnulib/import/m4/strchrnul.m4: Update.
803 * gnulib/import/m4/strdup.m4: Update.
804 * gnulib/import/m4/strerror.m4: Update.
805 * gnulib/import/m4/string_h.m4: Update.
806 * gnulib/import/m4/strstr.m4: Update.
807 * gnulib/import/m4/strtok_r.m4: Update.
808 * gnulib/import/m4/sys_socket_h.m4: Update.
809 * gnulib/import/m4/sys_stat_h.m4: Update.
810 * gnulib/import/m4/sys_time_h.m4: Update.
811 * gnulib/import/m4/sys_types_h.m4: Update.
812 * gnulib/import/m4/tempname.m4: Update.
813 * gnulib/import/m4/time_h.m4: Update.
814 * gnulib/import/m4/unistd-safer.m4: Update.
815 * gnulib/import/m4/unistd_h.m4: Update.
816 * gnulib/import/m4/warn-on-use.m4: Update.
817 * gnulib/import/m4/wchar_h.m4: Update.
818 * gnulib/import/m4/wchar_t.m4: Update.
819 * gnulib/import/m4/wctype_h.m4: Update.
820 * gnulib/import/m4/wint_t.m4: Update.
821 * gnulib/import/malloc.c: Update.
822 * gnulib/import/malloc/scratch_buffer.h: Update.
823 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
824 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
825 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
826 * gnulib/import/malloca.c: Update.
827 * gnulib/import/malloca.h: Update.
828 * gnulib/import/malloca.valgrind: Update.
829 * gnulib/import/math.in.h: Update.
830 * gnulib/import/mbrtowc.c: Update.
831 * gnulib/import/mbsinit.c: Update.
832 * gnulib/import/mbsrtowcs-impl.h: Update.
833 * gnulib/import/mbsrtowcs-state.c: Update.
834 * gnulib/import/mbsrtowcs.c: Update.
835 * gnulib/import/memchr.c: Update.
836 * gnulib/import/memmem.c: Update.
837 * gnulib/import/mempcpy.c: Update.
838 * gnulib/import/memrchr.c: Update.
839 * gnulib/import/mkdir.c: Update.
840 * gnulib/import/mkstemp.c: Update.
841 * gnulib/import/msvc-inval.c: Update.
842 * gnulib/import/msvc-inval.h: Update.
843 * gnulib/import/msvc-nothrow.c: Update.
844 * gnulib/import/msvc-nothrow.h: Update.
845 * gnulib/import/open.c: Update.
846 * gnulib/import/openat-die.c: Update.
847 * gnulib/import/openat-priv.h: Update.
848 * gnulib/import/openat-proc.c: Update.
849 * gnulib/import/openat.c: Update.
850 * gnulib/import/openat.h: Update.
851 * gnulib/import/opendir.c: Update.
852 * gnulib/import/pathmax.h: Update.
853 * gnulib/import/pipe-safer.c: Update.
854 * gnulib/import/rawmemchr.c: Update.
855 * gnulib/import/readdir.c: Update.
856 * gnulib/import/readlink.c: Update.
857 * gnulib/import/realloc.c: Update.
858 * gnulib/import/ref-add.sin: Update.
859 * gnulib/import/ref-del.sin: Update.
860 * gnulib/import/rename.c: Update.
861 * gnulib/import/rewinddir.c: Update.
862 * gnulib/import/rmdir.c: Update.
863 * gnulib/import/same-inode.h: Update.
864 * gnulib/import/save-cwd.c: Update.
865 * gnulib/import/save-cwd.h: Update.
866 * gnulib/import/scratch_buffer.h: Update.
867 * gnulib/import/secure_getenv.c: Update.
868 * gnulib/import/setenv.c: Update.
869 * gnulib/import/signal.in.h: Update.
870 * gnulib/import/stat-time.c: Update.
871 * gnulib/import/stat-time.h: Update.
872 * gnulib/import/stat-w32.c: Update.
873 * gnulib/import/stat-w32.h: Update.
874 * gnulib/import/stat.c: Update.
875 * gnulib/import/stdbool.in.h: Update.
876 * gnulib/import/stddef.in.h: Update.
877 * gnulib/import/stdint.in.h: Update.
878 * gnulib/import/stdio.in.h: Update.
879 * gnulib/import/stdlib.in.h: Update.
880 * gnulib/import/str-two-way.h: Update.
881 * gnulib/import/strchrnul.c: Update.
882 * gnulib/import/strdup.c: Update.
883 * gnulib/import/streq.h: Update.
884 * gnulib/import/strerror-override.c: Update.
885 * gnulib/import/strerror-override.h: Update.
886 * gnulib/import/strerror.c: Update.
887 * gnulib/import/string.in.h: Update.
888 * gnulib/import/stripslash.c: Update.
889 * gnulib/import/strnlen1.c: Update.
890 * gnulib/import/strnlen1.h: Update.
891 * gnulib/import/strstr.c: Update.
892 * gnulib/import/strtok_r.c: Update.
893 * gnulib/import/sys_stat.in.h: Update.
894 * gnulib/import/sys_time.in.h: Update.
895 * gnulib/import/sys_types.in.h: Update.
896 * gnulib/import/tempname.c: Update.
897 * gnulib/import/tempname.h: Update.
898 * gnulib/import/time.in.h: Update.
899 * gnulib/import/unistd--.h: Update.
900 * gnulib/import/unistd-safer.h: Update.
901 * gnulib/import/unistd.in.h: Update.
902 * gnulib/import/unsetenv.c: Update.
903 * gnulib/import/verify.h: Update.
904 * gnulib/import/extra/snippet/warn-on-use.h: Update.
905 * gnulib/import/wchar.in.h: Update.
906 * gnulib/import/wctype.in.h: Update.
907 * gnulib/import/xalloc-oversized.h: Update.
908 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
909 "53e2c179f26a890fa6685af4b6c1397ee370433b".
910
911 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
912
913 * record-btrace.c (get_thread_current_frame): Remove
914 old_inferior_ptid.
915
916 2018-09-10 Jerome Guitton <guitton@adacore.com>
917
918 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
919 with check_tag to 1 if and only if the type is tagged and the
920 component being searched cannot been found in the current
921 view. Otherwise, always call ada_to_fixed_type with
922 check_tag to 0.
923
924 2018-09-10 Xavier Roirand <roirand@adacore.com>
925
926 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
927 declaration.
928 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
929 * ada-varobj.c (ada_varobj_get_number_of_children,
930 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
931
932 2018-09-10 Xavier Roirand <roirand@adacore.com>
933
934 * ada-valprint.c (ada_value_print): Use type instead of
935 enclosing type.
936
937 2018-09-10 Xavier Roirand <roirand@adacore.com>
938
939 * ada-lang.c (ada_value_subscript): Handle case when parameter is
940 an array of access to unconstrained array.
941
942 2018-09-10 Xavier Roirand <roirand@adacore.com>
943
944 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
945 (ada_check_typedef): Use it.
946
947 2018-09-10 Xavier Roirand <roirand@adacore.com>
948
949 * ada-varobj.c (ada_varobj_describe_struct_child)
950 (ada_varobj_describe_child): Handle union case like struct one.
951
952 2018-09-10 Tom Tromey <tom@tromey.com>
953
954 PR python/18380:
955 * python/python.c (_initialize_python): Make example in "python"
956 help work in Python 3.
957
958 2018-09-10 Eli Zaretskii <eliz@gnu.org>
959
960 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
961 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
962 $(EXEEXT) to the script, as it is not a program.
963
964 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
965
966 * python/py-prettyprint.c (pretty_print_one_value): Return
967 gdbpy_ref<>.
968 (print_string_repr): Adjust.
969 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
970 * python/python-internal.h (apply_varobj_pretty_printer): Return
971 gdbpy_ref<>.
972 * varobj.c (varobj_value_get_print_value): Adjust.
973
974 2018-09-08 Tom Tromey <tom@tromey.com>
975
976 PR python/16047:
977 * python/py-prettyprint.c (pretty_print_one_value): Check for
978 to_string method.
979
980 2018-09-08 Joel Brobecker <brobecker@adacore.com>
981
982 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
983 replace_operator_with_call.
984
985 2018-09-08 Joel Brobecker <brobecker@adacore.com>
986
987 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
988
989 2018-09-08 Joel Brobecker <brobecker@adacore.com>
990
991 * ada-typeprint.c (print_range): Print the bounds using TYPE
992 rather than its TYPE_TARGET_TYPE.
993
994 2018-09-08 Joel Brobecker <brobecker@adacore.com>
995
996 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
997 call to ada_to_fixed_value_create.
998
999 2018-09-08 Jerome Guitton <guitton@adacore.com>
1000
1001 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1002
1003 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1004
1005 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1006 by calls to error.
1007
1008 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1009
1010 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1011 Move update of loop variable "fi".
1012
1013 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1014
1015 * ada-lang.c (value_assign_to_component): In the case of
1016 big-endian targets, extract the bits of the given VAL
1017 using an src_offset of zero if container is not a scalar.
1018
1019 2018-09-06 Simon Ser <contact@emersion.fr>
1020
1021 PR gdb/23105
1022 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1023 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1024 * fbsd-tdep.c (fbsd_make_note_desc): New.
1025 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1026 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1027 * target.h (enum target_object) Add FreeBSD-specific
1028 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1029
1030 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1031
1032 * compile/compile-c.h (generate_c_for_variable_locations):
1033 Change reference to pointer.
1034 * compile/compile-c-support.c (compile_program) <compute>:
1035 Likewise.
1036 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1037 (generate_c_for_for_one_variable): Likewise
1038 (generate_c_for_variable_locations): Likewise
1039 * compile/compile-c-types.c (compile_c_instance::convert_type):
1040 Likewise
1041 * compile/compile-cplus-symbols.c (convert_one_symbol):
1042 std::move the scope passed to enter_scope.
1043 * compile/compile-cplus-types.c
1044 (compile_cplus_instance::enter_scope): Make parameter
1045 rvalue-reference.
1046 (compile_cplus_instance::new_scope): Change reference to
1047 pointer.
1048 (compile_cplus_instance::convert_type): Likewise
1049 (compile_cplus_convert_typedef): std::move the scope passed to
1050 enter_scope.
1051 (compile_cplus_convert_struct_or_union): Likewise.
1052 (compile_cplus_convert_enum): Likewise.
1053 (compile_cplus_convert_namespace): Likewise.
1054 * compile/compile-cplus.h (compile_cplus_instance)
1055 <enter_scope>: Make parameter rvalue-reference.
1056 * compile/compile-internal.h (compile_instance)
1057 <get_cached_type>: Likewise
1058 * compile/compile-loc2c.c (push): Likewise
1059 (pushf): Likewise
1060 (unary): Likewise
1061 (binary): Likewise
1062 (print_label): Likewise
1063 (pushf_register_address): Likewise
1064 (pushf_register): Likewise
1065 (do_compile_dwarf_expr_to_c): Likewise
1066 (compile_dwarf_expr_to_c): Likewise
1067 (compile_dwarf_bounds_to_c): Likewise
1068 * compile/compile.c (compile_instance::get_cached_type):
1069 Likewise
1070 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1071 (compile_dwarf_bounds_to_c): Likewise
1072 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1073 (dwarf2_compile_property_to_c): Likewise
1074 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1075 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1076 Likewise
1077
1078 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1079
1080 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1081 * tui/tui-data.c (init_content_element): Don't initialize it.
1082
1083 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1084
1085 * tui/tui-data.h (struct tui_win_info)
1086 <detail::opaque>: Remove.
1087 * tui/tui-data.c (init_win_info): Remove assignment.
1088
1089 2018-09-05 Tom Tromey <tom@tromey.com>
1090
1091 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1092 -Wformat-nonliteral.
1093 * target-float.c (host_float_ops<T>::to_string)
1094 (host_float_ops<T>::from_string): Use
1095 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1096 * configure: Rebuild.
1097
1098 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1099
1100 * printcmd.c (printf_c_string): Use
1101 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1102 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1103
1104 2018-09-05 Tom Tromey <tom@tromey.com>
1105
1106 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1107
1108 2018-09-05 Tom de Vries <tdevries@suse.de>
1109
1110 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1111 with resolve_abstract_p == true.
1112 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1113 defaulting to false. Propagate resolve_abstract_p to
1114 dwarf2_fetch_die_loc_sect_off.
1115 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1116 parameter, defaulting to false.
1117 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1118 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1119 parameter.
1120 * dwarf2read.h (struct die_info): Forward-declare.
1121 (die_info_ptr): New typedef.
1122 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1123
1124 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1125
1126 GDB 8.2 released.
1127
1128 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1129 Pedro Alves <palves@redhat.com>
1130
1131 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1132 "aclocal-m4-deps.mk". Include file here.
1133 $(srcdir)/aclocal.m4: Add "configure.ac".
1134 * gnulib/aclocal-m4-deps.mk: New file.
1135 * gnulib/update-gnulib.sh: Automatically update
1136 "aclocal-m4-deps.mk".
1137
1138 2018-09-04 Tom Tromey <tom@tromey.com>
1139
1140 * configure: Rebuild.
1141 * configure.ac: Remove multi-ice code.
1142
1143 2018-09-04 Tom Tromey <tom@tromey.com>
1144
1145 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1146 (ada-exp.o): Update.
1147
1148 2018-09-04 Tom Tromey <tom@tromey.com>
1149
1150 * Makefile.in (printcmd.o, target-float.o): Remove.
1151 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1152
1153 2018-09-04 Tom Tromey <tom@tromey.com>
1154
1155 * gnulib/Makefile.in: Remove obsolete comment.
1156 * Makefile.in: Remove obsolete comment.
1157
1158 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1159
1160 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1161 line with '+'.
1162
1163 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1164
1165 * riscv-tdep.c: Add 'prologue-value.h' include.
1166 (struct riscv_unwind_cache): New struct.
1167 (riscv_debug_unwinder): New global.
1168 (riscv_scan_prologue): Update arguments, capture register details
1169 from prologue scan.
1170 (riscv_skip_prologue): Reformat arguments line, move end of
1171 prologue calculation into riscv_scan_prologue.
1172 (riscv_frame_cache): Update return type, create
1173 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1174 details.
1175 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1176 (riscv_frame_prev_register): Use the trad_frame within the
1177 riscv_unwind_cache.
1178 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1179 flag.
1180
1181 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1182
1183 * trad-frame.h (trad_frame_set_realreg): Declare.
1184 (trad_frame_set_addr): Declare.
1185 * trad-frame.c (trad_frame_set_realreg): Define new function.
1186 (trad_frame_set_addr): Define new function.
1187 (trad_frame_set_reg_realreg): Use new function.
1188 (trad_frame_set_reg_addr): Use new function.
1189
1190 2018-09-01 Keith Seitz <keiths@redhat.com>
1191
1192 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1193 pulongest instead of "%lld".
1194 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1195 ATTRIBUTE_UNUSED.
1196
1197 2018-08-31 Tom Tromey <tom@tromey.com>
1198
1199 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1200 variant part type.
1201
1202 2018-08-31 Pedro Alves <palves@redhat.com>
1203
1204 * gdbarch.h: Regenerate.
1205
1206 2018-08-31 Pedro Alves <palves@redhat.com>
1207
1208 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1209 * target.h (Hardware watchpoint interfaces): Describe
1210 continuable/steppable/non-steppable watchpoints.
1211 * gdbarch.h, gdbarch.c: Regenerate.
1212
1213 2018-08-31 Pedro Alves <palves@redhat.com>
1214
1215 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1216 Delete.
1217 * s390-linux-nat.c
1218 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1219 * target.h (target_ops::have_continuable_watchpoint): Delete.
1220 (target_have_continuable_watchpoint): Delete.
1221 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1222 * target-delegates.c: Regenerate.
1223
1224 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1225
1226 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1227 the files present in "gnulib/import/m4/".
1228
1229 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1230
1231 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1232 c.sw, c.swsp, and c.sdsp.
1233
1234 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1235
1236 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1237 (riscv_read_misa_reg): Don't cache value read into inferior data.
1238 (riscv_new_inferior_data): Delete.
1239 (riscv_inferior_data_cleanup): Delete.
1240 (riscv_inferior_data): Delete.
1241 (riscv_invalidate_inferior_data): Delete.
1242 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1243
1244 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1245
1246 * compile/compile-cplus-types.c
1247 (compile_cplus_instance::leave_scope): Take the address of scope
1248 object.
1249 (compile_cplus_instance::convert_qualified_base): Compare quals
1250 to 0.
1251
1252 2018-08-30 Keith Seitz <keiths@redhat.com>
1253
1254 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1255 Use "%s" and host_address_to_string instead of "%p" in printf.
1256
1257 2018-08-29 Keith Seitz <keiths@redhat.com>
1258
1259 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1260 and compile-cplus-types.c.
1261 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1262 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1263 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1264 Declare.
1265 * compile/compile-c-support.c: Include compile-cplus.h.
1266 (load_libcompile): Templatize.
1267 (get_compile_context): "New" function.
1268 (c_get_compile_context): Use get_compile_context.
1269 (cplus_get_compile_context): New function.
1270 (cplus_push_user_expression, cplus_pop_user_expression)
1271 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1272 (cplus_compute_program): Define new structs/functions.
1273 * compile/compile-cplus-symmbols.c: New file.
1274 * compile/compile-cplus-types.c: New file.
1275 * compile/compile-cplus.h: New file.
1276 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1277 Declare.
1278 * compile/compile-object-load.c (get_out_value_type): Use
1279 strncmp_iw when comparing symbol names.
1280 (compile_object_load): Add mst_bss and mst_data.
1281 * compile/compile.c (_initialize_compile): Remove
1282 -Wno-implicit-function-declaration from `compile_args'.
1283 * compile/gcc-cp-plugin.h: New file.
1284 * NEWS: Mention C++ compile support and new debug options.
1285
1286 2018-08-29 Keith Seitz <keiths@redhat.com>
1287
1288 * linespec.c (collect_info::add_symbol): Make virtual.
1289 (struct symbol_searcher_collect_info): New struct.
1290 (symbol_searcher::find_all_symbols): New method.
1291 * symtab.h (class symbol_searcher): New class.
1292
1293 2018-08-29 Keith Seitz <keiths@redhat.com>
1294
1295 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1296 Change to vector of block_symbol. Update all users.
1297 (struct collect_info) <symbols>: Likewise.
1298 (collect_info::add_symbol): Take block_symbol as argument.
1299 Update all callers.
1300 (decode_compound_collector) <m_symbols>: Change type to vector
1301 of block_symbol. Update all users.
1302 (decode_compound_collector::operator ()): Change parameter type
1303 to block_symbol.
1304 (find_method, find_function_symbols, find_linespec_symbols)
1305 (find_label_symbols_in_block, find_label_symbols): Change symbol
1306 vectors to block_symbol vectors.
1307 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1308 block_symbol.
1309
1310 2018-08-29 Keith Seitz <keiths@redhat.com>
1311
1312 * linespec.c (symbolp): Remove typedef and VEC definitions.
1313 (bound_minimal_symbol_d): Likewise.
1314
1315 2018-08-29 Keith Seitz <keiths@redhat.com>
1316
1317 * linespec.c (decode_compound_collector::decode_compound_collector):
1318 Remove initialization for `m_symtabs'.
1319 (decode_compound_collector::release_symbols): Change return type
1320 to std::vector. Update all callers.
1321 (class decode_compound_collector) <m_symbols>: Change type to
1322 std::vector.
1323 (lookup_prefix_sym): Change return type to std::vector. Update all
1324 callers.
1325 (compare_symbols): Remove.
1326 (std_compare_symbols): Rename to `compare_symbols'.
1327 (find_method): Change `sym_classes' parameter to std::vector.
1328 Update all callers. Use std::sort to sort sym_classes.
1329 (find_linespec_symbols): Remove cleanup.
1330
1331 2018-08-29 Keith Seitz <keiths@redhat.com>
1332
1333 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1334 std::vector. Update all users.
1335 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1336 (struct collect_info) <minimal_symbols>: Likewise.
1337 (compare_msymbols): Return bool. Change parameters to const
1338 bound_minimal_symbol references.
1339 (find_method, find_function_symbols, find_linespec_symbols): Change
1340 `minsyms' parameter to std::vector. Update all callers.
1341
1342 2018-08-29 Keith Seitz <keiths@redhat.com>
1343
1344 * linespec.c (struct linespec) <label_symbols>: Change type to
1345 std::vector. Update all users.
1346 (find_label_symbols_in_block): Change `result' parameter to
1347 std::vector. Update all callers.
1348 (find_label_symbols): Return std::vector. Update all callers.
1349
1350 2018-08-29 Keith Seitz <keiths@redhat.com>
1351
1352 * linespec.c (struct linespec) <function_symbols>: Change type to
1353 std::vector. Update all users.
1354 (struct collect_info) <function_symbols>: Likewise.
1355 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1356 (std_compare_symbols): New function.
1357 (find_method, find_function_symbols, find_linespec_symbols)
1358 (find_label_symbols_in_block): Change `symbols' parameter to
1359 std::vector. Update all callers.
1360 (find_label_symbols): Likewise for `function_symbols' and
1361 `label_funcs_ret'.
1362
1363 2018-08-29 Keith Seitz <keiths@redhat.com>
1364
1365 * linespec.c (symtab_vector_up): Define.
1366 (struct linespec) <file_symtabs>: Change type to std::vector *.
1367 Update all uses.
1368 (struct collect_info) <file_symtabs>: Likewise.
1369 (collect_symtabs_from_filename): Return symtab_vector_up.
1370 Update all callers.
1371 (decode_objc): Remove cleanup.
1372 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1373 (symtab_collector::release_symtabs): Return symtab_vector_up.
1374 Update all callers.
1375 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1376 Update all users.
1377 (collect_symtabs_from_filename, symtabs_from_filename): Return
1378 symtab_vector_up. Update all callers.
1379
1380 2018-08-29 Tom Tromey <tom@tromey.com>
1381
1382 * csky-tdep.c (csky_analyze_prologue): Use
1383 core_addr_to_string_nz.
1384
1385 2018-08-29 Tom Tromey <tom@tromey.com>
1386
1387 * windows-nat.c (struct xlate_exception) <them>: Change type to
1388 DWORD.
1389 (xlate): Fix formatting. Remove last entry.
1390 (struct xlate_exception, xlate): Comment out.
1391 (windows_nat_target::resume): Use ranged for.
1392
1393 2018-08-29 Jim Wilson <jimw@sifive.com>
1394
1395 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1396 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1397 of NT_PRFPREG.
1398 (riscv_linux_nat_target::store_registers): Likewise.
1399
1400 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1401
1402 PR gdb/23555
1403 PR gdb/23558
1404 * gnulib/aclocal.m4: Regenerate.
1405 * gnulib/config.in: Regenerate.
1406 * gnulib/configure: Regenerate.
1407 * gnulib/import/Makefile.am: Update.
1408 * gnulib/import/Makefile.in: Update.
1409 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1410 * gnulib/import/_Noreturn.h: ... this.
1411 * gnulib/import/alloca.in.h: Update.
1412 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1413 * gnulib/import/arg-nonnull.h: ... this.
1414 * gnulib/import/assure.h: Update.
1415 * gnulib/import/at-func.c: Update.
1416 * gnulib/import/basename-lgpl.c: Update.
1417 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1418 * gnulib/import/c++defs.h: ... this.
1419 * gnulib/import/canonicalize-lgpl.c: Update.
1420 * gnulib/import/cdefs.h: Update.
1421 * gnulib/import/chdir-long.c: Update.
1422 * gnulib/import/chdir-long.h: Update.
1423 * gnulib/import/cloexec.c: Update.
1424 * gnulib/import/cloexec.h: Update.
1425 * gnulib/import/close.c: Update.
1426 * gnulib/import/closedir.c: Update.
1427 * gnulib/import/config.charset: Update.
1428 * gnulib/import/dirent-private.h: Update.
1429 * gnulib/import/dirent.in.h: Update.
1430 * gnulib/import/dirfd.c: Update.
1431 * gnulib/import/dirname-lgpl.c: Update.
1432 * gnulib/import/dirname.h: Update.
1433 * gnulib/import/dosname.h: Update.
1434 * gnulib/import/dup-safer-flag.c: Update.
1435 * gnulib/import/dup-safer.c: Update.
1436 * gnulib/import/dup.c: Update.
1437 * gnulib/import/dup2.c: Update.
1438 * gnulib/import/errno.in.h: Update.
1439 * gnulib/import/error.c: Update.
1440 * gnulib/import/error.h: Update.
1441 * gnulib/import/exitfail.c: Update.
1442 * gnulib/import/exitfail.h: Update.
1443 * gnulib/import/extra/update-copyright: Update.
1444 * gnulib/import/fchdir.c: Update.
1445 * gnulib/import/fcntl.c: Update.
1446 * gnulib/import/fcntl.in.h: Update.
1447 * gnulib/import/fd-hook.c: Update.
1448 * gnulib/import/fd-hook.h: Update.
1449 * gnulib/import/fd-safer-flag.c: Update.
1450 * gnulib/import/fd-safer.c: Update.
1451 * gnulib/import/fdopendir.c: Update.
1452 * gnulib/import/filename.h: Update.
1453 * gnulib/import/filenamecat-lgpl.c: Update.
1454 * gnulib/import/filenamecat.h: Update.
1455 * gnulib/import/flexmember.h: Update.
1456 * gnulib/import/float+.h: Update.
1457 * gnulib/import/float.c: Update.
1458 * gnulib/import/float.in.h: Update.
1459 * gnulib/import/fnmatch.c: Update.
1460 * gnulib/import/fnmatch.in.h: Update.
1461 * gnulib/import/fnmatch_loop.c: Update.
1462 * gnulib/import/fpucw.h: Update.
1463 * gnulib/import/frexp.c: Update.
1464 * gnulib/import/frexpl.c: Update.
1465 * gnulib/import/fstat.c: Update.
1466 * gnulib/import/fstatat.c: Update.
1467 * gnulib/import/getcwd-lgpl.c: Update.
1468 * gnulib/import/getcwd.c: Update.
1469 * gnulib/import/getdtablesize.c: Update.
1470 * gnulib/import/getlogin_r.c: Update.
1471 * gnulib/import/getprogname.c: Update.
1472 * gnulib/import/getprogname.h: Update.
1473 * gnulib/import/gettext.h: Update.
1474 * gnulib/import/gettimeofday.c: Update.
1475 * gnulib/import/glob-libc.h: Update.
1476 * gnulib/import/glob.c: Update.
1477 * gnulib/import/glob.in.h: Update.
1478 * gnulib/import/glob_internal.h: Update.
1479 * gnulib/import/glob_pattern_p.c: Update.
1480 * gnulib/import/globfree.c: Update.
1481 * gnulib/import/hard-locale.c: Update.
1482 * gnulib/import/hard-locale.h: Update.
1483 * gnulib/import/intprops.h: Update.
1484 * gnulib/import/inttypes.in.h: Update.
1485 * gnulib/import/isnan.c: Update.
1486 * gnulib/import/isnand-nolibm.h: Update.
1487 * gnulib/import/isnand.c: Update.
1488 * gnulib/import/isnanl-nolibm.h: Update.
1489 * gnulib/import/isnanl.c: Update.
1490 * gnulib/import/itold.c: Update.
1491 * gnulib/import/libc-config.h: Update.
1492 * gnulib/import/limits.in.h: Update.
1493 * gnulib/import/localcharset.c: Update.
1494 * gnulib/import/localcharset.h: Update.
1495 * gnulib/import/localtime-buffer.c: Update.
1496 * gnulib/import/localtime-buffer.h: Update.
1497 * gnulib/import/lstat.c: Update.
1498 * gnulib/import/m4/00gnulib.m4: Update.
1499 * gnulib/import/m4/__inline.m4: Update.
1500 * gnulib/import/m4/absolute-header.m4: Update.
1501 * gnulib/import/m4/alloca.m4: Update.
1502 * gnulib/import/m4/builtin-expect.m4: Update.
1503 * gnulib/import/m4/canonicalize.m4: Update.
1504 * gnulib/import/m4/chdir-long.m4: Update.
1505 * gnulib/import/m4/close.m4: Update.
1506 * gnulib/import/m4/closedir.m4: Update.
1507 * gnulib/import/m4/configmake.m4: Update.
1508 * gnulib/import/m4/d-ino.m4: Update.
1509 * gnulib/import/m4/d-type.m4: Update.
1510 * gnulib/import/m4/dirent_h.m4: Update.
1511 * gnulib/import/m4/dirfd.m4: Update.
1512 * gnulib/import/m4/dirname.m4: Update.
1513 * gnulib/import/m4/double-slash-root.m4: Update.
1514 * gnulib/import/m4/dup.m4: Update.
1515 * gnulib/import/m4/dup2.m4: Update.
1516 * gnulib/import/m4/eealloc.m4: Update.
1517 * gnulib/import/m4/environ.m4: Update.
1518 * gnulib/import/m4/errno_h.m4: Update.
1519 * gnulib/import/m4/error.m4: Update.
1520 * gnulib/import/m4/exponentd.m4: Update.
1521 * gnulib/import/m4/exponentl.m4: Update.
1522 * gnulib/import/m4/extensions.m4: Update.
1523 * gnulib/import/m4/extern-inline.m4: Update.
1524 * gnulib/import/m4/fchdir.m4: Update.
1525 * gnulib/import/m4/fcntl-o.m4: Update.
1526 * gnulib/import/m4/fcntl.m4: Update.
1527 * gnulib/import/m4/fcntl_h.m4: Update.
1528 * gnulib/import/m4/fdopendir.m4: Update.
1529 * gnulib/import/m4/filenamecat.m4: Update.
1530 * gnulib/import/m4/flexmember.m4: Update.
1531 * gnulib/import/m4/float_h.m4: Update.
1532 * gnulib/import/m4/fnmatch.m4: Update.
1533 * gnulib/import/m4/fnmatch_h.m4: Update.
1534 * gnulib/import/m4/fpieee.m4: Update.
1535 * gnulib/import/m4/frexp.m4: Update.
1536 * gnulib/import/m4/frexpl.m4: Update.
1537 * gnulib/import/m4/fstat.m4: Update.
1538 * gnulib/import/m4/fstatat.m4: Update.
1539 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1540 * gnulib/import/m4/getcwd-path-max.m4: Update.
1541 * gnulib/import/m4/getcwd.m4: Update.
1542 * gnulib/import/m4/getdtablesize.m4: Update.
1543 * gnulib/import/m4/getlogin.m4: Update.
1544 * gnulib/import/m4/getlogin_r.m4: Update.
1545 * gnulib/import/m4/getpagesize.m4: Update.
1546 * gnulib/import/m4/getprogname.m4: Update.
1547 * gnulib/import/m4/gettimeofday.m4: Update.
1548 * gnulib/import/m4/glibc21.m4: Update.
1549 * gnulib/import/m4/glob.m4: Update.
1550 * gnulib/import/m4/glob_h.m4: Update.
1551 * gnulib/import/m4/gnulib-cache.m4: Update.
1552 * gnulib/import/m4/gnulib-common.m4: Update.
1553 * gnulib/import/m4/gnulib-comp.m4: Update.
1554 * gnulib/import/m4/gnulib-tool.m4: Update.
1555 * gnulib/import/m4/hard-locale.m4: Update.
1556 * gnulib/import/m4/include_next.m4: Update.
1557 * gnulib/import/m4/inttypes-pri.m4: Update.
1558 * gnulib/import/m4/inttypes.m4: Update.
1559 * gnulib/import/m4/isnand.m4: Update.
1560 * gnulib/import/m4/isnanl.m4: Update.
1561 * gnulib/import/m4/largefile.m4: Update.
1562 * gnulib/import/m4/limits-h.m4: Update.
1563 * gnulib/import/m4/localcharset.m4: Update.
1564 * gnulib/import/m4/locale-fr.m4: Update.
1565 * gnulib/import/m4/locale-ja.m4: Update.
1566 * gnulib/import/m4/locale-zh.m4: Update.
1567 * gnulib/import/m4/localtime-buffer.m4: Update.
1568 * gnulib/import/m4/longlong.m4: Update.
1569 * gnulib/import/m4/lstat.m4: Update.
1570 * gnulib/import/m4/malloc.m4: Update.
1571 * gnulib/import/m4/malloca.m4: Update.
1572 * gnulib/import/m4/math_h.m4: Update.
1573 * gnulib/import/m4/mbrtowc.m4: Update.
1574 * gnulib/import/m4/mbsinit.m4: Update.
1575 * gnulib/import/m4/mbsrtowcs.m4: Update.
1576 * gnulib/import/m4/mbstate_t.m4: Update.
1577 * gnulib/import/m4/memchr.m4: Update.
1578 * gnulib/import/m4/memmem.m4: Update.
1579 * gnulib/import/m4/mempcpy.m4: Update.
1580 * gnulib/import/m4/memrchr.m4: Update.
1581 * gnulib/import/m4/mkdir.m4: Update.
1582 * gnulib/import/m4/mkstemp.m4: Update.
1583 * gnulib/import/m4/mmap-anon.m4: Update.
1584 * gnulib/import/m4/mode_t.m4: Update.
1585 * gnulib/import/m4/msvc-inval.m4: Update.
1586 * gnulib/import/m4/msvc-nothrow.m4: Update.
1587 * gnulib/import/m4/multiarch.m4: Update.
1588 * gnulib/import/m4/nocrash.m4: Update.
1589 * gnulib/import/m4/off_t.m4: Update.
1590 * gnulib/import/m4/onceonly.m4: Update.
1591 * gnulib/import/m4/open-cloexec.m4: Update.
1592 * gnulib/import/m4/open.m4: Update.
1593 * gnulib/import/m4/openat.m4: Update.
1594 * gnulib/import/m4/opendir.m4: Update.
1595 * gnulib/import/m4/pathmax.m4: Update.
1596 * gnulib/import/m4/rawmemchr.m4: Update.
1597 * gnulib/import/m4/readdir.m4: Update.
1598 * gnulib/import/m4/readlink.m4: Update.
1599 * gnulib/import/m4/realloc.m4: Update.
1600 * gnulib/import/m4/rename.m4: Update.
1601 * gnulib/import/m4/rewinddir.m4: Update.
1602 * gnulib/import/m4/rmdir.m4: Update.
1603 * gnulib/import/m4/save-cwd.m4: Update.
1604 * gnulib/import/m4/secure_getenv.m4: Update.
1605 * gnulib/import/m4/setenv.m4: Update.
1606 * gnulib/import/m4/signal_h.m4: Update.
1607 * gnulib/import/m4/ssize_t.m4: Update.
1608 * gnulib/import/m4/stat-time.m4: Update.
1609 * gnulib/import/m4/stat.m4: Update.
1610 * gnulib/import/m4/std-gnu11.m4: Update.
1611 * gnulib/import/m4/stdbool.m4: Update.
1612 * gnulib/import/m4/stddef_h.m4: Update.
1613 * gnulib/import/m4/stdint.m4: Update.
1614 * gnulib/import/m4/stdio_h.m4: Update.
1615 * gnulib/import/m4/stdlib_h.m4: Update.
1616 * gnulib/import/m4/strchrnul.m4: Update.
1617 * gnulib/import/m4/strdup.m4: Update.
1618 * gnulib/import/m4/strerror.m4: Update.
1619 * gnulib/import/m4/string_h.m4: Update.
1620 * gnulib/import/m4/strstr.m4: Update.
1621 * gnulib/import/m4/strtok_r.m4: Update.
1622 * gnulib/import/m4/sys_socket_h.m4: Update.
1623 * gnulib/import/m4/sys_stat_h.m4: Update.
1624 * gnulib/import/m4/sys_time_h.m4: Update.
1625 * gnulib/import/m4/sys_types_h.m4: Update.
1626 * gnulib/import/m4/tempname.m4: Update.
1627 * gnulib/import/m4/time_h.m4: Update.
1628 * gnulib/import/m4/unistd-safer.m4: Update.
1629 * gnulib/import/m4/unistd_h.m4: Update.
1630 * gnulib/import/m4/warn-on-use.m4: Update.
1631 * gnulib/import/m4/wchar_h.m4: Update.
1632 * gnulib/import/m4/wchar_t.m4: Update.
1633 * gnulib/import/m4/wctype_h.m4: Update.
1634 * gnulib/import/m4/wint_t.m4: Update.
1635 * gnulib/import/malloc.c: Update.
1636 * gnulib/import/malloc/scratch_buffer.h: Update.
1637 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1638 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1639 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1640 * gnulib/import/malloca.c: Update.
1641 * gnulib/import/malloca.h: Update.
1642 * gnulib/import/malloca.valgrind: Update.
1643 * gnulib/import/math.in.h: Update.
1644 * gnulib/import/mbrtowc.c: Update.
1645 * gnulib/import/mbsinit.c: Update.
1646 * gnulib/import/mbsrtowcs-impl.h: Update.
1647 * gnulib/import/mbsrtowcs-state.c: Update.
1648 * gnulib/import/mbsrtowcs.c: Update.
1649 * gnulib/import/memchr.c: Update.
1650 * gnulib/import/memmem.c: Update.
1651 * gnulib/import/mempcpy.c: Update.
1652 * gnulib/import/memrchr.c: Update.
1653 * gnulib/import/mkdir.c: Update.
1654 * gnulib/import/mkstemp.c: Update.
1655 * gnulib/import/msvc-inval.c: Update.
1656 * gnulib/import/msvc-inval.h: Update.
1657 * gnulib/import/msvc-nothrow.c: Update.
1658 * gnulib/import/msvc-nothrow.h: Update.
1659 * gnulib/import/open.c: Update.
1660 * gnulib/import/openat-die.c: Update.
1661 * gnulib/import/openat-priv.h: Update.
1662 * gnulib/import/openat-proc.c: Update.
1663 * gnulib/import/openat.c: Update.
1664 * gnulib/import/openat.h: Update.
1665 * gnulib/import/opendir.c: Update.
1666 * gnulib/import/pathmax.h: Update.
1667 * gnulib/import/pipe-safer.c: Update.
1668 * gnulib/import/rawmemchr.c: Update.
1669 * gnulib/import/readdir.c: Update.
1670 * gnulib/import/readlink.c: Update.
1671 * gnulib/import/realloc.c: Update.
1672 * gnulib/import/ref-add.sin: Update.
1673 * gnulib/import/ref-del.sin: Update.
1674 * gnulib/import/rename.c: Update.
1675 * gnulib/import/rewinddir.c: Update.
1676 * gnulib/import/rmdir.c: Update.
1677 * gnulib/import/same-inode.h: Update.
1678 * gnulib/import/save-cwd.c: Update.
1679 * gnulib/import/save-cwd.h: Update.
1680 * gnulib/import/scratch_buffer.h: Update.
1681 * gnulib/import/secure_getenv.c: Update.
1682 * gnulib/import/setenv.c: Update.
1683 * gnulib/import/signal.in.h: Update.
1684 * gnulib/import/stat-time.c: Update.
1685 * gnulib/import/stat-time.h: Update.
1686 * gnulib/import/stat-w32.c: Update.
1687 * gnulib/import/stat-w32.h: Update.
1688 * gnulib/import/stat.c: Update.
1689 * gnulib/import/stdbool.in.h: Update.
1690 * gnulib/import/stddef.in.h: Update.
1691 * gnulib/import/stdint.in.h: Update.
1692 * gnulib/import/stdio.in.h: Update.
1693 * gnulib/import/stdlib.in.h: Update.
1694 * gnulib/import/str-two-way.h: Update.
1695 * gnulib/import/strchrnul.c: Update.
1696 * gnulib/import/strdup.c: Update.
1697 * gnulib/import/streq.h: Update.
1698 * gnulib/import/strerror-override.c: Update.
1699 * gnulib/import/strerror-override.h: Update.
1700 * gnulib/import/strerror.c: Update.
1701 * gnulib/import/string.in.h: Update.
1702 * gnulib/import/stripslash.c: Update.
1703 * gnulib/import/strnlen1.c: Update.
1704 * gnulib/import/strnlen1.h: Update.
1705 * gnulib/import/strstr.c: Update.
1706 * gnulib/import/strtok_r.c: Update.
1707 * gnulib/import/sys_stat.in.h: Update.
1708 * gnulib/import/sys_time.in.h: Update.
1709 * gnulib/import/sys_types.in.h: Update.
1710 * gnulib/import/tempname.c: Update.
1711 * gnulib/import/tempname.h: Update.
1712 * gnulib/import/time.in.h: Update.
1713 * gnulib/import/unistd--.h: Update.
1714 * gnulib/import/unistd-safer.h: Update.
1715 * gnulib/import/unistd.in.h: Update.
1716 * gnulib/import/unsetenv.c: Update.
1717 * gnulib/import/verify.h: Update.
1718 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1719 * gnulib/import/wchar.in.h: Update.
1720 * gnulib/import/wctype.in.h: Update.
1721 * gnulib/import/xalloc-oversized.h: Update.
1722 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1723 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1724
1725 2018-08-16 Gary Benson <gbenson@redhat.com>
1726
1727 PR gdb/13000:
1728 * gdb/main.c (captured_main_1): Exit with nonzero status
1729 in batch mode if the last command to be executed failed.
1730 * NEWS: Mention the above.
1731
1732 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1733
1734 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1735 end of warning message.
1736
1737 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1738
1739 PR gdb/22943:
1740 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1741 (aarch64_extract_return_value): Use
1742 aapcs_is_vfp_call_or_return_candidate.
1743 (aarch64_return_in_memory): Likewise.
1744 (aarch64_store_return_value): Likewise.
1745
1746 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1747
1748 * aarch64-tdep.c
1749 (aapcs_is_vfp_call_or_return_candidate): Make static
1750 (pass_in_v_or_stack): Remove function.
1751 (pass_in_v_vfp_candidate): New function.
1752 (aarch64_push_dummy_call): Check for float register candidates.
1753
1754 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1755
1756 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1757 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1758 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1759
1760 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1761
1762 PR build/23399
1763 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1764 (struct ipa_sym_addresses): Rename to...
1765 (struct ipa_sym_addresses_common): ... this.
1766 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1767
1768 2018-08-28 Tom Tromey <tom@tromey.com>
1769
1770 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1771 (token_fifo): Now a std::vector.
1772 (yylex, c_parse): Update.
1773 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1774 (token_fifo): Now a std::vector.
1775 (yylex, d_parse): Update.
1776 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1777 (token_fifo): Now a std::vector.
1778 (yylex, go_parse): Update.
1779
1780 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1781
1782 * parser-defs.h (struct type_stack) <elements>: Change type to
1783 std::vector<union type_stack_elt>.
1784 <depth, size>: Remove.
1785 * parse.c (parse_exp_in_context_1): Adjust.
1786 (type_stack_reserve): Remove.
1787 (check_type_stack_depth): Remove.
1788 (insert_into_type_stack): Adjust to std::vector.
1789 (insert_type): Likewise.
1790 (push_type): Likewise.
1791 (push_type_int): Likewise.
1792 (insert_type_address_space): Likewise.
1793 (pop_type): Likewise.
1794 (pop_type_int): Likewise.
1795 (pop_typelist): Likewise.
1796 (pop_type_stack): Likewise.
1797 (append_type_stack): Likewise.
1798 (push_type_stack): Likewise.
1799 (get_type_stack): Likewise.
1800 (type_stack_cleanup): Likewise.
1801 (push_typelist): Likewise.
1802 (follow_types): Likewise.
1803 (_initialize_parse): Likewise.
1804
1805 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1806
1807 * NEWS: Mention csky target.
1808
1809 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1810 Hafiz Abid Qadeer <abidh@codesourcery.com>
1811 Don Breazeal <donb@codesourcery.com>
1812
1813 * csky-linux-tdep.c: New file.
1814 * csky-tdep.c: Likewise.
1815 * csky-tdep.h: Likewise.
1816 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1817 csky-tdep.o.
1818 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1819 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1820 * configure.tgt: Add csky support.
1821
1822 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1823
1824 * python/py-framefilter.c (py_print_frame): Print frame architecture
1825 when printing on an MI output.
1826
1827 2018-08-27 Tom Tromey <tom@tromey.com>
1828
1829 PR build/23087:
1830 * configure: Rebuild.
1831 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1832
1833 2018-08-27 Tom Tromey <tom@tromey.com>
1834
1835 * aarch64-linux-tdep.c
1836 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1837 casts to int.
1838
1839 2018-08-27 Tom Tromey <tom@tromey.com>
1840
1841 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1842 unsigned.
1843 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1844 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1845 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1846 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1847 unsigned.
1848
1849 2018-08-27 Tom Tromey <tom@tromey.com>
1850
1851 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1852 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1853
1854 2018-08-27 Tom Tromey <tom@tromey.com>
1855
1856 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1857 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1858 ULONGEST_MAX.
1859 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1860 ULONGEST_MAX.
1861 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1862 ULONGEST_MAX.
1863 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1864 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1865 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1866 ULONGEST_MAX.
1867 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1868 (ppc64_linux_sigaction_tramp_frame)
1869 (ppc32_linux_sighandler_tramp_frame)
1870 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1871 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1872 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1873 * mn10300-linux-tdep.c (am33_linux_sigframe)
1874 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1875 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1876 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1877 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1878 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1879 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1880 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1881 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1882 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1883 * microblaze-linux-tdep.c
1884 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1885 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1886 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1887 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1888 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1889 * common/common-types.h (ULONGEST_MAX): New define.
1890 (CORE_ADDR_MAX): Fix formatting.
1891 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1892 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1893 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1894 (arm_linux_rt_sigreturn_tramp_frame)
1895 (arm_eabi_linux_sigreturn_tramp_frame)
1896 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1897 (thumb2_eabi_linux_sigreturn_tramp_frame)
1898 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1899 (arm_linux_restart_syscall_tramp_frame)
1900 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1901 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1902 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1903 ULONGEST_MAX.
1904 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1905
1906 2018-08-27 Tom Tromey <tom@tromey.com>
1907
1908 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1909 CORE_ADDR_MAX.
1910 * mips-tdep.c (mips_deal_with_atomic_sequence)
1911 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1912 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1913 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1914 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1915 CORE_ADDR_MAX.
1916 * aarch64-tdep.c (aarch64_software_single_step): Use
1917 CORE_ADDR_MAX.
1918
1919 2018-08-27 Tom Tromey <tom@tromey.com>
1920
1921 * linespec.c (complete_linespec_component): Add cast to "char".
1922 * completer.c (completion_tracker::build_completion_result): Add
1923 cast to "char".
1924
1925 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1926
1927 * solist.h (struct solist, struct target_so_ops): Fix
1928 indentation.
1929
1930 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1931
1932 * ada-tasks.c (ada_task_info_s): Remove typedef.
1933 (DEF_VEC_O(ada_task_info_s)): Remove.
1934 (struct ada_tasks_inferior_data): Initialize fields.
1935 <task_list>: Make an std::vector.
1936 (get_ada_tasks_inferior_data): Allocate with new.
1937 (ada_get_task_number): Adjust.
1938 (get_task_number_from_id): Likewise.
1939 (valid_task_id): Likewise.
1940 (ada_get_task_info_from_ptid): Likewise.
1941 (iterate_over_live_ada_tasks): Likewise.
1942 (add_ada_task): Likewise.
1943 (read_known_tasks): Likewise.
1944 (ada_build_task_list): Likewise.
1945 (print_ada_task_info): Likewise.
1946 (info_task): Likewise.
1947 (task_command_1): Likewise.
1948
1949 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1950
1951 * ada-lang.c (add_angle_brackets): Return std::string.
1952
1953 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1954
1955 * python/py-threadevent.c (py_get_event_thread): Initialize
1956 pythread.
1957
1958 2018-08-24 Pedro Alves <palves@redhat.com>
1959
1960 * python/py-bpevent.c (create_breakpoint_event_object): Use
1961 copy-initialization.
1962 * python/py-continueevent.c (emit_continue_event): Use
1963 copy-initialization.
1964 * python/py-exitedevent.c (create_exited_event_object): Return a
1965 gdbpy_ref<>.
1966 (emit_exited_event): Use copy-initialization.
1967 * python/py-inferior.c (python_new_inferior)
1968 (python_inferior_deleted, add_thread_object): Use
1969 copy-initialization.
1970 * python/py-infevents.c (create_inferior_call_event_object)
1971 (create_register_changed_event_object)
1972 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1973 (emit_inferior_call_event, emit_memory_changed_event)
1974 (emit_register_changed_event): Use copy-initialization.
1975 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1976 Return a gdbpy_ref<>.
1977 (emit_new_objfile_event): Use copy-initialization.
1978 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1979 (emit_clear_objfiles_event): Use copy-initialization.
1980 * python/py-signalevent.c (create_signal_event_object): Use
1981 copy-initialization.
1982 * python/py-threadevent.c (create_thread_event_object): Use
1983 copy-initialization.
1984
1985 2018-08-24 Pedro Alves <palves@redhat.com>
1986 Simon Marchi <simon.marchi@ericsson.com>
1987
1988 PR gdb/23379
1989 * python/py-continueevent.c: Include "gdbthread.h".
1990 (create_continue_event_object): Add intro comment. Add 'ptid'
1991 parameter. Use it to find thread to pass to
1992 create_thread_event_object.
1993 (emit_continue_event): Pass PTID down to
1994 create_continue_event_object.
1995 * python/py-event.h (py_get_event_thread): Declare.
1996 (create_thread_event_object): Remove default from 'thread'
1997 parameter.
1998 * python/py-stopevent.c (create_stop_event_object): Use
1999 py_get_event_thread.
2000 * python/py-threadevent.c (get_event_thread): Rename to ...
2001 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2002 and use it to find the thread.
2003 (create_thread_event_object): Assert that THREAD isn't null.
2004 Don't find the event thread here.
2005
2006 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2007
2008 * block.h (blockrange, blockranges): New struct declarations.
2009 (struct block): Add new field named `ranges'.
2010 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2011 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2012 macros for accessing ranges in struct block.
2013 (make_blockranges): New declaration.
2014 block.c (make_blockranges): New function.
2015 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2016 for block.
2017 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2018 * blockframe.c (cache_pc_function_block): New static global.
2019 (clear_pc_function_cache): Clear cache_pc_function_block.
2020 (find_pc_partial_function): Move comment to symtab.h. Add
2021 support for non-contiguous blocks.
2022 * cli/cli-cmds.c (block.h): Include.
2023 (print_disassembly): Handle printing of non-contiguous blocks.
2024 (disassemble_current_function): Likewise.
2025 (disassemble_command): Likewise.
2026
2027 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2028 BLOCK_START.
2029 * blockframe.c (get_pc_function_start): Likewise.
2030 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2031 (gcc_symbol_address): Likewise.
2032 * compile/compile-object-run.c (compile_object_run): Likewise.
2033 * compile/compile.c (get_expr_block_and_pc): Likewise.
2034 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2035 (func_addr_to_tail_call_list): Likewise.
2036 * findvar.c (default_read_var_value): Likewise.
2037 * inline-frame.c (inline_frame_this_id): Likewise.
2038 (skip-inline_frames): Likewise.
2039 * infcmd.c (until_next_command): Likewise.
2040 * linespec.c (convert_linespec_to_sals): Likewise.
2041 * parse.c (parse_exp_in_context_1): Likewise.
2042 * printcmd.c (build_address_symbolic): likewise.
2043 (info_address_command): Likewise.
2044 symtab.c (find_function_start_sal): Likewise.
2045 (skip_prologue_sal): Likewise.
2046 (find_function_alias_target): Likewise.
2047 (find_gnu_ifunc): Likewise.
2048 * stack.c (find_frame_funname): Likewise.
2049 * symtab.c (fixup_symbol_section): Likewise.
2050 (find_function_start_sal): Likewise.
2051 (skip_prologue_sal): Likewsie.
2052 (find_function_alias_target): Likewise.
2053 (find_gnu_ifunc): Likewise.
2054 * tracepoint.c (info_scope_command): Likewise.
2055 * value.c (value_fn_field): Likewise.
2056
2057 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2058 in place of find_pc_partial_function.
2059 * blockframe.c (find_function_entry_range_from_pc): New function.
2060 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2061 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2062 for each range in a block.
2063
2064
2065 2018-08-23 Xavier Roirand <roirand@adacore.com>
2066
2067 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2068 incrementation.
2069
2070 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2071
2072 * solib-svr4.c (read_program_headers_from_bfd): Return
2073 gdb::optional<gdb::byte_vector>.
2074 (svr4_exec_displacement): Adjust.
2075
2076 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2077
2078 * solib-svr4.c (read_program_header): Return
2079 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2080 (find_program_interpreter): Return
2081 gdb::optional<gdb::byte_vector>.
2082 (scan_dyntag_auxv): Adjust.
2083 (enable_break): Adjust.
2084 (svr4_exec_displacement): Adjust.
2085
2086 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2087
2088 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2089 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2090
2091 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2092
2093 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2094 string_vprintf.
2095 * guile/scm-utils.c (gdbscm_printf): Likewise.
2096 * serial.c (serial_printf): Likewise.
2097 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2098
2099 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2100
2101 * stack.c (print_frame): Print frame architecture when printing on
2102 an MI output.
2103 * NEWS: Mention new "arch" attribute in frame output.
2104
2105 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2106
2107 * arch/aarch64.h (aarch64_regnum): Update comment.
2108
2109 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2110
2111 * NEWS: Add SVE to 8.2 section.
2112
2113 2018-08-21 Pedro Alves <palves@redhat.com>
2114
2115 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2116 out from gdbscm_parse_function_args.
2117 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2118 gdbscm_parse_function_args_1.
2119
2120 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2121
2122 PR gdb/17816
2123 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2124 operator.
2125
2126 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2127
2128 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2129
2130 2018-08-19 Michael Spang <spang@google.com>
2131
2132 PR gdb/11786
2133 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2134 for PT_TLS segments.
2135
2136 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2137
2138 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2139 dwarf_variable_value.
2140 * dwarf2-frame.c (class dwarf_expr_executor):
2141 Add override for dwarf_variable_value.
2142 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2143 (class symbol_needs_eval_context): Likewise.
2144 (indirect_synthetic_pointer): Add forward declaration.
2145 (sect_variable_value): New function.
2146 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2147 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2148 for DW_OP_GNU_variable_value.
2149
2150 2018-08-16 Tom Tromey <tom@tromey.com>
2151
2152 * top.c (read_command_file): Update.
2153 (command_line_input): Remove "repeat" argument.
2154 * ada-lang.c (get_selections): Update.
2155 * linespec.c (decode_line_2): Update.
2156 * defs.h (command_line_input): Remove argument.
2157 * cli/cli-script.c (read_next_line): Update.
2158 * python/py-gdb-readline.c: Update.
2159
2160 2018-08-17 Tom Tromey <tom@tromey.com>
2161
2162 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2163 command_line_input.
2164
2165 2018-08-15 Tom Tromey <tom@tromey.com>
2166
2167 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2168
2169 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2170
2171 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2172 If used, use find_pc_partial_function to find address range
2173 to disassemble.
2174 * mi/mi-main.c (mi_cmd_list_features): Report
2175 "data-disassemble-a-option" feature.
2176 * NEWS: Mention new -data-disassemble option -a.
2177
2178 2018-08-13 Tom Tromey <tom@tromey.com>
2179
2180 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2181
2182 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2183
2184 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2185 (aarch64_linux_collect_sve_regset): Likewise.
2186 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2187 * regcache.h (regcache_map_entry_size): New function.
2188
2189 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2190
2191 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2192 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2193 (SVE_HEADER_VL_LENGTH): Likewise.
2194 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2195 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2196 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2197 (SVE_HEADER_SIZE_OFFSET): Likewise.
2198 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2199 (SVE_HEADER_VL_OFFSET): Likewise.
2200 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2201 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2202 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2203 (SVE_HEADER_SIZE): Likewise.
2204 (aarch64_linux_core_read_vq): Add function.
2205 (aarch64_linux_core_read_description): Check for SVE section.
2206
2207 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2208
2209 * aarch64-fbsd-tdep.c
2210 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2211 collect_size.
2212 * aarch64-linux-tdep.c
2213 (aarch64_linux_iterate_over_regset_sections): Likewise.
2214 * alpha-linux-tdep.c
2215 (alpha_linux_iterate_over_regset_sections):
2216 * alpha-nbsd-tdep.c
2217 (alphanbsd_iterate_over_regset_sections): Likewise.
2218 * amd64-fbsd-tdep.c
2219 (amd64fbsd_iterate_over_regset_sections): Likewise.
2220 * amd64-linux-tdep.c
2221 (amd64_linux_iterate_over_regset_sections): Likewise.
2222 * arm-bsd-tdep.c
2223 (armbsd_iterate_over_regset_sections): Likewise.
2224 * arm-fbsd-tdep.c
2225 (arm_fbsd_iterate_over_regset_sections): Likewise.
2226 * arm-linux-tdep.c
2227 (arm_linux_iterate_over_regset_sections): Likewise.
2228 * corelow.c (get_core_registers_cb): Likewise.
2229 (core_target::fetch_registers): Likewise.
2230 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2231 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2232 * gdbarch.h (void): Regenerate.
2233 * gdbarch.sh: Add supply_size and collect_size.
2234 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2235 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2236 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2237 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2238 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2239 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2240 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2241 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2242 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2243 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2244 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2245 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2246 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2247 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2248 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2249 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2250 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2251 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2252 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2253 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2254 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2255 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2256 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2257 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2258 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2259 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2260 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2261 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2262 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2263 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2264
2265 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2266
2267 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2268 with string_printf.
2269
2270 2018-08-10 Keith Seitz <keiths@redhat.com>
2271
2272 * compile/compile-c-support.c (add_code_header, add_code_footer):
2273 Move into policy class.
2274 (c_push_user_expression, pop_user_expression_nop)
2275 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2276 (compile_program): New host class.
2277 (c_compile_program): New typedef.
2278 (c_compute_porgram): Use c_compile_program.
2279
2280 2018-08-10 Keith Seitz <keiths@redhat.com>
2281
2282 * compile/compile-internal.h (compile_instance::~compile_instance):
2283 Remove calls to htab_delete.
2284 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2285 * compile.c (compile_instance::compile_instance): Initialize
2286 htab unique pointers.
2287 (compile_instance::get_cached_type, compile_instance::insert_type)
2288 (compile_instance::error_symbol_once): Update for unique_ptr.
2289
2290 2018-08-10 Keith Seitz <keiths@redhat.com>
2291
2292 * compile/compile-c-symbols.c (struct symbol_error)
2293 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2294 (compile_instance::insert_symbol_error)
2295 (compile_instance::error_symbol_once): Move to ...
2296 * compile/compile.c: ... here.
2297
2298 2018-08-10 Keith Seitz <keiths@redhat.com>
2299
2300 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2301 instead of `new_compile_instance'.
2302 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2303 Update description.
2304 If the symbol error map is not initialized, create it.
2305 (generate_c_for_for_one_symbol): Do not check/initialize
2306 the symbol error map.
2307 * compile/compile-c-types.c (compile_c_instance): Make a class.
2308 Update all callers.
2309 (compile_instance::compile_instance): Initialize the type cache.
2310 (get_cached_type): New function.
2311 (insert_type): Update description.
2312 (compile_c_instance::m_default_cflags): Define.
2313 (convert_type): Update description. Use get_cached_type.
2314 (delete_instance): Moved to destructor.
2315 (new_compile_instance): Moved to constructor.
2316 * compile/compile-c.h (compile_c_instance): Make class inheriting
2317 from compile_instance.
2318 <base>: Remove field.
2319 <type_map, symbol_err_map>: Move to base class.
2320 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2321 * compile/compile-internal.h (compile_instance): Make class.
2322 <type_map_t, symbol_err_map_t>: Define.
2323 <fe>: Rename to `m_gcc_fe'.
2324 <scope, block, gcc_target_options>: Add `m_' prefix.
2325 <m_type_map, m_symbol_err_map>: New fields, moved from
2326 compile_c_instance.
2327 <destroy>: Remove.
2328 (convert_type, new_compile_instance): Remove.
2329 * compile/compile.c (cleanup_compile_instance): Remove.
2330 (compile_to_object): Use unique_ptr to eliminate cleanups.
2331 (compile_instance::set_print_callback, compile_instance::version)
2332 (compile_instance::set_verbose)
2333 (compile_instance::set_driver_filename)
2334 (compile_instance::set_triplet_regexp)
2335 (compile_instance::set_arguments)
2336 (compile_instance::set_source_file)
2337 (compile_instance::compile): Define.
2338
2339 2018-08-10 Keith Seitz <keiths@redhat.com>
2340
2341 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2342 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2343 gcc-c-fe.def to define C plugin.
2344 (delete_instance): Delete `c_plugin'.
2345 (new_compile_instance): Initialize `c_plugin'.
2346 * compile/compile-c.h: Include gcc_c_plugin.h.
2347 (struct compile_c_instance) <c_plugin>: New member.
2348 * gcc-c-plugin.h: New file.
2349 Update all callers with API change.
2350
2351 2018-08-10 Keith Seitz <keiths@redhat.com>
2352
2353 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2354 (HFILES_NO_SRCDIR): ... to here.
2355 Add compile-internal.h and compile-c.h.
2356 * compile/compile-c-support.c: Include compile-c.h.
2357 * compile/compile-c-symbols.c: Include compile-c.h.
2358 (generate_c_for_variable_locations): Update comment.
2359 * compile/compile-c-types.c: Include compile-c.h.
2360 * compile/compile-c.h: New file -- moved C language declarations
2361 from other files here.
2362 * compile/compile-internal.h: Do not include hashtab.h or
2363 common/enum-flags.h.
2364 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2365 (gcc_convert_symbol, gcc_symbol_address)
2366 (generate_c_for_variable_locations, c_get_mode_for_size)
2367 (c_get_range_decl_name): Definitions moved to compile-c.h.
2368 * compile/compile-loc2c.c: Include compile-c.h.
2369
2370 2018-08-10 Keith Seitz <keiths@redhat.com>
2371
2372 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2373 (c_symbol_substitution_name): ... this.
2374 Update all callers.
2375
2376 2018-08-10 Keith Seitz <keiths@redhat.com>
2377
2378 * compile/compile-c-support.c (c_compute_program): Use
2379 unique_xmalloc_ptr to eliminate cleanup.
2380 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2381 Return a unique_xmalloc_ptr and eliminate cleanup.
2382 * compile/compile-internal.h (generate_c_for_variable_locations):
2383 Return unique_xmalloc_ptr and update description.
2384
2385 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2386
2387 * corelow.c (core_target::get_core_register_section): Rename
2388 min_size to section_min_size.
2389
2390 2018-08-09 Jim Wilson <jimw@sifive.com>
2391
2392 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2393 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2394 * NEWS: Mention new GNU/Linux RISC-V target.
2395 * configure.host: Add riscv*-*-linux*.
2396 * configure.nat: Add riscv*.
2397 * configure.tgt: Add riscv*-*-linux*.
2398 * riscv-linux-nat.c: New file.
2399 * riscv-linux-tdep.c: New file.
2400
2401 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2402
2403 * infrun.c (resume): Make static, add forward declaration.
2404 (proceed): Update header comment.
2405 * infrun.h (resume): Delete declaration.
2406
2407 2018-08-09 Tom Tromey <tom@tromey.com>
2408
2409 * riscv-tdep.h: Minor formatting fixes.
2410
2411 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2412
2413 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2414 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2415 (test_mkdir_recursive): Likewise.
2416 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2417
2418 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2419
2420 * valarith.c (value_subscripted_rvalue): If an array is not in
2421 memory, and we don't know the upper bound, then we can't know that
2422 the requested element exists or not.
2423
2424 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2425
2426 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2427 (target_options_to_string): Add comment.
2428
2429 2018-08-08 Tom Tromey <tom@tromey.com>
2430
2431 * unittests/scoped_mmap-selftests.c: Check result of "write".
2432
2433 2018-08-08 Jim Wilson <jimw@sifive.com>
2434
2435 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2436 (decode_register_index_short): New.
2437 (decode_j_type_insn, decode_cj_type_insn): New.
2438 (decode_b_type_insn, decode_cb_type_insn): New.
2439 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2440 local xlen. Check xlen when decoding ambiguous compressed insns. In
2441 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2442 is_c_sw_insn instead of is_sw_insn.
2443 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2444 (riscv_software_single_step): New.
2445 * riscv-tdep.h (riscv_software_single_step): Declare.
2446
2447 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2448 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2449
2450 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2451
2452 PR gdb/18050:
2453 * target.c (dispose_inferior): Don't dispose of inferiors that are
2454 already killed.
2455
2456 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2457
2458 * remote.c (remote_target::download_tracepoint): Change char* to
2459 const char*.
2460
2461 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2462
2463 * target.h (target_options_to_string): Return an std::string.
2464 * target.c (str_comma_list_concat_elem): Return void, use
2465 std::string.
2466 (do_option): Likewise.
2467 (target_options_to_string): Return an std::string.
2468 * linux-nat.c (linux_nat_target::wait): Adjust.
2469 * target-debug.h (target_debug_print_options): Adjust.
2470
2471 2018-08-07 Tom Tromey <tom@tromey.com>
2472
2473 * Makefile.in (CPPFLAGS): New variable.
2474 (INTERNAL_CPPFLAGS): Use it.
2475
2476 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2477
2478 * NEWS: Mention the index cache.
2479
2480 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2481
2482 * common/pathstuff.h (get_standard_cache_dir): New.
2483 * common/pathstuff.c (get_standard_cache_dir): New.
2484 * build-id.h (build_id_to_string): New.
2485 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2486 DEBUG_STR_SUFFIX): Move to here.
2487 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2488 DEBUG_STR_SUFFIX): Move from there.
2489 (write_psymtabs_to_index): Make non-static, add basename
2490 parameter. Write to temporary files, rename when done.
2491 (save_gdb_index_command): Adjust call to
2492 write_psymtabs_to_index.
2493 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2494 field.
2495 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2496 (get_gdb_index_contents_from_cache): New.
2497 (get_gdb_index_contents_from_cache_dwz): New.
2498 (dwarf2_initialize_objfile): Read index from cache.
2499 (dwarf2_build_psymtabs): Save to index.
2500 * dwarf-index-cache.h: New file.
2501 * dwarf-index-cache.c: New file.
2502 * dwarf-index-write.h: New file.
2503
2504 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2505
2506 * gnulib/aclocal.m4: Re-generate.
2507 * gnulib/config.in: Re-generate.
2508 * gnulib/configure: Re-generate.
2509 * gnulib/import/Makefile.am: Re-generate.
2510 * gnulib/import/Makefile.in: Re-generate.
2511 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2512 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2513 * gnulib/import/m4/mkdir.m4: New file.
2514 * gnulib/import/mkdir.c: New file.
2515 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2516 module.
2517
2518 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2519
2520 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2521 * common/scoped_mmap.c: New file.
2522 * common/scoped_mmap.h (destroy): New method.
2523 (~scoped_mmap, reset): Use destroy.
2524 (scoped_mmap): New move constructor.
2525 (mmap_file): New declaration.
2526 * unittests/scoped_mmap-selftests.c (test_normal,
2527 test_invalid_filename, run_tests): New functions.
2528 (_initialize_scoped_mmap_selftests): Register selftest.
2529
2530 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2531
2532 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2533 (read_gdb_index_from_buffer): ... this. Remove section
2534 parameter, add buffer parameter.
2535 (get_gdb_index_contents_ftype,
2536 get_gdb_index_contents_dwz_ftype): New typedefs.
2537 (dwarf2_read_gdb_index): Add callback parameters to get the
2538 index contents.
2539 (get_gdb_index_contents_from_section): New.
2540 (dwarf2_initialize_objfile): Update call to
2541 dwarf2_read_gdb_index.
2542
2543 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2544
2545 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2546 (gdb_open_cloexec): Likewise.
2547 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2548 (commandline_from_pid): Likewise.
2549 (linux_xfer_osdata_threads): Likewise.
2550 (linux_xfer_osdata_fds): Likewise.
2551 * ada-lang.c (is_package_name): Likewise.
2552 * auxv.c (procfs_xfer_auxv): Likewise.
2553 * breakpoint.c (print_one_breakpoint_location): Use
2554 uiout::field_fmt.
2555 (print_one_catch_solib): Use string_printf.
2556 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2557 (add_pe_forwarded_sym): Likewise.
2558 * dwarf2read.c (create_type_unit_group): Likewise.
2559 (build_error_marker_type): Likewise.
2560 * infcall.c (get_function_name): Likewise.
2561 * valprint.c (print_converted_chars_to_obstack): Likewise.
2562 * xtensa-tdep.c (xtensa_register_type): Likewise.
2563
2564 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2565
2566 * remote.c (remote_target::download_tracepoint): Fix format
2567 string errors.
2568
2569 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2570
2571 * tracefile.c: Include common/byte-vector.h.
2572 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2573 with trace_regblock_size if needed. Update uses of buf.
2574
2575 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2576
2577 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2578 std::vector<unsigned char>.
2579 * tracepoint.c (collection_list::collection_list): Remove
2580 m_regs_mask initializer from initializer list. Resize
2581 m_regs_mask using the largest remote register number.
2582 (collection_list::add_remote_register): Remove size check on
2583 m_regs_mask. Use at to access element.
2584 (collection_list::stringify): Change type of temp_buf to
2585 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2586 stringify the register mask. Use pack_hex_byte for the register
2587 mask.
2588
2589 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2590
2591 * tracepoint.h (class collection_list) <add_register>: Remove.
2592 <add_remote_register, add_ax_registers, add_local_register>:
2593 Declare.
2594 <add_memrange>: Add scope parameter.
2595 * tracepoint.c (encode_actions_1): Likewise.
2596 (collection_list::add_register): Rename to ...
2597 (collection_list::add_remote_register): ... this. Update
2598 comment.
2599 (collection_list::add_ax_registers, add_local_register): New
2600 methods.
2601 (collection_list::add_memrange): Add scope parameter. Call
2602 add_local_register instead of add_register.
2603 (finalize_tracepoint_aexpr): New function.
2604 (collection_list::collect_symbol): Update calls to add_memrange.
2605 Call add_local_register instead of add_register. Call
2606 add_ax_registers. Call finalize_tracepoint_aexpr.
2607 (encode_actions_1): Get remote regnos for $reg action. Call
2608 add_remote_register, add_ax_registers, and add_local_register.
2609 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2610 (validate_actionline): Call finalize_tracepoint_aexpr.
2611
2612 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2613
2614 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2615 Replace array buf with gdb::char_vector buf, of size
2616 get_remote_packet_size (). Replace references to buf and
2617 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2618 and xsnprintf with snprintf. Raise errors if the buffer is too
2619 small.
2620
2621 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2622
2623 * remote.c (remote_target::download_tracepoint): Fix the has_more
2624 predicate in the QTDP action list iteration.
2625
2626 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2627
2628 * remote.c (remote_target::download_tracepoint): Fix indentation
2629 in for block.
2630
2631 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2632
2633 * proc-api.c (_initialize_proc_api): Remove c, unused.
2634 * procfs.c (procfs_init_inferior): Remove signals, unused.
2635 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2636 unused.
2637
2638 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2639 Andrew Burgess <andrew.burgess@embecosm.com>
2640
2641 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2642 'W_STOPCODE (0)' as this could be ambiguous.
2643
2644 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2645
2646 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2647 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2648 "ai_socktype").
2649
2650 2018-08-02 Tom Tromey <tom@tromey.com>
2651
2652 PR symtab/16842.
2653 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2654 symbols.
2655 (process_structure_scope): Likewise.
2656
2657 2018-08-02 Xavier Roirand <roirand@adacore.com>
2658
2659 PR gdb/22629:
2660 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2661 kill inferior.
2662
2663 2018-08-02 Tom Tromey <tom@tromey.com>
2664
2665 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2666 (darwin_suspend_inferior, darwin_resume_inferior)
2667 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2668 (darwin_check_new_threads): Check result of get_darwin_inferior.
2669
2670 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2671
2672 GDB 8.1.1 released.
2673
2674 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2675
2676 * varobj.c (varobj_get_path_expr_parent): Report an error if
2677 parent is a dynamic varobj.
2678
2679 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2680
2681 * gnulib/aclocal.m4: Re-generate.
2682 * gnulib/config.in: Re-generate.
2683 * gnulib/configure: Re-generate.
2684 * gnulib/import/Makefile.in: Re-generate.
2685 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2686 * gnulib/import/m4/onceonly.m4: Re-generate.
2687
2688 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2689
2690 * target-descriptions.c (struct xml_test_tdesc): New.
2691 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2692 (record_xml_tdesc): Update.
2693 (maintenance_check_xml_descriptions): Update.
2694 * target-descriptions.h (record_xml_tdesc): Update comment.
2695
2696 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2699 checking array bounds are defined.
2700
2701 2018-07-30 Tom Tromey <tom@tromey.com>
2702
2703 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2704 irreflexivity violation.
2705
2706 2018-07-30 Tom Tromey <tom@tromey.com>
2707
2708 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2709 * value.c (unpack_long): Remove lint code.
2710 * valops.c (value_ind): Remove lint code.
2711 * valarith.c (value_x_binop, value_x_unop, value_equal)
2712 (value_pos): Remove lint code.
2713
2714 2018-07-28 Tom de Vries <tdevries@suse.de>
2715
2716 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2717 with undefined upper bound as <optimized out>.
2718
2719 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2720
2721 * gcore.in: Rename variable "name" to "prefix". Expand
2722 "usage" text.
2723
2724 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2725
2726 * windows-nat.c (windows_nat_target::create_inferior): Update to
2727 call close() in global namespace.
2728
2729 2018-07-26 Tom Tromey <tom@tromey.com>
2730
2731 * dwarf-index-write.c (add_address_entry): Don't add objfile
2732 offsets.
2733 * dbxread.c (find_stab_function): Rename from
2734 find_stab_function_addr. Return a bound_minimal_symbol.
2735 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2736 Don't add objfile offsets.
2737 (end_psymtab): Use raw_text_low, raw_text_high,
2738 MSYMBOL_VALUE_RAW_ADDRESS.
2739 (read_ofile_symtab): Update.
2740 (process_one_symbol): Update.
2741 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2742 offsets.
2743 (dw2_relocate): Remove.
2744 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2745 searching addrmap.
2746 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2747 Update.
2748 (process_psymtab_comp_unit_reader, add_partial_symbol)
2749 (add_partial_subprogram, dwarf2_ranges_read): Update.
2750 (load_partial_dies): Update.
2751 (add_address_entry): Don't add objfile offsets.
2752 (dwarf2_build_include_psymtabs): Update.
2753 (create_addrmap_from_aranges): Don't add objfile offsets.
2754 (dw2_find_pc_sect_compunit_symtab): Update.
2755 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2756 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2757 Update.
2758 (parse_partial_symbols): Don't add objfile offsets. Use
2759 raw_text_low, raw_text_high. Update.
2760 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2761 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2762 or call 'relocate' quick function. Clear psymbol_map.
2763 * psympriv.h (struct partial_symbol) <address>: Add section
2764 offset.
2765 <set_unrelocated_address>: Rename from set_address.
2766 <raw_text_low, raw_text_high>: New methods.
2767 <text_low, text_high>: Add objfile parameter.
2768 (add_psymbol_to_bcache): Add 'section' parameter. Call
2769 set_unrelocated_address.
2770 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2771 (find_pc_psymbol): Update.
2772 (fixup_psymbol_section, relocate_psymtabs): Remove.
2773 (dump_psymtab, psym_functions): Update.
2774 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2775 parameter.
2776 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2777 (start_psymtab_common): Update.
2778 * symfile-debug.c (debug_qf_relocate): Remove.
2779 (debug_sym_quick_functions): Update.
2780 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2781 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2782 Update.
2783
2784 2018-07-26 Tom Tromey <tromey@redhat.com>
2785
2786 * dbxread.c (end_psymtab): Use text_high_valid and
2787 text_low_valid.
2788 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2789 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2790 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2791 Update comment.
2792 <text_low_valid, text_high_valid>: New fields.
2793 <set_text_low, set_text_high>: Update.
2794 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2795
2796 2018-07-26 Tom Tromey <tom@tromey.com>
2797
2798 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2799 Update.
2800 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2801 textlow and texthigh fields.
2802 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2803 Update.
2804 * mdebugread.c (parse_lines, parse_partial_symbols)
2805 (psymtab_to_symtab_1): Update.
2806 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2807 Rename fields. Update comment. Now private.
2808 <text_low, text_high, set_text_low, set_text_high>: New methods.
2809 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2810 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2811 (start_psymtab_common, maintenance_info_psymtabs)
2812 (maintenance_check_psymtabs): Update.
2813 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2814 texthigh fields.
2815 (scan_xcoff_symtab): Update.
2816
2817 2018-07-26 Tom Tromey <tromey@redhat.com>
2818
2819 * psympriv.h (struct partial_symbol) <unrelocated_address,
2820 address, set_address>: New methods.
2821 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2822 (fixup_psymbol_section, relocate_psymtabs): Update.
2823 (print_partial_symbols): Add 'objfile' parameter. Update.
2824 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2825 Update.
2826
2827 2018-07-26 Tom Tromey <tom@tromey.com>
2828
2829 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2830 (debug_names::write_psymbols): Update.
2831 * psympriv.h (struct partial_symbol): Derive from
2832 general_symbol_info.
2833 <obj_section>: New method.
2834 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2835 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2836 (find_pc_sect_psymbol, fixup_psymbol_section)
2837 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2838 (print_partial_symbols, recursively_search_psymtabs)
2839 (compare_psymbols, psymbol_hash, psymbol_compare)
2840 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2841 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2842
2843 2018-07-26 Tom Tromey <tromey@redhat.com>
2844
2845 * dbxread.c (end_psymtab): Remove dead code.
2846
2847 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2848
2849 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2850 DWARF unwinders are disabled.
2851 * dwarf2-frame.c: Add dwarf2read.h include.
2852 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2853 disabled.
2854 (dwarf2_frame_unwinders_enabled_p): Define.
2855 (show_dwarf_unwinders_enabled_p): New function.
2856 (_initialize_dwarf2_frame): Register switch to control DWARF
2857 unwinder use.
2858 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2859 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2860 (show_dwarf_cmdlist): Remove static keyword.
2861 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2862 (show_dwarf_cmdlist): Declare.
2863 * NEWS: Document new feature.
2864
2865 2018-07-26 Tom de Vries <tdevries@suse.de>
2866
2867 PR breakpoints/23366
2868 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2869
2870 2018-07-26 Tom de Vries <tdevries@suse.de>
2871
2872 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2873 DW_AT_count can't be translated to a dynamic prop.
2874
2875 2018-07-25 Tom de Vries <tdevries@suse.de>
2876
2877 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2878 try/catch.
2879
2880 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2881
2882 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2883
2884 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2885
2886 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2887
2888 2018-07-24 Keith Seitz <keiths@redhat.comt
2889
2890 PR symtab/23010
2891 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2892 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2893 instead of add_symbol_to_list.
2894 (read_file_scope): Call prepare_one_comp_unit before reading
2895 any other DIEs.
2896
2897 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2898
2899 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2900
2901 2018-07-24 Tom Tromey <tom@tromey.com>
2902
2903 * utils.c (malloc, realloc, free): Don't declare.
2904 * configure, config.in: Rebuild.
2905 * configure.ac: Don't check for declarations of free, malloc, or
2906 realloc.
2907
2908 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2909
2910 * aarch64-linux-nat.c
2911 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2912 variable.
2913 * arm-linux-nat.c (fetch_regs): Likewise.
2914 (store_regs): Likewise.
2915 (fetch_vfp_regs): Likewise.
2916 (store_vfp_regs): Likewise.
2917 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2918 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2919 (arm_linux_nat_target::insert_watchpoint): Likewise.
2920 (arm_linux_nat_target::remove_watchpoint): Likewise.
2921 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2922 Likewise.
2923 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2924 Likewise.
2925 * ppc-linux-nat.c (fetch_register): Likewise.
2926 (fetch_all_gp_regs): Likewise.
2927 (fetch_ppc_registers): Likewise.
2928 (store_all_gp_regs): Likewise.
2929 (store_ppc_registers): Likewise.
2930 (hwdebug_insert_point): Likewise.
2931 (can_use_watchpoint_cond_accel): Likewise.
2932 * remote-sim.c (gdb_os_write_stdout): Likewise.
2933
2934 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2935 Tom Tromey <tom@tromey.com>
2936
2937 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2938 test for it.
2939 * configure: Rebuild.
2940
2941 2018-07-22 Tom Tromey <tom@tromey.com>
2942
2943 * regformats/regdat.sh: Define xmltarget_${name} inside
2944 #ifndef IN_PROCESS_AGENT.
2945
2946 2018-07-22 Tom Tromey <tom@tromey.com>
2947
2948 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2949
2950 2018-07-22 Tom Tromey <tom@tromey.com>
2951
2952 * symfile.c (reread_symbols): Notify iter, not objfile.
2953
2954 2018-07-22 Tom Tromey <tom@tromey.com>
2955
2956 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2957 Use arch_ops.
2958 (ravenscar_thread_target::prepare_to_store): Likewise.
2959
2960 2018-07-22 Tom Tromey <tom@tromey.com>
2961
2962 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2963 unused variable. Call value_fetch_lazy when needed.
2964 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2965 Remove unused variable. Call value_fetch_lazy when needed.
2966
2967 2018-07-22 Tom Tromey <tom@tromey.com>
2968
2969 * m32c-tdep.c (mark_dma): Return void.
2970 (make_regs): Remove unused declarations.
2971
2972 2018-07-22 Tom Tromey <tom@tromey.com>
2973
2974 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2975 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2976 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2977 bkscm_get_valid_block_smob_arg_unsafe for effect.
2978
2979 2018-07-22 Tom Tromey <tom@tromey.com>
2980
2981 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2982 value_type.
2983
2984 2018-07-22 Tom Tromey <tom@tromey.com>
2985
2986 * windows-nat.c (saved_context): Conditionally define.
2987 * remote.c (remote_target::remote_btrace_maybe_reopen):
2988 Conditionally declare "warned".
2989 * inflow.c (sigquit_ours): Conditionally define.
2990 (new_tty): Move "tty" declaration inside #if.
2991 * guile/guile.c (guile_datadir): Conditionally define.
2992 * charset.c (set_be_le_names): Move some declarations inside #if.
2993 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2994 #if.
2995 (parse_xml_btrace_conf): Likewise.
2996
2997 2018-07-22 Tom Tromey <tom@tromey.com>
2998
2999 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3000
3001 2018-07-22 Tom Tromey <tom@tromey.com>
3002
3003 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3004 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3005 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3006 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3007 * stack.c (frame_apply_level_command): Remove unused variable.
3008 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3009 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3010 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3011 unused variable.
3012 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3013 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3014 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3015 variable.
3016 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3017 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3018 variable.
3019 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3020 Remove unused variable.
3021 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3022 variable.
3023 * common/tdesc.c (print_xml_feature::visit): Remove unused
3024 variable.
3025 * compile/compile-object-load.c (store_regs): Remove unused
3026 variables.
3027 * complaints.c (clear_complaints): Remove unused variable.
3028 * corelow.c (core_target_open): Remove unused variable.
3029 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3030 variable.
3031 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3032 variable.
3033 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3034 variable.
3035 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3036 variable.
3037 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3038 variable.
3039 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3040 variable.
3041 * ia64-tdep.c (examine_prologue): Remove unused variable.
3042 * infcall.c (run_inferior_call): Remove unused variable.
3043 * inferior.c (exit_inferior): Remove unused variable.
3044 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3045 * linespec.c (decode_line_2): Remove unused variable.
3046 * linux-nat.c (super_close): Remove.
3047 * linux-tdep.c (linux_info_proc): Remove unused variable.
3048 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3049 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3050 Remove unused variable.
3051 * parse.c (find_minsym_type_and_address): Remove unused variable.
3052 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3053 variable.
3054 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3055 variable.
3056 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3057 variables.
3058 * record-btrace.c (record_btrace_target::store_registers): Remove
3059 unused variable.
3060 (cmd_show_record_btrace_cpu): Remove unused variable.
3061 * riscv-tdep.c (riscv_register_reggroup_p)
3062 (riscv_push_dummy_call, riscv_return_value): Remove unused
3063 variable.
3064 * rust-exp.y (literal): Remove unused variable.
3065 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3066 unused variable.
3067 <STRUCTOP_ANONYMOUS>: Likewise.
3068 * s390-linux-tdep.c (s390_linux_init_abi_31)
3069 (s390_linux_init_abi_64): Remove unused variable.
3070 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3071 (file_select_thread, net_windows_open, _initialize_ser_windows):
3072 Remove unused variables.
3073 * symtab.c (find_pc_sect_line): Remove unused variable.
3074 * target-memory.c (compute_garbled_blocks): Remove unused
3075 variable.
3076 (target_write_memory_blocks): Remove unused variable.
3077 * target.c (target_stack::unpush): Remove unused variables.
3078 * tracepoint.c (start_tracing, all_tracepoint_actions)
3079 (merge_uploaded_trace_state_variables)
3080 (print_one_static_tracepoint_marker): Remove unused variable.
3081 * unittests/basic_string_view/element_access/char/1.cc (test01):
3082 Remove unused variable.
3083 * windows-nat.c (windows_continue, windows_add_all_dlls)
3084 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3085 Remove unused variables.
3086
3087 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3088
3089 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3090 attr_profile in HAVE_ELF.
3091 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3092 HAVE_ELF.
3093
3094 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3095
3096 * frame.c (frame_register_unwind): Change parameter name.
3097 (frame_unwind_register): Likewise.
3098 (frame_unwind_register_value): Likewise.
3099 (frame_unwind_register_signed): Likewise.
3100 (frame_unwind_register_unsigned): Likewise.
3101 * frame.h (frame_register_unwind): Likewise.
3102 (frame_unwind_register): Likewise.
3103 (frame_unwind_register_value): Likewise.
3104 (frame_unwind_register_signed): Likewise.
3105 (frame_unwind_register_unsigned): Likewise.
3106 (frame_unwind_arch): Likewise.
3107
3108 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3109
3110 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3111 ISA maintenance.
3112
3113 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3114
3115 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3116 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3117 hand.
3118
3119 2018-07-20 Keith Seitz <keiths@redhat.com>
3120
3121 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3122 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3123 m_compunit_symtab, m_language>: Add "m_" prefix.
3124 Update all uses.
3125 * buildsym.c: Update all uses.
3126
3127 2018-07-20 Tom Tromey <tom@tromey.com>
3128
3129 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3130 * buildsym.h (record_line_ftype): Remove typedef.
3131
3132 2018-07-20 Tom Tromey <tom@tromey.com>
3133
3134 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3135 (end_expandable_symtab): Likewise.
3136 (end_symtab_get_static_block): Likewise.
3137 (end_symtab_from_static_block): Likewise.
3138 * buildsym-legacy.c (augment_type_symtab): Remove.
3139 (end_expandable_symtab): Remove.
3140 (end_symtab_get_static_block): Remove.
3141 (end_symtab_from_static_block): Remove.
3142
3143 2018-07-20 Tom Tromey <tom@tromey.com>
3144
3145 * dwarf2read.c: Include buildsym.h.
3146 (struct dwarf2_cu) <builder>: New method.
3147 (fixup_go_packaging): Update.
3148 (process_full_comp_unit, process_full_type_unit): Update. Don't
3149 use scoped_free_pendings.
3150 (using_directives): Add "cu" parameter, remove "language".
3151 (read_import_statement, setup_type_unit_groups, )
3152 (read_func_scope, read_lexical_block_scope)
3153 (dwarf2_record_block_ranges, read_namespace): Update.
3154 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3155 (lnp_state_machine::handle_end_sequence): Update.
3156 (class lnp_state_machine) <m_cu>: New member.
3157 <m_record_line_callback>: Remove.
3158 <m_currently_recording_lines>: New member.
3159 (lnp_state_machine::handle_set_file): Update.
3160 (noop_record_line): Remove.
3161 (dwarf_record_line_p): Add cu parameter.
3162 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3163 (lnp_state_machine::record_line)
3164 (lnp_state_machine::lnp_state_machine)
3165 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3166 (dwarf_decode_lines): Update.
3167 (dwarf2_start_subfile): Add cu parameter.
3168 (dwarf2_start_symtab, new_symbol): Update.
3169 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3170 Remove dwarf2_per_objfile parameter.
3171 (dwarf_decode_macros): Update.
3172
3173 2018-07-20 Tom Tromey <tom@tromey.com>
3174
3175 * stabsread.c (define_symbol): Update.
3176 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3177 * dwarf2read.c (new_symbol): Update.
3178 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3179 * cp-namespace.c: Include buildsym.h.
3180 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3181 * buildsym-legacy.c (get_buildsym_compunit): New function.
3182
3183 2018-07-20 Tom Tromey <tom@tromey.com>
3184
3185 * xcoffread.c: Include buildsym-legacy.h.
3186 * windows-nat.c: Include buildsym-legacy.h.
3187 * stabsread.c: Include buildsym-legacy.h.
3188 * mdebugread.c: Include buildsym-legacy.h.
3189 * buildsym-legacy.h: New file.
3190 * buildsym-legacy.c: New file, from buildsym.c.
3191 * go32-nat.c: Include buildsym-legacy.h.
3192 * dwarf2read.c: Include buildsym-legacy.h.
3193 * dbxread.c: Include buildsym-legacy.h.
3194 * cp-namespace.c: Include buildsym-legacy.h.
3195 * coffread.c: Include buildsym-legacy.h.
3196 * buildsym.h: Move some contents to buildsym-legacy.h.
3197 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3198 buildsym-legacy.c.
3199 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3200
3201 2018-07-20 Tom Tromey <tom@tromey.com>
3202
3203 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3204 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3205 (buildsym_compunit::buildsym_compunit)
3206 (buildsym_compunit::~buildsym_compunit)
3207 (buildsym_compunit::get_macro_table): Define.
3208
3209 2018-07-20 Tom Tromey <tom@tromey.com>
3210
3211 * buildsym.c (reset_symtab_globals): Remove.
3212 (buildsym_compunit::end_symtab_from_static_block): Update.
3213 (buildsym_compunit::augment_type_symtab): Update.
3214 (end_symtab_from_static_block): Call free_buildsym_compunit.
3215 (augment_type_symtab, end_symtab, end_expandable_symtab):
3216 Likewise.
3217
3218 2018-07-20 Tom Tromey <tom@tromey.com>
3219
3220 * arch-utils.c: Do not include buildsym.h.
3221 * mipsread.c: Do not include buildsym.h.
3222 * machoread.c: Do not include buildsym.h.
3223 * elfread.c: Do not include buildsym.h.
3224
3225 2018-07-20 Tom Tromey <tom@tromey.com>
3226
3227 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3228 initialization.
3229 (buildsym_compunit): Add new constructor.
3230 (struct buildsym_compunit) <get_last_source_file, finish_block,
3231 record_block_range, start_subfile, patch_subfile_names,
3232 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3233 set_last_source_start_addr, get_last_source_start_addr,
3234 get_local_using_directives, set_local_using_directives,
3235 get_global_using_directives, outermost_context_p,
3236 get_current_context_stack, get_context_stack_depth,
3237 get_current_subfile, get_local_symbols, get_file_symbols,
3238 get_global_symbols, record_debugformat, record_producer,
3239 push_context, pop_context, end_symtab_get_static_block,
3240 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3241 New public methods.
3242 <record_pending_block, finish_block_internal, make_blockvector,
3243 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3244 private methods.
3245 Update all users.
3246
3247 2018-05-22 Tom Tromey <tom@tromey.com>
3248
3249 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3250 parameter.
3251 (finish_block_internal): Update.
3252
3253 2018-07-20 Tom Tromey <tom@tromey.com>
3254
3255 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3256 parameter.
3257 (finish_block_internal): Update.
3258
3259 2018-07-20 Tom Tromey <tom@tromey.com>
3260
3261 * buildsym.h (EXTERN): Don't define or undef.
3262 * buildsym.c (EXTERN): Don't define.
3263
3264 2018-07-20 Tom Tromey <tom@tromey.com>
3265
3266 * buildsym.c: Remove TODO comment.
3267
3268 2018-07-20 Tom Tromey <tom@tromey.com>
3269
3270 * coffread.c (coff_symtab_read): Update.
3271 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3272 (xcoff_new_init): Update.
3273 * mipsread.c (mipscoff_new_init): Update.
3274 * mdebugread.c (mdebug_build_psymtabs): Update.
3275 * elfread.c (elf_new_init): Update.
3276 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3277 Update.
3278 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3279 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3280 (stabsect_build_psymtabs): Update.
3281 * buildsym.h (buildsym_init): Don't declare.
3282 * buildsym.c: Update comment.
3283 (prepare_for_building): Remove.
3284 (start_symtab, restart_symtab): Update.
3285 (reset_symtab_globals): Update comment.
3286 (buildsym_init): Remove.
3287
3288 2018-07-20 Tom Tromey <tom@tromey.com>
3289
3290 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3291 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3292 (read_enum_type, common_block_start, common_block_end)
3293 (cleanup_undefined_types_1, finish_global_stabs): Update.
3294 * mdebugread.c (psymtab_to_symtab_1): Update.
3295 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3296 (read_lexical_block_scope, new_symbol): Update.
3297 * dbxread.c (process_one_symbol): Update.
3298 * coffread.c (coff_symtab_read, process_coff_symbol)
3299 (coff_read_enum_type): Update.
3300 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3301 declare.
3302 (get_local_symbols, get_file_symbols, get_global_symbols): New
3303 functions.
3304 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3305 m_global_symbols.
3306 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3307 (~scoped_free_pendings): Update.
3308 (finish_block, prepare_for_building, reset_symtab_globals)
3309 (end_symtab_get_static_block, end_symtab_with_blockvector)
3310 (augment_type_symtab, push_context): Update.
3311 (get_local_symbols, get_file_symbols, get_global_symbols): New
3312 functions.
3313 (buildsym_init): Update.
3314
3315 2018-07-20 Tom Tromey <tom@tromey.com>
3316
3317 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3318 (process_full_type_unit): Likewise.
3319 (dwarf2_start_symtab): Set list_in_scope.
3320
3321 2018-07-20 Tom Tromey <tom@tromey.com>
3322
3323 * dwarf2read.c (process_psymtab_comp_unit_reader)
3324 (build_type_psymtabs_reader): Do not set list_in_scope.
3325
3326 2018-07-20 Tom Tromey <tom@tromey.com>
3327
3328 * buildsym.c (free_pendings): Remove.
3329 (add_symbol_to_list, scoped_free_pendings)
3330 (finish_block_internal, buildsym_init): Update.
3331
3332 2018-07-20 Tom Tromey <tom@tromey.com>
3333
3334 * xcoffread.c (read_xcoff_symtab): Update.
3335 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3336 Update.
3337 * dbxread.c (process_one_symbol): Update.
3338 * coffread.c (coff_symtab_read): Update.
3339 * buildsym.h (finish_block): Update.
3340 * buildsym.c (finish_block): Remove "listhead" argument.
3341 (end_symtab_get_static_block): Update.
3342
3343 2018-07-20 Tom Tromey <tom@tromey.com>
3344
3345 * buildsym.h (class scoped_free_pendings): Remove constructor.
3346 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3347 method.
3348 <m_pending_block_obstack, m_pending_blocks>: New members.
3349 (pending_block_obstack, pending_blocks): Remove.
3350 (scoped_free_pendings::scoped_free_pendings): Default.
3351 (~scoped_free_pendings): Update.
3352 (free_pending_blocks): Remove.
3353 (finish_block_internal, record_pending_block, make_blockvector)
3354 (end_symtab_get_static_block, augment_type_symtab, push_context)
3355 (buildsym_init): Update.
3356
3357 2018-07-20 Tom Tromey <tom@tromey.com>
3358
3359 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3360 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3361 members.
3362 (pending_addrmap, pending_addrmap_obstack)
3363 (pending_addrmap_interesting): Remove.
3364 (scoped_free_pendings, record_block_range, make_blockvector)
3365 (prepare_for_building, reset_symtab_globals, buildsym_init):
3366 Update.
3367
3368 2018-07-20 Tom Tromey <tom@tromey.com>
3369
3370 * xcoffread.c (process_linenos): Update.
3371 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3372 * mdebugread.c (psymtab_to_symtab_1): Update.
3373 * dwarf2read.c (setup_type_unit_groups)
3374 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3375 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3376 * dbxread.c (process_one_symbol): Update.
3377 * coffread.c (coff_symtab_read, enter_linenos)
3378 (process_coff_symbol): Update.
3379 * buildsym.h (current_subfile): Don't declare.
3380 (get_current_subfile): Declare.
3381 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3382 member.
3383 (start_subfile, free_buildsym_compunit, push_subfile)
3384 (prepare_for_building, start_symtab): Update.
3385 (get_current_subfile): New function.
3386
3387 2018-07-20 Tom Tromey <tom@tromey.com>
3388
3389 * coffread.c (coff_symtab_read): Update.
3390 * xcoffread.c (read_xcoff_symtab): Update.
3391 * dwarf2read.c (new_symbol): Update.
3392 (read_func_scope, read_lexical_block_scope): Update.
3393 * dbxread.c (process_one_symbol): Update.
3394 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3395 (outermost_context_p): Remove macro.
3396 (outermost_context_p, get_current_context_stack)
3397 (get_context_stack_depth): Declare.
3398 (pop_context): Return struct context_stack.
3399 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3400 member.
3401 (context_stack_size): Remove.
3402 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3403 (prepare_for_building, end_symtab_get_static_block)
3404 (augment_type_symtab, push_context): Update.
3405 (pop_context): Return struct context_stack.
3406 (outermost_context_p, get_current_context_stack)
3407 (get_context_stack_depth): New functions.
3408 (buildsym_init): Update.
3409
3410 2018-07-20 Tom Tromey <tom@tromey.com>
3411
3412 * rust-exp.y: Now a pure parser. Update all rules.
3413 (%union): Move earlier.
3414 (current_parser, work_obstack): Remove globals.
3415 (rust_parser, ~rust_parser): Update.
3416 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3417 lex_character, lex_number, lex_string, lex_identifier,
3418 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3419 convert_name, convert_params_to_expression,
3420 convert_ast_to_expression, ast_basic_type, ast_operation,
3421 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3422 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3423 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3424 ast_array_type, ast_slice_type, ast_reference_type,
3425 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3426 (rust_parse): Update.
3427 (rustyyerror, rustyylex): Add parser parameter.
3428 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3429 (rust_lex_stringish_test, rust_lex_test_sequence)
3430 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3431 (rust_lex_test_push_back, rust_lex_tests): Update.
3432
3433 2018-07-19 Pedro Alves <palves@redhat.com>
3434
3435 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3436 gdb::unique_xmalloc_ptr.
3437 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3438 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3439 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3440 copy-initialization.
3441 * guile/scm-pretty-print.c (ppscm_print_children): Use
3442 gdb::unique_xmalloc_ptr instead of cleanups.
3443 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3444 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3445 gdb::unique_xmalloc_ptr.
3446 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3447 Adjust to use gdb::unique_xmalloc_ptr.
3448 * guile/scm-utils.c (extract_arg): Adjust.
3449 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3450 gdb::unique_xmalloc_ptr instead of a cleanup.
3451
3452 2018-07-19 Tom Tromey <tom@tromey.com>
3453
3454 * utils.c (do_value_free_to_mark)
3455 (make_cleanup_value_free_to_mark): Remove.
3456 * utils.h (make_cleanup_value_free_to_mark): Remove.
3457
3458 2018-07-19 Pedro Alves <palves@redhat.com>
3459
3460 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3461 forwarding reference.
3462
3463 2018-07-18 Pedro Alves <palves@redhat.com>
3464
3465 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3466 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3467 cleanup.
3468
3469 2018-07-18 Pedro Alves <palves@redhat.com>
3470
3471 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3472 exceptions.
3473 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3474 (gdbscm_wrap): New.
3475 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3476 directly instead of a cleanup.
3477 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3478 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3479 (vlscm_binop_gdbthrow): New, factored out from ...
3480 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3481 (vlscm_rich_compare): Use gdbscm_wrap.
3482 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3483 instead of a cleanup.
3484 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3485 cleanup.
3486 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3487 Use xfree directly instead of a cleanup.
3488 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3489 Adjust to use gdbscm_wrap and scoped_value_mark.
3490 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3491 (gdbscm_value_address, gdbscm_value_dereference)
3492 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3493 scoped_value_mark.
3494 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3495 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3496 scoped_value_mark.
3497 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3498 gdbscm_wrap and scoped_value_mark.
3499 (gdbscm_value_to_string): Use xfree directly instead of a
3500 cleanup. Move 'buffer' unique_ptr to TRY scope.
3501 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3502 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3503 scoped_value_mark.
3504 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3505 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3506 scoped_value_mark.
3507 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3508 gdbscm_wrap.
3509
3510 2018-07-18 Tom de Vries <tdevries@suse.de>
3511
3512 * findvar.c (default_read_var_value): Also resolve dynamic type for
3513 LOC_OPTIMIZED_OUT vars.
3514
3515 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3516
3517 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3518 decoding.
3519
3520 2018-07-17 Tom Tromey <tom@tromey.com>
3521
3522 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3523 (compute_enum_list, pascm_set_param_value_x)
3524 (gdbscm_parameter_value): Update.
3525 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3526 (gdbscm_scm_to_host_string): Update.
3527 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3528 Update.
3529 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3530 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3531 * guile/scm-string.c (gdbscm_scm_to_string): Return
3532 unique_xmalloc_ptr.
3533 (gdbscm_scm_to_host_string): Likewise.
3534
3535 2018-07-17 Tom Tromey <tom@tromey.com>
3536
3537 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3538 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3539 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3540 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3541 unique_xmalloc_ptr.
3542
3543 2018-07-17 Tom Tromey <tom@tromey.com>
3544
3545 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3546 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3547 Update.
3548 * guile/scm-cmd.c (cmdscm_function): Update.
3549 * guile/scm-pretty-print.c
3550 (ppscm_print_exception_unless_memory_error): Update.
3551 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3552 Return unique_xmalloc_ptr.
3553
3554 2018-07-17 Tom Tromey <tom@tromey.com>
3555
3556 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3557 Use string_printf.
3558
3559 2018-07-17 Jim Wilson <jimw@sifive.com>
3560
3561 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3562 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3563 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3564 unecessary braces after EF_RISCV_RVC test. Delete call to
3565 set_gdbarch_decr_pc_after_break.
3566
3567 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3568 RISCV_LAST_FP_REGNUM + 1.
3569 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3570
3571 2018-07-17 Tom Tromey <tom@tromey.com>
3572
3573 * configure.ac: Remove --disable-gdbcli.
3574 * configure: Rebuild.
3575 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3576 (SUBDIR_CLI_CFLAGS): Remove.
3577 (SFILES): Use SUBDIR_CLI_SRCS.
3578 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3579
3580 2018-07-17 Tom Tromey <tom@tromey.com>
3581
3582 PR gdb/18624:
3583 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3584
3585 2018-07-16 Jim Wilson <jimw@sifive.com>
3586
3587 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3588
3589 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3590
3591 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3592 variable.
3593 (libunwind_frame_sniffer): Likewise.
3594 (libunwind_frame_prev_register): Likewise.
3595 (libunwind_sigtramp_frame_sniffer): Likewise.
3596 * ia64-tdep.c (ia64_access_reg): Likewise.
3597 (ia64_access_rse_reg): Likewise.
3598 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3599 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3600
3601 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3602
3603 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3604
3605 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3606
3607 * remote-sim.c (gdbsim_target::close,
3608 gdbsim_target::mourn_inferior): Remove unused variables.
3609
3610 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3611
3612 * ia64-tdep.c (ktab_buf): New global.
3613 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3614 (get_kernel_table): Adjust.
3615
3616 2018-07-16 Tom Tromey <tom@tromey.com>
3617
3618 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3619 * dwarf2read.c (using_directives, new_symbol): Use
3620 outermost_context_p.
3621 * dbxread.c (process_one_symbol): Use outermost_context_p.
3622 * coffread.c (coff_symtab_read): Use outermost_context_p.
3623
3624 2018-07-16 Tom Tromey <tom@tromey.com>
3625
3626 * dwarf2read.c (using_directives, read_func_scope)
3627 (read_lexical_block_scope): Update.
3628 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3629 * buildsym.h (local_using_directives, global_using_directives):
3630 Don't declare.
3631 (get_local_using_directives, set_local_using_directives)
3632 (get_global_using_directives): Declare.
3633 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3634 m_global_using_directives>: New members.
3635 (finish_block_internal, prepare_for_building)
3636 (reset_symtab_globals, end_symtab_get_static_block)
3637 (push_context): Update.
3638 (get_local_using_directives, set_local_using_directives)
3639 (get_global_using_directives): New functions.
3640 (buildsym_init): Update.
3641
3642 2018-07-16 Tom Tromey <tom@tromey.com>
3643
3644 * xcoffread.c (xcoff_initial_scan): Don't call
3645 free_pending_blocks.
3646 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3647 * buildsym.h (class scoped_free_pendings): Add constructor.
3648 (free_pending_blocks): Don't declare.
3649 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3650 (free_pending_blocks): Now static.
3651
3652 2018-07-16 Tom Tromey <tom@tromey.com>
3653
3654 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3655 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3656 member.
3657 (struct subfile_stack): Remove.
3658 (subfile_stack): Remove.
3659 (push_subfile, pop_subfile, buildsym_init): Update.
3660
3661 2018-07-16 Tom Tromey <tom@tromey.com>
3662
3663 * buildsym.c (push_subfile): Use gdb_assert.
3664 (pop_subfile): Use gdb_assert.
3665
3666 2018-07-16 Tom Tromey <tom@tromey.com>
3667
3668 * buildsym.h (merge_symbol_lists): Remove.
3669 * buildsym.c (merge_symbol_lists): Remove.
3670
3671 2018-07-16 Tom Tromey <tom@tromey.com>
3672
3673 * stabsread.c (scan_file_globals): Update comment.
3674 * stabsread.h (scan_file_globals): Move from buildsym.h.
3675 * buildsym.h (scan_file_globals): Move to stabsread.h.
3676
3677 2018-07-16 Tom Tromey <tom@tromey.com>
3678
3679 * xcoffread.c (xcoff_new_init): Update.
3680 * mipsread.c (mipscoff_new_init): Update.
3681 * mdebugread.c (mdebug_build_psymtabs): Update.
3682 * elfread.c (elf_new_init): Update.
3683 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3684 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3685 * buildsym.h (buildsym_new_init): Don't declare.
3686 * buildsym.c (buildsym_new_init): Remove.
3687
3688 2018-07-16 Tom Tromey <tom@tromey.com>
3689
3690 * stabsread.h (within_function): Move from buildsym.h.
3691 * stabsread.c (start_stabs): Clear within_function.
3692 * coffread.c (coff_start_symtab): Clear within_function.
3693 * buildsym.h (within_function): Move to stabsread.h.
3694 * buildsym.c (prepare_for_building): Update.
3695
3696 2018-07-16 Tom Tromey <tom@tromey.com>
3697
3698 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3699 * dwarf2read.c (dwarf2_start_symtab): Don't set
3700 processing_gcc_compilation.
3701 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3702
3703 2018-07-16 Tom Tromey <tom@tromey.com>
3704
3705 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3706 (next_symbol_text_func): Move from buildsym.h.
3707 * stabsread.c (hashname): Move from buildsym.c.
3708 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3709 (next_symbol_text_func, hashname): Move to stabsread.h.
3710 * buildsym.c: Don't include bcache.h
3711 (hashname): Move to stasbread.c.
3712
3713 2018-07-16 Tom Tromey <tom@tromey.com>
3714
3715 * buildsym.h (context_stack_size): Don't declare.
3716 * buildsym.c (context_stack_size): New global.
3717
3718 2018-07-16 Tom Tromey <tom@tromey.com>
3719
3720 * dbxread.c (processing_acc_compilation): New global.
3721 * buildsym.h (processing_acc_compilation): Don't declare.
3722
3723 2018-07-16 Tom Tromey <tom@tromey.com>
3724
3725 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3726 * dbxread.c (read_ofile_symtab): Update.
3727 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3728 * buildsym.h (last_source_start_addr): Remove.
3729 (set_last_source_start_addr, get_last_source_start_addr):
3730 Declare.
3731 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3732 parameter.
3733 (struct buildsym_compunit) <m_last_source_start_addr>: New
3734 member.
3735 (prepare_for_building): Remove start_addr parameter.
3736 (start_symtab, restart_symtab, end_symtab_get_static_block)
3737 (end_symtab_with_blockvector): Update.
3738 (set_last_source_start_addr, get_last_source_start_addr): New
3739 functions.
3740
3741 2018-07-16 Tom Tromey <tom@tromey.com>
3742
3743 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3744 member.
3745 (have_line_numbers): Remove.
3746 (record_line, prepare_for_building, end_symtab_get_static_block)
3747 (augment_type_symtab): Update.
3748
3749 2018-07-16 Tom Tromey <tom@tromey.com>
3750
3751 * buildsym.c (~buildsym_compunit): Free the macro table.
3752 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3753 methods.
3754 <m_pending_macros>: New member.
3755 (pending_macros): Remove.
3756 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3757 (reset_symtab_globals, end_symtab_get_static_block)
3758 (end_symtab_with_blockvector, augment_type_symtab)
3759 (buildsym_init): Update.
3760
3761 2018-07-16 Tom Tromey <tom@tromey.com>
3762
3763 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3764 parameter.
3765 (buildsym_compunit::set_last_source_file): New method.
3766 <m_last_source_file>: New member.
3767 (prepare_for_building): Remove "name" parameter.
3768 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3769 (last_source_file): Remove.
3770 (set_last_source_file, get_last_source_file): Update.
3771
3772 2018-07-16 Tom Tromey <tom@tromey.com>
3773
3774 * buildsym.c (prepare_for_building): Add assert.
3775
3776 2018-07-16 Tom Tromey <tom@tromey.com>
3777
3778 * buildsym.c (~buildsym_compunit): Update.
3779 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3780 (start_subfile, patch_subfile_names)
3781 (end_symtab_with_blockvector): Update.
3782
3783 2018-07-16 Tom Tromey <tom@tromey.com>
3784
3785 * buildsym.c (struct buildsym_compunit): Add constructor,
3786 destructor, initializers.
3787 (start_buildsym_compunit): Remove.
3788 (free_buildsym_compunit): Use "delete".
3789 (start_symtab, restart_symtab): Use "new".
3790
3791 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3792
3793 * symfile.c (set_objfile_default_section_offset): Remove struct
3794 keyword.
3795
3796 2018-07-14 Stafford Horne <shorne@gmail.com>
3797
3798 * (Responsible Maintainers): Add myself as or1k maintainer.
3799
3800 2018-07-13 Tom Tromey <tom@tromey.com>
3801
3802 * symfile.c (set_objfile_default_section_offset): Use extra braces
3803 around initializer.
3804
3805 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3806
3807 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3808 non-branching basr.
3809
3810 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3811
3812 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3813 unittests/cli-utils-selftests.c
3814 * unittests/cli-utils-selftests.c: New file.
3815
3816 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3817
3818 * NEWS: Mention new commands. Mention change to 'thread apply'.
3819
3820 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3821
3822 * thread.c (thr_try_catch_cmd): New function.
3823 (thread_apply_all_command): Handle qcs flags.
3824 (thread_apply_command): Handle qcs flags.
3825 (taas_command): New function.
3826 (tfaas_command): New function.
3827 (_initialize_thread): Update to setup the new commands 'taas
3828 and 'tfaas'. Change doc string for 'thread apply'.
3829
3830 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3831
3832 * stack.c: (trailing_outermost_frame): New function, mostly
3833 extracted from backtrace_command_1.
3834 (leading_innermost_frame): New function.
3835 (backtrace_command_1): Update to call trailing_outermost_frame.
3836 (frame_apply_command_count): New function.
3837 (frame_apply_level_command): New function.
3838 (frame_apply_all_command): New function.
3839 (frame_apply_command): New function.
3840 (faas_command): New function.
3841 (frame_cmd_list): New variable.
3842 (_initialize_stack): Update to setup the new commands 'frame apply'
3843 and 'faas'.
3844
3845 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3846
3847 * cli-utils.c (number_or_range_parser::get_number): Only handle
3848 numbers or convenience var as numbers.
3849 (parse_flags): New function.
3850 (parse_flags_qcs): New function.
3851 (number_or_range_parser::finished): Ensure parsing end is detected
3852 before end of string.
3853 * cli-utils.h (parse_flags): New function.
3854 (parse_flags_qcs): New function.
3855 (number_or_range_parser): Remove m_finished bool.
3856 (number_or_range_parser::skip_range): Set m_in_range to false.
3857
3858 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3859
3860 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3861 on Windows.
3862
3863 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3864 Jan Kratochvil <jan.kratochvil@redhat.com>
3865 Paul Fertser <fercerpav@gmail.com>
3866 Tsutomu Seki <sekiriki@gmail.com>
3867 Pedro Alves <palves@redhat.com>
3868
3869 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3870 'unittests/parse-connection-spec-selftests.c'.
3871 (COMMON_SFILES): Add 'common/netstuff.c'.
3872 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3873 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3874 * common/netstuff.c: New file.
3875 * common/netstuff.h: New file.
3876 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3877 (wait_for_connect): Update comment. New parameter
3878 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3879 Use 'sock' directly instead of 'scb->fd'.
3880 (try_connect): New function, with code from 'net_open'.
3881 (net_open): Rewrite main loop to deal with multiple
3882 sockets/addresses. Handle IPv6-style hostnames; implement
3883 support for IPv6 connections.
3884 * unittests/parse-connection-spec-selftests.c: New file.
3885
3886 2018-07-11 Pedro Alves <palves@redhat.com>
3887
3888 PR gdb/23377
3889 * remote.c (remote_target::remote_detach_pid): Call
3890 set_current_process.
3891
3892 2018-07-11 Pedro Alves <palves@redhat.com>
3893
3894 * h8300-tdep.c (h8300_gdbarch_init): Remove
3895 set_gdbarch_ecoff_reg_to_regnum calls.
3896
3897 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3898
3899 PR c++/23373
3900 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3901 offsets/sizes for static members of a class/struct.
3902
3903 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3904
3905 * target-descriptions.c (tdesc_register_bitsize): Rename.
3906 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3907 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3908 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3909
3910 2018-07-10 Tom Tromey <tom@tromey.com>
3911
3912 * breakpoint.c (moribund_locations): Now static and a
3913 std::vector.
3914 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3915 (build_bpstat_chain, update_global_location_list)
3916 (breakpoint_retire_moribund): Update.
3917 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3918 VEC.
3919
3920 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3921
3922 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3923 (riscv_register_reggroup_p): Use new function, remove unneeded
3924 parenthesis.
3925 (riscv_push_dummy_call): Extend assert to compare against xlen or
3926 flen based on register type.
3927
3928 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3929
3930 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3931
3932 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3933
3934 * remote.c (show_hardware_watchpoint_limit): New function.
3935 (show_hardware_watchpoint_length_limit): New function.
3936 (show_hardware_breakpoint_limit): New function.
3937 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3938 where appropriate, update help text.
3939
3940 2018-07-09 Tom Tromey <tom@tromey.com>
3941
3942 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3943 (CLIBS): Don't mention NAT_CLIBS.
3944
3945 2018-07-09 Tom Tromey <tom@tromey.com>
3946
3947 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3948 (LIBGDB_OBS, clean mostlyclean): Update.
3949 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3950
3951 2018-07-09 Tom Tromey <tom@tromey.com>
3952
3953 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3954 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3955 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3956
3957 2018-07-09 Tom Tromey <tom@tromey.com>
3958
3959 * Makefile.in (ALLDEPFILES): Remove exec.c.
3960 (COMMON_OBS): Remove exec.o.
3961 (COMMON_SFILES): Add exec.c.
3962
3963 2018-07-09 Tom Tromey <tom@tromey.com>
3964
3965 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3966
3967 2018-07-09 Tom Tromey <tom@tromey.com>
3968
3969 * Makefile.in (clean mostlyclean): Remove stamp-version.
3970 (version.c): Depend on stamp-version.
3971 (stamp-version): New rule, from version.c rule.
3972
3973 2018-07-09 Tom Tromey <tom@tromey.com>
3974
3975 * Makefile.in (init.c): Depend on stamp-init.
3976 (stamp-init): New rule, from init.c rule.
3977 (clean mostlyclean): Remove stamp-init.
3978
3979 2018-07-09 Tom Tromey <tom@tromey.com>
3980
3981 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3982 SUBDIR_GCC_COMPILE_SRCS.
3983
3984 2018-07-09 Tom Tromey <tom@tromey.com>
3985
3986 * Makefile.in (init.c): Remove some unused sed rules.
3987
3988 2018-07-09 Tom Tromey <tom@tromey.com>
3989
3990 * Makefile.in (TSOBS): Remove.
3991 (INIT_FILES): Update.
3992 (LIBGDB_OBS): Update.
3993 (COMMON_SFILES): Add inflow.c.
3994 (SFILES): Remove inflow.c.
3995
3996 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3997
3998 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3999
4000 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4001
4002 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4003 get_saveloc_name, is_signal_frame_name, step_name,
4004 init_remote_name, create_addr_space_name,
4005 destroy_addr_space_name, search_unwind_table_name,
4006 find_dyn_list_name): Constify.
4007
4008 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4009
4010 * darwin-nat.c (darwin_pthread_kill): New function.
4011 (darwin_resume_thread): Use darwin_pthread_kill.
4012
4013 2018-07-05 Tom de Vries <tdevries@suse.de>
4014
4015 * macroexp.c (macro_buffer) <operator=>: New member function.
4016
4017 2018-07-04 Tom Tromey <tom@tromey.com>
4018
4019 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4020
4021 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4022
4023 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4024 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4025 * maint.c: Likewise.
4026 * top.c: Likewise.
4027
4028 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4029
4030 * NEWS: Create a new section for the next release branch.
4031 Rename the section of the current branch, now that it has
4032 been cut.
4033
4034 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4035
4036 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4037 * version.in: Bump version to 8.2.50.DATE-git.
4038
4039 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4040 Pedro Alves <palves@redhat.com>
4041
4042 * linux-nat.c (linux_init_ptrace): Rename to ...
4043 (linux_init_ptrace_procfs): ... this. Call
4044 linux_proc_init_warnings.
4045 (linux_nat_target::post_attach)
4046 (linux_nat_target::post_startup_inferior): Adjust.
4047 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4048 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4049
4050 2018-07-04 Tom de Vries <tdevries@suse.de>
4051
4052 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4053 check ...
4054 (read_comp_unit_head): ... here.
4055
4056 2018-07-03 Tom Tromey <tom@tromey.com>
4057
4058 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4059 (stop_tracing, tstatus_command)
4060 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4061 (print_one_static_tracepoint_marker): Update.
4062 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4063 std::vector.
4064 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4065 VEC.
4066 (all_tracepoints, static_tracepoints_here): Return std::vector.
4067
4068 2018-07-03 Tom Tromey <tom@tromey.com>
4069
4070 * common/ptid.c (ptid_equal): Remove.
4071 * common/ptid.h (ptid_equal): Don't declare.
4072 * ada-tasks.c: Update.
4073 * breakpoint.c: Update.
4074 * common/agent.c: Update.
4075 * corelow.c: Update.
4076 * darwin-nat-info.c: Update.
4077 * darwin-nat.c: Update.
4078 * dcache.c: Update.
4079 * dtrace-probe.c: Update.
4080 * dummy-frame.c: Update.
4081 * fbsd-nat.c: Update.
4082 * frame.c: Update.
4083 * gdbthread.h: Update.
4084 * gnu-nat.c: Update.
4085 * go32-nat.c: Update.
4086 * inf-loop.c: Update.
4087 * inf-ptrace.c: Update.
4088 * infcall.c: Update.
4089 * infcmd.c: Update.
4090 * inflow.c: Update.
4091 * infrun.c: Update.
4092 * linux-fork.c: Update.
4093 * linux-nat.c: Update.
4094 * linux-thread-db.c: Update.
4095 * mi/mi-cmd-var.c: Update.
4096 * mi/mi-interp.c: Update.
4097 * mi/mi-main.c: Update.
4098 * nto-procfs.c: Update.
4099 * ppc-linux-tdep.c: Update.
4100 * procfs.c: Update.
4101 * python/py-inferior.c: Update.
4102 * python/py-record-btrace.c: Update.
4103 * python/py-record.c: Update.
4104 * ravenscar-thread.c: Update.
4105 * regcache.c: Update.
4106 * remote-sim.c: Update.
4107 * remote.c: Update.
4108 * sol-thread.c: Update.
4109 * solib.c: Update.
4110 * target.c: Update.
4111 * tui/tui-stack.c: Update.
4112 * varobj.c: Update.
4113 * windows-nat.c: Update.
4114 * windows-tdep.c: Update.
4115
4116 2018-07-03 Tom Tromey <tom@tromey.com>
4117
4118 * common/ptid.c (ptid_match): Remove.
4119 * common/ptid.h (ptid_match): Don't declare.
4120 * fbsd-nat.c: Update.
4121 * infcmd.c: Update.
4122 * infrun.c: Update.
4123 * linux-nat.c: Update.
4124 * record-btrace.c: Update.
4125 * regcache.c: Update.
4126 * remote.c: Update.
4127
4128 2018-07-03 Tom Tromey <tom@tromey.com>
4129
4130 * common/ptid.c (ptid_tid_p): Remove.
4131 * common/ptid.h (ptid_tid_p): Don't declare.
4132 * sol-thread.c: Update.
4133
4134 2018-07-03 Tom Tromey <tom@tromey.com>
4135
4136 * common/ptid.c (ptid_lwp_p): Remove.
4137 * common/ptid.h (ptid_lwp_p): Don't declare.
4138 * fbsd-nat.c: Update.
4139 * linux-nat.c: Update.
4140 * nat/linux-procfs.c: Update.
4141 * nat/x86-linux-dregs.c: Update.
4142 * sol-thread.c: Update.
4143
4144 2018-07-03 Tom Tromey <tom@tromey.com>
4145
4146 * common/ptid.c (ptid_is_pid): Remove.
4147 * common/ptid.h (ptid_is_pid): Don't declare.
4148 * infrun.c: Update.
4149 * linux-nat.c: Update.
4150 * mi/mi-interp.c: Update.
4151 * remote.c: Update.
4152 * thread.c: Update.
4153
4154 2018-07-03 Tom Tromey <tom@tromey.com>
4155
4156 * common/ptid.c (ptid_get_tid): Remove.
4157 * common/ptid.h (ptid_get_tid): Don't declare.
4158 * ada-tasks.c: Update.
4159 * aix-thread.c: Update.
4160 * bsd-uthread.c: Update.
4161 * darwin-nat.c: Update.
4162 * fbsd-nat.c: Update.
4163 * i386-darwin-nat.c: Update.
4164 * infrun.c: Update.
4165 * linux-tdep.c: Update.
4166 * nto-procfs.c: Update.
4167 * ppc-ravenscar-thread.c: Update.
4168 * python/py-infthread.c: Update.
4169 * ravenscar-thread.c: Update.
4170 * sol-thread.c: Update.
4171 * sparc-ravenscar-thread.c: Update.
4172 * windows-nat.c: Update.
4173
4174 2018-07-03 Tom Tromey <tom@tromey.com>
4175
4176 * common/ptid.c (ptid_get_lwp): Remove.
4177 * common/ptid.h (ptid_get_lwp): Don't declare.
4178 * aarch64-linux-nat.c: Update.
4179 * ada-tasks.c: Update.
4180 * aix-thread.c: Update.
4181 * amd64-linux-nat.c: Update.
4182 * arm-linux-nat.c: Update.
4183 * corelow.c: Update.
4184 * fbsd-nat.c: Update.
4185 * fbsd-tdep.c: Update.
4186 * gnu-nat.c: Update.
4187 * i386-cygwin-tdep.c: Update.
4188 * i386-gnu-nat.c: Update.
4189 * i386-linux-nat.c: Update.
4190 * ia64-linux-nat.c: Update.
4191 * inf-ptrace.c: Update.
4192 * infrun.c: Update.
4193 * linux-fork.c: Update.
4194 * linux-nat.c: Update.
4195 * linux-tdep.c: Update.
4196 * linux-thread-db.c: Update.
4197 * mips-linux-nat.c: Update.
4198 * nat/aarch64-linux-hw-point.c: Update.
4199 * nat/aarch64-linux.c: Update.
4200 * nat/linux-btrace.c: Update.
4201 * nat/linux-osdata.c: Update.
4202 * nat/linux-procfs.c: Update.
4203 * nat/x86-linux-dregs.c: Update.
4204 * obsd-nat.c: Update.
4205 * ppc-fbsd-nat.c: Update.
4206 * ppc-linux-nat.c: Update.
4207 * procfs.c: Update.
4208 * python/py-infthread.c: Update.
4209 * ravenscar-thread.c: Update.
4210 * remote.c: Update.
4211 * s390-linux-nat.c: Update.
4212 * sol-thread.c: Update.
4213 * sol2-tdep.c: Update.
4214 * spu-linux-nat.c: Update.
4215 * x86-linux-nat.c: Update.
4216 * xtensa-linux-nat.c: Update.
4217
4218 2018-07-03 Tom Tromey <tom@tromey.com>
4219
4220 * common/ptid.c (ptid_get_pid): Remove.
4221 * common/ptid.h (ptid_get_pid): Don't declare.
4222 * aarch64-linux-nat.c: Update.
4223 * ada-lang.c: Update.
4224 * aix-thread.c: Update.
4225 * alpha-bsd-nat.c: Update.
4226 * amd64-fbsd-nat.c: Update.
4227 * amd64-linux-nat.c: Update.
4228 * arm-linux-nat.c: Update.
4229 * arm-nbsd-nat.c: Update.
4230 * auxv.c: Update.
4231 * break-catch-syscall.c: Update.
4232 * breakpoint.c: Update.
4233 * bsd-uthread.c: Update.
4234 * corelow.c: Update.
4235 * ctf.c: Update.
4236 * darwin-nat.c: Update.
4237 * fbsd-nat.c: Update.
4238 * fbsd-tdep.c: Update.
4239 * gcore.c: Update.
4240 * gnu-nat.c: Update.
4241 * hppa-nbsd-nat.c: Update.
4242 * hppa-obsd-nat.c: Update.
4243 * i386-fbsd-nat.c: Update.
4244 * ia64-linux-nat.c: Update.
4245 * inf-ptrace.c: Update.
4246 * infcmd.c: Update.
4247 * inferior.c: Update.
4248 * inferior.h: Update.
4249 * inflow.c: Update.
4250 * infrun.c: Update.
4251 * linux-fork.c: Update.
4252 * linux-nat.c: Update.
4253 * linux-tdep.c: Update.
4254 * linux-thread-db.c: Update.
4255 * m68k-bsd-nat.c: Update.
4256 * mi/mi-interp.c: Update.
4257 * mi/mi-main.c: Update.
4258 * mips-linux-nat.c: Update.
4259 * mips-nbsd-nat.c: Update.
4260 * mips64-obsd-nat.c: Update.
4261 * nat/aarch64-linux-hw-point.c: Update.
4262 * nat/aarch64-linux.c: Update.
4263 * nat/linux-btrace.c: Update.
4264 * nat/linux-osdata.c: Update.
4265 * nat/linux-procfs.c: Update.
4266 * nat/x86-linux-dregs.c: Update.
4267 * nto-procfs.c: Update.
4268 * obsd-nat.c: Update.
4269 * ppc-linux-nat.c: Update.
4270 * ppc-nbsd-nat.c: Update.
4271 * ppc-obsd-nat.c: Update.
4272 * proc-service.c: Update.
4273 * procfs.c: Update.
4274 * python/py-inferior.c: Update.
4275 * python/py-infthread.c: Update.
4276 * ravenscar-thread.c: Update.
4277 * record.c: Update.
4278 * remote-sim.c: Update.
4279 * remote.c: Update.
4280 * rs6000-nat.c: Update.
4281 * s390-linux-nat.c: Update.
4282 * sh-nbsd-nat.c: Update.
4283 * sol-thread.c: Update.
4284 * sparc-nat.c: Update.
4285 * sparc64-tdep.c: Update.
4286 * spu-linux-nat.c: Update.
4287 * spu-tdep.c: Update.
4288 * target-debug.h: Update.
4289 * target.c: Update.
4290 * thread.c: Update.
4291 * tid-parse.c: Update.
4292 * tracefile-tfile.c: Update.
4293 * vax-bsd-nat.c: Update.
4294 * windows-nat.c: Update.
4295 * x86-linux-nat.c: Update.
4296 * x86-nat.c: Update.
4297
4298 2018-07-03 Tom Tromey <tom@tromey.com>
4299
4300 * common/ptid.c (pid_to_ptid): Remove.
4301 * common/ptid.h (pid_to_ptid): Don't declare.
4302 * aix-thread.c: Update.
4303 * arm-linux-nat.c: Update.
4304 * common/ptid.c: Update.
4305 * common/ptid.h: Update.
4306 * corelow.c: Update.
4307 * ctf.c: Update.
4308 * darwin-nat.c: Update.
4309 * fbsd-nat.c: Update.
4310 * fork-child.c: Update.
4311 * gnu-nat.c: Update.
4312 * go32-nat.c: Update.
4313 * inf-ptrace.c: Update.
4314 * infcmd.c: Update.
4315 * inferior.c: Update.
4316 * infrun.c: Update.
4317 * linux-fork.c: Update.
4318 * linux-nat.c: Update.
4319 * nat/aarch64-linux-hw-point.c: Update.
4320 * nat/fork-inferior.c: Update.
4321 * nat/x86-linux-dregs.c: Update.
4322 * nto-procfs.c: Update.
4323 * obsd-nat.c: Update.
4324 * procfs.c: Update.
4325 * progspace.c: Update.
4326 * remote.c: Update.
4327 * rs6000-nat.c: Update.
4328 * s390-linux-nat.c: Update.
4329 * sol-thread.c: Update.
4330 * spu-linux-nat.c: Update.
4331 * target.c: Update.
4332 * top.c: Update.
4333 * tracefile-tfile.c: Update.
4334 * windows-nat.c: Update.
4335
4336 2018-07-03 Tom Tromey <tom@tromey.com>
4337
4338 * common/ptid.h (ptid_build): Don't declare.
4339 * common/ptid.c (ptid_build): Remove.
4340 * aix-thread.c: Update.
4341 * bsd-kvm.c: Update.
4342 * bsd-uthread.c: Update.
4343 * common/agent.c: Update.
4344 * common/ptid.c: Update.
4345 * common/ptid.h: Update.
4346 * corelow.c: Update.
4347 * darwin-nat.c: Update.
4348 * fbsd-nat.c: Update.
4349 * gnu-nat.c: Update.
4350 * linux-fork.c: Update.
4351 * linux-nat.c: Update.
4352 * linux-thread-db.c: Update.
4353 * nat/linux-osdata.c: Update.
4354 * nat/linux-procfs.c: Update.
4355 * nto-procfs.c: Update.
4356 * obsd-nat.c: Update.
4357 * proc-service.c: Update.
4358 * procfs.c: Update.
4359 * ravenscar-thread.c: Update.
4360 * remote-sim.c: Update.
4361 * remote.c: Update.
4362 * sol-thread.c: Update.
4363 * target.c: Update.
4364 * windows-nat.c: Update.
4365
4366 2018-07-03 Tom Tromey <tom@tromey.com>
4367
4368 * infrun.c (follow_exec): Use exit_inferior_silent.
4369 * inferior.c (exit_inferior_num_silent): Remove.
4370 * inferior.h (exit_inferior_num_silent): Don't declare.
4371
4372 2018-07-03 Tom Tromey <tom@tromey.com>
4373
4374 PR cli/23340:
4375 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4376 inferior_ptid on error.
4377
4378 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4379 Simon Marchi <simon.marchi@polymtl.ca>
4380
4381 PR tdep/8282
4382 * disasm.h (gdb_disassembler): Add
4383 `m_disassembler_options_holder'. member
4384 * disasm.c (get_all_disassembler_options): New function.
4385 (gdb_disassembler::gdb_disassembler): Use it.
4386 (gdb_buffered_insn_length_init_dis): Likewise.
4387 (gdb_buffered_insn_length): Adjust accordingly.
4388 (set_disassembler_options): Handle options with arguments.
4389 (show_disassembler_options_sfunc): Likewise. Add a leading new
4390 line if showing options with descriptions.
4391 (disassembler_options_completer): Adapt to using the
4392 `disasm_options_and_args_t' structure.
4393 * mips-tdep.c (mips_disassembler_options): New variable.
4394 (mips_disassembler_options_o32): Likewise.
4395 (mips_disassembler_options_n32): Likewise.
4396 (mips_disassembler_options_n64): Likewise.
4397 (gdb_print_insn_mips): Don't set `disassembler_options'.
4398 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4399 functions.
4400 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4401 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4402 `gdbarch_disassembler_options_implicit' and
4403 `gdbarch_valid_disassembler_options'.
4404 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4405 `disasm_options_and_args_t' structure.
4406 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4407 method.
4408 (valid_disassembler_options): Switch from `disasm_options_t' to
4409 the `disasm_options_and_args_t' structure.
4410 * NEWS: Document `set disassembler-options' support for the MIPS
4411 target.
4412 * gdbarch.h: Regenerate.
4413 * gdbarch.c: Regenerate.
4414
4415 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4416
4417 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4418
4419 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4420
4421 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4422 parameter in call to amd64_target_description.
4423 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4424 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4425 (amd64fbsd_init_abi): Likewise.
4426 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4427 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4428 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4429 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4430
4431 2018-06-29 Pedro Alves <palves@redhat.com>
4432
4433 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4434 "segments" parameter.
4435 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4436 (_initialize_amd64_tdep): Update call to
4437 amd64_create_target_description.
4438 (amd64_target_description): Add "segments" parameter. Adjust
4439 the implementation to use it.
4440 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4441 call to amd64_create_target_description.
4442 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4443 * gdb/arch/amd64.h (amd64_create_target_description): Add
4444 "segments" register.
4445 * gdb/arch/amd64.c (amd64_create_target_description): Add
4446 "segments" parameter. Call create_feature_i386_64bit_segments
4447 only if SEGMENTS is true.
4448 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4449 call to amd64_create_target_description.
4450
4451 2018-06-29 Pedro Alves <palves@redhat.com>
4452
4453 * thread.c (thread_target_id_str): New, factored out from ...
4454 (print_thread_info_1): ... here. Use it to compute the max
4455 "Target Id" column width.
4456
4457 2018-06-29 Pedro Alves <palves@redhat.com>
4458
4459 * remote.c (remote_target::extra_thread_info): Delete
4460 'display_buf' and 'n' locals. from the cache, regardless of
4461 packet mechanims is in use. Use cache for qThreadExtra and qP
4462 methods too.
4463
4464 2018-06-29 Pedro Alves <palves@redhat.com>
4465
4466 * blockframe.c (find_pc_sect_containing_function): New function.
4467 * breakpoint.c (print_breakpoint_location): Don't call
4468 find_pc_sect_function.
4469 * linespec.c (create_sals_line_offset): Record the location's
4470 symbol in the sal.
4471 * linespec.c (convert_address_location_to_sals): Fill in sal's
4472 symbol with find_pc_sect_containing_function.
4473 * symtab.c (find_function_start_sal): Rename to ...
4474 (find_function_start_sal_1): ... this.
4475 (find_function_start_sal): Reimplement as wrapper around
4476 find_function_start_sal_1, and use
4477 find_pc_sect_containing_function to fill in the sal's symbol.
4478 (find_function_start_sal(symbol*, bool)): Adjust.
4479 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4480 comments.
4481 (find_pc_sect_containing_function): Declare.
4482
4483 2018-06-29 Pedro Alves <palves@redhat.com>
4484
4485 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4486 true if the the location has no symbol.
4487
4488 2018-06-28 Tom Tromey <tom@tromey.com>
4489
4490 * NEWS: Mention --enable-codesign.
4491 * silent-rules.mk (ECHO_SIGN): New variable.
4492 * configure.ac: Add --enable-codesign.
4493 * configure: Rebuild.
4494 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4495 (gdb$(EXEEXT)): Optionally invoke codesign.
4496
4497 2018-06-28 Pedro Alves <palves@redhat.com>
4498
4499 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4500 comments.
4501 (switch_to_thread_no_regs): Adjust comment.
4502 * infcmd.c (stop_pc): Delete.
4503 (post_create_inferior, info_program_command): Replace references
4504 to stop_pc with references to thread_info->suspend.stop_pc.
4505 * inferior.h (stop_pc): Delete declaration.
4506 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4507 (handle_inferior_event_1, handle_signal_stop)
4508 (process_event_stop_test, keep_going_stepped_thread)
4509 (handle_step_into_function, handle_step_into_function_backward)
4510 (print_stop_location): Replace references to stop_pc with
4511 references to thread_info->suspend.stop_pc.
4512 (struct infcall_suspend_state) <stop_pc>: Delete field.
4513 (save_infcall_suspend_state, restore_infcall_suspend_state):
4514 Remove references to inf_stat->stop_pc.
4515 * linux-fork.c (fork_load_infrun_state): Likewise.
4516 * record-btrace.c (record_btrace_set_replay): Likewise.
4517 * record-full.c (record_full_goto_entry): Likewise.
4518 * remote.c (print_one_stopped_thread): Likewise.
4519 * target.c (target_resume): Extend comment.
4520 * thread.c (set_executing_thread): New.
4521 (set_executing): Use it.
4522 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4523 Remove references to stop_pc.
4524
4525 2018-06-28 Pedro Alves <palves@redhat.com>
4526
4527 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4528 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4529
4530 2018-06-28 Tom Tromey <tom@tromey.com>
4531
4532 * coffread.c (coff_symfile_finish): Update.
4533 * xcoffread.c (xcoff_symfile_finish): Update.
4534 * elfread.c (elf_symfile_finish): Update.
4535 * symfile.h (dwarf2_free_objfile): Don't declare.
4536 * dwarf2read.c (_initialize_dwarf2_read): Use
4537 register_objfile_data_with_cleanup.
4538 (dwarf2_free_objfile): Now static. Change signature.
4539
4540 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4541
4542 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4543 option "-o" to add-symbol-file-load to add an offset to each
4544 section's load address.
4545 * symfile.c (set_objfile_default_section_offset): New function.
4546
4547 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4548
4549 * symfile.c (add_symbol_file_command): Make sure that sections
4550 with the same name are sorted in the same order.
4551
4552 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4553
4554 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4555 require the second argument. If omitted, load sections at the
4556 addresses specified in the file.
4557
4558 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4559
4560 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4561 (_initialize_symfile): Add option "-o" to symbol-file to add an
4562 offset to each section of the symbol file.
4563
4564 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4565
4566 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4567
4568 2018-06-27 Tom Tromey <tom@tromey.com>
4569
4570 * stack.c (_initialize_stack): Update "func" help text.
4571
4572 2018-06-27 Tom Tromey <tom@tromey.com>
4573
4574 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4575 std::vector.
4576 (unwind_infopy_str, pyuw_create_unwind_info)
4577 (unwind_infopy_add_saved_register, pyuw_sniffer)
4578 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4579 Update.
4580 (struct saved_reg): Add constructor.
4581 <value>: Now a gdbpy_ref<>.
4582
4583 2018-06-27 Tom Tromey <tom@tromey.com>
4584
4585 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4586
4587 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4588
4589 * gdb-gdb.py.in: Format using autopep8.
4590
4591 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4592
4593 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4594 (type_lookup_function): Recognize CORE_ADDR values.
4595
4596 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4597
4598 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4599 print tag_name.
4600
4601 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4602
4603 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4604 <__lt__>: Add.
4605
4606 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4607
4608 * gdb-gdb.py: Move to...
4609 * gdb-gdb.py.in: ... here.
4610 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4611 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4612 dependencies.
4613 (distclean): Remove gdb-gdb.py when cleaning.
4614 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4615 * configure: Re-generate.
4616
4617 2018-06-27 Pedro Alves <palves@redhat.com>
4618
4619 * proc-service.c (get_ps_regcache): New.
4620 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4621 (ps_lsetfpregs): Use it.
4622
4623 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4624
4625 PR gdb/21695
4626 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4627 (dwarf_decode_lines_1): Adjust.
4628
4629 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4630
4631 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4632 override.
4633 <info_proc>: Likewise.
4634
4635 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4636
4637 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4638 to windows_fetch_one_register, and only handle the case of
4639 fetching one register. Move the code that reloads the context
4640 and iterates over all registers if R is negative to...
4641 (windows_nat_target::fetch_registers): ... here.
4642 (do_windows_store_inferior_registers): Rename to
4643 windows_store_one_register, and only handle the case of storing
4644 one register. Move the code that handles the case where r is
4645 negative to...
4646 (windows_nat_target::store_registers) ... here.
4647
4648 2018-06-26 Tom Tromey <tom@tromey.com>
4649
4650 PR rust/22574:
4651 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4652 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4653 Update.
4654 (rust_internal_print_type): Add podata parameter.
4655 (rust_print_type): Update.
4656
4657 2018-06-26 Tom Tromey <tom@tromey.com>
4658
4659 * typeprint.h (struct print_offset_data) <update, finish,
4660 maybe_print_hole>: New methods.
4661 <indentation>: New constant.
4662 * typeprint.c (print_offset_data::indentation): Define.
4663 (print_offset_data::maybe_print_hole, print_offset_data::update)
4664 (print_offset_data::finish): Move from c-typeprint.c and rename.
4665 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4666 (print_spaces_filtered_with_print_options): Update.
4667 (c_print_type_union_field_offset, maybe_print_hole)
4668 (c_print_type_struct_field_offset): Move to typeprint.c and
4669 rename.
4670 (c_type_print_base_struct_union): Update.
4671
4672 2018-06-25 Pedro Alves <palves@redhat.com>
4673
4674 * gdbthread.h (thread_info_ref, delete_thread)
4675 (delete_thread_silent, first_thread_of_inferior)
4676 (any_thread_of_inferior, switch_to_thread)
4677 (enable_thread_stack_temporaries)
4678 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4679 (get_last_thread_stack_temporary)
4680 (value_in_thread_stack_temporaries, can_access_registers_thread):
4681 Spell out "struct thread_info" instead of just "thread_info".
4682 * inferior.h (notice_new_inferior): Likewise.
4683
4684 2018-06-25 Pedro Alves <palves@redhat.com>
4685
4686 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4687 pass thread_info pointer to delete_thread.
4688 (windows_nat_target::detach): Pass inferior pointer to
4689 detach_inferior.
4690 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4691 delete_thread.
4692 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4693 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4694 and pass a thread_info pointer to delete_thread.
4695 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4696 pass thread_info pointer to delete_thread.
4697 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4698 delete_thread_silent call.
4699 * procfs.c (procfs_target::detach): Pass inferior pointer to
4700 detach_inferior.
4701 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4702 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4703 delete_thread_silent call.
4704 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4705 pass thread_info pointer to delete_thread.
4706 (windows_nat_target::detach): Pass inferior pointer to
4707 delete_inferior.
4708
4709 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4710
4711 * regcache.c (readable_regcache::read_part): Fix asserts.
4712 (reg_buffer::raw_collect_part): New function.
4713 (regcache::write_part): Fix asserts.
4714 (reg_buffer::raw_supply_part): New function.
4715 (regcache::transfer_regset_register): New helper function.
4716 (regcache::transfer_regset): Call new functions.
4717 (regcache_supply_regset): Use gdb_byte*.
4718 (regcache::supply_regset): Likewise.
4719 (regcache_collect_regset): Likewise.
4720 (regcache::collect_regset): Likewise.
4721 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4722 (reg_buffer::raw_supply_part): Likewise.
4723 (regcache::transfer_regset_register): Likewise.
4724 (regcache::transfer_regset): Use gdb_byte*.
4725
4726 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4727
4728 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4729
4730 2018-06-21 Pedro Alves <palves@redhat.com>
4731
4732 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4733 instead of a ptid_t. All callers adjusted.
4734 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4735 adjusted.
4736 (print_ada_task_info, display_current_task_id, task_command_1):
4737 Adjust.
4738 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4739 inferior_thread.
4740 (breakpoint_kind): Adjust.
4741 (remove_breakpoints_pid): Rename to ...
4742 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4743 pointer. All callers adjusted.
4744 (bpstat_clear_actions): Use inferior_thread.
4745 (get_bpstat_thread): New.
4746 (bpstat_do_actions): Use it.
4747 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4748 to take a thread_info pointer. All callers adjusted.
4749 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4750 (breakpoint_re_set_thread): Use inferior_thread.
4751 * breakpoint.h (struct inferior): Forward declare.
4752 (bpstat_stop_status): Update.
4753 (remove_breakpoints_pid): Delete.
4754 (remove_breakpoints_inf): New.
4755 * bsd-uthread.c (bsd_uthread_target::wait)
4756 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4757 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4758 (maint_btrace_packet_history_cmd)
4759 (maint_btrace_clear_packet_history_cmd): Adjust.
4760 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4761 inferior_thread.
4762 * cli/cli-interp.c: Include "inferior.h".
4763 * common/refcounted-object.h (struct
4764 refcounted_object_ref_policy): New.
4765 * compile/compile-object-load.c: Include gdbthread.h.
4766 (store_regs): Use inferior_thread.
4767 * corelow.c (core_target::close): Use current_inferior.
4768 (core_target_open): Adjust to use first_thread_of_inferior and use
4769 the current inferior.
4770 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4771 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4772 <thread>: ... this new field. All references adjusted.
4773 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4774 Take a thread_info pointer instead of a ptid_t.
4775 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4776 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4777 thread_info pointer instead of a ptid_t.
4778 * elfread.c: Include "inferior.h".
4779 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4780 Use inferior_thread.
4781 * eval.c (evaluate_subexp): Likewise.
4782 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4783 inferior_thread.
4784 * gdb_proc_service.h (struct thread_info): Forward declare.
4785 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4786 <thread>: ... this new field. All references adjusted.
4787 * gdbarch.h, gdbarch.c: Regenerate.
4788 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4789 'thread' parameter. All implementations and callers adjusted.
4790 * gdbthread.h (thread_info) <set_running>: New method.
4791 (delete_thread, delete_thread_silent): Take a thread_info pointer
4792 instead of a ptid.
4793 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4794 (first_thread_of_process): Delete, replaced by ...
4795 (first_thread_of_inferior): ... this new function. All callers
4796 adjusted.
4797 (any_live_thread_of_process): Delete, replaced by ...
4798 (any_live_thread_of_inferior): ... this new function. All callers
4799 adjusted.
4800 (switch_to_thread, switch_to_no_thread): Declare.
4801 (is_executing): Delete.
4802 (enable_thread_stack_temporaries): Update comment.
4803 <enable_thread_stack_temporaries>: Take a thread_info pointer
4804 instead of a ptid_t. Incref the thread.
4805 <~enable_thread_stack_temporaries>: Decref the thread.
4806 <m_ptid>: Delete
4807 <m_thr>: New.
4808 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4809 (get_last_thread_stack_temporary)
4810 (value_in_thread_stack_temporaries, can_access_registers_thread):
4811 Take a thread_info pointer instead of a ptid_t. All callers
4812 adjusted.
4813 * infcall.c (get_call_return_value): Use inferior_thread.
4814 (run_inferior_call): Work with thread pointers instead of ptid_t.
4815 (call_function_by_hand_dummy): Work with thread pointers instead
4816 of ptid_t. Use thread_info_ref.
4817 * infcmd.c (proceed_thread_callback): Access thread's state
4818 directly.
4819 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4820 access thread's state directly.
4821 (continue_command): Use inferior_thread.
4822 (info_program_command): Use find_thread_ptid and access thread
4823 state directly.
4824 (proceed_after_attach_callback): Use thread state directly.
4825 (notice_new_inferior): Take a thread_info pointer instead of a
4826 ptid_t. All callers adjusted.
4827 (exit_inferior): Take an inferior pointer instead of a pid. All
4828 callers adjusted.
4829 (exit_inferior_silent): New.
4830 (detach_inferior): Delete.
4831 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4832 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4833 (detach_inferior_command, kill_inferior_command): Use
4834 find_inferior_id instead of valid_gdb_inferior_id and
4835 gdb_inferior_id_to_pid.
4836 (inferior_command): Use inferior and thread pointers.
4837 * inferior.h (struct thread_info): Forward declare.
4838 (notice_new_inferior): Take a thread_info pointer instead of a
4839 ptid_t. All callers adjusted.
4840 (detach_inferior): Delete declaration.
4841 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4842 instead of a pid. All callers adjusted.
4843 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4844 (valid_gdb_inferior_id): Delete.
4845 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4846 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4847 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4848 ...
4849 <inf>: ... this new field.
4850 <step_ptid>: Delete, replaced by ...
4851 <step_thread>: ... this new field.
4852 (get_displaced_stepping_state): Take an inferior pointer instead
4853 of a pid. All callers adjusted.
4854 (displaced_step_in_progress_any_inferior): Adjust.
4855 (displaced_step_in_progress_thread): Take a thread pointer instead
4856 of a ptid_t. All callers adjusted.
4857 (displaced_step_in_progress, add_displaced_stepping_state): Take
4858 an inferior pointer instead of a pid. All callers adjusted.
4859 (get_displaced_step_closure_by_addr): Adjust.
4860 (remove_displaced_stepping_state): Take an inferior pointer
4861 instead of a pid. All callers adjusted.
4862 (displaced_step_prepare_throw, displaced_step_prepare)
4863 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4864 All callers adjusted.
4865 (start_step_over): Adjust.
4866 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4867 displaced step queue.
4868 (do_target_resume): Adjust.
4869 (fetch_inferior_event): Use inferior_thread.
4870 (context_switch, get_inferior_stop_soon): Take an
4871 execution_control_state pointer instead of a ptid_t. All callers
4872 adjusted.
4873 (switch_to_thread_cleanup): Delete.
4874 (stop_all_threads): Use scoped_restore_current_thread.
4875 * inline-frame.c: Include "gdbthread.h".
4876 (inline_state) <inline_state>: Take a thread pointer instead of a
4877 ptid_t. All callers adjusted.
4878 <ptid>: Delete, replaced by ...
4879 <thread>: ... this new field.
4880 (find_inline_frame_state): Take a thread pointer instead of a
4881 ptid_t. All callers adjusted.
4882 (skip_inline_frames, step_into_inline_frame)
4883 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4884 pointer instead of a ptid_t. All callers adjusted.
4885 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4886 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4887 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4888 pointers directly.
4889 * linux-nat.c (get_detach_signal): Likewise.
4890 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4891 (thread_db_notice_clone): Adjust.
4892 (thread_db_find_new_threads_silently)
4893 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4894 a thread pointer instead of a ptid_t. All callers adjusted.
4895 * mi/mi-cmd-var.c: Include "inferior.h".
4896 (mi_cmd_var_update_iter): Update to use thread pointers.
4897 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4898 inferior directly.
4899 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4900 out to ...
4901 (mi_output_running): ... this new function.
4902 (mi_on_resume_1): Adjust to use it.
4903 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4904 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4905 directly.
4906 (interrupt_thread_callback): : Adjust to use thread and inferior
4907 pointers.
4908 * proc-service.c: Include "gdbthread.h".
4909 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4910 * progspace-and-thread.c: Include "inferior.h".
4911 * progspace.c: Include "inferior.h".
4912 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4913 hold a reference to an inferior_object.
4914 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4915 inferior_thread.
4916 * python/py-inferior.c (struct inferior_object): Give the type a
4917 tag name instead of a typedef.
4918 (python_on_normal_stop): No need to check if the current thread is
4919 listed.
4920 (inferior_to_inferior_object): Change return type to
4921 inferior_object. All callers adjusted.
4922 (find_thread_object): Delete, bits factored out to ...
4923 (thread_to_thread_object): ... this new function.
4924 * python/py-infthread.c (create_thread_object): Use
4925 inferior_to_inferior_object.
4926 (thpy_is_stopped): Use thread pointer directly.
4927 (gdbpy_selected_thread): Use inferior_thread.
4928 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4929 field, replaced with ...
4930 <thread>: ... this new field. All users adjusted.
4931 (btpy_insn_or_gap_new): Drop const.
4932 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4933 callers adjusted.
4934 * python/py-record.c: Include "gdbthread.h".
4935 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4936 a ptid_t. All callers adjusted.
4937 (gdbpy_current_recording): Use inferior_thread.
4938 * python/py-record.h (recpy_record_object) <ptid>: Delete
4939 field, replaced with ...
4940 <thread>: ... this new field. All users adjusted.
4941 (recpy_element_object) <ptid>: Delete
4942 field, replaced with ...
4943 <thread>: ... this new field. All users adjusted.
4944 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4945 a ptid_t. All callers adjusted.
4946 * python/py-threadevent.c: Include "gdbthread.h".
4947 (get_event_thread): Use thread_to_thread_object.
4948 * python/python-internal.h (struct inferior_object): Forward
4949 declare.
4950 (find_thread_object, find_inferior_object): Delete declarations.
4951 (thread_to_thread_object, inferior_to_inferior_object): New
4952 declarations.
4953 * record-btrace.c: Include "inferior.h".
4954 (require_btrace_thread): Use inferior_thread.
4955 (record_btrace_frame_sniffer)
4956 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4957 (get_thread_current_frame): Use scoped_restore_current_thread and
4958 switch_to_thread.
4959 (get_thread_current_frame): Use thread pointer directly.
4960 (record_btrace_replay_at_breakpoint): Use thread's inferior
4961 pointer directly.
4962 * record-full.c: Include "inferior.h".
4963 * regcache.c: Include "gdbthread.h".
4964 (get_thread_arch_regcache): Use the inferior's address space
4965 directly.
4966 (get_thread_regcache, registers_changed_thread): New.
4967 * regcache.h (get_thread_regcache(thread_info *thread)): New
4968 overload.
4969 (registers_changed_thread): New.
4970 (remote_target) <remote_detach_1>: Swap order of parameters.
4971 (remote_add_thread): <remote_add_thread>: Return the new thread.
4972 (get_remote_thread_info(ptid_t)): New overload.
4973 (remote_target::remote_notice_new_inferior): Use thread pointers
4974 directly.
4975 (remote_target::process_initial_stop_replies): Use
4976 thread_info::set_running.
4977 (remote_target::remote_detach_1, remote_target::detach)
4978 (extended_remote_target::detach): Adjust.
4979 * stack.c (frame_show_address): Use inferior_thread.
4980 * target-debug.h (target_debug_print_thread_info_pp): New.
4981 * target-delegates.c: Regenerate.
4982 * target.c (default_thread_address_space): Delete.
4983 (memory_xfer_partial_1): Use current_inferior.
4984 (target_detach): Use current_inferior.
4985 (target_thread_address_space): Delete.
4986 (generic_mourn_inferior): Use current_inferior.
4987 * target.h (struct target_ops) <thread_address_space>: Delete.
4988 (target_thread_address_space): Delete.
4989 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4990 pointers directly.
4991 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4992 thread pointer instead of a ptid_t. Adjust all callers.
4993 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4994 (first_thread_of_process): Delete, replaced by ...
4995 (first_thread_of_inferior): ... this new function. All callers
4996 adjusted.
4997 (any_thread_of_process): Rename to ...
4998 (any_thread_of_inferior): ... this, and take an inferior pointer.
4999 (any_live_thread_of_process): Rename to ...
5000 (any_live_thread_of_inferior): ... this, and take an inferior
5001 pointer.
5002 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5003 (value_in_thread_stack_temporaries)
5004 (get_last_thread_stack_temporary): Take a thread pointer instead
5005 of a ptid_t. Adjust all callers.
5006 (thread_info::set_running): New.
5007 (validate_registers_access): Use inferior_thread.
5008 (can_access_registers_ptid): Rename to ...
5009 (can_access_registers_thread): ... this, and take a thread
5010 pointer.
5011 (print_thread_info_1): Adjust to compare thread pointers instead
5012 of ptids.
5013 (switch_to_no_thread, switch_to_thread): Make extern.
5014 (scoped_restore_current_thread::~scoped_restore_current_thread):
5015 Use m_thread pointer directly.
5016 (scoped_restore_current_thread::scoped_restore_current_thread):
5017 Use inferior_thread.
5018 (thread_command): Use thread pointer directly.
5019 (thread_num_make_value_helper): Use inferior_thread.
5020 * top.c (execute_command): Use inferior_thread.
5021 * tui/tui-interp.c: Include "inferior.h".
5022 * varobj.c (varobj_create): Use inferior_thread.
5023 (value_of_root_1): Use find_thread_global_id instead of
5024 global_thread_id_to_ptid.
5025
5026 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5027
5028 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5029 possible.
5030 (regcache::write_part): Likewise.
5031 (readable_regcache::cooked_read_part): Update comment.
5032 (readable_regcache::cooked_write_part): Likewise.
5033 * regcache.h: (readable_regcache::read_part): Likewise.
5034 (regcache::write_part): Likewise.
5035
5036 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5037 Dirk Schubert <dirk.schubert@arm.com>
5038
5039 * aarch64-linux-nat.c (post_attach): New.
5040 (aarch64_linux_nat_target::post_attach): Override post_attach to
5041 record the number of hardware debug registers.
5042
5043 2018-06-20 Tom Tromey <tom@tromey.com>
5044
5045 * python/py-param.c (add_setshow_generic): Make parameters const.
5046 (parmpy_init): Update.
5047
5048 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5049
5050 * regcache.h (regcache_cooked_read_ftype): Rename to...
5051 (register_read_ftype): ...this, change type to function_view.
5052 (class reg_buffer) <save>: Remove src parameter.
5053 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5054 parameter non-const in first overload. Remove src parameter in
5055 second overload.
5056 * regcache.c (do_cooked_read): Remove.
5057 (readonly_detached_regcache::readonly_detached_regcache): Make
5058 parameter non-const, adjust call to other constructor.
5059 (reg_buffer::save): Remove src parameter.
5060 * frame.c (do_frame_register_read): Remove.
5061 (frame_save_as_regcache): Use lambda function.
5062 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5063 parameter to ppu2spu_data *.
5064 (ppu2spu_sniffer): Use lambda function.
5065
5066 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5067
5068 * record-full.c (record_full_target::insert_breakpoint): Remove
5069 "struct" keyword, add const.
5070
5071 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5072
5073 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5074 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5075 * configure.ac: Remove AC_PREREQ, add missing quoting.
5076 * gnulib/configure.ac: Modernize usage of
5077 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5078 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5079 (AUTOMAKE_VERSION): Bump to 1.15.1.
5080 * configure: Re-generate.
5081 * config.in: Re-generate.
5082 * aclocal.m4: Re-generate.
5083 * gnulib/aclocal.m4: Re-generate.
5084 * gnulib/config.in: Re-generate.
5085 * gnulib/configure: Re-generate.
5086 * gnulib/import/Makefile.in: Re-generate.
5087
5088 2018-06-19 Pedro Alves <palves@redhat.com>
5089
5090 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5091 (lookup_minimal_symbol_by_pc_section): ... here with
5092 gdb_assert_not_reached added.
5093
5094 2018-06-19 Pedro Alves <palves@redhat.com>
5095
5096 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5097 parameter with a block parameter. Compare location's block symbol
5098 with the frame's block instead of addresses.
5099 (skip_inline_frames): Pass the current block instead of the
5100 frame's address. Break out as soon as we determine the frame
5101 should not be skipped.
5102
5103 2018-06-18 Tom Tromey <tom@tromey.com>
5104
5105 * solib-aix.c (solib_aix_get_section_offsets): Return
5106 unique_xmalloc_ptr.
5107 (solib_aix_solib_create_inferior_hook): Update.
5108
5109 2018-06-18 Tom Tromey <tom@tromey.com>
5110
5111 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5112
5113 2018-06-18 Tom Tromey <tom@tromey.com>
5114
5115 * solib-frv.c (frv_relocate_main_executable): Use
5116 unique_xmalloc_ptr.
5117 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5118 unique_xmalloc_ptr.
5119
5120 2018-06-18 Tom Tromey <tom@tromey.com>
5121
5122 * objfiles.h (inhibit_section_map_updates): Update.
5123 (resume_section_map_updates, resume_section_map_updates_cleanup):
5124 Remove.
5125 * solib-svr4.c (svr4_handle_solib_event): Update.
5126 * objfiles.c (inhibit_section_map_updates): Return
5127 scoped_restore_tmpl<int>.
5128 (resume_section_map_updates, resume_section_map_updates_cleanup):
5129 Remove.
5130
5131 2018-06-18 Tom Tromey <tom@tromey.com>
5132
5133 * valprint.h (read_string): Update.
5134 * valprint.c (read_string): Change type of "buffer".
5135 (val_print_string): Update.
5136 * python/py-value.c (valpy_string): Update.
5137 * language.h (struct language_defn) <la_get_string>: Change
5138 type of "buffer".
5139 (default_get_string, c_get_string): Update.
5140 * language.c (default_get_string): Change type of "buffer".
5141 * guile/scm-value.c (gdbscm_value_to_string): Update.
5142 * c-lang.c (c_get_string): Change type of "buffer".
5143
5144 2018-06-18 Tom Tromey <tom@tromey.com>
5145
5146 * ser-mingw.c (struct pipe_state_destroyer): New.
5147 (pipe_state_up): New typedef.
5148 (cleanup_pipe_state): Remove.
5149 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5150
5151 2018-06-18 Tom Tromey <tom@tromey.com>
5152
5153 * rust-lang.h (rust_yyerror): Don't declare.
5154 * rust-lang.c (rust_language_defn): Update.
5155 * rust-exp.y (yyerror): Now static.
5156 * parse.c (parse_exp_in_context_1): Update.
5157 * p-lang.h (p_yyerror): Don't declare.
5158 * p-lang.c (p_language_defn): Update.
5159 * p-exp.y (yyerror): Now static.
5160 * opencl-lang.c (opencl_language_defn): Update.
5161 * objc-lang.c (objc_language_defn): Update.
5162 * m2-lang.h (m2_yyerror): Don't declare.
5163 * m2-lang.c (m2_language_defn): Update.
5164 * m2-exp.y (yyerror): Now static.
5165 * language.h (struct language_defn) <la_error>: Remove.
5166 * language.c (unk_lang_error): Remove.
5167 (unknown_language_defn, auto_language_defn): Remove.
5168 * go-lang.h (go_yyerror): Don't declare.
5169 * go-lang.c (go_language_defn): Update.
5170 * go-exp.y (yyerror): Now static.
5171 * f-lang.h (f_yyerror): Don't declare.
5172 * f-lang.c (f_language_defn): Update.
5173 * f-exp.y (yyerror): Now static.
5174 * d-lang.h (d_yyerror): Don't declare.
5175 * d-lang.c (d_language_defn): Update.
5176 * d-exp.y (yyerror): Now static.
5177 * c-lang.h (c_yyerror): Don't declare.
5178 * c-lang.c (c_language_defn, cplus_language_defn)
5179 (asm_language_defn, minimal_language_defn): Update.
5180 * c-exp.y (yyerror): Now static.
5181 * ada-lang.h (ada_yyerror): Don't declare.
5182 * ada-lang.c (ada_language_defn): Update.
5183 * ada-exp.y (yyerror): Now static.
5184
5185 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5186
5187 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5188 (store_sveregs_to_thread): Likewise.
5189 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5190 (aarch64_linux_store_inferior_registers): Likewise.
5191 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5192 function.
5193 (aarch64_sve_regs_copy_to_regcache): Likewise.
5194 (aarch64_sve_regs_copy_from_regcache): Likewise.
5195 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5196 declaration.
5197 (aarch64_sve_regs_copy_to_regcache): Likewise.
5198 (aarch64_sve_regs_copy_from_regcache): Likewise.
5199 (sve_context): Structure from Linux headers.
5200 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5201 (SVE_SIG_ZREG_SIZE): Likewise.
5202 (SVE_SIG_PREG_SIZE): Likewise.
5203 (SVE_SIG_FFR_SIZE): Likewise.
5204 (SVE_SIG_REGS_OFFSET): Likewise.
5205 (SVE_SIG_ZREGS_OFFSET): Likewise.
5206 (SVE_SIG_ZREG_OFFSET): Likewise.
5207 (SVE_SIG_ZREGS_SIZE): Likewise.
5208 (SVE_SIG_PREGS_OFFSET): Likewise.
5209 (SVE_SIG_PREG_OFFSET): Likewise.
5210 (SVE_SIG_PREGS_SIZE): Likewise.
5211 (SVE_SIG_FFR_OFFSET): Likewise.
5212 (SVE_SIG_REGS_SIZE): Likewise.
5213 (SVE_SIG_CONTEXT_SIZE): Likewise.
5214 (SVE_PT_REGS_MASK): Likewise.
5215 (SVE_PT_REGS_FPSIMD): Likewise.
5216 (SVE_PT_REGS_SVE): Likewise.
5217 (SVE_PT_VL_INHERIT): Likewise.
5218 (SVE_PT_VL_ONEXEC): Likewise.
5219 (SVE_PT_REGS_OFFSET): Likewise.
5220 (SVE_PT_FPSIMD_OFFSET): Likewise.
5221 (SVE_PT_FPSIMD_SIZE): Likewise.
5222 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5223 (SVE_PT_SVE_PREG_SIZE): Likewise.
5224 (SVE_PT_SVE_FFR_SIZE): Likewise.
5225 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5226 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5227 (__SVE_SIG_TO_PT): Likewise.
5228 (SVE_PT_SVE_OFFSET): Likewise.
5229 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5230 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5231 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5232 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5233 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5234 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5235 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5236 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5237 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5238 (SVE_PT_SVE_SIZE): Likewise.
5239 (SVE_PT_SIZE): Likewise.
5240 (HAS_SVE_STATE): New define.
5241
5242 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5243
5244 * nat/aarch64-sve-linux-sigcontext.h: New file.
5245 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5246 new files.
5247 (SVE_VQ_MIN): Likewise.
5248 (SVE_VQ_MAX): Likewise.
5249 (SVE_VL_MIN): Likewise.
5250 (SVE_VL_MAX): Likewise.
5251 (SVE_NUM_ZREGS): Likewise.
5252 (SVE_NUM_PREGS): Likewise.
5253 (sve_vl_valid): Likewise.
5254 (struct user_sve_header): Likewise.
5255
5256 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5257 Richard Bunt <Richard.Bunt@arm.com>
5258
5259 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5260 was requested by GDB.
5261
5262 2018-06-15 Tom de Vries <tdevries@suse.de>
5263
5264 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5265
5266 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5267
5268 * gnulib/update-gnulib.sh: Print expected versions of
5269 autoconf/aclocal.
5270
5271 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5272
5273 * arch-utils.c (default_type_align): Use type_length_units.
5274 * gdbtypes.c (type_align): Use type_length_units.
5275
5276 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5277
5278 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5279 of 'define' command.
5280
5281 2018-06-14 Tom de Vries <tdevries@suse.de>
5282
5283 PR cli/22573
5284 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5285 get_no_prettyformat_print_options.
5286
5287 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5288
5289 * sparc-nat.h: Include target.h.
5290 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5291 <fetch_registers>: Remove this argument in function call.
5292 <store_registers>: Remove this argument in function call, remove
5293 extra semicolon.
5294 <low_forget_process>: Call sparc64_forget_process instead of
5295 sparc_forget_process.
5296
5297 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5298
5299 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5300 (procfs_target::make_corefile_notes): Adjust to new
5301 target_read_alloc return type.
5302
5303 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5304 Stephen Roberts <stephen.roberts@arm.com>
5305
5306 PR gdb/22882
5307 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5308 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5309 Move should_notify_stop local into more inner scope.
5310
5311 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5312 Stephen Roberts <stephen.roberts@arm.com>
5313
5314 PR gdb/22882
5315 * infrun.c (resume_1): Add call to mark_async_event_handler.
5316
5317 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5318
5319 * infrun.c (do_target_wait): Change old version of $pc printed.
5320
5321 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5322
5323 * dwarf2read.c (read_index_from_section): Rename to...
5324 (read_gdb_index_from_section): ... this, update all callers.
5325 (dwarf2_read_index): Rename to...
5326 (dwarf2_read_gdb_index): ... this, update all callers.
5327
5328 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5329
5330 * gdb/hppa-linux-nat.c
5331 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5332 hppa_linux_nat_target::fetch_registers.
5333
5334 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5335
5336 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5337 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5338 (AARCH64_DWARF_SVE_FFR): Likewise.
5339 (AARCH64_DWARF_SVE_P0): Likewise.
5340 (AARCH64_DWARF_SVE_Z0): Likewise.
5341
5342 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5343
5344 * common/common-regcache.h (raw_compare): New function.
5345 * regcache.c (regcache::raw_compare): Likewise.
5346 * regcache.h (regcache::raw_compare): New declaration.
5347
5348 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5349
5350 * common/common-regcache.h (reg_buffer_common): New structure.
5351 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5352 (reg_buffer::raw_supply): Likewise.
5353 (reg_buffer::raw_supply_integer): Likewise.
5354 (reg_buffer::raw_supply_zeroed): Likewise.
5355 (reg_buffer::raw_collect): Likewise.
5356 (reg_buffer::raw_collect_integer): Likewise.
5357 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5358 (reg_buffer::raw_supply): Likewise.
5359 (reg_buffer::raw_supply_integer): Likewise.
5360 (reg_buffer::raw_supply_zeroed): Likewise.
5361 (reg_buffer::raw_collect): Likewise.
5362 (reg_buffer::raw_collect_integer): Likewise.
5363
5364 2018-06-10 Tom Tromey <tom@tromey.com>
5365
5366 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5367 (class remote_state) <stop_reply_queue>: Now std::vector.
5368 (remote_state::~remote_state)
5369 (remote_target::stop_reply_queue_length): Update.
5370 (struct queue_iter_param, remove_child_of_pending_fork)
5371 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5372 (check_pending_event_prevents_wildcard_vcont_callback)
5373 (remove_stop_reply_for_inferior)
5374 (remove_stop_reply_of_remote_state)
5375 (remote_notif_remove_once_on_match)
5376 (stop_reply_match_ptid_and_ws)
5377 (remote_kill_child_of_pending_fork): Remove.
5378 (remote_target::remove_new_fork_children)
5379 (remote_target::check_pending_events_prevent_wildcard_vcont)
5380 (remote_target::discard_pending_stop_replies)
5381 (remote_target::discard_pending_stop_replies_in_queue)
5382 (remote_target::remote_notif_remove_queued_reply)
5383 (remote_target::queued_stop_reply)
5384 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5385 (remote_target::wait, remote_target::kill_new_fork_children)
5386 (remote_target::async): Update.
5387
5388 2018-06-10 Tom Tromey <tom@tromey.com>
5389
5390 * record-full.c (record_full_arch_list_cleanups): Remove.
5391 (record_full_message): Use try/catch.
5392 (record_full_wait_cleanups): Remove.
5393 (record_full_wait_1): Use try/catch.
5394 (record_full_restore): Likewise.
5395
5396 2018-06-10 Tom Tromey <tom@tromey.com>
5397
5398 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5399 declare VEC. Add constructor.
5400 <in_target_beneath>: Now bool.
5401 (record_full_breakpoints): Now a std::vector, static.
5402 (record_full_sync_record_breakpoints)
5403 (record_full_init_record_breakpoints)
5404 (record_full_target::insert_breakpoint)
5405 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5406
5407 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5408
5409 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5410 * serial.c (serial_interface_lookup): Remove struct keyword.
5411
5412 2018-06-10 Tom Tromey <tom@tromey.com>
5413
5414 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5415 method.
5416 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5417 a method.
5418 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5419 method.
5420 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5421 "beneath" as a method.
5422 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5423 Use "beneath" as a method.
5424
5425 2018-06-10 Tom Tromey <tom@tromey.com>
5426
5427 * tracefile.c (struct trace_file_writer_deleter): New.
5428 <operator()>: Rename from trace_file_writer_xfree.
5429 (trace_file_writer_up): New typedef.
5430 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5431
5432 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5433
5434 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5435 <m_registers, m_register_status>: Change type to
5436 std::unique_ptr.
5437 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5438 XCNEWVEC.
5439
5440 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5441
5442 * common/common-regcache.h (enum register_status): Add
5443 underlying type "signed char".
5444 * regcache.h (reg_buffer) <m_register_status>: Change type to
5445 register_status *.
5446 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5447 register_status instead of signed char.
5448 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5449 (reg_buffer::get_register_status): Remove cast.
5450 (readable_regcache::raw_read): Remove cast.
5451 (readable_regcache::cooked_read): Remove cast.
5452
5453 2018-06-09 Tom Tromey <tom@tromey.com>
5454
5455 * source.c (reverse_search_command, forward_search_command): Use
5456 scoped_fd.
5457
5458 2018-06-09 Tom Tromey <tom@tromey.com>
5459
5460 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5461 (serial_ops_list): Now static, std::vector.
5462 (serial_interface_lookup, serial_add_interface): Update.
5463
5464 2018-06-09 Tom Tromey <tom@tromey.com>
5465
5466 * dwarf2read.c (process_cu_includes): Update.
5467 (process_full_comp_unit): Update.
5468 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5469 std::vector.
5470
5471 2018-06-08 Paul Koning <paul_koning@dell.com>
5472
5473 PR gdb/23252
5474
5475 * python/python.c (do_start_initialization):
5476 Avoid call to internal Python API.
5477 (init__gdb_module): New function.
5478
5479 2018-06-08 Gary Benson <gbenson@redhat.com>
5480
5481 * linux-thread-db.c (valprint.h): New include.
5482 (struct check_thread_db_info): New structure.
5483 (check_thread_db_on_load, tdb_testinfo): New static globals.
5484 (check_thread_db, check_thread_db_callback): New functions.
5485 (try_thread_db_load_1): Run integrity checks if requested.
5486 (maintenance_check_libthread_db): New function.
5487 (_initialize_thread_db): Register "maint check libthread-db"
5488 and "maint set/show check-libthread-db".
5489 * NEWS: Mention the above new commands.
5490
5491 2018-06-08 Tom Tromey <tom@tromey.com>
5492
5493 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5494 now a method.
5495
5496 2018-06-08 Tom Tromey <tom@tromey.com>
5497
5498 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5499
5500 2018-06-08 Tom Tromey <tom@tromey.com>
5501
5502 * common/btrace-common.h (struct btrace_data): Add constructor,
5503 destructor, move assignment operator.
5504 <empty, clear, fini>: New methods.
5505 <format>: Initialize.
5506 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5507 (btrace_data_empty): Don't declare.
5508 * common/btrace-common.c (btrace_data_init): Remove.
5509 (btrace_data::fini): Rename from btrace_data_fini.
5510 (btrace_data::empty): Rename from btrace_data_empty.
5511 (btrace_data::clear): Rename from btrace_data_clear. Return
5512 bool.
5513 * btrace.h (make_cleanup_btrace_data): Don't declare.
5514 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5515 (parse_xml_btrace): Update.
5516 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5517 (maint_btrace_clear_packet_history_cmd): Update.
5518
5519 2018-06-07 Pedro Alves <palves@redhat.com>
5520
5521 * target.h (target_ops) <beneath>: Now a method. All references
5522 updated.
5523 (class target_stack): New.
5524 * target.c (g_target_stack): New.
5525 (g_current_top_target): Delete.
5526 (current_top_target): Get the top target out of g_target_stack.
5527 (target_stack::push, target_stack::unpush): New.
5528 (push_target, unpush_target): Reimplement.
5529 (target_is_pushed): Reimplement in terms of g_target_stack.
5530 (target_ops::beneath, target_stack::find_beneath): New.
5531
5532 2018-06-07 Pedro Alves <palves@redhat.com>
5533
5534 * target.h (find_target_beneath): Delete declaration.
5535 * target.c (find_target_beneath): Delete definition.
5536 * aix-thread.c: All callers of find_target_beneath adjusted to
5537 call target_ops::beneath instead.
5538 * bsd-uthread.c: Likewise.
5539 * linux-thread-db.c: Likewise.
5540 * ravenscar-thread.c: Likewise.
5541 * sol-thread.c: Likewise.
5542 * spu-multiarch.c: Likewise.
5543
5544 2018-06-07 Pedro Alves <palves@redhat.com>
5545
5546 * target.h (target_ops) <beneath>: Now a method. All references
5547 updated.
5548 (target_ops) <m_beneath>: New.
5549 * target.c (target_ops::beneath): New.
5550 * corelow.c: Adjust all references to target_ops::beneath.
5551 * linux-thread-db.c: Likewise.
5552 * make-target-delegates: Likewise.
5553 * record-btrace.c: Likewise.
5554 * record-full.c: Likewise.
5555 * remote.c: Likewise.
5556 * target.c: Likewise.
5557 * target-delegates.c: Regenerate.
5558
5559 2018-06-07 Pedro Alves <palves@redhat.com>
5560
5561 * target.h (target_stack): Delete.
5562 (current_top_target): Declare function.
5563 * target.c (target_stack): Delete.
5564 (g_current_top_target): New.
5565 (current_top_target): New function.
5566 * auxv.c: Use current_top_target instead of target_stack
5567 throughout.
5568 * avr-tdep.c: Likewise.
5569 * breakpoint.c: Likewise.
5570 * corefile.c: Likewise.
5571 * elfread.c: Likewise.
5572 * eval.c: Likewise.
5573 * exceptions.c: Likewise.
5574 * frame.c: Likewise.
5575 * gdbarch-selftests.c: Likewise.
5576 * gnu-v3-abi.c: Likewise.
5577 * ia64-tdep.c: Likewise.
5578 * ia64-vms-tdep.c: Likewise.
5579 * infcall.c: Likewise.
5580 * infcmd.c: Likewise.
5581 * infrun.c: Likewise.
5582 * linespec.c: Likewise.
5583 * linux-tdep.c: Likewise.
5584 * minsyms.c: Likewise.
5585 * ppc-linux-nat.c: Likewise.
5586 * ppc-linux-tdep.c: Likewise.
5587 * procfs.c: Likewise.
5588 * regcache.c: Likewise.
5589 * remote.c: Likewise.
5590 * rs6000-tdep.c: Likewise.
5591 * s390-linux-nat.c: Likewise.
5592 * s390-tdep.c: Likewise.
5593 * solib-aix.c: Likewise.
5594 * solib-darwin.c: Likewise.
5595 * solib-dsbt.c: Likewise.
5596 * solib-spu.c: Likewise.
5597 * solib-svr4.c: Likewise.
5598 * solib-target.c: Likewise.
5599 * sparc-tdep.c: Likewise.
5600 * sparc64-tdep.c: Likewise.
5601 * spu-tdep.c: Likewise.
5602 * symfile.c: Likewise.
5603 * symtab.c: Likewise.
5604 * target-descriptions.c: Likewise.
5605 * target-memory.c: Likewise.
5606 * target.c: Likewise.
5607 * target.h: Likewise.
5608 * tracefile-tfile.c: Likewise.
5609 * tracepoint.c: Likewise.
5610 * valops.c: Likewise.
5611 * valprint.c: Likewise.
5612 * value.c: Likewise.
5613 * windows-tdep.c: Likewise.
5614 * mi/mi-main.c: Likewise.
5615
5616 2018-06-07 Tom Tromey <tom@tromey.com>
5617
5618 * valprint.h (build_address_symbolic): Declare.
5619 * printcmd.c (print_address_symbolic): Update.
5620 (build_address_symbolic): Change "name" and "filename" to
5621 std::string.
5622 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5623 Update.
5624 * defs.h (build_address_symbolic): Remove declaration.
5625
5626 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5627
5628 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5629 (aarch64_vnv_type): Add function.
5630 (aarch64_pseudo_register_name): Add V regs for SVE.
5631 (aarch64_pseudo_register_type): Likewise.
5632 (aarch64_pseudo_register_reggroup_p): Likewise.
5633 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5634 (aarch64_pseudo_read_value): Add V regs for SVE.
5635 (aarch64_pseudo_write_2): Use V0 offset for SVE
5636 (aarch64_pseudo_write): Add V regs for SVE.
5637 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5638
5639 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5640
5641 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5642 (sve_vl_from_vq): Likewise.
5643
5644 2018-06-05 Tom Tromey <tom@tromey.com>
5645
5646 * cli/cli-cmds.c (show_version): Update.
5647 * top.c (print_gdb_version): Add "interactive" parameter.
5648 Update.
5649 * main.c (captured_main_1): Update.
5650 * top.h (print_gdb_version): Add "interactive" parameter and a
5651 comment.
5652
5653 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5654
5655 * common/enum-flags.h: Add trailing semicolon to example in
5656 comment.
5657
5658 2018-06-05 Tom Tromey <tom@tromey.com>
5659
5660 PR cli/12326:
5661 * NEWS: Add entry about pager.
5662 * utils.c (pagination_disabled_for_command): New global.
5663 (prompt_for_continue): Allow "c" response to prompt.
5664 (reinitialize_more_filter): Clear
5665 pagination_disabled_for_command.
5666 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5667
5668 2018-06-04 Tom Tromey <tom@tromey.com>
5669
5670 * ada-lang.h (ada_lookup_symbol_list): Update.
5671 * ada-lang.c (resolve_subexp): Update.
5672 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5673 parameter.
5674 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5675 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5676 results parameter to std::vector.
5677 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5678 Update.
5679 * ada-exp.y (block_lookup): Update.
5680 (select_possible_type_sym): Change type of syms. Remove nsyms
5681 parameter.
5682 (write_var_or_type, write_name_assoc): Update.
5683
5684 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5685
5686 * windows-nat.c (windows_nat_target::xfer_partial): Return
5687 TARGET_XFER_E_IO if we need to delegate to the target beneath
5688 but BENEATH is NULL.
5689
5690 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5691
5692 * Makefile.in (config.status): Add configure.nat as a
5693 dependency.
5694
5695 2018-06-04 Tom Tromey <tom@tromey.com>
5696
5697 * cp-name-parser.y (cpname_state): Add method declarations.
5698 (HANDLE_QUAL): Update.
5699 (cpname_state::d_grab, cpname_state::fill_comp)
5700 (cpname_state::make_operator, cpname_state::make_dtor)
5701 (cpname_state::make_builtin_type, cpname_state::make_name)
5702 (cpname_state::d_qualify, cpname_state::d_int_type)
5703 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5704 (%union): Move earlier.
5705
5706 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5707
5708 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5709
5710 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5711
5712 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5713 (aarch64_pseudo_write_1): Likewise.
5714 (aarch64_pseudo_read_value): Use helper.
5715 (aarch64_pseudo_write): Likewise.
5716
5717 2018-06-04 Pedro Alves <palves@redhat.com>
5718
5719 * darwin-nat.c (darwin_ops): Delete.
5720 (darwin_attach_pid): Use get_native_target.
5721
5722 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5723
5724 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5725 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5726
5727 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5728
5729 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5730 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5731 (aarch64_gdbarch_init): Check for SVE.
5732 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5733
5734 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5735
5736 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5737 * aarch64-tdep.h (aarch64_read_description): Likewise.
5738 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5739 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5740 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5741 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5742 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5743
5744 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5745
5746 * value.c (value_fetch_lazy_bitfield): New.
5747 (value_fetch_lazy_memory): New.
5748 (value_fetch_lazy_register): New.
5749 (value_fetch_lazy): Factor out to smaller functions.
5750
5751 2018-06-01 Tom Tromey <tom@tromey.com>
5752
5753 * cp-name-parser.y (backslashable, represented): Now const.
5754
5755 2018-06-01 Tom Tromey <tom@tromey.com>
5756
5757 * cp-name-parser.y: Include parser-defs.h.
5758 (parser_fprintf): Remove declaration.
5759
5760 2018-06-01 Tom Tromey <tom@tromey.com>
5761
5762 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5763 %parse-param.
5764 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5765 (global_result): Remove globals.
5766 (struct cpname_state): New.
5767 (yyparse): Don't declare.
5768 (yylex, yyerror): Move declarations after %union.
5769 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5770 (make_name): Add state parameter.
5771 Update all callers.
5772 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5773 parameter.
5774 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5775 Update.
5776 (yylex): Add lvalp, state parameters.
5777 (yyerror): Add state parameter.
5778 (cp_demangled_name_to_comp): Update.
5779
5780 2018-06-01 Tom Tromey <tom@tromey.com>
5781
5782 * cp-name-parser.y (parser_fprintf): Declare.
5783 (GDB_YY_REMAP_PREFIX): Define.
5784 Include yy-remap.h. Don't redefine yy* identifiers.
5785
5786 2018-06-01 Tom Tromey <tom@tromey.com>
5787
5788 * python/py-type.c (typy_legacy_template_argument): Update.
5789 * cp-support.h (cp_demangled_name_to_comp): Update.
5790 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5791 parameter to be a "std::string *".
5792 (main): Update.
5793
5794 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5795
5796 * ada-lex.l: Include "diagnostics.h" instead of
5797 "common/diagnostics.h".
5798 * unittests/environ-selftests.c: Likewise.
5799 * common/diagnostics.h: Moved to ../include.
5800
5801 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5802
5803 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5804 to language_mode_manual while calling breakpoint_re_set_one.
5805
5806 2018-06-01 Tom Tromey <tom@tromey.com>
5807
5808 * valops.c (value_cast_structs, destructor_name_p): Update.
5809 * symtab.c (gdb_mangle_name): Update.
5810 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5811 Update.
5812 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5813 (pascal_object_print_value_fields, pascal_object_print_value):
5814 Update.
5815 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5816 * linespec.c (find_methods): Update.
5817 * gdbtypes.h (type_name_no_tag): Remove.
5818 (type_name_or_error): Rename from type_name_no_tag_or_error.
5819 * gdbtypes.c (type_name_no_tag): Remove.
5820 (type_name_or_error): Rename from type_name_no_tag_or_error.
5821 (lookup_struct_elt_type, check_typedef): Update.
5822 * expprint.c (print_subexp_standard): Update.
5823 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5824 * d-namespace.c (d_lookup_nested_symbol): Update.
5825 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5826 (cp_print_class_member): Update.
5827 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5828 * completer.c (add_struct_fields): Update.
5829 * c-typeprint.c (cp_type_print_derivation_info)
5830 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5831 Update.
5832 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5833 (ada_prefer_type, ada_is_exception_sym): Update.
5834
5835 2018-06-01 Tom Tromey <tom@tromey.com>
5836
5837 * valops.c (enum_constant_from_type, value_namespace_elt)
5838 (value_maybe_namespace_elt): Update.
5839 * valarith.c (find_size_for_pointer_math): Update.
5840 * target-descriptions.c (make_gdb_type): Update.
5841 * symmisc.c (print_symbol): Update.
5842 * stabsread.c (define_symbol, read_type)
5843 (complain_about_struct_wipeout, add_undefined_type)
5844 (cleanup_undefined_types_1): Update.
5845 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5846 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5847 (rust_internal_print_type, rust_composite_type)
5848 (rust_evaluate_funcall, rust_evaluate_subexp)
5849 (rust_inclusive_range_type_p): Update.
5850 * python/py-type.c (typy_get_tag): Update.
5851 * p-typeprint.c (pascal_type_print_base): Update.
5852 * mdebugread.c (parse_symbol, parse_type): Update.
5853 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5854 Update.
5855 * guile/scm-type.c (gdbscm_type_tag): Update.
5856 * go-lang.c (sixg_string_p): Update.
5857 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5858 Update.
5859 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5860 (TYPE_TAG_NAME): Remove.
5861 * gdbtypes.c (type_name_no_tag): Simplify.
5862 (check_typedef, check_types_equal, recursive_dump_type)
5863 (copy_type_recursive, arch_composite_type): Update.
5864 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5865 in summary mode when needed.
5866 * eval.c (evaluate_funcall): Update.
5867 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5868 (process_structure_scope, read_enumeration_type)
5869 (read_namespace_type, read_module_type, determine_prefix): Update.
5870 * cp-support.c (inspect_type): Update.
5871 * coffread.c (process_coff_symbol, decode_base_type): Update.
5872 * c-varobj.c (c_is_path_expr_parent): Update.
5873 * c-typeprint.c (c_type_print_base_struct_union): Update.
5874 (c_type_print_base_1): Update. Print struct/class/union/enum in
5875 summary when using C language.
5876 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5877 (gen_maybe_namespace_elt): Update.
5878 * ada-lang.c (ada_type_name): Simplify.
5879 (empty_record, ada_template_to_fixed_record_type_1)
5880 (template_to_static_fixed_type)
5881 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5882
5883 2018-06-01 Tom Tromey <tom@tromey.com>
5884
5885 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5886 c_print_type.
5887 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5888 (c_print_type): Update.
5889 (c_print_type): New overload.
5890 (c_type_print_varspec_prefix, c_type_print_args)
5891 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5892 (c_type_print_base_struct_union, c_type_print_base_1)
5893 (cp_type_print_method_args): Add "language" parameter.
5894 (c_type_print_base): Update.
5895 * c-lang.h (c_print_type): Add new overload.
5896
5897 2018-06-01 Tom Tromey <tom@tromey.com>
5898
5899 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5900 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5901
5902 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5903
5904 * aarch64-tdep.c (aarch64_sve_register_names): New const
5905 var.
5906 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5907 (AARCH64_SVE_Z_REGS_NUM): New define.
5908 (AARCH64_SVE_P_REGS_NUM): Likewise.
5909 (AARCH64_SVE_NUM_REGS): Likewise.
5910
5911 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5912
5913 * nat/linux-ptrace.h [__alpha__]
5914 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5915 definitions.
5916
5917 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5918
5919 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5920 the endianness selected.
5921 * NEWS: Document `set endian auto' mode operation update.
5922
5923 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5924
5925 * Makefile.in: Add new header.
5926 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5927 (sve_vl_from_vg): Likewise.
5928 (sve_vq_from_vl): Likewise.
5929 (sve_vl_from_vq): Likewise.
5930 (sve_vq_from_vg): Likewise.
5931 (sve_vg_from_vq): Likewise.
5932 * configure.nat: Add new c file.
5933 * nat/aarch64-sve-linux-ptrace.c: New file.
5934 * nat/aarch64-sve-linux-ptrace.h: New file.
5935
5936 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5937
5938 * aarch64-linux-nat.c (aarch64_linux_read_description):
5939 Add parmeter zero.
5940 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5941 Likewise.
5942 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5943 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5944 (aarch64_gdbarch_init): Add parmeter zero.
5945 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5946 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5947 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5948 parmeter.
5949 * doc/gdb.texinfo: Describe SVE feature
5950 * features/aarch64-sve.c: New file.
5951
5952 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
5953
5954 PR gdb/23210
5955 * gdbarch.sh (significant_addr_bit): Default to zero when
5956 not set by target architecture.
5957 * gdbarch.c: Re-generated.
5958 * utils.c (address_significant): Update.
5959
5960 2018-05-30 Joel Brobecker <brobecker@adacore.com>
5961
5962 * stack.c (func_command): Remove trailing newline in call to error.
5963
5964 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5965
5966 * regcache.h (regcache_raw_collect): Remove, update callers to
5967 use regcache::raw_collect.
5968 * regcache.c (regcache_raw_collect): Remove.
5969
5970 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5971
5972 * regcache.h (regcache_raw_supply): Remove, update callers to
5973 use detached_regcache::raw_supply.
5974 * regcache.c (regcache_raw_supply): Remove.
5975
5976 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5977
5978 * regcache.h (regcache_cooked_write_part): Remove, update
5979 callers to use regcache::cooked_write_part.
5980 * regcache.c (regcache_cooked_write_part): Remove.
5981
5982 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5983
5984 * regcache.h (regcache_cooked_read_part): Remove, update callers
5985 to use readable_regcache::cooked_read_part.
5986 * regcache.c (regcache_cooked_read_part): Remove.
5987
5988 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5989
5990 * regcache.h (regcache_cooked_read_value): Remove, update
5991 callers to use readable_regcache::cooked_read_value.
5992 * regcache.c (regcache_cooked_read_value): Remove.
5993
5994 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5995
5996 * regcache.h (regcache_cooked_write): Remove, update callers to
5997 use regcache::cooked_write.
5998 * regcache.c (regcache_cooked_write): Remove.
5999
6000 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6001
6002 * regcache.h (regcache_invalidate): Remove, update callers to
6003 use detached_regcache::invalidate instead.
6004 * regcache.c (regcache_invalidate): Remove.
6005
6006 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6007
6008 * regcache.h (regcache_raw_write_part): Remove, update callers
6009 to use regcache::raw_write_part instead.
6010 * regcache.c (regcache_raw_write_part): Remove.
6011
6012 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6013
6014 * regcache.h (regcache_raw_read_part): Remove, update callers to
6015 use readable_regcache::raw_read_part instead.
6016 * regcache.c (regcache_raw_read_part): Remove.
6017
6018 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6019
6020 * regcache.h (regcache_cooked_read): Remove, update callers to
6021 use readable_regcache::cooked_read instead.
6022 * regcache.c (regcache_cooked_read): Remove.
6023
6024 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6025
6026 * regcache.h (regcache_raw_write): Remove, update callers to use
6027 regcache::raw_write instead.
6028 * regcache.c (regcache_raw_write): Remove.
6029
6030 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6031
6032 * regcache.h (regcache_raw_read): Remove, update callers to use
6033 readable_regcache::raw_read instead.
6034 * regcache.c (regcache_raw_read): Remove.
6035
6036 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6037
6038 * regcache.h (regcache_raw_update): Remove, update callers to
6039 use readable_regcache::raw_update instead.
6040 * regcache.c (regcache_raw_update): Remove.
6041
6042 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6043
6044 * regcache.h (regcache_register_status): Remove, update callers
6045 to use reg_buffer::get_register_status directly instead.
6046 * regcache.c (regcache_register_status): Remove.
6047
6048 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6049
6050 * regcache.h (regcache_get_ptid): Remove, update all callers to
6051 call regcache::ptid instead.
6052 * regcache.c (regcache_get_ptid): Remove.
6053
6054 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6055
6056 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6057
6058 2018-05-30 Pedro Alves <palves@redhat.com>
6059
6060 * common/common-exceptions.h (exception_rethrow): Use
6061 ATTRIBUTE_NORETURN.
6062
6063 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6064
6065 * breakpoint.c (print_solib_event, check_status_catch_solib):
6066 Remove struct keyword in range-based for loops.
6067 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6068 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6069 Likewise.
6070 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6071 Likewise.
6072 * symfile.c (addr_info_make_relative): Likewise.
6073 * thread.c (value_in_thread_stack_temporaries): Likewise.
6074
6075 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6076
6077 PR gdb/16841
6078 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6079 aggregate type to get its real type before accessing it.
6080
6081 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6082
6083 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6084 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6085 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6086 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6087 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6088 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6089 * printcmd.c (info_address_command): Likewise.
6090
6091 2018-05-29 Tom Tromey <tom@tromey.com>
6092
6093 * windows-nat.c (handle_exception): Update fall-through comment.
6094
6095 2018-05-29 Tom Tromey <tom@tromey.com>
6096
6097 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6098 (struct program_space) <added_solibs>: Now a std::vector.
6099 * breakpoint.c (print_solib_event): Update.
6100 (check_status_catch_solib): Update.
6101 * progspace.c (clear_program_space_solib_cache): Update.
6102 * solib.c (update_solib_list): Update.
6103
6104 2018-05-29 Tom Tromey <tom@tromey.com>
6105
6106 * python/py-type.c (typy_richcompare): Update.
6107 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6108 * gdbtypes.h (types_deeply_equal): Return bool.
6109 (types_equal): Likewise.
6110 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6111 declare VEC.
6112 (check_types_equal): Change worklist to std::vector. Return
6113 bool.
6114 (struct type_equality_entry): Add constructor.
6115 (compare_maybe_null_strings): Return bool.
6116 (check_types_worklist): Return bool. Change worklist to
6117 std::vector.
6118 (types_deeply_equal): Use std::vector.
6119 (types_equal): Return bool.
6120 (compare_maybe_null_strings): Simplify.
6121
6122 2018-05-29 Tom Tromey <tom@tromey.com>
6123
6124 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6125
6126 2018-05-29 Tom Tromey <tom@tromey.com>
6127
6128 * objc-lang.h: Don't include cp-support.h.
6129 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6130 declare VEC.
6131
6132 2018-05-27 Tom Tromey <tom@tromey.com>
6133
6134 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6135
6136 2018-05-25 Tom Tromey <tom@tromey.com>
6137
6138 * value.c (value::location): Initialize.
6139
6140 2018-05-25 Tom Tromey <tom@tromey.com>
6141
6142 * dbxread.c (init_bincl_list): Remove.
6143 (bincl_list): Now a std::vector.
6144 (bincls_allocated, next_bincl): Remove.
6145 (free_bincl_list, do_free_bincl_list_cleanup)
6146 (make_cleanup_free_bincl_list): Remove.
6147 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6148 unique_xmalloc_ptr.
6149 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6150 (struct header_file_location): Add constructor.
6151 (add_bincl_to_list): Remove.
6152
6153 2018-05-25 Tom Tromey <tom@tromey.com>
6154
6155 * tui/tui.c (tui_enable): Update.
6156 * mi/mi-interp.c (mi_interp::init): Update.
6157 * interps.h (class interp) <name>: New method.
6158 <m_name>: Rename from name.
6159 (~scoped_restore_interp): Update.
6160 * interps.c (interp::interp): Update.
6161 (interp_add, interp_set, interp_lookup_existing)
6162 (current_interp_named_p): Update.
6163
6164 2018-05-25 Tom Tromey <tom@tromey.com>
6165
6166 * interps.c (interp_name): Remove.
6167 * mi/mi-interp.c (mi_interp::init): Update.
6168 * interps.h (interp_name): Remove.
6169 (~scoped_restore_interp): Update.
6170 * tui/tui.c (tui_enable): Update.
6171
6172 2018-05-25 Tom Tromey <tom@tromey.com>
6173
6174 * utils.c (fputs_maybe_filtered): Update.
6175 * linespec.c (decode_line_full): Update.
6176 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6177 (mi_print_breakpoint_for_event, mi_solib_loaded)
6178 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6179 (mi_user_selected_context_changed): Update.
6180 * mi/mi-main.c (mi_execute_command): Update.
6181 * cli/cli-script.c (execute_control_command): Update.
6182 * python/python.c (execute_gdb_command): Update.
6183 * solib.c (info_sharedlibrary_command): Update.
6184 * interps.c (interp_ui_out): Remove.
6185 * interps.h (interp_ui_out): Remove.
6186
6187 2018-05-25 Tom Tromey <tom@tromey.com>
6188
6189 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6190 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6191 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6192
6193 2018-05-25 Tom Tromey <tom@tromey.com>
6194
6195 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6196 * interps.c (interp_exec): Use scoped_restore.
6197
6198 2018-05-25 Tom Tromey <tom@tromey.com>
6199
6200 * remote.c (remote_target::remote_file_get): Use
6201 gdb::byte_vector.
6202 (remote_target::remote_file_put): Likewise.
6203
6204 2018-05-25 Tom Tromey <tom@tromey.com>
6205
6206 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6207 a std::string.
6208 (get_pe_section_index, add_pe_exported_sym): Update.
6209 (read_pe_exported_syms): Use gdb::def_vector.
6210
6211 2018-05-25 Tom Tromey <tom@tromey.com>
6212
6213 * frame.c (remove_prev_frame): Remove.
6214 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6215
6216 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6217
6218 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6219 Remove prototypes.
6220 * mips-linux-nat.c (supply_fpregset): Always call
6221 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6222 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6223 `mips_fill_fpregset'.
6224 * mips-linux-tdep.c (mips_supply_fpregset)
6225 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6226 (mips_fill_fpregset_wrapper): Remove functions.
6227 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6228 (mips_linux_fpregset): Remove variable.
6229 (mips_linux_iterate_over_regset_sections): Use
6230 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6231 (mips_linux_o32_sigframe_init): Remove comment.
6232
6233 2018-05-25 Pedro Alves <palves@redhat.com>
6234
6235 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6236 (struct readahead_cache, struct packet_reg, struct
6237 remote_arch_state, class remote_state): Move higher up in the
6238 file.
6239 (remote_target::m_remote_state): Now an object instead of a pointer.
6240 (remote_target::get_remote_state): Adjust.
6241
6242 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6243
6244 * stack.c (select_and_print_frame): Delete.
6245 (struct function_bounds): Move struct within function.
6246 (func_command): Most content moved into new function
6247 find_frame_for_function, use new function, print result, add
6248 function comment.
6249 (find_frame_for_function): New function, now returns a result.
6250
6251 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6252
6253 * stack.c (iterate_over_block_arg_vars): Fix comment.
6254 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6255
6256 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6257
6258 PR gdb/23203
6259 * frame.c
6260 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6261 Define.
6262 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6263 Define.
6264 * frame.h (class scoped_restore_selected_frame): New class.
6265 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6266 of any exception, use scoped_restore_selected_frame to restore the
6267 frame instead.
6268
6269 2018-05-24 Pedro Alves <palves@redhat.com>
6270
6271 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6272 override.
6273
6274 2018-05-23 Tom Tromey <tom@tromey.com>
6275
6276 * complaints.c (struct complaints): Remove.
6277 (symfile_complaint_book): Remove.
6278 (series): New global.
6279 (complaint_internal): Update.
6280 (clear_complaints): Update.
6281
6282 2018-05-23 Tom Tromey <tom@tromey.com>
6283
6284 * complaints.c (counters): New global.
6285 (struct complain): Remove.
6286 (struct complaints) <root>: Remove.
6287 (complaint_sentinel): Remove.
6288 (symfile_complaint_book): Update.
6289 (find_complaint) Remove.
6290 (complaint_internal, clear_complaints): Update.
6291
6292 2018-05-23 Tom Tromey <tom@tromey.com>
6293
6294 * complaints.c (struct complain) <file, line>: Remove.
6295 (find_complaint): Remove file, line parameters.
6296 (complaint_internal): Update.
6297
6298 2018-05-23 Tom Tromey <tom@tromey.com>
6299
6300 * complaints.c (vcomplaint): Remove.
6301 (complaint_internal) Merge in contents of vcomplaint.
6302
6303 2018-05-23 Tom Tromey <tom@tromey.com>
6304
6305 * complaints.c (struct complaints) <explanation>: Remove.
6306 (symfile_explanations): Remove.
6307 (symfile_complaint_book): Update.
6308 (vcomplaint): Update.
6309 (struct explanation): Remove.
6310
6311 2018-05-23 Tom Tromey <tom@tromey.com>
6312
6313 * complaints.c (symfile_complaints): Remove.
6314 (complaint_internal): Remove "complaints" parameter.
6315 (clear_complaints, vcomplaint): Remove "c" parameter.
6316 (get_complaints): Remove.
6317 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6318 (dwarf2_debug_line_missing_file_complaint)
6319 (dwarf2_debug_line_missing_end_sequence_complaint)
6320 (dwarf2_complex_location_expr_complaint)
6321 (dwarf2_const_value_length_mismatch_complaint)
6322 (dwarf2_section_buffer_overflow_complaint)
6323 (dwarf2_macro_malformed_definition_complaint)
6324 (dwarf2_invalid_attrib_class_complaint)
6325 (create_addrmap_from_index, dw2_symtab_iter_next)
6326 (dw2_expand_marked_cus)
6327 (dw2_debug_names_iterator::find_vec_in_debug_names)
6328 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6329 (create_debug_type_hash_table, init_cutu_and_read_dies)
6330 (partial_die_parent_scope, add_partial_enumeration)
6331 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6332 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6333 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6334 (create_cus_hash_table, create_dwp_hash_table)
6335 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6336 (dwarf2_rnglists_process, dwarf2_ranges_process)
6337 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6338 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6339 (handle_struct_member_die, process_structure_scope)
6340 (read_array_type, read_common_block, read_module_type)
6341 (read_tag_pointer_type, read_typedef, read_base_type)
6342 (read_subrange_type, load_partial_dies, partial_die_info::read)
6343 (partial_die_info::read, partial_die_info::read)
6344 (partial_die_info::read, read_checked_initial_length_and_offset)
6345 (dwarf2_string_attr, read_formatted_entries)
6346 (dwarf_decode_line_header)
6347 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6348 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6349 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6350 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6351 (get_signatured_type, get_DW_AT_signature_type)
6352 (decode_locdesc, file_file_name, consume_improper_spaces)
6353 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6354 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6355 (dwarf2_symbol_mark_computed, set_die_type)
6356 (read_attribute_value): Update.
6357 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6358 Update.
6359 * dbxread.c (unknown_symtype_complaint)
6360 (lbrac_mismatch_complaint, repeated_header_complaint)
6361 (set_namestring, function_outside_compilation_unit_complaint)
6362 (read_dbx_symtab, process_one_symbol): Update.
6363 * gdbtypes.c (stub_noname_complaint): Update.
6364 * windows-nat.c (handle_unload_dll): Update.
6365 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6366 (decode_base_type): Update.
6367 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6368 (eb_complaint, record_include_begin, record_include_end)
6369 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6370 (process_xcoff_symbol, read_symbol)
6371 (function_outside_compilation_unit_complaint)
6372 (scan_xcoff_symtab): Update.
6373 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6374 * buildsym.c (finish_block_internal, make_blockvector)
6375 (end_symtab_get_static_block, augment_type_symtab): Update.
6376 * dtrace-probe.c (dtrace_process_dof)
6377 (dtrace_static_probe_ops::get_probes): Update.
6378 * complaints.h (struct complaint): Don't declare.
6379 (symfile_complaints): Remove.
6380 (complaint_internal): Remove "complaints" parameter.
6381 (complaint): Likewise.
6382 (clear_complaints): Likewise.
6383 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6384 (reread_symbols): Update.
6385 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6386 (dwarf2_frame_cache, decode_frame_entry): Update.
6387 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6388 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6389 (info_selectors_command): Update.
6390 * macrotab.c (macro_include, check_for_redefinition)
6391 (macro_undef): Update.
6392 * objfiles.c (filter_overlapping_sections): Update.
6393 * stabsread.c (invalid_cpp_abbrev_complaint)
6394 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6395 (define_symbol, error_type, read_type, rs6000_builtin_type)
6396 (stabs_method_name_from_physname, read_member_functions)
6397 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6398 (attach_fields_to_type, complain_about_struct_wipeout)
6399 (read_range_type, read_args, common_block_start)
6400 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6401 Update.
6402 * mdebugread.c (index_complaint, unknown_ext_complaint)
6403 (basic_type_complaint, bad_tag_guess_complaint)
6404 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6405 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6406 (parse_procedure, parse_lines)
6407 (function_outside_compilation_unit_complaint)
6408 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6409 (bad_tag_guess_complaint, reg_value_complaint): Update.
6410 * cp-support.c (demangled_name_complaint): Update.
6411 * macroscope.c (sal_macro_scope): Update.
6412 * dwarf-index-write.c (class debug_names): Update.
6413
6414 2018-05-23 Tom Tromey <tom@tromey.com>
6415
6416 * complaints.c (clear_complaints): Remove "noisy" parameter.
6417 * complaints.h (clear_complaints): Update.
6418 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6419 (reread_symbols): Update.
6420
6421 2018-05-23 Tom Tromey <tom@tromey.com>
6422
6423 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6424 SUBSEQUENT_MESSAGE.
6425 (vcomplaint, clear_complaints): Update.
6426 (symfile_explanations): Remove some messages.
6427
6428 2018-05-23 Tom Tromey <tom@tromey.com>
6429
6430 * complaints.c (internal_complaint): Remove.
6431 * complaints.h (internal_complaint): Remove.
6432
6433 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6434
6435 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6436
6437 2018-05-22 Pedro Alves <palves@redhat.com>
6438
6439 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6440 (remote_fileio_badfd, remote_fileio_return_errno)
6441 (remote_fileio_return_success, remote_fileio_func_open)
6442 (remote_fileio_func_open, remote_fileio_func_close)
6443 (remote_fileio_func_read, remote_fileio_func_write)
6444 (remote_fileio_func_lseek, remote_fileio_func_rename)
6445 (remote_fileio_func_unlink, remote_fileio_func_stat)
6446 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6447 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6448 remote_target parameter.
6449 (remote_fio_func_map) <func>: Add remote_target parameter.
6450 (do_remote_fileio_request, remote_fileio_request):
6451 * remote-fileio.h (remote_fileio_request):
6452 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6453 remote_target parameter.
6454 (remote_notif_process, handle_notification): Adjust to pass down
6455 the remote.
6456 (remote_notif_state_allocate): Add remote_target parameter. Save
6457 it.
6458 * remote-notif.h (struct remote_target): Forward declare.
6459 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6460 remote_target parameter.
6461 (struct remote_notif_state) <remote>: New field.
6462 (remote_notif_ack, remote_notif_parse): Add remote_target
6463 parameter.
6464 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6465 remote_target parameter.
6466 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6467 (threads_listing_context, rmt_thread_action, protocol_feature)
6468 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6469 (packet_result, struct threads_listing_context, remote_state):
6470 Move definitions and declarations higher up.
6471 (remote_target) <~remote_target>: Declare.
6472 (remote_download_command_source, remote_file_put, remote_file_get)
6473 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6474 (remote_hostio_pread_vFile, remote_hostio_send_command)
6475 (remote_hostio_set_filesystem, remote_hostio_open)
6476 (remote_hostio_close, remote_hostio_unlink, remote_state)
6477 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6478 (get_memory_write_packet_size, get_memory_read_packet_size)
6479 (append_pending_thread_resumptions, remote_detach_1)
6480 (append_resumption, remote_resume_with_vcont)
6481 (add_current_inferior_and_thread, wait_ns, wait_as)
6482 (process_stop_reply, remote_notice_new_inferior)
6483 (process_initial_stop_replies, remote_add_thread)
6484 (btrace_sync_conf, remote_btrace_maybe_reopen)
6485 (remove_new_fork_children, kill_new_fork_children)
6486 (discard_pending_stop_replies, stop_reply_queue_length)
6487 (check_pending_events_prevent_wildcard_vcont)
6488 (discard_pending_stop_replies_in_queue, stop_reply)
6489 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6490 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6491 (remote_interrupt_as, remote_interrupt_ns)
6492 (remote_get_noisy_reply, remote_query_attached)
6493 (remote_add_inferior, remote_current_thread, get_current_thread)
6494 (set_thread, set_general_thread, set_continue_thread)
6495 (set_general_process, write_ptid)
6496 (remote_unpack_thread_info_response, remote_get_threadinfo)
6497 (parse_threadlist_response, remote_get_threadlist)
6498 (remote_threadlist_iterator, remote_get_threads_with_ql)
6499 (remote_get_threads_with_qxfer)
6500 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6501 (get_offsets, remote_check_symbols, remote_supported_packet)
6502 (remote_query_supported, remote_packet_size)
6503 (remote_serial_quit_handler, remote_detach_pid)
6504 (remote_vcont_probe, remote_resume_with_hc)
6505 (send_interrupt_sequence, interrupt_query)
6506 (remote_notif_get_pending_events, fetch_register_using_p)
6507 (send_g_packet, process_g_packet, fetch_registers_using_g)
6508 (store_register_using_P, store_registers_using_G)
6509 (set_remote_traceframe, check_binary_download)
6510 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6511 (remote_xfer_live_readonly_partial, remote_read_bytes)
6512 (remote_send_printf, remote_flash_write, readchar)
6513 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6514 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6515 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6516 (extended_remote_disable_randomization, extended_remote_run)
6517 (send_environment_packet, extended_remote_environment_support)
6518 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6519 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6520 (packet_command): Now methods of ...
6521 (remote_target): ... this class.
6522 (m_remote_state) <remote_target>: New field.
6523 (struct remote_state) <stop_reply_queue,
6524 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6525 fields.
6526 (remote_state::remote_state): Allocate stop_reply_queue.
6527 (remote_state): Delete global.
6528 (get_remote_state_raw): Delete.
6529 (remote_target::get_remote_state): Allocate m_remote_state on
6530 demand.
6531 (get_current_remote_target): New.
6532 (remote_ops, extended_remote_ops): Delete.
6533 (wait_forever_enabled_p, remote_async_inferior_event_token):
6534 Delete, moved to struct remote_state.
6535 (remote_target::close): Delete self. Destruction bits split to
6536 ...
6537 (remote_target::~remote_target): ... this.
6538 (show_memory_packet_size): Adjust to use
6539 get_current_remote_target.
6540 (struct protocol_feature) <func>: Add remote_target parameter.
6541 All callers adjusted.
6542 (curr_quit_handler_target): New.
6543 (remote_serial_quit_handler): Reimplement.
6544 (remote_target::open_1): Adjust to use get_current_remote_target.
6545 Heap-allocate remote_target/extended_remote_target instances.
6546 (vcont_builder::vcont_builder): Add remote_target parameter, and
6547 save it in m_remote. All callers adjusted.
6548 (vcont_builder::m_remote): New field.
6549 (vcont_builder::restart, vcont_builder::flush)
6550 (vcont_builder::push_action): Use it.
6551 (remote_target::commit_resume): Use it.
6552 (struct queue_iter_param) <remote>: New field.
6553 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6554 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6555 (check_pending_event_prevents_wildcard_vcont_callback)
6556 (remote_target::check_pending_events_prevent_wildcard_vcont)
6557 (remote_target::discard_pending_stop_replies)
6558 (remote_target::discard_pending_stop_replies_in_queue)
6559 (remote_target::remote_notif_remove_queued_reply): Fill in
6560 'remote' field.
6561 (remote_notif_get_pending_events): New.
6562 (remote_target::readchar, remote_target::remote_serial_write):
6563 Save/restore curr_quit_handler_target.
6564 (putpkt): New.
6565 (kill_new_fork_children): Fill in 'remote' field.
6566 (packet_command): Use get_current_remote_target, defer to
6567 remote_target method of same name.
6568 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6569 parameter, and save it in m_remote. All callers adjusted.
6570 (scoped_remote_fd::release): Use m_remote.
6571 (scoped_remote_fd::m_remote): New field.
6572 (remote_file_put, remote_file_get, remote_file_delete): Use
6573 get_current_remote_target, defer to remote_target method of same
6574 name.
6575 (remote_btrace_reset): Add remote_state paremeter. Update all
6576 callers.
6577 (remote_async_inferior_event_handler). Pass down 'data'.
6578 (remote_new_objfile): Use get_current_remote_target.
6579 (remote_target::vcont_r_supported): New.
6580 (set_range_stepping): Use get_current_remote_target and
6581 remote_target::vcont_r_supported.
6582 (_initialize_remote): Don't allocate 'remote_state' and
6583 'stop_reply_queue' globals.
6584 * remote.h (struct remote_target): Forward declare.
6585 (getpkt, putpkt, remote_notif_get_pending_events): Add
6586 'remote_target' parameter.
6587
6588 2018-05-22 Pedro Alves <palves@redhat.com>
6589
6590 * remote.c (vcont_builder): Now a class. Make all data members
6591 private.
6592 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6593 Declare methods.
6594 (vcont_builder_restart): Rename to ...
6595 (vcont_builder::restart): ... this.
6596 (vcont_builder_flush): Rename to ...
6597 (vcont_builder::flush): ... this.
6598 (vcont_builder_push_action): Rename to ...
6599 (vcont_builder::push_action): ... this.
6600 (remote_target::commit_resume): Adjust.
6601
6602 2018-05-22 Pedro Alves <palves@redhat.com>
6603
6604 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6605 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6606 (get_fixed_memory_packet_size): New.
6607 (get_memory_packet_size): Use it.
6608 (set_memory_packet_size): Don't override the config size with
6609 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6610 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6611 Don't refer to get_memory_packet_size if not connected to a remote
6612 target. Show "(default)" if configured size is 0.
6613
6614 2018-05-22 Pedro Alves <palves@redhat.com>
6615
6616 * remote.c (remote_target::mourn_inferior): Move
6617 discard_pending_stop_replies call here from ...
6618 (_initialize_remote): ... here.
6619
6620 2018-05-22 Pedro Alves <palves@redhat.com>
6621
6622 * remote.c (compare_section_command): Remove set_general_process
6623 call.
6624
6625 2018-05-22 Pedro Alves <palves@redhat.com>
6626
6627 * remote.c (struct packet_reg, struct remote_arch_state):
6628 Move higher up in the file.
6629 (remote_state) <m_arch_states>: Store remote_arch_state values
6630 instead of remote_arch_state pointers.
6631 (remote_state::get_remote_arch_state): Adjust.
6632
6633 2018-05-22 Pedro Alves <palves@redhat.com>
6634
6635 * remote.c: Include <unordered_map>.
6636 (remote_state): Now a class.
6637 (remote_state) <get_remote_arch_state>: Declare method.
6638 <get_remote_arch_state>: New field.
6639 (remote_arch_state) <remote_arch_state>: Declare ctor.
6640 <regs>: Now a unique_ptr.
6641 (remote_gdbarch_data_handle): Delete.
6642 (get_remote_arch_state): Delete.
6643 (remote_state::get_remote_arch_state): New.
6644 (get_remote_state): Adjust to call remote_state's
6645 get_remote_arch_state method.
6646 (init_remote_state): Delete, bits factored out to ...
6647 (remote_arch_state::remote_arch_state): ... this new method.
6648 (get_remote_packet_size, get_memory_packet_size)
6649 (process_g_packet, remote_target::fetch_registers)
6650 (remote_target::prepare_to_store, store_registers_using_G)
6651 (remote_target::store_registers, remote_target::get_trace_status):
6652 Adjust to call remote_state's method.
6653 (_initialize_remote): Remove reference to
6654 remote_gdbarch_data_handle.
6655
6656 2018-05-22 Pedro Alves <palves@redhat.com>
6657
6658 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6659 pread>: New method declarations.
6660 (remote_target::open_1): Adjust.
6661 (readahead_cache_invalidate): Rename to ...
6662 (readahead_cache::invalidate): ... this, and adjust to be a class
6663 method.
6664 (readahead_cache_invalidate_fd): Rename to ...
6665 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6666 class method.
6667 (remote_hostio_pwrite): Adjust.
6668 (remote_hostio_pread_from_cache): Rename to ...
6669 (readahead_cache::pread): ... this, and adjust to be a class
6670 method.
6671 (remote_hostio_close): Adjust.
6672
6673 2018-05-22 Pedro Alves <palves@redhat.com>
6674
6675 * remote.c (remote_hostio_close_cleanup): Delete.
6676 (class scoped_remote_fd): New.
6677 (remote_file_put, remote_file_get): Use it.
6678
6679 2018-05-22 Pedro Alves <palves@redhat.com>
6680
6681 (struct vCont_action_support): Use bool and initialize all fields.
6682 (struct readahead_cache): Initialize all fields.
6683 (remote_state): Use bool and initialize all fields.
6684 (remote_state::remote_state, remote_state::~remote_state): New.
6685 (new_remote_state): Delete.
6686 (_initialize_remote): Use new to allocate remote_state.
6687
6688 2018-05-22 Pedro Alves <palves@redhat.com>
6689 張俊芝 <zjz@zjz.name>
6690
6691 PR gdb/22973
6692 * c-exp.y: Include "c-support.h".
6693 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6694 of tolower. Use c_ident_is_alpha to scan names.
6695 * c-lang.c: Include "c-support.h".
6696 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6697 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6698 * c-support.h: New file, with bits factored out from ...
6699 * cp-name-parser.y: ... this file.
6700 Include "c-support.h".
6701 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6702 c-support.h and renamed.
6703 (symbol_end, yylex): Adjust.
6704
6705 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6706
6707 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6708 parameter type to CORE_ADDR.
6709 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6710 parameter type in declaration to CORE_ADDR.
6711 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6712 target_auxv_search to get AT_HWCAP and use the result to get the
6713 target description.
6714 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6715 to CORE_ADDR. Remove the cast of the return value to unsigned
6716 long. Fix error predicate of target_auxv_search.
6717 (ppc_linux_nat_target::read_description): Change the type of the
6718 hwcap variable to CORE_ADDR.
6719
6720 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6721
6722 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6723 if the size of fpscr is larger than 32 bits.
6724
6725 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6726
6727 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6728 (ppc32_linux_vsxregmap): New global.
6729 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6730 regcache_supply_regset, and regcache_collect_regset.
6731 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6732 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6733 (fetch_vsx_register, store_vsx_register): Remove.
6734 (fetch_vsx_registers): Add regno parameter. Get regset using
6735 ppc_linux_vsxregset. Use regset to supply registers.
6736 (store_vsx_registers): Add regno parameter. Get regset using
6737 ppc_linux_vsxregset. Use regset to collect registers.
6738 (fetch_register): Call fetch_vsx_registers instead of
6739 fetch_vsx_register.
6740 (store_register): Call store_vsx_registers instead of
6741 store_vsx_register.
6742 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6743 new regno parameter.
6744 (store_ppc_registers): Call store_vsx_registers with -1 for the
6745 new regno parameter.
6746 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6747 (ppc_collect_vsxregset): Remove.
6748
6749 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6750
6751 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6752 offset fields.
6753 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6754 for vector register offset fields.
6755 (ppc64_fbsd_reg_offsets): Likewise.
6756 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6757 to vector register offset fields.
6758 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6759 to vector register offset fields.
6760 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6761 vector register offset fields.
6762 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6763 initializers for vector register offset fields.
6764 (rs6000_aix64_reg_offsets): Likewise.
6765 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6766 (ppc_supply_vrregset): Remove.
6767 (ppc_collect_vrregset): Remove.
6768 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6769 (ppc_linux_vrregset) : New function.
6770 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6771 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6772 (ppc32_linux_vrregset): Remove.
6773 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6774 and use result instead of ppc32_linux_vrregset.
6775 (ppc32_linux_reg_offsets): Remove initializers for vector register
6776 offset fields.
6777 (ppc64_linux_reg_offsets): Likewise.
6778 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6779 * ppc-linux-nat.c: Include regset.h.
6780 (gdb_vrregset_t): Adjust comment to account for little-endian
6781 mode.
6782 (supply_vrregset, fill_vrregset): Remove.
6783 (fetch_altivec_register, store_altivec_register): Remove.
6784 (fetch_altivec_registers): Add regno parameter. Get regset using
6785 ppc_linux_vrregset. Use regset to supply registers.
6786 (store_altivec_registers): Add regno parameter. Get regset using
6787 ppc_linux_vrregset. Use regset to collect registers.
6788 (fetch_register): Call fetch_altivec_registers instead of
6789 fetch_altivec_register.
6790 (store_register): Call store_altivec_registers instead of
6791 store_altivec_register.
6792 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6793 the new regno parameter.
6794 (store_ppc_registers): Call store_altivec_registers with -1 for
6795 the new regno parameter.
6796
6797 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6798
6799 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6800 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6801 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6802 (gdb_vrregset_t): Change array type size to
6803 PPC_LINUX_SIZEOF_VRREGSET.
6804 (gdb_vsxregset_t): Change array type size to
6805 PPC_LINUX_SIZEOF_VSXREGSET.
6806 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6807 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6808 PPC_LINUX_SIZEOF_VSXREGSET.
6809
6810 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6811
6812 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6813 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6814 nat/ppc-linux.c.
6815 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6816 ppc_linux_target_wordsize with tid.
6817 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6818 wordsize with tid.
6819 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6820 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6821 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6822 tid parameter. Remove static specifier.
6823 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6824 (ppc_linux_target_wordsize): New declaration.
6825
6826 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6827
6828 * arch/ppc-linux-common.c: New file.
6829 * arch/ppc-linux-common.h: New file.
6830 * arch/ppc-linux-tdesc.h: New file.
6831 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6832 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6833 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6834 arch/ppc-linux-tdesc.h.
6835 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6836 arch/ppc-linux-tdesc.h.
6837 (ppc_linux_nat_target::read_description): Remove target
6838 description matching code. Fill a ppc_linux_features struct and
6839 call ppc_linux_match_description with it. Move comment about ISA
6840 2.05 to ppc-linux-common.c.
6841 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6842 arch/ppc-linux-tdesc.h.
6843 (ppc_linux_core_read_description): Remove target description
6844 matching code. Fill a ppc_linux_features struct and call
6845 ppc_linux_match_description with it.
6846 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6847 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6848 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6849 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6850 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6851 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6852 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6853 (tdesc_powerpc_e500l): Remove.
6854
6855 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6856
6857 * ada-lang.c (catch_assert_command): Pass empty string instead
6858 of NULL for excep_string argument.
6859
6860 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6861
6862 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6863 the width of the requested register exceeds the width of the
6864 `ptrace' data type.
6865
6866 2018-05-21 Tom Tromey <tom@tromey.com>
6867
6868 * printcmd.c (output_command): Remove.
6869 (output_command_const): Rename to output_command.
6870 * valprint.h (output_command): Rename from output_command_const.
6871 * tracepoint.c (trace_dump_actions): Call output_command.
6872
6873 2018-05-21 Tom Tromey <tom@tromey.com>
6874
6875 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6876 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6877 * ada-lang.h (create_ada_exception_catchpoint): Update.
6878 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6879 std::string.
6880 (create_excep_cond_exprs, ~ada_catchpoint)
6881 (should_stop_exception, print_one_exception)
6882 (print_mention_exception, print_recreate_exception): Update.
6883 (ada_get_next_arg): Remove.
6884 (catch_ada_exception_command_split): Use std::string. Change type
6885 of "excep_string", "cond_string".
6886 (catch_ada_exception_command): Update.
6887 (create_ada_exception_catchpoint): Change type of excep_string.
6888 (ada_exception_sal): Remove excep_string parameter.
6889 (~ada_catchpoint): Remove.
6890
6891 2018-05-21 Tom Tromey <tom@tromey.com>
6892
6893 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6894 cleanup.
6895
6896 2018-05-21 Tom Tromey <tom@tromey.com>
6897
6898 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6899 Return unique_xmalloc_ptr.
6900 (print_it_exception): Update.
6901
6902 2018-05-21 Tom Tromey <tom@tromey.com>
6903
6904 * tracepoint.c (trace_dump_actions): Use std::string.
6905
6906 2018-05-21 Tom Tromey <tom@tromey.com>
6907
6908 * symfile.c (reread_symbols): Use std::string for original_name.
6909
6910 2018-05-21 Tom Tromey <tom@tromey.com>
6911
6912 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6913 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6914 constructor.
6915
6916 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6917
6918 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6919 instance to...
6920 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6921 * objfiles.c (get_objfile_bfd_data): Allocate
6922 objfile_per_bfd_storage with obstack_new when allocating on
6923 obstack.
6924
6925 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6926
6927 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6928 OBSTACK_ZALLOC.
6929 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6930 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6931 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6932 (add_pending): Likewise.
6933 (parse_symbol): Likewise.
6934 (parse_partial_symbols): Likewise.
6935 (psymtab_to_symtab_1): Likewise.
6936 (new_psymtab): Likewise.
6937 (elfmdebug_build_psymtabs): Likewise.
6938 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6939 * objfiles.c (get_objfile_bfd_data): Likewise.
6940 (objfile_register_static_link): Likewise.
6941 * psymtab.c (allocate_psymtab): Likewise.
6942 * stabsread.c (read_member_functions): Likewise.
6943 * xcoffread.c (xcoff_end_psymtab): Likewise.
6944
6945 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6946
6947 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6948 compiler supports std::is_trivially_constructible.
6949 * common/poison.h: Include obstack.h.
6950 (IsMallocable): Define to is_trivially_constructible if the
6951 compiler supports it, define to true_type otherwise.
6952 (xobnew): New.
6953 (XOBNEW): Redefine.
6954 (xobnewvec): New.
6955 (XOBNEWVEC): Redefine.
6956 * gdb_obstack.h (obstack_zalloc): New.
6957 (OBSTACK_ZALLOC): Redefine.
6958 (obstack_calloc): New.
6959 (OBSTACK_CALLOC): Redefine.
6960 (obstack_new): New.
6961 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6962 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6963 gdbarch.c.
6964 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6965 obstack_calloc/obstack_zalloc.
6966 (gdbarch_obstack_zalloc): Remove.
6967 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6968
6969 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6970
6971 * stack.c (backtrace_command_1): Remove useless variable int i.
6972
6973 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6974
6975 * stack.c (print_frame_info): Fix comment.
6976
6977 2018-05-18 Tom Tromey <tom@tromey.com>
6978
6979 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6980 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6981 (~dwarf2_per_objfile): Update
6982 (dwarf2_get_dwz_file): Use new.
6983 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6984 unique_ptr.
6985
6986 2018-05-18 Tom Tromey <tom@tromey.com>
6987
6988 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6989 unique_ptr.
6990 * dwarf2read.c (struct dwp_file): Add constructor and
6991 initializers.
6992 (open_and_init_dwp_file): Return a unique_ptr.
6993 (dwarf2_per_objfile, create_dwp_hash_table)
6994 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6995 (lookup_dwo_unit_in_dwp): Update.
6996 (open_and_init_dwp_file, get_dwp_file): Update.
6997
6998 2018-05-18 Tom Tromey <tom@tromey.com>
6999
7000 * dwarf2read.c (dwarf2_per_objfile): Update.
7001 (struct mapped_index): Add initializers.
7002 (dwarf2_read_index): Use new.
7003 (dw2_symtab_iter_init): Update.
7004 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7005 unique_ptr.
7006
7007 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7008
7009 * dwarf2read.c (mapped_index) <total_size>: Remove.
7010
7011 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7012
7013 * unittests/format_pieces-selftests.c (test_format_specifier):
7014 Add ARI comments.
7015
7016 2018-05-18 Tom Tromey <tom@tromey.com>
7017
7018 * c-typeprint.c (maybe_print_hole): New function.
7019 (c_print_type_struct_field_offset): Update.
7020 (c_type_print_base_struct_union): Call maybe_print_hole.
7021
7022 2018-05-17 Keith Seitz <keiths@redhat.com>
7023
7024 * breakpoint.c (build_bpstat_chain): New function, moved from
7025 bpstat_stop_status.
7026 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7027 If no stop chain is passed, call build_bpstat_chain to build it.
7028 * breakpoint.h (build_bpstat_chain): Declare.
7029 (bpstat_stop_status): Move documentation here from breakpoint.c.
7030 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7031 build the stop chain and pass it to skip_inline_frames.
7032 Pass this stop chain to bpstat_stop_status.
7033 * inline-frame.c: Include breakpoint.h.
7034 (stopped_by_user_bp_inline_frame): New function.
7035 (skip_inline_frames): Add parameter `stop_chain'.
7036 Move documention to inline-frame.h.
7037 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7038 whether the frame should be elided.
7039 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7040 Add moved documentation and update for new parameter.
7041
7042 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7043
7044 PR cli/14975
7045 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7046 unittests/format_pieces-selftests.c.
7047 * common/format.h (format_piece) <operator==>: New.
7048 (format_pieces) <operator[]>: Remove.
7049 * common/format.c (format_pieces::format_pieces): Handle \e.
7050 * unittests/format_pieces-selftests.c: New.
7051
7052 2018-05-17 Tom Tromey <tom@tromey.com>
7053
7054 PR symtab/23010:
7055 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7056 (dw2_instantiate_symtab): Add skip_partial parameter.
7057 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7058 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7059 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7060 (dw2_expand_symtabs_matching_one)
7061 (dw2_find_pc_sect_compunit_symtab)
7062 (dw2_debug_names_lookup_symbol)
7063 (dw2_debug_names_expand_symtabs_for_function): Update.
7064 (init_cutu_and_read_dies): Add skip_partial parameter.
7065 (process_psymtab_comp_unit, build_type_psymtabs_1)
7066 (process_skeletonless_type_unit, load_partial_comp_unit)
7067 (psymtab_to_symtab_1): Update.
7068 (load_full_comp_unit): Add skip_partial parameter.
7069 (process_imported_unit_die, dwarf2_read_addr_index)
7070 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7071 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7072 (read_signatured_type): Update.
7073
7074 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7075
7076 * value.c (release_value): Remove unused variable.
7077 (record_latest_value): Likewise.
7078 (access_value_history): Likewise.
7079 (preserve_values): Likewise.
7080
7081 2018-05-17 Tom Tromey <tom@tromey.com>
7082
7083 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7084 Initialize.
7085
7086 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7087
7088 PR gdb/22286
7089 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7090 Also handle registers whose width is not a multiple of
7091 PTRACE_TYPE_RET.
7092 (linux_nat_trad_target::store_register): Likewise.
7093
7094 2018-05-16 Tom Tromey <tom@tromey.com>
7095
7096 * gdbcore.h (core_bfd): Redefine.
7097 * corelow.c (core_target::close): Update.
7098 (core_target_open): Update.
7099 * progspace.h (struct program_space) <cbfd>: Now a
7100 gdb_bfd_ref_ptr.
7101
7102 2018-05-16 Tom Tromey <tom@tromey.com>
7103
7104 PR cli/19551:
7105 * symfile-add-flags.h (enum symfile_add_flags)
7106 <SYMFILE_NOT_FILENAME>: New constant.
7107 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7108 objfile name from BFD.
7109 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7110 * minidebug.c (find_separate_debug_file_in_section): Put
7111 ".gnu_debugdata" into BFD's file name.
7112
7113 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7114
7115 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7116 Remove.
7117
7118 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7119
7120 PR binutils/21446
7121 * aarch64-tdep.c (aarch64_analyze_prologue,
7122 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7123 Indicate not interested in errors.
7124
7125 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7126
7127 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7128 Supply the MIPS_ZERO_REGNUM register.
7129
7130 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7131
7132 * mips-tdep.c (mask_address_var): Make variable static.
7133
7134 2018-05-14 Tom Tromey <tom@tromey.com>
7135
7136 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7137
7138 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7139
7140 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7141 FXSAVE_ADDR for the mxcsr register.
7142
7143 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7144
7145 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7146
7147 2018-05-11 Pedro Alves <palves@redhat.com>
7148
7149 * corelow.c (core_target) <core_target>: No longer inline.
7150 Initialize m_core_gdbarch, m_core_vec and build the section table
7151 here.
7152 <~core_target>: New.
7153 <core_gdbarch, get_core_register_section>: New methods.
7154 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7155 factored out from ...
7156 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7157 (core_ops): Delete.
7158 (sniff_core_bfd): Add gdbarch parameter.
7159 (core_close): Delete, merged into ...
7160 (core_target::close): ... here. Delete self.
7161 (core_close_cleanup): Delete.
7162 (core_target_open): Allocate a core_target on the heap. Use a
7163 unique_ptr instead of a cleanup. Bits moved into the core_target
7164 ctor. Adjust to use core_target methods instead of globals.
7165 (get_core_register_section): Rename to ...
7166 (core_target::get_core_register_section): ... this and adjust.
7167 (struct get_core_registers_cb_data): New.
7168 (get_core_registers_cb): Use it. Use bool.
7169 (core_target::fetch_registers, core_target::files_info)
7170 (core_target::xfer_partial, core_target::read_description)
7171 (core_target::pid_to, core_target::thread_name): Adjust to
7172 reference class fields instead of globals.
7173 * target.h (struct target_ops_deleter, target_ops_up): New.
7174
7175 2018-05-11 Pedro Alves <palves@redhat.com>
7176
7177 * corefile.c (core_file_command): Move to corelow.c.
7178 * corelow.c (the_core_target): Delete.
7179 (core_file_command): Moved from corefile.c. Check exec_bfd
7180 instead of the_core_target. Use target_detach instead of calling
7181 into the_core_target directly.
7182 (maybe_say_no_core_file_now): New.
7183 (core_target::detach): Use it.
7184 (_initialize_corelow): Remove references to the_core_target.
7185 * gdbcore.h (the_core_target): Delete.
7186
7187 2018-05-11 Tom Tromey <tromey@redhat.com>
7188 Pedro Alves <palves@redhat.com>
7189
7190 * corefile.c (core_bfd): Remove.
7191 * gdbcore.h (core_bfd): Now a macro.
7192 * progspace.h (struct program_space) <cbfd>: New field.
7193
7194 2018-05-11 Tom Tromey <tom@tromey.com>
7195
7196 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7197 gdb::def_vector.
7198
7199 2018-05-10 Tom Tromey <tom@tromey.com>
7200
7201 * configure: Rebuild.
7202 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7203
7204 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7205
7206 PR server/23158:
7207 * regformats/regdat.sh: Adjust script, following the addition
7208 of the new expedite_regs parameter to init_target_desc.
7209
7210 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7211
7212 PR gdb/23127
7213 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7214 set_gdbarch_significant_addr_bit.
7215 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7216 set_gdbarch_significant_addr_bit.
7217 * utils.c (address_significant): Update to sign extend addr.
7218
7219 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7220
7221 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7222 (xtensa_linux_init_abi): Limit tdep->num_regs by
7223 tdep->num_nopriv_regs.
7224 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7225 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7226 not initialized.
7227
7228 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7229
7230 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7231
7232 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7233
7234 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7235 (I387_MXCSR_INIT_VAL): New constant.
7236 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7237 buffer if it was supplied by the inferior.
7238 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7239 (i387_xsave_get_clear_bv): New function.
7240 (i387_supply_xsave): Only read x87 control registers from the
7241 xsave buffer if the feature is enabled, and the state will have
7242 been written, otherwise, provide a suitable default.
7243 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7244 including x87 control registers. Update control registers if they
7245 have changed from the default value, and mark features as enabled
7246 as required.
7247 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7248
7249 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7250
7251 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7252
7253 2018-05-07 Tom Tromey <tom@tromey.com>
7254
7255 * configure: Rebuild.
7256 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7257
7258 2018-05-07 Tom Tromey <tom@tromey.com>
7259
7260 PR tdep/20362:
7261 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7262 bit. Use correct value for VDIV.
7263
7264 2018-05-04 Tom Tromey <tom@tromey.com>
7265
7266 * configure: Rebuild.
7267 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7268
7269 2018-05-04 Tom Tromey <tom@tromey.com>
7270
7271 * linux-record.c (record_linux_system_call) <case
7272 RECORD_SYS_RECVFROM>: Add "break".
7273
7274 2018-05-04 Tom Tromey <tom@tromey.com>
7275
7276 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7277 Add missing "break".
7278 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7279 Add missing "break".
7280
7281 2018-05-04 Tom Tromey <tom@tromey.com>
7282
7283 * rs6000-tdep.c (ppc_process_record_op4)
7284 (ppc_process_record_op63): Add fall-through comment.
7285
7286 2018-05-04 Tom Tromey <tom@tromey.com>
7287
7288 * i386-tdep.c (i386_process_record): Add fall-through comment.
7289
7290 2018-05-04 Tom Tromey <tom@tromey.com>
7291
7292 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7293 comment.
7294
7295 2018-05-04 Tom Tromey <tom@tromey.com>
7296
7297 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7298 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7299 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7300 comment.
7301 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7302 comment.
7303 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7304 comment.
7305
7306 2018-05-04 Tom Tromey <tom@tromey.com>
7307
7308 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7309
7310 2018-05-04 Tom Tromey <tom@tromey.com>
7311
7312 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7313 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7314 * symfile.c (section_is_mapped): Fix fall-through comment.
7315 * stabsread.c (define_symbol, read_member_functions): Fix
7316 fall-through comment.
7317 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7318 comment.
7319 * remote.c (remote_wait_as): Fix fall-through comment.
7320 * p-exp.y (yylex): Fix fall-through comment.
7321 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7322 comment.
7323 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7324 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7325 * jv-exp.y (yylex): Fix fall-through comment.
7326 * go-exp.y (lex_one_token): Fix fall-through comment.
7327 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7328 fall-through comment.
7329 * f-exp.y (yylex): Fix fall-through comment.
7330 * dwarf2read.c (process_die): Fix fall-through comments.
7331 * dbxread.c (process_one_symbol): Fix fall-through comment.
7332 * d-exp.y (lex_one_token): Fix fall-through comment.
7333 * cp-name-parser.y (yylex): Fix fall-through comment.
7334 * coffread.c (coff_symtab_read): Fix fall-through comment.
7335 * c-exp.y (lex_one_token): Fix fall-through comment.
7336 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7337 comment.
7338 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7339 comment.
7340
7341 2018-05-04 Tom Tromey <tom@tromey.com>
7342
7343 PR python/22730:
7344 * NEWS: Mention gdb.execute change.
7345 * gdbcmd.h (execute_control_command): Don't declare.
7346 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7347 execute_control_commands, execute_control_commands_to_string.
7348 * cli/cli-script.h (execute_control_commands)
7349 (execute_control_commands_to_string): Declare.
7350 (execute_control_command): Add from_tty parameter.
7351 * cli/cli-script.c (execute_control_commands)
7352 (execute_control_commands_to_string): New functions.
7353 (execute_user_command): Use execute_control_commands.
7354 (execute_control_command_1): Add "from_tty" parameter. Update.
7355 (execute_control_command): Likewise.
7356
7357 2018-05-04 Tom Tromey <tom@tromey.com>
7358
7359 PR python/22731:
7360 * NEWS: Mention that breakpoint commands are writable.
7361 * python/py-breakpoint.c (bppy_set_commands): New function.
7362 (breakpoint_object_getset) <"commands">: Use it.
7363
7364 2018-05-04 Tom Tromey <tom@tromey.com>
7365
7366 * tracepoint.c (actions_command): Update.
7367 * mi/mi-cmd-break.c (mi_command_line_array)
7368 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7369 (mi_read_next_line): Remove.
7370 (mi_cmd_break_commands): Update.
7371 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7372 function_view.
7373 * cli/cli-script.c (get_command_line): Update.
7374 (process_next_line): Use function_view. Constify.
7375 (recurse_read_control_structure, read_command_lines)
7376 (read_command_lines_1): Change argument types to function_view.
7377 (do_define_command, document_command): Update.
7378 * breakpoint.h (check_tracepoint_command): Don't declare.
7379 * breakpoint.c (check_tracepoint_command): Remove.
7380 (commands_command_1, create_tracepoint_from_upload): Update.
7381
7382 2018-05-04 Tom Tromey <tom@tromey.com>
7383
7384 PR gdb/11750:
7385 * cli/cli-script.h (enum command_control_type) <define_control>:
7386 New constant.
7387 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7388 (build_command_line, execute_control_command_1)
7389 (process_next_line): Likewise.
7390 (do_define_command): New function, extracted from define_command.
7391 (define_command): Use it.
7392
7393 2018-05-04 Tom Tromey <tom@tromey.com>
7394
7395 * tracepoint.c (actions_command): Update.
7396 * cli/cli-script.h (read_command_lines): Update.
7397 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7398 (MAX_TMPBUF): Remove define.
7399 (define_command): Use string_printf.
7400 (document_command): Likewise.
7401 * breakpoint.c (commands_command_1): Update.
7402
7403 2018-05-04 Tom Tromey <tom@tromey.com>
7404
7405 * top.c (execute_command): Update.
7406 * cli/cli-script.h (print_command_lines): Now varargs.
7407 * cli/cli-script.c (print_command_lines): Now varargs.
7408 (execute_control_command_1) <case while_control, case if_control>:
7409 Update.
7410
7411 2018-05-04 Tom Tromey <tom@tromey.com>
7412
7413 * tracepoint.c (all_tracepoint_actions): Rename from
7414 all_tracepoint_actions_and_cleanup. Change return type.
7415 (actions_command, encode_actions_1, encode_actions)
7416 (trace_dump_actions, tdump_command): Update.
7417 * remote.c (remote_download_command_source): Update.
7418 * python/python.c (gdbpy_eval_from_control_command)
7419 (python_command, python_interactive_command): Update.
7420 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7421 * guile/guile.c (guile_command)
7422 (gdbscm_eval_from_control_command, guile_command): Update.
7423 * compile/compile.c (compile_code_command)
7424 (compile_print_command, compile_to_object): Update.
7425 * cli/cli-script.h (struct command_lines_deleter): New.
7426 (counted_command_line): New typedef.
7427 (struct command_line): Add constructor, destructor.
7428 <body_list>: Remove.
7429 <body_list_0, body_list_1>: New members.
7430 (command_line_up): Remove typedef.
7431 (read_command_lines, read_command_lines_1, get_command_line):
7432 Update.
7433 (copy_command_lines): Don't declare.
7434 * cli/cli-script.c (build_command_line): Use "new".
7435 (get_command_line): Return counted_command_line.
7436 (print_command_lines, execute_user_command)
7437 (execute_control_command_1, while_command, if_command): Update.
7438 (realloc_body_list): Remove.
7439 (process_next_line, recurse_read_control_structure): Update.
7440 (read_command_lines, read_command_lines_1): Return counted_command_line.
7441 (free_command_lines): Use "delete".
7442 (copy_command_lines): Remove.
7443 (define_command, document_command, show_user_1): Update.
7444 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7445 a counted_command_line.
7446 * breakpoint.h (counted_command_line): Remove typedef.
7447 (breakpoint_set_commands): Update.
7448 * breakpoint.c (check_no_tracepoint_commands)
7449 (validate_commands_for_breakpoint): Update.
7450 (breakpoint_set_commands): Change commands to be a
7451 counted_command_line.
7452 (commands_command_1, update_dprintf_command_list)
7453 (create_tracepoint_from_upload): Update.
7454
7455 2018-05-04 Tom Tromey <tom@tromey.com>
7456
7457 * cli/cli-decode.h (cmd_list_element): New constructor.
7458 (~cmd_list_element): New destructor.
7459 (struct cmd_list_element): Add initializers.
7460 * cli/cli-decode.c (do_add_cmd): Use "new".
7461 (delete_cmd): Use "delete".
7462
7463 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7464 Pedro Alves <palves@redhat.com>
7465
7466 PR breakpoints/19806 and support for PR external/20207.
7467 * NEWS: Mention Aarch64 watchpoint improvements.
7468 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7469 watchpoints and PR external/20207 watchpoints.
7470 * nat/aarch64-linux-hw-point.c
7471 (kernel_supports_any_contiguous_range): New.
7472 (aarch64_watchpoint_offset): New.
7473 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7474 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7475 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7476 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7477 next_addr_orig_p. Support PR external/20207 watchpoints.
7478 (aarch64_downgrade_regs): New.
7479 (aarch64_dr_state_insert_one_point): New parameters offset and
7480 addr_orig.
7481 (aarch64_dr_state_remove_one_point): Likewise.
7482 (aarch64_handle_breakpoint): Update caller.
7483 (aarch64_handle_aligned_watchpoint): Likewise.
7484 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7485 aligned_offset.
7486 (aarch64_linux_set_debug_regs): Remove const from state. Call
7487 aarch64_downgrade_regs.
7488 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7489 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7490 (DR_CONTROL_MASK): ... this.
7491 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7492 (unsigned int aarch64_watchpoint_offset): New prototype.
7493 (aarch64_linux_set_debug_regs): Remove const from state.
7494 * utils.c (align_up, align_down): Move to ...
7495 * common/common-utils.c (align_up, align_down): ... here.
7496 * utils.h (align_up, align_down): Move to ...
7497 * common/common-utils.h (align_up, align_down): ... here.
7498
7499 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7500
7501 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7502 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7503 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7504 Re-implement to match the ABI as summarized in GCC's
7505 gcc/config/sparc/sparc.c. All callers updated.
7506 (sparc32_store_arguments): Remove assertion.
7507
7508 2018-05-04 Tom Tromey <tom@tromey.com>
7509
7510 * printcmd.c: Don't include tui.h.
7511 (decode_format): Use skip_spaces.
7512
7513 2018-05-04 Tom Tromey <tom@tromey.com>
7514
7515 PR gdb/22619:
7516 * printcmd.c (last_count): New global.
7517 (x_command): Use saved count when repeating.
7518
7519 2018-05-04 Tom Tromey <tom@tromey.com>
7520
7521 * nto-procfs.c (do_closedir_cleanup): Remove.
7522 (procfs_pidlist): Use gdb_dir_up.
7523 * procfs.c (do_closedir_cleanup): Remove.
7524 (proc_update_threads): Use gdb_dir_up.
7525 * common/filestuff.h (struct gdb_dir_deleter): New.
7526 (gdb_dir_up): New typedef.
7527
7528 2018-05-04 Tom Tromey <tom@tromey.com>
7529
7530 * ada-lang.c (print_mention_exception): Use std::string.
7531
7532 2018-05-04 Tom Tromey <tom@tromey.com>
7533
7534 * ada-lang.c (create_excep_cond_exprs): Update.
7535 (ada_exception_catchpoint_cond_string): Use std::string.
7536
7537 2018-05-04 Tom Tromey <tom@tromey.com>
7538
7539 * ada-lang.c (xget_renaming_scope): Return std::string.
7540 (old_renaming_is_invisible): Update.
7541
7542 2018-05-04 Tom Tromey <tom@tromey.com>
7543
7544 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7545 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7546
7547 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7548
7549 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7550
7551 2018-05-04 Tom Tromey <tom@tromey.com>
7552
7553 * remote.c (remote_query_supported_append): Change type.
7554 (remote_check_symbols): Update.
7555
7556 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7557
7558 PR gdb/11420
7559 * configure.ac: Prepend libpython.
7560 * python/python-config.py: Likewise.
7561 * configure: Regenerate.
7562
7563 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7564
7565 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7566
7567 2018-05-03 Pedro Alves <palves@redhat.com>
7568
7569 * s390-linux-nat.c
7570 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7571 override. Write 'true' instead of '1'.
7572 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7573 declaration.
7574
7575 2018-05-02 Pedro Alves <palves@redhat.com>
7576
7577 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7578 add_inf_child_target.
7579 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7580 add_inf_child_target.
7581 * aix-thread.c (aix_thread_target_info): New.
7582 (aix_thread_target) <shortname, longname, doc>: Delete.
7583 <info>: New.
7584 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7585 add_inf_child_target.
7586 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7587 add_inf_child_target.
7588 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7589 add_inf_child_target.
7590 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7591 add_inf_child_target.
7592 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7593 add_inf_child_target.
7594 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7595 add_inf_child_target.
7596 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7597 add_inf_child_target.
7598 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7599 add_inf_child_target.
7600 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7601 add_inf_child_target.
7602 * bfd-target.c (target_bfd_target_info): New.
7603 (target_bfd) <shortname, longname, doc>: Delete.
7604 <info>: New.
7605 * bsd-kvm.c (bsd_kvm_target_info): New.
7606 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7607 <info>: New.
7608 (bsd_kvm_target::open): Rename to ...
7609 (bsd_kvm_target_open): ... this. Adjust.
7610 * bsd-uthread.c (bsd_uthread_target_info): New.
7611 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7612 <info>: New.
7613 * corefile.c (core_file_command): Adjust.
7614 * corelow.c (core_target_info): New.
7615 (core_target) <shortname, longname, doc>: Delete.
7616 <info>: New.
7617 (core_target::open): Rename to ...
7618 (core_target_open): ... this. Adjust.
7619 * ctf.c (ctf_target_info): New.
7620 (ctf_target) <shortname, longname, doc>: Delete.
7621 <info>: New.
7622 (ctf_target::open): Rename to ...
7623 (ctf_target_open): ... this.
7624 (_initialize_ctf): Adjust.
7625 * exec.c (exec_target_info): New.
7626 (exec_target) <shortname, longname, doc>: Delete.
7627 <info>: New.
7628 (exec_target::open): Rename to ...
7629 (exec_target_open): ... this.
7630 * gdbcore.h (core_target_open): Declare.
7631 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7632 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7633 add_inf_child_target.
7634 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7635 add_inf_child_target.
7636 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7637 add_inf_child_target.
7638 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7639 add_inf_child_target.
7640 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7641 add_inf_child_target.
7642 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7643 add_inf_child_target.
7644 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7645 add_inf_child_target.
7646 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7647 add_inf_child_target.
7648 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7649 add_inf_child_target.
7650 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7651 add_inf_child_target.
7652 * inf-child.c (inf_child_target_info): New.
7653 (inf_child_target::info): New.
7654 (inf_child_open_target): Remove 'target' parameter. Use
7655 get_native_target instead.
7656 (inf_child_target::open): Delete.
7657 (add_inf_child_target): New.
7658 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7659 Delete.
7660 <info>: New.
7661 (add_inf_child_target): Declare.
7662 (inf_child_open_target): Declare.
7663 * linux-thread-db.c (thread_db_target_info): New.
7664 (thread_db_target) <shortname, longname, doc>: Delete.
7665 <info>: New.
7666 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7667 add_inf_child_target.
7668 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7669 add_inf_child_target.
7670 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7671 add_inf_child_target.
7672 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7673 add_inf_child_target.
7674 * make-target-delegates (print_class): Adjust.
7675 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7676 add_inf_child_target.
7677 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7678 add_inf_child_target.
7679 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7680 add_inf_child_target.
7681 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7682 add_inf_child_target.
7683 * nto-procfs.c (nto_native_target_info): New.
7684 (nto_procfs_target_native) <shortname, longname, doc>:
7685 Delete.
7686 <info>: New.
7687 (nto_procfs_target_info): New.
7688 (nto_procfs_target_procfs) <shortname, longname, doc>:
7689 Delete.
7690 <info>: New.
7691 (init_procfs_targets): Adjust.
7692 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7693 add_inf_child_target.
7694 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7695 add_inf_child_target.
7696 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7697 add_inf_child_target.
7698 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7699 add_inf_child_target.
7700 * ravenscar-thread.c (ravenscar_target_info): New.
7701 (ravenscar_thread_target) <shortname, longname, doc>:
7702 Delete.
7703 <info>: New.
7704 * record-btrace.c (record_btrace_target_info):
7705 (record_btrace_target) <shortname, longname, doc>: Delete.
7706 <info>: New.
7707 (record_btrace_target::open): Rename to ...
7708 (record_btrace_target_open): ... this. Adjust.
7709 * record-full.c (record_longname, record_doc): New.
7710 (record_full_base_target) <shortname, longname, doc>: Delete.
7711 <info>: New.
7712 (record_full_target_info): New.
7713 (record_full_target): <shortname>: Delete.
7714 <info>: New.
7715 (record_full_core_open_1, record_full_open_1): Update comments.
7716 (record_full_base_target::open): Rename to ...
7717 (record_full_open): ... this.
7718 (cmd_record_full_restore): Update.
7719 (_initialize_record_full): Update.
7720 * remote-sim.c (remote_sim_target_info): New.
7721 (gdbsim_target) <shortname, longname, doc>: Delete.
7722 <info>: New.
7723 (gdbsim_target::open): Rename to ...
7724 (gdbsim_target_open): ... this.
7725 (_initialize_remote_sim): Adjust.
7726 * remote.c (remote_doc): New.
7727 (remote_target_info): New.
7728 (remote_target) <shortname, longname, doc>: Delete.
7729 <info>: New.
7730 (extended_remote_target_info): New.
7731 (extended_remote_target) <shortname, longname, doc>: Delete.
7732 <info>: New.
7733 (remote_target::open_1): Make static. Adjust.
7734 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7735 * s390-linux-nat.c (_initialize_s390_nat): Use
7736 add_inf_child_target.
7737 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7738 add_inf_child_target.
7739 * sol-thread.c (thread_db_target_info): New.
7740 (sol_thread_target) <shortname, longname, doc>: Delete.
7741 <info>: New.
7742 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7743 add_inf_child_target.
7744 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7745 add_inf_child_target.
7746 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7747 add_inf_child_target.
7748 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7749 add_inf_child_target.
7750 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7751 add_inf_child_target.
7752 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7753 add_inf_child_target.
7754 * spu-linux-nat.c (_initialize_spu_nat): Use
7755 add_inf_child_target.
7756 * spu-multiarch.c (spu_multiarch_target_info): New.
7757 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7758 <info>: New.
7759 * target-delegates.c: Regenerate.
7760 * target.c: Include <unordered_map>.
7761 (target_ops_p): Delete.
7762 (DEF_VEC_P(target_ops_p)): Delete.
7763 (target_factories): New.
7764 (test_target_info): New.
7765 (test_target_ops::info): New.
7766 (open_target): Adjust to use target_factories.
7767 (add_target_with_completer): Rename to ...
7768 (add_target): ... this. Change prototype. Register target_info
7769 and open callback in target_factories. Register target_info in
7770 command context instead of target_ops.
7771 (add_target): Delete old implementation.
7772 (add_deprecated_target_alias): Change prototype. Adjust.
7773 (the_native_target): New.
7774 (set_native_target, get_native_target): New.
7775 (find_default_run_target): Use the_native_target.
7776 (find_attach_target, find_run_target): Simplify.
7777 (target_ops::open): Delete.
7778 (dummy_target_info): New.
7779 (dummy_target::shortname, dummy_target::longname)
7780 (dummy_target::doc): Delete.
7781 (dummy_target::info): New.
7782 (debug_target::shortname, debug_target::longname)
7783 (debug_target::doc): Delete.
7784 (debug_target::info): New.
7785 * target.h (struct target_info): New.
7786 (target_ops::~target_ops): Add comment.
7787 (target_ops::info): New.
7788 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7789 longer virtual. Implement in terms of target_info.
7790 (set_native_target, get_native_target): Declare.
7791 (target_open_ftype): New.
7792 (add_target, add_target_with_completer)
7793 (add_deprecated_target_alias): Change prototype.
7794 (test_target) <shortname, longname, doc>: Delete.
7795 <info>: New.
7796 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7797 add_inf_child_target.
7798 * tracefile-tfile.c (tfile_target_info): New.
7799 (tfile_target) <shortname, longname, doc>: Delete.
7800 <info>: New.
7801 (tfile_target::open): Rename to ...
7802 (tfile_target_open): ... this.
7803 (_initialize_tracefile_tfile): Adjust.
7804 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7805 add_inf_child_target.
7806 * windows-nat.c (_initialize_windows_nat): Use
7807 add_inf_child_target.
7808 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7809 add_inf_child_target.
7810
7811 2018-05-02 Pedro Alves <palves@redhat.com>
7812
7813 * linux-nat.h (linux_nat_target) <low_new_thread,
7814 low_delete_thread, low_new_fork, low_forget_process,
7815 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7816 New virtual methods.
7817 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7818 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7819 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7820 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7821 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7822 Delete.
7823 * linux-fork.c (delete_fork): Adjust to call low method.
7824 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7825 (linux_nat_new_fork, linux_nat_forget_process_hook)
7826 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7827 (linux_nat_status_is_event):
7828 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7829 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7830 to call low method.
7831 (sigtrap_is_event): Rename to ...
7832 (linux_nat_target::low_status_is_event): ... this.
7833 (linux_nat_set_status_is_event): Delete.
7834 (save_stop_reason, linux_nat_wait_1)
7835 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7836 low methods.
7837 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7838 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7839 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7840 (linux_nat_set_prepare_to_resume): Delete.
7841 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7842 low virtual methods.
7843 * amd64-linux-nat.c: Likewise.
7844 * arm-linux-nat.c: Likewise.
7845 * i386-linux-nat.c: Likewise.
7846 * ia64-linux-nat.c: Likewise.
7847 * mips-linux-nat.c: Likewise.
7848 * ppc-linux-nat.c: Likewise.
7849 * s390-linux-nat.c: Likewise.
7850 * sparc64-linux-nat.c: Likewise.
7851 * x86-linux-nat.c: Likewise.
7852 * x86-linux-nat.h: Include "nat/x86-linux.h".
7853 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7854 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7855 Override methods.
7856
7857 2018-05-02 Pedro Alves <palves@redhat.com>
7858
7859 * target.h (target_ops)
7860 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7861 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7862 stopped_by_watchpoint, have_continuable_watchpoint,
7863 stopped_data_address, watchpoint_addr_within_range,
7864 can_accel_watchpoint_condition, can_run, thread_alive,
7865 has_all_memory, has_memory, has_stack, has_registers,
7866 has_execution, can_async_p, is_async_p, supports_non_stop,
7867 always_non_stop_p, can_execute_reverse, supports_multi_process,
7868 supports_enable_disable_tracepoint,
7869 supports_disable_randomization, supports_string_tracing,
7870 supports_evaluation_of_breakpoint_conditions,
7871 can_run_breakpoint_commands, filesystem_is_local,
7872 can_download_tracepoint, get_trace_state_variable_value,
7873 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7874 record_is_replaying, record_will_replay,
7875 augmented_libraries_svr4_read>: Adjust to return bool.
7876 * aarch64-linux-nat.c: All implementations adjusted.
7877 * aix-thread.c: All implementations adjusted.
7878 * arm-linux-nat.c: All implementations adjusted.
7879 * breakpoint.c: All implementations adjusted.
7880 * bsd-kvm.c: All implementations adjusted.
7881 * bsd-uthread.c: All implementations adjusted.
7882 * corelow.c: All implementations adjusted.
7883 * ctf.c: All implementations adjusted.
7884 * darwin-nat.c: All implementations adjusted.
7885 * darwin-nat.h: All implementations adjusted.
7886 * exec.c: All implementations adjusted.
7887 * fbsd-nat.c: All implementations adjusted.
7888 * fbsd-nat.h: All implementations adjusted.
7889 * gnu-nat.c: All implementations adjusted.
7890 * gnu-nat.h: All implementations adjusted.
7891 * go32-nat.c: All implementations adjusted.
7892 * ia64-linux-nat.c: All implementations adjusted.
7893 * inf-child.c: All implementations adjusted.
7894 * inf-child.h: All implementations adjusted.
7895 * inf-ptrace.c: All implementations adjusted.
7896 * inf-ptrace.h: All implementations adjusted.
7897 * linux-nat.c: All implementations adjusted.
7898 * linux-nat.h: All implementations adjusted.
7899 * mips-linux-nat.c: All implementations adjusted.
7900 * nto-procfs.c: All implementations adjusted.
7901 * ppc-linux-nat.c: All implementations adjusted.
7902 * procfs.c: All implementations adjusted.
7903 * ravenscar-thread.c: All implementations adjusted.
7904 * record-btrace.c: All implementations adjusted.
7905 * record-full.c: All implementations adjusted.
7906 * remote-sim.c: All implementations adjusted.
7907 * remote.c: All implementations adjusted.
7908 * s390-linux-nat.c: All implementations adjusted.
7909 * sol-thread.c: All implementations adjusted.
7910 * spu-multiarch.c: All implementations adjusted.
7911 * target-delegates.c: All implementations adjusted.
7912 * target.c: All implementations adjusted.
7913 * target.h: All implementations adjusted.
7914 * tracefile-tfile.c: All implementations adjusted.
7915 * tracefile.c: All implementations adjusted.
7916 * tracefile.h: All implementations adjusted.
7917 * windows-nat.c: All implementations adjusted.
7918 * x86-linux-nat.h: All implementations adjusted.
7919 * x86-nat.h: All implementations adjusted.
7920
7921 2018-05-02 Pedro Alves <palves@redhat.com>
7922
7923 * make-target-delegates (scan_target_h): Don't trim lines here.
7924 Replace sequences of tabs and/or whitespace with a single
7925 whitespace.
7926 (top level, parsing methods): Trim each line before processing it
7927 here.
7928
7929 2018-05-02 Pedro Alves <palves@redhat.com>
7930 John Baldwin <jhb@freebsd.org>
7931
7932 * target.h (enum strata) <debug_stratum>: New.
7933 (struct target_ops) <all delegation methods>: Replace by C++
7934 virtual methods, and drop "to_" prefix. All references updated
7935 throughout.
7936 <to_shortname, to_longname, to_doc, to_data,
7937 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7938 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7939 virtual methods. All references updated throughout.
7940 <can_attach, supports_terminal_ours, can_create_inferior,
7941 get_thread_control_capabilities, attach_no_wait>: New
7942 virtual methods.
7943 <insert_breakpoint, remove_breakpoint>: Now
7944 TARGET_DEFAULT_NORETURN methods.
7945 <info_proc>: Now returns bool.
7946 <to_magic>: Delete.
7947 (OPS_MAGIC): Delete.
7948 (current_target): Delete. All references replaced by references
7949 to ...
7950 (target_stack): ... this. New.
7951 (target_shortname, target_longname): Adjust.
7952 (target_can_run): Now a function declaration.
7953 (default_child_has_all_memory, default_child_has_memory)
7954 (default_child_has_stack, default_child_has_registers)
7955 (default_child_has_execution): Remove target_ops parameter.
7956 (complete_target_initialization): Delete.
7957 (memory_breakpoint_target): New template class.
7958 (test_target_ops): Refactor as a C++ class with virtual methods.
7959 * make-target-delegates (NAME_PART): Tighten.
7960 (POINTER_PART, CP_SYMBOL): New.
7961 (SIMPLE_RETURN_PART): Reimplement.
7962 (VEC_RETURN_PART): Expect less.
7963 (RETURN_PART, VIRTUAL_PART): New.
7964 (METHOD): Adjust to C++ virtual methods.
7965 (scan_target_h): Remove reference to C99.
7966 (dname): Output "target_ops::" prefix.
7967 (write_function_header): Adjust to output a C++ class method.
7968 (write_declaration): New.
7969 (write_delegator): Adjust to output a C++ class method.
7970 (tdname): Output "dummy_target::" prefix.
7971 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7972 method.
7973 (tdefault_names, debug_names): Delete.
7974 (return_types, tdefaults, styles, argtypes_array): New.
7975 (top level): All methods are delegators.
7976 (print_class): New.
7977 (top level): Print dummy_target and debug_target classes.
7978 * target-delegates.c: Regenerate.
7979 * target-debug.h (target_debug_print_enum_info_proc_what)
7980 (target_debug_print_thread_control_capabilities)
7981 (target_debug_print_thread_info_p): New.
7982 * target.c (dummy_target): Delete.
7983 (the_dummy_target, the_debug_target): New.
7984 (target_stack): Now extern.
7985 (set_targetdebug): Push/unpush debug target.
7986 (default_child_has_all_memory, default_child_has_memory)
7987 (default_child_has_stack, default_child_has_registers)
7988 (default_child_has_execution): Remove target_ops parameter.
7989 (complete_target_initialization): Delete.
7990 (add_target_with_completer): No longer call
7991 complete_target_initialization.
7992 (target_supports_terminal_ours): Use regular delegation.
7993 (update_current_target): Delete.
7994 (push_target): No longer check magic number. Don't call
7995 update_current_target.
7996 (unpush_target): Don't call update_current_target.
7997 (target_is_pushed): No longer check magic number.
7998 (target_require_runnable): Skip for all stratums over
7999 process_stratum.
8000 (target_ops::info_proc): New.
8001 (target_info_proc): Use find_target_at and
8002 find_default_run_target.
8003 (target_supports_disable_randomization): Use regular delegation.
8004 (target_get_osdata): Use find_target_at.
8005 (target_ops::open, target_ops::close, target_ops::can_attach)
8006 (target_ops::attach, target_ops::can_create_inferior)
8007 (target_ops::create_inferior, target_ops::can_run)
8008 (target_can_run): New.
8009 (default_fileio_target): Use regular delegation.
8010 (target_ops::fileio_open, target_ops::fileio_pwrite)
8011 (target_ops::fileio_pread, target_ops::fileio_fstat)
8012 (target_ops::fileio_close, target_ops::fileio_unlink)
8013 (target_ops::fileio_readlink): New.
8014 (target_fileio_open_1, target_fileio_unlink)
8015 (target_fileio_readlink): Always call the target method. Handle
8016 FILEIO_ENOSYS.
8017 (return_zero, return_zero_has_execution): Delete.
8018 (init_dummy_target): Delete.
8019 (dummy_target::dummy_target, dummy_target::shortname)
8020 (dummy_target::longname, dummy_target::doc)
8021 (debug_target::debug_target, debug_target::shortname)
8022 (debug_target::longname, debug_target::doc): New.
8023 (target_supports_delete_record): Use regular delegation.
8024 (setup_target_debug): Delete.
8025 (maintenance_print_target_stack): Skip debug_stratum.
8026 (initialize_targets): Instantiate the_dummy_target and
8027 the_debug_target.
8028 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8029 use target_stack.
8030 (target_auxv_search, fprint_target_auxv): Adjust.
8031 (info_auxv_command): Adjust to use target_stack.
8032 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8033 * exceptions.c (print_flush): Handle a NULL target_stack.
8034 * regcache.c (target_ops_no_register): Refactor as class with
8035 virtual methods.
8036
8037 * exec.c (exec_target): New class.
8038 (exec_ops): Now an exec_target.
8039 (exec_open, exec_close_1, exec_get_section_table)
8040 (exec_xfer_partial, exec_files_info, exec_has_memory)
8041 (exec_make_note_section): Refactor as exec_target methods.
8042 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8043 Delete.
8044 (exec_target::find_memory_regions): New.
8045 (_initialize_exec): Don't call init_exec_ops.
8046 * gdbcore.h (exec_file_clear): Delete.
8047
8048 * corefile.c (core_target): Delete.
8049 (core_file_command): Adjust.
8050 * corelow.c (core_target): New class.
8051 (the_core_target): New.
8052 (core_close): Remove target_ops parameter.
8053 (core_close_cleanup): Adjust.
8054 (core_target::close): New.
8055 (core_open, core_detach, get_core_registers, core_files_info)
8056 (core_xfer_partial, core_thread_alive, core_read_description)
8057 (core_pid_to_str, core_thread_name, core_has_memory)
8058 (core_has_stack, core_has_registers, core_info_proc): Rework as
8059 core_target methods.
8060 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8061 (_initialize_corelow): Initialize the_core_target.
8062 * gdbcore.h (core_target): Delete.
8063 (the_core_target): New.
8064
8065 * ctf.c: (ctf_target): New class.
8066 (ctf_ops): Now a ctf_target.
8067 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8068 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8069 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8070 methods.
8071 (init_ctf_ops): Delete.
8072 (_initialize_ctf): Don't call it.
8073 * tracefile-tfile.c (tfile_target): New class.
8074 (tfile_ops): Now a tfile_target.
8075 (tfile_open, tfile_close, tfile_files_info)
8076 (tfile_get_tracepoint_status, tfile_trace_find)
8077 (tfile_fetch_registers, tfile_xfer_partial)
8078 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8079 Refactor as tfile_target methods.
8080 (tfile_xfer_partial_features): Remove target_ops parameter.
8081 (init_tfile_ops): Delete.
8082 (_initialize_tracefile_tfile): Don't call it.
8083 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8084 (tracefile_has_stack, tracefile_has_registers)
8085 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8086 tracefile_target methods.
8087 (init_tracefile_ops): Delete.
8088 (tracefile_target::tracefile_target): New.
8089 * tracefile.h: Include "target.h".
8090 (tracefile_target): New class.
8091 (init_tracefile_ops): Delete.
8092
8093 * spu-multiarch.c (spu_multiarch_target): New class.
8094 (spu_ops): Now a spu_multiarch_target.
8095 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8096 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8097 (spu_search_memory, spu_mourn_inferior): Refactor as
8098 spu_multiarch_target methods.
8099 (init_spu_ops): Delete.
8100 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8101 complete_target_initialization.
8102
8103 * ravenscar-thread.c (ravenscar_thread_target): New class.
8104 (ravenscar_ops): Now a ravenscar_thread_target.
8105 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8106 (ravenscar_thread_alive, ravenscar_pid_to_str)
8107 (ravenscar_fetch_registers, ravenscar_store_registers)
8108 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8109 (ravenscar_stopped_by_hw_breakpoint)
8110 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8111 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8112 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8113 methods.
8114 (init_ravenscar_thread_ops): Delete.
8115 (_initialize_ravenscar): Remove references to
8116 init_ravenscar_thread_ops and complete_target_initialization.
8117
8118 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8119 (bsd_uthread_target): New class.
8120 (bsd_uthread_ops): Now a bsd_uthread_target.
8121 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8122 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8123 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8124 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8125 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8126 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8127 (bsd_uthread_target): Delete function.
8128 (_initialize_bsd_uthread): Remove reference to
8129 complete_target_initialization.
8130
8131 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8132 (target_bfd): ... this new class.
8133 (target_bfd_xfer_partial, target_bfd_get_section_table)
8134 (target_bfd_close): Refactor as target_bfd methods.
8135 (target_bfd::~target_bfd): New.
8136 (target_bfd_reopen): Adjust.
8137 (target_bfd::close): New.
8138
8139 * record-btrace.c (record_btrace_target): New class.
8140 (record_btrace_ops): Now a record_btrace_target.
8141 (record_btrace_open, record_btrace_stop_recording)
8142 (record_btrace_disconnect, record_btrace_close)
8143 (record_btrace_async, record_btrace_info)
8144 (record_btrace_insn_history, record_btrace_insn_history_range)
8145 (record_btrace_insn_history_from, record_btrace_call_history)
8146 (record_btrace_call_history_range)
8147 (record_btrace_call_history_from, record_btrace_record_method)
8148 (record_btrace_is_replaying, record_btrace_will_replay)
8149 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8150 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8151 (record_btrace_store_registers, record_btrace_prepare_to_store)
8152 (record_btrace_to_get_unwinder)
8153 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8154 (record_btrace_commit_resume, record_btrace_wait)
8155 (record_btrace_stop, record_btrace_can_execute_reverse)
8156 (record_btrace_stopped_by_sw_breakpoint)
8157 (record_btrace_supports_stopped_by_sw_breakpoint)
8158 (record_btrace_stopped_by_hw_breakpoint)
8159 (record_btrace_supports_stopped_by_hw_breakpoint)
8160 (record_btrace_update_thread_list, record_btrace_thread_alive)
8161 (record_btrace_goto_begin, record_btrace_goto_end)
8162 (record_btrace_goto, record_btrace_stop_replaying_all)
8163 (record_btrace_execution_direction)
8164 (record_btrace_prepare_to_generate_core)
8165 (record_btrace_done_generating_core): Refactor as
8166 record_btrace_target methods.
8167 (init_record_btrace_ops): Delete.
8168 (_initialize_record_btrace): Remove reference to
8169 init_record_btrace_ops.
8170 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8171 the execution_direction global.
8172 (record_full_base_target, record_full_target)
8173 (record_full_core_target): New classes.
8174 (record_full_ops): Now a record_full_target.
8175 (record_full_core_ops): Now a record_full_core_target.
8176 (record_full_target::detach, record_full_target::disconnect)
8177 (record_full_core_target::disconnect)
8178 (record_full_target::mourn_inferior, record_full_target::kill):
8179 New.
8180 (record_full_open, record_full_close, record_full_async): Refactor
8181 as methods of the record_full_base_target class.
8182 (record_full_resume, record_full_commit_resume): Refactor
8183 as methods of the record_full_target class.
8184 (record_full_wait, record_full_stopped_by_watchpoint)
8185 (record_full_stopped_data_address)
8186 (record_full_stopped_by_sw_breakpoint)
8187 (record_full_supports_stopped_by_sw_breakpoint)
8188 (record_full_stopped_by_hw_breakpoint)
8189 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8190 methods of the record_full_base_target class.
8191 (record_full_store_registers, record_full_xfer_partial)
8192 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8193 Refactor as methods of the record_full_target class.
8194 (record_full_can_execute_reverse, record_full_get_bookmark)
8195 (record_full_goto_bookmark, record_full_execution_direction)
8196 (record_full_record_method, record_full_info, record_full_delete)
8197 (record_full_is_replaying, record_full_will_replay)
8198 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8199 (record_full_stop_replaying): Refactor as methods of the
8200 record_full_base_target class.
8201 (record_full_core_resume, record_full_core_kill)
8202 (record_full_core_fetch_registers)
8203 (record_full_core_prepare_to_store)
8204 (record_full_core_store_registers, record_full_core_xfer_partial)
8205 (record_full_core_insert_breakpoint)
8206 (record_full_core_remove_breakpoint)
8207 (record_full_core_has_execution): Refactor
8208 as methods of the record_full_core_target class.
8209 (record_full_base_target::supports_delete_record): New.
8210 (init_record_full_ops): Delete.
8211 (init_record_full_core_ops): Delete.
8212 (record_full_save): Refactor as method of the
8213 record_full_base_target class.
8214 (_initialize_record_full): Remove references to
8215 init_record_full_ops and init_record_full_core_ops.
8216
8217 * remote.c (remote_target, extended_remote_target): New classes.
8218 (remote_ops): Now a remote_target.
8219 (extended_remote_ops): Now an extended_remote_target.
8220 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8221 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8222 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8223 (remote_pass_signals, remote_set_syscall_catchpoint)
8224 (remote_program_signals, )
8225 (remote_thread_always_alive): Remove target_ops parameter.
8226 (remote_thread_alive, remote_thread_name)
8227 (remote_update_thread_list, remote_threads_extra_info)
8228 (remote_static_tracepoint_marker_at)
8229 (remote_static_tracepoint_markers_by_strid)
8230 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8231 (remote_open): Refactor as methods of remote_target.
8232 (extended_remote_open, extended_remote_detach)
8233 (extended_remote_attach, extended_remote_post_attach):
8234 (extended_remote_supports_disable_randomization)
8235 (extended_remote_create_inferior): : Refactor as method of
8236 extended_remote_target.
8237 (remote_set_permissions, remote_open_1, remote_detach)
8238 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8239 (remote_resume, remote_commit_resume, remote_stop)
8240 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8241 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8242 (remote_prepare_to_store, remote_store_registers)
8243 (remote_flash_erase, remote_flash_done, remote_files_info)
8244 (remote_kill, remote_mourn, remote_insert_breakpoint)
8245 (remote_remove_breakpoint, remote_insert_watchpoint)
8246 (remote_watchpoint_addr_within_range)
8247 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8248 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8249 (remote_supports_stopped_by_sw_breakpoint)
8250 (remote_stopped_by_hw_breakpoint)
8251 (remote_supports_stopped_by_hw_breakpoint)
8252 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8253 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8254 (remote_verify_memory): Refactor as methods of remote_target.
8255 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8256 parameter.
8257 (remote_xfer_partial, remote_get_memory_xfer_limit)
8258 (remote_search_memory, remote_rcmd, remote_memory_map)
8259 (remote_pid_to_str, remote_get_thread_local_address)
8260 (remote_get_tib_address, remote_read_description): Refactor as
8261 methods of remote_target.
8262 (remote_target::fileio_open, remote_target::fileio_pwrite)
8263 (remote_target::fileio_pread, remote_target::fileio_close): New.
8264 (remote_hostio_readlink, remote_hostio_fstat)
8265 (remote_filesystem_is_local, remote_can_execute_reverse)
8266 (remote_supports_non_stop, remote_supports_disable_randomization)
8267 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8268 (remote_supports_enable_disable_tracepoint)
8269 (remote_supports_string_tracing)
8270 (remote_can_run_breakpoint_commands, remote_trace_init)
8271 (remote_download_tracepoint, remote_can_download_tracepoint)
8272 (remote_download_trace_state_variable, remote_enable_tracepoint)
8273 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8274 (remote_trace_start, remote_get_trace_status)
8275 (remote_get_tracepoint_status, remote_trace_stop)
8276 (remote_trace_find, remote_get_trace_state_variable_value)
8277 (remote_save_trace_data, remote_get_raw_trace_data)
8278 (remote_set_disconnected_tracing, remote_core_of_thread)
8279 (remote_set_circular_trace_buffer, remote_traceframe_info)
8280 (remote_get_min_fast_tracepoint_insn_len)
8281 (remote_set_trace_buffer_size, remote_set_trace_notes)
8282 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8283 (remote_disable_btrace, remote_teardown_btrace)
8284 (remote_read_btrace, remote_btrace_conf)
8285 (remote_augmented_libraries_svr4_read, remote_load)
8286 (remote_pid_to_exec_file, remote_can_do_single_step)
8287 (remote_execution_direction, remote_thread_handle_to_thread_info):
8288 Refactor as methods of remote_target.
8289 (init_remote_ops, init_extended_remote_ops): Delete.
8290 (remote_can_async_p, remote_is_async_p, remote_async)
8291 (remote_thread_events, remote_upload_tracepoints)
8292 (remote_upload_trace_state_variables): Refactor as methods of
8293 remote_target.
8294 (_initialize_remote): Remove references to init_remote_ops and
8295 init_extended_remote_ops.
8296
8297 * remote-sim.c (gdbsim_target): New class.
8298 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8299 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8300 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8301 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8302 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8303 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8304 Refactor as methods of gdbsim_target.
8305 (gdbsim_ops): Now a gdbsim_target.
8306 (init_gdbsim_ops): Delete.
8307 (gdbsim_cntrl_c): Adjust.
8308 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8309
8310 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8311 (the_amd64_linux_nat_target): New.
8312 (amd64_linux_fetch_inferior_registers)
8313 (amd64_linux_store_inferior_registers): Refactor as methods of
8314 amd64_linux_nat_target.
8315 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8316 * i386-linux-nat.c: Don't include "linux-nat.h".
8317 (i386_linux_nat_target): New class.
8318 (the_i386_linux_nat_target): New.
8319 (i386_linux_fetch_inferior_registers)
8320 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8321 as methods of i386_linux_nat_target.
8322 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8323 * inf-child.c (inf_child_ops): Delete.
8324 (inf_child_fetch_inferior_registers)
8325 (inf_child_store_inferior_registers): Delete.
8326 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8327 methods of inf_child_target.
8328 (inf_child_target::supports_terminal_ours)
8329 (inf_child_target::terminal_init)
8330 (inf_child_target::terminal_inferior)
8331 (inf_child_target::terminal_ours_for_output)
8332 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8333 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8334 New.
8335 (inf_child_open, inf_child_disconnect, inf_child_close)
8336 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8337 (inf_child_post_startup_inferior, inf_child_can_run)
8338 (inf_child_pid_to_exec_file): Refactor as methods of
8339 inf_child_target.
8340 (inf_child_follow_fork): Delete.
8341 (inf_child_target::can_create_inferior)
8342 (inf_child_target::can_attach): New.
8343 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8344 (inf_child_target::has_stack, inf_child_target::has_registers)
8345 (inf_child_target::has_execution): New.
8346 (inf_child_fileio_open, inf_child_fileio_pwrite)
8347 (inf_child_fileio_pread, inf_child_fileio_fstat)
8348 (inf_child_fileio_close, inf_child_fileio_unlink)
8349 (inf_child_fileio_readlink, inf_child_use_agent)
8350 (inf_child_can_use_agent): Refactor as methods of
8351 inf_child_target.
8352 (return_zero, inf_child_target): Delete.
8353 (inf_child_target::inf_child_target): New.
8354 * inf-child.h: Include "target.h".
8355 (inf_child_target): Delete function prototype.
8356 (inf_child_target): New class.
8357 (inf_child_open_target, inf_child_mourn_inferior)
8358 (inf_child_maybe_unpush_target): Delete.
8359 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8360 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8361 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8362 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8363 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8364 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8365 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8366 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8367 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8368 methods of inf_ptrace_target.
8369 (inf_ptrace_target): Delete function.
8370 * inf-ptrace.h: Include "inf-child.h".
8371 (inf_ptrace_target): Delete function declaration.
8372 (inf_ptrace_target): New class.
8373 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8374 * linux-nat.c (linux_target): New.
8375 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8376 (linux_nat_target::~linux_nat_target): New.
8377 (linux_child_post_attach, linux_child_post_startup_inferior)
8378 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8379 (linux_child_remove_fork_catchpoint)
8380 (linux_child_insert_vfork_catchpoint)
8381 (linux_child_remove_vfork_catchpoint)
8382 (linux_child_insert_exec_catchpoint)
8383 (linux_child_remove_exec_catchpoint)
8384 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8385 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8386 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8387 (linux_nat_stopped_data_address)
8388 (linux_nat_stopped_by_sw_breakpoint)
8389 (linux_nat_supports_stopped_by_sw_breakpoint)
8390 (linux_nat_stopped_by_hw_breakpoint)
8391 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8392 (linux_nat_kill, linux_nat_mourn_inferior)
8393 (linux_nat_xfer_partial, linux_nat_thread_alive)
8394 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8395 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8396 (linux_child_static_tracepoint_markers_by_strid)
8397 (linux_nat_is_async_p, linux_nat_can_async_p)
8398 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8399 (linux_nat_supports_multi_process)
8400 (linux_nat_supports_disable_randomization, linux_nat_async)
8401 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8402 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8403 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8404 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8405 methods of linux_nat_target.
8406 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8407 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8408 parameter.
8409 (check_stopped_by_watchpoint): Adjust.
8410 (linux_xfer_partial): Delete.
8411 (linux_target_install_ops, linux_target, linux_nat_add_target):
8412 Delete.
8413 (linux_nat_target::linux_nat_target): New.
8414 * linux-nat.h: Include "inf-ptrace.h".
8415 (linux_nat_target): New.
8416 (linux_target, linux_target_install_ops, linux_nat_add_target):
8417 Delete function declarations.
8418 (linux_target): Declare global.
8419 * linux-thread-db.c (thread_db_target): New.
8420 (thread_db_target::thread_db_target): New.
8421 (thread_db_ops): Delete.
8422 (the_thread_db_target): New.
8423 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8424 (thread_db_update_thread_list, thread_db_pid_to_str)
8425 (thread_db_extra_thread_info)
8426 (thread_db_thread_handle_to_thread_info)
8427 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8428 (thread_db_resume): Refactor as methods of thread_db_target.
8429 (init_thread_db_ops): Delete.
8430 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8431 * x86-linux-nat.c: Don't include "linux-nat.h".
8432 (super_post_startup_inferior): Delete.
8433 (x86_linux_nat_target::~x86_linux_nat_target): New.
8434 (x86_linux_child_post_startup_inferior)
8435 (x86_linux_read_description, x86_linux_enable_btrace)
8436 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8437 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8438 methods of x86_linux_nat_target.
8439 (x86_linux_create_target): Delete. Bits folded ...
8440 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8441 pointer.
8442 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8443 (x86_linux_nat_target): New class.
8444 (x86_linux_create_target): Delete.
8445 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8446 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8447 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8448 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8449 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8450 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8451 make extern.
8452 (x86_use_watchpoints): Delete.
8453 * x86-nat.h: Include "breakpoint.h" and "target.h".
8454 (x86_use_watchpoints): Delete.
8455 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8456 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8457 (x86_insert_watchpoint, x86_remove_watchpoint)
8458 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8459 (x86_stopped_by_hw_breakpoint): New declarations.
8460 (x86_nat_target): New template class.
8461
8462 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8463 (the_ppc_linux_nat_target): New.
8464 (ppc_linux_fetch_inferior_registers)
8465 (ppc_linux_can_use_hw_breakpoint)
8466 (ppc_linux_region_ok_for_hw_watchpoint)
8467 (ppc_linux_ranged_break_num_registers)
8468 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8469 (ppc_linux_insert_mask_watchpoint)
8470 (ppc_linux_remove_mask_watchpoint)
8471 (ppc_linux_can_accel_watchpoint_condition)
8472 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8473 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8474 (ppc_linux_watchpoint_addr_within_range)
8475 (ppc_linux_masked_watch_num_registers)
8476 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8477 (ppc_linux_read_description): Refactor as methods of
8478 ppc_linux_nat_target.
8479 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8480
8481 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8482 (procfs_target): New class.
8483 (the_procfs_target): New.
8484 (procfs_target): Delete function.
8485 (procfs_auxv_parse, procfs_attach, procfs_detach)
8486 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8487 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8488 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8489 (procfs_create_inferior, procfs_update_thread_list)
8490 (procfs_thread_alive, procfs_pid_to_str)
8491 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8492 (procfs_stopped_data_address, procfs_insert_watchpoint)
8493 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8494 (proc_find_memory_regions, procfs_info_proc)
8495 (procfs_make_note_section): Refactor as methods of procfs_target.
8496 (_initialize_procfs): Adjust.
8497 * sol-thread.c (sol_thread_target): New class.
8498 (sol_thread_ops): Now a sol_thread_target.
8499 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8500 (sol_thread_fetch_registers, sol_thread_store_registers)
8501 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8502 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8503 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8504 (init_sol_thread_ops): Delete.
8505 (_initialize_sol_thread): Adjust. Remove references to
8506 init_sol_thread_ops and complete_target_initialization.
8507
8508 * windows-nat.c (windows_nat_target): New class.
8509 (windows_fetch_inferior_registers)
8510 (windows_store_inferior_registers, windows_resume, windows_wait)
8511 (windows_attach, windows_detach, windows_pid_to_exec_file)
8512 (windows_files_info, windows_create_inferior)
8513 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8514 (windows_close, windows_pid_to_str, windows_xfer_partial)
8515 (windows_get_tib_address, windows_get_ada_task_ptid)
8516 (windows_thread_name, windows_thread_alive): Refactor as
8517 windows_nat_target methods.
8518 (do_initial_windows_stuff): Adjust.
8519 (windows_target): Delete function.
8520 (_initialize_windows_nat): Adjust.
8521
8522 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8523 (darwin_mourn_inferior, darwin_kill_inferior)
8524 (darwin_create_inferior, darwin_attach, darwin_detach)
8525 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8526 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8527 (darwin_supports_multi_process): Refactor as darwin_nat_target
8528 methods.
8529 (darwin_resume_to, darwin_files_info): Delete.
8530 (_initialize_darwin_inferior): Rename to ...
8531 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8532 * darwin-nat.h: Include "inf-child.h".
8533 (darwin_nat_target): New class.
8534 (darwin_complete_target): Delete.
8535 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8536 (darwin_target): New.
8537 (i386_darwin_fetch_inferior_registers)
8538 (i386_darwin_store_inferior_registers): Refactor as methods of
8539 darwin_nat_target.
8540 (darwin_complete_target): Delete, with ...
8541 (_initialize_i386_darwin_nat): ... bits factored out here.
8542
8543 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8544 (the_alpha_linux_nat_target): New.
8545 (alpha_linux_register_u_offset): Refactor as
8546 alpha_linux_nat_target method.
8547 (_initialize_alpha_linux_nat): Adjust.
8548 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8549 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8550 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8551 methods of linux_nat_trad_target.
8552 (linux_trad_target): Delete.
8553 * linux-nat-trad.h (linux_trad_target): Delete function.
8554 (linux_nat_trad_target): New class.
8555 * mips-linux-nat.c (mips_linux_nat_target): New class.
8556 (super_fetch_registers, super_store_registers, super_close):
8557 Delete.
8558 (the_mips_linux_nat_target): New.
8559 (mips64_linux_regsets_fetch_registers)
8560 (mips64_linux_regsets_store_registers)
8561 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8562 (mips_linux_register_u_offset, mips_linux_read_description)
8563 (mips_linux_can_use_hw_breakpoint)
8564 (mips_linux_stopped_by_watchpoint)
8565 (mips_linux_stopped_data_address)
8566 (mips_linux_region_ok_for_hw_watchpoint)
8567 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8568 (mips_linux_close): Refactor as methods of mips_linux_nat.
8569 (_initialize_mips_linux_nat): Adjust to C++ification.
8570
8571 * aix-thread.c (aix_thread_target): New class.
8572 (aix_thread_ops): Now an aix_thread_target.
8573 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8574 (aix_thread_fetch_registers, aix_thread_store_registers)
8575 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8576 (aix_thread_thread_alive, aix_thread_pid_to_str)
8577 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8578 Refactor as methods of aix_thread_target.
8579 (init_aix_thread_ops): Delete.
8580 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8581 and complete_target_initialization.
8582 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8583 (rs6000_nat_target): New class.
8584 (the_rs6000_nat_target): New.
8585 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8586 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8587 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8588 (super_create_inferior): Delete.
8589 (_initialize_rs6000_nat): Adjust to C++ification.
8590
8591 * arm-linux-nat.c (arm_linux_nat_target): New class.
8592 (the_arm_linux_nat_target): New.
8593 (arm_linux_fetch_inferior_registers)
8594 (arm_linux_store_inferior_registers, arm_linux_read_description)
8595 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8596 (arm_linux_remove_hw_breakpoint)
8597 (arm_linux_region_ok_for_hw_watchpoint)
8598 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8599 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8600 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8601 arm_linux_nat_target.
8602 (_initialize_arm_linux_nat): Adjust to C++ification.
8603
8604 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8605 (the_aarch64_linux_nat_target): New.
8606 (aarch64_linux_fetch_inferior_registers)
8607 (aarch64_linux_store_inferior_registers)
8608 (aarch64_linux_child_post_startup_inferior)
8609 (aarch64_linux_read_description)
8610 (aarch64_linux_can_use_hw_breakpoint)
8611 (aarch64_linux_insert_hw_breakpoint)
8612 (aarch64_linux_remove_hw_breakpoint)
8613 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8614 (aarch64_linux_region_ok_for_hw_watchpoint)
8615 (aarch64_linux_stopped_data_address)
8616 (aarch64_linux_stopped_by_watchpoint)
8617 (aarch64_linux_watchpoint_addr_within_range)
8618 (aarch64_linux_can_do_single_step): Refactor as methods of
8619 aarch64_linux_nat_target.
8620 (super_post_startup_inferior): Delete.
8621 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8622
8623 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8624 (the_hppa_linux_nat_target): New.
8625 (hppa_linux_fetch_inferior_registers)
8626 (hppa_linux_store_inferior_registers): Refactor as methods of
8627 hppa_linux_nat_target.
8628 (_initialize_hppa_linux_nat): Adjust to C++ification.
8629
8630 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8631 (the_ia64_linux_nat_target): New.
8632 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8633 (ia64_linux_stopped_data_address)
8634 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8635 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8636 ia64_linux_nat_target methods.
8637 (super_xfer_partial): Delete.
8638 (_initialize_ia64_linux_nat): Adjust to C++ification.
8639
8640 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8641 (the_m32r_linux_nat_target): New.
8642 (m32r_linux_fetch_inferior_registers)
8643 (m32r_linux_store_inferior_registers): Refactor as
8644 m32r_linux_nat_target methods.
8645 (_initialize_m32r_linux_nat): Adjust to C++ification.
8646
8647 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8648 (the_m68k_linux_nat_target): New.
8649 (m68k_linux_fetch_inferior_registers)
8650 (m68k_linux_store_inferior_registers): Refactor as
8651 m68k_linux_nat_target methods.
8652 (_initialize_m68k_linux_nat): Adjust to C++ification.
8653
8654 * s390-linux-nat.c (s390_linux_nat_target): New class.
8655 (the_s390_linux_nat_target): New.
8656 (s390_linux_fetch_inferior_registers)
8657 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8658 (s390_insert_watchpoint, s390_remove_watchpoint)
8659 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8660 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8661 (s390_auxv_parse, s390_read_description): Refactor as methods of
8662 s390_linux_nat_target.
8663 (_initialize_s390_nat): Adjust to C++ification.
8664
8665 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8666 (the_sparc_linux_nat_target): New.
8667 (_initialize_sparc_linux_nat): Adjust to C++ification.
8668 * sparc-nat.c (sparc_fetch_inferior_registers)
8669 (sparc_store_inferior_registers): Remove target_ops parameter.
8670 * sparc-nat.h (sparc_fetch_inferior_registers)
8671 (sparc_store_inferior_registers): Remove target_ops parameter.
8672 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8673 (the_sparc64_linux_nat_target): New.
8674 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8675
8676 * spu-linux-nat.c (spu_linux_nat_target): New class.
8677 (the_spu_linux_nat_target): New.
8678 (spu_child_post_startup_inferior, spu_child_post_attach)
8679 (spu_child_wait, spu_fetch_inferior_registers)
8680 (spu_store_inferior_registers, spu_xfer_partial)
8681 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8682 methods.
8683 (_initialize_spu_nat): Adjust to C++ification.
8684
8685 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8686 (the_tilegx_linux_nat_target): New.
8687 (fetch_inferior_registers, store_inferior_registers):
8688 Refactor as methods.
8689 (_initialize_tile_linux_nat): Adjust to C++ification.
8690
8691 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8692 (the_xtensa_linux_nat_target): New.
8693 (xtensa_linux_fetch_inferior_registers)
8694 (xtensa_linux_store_inferior_registers): Refactor as
8695 xtensa_linux_nat_target methods.
8696 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8697
8698 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8699 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8700 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8701 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8702 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8703 (fbsd_stopped_by_sw_breakpoint)
8704 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8705 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8706 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8707 (fbsd_post_startup_inferior, fbsd_post_attach)
8708 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8709 (fbsd_set_syscall_catchpoint)
8710 (super_xfer_partial, super_resume, super_wait)
8711 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8712 (fbsd_handle_debug_trap): Remove target_ops parameter.
8713 (fbsd_nat_add_target): Delete.
8714 * fbsd-nat.h: Include "inf-ptrace.h".
8715 (fbsd_nat_add_target): Delete.
8716 (USE_SIGTRAP_SIGINFO): Define.
8717 (fbsd_nat_target): New class.
8718
8719 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8720 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8721 (amd64bsd_target): Delete.
8722 * amd64-bsd-nat.h: New file.
8723 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8724 "x86-bsd-nat.h".
8725 (amd64_fbsd_nat_target): New class.
8726 (the_amd64_fbsd_nat_target): New.
8727 (amd64fbsd_read_description): Refactor as method of
8728 amd64_fbsd_nat_target.
8729 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8730 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8731 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8732 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8733 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8734 (i386bsd_target): Delete.
8735 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8736 (i386bsd_fetch_inferior_registers)
8737 (i386bsd_store_inferior_registers): Declare.
8738 (i386_bsd_nat_target): New class.
8739 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8740 (the_i386_fbsd_nat_target): New.
8741 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8742 i386_fbsd_nat_target methods.
8743 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8744 (_initialize_i386fbsd_nat): Adjust to C++ification.
8745 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8746 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8747 (_initialize_x86_bsd_nat): Adjust to C++ification.
8748 * x86-bsd-nat.h: Include "x86-nat.h".
8749 (x86bsd_target): Delete declaration.
8750 (x86bsd_nat_target): New class.
8751
8752 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8753 (the_aarch64_fbsd_nat_target): New.
8754 (aarch64_fbsd_fetch_inferior_registers)
8755 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8756 aarch64_fbsd_nat_target.
8757 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8758 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8759 (the_alpha_bsd_nat_target): New.
8760 (alphabsd_fetch_inferior_registers)
8761 (alphabsd_store_inferior_registers): Refactor as
8762 alpha_bsd_nat_target methods.
8763 (_initialize_alphabsd_nat): Refactor as methods of
8764 alpha_bsd_nat_target.
8765 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8766 (the_amd64_nbsd_nat_target): New.
8767 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8768 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8769 (the_amd64_obsd_nat_target): New.
8770 (_initialize_amd64obsd_nat): Adjust to C++ification.
8771 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8772 (the_arm_fbsd_nat_target): New.
8773 (arm_fbsd_fetch_inferior_registers)
8774 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8775 (_initialize_arm_fbsd_nat): Refactor as methods of
8776 arm_fbsd_nat_target.
8777 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8778 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8779 (the_arm_netbsd_nat_target): New.
8780 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8781 arm_netbsd_nat_target.
8782 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8783 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8784 (the_hppa_nbsd_nat_target): New.
8785 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8786 hppa_nbsd_nat_target methods.
8787 (_initialize_hppanbsd_nat): Adjust to C++ification.
8788 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8789 (the_hppa_obsd_nat_target): New.
8790 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8791 methods of hppa_obsd_nat_target.
8792 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8793 add_target.
8794 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8795 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8796 add_target.
8797 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8798 (_initialize_i386obsd_nat): Use add_target.
8799 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8800 (the_m68k_bsd_nat_target): New.
8801 (m68kbsd_fetch_inferior_registers)
8802 (m68kbsd_store_inferior_registers): Refactor as methods of
8803 m68k_bsd_nat_target.
8804 (_initialize_m68kbsd_nat): Adjust to C++ification.
8805 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8806 (the_mips_fbsd_nat_target): New.
8807 (mips_fbsd_fetch_inferior_registers)
8808 (mips_fbsd_store_inferior_registers): Refactor as methods of
8809 mips_fbsd_nat_target.
8810 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8811 add_target.
8812 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8813 (the_mips_nbsd_nat_target): New.
8814 (mipsnbsd_fetch_inferior_registers)
8815 (mipsnbsd_store_inferior_registers): Refactor as methods of
8816 mips_nbsd_nat_target.
8817 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8818 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8819 (the_mips64_obsd_nat_target): New.
8820 (mips64obsd_fetch_inferior_registers)
8821 (mips64obsd_store_inferior_registers): Refactor as methods of
8822 mips64_obsd_nat_target.
8823 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8824 add_target.
8825 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8826 nbsd_nat_target.
8827 * nbsd-nat.h: Include "inf-ptrace.h".
8828 (nbsd_nat_target): New class.
8829 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8830 (obsd_wait): Refactor as methods of obsd_nat_target.
8831 (obsd_add_target): Delete.
8832 * obsd-nat.h: Include "inf-ptrace.h".
8833 (obsd_nat_target): New class.
8834 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8835 (the_ppc_fbsd_nat_target): New.
8836 (ppcfbsd_fetch_inferior_registers)
8837 (ppcfbsd_store_inferior_registers): Refactor as methods of
8838 ppc_fbsd_nat_target.
8839 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8840 add_target.
8841 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8842 (the_ppc_nbsd_nat_target): New.
8843 (ppcnbsd_fetch_inferior_registers)
8844 (ppcnbsd_store_inferior_registers): Refactor as methods of
8845 ppc_nbsd_nat_target.
8846 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8847 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8848 (the_ppc_obsd_nat_target): New.
8849 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8850 methods of ppc_obsd_nat_target.
8851 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8852 add_target.
8853 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8854 (the_sh_nbsd_nat_target): New.
8855 (shnbsd_fetch_inferior_registers)
8856 (shnbsd_store_inferior_registers): Refactor as methods of
8857 sh_nbsd_nat_target.
8858 (_initialize_shnbsd_nat): Adjust to C++ification.
8859 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8860 (inf_ptrace_xfer_partial): Delete.
8861 (sparc_xfer_partial, sparc_target): Delete.
8862 * sparc-nat.h (sparc_fetch_inferior_registers)
8863 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8864 (sparc_target): Delete function declaration.
8865 (sparc_target): New template class.
8866 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8867 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8868 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8869 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8870 add_target.
8871 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8872 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8873 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8874 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8875 add_target.
8876 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8877 (the_vax_bsd_nat_target): New.
8878 (vaxbsd_fetch_inferior_registers)
8879 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8880 methods.
8881 (_initialize_vaxbsd_nat): Adjust to C++ification.
8882
8883 * bsd-kvm.c (bsd_kvm_target): New class.
8884 (bsd_kvm_ops): Now a bsd_kvm_target.
8885 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8886 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8887 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8888 bsd_kvm_target.
8889 (bsd_kvm_return_one): Delete.
8890 (bsd_kvm_add_target): Adjust to C++ification.
8891
8892 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8893 (nto_procfs_target_procfs): New classes.
8894 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8895 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8896 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8897 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8898 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8899 (procfs_remove_hw_breakpoint, procfs_resume)
8900 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8901 (procfs_kill_inferior, procfs_store_registers)
8902 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8903 as methods of nto_procfs_target.
8904 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8905 (nto_native_ops): Delete.
8906 (procfs_open, procfs_native_open): Delete.
8907 (nto_native_ops): Now an nto_procfs_target_native.
8908 (init_procfs_targets): Adjust to C++ification.
8909 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8910 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8911 Refactor as methods of nto_procfs_target.
8912
8913 * go32-nat.c (go32_nat_target): New class.
8914 (the_go32_nat_target): New.
8915 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8916 (go32_store_registers, go32_xfer_partial, go32_files_info)
8917 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8918 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8919 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8920 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8921 (go32_target): Delete.
8922 (_initialize_go32_nat): Adjust to C++ification.
8923
8924 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8925 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8926 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8927 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8928 gnu_nat_target.
8929 (gnu_target): Delete.
8930 * gnu-nat.h (gnu_target): Delete.
8931 (gnu_nat_target): New class.
8932 * i386-gnu-nat.c (gnu_base_target): New.
8933 (i386_gnu_nat_target): New class.
8934 (the_i386_gnu_nat_target): New.
8935 (_initialize_i386gnu_nat): Adjust to C++ification.
8936
8937 2018-05-02 Pedro Alves <palves@redhat.com>
8938
8939 * bfd-target.c (target_bfd_xclose): Rename to ...
8940 (target_bfd_close): ... this.
8941 (target_bfd_reopen): Adjust.
8942 * target.c (target_close): Remove references to to_xclose.
8943 * target.h (target_ops::to_xclose): Delete.
8944 (target_ops::to_close): Update comments.
8945
8946 2018-05-02 Pedro Alves <palves@redhat.com>
8947
8948 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8949 "linux-nat.h".
8950 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8951 * inf-ptrace.c (inf_ptrace_register_u_offset)
8952 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8953 (inf_ptrace_store_register, inf_ptrace_store_registers)
8954 (inf_ptrace_trad_target): Move to ...
8955 * linux-nat-trad.c: ... this new file.
8956 * linux-nat-trad.h: New file.
8957 * linux-nat.c (linux_target_install_ops): Make extern.
8958 (linux_trad_target): Delete.
8959 * linux-nat.h (linux_trad_target): Delete declaration.
8960 (linux_target_install_ops): Declare.
8961 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8962 "linux-nat.h".
8963
8964 2018-05-02 Pedro Alves <palves@redhat.com>
8965
8966 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8967 procfs_target/add_target here.
8968 * procfs.c (procfs_target): Make static.
8969 (_initialize_procfs): Call add_target here.
8970 * procfs.h (struct target_ops): Remove forward declaration.
8971 (procfs_target): Remove declaration.
8972 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8973
8974 2018-05-02 Pedro Alves <palves@redhat.com>
8975
8976 * procfs.c (procfs_stopped_by_watchpoint)
8977 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8978 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8979 Forward declare.
8980 (procfs_use_watchpoints): Delete, move contents...
8981 (procfs_target): ... here.
8982 * procfs.h (procfs_use_watchpoints): Delete declaration.
8983 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8984 procfs_use_watchpoints.
8985 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8986 procfs_use_watchpoints.
8987
8988 2018-05-02 Tom Tromey <tom@tromey.com>
8989
8990 PR python/20084:
8991 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8992 and var_zuinteger_unlimited.
8993 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8994 and PARAM_ZUINTEGER_UNLIMITED.
8995 (set_parameter_value): Handle var_zuinteger and
8996 var_zuinteger_unlimited.
8997 (add_setshow_generic): Likewise.
8998 (parmpy_init): Likewise.
8999
9000 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9001
9002 PR rust/23124
9003 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9004 pointer is not null before dereferencing it.
9005
9006 2018-04-30 Tom Tromey <tom@tromey.com>
9007
9008 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9009 is_mi_like_p.
9010
9011 2018-04-30 Tom Tromey <tom@tromey.com>
9012
9013 * breakpoint.c (mention): Remove use of is_mi_like_p.
9014 (print_mention_ranged_breakpoint): Likewise.
9015 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9016 of is_mi_like_p.
9017
9018 2018-04-30 Tom Tromey <tom@tromey.com>
9019
9020 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9021
9022 2018-04-30 Tom Tromey <tom@tromey.com>
9023
9024 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9025 (info_spu_event_command): Remove some uses of is_mi_like_p.
9026
9027 2018-04-30 Tom Tromey <tom@tromey.com>
9028
9029 * python/py-framefilter.c (py_print_single_arg)
9030 (enumerate_locals, py_print_args, py_print_frame): Remove some
9031 uses of is_mi_like_p.
9032
9033 2018-04-30 Tom Tromey <tom@tromey.com>
9034
9035 * ui-out.c: Update.
9036 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9037 * ui-out.h (ui_out::is_mi_like_p): Now const.
9038 (ui_out::do_is_mi_like_p): Now const.
9039 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9040
9041 2018-04-30 Tom Tromey <tom@tromey.com>
9042
9043 * varobj.c (varobj_set_visualizer): Use new_reference.
9044 * python/python.c (gdbpy_decode_line): Use new_reference.
9045 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9046 new_reference.
9047
9048 2018-04-30 Tom Tromey <tom@tromey.com>
9049
9050 * varobj.c (install_new_value): Use new_reference.
9051 * value.h (value_incref): Return void. Swap intro comment with
9052 value_decref.
9053 * value.c (set_value_parent): Use new_reference.
9054 (value_incref): Return void. Update intro comment.
9055 (release_value): Use new_reference.
9056 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9057
9058 2018-04-30 Tom Tromey <tom@tromey.com>
9059
9060 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9061 * gdb_bfd.h (new_bfd_ref): Remove.
9062 (gdb_bfd_open): Update comment.
9063 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9064 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9065 (gdb_bfd_fdopenr): Use new_reference.
9066 * exec.c (exec_file_attach): Use new_reference.
9067
9068 2018-04-30 Tom Tromey <tom@tromey.com>
9069
9070 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9071 method.
9072
9073 2018-04-30 Tom Tromey <tom@tromey.com>
9074
9075 * jit.c (jit_read_code_entry): Use type_align.
9076 * i386-tdep.c (i386_gdbarch_init): Don't call
9077 set_gdbarch_long_long_align_bit.
9078 * gdbarch.sh: Remove long_long_align_bit.
9079 * gdbarch.c, gdbarch.h: Rebuild.
9080 * arc-tdep.c (arc_type_align): New function.
9081 (arc_gdbarch_init): Use arc_type_align. Don't call
9082 set_gdbarch_long_long_align_bit.
9083
9084 2018-04-30 Tom Tromey <tom@tromey.com>
9085
9086 * rust-lang.c (rust_type_alignment): Remove.
9087 (rust_composite_type): Use type_align.
9088
9089 2018-04-30 Tom Tromey <tom@tromey.com>
9090
9091 * NEWS: Mention Type.align.
9092 * python/py-type.c (typy_get_alignof): New function.
9093 (type_object_getset): Add "alignof".
9094
9095 2018-04-30 Tom Tromey <tom@tromey.com>
9096
9097 PR exp/17095:
9098 * NEWS: Update.
9099 * std-operator.def (UNOP_ALIGNOF): New operator.
9100 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9101 New.
9102 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9103 * c-lang.c (c_op_print_tab): Add alignof.
9104 * c-exp.y (ALIGNOF): New token.
9105 (exp): Add "ALIGNOF" production.
9106 (ident_tokens): Add _Alignof and alignof.
9107
9108 2018-04-30 Tom Tromey <tom@tromey.com>
9109
9110 * i386-tdep.c (i386_type_align): New function.
9111 (i386_gdbarch_init): Update.
9112 * gdbarch.sh (type_align): New method.
9113 * gdbarch.c, gdbarch.h: Rebuild.
9114 * arch-utils.h (default_type_align): Declare.
9115 * arch-utils.c (default_type_align): New function.
9116 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9117 (struct type) <align_log2>: New field.
9118 <instance_flags>: Now a bitfield.
9119 (TYPE_RAW_ALIGN): New macro.
9120 (type_align, type_raw_align, set_type_align): Declare.
9121 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9122 functions.
9123 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9124 (get_alignment, maybe_set_alignment): New functions.
9125 (read_structure_type, read_enumeration_type, read_array_type)
9126 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9127 (read_subrange_type, read_base_type): Set type alignment.
9128
9129 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9130
9131 * dwarf2read.c (read_index_from_section): Use bool.
9132
9133 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9134
9135 PR gdb/22950
9136 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9137 with #ifdef.
9138
9139 2018-04-29 John Reiser <jreiser@BitWagon.com>
9140
9141 PR build/22873
9142 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9143 last step, and do it atomically.
9144
9145 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9146
9147 * compile/compile-c-types.c (convert_int, convert_float):
9148 Update for C FE v1.
9149
9150 2018-04-27 Tom Tromey <tom@tromey.com>
9151
9152 PR rust/22545:
9153 * rust-lang.c (rust_inclusive_range_type_p): New function.
9154 (rust_range): Handle inclusive ranges.
9155 (rust_compute_range): Likewise.
9156 * rust-exp.y (struct rust_op) <inclusive>: New field.
9157 (DOTDOTEQ): New constant.
9158 (range_expr): Add "..=" productions.
9159 (operator_tokens): Add "..=" token.
9160 (ast_range): Add "inclusive" parameter.
9161 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9162 ranges.
9163 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9164 bounds values.
9165 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9166 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9167 Update comments.
9168 * expprint.c (print_subexp_standard): Handle new bounds values.
9169 (dump_subexp_body_standard): Likewise.
9170
9171 2018-04-27 Tom Tromey <tom@tromey.com>
9172
9173 * configure: Rebuild.
9174 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9175 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9176 "OVERRIDE".
9177 (class symbol_needs_eval_context): Likewise.
9178 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9179 (mock_mapped_index::symbol_name_at): Use "override". Remove
9180 "virtual".
9181 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9182 "override".
9183 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9184 * aarch64-tdep.c (instruction_reader::read): Use "override".
9185 (instruction_reader_test::read): Likewise.
9186 * arm-tdep.c (instruction_reader::read): Use "override".
9187 (instruction_reader_thumb::read): Likewise.
9188
9189 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9190
9191 PR remote/9665
9192 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9193 instead of remote_send.
9194 (remote_send): Remove.
9195
9196 2018-04-26 Pedro Alves <palves@redhat.com>
9197
9198 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9199 find_function_start_sal instead of find_pc_line.
9200
9201 2018-04-26 Pedro Alves <palves@redhat.com>
9202
9203 * breakpoint.c (set_breakpoint_location_function): Handle
9204 mst_data_gnu_ifunc.
9205 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9206 * elfread.c (elf_symtab_read): Give data symbols with
9207 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9208 (elf_rel_plt_read): Update comment.
9209 * linespec.c (convert_linespec_to_sals): Handle
9210 mst_data_gnu_ifunc.
9211 (minsym_found): Handle mst_data_gnu_ifunc.
9212 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9213 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9214 * parse.c (find_minsym_type_and_address): Handle
9215 mst_data_gnu_ifunc.
9216 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9217 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9218 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9219 comment.
9220 <mst_data_gnu_ifunc>: New enumerator.
9221
9222 2018-04-26 Pedro Alves <palves@redhat.com>
9223
9224 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9225 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9226 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9227 Handle it.
9228 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9229 (lookup_minimal_symbol_by_pc): Adjust.
9230 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9231 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9232 * minsyms.h (lookup_msym_prefer): New enum.
9233 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9234 parameter by a lookup_msym_prefer parameter.
9235
9236 2018-04-26 Pedro Alves <palves@redhat.com>
9237
9238 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9239 ends in "@plt" instead of looking at the symbol's section.
9240
9241 2018-04-26 Pedro Alves <palves@redhat.com>
9242
9243 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9244 all references.
9245 (find_pc_partial_function_gnu_ifunc): Rename to ...
9246 (find_pc_partial_function): ... this, and remove references to
9247 'is_gnu_ifunc_p'.
9248 (find_pc_partial_function): Delete old implementation.
9249 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9250
9251 2018-04-26 Pedro Alves <palves@redhat.com>
9252
9253 * linespec.c (struct bound_minimal_symbol_search_key): New.
9254 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9255 skip first line if we found a GNU ifunc minimal symbol by name.
9256 (compare_msymbols): Change parameters to work with a destructured
9257 lhs minsym.
9258 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9259 functions.
9260
9261 2018-04-26 Pedro Alves <palves@redhat.com>
9262
9263 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9264 ifunc targets here. Instead, if we have an ifunc minsym, use its
9265 address/name.
9266 (add_location_to_breakpoint): Store the minsym and the objfile in
9267 the breakpoint location.
9268 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9269 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9270 Record the minsym in the sal.
9271 * symtab.h (symtab_and_line) <msymbol>: New field.
9272
9273 2018-04-26 Pedro Alves <palves@redhat.com>
9274
9275 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9276 unless we actually resolved the ifunc.
9277
9278 2018-04-26 Pedro Alves <palves@redhat.com>
9279
9280 * c-exp.y (variable production): Prefer ifunc minsyms over
9281 regular function symbols.
9282 * symtab.c (find_gnu_ifunc): New function.
9283 * minsyms.h (lookup_msym_prefer): New enum.
9284 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9285 parameter by a lookup_msym_prefer parameter.
9286 * symtab.h (find_gnu_ifunc): New declaration.
9287
9288 2018-04-26 Pedro Alves <palves@redhat.com>
9289
9290 * blockframe.c (find_gnu_ifunc_target_type): New function.
9291 (find_function_type): New.
9292 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9293 return a value with a memory address.
9294 (eval_call): For calls to GNU ifunc functions, try to find the
9295 type of the target function from the type that the resolver
9296 returns.
9297 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9298 symbols.
9299 * infcall.c (find_function_return_type): Delete.
9300 (find_function_addr): Add 'function_type' parameter. For calls to
9301 GNU ifunc functions, try to find the type of the target function
9302 from the type that the resolver returns, and return it via
9303 FUNCTION_TYPE.
9304 (call_function_by_hand_dummy): Adjust to use the function type
9305 returned by find_function_addr.
9306 (find_function_addr): Add 'function_type' parameter and move
9307 description here.
9308 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9309 declarations.
9310
9311 2018-04-26 Pedro Alves <palves@redhat.com>
9312
9313 * c-exp.y (variable production): Skip finding an alias for ifunc
9314 symbols.
9315
9316 2018-04-26 Pedro Alves <palves@redhat.com>
9317
9318 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9319
9320 2018-04-25 Pedro Alves <palves@redhat.com>
9321
9322 * infcmd.c (kill_command): Print the pid as string, not the whole
9323 thread's ptid. Add comment. s/has been killed/killed/ in output
9324 message.
9325 * remote.c (remote_detach_1): Print the pid as string, not the
9326 whole thread's ptid.
9327
9328 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9329 Sergio Durigan Junior <sergiodj@redhat.com>
9330 Pedro Alves <palves@redhat.com>
9331
9332 * infcmd.c (kill_command): Print message when inferior has
9333 been killed.
9334 * inferior.c (print_inferior_events): Remove 'static'. Set as
9335 '1'.
9336 (add_inferior): Improve message printed when
9337 'print_inferior_events' is on.
9338 (exit_inferior): Remove message printed when
9339 'print_inferior_events' is on.
9340 (detach_inferior): Improve message printed when
9341 'print_inferior_events' is on.
9342 (initialize_inferiors): Use 'add_inferior_silent' to set
9343 'current_inferior_'.
9344 * inferior.h (print_inferior_events): Declare here as
9345 'extern'.
9346 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9347 '[Detaching...]' messages when 'print_inferior_events' is on.
9348 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9349 as prefix/suffix for messages. Remove periods. Fix erroneous
9350 'Detaching after fork from child...', replace it by '... from
9351 parent...'.
9352 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9353 prefix/suffix when printing 'Detaching...' messages. Print
9354 them when 'print_inferior_events' is on.
9355 * remote.c (remote_detach_1): Print message when detaching
9356 from inferior and '!is_fork_parent'.
9357
9358 2018-04-24 Tom Tromey <tom@tromey.com>
9359
9360 * cli-out.h: Reindent.
9361
9362 2018-04-24 Tom Tromey <tom@tromey.com>
9363
9364 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9365 (cli_ui_out::do_field_string): Use fputs_filtered.
9366 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9367
9368 2018-04-23 Tom Tromey <tom@tromey.com>
9369
9370 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9371 gdb::unique_xmalloc_ptr.
9372
9373 2018-04-23 Tom Tromey <tom@tromey.com>
9374
9375 * configure: Rebuild.
9376
9377 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9378
9379 PR gdb/23095
9380 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9381 prepare_for_testing. Set normal_bp to r_debug_state if target
9382 is bsd.
9383
9384 2018-04-21 Pedro Alves <palves@redhat.com>
9385 Rajendra SY <rajendra.sy@gmail.com>
9386
9387 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9388 * remote.c (extended_remote_attach): In all-stop mode, mark the
9389 thread as executing.
9390
9391 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9392
9393 * thread.c (thread_apply_all_command): Fix comment.
9394 (thread_command): Fix comment.
9395
9396 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9397
9398 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9399 parameter.
9400 * features/aarch64-core.c (create_feature_aarch64_core):
9401 Regenerate.
9402 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9403 Likewise.
9404 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9405 Likewise.
9406 * features/i386/32bit-avx512.c
9407 (create_feature_i386_32bit_avx512): Likewise.
9408 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9409 Likewise.
9410 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9411 Likewise.
9412 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9413 Likewise.
9414 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9415 Likewise.
9416 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9417 Likewise.
9418 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9419 Likewise.
9420 * features/i386/64bit-avx512.c
9421 (create_feature_i386_64bit_avx512): Likewise.
9422 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9423 Likewise.
9424 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9425 Likewise.
9426 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9427 Likewise.
9428 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9429 Likewise.
9430 * features/i386/64bit-segments.c
9431 (create_feature_i386_64bit_segments): Likewise.
9432 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9433 Likewise.
9434 * features/i386/x32-core.c
9435 (create_feature_i386_x32_core): Likewise.
9436 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9437 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9438 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9439 * target-descriptions.c: In generated code, don't pass xml
9440 filename.
9441
9442 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9443
9444 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9445 (print_xml_feature::visit_post): Likewise.
9446 (print_xml_feature::visit): Likewise.
9447 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9448 (print_xml_feature): Add new class.
9449 * regformats/regdat.sh: Null xmltarget on feature targets.
9450 * target-descriptions.c (struct target_desc): Add xmltarget.
9451 (maintenance_check_tdesc_xml_convert): Add unittest function.
9452 (tdesc_get_features_xml): Add function to get xml.
9453 (maintenance_check_xml_descriptions): Test xml generation.
9454 * xml-tdesc.c (string_read_description_xml): Add function.
9455 * xml-tdesc.h (string_read_description_xml): Add declaration.
9456
9457 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9458
9459 * features/Makefile: Add feature marker to targets with new style
9460 target descriptions.
9461 * regformats/aarch64.dat: Regenerate.
9462 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9463 * regformats/i386/amd64-avx-linux.dat: Likewise.
9464 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9465 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9466 * regformats/i386/amd64-linux.dat: Likewise.
9467 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9468 * regformats/i386/amd64.dat: Likewise.
9469 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9470 * regformats/i386/i386-avx-linux.dat: Likewise.
9471 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9472 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9473 * regformats/i386/i386-linux.dat: Likewise.
9474 * regformats/i386/i386-mmx-linux.dat: Likewise.
9475 * regformats/i386/i386-mpx-linux.dat: Likewise.
9476 * regformats/i386/i386.dat: Likewise.
9477 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9478 * regformats/i386/x32-avx-linux.dat: Likewise.
9479 * regformats/i386/x32-linux.dat: Likewise.
9480 * regformats/tic6x-c62x-linux.dat: Likewise.
9481 * regformats/tic6x-c64x-linux.dat: Likewise.
9482 * regformats/tic6x-c64xp-linux.dat: Likewise.
9483 * regformats/regdat.sh: Parse feature marker.
9484
9485 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9486
9487 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9488 (tdesc_osabi_name): Likewise.
9489 * target-descriptions.c (tdesc_architecture_name): Add new
9490 function.
9491 (tdesc_osabi_name): Likewise.
9492
9493 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9494
9495 * common/tdesc.c (tdesc_predefined_type): Move to here.
9496 (tdesc_named_type): Likewise.
9497 (tdesc_create_vector): Likewise.
9498 (tdesc_create_struct): Likewise.
9499 (tdesc_set_struct_size): Likewise.
9500 (tdesc_create_union): Likewise.
9501 (tdesc_create_flags): Likewise.
9502 (tdesc_create_enum): Likewise.
9503 (tdesc_add_field): Likewise.
9504 (tdesc_add_typed_bitfield): Likewise.
9505 (tdesc_add_bitfield): Likewise.
9506 (tdesc_add_flag): Likewise.
9507 (tdesc_add_enum_value): Likewise.
9508 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9509 (struct tdesc_type_vector): Likewise.
9510 (struct tdesc_type_field): Likewise.
9511 (struct tdesc_type_with_fields): Likewise.
9512 (tdesc_create_enum): Add declaration.
9513 (tdesc_add_typed_bitfield): Likewise.
9514 (tdesc_add_enum_value): Likewise.
9515 * target-descriptions.c (tdesc_type_field): Move from here.
9516 (tdesc_type_builtin): Likewise.
9517 (tdesc_type_vector): Likewise.
9518 (tdesc_type_with_fields): Likewise.
9519 (tdesc_predefined_types): Likewise.
9520 (tdesc_named_type): Likewise.
9521 (tdesc_create_vector): Likewise.
9522 (tdesc_create_struct): Likewise.
9523 (tdesc_set_struct_size): Likewise.
9524 (tdesc_create_union): Likewise.
9525 (tdesc_create_flags): Likewise.
9526 (tdesc_create_enum): Likewise.
9527 (tdesc_add_field): Likewise.
9528 (tdesc_add_typed_bitfield): Likewise.
9529 (tdesc_add_bitfield): Likewise.
9530 (tdesc_add_flag): Likewise.
9531 (tdesc_add_enum_value): Likewise.
9532 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9533 (tdesc_add_typed_bitfield): Likewise.
9534 (tdesc_add_enum_value): Likewise.
9535
9536 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9537
9538 * common/tdesc.c (tdesc_feature::accept): Move to here.
9539 (tdesc_feature::operator==): Likewise.
9540 (tdesc_create_reg): Likewise.
9541 * common/tdesc.h (tdesc_type_kind): Likewise.
9542 (struct tdesc_type): Likewise.
9543 (struct tdesc_feature): Likewise.
9544 * regformats/regdat.sh: Create a feature.
9545 * target-descriptions.c (tdesc_type_kind): Move from here.
9546 (tdesc_type): Likewise.
9547 (tdesc_type_up): Likewise.
9548 (tdesc_feature): Likewise.
9549 (tdesc_create_reg): Likewise.
9550
9551 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9552
9553 * Makefile.in: Add arch/tdesc.c
9554 * common/tdesc.c: New file.
9555 * common/tdesc.h (tdesc_element_visitor): Move to here.
9556 (tdesc_element): Likewise.
9557 (tdesc_reg): Likewise.
9558 (tdesc_reg_up): Likewise.
9559 * regformats/regdef.h (reg): Add offset to constructors.
9560 * target-descriptions.c (tdesc_element_visitor): Move from here.
9561 (tdesc_element): Likewise.
9562 (tdesc_reg): Likewise.
9563 (tdesc_reg_up): Likewise.
9564
9565 2018-04-17 Tom Tromey <tom@tromey.com>
9566
9567 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9568 discriminant field.
9569
9570 2018-04-17 Tom Tromey <tom@tromey.com>
9571
9572 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9573
9574 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9575
9576 * symtab.c (print_symbol_info): Skip printing filename and line
9577 number when `last' is NULL.
9578 (symtab_symbol_info): Use empty string instead of NULL for first
9579 invocation of print_symbol_info.
9580 (rbreak_command): Pass NULL to `last' parameter of
9581 print_symbol_info.
9582
9583 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9584
9585 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9586 instead of nullptr.
9587
9588 2018-04-16 Pedro Alves <palves@redhat.com>
9589
9590 * MAINTAINERS (sh): Remove.
9591 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9592 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9593 (ALLDEPFILES): Remove sh64-tdep.c.
9594 * NEWS: Mentions that support for SH-5/SH64 is removed.
9595 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9596 (sh*-*-openbsd*): Ditto.
9597 (sh64-*-elf*): Remove.
9598 (sh*): Remove.
9599 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9600 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9601 * sh-tdep.c: No longer include "sh64-tdep.h".
9602 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9603 * sh64-tdep.c, sh64-tdep.h: Remove files.
9604
9605 2018-04-16 Pedro Alves <palves@redhat.com>
9606
9607 * MAINTAINERS: Remove m88k.
9608 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9609 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9610 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9611 * NEWS: Mention that support for m88k was removed.
9612 * configure.host (m88*-*-*): Remove support.
9613 * configure.nat (m88k-*-*): Remove support.
9614 * configure.tgt (m88*-*-openbsd*): Remove.
9615 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9616
9617 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9618
9619 * configure.tgt (x86_tobjs): New variable.
9620 (amd64_tobjs, i386_tobjs): Use it.
9621
9622 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9623
9624 * symtab.c (print_symbol_info): Precede the symbol definition by
9625 the line number when available.
9626 * NEWS: Advertise this enhancement.
9627
9628 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9629
9630 * NEWS (New options): announce set/show record btrace cpu.
9631 * btrace.c: Include record-btrace.h.
9632 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9633 the vendor is unknown.
9634 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9635 Maybe overwrite the btrace configuration's cpu.
9636 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9637 (btrace_fetch): Add cpu parameter. Update callers.
9638 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9639 Maybe overwrite the btrace configuration's cpu. Skip enabling
9640 errata workarounds if the vendor is unknown.
9641 * python/py-record-btrace.c: Include record-btrace.h.
9642 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9643 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9644 * record-btrace.c (record_btrace_cpu_state_kind): New.
9645 (record_btrace_cpu): New.
9646 (set_record_btrace_cpu_cmdlist): New.
9647 (record_btrace_get_cpu): New.
9648 (require_btrace_thread, record_btrace_info)
9649 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9650 (cmd_set_record_btrace_cpu_none): New.
9651 (cmd_set_record_btrace_cpu_auto): New.
9652 (cmd_set_record_btrace_cpu): New.
9653 (cmd_show_record_btrace_cpu): New.
9654 (_initialize_record_btrace): Initialize set/show record btrace cpu
9655 commands.
9656 * record-btrace.h (record_btrace_get_cpu): New.
9657
9658 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9659
9660 * record.c (set_record_command): Fix typo in message.
9661
9662 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9663
9664 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9665
9666 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9667
9668 * infrun.c (process_event_stop_test): Call
9669 gdbarch_in_indirect_branch_thunk.
9670 * gdbarch.sh (in_indirect_branch_thunk): New.
9671 * gdbarch.c: Regenerated.
9672 * gdbarch.h: Regenerated.
9673 * x86-tdep.h: New.
9674 * x86-tdep.c: New.
9675 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9676 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9677 (ALLDEPFILES): Add x86-tdep.c.
9678 * arch-utils.h (default_in_indirect_branch_thunk): New.
9679 * arch-utils.c (default_in_indirect_branch_thunk): New.
9680 * i386-tdep: Include x86-tdep.h.
9681 (i386_in_indirect_branch_thunk): New.
9682 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9683 function.
9684 * amd64-tdep: Include x86-tdep.h.
9685 (amd64_in_indirect_branch_thunk): New.
9686 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9687
9688 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9689
9690 PR gdb/23053
9691 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9692 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9693 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9694 regression.
9695
9696 2018-04-12 Tom Tromey <tom@tromey.com>
9697
9698 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9699 (rust_evaluate_subexp): Likewise.
9700
9701 2018-04-12 Pedro Alves <palves@redhat.com>
9702
9703 * procfs.c (procfs_detach): Make forward declaration's prototype
9704 match definition's protototype.
9705 (proc_get_LDT_entry): Remove stale do_cleanups call.
9706
9707 2018-04-12 Pedro Alves <palves@redhat.com>
9708
9709 * target.h (target_ops::to_has_exited): Delete.
9710 (target_has_exited): Delete.
9711 * target-delegates.c: Regenerate.
9712
9713 2018-04-11 Pedro Alves <palves@redhat.com>
9714
9715 * target.c (fileio_fh_t::t): Add comment.
9716 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9717 (target_fileio_close): Handle a NULL target.
9718 (invalidate_fileio_fh): New.
9719 (target_close): Call it.
9720 * remote.c (remote_hostio_send_command): No longer check whether
9721 remote_desc is open.
9722
9723 2018-04-11 Pedro Alves <palves@redhat.com>
9724
9725 * target.c (fileio_fh_t): Make it a named struct instead of a
9726 typedef.
9727 (fileio_fh_t::is_closed): New method.
9728 (DEF_VEC_O (fileio_fh_t)): Remove.
9729 (fileio_fhandles): Now a std::vector.
9730 (is_closed_fileio_fh): Delete.
9731 (acquire_fileio_fd): Adjust. Rename parameters.
9732 (release_fileio_fd): Adjust.
9733 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9734 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9735 (target_fileio_close): Adjust.
9736
9737 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9738
9739 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9740 index.
9741
9742 2018-04-10 Pedro Alves <palves@redhat.com>
9743
9744 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9745 (scoped_finish_thread_state): New class.
9746 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9747 cleanup.
9748 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9749 (fetch_inferior_event, normal_stop): Likewise.
9750 * thread.c (finish_thread_state_cleanup): Delete.
9751
9752 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9753 Pedro Alves <palves@redhat.com>
9754
9755 * value.c: Include "selftest.h" and "common/array-view.h".
9756 (struct range) <operator ==>: New.
9757 (test_ranges_contain): New.
9758 (check_ranges_vector): New.
9759 (test_insert_into_bit_range_vector): New.
9760 (_initialize_values): Register selftests.
9761 * common/array-view.h (operator==, operator!=): New.
9762
9763 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9764
9765 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9766 an iterator.
9767 * inline-frame.c: Include <algorithm>.
9768 (struct inline_state): Add constructor.
9769 (inline_state_s): Remove.
9770 (DEF_VEC_O(inline_state_s)): Remove.
9771 (inline_states): Change type to std::vector.
9772 (find_inline_frame_state): Adjust to std::vector.
9773 (allocate_inline_frame_state): Remove.
9774 (clear_inline_frame_state): Adjust to std::vector.
9775 (skip_inline_frames): Adjust to std::vector.
9776
9777 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9778
9779 * tracepoint.h (struct trace_state_variable): Add constructor.
9780 <name>: Change type to std::string.
9781 * tracepoint.c (tsv_s): Remove.
9782 (DEF_VEC_O(tsv_s)): Remove.
9783 (tvariables): Change to std::vector.
9784 (create_trace_state_variable): Adjust to std::vector.
9785 (find_trace_state_variable): Likewise.
9786 (find_trace_state_variable_by_number): Likewise.
9787 (delete_trace_state_variable): Likewise.
9788 (trace_variable_command): Adjust to std::string.
9789 (delete_trace_variable_command): Likewise.
9790 (tvariables_info_1): Adjust to std::vector.
9791 (save_trace_state_variables): Likewise.
9792 (start_tracing): Likewise.
9793 (merge_uploaded_trace_state_variables): Adjust to std::vector
9794 and std::string.
9795 * target.h (struct target_ops)
9796 <to_download_trace_state_variable>: Pass reference to
9797 trace_state_variable.
9798 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9799 * target-delegates.c: Re-generate.
9800 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9801 (mi_tsv_deleted): Likewise.
9802 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9803 * remote.c (remote_download_trace_state_variable): Change
9804 pointer to reference and adjust.
9805 * make-target-delegates (parse_argtypes): Handle references.
9806 (write_function_header): Likewise.
9807 (munge_type): Likewise.
9808
9809 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9810
9811 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9812 string_view-selftests.c.
9813 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9814 testsuite.
9815 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9816 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9817 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9818 * unittests/basic_string_view/element_access/char/1.cc:
9819 Likewise.
9820 * unittests/basic_string_view/element_access/char/empty.cc:
9821 Likewise.
9822 * unittests/basic_string_view/element_access/char/front_back.cc:
9823 Likewise.
9824 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9825 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9826 Likewise.
9827 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9828 Likewise.
9829 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9830 Likewise.
9831 * unittests/basic_string_view/operations/compare/char/1.cc:
9832 Likewise.
9833 * unittests/basic_string_view/operations/compare/char/13650.cc:
9834 Likewise.
9835 * unittests/basic_string_view/operations/copy/char/1.cc:
9836 Likewise.
9837 * unittests/basic_string_view/operations/data/char/1.cc:
9838 Likewise.
9839 * unittests/basic_string_view/operations/find/char/1.cc:
9840 Likewise.
9841 * unittests/basic_string_view/operations/find/char/2.cc:
9842 Likewise.
9843 * unittests/basic_string_view/operations/find/char/3.cc:
9844 Likewise.
9845 * unittests/basic_string_view/operations/find/char/4.cc:
9846 Likewise.
9847 * unittests/basic_string_view/operations/rfind/char/1.cc:
9848 Likewise.
9849 * unittests/basic_string_view/operations/rfind/char/2.cc:
9850 Likewise.
9851 * unittests/basic_string_view/operations/rfind/char/3.cc:
9852 Likewise.
9853 * unittests/basic_string_view/operations/substr/char/1.cc:
9854 Likewise.
9855 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9856 * unittests/string_view-selftests.c: New file.
9857
9858 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9859
9860 * unittests/basic_string_view/capacity/1.cc: New file.
9861 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9862 * unittests/basic_string_view/cons/char/1.cc: New file.
9863 * unittests/basic_string_view/cons/char/2.cc: New file.
9864 * unittests/basic_string_view/cons/char/3.cc: New file.
9865 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9866 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9867 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9868 * unittests/basic_string_view/element_access/char/1.cc: New file.
9869 * unittests/basic_string_view/element_access/char/2.cc: New file.
9870 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9871 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9872 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9873 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9874 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9875 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9876 * unittests/basic_string_view/include.cc: New file.
9877 * unittests/basic_string_view/inserters/char/1.cc: New file.
9878 * unittests/basic_string_view/inserters/char/2.cc: New file.
9879 * unittests/basic_string_view/inserters/char/3.cc: New file.
9880 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9881 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9882 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9883 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9884 * unittests/basic_string_view/literals/types.cc: New file.
9885 * unittests/basic_string_view/literals/values.cc: New file.
9886 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9887 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9888 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9889 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9890 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9891 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9892 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9893 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9894 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9895 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9896 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9897 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9898 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9899 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9900 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9901 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9902 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9903 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9904 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9905 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9906 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9907 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9908 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9909 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9910 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9911 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9912 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9913 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9914 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9915 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9916 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9917 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9918 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9919 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9920 * unittests/basic_string_view/operators/char/2.cc: New file.
9921 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9922 * unittests/basic_string_view/range_access/char/1.cc: New file.
9923 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9924 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9925 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9926 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9927 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9928 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9929 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9930 * unittests/basic_string_view/typedefs.cc: New file.
9931 * unittests/basic_string_view/types/1.cc: New file.
9932
9933 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9934
9935 * common/gdb_string_view.h: Remove libstdc++ implementation
9936 details, adjust to gdb reality.
9937 * common/gdb_string_view.tcc: Likewise.
9938 * cli/cli-script.c (struct string_view): Remove.
9939 (user_args) <m_args>: Change element type to gdb::string_view.
9940 (user_args::insert_args): Adjust.
9941
9942 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9943
9944 * common/gdb_string_view.h: New file.
9945 * common/gdb_string_view.tcc: New file.
9946
9947 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9948
9949 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9950 * configure: Re-generate.
9951
9952 2018-04-09 Pedro Alves <palves@redhat.com>
9953
9954 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9955 (set_target_gdbarch): Call
9956 gdb::observers::architecture_changed.notify instead of
9957 observer_notify_architecture_changed.
9958
9959 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9960
9961 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9962 (do_restore_current_traceframe_cleanup): Remove.
9963 (restore_current_traceframe_cleanup_dtor): Remove.
9964 (make_cleanup_restore_current_traceframe): Remove.
9965 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9966 New.
9967 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9968 * infrun.c (fetch_inferior_event): Use
9969 scoped_restore_current_traceframe.
9970
9971 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9972
9973 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9974 Remove.
9975 <n_allocated_type_units>: Remove.
9976 <all_type_units>: Change to std::vector.
9977 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9978 to std::vector change.
9979 (dwarf2_per_objfile::get_cutu): Likewise.
9980 (dwarf2_per_objfile::get_tu): Likewise.
9981 (create_signatured_type_table_from_index): Likewise.
9982 (create_signatured_type_table_from_debug_names): Likewise.
9983 (dw2_symtab_iter_next): Likewise.
9984 (dw2_print_stats): Likewise.
9985 (dw2_expand_all_symtabs): Likewise.
9986 (dw2_expand_marked_cus): Likewise.
9987 (dw2_debug_names_iterator::next): Likewise.
9988 (dwarf2_initialize_objfile): Likewise.
9989 (add_signatured_type_cu_to_table): Likewise.
9990 (create_all_type_units): Likewise.
9991 (add_type_unit): Likewise.
9992 (struct tu_abbrev_offset): Add constructor.
9993 (build_type_psymtabs_1): Adjust to std::vector change.
9994 (print_tu_stats): Likewise.
9995 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9996 (write_debug_names): Likewise.
9997
9998 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9999
10000 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10001 Make an std::vector.
10002 <n_comp_units>: Remove.
10003 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10004 to std::vector change.
10005 (dwarf2_per_objfile::get_cutu): Likewise.
10006 (dwarf2_per_objfile::get_cu): Likewise.
10007 (create_cus_from_index): Likewise.
10008 (create_addrmap_from_index): Likewise.
10009 (create_addrmap_from_aranges): Likewise.
10010 (dwarf2_read_index): Likewise.
10011 (dw2_find_last_source_symtab): Likewise.
10012 (dw2_map_symtabs_matching_filename): Likewise.
10013 (dw2_symtab_iter_next): Likewise.
10014 (dw2_print_stats): Likewise.
10015 (dw2_expand_all_symtabs): Likewise.
10016 (dw2_expand_symtabs_with_fullname): Likewise.
10017 (dw2_expand_marked_cus): Likewise.
10018 (dw2_map_symbol_filenames): Likewise.
10019 (create_cus_from_debug_names): Likewise.
10020 (dwarf2_read_debug_names): Likewise.
10021 (dw2_debug_names_iterator::next): Likewise.
10022 (dwarf2_initialize_objfile): Likewise.
10023 (set_partial_user): Likewise.
10024 (dwarf2_build_psymtabs_hard): Likewise.
10025 (read_comp_units_from_section): Remove arguments, adjust to
10026 std::vector change.
10027 (create_all_comp_units): Adjust to std::vector and
10028 read_comp_units_from_section changes.
10029 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10030 change.
10031 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10032 (psyms_seen_size): Likewise.
10033 (write_gdbindex): Likewise.
10034 (write_debug_names): Likewise.
10035
10036 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10037
10038 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10039 with dwarf2_per_objfile.
10040 (create_cus_from_index): Likewise.
10041 (create_signatured_type_table_from_index): Likewise.
10042 (dwarf2_read_index): Likewise.
10043 (dwarf2_initialize_objfile): Likewise.
10044 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10045 per_cu rather than get_dwarf2_per_objfile.
10046
10047 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10048
10049 * dwarf2read.h (struct signatured_type): Forward declare.
10050 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10051 New methods.
10052 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10053 (dw2_get_cutu): ...this.
10054 (dwarf2_per_objfile::get_cu): Rename from...
10055 (dw2_get_cu): ...this.
10056 (dwarf2_per_objfile::get_tu): New.
10057 (create_addrmap_from_index): Adjust.
10058 (create_addrmap_from_aranges): Adjust.
10059 (dw2_find_last_source_symtab): Adjust.
10060 (dw2_map_symtabs_matching_filename): Adjust.
10061 (dw2_symtab_iter_next): Adjust.
10062 (dw2_print_stats): Adjust.
10063 (dw2_expand_all_symtabs): Adjust.
10064 (dw2_expand_symtabs_with_fullname): Adjust.
10065 (dw2_expand_marked_cus): Adjust.
10066 (dw_expand_symtabs_matching_file_matcher): Adjust.
10067 (dw2_map_symbol_filenames): Adjust.
10068 (dw2_debug_names_iterator::next): Adjust.
10069 (dwarf2_initialize_objfile): Adjust.
10070 (set_partial_user): Adjust.
10071 (dwarf2_build_psymtabs_hard): Adjust.
10072
10073 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10074
10075 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10076 Remove unused variables.
10077 (dw2_map_symtabs_matching_filename): Likewise.
10078 (dwarf2_record_block_ranges): Likewise.
10079 (dwarf2_read_addr_index): Likewise.
10080 (follow_die_offset): Likewise.
10081
10082 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10083
10084 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10085 to symbol_file_add_main.
10086
10087 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10088
10089 PR mi/22299
10090 * mi/mi-console.c (do_fputc_async_safe): New.
10091 (mi_console_file::write_async_safe): New.
10092 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10093 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10094 New.
10095 * ui-file.c (ui_file::putstrn): Adjust call to
10096 fputstrn_unfiltered.
10097 * utils.c (printchar): Replace do_fputs and do_fprintf
10098 parameters by do_fputc.
10099 (fputstr_filtered): Adjust call to printchar.
10100 (fputstr_unfiltered): Likewise.
10101 (fputstrn_filtered): Likewise.
10102 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10103 printchar.
10104 * utils.h (do_fputc_ftype): New typedef.
10105 (fputstrn_unfiltered): Add do_fputc parameter.
10106
10107 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10108
10109 * regformats/i386/i386-avx.dat: Remove.
10110
10111 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10112
10113 PR gdb/22979
10114 * amd64-tdep.c (amd64_none_init_abi): New function.
10115 (amd64_x32_none_init_abi): New function.
10116 (_initialize_amd64_tdep): Register handlers for x86-64 and
10117 x64_32 with GDB_OSABI_NONE.
10118 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10119 GDB_OSABI_NONE osabi.
10120
10121 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10122
10123 PR gdb/22980
10124 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10125 GDB_OSABI_NONE.
10126 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10127 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10128
10129 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10130
10131 * common/byte-vector.h (char_vector): New type.
10132 * target.h (target_read_alloc): Return
10133 gdb::optional<byte_vector>.
10134 (target_read_stralloc): Return gdb::optional<char_vector>.
10135 (target_get_osdata): Return gdb::optional<char_vector>.
10136 * target.c (target_read_alloc_1): Templatize. Replacement
10137 manual memory management with vector.
10138 (target_read_alloc): Change return type, adjust.
10139 (target_read_stralloc): Change return type, adjust.
10140 (target_get_osdata): Change return type, adjust.
10141 * auxv.c (struct auxv_info) <length>: Remove.
10142 <data>: Change type to gdb::optional<byte_vector>.
10143 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10144 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10145 (target_auxv_search): Adjust.
10146 (fprint_target_auxv): Adjust.
10147 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10148 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10149 (linux_make_corefile_notes): Adjust.
10150 * osdata.c (get_osdata): Adjust.
10151 * remote.c (remote_get_threads_with_qxfer): Adjust.
10152 (remote_memory_map): Adjust.
10153 (remote_traceframe_info): Adjust.
10154 (btrace_read_config): Adjust.
10155 (remote_read_btrace): Adjust.
10156 (remote_pid_to_exec_file): Adjust.
10157 * solib-aix.c (solib_aix_get_library_list): Adjust.
10158 * solib-dsbt.c (decode_loadmap): Don't free buf.
10159 (dsbt_get_initial_loadmaps): Adjust.
10160 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10161 * solib-target.c (solib_target_current_sos): Adjust.
10162 * tracepoint.c (sdata_make_value): Adjust.
10163 * xml-support.c (xinclude_start_include): Adjust.
10164 (xml_fetch_content_from_file): Adjust.
10165 * xml-support.h (xml_fetch_another): Change return type.
10166 (xml_fetch_content_from_file): Change return type.
10167 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10168 * xml-tdesc.c (file_read_description_xml): Adjust.
10169 (fetch_available_features_from_target): Change return type.
10170 (target_fetch_description_xml): Adjust.
10171 (target_read_description_xml): Adjust.
10172
10173 2018-04-06 Tom Tromey <tom@tromey.com>
10174
10175 * value.c (~value): Update.
10176 (struct value) <contents>: Now unique_xmalloc_ptr.
10177 (value_contents_bits_eq, allocate_value_contents)
10178 (value_contents_raw, value_contents_all_raw)
10179 (value_contents_for_printing, value_contents_for_printing_const)
10180 (set_value_enclosing_type): Update.
10181
10182 2018-04-06 Tom Tromey <tom@tromey.com>
10183
10184 * value.c (range_s): Remove typedef, VEC.
10185 (struct range): Add operator<.
10186 (range_lessthan): Remove.
10187 (ranges_contain): Change type.
10188 (~value): Update.
10189 (struct value) <unavailable, optimized_out>: Now std::vector.
10190 (value_entirely_available)
10191 (value_entirely_covered_by_range_vector)
10192 (value_entirely_unavailable, value_entirely_optimized_out):
10193 Update.
10194 (insert_into_bit_range_vector): Change argument type.
10195 (find_first_range_overlap): Likewise.
10196 (struct ranges_and_idx, value_contents_bits_eq)
10197 (require_not_optimized_out, require_available): Update.
10198 (ranges_copy_adjusted): Change argument types.
10199 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10200
10201 2018-04-06 Tom Tromey <tom@tromey.com>
10202
10203 * value.c (~value): Update.
10204 (struct value) <parent>: Now a value_ref_ptr.
10205 (value_parent, set_value_parent, value_address, value_copy):
10206 Update.
10207
10208 2018-04-06 Tom Tromey <tom@tromey.com>
10209
10210 * value.c (struct value): Add constructor, destructor, and member
10211 initializers.
10212 (allocate_value_lazy, value_decref): Update.
10213
10214 2018-04-06 Tom Tromey <tom@tromey.com>
10215
10216 * value.c (struct value) <released, next>: Remove.
10217 (all_values): Now a std::vector.
10218 (allocate_value_lazy): Update.
10219 (value_next): Remove.
10220 (value_mark, value_free_to_mark, release_value)
10221 (value_release_to_mark): Update.
10222
10223 2018-04-06 Tom Tromey <tom@tromey.com>
10224
10225 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10226 (free_value_chain): Remove.
10227 * value.c (free_value_chain): Remove.
10228 (value_release_to_mark): Return a std::vector.
10229 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10230 std::vector.
10231 (check_condition): Update.
10232 * eval.c (fetch_subexp_value): Change "val_chain" to a
10233 std::vector.
10234 * breakpoint.c (update_watchpoint): Update.
10235 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10236
10237 2018-04-06 Tom Tromey <tom@tromey.com>
10238
10239 * value.h (free_all_values): Remove.
10240 * value.c (free_all_values): Remove.
10241
10242 2018-04-06 Tom Tromey <tom@tromey.com>
10243
10244 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10245 (value_history_chain, value_history_count): Remove.
10246 (value_history): New global.
10247 (record_latest_value, access_value_history, show_values)
10248 (preserve_values): Update.
10249
10250 2018-04-06 Tom Tromey <tom@tromey.com>
10251
10252 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10253 * varobj.c (varobj_set_display_format, varobj_set_value)
10254 (install_default_visualizer, construct_visualizer)
10255 (install_new_value, ~varobj, varobj_get_value_type)
10256 (my_value_of_variable, varobj_editable_p): Update.
10257 * c-varobj.c (c_describe_child, c_value_of_variable)
10258 (cplus_number_of_children, cplus_describe_child): Update.
10259 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10260 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10261 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10262
10263 2018-04-06 Tom Tromey <tom@tromey.com>
10264
10265 * printcmd.c (last_examine_address): Change type to
10266 value_ref_ptr.
10267 (do_examine, x_command): Update.
10268
10269 2018-04-06 Tom Tromey <tom@tromey.com>
10270
10271 * value.c (release_value): Update.
10272 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10273 (struct bpstats) <val>: Now a value_ref_ptr.
10274 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10275 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10276 (~watchpoint, print_it_watchpoint, watch_command_1)
10277 (invalidate_bp_value_on_memory_change): Update.
10278
10279 2018-04-06 Tom Tromey <tom@tromey.com>
10280
10281 * varobj.c (varobj_clear_saved_item)
10282 (update_dynamic_varobj_children, install_new_value, ~varobj):
10283 Update.
10284 * value.h (value_incref): Move declaration earlier.
10285 (value_decref): Rename from value_free.
10286 (struct value_ref_policy): New.
10287 (value_ref_ptr): New typedef.
10288 (struct value_deleter): Remove.
10289 (gdb_value_up): Remove typedef.
10290 (release_value): Change return type.
10291 (release_value_or_incref): Remove.
10292 * value.c (set_value_parent): Update.
10293 (value_incref): Change return type.
10294 (value_decref): Rename from value_free.
10295 (value_free_to_mark, free_all_values, free_value_chain): Update.
10296 (release_value): Return value_ref_ptr.
10297 (release_value_or_incref): Remove.
10298 (record_latest_value, set_internalvar, clear_internalvar):
10299 Update.
10300 * stack.c (info_frame_command): Don't call value_free.
10301 * python/py-value.c (valpy_dealloc, valpy_new)
10302 (value_to_value_object): Update.
10303 * printcmd.c (do_examine): Update.
10304 * opencl-lang.c (lval_func_free_closure): Update.
10305 * mi/mi-main.c (register_changed_p): Don't call value_free.
10306 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10307 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10308 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10309 value_free.
10310 * guile/scm-value.c (vlscm_free_value_smob)
10311 (vlscm_scm_from_value): Update.
10312 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10313 (frame_unwind_register_unsigned, get_frame_register_bytes)
10314 (put_frame_register_bytes): Don't call value_free.
10315 * findvar.c (address_from_register): Don't call value_free.
10316 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10317 * dwarf2loc.c (entry_data_value_free_closure)
10318 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10319 (dwarf2_evaluate_loc_desc_full): Update.
10320 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10321 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10322 (~watchpoint, watch_command_1)
10323 (invalidate_bp_value_on_memory_change): Update.
10324 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10325
10326 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10327
10328 PR gdb/23022
10329 * warning.m4: Add -Wno-error=deprecated-register.
10330 * configure: Re-generate.
10331
10332 2018-04-05 Tom Tromey <tom@tromey.com>
10333
10334 * linespec.h: Remove include of "vec.h".
10335
10336 2018-04-05 Tom Tromey <tom@tromey.com>
10337
10338 * linespec.c (typep): Remove typedef.
10339 (find_methods, find_superclass_methods): Take a std::vector.
10340 (find_method): Use std::vector.
10341
10342 2018-04-05 Tom Tromey <tom@tromey.com>
10343
10344 * utils.c (compare_strings): Remove.
10345 * utils.h (compare_strings): Remove.
10346 * objc-lang.h (find_imps): Update.
10347 * objc-lang.c (find_methods): Take a std::vector.
10348 (uniquify_strings, find_imps): Likewise.
10349 * linespec.c (find_methods): Take a std::vector.
10350 (decode_objc): Use std::vector.
10351 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10352 a std::vector.
10353 (find_method, find_function_symbols): Use std::vector.
10354
10355 2018-04-05 Tom Tromey <tom@tromey.com>
10356
10357 * completer.c (completion_tracker::completion_tracker): Remove
10358 cast.
10359 (completion_tracker::discard_completions): Likewise.
10360 * breakpoint.c (ambiguous_names_p): Remove cast.
10361 * ada-lang.c (_initialize_ada_language): Remove cast.
10362 * utils.h (streq): Update.
10363 (streq_hash): Add new declaration.
10364 * utils.c (streq): Return bool.
10365 (streq_hash): New function.
10366
10367 2018-04-05 Tom Tromey <tom@tromey.com>
10368
10369 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10370 Remove a string copy.
10371
10372 2018-04-05 Tom Tromey <tom@tromey.com>
10373
10374 * linespec.c (filter_results): Use std::vector.
10375 (decode_line_2, decode_line_full): Update.
10376
10377 2018-04-05 Tom Tromey <tom@tromey.com>
10378
10379 * linespec.c (canonical_to_fullform): Return std::string.
10380 (filter_results): Update.
10381 (struct decode_line_2_item): Add constructor.
10382 <fullform, displayform>: Now std::string.
10383 (decode_line_2_compare_items): Now a std::sort comparator.
10384 (decode_line_2): Update.
10385
10386 2018-04-05 Tom Tromey <tom@tromey.com>
10387
10388 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10389 (unexpected_linespec_error): Update.
10390 (linespec_parse_basic, parse_linespec): Update.
10391
10392 2018-04-05 Tom Tromey <tom@tromey.com>
10393
10394 * linespec.c (linespec_parse_basic): Reindent.
10395
10396 2018-04-05 Tom Tromey <tom@tromey.com>
10397
10398 * minsyms.h (iterate_over_minimal_symbols): Update.
10399 * minsyms.c (iterate_over_minimal_symbols): Take a
10400 gdb::function_view.
10401 * linespec.c (struct collect_minsyms): Remove.
10402 (compare_msyms): Now a std::sort comparator.
10403 (add_minsym): Add parameters.
10404 (search_minsyms_for_name): Update. Use std::vector.
10405
10406 2018-04-03 Tom Tromey <tom@tromey.com>
10407
10408 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10409 gdb::byte_vector.
10410
10411 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10412
10413 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10414
10415 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10416
10417 PR gdb/16959
10418 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10419 printing static type.
10420
10421 2018-04-01 Tom Tromey <tom@tromey.com>
10422
10423 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10424 (rs6000_xfer_shared_libraries): Update.
10425
10426 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10427
10428 * common/gdb_vecs.h (char_ptr): Remove.
10429 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10430
10431 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10432
10433 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10434 with std::vector.
10435 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10436
10437 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10438
10439 * tracepoint.h (struct uploaded_tp): Initialize fields.
10440 <actions, step_actions, cmd_strings>: Change type to
10441 std::vector<char *>.
10442 * tracepoint.c (get_uploaded_tp): Allocate with new.
10443 (free_uploaded_tps): Free with delete.
10444 (parse_tracepoint_definition): Adjust to std::vector change.
10445 * breakpoint.c (read_uploaded_action): Likewise.
10446 (create_tracepoint_from_upload): Likewise.
10447 * ctf.c (ctf_write_uploaded_tp): Likewise.
10448 (SET_ARRAY_FIELD): Likewise.
10449 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10450
10451 2018-03-30 Tom Tromey <tom@tromey.com>
10452
10453 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10454 std::unique_ptr.
10455 (svr4_keep_data_in_core): Update.
10456 (svr4_read_so_list): Update.
10457
10458 2018-03-30 Tom Tromey <tom@tromey.com>
10459
10460 * windows-nat.c (handle_output_debug_string, handle_exception):
10461 Update.
10462 * target.h (target_read_string): Update.
10463 * target.c (target_read_string): Change "string" to
10464 unique_xmalloc_ptr.
10465 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10466 Update.
10467 * solib-frv.c (frv_current_sos): Update.
10468 * solib-dsbt.c (dsbt_current_sos): Update.
10469 * solib-darwin.c (darwin_current_sos): Update.
10470 * linux-thread-db.c (inferior_has_bug): Update.
10471 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10472 Update. Remove alloca.
10473 * ada-lang.c (ada_main_name): Update.
10474
10475 2018-03-30 Tom Tromey <tom@tromey.com>
10476
10477 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10478 (struct dwo_file_deleter): New.
10479 (dwo_file_up): New typedef.
10480 (open_and_init_dwo_file): Use dwo_file_up.
10481 (free_dwo_file_cleanup): Remove.
10482
10483 2018-03-30 Tom Tromey <tom@tromey.com>
10484
10485 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10486 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10487
10488 2018-03-30 Tom Tromey <tom@tromey.com>
10489
10490 * dwarf2read.c (class free_cached_comp_units): New class.
10491 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10492 (free_cached_comp_units): Remove function.
10493
10494 2018-03-30 Tom Tromey <tom@tromey.com>
10495
10496 * utils.h (make_cleanup_unpush_target): Remove.
10497 * inf-ptrace.c (struct target_unpusher): New.
10498 (target_unpush_up) New typedef.
10499 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10500 target_unpush_up.
10501 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10502
10503 2018-03-27 Tom Tromey <tom@tromey.com>
10504
10505 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10506
10507 2018-03-27 Pedro Alves <palves@redhat.com>
10508 Tom Tromey <tom@tromey.com>
10509
10510 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10511 destructor. Now a class.
10512 (gdb_readline_wrapper_cleanup): Remove function.
10513 (gdb_readline_wrapper): Remove cleanups.
10514
10515 2018-03-27 Tom Tromey <tom@tromey.com>
10516
10517 * typeprint.h (struct type_print_options) <local_typedefs,
10518 global_typedefs>: Remove "struct" keyword.
10519 (class typedef_hash_table): New class.
10520 (recursively_update_typedef_hash, add_template_parameters)
10521 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10522 (find_typedef_in_hash): Don't declare.
10523 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10524 (typedef_hash_table::recursively_update): Rename from
10525 recursively_update_typedef_hash. Now a member.
10526 (typedef_hash_table::add_template_parameters): Rename from
10527 add_template_parameters. Now a member.
10528 (typedef_hash_table::typedef_hash_table): Now a constructor;
10529 rename from create_typedef_hash.
10530 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10531 rename from free_typedef_hash.
10532 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10533 (do_free_global_table): Remove.
10534 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10535 from copy_type_recursive.
10536 (create_global_typedef_table): Remove.
10537 (typedef_hash_table::find_global_typedef): Now a member of
10538 typedef_hash_table.
10539 (typedef_hash_table::find_typedef): Rename from
10540 find_typedef_in_hash; now a member.
10541 (whatis_exp): Update.
10542 * extension.h (struct ext_lang_type_printers): Add constructor and
10543 destructor.
10544 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10545 declare.
10546 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10547 Now a constructor; rename from start_ext_lang_type_printers.
10548 (ext_lang_type_printers): Now a destructor; rename from
10549 free_ext_lang_type_printers.
10550 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10551 Update.
10552 (c_type_print_base_struct_union): Update. Remove cleanups.
10553
10554 2018-03-27 Tom Tromey <tom@tromey.com>
10555
10556 * dwarf-index-write.c: Include <cmath>.
10557
10558 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10559
10560 * NEWS: Add entry describing new "set|show varsize-limit" command.
10561 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10562 command.
10563 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10564 "set variable".
10565
10566 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10567
10568 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10569 dwarf-index-write.c
10570 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10571 * dwarf-index-common.c: New file.
10572 * dwarf-index-common.h: New file.
10573 * dwarf-index-write.c: New file.
10574 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10575 (struct dwarf2_section_info): Move from here.
10576 (dwarf2_section_info_def): Likewise.
10577 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10578 (offset_type): Likewise.
10579 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10580 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10581 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10582 (byte_swap): Likewise.
10583 (MAYBE_SWAP): Likewise.
10584 (dwarf2_per_cu_ptr): Likewise.
10585 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10586 (struct tu_stats): Likewise.
10587 (struct dwarf2_per_objfile): Likewise.
10588 (struct dwarf2_per_cu_data): Likewise.
10589 (struct signatured_type): Likewise.
10590 (sig_type_ptr): Likewise.
10591 (DEF_VEC_P (sig_type_ptr)): Likewise.
10592 (INDEX4_SUFFIX): Likewise.
10593 (INDEX5_SUFFIX): Likewise.
10594 (DEBUG_STR_SUFFIX): Likewise.
10595 (dwarf2_read_section): Make non-static.
10596 (mapped_index_string_hash): Move from here.
10597 (dwarf5_djb_hash): Likewise.
10598 (file_write): Likewise.
10599 (class data_buf): Likewise.
10600 (struct symtab_index_entry): Likewise.
10601 (struct mapped_symtab): Likewise.
10602 (find_slot): Likewise.
10603 (hash_expand): Likewise.
10604 (add_index_entry): Likewise.
10605 (uniquify_cu_indices): Likewise.
10606 (class c_str_view): Likewise.
10607 (class c_str_view_hasher): Likewise.
10608 (class vector_hasher): Likewise.
10609 (write_hash_table): Likewise.
10610 (psym_index_map): Likewise.
10611 (struct addrmap_index_data): Likewise.
10612 (add_address_entry): Likewise.
10613 (add_address_entry_worker): Likewise.
10614 (write_address_map): Likewise.
10615 (symbol_kind): Likewise.
10616 (write_psymbols): Likewise.
10617 (struct signatured_type_index_data): Likewise.
10618 (write_one_signatured_type): Likewise.
10619 (recursively_count_psymbols): Likewise.
10620 (recursively_write_psymbols): Likewise.
10621 (class debug_names): Likewise.
10622 (check_dwarf64_offsets): Likewise.
10623 (psyms_seen_size): Likewise.
10624 (write_gdbindex): Likewise.
10625 (write_debug_names): Likewise.
10626 (assert_file_size): Likewise.
10627 (write_psymtabs_to_index): Likewise.
10628 (save_gdb_index_command): Likewise.
10629 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10630 command.
10631 * dwarf2read.h: New file.
10632
10633 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10634
10635 PR gdb/22670
10636 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10637 symbol name if the CU's language stores symbol names in linkage
10638 format.
10639 * language.h (struct language_defn)
10640 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10641 all instances of this struct.
10642
10643 2018-03-26 Tom Tromey <tom@tromey.com>
10644
10645 * stack.c (backtrace_command_1): Remove verbose code.
10646
10647 2018-03-26 Tom Tromey <tom@tromey.com>
10648
10649 * python/py-framefilter.c (py_print_type): Don't catch
10650 exceptions. Return void.
10651 (py_print_value): Likewise.
10652 (py_print_single_arg): Likewise.
10653 (enumerate_args): Don't catch exceptions.
10654 (py_print_args): Likewise.
10655 (py_print_frame): Likewise.
10656 (gdbpy_apply_frame_filter): Catch exceptions here.
10657
10658 2018-03-26 Tom Tromey <tom@tromey.com>
10659
10660 * stack.c (_initialize_stack): Remove trailing newlines from help
10661 text. Add "Usage" line to "backtrace" help.
10662
10663 2018-03-26 Tom Tromey <tom@tromey.com>
10664
10665 PR python/16486:
10666 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10667
10668 2018-03-26 Tom Tromey <tom@tromey.com>
10669
10670 * python/py-framefilter.c (py_print_single_arg): Return
10671 EXT_LANG_BT_ERROR from catch.
10672
10673 2018-03-26 Tom Tromey <tom@tromey.com>
10674
10675 PR backtrace/15584:
10676 * stack.c (backtrace_command_1): Move some code into no-filters
10677 "if".
10678
10679 2018-03-26 Tom Tromey <tom@tromey.com>
10680
10681 * python/py-framefilter.c (throw_quit_or_print_exception): New
10682 function.
10683 (gdbpy_apply_frame_filter): Use it.
10684
10685 2018-03-26 Tom Tromey <tom@tromey.com>
10686
10687 PR cli/17716:
10688 * python/py-framefilter.c (py_print_type, py_print_value)
10689 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10690 RETURN_MASK_ERROR.
10691
10692 2018-03-26 Tom Tromey <tom@tromey.com>
10693
10694 * python/py-framefilter.c (enumerate_args): Use
10695 gdb::unique_xmalloc_ptr.
10696
10697 2018-03-26 Tom Tromey <tom@tromey.com>
10698
10699 * python/py-framefilter.c (py_print_frame): Return
10700 EXT_LANG_BT_OK.
10701 (gdbpy_apply_frame_filter): Update comment.
10702 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10703 Remove.
10704 <EXT_LANG_BT_NO_FILTERS>: Change value.
10705
10706 2018-03-26 Tom Tromey <tom@tromey.com>
10707
10708 PR backtrace/15582:
10709 * stack.c (backtrace_command): Parse "hide" argument.
10710 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10711 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10712 constant.
10713
10714 2018-03-26 Tom Tromey <tom@tromey.com>
10715
10716 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10717 add "flags".
10718 (backtrace_command): Remove "fulltrace", add "flags".
10719
10720 2018-03-26 Tom Tromey <tom@tromey.com>
10721
10722 * stack.c (backtrace_command): Rewrite command line parsing.
10723
10724 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10725
10726 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10727
10728 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10729
10730 * filename-seen-cache.h: Add include guard.
10731
10732 2018-03-26 Keith Seitz <keiths@redhat.com>
10733
10734 * symfile.c (place_section): Remove "struct" from section_addr_info
10735 in comment.
10736 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10737 "struct" keyword from section_addr_info.
10738
10739 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10740
10741 * regformats/regdef.h (reg): Add constructors.
10742
10743 2018-03-25 Pedro Alves <palves@redhat.com>
10744
10745 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10746 if then/else bodies in var_func_name extraction.
10747
10748 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10749
10750 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10751 lookup_minimal_symbol() to find symbol entry.
10752 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10753
10754 2018-03-23 Keith Seitz <keiths@redhat.com>
10755
10756 PR c++/22968
10757 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10758 nested type definitions for C++, too.
10759
10760 2018-03-23 Tom Tromey <tom@tromey.com>
10761
10762 * machoread.c (struct oso_el): Add a constructor. Don't define as
10763 a typedef.
10764 (macho_register_oso): Remove.
10765 (macho_symtab_read): Take a std::vector.
10766 (oso_el_compare_name): Now a std::sort comparator.
10767 (macho_symfile_read_all_oso): Take a std::vector.
10768 (macho_symfile_read): Use std::vector. Remove cleanups.
10769
10770 2018-03-22 Tom Tromey <tom@tromey.com>
10771
10772 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10773 (record_full_goto_bookmark): Use std::string.
10774
10775 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10776
10777 PR tdep/18295
10778 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10779 a single mask.
10780
10781 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10782
10783 * rs6000-tdep.c (store_insn_p): New function.
10784 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10785 and cr_reg to their unshifted values. Use store_insn_p to
10786 match LR saves using either R1 or fdata->alloca_reg. Use
10787 store_insn_p to match CR saves. Set alloca_reg_offset
10788 when alloca_reg and framep are set. Remove lr_reg shift
10789 when assigning to fdata->lr_register.
10790
10791 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10792
10793 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10794 command line args instead of emitting a warning.
10795
10796 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10797
10798 * tracepoint.h (struct static_tracepoint_marker): Initialize
10799 fields, define default constructor, move constructor and move
10800 assignment, disable the rest.
10801 <str_id, extra>: Make std::string.
10802 (release_static_tracepoint_marker): Remove.
10803 (free_current_marker): Remove.
10804 * tracepoint.c (free_current_marker): Remove.
10805 (parse_static_tracepoint_marker_definition): Adjust to
10806 std::string, use new hex2str overload.
10807 (release_static_tracepoint_marker): Remove.
10808 (print_one_static_tracepoint_marker): Get marker by reference
10809 and adjust to std::string.
10810 (info_static_tracepoint_markers_command): Adjust to std::vector
10811 changes
10812 * target.h (static_tracepoint_marker_p): Remove typedef.
10813 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10814 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10815 bool.
10816 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10817 * target-debug.h
10818 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10819 (target_debug_print_std_vector_static_tracepoint_marker): New.
10820 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10821 to...
10822 (target_debug_print_static_tracepoint_marker_p): ... this.
10823 * target-delegates.c: Re-generate.
10824 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10825 Make std::string.
10826 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10827 (decode_static_tracepoint_spec): Adjust to std::vector.
10828 (tracepoint_print_one_detail): Adjust to std::string.
10829 (strace_marker_decode_location): Adjust to std::string.
10830 (update_static_tracepoint): Adjust to std::string, remove call
10831 to release_static_tracepoint_marker.
10832 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10833 Adjust to std::vector.
10834 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10835 (remote_static_tracepoint_markers_by_strid): Adjust to
10836 std::vector.
10837 * common/rsp-low.h (hex2str): New overload with explicit count
10838 of bytes.
10839 * common/rsp-low.c (hex2str): New overload with explicit count
10840 of bytes.
10841 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10842 (_initialize_rsp_low_selftests): Add test_hex2str test.
10843 * unittests/tracepoint-selftests.c
10844 (test_parse_static_tracepoint_marker_definition): Adjust to
10845 std::string.
10846
10847 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10848
10849 * tracepoint.c (parse_static_tracepoint_marker_definition):
10850 Consider case where the definition is followed by more
10851 definitions.
10852 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10853 tracepoint-selftests.c.
10854 * unittests/tracepoint-selftests.c: New.
10855
10856 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10857
10858 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10859 Carvalho.
10860
10861 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10862
10863 * symtab.c (find_pc_sect_line): fixed indentation.
10864
10865 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10866
10867 * symtab.c (find_pc_sect_line): now uses binary search.
10868
10869 2018-03-19 Tom Tromey <tom@tromey.com>
10870
10871 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10872 "IDENT" production.
10873
10874 2018-03-19 Pedro Alves <palves@redhat.com>
10875 Tom Tromey <tom@tromey.com>
10876
10877 * unittests/observable-selftests.c: New file.
10878 * common/observable.h: New file.
10879 * observable.h: New file.
10880 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10881 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10882 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10883 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10884 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10885 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10886 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10887 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10888 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10889 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10890 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10891 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10892 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10893 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10894 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10895 tui/tui-interp.c, valops.c: Update all users.
10896 * tui/tui-hooks.c (tui_bp_created_observer)
10897 (tui_bp_deleted_observer, tui_bp_modified_observer)
10898 (tui_inferior_exit_observer, tui_before_prompt_observer)
10899 (tui_normal_stop_observer, tui_register_changed_observer):
10900 Remove.
10901 (tui_observers_token): New global.
10902 (attach_or_detach, tui_attach_detach_observers): New functions.
10903 (tui_install_hooks, tui_remove_hooks): Use
10904 tui_attach_detach_observers.
10905 * record-btrace.c (record_btrace_thread_observer): Remove.
10906 (record_btrace_thread_observer_token): New global.
10907 * observer.sh: Remove.
10908 * observer.c: Rename to observable.c.
10909 * observable.c (namespace gdb_observers): Define new objects.
10910 (observer_debug): Move into gdb_observers namespace.
10911 (struct observer, struct observer_list, xalloc_observer_list_node)
10912 (xfree_observer_list_node, generic_observer_attach)
10913 (generic_observer_detach, generic_observer_notify): Remove.
10914 (_initialize_observer): Update.
10915 Don't include observer.inc.
10916 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10917 (clean mostlyclean): Likewise.
10918 (observer.h, observer.inc): Remove targets.
10919 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10920 (COMMON_SFILES): Use observable.c, not observer.c.
10921 * .gitignore: Remove observer.h.
10922
10923 2018-03-18 Tom Tromey <tom@tromey.com>
10924
10925 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10926 gdb::def_vector.
10927 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10928
10929 2018-03-17 Tom Tromey <tom@tromey.com>
10930
10931 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10932
10933 2018-03-17 Tom Tromey <tom@tromey.com>
10934
10935 * target.c (class scoped_target_fd): New.
10936 (target_fileio_close_cleanup): Remove.
10937 (target_fileio_read_alloc_1): Use scoped_target_fd.
10938
10939 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10940
10941 * silent-rules.mk: New.
10942 * Makefile.in: Include silent-rules.mk
10943 (srcdir, VPATH, top_srcdir): Move up.
10944 (COMPILE): Add ECHO_CXX.
10945 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10946 (init.c): Add ECHO_INIT_C.
10947 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10948 (version.c): Add ECHO_GEN.
10949 (printcmd.o): Add ECHO_CXX.
10950 (target-float.o): Add ECHO_CXX.
10951 (ada-exp.o): Add ECHO_CXX.
10952 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10953 (insight$(EXEEXT)): Add ECHO_CXXLD.
10954 * gnulib/configure.ac: Add AM_SILENT_RULES.
10955 * gnulib/aclocal.m4: Re-generate.
10956 * gnulib/configure: Re-generate.
10957 * gnulib/import/Makefile.in: Re-generate.
10958
10959 2018-03-16 Tom Tromey <tom@tromey.com>
10960
10961 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10962 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10963 * utils.c (do_free_section_addr_info)
10964 (make_cleanup_free_section_addr_info): Remove.
10965 * symfile.h (struct other_sections): Add constructor.
10966 (struct section_addr_info): Remove.
10967 (section_addr_info): New typedef.
10968 (struct sym_fns) <sym_offsets>: Change type of parameter.
10969 (build_section_addr_info_from_objfile)
10970 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10971 (default_symfile_offsets, symbol_file_add)
10972 (symbol_file_add_from_bfd)
10973 (build_section_addr_info_from_section_table): Update.
10974 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10975 * symfile.c (alloc_section_addr_info): Remove.
10976 (build_section_addr_info_from_section_table): Change return type.
10977 Update.
10978 (build_section_addr_info_from_bfd)
10979 (build_section_addr_info_from_objfile): Likewise.
10980 (free_section_addr_info): Remove.
10981 (relative_addr_info_to_section_offsets): Change type of "addrs".
10982 (addrs_section_compar): Now a std::sort comparator.
10983 (addrs_section_sort): Change return type.
10984 (addr_info_make_relative): Change type of "addrs". Update.
10985 (default_symfile_offsets, syms_from_objfile_1)
10986 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10987 (symbol_file_add_separate): Update.
10988 (symbol_file_add): Change type of "addrs". Update.
10989 (add_symbol_file_command): Update. Remove cleanups.
10990 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10991 cleanups.
10992 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10993 * solib.c (solib_read_symbols): Update.
10994 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10995 * machoread.c (macho_symfile_offsets): Update.
10996 * jit.c (jit_bfd_try_read_symtab): Update.
10997
10998 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10999
11000 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11001 unittests/utils-selftests.c.
11002 * unittests/utils-selftests.c: New file.
11003
11004 2018-03-14 Tom Tromey <tom@tromey.com>
11005
11006 PR cli/14977:
11007 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11008 for NULL.
11009
11010 2018-03-14 Tom Tromey <tom@tromey.com>
11011
11012 PR cli/19918:
11013 * printcmd.c (printf_pointer): Allow "-" in format.
11014
11015 2018-03-14 Tom Tromey <tom@tromey.com>
11016
11017 * printcmd.c (_initialize_printcmd): Add usage to printf.
11018
11019 2018-03-14 Yao Qi <qiyao@sourceware.org>
11020
11021 * MAINTAINERS: Update my email address.
11022
11023 2018-03-13 Tom Tromey <tom@tromey.com>
11024
11025 * machoread.c (macho_check_dsym): Change filenamep to a
11026 std::string*.
11027 (macho_symfile_read): Update.
11028 * symfile.c (load_command): Use std::string.
11029
11030 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11031
11032 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11033 to error message string.
11034 (riscv_register_name): Use xsnprintf instead of sprintf.
11035 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11036 internal_error.
11037 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11038 error.
11039 (riscv_push_dummy_call): Likewise.
11040
11041 2018-03-12 Tom Tromey <tom@tromey.com>
11042
11043 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11044 Use gdb::byte_vector.
11045 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11046
11047 2018-03-12 Yao Qi <yao.qi@linaro.org>
11048
11049 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11050 parameter type to readable_regcache.
11051 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11052 the declaration.
11053
11054 2018-03-11 Tom Tromey <tom@tromey.com>
11055
11056 * dwarf2read.c (struct nextfield): Add initializers.
11057 (struct nextfnfield): Remove.
11058 (struct fnfieldlist): Add initializers. Remove "length" and
11059 "head", use std::vector.
11060 (struct decl_field_list): Remove.
11061 (struct field_info): Add initializers.
11062 <fields, baseclasses>: Now std::vector.
11063 <nbaseclasses, nfnfields, typedef_field_list_count,
11064 nested_types_list_count>: Remove.
11065 (dwarf2_add_field, dwarf2_add_type_defn)
11066 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11067 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11068 (process_structure_scope): Update.
11069
11070 2018-03-11 Tom Tromey <tom@tromey.com>
11071
11072 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11073 for use by std::sort.
11074 (build_type_psymtabs_1): Use std::vector.
11075
11076 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11077
11078 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11079 and LIBMPFR in the printed configuration.
11080
11081 2018-03-08 Tom Tromey <tom@tromey.com>
11082
11083 * source.c (get_filename_and_charpos): Use scoped_fd.
11084 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11085 (procfs_pidlist): Likewise.
11086 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11087 (iterate_over_mappings): Likewise.
11088
11089 2018-03-08 Tom Tromey <tom@tromey.com>
11090
11091 * infcall.c (struct call_return_meta_info)
11092 <stack_temporaries_enabled>: Remove.
11093 (get_call_return_value, call_function_by_hand_dummy): Update.
11094 * thread.c (disable_thread_stack_temporaries): Remove.
11095 (enable_thread_stack_temporaries): Remove.
11096 (thread_stack_temporaries_enabled_p): Return bool.
11097 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11098 (get_last_thread_stack_temporary): Update.
11099 * eval.c (evaluate_subexp): Update.
11100 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11101 class, not a function.
11102 (value_ptr, value_vec): Remove typedefs.
11103 (class thread_info) <stack_temporaries_enabled>: Now bool.
11104 <stack_temporaries>: Now a std::vector.
11105 (thread_stack_temporaries_enabled_p)
11106 (value_in_thread_stack_temporaries): Return bool.
11107
11108 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11109
11110 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11111 (getpkt_or_notif_sane_1): Likewise.
11112
11113 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11114
11115 * build-id.c (build_id_to_debug_bfd): Use std::string.
11116
11117 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11118
11119 * build-id.c (find_separate_debug_file_by_buildid): Return
11120 std::string.
11121 * build-id.h (find_separate_debug_file_by_buildid): Return
11122 std::string.
11123 * coffread.c (coff_symfile_read): Adjust to std::string.
11124 * elfread.c (elf_symfile_read): Adjust to std::string.
11125 * symfile.c (separate_debug_file_exists): Change parameter to
11126 std::string.
11127 (find_separate_debug_file): Return std::string.
11128 (find_separate_debug_file_by_debuglink): Return std::string.
11129 * symfile.h (find_separate_debug_file_by_debuglink): Return
11130 std::string.
11131
11132 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11133
11134 * common/xml-utils.c (xml_escape_text): Move code to...
11135 (xml_escape_text_append): ... this new function.
11136 * common/xml-utils.h (xml_escape_text_append): New declaration.
11137 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11138 New function.
11139 (_initialize_xml_utils): register test_xml_escape_text_append as
11140 a selftest.
11141
11142 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11143
11144 * defs.h: Remove MAX_REGISTER_SIZE.
11145 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11146 asserts.
11147 * python/py-unwind.c (pyuw_sniffer): Likewise.
11148
11149 2018-03-07 Tom Tromey <tom@tromey.com>
11150
11151 * linux-tdep.c (linux_info_proc): Update.
11152 * target.h (struct target_ops) <to_fileio_readlink>: Return
11153 optional<string>.
11154 (target_fileio_readlink): Return optional<string>.
11155 * remote.c (remote_hostio_readlink): Return optional<string>.
11156 * inf-child.c (inf_child_fileio_readlink): Return
11157 optional<string>.
11158 * target.c (target_fileio_readlink): Return optional<string>.
11159
11160 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11161
11162 * regcache.c (cooked_read_test): Add riscv to the list of
11163 architectures that have a save_reggroup.
11164
11165 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11166
11167 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11168 value is not a dynamic class object.
11169
11170 2018-03-06 Tom Tromey <tom@tromey.com>
11171
11172 * rust-exp.y: Formatting fixes.
11173
11174 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11175
11176 * riscv-tdep.c (riscv_register_name): Remove target description
11177 support.
11178 (riscv_gdbarch_init): Remove target description check.
11179
11180 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11181
11182 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11183 comment.
11184 * riscv-tdep.h: Likewise.
11185
11186 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11187
11188 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11189 (riscv_pseudo_register_write): Delete.
11190 (riscv_gdbarch_init): Remove all use of pseudo registers.
11191
11192 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11193
11194 * record-btrace.c (btrace_print_lines): Replace cleanup
11195 parameter with RAII equivalents.
11196 (btrace_insn_history): Replace cleanup with RAII equivalents.
11197 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11198 make_cleanup_ui_out_tuple_begin_end): Remove.
11199 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11200 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11201 make_cleanup_ui_out_list_begin_end): Remove.
11202
11203 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11204
11205 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11206 parameter types to std::vector. Use bool.
11207 (record_btrace_wait): Replace VEC(tp_t) with
11208 std::vector<thread_info *>.
11209 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11210
11211 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11212
11213 * record-btrace.c (record_btrace_disable_callback): Remove.
11214 (struct scoped_btrace_disable): New.
11215 (record_btrace_open): Use scoped_btrace_disable.
11216
11217 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11218
11219 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11220 reading values from registers.
11221
11222 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11223
11224 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11225 where appropriate.
11226
11227 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11228
11229 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11230 change parameter type. Use GDB's print functions, and use
11231 core_addr_to_string where appropriate.
11232 (riscv_push_dummy_call): Use core_addr_to_string where
11233 appropriate, update call to riscv_print_arg_location, and reindent
11234 a few lines.
11235 (riscv_return_value): Update call to riscv_print_arg_location.
11236
11237 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11238 Tim Newsome <tim@sifive.com>
11239 Albert Ou <a0u@eecs.berkeley.edu>
11240 Darius Rad <darius@bluespec.com>
11241
11242 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11243 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11244 (ALLDEPFILES): Add riscv-tdep.c
11245 * configure.tgt: Add riscv support.
11246 * riscv-tdep.c: New file.
11247 * riscv-tdep.h: New file.
11248 * NEWS: Mention new target.
11249 * MAINTAINERS: Add entry for riscv.
11250
11251 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11252
11253 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11254 fields within aggregates.
11255
11256 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11257
11258 * record-btrace.c (btrace_print_lines): Change type of flags to
11259 gdb_disassembly_flags.
11260
11261 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11262
11263 * fbsd-nat.c: Include "inf-ptrace.h".
11264 (USE_SIGTRAP_SIGINFO): Conditionally define.
11265 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11266 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11267 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11268 function.
11269 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11270 Likewise.
11271 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11272 Likewise.
11273 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11274 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11275 "supports_stopped_by_hw_breakpoint" target methods.
11276
11277 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11278
11279 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11280 * fbsd-nat.c (debug_fbsd_nat): New variable.
11281 (show_fbsd_nat_debug): New function.
11282 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11283 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11284
11285 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11286
11287 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11288 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11289 prototype.
11290 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11291 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11292 method.
11293
11294 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11295
11296 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11297 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11298
11299 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11300
11301 * charset.c (struct charset_vector): New.
11302 (charsets): Change type to charset_vector.
11303 (find_charset_names): Adjust.
11304 (add_one): Adjust.
11305 (_initialize_charset): Adjust.
11306
11307 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11308
11309 * progspace.h (struct program_space) <deleted_solibs>: Change
11310 type to std::vector<std::string>.
11311 * progspace.c (clear_program_space_solib_cache): Adjust.
11312 * breakpoint.c (print_solib_event): Adjust.
11313 (check_status_catch_solib): Adjust.
11314 * solib.c (update_solib_list): Adjust.
11315 * ui-out.h (class ui_out) <field_string>: New overload.
11316 * ui-out.c (ui_out::field_string): New overload.
11317
11318 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11319
11320 * progspace.h (struct program_space): Add constructor and
11321 destructor, initialize fields.
11322 (add_program_space): Remove.
11323 * progspace.c (add_program_space): Rename to...
11324 (program_space::program_space): ... this.
11325 (release_program_space): Rename to...
11326 (program_space::~program_space): ... this.
11327 (delete_program_space): Use delete to delete program_space.
11328 (initialize_progspace): Use new to allocate program_space.
11329 * inferior.c (add_inferior_with_spaces): Likewise.
11330 (clone_inferior_command): Likewise.
11331 * infrun.c (follow_fork_inferior): Likewise.
11332 (handle_vfork_child_exec_or_exit): Likewise.
11333
11334 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11335
11336 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11337 (delim_string_to_char_ptr_vec): Return std::vector of
11338 gdb::unique_xmalloc_ptr.
11339 (dirnames_to_char_ptr_vec_append): Take std::vector of
11340 gdb::unique_xmalloc_ptr.
11341 (dirnames_to_char_ptr_vec): Return std::vector of
11342 gdb::unique_xmalloc_ptr.
11343 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11344 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11345 (delim_string_to_char_ptr_vec): Return an std::vector of
11346 gdb::unique_xmalloc_ptr, adjust the code.
11347 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11348 gdb::unique_xmalloc_ptr, adjust the code.
11349 (dirnames_to_char_ptr_vec): Return an std::vector of
11350 gdb::unique_xmalloc_ptr, adjust the code.
11351 * auto-load.c (auto_load_safe_path_vec): Change type to
11352 std::vector of gdb::unique_xmalloc_ptr.
11353 (auto_load_expand_dir_vars): Return an std::vector of
11354 gdb::unique_xmalloc_ptr, adjust the code.
11355 (auto_load_safe_path_vec_update): Adjust.
11356 (filename_is_in_auto_load_safe_path_vec): Adjust.
11357 (auto_load_objfile_script_1): Adjust.
11358 * build-id.c (build_id_to_debug_bfd): Adjust.
11359 * linux-thread-db.c (thread_db_load_search): Adjust.
11360 * source.c (add_path): Adjust.
11361 (openp): Adjust.
11362 * symfile.c (find_separate_debug_file): Adjust.
11363 * utils.c (do_free_char_ptr_vec): Remove.
11364 (make_cleanup_free_char_ptr_vec): Remove.
11365
11366 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11367
11368 PR gdb/22907
11369 * common/pathstuff.c: Conditionally include "<windows.h>".
11370
11371 2018-03-01 Georg Sauthoff <mail@georg.so>
11372
11373 PR gdb/22888
11374 * gcore.in: Quote variables and switch interpreter to bash.
11375
11376 2018-03-01 Tom Tromey <tom@tromey.com>
11377
11378 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11379 assertion. Add assertion for discriminant_index.
11380 (quirk_rust_enum): Use correct base type name in univariant case.
11381
11382 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11383
11384 * record.c (get_call_history_modifiers): Return a
11385 record_print_flags.
11386 (cmd_record_call_history): Adjust.
11387 * record-btrace.c (record_btrace_call_history): Adjust.
11388 (record_btrace_call_history_range): Adjust.
11389 (record_btrace_call_history_from): Adjust.
11390 * target-debug.h (target_debug_print_record_print_flags): New.
11391 * target-delegates.c: Re-generate.
11392 * target.c (target_call_history): Change flags type.
11393 (target_call_history_from): Likewise.
11394 (target_call_history_range): Likewise.
11395 * target.h (struct target_ops) <target_call_history>: Likewise.
11396 (target_call_history_from): Likewise.
11397 (target_call_history_range): Likewise.
11398
11399 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11400 Simon Marchi <simon.marchi@polymtl.ca>
11401
11402 * common/common-utils.c: Include "sys/stat.h".
11403 (is_regular_file): Move here from "source.c"; change return
11404 type to "bool".
11405 * common/common-utils.h (is_regular_file): New prototype.
11406 * common/pathstuff.c (contains_dir_separator): New function.
11407 * common/pathstuff.h (contains_dir_separator): New prototype.
11408 * source.c: Don't include "sys/stat.h".
11409 (is_regular_file): Move to "common/common-utils.c".
11410
11411 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11412
11413 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11414 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11415 * auto-load.c: Include "common/pathstuff.h".
11416 * common/common-def.h (current_directory): Move here.
11417 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11418 function.
11419 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11420 prototype.
11421 * common/pathstuff.c: New file.
11422 * common/pathstuff.h: New file.
11423 * compile/compile.c: Include "common/pathstuff.h".
11424 * defs.h (current_directory): Move to "common/common-defs.h".
11425 * dwarf2read.c: Include "common/pathstuff.h".
11426 * exec.c: Likewise.
11427 * guile/scm-safe-call.c: Likewise.
11428 * linux-thread-db.c: Likewise.
11429 * main.c: Likewise.
11430 * nto-tdep.c: Likewise.
11431 * objfiles.c: Likewise.
11432 * source.c: Likewise.
11433 * symtab.c: Likewise.
11434 * utils.c: Include "common/pathstuff.h".
11435 (gdb_realpath): Move to "common/pathstuff.c".
11436 (gdb_realpath_keepfile): Likewise.
11437 (gdb_abspath): Likewise.
11438 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11439 (gdb_realpath_keepfile): Likewise.
11440 (gdb_abspath): Likewise.
11441
11442 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11443
11444 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11445 wildcard process pid for super_resume for kernels with a
11446 specific bug.
11447
11448 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11449
11450 * compile/compile.c (get_args): Add additional comments
11451 explaining function.
11452
11453 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11454 Tom Tromey <tom@tromey.com>
11455
11456 * target.h (memory_write_request_s): Remove typedef. Don't define
11457 VEC.
11458 (target_write_memory_blocks): Change argument to std::vector.
11459 (struct memory_write_request): Add constructor.
11460 * target-memory.c (compare_block_starting_address): Return bool.
11461 Change argument types.
11462 (claim_memory): Change arguments to use std::vector.
11463 (split_regular_and_flash_blocks, blocks_to_erase)
11464 (compute_garbled_blocks): Likewise.
11465 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11466 (target_write_memory_blocks): Change argument to std::vector.
11467 * symfile.c (struct load_section_data): Add constructor and
11468 destructor. Use std::vector for "requests".
11469 (struct load_progress_data): Add initializers.
11470 (load_section_callback): Update. Use "new".
11471 (clear_memory_write_data): Remove.
11472 (generic_load): Update.
11473
11474 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11475
11476 * arch/aarch64.h: Use common/tdesc.h.
11477
11478 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11479
11480 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11481 architecture with a 64-bit ABI.
11482
11483 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11484
11485 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11486 ahead of target description loading.
11487
11488 2018-02-26 Tom Tromey <tom@tromey.com>
11489
11490 * stack.c (backtrace_command_1): Update.
11491 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11492 of "flags".
11493 * python/py-framefilter.c (py_print_frame)
11494 (gdbpy_apply_frame_filter): Change type of "flags".
11495 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11496 of "flags".
11497 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11498 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11499 * extension.h (enum frame_filter_flag): Rename from
11500 frame_filter_flags.
11501 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11502 (apply_ext_lang_frame_filter): Change type of "flags".
11503 * extension.c (apply_ext_lang_frame_filter): Change type of
11504 "flags".
11505 * extension-priv.h (struct extension_language_ops)
11506 <apply_frame_filter>: Change type of "flags".
11507
11508 2018-02-26 Tom Tromey <tom@tromey.com>
11509
11510 PR python/16497:
11511 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11512 off-by-one in py_end computation.
11513 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11514 PRINT_MORE_FRAMES.
11515 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11516 constant.
11517
11518 2018-02-26 Tom Tromey <tom@tromey.com>
11519
11520 * dwarf2read.c (struct variant_field): New.
11521 (struct nextfield) <variant>: New field.
11522 (dwarf2_add_field): Handle DW_TAG_variant_part.
11523 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11524 discriminated union.
11525 (read_structure_type): Handle DW_TAG_variant_part.
11526 (handle_struct_member_die): New function, extracted from
11527 process_structure_scope. Handle DW_TAG_variant.
11528 (process_structure_scope): Handle discriminated unions. Call
11529 handle_struct_member_die.
11530
11531 2018-02-26 Tom Tromey <tom@tromey.com>
11532
11533 * rust-lang.h (rust_last_path_segment): Declare.
11534 * rust-lang.c (rust_last_path_segment): Now public. Change
11535 contract.
11536 (struct disr_info): Remove.
11537 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11538 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11539 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11540 (rust_enum_p, rust_enum_variant): New function.
11541 (rust_underscore_fields): Remove "offset" parameter.
11542 (rust_print_enum): New function.
11543 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11544 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11545 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11546 enums.
11547 (rust_internal_print_type): New function, from rust_print_type.
11548 Remove enum code.
11549 (rust_print_type): Call rust_internal_print_type.
11550 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11551 Update enum handling.
11552 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11553 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11554 (rust_union_quirks): New functions.
11555 (process_full_comp_unit, process_full_type_unit): Call
11556 rust_union_quirks.
11557 (process_structure_scope): Update rust_unions if necessary.
11558
11559 2018-02-26 Tom Tromey <tom@tromey.com>
11560
11561 * value.h (value_union_variant): Declare.
11562 * valops.c (value_union_variant): New function.
11563 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11564 (struct discriminant_info): New.
11565 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11566 enumerator.
11567 (struct main_type) <flag_discriminated_union>: New field.
11568
11569 2018-02-26 Tom Tromey <tom@tromey.com>
11570
11571 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11572 unittests/unpack-selftests.c.
11573 * unittests/unpack-selftests.c: New file.
11574 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11575
11576 2018-02-26 Yao Qi <yao.qi@linaro.org>
11577
11578 * dwarf2read.c (struct partial_die_info) <read>: New method.
11579 (read_partial_die): Remove the declaration.
11580 (load_partial_dies): Update.
11581 (partial_die_info::partial_die_info):
11582 (read_partial_die): Change it to partial_die_info::read.
11583
11584 2018-02-26 Yao Qi <yao.qi@linaro.org>
11585
11586 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11587 (fixup_partial_die): Remove declaration.
11588 (scan_partial_symbols): Update.
11589 (partial_die_parent_scope): Likewise.
11590 (partial_die_full_name): Likewise.
11591 (fixup_partial_die): Change it to partial_die_info::fixup.
11592
11593 2018-02-26 Yao Qi <yao.qi@linaro.org>
11594
11595 * dwarf2read.c (read_partial_die): Update the declaration.
11596 (load_partial_dies): Caller update.
11597 (read_partial_die): Remove one argument abbrev_len.
11598
11599 2018-02-26 Yao Qi <yao.qi@linaro.org>
11600
11601 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11602 assignment operator.
11603 (load_partial_dies): Use ctor and copy ctor.
11604 (read_partial_die): Update.
11605 (dwarf2_cu::find_partial_die): Use ctor.
11606
11607 2018-02-26 Yao Qi <yao.qi@linaro.org>
11608
11609 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11610 (find_partial_die_in_comp_unit): Change it to
11611 dwarf2_cu::find_partial_die.
11612 (find_partial_die): Update.
11613
11614 2018-02-26 Yao Qi <yao.qi@linaro.org>
11615
11616 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11617 is NULL.
11618
11619 2018-02-26 Yao Qi <yao.qi@linaro.org>
11620
11621 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11622
11623 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11624
11625 * arch/amd64.h: Use common/tdesc.h.
11626 * arch/i386.c: Likewise.
11627 * arch/i386.h: Likewise.
11628 * arch/tic6x.c: Likewise.
11629 * arch/tdesc.h: Move file from here...
11630 * common/tdesc.h: ...to here.
11631 * features/aarch64-core.c: Regenerate.
11632 * features/aarch64-fpu.c: Regenerate.
11633 * features/i386/32bit-avx.c: Regenerate.
11634 * features/i386/32bit-avx512.c: Regenerate.
11635 * features/i386/32bit-core.c: Regenerate.
11636 * features/i386/32bit-linux.c: Regenerate.
11637 * features/i386/32bit-mpx.c: Regenerate.
11638 * features/i386/32bit-pkeys.c: Regenerate.
11639 * features/i386/32bit-sse.c: Regenerate.
11640 * features/i386/64bit-avx.c: Regenerate.
11641 * features/i386/64bit-avx512.c: Regenerate.
11642 * features/i386/64bit-core.c: Regenerate.
11643 * features/i386/64bit-linux.c: Regenerate.
11644 * features/i386/64bit-mpx.c: Regenerate.
11645 * features/i386/64bit-pkeys.c: Regenerate.
11646 * features/i386/64bit-segments.c: Regenerate.
11647 * features/i386/64bit-sse.c: Regenerate.
11648 * features/i386/x32-core.c: Regenerate.
11649 * features/tic6x-c6xp.c: Regenerate.
11650 * features/tic6x-core.c: Regenerate.
11651 * features/tic6x-gp.c: Regenerate.
11652 * target-descriptions.c: Use common/tdesc.h.
11653 * target-descriptions.h: Likewise.
11654
11655 2018-02-24 Tom Tromey <tom@tromey.com>
11656
11657 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11658 (try_thread_db_load_from_dir, thread_db_load_search): Use
11659 std::string.
11660 (info_auto_load_libthread_db_compare): Return bool. Change
11661 argument types.
11662 (info_auto_load_libthread_db): Use std::vector, std::string.
11663 Remove cleanups.
11664
11665 2018-02-24 Tom Tromey <tom@tromey.com>
11666
11667 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11668 std::string.
11669 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11670 std::string*.
11671 * gdbarch.c: Rebuild.
11672 * gdbarch.h: Rebuild.
11673 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11674 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11675 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11676 std::string*.
11677
11678 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11679
11680 * gdbtypes.h (sect_offset): Change type to uint64_t.
11681 (sect_offset_str): New function.
11682 * dwarf2read.c (create_addrmap_from_aranges): Use
11683 sect_offset_str.
11684 (error_check_comp_unit_head): Likewise.
11685 (create_debug_type_hash_table): Likewise.
11686 (read_cutu_die_from_dwo): Likewise.
11687 (init_cutu_and_read_dies): Likewise.
11688 (init_cutu_and_read_dies_no_follow): Likewise.
11689 (process_psymtab_comp_unit_reader): Likewise.
11690 (partial_die_parent_scope): Likewise.
11691 (peek_die_abbrev): Likewise.
11692 (process_queue): Likewise.
11693 (dwarf2_physname): Likewise.
11694 (read_namespace_alias): Likewise.
11695 (read_import_statement): Likewise.
11696 (create_dwo_cu_reader): Likewise.
11697 (create_cus_hash_table): Likewise.
11698 (lookup_dwo_cutu): Likewise.
11699 (inherit_abstract_dies): Likewise.
11700 (read_func_scope): Likewise.
11701 (read_call_site_scope): Likewise.
11702 (dwarf2_add_member_fn): Likewise.
11703 (read_common_block): Likewise.
11704 (read_module_type): Likewise.
11705 (read_typedef): Likewise.
11706 (read_subrange_type): Likewise.
11707 (load_partial_dies): Likewise.
11708 (read_partial_die): Likewise.
11709 (find_partial_die): Likewise.
11710 (read_str_index): Likewise.
11711 (dwarf2_string_attr): Likewise.
11712 (build_error_marker_type): Likewise.
11713 (lookup_die_type): Likewise.
11714 (dump_die_shallow): Likewise.
11715 (follow_die_ref): Likewise.
11716 (dwarf2_fetch_die_loc_sect_off): Likewise.
11717 (dwarf2_fetch_constant_bytes): Likewise.
11718 (follow_die_sig): Likewise.
11719 (get_signatured_type): Likewise.
11720 (get_DW_AT_signature_type): Likewise.
11721 (dwarf2_find_containing_comp_unit): Likewise.
11722 (set_die_type): Likewise.
11723
11724 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11725
11726 * arch/aarch64.c: Include "common-defs.h".
11727 * arch/amd64.c: Likewise.
11728 * arch/i386.c: Likewise.
11729
11730 2018-02-21 Tom Tromey <tom@tromey.com>
11731
11732 * value.h: (extract_field_op): Update.
11733 * eval.c (extract_field_op): Return a const char *.
11734 * expression.h (parse_expression_for_completion): Update.
11735 * completer.c (complete_expression): Update.
11736 (add_struct_fields): Make fieldname const.
11737 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11738 (mark_completion_tag, parse_exp_in_context_1): Update.
11739 (parse_expression_for_completion): Change "name" to
11740 unique_xmalloc_ptr*.
11741
11742 2018-02-21 Tom Tromey <tom@tromey.com>
11743
11744 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11745
11746 2018-02-21 Yao Qi <yao.qi@linaro.org>
11747
11748 * avr-tdep.c (avr_read_pc): Change parameter type to
11749 readable_regcache.
11750 * gdbarch.sh (read_pc): Likewise.
11751 * gdbarch.c: Re-generated.
11752 * gdbarch.h: Re-generated.
11753 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11754 readable_regcache.
11755 * ia64-tdep.c (ia64_read_pc): Likewise.
11756 * mips-tdep.c (mips_read_pc): Likewise.
11757 * spu-tdep.c (spu_read_pc): Likewise.
11758
11759 2018-02-21 Yao Qi <yao.qi@linaro.org>
11760
11761 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11762 * regcache-dump.c: New file.
11763 * regcache.c: Move register_dump to regcache-dump.c.
11764 (maintenance_print_registers): Likewise.
11765 (maintenance_print_raw_registers): Likewise.
11766 (maintenance_print_cooked_registers): Likewise.
11767 (maintenance_print_register_groups): Likewise.
11768 (maintenance_print_remote_registers): Likewise.
11769 (_initialize_regcache): Likewise.
11770 * regcache.h (register_dump): Moved from regcache.c.
11771
11772 2018-02-21 Yao Qi <yao.qi@linaro.org>
11773
11774 * regcache.c (regcache::regcache): Update.
11775 (regcache::invalidate): Move it to detached_regcache::invalidate.
11776 (get_thread_arch_aspace_regcache): Update.
11777 (regcache::raw_update): Update.
11778 (regcache::cooked_read): Remove some code.
11779 (regcache::cooked_read_value): Likewise.
11780 (regcache::raw_write): Remove assert on m_readonly_p.
11781 (regcache::raw_supply_integer): Move it to
11782 detached_regcache::raw_supply_integer.
11783 (regcache::raw_supply_zeroed): Likewise.
11784 * regcache.h (detached_regcache) <raw_supply_integer>: New
11785 declaration.
11786 <raw_supply_zeroed, invalidate>: Likewise.
11787 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11788 <invalidate>: Likewise.
11789 <m_readonly_p>: Removed.
11790
11791 2018-02-21 Yao Qi <yao.qi@linaro.org>
11792
11793 * infcmd.c (get_return_value): Let stop_regs point to
11794 get_current_regcache.
11795 * regcache.c (regcache::regcache): Remove.
11796 (register_dump_reg_buffer): New class.
11797 (regcache_print): Adjust.
11798 * regcache.h (regcache): Remove constructors.
11799
11800 2018-02-21 Yao Qi <yao.qi@linaro.org>
11801
11802 * regcache.c (class register_dump): New class.
11803 (register_dump_regcache, register_dump_none): New class.
11804 (register_dump_remote, register_dump_groups): New class.
11805 (regcache_print): Update.
11806 * regcache.h (regcache_dump_what): Move it to regcache.c.
11807 (regcache) <dump>: Remove.
11808
11809 2018-02-21 Yao Qi <yao.qi@linaro.org>
11810
11811 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11812 reg_buffer_rw *.
11813 (jit_unwind_reg_set_impl): Call raw_supply.
11814 (jit_frame_sniffer): Use reg_buffer_rw.
11815 * record-full.c (record_full_core_regbuf): Change its type.
11816 (record_full_core_open_1): Use reg_buffer_rw.
11817 (record_full_close): Likewise.
11818 (record_full_core_fetch_registers): Use regcache->raw_supply.
11819 (record_full_core_store_registers): Likewise.
11820 * regcache.c (regcache::get_register_status): Move it to
11821 reg_buffer.
11822 (regcache_raw_set_cached_value): Remove.
11823 (regcache::raw_set_cached_value): Remove.
11824 (regcache::raw_write): Call raw_supply.
11825 (regcache::raw_supply): Move it to reg_buffer_rw.
11826 * regcache.h (regcache_raw_set_cached_value): Remove.
11827 (reg_buffer_rw): New class.
11828
11829 2018-02-21 Yao Qi <yao.qi@linaro.org>
11830
11831 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11832 readonly_detached_regcache.
11833 (dummy_frame_prev_register): Use regcache->cooked_read.
11834 * frame.c (frame_save_as_regcache): Change return type.
11835 (frame_pop): Update.
11836 * frame.h (frame_save_as_regcache): Update declaration.
11837 * inferior.h (get_infcall_suspend_state_regcache): Update
11838 declaration.
11839 * infrun.c (infcall_suspend_state) <registers>: use
11840 readonly_detached_regcache.
11841 (save_infcall_suspend_state): Don't use regcache_dup.
11842 (get_infcall_suspend_state_regcache): Change return type.
11843 * linux-fork.c (struct fork_info) <savedregs>: Change to
11844 readonly_detached_regcache.
11845 <pc>: New field.
11846 (fork_save_infrun_state): Don't use regcache_dup.
11847 (info_checkpoints_command): Adjust.
11848 * mi/mi-main.c (register_changed_p): Update declaration.
11849 (mi_cmd_data_list_changed_registers): Use
11850 readonly_detached_regcache.
11851 (register_changed_p): Change parameter type to
11852 readonly_detached_regcache.
11853 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11854 readonly_detached_regcache.
11855 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11856 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11857 New.
11858 (regcache::save): Move it to reg_buffer.
11859 (regcache::restore): Change parameter type.
11860 (regcache_dup): Remove.
11861 * regcache.h (reg_buffer) <save>: New method.
11862 (readonly_detached_regcache): New class.
11863 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11864 readonly_detached_regcache.
11865 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11866
11867 2018-02-21 Yao Qi <yao.qi@linaro.org>
11868
11869 * frame.c (frame_save_as_regcache): Use regcache method save.
11870 (frame_pop): Use regcache method restore.
11871 * infrun.c (restore_infcall_suspend_state): Likewise.
11872 * linux-fork.c (fork_load_infrun_state): Likewise.
11873 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11874 save.
11875 * regcache.c (regcache_save): Remove.
11876 (regcache::restore): More asserts.
11877 (regcache_cpy): Remove.
11878 * regcache.h (regcache_save): Remove the declaration.
11879 (regcache::restore): Move from private to public.
11880 Remove the friend declaration of regcache_cpy.
11881 (regcache_cpy): Remove declaration.
11882
11883 2018-02-21 Yao Qi <yao.qi@linaro.org>
11884
11885 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11886 parameter type to 'readable_regcache *'.
11887 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11888 * arm-tdep.c (arm_neon_quad_read): Likewise.
11889 (arm_pseudo_read): Likewise.
11890 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11891 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11892 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11893 * gdbarch.c: Re-generated.
11894 * gdbarch.h: Re-generated.
11895 * gdbarch.sh (pseudo_register_read): Change parameter type to
11896 'readable_regcache *'.
11897 (pseudo_register_read_value): Likewise.
11898 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11899 (h8300_pseudo_register_read): Likewise.
11900 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11901 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11902 (i386_pseudo_register_read_into_value): Likewise.
11903 (i386_pseudo_register_read_value): Likewise.
11904 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11905 declaration.
11906 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11907 * m32c-tdep.c (m32c_raw_read): Likewise.
11908 (m32c_read_flg): Likewise.
11909 (m32c_banked_register): Likewise.
11910 (m32c_banked_read): Likewise.
11911 (m32c_sb_read): Likewise.
11912 (m32c_part_read): Likewise.
11913 (m32c_cat_read): Likewise.
11914 (m32c_r3r2r1r0_read): Likewise.
11915 (m32c_pseudo_register_read): Likewise.
11916 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11917 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11918 (mep_pseudo_cr64_read): Likewise.
11919 (mep_pseudo_register_read): Likewise.
11920 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11921 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11922 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11923 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11924 (regcache::cooked_read): Likewise.
11925 (regcache::cooked_read_value): Likewise.
11926 (regcache_cooked_read_signed):
11927 (regcache::cooked_read): Likewise.
11928 * regcache.h (readable_regcache): New class.
11929 (regcache): Inherit readable_regcache. Move some methods to
11930 readable_regcache.
11931 * rl78-tdep.c (rl78_pseudo_register_read): Change
11932 parameter type to 'readable_regcache *'.
11933 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11934 (e500_pseudo_register_read): Change parameter type to
11935 'readable_regcache *'.
11936 (dfp_pseudo_register_read): Likewise.
11937 (vsx_pseudo_register_read): Likewise.
11938 (efpr_pseudo_register_read): Likewise.
11939 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11940 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11941 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11942 (sh64_pseudo_register_read): Likewise.
11943 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11944 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11945 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11946 (spu_pseudo_register_read): Likewise.
11947 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11948 (xtensa_pseudo_register_read): Likewise.
11949
11950 2018-02-21 Yao Qi <yao.qi@linaro.org>
11951
11952 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11953 (regcache::arch): Move it to reg_buffer::arch.
11954 (regcache::register_buffer): Likewise.
11955 (regcache::assert_regnum): Likewise.
11956 (regcache::num_raw_registers): Likewise.
11957 * regcache.h (reg_buffer): New class.
11958 (regcache): Inherit reg_buffer.
11959
11960 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11961
11962 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11963 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11964
11965 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11966
11967 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11968
11969 2018-02-19 Alan Hayward <alan.hayward@arm.com>
11970
11971 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11972 (SFILES): Remove common/*.c files.
11973 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11974 * common/common.host: Add common reference.
11975 * configure.ac: Likewise.
11976 * configure: Regenerate.
11977
11978 2018-02-16 Yao Qi <yao.qi@linaro.org>
11979
11980 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11981 (block_initialize_namespace): Use new.
11982 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11983 (dwarf2_free_objfile): Use delete.
11984 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11985 (copy_type_recursive): Use new.
11986 * gdb_obstack.h (allocate_on_obstack): New.
11987
11988 2018-02-15 Yao Qi <yao.qi@linaro.org>
11989
11990 PR gdb/22849
11991 * inferior.c (exit_inferior_1): Reset inf->control.
11992
11993 2018-02-15 Joel Brobecker <brobecker@adacore.com>
11994
11995 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11996 declaration.
11997
11998 2018-02-14 Pedro Alves <palves@redhat.com>
11999
12000 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12001 frame_cleanup_after_sniffer on exception.
12002
12003 2018-02-14 Tom Tromey <tom@tromey.com>
12004
12005 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12006 const.
12007 (solib_bfd_open): Make pathname const.
12008 * solib.c (solib_bfd_open): Make pathname const.
12009 * solib-spu.c (spu_bfd_fopen): Make name const.
12010 (spu_bfd_open): Make pathname const.
12011 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12012 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12013
12014 2018-02-14 Tom Tromey <tom@tromey.com>
12015
12016 * symfile.c (symfile_bfd_open): Update.
12017 * source.h (openp, source_full_path_of, find_and_open_source):
12018 Change argument type to unique_xmalloc_ptr.
12019 * source.c (openp): Take a unique_xmalloc_ptr.
12020 (source_full_path_of, find_and_open_source): Likewise.
12021 (open_source_file, symtab_to_fullname): Update.
12022 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12023 unique_xmalloc_ptr.
12024 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12025 (exec_file_find): Update.
12026 * psymtab.c (psymtab_to_fullname): Update.
12027 * nto-tdep.h (nto_find_and_open_solib): Update.
12028 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12029 unique_xmalloc_ptr.
12030 * exec.c (exec_file_attach): Update.
12031 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12032 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12033
12034 2018-02-14 Tom Tromey <tom@tromey.com>
12035
12036 * solib.c: Include source.h.
12037 * nto-tdep.c: Include source.h.
12038 * mi/mi-cmd-env.c: Include source.h.
12039 * infcmd.c: Include source.h.
12040 * exec.c: Include source.h.
12041 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12042 (add_path, directory_switch, source_path, init_source_path): Move
12043 declarations...
12044 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12045 (add_path, directory_switch, source_path, init_source_path):
12046 ...here.
12047
12048 2018-02-14 Tom Tromey <tom@tromey.com>
12049
12050 * solist.h (exec_file_find, solib_find): Return
12051 unique_xmalloc_ptr.
12052 (solib_bfd_fopen): Take a const char *.
12053 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12054 (exec_file_find, solib_find): Likewise.
12055 (solib_bfd_fopen): Do not take ownership of "pathname".
12056 (solib_bfd_open): Use unique_xmalloc_ptr.
12057 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12058 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12059 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12060 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12061
12062 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12063
12064 * ada-lang.c (name_match_type_from_name): Remove reference to
12065 ada_name_for_lookup in function's documentation.
12066 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12067
12068 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12069
12070 * defs.h (enum openp_flags): New enum.
12071 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12072 Move to enum openp_flags.
12073 (openp_flags): New enum flags.
12074 (openp): Change parameter type to openp_flags.
12075 * source.c (openp): Change parameter type to openp_flags.
12076 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12077 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12078
12079 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12080
12081 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12082 per-command.
12083
12084 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12085
12086 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12087 into...
12088 (class dwarf2_queue_guard): ...the destructor of this new class.
12089 (dw2_do_instantiate_symtab): Create instance of the new class
12090 dwarf2_queue_guard, remove cleanup.
12091
12092 2018-02-09 Tom Tromey <tom@tromey.com>
12093
12094 * source.c (find_source_lines): Don't reference past the end of
12095 the vector.
12096
12097 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12098
12099 * remote.c (remote_btrace_maybe_reopen): Change error message.
12100 * btrace.c (btrace_enable): Likewise.
12101 (parse_xml_btrace): Likewise.
12102 (parse_xml_btrace_conf): Likewise.
12103
12104 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12105
12106 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12107 (linux_enable_pt, linux_enable_bts): Call
12108 diagnose_perf_event_open_fail.
12109
12110 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12111
12112 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12113 Remove parameter and change return type. Update callers. Move it.
12114 (linux_enable_bts, linux_enable_pt): Improve error message.
12115 (linux_enable_pt): Remove zero buffer size check.
12116 (linux_enable_btrace): Improve error messages. Remove NULL return
12117 check.
12118
12119 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12120
12121 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12122 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12123 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12124 (linux_supports_pt, linux_supports_btrace): Remove.
12125 (linux_enable_bts): Call cpu_supports_bts.
12126 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12127 * remote.c (remote_supports_btrace): Remove.
12128 (init_remote_ops): Remove remote_supports_btrace.
12129 * target-delegates.c: Regenerated.
12130 * target.c (target_supports_btrace): Remove.
12131 * target.h (target_ops) <to_supports_btrace>: Remove
12132 (target_supports_btrace): Remove.
12133 * x86-linux-nat.c (x86_linux_create_target): Remove
12134 linux_supports_btrace.
12135
12136 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12137
12138 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12139 btrace failed.
12140 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12141 exception and use message in own exception.
12142
12143 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12144
12145 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12146 (perf_event_pt_event_type): Use gdb_file_up.
12147 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12148 scoped_fd, and scoped_mmap.
12149
12150 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12151
12152 * common/scoped_mmap.h: New.
12153 * unittests/scoped_mmap-selftest.c: New.
12154 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12155 unittests/scoped_mmap-selftest.c.
12156
12157 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12158
12159 * common/scoped_fd.h: New.
12160 * unittests/scoped_fd-selftest.c: New.
12161 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12162 unittests/scoped_fd-selftest.c.
12163
12164 2018-02-09 Tom Tromey <tom@tromey.com>
12165
12166 * auto-load.c (auto_load_section_scripts): Use
12167 gdb::unique_xmalloc_ptr.
12168
12169 2018-02-09 Tom Tromey <tom@tromey.com>
12170
12171 * auto-load.c (execute_script_contents): Use std::string.
12172
12173 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12174
12175 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12176 Python function, rather than a new command.
12177
12178 2018-02-08 Tom Tromey <tom@tromey.com>
12179
12180 * solib.c (solib_find_1): Use std::string.
12181 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12182
12183 2018-02-08 Tom Tromey <tom@tromey.com>
12184
12185 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12186
12187 2018-02-08 Tom Tromey <tom@tromey.com>
12188
12189 * source.c (find_source_lines): Use gdb::def_vector.
12190
12191 2018-02-08 Tom Tromey <tom@tromey.com>
12192
12193 * macrocmd.c (struct temporary_macro_definition): New.
12194 (macro_define_command): Use temporary_macro_definition. Remove
12195 cleanups.
12196 (free_macro_definition_ptr): Remove.
12197
12198 2018-02-08 Tom Tromey <tom@tromey.com>
12199
12200 * macroexp.c (maybe_expand): Use std::string.
12201
12202 2018-02-08 Tom Tromey <tom@tromey.com>
12203
12204 * macroexp.c (struct macro_buffer): Add initializers for some
12205 members.
12206 (init_buffer, init_shared_buffer, free_buffer)
12207 (free_buffer_return_text): Remove.
12208 (macro_buffer): New constructors.
12209 (~macro_buffer): New destructor.
12210 (macro_buffer::set_shared): New method.
12211 (macro_buffer::resize_buffer, macro_buffer::appendc)
12212 (macro_buffer::appendmem): Now methods, not free functions.
12213 (set_token, append_tokens_without_splicing, stringify)
12214 (macro_stringify): Update.
12215 (gather_arguments): Change return type. Remove argc_p argument,
12216 add args_ptr argument. Use std::vector.
12217 (substitute_args): Remove argc argument. Accept std::vector.
12218 (expand): Update. Use std::vector.
12219 (scan, macro_expand, macro_expand_next): Update.
12220
12221 2018-02-08 Tom Tromey <tom@tromey.com>
12222
12223 * symtab.c (default_collect_symbol_completion_matches_break_on):
12224 Use unique_xmalloc_ptr.
12225 * macroscope.h: (sal_macro_scope, user_macro_scope)
12226 (default_macro_scope): Return unique_xmalloc_ptr.
12227 * macroscope.c (sal_macro_scope, user_macro_scope)
12228 (default_macro_scope): Return unique_xmalloc_ptr.
12229 * macroexp.h (macro_expand, macro_expand_once): Return
12230 unique_xmalloc_ptr.
12231 * macroexp.c (macro_expand, macro_expand_once): Return
12232 unique_xmalloc_ptr.
12233 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12234 (info_macro_command, info_macros_command): Use
12235 unique_xmalloc_ptr.
12236 * compile/compile-c-support.c (write_macro_definitions): Use
12237 unique_xmalloc_ptr.
12238 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12239
12240 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12241
12242 * value.c (value_static_field): Assign field type instead of
12243 containing type when returning an optimized out value.
12244
12245 2018-02-06 Yao Qi <yao.qi@linaro.org>
12246
12247 * ft32-tdep.c (ft32_read_pc): Remove.
12248 (ft32_write_pc): Remove.
12249 (ft32_gdbarch_init): Update.
12250 * m32r-tdep.c (m32r_read_pc): Remove.
12251 (m32r_gdbarch_init): Update.
12252 * mep-tdep.c (mep_read_pc): Remove.
12253 (mep_gdbarch_init): Update.
12254 * microblaze-tdep.c (microblaze_write_pc): Remove.
12255 (microblaze_gdbarch_init): Update.
12256 * mn10300-tdep.c (mn10300_read_pc): Remove.
12257 (mn10300_write_pc): Remove.
12258 (mn10300_gdbarch_init): Update.
12259 * moxie-tdep.c (moxie_read_pc): Remove.
12260 (moxie_write_pc): Remove.
12261 (moxie_gdbarch_init): Update.
12262
12263 2018-02-06 Yao Qi <yao.qi@linaro.org>
12264
12265 * expprint.c (print_subexp_standard): Handle
12266 OP_F77_UNDETERMINED_ARGLIST.
12267 (dump_subexp_body_standard): Likewise.
12268
12269 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12270
12271 * target-descriptions.c (tdesc_element_visitor) Add empty
12272 implementations.
12273 (tdesc_type): Move make_gdb_type from here.
12274 (tdesc_type_builtin): Likewise.
12275 (tdesc_type_vector): Likewise.
12276 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12277 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12278 (make_gdb_type_union): Likewise.
12279 (make_gdb_type_flags): Likewise.
12280 (make_gdb_type_enum): Likewise.
12281 (make_gdb_type): New function.
12282 (tdesc_register_type): Use static make_gdb_type.
12283
12284 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12285
12286 * infcmd.c (default_print_one_register_info): Align natural-format
12287 column values consistently one under another.
12288 (pad_to_column): New function.
12289
12290 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12291
12292 * dwarf2read.c (dwarf2_physname): Move commment.
12293
12294 2018-02-01 Leszek Swirski <leszeks@google.com>
12295
12296 * varobj.c (varobj_formatted_print_options): Allow recursive
12297 pretty printing if pretty printing is enabled.
12298
12299 2018-02-01 Leszek Swirski <leszeks@google.com>
12300
12301 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12302 names after a structop as a filename.
12303
12304 2018-02-01 Yao Qi <yao.qi@linaro.org>
12305
12306 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12307 (arm_record_coproc_data_proc): Likewise.
12308
12309 2018-02-01 Yao Qi <yao.qi@linaro.org>
12310
12311 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12312
12313 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12314
12315 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12316 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12317
12318 2018-01-31 Pedro Alves <palves@redhat.com>
12319
12320 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12321 * inflow.c (child_terminal_save_inferior): Wrap reference to
12322 tcgetpgrp in HAVE_TERMIOS_H.
12323 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12324 _WIN32.
12325 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12326 always iterate over all inferiors.
12327 (gdbsim_cntrl_c): Adjust.
12328 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12329
12330 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12331
12332 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12333 index type is objfile-owned if the element type is as well.
12334
12335 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12336
12337 GDB 8.1 released.
12338
12339 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12340
12341 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12342 "features/s390x-linux64.c".
12343 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12344 s390_linux32 and s390x_linux64.
12345 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12346 default tdesc.
12347 * s390-tdep.c: Include "features/s390-linux32.c" and
12348 "features/s390x-linux64.c".
12349 (s390_tdesc_valid): Add check for tdesc_has_registers.
12350 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12351 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12352 tdesc_s390x_linux64.
12353 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12354 tdesc_s390x_linux64 to...
12355 * s390-tdep.h: ...here.
12356
12357 2018-01-30 Pedro Alves <palves@redhat.com>
12358
12359 PR gdb/13211
12360 * config.in, configure: Regenerate.
12361 * configure.ac: Check for getpgid.
12362 * go32-nat.c (go32_pass_ctrlc): New.
12363 (go32_target): Install it.
12364 * inf-child.c (inf_child_target): Install
12365 child_terminal_save_inferior, child_pass_ctrlc and
12366 child_interrupt.
12367 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12368 (inf_ptrace_target): No longer install it.
12369 * infcmd.c (interrupt_target_1): Adjust.
12370 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12371 (child_interrupt): Declare.
12372 (inferior::terminal_state): New.
12373 * inflow.c (struct terminal_info): Update comments.
12374 (inferior_process_group): Delete.
12375 (terminal_is_ours): Delete.
12376 (gdb_tty_state): New.
12377 (child_terminal_init): Adjust.
12378 (is_gdb_terminal, sharing_input_terminal_1)
12379 (sharing_input_terminal): New functions.
12380 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12381 Set the process's actual process group in the foreground if
12382 possible. Handle is_ours_for_output/is_ours distinction. Don't
12383 mark terminal as the inferior's if not sharing GDB's terminal.
12384 Don't check attach_flag.
12385 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12386 pass down a target_terminal_state.
12387 (child_terminal_save_inferior): New, factored out from ...
12388 (child_terminal_ours_1): ... this. Handle
12389 target_terminal_state::is_ours_for_output.
12390 (child_interrupt, child_pass_ctrlc): New.
12391 (inflow_inferior_exit): Clear the inferior's terminal_state.
12392 (copy_terminal_info): Copy the inferior's terminal state.
12393 (_initialize_inflow): Remove reference to terminal_is_ours.
12394 * inflow.h (inferior_process_group): Delete.
12395 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12396 * procfs.c (procfs_target): Don't install procfs_interrupt.
12397 (procfs_interrupt): Delete.
12398 * remote.c (remote_serial_quit_handler): Adjust.
12399 (remote_interrupt): Remove ptid parameter. Adjust.
12400 * target-delegates.c: Regenerate.
12401 * target.c: Include "terminal.h".
12402 (target_terminal::terminal_state): Rename to ...
12403 (target_terminal::m_terminal_state): ... this.
12404 (target_terminal::init): Adjust.
12405 (target_terminal::inferior): Adjust to per-inferior
12406 terminal_state.
12407 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12408 (target_terminal::ours, target_terminal::ours_for_output): Use
12409 target_terminal_is_ours_kind.
12410 (target_interrupt): Remove ptid parameter. Adjust.
12411 (default_target_pass_ctrlc): Adjust.
12412 * target.h (target_ops::to_terminal_save_inferior): New field.
12413 (target_ops::to_interrupt): Remove ptid_t parameter.
12414 (target_interrupt): Remove ptid_t parameter. Update comment.
12415 (target_pass_ctrlc): Update comment.
12416 * target/target.h (target_terminal_state): New scoped enum,
12417 factored out of ...
12418 (target_terminal::terminal_state): ... here.
12419 (target_terminal::inferior): Update comments.
12420 (target_terminal::restore_inferior): New.
12421 (target_terminal::is_inferior, target_terminal::is_ours)
12422 (target_terminal::is_ours_for_output): Adjust.
12423 (target_terminal::scoped_restore_terminal_state): Adjust to
12424 rename, and call restore_inferior() instead of inferior().
12425 (target_terminal::scoped_restore_terminal_state::m_state): Change
12426 type.
12427 (target_terminal::terminal_state): Rename to ...
12428 (target_terminal::m_terminal_state): ... this and change type.
12429
12430 2018-01-30 Pedro Alves <palves@redhat.com>
12431
12432 * linux-nat.c (wait_for_signal): New function.
12433 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12434 directly.
12435 (async_terminal_is_ours)
12436 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12437 (linux_nat_add_target): Don't override
12438 to_terminal_inferior/to_terminal_ours.
12439
12440 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12441
12442 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12443
12444 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12445
12446 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12447 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12448 dwarf2_per_objfile_free here.
12449 (dwarf2_per_objfile_free): Remove.
12450 (_initialize_dwarf2_read): Don't register
12451 dwarf2_per_objfile_free as a registry cleanup.
12452
12453 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12454
12455 Avoid compilation errors in MinGW native builds
12456
12457 The error is triggered by including python-internal.h, and the
12458 error message is:
12459
12460 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12461 from build-gnulib/import/math.h:27,
12462 from d:/usr/Python26/include/pyport.h:235,
12463 from d:/usr/Python26/include/Python.h:58,
12464 from python/python-internal.h:94,
12465 from python/py-arch.c:24:
12466 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12467 using ::hypot;
12468 ^~~~~
12469
12470 This happens because Python headers define 'hypot' to expand t
12471 '_hypot' in the Windows builds.
12472 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12473 'hypoth'. This avoids a compilation error.
12474
12475 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12476
12477 * MAINTAINERS (Write After Approval): Fix ordering.
12478
12479 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12480
12481 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12482
12483 2018-01-26 Alan Modra <amodra@gmail.com>
12484
12485 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12486 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12487 Remove nop. Make const. Comment.
12488 (powerpc32_plt_stub_so_2): New.
12489 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12490 Correct count. Update uses.
12491 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12492 Move common code reading PLT entry word. Correct
12493 powerpc32_plt_stub PLT address calculation.
12494 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12495 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12496 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12497 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12498 (ppc64_standard_linkage8): Likewise.
12499 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12500 Correct insns description.
12501 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12502
12503 2018-01-24 Pedro Alves <palves@redhat.com>
12504
12505 GCC PR libstdc++/83906
12506 * gdbtypes.c (operator==(const dynamic_prop &,
12507 const dynamic_prop &)): New.
12508 (operator==(const range_bounds &, const range_bounds &)): New.
12509 (check_types_equal): Use them instead of memcmp.
12510 * gdbtypes.h (operator==(const dynamic_prop &,
12511 const dynamic_prop &)): Declare.
12512 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12513 (operator==(const range_bounds &, const range_bounds &)): Declare.
12514 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12515
12516 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12517
12518 * s390-linux-tdep.c (s390_record_address_mask)
12519 (s390_record_calc_disp_common, s390_record_calc_disp)
12520 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12521 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12522 (s390_process_record): Move to s390-tdep.c.
12523 (s390_linux_init_abi_any): Adjust.
12524 * s390-tdep.c (s390_record_address_mask)
12525 (s390_record_calc_disp_common, s390_record_calc_disp)
12526 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12527 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12528 (s390_process_record): Moved from s390-linux-tdep.c
12529 (s390_gdbarch_init): Adjust.
12530
12531 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12532
12533 * s390-linux-nat.c (s390-tdep.h): New include.
12534 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12535 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12536 (ALLDEPFILES): Add s390-tdep.c.
12537 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12538 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12539 * s390-tdep.h: ...this. New file.
12540 * s390-linux-tdep.c (s390-tdep.h): New include.
12541 (_initialize_s390_tdep): Rename to...
12542 (_initialize_s390_linux_tdep): ...this and adjust.
12543 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12544 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12545 s390-tdep.h.
12546 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12547 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12548 (s390_is_partial_instruction, s390_software_single_step)
12549 (is_non_branch_ril, s390_displaced_step_copy_insn)
12550 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12551 (s390_prologue_data, s390_addr, s390_store, s390_load)
12552 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12553 (s390_register_call_saved, s390_guess_tracepoint_registers)
12554 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12555 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12556 (s390_pseudo_register_name, s390_pseudo_register_type)
12557 (s390_pseudo_register_read, s390_pseudo_register_write)
12558 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12559 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12560 (s390_addr_bits_remove, s390_address_class_type_flags)
12561 (s390_address_class_type_flags_to_name)
12562 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12563 (s390_function_arg_float, s390_function_arg_vector)
12564 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12565 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12566 (s390_frame_align, s390_register_return_value, s390_return_value)
12567 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12568 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12569 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12570 (s390_trad_frame_prev_register, s390_unwind_cache)
12571 (s390_prologue_frame_unwind_cache)
12572 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12573 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12574 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12575 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12576 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12577 (s390_frame_base_address, s390_local_base_address)
12578 (s390_frame_base, s390_gcc_target_options)
12579 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12580 (s390_validate_reg_range, s390_tdesc_valid)
12581 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12582 * s390-tdep.c: ...this. New file.
12583
12584 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12585
12586 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12587 (s390_process_record, s390_gdbarch_tdep_alloc)
12588 (s390_linux_init_abi_any): Use/set new hook.
12589
12590 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12591
12592 * s390-linux-tdep.c (osabi.h): New include.
12593 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12594 (s390_linux_init_abi_any): New functions.
12595 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12596
12597 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12598
12599 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12600 tdesc_has_registers check
12601
12602 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12603
12604 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12605 (s390_validate_reg_range): New macro.
12606 (s390_gdbarch_init): Adjust.
12607
12608 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12609
12610 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12611 (s390_gdbarch_tdep_alloc): Adjust.
12612 (s390_gdbarch_init): Adjust.
12613
12614 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12615
12616 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12617 <have_tdb>: Change type to bool.
12618 (s390_gdbarch_tdep_alloc): Adjust.
12619 (s390_gdbarch_init): Adjust.
12620
12621 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12622
12623 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12624 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12625 (s390_gdbarch_tdep_alloc): New function.
12626 (s390_gdbarch_init): Allocate tdep at start and use its fields
12627 instead of separate variables.
12628
12629 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12630
12631 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12632 when looking for cached gdbarch and add comment for remaining.
12633
12634 2018-01-22 Pedro Alves <palves@redhat.com>
12635 Sergio Durigan Junior <sergiodj@redhat.com>
12636
12637 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12638 case.
12639
12640 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12641
12642 * MAINTAINERS: Update my company e-mail address.
12643
12644 2018-01-22 Yao Qi <yao.qi@linaro.org>
12645
12646 * regcache.c (cooked_write_test): New function.
12647 (_initialize_regcache): Register the test.
12648
12649 2018-01-22 Yao Qi <yao.qi@linaro.org>
12650
12651 * ia64-tdep.c (ia64_pseudo_register_read): Call
12652 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12653 * m32c-tdep.c (m32c_cat_read): Likewise.
12654 (m32c_r3r2r1r0_read): Likewise.
12655 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12656 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12657
12658 2018-01-22 Yao Qi <yao.qi@linaro.org>
12659
12660 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12661 method raw_read instead of regcache_raw_read.
12662 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12663 * arm-tdep.c (arm_neon_quad_read): Likewise.
12664 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12665 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12666 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12667 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12668 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12669 (i386_pseudo_register_read_into_value): Likewise.
12670 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12671 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12672 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12673 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12674 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12675 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12676 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12677 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12678 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12679
12680 2018-01-22 Yao Qi <yao.qi@linaro.org>
12681
12682 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12683 * configure.tgt: Remove target mt.
12684 * mt-tdep.c: Remove.
12685 * regcache.c (cooked_read_test): Remove the check for mt.
12686
12687 2018-01-22 Yao Qi <yao.qi@linaro.org>
12688
12689 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12690 instead of gdbarch_pseudo_register_read_value.
12691
12692 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12693
12694 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12695 language is Ada.
12696
12697 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12698
12699 * linespec.c (create_sals_line_offset): Remove code that preserved
12700 the symtab_and_line's line number.
12701
12702 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12703
12704 * varobj.c (varobj_create): Don't set valid_block when creating a
12705 floating varobj.
12706
12707 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12708
12709 * varobj.c (varobj_create): Remove out of date comment.
12710
12711 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12712
12713 PR mi/20395
12714 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12715 updating innermost block.
12716 * parse.c (innermost_block_tracker::update): Take extra type
12717 parameter, and check types match before updating innermost block.
12718 (write_dollar_variable): Update innermost block for registers.
12719 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12720 (innermost_block_tracker::innermost_block_tracker): Initialise
12721 m_types member.
12722 (innermost_block_tracker::reset): Take type parameter.
12723 (innermost_block_tracker::update): Take type parameter, and pass
12724 type through as needed.
12725 (innermost_block_tracker::m_types): New member.
12726 * varobj.c (varobj_create): Pass type when reseting innermost
12727 block.
12728
12729 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12730
12731 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12732 * ada-lang.c (resolve_subexp): Likewise.
12733 * breakpoint.c (set_breakpoint_condition) Likewise.
12734 (watch_command_1) Likewise.
12735 * c-exp.y (variable): Likewise.
12736 * d-exp.y (PrimaryExpression): Likewise.
12737 * f-exp.y (variable): Likewise.
12738 * go-exp.y (variable): Likewise.
12739 * m2-exp.y (variable): Likewise.
12740 * objfiles.c (objfile::~objfile): Likewise.
12741 * p-exp.y (variable): Likewise.
12742 * parse.c (innermost_block): Change type.
12743 * parser-defs.h (class innermost_block_tracker): New.
12744 (innermost_block): Change to innermost_block_tracker.
12745 * printcmd.c (display_command): Switch to innermost_block API.
12746 (do_one_display): Likewise.
12747 * rust-exp.y (do_one_display): Likewise.
12748 * symfile.c (clear_symtab_users): Likewise.
12749 * varobj.c (varobj_create): Switch to innermost_block API, replace
12750 use of innermost_block with block stored on varobj object.
12751
12752 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12753
12754 * expression.h (innermost_block): Remove declaration.
12755 * varobj.c: Add 'parser-defs.h' include.
12756
12757 2018-01-19 Tom Tromey <tom@tromey.com>
12758
12759 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12760 symbols in the static and global blocks.
12761
12762 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12763
12764 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12765 gdb_ptrace.h, and move including gdb_wait.h ...
12766 * nat/linux-ptrace.h: ... to here.
12767
12768 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12769
12770 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12771 inf_ptrace_detach_success.
12772 (inf_ptrace_detach_success): Add inferior parameter, use it
12773 instead of inferior_ptid, pass it to detach_inferior.
12774 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12775 parameter.
12776 * inferior.c (detach_inferior): Add overload that takes an
12777 inferior object.
12778 * inferior.h (detach_inferior): Likewise.
12779 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12780 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12781 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12782
12783 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12784
12785 * target.h (struct target_ops) <to_detach>: Add inferior
12786 parameter.
12787 (target_detach): Likewise.
12788 * target.c (dispose_inferior): Pass inferior down.
12789 (target_detach): Pass inferior down. Assert that it is equal to
12790 the current inferior.
12791 * aix-thread.c (aix_thread_detach): Pass inferior down.
12792 * corefile.c (core_file_command): Pass current_inferior() down.
12793 * corelow.c (core_detach): Add inferior parameter.
12794 * darwin-nat.c (darwin_detach): Likewise.
12795 * gnu-nat.c (gnu_detach): Likewise.
12796 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12797 * infcmd.c (detach_command): Pass current_inferior() down to
12798 target_detach.
12799 * infrun.c (follow_fork_inferior): Pass parent_inf to
12800 target_detach.
12801 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12802 target_detach.
12803 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12804 * linux-thread-db.c (thread_db_detach): Likewise.
12805 * nto-procfs.c (procfs_detach): Likewise.
12806 * procfs.c (procfs_detach): Likewise.
12807 * record.c (record_detach): Likewise.
12808 * record.h (struct inferior): Forward-declare.
12809 (record_detach): Add inferior parameter.
12810 * remote-sim.c (gdbsim_detach): Likewise.
12811 * remote.c (remote_detach_1): Likewise.
12812 (remote_detach): Likewise.
12813 (extended_remote_detach): Likewise.
12814 * sol-thread.c (sol_thread_detach): Likewise.
12815 * target-debug.h (target_debug_print_inferior_p): New macro.
12816 * target-delegates.c: Re-generate.
12817 * top.c (kill_or_detach): Pass inferior down to target_detach.
12818 * windows-nat.c (windows_detach): Add inferior parameter.
12819
12820 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12821
12822 * target.h (struct target_ops) <to_detach>: Remove args
12823 parameter.
12824 (target_detach): Likewise.
12825 * target.c (dispose_inferior): Adjust.
12826 (target_detach): Remove args parameter, adjust.
12827 * aix-thread.c (aix_thread_detach): Adjust.
12828 * corefile.c (core_file_command): Adjust.
12829 * corelow.c (core_detach): Adjust.
12830 * darwin-nat.c (darwin_detach): Adjust.
12831 * gnu-nat.c (gnu_detach): Adjust.
12832 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12833 * infcmd.c (detach_command): Adjust
12834 * infrun.c (follow_fork_inferior): Adjust.
12835 (handle_vfork_child_exec_or_exit): Adjust.
12836 * linux-fork.c (linux_fork_detach): Remove args parameter.
12837 * linux-fork.h (linux_fork_detach): Likewise.
12838 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12839 * linux-thread-db.c (thread_db_detach): Likewise.
12840 * nto-procfs.c (procfs_detach): Likewise.
12841 * procfs.c (procfs_detach): Likewise.
12842 (do_detach): Remove signo parameter.
12843 * record.c (record_detach): Remove args parameter.
12844 * record.h (record_detach): Likewise.
12845 * remote-sim.c (gdbsim_detach): Likewise.
12846 * remote.c (remote_detach_1): Likewise.
12847 (remote_detach): Likewise.
12848 (extended_remote_detach): Likewise.
12849 * sol-thread.c (sol_thread_detach): Likewise.
12850 * target-delegates.c: Re-generate.
12851 * top.c (struct qt_args) <args>: Remove field.
12852 (kill_or_detach): Don't pass args.
12853 (quit_force): Don't set args.
12854 * windows-nat.c (windows_detach): Remove args parameter.
12855
12856 2018-01-19 Yao Qi <yao.qi@linaro.org>
12857
12858 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12859 (arm_linux_init_abi): Install it.
12860
12861 2018-01-19 Yao Qi <yao.qi@linaro.org>
12862
12863 * osabi.c (gdb_osabi_names): Extend the regexp for
12864 arm-linux-gnueabihf.
12865
12866 2018-01-18 Yao Qi <yao.qi@linaro.org>
12867
12868 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12869 m_abbrevs.
12870 (abbrev_table::add_abbrev): Update.
12871 (abbrev_table::lookup_abbrev): Update.
12872
12873 2018-01-18 Yao Qi <yao.qi@linaro.org>
12874
12875 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12876
12877 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12878
12879 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12880 to "std::string".
12881
12882 2018-01-17 Tom Tromey <tom@tromey.com>
12883
12884 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12885
12886 2018-01-17 Tom Tromey <tom@tromey.com>
12887
12888 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12889 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12890 (create_array_type_with_stride): Update.
12891 * dwarf2read.c (set_die_type): Update.
12892
12893 2018-01-17 Tom Tromey <tom@tromey.com>
12894
12895 * dwarf2read.c (delayed_method_info): Remove typedef.
12896 (dwarf2_cu::method_info): Now a std::vector.
12897 (add_to_method_list): Update.
12898 (free_delayed_list): Remove.
12899 (compute_delayed_physnames): Update.
12900 (process_full_comp_unit, process_full_type_unit): Clear the method
12901 list. Remove cleanups.
12902 (psymtab_include_file_name): Add name_holder parameter. Use
12903 unique_xmalloc_ptr.
12904 (dwarf_decode_lines): Update.
12905
12906 2018-01-17 Tom Tromey <tom@tromey.com>
12907 Simon Marchi <simon.marchi@ericsson.com>
12908
12909 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12910 (dwarf2_per_objfile::free_cached_comp_units)
12911 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12912 (init_cutu_and_read_dies_no_follow): Update.
12913 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12914 (dwarf2_cu::~dwarf2_cu): New.
12915 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12916 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12917
12918 2018-01-17 Tom Tromey <tom@tromey.com>
12919 Simon Marchi <simon.marchi@ericsson.com>
12920
12921 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12922 (struct die_reader_specs) <abbrev_table>: New member.
12923 (struct abbrev_table): Add constructor.
12924 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12925 <abbrev_obstack>: Now an auto_obstack.
12926 (abbrev_table_up): New typedef.
12927 (init_cu_die_reader): Add abbrev_table parameter.
12928 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12929 Add result_dwo_abbrev_table.
12930 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12931 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12932 Update.
12933 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12934 parameter.
12935 (skip_children): Update.
12936 (abbrev_table::alloc_abbrev): Rename from
12937 abbrev_table_alloc_abbrev.
12938 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12939 (abbrev_table::lookup_abbrev): Rename from
12940 abbrev_table_lookup_abbrev.
12941 (abbrev_table_read_table): Return abbrev_table_up.
12942 (abbrev_table_free, abbrev_table_free_cleanup)
12943 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12944 (load_partial_dies): Update.
12945
12946 2018-01-17 Tom Tromey <tom@tromey.com>
12947
12948 * dwarf2read.c (dwarf2_compute_name): Update comment.
12949 (read_func_scope, read_variable): Update.
12950 (new_symbol): Remove.
12951 (new_symbol_full): Rename to new_symbol.
12952
12953 2018-01-17 Mike Gulick <mgulick@mathworks.com>
12954
12955 PR gdb/16577
12956 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12957 a warning instead of throwing an error, set section size to 0 and return
12958 NULL.
12959 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12960
12961 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12962
12963 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12964 std::string.
12965 (linux_ptrace_attach_fail_reason_string): Likewise.
12966 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12967 Likewise.
12968 (linux_ptrace_attach_fail_reason_string): Likewise.
12969 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12970
12971 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12972
12973 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12974
12975 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12976
12977 PR gdb/21559
12978 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12979 checking for fs_base/gs_base fields in struct user_regs_struct.
12980 * configure: Regenerate.
12981
12982 2018-01-17 Yao Qi <yao.qi@linaro.org>
12983
12984 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12985 function.
12986 (aarch64_linux_init_abi): Install it to gdbarch hook
12987 gcc_target_options.
12988
12989 2018-01-15 Pedro Alves <palves@redhat.com>
12990
12991 * common/signals-state-save-restore.c
12992 (save_original_signals_state): Fix typos.
12993
12994 2017-01-12 Tom Tromey <tom@tromey.com>
12995 Sergio Durigan Junior <sergiodj@redhat.com>
12996
12997 * Makefile.in (install-only): Install gdb-add-index.
12998
12999 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13000
13001 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13002
13003 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13004
13005 * infrun.c (keep_going_pass_signal): Clear step-over info when
13006 insert_breakpoints fails.
13007
13008 2018-01-11 Pedro Alves <palves@redhat.com>
13009
13010 PR gdb/22583
13011 * infrun.c (resume): Rename to ...
13012 (resume_1): ... this.
13013 (resume): Reimplement as wrapper around resume_1.
13014
13015 2018-01-11 Pedro Alves <palves@redhat.com>
13016
13017 PR remote/22597
13018 * remote.c (remote_parse_stop_reply): Default to the last-set
13019 general thread instead of to 'magic_null_ptid'.
13020
13021 2018-01-10 Pedro Alves <palves@redhat.com>
13022
13023 * language.h (language_get_symbol_name_matcher): Rename ...
13024 (get_symbol_name_matcher): ... this.
13025 * language.c (language_get_symbol_name_matcher): Ditto.
13026 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13027 callers adjusted.
13028
13029 2018-01-10 Pedro Alves <palves@redhat.com>
13030
13031 PR gdb/22670
13032 * dwarf2read.c
13033 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13034 Adjust to use language_get_symbol_name_matcher instead of
13035 language_defn::la_get_symbol_name_matcher.
13036 * language.c (language_get_symbol_name_matcher): If in Ada mode
13037 and the lookup name is a verbatim match, return Ada's matcher.
13038 * language.h (language_get_symbol_name_matcher): Adjust comment.
13039 (ada_lookup_name_info::verbatim_p):: New method.
13040
13041 2018-01-10 Pedro Alves <palves@redhat.com>
13042
13043 PR gdb/22670
13044 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13045 minsym's language is language_auto or language_cplus, pass down
13046 language_ada instead.
13047 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13048
13049 2018-01-10 Pedro Alves <palves@redhat.com>
13050
13051 PR gdb/22670
13052 * minsyms.c (linkage_name_str): New function.
13053 (iterate_over_minimal_symbols): Use it.
13054
13055 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13056
13057 * NEWS: Document that 'info proc' now works on FreeBSD.
13058
13059 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13060
13061 * configure.ac: Check for kinfo_getfile in libutil.
13062 * configure: Regenerate.
13063 * config.in: Regenerate.
13064 * fbsd-nat.c: Include "fbsd-tdep.h".
13065 (fbsd_fetch_cmdline): New.
13066 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13067 rather than calling error.
13068 (fbsd_info_proc): New.
13069 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13070 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13071 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13072
13073 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13074
13075 * fbsd-nat.c (struct free_deleter): Remove.
13076 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13077
13078 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13079
13080 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13081 NULL for an empty pathname.
13082
13083 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13084
13085 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13086 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13087 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13088 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13089 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13090 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13091 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13092 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13093 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13094 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13095 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13096 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13097 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13098 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13099 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13100
13101 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13102
13103 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13104 (gnu_xfer_auxv): New function.
13105 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13106 TARGET_OBJECT_AUXV.
13107
13108 2018-01-08 Yao Qi <yao.qi@linaro.org>
13109 Simon Marchi <simon.marchi@ericsson.com>
13110
13111 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13112 common/selftest.c.
13113 (COMMON_OBS): Remove selftest.o.
13114 * configure.ac: Append selftest-arch.c and common/selftest.c to
13115 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13116 * configure: Re-generated.
13117 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13118 GDB_SELF_TEST.
13119 (maintenance_info_selftests): Likewise.
13120
13121 2018-01-08 Xavier Roirand <roirand@adacore.com>
13122
13123 * ada-valprint.c (val_print_packed_array_elements): Use
13124 proper number of elements when printing an array indexed
13125 by an enumeration type.
13126
13127 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13128
13129 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13130 (dw2_get_file_names_reader): Adjust.
13131 (lookup_dwo_signatured_type): Adjust.
13132 (lookup_dwp_signatured_type): Adjust.
13133 (lookup_signatured_type): Adjust.
13134 (create_type_unit_group): Adjust.
13135 (get_type_unit_group): Adjust.
13136 (process_psymtab_comp_unit_reader): Adjust.
13137 (build_type_psymtabs_reader): Adjust.
13138 (scan_partial_symbols): Adjust.
13139 (add_partial_symbol): Adjust.
13140 (add_partial_subprogram): Adjust.
13141 (peek_die_abbrev): Adjust.
13142 (fixup_go_packaging): Adjust.
13143 (process_imported_unit_die): Adjust.
13144 (dwarf2_compute_name): Adjust.
13145 (dwarf2_physname): Adjust.
13146 (read_import_statement): Adjust.
13147 (handle_DW_AT_stmt_list): Adjust.
13148 (read_file_scope): Adjust.
13149 (read_func_scope): Adjust.
13150 (read_lexical_block_scope): Adjust.
13151 (read_call_site_scope): Adjust.
13152 (read_variable): Adjust.
13153 (dwarf2_rnglists_process): Adjust.
13154 (dwarf2_ranges_process): Adjust.
13155 (dwarf2_ranges_read): Adjust.
13156 (dwarf2_get_pc_bounds): Adjust.
13157 (dwarf2_record_block_ranges): Adjust.
13158 (dwarf2_add_field): Adjust.
13159 (dwarf2_add_member_fn): Adjust.
13160 (read_structure_type): Adjust.
13161 (process_structure_scope): Adjust.
13162 (read_enumeration_type): Adjust.
13163 (read_array_type): Adjust.
13164 (mark_common_block_symbol_computed): Adjust.
13165 (read_common_block): Adjust.
13166 (read_namespace_type): Adjust.
13167 (read_namespace): Adjust.
13168 (read_module_type): Adjust.
13169 (read_tag_pointer_type): Adjust.
13170 (read_tag_ptr_to_member_type): Adjust.
13171 (read_tag_string_type): Adjust.
13172 (read_subroutine_type): Adjust.
13173 (read_typedef): Adjust.
13174 (read_base_type): Adjust.
13175 (attr_to_dynamic_prop): Adjust.
13176 (read_subrange_type): Adjust.
13177 (read_unspecified_type): Adjust.
13178 (dwarf2_read_abbrevs): Adjust.
13179 (load_partial_dies): Adjust.
13180 (read_partial_die): Adjust.
13181 (find_partial_die): Adjust.
13182 (guess_partial_die_structure_name): Adjust.
13183 (fixup_partial_die): Adjust.
13184 (read_attribute_value): Adjust.
13185 (read_addr_index): Adjust.
13186 (read_addr_index_from_leb128): Adjust.
13187 (read_str_index): Adjust.
13188 (dwarf2_string_attr): Adjust.
13189 (get_debug_line_section): Adjust.
13190 (dwarf_decode_line_header): Adjust.
13191 (lnp_state_machine::check_line_address): Adjust.
13192 (dwarf_decode_lines_1): Adjust.
13193 (dwarf_decode_lines): Adjust.
13194 (dwarf2_start_symtab): Adjust.
13195 (var_decode_location): Adjust.
13196 (new_symbol_full): Adjust.
13197 (dwarf2_const_value_data): Adjust.
13198 (dwarf2_const_value_attr): Adjust.
13199 (dwarf2_const_value): Adjust.
13200 (die_type): Adjust.
13201 (die_containing_type): Adjust.
13202 (build_error_marker_type): Adjust.
13203 (lookup_die_type): Adjust.
13204 (guess_full_die_structure_name): Adjust.
13205 (anonymous_struct_prefix): Adjust.
13206 (determine_prefix): Adjust.
13207 (dwarf2_name): Adjust.
13208 (follow_die_ref_or_sig): Adjust.
13209 (follow_die_offset): Adjust.
13210 (follow_die_ref): Adjust.
13211 (follow_die_sig_1): Adjust.
13212 (follow_die_sig): Adjust.
13213 (get_signatured_type): Adjust.
13214 (get_DW_AT_signature_type): Adjust.
13215 (decode_locdesc): Adjust.
13216 (dwarf_decode_macros): Adjust.
13217 (cu_debug_loc_section): Adjust.
13218 (fill_in_loclist_baton): Adjust.
13219 (dwarf2_symbol_mark_computed): Adjust.
13220 (init_one_comp_unit): Don't assign
13221 dwarf2_cu::dwarf2_per_objfile.
13222 (set_die_type): Adjust.
13223
13224 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13225
13226 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13227 <dwarf2_per_objfile>: New field.
13228 (dwarf2_per_objfile): Remove global.
13229 (get_dwarf2_per_objfile): New function.
13230 (set_dwarf2_per_objfile): New function.
13231 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13232 dwarf2_per_objfile.
13233 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13234 (read_abbrev_offset): Likewise.
13235 (read_indirect_string): Likewise.
13236 (read_indirect_line_string): Likewise.
13237 (read_indirect_string_at_offset): Likewise.
13238 (read_indirect_string_from_dwz): Likewise.
13239 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13240 dwarf2_per_objfile.
13241 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13242 (create_all_comp_units): Change objfile parameter to
13243 dwarf2_per_objfile.
13244 (create_all_type_units): Likewise.
13245 (process_queue): Add dwarf2_per_objfile parameter.
13246 (read_and_check_comp_unit_head): Likewise.
13247 (lookup_dwo_unit_in_dwp): Likewise.
13248 (get_dwp_file): Likewise.
13249 (process_cu_includes): Likewise.
13250 (struct free_dwo_file_cleanup_data): New struct.
13251 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13252 set_dwarf2_per_objfile.
13253 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13254 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13255 context, adjust calls.
13256 (dw2_instantiate_symtab): Likewise.
13257 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13258 (dw2_get_cu): Likewise.
13259 (create_cu_from_index_list): Change objfile parameter to
13260 dwarf2_per_objfile.
13261 (create_cus_from_index_list): Get dwarf2_per_objfile from
13262 context, adjust calls.
13263 (create_cus_from_index): Likewise.
13264 (create_signatured_type_table_from_index): Change objfile
13265 parameter to dwarf2_per_objfile.
13266 (create_signatured_type_table_from_debug_names): Change objfile
13267 parameter to dwarf2_per_objfile.
13268 (create_addrmap_from_index): Likewise.
13269 (create_addrmap_from_aranges): Likewise.
13270 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13271 (dw2_setup): Remove.
13272 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13273 context.
13274 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13275 get_dwarf2_per_objfile.
13276 (dw2_forget_cached_source_info): Likewise.
13277 (dw2_map_symtabs_matching_filename): Likewise.
13278 (struct dw2_symtab_iterator) <index>: Remove.
13279 <dwarf2_per_objfile>: New field.
13280 (dw2_symtab_iter_init): Replace index parameter with
13281 dwarf2_per_objfile.
13282 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13283 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13284 (dw2_print_stats): Likewise.
13285 (dw2_dump): Likewise.
13286 (dw2_expand_symtabs_for_function): Likewise.
13287 (dw2_expand_all_symtabs): Likewise.
13288 (dw2_expand_symtabs_with_fullname): Likewise.
13289 (dw2_expand_marked_cus): Replace index and objfile parameters
13290 with dwarf2_per_objfile.
13291 (dw_expand_symtabs_matching_file_matcher): Add
13292 dwarf2_per_objfile parameter and adjust calls.
13293 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13294 adjust calls.
13295 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13296 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13297 adjust calls.
13298 (create_cus_from_debug_names_list): Replace objfile parameter
13299 with dwarf2_per_objfile and adjust calls.
13300 (create_cus_from_debug_names): Likewise.
13301 (dwarf2_read_debug_names): Likewise.
13302 (mapped_debug_names::namei_to_name): Adjust call.
13303 (dw2_debug_names_iterator::next): Likewise.
13304 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13305 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13306 (dw2_debug_names_dump): Likewise.
13307 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13308 (dw2_debug_names_expand_symtabs_matching): Likewise.
13309 (dwarf2_initialize_objfile): Likewise.
13310 (dwarf2_build_psymtabs): Likewise.
13311 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13312 this_cu.
13313 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13314 (read_and_check_comp_unit_head): Likewise.
13315 (read_abbrev_offset): Likewise.
13316 (create_debug_type_hash_table): Likewise.
13317 (create_debug_types_hash_table): Likewise.
13318 (create_all_type_units): Replace objfile parameter with
13319 dwarf2_per_objfile.
13320 (add_type_unit): Add dwarf2_per_objfile parameter.
13321 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13322 with dwarf2_per_objfile.
13323 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13324 (lookup_dwp_signatured_type): Likewise.
13325 (lookup_signatured_type): Likewise.
13326 (read_cutu_die_from_dwo): Likewise.
13327 (init_tu_and_read_dwo_dies): Likewise.
13328 (init_cutu_and_read_dies): Likewise.
13329 (init_cutu_and_read_dies_no_follow): Likewise.
13330 (allocate_type_unit_groups_table): Add objfile parameter.
13331 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13332 (get_type_unit_group): Likewise.
13333 (process_psymtab_comp_unit): Update call.
13334 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13335 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13336 (print_tu_stats): Likewise.
13337 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13338 in void* parameter.
13339 (build_type_psymtabs): Change objfile parameter to
13340 dwarf2_per_objfile.
13341 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13342 passed in void* parameter.
13343 (process_skeletonless_type_units): Change objfile parameter to
13344 dwarf2_per_objfile.
13345 (set_partial_user): Likewise.
13346 (dwarf2_build_psymtabs_hard): Likewise.
13347 (read_comp_units_from_section): Likewise.
13348 (create_all_comp_units): Likewise.
13349 (scan_partial_symbols): Update calls.
13350 (add_partial_symbol): Likewise.
13351 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13352 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13353 (process_queue): Add dwarf2_per_objfile parameter.
13354 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13355 (compute_compunit_symtab_includes): Likewise.
13356 (process_cu_includes): Add dwarf2_per_objfile parameter.
13357 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13358 (process_full_type_unit): Likewise.
13359 (process_imported_unit_die): Update call.
13360 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13361 (read_file_scope): Likewise.
13362 (allocate_dwo_file_hash_table): Add objfile parameter.
13363 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13364 (create_cus_hash_table): Likewise.
13365 (create_dwp_hash_table): Likewise.
13366 (create_dwo_unit_in_dwp_v1): Likewise.
13367 (create_dwp_v2_section): Likewise.
13368 (create_dwo_unit_in_dwp_v2): Likewise.
13369 (lookup_dwo_unit_in_dwp): Likewise.
13370 (try_open_dwop_file): Likewise.
13371 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13372 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13373 cleanup to include a reference to dwarf2_per_objfile.
13374 (open_dwp_file): Add dwarf2_per_objfile parameter.
13375 (open_and_init_dwp_file): Likewise.
13376 (get_dwp_file): Likewise.
13377 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13378 (queue_and_load_all_dwo_tus): Update call.
13379 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13380 data.
13381 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13382 (dwarf2_ranges_process): Likewise.
13383 (dwarf2_get_pc_bounds): Likewise.
13384 (mark_common_block_symbol_computed): Likewise.
13385 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13386 (dwarf2_read_abbrevs): Update call.
13387 (read_partial_die): Use dwarf2_per_objfile from cu.
13388 (find_partial_die): Likewise.
13389 (fixup_partial_die): Likewise.
13390 (read_attribute_value): Likewise.
13391 (read_indirect_string_at_offset_from): Add objfile parameter.
13392 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13393 parameter.
13394 (read_indirect_string_from_dwz): Add objfile parameter.
13395 (read_indirect_string): Add objfile parameter.
13396 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13397 (read_addr_index): Use dwarf2_per_objfile from cu.
13398 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13399 call dw2_setup.
13400 (read_str_index): Use dwarf2_per_objfile from cu.
13401 (get_debug_line_section): Likewise.
13402 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13403 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13404 (new_symbol_full): Use dwarf2_per_objfile from cu.
13405 (build_error_marker_type): Likewise.
13406 (lookup_die_type): Likewise.
13407 (determine_prefix): Likewise.
13408 (follow_die_offset): Likewise.
13409 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13410 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13411 (dwarf2_fetch_die_type_sect_off): Likewise.
13412 (dwarf2_get_die_type): Likewise.
13413 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13414 (get_signatured_type): Likewise.
13415 (get_DW_AT_signature_type): Likewise.
13416 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13417 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13418 (cu_debug_loc_section): Likewise.
13419 (fill_in_loclist_baton): Likewise.
13420 (dwarf2_symbol_mark_computed): Likewise.
13421 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13422 dwarf2_per_objfile.
13423 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13424 parameter.
13425 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13426 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13427 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13428 (set_die_type): Use dwarf2_free_objfile from cu.
13429 (get_die_type_at_offset): Likewise.
13430 (dwarf2_per_objfile_free): Don't assign global variable.
13431 (debug_names) <constructor>: Add dwarf2_per_objfile
13432 parameter, update m_debugstrlookup construction.
13433 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13434 parameter.
13435 <m_dwarf2_per_objfile>: New field.
13436 <lookup>: Use m_dwarf2_per_objfile.
13437 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13438 (psyms_seen_size): Likewise.
13439 (write_gdbindex): Replace objfile parameter with
13440 dwarf2_per_objfile.
13441 (write_debug_names): Likewise.
13442 (write_psymtabs_to_index): Likewise.
13443 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13444 calls.
13445
13446 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13447
13448 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13449 <dwarf2_per_objfile>: New field.
13450 (struct dwarf2_per_cu_data) <objfile>: Remove.
13451 <dwarf2_per_objfile>: New field.
13452 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13453 of objfile.
13454 (create_signatured_type_table_from_index): Likewise.
13455 (create_debug_type_hash_table): Likewise.
13456 (fill_in_sig_entry_from_dwo_entry): Likewise.
13457 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13458 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13459 objfile.
13460 (create_partial_symtab): Access objfile through
13461 dwarf2_per_objfile.
13462 (process_psymtab_comp_unit_reader): Likewise.
13463 (read_comp_units_from_section): Likewise.
13464 (scan_partial_symbols): Likewise.
13465 (add_partial_symbol): Likewise.
13466 (add_partial_subprogram): Likewise.
13467 (peek_die_abbrev): Likewise.
13468 (fixup_go_packaging): Likewise.
13469 (process_full_comp_unit): Likewise.
13470 (process_full_type_unit): Likewise.
13471 (process_imported_unit_die): Likewise.
13472 (dwarf2_compute_name): Likewise.
13473 (dwarf2_physname): Likewise.
13474 (read_import_statement): Likewise.
13475 (create_cus_hash_table): Assign dwarf2_physname instead of
13476 objfile.
13477 (read_func_scope): Access objfile through dwarf2_per_objfile.
13478 (read_lexical_block_scope): Likewise.
13479 (read_call_site_scope): Likewise.
13480 (read_variable): Likewise.
13481 (dwarf2_rnglists_process): Likewise.
13482 (dwarf2_ranges_process): Likewise.
13483 (dwarf2_ranges_read): Likewise.
13484 (dwarf2_record_block_ranges): Likewise.
13485 (dwarf2_add_field): Likewise.
13486 (dwarf2_add_member_fn): Likewise.
13487 (read_structure_type): Likewise.
13488 (process_structure_scope): Likewise.
13489 (read_enumeration_type): Likewise.
13490 (read_array_type): Likewise.
13491 (read_common_block): Likewise.
13492 (read_namespace_type): Likewise.
13493 (read_namespace): Likewise.
13494 (read_module_type): Likewise.
13495 (read_tag_pointer_type): Likewise.
13496 (read_tag_ptr_to_member_type): Likewise.
13497 (read_tag_string_type): Likewise.
13498 (read_subroutine_type): Likewise.
13499 (read_typedef): Likewise.
13500 (read_base_type): Likewise.
13501 (attr_to_dynamic_prop): Likewise.
13502 (read_subrange_type): Likewise.
13503 (read_unspecified_type): Likewise.
13504 (load_partial_dies): Likewise.
13505 (read_partial_die): Likewise.
13506 (find_partial_die): Likewise.
13507 (guess_partial_die_structure_name): Likewise.
13508 (fixup_partial_die): Likewise.
13509 (read_attribute_value): Likewise.
13510 (read_addr_index_from_leb128): Likewise.
13511 (dwarf2_read_addr_index): Likewise.
13512 (dwarf2_string_attr): Likewise.
13513 (lnp_state_machine::check_line_address): Likewise.
13514 (dwarf_decode_lines_1): Likewise.
13515 (dwarf_decode_lines): Likewise.
13516 (dwarf2_start_symtab): Likewise.
13517 (var_decode_location): Likewise.
13518 (new_symbol_full): Likewise.
13519 (dwarf2_const_value_data): Likewise.
13520 (dwarf2_const_value_attr): Likewise.
13521 (dwarf2_const_value): Likewise.
13522 (die_type): Likewise.
13523 (die_containing_type): Likewise.
13524 (lookup_die_type): Likewise.
13525 (guess_full_die_structure_name): Likewise.
13526 (anonymous_struct_prefix): Likewise.
13527 (dwarf2_name): Likewise.
13528 (follow_die_ref_or_sig): Likewise.
13529 (follow_die_offset): Likewise.
13530 (follow_die_ref): Likewise.
13531 (dwarf2_fetch_die_loc_sect_off): Likewise.
13532 (dwarf2_fetch_constant_bytes): Likewise.
13533 (dwarf2_fetch_die_type_sect_off): Likewise.
13534 (dwarf2_get_die_type): Likewise.
13535 (follow_die_sig): Likewise.
13536 (decode_locdesc): Likewise.
13537 (dwarf2_per_cu_objfile): Likewise.
13538 (dwarf2_per_cu_text_offset): Likewise.
13539 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13540 objfile.
13541 (set_die_type): Access objfile through
13542 dwarf2_per_objfile.
13543
13544 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13545
13546 * valprint.c (converted_character_d): Remove typedef.
13547 (DEF_VEC_O (converted_character_d)): Remove.
13548 (count_next_character): Use std::vector.
13549 (print_converted_chars_to_obstack): Likewise.
13550 (generic_printstr): Likewise.
13551
13552 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13553
13554 * xml-support.h (struct gdb_xml_value): Add constructor.
13555 <value>: Change type to unique_xmalloc_ptr.
13556 (gdb_xml_value_s): Remove typedef.
13557 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13558 (gdb_xml_element_start_handler): Change parameter type to
13559 std::vector.
13560 (xml_find_attribute): Likewise.
13561 * xml-support.c (xml_find_attribute): Change parameter type to
13562 std::vector and adjust.
13563 (gdb_xml_values_cleanup): Remove.
13564 (gdb_xml_parser::start_element): Adjust to std::vector.
13565 (xinclude_start_include): Change paraeter type to std::vector
13566 and adjust.
13567 * btrace.c (check_xml_btrace_version): Likewise.
13568 (parse_xml_btrace_block): Likewise.
13569 (parse_xml_btrace_pt_config_cpu): Likewise.
13570 (parse_xml_btrace_pt): Likewise.
13571 (parse_xml_btrace_conf_bts): Likewise.
13572 (parse_xml_btrace_conf_pt): Likewise.
13573 * memory-map.c (memory_map_start_memory): Likewise.
13574 (memory_map_start_property): Likewise.
13575 * osdata.c (osdata_start_osdata): Likewise.
13576 (osdata_start_item): Likewise.
13577 (osdata_start_column): Likewise.
13578 * remote.c (start_thread): Likewise.
13579 * solib-aix.c (library_list_start_library): Likewise.
13580 (library_list_start_list): Likewise.
13581 * solib-svr4.c (library_list_start_library): Likewise.
13582 (svr4_library_list_start_list): Likewise.
13583 * solib-target.c (library_list_start_segment): Likewise.
13584 (library_list_start_section): Likewise.
13585 (library_list_start_library): Likewise.
13586 (library_list_start_list): Likewise.
13587 * tracepoint.c (traceframe_info_start_memory): Likewise.
13588 (traceframe_info_start_tvar): Likewise.
13589 * xml-syscall.c (syscall_start_syscall): Likewise.
13590 * xml-tdesc.c (tdesc_start_target): Likewise.
13591 (tdesc_start_feature): Likewise.
13592 (tdesc_start_reg): Likewise.
13593 (tdesc_start_union): Likewise.
13594 (tdesc_start_struct): Likewise.
13595 (tdesc_start_flags): Likewise.
13596 (tdesc_start_enum): Likewise.
13597 (tdesc_start_field): Likewise.
13598 (tdesc_start_enum_value): Likewise.
13599 (tdesc_start_vector): Likewise.
13600
13601 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13602
13603 * extension.h (struct xmethod_worker) <clone>: Remove.
13604 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13605 Remove.
13606 (python_xmethod_worker::clone): Remove.
13607 * valops.c (find_overload_match): Use std::move instead of
13608 clone.
13609
13610 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13611
13612 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13613 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13614 <free_xmethod_worker_data>: Remove.
13615 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13616 <get_xmethod_arg_types>: Remove.
13617 <get_xmethod_result_type>: Remove.
13618 <invoke_xmethod>: Remove.
13619 * extension.c (new_xmethod_worker): Remove.
13620 (clone_xmethod_worker): Remove.
13621 (get_matching_xmethod_workers): Return void, pass std::vector by
13622 pointer.
13623 (get_xmethod_arg_types): Rename to...
13624 (xmethod_worker::get_arg_types): ... this, and adjust.
13625 (get_xmethod_result_type): Rename to...
13626 (xmethod_worker::get_result_type): ... this, and adjust.
13627 (invoke_xmethod): Remove.
13628 (free_xmethod_worker): Remove.
13629 (free_xmethod_worker_vec): Remove.
13630 * extension.h (enum ext_lang_rc): Move here from
13631 extension-priv.h.
13632 (struct xmethod_worker): Add constructor and destructor.
13633 <data>: Remove.
13634 <value>: Remove.
13635 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13636 virtual pure methods.
13637 <get_arg_types, get_result_type>: New methods.
13638 (xmethod_worker_ptr): Remove typedef.
13639 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13640 (xmethod_worker_vec): Remove typedef.
13641 (xmethod_worker_up): New typedef.
13642 (invoke_xmethod): Remove.
13643 (clone_xmethod_worker): Remove.
13644 (free_xmethod_worker): Remove.
13645 (free_xmethod_worker_vec): Remove.
13646 (get_xmethod_arg_types): Remove.
13647 (get_xmethod_result_type): Remove.
13648 * valops.c (find_method_list): Use std::vector, don't use
13649 intermediate vector.
13650 (value_find_oload_method_list): Use std::vector.
13651 (find_overload_match): Use std::vector.
13652 (find_oload_champ): Use std::vector.
13653 * value.c (value_free): Use operator delete.
13654 (value_of_xmethod): Rename to...
13655 (value_from_xmethod): ... this. Don't assign
13656 xmethod_worker::value, take rvalue-reference.
13657 (result_type_of_xmethod): Adjust.
13658 (call_xmethod): Adjust.
13659 * value.h: Include extension.h.
13660 (struct xmethod_worker): Don't forward-declare.
13661 (value_of_xmethod): Rename to...
13662 (value_from_xmethod): ... this, take rvalue-reference.
13663 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13664 (struct python_xmethod_worker): ... this, add constructor and
13665 destructor.
13666 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13667 (gdbpy_free_xmethod_worker_data): Rename to...
13668 (python_xmethod_worker::~python_xmethod_worker): ... this and
13669 adjust.
13670 (gdbpy_clone_xmethod_worker_data): Rename to...
13671 (python_xmethod_worker::clone): ... this and adjust.
13672 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13673 temporary vector.
13674 (gdbpy_get_xmethod_arg_types): Rename to...
13675 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13676 (gdbpy_get_xmethod_result_type): Rename to...
13677 (python_xmethod_worker::do_get_result_type): ... this and
13678 adjust.
13679 (gdbpy_invoke_xmethod): Rename to...
13680 (python_xmethod_worker::invoke): ... this and adjust.
13681 (new_python_xmethod_worker): Rename to...
13682 (python_xmethod_worker::python_xmethod_worker): ... this and
13683 adjust.
13684 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13685 Remove.
13686 (gdbpy_free_xmethod_worker_data): Remove.
13687 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13688 (gdbpy_get_xmethod_arg_types): Remove.
13689 (gdbpy_get_xmethod_result_type): Remove.
13690 (gdbpy_invoke_xmethod): Remove.
13691 * python/python.c (python_extension_ops): Remove obsolete
13692 callbacks.
13693
13694 2018-01-05 Pedro Alves <palves@redhat.com>
13695
13696 PR gdb/18653
13697 * common/signals-state-save-restore.c
13698 (save_original_signals_state): New parameter 'quiet'. Warn if we
13699 find a custom handler preinstalled, instead of internal erroring.
13700 But only warn if !quiet.
13701 * common/signals-state-save-restore.h
13702 (save_original_signals_state): New parameter 'quiet'.
13703 * main.c (captured_main_1): Move save_original_signals_state call
13704 after option handling, and pass QUIET.
13705
13706 2018-01-05 Pedro Alves <palves@redhat.com>
13707
13708 * spu-tdep.c (spu_catch_start): Pass
13709 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13710
13711 2018-01-05 Pedro Alves <palves@redhat.com>
13712
13713 PR gdb/22670
13714 * ada-lang.c (literal_symbol_name_matcher): New function.
13715 (ada_get_symbol_name_matcher): Use it for
13716 symbol_name_match_type::SEARCH_NAME.
13717 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13718 it down instead of assuming symbol_name_match_type::FULL.
13719 * block.h (block_lookup_symbol): New parameter 'match_type'.
13720 * c-valprint.c (print_unpacked_pointer): Use
13721 lookup_symbol_search_name instead of lookup_symbol.
13722 * compile/compile-object-load.c (get_out_value_type): Pass down
13723 symbol_name_match_type::SEARCH_NAME.
13724 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13725 symbol_name_match_type::FULL.
13726 * cp-support.c (cp_get_symbol_name_matcher): Handle
13727 symbol_name_match_type::SEARCH_NAME.
13728 * infrun.c (insert_exception_resume_breakpoint): Use
13729 lookup_symbol_search_name.
13730 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13731 * psymtab.c (maintenance_check_psymtabs): Use
13732 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13733 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13734 SYMBOL_SEARCH_NAME.
13735 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13736 if symbol_name_match_type::SEARCH_NAME.
13737 (lookup_symbol_in_language): Pass down
13738 symbol_name_match_type::FULL.
13739 (lookup_symbol_search_name): New.
13740 (lookup_language_this): Pass down
13741 symbol_name_match_type::SEARCH_NAME.
13742 (lookup_symbol_aux, lookup_local_symbol): New parameter
13743 'match_type'. Pass it down.
13744 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13745 (lookup_symbol_search_name): New declaration.
13746 (lookup_symbol_in_block): New 'match_type' parameter.
13747
13748 2018-01-05 Pedro Alves <palves@redhat.com>
13749
13750 PR gdb/22670
13751 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13752 ada_lookup_symbol.
13753 (ada_lookup_symbol): Reimplement in terms of
13754 ada_lookup_symbol_list, bits factored out from
13755 ada_lookup_encoded_symbol.
13756
13757 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13758
13759 * ada-exp.y (write_object_renaming): When subscripting an array
13760 using a symbol as the index, pass the block in call to
13761 ada_lookup_encoded_symbol when looking that symbol up.
13762
13763 2018-01-05 Jerome Guitton <guitton@adacore.com>
13764
13765 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13766 TYPE_INDEX_TYPE.
13767
13768 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13769
13770 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13771 the case where VALUE_LVAL (val0) is not lval_memory.
13772
13773 2018-01-05 Xavier Roirand <roirand@adacore.com>
13774
13775 * ada-valprint.c (print_optional_low_bound): Handle
13776 character-indexed array printing like boolean-indexed array
13777 printing.
13778
13779 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13780
13781 * NEWS: Create a new section for the next release branch.
13782 Rename the section of the current branch, now that it has
13783 been cut.
13784
13785 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13786
13787 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13788 * version.in: Bump version to 8.1.50.DATE-git.
13789
13790 2018-01-03 Xavier Roirand <roirand@adacore.com>
13791
13792 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13793 Add field.
13794 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13795 Add field.
13796 (default_exception_support_info) <catch_handlers_sym>: Add field.
13797 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13798 (ada_exception_name_addr_1): Add "catch handlers" handling.
13799 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13800 Update all callers.
13801 (create_excep_cond_exprs) <ex>: Add parameter.
13802 (re_set_exception): Update create_excep_cond_exprs call.
13803 (print_it_exception, print_one_exception, print_mention_exception)
13804 (print_recreate_exception): Add "catch handler" handling.
13805 (allocate_location_catch_handlers, re_set_catch_handlers)
13806 (check_status_catch_handlers, print_it_catch_handlers)
13807 (print_one_catch_handlers, print_mention_catch_handlers)
13808 (print_recreate_catch_handlers): New function.
13809 (catch_handlers_breakpoint_ops): New variable.
13810 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13811 Add parameter. Add "catch handler" handling.
13812 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13813 Add "catch handler" handling.
13814 (ada_exception_catchpoint_cond_string): Add "catch handler"
13815 handling.
13816 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13817 call.
13818 (catch_ada_handlers_command): New function.
13819 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13820 operations structure.
13821 (_initialize_ada_language): Add "catch handlers" command entry.
13822 * NEWS: Document "catch handlers" feature.
13823
13824 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13825
13826 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13827 account when creating the array type of the slice.
13828 (ada_value_slice): Likewise.
13829
13830 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13831
13832 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13833 New enum value.
13834 (create_array_type_with_stride): Add byte_stride_prop parameter.
13835 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13836 New parameter. Update all callers in this file.
13837 (array_type_has_dynamic_stride): New function.
13838 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13839 of arrays with dynamic byte strides.
13840 * dwarf2read.c (read_array_type): Add support for dynamic
13841 DW_AT_byte_stride attributes.
13842
13843 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13844
13845 * dwarf2read.c (read_unspecified_type): Treat
13846 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13847
13848 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13849
13850 Update copyright year range in all GDB files.
13851
13852 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13853
13854 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13855 and gdb/testsuite/gdb.base/step-line.c.
13856
13857 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13858
13859 * copyright.py (main): Dump the contents of
13860 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13861 even if BY_HAND is empty.
13862
13863 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13864
13865 * top.c (print_gdb_version): Update Copyright year in version
13866 message.
13867
13868 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13869
13870 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13871
13872 For older changes see ChangeLog-2017.
13873 \f
13874 Local Variables:
13875 mode: change-log
13876 left-margin: 8
13877 fill-column: 74
13878 version-control: never
13879 coding: utf-8
13880 End: