Remove some leftover text in gdb/README
[binutils-gdb.git] / gdb / ChangeLog
1 2018-09-29 Tom Tromey <tom@tromey.com>
2
3 * README: Remove some leftover text.
4
5 2018-09-29 Tom Tromey <tom@tromey.com>
6
7 * PROBLEMS: Rewrite.
8 * README: Update.
9
10 2018-09-28 John Baldwin <jhb@FreeBSD.org>
11
12 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
13 case with explicit breakpoint kind.
14 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
15 'additional_info' and related logic.
16 (riscv_debug_breakpoints): New variable.
17 (riscv_breakpoint_kind_from_pc): Use the length of the existing
18 instruction to determine the breakpoint kind.
19 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
20 flag. Update description of 'set/show riscv
21 use-compressed-breakpoints' flag.
22
23 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
24
25 (NEWS): Mention changes to frame related commands.
26 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
27 (add_prefix_cmd_suppress_notification): New function.
28 (add_com_suppress_notification): Call
29 add_cmd_suppress_notification.
30 * command.h (add_cmd_suppress_notification): Declare.
31 (add_prefix_cmd_suppress_notification): Declare.
32 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
33 (parse_frame_specification): Moved from stack.c, with
34 simplification to handle a single argument.
35 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
36 switch to the selected frame. Add a header comment.
37 * stack.c: Remove 'safe-ctype.h' include.
38 (find_frame_for_function): Add declaration.
39 (find_frame_for_address): New function.
40 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
41 (frame_selection_by_function_completer): New function.
42 (info_frame_command): Rename to...
43 (info_frame_command_core): ...this, and update parameter types.
44 (select_frame_command): Rename to...
45 (select_frame_command_core): ...this, and update parameter types.
46 (frame_command): Rename to...
47 (frame_command_core): ...this, and update parameter types.
48 (class frame_command_helper): New class to wrap implementations of
49 frame related sub-commands.
50 (frame_apply_cmd_list): New static global.
51 (frame_cmd_list): Make static.
52 (select_frame_cmd_list): New global for sub-commands.
53 (info_frame_cmd_list): New global for sub-commands.
54 (_initialize_stack): Register sub-commands for 'frame',
55 'select-frame', and 'info frame'. Update 'frame apply' commands
56 to use frame_apply_cmd_list. Move function local static
57 frame_apply_list to file static frame_apply_cmd_list for
58 consistency.
59 * stack.h (select_frame_command): Delete declarationn.
60 (select_frame_for_mi): Declare new function.
61
62 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
63
64 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
65 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
66 and NOP.
67
68 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
69
70 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
71
72 2018-09-26 Tom Tromey <tom@tromey.com>
73
74 * valops.c (auto_abandon): Remove dead code.
75
76 2018-09-26 Tom Tromey <tom@tromey.com>
77
78 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
79
80 2018-09-24 Tom Tromey <tom@tromey.com>
81
82 * common/pathstuff.c (get_standard_cache_dir): Make
83 "xdg_cache_home" and "home" const.
84 * top.c (init_history): Make "tmpenv" const.
85 * main.c (get_init_files): Make "homedir" const.
86
87 2018-09-23 Tom Tromey <tom@tromey.com>
88
89 PR python/18852:
90 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
91
92 2018-09-23 Tom Tromey <tom@tromey.com>
93
94 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
95 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
96 * python/python-internal.h (gdbpy_handle_exception): Declare.
97 * python/py-utils.c (gdbpy_handle_exception): New function.
98
99 2018-09-23 Tom Tromey <tom@tromey.com>
100
101 PR python/17284:
102 * python/py-type.c (typy_template_argument): Check for negative
103 argument number.
104
105 2018-09-23 Tom Tromey <tom@tromey.com>
106
107 PR python/14062:
108 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
109
110 2018-09-23 Tom Tromey <tom@tromey.com>
111
112 PR python/18170:
113 * python/py-value.c (valpy_int): Allow conversion from pointer
114 type.
115
116 2018-09-23 Tom Tromey <tom@tromey.com>
117
118 PR python/20126:
119 * python/py-value.c (valpy_int): Respect type sign.
120
121 2018-09-23 Tom Tromey <tom@tromey.com>
122
123 PR python/18352;
124 * python/py-value.c (valpy_float): Allow conversions from int or
125 char.
126 (valpy_int, valpy_long): Allow conversions from float.
127
128 2018-09-23 Tom Tromey <tom@tromey.com>
129
130 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
131 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
132
133 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
134
135 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
136 __sighndlr.
137 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
138
139 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
140
141 * windows-nat.c (windows_nat_target::wait): Remove a spurious
142 target_terminal::ours().
143
144 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
145
146 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
147 of vl to ULONGEST.
148
149 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
150
151 * breakpoint.c (update_inserted_breakpoint_locations): Remove
152 redundant condition.
153
154 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
155
156 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
157
158 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
159 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
160 * sol-thread.c (ps_pdmodel): Don't guard definition.
161
162 * procfs.c: Fix formatting.
163
164 * procfs.c (sysset_t_alloc): Remove.
165 (create_procinfo): Use XNEW instead of sysset_t_alloc.
166 (procfs_debug_inferior): Likewise.
167 (procfs_set_exec_trap): Likewise.
168 (proc_set_traced_sysentry): Don't allocate argp dynamically.
169 (proc_set_traced_sysexit): Likewise.
170
171 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
172 (dead_procinfo): Likewise.
173 (proc_warn): Likewise.
174 (proc_error): Likewise.
175 (proc_get_LDT_entry): Likewise.
176 (do_attach): Likewise.
177 (procfs_target::pid_to_str): Likewise.
178 (iterate_over_mappings): Likewise.
179
180 * procfs.c (create_procinfo): Fix ARI warning.
181 (proc_get_status): Likewise.
182 (proc_stop_process): Likewise.
183 (proc_run_process): Likewise.
184 (proc_kill): Likewise.
185 (proc_get_LDT_entry): Likewise.
186 (procfs_find_LDT_entry): Likewise.
187 (proc_update_threads): Likewise.
188 (proc_iterate_over_threads): Likewise.
189 (do_attach): Likewise.
190 (procfs_xfer_memory): Likewise.
191 (invalidate_cache): Likewise.
192 (procfs_target::resume): Likewise.
193 (procfs_init_inferior): Likewise.
194 (procfs_set_exec_trap): Likewise.
195 (procfs_target::thread_alive): Likewise.
196 (procfs_target::pid_to_exec_file): Likewise.
197 (iterate_over_mappings): Likewise.
198 (procfs_target::make_corefile_notes): Likewise.
199 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
200
201 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
202 (procfs_find_LDT_entry): Likewise.
203 * sol-thread.c (ps_lgetLDT): Likewise.
204
205 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
206
207 PR tdep/17903
208 * procfs.c (procfs_target): Declare pid_to_exec_file.
209 (procfs_target::pid_to_exec_file): New.
210
211 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
212
213 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
214 renaming.
215 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
216 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
217
218 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
219
220 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
221 (supply_fpregset, fill_fpregset): Move ...
222 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
223 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
224 Remove references to ioctl-based procfs.
225 Include <sys/reg.h>.
226 Remove PR_MODEL_NATIVE guards.
227 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
228 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
229
230 2018-09-19 Xavier Roirand <roirand@adacore.com>
231
232 PR gdb/20981:
233 * solib-darwin.c (darwin_get_dyld_bfd): New function.
234 (darwin_solib_get_all_image_info_addr_at_init): Update call.
235 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
236
237 2018-09-19 John Baldwin <jhb@FreeBSD.org>
238
239 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
240 (fbsd_print_sockaddr_in6): Likewise.
241
242 2018-09-19 Richard Bunt <richard.bunt@arm.com>
243 Chris January <chris.january@arm.com>
244
245 * eval.c (skip_undetermined_arglist): Skip argument list helper.
246 (evaluate_subexp_standard): Return a dummy type when
247 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
248 OP_F77_UNDETERMINED_ARGLIST case.
249 * expression.h (enum noside): Update comment.
250
251 2018-09-19 George Vasick <george.vasick@oracle.com>
252
253 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
254
255 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
256 April Chin <april.chin@oracle.com>
257 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
258
259 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
260 uint_t lwpid_t.
261 (create_procinfo): Print pids in /proc without leading zeros.
262
263 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
264
265 * nios2-tdep.c (nios2_gcc_target_options): New.
266 (nios2_gdb_arch_init): Install new hook.
267
268 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
269
270 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
271 New file.
272 * update-gnulib.sh: Apply patch.
273 * configure: Re-generate.
274
275 2018-09-18 John Baldwin <jhb@FreeBSD.org>
276
277 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
278 description. Make "info proc" command descriptions more
279 consistent.
280
281 2018-09-18 John Baldwin <jhb@FreeBSD.org>
282
283 * NEWS: Mention 'info proc files' command.
284
285 2018-09-18 John Baldwin <jhb@FreeBSD.org>
286
287 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
288 descriptors for IP_FILES and IP_ALL.
289
290 2018-09-18 John Baldwin <jhb@FreeBSD.org>
291
292 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
293 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
294 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
295 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
296 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
297 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
298 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
299 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
300 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
301 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
302 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
303 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
304 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
305 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
306 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
307 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
308 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
309 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
310 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
311 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
312 (struct fbsd_sockaddr_un): New types.
313 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
314 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
315 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
316 (fbsd_core_info_proc_files): New functions.
317 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
318 IP_ALL.
319 * fbsd-tdep.h (fbsd_info_proc_files_header)
320 (fbsd_info_proc_files_entry): New.
321
322 2018-09-18 John Baldwin <jhb@FreeBSD.org>
323
324 * defs.h (enum info_proc_what) [IP_FILES]: New value.
325 * infcmd.c (info_proc_cmd_files): New function.
326 (_initialize_infcmd): Register 'info proc files' command.
327
328 2018-09-18 John Baldwin <jhb@FreeBSD.org>
329
330 * gnulib/aclocal-m4-deps.mk: Re-generate.
331 * gnulib/aclocal.m4: Re-generate.
332 * gnulib/config.in: Re-generate.
333 * gnulib/configure: Re-generate.
334 * gnulib/import/Makefile.am: Re-generate.
335 * gnulib/import/Makefile.in: Re-generate.
336 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
337 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
338 * gnulib/import/arpa_inet.in.h: New file.
339 * gnulib/import/inet_ntop.c: New file.
340 * gnulib/import/m4/arpa_inet_h.m4: New file.
341 * gnulib/import/m4/inet_ntop.m4: New file.
342 * gnulib/import/m4/netinet_in_h.m4: New file.
343 * gnulib/import/m4/socklen.m4: New file.
344 * gnulib/import/m4/sockpfaf.m4: New file.
345 * gnulib/import/m4/stdalign.m4: New file.
346 * gnulib/import/m4/sys_uio_h.m4: New file.
347 * gnulib/import/netinet_in.in.h: New file.
348 * gnulib/import/stdalign.in.h: New file.
349 * gnulib/import/sys_socket.c: New file.
350 * gnulib/import/sys_socket.in.h: New file.
351 * gnulib/import/sys_uio.in.h: New file.
352 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
353 module.
354
355 2018-09-18 John Baldwin <jhb@FreeBSD.org>
356
357 * gnulib/aclocal-m4-deps.mk: New file.
358 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
359 deterministically.
360
361 2018-09-18 John Baldwin <jhb@FreeBSD.org>
362
363 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
364 KVE_PATH.
365
366 2018-09-18 Tom Tromey <tom@tromey.com>
367
368 * compile/compile-object-load.c (struct
369 link_hash_table_cleanup_data): Add constructor and destructor.
370 Use DISABLE_COPY_AND_ASSIGN.
371 (~link_hash_table_cleanup_data): Rename from
372 link_hash_table_free. Now a destructor.
373 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
374
375 2018-09-18 Tom Tromey <tom@tromey.com>
376
377 * compile/compile-object-run.c (do_module_cleanup): Use delete.
378 * compile/compile-object-load.c (struct munmap_list): Move to
379 header file.
380 (munmap_list::add): Rename from munmap_list_add; rewrite.
381 (munmap_list::~munmap_list): Rename from munmap_list_free.
382 (munmap_listp_free_cleanup): Remove.
383 (compile_object_load): Update.
384 * compile/compile-object-load.h (struct munmap_list): Move from
385 compile-object-load.c. Rewrite.
386
387 2018-09-18 Alan Hayward <alan.hayward@arm.com>
388
389 * aarch64-tdep.c (pass_in_v): Use register size.
390 (aarch64_extract_return_value): Likewise.
391 (aarch64_store_return_value): Likewise.
392
393 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
394
395 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
396 rlim_t.
397
398 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
399
400 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
401 Fix short help line.
402
403 2018-09-17 Tom Tromey <tom@tromey.com>
404
405 PR python/20445:
406 * configure: Rebuild.
407 * configure.ac: Conditionally use -DNDEBUG for Python.
408
409 2018-09-17 Tom Tromey <tom@tromey.com>
410
411 * configure: Rebuild.
412 * configure.ac: Use gmp as a library dependency when checking for
413 mpfr.
414
415 2018-09-17 Pedro Alves <palves@redhat.com>
416
417 * python/py-inferior.c (find_inferior_object): Delete.
418
419 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
420
421 * compile/compile-cplus-types.c
422 (compile_cplus_instance::enter_scope): Don't use new_scope after
423 std::move.
424
425 2018-09-17 Tom Tromey <tom@tromey.com>
426
427 * common/pathstuff.c (get_standard_cache_dir): Use
428 ~/Library/Caches on macOS.
429 * common/pathstuff.h (get_standard_cache_dir): Update comment.
430
431 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
432
433 PR python/23669
434 * breakpoint.c (commands_cmd_element): New.
435 (_initialize_breakpoint): Assign commands_cmd_element.
436 * breakpoint.h (commands_cmd_element): New.
437 * cli/cli-script.c (while_cmd_element, if_command,
438 define_cmd_element): New.
439 (command_name_equals): Remove.
440 (process_next_line): Compare commands by pointer, not by name.
441 (_initialize_cli_script): Assign the various cmd_list_element
442 variables.
443 * compile/compile.c (compile_cmd_element): New.
444 (_initialize_compile): Assign compile_cmd_element.
445 * compile/compile.h (compile_cmd_element): New.
446 * guile/guile.c (guile_cmd_element): New.
447 (install_gdb_commands): Assign guile_cmd_element.
448 * guile/guile.h (guile_cmd_element): New.
449 * python/python.c (python_cmd_element): New.
450 (_initialize_python): Assign python_cmd_element.
451 * python/python.h (python_cmd_element): New.
452 * tracepoint.c (while_stepping_cmd_element): New.
453 (_initialize_tracepoint): Assign while_stepping_cmd_element.
454 * tracepoint.h (while_stepping_cmd_element): New.
455
456 2018-09-17 Tom Tromey <tom@tromey.com>
457
458 * infrun.c (save_infcall_suspend_state): Return
459 infcall_suspend_state_up.
460 (save_infcall_control_state): Return infcall_control_state_up.
461 * inferior.h (save_infcall_suspend_state)
462 (save_infcall_control_state): Declare later. Return unique
463 pointers.
464
465 2018-09-17 Tom Tromey <tom@tromey.com>
466
467 * infrun.c (struct stop_context): Declare constructor,
468 destructor, "changed" method.
469 (stop_context::stop_context): Rename from save_stop_context.
470 (stop_context::~stop_context): Rename from
471 release_stop_context_cleanup.
472 (normal_stop): Update.
473 (stop_context::changed): Rename from stop_context_changed. Return
474 bool.
475
476 2018-09-17 Tom Tromey <tom@tromey.com>
477
478 * inferior.h (struct infcall_suspend_state_deleter): New.
479 (infcall_suspend_state_up): New typedef.
480 (struct infcall_control_state_deleter): New.
481 (infcall_control_state_up): New typedef.
482 (make_cleanup_restore_infcall_suspend_state)
483 (make_cleanup_restore_infcall_control_state): Don't declare.
484 * infcall.c (call_function_by_hand_dummy): Update.
485 * infrun.c (do_restore_infcall_suspend_state_cleanup)
486 (make_cleanup_restore_infcall_suspend_state): Remove.
487 (do_restore_infcall_control_state_cleanup)
488 (make_cleanup_restore_infcall_control_state): Remove.
489
490 2018-09-17 Tom Tromey <tom@tromey.com>
491
492 * gdbthread.h (struct thread_control_state): Add initializer.
493 (class thread_info) <control>: Remove initializer.
494 * inferior.h (struct inferior_control_state): Add initializer.
495 (class inferior) <control>: Remove initializer.
496 (exit_inferior_1): Update.
497 * infrun.c (struct infcall_control_state): Add constructors.
498 (save_infcall_control_state): Use new.
499 (restore_infcall_control_state, discard_infcall_control_state):
500 Use delete.
501
502 2018-09-17 Tom Tromey <tom@tromey.com>
503
504 * infrun.c (struct infcall_suspend_state) <registers>: Now a
505 unique_ptr.
506 <siginfo_data>: Now a unique_xmalloc_ptr.
507 (save_infcall_suspend_state, restore_infcall_suspend_state)
508 (discard_infcall_suspend_state)
509 (get_infcall_suspend_state_regcache): Update.
510
511 2018-09-17 Tom Tromey <tom@tromey.com>
512
513 * gdbthread.h (struct thread_suspend_state): Add initializers.
514 (class thread_info) <suspend>: Remove initializer.
515 * infrun.c (struct infcall_suspend_state): Add initializers.
516 (save_infcall_suspend_state): Use new.
517 (discard_infcall_suspend_state): Use delete.
518
519 2018-09-16 Tom Tromey <tom@tromey.com>
520
521 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
522 Remove.
523 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
524 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
525 (py_varobj_iter_new): Likewise.
526 (py_varobj_get_iterator): Use gdbpy_ref.
527
528 2018-09-16 Tom Tromey <tom@tromey.com>
529
530 * python/py-threadevent.c (py_get_event_thread): Simplify.
531 * python/py-inferior.c (infpy_thread_from_thread_handle):
532 Return immediately after calling thread_to_thread_object. Use
533 Py_RETURN_NONE.
534 (thread_to_thread_object): Set the exception on a NULL return.
535
536 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
537
538 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
539
540 2018-09-16 Tom Tromey <tom@tromey.com>
541
542 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
543 Remove.
544
545 2018-09-16 Tom Tromey <tom@tromey.com>
546
547 * python/python-internal.h (thread_to_thread_object): Change
548 return type.
549 * python/py-inferior.c (thread_to_thread_object): Return a new
550 reference.
551 (infpy_thread_from_thread_handle): Update.
552 * python/py-infthread.c (gdbpy_selected_thread): Update.
553 * python/py-stopevent.c (create_stop_event_object): Update.
554 * python/py-threadevent.c (py_get_event_thread): Return a new
555 reference.
556 (py_get_event_thread): Update.
557 * python/py-event.h (py_get_event_thread): Change return type.
558 * python/py-continueevent.c (create_continue_event_object):
559 Update.
560
561 2018-09-16 Tom Tromey <tom@tromey.com>
562
563 * python/py-progspace.c (pspy_get_objfiles): Update.
564 * python/python-internal.h (objfile_to_objfile_object): Change
565 return type.
566 * python/py-newobjfileevent.c (create_new_objfile_event_object):
567 Update.
568 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
569 Update.
570 * python/python.c (gdbpy_get_current_objfile): Update.
571 (gdbpy_objfiles): Update.
572 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
573 Update.
574 (objfile_to_objfile_object): Return a new reference.
575 * python/py-symtab.c (stpy_get_objfile): Update.
576 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
577 Update.
578
579 2018-09-16 Tom Tromey <tom@tromey.com>
580
581 * python/py-inferior.c (infpy_get_progspace): Update.
582 * python/python-internal.h (pspace_to_pspace_object): Change
583 return type.
584 * python/py-newobjfileevent.c
585 (create_clear_objfiles_event_object): Update.
586 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
587 Update.
588 * python/python.c (gdbpy_get_current_progspace): Update.
589 (gdbpy_progspaces): Update.
590 * python/py-progspace.c (pspace_to_pspace_object): Return a new
591 reference.
592 * python/py-objfile.c (objfpy_get_progspace): Update.
593 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
594 Update.
595
596 2018-09-16 Tom Tromey <tom@tromey.com>
597
598 * python/lib/gdb/__init__.py (current_progspace, objfiles)
599 (solib_name, block_for_pc, find_pc_line): New functions.
600 (execute_unwinders): Update.
601 * python/py-block.c (gdbpy_block_for_pc): Remove.
602 * python/py-inferior.c (infpy_get_progspace): New function.
603 (inferior_object_getset) <progspace>: Add.
604 * python/py-progspace.c (pspy_objfiles): Rewrite.
605 (pspy_solib_name, pspy_block_for_pc)
606 (pspy_find_pc_line, pspy_is_valid): New functions.
607 (progspace_object_methods): Add entries for solib_name,
608 block_for_pc, find_pc_line, is_valid.
609 * python/python-internal.h (gdbpy_block_for_pc)
610 (build_objfiles_list): Don't declare.
611 * python/python.c: Don't include solib.h.
612 (gdbpy_solib_name, gdbpy_find_pc_line)
613 (gdbpy_get_current_progspace, build_objfiles_list)
614 (gdbpy_objfiles): Remove.
615 (GdbMethods) <current_progspace, objfiles, block_for_pc,
616 solib_name, find_pc_line>: Remove entries.
617
618 2018-09-16 Tom Tromey <tom@tromey.com>
619
620 * top.c (new_ui_command): Use GNU style for metasyntactic
621 variables.
622 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
623 variables.
624 * maint.c (maintenance_translate_address): Remove "<>" around
625 text.
626 * interps.c (interpreter_exec_cmd): Use GNU style for
627 metasyntactic variables.
628 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
629 metasyntactic variables.
630 * tracepoint.c (tfind_range_command): Use GNU style for
631 metasyntactic variables.
632 (tfind_outside_command): Likewise.
633 (_initialize_tracepoint): Likewise.
634 * remote.c (extended_remote_target::create_inferior): Use GNU
635 style for metasyntactic variables.
636 * sparc64-tdep.c (adi_examine_command): Use GNU style for
637 metasyntactic variables.
638 (adi_assign_command): Likewise.
639
640 2018-09-16 Tom Tromey <tom@tromey.com>
641
642 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
643 metasyntactic variables. Print message if no disassembler options
644 are available.
645
646 2018-09-15 Tom Tromey <tom@tromey.com>
647
648 * infcmd.c (get_inferior_args): Return const char *.
649 * inferior.h (get_inferior_args): Return type now const.
650 * linux-tdep.c (linux_fill_prpsinfo): Update.
651 * procfs.c (procfs_target::make_corefile_notes): Update.
652
653 2018-09-07 Tom Tromey <tom@tromey.com>
654
655 * python/python.c (execute_gdb_command): Call bpstat_do_actions
656 inside the TRY.
657
658 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
659
660 * nios2-tdep.c (nios2_type_align): New.
661 (nios2_gdb_arch_init): Install type_align hook.
662
663 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
664
665 * eval.c (fake_method::fake_method): Call xzalloc directly for a
666 type that is neither object file owned, nor gdbarch owned.
667 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
668 gdbarch is non-NULL.
669 (alloc_type_instance): Allocate non-objfile owned types on the
670 gdbarch obstack.
671 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
672 using TYPE_ALLOC to ensure memory is allocated on the correct
673 obstack.
674 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
675 obstack, or the gdbarch obstack.
676 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
677
678 2018-09-14 Tom Tromey <tom@tromey.com>
679
680 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
681 block.
682
683 2018-09-14 Tom Tromey <tom@tromey.com>
684
685 * nat/fork-inferior.c (get_startup_shell): Remove "static".
686
687 2018-09-13 Tom Tromey <tom@tromey.com>
688
689 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
690 static.
691
692 2018-09-13 Tom Tromey <tom@tromey.com>
693
694 * exec.c (try_open_exec_file): Use std::string.
695
696 2018-09-13 Tom Tromey <tom@tromey.com>
697
698 * utils.h (gdb_bfd_errmsg): Return std::string.
699 * exec.c (exec_file_attach): Update.
700 * compile/compile-object-load.c (compile_object_load): Update.
701 * utils.c (gdb_bfd_errmsg): Return std::string.
702
703 2018-09-13 Tom Tromey <tom@tromey.com>
704
705 * procfs.c (struct procinfo_deleter): New.
706 (procinfo_up): New typedef.
707 (do_destroy_procinfo_cleanup): Remove.
708 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
709
710 2018-09-13 Tom Tromey <tom@tromey.com>
711
712 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
713
714 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
715 2018-09-13 Tom Tromey <tom@tromey.com>
716
717 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
718 (pspy_get_objfiles): New function.
719 (progspace_object_methods): New.
720 (pspace_object_type): Add tp_methods callback.
721 * python/python-internal.h (build_objfiles_list): New
722 declaration.
723 * python/python.c (build_objfiles_list): New function.
724 (gdbpy_objfiles): Implement using build_objfiles_list.
725 * NEWS: Mention the Progspace.objfiles method.
726
727 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
728
729 * python/py-inferior.c (infpy_get_progspace): New function.
730 (inferior_object_getset): Add progspace property.
731 * NEWS: Mention the new property.
732
733 2018-09-13 Tom Tromey <tom@tromey.com>
734
735 PR rust/23650:
736 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
737
738 2018-09-13 Tom Tromey <tom@tromey.com>
739
740 PR rust/23626:
741 * rust-lang.c (rust_enum_variant): Now static.
742 (rust_empty_enum_p): New function.
743 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
744 Handle empty enum.
745
746 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
747
748 * python/py-inferior.c (infpy_repr): New.
749 (inferior_object_type): Register infpy_repr.
750 * python/py-objfile.c (objfpy_repr): New.
751 (objfile_object_type): Register objfpy_repr.
752
753 2018-09-12 John Baldwin <jhb@FreeBSD.org>
754
755 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
756
757 2018-09-12 John Baldwin <jhb@FreeBSD.org>
758
759 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
760 typo.
761
762 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
763
764 * common/common-utils.c: Don't include '<sys/stat.h>'.
765 (is_regular_file): Move to...
766 * common/filestuff.c (is_regular_file): ... here.
767 * common/common-utils.h (is_regular_file): Move to...
768 * common/filestuff.h (is_regular_file): ... here.
769
770 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
771
772 * skip.c (debug_skip): New variable.
773 (skiplist_entry::do_skip_file_p): Add debug output.
774 (skiplist_entry::do_skip_gfile_p): Likewise.
775 (skiplist_entry::skip_function_p): Likewise.
776 (_initialize_step_skip): Create debug command.
777 * NEWS: Mention set/show debug skip.
778
779 2018-09-11 Xavier Roirand <roirand@adacore.com>
780
781 * darwin-nat.c (should_disable_startup_with_shell):
782 New function.
783 (darwin_nat_target::create_inferior): Add call.
784
785 2018-09-11 Xavier Roirand <roirand@adacore.com>
786
787 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
788 inf_port, msg_state>: Initialize.
789 (struct darwin_thread_info) <signaled, single_step>: Change
790 type and initialize.
791 (struct darwin_thread_info) <event>: Initialize.
792
793 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
794
795 PR gdb/23555
796 PR gdb/23558
797 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
798 guesses.
799
800 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
801
802 Revert:
803 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
804
805 PR gdb/23555
806 PR gdb/23558
807 * gnulib/aclocal.m4: Regenerate.
808 * gnulib/config.in: Regenerate.
809 * gnulib/configure: Regenerate.
810 * gnulib/import/Makefile.am: Update.
811 * gnulib/import/Makefile.in: Update.
812 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
813 * gnulib/import/_Noreturn.h: ... this.
814 * gnulib/import/alloca.in.h: Update.
815 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
816 * gnulib/import/arg-nonnull.h: ... this.
817 * gnulib/import/assure.h: Update.
818 * gnulib/import/at-func.c: Update.
819 * gnulib/import/basename-lgpl.c: Update.
820 * gnulib/import/extra/snippet/c++defs.h: Rename to...
821 * gnulib/import/c++defs.h: ... this.
822 * gnulib/import/canonicalize-lgpl.c: Update.
823 * gnulib/import/cdefs.h: Update.
824 * gnulib/import/chdir-long.c: Update.
825 * gnulib/import/chdir-long.h: Update.
826 * gnulib/import/cloexec.c: Update.
827 * gnulib/import/cloexec.h: Update.
828 * gnulib/import/close.c: Update.
829 * gnulib/import/closedir.c: Update.
830 * gnulib/import/config.charset: Update.
831 * gnulib/import/dirent-private.h: Update.
832 * gnulib/import/dirent.in.h: Update.
833 * gnulib/import/dirfd.c: Update.
834 * gnulib/import/dirname-lgpl.c: Update.
835 * gnulib/import/dirname.h: Update.
836 * gnulib/import/dosname.h: Update.
837 * gnulib/import/dup-safer-flag.c: Update.
838 * gnulib/import/dup-safer.c: Update.
839 * gnulib/import/dup.c: Update.
840 * gnulib/import/dup2.c: Update.
841 * gnulib/import/errno.in.h: Update.
842 * gnulib/import/error.c: Update.
843 * gnulib/import/error.h: Update.
844 * gnulib/import/exitfail.c: Update.
845 * gnulib/import/exitfail.h: Update.
846 * gnulib/import/extra/update-copyright: Update.
847 * gnulib/import/fchdir.c: Update.
848 * gnulib/import/fcntl.c: Update.
849 * gnulib/import/fcntl.in.h: Update.
850 * gnulib/import/fd-hook.c: Update.
851 * gnulib/import/fd-hook.h: Update.
852 * gnulib/import/fd-safer-flag.c: Update.
853 * gnulib/import/fd-safer.c: Update.
854 * gnulib/import/fdopendir.c: Update.
855 * gnulib/import/filename.h: Update.
856 * gnulib/import/filenamecat-lgpl.c: Update.
857 * gnulib/import/filenamecat.h: Update.
858 * gnulib/import/flexmember.h: Update.
859 * gnulib/import/float+.h: Update.
860 * gnulib/import/float.c: Update.
861 * gnulib/import/float.in.h: Update.
862 * gnulib/import/fnmatch.c: Update.
863 * gnulib/import/fnmatch.in.h: Update.
864 * gnulib/import/fnmatch_loop.c: Update.
865 * gnulib/import/fpucw.h: Update.
866 * gnulib/import/frexp.c: Update.
867 * gnulib/import/frexpl.c: Update.
868 * gnulib/import/fstat.c: Update.
869 * gnulib/import/fstatat.c: Update.
870 * gnulib/import/getcwd-lgpl.c: Update.
871 * gnulib/import/getcwd.c: Update.
872 * gnulib/import/getdtablesize.c: Update.
873 * gnulib/import/getlogin_r.c: Update.
874 * gnulib/import/getprogname.c: Update.
875 * gnulib/import/getprogname.h: Update.
876 * gnulib/import/gettext.h: Update.
877 * gnulib/import/gettimeofday.c: Update.
878 * gnulib/import/glob-libc.h: Update.
879 * gnulib/import/glob.c: Update.
880 * gnulib/import/glob.in.h: Update.
881 * gnulib/import/glob_internal.h: Update.
882 * gnulib/import/glob_pattern_p.c: Update.
883 * gnulib/import/globfree.c: Update.
884 * gnulib/import/hard-locale.c: Update.
885 * gnulib/import/hard-locale.h: Update.
886 * gnulib/import/intprops.h: Update.
887 * gnulib/import/inttypes.in.h: Update.
888 * gnulib/import/isnan.c: Update.
889 * gnulib/import/isnand-nolibm.h: Update.
890 * gnulib/import/isnand.c: Update.
891 * gnulib/import/isnanl-nolibm.h: Update.
892 * gnulib/import/isnanl.c: Update.
893 * gnulib/import/itold.c: Update.
894 * gnulib/import/libc-config.h: Update.
895 * gnulib/import/limits.in.h: Update.
896 * gnulib/import/localcharset.c: Update.
897 * gnulib/import/localcharset.h: Update.
898 * gnulib/import/localtime-buffer.c: Update.
899 * gnulib/import/localtime-buffer.h: Update.
900 * gnulib/import/lstat.c: Update.
901 * gnulib/import/m4/00gnulib.m4: Update.
902 * gnulib/import/m4/__inline.m4: Update.
903 * gnulib/import/m4/absolute-header.m4: Update.
904 * gnulib/import/m4/alloca.m4: Update.
905 * gnulib/import/m4/builtin-expect.m4: Update.
906 * gnulib/import/m4/canonicalize.m4: Update.
907 * gnulib/import/m4/chdir-long.m4: Update.
908 * gnulib/import/m4/close.m4: Update.
909 * gnulib/import/m4/closedir.m4: Update.
910 * gnulib/import/m4/configmake.m4: Update.
911 * gnulib/import/m4/d-ino.m4: Update.
912 * gnulib/import/m4/d-type.m4: Update.
913 * gnulib/import/m4/dirent_h.m4: Update.
914 * gnulib/import/m4/dirfd.m4: Update.
915 * gnulib/import/m4/dirname.m4: Update.
916 * gnulib/import/m4/double-slash-root.m4: Update.
917 * gnulib/import/m4/dup.m4: Update.
918 * gnulib/import/m4/dup2.m4: Update.
919 * gnulib/import/m4/eealloc.m4: Update.
920 * gnulib/import/m4/environ.m4: Update.
921 * gnulib/import/m4/errno_h.m4: Update.
922 * gnulib/import/m4/error.m4: Update.
923 * gnulib/import/m4/exponentd.m4: Update.
924 * gnulib/import/m4/exponentl.m4: Update.
925 * gnulib/import/m4/extensions.m4: Update.
926 * gnulib/import/m4/extern-inline.m4: Update.
927 * gnulib/import/m4/fchdir.m4: Update.
928 * gnulib/import/m4/fcntl-o.m4: Update.
929 * gnulib/import/m4/fcntl.m4: Update.
930 * gnulib/import/m4/fcntl_h.m4: Update.
931 * gnulib/import/m4/fdopendir.m4: Update.
932 * gnulib/import/m4/filenamecat.m4: Update.
933 * gnulib/import/m4/flexmember.m4: Update.
934 * gnulib/import/m4/float_h.m4: Update.
935 * gnulib/import/m4/fnmatch.m4: Update.
936 * gnulib/import/m4/fnmatch_h.m4: Update.
937 * gnulib/import/m4/fpieee.m4: Update.
938 * gnulib/import/m4/frexp.m4: Update.
939 * gnulib/import/m4/frexpl.m4: Update.
940 * gnulib/import/m4/fstat.m4: Update.
941 * gnulib/import/m4/fstatat.m4: Update.
942 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
943 * gnulib/import/m4/getcwd-path-max.m4: Update.
944 * gnulib/import/m4/getcwd.m4: Update.
945 * gnulib/import/m4/getdtablesize.m4: Update.
946 * gnulib/import/m4/getlogin.m4: Update.
947 * gnulib/import/m4/getlogin_r.m4: Update.
948 * gnulib/import/m4/getpagesize.m4: Update.
949 * gnulib/import/m4/getprogname.m4: Update.
950 * gnulib/import/m4/gettimeofday.m4: Update.
951 * gnulib/import/m4/glibc21.m4: Update.
952 * gnulib/import/m4/glob.m4: Update.
953 * gnulib/import/m4/glob_h.m4: Update.
954 * gnulib/import/m4/gnulib-cache.m4: Update.
955 * gnulib/import/m4/gnulib-common.m4: Update.
956 * gnulib/import/m4/gnulib-comp.m4: Update.
957 * gnulib/import/m4/gnulib-tool.m4: Update.
958 * gnulib/import/m4/hard-locale.m4: Update.
959 * gnulib/import/m4/include_next.m4: Update.
960 * gnulib/import/m4/inttypes-pri.m4: Update.
961 * gnulib/import/m4/inttypes.m4: Update.
962 * gnulib/import/m4/isnand.m4: Update.
963 * gnulib/import/m4/isnanl.m4: Update.
964 * gnulib/import/m4/largefile.m4: Update.
965 * gnulib/import/m4/limits-h.m4: Update.
966 * gnulib/import/m4/localcharset.m4: Update.
967 * gnulib/import/m4/locale-fr.m4: Update.
968 * gnulib/import/m4/locale-ja.m4: Update.
969 * gnulib/import/m4/locale-zh.m4: Update.
970 * gnulib/import/m4/localtime-buffer.m4: Update.
971 * gnulib/import/m4/longlong.m4: Update.
972 * gnulib/import/m4/lstat.m4: Update.
973 * gnulib/import/m4/malloc.m4: Update.
974 * gnulib/import/m4/malloca.m4: Update.
975 * gnulib/import/m4/math_h.m4: Update.
976 * gnulib/import/m4/mbrtowc.m4: Update.
977 * gnulib/import/m4/mbsinit.m4: Update.
978 * gnulib/import/m4/mbsrtowcs.m4: Update.
979 * gnulib/import/m4/mbstate_t.m4: Update.
980 * gnulib/import/m4/memchr.m4: Update.
981 * gnulib/import/m4/memmem.m4: Update.
982 * gnulib/import/m4/mempcpy.m4: Update.
983 * gnulib/import/m4/memrchr.m4: Update.
984 * gnulib/import/m4/mkdir.m4: Update.
985 * gnulib/import/m4/mkstemp.m4: Update.
986 * gnulib/import/m4/mmap-anon.m4: Update.
987 * gnulib/import/m4/mode_t.m4: Update.
988 * gnulib/import/m4/msvc-inval.m4: Update.
989 * gnulib/import/m4/msvc-nothrow.m4: Update.
990 * gnulib/import/m4/multiarch.m4: Update.
991 * gnulib/import/m4/nocrash.m4: Update.
992 * gnulib/import/m4/off_t.m4: Update.
993 * gnulib/import/m4/onceonly.m4: Update.
994 * gnulib/import/m4/open-cloexec.m4: Update.
995 * gnulib/import/m4/open.m4: Update.
996 * gnulib/import/m4/openat.m4: Update.
997 * gnulib/import/m4/opendir.m4: Update.
998 * gnulib/import/m4/pathmax.m4: Update.
999 * gnulib/import/m4/rawmemchr.m4: Update.
1000 * gnulib/import/m4/readdir.m4: Update.
1001 * gnulib/import/m4/readlink.m4: Update.
1002 * gnulib/import/m4/realloc.m4: Update.
1003 * gnulib/import/m4/rename.m4: Update.
1004 * gnulib/import/m4/rewinddir.m4: Update.
1005 * gnulib/import/m4/rmdir.m4: Update.
1006 * gnulib/import/m4/save-cwd.m4: Update.
1007 * gnulib/import/m4/secure_getenv.m4: Update.
1008 * gnulib/import/m4/setenv.m4: Update.
1009 * gnulib/import/m4/signal_h.m4: Update.
1010 * gnulib/import/m4/ssize_t.m4: Update.
1011 * gnulib/import/m4/stat-time.m4: Update.
1012 * gnulib/import/m4/stat.m4: Update.
1013 * gnulib/import/m4/std-gnu11.m4: Update.
1014 * gnulib/import/m4/stdbool.m4: Update.
1015 * gnulib/import/m4/stddef_h.m4: Update.
1016 * gnulib/import/m4/stdint.m4: Update.
1017 * gnulib/import/m4/stdio_h.m4: Update.
1018 * gnulib/import/m4/stdlib_h.m4: Update.
1019 * gnulib/import/m4/strchrnul.m4: Update.
1020 * gnulib/import/m4/strdup.m4: Update.
1021 * gnulib/import/m4/strerror.m4: Update.
1022 * gnulib/import/m4/string_h.m4: Update.
1023 * gnulib/import/m4/strstr.m4: Update.
1024 * gnulib/import/m4/strtok_r.m4: Update.
1025 * gnulib/import/m4/sys_socket_h.m4: Update.
1026 * gnulib/import/m4/sys_stat_h.m4: Update.
1027 * gnulib/import/m4/sys_time_h.m4: Update.
1028 * gnulib/import/m4/sys_types_h.m4: Update.
1029 * gnulib/import/m4/tempname.m4: Update.
1030 * gnulib/import/m4/time_h.m4: Update.
1031 * gnulib/import/m4/unistd-safer.m4: Update.
1032 * gnulib/import/m4/unistd_h.m4: Update.
1033 * gnulib/import/m4/warn-on-use.m4: Update.
1034 * gnulib/import/m4/wchar_h.m4: Update.
1035 * gnulib/import/m4/wchar_t.m4: Update.
1036 * gnulib/import/m4/wctype_h.m4: Update.
1037 * gnulib/import/m4/wint_t.m4: Update.
1038 * gnulib/import/malloc.c: Update.
1039 * gnulib/import/malloc/scratch_buffer.h: Update.
1040 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1041 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1042 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1043 * gnulib/import/malloca.c: Update.
1044 * gnulib/import/malloca.h: Update.
1045 * gnulib/import/malloca.valgrind: Update.
1046 * gnulib/import/math.in.h: Update.
1047 * gnulib/import/mbrtowc.c: Update.
1048 * gnulib/import/mbsinit.c: Update.
1049 * gnulib/import/mbsrtowcs-impl.h: Update.
1050 * gnulib/import/mbsrtowcs-state.c: Update.
1051 * gnulib/import/mbsrtowcs.c: Update.
1052 * gnulib/import/memchr.c: Update.
1053 * gnulib/import/memmem.c: Update.
1054 * gnulib/import/mempcpy.c: Update.
1055 * gnulib/import/memrchr.c: Update.
1056 * gnulib/import/mkdir.c: Update.
1057 * gnulib/import/mkstemp.c: Update.
1058 * gnulib/import/msvc-inval.c: Update.
1059 * gnulib/import/msvc-inval.h: Update.
1060 * gnulib/import/msvc-nothrow.c: Update.
1061 * gnulib/import/msvc-nothrow.h: Update.
1062 * gnulib/import/open.c: Update.
1063 * gnulib/import/openat-die.c: Update.
1064 * gnulib/import/openat-priv.h: Update.
1065 * gnulib/import/openat-proc.c: Update.
1066 * gnulib/import/openat.c: Update.
1067 * gnulib/import/openat.h: Update.
1068 * gnulib/import/opendir.c: Update.
1069 * gnulib/import/pathmax.h: Update.
1070 * gnulib/import/pipe-safer.c: Update.
1071 * gnulib/import/rawmemchr.c: Update.
1072 * gnulib/import/readdir.c: Update.
1073 * gnulib/import/readlink.c: Update.
1074 * gnulib/import/realloc.c: Update.
1075 * gnulib/import/ref-add.sin: Update.
1076 * gnulib/import/ref-del.sin: Update.
1077 * gnulib/import/rename.c: Update.
1078 * gnulib/import/rewinddir.c: Update.
1079 * gnulib/import/rmdir.c: Update.
1080 * gnulib/import/same-inode.h: Update.
1081 * gnulib/import/save-cwd.c: Update.
1082 * gnulib/import/save-cwd.h: Update.
1083 * gnulib/import/scratch_buffer.h: Update.
1084 * gnulib/import/secure_getenv.c: Update.
1085 * gnulib/import/setenv.c: Update.
1086 * gnulib/import/signal.in.h: Update.
1087 * gnulib/import/stat-time.c: Update.
1088 * gnulib/import/stat-time.h: Update.
1089 * gnulib/import/stat-w32.c: Update.
1090 * gnulib/import/stat-w32.h: Update.
1091 * gnulib/import/stat.c: Update.
1092 * gnulib/import/stdbool.in.h: Update.
1093 * gnulib/import/stddef.in.h: Update.
1094 * gnulib/import/stdint.in.h: Update.
1095 * gnulib/import/stdio.in.h: Update.
1096 * gnulib/import/stdlib.in.h: Update.
1097 * gnulib/import/str-two-way.h: Update.
1098 * gnulib/import/strchrnul.c: Update.
1099 * gnulib/import/strdup.c: Update.
1100 * gnulib/import/streq.h: Update.
1101 * gnulib/import/strerror-override.c: Update.
1102 * gnulib/import/strerror-override.h: Update.
1103 * gnulib/import/strerror.c: Update.
1104 * gnulib/import/string.in.h: Update.
1105 * gnulib/import/stripslash.c: Update.
1106 * gnulib/import/strnlen1.c: Update.
1107 * gnulib/import/strnlen1.h: Update.
1108 * gnulib/import/strstr.c: Update.
1109 * gnulib/import/strtok_r.c: Update.
1110 * gnulib/import/sys_stat.in.h: Update.
1111 * gnulib/import/sys_time.in.h: Update.
1112 * gnulib/import/sys_types.in.h: Update.
1113 * gnulib/import/tempname.c: Update.
1114 * gnulib/import/tempname.h: Update.
1115 * gnulib/import/time.in.h: Update.
1116 * gnulib/import/unistd--.h: Update.
1117 * gnulib/import/unistd-safer.h: Update.
1118 * gnulib/import/unistd.in.h: Update.
1119 * gnulib/import/unsetenv.c: Update.
1120 * gnulib/import/verify.h: Update.
1121 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1122 * gnulib/import/wchar.in.h: Update.
1123 * gnulib/import/wctype.in.h: Update.
1124 * gnulib/import/xalloc-oversized.h: Update.
1125 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1126 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1127
1128 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1129
1130 * record-btrace.c (get_thread_current_frame): Remove
1131 old_inferior_ptid.
1132
1133 2018-09-10 Jerome Guitton <guitton@adacore.com>
1134
1135 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1136 with check_tag to 1 if and only if the type is tagged and the
1137 component being searched cannot been found in the current
1138 view. Otherwise, always call ada_to_fixed_type with
1139 check_tag to 0.
1140
1141 2018-09-10 Xavier Roirand <roirand@adacore.com>
1142
1143 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1144 declaration.
1145 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1146 * ada-varobj.c (ada_varobj_get_number_of_children,
1147 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1148
1149 2018-09-10 Xavier Roirand <roirand@adacore.com>
1150
1151 * ada-valprint.c (ada_value_print): Use type instead of
1152 enclosing type.
1153
1154 2018-09-10 Xavier Roirand <roirand@adacore.com>
1155
1156 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1157 an array of access to unconstrained array.
1158
1159 2018-09-10 Xavier Roirand <roirand@adacore.com>
1160
1161 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1162 (ada_check_typedef): Use it.
1163
1164 2018-09-10 Xavier Roirand <roirand@adacore.com>
1165
1166 * ada-varobj.c (ada_varobj_describe_struct_child)
1167 (ada_varobj_describe_child): Handle union case like struct one.
1168
1169 2018-09-10 Tom Tromey <tom@tromey.com>
1170
1171 PR python/18380:
1172 * python/python.c (_initialize_python): Make example in "python"
1173 help work in Python 3.
1174
1175 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1176
1177 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1178 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1179 $(EXEEXT) to the script, as it is not a program.
1180
1181 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1182
1183 * python/py-prettyprint.c (pretty_print_one_value): Return
1184 gdbpy_ref<>.
1185 (print_string_repr): Adjust.
1186 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1187 * python/python-internal.h (apply_varobj_pretty_printer): Return
1188 gdbpy_ref<>.
1189 * varobj.c (varobj_value_get_print_value): Adjust.
1190
1191 2018-09-08 Tom Tromey <tom@tromey.com>
1192
1193 PR python/16047:
1194 * python/py-prettyprint.c (pretty_print_one_value): Check for
1195 to_string method.
1196
1197 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1198
1199 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1200 replace_operator_with_call.
1201
1202 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1203
1204 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1205
1206 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1207
1208 * ada-typeprint.c (print_range): Print the bounds using TYPE
1209 rather than its TYPE_TARGET_TYPE.
1210
1211 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1212
1213 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1214 call to ada_to_fixed_value_create.
1215
1216 2018-09-08 Jerome Guitton <guitton@adacore.com>
1217
1218 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1219
1220 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1221
1222 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1223 by calls to error.
1224
1225 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1226
1227 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1228 Move update of loop variable "fi".
1229
1230 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1231
1232 * ada-lang.c (value_assign_to_component): In the case of
1233 big-endian targets, extract the bits of the given VAL
1234 using an src_offset of zero if container is not a scalar.
1235
1236 2018-09-06 Simon Ser <contact@emersion.fr>
1237
1238 PR gdb/23105
1239 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1240 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1241 * fbsd-tdep.c (fbsd_make_note_desc): New.
1242 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1243 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1244 * target.h (enum target_object) Add FreeBSD-specific
1245 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1246
1247 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1248
1249 * compile/compile-c.h (generate_c_for_variable_locations):
1250 Change reference to pointer.
1251 * compile/compile-c-support.c (compile_program) <compute>:
1252 Likewise.
1253 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1254 (generate_c_for_for_one_variable): Likewise
1255 (generate_c_for_variable_locations): Likewise
1256 * compile/compile-c-types.c (compile_c_instance::convert_type):
1257 Likewise
1258 * compile/compile-cplus-symbols.c (convert_one_symbol):
1259 std::move the scope passed to enter_scope.
1260 * compile/compile-cplus-types.c
1261 (compile_cplus_instance::enter_scope): Make parameter
1262 rvalue-reference.
1263 (compile_cplus_instance::new_scope): Change reference to
1264 pointer.
1265 (compile_cplus_instance::convert_type): Likewise
1266 (compile_cplus_convert_typedef): std::move the scope passed to
1267 enter_scope.
1268 (compile_cplus_convert_struct_or_union): Likewise.
1269 (compile_cplus_convert_enum): Likewise.
1270 (compile_cplus_convert_namespace): Likewise.
1271 * compile/compile-cplus.h (compile_cplus_instance)
1272 <enter_scope>: Make parameter rvalue-reference.
1273 * compile/compile-internal.h (compile_instance)
1274 <get_cached_type>: Likewise
1275 * compile/compile-loc2c.c (push): Likewise
1276 (pushf): Likewise
1277 (unary): Likewise
1278 (binary): Likewise
1279 (print_label): Likewise
1280 (pushf_register_address): Likewise
1281 (pushf_register): Likewise
1282 (do_compile_dwarf_expr_to_c): Likewise
1283 (compile_dwarf_expr_to_c): Likewise
1284 (compile_dwarf_bounds_to_c): Likewise
1285 * compile/compile.c (compile_instance::get_cached_type):
1286 Likewise
1287 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1288 (compile_dwarf_bounds_to_c): Likewise
1289 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1290 (dwarf2_compile_property_to_c): Likewise
1291 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1292 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1293 Likewise
1294
1295 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1296
1297 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1298 * tui/tui-data.c (init_content_element): Don't initialize it.
1299
1300 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1301
1302 * tui/tui-data.h (struct tui_win_info)
1303 <detail::opaque>: Remove.
1304 * tui/tui-data.c (init_win_info): Remove assignment.
1305
1306 2018-09-05 Tom Tromey <tom@tromey.com>
1307
1308 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1309 -Wformat-nonliteral.
1310 * target-float.c (host_float_ops<T>::to_string)
1311 (host_float_ops<T>::from_string): Use
1312 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1313 * configure: Rebuild.
1314
1315 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1316
1317 * printcmd.c (printf_c_string): Use
1318 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1319 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1320
1321 2018-09-05 Tom Tromey <tom@tromey.com>
1322
1323 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1324
1325 2018-09-05 Tom de Vries <tdevries@suse.de>
1326
1327 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1328 with resolve_abstract_p == true.
1329 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1330 defaulting to false. Propagate resolve_abstract_p to
1331 dwarf2_fetch_die_loc_sect_off.
1332 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1333 parameter, defaulting to false.
1334 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1335 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1336 parameter.
1337 * dwarf2read.h (struct die_info): Forward-declare.
1338 (die_info_ptr): New typedef.
1339 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1340
1341 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1342
1343 GDB 8.2 released.
1344
1345 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1346 Pedro Alves <palves@redhat.com>
1347
1348 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1349 "aclocal-m4-deps.mk". Include file here.
1350 $(srcdir)/aclocal.m4: Add "configure.ac".
1351 * gnulib/aclocal-m4-deps.mk: New file.
1352 * gnulib/update-gnulib.sh: Automatically update
1353 "aclocal-m4-deps.mk".
1354
1355 2018-09-04 Tom Tromey <tom@tromey.com>
1356
1357 * configure: Rebuild.
1358 * configure.ac: Remove multi-ice code.
1359
1360 2018-09-04 Tom Tromey <tom@tromey.com>
1361
1362 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1363 (ada-exp.o): Update.
1364
1365 2018-09-04 Tom Tromey <tom@tromey.com>
1366
1367 * Makefile.in (printcmd.o, target-float.o): Remove.
1368 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1369
1370 2018-09-04 Tom Tromey <tom@tromey.com>
1371
1372 * gnulib/Makefile.in: Remove obsolete comment.
1373 * Makefile.in: Remove obsolete comment.
1374
1375 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1376
1377 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1378 line with '+'.
1379
1380 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * riscv-tdep.c: Add 'prologue-value.h' include.
1383 (struct riscv_unwind_cache): New struct.
1384 (riscv_debug_unwinder): New global.
1385 (riscv_scan_prologue): Update arguments, capture register details
1386 from prologue scan.
1387 (riscv_skip_prologue): Reformat arguments line, move end of
1388 prologue calculation into riscv_scan_prologue.
1389 (riscv_frame_cache): Update return type, create
1390 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1391 details.
1392 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1393 (riscv_frame_prev_register): Use the trad_frame within the
1394 riscv_unwind_cache.
1395 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1396 flag.
1397
1398 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1399
1400 * trad-frame.h (trad_frame_set_realreg): Declare.
1401 (trad_frame_set_addr): Declare.
1402 * trad-frame.c (trad_frame_set_realreg): Define new function.
1403 (trad_frame_set_addr): Define new function.
1404 (trad_frame_set_reg_realreg): Use new function.
1405 (trad_frame_set_reg_addr): Use new function.
1406
1407 2018-09-01 Keith Seitz <keiths@redhat.com>
1408
1409 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1410 pulongest instead of "%lld".
1411 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1412 ATTRIBUTE_UNUSED.
1413
1414 2018-08-31 Tom Tromey <tom@tromey.com>
1415
1416 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1417 variant part type.
1418
1419 2018-08-31 Pedro Alves <palves@redhat.com>
1420
1421 * gdbarch.h: Regenerate.
1422
1423 2018-08-31 Pedro Alves <palves@redhat.com>
1424
1425 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1426 * target.h (Hardware watchpoint interfaces): Describe
1427 continuable/steppable/non-steppable watchpoints.
1428 * gdbarch.h, gdbarch.c: Regenerate.
1429
1430 2018-08-31 Pedro Alves <palves@redhat.com>
1431
1432 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1433 Delete.
1434 * s390-linux-nat.c
1435 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1436 * target.h (target_ops::have_continuable_watchpoint): Delete.
1437 (target_have_continuable_watchpoint): Delete.
1438 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1439 * target-delegates.c: Regenerate.
1440
1441 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1442
1443 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1444 the files present in "gnulib/import/m4/".
1445
1446 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1449 c.sw, c.swsp, and c.sdsp.
1450
1451 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1452
1453 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1454 (riscv_read_misa_reg): Don't cache value read into inferior data.
1455 (riscv_new_inferior_data): Delete.
1456 (riscv_inferior_data_cleanup): Delete.
1457 (riscv_inferior_data): Delete.
1458 (riscv_invalidate_inferior_data): Delete.
1459 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1460
1461 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1462
1463 * compile/compile-cplus-types.c
1464 (compile_cplus_instance::leave_scope): Take the address of scope
1465 object.
1466 (compile_cplus_instance::convert_qualified_base): Compare quals
1467 to 0.
1468
1469 2018-08-30 Keith Seitz <keiths@redhat.com>
1470
1471 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1472 Use "%s" and host_address_to_string instead of "%p" in printf.
1473
1474 2018-08-29 Keith Seitz <keiths@redhat.com>
1475
1476 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1477 and compile-cplus-types.c.
1478 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1479 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1480 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1481 Declare.
1482 * compile/compile-c-support.c: Include compile-cplus.h.
1483 (load_libcompile): Templatize.
1484 (get_compile_context): "New" function.
1485 (c_get_compile_context): Use get_compile_context.
1486 (cplus_get_compile_context): New function.
1487 (cplus_push_user_expression, cplus_pop_user_expression)
1488 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1489 (cplus_compute_program): Define new structs/functions.
1490 * compile/compile-cplus-symmbols.c: New file.
1491 * compile/compile-cplus-types.c: New file.
1492 * compile/compile-cplus.h: New file.
1493 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1494 Declare.
1495 * compile/compile-object-load.c (get_out_value_type): Use
1496 strncmp_iw when comparing symbol names.
1497 (compile_object_load): Add mst_bss and mst_data.
1498 * compile/compile.c (_initialize_compile): Remove
1499 -Wno-implicit-function-declaration from `compile_args'.
1500 * compile/gcc-cp-plugin.h: New file.
1501 * NEWS: Mention C++ compile support and new debug options.
1502
1503 2018-08-29 Keith Seitz <keiths@redhat.com>
1504
1505 * linespec.c (collect_info::add_symbol): Make virtual.
1506 (struct symbol_searcher_collect_info): New struct.
1507 (symbol_searcher::find_all_symbols): New method.
1508 * symtab.h (class symbol_searcher): New class.
1509
1510 2018-08-29 Keith Seitz <keiths@redhat.com>
1511
1512 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1513 Change to vector of block_symbol. Update all users.
1514 (struct collect_info) <symbols>: Likewise.
1515 (collect_info::add_symbol): Take block_symbol as argument.
1516 Update all callers.
1517 (decode_compound_collector) <m_symbols>: Change type to vector
1518 of block_symbol. Update all users.
1519 (decode_compound_collector::operator ()): Change parameter type
1520 to block_symbol.
1521 (find_method, find_function_symbols, find_linespec_symbols)
1522 (find_label_symbols_in_block, find_label_symbols): Change symbol
1523 vectors to block_symbol vectors.
1524 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1525 block_symbol.
1526
1527 2018-08-29 Keith Seitz <keiths@redhat.com>
1528
1529 * linespec.c (symbolp): Remove typedef and VEC definitions.
1530 (bound_minimal_symbol_d): Likewise.
1531
1532 2018-08-29 Keith Seitz <keiths@redhat.com>
1533
1534 * linespec.c (decode_compound_collector::decode_compound_collector):
1535 Remove initialization for `m_symtabs'.
1536 (decode_compound_collector::release_symbols): Change return type
1537 to std::vector. Update all callers.
1538 (class decode_compound_collector) <m_symbols>: Change type to
1539 std::vector.
1540 (lookup_prefix_sym): Change return type to std::vector. Update all
1541 callers.
1542 (compare_symbols): Remove.
1543 (std_compare_symbols): Rename to `compare_symbols'.
1544 (find_method): Change `sym_classes' parameter to std::vector.
1545 Update all callers. Use std::sort to sort sym_classes.
1546 (find_linespec_symbols): Remove cleanup.
1547
1548 2018-08-29 Keith Seitz <keiths@redhat.com>
1549
1550 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1551 std::vector. Update all users.
1552 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1553 (struct collect_info) <minimal_symbols>: Likewise.
1554 (compare_msymbols): Return bool. Change parameters to const
1555 bound_minimal_symbol references.
1556 (find_method, find_function_symbols, find_linespec_symbols): Change
1557 `minsyms' parameter to std::vector. Update all callers.
1558
1559 2018-08-29 Keith Seitz <keiths@redhat.com>
1560
1561 * linespec.c (struct linespec) <label_symbols>: Change type to
1562 std::vector. Update all users.
1563 (find_label_symbols_in_block): Change `result' parameter to
1564 std::vector. Update all callers.
1565 (find_label_symbols): Return std::vector. Update all callers.
1566
1567 2018-08-29 Keith Seitz <keiths@redhat.com>
1568
1569 * linespec.c (struct linespec) <function_symbols>: Change type to
1570 std::vector. Update all users.
1571 (struct collect_info) <function_symbols>: Likewise.
1572 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1573 (std_compare_symbols): New function.
1574 (find_method, find_function_symbols, find_linespec_symbols)
1575 (find_label_symbols_in_block): Change `symbols' parameter to
1576 std::vector. Update all callers.
1577 (find_label_symbols): Likewise for `function_symbols' and
1578 `label_funcs_ret'.
1579
1580 2018-08-29 Keith Seitz <keiths@redhat.com>
1581
1582 * linespec.c (symtab_vector_up): Define.
1583 (struct linespec) <file_symtabs>: Change type to std::vector *.
1584 Update all uses.
1585 (struct collect_info) <file_symtabs>: Likewise.
1586 (collect_symtabs_from_filename): Return symtab_vector_up.
1587 Update all callers.
1588 (decode_objc): Remove cleanup.
1589 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1590 (symtab_collector::release_symtabs): Return symtab_vector_up.
1591 Update all callers.
1592 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1593 Update all users.
1594 (collect_symtabs_from_filename, symtabs_from_filename): Return
1595 symtab_vector_up. Update all callers.
1596
1597 2018-08-29 Tom Tromey <tom@tromey.com>
1598
1599 * csky-tdep.c (csky_analyze_prologue): Use
1600 core_addr_to_string_nz.
1601
1602 2018-08-29 Tom Tromey <tom@tromey.com>
1603
1604 * windows-nat.c (struct xlate_exception) <them>: Change type to
1605 DWORD.
1606 (xlate): Fix formatting. Remove last entry.
1607 (struct xlate_exception, xlate): Comment out.
1608 (windows_nat_target::resume): Use ranged for.
1609
1610 2018-08-29 Jim Wilson <jimw@sifive.com>
1611
1612 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1613 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1614 of NT_PRFPREG.
1615 (riscv_linux_nat_target::store_registers): Likewise.
1616
1617 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1618
1619 PR gdb/23555
1620 PR gdb/23558
1621 * gnulib/aclocal.m4: Regenerate.
1622 * gnulib/config.in: Regenerate.
1623 * gnulib/configure: Regenerate.
1624 * gnulib/import/Makefile.am: Update.
1625 * gnulib/import/Makefile.in: Update.
1626 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1627 * gnulib/import/_Noreturn.h: ... this.
1628 * gnulib/import/alloca.in.h: Update.
1629 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1630 * gnulib/import/arg-nonnull.h: ... this.
1631 * gnulib/import/assure.h: Update.
1632 * gnulib/import/at-func.c: Update.
1633 * gnulib/import/basename-lgpl.c: Update.
1634 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1635 * gnulib/import/c++defs.h: ... this.
1636 * gnulib/import/canonicalize-lgpl.c: Update.
1637 * gnulib/import/cdefs.h: Update.
1638 * gnulib/import/chdir-long.c: Update.
1639 * gnulib/import/chdir-long.h: Update.
1640 * gnulib/import/cloexec.c: Update.
1641 * gnulib/import/cloexec.h: Update.
1642 * gnulib/import/close.c: Update.
1643 * gnulib/import/closedir.c: Update.
1644 * gnulib/import/config.charset: Update.
1645 * gnulib/import/dirent-private.h: Update.
1646 * gnulib/import/dirent.in.h: Update.
1647 * gnulib/import/dirfd.c: Update.
1648 * gnulib/import/dirname-lgpl.c: Update.
1649 * gnulib/import/dirname.h: Update.
1650 * gnulib/import/dosname.h: Update.
1651 * gnulib/import/dup-safer-flag.c: Update.
1652 * gnulib/import/dup-safer.c: Update.
1653 * gnulib/import/dup.c: Update.
1654 * gnulib/import/dup2.c: Update.
1655 * gnulib/import/errno.in.h: Update.
1656 * gnulib/import/error.c: Update.
1657 * gnulib/import/error.h: Update.
1658 * gnulib/import/exitfail.c: Update.
1659 * gnulib/import/exitfail.h: Update.
1660 * gnulib/import/extra/update-copyright: Update.
1661 * gnulib/import/fchdir.c: Update.
1662 * gnulib/import/fcntl.c: Update.
1663 * gnulib/import/fcntl.in.h: Update.
1664 * gnulib/import/fd-hook.c: Update.
1665 * gnulib/import/fd-hook.h: Update.
1666 * gnulib/import/fd-safer-flag.c: Update.
1667 * gnulib/import/fd-safer.c: Update.
1668 * gnulib/import/fdopendir.c: Update.
1669 * gnulib/import/filename.h: Update.
1670 * gnulib/import/filenamecat-lgpl.c: Update.
1671 * gnulib/import/filenamecat.h: Update.
1672 * gnulib/import/flexmember.h: Update.
1673 * gnulib/import/float+.h: Update.
1674 * gnulib/import/float.c: Update.
1675 * gnulib/import/float.in.h: Update.
1676 * gnulib/import/fnmatch.c: Update.
1677 * gnulib/import/fnmatch.in.h: Update.
1678 * gnulib/import/fnmatch_loop.c: Update.
1679 * gnulib/import/fpucw.h: Update.
1680 * gnulib/import/frexp.c: Update.
1681 * gnulib/import/frexpl.c: Update.
1682 * gnulib/import/fstat.c: Update.
1683 * gnulib/import/fstatat.c: Update.
1684 * gnulib/import/getcwd-lgpl.c: Update.
1685 * gnulib/import/getcwd.c: Update.
1686 * gnulib/import/getdtablesize.c: Update.
1687 * gnulib/import/getlogin_r.c: Update.
1688 * gnulib/import/getprogname.c: Update.
1689 * gnulib/import/getprogname.h: Update.
1690 * gnulib/import/gettext.h: Update.
1691 * gnulib/import/gettimeofday.c: Update.
1692 * gnulib/import/glob-libc.h: Update.
1693 * gnulib/import/glob.c: Update.
1694 * gnulib/import/glob.in.h: Update.
1695 * gnulib/import/glob_internal.h: Update.
1696 * gnulib/import/glob_pattern_p.c: Update.
1697 * gnulib/import/globfree.c: Update.
1698 * gnulib/import/hard-locale.c: Update.
1699 * gnulib/import/hard-locale.h: Update.
1700 * gnulib/import/intprops.h: Update.
1701 * gnulib/import/inttypes.in.h: Update.
1702 * gnulib/import/isnan.c: Update.
1703 * gnulib/import/isnand-nolibm.h: Update.
1704 * gnulib/import/isnand.c: Update.
1705 * gnulib/import/isnanl-nolibm.h: Update.
1706 * gnulib/import/isnanl.c: Update.
1707 * gnulib/import/itold.c: Update.
1708 * gnulib/import/libc-config.h: Update.
1709 * gnulib/import/limits.in.h: Update.
1710 * gnulib/import/localcharset.c: Update.
1711 * gnulib/import/localcharset.h: Update.
1712 * gnulib/import/localtime-buffer.c: Update.
1713 * gnulib/import/localtime-buffer.h: Update.
1714 * gnulib/import/lstat.c: Update.
1715 * gnulib/import/m4/00gnulib.m4: Update.
1716 * gnulib/import/m4/__inline.m4: Update.
1717 * gnulib/import/m4/absolute-header.m4: Update.
1718 * gnulib/import/m4/alloca.m4: Update.
1719 * gnulib/import/m4/builtin-expect.m4: Update.
1720 * gnulib/import/m4/canonicalize.m4: Update.
1721 * gnulib/import/m4/chdir-long.m4: Update.
1722 * gnulib/import/m4/close.m4: Update.
1723 * gnulib/import/m4/closedir.m4: Update.
1724 * gnulib/import/m4/configmake.m4: Update.
1725 * gnulib/import/m4/d-ino.m4: Update.
1726 * gnulib/import/m4/d-type.m4: Update.
1727 * gnulib/import/m4/dirent_h.m4: Update.
1728 * gnulib/import/m4/dirfd.m4: Update.
1729 * gnulib/import/m4/dirname.m4: Update.
1730 * gnulib/import/m4/double-slash-root.m4: Update.
1731 * gnulib/import/m4/dup.m4: Update.
1732 * gnulib/import/m4/dup2.m4: Update.
1733 * gnulib/import/m4/eealloc.m4: Update.
1734 * gnulib/import/m4/environ.m4: Update.
1735 * gnulib/import/m4/errno_h.m4: Update.
1736 * gnulib/import/m4/error.m4: Update.
1737 * gnulib/import/m4/exponentd.m4: Update.
1738 * gnulib/import/m4/exponentl.m4: Update.
1739 * gnulib/import/m4/extensions.m4: Update.
1740 * gnulib/import/m4/extern-inline.m4: Update.
1741 * gnulib/import/m4/fchdir.m4: Update.
1742 * gnulib/import/m4/fcntl-o.m4: Update.
1743 * gnulib/import/m4/fcntl.m4: Update.
1744 * gnulib/import/m4/fcntl_h.m4: Update.
1745 * gnulib/import/m4/fdopendir.m4: Update.
1746 * gnulib/import/m4/filenamecat.m4: Update.
1747 * gnulib/import/m4/flexmember.m4: Update.
1748 * gnulib/import/m4/float_h.m4: Update.
1749 * gnulib/import/m4/fnmatch.m4: Update.
1750 * gnulib/import/m4/fnmatch_h.m4: Update.
1751 * gnulib/import/m4/fpieee.m4: Update.
1752 * gnulib/import/m4/frexp.m4: Update.
1753 * gnulib/import/m4/frexpl.m4: Update.
1754 * gnulib/import/m4/fstat.m4: Update.
1755 * gnulib/import/m4/fstatat.m4: Update.
1756 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1757 * gnulib/import/m4/getcwd-path-max.m4: Update.
1758 * gnulib/import/m4/getcwd.m4: Update.
1759 * gnulib/import/m4/getdtablesize.m4: Update.
1760 * gnulib/import/m4/getlogin.m4: Update.
1761 * gnulib/import/m4/getlogin_r.m4: Update.
1762 * gnulib/import/m4/getpagesize.m4: Update.
1763 * gnulib/import/m4/getprogname.m4: Update.
1764 * gnulib/import/m4/gettimeofday.m4: Update.
1765 * gnulib/import/m4/glibc21.m4: Update.
1766 * gnulib/import/m4/glob.m4: Update.
1767 * gnulib/import/m4/glob_h.m4: Update.
1768 * gnulib/import/m4/gnulib-cache.m4: Update.
1769 * gnulib/import/m4/gnulib-common.m4: Update.
1770 * gnulib/import/m4/gnulib-comp.m4: Update.
1771 * gnulib/import/m4/gnulib-tool.m4: Update.
1772 * gnulib/import/m4/hard-locale.m4: Update.
1773 * gnulib/import/m4/include_next.m4: Update.
1774 * gnulib/import/m4/inttypes-pri.m4: Update.
1775 * gnulib/import/m4/inttypes.m4: Update.
1776 * gnulib/import/m4/isnand.m4: Update.
1777 * gnulib/import/m4/isnanl.m4: Update.
1778 * gnulib/import/m4/largefile.m4: Update.
1779 * gnulib/import/m4/limits-h.m4: Update.
1780 * gnulib/import/m4/localcharset.m4: Update.
1781 * gnulib/import/m4/locale-fr.m4: Update.
1782 * gnulib/import/m4/locale-ja.m4: Update.
1783 * gnulib/import/m4/locale-zh.m4: Update.
1784 * gnulib/import/m4/localtime-buffer.m4: Update.
1785 * gnulib/import/m4/longlong.m4: Update.
1786 * gnulib/import/m4/lstat.m4: Update.
1787 * gnulib/import/m4/malloc.m4: Update.
1788 * gnulib/import/m4/malloca.m4: Update.
1789 * gnulib/import/m4/math_h.m4: Update.
1790 * gnulib/import/m4/mbrtowc.m4: Update.
1791 * gnulib/import/m4/mbsinit.m4: Update.
1792 * gnulib/import/m4/mbsrtowcs.m4: Update.
1793 * gnulib/import/m4/mbstate_t.m4: Update.
1794 * gnulib/import/m4/memchr.m4: Update.
1795 * gnulib/import/m4/memmem.m4: Update.
1796 * gnulib/import/m4/mempcpy.m4: Update.
1797 * gnulib/import/m4/memrchr.m4: Update.
1798 * gnulib/import/m4/mkdir.m4: Update.
1799 * gnulib/import/m4/mkstemp.m4: Update.
1800 * gnulib/import/m4/mmap-anon.m4: Update.
1801 * gnulib/import/m4/mode_t.m4: Update.
1802 * gnulib/import/m4/msvc-inval.m4: Update.
1803 * gnulib/import/m4/msvc-nothrow.m4: Update.
1804 * gnulib/import/m4/multiarch.m4: Update.
1805 * gnulib/import/m4/nocrash.m4: Update.
1806 * gnulib/import/m4/off_t.m4: Update.
1807 * gnulib/import/m4/onceonly.m4: Update.
1808 * gnulib/import/m4/open-cloexec.m4: Update.
1809 * gnulib/import/m4/open.m4: Update.
1810 * gnulib/import/m4/openat.m4: Update.
1811 * gnulib/import/m4/opendir.m4: Update.
1812 * gnulib/import/m4/pathmax.m4: Update.
1813 * gnulib/import/m4/rawmemchr.m4: Update.
1814 * gnulib/import/m4/readdir.m4: Update.
1815 * gnulib/import/m4/readlink.m4: Update.
1816 * gnulib/import/m4/realloc.m4: Update.
1817 * gnulib/import/m4/rename.m4: Update.
1818 * gnulib/import/m4/rewinddir.m4: Update.
1819 * gnulib/import/m4/rmdir.m4: Update.
1820 * gnulib/import/m4/save-cwd.m4: Update.
1821 * gnulib/import/m4/secure_getenv.m4: Update.
1822 * gnulib/import/m4/setenv.m4: Update.
1823 * gnulib/import/m4/signal_h.m4: Update.
1824 * gnulib/import/m4/ssize_t.m4: Update.
1825 * gnulib/import/m4/stat-time.m4: Update.
1826 * gnulib/import/m4/stat.m4: Update.
1827 * gnulib/import/m4/std-gnu11.m4: Update.
1828 * gnulib/import/m4/stdbool.m4: Update.
1829 * gnulib/import/m4/stddef_h.m4: Update.
1830 * gnulib/import/m4/stdint.m4: Update.
1831 * gnulib/import/m4/stdio_h.m4: Update.
1832 * gnulib/import/m4/stdlib_h.m4: Update.
1833 * gnulib/import/m4/strchrnul.m4: Update.
1834 * gnulib/import/m4/strdup.m4: Update.
1835 * gnulib/import/m4/strerror.m4: Update.
1836 * gnulib/import/m4/string_h.m4: Update.
1837 * gnulib/import/m4/strstr.m4: Update.
1838 * gnulib/import/m4/strtok_r.m4: Update.
1839 * gnulib/import/m4/sys_socket_h.m4: Update.
1840 * gnulib/import/m4/sys_stat_h.m4: Update.
1841 * gnulib/import/m4/sys_time_h.m4: Update.
1842 * gnulib/import/m4/sys_types_h.m4: Update.
1843 * gnulib/import/m4/tempname.m4: Update.
1844 * gnulib/import/m4/time_h.m4: Update.
1845 * gnulib/import/m4/unistd-safer.m4: Update.
1846 * gnulib/import/m4/unistd_h.m4: Update.
1847 * gnulib/import/m4/warn-on-use.m4: Update.
1848 * gnulib/import/m4/wchar_h.m4: Update.
1849 * gnulib/import/m4/wchar_t.m4: Update.
1850 * gnulib/import/m4/wctype_h.m4: Update.
1851 * gnulib/import/m4/wint_t.m4: Update.
1852 * gnulib/import/malloc.c: Update.
1853 * gnulib/import/malloc/scratch_buffer.h: Update.
1854 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1855 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1856 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1857 * gnulib/import/malloca.c: Update.
1858 * gnulib/import/malloca.h: Update.
1859 * gnulib/import/malloca.valgrind: Update.
1860 * gnulib/import/math.in.h: Update.
1861 * gnulib/import/mbrtowc.c: Update.
1862 * gnulib/import/mbsinit.c: Update.
1863 * gnulib/import/mbsrtowcs-impl.h: Update.
1864 * gnulib/import/mbsrtowcs-state.c: Update.
1865 * gnulib/import/mbsrtowcs.c: Update.
1866 * gnulib/import/memchr.c: Update.
1867 * gnulib/import/memmem.c: Update.
1868 * gnulib/import/mempcpy.c: Update.
1869 * gnulib/import/memrchr.c: Update.
1870 * gnulib/import/mkdir.c: Update.
1871 * gnulib/import/mkstemp.c: Update.
1872 * gnulib/import/msvc-inval.c: Update.
1873 * gnulib/import/msvc-inval.h: Update.
1874 * gnulib/import/msvc-nothrow.c: Update.
1875 * gnulib/import/msvc-nothrow.h: Update.
1876 * gnulib/import/open.c: Update.
1877 * gnulib/import/openat-die.c: Update.
1878 * gnulib/import/openat-priv.h: Update.
1879 * gnulib/import/openat-proc.c: Update.
1880 * gnulib/import/openat.c: Update.
1881 * gnulib/import/openat.h: Update.
1882 * gnulib/import/opendir.c: Update.
1883 * gnulib/import/pathmax.h: Update.
1884 * gnulib/import/pipe-safer.c: Update.
1885 * gnulib/import/rawmemchr.c: Update.
1886 * gnulib/import/readdir.c: Update.
1887 * gnulib/import/readlink.c: Update.
1888 * gnulib/import/realloc.c: Update.
1889 * gnulib/import/ref-add.sin: Update.
1890 * gnulib/import/ref-del.sin: Update.
1891 * gnulib/import/rename.c: Update.
1892 * gnulib/import/rewinddir.c: Update.
1893 * gnulib/import/rmdir.c: Update.
1894 * gnulib/import/same-inode.h: Update.
1895 * gnulib/import/save-cwd.c: Update.
1896 * gnulib/import/save-cwd.h: Update.
1897 * gnulib/import/scratch_buffer.h: Update.
1898 * gnulib/import/secure_getenv.c: Update.
1899 * gnulib/import/setenv.c: Update.
1900 * gnulib/import/signal.in.h: Update.
1901 * gnulib/import/stat-time.c: Update.
1902 * gnulib/import/stat-time.h: Update.
1903 * gnulib/import/stat-w32.c: Update.
1904 * gnulib/import/stat-w32.h: Update.
1905 * gnulib/import/stat.c: Update.
1906 * gnulib/import/stdbool.in.h: Update.
1907 * gnulib/import/stddef.in.h: Update.
1908 * gnulib/import/stdint.in.h: Update.
1909 * gnulib/import/stdio.in.h: Update.
1910 * gnulib/import/stdlib.in.h: Update.
1911 * gnulib/import/str-two-way.h: Update.
1912 * gnulib/import/strchrnul.c: Update.
1913 * gnulib/import/strdup.c: Update.
1914 * gnulib/import/streq.h: Update.
1915 * gnulib/import/strerror-override.c: Update.
1916 * gnulib/import/strerror-override.h: Update.
1917 * gnulib/import/strerror.c: Update.
1918 * gnulib/import/string.in.h: Update.
1919 * gnulib/import/stripslash.c: Update.
1920 * gnulib/import/strnlen1.c: Update.
1921 * gnulib/import/strnlen1.h: Update.
1922 * gnulib/import/strstr.c: Update.
1923 * gnulib/import/strtok_r.c: Update.
1924 * gnulib/import/sys_stat.in.h: Update.
1925 * gnulib/import/sys_time.in.h: Update.
1926 * gnulib/import/sys_types.in.h: Update.
1927 * gnulib/import/tempname.c: Update.
1928 * gnulib/import/tempname.h: Update.
1929 * gnulib/import/time.in.h: Update.
1930 * gnulib/import/unistd--.h: Update.
1931 * gnulib/import/unistd-safer.h: Update.
1932 * gnulib/import/unistd.in.h: Update.
1933 * gnulib/import/unsetenv.c: Update.
1934 * gnulib/import/verify.h: Update.
1935 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1936 * gnulib/import/wchar.in.h: Update.
1937 * gnulib/import/wctype.in.h: Update.
1938 * gnulib/import/xalloc-oversized.h: Update.
1939 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1940 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1941
1942 2018-08-16 Gary Benson <gbenson@redhat.com>
1943
1944 PR gdb/13000:
1945 * gdb/main.c (captured_main_1): Exit with nonzero status
1946 in batch mode if the last command to be executed failed.
1947 * NEWS: Mention the above.
1948
1949 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1950
1951 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1952 end of warning message.
1953
1954 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1955
1956 PR gdb/22943:
1957 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1958 (aarch64_extract_return_value): Use
1959 aapcs_is_vfp_call_or_return_candidate.
1960 (aarch64_return_in_memory): Likewise.
1961 (aarch64_store_return_value): Likewise.
1962
1963 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1964
1965 * aarch64-tdep.c
1966 (aapcs_is_vfp_call_or_return_candidate): Make static
1967 (pass_in_v_or_stack): Remove function.
1968 (pass_in_v_vfp_candidate): New function.
1969 (aarch64_push_dummy_call): Check for float register candidates.
1970
1971 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1972
1973 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1974 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1975 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1976
1977 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1978
1979 PR build/23399
1980 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1981 (struct ipa_sym_addresses): Rename to...
1982 (struct ipa_sym_addresses_common): ... this.
1983 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1984
1985 2018-08-28 Tom Tromey <tom@tromey.com>
1986
1987 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1988 (token_fifo): Now a std::vector.
1989 (yylex, c_parse): Update.
1990 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1991 (token_fifo): Now a std::vector.
1992 (yylex, d_parse): Update.
1993 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1994 (token_fifo): Now a std::vector.
1995 (yylex, go_parse): Update.
1996
1997 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1998
1999 * parser-defs.h (struct type_stack) <elements>: Change type to
2000 std::vector<union type_stack_elt>.
2001 <depth, size>: Remove.
2002 * parse.c (parse_exp_in_context_1): Adjust.
2003 (type_stack_reserve): Remove.
2004 (check_type_stack_depth): Remove.
2005 (insert_into_type_stack): Adjust to std::vector.
2006 (insert_type): Likewise.
2007 (push_type): Likewise.
2008 (push_type_int): Likewise.
2009 (insert_type_address_space): Likewise.
2010 (pop_type): Likewise.
2011 (pop_type_int): Likewise.
2012 (pop_typelist): Likewise.
2013 (pop_type_stack): Likewise.
2014 (append_type_stack): Likewise.
2015 (push_type_stack): Likewise.
2016 (get_type_stack): Likewise.
2017 (type_stack_cleanup): Likewise.
2018 (push_typelist): Likewise.
2019 (follow_types): Likewise.
2020 (_initialize_parse): Likewise.
2021
2022 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2023
2024 * NEWS: Mention csky target.
2025
2026 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2027 Hafiz Abid Qadeer <abidh@codesourcery.com>
2028 Don Breazeal <donb@codesourcery.com>
2029
2030 * csky-linux-tdep.c: New file.
2031 * csky-tdep.c: Likewise.
2032 * csky-tdep.h: Likewise.
2033 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2034 csky-tdep.o.
2035 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2036 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2037 * configure.tgt: Add csky support.
2038
2039 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2040
2041 * python/py-framefilter.c (py_print_frame): Print frame architecture
2042 when printing on an MI output.
2043
2044 2018-08-27 Tom Tromey <tom@tromey.com>
2045
2046 PR build/23087:
2047 * configure: Rebuild.
2048 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2049
2050 2018-08-27 Tom Tromey <tom@tromey.com>
2051
2052 * aarch64-linux-tdep.c
2053 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2054 casts to int.
2055
2056 2018-08-27 Tom Tromey <tom@tromey.com>
2057
2058 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2059 unsigned.
2060 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2061 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2062 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2063 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2064 unsigned.
2065
2066 2018-08-27 Tom Tromey <tom@tromey.com>
2067
2068 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2069 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2070
2071 2018-08-27 Tom Tromey <tom@tromey.com>
2072
2073 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2074 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2075 ULONGEST_MAX.
2076 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2077 ULONGEST_MAX.
2078 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2079 ULONGEST_MAX.
2080 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2081 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2082 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2083 ULONGEST_MAX.
2084 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2085 (ppc64_linux_sigaction_tramp_frame)
2086 (ppc32_linux_sighandler_tramp_frame)
2087 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2088 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2089 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2090 * mn10300-linux-tdep.c (am33_linux_sigframe)
2091 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2092 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2093 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2094 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2095 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2096 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2097 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2098 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2099 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2100 * microblaze-linux-tdep.c
2101 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2102 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2103 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2104 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2105 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2106 * common/common-types.h (ULONGEST_MAX): New define.
2107 (CORE_ADDR_MAX): Fix formatting.
2108 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2109 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2110 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2111 (arm_linux_rt_sigreturn_tramp_frame)
2112 (arm_eabi_linux_sigreturn_tramp_frame)
2113 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2114 (thumb2_eabi_linux_sigreturn_tramp_frame)
2115 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2116 (arm_linux_restart_syscall_tramp_frame)
2117 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2118 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2119 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2120 ULONGEST_MAX.
2121 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2122
2123 2018-08-27 Tom Tromey <tom@tromey.com>
2124
2125 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2126 CORE_ADDR_MAX.
2127 * mips-tdep.c (mips_deal_with_atomic_sequence)
2128 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2129 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2130 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2131 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2132 CORE_ADDR_MAX.
2133 * aarch64-tdep.c (aarch64_software_single_step): Use
2134 CORE_ADDR_MAX.
2135
2136 2018-08-27 Tom Tromey <tom@tromey.com>
2137
2138 * linespec.c (complete_linespec_component): Add cast to "char".
2139 * completer.c (completion_tracker::build_completion_result): Add
2140 cast to "char".
2141
2142 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2143
2144 * solist.h (struct solist, struct target_so_ops): Fix
2145 indentation.
2146
2147 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2148
2149 * ada-tasks.c (ada_task_info_s): Remove typedef.
2150 (DEF_VEC_O(ada_task_info_s)): Remove.
2151 (struct ada_tasks_inferior_data): Initialize fields.
2152 <task_list>: Make an std::vector.
2153 (get_ada_tasks_inferior_data): Allocate with new.
2154 (ada_get_task_number): Adjust.
2155 (get_task_number_from_id): Likewise.
2156 (valid_task_id): Likewise.
2157 (ada_get_task_info_from_ptid): Likewise.
2158 (iterate_over_live_ada_tasks): Likewise.
2159 (add_ada_task): Likewise.
2160 (read_known_tasks): Likewise.
2161 (ada_build_task_list): Likewise.
2162 (print_ada_task_info): Likewise.
2163 (info_task): Likewise.
2164 (task_command_1): Likewise.
2165
2166 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2167
2168 * ada-lang.c (add_angle_brackets): Return std::string.
2169
2170 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2171
2172 * python/py-threadevent.c (py_get_event_thread): Initialize
2173 pythread.
2174
2175 2018-08-24 Pedro Alves <palves@redhat.com>
2176
2177 * python/py-bpevent.c (create_breakpoint_event_object): Use
2178 copy-initialization.
2179 * python/py-continueevent.c (emit_continue_event): Use
2180 copy-initialization.
2181 * python/py-exitedevent.c (create_exited_event_object): Return a
2182 gdbpy_ref<>.
2183 (emit_exited_event): Use copy-initialization.
2184 * python/py-inferior.c (python_new_inferior)
2185 (python_inferior_deleted, add_thread_object): Use
2186 copy-initialization.
2187 * python/py-infevents.c (create_inferior_call_event_object)
2188 (create_register_changed_event_object)
2189 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2190 (emit_inferior_call_event, emit_memory_changed_event)
2191 (emit_register_changed_event): Use copy-initialization.
2192 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2193 Return a gdbpy_ref<>.
2194 (emit_new_objfile_event): Use copy-initialization.
2195 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2196 (emit_clear_objfiles_event): Use copy-initialization.
2197 * python/py-signalevent.c (create_signal_event_object): Use
2198 copy-initialization.
2199 * python/py-threadevent.c (create_thread_event_object): Use
2200 copy-initialization.
2201
2202 2018-08-24 Pedro Alves <palves@redhat.com>
2203 Simon Marchi <simon.marchi@ericsson.com>
2204
2205 PR gdb/23379
2206 * python/py-continueevent.c: Include "gdbthread.h".
2207 (create_continue_event_object): Add intro comment. Add 'ptid'
2208 parameter. Use it to find thread to pass to
2209 create_thread_event_object.
2210 (emit_continue_event): Pass PTID down to
2211 create_continue_event_object.
2212 * python/py-event.h (py_get_event_thread): Declare.
2213 (create_thread_event_object): Remove default from 'thread'
2214 parameter.
2215 * python/py-stopevent.c (create_stop_event_object): Use
2216 py_get_event_thread.
2217 * python/py-threadevent.c (get_event_thread): Rename to ...
2218 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2219 and use it to find the thread.
2220 (create_thread_event_object): Assert that THREAD isn't null.
2221 Don't find the event thread here.
2222
2223 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2224
2225 * block.h (blockrange, blockranges): New struct declarations.
2226 (struct block): Add new field named `ranges'.
2227 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2228 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2229 macros for accessing ranges in struct block.
2230 (make_blockranges): New declaration.
2231 block.c (make_blockranges): New function.
2232 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2233 for block.
2234 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2235 * blockframe.c (cache_pc_function_block): New static global.
2236 (clear_pc_function_cache): Clear cache_pc_function_block.
2237 (find_pc_partial_function): Move comment to symtab.h. Add
2238 support for non-contiguous blocks.
2239 * cli/cli-cmds.c (block.h): Include.
2240 (print_disassembly): Handle printing of non-contiguous blocks.
2241 (disassemble_current_function): Likewise.
2242 (disassemble_command): Likewise.
2243
2244 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2245 BLOCK_START.
2246 * blockframe.c (get_pc_function_start): Likewise.
2247 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2248 (gcc_symbol_address): Likewise.
2249 * compile/compile-object-run.c (compile_object_run): Likewise.
2250 * compile/compile.c (get_expr_block_and_pc): Likewise.
2251 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2252 (func_addr_to_tail_call_list): Likewise.
2253 * findvar.c (default_read_var_value): Likewise.
2254 * inline-frame.c (inline_frame_this_id): Likewise.
2255 (skip-inline_frames): Likewise.
2256 * infcmd.c (until_next_command): Likewise.
2257 * linespec.c (convert_linespec_to_sals): Likewise.
2258 * parse.c (parse_exp_in_context_1): Likewise.
2259 * printcmd.c (build_address_symbolic): likewise.
2260 (info_address_command): Likewise.
2261 symtab.c (find_function_start_sal): Likewise.
2262 (skip_prologue_sal): Likewise.
2263 (find_function_alias_target): Likewise.
2264 (find_gnu_ifunc): Likewise.
2265 * stack.c (find_frame_funname): Likewise.
2266 * symtab.c (fixup_symbol_section): Likewise.
2267 (find_function_start_sal): Likewise.
2268 (skip_prologue_sal): Likewsie.
2269 (find_function_alias_target): Likewise.
2270 (find_gnu_ifunc): Likewise.
2271 * tracepoint.c (info_scope_command): Likewise.
2272 * value.c (value_fn_field): Likewise.
2273
2274 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2275 in place of find_pc_partial_function.
2276 * blockframe.c (find_function_entry_range_from_pc): New function.
2277 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2278 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2279 for each range in a block.
2280
2281
2282 2018-08-23 Xavier Roirand <roirand@adacore.com>
2283
2284 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2285 incrementation.
2286
2287 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2288
2289 * solib-svr4.c (read_program_headers_from_bfd): Return
2290 gdb::optional<gdb::byte_vector>.
2291 (svr4_exec_displacement): Adjust.
2292
2293 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2294
2295 * solib-svr4.c (read_program_header): Return
2296 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2297 (find_program_interpreter): Return
2298 gdb::optional<gdb::byte_vector>.
2299 (scan_dyntag_auxv): Adjust.
2300 (enable_break): Adjust.
2301 (svr4_exec_displacement): Adjust.
2302
2303 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2304
2305 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2306 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2307
2308 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2309
2310 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2311 string_vprintf.
2312 * guile/scm-utils.c (gdbscm_printf): Likewise.
2313 * serial.c (serial_printf): Likewise.
2314 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2315
2316 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2317
2318 * stack.c (print_frame): Print frame architecture when printing on
2319 an MI output.
2320 * NEWS: Mention new "arch" attribute in frame output.
2321
2322 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2323
2324 * arch/aarch64.h (aarch64_regnum): Update comment.
2325
2326 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2327
2328 * NEWS: Add SVE to 8.2 section.
2329
2330 2018-08-21 Pedro Alves <palves@redhat.com>
2331
2332 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2333 out from gdbscm_parse_function_args.
2334 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2335 gdbscm_parse_function_args_1.
2336
2337 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2338
2339 PR gdb/17816
2340 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2341 operator.
2342
2343 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2344
2345 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2346
2347 2018-08-19 Michael Spang <spang@google.com>
2348
2349 PR gdb/11786
2350 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2351 for PT_TLS segments.
2352
2353 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2354
2355 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2356 dwarf_variable_value.
2357 * dwarf2-frame.c (class dwarf_expr_executor):
2358 Add override for dwarf_variable_value.
2359 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2360 (class symbol_needs_eval_context): Likewise.
2361 (indirect_synthetic_pointer): Add forward declaration.
2362 (sect_variable_value): New function.
2363 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2364 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2365 for DW_OP_GNU_variable_value.
2366
2367 2018-08-16 Tom Tromey <tom@tromey.com>
2368
2369 * top.c (read_command_file): Update.
2370 (command_line_input): Remove "repeat" argument.
2371 * ada-lang.c (get_selections): Update.
2372 * linespec.c (decode_line_2): Update.
2373 * defs.h (command_line_input): Remove argument.
2374 * cli/cli-script.c (read_next_line): Update.
2375 * python/py-gdb-readline.c: Update.
2376
2377 2018-08-17 Tom Tromey <tom@tromey.com>
2378
2379 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2380 command_line_input.
2381
2382 2018-08-15 Tom Tromey <tom@tromey.com>
2383
2384 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2385
2386 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2387
2388 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2389 If used, use find_pc_partial_function to find address range
2390 to disassemble.
2391 * mi/mi-main.c (mi_cmd_list_features): Report
2392 "data-disassemble-a-option" feature.
2393 * NEWS: Mention new -data-disassemble option -a.
2394
2395 2018-08-13 Tom Tromey <tom@tromey.com>
2396
2397 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2398
2399 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2400
2401 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2402 (aarch64_linux_collect_sve_regset): Likewise.
2403 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2404 * regcache.h (regcache_map_entry_size): New function.
2405
2406 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2407
2408 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2409 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2410 (SVE_HEADER_VL_LENGTH): Likewise.
2411 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2412 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2413 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2414 (SVE_HEADER_SIZE_OFFSET): Likewise.
2415 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2416 (SVE_HEADER_VL_OFFSET): Likewise.
2417 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2418 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2419 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2420 (SVE_HEADER_SIZE): Likewise.
2421 (aarch64_linux_core_read_vq): Add function.
2422 (aarch64_linux_core_read_description): Check for SVE section.
2423
2424 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2425
2426 * aarch64-fbsd-tdep.c
2427 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2428 collect_size.
2429 * aarch64-linux-tdep.c
2430 (aarch64_linux_iterate_over_regset_sections): Likewise.
2431 * alpha-linux-tdep.c
2432 (alpha_linux_iterate_over_regset_sections):
2433 * alpha-nbsd-tdep.c
2434 (alphanbsd_iterate_over_regset_sections): Likewise.
2435 * amd64-fbsd-tdep.c
2436 (amd64fbsd_iterate_over_regset_sections): Likewise.
2437 * amd64-linux-tdep.c
2438 (amd64_linux_iterate_over_regset_sections): Likewise.
2439 * arm-bsd-tdep.c
2440 (armbsd_iterate_over_regset_sections): Likewise.
2441 * arm-fbsd-tdep.c
2442 (arm_fbsd_iterate_over_regset_sections): Likewise.
2443 * arm-linux-tdep.c
2444 (arm_linux_iterate_over_regset_sections): Likewise.
2445 * corelow.c (get_core_registers_cb): Likewise.
2446 (core_target::fetch_registers): Likewise.
2447 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2448 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2449 * gdbarch.h (void): Regenerate.
2450 * gdbarch.sh: Add supply_size and collect_size.
2451 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2452 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2453 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2454 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2455 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2456 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2457 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2458 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2459 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2460 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2461 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2462 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2463 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2464 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2465 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2466 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2467 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2468 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2469 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2470 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2471 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2472 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2473 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2474 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2475 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2476 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2477 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2478 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2479 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2480 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2481
2482 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2483
2484 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2485 with string_printf.
2486
2487 2018-08-10 Keith Seitz <keiths@redhat.com>
2488
2489 * compile/compile-c-support.c (add_code_header, add_code_footer):
2490 Move into policy class.
2491 (c_push_user_expression, pop_user_expression_nop)
2492 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2493 (compile_program): New host class.
2494 (c_compile_program): New typedef.
2495 (c_compute_porgram): Use c_compile_program.
2496
2497 2018-08-10 Keith Seitz <keiths@redhat.com>
2498
2499 * compile/compile-internal.h (compile_instance::~compile_instance):
2500 Remove calls to htab_delete.
2501 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2502 * compile.c (compile_instance::compile_instance): Initialize
2503 htab unique pointers.
2504 (compile_instance::get_cached_type, compile_instance::insert_type)
2505 (compile_instance::error_symbol_once): Update for unique_ptr.
2506
2507 2018-08-10 Keith Seitz <keiths@redhat.com>
2508
2509 * compile/compile-c-symbols.c (struct symbol_error)
2510 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2511 (compile_instance::insert_symbol_error)
2512 (compile_instance::error_symbol_once): Move to ...
2513 * compile/compile.c: ... here.
2514
2515 2018-08-10 Keith Seitz <keiths@redhat.com>
2516
2517 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2518 instead of `new_compile_instance'.
2519 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2520 Update description.
2521 If the symbol error map is not initialized, create it.
2522 (generate_c_for_for_one_symbol): Do not check/initialize
2523 the symbol error map.
2524 * compile/compile-c-types.c (compile_c_instance): Make a class.
2525 Update all callers.
2526 (compile_instance::compile_instance): Initialize the type cache.
2527 (get_cached_type): New function.
2528 (insert_type): Update description.
2529 (compile_c_instance::m_default_cflags): Define.
2530 (convert_type): Update description. Use get_cached_type.
2531 (delete_instance): Moved to destructor.
2532 (new_compile_instance): Moved to constructor.
2533 * compile/compile-c.h (compile_c_instance): Make class inheriting
2534 from compile_instance.
2535 <base>: Remove field.
2536 <type_map, symbol_err_map>: Move to base class.
2537 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2538 * compile/compile-internal.h (compile_instance): Make class.
2539 <type_map_t, symbol_err_map_t>: Define.
2540 <fe>: Rename to `m_gcc_fe'.
2541 <scope, block, gcc_target_options>: Add `m_' prefix.
2542 <m_type_map, m_symbol_err_map>: New fields, moved from
2543 compile_c_instance.
2544 <destroy>: Remove.
2545 (convert_type, new_compile_instance): Remove.
2546 * compile/compile.c (cleanup_compile_instance): Remove.
2547 (compile_to_object): Use unique_ptr to eliminate cleanups.
2548 (compile_instance::set_print_callback, compile_instance::version)
2549 (compile_instance::set_verbose)
2550 (compile_instance::set_driver_filename)
2551 (compile_instance::set_triplet_regexp)
2552 (compile_instance::set_arguments)
2553 (compile_instance::set_source_file)
2554 (compile_instance::compile): Define.
2555
2556 2018-08-10 Keith Seitz <keiths@redhat.com>
2557
2558 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2559 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2560 gcc-c-fe.def to define C plugin.
2561 (delete_instance): Delete `c_plugin'.
2562 (new_compile_instance): Initialize `c_plugin'.
2563 * compile/compile-c.h: Include gcc_c_plugin.h.
2564 (struct compile_c_instance) <c_plugin>: New member.
2565 * gcc-c-plugin.h: New file.
2566 Update all callers with API change.
2567
2568 2018-08-10 Keith Seitz <keiths@redhat.com>
2569
2570 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2571 (HFILES_NO_SRCDIR): ... to here.
2572 Add compile-internal.h and compile-c.h.
2573 * compile/compile-c-support.c: Include compile-c.h.
2574 * compile/compile-c-symbols.c: Include compile-c.h.
2575 (generate_c_for_variable_locations): Update comment.
2576 * compile/compile-c-types.c: Include compile-c.h.
2577 * compile/compile-c.h: New file -- moved C language declarations
2578 from other files here.
2579 * compile/compile-internal.h: Do not include hashtab.h or
2580 common/enum-flags.h.
2581 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2582 (gcc_convert_symbol, gcc_symbol_address)
2583 (generate_c_for_variable_locations, c_get_mode_for_size)
2584 (c_get_range_decl_name): Definitions moved to compile-c.h.
2585 * compile/compile-loc2c.c: Include compile-c.h.
2586
2587 2018-08-10 Keith Seitz <keiths@redhat.com>
2588
2589 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2590 (c_symbol_substitution_name): ... this.
2591 Update all callers.
2592
2593 2018-08-10 Keith Seitz <keiths@redhat.com>
2594
2595 * compile/compile-c-support.c (c_compute_program): Use
2596 unique_xmalloc_ptr to eliminate cleanup.
2597 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2598 Return a unique_xmalloc_ptr and eliminate cleanup.
2599 * compile/compile-internal.h (generate_c_for_variable_locations):
2600 Return unique_xmalloc_ptr and update description.
2601
2602 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2603
2604 * corelow.c (core_target::get_core_register_section): Rename
2605 min_size to section_min_size.
2606
2607 2018-08-09 Jim Wilson <jimw@sifive.com>
2608
2609 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2610 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2611 * NEWS: Mention new GNU/Linux RISC-V target.
2612 * configure.host: Add riscv*-*-linux*.
2613 * configure.nat: Add riscv*.
2614 * configure.tgt: Add riscv*-*-linux*.
2615 * riscv-linux-nat.c: New file.
2616 * riscv-linux-tdep.c: New file.
2617
2618 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2619
2620 * infrun.c (resume): Make static, add forward declaration.
2621 (proceed): Update header comment.
2622 * infrun.h (resume): Delete declaration.
2623
2624 2018-08-09 Tom Tromey <tom@tromey.com>
2625
2626 * riscv-tdep.h: Minor formatting fixes.
2627
2628 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2629
2630 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2631 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2632 (test_mkdir_recursive): Likewise.
2633 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2634
2635 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2636
2637 * valarith.c (value_subscripted_rvalue): If an array is not in
2638 memory, and we don't know the upper bound, then we can't know that
2639 the requested element exists or not.
2640
2641 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2642
2643 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2644 (target_options_to_string): Add comment.
2645
2646 2018-08-08 Tom Tromey <tom@tromey.com>
2647
2648 * unittests/scoped_mmap-selftests.c: Check result of "write".
2649
2650 2018-08-08 Jim Wilson <jimw@sifive.com>
2651
2652 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2653 (decode_register_index_short): New.
2654 (decode_j_type_insn, decode_cj_type_insn): New.
2655 (decode_b_type_insn, decode_cb_type_insn): New.
2656 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2657 local xlen. Check xlen when decoding ambiguous compressed insns. In
2658 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2659 is_c_sw_insn instead of is_sw_insn.
2660 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2661 (riscv_software_single_step): New.
2662 * riscv-tdep.h (riscv_software_single_step): Declare.
2663
2664 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2665 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2666
2667 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2668
2669 PR gdb/18050:
2670 * target.c (dispose_inferior): Don't dispose of inferiors that are
2671 already killed.
2672
2673 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2674
2675 * remote.c (remote_target::download_tracepoint): Change char* to
2676 const char*.
2677
2678 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2679
2680 * target.h (target_options_to_string): Return an std::string.
2681 * target.c (str_comma_list_concat_elem): Return void, use
2682 std::string.
2683 (do_option): Likewise.
2684 (target_options_to_string): Return an std::string.
2685 * linux-nat.c (linux_nat_target::wait): Adjust.
2686 * target-debug.h (target_debug_print_options): Adjust.
2687
2688 2018-08-07 Tom Tromey <tom@tromey.com>
2689
2690 * Makefile.in (CPPFLAGS): New variable.
2691 (INTERNAL_CPPFLAGS): Use it.
2692
2693 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2694
2695 * NEWS: Mention the index cache.
2696
2697 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2698
2699 * common/pathstuff.h (get_standard_cache_dir): New.
2700 * common/pathstuff.c (get_standard_cache_dir): New.
2701 * build-id.h (build_id_to_string): New.
2702 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2703 DEBUG_STR_SUFFIX): Move to here.
2704 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2705 DEBUG_STR_SUFFIX): Move from there.
2706 (write_psymtabs_to_index): Make non-static, add basename
2707 parameter. Write to temporary files, rename when done.
2708 (save_gdb_index_command): Adjust call to
2709 write_psymtabs_to_index.
2710 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2711 field.
2712 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2713 (get_gdb_index_contents_from_cache): New.
2714 (get_gdb_index_contents_from_cache_dwz): New.
2715 (dwarf2_initialize_objfile): Read index from cache.
2716 (dwarf2_build_psymtabs): Save to index.
2717 * dwarf-index-cache.h: New file.
2718 * dwarf-index-cache.c: New file.
2719 * dwarf-index-write.h: New file.
2720
2721 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2722
2723 * gnulib/aclocal.m4: Re-generate.
2724 * gnulib/config.in: Re-generate.
2725 * gnulib/configure: Re-generate.
2726 * gnulib/import/Makefile.am: Re-generate.
2727 * gnulib/import/Makefile.in: Re-generate.
2728 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2729 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2730 * gnulib/import/m4/mkdir.m4: New file.
2731 * gnulib/import/mkdir.c: New file.
2732 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2733 module.
2734
2735 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2736
2737 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2738 * common/scoped_mmap.c: New file.
2739 * common/scoped_mmap.h (destroy): New method.
2740 (~scoped_mmap, reset): Use destroy.
2741 (scoped_mmap): New move constructor.
2742 (mmap_file): New declaration.
2743 * unittests/scoped_mmap-selftests.c (test_normal,
2744 test_invalid_filename, run_tests): New functions.
2745 (_initialize_scoped_mmap_selftests): Register selftest.
2746
2747 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2748
2749 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2750 (read_gdb_index_from_buffer): ... this. Remove section
2751 parameter, add buffer parameter.
2752 (get_gdb_index_contents_ftype,
2753 get_gdb_index_contents_dwz_ftype): New typedefs.
2754 (dwarf2_read_gdb_index): Add callback parameters to get the
2755 index contents.
2756 (get_gdb_index_contents_from_section): New.
2757 (dwarf2_initialize_objfile): Update call to
2758 dwarf2_read_gdb_index.
2759
2760 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2761
2762 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2763 (gdb_open_cloexec): Likewise.
2764 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2765 (commandline_from_pid): Likewise.
2766 (linux_xfer_osdata_threads): Likewise.
2767 (linux_xfer_osdata_fds): Likewise.
2768 * ada-lang.c (is_package_name): Likewise.
2769 * auxv.c (procfs_xfer_auxv): Likewise.
2770 * breakpoint.c (print_one_breakpoint_location): Use
2771 uiout::field_fmt.
2772 (print_one_catch_solib): Use string_printf.
2773 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2774 (add_pe_forwarded_sym): Likewise.
2775 * dwarf2read.c (create_type_unit_group): Likewise.
2776 (build_error_marker_type): Likewise.
2777 * infcall.c (get_function_name): Likewise.
2778 * valprint.c (print_converted_chars_to_obstack): Likewise.
2779 * xtensa-tdep.c (xtensa_register_type): Likewise.
2780
2781 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2782
2783 * remote.c (remote_target::download_tracepoint): Fix format
2784 string errors.
2785
2786 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2787
2788 * tracefile.c: Include common/byte-vector.h.
2789 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2790 with trace_regblock_size if needed. Update uses of buf.
2791
2792 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2793
2794 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2795 std::vector<unsigned char>.
2796 * tracepoint.c (collection_list::collection_list): Remove
2797 m_regs_mask initializer from initializer list. Resize
2798 m_regs_mask using the largest remote register number.
2799 (collection_list::add_remote_register): Remove size check on
2800 m_regs_mask. Use at to access element.
2801 (collection_list::stringify): Change type of temp_buf to
2802 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2803 stringify the register mask. Use pack_hex_byte for the register
2804 mask.
2805
2806 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2807
2808 * tracepoint.h (class collection_list) <add_register>: Remove.
2809 <add_remote_register, add_ax_registers, add_local_register>:
2810 Declare.
2811 <add_memrange>: Add scope parameter.
2812 * tracepoint.c (encode_actions_1): Likewise.
2813 (collection_list::add_register): Rename to ...
2814 (collection_list::add_remote_register): ... this. Update
2815 comment.
2816 (collection_list::add_ax_registers, add_local_register): New
2817 methods.
2818 (collection_list::add_memrange): Add scope parameter. Call
2819 add_local_register instead of add_register.
2820 (finalize_tracepoint_aexpr): New function.
2821 (collection_list::collect_symbol): Update calls to add_memrange.
2822 Call add_local_register instead of add_register. Call
2823 add_ax_registers. Call finalize_tracepoint_aexpr.
2824 (encode_actions_1): Get remote regnos for $reg action. Call
2825 add_remote_register, add_ax_registers, and add_local_register.
2826 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2827 (validate_actionline): Call finalize_tracepoint_aexpr.
2828
2829 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2830
2831 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2832 Replace array buf with gdb::char_vector buf, of size
2833 get_remote_packet_size (). Replace references to buf and
2834 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2835 and xsnprintf with snprintf. Raise errors if the buffer is too
2836 small.
2837
2838 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2839
2840 * remote.c (remote_target::download_tracepoint): Fix the has_more
2841 predicate in the QTDP action list iteration.
2842
2843 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2844
2845 * remote.c (remote_target::download_tracepoint): Fix indentation
2846 in for block.
2847
2848 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2849
2850 * proc-api.c (_initialize_proc_api): Remove c, unused.
2851 * procfs.c (procfs_init_inferior): Remove signals, unused.
2852 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2853 unused.
2854
2855 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2856 Andrew Burgess <andrew.burgess@embecosm.com>
2857
2858 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2859 'W_STOPCODE (0)' as this could be ambiguous.
2860
2861 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2862
2863 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2864 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2865 "ai_socktype").
2866
2867 2018-08-02 Tom Tromey <tom@tromey.com>
2868
2869 PR symtab/16842.
2870 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2871 symbols.
2872 (process_structure_scope): Likewise.
2873
2874 2018-08-02 Xavier Roirand <roirand@adacore.com>
2875
2876 PR gdb/22629:
2877 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2878 kill inferior.
2879
2880 2018-08-02 Tom Tromey <tom@tromey.com>
2881
2882 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2883 (darwin_suspend_inferior, darwin_resume_inferior)
2884 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2885 (darwin_check_new_threads): Check result of get_darwin_inferior.
2886
2887 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2888
2889 GDB 8.1.1 released.
2890
2891 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2892
2893 * varobj.c (varobj_get_path_expr_parent): Report an error if
2894 parent is a dynamic varobj.
2895
2896 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2897
2898 * gnulib/aclocal.m4: Re-generate.
2899 * gnulib/config.in: Re-generate.
2900 * gnulib/configure: Re-generate.
2901 * gnulib/import/Makefile.in: Re-generate.
2902 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2903 * gnulib/import/m4/onceonly.m4: Re-generate.
2904
2905 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2906
2907 * target-descriptions.c (struct xml_test_tdesc): New.
2908 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2909 (record_xml_tdesc): Update.
2910 (maintenance_check_xml_descriptions): Update.
2911 * target-descriptions.h (record_xml_tdesc): Update comment.
2912
2913 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2914
2915 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2916 checking array bounds are defined.
2917
2918 2018-07-30 Tom Tromey <tom@tromey.com>
2919
2920 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2921 irreflexivity violation.
2922
2923 2018-07-30 Tom Tromey <tom@tromey.com>
2924
2925 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2926 * value.c (unpack_long): Remove lint code.
2927 * valops.c (value_ind): Remove lint code.
2928 * valarith.c (value_x_binop, value_x_unop, value_equal)
2929 (value_pos): Remove lint code.
2930
2931 2018-07-28 Tom de Vries <tdevries@suse.de>
2932
2933 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2934 with undefined upper bound as <optimized out>.
2935
2936 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2937
2938 * gcore.in: Rename variable "name" to "prefix". Expand
2939 "usage" text.
2940
2941 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2942
2943 * windows-nat.c (windows_nat_target::create_inferior): Update to
2944 call close() in global namespace.
2945
2946 2018-07-26 Tom Tromey <tom@tromey.com>
2947
2948 * dwarf-index-write.c (add_address_entry): Don't add objfile
2949 offsets.
2950 * dbxread.c (find_stab_function): Rename from
2951 find_stab_function_addr. Return a bound_minimal_symbol.
2952 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2953 Don't add objfile offsets.
2954 (end_psymtab): Use raw_text_low, raw_text_high,
2955 MSYMBOL_VALUE_RAW_ADDRESS.
2956 (read_ofile_symtab): Update.
2957 (process_one_symbol): Update.
2958 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2959 offsets.
2960 (dw2_relocate): Remove.
2961 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2962 searching addrmap.
2963 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2964 Update.
2965 (process_psymtab_comp_unit_reader, add_partial_symbol)
2966 (add_partial_subprogram, dwarf2_ranges_read): Update.
2967 (load_partial_dies): Update.
2968 (add_address_entry): Don't add objfile offsets.
2969 (dwarf2_build_include_psymtabs): Update.
2970 (create_addrmap_from_aranges): Don't add objfile offsets.
2971 (dw2_find_pc_sect_compunit_symtab): Update.
2972 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2973 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2974 Update.
2975 (parse_partial_symbols): Don't add objfile offsets. Use
2976 raw_text_low, raw_text_high. Update.
2977 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2978 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2979 or call 'relocate' quick function. Clear psymbol_map.
2980 * psympriv.h (struct partial_symbol) <address>: Add section
2981 offset.
2982 <set_unrelocated_address>: Rename from set_address.
2983 <raw_text_low, raw_text_high>: New methods.
2984 <text_low, text_high>: Add objfile parameter.
2985 (add_psymbol_to_bcache): Add 'section' parameter. Call
2986 set_unrelocated_address.
2987 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2988 (find_pc_psymbol): Update.
2989 (fixup_psymbol_section, relocate_psymtabs): Remove.
2990 (dump_psymtab, psym_functions): Update.
2991 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2992 parameter.
2993 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2994 (start_psymtab_common): Update.
2995 * symfile-debug.c (debug_qf_relocate): Remove.
2996 (debug_sym_quick_functions): Update.
2997 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2998 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2999 Update.
3000
3001 2018-07-26 Tom Tromey <tromey@redhat.com>
3002
3003 * dbxread.c (end_psymtab): Use text_high_valid and
3004 text_low_valid.
3005 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3006 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3007 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3008 Update comment.
3009 <text_low_valid, text_high_valid>: New fields.
3010 <set_text_low, set_text_high>: Update.
3011 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3012
3013 2018-07-26 Tom Tromey <tom@tromey.com>
3014
3015 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3016 Update.
3017 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3018 textlow and texthigh fields.
3019 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3020 Update.
3021 * mdebugread.c (parse_lines, parse_partial_symbols)
3022 (psymtab_to_symtab_1): Update.
3023 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3024 Rename fields. Update comment. Now private.
3025 <text_low, text_high, set_text_low, set_text_high>: New methods.
3026 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3027 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3028 (start_psymtab_common, maintenance_info_psymtabs)
3029 (maintenance_check_psymtabs): Update.
3030 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3031 texthigh fields.
3032 (scan_xcoff_symtab): Update.
3033
3034 2018-07-26 Tom Tromey <tromey@redhat.com>
3035
3036 * psympriv.h (struct partial_symbol) <unrelocated_address,
3037 address, set_address>: New methods.
3038 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3039 (fixup_psymbol_section, relocate_psymtabs): Update.
3040 (print_partial_symbols): Add 'objfile' parameter. Update.
3041 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3042 Update.
3043
3044 2018-07-26 Tom Tromey <tom@tromey.com>
3045
3046 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3047 (debug_names::write_psymbols): Update.
3048 * psympriv.h (struct partial_symbol): Derive from
3049 general_symbol_info.
3050 <obj_section>: New method.
3051 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3052 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3053 (find_pc_sect_psymbol, fixup_psymbol_section)
3054 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3055 (print_partial_symbols, recursively_search_psymtabs)
3056 (compare_psymbols, psymbol_hash, psymbol_compare)
3057 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3058 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3059
3060 2018-07-26 Tom Tromey <tromey@redhat.com>
3061
3062 * dbxread.c (end_psymtab): Remove dead code.
3063
3064 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3065
3066 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3067 DWARF unwinders are disabled.
3068 * dwarf2-frame.c: Add dwarf2read.h include.
3069 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3070 disabled.
3071 (dwarf2_frame_unwinders_enabled_p): Define.
3072 (show_dwarf_unwinders_enabled_p): New function.
3073 (_initialize_dwarf2_frame): Register switch to control DWARF
3074 unwinder use.
3075 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3076 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3077 (show_dwarf_cmdlist): Remove static keyword.
3078 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3079 (show_dwarf_cmdlist): Declare.
3080 * NEWS: Document new feature.
3081
3082 2018-07-26 Tom de Vries <tdevries@suse.de>
3083
3084 PR breakpoints/23366
3085 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3086
3087 2018-07-26 Tom de Vries <tdevries@suse.de>
3088
3089 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3090 DW_AT_count can't be translated to a dynamic prop.
3091
3092 2018-07-25 Tom de Vries <tdevries@suse.de>
3093
3094 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3095 try/catch.
3096
3097 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3098
3099 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3100
3101 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3102
3103 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3104
3105 2018-07-24 Keith Seitz <keiths@redhat.comt
3106
3107 PR symtab/23010
3108 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3109 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3110 instead of add_symbol_to_list.
3111 (read_file_scope): Call prepare_one_comp_unit before reading
3112 any other DIEs.
3113
3114 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3115
3116 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3117
3118 2018-07-24 Tom Tromey <tom@tromey.com>
3119
3120 * utils.c (malloc, realloc, free): Don't declare.
3121 * configure, config.in: Rebuild.
3122 * configure.ac: Don't check for declarations of free, malloc, or
3123 realloc.
3124
3125 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3126
3127 * aarch64-linux-nat.c
3128 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3129 variable.
3130 * arm-linux-nat.c (fetch_regs): Likewise.
3131 (store_regs): Likewise.
3132 (fetch_vfp_regs): Likewise.
3133 (store_vfp_regs): Likewise.
3134 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3135 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3136 (arm_linux_nat_target::insert_watchpoint): Likewise.
3137 (arm_linux_nat_target::remove_watchpoint): Likewise.
3138 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3139 Likewise.
3140 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3141 Likewise.
3142 * ppc-linux-nat.c (fetch_register): Likewise.
3143 (fetch_all_gp_regs): Likewise.
3144 (fetch_ppc_registers): Likewise.
3145 (store_all_gp_regs): Likewise.
3146 (store_ppc_registers): Likewise.
3147 (hwdebug_insert_point): Likewise.
3148 (can_use_watchpoint_cond_accel): Likewise.
3149 * remote-sim.c (gdb_os_write_stdout): Likewise.
3150
3151 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3152 Tom Tromey <tom@tromey.com>
3153
3154 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3155 test for it.
3156 * configure: Rebuild.
3157
3158 2018-07-22 Tom Tromey <tom@tromey.com>
3159
3160 * regformats/regdat.sh: Define xmltarget_${name} inside
3161 #ifndef IN_PROCESS_AGENT.
3162
3163 2018-07-22 Tom Tromey <tom@tromey.com>
3164
3165 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3166
3167 2018-07-22 Tom Tromey <tom@tromey.com>
3168
3169 * symfile.c (reread_symbols): Notify iter, not objfile.
3170
3171 2018-07-22 Tom Tromey <tom@tromey.com>
3172
3173 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3174 Use arch_ops.
3175 (ravenscar_thread_target::prepare_to_store): Likewise.
3176
3177 2018-07-22 Tom Tromey <tom@tromey.com>
3178
3179 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3180 unused variable. Call value_fetch_lazy when needed.
3181 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3182 Remove unused variable. Call value_fetch_lazy when needed.
3183
3184 2018-07-22 Tom Tromey <tom@tromey.com>
3185
3186 * m32c-tdep.c (mark_dma): Return void.
3187 (make_regs): Remove unused declarations.
3188
3189 2018-07-22 Tom Tromey <tom@tromey.com>
3190
3191 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3192 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3193 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3194 bkscm_get_valid_block_smob_arg_unsafe for effect.
3195
3196 2018-07-22 Tom Tromey <tom@tromey.com>
3197
3198 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3199 value_type.
3200
3201 2018-07-22 Tom Tromey <tom@tromey.com>
3202
3203 * windows-nat.c (saved_context): Conditionally define.
3204 * remote.c (remote_target::remote_btrace_maybe_reopen):
3205 Conditionally declare "warned".
3206 * inflow.c (sigquit_ours): Conditionally define.
3207 (new_tty): Move "tty" declaration inside #if.
3208 * guile/guile.c (guile_datadir): Conditionally define.
3209 * charset.c (set_be_le_names): Move some declarations inside #if.
3210 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3211 #if.
3212 (parse_xml_btrace_conf): Likewise.
3213
3214 2018-07-22 Tom Tromey <tom@tromey.com>
3215
3216 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3217
3218 2018-07-22 Tom Tromey <tom@tromey.com>
3219
3220 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3221 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3222 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3223 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3224 * stack.c (frame_apply_level_command): Remove unused variable.
3225 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3226 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3227 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3228 unused variable.
3229 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3230 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3231 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3232 variable.
3233 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3234 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3235 variable.
3236 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3237 Remove unused variable.
3238 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3239 variable.
3240 * common/tdesc.c (print_xml_feature::visit): Remove unused
3241 variable.
3242 * compile/compile-object-load.c (store_regs): Remove unused
3243 variables.
3244 * complaints.c (clear_complaints): Remove unused variable.
3245 * corelow.c (core_target_open): Remove unused variable.
3246 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3247 variable.
3248 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3249 variable.
3250 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3251 variable.
3252 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3253 variable.
3254 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3255 variable.
3256 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3257 variable.
3258 * ia64-tdep.c (examine_prologue): Remove unused variable.
3259 * infcall.c (run_inferior_call): Remove unused variable.
3260 * inferior.c (exit_inferior): Remove unused variable.
3261 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3262 * linespec.c (decode_line_2): Remove unused variable.
3263 * linux-nat.c (super_close): Remove.
3264 * linux-tdep.c (linux_info_proc): Remove unused variable.
3265 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3266 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3267 Remove unused variable.
3268 * parse.c (find_minsym_type_and_address): Remove unused variable.
3269 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3270 variable.
3271 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3272 variable.
3273 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3274 variables.
3275 * record-btrace.c (record_btrace_target::store_registers): Remove
3276 unused variable.
3277 (cmd_show_record_btrace_cpu): Remove unused variable.
3278 * riscv-tdep.c (riscv_register_reggroup_p)
3279 (riscv_push_dummy_call, riscv_return_value): Remove unused
3280 variable.
3281 * rust-exp.y (literal): Remove unused variable.
3282 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3283 unused variable.
3284 <STRUCTOP_ANONYMOUS>: Likewise.
3285 * s390-linux-tdep.c (s390_linux_init_abi_31)
3286 (s390_linux_init_abi_64): Remove unused variable.
3287 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3288 (file_select_thread, net_windows_open, _initialize_ser_windows):
3289 Remove unused variables.
3290 * symtab.c (find_pc_sect_line): Remove unused variable.
3291 * target-memory.c (compute_garbled_blocks): Remove unused
3292 variable.
3293 (target_write_memory_blocks): Remove unused variable.
3294 * target.c (target_stack::unpush): Remove unused variables.
3295 * tracepoint.c (start_tracing, all_tracepoint_actions)
3296 (merge_uploaded_trace_state_variables)
3297 (print_one_static_tracepoint_marker): Remove unused variable.
3298 * unittests/basic_string_view/element_access/char/1.cc (test01):
3299 Remove unused variable.
3300 * windows-nat.c (windows_continue, windows_add_all_dlls)
3301 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3302 Remove unused variables.
3303
3304 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3305
3306 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3307 attr_profile in HAVE_ELF.
3308 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3309 HAVE_ELF.
3310
3311 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3312
3313 * frame.c (frame_register_unwind): Change parameter name.
3314 (frame_unwind_register): Likewise.
3315 (frame_unwind_register_value): Likewise.
3316 (frame_unwind_register_signed): Likewise.
3317 (frame_unwind_register_unsigned): Likewise.
3318 * frame.h (frame_register_unwind): Likewise.
3319 (frame_unwind_register): Likewise.
3320 (frame_unwind_register_value): Likewise.
3321 (frame_unwind_register_signed): Likewise.
3322 (frame_unwind_register_unsigned): Likewise.
3323 (frame_unwind_arch): Likewise.
3324
3325 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3326
3327 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3328 ISA maintenance.
3329
3330 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3331
3332 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3333 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3334 hand.
3335
3336 2018-07-20 Keith Seitz <keiths@redhat.com>
3337
3338 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3339 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3340 m_compunit_symtab, m_language>: Add "m_" prefix.
3341 Update all uses.
3342 * buildsym.c: Update all uses.
3343
3344 2018-07-20 Tom Tromey <tom@tromey.com>
3345
3346 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3347 * buildsym.h (record_line_ftype): Remove typedef.
3348
3349 2018-07-20 Tom Tromey <tom@tromey.com>
3350
3351 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3352 (end_expandable_symtab): Likewise.
3353 (end_symtab_get_static_block): Likewise.
3354 (end_symtab_from_static_block): Likewise.
3355 * buildsym-legacy.c (augment_type_symtab): Remove.
3356 (end_expandable_symtab): Remove.
3357 (end_symtab_get_static_block): Remove.
3358 (end_symtab_from_static_block): Remove.
3359
3360 2018-07-20 Tom Tromey <tom@tromey.com>
3361
3362 * dwarf2read.c: Include buildsym.h.
3363 (struct dwarf2_cu) <builder>: New method.
3364 (fixup_go_packaging): Update.
3365 (process_full_comp_unit, process_full_type_unit): Update. Don't
3366 use scoped_free_pendings.
3367 (using_directives): Add "cu" parameter, remove "language".
3368 (read_import_statement, setup_type_unit_groups, )
3369 (read_func_scope, read_lexical_block_scope)
3370 (dwarf2_record_block_ranges, read_namespace): Update.
3371 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3372 (lnp_state_machine::handle_end_sequence): Update.
3373 (class lnp_state_machine) <m_cu>: New member.
3374 <m_record_line_callback>: Remove.
3375 <m_currently_recording_lines>: New member.
3376 (lnp_state_machine::handle_set_file): Update.
3377 (noop_record_line): Remove.
3378 (dwarf_record_line_p): Add cu parameter.
3379 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3380 (lnp_state_machine::record_line)
3381 (lnp_state_machine::lnp_state_machine)
3382 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3383 (dwarf_decode_lines): Update.
3384 (dwarf2_start_subfile): Add cu parameter.
3385 (dwarf2_start_symtab, new_symbol): Update.
3386 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3387 Remove dwarf2_per_objfile parameter.
3388 (dwarf_decode_macros): Update.
3389
3390 2018-07-20 Tom Tromey <tom@tromey.com>
3391
3392 * stabsread.c (define_symbol): Update.
3393 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3394 * dwarf2read.c (new_symbol): Update.
3395 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3396 * cp-namespace.c: Include buildsym.h.
3397 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3398 * buildsym-legacy.c (get_buildsym_compunit): New function.
3399
3400 2018-07-20 Tom Tromey <tom@tromey.com>
3401
3402 * xcoffread.c: Include buildsym-legacy.h.
3403 * windows-nat.c: Include buildsym-legacy.h.
3404 * stabsread.c: Include buildsym-legacy.h.
3405 * mdebugread.c: Include buildsym-legacy.h.
3406 * buildsym-legacy.h: New file.
3407 * buildsym-legacy.c: New file, from buildsym.c.
3408 * go32-nat.c: Include buildsym-legacy.h.
3409 * dwarf2read.c: Include buildsym-legacy.h.
3410 * dbxread.c: Include buildsym-legacy.h.
3411 * cp-namespace.c: Include buildsym-legacy.h.
3412 * coffread.c: Include buildsym-legacy.h.
3413 * buildsym.h: Move some contents to buildsym-legacy.h.
3414 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3415 buildsym-legacy.c.
3416 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3417
3418 2018-07-20 Tom Tromey <tom@tromey.com>
3419
3420 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3421 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3422 (buildsym_compunit::buildsym_compunit)
3423 (buildsym_compunit::~buildsym_compunit)
3424 (buildsym_compunit::get_macro_table): Define.
3425
3426 2018-07-20 Tom Tromey <tom@tromey.com>
3427
3428 * buildsym.c (reset_symtab_globals): Remove.
3429 (buildsym_compunit::end_symtab_from_static_block): Update.
3430 (buildsym_compunit::augment_type_symtab): Update.
3431 (end_symtab_from_static_block): Call free_buildsym_compunit.
3432 (augment_type_symtab, end_symtab, end_expandable_symtab):
3433 Likewise.
3434
3435 2018-07-20 Tom Tromey <tom@tromey.com>
3436
3437 * arch-utils.c: Do not include buildsym.h.
3438 * mipsread.c: Do not include buildsym.h.
3439 * machoread.c: Do not include buildsym.h.
3440 * elfread.c: Do not include buildsym.h.
3441
3442 2018-07-20 Tom Tromey <tom@tromey.com>
3443
3444 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3445 initialization.
3446 (buildsym_compunit): Add new constructor.
3447 (struct buildsym_compunit) <get_last_source_file, finish_block,
3448 record_block_range, start_subfile, patch_subfile_names,
3449 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3450 set_last_source_start_addr, get_last_source_start_addr,
3451 get_local_using_directives, set_local_using_directives,
3452 get_global_using_directives, outermost_context_p,
3453 get_current_context_stack, get_context_stack_depth,
3454 get_current_subfile, get_local_symbols, get_file_symbols,
3455 get_global_symbols, record_debugformat, record_producer,
3456 push_context, pop_context, end_symtab_get_static_block,
3457 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3458 New public methods.
3459 <record_pending_block, finish_block_internal, make_blockvector,
3460 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3461 private methods.
3462 Update all users.
3463
3464 2018-05-22 Tom Tromey <tom@tromey.com>
3465
3466 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3467 parameter.
3468 (finish_block_internal): Update.
3469
3470 2018-07-20 Tom Tromey <tom@tromey.com>
3471
3472 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3473 parameter.
3474 (finish_block_internal): Update.
3475
3476 2018-07-20 Tom Tromey <tom@tromey.com>
3477
3478 * buildsym.h (EXTERN): Don't define or undef.
3479 * buildsym.c (EXTERN): Don't define.
3480
3481 2018-07-20 Tom Tromey <tom@tromey.com>
3482
3483 * buildsym.c: Remove TODO comment.
3484
3485 2018-07-20 Tom Tromey <tom@tromey.com>
3486
3487 * coffread.c (coff_symtab_read): Update.
3488 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3489 (xcoff_new_init): Update.
3490 * mipsread.c (mipscoff_new_init): Update.
3491 * mdebugread.c (mdebug_build_psymtabs): Update.
3492 * elfread.c (elf_new_init): Update.
3493 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3494 Update.
3495 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3496 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3497 (stabsect_build_psymtabs): Update.
3498 * buildsym.h (buildsym_init): Don't declare.
3499 * buildsym.c: Update comment.
3500 (prepare_for_building): Remove.
3501 (start_symtab, restart_symtab): Update.
3502 (reset_symtab_globals): Update comment.
3503 (buildsym_init): Remove.
3504
3505 2018-07-20 Tom Tromey <tom@tromey.com>
3506
3507 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3508 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3509 (read_enum_type, common_block_start, common_block_end)
3510 (cleanup_undefined_types_1, finish_global_stabs): Update.
3511 * mdebugread.c (psymtab_to_symtab_1): Update.
3512 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3513 (read_lexical_block_scope, new_symbol): Update.
3514 * dbxread.c (process_one_symbol): Update.
3515 * coffread.c (coff_symtab_read, process_coff_symbol)
3516 (coff_read_enum_type): Update.
3517 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3518 declare.
3519 (get_local_symbols, get_file_symbols, get_global_symbols): New
3520 functions.
3521 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3522 m_global_symbols.
3523 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3524 (~scoped_free_pendings): Update.
3525 (finish_block, prepare_for_building, reset_symtab_globals)
3526 (end_symtab_get_static_block, end_symtab_with_blockvector)
3527 (augment_type_symtab, push_context): Update.
3528 (get_local_symbols, get_file_symbols, get_global_symbols): New
3529 functions.
3530 (buildsym_init): Update.
3531
3532 2018-07-20 Tom Tromey <tom@tromey.com>
3533
3534 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3535 (process_full_type_unit): Likewise.
3536 (dwarf2_start_symtab): Set list_in_scope.
3537
3538 2018-07-20 Tom Tromey <tom@tromey.com>
3539
3540 * dwarf2read.c (process_psymtab_comp_unit_reader)
3541 (build_type_psymtabs_reader): Do not set list_in_scope.
3542
3543 2018-07-20 Tom Tromey <tom@tromey.com>
3544
3545 * buildsym.c (free_pendings): Remove.
3546 (add_symbol_to_list, scoped_free_pendings)
3547 (finish_block_internal, buildsym_init): Update.
3548
3549 2018-07-20 Tom Tromey <tom@tromey.com>
3550
3551 * xcoffread.c (read_xcoff_symtab): Update.
3552 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3553 Update.
3554 * dbxread.c (process_one_symbol): Update.
3555 * coffread.c (coff_symtab_read): Update.
3556 * buildsym.h (finish_block): Update.
3557 * buildsym.c (finish_block): Remove "listhead" argument.
3558 (end_symtab_get_static_block): Update.
3559
3560 2018-07-20 Tom Tromey <tom@tromey.com>
3561
3562 * buildsym.h (class scoped_free_pendings): Remove constructor.
3563 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3564 method.
3565 <m_pending_block_obstack, m_pending_blocks>: New members.
3566 (pending_block_obstack, pending_blocks): Remove.
3567 (scoped_free_pendings::scoped_free_pendings): Default.
3568 (~scoped_free_pendings): Update.
3569 (free_pending_blocks): Remove.
3570 (finish_block_internal, record_pending_block, make_blockvector)
3571 (end_symtab_get_static_block, augment_type_symtab, push_context)
3572 (buildsym_init): Update.
3573
3574 2018-07-20 Tom Tromey <tom@tromey.com>
3575
3576 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3577 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3578 members.
3579 (pending_addrmap, pending_addrmap_obstack)
3580 (pending_addrmap_interesting): Remove.
3581 (scoped_free_pendings, record_block_range, make_blockvector)
3582 (prepare_for_building, reset_symtab_globals, buildsym_init):
3583 Update.
3584
3585 2018-07-20 Tom Tromey <tom@tromey.com>
3586
3587 * xcoffread.c (process_linenos): Update.
3588 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3589 * mdebugread.c (psymtab_to_symtab_1): Update.
3590 * dwarf2read.c (setup_type_unit_groups)
3591 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3592 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3593 * dbxread.c (process_one_symbol): Update.
3594 * coffread.c (coff_symtab_read, enter_linenos)
3595 (process_coff_symbol): Update.
3596 * buildsym.h (current_subfile): Don't declare.
3597 (get_current_subfile): Declare.
3598 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3599 member.
3600 (start_subfile, free_buildsym_compunit, push_subfile)
3601 (prepare_for_building, start_symtab): Update.
3602 (get_current_subfile): New function.
3603
3604 2018-07-20 Tom Tromey <tom@tromey.com>
3605
3606 * coffread.c (coff_symtab_read): Update.
3607 * xcoffread.c (read_xcoff_symtab): Update.
3608 * dwarf2read.c (new_symbol): Update.
3609 (read_func_scope, read_lexical_block_scope): Update.
3610 * dbxread.c (process_one_symbol): Update.
3611 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3612 (outermost_context_p): Remove macro.
3613 (outermost_context_p, get_current_context_stack)
3614 (get_context_stack_depth): Declare.
3615 (pop_context): Return struct context_stack.
3616 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3617 member.
3618 (context_stack_size): Remove.
3619 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3620 (prepare_for_building, end_symtab_get_static_block)
3621 (augment_type_symtab, push_context): Update.
3622 (pop_context): Return struct context_stack.
3623 (outermost_context_p, get_current_context_stack)
3624 (get_context_stack_depth): New functions.
3625 (buildsym_init): Update.
3626
3627 2018-07-20 Tom Tromey <tom@tromey.com>
3628
3629 * rust-exp.y: Now a pure parser. Update all rules.
3630 (%union): Move earlier.
3631 (current_parser, work_obstack): Remove globals.
3632 (rust_parser, ~rust_parser): Update.
3633 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3634 lex_character, lex_number, lex_string, lex_identifier,
3635 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3636 convert_name, convert_params_to_expression,
3637 convert_ast_to_expression, ast_basic_type, ast_operation,
3638 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3639 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3640 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3641 ast_array_type, ast_slice_type, ast_reference_type,
3642 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3643 (rust_parse): Update.
3644 (rustyyerror, rustyylex): Add parser parameter.
3645 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3646 (rust_lex_stringish_test, rust_lex_test_sequence)
3647 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3648 (rust_lex_test_push_back, rust_lex_tests): Update.
3649
3650 2018-07-19 Pedro Alves <palves@redhat.com>
3651
3652 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3653 gdb::unique_xmalloc_ptr.
3654 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3655 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3656 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3657 copy-initialization.
3658 * guile/scm-pretty-print.c (ppscm_print_children): Use
3659 gdb::unique_xmalloc_ptr instead of cleanups.
3660 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3661 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3662 gdb::unique_xmalloc_ptr.
3663 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3664 Adjust to use gdb::unique_xmalloc_ptr.
3665 * guile/scm-utils.c (extract_arg): Adjust.
3666 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3667 gdb::unique_xmalloc_ptr instead of a cleanup.
3668
3669 2018-07-19 Tom Tromey <tom@tromey.com>
3670
3671 * utils.c (do_value_free_to_mark)
3672 (make_cleanup_value_free_to_mark): Remove.
3673 * utils.h (make_cleanup_value_free_to_mark): Remove.
3674
3675 2018-07-19 Pedro Alves <palves@redhat.com>
3676
3677 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3678 forwarding reference.
3679
3680 2018-07-18 Pedro Alves <palves@redhat.com>
3681
3682 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3683 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3684 cleanup.
3685
3686 2018-07-18 Pedro Alves <palves@redhat.com>
3687
3688 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3689 exceptions.
3690 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3691 (gdbscm_wrap): New.
3692 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3693 directly instead of a cleanup.
3694 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3695 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3696 (vlscm_binop_gdbthrow): New, factored out from ...
3697 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3698 (vlscm_rich_compare): Use gdbscm_wrap.
3699 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3700 instead of a cleanup.
3701 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3702 cleanup.
3703 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3704 Use xfree directly instead of a cleanup.
3705 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3706 Adjust to use gdbscm_wrap and scoped_value_mark.
3707 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3708 (gdbscm_value_address, gdbscm_value_dereference)
3709 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3710 scoped_value_mark.
3711 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3712 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3713 scoped_value_mark.
3714 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3715 gdbscm_wrap and scoped_value_mark.
3716 (gdbscm_value_to_string): Use xfree directly instead of a
3717 cleanup. Move 'buffer' unique_ptr to TRY scope.
3718 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3719 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3720 scoped_value_mark.
3721 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3722 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3723 scoped_value_mark.
3724 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3725 gdbscm_wrap.
3726
3727 2018-07-18 Tom de Vries <tdevries@suse.de>
3728
3729 * findvar.c (default_read_var_value): Also resolve dynamic type for
3730 LOC_OPTIMIZED_OUT vars.
3731
3732 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3733
3734 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3735 decoding.
3736
3737 2018-07-17 Tom Tromey <tom@tromey.com>
3738
3739 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3740 (compute_enum_list, pascm_set_param_value_x)
3741 (gdbscm_parameter_value): Update.
3742 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3743 (gdbscm_scm_to_host_string): Update.
3744 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3745 Update.
3746 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3747 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3748 * guile/scm-string.c (gdbscm_scm_to_string): Return
3749 unique_xmalloc_ptr.
3750 (gdbscm_scm_to_host_string): Likewise.
3751
3752 2018-07-17 Tom Tromey <tom@tromey.com>
3753
3754 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3755 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3756 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3757 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3758 unique_xmalloc_ptr.
3759
3760 2018-07-17 Tom Tromey <tom@tromey.com>
3761
3762 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3763 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3764 Update.
3765 * guile/scm-cmd.c (cmdscm_function): Update.
3766 * guile/scm-pretty-print.c
3767 (ppscm_print_exception_unless_memory_error): Update.
3768 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3769 Return unique_xmalloc_ptr.
3770
3771 2018-07-17 Tom Tromey <tom@tromey.com>
3772
3773 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3774 Use string_printf.
3775
3776 2018-07-17 Jim Wilson <jimw@sifive.com>
3777
3778 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3779 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3780 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3781 unecessary braces after EF_RISCV_RVC test. Delete call to
3782 set_gdbarch_decr_pc_after_break.
3783
3784 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3785 RISCV_LAST_FP_REGNUM + 1.
3786 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3787
3788 2018-07-17 Tom Tromey <tom@tromey.com>
3789
3790 * configure.ac: Remove --disable-gdbcli.
3791 * configure: Rebuild.
3792 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3793 (SUBDIR_CLI_CFLAGS): Remove.
3794 (SFILES): Use SUBDIR_CLI_SRCS.
3795 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3796
3797 2018-07-17 Tom Tromey <tom@tromey.com>
3798
3799 PR gdb/18624:
3800 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3801
3802 2018-07-16 Jim Wilson <jimw@sifive.com>
3803
3804 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3805
3806 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3807
3808 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3809 variable.
3810 (libunwind_frame_sniffer): Likewise.
3811 (libunwind_frame_prev_register): Likewise.
3812 (libunwind_sigtramp_frame_sniffer): Likewise.
3813 * ia64-tdep.c (ia64_access_reg): Likewise.
3814 (ia64_access_rse_reg): Likewise.
3815 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3816 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3817
3818 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3819
3820 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3821
3822 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3823
3824 * remote-sim.c (gdbsim_target::close,
3825 gdbsim_target::mourn_inferior): Remove unused variables.
3826
3827 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3828
3829 * ia64-tdep.c (ktab_buf): New global.
3830 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3831 (get_kernel_table): Adjust.
3832
3833 2018-07-16 Tom Tromey <tom@tromey.com>
3834
3835 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3836 * dwarf2read.c (using_directives, new_symbol): Use
3837 outermost_context_p.
3838 * dbxread.c (process_one_symbol): Use outermost_context_p.
3839 * coffread.c (coff_symtab_read): Use outermost_context_p.
3840
3841 2018-07-16 Tom Tromey <tom@tromey.com>
3842
3843 * dwarf2read.c (using_directives, read_func_scope)
3844 (read_lexical_block_scope): Update.
3845 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3846 * buildsym.h (local_using_directives, global_using_directives):
3847 Don't declare.
3848 (get_local_using_directives, set_local_using_directives)
3849 (get_global_using_directives): Declare.
3850 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3851 m_global_using_directives>: New members.
3852 (finish_block_internal, prepare_for_building)
3853 (reset_symtab_globals, end_symtab_get_static_block)
3854 (push_context): Update.
3855 (get_local_using_directives, set_local_using_directives)
3856 (get_global_using_directives): New functions.
3857 (buildsym_init): Update.
3858
3859 2018-07-16 Tom Tromey <tom@tromey.com>
3860
3861 * xcoffread.c (xcoff_initial_scan): Don't call
3862 free_pending_blocks.
3863 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3864 * buildsym.h (class scoped_free_pendings): Add constructor.
3865 (free_pending_blocks): Don't declare.
3866 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3867 (free_pending_blocks): Now static.
3868
3869 2018-07-16 Tom Tromey <tom@tromey.com>
3870
3871 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3872 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3873 member.
3874 (struct subfile_stack): Remove.
3875 (subfile_stack): Remove.
3876 (push_subfile, pop_subfile, buildsym_init): Update.
3877
3878 2018-07-16 Tom Tromey <tom@tromey.com>
3879
3880 * buildsym.c (push_subfile): Use gdb_assert.
3881 (pop_subfile): Use gdb_assert.
3882
3883 2018-07-16 Tom Tromey <tom@tromey.com>
3884
3885 * buildsym.h (merge_symbol_lists): Remove.
3886 * buildsym.c (merge_symbol_lists): Remove.
3887
3888 2018-07-16 Tom Tromey <tom@tromey.com>
3889
3890 * stabsread.c (scan_file_globals): Update comment.
3891 * stabsread.h (scan_file_globals): Move from buildsym.h.
3892 * buildsym.h (scan_file_globals): Move to stabsread.h.
3893
3894 2018-07-16 Tom Tromey <tom@tromey.com>
3895
3896 * xcoffread.c (xcoff_new_init): Update.
3897 * mipsread.c (mipscoff_new_init): Update.
3898 * mdebugread.c (mdebug_build_psymtabs): Update.
3899 * elfread.c (elf_new_init): Update.
3900 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3901 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3902 * buildsym.h (buildsym_new_init): Don't declare.
3903 * buildsym.c (buildsym_new_init): Remove.
3904
3905 2018-07-16 Tom Tromey <tom@tromey.com>
3906
3907 * stabsread.h (within_function): Move from buildsym.h.
3908 * stabsread.c (start_stabs): Clear within_function.
3909 * coffread.c (coff_start_symtab): Clear within_function.
3910 * buildsym.h (within_function): Move to stabsread.h.
3911 * buildsym.c (prepare_for_building): Update.
3912
3913 2018-07-16 Tom Tromey <tom@tromey.com>
3914
3915 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3916 * dwarf2read.c (dwarf2_start_symtab): Don't set
3917 processing_gcc_compilation.
3918 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3919
3920 2018-07-16 Tom Tromey <tom@tromey.com>
3921
3922 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3923 (next_symbol_text_func): Move from buildsym.h.
3924 * stabsread.c (hashname): Move from buildsym.c.
3925 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3926 (next_symbol_text_func, hashname): Move to stabsread.h.
3927 * buildsym.c: Don't include bcache.h
3928 (hashname): Move to stasbread.c.
3929
3930 2018-07-16 Tom Tromey <tom@tromey.com>
3931
3932 * buildsym.h (context_stack_size): Don't declare.
3933 * buildsym.c (context_stack_size): New global.
3934
3935 2018-07-16 Tom Tromey <tom@tromey.com>
3936
3937 * dbxread.c (processing_acc_compilation): New global.
3938 * buildsym.h (processing_acc_compilation): Don't declare.
3939
3940 2018-07-16 Tom Tromey <tom@tromey.com>
3941
3942 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3943 * dbxread.c (read_ofile_symtab): Update.
3944 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3945 * buildsym.h (last_source_start_addr): Remove.
3946 (set_last_source_start_addr, get_last_source_start_addr):
3947 Declare.
3948 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3949 parameter.
3950 (struct buildsym_compunit) <m_last_source_start_addr>: New
3951 member.
3952 (prepare_for_building): Remove start_addr parameter.
3953 (start_symtab, restart_symtab, end_symtab_get_static_block)
3954 (end_symtab_with_blockvector): Update.
3955 (set_last_source_start_addr, get_last_source_start_addr): New
3956 functions.
3957
3958 2018-07-16 Tom Tromey <tom@tromey.com>
3959
3960 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3961 member.
3962 (have_line_numbers): Remove.
3963 (record_line, prepare_for_building, end_symtab_get_static_block)
3964 (augment_type_symtab): Update.
3965
3966 2018-07-16 Tom Tromey <tom@tromey.com>
3967
3968 * buildsym.c (~buildsym_compunit): Free the macro table.
3969 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3970 methods.
3971 <m_pending_macros>: New member.
3972 (pending_macros): Remove.
3973 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3974 (reset_symtab_globals, end_symtab_get_static_block)
3975 (end_symtab_with_blockvector, augment_type_symtab)
3976 (buildsym_init): Update.
3977
3978 2018-07-16 Tom Tromey <tom@tromey.com>
3979
3980 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3981 parameter.
3982 (buildsym_compunit::set_last_source_file): New method.
3983 <m_last_source_file>: New member.
3984 (prepare_for_building): Remove "name" parameter.
3985 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3986 (last_source_file): Remove.
3987 (set_last_source_file, get_last_source_file): Update.
3988
3989 2018-07-16 Tom Tromey <tom@tromey.com>
3990
3991 * buildsym.c (prepare_for_building): Add assert.
3992
3993 2018-07-16 Tom Tromey <tom@tromey.com>
3994
3995 * buildsym.c (~buildsym_compunit): Update.
3996 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3997 (start_subfile, patch_subfile_names)
3998 (end_symtab_with_blockvector): Update.
3999
4000 2018-07-16 Tom Tromey <tom@tromey.com>
4001
4002 * buildsym.c (struct buildsym_compunit): Add constructor,
4003 destructor, initializers.
4004 (start_buildsym_compunit): Remove.
4005 (free_buildsym_compunit): Use "delete".
4006 (start_symtab, restart_symtab): Use "new".
4007
4008 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4009
4010 * symfile.c (set_objfile_default_section_offset): Remove struct
4011 keyword.
4012
4013 2018-07-14 Stafford Horne <shorne@gmail.com>
4014
4015 * (Responsible Maintainers): Add myself as or1k maintainer.
4016
4017 2018-07-13 Tom Tromey <tom@tromey.com>
4018
4019 * symfile.c (set_objfile_default_section_offset): Use extra braces
4020 around initializer.
4021
4022 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4023
4024 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4025 non-branching basr.
4026
4027 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4028
4029 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4030 unittests/cli-utils-selftests.c
4031 * unittests/cli-utils-selftests.c: New file.
4032
4033 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4034
4035 * NEWS: Mention new commands. Mention change to 'thread apply'.
4036
4037 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4038
4039 * thread.c (thr_try_catch_cmd): New function.
4040 (thread_apply_all_command): Handle qcs flags.
4041 (thread_apply_command): Handle qcs flags.
4042 (taas_command): New function.
4043 (tfaas_command): New function.
4044 (_initialize_thread): Update to setup the new commands 'taas
4045 and 'tfaas'. Change doc string for 'thread apply'.
4046
4047 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4048
4049 * stack.c: (trailing_outermost_frame): New function, mostly
4050 extracted from backtrace_command_1.
4051 (leading_innermost_frame): New function.
4052 (backtrace_command_1): Update to call trailing_outermost_frame.
4053 (frame_apply_command_count): New function.
4054 (frame_apply_level_command): New function.
4055 (frame_apply_all_command): New function.
4056 (frame_apply_command): New function.
4057 (faas_command): New function.
4058 (frame_cmd_list): New variable.
4059 (_initialize_stack): Update to setup the new commands 'frame apply'
4060 and 'faas'.
4061
4062 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4063
4064 * cli-utils.c (number_or_range_parser::get_number): Only handle
4065 numbers or convenience var as numbers.
4066 (parse_flags): New function.
4067 (parse_flags_qcs): New function.
4068 (number_or_range_parser::finished): Ensure parsing end is detected
4069 before end of string.
4070 * cli-utils.h (parse_flags): New function.
4071 (parse_flags_qcs): New function.
4072 (number_or_range_parser): Remove m_finished bool.
4073 (number_or_range_parser::skip_range): Set m_in_range to false.
4074
4075 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4076
4077 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4078 on Windows.
4079
4080 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4081 Jan Kratochvil <jan.kratochvil@redhat.com>
4082 Paul Fertser <fercerpav@gmail.com>
4083 Tsutomu Seki <sekiriki@gmail.com>
4084 Pedro Alves <palves@redhat.com>
4085
4086 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4087 'unittests/parse-connection-spec-selftests.c'.
4088 (COMMON_SFILES): Add 'common/netstuff.c'.
4089 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4090 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4091 * common/netstuff.c: New file.
4092 * common/netstuff.h: New file.
4093 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4094 (wait_for_connect): Update comment. New parameter
4095 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4096 Use 'sock' directly instead of 'scb->fd'.
4097 (try_connect): New function, with code from 'net_open'.
4098 (net_open): Rewrite main loop to deal with multiple
4099 sockets/addresses. Handle IPv6-style hostnames; implement
4100 support for IPv6 connections.
4101 * unittests/parse-connection-spec-selftests.c: New file.
4102
4103 2018-07-11 Pedro Alves <palves@redhat.com>
4104
4105 PR gdb/23377
4106 * remote.c (remote_target::remote_detach_pid): Call
4107 set_current_process.
4108
4109 2018-07-11 Pedro Alves <palves@redhat.com>
4110
4111 * h8300-tdep.c (h8300_gdbarch_init): Remove
4112 set_gdbarch_ecoff_reg_to_regnum calls.
4113
4114 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4115
4116 PR c++/23373
4117 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4118 offsets/sizes for static members of a class/struct.
4119
4120 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4121
4122 * target-descriptions.c (tdesc_register_bitsize): Rename.
4123 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4124 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4125 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4126
4127 2018-07-10 Tom Tromey <tom@tromey.com>
4128
4129 * breakpoint.c (moribund_locations): Now static and a
4130 std::vector.
4131 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4132 (build_bpstat_chain, update_global_location_list)
4133 (breakpoint_retire_moribund): Update.
4134 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4135 VEC.
4136
4137 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4138
4139 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4140 (riscv_register_reggroup_p): Use new function, remove unneeded
4141 parenthesis.
4142 (riscv_push_dummy_call): Extend assert to compare against xlen or
4143 flen based on register type.
4144
4145 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4146
4147 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4148
4149 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4150
4151 * remote.c (show_hardware_watchpoint_limit): New function.
4152 (show_hardware_watchpoint_length_limit): New function.
4153 (show_hardware_breakpoint_limit): New function.
4154 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4155 where appropriate, update help text.
4156
4157 2018-07-09 Tom Tromey <tom@tromey.com>
4158
4159 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4160 (CLIBS): Don't mention NAT_CLIBS.
4161
4162 2018-07-09 Tom Tromey <tom@tromey.com>
4163
4164 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4165 (LIBGDB_OBS, clean mostlyclean): Update.
4166 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4167
4168 2018-07-09 Tom Tromey <tom@tromey.com>
4169
4170 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4171 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4172 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4173
4174 2018-07-09 Tom Tromey <tom@tromey.com>
4175
4176 * Makefile.in (ALLDEPFILES): Remove exec.c.
4177 (COMMON_OBS): Remove exec.o.
4178 (COMMON_SFILES): Add exec.c.
4179
4180 2018-07-09 Tom Tromey <tom@tromey.com>
4181
4182 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4183
4184 2018-07-09 Tom Tromey <tom@tromey.com>
4185
4186 * Makefile.in (clean mostlyclean): Remove stamp-version.
4187 (version.c): Depend on stamp-version.
4188 (stamp-version): New rule, from version.c rule.
4189
4190 2018-07-09 Tom Tromey <tom@tromey.com>
4191
4192 * Makefile.in (init.c): Depend on stamp-init.
4193 (stamp-init): New rule, from init.c rule.
4194 (clean mostlyclean): Remove stamp-init.
4195
4196 2018-07-09 Tom Tromey <tom@tromey.com>
4197
4198 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4199 SUBDIR_GCC_COMPILE_SRCS.
4200
4201 2018-07-09 Tom Tromey <tom@tromey.com>
4202
4203 * Makefile.in (init.c): Remove some unused sed rules.
4204
4205 2018-07-09 Tom Tromey <tom@tromey.com>
4206
4207 * Makefile.in (TSOBS): Remove.
4208 (INIT_FILES): Update.
4209 (LIBGDB_OBS): Update.
4210 (COMMON_SFILES): Add inflow.c.
4211 (SFILES): Remove inflow.c.
4212
4213 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4214
4215 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4216
4217 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4218
4219 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4220 get_saveloc_name, is_signal_frame_name, step_name,
4221 init_remote_name, create_addr_space_name,
4222 destroy_addr_space_name, search_unwind_table_name,
4223 find_dyn_list_name): Constify.
4224
4225 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4226
4227 * darwin-nat.c (darwin_pthread_kill): New function.
4228 (darwin_resume_thread): Use darwin_pthread_kill.
4229
4230 2018-07-05 Tom de Vries <tdevries@suse.de>
4231
4232 * macroexp.c (macro_buffer) <operator=>: New member function.
4233
4234 2018-07-04 Tom Tromey <tom@tromey.com>
4235
4236 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4237
4238 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4239
4240 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4241 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4242 * maint.c: Likewise.
4243 * top.c: Likewise.
4244
4245 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4246
4247 * NEWS: Create a new section for the next release branch.
4248 Rename the section of the current branch, now that it has
4249 been cut.
4250
4251 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4252
4253 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4254 * version.in: Bump version to 8.2.50.DATE-git.
4255
4256 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4257 Pedro Alves <palves@redhat.com>
4258
4259 * linux-nat.c (linux_init_ptrace): Rename to ...
4260 (linux_init_ptrace_procfs): ... this. Call
4261 linux_proc_init_warnings.
4262 (linux_nat_target::post_attach)
4263 (linux_nat_target::post_startup_inferior): Adjust.
4264 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4265 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4266
4267 2018-07-04 Tom de Vries <tdevries@suse.de>
4268
4269 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4270 check ...
4271 (read_comp_unit_head): ... here.
4272
4273 2018-07-03 Tom Tromey <tom@tromey.com>
4274
4275 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4276 (stop_tracing, tstatus_command)
4277 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4278 (print_one_static_tracepoint_marker): Update.
4279 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4280 std::vector.
4281 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4282 VEC.
4283 (all_tracepoints, static_tracepoints_here): Return std::vector.
4284
4285 2018-07-03 Tom Tromey <tom@tromey.com>
4286
4287 * common/ptid.c (ptid_equal): Remove.
4288 * common/ptid.h (ptid_equal): Don't declare.
4289 * ada-tasks.c: Update.
4290 * breakpoint.c: Update.
4291 * common/agent.c: Update.
4292 * corelow.c: Update.
4293 * darwin-nat-info.c: Update.
4294 * darwin-nat.c: Update.
4295 * dcache.c: Update.
4296 * dtrace-probe.c: Update.
4297 * dummy-frame.c: Update.
4298 * fbsd-nat.c: Update.
4299 * frame.c: Update.
4300 * gdbthread.h: Update.
4301 * gnu-nat.c: Update.
4302 * go32-nat.c: Update.
4303 * inf-loop.c: Update.
4304 * inf-ptrace.c: Update.
4305 * infcall.c: Update.
4306 * infcmd.c: Update.
4307 * inflow.c: Update.
4308 * infrun.c: Update.
4309 * linux-fork.c: Update.
4310 * linux-nat.c: Update.
4311 * linux-thread-db.c: Update.
4312 * mi/mi-cmd-var.c: Update.
4313 * mi/mi-interp.c: Update.
4314 * mi/mi-main.c: Update.
4315 * nto-procfs.c: Update.
4316 * ppc-linux-tdep.c: Update.
4317 * procfs.c: Update.
4318 * python/py-inferior.c: Update.
4319 * python/py-record-btrace.c: Update.
4320 * python/py-record.c: Update.
4321 * ravenscar-thread.c: Update.
4322 * regcache.c: Update.
4323 * remote-sim.c: Update.
4324 * remote.c: Update.
4325 * sol-thread.c: Update.
4326 * solib.c: Update.
4327 * target.c: Update.
4328 * tui/tui-stack.c: Update.
4329 * varobj.c: Update.
4330 * windows-nat.c: Update.
4331 * windows-tdep.c: Update.
4332
4333 2018-07-03 Tom Tromey <tom@tromey.com>
4334
4335 * common/ptid.c (ptid_match): Remove.
4336 * common/ptid.h (ptid_match): Don't declare.
4337 * fbsd-nat.c: Update.
4338 * infcmd.c: Update.
4339 * infrun.c: Update.
4340 * linux-nat.c: Update.
4341 * record-btrace.c: Update.
4342 * regcache.c: Update.
4343 * remote.c: Update.
4344
4345 2018-07-03 Tom Tromey <tom@tromey.com>
4346
4347 * common/ptid.c (ptid_tid_p): Remove.
4348 * common/ptid.h (ptid_tid_p): Don't declare.
4349 * sol-thread.c: Update.
4350
4351 2018-07-03 Tom Tromey <tom@tromey.com>
4352
4353 * common/ptid.c (ptid_lwp_p): Remove.
4354 * common/ptid.h (ptid_lwp_p): Don't declare.
4355 * fbsd-nat.c: Update.
4356 * linux-nat.c: Update.
4357 * nat/linux-procfs.c: Update.
4358 * nat/x86-linux-dregs.c: Update.
4359 * sol-thread.c: Update.
4360
4361 2018-07-03 Tom Tromey <tom@tromey.com>
4362
4363 * common/ptid.c (ptid_is_pid): Remove.
4364 * common/ptid.h (ptid_is_pid): Don't declare.
4365 * infrun.c: Update.
4366 * linux-nat.c: Update.
4367 * mi/mi-interp.c: Update.
4368 * remote.c: Update.
4369 * thread.c: Update.
4370
4371 2018-07-03 Tom Tromey <tom@tromey.com>
4372
4373 * common/ptid.c (ptid_get_tid): Remove.
4374 * common/ptid.h (ptid_get_tid): Don't declare.
4375 * ada-tasks.c: Update.
4376 * aix-thread.c: Update.
4377 * bsd-uthread.c: Update.
4378 * darwin-nat.c: Update.
4379 * fbsd-nat.c: Update.
4380 * i386-darwin-nat.c: Update.
4381 * infrun.c: Update.
4382 * linux-tdep.c: Update.
4383 * nto-procfs.c: Update.
4384 * ppc-ravenscar-thread.c: Update.
4385 * python/py-infthread.c: Update.
4386 * ravenscar-thread.c: Update.
4387 * sol-thread.c: Update.
4388 * sparc-ravenscar-thread.c: Update.
4389 * windows-nat.c: Update.
4390
4391 2018-07-03 Tom Tromey <tom@tromey.com>
4392
4393 * common/ptid.c (ptid_get_lwp): Remove.
4394 * common/ptid.h (ptid_get_lwp): Don't declare.
4395 * aarch64-linux-nat.c: Update.
4396 * ada-tasks.c: Update.
4397 * aix-thread.c: Update.
4398 * amd64-linux-nat.c: Update.
4399 * arm-linux-nat.c: Update.
4400 * corelow.c: Update.
4401 * fbsd-nat.c: Update.
4402 * fbsd-tdep.c: Update.
4403 * gnu-nat.c: Update.
4404 * i386-cygwin-tdep.c: Update.
4405 * i386-gnu-nat.c: Update.
4406 * i386-linux-nat.c: Update.
4407 * ia64-linux-nat.c: Update.
4408 * inf-ptrace.c: Update.
4409 * infrun.c: Update.
4410 * linux-fork.c: Update.
4411 * linux-nat.c: Update.
4412 * linux-tdep.c: Update.
4413 * linux-thread-db.c: Update.
4414 * mips-linux-nat.c: Update.
4415 * nat/aarch64-linux-hw-point.c: Update.
4416 * nat/aarch64-linux.c: Update.
4417 * nat/linux-btrace.c: Update.
4418 * nat/linux-osdata.c: Update.
4419 * nat/linux-procfs.c: Update.
4420 * nat/x86-linux-dregs.c: Update.
4421 * obsd-nat.c: Update.
4422 * ppc-fbsd-nat.c: Update.
4423 * ppc-linux-nat.c: Update.
4424 * procfs.c: Update.
4425 * python/py-infthread.c: Update.
4426 * ravenscar-thread.c: Update.
4427 * remote.c: Update.
4428 * s390-linux-nat.c: Update.
4429 * sol-thread.c: Update.
4430 * sol2-tdep.c: Update.
4431 * spu-linux-nat.c: Update.
4432 * x86-linux-nat.c: Update.
4433 * xtensa-linux-nat.c: Update.
4434
4435 2018-07-03 Tom Tromey <tom@tromey.com>
4436
4437 * common/ptid.c (ptid_get_pid): Remove.
4438 * common/ptid.h (ptid_get_pid): Don't declare.
4439 * aarch64-linux-nat.c: Update.
4440 * ada-lang.c: Update.
4441 * aix-thread.c: Update.
4442 * alpha-bsd-nat.c: Update.
4443 * amd64-fbsd-nat.c: Update.
4444 * amd64-linux-nat.c: Update.
4445 * arm-linux-nat.c: Update.
4446 * arm-nbsd-nat.c: Update.
4447 * auxv.c: Update.
4448 * break-catch-syscall.c: Update.
4449 * breakpoint.c: Update.
4450 * bsd-uthread.c: Update.
4451 * corelow.c: Update.
4452 * ctf.c: Update.
4453 * darwin-nat.c: Update.
4454 * fbsd-nat.c: Update.
4455 * fbsd-tdep.c: Update.
4456 * gcore.c: Update.
4457 * gnu-nat.c: Update.
4458 * hppa-nbsd-nat.c: Update.
4459 * hppa-obsd-nat.c: Update.
4460 * i386-fbsd-nat.c: Update.
4461 * ia64-linux-nat.c: Update.
4462 * inf-ptrace.c: Update.
4463 * infcmd.c: Update.
4464 * inferior.c: Update.
4465 * inferior.h: Update.
4466 * inflow.c: Update.
4467 * infrun.c: Update.
4468 * linux-fork.c: Update.
4469 * linux-nat.c: Update.
4470 * linux-tdep.c: Update.
4471 * linux-thread-db.c: Update.
4472 * m68k-bsd-nat.c: Update.
4473 * mi/mi-interp.c: Update.
4474 * mi/mi-main.c: Update.
4475 * mips-linux-nat.c: Update.
4476 * mips-nbsd-nat.c: Update.
4477 * mips64-obsd-nat.c: Update.
4478 * nat/aarch64-linux-hw-point.c: Update.
4479 * nat/aarch64-linux.c: Update.
4480 * nat/linux-btrace.c: Update.
4481 * nat/linux-osdata.c: Update.
4482 * nat/linux-procfs.c: Update.
4483 * nat/x86-linux-dregs.c: Update.
4484 * nto-procfs.c: Update.
4485 * obsd-nat.c: Update.
4486 * ppc-linux-nat.c: Update.
4487 * ppc-nbsd-nat.c: Update.
4488 * ppc-obsd-nat.c: Update.
4489 * proc-service.c: Update.
4490 * procfs.c: Update.
4491 * python/py-inferior.c: Update.
4492 * python/py-infthread.c: Update.
4493 * ravenscar-thread.c: Update.
4494 * record.c: Update.
4495 * remote-sim.c: Update.
4496 * remote.c: Update.
4497 * rs6000-nat.c: Update.
4498 * s390-linux-nat.c: Update.
4499 * sh-nbsd-nat.c: Update.
4500 * sol-thread.c: Update.
4501 * sparc-nat.c: Update.
4502 * sparc64-tdep.c: Update.
4503 * spu-linux-nat.c: Update.
4504 * spu-tdep.c: Update.
4505 * target-debug.h: Update.
4506 * target.c: Update.
4507 * thread.c: Update.
4508 * tid-parse.c: Update.
4509 * tracefile-tfile.c: Update.
4510 * vax-bsd-nat.c: Update.
4511 * windows-nat.c: Update.
4512 * x86-linux-nat.c: Update.
4513 * x86-nat.c: Update.
4514
4515 2018-07-03 Tom Tromey <tom@tromey.com>
4516
4517 * common/ptid.c (pid_to_ptid): Remove.
4518 * common/ptid.h (pid_to_ptid): Don't declare.
4519 * aix-thread.c: Update.
4520 * arm-linux-nat.c: Update.
4521 * common/ptid.c: Update.
4522 * common/ptid.h: Update.
4523 * corelow.c: Update.
4524 * ctf.c: Update.
4525 * darwin-nat.c: Update.
4526 * fbsd-nat.c: Update.
4527 * fork-child.c: Update.
4528 * gnu-nat.c: Update.
4529 * go32-nat.c: Update.
4530 * inf-ptrace.c: Update.
4531 * infcmd.c: Update.
4532 * inferior.c: Update.
4533 * infrun.c: Update.
4534 * linux-fork.c: Update.
4535 * linux-nat.c: Update.
4536 * nat/aarch64-linux-hw-point.c: Update.
4537 * nat/fork-inferior.c: Update.
4538 * nat/x86-linux-dregs.c: Update.
4539 * nto-procfs.c: Update.
4540 * obsd-nat.c: Update.
4541 * procfs.c: Update.
4542 * progspace.c: Update.
4543 * remote.c: Update.
4544 * rs6000-nat.c: Update.
4545 * s390-linux-nat.c: Update.
4546 * sol-thread.c: Update.
4547 * spu-linux-nat.c: Update.
4548 * target.c: Update.
4549 * top.c: Update.
4550 * tracefile-tfile.c: Update.
4551 * windows-nat.c: Update.
4552
4553 2018-07-03 Tom Tromey <tom@tromey.com>
4554
4555 * common/ptid.h (ptid_build): Don't declare.
4556 * common/ptid.c (ptid_build): Remove.
4557 * aix-thread.c: Update.
4558 * bsd-kvm.c: Update.
4559 * bsd-uthread.c: Update.
4560 * common/agent.c: Update.
4561 * common/ptid.c: Update.
4562 * common/ptid.h: Update.
4563 * corelow.c: Update.
4564 * darwin-nat.c: Update.
4565 * fbsd-nat.c: Update.
4566 * gnu-nat.c: Update.
4567 * linux-fork.c: Update.
4568 * linux-nat.c: Update.
4569 * linux-thread-db.c: Update.
4570 * nat/linux-osdata.c: Update.
4571 * nat/linux-procfs.c: Update.
4572 * nto-procfs.c: Update.
4573 * obsd-nat.c: Update.
4574 * proc-service.c: Update.
4575 * procfs.c: Update.
4576 * ravenscar-thread.c: Update.
4577 * remote-sim.c: Update.
4578 * remote.c: Update.
4579 * sol-thread.c: Update.
4580 * target.c: Update.
4581 * windows-nat.c: Update.
4582
4583 2018-07-03 Tom Tromey <tom@tromey.com>
4584
4585 * infrun.c (follow_exec): Use exit_inferior_silent.
4586 * inferior.c (exit_inferior_num_silent): Remove.
4587 * inferior.h (exit_inferior_num_silent): Don't declare.
4588
4589 2018-07-03 Tom Tromey <tom@tromey.com>
4590
4591 PR cli/23340:
4592 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4593 inferior_ptid on error.
4594
4595 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4596 Simon Marchi <simon.marchi@polymtl.ca>
4597
4598 PR tdep/8282
4599 * disasm.h (gdb_disassembler): Add
4600 `m_disassembler_options_holder'. member
4601 * disasm.c (get_all_disassembler_options): New function.
4602 (gdb_disassembler::gdb_disassembler): Use it.
4603 (gdb_buffered_insn_length_init_dis): Likewise.
4604 (gdb_buffered_insn_length): Adjust accordingly.
4605 (set_disassembler_options): Handle options with arguments.
4606 (show_disassembler_options_sfunc): Likewise. Add a leading new
4607 line if showing options with descriptions.
4608 (disassembler_options_completer): Adapt to using the
4609 `disasm_options_and_args_t' structure.
4610 * mips-tdep.c (mips_disassembler_options): New variable.
4611 (mips_disassembler_options_o32): Likewise.
4612 (mips_disassembler_options_n32): Likewise.
4613 (mips_disassembler_options_n64): Likewise.
4614 (gdb_print_insn_mips): Don't set `disassembler_options'.
4615 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4616 functions.
4617 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4618 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4619 `gdbarch_disassembler_options_implicit' and
4620 `gdbarch_valid_disassembler_options'.
4621 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4622 `disasm_options_and_args_t' structure.
4623 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4624 method.
4625 (valid_disassembler_options): Switch from `disasm_options_t' to
4626 the `disasm_options_and_args_t' structure.
4627 * NEWS: Document `set disassembler-options' support for the MIPS
4628 target.
4629 * gdbarch.h: Regenerate.
4630 * gdbarch.c: Regenerate.
4631
4632 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4633
4634 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4635
4636 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4637
4638 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4639 parameter in call to amd64_target_description.
4640 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4641 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4642 (amd64fbsd_init_abi): Likewise.
4643 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4644 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4645 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4646 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4647
4648 2018-06-29 Pedro Alves <palves@redhat.com>
4649
4650 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4651 "segments" parameter.
4652 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4653 (_initialize_amd64_tdep): Update call to
4654 amd64_create_target_description.
4655 (amd64_target_description): Add "segments" parameter. Adjust
4656 the implementation to use it.
4657 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4658 call to amd64_create_target_description.
4659 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4660 * gdb/arch/amd64.h (amd64_create_target_description): Add
4661 "segments" register.
4662 * gdb/arch/amd64.c (amd64_create_target_description): Add
4663 "segments" parameter. Call create_feature_i386_64bit_segments
4664 only if SEGMENTS is true.
4665 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4666 call to amd64_create_target_description.
4667
4668 2018-06-29 Pedro Alves <palves@redhat.com>
4669
4670 * thread.c (thread_target_id_str): New, factored out from ...
4671 (print_thread_info_1): ... here. Use it to compute the max
4672 "Target Id" column width.
4673
4674 2018-06-29 Pedro Alves <palves@redhat.com>
4675
4676 * remote.c (remote_target::extra_thread_info): Delete
4677 'display_buf' and 'n' locals. from the cache, regardless of
4678 packet mechanims is in use. Use cache for qThreadExtra and qP
4679 methods too.
4680
4681 2018-06-29 Pedro Alves <palves@redhat.com>
4682
4683 * blockframe.c (find_pc_sect_containing_function): New function.
4684 * breakpoint.c (print_breakpoint_location): Don't call
4685 find_pc_sect_function.
4686 * linespec.c (create_sals_line_offset): Record the location's
4687 symbol in the sal.
4688 * linespec.c (convert_address_location_to_sals): Fill in sal's
4689 symbol with find_pc_sect_containing_function.
4690 * symtab.c (find_function_start_sal): Rename to ...
4691 (find_function_start_sal_1): ... this.
4692 (find_function_start_sal): Reimplement as wrapper around
4693 find_function_start_sal_1, and use
4694 find_pc_sect_containing_function to fill in the sal's symbol.
4695 (find_function_start_sal(symbol*, bool)): Adjust.
4696 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4697 comments.
4698 (find_pc_sect_containing_function): Declare.
4699
4700 2018-06-29 Pedro Alves <palves@redhat.com>
4701
4702 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4703 true if the the location has no symbol.
4704
4705 2018-06-28 Tom Tromey <tom@tromey.com>
4706
4707 * NEWS: Mention --enable-codesign.
4708 * silent-rules.mk (ECHO_SIGN): New variable.
4709 * configure.ac: Add --enable-codesign.
4710 * configure: Rebuild.
4711 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4712 (gdb$(EXEEXT)): Optionally invoke codesign.
4713
4714 2018-06-28 Pedro Alves <palves@redhat.com>
4715
4716 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4717 comments.
4718 (switch_to_thread_no_regs): Adjust comment.
4719 * infcmd.c (stop_pc): Delete.
4720 (post_create_inferior, info_program_command): Replace references
4721 to stop_pc with references to thread_info->suspend.stop_pc.
4722 * inferior.h (stop_pc): Delete declaration.
4723 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4724 (handle_inferior_event_1, handle_signal_stop)
4725 (process_event_stop_test, keep_going_stepped_thread)
4726 (handle_step_into_function, handle_step_into_function_backward)
4727 (print_stop_location): Replace references to stop_pc with
4728 references to thread_info->suspend.stop_pc.
4729 (struct infcall_suspend_state) <stop_pc>: Delete field.
4730 (save_infcall_suspend_state, restore_infcall_suspend_state):
4731 Remove references to inf_stat->stop_pc.
4732 * linux-fork.c (fork_load_infrun_state): Likewise.
4733 * record-btrace.c (record_btrace_set_replay): Likewise.
4734 * record-full.c (record_full_goto_entry): Likewise.
4735 * remote.c (print_one_stopped_thread): Likewise.
4736 * target.c (target_resume): Extend comment.
4737 * thread.c (set_executing_thread): New.
4738 (set_executing): Use it.
4739 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4740 Remove references to stop_pc.
4741
4742 2018-06-28 Pedro Alves <palves@redhat.com>
4743
4744 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4745 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4746
4747 2018-06-28 Tom Tromey <tom@tromey.com>
4748
4749 * coffread.c (coff_symfile_finish): Update.
4750 * xcoffread.c (xcoff_symfile_finish): Update.
4751 * elfread.c (elf_symfile_finish): Update.
4752 * symfile.h (dwarf2_free_objfile): Don't declare.
4753 * dwarf2read.c (_initialize_dwarf2_read): Use
4754 register_objfile_data_with_cleanup.
4755 (dwarf2_free_objfile): Now static. Change signature.
4756
4757 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4758
4759 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4760 option "-o" to add-symbol-file-load to add an offset to each
4761 section's load address.
4762 * symfile.c (set_objfile_default_section_offset): New function.
4763
4764 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4765
4766 * symfile.c (add_symbol_file_command): Make sure that sections
4767 with the same name are sorted in the same order.
4768
4769 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4770
4771 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4772 require the second argument. If omitted, load sections at the
4773 addresses specified in the file.
4774
4775 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4776
4777 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4778 (_initialize_symfile): Add option "-o" to symbol-file to add an
4779 offset to each section of the symbol file.
4780
4781 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4782
4783 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4784
4785 2018-06-27 Tom Tromey <tom@tromey.com>
4786
4787 * stack.c (_initialize_stack): Update "func" help text.
4788
4789 2018-06-27 Tom Tromey <tom@tromey.com>
4790
4791 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4792 std::vector.
4793 (unwind_infopy_str, pyuw_create_unwind_info)
4794 (unwind_infopy_add_saved_register, pyuw_sniffer)
4795 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4796 Update.
4797 (struct saved_reg): Add constructor.
4798 <value>: Now a gdbpy_ref<>.
4799
4800 2018-06-27 Tom Tromey <tom@tromey.com>
4801
4802 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4803
4804 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4805
4806 * gdb-gdb.py.in: Format using autopep8.
4807
4808 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4809
4810 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4811 (type_lookup_function): Recognize CORE_ADDR values.
4812
4813 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4814
4815 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4816 print tag_name.
4817
4818 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4819
4820 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4821 <__lt__>: Add.
4822
4823 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4824
4825 * gdb-gdb.py: Move to...
4826 * gdb-gdb.py.in: ... here.
4827 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4828 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4829 dependencies.
4830 (distclean): Remove gdb-gdb.py when cleaning.
4831 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4832 * configure: Re-generate.
4833
4834 2018-06-27 Pedro Alves <palves@redhat.com>
4835
4836 * proc-service.c (get_ps_regcache): New.
4837 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4838 (ps_lsetfpregs): Use it.
4839
4840 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4841
4842 PR gdb/21695
4843 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4844 (dwarf_decode_lines_1): Adjust.
4845
4846 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4847
4848 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4849 override.
4850 <info_proc>: Likewise.
4851
4852 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4853
4854 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4855 to windows_fetch_one_register, and only handle the case of
4856 fetching one register. Move the code that reloads the context
4857 and iterates over all registers if R is negative to...
4858 (windows_nat_target::fetch_registers): ... here.
4859 (do_windows_store_inferior_registers): Rename to
4860 windows_store_one_register, and only handle the case of storing
4861 one register. Move the code that handles the case where r is
4862 negative to...
4863 (windows_nat_target::store_registers) ... here.
4864
4865 2018-06-26 Tom Tromey <tom@tromey.com>
4866
4867 PR rust/22574:
4868 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4869 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4870 Update.
4871 (rust_internal_print_type): Add podata parameter.
4872 (rust_print_type): Update.
4873
4874 2018-06-26 Tom Tromey <tom@tromey.com>
4875
4876 * typeprint.h (struct print_offset_data) <update, finish,
4877 maybe_print_hole>: New methods.
4878 <indentation>: New constant.
4879 * typeprint.c (print_offset_data::indentation): Define.
4880 (print_offset_data::maybe_print_hole, print_offset_data::update)
4881 (print_offset_data::finish): Move from c-typeprint.c and rename.
4882 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4883 (print_spaces_filtered_with_print_options): Update.
4884 (c_print_type_union_field_offset, maybe_print_hole)
4885 (c_print_type_struct_field_offset): Move to typeprint.c and
4886 rename.
4887 (c_type_print_base_struct_union): Update.
4888
4889 2018-06-25 Pedro Alves <palves@redhat.com>
4890
4891 * gdbthread.h (thread_info_ref, delete_thread)
4892 (delete_thread_silent, first_thread_of_inferior)
4893 (any_thread_of_inferior, switch_to_thread)
4894 (enable_thread_stack_temporaries)
4895 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4896 (get_last_thread_stack_temporary)
4897 (value_in_thread_stack_temporaries, can_access_registers_thread):
4898 Spell out "struct thread_info" instead of just "thread_info".
4899 * inferior.h (notice_new_inferior): Likewise.
4900
4901 2018-06-25 Pedro Alves <palves@redhat.com>
4902
4903 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4904 pass thread_info pointer to delete_thread.
4905 (windows_nat_target::detach): Pass inferior pointer to
4906 detach_inferior.
4907 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4908 delete_thread.
4909 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4910 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4911 and pass a thread_info pointer to delete_thread.
4912 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4913 pass thread_info pointer to delete_thread.
4914 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4915 delete_thread_silent call.
4916 * procfs.c (procfs_target::detach): Pass inferior pointer to
4917 detach_inferior.
4918 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4919 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4920 delete_thread_silent call.
4921 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4922 pass thread_info pointer to delete_thread.
4923 (windows_nat_target::detach): Pass inferior pointer to
4924 delete_inferior.
4925
4926 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4927
4928 * regcache.c (readable_regcache::read_part): Fix asserts.
4929 (reg_buffer::raw_collect_part): New function.
4930 (regcache::write_part): Fix asserts.
4931 (reg_buffer::raw_supply_part): New function.
4932 (regcache::transfer_regset_register): New helper function.
4933 (regcache::transfer_regset): Call new functions.
4934 (regcache_supply_regset): Use gdb_byte*.
4935 (regcache::supply_regset): Likewise.
4936 (regcache_collect_regset): Likewise.
4937 (regcache::collect_regset): Likewise.
4938 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4939 (reg_buffer::raw_supply_part): Likewise.
4940 (regcache::transfer_regset_register): Likewise.
4941 (regcache::transfer_regset): Use gdb_byte*.
4942
4943 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4944
4945 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4946
4947 2018-06-21 Pedro Alves <palves@redhat.com>
4948
4949 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4950 instead of a ptid_t. All callers adjusted.
4951 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4952 adjusted.
4953 (print_ada_task_info, display_current_task_id, task_command_1):
4954 Adjust.
4955 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4956 inferior_thread.
4957 (breakpoint_kind): Adjust.
4958 (remove_breakpoints_pid): Rename to ...
4959 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4960 pointer. All callers adjusted.
4961 (bpstat_clear_actions): Use inferior_thread.
4962 (get_bpstat_thread): New.
4963 (bpstat_do_actions): Use it.
4964 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4965 to take a thread_info pointer. All callers adjusted.
4966 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4967 (breakpoint_re_set_thread): Use inferior_thread.
4968 * breakpoint.h (struct inferior): Forward declare.
4969 (bpstat_stop_status): Update.
4970 (remove_breakpoints_pid): Delete.
4971 (remove_breakpoints_inf): New.
4972 * bsd-uthread.c (bsd_uthread_target::wait)
4973 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4974 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4975 (maint_btrace_packet_history_cmd)
4976 (maint_btrace_clear_packet_history_cmd): Adjust.
4977 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4978 inferior_thread.
4979 * cli/cli-interp.c: Include "inferior.h".
4980 * common/refcounted-object.h (struct
4981 refcounted_object_ref_policy): New.
4982 * compile/compile-object-load.c: Include gdbthread.h.
4983 (store_regs): Use inferior_thread.
4984 * corelow.c (core_target::close): Use current_inferior.
4985 (core_target_open): Adjust to use first_thread_of_inferior and use
4986 the current inferior.
4987 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4988 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4989 <thread>: ... this new field. All references adjusted.
4990 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4991 Take a thread_info pointer instead of a ptid_t.
4992 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4993 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4994 thread_info pointer instead of a ptid_t.
4995 * elfread.c: Include "inferior.h".
4996 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4997 Use inferior_thread.
4998 * eval.c (evaluate_subexp): Likewise.
4999 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5000 inferior_thread.
5001 * gdb_proc_service.h (struct thread_info): Forward declare.
5002 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5003 <thread>: ... this new field. All references adjusted.
5004 * gdbarch.h, gdbarch.c: Regenerate.
5005 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5006 'thread' parameter. All implementations and callers adjusted.
5007 * gdbthread.h (thread_info) <set_running>: New method.
5008 (delete_thread, delete_thread_silent): Take a thread_info pointer
5009 instead of a ptid.
5010 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5011 (first_thread_of_process): Delete, replaced by ...
5012 (first_thread_of_inferior): ... this new function. All callers
5013 adjusted.
5014 (any_live_thread_of_process): Delete, replaced by ...
5015 (any_live_thread_of_inferior): ... this new function. All callers
5016 adjusted.
5017 (switch_to_thread, switch_to_no_thread): Declare.
5018 (is_executing): Delete.
5019 (enable_thread_stack_temporaries): Update comment.
5020 <enable_thread_stack_temporaries>: Take a thread_info pointer
5021 instead of a ptid_t. Incref the thread.
5022 <~enable_thread_stack_temporaries>: Decref the thread.
5023 <m_ptid>: Delete
5024 <m_thr>: New.
5025 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5026 (get_last_thread_stack_temporary)
5027 (value_in_thread_stack_temporaries, can_access_registers_thread):
5028 Take a thread_info pointer instead of a ptid_t. All callers
5029 adjusted.
5030 * infcall.c (get_call_return_value): Use inferior_thread.
5031 (run_inferior_call): Work with thread pointers instead of ptid_t.
5032 (call_function_by_hand_dummy): Work with thread pointers instead
5033 of ptid_t. Use thread_info_ref.
5034 * infcmd.c (proceed_thread_callback): Access thread's state
5035 directly.
5036 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5037 access thread's state directly.
5038 (continue_command): Use inferior_thread.
5039 (info_program_command): Use find_thread_ptid and access thread
5040 state directly.
5041 (proceed_after_attach_callback): Use thread state directly.
5042 (notice_new_inferior): Take a thread_info pointer instead of a
5043 ptid_t. All callers adjusted.
5044 (exit_inferior): Take an inferior pointer instead of a pid. All
5045 callers adjusted.
5046 (exit_inferior_silent): New.
5047 (detach_inferior): Delete.
5048 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5049 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5050 (detach_inferior_command, kill_inferior_command): Use
5051 find_inferior_id instead of valid_gdb_inferior_id and
5052 gdb_inferior_id_to_pid.
5053 (inferior_command): Use inferior and thread pointers.
5054 * inferior.h (struct thread_info): Forward declare.
5055 (notice_new_inferior): Take a thread_info pointer instead of a
5056 ptid_t. All callers adjusted.
5057 (detach_inferior): Delete declaration.
5058 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5059 instead of a pid. All callers adjusted.
5060 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5061 (valid_gdb_inferior_id): Delete.
5062 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5063 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5064 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5065 ...
5066 <inf>: ... this new field.
5067 <step_ptid>: Delete, replaced by ...
5068 <step_thread>: ... this new field.
5069 (get_displaced_stepping_state): Take an inferior pointer instead
5070 of a pid. All callers adjusted.
5071 (displaced_step_in_progress_any_inferior): Adjust.
5072 (displaced_step_in_progress_thread): Take a thread pointer instead
5073 of a ptid_t. All callers adjusted.
5074 (displaced_step_in_progress, add_displaced_stepping_state): Take
5075 an inferior pointer instead of a pid. All callers adjusted.
5076 (get_displaced_step_closure_by_addr): Adjust.
5077 (remove_displaced_stepping_state): Take an inferior pointer
5078 instead of a pid. All callers adjusted.
5079 (displaced_step_prepare_throw, displaced_step_prepare)
5080 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5081 All callers adjusted.
5082 (start_step_over): Adjust.
5083 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5084 displaced step queue.
5085 (do_target_resume): Adjust.
5086 (fetch_inferior_event): Use inferior_thread.
5087 (context_switch, get_inferior_stop_soon): Take an
5088 execution_control_state pointer instead of a ptid_t. All callers
5089 adjusted.
5090 (switch_to_thread_cleanup): Delete.
5091 (stop_all_threads): Use scoped_restore_current_thread.
5092 * inline-frame.c: Include "gdbthread.h".
5093 (inline_state) <inline_state>: Take a thread pointer instead of a
5094 ptid_t. All callers adjusted.
5095 <ptid>: Delete, replaced by ...
5096 <thread>: ... this new field.
5097 (find_inline_frame_state): Take a thread pointer instead of a
5098 ptid_t. All callers adjusted.
5099 (skip_inline_frames, step_into_inline_frame)
5100 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5101 pointer instead of a ptid_t. All callers adjusted.
5102 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5103 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5104 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5105 pointers directly.
5106 * linux-nat.c (get_detach_signal): Likewise.
5107 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5108 (thread_db_notice_clone): Adjust.
5109 (thread_db_find_new_threads_silently)
5110 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5111 a thread pointer instead of a ptid_t. All callers adjusted.
5112 * mi/mi-cmd-var.c: Include "inferior.h".
5113 (mi_cmd_var_update_iter): Update to use thread pointers.
5114 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5115 inferior directly.
5116 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5117 out to ...
5118 (mi_output_running): ... this new function.
5119 (mi_on_resume_1): Adjust to use it.
5120 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5121 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5122 directly.
5123 (interrupt_thread_callback): : Adjust to use thread and inferior
5124 pointers.
5125 * proc-service.c: Include "gdbthread.h".
5126 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5127 * progspace-and-thread.c: Include "inferior.h".
5128 * progspace.c: Include "inferior.h".
5129 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5130 hold a reference to an inferior_object.
5131 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5132 inferior_thread.
5133 * python/py-inferior.c (struct inferior_object): Give the type a
5134 tag name instead of a typedef.
5135 (python_on_normal_stop): No need to check if the current thread is
5136 listed.
5137 (inferior_to_inferior_object): Change return type to
5138 inferior_object. All callers adjusted.
5139 (find_thread_object): Delete, bits factored out to ...
5140 (thread_to_thread_object): ... this new function.
5141 * python/py-infthread.c (create_thread_object): Use
5142 inferior_to_inferior_object.
5143 (thpy_is_stopped): Use thread pointer directly.
5144 (gdbpy_selected_thread): Use inferior_thread.
5145 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5146 field, replaced with ...
5147 <thread>: ... this new field. All users adjusted.
5148 (btpy_insn_or_gap_new): Drop const.
5149 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5150 callers adjusted.
5151 * python/py-record.c: Include "gdbthread.h".
5152 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5153 a ptid_t. All callers adjusted.
5154 (gdbpy_current_recording): Use inferior_thread.
5155 * python/py-record.h (recpy_record_object) <ptid>: Delete
5156 field, replaced with ...
5157 <thread>: ... this new field. All users adjusted.
5158 (recpy_element_object) <ptid>: Delete
5159 field, replaced with ...
5160 <thread>: ... this new field. All users adjusted.
5161 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5162 a ptid_t. All callers adjusted.
5163 * python/py-threadevent.c: Include "gdbthread.h".
5164 (get_event_thread): Use thread_to_thread_object.
5165 * python/python-internal.h (struct inferior_object): Forward
5166 declare.
5167 (find_thread_object, find_inferior_object): Delete declarations.
5168 (thread_to_thread_object, inferior_to_inferior_object): New
5169 declarations.
5170 * record-btrace.c: Include "inferior.h".
5171 (require_btrace_thread): Use inferior_thread.
5172 (record_btrace_frame_sniffer)
5173 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5174 (get_thread_current_frame): Use scoped_restore_current_thread and
5175 switch_to_thread.
5176 (get_thread_current_frame): Use thread pointer directly.
5177 (record_btrace_replay_at_breakpoint): Use thread's inferior
5178 pointer directly.
5179 * record-full.c: Include "inferior.h".
5180 * regcache.c: Include "gdbthread.h".
5181 (get_thread_arch_regcache): Use the inferior's address space
5182 directly.
5183 (get_thread_regcache, registers_changed_thread): New.
5184 * regcache.h (get_thread_regcache(thread_info *thread)): New
5185 overload.
5186 (registers_changed_thread): New.
5187 (remote_target) <remote_detach_1>: Swap order of parameters.
5188 (remote_add_thread): <remote_add_thread>: Return the new thread.
5189 (get_remote_thread_info(ptid_t)): New overload.
5190 (remote_target::remote_notice_new_inferior): Use thread pointers
5191 directly.
5192 (remote_target::process_initial_stop_replies): Use
5193 thread_info::set_running.
5194 (remote_target::remote_detach_1, remote_target::detach)
5195 (extended_remote_target::detach): Adjust.
5196 * stack.c (frame_show_address): Use inferior_thread.
5197 * target-debug.h (target_debug_print_thread_info_pp): New.
5198 * target-delegates.c: Regenerate.
5199 * target.c (default_thread_address_space): Delete.
5200 (memory_xfer_partial_1): Use current_inferior.
5201 (target_detach): Use current_inferior.
5202 (target_thread_address_space): Delete.
5203 (generic_mourn_inferior): Use current_inferior.
5204 * target.h (struct target_ops) <thread_address_space>: Delete.
5205 (target_thread_address_space): Delete.
5206 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5207 pointers directly.
5208 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5209 thread pointer instead of a ptid_t. Adjust all callers.
5210 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5211 (first_thread_of_process): Delete, replaced by ...
5212 (first_thread_of_inferior): ... this new function. All callers
5213 adjusted.
5214 (any_thread_of_process): Rename to ...
5215 (any_thread_of_inferior): ... this, and take an inferior pointer.
5216 (any_live_thread_of_process): Rename to ...
5217 (any_live_thread_of_inferior): ... this, and take an inferior
5218 pointer.
5219 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5220 (value_in_thread_stack_temporaries)
5221 (get_last_thread_stack_temporary): Take a thread pointer instead
5222 of a ptid_t. Adjust all callers.
5223 (thread_info::set_running): New.
5224 (validate_registers_access): Use inferior_thread.
5225 (can_access_registers_ptid): Rename to ...
5226 (can_access_registers_thread): ... this, and take a thread
5227 pointer.
5228 (print_thread_info_1): Adjust to compare thread pointers instead
5229 of ptids.
5230 (switch_to_no_thread, switch_to_thread): Make extern.
5231 (scoped_restore_current_thread::~scoped_restore_current_thread):
5232 Use m_thread pointer directly.
5233 (scoped_restore_current_thread::scoped_restore_current_thread):
5234 Use inferior_thread.
5235 (thread_command): Use thread pointer directly.
5236 (thread_num_make_value_helper): Use inferior_thread.
5237 * top.c (execute_command): Use inferior_thread.
5238 * tui/tui-interp.c: Include "inferior.h".
5239 * varobj.c (varobj_create): Use inferior_thread.
5240 (value_of_root_1): Use find_thread_global_id instead of
5241 global_thread_id_to_ptid.
5242
5243 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5244
5245 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5246 possible.
5247 (regcache::write_part): Likewise.
5248 (readable_regcache::cooked_read_part): Update comment.
5249 (readable_regcache::cooked_write_part): Likewise.
5250 * regcache.h: (readable_regcache::read_part): Likewise.
5251 (regcache::write_part): Likewise.
5252
5253 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5254 Dirk Schubert <dirk.schubert@arm.com>
5255
5256 * aarch64-linux-nat.c (post_attach): New.
5257 (aarch64_linux_nat_target::post_attach): Override post_attach to
5258 record the number of hardware debug registers.
5259
5260 2018-06-20 Tom Tromey <tom@tromey.com>
5261
5262 * python/py-param.c (add_setshow_generic): Make parameters const.
5263 (parmpy_init): Update.
5264
5265 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5266
5267 * regcache.h (regcache_cooked_read_ftype): Rename to...
5268 (register_read_ftype): ...this, change type to function_view.
5269 (class reg_buffer) <save>: Remove src parameter.
5270 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5271 parameter non-const in first overload. Remove src parameter in
5272 second overload.
5273 * regcache.c (do_cooked_read): Remove.
5274 (readonly_detached_regcache::readonly_detached_regcache): Make
5275 parameter non-const, adjust call to other constructor.
5276 (reg_buffer::save): Remove src parameter.
5277 * frame.c (do_frame_register_read): Remove.
5278 (frame_save_as_regcache): Use lambda function.
5279 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5280 parameter to ppu2spu_data *.
5281 (ppu2spu_sniffer): Use lambda function.
5282
5283 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5284
5285 * record-full.c (record_full_target::insert_breakpoint): Remove
5286 "struct" keyword, add const.
5287
5288 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5289
5290 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5291 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5292 * configure.ac: Remove AC_PREREQ, add missing quoting.
5293 * gnulib/configure.ac: Modernize usage of
5294 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5295 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5296 (AUTOMAKE_VERSION): Bump to 1.15.1.
5297 * configure: Re-generate.
5298 * config.in: Re-generate.
5299 * aclocal.m4: Re-generate.
5300 * gnulib/aclocal.m4: Re-generate.
5301 * gnulib/config.in: Re-generate.
5302 * gnulib/configure: Re-generate.
5303 * gnulib/import/Makefile.in: Re-generate.
5304
5305 2018-06-19 Pedro Alves <palves@redhat.com>
5306
5307 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5308 (lookup_minimal_symbol_by_pc_section): ... here with
5309 gdb_assert_not_reached added.
5310
5311 2018-06-19 Pedro Alves <palves@redhat.com>
5312
5313 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5314 parameter with a block parameter. Compare location's block symbol
5315 with the frame's block instead of addresses.
5316 (skip_inline_frames): Pass the current block instead of the
5317 frame's address. Break out as soon as we determine the frame
5318 should not be skipped.
5319
5320 2018-06-18 Tom Tromey <tom@tromey.com>
5321
5322 * solib-aix.c (solib_aix_get_section_offsets): Return
5323 unique_xmalloc_ptr.
5324 (solib_aix_solib_create_inferior_hook): Update.
5325
5326 2018-06-18 Tom Tromey <tom@tromey.com>
5327
5328 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5329
5330 2018-06-18 Tom Tromey <tom@tromey.com>
5331
5332 * solib-frv.c (frv_relocate_main_executable): Use
5333 unique_xmalloc_ptr.
5334 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5335 unique_xmalloc_ptr.
5336
5337 2018-06-18 Tom Tromey <tom@tromey.com>
5338
5339 * objfiles.h (inhibit_section_map_updates): Update.
5340 (resume_section_map_updates, resume_section_map_updates_cleanup):
5341 Remove.
5342 * solib-svr4.c (svr4_handle_solib_event): Update.
5343 * objfiles.c (inhibit_section_map_updates): Return
5344 scoped_restore_tmpl<int>.
5345 (resume_section_map_updates, resume_section_map_updates_cleanup):
5346 Remove.
5347
5348 2018-06-18 Tom Tromey <tom@tromey.com>
5349
5350 * valprint.h (read_string): Update.
5351 * valprint.c (read_string): Change type of "buffer".
5352 (val_print_string): Update.
5353 * python/py-value.c (valpy_string): Update.
5354 * language.h (struct language_defn) <la_get_string>: Change
5355 type of "buffer".
5356 (default_get_string, c_get_string): Update.
5357 * language.c (default_get_string): Change type of "buffer".
5358 * guile/scm-value.c (gdbscm_value_to_string): Update.
5359 * c-lang.c (c_get_string): Change type of "buffer".
5360
5361 2018-06-18 Tom Tromey <tom@tromey.com>
5362
5363 * ser-mingw.c (struct pipe_state_destroyer): New.
5364 (pipe_state_up): New typedef.
5365 (cleanup_pipe_state): Remove.
5366 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5367
5368 2018-06-18 Tom Tromey <tom@tromey.com>
5369
5370 * rust-lang.h (rust_yyerror): Don't declare.
5371 * rust-lang.c (rust_language_defn): Update.
5372 * rust-exp.y (yyerror): Now static.
5373 * parse.c (parse_exp_in_context_1): Update.
5374 * p-lang.h (p_yyerror): Don't declare.
5375 * p-lang.c (p_language_defn): Update.
5376 * p-exp.y (yyerror): Now static.
5377 * opencl-lang.c (opencl_language_defn): Update.
5378 * objc-lang.c (objc_language_defn): Update.
5379 * m2-lang.h (m2_yyerror): Don't declare.
5380 * m2-lang.c (m2_language_defn): Update.
5381 * m2-exp.y (yyerror): Now static.
5382 * language.h (struct language_defn) <la_error>: Remove.
5383 * language.c (unk_lang_error): Remove.
5384 (unknown_language_defn, auto_language_defn): Remove.
5385 * go-lang.h (go_yyerror): Don't declare.
5386 * go-lang.c (go_language_defn): Update.
5387 * go-exp.y (yyerror): Now static.
5388 * f-lang.h (f_yyerror): Don't declare.
5389 * f-lang.c (f_language_defn): Update.
5390 * f-exp.y (yyerror): Now static.
5391 * d-lang.h (d_yyerror): Don't declare.
5392 * d-lang.c (d_language_defn): Update.
5393 * d-exp.y (yyerror): Now static.
5394 * c-lang.h (c_yyerror): Don't declare.
5395 * c-lang.c (c_language_defn, cplus_language_defn)
5396 (asm_language_defn, minimal_language_defn): Update.
5397 * c-exp.y (yyerror): Now static.
5398 * ada-lang.h (ada_yyerror): Don't declare.
5399 * ada-lang.c (ada_language_defn): Update.
5400 * ada-exp.y (yyerror): Now static.
5401
5402 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5403
5404 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5405 (store_sveregs_to_thread): Likewise.
5406 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5407 (aarch64_linux_store_inferior_registers): Likewise.
5408 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5409 function.
5410 (aarch64_sve_regs_copy_to_regcache): Likewise.
5411 (aarch64_sve_regs_copy_from_regcache): Likewise.
5412 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5413 declaration.
5414 (aarch64_sve_regs_copy_to_regcache): Likewise.
5415 (aarch64_sve_regs_copy_from_regcache): Likewise.
5416 (sve_context): Structure from Linux headers.
5417 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5418 (SVE_SIG_ZREG_SIZE): Likewise.
5419 (SVE_SIG_PREG_SIZE): Likewise.
5420 (SVE_SIG_FFR_SIZE): Likewise.
5421 (SVE_SIG_REGS_OFFSET): Likewise.
5422 (SVE_SIG_ZREGS_OFFSET): Likewise.
5423 (SVE_SIG_ZREG_OFFSET): Likewise.
5424 (SVE_SIG_ZREGS_SIZE): Likewise.
5425 (SVE_SIG_PREGS_OFFSET): Likewise.
5426 (SVE_SIG_PREG_OFFSET): Likewise.
5427 (SVE_SIG_PREGS_SIZE): Likewise.
5428 (SVE_SIG_FFR_OFFSET): Likewise.
5429 (SVE_SIG_REGS_SIZE): Likewise.
5430 (SVE_SIG_CONTEXT_SIZE): Likewise.
5431 (SVE_PT_REGS_MASK): Likewise.
5432 (SVE_PT_REGS_FPSIMD): Likewise.
5433 (SVE_PT_REGS_SVE): Likewise.
5434 (SVE_PT_VL_INHERIT): Likewise.
5435 (SVE_PT_VL_ONEXEC): Likewise.
5436 (SVE_PT_REGS_OFFSET): Likewise.
5437 (SVE_PT_FPSIMD_OFFSET): Likewise.
5438 (SVE_PT_FPSIMD_SIZE): Likewise.
5439 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5440 (SVE_PT_SVE_PREG_SIZE): Likewise.
5441 (SVE_PT_SVE_FFR_SIZE): Likewise.
5442 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5443 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5444 (__SVE_SIG_TO_PT): Likewise.
5445 (SVE_PT_SVE_OFFSET): Likewise.
5446 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5447 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5448 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5449 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5450 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5451 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5452 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5453 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5454 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5455 (SVE_PT_SVE_SIZE): Likewise.
5456 (SVE_PT_SIZE): Likewise.
5457 (HAS_SVE_STATE): New define.
5458
5459 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5460
5461 * nat/aarch64-sve-linux-sigcontext.h: New file.
5462 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5463 new files.
5464 (SVE_VQ_MIN): Likewise.
5465 (SVE_VQ_MAX): Likewise.
5466 (SVE_VL_MIN): Likewise.
5467 (SVE_VL_MAX): Likewise.
5468 (SVE_NUM_ZREGS): Likewise.
5469 (SVE_NUM_PREGS): Likewise.
5470 (sve_vl_valid): Likewise.
5471 (struct user_sve_header): Likewise.
5472
5473 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5474 Richard Bunt <Richard.Bunt@arm.com>
5475
5476 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5477 was requested by GDB.
5478
5479 2018-06-15 Tom de Vries <tdevries@suse.de>
5480
5481 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5482
5483 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5484
5485 * gnulib/update-gnulib.sh: Print expected versions of
5486 autoconf/aclocal.
5487
5488 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5489
5490 * arch-utils.c (default_type_align): Use type_length_units.
5491 * gdbtypes.c (type_align): Use type_length_units.
5492
5493 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5494
5495 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5496 of 'define' command.
5497
5498 2018-06-14 Tom de Vries <tdevries@suse.de>
5499
5500 PR cli/22573
5501 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5502 get_no_prettyformat_print_options.
5503
5504 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5505
5506 * sparc-nat.h: Include target.h.
5507 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5508 <fetch_registers>: Remove this argument in function call.
5509 <store_registers>: Remove this argument in function call, remove
5510 extra semicolon.
5511 <low_forget_process>: Call sparc64_forget_process instead of
5512 sparc_forget_process.
5513
5514 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5515
5516 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5517 (procfs_target::make_corefile_notes): Adjust to new
5518 target_read_alloc return type.
5519
5520 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5521 Stephen Roberts <stephen.roberts@arm.com>
5522
5523 PR gdb/22882
5524 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5525 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5526 Move should_notify_stop local into more inner scope.
5527
5528 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5529 Stephen Roberts <stephen.roberts@arm.com>
5530
5531 PR gdb/22882
5532 * infrun.c (resume_1): Add call to mark_async_event_handler.
5533
5534 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5535
5536 * infrun.c (do_target_wait): Change old version of $pc printed.
5537
5538 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5539
5540 * dwarf2read.c (read_index_from_section): Rename to...
5541 (read_gdb_index_from_section): ... this, update all callers.
5542 (dwarf2_read_index): Rename to...
5543 (dwarf2_read_gdb_index): ... this, update all callers.
5544
5545 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5546
5547 * gdb/hppa-linux-nat.c
5548 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5549 hppa_linux_nat_target::fetch_registers.
5550
5551 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5552
5553 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5554 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5555 (AARCH64_DWARF_SVE_FFR): Likewise.
5556 (AARCH64_DWARF_SVE_P0): Likewise.
5557 (AARCH64_DWARF_SVE_Z0): Likewise.
5558
5559 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5560
5561 * common/common-regcache.h (raw_compare): New function.
5562 * regcache.c (regcache::raw_compare): Likewise.
5563 * regcache.h (regcache::raw_compare): New declaration.
5564
5565 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5566
5567 * common/common-regcache.h (reg_buffer_common): New structure.
5568 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5569 (reg_buffer::raw_supply): Likewise.
5570 (reg_buffer::raw_supply_integer): Likewise.
5571 (reg_buffer::raw_supply_zeroed): Likewise.
5572 (reg_buffer::raw_collect): Likewise.
5573 (reg_buffer::raw_collect_integer): Likewise.
5574 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5575 (reg_buffer::raw_supply): Likewise.
5576 (reg_buffer::raw_supply_integer): Likewise.
5577 (reg_buffer::raw_supply_zeroed): Likewise.
5578 (reg_buffer::raw_collect): Likewise.
5579 (reg_buffer::raw_collect_integer): Likewise.
5580
5581 2018-06-10 Tom Tromey <tom@tromey.com>
5582
5583 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5584 (class remote_state) <stop_reply_queue>: Now std::vector.
5585 (remote_state::~remote_state)
5586 (remote_target::stop_reply_queue_length): Update.
5587 (struct queue_iter_param, remove_child_of_pending_fork)
5588 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5589 (check_pending_event_prevents_wildcard_vcont_callback)
5590 (remove_stop_reply_for_inferior)
5591 (remove_stop_reply_of_remote_state)
5592 (remote_notif_remove_once_on_match)
5593 (stop_reply_match_ptid_and_ws)
5594 (remote_kill_child_of_pending_fork): Remove.
5595 (remote_target::remove_new_fork_children)
5596 (remote_target::check_pending_events_prevent_wildcard_vcont)
5597 (remote_target::discard_pending_stop_replies)
5598 (remote_target::discard_pending_stop_replies_in_queue)
5599 (remote_target::remote_notif_remove_queued_reply)
5600 (remote_target::queued_stop_reply)
5601 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5602 (remote_target::wait, remote_target::kill_new_fork_children)
5603 (remote_target::async): Update.
5604
5605 2018-06-10 Tom Tromey <tom@tromey.com>
5606
5607 * record-full.c (record_full_arch_list_cleanups): Remove.
5608 (record_full_message): Use try/catch.
5609 (record_full_wait_cleanups): Remove.
5610 (record_full_wait_1): Use try/catch.
5611 (record_full_restore): Likewise.
5612
5613 2018-06-10 Tom Tromey <tom@tromey.com>
5614
5615 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5616 declare VEC. Add constructor.
5617 <in_target_beneath>: Now bool.
5618 (record_full_breakpoints): Now a std::vector, static.
5619 (record_full_sync_record_breakpoints)
5620 (record_full_init_record_breakpoints)
5621 (record_full_target::insert_breakpoint)
5622 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5623
5624 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5625
5626 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5627 * serial.c (serial_interface_lookup): Remove struct keyword.
5628
5629 2018-06-10 Tom Tromey <tom@tromey.com>
5630
5631 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5632 method.
5633 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5634 a method.
5635 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5636 method.
5637 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5638 "beneath" as a method.
5639 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5640 Use "beneath" as a method.
5641
5642 2018-06-10 Tom Tromey <tom@tromey.com>
5643
5644 * tracefile.c (struct trace_file_writer_deleter): New.
5645 <operator()>: Rename from trace_file_writer_xfree.
5646 (trace_file_writer_up): New typedef.
5647 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5648
5649 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5650
5651 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5652 <m_registers, m_register_status>: Change type to
5653 std::unique_ptr.
5654 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5655 XCNEWVEC.
5656
5657 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5658
5659 * common/common-regcache.h (enum register_status): Add
5660 underlying type "signed char".
5661 * regcache.h (reg_buffer) <m_register_status>: Change type to
5662 register_status *.
5663 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5664 register_status instead of signed char.
5665 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5666 (reg_buffer::get_register_status): Remove cast.
5667 (readable_regcache::raw_read): Remove cast.
5668 (readable_regcache::cooked_read): Remove cast.
5669
5670 2018-06-09 Tom Tromey <tom@tromey.com>
5671
5672 * source.c (reverse_search_command, forward_search_command): Use
5673 scoped_fd.
5674
5675 2018-06-09 Tom Tromey <tom@tromey.com>
5676
5677 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5678 (serial_ops_list): Now static, std::vector.
5679 (serial_interface_lookup, serial_add_interface): Update.
5680
5681 2018-06-09 Tom Tromey <tom@tromey.com>
5682
5683 * dwarf2read.c (process_cu_includes): Update.
5684 (process_full_comp_unit): Update.
5685 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5686 std::vector.
5687
5688 2018-06-08 Paul Koning <paul_koning@dell.com>
5689
5690 PR gdb/23252
5691
5692 * python/python.c (do_start_initialization):
5693 Avoid call to internal Python API.
5694 (init__gdb_module): New function.
5695
5696 2018-06-08 Gary Benson <gbenson@redhat.com>
5697
5698 * linux-thread-db.c (valprint.h): New include.
5699 (struct check_thread_db_info): New structure.
5700 (check_thread_db_on_load, tdb_testinfo): New static globals.
5701 (check_thread_db, check_thread_db_callback): New functions.
5702 (try_thread_db_load_1): Run integrity checks if requested.
5703 (maintenance_check_libthread_db): New function.
5704 (_initialize_thread_db): Register "maint check libthread-db"
5705 and "maint set/show check-libthread-db".
5706 * NEWS: Mention the above new commands.
5707
5708 2018-06-08 Tom Tromey <tom@tromey.com>
5709
5710 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5711 now a method.
5712
5713 2018-06-08 Tom Tromey <tom@tromey.com>
5714
5715 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5716
5717 2018-06-08 Tom Tromey <tom@tromey.com>
5718
5719 * common/btrace-common.h (struct btrace_data): Add constructor,
5720 destructor, move assignment operator.
5721 <empty, clear, fini>: New methods.
5722 <format>: Initialize.
5723 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5724 (btrace_data_empty): Don't declare.
5725 * common/btrace-common.c (btrace_data_init): Remove.
5726 (btrace_data::fini): Rename from btrace_data_fini.
5727 (btrace_data::empty): Rename from btrace_data_empty.
5728 (btrace_data::clear): Rename from btrace_data_clear. Return
5729 bool.
5730 * btrace.h (make_cleanup_btrace_data): Don't declare.
5731 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5732 (parse_xml_btrace): Update.
5733 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5734 (maint_btrace_clear_packet_history_cmd): Update.
5735
5736 2018-06-07 Pedro Alves <palves@redhat.com>
5737
5738 * target.h (target_ops) <beneath>: Now a method. All references
5739 updated.
5740 (class target_stack): New.
5741 * target.c (g_target_stack): New.
5742 (g_current_top_target): Delete.
5743 (current_top_target): Get the top target out of g_target_stack.
5744 (target_stack::push, target_stack::unpush): New.
5745 (push_target, unpush_target): Reimplement.
5746 (target_is_pushed): Reimplement in terms of g_target_stack.
5747 (target_ops::beneath, target_stack::find_beneath): New.
5748
5749 2018-06-07 Pedro Alves <palves@redhat.com>
5750
5751 * target.h (find_target_beneath): Delete declaration.
5752 * target.c (find_target_beneath): Delete definition.
5753 * aix-thread.c: All callers of find_target_beneath adjusted to
5754 call target_ops::beneath instead.
5755 * bsd-uthread.c: Likewise.
5756 * linux-thread-db.c: Likewise.
5757 * ravenscar-thread.c: Likewise.
5758 * sol-thread.c: Likewise.
5759 * spu-multiarch.c: Likewise.
5760
5761 2018-06-07 Pedro Alves <palves@redhat.com>
5762
5763 * target.h (target_ops) <beneath>: Now a method. All references
5764 updated.
5765 (target_ops) <m_beneath>: New.
5766 * target.c (target_ops::beneath): New.
5767 * corelow.c: Adjust all references to target_ops::beneath.
5768 * linux-thread-db.c: Likewise.
5769 * make-target-delegates: Likewise.
5770 * record-btrace.c: Likewise.
5771 * record-full.c: Likewise.
5772 * remote.c: Likewise.
5773 * target.c: Likewise.
5774 * target-delegates.c: Regenerate.
5775
5776 2018-06-07 Pedro Alves <palves@redhat.com>
5777
5778 * target.h (target_stack): Delete.
5779 (current_top_target): Declare function.
5780 * target.c (target_stack): Delete.
5781 (g_current_top_target): New.
5782 (current_top_target): New function.
5783 * auxv.c: Use current_top_target instead of target_stack
5784 throughout.
5785 * avr-tdep.c: Likewise.
5786 * breakpoint.c: Likewise.
5787 * corefile.c: Likewise.
5788 * elfread.c: Likewise.
5789 * eval.c: Likewise.
5790 * exceptions.c: Likewise.
5791 * frame.c: Likewise.
5792 * gdbarch-selftests.c: Likewise.
5793 * gnu-v3-abi.c: Likewise.
5794 * ia64-tdep.c: Likewise.
5795 * ia64-vms-tdep.c: Likewise.
5796 * infcall.c: Likewise.
5797 * infcmd.c: Likewise.
5798 * infrun.c: Likewise.
5799 * linespec.c: Likewise.
5800 * linux-tdep.c: Likewise.
5801 * minsyms.c: Likewise.
5802 * ppc-linux-nat.c: Likewise.
5803 * ppc-linux-tdep.c: Likewise.
5804 * procfs.c: Likewise.
5805 * regcache.c: Likewise.
5806 * remote.c: Likewise.
5807 * rs6000-tdep.c: Likewise.
5808 * s390-linux-nat.c: Likewise.
5809 * s390-tdep.c: Likewise.
5810 * solib-aix.c: Likewise.
5811 * solib-darwin.c: Likewise.
5812 * solib-dsbt.c: Likewise.
5813 * solib-spu.c: Likewise.
5814 * solib-svr4.c: Likewise.
5815 * solib-target.c: Likewise.
5816 * sparc-tdep.c: Likewise.
5817 * sparc64-tdep.c: Likewise.
5818 * spu-tdep.c: Likewise.
5819 * symfile.c: Likewise.
5820 * symtab.c: Likewise.
5821 * target-descriptions.c: Likewise.
5822 * target-memory.c: Likewise.
5823 * target.c: Likewise.
5824 * target.h: Likewise.
5825 * tracefile-tfile.c: Likewise.
5826 * tracepoint.c: Likewise.
5827 * valops.c: Likewise.
5828 * valprint.c: Likewise.
5829 * value.c: Likewise.
5830 * windows-tdep.c: Likewise.
5831 * mi/mi-main.c: Likewise.
5832
5833 2018-06-07 Tom Tromey <tom@tromey.com>
5834
5835 * valprint.h (build_address_symbolic): Declare.
5836 * printcmd.c (print_address_symbolic): Update.
5837 (build_address_symbolic): Change "name" and "filename" to
5838 std::string.
5839 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5840 Update.
5841 * defs.h (build_address_symbolic): Remove declaration.
5842
5843 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5844
5845 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5846 (aarch64_vnv_type): Add function.
5847 (aarch64_pseudo_register_name): Add V regs for SVE.
5848 (aarch64_pseudo_register_type): Likewise.
5849 (aarch64_pseudo_register_reggroup_p): Likewise.
5850 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5851 (aarch64_pseudo_read_value): Add V regs for SVE.
5852 (aarch64_pseudo_write_2): Use V0 offset for SVE
5853 (aarch64_pseudo_write): Add V regs for SVE.
5854 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5855
5856 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5857
5858 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5859 (sve_vl_from_vq): Likewise.
5860
5861 2018-06-05 Tom Tromey <tom@tromey.com>
5862
5863 * cli/cli-cmds.c (show_version): Update.
5864 * top.c (print_gdb_version): Add "interactive" parameter.
5865 Update.
5866 * main.c (captured_main_1): Update.
5867 * top.h (print_gdb_version): Add "interactive" parameter and a
5868 comment.
5869
5870 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5871
5872 * common/enum-flags.h: Add trailing semicolon to example in
5873 comment.
5874
5875 2018-06-05 Tom Tromey <tom@tromey.com>
5876
5877 PR cli/12326:
5878 * NEWS: Add entry about pager.
5879 * utils.c (pagination_disabled_for_command): New global.
5880 (prompt_for_continue): Allow "c" response to prompt.
5881 (reinitialize_more_filter): Clear
5882 pagination_disabled_for_command.
5883 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5884
5885 2018-06-04 Tom Tromey <tom@tromey.com>
5886
5887 * ada-lang.h (ada_lookup_symbol_list): Update.
5888 * ada-lang.c (resolve_subexp): Update.
5889 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5890 parameter.
5891 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5892 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5893 results parameter to std::vector.
5894 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5895 Update.
5896 * ada-exp.y (block_lookup): Update.
5897 (select_possible_type_sym): Change type of syms. Remove nsyms
5898 parameter.
5899 (write_var_or_type, write_name_assoc): Update.
5900
5901 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5902
5903 * windows-nat.c (windows_nat_target::xfer_partial): Return
5904 TARGET_XFER_E_IO if we need to delegate to the target beneath
5905 but BENEATH is NULL.
5906
5907 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5908
5909 * Makefile.in (config.status): Add configure.nat as a
5910 dependency.
5911
5912 2018-06-04 Tom Tromey <tom@tromey.com>
5913
5914 * cp-name-parser.y (cpname_state): Add method declarations.
5915 (HANDLE_QUAL): Update.
5916 (cpname_state::d_grab, cpname_state::fill_comp)
5917 (cpname_state::make_operator, cpname_state::make_dtor)
5918 (cpname_state::make_builtin_type, cpname_state::make_name)
5919 (cpname_state::d_qualify, cpname_state::d_int_type)
5920 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5921 (%union): Move earlier.
5922
5923 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5924
5925 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5926
5927 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5928
5929 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5930 (aarch64_pseudo_write_1): Likewise.
5931 (aarch64_pseudo_read_value): Use helper.
5932 (aarch64_pseudo_write): Likewise.
5933
5934 2018-06-04 Pedro Alves <palves@redhat.com>
5935
5936 * darwin-nat.c (darwin_ops): Delete.
5937 (darwin_attach_pid): Use get_native_target.
5938
5939 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5940
5941 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5942 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5943
5944 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5945
5946 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5947 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5948 (aarch64_gdbarch_init): Check for SVE.
5949 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5950
5951 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5952
5953 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5954 * aarch64-tdep.h (aarch64_read_description): Likewise.
5955 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5956 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5957 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5958 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5959 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5960
5961 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5962
5963 * value.c (value_fetch_lazy_bitfield): New.
5964 (value_fetch_lazy_memory): New.
5965 (value_fetch_lazy_register): New.
5966 (value_fetch_lazy): Factor out to smaller functions.
5967
5968 2018-06-01 Tom Tromey <tom@tromey.com>
5969
5970 * cp-name-parser.y (backslashable, represented): Now const.
5971
5972 2018-06-01 Tom Tromey <tom@tromey.com>
5973
5974 * cp-name-parser.y: Include parser-defs.h.
5975 (parser_fprintf): Remove declaration.
5976
5977 2018-06-01 Tom Tromey <tom@tromey.com>
5978
5979 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5980 %parse-param.
5981 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5982 (global_result): Remove globals.
5983 (struct cpname_state): New.
5984 (yyparse): Don't declare.
5985 (yylex, yyerror): Move declarations after %union.
5986 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5987 (make_name): Add state parameter.
5988 Update all callers.
5989 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5990 parameter.
5991 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5992 Update.
5993 (yylex): Add lvalp, state parameters.
5994 (yyerror): Add state parameter.
5995 (cp_demangled_name_to_comp): Update.
5996
5997 2018-06-01 Tom Tromey <tom@tromey.com>
5998
5999 * cp-name-parser.y (parser_fprintf): Declare.
6000 (GDB_YY_REMAP_PREFIX): Define.
6001 Include yy-remap.h. Don't redefine yy* identifiers.
6002
6003 2018-06-01 Tom Tromey <tom@tromey.com>
6004
6005 * python/py-type.c (typy_legacy_template_argument): Update.
6006 * cp-support.h (cp_demangled_name_to_comp): Update.
6007 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6008 parameter to be a "std::string *".
6009 (main): Update.
6010
6011 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6012
6013 * ada-lex.l: Include "diagnostics.h" instead of
6014 "common/diagnostics.h".
6015 * unittests/environ-selftests.c: Likewise.
6016 * common/diagnostics.h: Moved to ../include.
6017
6018 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6019
6020 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6021 to language_mode_manual while calling breakpoint_re_set_one.
6022
6023 2018-06-01 Tom Tromey <tom@tromey.com>
6024
6025 * valops.c (value_cast_structs, destructor_name_p): Update.
6026 * symtab.c (gdb_mangle_name): Update.
6027 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6028 Update.
6029 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6030 (pascal_object_print_value_fields, pascal_object_print_value):
6031 Update.
6032 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6033 * linespec.c (find_methods): Update.
6034 * gdbtypes.h (type_name_no_tag): Remove.
6035 (type_name_or_error): Rename from type_name_no_tag_or_error.
6036 * gdbtypes.c (type_name_no_tag): Remove.
6037 (type_name_or_error): Rename from type_name_no_tag_or_error.
6038 (lookup_struct_elt_type, check_typedef): Update.
6039 * expprint.c (print_subexp_standard): Update.
6040 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6041 * d-namespace.c (d_lookup_nested_symbol): Update.
6042 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6043 (cp_print_class_member): Update.
6044 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6045 * completer.c (add_struct_fields): Update.
6046 * c-typeprint.c (cp_type_print_derivation_info)
6047 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6048 Update.
6049 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6050 (ada_prefer_type, ada_is_exception_sym): Update.
6051
6052 2018-06-01 Tom Tromey <tom@tromey.com>
6053
6054 * valops.c (enum_constant_from_type, value_namespace_elt)
6055 (value_maybe_namespace_elt): Update.
6056 * valarith.c (find_size_for_pointer_math): Update.
6057 * target-descriptions.c (make_gdb_type): Update.
6058 * symmisc.c (print_symbol): Update.
6059 * stabsread.c (define_symbol, read_type)
6060 (complain_about_struct_wipeout, add_undefined_type)
6061 (cleanup_undefined_types_1): Update.
6062 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6063 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6064 (rust_internal_print_type, rust_composite_type)
6065 (rust_evaluate_funcall, rust_evaluate_subexp)
6066 (rust_inclusive_range_type_p): Update.
6067 * python/py-type.c (typy_get_tag): Update.
6068 * p-typeprint.c (pascal_type_print_base): Update.
6069 * mdebugread.c (parse_symbol, parse_type): Update.
6070 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6071 Update.
6072 * guile/scm-type.c (gdbscm_type_tag): Update.
6073 * go-lang.c (sixg_string_p): Update.
6074 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6075 Update.
6076 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6077 (TYPE_TAG_NAME): Remove.
6078 * gdbtypes.c (type_name_no_tag): Simplify.
6079 (check_typedef, check_types_equal, recursive_dump_type)
6080 (copy_type_recursive, arch_composite_type): Update.
6081 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6082 in summary mode when needed.
6083 * eval.c (evaluate_funcall): Update.
6084 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6085 (process_structure_scope, read_enumeration_type)
6086 (read_namespace_type, read_module_type, determine_prefix): Update.
6087 * cp-support.c (inspect_type): Update.
6088 * coffread.c (process_coff_symbol, decode_base_type): Update.
6089 * c-varobj.c (c_is_path_expr_parent): Update.
6090 * c-typeprint.c (c_type_print_base_struct_union): Update.
6091 (c_type_print_base_1): Update. Print struct/class/union/enum in
6092 summary when using C language.
6093 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6094 (gen_maybe_namespace_elt): Update.
6095 * ada-lang.c (ada_type_name): Simplify.
6096 (empty_record, ada_template_to_fixed_record_type_1)
6097 (template_to_static_fixed_type)
6098 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6099
6100 2018-06-01 Tom Tromey <tom@tromey.com>
6101
6102 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6103 c_print_type.
6104 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6105 (c_print_type): Update.
6106 (c_print_type): New overload.
6107 (c_type_print_varspec_prefix, c_type_print_args)
6108 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6109 (c_type_print_base_struct_union, c_type_print_base_1)
6110 (cp_type_print_method_args): Add "language" parameter.
6111 (c_type_print_base): Update.
6112 * c-lang.h (c_print_type): Add new overload.
6113
6114 2018-06-01 Tom Tromey <tom@tromey.com>
6115
6116 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6117 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6118
6119 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6120
6121 * aarch64-tdep.c (aarch64_sve_register_names): New const
6122 var.
6123 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6124 (AARCH64_SVE_Z_REGS_NUM): New define.
6125 (AARCH64_SVE_P_REGS_NUM): Likewise.
6126 (AARCH64_SVE_NUM_REGS): Likewise.
6127
6128 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6129
6130 * nat/linux-ptrace.h [__alpha__]
6131 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6132 definitions.
6133
6134 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6135
6136 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6137 the endianness selected.
6138 * NEWS: Document `set endian auto' mode operation update.
6139
6140 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6141
6142 * Makefile.in: Add new header.
6143 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6144 (sve_vl_from_vg): Likewise.
6145 (sve_vq_from_vl): Likewise.
6146 (sve_vl_from_vq): Likewise.
6147 (sve_vq_from_vg): Likewise.
6148 (sve_vg_from_vq): Likewise.
6149 * configure.nat: Add new c file.
6150 * nat/aarch64-sve-linux-ptrace.c: New file.
6151 * nat/aarch64-sve-linux-ptrace.h: New file.
6152
6153 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6154
6155 * aarch64-linux-nat.c (aarch64_linux_read_description):
6156 Add parmeter zero.
6157 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6158 Likewise.
6159 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6160 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6161 (aarch64_gdbarch_init): Add parmeter zero.
6162 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6163 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6164 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6165 parmeter.
6166 * doc/gdb.texinfo: Describe SVE feature
6167 * features/aarch64-sve.c: New file.
6168
6169 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6170
6171 PR gdb/23210
6172 * gdbarch.sh (significant_addr_bit): Default to zero when
6173 not set by target architecture.
6174 * gdbarch.c: Re-generated.
6175 * utils.c (address_significant): Update.
6176
6177 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6178
6179 * stack.c (func_command): Remove trailing newline in call to error.
6180
6181 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6182
6183 * regcache.h (regcache_raw_collect): Remove, update callers to
6184 use regcache::raw_collect.
6185 * regcache.c (regcache_raw_collect): Remove.
6186
6187 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6188
6189 * regcache.h (regcache_raw_supply): Remove, update callers to
6190 use detached_regcache::raw_supply.
6191 * regcache.c (regcache_raw_supply): Remove.
6192
6193 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6194
6195 * regcache.h (regcache_cooked_write_part): Remove, update
6196 callers to use regcache::cooked_write_part.
6197 * regcache.c (regcache_cooked_write_part): Remove.
6198
6199 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6200
6201 * regcache.h (regcache_cooked_read_part): Remove, update callers
6202 to use readable_regcache::cooked_read_part.
6203 * regcache.c (regcache_cooked_read_part): Remove.
6204
6205 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6206
6207 * regcache.h (regcache_cooked_read_value): Remove, update
6208 callers to use readable_regcache::cooked_read_value.
6209 * regcache.c (regcache_cooked_read_value): Remove.
6210
6211 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6212
6213 * regcache.h (regcache_cooked_write): Remove, update callers to
6214 use regcache::cooked_write.
6215 * regcache.c (regcache_cooked_write): Remove.
6216
6217 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6218
6219 * regcache.h (regcache_invalidate): Remove, update callers to
6220 use detached_regcache::invalidate instead.
6221 * regcache.c (regcache_invalidate): Remove.
6222
6223 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6224
6225 * regcache.h (regcache_raw_write_part): Remove, update callers
6226 to use regcache::raw_write_part instead.
6227 * regcache.c (regcache_raw_write_part): Remove.
6228
6229 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6230
6231 * regcache.h (regcache_raw_read_part): Remove, update callers to
6232 use readable_regcache::raw_read_part instead.
6233 * regcache.c (regcache_raw_read_part): Remove.
6234
6235 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6236
6237 * regcache.h (regcache_cooked_read): Remove, update callers to
6238 use readable_regcache::cooked_read instead.
6239 * regcache.c (regcache_cooked_read): Remove.
6240
6241 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6242
6243 * regcache.h (regcache_raw_write): Remove, update callers to use
6244 regcache::raw_write instead.
6245 * regcache.c (regcache_raw_write): Remove.
6246
6247 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6248
6249 * regcache.h (regcache_raw_read): Remove, update callers to use
6250 readable_regcache::raw_read instead.
6251 * regcache.c (regcache_raw_read): Remove.
6252
6253 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6254
6255 * regcache.h (regcache_raw_update): Remove, update callers to
6256 use readable_regcache::raw_update instead.
6257 * regcache.c (regcache_raw_update): Remove.
6258
6259 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6260
6261 * regcache.h (regcache_register_status): Remove, update callers
6262 to use reg_buffer::get_register_status directly instead.
6263 * regcache.c (regcache_register_status): Remove.
6264
6265 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6266
6267 * regcache.h (regcache_get_ptid): Remove, update all callers to
6268 call regcache::ptid instead.
6269 * regcache.c (regcache_get_ptid): Remove.
6270
6271 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6272
6273 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6274
6275 2018-05-30 Pedro Alves <palves@redhat.com>
6276
6277 * common/common-exceptions.h (exception_rethrow): Use
6278 ATTRIBUTE_NORETURN.
6279
6280 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6281
6282 * breakpoint.c (print_solib_event, check_status_catch_solib):
6283 Remove struct keyword in range-based for loops.
6284 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6285 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6286 Likewise.
6287 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6288 Likewise.
6289 * symfile.c (addr_info_make_relative): Likewise.
6290 * thread.c (value_in_thread_stack_temporaries): Likewise.
6291
6292 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6293
6294 PR gdb/16841
6295 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6296 aggregate type to get its real type before accessing it.
6297
6298 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6299
6300 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6301 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6302 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6303 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6304 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6305 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6306 * printcmd.c (info_address_command): Likewise.
6307
6308 2018-05-29 Tom Tromey <tom@tromey.com>
6309
6310 * windows-nat.c (handle_exception): Update fall-through comment.
6311
6312 2018-05-29 Tom Tromey <tom@tromey.com>
6313
6314 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6315 (struct program_space) <added_solibs>: Now a std::vector.
6316 * breakpoint.c (print_solib_event): Update.
6317 (check_status_catch_solib): Update.
6318 * progspace.c (clear_program_space_solib_cache): Update.
6319 * solib.c (update_solib_list): Update.
6320
6321 2018-05-29 Tom Tromey <tom@tromey.com>
6322
6323 * python/py-type.c (typy_richcompare): Update.
6324 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6325 * gdbtypes.h (types_deeply_equal): Return bool.
6326 (types_equal): Likewise.
6327 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6328 declare VEC.
6329 (check_types_equal): Change worklist to std::vector. Return
6330 bool.
6331 (struct type_equality_entry): Add constructor.
6332 (compare_maybe_null_strings): Return bool.
6333 (check_types_worklist): Return bool. Change worklist to
6334 std::vector.
6335 (types_deeply_equal): Use std::vector.
6336 (types_equal): Return bool.
6337 (compare_maybe_null_strings): Simplify.
6338
6339 2018-05-29 Tom Tromey <tom@tromey.com>
6340
6341 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6342
6343 2018-05-29 Tom Tromey <tom@tromey.com>
6344
6345 * objc-lang.h: Don't include cp-support.h.
6346 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6347 declare VEC.
6348
6349 2018-05-27 Tom Tromey <tom@tromey.com>
6350
6351 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6352
6353 2018-05-25 Tom Tromey <tom@tromey.com>
6354
6355 * value.c (value::location): Initialize.
6356
6357 2018-05-25 Tom Tromey <tom@tromey.com>
6358
6359 * dbxread.c (init_bincl_list): Remove.
6360 (bincl_list): Now a std::vector.
6361 (bincls_allocated, next_bincl): Remove.
6362 (free_bincl_list, do_free_bincl_list_cleanup)
6363 (make_cleanup_free_bincl_list): Remove.
6364 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6365 unique_xmalloc_ptr.
6366 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6367 (struct header_file_location): Add constructor.
6368 (add_bincl_to_list): Remove.
6369
6370 2018-05-25 Tom Tromey <tom@tromey.com>
6371
6372 * tui/tui.c (tui_enable): Update.
6373 * mi/mi-interp.c (mi_interp::init): Update.
6374 * interps.h (class interp) <name>: New method.
6375 <m_name>: Rename from name.
6376 (~scoped_restore_interp): Update.
6377 * interps.c (interp::interp): Update.
6378 (interp_add, interp_set, interp_lookup_existing)
6379 (current_interp_named_p): Update.
6380
6381 2018-05-25 Tom Tromey <tom@tromey.com>
6382
6383 * interps.c (interp_name): Remove.
6384 * mi/mi-interp.c (mi_interp::init): Update.
6385 * interps.h (interp_name): Remove.
6386 (~scoped_restore_interp): Update.
6387 * tui/tui.c (tui_enable): Update.
6388
6389 2018-05-25 Tom Tromey <tom@tromey.com>
6390
6391 * utils.c (fputs_maybe_filtered): Update.
6392 * linespec.c (decode_line_full): Update.
6393 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6394 (mi_print_breakpoint_for_event, mi_solib_loaded)
6395 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6396 (mi_user_selected_context_changed): Update.
6397 * mi/mi-main.c (mi_execute_command): Update.
6398 * cli/cli-script.c (execute_control_command): Update.
6399 * python/python.c (execute_gdb_command): Update.
6400 * solib.c (info_sharedlibrary_command): Update.
6401 * interps.c (interp_ui_out): Remove.
6402 * interps.h (interp_ui_out): Remove.
6403
6404 2018-05-25 Tom Tromey <tom@tromey.com>
6405
6406 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6407 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6408 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6409
6410 2018-05-25 Tom Tromey <tom@tromey.com>
6411
6412 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6413 * interps.c (interp_exec): Use scoped_restore.
6414
6415 2018-05-25 Tom Tromey <tom@tromey.com>
6416
6417 * remote.c (remote_target::remote_file_get): Use
6418 gdb::byte_vector.
6419 (remote_target::remote_file_put): Likewise.
6420
6421 2018-05-25 Tom Tromey <tom@tromey.com>
6422
6423 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6424 a std::string.
6425 (get_pe_section_index, add_pe_exported_sym): Update.
6426 (read_pe_exported_syms): Use gdb::def_vector.
6427
6428 2018-05-25 Tom Tromey <tom@tromey.com>
6429
6430 * frame.c (remove_prev_frame): Remove.
6431 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6432
6433 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6434
6435 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6436 Remove prototypes.
6437 * mips-linux-nat.c (supply_fpregset): Always call
6438 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6439 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6440 `mips_fill_fpregset'.
6441 * mips-linux-tdep.c (mips_supply_fpregset)
6442 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6443 (mips_fill_fpregset_wrapper): Remove functions.
6444 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6445 (mips_linux_fpregset): Remove variable.
6446 (mips_linux_iterate_over_regset_sections): Use
6447 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6448 (mips_linux_o32_sigframe_init): Remove comment.
6449
6450 2018-05-25 Pedro Alves <palves@redhat.com>
6451
6452 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6453 (struct readahead_cache, struct packet_reg, struct
6454 remote_arch_state, class remote_state): Move higher up in the
6455 file.
6456 (remote_target::m_remote_state): Now an object instead of a pointer.
6457 (remote_target::get_remote_state): Adjust.
6458
6459 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6460
6461 * stack.c (select_and_print_frame): Delete.
6462 (struct function_bounds): Move struct within function.
6463 (func_command): Most content moved into new function
6464 find_frame_for_function, use new function, print result, add
6465 function comment.
6466 (find_frame_for_function): New function, now returns a result.
6467
6468 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6469
6470 * stack.c (iterate_over_block_arg_vars): Fix comment.
6471 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6472
6473 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6474
6475 PR gdb/23203
6476 * frame.c
6477 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6478 Define.
6479 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6480 Define.
6481 * frame.h (class scoped_restore_selected_frame): New class.
6482 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6483 of any exception, use scoped_restore_selected_frame to restore the
6484 frame instead.
6485
6486 2018-05-24 Pedro Alves <palves@redhat.com>
6487
6488 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6489 override.
6490
6491 2018-05-23 Tom Tromey <tom@tromey.com>
6492
6493 * complaints.c (struct complaints): Remove.
6494 (symfile_complaint_book): Remove.
6495 (series): New global.
6496 (complaint_internal): Update.
6497 (clear_complaints): Update.
6498
6499 2018-05-23 Tom Tromey <tom@tromey.com>
6500
6501 * complaints.c (counters): New global.
6502 (struct complain): Remove.
6503 (struct complaints) <root>: Remove.
6504 (complaint_sentinel): Remove.
6505 (symfile_complaint_book): Update.
6506 (find_complaint) Remove.
6507 (complaint_internal, clear_complaints): Update.
6508
6509 2018-05-23 Tom Tromey <tom@tromey.com>
6510
6511 * complaints.c (struct complain) <file, line>: Remove.
6512 (find_complaint): Remove file, line parameters.
6513 (complaint_internal): Update.
6514
6515 2018-05-23 Tom Tromey <tom@tromey.com>
6516
6517 * complaints.c (vcomplaint): Remove.
6518 (complaint_internal) Merge in contents of vcomplaint.
6519
6520 2018-05-23 Tom Tromey <tom@tromey.com>
6521
6522 * complaints.c (struct complaints) <explanation>: Remove.
6523 (symfile_explanations): Remove.
6524 (symfile_complaint_book): Update.
6525 (vcomplaint): Update.
6526 (struct explanation): Remove.
6527
6528 2018-05-23 Tom Tromey <tom@tromey.com>
6529
6530 * complaints.c (symfile_complaints): Remove.
6531 (complaint_internal): Remove "complaints" parameter.
6532 (clear_complaints, vcomplaint): Remove "c" parameter.
6533 (get_complaints): Remove.
6534 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6535 (dwarf2_debug_line_missing_file_complaint)
6536 (dwarf2_debug_line_missing_end_sequence_complaint)
6537 (dwarf2_complex_location_expr_complaint)
6538 (dwarf2_const_value_length_mismatch_complaint)
6539 (dwarf2_section_buffer_overflow_complaint)
6540 (dwarf2_macro_malformed_definition_complaint)
6541 (dwarf2_invalid_attrib_class_complaint)
6542 (create_addrmap_from_index, dw2_symtab_iter_next)
6543 (dw2_expand_marked_cus)
6544 (dw2_debug_names_iterator::find_vec_in_debug_names)
6545 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6546 (create_debug_type_hash_table, init_cutu_and_read_dies)
6547 (partial_die_parent_scope, add_partial_enumeration)
6548 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6549 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6550 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6551 (create_cus_hash_table, create_dwp_hash_table)
6552 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6553 (dwarf2_rnglists_process, dwarf2_ranges_process)
6554 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6555 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6556 (handle_struct_member_die, process_structure_scope)
6557 (read_array_type, read_common_block, read_module_type)
6558 (read_tag_pointer_type, read_typedef, read_base_type)
6559 (read_subrange_type, load_partial_dies, partial_die_info::read)
6560 (partial_die_info::read, partial_die_info::read)
6561 (partial_die_info::read, read_checked_initial_length_and_offset)
6562 (dwarf2_string_attr, read_formatted_entries)
6563 (dwarf_decode_line_header)
6564 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6565 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6566 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6567 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6568 (get_signatured_type, get_DW_AT_signature_type)
6569 (decode_locdesc, file_file_name, consume_improper_spaces)
6570 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6571 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6572 (dwarf2_symbol_mark_computed, set_die_type)
6573 (read_attribute_value): Update.
6574 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6575 Update.
6576 * dbxread.c (unknown_symtype_complaint)
6577 (lbrac_mismatch_complaint, repeated_header_complaint)
6578 (set_namestring, function_outside_compilation_unit_complaint)
6579 (read_dbx_symtab, process_one_symbol): Update.
6580 * gdbtypes.c (stub_noname_complaint): Update.
6581 * windows-nat.c (handle_unload_dll): Update.
6582 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6583 (decode_base_type): Update.
6584 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6585 (eb_complaint, record_include_begin, record_include_end)
6586 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6587 (process_xcoff_symbol, read_symbol)
6588 (function_outside_compilation_unit_complaint)
6589 (scan_xcoff_symtab): Update.
6590 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6591 * buildsym.c (finish_block_internal, make_blockvector)
6592 (end_symtab_get_static_block, augment_type_symtab): Update.
6593 * dtrace-probe.c (dtrace_process_dof)
6594 (dtrace_static_probe_ops::get_probes): Update.
6595 * complaints.h (struct complaint): Don't declare.
6596 (symfile_complaints): Remove.
6597 (complaint_internal): Remove "complaints" parameter.
6598 (complaint): Likewise.
6599 (clear_complaints): Likewise.
6600 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6601 (reread_symbols): Update.
6602 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6603 (dwarf2_frame_cache, decode_frame_entry): Update.
6604 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6605 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6606 (info_selectors_command): Update.
6607 * macrotab.c (macro_include, check_for_redefinition)
6608 (macro_undef): Update.
6609 * objfiles.c (filter_overlapping_sections): Update.
6610 * stabsread.c (invalid_cpp_abbrev_complaint)
6611 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6612 (define_symbol, error_type, read_type, rs6000_builtin_type)
6613 (stabs_method_name_from_physname, read_member_functions)
6614 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6615 (attach_fields_to_type, complain_about_struct_wipeout)
6616 (read_range_type, read_args, common_block_start)
6617 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6618 Update.
6619 * mdebugread.c (index_complaint, unknown_ext_complaint)
6620 (basic_type_complaint, bad_tag_guess_complaint)
6621 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6622 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6623 (parse_procedure, parse_lines)
6624 (function_outside_compilation_unit_complaint)
6625 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6626 (bad_tag_guess_complaint, reg_value_complaint): Update.
6627 * cp-support.c (demangled_name_complaint): Update.
6628 * macroscope.c (sal_macro_scope): Update.
6629 * dwarf-index-write.c (class debug_names): Update.
6630
6631 2018-05-23 Tom Tromey <tom@tromey.com>
6632
6633 * complaints.c (clear_complaints): Remove "noisy" parameter.
6634 * complaints.h (clear_complaints): Update.
6635 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6636 (reread_symbols): Update.
6637
6638 2018-05-23 Tom Tromey <tom@tromey.com>
6639
6640 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6641 SUBSEQUENT_MESSAGE.
6642 (vcomplaint, clear_complaints): Update.
6643 (symfile_explanations): Remove some messages.
6644
6645 2018-05-23 Tom Tromey <tom@tromey.com>
6646
6647 * complaints.c (internal_complaint): Remove.
6648 * complaints.h (internal_complaint): Remove.
6649
6650 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6651
6652 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6653
6654 2018-05-22 Pedro Alves <palves@redhat.com>
6655
6656 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6657 (remote_fileio_badfd, remote_fileio_return_errno)
6658 (remote_fileio_return_success, remote_fileio_func_open)
6659 (remote_fileio_func_open, remote_fileio_func_close)
6660 (remote_fileio_func_read, remote_fileio_func_write)
6661 (remote_fileio_func_lseek, remote_fileio_func_rename)
6662 (remote_fileio_func_unlink, remote_fileio_func_stat)
6663 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6664 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6665 remote_target parameter.
6666 (remote_fio_func_map) <func>: Add remote_target parameter.
6667 (do_remote_fileio_request, remote_fileio_request):
6668 * remote-fileio.h (remote_fileio_request):
6669 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6670 remote_target parameter.
6671 (remote_notif_process, handle_notification): Adjust to pass down
6672 the remote.
6673 (remote_notif_state_allocate): Add remote_target parameter. Save
6674 it.
6675 * remote-notif.h (struct remote_target): Forward declare.
6676 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6677 remote_target parameter.
6678 (struct remote_notif_state) <remote>: New field.
6679 (remote_notif_ack, remote_notif_parse): Add remote_target
6680 parameter.
6681 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6682 remote_target parameter.
6683 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6684 (threads_listing_context, rmt_thread_action, protocol_feature)
6685 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6686 (packet_result, struct threads_listing_context, remote_state):
6687 Move definitions and declarations higher up.
6688 (remote_target) <~remote_target>: Declare.
6689 (remote_download_command_source, remote_file_put, remote_file_get)
6690 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6691 (remote_hostio_pread_vFile, remote_hostio_send_command)
6692 (remote_hostio_set_filesystem, remote_hostio_open)
6693 (remote_hostio_close, remote_hostio_unlink, remote_state)
6694 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6695 (get_memory_write_packet_size, get_memory_read_packet_size)
6696 (append_pending_thread_resumptions, remote_detach_1)
6697 (append_resumption, remote_resume_with_vcont)
6698 (add_current_inferior_and_thread, wait_ns, wait_as)
6699 (process_stop_reply, remote_notice_new_inferior)
6700 (process_initial_stop_replies, remote_add_thread)
6701 (btrace_sync_conf, remote_btrace_maybe_reopen)
6702 (remove_new_fork_children, kill_new_fork_children)
6703 (discard_pending_stop_replies, stop_reply_queue_length)
6704 (check_pending_events_prevent_wildcard_vcont)
6705 (discard_pending_stop_replies_in_queue, stop_reply)
6706 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6707 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6708 (remote_interrupt_as, remote_interrupt_ns)
6709 (remote_get_noisy_reply, remote_query_attached)
6710 (remote_add_inferior, remote_current_thread, get_current_thread)
6711 (set_thread, set_general_thread, set_continue_thread)
6712 (set_general_process, write_ptid)
6713 (remote_unpack_thread_info_response, remote_get_threadinfo)
6714 (parse_threadlist_response, remote_get_threadlist)
6715 (remote_threadlist_iterator, remote_get_threads_with_ql)
6716 (remote_get_threads_with_qxfer)
6717 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6718 (get_offsets, remote_check_symbols, remote_supported_packet)
6719 (remote_query_supported, remote_packet_size)
6720 (remote_serial_quit_handler, remote_detach_pid)
6721 (remote_vcont_probe, remote_resume_with_hc)
6722 (send_interrupt_sequence, interrupt_query)
6723 (remote_notif_get_pending_events, fetch_register_using_p)
6724 (send_g_packet, process_g_packet, fetch_registers_using_g)
6725 (store_register_using_P, store_registers_using_G)
6726 (set_remote_traceframe, check_binary_download)
6727 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6728 (remote_xfer_live_readonly_partial, remote_read_bytes)
6729 (remote_send_printf, remote_flash_write, readchar)
6730 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6731 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6732 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6733 (extended_remote_disable_randomization, extended_remote_run)
6734 (send_environment_packet, extended_remote_environment_support)
6735 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6736 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6737 (packet_command): Now methods of ...
6738 (remote_target): ... this class.
6739 (m_remote_state) <remote_target>: New field.
6740 (struct remote_state) <stop_reply_queue,
6741 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6742 fields.
6743 (remote_state::remote_state): Allocate stop_reply_queue.
6744 (remote_state): Delete global.
6745 (get_remote_state_raw): Delete.
6746 (remote_target::get_remote_state): Allocate m_remote_state on
6747 demand.
6748 (get_current_remote_target): New.
6749 (remote_ops, extended_remote_ops): Delete.
6750 (wait_forever_enabled_p, remote_async_inferior_event_token):
6751 Delete, moved to struct remote_state.
6752 (remote_target::close): Delete self. Destruction bits split to
6753 ...
6754 (remote_target::~remote_target): ... this.
6755 (show_memory_packet_size): Adjust to use
6756 get_current_remote_target.
6757 (struct protocol_feature) <func>: Add remote_target parameter.
6758 All callers adjusted.
6759 (curr_quit_handler_target): New.
6760 (remote_serial_quit_handler): Reimplement.
6761 (remote_target::open_1): Adjust to use get_current_remote_target.
6762 Heap-allocate remote_target/extended_remote_target instances.
6763 (vcont_builder::vcont_builder): Add remote_target parameter, and
6764 save it in m_remote. All callers adjusted.
6765 (vcont_builder::m_remote): New field.
6766 (vcont_builder::restart, vcont_builder::flush)
6767 (vcont_builder::push_action): Use it.
6768 (remote_target::commit_resume): Use it.
6769 (struct queue_iter_param) <remote>: New field.
6770 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6771 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6772 (check_pending_event_prevents_wildcard_vcont_callback)
6773 (remote_target::check_pending_events_prevent_wildcard_vcont)
6774 (remote_target::discard_pending_stop_replies)
6775 (remote_target::discard_pending_stop_replies_in_queue)
6776 (remote_target::remote_notif_remove_queued_reply): Fill in
6777 'remote' field.
6778 (remote_notif_get_pending_events): New.
6779 (remote_target::readchar, remote_target::remote_serial_write):
6780 Save/restore curr_quit_handler_target.
6781 (putpkt): New.
6782 (kill_new_fork_children): Fill in 'remote' field.
6783 (packet_command): Use get_current_remote_target, defer to
6784 remote_target method of same name.
6785 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6786 parameter, and save it in m_remote. All callers adjusted.
6787 (scoped_remote_fd::release): Use m_remote.
6788 (scoped_remote_fd::m_remote): New field.
6789 (remote_file_put, remote_file_get, remote_file_delete): Use
6790 get_current_remote_target, defer to remote_target method of same
6791 name.
6792 (remote_btrace_reset): Add remote_state paremeter. Update all
6793 callers.
6794 (remote_async_inferior_event_handler). Pass down 'data'.
6795 (remote_new_objfile): Use get_current_remote_target.
6796 (remote_target::vcont_r_supported): New.
6797 (set_range_stepping): Use get_current_remote_target and
6798 remote_target::vcont_r_supported.
6799 (_initialize_remote): Don't allocate 'remote_state' and
6800 'stop_reply_queue' globals.
6801 * remote.h (struct remote_target): Forward declare.
6802 (getpkt, putpkt, remote_notif_get_pending_events): Add
6803 'remote_target' parameter.
6804
6805 2018-05-22 Pedro Alves <palves@redhat.com>
6806
6807 * remote.c (vcont_builder): Now a class. Make all data members
6808 private.
6809 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6810 Declare methods.
6811 (vcont_builder_restart): Rename to ...
6812 (vcont_builder::restart): ... this.
6813 (vcont_builder_flush): Rename to ...
6814 (vcont_builder::flush): ... this.
6815 (vcont_builder_push_action): Rename to ...
6816 (vcont_builder::push_action): ... this.
6817 (remote_target::commit_resume): Adjust.
6818
6819 2018-05-22 Pedro Alves <palves@redhat.com>
6820
6821 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6822 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6823 (get_fixed_memory_packet_size): New.
6824 (get_memory_packet_size): Use it.
6825 (set_memory_packet_size): Don't override the config size with
6826 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6827 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6828 Don't refer to get_memory_packet_size if not connected to a remote
6829 target. Show "(default)" if configured size is 0.
6830
6831 2018-05-22 Pedro Alves <palves@redhat.com>
6832
6833 * remote.c (remote_target::mourn_inferior): Move
6834 discard_pending_stop_replies call here from ...
6835 (_initialize_remote): ... here.
6836
6837 2018-05-22 Pedro Alves <palves@redhat.com>
6838
6839 * remote.c (compare_section_command): Remove set_general_process
6840 call.
6841
6842 2018-05-22 Pedro Alves <palves@redhat.com>
6843
6844 * remote.c (struct packet_reg, struct remote_arch_state):
6845 Move higher up in the file.
6846 (remote_state) <m_arch_states>: Store remote_arch_state values
6847 instead of remote_arch_state pointers.
6848 (remote_state::get_remote_arch_state): Adjust.
6849
6850 2018-05-22 Pedro Alves <palves@redhat.com>
6851
6852 * remote.c: Include <unordered_map>.
6853 (remote_state): Now a class.
6854 (remote_state) <get_remote_arch_state>: Declare method.
6855 <get_remote_arch_state>: New field.
6856 (remote_arch_state) <remote_arch_state>: Declare ctor.
6857 <regs>: Now a unique_ptr.
6858 (remote_gdbarch_data_handle): Delete.
6859 (get_remote_arch_state): Delete.
6860 (remote_state::get_remote_arch_state): New.
6861 (get_remote_state): Adjust to call remote_state's
6862 get_remote_arch_state method.
6863 (init_remote_state): Delete, bits factored out to ...
6864 (remote_arch_state::remote_arch_state): ... this new method.
6865 (get_remote_packet_size, get_memory_packet_size)
6866 (process_g_packet, remote_target::fetch_registers)
6867 (remote_target::prepare_to_store, store_registers_using_G)
6868 (remote_target::store_registers, remote_target::get_trace_status):
6869 Adjust to call remote_state's method.
6870 (_initialize_remote): Remove reference to
6871 remote_gdbarch_data_handle.
6872
6873 2018-05-22 Pedro Alves <palves@redhat.com>
6874
6875 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6876 pread>: New method declarations.
6877 (remote_target::open_1): Adjust.
6878 (readahead_cache_invalidate): Rename to ...
6879 (readahead_cache::invalidate): ... this, and adjust to be a class
6880 method.
6881 (readahead_cache_invalidate_fd): Rename to ...
6882 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6883 class method.
6884 (remote_hostio_pwrite): Adjust.
6885 (remote_hostio_pread_from_cache): Rename to ...
6886 (readahead_cache::pread): ... this, and adjust to be a class
6887 method.
6888 (remote_hostio_close): Adjust.
6889
6890 2018-05-22 Pedro Alves <palves@redhat.com>
6891
6892 * remote.c (remote_hostio_close_cleanup): Delete.
6893 (class scoped_remote_fd): New.
6894 (remote_file_put, remote_file_get): Use it.
6895
6896 2018-05-22 Pedro Alves <palves@redhat.com>
6897
6898 (struct vCont_action_support): Use bool and initialize all fields.
6899 (struct readahead_cache): Initialize all fields.
6900 (remote_state): Use bool and initialize all fields.
6901 (remote_state::remote_state, remote_state::~remote_state): New.
6902 (new_remote_state): Delete.
6903 (_initialize_remote): Use new to allocate remote_state.
6904
6905 2018-05-22 Pedro Alves <palves@redhat.com>
6906 張俊芝 <zjz@zjz.name>
6907
6908 PR gdb/22973
6909 * c-exp.y: Include "c-support.h".
6910 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6911 of tolower. Use c_ident_is_alpha to scan names.
6912 * c-lang.c: Include "c-support.h".
6913 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6914 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6915 * c-support.h: New file, with bits factored out from ...
6916 * cp-name-parser.y: ... this file.
6917 Include "c-support.h".
6918 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6919 c-support.h and renamed.
6920 (symbol_end, yylex): Adjust.
6921
6922 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6923
6924 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6925 parameter type to CORE_ADDR.
6926 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6927 parameter type in declaration to CORE_ADDR.
6928 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6929 target_auxv_search to get AT_HWCAP and use the result to get the
6930 target description.
6931 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6932 to CORE_ADDR. Remove the cast of the return value to unsigned
6933 long. Fix error predicate of target_auxv_search.
6934 (ppc_linux_nat_target::read_description): Change the type of the
6935 hwcap variable to CORE_ADDR.
6936
6937 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6938
6939 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6940 if the size of fpscr is larger than 32 bits.
6941
6942 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6943
6944 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6945 (ppc32_linux_vsxregmap): New global.
6946 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6947 regcache_supply_regset, and regcache_collect_regset.
6948 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6949 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6950 (fetch_vsx_register, store_vsx_register): Remove.
6951 (fetch_vsx_registers): Add regno parameter. Get regset using
6952 ppc_linux_vsxregset. Use regset to supply registers.
6953 (store_vsx_registers): Add regno parameter. Get regset using
6954 ppc_linux_vsxregset. Use regset to collect registers.
6955 (fetch_register): Call fetch_vsx_registers instead of
6956 fetch_vsx_register.
6957 (store_register): Call store_vsx_registers instead of
6958 store_vsx_register.
6959 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6960 new regno parameter.
6961 (store_ppc_registers): Call store_vsx_registers with -1 for the
6962 new regno parameter.
6963 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6964 (ppc_collect_vsxregset): Remove.
6965
6966 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6967
6968 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6969 offset fields.
6970 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6971 for vector register offset fields.
6972 (ppc64_fbsd_reg_offsets): Likewise.
6973 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6974 to vector register offset fields.
6975 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6976 to vector register offset fields.
6977 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6978 vector register offset fields.
6979 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6980 initializers for vector register offset fields.
6981 (rs6000_aix64_reg_offsets): Likewise.
6982 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6983 (ppc_supply_vrregset): Remove.
6984 (ppc_collect_vrregset): Remove.
6985 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6986 (ppc_linux_vrregset) : New function.
6987 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6988 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6989 (ppc32_linux_vrregset): Remove.
6990 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6991 and use result instead of ppc32_linux_vrregset.
6992 (ppc32_linux_reg_offsets): Remove initializers for vector register
6993 offset fields.
6994 (ppc64_linux_reg_offsets): Likewise.
6995 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6996 * ppc-linux-nat.c: Include regset.h.
6997 (gdb_vrregset_t): Adjust comment to account for little-endian
6998 mode.
6999 (supply_vrregset, fill_vrregset): Remove.
7000 (fetch_altivec_register, store_altivec_register): Remove.
7001 (fetch_altivec_registers): Add regno parameter. Get regset using
7002 ppc_linux_vrregset. Use regset to supply registers.
7003 (store_altivec_registers): Add regno parameter. Get regset using
7004 ppc_linux_vrregset. Use regset to collect registers.
7005 (fetch_register): Call fetch_altivec_registers instead of
7006 fetch_altivec_register.
7007 (store_register): Call store_altivec_registers instead of
7008 store_altivec_register.
7009 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7010 the new regno parameter.
7011 (store_ppc_registers): Call store_altivec_registers with -1 for
7012 the new regno parameter.
7013
7014 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7015
7016 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7017 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7018 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7019 (gdb_vrregset_t): Change array type size to
7020 PPC_LINUX_SIZEOF_VRREGSET.
7021 (gdb_vsxregset_t): Change array type size to
7022 PPC_LINUX_SIZEOF_VSXREGSET.
7023 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7024 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7025 PPC_LINUX_SIZEOF_VSXREGSET.
7026
7027 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7028
7029 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7030 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7031 nat/ppc-linux.c.
7032 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7033 ppc_linux_target_wordsize with tid.
7034 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7035 wordsize with tid.
7036 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7037 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7038 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7039 tid parameter. Remove static specifier.
7040 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7041 (ppc_linux_target_wordsize): New declaration.
7042
7043 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7044
7045 * arch/ppc-linux-common.c: New file.
7046 * arch/ppc-linux-common.h: New file.
7047 * arch/ppc-linux-tdesc.h: New file.
7048 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7049 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7050 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7051 arch/ppc-linux-tdesc.h.
7052 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7053 arch/ppc-linux-tdesc.h.
7054 (ppc_linux_nat_target::read_description): Remove target
7055 description matching code. Fill a ppc_linux_features struct and
7056 call ppc_linux_match_description with it. Move comment about ISA
7057 2.05 to ppc-linux-common.c.
7058 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7059 arch/ppc-linux-tdesc.h.
7060 (ppc_linux_core_read_description): Remove target description
7061 matching code. Fill a ppc_linux_features struct and call
7062 ppc_linux_match_description with it.
7063 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7064 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7065 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7066 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7067 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7068 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7069 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7070 (tdesc_powerpc_e500l): Remove.
7071
7072 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7073
7074 * ada-lang.c (catch_assert_command): Pass empty string instead
7075 of NULL for excep_string argument.
7076
7077 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7078
7079 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7080 the width of the requested register exceeds the width of the
7081 `ptrace' data type.
7082
7083 2018-05-21 Tom Tromey <tom@tromey.com>
7084
7085 * printcmd.c (output_command): Remove.
7086 (output_command_const): Rename to output_command.
7087 * valprint.h (output_command): Rename from output_command_const.
7088 * tracepoint.c (trace_dump_actions): Call output_command.
7089
7090 2018-05-21 Tom Tromey <tom@tromey.com>
7091
7092 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7093 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7094 * ada-lang.h (create_ada_exception_catchpoint): Update.
7095 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7096 std::string.
7097 (create_excep_cond_exprs, ~ada_catchpoint)
7098 (should_stop_exception, print_one_exception)
7099 (print_mention_exception, print_recreate_exception): Update.
7100 (ada_get_next_arg): Remove.
7101 (catch_ada_exception_command_split): Use std::string. Change type
7102 of "excep_string", "cond_string".
7103 (catch_ada_exception_command): Update.
7104 (create_ada_exception_catchpoint): Change type of excep_string.
7105 (ada_exception_sal): Remove excep_string parameter.
7106 (~ada_catchpoint): Remove.
7107
7108 2018-05-21 Tom Tromey <tom@tromey.com>
7109
7110 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7111 cleanup.
7112
7113 2018-05-21 Tom Tromey <tom@tromey.com>
7114
7115 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7116 Return unique_xmalloc_ptr.
7117 (print_it_exception): Update.
7118
7119 2018-05-21 Tom Tromey <tom@tromey.com>
7120
7121 * tracepoint.c (trace_dump_actions): Use std::string.
7122
7123 2018-05-21 Tom Tromey <tom@tromey.com>
7124
7125 * symfile.c (reread_symbols): Use std::string for original_name.
7126
7127 2018-05-21 Tom Tromey <tom@tromey.com>
7128
7129 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7130 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7131 constructor.
7132
7133 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7134
7135 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7136 instance to...
7137 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7138 * objfiles.c (get_objfile_bfd_data): Allocate
7139 objfile_per_bfd_storage with obstack_new when allocating on
7140 obstack.
7141
7142 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7143
7144 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7145 OBSTACK_ZALLOC.
7146 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7147 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7148 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7149 (add_pending): Likewise.
7150 (parse_symbol): Likewise.
7151 (parse_partial_symbols): Likewise.
7152 (psymtab_to_symtab_1): Likewise.
7153 (new_psymtab): Likewise.
7154 (elfmdebug_build_psymtabs): Likewise.
7155 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7156 * objfiles.c (get_objfile_bfd_data): Likewise.
7157 (objfile_register_static_link): Likewise.
7158 * psymtab.c (allocate_psymtab): Likewise.
7159 * stabsread.c (read_member_functions): Likewise.
7160 * xcoffread.c (xcoff_end_psymtab): Likewise.
7161
7162 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7163
7164 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7165 compiler supports std::is_trivially_constructible.
7166 * common/poison.h: Include obstack.h.
7167 (IsMallocable): Define to is_trivially_constructible if the
7168 compiler supports it, define to true_type otherwise.
7169 (xobnew): New.
7170 (XOBNEW): Redefine.
7171 (xobnewvec): New.
7172 (XOBNEWVEC): Redefine.
7173 * gdb_obstack.h (obstack_zalloc): New.
7174 (OBSTACK_ZALLOC): Redefine.
7175 (obstack_calloc): New.
7176 (OBSTACK_CALLOC): Redefine.
7177 (obstack_new): New.
7178 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7179 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7180 gdbarch.c.
7181 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7182 obstack_calloc/obstack_zalloc.
7183 (gdbarch_obstack_zalloc): Remove.
7184 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7185
7186 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7187
7188 * stack.c (backtrace_command_1): Remove useless variable int i.
7189
7190 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7191
7192 * stack.c (print_frame_info): Fix comment.
7193
7194 2018-05-18 Tom Tromey <tom@tromey.com>
7195
7196 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7197 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7198 (~dwarf2_per_objfile): Update
7199 (dwarf2_get_dwz_file): Use new.
7200 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7201 unique_ptr.
7202
7203 2018-05-18 Tom Tromey <tom@tromey.com>
7204
7205 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7206 unique_ptr.
7207 * dwarf2read.c (struct dwp_file): Add constructor and
7208 initializers.
7209 (open_and_init_dwp_file): Return a unique_ptr.
7210 (dwarf2_per_objfile, create_dwp_hash_table)
7211 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7212 (lookup_dwo_unit_in_dwp): Update.
7213 (open_and_init_dwp_file, get_dwp_file): Update.
7214
7215 2018-05-18 Tom Tromey <tom@tromey.com>
7216
7217 * dwarf2read.c (dwarf2_per_objfile): Update.
7218 (struct mapped_index): Add initializers.
7219 (dwarf2_read_index): Use new.
7220 (dw2_symtab_iter_init): Update.
7221 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7222 unique_ptr.
7223
7224 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7225
7226 * dwarf2read.c (mapped_index) <total_size>: Remove.
7227
7228 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7229
7230 * unittests/format_pieces-selftests.c (test_format_specifier):
7231 Add ARI comments.
7232
7233 2018-05-18 Tom Tromey <tom@tromey.com>
7234
7235 * c-typeprint.c (maybe_print_hole): New function.
7236 (c_print_type_struct_field_offset): Update.
7237 (c_type_print_base_struct_union): Call maybe_print_hole.
7238
7239 2018-05-17 Keith Seitz <keiths@redhat.com>
7240
7241 * breakpoint.c (build_bpstat_chain): New function, moved from
7242 bpstat_stop_status.
7243 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7244 If no stop chain is passed, call build_bpstat_chain to build it.
7245 * breakpoint.h (build_bpstat_chain): Declare.
7246 (bpstat_stop_status): Move documentation here from breakpoint.c.
7247 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7248 build the stop chain and pass it to skip_inline_frames.
7249 Pass this stop chain to bpstat_stop_status.
7250 * inline-frame.c: Include breakpoint.h.
7251 (stopped_by_user_bp_inline_frame): New function.
7252 (skip_inline_frames): Add parameter `stop_chain'.
7253 Move documention to inline-frame.h.
7254 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7255 whether the frame should be elided.
7256 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7257 Add moved documentation and update for new parameter.
7258
7259 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7260
7261 PR cli/14975
7262 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7263 unittests/format_pieces-selftests.c.
7264 * common/format.h (format_piece) <operator==>: New.
7265 (format_pieces) <operator[]>: Remove.
7266 * common/format.c (format_pieces::format_pieces): Handle \e.
7267 * unittests/format_pieces-selftests.c: New.
7268
7269 2018-05-17 Tom Tromey <tom@tromey.com>
7270
7271 PR symtab/23010:
7272 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7273 (dw2_instantiate_symtab): Add skip_partial parameter.
7274 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7275 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7276 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7277 (dw2_expand_symtabs_matching_one)
7278 (dw2_find_pc_sect_compunit_symtab)
7279 (dw2_debug_names_lookup_symbol)
7280 (dw2_debug_names_expand_symtabs_for_function): Update.
7281 (init_cutu_and_read_dies): Add skip_partial parameter.
7282 (process_psymtab_comp_unit, build_type_psymtabs_1)
7283 (process_skeletonless_type_unit, load_partial_comp_unit)
7284 (psymtab_to_symtab_1): Update.
7285 (load_full_comp_unit): Add skip_partial parameter.
7286 (process_imported_unit_die, dwarf2_read_addr_index)
7287 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7288 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7289 (read_signatured_type): Update.
7290
7291 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7292
7293 * value.c (release_value): Remove unused variable.
7294 (record_latest_value): Likewise.
7295 (access_value_history): Likewise.
7296 (preserve_values): Likewise.
7297
7298 2018-05-17 Tom Tromey <tom@tromey.com>
7299
7300 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7301 Initialize.
7302
7303 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7304
7305 PR gdb/22286
7306 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7307 Also handle registers whose width is not a multiple of
7308 PTRACE_TYPE_RET.
7309 (linux_nat_trad_target::store_register): Likewise.
7310
7311 2018-05-16 Tom Tromey <tom@tromey.com>
7312
7313 * gdbcore.h (core_bfd): Redefine.
7314 * corelow.c (core_target::close): Update.
7315 (core_target_open): Update.
7316 * progspace.h (struct program_space) <cbfd>: Now a
7317 gdb_bfd_ref_ptr.
7318
7319 2018-05-16 Tom Tromey <tom@tromey.com>
7320
7321 PR cli/19551:
7322 * symfile-add-flags.h (enum symfile_add_flags)
7323 <SYMFILE_NOT_FILENAME>: New constant.
7324 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7325 objfile name from BFD.
7326 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7327 * minidebug.c (find_separate_debug_file_in_section): Put
7328 ".gnu_debugdata" into BFD's file name.
7329
7330 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7331
7332 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7333 Remove.
7334
7335 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7336
7337 PR binutils/21446
7338 * aarch64-tdep.c (aarch64_analyze_prologue,
7339 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7340 Indicate not interested in errors.
7341
7342 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7343
7344 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7345 Supply the MIPS_ZERO_REGNUM register.
7346
7347 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7348
7349 * mips-tdep.c (mask_address_var): Make variable static.
7350
7351 2018-05-14 Tom Tromey <tom@tromey.com>
7352
7353 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7354
7355 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7356
7357 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7358 FXSAVE_ADDR for the mxcsr register.
7359
7360 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7361
7362 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7363
7364 2018-05-11 Pedro Alves <palves@redhat.com>
7365
7366 * corelow.c (core_target) <core_target>: No longer inline.
7367 Initialize m_core_gdbarch, m_core_vec and build the section table
7368 here.
7369 <~core_target>: New.
7370 <core_gdbarch, get_core_register_section>: New methods.
7371 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7372 factored out from ...
7373 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7374 (core_ops): Delete.
7375 (sniff_core_bfd): Add gdbarch parameter.
7376 (core_close): Delete, merged into ...
7377 (core_target::close): ... here. Delete self.
7378 (core_close_cleanup): Delete.
7379 (core_target_open): Allocate a core_target on the heap. Use a
7380 unique_ptr instead of a cleanup. Bits moved into the core_target
7381 ctor. Adjust to use core_target methods instead of globals.
7382 (get_core_register_section): Rename to ...
7383 (core_target::get_core_register_section): ... this and adjust.
7384 (struct get_core_registers_cb_data): New.
7385 (get_core_registers_cb): Use it. Use bool.
7386 (core_target::fetch_registers, core_target::files_info)
7387 (core_target::xfer_partial, core_target::read_description)
7388 (core_target::pid_to, core_target::thread_name): Adjust to
7389 reference class fields instead of globals.
7390 * target.h (struct target_ops_deleter, target_ops_up): New.
7391
7392 2018-05-11 Pedro Alves <palves@redhat.com>
7393
7394 * corefile.c (core_file_command): Move to corelow.c.
7395 * corelow.c (the_core_target): Delete.
7396 (core_file_command): Moved from corefile.c. Check exec_bfd
7397 instead of the_core_target. Use target_detach instead of calling
7398 into the_core_target directly.
7399 (maybe_say_no_core_file_now): New.
7400 (core_target::detach): Use it.
7401 (_initialize_corelow): Remove references to the_core_target.
7402 * gdbcore.h (the_core_target): Delete.
7403
7404 2018-05-11 Tom Tromey <tromey@redhat.com>
7405 Pedro Alves <palves@redhat.com>
7406
7407 * corefile.c (core_bfd): Remove.
7408 * gdbcore.h (core_bfd): Now a macro.
7409 * progspace.h (struct program_space) <cbfd>: New field.
7410
7411 2018-05-11 Tom Tromey <tom@tromey.com>
7412
7413 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7414 gdb::def_vector.
7415
7416 2018-05-10 Tom Tromey <tom@tromey.com>
7417
7418 * configure: Rebuild.
7419 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7420
7421 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7422
7423 PR server/23158:
7424 * regformats/regdat.sh: Adjust script, following the addition
7425 of the new expedite_regs parameter to init_target_desc.
7426
7427 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7428
7429 PR gdb/23127
7430 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7431 set_gdbarch_significant_addr_bit.
7432 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7433 set_gdbarch_significant_addr_bit.
7434 * utils.c (address_significant): Update to sign extend addr.
7435
7436 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7437
7438 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7439 (xtensa_linux_init_abi): Limit tdep->num_regs by
7440 tdep->num_nopriv_regs.
7441 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7442 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7443 not initialized.
7444
7445 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7446
7447 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7448
7449 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7450
7451 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7452 (I387_MXCSR_INIT_VAL): New constant.
7453 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7454 buffer if it was supplied by the inferior.
7455 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7456 (i387_xsave_get_clear_bv): New function.
7457 (i387_supply_xsave): Only read x87 control registers from the
7458 xsave buffer if the feature is enabled, and the state will have
7459 been written, otherwise, provide a suitable default.
7460 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7461 including x87 control registers. Update control registers if they
7462 have changed from the default value, and mark features as enabled
7463 as required.
7464 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7465
7466 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7467
7468 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7469
7470 2018-05-07 Tom Tromey <tom@tromey.com>
7471
7472 * configure: Rebuild.
7473 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7474
7475 2018-05-07 Tom Tromey <tom@tromey.com>
7476
7477 PR tdep/20362:
7478 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7479 bit. Use correct value for VDIV.
7480
7481 2018-05-04 Tom Tromey <tom@tromey.com>
7482
7483 * configure: Rebuild.
7484 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7485
7486 2018-05-04 Tom Tromey <tom@tromey.com>
7487
7488 * linux-record.c (record_linux_system_call) <case
7489 RECORD_SYS_RECVFROM>: Add "break".
7490
7491 2018-05-04 Tom Tromey <tom@tromey.com>
7492
7493 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7494 Add missing "break".
7495 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7496 Add missing "break".
7497
7498 2018-05-04 Tom Tromey <tom@tromey.com>
7499
7500 * rs6000-tdep.c (ppc_process_record_op4)
7501 (ppc_process_record_op63): Add fall-through comment.
7502
7503 2018-05-04 Tom Tromey <tom@tromey.com>
7504
7505 * i386-tdep.c (i386_process_record): Add fall-through comment.
7506
7507 2018-05-04 Tom Tromey <tom@tromey.com>
7508
7509 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7510 comment.
7511
7512 2018-05-04 Tom Tromey <tom@tromey.com>
7513
7514 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7515 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7516 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7517 comment.
7518 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7519 comment.
7520 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7521 comment.
7522
7523 2018-05-04 Tom Tromey <tom@tromey.com>
7524
7525 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7526
7527 2018-05-04 Tom Tromey <tom@tromey.com>
7528
7529 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7530 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7531 * symfile.c (section_is_mapped): Fix fall-through comment.
7532 * stabsread.c (define_symbol, read_member_functions): Fix
7533 fall-through comment.
7534 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7535 comment.
7536 * remote.c (remote_wait_as): Fix fall-through comment.
7537 * p-exp.y (yylex): Fix fall-through comment.
7538 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7539 comment.
7540 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7541 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7542 * jv-exp.y (yylex): Fix fall-through comment.
7543 * go-exp.y (lex_one_token): Fix fall-through comment.
7544 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7545 fall-through comment.
7546 * f-exp.y (yylex): Fix fall-through comment.
7547 * dwarf2read.c (process_die): Fix fall-through comments.
7548 * dbxread.c (process_one_symbol): Fix fall-through comment.
7549 * d-exp.y (lex_one_token): Fix fall-through comment.
7550 * cp-name-parser.y (yylex): Fix fall-through comment.
7551 * coffread.c (coff_symtab_read): Fix fall-through comment.
7552 * c-exp.y (lex_one_token): Fix fall-through comment.
7553 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7554 comment.
7555 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7556 comment.
7557
7558 2018-05-04 Tom Tromey <tom@tromey.com>
7559
7560 PR python/22730:
7561 * NEWS: Mention gdb.execute change.
7562 * gdbcmd.h (execute_control_command): Don't declare.
7563 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7564 execute_control_commands, execute_control_commands_to_string.
7565 * cli/cli-script.h (execute_control_commands)
7566 (execute_control_commands_to_string): Declare.
7567 (execute_control_command): Add from_tty parameter.
7568 * cli/cli-script.c (execute_control_commands)
7569 (execute_control_commands_to_string): New functions.
7570 (execute_user_command): Use execute_control_commands.
7571 (execute_control_command_1): Add "from_tty" parameter. Update.
7572 (execute_control_command): Likewise.
7573
7574 2018-05-04 Tom Tromey <tom@tromey.com>
7575
7576 PR python/22731:
7577 * NEWS: Mention that breakpoint commands are writable.
7578 * python/py-breakpoint.c (bppy_set_commands): New function.
7579 (breakpoint_object_getset) <"commands">: Use it.
7580
7581 2018-05-04 Tom Tromey <tom@tromey.com>
7582
7583 * tracepoint.c (actions_command): Update.
7584 * mi/mi-cmd-break.c (mi_command_line_array)
7585 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7586 (mi_read_next_line): Remove.
7587 (mi_cmd_break_commands): Update.
7588 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7589 function_view.
7590 * cli/cli-script.c (get_command_line): Update.
7591 (process_next_line): Use function_view. Constify.
7592 (recurse_read_control_structure, read_command_lines)
7593 (read_command_lines_1): Change argument types to function_view.
7594 (do_define_command, document_command): Update.
7595 * breakpoint.h (check_tracepoint_command): Don't declare.
7596 * breakpoint.c (check_tracepoint_command): Remove.
7597 (commands_command_1, create_tracepoint_from_upload): Update.
7598
7599 2018-05-04 Tom Tromey <tom@tromey.com>
7600
7601 PR gdb/11750:
7602 * cli/cli-script.h (enum command_control_type) <define_control>:
7603 New constant.
7604 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7605 (build_command_line, execute_control_command_1)
7606 (process_next_line): Likewise.
7607 (do_define_command): New function, extracted from define_command.
7608 (define_command): Use it.
7609
7610 2018-05-04 Tom Tromey <tom@tromey.com>
7611
7612 * tracepoint.c (actions_command): Update.
7613 * cli/cli-script.h (read_command_lines): Update.
7614 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7615 (MAX_TMPBUF): Remove define.
7616 (define_command): Use string_printf.
7617 (document_command): Likewise.
7618 * breakpoint.c (commands_command_1): Update.
7619
7620 2018-05-04 Tom Tromey <tom@tromey.com>
7621
7622 * top.c (execute_command): Update.
7623 * cli/cli-script.h (print_command_lines): Now varargs.
7624 * cli/cli-script.c (print_command_lines): Now varargs.
7625 (execute_control_command_1) <case while_control, case if_control>:
7626 Update.
7627
7628 2018-05-04 Tom Tromey <tom@tromey.com>
7629
7630 * tracepoint.c (all_tracepoint_actions): Rename from
7631 all_tracepoint_actions_and_cleanup. Change return type.
7632 (actions_command, encode_actions_1, encode_actions)
7633 (trace_dump_actions, tdump_command): Update.
7634 * remote.c (remote_download_command_source): Update.
7635 * python/python.c (gdbpy_eval_from_control_command)
7636 (python_command, python_interactive_command): Update.
7637 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7638 * guile/guile.c (guile_command)
7639 (gdbscm_eval_from_control_command, guile_command): Update.
7640 * compile/compile.c (compile_code_command)
7641 (compile_print_command, compile_to_object): Update.
7642 * cli/cli-script.h (struct command_lines_deleter): New.
7643 (counted_command_line): New typedef.
7644 (struct command_line): Add constructor, destructor.
7645 <body_list>: Remove.
7646 <body_list_0, body_list_1>: New members.
7647 (command_line_up): Remove typedef.
7648 (read_command_lines, read_command_lines_1, get_command_line):
7649 Update.
7650 (copy_command_lines): Don't declare.
7651 * cli/cli-script.c (build_command_line): Use "new".
7652 (get_command_line): Return counted_command_line.
7653 (print_command_lines, execute_user_command)
7654 (execute_control_command_1, while_command, if_command): Update.
7655 (realloc_body_list): Remove.
7656 (process_next_line, recurse_read_control_structure): Update.
7657 (read_command_lines, read_command_lines_1): Return counted_command_line.
7658 (free_command_lines): Use "delete".
7659 (copy_command_lines): Remove.
7660 (define_command, document_command, show_user_1): Update.
7661 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7662 a counted_command_line.
7663 * breakpoint.h (counted_command_line): Remove typedef.
7664 (breakpoint_set_commands): Update.
7665 * breakpoint.c (check_no_tracepoint_commands)
7666 (validate_commands_for_breakpoint): Update.
7667 (breakpoint_set_commands): Change commands to be a
7668 counted_command_line.
7669 (commands_command_1, update_dprintf_command_list)
7670 (create_tracepoint_from_upload): Update.
7671
7672 2018-05-04 Tom Tromey <tom@tromey.com>
7673
7674 * cli/cli-decode.h (cmd_list_element): New constructor.
7675 (~cmd_list_element): New destructor.
7676 (struct cmd_list_element): Add initializers.
7677 * cli/cli-decode.c (do_add_cmd): Use "new".
7678 (delete_cmd): Use "delete".
7679
7680 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7681 Pedro Alves <palves@redhat.com>
7682
7683 PR breakpoints/19806 and support for PR external/20207.
7684 * NEWS: Mention Aarch64 watchpoint improvements.
7685 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7686 watchpoints and PR external/20207 watchpoints.
7687 * nat/aarch64-linux-hw-point.c
7688 (kernel_supports_any_contiguous_range): New.
7689 (aarch64_watchpoint_offset): New.
7690 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7691 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7692 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7693 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7694 next_addr_orig_p. Support PR external/20207 watchpoints.
7695 (aarch64_downgrade_regs): New.
7696 (aarch64_dr_state_insert_one_point): New parameters offset and
7697 addr_orig.
7698 (aarch64_dr_state_remove_one_point): Likewise.
7699 (aarch64_handle_breakpoint): Update caller.
7700 (aarch64_handle_aligned_watchpoint): Likewise.
7701 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7702 aligned_offset.
7703 (aarch64_linux_set_debug_regs): Remove const from state. Call
7704 aarch64_downgrade_regs.
7705 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7706 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7707 (DR_CONTROL_MASK): ... this.
7708 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7709 (unsigned int aarch64_watchpoint_offset): New prototype.
7710 (aarch64_linux_set_debug_regs): Remove const from state.
7711 * utils.c (align_up, align_down): Move to ...
7712 * common/common-utils.c (align_up, align_down): ... here.
7713 * utils.h (align_up, align_down): Move to ...
7714 * common/common-utils.h (align_up, align_down): ... here.
7715
7716 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7717
7718 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7719 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7720 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7721 Re-implement to match the ABI as summarized in GCC's
7722 gcc/config/sparc/sparc.c. All callers updated.
7723 (sparc32_store_arguments): Remove assertion.
7724
7725 2018-05-04 Tom Tromey <tom@tromey.com>
7726
7727 * printcmd.c: Don't include tui.h.
7728 (decode_format): Use skip_spaces.
7729
7730 2018-05-04 Tom Tromey <tom@tromey.com>
7731
7732 PR gdb/22619:
7733 * printcmd.c (last_count): New global.
7734 (x_command): Use saved count when repeating.
7735
7736 2018-05-04 Tom Tromey <tom@tromey.com>
7737
7738 * nto-procfs.c (do_closedir_cleanup): Remove.
7739 (procfs_pidlist): Use gdb_dir_up.
7740 * procfs.c (do_closedir_cleanup): Remove.
7741 (proc_update_threads): Use gdb_dir_up.
7742 * common/filestuff.h (struct gdb_dir_deleter): New.
7743 (gdb_dir_up): New typedef.
7744
7745 2018-05-04 Tom Tromey <tom@tromey.com>
7746
7747 * ada-lang.c (print_mention_exception): Use std::string.
7748
7749 2018-05-04 Tom Tromey <tom@tromey.com>
7750
7751 * ada-lang.c (create_excep_cond_exprs): Update.
7752 (ada_exception_catchpoint_cond_string): Use std::string.
7753
7754 2018-05-04 Tom Tromey <tom@tromey.com>
7755
7756 * ada-lang.c (xget_renaming_scope): Return std::string.
7757 (old_renaming_is_invisible): Update.
7758
7759 2018-05-04 Tom Tromey <tom@tromey.com>
7760
7761 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7762 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7763
7764 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7765
7766 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7767
7768 2018-05-04 Tom Tromey <tom@tromey.com>
7769
7770 * remote.c (remote_query_supported_append): Change type.
7771 (remote_check_symbols): Update.
7772
7773 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7774
7775 PR gdb/11420
7776 * configure.ac: Prepend libpython.
7777 * python/python-config.py: Likewise.
7778 * configure: Regenerate.
7779
7780 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7781
7782 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7783
7784 2018-05-03 Pedro Alves <palves@redhat.com>
7785
7786 * s390-linux-nat.c
7787 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7788 override. Write 'true' instead of '1'.
7789 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7790 declaration.
7791
7792 2018-05-02 Pedro Alves <palves@redhat.com>
7793
7794 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7795 add_inf_child_target.
7796 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7797 add_inf_child_target.
7798 * aix-thread.c (aix_thread_target_info): New.
7799 (aix_thread_target) <shortname, longname, doc>: Delete.
7800 <info>: New.
7801 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7802 add_inf_child_target.
7803 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7804 add_inf_child_target.
7805 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7806 add_inf_child_target.
7807 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7808 add_inf_child_target.
7809 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7810 add_inf_child_target.
7811 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7812 add_inf_child_target.
7813 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7814 add_inf_child_target.
7815 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7816 add_inf_child_target.
7817 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7818 add_inf_child_target.
7819 * bfd-target.c (target_bfd_target_info): New.
7820 (target_bfd) <shortname, longname, doc>: Delete.
7821 <info>: New.
7822 * bsd-kvm.c (bsd_kvm_target_info): New.
7823 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7824 <info>: New.
7825 (bsd_kvm_target::open): Rename to ...
7826 (bsd_kvm_target_open): ... this. Adjust.
7827 * bsd-uthread.c (bsd_uthread_target_info): New.
7828 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7829 <info>: New.
7830 * corefile.c (core_file_command): Adjust.
7831 * corelow.c (core_target_info): New.
7832 (core_target) <shortname, longname, doc>: Delete.
7833 <info>: New.
7834 (core_target::open): Rename to ...
7835 (core_target_open): ... this. Adjust.
7836 * ctf.c (ctf_target_info): New.
7837 (ctf_target) <shortname, longname, doc>: Delete.
7838 <info>: New.
7839 (ctf_target::open): Rename to ...
7840 (ctf_target_open): ... this.
7841 (_initialize_ctf): Adjust.
7842 * exec.c (exec_target_info): New.
7843 (exec_target) <shortname, longname, doc>: Delete.
7844 <info>: New.
7845 (exec_target::open): Rename to ...
7846 (exec_target_open): ... this.
7847 * gdbcore.h (core_target_open): Declare.
7848 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7849 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7850 add_inf_child_target.
7851 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7852 add_inf_child_target.
7853 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7854 add_inf_child_target.
7855 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7856 add_inf_child_target.
7857 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7858 add_inf_child_target.
7859 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7860 add_inf_child_target.
7861 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7862 add_inf_child_target.
7863 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7864 add_inf_child_target.
7865 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7866 add_inf_child_target.
7867 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7868 add_inf_child_target.
7869 * inf-child.c (inf_child_target_info): New.
7870 (inf_child_target::info): New.
7871 (inf_child_open_target): Remove 'target' parameter. Use
7872 get_native_target instead.
7873 (inf_child_target::open): Delete.
7874 (add_inf_child_target): New.
7875 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7876 Delete.
7877 <info>: New.
7878 (add_inf_child_target): Declare.
7879 (inf_child_open_target): Declare.
7880 * linux-thread-db.c (thread_db_target_info): New.
7881 (thread_db_target) <shortname, longname, doc>: Delete.
7882 <info>: New.
7883 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7884 add_inf_child_target.
7885 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7886 add_inf_child_target.
7887 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7888 add_inf_child_target.
7889 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7890 add_inf_child_target.
7891 * make-target-delegates (print_class): Adjust.
7892 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7893 add_inf_child_target.
7894 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7895 add_inf_child_target.
7896 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7897 add_inf_child_target.
7898 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7899 add_inf_child_target.
7900 * nto-procfs.c (nto_native_target_info): New.
7901 (nto_procfs_target_native) <shortname, longname, doc>:
7902 Delete.
7903 <info>: New.
7904 (nto_procfs_target_info): New.
7905 (nto_procfs_target_procfs) <shortname, longname, doc>:
7906 Delete.
7907 <info>: New.
7908 (init_procfs_targets): Adjust.
7909 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7910 add_inf_child_target.
7911 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7912 add_inf_child_target.
7913 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7914 add_inf_child_target.
7915 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7916 add_inf_child_target.
7917 * ravenscar-thread.c (ravenscar_target_info): New.
7918 (ravenscar_thread_target) <shortname, longname, doc>:
7919 Delete.
7920 <info>: New.
7921 * record-btrace.c (record_btrace_target_info):
7922 (record_btrace_target) <shortname, longname, doc>: Delete.
7923 <info>: New.
7924 (record_btrace_target::open): Rename to ...
7925 (record_btrace_target_open): ... this. Adjust.
7926 * record-full.c (record_longname, record_doc): New.
7927 (record_full_base_target) <shortname, longname, doc>: Delete.
7928 <info>: New.
7929 (record_full_target_info): New.
7930 (record_full_target): <shortname>: Delete.
7931 <info>: New.
7932 (record_full_core_open_1, record_full_open_1): Update comments.
7933 (record_full_base_target::open): Rename to ...
7934 (record_full_open): ... this.
7935 (cmd_record_full_restore): Update.
7936 (_initialize_record_full): Update.
7937 * remote-sim.c (remote_sim_target_info): New.
7938 (gdbsim_target) <shortname, longname, doc>: Delete.
7939 <info>: New.
7940 (gdbsim_target::open): Rename to ...
7941 (gdbsim_target_open): ... this.
7942 (_initialize_remote_sim): Adjust.
7943 * remote.c (remote_doc): New.
7944 (remote_target_info): New.
7945 (remote_target) <shortname, longname, doc>: Delete.
7946 <info>: New.
7947 (extended_remote_target_info): New.
7948 (extended_remote_target) <shortname, longname, doc>: Delete.
7949 <info>: New.
7950 (remote_target::open_1): Make static. Adjust.
7951 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7952 * s390-linux-nat.c (_initialize_s390_nat): Use
7953 add_inf_child_target.
7954 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7955 add_inf_child_target.
7956 * sol-thread.c (thread_db_target_info): New.
7957 (sol_thread_target) <shortname, longname, doc>: Delete.
7958 <info>: New.
7959 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7960 add_inf_child_target.
7961 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7962 add_inf_child_target.
7963 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7964 add_inf_child_target.
7965 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7966 add_inf_child_target.
7967 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7968 add_inf_child_target.
7969 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7970 add_inf_child_target.
7971 * spu-linux-nat.c (_initialize_spu_nat): Use
7972 add_inf_child_target.
7973 * spu-multiarch.c (spu_multiarch_target_info): New.
7974 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7975 <info>: New.
7976 * target-delegates.c: Regenerate.
7977 * target.c: Include <unordered_map>.
7978 (target_ops_p): Delete.
7979 (DEF_VEC_P(target_ops_p)): Delete.
7980 (target_factories): New.
7981 (test_target_info): New.
7982 (test_target_ops::info): New.
7983 (open_target): Adjust to use target_factories.
7984 (add_target_with_completer): Rename to ...
7985 (add_target): ... this. Change prototype. Register target_info
7986 and open callback in target_factories. Register target_info in
7987 command context instead of target_ops.
7988 (add_target): Delete old implementation.
7989 (add_deprecated_target_alias): Change prototype. Adjust.
7990 (the_native_target): New.
7991 (set_native_target, get_native_target): New.
7992 (find_default_run_target): Use the_native_target.
7993 (find_attach_target, find_run_target): Simplify.
7994 (target_ops::open): Delete.
7995 (dummy_target_info): New.
7996 (dummy_target::shortname, dummy_target::longname)
7997 (dummy_target::doc): Delete.
7998 (dummy_target::info): New.
7999 (debug_target::shortname, debug_target::longname)
8000 (debug_target::doc): Delete.
8001 (debug_target::info): New.
8002 * target.h (struct target_info): New.
8003 (target_ops::~target_ops): Add comment.
8004 (target_ops::info): New.
8005 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8006 longer virtual. Implement in terms of target_info.
8007 (set_native_target, get_native_target): Declare.
8008 (target_open_ftype): New.
8009 (add_target, add_target_with_completer)
8010 (add_deprecated_target_alias): Change prototype.
8011 (test_target) <shortname, longname, doc>: Delete.
8012 <info>: New.
8013 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8014 add_inf_child_target.
8015 * tracefile-tfile.c (tfile_target_info): New.
8016 (tfile_target) <shortname, longname, doc>: Delete.
8017 <info>: New.
8018 (tfile_target::open): Rename to ...
8019 (tfile_target_open): ... this.
8020 (_initialize_tracefile_tfile): Adjust.
8021 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8022 add_inf_child_target.
8023 * windows-nat.c (_initialize_windows_nat): Use
8024 add_inf_child_target.
8025 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8026 add_inf_child_target.
8027
8028 2018-05-02 Pedro Alves <palves@redhat.com>
8029
8030 * linux-nat.h (linux_nat_target) <low_new_thread,
8031 low_delete_thread, low_new_fork, low_forget_process,
8032 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8033 New virtual methods.
8034 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8035 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8036 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8037 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8038 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8039 Delete.
8040 * linux-fork.c (delete_fork): Adjust to call low method.
8041 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8042 (linux_nat_new_fork, linux_nat_forget_process_hook)
8043 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8044 (linux_nat_status_is_event):
8045 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8046 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8047 to call low method.
8048 (sigtrap_is_event): Rename to ...
8049 (linux_nat_target::low_status_is_event): ... this.
8050 (linux_nat_set_status_is_event): Delete.
8051 (save_stop_reason, linux_nat_wait_1)
8052 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8053 low methods.
8054 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8055 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8056 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8057 (linux_nat_set_prepare_to_resume): Delete.
8058 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8059 low virtual methods.
8060 * amd64-linux-nat.c: Likewise.
8061 * arm-linux-nat.c: Likewise.
8062 * i386-linux-nat.c: Likewise.
8063 * ia64-linux-nat.c: Likewise.
8064 * mips-linux-nat.c: Likewise.
8065 * ppc-linux-nat.c: Likewise.
8066 * s390-linux-nat.c: Likewise.
8067 * sparc64-linux-nat.c: Likewise.
8068 * x86-linux-nat.c: Likewise.
8069 * x86-linux-nat.h: Include "nat/x86-linux.h".
8070 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8071 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8072 Override methods.
8073
8074 2018-05-02 Pedro Alves <palves@redhat.com>
8075
8076 * target.h (target_ops)
8077 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8078 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8079 stopped_by_watchpoint, have_continuable_watchpoint,
8080 stopped_data_address, watchpoint_addr_within_range,
8081 can_accel_watchpoint_condition, can_run, thread_alive,
8082 has_all_memory, has_memory, has_stack, has_registers,
8083 has_execution, can_async_p, is_async_p, supports_non_stop,
8084 always_non_stop_p, can_execute_reverse, supports_multi_process,
8085 supports_enable_disable_tracepoint,
8086 supports_disable_randomization, supports_string_tracing,
8087 supports_evaluation_of_breakpoint_conditions,
8088 can_run_breakpoint_commands, filesystem_is_local,
8089 can_download_tracepoint, get_trace_state_variable_value,
8090 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8091 record_is_replaying, record_will_replay,
8092 augmented_libraries_svr4_read>: Adjust to return bool.
8093 * aarch64-linux-nat.c: All implementations adjusted.
8094 * aix-thread.c: All implementations adjusted.
8095 * arm-linux-nat.c: All implementations adjusted.
8096 * breakpoint.c: All implementations adjusted.
8097 * bsd-kvm.c: All implementations adjusted.
8098 * bsd-uthread.c: All implementations adjusted.
8099 * corelow.c: All implementations adjusted.
8100 * ctf.c: All implementations adjusted.
8101 * darwin-nat.c: All implementations adjusted.
8102 * darwin-nat.h: All implementations adjusted.
8103 * exec.c: All implementations adjusted.
8104 * fbsd-nat.c: All implementations adjusted.
8105 * fbsd-nat.h: All implementations adjusted.
8106 * gnu-nat.c: All implementations adjusted.
8107 * gnu-nat.h: All implementations adjusted.
8108 * go32-nat.c: All implementations adjusted.
8109 * ia64-linux-nat.c: All implementations adjusted.
8110 * inf-child.c: All implementations adjusted.
8111 * inf-child.h: All implementations adjusted.
8112 * inf-ptrace.c: All implementations adjusted.
8113 * inf-ptrace.h: All implementations adjusted.
8114 * linux-nat.c: All implementations adjusted.
8115 * linux-nat.h: All implementations adjusted.
8116 * mips-linux-nat.c: All implementations adjusted.
8117 * nto-procfs.c: All implementations adjusted.
8118 * ppc-linux-nat.c: All implementations adjusted.
8119 * procfs.c: All implementations adjusted.
8120 * ravenscar-thread.c: All implementations adjusted.
8121 * record-btrace.c: All implementations adjusted.
8122 * record-full.c: All implementations adjusted.
8123 * remote-sim.c: All implementations adjusted.
8124 * remote.c: All implementations adjusted.
8125 * s390-linux-nat.c: All implementations adjusted.
8126 * sol-thread.c: All implementations adjusted.
8127 * spu-multiarch.c: All implementations adjusted.
8128 * target-delegates.c: All implementations adjusted.
8129 * target.c: All implementations adjusted.
8130 * target.h: All implementations adjusted.
8131 * tracefile-tfile.c: All implementations adjusted.
8132 * tracefile.c: All implementations adjusted.
8133 * tracefile.h: All implementations adjusted.
8134 * windows-nat.c: All implementations adjusted.
8135 * x86-linux-nat.h: All implementations adjusted.
8136 * x86-nat.h: All implementations adjusted.
8137
8138 2018-05-02 Pedro Alves <palves@redhat.com>
8139
8140 * make-target-delegates (scan_target_h): Don't trim lines here.
8141 Replace sequences of tabs and/or whitespace with a single
8142 whitespace.
8143 (top level, parsing methods): Trim each line before processing it
8144 here.
8145
8146 2018-05-02 Pedro Alves <palves@redhat.com>
8147 John Baldwin <jhb@freebsd.org>
8148
8149 * target.h (enum strata) <debug_stratum>: New.
8150 (struct target_ops) <all delegation methods>: Replace by C++
8151 virtual methods, and drop "to_" prefix. All references updated
8152 throughout.
8153 <to_shortname, to_longname, to_doc, to_data,
8154 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8155 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8156 virtual methods. All references updated throughout.
8157 <can_attach, supports_terminal_ours, can_create_inferior,
8158 get_thread_control_capabilities, attach_no_wait>: New
8159 virtual methods.
8160 <insert_breakpoint, remove_breakpoint>: Now
8161 TARGET_DEFAULT_NORETURN methods.
8162 <info_proc>: Now returns bool.
8163 <to_magic>: Delete.
8164 (OPS_MAGIC): Delete.
8165 (current_target): Delete. All references replaced by references
8166 to ...
8167 (target_stack): ... this. New.
8168 (target_shortname, target_longname): Adjust.
8169 (target_can_run): Now a function declaration.
8170 (default_child_has_all_memory, default_child_has_memory)
8171 (default_child_has_stack, default_child_has_registers)
8172 (default_child_has_execution): Remove target_ops parameter.
8173 (complete_target_initialization): Delete.
8174 (memory_breakpoint_target): New template class.
8175 (test_target_ops): Refactor as a C++ class with virtual methods.
8176 * make-target-delegates (NAME_PART): Tighten.
8177 (POINTER_PART, CP_SYMBOL): New.
8178 (SIMPLE_RETURN_PART): Reimplement.
8179 (VEC_RETURN_PART): Expect less.
8180 (RETURN_PART, VIRTUAL_PART): New.
8181 (METHOD): Adjust to C++ virtual methods.
8182 (scan_target_h): Remove reference to C99.
8183 (dname): Output "target_ops::" prefix.
8184 (write_function_header): Adjust to output a C++ class method.
8185 (write_declaration): New.
8186 (write_delegator): Adjust to output a C++ class method.
8187 (tdname): Output "dummy_target::" prefix.
8188 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8189 method.
8190 (tdefault_names, debug_names): Delete.
8191 (return_types, tdefaults, styles, argtypes_array): New.
8192 (top level): All methods are delegators.
8193 (print_class): New.
8194 (top level): Print dummy_target and debug_target classes.
8195 * target-delegates.c: Regenerate.
8196 * target-debug.h (target_debug_print_enum_info_proc_what)
8197 (target_debug_print_thread_control_capabilities)
8198 (target_debug_print_thread_info_p): New.
8199 * target.c (dummy_target): Delete.
8200 (the_dummy_target, the_debug_target): New.
8201 (target_stack): Now extern.
8202 (set_targetdebug): Push/unpush debug target.
8203 (default_child_has_all_memory, default_child_has_memory)
8204 (default_child_has_stack, default_child_has_registers)
8205 (default_child_has_execution): Remove target_ops parameter.
8206 (complete_target_initialization): Delete.
8207 (add_target_with_completer): No longer call
8208 complete_target_initialization.
8209 (target_supports_terminal_ours): Use regular delegation.
8210 (update_current_target): Delete.
8211 (push_target): No longer check magic number. Don't call
8212 update_current_target.
8213 (unpush_target): Don't call update_current_target.
8214 (target_is_pushed): No longer check magic number.
8215 (target_require_runnable): Skip for all stratums over
8216 process_stratum.
8217 (target_ops::info_proc): New.
8218 (target_info_proc): Use find_target_at and
8219 find_default_run_target.
8220 (target_supports_disable_randomization): Use regular delegation.
8221 (target_get_osdata): Use find_target_at.
8222 (target_ops::open, target_ops::close, target_ops::can_attach)
8223 (target_ops::attach, target_ops::can_create_inferior)
8224 (target_ops::create_inferior, target_ops::can_run)
8225 (target_can_run): New.
8226 (default_fileio_target): Use regular delegation.
8227 (target_ops::fileio_open, target_ops::fileio_pwrite)
8228 (target_ops::fileio_pread, target_ops::fileio_fstat)
8229 (target_ops::fileio_close, target_ops::fileio_unlink)
8230 (target_ops::fileio_readlink): New.
8231 (target_fileio_open_1, target_fileio_unlink)
8232 (target_fileio_readlink): Always call the target method. Handle
8233 FILEIO_ENOSYS.
8234 (return_zero, return_zero_has_execution): Delete.
8235 (init_dummy_target): Delete.
8236 (dummy_target::dummy_target, dummy_target::shortname)
8237 (dummy_target::longname, dummy_target::doc)
8238 (debug_target::debug_target, debug_target::shortname)
8239 (debug_target::longname, debug_target::doc): New.
8240 (target_supports_delete_record): Use regular delegation.
8241 (setup_target_debug): Delete.
8242 (maintenance_print_target_stack): Skip debug_stratum.
8243 (initialize_targets): Instantiate the_dummy_target and
8244 the_debug_target.
8245 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8246 use target_stack.
8247 (target_auxv_search, fprint_target_auxv): Adjust.
8248 (info_auxv_command): Adjust to use target_stack.
8249 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8250 * exceptions.c (print_flush): Handle a NULL target_stack.
8251 * regcache.c (target_ops_no_register): Refactor as class with
8252 virtual methods.
8253
8254 * exec.c (exec_target): New class.
8255 (exec_ops): Now an exec_target.
8256 (exec_open, exec_close_1, exec_get_section_table)
8257 (exec_xfer_partial, exec_files_info, exec_has_memory)
8258 (exec_make_note_section): Refactor as exec_target methods.
8259 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8260 Delete.
8261 (exec_target::find_memory_regions): New.
8262 (_initialize_exec): Don't call init_exec_ops.
8263 * gdbcore.h (exec_file_clear): Delete.
8264
8265 * corefile.c (core_target): Delete.
8266 (core_file_command): Adjust.
8267 * corelow.c (core_target): New class.
8268 (the_core_target): New.
8269 (core_close): Remove target_ops parameter.
8270 (core_close_cleanup): Adjust.
8271 (core_target::close): New.
8272 (core_open, core_detach, get_core_registers, core_files_info)
8273 (core_xfer_partial, core_thread_alive, core_read_description)
8274 (core_pid_to_str, core_thread_name, core_has_memory)
8275 (core_has_stack, core_has_registers, core_info_proc): Rework as
8276 core_target methods.
8277 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8278 (_initialize_corelow): Initialize the_core_target.
8279 * gdbcore.h (core_target): Delete.
8280 (the_core_target): New.
8281
8282 * ctf.c: (ctf_target): New class.
8283 (ctf_ops): Now a ctf_target.
8284 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8285 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8286 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8287 methods.
8288 (init_ctf_ops): Delete.
8289 (_initialize_ctf): Don't call it.
8290 * tracefile-tfile.c (tfile_target): New class.
8291 (tfile_ops): Now a tfile_target.
8292 (tfile_open, tfile_close, tfile_files_info)
8293 (tfile_get_tracepoint_status, tfile_trace_find)
8294 (tfile_fetch_registers, tfile_xfer_partial)
8295 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8296 Refactor as tfile_target methods.
8297 (tfile_xfer_partial_features): Remove target_ops parameter.
8298 (init_tfile_ops): Delete.
8299 (_initialize_tracefile_tfile): Don't call it.
8300 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8301 (tracefile_has_stack, tracefile_has_registers)
8302 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8303 tracefile_target methods.
8304 (init_tracefile_ops): Delete.
8305 (tracefile_target::tracefile_target): New.
8306 * tracefile.h: Include "target.h".
8307 (tracefile_target): New class.
8308 (init_tracefile_ops): Delete.
8309
8310 * spu-multiarch.c (spu_multiarch_target): New class.
8311 (spu_ops): Now a spu_multiarch_target.
8312 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8313 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8314 (spu_search_memory, spu_mourn_inferior): Refactor as
8315 spu_multiarch_target methods.
8316 (init_spu_ops): Delete.
8317 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8318 complete_target_initialization.
8319
8320 * ravenscar-thread.c (ravenscar_thread_target): New class.
8321 (ravenscar_ops): Now a ravenscar_thread_target.
8322 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8323 (ravenscar_thread_alive, ravenscar_pid_to_str)
8324 (ravenscar_fetch_registers, ravenscar_store_registers)
8325 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8326 (ravenscar_stopped_by_hw_breakpoint)
8327 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8328 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8329 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8330 methods.
8331 (init_ravenscar_thread_ops): Delete.
8332 (_initialize_ravenscar): Remove references to
8333 init_ravenscar_thread_ops and complete_target_initialization.
8334
8335 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8336 (bsd_uthread_target): New class.
8337 (bsd_uthread_ops): Now a bsd_uthread_target.
8338 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8339 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8340 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8341 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8342 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8343 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8344 (bsd_uthread_target): Delete function.
8345 (_initialize_bsd_uthread): Remove reference to
8346 complete_target_initialization.
8347
8348 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8349 (target_bfd): ... this new class.
8350 (target_bfd_xfer_partial, target_bfd_get_section_table)
8351 (target_bfd_close): Refactor as target_bfd methods.
8352 (target_bfd::~target_bfd): New.
8353 (target_bfd_reopen): Adjust.
8354 (target_bfd::close): New.
8355
8356 * record-btrace.c (record_btrace_target): New class.
8357 (record_btrace_ops): Now a record_btrace_target.
8358 (record_btrace_open, record_btrace_stop_recording)
8359 (record_btrace_disconnect, record_btrace_close)
8360 (record_btrace_async, record_btrace_info)
8361 (record_btrace_insn_history, record_btrace_insn_history_range)
8362 (record_btrace_insn_history_from, record_btrace_call_history)
8363 (record_btrace_call_history_range)
8364 (record_btrace_call_history_from, record_btrace_record_method)
8365 (record_btrace_is_replaying, record_btrace_will_replay)
8366 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8367 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8368 (record_btrace_store_registers, record_btrace_prepare_to_store)
8369 (record_btrace_to_get_unwinder)
8370 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8371 (record_btrace_commit_resume, record_btrace_wait)
8372 (record_btrace_stop, record_btrace_can_execute_reverse)
8373 (record_btrace_stopped_by_sw_breakpoint)
8374 (record_btrace_supports_stopped_by_sw_breakpoint)
8375 (record_btrace_stopped_by_hw_breakpoint)
8376 (record_btrace_supports_stopped_by_hw_breakpoint)
8377 (record_btrace_update_thread_list, record_btrace_thread_alive)
8378 (record_btrace_goto_begin, record_btrace_goto_end)
8379 (record_btrace_goto, record_btrace_stop_replaying_all)
8380 (record_btrace_execution_direction)
8381 (record_btrace_prepare_to_generate_core)
8382 (record_btrace_done_generating_core): Refactor as
8383 record_btrace_target methods.
8384 (init_record_btrace_ops): Delete.
8385 (_initialize_record_btrace): Remove reference to
8386 init_record_btrace_ops.
8387 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8388 the execution_direction global.
8389 (record_full_base_target, record_full_target)
8390 (record_full_core_target): New classes.
8391 (record_full_ops): Now a record_full_target.
8392 (record_full_core_ops): Now a record_full_core_target.
8393 (record_full_target::detach, record_full_target::disconnect)
8394 (record_full_core_target::disconnect)
8395 (record_full_target::mourn_inferior, record_full_target::kill):
8396 New.
8397 (record_full_open, record_full_close, record_full_async): Refactor
8398 as methods of the record_full_base_target class.
8399 (record_full_resume, record_full_commit_resume): Refactor
8400 as methods of the record_full_target class.
8401 (record_full_wait, record_full_stopped_by_watchpoint)
8402 (record_full_stopped_data_address)
8403 (record_full_stopped_by_sw_breakpoint)
8404 (record_full_supports_stopped_by_sw_breakpoint)
8405 (record_full_stopped_by_hw_breakpoint)
8406 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8407 methods of the record_full_base_target class.
8408 (record_full_store_registers, record_full_xfer_partial)
8409 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8410 Refactor as methods of the record_full_target class.
8411 (record_full_can_execute_reverse, record_full_get_bookmark)
8412 (record_full_goto_bookmark, record_full_execution_direction)
8413 (record_full_record_method, record_full_info, record_full_delete)
8414 (record_full_is_replaying, record_full_will_replay)
8415 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8416 (record_full_stop_replaying): Refactor as methods of the
8417 record_full_base_target class.
8418 (record_full_core_resume, record_full_core_kill)
8419 (record_full_core_fetch_registers)
8420 (record_full_core_prepare_to_store)
8421 (record_full_core_store_registers, record_full_core_xfer_partial)
8422 (record_full_core_insert_breakpoint)
8423 (record_full_core_remove_breakpoint)
8424 (record_full_core_has_execution): Refactor
8425 as methods of the record_full_core_target class.
8426 (record_full_base_target::supports_delete_record): New.
8427 (init_record_full_ops): Delete.
8428 (init_record_full_core_ops): Delete.
8429 (record_full_save): Refactor as method of the
8430 record_full_base_target class.
8431 (_initialize_record_full): Remove references to
8432 init_record_full_ops and init_record_full_core_ops.
8433
8434 * remote.c (remote_target, extended_remote_target): New classes.
8435 (remote_ops): Now a remote_target.
8436 (extended_remote_ops): Now an extended_remote_target.
8437 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8438 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8439 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8440 (remote_pass_signals, remote_set_syscall_catchpoint)
8441 (remote_program_signals, )
8442 (remote_thread_always_alive): Remove target_ops parameter.
8443 (remote_thread_alive, remote_thread_name)
8444 (remote_update_thread_list, remote_threads_extra_info)
8445 (remote_static_tracepoint_marker_at)
8446 (remote_static_tracepoint_markers_by_strid)
8447 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8448 (remote_open): Refactor as methods of remote_target.
8449 (extended_remote_open, extended_remote_detach)
8450 (extended_remote_attach, extended_remote_post_attach):
8451 (extended_remote_supports_disable_randomization)
8452 (extended_remote_create_inferior): : Refactor as method of
8453 extended_remote_target.
8454 (remote_set_permissions, remote_open_1, remote_detach)
8455 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8456 (remote_resume, remote_commit_resume, remote_stop)
8457 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8458 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8459 (remote_prepare_to_store, remote_store_registers)
8460 (remote_flash_erase, remote_flash_done, remote_files_info)
8461 (remote_kill, remote_mourn, remote_insert_breakpoint)
8462 (remote_remove_breakpoint, remote_insert_watchpoint)
8463 (remote_watchpoint_addr_within_range)
8464 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8465 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8466 (remote_supports_stopped_by_sw_breakpoint)
8467 (remote_stopped_by_hw_breakpoint)
8468 (remote_supports_stopped_by_hw_breakpoint)
8469 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8470 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8471 (remote_verify_memory): Refactor as methods of remote_target.
8472 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8473 parameter.
8474 (remote_xfer_partial, remote_get_memory_xfer_limit)
8475 (remote_search_memory, remote_rcmd, remote_memory_map)
8476 (remote_pid_to_str, remote_get_thread_local_address)
8477 (remote_get_tib_address, remote_read_description): Refactor as
8478 methods of remote_target.
8479 (remote_target::fileio_open, remote_target::fileio_pwrite)
8480 (remote_target::fileio_pread, remote_target::fileio_close): New.
8481 (remote_hostio_readlink, remote_hostio_fstat)
8482 (remote_filesystem_is_local, remote_can_execute_reverse)
8483 (remote_supports_non_stop, remote_supports_disable_randomization)
8484 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8485 (remote_supports_enable_disable_tracepoint)
8486 (remote_supports_string_tracing)
8487 (remote_can_run_breakpoint_commands, remote_trace_init)
8488 (remote_download_tracepoint, remote_can_download_tracepoint)
8489 (remote_download_trace_state_variable, remote_enable_tracepoint)
8490 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8491 (remote_trace_start, remote_get_trace_status)
8492 (remote_get_tracepoint_status, remote_trace_stop)
8493 (remote_trace_find, remote_get_trace_state_variable_value)
8494 (remote_save_trace_data, remote_get_raw_trace_data)
8495 (remote_set_disconnected_tracing, remote_core_of_thread)
8496 (remote_set_circular_trace_buffer, remote_traceframe_info)
8497 (remote_get_min_fast_tracepoint_insn_len)
8498 (remote_set_trace_buffer_size, remote_set_trace_notes)
8499 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8500 (remote_disable_btrace, remote_teardown_btrace)
8501 (remote_read_btrace, remote_btrace_conf)
8502 (remote_augmented_libraries_svr4_read, remote_load)
8503 (remote_pid_to_exec_file, remote_can_do_single_step)
8504 (remote_execution_direction, remote_thread_handle_to_thread_info):
8505 Refactor as methods of remote_target.
8506 (init_remote_ops, init_extended_remote_ops): Delete.
8507 (remote_can_async_p, remote_is_async_p, remote_async)
8508 (remote_thread_events, remote_upload_tracepoints)
8509 (remote_upload_trace_state_variables): Refactor as methods of
8510 remote_target.
8511 (_initialize_remote): Remove references to init_remote_ops and
8512 init_extended_remote_ops.
8513
8514 * remote-sim.c (gdbsim_target): New class.
8515 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8516 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8517 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8518 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8519 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8520 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8521 Refactor as methods of gdbsim_target.
8522 (gdbsim_ops): Now a gdbsim_target.
8523 (init_gdbsim_ops): Delete.
8524 (gdbsim_cntrl_c): Adjust.
8525 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8526
8527 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8528 (the_amd64_linux_nat_target): New.
8529 (amd64_linux_fetch_inferior_registers)
8530 (amd64_linux_store_inferior_registers): Refactor as methods of
8531 amd64_linux_nat_target.
8532 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8533 * i386-linux-nat.c: Don't include "linux-nat.h".
8534 (i386_linux_nat_target): New class.
8535 (the_i386_linux_nat_target): New.
8536 (i386_linux_fetch_inferior_registers)
8537 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8538 as methods of i386_linux_nat_target.
8539 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8540 * inf-child.c (inf_child_ops): Delete.
8541 (inf_child_fetch_inferior_registers)
8542 (inf_child_store_inferior_registers): Delete.
8543 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8544 methods of inf_child_target.
8545 (inf_child_target::supports_terminal_ours)
8546 (inf_child_target::terminal_init)
8547 (inf_child_target::terminal_inferior)
8548 (inf_child_target::terminal_ours_for_output)
8549 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8550 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8551 New.
8552 (inf_child_open, inf_child_disconnect, inf_child_close)
8553 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8554 (inf_child_post_startup_inferior, inf_child_can_run)
8555 (inf_child_pid_to_exec_file): Refactor as methods of
8556 inf_child_target.
8557 (inf_child_follow_fork): Delete.
8558 (inf_child_target::can_create_inferior)
8559 (inf_child_target::can_attach): New.
8560 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8561 (inf_child_target::has_stack, inf_child_target::has_registers)
8562 (inf_child_target::has_execution): New.
8563 (inf_child_fileio_open, inf_child_fileio_pwrite)
8564 (inf_child_fileio_pread, inf_child_fileio_fstat)
8565 (inf_child_fileio_close, inf_child_fileio_unlink)
8566 (inf_child_fileio_readlink, inf_child_use_agent)
8567 (inf_child_can_use_agent): Refactor as methods of
8568 inf_child_target.
8569 (return_zero, inf_child_target): Delete.
8570 (inf_child_target::inf_child_target): New.
8571 * inf-child.h: Include "target.h".
8572 (inf_child_target): Delete function prototype.
8573 (inf_child_target): New class.
8574 (inf_child_open_target, inf_child_mourn_inferior)
8575 (inf_child_maybe_unpush_target): Delete.
8576 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8577 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8578 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8579 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8580 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8581 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8582 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8583 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8584 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8585 methods of inf_ptrace_target.
8586 (inf_ptrace_target): Delete function.
8587 * inf-ptrace.h: Include "inf-child.h".
8588 (inf_ptrace_target): Delete function declaration.
8589 (inf_ptrace_target): New class.
8590 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8591 * linux-nat.c (linux_target): New.
8592 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8593 (linux_nat_target::~linux_nat_target): New.
8594 (linux_child_post_attach, linux_child_post_startup_inferior)
8595 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8596 (linux_child_remove_fork_catchpoint)
8597 (linux_child_insert_vfork_catchpoint)
8598 (linux_child_remove_vfork_catchpoint)
8599 (linux_child_insert_exec_catchpoint)
8600 (linux_child_remove_exec_catchpoint)
8601 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8602 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8603 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8604 (linux_nat_stopped_data_address)
8605 (linux_nat_stopped_by_sw_breakpoint)
8606 (linux_nat_supports_stopped_by_sw_breakpoint)
8607 (linux_nat_stopped_by_hw_breakpoint)
8608 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8609 (linux_nat_kill, linux_nat_mourn_inferior)
8610 (linux_nat_xfer_partial, linux_nat_thread_alive)
8611 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8612 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8613 (linux_child_static_tracepoint_markers_by_strid)
8614 (linux_nat_is_async_p, linux_nat_can_async_p)
8615 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8616 (linux_nat_supports_multi_process)
8617 (linux_nat_supports_disable_randomization, linux_nat_async)
8618 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8619 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8620 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8621 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8622 methods of linux_nat_target.
8623 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8624 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8625 parameter.
8626 (check_stopped_by_watchpoint): Adjust.
8627 (linux_xfer_partial): Delete.
8628 (linux_target_install_ops, linux_target, linux_nat_add_target):
8629 Delete.
8630 (linux_nat_target::linux_nat_target): New.
8631 * linux-nat.h: Include "inf-ptrace.h".
8632 (linux_nat_target): New.
8633 (linux_target, linux_target_install_ops, linux_nat_add_target):
8634 Delete function declarations.
8635 (linux_target): Declare global.
8636 * linux-thread-db.c (thread_db_target): New.
8637 (thread_db_target::thread_db_target): New.
8638 (thread_db_ops): Delete.
8639 (the_thread_db_target): New.
8640 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8641 (thread_db_update_thread_list, thread_db_pid_to_str)
8642 (thread_db_extra_thread_info)
8643 (thread_db_thread_handle_to_thread_info)
8644 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8645 (thread_db_resume): Refactor as methods of thread_db_target.
8646 (init_thread_db_ops): Delete.
8647 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8648 * x86-linux-nat.c: Don't include "linux-nat.h".
8649 (super_post_startup_inferior): Delete.
8650 (x86_linux_nat_target::~x86_linux_nat_target): New.
8651 (x86_linux_child_post_startup_inferior)
8652 (x86_linux_read_description, x86_linux_enable_btrace)
8653 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8654 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8655 methods of x86_linux_nat_target.
8656 (x86_linux_create_target): Delete. Bits folded ...
8657 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8658 pointer.
8659 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8660 (x86_linux_nat_target): New class.
8661 (x86_linux_create_target): Delete.
8662 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8663 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8664 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8665 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8666 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8667 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8668 make extern.
8669 (x86_use_watchpoints): Delete.
8670 * x86-nat.h: Include "breakpoint.h" and "target.h".
8671 (x86_use_watchpoints): Delete.
8672 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8673 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8674 (x86_insert_watchpoint, x86_remove_watchpoint)
8675 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8676 (x86_stopped_by_hw_breakpoint): New declarations.
8677 (x86_nat_target): New template class.
8678
8679 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8680 (the_ppc_linux_nat_target): New.
8681 (ppc_linux_fetch_inferior_registers)
8682 (ppc_linux_can_use_hw_breakpoint)
8683 (ppc_linux_region_ok_for_hw_watchpoint)
8684 (ppc_linux_ranged_break_num_registers)
8685 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8686 (ppc_linux_insert_mask_watchpoint)
8687 (ppc_linux_remove_mask_watchpoint)
8688 (ppc_linux_can_accel_watchpoint_condition)
8689 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8690 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8691 (ppc_linux_watchpoint_addr_within_range)
8692 (ppc_linux_masked_watch_num_registers)
8693 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8694 (ppc_linux_read_description): Refactor as methods of
8695 ppc_linux_nat_target.
8696 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8697
8698 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8699 (procfs_target): New class.
8700 (the_procfs_target): New.
8701 (procfs_target): Delete function.
8702 (procfs_auxv_parse, procfs_attach, procfs_detach)
8703 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8704 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8705 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8706 (procfs_create_inferior, procfs_update_thread_list)
8707 (procfs_thread_alive, procfs_pid_to_str)
8708 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8709 (procfs_stopped_data_address, procfs_insert_watchpoint)
8710 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8711 (proc_find_memory_regions, procfs_info_proc)
8712 (procfs_make_note_section): Refactor as methods of procfs_target.
8713 (_initialize_procfs): Adjust.
8714 * sol-thread.c (sol_thread_target): New class.
8715 (sol_thread_ops): Now a sol_thread_target.
8716 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8717 (sol_thread_fetch_registers, sol_thread_store_registers)
8718 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8719 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8720 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8721 (init_sol_thread_ops): Delete.
8722 (_initialize_sol_thread): Adjust. Remove references to
8723 init_sol_thread_ops and complete_target_initialization.
8724
8725 * windows-nat.c (windows_nat_target): New class.
8726 (windows_fetch_inferior_registers)
8727 (windows_store_inferior_registers, windows_resume, windows_wait)
8728 (windows_attach, windows_detach, windows_pid_to_exec_file)
8729 (windows_files_info, windows_create_inferior)
8730 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8731 (windows_close, windows_pid_to_str, windows_xfer_partial)
8732 (windows_get_tib_address, windows_get_ada_task_ptid)
8733 (windows_thread_name, windows_thread_alive): Refactor as
8734 windows_nat_target methods.
8735 (do_initial_windows_stuff): Adjust.
8736 (windows_target): Delete function.
8737 (_initialize_windows_nat): Adjust.
8738
8739 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8740 (darwin_mourn_inferior, darwin_kill_inferior)
8741 (darwin_create_inferior, darwin_attach, darwin_detach)
8742 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8743 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8744 (darwin_supports_multi_process): Refactor as darwin_nat_target
8745 methods.
8746 (darwin_resume_to, darwin_files_info): Delete.
8747 (_initialize_darwin_inferior): Rename to ...
8748 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8749 * darwin-nat.h: Include "inf-child.h".
8750 (darwin_nat_target): New class.
8751 (darwin_complete_target): Delete.
8752 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8753 (darwin_target): New.
8754 (i386_darwin_fetch_inferior_registers)
8755 (i386_darwin_store_inferior_registers): Refactor as methods of
8756 darwin_nat_target.
8757 (darwin_complete_target): Delete, with ...
8758 (_initialize_i386_darwin_nat): ... bits factored out here.
8759
8760 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8761 (the_alpha_linux_nat_target): New.
8762 (alpha_linux_register_u_offset): Refactor as
8763 alpha_linux_nat_target method.
8764 (_initialize_alpha_linux_nat): Adjust.
8765 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8766 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8767 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8768 methods of linux_nat_trad_target.
8769 (linux_trad_target): Delete.
8770 * linux-nat-trad.h (linux_trad_target): Delete function.
8771 (linux_nat_trad_target): New class.
8772 * mips-linux-nat.c (mips_linux_nat_target): New class.
8773 (super_fetch_registers, super_store_registers, super_close):
8774 Delete.
8775 (the_mips_linux_nat_target): New.
8776 (mips64_linux_regsets_fetch_registers)
8777 (mips64_linux_regsets_store_registers)
8778 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8779 (mips_linux_register_u_offset, mips_linux_read_description)
8780 (mips_linux_can_use_hw_breakpoint)
8781 (mips_linux_stopped_by_watchpoint)
8782 (mips_linux_stopped_data_address)
8783 (mips_linux_region_ok_for_hw_watchpoint)
8784 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8785 (mips_linux_close): Refactor as methods of mips_linux_nat.
8786 (_initialize_mips_linux_nat): Adjust to C++ification.
8787
8788 * aix-thread.c (aix_thread_target): New class.
8789 (aix_thread_ops): Now an aix_thread_target.
8790 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8791 (aix_thread_fetch_registers, aix_thread_store_registers)
8792 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8793 (aix_thread_thread_alive, aix_thread_pid_to_str)
8794 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8795 Refactor as methods of aix_thread_target.
8796 (init_aix_thread_ops): Delete.
8797 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8798 and complete_target_initialization.
8799 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8800 (rs6000_nat_target): New class.
8801 (the_rs6000_nat_target): New.
8802 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8803 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8804 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8805 (super_create_inferior): Delete.
8806 (_initialize_rs6000_nat): Adjust to C++ification.
8807
8808 * arm-linux-nat.c (arm_linux_nat_target): New class.
8809 (the_arm_linux_nat_target): New.
8810 (arm_linux_fetch_inferior_registers)
8811 (arm_linux_store_inferior_registers, arm_linux_read_description)
8812 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8813 (arm_linux_remove_hw_breakpoint)
8814 (arm_linux_region_ok_for_hw_watchpoint)
8815 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8816 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8817 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8818 arm_linux_nat_target.
8819 (_initialize_arm_linux_nat): Adjust to C++ification.
8820
8821 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8822 (the_aarch64_linux_nat_target): New.
8823 (aarch64_linux_fetch_inferior_registers)
8824 (aarch64_linux_store_inferior_registers)
8825 (aarch64_linux_child_post_startup_inferior)
8826 (aarch64_linux_read_description)
8827 (aarch64_linux_can_use_hw_breakpoint)
8828 (aarch64_linux_insert_hw_breakpoint)
8829 (aarch64_linux_remove_hw_breakpoint)
8830 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8831 (aarch64_linux_region_ok_for_hw_watchpoint)
8832 (aarch64_linux_stopped_data_address)
8833 (aarch64_linux_stopped_by_watchpoint)
8834 (aarch64_linux_watchpoint_addr_within_range)
8835 (aarch64_linux_can_do_single_step): Refactor as methods of
8836 aarch64_linux_nat_target.
8837 (super_post_startup_inferior): Delete.
8838 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8839
8840 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8841 (the_hppa_linux_nat_target): New.
8842 (hppa_linux_fetch_inferior_registers)
8843 (hppa_linux_store_inferior_registers): Refactor as methods of
8844 hppa_linux_nat_target.
8845 (_initialize_hppa_linux_nat): Adjust to C++ification.
8846
8847 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8848 (the_ia64_linux_nat_target): New.
8849 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8850 (ia64_linux_stopped_data_address)
8851 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8852 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8853 ia64_linux_nat_target methods.
8854 (super_xfer_partial): Delete.
8855 (_initialize_ia64_linux_nat): Adjust to C++ification.
8856
8857 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8858 (the_m32r_linux_nat_target): New.
8859 (m32r_linux_fetch_inferior_registers)
8860 (m32r_linux_store_inferior_registers): Refactor as
8861 m32r_linux_nat_target methods.
8862 (_initialize_m32r_linux_nat): Adjust to C++ification.
8863
8864 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8865 (the_m68k_linux_nat_target): New.
8866 (m68k_linux_fetch_inferior_registers)
8867 (m68k_linux_store_inferior_registers): Refactor as
8868 m68k_linux_nat_target methods.
8869 (_initialize_m68k_linux_nat): Adjust to C++ification.
8870
8871 * s390-linux-nat.c (s390_linux_nat_target): New class.
8872 (the_s390_linux_nat_target): New.
8873 (s390_linux_fetch_inferior_registers)
8874 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8875 (s390_insert_watchpoint, s390_remove_watchpoint)
8876 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8877 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8878 (s390_auxv_parse, s390_read_description): Refactor as methods of
8879 s390_linux_nat_target.
8880 (_initialize_s390_nat): Adjust to C++ification.
8881
8882 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8883 (the_sparc_linux_nat_target): New.
8884 (_initialize_sparc_linux_nat): Adjust to C++ification.
8885 * sparc-nat.c (sparc_fetch_inferior_registers)
8886 (sparc_store_inferior_registers): Remove target_ops parameter.
8887 * sparc-nat.h (sparc_fetch_inferior_registers)
8888 (sparc_store_inferior_registers): Remove target_ops parameter.
8889 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8890 (the_sparc64_linux_nat_target): New.
8891 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8892
8893 * spu-linux-nat.c (spu_linux_nat_target): New class.
8894 (the_spu_linux_nat_target): New.
8895 (spu_child_post_startup_inferior, spu_child_post_attach)
8896 (spu_child_wait, spu_fetch_inferior_registers)
8897 (spu_store_inferior_registers, spu_xfer_partial)
8898 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8899 methods.
8900 (_initialize_spu_nat): Adjust to C++ification.
8901
8902 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8903 (the_tilegx_linux_nat_target): New.
8904 (fetch_inferior_registers, store_inferior_registers):
8905 Refactor as methods.
8906 (_initialize_tile_linux_nat): Adjust to C++ification.
8907
8908 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8909 (the_xtensa_linux_nat_target): New.
8910 (xtensa_linux_fetch_inferior_registers)
8911 (xtensa_linux_store_inferior_registers): Refactor as
8912 xtensa_linux_nat_target methods.
8913 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8914
8915 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8916 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8917 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8918 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8919 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8920 (fbsd_stopped_by_sw_breakpoint)
8921 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8922 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8923 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8924 (fbsd_post_startup_inferior, fbsd_post_attach)
8925 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8926 (fbsd_set_syscall_catchpoint)
8927 (super_xfer_partial, super_resume, super_wait)
8928 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8929 (fbsd_handle_debug_trap): Remove target_ops parameter.
8930 (fbsd_nat_add_target): Delete.
8931 * fbsd-nat.h: Include "inf-ptrace.h".
8932 (fbsd_nat_add_target): Delete.
8933 (USE_SIGTRAP_SIGINFO): Define.
8934 (fbsd_nat_target): New class.
8935
8936 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8937 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8938 (amd64bsd_target): Delete.
8939 * amd64-bsd-nat.h: New file.
8940 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8941 "x86-bsd-nat.h".
8942 (amd64_fbsd_nat_target): New class.
8943 (the_amd64_fbsd_nat_target): New.
8944 (amd64fbsd_read_description): Refactor as method of
8945 amd64_fbsd_nat_target.
8946 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8947 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8948 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8949 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8950 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8951 (i386bsd_target): Delete.
8952 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8953 (i386bsd_fetch_inferior_registers)
8954 (i386bsd_store_inferior_registers): Declare.
8955 (i386_bsd_nat_target): New class.
8956 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8957 (the_i386_fbsd_nat_target): New.
8958 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8959 i386_fbsd_nat_target methods.
8960 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8961 (_initialize_i386fbsd_nat): Adjust to C++ification.
8962 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8963 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8964 (_initialize_x86_bsd_nat): Adjust to C++ification.
8965 * x86-bsd-nat.h: Include "x86-nat.h".
8966 (x86bsd_target): Delete declaration.
8967 (x86bsd_nat_target): New class.
8968
8969 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8970 (the_aarch64_fbsd_nat_target): New.
8971 (aarch64_fbsd_fetch_inferior_registers)
8972 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8973 aarch64_fbsd_nat_target.
8974 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8975 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8976 (the_alpha_bsd_nat_target): New.
8977 (alphabsd_fetch_inferior_registers)
8978 (alphabsd_store_inferior_registers): Refactor as
8979 alpha_bsd_nat_target methods.
8980 (_initialize_alphabsd_nat): Refactor as methods of
8981 alpha_bsd_nat_target.
8982 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8983 (the_amd64_nbsd_nat_target): New.
8984 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8985 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8986 (the_amd64_obsd_nat_target): New.
8987 (_initialize_amd64obsd_nat): Adjust to C++ification.
8988 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8989 (the_arm_fbsd_nat_target): New.
8990 (arm_fbsd_fetch_inferior_registers)
8991 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8992 (_initialize_arm_fbsd_nat): Refactor as methods of
8993 arm_fbsd_nat_target.
8994 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8995 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8996 (the_arm_netbsd_nat_target): New.
8997 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8998 arm_netbsd_nat_target.
8999 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9000 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9001 (the_hppa_nbsd_nat_target): New.
9002 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9003 hppa_nbsd_nat_target methods.
9004 (_initialize_hppanbsd_nat): Adjust to C++ification.
9005 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9006 (the_hppa_obsd_nat_target): New.
9007 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9008 methods of hppa_obsd_nat_target.
9009 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9010 add_target.
9011 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9012 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9013 add_target.
9014 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9015 (_initialize_i386obsd_nat): Use add_target.
9016 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9017 (the_m68k_bsd_nat_target): New.
9018 (m68kbsd_fetch_inferior_registers)
9019 (m68kbsd_store_inferior_registers): Refactor as methods of
9020 m68k_bsd_nat_target.
9021 (_initialize_m68kbsd_nat): Adjust to C++ification.
9022 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9023 (the_mips_fbsd_nat_target): New.
9024 (mips_fbsd_fetch_inferior_registers)
9025 (mips_fbsd_store_inferior_registers): Refactor as methods of
9026 mips_fbsd_nat_target.
9027 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9028 add_target.
9029 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9030 (the_mips_nbsd_nat_target): New.
9031 (mipsnbsd_fetch_inferior_registers)
9032 (mipsnbsd_store_inferior_registers): Refactor as methods of
9033 mips_nbsd_nat_target.
9034 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9035 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9036 (the_mips64_obsd_nat_target): New.
9037 (mips64obsd_fetch_inferior_registers)
9038 (mips64obsd_store_inferior_registers): Refactor as methods of
9039 mips64_obsd_nat_target.
9040 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9041 add_target.
9042 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9043 nbsd_nat_target.
9044 * nbsd-nat.h: Include "inf-ptrace.h".
9045 (nbsd_nat_target): New class.
9046 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9047 (obsd_wait): Refactor as methods of obsd_nat_target.
9048 (obsd_add_target): Delete.
9049 * obsd-nat.h: Include "inf-ptrace.h".
9050 (obsd_nat_target): New class.
9051 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9052 (the_ppc_fbsd_nat_target): New.
9053 (ppcfbsd_fetch_inferior_registers)
9054 (ppcfbsd_store_inferior_registers): Refactor as methods of
9055 ppc_fbsd_nat_target.
9056 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9057 add_target.
9058 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9059 (the_ppc_nbsd_nat_target): New.
9060 (ppcnbsd_fetch_inferior_registers)
9061 (ppcnbsd_store_inferior_registers): Refactor as methods of
9062 ppc_nbsd_nat_target.
9063 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9064 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9065 (the_ppc_obsd_nat_target): New.
9066 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9067 methods of ppc_obsd_nat_target.
9068 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9069 add_target.
9070 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9071 (the_sh_nbsd_nat_target): New.
9072 (shnbsd_fetch_inferior_registers)
9073 (shnbsd_store_inferior_registers): Refactor as methods of
9074 sh_nbsd_nat_target.
9075 (_initialize_shnbsd_nat): Adjust to C++ification.
9076 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9077 (inf_ptrace_xfer_partial): Delete.
9078 (sparc_xfer_partial, sparc_target): Delete.
9079 * sparc-nat.h (sparc_fetch_inferior_registers)
9080 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9081 (sparc_target): Delete function declaration.
9082 (sparc_target): New template class.
9083 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9084 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9085 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9086 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9087 add_target.
9088 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9089 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9090 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9091 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9092 add_target.
9093 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9094 (the_vax_bsd_nat_target): New.
9095 (vaxbsd_fetch_inferior_registers)
9096 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9097 methods.
9098 (_initialize_vaxbsd_nat): Adjust to C++ification.
9099
9100 * bsd-kvm.c (bsd_kvm_target): New class.
9101 (bsd_kvm_ops): Now a bsd_kvm_target.
9102 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9103 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9104 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9105 bsd_kvm_target.
9106 (bsd_kvm_return_one): Delete.
9107 (bsd_kvm_add_target): Adjust to C++ification.
9108
9109 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9110 (nto_procfs_target_procfs): New classes.
9111 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9112 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9113 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9114 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9115 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9116 (procfs_remove_hw_breakpoint, procfs_resume)
9117 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9118 (procfs_kill_inferior, procfs_store_registers)
9119 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9120 as methods of nto_procfs_target.
9121 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9122 (nto_native_ops): Delete.
9123 (procfs_open, procfs_native_open): Delete.
9124 (nto_native_ops): Now an nto_procfs_target_native.
9125 (init_procfs_targets): Adjust to C++ification.
9126 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9127 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9128 Refactor as methods of nto_procfs_target.
9129
9130 * go32-nat.c (go32_nat_target): New class.
9131 (the_go32_nat_target): New.
9132 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9133 (go32_store_registers, go32_xfer_partial, go32_files_info)
9134 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9135 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9136 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9137 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9138 (go32_target): Delete.
9139 (_initialize_go32_nat): Adjust to C++ification.
9140
9141 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9142 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9143 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9144 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9145 gnu_nat_target.
9146 (gnu_target): Delete.
9147 * gnu-nat.h (gnu_target): Delete.
9148 (gnu_nat_target): New class.
9149 * i386-gnu-nat.c (gnu_base_target): New.
9150 (i386_gnu_nat_target): New class.
9151 (the_i386_gnu_nat_target): New.
9152 (_initialize_i386gnu_nat): Adjust to C++ification.
9153
9154 2018-05-02 Pedro Alves <palves@redhat.com>
9155
9156 * bfd-target.c (target_bfd_xclose): Rename to ...
9157 (target_bfd_close): ... this.
9158 (target_bfd_reopen): Adjust.
9159 * target.c (target_close): Remove references to to_xclose.
9160 * target.h (target_ops::to_xclose): Delete.
9161 (target_ops::to_close): Update comments.
9162
9163 2018-05-02 Pedro Alves <palves@redhat.com>
9164
9165 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9166 "linux-nat.h".
9167 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9168 * inf-ptrace.c (inf_ptrace_register_u_offset)
9169 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9170 (inf_ptrace_store_register, inf_ptrace_store_registers)
9171 (inf_ptrace_trad_target): Move to ...
9172 * linux-nat-trad.c: ... this new file.
9173 * linux-nat-trad.h: New file.
9174 * linux-nat.c (linux_target_install_ops): Make extern.
9175 (linux_trad_target): Delete.
9176 * linux-nat.h (linux_trad_target): Delete declaration.
9177 (linux_target_install_ops): Declare.
9178 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9179 "linux-nat.h".
9180
9181 2018-05-02 Pedro Alves <palves@redhat.com>
9182
9183 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9184 procfs_target/add_target here.
9185 * procfs.c (procfs_target): Make static.
9186 (_initialize_procfs): Call add_target here.
9187 * procfs.h (struct target_ops): Remove forward declaration.
9188 (procfs_target): Remove declaration.
9189 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9190
9191 2018-05-02 Pedro Alves <palves@redhat.com>
9192
9193 * procfs.c (procfs_stopped_by_watchpoint)
9194 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9195 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9196 Forward declare.
9197 (procfs_use_watchpoints): Delete, move contents...
9198 (procfs_target): ... here.
9199 * procfs.h (procfs_use_watchpoints): Delete declaration.
9200 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9201 procfs_use_watchpoints.
9202 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9203 procfs_use_watchpoints.
9204
9205 2018-05-02 Tom Tromey <tom@tromey.com>
9206
9207 PR python/20084:
9208 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9209 and var_zuinteger_unlimited.
9210 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9211 and PARAM_ZUINTEGER_UNLIMITED.
9212 (set_parameter_value): Handle var_zuinteger and
9213 var_zuinteger_unlimited.
9214 (add_setshow_generic): Likewise.
9215 (parmpy_init): Likewise.
9216
9217 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9218
9219 PR rust/23124
9220 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9221 pointer is not null before dereferencing it.
9222
9223 2018-04-30 Tom Tromey <tom@tromey.com>
9224
9225 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9226 is_mi_like_p.
9227
9228 2018-04-30 Tom Tromey <tom@tromey.com>
9229
9230 * breakpoint.c (mention): Remove use of is_mi_like_p.
9231 (print_mention_ranged_breakpoint): Likewise.
9232 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9233 of is_mi_like_p.
9234
9235 2018-04-30 Tom Tromey <tom@tromey.com>
9236
9237 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9238
9239 2018-04-30 Tom Tromey <tom@tromey.com>
9240
9241 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9242 (info_spu_event_command): Remove some uses of is_mi_like_p.
9243
9244 2018-04-30 Tom Tromey <tom@tromey.com>
9245
9246 * python/py-framefilter.c (py_print_single_arg)
9247 (enumerate_locals, py_print_args, py_print_frame): Remove some
9248 uses of is_mi_like_p.
9249
9250 2018-04-30 Tom Tromey <tom@tromey.com>
9251
9252 * ui-out.c: Update.
9253 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9254 * ui-out.h (ui_out::is_mi_like_p): Now const.
9255 (ui_out::do_is_mi_like_p): Now const.
9256 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9257
9258 2018-04-30 Tom Tromey <tom@tromey.com>
9259
9260 * varobj.c (varobj_set_visualizer): Use new_reference.
9261 * python/python.c (gdbpy_decode_line): Use new_reference.
9262 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9263 new_reference.
9264
9265 2018-04-30 Tom Tromey <tom@tromey.com>
9266
9267 * varobj.c (install_new_value): Use new_reference.
9268 * value.h (value_incref): Return void. Swap intro comment with
9269 value_decref.
9270 * value.c (set_value_parent): Use new_reference.
9271 (value_incref): Return void. Update intro comment.
9272 (release_value): Use new_reference.
9273 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9274
9275 2018-04-30 Tom Tromey <tom@tromey.com>
9276
9277 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9278 * gdb_bfd.h (new_bfd_ref): Remove.
9279 (gdb_bfd_open): Update comment.
9280 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9281 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9282 (gdb_bfd_fdopenr): Use new_reference.
9283 * exec.c (exec_file_attach): Use new_reference.
9284
9285 2018-04-30 Tom Tromey <tom@tromey.com>
9286
9287 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9288 method.
9289
9290 2018-04-30 Tom Tromey <tom@tromey.com>
9291
9292 * jit.c (jit_read_code_entry): Use type_align.
9293 * i386-tdep.c (i386_gdbarch_init): Don't call
9294 set_gdbarch_long_long_align_bit.
9295 * gdbarch.sh: Remove long_long_align_bit.
9296 * gdbarch.c, gdbarch.h: Rebuild.
9297 * arc-tdep.c (arc_type_align): New function.
9298 (arc_gdbarch_init): Use arc_type_align. Don't call
9299 set_gdbarch_long_long_align_bit.
9300
9301 2018-04-30 Tom Tromey <tom@tromey.com>
9302
9303 * rust-lang.c (rust_type_alignment): Remove.
9304 (rust_composite_type): Use type_align.
9305
9306 2018-04-30 Tom Tromey <tom@tromey.com>
9307
9308 * NEWS: Mention Type.align.
9309 * python/py-type.c (typy_get_alignof): New function.
9310 (type_object_getset): Add "alignof".
9311
9312 2018-04-30 Tom Tromey <tom@tromey.com>
9313
9314 PR exp/17095:
9315 * NEWS: Update.
9316 * std-operator.def (UNOP_ALIGNOF): New operator.
9317 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9318 New.
9319 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9320 * c-lang.c (c_op_print_tab): Add alignof.
9321 * c-exp.y (ALIGNOF): New token.
9322 (exp): Add "ALIGNOF" production.
9323 (ident_tokens): Add _Alignof and alignof.
9324
9325 2018-04-30 Tom Tromey <tom@tromey.com>
9326
9327 * i386-tdep.c (i386_type_align): New function.
9328 (i386_gdbarch_init): Update.
9329 * gdbarch.sh (type_align): New method.
9330 * gdbarch.c, gdbarch.h: Rebuild.
9331 * arch-utils.h (default_type_align): Declare.
9332 * arch-utils.c (default_type_align): New function.
9333 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9334 (struct type) <align_log2>: New field.
9335 <instance_flags>: Now a bitfield.
9336 (TYPE_RAW_ALIGN): New macro.
9337 (type_align, type_raw_align, set_type_align): Declare.
9338 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9339 functions.
9340 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9341 (get_alignment, maybe_set_alignment): New functions.
9342 (read_structure_type, read_enumeration_type, read_array_type)
9343 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9344 (read_subrange_type, read_base_type): Set type alignment.
9345
9346 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9347
9348 * dwarf2read.c (read_index_from_section): Use bool.
9349
9350 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9351
9352 PR gdb/22950
9353 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9354 with #ifdef.
9355
9356 2018-04-29 John Reiser <jreiser@BitWagon.com>
9357
9358 PR build/22873
9359 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9360 last step, and do it atomically.
9361
9362 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9363
9364 * compile/compile-c-types.c (convert_int, convert_float):
9365 Update for C FE v1.
9366
9367 2018-04-27 Tom Tromey <tom@tromey.com>
9368
9369 PR rust/22545:
9370 * rust-lang.c (rust_inclusive_range_type_p): New function.
9371 (rust_range): Handle inclusive ranges.
9372 (rust_compute_range): Likewise.
9373 * rust-exp.y (struct rust_op) <inclusive>: New field.
9374 (DOTDOTEQ): New constant.
9375 (range_expr): Add "..=" productions.
9376 (operator_tokens): Add "..=" token.
9377 (ast_range): Add "inclusive" parameter.
9378 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9379 ranges.
9380 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9381 bounds values.
9382 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9383 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9384 Update comments.
9385 * expprint.c (print_subexp_standard): Handle new bounds values.
9386 (dump_subexp_body_standard): Likewise.
9387
9388 2018-04-27 Tom Tromey <tom@tromey.com>
9389
9390 * configure: Rebuild.
9391 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9392 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9393 "OVERRIDE".
9394 (class symbol_needs_eval_context): Likewise.
9395 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9396 (mock_mapped_index::symbol_name_at): Use "override". Remove
9397 "virtual".
9398 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9399 "override".
9400 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9401 * aarch64-tdep.c (instruction_reader::read): Use "override".
9402 (instruction_reader_test::read): Likewise.
9403 * arm-tdep.c (instruction_reader::read): Use "override".
9404 (instruction_reader_thumb::read): Likewise.
9405
9406 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9407
9408 PR remote/9665
9409 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9410 instead of remote_send.
9411 (remote_send): Remove.
9412
9413 2018-04-26 Pedro Alves <palves@redhat.com>
9414
9415 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9416 find_function_start_sal instead of find_pc_line.
9417
9418 2018-04-26 Pedro Alves <palves@redhat.com>
9419
9420 * breakpoint.c (set_breakpoint_location_function): Handle
9421 mst_data_gnu_ifunc.
9422 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9423 * elfread.c (elf_symtab_read): Give data symbols with
9424 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9425 (elf_rel_plt_read): Update comment.
9426 * linespec.c (convert_linespec_to_sals): Handle
9427 mst_data_gnu_ifunc.
9428 (minsym_found): Handle mst_data_gnu_ifunc.
9429 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9430 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9431 * parse.c (find_minsym_type_and_address): Handle
9432 mst_data_gnu_ifunc.
9433 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9434 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9435 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9436 comment.
9437 <mst_data_gnu_ifunc>: New enumerator.
9438
9439 2018-04-26 Pedro Alves <palves@redhat.com>
9440
9441 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9442 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9443 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9444 Handle it.
9445 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9446 (lookup_minimal_symbol_by_pc): Adjust.
9447 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9448 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9449 * minsyms.h (lookup_msym_prefer): New enum.
9450 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9451 parameter by a lookup_msym_prefer parameter.
9452
9453 2018-04-26 Pedro Alves <palves@redhat.com>
9454
9455 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9456 ends in "@plt" instead of looking at the symbol's section.
9457
9458 2018-04-26 Pedro Alves <palves@redhat.com>
9459
9460 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9461 all references.
9462 (find_pc_partial_function_gnu_ifunc): Rename to ...
9463 (find_pc_partial_function): ... this, and remove references to
9464 'is_gnu_ifunc_p'.
9465 (find_pc_partial_function): Delete old implementation.
9466 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9467
9468 2018-04-26 Pedro Alves <palves@redhat.com>
9469
9470 * linespec.c (struct bound_minimal_symbol_search_key): New.
9471 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9472 skip first line if we found a GNU ifunc minimal symbol by name.
9473 (compare_msymbols): Change parameters to work with a destructured
9474 lhs minsym.
9475 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9476 functions.
9477
9478 2018-04-26 Pedro Alves <palves@redhat.com>
9479
9480 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9481 ifunc targets here. Instead, if we have an ifunc minsym, use its
9482 address/name.
9483 (add_location_to_breakpoint): Store the minsym and the objfile in
9484 the breakpoint location.
9485 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9486 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9487 Record the minsym in the sal.
9488 * symtab.h (symtab_and_line) <msymbol>: New field.
9489
9490 2018-04-26 Pedro Alves <palves@redhat.com>
9491
9492 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9493 unless we actually resolved the ifunc.
9494
9495 2018-04-26 Pedro Alves <palves@redhat.com>
9496
9497 * c-exp.y (variable production): Prefer ifunc minsyms over
9498 regular function symbols.
9499 * symtab.c (find_gnu_ifunc): New function.
9500 * minsyms.h (lookup_msym_prefer): New enum.
9501 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9502 parameter by a lookup_msym_prefer parameter.
9503 * symtab.h (find_gnu_ifunc): New declaration.
9504
9505 2018-04-26 Pedro Alves <palves@redhat.com>
9506
9507 * blockframe.c (find_gnu_ifunc_target_type): New function.
9508 (find_function_type): New.
9509 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9510 return a value with a memory address.
9511 (eval_call): For calls to GNU ifunc functions, try to find the
9512 type of the target function from the type that the resolver
9513 returns.
9514 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9515 symbols.
9516 * infcall.c (find_function_return_type): Delete.
9517 (find_function_addr): Add 'function_type' parameter. For calls to
9518 GNU ifunc functions, try to find the type of the target function
9519 from the type that the resolver returns, and return it via
9520 FUNCTION_TYPE.
9521 (call_function_by_hand_dummy): Adjust to use the function type
9522 returned by find_function_addr.
9523 (find_function_addr): Add 'function_type' parameter and move
9524 description here.
9525 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9526 declarations.
9527
9528 2018-04-26 Pedro Alves <palves@redhat.com>
9529
9530 * c-exp.y (variable production): Skip finding an alias for ifunc
9531 symbols.
9532
9533 2018-04-26 Pedro Alves <palves@redhat.com>
9534
9535 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9536
9537 2018-04-25 Pedro Alves <palves@redhat.com>
9538
9539 * infcmd.c (kill_command): Print the pid as string, not the whole
9540 thread's ptid. Add comment. s/has been killed/killed/ in output
9541 message.
9542 * remote.c (remote_detach_1): Print the pid as string, not the
9543 whole thread's ptid.
9544
9545 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9546 Sergio Durigan Junior <sergiodj@redhat.com>
9547 Pedro Alves <palves@redhat.com>
9548
9549 * infcmd.c (kill_command): Print message when inferior has
9550 been killed.
9551 * inferior.c (print_inferior_events): Remove 'static'. Set as
9552 '1'.
9553 (add_inferior): Improve message printed when
9554 'print_inferior_events' is on.
9555 (exit_inferior): Remove message printed when
9556 'print_inferior_events' is on.
9557 (detach_inferior): Improve message printed when
9558 'print_inferior_events' is on.
9559 (initialize_inferiors): Use 'add_inferior_silent' to set
9560 'current_inferior_'.
9561 * inferior.h (print_inferior_events): Declare here as
9562 'extern'.
9563 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9564 '[Detaching...]' messages when 'print_inferior_events' is on.
9565 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9566 as prefix/suffix for messages. Remove periods. Fix erroneous
9567 'Detaching after fork from child...', replace it by '... from
9568 parent...'.
9569 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9570 prefix/suffix when printing 'Detaching...' messages. Print
9571 them when 'print_inferior_events' is on.
9572 * remote.c (remote_detach_1): Print message when detaching
9573 from inferior and '!is_fork_parent'.
9574
9575 2018-04-24 Tom Tromey <tom@tromey.com>
9576
9577 * cli-out.h: Reindent.
9578
9579 2018-04-24 Tom Tromey <tom@tromey.com>
9580
9581 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9582 (cli_ui_out::do_field_string): Use fputs_filtered.
9583 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9584
9585 2018-04-23 Tom Tromey <tom@tromey.com>
9586
9587 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9588 gdb::unique_xmalloc_ptr.
9589
9590 2018-04-23 Tom Tromey <tom@tromey.com>
9591
9592 * configure: Rebuild.
9593
9594 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9595
9596 PR gdb/23095
9597 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9598 prepare_for_testing. Set normal_bp to r_debug_state if target
9599 is bsd.
9600
9601 2018-04-21 Pedro Alves <palves@redhat.com>
9602 Rajendra SY <rajendra.sy@gmail.com>
9603
9604 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9605 * remote.c (extended_remote_attach): In all-stop mode, mark the
9606 thread as executing.
9607
9608 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9609
9610 * thread.c (thread_apply_all_command): Fix comment.
9611 (thread_command): Fix comment.
9612
9613 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9614
9615 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9616 parameter.
9617 * features/aarch64-core.c (create_feature_aarch64_core):
9618 Regenerate.
9619 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9620 Likewise.
9621 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9622 Likewise.
9623 * features/i386/32bit-avx512.c
9624 (create_feature_i386_32bit_avx512): Likewise.
9625 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9626 Likewise.
9627 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9628 Likewise.
9629 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9630 Likewise.
9631 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9632 Likewise.
9633 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9634 Likewise.
9635 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9636 Likewise.
9637 * features/i386/64bit-avx512.c
9638 (create_feature_i386_64bit_avx512): Likewise.
9639 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9640 Likewise.
9641 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9642 Likewise.
9643 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9644 Likewise.
9645 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9646 Likewise.
9647 * features/i386/64bit-segments.c
9648 (create_feature_i386_64bit_segments): Likewise.
9649 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9650 Likewise.
9651 * features/i386/x32-core.c
9652 (create_feature_i386_x32_core): Likewise.
9653 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9654 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9655 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9656 * target-descriptions.c: In generated code, don't pass xml
9657 filename.
9658
9659 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9660
9661 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9662 (print_xml_feature::visit_post): Likewise.
9663 (print_xml_feature::visit): Likewise.
9664 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9665 (print_xml_feature): Add new class.
9666 * regformats/regdat.sh: Null xmltarget on feature targets.
9667 * target-descriptions.c (struct target_desc): Add xmltarget.
9668 (maintenance_check_tdesc_xml_convert): Add unittest function.
9669 (tdesc_get_features_xml): Add function to get xml.
9670 (maintenance_check_xml_descriptions): Test xml generation.
9671 * xml-tdesc.c (string_read_description_xml): Add function.
9672 * xml-tdesc.h (string_read_description_xml): Add declaration.
9673
9674 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9675
9676 * features/Makefile: Add feature marker to targets with new style
9677 target descriptions.
9678 * regformats/aarch64.dat: Regenerate.
9679 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9680 * regformats/i386/amd64-avx-linux.dat: Likewise.
9681 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9682 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9683 * regformats/i386/amd64-linux.dat: Likewise.
9684 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9685 * regformats/i386/amd64.dat: Likewise.
9686 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9687 * regformats/i386/i386-avx-linux.dat: Likewise.
9688 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9689 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9690 * regformats/i386/i386-linux.dat: Likewise.
9691 * regformats/i386/i386-mmx-linux.dat: Likewise.
9692 * regformats/i386/i386-mpx-linux.dat: Likewise.
9693 * regformats/i386/i386.dat: Likewise.
9694 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9695 * regformats/i386/x32-avx-linux.dat: Likewise.
9696 * regformats/i386/x32-linux.dat: Likewise.
9697 * regformats/tic6x-c62x-linux.dat: Likewise.
9698 * regformats/tic6x-c64x-linux.dat: Likewise.
9699 * regformats/tic6x-c64xp-linux.dat: Likewise.
9700 * regformats/regdat.sh: Parse feature marker.
9701
9702 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9703
9704 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9705 (tdesc_osabi_name): Likewise.
9706 * target-descriptions.c (tdesc_architecture_name): Add new
9707 function.
9708 (tdesc_osabi_name): Likewise.
9709
9710 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9711
9712 * common/tdesc.c (tdesc_predefined_type): Move to here.
9713 (tdesc_named_type): Likewise.
9714 (tdesc_create_vector): Likewise.
9715 (tdesc_create_struct): Likewise.
9716 (tdesc_set_struct_size): Likewise.
9717 (tdesc_create_union): Likewise.
9718 (tdesc_create_flags): Likewise.
9719 (tdesc_create_enum): Likewise.
9720 (tdesc_add_field): Likewise.
9721 (tdesc_add_typed_bitfield): Likewise.
9722 (tdesc_add_bitfield): Likewise.
9723 (tdesc_add_flag): Likewise.
9724 (tdesc_add_enum_value): Likewise.
9725 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9726 (struct tdesc_type_vector): Likewise.
9727 (struct tdesc_type_field): Likewise.
9728 (struct tdesc_type_with_fields): Likewise.
9729 (tdesc_create_enum): Add declaration.
9730 (tdesc_add_typed_bitfield): Likewise.
9731 (tdesc_add_enum_value): Likewise.
9732 * target-descriptions.c (tdesc_type_field): Move from here.
9733 (tdesc_type_builtin): Likewise.
9734 (tdesc_type_vector): Likewise.
9735 (tdesc_type_with_fields): Likewise.
9736 (tdesc_predefined_types): Likewise.
9737 (tdesc_named_type): Likewise.
9738 (tdesc_create_vector): Likewise.
9739 (tdesc_create_struct): Likewise.
9740 (tdesc_set_struct_size): Likewise.
9741 (tdesc_create_union): Likewise.
9742 (tdesc_create_flags): Likewise.
9743 (tdesc_create_enum): Likewise.
9744 (tdesc_add_field): Likewise.
9745 (tdesc_add_typed_bitfield): Likewise.
9746 (tdesc_add_bitfield): Likewise.
9747 (tdesc_add_flag): Likewise.
9748 (tdesc_add_enum_value): Likewise.
9749 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9750 (tdesc_add_typed_bitfield): Likewise.
9751 (tdesc_add_enum_value): Likewise.
9752
9753 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9754
9755 * common/tdesc.c (tdesc_feature::accept): Move to here.
9756 (tdesc_feature::operator==): Likewise.
9757 (tdesc_create_reg): Likewise.
9758 * common/tdesc.h (tdesc_type_kind): Likewise.
9759 (struct tdesc_type): Likewise.
9760 (struct tdesc_feature): Likewise.
9761 * regformats/regdat.sh: Create a feature.
9762 * target-descriptions.c (tdesc_type_kind): Move from here.
9763 (tdesc_type): Likewise.
9764 (tdesc_type_up): Likewise.
9765 (tdesc_feature): Likewise.
9766 (tdesc_create_reg): Likewise.
9767
9768 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9769
9770 * Makefile.in: Add arch/tdesc.c
9771 * common/tdesc.c: New file.
9772 * common/tdesc.h (tdesc_element_visitor): Move to here.
9773 (tdesc_element): Likewise.
9774 (tdesc_reg): Likewise.
9775 (tdesc_reg_up): Likewise.
9776 * regformats/regdef.h (reg): Add offset to constructors.
9777 * target-descriptions.c (tdesc_element_visitor): Move from here.
9778 (tdesc_element): Likewise.
9779 (tdesc_reg): Likewise.
9780 (tdesc_reg_up): Likewise.
9781
9782 2018-04-17 Tom Tromey <tom@tromey.com>
9783
9784 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9785 discriminant field.
9786
9787 2018-04-17 Tom Tromey <tom@tromey.com>
9788
9789 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9790
9791 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9792
9793 * symtab.c (print_symbol_info): Skip printing filename and line
9794 number when `last' is NULL.
9795 (symtab_symbol_info): Use empty string instead of NULL for first
9796 invocation of print_symbol_info.
9797 (rbreak_command): Pass NULL to `last' parameter of
9798 print_symbol_info.
9799
9800 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9801
9802 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9803 instead of nullptr.
9804
9805 2018-04-16 Pedro Alves <palves@redhat.com>
9806
9807 * MAINTAINERS (sh): Remove.
9808 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9809 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9810 (ALLDEPFILES): Remove sh64-tdep.c.
9811 * NEWS: Mentions that support for SH-5/SH64 is removed.
9812 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9813 (sh*-*-openbsd*): Ditto.
9814 (sh64-*-elf*): Remove.
9815 (sh*): Remove.
9816 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9817 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9818 * sh-tdep.c: No longer include "sh64-tdep.h".
9819 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9820 * sh64-tdep.c, sh64-tdep.h: Remove files.
9821
9822 2018-04-16 Pedro Alves <palves@redhat.com>
9823
9824 * MAINTAINERS: Remove m88k.
9825 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9826 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9827 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9828 * NEWS: Mention that support for m88k was removed.
9829 * configure.host (m88*-*-*): Remove support.
9830 * configure.nat (m88k-*-*): Remove support.
9831 * configure.tgt (m88*-*-openbsd*): Remove.
9832 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9833
9834 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9835
9836 * configure.tgt (x86_tobjs): New variable.
9837 (amd64_tobjs, i386_tobjs): Use it.
9838
9839 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9840
9841 * symtab.c (print_symbol_info): Precede the symbol definition by
9842 the line number when available.
9843 * NEWS: Advertise this enhancement.
9844
9845 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9846
9847 * NEWS (New options): announce set/show record btrace cpu.
9848 * btrace.c: Include record-btrace.h.
9849 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9850 the vendor is unknown.
9851 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9852 Maybe overwrite the btrace configuration's cpu.
9853 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9854 (btrace_fetch): Add cpu parameter. Update callers.
9855 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9856 Maybe overwrite the btrace configuration's cpu. Skip enabling
9857 errata workarounds if the vendor is unknown.
9858 * python/py-record-btrace.c: Include record-btrace.h.
9859 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9860 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9861 * record-btrace.c (record_btrace_cpu_state_kind): New.
9862 (record_btrace_cpu): New.
9863 (set_record_btrace_cpu_cmdlist): New.
9864 (record_btrace_get_cpu): New.
9865 (require_btrace_thread, record_btrace_info)
9866 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9867 (cmd_set_record_btrace_cpu_none): New.
9868 (cmd_set_record_btrace_cpu_auto): New.
9869 (cmd_set_record_btrace_cpu): New.
9870 (cmd_show_record_btrace_cpu): New.
9871 (_initialize_record_btrace): Initialize set/show record btrace cpu
9872 commands.
9873 * record-btrace.h (record_btrace_get_cpu): New.
9874
9875 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9876
9877 * record.c (set_record_command): Fix typo in message.
9878
9879 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9880
9881 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9882
9883 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9884
9885 * infrun.c (process_event_stop_test): Call
9886 gdbarch_in_indirect_branch_thunk.
9887 * gdbarch.sh (in_indirect_branch_thunk): New.
9888 * gdbarch.c: Regenerated.
9889 * gdbarch.h: Regenerated.
9890 * x86-tdep.h: New.
9891 * x86-tdep.c: New.
9892 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9893 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9894 (ALLDEPFILES): Add x86-tdep.c.
9895 * arch-utils.h (default_in_indirect_branch_thunk): New.
9896 * arch-utils.c (default_in_indirect_branch_thunk): New.
9897 * i386-tdep: Include x86-tdep.h.
9898 (i386_in_indirect_branch_thunk): New.
9899 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9900 function.
9901 * amd64-tdep: Include x86-tdep.h.
9902 (amd64_in_indirect_branch_thunk): New.
9903 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9904
9905 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9906
9907 PR gdb/23053
9908 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9909 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9910 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9911 regression.
9912
9913 2018-04-12 Tom Tromey <tom@tromey.com>
9914
9915 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9916 (rust_evaluate_subexp): Likewise.
9917
9918 2018-04-12 Pedro Alves <palves@redhat.com>
9919
9920 * procfs.c (procfs_detach): Make forward declaration's prototype
9921 match definition's protototype.
9922 (proc_get_LDT_entry): Remove stale do_cleanups call.
9923
9924 2018-04-12 Pedro Alves <palves@redhat.com>
9925
9926 * target.h (target_ops::to_has_exited): Delete.
9927 (target_has_exited): Delete.
9928 * target-delegates.c: Regenerate.
9929
9930 2018-04-11 Pedro Alves <palves@redhat.com>
9931
9932 * target.c (fileio_fh_t::t): Add comment.
9933 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9934 (target_fileio_close): Handle a NULL target.
9935 (invalidate_fileio_fh): New.
9936 (target_close): Call it.
9937 * remote.c (remote_hostio_send_command): No longer check whether
9938 remote_desc is open.
9939
9940 2018-04-11 Pedro Alves <palves@redhat.com>
9941
9942 * target.c (fileio_fh_t): Make it a named struct instead of a
9943 typedef.
9944 (fileio_fh_t::is_closed): New method.
9945 (DEF_VEC_O (fileio_fh_t)): Remove.
9946 (fileio_fhandles): Now a std::vector.
9947 (is_closed_fileio_fh): Delete.
9948 (acquire_fileio_fd): Adjust. Rename parameters.
9949 (release_fileio_fd): Adjust.
9950 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9951 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9952 (target_fileio_close): Adjust.
9953
9954 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9955
9956 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9957 index.
9958
9959 2018-04-10 Pedro Alves <palves@redhat.com>
9960
9961 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9962 (scoped_finish_thread_state): New class.
9963 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9964 cleanup.
9965 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9966 (fetch_inferior_event, normal_stop): Likewise.
9967 * thread.c (finish_thread_state_cleanup): Delete.
9968
9969 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9970 Pedro Alves <palves@redhat.com>
9971
9972 * value.c: Include "selftest.h" and "common/array-view.h".
9973 (struct range) <operator ==>: New.
9974 (test_ranges_contain): New.
9975 (check_ranges_vector): New.
9976 (test_insert_into_bit_range_vector): New.
9977 (_initialize_values): Register selftests.
9978 * common/array-view.h (operator==, operator!=): New.
9979
9980 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9981
9982 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9983 an iterator.
9984 * inline-frame.c: Include <algorithm>.
9985 (struct inline_state): Add constructor.
9986 (inline_state_s): Remove.
9987 (DEF_VEC_O(inline_state_s)): Remove.
9988 (inline_states): Change type to std::vector.
9989 (find_inline_frame_state): Adjust to std::vector.
9990 (allocate_inline_frame_state): Remove.
9991 (clear_inline_frame_state): Adjust to std::vector.
9992 (skip_inline_frames): Adjust to std::vector.
9993
9994 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9995
9996 * tracepoint.h (struct trace_state_variable): Add constructor.
9997 <name>: Change type to std::string.
9998 * tracepoint.c (tsv_s): Remove.
9999 (DEF_VEC_O(tsv_s)): Remove.
10000 (tvariables): Change to std::vector.
10001 (create_trace_state_variable): Adjust to std::vector.
10002 (find_trace_state_variable): Likewise.
10003 (find_trace_state_variable_by_number): Likewise.
10004 (delete_trace_state_variable): Likewise.
10005 (trace_variable_command): Adjust to std::string.
10006 (delete_trace_variable_command): Likewise.
10007 (tvariables_info_1): Adjust to std::vector.
10008 (save_trace_state_variables): Likewise.
10009 (start_tracing): Likewise.
10010 (merge_uploaded_trace_state_variables): Adjust to std::vector
10011 and std::string.
10012 * target.h (struct target_ops)
10013 <to_download_trace_state_variable>: Pass reference to
10014 trace_state_variable.
10015 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10016 * target-delegates.c: Re-generate.
10017 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10018 (mi_tsv_deleted): Likewise.
10019 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10020 * remote.c (remote_download_trace_state_variable): Change
10021 pointer to reference and adjust.
10022 * make-target-delegates (parse_argtypes): Handle references.
10023 (write_function_header): Likewise.
10024 (munge_type): Likewise.
10025
10026 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10027
10028 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10029 string_view-selftests.c.
10030 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10031 testsuite.
10032 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10033 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10034 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10035 * unittests/basic_string_view/element_access/char/1.cc:
10036 Likewise.
10037 * unittests/basic_string_view/element_access/char/empty.cc:
10038 Likewise.
10039 * unittests/basic_string_view/element_access/char/front_back.cc:
10040 Likewise.
10041 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10042 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10043 Likewise.
10044 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10045 Likewise.
10046 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10047 Likewise.
10048 * unittests/basic_string_view/operations/compare/char/1.cc:
10049 Likewise.
10050 * unittests/basic_string_view/operations/compare/char/13650.cc:
10051 Likewise.
10052 * unittests/basic_string_view/operations/copy/char/1.cc:
10053 Likewise.
10054 * unittests/basic_string_view/operations/data/char/1.cc:
10055 Likewise.
10056 * unittests/basic_string_view/operations/find/char/1.cc:
10057 Likewise.
10058 * unittests/basic_string_view/operations/find/char/2.cc:
10059 Likewise.
10060 * unittests/basic_string_view/operations/find/char/3.cc:
10061 Likewise.
10062 * unittests/basic_string_view/operations/find/char/4.cc:
10063 Likewise.
10064 * unittests/basic_string_view/operations/rfind/char/1.cc:
10065 Likewise.
10066 * unittests/basic_string_view/operations/rfind/char/2.cc:
10067 Likewise.
10068 * unittests/basic_string_view/operations/rfind/char/3.cc:
10069 Likewise.
10070 * unittests/basic_string_view/operations/substr/char/1.cc:
10071 Likewise.
10072 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10073 * unittests/string_view-selftests.c: New file.
10074
10075 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10076
10077 * unittests/basic_string_view/capacity/1.cc: New file.
10078 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10079 * unittests/basic_string_view/cons/char/1.cc: New file.
10080 * unittests/basic_string_view/cons/char/2.cc: New file.
10081 * unittests/basic_string_view/cons/char/3.cc: New file.
10082 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10083 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10084 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10085 * unittests/basic_string_view/element_access/char/1.cc: New file.
10086 * unittests/basic_string_view/element_access/char/2.cc: New file.
10087 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10088 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10089 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10090 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10091 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10092 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10093 * unittests/basic_string_view/include.cc: New file.
10094 * unittests/basic_string_view/inserters/char/1.cc: New file.
10095 * unittests/basic_string_view/inserters/char/2.cc: New file.
10096 * unittests/basic_string_view/inserters/char/3.cc: New file.
10097 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10098 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10099 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10100 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10101 * unittests/basic_string_view/literals/types.cc: New file.
10102 * unittests/basic_string_view/literals/values.cc: New file.
10103 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10104 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10105 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10106 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10107 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10108 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10109 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10110 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10111 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10112 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10113 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10114 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10115 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10116 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10117 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10118 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10119 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10120 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10121 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10122 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10123 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10124 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10125 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10126 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10127 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10128 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10129 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10130 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10131 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10132 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10133 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10134 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10135 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10136 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10137 * unittests/basic_string_view/operators/char/2.cc: New file.
10138 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10139 * unittests/basic_string_view/range_access/char/1.cc: New file.
10140 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10141 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10142 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10143 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10144 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10145 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10146 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10147 * unittests/basic_string_view/typedefs.cc: New file.
10148 * unittests/basic_string_view/types/1.cc: New file.
10149
10150 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10151
10152 * common/gdb_string_view.h: Remove libstdc++ implementation
10153 details, adjust to gdb reality.
10154 * common/gdb_string_view.tcc: Likewise.
10155 * cli/cli-script.c (struct string_view): Remove.
10156 (user_args) <m_args>: Change element type to gdb::string_view.
10157 (user_args::insert_args): Adjust.
10158
10159 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10160
10161 * common/gdb_string_view.h: New file.
10162 * common/gdb_string_view.tcc: New file.
10163
10164 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10165
10166 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10167 * configure: Re-generate.
10168
10169 2018-04-09 Pedro Alves <palves@redhat.com>
10170
10171 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10172 (set_target_gdbarch): Call
10173 gdb::observers::architecture_changed.notify instead of
10174 observer_notify_architecture_changed.
10175
10176 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10177
10178 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10179 (do_restore_current_traceframe_cleanup): Remove.
10180 (restore_current_traceframe_cleanup_dtor): Remove.
10181 (make_cleanup_restore_current_traceframe): Remove.
10182 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10183 New.
10184 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10185 * infrun.c (fetch_inferior_event): Use
10186 scoped_restore_current_traceframe.
10187
10188 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10189
10190 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10191 Remove.
10192 <n_allocated_type_units>: Remove.
10193 <all_type_units>: Change to std::vector.
10194 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10195 to std::vector change.
10196 (dwarf2_per_objfile::get_cutu): Likewise.
10197 (dwarf2_per_objfile::get_tu): Likewise.
10198 (create_signatured_type_table_from_index): Likewise.
10199 (create_signatured_type_table_from_debug_names): Likewise.
10200 (dw2_symtab_iter_next): Likewise.
10201 (dw2_print_stats): Likewise.
10202 (dw2_expand_all_symtabs): Likewise.
10203 (dw2_expand_marked_cus): Likewise.
10204 (dw2_debug_names_iterator::next): Likewise.
10205 (dwarf2_initialize_objfile): Likewise.
10206 (add_signatured_type_cu_to_table): Likewise.
10207 (create_all_type_units): Likewise.
10208 (add_type_unit): Likewise.
10209 (struct tu_abbrev_offset): Add constructor.
10210 (build_type_psymtabs_1): Adjust to std::vector change.
10211 (print_tu_stats): Likewise.
10212 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10213 (write_debug_names): Likewise.
10214
10215 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10216
10217 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10218 Make an std::vector.
10219 <n_comp_units>: Remove.
10220 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10221 to std::vector change.
10222 (dwarf2_per_objfile::get_cutu): Likewise.
10223 (dwarf2_per_objfile::get_cu): Likewise.
10224 (create_cus_from_index): Likewise.
10225 (create_addrmap_from_index): Likewise.
10226 (create_addrmap_from_aranges): Likewise.
10227 (dwarf2_read_index): Likewise.
10228 (dw2_find_last_source_symtab): Likewise.
10229 (dw2_map_symtabs_matching_filename): Likewise.
10230 (dw2_symtab_iter_next): Likewise.
10231 (dw2_print_stats): Likewise.
10232 (dw2_expand_all_symtabs): Likewise.
10233 (dw2_expand_symtabs_with_fullname): Likewise.
10234 (dw2_expand_marked_cus): Likewise.
10235 (dw2_map_symbol_filenames): Likewise.
10236 (create_cus_from_debug_names): Likewise.
10237 (dwarf2_read_debug_names): Likewise.
10238 (dw2_debug_names_iterator::next): Likewise.
10239 (dwarf2_initialize_objfile): Likewise.
10240 (set_partial_user): Likewise.
10241 (dwarf2_build_psymtabs_hard): Likewise.
10242 (read_comp_units_from_section): Remove arguments, adjust to
10243 std::vector change.
10244 (create_all_comp_units): Adjust to std::vector and
10245 read_comp_units_from_section changes.
10246 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10247 change.
10248 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10249 (psyms_seen_size): Likewise.
10250 (write_gdbindex): Likewise.
10251 (write_debug_names): Likewise.
10252
10253 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10254
10255 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10256 with dwarf2_per_objfile.
10257 (create_cus_from_index): Likewise.
10258 (create_signatured_type_table_from_index): Likewise.
10259 (dwarf2_read_index): Likewise.
10260 (dwarf2_initialize_objfile): Likewise.
10261 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10262 per_cu rather than get_dwarf2_per_objfile.
10263
10264 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10265
10266 * dwarf2read.h (struct signatured_type): Forward declare.
10267 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10268 New methods.
10269 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10270 (dw2_get_cutu): ...this.
10271 (dwarf2_per_objfile::get_cu): Rename from...
10272 (dw2_get_cu): ...this.
10273 (dwarf2_per_objfile::get_tu): New.
10274 (create_addrmap_from_index): Adjust.
10275 (create_addrmap_from_aranges): Adjust.
10276 (dw2_find_last_source_symtab): Adjust.
10277 (dw2_map_symtabs_matching_filename): Adjust.
10278 (dw2_symtab_iter_next): Adjust.
10279 (dw2_print_stats): Adjust.
10280 (dw2_expand_all_symtabs): Adjust.
10281 (dw2_expand_symtabs_with_fullname): Adjust.
10282 (dw2_expand_marked_cus): Adjust.
10283 (dw_expand_symtabs_matching_file_matcher): Adjust.
10284 (dw2_map_symbol_filenames): Adjust.
10285 (dw2_debug_names_iterator::next): Adjust.
10286 (dwarf2_initialize_objfile): Adjust.
10287 (set_partial_user): Adjust.
10288 (dwarf2_build_psymtabs_hard): Adjust.
10289
10290 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10291
10292 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10293 Remove unused variables.
10294 (dw2_map_symtabs_matching_filename): Likewise.
10295 (dwarf2_record_block_ranges): Likewise.
10296 (dwarf2_read_addr_index): Likewise.
10297 (follow_die_offset): Likewise.
10298
10299 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10300
10301 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10302 to symbol_file_add_main.
10303
10304 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10305
10306 PR mi/22299
10307 * mi/mi-console.c (do_fputc_async_safe): New.
10308 (mi_console_file::write_async_safe): New.
10309 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10310 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10311 New.
10312 * ui-file.c (ui_file::putstrn): Adjust call to
10313 fputstrn_unfiltered.
10314 * utils.c (printchar): Replace do_fputs and do_fprintf
10315 parameters by do_fputc.
10316 (fputstr_filtered): Adjust call to printchar.
10317 (fputstr_unfiltered): Likewise.
10318 (fputstrn_filtered): Likewise.
10319 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10320 printchar.
10321 * utils.h (do_fputc_ftype): New typedef.
10322 (fputstrn_unfiltered): Add do_fputc parameter.
10323
10324 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10325
10326 * regformats/i386/i386-avx.dat: Remove.
10327
10328 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10329
10330 PR gdb/22979
10331 * amd64-tdep.c (amd64_none_init_abi): New function.
10332 (amd64_x32_none_init_abi): New function.
10333 (_initialize_amd64_tdep): Register handlers for x86-64 and
10334 x64_32 with GDB_OSABI_NONE.
10335 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10336 GDB_OSABI_NONE osabi.
10337
10338 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10339
10340 PR gdb/22980
10341 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10342 GDB_OSABI_NONE.
10343 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10344 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10345
10346 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10347
10348 * common/byte-vector.h (char_vector): New type.
10349 * target.h (target_read_alloc): Return
10350 gdb::optional<byte_vector>.
10351 (target_read_stralloc): Return gdb::optional<char_vector>.
10352 (target_get_osdata): Return gdb::optional<char_vector>.
10353 * target.c (target_read_alloc_1): Templatize. Replacement
10354 manual memory management with vector.
10355 (target_read_alloc): Change return type, adjust.
10356 (target_read_stralloc): Change return type, adjust.
10357 (target_get_osdata): Change return type, adjust.
10358 * auxv.c (struct auxv_info) <length>: Remove.
10359 <data>: Change type to gdb::optional<byte_vector>.
10360 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10361 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10362 (target_auxv_search): Adjust.
10363 (fprint_target_auxv): Adjust.
10364 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10365 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10366 (linux_make_corefile_notes): Adjust.
10367 * osdata.c (get_osdata): Adjust.
10368 * remote.c (remote_get_threads_with_qxfer): Adjust.
10369 (remote_memory_map): Adjust.
10370 (remote_traceframe_info): Adjust.
10371 (btrace_read_config): Adjust.
10372 (remote_read_btrace): Adjust.
10373 (remote_pid_to_exec_file): Adjust.
10374 * solib-aix.c (solib_aix_get_library_list): Adjust.
10375 * solib-dsbt.c (decode_loadmap): Don't free buf.
10376 (dsbt_get_initial_loadmaps): Adjust.
10377 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10378 * solib-target.c (solib_target_current_sos): Adjust.
10379 * tracepoint.c (sdata_make_value): Adjust.
10380 * xml-support.c (xinclude_start_include): Adjust.
10381 (xml_fetch_content_from_file): Adjust.
10382 * xml-support.h (xml_fetch_another): Change return type.
10383 (xml_fetch_content_from_file): Change return type.
10384 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10385 * xml-tdesc.c (file_read_description_xml): Adjust.
10386 (fetch_available_features_from_target): Change return type.
10387 (target_fetch_description_xml): Adjust.
10388 (target_read_description_xml): Adjust.
10389
10390 2018-04-06 Tom Tromey <tom@tromey.com>
10391
10392 * value.c (~value): Update.
10393 (struct value) <contents>: Now unique_xmalloc_ptr.
10394 (value_contents_bits_eq, allocate_value_contents)
10395 (value_contents_raw, value_contents_all_raw)
10396 (value_contents_for_printing, value_contents_for_printing_const)
10397 (set_value_enclosing_type): Update.
10398
10399 2018-04-06 Tom Tromey <tom@tromey.com>
10400
10401 * value.c (range_s): Remove typedef, VEC.
10402 (struct range): Add operator<.
10403 (range_lessthan): Remove.
10404 (ranges_contain): Change type.
10405 (~value): Update.
10406 (struct value) <unavailable, optimized_out>: Now std::vector.
10407 (value_entirely_available)
10408 (value_entirely_covered_by_range_vector)
10409 (value_entirely_unavailable, value_entirely_optimized_out):
10410 Update.
10411 (insert_into_bit_range_vector): Change argument type.
10412 (find_first_range_overlap): Likewise.
10413 (struct ranges_and_idx, value_contents_bits_eq)
10414 (require_not_optimized_out, require_available): Update.
10415 (ranges_copy_adjusted): Change argument types.
10416 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10417
10418 2018-04-06 Tom Tromey <tom@tromey.com>
10419
10420 * value.c (~value): Update.
10421 (struct value) <parent>: Now a value_ref_ptr.
10422 (value_parent, set_value_parent, value_address, value_copy):
10423 Update.
10424
10425 2018-04-06 Tom Tromey <tom@tromey.com>
10426
10427 * value.c (struct value): Add constructor, destructor, and member
10428 initializers.
10429 (allocate_value_lazy, value_decref): Update.
10430
10431 2018-04-06 Tom Tromey <tom@tromey.com>
10432
10433 * value.c (struct value) <released, next>: Remove.
10434 (all_values): Now a std::vector.
10435 (allocate_value_lazy): Update.
10436 (value_next): Remove.
10437 (value_mark, value_free_to_mark, release_value)
10438 (value_release_to_mark): Update.
10439
10440 2018-04-06 Tom Tromey <tom@tromey.com>
10441
10442 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10443 (free_value_chain): Remove.
10444 * value.c (free_value_chain): Remove.
10445 (value_release_to_mark): Return a std::vector.
10446 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10447 std::vector.
10448 (check_condition): Update.
10449 * eval.c (fetch_subexp_value): Change "val_chain" to a
10450 std::vector.
10451 * breakpoint.c (update_watchpoint): Update.
10452 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10453
10454 2018-04-06 Tom Tromey <tom@tromey.com>
10455
10456 * value.h (free_all_values): Remove.
10457 * value.c (free_all_values): Remove.
10458
10459 2018-04-06 Tom Tromey <tom@tromey.com>
10460
10461 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10462 (value_history_chain, value_history_count): Remove.
10463 (value_history): New global.
10464 (record_latest_value, access_value_history, show_values)
10465 (preserve_values): Update.
10466
10467 2018-04-06 Tom Tromey <tom@tromey.com>
10468
10469 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10470 * varobj.c (varobj_set_display_format, varobj_set_value)
10471 (install_default_visualizer, construct_visualizer)
10472 (install_new_value, ~varobj, varobj_get_value_type)
10473 (my_value_of_variable, varobj_editable_p): Update.
10474 * c-varobj.c (c_describe_child, c_value_of_variable)
10475 (cplus_number_of_children, cplus_describe_child): Update.
10476 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10477 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10478 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10479
10480 2018-04-06 Tom Tromey <tom@tromey.com>
10481
10482 * printcmd.c (last_examine_address): Change type to
10483 value_ref_ptr.
10484 (do_examine, x_command): Update.
10485
10486 2018-04-06 Tom Tromey <tom@tromey.com>
10487
10488 * value.c (release_value): Update.
10489 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10490 (struct bpstats) <val>: Now a value_ref_ptr.
10491 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10492 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10493 (~watchpoint, print_it_watchpoint, watch_command_1)
10494 (invalidate_bp_value_on_memory_change): Update.
10495
10496 2018-04-06 Tom Tromey <tom@tromey.com>
10497
10498 * varobj.c (varobj_clear_saved_item)
10499 (update_dynamic_varobj_children, install_new_value, ~varobj):
10500 Update.
10501 * value.h (value_incref): Move declaration earlier.
10502 (value_decref): Rename from value_free.
10503 (struct value_ref_policy): New.
10504 (value_ref_ptr): New typedef.
10505 (struct value_deleter): Remove.
10506 (gdb_value_up): Remove typedef.
10507 (release_value): Change return type.
10508 (release_value_or_incref): Remove.
10509 * value.c (set_value_parent): Update.
10510 (value_incref): Change return type.
10511 (value_decref): Rename from value_free.
10512 (value_free_to_mark, free_all_values, free_value_chain): Update.
10513 (release_value): Return value_ref_ptr.
10514 (release_value_or_incref): Remove.
10515 (record_latest_value, set_internalvar, clear_internalvar):
10516 Update.
10517 * stack.c (info_frame_command): Don't call value_free.
10518 * python/py-value.c (valpy_dealloc, valpy_new)
10519 (value_to_value_object): Update.
10520 * printcmd.c (do_examine): Update.
10521 * opencl-lang.c (lval_func_free_closure): Update.
10522 * mi/mi-main.c (register_changed_p): Don't call value_free.
10523 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10524 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10525 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10526 value_free.
10527 * guile/scm-value.c (vlscm_free_value_smob)
10528 (vlscm_scm_from_value): Update.
10529 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10530 (frame_unwind_register_unsigned, get_frame_register_bytes)
10531 (put_frame_register_bytes): Don't call value_free.
10532 * findvar.c (address_from_register): Don't call value_free.
10533 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10534 * dwarf2loc.c (entry_data_value_free_closure)
10535 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10536 (dwarf2_evaluate_loc_desc_full): Update.
10537 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10538 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10539 (~watchpoint, watch_command_1)
10540 (invalidate_bp_value_on_memory_change): Update.
10541 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10542
10543 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10544
10545 PR gdb/23022
10546 * warning.m4: Add -Wno-error=deprecated-register.
10547 * configure: Re-generate.
10548
10549 2018-04-05 Tom Tromey <tom@tromey.com>
10550
10551 * linespec.h: Remove include of "vec.h".
10552
10553 2018-04-05 Tom Tromey <tom@tromey.com>
10554
10555 * linespec.c (typep): Remove typedef.
10556 (find_methods, find_superclass_methods): Take a std::vector.
10557 (find_method): Use std::vector.
10558
10559 2018-04-05 Tom Tromey <tom@tromey.com>
10560
10561 * utils.c (compare_strings): Remove.
10562 * utils.h (compare_strings): Remove.
10563 * objc-lang.h (find_imps): Update.
10564 * objc-lang.c (find_methods): Take a std::vector.
10565 (uniquify_strings, find_imps): Likewise.
10566 * linespec.c (find_methods): Take a std::vector.
10567 (decode_objc): Use std::vector.
10568 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10569 a std::vector.
10570 (find_method, find_function_symbols): Use std::vector.
10571
10572 2018-04-05 Tom Tromey <tom@tromey.com>
10573
10574 * completer.c (completion_tracker::completion_tracker): Remove
10575 cast.
10576 (completion_tracker::discard_completions): Likewise.
10577 * breakpoint.c (ambiguous_names_p): Remove cast.
10578 * ada-lang.c (_initialize_ada_language): Remove cast.
10579 * utils.h (streq): Update.
10580 (streq_hash): Add new declaration.
10581 * utils.c (streq): Return bool.
10582 (streq_hash): New function.
10583
10584 2018-04-05 Tom Tromey <tom@tromey.com>
10585
10586 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10587 Remove a string copy.
10588
10589 2018-04-05 Tom Tromey <tom@tromey.com>
10590
10591 * linespec.c (filter_results): Use std::vector.
10592 (decode_line_2, decode_line_full): Update.
10593
10594 2018-04-05 Tom Tromey <tom@tromey.com>
10595
10596 * linespec.c (canonical_to_fullform): Return std::string.
10597 (filter_results): Update.
10598 (struct decode_line_2_item): Add constructor.
10599 <fullform, displayform>: Now std::string.
10600 (decode_line_2_compare_items): Now a std::sort comparator.
10601 (decode_line_2): Update.
10602
10603 2018-04-05 Tom Tromey <tom@tromey.com>
10604
10605 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10606 (unexpected_linespec_error): Update.
10607 (linespec_parse_basic, parse_linespec): Update.
10608
10609 2018-04-05 Tom Tromey <tom@tromey.com>
10610
10611 * linespec.c (linespec_parse_basic): Reindent.
10612
10613 2018-04-05 Tom Tromey <tom@tromey.com>
10614
10615 * minsyms.h (iterate_over_minimal_symbols): Update.
10616 * minsyms.c (iterate_over_minimal_symbols): Take a
10617 gdb::function_view.
10618 * linespec.c (struct collect_minsyms): Remove.
10619 (compare_msyms): Now a std::sort comparator.
10620 (add_minsym): Add parameters.
10621 (search_minsyms_for_name): Update. Use std::vector.
10622
10623 2018-04-03 Tom Tromey <tom@tromey.com>
10624
10625 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10626 gdb::byte_vector.
10627
10628 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10629
10630 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10631
10632 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10633
10634 PR gdb/16959
10635 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10636 printing static type.
10637
10638 2018-04-01 Tom Tromey <tom@tromey.com>
10639
10640 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10641 (rs6000_xfer_shared_libraries): Update.
10642
10643 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10644
10645 * common/gdb_vecs.h (char_ptr): Remove.
10646 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10647
10648 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10649
10650 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10651 with std::vector.
10652 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10653
10654 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10655
10656 * tracepoint.h (struct uploaded_tp): Initialize fields.
10657 <actions, step_actions, cmd_strings>: Change type to
10658 std::vector<char *>.
10659 * tracepoint.c (get_uploaded_tp): Allocate with new.
10660 (free_uploaded_tps): Free with delete.
10661 (parse_tracepoint_definition): Adjust to std::vector change.
10662 * breakpoint.c (read_uploaded_action): Likewise.
10663 (create_tracepoint_from_upload): Likewise.
10664 * ctf.c (ctf_write_uploaded_tp): Likewise.
10665 (SET_ARRAY_FIELD): Likewise.
10666 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10667
10668 2018-03-30 Tom Tromey <tom@tromey.com>
10669
10670 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10671 std::unique_ptr.
10672 (svr4_keep_data_in_core): Update.
10673 (svr4_read_so_list): Update.
10674
10675 2018-03-30 Tom Tromey <tom@tromey.com>
10676
10677 * windows-nat.c (handle_output_debug_string, handle_exception):
10678 Update.
10679 * target.h (target_read_string): Update.
10680 * target.c (target_read_string): Change "string" to
10681 unique_xmalloc_ptr.
10682 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10683 Update.
10684 * solib-frv.c (frv_current_sos): Update.
10685 * solib-dsbt.c (dsbt_current_sos): Update.
10686 * solib-darwin.c (darwin_current_sos): Update.
10687 * linux-thread-db.c (inferior_has_bug): Update.
10688 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10689 Update. Remove alloca.
10690 * ada-lang.c (ada_main_name): Update.
10691
10692 2018-03-30 Tom Tromey <tom@tromey.com>
10693
10694 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10695 (struct dwo_file_deleter): New.
10696 (dwo_file_up): New typedef.
10697 (open_and_init_dwo_file): Use dwo_file_up.
10698 (free_dwo_file_cleanup): Remove.
10699
10700 2018-03-30 Tom Tromey <tom@tromey.com>
10701
10702 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10703 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10704
10705 2018-03-30 Tom Tromey <tom@tromey.com>
10706
10707 * dwarf2read.c (class free_cached_comp_units): New class.
10708 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10709 (free_cached_comp_units): Remove function.
10710
10711 2018-03-30 Tom Tromey <tom@tromey.com>
10712
10713 * utils.h (make_cleanup_unpush_target): Remove.
10714 * inf-ptrace.c (struct target_unpusher): New.
10715 (target_unpush_up) New typedef.
10716 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10717 target_unpush_up.
10718 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10719
10720 2018-03-27 Tom Tromey <tom@tromey.com>
10721
10722 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10723
10724 2018-03-27 Pedro Alves <palves@redhat.com>
10725 Tom Tromey <tom@tromey.com>
10726
10727 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10728 destructor. Now a class.
10729 (gdb_readline_wrapper_cleanup): Remove function.
10730 (gdb_readline_wrapper): Remove cleanups.
10731
10732 2018-03-27 Tom Tromey <tom@tromey.com>
10733
10734 * typeprint.h (struct type_print_options) <local_typedefs,
10735 global_typedefs>: Remove "struct" keyword.
10736 (class typedef_hash_table): New class.
10737 (recursively_update_typedef_hash, add_template_parameters)
10738 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10739 (find_typedef_in_hash): Don't declare.
10740 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10741 (typedef_hash_table::recursively_update): Rename from
10742 recursively_update_typedef_hash. Now a member.
10743 (typedef_hash_table::add_template_parameters): Rename from
10744 add_template_parameters. Now a member.
10745 (typedef_hash_table::typedef_hash_table): Now a constructor;
10746 rename from create_typedef_hash.
10747 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10748 rename from free_typedef_hash.
10749 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10750 (do_free_global_table): Remove.
10751 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10752 from copy_type_recursive.
10753 (create_global_typedef_table): Remove.
10754 (typedef_hash_table::find_global_typedef): Now a member of
10755 typedef_hash_table.
10756 (typedef_hash_table::find_typedef): Rename from
10757 find_typedef_in_hash; now a member.
10758 (whatis_exp): Update.
10759 * extension.h (struct ext_lang_type_printers): Add constructor and
10760 destructor.
10761 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10762 declare.
10763 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10764 Now a constructor; rename from start_ext_lang_type_printers.
10765 (ext_lang_type_printers): Now a destructor; rename from
10766 free_ext_lang_type_printers.
10767 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10768 Update.
10769 (c_type_print_base_struct_union): Update. Remove cleanups.
10770
10771 2018-03-27 Tom Tromey <tom@tromey.com>
10772
10773 * dwarf-index-write.c: Include <cmath>.
10774
10775 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10776
10777 * NEWS: Add entry describing new "set|show varsize-limit" command.
10778 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10779 command.
10780 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10781 "set variable".
10782
10783 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10784
10785 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10786 dwarf-index-write.c
10787 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10788 * dwarf-index-common.c: New file.
10789 * dwarf-index-common.h: New file.
10790 * dwarf-index-write.c: New file.
10791 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10792 (struct dwarf2_section_info): Move from here.
10793 (dwarf2_section_info_def): Likewise.
10794 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10795 (offset_type): Likewise.
10796 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10797 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10798 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10799 (byte_swap): Likewise.
10800 (MAYBE_SWAP): Likewise.
10801 (dwarf2_per_cu_ptr): Likewise.
10802 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10803 (struct tu_stats): Likewise.
10804 (struct dwarf2_per_objfile): Likewise.
10805 (struct dwarf2_per_cu_data): Likewise.
10806 (struct signatured_type): Likewise.
10807 (sig_type_ptr): Likewise.
10808 (DEF_VEC_P (sig_type_ptr)): Likewise.
10809 (INDEX4_SUFFIX): Likewise.
10810 (INDEX5_SUFFIX): Likewise.
10811 (DEBUG_STR_SUFFIX): Likewise.
10812 (dwarf2_read_section): Make non-static.
10813 (mapped_index_string_hash): Move from here.
10814 (dwarf5_djb_hash): Likewise.
10815 (file_write): Likewise.
10816 (class data_buf): Likewise.
10817 (struct symtab_index_entry): Likewise.
10818 (struct mapped_symtab): Likewise.
10819 (find_slot): Likewise.
10820 (hash_expand): Likewise.
10821 (add_index_entry): Likewise.
10822 (uniquify_cu_indices): Likewise.
10823 (class c_str_view): Likewise.
10824 (class c_str_view_hasher): Likewise.
10825 (class vector_hasher): Likewise.
10826 (write_hash_table): Likewise.
10827 (psym_index_map): Likewise.
10828 (struct addrmap_index_data): Likewise.
10829 (add_address_entry): Likewise.
10830 (add_address_entry_worker): Likewise.
10831 (write_address_map): Likewise.
10832 (symbol_kind): Likewise.
10833 (write_psymbols): Likewise.
10834 (struct signatured_type_index_data): Likewise.
10835 (write_one_signatured_type): Likewise.
10836 (recursively_count_psymbols): Likewise.
10837 (recursively_write_psymbols): Likewise.
10838 (class debug_names): Likewise.
10839 (check_dwarf64_offsets): Likewise.
10840 (psyms_seen_size): Likewise.
10841 (write_gdbindex): Likewise.
10842 (write_debug_names): Likewise.
10843 (assert_file_size): Likewise.
10844 (write_psymtabs_to_index): Likewise.
10845 (save_gdb_index_command): Likewise.
10846 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10847 command.
10848 * dwarf2read.h: New file.
10849
10850 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10851
10852 PR gdb/22670
10853 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10854 symbol name if the CU's language stores symbol names in linkage
10855 format.
10856 * language.h (struct language_defn)
10857 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10858 all instances of this struct.
10859
10860 2018-03-26 Tom Tromey <tom@tromey.com>
10861
10862 * stack.c (backtrace_command_1): Remove verbose code.
10863
10864 2018-03-26 Tom Tromey <tom@tromey.com>
10865
10866 * python/py-framefilter.c (py_print_type): Don't catch
10867 exceptions. Return void.
10868 (py_print_value): Likewise.
10869 (py_print_single_arg): Likewise.
10870 (enumerate_args): Don't catch exceptions.
10871 (py_print_args): Likewise.
10872 (py_print_frame): Likewise.
10873 (gdbpy_apply_frame_filter): Catch exceptions here.
10874
10875 2018-03-26 Tom Tromey <tom@tromey.com>
10876
10877 * stack.c (_initialize_stack): Remove trailing newlines from help
10878 text. Add "Usage" line to "backtrace" help.
10879
10880 2018-03-26 Tom Tromey <tom@tromey.com>
10881
10882 PR python/16486:
10883 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10884
10885 2018-03-26 Tom Tromey <tom@tromey.com>
10886
10887 * python/py-framefilter.c (py_print_single_arg): Return
10888 EXT_LANG_BT_ERROR from catch.
10889
10890 2018-03-26 Tom Tromey <tom@tromey.com>
10891
10892 PR backtrace/15584:
10893 * stack.c (backtrace_command_1): Move some code into no-filters
10894 "if".
10895
10896 2018-03-26 Tom Tromey <tom@tromey.com>
10897
10898 * python/py-framefilter.c (throw_quit_or_print_exception): New
10899 function.
10900 (gdbpy_apply_frame_filter): Use it.
10901
10902 2018-03-26 Tom Tromey <tom@tromey.com>
10903
10904 PR cli/17716:
10905 * python/py-framefilter.c (py_print_type, py_print_value)
10906 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10907 RETURN_MASK_ERROR.
10908
10909 2018-03-26 Tom Tromey <tom@tromey.com>
10910
10911 * python/py-framefilter.c (enumerate_args): Use
10912 gdb::unique_xmalloc_ptr.
10913
10914 2018-03-26 Tom Tromey <tom@tromey.com>
10915
10916 * python/py-framefilter.c (py_print_frame): Return
10917 EXT_LANG_BT_OK.
10918 (gdbpy_apply_frame_filter): Update comment.
10919 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10920 Remove.
10921 <EXT_LANG_BT_NO_FILTERS>: Change value.
10922
10923 2018-03-26 Tom Tromey <tom@tromey.com>
10924
10925 PR backtrace/15582:
10926 * stack.c (backtrace_command): Parse "hide" argument.
10927 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10928 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10929 constant.
10930
10931 2018-03-26 Tom Tromey <tom@tromey.com>
10932
10933 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10934 add "flags".
10935 (backtrace_command): Remove "fulltrace", add "flags".
10936
10937 2018-03-26 Tom Tromey <tom@tromey.com>
10938
10939 * stack.c (backtrace_command): Rewrite command line parsing.
10940
10941 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10942
10943 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10944
10945 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10946
10947 * filename-seen-cache.h: Add include guard.
10948
10949 2018-03-26 Keith Seitz <keiths@redhat.com>
10950
10951 * symfile.c (place_section): Remove "struct" from section_addr_info
10952 in comment.
10953 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10954 "struct" keyword from section_addr_info.
10955
10956 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10957
10958 * regformats/regdef.h (reg): Add constructors.
10959
10960 2018-03-25 Pedro Alves <palves@redhat.com>
10961
10962 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10963 if then/else bodies in var_func_name extraction.
10964
10965 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10966
10967 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10968 lookup_minimal_symbol() to find symbol entry.
10969 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10970
10971 2018-03-23 Keith Seitz <keiths@redhat.com>
10972
10973 PR c++/22968
10974 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10975 nested type definitions for C++, too.
10976
10977 2018-03-23 Tom Tromey <tom@tromey.com>
10978
10979 * machoread.c (struct oso_el): Add a constructor. Don't define as
10980 a typedef.
10981 (macho_register_oso): Remove.
10982 (macho_symtab_read): Take a std::vector.
10983 (oso_el_compare_name): Now a std::sort comparator.
10984 (macho_symfile_read_all_oso): Take a std::vector.
10985 (macho_symfile_read): Use std::vector. Remove cleanups.
10986
10987 2018-03-22 Tom Tromey <tom@tromey.com>
10988
10989 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10990 (record_full_goto_bookmark): Use std::string.
10991
10992 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10993
10994 PR tdep/18295
10995 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10996 a single mask.
10997
10998 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10999
11000 * rs6000-tdep.c (store_insn_p): New function.
11001 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11002 and cr_reg to their unshifted values. Use store_insn_p to
11003 match LR saves using either R1 or fdata->alloca_reg. Use
11004 store_insn_p to match CR saves. Set alloca_reg_offset
11005 when alloca_reg and framep are set. Remove lr_reg shift
11006 when assigning to fdata->lr_register.
11007
11008 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11009
11010 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11011 command line args instead of emitting a warning.
11012
11013 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11014
11015 * tracepoint.h (struct static_tracepoint_marker): Initialize
11016 fields, define default constructor, move constructor and move
11017 assignment, disable the rest.
11018 <str_id, extra>: Make std::string.
11019 (release_static_tracepoint_marker): Remove.
11020 (free_current_marker): Remove.
11021 * tracepoint.c (free_current_marker): Remove.
11022 (parse_static_tracepoint_marker_definition): Adjust to
11023 std::string, use new hex2str overload.
11024 (release_static_tracepoint_marker): Remove.
11025 (print_one_static_tracepoint_marker): Get marker by reference
11026 and adjust to std::string.
11027 (info_static_tracepoint_markers_command): Adjust to std::vector
11028 changes
11029 * target.h (static_tracepoint_marker_p): Remove typedef.
11030 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11031 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11032 bool.
11033 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11034 * target-debug.h
11035 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11036 (target_debug_print_std_vector_static_tracepoint_marker): New.
11037 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11038 to...
11039 (target_debug_print_static_tracepoint_marker_p): ... this.
11040 * target-delegates.c: Re-generate.
11041 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11042 Make std::string.
11043 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11044 (decode_static_tracepoint_spec): Adjust to std::vector.
11045 (tracepoint_print_one_detail): Adjust to std::string.
11046 (strace_marker_decode_location): Adjust to std::string.
11047 (update_static_tracepoint): Adjust to std::string, remove call
11048 to release_static_tracepoint_marker.
11049 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11050 Adjust to std::vector.
11051 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11052 (remote_static_tracepoint_markers_by_strid): Adjust to
11053 std::vector.
11054 * common/rsp-low.h (hex2str): New overload with explicit count
11055 of bytes.
11056 * common/rsp-low.c (hex2str): New overload with explicit count
11057 of bytes.
11058 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11059 (_initialize_rsp_low_selftests): Add test_hex2str test.
11060 * unittests/tracepoint-selftests.c
11061 (test_parse_static_tracepoint_marker_definition): Adjust to
11062 std::string.
11063
11064 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11065
11066 * tracepoint.c (parse_static_tracepoint_marker_definition):
11067 Consider case where the definition is followed by more
11068 definitions.
11069 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11070 tracepoint-selftests.c.
11071 * unittests/tracepoint-selftests.c: New.
11072
11073 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11074
11075 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11076 Carvalho.
11077
11078 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11079
11080 * symtab.c (find_pc_sect_line): fixed indentation.
11081
11082 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11083
11084 * symtab.c (find_pc_sect_line): now uses binary search.
11085
11086 2018-03-19 Tom Tromey <tom@tromey.com>
11087
11088 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11089 "IDENT" production.
11090
11091 2018-03-19 Pedro Alves <palves@redhat.com>
11092 Tom Tromey <tom@tromey.com>
11093
11094 * unittests/observable-selftests.c: New file.
11095 * common/observable.h: New file.
11096 * observable.h: New file.
11097 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11098 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11099 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11100 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11101 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11102 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11103 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11104 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11105 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11106 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11107 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11108 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11109 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11110 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11111 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11112 tui/tui-interp.c, valops.c: Update all users.
11113 * tui/tui-hooks.c (tui_bp_created_observer)
11114 (tui_bp_deleted_observer, tui_bp_modified_observer)
11115 (tui_inferior_exit_observer, tui_before_prompt_observer)
11116 (tui_normal_stop_observer, tui_register_changed_observer):
11117 Remove.
11118 (tui_observers_token): New global.
11119 (attach_or_detach, tui_attach_detach_observers): New functions.
11120 (tui_install_hooks, tui_remove_hooks): Use
11121 tui_attach_detach_observers.
11122 * record-btrace.c (record_btrace_thread_observer): Remove.
11123 (record_btrace_thread_observer_token): New global.
11124 * observer.sh: Remove.
11125 * observer.c: Rename to observable.c.
11126 * observable.c (namespace gdb_observers): Define new objects.
11127 (observer_debug): Move into gdb_observers namespace.
11128 (struct observer, struct observer_list, xalloc_observer_list_node)
11129 (xfree_observer_list_node, generic_observer_attach)
11130 (generic_observer_detach, generic_observer_notify): Remove.
11131 (_initialize_observer): Update.
11132 Don't include observer.inc.
11133 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11134 (clean mostlyclean): Likewise.
11135 (observer.h, observer.inc): Remove targets.
11136 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11137 (COMMON_SFILES): Use observable.c, not observer.c.
11138 * .gitignore: Remove observer.h.
11139
11140 2018-03-18 Tom Tromey <tom@tromey.com>
11141
11142 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11143 gdb::def_vector.
11144 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11145
11146 2018-03-17 Tom Tromey <tom@tromey.com>
11147
11148 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11149
11150 2018-03-17 Tom Tromey <tom@tromey.com>
11151
11152 * target.c (class scoped_target_fd): New.
11153 (target_fileio_close_cleanup): Remove.
11154 (target_fileio_read_alloc_1): Use scoped_target_fd.
11155
11156 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11157
11158 * silent-rules.mk: New.
11159 * Makefile.in: Include silent-rules.mk
11160 (srcdir, VPATH, top_srcdir): Move up.
11161 (COMPILE): Add ECHO_CXX.
11162 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11163 (init.c): Add ECHO_INIT_C.
11164 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11165 (version.c): Add ECHO_GEN.
11166 (printcmd.o): Add ECHO_CXX.
11167 (target-float.o): Add ECHO_CXX.
11168 (ada-exp.o): Add ECHO_CXX.
11169 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11170 (insight$(EXEEXT)): Add ECHO_CXXLD.
11171 * gnulib/configure.ac: Add AM_SILENT_RULES.
11172 * gnulib/aclocal.m4: Re-generate.
11173 * gnulib/configure: Re-generate.
11174 * gnulib/import/Makefile.in: Re-generate.
11175
11176 2018-03-16 Tom Tromey <tom@tromey.com>
11177
11178 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11179 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11180 * utils.c (do_free_section_addr_info)
11181 (make_cleanup_free_section_addr_info): Remove.
11182 * symfile.h (struct other_sections): Add constructor.
11183 (struct section_addr_info): Remove.
11184 (section_addr_info): New typedef.
11185 (struct sym_fns) <sym_offsets>: Change type of parameter.
11186 (build_section_addr_info_from_objfile)
11187 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11188 (default_symfile_offsets, symbol_file_add)
11189 (symbol_file_add_from_bfd)
11190 (build_section_addr_info_from_section_table): Update.
11191 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11192 * symfile.c (alloc_section_addr_info): Remove.
11193 (build_section_addr_info_from_section_table): Change return type.
11194 Update.
11195 (build_section_addr_info_from_bfd)
11196 (build_section_addr_info_from_objfile): Likewise.
11197 (free_section_addr_info): Remove.
11198 (relative_addr_info_to_section_offsets): Change type of "addrs".
11199 (addrs_section_compar): Now a std::sort comparator.
11200 (addrs_section_sort): Change return type.
11201 (addr_info_make_relative): Change type of "addrs". Update.
11202 (default_symfile_offsets, syms_from_objfile_1)
11203 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11204 (symbol_file_add_separate): Update.
11205 (symbol_file_add): Change type of "addrs". Update.
11206 (add_symbol_file_command): Update. Remove cleanups.
11207 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11208 cleanups.
11209 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11210 * solib.c (solib_read_symbols): Update.
11211 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11212 * machoread.c (macho_symfile_offsets): Update.
11213 * jit.c (jit_bfd_try_read_symtab): Update.
11214
11215 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11216
11217 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11218 unittests/utils-selftests.c.
11219 * unittests/utils-selftests.c: New file.
11220
11221 2018-03-14 Tom Tromey <tom@tromey.com>
11222
11223 PR cli/14977:
11224 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11225 for NULL.
11226
11227 2018-03-14 Tom Tromey <tom@tromey.com>
11228
11229 PR cli/19918:
11230 * printcmd.c (printf_pointer): Allow "-" in format.
11231
11232 2018-03-14 Tom Tromey <tom@tromey.com>
11233
11234 * printcmd.c (_initialize_printcmd): Add usage to printf.
11235
11236 2018-03-14 Yao Qi <qiyao@sourceware.org>
11237
11238 * MAINTAINERS: Update my email address.
11239
11240 2018-03-13 Tom Tromey <tom@tromey.com>
11241
11242 * machoread.c (macho_check_dsym): Change filenamep to a
11243 std::string*.
11244 (macho_symfile_read): Update.
11245 * symfile.c (load_command): Use std::string.
11246
11247 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11248
11249 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11250 to error message string.
11251 (riscv_register_name): Use xsnprintf instead of sprintf.
11252 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11253 internal_error.
11254 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11255 error.
11256 (riscv_push_dummy_call): Likewise.
11257
11258 2018-03-12 Tom Tromey <tom@tromey.com>
11259
11260 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11261 Use gdb::byte_vector.
11262 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11263
11264 2018-03-12 Yao Qi <yao.qi@linaro.org>
11265
11266 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11267 parameter type to readable_regcache.
11268 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11269 the declaration.
11270
11271 2018-03-11 Tom Tromey <tom@tromey.com>
11272
11273 * dwarf2read.c (struct nextfield): Add initializers.
11274 (struct nextfnfield): Remove.
11275 (struct fnfieldlist): Add initializers. Remove "length" and
11276 "head", use std::vector.
11277 (struct decl_field_list): Remove.
11278 (struct field_info): Add initializers.
11279 <fields, baseclasses>: Now std::vector.
11280 <nbaseclasses, nfnfields, typedef_field_list_count,
11281 nested_types_list_count>: Remove.
11282 (dwarf2_add_field, dwarf2_add_type_defn)
11283 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11284 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11285 (process_structure_scope): Update.
11286
11287 2018-03-11 Tom Tromey <tom@tromey.com>
11288
11289 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11290 for use by std::sort.
11291 (build_type_psymtabs_1): Use std::vector.
11292
11293 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11294
11295 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11296 and LIBMPFR in the printed configuration.
11297
11298 2018-03-08 Tom Tromey <tom@tromey.com>
11299
11300 * source.c (get_filename_and_charpos): Use scoped_fd.
11301 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11302 (procfs_pidlist): Likewise.
11303 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11304 (iterate_over_mappings): Likewise.
11305
11306 2018-03-08 Tom Tromey <tom@tromey.com>
11307
11308 * infcall.c (struct call_return_meta_info)
11309 <stack_temporaries_enabled>: Remove.
11310 (get_call_return_value, call_function_by_hand_dummy): Update.
11311 * thread.c (disable_thread_stack_temporaries): Remove.
11312 (enable_thread_stack_temporaries): Remove.
11313 (thread_stack_temporaries_enabled_p): Return bool.
11314 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11315 (get_last_thread_stack_temporary): Update.
11316 * eval.c (evaluate_subexp): Update.
11317 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11318 class, not a function.
11319 (value_ptr, value_vec): Remove typedefs.
11320 (class thread_info) <stack_temporaries_enabled>: Now bool.
11321 <stack_temporaries>: Now a std::vector.
11322 (thread_stack_temporaries_enabled_p)
11323 (value_in_thread_stack_temporaries): Return bool.
11324
11325 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11326
11327 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11328 (getpkt_or_notif_sane_1): Likewise.
11329
11330 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11331
11332 * build-id.c (build_id_to_debug_bfd): Use std::string.
11333
11334 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11335
11336 * build-id.c (find_separate_debug_file_by_buildid): Return
11337 std::string.
11338 * build-id.h (find_separate_debug_file_by_buildid): Return
11339 std::string.
11340 * coffread.c (coff_symfile_read): Adjust to std::string.
11341 * elfread.c (elf_symfile_read): Adjust to std::string.
11342 * symfile.c (separate_debug_file_exists): Change parameter to
11343 std::string.
11344 (find_separate_debug_file): Return std::string.
11345 (find_separate_debug_file_by_debuglink): Return std::string.
11346 * symfile.h (find_separate_debug_file_by_debuglink): Return
11347 std::string.
11348
11349 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11350
11351 * common/xml-utils.c (xml_escape_text): Move code to...
11352 (xml_escape_text_append): ... this new function.
11353 * common/xml-utils.h (xml_escape_text_append): New declaration.
11354 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11355 New function.
11356 (_initialize_xml_utils): register test_xml_escape_text_append as
11357 a selftest.
11358
11359 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11360
11361 * defs.h: Remove MAX_REGISTER_SIZE.
11362 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11363 asserts.
11364 * python/py-unwind.c (pyuw_sniffer): Likewise.
11365
11366 2018-03-07 Tom Tromey <tom@tromey.com>
11367
11368 * linux-tdep.c (linux_info_proc): Update.
11369 * target.h (struct target_ops) <to_fileio_readlink>: Return
11370 optional<string>.
11371 (target_fileio_readlink): Return optional<string>.
11372 * remote.c (remote_hostio_readlink): Return optional<string>.
11373 * inf-child.c (inf_child_fileio_readlink): Return
11374 optional<string>.
11375 * target.c (target_fileio_readlink): Return optional<string>.
11376
11377 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11378
11379 * regcache.c (cooked_read_test): Add riscv to the list of
11380 architectures that have a save_reggroup.
11381
11382 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11383
11384 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11385 value is not a dynamic class object.
11386
11387 2018-03-06 Tom Tromey <tom@tromey.com>
11388
11389 * rust-exp.y: Formatting fixes.
11390
11391 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11392
11393 * riscv-tdep.c (riscv_register_name): Remove target description
11394 support.
11395 (riscv_gdbarch_init): Remove target description check.
11396
11397 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11398
11399 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11400 comment.
11401 * riscv-tdep.h: Likewise.
11402
11403 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11404
11405 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11406 (riscv_pseudo_register_write): Delete.
11407 (riscv_gdbarch_init): Remove all use of pseudo registers.
11408
11409 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11410
11411 * record-btrace.c (btrace_print_lines): Replace cleanup
11412 parameter with RAII equivalents.
11413 (btrace_insn_history): Replace cleanup with RAII equivalents.
11414 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11415 make_cleanup_ui_out_tuple_begin_end): Remove.
11416 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11417 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11418 make_cleanup_ui_out_list_begin_end): Remove.
11419
11420 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11421
11422 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11423 parameter types to std::vector. Use bool.
11424 (record_btrace_wait): Replace VEC(tp_t) with
11425 std::vector<thread_info *>.
11426 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11427
11428 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11429
11430 * record-btrace.c (record_btrace_disable_callback): Remove.
11431 (struct scoped_btrace_disable): New.
11432 (record_btrace_open): Use scoped_btrace_disable.
11433
11434 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11435
11436 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11437 reading values from registers.
11438
11439 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11440
11441 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11442 where appropriate.
11443
11444 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11445
11446 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11447 change parameter type. Use GDB's print functions, and use
11448 core_addr_to_string where appropriate.
11449 (riscv_push_dummy_call): Use core_addr_to_string where
11450 appropriate, update call to riscv_print_arg_location, and reindent
11451 a few lines.
11452 (riscv_return_value): Update call to riscv_print_arg_location.
11453
11454 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11455 Tim Newsome <tim@sifive.com>
11456 Albert Ou <a0u@eecs.berkeley.edu>
11457 Darius Rad <darius@bluespec.com>
11458
11459 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11460 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11461 (ALLDEPFILES): Add riscv-tdep.c
11462 * configure.tgt: Add riscv support.
11463 * riscv-tdep.c: New file.
11464 * riscv-tdep.h: New file.
11465 * NEWS: Mention new target.
11466 * MAINTAINERS: Add entry for riscv.
11467
11468 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11469
11470 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11471 fields within aggregates.
11472
11473 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11474
11475 * record-btrace.c (btrace_print_lines): Change type of flags to
11476 gdb_disassembly_flags.
11477
11478 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11479
11480 * fbsd-nat.c: Include "inf-ptrace.h".
11481 (USE_SIGTRAP_SIGINFO): Conditionally define.
11482 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11483 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11484 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11485 function.
11486 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11487 Likewise.
11488 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11489 Likewise.
11490 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11491 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11492 "supports_stopped_by_hw_breakpoint" target methods.
11493
11494 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11495
11496 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11497 * fbsd-nat.c (debug_fbsd_nat): New variable.
11498 (show_fbsd_nat_debug): New function.
11499 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11500 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11501
11502 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11503
11504 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11505 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11506 prototype.
11507 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11508 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11509 method.
11510
11511 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11512
11513 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11514 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11515
11516 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11517
11518 * charset.c (struct charset_vector): New.
11519 (charsets): Change type to charset_vector.
11520 (find_charset_names): Adjust.
11521 (add_one): Adjust.
11522 (_initialize_charset): Adjust.
11523
11524 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11525
11526 * progspace.h (struct program_space) <deleted_solibs>: Change
11527 type to std::vector<std::string>.
11528 * progspace.c (clear_program_space_solib_cache): Adjust.
11529 * breakpoint.c (print_solib_event): Adjust.
11530 (check_status_catch_solib): Adjust.
11531 * solib.c (update_solib_list): Adjust.
11532 * ui-out.h (class ui_out) <field_string>: New overload.
11533 * ui-out.c (ui_out::field_string): New overload.
11534
11535 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11536
11537 * progspace.h (struct program_space): Add constructor and
11538 destructor, initialize fields.
11539 (add_program_space): Remove.
11540 * progspace.c (add_program_space): Rename to...
11541 (program_space::program_space): ... this.
11542 (release_program_space): Rename to...
11543 (program_space::~program_space): ... this.
11544 (delete_program_space): Use delete to delete program_space.
11545 (initialize_progspace): Use new to allocate program_space.
11546 * inferior.c (add_inferior_with_spaces): Likewise.
11547 (clone_inferior_command): Likewise.
11548 * infrun.c (follow_fork_inferior): Likewise.
11549 (handle_vfork_child_exec_or_exit): Likewise.
11550
11551 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11552
11553 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11554 (delim_string_to_char_ptr_vec): Return std::vector of
11555 gdb::unique_xmalloc_ptr.
11556 (dirnames_to_char_ptr_vec_append): Take std::vector of
11557 gdb::unique_xmalloc_ptr.
11558 (dirnames_to_char_ptr_vec): Return std::vector of
11559 gdb::unique_xmalloc_ptr.
11560 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11561 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11562 (delim_string_to_char_ptr_vec): Return an std::vector of
11563 gdb::unique_xmalloc_ptr, adjust the code.
11564 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11565 gdb::unique_xmalloc_ptr, adjust the code.
11566 (dirnames_to_char_ptr_vec): Return an std::vector of
11567 gdb::unique_xmalloc_ptr, adjust the code.
11568 * auto-load.c (auto_load_safe_path_vec): Change type to
11569 std::vector of gdb::unique_xmalloc_ptr.
11570 (auto_load_expand_dir_vars): Return an std::vector of
11571 gdb::unique_xmalloc_ptr, adjust the code.
11572 (auto_load_safe_path_vec_update): Adjust.
11573 (filename_is_in_auto_load_safe_path_vec): Adjust.
11574 (auto_load_objfile_script_1): Adjust.
11575 * build-id.c (build_id_to_debug_bfd): Adjust.
11576 * linux-thread-db.c (thread_db_load_search): Adjust.
11577 * source.c (add_path): Adjust.
11578 (openp): Adjust.
11579 * symfile.c (find_separate_debug_file): Adjust.
11580 * utils.c (do_free_char_ptr_vec): Remove.
11581 (make_cleanup_free_char_ptr_vec): Remove.
11582
11583 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11584
11585 PR gdb/22907
11586 * common/pathstuff.c: Conditionally include "<windows.h>".
11587
11588 2018-03-01 Georg Sauthoff <mail@georg.so>
11589
11590 PR gdb/22888
11591 * gcore.in: Quote variables and switch interpreter to bash.
11592
11593 2018-03-01 Tom Tromey <tom@tromey.com>
11594
11595 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11596 assertion. Add assertion for discriminant_index.
11597 (quirk_rust_enum): Use correct base type name in univariant case.
11598
11599 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11600
11601 * record.c (get_call_history_modifiers): Return a
11602 record_print_flags.
11603 (cmd_record_call_history): Adjust.
11604 * record-btrace.c (record_btrace_call_history): Adjust.
11605 (record_btrace_call_history_range): Adjust.
11606 (record_btrace_call_history_from): Adjust.
11607 * target-debug.h (target_debug_print_record_print_flags): New.
11608 * target-delegates.c: Re-generate.
11609 * target.c (target_call_history): Change flags type.
11610 (target_call_history_from): Likewise.
11611 (target_call_history_range): Likewise.
11612 * target.h (struct target_ops) <target_call_history>: Likewise.
11613 (target_call_history_from): Likewise.
11614 (target_call_history_range): Likewise.
11615
11616 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11617 Simon Marchi <simon.marchi@polymtl.ca>
11618
11619 * common/common-utils.c: Include "sys/stat.h".
11620 (is_regular_file): Move here from "source.c"; change return
11621 type to "bool".
11622 * common/common-utils.h (is_regular_file): New prototype.
11623 * common/pathstuff.c (contains_dir_separator): New function.
11624 * common/pathstuff.h (contains_dir_separator): New prototype.
11625 * source.c: Don't include "sys/stat.h".
11626 (is_regular_file): Move to "common/common-utils.c".
11627
11628 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11629
11630 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11631 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11632 * auto-load.c: Include "common/pathstuff.h".
11633 * common/common-def.h (current_directory): Move here.
11634 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11635 function.
11636 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11637 prototype.
11638 * common/pathstuff.c: New file.
11639 * common/pathstuff.h: New file.
11640 * compile/compile.c: Include "common/pathstuff.h".
11641 * defs.h (current_directory): Move to "common/common-defs.h".
11642 * dwarf2read.c: Include "common/pathstuff.h".
11643 * exec.c: Likewise.
11644 * guile/scm-safe-call.c: Likewise.
11645 * linux-thread-db.c: Likewise.
11646 * main.c: Likewise.
11647 * nto-tdep.c: Likewise.
11648 * objfiles.c: Likewise.
11649 * source.c: Likewise.
11650 * symtab.c: Likewise.
11651 * utils.c: Include "common/pathstuff.h".
11652 (gdb_realpath): Move to "common/pathstuff.c".
11653 (gdb_realpath_keepfile): Likewise.
11654 (gdb_abspath): Likewise.
11655 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11656 (gdb_realpath_keepfile): Likewise.
11657 (gdb_abspath): Likewise.
11658
11659 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11660
11661 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11662 wildcard process pid for super_resume for kernels with a
11663 specific bug.
11664
11665 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11666
11667 * compile/compile.c (get_args): Add additional comments
11668 explaining function.
11669
11670 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11671 Tom Tromey <tom@tromey.com>
11672
11673 * target.h (memory_write_request_s): Remove typedef. Don't define
11674 VEC.
11675 (target_write_memory_blocks): Change argument to std::vector.
11676 (struct memory_write_request): Add constructor.
11677 * target-memory.c (compare_block_starting_address): Return bool.
11678 Change argument types.
11679 (claim_memory): Change arguments to use std::vector.
11680 (split_regular_and_flash_blocks, blocks_to_erase)
11681 (compute_garbled_blocks): Likewise.
11682 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11683 (target_write_memory_blocks): Change argument to std::vector.
11684 * symfile.c (struct load_section_data): Add constructor and
11685 destructor. Use std::vector for "requests".
11686 (struct load_progress_data): Add initializers.
11687 (load_section_callback): Update. Use "new".
11688 (clear_memory_write_data): Remove.
11689 (generic_load): Update.
11690
11691 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11692
11693 * arch/aarch64.h: Use common/tdesc.h.
11694
11695 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11696
11697 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11698 architecture with a 64-bit ABI.
11699
11700 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11701
11702 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11703 ahead of target description loading.
11704
11705 2018-02-26 Tom Tromey <tom@tromey.com>
11706
11707 * stack.c (backtrace_command_1): Update.
11708 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11709 of "flags".
11710 * python/py-framefilter.c (py_print_frame)
11711 (gdbpy_apply_frame_filter): Change type of "flags".
11712 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11713 of "flags".
11714 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11715 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11716 * extension.h (enum frame_filter_flag): Rename from
11717 frame_filter_flags.
11718 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11719 (apply_ext_lang_frame_filter): Change type of "flags".
11720 * extension.c (apply_ext_lang_frame_filter): Change type of
11721 "flags".
11722 * extension-priv.h (struct extension_language_ops)
11723 <apply_frame_filter>: Change type of "flags".
11724
11725 2018-02-26 Tom Tromey <tom@tromey.com>
11726
11727 PR python/16497:
11728 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11729 off-by-one in py_end computation.
11730 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11731 PRINT_MORE_FRAMES.
11732 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11733 constant.
11734
11735 2018-02-26 Tom Tromey <tom@tromey.com>
11736
11737 * dwarf2read.c (struct variant_field): New.
11738 (struct nextfield) <variant>: New field.
11739 (dwarf2_add_field): Handle DW_TAG_variant_part.
11740 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11741 discriminated union.
11742 (read_structure_type): Handle DW_TAG_variant_part.
11743 (handle_struct_member_die): New function, extracted from
11744 process_structure_scope. Handle DW_TAG_variant.
11745 (process_structure_scope): Handle discriminated unions. Call
11746 handle_struct_member_die.
11747
11748 2018-02-26 Tom Tromey <tom@tromey.com>
11749
11750 * rust-lang.h (rust_last_path_segment): Declare.
11751 * rust-lang.c (rust_last_path_segment): Now public. Change
11752 contract.
11753 (struct disr_info): Remove.
11754 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11755 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11756 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11757 (rust_enum_p, rust_enum_variant): New function.
11758 (rust_underscore_fields): Remove "offset" parameter.
11759 (rust_print_enum): New function.
11760 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11761 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11762 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11763 enums.
11764 (rust_internal_print_type): New function, from rust_print_type.
11765 Remove enum code.
11766 (rust_print_type): Call rust_internal_print_type.
11767 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11768 Update enum handling.
11769 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11770 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11771 (rust_union_quirks): New functions.
11772 (process_full_comp_unit, process_full_type_unit): Call
11773 rust_union_quirks.
11774 (process_structure_scope): Update rust_unions if necessary.
11775
11776 2018-02-26 Tom Tromey <tom@tromey.com>
11777
11778 * value.h (value_union_variant): Declare.
11779 * valops.c (value_union_variant): New function.
11780 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11781 (struct discriminant_info): New.
11782 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11783 enumerator.
11784 (struct main_type) <flag_discriminated_union>: New field.
11785
11786 2018-02-26 Tom Tromey <tom@tromey.com>
11787
11788 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11789 unittests/unpack-selftests.c.
11790 * unittests/unpack-selftests.c: New file.
11791 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11792
11793 2018-02-26 Yao Qi <yao.qi@linaro.org>
11794
11795 * dwarf2read.c (struct partial_die_info) <read>: New method.
11796 (read_partial_die): Remove the declaration.
11797 (load_partial_dies): Update.
11798 (partial_die_info::partial_die_info):
11799 (read_partial_die): Change it to partial_die_info::read.
11800
11801 2018-02-26 Yao Qi <yao.qi@linaro.org>
11802
11803 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11804 (fixup_partial_die): Remove declaration.
11805 (scan_partial_symbols): Update.
11806 (partial_die_parent_scope): Likewise.
11807 (partial_die_full_name): Likewise.
11808 (fixup_partial_die): Change it to partial_die_info::fixup.
11809
11810 2018-02-26 Yao Qi <yao.qi@linaro.org>
11811
11812 * dwarf2read.c (read_partial_die): Update the declaration.
11813 (load_partial_dies): Caller update.
11814 (read_partial_die): Remove one argument abbrev_len.
11815
11816 2018-02-26 Yao Qi <yao.qi@linaro.org>
11817
11818 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11819 assignment operator.
11820 (load_partial_dies): Use ctor and copy ctor.
11821 (read_partial_die): Update.
11822 (dwarf2_cu::find_partial_die): Use ctor.
11823
11824 2018-02-26 Yao Qi <yao.qi@linaro.org>
11825
11826 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11827 (find_partial_die_in_comp_unit): Change it to
11828 dwarf2_cu::find_partial_die.
11829 (find_partial_die): Update.
11830
11831 2018-02-26 Yao Qi <yao.qi@linaro.org>
11832
11833 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11834 is NULL.
11835
11836 2018-02-26 Yao Qi <yao.qi@linaro.org>
11837
11838 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11839
11840 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11841
11842 * arch/amd64.h: Use common/tdesc.h.
11843 * arch/i386.c: Likewise.
11844 * arch/i386.h: Likewise.
11845 * arch/tic6x.c: Likewise.
11846 * arch/tdesc.h: Move file from here...
11847 * common/tdesc.h: ...to here.
11848 * features/aarch64-core.c: Regenerate.
11849 * features/aarch64-fpu.c: Regenerate.
11850 * features/i386/32bit-avx.c: Regenerate.
11851 * features/i386/32bit-avx512.c: Regenerate.
11852 * features/i386/32bit-core.c: Regenerate.
11853 * features/i386/32bit-linux.c: Regenerate.
11854 * features/i386/32bit-mpx.c: Regenerate.
11855 * features/i386/32bit-pkeys.c: Regenerate.
11856 * features/i386/32bit-sse.c: Regenerate.
11857 * features/i386/64bit-avx.c: Regenerate.
11858 * features/i386/64bit-avx512.c: Regenerate.
11859 * features/i386/64bit-core.c: Regenerate.
11860 * features/i386/64bit-linux.c: Regenerate.
11861 * features/i386/64bit-mpx.c: Regenerate.
11862 * features/i386/64bit-pkeys.c: Regenerate.
11863 * features/i386/64bit-segments.c: Regenerate.
11864 * features/i386/64bit-sse.c: Regenerate.
11865 * features/i386/x32-core.c: Regenerate.
11866 * features/tic6x-c6xp.c: Regenerate.
11867 * features/tic6x-core.c: Regenerate.
11868 * features/tic6x-gp.c: Regenerate.
11869 * target-descriptions.c: Use common/tdesc.h.
11870 * target-descriptions.h: Likewise.
11871
11872 2018-02-24 Tom Tromey <tom@tromey.com>
11873
11874 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11875 (try_thread_db_load_from_dir, thread_db_load_search): Use
11876 std::string.
11877 (info_auto_load_libthread_db_compare): Return bool. Change
11878 argument types.
11879 (info_auto_load_libthread_db): Use std::vector, std::string.
11880 Remove cleanups.
11881
11882 2018-02-24 Tom Tromey <tom@tromey.com>
11883
11884 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11885 std::string.
11886 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11887 std::string*.
11888 * gdbarch.c: Rebuild.
11889 * gdbarch.h: Rebuild.
11890 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11891 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11892 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11893 std::string*.
11894
11895 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11896
11897 * gdbtypes.h (sect_offset): Change type to uint64_t.
11898 (sect_offset_str): New function.
11899 * dwarf2read.c (create_addrmap_from_aranges): Use
11900 sect_offset_str.
11901 (error_check_comp_unit_head): Likewise.
11902 (create_debug_type_hash_table): Likewise.
11903 (read_cutu_die_from_dwo): Likewise.
11904 (init_cutu_and_read_dies): Likewise.
11905 (init_cutu_and_read_dies_no_follow): Likewise.
11906 (process_psymtab_comp_unit_reader): Likewise.
11907 (partial_die_parent_scope): Likewise.
11908 (peek_die_abbrev): Likewise.
11909 (process_queue): Likewise.
11910 (dwarf2_physname): Likewise.
11911 (read_namespace_alias): Likewise.
11912 (read_import_statement): Likewise.
11913 (create_dwo_cu_reader): Likewise.
11914 (create_cus_hash_table): Likewise.
11915 (lookup_dwo_cutu): Likewise.
11916 (inherit_abstract_dies): Likewise.
11917 (read_func_scope): Likewise.
11918 (read_call_site_scope): Likewise.
11919 (dwarf2_add_member_fn): Likewise.
11920 (read_common_block): Likewise.
11921 (read_module_type): Likewise.
11922 (read_typedef): Likewise.
11923 (read_subrange_type): Likewise.
11924 (load_partial_dies): Likewise.
11925 (read_partial_die): Likewise.
11926 (find_partial_die): Likewise.
11927 (read_str_index): Likewise.
11928 (dwarf2_string_attr): Likewise.
11929 (build_error_marker_type): Likewise.
11930 (lookup_die_type): Likewise.
11931 (dump_die_shallow): Likewise.
11932 (follow_die_ref): Likewise.
11933 (dwarf2_fetch_die_loc_sect_off): Likewise.
11934 (dwarf2_fetch_constant_bytes): Likewise.
11935 (follow_die_sig): Likewise.
11936 (get_signatured_type): Likewise.
11937 (get_DW_AT_signature_type): Likewise.
11938 (dwarf2_find_containing_comp_unit): Likewise.
11939 (set_die_type): Likewise.
11940
11941 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11942
11943 * arch/aarch64.c: Include "common-defs.h".
11944 * arch/amd64.c: Likewise.
11945 * arch/i386.c: Likewise.
11946
11947 2018-02-21 Tom Tromey <tom@tromey.com>
11948
11949 * value.h: (extract_field_op): Update.
11950 * eval.c (extract_field_op): Return a const char *.
11951 * expression.h (parse_expression_for_completion): Update.
11952 * completer.c (complete_expression): Update.
11953 (add_struct_fields): Make fieldname const.
11954 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11955 (mark_completion_tag, parse_exp_in_context_1): Update.
11956 (parse_expression_for_completion): Change "name" to
11957 unique_xmalloc_ptr*.
11958
11959 2018-02-21 Tom Tromey <tom@tromey.com>
11960
11961 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11962
11963 2018-02-21 Yao Qi <yao.qi@linaro.org>
11964
11965 * avr-tdep.c (avr_read_pc): Change parameter type to
11966 readable_regcache.
11967 * gdbarch.sh (read_pc): Likewise.
11968 * gdbarch.c: Re-generated.
11969 * gdbarch.h: Re-generated.
11970 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11971 readable_regcache.
11972 * ia64-tdep.c (ia64_read_pc): Likewise.
11973 * mips-tdep.c (mips_read_pc): Likewise.
11974 * spu-tdep.c (spu_read_pc): Likewise.
11975
11976 2018-02-21 Yao Qi <yao.qi@linaro.org>
11977
11978 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11979 * regcache-dump.c: New file.
11980 * regcache.c: Move register_dump to regcache-dump.c.
11981 (maintenance_print_registers): Likewise.
11982 (maintenance_print_raw_registers): Likewise.
11983 (maintenance_print_cooked_registers): Likewise.
11984 (maintenance_print_register_groups): Likewise.
11985 (maintenance_print_remote_registers): Likewise.
11986 (_initialize_regcache): Likewise.
11987 * regcache.h (register_dump): Moved from regcache.c.
11988
11989 2018-02-21 Yao Qi <yao.qi@linaro.org>
11990
11991 * regcache.c (regcache::regcache): Update.
11992 (regcache::invalidate): Move it to detached_regcache::invalidate.
11993 (get_thread_arch_aspace_regcache): Update.
11994 (regcache::raw_update): Update.
11995 (regcache::cooked_read): Remove some code.
11996 (regcache::cooked_read_value): Likewise.
11997 (regcache::raw_write): Remove assert on m_readonly_p.
11998 (regcache::raw_supply_integer): Move it to
11999 detached_regcache::raw_supply_integer.
12000 (regcache::raw_supply_zeroed): Likewise.
12001 * regcache.h (detached_regcache) <raw_supply_integer>: New
12002 declaration.
12003 <raw_supply_zeroed, invalidate>: Likewise.
12004 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12005 <invalidate>: Likewise.
12006 <m_readonly_p>: Removed.
12007
12008 2018-02-21 Yao Qi <yao.qi@linaro.org>
12009
12010 * infcmd.c (get_return_value): Let stop_regs point to
12011 get_current_regcache.
12012 * regcache.c (regcache::regcache): Remove.
12013 (register_dump_reg_buffer): New class.
12014 (regcache_print): Adjust.
12015 * regcache.h (regcache): Remove constructors.
12016
12017 2018-02-21 Yao Qi <yao.qi@linaro.org>
12018
12019 * regcache.c (class register_dump): New class.
12020 (register_dump_regcache, register_dump_none): New class.
12021 (register_dump_remote, register_dump_groups): New class.
12022 (regcache_print): Update.
12023 * regcache.h (regcache_dump_what): Move it to regcache.c.
12024 (regcache) <dump>: Remove.
12025
12026 2018-02-21 Yao Qi <yao.qi@linaro.org>
12027
12028 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12029 reg_buffer_rw *.
12030 (jit_unwind_reg_set_impl): Call raw_supply.
12031 (jit_frame_sniffer): Use reg_buffer_rw.
12032 * record-full.c (record_full_core_regbuf): Change its type.
12033 (record_full_core_open_1): Use reg_buffer_rw.
12034 (record_full_close): Likewise.
12035 (record_full_core_fetch_registers): Use regcache->raw_supply.
12036 (record_full_core_store_registers): Likewise.
12037 * regcache.c (regcache::get_register_status): Move it to
12038 reg_buffer.
12039 (regcache_raw_set_cached_value): Remove.
12040 (regcache::raw_set_cached_value): Remove.
12041 (regcache::raw_write): Call raw_supply.
12042 (regcache::raw_supply): Move it to reg_buffer_rw.
12043 * regcache.h (regcache_raw_set_cached_value): Remove.
12044 (reg_buffer_rw): New class.
12045
12046 2018-02-21 Yao Qi <yao.qi@linaro.org>
12047
12048 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12049 readonly_detached_regcache.
12050 (dummy_frame_prev_register): Use regcache->cooked_read.
12051 * frame.c (frame_save_as_regcache): Change return type.
12052 (frame_pop): Update.
12053 * frame.h (frame_save_as_regcache): Update declaration.
12054 * inferior.h (get_infcall_suspend_state_regcache): Update
12055 declaration.
12056 * infrun.c (infcall_suspend_state) <registers>: use
12057 readonly_detached_regcache.
12058 (save_infcall_suspend_state): Don't use regcache_dup.
12059 (get_infcall_suspend_state_regcache): Change return type.
12060 * linux-fork.c (struct fork_info) <savedregs>: Change to
12061 readonly_detached_regcache.
12062 <pc>: New field.
12063 (fork_save_infrun_state): Don't use regcache_dup.
12064 (info_checkpoints_command): Adjust.
12065 * mi/mi-main.c (register_changed_p): Update declaration.
12066 (mi_cmd_data_list_changed_registers): Use
12067 readonly_detached_regcache.
12068 (register_changed_p): Change parameter type to
12069 readonly_detached_regcache.
12070 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12071 readonly_detached_regcache.
12072 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12073 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12074 New.
12075 (regcache::save): Move it to reg_buffer.
12076 (regcache::restore): Change parameter type.
12077 (regcache_dup): Remove.
12078 * regcache.h (reg_buffer) <save>: New method.
12079 (readonly_detached_regcache): New class.
12080 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12081 readonly_detached_regcache.
12082 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12083
12084 2018-02-21 Yao Qi <yao.qi@linaro.org>
12085
12086 * frame.c (frame_save_as_regcache): Use regcache method save.
12087 (frame_pop): Use regcache method restore.
12088 * infrun.c (restore_infcall_suspend_state): Likewise.
12089 * linux-fork.c (fork_load_infrun_state): Likewise.
12090 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12091 save.
12092 * regcache.c (regcache_save): Remove.
12093 (regcache::restore): More asserts.
12094 (regcache_cpy): Remove.
12095 * regcache.h (regcache_save): Remove the declaration.
12096 (regcache::restore): Move from private to public.
12097 Remove the friend declaration of regcache_cpy.
12098 (regcache_cpy): Remove declaration.
12099
12100 2018-02-21 Yao Qi <yao.qi@linaro.org>
12101
12102 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12103 parameter type to 'readable_regcache *'.
12104 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12105 * arm-tdep.c (arm_neon_quad_read): Likewise.
12106 (arm_pseudo_read): Likewise.
12107 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12108 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12109 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12110 * gdbarch.c: Re-generated.
12111 * gdbarch.h: Re-generated.
12112 * gdbarch.sh (pseudo_register_read): Change parameter type to
12113 'readable_regcache *'.
12114 (pseudo_register_read_value): Likewise.
12115 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12116 (h8300_pseudo_register_read): Likewise.
12117 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12118 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12119 (i386_pseudo_register_read_into_value): Likewise.
12120 (i386_pseudo_register_read_value): Likewise.
12121 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12122 declaration.
12123 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12124 * m32c-tdep.c (m32c_raw_read): Likewise.
12125 (m32c_read_flg): Likewise.
12126 (m32c_banked_register): Likewise.
12127 (m32c_banked_read): Likewise.
12128 (m32c_sb_read): Likewise.
12129 (m32c_part_read): Likewise.
12130 (m32c_cat_read): Likewise.
12131 (m32c_r3r2r1r0_read): Likewise.
12132 (m32c_pseudo_register_read): Likewise.
12133 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12134 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12135 (mep_pseudo_cr64_read): Likewise.
12136 (mep_pseudo_register_read): Likewise.
12137 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12138 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12139 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12140 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12141 (regcache::cooked_read): Likewise.
12142 (regcache::cooked_read_value): Likewise.
12143 (regcache_cooked_read_signed):
12144 (regcache::cooked_read): Likewise.
12145 * regcache.h (readable_regcache): New class.
12146 (regcache): Inherit readable_regcache. Move some methods to
12147 readable_regcache.
12148 * rl78-tdep.c (rl78_pseudo_register_read): Change
12149 parameter type to 'readable_regcache *'.
12150 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12151 (e500_pseudo_register_read): Change parameter type to
12152 'readable_regcache *'.
12153 (dfp_pseudo_register_read): Likewise.
12154 (vsx_pseudo_register_read): Likewise.
12155 (efpr_pseudo_register_read): Likewise.
12156 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12157 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12158 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12159 (sh64_pseudo_register_read): Likewise.
12160 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12161 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12162 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12163 (spu_pseudo_register_read): Likewise.
12164 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12165 (xtensa_pseudo_register_read): Likewise.
12166
12167 2018-02-21 Yao Qi <yao.qi@linaro.org>
12168
12169 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12170 (regcache::arch): Move it to reg_buffer::arch.
12171 (regcache::register_buffer): Likewise.
12172 (regcache::assert_regnum): Likewise.
12173 (regcache::num_raw_registers): Likewise.
12174 * regcache.h (reg_buffer): New class.
12175 (regcache): Inherit reg_buffer.
12176
12177 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12178
12179 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12180 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12181
12182 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12183
12184 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12185
12186 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12187
12188 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12189 (SFILES): Remove common/*.c files.
12190 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12191 * common/common.host: Add common reference.
12192 * configure.ac: Likewise.
12193 * configure: Regenerate.
12194
12195 2018-02-16 Yao Qi <yao.qi@linaro.org>
12196
12197 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12198 (block_initialize_namespace): Use new.
12199 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12200 (dwarf2_free_objfile): Use delete.
12201 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12202 (copy_type_recursive): Use new.
12203 * gdb_obstack.h (allocate_on_obstack): New.
12204
12205 2018-02-15 Yao Qi <yao.qi@linaro.org>
12206
12207 PR gdb/22849
12208 * inferior.c (exit_inferior_1): Reset inf->control.
12209
12210 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12211
12212 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12213 declaration.
12214
12215 2018-02-14 Pedro Alves <palves@redhat.com>
12216
12217 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12218 frame_cleanup_after_sniffer on exception.
12219
12220 2018-02-14 Tom Tromey <tom@tromey.com>
12221
12222 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12223 const.
12224 (solib_bfd_open): Make pathname const.
12225 * solib.c (solib_bfd_open): Make pathname const.
12226 * solib-spu.c (spu_bfd_fopen): Make name const.
12227 (spu_bfd_open): Make pathname const.
12228 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12229 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12230
12231 2018-02-14 Tom Tromey <tom@tromey.com>
12232
12233 * symfile.c (symfile_bfd_open): Update.
12234 * source.h (openp, source_full_path_of, find_and_open_source):
12235 Change argument type to unique_xmalloc_ptr.
12236 * source.c (openp): Take a unique_xmalloc_ptr.
12237 (source_full_path_of, find_and_open_source): Likewise.
12238 (open_source_file, symtab_to_fullname): Update.
12239 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12240 unique_xmalloc_ptr.
12241 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12242 (exec_file_find): Update.
12243 * psymtab.c (psymtab_to_fullname): Update.
12244 * nto-tdep.h (nto_find_and_open_solib): Update.
12245 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12246 unique_xmalloc_ptr.
12247 * exec.c (exec_file_attach): Update.
12248 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12249 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12250
12251 2018-02-14 Tom Tromey <tom@tromey.com>
12252
12253 * solib.c: Include source.h.
12254 * nto-tdep.c: Include source.h.
12255 * mi/mi-cmd-env.c: Include source.h.
12256 * infcmd.c: Include source.h.
12257 * exec.c: Include source.h.
12258 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12259 (add_path, directory_switch, source_path, init_source_path): Move
12260 declarations...
12261 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12262 (add_path, directory_switch, source_path, init_source_path):
12263 ...here.
12264
12265 2018-02-14 Tom Tromey <tom@tromey.com>
12266
12267 * solist.h (exec_file_find, solib_find): Return
12268 unique_xmalloc_ptr.
12269 (solib_bfd_fopen): Take a const char *.
12270 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12271 (exec_file_find, solib_find): Likewise.
12272 (solib_bfd_fopen): Do not take ownership of "pathname".
12273 (solib_bfd_open): Use unique_xmalloc_ptr.
12274 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12275 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12276 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12277 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12278
12279 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12280
12281 * ada-lang.c (name_match_type_from_name): Remove reference to
12282 ada_name_for_lookup in function's documentation.
12283 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12284
12285 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12286
12287 * defs.h (enum openp_flags): New enum.
12288 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12289 Move to enum openp_flags.
12290 (openp_flags): New enum flags.
12291 (openp): Change parameter type to openp_flags.
12292 * source.c (openp): Change parameter type to openp_flags.
12293 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12294 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12295
12296 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12297
12298 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12299 per-command.
12300
12301 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12302
12303 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12304 into...
12305 (class dwarf2_queue_guard): ...the destructor of this new class.
12306 (dw2_do_instantiate_symtab): Create instance of the new class
12307 dwarf2_queue_guard, remove cleanup.
12308
12309 2018-02-09 Tom Tromey <tom@tromey.com>
12310
12311 * source.c (find_source_lines): Don't reference past the end of
12312 the vector.
12313
12314 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12315
12316 * remote.c (remote_btrace_maybe_reopen): Change error message.
12317 * btrace.c (btrace_enable): Likewise.
12318 (parse_xml_btrace): Likewise.
12319 (parse_xml_btrace_conf): Likewise.
12320
12321 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12322
12323 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12324 (linux_enable_pt, linux_enable_bts): Call
12325 diagnose_perf_event_open_fail.
12326
12327 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12328
12329 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12330 Remove parameter and change return type. Update callers. Move it.
12331 (linux_enable_bts, linux_enable_pt): Improve error message.
12332 (linux_enable_pt): Remove zero buffer size check.
12333 (linux_enable_btrace): Improve error messages. Remove NULL return
12334 check.
12335
12336 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12337
12338 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12339 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12340 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12341 (linux_supports_pt, linux_supports_btrace): Remove.
12342 (linux_enable_bts): Call cpu_supports_bts.
12343 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12344 * remote.c (remote_supports_btrace): Remove.
12345 (init_remote_ops): Remove remote_supports_btrace.
12346 * target-delegates.c: Regenerated.
12347 * target.c (target_supports_btrace): Remove.
12348 * target.h (target_ops) <to_supports_btrace>: Remove
12349 (target_supports_btrace): Remove.
12350 * x86-linux-nat.c (x86_linux_create_target): Remove
12351 linux_supports_btrace.
12352
12353 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12354
12355 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12356 btrace failed.
12357 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12358 exception and use message in own exception.
12359
12360 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12361
12362 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12363 (perf_event_pt_event_type): Use gdb_file_up.
12364 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12365 scoped_fd, and scoped_mmap.
12366
12367 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12368
12369 * common/scoped_mmap.h: New.
12370 * unittests/scoped_mmap-selftest.c: New.
12371 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12372 unittests/scoped_mmap-selftest.c.
12373
12374 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12375
12376 * common/scoped_fd.h: New.
12377 * unittests/scoped_fd-selftest.c: New.
12378 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12379 unittests/scoped_fd-selftest.c.
12380
12381 2018-02-09 Tom Tromey <tom@tromey.com>
12382
12383 * auto-load.c (auto_load_section_scripts): Use
12384 gdb::unique_xmalloc_ptr.
12385
12386 2018-02-09 Tom Tromey <tom@tromey.com>
12387
12388 * auto-load.c (execute_script_contents): Use std::string.
12389
12390 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12391
12392 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12393 Python function, rather than a new command.
12394
12395 2018-02-08 Tom Tromey <tom@tromey.com>
12396
12397 * solib.c (solib_find_1): Use std::string.
12398 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12399
12400 2018-02-08 Tom Tromey <tom@tromey.com>
12401
12402 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12403
12404 2018-02-08 Tom Tromey <tom@tromey.com>
12405
12406 * source.c (find_source_lines): Use gdb::def_vector.
12407
12408 2018-02-08 Tom Tromey <tom@tromey.com>
12409
12410 * macrocmd.c (struct temporary_macro_definition): New.
12411 (macro_define_command): Use temporary_macro_definition. Remove
12412 cleanups.
12413 (free_macro_definition_ptr): Remove.
12414
12415 2018-02-08 Tom Tromey <tom@tromey.com>
12416
12417 * macroexp.c (maybe_expand): Use std::string.
12418
12419 2018-02-08 Tom Tromey <tom@tromey.com>
12420
12421 * macroexp.c (struct macro_buffer): Add initializers for some
12422 members.
12423 (init_buffer, init_shared_buffer, free_buffer)
12424 (free_buffer_return_text): Remove.
12425 (macro_buffer): New constructors.
12426 (~macro_buffer): New destructor.
12427 (macro_buffer::set_shared): New method.
12428 (macro_buffer::resize_buffer, macro_buffer::appendc)
12429 (macro_buffer::appendmem): Now methods, not free functions.
12430 (set_token, append_tokens_without_splicing, stringify)
12431 (macro_stringify): Update.
12432 (gather_arguments): Change return type. Remove argc_p argument,
12433 add args_ptr argument. Use std::vector.
12434 (substitute_args): Remove argc argument. Accept std::vector.
12435 (expand): Update. Use std::vector.
12436 (scan, macro_expand, macro_expand_next): Update.
12437
12438 2018-02-08 Tom Tromey <tom@tromey.com>
12439
12440 * symtab.c (default_collect_symbol_completion_matches_break_on):
12441 Use unique_xmalloc_ptr.
12442 * macroscope.h: (sal_macro_scope, user_macro_scope)
12443 (default_macro_scope): Return unique_xmalloc_ptr.
12444 * macroscope.c (sal_macro_scope, user_macro_scope)
12445 (default_macro_scope): Return unique_xmalloc_ptr.
12446 * macroexp.h (macro_expand, macro_expand_once): Return
12447 unique_xmalloc_ptr.
12448 * macroexp.c (macro_expand, macro_expand_once): Return
12449 unique_xmalloc_ptr.
12450 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12451 (info_macro_command, info_macros_command): Use
12452 unique_xmalloc_ptr.
12453 * compile/compile-c-support.c (write_macro_definitions): Use
12454 unique_xmalloc_ptr.
12455 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12456
12457 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12458
12459 * value.c (value_static_field): Assign field type instead of
12460 containing type when returning an optimized out value.
12461
12462 2018-02-06 Yao Qi <yao.qi@linaro.org>
12463
12464 * ft32-tdep.c (ft32_read_pc): Remove.
12465 (ft32_write_pc): Remove.
12466 (ft32_gdbarch_init): Update.
12467 * m32r-tdep.c (m32r_read_pc): Remove.
12468 (m32r_gdbarch_init): Update.
12469 * mep-tdep.c (mep_read_pc): Remove.
12470 (mep_gdbarch_init): Update.
12471 * microblaze-tdep.c (microblaze_write_pc): Remove.
12472 (microblaze_gdbarch_init): Update.
12473 * mn10300-tdep.c (mn10300_read_pc): Remove.
12474 (mn10300_write_pc): Remove.
12475 (mn10300_gdbarch_init): Update.
12476 * moxie-tdep.c (moxie_read_pc): Remove.
12477 (moxie_write_pc): Remove.
12478 (moxie_gdbarch_init): Update.
12479
12480 2018-02-06 Yao Qi <yao.qi@linaro.org>
12481
12482 * expprint.c (print_subexp_standard): Handle
12483 OP_F77_UNDETERMINED_ARGLIST.
12484 (dump_subexp_body_standard): Likewise.
12485
12486 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12487
12488 * target-descriptions.c (tdesc_element_visitor) Add empty
12489 implementations.
12490 (tdesc_type): Move make_gdb_type from here.
12491 (tdesc_type_builtin): Likewise.
12492 (tdesc_type_vector): Likewise.
12493 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12494 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12495 (make_gdb_type_union): Likewise.
12496 (make_gdb_type_flags): Likewise.
12497 (make_gdb_type_enum): Likewise.
12498 (make_gdb_type): New function.
12499 (tdesc_register_type): Use static make_gdb_type.
12500
12501 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12502
12503 * infcmd.c (default_print_one_register_info): Align natural-format
12504 column values consistently one under another.
12505 (pad_to_column): New function.
12506
12507 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12508
12509 * dwarf2read.c (dwarf2_physname): Move commment.
12510
12511 2018-02-01 Leszek Swirski <leszeks@google.com>
12512
12513 * varobj.c (varobj_formatted_print_options): Allow recursive
12514 pretty printing if pretty printing is enabled.
12515
12516 2018-02-01 Leszek Swirski <leszeks@google.com>
12517
12518 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12519 names after a structop as a filename.
12520
12521 2018-02-01 Yao Qi <yao.qi@linaro.org>
12522
12523 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12524 (arm_record_coproc_data_proc): Likewise.
12525
12526 2018-02-01 Yao Qi <yao.qi@linaro.org>
12527
12528 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12529
12530 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12531
12532 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12533 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12534
12535 2018-01-31 Pedro Alves <palves@redhat.com>
12536
12537 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12538 * inflow.c (child_terminal_save_inferior): Wrap reference to
12539 tcgetpgrp in HAVE_TERMIOS_H.
12540 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12541 _WIN32.
12542 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12543 always iterate over all inferiors.
12544 (gdbsim_cntrl_c): Adjust.
12545 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12546
12547 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12548
12549 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12550 index type is objfile-owned if the element type is as well.
12551
12552 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12553
12554 GDB 8.1 released.
12555
12556 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12557
12558 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12559 "features/s390x-linux64.c".
12560 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12561 s390_linux32 and s390x_linux64.
12562 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12563 default tdesc.
12564 * s390-tdep.c: Include "features/s390-linux32.c" and
12565 "features/s390x-linux64.c".
12566 (s390_tdesc_valid): Add check for tdesc_has_registers.
12567 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12568 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12569 tdesc_s390x_linux64.
12570 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12571 tdesc_s390x_linux64 to...
12572 * s390-tdep.h: ...here.
12573
12574 2018-01-30 Pedro Alves <palves@redhat.com>
12575
12576 PR gdb/13211
12577 * config.in, configure: Regenerate.
12578 * configure.ac: Check for getpgid.
12579 * go32-nat.c (go32_pass_ctrlc): New.
12580 (go32_target): Install it.
12581 * inf-child.c (inf_child_target): Install
12582 child_terminal_save_inferior, child_pass_ctrlc and
12583 child_interrupt.
12584 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12585 (inf_ptrace_target): No longer install it.
12586 * infcmd.c (interrupt_target_1): Adjust.
12587 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12588 (child_interrupt): Declare.
12589 (inferior::terminal_state): New.
12590 * inflow.c (struct terminal_info): Update comments.
12591 (inferior_process_group): Delete.
12592 (terminal_is_ours): Delete.
12593 (gdb_tty_state): New.
12594 (child_terminal_init): Adjust.
12595 (is_gdb_terminal, sharing_input_terminal_1)
12596 (sharing_input_terminal): New functions.
12597 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12598 Set the process's actual process group in the foreground if
12599 possible. Handle is_ours_for_output/is_ours distinction. Don't
12600 mark terminal as the inferior's if not sharing GDB's terminal.
12601 Don't check attach_flag.
12602 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12603 pass down a target_terminal_state.
12604 (child_terminal_save_inferior): New, factored out from ...
12605 (child_terminal_ours_1): ... this. Handle
12606 target_terminal_state::is_ours_for_output.
12607 (child_interrupt, child_pass_ctrlc): New.
12608 (inflow_inferior_exit): Clear the inferior's terminal_state.
12609 (copy_terminal_info): Copy the inferior's terminal state.
12610 (_initialize_inflow): Remove reference to terminal_is_ours.
12611 * inflow.h (inferior_process_group): Delete.
12612 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12613 * procfs.c (procfs_target): Don't install procfs_interrupt.
12614 (procfs_interrupt): Delete.
12615 * remote.c (remote_serial_quit_handler): Adjust.
12616 (remote_interrupt): Remove ptid parameter. Adjust.
12617 * target-delegates.c: Regenerate.
12618 * target.c: Include "terminal.h".
12619 (target_terminal::terminal_state): Rename to ...
12620 (target_terminal::m_terminal_state): ... this.
12621 (target_terminal::init): Adjust.
12622 (target_terminal::inferior): Adjust to per-inferior
12623 terminal_state.
12624 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12625 (target_terminal::ours, target_terminal::ours_for_output): Use
12626 target_terminal_is_ours_kind.
12627 (target_interrupt): Remove ptid parameter. Adjust.
12628 (default_target_pass_ctrlc): Adjust.
12629 * target.h (target_ops::to_terminal_save_inferior): New field.
12630 (target_ops::to_interrupt): Remove ptid_t parameter.
12631 (target_interrupt): Remove ptid_t parameter. Update comment.
12632 (target_pass_ctrlc): Update comment.
12633 * target/target.h (target_terminal_state): New scoped enum,
12634 factored out of ...
12635 (target_terminal::terminal_state): ... here.
12636 (target_terminal::inferior): Update comments.
12637 (target_terminal::restore_inferior): New.
12638 (target_terminal::is_inferior, target_terminal::is_ours)
12639 (target_terminal::is_ours_for_output): Adjust.
12640 (target_terminal::scoped_restore_terminal_state): Adjust to
12641 rename, and call restore_inferior() instead of inferior().
12642 (target_terminal::scoped_restore_terminal_state::m_state): Change
12643 type.
12644 (target_terminal::terminal_state): Rename to ...
12645 (target_terminal::m_terminal_state): ... this and change type.
12646
12647 2018-01-30 Pedro Alves <palves@redhat.com>
12648
12649 * linux-nat.c (wait_for_signal): New function.
12650 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12651 directly.
12652 (async_terminal_is_ours)
12653 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12654 (linux_nat_add_target): Don't override
12655 to_terminal_inferior/to_terminal_ours.
12656
12657 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12658
12659 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12660
12661 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12662
12663 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12664 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12665 dwarf2_per_objfile_free here.
12666 (dwarf2_per_objfile_free): Remove.
12667 (_initialize_dwarf2_read): Don't register
12668 dwarf2_per_objfile_free as a registry cleanup.
12669
12670 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12671
12672 Avoid compilation errors in MinGW native builds
12673
12674 The error is triggered by including python-internal.h, and the
12675 error message is:
12676
12677 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12678 from build-gnulib/import/math.h:27,
12679 from d:/usr/Python26/include/pyport.h:235,
12680 from d:/usr/Python26/include/Python.h:58,
12681 from python/python-internal.h:94,
12682 from python/py-arch.c:24:
12683 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12684 using ::hypot;
12685 ^~~~~
12686
12687 This happens because Python headers define 'hypot' to expand t
12688 '_hypot' in the Windows builds.
12689 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12690 'hypoth'. This avoids a compilation error.
12691
12692 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12693
12694 * MAINTAINERS (Write After Approval): Fix ordering.
12695
12696 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12697
12698 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12699
12700 2018-01-26 Alan Modra <amodra@gmail.com>
12701
12702 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12703 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12704 Remove nop. Make const. Comment.
12705 (powerpc32_plt_stub_so_2): New.
12706 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12707 Correct count. Update uses.
12708 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12709 Move common code reading PLT entry word. Correct
12710 powerpc32_plt_stub PLT address calculation.
12711 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12712 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12713 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12714 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12715 (ppc64_standard_linkage8): Likewise.
12716 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12717 Correct insns description.
12718 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12719
12720 2018-01-24 Pedro Alves <palves@redhat.com>
12721
12722 GCC PR libstdc++/83906
12723 * gdbtypes.c (operator==(const dynamic_prop &,
12724 const dynamic_prop &)): New.
12725 (operator==(const range_bounds &, const range_bounds &)): New.
12726 (check_types_equal): Use them instead of memcmp.
12727 * gdbtypes.h (operator==(const dynamic_prop &,
12728 const dynamic_prop &)): Declare.
12729 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12730 (operator==(const range_bounds &, const range_bounds &)): Declare.
12731 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12732
12733 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12734
12735 * s390-linux-tdep.c (s390_record_address_mask)
12736 (s390_record_calc_disp_common, s390_record_calc_disp)
12737 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12738 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12739 (s390_process_record): Move to s390-tdep.c.
12740 (s390_linux_init_abi_any): Adjust.
12741 * s390-tdep.c (s390_record_address_mask)
12742 (s390_record_calc_disp_common, s390_record_calc_disp)
12743 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12744 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12745 (s390_process_record): Moved from s390-linux-tdep.c
12746 (s390_gdbarch_init): Adjust.
12747
12748 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12749
12750 * s390-linux-nat.c (s390-tdep.h): New include.
12751 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12752 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12753 (ALLDEPFILES): Add s390-tdep.c.
12754 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12755 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12756 * s390-tdep.h: ...this. New file.
12757 * s390-linux-tdep.c (s390-tdep.h): New include.
12758 (_initialize_s390_tdep): Rename to...
12759 (_initialize_s390_linux_tdep): ...this and adjust.
12760 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12761 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12762 s390-tdep.h.
12763 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12764 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12765 (s390_is_partial_instruction, s390_software_single_step)
12766 (is_non_branch_ril, s390_displaced_step_copy_insn)
12767 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12768 (s390_prologue_data, s390_addr, s390_store, s390_load)
12769 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12770 (s390_register_call_saved, s390_guess_tracepoint_registers)
12771 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12772 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12773 (s390_pseudo_register_name, s390_pseudo_register_type)
12774 (s390_pseudo_register_read, s390_pseudo_register_write)
12775 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12776 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12777 (s390_addr_bits_remove, s390_address_class_type_flags)
12778 (s390_address_class_type_flags_to_name)
12779 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12780 (s390_function_arg_float, s390_function_arg_vector)
12781 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12782 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12783 (s390_frame_align, s390_register_return_value, s390_return_value)
12784 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12785 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12786 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12787 (s390_trad_frame_prev_register, s390_unwind_cache)
12788 (s390_prologue_frame_unwind_cache)
12789 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12790 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12791 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12792 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12793 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12794 (s390_frame_base_address, s390_local_base_address)
12795 (s390_frame_base, s390_gcc_target_options)
12796 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12797 (s390_validate_reg_range, s390_tdesc_valid)
12798 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12799 * s390-tdep.c: ...this. New file.
12800
12801 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12802
12803 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12804 (s390_process_record, s390_gdbarch_tdep_alloc)
12805 (s390_linux_init_abi_any): Use/set new hook.
12806
12807 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12808
12809 * s390-linux-tdep.c (osabi.h): New include.
12810 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12811 (s390_linux_init_abi_any): New functions.
12812 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12813
12814 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12815
12816 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12817 tdesc_has_registers check
12818
12819 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12820
12821 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12822 (s390_validate_reg_range): New macro.
12823 (s390_gdbarch_init): Adjust.
12824
12825 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12826
12827 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12828 (s390_gdbarch_tdep_alloc): Adjust.
12829 (s390_gdbarch_init): Adjust.
12830
12831 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12832
12833 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12834 <have_tdb>: Change type to bool.
12835 (s390_gdbarch_tdep_alloc): Adjust.
12836 (s390_gdbarch_init): Adjust.
12837
12838 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12839
12840 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12841 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12842 (s390_gdbarch_tdep_alloc): New function.
12843 (s390_gdbarch_init): Allocate tdep at start and use its fields
12844 instead of separate variables.
12845
12846 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12847
12848 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12849 when looking for cached gdbarch and add comment for remaining.
12850
12851 2018-01-22 Pedro Alves <palves@redhat.com>
12852 Sergio Durigan Junior <sergiodj@redhat.com>
12853
12854 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12855 case.
12856
12857 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12858
12859 * MAINTAINERS: Update my company e-mail address.
12860
12861 2018-01-22 Yao Qi <yao.qi@linaro.org>
12862
12863 * regcache.c (cooked_write_test): New function.
12864 (_initialize_regcache): Register the test.
12865
12866 2018-01-22 Yao Qi <yao.qi@linaro.org>
12867
12868 * ia64-tdep.c (ia64_pseudo_register_read): Call
12869 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12870 * m32c-tdep.c (m32c_cat_read): Likewise.
12871 (m32c_r3r2r1r0_read): Likewise.
12872 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12873 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12874
12875 2018-01-22 Yao Qi <yao.qi@linaro.org>
12876
12877 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12878 method raw_read instead of regcache_raw_read.
12879 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12880 * arm-tdep.c (arm_neon_quad_read): Likewise.
12881 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12882 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12883 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12884 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12885 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12886 (i386_pseudo_register_read_into_value): Likewise.
12887 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12888 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12889 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12890 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12891 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12892 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12893 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12894 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12895 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12896
12897 2018-01-22 Yao Qi <yao.qi@linaro.org>
12898
12899 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12900 * configure.tgt: Remove target mt.
12901 * mt-tdep.c: Remove.
12902 * regcache.c (cooked_read_test): Remove the check for mt.
12903
12904 2018-01-22 Yao Qi <yao.qi@linaro.org>
12905
12906 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12907 instead of gdbarch_pseudo_register_read_value.
12908
12909 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12910
12911 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12912 language is Ada.
12913
12914 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12915
12916 * linespec.c (create_sals_line_offset): Remove code that preserved
12917 the symtab_and_line's line number.
12918
12919 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12920
12921 * varobj.c (varobj_create): Don't set valid_block when creating a
12922 floating varobj.
12923
12924 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12925
12926 * varobj.c (varobj_create): Remove out of date comment.
12927
12928 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12929
12930 PR mi/20395
12931 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12932 updating innermost block.
12933 * parse.c (innermost_block_tracker::update): Take extra type
12934 parameter, and check types match before updating innermost block.
12935 (write_dollar_variable): Update innermost block for registers.
12936 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12937 (innermost_block_tracker::innermost_block_tracker): Initialise
12938 m_types member.
12939 (innermost_block_tracker::reset): Take type parameter.
12940 (innermost_block_tracker::update): Take type parameter, and pass
12941 type through as needed.
12942 (innermost_block_tracker::m_types): New member.
12943 * varobj.c (varobj_create): Pass type when reseting innermost
12944 block.
12945
12946 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12947
12948 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12949 * ada-lang.c (resolve_subexp): Likewise.
12950 * breakpoint.c (set_breakpoint_condition) Likewise.
12951 (watch_command_1) Likewise.
12952 * c-exp.y (variable): Likewise.
12953 * d-exp.y (PrimaryExpression): Likewise.
12954 * f-exp.y (variable): Likewise.
12955 * go-exp.y (variable): Likewise.
12956 * m2-exp.y (variable): Likewise.
12957 * objfiles.c (objfile::~objfile): Likewise.
12958 * p-exp.y (variable): Likewise.
12959 * parse.c (innermost_block): Change type.
12960 * parser-defs.h (class innermost_block_tracker): New.
12961 (innermost_block): Change to innermost_block_tracker.
12962 * printcmd.c (display_command): Switch to innermost_block API.
12963 (do_one_display): Likewise.
12964 * rust-exp.y (do_one_display): Likewise.
12965 * symfile.c (clear_symtab_users): Likewise.
12966 * varobj.c (varobj_create): Switch to innermost_block API, replace
12967 use of innermost_block with block stored on varobj object.
12968
12969 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12970
12971 * expression.h (innermost_block): Remove declaration.
12972 * varobj.c: Add 'parser-defs.h' include.
12973
12974 2018-01-19 Tom Tromey <tom@tromey.com>
12975
12976 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12977 symbols in the static and global blocks.
12978
12979 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12980
12981 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12982 gdb_ptrace.h, and move including gdb_wait.h ...
12983 * nat/linux-ptrace.h: ... to here.
12984
12985 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12986
12987 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12988 inf_ptrace_detach_success.
12989 (inf_ptrace_detach_success): Add inferior parameter, use it
12990 instead of inferior_ptid, pass it to detach_inferior.
12991 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12992 parameter.
12993 * inferior.c (detach_inferior): Add overload that takes an
12994 inferior object.
12995 * inferior.h (detach_inferior): Likewise.
12996 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12997 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12998 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12999
13000 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13001
13002 * target.h (struct target_ops) <to_detach>: Add inferior
13003 parameter.
13004 (target_detach): Likewise.
13005 * target.c (dispose_inferior): Pass inferior down.
13006 (target_detach): Pass inferior down. Assert that it is equal to
13007 the current inferior.
13008 * aix-thread.c (aix_thread_detach): Pass inferior down.
13009 * corefile.c (core_file_command): Pass current_inferior() down.
13010 * corelow.c (core_detach): Add inferior parameter.
13011 * darwin-nat.c (darwin_detach): Likewise.
13012 * gnu-nat.c (gnu_detach): Likewise.
13013 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13014 * infcmd.c (detach_command): Pass current_inferior() down to
13015 target_detach.
13016 * infrun.c (follow_fork_inferior): Pass parent_inf to
13017 target_detach.
13018 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13019 target_detach.
13020 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13021 * linux-thread-db.c (thread_db_detach): Likewise.
13022 * nto-procfs.c (procfs_detach): Likewise.
13023 * procfs.c (procfs_detach): Likewise.
13024 * record.c (record_detach): Likewise.
13025 * record.h (struct inferior): Forward-declare.
13026 (record_detach): Add inferior parameter.
13027 * remote-sim.c (gdbsim_detach): Likewise.
13028 * remote.c (remote_detach_1): Likewise.
13029 (remote_detach): Likewise.
13030 (extended_remote_detach): Likewise.
13031 * sol-thread.c (sol_thread_detach): Likewise.
13032 * target-debug.h (target_debug_print_inferior_p): New macro.
13033 * target-delegates.c: Re-generate.
13034 * top.c (kill_or_detach): Pass inferior down to target_detach.
13035 * windows-nat.c (windows_detach): Add inferior parameter.
13036
13037 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13038
13039 * target.h (struct target_ops) <to_detach>: Remove args
13040 parameter.
13041 (target_detach): Likewise.
13042 * target.c (dispose_inferior): Adjust.
13043 (target_detach): Remove args parameter, adjust.
13044 * aix-thread.c (aix_thread_detach): Adjust.
13045 * corefile.c (core_file_command): Adjust.
13046 * corelow.c (core_detach): Adjust.
13047 * darwin-nat.c (darwin_detach): Adjust.
13048 * gnu-nat.c (gnu_detach): Adjust.
13049 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13050 * infcmd.c (detach_command): Adjust
13051 * infrun.c (follow_fork_inferior): Adjust.
13052 (handle_vfork_child_exec_or_exit): Adjust.
13053 * linux-fork.c (linux_fork_detach): Remove args parameter.
13054 * linux-fork.h (linux_fork_detach): Likewise.
13055 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13056 * linux-thread-db.c (thread_db_detach): Likewise.
13057 * nto-procfs.c (procfs_detach): Likewise.
13058 * procfs.c (procfs_detach): Likewise.
13059 (do_detach): Remove signo parameter.
13060 * record.c (record_detach): Remove args parameter.
13061 * record.h (record_detach): Likewise.
13062 * remote-sim.c (gdbsim_detach): Likewise.
13063 * remote.c (remote_detach_1): Likewise.
13064 (remote_detach): Likewise.
13065 (extended_remote_detach): Likewise.
13066 * sol-thread.c (sol_thread_detach): Likewise.
13067 * target-delegates.c: Re-generate.
13068 * top.c (struct qt_args) <args>: Remove field.
13069 (kill_or_detach): Don't pass args.
13070 (quit_force): Don't set args.
13071 * windows-nat.c (windows_detach): Remove args parameter.
13072
13073 2018-01-19 Yao Qi <yao.qi@linaro.org>
13074
13075 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13076 (arm_linux_init_abi): Install it.
13077
13078 2018-01-19 Yao Qi <yao.qi@linaro.org>
13079
13080 * osabi.c (gdb_osabi_names): Extend the regexp for
13081 arm-linux-gnueabihf.
13082
13083 2018-01-18 Yao Qi <yao.qi@linaro.org>
13084
13085 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13086 m_abbrevs.
13087 (abbrev_table::add_abbrev): Update.
13088 (abbrev_table::lookup_abbrev): Update.
13089
13090 2018-01-18 Yao Qi <yao.qi@linaro.org>
13091
13092 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13093
13094 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13095
13096 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13097 to "std::string".
13098
13099 2018-01-17 Tom Tromey <tom@tromey.com>
13100
13101 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13102
13103 2018-01-17 Tom Tromey <tom@tromey.com>
13104
13105 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13106 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13107 (create_array_type_with_stride): Update.
13108 * dwarf2read.c (set_die_type): Update.
13109
13110 2018-01-17 Tom Tromey <tom@tromey.com>
13111
13112 * dwarf2read.c (delayed_method_info): Remove typedef.
13113 (dwarf2_cu::method_info): Now a std::vector.
13114 (add_to_method_list): Update.
13115 (free_delayed_list): Remove.
13116 (compute_delayed_physnames): Update.
13117 (process_full_comp_unit, process_full_type_unit): Clear the method
13118 list. Remove cleanups.
13119 (psymtab_include_file_name): Add name_holder parameter. Use
13120 unique_xmalloc_ptr.
13121 (dwarf_decode_lines): Update.
13122
13123 2018-01-17 Tom Tromey <tom@tromey.com>
13124 Simon Marchi <simon.marchi@ericsson.com>
13125
13126 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13127 (dwarf2_per_objfile::free_cached_comp_units)
13128 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13129 (init_cutu_and_read_dies_no_follow): Update.
13130 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13131 (dwarf2_cu::~dwarf2_cu): New.
13132 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13133 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13134
13135 2018-01-17 Tom Tromey <tom@tromey.com>
13136 Simon Marchi <simon.marchi@ericsson.com>
13137
13138 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13139 (struct die_reader_specs) <abbrev_table>: New member.
13140 (struct abbrev_table): Add constructor.
13141 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13142 <abbrev_obstack>: Now an auto_obstack.
13143 (abbrev_table_up): New typedef.
13144 (init_cu_die_reader): Add abbrev_table parameter.
13145 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13146 Add result_dwo_abbrev_table.
13147 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13148 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13149 Update.
13150 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13151 parameter.
13152 (skip_children): Update.
13153 (abbrev_table::alloc_abbrev): Rename from
13154 abbrev_table_alloc_abbrev.
13155 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13156 (abbrev_table::lookup_abbrev): Rename from
13157 abbrev_table_lookup_abbrev.
13158 (abbrev_table_read_table): Return abbrev_table_up.
13159 (abbrev_table_free, abbrev_table_free_cleanup)
13160 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13161 (load_partial_dies): Update.
13162
13163 2018-01-17 Tom Tromey <tom@tromey.com>
13164
13165 * dwarf2read.c (dwarf2_compute_name): Update comment.
13166 (read_func_scope, read_variable): Update.
13167 (new_symbol): Remove.
13168 (new_symbol_full): Rename to new_symbol.
13169
13170 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13171
13172 PR gdb/16577
13173 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13174 a warning instead of throwing an error, set section size to 0 and return
13175 NULL.
13176 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13177
13178 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13179
13180 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13181 std::string.
13182 (linux_ptrace_attach_fail_reason_string): Likewise.
13183 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13184 Likewise.
13185 (linux_ptrace_attach_fail_reason_string): Likewise.
13186 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13187
13188 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13189
13190 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13191
13192 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13193
13194 PR gdb/21559
13195 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13196 checking for fs_base/gs_base fields in struct user_regs_struct.
13197 * configure: Regenerate.
13198
13199 2018-01-17 Yao Qi <yao.qi@linaro.org>
13200
13201 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13202 function.
13203 (aarch64_linux_init_abi): Install it to gdbarch hook
13204 gcc_target_options.
13205
13206 2018-01-15 Pedro Alves <palves@redhat.com>
13207
13208 * common/signals-state-save-restore.c
13209 (save_original_signals_state): Fix typos.
13210
13211 2017-01-12 Tom Tromey <tom@tromey.com>
13212 Sergio Durigan Junior <sergiodj@redhat.com>
13213
13214 * Makefile.in (install-only): Install gdb-add-index.
13215
13216 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13217
13218 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13219
13220 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13221
13222 * infrun.c (keep_going_pass_signal): Clear step-over info when
13223 insert_breakpoints fails.
13224
13225 2018-01-11 Pedro Alves <palves@redhat.com>
13226
13227 PR gdb/22583
13228 * infrun.c (resume): Rename to ...
13229 (resume_1): ... this.
13230 (resume): Reimplement as wrapper around resume_1.
13231
13232 2018-01-11 Pedro Alves <palves@redhat.com>
13233
13234 PR remote/22597
13235 * remote.c (remote_parse_stop_reply): Default to the last-set
13236 general thread instead of to 'magic_null_ptid'.
13237
13238 2018-01-10 Pedro Alves <palves@redhat.com>
13239
13240 * language.h (language_get_symbol_name_matcher): Rename ...
13241 (get_symbol_name_matcher): ... this.
13242 * language.c (language_get_symbol_name_matcher): Ditto.
13243 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13244 callers adjusted.
13245
13246 2018-01-10 Pedro Alves <palves@redhat.com>
13247
13248 PR gdb/22670
13249 * dwarf2read.c
13250 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13251 Adjust to use language_get_symbol_name_matcher instead of
13252 language_defn::la_get_symbol_name_matcher.
13253 * language.c (language_get_symbol_name_matcher): If in Ada mode
13254 and the lookup name is a verbatim match, return Ada's matcher.
13255 * language.h (language_get_symbol_name_matcher): Adjust comment.
13256 (ada_lookup_name_info::verbatim_p):: New method.
13257
13258 2018-01-10 Pedro Alves <palves@redhat.com>
13259
13260 PR gdb/22670
13261 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13262 minsym's language is language_auto or language_cplus, pass down
13263 language_ada instead.
13264 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13265
13266 2018-01-10 Pedro Alves <palves@redhat.com>
13267
13268 PR gdb/22670
13269 * minsyms.c (linkage_name_str): New function.
13270 (iterate_over_minimal_symbols): Use it.
13271
13272 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13273
13274 * NEWS: Document that 'info proc' now works on FreeBSD.
13275
13276 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13277
13278 * configure.ac: Check for kinfo_getfile in libutil.
13279 * configure: Regenerate.
13280 * config.in: Regenerate.
13281 * fbsd-nat.c: Include "fbsd-tdep.h".
13282 (fbsd_fetch_cmdline): New.
13283 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13284 rather than calling error.
13285 (fbsd_info_proc): New.
13286 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13287 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13288 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13289
13290 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13291
13292 * fbsd-nat.c (struct free_deleter): Remove.
13293 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13294
13295 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13296
13297 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13298 NULL for an empty pathname.
13299
13300 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13301
13302 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13303 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13304 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13305 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13306 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13307 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13308 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13309 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13310 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13311 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13312 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13313 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13314 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13315 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13316 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13317
13318 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13319
13320 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13321 (gnu_xfer_auxv): New function.
13322 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13323 TARGET_OBJECT_AUXV.
13324
13325 2018-01-08 Yao Qi <yao.qi@linaro.org>
13326 Simon Marchi <simon.marchi@ericsson.com>
13327
13328 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13329 common/selftest.c.
13330 (COMMON_OBS): Remove selftest.o.
13331 * configure.ac: Append selftest-arch.c and common/selftest.c to
13332 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13333 * configure: Re-generated.
13334 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13335 GDB_SELF_TEST.
13336 (maintenance_info_selftests): Likewise.
13337
13338 2018-01-08 Xavier Roirand <roirand@adacore.com>
13339
13340 * ada-valprint.c (val_print_packed_array_elements): Use
13341 proper number of elements when printing an array indexed
13342 by an enumeration type.
13343
13344 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13345
13346 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13347 (dw2_get_file_names_reader): Adjust.
13348 (lookup_dwo_signatured_type): Adjust.
13349 (lookup_dwp_signatured_type): Adjust.
13350 (lookup_signatured_type): Adjust.
13351 (create_type_unit_group): Adjust.
13352 (get_type_unit_group): Adjust.
13353 (process_psymtab_comp_unit_reader): Adjust.
13354 (build_type_psymtabs_reader): Adjust.
13355 (scan_partial_symbols): Adjust.
13356 (add_partial_symbol): Adjust.
13357 (add_partial_subprogram): Adjust.
13358 (peek_die_abbrev): Adjust.
13359 (fixup_go_packaging): Adjust.
13360 (process_imported_unit_die): Adjust.
13361 (dwarf2_compute_name): Adjust.
13362 (dwarf2_physname): Adjust.
13363 (read_import_statement): Adjust.
13364 (handle_DW_AT_stmt_list): Adjust.
13365 (read_file_scope): Adjust.
13366 (read_func_scope): Adjust.
13367 (read_lexical_block_scope): Adjust.
13368 (read_call_site_scope): Adjust.
13369 (read_variable): Adjust.
13370 (dwarf2_rnglists_process): Adjust.
13371 (dwarf2_ranges_process): Adjust.
13372 (dwarf2_ranges_read): Adjust.
13373 (dwarf2_get_pc_bounds): Adjust.
13374 (dwarf2_record_block_ranges): Adjust.
13375 (dwarf2_add_field): Adjust.
13376 (dwarf2_add_member_fn): Adjust.
13377 (read_structure_type): Adjust.
13378 (process_structure_scope): Adjust.
13379 (read_enumeration_type): Adjust.
13380 (read_array_type): Adjust.
13381 (mark_common_block_symbol_computed): Adjust.
13382 (read_common_block): Adjust.
13383 (read_namespace_type): Adjust.
13384 (read_namespace): Adjust.
13385 (read_module_type): Adjust.
13386 (read_tag_pointer_type): Adjust.
13387 (read_tag_ptr_to_member_type): Adjust.
13388 (read_tag_string_type): Adjust.
13389 (read_subroutine_type): Adjust.
13390 (read_typedef): Adjust.
13391 (read_base_type): Adjust.
13392 (attr_to_dynamic_prop): Adjust.
13393 (read_subrange_type): Adjust.
13394 (read_unspecified_type): Adjust.
13395 (dwarf2_read_abbrevs): Adjust.
13396 (load_partial_dies): Adjust.
13397 (read_partial_die): Adjust.
13398 (find_partial_die): Adjust.
13399 (guess_partial_die_structure_name): Adjust.
13400 (fixup_partial_die): Adjust.
13401 (read_attribute_value): Adjust.
13402 (read_addr_index): Adjust.
13403 (read_addr_index_from_leb128): Adjust.
13404 (read_str_index): Adjust.
13405 (dwarf2_string_attr): Adjust.
13406 (get_debug_line_section): Adjust.
13407 (dwarf_decode_line_header): Adjust.
13408 (lnp_state_machine::check_line_address): Adjust.
13409 (dwarf_decode_lines_1): Adjust.
13410 (dwarf_decode_lines): Adjust.
13411 (dwarf2_start_symtab): Adjust.
13412 (var_decode_location): Adjust.
13413 (new_symbol_full): Adjust.
13414 (dwarf2_const_value_data): Adjust.
13415 (dwarf2_const_value_attr): Adjust.
13416 (dwarf2_const_value): Adjust.
13417 (die_type): Adjust.
13418 (die_containing_type): Adjust.
13419 (build_error_marker_type): Adjust.
13420 (lookup_die_type): Adjust.
13421 (guess_full_die_structure_name): Adjust.
13422 (anonymous_struct_prefix): Adjust.
13423 (determine_prefix): Adjust.
13424 (dwarf2_name): Adjust.
13425 (follow_die_ref_or_sig): Adjust.
13426 (follow_die_offset): Adjust.
13427 (follow_die_ref): Adjust.
13428 (follow_die_sig_1): Adjust.
13429 (follow_die_sig): Adjust.
13430 (get_signatured_type): Adjust.
13431 (get_DW_AT_signature_type): Adjust.
13432 (decode_locdesc): Adjust.
13433 (dwarf_decode_macros): Adjust.
13434 (cu_debug_loc_section): Adjust.
13435 (fill_in_loclist_baton): Adjust.
13436 (dwarf2_symbol_mark_computed): Adjust.
13437 (init_one_comp_unit): Don't assign
13438 dwarf2_cu::dwarf2_per_objfile.
13439 (set_die_type): Adjust.
13440
13441 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13442
13443 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13444 <dwarf2_per_objfile>: New field.
13445 (dwarf2_per_objfile): Remove global.
13446 (get_dwarf2_per_objfile): New function.
13447 (set_dwarf2_per_objfile): New function.
13448 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13449 dwarf2_per_objfile.
13450 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13451 (read_abbrev_offset): Likewise.
13452 (read_indirect_string): Likewise.
13453 (read_indirect_line_string): Likewise.
13454 (read_indirect_string_at_offset): Likewise.
13455 (read_indirect_string_from_dwz): Likewise.
13456 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13457 dwarf2_per_objfile.
13458 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13459 (create_all_comp_units): Change objfile parameter to
13460 dwarf2_per_objfile.
13461 (create_all_type_units): Likewise.
13462 (process_queue): Add dwarf2_per_objfile parameter.
13463 (read_and_check_comp_unit_head): Likewise.
13464 (lookup_dwo_unit_in_dwp): Likewise.
13465 (get_dwp_file): Likewise.
13466 (process_cu_includes): Likewise.
13467 (struct free_dwo_file_cleanup_data): New struct.
13468 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13469 set_dwarf2_per_objfile.
13470 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13471 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13472 context, adjust calls.
13473 (dw2_instantiate_symtab): Likewise.
13474 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13475 (dw2_get_cu): Likewise.
13476 (create_cu_from_index_list): Change objfile parameter to
13477 dwarf2_per_objfile.
13478 (create_cus_from_index_list): Get dwarf2_per_objfile from
13479 context, adjust calls.
13480 (create_cus_from_index): Likewise.
13481 (create_signatured_type_table_from_index): Change objfile
13482 parameter to dwarf2_per_objfile.
13483 (create_signatured_type_table_from_debug_names): Change objfile
13484 parameter to dwarf2_per_objfile.
13485 (create_addrmap_from_index): Likewise.
13486 (create_addrmap_from_aranges): Likewise.
13487 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13488 (dw2_setup): Remove.
13489 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13490 context.
13491 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13492 get_dwarf2_per_objfile.
13493 (dw2_forget_cached_source_info): Likewise.
13494 (dw2_map_symtabs_matching_filename): Likewise.
13495 (struct dw2_symtab_iterator) <index>: Remove.
13496 <dwarf2_per_objfile>: New field.
13497 (dw2_symtab_iter_init): Replace index parameter with
13498 dwarf2_per_objfile.
13499 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13500 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13501 (dw2_print_stats): Likewise.
13502 (dw2_dump): Likewise.
13503 (dw2_expand_symtabs_for_function): Likewise.
13504 (dw2_expand_all_symtabs): Likewise.
13505 (dw2_expand_symtabs_with_fullname): Likewise.
13506 (dw2_expand_marked_cus): Replace index and objfile parameters
13507 with dwarf2_per_objfile.
13508 (dw_expand_symtabs_matching_file_matcher): Add
13509 dwarf2_per_objfile parameter and adjust calls.
13510 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13511 adjust calls.
13512 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13513 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13514 adjust calls.
13515 (create_cus_from_debug_names_list): Replace objfile parameter
13516 with dwarf2_per_objfile and adjust calls.
13517 (create_cus_from_debug_names): Likewise.
13518 (dwarf2_read_debug_names): Likewise.
13519 (mapped_debug_names::namei_to_name): Adjust call.
13520 (dw2_debug_names_iterator::next): Likewise.
13521 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13522 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13523 (dw2_debug_names_dump): Likewise.
13524 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13525 (dw2_debug_names_expand_symtabs_matching): Likewise.
13526 (dwarf2_initialize_objfile): Likewise.
13527 (dwarf2_build_psymtabs): Likewise.
13528 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13529 this_cu.
13530 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13531 (read_and_check_comp_unit_head): Likewise.
13532 (read_abbrev_offset): Likewise.
13533 (create_debug_type_hash_table): Likewise.
13534 (create_debug_types_hash_table): Likewise.
13535 (create_all_type_units): Replace objfile parameter with
13536 dwarf2_per_objfile.
13537 (add_type_unit): Add dwarf2_per_objfile parameter.
13538 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13539 with dwarf2_per_objfile.
13540 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13541 (lookup_dwp_signatured_type): Likewise.
13542 (lookup_signatured_type): Likewise.
13543 (read_cutu_die_from_dwo): Likewise.
13544 (init_tu_and_read_dwo_dies): Likewise.
13545 (init_cutu_and_read_dies): Likewise.
13546 (init_cutu_and_read_dies_no_follow): Likewise.
13547 (allocate_type_unit_groups_table): Add objfile parameter.
13548 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13549 (get_type_unit_group): Likewise.
13550 (process_psymtab_comp_unit): Update call.
13551 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13552 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13553 (print_tu_stats): Likewise.
13554 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13555 in void* parameter.
13556 (build_type_psymtabs): Change objfile parameter to
13557 dwarf2_per_objfile.
13558 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13559 passed in void* parameter.
13560 (process_skeletonless_type_units): Change objfile parameter to
13561 dwarf2_per_objfile.
13562 (set_partial_user): Likewise.
13563 (dwarf2_build_psymtabs_hard): Likewise.
13564 (read_comp_units_from_section): Likewise.
13565 (create_all_comp_units): Likewise.
13566 (scan_partial_symbols): Update calls.
13567 (add_partial_symbol): Likewise.
13568 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13569 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13570 (process_queue): Add dwarf2_per_objfile parameter.
13571 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13572 (compute_compunit_symtab_includes): Likewise.
13573 (process_cu_includes): Add dwarf2_per_objfile parameter.
13574 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13575 (process_full_type_unit): Likewise.
13576 (process_imported_unit_die): Update call.
13577 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13578 (read_file_scope): Likewise.
13579 (allocate_dwo_file_hash_table): Add objfile parameter.
13580 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13581 (create_cus_hash_table): Likewise.
13582 (create_dwp_hash_table): Likewise.
13583 (create_dwo_unit_in_dwp_v1): Likewise.
13584 (create_dwp_v2_section): Likewise.
13585 (create_dwo_unit_in_dwp_v2): Likewise.
13586 (lookup_dwo_unit_in_dwp): Likewise.
13587 (try_open_dwop_file): Likewise.
13588 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13589 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13590 cleanup to include a reference to dwarf2_per_objfile.
13591 (open_dwp_file): Add dwarf2_per_objfile parameter.
13592 (open_and_init_dwp_file): Likewise.
13593 (get_dwp_file): Likewise.
13594 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13595 (queue_and_load_all_dwo_tus): Update call.
13596 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13597 data.
13598 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13599 (dwarf2_ranges_process): Likewise.
13600 (dwarf2_get_pc_bounds): Likewise.
13601 (mark_common_block_symbol_computed): Likewise.
13602 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13603 (dwarf2_read_abbrevs): Update call.
13604 (read_partial_die): Use dwarf2_per_objfile from cu.
13605 (find_partial_die): Likewise.
13606 (fixup_partial_die): Likewise.
13607 (read_attribute_value): Likewise.
13608 (read_indirect_string_at_offset_from): Add objfile parameter.
13609 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13610 parameter.
13611 (read_indirect_string_from_dwz): Add objfile parameter.
13612 (read_indirect_string): Add objfile parameter.
13613 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13614 (read_addr_index): Use dwarf2_per_objfile from cu.
13615 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13616 call dw2_setup.
13617 (read_str_index): Use dwarf2_per_objfile from cu.
13618 (get_debug_line_section): Likewise.
13619 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13620 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13621 (new_symbol_full): Use dwarf2_per_objfile from cu.
13622 (build_error_marker_type): Likewise.
13623 (lookup_die_type): Likewise.
13624 (determine_prefix): Likewise.
13625 (follow_die_offset): Likewise.
13626 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13627 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13628 (dwarf2_fetch_die_type_sect_off): Likewise.
13629 (dwarf2_get_die_type): Likewise.
13630 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13631 (get_signatured_type): Likewise.
13632 (get_DW_AT_signature_type): Likewise.
13633 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13634 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13635 (cu_debug_loc_section): Likewise.
13636 (fill_in_loclist_baton): Likewise.
13637 (dwarf2_symbol_mark_computed): Likewise.
13638 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13639 dwarf2_per_objfile.
13640 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13641 parameter.
13642 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13643 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13644 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13645 (set_die_type): Use dwarf2_free_objfile from cu.
13646 (get_die_type_at_offset): Likewise.
13647 (dwarf2_per_objfile_free): Don't assign global variable.
13648 (debug_names) <constructor>: Add dwarf2_per_objfile
13649 parameter, update m_debugstrlookup construction.
13650 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13651 parameter.
13652 <m_dwarf2_per_objfile>: New field.
13653 <lookup>: Use m_dwarf2_per_objfile.
13654 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13655 (psyms_seen_size): Likewise.
13656 (write_gdbindex): Replace objfile parameter with
13657 dwarf2_per_objfile.
13658 (write_debug_names): Likewise.
13659 (write_psymtabs_to_index): Likewise.
13660 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13661 calls.
13662
13663 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13664
13665 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13666 <dwarf2_per_objfile>: New field.
13667 (struct dwarf2_per_cu_data) <objfile>: Remove.
13668 <dwarf2_per_objfile>: New field.
13669 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13670 of objfile.
13671 (create_signatured_type_table_from_index): Likewise.
13672 (create_debug_type_hash_table): Likewise.
13673 (fill_in_sig_entry_from_dwo_entry): Likewise.
13674 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13675 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13676 objfile.
13677 (create_partial_symtab): Access objfile through
13678 dwarf2_per_objfile.
13679 (process_psymtab_comp_unit_reader): Likewise.
13680 (read_comp_units_from_section): Likewise.
13681 (scan_partial_symbols): Likewise.
13682 (add_partial_symbol): Likewise.
13683 (add_partial_subprogram): Likewise.
13684 (peek_die_abbrev): Likewise.
13685 (fixup_go_packaging): Likewise.
13686 (process_full_comp_unit): Likewise.
13687 (process_full_type_unit): Likewise.
13688 (process_imported_unit_die): Likewise.
13689 (dwarf2_compute_name): Likewise.
13690 (dwarf2_physname): Likewise.
13691 (read_import_statement): Likewise.
13692 (create_cus_hash_table): Assign dwarf2_physname instead of
13693 objfile.
13694 (read_func_scope): Access objfile through dwarf2_per_objfile.
13695 (read_lexical_block_scope): Likewise.
13696 (read_call_site_scope): Likewise.
13697 (read_variable): Likewise.
13698 (dwarf2_rnglists_process): Likewise.
13699 (dwarf2_ranges_process): Likewise.
13700 (dwarf2_ranges_read): Likewise.
13701 (dwarf2_record_block_ranges): Likewise.
13702 (dwarf2_add_field): Likewise.
13703 (dwarf2_add_member_fn): Likewise.
13704 (read_structure_type): Likewise.
13705 (process_structure_scope): Likewise.
13706 (read_enumeration_type): Likewise.
13707 (read_array_type): Likewise.
13708 (read_common_block): Likewise.
13709 (read_namespace_type): Likewise.
13710 (read_namespace): Likewise.
13711 (read_module_type): Likewise.
13712 (read_tag_pointer_type): Likewise.
13713 (read_tag_ptr_to_member_type): Likewise.
13714 (read_tag_string_type): Likewise.
13715 (read_subroutine_type): Likewise.
13716 (read_typedef): Likewise.
13717 (read_base_type): Likewise.
13718 (attr_to_dynamic_prop): Likewise.
13719 (read_subrange_type): Likewise.
13720 (read_unspecified_type): Likewise.
13721 (load_partial_dies): Likewise.
13722 (read_partial_die): Likewise.
13723 (find_partial_die): Likewise.
13724 (guess_partial_die_structure_name): Likewise.
13725 (fixup_partial_die): Likewise.
13726 (read_attribute_value): Likewise.
13727 (read_addr_index_from_leb128): Likewise.
13728 (dwarf2_read_addr_index): Likewise.
13729 (dwarf2_string_attr): Likewise.
13730 (lnp_state_machine::check_line_address): Likewise.
13731 (dwarf_decode_lines_1): Likewise.
13732 (dwarf_decode_lines): Likewise.
13733 (dwarf2_start_symtab): Likewise.
13734 (var_decode_location): Likewise.
13735 (new_symbol_full): Likewise.
13736 (dwarf2_const_value_data): Likewise.
13737 (dwarf2_const_value_attr): Likewise.
13738 (dwarf2_const_value): Likewise.
13739 (die_type): Likewise.
13740 (die_containing_type): Likewise.
13741 (lookup_die_type): Likewise.
13742 (guess_full_die_structure_name): Likewise.
13743 (anonymous_struct_prefix): Likewise.
13744 (dwarf2_name): Likewise.
13745 (follow_die_ref_or_sig): Likewise.
13746 (follow_die_offset): Likewise.
13747 (follow_die_ref): Likewise.
13748 (dwarf2_fetch_die_loc_sect_off): Likewise.
13749 (dwarf2_fetch_constant_bytes): Likewise.
13750 (dwarf2_fetch_die_type_sect_off): Likewise.
13751 (dwarf2_get_die_type): Likewise.
13752 (follow_die_sig): Likewise.
13753 (decode_locdesc): Likewise.
13754 (dwarf2_per_cu_objfile): Likewise.
13755 (dwarf2_per_cu_text_offset): Likewise.
13756 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13757 objfile.
13758 (set_die_type): Access objfile through
13759 dwarf2_per_objfile.
13760
13761 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13762
13763 * valprint.c (converted_character_d): Remove typedef.
13764 (DEF_VEC_O (converted_character_d)): Remove.
13765 (count_next_character): Use std::vector.
13766 (print_converted_chars_to_obstack): Likewise.
13767 (generic_printstr): Likewise.
13768
13769 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13770
13771 * xml-support.h (struct gdb_xml_value): Add constructor.
13772 <value>: Change type to unique_xmalloc_ptr.
13773 (gdb_xml_value_s): Remove typedef.
13774 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13775 (gdb_xml_element_start_handler): Change parameter type to
13776 std::vector.
13777 (xml_find_attribute): Likewise.
13778 * xml-support.c (xml_find_attribute): Change parameter type to
13779 std::vector and adjust.
13780 (gdb_xml_values_cleanup): Remove.
13781 (gdb_xml_parser::start_element): Adjust to std::vector.
13782 (xinclude_start_include): Change paraeter type to std::vector
13783 and adjust.
13784 * btrace.c (check_xml_btrace_version): Likewise.
13785 (parse_xml_btrace_block): Likewise.
13786 (parse_xml_btrace_pt_config_cpu): Likewise.
13787 (parse_xml_btrace_pt): Likewise.
13788 (parse_xml_btrace_conf_bts): Likewise.
13789 (parse_xml_btrace_conf_pt): Likewise.
13790 * memory-map.c (memory_map_start_memory): Likewise.
13791 (memory_map_start_property): Likewise.
13792 * osdata.c (osdata_start_osdata): Likewise.
13793 (osdata_start_item): Likewise.
13794 (osdata_start_column): Likewise.
13795 * remote.c (start_thread): Likewise.
13796 * solib-aix.c (library_list_start_library): Likewise.
13797 (library_list_start_list): Likewise.
13798 * solib-svr4.c (library_list_start_library): Likewise.
13799 (svr4_library_list_start_list): Likewise.
13800 * solib-target.c (library_list_start_segment): Likewise.
13801 (library_list_start_section): Likewise.
13802 (library_list_start_library): Likewise.
13803 (library_list_start_list): Likewise.
13804 * tracepoint.c (traceframe_info_start_memory): Likewise.
13805 (traceframe_info_start_tvar): Likewise.
13806 * xml-syscall.c (syscall_start_syscall): Likewise.
13807 * xml-tdesc.c (tdesc_start_target): Likewise.
13808 (tdesc_start_feature): Likewise.
13809 (tdesc_start_reg): Likewise.
13810 (tdesc_start_union): Likewise.
13811 (tdesc_start_struct): Likewise.
13812 (tdesc_start_flags): Likewise.
13813 (tdesc_start_enum): Likewise.
13814 (tdesc_start_field): Likewise.
13815 (tdesc_start_enum_value): Likewise.
13816 (tdesc_start_vector): Likewise.
13817
13818 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13819
13820 * extension.h (struct xmethod_worker) <clone>: Remove.
13821 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13822 Remove.
13823 (python_xmethod_worker::clone): Remove.
13824 * valops.c (find_overload_match): Use std::move instead of
13825 clone.
13826
13827 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13828
13829 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13830 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13831 <free_xmethod_worker_data>: Remove.
13832 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13833 <get_xmethod_arg_types>: Remove.
13834 <get_xmethod_result_type>: Remove.
13835 <invoke_xmethod>: Remove.
13836 * extension.c (new_xmethod_worker): Remove.
13837 (clone_xmethod_worker): Remove.
13838 (get_matching_xmethod_workers): Return void, pass std::vector by
13839 pointer.
13840 (get_xmethod_arg_types): Rename to...
13841 (xmethod_worker::get_arg_types): ... this, and adjust.
13842 (get_xmethod_result_type): Rename to...
13843 (xmethod_worker::get_result_type): ... this, and adjust.
13844 (invoke_xmethod): Remove.
13845 (free_xmethod_worker): Remove.
13846 (free_xmethod_worker_vec): Remove.
13847 * extension.h (enum ext_lang_rc): Move here from
13848 extension-priv.h.
13849 (struct xmethod_worker): Add constructor and destructor.
13850 <data>: Remove.
13851 <value>: Remove.
13852 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13853 virtual pure methods.
13854 <get_arg_types, get_result_type>: New methods.
13855 (xmethod_worker_ptr): Remove typedef.
13856 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13857 (xmethod_worker_vec): Remove typedef.
13858 (xmethod_worker_up): New typedef.
13859 (invoke_xmethod): Remove.
13860 (clone_xmethod_worker): Remove.
13861 (free_xmethod_worker): Remove.
13862 (free_xmethod_worker_vec): Remove.
13863 (get_xmethod_arg_types): Remove.
13864 (get_xmethod_result_type): Remove.
13865 * valops.c (find_method_list): Use std::vector, don't use
13866 intermediate vector.
13867 (value_find_oload_method_list): Use std::vector.
13868 (find_overload_match): Use std::vector.
13869 (find_oload_champ): Use std::vector.
13870 * value.c (value_free): Use operator delete.
13871 (value_of_xmethod): Rename to...
13872 (value_from_xmethod): ... this. Don't assign
13873 xmethod_worker::value, take rvalue-reference.
13874 (result_type_of_xmethod): Adjust.
13875 (call_xmethod): Adjust.
13876 * value.h: Include extension.h.
13877 (struct xmethod_worker): Don't forward-declare.
13878 (value_of_xmethod): Rename to...
13879 (value_from_xmethod): ... this, take rvalue-reference.
13880 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13881 (struct python_xmethod_worker): ... this, add constructor and
13882 destructor.
13883 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13884 (gdbpy_free_xmethod_worker_data): Rename to...
13885 (python_xmethod_worker::~python_xmethod_worker): ... this and
13886 adjust.
13887 (gdbpy_clone_xmethod_worker_data): Rename to...
13888 (python_xmethod_worker::clone): ... this and adjust.
13889 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13890 temporary vector.
13891 (gdbpy_get_xmethod_arg_types): Rename to...
13892 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13893 (gdbpy_get_xmethod_result_type): Rename to...
13894 (python_xmethod_worker::do_get_result_type): ... this and
13895 adjust.
13896 (gdbpy_invoke_xmethod): Rename to...
13897 (python_xmethod_worker::invoke): ... this and adjust.
13898 (new_python_xmethod_worker): Rename to...
13899 (python_xmethod_worker::python_xmethod_worker): ... this and
13900 adjust.
13901 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13902 Remove.
13903 (gdbpy_free_xmethod_worker_data): Remove.
13904 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13905 (gdbpy_get_xmethod_arg_types): Remove.
13906 (gdbpy_get_xmethod_result_type): Remove.
13907 (gdbpy_invoke_xmethod): Remove.
13908 * python/python.c (python_extension_ops): Remove obsolete
13909 callbacks.
13910
13911 2018-01-05 Pedro Alves <palves@redhat.com>
13912
13913 PR gdb/18653
13914 * common/signals-state-save-restore.c
13915 (save_original_signals_state): New parameter 'quiet'. Warn if we
13916 find a custom handler preinstalled, instead of internal erroring.
13917 But only warn if !quiet.
13918 * common/signals-state-save-restore.h
13919 (save_original_signals_state): New parameter 'quiet'.
13920 * main.c (captured_main_1): Move save_original_signals_state call
13921 after option handling, and pass QUIET.
13922
13923 2018-01-05 Pedro Alves <palves@redhat.com>
13924
13925 * spu-tdep.c (spu_catch_start): Pass
13926 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13927
13928 2018-01-05 Pedro Alves <palves@redhat.com>
13929
13930 PR gdb/22670
13931 * ada-lang.c (literal_symbol_name_matcher): New function.
13932 (ada_get_symbol_name_matcher): Use it for
13933 symbol_name_match_type::SEARCH_NAME.
13934 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13935 it down instead of assuming symbol_name_match_type::FULL.
13936 * block.h (block_lookup_symbol): New parameter 'match_type'.
13937 * c-valprint.c (print_unpacked_pointer): Use
13938 lookup_symbol_search_name instead of lookup_symbol.
13939 * compile/compile-object-load.c (get_out_value_type): Pass down
13940 symbol_name_match_type::SEARCH_NAME.
13941 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13942 symbol_name_match_type::FULL.
13943 * cp-support.c (cp_get_symbol_name_matcher): Handle
13944 symbol_name_match_type::SEARCH_NAME.
13945 * infrun.c (insert_exception_resume_breakpoint): Use
13946 lookup_symbol_search_name.
13947 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13948 * psymtab.c (maintenance_check_psymtabs): Use
13949 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13950 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13951 SYMBOL_SEARCH_NAME.
13952 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13953 if symbol_name_match_type::SEARCH_NAME.
13954 (lookup_symbol_in_language): Pass down
13955 symbol_name_match_type::FULL.
13956 (lookup_symbol_search_name): New.
13957 (lookup_language_this): Pass down
13958 symbol_name_match_type::SEARCH_NAME.
13959 (lookup_symbol_aux, lookup_local_symbol): New parameter
13960 'match_type'. Pass it down.
13961 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13962 (lookup_symbol_search_name): New declaration.
13963 (lookup_symbol_in_block): New 'match_type' parameter.
13964
13965 2018-01-05 Pedro Alves <palves@redhat.com>
13966
13967 PR gdb/22670
13968 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13969 ada_lookup_symbol.
13970 (ada_lookup_symbol): Reimplement in terms of
13971 ada_lookup_symbol_list, bits factored out from
13972 ada_lookup_encoded_symbol.
13973
13974 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13975
13976 * ada-exp.y (write_object_renaming): When subscripting an array
13977 using a symbol as the index, pass the block in call to
13978 ada_lookup_encoded_symbol when looking that symbol up.
13979
13980 2018-01-05 Jerome Guitton <guitton@adacore.com>
13981
13982 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13983 TYPE_INDEX_TYPE.
13984
13985 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13986
13987 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13988 the case where VALUE_LVAL (val0) is not lval_memory.
13989
13990 2018-01-05 Xavier Roirand <roirand@adacore.com>
13991
13992 * ada-valprint.c (print_optional_low_bound): Handle
13993 character-indexed array printing like boolean-indexed array
13994 printing.
13995
13996 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13997
13998 * NEWS: Create a new section for the next release branch.
13999 Rename the section of the current branch, now that it has
14000 been cut.
14001
14002 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14003
14004 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14005 * version.in: Bump version to 8.1.50.DATE-git.
14006
14007 2018-01-03 Xavier Roirand <roirand@adacore.com>
14008
14009 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14010 Add field.
14011 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14012 Add field.
14013 (default_exception_support_info) <catch_handlers_sym>: Add field.
14014 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14015 (ada_exception_name_addr_1): Add "catch handlers" handling.
14016 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14017 Update all callers.
14018 (create_excep_cond_exprs) <ex>: Add parameter.
14019 (re_set_exception): Update create_excep_cond_exprs call.
14020 (print_it_exception, print_one_exception, print_mention_exception)
14021 (print_recreate_exception): Add "catch handler" handling.
14022 (allocate_location_catch_handlers, re_set_catch_handlers)
14023 (check_status_catch_handlers, print_it_catch_handlers)
14024 (print_one_catch_handlers, print_mention_catch_handlers)
14025 (print_recreate_catch_handlers): New function.
14026 (catch_handlers_breakpoint_ops): New variable.
14027 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14028 Add parameter. Add "catch handler" handling.
14029 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14030 Add "catch handler" handling.
14031 (ada_exception_catchpoint_cond_string): Add "catch handler"
14032 handling.
14033 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14034 call.
14035 (catch_ada_handlers_command): New function.
14036 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14037 operations structure.
14038 (_initialize_ada_language): Add "catch handlers" command entry.
14039 * NEWS: Document "catch handlers" feature.
14040
14041 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14042
14043 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14044 account when creating the array type of the slice.
14045 (ada_value_slice): Likewise.
14046
14047 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14048
14049 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14050 New enum value.
14051 (create_array_type_with_stride): Add byte_stride_prop parameter.
14052 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14053 New parameter. Update all callers in this file.
14054 (array_type_has_dynamic_stride): New function.
14055 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14056 of arrays with dynamic byte strides.
14057 * dwarf2read.c (read_array_type): Add support for dynamic
14058 DW_AT_byte_stride attributes.
14059
14060 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14061
14062 * dwarf2read.c (read_unspecified_type): Treat
14063 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14064
14065 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14066
14067 Update copyright year range in all GDB files.
14068
14069 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14070
14071 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14072 and gdb/testsuite/gdb.base/step-line.c.
14073
14074 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14075
14076 * copyright.py (main): Dump the contents of
14077 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14078 even if BY_HAND is empty.
14079
14080 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14081
14082 * top.c (print_gdb_version): Update Copyright year in version
14083 message.
14084
14085 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14086
14087 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14088
14089 For older changes see ChangeLog-2017.
14090 \f
14091 Local Variables:
14092 mode: change-log
14093 left-margin: 8
14094 fill-column: 74
14095 version-control: never
14096 coding: utf-8
14097 End: