Add workaround from gdbserver's gdb_proc_service.h to GDB
[binutils-gdb.git] / gdb / ChangeLog
1 2018-10-01 Gary Benson <gbenson@redhat.com>
2
3 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
4 (AC_CHECK_HEADERS): Check for linux/elf.h.
5 * configure, config.in: Rebuild.
6 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
7 doesn't define elf_fpregset_t.
8
9 2018-10-01 Gary Benson <gbenson@redhat.com>
10
11 * gdb_proc_service.h: Whitespace change.
12
13 2018-10-01 Tom Tromey <tom@tromey.com>
14
15 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
16 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
17 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
18
19 2018-10-01 Tom Tromey <tom@tromey.com>
20
21 * README: Minor change.
22
23 2018-09-30 Pedro Alves <palves@redhat.com>
24
25 * darwin-nat-info.c (darwin_debug_regions_recurse)
26 (info_mach_exceptions_command): Remove unused local variables.
27 * darwin-nat.c (darwin_decode_notify_message)
28 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
29 (darwin_stop_inferior, darwin_setup_exceptions)
30 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
31 (darwin_nat_target::attach, darwin_nat_target::detach)
32 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
33 local variables.
34 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
35 variables.
36
37 2018-09-29 Tom Tromey <tom@tromey.com>
38
39 * README: Remove some leftover text.
40
41 2018-09-29 Tom Tromey <tom@tromey.com>
42
43 * PROBLEMS: Rewrite.
44 * README: Update.
45
46 2018-09-28 John Baldwin <jhb@FreeBSD.org>
47
48 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
49 case with explicit breakpoint kind.
50 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
51 'additional_info' and related logic.
52 (riscv_debug_breakpoints): New variable.
53 (riscv_breakpoint_kind_from_pc): Use the length of the existing
54 instruction to determine the breakpoint kind.
55 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
56 flag. Update description of 'set/show riscv
57 use-compressed-breakpoints' flag.
58
59 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
60
61 (NEWS): Mention changes to frame related commands.
62 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
63 (add_prefix_cmd_suppress_notification): New function.
64 (add_com_suppress_notification): Call
65 add_cmd_suppress_notification.
66 * command.h (add_cmd_suppress_notification): Declare.
67 (add_prefix_cmd_suppress_notification): Declare.
68 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
69 (parse_frame_specification): Moved from stack.c, with
70 simplification to handle a single argument.
71 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
72 switch to the selected frame. Add a header comment.
73 * stack.c: Remove 'safe-ctype.h' include.
74 (find_frame_for_function): Add declaration.
75 (find_frame_for_address): New function.
76 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
77 (frame_selection_by_function_completer): New function.
78 (info_frame_command): Rename to...
79 (info_frame_command_core): ...this, and update parameter types.
80 (select_frame_command): Rename to...
81 (select_frame_command_core): ...this, and update parameter types.
82 (frame_command): Rename to...
83 (frame_command_core): ...this, and update parameter types.
84 (class frame_command_helper): New class to wrap implementations of
85 frame related sub-commands.
86 (frame_apply_cmd_list): New static global.
87 (frame_cmd_list): Make static.
88 (select_frame_cmd_list): New global for sub-commands.
89 (info_frame_cmd_list): New global for sub-commands.
90 (_initialize_stack): Register sub-commands for 'frame',
91 'select-frame', and 'info frame'. Update 'frame apply' commands
92 to use frame_apply_cmd_list. Move function local static
93 frame_apply_list to file static frame_apply_cmd_list for
94 consistency.
95 * stack.h (select_frame_command): Delete declarationn.
96 (select_frame_for_mi): Declare new function.
97
98 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
99
100 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
101 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
102 and NOP.
103
104 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
105
106 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
107
108 2018-09-26 Tom Tromey <tom@tromey.com>
109
110 * valops.c (auto_abandon): Remove dead code.
111
112 2018-09-26 Tom Tromey <tom@tromey.com>
113
114 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
115
116 2018-09-24 Tom Tromey <tom@tromey.com>
117
118 * common/pathstuff.c (get_standard_cache_dir): Make
119 "xdg_cache_home" and "home" const.
120 * top.c (init_history): Make "tmpenv" const.
121 * main.c (get_init_files): Make "homedir" const.
122
123 2018-09-23 Tom Tromey <tom@tromey.com>
124
125 PR python/18852:
126 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
127
128 2018-09-23 Tom Tromey <tom@tromey.com>
129
130 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
131 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
132 * python/python-internal.h (gdbpy_handle_exception): Declare.
133 * python/py-utils.c (gdbpy_handle_exception): New function.
134
135 2018-09-23 Tom Tromey <tom@tromey.com>
136
137 PR python/17284:
138 * python/py-type.c (typy_template_argument): Check for negative
139 argument number.
140
141 2018-09-23 Tom Tromey <tom@tromey.com>
142
143 PR python/14062:
144 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
145
146 2018-09-23 Tom Tromey <tom@tromey.com>
147
148 PR python/18170:
149 * python/py-value.c (valpy_int): Allow conversion from pointer
150 type.
151
152 2018-09-23 Tom Tromey <tom@tromey.com>
153
154 PR python/20126:
155 * python/py-value.c (valpy_int): Respect type sign.
156
157 2018-09-23 Tom Tromey <tom@tromey.com>
158
159 PR python/18352;
160 * python/py-value.c (valpy_float): Allow conversions from int or
161 char.
162 (valpy_int, valpy_long): Allow conversions from float.
163
164 2018-09-23 Tom Tromey <tom@tromey.com>
165
166 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
167 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
168
169 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
170
171 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
172 __sighndlr.
173 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
174
175 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
176
177 * windows-nat.c (windows_nat_target::wait): Remove a spurious
178 target_terminal::ours().
179
180 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
181
182 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
183 of vl to ULONGEST.
184
185 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
186
187 * breakpoint.c (update_inserted_breakpoint_locations): Remove
188 redundant condition.
189
190 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
191
192 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
193
194 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
195 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
196 * sol-thread.c (ps_pdmodel): Don't guard definition.
197
198 * procfs.c: Fix formatting.
199
200 * procfs.c (sysset_t_alloc): Remove.
201 (create_procinfo): Use XNEW instead of sysset_t_alloc.
202 (procfs_debug_inferior): Likewise.
203 (procfs_set_exec_trap): Likewise.
204 (proc_set_traced_sysentry): Don't allocate argp dynamically.
205 (proc_set_traced_sysexit): Likewise.
206
207 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
208 (dead_procinfo): Likewise.
209 (proc_warn): Likewise.
210 (proc_error): Likewise.
211 (proc_get_LDT_entry): Likewise.
212 (do_attach): Likewise.
213 (procfs_target::pid_to_str): Likewise.
214 (iterate_over_mappings): Likewise.
215
216 * procfs.c (create_procinfo): Fix ARI warning.
217 (proc_get_status): Likewise.
218 (proc_stop_process): Likewise.
219 (proc_run_process): Likewise.
220 (proc_kill): Likewise.
221 (proc_get_LDT_entry): Likewise.
222 (procfs_find_LDT_entry): Likewise.
223 (proc_update_threads): Likewise.
224 (proc_iterate_over_threads): Likewise.
225 (do_attach): Likewise.
226 (procfs_xfer_memory): Likewise.
227 (invalidate_cache): Likewise.
228 (procfs_target::resume): Likewise.
229 (procfs_init_inferior): Likewise.
230 (procfs_set_exec_trap): Likewise.
231 (procfs_target::thread_alive): Likewise.
232 (procfs_target::pid_to_exec_file): Likewise.
233 (iterate_over_mappings): Likewise.
234 (procfs_target::make_corefile_notes): Likewise.
235 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
236
237 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
238 (procfs_find_LDT_entry): Likewise.
239 * sol-thread.c (ps_lgetLDT): Likewise.
240
241 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
242
243 PR tdep/17903
244 * procfs.c (procfs_target): Declare pid_to_exec_file.
245 (procfs_target::pid_to_exec_file): New.
246
247 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
248
249 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
250 renaming.
251 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
252 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
253
254 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
255
256 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
257 (supply_fpregset, fill_fpregset): Move ...
258 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
259 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
260 Remove references to ioctl-based procfs.
261 Include <sys/reg.h>.
262 Remove PR_MODEL_NATIVE guards.
263 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
264 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
265
266 2018-09-19 Xavier Roirand <roirand@adacore.com>
267
268 PR gdb/20981:
269 * solib-darwin.c (darwin_get_dyld_bfd): New function.
270 (darwin_solib_get_all_image_info_addr_at_init): Update call.
271 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
272
273 2018-09-19 John Baldwin <jhb@FreeBSD.org>
274
275 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
276 (fbsd_print_sockaddr_in6): Likewise.
277
278 2018-09-19 Richard Bunt <richard.bunt@arm.com>
279 Chris January <chris.january@arm.com>
280
281 * eval.c (skip_undetermined_arglist): Skip argument list helper.
282 (evaluate_subexp_standard): Return a dummy type when
283 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
284 OP_F77_UNDETERMINED_ARGLIST case.
285 * expression.h (enum noside): Update comment.
286
287 2018-09-19 George Vasick <george.vasick@oracle.com>
288
289 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
290
291 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
292 April Chin <april.chin@oracle.com>
293 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
294
295 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
296 uint_t lwpid_t.
297 (create_procinfo): Print pids in /proc without leading zeros.
298
299 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
300
301 * nios2-tdep.c (nios2_gcc_target_options): New.
302 (nios2_gdb_arch_init): Install new hook.
303
304 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
305
306 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
307 New file.
308 * update-gnulib.sh: Apply patch.
309 * configure: Re-generate.
310
311 2018-09-18 John Baldwin <jhb@FreeBSD.org>
312
313 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
314 description. Make "info proc" command descriptions more
315 consistent.
316
317 2018-09-18 John Baldwin <jhb@FreeBSD.org>
318
319 * NEWS: Mention 'info proc files' command.
320
321 2018-09-18 John Baldwin <jhb@FreeBSD.org>
322
323 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
324 descriptors for IP_FILES and IP_ALL.
325
326 2018-09-18 John Baldwin <jhb@FreeBSD.org>
327
328 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
329 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
330 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
331 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
332 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
333 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
334 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
335 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
336 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
337 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
338 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
339 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
340 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
341 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
342 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
343 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
344 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
345 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
346 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
347 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
348 (struct fbsd_sockaddr_un): New types.
349 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
350 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
351 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
352 (fbsd_core_info_proc_files): New functions.
353 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
354 IP_ALL.
355 * fbsd-tdep.h (fbsd_info_proc_files_header)
356 (fbsd_info_proc_files_entry): New.
357
358 2018-09-18 John Baldwin <jhb@FreeBSD.org>
359
360 * defs.h (enum info_proc_what) [IP_FILES]: New value.
361 * infcmd.c (info_proc_cmd_files): New function.
362 (_initialize_infcmd): Register 'info proc files' command.
363
364 2018-09-18 John Baldwin <jhb@FreeBSD.org>
365
366 * gnulib/aclocal-m4-deps.mk: Re-generate.
367 * gnulib/aclocal.m4: Re-generate.
368 * gnulib/config.in: Re-generate.
369 * gnulib/configure: Re-generate.
370 * gnulib/import/Makefile.am: Re-generate.
371 * gnulib/import/Makefile.in: Re-generate.
372 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
373 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
374 * gnulib/import/arpa_inet.in.h: New file.
375 * gnulib/import/inet_ntop.c: New file.
376 * gnulib/import/m4/arpa_inet_h.m4: New file.
377 * gnulib/import/m4/inet_ntop.m4: New file.
378 * gnulib/import/m4/netinet_in_h.m4: New file.
379 * gnulib/import/m4/socklen.m4: New file.
380 * gnulib/import/m4/sockpfaf.m4: New file.
381 * gnulib/import/m4/stdalign.m4: New file.
382 * gnulib/import/m4/sys_uio_h.m4: New file.
383 * gnulib/import/netinet_in.in.h: New file.
384 * gnulib/import/stdalign.in.h: New file.
385 * gnulib/import/sys_socket.c: New file.
386 * gnulib/import/sys_socket.in.h: New file.
387 * gnulib/import/sys_uio.in.h: New file.
388 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
389 module.
390
391 2018-09-18 John Baldwin <jhb@FreeBSD.org>
392
393 * gnulib/aclocal-m4-deps.mk: New file.
394 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
395 deterministically.
396
397 2018-09-18 John Baldwin <jhb@FreeBSD.org>
398
399 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
400 KVE_PATH.
401
402 2018-09-18 Tom Tromey <tom@tromey.com>
403
404 * compile/compile-object-load.c (struct
405 link_hash_table_cleanup_data): Add constructor and destructor.
406 Use DISABLE_COPY_AND_ASSIGN.
407 (~link_hash_table_cleanup_data): Rename from
408 link_hash_table_free. Now a destructor.
409 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
410
411 2018-09-18 Tom Tromey <tom@tromey.com>
412
413 * compile/compile-object-run.c (do_module_cleanup): Use delete.
414 * compile/compile-object-load.c (struct munmap_list): Move to
415 header file.
416 (munmap_list::add): Rename from munmap_list_add; rewrite.
417 (munmap_list::~munmap_list): Rename from munmap_list_free.
418 (munmap_listp_free_cleanup): Remove.
419 (compile_object_load): Update.
420 * compile/compile-object-load.h (struct munmap_list): Move from
421 compile-object-load.c. Rewrite.
422
423 2018-09-18 Alan Hayward <alan.hayward@arm.com>
424
425 * aarch64-tdep.c (pass_in_v): Use register size.
426 (aarch64_extract_return_value): Likewise.
427 (aarch64_store_return_value): Likewise.
428
429 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
430
431 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
432 rlim_t.
433
434 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
435
436 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
437 Fix short help line.
438
439 2018-09-17 Tom Tromey <tom@tromey.com>
440
441 PR python/20445:
442 * configure: Rebuild.
443 * configure.ac: Conditionally use -DNDEBUG for Python.
444
445 2018-09-17 Tom Tromey <tom@tromey.com>
446
447 * configure: Rebuild.
448 * configure.ac: Use gmp as a library dependency when checking for
449 mpfr.
450
451 2018-09-17 Pedro Alves <palves@redhat.com>
452
453 * python/py-inferior.c (find_inferior_object): Delete.
454
455 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
456
457 * compile/compile-cplus-types.c
458 (compile_cplus_instance::enter_scope): Don't use new_scope after
459 std::move.
460
461 2018-09-17 Tom Tromey <tom@tromey.com>
462
463 * common/pathstuff.c (get_standard_cache_dir): Use
464 ~/Library/Caches on macOS.
465 * common/pathstuff.h (get_standard_cache_dir): Update comment.
466
467 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
468
469 PR python/23669
470 * breakpoint.c (commands_cmd_element): New.
471 (_initialize_breakpoint): Assign commands_cmd_element.
472 * breakpoint.h (commands_cmd_element): New.
473 * cli/cli-script.c (while_cmd_element, if_command,
474 define_cmd_element): New.
475 (command_name_equals): Remove.
476 (process_next_line): Compare commands by pointer, not by name.
477 (_initialize_cli_script): Assign the various cmd_list_element
478 variables.
479 * compile/compile.c (compile_cmd_element): New.
480 (_initialize_compile): Assign compile_cmd_element.
481 * compile/compile.h (compile_cmd_element): New.
482 * guile/guile.c (guile_cmd_element): New.
483 (install_gdb_commands): Assign guile_cmd_element.
484 * guile/guile.h (guile_cmd_element): New.
485 * python/python.c (python_cmd_element): New.
486 (_initialize_python): Assign python_cmd_element.
487 * python/python.h (python_cmd_element): New.
488 * tracepoint.c (while_stepping_cmd_element): New.
489 (_initialize_tracepoint): Assign while_stepping_cmd_element.
490 * tracepoint.h (while_stepping_cmd_element): New.
491
492 2018-09-17 Tom Tromey <tom@tromey.com>
493
494 * infrun.c (save_infcall_suspend_state): Return
495 infcall_suspend_state_up.
496 (save_infcall_control_state): Return infcall_control_state_up.
497 * inferior.h (save_infcall_suspend_state)
498 (save_infcall_control_state): Declare later. Return unique
499 pointers.
500
501 2018-09-17 Tom Tromey <tom@tromey.com>
502
503 * infrun.c (struct stop_context): Declare constructor,
504 destructor, "changed" method.
505 (stop_context::stop_context): Rename from save_stop_context.
506 (stop_context::~stop_context): Rename from
507 release_stop_context_cleanup.
508 (normal_stop): Update.
509 (stop_context::changed): Rename from stop_context_changed. Return
510 bool.
511
512 2018-09-17 Tom Tromey <tom@tromey.com>
513
514 * inferior.h (struct infcall_suspend_state_deleter): New.
515 (infcall_suspend_state_up): New typedef.
516 (struct infcall_control_state_deleter): New.
517 (infcall_control_state_up): New typedef.
518 (make_cleanup_restore_infcall_suspend_state)
519 (make_cleanup_restore_infcall_control_state): Don't declare.
520 * infcall.c (call_function_by_hand_dummy): Update.
521 * infrun.c (do_restore_infcall_suspend_state_cleanup)
522 (make_cleanup_restore_infcall_suspend_state): Remove.
523 (do_restore_infcall_control_state_cleanup)
524 (make_cleanup_restore_infcall_control_state): Remove.
525
526 2018-09-17 Tom Tromey <tom@tromey.com>
527
528 * gdbthread.h (struct thread_control_state): Add initializer.
529 (class thread_info) <control>: Remove initializer.
530 * inferior.h (struct inferior_control_state): Add initializer.
531 (class inferior) <control>: Remove initializer.
532 (exit_inferior_1): Update.
533 * infrun.c (struct infcall_control_state): Add constructors.
534 (save_infcall_control_state): Use new.
535 (restore_infcall_control_state, discard_infcall_control_state):
536 Use delete.
537
538 2018-09-17 Tom Tromey <tom@tromey.com>
539
540 * infrun.c (struct infcall_suspend_state) <registers>: Now a
541 unique_ptr.
542 <siginfo_data>: Now a unique_xmalloc_ptr.
543 (save_infcall_suspend_state, restore_infcall_suspend_state)
544 (discard_infcall_suspend_state)
545 (get_infcall_suspend_state_regcache): Update.
546
547 2018-09-17 Tom Tromey <tom@tromey.com>
548
549 * gdbthread.h (struct thread_suspend_state): Add initializers.
550 (class thread_info) <suspend>: Remove initializer.
551 * infrun.c (struct infcall_suspend_state): Add initializers.
552 (save_infcall_suspend_state): Use new.
553 (discard_infcall_suspend_state): Use delete.
554
555 2018-09-16 Tom Tromey <tom@tromey.com>
556
557 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
558 Remove.
559 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
560 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
561 (py_varobj_iter_new): Likewise.
562 (py_varobj_get_iterator): Use gdbpy_ref.
563
564 2018-09-16 Tom Tromey <tom@tromey.com>
565
566 * python/py-threadevent.c (py_get_event_thread): Simplify.
567 * python/py-inferior.c (infpy_thread_from_thread_handle):
568 Return immediately after calling thread_to_thread_object. Use
569 Py_RETURN_NONE.
570 (thread_to_thread_object): Set the exception on a NULL return.
571
572 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
573
574 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
575
576 2018-09-16 Tom Tromey <tom@tromey.com>
577
578 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
579 Remove.
580
581 2018-09-16 Tom Tromey <tom@tromey.com>
582
583 * python/python-internal.h (thread_to_thread_object): Change
584 return type.
585 * python/py-inferior.c (thread_to_thread_object): Return a new
586 reference.
587 (infpy_thread_from_thread_handle): Update.
588 * python/py-infthread.c (gdbpy_selected_thread): Update.
589 * python/py-stopevent.c (create_stop_event_object): Update.
590 * python/py-threadevent.c (py_get_event_thread): Return a new
591 reference.
592 (py_get_event_thread): Update.
593 * python/py-event.h (py_get_event_thread): Change return type.
594 * python/py-continueevent.c (create_continue_event_object):
595 Update.
596
597 2018-09-16 Tom Tromey <tom@tromey.com>
598
599 * python/py-progspace.c (pspy_get_objfiles): Update.
600 * python/python-internal.h (objfile_to_objfile_object): Change
601 return type.
602 * python/py-newobjfileevent.c (create_new_objfile_event_object):
603 Update.
604 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
605 Update.
606 * python/python.c (gdbpy_get_current_objfile): Update.
607 (gdbpy_objfiles): Update.
608 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
609 Update.
610 (objfile_to_objfile_object): Return a new reference.
611 * python/py-symtab.c (stpy_get_objfile): Update.
612 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
613 Update.
614
615 2018-09-16 Tom Tromey <tom@tromey.com>
616
617 * python/py-inferior.c (infpy_get_progspace): Update.
618 * python/python-internal.h (pspace_to_pspace_object): Change
619 return type.
620 * python/py-newobjfileevent.c
621 (create_clear_objfiles_event_object): Update.
622 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
623 Update.
624 * python/python.c (gdbpy_get_current_progspace): Update.
625 (gdbpy_progspaces): Update.
626 * python/py-progspace.c (pspace_to_pspace_object): Return a new
627 reference.
628 * python/py-objfile.c (objfpy_get_progspace): Update.
629 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
630 Update.
631
632 2018-09-16 Tom Tromey <tom@tromey.com>
633
634 * python/lib/gdb/__init__.py (current_progspace, objfiles)
635 (solib_name, block_for_pc, find_pc_line): New functions.
636 (execute_unwinders): Update.
637 * python/py-block.c (gdbpy_block_for_pc): Remove.
638 * python/py-inferior.c (infpy_get_progspace): New function.
639 (inferior_object_getset) <progspace>: Add.
640 * python/py-progspace.c (pspy_objfiles): Rewrite.
641 (pspy_solib_name, pspy_block_for_pc)
642 (pspy_find_pc_line, pspy_is_valid): New functions.
643 (progspace_object_methods): Add entries for solib_name,
644 block_for_pc, find_pc_line, is_valid.
645 * python/python-internal.h (gdbpy_block_for_pc)
646 (build_objfiles_list): Don't declare.
647 * python/python.c: Don't include solib.h.
648 (gdbpy_solib_name, gdbpy_find_pc_line)
649 (gdbpy_get_current_progspace, build_objfiles_list)
650 (gdbpy_objfiles): Remove.
651 (GdbMethods) <current_progspace, objfiles, block_for_pc,
652 solib_name, find_pc_line>: Remove entries.
653
654 2018-09-16 Tom Tromey <tom@tromey.com>
655
656 * top.c (new_ui_command): Use GNU style for metasyntactic
657 variables.
658 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
659 variables.
660 * maint.c (maintenance_translate_address): Remove "<>" around
661 text.
662 * interps.c (interpreter_exec_cmd): Use GNU style for
663 metasyntactic variables.
664 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
665 metasyntactic variables.
666 * tracepoint.c (tfind_range_command): Use GNU style for
667 metasyntactic variables.
668 (tfind_outside_command): Likewise.
669 (_initialize_tracepoint): Likewise.
670 * remote.c (extended_remote_target::create_inferior): Use GNU
671 style for metasyntactic variables.
672 * sparc64-tdep.c (adi_examine_command): Use GNU style for
673 metasyntactic variables.
674 (adi_assign_command): Likewise.
675
676 2018-09-16 Tom Tromey <tom@tromey.com>
677
678 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
679 metasyntactic variables. Print message if no disassembler options
680 are available.
681
682 2018-09-15 Tom Tromey <tom@tromey.com>
683
684 * infcmd.c (get_inferior_args): Return const char *.
685 * inferior.h (get_inferior_args): Return type now const.
686 * linux-tdep.c (linux_fill_prpsinfo): Update.
687 * procfs.c (procfs_target::make_corefile_notes): Update.
688
689 2018-09-07 Tom Tromey <tom@tromey.com>
690
691 * python/python.c (execute_gdb_command): Call bpstat_do_actions
692 inside the TRY.
693
694 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
695
696 * nios2-tdep.c (nios2_type_align): New.
697 (nios2_gdb_arch_init): Install type_align hook.
698
699 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
700
701 * eval.c (fake_method::fake_method): Call xzalloc directly for a
702 type that is neither object file owned, nor gdbarch owned.
703 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
704 gdbarch is non-NULL.
705 (alloc_type_instance): Allocate non-objfile owned types on the
706 gdbarch obstack.
707 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
708 using TYPE_ALLOC to ensure memory is allocated on the correct
709 obstack.
710 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
711 obstack, or the gdbarch obstack.
712 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
713
714 2018-09-14 Tom Tromey <tom@tromey.com>
715
716 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
717 block.
718
719 2018-09-14 Tom Tromey <tom@tromey.com>
720
721 * nat/fork-inferior.c (get_startup_shell): Remove "static".
722
723 2018-09-13 Tom Tromey <tom@tromey.com>
724
725 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
726 static.
727
728 2018-09-13 Tom Tromey <tom@tromey.com>
729
730 * exec.c (try_open_exec_file): Use std::string.
731
732 2018-09-13 Tom Tromey <tom@tromey.com>
733
734 * utils.h (gdb_bfd_errmsg): Return std::string.
735 * exec.c (exec_file_attach): Update.
736 * compile/compile-object-load.c (compile_object_load): Update.
737 * utils.c (gdb_bfd_errmsg): Return std::string.
738
739 2018-09-13 Tom Tromey <tom@tromey.com>
740
741 * procfs.c (struct procinfo_deleter): New.
742 (procinfo_up): New typedef.
743 (do_destroy_procinfo_cleanup): Remove.
744 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
745
746 2018-09-13 Tom Tromey <tom@tromey.com>
747
748 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
749
750 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
751 2018-09-13 Tom Tromey <tom@tromey.com>
752
753 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
754 (pspy_get_objfiles): New function.
755 (progspace_object_methods): New.
756 (pspace_object_type): Add tp_methods callback.
757 * python/python-internal.h (build_objfiles_list): New
758 declaration.
759 * python/python.c (build_objfiles_list): New function.
760 (gdbpy_objfiles): Implement using build_objfiles_list.
761 * NEWS: Mention the Progspace.objfiles method.
762
763 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
764
765 * python/py-inferior.c (infpy_get_progspace): New function.
766 (inferior_object_getset): Add progspace property.
767 * NEWS: Mention the new property.
768
769 2018-09-13 Tom Tromey <tom@tromey.com>
770
771 PR rust/23650:
772 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
773
774 2018-09-13 Tom Tromey <tom@tromey.com>
775
776 PR rust/23626:
777 * rust-lang.c (rust_enum_variant): Now static.
778 (rust_empty_enum_p): New function.
779 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
780 Handle empty enum.
781
782 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
783
784 * python/py-inferior.c (infpy_repr): New.
785 (inferior_object_type): Register infpy_repr.
786 * python/py-objfile.c (objfpy_repr): New.
787 (objfile_object_type): Register objfpy_repr.
788
789 2018-09-12 John Baldwin <jhb@FreeBSD.org>
790
791 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
792
793 2018-09-12 John Baldwin <jhb@FreeBSD.org>
794
795 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
796 typo.
797
798 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
799
800 * common/common-utils.c: Don't include '<sys/stat.h>'.
801 (is_regular_file): Move to...
802 * common/filestuff.c (is_regular_file): ... here.
803 * common/common-utils.h (is_regular_file): Move to...
804 * common/filestuff.h (is_regular_file): ... here.
805
806 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
807
808 * skip.c (debug_skip): New variable.
809 (skiplist_entry::do_skip_file_p): Add debug output.
810 (skiplist_entry::do_skip_gfile_p): Likewise.
811 (skiplist_entry::skip_function_p): Likewise.
812 (_initialize_step_skip): Create debug command.
813 * NEWS: Mention set/show debug skip.
814
815 2018-09-11 Xavier Roirand <roirand@adacore.com>
816
817 * darwin-nat.c (should_disable_startup_with_shell):
818 New function.
819 (darwin_nat_target::create_inferior): Add call.
820
821 2018-09-11 Xavier Roirand <roirand@adacore.com>
822
823 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
824 inf_port, msg_state>: Initialize.
825 (struct darwin_thread_info) <signaled, single_step>: Change
826 type and initialize.
827 (struct darwin_thread_info) <event>: Initialize.
828
829 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
830
831 PR gdb/23555
832 PR gdb/23558
833 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
834 guesses.
835
836 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
837
838 Revert:
839 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
840
841 PR gdb/23555
842 PR gdb/23558
843 * gnulib/aclocal.m4: Regenerate.
844 * gnulib/config.in: Regenerate.
845 * gnulib/configure: Regenerate.
846 * gnulib/import/Makefile.am: Update.
847 * gnulib/import/Makefile.in: Update.
848 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
849 * gnulib/import/_Noreturn.h: ... this.
850 * gnulib/import/alloca.in.h: Update.
851 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
852 * gnulib/import/arg-nonnull.h: ... this.
853 * gnulib/import/assure.h: Update.
854 * gnulib/import/at-func.c: Update.
855 * gnulib/import/basename-lgpl.c: Update.
856 * gnulib/import/extra/snippet/c++defs.h: Rename to...
857 * gnulib/import/c++defs.h: ... this.
858 * gnulib/import/canonicalize-lgpl.c: Update.
859 * gnulib/import/cdefs.h: Update.
860 * gnulib/import/chdir-long.c: Update.
861 * gnulib/import/chdir-long.h: Update.
862 * gnulib/import/cloexec.c: Update.
863 * gnulib/import/cloexec.h: Update.
864 * gnulib/import/close.c: Update.
865 * gnulib/import/closedir.c: Update.
866 * gnulib/import/config.charset: Update.
867 * gnulib/import/dirent-private.h: Update.
868 * gnulib/import/dirent.in.h: Update.
869 * gnulib/import/dirfd.c: Update.
870 * gnulib/import/dirname-lgpl.c: Update.
871 * gnulib/import/dirname.h: Update.
872 * gnulib/import/dosname.h: Update.
873 * gnulib/import/dup-safer-flag.c: Update.
874 * gnulib/import/dup-safer.c: Update.
875 * gnulib/import/dup.c: Update.
876 * gnulib/import/dup2.c: Update.
877 * gnulib/import/errno.in.h: Update.
878 * gnulib/import/error.c: Update.
879 * gnulib/import/error.h: Update.
880 * gnulib/import/exitfail.c: Update.
881 * gnulib/import/exitfail.h: Update.
882 * gnulib/import/extra/update-copyright: Update.
883 * gnulib/import/fchdir.c: Update.
884 * gnulib/import/fcntl.c: Update.
885 * gnulib/import/fcntl.in.h: Update.
886 * gnulib/import/fd-hook.c: Update.
887 * gnulib/import/fd-hook.h: Update.
888 * gnulib/import/fd-safer-flag.c: Update.
889 * gnulib/import/fd-safer.c: Update.
890 * gnulib/import/fdopendir.c: Update.
891 * gnulib/import/filename.h: Update.
892 * gnulib/import/filenamecat-lgpl.c: Update.
893 * gnulib/import/filenamecat.h: Update.
894 * gnulib/import/flexmember.h: Update.
895 * gnulib/import/float+.h: Update.
896 * gnulib/import/float.c: Update.
897 * gnulib/import/float.in.h: Update.
898 * gnulib/import/fnmatch.c: Update.
899 * gnulib/import/fnmatch.in.h: Update.
900 * gnulib/import/fnmatch_loop.c: Update.
901 * gnulib/import/fpucw.h: Update.
902 * gnulib/import/frexp.c: Update.
903 * gnulib/import/frexpl.c: Update.
904 * gnulib/import/fstat.c: Update.
905 * gnulib/import/fstatat.c: Update.
906 * gnulib/import/getcwd-lgpl.c: Update.
907 * gnulib/import/getcwd.c: Update.
908 * gnulib/import/getdtablesize.c: Update.
909 * gnulib/import/getlogin_r.c: Update.
910 * gnulib/import/getprogname.c: Update.
911 * gnulib/import/getprogname.h: Update.
912 * gnulib/import/gettext.h: Update.
913 * gnulib/import/gettimeofday.c: Update.
914 * gnulib/import/glob-libc.h: Update.
915 * gnulib/import/glob.c: Update.
916 * gnulib/import/glob.in.h: Update.
917 * gnulib/import/glob_internal.h: Update.
918 * gnulib/import/glob_pattern_p.c: Update.
919 * gnulib/import/globfree.c: Update.
920 * gnulib/import/hard-locale.c: Update.
921 * gnulib/import/hard-locale.h: Update.
922 * gnulib/import/intprops.h: Update.
923 * gnulib/import/inttypes.in.h: Update.
924 * gnulib/import/isnan.c: Update.
925 * gnulib/import/isnand-nolibm.h: Update.
926 * gnulib/import/isnand.c: Update.
927 * gnulib/import/isnanl-nolibm.h: Update.
928 * gnulib/import/isnanl.c: Update.
929 * gnulib/import/itold.c: Update.
930 * gnulib/import/libc-config.h: Update.
931 * gnulib/import/limits.in.h: Update.
932 * gnulib/import/localcharset.c: Update.
933 * gnulib/import/localcharset.h: Update.
934 * gnulib/import/localtime-buffer.c: Update.
935 * gnulib/import/localtime-buffer.h: Update.
936 * gnulib/import/lstat.c: Update.
937 * gnulib/import/m4/00gnulib.m4: Update.
938 * gnulib/import/m4/__inline.m4: Update.
939 * gnulib/import/m4/absolute-header.m4: Update.
940 * gnulib/import/m4/alloca.m4: Update.
941 * gnulib/import/m4/builtin-expect.m4: Update.
942 * gnulib/import/m4/canonicalize.m4: Update.
943 * gnulib/import/m4/chdir-long.m4: Update.
944 * gnulib/import/m4/close.m4: Update.
945 * gnulib/import/m4/closedir.m4: Update.
946 * gnulib/import/m4/configmake.m4: Update.
947 * gnulib/import/m4/d-ino.m4: Update.
948 * gnulib/import/m4/d-type.m4: Update.
949 * gnulib/import/m4/dirent_h.m4: Update.
950 * gnulib/import/m4/dirfd.m4: Update.
951 * gnulib/import/m4/dirname.m4: Update.
952 * gnulib/import/m4/double-slash-root.m4: Update.
953 * gnulib/import/m4/dup.m4: Update.
954 * gnulib/import/m4/dup2.m4: Update.
955 * gnulib/import/m4/eealloc.m4: Update.
956 * gnulib/import/m4/environ.m4: Update.
957 * gnulib/import/m4/errno_h.m4: Update.
958 * gnulib/import/m4/error.m4: Update.
959 * gnulib/import/m4/exponentd.m4: Update.
960 * gnulib/import/m4/exponentl.m4: Update.
961 * gnulib/import/m4/extensions.m4: Update.
962 * gnulib/import/m4/extern-inline.m4: Update.
963 * gnulib/import/m4/fchdir.m4: Update.
964 * gnulib/import/m4/fcntl-o.m4: Update.
965 * gnulib/import/m4/fcntl.m4: Update.
966 * gnulib/import/m4/fcntl_h.m4: Update.
967 * gnulib/import/m4/fdopendir.m4: Update.
968 * gnulib/import/m4/filenamecat.m4: Update.
969 * gnulib/import/m4/flexmember.m4: Update.
970 * gnulib/import/m4/float_h.m4: Update.
971 * gnulib/import/m4/fnmatch.m4: Update.
972 * gnulib/import/m4/fnmatch_h.m4: Update.
973 * gnulib/import/m4/fpieee.m4: Update.
974 * gnulib/import/m4/frexp.m4: Update.
975 * gnulib/import/m4/frexpl.m4: Update.
976 * gnulib/import/m4/fstat.m4: Update.
977 * gnulib/import/m4/fstatat.m4: Update.
978 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
979 * gnulib/import/m4/getcwd-path-max.m4: Update.
980 * gnulib/import/m4/getcwd.m4: Update.
981 * gnulib/import/m4/getdtablesize.m4: Update.
982 * gnulib/import/m4/getlogin.m4: Update.
983 * gnulib/import/m4/getlogin_r.m4: Update.
984 * gnulib/import/m4/getpagesize.m4: Update.
985 * gnulib/import/m4/getprogname.m4: Update.
986 * gnulib/import/m4/gettimeofday.m4: Update.
987 * gnulib/import/m4/glibc21.m4: Update.
988 * gnulib/import/m4/glob.m4: Update.
989 * gnulib/import/m4/glob_h.m4: Update.
990 * gnulib/import/m4/gnulib-cache.m4: Update.
991 * gnulib/import/m4/gnulib-common.m4: Update.
992 * gnulib/import/m4/gnulib-comp.m4: Update.
993 * gnulib/import/m4/gnulib-tool.m4: Update.
994 * gnulib/import/m4/hard-locale.m4: Update.
995 * gnulib/import/m4/include_next.m4: Update.
996 * gnulib/import/m4/inttypes-pri.m4: Update.
997 * gnulib/import/m4/inttypes.m4: Update.
998 * gnulib/import/m4/isnand.m4: Update.
999 * gnulib/import/m4/isnanl.m4: Update.
1000 * gnulib/import/m4/largefile.m4: Update.
1001 * gnulib/import/m4/limits-h.m4: Update.
1002 * gnulib/import/m4/localcharset.m4: Update.
1003 * gnulib/import/m4/locale-fr.m4: Update.
1004 * gnulib/import/m4/locale-ja.m4: Update.
1005 * gnulib/import/m4/locale-zh.m4: Update.
1006 * gnulib/import/m4/localtime-buffer.m4: Update.
1007 * gnulib/import/m4/longlong.m4: Update.
1008 * gnulib/import/m4/lstat.m4: Update.
1009 * gnulib/import/m4/malloc.m4: Update.
1010 * gnulib/import/m4/malloca.m4: Update.
1011 * gnulib/import/m4/math_h.m4: Update.
1012 * gnulib/import/m4/mbrtowc.m4: Update.
1013 * gnulib/import/m4/mbsinit.m4: Update.
1014 * gnulib/import/m4/mbsrtowcs.m4: Update.
1015 * gnulib/import/m4/mbstate_t.m4: Update.
1016 * gnulib/import/m4/memchr.m4: Update.
1017 * gnulib/import/m4/memmem.m4: Update.
1018 * gnulib/import/m4/mempcpy.m4: Update.
1019 * gnulib/import/m4/memrchr.m4: Update.
1020 * gnulib/import/m4/mkdir.m4: Update.
1021 * gnulib/import/m4/mkstemp.m4: Update.
1022 * gnulib/import/m4/mmap-anon.m4: Update.
1023 * gnulib/import/m4/mode_t.m4: Update.
1024 * gnulib/import/m4/msvc-inval.m4: Update.
1025 * gnulib/import/m4/msvc-nothrow.m4: Update.
1026 * gnulib/import/m4/multiarch.m4: Update.
1027 * gnulib/import/m4/nocrash.m4: Update.
1028 * gnulib/import/m4/off_t.m4: Update.
1029 * gnulib/import/m4/onceonly.m4: Update.
1030 * gnulib/import/m4/open-cloexec.m4: Update.
1031 * gnulib/import/m4/open.m4: Update.
1032 * gnulib/import/m4/openat.m4: Update.
1033 * gnulib/import/m4/opendir.m4: Update.
1034 * gnulib/import/m4/pathmax.m4: Update.
1035 * gnulib/import/m4/rawmemchr.m4: Update.
1036 * gnulib/import/m4/readdir.m4: Update.
1037 * gnulib/import/m4/readlink.m4: Update.
1038 * gnulib/import/m4/realloc.m4: Update.
1039 * gnulib/import/m4/rename.m4: Update.
1040 * gnulib/import/m4/rewinddir.m4: Update.
1041 * gnulib/import/m4/rmdir.m4: Update.
1042 * gnulib/import/m4/save-cwd.m4: Update.
1043 * gnulib/import/m4/secure_getenv.m4: Update.
1044 * gnulib/import/m4/setenv.m4: Update.
1045 * gnulib/import/m4/signal_h.m4: Update.
1046 * gnulib/import/m4/ssize_t.m4: Update.
1047 * gnulib/import/m4/stat-time.m4: Update.
1048 * gnulib/import/m4/stat.m4: Update.
1049 * gnulib/import/m4/std-gnu11.m4: Update.
1050 * gnulib/import/m4/stdbool.m4: Update.
1051 * gnulib/import/m4/stddef_h.m4: Update.
1052 * gnulib/import/m4/stdint.m4: Update.
1053 * gnulib/import/m4/stdio_h.m4: Update.
1054 * gnulib/import/m4/stdlib_h.m4: Update.
1055 * gnulib/import/m4/strchrnul.m4: Update.
1056 * gnulib/import/m4/strdup.m4: Update.
1057 * gnulib/import/m4/strerror.m4: Update.
1058 * gnulib/import/m4/string_h.m4: Update.
1059 * gnulib/import/m4/strstr.m4: Update.
1060 * gnulib/import/m4/strtok_r.m4: Update.
1061 * gnulib/import/m4/sys_socket_h.m4: Update.
1062 * gnulib/import/m4/sys_stat_h.m4: Update.
1063 * gnulib/import/m4/sys_time_h.m4: Update.
1064 * gnulib/import/m4/sys_types_h.m4: Update.
1065 * gnulib/import/m4/tempname.m4: Update.
1066 * gnulib/import/m4/time_h.m4: Update.
1067 * gnulib/import/m4/unistd-safer.m4: Update.
1068 * gnulib/import/m4/unistd_h.m4: Update.
1069 * gnulib/import/m4/warn-on-use.m4: Update.
1070 * gnulib/import/m4/wchar_h.m4: Update.
1071 * gnulib/import/m4/wchar_t.m4: Update.
1072 * gnulib/import/m4/wctype_h.m4: Update.
1073 * gnulib/import/m4/wint_t.m4: Update.
1074 * gnulib/import/malloc.c: Update.
1075 * gnulib/import/malloc/scratch_buffer.h: Update.
1076 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1077 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1078 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1079 * gnulib/import/malloca.c: Update.
1080 * gnulib/import/malloca.h: Update.
1081 * gnulib/import/malloca.valgrind: Update.
1082 * gnulib/import/math.in.h: Update.
1083 * gnulib/import/mbrtowc.c: Update.
1084 * gnulib/import/mbsinit.c: Update.
1085 * gnulib/import/mbsrtowcs-impl.h: Update.
1086 * gnulib/import/mbsrtowcs-state.c: Update.
1087 * gnulib/import/mbsrtowcs.c: Update.
1088 * gnulib/import/memchr.c: Update.
1089 * gnulib/import/memmem.c: Update.
1090 * gnulib/import/mempcpy.c: Update.
1091 * gnulib/import/memrchr.c: Update.
1092 * gnulib/import/mkdir.c: Update.
1093 * gnulib/import/mkstemp.c: Update.
1094 * gnulib/import/msvc-inval.c: Update.
1095 * gnulib/import/msvc-inval.h: Update.
1096 * gnulib/import/msvc-nothrow.c: Update.
1097 * gnulib/import/msvc-nothrow.h: Update.
1098 * gnulib/import/open.c: Update.
1099 * gnulib/import/openat-die.c: Update.
1100 * gnulib/import/openat-priv.h: Update.
1101 * gnulib/import/openat-proc.c: Update.
1102 * gnulib/import/openat.c: Update.
1103 * gnulib/import/openat.h: Update.
1104 * gnulib/import/opendir.c: Update.
1105 * gnulib/import/pathmax.h: Update.
1106 * gnulib/import/pipe-safer.c: Update.
1107 * gnulib/import/rawmemchr.c: Update.
1108 * gnulib/import/readdir.c: Update.
1109 * gnulib/import/readlink.c: Update.
1110 * gnulib/import/realloc.c: Update.
1111 * gnulib/import/ref-add.sin: Update.
1112 * gnulib/import/ref-del.sin: Update.
1113 * gnulib/import/rename.c: Update.
1114 * gnulib/import/rewinddir.c: Update.
1115 * gnulib/import/rmdir.c: Update.
1116 * gnulib/import/same-inode.h: Update.
1117 * gnulib/import/save-cwd.c: Update.
1118 * gnulib/import/save-cwd.h: Update.
1119 * gnulib/import/scratch_buffer.h: Update.
1120 * gnulib/import/secure_getenv.c: Update.
1121 * gnulib/import/setenv.c: Update.
1122 * gnulib/import/signal.in.h: Update.
1123 * gnulib/import/stat-time.c: Update.
1124 * gnulib/import/stat-time.h: Update.
1125 * gnulib/import/stat-w32.c: Update.
1126 * gnulib/import/stat-w32.h: Update.
1127 * gnulib/import/stat.c: Update.
1128 * gnulib/import/stdbool.in.h: Update.
1129 * gnulib/import/stddef.in.h: Update.
1130 * gnulib/import/stdint.in.h: Update.
1131 * gnulib/import/stdio.in.h: Update.
1132 * gnulib/import/stdlib.in.h: Update.
1133 * gnulib/import/str-two-way.h: Update.
1134 * gnulib/import/strchrnul.c: Update.
1135 * gnulib/import/strdup.c: Update.
1136 * gnulib/import/streq.h: Update.
1137 * gnulib/import/strerror-override.c: Update.
1138 * gnulib/import/strerror-override.h: Update.
1139 * gnulib/import/strerror.c: Update.
1140 * gnulib/import/string.in.h: Update.
1141 * gnulib/import/stripslash.c: Update.
1142 * gnulib/import/strnlen1.c: Update.
1143 * gnulib/import/strnlen1.h: Update.
1144 * gnulib/import/strstr.c: Update.
1145 * gnulib/import/strtok_r.c: Update.
1146 * gnulib/import/sys_stat.in.h: Update.
1147 * gnulib/import/sys_time.in.h: Update.
1148 * gnulib/import/sys_types.in.h: Update.
1149 * gnulib/import/tempname.c: Update.
1150 * gnulib/import/tempname.h: Update.
1151 * gnulib/import/time.in.h: Update.
1152 * gnulib/import/unistd--.h: Update.
1153 * gnulib/import/unistd-safer.h: Update.
1154 * gnulib/import/unistd.in.h: Update.
1155 * gnulib/import/unsetenv.c: Update.
1156 * gnulib/import/verify.h: Update.
1157 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1158 * gnulib/import/wchar.in.h: Update.
1159 * gnulib/import/wctype.in.h: Update.
1160 * gnulib/import/xalloc-oversized.h: Update.
1161 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1162 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1163
1164 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1165
1166 * record-btrace.c (get_thread_current_frame): Remove
1167 old_inferior_ptid.
1168
1169 2018-09-10 Jerome Guitton <guitton@adacore.com>
1170
1171 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1172 with check_tag to 1 if and only if the type is tagged and the
1173 component being searched cannot been found in the current
1174 view. Otherwise, always call ada_to_fixed_type with
1175 check_tag to 0.
1176
1177 2018-09-10 Xavier Roirand <roirand@adacore.com>
1178
1179 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1180 declaration.
1181 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1182 * ada-varobj.c (ada_varobj_get_number_of_children,
1183 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1184
1185 2018-09-10 Xavier Roirand <roirand@adacore.com>
1186
1187 * ada-valprint.c (ada_value_print): Use type instead of
1188 enclosing type.
1189
1190 2018-09-10 Xavier Roirand <roirand@adacore.com>
1191
1192 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1193 an array of access to unconstrained array.
1194
1195 2018-09-10 Xavier Roirand <roirand@adacore.com>
1196
1197 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1198 (ada_check_typedef): Use it.
1199
1200 2018-09-10 Xavier Roirand <roirand@adacore.com>
1201
1202 * ada-varobj.c (ada_varobj_describe_struct_child)
1203 (ada_varobj_describe_child): Handle union case like struct one.
1204
1205 2018-09-10 Tom Tromey <tom@tromey.com>
1206
1207 PR python/18380:
1208 * python/python.c (_initialize_python): Make example in "python"
1209 help work in Python 3.
1210
1211 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1212
1213 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1214 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1215 $(EXEEXT) to the script, as it is not a program.
1216
1217 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1218
1219 * python/py-prettyprint.c (pretty_print_one_value): Return
1220 gdbpy_ref<>.
1221 (print_string_repr): Adjust.
1222 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1223 * python/python-internal.h (apply_varobj_pretty_printer): Return
1224 gdbpy_ref<>.
1225 * varobj.c (varobj_value_get_print_value): Adjust.
1226
1227 2018-09-08 Tom Tromey <tom@tromey.com>
1228
1229 PR python/16047:
1230 * python/py-prettyprint.c (pretty_print_one_value): Check for
1231 to_string method.
1232
1233 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1234
1235 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1236 replace_operator_with_call.
1237
1238 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1239
1240 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1241
1242 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1243
1244 * ada-typeprint.c (print_range): Print the bounds using TYPE
1245 rather than its TYPE_TARGET_TYPE.
1246
1247 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1248
1249 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1250 call to ada_to_fixed_value_create.
1251
1252 2018-09-08 Jerome Guitton <guitton@adacore.com>
1253
1254 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1255
1256 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1257
1258 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1259 by calls to error.
1260
1261 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1262
1263 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1264 Move update of loop variable "fi".
1265
1266 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1267
1268 * ada-lang.c (value_assign_to_component): In the case of
1269 big-endian targets, extract the bits of the given VAL
1270 using an src_offset of zero if container is not a scalar.
1271
1272 2018-09-06 Simon Ser <contact@emersion.fr>
1273
1274 PR gdb/23105
1275 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1276 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1277 * fbsd-tdep.c (fbsd_make_note_desc): New.
1278 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1279 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1280 * target.h (enum target_object) Add FreeBSD-specific
1281 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1282
1283 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1284
1285 * compile/compile-c.h (generate_c_for_variable_locations):
1286 Change reference to pointer.
1287 * compile/compile-c-support.c (compile_program) <compute>:
1288 Likewise.
1289 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1290 (generate_c_for_for_one_variable): Likewise
1291 (generate_c_for_variable_locations): Likewise
1292 * compile/compile-c-types.c (compile_c_instance::convert_type):
1293 Likewise
1294 * compile/compile-cplus-symbols.c (convert_one_symbol):
1295 std::move the scope passed to enter_scope.
1296 * compile/compile-cplus-types.c
1297 (compile_cplus_instance::enter_scope): Make parameter
1298 rvalue-reference.
1299 (compile_cplus_instance::new_scope): Change reference to
1300 pointer.
1301 (compile_cplus_instance::convert_type): Likewise
1302 (compile_cplus_convert_typedef): std::move the scope passed to
1303 enter_scope.
1304 (compile_cplus_convert_struct_or_union): Likewise.
1305 (compile_cplus_convert_enum): Likewise.
1306 (compile_cplus_convert_namespace): Likewise.
1307 * compile/compile-cplus.h (compile_cplus_instance)
1308 <enter_scope>: Make parameter rvalue-reference.
1309 * compile/compile-internal.h (compile_instance)
1310 <get_cached_type>: Likewise
1311 * compile/compile-loc2c.c (push): Likewise
1312 (pushf): Likewise
1313 (unary): Likewise
1314 (binary): Likewise
1315 (print_label): Likewise
1316 (pushf_register_address): Likewise
1317 (pushf_register): Likewise
1318 (do_compile_dwarf_expr_to_c): Likewise
1319 (compile_dwarf_expr_to_c): Likewise
1320 (compile_dwarf_bounds_to_c): Likewise
1321 * compile/compile.c (compile_instance::get_cached_type):
1322 Likewise
1323 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1324 (compile_dwarf_bounds_to_c): Likewise
1325 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1326 (dwarf2_compile_property_to_c): Likewise
1327 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1328 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1329 Likewise
1330
1331 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1332
1333 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1334 * tui/tui-data.c (init_content_element): Don't initialize it.
1335
1336 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1337
1338 * tui/tui-data.h (struct tui_win_info)
1339 <detail::opaque>: Remove.
1340 * tui/tui-data.c (init_win_info): Remove assignment.
1341
1342 2018-09-05 Tom Tromey <tom@tromey.com>
1343
1344 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1345 -Wformat-nonliteral.
1346 * target-float.c (host_float_ops<T>::to_string)
1347 (host_float_ops<T>::from_string): Use
1348 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1349 * configure: Rebuild.
1350
1351 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1352
1353 * printcmd.c (printf_c_string): Use
1354 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1355 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1356
1357 2018-09-05 Tom Tromey <tom@tromey.com>
1358
1359 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1360
1361 2018-09-05 Tom de Vries <tdevries@suse.de>
1362
1363 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1364 with resolve_abstract_p == true.
1365 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1366 defaulting to false. Propagate resolve_abstract_p to
1367 dwarf2_fetch_die_loc_sect_off.
1368 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1369 parameter, defaulting to false.
1370 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1371 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1372 parameter.
1373 * dwarf2read.h (struct die_info): Forward-declare.
1374 (die_info_ptr): New typedef.
1375 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1376
1377 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1378
1379 GDB 8.2 released.
1380
1381 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1382 Pedro Alves <palves@redhat.com>
1383
1384 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1385 "aclocal-m4-deps.mk". Include file here.
1386 $(srcdir)/aclocal.m4: Add "configure.ac".
1387 * gnulib/aclocal-m4-deps.mk: New file.
1388 * gnulib/update-gnulib.sh: Automatically update
1389 "aclocal-m4-deps.mk".
1390
1391 2018-09-04 Tom Tromey <tom@tromey.com>
1392
1393 * configure: Rebuild.
1394 * configure.ac: Remove multi-ice code.
1395
1396 2018-09-04 Tom Tromey <tom@tromey.com>
1397
1398 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1399 (ada-exp.o): Update.
1400
1401 2018-09-04 Tom Tromey <tom@tromey.com>
1402
1403 * Makefile.in (printcmd.o, target-float.o): Remove.
1404 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1405
1406 2018-09-04 Tom Tromey <tom@tromey.com>
1407
1408 * gnulib/Makefile.in: Remove obsolete comment.
1409 * Makefile.in: Remove obsolete comment.
1410
1411 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1412
1413 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1414 line with '+'.
1415
1416 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1417
1418 * riscv-tdep.c: Add 'prologue-value.h' include.
1419 (struct riscv_unwind_cache): New struct.
1420 (riscv_debug_unwinder): New global.
1421 (riscv_scan_prologue): Update arguments, capture register details
1422 from prologue scan.
1423 (riscv_skip_prologue): Reformat arguments line, move end of
1424 prologue calculation into riscv_scan_prologue.
1425 (riscv_frame_cache): Update return type, create
1426 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1427 details.
1428 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1429 (riscv_frame_prev_register): Use the trad_frame within the
1430 riscv_unwind_cache.
1431 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1432 flag.
1433
1434 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1435
1436 * trad-frame.h (trad_frame_set_realreg): Declare.
1437 (trad_frame_set_addr): Declare.
1438 * trad-frame.c (trad_frame_set_realreg): Define new function.
1439 (trad_frame_set_addr): Define new function.
1440 (trad_frame_set_reg_realreg): Use new function.
1441 (trad_frame_set_reg_addr): Use new function.
1442
1443 2018-09-01 Keith Seitz <keiths@redhat.com>
1444
1445 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1446 pulongest instead of "%lld".
1447 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1448 ATTRIBUTE_UNUSED.
1449
1450 2018-08-31 Tom Tromey <tom@tromey.com>
1451
1452 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1453 variant part type.
1454
1455 2018-08-31 Pedro Alves <palves@redhat.com>
1456
1457 * gdbarch.h: Regenerate.
1458
1459 2018-08-31 Pedro Alves <palves@redhat.com>
1460
1461 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1462 * target.h (Hardware watchpoint interfaces): Describe
1463 continuable/steppable/non-steppable watchpoints.
1464 * gdbarch.h, gdbarch.c: Regenerate.
1465
1466 2018-08-31 Pedro Alves <palves@redhat.com>
1467
1468 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1469 Delete.
1470 * s390-linux-nat.c
1471 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1472 * target.h (target_ops::have_continuable_watchpoint): Delete.
1473 (target_have_continuable_watchpoint): Delete.
1474 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1475 * target-delegates.c: Regenerate.
1476
1477 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1478
1479 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1480 the files present in "gnulib/import/m4/".
1481
1482 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1483
1484 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1485 c.sw, c.swsp, and c.sdsp.
1486
1487 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1488
1489 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1490 (riscv_read_misa_reg): Don't cache value read into inferior data.
1491 (riscv_new_inferior_data): Delete.
1492 (riscv_inferior_data_cleanup): Delete.
1493 (riscv_inferior_data): Delete.
1494 (riscv_invalidate_inferior_data): Delete.
1495 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1496
1497 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1498
1499 * compile/compile-cplus-types.c
1500 (compile_cplus_instance::leave_scope): Take the address of scope
1501 object.
1502 (compile_cplus_instance::convert_qualified_base): Compare quals
1503 to 0.
1504
1505 2018-08-30 Keith Seitz <keiths@redhat.com>
1506
1507 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1508 Use "%s" and host_address_to_string instead of "%p" in printf.
1509
1510 2018-08-29 Keith Seitz <keiths@redhat.com>
1511
1512 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1513 and compile-cplus-types.c.
1514 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1515 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1516 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1517 Declare.
1518 * compile/compile-c-support.c: Include compile-cplus.h.
1519 (load_libcompile): Templatize.
1520 (get_compile_context): "New" function.
1521 (c_get_compile_context): Use get_compile_context.
1522 (cplus_get_compile_context): New function.
1523 (cplus_push_user_expression, cplus_pop_user_expression)
1524 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1525 (cplus_compute_program): Define new structs/functions.
1526 * compile/compile-cplus-symmbols.c: New file.
1527 * compile/compile-cplus-types.c: New file.
1528 * compile/compile-cplus.h: New file.
1529 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1530 Declare.
1531 * compile/compile-object-load.c (get_out_value_type): Use
1532 strncmp_iw when comparing symbol names.
1533 (compile_object_load): Add mst_bss and mst_data.
1534 * compile/compile.c (_initialize_compile): Remove
1535 -Wno-implicit-function-declaration from `compile_args'.
1536 * compile/gcc-cp-plugin.h: New file.
1537 * NEWS: Mention C++ compile support and new debug options.
1538
1539 2018-08-29 Keith Seitz <keiths@redhat.com>
1540
1541 * linespec.c (collect_info::add_symbol): Make virtual.
1542 (struct symbol_searcher_collect_info): New struct.
1543 (symbol_searcher::find_all_symbols): New method.
1544 * symtab.h (class symbol_searcher): New class.
1545
1546 2018-08-29 Keith Seitz <keiths@redhat.com>
1547
1548 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1549 Change to vector of block_symbol. Update all users.
1550 (struct collect_info) <symbols>: Likewise.
1551 (collect_info::add_symbol): Take block_symbol as argument.
1552 Update all callers.
1553 (decode_compound_collector) <m_symbols>: Change type to vector
1554 of block_symbol. Update all users.
1555 (decode_compound_collector::operator ()): Change parameter type
1556 to block_symbol.
1557 (find_method, find_function_symbols, find_linespec_symbols)
1558 (find_label_symbols_in_block, find_label_symbols): Change symbol
1559 vectors to block_symbol vectors.
1560 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1561 block_symbol.
1562
1563 2018-08-29 Keith Seitz <keiths@redhat.com>
1564
1565 * linespec.c (symbolp): Remove typedef and VEC definitions.
1566 (bound_minimal_symbol_d): Likewise.
1567
1568 2018-08-29 Keith Seitz <keiths@redhat.com>
1569
1570 * linespec.c (decode_compound_collector::decode_compound_collector):
1571 Remove initialization for `m_symtabs'.
1572 (decode_compound_collector::release_symbols): Change return type
1573 to std::vector. Update all callers.
1574 (class decode_compound_collector) <m_symbols>: Change type to
1575 std::vector.
1576 (lookup_prefix_sym): Change return type to std::vector. Update all
1577 callers.
1578 (compare_symbols): Remove.
1579 (std_compare_symbols): Rename to `compare_symbols'.
1580 (find_method): Change `sym_classes' parameter to std::vector.
1581 Update all callers. Use std::sort to sort sym_classes.
1582 (find_linespec_symbols): Remove cleanup.
1583
1584 2018-08-29 Keith Seitz <keiths@redhat.com>
1585
1586 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1587 std::vector. Update all users.
1588 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1589 (struct collect_info) <minimal_symbols>: Likewise.
1590 (compare_msymbols): Return bool. Change parameters to const
1591 bound_minimal_symbol references.
1592 (find_method, find_function_symbols, find_linespec_symbols): Change
1593 `minsyms' parameter to std::vector. Update all callers.
1594
1595 2018-08-29 Keith Seitz <keiths@redhat.com>
1596
1597 * linespec.c (struct linespec) <label_symbols>: Change type to
1598 std::vector. Update all users.
1599 (find_label_symbols_in_block): Change `result' parameter to
1600 std::vector. Update all callers.
1601 (find_label_symbols): Return std::vector. Update all callers.
1602
1603 2018-08-29 Keith Seitz <keiths@redhat.com>
1604
1605 * linespec.c (struct linespec) <function_symbols>: Change type to
1606 std::vector. Update all users.
1607 (struct collect_info) <function_symbols>: Likewise.
1608 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1609 (std_compare_symbols): New function.
1610 (find_method, find_function_symbols, find_linespec_symbols)
1611 (find_label_symbols_in_block): Change `symbols' parameter to
1612 std::vector. Update all callers.
1613 (find_label_symbols): Likewise for `function_symbols' and
1614 `label_funcs_ret'.
1615
1616 2018-08-29 Keith Seitz <keiths@redhat.com>
1617
1618 * linespec.c (symtab_vector_up): Define.
1619 (struct linespec) <file_symtabs>: Change type to std::vector *.
1620 Update all uses.
1621 (struct collect_info) <file_symtabs>: Likewise.
1622 (collect_symtabs_from_filename): Return symtab_vector_up.
1623 Update all callers.
1624 (decode_objc): Remove cleanup.
1625 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1626 (symtab_collector::release_symtabs): Return symtab_vector_up.
1627 Update all callers.
1628 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1629 Update all users.
1630 (collect_symtabs_from_filename, symtabs_from_filename): Return
1631 symtab_vector_up. Update all callers.
1632
1633 2018-08-29 Tom Tromey <tom@tromey.com>
1634
1635 * csky-tdep.c (csky_analyze_prologue): Use
1636 core_addr_to_string_nz.
1637
1638 2018-08-29 Tom Tromey <tom@tromey.com>
1639
1640 * windows-nat.c (struct xlate_exception) <them>: Change type to
1641 DWORD.
1642 (xlate): Fix formatting. Remove last entry.
1643 (struct xlate_exception, xlate): Comment out.
1644 (windows_nat_target::resume): Use ranged for.
1645
1646 2018-08-29 Jim Wilson <jimw@sifive.com>
1647
1648 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1649 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1650 of NT_PRFPREG.
1651 (riscv_linux_nat_target::store_registers): Likewise.
1652
1653 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1654
1655 PR gdb/23555
1656 PR gdb/23558
1657 * gnulib/aclocal.m4: Regenerate.
1658 * gnulib/config.in: Regenerate.
1659 * gnulib/configure: Regenerate.
1660 * gnulib/import/Makefile.am: Update.
1661 * gnulib/import/Makefile.in: Update.
1662 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1663 * gnulib/import/_Noreturn.h: ... this.
1664 * gnulib/import/alloca.in.h: Update.
1665 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1666 * gnulib/import/arg-nonnull.h: ... this.
1667 * gnulib/import/assure.h: Update.
1668 * gnulib/import/at-func.c: Update.
1669 * gnulib/import/basename-lgpl.c: Update.
1670 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1671 * gnulib/import/c++defs.h: ... this.
1672 * gnulib/import/canonicalize-lgpl.c: Update.
1673 * gnulib/import/cdefs.h: Update.
1674 * gnulib/import/chdir-long.c: Update.
1675 * gnulib/import/chdir-long.h: Update.
1676 * gnulib/import/cloexec.c: Update.
1677 * gnulib/import/cloexec.h: Update.
1678 * gnulib/import/close.c: Update.
1679 * gnulib/import/closedir.c: Update.
1680 * gnulib/import/config.charset: Update.
1681 * gnulib/import/dirent-private.h: Update.
1682 * gnulib/import/dirent.in.h: Update.
1683 * gnulib/import/dirfd.c: Update.
1684 * gnulib/import/dirname-lgpl.c: Update.
1685 * gnulib/import/dirname.h: Update.
1686 * gnulib/import/dosname.h: Update.
1687 * gnulib/import/dup-safer-flag.c: Update.
1688 * gnulib/import/dup-safer.c: Update.
1689 * gnulib/import/dup.c: Update.
1690 * gnulib/import/dup2.c: Update.
1691 * gnulib/import/errno.in.h: Update.
1692 * gnulib/import/error.c: Update.
1693 * gnulib/import/error.h: Update.
1694 * gnulib/import/exitfail.c: Update.
1695 * gnulib/import/exitfail.h: Update.
1696 * gnulib/import/extra/update-copyright: Update.
1697 * gnulib/import/fchdir.c: Update.
1698 * gnulib/import/fcntl.c: Update.
1699 * gnulib/import/fcntl.in.h: Update.
1700 * gnulib/import/fd-hook.c: Update.
1701 * gnulib/import/fd-hook.h: Update.
1702 * gnulib/import/fd-safer-flag.c: Update.
1703 * gnulib/import/fd-safer.c: Update.
1704 * gnulib/import/fdopendir.c: Update.
1705 * gnulib/import/filename.h: Update.
1706 * gnulib/import/filenamecat-lgpl.c: Update.
1707 * gnulib/import/filenamecat.h: Update.
1708 * gnulib/import/flexmember.h: Update.
1709 * gnulib/import/float+.h: Update.
1710 * gnulib/import/float.c: Update.
1711 * gnulib/import/float.in.h: Update.
1712 * gnulib/import/fnmatch.c: Update.
1713 * gnulib/import/fnmatch.in.h: Update.
1714 * gnulib/import/fnmatch_loop.c: Update.
1715 * gnulib/import/fpucw.h: Update.
1716 * gnulib/import/frexp.c: Update.
1717 * gnulib/import/frexpl.c: Update.
1718 * gnulib/import/fstat.c: Update.
1719 * gnulib/import/fstatat.c: Update.
1720 * gnulib/import/getcwd-lgpl.c: Update.
1721 * gnulib/import/getcwd.c: Update.
1722 * gnulib/import/getdtablesize.c: Update.
1723 * gnulib/import/getlogin_r.c: Update.
1724 * gnulib/import/getprogname.c: Update.
1725 * gnulib/import/getprogname.h: Update.
1726 * gnulib/import/gettext.h: Update.
1727 * gnulib/import/gettimeofday.c: Update.
1728 * gnulib/import/glob-libc.h: Update.
1729 * gnulib/import/glob.c: Update.
1730 * gnulib/import/glob.in.h: Update.
1731 * gnulib/import/glob_internal.h: Update.
1732 * gnulib/import/glob_pattern_p.c: Update.
1733 * gnulib/import/globfree.c: Update.
1734 * gnulib/import/hard-locale.c: Update.
1735 * gnulib/import/hard-locale.h: Update.
1736 * gnulib/import/intprops.h: Update.
1737 * gnulib/import/inttypes.in.h: Update.
1738 * gnulib/import/isnan.c: Update.
1739 * gnulib/import/isnand-nolibm.h: Update.
1740 * gnulib/import/isnand.c: Update.
1741 * gnulib/import/isnanl-nolibm.h: Update.
1742 * gnulib/import/isnanl.c: Update.
1743 * gnulib/import/itold.c: Update.
1744 * gnulib/import/libc-config.h: Update.
1745 * gnulib/import/limits.in.h: Update.
1746 * gnulib/import/localcharset.c: Update.
1747 * gnulib/import/localcharset.h: Update.
1748 * gnulib/import/localtime-buffer.c: Update.
1749 * gnulib/import/localtime-buffer.h: Update.
1750 * gnulib/import/lstat.c: Update.
1751 * gnulib/import/m4/00gnulib.m4: Update.
1752 * gnulib/import/m4/__inline.m4: Update.
1753 * gnulib/import/m4/absolute-header.m4: Update.
1754 * gnulib/import/m4/alloca.m4: Update.
1755 * gnulib/import/m4/builtin-expect.m4: Update.
1756 * gnulib/import/m4/canonicalize.m4: Update.
1757 * gnulib/import/m4/chdir-long.m4: Update.
1758 * gnulib/import/m4/close.m4: Update.
1759 * gnulib/import/m4/closedir.m4: Update.
1760 * gnulib/import/m4/configmake.m4: Update.
1761 * gnulib/import/m4/d-ino.m4: Update.
1762 * gnulib/import/m4/d-type.m4: Update.
1763 * gnulib/import/m4/dirent_h.m4: Update.
1764 * gnulib/import/m4/dirfd.m4: Update.
1765 * gnulib/import/m4/dirname.m4: Update.
1766 * gnulib/import/m4/double-slash-root.m4: Update.
1767 * gnulib/import/m4/dup.m4: Update.
1768 * gnulib/import/m4/dup2.m4: Update.
1769 * gnulib/import/m4/eealloc.m4: Update.
1770 * gnulib/import/m4/environ.m4: Update.
1771 * gnulib/import/m4/errno_h.m4: Update.
1772 * gnulib/import/m4/error.m4: Update.
1773 * gnulib/import/m4/exponentd.m4: Update.
1774 * gnulib/import/m4/exponentl.m4: Update.
1775 * gnulib/import/m4/extensions.m4: Update.
1776 * gnulib/import/m4/extern-inline.m4: Update.
1777 * gnulib/import/m4/fchdir.m4: Update.
1778 * gnulib/import/m4/fcntl-o.m4: Update.
1779 * gnulib/import/m4/fcntl.m4: Update.
1780 * gnulib/import/m4/fcntl_h.m4: Update.
1781 * gnulib/import/m4/fdopendir.m4: Update.
1782 * gnulib/import/m4/filenamecat.m4: Update.
1783 * gnulib/import/m4/flexmember.m4: Update.
1784 * gnulib/import/m4/float_h.m4: Update.
1785 * gnulib/import/m4/fnmatch.m4: Update.
1786 * gnulib/import/m4/fnmatch_h.m4: Update.
1787 * gnulib/import/m4/fpieee.m4: Update.
1788 * gnulib/import/m4/frexp.m4: Update.
1789 * gnulib/import/m4/frexpl.m4: Update.
1790 * gnulib/import/m4/fstat.m4: Update.
1791 * gnulib/import/m4/fstatat.m4: Update.
1792 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1793 * gnulib/import/m4/getcwd-path-max.m4: Update.
1794 * gnulib/import/m4/getcwd.m4: Update.
1795 * gnulib/import/m4/getdtablesize.m4: Update.
1796 * gnulib/import/m4/getlogin.m4: Update.
1797 * gnulib/import/m4/getlogin_r.m4: Update.
1798 * gnulib/import/m4/getpagesize.m4: Update.
1799 * gnulib/import/m4/getprogname.m4: Update.
1800 * gnulib/import/m4/gettimeofday.m4: Update.
1801 * gnulib/import/m4/glibc21.m4: Update.
1802 * gnulib/import/m4/glob.m4: Update.
1803 * gnulib/import/m4/glob_h.m4: Update.
1804 * gnulib/import/m4/gnulib-cache.m4: Update.
1805 * gnulib/import/m4/gnulib-common.m4: Update.
1806 * gnulib/import/m4/gnulib-comp.m4: Update.
1807 * gnulib/import/m4/gnulib-tool.m4: Update.
1808 * gnulib/import/m4/hard-locale.m4: Update.
1809 * gnulib/import/m4/include_next.m4: Update.
1810 * gnulib/import/m4/inttypes-pri.m4: Update.
1811 * gnulib/import/m4/inttypes.m4: Update.
1812 * gnulib/import/m4/isnand.m4: Update.
1813 * gnulib/import/m4/isnanl.m4: Update.
1814 * gnulib/import/m4/largefile.m4: Update.
1815 * gnulib/import/m4/limits-h.m4: Update.
1816 * gnulib/import/m4/localcharset.m4: Update.
1817 * gnulib/import/m4/locale-fr.m4: Update.
1818 * gnulib/import/m4/locale-ja.m4: Update.
1819 * gnulib/import/m4/locale-zh.m4: Update.
1820 * gnulib/import/m4/localtime-buffer.m4: Update.
1821 * gnulib/import/m4/longlong.m4: Update.
1822 * gnulib/import/m4/lstat.m4: Update.
1823 * gnulib/import/m4/malloc.m4: Update.
1824 * gnulib/import/m4/malloca.m4: Update.
1825 * gnulib/import/m4/math_h.m4: Update.
1826 * gnulib/import/m4/mbrtowc.m4: Update.
1827 * gnulib/import/m4/mbsinit.m4: Update.
1828 * gnulib/import/m4/mbsrtowcs.m4: Update.
1829 * gnulib/import/m4/mbstate_t.m4: Update.
1830 * gnulib/import/m4/memchr.m4: Update.
1831 * gnulib/import/m4/memmem.m4: Update.
1832 * gnulib/import/m4/mempcpy.m4: Update.
1833 * gnulib/import/m4/memrchr.m4: Update.
1834 * gnulib/import/m4/mkdir.m4: Update.
1835 * gnulib/import/m4/mkstemp.m4: Update.
1836 * gnulib/import/m4/mmap-anon.m4: Update.
1837 * gnulib/import/m4/mode_t.m4: Update.
1838 * gnulib/import/m4/msvc-inval.m4: Update.
1839 * gnulib/import/m4/msvc-nothrow.m4: Update.
1840 * gnulib/import/m4/multiarch.m4: Update.
1841 * gnulib/import/m4/nocrash.m4: Update.
1842 * gnulib/import/m4/off_t.m4: Update.
1843 * gnulib/import/m4/onceonly.m4: Update.
1844 * gnulib/import/m4/open-cloexec.m4: Update.
1845 * gnulib/import/m4/open.m4: Update.
1846 * gnulib/import/m4/openat.m4: Update.
1847 * gnulib/import/m4/opendir.m4: Update.
1848 * gnulib/import/m4/pathmax.m4: Update.
1849 * gnulib/import/m4/rawmemchr.m4: Update.
1850 * gnulib/import/m4/readdir.m4: Update.
1851 * gnulib/import/m4/readlink.m4: Update.
1852 * gnulib/import/m4/realloc.m4: Update.
1853 * gnulib/import/m4/rename.m4: Update.
1854 * gnulib/import/m4/rewinddir.m4: Update.
1855 * gnulib/import/m4/rmdir.m4: Update.
1856 * gnulib/import/m4/save-cwd.m4: Update.
1857 * gnulib/import/m4/secure_getenv.m4: Update.
1858 * gnulib/import/m4/setenv.m4: Update.
1859 * gnulib/import/m4/signal_h.m4: Update.
1860 * gnulib/import/m4/ssize_t.m4: Update.
1861 * gnulib/import/m4/stat-time.m4: Update.
1862 * gnulib/import/m4/stat.m4: Update.
1863 * gnulib/import/m4/std-gnu11.m4: Update.
1864 * gnulib/import/m4/stdbool.m4: Update.
1865 * gnulib/import/m4/stddef_h.m4: Update.
1866 * gnulib/import/m4/stdint.m4: Update.
1867 * gnulib/import/m4/stdio_h.m4: Update.
1868 * gnulib/import/m4/stdlib_h.m4: Update.
1869 * gnulib/import/m4/strchrnul.m4: Update.
1870 * gnulib/import/m4/strdup.m4: Update.
1871 * gnulib/import/m4/strerror.m4: Update.
1872 * gnulib/import/m4/string_h.m4: Update.
1873 * gnulib/import/m4/strstr.m4: Update.
1874 * gnulib/import/m4/strtok_r.m4: Update.
1875 * gnulib/import/m4/sys_socket_h.m4: Update.
1876 * gnulib/import/m4/sys_stat_h.m4: Update.
1877 * gnulib/import/m4/sys_time_h.m4: Update.
1878 * gnulib/import/m4/sys_types_h.m4: Update.
1879 * gnulib/import/m4/tempname.m4: Update.
1880 * gnulib/import/m4/time_h.m4: Update.
1881 * gnulib/import/m4/unistd-safer.m4: Update.
1882 * gnulib/import/m4/unistd_h.m4: Update.
1883 * gnulib/import/m4/warn-on-use.m4: Update.
1884 * gnulib/import/m4/wchar_h.m4: Update.
1885 * gnulib/import/m4/wchar_t.m4: Update.
1886 * gnulib/import/m4/wctype_h.m4: Update.
1887 * gnulib/import/m4/wint_t.m4: Update.
1888 * gnulib/import/malloc.c: Update.
1889 * gnulib/import/malloc/scratch_buffer.h: Update.
1890 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1891 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1892 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1893 * gnulib/import/malloca.c: Update.
1894 * gnulib/import/malloca.h: Update.
1895 * gnulib/import/malloca.valgrind: Update.
1896 * gnulib/import/math.in.h: Update.
1897 * gnulib/import/mbrtowc.c: Update.
1898 * gnulib/import/mbsinit.c: Update.
1899 * gnulib/import/mbsrtowcs-impl.h: Update.
1900 * gnulib/import/mbsrtowcs-state.c: Update.
1901 * gnulib/import/mbsrtowcs.c: Update.
1902 * gnulib/import/memchr.c: Update.
1903 * gnulib/import/memmem.c: Update.
1904 * gnulib/import/mempcpy.c: Update.
1905 * gnulib/import/memrchr.c: Update.
1906 * gnulib/import/mkdir.c: Update.
1907 * gnulib/import/mkstemp.c: Update.
1908 * gnulib/import/msvc-inval.c: Update.
1909 * gnulib/import/msvc-inval.h: Update.
1910 * gnulib/import/msvc-nothrow.c: Update.
1911 * gnulib/import/msvc-nothrow.h: Update.
1912 * gnulib/import/open.c: Update.
1913 * gnulib/import/openat-die.c: Update.
1914 * gnulib/import/openat-priv.h: Update.
1915 * gnulib/import/openat-proc.c: Update.
1916 * gnulib/import/openat.c: Update.
1917 * gnulib/import/openat.h: Update.
1918 * gnulib/import/opendir.c: Update.
1919 * gnulib/import/pathmax.h: Update.
1920 * gnulib/import/pipe-safer.c: Update.
1921 * gnulib/import/rawmemchr.c: Update.
1922 * gnulib/import/readdir.c: Update.
1923 * gnulib/import/readlink.c: Update.
1924 * gnulib/import/realloc.c: Update.
1925 * gnulib/import/ref-add.sin: Update.
1926 * gnulib/import/ref-del.sin: Update.
1927 * gnulib/import/rename.c: Update.
1928 * gnulib/import/rewinddir.c: Update.
1929 * gnulib/import/rmdir.c: Update.
1930 * gnulib/import/same-inode.h: Update.
1931 * gnulib/import/save-cwd.c: Update.
1932 * gnulib/import/save-cwd.h: Update.
1933 * gnulib/import/scratch_buffer.h: Update.
1934 * gnulib/import/secure_getenv.c: Update.
1935 * gnulib/import/setenv.c: Update.
1936 * gnulib/import/signal.in.h: Update.
1937 * gnulib/import/stat-time.c: Update.
1938 * gnulib/import/stat-time.h: Update.
1939 * gnulib/import/stat-w32.c: Update.
1940 * gnulib/import/stat-w32.h: Update.
1941 * gnulib/import/stat.c: Update.
1942 * gnulib/import/stdbool.in.h: Update.
1943 * gnulib/import/stddef.in.h: Update.
1944 * gnulib/import/stdint.in.h: Update.
1945 * gnulib/import/stdio.in.h: Update.
1946 * gnulib/import/stdlib.in.h: Update.
1947 * gnulib/import/str-two-way.h: Update.
1948 * gnulib/import/strchrnul.c: Update.
1949 * gnulib/import/strdup.c: Update.
1950 * gnulib/import/streq.h: Update.
1951 * gnulib/import/strerror-override.c: Update.
1952 * gnulib/import/strerror-override.h: Update.
1953 * gnulib/import/strerror.c: Update.
1954 * gnulib/import/string.in.h: Update.
1955 * gnulib/import/stripslash.c: Update.
1956 * gnulib/import/strnlen1.c: Update.
1957 * gnulib/import/strnlen1.h: Update.
1958 * gnulib/import/strstr.c: Update.
1959 * gnulib/import/strtok_r.c: Update.
1960 * gnulib/import/sys_stat.in.h: Update.
1961 * gnulib/import/sys_time.in.h: Update.
1962 * gnulib/import/sys_types.in.h: Update.
1963 * gnulib/import/tempname.c: Update.
1964 * gnulib/import/tempname.h: Update.
1965 * gnulib/import/time.in.h: Update.
1966 * gnulib/import/unistd--.h: Update.
1967 * gnulib/import/unistd-safer.h: Update.
1968 * gnulib/import/unistd.in.h: Update.
1969 * gnulib/import/unsetenv.c: Update.
1970 * gnulib/import/verify.h: Update.
1971 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1972 * gnulib/import/wchar.in.h: Update.
1973 * gnulib/import/wctype.in.h: Update.
1974 * gnulib/import/xalloc-oversized.h: Update.
1975 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1976 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1977
1978 2018-08-16 Gary Benson <gbenson@redhat.com>
1979
1980 PR gdb/13000:
1981 * gdb/main.c (captured_main_1): Exit with nonzero status
1982 in batch mode if the last command to be executed failed.
1983 * NEWS: Mention the above.
1984
1985 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1986
1987 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1988 end of warning message.
1989
1990 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1991
1992 PR gdb/22943:
1993 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1994 (aarch64_extract_return_value): Use
1995 aapcs_is_vfp_call_or_return_candidate.
1996 (aarch64_return_in_memory): Likewise.
1997 (aarch64_store_return_value): Likewise.
1998
1999 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2000
2001 * aarch64-tdep.c
2002 (aapcs_is_vfp_call_or_return_candidate): Make static
2003 (pass_in_v_or_stack): Remove function.
2004 (pass_in_v_vfp_candidate): New function.
2005 (aarch64_push_dummy_call): Check for float register candidates.
2006
2007 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2008
2009 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2010 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2011 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2012
2013 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2014
2015 PR build/23399
2016 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2017 (struct ipa_sym_addresses): Rename to...
2018 (struct ipa_sym_addresses_common): ... this.
2019 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2020
2021 2018-08-28 Tom Tromey <tom@tromey.com>
2022
2023 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2024 (token_fifo): Now a std::vector.
2025 (yylex, c_parse): Update.
2026 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2027 (token_fifo): Now a std::vector.
2028 (yylex, d_parse): Update.
2029 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2030 (token_fifo): Now a std::vector.
2031 (yylex, go_parse): Update.
2032
2033 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2034
2035 * parser-defs.h (struct type_stack) <elements>: Change type to
2036 std::vector<union type_stack_elt>.
2037 <depth, size>: Remove.
2038 * parse.c (parse_exp_in_context_1): Adjust.
2039 (type_stack_reserve): Remove.
2040 (check_type_stack_depth): Remove.
2041 (insert_into_type_stack): Adjust to std::vector.
2042 (insert_type): Likewise.
2043 (push_type): Likewise.
2044 (push_type_int): Likewise.
2045 (insert_type_address_space): Likewise.
2046 (pop_type): Likewise.
2047 (pop_type_int): Likewise.
2048 (pop_typelist): Likewise.
2049 (pop_type_stack): Likewise.
2050 (append_type_stack): Likewise.
2051 (push_type_stack): Likewise.
2052 (get_type_stack): Likewise.
2053 (type_stack_cleanup): Likewise.
2054 (push_typelist): Likewise.
2055 (follow_types): Likewise.
2056 (_initialize_parse): Likewise.
2057
2058 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2059
2060 * NEWS: Mention csky target.
2061
2062 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2063 Hafiz Abid Qadeer <abidh@codesourcery.com>
2064 Don Breazeal <donb@codesourcery.com>
2065
2066 * csky-linux-tdep.c: New file.
2067 * csky-tdep.c: Likewise.
2068 * csky-tdep.h: Likewise.
2069 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2070 csky-tdep.o.
2071 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2072 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2073 * configure.tgt: Add csky support.
2074
2075 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2076
2077 * python/py-framefilter.c (py_print_frame): Print frame architecture
2078 when printing on an MI output.
2079
2080 2018-08-27 Tom Tromey <tom@tromey.com>
2081
2082 PR build/23087:
2083 * configure: Rebuild.
2084 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2085
2086 2018-08-27 Tom Tromey <tom@tromey.com>
2087
2088 * aarch64-linux-tdep.c
2089 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2090 casts to int.
2091
2092 2018-08-27 Tom Tromey <tom@tromey.com>
2093
2094 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2095 unsigned.
2096 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2097 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2098 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2099 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2100 unsigned.
2101
2102 2018-08-27 Tom Tromey <tom@tromey.com>
2103
2104 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2105 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2106
2107 2018-08-27 Tom Tromey <tom@tromey.com>
2108
2109 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2110 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2111 ULONGEST_MAX.
2112 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2113 ULONGEST_MAX.
2114 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2115 ULONGEST_MAX.
2116 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2117 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2118 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2119 ULONGEST_MAX.
2120 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2121 (ppc64_linux_sigaction_tramp_frame)
2122 (ppc32_linux_sighandler_tramp_frame)
2123 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2124 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2125 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2126 * mn10300-linux-tdep.c (am33_linux_sigframe)
2127 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2128 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2129 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2130 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2131 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2132 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2133 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2134 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2135 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2136 * microblaze-linux-tdep.c
2137 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2138 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2139 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2140 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2141 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2142 * common/common-types.h (ULONGEST_MAX): New define.
2143 (CORE_ADDR_MAX): Fix formatting.
2144 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2145 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2146 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2147 (arm_linux_rt_sigreturn_tramp_frame)
2148 (arm_eabi_linux_sigreturn_tramp_frame)
2149 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2150 (thumb2_eabi_linux_sigreturn_tramp_frame)
2151 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2152 (arm_linux_restart_syscall_tramp_frame)
2153 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2154 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2155 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2156 ULONGEST_MAX.
2157 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2158
2159 2018-08-27 Tom Tromey <tom@tromey.com>
2160
2161 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2162 CORE_ADDR_MAX.
2163 * mips-tdep.c (mips_deal_with_atomic_sequence)
2164 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2165 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2166 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2167 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2168 CORE_ADDR_MAX.
2169 * aarch64-tdep.c (aarch64_software_single_step): Use
2170 CORE_ADDR_MAX.
2171
2172 2018-08-27 Tom Tromey <tom@tromey.com>
2173
2174 * linespec.c (complete_linespec_component): Add cast to "char".
2175 * completer.c (completion_tracker::build_completion_result): Add
2176 cast to "char".
2177
2178 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2179
2180 * solist.h (struct solist, struct target_so_ops): Fix
2181 indentation.
2182
2183 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * ada-tasks.c (ada_task_info_s): Remove typedef.
2186 (DEF_VEC_O(ada_task_info_s)): Remove.
2187 (struct ada_tasks_inferior_data): Initialize fields.
2188 <task_list>: Make an std::vector.
2189 (get_ada_tasks_inferior_data): Allocate with new.
2190 (ada_get_task_number): Adjust.
2191 (get_task_number_from_id): Likewise.
2192 (valid_task_id): Likewise.
2193 (ada_get_task_info_from_ptid): Likewise.
2194 (iterate_over_live_ada_tasks): Likewise.
2195 (add_ada_task): Likewise.
2196 (read_known_tasks): Likewise.
2197 (ada_build_task_list): Likewise.
2198 (print_ada_task_info): Likewise.
2199 (info_task): Likewise.
2200 (task_command_1): Likewise.
2201
2202 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2203
2204 * ada-lang.c (add_angle_brackets): Return std::string.
2205
2206 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2207
2208 * python/py-threadevent.c (py_get_event_thread): Initialize
2209 pythread.
2210
2211 2018-08-24 Pedro Alves <palves@redhat.com>
2212
2213 * python/py-bpevent.c (create_breakpoint_event_object): Use
2214 copy-initialization.
2215 * python/py-continueevent.c (emit_continue_event): Use
2216 copy-initialization.
2217 * python/py-exitedevent.c (create_exited_event_object): Return a
2218 gdbpy_ref<>.
2219 (emit_exited_event): Use copy-initialization.
2220 * python/py-inferior.c (python_new_inferior)
2221 (python_inferior_deleted, add_thread_object): Use
2222 copy-initialization.
2223 * python/py-infevents.c (create_inferior_call_event_object)
2224 (create_register_changed_event_object)
2225 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2226 (emit_inferior_call_event, emit_memory_changed_event)
2227 (emit_register_changed_event): Use copy-initialization.
2228 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2229 Return a gdbpy_ref<>.
2230 (emit_new_objfile_event): Use copy-initialization.
2231 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2232 (emit_clear_objfiles_event): Use copy-initialization.
2233 * python/py-signalevent.c (create_signal_event_object): Use
2234 copy-initialization.
2235 * python/py-threadevent.c (create_thread_event_object): Use
2236 copy-initialization.
2237
2238 2018-08-24 Pedro Alves <palves@redhat.com>
2239 Simon Marchi <simon.marchi@ericsson.com>
2240
2241 PR gdb/23379
2242 * python/py-continueevent.c: Include "gdbthread.h".
2243 (create_continue_event_object): Add intro comment. Add 'ptid'
2244 parameter. Use it to find thread to pass to
2245 create_thread_event_object.
2246 (emit_continue_event): Pass PTID down to
2247 create_continue_event_object.
2248 * python/py-event.h (py_get_event_thread): Declare.
2249 (create_thread_event_object): Remove default from 'thread'
2250 parameter.
2251 * python/py-stopevent.c (create_stop_event_object): Use
2252 py_get_event_thread.
2253 * python/py-threadevent.c (get_event_thread): Rename to ...
2254 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2255 and use it to find the thread.
2256 (create_thread_event_object): Assert that THREAD isn't null.
2257 Don't find the event thread here.
2258
2259 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2260
2261 * block.h (blockrange, blockranges): New struct declarations.
2262 (struct block): Add new field named `ranges'.
2263 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2264 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2265 macros for accessing ranges in struct block.
2266 (make_blockranges): New declaration.
2267 block.c (make_blockranges): New function.
2268 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2269 for block.
2270 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2271 * blockframe.c (cache_pc_function_block): New static global.
2272 (clear_pc_function_cache): Clear cache_pc_function_block.
2273 (find_pc_partial_function): Move comment to symtab.h. Add
2274 support for non-contiguous blocks.
2275 * cli/cli-cmds.c (block.h): Include.
2276 (print_disassembly): Handle printing of non-contiguous blocks.
2277 (disassemble_current_function): Likewise.
2278 (disassemble_command): Likewise.
2279
2280 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2281 BLOCK_START.
2282 * blockframe.c (get_pc_function_start): Likewise.
2283 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2284 (gcc_symbol_address): Likewise.
2285 * compile/compile-object-run.c (compile_object_run): Likewise.
2286 * compile/compile.c (get_expr_block_and_pc): Likewise.
2287 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2288 (func_addr_to_tail_call_list): Likewise.
2289 * findvar.c (default_read_var_value): Likewise.
2290 * inline-frame.c (inline_frame_this_id): Likewise.
2291 (skip-inline_frames): Likewise.
2292 * infcmd.c (until_next_command): Likewise.
2293 * linespec.c (convert_linespec_to_sals): Likewise.
2294 * parse.c (parse_exp_in_context_1): Likewise.
2295 * printcmd.c (build_address_symbolic): likewise.
2296 (info_address_command): Likewise.
2297 symtab.c (find_function_start_sal): Likewise.
2298 (skip_prologue_sal): Likewise.
2299 (find_function_alias_target): Likewise.
2300 (find_gnu_ifunc): Likewise.
2301 * stack.c (find_frame_funname): Likewise.
2302 * symtab.c (fixup_symbol_section): Likewise.
2303 (find_function_start_sal): Likewise.
2304 (skip_prologue_sal): Likewsie.
2305 (find_function_alias_target): Likewise.
2306 (find_gnu_ifunc): Likewise.
2307 * tracepoint.c (info_scope_command): Likewise.
2308 * value.c (value_fn_field): Likewise.
2309
2310 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2311 in place of find_pc_partial_function.
2312 * blockframe.c (find_function_entry_range_from_pc): New function.
2313 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2314 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2315 for each range in a block.
2316
2317
2318 2018-08-23 Xavier Roirand <roirand@adacore.com>
2319
2320 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2321 incrementation.
2322
2323 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2324
2325 * solib-svr4.c (read_program_headers_from_bfd): Return
2326 gdb::optional<gdb::byte_vector>.
2327 (svr4_exec_displacement): Adjust.
2328
2329 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2330
2331 * solib-svr4.c (read_program_header): Return
2332 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2333 (find_program_interpreter): Return
2334 gdb::optional<gdb::byte_vector>.
2335 (scan_dyntag_auxv): Adjust.
2336 (enable_break): Adjust.
2337 (svr4_exec_displacement): Adjust.
2338
2339 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2340
2341 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2342 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2343
2344 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2345
2346 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2347 string_vprintf.
2348 * guile/scm-utils.c (gdbscm_printf): Likewise.
2349 * serial.c (serial_printf): Likewise.
2350 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2351
2352 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2353
2354 * stack.c (print_frame): Print frame architecture when printing on
2355 an MI output.
2356 * NEWS: Mention new "arch" attribute in frame output.
2357
2358 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2359
2360 * arch/aarch64.h (aarch64_regnum): Update comment.
2361
2362 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2363
2364 * NEWS: Add SVE to 8.2 section.
2365
2366 2018-08-21 Pedro Alves <palves@redhat.com>
2367
2368 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2369 out from gdbscm_parse_function_args.
2370 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2371 gdbscm_parse_function_args_1.
2372
2373 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2374
2375 PR gdb/17816
2376 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2377 operator.
2378
2379 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2380
2381 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2382
2383 2018-08-19 Michael Spang <spang@google.com>
2384
2385 PR gdb/11786
2386 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2387 for PT_TLS segments.
2388
2389 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2390
2391 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2392 dwarf_variable_value.
2393 * dwarf2-frame.c (class dwarf_expr_executor):
2394 Add override for dwarf_variable_value.
2395 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2396 (class symbol_needs_eval_context): Likewise.
2397 (indirect_synthetic_pointer): Add forward declaration.
2398 (sect_variable_value): New function.
2399 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2400 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2401 for DW_OP_GNU_variable_value.
2402
2403 2018-08-16 Tom Tromey <tom@tromey.com>
2404
2405 * top.c (read_command_file): Update.
2406 (command_line_input): Remove "repeat" argument.
2407 * ada-lang.c (get_selections): Update.
2408 * linespec.c (decode_line_2): Update.
2409 * defs.h (command_line_input): Remove argument.
2410 * cli/cli-script.c (read_next_line): Update.
2411 * python/py-gdb-readline.c: Update.
2412
2413 2018-08-17 Tom Tromey <tom@tromey.com>
2414
2415 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2416 command_line_input.
2417
2418 2018-08-15 Tom Tromey <tom@tromey.com>
2419
2420 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2421
2422 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2423
2424 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2425 If used, use find_pc_partial_function to find address range
2426 to disassemble.
2427 * mi/mi-main.c (mi_cmd_list_features): Report
2428 "data-disassemble-a-option" feature.
2429 * NEWS: Mention new -data-disassemble option -a.
2430
2431 2018-08-13 Tom Tromey <tom@tromey.com>
2432
2433 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2434
2435 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2436
2437 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2438 (aarch64_linux_collect_sve_regset): Likewise.
2439 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2440 * regcache.h (regcache_map_entry_size): New function.
2441
2442 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2443
2444 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2445 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2446 (SVE_HEADER_VL_LENGTH): Likewise.
2447 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2448 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2449 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2450 (SVE_HEADER_SIZE_OFFSET): Likewise.
2451 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2452 (SVE_HEADER_VL_OFFSET): Likewise.
2453 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2454 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2455 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2456 (SVE_HEADER_SIZE): Likewise.
2457 (aarch64_linux_core_read_vq): Add function.
2458 (aarch64_linux_core_read_description): Check for SVE section.
2459
2460 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2461
2462 * aarch64-fbsd-tdep.c
2463 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2464 collect_size.
2465 * aarch64-linux-tdep.c
2466 (aarch64_linux_iterate_over_regset_sections): Likewise.
2467 * alpha-linux-tdep.c
2468 (alpha_linux_iterate_over_regset_sections):
2469 * alpha-nbsd-tdep.c
2470 (alphanbsd_iterate_over_regset_sections): Likewise.
2471 * amd64-fbsd-tdep.c
2472 (amd64fbsd_iterate_over_regset_sections): Likewise.
2473 * amd64-linux-tdep.c
2474 (amd64_linux_iterate_over_regset_sections): Likewise.
2475 * arm-bsd-tdep.c
2476 (armbsd_iterate_over_regset_sections): Likewise.
2477 * arm-fbsd-tdep.c
2478 (arm_fbsd_iterate_over_regset_sections): Likewise.
2479 * arm-linux-tdep.c
2480 (arm_linux_iterate_over_regset_sections): Likewise.
2481 * corelow.c (get_core_registers_cb): Likewise.
2482 (core_target::fetch_registers): Likewise.
2483 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2484 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2485 * gdbarch.h (void): Regenerate.
2486 * gdbarch.sh: Add supply_size and collect_size.
2487 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2488 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2489 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2490 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2491 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2492 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2493 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2494 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2495 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2496 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2497 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2498 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2499 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2500 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2501 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2502 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2503 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2504 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2505 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2506 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2507 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2508 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2509 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2510 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2511 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2512 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2513 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2514 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2515 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2516 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2517
2518 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2519
2520 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2521 with string_printf.
2522
2523 2018-08-10 Keith Seitz <keiths@redhat.com>
2524
2525 * compile/compile-c-support.c (add_code_header, add_code_footer):
2526 Move into policy class.
2527 (c_push_user_expression, pop_user_expression_nop)
2528 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2529 (compile_program): New host class.
2530 (c_compile_program): New typedef.
2531 (c_compute_porgram): Use c_compile_program.
2532
2533 2018-08-10 Keith Seitz <keiths@redhat.com>
2534
2535 * compile/compile-internal.h (compile_instance::~compile_instance):
2536 Remove calls to htab_delete.
2537 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2538 * compile.c (compile_instance::compile_instance): Initialize
2539 htab unique pointers.
2540 (compile_instance::get_cached_type, compile_instance::insert_type)
2541 (compile_instance::error_symbol_once): Update for unique_ptr.
2542
2543 2018-08-10 Keith Seitz <keiths@redhat.com>
2544
2545 * compile/compile-c-symbols.c (struct symbol_error)
2546 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2547 (compile_instance::insert_symbol_error)
2548 (compile_instance::error_symbol_once): Move to ...
2549 * compile/compile.c: ... here.
2550
2551 2018-08-10 Keith Seitz <keiths@redhat.com>
2552
2553 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2554 instead of `new_compile_instance'.
2555 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2556 Update description.
2557 If the symbol error map is not initialized, create it.
2558 (generate_c_for_for_one_symbol): Do not check/initialize
2559 the symbol error map.
2560 * compile/compile-c-types.c (compile_c_instance): Make a class.
2561 Update all callers.
2562 (compile_instance::compile_instance): Initialize the type cache.
2563 (get_cached_type): New function.
2564 (insert_type): Update description.
2565 (compile_c_instance::m_default_cflags): Define.
2566 (convert_type): Update description. Use get_cached_type.
2567 (delete_instance): Moved to destructor.
2568 (new_compile_instance): Moved to constructor.
2569 * compile/compile-c.h (compile_c_instance): Make class inheriting
2570 from compile_instance.
2571 <base>: Remove field.
2572 <type_map, symbol_err_map>: Move to base class.
2573 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2574 * compile/compile-internal.h (compile_instance): Make class.
2575 <type_map_t, symbol_err_map_t>: Define.
2576 <fe>: Rename to `m_gcc_fe'.
2577 <scope, block, gcc_target_options>: Add `m_' prefix.
2578 <m_type_map, m_symbol_err_map>: New fields, moved from
2579 compile_c_instance.
2580 <destroy>: Remove.
2581 (convert_type, new_compile_instance): Remove.
2582 * compile/compile.c (cleanup_compile_instance): Remove.
2583 (compile_to_object): Use unique_ptr to eliminate cleanups.
2584 (compile_instance::set_print_callback, compile_instance::version)
2585 (compile_instance::set_verbose)
2586 (compile_instance::set_driver_filename)
2587 (compile_instance::set_triplet_regexp)
2588 (compile_instance::set_arguments)
2589 (compile_instance::set_source_file)
2590 (compile_instance::compile): Define.
2591
2592 2018-08-10 Keith Seitz <keiths@redhat.com>
2593
2594 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2595 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2596 gcc-c-fe.def to define C plugin.
2597 (delete_instance): Delete `c_plugin'.
2598 (new_compile_instance): Initialize `c_plugin'.
2599 * compile/compile-c.h: Include gcc_c_plugin.h.
2600 (struct compile_c_instance) <c_plugin>: New member.
2601 * gcc-c-plugin.h: New file.
2602 Update all callers with API change.
2603
2604 2018-08-10 Keith Seitz <keiths@redhat.com>
2605
2606 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2607 (HFILES_NO_SRCDIR): ... to here.
2608 Add compile-internal.h and compile-c.h.
2609 * compile/compile-c-support.c: Include compile-c.h.
2610 * compile/compile-c-symbols.c: Include compile-c.h.
2611 (generate_c_for_variable_locations): Update comment.
2612 * compile/compile-c-types.c: Include compile-c.h.
2613 * compile/compile-c.h: New file -- moved C language declarations
2614 from other files here.
2615 * compile/compile-internal.h: Do not include hashtab.h or
2616 common/enum-flags.h.
2617 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2618 (gcc_convert_symbol, gcc_symbol_address)
2619 (generate_c_for_variable_locations, c_get_mode_for_size)
2620 (c_get_range_decl_name): Definitions moved to compile-c.h.
2621 * compile/compile-loc2c.c: Include compile-c.h.
2622
2623 2018-08-10 Keith Seitz <keiths@redhat.com>
2624
2625 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2626 (c_symbol_substitution_name): ... this.
2627 Update all callers.
2628
2629 2018-08-10 Keith Seitz <keiths@redhat.com>
2630
2631 * compile/compile-c-support.c (c_compute_program): Use
2632 unique_xmalloc_ptr to eliminate cleanup.
2633 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2634 Return a unique_xmalloc_ptr and eliminate cleanup.
2635 * compile/compile-internal.h (generate_c_for_variable_locations):
2636 Return unique_xmalloc_ptr and update description.
2637
2638 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2639
2640 * corelow.c (core_target::get_core_register_section): Rename
2641 min_size to section_min_size.
2642
2643 2018-08-09 Jim Wilson <jimw@sifive.com>
2644
2645 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2646 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2647 * NEWS: Mention new GNU/Linux RISC-V target.
2648 * configure.host: Add riscv*-*-linux*.
2649 * configure.nat: Add riscv*.
2650 * configure.tgt: Add riscv*-*-linux*.
2651 * riscv-linux-nat.c: New file.
2652 * riscv-linux-tdep.c: New file.
2653
2654 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2655
2656 * infrun.c (resume): Make static, add forward declaration.
2657 (proceed): Update header comment.
2658 * infrun.h (resume): Delete declaration.
2659
2660 2018-08-09 Tom Tromey <tom@tromey.com>
2661
2662 * riscv-tdep.h: Minor formatting fixes.
2663
2664 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2665
2666 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2667 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2668 (test_mkdir_recursive): Likewise.
2669 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2670
2671 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2672
2673 * valarith.c (value_subscripted_rvalue): If an array is not in
2674 memory, and we don't know the upper bound, then we can't know that
2675 the requested element exists or not.
2676
2677 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2678
2679 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2680 (target_options_to_string): Add comment.
2681
2682 2018-08-08 Tom Tromey <tom@tromey.com>
2683
2684 * unittests/scoped_mmap-selftests.c: Check result of "write".
2685
2686 2018-08-08 Jim Wilson <jimw@sifive.com>
2687
2688 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2689 (decode_register_index_short): New.
2690 (decode_j_type_insn, decode_cj_type_insn): New.
2691 (decode_b_type_insn, decode_cb_type_insn): New.
2692 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2693 local xlen. Check xlen when decoding ambiguous compressed insns. In
2694 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2695 is_c_sw_insn instead of is_sw_insn.
2696 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2697 (riscv_software_single_step): New.
2698 * riscv-tdep.h (riscv_software_single_step): Declare.
2699
2700 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2701 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2702
2703 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 PR gdb/18050:
2706 * target.c (dispose_inferior): Don't dispose of inferiors that are
2707 already killed.
2708
2709 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2710
2711 * remote.c (remote_target::download_tracepoint): Change char* to
2712 const char*.
2713
2714 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2715
2716 * target.h (target_options_to_string): Return an std::string.
2717 * target.c (str_comma_list_concat_elem): Return void, use
2718 std::string.
2719 (do_option): Likewise.
2720 (target_options_to_string): Return an std::string.
2721 * linux-nat.c (linux_nat_target::wait): Adjust.
2722 * target-debug.h (target_debug_print_options): Adjust.
2723
2724 2018-08-07 Tom Tromey <tom@tromey.com>
2725
2726 * Makefile.in (CPPFLAGS): New variable.
2727 (INTERNAL_CPPFLAGS): Use it.
2728
2729 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2730
2731 * NEWS: Mention the index cache.
2732
2733 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2734
2735 * common/pathstuff.h (get_standard_cache_dir): New.
2736 * common/pathstuff.c (get_standard_cache_dir): New.
2737 * build-id.h (build_id_to_string): New.
2738 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2739 DEBUG_STR_SUFFIX): Move to here.
2740 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2741 DEBUG_STR_SUFFIX): Move from there.
2742 (write_psymtabs_to_index): Make non-static, add basename
2743 parameter. Write to temporary files, rename when done.
2744 (save_gdb_index_command): Adjust call to
2745 write_psymtabs_to_index.
2746 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2747 field.
2748 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2749 (get_gdb_index_contents_from_cache): New.
2750 (get_gdb_index_contents_from_cache_dwz): New.
2751 (dwarf2_initialize_objfile): Read index from cache.
2752 (dwarf2_build_psymtabs): Save to index.
2753 * dwarf-index-cache.h: New file.
2754 * dwarf-index-cache.c: New file.
2755 * dwarf-index-write.h: New file.
2756
2757 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2758
2759 * gnulib/aclocal.m4: Re-generate.
2760 * gnulib/config.in: Re-generate.
2761 * gnulib/configure: Re-generate.
2762 * gnulib/import/Makefile.am: Re-generate.
2763 * gnulib/import/Makefile.in: Re-generate.
2764 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2765 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2766 * gnulib/import/m4/mkdir.m4: New file.
2767 * gnulib/import/mkdir.c: New file.
2768 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2769 module.
2770
2771 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2772
2773 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2774 * common/scoped_mmap.c: New file.
2775 * common/scoped_mmap.h (destroy): New method.
2776 (~scoped_mmap, reset): Use destroy.
2777 (scoped_mmap): New move constructor.
2778 (mmap_file): New declaration.
2779 * unittests/scoped_mmap-selftests.c (test_normal,
2780 test_invalid_filename, run_tests): New functions.
2781 (_initialize_scoped_mmap_selftests): Register selftest.
2782
2783 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2784
2785 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2786 (read_gdb_index_from_buffer): ... this. Remove section
2787 parameter, add buffer parameter.
2788 (get_gdb_index_contents_ftype,
2789 get_gdb_index_contents_dwz_ftype): New typedefs.
2790 (dwarf2_read_gdb_index): Add callback parameters to get the
2791 index contents.
2792 (get_gdb_index_contents_from_section): New.
2793 (dwarf2_initialize_objfile): Update call to
2794 dwarf2_read_gdb_index.
2795
2796 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2797
2798 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2799 (gdb_open_cloexec): Likewise.
2800 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2801 (commandline_from_pid): Likewise.
2802 (linux_xfer_osdata_threads): Likewise.
2803 (linux_xfer_osdata_fds): Likewise.
2804 * ada-lang.c (is_package_name): Likewise.
2805 * auxv.c (procfs_xfer_auxv): Likewise.
2806 * breakpoint.c (print_one_breakpoint_location): Use
2807 uiout::field_fmt.
2808 (print_one_catch_solib): Use string_printf.
2809 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2810 (add_pe_forwarded_sym): Likewise.
2811 * dwarf2read.c (create_type_unit_group): Likewise.
2812 (build_error_marker_type): Likewise.
2813 * infcall.c (get_function_name): Likewise.
2814 * valprint.c (print_converted_chars_to_obstack): Likewise.
2815 * xtensa-tdep.c (xtensa_register_type): Likewise.
2816
2817 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2818
2819 * remote.c (remote_target::download_tracepoint): Fix format
2820 string errors.
2821
2822 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2823
2824 * tracefile.c: Include common/byte-vector.h.
2825 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2826 with trace_regblock_size if needed. Update uses of buf.
2827
2828 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2829
2830 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2831 std::vector<unsigned char>.
2832 * tracepoint.c (collection_list::collection_list): Remove
2833 m_regs_mask initializer from initializer list. Resize
2834 m_regs_mask using the largest remote register number.
2835 (collection_list::add_remote_register): Remove size check on
2836 m_regs_mask. Use at to access element.
2837 (collection_list::stringify): Change type of temp_buf to
2838 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2839 stringify the register mask. Use pack_hex_byte for the register
2840 mask.
2841
2842 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2843
2844 * tracepoint.h (class collection_list) <add_register>: Remove.
2845 <add_remote_register, add_ax_registers, add_local_register>:
2846 Declare.
2847 <add_memrange>: Add scope parameter.
2848 * tracepoint.c (encode_actions_1): Likewise.
2849 (collection_list::add_register): Rename to ...
2850 (collection_list::add_remote_register): ... this. Update
2851 comment.
2852 (collection_list::add_ax_registers, add_local_register): New
2853 methods.
2854 (collection_list::add_memrange): Add scope parameter. Call
2855 add_local_register instead of add_register.
2856 (finalize_tracepoint_aexpr): New function.
2857 (collection_list::collect_symbol): Update calls to add_memrange.
2858 Call add_local_register instead of add_register. Call
2859 add_ax_registers. Call finalize_tracepoint_aexpr.
2860 (encode_actions_1): Get remote regnos for $reg action. Call
2861 add_remote_register, add_ax_registers, and add_local_register.
2862 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2863 (validate_actionline): Call finalize_tracepoint_aexpr.
2864
2865 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2866
2867 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2868 Replace array buf with gdb::char_vector buf, of size
2869 get_remote_packet_size (). Replace references to buf and
2870 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2871 and xsnprintf with snprintf. Raise errors if the buffer is too
2872 small.
2873
2874 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2875
2876 * remote.c (remote_target::download_tracepoint): Fix the has_more
2877 predicate in the QTDP action list iteration.
2878
2879 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2880
2881 * remote.c (remote_target::download_tracepoint): Fix indentation
2882 in for block.
2883
2884 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2885
2886 * proc-api.c (_initialize_proc_api): Remove c, unused.
2887 * procfs.c (procfs_init_inferior): Remove signals, unused.
2888 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2889 unused.
2890
2891 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2892 Andrew Burgess <andrew.burgess@embecosm.com>
2893
2894 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2895 'W_STOPCODE (0)' as this could be ambiguous.
2896
2897 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2898
2899 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2900 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2901 "ai_socktype").
2902
2903 2018-08-02 Tom Tromey <tom@tromey.com>
2904
2905 PR symtab/16842.
2906 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2907 symbols.
2908 (process_structure_scope): Likewise.
2909
2910 2018-08-02 Xavier Roirand <roirand@adacore.com>
2911
2912 PR gdb/22629:
2913 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2914 kill inferior.
2915
2916 2018-08-02 Tom Tromey <tom@tromey.com>
2917
2918 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2919 (darwin_suspend_inferior, darwin_resume_inferior)
2920 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2921 (darwin_check_new_threads): Check result of get_darwin_inferior.
2922
2923 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2924
2925 GDB 8.1.1 released.
2926
2927 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2928
2929 * varobj.c (varobj_get_path_expr_parent): Report an error if
2930 parent is a dynamic varobj.
2931
2932 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2933
2934 * gnulib/aclocal.m4: Re-generate.
2935 * gnulib/config.in: Re-generate.
2936 * gnulib/configure: Re-generate.
2937 * gnulib/import/Makefile.in: Re-generate.
2938 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2939 * gnulib/import/m4/onceonly.m4: Re-generate.
2940
2941 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2942
2943 * target-descriptions.c (struct xml_test_tdesc): New.
2944 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2945 (record_xml_tdesc): Update.
2946 (maintenance_check_xml_descriptions): Update.
2947 * target-descriptions.h (record_xml_tdesc): Update comment.
2948
2949 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2950
2951 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2952 checking array bounds are defined.
2953
2954 2018-07-30 Tom Tromey <tom@tromey.com>
2955
2956 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2957 irreflexivity violation.
2958
2959 2018-07-30 Tom Tromey <tom@tromey.com>
2960
2961 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2962 * value.c (unpack_long): Remove lint code.
2963 * valops.c (value_ind): Remove lint code.
2964 * valarith.c (value_x_binop, value_x_unop, value_equal)
2965 (value_pos): Remove lint code.
2966
2967 2018-07-28 Tom de Vries <tdevries@suse.de>
2968
2969 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2970 with undefined upper bound as <optimized out>.
2971
2972 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2973
2974 * gcore.in: Rename variable "name" to "prefix". Expand
2975 "usage" text.
2976
2977 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2978
2979 * windows-nat.c (windows_nat_target::create_inferior): Update to
2980 call close() in global namespace.
2981
2982 2018-07-26 Tom Tromey <tom@tromey.com>
2983
2984 * dwarf-index-write.c (add_address_entry): Don't add objfile
2985 offsets.
2986 * dbxread.c (find_stab_function): Rename from
2987 find_stab_function_addr. Return a bound_minimal_symbol.
2988 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2989 Don't add objfile offsets.
2990 (end_psymtab): Use raw_text_low, raw_text_high,
2991 MSYMBOL_VALUE_RAW_ADDRESS.
2992 (read_ofile_symtab): Update.
2993 (process_one_symbol): Update.
2994 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2995 offsets.
2996 (dw2_relocate): Remove.
2997 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2998 searching addrmap.
2999 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3000 Update.
3001 (process_psymtab_comp_unit_reader, add_partial_symbol)
3002 (add_partial_subprogram, dwarf2_ranges_read): Update.
3003 (load_partial_dies): Update.
3004 (add_address_entry): Don't add objfile offsets.
3005 (dwarf2_build_include_psymtabs): Update.
3006 (create_addrmap_from_aranges): Don't add objfile offsets.
3007 (dw2_find_pc_sect_compunit_symtab): Update.
3008 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3009 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3010 Update.
3011 (parse_partial_symbols): Don't add objfile offsets. Use
3012 raw_text_low, raw_text_high. Update.
3013 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3014 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3015 or call 'relocate' quick function. Clear psymbol_map.
3016 * psympriv.h (struct partial_symbol) <address>: Add section
3017 offset.
3018 <set_unrelocated_address>: Rename from set_address.
3019 <raw_text_low, raw_text_high>: New methods.
3020 <text_low, text_high>: Add objfile parameter.
3021 (add_psymbol_to_bcache): Add 'section' parameter. Call
3022 set_unrelocated_address.
3023 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3024 (find_pc_psymbol): Update.
3025 (fixup_psymbol_section, relocate_psymtabs): Remove.
3026 (dump_psymtab, psym_functions): Update.
3027 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3028 parameter.
3029 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3030 (start_psymtab_common): Update.
3031 * symfile-debug.c (debug_qf_relocate): Remove.
3032 (debug_sym_quick_functions): Update.
3033 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3034 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3035 Update.
3036
3037 2018-07-26 Tom Tromey <tromey@redhat.com>
3038
3039 * dbxread.c (end_psymtab): Use text_high_valid and
3040 text_low_valid.
3041 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3042 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3043 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3044 Update comment.
3045 <text_low_valid, text_high_valid>: New fields.
3046 <set_text_low, set_text_high>: Update.
3047 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3048
3049 2018-07-26 Tom Tromey <tom@tromey.com>
3050
3051 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3052 Update.
3053 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3054 textlow and texthigh fields.
3055 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3056 Update.
3057 * mdebugread.c (parse_lines, parse_partial_symbols)
3058 (psymtab_to_symtab_1): Update.
3059 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3060 Rename fields. Update comment. Now private.
3061 <text_low, text_high, set_text_low, set_text_high>: New methods.
3062 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3063 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3064 (start_psymtab_common, maintenance_info_psymtabs)
3065 (maintenance_check_psymtabs): Update.
3066 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3067 texthigh fields.
3068 (scan_xcoff_symtab): Update.
3069
3070 2018-07-26 Tom Tromey <tromey@redhat.com>
3071
3072 * psympriv.h (struct partial_symbol) <unrelocated_address,
3073 address, set_address>: New methods.
3074 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3075 (fixup_psymbol_section, relocate_psymtabs): Update.
3076 (print_partial_symbols): Add 'objfile' parameter. Update.
3077 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3078 Update.
3079
3080 2018-07-26 Tom Tromey <tom@tromey.com>
3081
3082 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3083 (debug_names::write_psymbols): Update.
3084 * psympriv.h (struct partial_symbol): Derive from
3085 general_symbol_info.
3086 <obj_section>: New method.
3087 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3088 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3089 (find_pc_sect_psymbol, fixup_psymbol_section)
3090 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3091 (print_partial_symbols, recursively_search_psymtabs)
3092 (compare_psymbols, psymbol_hash, psymbol_compare)
3093 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3094 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3095
3096 2018-07-26 Tom Tromey <tromey@redhat.com>
3097
3098 * dbxread.c (end_psymtab): Remove dead code.
3099
3100 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3101
3102 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3103 DWARF unwinders are disabled.
3104 * dwarf2-frame.c: Add dwarf2read.h include.
3105 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3106 disabled.
3107 (dwarf2_frame_unwinders_enabled_p): Define.
3108 (show_dwarf_unwinders_enabled_p): New function.
3109 (_initialize_dwarf2_frame): Register switch to control DWARF
3110 unwinder use.
3111 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3112 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3113 (show_dwarf_cmdlist): Remove static keyword.
3114 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3115 (show_dwarf_cmdlist): Declare.
3116 * NEWS: Document new feature.
3117
3118 2018-07-26 Tom de Vries <tdevries@suse.de>
3119
3120 PR breakpoints/23366
3121 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3122
3123 2018-07-26 Tom de Vries <tdevries@suse.de>
3124
3125 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3126 DW_AT_count can't be translated to a dynamic prop.
3127
3128 2018-07-25 Tom de Vries <tdevries@suse.de>
3129
3130 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3131 try/catch.
3132
3133 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3134
3135 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3136
3137 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3138
3139 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3140
3141 2018-07-24 Keith Seitz <keiths@redhat.comt
3142
3143 PR symtab/23010
3144 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3145 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3146 instead of add_symbol_to_list.
3147 (read_file_scope): Call prepare_one_comp_unit before reading
3148 any other DIEs.
3149
3150 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3151
3152 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3153
3154 2018-07-24 Tom Tromey <tom@tromey.com>
3155
3156 * utils.c (malloc, realloc, free): Don't declare.
3157 * configure, config.in: Rebuild.
3158 * configure.ac: Don't check for declarations of free, malloc, or
3159 realloc.
3160
3161 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3162
3163 * aarch64-linux-nat.c
3164 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3165 variable.
3166 * arm-linux-nat.c (fetch_regs): Likewise.
3167 (store_regs): Likewise.
3168 (fetch_vfp_regs): Likewise.
3169 (store_vfp_regs): Likewise.
3170 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3171 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3172 (arm_linux_nat_target::insert_watchpoint): Likewise.
3173 (arm_linux_nat_target::remove_watchpoint): Likewise.
3174 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3175 Likewise.
3176 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3177 Likewise.
3178 * ppc-linux-nat.c (fetch_register): Likewise.
3179 (fetch_all_gp_regs): Likewise.
3180 (fetch_ppc_registers): Likewise.
3181 (store_all_gp_regs): Likewise.
3182 (store_ppc_registers): Likewise.
3183 (hwdebug_insert_point): Likewise.
3184 (can_use_watchpoint_cond_accel): Likewise.
3185 * remote-sim.c (gdb_os_write_stdout): Likewise.
3186
3187 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3188 Tom Tromey <tom@tromey.com>
3189
3190 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3191 test for it.
3192 * configure: Rebuild.
3193
3194 2018-07-22 Tom Tromey <tom@tromey.com>
3195
3196 * regformats/regdat.sh: Define xmltarget_${name} inside
3197 #ifndef IN_PROCESS_AGENT.
3198
3199 2018-07-22 Tom Tromey <tom@tromey.com>
3200
3201 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3202
3203 2018-07-22 Tom Tromey <tom@tromey.com>
3204
3205 * symfile.c (reread_symbols): Notify iter, not objfile.
3206
3207 2018-07-22 Tom Tromey <tom@tromey.com>
3208
3209 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3210 Use arch_ops.
3211 (ravenscar_thread_target::prepare_to_store): Likewise.
3212
3213 2018-07-22 Tom Tromey <tom@tromey.com>
3214
3215 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3216 unused variable. Call value_fetch_lazy when needed.
3217 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3218 Remove unused variable. Call value_fetch_lazy when needed.
3219
3220 2018-07-22 Tom Tromey <tom@tromey.com>
3221
3222 * m32c-tdep.c (mark_dma): Return void.
3223 (make_regs): Remove unused declarations.
3224
3225 2018-07-22 Tom Tromey <tom@tromey.com>
3226
3227 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3228 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3229 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3230 bkscm_get_valid_block_smob_arg_unsafe for effect.
3231
3232 2018-07-22 Tom Tromey <tom@tromey.com>
3233
3234 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3235 value_type.
3236
3237 2018-07-22 Tom Tromey <tom@tromey.com>
3238
3239 * windows-nat.c (saved_context): Conditionally define.
3240 * remote.c (remote_target::remote_btrace_maybe_reopen):
3241 Conditionally declare "warned".
3242 * inflow.c (sigquit_ours): Conditionally define.
3243 (new_tty): Move "tty" declaration inside #if.
3244 * guile/guile.c (guile_datadir): Conditionally define.
3245 * charset.c (set_be_le_names): Move some declarations inside #if.
3246 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3247 #if.
3248 (parse_xml_btrace_conf): Likewise.
3249
3250 2018-07-22 Tom Tromey <tom@tromey.com>
3251
3252 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3253
3254 2018-07-22 Tom Tromey <tom@tromey.com>
3255
3256 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3257 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3258 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3259 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3260 * stack.c (frame_apply_level_command): Remove unused variable.
3261 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3262 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3263 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3264 unused variable.
3265 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3266 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3267 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3268 variable.
3269 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3270 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3271 variable.
3272 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3273 Remove unused variable.
3274 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3275 variable.
3276 * common/tdesc.c (print_xml_feature::visit): Remove unused
3277 variable.
3278 * compile/compile-object-load.c (store_regs): Remove unused
3279 variables.
3280 * complaints.c (clear_complaints): Remove unused variable.
3281 * corelow.c (core_target_open): Remove unused variable.
3282 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3283 variable.
3284 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3285 variable.
3286 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3287 variable.
3288 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3289 variable.
3290 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3291 variable.
3292 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3293 variable.
3294 * ia64-tdep.c (examine_prologue): Remove unused variable.
3295 * infcall.c (run_inferior_call): Remove unused variable.
3296 * inferior.c (exit_inferior): Remove unused variable.
3297 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3298 * linespec.c (decode_line_2): Remove unused variable.
3299 * linux-nat.c (super_close): Remove.
3300 * linux-tdep.c (linux_info_proc): Remove unused variable.
3301 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3302 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3303 Remove unused variable.
3304 * parse.c (find_minsym_type_and_address): Remove unused variable.
3305 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3306 variable.
3307 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3308 variable.
3309 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3310 variables.
3311 * record-btrace.c (record_btrace_target::store_registers): Remove
3312 unused variable.
3313 (cmd_show_record_btrace_cpu): Remove unused variable.
3314 * riscv-tdep.c (riscv_register_reggroup_p)
3315 (riscv_push_dummy_call, riscv_return_value): Remove unused
3316 variable.
3317 * rust-exp.y (literal): Remove unused variable.
3318 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3319 unused variable.
3320 <STRUCTOP_ANONYMOUS>: Likewise.
3321 * s390-linux-tdep.c (s390_linux_init_abi_31)
3322 (s390_linux_init_abi_64): Remove unused variable.
3323 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3324 (file_select_thread, net_windows_open, _initialize_ser_windows):
3325 Remove unused variables.
3326 * symtab.c (find_pc_sect_line): Remove unused variable.
3327 * target-memory.c (compute_garbled_blocks): Remove unused
3328 variable.
3329 (target_write_memory_blocks): Remove unused variable.
3330 * target.c (target_stack::unpush): Remove unused variables.
3331 * tracepoint.c (start_tracing, all_tracepoint_actions)
3332 (merge_uploaded_trace_state_variables)
3333 (print_one_static_tracepoint_marker): Remove unused variable.
3334 * unittests/basic_string_view/element_access/char/1.cc (test01):
3335 Remove unused variable.
3336 * windows-nat.c (windows_continue, windows_add_all_dlls)
3337 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3338 Remove unused variables.
3339
3340 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3341
3342 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3343 attr_profile in HAVE_ELF.
3344 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3345 HAVE_ELF.
3346
3347 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3348
3349 * frame.c (frame_register_unwind): Change parameter name.
3350 (frame_unwind_register): Likewise.
3351 (frame_unwind_register_value): Likewise.
3352 (frame_unwind_register_signed): Likewise.
3353 (frame_unwind_register_unsigned): Likewise.
3354 * frame.h (frame_register_unwind): Likewise.
3355 (frame_unwind_register): Likewise.
3356 (frame_unwind_register_value): Likewise.
3357 (frame_unwind_register_signed): Likewise.
3358 (frame_unwind_register_unsigned): Likewise.
3359 (frame_unwind_arch): Likewise.
3360
3361 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3362
3363 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3364 ISA maintenance.
3365
3366 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3367
3368 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3369 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3370 hand.
3371
3372 2018-07-20 Keith Seitz <keiths@redhat.com>
3373
3374 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3375 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3376 m_compunit_symtab, m_language>: Add "m_" prefix.
3377 Update all uses.
3378 * buildsym.c: Update all uses.
3379
3380 2018-07-20 Tom Tromey <tom@tromey.com>
3381
3382 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3383 * buildsym.h (record_line_ftype): Remove typedef.
3384
3385 2018-07-20 Tom Tromey <tom@tromey.com>
3386
3387 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3388 (end_expandable_symtab): Likewise.
3389 (end_symtab_get_static_block): Likewise.
3390 (end_symtab_from_static_block): Likewise.
3391 * buildsym-legacy.c (augment_type_symtab): Remove.
3392 (end_expandable_symtab): Remove.
3393 (end_symtab_get_static_block): Remove.
3394 (end_symtab_from_static_block): Remove.
3395
3396 2018-07-20 Tom Tromey <tom@tromey.com>
3397
3398 * dwarf2read.c: Include buildsym.h.
3399 (struct dwarf2_cu) <builder>: New method.
3400 (fixup_go_packaging): Update.
3401 (process_full_comp_unit, process_full_type_unit): Update. Don't
3402 use scoped_free_pendings.
3403 (using_directives): Add "cu" parameter, remove "language".
3404 (read_import_statement, setup_type_unit_groups, )
3405 (read_func_scope, read_lexical_block_scope)
3406 (dwarf2_record_block_ranges, read_namespace): Update.
3407 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3408 (lnp_state_machine::handle_end_sequence): Update.
3409 (class lnp_state_machine) <m_cu>: New member.
3410 <m_record_line_callback>: Remove.
3411 <m_currently_recording_lines>: New member.
3412 (lnp_state_machine::handle_set_file): Update.
3413 (noop_record_line): Remove.
3414 (dwarf_record_line_p): Add cu parameter.
3415 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3416 (lnp_state_machine::record_line)
3417 (lnp_state_machine::lnp_state_machine)
3418 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3419 (dwarf_decode_lines): Update.
3420 (dwarf2_start_subfile): Add cu parameter.
3421 (dwarf2_start_symtab, new_symbol): Update.
3422 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3423 Remove dwarf2_per_objfile parameter.
3424 (dwarf_decode_macros): Update.
3425
3426 2018-07-20 Tom Tromey <tom@tromey.com>
3427
3428 * stabsread.c (define_symbol): Update.
3429 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3430 * dwarf2read.c (new_symbol): Update.
3431 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3432 * cp-namespace.c: Include buildsym.h.
3433 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3434 * buildsym-legacy.c (get_buildsym_compunit): New function.
3435
3436 2018-07-20 Tom Tromey <tom@tromey.com>
3437
3438 * xcoffread.c: Include buildsym-legacy.h.
3439 * windows-nat.c: Include buildsym-legacy.h.
3440 * stabsread.c: Include buildsym-legacy.h.
3441 * mdebugread.c: Include buildsym-legacy.h.
3442 * buildsym-legacy.h: New file.
3443 * buildsym-legacy.c: New file, from buildsym.c.
3444 * go32-nat.c: Include buildsym-legacy.h.
3445 * dwarf2read.c: Include buildsym-legacy.h.
3446 * dbxread.c: Include buildsym-legacy.h.
3447 * cp-namespace.c: Include buildsym-legacy.h.
3448 * coffread.c: Include buildsym-legacy.h.
3449 * buildsym.h: Move some contents to buildsym-legacy.h.
3450 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3451 buildsym-legacy.c.
3452 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3453
3454 2018-07-20 Tom Tromey <tom@tromey.com>
3455
3456 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3457 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3458 (buildsym_compunit::buildsym_compunit)
3459 (buildsym_compunit::~buildsym_compunit)
3460 (buildsym_compunit::get_macro_table): Define.
3461
3462 2018-07-20 Tom Tromey <tom@tromey.com>
3463
3464 * buildsym.c (reset_symtab_globals): Remove.
3465 (buildsym_compunit::end_symtab_from_static_block): Update.
3466 (buildsym_compunit::augment_type_symtab): Update.
3467 (end_symtab_from_static_block): Call free_buildsym_compunit.
3468 (augment_type_symtab, end_symtab, end_expandable_symtab):
3469 Likewise.
3470
3471 2018-07-20 Tom Tromey <tom@tromey.com>
3472
3473 * arch-utils.c: Do not include buildsym.h.
3474 * mipsread.c: Do not include buildsym.h.
3475 * machoread.c: Do not include buildsym.h.
3476 * elfread.c: Do not include buildsym.h.
3477
3478 2018-07-20 Tom Tromey <tom@tromey.com>
3479
3480 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3481 initialization.
3482 (buildsym_compunit): Add new constructor.
3483 (struct buildsym_compunit) <get_last_source_file, finish_block,
3484 record_block_range, start_subfile, patch_subfile_names,
3485 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3486 set_last_source_start_addr, get_last_source_start_addr,
3487 get_local_using_directives, set_local_using_directives,
3488 get_global_using_directives, outermost_context_p,
3489 get_current_context_stack, get_context_stack_depth,
3490 get_current_subfile, get_local_symbols, get_file_symbols,
3491 get_global_symbols, record_debugformat, record_producer,
3492 push_context, pop_context, end_symtab_get_static_block,
3493 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3494 New public methods.
3495 <record_pending_block, finish_block_internal, make_blockvector,
3496 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3497 private methods.
3498 Update all users.
3499
3500 2018-05-22 Tom Tromey <tom@tromey.com>
3501
3502 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3503 parameter.
3504 (finish_block_internal): Update.
3505
3506 2018-07-20 Tom Tromey <tom@tromey.com>
3507
3508 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3509 parameter.
3510 (finish_block_internal): Update.
3511
3512 2018-07-20 Tom Tromey <tom@tromey.com>
3513
3514 * buildsym.h (EXTERN): Don't define or undef.
3515 * buildsym.c (EXTERN): Don't define.
3516
3517 2018-07-20 Tom Tromey <tom@tromey.com>
3518
3519 * buildsym.c: Remove TODO comment.
3520
3521 2018-07-20 Tom Tromey <tom@tromey.com>
3522
3523 * coffread.c (coff_symtab_read): Update.
3524 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3525 (xcoff_new_init): Update.
3526 * mipsread.c (mipscoff_new_init): Update.
3527 * mdebugread.c (mdebug_build_psymtabs): Update.
3528 * elfread.c (elf_new_init): Update.
3529 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3530 Update.
3531 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3532 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3533 (stabsect_build_psymtabs): Update.
3534 * buildsym.h (buildsym_init): Don't declare.
3535 * buildsym.c: Update comment.
3536 (prepare_for_building): Remove.
3537 (start_symtab, restart_symtab): Update.
3538 (reset_symtab_globals): Update comment.
3539 (buildsym_init): Remove.
3540
3541 2018-07-20 Tom Tromey <tom@tromey.com>
3542
3543 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3544 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3545 (read_enum_type, common_block_start, common_block_end)
3546 (cleanup_undefined_types_1, finish_global_stabs): Update.
3547 * mdebugread.c (psymtab_to_symtab_1): Update.
3548 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3549 (read_lexical_block_scope, new_symbol): Update.
3550 * dbxread.c (process_one_symbol): Update.
3551 * coffread.c (coff_symtab_read, process_coff_symbol)
3552 (coff_read_enum_type): Update.
3553 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3554 declare.
3555 (get_local_symbols, get_file_symbols, get_global_symbols): New
3556 functions.
3557 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3558 m_global_symbols.
3559 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3560 (~scoped_free_pendings): Update.
3561 (finish_block, prepare_for_building, reset_symtab_globals)
3562 (end_symtab_get_static_block, end_symtab_with_blockvector)
3563 (augment_type_symtab, push_context): Update.
3564 (get_local_symbols, get_file_symbols, get_global_symbols): New
3565 functions.
3566 (buildsym_init): Update.
3567
3568 2018-07-20 Tom Tromey <tom@tromey.com>
3569
3570 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3571 (process_full_type_unit): Likewise.
3572 (dwarf2_start_symtab): Set list_in_scope.
3573
3574 2018-07-20 Tom Tromey <tom@tromey.com>
3575
3576 * dwarf2read.c (process_psymtab_comp_unit_reader)
3577 (build_type_psymtabs_reader): Do not set list_in_scope.
3578
3579 2018-07-20 Tom Tromey <tom@tromey.com>
3580
3581 * buildsym.c (free_pendings): Remove.
3582 (add_symbol_to_list, scoped_free_pendings)
3583 (finish_block_internal, buildsym_init): Update.
3584
3585 2018-07-20 Tom Tromey <tom@tromey.com>
3586
3587 * xcoffread.c (read_xcoff_symtab): Update.
3588 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3589 Update.
3590 * dbxread.c (process_one_symbol): Update.
3591 * coffread.c (coff_symtab_read): Update.
3592 * buildsym.h (finish_block): Update.
3593 * buildsym.c (finish_block): Remove "listhead" argument.
3594 (end_symtab_get_static_block): Update.
3595
3596 2018-07-20 Tom Tromey <tom@tromey.com>
3597
3598 * buildsym.h (class scoped_free_pendings): Remove constructor.
3599 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3600 method.
3601 <m_pending_block_obstack, m_pending_blocks>: New members.
3602 (pending_block_obstack, pending_blocks): Remove.
3603 (scoped_free_pendings::scoped_free_pendings): Default.
3604 (~scoped_free_pendings): Update.
3605 (free_pending_blocks): Remove.
3606 (finish_block_internal, record_pending_block, make_blockvector)
3607 (end_symtab_get_static_block, augment_type_symtab, push_context)
3608 (buildsym_init): Update.
3609
3610 2018-07-20 Tom Tromey <tom@tromey.com>
3611
3612 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3613 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3614 members.
3615 (pending_addrmap, pending_addrmap_obstack)
3616 (pending_addrmap_interesting): Remove.
3617 (scoped_free_pendings, record_block_range, make_blockvector)
3618 (prepare_for_building, reset_symtab_globals, buildsym_init):
3619 Update.
3620
3621 2018-07-20 Tom Tromey <tom@tromey.com>
3622
3623 * xcoffread.c (process_linenos): Update.
3624 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3625 * mdebugread.c (psymtab_to_symtab_1): Update.
3626 * dwarf2read.c (setup_type_unit_groups)
3627 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3628 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3629 * dbxread.c (process_one_symbol): Update.
3630 * coffread.c (coff_symtab_read, enter_linenos)
3631 (process_coff_symbol): Update.
3632 * buildsym.h (current_subfile): Don't declare.
3633 (get_current_subfile): Declare.
3634 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3635 member.
3636 (start_subfile, free_buildsym_compunit, push_subfile)
3637 (prepare_for_building, start_symtab): Update.
3638 (get_current_subfile): New function.
3639
3640 2018-07-20 Tom Tromey <tom@tromey.com>
3641
3642 * coffread.c (coff_symtab_read): Update.
3643 * xcoffread.c (read_xcoff_symtab): Update.
3644 * dwarf2read.c (new_symbol): Update.
3645 (read_func_scope, read_lexical_block_scope): Update.
3646 * dbxread.c (process_one_symbol): Update.
3647 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3648 (outermost_context_p): Remove macro.
3649 (outermost_context_p, get_current_context_stack)
3650 (get_context_stack_depth): Declare.
3651 (pop_context): Return struct context_stack.
3652 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3653 member.
3654 (context_stack_size): Remove.
3655 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3656 (prepare_for_building, end_symtab_get_static_block)
3657 (augment_type_symtab, push_context): Update.
3658 (pop_context): Return struct context_stack.
3659 (outermost_context_p, get_current_context_stack)
3660 (get_context_stack_depth): New functions.
3661 (buildsym_init): Update.
3662
3663 2018-07-20 Tom Tromey <tom@tromey.com>
3664
3665 * rust-exp.y: Now a pure parser. Update all rules.
3666 (%union): Move earlier.
3667 (current_parser, work_obstack): Remove globals.
3668 (rust_parser, ~rust_parser): Update.
3669 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3670 lex_character, lex_number, lex_string, lex_identifier,
3671 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3672 convert_name, convert_params_to_expression,
3673 convert_ast_to_expression, ast_basic_type, ast_operation,
3674 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3675 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3676 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3677 ast_array_type, ast_slice_type, ast_reference_type,
3678 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3679 (rust_parse): Update.
3680 (rustyyerror, rustyylex): Add parser parameter.
3681 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3682 (rust_lex_stringish_test, rust_lex_test_sequence)
3683 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3684 (rust_lex_test_push_back, rust_lex_tests): Update.
3685
3686 2018-07-19 Pedro Alves <palves@redhat.com>
3687
3688 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3689 gdb::unique_xmalloc_ptr.
3690 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3691 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3692 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3693 copy-initialization.
3694 * guile/scm-pretty-print.c (ppscm_print_children): Use
3695 gdb::unique_xmalloc_ptr instead of cleanups.
3696 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3697 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3698 gdb::unique_xmalloc_ptr.
3699 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3700 Adjust to use gdb::unique_xmalloc_ptr.
3701 * guile/scm-utils.c (extract_arg): Adjust.
3702 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3703 gdb::unique_xmalloc_ptr instead of a cleanup.
3704
3705 2018-07-19 Tom Tromey <tom@tromey.com>
3706
3707 * utils.c (do_value_free_to_mark)
3708 (make_cleanup_value_free_to_mark): Remove.
3709 * utils.h (make_cleanup_value_free_to_mark): Remove.
3710
3711 2018-07-19 Pedro Alves <palves@redhat.com>
3712
3713 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3714 forwarding reference.
3715
3716 2018-07-18 Pedro Alves <palves@redhat.com>
3717
3718 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3719 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3720 cleanup.
3721
3722 2018-07-18 Pedro Alves <palves@redhat.com>
3723
3724 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3725 exceptions.
3726 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3727 (gdbscm_wrap): New.
3728 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3729 directly instead of a cleanup.
3730 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3731 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3732 (vlscm_binop_gdbthrow): New, factored out from ...
3733 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3734 (vlscm_rich_compare): Use gdbscm_wrap.
3735 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3736 instead of a cleanup.
3737 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3738 cleanup.
3739 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3740 Use xfree directly instead of a cleanup.
3741 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3742 Adjust to use gdbscm_wrap and scoped_value_mark.
3743 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3744 (gdbscm_value_address, gdbscm_value_dereference)
3745 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3746 scoped_value_mark.
3747 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3748 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3749 scoped_value_mark.
3750 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3751 gdbscm_wrap and scoped_value_mark.
3752 (gdbscm_value_to_string): Use xfree directly instead of a
3753 cleanup. Move 'buffer' unique_ptr to TRY scope.
3754 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3755 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3756 scoped_value_mark.
3757 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3758 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3759 scoped_value_mark.
3760 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3761 gdbscm_wrap.
3762
3763 2018-07-18 Tom de Vries <tdevries@suse.de>
3764
3765 * findvar.c (default_read_var_value): Also resolve dynamic type for
3766 LOC_OPTIMIZED_OUT vars.
3767
3768 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3769
3770 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3771 decoding.
3772
3773 2018-07-17 Tom Tromey <tom@tromey.com>
3774
3775 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3776 (compute_enum_list, pascm_set_param_value_x)
3777 (gdbscm_parameter_value): Update.
3778 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3779 (gdbscm_scm_to_host_string): Update.
3780 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3781 Update.
3782 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3783 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3784 * guile/scm-string.c (gdbscm_scm_to_string): Return
3785 unique_xmalloc_ptr.
3786 (gdbscm_scm_to_host_string): Likewise.
3787
3788 2018-07-17 Tom Tromey <tom@tromey.com>
3789
3790 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3791 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3792 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3793 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3794 unique_xmalloc_ptr.
3795
3796 2018-07-17 Tom Tromey <tom@tromey.com>
3797
3798 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3799 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3800 Update.
3801 * guile/scm-cmd.c (cmdscm_function): Update.
3802 * guile/scm-pretty-print.c
3803 (ppscm_print_exception_unless_memory_error): Update.
3804 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3805 Return unique_xmalloc_ptr.
3806
3807 2018-07-17 Tom Tromey <tom@tromey.com>
3808
3809 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3810 Use string_printf.
3811
3812 2018-07-17 Jim Wilson <jimw@sifive.com>
3813
3814 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3815 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3816 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3817 unecessary braces after EF_RISCV_RVC test. Delete call to
3818 set_gdbarch_decr_pc_after_break.
3819
3820 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3821 RISCV_LAST_FP_REGNUM + 1.
3822 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3823
3824 2018-07-17 Tom Tromey <tom@tromey.com>
3825
3826 * configure.ac: Remove --disable-gdbcli.
3827 * configure: Rebuild.
3828 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3829 (SUBDIR_CLI_CFLAGS): Remove.
3830 (SFILES): Use SUBDIR_CLI_SRCS.
3831 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3832
3833 2018-07-17 Tom Tromey <tom@tromey.com>
3834
3835 PR gdb/18624:
3836 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3837
3838 2018-07-16 Jim Wilson <jimw@sifive.com>
3839
3840 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3841
3842 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3843
3844 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3845 variable.
3846 (libunwind_frame_sniffer): Likewise.
3847 (libunwind_frame_prev_register): Likewise.
3848 (libunwind_sigtramp_frame_sniffer): Likewise.
3849 * ia64-tdep.c (ia64_access_reg): Likewise.
3850 (ia64_access_rse_reg): Likewise.
3851 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3852 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3853
3854 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3855
3856 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3857
3858 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3859
3860 * remote-sim.c (gdbsim_target::close,
3861 gdbsim_target::mourn_inferior): Remove unused variables.
3862
3863 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3864
3865 * ia64-tdep.c (ktab_buf): New global.
3866 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3867 (get_kernel_table): Adjust.
3868
3869 2018-07-16 Tom Tromey <tom@tromey.com>
3870
3871 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3872 * dwarf2read.c (using_directives, new_symbol): Use
3873 outermost_context_p.
3874 * dbxread.c (process_one_symbol): Use outermost_context_p.
3875 * coffread.c (coff_symtab_read): Use outermost_context_p.
3876
3877 2018-07-16 Tom Tromey <tom@tromey.com>
3878
3879 * dwarf2read.c (using_directives, read_func_scope)
3880 (read_lexical_block_scope): Update.
3881 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3882 * buildsym.h (local_using_directives, global_using_directives):
3883 Don't declare.
3884 (get_local_using_directives, set_local_using_directives)
3885 (get_global_using_directives): Declare.
3886 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3887 m_global_using_directives>: New members.
3888 (finish_block_internal, prepare_for_building)
3889 (reset_symtab_globals, end_symtab_get_static_block)
3890 (push_context): Update.
3891 (get_local_using_directives, set_local_using_directives)
3892 (get_global_using_directives): New functions.
3893 (buildsym_init): Update.
3894
3895 2018-07-16 Tom Tromey <tom@tromey.com>
3896
3897 * xcoffread.c (xcoff_initial_scan): Don't call
3898 free_pending_blocks.
3899 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3900 * buildsym.h (class scoped_free_pendings): Add constructor.
3901 (free_pending_blocks): Don't declare.
3902 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3903 (free_pending_blocks): Now static.
3904
3905 2018-07-16 Tom Tromey <tom@tromey.com>
3906
3907 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3908 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3909 member.
3910 (struct subfile_stack): Remove.
3911 (subfile_stack): Remove.
3912 (push_subfile, pop_subfile, buildsym_init): Update.
3913
3914 2018-07-16 Tom Tromey <tom@tromey.com>
3915
3916 * buildsym.c (push_subfile): Use gdb_assert.
3917 (pop_subfile): Use gdb_assert.
3918
3919 2018-07-16 Tom Tromey <tom@tromey.com>
3920
3921 * buildsym.h (merge_symbol_lists): Remove.
3922 * buildsym.c (merge_symbol_lists): Remove.
3923
3924 2018-07-16 Tom Tromey <tom@tromey.com>
3925
3926 * stabsread.c (scan_file_globals): Update comment.
3927 * stabsread.h (scan_file_globals): Move from buildsym.h.
3928 * buildsym.h (scan_file_globals): Move to stabsread.h.
3929
3930 2018-07-16 Tom Tromey <tom@tromey.com>
3931
3932 * xcoffread.c (xcoff_new_init): Update.
3933 * mipsread.c (mipscoff_new_init): Update.
3934 * mdebugread.c (mdebug_build_psymtabs): Update.
3935 * elfread.c (elf_new_init): Update.
3936 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3937 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3938 * buildsym.h (buildsym_new_init): Don't declare.
3939 * buildsym.c (buildsym_new_init): Remove.
3940
3941 2018-07-16 Tom Tromey <tom@tromey.com>
3942
3943 * stabsread.h (within_function): Move from buildsym.h.
3944 * stabsread.c (start_stabs): Clear within_function.
3945 * coffread.c (coff_start_symtab): Clear within_function.
3946 * buildsym.h (within_function): Move to stabsread.h.
3947 * buildsym.c (prepare_for_building): Update.
3948
3949 2018-07-16 Tom Tromey <tom@tromey.com>
3950
3951 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3952 * dwarf2read.c (dwarf2_start_symtab): Don't set
3953 processing_gcc_compilation.
3954 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3955
3956 2018-07-16 Tom Tromey <tom@tromey.com>
3957
3958 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3959 (next_symbol_text_func): Move from buildsym.h.
3960 * stabsread.c (hashname): Move from buildsym.c.
3961 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3962 (next_symbol_text_func, hashname): Move to stabsread.h.
3963 * buildsym.c: Don't include bcache.h
3964 (hashname): Move to stasbread.c.
3965
3966 2018-07-16 Tom Tromey <tom@tromey.com>
3967
3968 * buildsym.h (context_stack_size): Don't declare.
3969 * buildsym.c (context_stack_size): New global.
3970
3971 2018-07-16 Tom Tromey <tom@tromey.com>
3972
3973 * dbxread.c (processing_acc_compilation): New global.
3974 * buildsym.h (processing_acc_compilation): Don't declare.
3975
3976 2018-07-16 Tom Tromey <tom@tromey.com>
3977
3978 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3979 * dbxread.c (read_ofile_symtab): Update.
3980 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3981 * buildsym.h (last_source_start_addr): Remove.
3982 (set_last_source_start_addr, get_last_source_start_addr):
3983 Declare.
3984 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3985 parameter.
3986 (struct buildsym_compunit) <m_last_source_start_addr>: New
3987 member.
3988 (prepare_for_building): Remove start_addr parameter.
3989 (start_symtab, restart_symtab, end_symtab_get_static_block)
3990 (end_symtab_with_blockvector): Update.
3991 (set_last_source_start_addr, get_last_source_start_addr): New
3992 functions.
3993
3994 2018-07-16 Tom Tromey <tom@tromey.com>
3995
3996 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3997 member.
3998 (have_line_numbers): Remove.
3999 (record_line, prepare_for_building, end_symtab_get_static_block)
4000 (augment_type_symtab): Update.
4001
4002 2018-07-16 Tom Tromey <tom@tromey.com>
4003
4004 * buildsym.c (~buildsym_compunit): Free the macro table.
4005 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4006 methods.
4007 <m_pending_macros>: New member.
4008 (pending_macros): Remove.
4009 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4010 (reset_symtab_globals, end_symtab_get_static_block)
4011 (end_symtab_with_blockvector, augment_type_symtab)
4012 (buildsym_init): Update.
4013
4014 2018-07-16 Tom Tromey <tom@tromey.com>
4015
4016 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4017 parameter.
4018 (buildsym_compunit::set_last_source_file): New method.
4019 <m_last_source_file>: New member.
4020 (prepare_for_building): Remove "name" parameter.
4021 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4022 (last_source_file): Remove.
4023 (set_last_source_file, get_last_source_file): Update.
4024
4025 2018-07-16 Tom Tromey <tom@tromey.com>
4026
4027 * buildsym.c (prepare_for_building): Add assert.
4028
4029 2018-07-16 Tom Tromey <tom@tromey.com>
4030
4031 * buildsym.c (~buildsym_compunit): Update.
4032 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4033 (start_subfile, patch_subfile_names)
4034 (end_symtab_with_blockvector): Update.
4035
4036 2018-07-16 Tom Tromey <tom@tromey.com>
4037
4038 * buildsym.c (struct buildsym_compunit): Add constructor,
4039 destructor, initializers.
4040 (start_buildsym_compunit): Remove.
4041 (free_buildsym_compunit): Use "delete".
4042 (start_symtab, restart_symtab): Use "new".
4043
4044 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4045
4046 * symfile.c (set_objfile_default_section_offset): Remove struct
4047 keyword.
4048
4049 2018-07-14 Stafford Horne <shorne@gmail.com>
4050
4051 * (Responsible Maintainers): Add myself as or1k maintainer.
4052
4053 2018-07-13 Tom Tromey <tom@tromey.com>
4054
4055 * symfile.c (set_objfile_default_section_offset): Use extra braces
4056 around initializer.
4057
4058 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4059
4060 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4061 non-branching basr.
4062
4063 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4064
4065 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4066 unittests/cli-utils-selftests.c
4067 * unittests/cli-utils-selftests.c: New file.
4068
4069 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4070
4071 * NEWS: Mention new commands. Mention change to 'thread apply'.
4072
4073 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4074
4075 * thread.c (thr_try_catch_cmd): New function.
4076 (thread_apply_all_command): Handle qcs flags.
4077 (thread_apply_command): Handle qcs flags.
4078 (taas_command): New function.
4079 (tfaas_command): New function.
4080 (_initialize_thread): Update to setup the new commands 'taas
4081 and 'tfaas'. Change doc string for 'thread apply'.
4082
4083 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4084
4085 * stack.c: (trailing_outermost_frame): New function, mostly
4086 extracted from backtrace_command_1.
4087 (leading_innermost_frame): New function.
4088 (backtrace_command_1): Update to call trailing_outermost_frame.
4089 (frame_apply_command_count): New function.
4090 (frame_apply_level_command): New function.
4091 (frame_apply_all_command): New function.
4092 (frame_apply_command): New function.
4093 (faas_command): New function.
4094 (frame_cmd_list): New variable.
4095 (_initialize_stack): Update to setup the new commands 'frame apply'
4096 and 'faas'.
4097
4098 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4099
4100 * cli-utils.c (number_or_range_parser::get_number): Only handle
4101 numbers or convenience var as numbers.
4102 (parse_flags): New function.
4103 (parse_flags_qcs): New function.
4104 (number_or_range_parser::finished): Ensure parsing end is detected
4105 before end of string.
4106 * cli-utils.h (parse_flags): New function.
4107 (parse_flags_qcs): New function.
4108 (number_or_range_parser): Remove m_finished bool.
4109 (number_or_range_parser::skip_range): Set m_in_range to false.
4110
4111 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4112
4113 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4114 on Windows.
4115
4116 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4117 Jan Kratochvil <jan.kratochvil@redhat.com>
4118 Paul Fertser <fercerpav@gmail.com>
4119 Tsutomu Seki <sekiriki@gmail.com>
4120 Pedro Alves <palves@redhat.com>
4121
4122 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4123 'unittests/parse-connection-spec-selftests.c'.
4124 (COMMON_SFILES): Add 'common/netstuff.c'.
4125 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4126 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4127 * common/netstuff.c: New file.
4128 * common/netstuff.h: New file.
4129 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4130 (wait_for_connect): Update comment. New parameter
4131 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4132 Use 'sock' directly instead of 'scb->fd'.
4133 (try_connect): New function, with code from 'net_open'.
4134 (net_open): Rewrite main loop to deal with multiple
4135 sockets/addresses. Handle IPv6-style hostnames; implement
4136 support for IPv6 connections.
4137 * unittests/parse-connection-spec-selftests.c: New file.
4138
4139 2018-07-11 Pedro Alves <palves@redhat.com>
4140
4141 PR gdb/23377
4142 * remote.c (remote_target::remote_detach_pid): Call
4143 set_current_process.
4144
4145 2018-07-11 Pedro Alves <palves@redhat.com>
4146
4147 * h8300-tdep.c (h8300_gdbarch_init): Remove
4148 set_gdbarch_ecoff_reg_to_regnum calls.
4149
4150 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4151
4152 PR c++/23373
4153 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4154 offsets/sizes for static members of a class/struct.
4155
4156 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4157
4158 * target-descriptions.c (tdesc_register_bitsize): Rename.
4159 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4160 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4161 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4162
4163 2018-07-10 Tom Tromey <tom@tromey.com>
4164
4165 * breakpoint.c (moribund_locations): Now static and a
4166 std::vector.
4167 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4168 (build_bpstat_chain, update_global_location_list)
4169 (breakpoint_retire_moribund): Update.
4170 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4171 VEC.
4172
4173 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4174
4175 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4176 (riscv_register_reggroup_p): Use new function, remove unneeded
4177 parenthesis.
4178 (riscv_push_dummy_call): Extend assert to compare against xlen or
4179 flen based on register type.
4180
4181 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4182
4183 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4184
4185 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4186
4187 * remote.c (show_hardware_watchpoint_limit): New function.
4188 (show_hardware_watchpoint_length_limit): New function.
4189 (show_hardware_breakpoint_limit): New function.
4190 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4191 where appropriate, update help text.
4192
4193 2018-07-09 Tom Tromey <tom@tromey.com>
4194
4195 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4196 (CLIBS): Don't mention NAT_CLIBS.
4197
4198 2018-07-09 Tom Tromey <tom@tromey.com>
4199
4200 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4201 (LIBGDB_OBS, clean mostlyclean): Update.
4202 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4203
4204 2018-07-09 Tom Tromey <tom@tromey.com>
4205
4206 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4207 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4208 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4209
4210 2018-07-09 Tom Tromey <tom@tromey.com>
4211
4212 * Makefile.in (ALLDEPFILES): Remove exec.c.
4213 (COMMON_OBS): Remove exec.o.
4214 (COMMON_SFILES): Add exec.c.
4215
4216 2018-07-09 Tom Tromey <tom@tromey.com>
4217
4218 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4219
4220 2018-07-09 Tom Tromey <tom@tromey.com>
4221
4222 * Makefile.in (clean mostlyclean): Remove stamp-version.
4223 (version.c): Depend on stamp-version.
4224 (stamp-version): New rule, from version.c rule.
4225
4226 2018-07-09 Tom Tromey <tom@tromey.com>
4227
4228 * Makefile.in (init.c): Depend on stamp-init.
4229 (stamp-init): New rule, from init.c rule.
4230 (clean mostlyclean): Remove stamp-init.
4231
4232 2018-07-09 Tom Tromey <tom@tromey.com>
4233
4234 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4235 SUBDIR_GCC_COMPILE_SRCS.
4236
4237 2018-07-09 Tom Tromey <tom@tromey.com>
4238
4239 * Makefile.in (init.c): Remove some unused sed rules.
4240
4241 2018-07-09 Tom Tromey <tom@tromey.com>
4242
4243 * Makefile.in (TSOBS): Remove.
4244 (INIT_FILES): Update.
4245 (LIBGDB_OBS): Update.
4246 (COMMON_SFILES): Add inflow.c.
4247 (SFILES): Remove inflow.c.
4248
4249 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4250
4251 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4252
4253 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4254
4255 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4256 get_saveloc_name, is_signal_frame_name, step_name,
4257 init_remote_name, create_addr_space_name,
4258 destroy_addr_space_name, search_unwind_table_name,
4259 find_dyn_list_name): Constify.
4260
4261 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4262
4263 * darwin-nat.c (darwin_pthread_kill): New function.
4264 (darwin_resume_thread): Use darwin_pthread_kill.
4265
4266 2018-07-05 Tom de Vries <tdevries@suse.de>
4267
4268 * macroexp.c (macro_buffer) <operator=>: New member function.
4269
4270 2018-07-04 Tom Tromey <tom@tromey.com>
4271
4272 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4273
4274 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4275
4276 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4277 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4278 * maint.c: Likewise.
4279 * top.c: Likewise.
4280
4281 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4282
4283 * NEWS: Create a new section for the next release branch.
4284 Rename the section of the current branch, now that it has
4285 been cut.
4286
4287 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4288
4289 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4290 * version.in: Bump version to 8.2.50.DATE-git.
4291
4292 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4293 Pedro Alves <palves@redhat.com>
4294
4295 * linux-nat.c (linux_init_ptrace): Rename to ...
4296 (linux_init_ptrace_procfs): ... this. Call
4297 linux_proc_init_warnings.
4298 (linux_nat_target::post_attach)
4299 (linux_nat_target::post_startup_inferior): Adjust.
4300 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4301 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4302
4303 2018-07-04 Tom de Vries <tdevries@suse.de>
4304
4305 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4306 check ...
4307 (read_comp_unit_head): ... here.
4308
4309 2018-07-03 Tom Tromey <tom@tromey.com>
4310
4311 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4312 (stop_tracing, tstatus_command)
4313 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4314 (print_one_static_tracepoint_marker): Update.
4315 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4316 std::vector.
4317 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4318 VEC.
4319 (all_tracepoints, static_tracepoints_here): Return std::vector.
4320
4321 2018-07-03 Tom Tromey <tom@tromey.com>
4322
4323 * common/ptid.c (ptid_equal): Remove.
4324 * common/ptid.h (ptid_equal): Don't declare.
4325 * ada-tasks.c: Update.
4326 * breakpoint.c: Update.
4327 * common/agent.c: Update.
4328 * corelow.c: Update.
4329 * darwin-nat-info.c: Update.
4330 * darwin-nat.c: Update.
4331 * dcache.c: Update.
4332 * dtrace-probe.c: Update.
4333 * dummy-frame.c: Update.
4334 * fbsd-nat.c: Update.
4335 * frame.c: Update.
4336 * gdbthread.h: Update.
4337 * gnu-nat.c: Update.
4338 * go32-nat.c: Update.
4339 * inf-loop.c: Update.
4340 * inf-ptrace.c: Update.
4341 * infcall.c: Update.
4342 * infcmd.c: Update.
4343 * inflow.c: Update.
4344 * infrun.c: Update.
4345 * linux-fork.c: Update.
4346 * linux-nat.c: Update.
4347 * linux-thread-db.c: Update.
4348 * mi/mi-cmd-var.c: Update.
4349 * mi/mi-interp.c: Update.
4350 * mi/mi-main.c: Update.
4351 * nto-procfs.c: Update.
4352 * ppc-linux-tdep.c: Update.
4353 * procfs.c: Update.
4354 * python/py-inferior.c: Update.
4355 * python/py-record-btrace.c: Update.
4356 * python/py-record.c: Update.
4357 * ravenscar-thread.c: Update.
4358 * regcache.c: Update.
4359 * remote-sim.c: Update.
4360 * remote.c: Update.
4361 * sol-thread.c: Update.
4362 * solib.c: Update.
4363 * target.c: Update.
4364 * tui/tui-stack.c: Update.
4365 * varobj.c: Update.
4366 * windows-nat.c: Update.
4367 * windows-tdep.c: Update.
4368
4369 2018-07-03 Tom Tromey <tom@tromey.com>
4370
4371 * common/ptid.c (ptid_match): Remove.
4372 * common/ptid.h (ptid_match): Don't declare.
4373 * fbsd-nat.c: Update.
4374 * infcmd.c: Update.
4375 * infrun.c: Update.
4376 * linux-nat.c: Update.
4377 * record-btrace.c: Update.
4378 * regcache.c: Update.
4379 * remote.c: Update.
4380
4381 2018-07-03 Tom Tromey <tom@tromey.com>
4382
4383 * common/ptid.c (ptid_tid_p): Remove.
4384 * common/ptid.h (ptid_tid_p): Don't declare.
4385 * sol-thread.c: Update.
4386
4387 2018-07-03 Tom Tromey <tom@tromey.com>
4388
4389 * common/ptid.c (ptid_lwp_p): Remove.
4390 * common/ptid.h (ptid_lwp_p): Don't declare.
4391 * fbsd-nat.c: Update.
4392 * linux-nat.c: Update.
4393 * nat/linux-procfs.c: Update.
4394 * nat/x86-linux-dregs.c: Update.
4395 * sol-thread.c: Update.
4396
4397 2018-07-03 Tom Tromey <tom@tromey.com>
4398
4399 * common/ptid.c (ptid_is_pid): Remove.
4400 * common/ptid.h (ptid_is_pid): Don't declare.
4401 * infrun.c: Update.
4402 * linux-nat.c: Update.
4403 * mi/mi-interp.c: Update.
4404 * remote.c: Update.
4405 * thread.c: Update.
4406
4407 2018-07-03 Tom Tromey <tom@tromey.com>
4408
4409 * common/ptid.c (ptid_get_tid): Remove.
4410 * common/ptid.h (ptid_get_tid): Don't declare.
4411 * ada-tasks.c: Update.
4412 * aix-thread.c: Update.
4413 * bsd-uthread.c: Update.
4414 * darwin-nat.c: Update.
4415 * fbsd-nat.c: Update.
4416 * i386-darwin-nat.c: Update.
4417 * infrun.c: Update.
4418 * linux-tdep.c: Update.
4419 * nto-procfs.c: Update.
4420 * ppc-ravenscar-thread.c: Update.
4421 * python/py-infthread.c: Update.
4422 * ravenscar-thread.c: Update.
4423 * sol-thread.c: Update.
4424 * sparc-ravenscar-thread.c: Update.
4425 * windows-nat.c: Update.
4426
4427 2018-07-03 Tom Tromey <tom@tromey.com>
4428
4429 * common/ptid.c (ptid_get_lwp): Remove.
4430 * common/ptid.h (ptid_get_lwp): Don't declare.
4431 * aarch64-linux-nat.c: Update.
4432 * ada-tasks.c: Update.
4433 * aix-thread.c: Update.
4434 * amd64-linux-nat.c: Update.
4435 * arm-linux-nat.c: Update.
4436 * corelow.c: Update.
4437 * fbsd-nat.c: Update.
4438 * fbsd-tdep.c: Update.
4439 * gnu-nat.c: Update.
4440 * i386-cygwin-tdep.c: Update.
4441 * i386-gnu-nat.c: Update.
4442 * i386-linux-nat.c: Update.
4443 * ia64-linux-nat.c: Update.
4444 * inf-ptrace.c: Update.
4445 * infrun.c: Update.
4446 * linux-fork.c: Update.
4447 * linux-nat.c: Update.
4448 * linux-tdep.c: Update.
4449 * linux-thread-db.c: Update.
4450 * mips-linux-nat.c: Update.
4451 * nat/aarch64-linux-hw-point.c: Update.
4452 * nat/aarch64-linux.c: Update.
4453 * nat/linux-btrace.c: Update.
4454 * nat/linux-osdata.c: Update.
4455 * nat/linux-procfs.c: Update.
4456 * nat/x86-linux-dregs.c: Update.
4457 * obsd-nat.c: Update.
4458 * ppc-fbsd-nat.c: Update.
4459 * ppc-linux-nat.c: Update.
4460 * procfs.c: Update.
4461 * python/py-infthread.c: Update.
4462 * ravenscar-thread.c: Update.
4463 * remote.c: Update.
4464 * s390-linux-nat.c: Update.
4465 * sol-thread.c: Update.
4466 * sol2-tdep.c: Update.
4467 * spu-linux-nat.c: Update.
4468 * x86-linux-nat.c: Update.
4469 * xtensa-linux-nat.c: Update.
4470
4471 2018-07-03 Tom Tromey <tom@tromey.com>
4472
4473 * common/ptid.c (ptid_get_pid): Remove.
4474 * common/ptid.h (ptid_get_pid): Don't declare.
4475 * aarch64-linux-nat.c: Update.
4476 * ada-lang.c: Update.
4477 * aix-thread.c: Update.
4478 * alpha-bsd-nat.c: Update.
4479 * amd64-fbsd-nat.c: Update.
4480 * amd64-linux-nat.c: Update.
4481 * arm-linux-nat.c: Update.
4482 * arm-nbsd-nat.c: Update.
4483 * auxv.c: Update.
4484 * break-catch-syscall.c: Update.
4485 * breakpoint.c: Update.
4486 * bsd-uthread.c: Update.
4487 * corelow.c: Update.
4488 * ctf.c: Update.
4489 * darwin-nat.c: Update.
4490 * fbsd-nat.c: Update.
4491 * fbsd-tdep.c: Update.
4492 * gcore.c: Update.
4493 * gnu-nat.c: Update.
4494 * hppa-nbsd-nat.c: Update.
4495 * hppa-obsd-nat.c: Update.
4496 * i386-fbsd-nat.c: Update.
4497 * ia64-linux-nat.c: Update.
4498 * inf-ptrace.c: Update.
4499 * infcmd.c: Update.
4500 * inferior.c: Update.
4501 * inferior.h: Update.
4502 * inflow.c: Update.
4503 * infrun.c: Update.
4504 * linux-fork.c: Update.
4505 * linux-nat.c: Update.
4506 * linux-tdep.c: Update.
4507 * linux-thread-db.c: Update.
4508 * m68k-bsd-nat.c: Update.
4509 * mi/mi-interp.c: Update.
4510 * mi/mi-main.c: Update.
4511 * mips-linux-nat.c: Update.
4512 * mips-nbsd-nat.c: Update.
4513 * mips64-obsd-nat.c: Update.
4514 * nat/aarch64-linux-hw-point.c: Update.
4515 * nat/aarch64-linux.c: Update.
4516 * nat/linux-btrace.c: Update.
4517 * nat/linux-osdata.c: Update.
4518 * nat/linux-procfs.c: Update.
4519 * nat/x86-linux-dregs.c: Update.
4520 * nto-procfs.c: Update.
4521 * obsd-nat.c: Update.
4522 * ppc-linux-nat.c: Update.
4523 * ppc-nbsd-nat.c: Update.
4524 * ppc-obsd-nat.c: Update.
4525 * proc-service.c: Update.
4526 * procfs.c: Update.
4527 * python/py-inferior.c: Update.
4528 * python/py-infthread.c: Update.
4529 * ravenscar-thread.c: Update.
4530 * record.c: Update.
4531 * remote-sim.c: Update.
4532 * remote.c: Update.
4533 * rs6000-nat.c: Update.
4534 * s390-linux-nat.c: Update.
4535 * sh-nbsd-nat.c: Update.
4536 * sol-thread.c: Update.
4537 * sparc-nat.c: Update.
4538 * sparc64-tdep.c: Update.
4539 * spu-linux-nat.c: Update.
4540 * spu-tdep.c: Update.
4541 * target-debug.h: Update.
4542 * target.c: Update.
4543 * thread.c: Update.
4544 * tid-parse.c: Update.
4545 * tracefile-tfile.c: Update.
4546 * vax-bsd-nat.c: Update.
4547 * windows-nat.c: Update.
4548 * x86-linux-nat.c: Update.
4549 * x86-nat.c: Update.
4550
4551 2018-07-03 Tom Tromey <tom@tromey.com>
4552
4553 * common/ptid.c (pid_to_ptid): Remove.
4554 * common/ptid.h (pid_to_ptid): Don't declare.
4555 * aix-thread.c: Update.
4556 * arm-linux-nat.c: Update.
4557 * common/ptid.c: Update.
4558 * common/ptid.h: Update.
4559 * corelow.c: Update.
4560 * ctf.c: Update.
4561 * darwin-nat.c: Update.
4562 * fbsd-nat.c: Update.
4563 * fork-child.c: Update.
4564 * gnu-nat.c: Update.
4565 * go32-nat.c: Update.
4566 * inf-ptrace.c: Update.
4567 * infcmd.c: Update.
4568 * inferior.c: Update.
4569 * infrun.c: Update.
4570 * linux-fork.c: Update.
4571 * linux-nat.c: Update.
4572 * nat/aarch64-linux-hw-point.c: Update.
4573 * nat/fork-inferior.c: Update.
4574 * nat/x86-linux-dregs.c: Update.
4575 * nto-procfs.c: Update.
4576 * obsd-nat.c: Update.
4577 * procfs.c: Update.
4578 * progspace.c: Update.
4579 * remote.c: Update.
4580 * rs6000-nat.c: Update.
4581 * s390-linux-nat.c: Update.
4582 * sol-thread.c: Update.
4583 * spu-linux-nat.c: Update.
4584 * target.c: Update.
4585 * top.c: Update.
4586 * tracefile-tfile.c: Update.
4587 * windows-nat.c: Update.
4588
4589 2018-07-03 Tom Tromey <tom@tromey.com>
4590
4591 * common/ptid.h (ptid_build): Don't declare.
4592 * common/ptid.c (ptid_build): Remove.
4593 * aix-thread.c: Update.
4594 * bsd-kvm.c: Update.
4595 * bsd-uthread.c: Update.
4596 * common/agent.c: Update.
4597 * common/ptid.c: Update.
4598 * common/ptid.h: Update.
4599 * corelow.c: Update.
4600 * darwin-nat.c: Update.
4601 * fbsd-nat.c: Update.
4602 * gnu-nat.c: Update.
4603 * linux-fork.c: Update.
4604 * linux-nat.c: Update.
4605 * linux-thread-db.c: Update.
4606 * nat/linux-osdata.c: Update.
4607 * nat/linux-procfs.c: Update.
4608 * nto-procfs.c: Update.
4609 * obsd-nat.c: Update.
4610 * proc-service.c: Update.
4611 * procfs.c: Update.
4612 * ravenscar-thread.c: Update.
4613 * remote-sim.c: Update.
4614 * remote.c: Update.
4615 * sol-thread.c: Update.
4616 * target.c: Update.
4617 * windows-nat.c: Update.
4618
4619 2018-07-03 Tom Tromey <tom@tromey.com>
4620
4621 * infrun.c (follow_exec): Use exit_inferior_silent.
4622 * inferior.c (exit_inferior_num_silent): Remove.
4623 * inferior.h (exit_inferior_num_silent): Don't declare.
4624
4625 2018-07-03 Tom Tromey <tom@tromey.com>
4626
4627 PR cli/23340:
4628 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4629 inferior_ptid on error.
4630
4631 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4632 Simon Marchi <simon.marchi@polymtl.ca>
4633
4634 PR tdep/8282
4635 * disasm.h (gdb_disassembler): Add
4636 `m_disassembler_options_holder'. member
4637 * disasm.c (get_all_disassembler_options): New function.
4638 (gdb_disassembler::gdb_disassembler): Use it.
4639 (gdb_buffered_insn_length_init_dis): Likewise.
4640 (gdb_buffered_insn_length): Adjust accordingly.
4641 (set_disassembler_options): Handle options with arguments.
4642 (show_disassembler_options_sfunc): Likewise. Add a leading new
4643 line if showing options with descriptions.
4644 (disassembler_options_completer): Adapt to using the
4645 `disasm_options_and_args_t' structure.
4646 * mips-tdep.c (mips_disassembler_options): New variable.
4647 (mips_disassembler_options_o32): Likewise.
4648 (mips_disassembler_options_n32): Likewise.
4649 (mips_disassembler_options_n64): Likewise.
4650 (gdb_print_insn_mips): Don't set `disassembler_options'.
4651 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4652 functions.
4653 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4654 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4655 `gdbarch_disassembler_options_implicit' and
4656 `gdbarch_valid_disassembler_options'.
4657 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4658 `disasm_options_and_args_t' structure.
4659 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4660 method.
4661 (valid_disassembler_options): Switch from `disasm_options_t' to
4662 the `disasm_options_and_args_t' structure.
4663 * NEWS: Document `set disassembler-options' support for the MIPS
4664 target.
4665 * gdbarch.h: Regenerate.
4666 * gdbarch.c: Regenerate.
4667
4668 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4669
4670 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4671
4672 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4673
4674 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4675 parameter in call to amd64_target_description.
4676 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4677 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4678 (amd64fbsd_init_abi): Likewise.
4679 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4680 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4681 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4682 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4683
4684 2018-06-29 Pedro Alves <palves@redhat.com>
4685
4686 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4687 "segments" parameter.
4688 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4689 (_initialize_amd64_tdep): Update call to
4690 amd64_create_target_description.
4691 (amd64_target_description): Add "segments" parameter. Adjust
4692 the implementation to use it.
4693 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4694 call to amd64_create_target_description.
4695 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4696 * gdb/arch/amd64.h (amd64_create_target_description): Add
4697 "segments" register.
4698 * gdb/arch/amd64.c (amd64_create_target_description): Add
4699 "segments" parameter. Call create_feature_i386_64bit_segments
4700 only if SEGMENTS is true.
4701 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4702 call to amd64_create_target_description.
4703
4704 2018-06-29 Pedro Alves <palves@redhat.com>
4705
4706 * thread.c (thread_target_id_str): New, factored out from ...
4707 (print_thread_info_1): ... here. Use it to compute the max
4708 "Target Id" column width.
4709
4710 2018-06-29 Pedro Alves <palves@redhat.com>
4711
4712 * remote.c (remote_target::extra_thread_info): Delete
4713 'display_buf' and 'n' locals. from the cache, regardless of
4714 packet mechanims is in use. Use cache for qThreadExtra and qP
4715 methods too.
4716
4717 2018-06-29 Pedro Alves <palves@redhat.com>
4718
4719 * blockframe.c (find_pc_sect_containing_function): New function.
4720 * breakpoint.c (print_breakpoint_location): Don't call
4721 find_pc_sect_function.
4722 * linespec.c (create_sals_line_offset): Record the location's
4723 symbol in the sal.
4724 * linespec.c (convert_address_location_to_sals): Fill in sal's
4725 symbol with find_pc_sect_containing_function.
4726 * symtab.c (find_function_start_sal): Rename to ...
4727 (find_function_start_sal_1): ... this.
4728 (find_function_start_sal): Reimplement as wrapper around
4729 find_function_start_sal_1, and use
4730 find_pc_sect_containing_function to fill in the sal's symbol.
4731 (find_function_start_sal(symbol*, bool)): Adjust.
4732 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4733 comments.
4734 (find_pc_sect_containing_function): Declare.
4735
4736 2018-06-29 Pedro Alves <palves@redhat.com>
4737
4738 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4739 true if the the location has no symbol.
4740
4741 2018-06-28 Tom Tromey <tom@tromey.com>
4742
4743 * NEWS: Mention --enable-codesign.
4744 * silent-rules.mk (ECHO_SIGN): New variable.
4745 * configure.ac: Add --enable-codesign.
4746 * configure: Rebuild.
4747 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4748 (gdb$(EXEEXT)): Optionally invoke codesign.
4749
4750 2018-06-28 Pedro Alves <palves@redhat.com>
4751
4752 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4753 comments.
4754 (switch_to_thread_no_regs): Adjust comment.
4755 * infcmd.c (stop_pc): Delete.
4756 (post_create_inferior, info_program_command): Replace references
4757 to stop_pc with references to thread_info->suspend.stop_pc.
4758 * inferior.h (stop_pc): Delete declaration.
4759 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4760 (handle_inferior_event_1, handle_signal_stop)
4761 (process_event_stop_test, keep_going_stepped_thread)
4762 (handle_step_into_function, handle_step_into_function_backward)
4763 (print_stop_location): Replace references to stop_pc with
4764 references to thread_info->suspend.stop_pc.
4765 (struct infcall_suspend_state) <stop_pc>: Delete field.
4766 (save_infcall_suspend_state, restore_infcall_suspend_state):
4767 Remove references to inf_stat->stop_pc.
4768 * linux-fork.c (fork_load_infrun_state): Likewise.
4769 * record-btrace.c (record_btrace_set_replay): Likewise.
4770 * record-full.c (record_full_goto_entry): Likewise.
4771 * remote.c (print_one_stopped_thread): Likewise.
4772 * target.c (target_resume): Extend comment.
4773 * thread.c (set_executing_thread): New.
4774 (set_executing): Use it.
4775 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4776 Remove references to stop_pc.
4777
4778 2018-06-28 Pedro Alves <palves@redhat.com>
4779
4780 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4781 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4782
4783 2018-06-28 Tom Tromey <tom@tromey.com>
4784
4785 * coffread.c (coff_symfile_finish): Update.
4786 * xcoffread.c (xcoff_symfile_finish): Update.
4787 * elfread.c (elf_symfile_finish): Update.
4788 * symfile.h (dwarf2_free_objfile): Don't declare.
4789 * dwarf2read.c (_initialize_dwarf2_read): Use
4790 register_objfile_data_with_cleanup.
4791 (dwarf2_free_objfile): Now static. Change signature.
4792
4793 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4794
4795 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4796 option "-o" to add-symbol-file-load to add an offset to each
4797 section's load address.
4798 * symfile.c (set_objfile_default_section_offset): New function.
4799
4800 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4801
4802 * symfile.c (add_symbol_file_command): Make sure that sections
4803 with the same name are sorted in the same order.
4804
4805 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4806
4807 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4808 require the second argument. If omitted, load sections at the
4809 addresses specified in the file.
4810
4811 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4812
4813 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4814 (_initialize_symfile): Add option "-o" to symbol-file to add an
4815 offset to each section of the symbol file.
4816
4817 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4818
4819 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4820
4821 2018-06-27 Tom Tromey <tom@tromey.com>
4822
4823 * stack.c (_initialize_stack): Update "func" help text.
4824
4825 2018-06-27 Tom Tromey <tom@tromey.com>
4826
4827 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4828 std::vector.
4829 (unwind_infopy_str, pyuw_create_unwind_info)
4830 (unwind_infopy_add_saved_register, pyuw_sniffer)
4831 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4832 Update.
4833 (struct saved_reg): Add constructor.
4834 <value>: Now a gdbpy_ref<>.
4835
4836 2018-06-27 Tom Tromey <tom@tromey.com>
4837
4838 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4839
4840 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4841
4842 * gdb-gdb.py.in: Format using autopep8.
4843
4844 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4845
4846 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4847 (type_lookup_function): Recognize CORE_ADDR values.
4848
4849 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4850
4851 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4852 print tag_name.
4853
4854 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4855
4856 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4857 <__lt__>: Add.
4858
4859 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4860
4861 * gdb-gdb.py: Move to...
4862 * gdb-gdb.py.in: ... here.
4863 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4864 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4865 dependencies.
4866 (distclean): Remove gdb-gdb.py when cleaning.
4867 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4868 * configure: Re-generate.
4869
4870 2018-06-27 Pedro Alves <palves@redhat.com>
4871
4872 * proc-service.c (get_ps_regcache): New.
4873 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4874 (ps_lsetfpregs): Use it.
4875
4876 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4877
4878 PR gdb/21695
4879 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4880 (dwarf_decode_lines_1): Adjust.
4881
4882 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4883
4884 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4885 override.
4886 <info_proc>: Likewise.
4887
4888 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4889
4890 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4891 to windows_fetch_one_register, and only handle the case of
4892 fetching one register. Move the code that reloads the context
4893 and iterates over all registers if R is negative to...
4894 (windows_nat_target::fetch_registers): ... here.
4895 (do_windows_store_inferior_registers): Rename to
4896 windows_store_one_register, and only handle the case of storing
4897 one register. Move the code that handles the case where r is
4898 negative to...
4899 (windows_nat_target::store_registers) ... here.
4900
4901 2018-06-26 Tom Tromey <tom@tromey.com>
4902
4903 PR rust/22574:
4904 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4905 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4906 Update.
4907 (rust_internal_print_type): Add podata parameter.
4908 (rust_print_type): Update.
4909
4910 2018-06-26 Tom Tromey <tom@tromey.com>
4911
4912 * typeprint.h (struct print_offset_data) <update, finish,
4913 maybe_print_hole>: New methods.
4914 <indentation>: New constant.
4915 * typeprint.c (print_offset_data::indentation): Define.
4916 (print_offset_data::maybe_print_hole, print_offset_data::update)
4917 (print_offset_data::finish): Move from c-typeprint.c and rename.
4918 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4919 (print_spaces_filtered_with_print_options): Update.
4920 (c_print_type_union_field_offset, maybe_print_hole)
4921 (c_print_type_struct_field_offset): Move to typeprint.c and
4922 rename.
4923 (c_type_print_base_struct_union): Update.
4924
4925 2018-06-25 Pedro Alves <palves@redhat.com>
4926
4927 * gdbthread.h (thread_info_ref, delete_thread)
4928 (delete_thread_silent, first_thread_of_inferior)
4929 (any_thread_of_inferior, switch_to_thread)
4930 (enable_thread_stack_temporaries)
4931 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4932 (get_last_thread_stack_temporary)
4933 (value_in_thread_stack_temporaries, can_access_registers_thread):
4934 Spell out "struct thread_info" instead of just "thread_info".
4935 * inferior.h (notice_new_inferior): Likewise.
4936
4937 2018-06-25 Pedro Alves <palves@redhat.com>
4938
4939 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4940 pass thread_info pointer to delete_thread.
4941 (windows_nat_target::detach): Pass inferior pointer to
4942 detach_inferior.
4943 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4944 delete_thread.
4945 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4946 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4947 and pass a thread_info pointer to delete_thread.
4948 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4949 pass thread_info pointer to delete_thread.
4950 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4951 delete_thread_silent call.
4952 * procfs.c (procfs_target::detach): Pass inferior pointer to
4953 detach_inferior.
4954 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4955 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4956 delete_thread_silent call.
4957 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4958 pass thread_info pointer to delete_thread.
4959 (windows_nat_target::detach): Pass inferior pointer to
4960 delete_inferior.
4961
4962 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4963
4964 * regcache.c (readable_regcache::read_part): Fix asserts.
4965 (reg_buffer::raw_collect_part): New function.
4966 (regcache::write_part): Fix asserts.
4967 (reg_buffer::raw_supply_part): New function.
4968 (regcache::transfer_regset_register): New helper function.
4969 (regcache::transfer_regset): Call new functions.
4970 (regcache_supply_regset): Use gdb_byte*.
4971 (regcache::supply_regset): Likewise.
4972 (regcache_collect_regset): Likewise.
4973 (regcache::collect_regset): Likewise.
4974 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4975 (reg_buffer::raw_supply_part): Likewise.
4976 (regcache::transfer_regset_register): Likewise.
4977 (regcache::transfer_regset): Use gdb_byte*.
4978
4979 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4980
4981 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4982
4983 2018-06-21 Pedro Alves <palves@redhat.com>
4984
4985 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4986 instead of a ptid_t. All callers adjusted.
4987 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4988 adjusted.
4989 (print_ada_task_info, display_current_task_id, task_command_1):
4990 Adjust.
4991 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4992 inferior_thread.
4993 (breakpoint_kind): Adjust.
4994 (remove_breakpoints_pid): Rename to ...
4995 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4996 pointer. All callers adjusted.
4997 (bpstat_clear_actions): Use inferior_thread.
4998 (get_bpstat_thread): New.
4999 (bpstat_do_actions): Use it.
5000 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5001 to take a thread_info pointer. All callers adjusted.
5002 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5003 (breakpoint_re_set_thread): Use inferior_thread.
5004 * breakpoint.h (struct inferior): Forward declare.
5005 (bpstat_stop_status): Update.
5006 (remove_breakpoints_pid): Delete.
5007 (remove_breakpoints_inf): New.
5008 * bsd-uthread.c (bsd_uthread_target::wait)
5009 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5010 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5011 (maint_btrace_packet_history_cmd)
5012 (maint_btrace_clear_packet_history_cmd): Adjust.
5013 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5014 inferior_thread.
5015 * cli/cli-interp.c: Include "inferior.h".
5016 * common/refcounted-object.h (struct
5017 refcounted_object_ref_policy): New.
5018 * compile/compile-object-load.c: Include gdbthread.h.
5019 (store_regs): Use inferior_thread.
5020 * corelow.c (core_target::close): Use current_inferior.
5021 (core_target_open): Adjust to use first_thread_of_inferior and use
5022 the current inferior.
5023 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5024 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5025 <thread>: ... this new field. All references adjusted.
5026 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5027 Take a thread_info pointer instead of a ptid_t.
5028 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5029 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5030 thread_info pointer instead of a ptid_t.
5031 * elfread.c: Include "inferior.h".
5032 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5033 Use inferior_thread.
5034 * eval.c (evaluate_subexp): Likewise.
5035 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5036 inferior_thread.
5037 * gdb_proc_service.h (struct thread_info): Forward declare.
5038 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5039 <thread>: ... this new field. All references adjusted.
5040 * gdbarch.h, gdbarch.c: Regenerate.
5041 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5042 'thread' parameter. All implementations and callers adjusted.
5043 * gdbthread.h (thread_info) <set_running>: New method.
5044 (delete_thread, delete_thread_silent): Take a thread_info pointer
5045 instead of a ptid.
5046 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5047 (first_thread_of_process): Delete, replaced by ...
5048 (first_thread_of_inferior): ... this new function. All callers
5049 adjusted.
5050 (any_live_thread_of_process): Delete, replaced by ...
5051 (any_live_thread_of_inferior): ... this new function. All callers
5052 adjusted.
5053 (switch_to_thread, switch_to_no_thread): Declare.
5054 (is_executing): Delete.
5055 (enable_thread_stack_temporaries): Update comment.
5056 <enable_thread_stack_temporaries>: Take a thread_info pointer
5057 instead of a ptid_t. Incref the thread.
5058 <~enable_thread_stack_temporaries>: Decref the thread.
5059 <m_ptid>: Delete
5060 <m_thr>: New.
5061 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5062 (get_last_thread_stack_temporary)
5063 (value_in_thread_stack_temporaries, can_access_registers_thread):
5064 Take a thread_info pointer instead of a ptid_t. All callers
5065 adjusted.
5066 * infcall.c (get_call_return_value): Use inferior_thread.
5067 (run_inferior_call): Work with thread pointers instead of ptid_t.
5068 (call_function_by_hand_dummy): Work with thread pointers instead
5069 of ptid_t. Use thread_info_ref.
5070 * infcmd.c (proceed_thread_callback): Access thread's state
5071 directly.
5072 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5073 access thread's state directly.
5074 (continue_command): Use inferior_thread.
5075 (info_program_command): Use find_thread_ptid and access thread
5076 state directly.
5077 (proceed_after_attach_callback): Use thread state directly.
5078 (notice_new_inferior): Take a thread_info pointer instead of a
5079 ptid_t. All callers adjusted.
5080 (exit_inferior): Take an inferior pointer instead of a pid. All
5081 callers adjusted.
5082 (exit_inferior_silent): New.
5083 (detach_inferior): Delete.
5084 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5085 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5086 (detach_inferior_command, kill_inferior_command): Use
5087 find_inferior_id instead of valid_gdb_inferior_id and
5088 gdb_inferior_id_to_pid.
5089 (inferior_command): Use inferior and thread pointers.
5090 * inferior.h (struct thread_info): Forward declare.
5091 (notice_new_inferior): Take a thread_info pointer instead of a
5092 ptid_t. All callers adjusted.
5093 (detach_inferior): Delete declaration.
5094 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5095 instead of a pid. All callers adjusted.
5096 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5097 (valid_gdb_inferior_id): Delete.
5098 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5099 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5100 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5101 ...
5102 <inf>: ... this new field.
5103 <step_ptid>: Delete, replaced by ...
5104 <step_thread>: ... this new field.
5105 (get_displaced_stepping_state): Take an inferior pointer instead
5106 of a pid. All callers adjusted.
5107 (displaced_step_in_progress_any_inferior): Adjust.
5108 (displaced_step_in_progress_thread): Take a thread pointer instead
5109 of a ptid_t. All callers adjusted.
5110 (displaced_step_in_progress, add_displaced_stepping_state): Take
5111 an inferior pointer instead of a pid. All callers adjusted.
5112 (get_displaced_step_closure_by_addr): Adjust.
5113 (remove_displaced_stepping_state): Take an inferior pointer
5114 instead of a pid. All callers adjusted.
5115 (displaced_step_prepare_throw, displaced_step_prepare)
5116 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5117 All callers adjusted.
5118 (start_step_over): Adjust.
5119 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5120 displaced step queue.
5121 (do_target_resume): Adjust.
5122 (fetch_inferior_event): Use inferior_thread.
5123 (context_switch, get_inferior_stop_soon): Take an
5124 execution_control_state pointer instead of a ptid_t. All callers
5125 adjusted.
5126 (switch_to_thread_cleanup): Delete.
5127 (stop_all_threads): Use scoped_restore_current_thread.
5128 * inline-frame.c: Include "gdbthread.h".
5129 (inline_state) <inline_state>: Take a thread pointer instead of a
5130 ptid_t. All callers adjusted.
5131 <ptid>: Delete, replaced by ...
5132 <thread>: ... this new field.
5133 (find_inline_frame_state): Take a thread pointer instead of a
5134 ptid_t. All callers adjusted.
5135 (skip_inline_frames, step_into_inline_frame)
5136 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5137 pointer instead of a ptid_t. All callers adjusted.
5138 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5139 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5140 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5141 pointers directly.
5142 * linux-nat.c (get_detach_signal): Likewise.
5143 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5144 (thread_db_notice_clone): Adjust.
5145 (thread_db_find_new_threads_silently)
5146 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5147 a thread pointer instead of a ptid_t. All callers adjusted.
5148 * mi/mi-cmd-var.c: Include "inferior.h".
5149 (mi_cmd_var_update_iter): Update to use thread pointers.
5150 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5151 inferior directly.
5152 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5153 out to ...
5154 (mi_output_running): ... this new function.
5155 (mi_on_resume_1): Adjust to use it.
5156 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5157 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5158 directly.
5159 (interrupt_thread_callback): : Adjust to use thread and inferior
5160 pointers.
5161 * proc-service.c: Include "gdbthread.h".
5162 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5163 * progspace-and-thread.c: Include "inferior.h".
5164 * progspace.c: Include "inferior.h".
5165 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5166 hold a reference to an inferior_object.
5167 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5168 inferior_thread.
5169 * python/py-inferior.c (struct inferior_object): Give the type a
5170 tag name instead of a typedef.
5171 (python_on_normal_stop): No need to check if the current thread is
5172 listed.
5173 (inferior_to_inferior_object): Change return type to
5174 inferior_object. All callers adjusted.
5175 (find_thread_object): Delete, bits factored out to ...
5176 (thread_to_thread_object): ... this new function.
5177 * python/py-infthread.c (create_thread_object): Use
5178 inferior_to_inferior_object.
5179 (thpy_is_stopped): Use thread pointer directly.
5180 (gdbpy_selected_thread): Use inferior_thread.
5181 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5182 field, replaced with ...
5183 <thread>: ... this new field. All users adjusted.
5184 (btpy_insn_or_gap_new): Drop const.
5185 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5186 callers adjusted.
5187 * python/py-record.c: Include "gdbthread.h".
5188 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5189 a ptid_t. All callers adjusted.
5190 (gdbpy_current_recording): Use inferior_thread.
5191 * python/py-record.h (recpy_record_object) <ptid>: Delete
5192 field, replaced with ...
5193 <thread>: ... this new field. All users adjusted.
5194 (recpy_element_object) <ptid>: Delete
5195 field, replaced with ...
5196 <thread>: ... this new field. All users adjusted.
5197 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5198 a ptid_t. All callers adjusted.
5199 * python/py-threadevent.c: Include "gdbthread.h".
5200 (get_event_thread): Use thread_to_thread_object.
5201 * python/python-internal.h (struct inferior_object): Forward
5202 declare.
5203 (find_thread_object, find_inferior_object): Delete declarations.
5204 (thread_to_thread_object, inferior_to_inferior_object): New
5205 declarations.
5206 * record-btrace.c: Include "inferior.h".
5207 (require_btrace_thread): Use inferior_thread.
5208 (record_btrace_frame_sniffer)
5209 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5210 (get_thread_current_frame): Use scoped_restore_current_thread and
5211 switch_to_thread.
5212 (get_thread_current_frame): Use thread pointer directly.
5213 (record_btrace_replay_at_breakpoint): Use thread's inferior
5214 pointer directly.
5215 * record-full.c: Include "inferior.h".
5216 * regcache.c: Include "gdbthread.h".
5217 (get_thread_arch_regcache): Use the inferior's address space
5218 directly.
5219 (get_thread_regcache, registers_changed_thread): New.
5220 * regcache.h (get_thread_regcache(thread_info *thread)): New
5221 overload.
5222 (registers_changed_thread): New.
5223 (remote_target) <remote_detach_1>: Swap order of parameters.
5224 (remote_add_thread): <remote_add_thread>: Return the new thread.
5225 (get_remote_thread_info(ptid_t)): New overload.
5226 (remote_target::remote_notice_new_inferior): Use thread pointers
5227 directly.
5228 (remote_target::process_initial_stop_replies): Use
5229 thread_info::set_running.
5230 (remote_target::remote_detach_1, remote_target::detach)
5231 (extended_remote_target::detach): Adjust.
5232 * stack.c (frame_show_address): Use inferior_thread.
5233 * target-debug.h (target_debug_print_thread_info_pp): New.
5234 * target-delegates.c: Regenerate.
5235 * target.c (default_thread_address_space): Delete.
5236 (memory_xfer_partial_1): Use current_inferior.
5237 (target_detach): Use current_inferior.
5238 (target_thread_address_space): Delete.
5239 (generic_mourn_inferior): Use current_inferior.
5240 * target.h (struct target_ops) <thread_address_space>: Delete.
5241 (target_thread_address_space): Delete.
5242 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5243 pointers directly.
5244 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5245 thread pointer instead of a ptid_t. Adjust all callers.
5246 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5247 (first_thread_of_process): Delete, replaced by ...
5248 (first_thread_of_inferior): ... this new function. All callers
5249 adjusted.
5250 (any_thread_of_process): Rename to ...
5251 (any_thread_of_inferior): ... this, and take an inferior pointer.
5252 (any_live_thread_of_process): Rename to ...
5253 (any_live_thread_of_inferior): ... this, and take an inferior
5254 pointer.
5255 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5256 (value_in_thread_stack_temporaries)
5257 (get_last_thread_stack_temporary): Take a thread pointer instead
5258 of a ptid_t. Adjust all callers.
5259 (thread_info::set_running): New.
5260 (validate_registers_access): Use inferior_thread.
5261 (can_access_registers_ptid): Rename to ...
5262 (can_access_registers_thread): ... this, and take a thread
5263 pointer.
5264 (print_thread_info_1): Adjust to compare thread pointers instead
5265 of ptids.
5266 (switch_to_no_thread, switch_to_thread): Make extern.
5267 (scoped_restore_current_thread::~scoped_restore_current_thread):
5268 Use m_thread pointer directly.
5269 (scoped_restore_current_thread::scoped_restore_current_thread):
5270 Use inferior_thread.
5271 (thread_command): Use thread pointer directly.
5272 (thread_num_make_value_helper): Use inferior_thread.
5273 * top.c (execute_command): Use inferior_thread.
5274 * tui/tui-interp.c: Include "inferior.h".
5275 * varobj.c (varobj_create): Use inferior_thread.
5276 (value_of_root_1): Use find_thread_global_id instead of
5277 global_thread_id_to_ptid.
5278
5279 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5280
5281 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5282 possible.
5283 (regcache::write_part): Likewise.
5284 (readable_regcache::cooked_read_part): Update comment.
5285 (readable_regcache::cooked_write_part): Likewise.
5286 * regcache.h: (readable_regcache::read_part): Likewise.
5287 (regcache::write_part): Likewise.
5288
5289 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5290 Dirk Schubert <dirk.schubert@arm.com>
5291
5292 * aarch64-linux-nat.c (post_attach): New.
5293 (aarch64_linux_nat_target::post_attach): Override post_attach to
5294 record the number of hardware debug registers.
5295
5296 2018-06-20 Tom Tromey <tom@tromey.com>
5297
5298 * python/py-param.c (add_setshow_generic): Make parameters const.
5299 (parmpy_init): Update.
5300
5301 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5302
5303 * regcache.h (regcache_cooked_read_ftype): Rename to...
5304 (register_read_ftype): ...this, change type to function_view.
5305 (class reg_buffer) <save>: Remove src parameter.
5306 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5307 parameter non-const in first overload. Remove src parameter in
5308 second overload.
5309 * regcache.c (do_cooked_read): Remove.
5310 (readonly_detached_regcache::readonly_detached_regcache): Make
5311 parameter non-const, adjust call to other constructor.
5312 (reg_buffer::save): Remove src parameter.
5313 * frame.c (do_frame_register_read): Remove.
5314 (frame_save_as_regcache): Use lambda function.
5315 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5316 parameter to ppu2spu_data *.
5317 (ppu2spu_sniffer): Use lambda function.
5318
5319 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5320
5321 * record-full.c (record_full_target::insert_breakpoint): Remove
5322 "struct" keyword, add const.
5323
5324 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5325
5326 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5327 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5328 * configure.ac: Remove AC_PREREQ, add missing quoting.
5329 * gnulib/configure.ac: Modernize usage of
5330 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5331 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5332 (AUTOMAKE_VERSION): Bump to 1.15.1.
5333 * configure: Re-generate.
5334 * config.in: Re-generate.
5335 * aclocal.m4: Re-generate.
5336 * gnulib/aclocal.m4: Re-generate.
5337 * gnulib/config.in: Re-generate.
5338 * gnulib/configure: Re-generate.
5339 * gnulib/import/Makefile.in: Re-generate.
5340
5341 2018-06-19 Pedro Alves <palves@redhat.com>
5342
5343 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5344 (lookup_minimal_symbol_by_pc_section): ... here with
5345 gdb_assert_not_reached added.
5346
5347 2018-06-19 Pedro Alves <palves@redhat.com>
5348
5349 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5350 parameter with a block parameter. Compare location's block symbol
5351 with the frame's block instead of addresses.
5352 (skip_inline_frames): Pass the current block instead of the
5353 frame's address. Break out as soon as we determine the frame
5354 should not be skipped.
5355
5356 2018-06-18 Tom Tromey <tom@tromey.com>
5357
5358 * solib-aix.c (solib_aix_get_section_offsets): Return
5359 unique_xmalloc_ptr.
5360 (solib_aix_solib_create_inferior_hook): Update.
5361
5362 2018-06-18 Tom Tromey <tom@tromey.com>
5363
5364 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5365
5366 2018-06-18 Tom Tromey <tom@tromey.com>
5367
5368 * solib-frv.c (frv_relocate_main_executable): Use
5369 unique_xmalloc_ptr.
5370 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5371 unique_xmalloc_ptr.
5372
5373 2018-06-18 Tom Tromey <tom@tromey.com>
5374
5375 * objfiles.h (inhibit_section_map_updates): Update.
5376 (resume_section_map_updates, resume_section_map_updates_cleanup):
5377 Remove.
5378 * solib-svr4.c (svr4_handle_solib_event): Update.
5379 * objfiles.c (inhibit_section_map_updates): Return
5380 scoped_restore_tmpl<int>.
5381 (resume_section_map_updates, resume_section_map_updates_cleanup):
5382 Remove.
5383
5384 2018-06-18 Tom Tromey <tom@tromey.com>
5385
5386 * valprint.h (read_string): Update.
5387 * valprint.c (read_string): Change type of "buffer".
5388 (val_print_string): Update.
5389 * python/py-value.c (valpy_string): Update.
5390 * language.h (struct language_defn) <la_get_string>: Change
5391 type of "buffer".
5392 (default_get_string, c_get_string): Update.
5393 * language.c (default_get_string): Change type of "buffer".
5394 * guile/scm-value.c (gdbscm_value_to_string): Update.
5395 * c-lang.c (c_get_string): Change type of "buffer".
5396
5397 2018-06-18 Tom Tromey <tom@tromey.com>
5398
5399 * ser-mingw.c (struct pipe_state_destroyer): New.
5400 (pipe_state_up): New typedef.
5401 (cleanup_pipe_state): Remove.
5402 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5403
5404 2018-06-18 Tom Tromey <tom@tromey.com>
5405
5406 * rust-lang.h (rust_yyerror): Don't declare.
5407 * rust-lang.c (rust_language_defn): Update.
5408 * rust-exp.y (yyerror): Now static.
5409 * parse.c (parse_exp_in_context_1): Update.
5410 * p-lang.h (p_yyerror): Don't declare.
5411 * p-lang.c (p_language_defn): Update.
5412 * p-exp.y (yyerror): Now static.
5413 * opencl-lang.c (opencl_language_defn): Update.
5414 * objc-lang.c (objc_language_defn): Update.
5415 * m2-lang.h (m2_yyerror): Don't declare.
5416 * m2-lang.c (m2_language_defn): Update.
5417 * m2-exp.y (yyerror): Now static.
5418 * language.h (struct language_defn) <la_error>: Remove.
5419 * language.c (unk_lang_error): Remove.
5420 (unknown_language_defn, auto_language_defn): Remove.
5421 * go-lang.h (go_yyerror): Don't declare.
5422 * go-lang.c (go_language_defn): Update.
5423 * go-exp.y (yyerror): Now static.
5424 * f-lang.h (f_yyerror): Don't declare.
5425 * f-lang.c (f_language_defn): Update.
5426 * f-exp.y (yyerror): Now static.
5427 * d-lang.h (d_yyerror): Don't declare.
5428 * d-lang.c (d_language_defn): Update.
5429 * d-exp.y (yyerror): Now static.
5430 * c-lang.h (c_yyerror): Don't declare.
5431 * c-lang.c (c_language_defn, cplus_language_defn)
5432 (asm_language_defn, minimal_language_defn): Update.
5433 * c-exp.y (yyerror): Now static.
5434 * ada-lang.h (ada_yyerror): Don't declare.
5435 * ada-lang.c (ada_language_defn): Update.
5436 * ada-exp.y (yyerror): Now static.
5437
5438 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5439
5440 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5441 (store_sveregs_to_thread): Likewise.
5442 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5443 (aarch64_linux_store_inferior_registers): Likewise.
5444 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5445 function.
5446 (aarch64_sve_regs_copy_to_regcache): Likewise.
5447 (aarch64_sve_regs_copy_from_regcache): Likewise.
5448 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5449 declaration.
5450 (aarch64_sve_regs_copy_to_regcache): Likewise.
5451 (aarch64_sve_regs_copy_from_regcache): Likewise.
5452 (sve_context): Structure from Linux headers.
5453 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5454 (SVE_SIG_ZREG_SIZE): Likewise.
5455 (SVE_SIG_PREG_SIZE): Likewise.
5456 (SVE_SIG_FFR_SIZE): Likewise.
5457 (SVE_SIG_REGS_OFFSET): Likewise.
5458 (SVE_SIG_ZREGS_OFFSET): Likewise.
5459 (SVE_SIG_ZREG_OFFSET): Likewise.
5460 (SVE_SIG_ZREGS_SIZE): Likewise.
5461 (SVE_SIG_PREGS_OFFSET): Likewise.
5462 (SVE_SIG_PREG_OFFSET): Likewise.
5463 (SVE_SIG_PREGS_SIZE): Likewise.
5464 (SVE_SIG_FFR_OFFSET): Likewise.
5465 (SVE_SIG_REGS_SIZE): Likewise.
5466 (SVE_SIG_CONTEXT_SIZE): Likewise.
5467 (SVE_PT_REGS_MASK): Likewise.
5468 (SVE_PT_REGS_FPSIMD): Likewise.
5469 (SVE_PT_REGS_SVE): Likewise.
5470 (SVE_PT_VL_INHERIT): Likewise.
5471 (SVE_PT_VL_ONEXEC): Likewise.
5472 (SVE_PT_REGS_OFFSET): Likewise.
5473 (SVE_PT_FPSIMD_OFFSET): Likewise.
5474 (SVE_PT_FPSIMD_SIZE): Likewise.
5475 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5476 (SVE_PT_SVE_PREG_SIZE): Likewise.
5477 (SVE_PT_SVE_FFR_SIZE): Likewise.
5478 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5479 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5480 (__SVE_SIG_TO_PT): Likewise.
5481 (SVE_PT_SVE_OFFSET): Likewise.
5482 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5483 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5484 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5485 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5486 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5487 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5488 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5489 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5490 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5491 (SVE_PT_SVE_SIZE): Likewise.
5492 (SVE_PT_SIZE): Likewise.
5493 (HAS_SVE_STATE): New define.
5494
5495 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5496
5497 * nat/aarch64-sve-linux-sigcontext.h: New file.
5498 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5499 new files.
5500 (SVE_VQ_MIN): Likewise.
5501 (SVE_VQ_MAX): Likewise.
5502 (SVE_VL_MIN): Likewise.
5503 (SVE_VL_MAX): Likewise.
5504 (SVE_NUM_ZREGS): Likewise.
5505 (SVE_NUM_PREGS): Likewise.
5506 (sve_vl_valid): Likewise.
5507 (struct user_sve_header): Likewise.
5508
5509 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5510 Richard Bunt <Richard.Bunt@arm.com>
5511
5512 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5513 was requested by GDB.
5514
5515 2018-06-15 Tom de Vries <tdevries@suse.de>
5516
5517 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5518
5519 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5520
5521 * gnulib/update-gnulib.sh: Print expected versions of
5522 autoconf/aclocal.
5523
5524 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5525
5526 * arch-utils.c (default_type_align): Use type_length_units.
5527 * gdbtypes.c (type_align): Use type_length_units.
5528
5529 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5530
5531 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5532 of 'define' command.
5533
5534 2018-06-14 Tom de Vries <tdevries@suse.de>
5535
5536 PR cli/22573
5537 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5538 get_no_prettyformat_print_options.
5539
5540 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5541
5542 * sparc-nat.h: Include target.h.
5543 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5544 <fetch_registers>: Remove this argument in function call.
5545 <store_registers>: Remove this argument in function call, remove
5546 extra semicolon.
5547 <low_forget_process>: Call sparc64_forget_process instead of
5548 sparc_forget_process.
5549
5550 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5551
5552 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5553 (procfs_target::make_corefile_notes): Adjust to new
5554 target_read_alloc return type.
5555
5556 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5557 Stephen Roberts <stephen.roberts@arm.com>
5558
5559 PR gdb/22882
5560 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5561 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5562 Move should_notify_stop local into more inner scope.
5563
5564 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5565 Stephen Roberts <stephen.roberts@arm.com>
5566
5567 PR gdb/22882
5568 * infrun.c (resume_1): Add call to mark_async_event_handler.
5569
5570 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5571
5572 * infrun.c (do_target_wait): Change old version of $pc printed.
5573
5574 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5575
5576 * dwarf2read.c (read_index_from_section): Rename to...
5577 (read_gdb_index_from_section): ... this, update all callers.
5578 (dwarf2_read_index): Rename to...
5579 (dwarf2_read_gdb_index): ... this, update all callers.
5580
5581 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5582
5583 * gdb/hppa-linux-nat.c
5584 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5585 hppa_linux_nat_target::fetch_registers.
5586
5587 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5588
5589 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5590 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5591 (AARCH64_DWARF_SVE_FFR): Likewise.
5592 (AARCH64_DWARF_SVE_P0): Likewise.
5593 (AARCH64_DWARF_SVE_Z0): Likewise.
5594
5595 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5596
5597 * common/common-regcache.h (raw_compare): New function.
5598 * regcache.c (regcache::raw_compare): Likewise.
5599 * regcache.h (regcache::raw_compare): New declaration.
5600
5601 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5602
5603 * common/common-regcache.h (reg_buffer_common): New structure.
5604 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5605 (reg_buffer::raw_supply): Likewise.
5606 (reg_buffer::raw_supply_integer): Likewise.
5607 (reg_buffer::raw_supply_zeroed): Likewise.
5608 (reg_buffer::raw_collect): Likewise.
5609 (reg_buffer::raw_collect_integer): Likewise.
5610 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5611 (reg_buffer::raw_supply): Likewise.
5612 (reg_buffer::raw_supply_integer): Likewise.
5613 (reg_buffer::raw_supply_zeroed): Likewise.
5614 (reg_buffer::raw_collect): Likewise.
5615 (reg_buffer::raw_collect_integer): Likewise.
5616
5617 2018-06-10 Tom Tromey <tom@tromey.com>
5618
5619 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5620 (class remote_state) <stop_reply_queue>: Now std::vector.
5621 (remote_state::~remote_state)
5622 (remote_target::stop_reply_queue_length): Update.
5623 (struct queue_iter_param, remove_child_of_pending_fork)
5624 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5625 (check_pending_event_prevents_wildcard_vcont_callback)
5626 (remove_stop_reply_for_inferior)
5627 (remove_stop_reply_of_remote_state)
5628 (remote_notif_remove_once_on_match)
5629 (stop_reply_match_ptid_and_ws)
5630 (remote_kill_child_of_pending_fork): Remove.
5631 (remote_target::remove_new_fork_children)
5632 (remote_target::check_pending_events_prevent_wildcard_vcont)
5633 (remote_target::discard_pending_stop_replies)
5634 (remote_target::discard_pending_stop_replies_in_queue)
5635 (remote_target::remote_notif_remove_queued_reply)
5636 (remote_target::queued_stop_reply)
5637 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5638 (remote_target::wait, remote_target::kill_new_fork_children)
5639 (remote_target::async): Update.
5640
5641 2018-06-10 Tom Tromey <tom@tromey.com>
5642
5643 * record-full.c (record_full_arch_list_cleanups): Remove.
5644 (record_full_message): Use try/catch.
5645 (record_full_wait_cleanups): Remove.
5646 (record_full_wait_1): Use try/catch.
5647 (record_full_restore): Likewise.
5648
5649 2018-06-10 Tom Tromey <tom@tromey.com>
5650
5651 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5652 declare VEC. Add constructor.
5653 <in_target_beneath>: Now bool.
5654 (record_full_breakpoints): Now a std::vector, static.
5655 (record_full_sync_record_breakpoints)
5656 (record_full_init_record_breakpoints)
5657 (record_full_target::insert_breakpoint)
5658 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5659
5660 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5661
5662 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5663 * serial.c (serial_interface_lookup): Remove struct keyword.
5664
5665 2018-06-10 Tom Tromey <tom@tromey.com>
5666
5667 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5668 method.
5669 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5670 a method.
5671 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5672 method.
5673 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5674 "beneath" as a method.
5675 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5676 Use "beneath" as a method.
5677
5678 2018-06-10 Tom Tromey <tom@tromey.com>
5679
5680 * tracefile.c (struct trace_file_writer_deleter): New.
5681 <operator()>: Rename from trace_file_writer_xfree.
5682 (trace_file_writer_up): New typedef.
5683 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5684
5685 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5686
5687 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5688 <m_registers, m_register_status>: Change type to
5689 std::unique_ptr.
5690 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5691 XCNEWVEC.
5692
5693 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5694
5695 * common/common-regcache.h (enum register_status): Add
5696 underlying type "signed char".
5697 * regcache.h (reg_buffer) <m_register_status>: Change type to
5698 register_status *.
5699 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5700 register_status instead of signed char.
5701 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5702 (reg_buffer::get_register_status): Remove cast.
5703 (readable_regcache::raw_read): Remove cast.
5704 (readable_regcache::cooked_read): Remove cast.
5705
5706 2018-06-09 Tom Tromey <tom@tromey.com>
5707
5708 * source.c (reverse_search_command, forward_search_command): Use
5709 scoped_fd.
5710
5711 2018-06-09 Tom Tromey <tom@tromey.com>
5712
5713 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5714 (serial_ops_list): Now static, std::vector.
5715 (serial_interface_lookup, serial_add_interface): Update.
5716
5717 2018-06-09 Tom Tromey <tom@tromey.com>
5718
5719 * dwarf2read.c (process_cu_includes): Update.
5720 (process_full_comp_unit): Update.
5721 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5722 std::vector.
5723
5724 2018-06-08 Paul Koning <paul_koning@dell.com>
5725
5726 PR gdb/23252
5727
5728 * python/python.c (do_start_initialization):
5729 Avoid call to internal Python API.
5730 (init__gdb_module): New function.
5731
5732 2018-06-08 Gary Benson <gbenson@redhat.com>
5733
5734 * linux-thread-db.c (valprint.h): New include.
5735 (struct check_thread_db_info): New structure.
5736 (check_thread_db_on_load, tdb_testinfo): New static globals.
5737 (check_thread_db, check_thread_db_callback): New functions.
5738 (try_thread_db_load_1): Run integrity checks if requested.
5739 (maintenance_check_libthread_db): New function.
5740 (_initialize_thread_db): Register "maint check libthread-db"
5741 and "maint set/show check-libthread-db".
5742 * NEWS: Mention the above new commands.
5743
5744 2018-06-08 Tom Tromey <tom@tromey.com>
5745
5746 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5747 now a method.
5748
5749 2018-06-08 Tom Tromey <tom@tromey.com>
5750
5751 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5752
5753 2018-06-08 Tom Tromey <tom@tromey.com>
5754
5755 * common/btrace-common.h (struct btrace_data): Add constructor,
5756 destructor, move assignment operator.
5757 <empty, clear, fini>: New methods.
5758 <format>: Initialize.
5759 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5760 (btrace_data_empty): Don't declare.
5761 * common/btrace-common.c (btrace_data_init): Remove.
5762 (btrace_data::fini): Rename from btrace_data_fini.
5763 (btrace_data::empty): Rename from btrace_data_empty.
5764 (btrace_data::clear): Rename from btrace_data_clear. Return
5765 bool.
5766 * btrace.h (make_cleanup_btrace_data): Don't declare.
5767 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5768 (parse_xml_btrace): Update.
5769 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5770 (maint_btrace_clear_packet_history_cmd): Update.
5771
5772 2018-06-07 Pedro Alves <palves@redhat.com>
5773
5774 * target.h (target_ops) <beneath>: Now a method. All references
5775 updated.
5776 (class target_stack): New.
5777 * target.c (g_target_stack): New.
5778 (g_current_top_target): Delete.
5779 (current_top_target): Get the top target out of g_target_stack.
5780 (target_stack::push, target_stack::unpush): New.
5781 (push_target, unpush_target): Reimplement.
5782 (target_is_pushed): Reimplement in terms of g_target_stack.
5783 (target_ops::beneath, target_stack::find_beneath): New.
5784
5785 2018-06-07 Pedro Alves <palves@redhat.com>
5786
5787 * target.h (find_target_beneath): Delete declaration.
5788 * target.c (find_target_beneath): Delete definition.
5789 * aix-thread.c: All callers of find_target_beneath adjusted to
5790 call target_ops::beneath instead.
5791 * bsd-uthread.c: Likewise.
5792 * linux-thread-db.c: Likewise.
5793 * ravenscar-thread.c: Likewise.
5794 * sol-thread.c: Likewise.
5795 * spu-multiarch.c: Likewise.
5796
5797 2018-06-07 Pedro Alves <palves@redhat.com>
5798
5799 * target.h (target_ops) <beneath>: Now a method. All references
5800 updated.
5801 (target_ops) <m_beneath>: New.
5802 * target.c (target_ops::beneath): New.
5803 * corelow.c: Adjust all references to target_ops::beneath.
5804 * linux-thread-db.c: Likewise.
5805 * make-target-delegates: Likewise.
5806 * record-btrace.c: Likewise.
5807 * record-full.c: Likewise.
5808 * remote.c: Likewise.
5809 * target.c: Likewise.
5810 * target-delegates.c: Regenerate.
5811
5812 2018-06-07 Pedro Alves <palves@redhat.com>
5813
5814 * target.h (target_stack): Delete.
5815 (current_top_target): Declare function.
5816 * target.c (target_stack): Delete.
5817 (g_current_top_target): New.
5818 (current_top_target): New function.
5819 * auxv.c: Use current_top_target instead of target_stack
5820 throughout.
5821 * avr-tdep.c: Likewise.
5822 * breakpoint.c: Likewise.
5823 * corefile.c: Likewise.
5824 * elfread.c: Likewise.
5825 * eval.c: Likewise.
5826 * exceptions.c: Likewise.
5827 * frame.c: Likewise.
5828 * gdbarch-selftests.c: Likewise.
5829 * gnu-v3-abi.c: Likewise.
5830 * ia64-tdep.c: Likewise.
5831 * ia64-vms-tdep.c: Likewise.
5832 * infcall.c: Likewise.
5833 * infcmd.c: Likewise.
5834 * infrun.c: Likewise.
5835 * linespec.c: Likewise.
5836 * linux-tdep.c: Likewise.
5837 * minsyms.c: Likewise.
5838 * ppc-linux-nat.c: Likewise.
5839 * ppc-linux-tdep.c: Likewise.
5840 * procfs.c: Likewise.
5841 * regcache.c: Likewise.
5842 * remote.c: Likewise.
5843 * rs6000-tdep.c: Likewise.
5844 * s390-linux-nat.c: Likewise.
5845 * s390-tdep.c: Likewise.
5846 * solib-aix.c: Likewise.
5847 * solib-darwin.c: Likewise.
5848 * solib-dsbt.c: Likewise.
5849 * solib-spu.c: Likewise.
5850 * solib-svr4.c: Likewise.
5851 * solib-target.c: Likewise.
5852 * sparc-tdep.c: Likewise.
5853 * sparc64-tdep.c: Likewise.
5854 * spu-tdep.c: Likewise.
5855 * symfile.c: Likewise.
5856 * symtab.c: Likewise.
5857 * target-descriptions.c: Likewise.
5858 * target-memory.c: Likewise.
5859 * target.c: Likewise.
5860 * target.h: Likewise.
5861 * tracefile-tfile.c: Likewise.
5862 * tracepoint.c: Likewise.
5863 * valops.c: Likewise.
5864 * valprint.c: Likewise.
5865 * value.c: Likewise.
5866 * windows-tdep.c: Likewise.
5867 * mi/mi-main.c: Likewise.
5868
5869 2018-06-07 Tom Tromey <tom@tromey.com>
5870
5871 * valprint.h (build_address_symbolic): Declare.
5872 * printcmd.c (print_address_symbolic): Update.
5873 (build_address_symbolic): Change "name" and "filename" to
5874 std::string.
5875 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5876 Update.
5877 * defs.h (build_address_symbolic): Remove declaration.
5878
5879 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5880
5881 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5882 (aarch64_vnv_type): Add function.
5883 (aarch64_pseudo_register_name): Add V regs for SVE.
5884 (aarch64_pseudo_register_type): Likewise.
5885 (aarch64_pseudo_register_reggroup_p): Likewise.
5886 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5887 (aarch64_pseudo_read_value): Add V regs for SVE.
5888 (aarch64_pseudo_write_2): Use V0 offset for SVE
5889 (aarch64_pseudo_write): Add V regs for SVE.
5890 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5891
5892 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5893
5894 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5895 (sve_vl_from_vq): Likewise.
5896
5897 2018-06-05 Tom Tromey <tom@tromey.com>
5898
5899 * cli/cli-cmds.c (show_version): Update.
5900 * top.c (print_gdb_version): Add "interactive" parameter.
5901 Update.
5902 * main.c (captured_main_1): Update.
5903 * top.h (print_gdb_version): Add "interactive" parameter and a
5904 comment.
5905
5906 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5907
5908 * common/enum-flags.h: Add trailing semicolon to example in
5909 comment.
5910
5911 2018-06-05 Tom Tromey <tom@tromey.com>
5912
5913 PR cli/12326:
5914 * NEWS: Add entry about pager.
5915 * utils.c (pagination_disabled_for_command): New global.
5916 (prompt_for_continue): Allow "c" response to prompt.
5917 (reinitialize_more_filter): Clear
5918 pagination_disabled_for_command.
5919 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5920
5921 2018-06-04 Tom Tromey <tom@tromey.com>
5922
5923 * ada-lang.h (ada_lookup_symbol_list): Update.
5924 * ada-lang.c (resolve_subexp): Update.
5925 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5926 parameter.
5927 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5928 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5929 results parameter to std::vector.
5930 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5931 Update.
5932 * ada-exp.y (block_lookup): Update.
5933 (select_possible_type_sym): Change type of syms. Remove nsyms
5934 parameter.
5935 (write_var_or_type, write_name_assoc): Update.
5936
5937 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5938
5939 * windows-nat.c (windows_nat_target::xfer_partial): Return
5940 TARGET_XFER_E_IO if we need to delegate to the target beneath
5941 but BENEATH is NULL.
5942
5943 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5944
5945 * Makefile.in (config.status): Add configure.nat as a
5946 dependency.
5947
5948 2018-06-04 Tom Tromey <tom@tromey.com>
5949
5950 * cp-name-parser.y (cpname_state): Add method declarations.
5951 (HANDLE_QUAL): Update.
5952 (cpname_state::d_grab, cpname_state::fill_comp)
5953 (cpname_state::make_operator, cpname_state::make_dtor)
5954 (cpname_state::make_builtin_type, cpname_state::make_name)
5955 (cpname_state::d_qualify, cpname_state::d_int_type)
5956 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5957 (%union): Move earlier.
5958
5959 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5960
5961 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5962
5963 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5964
5965 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5966 (aarch64_pseudo_write_1): Likewise.
5967 (aarch64_pseudo_read_value): Use helper.
5968 (aarch64_pseudo_write): Likewise.
5969
5970 2018-06-04 Pedro Alves <palves@redhat.com>
5971
5972 * darwin-nat.c (darwin_ops): Delete.
5973 (darwin_attach_pid): Use get_native_target.
5974
5975 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5976
5977 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5978 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5979
5980 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5981
5982 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5983 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5984 (aarch64_gdbarch_init): Check for SVE.
5985 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5986
5987 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5988
5989 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5990 * aarch64-tdep.h (aarch64_read_description): Likewise.
5991 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5992 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5993 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5994 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5995 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5996
5997 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5998
5999 * value.c (value_fetch_lazy_bitfield): New.
6000 (value_fetch_lazy_memory): New.
6001 (value_fetch_lazy_register): New.
6002 (value_fetch_lazy): Factor out to smaller functions.
6003
6004 2018-06-01 Tom Tromey <tom@tromey.com>
6005
6006 * cp-name-parser.y (backslashable, represented): Now const.
6007
6008 2018-06-01 Tom Tromey <tom@tromey.com>
6009
6010 * cp-name-parser.y: Include parser-defs.h.
6011 (parser_fprintf): Remove declaration.
6012
6013 2018-06-01 Tom Tromey <tom@tromey.com>
6014
6015 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6016 %parse-param.
6017 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6018 (global_result): Remove globals.
6019 (struct cpname_state): New.
6020 (yyparse): Don't declare.
6021 (yylex, yyerror): Move declarations after %union.
6022 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6023 (make_name): Add state parameter.
6024 Update all callers.
6025 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6026 parameter.
6027 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6028 Update.
6029 (yylex): Add lvalp, state parameters.
6030 (yyerror): Add state parameter.
6031 (cp_demangled_name_to_comp): Update.
6032
6033 2018-06-01 Tom Tromey <tom@tromey.com>
6034
6035 * cp-name-parser.y (parser_fprintf): Declare.
6036 (GDB_YY_REMAP_PREFIX): Define.
6037 Include yy-remap.h. Don't redefine yy* identifiers.
6038
6039 2018-06-01 Tom Tromey <tom@tromey.com>
6040
6041 * python/py-type.c (typy_legacy_template_argument): Update.
6042 * cp-support.h (cp_demangled_name_to_comp): Update.
6043 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6044 parameter to be a "std::string *".
6045 (main): Update.
6046
6047 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6048
6049 * ada-lex.l: Include "diagnostics.h" instead of
6050 "common/diagnostics.h".
6051 * unittests/environ-selftests.c: Likewise.
6052 * common/diagnostics.h: Moved to ../include.
6053
6054 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6055
6056 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6057 to language_mode_manual while calling breakpoint_re_set_one.
6058
6059 2018-06-01 Tom Tromey <tom@tromey.com>
6060
6061 * valops.c (value_cast_structs, destructor_name_p): Update.
6062 * symtab.c (gdb_mangle_name): Update.
6063 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6064 Update.
6065 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6066 (pascal_object_print_value_fields, pascal_object_print_value):
6067 Update.
6068 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6069 * linespec.c (find_methods): Update.
6070 * gdbtypes.h (type_name_no_tag): Remove.
6071 (type_name_or_error): Rename from type_name_no_tag_or_error.
6072 * gdbtypes.c (type_name_no_tag): Remove.
6073 (type_name_or_error): Rename from type_name_no_tag_or_error.
6074 (lookup_struct_elt_type, check_typedef): Update.
6075 * expprint.c (print_subexp_standard): Update.
6076 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6077 * d-namespace.c (d_lookup_nested_symbol): Update.
6078 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6079 (cp_print_class_member): Update.
6080 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6081 * completer.c (add_struct_fields): Update.
6082 * c-typeprint.c (cp_type_print_derivation_info)
6083 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6084 Update.
6085 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6086 (ada_prefer_type, ada_is_exception_sym): Update.
6087
6088 2018-06-01 Tom Tromey <tom@tromey.com>
6089
6090 * valops.c (enum_constant_from_type, value_namespace_elt)
6091 (value_maybe_namespace_elt): Update.
6092 * valarith.c (find_size_for_pointer_math): Update.
6093 * target-descriptions.c (make_gdb_type): Update.
6094 * symmisc.c (print_symbol): Update.
6095 * stabsread.c (define_symbol, read_type)
6096 (complain_about_struct_wipeout, add_undefined_type)
6097 (cleanup_undefined_types_1): Update.
6098 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6099 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6100 (rust_internal_print_type, rust_composite_type)
6101 (rust_evaluate_funcall, rust_evaluate_subexp)
6102 (rust_inclusive_range_type_p): Update.
6103 * python/py-type.c (typy_get_tag): Update.
6104 * p-typeprint.c (pascal_type_print_base): Update.
6105 * mdebugread.c (parse_symbol, parse_type): Update.
6106 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6107 Update.
6108 * guile/scm-type.c (gdbscm_type_tag): Update.
6109 * go-lang.c (sixg_string_p): Update.
6110 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6111 Update.
6112 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6113 (TYPE_TAG_NAME): Remove.
6114 * gdbtypes.c (type_name_no_tag): Simplify.
6115 (check_typedef, check_types_equal, recursive_dump_type)
6116 (copy_type_recursive, arch_composite_type): Update.
6117 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6118 in summary mode when needed.
6119 * eval.c (evaluate_funcall): Update.
6120 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6121 (process_structure_scope, read_enumeration_type)
6122 (read_namespace_type, read_module_type, determine_prefix): Update.
6123 * cp-support.c (inspect_type): Update.
6124 * coffread.c (process_coff_symbol, decode_base_type): Update.
6125 * c-varobj.c (c_is_path_expr_parent): Update.
6126 * c-typeprint.c (c_type_print_base_struct_union): Update.
6127 (c_type_print_base_1): Update. Print struct/class/union/enum in
6128 summary when using C language.
6129 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6130 (gen_maybe_namespace_elt): Update.
6131 * ada-lang.c (ada_type_name): Simplify.
6132 (empty_record, ada_template_to_fixed_record_type_1)
6133 (template_to_static_fixed_type)
6134 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6135
6136 2018-06-01 Tom Tromey <tom@tromey.com>
6137
6138 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6139 c_print_type.
6140 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6141 (c_print_type): Update.
6142 (c_print_type): New overload.
6143 (c_type_print_varspec_prefix, c_type_print_args)
6144 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6145 (c_type_print_base_struct_union, c_type_print_base_1)
6146 (cp_type_print_method_args): Add "language" parameter.
6147 (c_type_print_base): Update.
6148 * c-lang.h (c_print_type): Add new overload.
6149
6150 2018-06-01 Tom Tromey <tom@tromey.com>
6151
6152 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6153 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6154
6155 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6156
6157 * aarch64-tdep.c (aarch64_sve_register_names): New const
6158 var.
6159 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6160 (AARCH64_SVE_Z_REGS_NUM): New define.
6161 (AARCH64_SVE_P_REGS_NUM): Likewise.
6162 (AARCH64_SVE_NUM_REGS): Likewise.
6163
6164 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6165
6166 * nat/linux-ptrace.h [__alpha__]
6167 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6168 definitions.
6169
6170 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6171
6172 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6173 the endianness selected.
6174 * NEWS: Document `set endian auto' mode operation update.
6175
6176 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6177
6178 * Makefile.in: Add new header.
6179 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6180 (sve_vl_from_vg): Likewise.
6181 (sve_vq_from_vl): Likewise.
6182 (sve_vl_from_vq): Likewise.
6183 (sve_vq_from_vg): Likewise.
6184 (sve_vg_from_vq): Likewise.
6185 * configure.nat: Add new c file.
6186 * nat/aarch64-sve-linux-ptrace.c: New file.
6187 * nat/aarch64-sve-linux-ptrace.h: New file.
6188
6189 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6190
6191 * aarch64-linux-nat.c (aarch64_linux_read_description):
6192 Add parmeter zero.
6193 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6194 Likewise.
6195 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6196 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6197 (aarch64_gdbarch_init): Add parmeter zero.
6198 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6199 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6200 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6201 parmeter.
6202 * doc/gdb.texinfo: Describe SVE feature
6203 * features/aarch64-sve.c: New file.
6204
6205 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6206
6207 PR gdb/23210
6208 * gdbarch.sh (significant_addr_bit): Default to zero when
6209 not set by target architecture.
6210 * gdbarch.c: Re-generated.
6211 * utils.c (address_significant): Update.
6212
6213 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6214
6215 * stack.c (func_command): Remove trailing newline in call to error.
6216
6217 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6218
6219 * regcache.h (regcache_raw_collect): Remove, update callers to
6220 use regcache::raw_collect.
6221 * regcache.c (regcache_raw_collect): Remove.
6222
6223 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6224
6225 * regcache.h (regcache_raw_supply): Remove, update callers to
6226 use detached_regcache::raw_supply.
6227 * regcache.c (regcache_raw_supply): Remove.
6228
6229 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6230
6231 * regcache.h (regcache_cooked_write_part): Remove, update
6232 callers to use regcache::cooked_write_part.
6233 * regcache.c (regcache_cooked_write_part): Remove.
6234
6235 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6236
6237 * regcache.h (regcache_cooked_read_part): Remove, update callers
6238 to use readable_regcache::cooked_read_part.
6239 * regcache.c (regcache_cooked_read_part): Remove.
6240
6241 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6242
6243 * regcache.h (regcache_cooked_read_value): Remove, update
6244 callers to use readable_regcache::cooked_read_value.
6245 * regcache.c (regcache_cooked_read_value): Remove.
6246
6247 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6248
6249 * regcache.h (regcache_cooked_write): Remove, update callers to
6250 use regcache::cooked_write.
6251 * regcache.c (regcache_cooked_write): Remove.
6252
6253 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6254
6255 * regcache.h (regcache_invalidate): Remove, update callers to
6256 use detached_regcache::invalidate instead.
6257 * regcache.c (regcache_invalidate): Remove.
6258
6259 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6260
6261 * regcache.h (regcache_raw_write_part): Remove, update callers
6262 to use regcache::raw_write_part instead.
6263 * regcache.c (regcache_raw_write_part): Remove.
6264
6265 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6266
6267 * regcache.h (regcache_raw_read_part): Remove, update callers to
6268 use readable_regcache::raw_read_part instead.
6269 * regcache.c (regcache_raw_read_part): Remove.
6270
6271 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6272
6273 * regcache.h (regcache_cooked_read): Remove, update callers to
6274 use readable_regcache::cooked_read instead.
6275 * regcache.c (regcache_cooked_read): Remove.
6276
6277 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6278
6279 * regcache.h (regcache_raw_write): Remove, update callers to use
6280 regcache::raw_write instead.
6281 * regcache.c (regcache_raw_write): Remove.
6282
6283 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6284
6285 * regcache.h (regcache_raw_read): Remove, update callers to use
6286 readable_regcache::raw_read instead.
6287 * regcache.c (regcache_raw_read): Remove.
6288
6289 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6290
6291 * regcache.h (regcache_raw_update): Remove, update callers to
6292 use readable_regcache::raw_update instead.
6293 * regcache.c (regcache_raw_update): Remove.
6294
6295 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6296
6297 * regcache.h (regcache_register_status): Remove, update callers
6298 to use reg_buffer::get_register_status directly instead.
6299 * regcache.c (regcache_register_status): Remove.
6300
6301 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6302
6303 * regcache.h (regcache_get_ptid): Remove, update all callers to
6304 call regcache::ptid instead.
6305 * regcache.c (regcache_get_ptid): Remove.
6306
6307 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6308
6309 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6310
6311 2018-05-30 Pedro Alves <palves@redhat.com>
6312
6313 * common/common-exceptions.h (exception_rethrow): Use
6314 ATTRIBUTE_NORETURN.
6315
6316 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6317
6318 * breakpoint.c (print_solib_event, check_status_catch_solib):
6319 Remove struct keyword in range-based for loops.
6320 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6321 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6322 Likewise.
6323 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6324 Likewise.
6325 * symfile.c (addr_info_make_relative): Likewise.
6326 * thread.c (value_in_thread_stack_temporaries): Likewise.
6327
6328 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6329
6330 PR gdb/16841
6331 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6332 aggregate type to get its real type before accessing it.
6333
6334 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6335
6336 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6337 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6338 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6339 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6340 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6341 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6342 * printcmd.c (info_address_command): Likewise.
6343
6344 2018-05-29 Tom Tromey <tom@tromey.com>
6345
6346 * windows-nat.c (handle_exception): Update fall-through comment.
6347
6348 2018-05-29 Tom Tromey <tom@tromey.com>
6349
6350 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6351 (struct program_space) <added_solibs>: Now a std::vector.
6352 * breakpoint.c (print_solib_event): Update.
6353 (check_status_catch_solib): Update.
6354 * progspace.c (clear_program_space_solib_cache): Update.
6355 * solib.c (update_solib_list): Update.
6356
6357 2018-05-29 Tom Tromey <tom@tromey.com>
6358
6359 * python/py-type.c (typy_richcompare): Update.
6360 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6361 * gdbtypes.h (types_deeply_equal): Return bool.
6362 (types_equal): Likewise.
6363 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6364 declare VEC.
6365 (check_types_equal): Change worklist to std::vector. Return
6366 bool.
6367 (struct type_equality_entry): Add constructor.
6368 (compare_maybe_null_strings): Return bool.
6369 (check_types_worklist): Return bool. Change worklist to
6370 std::vector.
6371 (types_deeply_equal): Use std::vector.
6372 (types_equal): Return bool.
6373 (compare_maybe_null_strings): Simplify.
6374
6375 2018-05-29 Tom Tromey <tom@tromey.com>
6376
6377 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6378
6379 2018-05-29 Tom Tromey <tom@tromey.com>
6380
6381 * objc-lang.h: Don't include cp-support.h.
6382 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6383 declare VEC.
6384
6385 2018-05-27 Tom Tromey <tom@tromey.com>
6386
6387 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6388
6389 2018-05-25 Tom Tromey <tom@tromey.com>
6390
6391 * value.c (value::location): Initialize.
6392
6393 2018-05-25 Tom Tromey <tom@tromey.com>
6394
6395 * dbxread.c (init_bincl_list): Remove.
6396 (bincl_list): Now a std::vector.
6397 (bincls_allocated, next_bincl): Remove.
6398 (free_bincl_list, do_free_bincl_list_cleanup)
6399 (make_cleanup_free_bincl_list): Remove.
6400 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6401 unique_xmalloc_ptr.
6402 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6403 (struct header_file_location): Add constructor.
6404 (add_bincl_to_list): Remove.
6405
6406 2018-05-25 Tom Tromey <tom@tromey.com>
6407
6408 * tui/tui.c (tui_enable): Update.
6409 * mi/mi-interp.c (mi_interp::init): Update.
6410 * interps.h (class interp) <name>: New method.
6411 <m_name>: Rename from name.
6412 (~scoped_restore_interp): Update.
6413 * interps.c (interp::interp): Update.
6414 (interp_add, interp_set, interp_lookup_existing)
6415 (current_interp_named_p): Update.
6416
6417 2018-05-25 Tom Tromey <tom@tromey.com>
6418
6419 * interps.c (interp_name): Remove.
6420 * mi/mi-interp.c (mi_interp::init): Update.
6421 * interps.h (interp_name): Remove.
6422 (~scoped_restore_interp): Update.
6423 * tui/tui.c (tui_enable): Update.
6424
6425 2018-05-25 Tom Tromey <tom@tromey.com>
6426
6427 * utils.c (fputs_maybe_filtered): Update.
6428 * linespec.c (decode_line_full): Update.
6429 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6430 (mi_print_breakpoint_for_event, mi_solib_loaded)
6431 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6432 (mi_user_selected_context_changed): Update.
6433 * mi/mi-main.c (mi_execute_command): Update.
6434 * cli/cli-script.c (execute_control_command): Update.
6435 * python/python.c (execute_gdb_command): Update.
6436 * solib.c (info_sharedlibrary_command): Update.
6437 * interps.c (interp_ui_out): Remove.
6438 * interps.h (interp_ui_out): Remove.
6439
6440 2018-05-25 Tom Tromey <tom@tromey.com>
6441
6442 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6443 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6444 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6445
6446 2018-05-25 Tom Tromey <tom@tromey.com>
6447
6448 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6449 * interps.c (interp_exec): Use scoped_restore.
6450
6451 2018-05-25 Tom Tromey <tom@tromey.com>
6452
6453 * remote.c (remote_target::remote_file_get): Use
6454 gdb::byte_vector.
6455 (remote_target::remote_file_put): Likewise.
6456
6457 2018-05-25 Tom Tromey <tom@tromey.com>
6458
6459 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6460 a std::string.
6461 (get_pe_section_index, add_pe_exported_sym): Update.
6462 (read_pe_exported_syms): Use gdb::def_vector.
6463
6464 2018-05-25 Tom Tromey <tom@tromey.com>
6465
6466 * frame.c (remove_prev_frame): Remove.
6467 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6468
6469 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6470
6471 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6472 Remove prototypes.
6473 * mips-linux-nat.c (supply_fpregset): Always call
6474 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6475 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6476 `mips_fill_fpregset'.
6477 * mips-linux-tdep.c (mips_supply_fpregset)
6478 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6479 (mips_fill_fpregset_wrapper): Remove functions.
6480 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6481 (mips_linux_fpregset): Remove variable.
6482 (mips_linux_iterate_over_regset_sections): Use
6483 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6484 (mips_linux_o32_sigframe_init): Remove comment.
6485
6486 2018-05-25 Pedro Alves <palves@redhat.com>
6487
6488 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6489 (struct readahead_cache, struct packet_reg, struct
6490 remote_arch_state, class remote_state): Move higher up in the
6491 file.
6492 (remote_target::m_remote_state): Now an object instead of a pointer.
6493 (remote_target::get_remote_state): Adjust.
6494
6495 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6496
6497 * stack.c (select_and_print_frame): Delete.
6498 (struct function_bounds): Move struct within function.
6499 (func_command): Most content moved into new function
6500 find_frame_for_function, use new function, print result, add
6501 function comment.
6502 (find_frame_for_function): New function, now returns a result.
6503
6504 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6505
6506 * stack.c (iterate_over_block_arg_vars): Fix comment.
6507 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6508
6509 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6510
6511 PR gdb/23203
6512 * frame.c
6513 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6514 Define.
6515 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6516 Define.
6517 * frame.h (class scoped_restore_selected_frame): New class.
6518 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6519 of any exception, use scoped_restore_selected_frame to restore the
6520 frame instead.
6521
6522 2018-05-24 Pedro Alves <palves@redhat.com>
6523
6524 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6525 override.
6526
6527 2018-05-23 Tom Tromey <tom@tromey.com>
6528
6529 * complaints.c (struct complaints): Remove.
6530 (symfile_complaint_book): Remove.
6531 (series): New global.
6532 (complaint_internal): Update.
6533 (clear_complaints): Update.
6534
6535 2018-05-23 Tom Tromey <tom@tromey.com>
6536
6537 * complaints.c (counters): New global.
6538 (struct complain): Remove.
6539 (struct complaints) <root>: Remove.
6540 (complaint_sentinel): Remove.
6541 (symfile_complaint_book): Update.
6542 (find_complaint) Remove.
6543 (complaint_internal, clear_complaints): Update.
6544
6545 2018-05-23 Tom Tromey <tom@tromey.com>
6546
6547 * complaints.c (struct complain) <file, line>: Remove.
6548 (find_complaint): Remove file, line parameters.
6549 (complaint_internal): Update.
6550
6551 2018-05-23 Tom Tromey <tom@tromey.com>
6552
6553 * complaints.c (vcomplaint): Remove.
6554 (complaint_internal) Merge in contents of vcomplaint.
6555
6556 2018-05-23 Tom Tromey <tom@tromey.com>
6557
6558 * complaints.c (struct complaints) <explanation>: Remove.
6559 (symfile_explanations): Remove.
6560 (symfile_complaint_book): Update.
6561 (vcomplaint): Update.
6562 (struct explanation): Remove.
6563
6564 2018-05-23 Tom Tromey <tom@tromey.com>
6565
6566 * complaints.c (symfile_complaints): Remove.
6567 (complaint_internal): Remove "complaints" parameter.
6568 (clear_complaints, vcomplaint): Remove "c" parameter.
6569 (get_complaints): Remove.
6570 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6571 (dwarf2_debug_line_missing_file_complaint)
6572 (dwarf2_debug_line_missing_end_sequence_complaint)
6573 (dwarf2_complex_location_expr_complaint)
6574 (dwarf2_const_value_length_mismatch_complaint)
6575 (dwarf2_section_buffer_overflow_complaint)
6576 (dwarf2_macro_malformed_definition_complaint)
6577 (dwarf2_invalid_attrib_class_complaint)
6578 (create_addrmap_from_index, dw2_symtab_iter_next)
6579 (dw2_expand_marked_cus)
6580 (dw2_debug_names_iterator::find_vec_in_debug_names)
6581 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6582 (create_debug_type_hash_table, init_cutu_and_read_dies)
6583 (partial_die_parent_scope, add_partial_enumeration)
6584 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6585 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6586 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6587 (create_cus_hash_table, create_dwp_hash_table)
6588 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6589 (dwarf2_rnglists_process, dwarf2_ranges_process)
6590 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6591 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6592 (handle_struct_member_die, process_structure_scope)
6593 (read_array_type, read_common_block, read_module_type)
6594 (read_tag_pointer_type, read_typedef, read_base_type)
6595 (read_subrange_type, load_partial_dies, partial_die_info::read)
6596 (partial_die_info::read, partial_die_info::read)
6597 (partial_die_info::read, read_checked_initial_length_and_offset)
6598 (dwarf2_string_attr, read_formatted_entries)
6599 (dwarf_decode_line_header)
6600 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6601 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6602 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6603 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6604 (get_signatured_type, get_DW_AT_signature_type)
6605 (decode_locdesc, file_file_name, consume_improper_spaces)
6606 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6607 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6608 (dwarf2_symbol_mark_computed, set_die_type)
6609 (read_attribute_value): Update.
6610 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6611 Update.
6612 * dbxread.c (unknown_symtype_complaint)
6613 (lbrac_mismatch_complaint, repeated_header_complaint)
6614 (set_namestring, function_outside_compilation_unit_complaint)
6615 (read_dbx_symtab, process_one_symbol): Update.
6616 * gdbtypes.c (stub_noname_complaint): Update.
6617 * windows-nat.c (handle_unload_dll): Update.
6618 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6619 (decode_base_type): Update.
6620 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6621 (eb_complaint, record_include_begin, record_include_end)
6622 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6623 (process_xcoff_symbol, read_symbol)
6624 (function_outside_compilation_unit_complaint)
6625 (scan_xcoff_symtab): Update.
6626 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6627 * buildsym.c (finish_block_internal, make_blockvector)
6628 (end_symtab_get_static_block, augment_type_symtab): Update.
6629 * dtrace-probe.c (dtrace_process_dof)
6630 (dtrace_static_probe_ops::get_probes): Update.
6631 * complaints.h (struct complaint): Don't declare.
6632 (symfile_complaints): Remove.
6633 (complaint_internal): Remove "complaints" parameter.
6634 (complaint): Likewise.
6635 (clear_complaints): Likewise.
6636 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6637 (reread_symbols): Update.
6638 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6639 (dwarf2_frame_cache, decode_frame_entry): Update.
6640 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6641 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6642 (info_selectors_command): Update.
6643 * macrotab.c (macro_include, check_for_redefinition)
6644 (macro_undef): Update.
6645 * objfiles.c (filter_overlapping_sections): Update.
6646 * stabsread.c (invalid_cpp_abbrev_complaint)
6647 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6648 (define_symbol, error_type, read_type, rs6000_builtin_type)
6649 (stabs_method_name_from_physname, read_member_functions)
6650 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6651 (attach_fields_to_type, complain_about_struct_wipeout)
6652 (read_range_type, read_args, common_block_start)
6653 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6654 Update.
6655 * mdebugread.c (index_complaint, unknown_ext_complaint)
6656 (basic_type_complaint, bad_tag_guess_complaint)
6657 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6658 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6659 (parse_procedure, parse_lines)
6660 (function_outside_compilation_unit_complaint)
6661 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6662 (bad_tag_guess_complaint, reg_value_complaint): Update.
6663 * cp-support.c (demangled_name_complaint): Update.
6664 * macroscope.c (sal_macro_scope): Update.
6665 * dwarf-index-write.c (class debug_names): Update.
6666
6667 2018-05-23 Tom Tromey <tom@tromey.com>
6668
6669 * complaints.c (clear_complaints): Remove "noisy" parameter.
6670 * complaints.h (clear_complaints): Update.
6671 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6672 (reread_symbols): Update.
6673
6674 2018-05-23 Tom Tromey <tom@tromey.com>
6675
6676 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6677 SUBSEQUENT_MESSAGE.
6678 (vcomplaint, clear_complaints): Update.
6679 (symfile_explanations): Remove some messages.
6680
6681 2018-05-23 Tom Tromey <tom@tromey.com>
6682
6683 * complaints.c (internal_complaint): Remove.
6684 * complaints.h (internal_complaint): Remove.
6685
6686 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6687
6688 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6689
6690 2018-05-22 Pedro Alves <palves@redhat.com>
6691
6692 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6693 (remote_fileio_badfd, remote_fileio_return_errno)
6694 (remote_fileio_return_success, remote_fileio_func_open)
6695 (remote_fileio_func_open, remote_fileio_func_close)
6696 (remote_fileio_func_read, remote_fileio_func_write)
6697 (remote_fileio_func_lseek, remote_fileio_func_rename)
6698 (remote_fileio_func_unlink, remote_fileio_func_stat)
6699 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6700 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6701 remote_target parameter.
6702 (remote_fio_func_map) <func>: Add remote_target parameter.
6703 (do_remote_fileio_request, remote_fileio_request):
6704 * remote-fileio.h (remote_fileio_request):
6705 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6706 remote_target parameter.
6707 (remote_notif_process, handle_notification): Adjust to pass down
6708 the remote.
6709 (remote_notif_state_allocate): Add remote_target parameter. Save
6710 it.
6711 * remote-notif.h (struct remote_target): Forward declare.
6712 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6713 remote_target parameter.
6714 (struct remote_notif_state) <remote>: New field.
6715 (remote_notif_ack, remote_notif_parse): Add remote_target
6716 parameter.
6717 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6718 remote_target parameter.
6719 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6720 (threads_listing_context, rmt_thread_action, protocol_feature)
6721 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6722 (packet_result, struct threads_listing_context, remote_state):
6723 Move definitions and declarations higher up.
6724 (remote_target) <~remote_target>: Declare.
6725 (remote_download_command_source, remote_file_put, remote_file_get)
6726 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6727 (remote_hostio_pread_vFile, remote_hostio_send_command)
6728 (remote_hostio_set_filesystem, remote_hostio_open)
6729 (remote_hostio_close, remote_hostio_unlink, remote_state)
6730 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6731 (get_memory_write_packet_size, get_memory_read_packet_size)
6732 (append_pending_thread_resumptions, remote_detach_1)
6733 (append_resumption, remote_resume_with_vcont)
6734 (add_current_inferior_and_thread, wait_ns, wait_as)
6735 (process_stop_reply, remote_notice_new_inferior)
6736 (process_initial_stop_replies, remote_add_thread)
6737 (btrace_sync_conf, remote_btrace_maybe_reopen)
6738 (remove_new_fork_children, kill_new_fork_children)
6739 (discard_pending_stop_replies, stop_reply_queue_length)
6740 (check_pending_events_prevent_wildcard_vcont)
6741 (discard_pending_stop_replies_in_queue, stop_reply)
6742 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6743 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6744 (remote_interrupt_as, remote_interrupt_ns)
6745 (remote_get_noisy_reply, remote_query_attached)
6746 (remote_add_inferior, remote_current_thread, get_current_thread)
6747 (set_thread, set_general_thread, set_continue_thread)
6748 (set_general_process, write_ptid)
6749 (remote_unpack_thread_info_response, remote_get_threadinfo)
6750 (parse_threadlist_response, remote_get_threadlist)
6751 (remote_threadlist_iterator, remote_get_threads_with_ql)
6752 (remote_get_threads_with_qxfer)
6753 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6754 (get_offsets, remote_check_symbols, remote_supported_packet)
6755 (remote_query_supported, remote_packet_size)
6756 (remote_serial_quit_handler, remote_detach_pid)
6757 (remote_vcont_probe, remote_resume_with_hc)
6758 (send_interrupt_sequence, interrupt_query)
6759 (remote_notif_get_pending_events, fetch_register_using_p)
6760 (send_g_packet, process_g_packet, fetch_registers_using_g)
6761 (store_register_using_P, store_registers_using_G)
6762 (set_remote_traceframe, check_binary_download)
6763 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6764 (remote_xfer_live_readonly_partial, remote_read_bytes)
6765 (remote_send_printf, remote_flash_write, readchar)
6766 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6767 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6768 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6769 (extended_remote_disable_randomization, extended_remote_run)
6770 (send_environment_packet, extended_remote_environment_support)
6771 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6772 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6773 (packet_command): Now methods of ...
6774 (remote_target): ... this class.
6775 (m_remote_state) <remote_target>: New field.
6776 (struct remote_state) <stop_reply_queue,
6777 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6778 fields.
6779 (remote_state::remote_state): Allocate stop_reply_queue.
6780 (remote_state): Delete global.
6781 (get_remote_state_raw): Delete.
6782 (remote_target::get_remote_state): Allocate m_remote_state on
6783 demand.
6784 (get_current_remote_target): New.
6785 (remote_ops, extended_remote_ops): Delete.
6786 (wait_forever_enabled_p, remote_async_inferior_event_token):
6787 Delete, moved to struct remote_state.
6788 (remote_target::close): Delete self. Destruction bits split to
6789 ...
6790 (remote_target::~remote_target): ... this.
6791 (show_memory_packet_size): Adjust to use
6792 get_current_remote_target.
6793 (struct protocol_feature) <func>: Add remote_target parameter.
6794 All callers adjusted.
6795 (curr_quit_handler_target): New.
6796 (remote_serial_quit_handler): Reimplement.
6797 (remote_target::open_1): Adjust to use get_current_remote_target.
6798 Heap-allocate remote_target/extended_remote_target instances.
6799 (vcont_builder::vcont_builder): Add remote_target parameter, and
6800 save it in m_remote. All callers adjusted.
6801 (vcont_builder::m_remote): New field.
6802 (vcont_builder::restart, vcont_builder::flush)
6803 (vcont_builder::push_action): Use it.
6804 (remote_target::commit_resume): Use it.
6805 (struct queue_iter_param) <remote>: New field.
6806 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6807 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6808 (check_pending_event_prevents_wildcard_vcont_callback)
6809 (remote_target::check_pending_events_prevent_wildcard_vcont)
6810 (remote_target::discard_pending_stop_replies)
6811 (remote_target::discard_pending_stop_replies_in_queue)
6812 (remote_target::remote_notif_remove_queued_reply): Fill in
6813 'remote' field.
6814 (remote_notif_get_pending_events): New.
6815 (remote_target::readchar, remote_target::remote_serial_write):
6816 Save/restore curr_quit_handler_target.
6817 (putpkt): New.
6818 (kill_new_fork_children): Fill in 'remote' field.
6819 (packet_command): Use get_current_remote_target, defer to
6820 remote_target method of same name.
6821 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6822 parameter, and save it in m_remote. All callers adjusted.
6823 (scoped_remote_fd::release): Use m_remote.
6824 (scoped_remote_fd::m_remote): New field.
6825 (remote_file_put, remote_file_get, remote_file_delete): Use
6826 get_current_remote_target, defer to remote_target method of same
6827 name.
6828 (remote_btrace_reset): Add remote_state paremeter. Update all
6829 callers.
6830 (remote_async_inferior_event_handler). Pass down 'data'.
6831 (remote_new_objfile): Use get_current_remote_target.
6832 (remote_target::vcont_r_supported): New.
6833 (set_range_stepping): Use get_current_remote_target and
6834 remote_target::vcont_r_supported.
6835 (_initialize_remote): Don't allocate 'remote_state' and
6836 'stop_reply_queue' globals.
6837 * remote.h (struct remote_target): Forward declare.
6838 (getpkt, putpkt, remote_notif_get_pending_events): Add
6839 'remote_target' parameter.
6840
6841 2018-05-22 Pedro Alves <palves@redhat.com>
6842
6843 * remote.c (vcont_builder): Now a class. Make all data members
6844 private.
6845 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6846 Declare methods.
6847 (vcont_builder_restart): Rename to ...
6848 (vcont_builder::restart): ... this.
6849 (vcont_builder_flush): Rename to ...
6850 (vcont_builder::flush): ... this.
6851 (vcont_builder_push_action): Rename to ...
6852 (vcont_builder::push_action): ... this.
6853 (remote_target::commit_resume): Adjust.
6854
6855 2018-05-22 Pedro Alves <palves@redhat.com>
6856
6857 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6858 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6859 (get_fixed_memory_packet_size): New.
6860 (get_memory_packet_size): Use it.
6861 (set_memory_packet_size): Don't override the config size with
6862 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6863 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6864 Don't refer to get_memory_packet_size if not connected to a remote
6865 target. Show "(default)" if configured size is 0.
6866
6867 2018-05-22 Pedro Alves <palves@redhat.com>
6868
6869 * remote.c (remote_target::mourn_inferior): Move
6870 discard_pending_stop_replies call here from ...
6871 (_initialize_remote): ... here.
6872
6873 2018-05-22 Pedro Alves <palves@redhat.com>
6874
6875 * remote.c (compare_section_command): Remove set_general_process
6876 call.
6877
6878 2018-05-22 Pedro Alves <palves@redhat.com>
6879
6880 * remote.c (struct packet_reg, struct remote_arch_state):
6881 Move higher up in the file.
6882 (remote_state) <m_arch_states>: Store remote_arch_state values
6883 instead of remote_arch_state pointers.
6884 (remote_state::get_remote_arch_state): Adjust.
6885
6886 2018-05-22 Pedro Alves <palves@redhat.com>
6887
6888 * remote.c: Include <unordered_map>.
6889 (remote_state): Now a class.
6890 (remote_state) <get_remote_arch_state>: Declare method.
6891 <get_remote_arch_state>: New field.
6892 (remote_arch_state) <remote_arch_state>: Declare ctor.
6893 <regs>: Now a unique_ptr.
6894 (remote_gdbarch_data_handle): Delete.
6895 (get_remote_arch_state): Delete.
6896 (remote_state::get_remote_arch_state): New.
6897 (get_remote_state): Adjust to call remote_state's
6898 get_remote_arch_state method.
6899 (init_remote_state): Delete, bits factored out to ...
6900 (remote_arch_state::remote_arch_state): ... this new method.
6901 (get_remote_packet_size, get_memory_packet_size)
6902 (process_g_packet, remote_target::fetch_registers)
6903 (remote_target::prepare_to_store, store_registers_using_G)
6904 (remote_target::store_registers, remote_target::get_trace_status):
6905 Adjust to call remote_state's method.
6906 (_initialize_remote): Remove reference to
6907 remote_gdbarch_data_handle.
6908
6909 2018-05-22 Pedro Alves <palves@redhat.com>
6910
6911 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6912 pread>: New method declarations.
6913 (remote_target::open_1): Adjust.
6914 (readahead_cache_invalidate): Rename to ...
6915 (readahead_cache::invalidate): ... this, and adjust to be a class
6916 method.
6917 (readahead_cache_invalidate_fd): Rename to ...
6918 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6919 class method.
6920 (remote_hostio_pwrite): Adjust.
6921 (remote_hostio_pread_from_cache): Rename to ...
6922 (readahead_cache::pread): ... this, and adjust to be a class
6923 method.
6924 (remote_hostio_close): Adjust.
6925
6926 2018-05-22 Pedro Alves <palves@redhat.com>
6927
6928 * remote.c (remote_hostio_close_cleanup): Delete.
6929 (class scoped_remote_fd): New.
6930 (remote_file_put, remote_file_get): Use it.
6931
6932 2018-05-22 Pedro Alves <palves@redhat.com>
6933
6934 (struct vCont_action_support): Use bool and initialize all fields.
6935 (struct readahead_cache): Initialize all fields.
6936 (remote_state): Use bool and initialize all fields.
6937 (remote_state::remote_state, remote_state::~remote_state): New.
6938 (new_remote_state): Delete.
6939 (_initialize_remote): Use new to allocate remote_state.
6940
6941 2018-05-22 Pedro Alves <palves@redhat.com>
6942 張俊芝 <zjz@zjz.name>
6943
6944 PR gdb/22973
6945 * c-exp.y: Include "c-support.h".
6946 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6947 of tolower. Use c_ident_is_alpha to scan names.
6948 * c-lang.c: Include "c-support.h".
6949 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6950 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6951 * c-support.h: New file, with bits factored out from ...
6952 * cp-name-parser.y: ... this file.
6953 Include "c-support.h".
6954 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6955 c-support.h and renamed.
6956 (symbol_end, yylex): Adjust.
6957
6958 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6959
6960 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6961 parameter type to CORE_ADDR.
6962 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6963 parameter type in declaration to CORE_ADDR.
6964 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6965 target_auxv_search to get AT_HWCAP and use the result to get the
6966 target description.
6967 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6968 to CORE_ADDR. Remove the cast of the return value to unsigned
6969 long. Fix error predicate of target_auxv_search.
6970 (ppc_linux_nat_target::read_description): Change the type of the
6971 hwcap variable to CORE_ADDR.
6972
6973 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6974
6975 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6976 if the size of fpscr is larger than 32 bits.
6977
6978 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6979
6980 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6981 (ppc32_linux_vsxregmap): New global.
6982 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6983 regcache_supply_regset, and regcache_collect_regset.
6984 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6985 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6986 (fetch_vsx_register, store_vsx_register): Remove.
6987 (fetch_vsx_registers): Add regno parameter. Get regset using
6988 ppc_linux_vsxregset. Use regset to supply registers.
6989 (store_vsx_registers): Add regno parameter. Get regset using
6990 ppc_linux_vsxregset. Use regset to collect registers.
6991 (fetch_register): Call fetch_vsx_registers instead of
6992 fetch_vsx_register.
6993 (store_register): Call store_vsx_registers instead of
6994 store_vsx_register.
6995 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6996 new regno parameter.
6997 (store_ppc_registers): Call store_vsx_registers with -1 for the
6998 new regno parameter.
6999 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7000 (ppc_collect_vsxregset): Remove.
7001
7002 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7003
7004 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7005 offset fields.
7006 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7007 for vector register offset fields.
7008 (ppc64_fbsd_reg_offsets): Likewise.
7009 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7010 to vector register offset fields.
7011 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7012 to vector register offset fields.
7013 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7014 vector register offset fields.
7015 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7016 initializers for vector register offset fields.
7017 (rs6000_aix64_reg_offsets): Likewise.
7018 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7019 (ppc_supply_vrregset): Remove.
7020 (ppc_collect_vrregset): Remove.
7021 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7022 (ppc_linux_vrregset) : New function.
7023 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7024 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7025 (ppc32_linux_vrregset): Remove.
7026 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7027 and use result instead of ppc32_linux_vrregset.
7028 (ppc32_linux_reg_offsets): Remove initializers for vector register
7029 offset fields.
7030 (ppc64_linux_reg_offsets): Likewise.
7031 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7032 * ppc-linux-nat.c: Include regset.h.
7033 (gdb_vrregset_t): Adjust comment to account for little-endian
7034 mode.
7035 (supply_vrregset, fill_vrregset): Remove.
7036 (fetch_altivec_register, store_altivec_register): Remove.
7037 (fetch_altivec_registers): Add regno parameter. Get regset using
7038 ppc_linux_vrregset. Use regset to supply registers.
7039 (store_altivec_registers): Add regno parameter. Get regset using
7040 ppc_linux_vrregset. Use regset to collect registers.
7041 (fetch_register): Call fetch_altivec_registers instead of
7042 fetch_altivec_register.
7043 (store_register): Call store_altivec_registers instead of
7044 store_altivec_register.
7045 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7046 the new regno parameter.
7047 (store_ppc_registers): Call store_altivec_registers with -1 for
7048 the new regno parameter.
7049
7050 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7051
7052 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7053 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7054 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7055 (gdb_vrregset_t): Change array type size to
7056 PPC_LINUX_SIZEOF_VRREGSET.
7057 (gdb_vsxregset_t): Change array type size to
7058 PPC_LINUX_SIZEOF_VSXREGSET.
7059 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7060 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7061 PPC_LINUX_SIZEOF_VSXREGSET.
7062
7063 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7064
7065 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7066 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7067 nat/ppc-linux.c.
7068 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7069 ppc_linux_target_wordsize with tid.
7070 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7071 wordsize with tid.
7072 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7073 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7074 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7075 tid parameter. Remove static specifier.
7076 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7077 (ppc_linux_target_wordsize): New declaration.
7078
7079 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7080
7081 * arch/ppc-linux-common.c: New file.
7082 * arch/ppc-linux-common.h: New file.
7083 * arch/ppc-linux-tdesc.h: New file.
7084 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7085 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7086 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7087 arch/ppc-linux-tdesc.h.
7088 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7089 arch/ppc-linux-tdesc.h.
7090 (ppc_linux_nat_target::read_description): Remove target
7091 description matching code. Fill a ppc_linux_features struct and
7092 call ppc_linux_match_description with it. Move comment about ISA
7093 2.05 to ppc-linux-common.c.
7094 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7095 arch/ppc-linux-tdesc.h.
7096 (ppc_linux_core_read_description): Remove target description
7097 matching code. Fill a ppc_linux_features struct and call
7098 ppc_linux_match_description with it.
7099 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7100 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7101 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7102 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7103 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7104 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7105 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7106 (tdesc_powerpc_e500l): Remove.
7107
7108 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7109
7110 * ada-lang.c (catch_assert_command): Pass empty string instead
7111 of NULL for excep_string argument.
7112
7113 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7114
7115 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7116 the width of the requested register exceeds the width of the
7117 `ptrace' data type.
7118
7119 2018-05-21 Tom Tromey <tom@tromey.com>
7120
7121 * printcmd.c (output_command): Remove.
7122 (output_command_const): Rename to output_command.
7123 * valprint.h (output_command): Rename from output_command_const.
7124 * tracepoint.c (trace_dump_actions): Call output_command.
7125
7126 2018-05-21 Tom Tromey <tom@tromey.com>
7127
7128 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7129 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7130 * ada-lang.h (create_ada_exception_catchpoint): Update.
7131 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7132 std::string.
7133 (create_excep_cond_exprs, ~ada_catchpoint)
7134 (should_stop_exception, print_one_exception)
7135 (print_mention_exception, print_recreate_exception): Update.
7136 (ada_get_next_arg): Remove.
7137 (catch_ada_exception_command_split): Use std::string. Change type
7138 of "excep_string", "cond_string".
7139 (catch_ada_exception_command): Update.
7140 (create_ada_exception_catchpoint): Change type of excep_string.
7141 (ada_exception_sal): Remove excep_string parameter.
7142 (~ada_catchpoint): Remove.
7143
7144 2018-05-21 Tom Tromey <tom@tromey.com>
7145
7146 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7147 cleanup.
7148
7149 2018-05-21 Tom Tromey <tom@tromey.com>
7150
7151 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7152 Return unique_xmalloc_ptr.
7153 (print_it_exception): Update.
7154
7155 2018-05-21 Tom Tromey <tom@tromey.com>
7156
7157 * tracepoint.c (trace_dump_actions): Use std::string.
7158
7159 2018-05-21 Tom Tromey <tom@tromey.com>
7160
7161 * symfile.c (reread_symbols): Use std::string for original_name.
7162
7163 2018-05-21 Tom Tromey <tom@tromey.com>
7164
7165 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7166 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7167 constructor.
7168
7169 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7170
7171 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7172 instance to...
7173 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7174 * objfiles.c (get_objfile_bfd_data): Allocate
7175 objfile_per_bfd_storage with obstack_new when allocating on
7176 obstack.
7177
7178 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7179
7180 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7181 OBSTACK_ZALLOC.
7182 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7183 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7184 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7185 (add_pending): Likewise.
7186 (parse_symbol): Likewise.
7187 (parse_partial_symbols): Likewise.
7188 (psymtab_to_symtab_1): Likewise.
7189 (new_psymtab): Likewise.
7190 (elfmdebug_build_psymtabs): Likewise.
7191 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7192 * objfiles.c (get_objfile_bfd_data): Likewise.
7193 (objfile_register_static_link): Likewise.
7194 * psymtab.c (allocate_psymtab): Likewise.
7195 * stabsread.c (read_member_functions): Likewise.
7196 * xcoffread.c (xcoff_end_psymtab): Likewise.
7197
7198 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7199
7200 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7201 compiler supports std::is_trivially_constructible.
7202 * common/poison.h: Include obstack.h.
7203 (IsMallocable): Define to is_trivially_constructible if the
7204 compiler supports it, define to true_type otherwise.
7205 (xobnew): New.
7206 (XOBNEW): Redefine.
7207 (xobnewvec): New.
7208 (XOBNEWVEC): Redefine.
7209 * gdb_obstack.h (obstack_zalloc): New.
7210 (OBSTACK_ZALLOC): Redefine.
7211 (obstack_calloc): New.
7212 (OBSTACK_CALLOC): Redefine.
7213 (obstack_new): New.
7214 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7215 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7216 gdbarch.c.
7217 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7218 obstack_calloc/obstack_zalloc.
7219 (gdbarch_obstack_zalloc): Remove.
7220 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7221
7222 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7223
7224 * stack.c (backtrace_command_1): Remove useless variable int i.
7225
7226 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7227
7228 * stack.c (print_frame_info): Fix comment.
7229
7230 2018-05-18 Tom Tromey <tom@tromey.com>
7231
7232 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7233 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7234 (~dwarf2_per_objfile): Update
7235 (dwarf2_get_dwz_file): Use new.
7236 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7237 unique_ptr.
7238
7239 2018-05-18 Tom Tromey <tom@tromey.com>
7240
7241 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7242 unique_ptr.
7243 * dwarf2read.c (struct dwp_file): Add constructor and
7244 initializers.
7245 (open_and_init_dwp_file): Return a unique_ptr.
7246 (dwarf2_per_objfile, create_dwp_hash_table)
7247 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7248 (lookup_dwo_unit_in_dwp): Update.
7249 (open_and_init_dwp_file, get_dwp_file): Update.
7250
7251 2018-05-18 Tom Tromey <tom@tromey.com>
7252
7253 * dwarf2read.c (dwarf2_per_objfile): Update.
7254 (struct mapped_index): Add initializers.
7255 (dwarf2_read_index): Use new.
7256 (dw2_symtab_iter_init): Update.
7257 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7258 unique_ptr.
7259
7260 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7261
7262 * dwarf2read.c (mapped_index) <total_size>: Remove.
7263
7264 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7265
7266 * unittests/format_pieces-selftests.c (test_format_specifier):
7267 Add ARI comments.
7268
7269 2018-05-18 Tom Tromey <tom@tromey.com>
7270
7271 * c-typeprint.c (maybe_print_hole): New function.
7272 (c_print_type_struct_field_offset): Update.
7273 (c_type_print_base_struct_union): Call maybe_print_hole.
7274
7275 2018-05-17 Keith Seitz <keiths@redhat.com>
7276
7277 * breakpoint.c (build_bpstat_chain): New function, moved from
7278 bpstat_stop_status.
7279 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7280 If no stop chain is passed, call build_bpstat_chain to build it.
7281 * breakpoint.h (build_bpstat_chain): Declare.
7282 (bpstat_stop_status): Move documentation here from breakpoint.c.
7283 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7284 build the stop chain and pass it to skip_inline_frames.
7285 Pass this stop chain to bpstat_stop_status.
7286 * inline-frame.c: Include breakpoint.h.
7287 (stopped_by_user_bp_inline_frame): New function.
7288 (skip_inline_frames): Add parameter `stop_chain'.
7289 Move documention to inline-frame.h.
7290 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7291 whether the frame should be elided.
7292 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7293 Add moved documentation and update for new parameter.
7294
7295 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7296
7297 PR cli/14975
7298 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7299 unittests/format_pieces-selftests.c.
7300 * common/format.h (format_piece) <operator==>: New.
7301 (format_pieces) <operator[]>: Remove.
7302 * common/format.c (format_pieces::format_pieces): Handle \e.
7303 * unittests/format_pieces-selftests.c: New.
7304
7305 2018-05-17 Tom Tromey <tom@tromey.com>
7306
7307 PR symtab/23010:
7308 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7309 (dw2_instantiate_symtab): Add skip_partial parameter.
7310 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7311 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7312 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7313 (dw2_expand_symtabs_matching_one)
7314 (dw2_find_pc_sect_compunit_symtab)
7315 (dw2_debug_names_lookup_symbol)
7316 (dw2_debug_names_expand_symtabs_for_function): Update.
7317 (init_cutu_and_read_dies): Add skip_partial parameter.
7318 (process_psymtab_comp_unit, build_type_psymtabs_1)
7319 (process_skeletonless_type_unit, load_partial_comp_unit)
7320 (psymtab_to_symtab_1): Update.
7321 (load_full_comp_unit): Add skip_partial parameter.
7322 (process_imported_unit_die, dwarf2_read_addr_index)
7323 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7324 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7325 (read_signatured_type): Update.
7326
7327 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7328
7329 * value.c (release_value): Remove unused variable.
7330 (record_latest_value): Likewise.
7331 (access_value_history): Likewise.
7332 (preserve_values): Likewise.
7333
7334 2018-05-17 Tom Tromey <tom@tromey.com>
7335
7336 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7337 Initialize.
7338
7339 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7340
7341 PR gdb/22286
7342 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7343 Also handle registers whose width is not a multiple of
7344 PTRACE_TYPE_RET.
7345 (linux_nat_trad_target::store_register): Likewise.
7346
7347 2018-05-16 Tom Tromey <tom@tromey.com>
7348
7349 * gdbcore.h (core_bfd): Redefine.
7350 * corelow.c (core_target::close): Update.
7351 (core_target_open): Update.
7352 * progspace.h (struct program_space) <cbfd>: Now a
7353 gdb_bfd_ref_ptr.
7354
7355 2018-05-16 Tom Tromey <tom@tromey.com>
7356
7357 PR cli/19551:
7358 * symfile-add-flags.h (enum symfile_add_flags)
7359 <SYMFILE_NOT_FILENAME>: New constant.
7360 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7361 objfile name from BFD.
7362 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7363 * minidebug.c (find_separate_debug_file_in_section): Put
7364 ".gnu_debugdata" into BFD's file name.
7365
7366 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7367
7368 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7369 Remove.
7370
7371 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7372
7373 PR binutils/21446
7374 * aarch64-tdep.c (aarch64_analyze_prologue,
7375 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7376 Indicate not interested in errors.
7377
7378 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7379
7380 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7381 Supply the MIPS_ZERO_REGNUM register.
7382
7383 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7384
7385 * mips-tdep.c (mask_address_var): Make variable static.
7386
7387 2018-05-14 Tom Tromey <tom@tromey.com>
7388
7389 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7390
7391 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7392
7393 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7394 FXSAVE_ADDR for the mxcsr register.
7395
7396 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7397
7398 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7399
7400 2018-05-11 Pedro Alves <palves@redhat.com>
7401
7402 * corelow.c (core_target) <core_target>: No longer inline.
7403 Initialize m_core_gdbarch, m_core_vec and build the section table
7404 here.
7405 <~core_target>: New.
7406 <core_gdbarch, get_core_register_section>: New methods.
7407 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7408 factored out from ...
7409 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7410 (core_ops): Delete.
7411 (sniff_core_bfd): Add gdbarch parameter.
7412 (core_close): Delete, merged into ...
7413 (core_target::close): ... here. Delete self.
7414 (core_close_cleanup): Delete.
7415 (core_target_open): Allocate a core_target on the heap. Use a
7416 unique_ptr instead of a cleanup. Bits moved into the core_target
7417 ctor. Adjust to use core_target methods instead of globals.
7418 (get_core_register_section): Rename to ...
7419 (core_target::get_core_register_section): ... this and adjust.
7420 (struct get_core_registers_cb_data): New.
7421 (get_core_registers_cb): Use it. Use bool.
7422 (core_target::fetch_registers, core_target::files_info)
7423 (core_target::xfer_partial, core_target::read_description)
7424 (core_target::pid_to, core_target::thread_name): Adjust to
7425 reference class fields instead of globals.
7426 * target.h (struct target_ops_deleter, target_ops_up): New.
7427
7428 2018-05-11 Pedro Alves <palves@redhat.com>
7429
7430 * corefile.c (core_file_command): Move to corelow.c.
7431 * corelow.c (the_core_target): Delete.
7432 (core_file_command): Moved from corefile.c. Check exec_bfd
7433 instead of the_core_target. Use target_detach instead of calling
7434 into the_core_target directly.
7435 (maybe_say_no_core_file_now): New.
7436 (core_target::detach): Use it.
7437 (_initialize_corelow): Remove references to the_core_target.
7438 * gdbcore.h (the_core_target): Delete.
7439
7440 2018-05-11 Tom Tromey <tromey@redhat.com>
7441 Pedro Alves <palves@redhat.com>
7442
7443 * corefile.c (core_bfd): Remove.
7444 * gdbcore.h (core_bfd): Now a macro.
7445 * progspace.h (struct program_space) <cbfd>: New field.
7446
7447 2018-05-11 Tom Tromey <tom@tromey.com>
7448
7449 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7450 gdb::def_vector.
7451
7452 2018-05-10 Tom Tromey <tom@tromey.com>
7453
7454 * configure: Rebuild.
7455 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7456
7457 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7458
7459 PR server/23158:
7460 * regformats/regdat.sh: Adjust script, following the addition
7461 of the new expedite_regs parameter to init_target_desc.
7462
7463 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7464
7465 PR gdb/23127
7466 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7467 set_gdbarch_significant_addr_bit.
7468 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7469 set_gdbarch_significant_addr_bit.
7470 * utils.c (address_significant): Update to sign extend addr.
7471
7472 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7473
7474 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7475 (xtensa_linux_init_abi): Limit tdep->num_regs by
7476 tdep->num_nopriv_regs.
7477 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7478 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7479 not initialized.
7480
7481 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7482
7483 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7484
7485 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7486
7487 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7488 (I387_MXCSR_INIT_VAL): New constant.
7489 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7490 buffer if it was supplied by the inferior.
7491 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7492 (i387_xsave_get_clear_bv): New function.
7493 (i387_supply_xsave): Only read x87 control registers from the
7494 xsave buffer if the feature is enabled, and the state will have
7495 been written, otherwise, provide a suitable default.
7496 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7497 including x87 control registers. Update control registers if they
7498 have changed from the default value, and mark features as enabled
7499 as required.
7500 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7501
7502 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7503
7504 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7505
7506 2018-05-07 Tom Tromey <tom@tromey.com>
7507
7508 * configure: Rebuild.
7509 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7510
7511 2018-05-07 Tom Tromey <tom@tromey.com>
7512
7513 PR tdep/20362:
7514 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7515 bit. Use correct value for VDIV.
7516
7517 2018-05-04 Tom Tromey <tom@tromey.com>
7518
7519 * configure: Rebuild.
7520 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7521
7522 2018-05-04 Tom Tromey <tom@tromey.com>
7523
7524 * linux-record.c (record_linux_system_call) <case
7525 RECORD_SYS_RECVFROM>: Add "break".
7526
7527 2018-05-04 Tom Tromey <tom@tromey.com>
7528
7529 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7530 Add missing "break".
7531 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7532 Add missing "break".
7533
7534 2018-05-04 Tom Tromey <tom@tromey.com>
7535
7536 * rs6000-tdep.c (ppc_process_record_op4)
7537 (ppc_process_record_op63): Add fall-through comment.
7538
7539 2018-05-04 Tom Tromey <tom@tromey.com>
7540
7541 * i386-tdep.c (i386_process_record): Add fall-through comment.
7542
7543 2018-05-04 Tom Tromey <tom@tromey.com>
7544
7545 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7546 comment.
7547
7548 2018-05-04 Tom Tromey <tom@tromey.com>
7549
7550 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7551 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7552 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7553 comment.
7554 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7555 comment.
7556 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7557 comment.
7558
7559 2018-05-04 Tom Tromey <tom@tromey.com>
7560
7561 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7562
7563 2018-05-04 Tom Tromey <tom@tromey.com>
7564
7565 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7566 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7567 * symfile.c (section_is_mapped): Fix fall-through comment.
7568 * stabsread.c (define_symbol, read_member_functions): Fix
7569 fall-through comment.
7570 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7571 comment.
7572 * remote.c (remote_wait_as): Fix fall-through comment.
7573 * p-exp.y (yylex): Fix fall-through comment.
7574 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7575 comment.
7576 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7577 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7578 * jv-exp.y (yylex): Fix fall-through comment.
7579 * go-exp.y (lex_one_token): Fix fall-through comment.
7580 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7581 fall-through comment.
7582 * f-exp.y (yylex): Fix fall-through comment.
7583 * dwarf2read.c (process_die): Fix fall-through comments.
7584 * dbxread.c (process_one_symbol): Fix fall-through comment.
7585 * d-exp.y (lex_one_token): Fix fall-through comment.
7586 * cp-name-parser.y (yylex): Fix fall-through comment.
7587 * coffread.c (coff_symtab_read): Fix fall-through comment.
7588 * c-exp.y (lex_one_token): Fix fall-through comment.
7589 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7590 comment.
7591 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7592 comment.
7593
7594 2018-05-04 Tom Tromey <tom@tromey.com>
7595
7596 PR python/22730:
7597 * NEWS: Mention gdb.execute change.
7598 * gdbcmd.h (execute_control_command): Don't declare.
7599 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7600 execute_control_commands, execute_control_commands_to_string.
7601 * cli/cli-script.h (execute_control_commands)
7602 (execute_control_commands_to_string): Declare.
7603 (execute_control_command): Add from_tty parameter.
7604 * cli/cli-script.c (execute_control_commands)
7605 (execute_control_commands_to_string): New functions.
7606 (execute_user_command): Use execute_control_commands.
7607 (execute_control_command_1): Add "from_tty" parameter. Update.
7608 (execute_control_command): Likewise.
7609
7610 2018-05-04 Tom Tromey <tom@tromey.com>
7611
7612 PR python/22731:
7613 * NEWS: Mention that breakpoint commands are writable.
7614 * python/py-breakpoint.c (bppy_set_commands): New function.
7615 (breakpoint_object_getset) <"commands">: Use it.
7616
7617 2018-05-04 Tom Tromey <tom@tromey.com>
7618
7619 * tracepoint.c (actions_command): Update.
7620 * mi/mi-cmd-break.c (mi_command_line_array)
7621 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7622 (mi_read_next_line): Remove.
7623 (mi_cmd_break_commands): Update.
7624 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7625 function_view.
7626 * cli/cli-script.c (get_command_line): Update.
7627 (process_next_line): Use function_view. Constify.
7628 (recurse_read_control_structure, read_command_lines)
7629 (read_command_lines_1): Change argument types to function_view.
7630 (do_define_command, document_command): Update.
7631 * breakpoint.h (check_tracepoint_command): Don't declare.
7632 * breakpoint.c (check_tracepoint_command): Remove.
7633 (commands_command_1, create_tracepoint_from_upload): Update.
7634
7635 2018-05-04 Tom Tromey <tom@tromey.com>
7636
7637 PR gdb/11750:
7638 * cli/cli-script.h (enum command_control_type) <define_control>:
7639 New constant.
7640 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7641 (build_command_line, execute_control_command_1)
7642 (process_next_line): Likewise.
7643 (do_define_command): New function, extracted from define_command.
7644 (define_command): Use it.
7645
7646 2018-05-04 Tom Tromey <tom@tromey.com>
7647
7648 * tracepoint.c (actions_command): Update.
7649 * cli/cli-script.h (read_command_lines): Update.
7650 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7651 (MAX_TMPBUF): Remove define.
7652 (define_command): Use string_printf.
7653 (document_command): Likewise.
7654 * breakpoint.c (commands_command_1): Update.
7655
7656 2018-05-04 Tom Tromey <tom@tromey.com>
7657
7658 * top.c (execute_command): Update.
7659 * cli/cli-script.h (print_command_lines): Now varargs.
7660 * cli/cli-script.c (print_command_lines): Now varargs.
7661 (execute_control_command_1) <case while_control, case if_control>:
7662 Update.
7663
7664 2018-05-04 Tom Tromey <tom@tromey.com>
7665
7666 * tracepoint.c (all_tracepoint_actions): Rename from
7667 all_tracepoint_actions_and_cleanup. Change return type.
7668 (actions_command, encode_actions_1, encode_actions)
7669 (trace_dump_actions, tdump_command): Update.
7670 * remote.c (remote_download_command_source): Update.
7671 * python/python.c (gdbpy_eval_from_control_command)
7672 (python_command, python_interactive_command): Update.
7673 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7674 * guile/guile.c (guile_command)
7675 (gdbscm_eval_from_control_command, guile_command): Update.
7676 * compile/compile.c (compile_code_command)
7677 (compile_print_command, compile_to_object): Update.
7678 * cli/cli-script.h (struct command_lines_deleter): New.
7679 (counted_command_line): New typedef.
7680 (struct command_line): Add constructor, destructor.
7681 <body_list>: Remove.
7682 <body_list_0, body_list_1>: New members.
7683 (command_line_up): Remove typedef.
7684 (read_command_lines, read_command_lines_1, get_command_line):
7685 Update.
7686 (copy_command_lines): Don't declare.
7687 * cli/cli-script.c (build_command_line): Use "new".
7688 (get_command_line): Return counted_command_line.
7689 (print_command_lines, execute_user_command)
7690 (execute_control_command_1, while_command, if_command): Update.
7691 (realloc_body_list): Remove.
7692 (process_next_line, recurse_read_control_structure): Update.
7693 (read_command_lines, read_command_lines_1): Return counted_command_line.
7694 (free_command_lines): Use "delete".
7695 (copy_command_lines): Remove.
7696 (define_command, document_command, show_user_1): Update.
7697 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7698 a counted_command_line.
7699 * breakpoint.h (counted_command_line): Remove typedef.
7700 (breakpoint_set_commands): Update.
7701 * breakpoint.c (check_no_tracepoint_commands)
7702 (validate_commands_for_breakpoint): Update.
7703 (breakpoint_set_commands): Change commands to be a
7704 counted_command_line.
7705 (commands_command_1, update_dprintf_command_list)
7706 (create_tracepoint_from_upload): Update.
7707
7708 2018-05-04 Tom Tromey <tom@tromey.com>
7709
7710 * cli/cli-decode.h (cmd_list_element): New constructor.
7711 (~cmd_list_element): New destructor.
7712 (struct cmd_list_element): Add initializers.
7713 * cli/cli-decode.c (do_add_cmd): Use "new".
7714 (delete_cmd): Use "delete".
7715
7716 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7717 Pedro Alves <palves@redhat.com>
7718
7719 PR breakpoints/19806 and support for PR external/20207.
7720 * NEWS: Mention Aarch64 watchpoint improvements.
7721 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7722 watchpoints and PR external/20207 watchpoints.
7723 * nat/aarch64-linux-hw-point.c
7724 (kernel_supports_any_contiguous_range): New.
7725 (aarch64_watchpoint_offset): New.
7726 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7727 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7728 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7729 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7730 next_addr_orig_p. Support PR external/20207 watchpoints.
7731 (aarch64_downgrade_regs): New.
7732 (aarch64_dr_state_insert_one_point): New parameters offset and
7733 addr_orig.
7734 (aarch64_dr_state_remove_one_point): Likewise.
7735 (aarch64_handle_breakpoint): Update caller.
7736 (aarch64_handle_aligned_watchpoint): Likewise.
7737 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7738 aligned_offset.
7739 (aarch64_linux_set_debug_regs): Remove const from state. Call
7740 aarch64_downgrade_regs.
7741 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7742 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7743 (DR_CONTROL_MASK): ... this.
7744 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7745 (unsigned int aarch64_watchpoint_offset): New prototype.
7746 (aarch64_linux_set_debug_regs): Remove const from state.
7747 * utils.c (align_up, align_down): Move to ...
7748 * common/common-utils.c (align_up, align_down): ... here.
7749 * utils.h (align_up, align_down): Move to ...
7750 * common/common-utils.h (align_up, align_down): ... here.
7751
7752 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7753
7754 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7755 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7756 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7757 Re-implement to match the ABI as summarized in GCC's
7758 gcc/config/sparc/sparc.c. All callers updated.
7759 (sparc32_store_arguments): Remove assertion.
7760
7761 2018-05-04 Tom Tromey <tom@tromey.com>
7762
7763 * printcmd.c: Don't include tui.h.
7764 (decode_format): Use skip_spaces.
7765
7766 2018-05-04 Tom Tromey <tom@tromey.com>
7767
7768 PR gdb/22619:
7769 * printcmd.c (last_count): New global.
7770 (x_command): Use saved count when repeating.
7771
7772 2018-05-04 Tom Tromey <tom@tromey.com>
7773
7774 * nto-procfs.c (do_closedir_cleanup): Remove.
7775 (procfs_pidlist): Use gdb_dir_up.
7776 * procfs.c (do_closedir_cleanup): Remove.
7777 (proc_update_threads): Use gdb_dir_up.
7778 * common/filestuff.h (struct gdb_dir_deleter): New.
7779 (gdb_dir_up): New typedef.
7780
7781 2018-05-04 Tom Tromey <tom@tromey.com>
7782
7783 * ada-lang.c (print_mention_exception): Use std::string.
7784
7785 2018-05-04 Tom Tromey <tom@tromey.com>
7786
7787 * ada-lang.c (create_excep_cond_exprs): Update.
7788 (ada_exception_catchpoint_cond_string): Use std::string.
7789
7790 2018-05-04 Tom Tromey <tom@tromey.com>
7791
7792 * ada-lang.c (xget_renaming_scope): Return std::string.
7793 (old_renaming_is_invisible): Update.
7794
7795 2018-05-04 Tom Tromey <tom@tromey.com>
7796
7797 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7798 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7799
7800 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7801
7802 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7803
7804 2018-05-04 Tom Tromey <tom@tromey.com>
7805
7806 * remote.c (remote_query_supported_append): Change type.
7807 (remote_check_symbols): Update.
7808
7809 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7810
7811 PR gdb/11420
7812 * configure.ac: Prepend libpython.
7813 * python/python-config.py: Likewise.
7814 * configure: Regenerate.
7815
7816 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7817
7818 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7819
7820 2018-05-03 Pedro Alves <palves@redhat.com>
7821
7822 * s390-linux-nat.c
7823 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7824 override. Write 'true' instead of '1'.
7825 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7826 declaration.
7827
7828 2018-05-02 Pedro Alves <palves@redhat.com>
7829
7830 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7831 add_inf_child_target.
7832 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7833 add_inf_child_target.
7834 * aix-thread.c (aix_thread_target_info): New.
7835 (aix_thread_target) <shortname, longname, doc>: Delete.
7836 <info>: New.
7837 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7838 add_inf_child_target.
7839 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7840 add_inf_child_target.
7841 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7842 add_inf_child_target.
7843 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7844 add_inf_child_target.
7845 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7846 add_inf_child_target.
7847 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7848 add_inf_child_target.
7849 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7850 add_inf_child_target.
7851 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7852 add_inf_child_target.
7853 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7854 add_inf_child_target.
7855 * bfd-target.c (target_bfd_target_info): New.
7856 (target_bfd) <shortname, longname, doc>: Delete.
7857 <info>: New.
7858 * bsd-kvm.c (bsd_kvm_target_info): New.
7859 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7860 <info>: New.
7861 (bsd_kvm_target::open): Rename to ...
7862 (bsd_kvm_target_open): ... this. Adjust.
7863 * bsd-uthread.c (bsd_uthread_target_info): New.
7864 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7865 <info>: New.
7866 * corefile.c (core_file_command): Adjust.
7867 * corelow.c (core_target_info): New.
7868 (core_target) <shortname, longname, doc>: Delete.
7869 <info>: New.
7870 (core_target::open): Rename to ...
7871 (core_target_open): ... this. Adjust.
7872 * ctf.c (ctf_target_info): New.
7873 (ctf_target) <shortname, longname, doc>: Delete.
7874 <info>: New.
7875 (ctf_target::open): Rename to ...
7876 (ctf_target_open): ... this.
7877 (_initialize_ctf): Adjust.
7878 * exec.c (exec_target_info): New.
7879 (exec_target) <shortname, longname, doc>: Delete.
7880 <info>: New.
7881 (exec_target::open): Rename to ...
7882 (exec_target_open): ... this.
7883 * gdbcore.h (core_target_open): Declare.
7884 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7885 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7886 add_inf_child_target.
7887 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7888 add_inf_child_target.
7889 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7890 add_inf_child_target.
7891 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7892 add_inf_child_target.
7893 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7894 add_inf_child_target.
7895 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7896 add_inf_child_target.
7897 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7898 add_inf_child_target.
7899 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7900 add_inf_child_target.
7901 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7902 add_inf_child_target.
7903 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7904 add_inf_child_target.
7905 * inf-child.c (inf_child_target_info): New.
7906 (inf_child_target::info): New.
7907 (inf_child_open_target): Remove 'target' parameter. Use
7908 get_native_target instead.
7909 (inf_child_target::open): Delete.
7910 (add_inf_child_target): New.
7911 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7912 Delete.
7913 <info>: New.
7914 (add_inf_child_target): Declare.
7915 (inf_child_open_target): Declare.
7916 * linux-thread-db.c (thread_db_target_info): New.
7917 (thread_db_target) <shortname, longname, doc>: Delete.
7918 <info>: New.
7919 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7920 add_inf_child_target.
7921 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7922 add_inf_child_target.
7923 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7924 add_inf_child_target.
7925 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7926 add_inf_child_target.
7927 * make-target-delegates (print_class): Adjust.
7928 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7929 add_inf_child_target.
7930 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7931 add_inf_child_target.
7932 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7933 add_inf_child_target.
7934 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7935 add_inf_child_target.
7936 * nto-procfs.c (nto_native_target_info): New.
7937 (nto_procfs_target_native) <shortname, longname, doc>:
7938 Delete.
7939 <info>: New.
7940 (nto_procfs_target_info): New.
7941 (nto_procfs_target_procfs) <shortname, longname, doc>:
7942 Delete.
7943 <info>: New.
7944 (init_procfs_targets): Adjust.
7945 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7946 add_inf_child_target.
7947 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7948 add_inf_child_target.
7949 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7950 add_inf_child_target.
7951 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7952 add_inf_child_target.
7953 * ravenscar-thread.c (ravenscar_target_info): New.
7954 (ravenscar_thread_target) <shortname, longname, doc>:
7955 Delete.
7956 <info>: New.
7957 * record-btrace.c (record_btrace_target_info):
7958 (record_btrace_target) <shortname, longname, doc>: Delete.
7959 <info>: New.
7960 (record_btrace_target::open): Rename to ...
7961 (record_btrace_target_open): ... this. Adjust.
7962 * record-full.c (record_longname, record_doc): New.
7963 (record_full_base_target) <shortname, longname, doc>: Delete.
7964 <info>: New.
7965 (record_full_target_info): New.
7966 (record_full_target): <shortname>: Delete.
7967 <info>: New.
7968 (record_full_core_open_1, record_full_open_1): Update comments.
7969 (record_full_base_target::open): Rename to ...
7970 (record_full_open): ... this.
7971 (cmd_record_full_restore): Update.
7972 (_initialize_record_full): Update.
7973 * remote-sim.c (remote_sim_target_info): New.
7974 (gdbsim_target) <shortname, longname, doc>: Delete.
7975 <info>: New.
7976 (gdbsim_target::open): Rename to ...
7977 (gdbsim_target_open): ... this.
7978 (_initialize_remote_sim): Adjust.
7979 * remote.c (remote_doc): New.
7980 (remote_target_info): New.
7981 (remote_target) <shortname, longname, doc>: Delete.
7982 <info>: New.
7983 (extended_remote_target_info): New.
7984 (extended_remote_target) <shortname, longname, doc>: Delete.
7985 <info>: New.
7986 (remote_target::open_1): Make static. Adjust.
7987 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7988 * s390-linux-nat.c (_initialize_s390_nat): Use
7989 add_inf_child_target.
7990 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7991 add_inf_child_target.
7992 * sol-thread.c (thread_db_target_info): New.
7993 (sol_thread_target) <shortname, longname, doc>: Delete.
7994 <info>: New.
7995 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7996 add_inf_child_target.
7997 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7998 add_inf_child_target.
7999 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8000 add_inf_child_target.
8001 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8002 add_inf_child_target.
8003 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8004 add_inf_child_target.
8005 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8006 add_inf_child_target.
8007 * spu-linux-nat.c (_initialize_spu_nat): Use
8008 add_inf_child_target.
8009 * spu-multiarch.c (spu_multiarch_target_info): New.
8010 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8011 <info>: New.
8012 * target-delegates.c: Regenerate.
8013 * target.c: Include <unordered_map>.
8014 (target_ops_p): Delete.
8015 (DEF_VEC_P(target_ops_p)): Delete.
8016 (target_factories): New.
8017 (test_target_info): New.
8018 (test_target_ops::info): New.
8019 (open_target): Adjust to use target_factories.
8020 (add_target_with_completer): Rename to ...
8021 (add_target): ... this. Change prototype. Register target_info
8022 and open callback in target_factories. Register target_info in
8023 command context instead of target_ops.
8024 (add_target): Delete old implementation.
8025 (add_deprecated_target_alias): Change prototype. Adjust.
8026 (the_native_target): New.
8027 (set_native_target, get_native_target): New.
8028 (find_default_run_target): Use the_native_target.
8029 (find_attach_target, find_run_target): Simplify.
8030 (target_ops::open): Delete.
8031 (dummy_target_info): New.
8032 (dummy_target::shortname, dummy_target::longname)
8033 (dummy_target::doc): Delete.
8034 (dummy_target::info): New.
8035 (debug_target::shortname, debug_target::longname)
8036 (debug_target::doc): Delete.
8037 (debug_target::info): New.
8038 * target.h (struct target_info): New.
8039 (target_ops::~target_ops): Add comment.
8040 (target_ops::info): New.
8041 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8042 longer virtual. Implement in terms of target_info.
8043 (set_native_target, get_native_target): Declare.
8044 (target_open_ftype): New.
8045 (add_target, add_target_with_completer)
8046 (add_deprecated_target_alias): Change prototype.
8047 (test_target) <shortname, longname, doc>: Delete.
8048 <info>: New.
8049 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8050 add_inf_child_target.
8051 * tracefile-tfile.c (tfile_target_info): New.
8052 (tfile_target) <shortname, longname, doc>: Delete.
8053 <info>: New.
8054 (tfile_target::open): Rename to ...
8055 (tfile_target_open): ... this.
8056 (_initialize_tracefile_tfile): Adjust.
8057 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8058 add_inf_child_target.
8059 * windows-nat.c (_initialize_windows_nat): Use
8060 add_inf_child_target.
8061 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8062 add_inf_child_target.
8063
8064 2018-05-02 Pedro Alves <palves@redhat.com>
8065
8066 * linux-nat.h (linux_nat_target) <low_new_thread,
8067 low_delete_thread, low_new_fork, low_forget_process,
8068 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8069 New virtual methods.
8070 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8071 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8072 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8073 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8074 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8075 Delete.
8076 * linux-fork.c (delete_fork): Adjust to call low method.
8077 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8078 (linux_nat_new_fork, linux_nat_forget_process_hook)
8079 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8080 (linux_nat_status_is_event):
8081 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8082 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8083 to call low method.
8084 (sigtrap_is_event): Rename to ...
8085 (linux_nat_target::low_status_is_event): ... this.
8086 (linux_nat_set_status_is_event): Delete.
8087 (save_stop_reason, linux_nat_wait_1)
8088 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8089 low methods.
8090 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8091 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8092 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8093 (linux_nat_set_prepare_to_resume): Delete.
8094 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8095 low virtual methods.
8096 * amd64-linux-nat.c: Likewise.
8097 * arm-linux-nat.c: Likewise.
8098 * i386-linux-nat.c: Likewise.
8099 * ia64-linux-nat.c: Likewise.
8100 * mips-linux-nat.c: Likewise.
8101 * ppc-linux-nat.c: Likewise.
8102 * s390-linux-nat.c: Likewise.
8103 * sparc64-linux-nat.c: Likewise.
8104 * x86-linux-nat.c: Likewise.
8105 * x86-linux-nat.h: Include "nat/x86-linux.h".
8106 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8107 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8108 Override methods.
8109
8110 2018-05-02 Pedro Alves <palves@redhat.com>
8111
8112 * target.h (target_ops)
8113 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8114 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8115 stopped_by_watchpoint, have_continuable_watchpoint,
8116 stopped_data_address, watchpoint_addr_within_range,
8117 can_accel_watchpoint_condition, can_run, thread_alive,
8118 has_all_memory, has_memory, has_stack, has_registers,
8119 has_execution, can_async_p, is_async_p, supports_non_stop,
8120 always_non_stop_p, can_execute_reverse, supports_multi_process,
8121 supports_enable_disable_tracepoint,
8122 supports_disable_randomization, supports_string_tracing,
8123 supports_evaluation_of_breakpoint_conditions,
8124 can_run_breakpoint_commands, filesystem_is_local,
8125 can_download_tracepoint, get_trace_state_variable_value,
8126 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8127 record_is_replaying, record_will_replay,
8128 augmented_libraries_svr4_read>: Adjust to return bool.
8129 * aarch64-linux-nat.c: All implementations adjusted.
8130 * aix-thread.c: All implementations adjusted.
8131 * arm-linux-nat.c: All implementations adjusted.
8132 * breakpoint.c: All implementations adjusted.
8133 * bsd-kvm.c: All implementations adjusted.
8134 * bsd-uthread.c: All implementations adjusted.
8135 * corelow.c: All implementations adjusted.
8136 * ctf.c: All implementations adjusted.
8137 * darwin-nat.c: All implementations adjusted.
8138 * darwin-nat.h: All implementations adjusted.
8139 * exec.c: All implementations adjusted.
8140 * fbsd-nat.c: All implementations adjusted.
8141 * fbsd-nat.h: All implementations adjusted.
8142 * gnu-nat.c: All implementations adjusted.
8143 * gnu-nat.h: All implementations adjusted.
8144 * go32-nat.c: All implementations adjusted.
8145 * ia64-linux-nat.c: All implementations adjusted.
8146 * inf-child.c: All implementations adjusted.
8147 * inf-child.h: All implementations adjusted.
8148 * inf-ptrace.c: All implementations adjusted.
8149 * inf-ptrace.h: All implementations adjusted.
8150 * linux-nat.c: All implementations adjusted.
8151 * linux-nat.h: All implementations adjusted.
8152 * mips-linux-nat.c: All implementations adjusted.
8153 * nto-procfs.c: All implementations adjusted.
8154 * ppc-linux-nat.c: All implementations adjusted.
8155 * procfs.c: All implementations adjusted.
8156 * ravenscar-thread.c: All implementations adjusted.
8157 * record-btrace.c: All implementations adjusted.
8158 * record-full.c: All implementations adjusted.
8159 * remote-sim.c: All implementations adjusted.
8160 * remote.c: All implementations adjusted.
8161 * s390-linux-nat.c: All implementations adjusted.
8162 * sol-thread.c: All implementations adjusted.
8163 * spu-multiarch.c: All implementations adjusted.
8164 * target-delegates.c: All implementations adjusted.
8165 * target.c: All implementations adjusted.
8166 * target.h: All implementations adjusted.
8167 * tracefile-tfile.c: All implementations adjusted.
8168 * tracefile.c: All implementations adjusted.
8169 * tracefile.h: All implementations adjusted.
8170 * windows-nat.c: All implementations adjusted.
8171 * x86-linux-nat.h: All implementations adjusted.
8172 * x86-nat.h: All implementations adjusted.
8173
8174 2018-05-02 Pedro Alves <palves@redhat.com>
8175
8176 * make-target-delegates (scan_target_h): Don't trim lines here.
8177 Replace sequences of tabs and/or whitespace with a single
8178 whitespace.
8179 (top level, parsing methods): Trim each line before processing it
8180 here.
8181
8182 2018-05-02 Pedro Alves <palves@redhat.com>
8183 John Baldwin <jhb@freebsd.org>
8184
8185 * target.h (enum strata) <debug_stratum>: New.
8186 (struct target_ops) <all delegation methods>: Replace by C++
8187 virtual methods, and drop "to_" prefix. All references updated
8188 throughout.
8189 <to_shortname, to_longname, to_doc, to_data,
8190 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8191 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8192 virtual methods. All references updated throughout.
8193 <can_attach, supports_terminal_ours, can_create_inferior,
8194 get_thread_control_capabilities, attach_no_wait>: New
8195 virtual methods.
8196 <insert_breakpoint, remove_breakpoint>: Now
8197 TARGET_DEFAULT_NORETURN methods.
8198 <info_proc>: Now returns bool.
8199 <to_magic>: Delete.
8200 (OPS_MAGIC): Delete.
8201 (current_target): Delete. All references replaced by references
8202 to ...
8203 (target_stack): ... this. New.
8204 (target_shortname, target_longname): Adjust.
8205 (target_can_run): Now a function declaration.
8206 (default_child_has_all_memory, default_child_has_memory)
8207 (default_child_has_stack, default_child_has_registers)
8208 (default_child_has_execution): Remove target_ops parameter.
8209 (complete_target_initialization): Delete.
8210 (memory_breakpoint_target): New template class.
8211 (test_target_ops): Refactor as a C++ class with virtual methods.
8212 * make-target-delegates (NAME_PART): Tighten.
8213 (POINTER_PART, CP_SYMBOL): New.
8214 (SIMPLE_RETURN_PART): Reimplement.
8215 (VEC_RETURN_PART): Expect less.
8216 (RETURN_PART, VIRTUAL_PART): New.
8217 (METHOD): Adjust to C++ virtual methods.
8218 (scan_target_h): Remove reference to C99.
8219 (dname): Output "target_ops::" prefix.
8220 (write_function_header): Adjust to output a C++ class method.
8221 (write_declaration): New.
8222 (write_delegator): Adjust to output a C++ class method.
8223 (tdname): Output "dummy_target::" prefix.
8224 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8225 method.
8226 (tdefault_names, debug_names): Delete.
8227 (return_types, tdefaults, styles, argtypes_array): New.
8228 (top level): All methods are delegators.
8229 (print_class): New.
8230 (top level): Print dummy_target and debug_target classes.
8231 * target-delegates.c: Regenerate.
8232 * target-debug.h (target_debug_print_enum_info_proc_what)
8233 (target_debug_print_thread_control_capabilities)
8234 (target_debug_print_thread_info_p): New.
8235 * target.c (dummy_target): Delete.
8236 (the_dummy_target, the_debug_target): New.
8237 (target_stack): Now extern.
8238 (set_targetdebug): Push/unpush debug target.
8239 (default_child_has_all_memory, default_child_has_memory)
8240 (default_child_has_stack, default_child_has_registers)
8241 (default_child_has_execution): Remove target_ops parameter.
8242 (complete_target_initialization): Delete.
8243 (add_target_with_completer): No longer call
8244 complete_target_initialization.
8245 (target_supports_terminal_ours): Use regular delegation.
8246 (update_current_target): Delete.
8247 (push_target): No longer check magic number. Don't call
8248 update_current_target.
8249 (unpush_target): Don't call update_current_target.
8250 (target_is_pushed): No longer check magic number.
8251 (target_require_runnable): Skip for all stratums over
8252 process_stratum.
8253 (target_ops::info_proc): New.
8254 (target_info_proc): Use find_target_at and
8255 find_default_run_target.
8256 (target_supports_disable_randomization): Use regular delegation.
8257 (target_get_osdata): Use find_target_at.
8258 (target_ops::open, target_ops::close, target_ops::can_attach)
8259 (target_ops::attach, target_ops::can_create_inferior)
8260 (target_ops::create_inferior, target_ops::can_run)
8261 (target_can_run): New.
8262 (default_fileio_target): Use regular delegation.
8263 (target_ops::fileio_open, target_ops::fileio_pwrite)
8264 (target_ops::fileio_pread, target_ops::fileio_fstat)
8265 (target_ops::fileio_close, target_ops::fileio_unlink)
8266 (target_ops::fileio_readlink): New.
8267 (target_fileio_open_1, target_fileio_unlink)
8268 (target_fileio_readlink): Always call the target method. Handle
8269 FILEIO_ENOSYS.
8270 (return_zero, return_zero_has_execution): Delete.
8271 (init_dummy_target): Delete.
8272 (dummy_target::dummy_target, dummy_target::shortname)
8273 (dummy_target::longname, dummy_target::doc)
8274 (debug_target::debug_target, debug_target::shortname)
8275 (debug_target::longname, debug_target::doc): New.
8276 (target_supports_delete_record): Use regular delegation.
8277 (setup_target_debug): Delete.
8278 (maintenance_print_target_stack): Skip debug_stratum.
8279 (initialize_targets): Instantiate the_dummy_target and
8280 the_debug_target.
8281 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8282 use target_stack.
8283 (target_auxv_search, fprint_target_auxv): Adjust.
8284 (info_auxv_command): Adjust to use target_stack.
8285 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8286 * exceptions.c (print_flush): Handle a NULL target_stack.
8287 * regcache.c (target_ops_no_register): Refactor as class with
8288 virtual methods.
8289
8290 * exec.c (exec_target): New class.
8291 (exec_ops): Now an exec_target.
8292 (exec_open, exec_close_1, exec_get_section_table)
8293 (exec_xfer_partial, exec_files_info, exec_has_memory)
8294 (exec_make_note_section): Refactor as exec_target methods.
8295 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8296 Delete.
8297 (exec_target::find_memory_regions): New.
8298 (_initialize_exec): Don't call init_exec_ops.
8299 * gdbcore.h (exec_file_clear): Delete.
8300
8301 * corefile.c (core_target): Delete.
8302 (core_file_command): Adjust.
8303 * corelow.c (core_target): New class.
8304 (the_core_target): New.
8305 (core_close): Remove target_ops parameter.
8306 (core_close_cleanup): Adjust.
8307 (core_target::close): New.
8308 (core_open, core_detach, get_core_registers, core_files_info)
8309 (core_xfer_partial, core_thread_alive, core_read_description)
8310 (core_pid_to_str, core_thread_name, core_has_memory)
8311 (core_has_stack, core_has_registers, core_info_proc): Rework as
8312 core_target methods.
8313 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8314 (_initialize_corelow): Initialize the_core_target.
8315 * gdbcore.h (core_target): Delete.
8316 (the_core_target): New.
8317
8318 * ctf.c: (ctf_target): New class.
8319 (ctf_ops): Now a ctf_target.
8320 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8321 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8322 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8323 methods.
8324 (init_ctf_ops): Delete.
8325 (_initialize_ctf): Don't call it.
8326 * tracefile-tfile.c (tfile_target): New class.
8327 (tfile_ops): Now a tfile_target.
8328 (tfile_open, tfile_close, tfile_files_info)
8329 (tfile_get_tracepoint_status, tfile_trace_find)
8330 (tfile_fetch_registers, tfile_xfer_partial)
8331 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8332 Refactor as tfile_target methods.
8333 (tfile_xfer_partial_features): Remove target_ops parameter.
8334 (init_tfile_ops): Delete.
8335 (_initialize_tracefile_tfile): Don't call it.
8336 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8337 (tracefile_has_stack, tracefile_has_registers)
8338 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8339 tracefile_target methods.
8340 (init_tracefile_ops): Delete.
8341 (tracefile_target::tracefile_target): New.
8342 * tracefile.h: Include "target.h".
8343 (tracefile_target): New class.
8344 (init_tracefile_ops): Delete.
8345
8346 * spu-multiarch.c (spu_multiarch_target): New class.
8347 (spu_ops): Now a spu_multiarch_target.
8348 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8349 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8350 (spu_search_memory, spu_mourn_inferior): Refactor as
8351 spu_multiarch_target methods.
8352 (init_spu_ops): Delete.
8353 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8354 complete_target_initialization.
8355
8356 * ravenscar-thread.c (ravenscar_thread_target): New class.
8357 (ravenscar_ops): Now a ravenscar_thread_target.
8358 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8359 (ravenscar_thread_alive, ravenscar_pid_to_str)
8360 (ravenscar_fetch_registers, ravenscar_store_registers)
8361 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8362 (ravenscar_stopped_by_hw_breakpoint)
8363 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8364 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8365 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8366 methods.
8367 (init_ravenscar_thread_ops): Delete.
8368 (_initialize_ravenscar): Remove references to
8369 init_ravenscar_thread_ops and complete_target_initialization.
8370
8371 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8372 (bsd_uthread_target): New class.
8373 (bsd_uthread_ops): Now a bsd_uthread_target.
8374 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8375 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8376 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8377 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8378 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8379 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8380 (bsd_uthread_target): Delete function.
8381 (_initialize_bsd_uthread): Remove reference to
8382 complete_target_initialization.
8383
8384 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8385 (target_bfd): ... this new class.
8386 (target_bfd_xfer_partial, target_bfd_get_section_table)
8387 (target_bfd_close): Refactor as target_bfd methods.
8388 (target_bfd::~target_bfd): New.
8389 (target_bfd_reopen): Adjust.
8390 (target_bfd::close): New.
8391
8392 * record-btrace.c (record_btrace_target): New class.
8393 (record_btrace_ops): Now a record_btrace_target.
8394 (record_btrace_open, record_btrace_stop_recording)
8395 (record_btrace_disconnect, record_btrace_close)
8396 (record_btrace_async, record_btrace_info)
8397 (record_btrace_insn_history, record_btrace_insn_history_range)
8398 (record_btrace_insn_history_from, record_btrace_call_history)
8399 (record_btrace_call_history_range)
8400 (record_btrace_call_history_from, record_btrace_record_method)
8401 (record_btrace_is_replaying, record_btrace_will_replay)
8402 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8403 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8404 (record_btrace_store_registers, record_btrace_prepare_to_store)
8405 (record_btrace_to_get_unwinder)
8406 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8407 (record_btrace_commit_resume, record_btrace_wait)
8408 (record_btrace_stop, record_btrace_can_execute_reverse)
8409 (record_btrace_stopped_by_sw_breakpoint)
8410 (record_btrace_supports_stopped_by_sw_breakpoint)
8411 (record_btrace_stopped_by_hw_breakpoint)
8412 (record_btrace_supports_stopped_by_hw_breakpoint)
8413 (record_btrace_update_thread_list, record_btrace_thread_alive)
8414 (record_btrace_goto_begin, record_btrace_goto_end)
8415 (record_btrace_goto, record_btrace_stop_replaying_all)
8416 (record_btrace_execution_direction)
8417 (record_btrace_prepare_to_generate_core)
8418 (record_btrace_done_generating_core): Refactor as
8419 record_btrace_target methods.
8420 (init_record_btrace_ops): Delete.
8421 (_initialize_record_btrace): Remove reference to
8422 init_record_btrace_ops.
8423 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8424 the execution_direction global.
8425 (record_full_base_target, record_full_target)
8426 (record_full_core_target): New classes.
8427 (record_full_ops): Now a record_full_target.
8428 (record_full_core_ops): Now a record_full_core_target.
8429 (record_full_target::detach, record_full_target::disconnect)
8430 (record_full_core_target::disconnect)
8431 (record_full_target::mourn_inferior, record_full_target::kill):
8432 New.
8433 (record_full_open, record_full_close, record_full_async): Refactor
8434 as methods of the record_full_base_target class.
8435 (record_full_resume, record_full_commit_resume): Refactor
8436 as methods of the record_full_target class.
8437 (record_full_wait, record_full_stopped_by_watchpoint)
8438 (record_full_stopped_data_address)
8439 (record_full_stopped_by_sw_breakpoint)
8440 (record_full_supports_stopped_by_sw_breakpoint)
8441 (record_full_stopped_by_hw_breakpoint)
8442 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8443 methods of the record_full_base_target class.
8444 (record_full_store_registers, record_full_xfer_partial)
8445 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8446 Refactor as methods of the record_full_target class.
8447 (record_full_can_execute_reverse, record_full_get_bookmark)
8448 (record_full_goto_bookmark, record_full_execution_direction)
8449 (record_full_record_method, record_full_info, record_full_delete)
8450 (record_full_is_replaying, record_full_will_replay)
8451 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8452 (record_full_stop_replaying): Refactor as methods of the
8453 record_full_base_target class.
8454 (record_full_core_resume, record_full_core_kill)
8455 (record_full_core_fetch_registers)
8456 (record_full_core_prepare_to_store)
8457 (record_full_core_store_registers, record_full_core_xfer_partial)
8458 (record_full_core_insert_breakpoint)
8459 (record_full_core_remove_breakpoint)
8460 (record_full_core_has_execution): Refactor
8461 as methods of the record_full_core_target class.
8462 (record_full_base_target::supports_delete_record): New.
8463 (init_record_full_ops): Delete.
8464 (init_record_full_core_ops): Delete.
8465 (record_full_save): Refactor as method of the
8466 record_full_base_target class.
8467 (_initialize_record_full): Remove references to
8468 init_record_full_ops and init_record_full_core_ops.
8469
8470 * remote.c (remote_target, extended_remote_target): New classes.
8471 (remote_ops): Now a remote_target.
8472 (extended_remote_ops): Now an extended_remote_target.
8473 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8474 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8475 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8476 (remote_pass_signals, remote_set_syscall_catchpoint)
8477 (remote_program_signals, )
8478 (remote_thread_always_alive): Remove target_ops parameter.
8479 (remote_thread_alive, remote_thread_name)
8480 (remote_update_thread_list, remote_threads_extra_info)
8481 (remote_static_tracepoint_marker_at)
8482 (remote_static_tracepoint_markers_by_strid)
8483 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8484 (remote_open): Refactor as methods of remote_target.
8485 (extended_remote_open, extended_remote_detach)
8486 (extended_remote_attach, extended_remote_post_attach):
8487 (extended_remote_supports_disable_randomization)
8488 (extended_remote_create_inferior): : Refactor as method of
8489 extended_remote_target.
8490 (remote_set_permissions, remote_open_1, remote_detach)
8491 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8492 (remote_resume, remote_commit_resume, remote_stop)
8493 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8494 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8495 (remote_prepare_to_store, remote_store_registers)
8496 (remote_flash_erase, remote_flash_done, remote_files_info)
8497 (remote_kill, remote_mourn, remote_insert_breakpoint)
8498 (remote_remove_breakpoint, remote_insert_watchpoint)
8499 (remote_watchpoint_addr_within_range)
8500 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8501 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8502 (remote_supports_stopped_by_sw_breakpoint)
8503 (remote_stopped_by_hw_breakpoint)
8504 (remote_supports_stopped_by_hw_breakpoint)
8505 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8506 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8507 (remote_verify_memory): Refactor as methods of remote_target.
8508 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8509 parameter.
8510 (remote_xfer_partial, remote_get_memory_xfer_limit)
8511 (remote_search_memory, remote_rcmd, remote_memory_map)
8512 (remote_pid_to_str, remote_get_thread_local_address)
8513 (remote_get_tib_address, remote_read_description): Refactor as
8514 methods of remote_target.
8515 (remote_target::fileio_open, remote_target::fileio_pwrite)
8516 (remote_target::fileio_pread, remote_target::fileio_close): New.
8517 (remote_hostio_readlink, remote_hostio_fstat)
8518 (remote_filesystem_is_local, remote_can_execute_reverse)
8519 (remote_supports_non_stop, remote_supports_disable_randomization)
8520 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8521 (remote_supports_enable_disable_tracepoint)
8522 (remote_supports_string_tracing)
8523 (remote_can_run_breakpoint_commands, remote_trace_init)
8524 (remote_download_tracepoint, remote_can_download_tracepoint)
8525 (remote_download_trace_state_variable, remote_enable_tracepoint)
8526 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8527 (remote_trace_start, remote_get_trace_status)
8528 (remote_get_tracepoint_status, remote_trace_stop)
8529 (remote_trace_find, remote_get_trace_state_variable_value)
8530 (remote_save_trace_data, remote_get_raw_trace_data)
8531 (remote_set_disconnected_tracing, remote_core_of_thread)
8532 (remote_set_circular_trace_buffer, remote_traceframe_info)
8533 (remote_get_min_fast_tracepoint_insn_len)
8534 (remote_set_trace_buffer_size, remote_set_trace_notes)
8535 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8536 (remote_disable_btrace, remote_teardown_btrace)
8537 (remote_read_btrace, remote_btrace_conf)
8538 (remote_augmented_libraries_svr4_read, remote_load)
8539 (remote_pid_to_exec_file, remote_can_do_single_step)
8540 (remote_execution_direction, remote_thread_handle_to_thread_info):
8541 Refactor as methods of remote_target.
8542 (init_remote_ops, init_extended_remote_ops): Delete.
8543 (remote_can_async_p, remote_is_async_p, remote_async)
8544 (remote_thread_events, remote_upload_tracepoints)
8545 (remote_upload_trace_state_variables): Refactor as methods of
8546 remote_target.
8547 (_initialize_remote): Remove references to init_remote_ops and
8548 init_extended_remote_ops.
8549
8550 * remote-sim.c (gdbsim_target): New class.
8551 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8552 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8553 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8554 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8555 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8556 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8557 Refactor as methods of gdbsim_target.
8558 (gdbsim_ops): Now a gdbsim_target.
8559 (init_gdbsim_ops): Delete.
8560 (gdbsim_cntrl_c): Adjust.
8561 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8562
8563 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8564 (the_amd64_linux_nat_target): New.
8565 (amd64_linux_fetch_inferior_registers)
8566 (amd64_linux_store_inferior_registers): Refactor as methods of
8567 amd64_linux_nat_target.
8568 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8569 * i386-linux-nat.c: Don't include "linux-nat.h".
8570 (i386_linux_nat_target): New class.
8571 (the_i386_linux_nat_target): New.
8572 (i386_linux_fetch_inferior_registers)
8573 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8574 as methods of i386_linux_nat_target.
8575 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8576 * inf-child.c (inf_child_ops): Delete.
8577 (inf_child_fetch_inferior_registers)
8578 (inf_child_store_inferior_registers): Delete.
8579 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8580 methods of inf_child_target.
8581 (inf_child_target::supports_terminal_ours)
8582 (inf_child_target::terminal_init)
8583 (inf_child_target::terminal_inferior)
8584 (inf_child_target::terminal_ours_for_output)
8585 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8586 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8587 New.
8588 (inf_child_open, inf_child_disconnect, inf_child_close)
8589 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8590 (inf_child_post_startup_inferior, inf_child_can_run)
8591 (inf_child_pid_to_exec_file): Refactor as methods of
8592 inf_child_target.
8593 (inf_child_follow_fork): Delete.
8594 (inf_child_target::can_create_inferior)
8595 (inf_child_target::can_attach): New.
8596 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8597 (inf_child_target::has_stack, inf_child_target::has_registers)
8598 (inf_child_target::has_execution): New.
8599 (inf_child_fileio_open, inf_child_fileio_pwrite)
8600 (inf_child_fileio_pread, inf_child_fileio_fstat)
8601 (inf_child_fileio_close, inf_child_fileio_unlink)
8602 (inf_child_fileio_readlink, inf_child_use_agent)
8603 (inf_child_can_use_agent): Refactor as methods of
8604 inf_child_target.
8605 (return_zero, inf_child_target): Delete.
8606 (inf_child_target::inf_child_target): New.
8607 * inf-child.h: Include "target.h".
8608 (inf_child_target): Delete function prototype.
8609 (inf_child_target): New class.
8610 (inf_child_open_target, inf_child_mourn_inferior)
8611 (inf_child_maybe_unpush_target): Delete.
8612 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8613 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8614 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8615 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8616 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8617 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8618 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8619 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8620 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8621 methods of inf_ptrace_target.
8622 (inf_ptrace_target): Delete function.
8623 * inf-ptrace.h: Include "inf-child.h".
8624 (inf_ptrace_target): Delete function declaration.
8625 (inf_ptrace_target): New class.
8626 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8627 * linux-nat.c (linux_target): New.
8628 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8629 (linux_nat_target::~linux_nat_target): New.
8630 (linux_child_post_attach, linux_child_post_startup_inferior)
8631 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8632 (linux_child_remove_fork_catchpoint)
8633 (linux_child_insert_vfork_catchpoint)
8634 (linux_child_remove_vfork_catchpoint)
8635 (linux_child_insert_exec_catchpoint)
8636 (linux_child_remove_exec_catchpoint)
8637 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8638 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8639 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8640 (linux_nat_stopped_data_address)
8641 (linux_nat_stopped_by_sw_breakpoint)
8642 (linux_nat_supports_stopped_by_sw_breakpoint)
8643 (linux_nat_stopped_by_hw_breakpoint)
8644 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8645 (linux_nat_kill, linux_nat_mourn_inferior)
8646 (linux_nat_xfer_partial, linux_nat_thread_alive)
8647 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8648 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8649 (linux_child_static_tracepoint_markers_by_strid)
8650 (linux_nat_is_async_p, linux_nat_can_async_p)
8651 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8652 (linux_nat_supports_multi_process)
8653 (linux_nat_supports_disable_randomization, linux_nat_async)
8654 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8655 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8656 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8657 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8658 methods of linux_nat_target.
8659 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8660 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8661 parameter.
8662 (check_stopped_by_watchpoint): Adjust.
8663 (linux_xfer_partial): Delete.
8664 (linux_target_install_ops, linux_target, linux_nat_add_target):
8665 Delete.
8666 (linux_nat_target::linux_nat_target): New.
8667 * linux-nat.h: Include "inf-ptrace.h".
8668 (linux_nat_target): New.
8669 (linux_target, linux_target_install_ops, linux_nat_add_target):
8670 Delete function declarations.
8671 (linux_target): Declare global.
8672 * linux-thread-db.c (thread_db_target): New.
8673 (thread_db_target::thread_db_target): New.
8674 (thread_db_ops): Delete.
8675 (the_thread_db_target): New.
8676 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8677 (thread_db_update_thread_list, thread_db_pid_to_str)
8678 (thread_db_extra_thread_info)
8679 (thread_db_thread_handle_to_thread_info)
8680 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8681 (thread_db_resume): Refactor as methods of thread_db_target.
8682 (init_thread_db_ops): Delete.
8683 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8684 * x86-linux-nat.c: Don't include "linux-nat.h".
8685 (super_post_startup_inferior): Delete.
8686 (x86_linux_nat_target::~x86_linux_nat_target): New.
8687 (x86_linux_child_post_startup_inferior)
8688 (x86_linux_read_description, x86_linux_enable_btrace)
8689 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8690 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8691 methods of x86_linux_nat_target.
8692 (x86_linux_create_target): Delete. Bits folded ...
8693 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8694 pointer.
8695 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8696 (x86_linux_nat_target): New class.
8697 (x86_linux_create_target): Delete.
8698 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8699 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8700 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8701 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8702 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8703 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8704 make extern.
8705 (x86_use_watchpoints): Delete.
8706 * x86-nat.h: Include "breakpoint.h" and "target.h".
8707 (x86_use_watchpoints): Delete.
8708 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8709 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8710 (x86_insert_watchpoint, x86_remove_watchpoint)
8711 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8712 (x86_stopped_by_hw_breakpoint): New declarations.
8713 (x86_nat_target): New template class.
8714
8715 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8716 (the_ppc_linux_nat_target): New.
8717 (ppc_linux_fetch_inferior_registers)
8718 (ppc_linux_can_use_hw_breakpoint)
8719 (ppc_linux_region_ok_for_hw_watchpoint)
8720 (ppc_linux_ranged_break_num_registers)
8721 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8722 (ppc_linux_insert_mask_watchpoint)
8723 (ppc_linux_remove_mask_watchpoint)
8724 (ppc_linux_can_accel_watchpoint_condition)
8725 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8726 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8727 (ppc_linux_watchpoint_addr_within_range)
8728 (ppc_linux_masked_watch_num_registers)
8729 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8730 (ppc_linux_read_description): Refactor as methods of
8731 ppc_linux_nat_target.
8732 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8733
8734 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8735 (procfs_target): New class.
8736 (the_procfs_target): New.
8737 (procfs_target): Delete function.
8738 (procfs_auxv_parse, procfs_attach, procfs_detach)
8739 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8740 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8741 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8742 (procfs_create_inferior, procfs_update_thread_list)
8743 (procfs_thread_alive, procfs_pid_to_str)
8744 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8745 (procfs_stopped_data_address, procfs_insert_watchpoint)
8746 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8747 (proc_find_memory_regions, procfs_info_proc)
8748 (procfs_make_note_section): Refactor as methods of procfs_target.
8749 (_initialize_procfs): Adjust.
8750 * sol-thread.c (sol_thread_target): New class.
8751 (sol_thread_ops): Now a sol_thread_target.
8752 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8753 (sol_thread_fetch_registers, sol_thread_store_registers)
8754 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8755 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8756 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8757 (init_sol_thread_ops): Delete.
8758 (_initialize_sol_thread): Adjust. Remove references to
8759 init_sol_thread_ops and complete_target_initialization.
8760
8761 * windows-nat.c (windows_nat_target): New class.
8762 (windows_fetch_inferior_registers)
8763 (windows_store_inferior_registers, windows_resume, windows_wait)
8764 (windows_attach, windows_detach, windows_pid_to_exec_file)
8765 (windows_files_info, windows_create_inferior)
8766 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8767 (windows_close, windows_pid_to_str, windows_xfer_partial)
8768 (windows_get_tib_address, windows_get_ada_task_ptid)
8769 (windows_thread_name, windows_thread_alive): Refactor as
8770 windows_nat_target methods.
8771 (do_initial_windows_stuff): Adjust.
8772 (windows_target): Delete function.
8773 (_initialize_windows_nat): Adjust.
8774
8775 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8776 (darwin_mourn_inferior, darwin_kill_inferior)
8777 (darwin_create_inferior, darwin_attach, darwin_detach)
8778 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8779 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8780 (darwin_supports_multi_process): Refactor as darwin_nat_target
8781 methods.
8782 (darwin_resume_to, darwin_files_info): Delete.
8783 (_initialize_darwin_inferior): Rename to ...
8784 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8785 * darwin-nat.h: Include "inf-child.h".
8786 (darwin_nat_target): New class.
8787 (darwin_complete_target): Delete.
8788 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8789 (darwin_target): New.
8790 (i386_darwin_fetch_inferior_registers)
8791 (i386_darwin_store_inferior_registers): Refactor as methods of
8792 darwin_nat_target.
8793 (darwin_complete_target): Delete, with ...
8794 (_initialize_i386_darwin_nat): ... bits factored out here.
8795
8796 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8797 (the_alpha_linux_nat_target): New.
8798 (alpha_linux_register_u_offset): Refactor as
8799 alpha_linux_nat_target method.
8800 (_initialize_alpha_linux_nat): Adjust.
8801 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8802 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8803 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8804 methods of linux_nat_trad_target.
8805 (linux_trad_target): Delete.
8806 * linux-nat-trad.h (linux_trad_target): Delete function.
8807 (linux_nat_trad_target): New class.
8808 * mips-linux-nat.c (mips_linux_nat_target): New class.
8809 (super_fetch_registers, super_store_registers, super_close):
8810 Delete.
8811 (the_mips_linux_nat_target): New.
8812 (mips64_linux_regsets_fetch_registers)
8813 (mips64_linux_regsets_store_registers)
8814 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8815 (mips_linux_register_u_offset, mips_linux_read_description)
8816 (mips_linux_can_use_hw_breakpoint)
8817 (mips_linux_stopped_by_watchpoint)
8818 (mips_linux_stopped_data_address)
8819 (mips_linux_region_ok_for_hw_watchpoint)
8820 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8821 (mips_linux_close): Refactor as methods of mips_linux_nat.
8822 (_initialize_mips_linux_nat): Adjust to C++ification.
8823
8824 * aix-thread.c (aix_thread_target): New class.
8825 (aix_thread_ops): Now an aix_thread_target.
8826 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8827 (aix_thread_fetch_registers, aix_thread_store_registers)
8828 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8829 (aix_thread_thread_alive, aix_thread_pid_to_str)
8830 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8831 Refactor as methods of aix_thread_target.
8832 (init_aix_thread_ops): Delete.
8833 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8834 and complete_target_initialization.
8835 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8836 (rs6000_nat_target): New class.
8837 (the_rs6000_nat_target): New.
8838 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8839 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8840 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8841 (super_create_inferior): Delete.
8842 (_initialize_rs6000_nat): Adjust to C++ification.
8843
8844 * arm-linux-nat.c (arm_linux_nat_target): New class.
8845 (the_arm_linux_nat_target): New.
8846 (arm_linux_fetch_inferior_registers)
8847 (arm_linux_store_inferior_registers, arm_linux_read_description)
8848 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8849 (arm_linux_remove_hw_breakpoint)
8850 (arm_linux_region_ok_for_hw_watchpoint)
8851 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8852 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8853 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8854 arm_linux_nat_target.
8855 (_initialize_arm_linux_nat): Adjust to C++ification.
8856
8857 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8858 (the_aarch64_linux_nat_target): New.
8859 (aarch64_linux_fetch_inferior_registers)
8860 (aarch64_linux_store_inferior_registers)
8861 (aarch64_linux_child_post_startup_inferior)
8862 (aarch64_linux_read_description)
8863 (aarch64_linux_can_use_hw_breakpoint)
8864 (aarch64_linux_insert_hw_breakpoint)
8865 (aarch64_linux_remove_hw_breakpoint)
8866 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8867 (aarch64_linux_region_ok_for_hw_watchpoint)
8868 (aarch64_linux_stopped_data_address)
8869 (aarch64_linux_stopped_by_watchpoint)
8870 (aarch64_linux_watchpoint_addr_within_range)
8871 (aarch64_linux_can_do_single_step): Refactor as methods of
8872 aarch64_linux_nat_target.
8873 (super_post_startup_inferior): Delete.
8874 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8875
8876 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8877 (the_hppa_linux_nat_target): New.
8878 (hppa_linux_fetch_inferior_registers)
8879 (hppa_linux_store_inferior_registers): Refactor as methods of
8880 hppa_linux_nat_target.
8881 (_initialize_hppa_linux_nat): Adjust to C++ification.
8882
8883 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8884 (the_ia64_linux_nat_target): New.
8885 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8886 (ia64_linux_stopped_data_address)
8887 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8888 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8889 ia64_linux_nat_target methods.
8890 (super_xfer_partial): Delete.
8891 (_initialize_ia64_linux_nat): Adjust to C++ification.
8892
8893 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8894 (the_m32r_linux_nat_target): New.
8895 (m32r_linux_fetch_inferior_registers)
8896 (m32r_linux_store_inferior_registers): Refactor as
8897 m32r_linux_nat_target methods.
8898 (_initialize_m32r_linux_nat): Adjust to C++ification.
8899
8900 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8901 (the_m68k_linux_nat_target): New.
8902 (m68k_linux_fetch_inferior_registers)
8903 (m68k_linux_store_inferior_registers): Refactor as
8904 m68k_linux_nat_target methods.
8905 (_initialize_m68k_linux_nat): Adjust to C++ification.
8906
8907 * s390-linux-nat.c (s390_linux_nat_target): New class.
8908 (the_s390_linux_nat_target): New.
8909 (s390_linux_fetch_inferior_registers)
8910 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8911 (s390_insert_watchpoint, s390_remove_watchpoint)
8912 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8913 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8914 (s390_auxv_parse, s390_read_description): Refactor as methods of
8915 s390_linux_nat_target.
8916 (_initialize_s390_nat): Adjust to C++ification.
8917
8918 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8919 (the_sparc_linux_nat_target): New.
8920 (_initialize_sparc_linux_nat): Adjust to C++ification.
8921 * sparc-nat.c (sparc_fetch_inferior_registers)
8922 (sparc_store_inferior_registers): Remove target_ops parameter.
8923 * sparc-nat.h (sparc_fetch_inferior_registers)
8924 (sparc_store_inferior_registers): Remove target_ops parameter.
8925 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8926 (the_sparc64_linux_nat_target): New.
8927 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8928
8929 * spu-linux-nat.c (spu_linux_nat_target): New class.
8930 (the_spu_linux_nat_target): New.
8931 (spu_child_post_startup_inferior, spu_child_post_attach)
8932 (spu_child_wait, spu_fetch_inferior_registers)
8933 (spu_store_inferior_registers, spu_xfer_partial)
8934 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8935 methods.
8936 (_initialize_spu_nat): Adjust to C++ification.
8937
8938 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8939 (the_tilegx_linux_nat_target): New.
8940 (fetch_inferior_registers, store_inferior_registers):
8941 Refactor as methods.
8942 (_initialize_tile_linux_nat): Adjust to C++ification.
8943
8944 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8945 (the_xtensa_linux_nat_target): New.
8946 (xtensa_linux_fetch_inferior_registers)
8947 (xtensa_linux_store_inferior_registers): Refactor as
8948 xtensa_linux_nat_target methods.
8949 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8950
8951 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8952 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8953 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8954 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8955 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8956 (fbsd_stopped_by_sw_breakpoint)
8957 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8958 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8959 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8960 (fbsd_post_startup_inferior, fbsd_post_attach)
8961 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8962 (fbsd_set_syscall_catchpoint)
8963 (super_xfer_partial, super_resume, super_wait)
8964 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8965 (fbsd_handle_debug_trap): Remove target_ops parameter.
8966 (fbsd_nat_add_target): Delete.
8967 * fbsd-nat.h: Include "inf-ptrace.h".
8968 (fbsd_nat_add_target): Delete.
8969 (USE_SIGTRAP_SIGINFO): Define.
8970 (fbsd_nat_target): New class.
8971
8972 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8973 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8974 (amd64bsd_target): Delete.
8975 * amd64-bsd-nat.h: New file.
8976 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8977 "x86-bsd-nat.h".
8978 (amd64_fbsd_nat_target): New class.
8979 (the_amd64_fbsd_nat_target): New.
8980 (amd64fbsd_read_description): Refactor as method of
8981 amd64_fbsd_nat_target.
8982 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8983 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8984 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8985 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8986 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8987 (i386bsd_target): Delete.
8988 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8989 (i386bsd_fetch_inferior_registers)
8990 (i386bsd_store_inferior_registers): Declare.
8991 (i386_bsd_nat_target): New class.
8992 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8993 (the_i386_fbsd_nat_target): New.
8994 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8995 i386_fbsd_nat_target methods.
8996 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8997 (_initialize_i386fbsd_nat): Adjust to C++ification.
8998 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8999 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9000 (_initialize_x86_bsd_nat): Adjust to C++ification.
9001 * x86-bsd-nat.h: Include "x86-nat.h".
9002 (x86bsd_target): Delete declaration.
9003 (x86bsd_nat_target): New class.
9004
9005 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9006 (the_aarch64_fbsd_nat_target): New.
9007 (aarch64_fbsd_fetch_inferior_registers)
9008 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9009 aarch64_fbsd_nat_target.
9010 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9011 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9012 (the_alpha_bsd_nat_target): New.
9013 (alphabsd_fetch_inferior_registers)
9014 (alphabsd_store_inferior_registers): Refactor as
9015 alpha_bsd_nat_target methods.
9016 (_initialize_alphabsd_nat): Refactor as methods of
9017 alpha_bsd_nat_target.
9018 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9019 (the_amd64_nbsd_nat_target): New.
9020 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9021 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9022 (the_amd64_obsd_nat_target): New.
9023 (_initialize_amd64obsd_nat): Adjust to C++ification.
9024 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9025 (the_arm_fbsd_nat_target): New.
9026 (arm_fbsd_fetch_inferior_registers)
9027 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9028 (_initialize_arm_fbsd_nat): Refactor as methods of
9029 arm_fbsd_nat_target.
9030 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9031 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9032 (the_arm_netbsd_nat_target): New.
9033 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9034 arm_netbsd_nat_target.
9035 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9036 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9037 (the_hppa_nbsd_nat_target): New.
9038 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9039 hppa_nbsd_nat_target methods.
9040 (_initialize_hppanbsd_nat): Adjust to C++ification.
9041 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9042 (the_hppa_obsd_nat_target): New.
9043 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9044 methods of hppa_obsd_nat_target.
9045 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9046 add_target.
9047 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9048 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9049 add_target.
9050 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9051 (_initialize_i386obsd_nat): Use add_target.
9052 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9053 (the_m68k_bsd_nat_target): New.
9054 (m68kbsd_fetch_inferior_registers)
9055 (m68kbsd_store_inferior_registers): Refactor as methods of
9056 m68k_bsd_nat_target.
9057 (_initialize_m68kbsd_nat): Adjust to C++ification.
9058 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9059 (the_mips_fbsd_nat_target): New.
9060 (mips_fbsd_fetch_inferior_registers)
9061 (mips_fbsd_store_inferior_registers): Refactor as methods of
9062 mips_fbsd_nat_target.
9063 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9064 add_target.
9065 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9066 (the_mips_nbsd_nat_target): New.
9067 (mipsnbsd_fetch_inferior_registers)
9068 (mipsnbsd_store_inferior_registers): Refactor as methods of
9069 mips_nbsd_nat_target.
9070 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9071 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9072 (the_mips64_obsd_nat_target): New.
9073 (mips64obsd_fetch_inferior_registers)
9074 (mips64obsd_store_inferior_registers): Refactor as methods of
9075 mips64_obsd_nat_target.
9076 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9077 add_target.
9078 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9079 nbsd_nat_target.
9080 * nbsd-nat.h: Include "inf-ptrace.h".
9081 (nbsd_nat_target): New class.
9082 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9083 (obsd_wait): Refactor as methods of obsd_nat_target.
9084 (obsd_add_target): Delete.
9085 * obsd-nat.h: Include "inf-ptrace.h".
9086 (obsd_nat_target): New class.
9087 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9088 (the_ppc_fbsd_nat_target): New.
9089 (ppcfbsd_fetch_inferior_registers)
9090 (ppcfbsd_store_inferior_registers): Refactor as methods of
9091 ppc_fbsd_nat_target.
9092 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9093 add_target.
9094 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9095 (the_ppc_nbsd_nat_target): New.
9096 (ppcnbsd_fetch_inferior_registers)
9097 (ppcnbsd_store_inferior_registers): Refactor as methods of
9098 ppc_nbsd_nat_target.
9099 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9100 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9101 (the_ppc_obsd_nat_target): New.
9102 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9103 methods of ppc_obsd_nat_target.
9104 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9105 add_target.
9106 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9107 (the_sh_nbsd_nat_target): New.
9108 (shnbsd_fetch_inferior_registers)
9109 (shnbsd_store_inferior_registers): Refactor as methods of
9110 sh_nbsd_nat_target.
9111 (_initialize_shnbsd_nat): Adjust to C++ification.
9112 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9113 (inf_ptrace_xfer_partial): Delete.
9114 (sparc_xfer_partial, sparc_target): Delete.
9115 * sparc-nat.h (sparc_fetch_inferior_registers)
9116 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9117 (sparc_target): Delete function declaration.
9118 (sparc_target): New template class.
9119 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9120 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9121 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9122 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9123 add_target.
9124 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9125 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9126 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9127 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9128 add_target.
9129 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9130 (the_vax_bsd_nat_target): New.
9131 (vaxbsd_fetch_inferior_registers)
9132 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9133 methods.
9134 (_initialize_vaxbsd_nat): Adjust to C++ification.
9135
9136 * bsd-kvm.c (bsd_kvm_target): New class.
9137 (bsd_kvm_ops): Now a bsd_kvm_target.
9138 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9139 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9140 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9141 bsd_kvm_target.
9142 (bsd_kvm_return_one): Delete.
9143 (bsd_kvm_add_target): Adjust to C++ification.
9144
9145 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9146 (nto_procfs_target_procfs): New classes.
9147 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9148 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9149 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9150 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9151 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9152 (procfs_remove_hw_breakpoint, procfs_resume)
9153 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9154 (procfs_kill_inferior, procfs_store_registers)
9155 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9156 as methods of nto_procfs_target.
9157 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9158 (nto_native_ops): Delete.
9159 (procfs_open, procfs_native_open): Delete.
9160 (nto_native_ops): Now an nto_procfs_target_native.
9161 (init_procfs_targets): Adjust to C++ification.
9162 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9163 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9164 Refactor as methods of nto_procfs_target.
9165
9166 * go32-nat.c (go32_nat_target): New class.
9167 (the_go32_nat_target): New.
9168 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9169 (go32_store_registers, go32_xfer_partial, go32_files_info)
9170 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9171 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9172 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9173 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9174 (go32_target): Delete.
9175 (_initialize_go32_nat): Adjust to C++ification.
9176
9177 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9178 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9179 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9180 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9181 gnu_nat_target.
9182 (gnu_target): Delete.
9183 * gnu-nat.h (gnu_target): Delete.
9184 (gnu_nat_target): New class.
9185 * i386-gnu-nat.c (gnu_base_target): New.
9186 (i386_gnu_nat_target): New class.
9187 (the_i386_gnu_nat_target): New.
9188 (_initialize_i386gnu_nat): Adjust to C++ification.
9189
9190 2018-05-02 Pedro Alves <palves@redhat.com>
9191
9192 * bfd-target.c (target_bfd_xclose): Rename to ...
9193 (target_bfd_close): ... this.
9194 (target_bfd_reopen): Adjust.
9195 * target.c (target_close): Remove references to to_xclose.
9196 * target.h (target_ops::to_xclose): Delete.
9197 (target_ops::to_close): Update comments.
9198
9199 2018-05-02 Pedro Alves <palves@redhat.com>
9200
9201 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9202 "linux-nat.h".
9203 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9204 * inf-ptrace.c (inf_ptrace_register_u_offset)
9205 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9206 (inf_ptrace_store_register, inf_ptrace_store_registers)
9207 (inf_ptrace_trad_target): Move to ...
9208 * linux-nat-trad.c: ... this new file.
9209 * linux-nat-trad.h: New file.
9210 * linux-nat.c (linux_target_install_ops): Make extern.
9211 (linux_trad_target): Delete.
9212 * linux-nat.h (linux_trad_target): Delete declaration.
9213 (linux_target_install_ops): Declare.
9214 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9215 "linux-nat.h".
9216
9217 2018-05-02 Pedro Alves <palves@redhat.com>
9218
9219 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9220 procfs_target/add_target here.
9221 * procfs.c (procfs_target): Make static.
9222 (_initialize_procfs): Call add_target here.
9223 * procfs.h (struct target_ops): Remove forward declaration.
9224 (procfs_target): Remove declaration.
9225 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9226
9227 2018-05-02 Pedro Alves <palves@redhat.com>
9228
9229 * procfs.c (procfs_stopped_by_watchpoint)
9230 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9231 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9232 Forward declare.
9233 (procfs_use_watchpoints): Delete, move contents...
9234 (procfs_target): ... here.
9235 * procfs.h (procfs_use_watchpoints): Delete declaration.
9236 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9237 procfs_use_watchpoints.
9238 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9239 procfs_use_watchpoints.
9240
9241 2018-05-02 Tom Tromey <tom@tromey.com>
9242
9243 PR python/20084:
9244 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9245 and var_zuinteger_unlimited.
9246 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9247 and PARAM_ZUINTEGER_UNLIMITED.
9248 (set_parameter_value): Handle var_zuinteger and
9249 var_zuinteger_unlimited.
9250 (add_setshow_generic): Likewise.
9251 (parmpy_init): Likewise.
9252
9253 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9254
9255 PR rust/23124
9256 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9257 pointer is not null before dereferencing it.
9258
9259 2018-04-30 Tom Tromey <tom@tromey.com>
9260
9261 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9262 is_mi_like_p.
9263
9264 2018-04-30 Tom Tromey <tom@tromey.com>
9265
9266 * breakpoint.c (mention): Remove use of is_mi_like_p.
9267 (print_mention_ranged_breakpoint): Likewise.
9268 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9269 of is_mi_like_p.
9270
9271 2018-04-30 Tom Tromey <tom@tromey.com>
9272
9273 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9274
9275 2018-04-30 Tom Tromey <tom@tromey.com>
9276
9277 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9278 (info_spu_event_command): Remove some uses of is_mi_like_p.
9279
9280 2018-04-30 Tom Tromey <tom@tromey.com>
9281
9282 * python/py-framefilter.c (py_print_single_arg)
9283 (enumerate_locals, py_print_args, py_print_frame): Remove some
9284 uses of is_mi_like_p.
9285
9286 2018-04-30 Tom Tromey <tom@tromey.com>
9287
9288 * ui-out.c: Update.
9289 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9290 * ui-out.h (ui_out::is_mi_like_p): Now const.
9291 (ui_out::do_is_mi_like_p): Now const.
9292 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9293
9294 2018-04-30 Tom Tromey <tom@tromey.com>
9295
9296 * varobj.c (varobj_set_visualizer): Use new_reference.
9297 * python/python.c (gdbpy_decode_line): Use new_reference.
9298 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9299 new_reference.
9300
9301 2018-04-30 Tom Tromey <tom@tromey.com>
9302
9303 * varobj.c (install_new_value): Use new_reference.
9304 * value.h (value_incref): Return void. Swap intro comment with
9305 value_decref.
9306 * value.c (set_value_parent): Use new_reference.
9307 (value_incref): Return void. Update intro comment.
9308 (release_value): Use new_reference.
9309 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9310
9311 2018-04-30 Tom Tromey <tom@tromey.com>
9312
9313 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9314 * gdb_bfd.h (new_bfd_ref): Remove.
9315 (gdb_bfd_open): Update comment.
9316 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9317 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9318 (gdb_bfd_fdopenr): Use new_reference.
9319 * exec.c (exec_file_attach): Use new_reference.
9320
9321 2018-04-30 Tom Tromey <tom@tromey.com>
9322
9323 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9324 method.
9325
9326 2018-04-30 Tom Tromey <tom@tromey.com>
9327
9328 * jit.c (jit_read_code_entry): Use type_align.
9329 * i386-tdep.c (i386_gdbarch_init): Don't call
9330 set_gdbarch_long_long_align_bit.
9331 * gdbarch.sh: Remove long_long_align_bit.
9332 * gdbarch.c, gdbarch.h: Rebuild.
9333 * arc-tdep.c (arc_type_align): New function.
9334 (arc_gdbarch_init): Use arc_type_align. Don't call
9335 set_gdbarch_long_long_align_bit.
9336
9337 2018-04-30 Tom Tromey <tom@tromey.com>
9338
9339 * rust-lang.c (rust_type_alignment): Remove.
9340 (rust_composite_type): Use type_align.
9341
9342 2018-04-30 Tom Tromey <tom@tromey.com>
9343
9344 * NEWS: Mention Type.align.
9345 * python/py-type.c (typy_get_alignof): New function.
9346 (type_object_getset): Add "alignof".
9347
9348 2018-04-30 Tom Tromey <tom@tromey.com>
9349
9350 PR exp/17095:
9351 * NEWS: Update.
9352 * std-operator.def (UNOP_ALIGNOF): New operator.
9353 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9354 New.
9355 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9356 * c-lang.c (c_op_print_tab): Add alignof.
9357 * c-exp.y (ALIGNOF): New token.
9358 (exp): Add "ALIGNOF" production.
9359 (ident_tokens): Add _Alignof and alignof.
9360
9361 2018-04-30 Tom Tromey <tom@tromey.com>
9362
9363 * i386-tdep.c (i386_type_align): New function.
9364 (i386_gdbarch_init): Update.
9365 * gdbarch.sh (type_align): New method.
9366 * gdbarch.c, gdbarch.h: Rebuild.
9367 * arch-utils.h (default_type_align): Declare.
9368 * arch-utils.c (default_type_align): New function.
9369 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9370 (struct type) <align_log2>: New field.
9371 <instance_flags>: Now a bitfield.
9372 (TYPE_RAW_ALIGN): New macro.
9373 (type_align, type_raw_align, set_type_align): Declare.
9374 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9375 functions.
9376 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9377 (get_alignment, maybe_set_alignment): New functions.
9378 (read_structure_type, read_enumeration_type, read_array_type)
9379 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9380 (read_subrange_type, read_base_type): Set type alignment.
9381
9382 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9383
9384 * dwarf2read.c (read_index_from_section): Use bool.
9385
9386 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9387
9388 PR gdb/22950
9389 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9390 with #ifdef.
9391
9392 2018-04-29 John Reiser <jreiser@BitWagon.com>
9393
9394 PR build/22873
9395 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9396 last step, and do it atomically.
9397
9398 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9399
9400 * compile/compile-c-types.c (convert_int, convert_float):
9401 Update for C FE v1.
9402
9403 2018-04-27 Tom Tromey <tom@tromey.com>
9404
9405 PR rust/22545:
9406 * rust-lang.c (rust_inclusive_range_type_p): New function.
9407 (rust_range): Handle inclusive ranges.
9408 (rust_compute_range): Likewise.
9409 * rust-exp.y (struct rust_op) <inclusive>: New field.
9410 (DOTDOTEQ): New constant.
9411 (range_expr): Add "..=" productions.
9412 (operator_tokens): Add "..=" token.
9413 (ast_range): Add "inclusive" parameter.
9414 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9415 ranges.
9416 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9417 bounds values.
9418 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9419 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9420 Update comments.
9421 * expprint.c (print_subexp_standard): Handle new bounds values.
9422 (dump_subexp_body_standard): Likewise.
9423
9424 2018-04-27 Tom Tromey <tom@tromey.com>
9425
9426 * configure: Rebuild.
9427 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9428 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9429 "OVERRIDE".
9430 (class symbol_needs_eval_context): Likewise.
9431 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9432 (mock_mapped_index::symbol_name_at): Use "override". Remove
9433 "virtual".
9434 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9435 "override".
9436 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9437 * aarch64-tdep.c (instruction_reader::read): Use "override".
9438 (instruction_reader_test::read): Likewise.
9439 * arm-tdep.c (instruction_reader::read): Use "override".
9440 (instruction_reader_thumb::read): Likewise.
9441
9442 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9443
9444 PR remote/9665
9445 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9446 instead of remote_send.
9447 (remote_send): Remove.
9448
9449 2018-04-26 Pedro Alves <palves@redhat.com>
9450
9451 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9452 find_function_start_sal instead of find_pc_line.
9453
9454 2018-04-26 Pedro Alves <palves@redhat.com>
9455
9456 * breakpoint.c (set_breakpoint_location_function): Handle
9457 mst_data_gnu_ifunc.
9458 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9459 * elfread.c (elf_symtab_read): Give data symbols with
9460 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9461 (elf_rel_plt_read): Update comment.
9462 * linespec.c (convert_linespec_to_sals): Handle
9463 mst_data_gnu_ifunc.
9464 (minsym_found): Handle mst_data_gnu_ifunc.
9465 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9466 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9467 * parse.c (find_minsym_type_and_address): Handle
9468 mst_data_gnu_ifunc.
9469 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9470 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9471 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9472 comment.
9473 <mst_data_gnu_ifunc>: New enumerator.
9474
9475 2018-04-26 Pedro Alves <palves@redhat.com>
9476
9477 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9478 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9479 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9480 Handle it.
9481 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9482 (lookup_minimal_symbol_by_pc): Adjust.
9483 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9484 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9485 * minsyms.h (lookup_msym_prefer): New enum.
9486 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9487 parameter by a lookup_msym_prefer parameter.
9488
9489 2018-04-26 Pedro Alves <palves@redhat.com>
9490
9491 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9492 ends in "@plt" instead of looking at the symbol's section.
9493
9494 2018-04-26 Pedro Alves <palves@redhat.com>
9495
9496 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9497 all references.
9498 (find_pc_partial_function_gnu_ifunc): Rename to ...
9499 (find_pc_partial_function): ... this, and remove references to
9500 'is_gnu_ifunc_p'.
9501 (find_pc_partial_function): Delete old implementation.
9502 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9503
9504 2018-04-26 Pedro Alves <palves@redhat.com>
9505
9506 * linespec.c (struct bound_minimal_symbol_search_key): New.
9507 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9508 skip first line if we found a GNU ifunc minimal symbol by name.
9509 (compare_msymbols): Change parameters to work with a destructured
9510 lhs minsym.
9511 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9512 functions.
9513
9514 2018-04-26 Pedro Alves <palves@redhat.com>
9515
9516 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9517 ifunc targets here. Instead, if we have an ifunc minsym, use its
9518 address/name.
9519 (add_location_to_breakpoint): Store the minsym and the objfile in
9520 the breakpoint location.
9521 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9522 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9523 Record the minsym in the sal.
9524 * symtab.h (symtab_and_line) <msymbol>: New field.
9525
9526 2018-04-26 Pedro Alves <palves@redhat.com>
9527
9528 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9529 unless we actually resolved the ifunc.
9530
9531 2018-04-26 Pedro Alves <palves@redhat.com>
9532
9533 * c-exp.y (variable production): Prefer ifunc minsyms over
9534 regular function symbols.
9535 * symtab.c (find_gnu_ifunc): New function.
9536 * minsyms.h (lookup_msym_prefer): New enum.
9537 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9538 parameter by a lookup_msym_prefer parameter.
9539 * symtab.h (find_gnu_ifunc): New declaration.
9540
9541 2018-04-26 Pedro Alves <palves@redhat.com>
9542
9543 * blockframe.c (find_gnu_ifunc_target_type): New function.
9544 (find_function_type): New.
9545 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9546 return a value with a memory address.
9547 (eval_call): For calls to GNU ifunc functions, try to find the
9548 type of the target function from the type that the resolver
9549 returns.
9550 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9551 symbols.
9552 * infcall.c (find_function_return_type): Delete.
9553 (find_function_addr): Add 'function_type' parameter. For calls to
9554 GNU ifunc functions, try to find the type of the target function
9555 from the type that the resolver returns, and return it via
9556 FUNCTION_TYPE.
9557 (call_function_by_hand_dummy): Adjust to use the function type
9558 returned by find_function_addr.
9559 (find_function_addr): Add 'function_type' parameter and move
9560 description here.
9561 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9562 declarations.
9563
9564 2018-04-26 Pedro Alves <palves@redhat.com>
9565
9566 * c-exp.y (variable production): Skip finding an alias for ifunc
9567 symbols.
9568
9569 2018-04-26 Pedro Alves <palves@redhat.com>
9570
9571 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9572
9573 2018-04-25 Pedro Alves <palves@redhat.com>
9574
9575 * infcmd.c (kill_command): Print the pid as string, not the whole
9576 thread's ptid. Add comment. s/has been killed/killed/ in output
9577 message.
9578 * remote.c (remote_detach_1): Print the pid as string, not the
9579 whole thread's ptid.
9580
9581 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9582 Sergio Durigan Junior <sergiodj@redhat.com>
9583 Pedro Alves <palves@redhat.com>
9584
9585 * infcmd.c (kill_command): Print message when inferior has
9586 been killed.
9587 * inferior.c (print_inferior_events): Remove 'static'. Set as
9588 '1'.
9589 (add_inferior): Improve message printed when
9590 'print_inferior_events' is on.
9591 (exit_inferior): Remove message printed when
9592 'print_inferior_events' is on.
9593 (detach_inferior): Improve message printed when
9594 'print_inferior_events' is on.
9595 (initialize_inferiors): Use 'add_inferior_silent' to set
9596 'current_inferior_'.
9597 * inferior.h (print_inferior_events): Declare here as
9598 'extern'.
9599 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9600 '[Detaching...]' messages when 'print_inferior_events' is on.
9601 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9602 as prefix/suffix for messages. Remove periods. Fix erroneous
9603 'Detaching after fork from child...', replace it by '... from
9604 parent...'.
9605 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9606 prefix/suffix when printing 'Detaching...' messages. Print
9607 them when 'print_inferior_events' is on.
9608 * remote.c (remote_detach_1): Print message when detaching
9609 from inferior and '!is_fork_parent'.
9610
9611 2018-04-24 Tom Tromey <tom@tromey.com>
9612
9613 * cli-out.h: Reindent.
9614
9615 2018-04-24 Tom Tromey <tom@tromey.com>
9616
9617 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9618 (cli_ui_out::do_field_string): Use fputs_filtered.
9619 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9620
9621 2018-04-23 Tom Tromey <tom@tromey.com>
9622
9623 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9624 gdb::unique_xmalloc_ptr.
9625
9626 2018-04-23 Tom Tromey <tom@tromey.com>
9627
9628 * configure: Rebuild.
9629
9630 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9631
9632 PR gdb/23095
9633 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9634 prepare_for_testing. Set normal_bp to r_debug_state if target
9635 is bsd.
9636
9637 2018-04-21 Pedro Alves <palves@redhat.com>
9638 Rajendra SY <rajendra.sy@gmail.com>
9639
9640 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9641 * remote.c (extended_remote_attach): In all-stop mode, mark the
9642 thread as executing.
9643
9644 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9645
9646 * thread.c (thread_apply_all_command): Fix comment.
9647 (thread_command): Fix comment.
9648
9649 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9650
9651 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9652 parameter.
9653 * features/aarch64-core.c (create_feature_aarch64_core):
9654 Regenerate.
9655 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9656 Likewise.
9657 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9658 Likewise.
9659 * features/i386/32bit-avx512.c
9660 (create_feature_i386_32bit_avx512): Likewise.
9661 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9662 Likewise.
9663 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9664 Likewise.
9665 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9666 Likewise.
9667 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9668 Likewise.
9669 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9670 Likewise.
9671 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9672 Likewise.
9673 * features/i386/64bit-avx512.c
9674 (create_feature_i386_64bit_avx512): Likewise.
9675 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9676 Likewise.
9677 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9678 Likewise.
9679 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9680 Likewise.
9681 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9682 Likewise.
9683 * features/i386/64bit-segments.c
9684 (create_feature_i386_64bit_segments): Likewise.
9685 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9686 Likewise.
9687 * features/i386/x32-core.c
9688 (create_feature_i386_x32_core): Likewise.
9689 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9690 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9691 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9692 * target-descriptions.c: In generated code, don't pass xml
9693 filename.
9694
9695 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9696
9697 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9698 (print_xml_feature::visit_post): Likewise.
9699 (print_xml_feature::visit): Likewise.
9700 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9701 (print_xml_feature): Add new class.
9702 * regformats/regdat.sh: Null xmltarget on feature targets.
9703 * target-descriptions.c (struct target_desc): Add xmltarget.
9704 (maintenance_check_tdesc_xml_convert): Add unittest function.
9705 (tdesc_get_features_xml): Add function to get xml.
9706 (maintenance_check_xml_descriptions): Test xml generation.
9707 * xml-tdesc.c (string_read_description_xml): Add function.
9708 * xml-tdesc.h (string_read_description_xml): Add declaration.
9709
9710 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9711
9712 * features/Makefile: Add feature marker to targets with new style
9713 target descriptions.
9714 * regformats/aarch64.dat: Regenerate.
9715 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9716 * regformats/i386/amd64-avx-linux.dat: Likewise.
9717 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9718 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9719 * regformats/i386/amd64-linux.dat: Likewise.
9720 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9721 * regformats/i386/amd64.dat: Likewise.
9722 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9723 * regformats/i386/i386-avx-linux.dat: Likewise.
9724 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9725 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9726 * regformats/i386/i386-linux.dat: Likewise.
9727 * regformats/i386/i386-mmx-linux.dat: Likewise.
9728 * regformats/i386/i386-mpx-linux.dat: Likewise.
9729 * regformats/i386/i386.dat: Likewise.
9730 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9731 * regformats/i386/x32-avx-linux.dat: Likewise.
9732 * regformats/i386/x32-linux.dat: Likewise.
9733 * regformats/tic6x-c62x-linux.dat: Likewise.
9734 * regformats/tic6x-c64x-linux.dat: Likewise.
9735 * regformats/tic6x-c64xp-linux.dat: Likewise.
9736 * regformats/regdat.sh: Parse feature marker.
9737
9738 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9739
9740 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9741 (tdesc_osabi_name): Likewise.
9742 * target-descriptions.c (tdesc_architecture_name): Add new
9743 function.
9744 (tdesc_osabi_name): Likewise.
9745
9746 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9747
9748 * common/tdesc.c (tdesc_predefined_type): Move to here.
9749 (tdesc_named_type): Likewise.
9750 (tdesc_create_vector): Likewise.
9751 (tdesc_create_struct): Likewise.
9752 (tdesc_set_struct_size): Likewise.
9753 (tdesc_create_union): Likewise.
9754 (tdesc_create_flags): Likewise.
9755 (tdesc_create_enum): Likewise.
9756 (tdesc_add_field): Likewise.
9757 (tdesc_add_typed_bitfield): Likewise.
9758 (tdesc_add_bitfield): Likewise.
9759 (tdesc_add_flag): Likewise.
9760 (tdesc_add_enum_value): Likewise.
9761 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9762 (struct tdesc_type_vector): Likewise.
9763 (struct tdesc_type_field): Likewise.
9764 (struct tdesc_type_with_fields): Likewise.
9765 (tdesc_create_enum): Add declaration.
9766 (tdesc_add_typed_bitfield): Likewise.
9767 (tdesc_add_enum_value): Likewise.
9768 * target-descriptions.c (tdesc_type_field): Move from here.
9769 (tdesc_type_builtin): Likewise.
9770 (tdesc_type_vector): Likewise.
9771 (tdesc_type_with_fields): Likewise.
9772 (tdesc_predefined_types): Likewise.
9773 (tdesc_named_type): Likewise.
9774 (tdesc_create_vector): Likewise.
9775 (tdesc_create_struct): Likewise.
9776 (tdesc_set_struct_size): Likewise.
9777 (tdesc_create_union): Likewise.
9778 (tdesc_create_flags): Likewise.
9779 (tdesc_create_enum): Likewise.
9780 (tdesc_add_field): Likewise.
9781 (tdesc_add_typed_bitfield): Likewise.
9782 (tdesc_add_bitfield): Likewise.
9783 (tdesc_add_flag): Likewise.
9784 (tdesc_add_enum_value): Likewise.
9785 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9786 (tdesc_add_typed_bitfield): Likewise.
9787 (tdesc_add_enum_value): Likewise.
9788
9789 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9790
9791 * common/tdesc.c (tdesc_feature::accept): Move to here.
9792 (tdesc_feature::operator==): Likewise.
9793 (tdesc_create_reg): Likewise.
9794 * common/tdesc.h (tdesc_type_kind): Likewise.
9795 (struct tdesc_type): Likewise.
9796 (struct tdesc_feature): Likewise.
9797 * regformats/regdat.sh: Create a feature.
9798 * target-descriptions.c (tdesc_type_kind): Move from here.
9799 (tdesc_type): Likewise.
9800 (tdesc_type_up): Likewise.
9801 (tdesc_feature): Likewise.
9802 (tdesc_create_reg): Likewise.
9803
9804 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9805
9806 * Makefile.in: Add arch/tdesc.c
9807 * common/tdesc.c: New file.
9808 * common/tdesc.h (tdesc_element_visitor): Move to here.
9809 (tdesc_element): Likewise.
9810 (tdesc_reg): Likewise.
9811 (tdesc_reg_up): Likewise.
9812 * regformats/regdef.h (reg): Add offset to constructors.
9813 * target-descriptions.c (tdesc_element_visitor): Move from here.
9814 (tdesc_element): Likewise.
9815 (tdesc_reg): Likewise.
9816 (tdesc_reg_up): Likewise.
9817
9818 2018-04-17 Tom Tromey <tom@tromey.com>
9819
9820 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9821 discriminant field.
9822
9823 2018-04-17 Tom Tromey <tom@tromey.com>
9824
9825 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9826
9827 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9828
9829 * symtab.c (print_symbol_info): Skip printing filename and line
9830 number when `last' is NULL.
9831 (symtab_symbol_info): Use empty string instead of NULL for first
9832 invocation of print_symbol_info.
9833 (rbreak_command): Pass NULL to `last' parameter of
9834 print_symbol_info.
9835
9836 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9837
9838 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9839 instead of nullptr.
9840
9841 2018-04-16 Pedro Alves <palves@redhat.com>
9842
9843 * MAINTAINERS (sh): Remove.
9844 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9845 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9846 (ALLDEPFILES): Remove sh64-tdep.c.
9847 * NEWS: Mentions that support for SH-5/SH64 is removed.
9848 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9849 (sh*-*-openbsd*): Ditto.
9850 (sh64-*-elf*): Remove.
9851 (sh*): Remove.
9852 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9853 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9854 * sh-tdep.c: No longer include "sh64-tdep.h".
9855 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9856 * sh64-tdep.c, sh64-tdep.h: Remove files.
9857
9858 2018-04-16 Pedro Alves <palves@redhat.com>
9859
9860 * MAINTAINERS: Remove m88k.
9861 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9862 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9863 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9864 * NEWS: Mention that support for m88k was removed.
9865 * configure.host (m88*-*-*): Remove support.
9866 * configure.nat (m88k-*-*): Remove support.
9867 * configure.tgt (m88*-*-openbsd*): Remove.
9868 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9869
9870 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9871
9872 * configure.tgt (x86_tobjs): New variable.
9873 (amd64_tobjs, i386_tobjs): Use it.
9874
9875 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9876
9877 * symtab.c (print_symbol_info): Precede the symbol definition by
9878 the line number when available.
9879 * NEWS: Advertise this enhancement.
9880
9881 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9882
9883 * NEWS (New options): announce set/show record btrace cpu.
9884 * btrace.c: Include record-btrace.h.
9885 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9886 the vendor is unknown.
9887 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9888 Maybe overwrite the btrace configuration's cpu.
9889 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9890 (btrace_fetch): Add cpu parameter. Update callers.
9891 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9892 Maybe overwrite the btrace configuration's cpu. Skip enabling
9893 errata workarounds if the vendor is unknown.
9894 * python/py-record-btrace.c: Include record-btrace.h.
9895 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9896 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9897 * record-btrace.c (record_btrace_cpu_state_kind): New.
9898 (record_btrace_cpu): New.
9899 (set_record_btrace_cpu_cmdlist): New.
9900 (record_btrace_get_cpu): New.
9901 (require_btrace_thread, record_btrace_info)
9902 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9903 (cmd_set_record_btrace_cpu_none): New.
9904 (cmd_set_record_btrace_cpu_auto): New.
9905 (cmd_set_record_btrace_cpu): New.
9906 (cmd_show_record_btrace_cpu): New.
9907 (_initialize_record_btrace): Initialize set/show record btrace cpu
9908 commands.
9909 * record-btrace.h (record_btrace_get_cpu): New.
9910
9911 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9912
9913 * record.c (set_record_command): Fix typo in message.
9914
9915 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9916
9917 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9918
9919 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9920
9921 * infrun.c (process_event_stop_test): Call
9922 gdbarch_in_indirect_branch_thunk.
9923 * gdbarch.sh (in_indirect_branch_thunk): New.
9924 * gdbarch.c: Regenerated.
9925 * gdbarch.h: Regenerated.
9926 * x86-tdep.h: New.
9927 * x86-tdep.c: New.
9928 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9929 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9930 (ALLDEPFILES): Add x86-tdep.c.
9931 * arch-utils.h (default_in_indirect_branch_thunk): New.
9932 * arch-utils.c (default_in_indirect_branch_thunk): New.
9933 * i386-tdep: Include x86-tdep.h.
9934 (i386_in_indirect_branch_thunk): New.
9935 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9936 function.
9937 * amd64-tdep: Include x86-tdep.h.
9938 (amd64_in_indirect_branch_thunk): New.
9939 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9940
9941 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9942
9943 PR gdb/23053
9944 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9945 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9946 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9947 regression.
9948
9949 2018-04-12 Tom Tromey <tom@tromey.com>
9950
9951 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9952 (rust_evaluate_subexp): Likewise.
9953
9954 2018-04-12 Pedro Alves <palves@redhat.com>
9955
9956 * procfs.c (procfs_detach): Make forward declaration's prototype
9957 match definition's protototype.
9958 (proc_get_LDT_entry): Remove stale do_cleanups call.
9959
9960 2018-04-12 Pedro Alves <palves@redhat.com>
9961
9962 * target.h (target_ops::to_has_exited): Delete.
9963 (target_has_exited): Delete.
9964 * target-delegates.c: Regenerate.
9965
9966 2018-04-11 Pedro Alves <palves@redhat.com>
9967
9968 * target.c (fileio_fh_t::t): Add comment.
9969 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9970 (target_fileio_close): Handle a NULL target.
9971 (invalidate_fileio_fh): New.
9972 (target_close): Call it.
9973 * remote.c (remote_hostio_send_command): No longer check whether
9974 remote_desc is open.
9975
9976 2018-04-11 Pedro Alves <palves@redhat.com>
9977
9978 * target.c (fileio_fh_t): Make it a named struct instead of a
9979 typedef.
9980 (fileio_fh_t::is_closed): New method.
9981 (DEF_VEC_O (fileio_fh_t)): Remove.
9982 (fileio_fhandles): Now a std::vector.
9983 (is_closed_fileio_fh): Delete.
9984 (acquire_fileio_fd): Adjust. Rename parameters.
9985 (release_fileio_fd): Adjust.
9986 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9987 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9988 (target_fileio_close): Adjust.
9989
9990 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9991
9992 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9993 index.
9994
9995 2018-04-10 Pedro Alves <palves@redhat.com>
9996
9997 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9998 (scoped_finish_thread_state): New class.
9999 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10000 cleanup.
10001 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10002 (fetch_inferior_event, normal_stop): Likewise.
10003 * thread.c (finish_thread_state_cleanup): Delete.
10004
10005 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10006 Pedro Alves <palves@redhat.com>
10007
10008 * value.c: Include "selftest.h" and "common/array-view.h".
10009 (struct range) <operator ==>: New.
10010 (test_ranges_contain): New.
10011 (check_ranges_vector): New.
10012 (test_insert_into_bit_range_vector): New.
10013 (_initialize_values): Register selftests.
10014 * common/array-view.h (operator==, operator!=): New.
10015
10016 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10017
10018 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10019 an iterator.
10020 * inline-frame.c: Include <algorithm>.
10021 (struct inline_state): Add constructor.
10022 (inline_state_s): Remove.
10023 (DEF_VEC_O(inline_state_s)): Remove.
10024 (inline_states): Change type to std::vector.
10025 (find_inline_frame_state): Adjust to std::vector.
10026 (allocate_inline_frame_state): Remove.
10027 (clear_inline_frame_state): Adjust to std::vector.
10028 (skip_inline_frames): Adjust to std::vector.
10029
10030 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10031
10032 * tracepoint.h (struct trace_state_variable): Add constructor.
10033 <name>: Change type to std::string.
10034 * tracepoint.c (tsv_s): Remove.
10035 (DEF_VEC_O(tsv_s)): Remove.
10036 (tvariables): Change to std::vector.
10037 (create_trace_state_variable): Adjust to std::vector.
10038 (find_trace_state_variable): Likewise.
10039 (find_trace_state_variable_by_number): Likewise.
10040 (delete_trace_state_variable): Likewise.
10041 (trace_variable_command): Adjust to std::string.
10042 (delete_trace_variable_command): Likewise.
10043 (tvariables_info_1): Adjust to std::vector.
10044 (save_trace_state_variables): Likewise.
10045 (start_tracing): Likewise.
10046 (merge_uploaded_trace_state_variables): Adjust to std::vector
10047 and std::string.
10048 * target.h (struct target_ops)
10049 <to_download_trace_state_variable>: Pass reference to
10050 trace_state_variable.
10051 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10052 * target-delegates.c: Re-generate.
10053 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10054 (mi_tsv_deleted): Likewise.
10055 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10056 * remote.c (remote_download_trace_state_variable): Change
10057 pointer to reference and adjust.
10058 * make-target-delegates (parse_argtypes): Handle references.
10059 (write_function_header): Likewise.
10060 (munge_type): Likewise.
10061
10062 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10063
10064 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10065 string_view-selftests.c.
10066 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10067 testsuite.
10068 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10069 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10070 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10071 * unittests/basic_string_view/element_access/char/1.cc:
10072 Likewise.
10073 * unittests/basic_string_view/element_access/char/empty.cc:
10074 Likewise.
10075 * unittests/basic_string_view/element_access/char/front_back.cc:
10076 Likewise.
10077 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10078 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10079 Likewise.
10080 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10081 Likewise.
10082 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10083 Likewise.
10084 * unittests/basic_string_view/operations/compare/char/1.cc:
10085 Likewise.
10086 * unittests/basic_string_view/operations/compare/char/13650.cc:
10087 Likewise.
10088 * unittests/basic_string_view/operations/copy/char/1.cc:
10089 Likewise.
10090 * unittests/basic_string_view/operations/data/char/1.cc:
10091 Likewise.
10092 * unittests/basic_string_view/operations/find/char/1.cc:
10093 Likewise.
10094 * unittests/basic_string_view/operations/find/char/2.cc:
10095 Likewise.
10096 * unittests/basic_string_view/operations/find/char/3.cc:
10097 Likewise.
10098 * unittests/basic_string_view/operations/find/char/4.cc:
10099 Likewise.
10100 * unittests/basic_string_view/operations/rfind/char/1.cc:
10101 Likewise.
10102 * unittests/basic_string_view/operations/rfind/char/2.cc:
10103 Likewise.
10104 * unittests/basic_string_view/operations/rfind/char/3.cc:
10105 Likewise.
10106 * unittests/basic_string_view/operations/substr/char/1.cc:
10107 Likewise.
10108 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10109 * unittests/string_view-selftests.c: New file.
10110
10111 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10112
10113 * unittests/basic_string_view/capacity/1.cc: New file.
10114 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10115 * unittests/basic_string_view/cons/char/1.cc: New file.
10116 * unittests/basic_string_view/cons/char/2.cc: New file.
10117 * unittests/basic_string_view/cons/char/3.cc: New file.
10118 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10119 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10120 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10121 * unittests/basic_string_view/element_access/char/1.cc: New file.
10122 * unittests/basic_string_view/element_access/char/2.cc: New file.
10123 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10124 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10125 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10126 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10127 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10128 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10129 * unittests/basic_string_view/include.cc: New file.
10130 * unittests/basic_string_view/inserters/char/1.cc: New file.
10131 * unittests/basic_string_view/inserters/char/2.cc: New file.
10132 * unittests/basic_string_view/inserters/char/3.cc: New file.
10133 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10134 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10135 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10136 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10137 * unittests/basic_string_view/literals/types.cc: New file.
10138 * unittests/basic_string_view/literals/values.cc: New file.
10139 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10140 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10141 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10142 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10143 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10144 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10145 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10146 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10147 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10148 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10149 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10150 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10151 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10152 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10153 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10154 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10155 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10156 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10157 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10158 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10159 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10160 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10161 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10162 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10163 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10164 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10165 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10166 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10167 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10168 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10169 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10170 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10171 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10172 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10173 * unittests/basic_string_view/operators/char/2.cc: New file.
10174 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10175 * unittests/basic_string_view/range_access/char/1.cc: New file.
10176 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10177 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10178 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10179 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10180 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10181 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10182 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10183 * unittests/basic_string_view/typedefs.cc: New file.
10184 * unittests/basic_string_view/types/1.cc: New file.
10185
10186 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10187
10188 * common/gdb_string_view.h: Remove libstdc++ implementation
10189 details, adjust to gdb reality.
10190 * common/gdb_string_view.tcc: Likewise.
10191 * cli/cli-script.c (struct string_view): Remove.
10192 (user_args) <m_args>: Change element type to gdb::string_view.
10193 (user_args::insert_args): Adjust.
10194
10195 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10196
10197 * common/gdb_string_view.h: New file.
10198 * common/gdb_string_view.tcc: New file.
10199
10200 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10201
10202 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10203 * configure: Re-generate.
10204
10205 2018-04-09 Pedro Alves <palves@redhat.com>
10206
10207 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10208 (set_target_gdbarch): Call
10209 gdb::observers::architecture_changed.notify instead of
10210 observer_notify_architecture_changed.
10211
10212 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10213
10214 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10215 (do_restore_current_traceframe_cleanup): Remove.
10216 (restore_current_traceframe_cleanup_dtor): Remove.
10217 (make_cleanup_restore_current_traceframe): Remove.
10218 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10219 New.
10220 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10221 * infrun.c (fetch_inferior_event): Use
10222 scoped_restore_current_traceframe.
10223
10224 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10225
10226 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10227 Remove.
10228 <n_allocated_type_units>: Remove.
10229 <all_type_units>: Change to std::vector.
10230 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10231 to std::vector change.
10232 (dwarf2_per_objfile::get_cutu): Likewise.
10233 (dwarf2_per_objfile::get_tu): Likewise.
10234 (create_signatured_type_table_from_index): Likewise.
10235 (create_signatured_type_table_from_debug_names): Likewise.
10236 (dw2_symtab_iter_next): Likewise.
10237 (dw2_print_stats): Likewise.
10238 (dw2_expand_all_symtabs): Likewise.
10239 (dw2_expand_marked_cus): Likewise.
10240 (dw2_debug_names_iterator::next): Likewise.
10241 (dwarf2_initialize_objfile): Likewise.
10242 (add_signatured_type_cu_to_table): Likewise.
10243 (create_all_type_units): Likewise.
10244 (add_type_unit): Likewise.
10245 (struct tu_abbrev_offset): Add constructor.
10246 (build_type_psymtabs_1): Adjust to std::vector change.
10247 (print_tu_stats): Likewise.
10248 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10249 (write_debug_names): Likewise.
10250
10251 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10252
10253 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10254 Make an std::vector.
10255 <n_comp_units>: Remove.
10256 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10257 to std::vector change.
10258 (dwarf2_per_objfile::get_cutu): Likewise.
10259 (dwarf2_per_objfile::get_cu): Likewise.
10260 (create_cus_from_index): Likewise.
10261 (create_addrmap_from_index): Likewise.
10262 (create_addrmap_from_aranges): Likewise.
10263 (dwarf2_read_index): Likewise.
10264 (dw2_find_last_source_symtab): Likewise.
10265 (dw2_map_symtabs_matching_filename): Likewise.
10266 (dw2_symtab_iter_next): Likewise.
10267 (dw2_print_stats): Likewise.
10268 (dw2_expand_all_symtabs): Likewise.
10269 (dw2_expand_symtabs_with_fullname): Likewise.
10270 (dw2_expand_marked_cus): Likewise.
10271 (dw2_map_symbol_filenames): Likewise.
10272 (create_cus_from_debug_names): Likewise.
10273 (dwarf2_read_debug_names): Likewise.
10274 (dw2_debug_names_iterator::next): Likewise.
10275 (dwarf2_initialize_objfile): Likewise.
10276 (set_partial_user): Likewise.
10277 (dwarf2_build_psymtabs_hard): Likewise.
10278 (read_comp_units_from_section): Remove arguments, adjust to
10279 std::vector change.
10280 (create_all_comp_units): Adjust to std::vector and
10281 read_comp_units_from_section changes.
10282 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10283 change.
10284 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10285 (psyms_seen_size): Likewise.
10286 (write_gdbindex): Likewise.
10287 (write_debug_names): Likewise.
10288
10289 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10290
10291 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10292 with dwarf2_per_objfile.
10293 (create_cus_from_index): Likewise.
10294 (create_signatured_type_table_from_index): Likewise.
10295 (dwarf2_read_index): Likewise.
10296 (dwarf2_initialize_objfile): Likewise.
10297 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10298 per_cu rather than get_dwarf2_per_objfile.
10299
10300 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10301
10302 * dwarf2read.h (struct signatured_type): Forward declare.
10303 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10304 New methods.
10305 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10306 (dw2_get_cutu): ...this.
10307 (dwarf2_per_objfile::get_cu): Rename from...
10308 (dw2_get_cu): ...this.
10309 (dwarf2_per_objfile::get_tu): New.
10310 (create_addrmap_from_index): Adjust.
10311 (create_addrmap_from_aranges): Adjust.
10312 (dw2_find_last_source_symtab): Adjust.
10313 (dw2_map_symtabs_matching_filename): Adjust.
10314 (dw2_symtab_iter_next): Adjust.
10315 (dw2_print_stats): Adjust.
10316 (dw2_expand_all_symtabs): Adjust.
10317 (dw2_expand_symtabs_with_fullname): Adjust.
10318 (dw2_expand_marked_cus): Adjust.
10319 (dw_expand_symtabs_matching_file_matcher): Adjust.
10320 (dw2_map_symbol_filenames): Adjust.
10321 (dw2_debug_names_iterator::next): Adjust.
10322 (dwarf2_initialize_objfile): Adjust.
10323 (set_partial_user): Adjust.
10324 (dwarf2_build_psymtabs_hard): Adjust.
10325
10326 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10327
10328 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10329 Remove unused variables.
10330 (dw2_map_symtabs_matching_filename): Likewise.
10331 (dwarf2_record_block_ranges): Likewise.
10332 (dwarf2_read_addr_index): Likewise.
10333 (follow_die_offset): Likewise.
10334
10335 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10336
10337 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10338 to symbol_file_add_main.
10339
10340 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10341
10342 PR mi/22299
10343 * mi/mi-console.c (do_fputc_async_safe): New.
10344 (mi_console_file::write_async_safe): New.
10345 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10346 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10347 New.
10348 * ui-file.c (ui_file::putstrn): Adjust call to
10349 fputstrn_unfiltered.
10350 * utils.c (printchar): Replace do_fputs and do_fprintf
10351 parameters by do_fputc.
10352 (fputstr_filtered): Adjust call to printchar.
10353 (fputstr_unfiltered): Likewise.
10354 (fputstrn_filtered): Likewise.
10355 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10356 printchar.
10357 * utils.h (do_fputc_ftype): New typedef.
10358 (fputstrn_unfiltered): Add do_fputc parameter.
10359
10360 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10361
10362 * regformats/i386/i386-avx.dat: Remove.
10363
10364 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10365
10366 PR gdb/22979
10367 * amd64-tdep.c (amd64_none_init_abi): New function.
10368 (amd64_x32_none_init_abi): New function.
10369 (_initialize_amd64_tdep): Register handlers for x86-64 and
10370 x64_32 with GDB_OSABI_NONE.
10371 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10372 GDB_OSABI_NONE osabi.
10373
10374 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10375
10376 PR gdb/22980
10377 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10378 GDB_OSABI_NONE.
10379 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10380 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10381
10382 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10383
10384 * common/byte-vector.h (char_vector): New type.
10385 * target.h (target_read_alloc): Return
10386 gdb::optional<byte_vector>.
10387 (target_read_stralloc): Return gdb::optional<char_vector>.
10388 (target_get_osdata): Return gdb::optional<char_vector>.
10389 * target.c (target_read_alloc_1): Templatize. Replacement
10390 manual memory management with vector.
10391 (target_read_alloc): Change return type, adjust.
10392 (target_read_stralloc): Change return type, adjust.
10393 (target_get_osdata): Change return type, adjust.
10394 * auxv.c (struct auxv_info) <length>: Remove.
10395 <data>: Change type to gdb::optional<byte_vector>.
10396 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10397 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10398 (target_auxv_search): Adjust.
10399 (fprint_target_auxv): Adjust.
10400 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10401 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10402 (linux_make_corefile_notes): Adjust.
10403 * osdata.c (get_osdata): Adjust.
10404 * remote.c (remote_get_threads_with_qxfer): Adjust.
10405 (remote_memory_map): Adjust.
10406 (remote_traceframe_info): Adjust.
10407 (btrace_read_config): Adjust.
10408 (remote_read_btrace): Adjust.
10409 (remote_pid_to_exec_file): Adjust.
10410 * solib-aix.c (solib_aix_get_library_list): Adjust.
10411 * solib-dsbt.c (decode_loadmap): Don't free buf.
10412 (dsbt_get_initial_loadmaps): Adjust.
10413 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10414 * solib-target.c (solib_target_current_sos): Adjust.
10415 * tracepoint.c (sdata_make_value): Adjust.
10416 * xml-support.c (xinclude_start_include): Adjust.
10417 (xml_fetch_content_from_file): Adjust.
10418 * xml-support.h (xml_fetch_another): Change return type.
10419 (xml_fetch_content_from_file): Change return type.
10420 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10421 * xml-tdesc.c (file_read_description_xml): Adjust.
10422 (fetch_available_features_from_target): Change return type.
10423 (target_fetch_description_xml): Adjust.
10424 (target_read_description_xml): Adjust.
10425
10426 2018-04-06 Tom Tromey <tom@tromey.com>
10427
10428 * value.c (~value): Update.
10429 (struct value) <contents>: Now unique_xmalloc_ptr.
10430 (value_contents_bits_eq, allocate_value_contents)
10431 (value_contents_raw, value_contents_all_raw)
10432 (value_contents_for_printing, value_contents_for_printing_const)
10433 (set_value_enclosing_type): Update.
10434
10435 2018-04-06 Tom Tromey <tom@tromey.com>
10436
10437 * value.c (range_s): Remove typedef, VEC.
10438 (struct range): Add operator<.
10439 (range_lessthan): Remove.
10440 (ranges_contain): Change type.
10441 (~value): Update.
10442 (struct value) <unavailable, optimized_out>: Now std::vector.
10443 (value_entirely_available)
10444 (value_entirely_covered_by_range_vector)
10445 (value_entirely_unavailable, value_entirely_optimized_out):
10446 Update.
10447 (insert_into_bit_range_vector): Change argument type.
10448 (find_first_range_overlap): Likewise.
10449 (struct ranges_and_idx, value_contents_bits_eq)
10450 (require_not_optimized_out, require_available): Update.
10451 (ranges_copy_adjusted): Change argument types.
10452 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10453
10454 2018-04-06 Tom Tromey <tom@tromey.com>
10455
10456 * value.c (~value): Update.
10457 (struct value) <parent>: Now a value_ref_ptr.
10458 (value_parent, set_value_parent, value_address, value_copy):
10459 Update.
10460
10461 2018-04-06 Tom Tromey <tom@tromey.com>
10462
10463 * value.c (struct value): Add constructor, destructor, and member
10464 initializers.
10465 (allocate_value_lazy, value_decref): Update.
10466
10467 2018-04-06 Tom Tromey <tom@tromey.com>
10468
10469 * value.c (struct value) <released, next>: Remove.
10470 (all_values): Now a std::vector.
10471 (allocate_value_lazy): Update.
10472 (value_next): Remove.
10473 (value_mark, value_free_to_mark, release_value)
10474 (value_release_to_mark): Update.
10475
10476 2018-04-06 Tom Tromey <tom@tromey.com>
10477
10478 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10479 (free_value_chain): Remove.
10480 * value.c (free_value_chain): Remove.
10481 (value_release_to_mark): Return a std::vector.
10482 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10483 std::vector.
10484 (check_condition): Update.
10485 * eval.c (fetch_subexp_value): Change "val_chain" to a
10486 std::vector.
10487 * breakpoint.c (update_watchpoint): Update.
10488 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10489
10490 2018-04-06 Tom Tromey <tom@tromey.com>
10491
10492 * value.h (free_all_values): Remove.
10493 * value.c (free_all_values): Remove.
10494
10495 2018-04-06 Tom Tromey <tom@tromey.com>
10496
10497 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10498 (value_history_chain, value_history_count): Remove.
10499 (value_history): New global.
10500 (record_latest_value, access_value_history, show_values)
10501 (preserve_values): Update.
10502
10503 2018-04-06 Tom Tromey <tom@tromey.com>
10504
10505 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10506 * varobj.c (varobj_set_display_format, varobj_set_value)
10507 (install_default_visualizer, construct_visualizer)
10508 (install_new_value, ~varobj, varobj_get_value_type)
10509 (my_value_of_variable, varobj_editable_p): Update.
10510 * c-varobj.c (c_describe_child, c_value_of_variable)
10511 (cplus_number_of_children, cplus_describe_child): Update.
10512 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10513 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10514 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10515
10516 2018-04-06 Tom Tromey <tom@tromey.com>
10517
10518 * printcmd.c (last_examine_address): Change type to
10519 value_ref_ptr.
10520 (do_examine, x_command): Update.
10521
10522 2018-04-06 Tom Tromey <tom@tromey.com>
10523
10524 * value.c (release_value): Update.
10525 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10526 (struct bpstats) <val>: Now a value_ref_ptr.
10527 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10528 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10529 (~watchpoint, print_it_watchpoint, watch_command_1)
10530 (invalidate_bp_value_on_memory_change): Update.
10531
10532 2018-04-06 Tom Tromey <tom@tromey.com>
10533
10534 * varobj.c (varobj_clear_saved_item)
10535 (update_dynamic_varobj_children, install_new_value, ~varobj):
10536 Update.
10537 * value.h (value_incref): Move declaration earlier.
10538 (value_decref): Rename from value_free.
10539 (struct value_ref_policy): New.
10540 (value_ref_ptr): New typedef.
10541 (struct value_deleter): Remove.
10542 (gdb_value_up): Remove typedef.
10543 (release_value): Change return type.
10544 (release_value_or_incref): Remove.
10545 * value.c (set_value_parent): Update.
10546 (value_incref): Change return type.
10547 (value_decref): Rename from value_free.
10548 (value_free_to_mark, free_all_values, free_value_chain): Update.
10549 (release_value): Return value_ref_ptr.
10550 (release_value_or_incref): Remove.
10551 (record_latest_value, set_internalvar, clear_internalvar):
10552 Update.
10553 * stack.c (info_frame_command): Don't call value_free.
10554 * python/py-value.c (valpy_dealloc, valpy_new)
10555 (value_to_value_object): Update.
10556 * printcmd.c (do_examine): Update.
10557 * opencl-lang.c (lval_func_free_closure): Update.
10558 * mi/mi-main.c (register_changed_p): Don't call value_free.
10559 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10560 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10561 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10562 value_free.
10563 * guile/scm-value.c (vlscm_free_value_smob)
10564 (vlscm_scm_from_value): Update.
10565 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10566 (frame_unwind_register_unsigned, get_frame_register_bytes)
10567 (put_frame_register_bytes): Don't call value_free.
10568 * findvar.c (address_from_register): Don't call value_free.
10569 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10570 * dwarf2loc.c (entry_data_value_free_closure)
10571 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10572 (dwarf2_evaluate_loc_desc_full): Update.
10573 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10574 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10575 (~watchpoint, watch_command_1)
10576 (invalidate_bp_value_on_memory_change): Update.
10577 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10578
10579 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10580
10581 PR gdb/23022
10582 * warning.m4: Add -Wno-error=deprecated-register.
10583 * configure: Re-generate.
10584
10585 2018-04-05 Tom Tromey <tom@tromey.com>
10586
10587 * linespec.h: Remove include of "vec.h".
10588
10589 2018-04-05 Tom Tromey <tom@tromey.com>
10590
10591 * linespec.c (typep): Remove typedef.
10592 (find_methods, find_superclass_methods): Take a std::vector.
10593 (find_method): Use std::vector.
10594
10595 2018-04-05 Tom Tromey <tom@tromey.com>
10596
10597 * utils.c (compare_strings): Remove.
10598 * utils.h (compare_strings): Remove.
10599 * objc-lang.h (find_imps): Update.
10600 * objc-lang.c (find_methods): Take a std::vector.
10601 (uniquify_strings, find_imps): Likewise.
10602 * linespec.c (find_methods): Take a std::vector.
10603 (decode_objc): Use std::vector.
10604 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10605 a std::vector.
10606 (find_method, find_function_symbols): Use std::vector.
10607
10608 2018-04-05 Tom Tromey <tom@tromey.com>
10609
10610 * completer.c (completion_tracker::completion_tracker): Remove
10611 cast.
10612 (completion_tracker::discard_completions): Likewise.
10613 * breakpoint.c (ambiguous_names_p): Remove cast.
10614 * ada-lang.c (_initialize_ada_language): Remove cast.
10615 * utils.h (streq): Update.
10616 (streq_hash): Add new declaration.
10617 * utils.c (streq): Return bool.
10618 (streq_hash): New function.
10619
10620 2018-04-05 Tom Tromey <tom@tromey.com>
10621
10622 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10623 Remove a string copy.
10624
10625 2018-04-05 Tom Tromey <tom@tromey.com>
10626
10627 * linespec.c (filter_results): Use std::vector.
10628 (decode_line_2, decode_line_full): Update.
10629
10630 2018-04-05 Tom Tromey <tom@tromey.com>
10631
10632 * linespec.c (canonical_to_fullform): Return std::string.
10633 (filter_results): Update.
10634 (struct decode_line_2_item): Add constructor.
10635 <fullform, displayform>: Now std::string.
10636 (decode_line_2_compare_items): Now a std::sort comparator.
10637 (decode_line_2): Update.
10638
10639 2018-04-05 Tom Tromey <tom@tromey.com>
10640
10641 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10642 (unexpected_linespec_error): Update.
10643 (linespec_parse_basic, parse_linespec): Update.
10644
10645 2018-04-05 Tom Tromey <tom@tromey.com>
10646
10647 * linespec.c (linespec_parse_basic): Reindent.
10648
10649 2018-04-05 Tom Tromey <tom@tromey.com>
10650
10651 * minsyms.h (iterate_over_minimal_symbols): Update.
10652 * minsyms.c (iterate_over_minimal_symbols): Take a
10653 gdb::function_view.
10654 * linespec.c (struct collect_minsyms): Remove.
10655 (compare_msyms): Now a std::sort comparator.
10656 (add_minsym): Add parameters.
10657 (search_minsyms_for_name): Update. Use std::vector.
10658
10659 2018-04-03 Tom Tromey <tom@tromey.com>
10660
10661 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10662 gdb::byte_vector.
10663
10664 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10665
10666 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10667
10668 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10669
10670 PR gdb/16959
10671 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10672 printing static type.
10673
10674 2018-04-01 Tom Tromey <tom@tromey.com>
10675
10676 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10677 (rs6000_xfer_shared_libraries): Update.
10678
10679 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10680
10681 * common/gdb_vecs.h (char_ptr): Remove.
10682 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10683
10684 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10685
10686 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10687 with std::vector.
10688 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10689
10690 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10691
10692 * tracepoint.h (struct uploaded_tp): Initialize fields.
10693 <actions, step_actions, cmd_strings>: Change type to
10694 std::vector<char *>.
10695 * tracepoint.c (get_uploaded_tp): Allocate with new.
10696 (free_uploaded_tps): Free with delete.
10697 (parse_tracepoint_definition): Adjust to std::vector change.
10698 * breakpoint.c (read_uploaded_action): Likewise.
10699 (create_tracepoint_from_upload): Likewise.
10700 * ctf.c (ctf_write_uploaded_tp): Likewise.
10701 (SET_ARRAY_FIELD): Likewise.
10702 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10703
10704 2018-03-30 Tom Tromey <tom@tromey.com>
10705
10706 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10707 std::unique_ptr.
10708 (svr4_keep_data_in_core): Update.
10709 (svr4_read_so_list): Update.
10710
10711 2018-03-30 Tom Tromey <tom@tromey.com>
10712
10713 * windows-nat.c (handle_output_debug_string, handle_exception):
10714 Update.
10715 * target.h (target_read_string): Update.
10716 * target.c (target_read_string): Change "string" to
10717 unique_xmalloc_ptr.
10718 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10719 Update.
10720 * solib-frv.c (frv_current_sos): Update.
10721 * solib-dsbt.c (dsbt_current_sos): Update.
10722 * solib-darwin.c (darwin_current_sos): Update.
10723 * linux-thread-db.c (inferior_has_bug): Update.
10724 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10725 Update. Remove alloca.
10726 * ada-lang.c (ada_main_name): Update.
10727
10728 2018-03-30 Tom Tromey <tom@tromey.com>
10729
10730 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10731 (struct dwo_file_deleter): New.
10732 (dwo_file_up): New typedef.
10733 (open_and_init_dwo_file): Use dwo_file_up.
10734 (free_dwo_file_cleanup): Remove.
10735
10736 2018-03-30 Tom Tromey <tom@tromey.com>
10737
10738 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10739 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10740
10741 2018-03-30 Tom Tromey <tom@tromey.com>
10742
10743 * dwarf2read.c (class free_cached_comp_units): New class.
10744 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10745 (free_cached_comp_units): Remove function.
10746
10747 2018-03-30 Tom Tromey <tom@tromey.com>
10748
10749 * utils.h (make_cleanup_unpush_target): Remove.
10750 * inf-ptrace.c (struct target_unpusher): New.
10751 (target_unpush_up) New typedef.
10752 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10753 target_unpush_up.
10754 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10755
10756 2018-03-27 Tom Tromey <tom@tromey.com>
10757
10758 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10759
10760 2018-03-27 Pedro Alves <palves@redhat.com>
10761 Tom Tromey <tom@tromey.com>
10762
10763 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10764 destructor. Now a class.
10765 (gdb_readline_wrapper_cleanup): Remove function.
10766 (gdb_readline_wrapper): Remove cleanups.
10767
10768 2018-03-27 Tom Tromey <tom@tromey.com>
10769
10770 * typeprint.h (struct type_print_options) <local_typedefs,
10771 global_typedefs>: Remove "struct" keyword.
10772 (class typedef_hash_table): New class.
10773 (recursively_update_typedef_hash, add_template_parameters)
10774 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10775 (find_typedef_in_hash): Don't declare.
10776 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10777 (typedef_hash_table::recursively_update): Rename from
10778 recursively_update_typedef_hash. Now a member.
10779 (typedef_hash_table::add_template_parameters): Rename from
10780 add_template_parameters. Now a member.
10781 (typedef_hash_table::typedef_hash_table): Now a constructor;
10782 rename from create_typedef_hash.
10783 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10784 rename from free_typedef_hash.
10785 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10786 (do_free_global_table): Remove.
10787 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10788 from copy_type_recursive.
10789 (create_global_typedef_table): Remove.
10790 (typedef_hash_table::find_global_typedef): Now a member of
10791 typedef_hash_table.
10792 (typedef_hash_table::find_typedef): Rename from
10793 find_typedef_in_hash; now a member.
10794 (whatis_exp): Update.
10795 * extension.h (struct ext_lang_type_printers): Add constructor and
10796 destructor.
10797 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10798 declare.
10799 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10800 Now a constructor; rename from start_ext_lang_type_printers.
10801 (ext_lang_type_printers): Now a destructor; rename from
10802 free_ext_lang_type_printers.
10803 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10804 Update.
10805 (c_type_print_base_struct_union): Update. Remove cleanups.
10806
10807 2018-03-27 Tom Tromey <tom@tromey.com>
10808
10809 * dwarf-index-write.c: Include <cmath>.
10810
10811 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10812
10813 * NEWS: Add entry describing new "set|show varsize-limit" command.
10814 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10815 command.
10816 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10817 "set variable".
10818
10819 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10820
10821 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10822 dwarf-index-write.c
10823 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10824 * dwarf-index-common.c: New file.
10825 * dwarf-index-common.h: New file.
10826 * dwarf-index-write.c: New file.
10827 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10828 (struct dwarf2_section_info): Move from here.
10829 (dwarf2_section_info_def): Likewise.
10830 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10831 (offset_type): Likewise.
10832 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10833 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10834 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10835 (byte_swap): Likewise.
10836 (MAYBE_SWAP): Likewise.
10837 (dwarf2_per_cu_ptr): Likewise.
10838 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10839 (struct tu_stats): Likewise.
10840 (struct dwarf2_per_objfile): Likewise.
10841 (struct dwarf2_per_cu_data): Likewise.
10842 (struct signatured_type): Likewise.
10843 (sig_type_ptr): Likewise.
10844 (DEF_VEC_P (sig_type_ptr)): Likewise.
10845 (INDEX4_SUFFIX): Likewise.
10846 (INDEX5_SUFFIX): Likewise.
10847 (DEBUG_STR_SUFFIX): Likewise.
10848 (dwarf2_read_section): Make non-static.
10849 (mapped_index_string_hash): Move from here.
10850 (dwarf5_djb_hash): Likewise.
10851 (file_write): Likewise.
10852 (class data_buf): Likewise.
10853 (struct symtab_index_entry): Likewise.
10854 (struct mapped_symtab): Likewise.
10855 (find_slot): Likewise.
10856 (hash_expand): Likewise.
10857 (add_index_entry): Likewise.
10858 (uniquify_cu_indices): Likewise.
10859 (class c_str_view): Likewise.
10860 (class c_str_view_hasher): Likewise.
10861 (class vector_hasher): Likewise.
10862 (write_hash_table): Likewise.
10863 (psym_index_map): Likewise.
10864 (struct addrmap_index_data): Likewise.
10865 (add_address_entry): Likewise.
10866 (add_address_entry_worker): Likewise.
10867 (write_address_map): Likewise.
10868 (symbol_kind): Likewise.
10869 (write_psymbols): Likewise.
10870 (struct signatured_type_index_data): Likewise.
10871 (write_one_signatured_type): Likewise.
10872 (recursively_count_psymbols): Likewise.
10873 (recursively_write_psymbols): Likewise.
10874 (class debug_names): Likewise.
10875 (check_dwarf64_offsets): Likewise.
10876 (psyms_seen_size): Likewise.
10877 (write_gdbindex): Likewise.
10878 (write_debug_names): Likewise.
10879 (assert_file_size): Likewise.
10880 (write_psymtabs_to_index): Likewise.
10881 (save_gdb_index_command): Likewise.
10882 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10883 command.
10884 * dwarf2read.h: New file.
10885
10886 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10887
10888 PR gdb/22670
10889 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10890 symbol name if the CU's language stores symbol names in linkage
10891 format.
10892 * language.h (struct language_defn)
10893 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10894 all instances of this struct.
10895
10896 2018-03-26 Tom Tromey <tom@tromey.com>
10897
10898 * stack.c (backtrace_command_1): Remove verbose code.
10899
10900 2018-03-26 Tom Tromey <tom@tromey.com>
10901
10902 * python/py-framefilter.c (py_print_type): Don't catch
10903 exceptions. Return void.
10904 (py_print_value): Likewise.
10905 (py_print_single_arg): Likewise.
10906 (enumerate_args): Don't catch exceptions.
10907 (py_print_args): Likewise.
10908 (py_print_frame): Likewise.
10909 (gdbpy_apply_frame_filter): Catch exceptions here.
10910
10911 2018-03-26 Tom Tromey <tom@tromey.com>
10912
10913 * stack.c (_initialize_stack): Remove trailing newlines from help
10914 text. Add "Usage" line to "backtrace" help.
10915
10916 2018-03-26 Tom Tromey <tom@tromey.com>
10917
10918 PR python/16486:
10919 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10920
10921 2018-03-26 Tom Tromey <tom@tromey.com>
10922
10923 * python/py-framefilter.c (py_print_single_arg): Return
10924 EXT_LANG_BT_ERROR from catch.
10925
10926 2018-03-26 Tom Tromey <tom@tromey.com>
10927
10928 PR backtrace/15584:
10929 * stack.c (backtrace_command_1): Move some code into no-filters
10930 "if".
10931
10932 2018-03-26 Tom Tromey <tom@tromey.com>
10933
10934 * python/py-framefilter.c (throw_quit_or_print_exception): New
10935 function.
10936 (gdbpy_apply_frame_filter): Use it.
10937
10938 2018-03-26 Tom Tromey <tom@tromey.com>
10939
10940 PR cli/17716:
10941 * python/py-framefilter.c (py_print_type, py_print_value)
10942 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10943 RETURN_MASK_ERROR.
10944
10945 2018-03-26 Tom Tromey <tom@tromey.com>
10946
10947 * python/py-framefilter.c (enumerate_args): Use
10948 gdb::unique_xmalloc_ptr.
10949
10950 2018-03-26 Tom Tromey <tom@tromey.com>
10951
10952 * python/py-framefilter.c (py_print_frame): Return
10953 EXT_LANG_BT_OK.
10954 (gdbpy_apply_frame_filter): Update comment.
10955 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10956 Remove.
10957 <EXT_LANG_BT_NO_FILTERS>: Change value.
10958
10959 2018-03-26 Tom Tromey <tom@tromey.com>
10960
10961 PR backtrace/15582:
10962 * stack.c (backtrace_command): Parse "hide" argument.
10963 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10964 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10965 constant.
10966
10967 2018-03-26 Tom Tromey <tom@tromey.com>
10968
10969 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10970 add "flags".
10971 (backtrace_command): Remove "fulltrace", add "flags".
10972
10973 2018-03-26 Tom Tromey <tom@tromey.com>
10974
10975 * stack.c (backtrace_command): Rewrite command line parsing.
10976
10977 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10978
10979 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10980
10981 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10982
10983 * filename-seen-cache.h: Add include guard.
10984
10985 2018-03-26 Keith Seitz <keiths@redhat.com>
10986
10987 * symfile.c (place_section): Remove "struct" from section_addr_info
10988 in comment.
10989 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10990 "struct" keyword from section_addr_info.
10991
10992 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10993
10994 * regformats/regdef.h (reg): Add constructors.
10995
10996 2018-03-25 Pedro Alves <palves@redhat.com>
10997
10998 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10999 if then/else bodies in var_func_name extraction.
11000
11001 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11002
11003 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11004 lookup_minimal_symbol() to find symbol entry.
11005 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11006
11007 2018-03-23 Keith Seitz <keiths@redhat.com>
11008
11009 PR c++/22968
11010 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11011 nested type definitions for C++, too.
11012
11013 2018-03-23 Tom Tromey <tom@tromey.com>
11014
11015 * machoread.c (struct oso_el): Add a constructor. Don't define as
11016 a typedef.
11017 (macho_register_oso): Remove.
11018 (macho_symtab_read): Take a std::vector.
11019 (oso_el_compare_name): Now a std::sort comparator.
11020 (macho_symfile_read_all_oso): Take a std::vector.
11021 (macho_symfile_read): Use std::vector. Remove cleanups.
11022
11023 2018-03-22 Tom Tromey <tom@tromey.com>
11024
11025 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11026 (record_full_goto_bookmark): Use std::string.
11027
11028 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11029
11030 PR tdep/18295
11031 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11032 a single mask.
11033
11034 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11035
11036 * rs6000-tdep.c (store_insn_p): New function.
11037 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11038 and cr_reg to their unshifted values. Use store_insn_p to
11039 match LR saves using either R1 or fdata->alloca_reg. Use
11040 store_insn_p to match CR saves. Set alloca_reg_offset
11041 when alloca_reg and framep are set. Remove lr_reg shift
11042 when assigning to fdata->lr_register.
11043
11044 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11045
11046 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11047 command line args instead of emitting a warning.
11048
11049 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11050
11051 * tracepoint.h (struct static_tracepoint_marker): Initialize
11052 fields, define default constructor, move constructor and move
11053 assignment, disable the rest.
11054 <str_id, extra>: Make std::string.
11055 (release_static_tracepoint_marker): Remove.
11056 (free_current_marker): Remove.
11057 * tracepoint.c (free_current_marker): Remove.
11058 (parse_static_tracepoint_marker_definition): Adjust to
11059 std::string, use new hex2str overload.
11060 (release_static_tracepoint_marker): Remove.
11061 (print_one_static_tracepoint_marker): Get marker by reference
11062 and adjust to std::string.
11063 (info_static_tracepoint_markers_command): Adjust to std::vector
11064 changes
11065 * target.h (static_tracepoint_marker_p): Remove typedef.
11066 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11067 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11068 bool.
11069 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11070 * target-debug.h
11071 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11072 (target_debug_print_std_vector_static_tracepoint_marker): New.
11073 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11074 to...
11075 (target_debug_print_static_tracepoint_marker_p): ... this.
11076 * target-delegates.c: Re-generate.
11077 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11078 Make std::string.
11079 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11080 (decode_static_tracepoint_spec): Adjust to std::vector.
11081 (tracepoint_print_one_detail): Adjust to std::string.
11082 (strace_marker_decode_location): Adjust to std::string.
11083 (update_static_tracepoint): Adjust to std::string, remove call
11084 to release_static_tracepoint_marker.
11085 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11086 Adjust to std::vector.
11087 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11088 (remote_static_tracepoint_markers_by_strid): Adjust to
11089 std::vector.
11090 * common/rsp-low.h (hex2str): New overload with explicit count
11091 of bytes.
11092 * common/rsp-low.c (hex2str): New overload with explicit count
11093 of bytes.
11094 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11095 (_initialize_rsp_low_selftests): Add test_hex2str test.
11096 * unittests/tracepoint-selftests.c
11097 (test_parse_static_tracepoint_marker_definition): Adjust to
11098 std::string.
11099
11100 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11101
11102 * tracepoint.c (parse_static_tracepoint_marker_definition):
11103 Consider case where the definition is followed by more
11104 definitions.
11105 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11106 tracepoint-selftests.c.
11107 * unittests/tracepoint-selftests.c: New.
11108
11109 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11110
11111 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11112 Carvalho.
11113
11114 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11115
11116 * symtab.c (find_pc_sect_line): fixed indentation.
11117
11118 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11119
11120 * symtab.c (find_pc_sect_line): now uses binary search.
11121
11122 2018-03-19 Tom Tromey <tom@tromey.com>
11123
11124 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11125 "IDENT" production.
11126
11127 2018-03-19 Pedro Alves <palves@redhat.com>
11128 Tom Tromey <tom@tromey.com>
11129
11130 * unittests/observable-selftests.c: New file.
11131 * common/observable.h: New file.
11132 * observable.h: New file.
11133 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11134 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11135 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11136 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11137 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11138 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11139 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11140 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11141 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11142 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11143 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11144 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11145 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11146 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11147 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11148 tui/tui-interp.c, valops.c: Update all users.
11149 * tui/tui-hooks.c (tui_bp_created_observer)
11150 (tui_bp_deleted_observer, tui_bp_modified_observer)
11151 (tui_inferior_exit_observer, tui_before_prompt_observer)
11152 (tui_normal_stop_observer, tui_register_changed_observer):
11153 Remove.
11154 (tui_observers_token): New global.
11155 (attach_or_detach, tui_attach_detach_observers): New functions.
11156 (tui_install_hooks, tui_remove_hooks): Use
11157 tui_attach_detach_observers.
11158 * record-btrace.c (record_btrace_thread_observer): Remove.
11159 (record_btrace_thread_observer_token): New global.
11160 * observer.sh: Remove.
11161 * observer.c: Rename to observable.c.
11162 * observable.c (namespace gdb_observers): Define new objects.
11163 (observer_debug): Move into gdb_observers namespace.
11164 (struct observer, struct observer_list, xalloc_observer_list_node)
11165 (xfree_observer_list_node, generic_observer_attach)
11166 (generic_observer_detach, generic_observer_notify): Remove.
11167 (_initialize_observer): Update.
11168 Don't include observer.inc.
11169 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11170 (clean mostlyclean): Likewise.
11171 (observer.h, observer.inc): Remove targets.
11172 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11173 (COMMON_SFILES): Use observable.c, not observer.c.
11174 * .gitignore: Remove observer.h.
11175
11176 2018-03-18 Tom Tromey <tom@tromey.com>
11177
11178 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11179 gdb::def_vector.
11180 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11181
11182 2018-03-17 Tom Tromey <tom@tromey.com>
11183
11184 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11185
11186 2018-03-17 Tom Tromey <tom@tromey.com>
11187
11188 * target.c (class scoped_target_fd): New.
11189 (target_fileio_close_cleanup): Remove.
11190 (target_fileio_read_alloc_1): Use scoped_target_fd.
11191
11192 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11193
11194 * silent-rules.mk: New.
11195 * Makefile.in: Include silent-rules.mk
11196 (srcdir, VPATH, top_srcdir): Move up.
11197 (COMPILE): Add ECHO_CXX.
11198 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11199 (init.c): Add ECHO_INIT_C.
11200 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11201 (version.c): Add ECHO_GEN.
11202 (printcmd.o): Add ECHO_CXX.
11203 (target-float.o): Add ECHO_CXX.
11204 (ada-exp.o): Add ECHO_CXX.
11205 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11206 (insight$(EXEEXT)): Add ECHO_CXXLD.
11207 * gnulib/configure.ac: Add AM_SILENT_RULES.
11208 * gnulib/aclocal.m4: Re-generate.
11209 * gnulib/configure: Re-generate.
11210 * gnulib/import/Makefile.in: Re-generate.
11211
11212 2018-03-16 Tom Tromey <tom@tromey.com>
11213
11214 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11215 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11216 * utils.c (do_free_section_addr_info)
11217 (make_cleanup_free_section_addr_info): Remove.
11218 * symfile.h (struct other_sections): Add constructor.
11219 (struct section_addr_info): Remove.
11220 (section_addr_info): New typedef.
11221 (struct sym_fns) <sym_offsets>: Change type of parameter.
11222 (build_section_addr_info_from_objfile)
11223 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11224 (default_symfile_offsets, symbol_file_add)
11225 (symbol_file_add_from_bfd)
11226 (build_section_addr_info_from_section_table): Update.
11227 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11228 * symfile.c (alloc_section_addr_info): Remove.
11229 (build_section_addr_info_from_section_table): Change return type.
11230 Update.
11231 (build_section_addr_info_from_bfd)
11232 (build_section_addr_info_from_objfile): Likewise.
11233 (free_section_addr_info): Remove.
11234 (relative_addr_info_to_section_offsets): Change type of "addrs".
11235 (addrs_section_compar): Now a std::sort comparator.
11236 (addrs_section_sort): Change return type.
11237 (addr_info_make_relative): Change type of "addrs". Update.
11238 (default_symfile_offsets, syms_from_objfile_1)
11239 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11240 (symbol_file_add_separate): Update.
11241 (symbol_file_add): Change type of "addrs". Update.
11242 (add_symbol_file_command): Update. Remove cleanups.
11243 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11244 cleanups.
11245 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11246 * solib.c (solib_read_symbols): Update.
11247 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11248 * machoread.c (macho_symfile_offsets): Update.
11249 * jit.c (jit_bfd_try_read_symtab): Update.
11250
11251 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11252
11253 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11254 unittests/utils-selftests.c.
11255 * unittests/utils-selftests.c: New file.
11256
11257 2018-03-14 Tom Tromey <tom@tromey.com>
11258
11259 PR cli/14977:
11260 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11261 for NULL.
11262
11263 2018-03-14 Tom Tromey <tom@tromey.com>
11264
11265 PR cli/19918:
11266 * printcmd.c (printf_pointer): Allow "-" in format.
11267
11268 2018-03-14 Tom Tromey <tom@tromey.com>
11269
11270 * printcmd.c (_initialize_printcmd): Add usage to printf.
11271
11272 2018-03-14 Yao Qi <qiyao@sourceware.org>
11273
11274 * MAINTAINERS: Update my email address.
11275
11276 2018-03-13 Tom Tromey <tom@tromey.com>
11277
11278 * machoread.c (macho_check_dsym): Change filenamep to a
11279 std::string*.
11280 (macho_symfile_read): Update.
11281 * symfile.c (load_command): Use std::string.
11282
11283 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11284
11285 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11286 to error message string.
11287 (riscv_register_name): Use xsnprintf instead of sprintf.
11288 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11289 internal_error.
11290 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11291 error.
11292 (riscv_push_dummy_call): Likewise.
11293
11294 2018-03-12 Tom Tromey <tom@tromey.com>
11295
11296 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11297 Use gdb::byte_vector.
11298 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11299
11300 2018-03-12 Yao Qi <yao.qi@linaro.org>
11301
11302 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11303 parameter type to readable_regcache.
11304 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11305 the declaration.
11306
11307 2018-03-11 Tom Tromey <tom@tromey.com>
11308
11309 * dwarf2read.c (struct nextfield): Add initializers.
11310 (struct nextfnfield): Remove.
11311 (struct fnfieldlist): Add initializers. Remove "length" and
11312 "head", use std::vector.
11313 (struct decl_field_list): Remove.
11314 (struct field_info): Add initializers.
11315 <fields, baseclasses>: Now std::vector.
11316 <nbaseclasses, nfnfields, typedef_field_list_count,
11317 nested_types_list_count>: Remove.
11318 (dwarf2_add_field, dwarf2_add_type_defn)
11319 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11320 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11321 (process_structure_scope): Update.
11322
11323 2018-03-11 Tom Tromey <tom@tromey.com>
11324
11325 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11326 for use by std::sort.
11327 (build_type_psymtabs_1): Use std::vector.
11328
11329 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11330
11331 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11332 and LIBMPFR in the printed configuration.
11333
11334 2018-03-08 Tom Tromey <tom@tromey.com>
11335
11336 * source.c (get_filename_and_charpos): Use scoped_fd.
11337 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11338 (procfs_pidlist): Likewise.
11339 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11340 (iterate_over_mappings): Likewise.
11341
11342 2018-03-08 Tom Tromey <tom@tromey.com>
11343
11344 * infcall.c (struct call_return_meta_info)
11345 <stack_temporaries_enabled>: Remove.
11346 (get_call_return_value, call_function_by_hand_dummy): Update.
11347 * thread.c (disable_thread_stack_temporaries): Remove.
11348 (enable_thread_stack_temporaries): Remove.
11349 (thread_stack_temporaries_enabled_p): Return bool.
11350 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11351 (get_last_thread_stack_temporary): Update.
11352 * eval.c (evaluate_subexp): Update.
11353 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11354 class, not a function.
11355 (value_ptr, value_vec): Remove typedefs.
11356 (class thread_info) <stack_temporaries_enabled>: Now bool.
11357 <stack_temporaries>: Now a std::vector.
11358 (thread_stack_temporaries_enabled_p)
11359 (value_in_thread_stack_temporaries): Return bool.
11360
11361 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11362
11363 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11364 (getpkt_or_notif_sane_1): Likewise.
11365
11366 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11367
11368 * build-id.c (build_id_to_debug_bfd): Use std::string.
11369
11370 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11371
11372 * build-id.c (find_separate_debug_file_by_buildid): Return
11373 std::string.
11374 * build-id.h (find_separate_debug_file_by_buildid): Return
11375 std::string.
11376 * coffread.c (coff_symfile_read): Adjust to std::string.
11377 * elfread.c (elf_symfile_read): Adjust to std::string.
11378 * symfile.c (separate_debug_file_exists): Change parameter to
11379 std::string.
11380 (find_separate_debug_file): Return std::string.
11381 (find_separate_debug_file_by_debuglink): Return std::string.
11382 * symfile.h (find_separate_debug_file_by_debuglink): Return
11383 std::string.
11384
11385 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11386
11387 * common/xml-utils.c (xml_escape_text): Move code to...
11388 (xml_escape_text_append): ... this new function.
11389 * common/xml-utils.h (xml_escape_text_append): New declaration.
11390 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11391 New function.
11392 (_initialize_xml_utils): register test_xml_escape_text_append as
11393 a selftest.
11394
11395 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11396
11397 * defs.h: Remove MAX_REGISTER_SIZE.
11398 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11399 asserts.
11400 * python/py-unwind.c (pyuw_sniffer): Likewise.
11401
11402 2018-03-07 Tom Tromey <tom@tromey.com>
11403
11404 * linux-tdep.c (linux_info_proc): Update.
11405 * target.h (struct target_ops) <to_fileio_readlink>: Return
11406 optional<string>.
11407 (target_fileio_readlink): Return optional<string>.
11408 * remote.c (remote_hostio_readlink): Return optional<string>.
11409 * inf-child.c (inf_child_fileio_readlink): Return
11410 optional<string>.
11411 * target.c (target_fileio_readlink): Return optional<string>.
11412
11413 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11414
11415 * regcache.c (cooked_read_test): Add riscv to the list of
11416 architectures that have a save_reggroup.
11417
11418 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11419
11420 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11421 value is not a dynamic class object.
11422
11423 2018-03-06 Tom Tromey <tom@tromey.com>
11424
11425 * rust-exp.y: Formatting fixes.
11426
11427 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11428
11429 * riscv-tdep.c (riscv_register_name): Remove target description
11430 support.
11431 (riscv_gdbarch_init): Remove target description check.
11432
11433 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11434
11435 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11436 comment.
11437 * riscv-tdep.h: Likewise.
11438
11439 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11440
11441 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11442 (riscv_pseudo_register_write): Delete.
11443 (riscv_gdbarch_init): Remove all use of pseudo registers.
11444
11445 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11446
11447 * record-btrace.c (btrace_print_lines): Replace cleanup
11448 parameter with RAII equivalents.
11449 (btrace_insn_history): Replace cleanup with RAII equivalents.
11450 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11451 make_cleanup_ui_out_tuple_begin_end): Remove.
11452 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11453 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11454 make_cleanup_ui_out_list_begin_end): Remove.
11455
11456 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11457
11458 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11459 parameter types to std::vector. Use bool.
11460 (record_btrace_wait): Replace VEC(tp_t) with
11461 std::vector<thread_info *>.
11462 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11463
11464 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11465
11466 * record-btrace.c (record_btrace_disable_callback): Remove.
11467 (struct scoped_btrace_disable): New.
11468 (record_btrace_open): Use scoped_btrace_disable.
11469
11470 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11471
11472 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11473 reading values from registers.
11474
11475 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11476
11477 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11478 where appropriate.
11479
11480 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11481
11482 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11483 change parameter type. Use GDB's print functions, and use
11484 core_addr_to_string where appropriate.
11485 (riscv_push_dummy_call): Use core_addr_to_string where
11486 appropriate, update call to riscv_print_arg_location, and reindent
11487 a few lines.
11488 (riscv_return_value): Update call to riscv_print_arg_location.
11489
11490 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11491 Tim Newsome <tim@sifive.com>
11492 Albert Ou <a0u@eecs.berkeley.edu>
11493 Darius Rad <darius@bluespec.com>
11494
11495 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11496 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11497 (ALLDEPFILES): Add riscv-tdep.c
11498 * configure.tgt: Add riscv support.
11499 * riscv-tdep.c: New file.
11500 * riscv-tdep.h: New file.
11501 * NEWS: Mention new target.
11502 * MAINTAINERS: Add entry for riscv.
11503
11504 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11505
11506 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11507 fields within aggregates.
11508
11509 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11510
11511 * record-btrace.c (btrace_print_lines): Change type of flags to
11512 gdb_disassembly_flags.
11513
11514 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11515
11516 * fbsd-nat.c: Include "inf-ptrace.h".
11517 (USE_SIGTRAP_SIGINFO): Conditionally define.
11518 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11519 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11520 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11521 function.
11522 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11523 Likewise.
11524 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11525 Likewise.
11526 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11527 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11528 "supports_stopped_by_hw_breakpoint" target methods.
11529
11530 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11531
11532 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11533 * fbsd-nat.c (debug_fbsd_nat): New variable.
11534 (show_fbsd_nat_debug): New function.
11535 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11536 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11537
11538 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11539
11540 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11541 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11542 prototype.
11543 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11544 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11545 method.
11546
11547 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11548
11549 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11550 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11551
11552 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11553
11554 * charset.c (struct charset_vector): New.
11555 (charsets): Change type to charset_vector.
11556 (find_charset_names): Adjust.
11557 (add_one): Adjust.
11558 (_initialize_charset): Adjust.
11559
11560 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11561
11562 * progspace.h (struct program_space) <deleted_solibs>: Change
11563 type to std::vector<std::string>.
11564 * progspace.c (clear_program_space_solib_cache): Adjust.
11565 * breakpoint.c (print_solib_event): Adjust.
11566 (check_status_catch_solib): Adjust.
11567 * solib.c (update_solib_list): Adjust.
11568 * ui-out.h (class ui_out) <field_string>: New overload.
11569 * ui-out.c (ui_out::field_string): New overload.
11570
11571 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11572
11573 * progspace.h (struct program_space): Add constructor and
11574 destructor, initialize fields.
11575 (add_program_space): Remove.
11576 * progspace.c (add_program_space): Rename to...
11577 (program_space::program_space): ... this.
11578 (release_program_space): Rename to...
11579 (program_space::~program_space): ... this.
11580 (delete_program_space): Use delete to delete program_space.
11581 (initialize_progspace): Use new to allocate program_space.
11582 * inferior.c (add_inferior_with_spaces): Likewise.
11583 (clone_inferior_command): Likewise.
11584 * infrun.c (follow_fork_inferior): Likewise.
11585 (handle_vfork_child_exec_or_exit): Likewise.
11586
11587 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11588
11589 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11590 (delim_string_to_char_ptr_vec): Return std::vector of
11591 gdb::unique_xmalloc_ptr.
11592 (dirnames_to_char_ptr_vec_append): Take std::vector of
11593 gdb::unique_xmalloc_ptr.
11594 (dirnames_to_char_ptr_vec): Return std::vector of
11595 gdb::unique_xmalloc_ptr.
11596 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11597 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11598 (delim_string_to_char_ptr_vec): Return an std::vector of
11599 gdb::unique_xmalloc_ptr, adjust the code.
11600 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11601 gdb::unique_xmalloc_ptr, adjust the code.
11602 (dirnames_to_char_ptr_vec): Return an std::vector of
11603 gdb::unique_xmalloc_ptr, adjust the code.
11604 * auto-load.c (auto_load_safe_path_vec): Change type to
11605 std::vector of gdb::unique_xmalloc_ptr.
11606 (auto_load_expand_dir_vars): Return an std::vector of
11607 gdb::unique_xmalloc_ptr, adjust the code.
11608 (auto_load_safe_path_vec_update): Adjust.
11609 (filename_is_in_auto_load_safe_path_vec): Adjust.
11610 (auto_load_objfile_script_1): Adjust.
11611 * build-id.c (build_id_to_debug_bfd): Adjust.
11612 * linux-thread-db.c (thread_db_load_search): Adjust.
11613 * source.c (add_path): Adjust.
11614 (openp): Adjust.
11615 * symfile.c (find_separate_debug_file): Adjust.
11616 * utils.c (do_free_char_ptr_vec): Remove.
11617 (make_cleanup_free_char_ptr_vec): Remove.
11618
11619 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11620
11621 PR gdb/22907
11622 * common/pathstuff.c: Conditionally include "<windows.h>".
11623
11624 2018-03-01 Georg Sauthoff <mail@georg.so>
11625
11626 PR gdb/22888
11627 * gcore.in: Quote variables and switch interpreter to bash.
11628
11629 2018-03-01 Tom Tromey <tom@tromey.com>
11630
11631 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11632 assertion. Add assertion for discriminant_index.
11633 (quirk_rust_enum): Use correct base type name in univariant case.
11634
11635 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11636
11637 * record.c (get_call_history_modifiers): Return a
11638 record_print_flags.
11639 (cmd_record_call_history): Adjust.
11640 * record-btrace.c (record_btrace_call_history): Adjust.
11641 (record_btrace_call_history_range): Adjust.
11642 (record_btrace_call_history_from): Adjust.
11643 * target-debug.h (target_debug_print_record_print_flags): New.
11644 * target-delegates.c: Re-generate.
11645 * target.c (target_call_history): Change flags type.
11646 (target_call_history_from): Likewise.
11647 (target_call_history_range): Likewise.
11648 * target.h (struct target_ops) <target_call_history>: Likewise.
11649 (target_call_history_from): Likewise.
11650 (target_call_history_range): Likewise.
11651
11652 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11653 Simon Marchi <simon.marchi@polymtl.ca>
11654
11655 * common/common-utils.c: Include "sys/stat.h".
11656 (is_regular_file): Move here from "source.c"; change return
11657 type to "bool".
11658 * common/common-utils.h (is_regular_file): New prototype.
11659 * common/pathstuff.c (contains_dir_separator): New function.
11660 * common/pathstuff.h (contains_dir_separator): New prototype.
11661 * source.c: Don't include "sys/stat.h".
11662 (is_regular_file): Move to "common/common-utils.c".
11663
11664 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11665
11666 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11667 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11668 * auto-load.c: Include "common/pathstuff.h".
11669 * common/common-def.h (current_directory): Move here.
11670 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11671 function.
11672 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11673 prototype.
11674 * common/pathstuff.c: New file.
11675 * common/pathstuff.h: New file.
11676 * compile/compile.c: Include "common/pathstuff.h".
11677 * defs.h (current_directory): Move to "common/common-defs.h".
11678 * dwarf2read.c: Include "common/pathstuff.h".
11679 * exec.c: Likewise.
11680 * guile/scm-safe-call.c: Likewise.
11681 * linux-thread-db.c: Likewise.
11682 * main.c: Likewise.
11683 * nto-tdep.c: Likewise.
11684 * objfiles.c: Likewise.
11685 * source.c: Likewise.
11686 * symtab.c: Likewise.
11687 * utils.c: Include "common/pathstuff.h".
11688 (gdb_realpath): Move to "common/pathstuff.c".
11689 (gdb_realpath_keepfile): Likewise.
11690 (gdb_abspath): Likewise.
11691 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11692 (gdb_realpath_keepfile): Likewise.
11693 (gdb_abspath): Likewise.
11694
11695 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11696
11697 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11698 wildcard process pid for super_resume for kernels with a
11699 specific bug.
11700
11701 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11702
11703 * compile/compile.c (get_args): Add additional comments
11704 explaining function.
11705
11706 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11707 Tom Tromey <tom@tromey.com>
11708
11709 * target.h (memory_write_request_s): Remove typedef. Don't define
11710 VEC.
11711 (target_write_memory_blocks): Change argument to std::vector.
11712 (struct memory_write_request): Add constructor.
11713 * target-memory.c (compare_block_starting_address): Return bool.
11714 Change argument types.
11715 (claim_memory): Change arguments to use std::vector.
11716 (split_regular_and_flash_blocks, blocks_to_erase)
11717 (compute_garbled_blocks): Likewise.
11718 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11719 (target_write_memory_blocks): Change argument to std::vector.
11720 * symfile.c (struct load_section_data): Add constructor and
11721 destructor. Use std::vector for "requests".
11722 (struct load_progress_data): Add initializers.
11723 (load_section_callback): Update. Use "new".
11724 (clear_memory_write_data): Remove.
11725 (generic_load): Update.
11726
11727 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11728
11729 * arch/aarch64.h: Use common/tdesc.h.
11730
11731 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11732
11733 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11734 architecture with a 64-bit ABI.
11735
11736 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11737
11738 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11739 ahead of target description loading.
11740
11741 2018-02-26 Tom Tromey <tom@tromey.com>
11742
11743 * stack.c (backtrace_command_1): Update.
11744 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11745 of "flags".
11746 * python/py-framefilter.c (py_print_frame)
11747 (gdbpy_apply_frame_filter): Change type of "flags".
11748 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11749 of "flags".
11750 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11751 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11752 * extension.h (enum frame_filter_flag): Rename from
11753 frame_filter_flags.
11754 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11755 (apply_ext_lang_frame_filter): Change type of "flags".
11756 * extension.c (apply_ext_lang_frame_filter): Change type of
11757 "flags".
11758 * extension-priv.h (struct extension_language_ops)
11759 <apply_frame_filter>: Change type of "flags".
11760
11761 2018-02-26 Tom Tromey <tom@tromey.com>
11762
11763 PR python/16497:
11764 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11765 off-by-one in py_end computation.
11766 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11767 PRINT_MORE_FRAMES.
11768 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11769 constant.
11770
11771 2018-02-26 Tom Tromey <tom@tromey.com>
11772
11773 * dwarf2read.c (struct variant_field): New.
11774 (struct nextfield) <variant>: New field.
11775 (dwarf2_add_field): Handle DW_TAG_variant_part.
11776 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11777 discriminated union.
11778 (read_structure_type): Handle DW_TAG_variant_part.
11779 (handle_struct_member_die): New function, extracted from
11780 process_structure_scope. Handle DW_TAG_variant.
11781 (process_structure_scope): Handle discriminated unions. Call
11782 handle_struct_member_die.
11783
11784 2018-02-26 Tom Tromey <tom@tromey.com>
11785
11786 * rust-lang.h (rust_last_path_segment): Declare.
11787 * rust-lang.c (rust_last_path_segment): Now public. Change
11788 contract.
11789 (struct disr_info): Remove.
11790 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11791 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11792 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11793 (rust_enum_p, rust_enum_variant): New function.
11794 (rust_underscore_fields): Remove "offset" parameter.
11795 (rust_print_enum): New function.
11796 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11797 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11798 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11799 enums.
11800 (rust_internal_print_type): New function, from rust_print_type.
11801 Remove enum code.
11802 (rust_print_type): Call rust_internal_print_type.
11803 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11804 Update enum handling.
11805 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11806 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11807 (rust_union_quirks): New functions.
11808 (process_full_comp_unit, process_full_type_unit): Call
11809 rust_union_quirks.
11810 (process_structure_scope): Update rust_unions if necessary.
11811
11812 2018-02-26 Tom Tromey <tom@tromey.com>
11813
11814 * value.h (value_union_variant): Declare.
11815 * valops.c (value_union_variant): New function.
11816 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11817 (struct discriminant_info): New.
11818 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11819 enumerator.
11820 (struct main_type) <flag_discriminated_union>: New field.
11821
11822 2018-02-26 Tom Tromey <tom@tromey.com>
11823
11824 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11825 unittests/unpack-selftests.c.
11826 * unittests/unpack-selftests.c: New file.
11827 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11828
11829 2018-02-26 Yao Qi <yao.qi@linaro.org>
11830
11831 * dwarf2read.c (struct partial_die_info) <read>: New method.
11832 (read_partial_die): Remove the declaration.
11833 (load_partial_dies): Update.
11834 (partial_die_info::partial_die_info):
11835 (read_partial_die): Change it to partial_die_info::read.
11836
11837 2018-02-26 Yao Qi <yao.qi@linaro.org>
11838
11839 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11840 (fixup_partial_die): Remove declaration.
11841 (scan_partial_symbols): Update.
11842 (partial_die_parent_scope): Likewise.
11843 (partial_die_full_name): Likewise.
11844 (fixup_partial_die): Change it to partial_die_info::fixup.
11845
11846 2018-02-26 Yao Qi <yao.qi@linaro.org>
11847
11848 * dwarf2read.c (read_partial_die): Update the declaration.
11849 (load_partial_dies): Caller update.
11850 (read_partial_die): Remove one argument abbrev_len.
11851
11852 2018-02-26 Yao Qi <yao.qi@linaro.org>
11853
11854 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11855 assignment operator.
11856 (load_partial_dies): Use ctor and copy ctor.
11857 (read_partial_die): Update.
11858 (dwarf2_cu::find_partial_die): Use ctor.
11859
11860 2018-02-26 Yao Qi <yao.qi@linaro.org>
11861
11862 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11863 (find_partial_die_in_comp_unit): Change it to
11864 dwarf2_cu::find_partial_die.
11865 (find_partial_die): Update.
11866
11867 2018-02-26 Yao Qi <yao.qi@linaro.org>
11868
11869 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11870 is NULL.
11871
11872 2018-02-26 Yao Qi <yao.qi@linaro.org>
11873
11874 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11875
11876 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11877
11878 * arch/amd64.h: Use common/tdesc.h.
11879 * arch/i386.c: Likewise.
11880 * arch/i386.h: Likewise.
11881 * arch/tic6x.c: Likewise.
11882 * arch/tdesc.h: Move file from here...
11883 * common/tdesc.h: ...to here.
11884 * features/aarch64-core.c: Regenerate.
11885 * features/aarch64-fpu.c: Regenerate.
11886 * features/i386/32bit-avx.c: Regenerate.
11887 * features/i386/32bit-avx512.c: Regenerate.
11888 * features/i386/32bit-core.c: Regenerate.
11889 * features/i386/32bit-linux.c: Regenerate.
11890 * features/i386/32bit-mpx.c: Regenerate.
11891 * features/i386/32bit-pkeys.c: Regenerate.
11892 * features/i386/32bit-sse.c: Regenerate.
11893 * features/i386/64bit-avx.c: Regenerate.
11894 * features/i386/64bit-avx512.c: Regenerate.
11895 * features/i386/64bit-core.c: Regenerate.
11896 * features/i386/64bit-linux.c: Regenerate.
11897 * features/i386/64bit-mpx.c: Regenerate.
11898 * features/i386/64bit-pkeys.c: Regenerate.
11899 * features/i386/64bit-segments.c: Regenerate.
11900 * features/i386/64bit-sse.c: Regenerate.
11901 * features/i386/x32-core.c: Regenerate.
11902 * features/tic6x-c6xp.c: Regenerate.
11903 * features/tic6x-core.c: Regenerate.
11904 * features/tic6x-gp.c: Regenerate.
11905 * target-descriptions.c: Use common/tdesc.h.
11906 * target-descriptions.h: Likewise.
11907
11908 2018-02-24 Tom Tromey <tom@tromey.com>
11909
11910 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11911 (try_thread_db_load_from_dir, thread_db_load_search): Use
11912 std::string.
11913 (info_auto_load_libthread_db_compare): Return bool. Change
11914 argument types.
11915 (info_auto_load_libthread_db): Use std::vector, std::string.
11916 Remove cleanups.
11917
11918 2018-02-24 Tom Tromey <tom@tromey.com>
11919
11920 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11921 std::string.
11922 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11923 std::string*.
11924 * gdbarch.c: Rebuild.
11925 * gdbarch.h: Rebuild.
11926 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11927 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11928 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11929 std::string*.
11930
11931 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11932
11933 * gdbtypes.h (sect_offset): Change type to uint64_t.
11934 (sect_offset_str): New function.
11935 * dwarf2read.c (create_addrmap_from_aranges): Use
11936 sect_offset_str.
11937 (error_check_comp_unit_head): Likewise.
11938 (create_debug_type_hash_table): Likewise.
11939 (read_cutu_die_from_dwo): Likewise.
11940 (init_cutu_and_read_dies): Likewise.
11941 (init_cutu_and_read_dies_no_follow): Likewise.
11942 (process_psymtab_comp_unit_reader): Likewise.
11943 (partial_die_parent_scope): Likewise.
11944 (peek_die_abbrev): Likewise.
11945 (process_queue): Likewise.
11946 (dwarf2_physname): Likewise.
11947 (read_namespace_alias): Likewise.
11948 (read_import_statement): Likewise.
11949 (create_dwo_cu_reader): Likewise.
11950 (create_cus_hash_table): Likewise.
11951 (lookup_dwo_cutu): Likewise.
11952 (inherit_abstract_dies): Likewise.
11953 (read_func_scope): Likewise.
11954 (read_call_site_scope): Likewise.
11955 (dwarf2_add_member_fn): Likewise.
11956 (read_common_block): Likewise.
11957 (read_module_type): Likewise.
11958 (read_typedef): Likewise.
11959 (read_subrange_type): Likewise.
11960 (load_partial_dies): Likewise.
11961 (read_partial_die): Likewise.
11962 (find_partial_die): Likewise.
11963 (read_str_index): Likewise.
11964 (dwarf2_string_attr): Likewise.
11965 (build_error_marker_type): Likewise.
11966 (lookup_die_type): Likewise.
11967 (dump_die_shallow): Likewise.
11968 (follow_die_ref): Likewise.
11969 (dwarf2_fetch_die_loc_sect_off): Likewise.
11970 (dwarf2_fetch_constant_bytes): Likewise.
11971 (follow_die_sig): Likewise.
11972 (get_signatured_type): Likewise.
11973 (get_DW_AT_signature_type): Likewise.
11974 (dwarf2_find_containing_comp_unit): Likewise.
11975 (set_die_type): Likewise.
11976
11977 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11978
11979 * arch/aarch64.c: Include "common-defs.h".
11980 * arch/amd64.c: Likewise.
11981 * arch/i386.c: Likewise.
11982
11983 2018-02-21 Tom Tromey <tom@tromey.com>
11984
11985 * value.h: (extract_field_op): Update.
11986 * eval.c (extract_field_op): Return a const char *.
11987 * expression.h (parse_expression_for_completion): Update.
11988 * completer.c (complete_expression): Update.
11989 (add_struct_fields): Make fieldname const.
11990 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11991 (mark_completion_tag, parse_exp_in_context_1): Update.
11992 (parse_expression_for_completion): Change "name" to
11993 unique_xmalloc_ptr*.
11994
11995 2018-02-21 Tom Tromey <tom@tromey.com>
11996
11997 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11998
11999 2018-02-21 Yao Qi <yao.qi@linaro.org>
12000
12001 * avr-tdep.c (avr_read_pc): Change parameter type to
12002 readable_regcache.
12003 * gdbarch.sh (read_pc): Likewise.
12004 * gdbarch.c: Re-generated.
12005 * gdbarch.h: Re-generated.
12006 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12007 readable_regcache.
12008 * ia64-tdep.c (ia64_read_pc): Likewise.
12009 * mips-tdep.c (mips_read_pc): Likewise.
12010 * spu-tdep.c (spu_read_pc): Likewise.
12011
12012 2018-02-21 Yao Qi <yao.qi@linaro.org>
12013
12014 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12015 * regcache-dump.c: New file.
12016 * regcache.c: Move register_dump to regcache-dump.c.
12017 (maintenance_print_registers): Likewise.
12018 (maintenance_print_raw_registers): Likewise.
12019 (maintenance_print_cooked_registers): Likewise.
12020 (maintenance_print_register_groups): Likewise.
12021 (maintenance_print_remote_registers): Likewise.
12022 (_initialize_regcache): Likewise.
12023 * regcache.h (register_dump): Moved from regcache.c.
12024
12025 2018-02-21 Yao Qi <yao.qi@linaro.org>
12026
12027 * regcache.c (regcache::regcache): Update.
12028 (regcache::invalidate): Move it to detached_regcache::invalidate.
12029 (get_thread_arch_aspace_regcache): Update.
12030 (regcache::raw_update): Update.
12031 (regcache::cooked_read): Remove some code.
12032 (regcache::cooked_read_value): Likewise.
12033 (regcache::raw_write): Remove assert on m_readonly_p.
12034 (regcache::raw_supply_integer): Move it to
12035 detached_regcache::raw_supply_integer.
12036 (regcache::raw_supply_zeroed): Likewise.
12037 * regcache.h (detached_regcache) <raw_supply_integer>: New
12038 declaration.
12039 <raw_supply_zeroed, invalidate>: Likewise.
12040 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12041 <invalidate>: Likewise.
12042 <m_readonly_p>: Removed.
12043
12044 2018-02-21 Yao Qi <yao.qi@linaro.org>
12045
12046 * infcmd.c (get_return_value): Let stop_regs point to
12047 get_current_regcache.
12048 * regcache.c (regcache::regcache): Remove.
12049 (register_dump_reg_buffer): New class.
12050 (regcache_print): Adjust.
12051 * regcache.h (regcache): Remove constructors.
12052
12053 2018-02-21 Yao Qi <yao.qi@linaro.org>
12054
12055 * regcache.c (class register_dump): New class.
12056 (register_dump_regcache, register_dump_none): New class.
12057 (register_dump_remote, register_dump_groups): New class.
12058 (regcache_print): Update.
12059 * regcache.h (regcache_dump_what): Move it to regcache.c.
12060 (regcache) <dump>: Remove.
12061
12062 2018-02-21 Yao Qi <yao.qi@linaro.org>
12063
12064 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12065 reg_buffer_rw *.
12066 (jit_unwind_reg_set_impl): Call raw_supply.
12067 (jit_frame_sniffer): Use reg_buffer_rw.
12068 * record-full.c (record_full_core_regbuf): Change its type.
12069 (record_full_core_open_1): Use reg_buffer_rw.
12070 (record_full_close): Likewise.
12071 (record_full_core_fetch_registers): Use regcache->raw_supply.
12072 (record_full_core_store_registers): Likewise.
12073 * regcache.c (regcache::get_register_status): Move it to
12074 reg_buffer.
12075 (regcache_raw_set_cached_value): Remove.
12076 (regcache::raw_set_cached_value): Remove.
12077 (regcache::raw_write): Call raw_supply.
12078 (regcache::raw_supply): Move it to reg_buffer_rw.
12079 * regcache.h (regcache_raw_set_cached_value): Remove.
12080 (reg_buffer_rw): New class.
12081
12082 2018-02-21 Yao Qi <yao.qi@linaro.org>
12083
12084 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12085 readonly_detached_regcache.
12086 (dummy_frame_prev_register): Use regcache->cooked_read.
12087 * frame.c (frame_save_as_regcache): Change return type.
12088 (frame_pop): Update.
12089 * frame.h (frame_save_as_regcache): Update declaration.
12090 * inferior.h (get_infcall_suspend_state_regcache): Update
12091 declaration.
12092 * infrun.c (infcall_suspend_state) <registers>: use
12093 readonly_detached_regcache.
12094 (save_infcall_suspend_state): Don't use regcache_dup.
12095 (get_infcall_suspend_state_regcache): Change return type.
12096 * linux-fork.c (struct fork_info) <savedregs>: Change to
12097 readonly_detached_regcache.
12098 <pc>: New field.
12099 (fork_save_infrun_state): Don't use regcache_dup.
12100 (info_checkpoints_command): Adjust.
12101 * mi/mi-main.c (register_changed_p): Update declaration.
12102 (mi_cmd_data_list_changed_registers): Use
12103 readonly_detached_regcache.
12104 (register_changed_p): Change parameter type to
12105 readonly_detached_regcache.
12106 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12107 readonly_detached_regcache.
12108 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12109 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12110 New.
12111 (regcache::save): Move it to reg_buffer.
12112 (regcache::restore): Change parameter type.
12113 (regcache_dup): Remove.
12114 * regcache.h (reg_buffer) <save>: New method.
12115 (readonly_detached_regcache): New class.
12116 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12117 readonly_detached_regcache.
12118 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12119
12120 2018-02-21 Yao Qi <yao.qi@linaro.org>
12121
12122 * frame.c (frame_save_as_regcache): Use regcache method save.
12123 (frame_pop): Use regcache method restore.
12124 * infrun.c (restore_infcall_suspend_state): Likewise.
12125 * linux-fork.c (fork_load_infrun_state): Likewise.
12126 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12127 save.
12128 * regcache.c (regcache_save): Remove.
12129 (regcache::restore): More asserts.
12130 (regcache_cpy): Remove.
12131 * regcache.h (regcache_save): Remove the declaration.
12132 (regcache::restore): Move from private to public.
12133 Remove the friend declaration of regcache_cpy.
12134 (regcache_cpy): Remove declaration.
12135
12136 2018-02-21 Yao Qi <yao.qi@linaro.org>
12137
12138 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12139 parameter type to 'readable_regcache *'.
12140 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12141 * arm-tdep.c (arm_neon_quad_read): Likewise.
12142 (arm_pseudo_read): Likewise.
12143 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12144 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12145 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12146 * gdbarch.c: Re-generated.
12147 * gdbarch.h: Re-generated.
12148 * gdbarch.sh (pseudo_register_read): Change parameter type to
12149 'readable_regcache *'.
12150 (pseudo_register_read_value): Likewise.
12151 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12152 (h8300_pseudo_register_read): Likewise.
12153 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12154 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12155 (i386_pseudo_register_read_into_value): Likewise.
12156 (i386_pseudo_register_read_value): Likewise.
12157 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12158 declaration.
12159 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12160 * m32c-tdep.c (m32c_raw_read): Likewise.
12161 (m32c_read_flg): Likewise.
12162 (m32c_banked_register): Likewise.
12163 (m32c_banked_read): Likewise.
12164 (m32c_sb_read): Likewise.
12165 (m32c_part_read): Likewise.
12166 (m32c_cat_read): Likewise.
12167 (m32c_r3r2r1r0_read): Likewise.
12168 (m32c_pseudo_register_read): Likewise.
12169 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12170 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12171 (mep_pseudo_cr64_read): Likewise.
12172 (mep_pseudo_register_read): Likewise.
12173 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12174 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12175 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12176 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12177 (regcache::cooked_read): Likewise.
12178 (regcache::cooked_read_value): Likewise.
12179 (regcache_cooked_read_signed):
12180 (regcache::cooked_read): Likewise.
12181 * regcache.h (readable_regcache): New class.
12182 (regcache): Inherit readable_regcache. Move some methods to
12183 readable_regcache.
12184 * rl78-tdep.c (rl78_pseudo_register_read): Change
12185 parameter type to 'readable_regcache *'.
12186 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12187 (e500_pseudo_register_read): Change parameter type to
12188 'readable_regcache *'.
12189 (dfp_pseudo_register_read): Likewise.
12190 (vsx_pseudo_register_read): Likewise.
12191 (efpr_pseudo_register_read): Likewise.
12192 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12193 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12194 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12195 (sh64_pseudo_register_read): Likewise.
12196 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12197 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12198 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12199 (spu_pseudo_register_read): Likewise.
12200 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12201 (xtensa_pseudo_register_read): Likewise.
12202
12203 2018-02-21 Yao Qi <yao.qi@linaro.org>
12204
12205 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12206 (regcache::arch): Move it to reg_buffer::arch.
12207 (regcache::register_buffer): Likewise.
12208 (regcache::assert_regnum): Likewise.
12209 (regcache::num_raw_registers): Likewise.
12210 * regcache.h (reg_buffer): New class.
12211 (regcache): Inherit reg_buffer.
12212
12213 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12214
12215 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12216 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12217
12218 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12219
12220 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12221
12222 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12223
12224 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12225 (SFILES): Remove common/*.c files.
12226 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12227 * common/common.host: Add common reference.
12228 * configure.ac: Likewise.
12229 * configure: Regenerate.
12230
12231 2018-02-16 Yao Qi <yao.qi@linaro.org>
12232
12233 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12234 (block_initialize_namespace): Use new.
12235 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12236 (dwarf2_free_objfile): Use delete.
12237 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12238 (copy_type_recursive): Use new.
12239 * gdb_obstack.h (allocate_on_obstack): New.
12240
12241 2018-02-15 Yao Qi <yao.qi@linaro.org>
12242
12243 PR gdb/22849
12244 * inferior.c (exit_inferior_1): Reset inf->control.
12245
12246 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12247
12248 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12249 declaration.
12250
12251 2018-02-14 Pedro Alves <palves@redhat.com>
12252
12253 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12254 frame_cleanup_after_sniffer on exception.
12255
12256 2018-02-14 Tom Tromey <tom@tromey.com>
12257
12258 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12259 const.
12260 (solib_bfd_open): Make pathname const.
12261 * solib.c (solib_bfd_open): Make pathname const.
12262 * solib-spu.c (spu_bfd_fopen): Make name const.
12263 (spu_bfd_open): Make pathname const.
12264 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12265 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12266
12267 2018-02-14 Tom Tromey <tom@tromey.com>
12268
12269 * symfile.c (symfile_bfd_open): Update.
12270 * source.h (openp, source_full_path_of, find_and_open_source):
12271 Change argument type to unique_xmalloc_ptr.
12272 * source.c (openp): Take a unique_xmalloc_ptr.
12273 (source_full_path_of, find_and_open_source): Likewise.
12274 (open_source_file, symtab_to_fullname): Update.
12275 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12276 unique_xmalloc_ptr.
12277 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12278 (exec_file_find): Update.
12279 * psymtab.c (psymtab_to_fullname): Update.
12280 * nto-tdep.h (nto_find_and_open_solib): Update.
12281 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12282 unique_xmalloc_ptr.
12283 * exec.c (exec_file_attach): Update.
12284 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12285 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12286
12287 2018-02-14 Tom Tromey <tom@tromey.com>
12288
12289 * solib.c: Include source.h.
12290 * nto-tdep.c: Include source.h.
12291 * mi/mi-cmd-env.c: Include source.h.
12292 * infcmd.c: Include source.h.
12293 * exec.c: Include source.h.
12294 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12295 (add_path, directory_switch, source_path, init_source_path): Move
12296 declarations...
12297 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12298 (add_path, directory_switch, source_path, init_source_path):
12299 ...here.
12300
12301 2018-02-14 Tom Tromey <tom@tromey.com>
12302
12303 * solist.h (exec_file_find, solib_find): Return
12304 unique_xmalloc_ptr.
12305 (solib_bfd_fopen): Take a const char *.
12306 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12307 (exec_file_find, solib_find): Likewise.
12308 (solib_bfd_fopen): Do not take ownership of "pathname".
12309 (solib_bfd_open): Use unique_xmalloc_ptr.
12310 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12311 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12312 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12313 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12314
12315 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12316
12317 * ada-lang.c (name_match_type_from_name): Remove reference to
12318 ada_name_for_lookup in function's documentation.
12319 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12320
12321 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12322
12323 * defs.h (enum openp_flags): New enum.
12324 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12325 Move to enum openp_flags.
12326 (openp_flags): New enum flags.
12327 (openp): Change parameter type to openp_flags.
12328 * source.c (openp): Change parameter type to openp_flags.
12329 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12330 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12331
12332 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12333
12334 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12335 per-command.
12336
12337 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12338
12339 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12340 into...
12341 (class dwarf2_queue_guard): ...the destructor of this new class.
12342 (dw2_do_instantiate_symtab): Create instance of the new class
12343 dwarf2_queue_guard, remove cleanup.
12344
12345 2018-02-09 Tom Tromey <tom@tromey.com>
12346
12347 * source.c (find_source_lines): Don't reference past the end of
12348 the vector.
12349
12350 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12351
12352 * remote.c (remote_btrace_maybe_reopen): Change error message.
12353 * btrace.c (btrace_enable): Likewise.
12354 (parse_xml_btrace): Likewise.
12355 (parse_xml_btrace_conf): Likewise.
12356
12357 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12358
12359 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12360 (linux_enable_pt, linux_enable_bts): Call
12361 diagnose_perf_event_open_fail.
12362
12363 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12364
12365 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12366 Remove parameter and change return type. Update callers. Move it.
12367 (linux_enable_bts, linux_enable_pt): Improve error message.
12368 (linux_enable_pt): Remove zero buffer size check.
12369 (linux_enable_btrace): Improve error messages. Remove NULL return
12370 check.
12371
12372 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12373
12374 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12375 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12376 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12377 (linux_supports_pt, linux_supports_btrace): Remove.
12378 (linux_enable_bts): Call cpu_supports_bts.
12379 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12380 * remote.c (remote_supports_btrace): Remove.
12381 (init_remote_ops): Remove remote_supports_btrace.
12382 * target-delegates.c: Regenerated.
12383 * target.c (target_supports_btrace): Remove.
12384 * target.h (target_ops) <to_supports_btrace>: Remove
12385 (target_supports_btrace): Remove.
12386 * x86-linux-nat.c (x86_linux_create_target): Remove
12387 linux_supports_btrace.
12388
12389 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12390
12391 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12392 btrace failed.
12393 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12394 exception and use message in own exception.
12395
12396 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12397
12398 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12399 (perf_event_pt_event_type): Use gdb_file_up.
12400 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12401 scoped_fd, and scoped_mmap.
12402
12403 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12404
12405 * common/scoped_mmap.h: New.
12406 * unittests/scoped_mmap-selftest.c: New.
12407 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12408 unittests/scoped_mmap-selftest.c.
12409
12410 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12411
12412 * common/scoped_fd.h: New.
12413 * unittests/scoped_fd-selftest.c: New.
12414 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12415 unittests/scoped_fd-selftest.c.
12416
12417 2018-02-09 Tom Tromey <tom@tromey.com>
12418
12419 * auto-load.c (auto_load_section_scripts): Use
12420 gdb::unique_xmalloc_ptr.
12421
12422 2018-02-09 Tom Tromey <tom@tromey.com>
12423
12424 * auto-load.c (execute_script_contents): Use std::string.
12425
12426 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12427
12428 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12429 Python function, rather than a new command.
12430
12431 2018-02-08 Tom Tromey <tom@tromey.com>
12432
12433 * solib.c (solib_find_1): Use std::string.
12434 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12435
12436 2018-02-08 Tom Tromey <tom@tromey.com>
12437
12438 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12439
12440 2018-02-08 Tom Tromey <tom@tromey.com>
12441
12442 * source.c (find_source_lines): Use gdb::def_vector.
12443
12444 2018-02-08 Tom Tromey <tom@tromey.com>
12445
12446 * macrocmd.c (struct temporary_macro_definition): New.
12447 (macro_define_command): Use temporary_macro_definition. Remove
12448 cleanups.
12449 (free_macro_definition_ptr): Remove.
12450
12451 2018-02-08 Tom Tromey <tom@tromey.com>
12452
12453 * macroexp.c (maybe_expand): Use std::string.
12454
12455 2018-02-08 Tom Tromey <tom@tromey.com>
12456
12457 * macroexp.c (struct macro_buffer): Add initializers for some
12458 members.
12459 (init_buffer, init_shared_buffer, free_buffer)
12460 (free_buffer_return_text): Remove.
12461 (macro_buffer): New constructors.
12462 (~macro_buffer): New destructor.
12463 (macro_buffer::set_shared): New method.
12464 (macro_buffer::resize_buffer, macro_buffer::appendc)
12465 (macro_buffer::appendmem): Now methods, not free functions.
12466 (set_token, append_tokens_without_splicing, stringify)
12467 (macro_stringify): Update.
12468 (gather_arguments): Change return type. Remove argc_p argument,
12469 add args_ptr argument. Use std::vector.
12470 (substitute_args): Remove argc argument. Accept std::vector.
12471 (expand): Update. Use std::vector.
12472 (scan, macro_expand, macro_expand_next): Update.
12473
12474 2018-02-08 Tom Tromey <tom@tromey.com>
12475
12476 * symtab.c (default_collect_symbol_completion_matches_break_on):
12477 Use unique_xmalloc_ptr.
12478 * macroscope.h: (sal_macro_scope, user_macro_scope)
12479 (default_macro_scope): Return unique_xmalloc_ptr.
12480 * macroscope.c (sal_macro_scope, user_macro_scope)
12481 (default_macro_scope): Return unique_xmalloc_ptr.
12482 * macroexp.h (macro_expand, macro_expand_once): Return
12483 unique_xmalloc_ptr.
12484 * macroexp.c (macro_expand, macro_expand_once): Return
12485 unique_xmalloc_ptr.
12486 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12487 (info_macro_command, info_macros_command): Use
12488 unique_xmalloc_ptr.
12489 * compile/compile-c-support.c (write_macro_definitions): Use
12490 unique_xmalloc_ptr.
12491 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12492
12493 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12494
12495 * value.c (value_static_field): Assign field type instead of
12496 containing type when returning an optimized out value.
12497
12498 2018-02-06 Yao Qi <yao.qi@linaro.org>
12499
12500 * ft32-tdep.c (ft32_read_pc): Remove.
12501 (ft32_write_pc): Remove.
12502 (ft32_gdbarch_init): Update.
12503 * m32r-tdep.c (m32r_read_pc): Remove.
12504 (m32r_gdbarch_init): Update.
12505 * mep-tdep.c (mep_read_pc): Remove.
12506 (mep_gdbarch_init): Update.
12507 * microblaze-tdep.c (microblaze_write_pc): Remove.
12508 (microblaze_gdbarch_init): Update.
12509 * mn10300-tdep.c (mn10300_read_pc): Remove.
12510 (mn10300_write_pc): Remove.
12511 (mn10300_gdbarch_init): Update.
12512 * moxie-tdep.c (moxie_read_pc): Remove.
12513 (moxie_write_pc): Remove.
12514 (moxie_gdbarch_init): Update.
12515
12516 2018-02-06 Yao Qi <yao.qi@linaro.org>
12517
12518 * expprint.c (print_subexp_standard): Handle
12519 OP_F77_UNDETERMINED_ARGLIST.
12520 (dump_subexp_body_standard): Likewise.
12521
12522 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12523
12524 * target-descriptions.c (tdesc_element_visitor) Add empty
12525 implementations.
12526 (tdesc_type): Move make_gdb_type from here.
12527 (tdesc_type_builtin): Likewise.
12528 (tdesc_type_vector): Likewise.
12529 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12530 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12531 (make_gdb_type_union): Likewise.
12532 (make_gdb_type_flags): Likewise.
12533 (make_gdb_type_enum): Likewise.
12534 (make_gdb_type): New function.
12535 (tdesc_register_type): Use static make_gdb_type.
12536
12537 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12538
12539 * infcmd.c (default_print_one_register_info): Align natural-format
12540 column values consistently one under another.
12541 (pad_to_column): New function.
12542
12543 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12544
12545 * dwarf2read.c (dwarf2_physname): Move commment.
12546
12547 2018-02-01 Leszek Swirski <leszeks@google.com>
12548
12549 * varobj.c (varobj_formatted_print_options): Allow recursive
12550 pretty printing if pretty printing is enabled.
12551
12552 2018-02-01 Leszek Swirski <leszeks@google.com>
12553
12554 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12555 names after a structop as a filename.
12556
12557 2018-02-01 Yao Qi <yao.qi@linaro.org>
12558
12559 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12560 (arm_record_coproc_data_proc): Likewise.
12561
12562 2018-02-01 Yao Qi <yao.qi@linaro.org>
12563
12564 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12565
12566 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12567
12568 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12569 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12570
12571 2018-01-31 Pedro Alves <palves@redhat.com>
12572
12573 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12574 * inflow.c (child_terminal_save_inferior): Wrap reference to
12575 tcgetpgrp in HAVE_TERMIOS_H.
12576 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12577 _WIN32.
12578 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12579 always iterate over all inferiors.
12580 (gdbsim_cntrl_c): Adjust.
12581 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12582
12583 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12584
12585 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12586 index type is objfile-owned if the element type is as well.
12587
12588 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12589
12590 GDB 8.1 released.
12591
12592 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12593
12594 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12595 "features/s390x-linux64.c".
12596 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12597 s390_linux32 and s390x_linux64.
12598 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12599 default tdesc.
12600 * s390-tdep.c: Include "features/s390-linux32.c" and
12601 "features/s390x-linux64.c".
12602 (s390_tdesc_valid): Add check for tdesc_has_registers.
12603 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12604 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12605 tdesc_s390x_linux64.
12606 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12607 tdesc_s390x_linux64 to...
12608 * s390-tdep.h: ...here.
12609
12610 2018-01-30 Pedro Alves <palves@redhat.com>
12611
12612 PR gdb/13211
12613 * config.in, configure: Regenerate.
12614 * configure.ac: Check for getpgid.
12615 * go32-nat.c (go32_pass_ctrlc): New.
12616 (go32_target): Install it.
12617 * inf-child.c (inf_child_target): Install
12618 child_terminal_save_inferior, child_pass_ctrlc and
12619 child_interrupt.
12620 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12621 (inf_ptrace_target): No longer install it.
12622 * infcmd.c (interrupt_target_1): Adjust.
12623 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12624 (child_interrupt): Declare.
12625 (inferior::terminal_state): New.
12626 * inflow.c (struct terminal_info): Update comments.
12627 (inferior_process_group): Delete.
12628 (terminal_is_ours): Delete.
12629 (gdb_tty_state): New.
12630 (child_terminal_init): Adjust.
12631 (is_gdb_terminal, sharing_input_terminal_1)
12632 (sharing_input_terminal): New functions.
12633 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12634 Set the process's actual process group in the foreground if
12635 possible. Handle is_ours_for_output/is_ours distinction. Don't
12636 mark terminal as the inferior's if not sharing GDB's terminal.
12637 Don't check attach_flag.
12638 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12639 pass down a target_terminal_state.
12640 (child_terminal_save_inferior): New, factored out from ...
12641 (child_terminal_ours_1): ... this. Handle
12642 target_terminal_state::is_ours_for_output.
12643 (child_interrupt, child_pass_ctrlc): New.
12644 (inflow_inferior_exit): Clear the inferior's terminal_state.
12645 (copy_terminal_info): Copy the inferior's terminal state.
12646 (_initialize_inflow): Remove reference to terminal_is_ours.
12647 * inflow.h (inferior_process_group): Delete.
12648 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12649 * procfs.c (procfs_target): Don't install procfs_interrupt.
12650 (procfs_interrupt): Delete.
12651 * remote.c (remote_serial_quit_handler): Adjust.
12652 (remote_interrupt): Remove ptid parameter. Adjust.
12653 * target-delegates.c: Regenerate.
12654 * target.c: Include "terminal.h".
12655 (target_terminal::terminal_state): Rename to ...
12656 (target_terminal::m_terminal_state): ... this.
12657 (target_terminal::init): Adjust.
12658 (target_terminal::inferior): Adjust to per-inferior
12659 terminal_state.
12660 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12661 (target_terminal::ours, target_terminal::ours_for_output): Use
12662 target_terminal_is_ours_kind.
12663 (target_interrupt): Remove ptid parameter. Adjust.
12664 (default_target_pass_ctrlc): Adjust.
12665 * target.h (target_ops::to_terminal_save_inferior): New field.
12666 (target_ops::to_interrupt): Remove ptid_t parameter.
12667 (target_interrupt): Remove ptid_t parameter. Update comment.
12668 (target_pass_ctrlc): Update comment.
12669 * target/target.h (target_terminal_state): New scoped enum,
12670 factored out of ...
12671 (target_terminal::terminal_state): ... here.
12672 (target_terminal::inferior): Update comments.
12673 (target_terminal::restore_inferior): New.
12674 (target_terminal::is_inferior, target_terminal::is_ours)
12675 (target_terminal::is_ours_for_output): Adjust.
12676 (target_terminal::scoped_restore_terminal_state): Adjust to
12677 rename, and call restore_inferior() instead of inferior().
12678 (target_terminal::scoped_restore_terminal_state::m_state): Change
12679 type.
12680 (target_terminal::terminal_state): Rename to ...
12681 (target_terminal::m_terminal_state): ... this and change type.
12682
12683 2018-01-30 Pedro Alves <palves@redhat.com>
12684
12685 * linux-nat.c (wait_for_signal): New function.
12686 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12687 directly.
12688 (async_terminal_is_ours)
12689 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12690 (linux_nat_add_target): Don't override
12691 to_terminal_inferior/to_terminal_ours.
12692
12693 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12694
12695 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12696
12697 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12698
12699 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12700 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12701 dwarf2_per_objfile_free here.
12702 (dwarf2_per_objfile_free): Remove.
12703 (_initialize_dwarf2_read): Don't register
12704 dwarf2_per_objfile_free as a registry cleanup.
12705
12706 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12707
12708 Avoid compilation errors in MinGW native builds
12709
12710 The error is triggered by including python-internal.h, and the
12711 error message is:
12712
12713 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12714 from build-gnulib/import/math.h:27,
12715 from d:/usr/Python26/include/pyport.h:235,
12716 from d:/usr/Python26/include/Python.h:58,
12717 from python/python-internal.h:94,
12718 from python/py-arch.c:24:
12719 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12720 using ::hypot;
12721 ^~~~~
12722
12723 This happens because Python headers define 'hypot' to expand t
12724 '_hypot' in the Windows builds.
12725 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12726 'hypoth'. This avoids a compilation error.
12727
12728 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12729
12730 * MAINTAINERS (Write After Approval): Fix ordering.
12731
12732 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12733
12734 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12735
12736 2018-01-26 Alan Modra <amodra@gmail.com>
12737
12738 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12739 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12740 Remove nop. Make const. Comment.
12741 (powerpc32_plt_stub_so_2): New.
12742 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12743 Correct count. Update uses.
12744 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12745 Move common code reading PLT entry word. Correct
12746 powerpc32_plt_stub PLT address calculation.
12747 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12748 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12749 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12750 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12751 (ppc64_standard_linkage8): Likewise.
12752 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12753 Correct insns description.
12754 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12755
12756 2018-01-24 Pedro Alves <palves@redhat.com>
12757
12758 GCC PR libstdc++/83906
12759 * gdbtypes.c (operator==(const dynamic_prop &,
12760 const dynamic_prop &)): New.
12761 (operator==(const range_bounds &, const range_bounds &)): New.
12762 (check_types_equal): Use them instead of memcmp.
12763 * gdbtypes.h (operator==(const dynamic_prop &,
12764 const dynamic_prop &)): Declare.
12765 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12766 (operator==(const range_bounds &, const range_bounds &)): Declare.
12767 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12768
12769 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12770
12771 * s390-linux-tdep.c (s390_record_address_mask)
12772 (s390_record_calc_disp_common, s390_record_calc_disp)
12773 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12774 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12775 (s390_process_record): Move to s390-tdep.c.
12776 (s390_linux_init_abi_any): Adjust.
12777 * s390-tdep.c (s390_record_address_mask)
12778 (s390_record_calc_disp_common, s390_record_calc_disp)
12779 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12780 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12781 (s390_process_record): Moved from s390-linux-tdep.c
12782 (s390_gdbarch_init): Adjust.
12783
12784 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12785
12786 * s390-linux-nat.c (s390-tdep.h): New include.
12787 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12788 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12789 (ALLDEPFILES): Add s390-tdep.c.
12790 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12791 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12792 * s390-tdep.h: ...this. New file.
12793 * s390-linux-tdep.c (s390-tdep.h): New include.
12794 (_initialize_s390_tdep): Rename to...
12795 (_initialize_s390_linux_tdep): ...this and adjust.
12796 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12797 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12798 s390-tdep.h.
12799 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12800 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12801 (s390_is_partial_instruction, s390_software_single_step)
12802 (is_non_branch_ril, s390_displaced_step_copy_insn)
12803 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12804 (s390_prologue_data, s390_addr, s390_store, s390_load)
12805 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12806 (s390_register_call_saved, s390_guess_tracepoint_registers)
12807 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12808 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12809 (s390_pseudo_register_name, s390_pseudo_register_type)
12810 (s390_pseudo_register_read, s390_pseudo_register_write)
12811 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12812 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12813 (s390_addr_bits_remove, s390_address_class_type_flags)
12814 (s390_address_class_type_flags_to_name)
12815 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12816 (s390_function_arg_float, s390_function_arg_vector)
12817 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12818 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12819 (s390_frame_align, s390_register_return_value, s390_return_value)
12820 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12821 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12822 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12823 (s390_trad_frame_prev_register, s390_unwind_cache)
12824 (s390_prologue_frame_unwind_cache)
12825 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12826 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12827 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12828 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12829 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12830 (s390_frame_base_address, s390_local_base_address)
12831 (s390_frame_base, s390_gcc_target_options)
12832 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12833 (s390_validate_reg_range, s390_tdesc_valid)
12834 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12835 * s390-tdep.c: ...this. New file.
12836
12837 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12838
12839 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12840 (s390_process_record, s390_gdbarch_tdep_alloc)
12841 (s390_linux_init_abi_any): Use/set new hook.
12842
12843 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12844
12845 * s390-linux-tdep.c (osabi.h): New include.
12846 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12847 (s390_linux_init_abi_any): New functions.
12848 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12849
12850 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12851
12852 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12853 tdesc_has_registers check
12854
12855 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12856
12857 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12858 (s390_validate_reg_range): New macro.
12859 (s390_gdbarch_init): Adjust.
12860
12861 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12862
12863 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12864 (s390_gdbarch_tdep_alloc): Adjust.
12865 (s390_gdbarch_init): Adjust.
12866
12867 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12868
12869 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12870 <have_tdb>: Change type to bool.
12871 (s390_gdbarch_tdep_alloc): Adjust.
12872 (s390_gdbarch_init): Adjust.
12873
12874 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12875
12876 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12877 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12878 (s390_gdbarch_tdep_alloc): New function.
12879 (s390_gdbarch_init): Allocate tdep at start and use its fields
12880 instead of separate variables.
12881
12882 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12883
12884 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12885 when looking for cached gdbarch and add comment for remaining.
12886
12887 2018-01-22 Pedro Alves <palves@redhat.com>
12888 Sergio Durigan Junior <sergiodj@redhat.com>
12889
12890 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12891 case.
12892
12893 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12894
12895 * MAINTAINERS: Update my company e-mail address.
12896
12897 2018-01-22 Yao Qi <yao.qi@linaro.org>
12898
12899 * regcache.c (cooked_write_test): New function.
12900 (_initialize_regcache): Register the test.
12901
12902 2018-01-22 Yao Qi <yao.qi@linaro.org>
12903
12904 * ia64-tdep.c (ia64_pseudo_register_read): Call
12905 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12906 * m32c-tdep.c (m32c_cat_read): Likewise.
12907 (m32c_r3r2r1r0_read): Likewise.
12908 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12909 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12910
12911 2018-01-22 Yao Qi <yao.qi@linaro.org>
12912
12913 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12914 method raw_read instead of regcache_raw_read.
12915 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12916 * arm-tdep.c (arm_neon_quad_read): Likewise.
12917 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12918 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12919 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12920 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12921 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12922 (i386_pseudo_register_read_into_value): Likewise.
12923 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12924 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12925 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12926 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12927 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12928 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12929 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12930 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12931 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12932
12933 2018-01-22 Yao Qi <yao.qi@linaro.org>
12934
12935 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12936 * configure.tgt: Remove target mt.
12937 * mt-tdep.c: Remove.
12938 * regcache.c (cooked_read_test): Remove the check for mt.
12939
12940 2018-01-22 Yao Qi <yao.qi@linaro.org>
12941
12942 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12943 instead of gdbarch_pseudo_register_read_value.
12944
12945 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12946
12947 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12948 language is Ada.
12949
12950 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12951
12952 * linespec.c (create_sals_line_offset): Remove code that preserved
12953 the symtab_and_line's line number.
12954
12955 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12956
12957 * varobj.c (varobj_create): Don't set valid_block when creating a
12958 floating varobj.
12959
12960 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12961
12962 * varobj.c (varobj_create): Remove out of date comment.
12963
12964 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12965
12966 PR mi/20395
12967 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12968 updating innermost block.
12969 * parse.c (innermost_block_tracker::update): Take extra type
12970 parameter, and check types match before updating innermost block.
12971 (write_dollar_variable): Update innermost block for registers.
12972 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12973 (innermost_block_tracker::innermost_block_tracker): Initialise
12974 m_types member.
12975 (innermost_block_tracker::reset): Take type parameter.
12976 (innermost_block_tracker::update): Take type parameter, and pass
12977 type through as needed.
12978 (innermost_block_tracker::m_types): New member.
12979 * varobj.c (varobj_create): Pass type when reseting innermost
12980 block.
12981
12982 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12983
12984 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12985 * ada-lang.c (resolve_subexp): Likewise.
12986 * breakpoint.c (set_breakpoint_condition) Likewise.
12987 (watch_command_1) Likewise.
12988 * c-exp.y (variable): Likewise.
12989 * d-exp.y (PrimaryExpression): Likewise.
12990 * f-exp.y (variable): Likewise.
12991 * go-exp.y (variable): Likewise.
12992 * m2-exp.y (variable): Likewise.
12993 * objfiles.c (objfile::~objfile): Likewise.
12994 * p-exp.y (variable): Likewise.
12995 * parse.c (innermost_block): Change type.
12996 * parser-defs.h (class innermost_block_tracker): New.
12997 (innermost_block): Change to innermost_block_tracker.
12998 * printcmd.c (display_command): Switch to innermost_block API.
12999 (do_one_display): Likewise.
13000 * rust-exp.y (do_one_display): Likewise.
13001 * symfile.c (clear_symtab_users): Likewise.
13002 * varobj.c (varobj_create): Switch to innermost_block API, replace
13003 use of innermost_block with block stored on varobj object.
13004
13005 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13006
13007 * expression.h (innermost_block): Remove declaration.
13008 * varobj.c: Add 'parser-defs.h' include.
13009
13010 2018-01-19 Tom Tromey <tom@tromey.com>
13011
13012 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13013 symbols in the static and global blocks.
13014
13015 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13016
13017 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13018 gdb_ptrace.h, and move including gdb_wait.h ...
13019 * nat/linux-ptrace.h: ... to here.
13020
13021 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13022
13023 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13024 inf_ptrace_detach_success.
13025 (inf_ptrace_detach_success): Add inferior parameter, use it
13026 instead of inferior_ptid, pass it to detach_inferior.
13027 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13028 parameter.
13029 * inferior.c (detach_inferior): Add overload that takes an
13030 inferior object.
13031 * inferior.h (detach_inferior): Likewise.
13032 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13033 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13034 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13035
13036 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13037
13038 * target.h (struct target_ops) <to_detach>: Add inferior
13039 parameter.
13040 (target_detach): Likewise.
13041 * target.c (dispose_inferior): Pass inferior down.
13042 (target_detach): Pass inferior down. Assert that it is equal to
13043 the current inferior.
13044 * aix-thread.c (aix_thread_detach): Pass inferior down.
13045 * corefile.c (core_file_command): Pass current_inferior() down.
13046 * corelow.c (core_detach): Add inferior parameter.
13047 * darwin-nat.c (darwin_detach): Likewise.
13048 * gnu-nat.c (gnu_detach): Likewise.
13049 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13050 * infcmd.c (detach_command): Pass current_inferior() down to
13051 target_detach.
13052 * infrun.c (follow_fork_inferior): Pass parent_inf to
13053 target_detach.
13054 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13055 target_detach.
13056 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13057 * linux-thread-db.c (thread_db_detach): Likewise.
13058 * nto-procfs.c (procfs_detach): Likewise.
13059 * procfs.c (procfs_detach): Likewise.
13060 * record.c (record_detach): Likewise.
13061 * record.h (struct inferior): Forward-declare.
13062 (record_detach): Add inferior parameter.
13063 * remote-sim.c (gdbsim_detach): Likewise.
13064 * remote.c (remote_detach_1): Likewise.
13065 (remote_detach): Likewise.
13066 (extended_remote_detach): Likewise.
13067 * sol-thread.c (sol_thread_detach): Likewise.
13068 * target-debug.h (target_debug_print_inferior_p): New macro.
13069 * target-delegates.c: Re-generate.
13070 * top.c (kill_or_detach): Pass inferior down to target_detach.
13071 * windows-nat.c (windows_detach): Add inferior parameter.
13072
13073 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13074
13075 * target.h (struct target_ops) <to_detach>: Remove args
13076 parameter.
13077 (target_detach): Likewise.
13078 * target.c (dispose_inferior): Adjust.
13079 (target_detach): Remove args parameter, adjust.
13080 * aix-thread.c (aix_thread_detach): Adjust.
13081 * corefile.c (core_file_command): Adjust.
13082 * corelow.c (core_detach): Adjust.
13083 * darwin-nat.c (darwin_detach): Adjust.
13084 * gnu-nat.c (gnu_detach): Adjust.
13085 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13086 * infcmd.c (detach_command): Adjust
13087 * infrun.c (follow_fork_inferior): Adjust.
13088 (handle_vfork_child_exec_or_exit): Adjust.
13089 * linux-fork.c (linux_fork_detach): Remove args parameter.
13090 * linux-fork.h (linux_fork_detach): Likewise.
13091 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13092 * linux-thread-db.c (thread_db_detach): Likewise.
13093 * nto-procfs.c (procfs_detach): Likewise.
13094 * procfs.c (procfs_detach): Likewise.
13095 (do_detach): Remove signo parameter.
13096 * record.c (record_detach): Remove args parameter.
13097 * record.h (record_detach): Likewise.
13098 * remote-sim.c (gdbsim_detach): Likewise.
13099 * remote.c (remote_detach_1): Likewise.
13100 (remote_detach): Likewise.
13101 (extended_remote_detach): Likewise.
13102 * sol-thread.c (sol_thread_detach): Likewise.
13103 * target-delegates.c: Re-generate.
13104 * top.c (struct qt_args) <args>: Remove field.
13105 (kill_or_detach): Don't pass args.
13106 (quit_force): Don't set args.
13107 * windows-nat.c (windows_detach): Remove args parameter.
13108
13109 2018-01-19 Yao Qi <yao.qi@linaro.org>
13110
13111 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13112 (arm_linux_init_abi): Install it.
13113
13114 2018-01-19 Yao Qi <yao.qi@linaro.org>
13115
13116 * osabi.c (gdb_osabi_names): Extend the regexp for
13117 arm-linux-gnueabihf.
13118
13119 2018-01-18 Yao Qi <yao.qi@linaro.org>
13120
13121 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13122 m_abbrevs.
13123 (abbrev_table::add_abbrev): Update.
13124 (abbrev_table::lookup_abbrev): Update.
13125
13126 2018-01-18 Yao Qi <yao.qi@linaro.org>
13127
13128 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13129
13130 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13131
13132 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13133 to "std::string".
13134
13135 2018-01-17 Tom Tromey <tom@tromey.com>
13136
13137 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13138
13139 2018-01-17 Tom Tromey <tom@tromey.com>
13140
13141 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13142 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13143 (create_array_type_with_stride): Update.
13144 * dwarf2read.c (set_die_type): Update.
13145
13146 2018-01-17 Tom Tromey <tom@tromey.com>
13147
13148 * dwarf2read.c (delayed_method_info): Remove typedef.
13149 (dwarf2_cu::method_info): Now a std::vector.
13150 (add_to_method_list): Update.
13151 (free_delayed_list): Remove.
13152 (compute_delayed_physnames): Update.
13153 (process_full_comp_unit, process_full_type_unit): Clear the method
13154 list. Remove cleanups.
13155 (psymtab_include_file_name): Add name_holder parameter. Use
13156 unique_xmalloc_ptr.
13157 (dwarf_decode_lines): Update.
13158
13159 2018-01-17 Tom Tromey <tom@tromey.com>
13160 Simon Marchi <simon.marchi@ericsson.com>
13161
13162 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13163 (dwarf2_per_objfile::free_cached_comp_units)
13164 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13165 (init_cutu_and_read_dies_no_follow): Update.
13166 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13167 (dwarf2_cu::~dwarf2_cu): New.
13168 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13169 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13170
13171 2018-01-17 Tom Tromey <tom@tromey.com>
13172 Simon Marchi <simon.marchi@ericsson.com>
13173
13174 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13175 (struct die_reader_specs) <abbrev_table>: New member.
13176 (struct abbrev_table): Add constructor.
13177 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13178 <abbrev_obstack>: Now an auto_obstack.
13179 (abbrev_table_up): New typedef.
13180 (init_cu_die_reader): Add abbrev_table parameter.
13181 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13182 Add result_dwo_abbrev_table.
13183 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13184 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13185 Update.
13186 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13187 parameter.
13188 (skip_children): Update.
13189 (abbrev_table::alloc_abbrev): Rename from
13190 abbrev_table_alloc_abbrev.
13191 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13192 (abbrev_table::lookup_abbrev): Rename from
13193 abbrev_table_lookup_abbrev.
13194 (abbrev_table_read_table): Return abbrev_table_up.
13195 (abbrev_table_free, abbrev_table_free_cleanup)
13196 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13197 (load_partial_dies): Update.
13198
13199 2018-01-17 Tom Tromey <tom@tromey.com>
13200
13201 * dwarf2read.c (dwarf2_compute_name): Update comment.
13202 (read_func_scope, read_variable): Update.
13203 (new_symbol): Remove.
13204 (new_symbol_full): Rename to new_symbol.
13205
13206 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13207
13208 PR gdb/16577
13209 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13210 a warning instead of throwing an error, set section size to 0 and return
13211 NULL.
13212 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13213
13214 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13215
13216 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13217 std::string.
13218 (linux_ptrace_attach_fail_reason_string): Likewise.
13219 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13220 Likewise.
13221 (linux_ptrace_attach_fail_reason_string): Likewise.
13222 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13223
13224 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13225
13226 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13227
13228 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13229
13230 PR gdb/21559
13231 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13232 checking for fs_base/gs_base fields in struct user_regs_struct.
13233 * configure: Regenerate.
13234
13235 2018-01-17 Yao Qi <yao.qi@linaro.org>
13236
13237 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13238 function.
13239 (aarch64_linux_init_abi): Install it to gdbarch hook
13240 gcc_target_options.
13241
13242 2018-01-15 Pedro Alves <palves@redhat.com>
13243
13244 * common/signals-state-save-restore.c
13245 (save_original_signals_state): Fix typos.
13246
13247 2017-01-12 Tom Tromey <tom@tromey.com>
13248 Sergio Durigan Junior <sergiodj@redhat.com>
13249
13250 * Makefile.in (install-only): Install gdb-add-index.
13251
13252 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13253
13254 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13255
13256 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13257
13258 * infrun.c (keep_going_pass_signal): Clear step-over info when
13259 insert_breakpoints fails.
13260
13261 2018-01-11 Pedro Alves <palves@redhat.com>
13262
13263 PR gdb/22583
13264 * infrun.c (resume): Rename to ...
13265 (resume_1): ... this.
13266 (resume): Reimplement as wrapper around resume_1.
13267
13268 2018-01-11 Pedro Alves <palves@redhat.com>
13269
13270 PR remote/22597
13271 * remote.c (remote_parse_stop_reply): Default to the last-set
13272 general thread instead of to 'magic_null_ptid'.
13273
13274 2018-01-10 Pedro Alves <palves@redhat.com>
13275
13276 * language.h (language_get_symbol_name_matcher): Rename ...
13277 (get_symbol_name_matcher): ... this.
13278 * language.c (language_get_symbol_name_matcher): Ditto.
13279 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13280 callers adjusted.
13281
13282 2018-01-10 Pedro Alves <palves@redhat.com>
13283
13284 PR gdb/22670
13285 * dwarf2read.c
13286 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13287 Adjust to use language_get_symbol_name_matcher instead of
13288 language_defn::la_get_symbol_name_matcher.
13289 * language.c (language_get_symbol_name_matcher): If in Ada mode
13290 and the lookup name is a verbatim match, return Ada's matcher.
13291 * language.h (language_get_symbol_name_matcher): Adjust comment.
13292 (ada_lookup_name_info::verbatim_p):: New method.
13293
13294 2018-01-10 Pedro Alves <palves@redhat.com>
13295
13296 PR gdb/22670
13297 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13298 minsym's language is language_auto or language_cplus, pass down
13299 language_ada instead.
13300 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13301
13302 2018-01-10 Pedro Alves <palves@redhat.com>
13303
13304 PR gdb/22670
13305 * minsyms.c (linkage_name_str): New function.
13306 (iterate_over_minimal_symbols): Use it.
13307
13308 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13309
13310 * NEWS: Document that 'info proc' now works on FreeBSD.
13311
13312 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13313
13314 * configure.ac: Check for kinfo_getfile in libutil.
13315 * configure: Regenerate.
13316 * config.in: Regenerate.
13317 * fbsd-nat.c: Include "fbsd-tdep.h".
13318 (fbsd_fetch_cmdline): New.
13319 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13320 rather than calling error.
13321 (fbsd_info_proc): New.
13322 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13323 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13324 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13325
13326 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13327
13328 * fbsd-nat.c (struct free_deleter): Remove.
13329 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13330
13331 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13332
13333 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13334 NULL for an empty pathname.
13335
13336 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13337
13338 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13339 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13340 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13341 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13342 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13343 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13344 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13345 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13346 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13347 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13348 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13349 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13350 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13351 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13352 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13353
13354 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13355
13356 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13357 (gnu_xfer_auxv): New function.
13358 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13359 TARGET_OBJECT_AUXV.
13360
13361 2018-01-08 Yao Qi <yao.qi@linaro.org>
13362 Simon Marchi <simon.marchi@ericsson.com>
13363
13364 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13365 common/selftest.c.
13366 (COMMON_OBS): Remove selftest.o.
13367 * configure.ac: Append selftest-arch.c and common/selftest.c to
13368 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13369 * configure: Re-generated.
13370 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13371 GDB_SELF_TEST.
13372 (maintenance_info_selftests): Likewise.
13373
13374 2018-01-08 Xavier Roirand <roirand@adacore.com>
13375
13376 * ada-valprint.c (val_print_packed_array_elements): Use
13377 proper number of elements when printing an array indexed
13378 by an enumeration type.
13379
13380 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13381
13382 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13383 (dw2_get_file_names_reader): Adjust.
13384 (lookup_dwo_signatured_type): Adjust.
13385 (lookup_dwp_signatured_type): Adjust.
13386 (lookup_signatured_type): Adjust.
13387 (create_type_unit_group): Adjust.
13388 (get_type_unit_group): Adjust.
13389 (process_psymtab_comp_unit_reader): Adjust.
13390 (build_type_psymtabs_reader): Adjust.
13391 (scan_partial_symbols): Adjust.
13392 (add_partial_symbol): Adjust.
13393 (add_partial_subprogram): Adjust.
13394 (peek_die_abbrev): Adjust.
13395 (fixup_go_packaging): Adjust.
13396 (process_imported_unit_die): Adjust.
13397 (dwarf2_compute_name): Adjust.
13398 (dwarf2_physname): Adjust.
13399 (read_import_statement): Adjust.
13400 (handle_DW_AT_stmt_list): Adjust.
13401 (read_file_scope): Adjust.
13402 (read_func_scope): Adjust.
13403 (read_lexical_block_scope): Adjust.
13404 (read_call_site_scope): Adjust.
13405 (read_variable): Adjust.
13406 (dwarf2_rnglists_process): Adjust.
13407 (dwarf2_ranges_process): Adjust.
13408 (dwarf2_ranges_read): Adjust.
13409 (dwarf2_get_pc_bounds): Adjust.
13410 (dwarf2_record_block_ranges): Adjust.
13411 (dwarf2_add_field): Adjust.
13412 (dwarf2_add_member_fn): Adjust.
13413 (read_structure_type): Adjust.
13414 (process_structure_scope): Adjust.
13415 (read_enumeration_type): Adjust.
13416 (read_array_type): Adjust.
13417 (mark_common_block_symbol_computed): Adjust.
13418 (read_common_block): Adjust.
13419 (read_namespace_type): Adjust.
13420 (read_namespace): Adjust.
13421 (read_module_type): Adjust.
13422 (read_tag_pointer_type): Adjust.
13423 (read_tag_ptr_to_member_type): Adjust.
13424 (read_tag_string_type): Adjust.
13425 (read_subroutine_type): Adjust.
13426 (read_typedef): Adjust.
13427 (read_base_type): Adjust.
13428 (attr_to_dynamic_prop): Adjust.
13429 (read_subrange_type): Adjust.
13430 (read_unspecified_type): Adjust.
13431 (dwarf2_read_abbrevs): Adjust.
13432 (load_partial_dies): Adjust.
13433 (read_partial_die): Adjust.
13434 (find_partial_die): Adjust.
13435 (guess_partial_die_structure_name): Adjust.
13436 (fixup_partial_die): Adjust.
13437 (read_attribute_value): Adjust.
13438 (read_addr_index): Adjust.
13439 (read_addr_index_from_leb128): Adjust.
13440 (read_str_index): Adjust.
13441 (dwarf2_string_attr): Adjust.
13442 (get_debug_line_section): Adjust.
13443 (dwarf_decode_line_header): Adjust.
13444 (lnp_state_machine::check_line_address): Adjust.
13445 (dwarf_decode_lines_1): Adjust.
13446 (dwarf_decode_lines): Adjust.
13447 (dwarf2_start_symtab): Adjust.
13448 (var_decode_location): Adjust.
13449 (new_symbol_full): Adjust.
13450 (dwarf2_const_value_data): Adjust.
13451 (dwarf2_const_value_attr): Adjust.
13452 (dwarf2_const_value): Adjust.
13453 (die_type): Adjust.
13454 (die_containing_type): Adjust.
13455 (build_error_marker_type): Adjust.
13456 (lookup_die_type): Adjust.
13457 (guess_full_die_structure_name): Adjust.
13458 (anonymous_struct_prefix): Adjust.
13459 (determine_prefix): Adjust.
13460 (dwarf2_name): Adjust.
13461 (follow_die_ref_or_sig): Adjust.
13462 (follow_die_offset): Adjust.
13463 (follow_die_ref): Adjust.
13464 (follow_die_sig_1): Adjust.
13465 (follow_die_sig): Adjust.
13466 (get_signatured_type): Adjust.
13467 (get_DW_AT_signature_type): Adjust.
13468 (decode_locdesc): Adjust.
13469 (dwarf_decode_macros): Adjust.
13470 (cu_debug_loc_section): Adjust.
13471 (fill_in_loclist_baton): Adjust.
13472 (dwarf2_symbol_mark_computed): Adjust.
13473 (init_one_comp_unit): Don't assign
13474 dwarf2_cu::dwarf2_per_objfile.
13475 (set_die_type): Adjust.
13476
13477 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13478
13479 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13480 <dwarf2_per_objfile>: New field.
13481 (dwarf2_per_objfile): Remove global.
13482 (get_dwarf2_per_objfile): New function.
13483 (set_dwarf2_per_objfile): New function.
13484 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13485 dwarf2_per_objfile.
13486 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13487 (read_abbrev_offset): Likewise.
13488 (read_indirect_string): Likewise.
13489 (read_indirect_line_string): Likewise.
13490 (read_indirect_string_at_offset): Likewise.
13491 (read_indirect_string_from_dwz): Likewise.
13492 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13493 dwarf2_per_objfile.
13494 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13495 (create_all_comp_units): Change objfile parameter to
13496 dwarf2_per_objfile.
13497 (create_all_type_units): Likewise.
13498 (process_queue): Add dwarf2_per_objfile parameter.
13499 (read_and_check_comp_unit_head): Likewise.
13500 (lookup_dwo_unit_in_dwp): Likewise.
13501 (get_dwp_file): Likewise.
13502 (process_cu_includes): Likewise.
13503 (struct free_dwo_file_cleanup_data): New struct.
13504 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13505 set_dwarf2_per_objfile.
13506 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13507 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13508 context, adjust calls.
13509 (dw2_instantiate_symtab): Likewise.
13510 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13511 (dw2_get_cu): Likewise.
13512 (create_cu_from_index_list): Change objfile parameter to
13513 dwarf2_per_objfile.
13514 (create_cus_from_index_list): Get dwarf2_per_objfile from
13515 context, adjust calls.
13516 (create_cus_from_index): Likewise.
13517 (create_signatured_type_table_from_index): Change objfile
13518 parameter to dwarf2_per_objfile.
13519 (create_signatured_type_table_from_debug_names): Change objfile
13520 parameter to dwarf2_per_objfile.
13521 (create_addrmap_from_index): Likewise.
13522 (create_addrmap_from_aranges): Likewise.
13523 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13524 (dw2_setup): Remove.
13525 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13526 context.
13527 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13528 get_dwarf2_per_objfile.
13529 (dw2_forget_cached_source_info): Likewise.
13530 (dw2_map_symtabs_matching_filename): Likewise.
13531 (struct dw2_symtab_iterator) <index>: Remove.
13532 <dwarf2_per_objfile>: New field.
13533 (dw2_symtab_iter_init): Replace index parameter with
13534 dwarf2_per_objfile.
13535 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13536 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13537 (dw2_print_stats): Likewise.
13538 (dw2_dump): Likewise.
13539 (dw2_expand_symtabs_for_function): Likewise.
13540 (dw2_expand_all_symtabs): Likewise.
13541 (dw2_expand_symtabs_with_fullname): Likewise.
13542 (dw2_expand_marked_cus): Replace index and objfile parameters
13543 with dwarf2_per_objfile.
13544 (dw_expand_symtabs_matching_file_matcher): Add
13545 dwarf2_per_objfile parameter and adjust calls.
13546 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13547 adjust calls.
13548 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13549 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13550 adjust calls.
13551 (create_cus_from_debug_names_list): Replace objfile parameter
13552 with dwarf2_per_objfile and adjust calls.
13553 (create_cus_from_debug_names): Likewise.
13554 (dwarf2_read_debug_names): Likewise.
13555 (mapped_debug_names::namei_to_name): Adjust call.
13556 (dw2_debug_names_iterator::next): Likewise.
13557 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13558 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13559 (dw2_debug_names_dump): Likewise.
13560 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13561 (dw2_debug_names_expand_symtabs_matching): Likewise.
13562 (dwarf2_initialize_objfile): Likewise.
13563 (dwarf2_build_psymtabs): Likewise.
13564 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13565 this_cu.
13566 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13567 (read_and_check_comp_unit_head): Likewise.
13568 (read_abbrev_offset): Likewise.
13569 (create_debug_type_hash_table): Likewise.
13570 (create_debug_types_hash_table): Likewise.
13571 (create_all_type_units): Replace objfile parameter with
13572 dwarf2_per_objfile.
13573 (add_type_unit): Add dwarf2_per_objfile parameter.
13574 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13575 with dwarf2_per_objfile.
13576 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13577 (lookup_dwp_signatured_type): Likewise.
13578 (lookup_signatured_type): Likewise.
13579 (read_cutu_die_from_dwo): Likewise.
13580 (init_tu_and_read_dwo_dies): Likewise.
13581 (init_cutu_and_read_dies): Likewise.
13582 (init_cutu_and_read_dies_no_follow): Likewise.
13583 (allocate_type_unit_groups_table): Add objfile parameter.
13584 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13585 (get_type_unit_group): Likewise.
13586 (process_psymtab_comp_unit): Update call.
13587 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13588 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13589 (print_tu_stats): Likewise.
13590 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13591 in void* parameter.
13592 (build_type_psymtabs): Change objfile parameter to
13593 dwarf2_per_objfile.
13594 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13595 passed in void* parameter.
13596 (process_skeletonless_type_units): Change objfile parameter to
13597 dwarf2_per_objfile.
13598 (set_partial_user): Likewise.
13599 (dwarf2_build_psymtabs_hard): Likewise.
13600 (read_comp_units_from_section): Likewise.
13601 (create_all_comp_units): Likewise.
13602 (scan_partial_symbols): Update calls.
13603 (add_partial_symbol): Likewise.
13604 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13605 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13606 (process_queue): Add dwarf2_per_objfile parameter.
13607 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13608 (compute_compunit_symtab_includes): Likewise.
13609 (process_cu_includes): Add dwarf2_per_objfile parameter.
13610 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13611 (process_full_type_unit): Likewise.
13612 (process_imported_unit_die): Update call.
13613 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13614 (read_file_scope): Likewise.
13615 (allocate_dwo_file_hash_table): Add objfile parameter.
13616 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13617 (create_cus_hash_table): Likewise.
13618 (create_dwp_hash_table): Likewise.
13619 (create_dwo_unit_in_dwp_v1): Likewise.
13620 (create_dwp_v2_section): Likewise.
13621 (create_dwo_unit_in_dwp_v2): Likewise.
13622 (lookup_dwo_unit_in_dwp): Likewise.
13623 (try_open_dwop_file): Likewise.
13624 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13625 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13626 cleanup to include a reference to dwarf2_per_objfile.
13627 (open_dwp_file): Add dwarf2_per_objfile parameter.
13628 (open_and_init_dwp_file): Likewise.
13629 (get_dwp_file): Likewise.
13630 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13631 (queue_and_load_all_dwo_tus): Update call.
13632 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13633 data.
13634 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13635 (dwarf2_ranges_process): Likewise.
13636 (dwarf2_get_pc_bounds): Likewise.
13637 (mark_common_block_symbol_computed): Likewise.
13638 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13639 (dwarf2_read_abbrevs): Update call.
13640 (read_partial_die): Use dwarf2_per_objfile from cu.
13641 (find_partial_die): Likewise.
13642 (fixup_partial_die): Likewise.
13643 (read_attribute_value): Likewise.
13644 (read_indirect_string_at_offset_from): Add objfile parameter.
13645 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13646 parameter.
13647 (read_indirect_string_from_dwz): Add objfile parameter.
13648 (read_indirect_string): Add objfile parameter.
13649 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13650 (read_addr_index): Use dwarf2_per_objfile from cu.
13651 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13652 call dw2_setup.
13653 (read_str_index): Use dwarf2_per_objfile from cu.
13654 (get_debug_line_section): Likewise.
13655 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13656 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13657 (new_symbol_full): Use dwarf2_per_objfile from cu.
13658 (build_error_marker_type): Likewise.
13659 (lookup_die_type): Likewise.
13660 (determine_prefix): Likewise.
13661 (follow_die_offset): Likewise.
13662 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13663 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13664 (dwarf2_fetch_die_type_sect_off): Likewise.
13665 (dwarf2_get_die_type): Likewise.
13666 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13667 (get_signatured_type): Likewise.
13668 (get_DW_AT_signature_type): Likewise.
13669 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13670 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13671 (cu_debug_loc_section): Likewise.
13672 (fill_in_loclist_baton): Likewise.
13673 (dwarf2_symbol_mark_computed): Likewise.
13674 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13675 dwarf2_per_objfile.
13676 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13677 parameter.
13678 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13679 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13680 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13681 (set_die_type): Use dwarf2_free_objfile from cu.
13682 (get_die_type_at_offset): Likewise.
13683 (dwarf2_per_objfile_free): Don't assign global variable.
13684 (debug_names) <constructor>: Add dwarf2_per_objfile
13685 parameter, update m_debugstrlookup construction.
13686 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13687 parameter.
13688 <m_dwarf2_per_objfile>: New field.
13689 <lookup>: Use m_dwarf2_per_objfile.
13690 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13691 (psyms_seen_size): Likewise.
13692 (write_gdbindex): Replace objfile parameter with
13693 dwarf2_per_objfile.
13694 (write_debug_names): Likewise.
13695 (write_psymtabs_to_index): Likewise.
13696 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13697 calls.
13698
13699 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13700
13701 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13702 <dwarf2_per_objfile>: New field.
13703 (struct dwarf2_per_cu_data) <objfile>: Remove.
13704 <dwarf2_per_objfile>: New field.
13705 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13706 of objfile.
13707 (create_signatured_type_table_from_index): Likewise.
13708 (create_debug_type_hash_table): Likewise.
13709 (fill_in_sig_entry_from_dwo_entry): Likewise.
13710 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13711 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13712 objfile.
13713 (create_partial_symtab): Access objfile through
13714 dwarf2_per_objfile.
13715 (process_psymtab_comp_unit_reader): Likewise.
13716 (read_comp_units_from_section): Likewise.
13717 (scan_partial_symbols): Likewise.
13718 (add_partial_symbol): Likewise.
13719 (add_partial_subprogram): Likewise.
13720 (peek_die_abbrev): Likewise.
13721 (fixup_go_packaging): Likewise.
13722 (process_full_comp_unit): Likewise.
13723 (process_full_type_unit): Likewise.
13724 (process_imported_unit_die): Likewise.
13725 (dwarf2_compute_name): Likewise.
13726 (dwarf2_physname): Likewise.
13727 (read_import_statement): Likewise.
13728 (create_cus_hash_table): Assign dwarf2_physname instead of
13729 objfile.
13730 (read_func_scope): Access objfile through dwarf2_per_objfile.
13731 (read_lexical_block_scope): Likewise.
13732 (read_call_site_scope): Likewise.
13733 (read_variable): Likewise.
13734 (dwarf2_rnglists_process): Likewise.
13735 (dwarf2_ranges_process): Likewise.
13736 (dwarf2_ranges_read): Likewise.
13737 (dwarf2_record_block_ranges): Likewise.
13738 (dwarf2_add_field): Likewise.
13739 (dwarf2_add_member_fn): Likewise.
13740 (read_structure_type): Likewise.
13741 (process_structure_scope): Likewise.
13742 (read_enumeration_type): Likewise.
13743 (read_array_type): Likewise.
13744 (read_common_block): Likewise.
13745 (read_namespace_type): Likewise.
13746 (read_namespace): Likewise.
13747 (read_module_type): Likewise.
13748 (read_tag_pointer_type): Likewise.
13749 (read_tag_ptr_to_member_type): Likewise.
13750 (read_tag_string_type): Likewise.
13751 (read_subroutine_type): Likewise.
13752 (read_typedef): Likewise.
13753 (read_base_type): Likewise.
13754 (attr_to_dynamic_prop): Likewise.
13755 (read_subrange_type): Likewise.
13756 (read_unspecified_type): Likewise.
13757 (load_partial_dies): Likewise.
13758 (read_partial_die): Likewise.
13759 (find_partial_die): Likewise.
13760 (guess_partial_die_structure_name): Likewise.
13761 (fixup_partial_die): Likewise.
13762 (read_attribute_value): Likewise.
13763 (read_addr_index_from_leb128): Likewise.
13764 (dwarf2_read_addr_index): Likewise.
13765 (dwarf2_string_attr): Likewise.
13766 (lnp_state_machine::check_line_address): Likewise.
13767 (dwarf_decode_lines_1): Likewise.
13768 (dwarf_decode_lines): Likewise.
13769 (dwarf2_start_symtab): Likewise.
13770 (var_decode_location): Likewise.
13771 (new_symbol_full): Likewise.
13772 (dwarf2_const_value_data): Likewise.
13773 (dwarf2_const_value_attr): Likewise.
13774 (dwarf2_const_value): Likewise.
13775 (die_type): Likewise.
13776 (die_containing_type): Likewise.
13777 (lookup_die_type): Likewise.
13778 (guess_full_die_structure_name): Likewise.
13779 (anonymous_struct_prefix): Likewise.
13780 (dwarf2_name): Likewise.
13781 (follow_die_ref_or_sig): Likewise.
13782 (follow_die_offset): Likewise.
13783 (follow_die_ref): Likewise.
13784 (dwarf2_fetch_die_loc_sect_off): Likewise.
13785 (dwarf2_fetch_constant_bytes): Likewise.
13786 (dwarf2_fetch_die_type_sect_off): Likewise.
13787 (dwarf2_get_die_type): Likewise.
13788 (follow_die_sig): Likewise.
13789 (decode_locdesc): Likewise.
13790 (dwarf2_per_cu_objfile): Likewise.
13791 (dwarf2_per_cu_text_offset): Likewise.
13792 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13793 objfile.
13794 (set_die_type): Access objfile through
13795 dwarf2_per_objfile.
13796
13797 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13798
13799 * valprint.c (converted_character_d): Remove typedef.
13800 (DEF_VEC_O (converted_character_d)): Remove.
13801 (count_next_character): Use std::vector.
13802 (print_converted_chars_to_obstack): Likewise.
13803 (generic_printstr): Likewise.
13804
13805 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13806
13807 * xml-support.h (struct gdb_xml_value): Add constructor.
13808 <value>: Change type to unique_xmalloc_ptr.
13809 (gdb_xml_value_s): Remove typedef.
13810 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13811 (gdb_xml_element_start_handler): Change parameter type to
13812 std::vector.
13813 (xml_find_attribute): Likewise.
13814 * xml-support.c (xml_find_attribute): Change parameter type to
13815 std::vector and adjust.
13816 (gdb_xml_values_cleanup): Remove.
13817 (gdb_xml_parser::start_element): Adjust to std::vector.
13818 (xinclude_start_include): Change paraeter type to std::vector
13819 and adjust.
13820 * btrace.c (check_xml_btrace_version): Likewise.
13821 (parse_xml_btrace_block): Likewise.
13822 (parse_xml_btrace_pt_config_cpu): Likewise.
13823 (parse_xml_btrace_pt): Likewise.
13824 (parse_xml_btrace_conf_bts): Likewise.
13825 (parse_xml_btrace_conf_pt): Likewise.
13826 * memory-map.c (memory_map_start_memory): Likewise.
13827 (memory_map_start_property): Likewise.
13828 * osdata.c (osdata_start_osdata): Likewise.
13829 (osdata_start_item): Likewise.
13830 (osdata_start_column): Likewise.
13831 * remote.c (start_thread): Likewise.
13832 * solib-aix.c (library_list_start_library): Likewise.
13833 (library_list_start_list): Likewise.
13834 * solib-svr4.c (library_list_start_library): Likewise.
13835 (svr4_library_list_start_list): Likewise.
13836 * solib-target.c (library_list_start_segment): Likewise.
13837 (library_list_start_section): Likewise.
13838 (library_list_start_library): Likewise.
13839 (library_list_start_list): Likewise.
13840 * tracepoint.c (traceframe_info_start_memory): Likewise.
13841 (traceframe_info_start_tvar): Likewise.
13842 * xml-syscall.c (syscall_start_syscall): Likewise.
13843 * xml-tdesc.c (tdesc_start_target): Likewise.
13844 (tdesc_start_feature): Likewise.
13845 (tdesc_start_reg): Likewise.
13846 (tdesc_start_union): Likewise.
13847 (tdesc_start_struct): Likewise.
13848 (tdesc_start_flags): Likewise.
13849 (tdesc_start_enum): Likewise.
13850 (tdesc_start_field): Likewise.
13851 (tdesc_start_enum_value): Likewise.
13852 (tdesc_start_vector): Likewise.
13853
13854 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13855
13856 * extension.h (struct xmethod_worker) <clone>: Remove.
13857 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13858 Remove.
13859 (python_xmethod_worker::clone): Remove.
13860 * valops.c (find_overload_match): Use std::move instead of
13861 clone.
13862
13863 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13864
13865 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13866 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13867 <free_xmethod_worker_data>: Remove.
13868 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13869 <get_xmethod_arg_types>: Remove.
13870 <get_xmethod_result_type>: Remove.
13871 <invoke_xmethod>: Remove.
13872 * extension.c (new_xmethod_worker): Remove.
13873 (clone_xmethod_worker): Remove.
13874 (get_matching_xmethod_workers): Return void, pass std::vector by
13875 pointer.
13876 (get_xmethod_arg_types): Rename to...
13877 (xmethod_worker::get_arg_types): ... this, and adjust.
13878 (get_xmethod_result_type): Rename to...
13879 (xmethod_worker::get_result_type): ... this, and adjust.
13880 (invoke_xmethod): Remove.
13881 (free_xmethod_worker): Remove.
13882 (free_xmethod_worker_vec): Remove.
13883 * extension.h (enum ext_lang_rc): Move here from
13884 extension-priv.h.
13885 (struct xmethod_worker): Add constructor and destructor.
13886 <data>: Remove.
13887 <value>: Remove.
13888 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13889 virtual pure methods.
13890 <get_arg_types, get_result_type>: New methods.
13891 (xmethod_worker_ptr): Remove typedef.
13892 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13893 (xmethod_worker_vec): Remove typedef.
13894 (xmethod_worker_up): New typedef.
13895 (invoke_xmethod): Remove.
13896 (clone_xmethod_worker): Remove.
13897 (free_xmethod_worker): Remove.
13898 (free_xmethod_worker_vec): Remove.
13899 (get_xmethod_arg_types): Remove.
13900 (get_xmethod_result_type): Remove.
13901 * valops.c (find_method_list): Use std::vector, don't use
13902 intermediate vector.
13903 (value_find_oload_method_list): Use std::vector.
13904 (find_overload_match): Use std::vector.
13905 (find_oload_champ): Use std::vector.
13906 * value.c (value_free): Use operator delete.
13907 (value_of_xmethod): Rename to...
13908 (value_from_xmethod): ... this. Don't assign
13909 xmethod_worker::value, take rvalue-reference.
13910 (result_type_of_xmethod): Adjust.
13911 (call_xmethod): Adjust.
13912 * value.h: Include extension.h.
13913 (struct xmethod_worker): Don't forward-declare.
13914 (value_of_xmethod): Rename to...
13915 (value_from_xmethod): ... this, take rvalue-reference.
13916 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13917 (struct python_xmethod_worker): ... this, add constructor and
13918 destructor.
13919 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13920 (gdbpy_free_xmethod_worker_data): Rename to...
13921 (python_xmethod_worker::~python_xmethod_worker): ... this and
13922 adjust.
13923 (gdbpy_clone_xmethod_worker_data): Rename to...
13924 (python_xmethod_worker::clone): ... this and adjust.
13925 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13926 temporary vector.
13927 (gdbpy_get_xmethod_arg_types): Rename to...
13928 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13929 (gdbpy_get_xmethod_result_type): Rename to...
13930 (python_xmethod_worker::do_get_result_type): ... this and
13931 adjust.
13932 (gdbpy_invoke_xmethod): Rename to...
13933 (python_xmethod_worker::invoke): ... this and adjust.
13934 (new_python_xmethod_worker): Rename to...
13935 (python_xmethod_worker::python_xmethod_worker): ... this and
13936 adjust.
13937 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13938 Remove.
13939 (gdbpy_free_xmethod_worker_data): Remove.
13940 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13941 (gdbpy_get_xmethod_arg_types): Remove.
13942 (gdbpy_get_xmethod_result_type): Remove.
13943 (gdbpy_invoke_xmethod): Remove.
13944 * python/python.c (python_extension_ops): Remove obsolete
13945 callbacks.
13946
13947 2018-01-05 Pedro Alves <palves@redhat.com>
13948
13949 PR gdb/18653
13950 * common/signals-state-save-restore.c
13951 (save_original_signals_state): New parameter 'quiet'. Warn if we
13952 find a custom handler preinstalled, instead of internal erroring.
13953 But only warn if !quiet.
13954 * common/signals-state-save-restore.h
13955 (save_original_signals_state): New parameter 'quiet'.
13956 * main.c (captured_main_1): Move save_original_signals_state call
13957 after option handling, and pass QUIET.
13958
13959 2018-01-05 Pedro Alves <palves@redhat.com>
13960
13961 * spu-tdep.c (spu_catch_start): Pass
13962 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13963
13964 2018-01-05 Pedro Alves <palves@redhat.com>
13965
13966 PR gdb/22670
13967 * ada-lang.c (literal_symbol_name_matcher): New function.
13968 (ada_get_symbol_name_matcher): Use it for
13969 symbol_name_match_type::SEARCH_NAME.
13970 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13971 it down instead of assuming symbol_name_match_type::FULL.
13972 * block.h (block_lookup_symbol): New parameter 'match_type'.
13973 * c-valprint.c (print_unpacked_pointer): Use
13974 lookup_symbol_search_name instead of lookup_symbol.
13975 * compile/compile-object-load.c (get_out_value_type): Pass down
13976 symbol_name_match_type::SEARCH_NAME.
13977 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13978 symbol_name_match_type::FULL.
13979 * cp-support.c (cp_get_symbol_name_matcher): Handle
13980 symbol_name_match_type::SEARCH_NAME.
13981 * infrun.c (insert_exception_resume_breakpoint): Use
13982 lookup_symbol_search_name.
13983 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13984 * psymtab.c (maintenance_check_psymtabs): Use
13985 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13986 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13987 SYMBOL_SEARCH_NAME.
13988 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13989 if symbol_name_match_type::SEARCH_NAME.
13990 (lookup_symbol_in_language): Pass down
13991 symbol_name_match_type::FULL.
13992 (lookup_symbol_search_name): New.
13993 (lookup_language_this): Pass down
13994 symbol_name_match_type::SEARCH_NAME.
13995 (lookup_symbol_aux, lookup_local_symbol): New parameter
13996 'match_type'. Pass it down.
13997 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13998 (lookup_symbol_search_name): New declaration.
13999 (lookup_symbol_in_block): New 'match_type' parameter.
14000
14001 2018-01-05 Pedro Alves <palves@redhat.com>
14002
14003 PR gdb/22670
14004 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14005 ada_lookup_symbol.
14006 (ada_lookup_symbol): Reimplement in terms of
14007 ada_lookup_symbol_list, bits factored out from
14008 ada_lookup_encoded_symbol.
14009
14010 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14011
14012 * ada-exp.y (write_object_renaming): When subscripting an array
14013 using a symbol as the index, pass the block in call to
14014 ada_lookup_encoded_symbol when looking that symbol up.
14015
14016 2018-01-05 Jerome Guitton <guitton@adacore.com>
14017
14018 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14019 TYPE_INDEX_TYPE.
14020
14021 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14022
14023 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14024 the case where VALUE_LVAL (val0) is not lval_memory.
14025
14026 2018-01-05 Xavier Roirand <roirand@adacore.com>
14027
14028 * ada-valprint.c (print_optional_low_bound): Handle
14029 character-indexed array printing like boolean-indexed array
14030 printing.
14031
14032 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14033
14034 * NEWS: Create a new section for the next release branch.
14035 Rename the section of the current branch, now that it has
14036 been cut.
14037
14038 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14039
14040 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14041 * version.in: Bump version to 8.1.50.DATE-git.
14042
14043 2018-01-03 Xavier Roirand <roirand@adacore.com>
14044
14045 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14046 Add field.
14047 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14048 Add field.
14049 (default_exception_support_info) <catch_handlers_sym>: Add field.
14050 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14051 (ada_exception_name_addr_1): Add "catch handlers" handling.
14052 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14053 Update all callers.
14054 (create_excep_cond_exprs) <ex>: Add parameter.
14055 (re_set_exception): Update create_excep_cond_exprs call.
14056 (print_it_exception, print_one_exception, print_mention_exception)
14057 (print_recreate_exception): Add "catch handler" handling.
14058 (allocate_location_catch_handlers, re_set_catch_handlers)
14059 (check_status_catch_handlers, print_it_catch_handlers)
14060 (print_one_catch_handlers, print_mention_catch_handlers)
14061 (print_recreate_catch_handlers): New function.
14062 (catch_handlers_breakpoint_ops): New variable.
14063 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14064 Add parameter. Add "catch handler" handling.
14065 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14066 Add "catch handler" handling.
14067 (ada_exception_catchpoint_cond_string): Add "catch handler"
14068 handling.
14069 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14070 call.
14071 (catch_ada_handlers_command): New function.
14072 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14073 operations structure.
14074 (_initialize_ada_language): Add "catch handlers" command entry.
14075 * NEWS: Document "catch handlers" feature.
14076
14077 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14078
14079 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14080 account when creating the array type of the slice.
14081 (ada_value_slice): Likewise.
14082
14083 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14084
14085 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14086 New enum value.
14087 (create_array_type_with_stride): Add byte_stride_prop parameter.
14088 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14089 New parameter. Update all callers in this file.
14090 (array_type_has_dynamic_stride): New function.
14091 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14092 of arrays with dynamic byte strides.
14093 * dwarf2read.c (read_array_type): Add support for dynamic
14094 DW_AT_byte_stride attributes.
14095
14096 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14097
14098 * dwarf2read.c (read_unspecified_type): Treat
14099 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14100
14101 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14102
14103 Update copyright year range in all GDB files.
14104
14105 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14106
14107 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14108 and gdb/testsuite/gdb.base/step-line.c.
14109
14110 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14111
14112 * copyright.py (main): Dump the contents of
14113 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14114 even if BY_HAND is empty.
14115
14116 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14117
14118 * top.c (print_gdb_version): Update Copyright year in version
14119 message.
14120
14121 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14122
14123 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14124
14125 For older changes see ChangeLog-2017.
14126 \f
14127 Local Variables:
14128 mode: change-log
14129 left-margin: 8
14130 fill-column: 74
14131 version-control: never
14132 coding: utf-8
14133 End: